Move schema utilities into core (#26565)

This commit is contained in:
Dax
2026-05-09 15:51:09 -04:00
committed by GitHub
parent 5e49029e70
commit dcdbdb218f
73 changed files with 125 additions and 125 deletions

View File

@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test"
import { Result, Schema } from "effect"
import { toJsonSchema } from "../../src/util/effect-zod"
import { toJsonSchema } from "@opencode-ai/core/effect-zod"
// Each tool exports its parameters schema at module scope so this test can
// import them without running the tool's Effect-based init. The JSON Schema

View File

@@ -2,7 +2,7 @@ import { describe, expect, test } from "bun:test"
import { Effect, Schema, SchemaGetter } from "effect"
import z from "zod"
import { zod, ZodOverride } from "../../src/util/effect-zod"
import { zod, ZodOverride } from "@opencode-ai/core/effect-zod"
function json(schema: z.ZodTypeAny) {
const { $schema: _, ...rest } = z.toJSONSchema(schema)