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

@@ -2,8 +2,6 @@ import path from "path"
import { pathToFileURL } from "url"
import z from "zod"
import { Effect, Layer, Context, Schema } from "effect"
import { zod } from "@opencode-ai/core/effect-zod"
import { withStatics } from "@opencode-ai/core/schema"
import { NamedError } from "@opencode-ai/core/util/error"
import type { Agent } from "@/agent/agent"
import { Bus } from "@/bus"
@@ -40,7 +38,7 @@ export const Info = Schema.Struct({
description: Schema.optional(Schema.String),
location: Schema.String,
content: Schema.String,
}).pipe(withStatics((s) => ({ zod: zod(s) })))
})
export type Info = Schema.Schema.Type<typeof Info>
export const InvalidError = NamedError.create(