Drop small session Zod statics (#26921)

This commit is contained in:
Kit Langton
2026-05-11 16:12:31 -04:00
committed by GitHub
parent 4d9eb6c320
commit 42a0453945
4 changed files with 4 additions and 22 deletions
+2 -6
View File
@@ -2,10 +2,8 @@ import { BusEvent } from "@/bus/bus-event"
import { Bus } from "@/bus"
import { InstanceState } from "@/effect/instance-state"
import { SessionID } from "./schema"
import { zod } from "@opencode-ai/core/effect-zod"
import { NonNegativeInt, withStatics } from "@opencode-ai/core/schema"
import { NonNegativeInt } from "@opencode-ai/core/schema"
import { Effect, Layer, Context, Schema } from "effect"
import z from "zod"
export const Info = Schema.Union([
Schema.Struct({
@@ -30,9 +28,7 @@ export const Info = Schema.Union([
Schema.Struct({
type: Schema.Literal("busy"),
}),
])
.annotate({ identifier: "SessionStatus" })
.pipe(withStatics((s) => ({ zod: zod(s) })))
]).annotate({ identifier: "SessionStatus" })
export type Info = Schema.Schema.Type<typeof Info>
export const Event = {