|
|
@@ -5,12 +5,6 @@ export type ClientOptions = {
|
|
|
}
|
|
|
|
|
|
export type Event =
|
|
|
- | EventTuiPromptAppend
|
|
|
- | EventTuiCommandExecute
|
|
|
- | EventTuiToastShow1
|
|
|
- | EventTuiSessionSelect
|
|
|
- | EventServerConnected
|
|
|
- | EventGlobalDisposed
|
|
|
| EventServerInstanceDisposed
|
|
|
| EventFileEdited
|
|
|
| EventFileWatcherUpdated
|
|
|
@@ -27,6 +21,10 @@ export type Event =
|
|
|
| EventTodoUpdated
|
|
|
| EventSessionStatus
|
|
|
| EventSessionIdle
|
|
|
+ | EventTuiPromptAppend
|
|
|
+ | EventTuiCommandExecute
|
|
|
+ | EventTuiToastShow1
|
|
|
+ | EventTuiSessionSelect
|
|
|
| EventMcpToolsChanged
|
|
|
| EventMcpBrowserOpenFailed
|
|
|
| EventCommandExecuted
|
|
|
@@ -77,6 +75,8 @@ export type Event =
|
|
|
| EventSessionNextCompactionStarted
|
|
|
| EventSessionNextCompactionDelta
|
|
|
| EventSessionNextCompactionEnded
|
|
|
+ | EventServerConnected
|
|
|
+ | EventGlobalDisposed
|
|
|
| EventCatalogModelUpdated
|
|
|
|
|
|
export type OAuth = {
|
|
|
@@ -104,61 +104,6 @@ export type 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 = {
|
|
|
id: string
|
|
|
sessionID: string
|
|
|
@@ -336,6 +281,61 @@ export type SessionStatus =
|
|
|
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 = {
|
|
|
id: string
|
|
|
worktree: string
|
|
|
@@ -790,12 +790,6 @@ export type GlobalEvent = {
|
|
|
project?: string
|
|
|
workspace?: string
|
|
|
payload:
|
|
|
- | EventTuiPromptAppend
|
|
|
- | EventTuiCommandExecute
|
|
|
- | EventTuiToastShow
|
|
|
- | EventTuiSessionSelect
|
|
|
- | EventServerConnected
|
|
|
- | EventGlobalDisposed
|
|
|
| EventServerInstanceDisposed
|
|
|
| EventFileEdited
|
|
|
| EventFileWatcherUpdated
|
|
|
@@ -812,6 +806,10 @@ export type GlobalEvent = {
|
|
|
| EventTodoUpdated
|
|
|
| EventSessionStatus
|
|
|
| EventSessionIdle
|
|
|
+ | EventTuiPromptAppend
|
|
|
+ | EventTuiCommandExecute
|
|
|
+ | EventTuiToastShow
|
|
|
+ | EventTuiSessionSelect
|
|
|
| EventMcpToolsChanged
|
|
|
| EventMcpBrowserOpenFailed
|
|
|
| EventCommandExecuted
|
|
|
@@ -862,6 +860,8 @@ export type GlobalEvent = {
|
|
|
| EventSessionNextCompactionStarted
|
|
|
| EventSessionNextCompactionDelta
|
|
|
| EventSessionNextCompactionEnded
|
|
|
+ | EventServerConnected
|
|
|
+ | EventGlobalDisposed
|
|
|
| EventCatalogModelUpdated
|
|
|
| SyncEventMessageUpdated
|
|
|
| SyncEventMessageRemoved
|
|
|
@@ -2403,22 +2403,6 @@ export type SyncEventSessionNextCompactionEnded = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-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 EventServerInstanceDisposed = {
|
|
|
id: string
|
|
|
type: "server.instance.disposed"
|
|
|
@@ -3145,6 +3129,22 @@ export type EventSessionNextCompactionEnded = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+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 = {
|
|
|
id: string
|
|
|
apiID: string
|