|
@@ -5,6 +5,12 @@ export type ClientOptions = {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export type Event =
|
|
export type Event =
|
|
|
|
|
+ | EventTuiPromptAppend
|
|
|
|
|
+ | EventTuiCommandExecute
|
|
|
|
|
+ | EventTuiToastShow1
|
|
|
|
|
+ | EventTuiSessionSelect
|
|
|
|
|
+ | EventServerConnected
|
|
|
|
|
+ | EventGlobalDisposed
|
|
|
| EventServerInstanceDisposed
|
|
| EventServerInstanceDisposed
|
|
|
| EventFileEdited
|
|
| EventFileEdited
|
|
|
| EventFileWatcherUpdated
|
|
| EventFileWatcherUpdated
|
|
@@ -21,10 +27,6 @@ export type Event =
|
|
|
| EventTodoUpdated
|
|
| EventTodoUpdated
|
|
|
| EventSessionStatus
|
|
| EventSessionStatus
|
|
|
| EventSessionIdle
|
|
| EventSessionIdle
|
|
|
- | EventTuiPromptAppend
|
|
|
|
|
- | EventTuiCommandExecute
|
|
|
|
|
- | EventTuiToastShow1
|
|
|
|
|
- | EventTuiSessionSelect
|
|
|
|
|
| EventMcpToolsChanged
|
|
| EventMcpToolsChanged
|
|
|
| EventMcpBrowserOpenFailed
|
|
| EventMcpBrowserOpenFailed
|
|
|
| EventCommandExecuted
|
|
| EventCommandExecuted
|
|
@@ -42,8 +44,13 @@ export type Event =
|
|
|
| EventPtyDeleted
|
|
| EventPtyDeleted
|
|
|
| EventInstallationUpdated
|
|
| EventInstallationUpdated
|
|
|
| EventInstallationUpdateAvailable
|
|
| EventInstallationUpdateAvailable
|
|
|
- | EventServerConnected
|
|
|
|
|
- | EventGlobalDisposed
|
|
|
|
|
|
|
+ | EventMessageUpdated
|
|
|
|
|
+ | EventMessageRemoved
|
|
|
|
|
+ | EventMessagePartUpdated
|
|
|
|
|
+ | EventMessagePartRemoved
|
|
|
|
|
+ | EventSessionCreated
|
|
|
|
|
+ | EventSessionUpdated
|
|
|
|
|
+ | EventSessionDeleted
|
|
|
| EventCatalogModelUpdated
|
|
| EventCatalogModelUpdated
|
|
|
| EventSessionNextAgentSwitched
|
|
| EventSessionNextAgentSwitched
|
|
|
| EventSessionNextModelSwitched
|
|
| EventSessionNextModelSwitched
|
|
@@ -97,6 +104,61 @@ export type WellKnownAuth = {
|
|
|
|
|
|
|
|
export type Auth = OAuth | ApiAuth | WellKnownAuth
|
|
export type Auth = OAuth | ApiAuth | WellKnownAuth
|
|
|
|
|
|
|
|
|
|
+export type EventTuiPromptAppend = {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ type: "tui.prompt.append"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ text: string
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type EventTuiCommandExecute = {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ type: "tui.command.execute"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ command:
|
|
|
|
|
+ | "session.list"
|
|
|
|
|
+ | "session.new"
|
|
|
|
|
+ | "session.share"
|
|
|
|
|
+ | "session.interrupt"
|
|
|
|
|
+ | "session.compact"
|
|
|
|
|
+ | "session.page.up"
|
|
|
|
|
+ | "session.page.down"
|
|
|
|
|
+ | "session.line.up"
|
|
|
|
|
+ | "session.line.down"
|
|
|
|
|
+ | "session.half.page.up"
|
|
|
|
|
+ | "session.half.page.down"
|
|
|
|
|
+ | "session.first"
|
|
|
|
|
+ | "session.last"
|
|
|
|
|
+ | "prompt.clear"
|
|
|
|
|
+ | "prompt.submit"
|
|
|
|
|
+ | "agent.cycle"
|
|
|
|
|
+ | string
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type EventTuiToastShow = {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ type: "tui.toast.show"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ title?: string
|
|
|
|
|
+ message: string
|
|
|
|
|
+ variant: "info" | "success" | "warning" | "error"
|
|
|
|
|
+ duration?: number
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type EventTuiSessionSelect = {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ type: "tui.session.select"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Session ID to navigate to
|
|
|
|
|
+ */
|
|
|
|
|
+ sessionID: string
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export type PermissionRequest = {
|
|
export type PermissionRequest = {
|
|
|
id: string
|
|
id: string
|
|
|
sessionID: string
|
|
sessionID: string
|
|
@@ -274,61 +336,6 @@ export type SessionStatus =
|
|
|
type: "busy"
|
|
type: "busy"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export type EventTuiPromptAppend = {
|
|
|
|
|
- id: string
|
|
|
|
|
- type: "tui.prompt.append"
|
|
|
|
|
- properties: {
|
|
|
|
|
- text: string
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export type EventTuiCommandExecute = {
|
|
|
|
|
- id: string
|
|
|
|
|
- type: "tui.command.execute"
|
|
|
|
|
- properties: {
|
|
|
|
|
- command:
|
|
|
|
|
- | "session.list"
|
|
|
|
|
- | "session.new"
|
|
|
|
|
- | "session.share"
|
|
|
|
|
- | "session.interrupt"
|
|
|
|
|
- | "session.compact"
|
|
|
|
|
- | "session.page.up"
|
|
|
|
|
- | "session.page.down"
|
|
|
|
|
- | "session.line.up"
|
|
|
|
|
- | "session.line.down"
|
|
|
|
|
- | "session.half.page.up"
|
|
|
|
|
- | "session.half.page.down"
|
|
|
|
|
- | "session.first"
|
|
|
|
|
- | "session.last"
|
|
|
|
|
- | "prompt.clear"
|
|
|
|
|
- | "prompt.submit"
|
|
|
|
|
- | "agent.cycle"
|
|
|
|
|
- | string
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export type EventTuiToastShow = {
|
|
|
|
|
- id: string
|
|
|
|
|
- type: "tui.toast.show"
|
|
|
|
|
- properties: {
|
|
|
|
|
- title?: string
|
|
|
|
|
- message: string
|
|
|
|
|
- variant: "info" | "success" | "warning" | "error"
|
|
|
|
|
- duration?: number
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export type EventTuiSessionSelect = {
|
|
|
|
|
- id: string
|
|
|
|
|
- type: "tui.session.select"
|
|
|
|
|
- properties: {
|
|
|
|
|
- /**
|
|
|
|
|
- * Session ID to navigate to
|
|
|
|
|
- */
|
|
|
|
|
- sessionID: string
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
export type Project = {
|
|
export type Project = {
|
|
|
id: string
|
|
id: string
|
|
|
worktree: string
|
|
worktree: string
|
|
@@ -783,6 +790,12 @@ export type GlobalEvent = {
|
|
|
project?: string
|
|
project?: string
|
|
|
workspace?: string
|
|
workspace?: string
|
|
|
payload:
|
|
payload:
|
|
|
|
|
+ | EventTuiPromptAppend
|
|
|
|
|
+ | EventTuiCommandExecute
|
|
|
|
|
+ | EventTuiToastShow
|
|
|
|
|
+ | EventTuiSessionSelect
|
|
|
|
|
+ | EventServerConnected
|
|
|
|
|
+ | EventGlobalDisposed
|
|
|
| EventServerInstanceDisposed
|
|
| EventServerInstanceDisposed
|
|
|
| EventFileEdited
|
|
| EventFileEdited
|
|
|
| EventFileWatcherUpdated
|
|
| EventFileWatcherUpdated
|
|
@@ -799,10 +812,6 @@ export type GlobalEvent = {
|
|
|
| EventTodoUpdated
|
|
| EventTodoUpdated
|
|
|
| EventSessionStatus
|
|
| EventSessionStatus
|
|
|
| EventSessionIdle
|
|
| EventSessionIdle
|
|
|
- | EventTuiPromptAppend
|
|
|
|
|
- | EventTuiCommandExecute
|
|
|
|
|
- | EventTuiToastShow
|
|
|
|
|
- | EventTuiSessionSelect
|
|
|
|
|
| EventMcpToolsChanged
|
|
| EventMcpToolsChanged
|
|
|
| EventMcpBrowserOpenFailed
|
|
| EventMcpBrowserOpenFailed
|
|
|
| EventCommandExecuted
|
|
| EventCommandExecuted
|
|
@@ -820,8 +829,6 @@ export type GlobalEvent = {
|
|
|
| EventPtyDeleted
|
|
| EventPtyDeleted
|
|
|
| EventInstallationUpdated
|
|
| EventInstallationUpdated
|
|
|
| EventInstallationUpdateAvailable
|
|
| EventInstallationUpdateAvailable
|
|
|
- | EventServerConnected
|
|
|
|
|
- | EventGlobalDisposed
|
|
|
|
|
| EventCatalogModelUpdated
|
|
| EventCatalogModelUpdated
|
|
|
| EventSessionNextAgentSwitched
|
|
| EventSessionNextAgentSwitched
|
|
|
| EventSessionNextModelSwitched
|
|
| EventSessionNextModelSwitched
|
|
@@ -868,20 +875,20 @@ export type GlobalEvent = {
|
|
|
| SyncEventSessionNextTextStarted
|
|
| SyncEventSessionNextTextStarted
|
|
|
| SyncEventSessionNextTextDelta
|
|
| SyncEventSessionNextTextDelta
|
|
|
| SyncEventSessionNextTextEnded
|
|
| SyncEventSessionNextTextEnded
|
|
|
|
|
+ | SyncEventSessionNextReasoningStarted
|
|
|
|
|
+ | SyncEventSessionNextReasoningDelta
|
|
|
|
|
+ | SyncEventSessionNextReasoningEnded
|
|
|
| SyncEventSessionNextToolInputStarted
|
|
| SyncEventSessionNextToolInputStarted
|
|
|
| SyncEventSessionNextToolInputDelta
|
|
| SyncEventSessionNextToolInputDelta
|
|
|
| SyncEventSessionNextToolInputEnded
|
|
| SyncEventSessionNextToolInputEnded
|
|
|
| SyncEventSessionNextToolCalled
|
|
| SyncEventSessionNextToolCalled
|
|
|
|
|
+ | SyncEventSessionNextToolProgress
|
|
|
| SyncEventSessionNextToolSuccess
|
|
| SyncEventSessionNextToolSuccess
|
|
|
| SyncEventSessionNextToolFailed
|
|
| SyncEventSessionNextToolFailed
|
|
|
- | SyncEventSessionNextReasoningStarted
|
|
|
|
|
- | SyncEventSessionNextReasoningDelta
|
|
|
|
|
- | SyncEventSessionNextReasoningEnded
|
|
|
|
|
| SyncEventSessionNextRetried
|
|
| SyncEventSessionNextRetried
|
|
|
| SyncEventSessionNextCompactionStarted
|
|
| SyncEventSessionNextCompactionStarted
|
|
|
| SyncEventSessionNextCompactionDelta
|
|
| SyncEventSessionNextCompactionDelta
|
|
|
| SyncEventSessionNextCompactionEnded
|
|
| SyncEventSessionNextCompactionEnded
|
|
|
- | SyncEventSessionNextToolProgress
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -2169,6 +2176,47 @@ export type SyncEventSessionNextTextEnded = {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export type SyncEventSessionNextReasoningStarted = {
|
|
|
|
|
+ type: "sync"
|
|
|
|
|
+ name: "session.next.reasoning.started.1"
|
|
|
|
|
+ id: string
|
|
|
|
|
+ seq: number
|
|
|
|
|
+ aggregateID: "sessionID"
|
|
|
|
|
+ data: {
|
|
|
|
|
+ timestamp: number
|
|
|
|
|
+ sessionID: string
|
|
|
|
|
+ reasoningID: string
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type SyncEventSessionNextReasoningDelta = {
|
|
|
|
|
+ type: "sync"
|
|
|
|
|
+ name: "session.next.reasoning.delta.1"
|
|
|
|
|
+ id: string
|
|
|
|
|
+ seq: number
|
|
|
|
|
+ aggregateID: "sessionID"
|
|
|
|
|
+ data: {
|
|
|
|
|
+ timestamp: number
|
|
|
|
|
+ sessionID: string
|
|
|
|
|
+ reasoningID: string
|
|
|
|
|
+ delta: string
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type SyncEventSessionNextReasoningEnded = {
|
|
|
|
|
+ type: "sync"
|
|
|
|
|
+ name: "session.next.reasoning.ended.1"
|
|
|
|
|
+ id: string
|
|
|
|
|
+ seq: number
|
|
|
|
|
+ aggregateID: "sessionID"
|
|
|
|
|
+ data: {
|
|
|
|
|
+ timestamp: number
|
|
|
|
|
+ sessionID: string
|
|
|
|
|
+ reasoningID: string
|
|
|
|
|
+ text: string
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export type SyncEventSessionNextToolInputStarted = {
|
|
export type SyncEventSessionNextToolInputStarted = {
|
|
|
type: "sync"
|
|
type: "sync"
|
|
|
name: "session.next.tool.input.started.1"
|
|
name: "session.next.tool.input.started.1"
|
|
@@ -2234,6 +2282,23 @@ export type SyncEventSessionNextToolCalled = {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export type SyncEventSessionNextToolProgress = {
|
|
|
|
|
+ type: "sync"
|
|
|
|
|
+ name: "session.next.tool.progress.1"
|
|
|
|
|
+ id: string
|
|
|
|
|
+ seq: number
|
|
|
|
|
+ aggregateID: "sessionID"
|
|
|
|
|
+ data: {
|
|
|
|
|
+ timestamp: number
|
|
|
|
|
+ sessionID: string
|
|
|
|
|
+ callID: string
|
|
|
|
|
+ structured: {
|
|
|
|
|
+ [key: string]: unknown
|
|
|
|
|
+ }
|
|
|
|
|
+ content: Array<ToolTextContent | ToolFileContent>
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export type SyncEventSessionNextToolSuccess = {
|
|
export type SyncEventSessionNextToolSuccess = {
|
|
|
type: "sync"
|
|
type: "sync"
|
|
|
name: "session.next.tool.success.1"
|
|
name: "session.next.tool.success.1"
|
|
@@ -2277,47 +2342,6 @@ export type SyncEventSessionNextToolFailed = {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export type SyncEventSessionNextReasoningStarted = {
|
|
|
|
|
- type: "sync"
|
|
|
|
|
- name: "session.next.reasoning.started.1"
|
|
|
|
|
- id: string
|
|
|
|
|
- seq: number
|
|
|
|
|
- aggregateID: "sessionID"
|
|
|
|
|
- data: {
|
|
|
|
|
- timestamp: number
|
|
|
|
|
- sessionID: string
|
|
|
|
|
- reasoningID: string
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export type SyncEventSessionNextReasoningDelta = {
|
|
|
|
|
- type: "sync"
|
|
|
|
|
- name: "session.next.reasoning.delta.1"
|
|
|
|
|
- id: string
|
|
|
|
|
- seq: number
|
|
|
|
|
- aggregateID: "sessionID"
|
|
|
|
|
- data: {
|
|
|
|
|
- timestamp: number
|
|
|
|
|
- sessionID: string
|
|
|
|
|
- reasoningID: string
|
|
|
|
|
- delta: string
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export type SyncEventSessionNextReasoningEnded = {
|
|
|
|
|
- type: "sync"
|
|
|
|
|
- name: "session.next.reasoning.ended.1"
|
|
|
|
|
- id: string
|
|
|
|
|
- seq: number
|
|
|
|
|
- aggregateID: "sessionID"
|
|
|
|
|
- data: {
|
|
|
|
|
- timestamp: number
|
|
|
|
|
- sessionID: string
|
|
|
|
|
- reasoningID: string
|
|
|
|
|
- text: string
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
export type SyncEventSessionNextRetried = {
|
|
export type SyncEventSessionNextRetried = {
|
|
|
type: "sync"
|
|
type: "sync"
|
|
|
name: "session.next.retried.1"
|
|
name: "session.next.retried.1"
|
|
@@ -2372,20 +2396,19 @@ export type SyncEventSessionNextCompactionEnded = {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export type SyncEventSessionNextToolProgress = {
|
|
|
|
|
- type: "sync"
|
|
|
|
|
- name: "session.next.tool.progress.1"
|
|
|
|
|
|
|
+export type EventServerConnected = {
|
|
|
id: string
|
|
id: string
|
|
|
- seq: number
|
|
|
|
|
- aggregateID: string
|
|
|
|
|
- data: {
|
|
|
|
|
- timestamp: number
|
|
|
|
|
- sessionID: string
|
|
|
|
|
- callID: string
|
|
|
|
|
- structured: {
|
|
|
|
|
- [key: string]: unknown
|
|
|
|
|
- }
|
|
|
|
|
- content: Array<ToolTextContent | ToolFileContent>
|
|
|
|
|
|
|
+ type: "server.connected"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ [key: string]: unknown
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type EventGlobalDisposed = {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ type: "global.disposed"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ [key: string]: unknown
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2669,22 +2692,6 @@ export type EventInstallationUpdateAvailable = {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export type EventServerConnected = {
|
|
|
|
|
- id: string
|
|
|
|
|
- type: "server.connected"
|
|
|
|
|
- properties: {
|
|
|
|
|
- [key: string]: unknown
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export type EventGlobalDisposed = {
|
|
|
|
|
- id: string
|
|
|
|
|
- type: "global.disposed"
|
|
|
|
|
- properties: {
|
|
|
|
|
- [key: string]: unknown
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
export type ModelV2Info = {
|
|
export type ModelV2Info = {
|
|
|
id: string
|
|
id: string
|
|
|
apiID: string
|
|
apiID: string
|
|
@@ -3485,6 +3492,71 @@ export type EventTuiToastShow1 = {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export type EventMessageUpdated = {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ type: "message.updated"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ sessionID: string
|
|
|
|
|
+ info: Message
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type EventMessageRemoved = {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ type: "message.removed"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ sessionID: string
|
|
|
|
|
+ messageID: string
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type EventMessagePartUpdated = {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ type: "message.part.updated"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ sessionID: string
|
|
|
|
|
+ part: Part
|
|
|
|
|
+ time: number
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type EventMessagePartRemoved = {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ type: "message.part.removed"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ sessionID: string
|
|
|
|
|
+ messageID: string
|
|
|
|
|
+ partID: string
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type EventSessionCreated = {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ type: "session.created"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ sessionID: string
|
|
|
|
|
+ info: Session
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type EventSessionUpdated = {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ type: "session.updated"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ sessionID: string
|
|
|
|
|
+ info: Session
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type EventSessionDeleted = {
|
|
|
|
|
+ id: string
|
|
|
|
|
+ type: "session.deleted"
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ sessionID: string
|
|
|
|
|
+ info: Session
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export type ModelV2Info1 = {
|
|
export type ModelV2Info1 = {
|
|
|
id: string
|
|
id: string
|
|
|
apiID: string
|
|
apiID: string
|