diff --git a/packages/opencode/src/v2/event.ts b/packages/opencode/src/v2/event.ts index 0eb6af966c..14ee44dd52 100644 --- a/packages/opencode/src/v2/event.ts +++ b/packages/opencode/src/v2/event.ts @@ -1,7 +1,6 @@ import { Identifier } from "@/id/id" import { SyncEvent } from "@/sync" import { withStatics } from "@opencode-ai/core/schema" -import { Flag } from "@opencode-ai/core/flag/flag" import * as Schema from "effect/Schema" export const ID = Schema.String.pipe( @@ -41,14 +40,4 @@ export function define( - def: Def, - data: SyncEvent.Event["data"], - // Temporary escape hatch while the full v2 event system remains experimental. - options?: { publish?: boolean; bypassExperimentalEventSystem?: boolean }, -) { - if (!options?.bypassExperimentalEventSystem && !Flag.OPENCODE_EXPERIMENTAL_EVENT_SYSTEM) return - SyncEvent.run(def, data, options) -} - export * as EventV2 from "./event"