fix: stabilize v2 runtime behavior

This commit is contained in:
Dax Raad
2026-06-26 20:56:36 -04:00
parent ac2a78391f
commit 655adbf46e
35 changed files with 745 additions and 428 deletions
+5 -2
View File
@@ -1,7 +1,7 @@
import type {
AgentPart,
OpencodeClient,
Event,
V2Event,
FilePart,
LspStatus,
McpStatus,
@@ -517,7 +517,10 @@ export type TuiSlots = {
}
export type TuiEventBus = {
on: <Type extends Event["type"]>(type: Type, handler: (event: Extract<Event, { type: Type }>) => void) => () => void
on: <Type extends V2Event["type"]>(
type: Type,
handler: (event: Extract<V2Event, { type: Type }>) => void,
) => () => void
}
export type TuiDispose = () => void | Promise<void>