refactor(schema): extract public event definitions (#33579)
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
import { EventV2 } from "@opencode-ai/core/event"
|
||||
import { Schema } from "effect"
|
||||
import { ServerEvent } from "@opencode-ai/schema/server-event"
|
||||
|
||||
export const Event = {
|
||||
Connected: EventV2.define({ type: "server.connected", schema: {} }),
|
||||
Disposed: EventV2.define({ type: "global.disposed", schema: {} }),
|
||||
}
|
||||
export const Event = ServerEvent
|
||||
|
||||
export const InstanceDisposed = Schema.Struct({
|
||||
id: Schema.String,
|
||||
|
||||
Reference in New Issue
Block a user