import type { Event as SDKEvent } from "@opencode-ai/sdk/v2/types" import type { Stream } from "effect" export type EventMap = { [Item in SDKEvent as Item["type"]]: Item } export interface Event { subscribe(type: Type): Stream.Stream }