2026-05-31 07:18:43 +00:00
|
|
|
import { Schema } from "effect"
|
2026-06-24 20:43:17 +00:00
|
|
|
import { ServerEvent } from "@opencode-ai/schema/server-event"
|
2026-01-16 21:31:03 +00:00
|
|
|
|
2026-06-24 20:43:17 +00:00
|
|
|
export const Event = ServerEvent
|
2026-05-31 07:18:43 +00:00
|
|
|
|
|
|
|
|
export const InstanceDisposed = Schema.Struct({
|
|
|
|
|
id: Schema.String,
|
|
|
|
|
type: Schema.Literal("server.instance.disposed"),
|
|
|
|
|
properties: Schema.Struct({ directory: Schema.String }),
|
|
|
|
|
}).annotate({ identifier: "Event.server.instance.disposed" })
|