refactor(schema): extract public event definitions (#33579)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { EventV2 } from "@opencode-ai/core/event"
|
||||
import { Schema } from "effect"
|
||||
import { NamedError } from "@opencode-ai/core/util/error"
|
||||
import { Process } from "@/util/process"
|
||||
import { IdeEvent } from "@opencode-ai/schema/ide-event"
|
||||
|
||||
const SUPPORTED_IDES = [
|
||||
{ name: "Windsurf" as const, cmd: "windsurf" },
|
||||
@@ -11,14 +11,7 @@ const SUPPORTED_IDES = [
|
||||
{ name: "VSCodium" as const, cmd: "codium" },
|
||||
]
|
||||
|
||||
export const Event = {
|
||||
Installed: EventV2.define({
|
||||
type: "ide.installed",
|
||||
schema: {
|
||||
ide: Schema.String,
|
||||
},
|
||||
}),
|
||||
}
|
||||
export const Event = IdeEvent
|
||||
|
||||
export const AlreadyInstalledError = NamedError.create("AlreadyInstalledError", {})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user