Drop unused domain Zod statics (#26927)

This commit is contained in:
Kit Langton
2026-05-11 16:10:58 -04:00
committed by GitHub
parent 0bced8ec96
commit 45adfedd64
7 changed files with 16 additions and 41 deletions

View File

@@ -24,8 +24,7 @@ import { Effect, Context, Layer, Schema } from "effect"
import { InstanceState } from "@/effect/instance-state"
import * as Option from "effect/Option"
import * as OtelTracer from "@effect/opentelemetry/Tracer"
import { zod } from "@opencode-ai/core/effect-zod"
import { withStatics, type DeepMutable } from "@opencode-ai/core/schema"
import { type DeepMutable } from "@opencode-ai/core/schema"
export const Info = Schema.Struct({
name: Schema.String,
@@ -47,9 +46,7 @@ export const Info = Schema.Struct({
prompt: Schema.optional(Schema.String),
options: Schema.Record(Schema.String, Schema.Unknown),
steps: Schema.optional(Schema.Finite),
})
.annotate({ identifier: "Agent" })
.pipe(withStatics((s) => ({ zod: zod(s) })))
}).annotate({ identifier: "Agent" })
export type Info = DeepMutable<Schema.Schema.Type<typeof Info>>
export interface Interface {