chore: generate
This commit is contained in:
@@ -94,35 +94,6 @@ export type EventMessagePartDelta = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SessionStatus =
|
|
||||||
| {
|
|
||||||
type: "idle"
|
|
||||||
}
|
|
||||||
| {
|
|
||||||
type: "retry"
|
|
||||||
attempt: number
|
|
||||||
message: string
|
|
||||||
next: number
|
|
||||||
}
|
|
||||||
| {
|
|
||||||
type: "busy"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventSessionStatus = {
|
|
||||||
type: "session.status"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
status: SessionStatus
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventSessionIdle = {
|
|
||||||
type: "session.idle"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionRequest = {
|
export type PermissionRequest = {
|
||||||
id: string
|
id: string
|
||||||
sessionID: string
|
sessionID: string
|
||||||
@@ -152,201 +123,6 @@ export type EventPermissionReplied = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type QuestionOption = {
|
|
||||||
/**
|
|
||||||
* Display text (1-5 words, concise)
|
|
||||||
*/
|
|
||||||
label: string
|
|
||||||
/**
|
|
||||||
* Explanation of choice
|
|
||||||
*/
|
|
||||||
description: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type QuestionInfo = {
|
|
||||||
/**
|
|
||||||
* Complete question
|
|
||||||
*/
|
|
||||||
question: string
|
|
||||||
/**
|
|
||||||
* Very short label (max 30 chars)
|
|
||||||
*/
|
|
||||||
header: string
|
|
||||||
/**
|
|
||||||
* Available choices
|
|
||||||
*/
|
|
||||||
options: Array<QuestionOption>
|
|
||||||
/**
|
|
||||||
* Allow selecting multiple choices
|
|
||||||
*/
|
|
||||||
multiple?: boolean
|
|
||||||
/**
|
|
||||||
* Allow typing a custom answer (default: true)
|
|
||||||
*/
|
|
||||||
custom?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type QuestionRequest = {
|
|
||||||
id: string
|
|
||||||
sessionID: string
|
|
||||||
/**
|
|
||||||
* Questions to ask
|
|
||||||
*/
|
|
||||||
questions: Array<QuestionInfo>
|
|
||||||
tool?: {
|
|
||||||
messageID: string
|
|
||||||
callID: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventQuestionAsked = {
|
|
||||||
type: "question.asked"
|
|
||||||
properties: QuestionRequest
|
|
||||||
}
|
|
||||||
|
|
||||||
export type QuestionAnswer = Array<string>
|
|
||||||
|
|
||||||
export type EventQuestionReplied = {
|
|
||||||
type: "question.replied"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
requestID: string
|
|
||||||
answers: Array<QuestionAnswer>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventQuestionRejected = {
|
|
||||||
type: "question.rejected"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
requestID: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventSessionCompacted = {
|
|
||||||
type: "session.compacted"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventFileEdited = {
|
|
||||||
type: "file.edited"
|
|
||||||
properties: {
|
|
||||||
file: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventFileWatcherUpdated = {
|
|
||||||
type: "file.watcher.updated"
|
|
||||||
properties: {
|
|
||||||
file: string
|
|
||||||
event: "add" | "change" | "unlink"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Todo = {
|
|
||||||
/**
|
|
||||||
* Brief description of the task
|
|
||||||
*/
|
|
||||||
content: string
|
|
||||||
/**
|
|
||||||
* Current status of the task: pending, in_progress, completed, cancelled
|
|
||||||
*/
|
|
||||||
status: string
|
|
||||||
/**
|
|
||||||
* Priority level of the task: high, medium, low
|
|
||||||
*/
|
|
||||||
priority: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventTodoUpdated = {
|
|
||||||
type: "todo.updated"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
todos: Array<Todo>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventTuiPromptAppend = {
|
|
||||||
type: "tui.prompt.append"
|
|
||||||
properties: {
|
|
||||||
text: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventTuiCommandExecute = {
|
|
||||||
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 = {
|
|
||||||
type: "tui.toast.show"
|
|
||||||
properties: {
|
|
||||||
title?: string
|
|
||||||
message: string
|
|
||||||
variant: "info" | "success" | "warning" | "error"
|
|
||||||
/**
|
|
||||||
* Duration in milliseconds
|
|
||||||
*/
|
|
||||||
duration?: number
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventTuiSessionSelect = {
|
|
||||||
type: "tui.session.select"
|
|
||||||
properties: {
|
|
||||||
/**
|
|
||||||
* Session ID to navigate to
|
|
||||||
*/
|
|
||||||
sessionID: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventMcpToolsChanged = {
|
|
||||||
type: "mcp.tools.changed"
|
|
||||||
properties: {
|
|
||||||
server: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventMcpBrowserOpenFailed = {
|
|
||||||
type: "mcp.browser.open.failed"
|
|
||||||
properties: {
|
|
||||||
mcpName: string
|
|
||||||
url: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventCommandExecuted = {
|
|
||||||
type: "command.executed"
|
|
||||||
properties: {
|
|
||||||
name: string
|
|
||||||
sessionID: string
|
|
||||||
arguments: string
|
|
||||||
messageID: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SnapshotFileDiff = {
|
export type SnapshotFileDiff = {
|
||||||
file: string
|
file: string
|
||||||
patch: string
|
patch: string
|
||||||
@@ -439,6 +215,21 @@ export type EventSessionError = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EventFileEdited = {
|
||||||
|
type: "file.edited"
|
||||||
|
properties: {
|
||||||
|
file: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventFileWatcherUpdated = {
|
||||||
|
type: "file.watcher.updated"
|
||||||
|
properties: {
|
||||||
|
file: string
|
||||||
|
event: "add" | "change" | "unlink"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export type EventVcsBranchUpdated = {
|
export type EventVcsBranchUpdated = {
|
||||||
type: "vcs.branch.updated"
|
type: "vcs.branch.updated"
|
||||||
properties: {
|
properties: {
|
||||||
@@ -446,6 +237,85 @@ export type EventVcsBranchUpdated = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EventTuiPromptAppend = {
|
||||||
|
type: "tui.prompt.append"
|
||||||
|
properties: {
|
||||||
|
text: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventTuiCommandExecute = {
|
||||||
|
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 = {
|
||||||
|
type: "tui.toast.show"
|
||||||
|
properties: {
|
||||||
|
title?: string
|
||||||
|
message: string
|
||||||
|
variant: "info" | "success" | "warning" | "error"
|
||||||
|
/**
|
||||||
|
* Duration in milliseconds
|
||||||
|
*/
|
||||||
|
duration?: number
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventTuiSessionSelect = {
|
||||||
|
type: "tui.session.select"
|
||||||
|
properties: {
|
||||||
|
/**
|
||||||
|
* Session ID to navigate to
|
||||||
|
*/
|
||||||
|
sessionID: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventMcpToolsChanged = {
|
||||||
|
type: "mcp.tools.changed"
|
||||||
|
properties: {
|
||||||
|
server: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventMcpBrowserOpenFailed = {
|
||||||
|
type: "mcp.browser.open.failed"
|
||||||
|
properties: {
|
||||||
|
mcpName: string
|
||||||
|
url: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventCommandExecuted = {
|
||||||
|
type: "command.executed"
|
||||||
|
properties: {
|
||||||
|
name: string
|
||||||
|
sessionID: string
|
||||||
|
arguments: string
|
||||||
|
messageID: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export type EventWorkspaceReady = {
|
export type EventWorkspaceReady = {
|
||||||
type: "workspace.ready"
|
type: "workspace.ready"
|
||||||
properties: {
|
properties: {
|
||||||
@@ -460,6 +330,136 @@ export type EventWorkspaceFailed = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type QuestionOption = {
|
||||||
|
/**
|
||||||
|
* Display text (1-5 words, concise)
|
||||||
|
*/
|
||||||
|
label: string
|
||||||
|
/**
|
||||||
|
* Explanation of choice
|
||||||
|
*/
|
||||||
|
description: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type QuestionInfo = {
|
||||||
|
/**
|
||||||
|
* Complete question
|
||||||
|
*/
|
||||||
|
question: string
|
||||||
|
/**
|
||||||
|
* Very short label (max 30 chars)
|
||||||
|
*/
|
||||||
|
header: string
|
||||||
|
/**
|
||||||
|
* Available choices
|
||||||
|
*/
|
||||||
|
options: Array<QuestionOption>
|
||||||
|
/**
|
||||||
|
* Allow selecting multiple choices
|
||||||
|
*/
|
||||||
|
multiple?: boolean
|
||||||
|
/**
|
||||||
|
* Allow typing a custom answer (default: true)
|
||||||
|
*/
|
||||||
|
custom?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export type QuestionRequest = {
|
||||||
|
id: string
|
||||||
|
sessionID: string
|
||||||
|
/**
|
||||||
|
* Questions to ask
|
||||||
|
*/
|
||||||
|
questions: Array<QuestionInfo>
|
||||||
|
tool?: {
|
||||||
|
messageID: string
|
||||||
|
callID: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventQuestionAsked = {
|
||||||
|
type: "question.asked"
|
||||||
|
properties: QuestionRequest
|
||||||
|
}
|
||||||
|
|
||||||
|
export type QuestionAnswer = Array<string>
|
||||||
|
|
||||||
|
export type EventQuestionReplied = {
|
||||||
|
type: "question.replied"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
requestID: string
|
||||||
|
answers: Array<QuestionAnswer>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventQuestionRejected = {
|
||||||
|
type: "question.rejected"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
requestID: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type SessionStatus =
|
||||||
|
| {
|
||||||
|
type: "idle"
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "retry"
|
||||||
|
attempt: number
|
||||||
|
message: string
|
||||||
|
next: number
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "busy"
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventSessionStatus = {
|
||||||
|
type: "session.status"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
status: SessionStatus
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventSessionIdle = {
|
||||||
|
type: "session.idle"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventSessionCompacted = {
|
||||||
|
type: "session.compacted"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type Todo = {
|
||||||
|
/**
|
||||||
|
* Brief description of the task
|
||||||
|
*/
|
||||||
|
content: string
|
||||||
|
/**
|
||||||
|
* Current status of the task: pending, in_progress, completed, cancelled
|
||||||
|
*/
|
||||||
|
status: string
|
||||||
|
/**
|
||||||
|
* Priority level of the task: high, medium, low
|
||||||
|
*/
|
||||||
|
priority: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventTodoUpdated = {
|
||||||
|
type: "todo.updated"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
todos: Array<Todo>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export type Pty = {
|
export type Pty = {
|
||||||
id: string
|
id: string
|
||||||
title: string
|
title: string
|
||||||
@@ -972,17 +972,13 @@ export type Event =
|
|||||||
| EventLspClientDiagnostics
|
| EventLspClientDiagnostics
|
||||||
| EventLspUpdated
|
| EventLspUpdated
|
||||||
| EventMessagePartDelta
|
| EventMessagePartDelta
|
||||||
| EventSessionStatus
|
|
||||||
| EventSessionIdle
|
|
||||||
| EventPermissionAsked
|
| EventPermissionAsked
|
||||||
| EventPermissionReplied
|
| EventPermissionReplied
|
||||||
| EventQuestionAsked
|
| EventSessionDiff
|
||||||
| EventQuestionReplied
|
| EventSessionError
|
||||||
| EventQuestionRejected
|
|
||||||
| EventSessionCompacted
|
|
||||||
| EventFileEdited
|
| EventFileEdited
|
||||||
| EventFileWatcherUpdated
|
| EventFileWatcherUpdated
|
||||||
| EventTodoUpdated
|
| EventVcsBranchUpdated
|
||||||
| EventTuiPromptAppend
|
| EventTuiPromptAppend
|
||||||
| EventTuiCommandExecute
|
| EventTuiCommandExecute
|
||||||
| EventTuiToastShow
|
| EventTuiToastShow
|
||||||
@@ -990,11 +986,15 @@ export type Event =
|
|||||||
| EventMcpToolsChanged
|
| EventMcpToolsChanged
|
||||||
| EventMcpBrowserOpenFailed
|
| EventMcpBrowserOpenFailed
|
||||||
| EventCommandExecuted
|
| EventCommandExecuted
|
||||||
| EventSessionDiff
|
|
||||||
| EventSessionError
|
|
||||||
| EventVcsBranchUpdated
|
|
||||||
| EventWorkspaceReady
|
| EventWorkspaceReady
|
||||||
| EventWorkspaceFailed
|
| EventWorkspaceFailed
|
||||||
|
| EventQuestionAsked
|
||||||
|
| EventQuestionReplied
|
||||||
|
| EventQuestionRejected
|
||||||
|
| EventSessionStatus
|
||||||
|
| EventSessionIdle
|
||||||
|
| EventSessionCompacted
|
||||||
|
| EventTodoUpdated
|
||||||
| EventPtyCreated
|
| EventPtyCreated
|
||||||
| EventPtyUpdated
|
| EventPtyUpdated
|
||||||
| EventPtyExited
|
| EventPtyExited
|
||||||
|
|||||||
+564
-564
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user