diff --git a/packages/kilo-vscode/src/services/RemoteStatusService.ts b/packages/kilo-vscode/src/services/RemoteStatusService.ts index 1418100506..9b5077ee56 100644 --- a/packages/kilo-vscode/src/services/RemoteStatusService.ts +++ b/packages/kilo-vscode/src/services/RemoteStatusService.ts @@ -60,7 +60,8 @@ export class RemoteStatusService implements vscode.Disposable { /** Toggle remote on/off based on current state. */ async toggle(): Promise { if (!this.client) return - const { data } = await this.client.remote.status(undefined, { throwOnError: true }) + const { data } = await this.client.remote.status({ throwOnError: true }) + if (!data) return await this.setEnabled(!data.enabled) } @@ -68,9 +69,9 @@ export class RemoteStatusService implements vscode.Disposable { async setEnabled(enabled: boolean): Promise { if (!this.client) return if (enabled) { - await this.client.remote.enable(undefined, { throwOnError: true }) + await this.client.remote.enable({ throwOnError: true }) } else { - await this.client.remote.disable(undefined, { throwOnError: true }) + await this.client.remote.disable({ throwOnError: true }) } this.update({ enabled, connected: false }) } diff --git a/packages/sdk/js/src/v2/gen/sdk.gen.ts b/packages/sdk/js/src/v2/gen/sdk.gen.ts index 99598a1187..47420a4ad8 100644 --- a/packages/sdk/js/src/v2/gen/sdk.gen.ts +++ b/packages/sdk/js/src/v2/gen/sdk.gen.ts @@ -364,6 +364,44 @@ export class Global extends HeyApiClient { } } +export class Remote extends HeyApiClient { + /** + * Enable remote connection + * + * Enable WebSocket connection to UserConnectionDO for real-time session relay and commands. + */ + public enable(options?: Options) { + return (options?.client ?? this.client).post({ + url: "/remote/enable", + ...options, + }) + } + + /** + * Disable remote connection + * + * Close the remote WebSocket connection to UserConnectionDO. + */ + public disable(options?: Options) { + return (options?.client ?? this.client).post({ + url: "/remote/disable", + ...options, + }) + } + + /** + * Get remote connection status + * + * Get the current state of the remote WebSocket connection. + */ + public status(options?: Options) { + return (options?.client ?? this.client).get({ + url: "/remote/status", + ...options, + }) + } +} + export class Auth extends HeyApiClient { /** * Remove auth credentials @@ -2812,6 +2850,102 @@ export class Question extends HeyApiClient { } } +export class Network extends HeyApiClient { + /** + * List pending network waits + * + * Get all pending network reconnect requests across all sessions. + */ + public list( + parameters?: { + directory?: string + workspace?: string + }, + options?: Options, + ) { + const params = buildClientParams( + [parameters], + [ + { + args: [ + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + ], + }, + ], + ) + return (options?.client ?? this.client).get({ + url: "/network", + ...options, + ...params, + }) + } + + /** + * Resume after network wait + * + * Resume a pending session after reconnecting network-dependent services. + */ + public reply( + parameters: { + requestID: string + directory?: string + workspace?: string + }, + options?: Options, + ) { + const params = buildClientParams( + [parameters], + [ + { + args: [ + { in: "path", key: "requestID" }, + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + ], + }, + ], + ) + return (options?.client ?? this.client).post({ + url: "/network/{requestID}/reply", + ...options, + ...params, + }) + } + + /** + * Reject network resume request + * + * Stop a pending session instead of resuming after network reconnect. + */ + public reject( + parameters: { + requestID: string + directory?: string + workspace?: string + }, + options?: Options, + ) { + const params = buildClientParams( + [parameters], + [ + { + args: [ + { in: "path", key: "requestID" }, + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + ], + }, + ], + ) + return (options?.client ?? this.client).post({ + url: "/network/{requestID}/reject", + ...options, + ...params, + }) + } +} + export class Oauth extends HeyApiClient { /** * OAuth authorize @@ -3012,98 +3146,6 @@ export class Telemetry extends HeyApiClient { } } -export class Remote extends HeyApiClient { - /** - * Enable remote connection - * - * Enable WebSocket connection to UserConnectionDO for real-time session relay and commands. - */ - public enable( - parameters?: { - directory?: string - workspace?: string - }, - options?: Options, - ) { - const params = buildClientParams( - [parameters], - [ - { - args: [ - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ], - ) - return (options?.client ?? this.client).post({ - url: "/remote/enable", - ...options, - ...params, - }) - } - - /** - * Disable remote connection - * - * Close the remote WebSocket connection to UserConnectionDO. - */ - public disable( - parameters?: { - directory?: string - workspace?: string - }, - options?: Options, - ) { - const params = buildClientParams( - [parameters], - [ - { - args: [ - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ], - ) - return (options?.client ?? this.client).post({ - url: "/remote/disable", - ...options, - ...params, - }) - } - - /** - * Get remote connection status - * - * Get the current state of the remote WebSocket connection. - */ - public status( - parameters?: { - directory?: string - workspace?: string - }, - options?: Options, - ) { - const params = buildClientParams( - [parameters], - [ - { - args: [ - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ], - ) - return (options?.client ?? this.client).get({ - url: "/remote/status", - ...options, - ...params, - }) - } -} - export class CommitMessage extends HeyApiClient { /** * Generate commit message @@ -5289,102 +5331,6 @@ export class Event extends HeyApiClient { } } -export class Network extends HeyApiClient { - /** - * List pending network waits - * - * Get all pending network reconnect requests across all sessions. - */ - public list( - parameters?: { - directory?: string - workspace?: string - }, - options?: Options, - ) { - const params = buildClientParams( - [parameters], - [ - { - args: [ - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ], - ) - return (options?.client ?? this.client).get({ - url: "/network", - ...options, - ...params, - }) - } - - /** - * Resume after network wait - * - * Resume a pending session after reconnecting network-dependent services. - */ - public reply( - parameters: { - requestID: string - directory?: string - workspace?: string - }, - options?: Options, - ) { - const params = buildClientParams( - [parameters], - [ - { - args: [ - { in: "path", key: "requestID" }, - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ], - ) - return (options?.client ?? this.client).post({ - url: "/network/{requestID}/reply", - ...options, - ...params, - }) - } - - /** - * Reject network resume request - * - * Stop a pending session instead of resuming after network reconnect. - */ - public reject( - parameters: { - requestID: string - directory?: string - workspace?: string - }, - options?: Options, - ) { - const params = buildClientParams( - [parameters], - [ - { - args: [ - { in: "path", key: "requestID" }, - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ], - ) - return (options?.client ?? this.client).post({ - url: "/network/{requestID}/reject", - ...options, - ...params, - }) - } -} - export class KiloClient extends HeyApiClient { public static readonly __registry = new HeyApiRegistry() @@ -5398,6 +5344,11 @@ export class KiloClient extends HeyApiClient { return (this._global ??= new Global({ client: this.client })) } + private _remote?: Remote + get remote(): Remote { + return (this._remote ??= new Remote({ client: this.client })) + } + private _auth?: Auth get auth(): Auth { return (this._auth ??= new Auth({ client: this.client })) @@ -5453,6 +5404,11 @@ export class KiloClient extends HeyApiClient { return (this._question ??= new Question({ client: this.client })) } + private _network?: Network + get network(): Network { + return (this._network ??= new Network({ client: this.client })) + } + private _provider?: Provider get provider(): Provider { return (this._provider ??= new Provider({ client: this.client })) @@ -5463,11 +5419,6 @@ export class KiloClient extends HeyApiClient { return (this._telemetry ??= new Telemetry({ client: this.client })) } - private _remote?: Remote - get remote(): Remote { - return (this._remote ??= new Remote({ client: this.client })) - } - private _commitMessage?: CommitMessage get commitMessage(): CommitMessage { return (this._commitMessage ??= new CommitMessage({ client: this.client })) @@ -5547,9 +5498,4 @@ export class KiloClient extends HeyApiClient { get event(): Event { return (this._event ??= new Event({ client: this.client })) } - - private _network?: Network - get network(): Network { - return (this._network ??= new Network({ client: this.client })) - } } diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts index 170bbabed1..c611d3f3a1 100644 --- a/packages/sdk/js/src/v2/gen/types.gen.ts +++ b/packages/sdk/js/src/v2/gen/types.gen.ts @@ -97,6 +97,114 @@ export type EventFileEdited = { } } +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 SessionNetworkWait = { + id: string + sessionID: string + message: string + restored: boolean + time: { + created: number + } +} + +export type EventSessionNetworkAsked = { + type: "session.network.asked" + properties: SessionNetworkWait +} + +export type EventSessionNetworkReplied = { + type: "session.network.replied" + properties: { + sessionID: string + requestID: string + } +} + +export type EventSessionNetworkRejected = { + type: "session.network.rejected" + properties: { + sessionID: string + requestID: string + } +} + +export type EventSessionNetworkRestored = { + type: "session.network.restored" + properties: { + sessionID: string + requestID: string + } +} + export type OutputFormatText = { type: "text" } @@ -738,75 +846,6 @@ export type EventTodoUpdated = { } } -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: { @@ -1018,6 +1057,16 @@ export type Event = | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited + | EventTuiPromptAppend + | EventTuiCommandExecute + | EventTuiToastShow + | EventTuiSessionSelect + | EventMcpToolsChanged + | EventMcpBrowserOpenFailed + | EventSessionNetworkAsked + | EventSessionNetworkReplied + | EventSessionNetworkRejected + | EventSessionNetworkRestored | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated @@ -1030,19 +1079,9 @@ export type Event = | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected - | EventSessionNetworkAsked - | EventSessionNetworkReplied - | EventSessionNetworkRejected - | EventSessionNetworkRestored | EventSessionCompacted | EventFileWatcherUpdated | EventTodoUpdated - | EventTuiPromptAppend - | EventTuiCommandExecute - | EventTuiToastShow - | EventTuiSessionSelect - | EventMcpToolsChanged - | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated @@ -1286,7 +1325,7 @@ export type ProviderConfig = { */ setCacheKey?: boolean /** - * Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout. + * Timeout in milliseconds for requests to this provider. Default is 120000 (2 minutes). Set to false to disable timeout. */ timeout?: number | false [key: string]: unknown | string | boolean | number | false | undefined @@ -2003,45 +2042,6 @@ export type FormatterStatus = { enabled: boolean } -export type SessionNetworkWait = { - id: string - sessionID: string - message: string - restored: boolean - time: { - created: number - } -} - -export type EventSessionNetworkAsked = { - type: "session.network.asked" - properties: SessionNetworkWait -} - -export type EventSessionNetworkReplied = { - type: "session.network.replied" - properties: { - sessionID: string - requestID: string - } -} - -export type EventSessionNetworkRejected = { - type: "session.network.rejected" - properties: { - sessionID: string - requestID: string - } -} - -export type EventSessionNetworkRestored = { - type: "session.network.restored" - properties: { - sessionID: string - requestID: string - } -} - export type GlobalHealthData = { body?: never path?: never @@ -2134,6 +2134,63 @@ export type GlobalDisposeResponses = { export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses] +export type RemoteEnableData = { + body?: never + path?: never + query?: never + url: "/remote/enable" +} + +export type RemoteEnableResponses = { + /** + * Remote connection enabled + */ + 200: { + enabled: boolean + connected: boolean + } +} + +export type RemoteEnableResponse = RemoteEnableResponses[keyof RemoteEnableResponses] + +export type RemoteDisableData = { + body?: never + path?: never + query?: never + url: "/remote/disable" +} + +export type RemoteDisableResponses = { + /** + * Remote connection disabled + */ + 200: { + enabled: boolean + connected: boolean + } +} + +export type RemoteDisableResponse = RemoteDisableResponses[keyof RemoteDisableResponses] + +export type RemoteStatusData = { + body?: never + path?: never + query?: never + url: "/remote/status" +} + +export type RemoteStatusResponses = { + /** + * Remote connection status + */ + 200: { + enabled: boolean + connected: boolean + } +} + +export type RemoteStatusResponse = RemoteStatusResponses[keyof RemoteStatusResponses] + export type AuthRemoveData = { body?: never path: { @@ -4292,6 +4349,93 @@ export type QuestionRejectResponses = { export type QuestionRejectResponse = QuestionRejectResponses[keyof QuestionRejectResponses] +export type NetworkListData = { + body?: never + path?: never + query?: { + directory?: string + workspace?: string + } + url: "/network" +} + +export type NetworkListResponses = { + /** + * List of pending network reconnect requests + */ + 200: Array +} + +export type NetworkListResponse = NetworkListResponses[keyof NetworkListResponses] + +export type NetworkReplyData = { + body?: never + path: { + requestID: string + } + query?: { + directory?: string + workspace?: string + } + url: "/network/{requestID}/reply" +} + +export type NetworkReplyErrors = { + /** + * Bad request + */ + 400: BadRequestError + /** + * Not found + */ + 404: NotFoundError +} + +export type NetworkReplyError = NetworkReplyErrors[keyof NetworkReplyErrors] + +export type NetworkReplyResponses = { + /** + * Network wait resumed successfully + */ + 200: boolean +} + +export type NetworkReplyResponse = NetworkReplyResponses[keyof NetworkReplyResponses] + +export type NetworkRejectData = { + body?: never + path: { + requestID: string + } + query?: { + directory?: string + workspace?: string + } + url: "/network/{requestID}/reject" +} + +export type NetworkRejectErrors = { + /** + * Bad request + */ + 400: BadRequestError + /** + * Not found + */ + 404: NotFoundError +} + +export type NetworkRejectError = NetworkRejectErrors[keyof NetworkRejectErrors] + +export type NetworkRejectResponses = { + /** + * Network wait rejected successfully + */ + 200: boolean +} + +export type NetworkRejectResponse = NetworkRejectResponses[keyof NetworkRejectResponses] + export type ProviderListData = { body?: never path?: never @@ -4522,72 +4666,6 @@ export type TelemetryCaptureResponses = { export type TelemetryCaptureResponse = TelemetryCaptureResponses[keyof TelemetryCaptureResponses] -export type RemoteEnableData = { - body?: never - path?: never - query?: { - directory?: string - workspace?: string - } - url: "/remote/enable" -} - -export type RemoteEnableResponses = { - /** - * Remote connection enabled - */ - 200: { - enabled: boolean - connected: boolean - } -} - -export type RemoteEnableResponse = RemoteEnableResponses[keyof RemoteEnableResponses] - -export type RemoteDisableData = { - body?: never - path?: never - query?: { - directory?: string - workspace?: string - } - url: "/remote/disable" -} - -export type RemoteDisableResponses = { - /** - * Remote connection disabled - */ - 200: { - enabled: boolean - connected: boolean - } -} - -export type RemoteDisableResponse = RemoteDisableResponses[keyof RemoteDisableResponses] - -export type RemoteStatusData = { - body?: never - path?: never - query?: { - directory?: string - workspace?: string - } - url: "/remote/status" -} - -export type RemoteStatusResponses = { - /** - * Remote connection status - */ - 200: { - enabled: boolean - connected: boolean - } -} - -export type RemoteStatusResponse = RemoteStatusResponses[keyof RemoteStatusResponses] - export type CommitMessageGenerateData = { body?: { /** @@ -6310,90 +6388,3 @@ export type EventSubscribeResponses = { } export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses] - -export type NetworkListData = { - body?: never - path?: never - query?: { - directory?: string - workspace?: string - } - url: "/network" -} - -export type NetworkListResponses = { - /** - * List of pending network reconnect requests - */ - 200: Array -} - -export type NetworkListResponse = NetworkListResponses[keyof NetworkListResponses] - -export type NetworkReplyData = { - body?: never - path: { - requestID: string - } - query?: { - directory?: string - workspace?: string - } - url: "/network/{requestID}/reply" -} - -export type NetworkReplyErrors = { - /** - * Bad request - */ - 400: BadRequestError - /** - * Not found - */ - 404: NotFoundError -} - -export type NetworkReplyError = NetworkReplyErrors[keyof NetworkReplyErrors] - -export type NetworkReplyResponses = { - /** - * Network wait resumed successfully - */ - 200: boolean -} - -export type NetworkReplyResponse = NetworkReplyResponses[keyof NetworkReplyResponses] - -export type NetworkRejectData = { - body?: never - path: { - requestID: string - } - query?: { - directory?: string - workspace?: string - } - url: "/network/{requestID}/reject" -} - -export type NetworkRejectErrors = { - /** - * Bad request - */ - 400: BadRequestError - /** - * Not found - */ - 404: NotFoundError -} - -export type NetworkRejectError = NetworkRejectErrors[keyof NetworkRejectErrors] - -export type NetworkRejectResponses = { - /** - * Network wait rejected successfully - */ - 200: boolean -} - -export type NetworkRejectResponse = NetworkRejectResponses[keyof NetworkRejectResponses] diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 0b8216ffd3..c544efa39f 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -27,7 +27,10 @@ "type": "string" } }, - "required": ["healthy", "version"] + "required": [ + "healthy", + "version" + ] } } } @@ -158,6 +161,117 @@ ] } }, + "/remote/enable": { + "post": { + "operationId": "remote.enable", + "summary": "Enable remote connection", + "description": "Enable WebSocket connection to UserConnectionDO for real-time session relay and commands.", + "responses": { + "200": { + "description": "Remote connection enabled", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "connected": { + "type": "boolean" + } + }, + "required": [ + "enabled", + "connected" + ] + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.remote.enable({\n ...\n})" + } + ] + } + }, + "/remote/disable": { + "post": { + "operationId": "remote.disable", + "summary": "Disable remote connection", + "description": "Close the remote WebSocket connection to UserConnectionDO.", + "responses": { + "200": { + "description": "Remote connection disabled", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "connected": { + "type": "boolean" + } + }, + "required": [ + "enabled", + "connected" + ] + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.remote.disable({\n ...\n})" + } + ] + } + }, + "/remote/status": { + "get": { + "operationId": "remote.status", + "summary": "Get remote connection status", + "description": "Get the current state of the remote WebSocket connection.", + "responses": { + "200": { + "description": "Remote connection status", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "connected": { + "type": "boolean" + } + }, + "required": [ + "enabled", + "connected" + ] + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.remote.status({\n ...\n})" + } + ] + } + }, "/auth/{providerID}": { "put": { "operationId": "auth.set", @@ -742,7 +856,10 @@ "type": "number" } }, - "required": ["rows", "cols"] + "required": [ + "rows", + "cols" + ] } } } @@ -1013,7 +1130,10 @@ "type": "string" } }, - "required": ["path", "message"] + "required": [ + "path", + "message" + ] } } } @@ -1073,7 +1193,10 @@ } } }, - "required": ["providers", "default"] + "required": [ + "providers", + "default" + ] } } } @@ -1280,7 +1403,11 @@ ] } }, - "required": ["type", "branch", "extra"] + "required": [ + "type", + "branch", + "extra" + ] } } } @@ -2207,7 +2334,9 @@ ], "summary": "Get session", "description": "Retrieve detailed information about a specific Kilo session.", - "tags": ["Session"], + "tags": [ + "Session" + ], "responses": { "200": { "description": "Get session", @@ -2434,7 +2563,9 @@ } ], "summary": "Get session children", - "tags": ["Session"], + "tags": [ + "Session" + ], "description": "Retrieve all child sessions that were forked from the specified parent session.", "responses": { "200": { @@ -2631,7 +2762,11 @@ "pattern": "^msg.*" } }, - "required": ["modelID", "providerID", "messageID"] + "required": [ + "modelID", + "providerID", + "messageID" + ] } } } @@ -3055,7 +3190,10 @@ "type": "boolean" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] } } } @@ -3125,7 +3263,10 @@ } } }, - "required": ["info", "parts"] + "required": [ + "info", + "parts" + ] } } } @@ -3206,7 +3347,10 @@ } } }, - "required": ["info", "parts"] + "required": [ + "info", + "parts" + ] } } } @@ -3252,7 +3396,10 @@ "type": "string" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] }, "agent": { "type": "string" @@ -3322,7 +3469,9 @@ } } }, - "required": ["parts"] + "required": [ + "parts" + ] } } } @@ -3392,7 +3541,10 @@ } } }, - "required": ["info", "parts"] + "required": [ + "info", + "parts" + ] } } } @@ -3759,7 +3911,10 @@ "type": "string" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] }, "agent": { "type": "string" @@ -3829,7 +3984,9 @@ } } }, - "required": ["parts"] + "required": [ + "parts" + ] } } } @@ -3890,7 +4047,10 @@ } } }, - "required": ["info", "parts"] + "required": [ + "info", + "parts" + ] } } } @@ -3968,13 +4128,20 @@ "$ref": "#/components/schemas/FilePartSource" } }, - "required": ["type", "mime", "url"] + "required": [ + "type", + "mime", + "url" + ] } ] } } }, - "required": ["arguments", "command"] + "required": [ + "arguments", + "command" + ] } } } @@ -4068,13 +4235,19 @@ "type": "string" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] }, "command": { "type": "string" } }, - "required": ["agent", "command"] + "required": [ + "agent", + "command" + ] } } } @@ -4163,7 +4336,9 @@ "pattern": "^prt.*" } }, - "required": ["messageID"] + "required": [ + "messageID" + ] } } } @@ -4323,10 +4498,16 @@ "properties": { "response": { "type": "string", - "enum": ["once", "always", "reject"] + "enum": [ + "once", + "always", + "reject" + ] } }, - "required": ["response"] + "required": [ + "response" + ] } } } @@ -4472,13 +4653,19 @@ "properties": { "reply": { "type": "string", - "enum": ["once", "always", "reject"] + "enum": [ + "once", + "always", + "reject" + ] }, "message": { "type": "string" } }, - "required": ["reply"] + "required": [ + "reply" + ] } } } @@ -4627,6 +4814,90 @@ ] } }, + "/permission/allow-everything": { + "post": { + "operationId": "permission.allowEverything", + "parameters": [ + { + "in": "query", + "name": "directory", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "workspace", + "schema": { + "type": "string" + } + } + ], + "summary": "Allow everything", + "description": "Enable or disable allowing all permissions without prompts.", + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestError" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundError" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enable": { + "type": "boolean" + }, + "requestID": { + "type": "string" + }, + "sessionID": { + "type": "string" + } + }, + "required": [ + "enable" + ] + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.permission.allowEverything({\n ...\n})" + } + ] + } + }, "/question": { "get": { "operationId": "question.list", @@ -4746,7 +5017,9 @@ } } }, - "required": ["answers"] + "required": [ + "answers" + ] } } } @@ -4828,6 +5101,188 @@ ] } }, + "/network": { + "get": { + "operationId": "network.list", + "parameters": [ + { + "in": "query", + "name": "directory", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "workspace", + "schema": { + "type": "string" + } + } + ], + "summary": "List pending network waits", + "description": "Get all pending network reconnect requests across all sessions.", + "responses": { + "200": { + "description": "List of pending network reconnect requests", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SessionNetworkWait" + } + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.network.list({\n ...\n})" + } + ] + } + }, + "/network/{requestID}/reply": { + "post": { + "operationId": "network.reply", + "parameters": [ + { + "in": "query", + "name": "directory", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "workspace", + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "requestID", + "schema": { + "type": "string" + }, + "required": true + } + ], + "summary": "Resume after network wait", + "description": "Resume a pending session after reconnecting network-dependent services.", + "responses": { + "200": { + "description": "Network wait resumed successfully", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestError" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundError" + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.network.reply({\n ...\n})" + } + ] + } + }, + "/network/{requestID}/reject": { + "post": { + "operationId": "network.reject", + "parameters": [ + { + "in": "query", + "name": "directory", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "workspace", + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "requestID", + "schema": { + "type": "string" + }, + "required": true + } + ], + "summary": "Reject network resume request", + "description": "Stop a pending session instead of resuming after network reconnect.", + "responses": { + "200": { + "description": "Network wait rejected successfully", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestError" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundError" + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.network.reject({\n ...\n})" + } + ] + } + }, "/provider": { "get": { "operationId": "provider.list", @@ -4923,10 +5378,15 @@ "properties": { "field": { "type": "string", - "enum": ["reasoning_content", "reasoning_details"] + "enum": [ + "reasoning_content", + "reasoning_details" + ] } }, - "required": ["field"], + "required": [ + "field" + ], "additionalProperties": false } ] @@ -4962,10 +5422,16 @@ "type": "number" } }, - "required": ["input", "output"] + "required": [ + "input", + "output" + ] } }, - "required": ["input", "output"] + "required": [ + "input", + "output" + ] }, "limit": { "type": "object", @@ -4980,7 +5446,10 @@ "type": "number" } }, - "required": ["context", "output"] + "required": [ + "context", + "output" + ] }, "modalities": { "type": "object", @@ -4989,39 +5458,70 @@ "type": "array", "items": { "type": "string", - "enum": ["text", "audio", "image", "video", "pdf"] + "enum": [ + "text", + "audio", + "image", + "video", + "pdf" + ] } }, "output": { "type": "array", "items": { "type": "string", - "enum": ["text", "audio", "image", "video", "pdf"] + "enum": [ + "text", + "audio", + "image", + "video", + "pdf" + ] } } }, - "required": ["input", "output"] + "required": [ + "input", + "output" + ] }, "recommendedIndex": { "type": "number" }, "prompt": { "type": "string", - "enum": ["codex", "gemini", "beast", "anthropic", "trinity", "anthropic_without_todo"] + "enum": [ + "codex", + "gemini", + "beast", + "anthropic", + "trinity", + "anthropic_without_todo" + ] }, "isFree": { "type": "boolean" }, "ai_sdk_provider": { "type": "string", - "enum": ["anthropic", "openai", "openai-compatible", "openrouter"] + "enum": [ + "anthropic", + "openai", + "openai-compatible", + "openrouter" + ] }, "experimental": { "type": "boolean" }, "status": { "type": "string", - "enum": ["alpha", "beta", "deprecated"] + "enum": [ + "alpha", + "beta", + "deprecated" + ] }, "options": { "type": "object", @@ -5078,7 +5578,12 @@ } } }, - "required": ["name", "env", "id", "models"] + "required": [ + "name", + "env", + "id", + "models" + ] } }, "default": { @@ -5097,7 +5602,11 @@ } } }, - "required": ["all", "default", "connected"] + "required": [ + "all", + "default", + "connected" + ] } } } @@ -5224,7 +5733,9 @@ "type": "number" } }, - "required": ["method"] + "required": [ + "method" + ] } } } @@ -5304,7 +5815,9 @@ "type": "string" } }, - "required": ["method"] + "required": [ + "method" + ] } } } @@ -5379,7 +5892,9 @@ "additionalProperties": {} } }, - "required": ["event"] + "required": [ + "event" + ] } } } @@ -5392,156 +5907,6 @@ ] } }, - "/remote/enable": { - "post": { - "operationId": "remote.enable", - "parameters": [ - { - "in": "query", - "name": "directory", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "workspace", - "schema": { - "type": "string" - } - } - ], - "summary": "Enable remote connection", - "description": "Enable WebSocket connection to UserConnectionDO for real-time session relay and commands.", - "responses": { - "200": { - "description": "Remote connection enabled", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "connected": { - "type": "boolean" - } - }, - "required": ["enabled", "connected"] - } - } - } - } - }, - "x-codeSamples": [ - { - "lang": "js", - "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.remote.enable({\n ...\n})" - } - ] - } - }, - "/remote/disable": { - "post": { - "operationId": "remote.disable", - "parameters": [ - { - "in": "query", - "name": "directory", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "workspace", - "schema": { - "type": "string" - } - } - ], - "summary": "Disable remote connection", - "description": "Close the remote WebSocket connection to UserConnectionDO.", - "responses": { - "200": { - "description": "Remote connection disabled", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "connected": { - "type": "boolean" - } - }, - "required": ["enabled", "connected"] - } - } - } - } - }, - "x-codeSamples": [ - { - "lang": "js", - "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.remote.disable({\n ...\n})" - } - ] - } - }, - "/remote/status": { - "get": { - "operationId": "remote.status", - "parameters": [ - { - "in": "query", - "name": "directory", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "workspace", - "schema": { - "type": "string" - } - } - ], - "summary": "Get remote connection status", - "description": "Get the current state of the remote WebSocket connection.", - "responses": { - "200": { - "description": "Remote connection status", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "connected": { - "type": "boolean" - } - }, - "required": ["enabled", "connected"] - } - } - } - } - }, - "x-codeSamples": [ - { - "lang": "js", - "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.remote.status({\n ...\n})" - } - ] - } - }, "/commit-message": { "post": { "operationId": "commitMessage.generate", @@ -5575,7 +5940,9 @@ "type": "string" } }, - "required": ["message"] + "required": [ + "message" + ] } } } @@ -5609,11 +5976,13 @@ } }, "previousMessage": { - "description": "Previously generated message \u2014 triggers regeneration with a different result", + "description": "Previously generated message — triggers regeneration with a different result", "type": "string" } }, - "required": ["path"] + "required": [ + "path" + ] } } } @@ -5659,7 +6028,9 @@ "type": "string" } }, - "required": ["text"] + "required": [ + "text" + ] } } } @@ -5687,7 +6058,9 @@ "minLength": 1 } }, - "required": ["text"] + "required": [ + "text" + ] } } } @@ -5739,7 +6112,10 @@ "type": "boolean" } }, - "required": ["ok", "id"] + "required": [ + "ok", + "id" + ] } } } @@ -5803,7 +6179,13 @@ } } }, - "required": ["id", "worktree", "timeCreated", "timeUpdated", "sandboxes"] + "required": [ + "id", + "worktree", + "timeCreated", + "timeUpdated", + "sandboxes" + ] } } } @@ -5855,7 +6237,10 @@ "type": "boolean" } }, - "required": ["ok", "id"] + "required": [ + "ok", + "id" + ] } } } @@ -5930,7 +6315,11 @@ } } }, - "required": ["additions", "deletions", "files"] + "required": [ + "additions", + "deletions", + "files" + ] }, "revert": { "type": "object", @@ -5948,7 +6337,9 @@ "type": "string" } }, - "required": ["messageID"] + "required": [ + "messageID" + ] }, "permission": { "type": "object", @@ -5970,7 +6361,16 @@ "type": "number" } }, - "required": ["id", "projectID", "slug", "directory", "title", "version", "timeCreated", "timeUpdated"] + "required": [ + "id", + "projectID", + "slug", + "directory", + "title", + "version", + "timeCreated", + "timeUpdated" + ] } } } @@ -6022,7 +6422,10 @@ "type": "boolean" } }, - "required": ["ok", "id"] + "required": [ + "ok", + "id" + ] } } } @@ -6069,7 +6472,9 @@ "type": "number" } }, - "required": ["created"] + "required": [ + "created" + ] }, "agent": { "type": "string" @@ -6084,7 +6489,10 @@ "type": "string" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] }, "tools": { "type": "object", @@ -6096,7 +6504,12 @@ } } }, - "required": ["role", "time", "agent", "model"] + "required": [ + "role", + "time", + "agent", + "model" + ] }, { "type": "object", @@ -6115,7 +6528,9 @@ "type": "number" } }, - "required": ["created"] + "required": [ + "created" + ] }, "parentID": { "type": "string" @@ -6142,7 +6557,10 @@ "type": "string" } }, - "required": ["cwd", "root"] + "required": [ + "cwd", + "root" + ] }, "summary": { "type": "boolean" @@ -6175,10 +6593,18 @@ "type": "number" } }, - "required": ["read", "write"] + "required": [ + "read", + "write" + ] } }, - "required": ["input", "output", "reasoning", "cache"] + "required": [ + "input", + "output", + "reasoning", + "cache" + ] }, "structured": {}, "variant": { @@ -6204,7 +6630,12 @@ ] } }, - "required": ["id", "sessionID", "timeCreated", "data"] + "required": [ + "id", + "sessionID", + "timeCreated", + "data" + ] } } } @@ -6256,7 +6687,10 @@ "type": "boolean" } }, - "required": ["ok", "id"] + "required": [ + "ok", + "id" + ] } } } @@ -6318,7 +6752,9 @@ "type": "number" } }, - "required": ["start"] + "required": [ + "start" + ] }, "metadata": { "type": "object", @@ -6328,7 +6764,10 @@ "additionalProperties": {} } }, - "required": ["type", "text"] + "required": [ + "type", + "text" + ] }, { "type": "object", @@ -6357,10 +6796,16 @@ "type": "number" } }, - "required": ["start"] + "required": [ + "start" + ] } }, - "required": ["type", "text", "time"] + "required": [ + "type", + "text", + "time" + ] }, { "type": "object", @@ -6395,7 +6840,11 @@ "type": "string" } }, - "required": ["status", "input", "raw"] + "required": [ + "status", + "input", + "raw" + ] }, { "type": "object", @@ -6428,10 +6877,16 @@ "type": "number" } }, - "required": ["start"] + "required": [ + "start" + ] } }, - "required": ["status", "input", "time"] + "required": [ + "status", + "input", + "time" + ] }, { "type": "object", @@ -6473,10 +6928,20 @@ "type": "number" } }, - "required": ["start", "end"] + "required": [ + "start", + "end" + ] } }, - "required": ["status", "input", "output", "title", "metadata", "time"] + "required": [ + "status", + "input", + "output", + "title", + "metadata", + "time" + ] }, { "type": "object", @@ -6512,10 +6977,18 @@ "type": "number" } }, - "required": ["start", "end"] + "required": [ + "start", + "end" + ] } }, - "required": ["status", "input", "error", "time"] + "required": [ + "status", + "input", + "error", + "time" + ] } ] }, @@ -6527,12 +7000,22 @@ "additionalProperties": {} } }, - "required": ["type", "callID", "tool", "state"] + "required": [ + "type", + "callID", + "tool", + "state" + ] } ] } }, - "required": ["id", "messageID", "sessionID", "data"] + "required": [ + "id", + "messageID", + "sessionID", + "data" + ] } } } @@ -6598,7 +7081,9 @@ "type": "string" } }, - "required": ["location"] + "required": [ + "location" + ] } } } @@ -6664,7 +7149,9 @@ "type": "string" } }, - "required": ["name"] + "required": [ + "name" + ] } } } @@ -6730,11 +7217,17 @@ "type": "string" } }, - "required": ["id", "name", "role"] + "required": [ + "id", + "name", + "role" + ] } } }, - "required": ["email"] + "required": [ + "email" + ] }, "balance": { "anyOf": [ @@ -6745,7 +7238,9 @@ "type": "number" } }, - "required": ["balance"] + "required": [ + "balance" + ] }, { "type": "null" @@ -6763,7 +7258,11 @@ ] } }, - "required": ["profile", "balance", "currentOrgId"] + "required": [ + "profile", + "balance", + "currentOrgId" + ] } } } @@ -6847,7 +7346,9 @@ ] } }, - "required": ["organizationId"] + "required": [ + "organizationId" + ] } } } @@ -6975,7 +7476,9 @@ } } }, - "required": ["modes"] + "required": [ + "modes" + ] } } } @@ -7086,7 +7589,10 @@ "type": "number" } }, - "required": ["prefix", "suffix"] + "required": [ + "prefix", + "suffix" + ] } } } @@ -7149,7 +7655,10 @@ "type": "string" } }, - "required": ["actionText", "actionURL"] + "required": [ + "actionText", + "actionURL" + ] }, "showIn": { "type": "array", @@ -7161,7 +7670,11 @@ "type": "string" } }, - "required": ["id", "title", "message"] + "required": [ + "id", + "title", + "message" + ] } } } @@ -7304,7 +7817,9 @@ "type": "string" } }, - "required": ["sessionId"] + "required": [ + "sessionId" + ] } } } @@ -7350,7 +7865,14 @@ "anyOf": [ { "type": "string", - "enum": ["provisioned", "starting", "restarting", "running", "stopped", "destroying"] + "enum": [ + "provisioned", + "starting", + "restarting", + "running", + "stopped", + "destroying" + ] }, { "type": "null" @@ -7373,7 +7895,10 @@ "type": "number" } }, - "required": ["cpus", "memory_mb"] + "required": [ + "cpus", + "memory_mb" + ] }, "openclawVersion": { "anyOf": [ @@ -7415,7 +7940,9 @@ "type": "string" } }, - "required": ["status"] + "required": [ + "status" + ] } } } @@ -7473,7 +8000,12 @@ "type": "string" } }, - "required": ["apiKey", "userId", "userToken", "channelId"] + "required": [ + "apiKey", + "userId", + "userToken", + "channelId" + ] }, { "type": "null" @@ -7570,7 +8102,13 @@ "type": "number" } }, - "required": ["session_id", "title", "created_at", "updated_at", "version"] + "required": [ + "session_id", + "title", + "created_at", + "updated_at", + "version" + ] } }, "nextCursor": { @@ -7584,7 +8122,10 @@ ] } }, - "required": ["cliSessions", "nextCursor"] + "required": [ + "cliSessions", + "nextCursor" + ] } } } @@ -7654,7 +8195,9 @@ "type": "string" } }, - "required": ["text"] + "required": [ + "text" + ] }, "lines": { "type": "object", @@ -7663,7 +8206,9 @@ "type": "string" } }, - "required": ["text"] + "required": [ + "text" + ] }, "line_number": { "type": "number" @@ -7683,7 +8228,9 @@ "type": "string" } }, - "required": ["text"] + "required": [ + "text" + ] }, "start": { "type": "number" @@ -7692,11 +8239,21 @@ "type": "number" } }, - "required": ["match", "start", "end"] + "required": [ + "match", + "start", + "end" + ] } } }, - "required": ["path", "lines", "line_number", "absolute_offset", "submatches"] + "required": [ + "path", + "lines", + "line_number", + "absolute_offset", + "submatches" + ] } } } @@ -7742,7 +8299,10 @@ "name": "dirs", "schema": { "type": "string", - "enum": ["true", "false"] + "enum": [ + "true", + "false" + ] } }, { @@ -7750,7 +8310,10 @@ "name": "type", "schema": { "type": "string", - "enum": ["file", "directory"] + "enum": [ + "file", + "directory" + ] } }, { @@ -8099,7 +8662,10 @@ ] } }, - "required": ["name", "config"] + "required": [ + "name", + "config" + ] } } } @@ -8154,7 +8720,9 @@ "type": "string" } }, - "required": ["authorizationUrl"] + "required": [ + "authorizationUrl" + ] } } } @@ -8228,7 +8796,9 @@ "const": true } }, - "required": ["success"] + "required": [ + "success" + ] } } } @@ -8324,7 +8894,9 @@ "type": "string" } }, - "required": ["code"] + "required": [ + "code" + ] } } } @@ -8555,7 +9127,9 @@ "type": "string" } }, - "required": ["text"] + "required": [ + "text" + ] } } } @@ -8867,7 +9441,9 @@ "type": "string" } }, - "required": ["command"] + "required": [ + "command" + ] } } } @@ -8927,7 +9503,12 @@ }, "variant": { "type": "string", - "enum": ["info", "success", "warning", "error"] + "enum": [ + "info", + "success", + "warning", + "error" + ] }, "duration": { "description": "Duration in milliseconds", @@ -8935,7 +9516,10 @@ "type": "number" } }, - "required": ["message", "variant"] + "required": [ + "message", + "variant" + ] } } } @@ -9086,7 +9670,9 @@ "pattern": "^ses" } }, - "required": ["sessionID"] + "required": [ + "sessionID" + ] } } } @@ -9133,7 +9719,10 @@ }, "body": {} }, - "required": ["path", "body"] + "required": [ + "path", + "body" + ] } } } @@ -9418,7 +10007,12 @@ "level": { "description": "Log level", "type": "string", - "enum": ["debug", "info", "error", "warn"] + "enum": [ + "debug", + "info", + "error", + "warn" + ] }, "message": { "description": "Log message", @@ -9433,7 +10027,11 @@ "additionalProperties": {} } }, - "required": ["service", "level", "message"] + "required": [ + "service", + "level", + "message" + ] } } } @@ -9534,7 +10132,12 @@ "type": "string" } }, - "required": ["name", "description", "location", "content"] + "required": [ + "name", + "description", + "location", + "content" + ] } } } @@ -9677,188 +10280,6 @@ } ] } - }, - "/network": { - "get": { - "operationId": "network.list", - "parameters": [ - { - "in": "query", - "name": "directory", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "workspace", - "schema": { - "type": "string" - } - } - ], - "summary": "List pending network waits", - "description": "Get all pending network reconnect requests across all sessions.", - "responses": { - "200": { - "description": "List of pending network reconnect requests", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SessionNetworkWait" - } - } - } - } - } - }, - "x-codeSamples": [ - { - "lang": "js", - "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.network.list({\n ...\n})" - } - ] - } - }, - "/network/{requestID}/reply": { - "post": { - "operationId": "network.reply", - "parameters": [ - { - "in": "query", - "name": "directory", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "requestID", - "schema": { - "type": "string" - }, - "required": true - } - ], - "summary": "Resume after network wait", - "description": "Resume a pending session after reconnecting network-dependent services.", - "responses": { - "200": { - "description": "Network wait resumed successfully", - "content": { - "application/json": { - "schema": { - "type": "boolean" - } - } - } - }, - "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BadRequestError" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotFoundError" - } - } - } - } - }, - "x-codeSamples": [ - { - "lang": "js", - "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.network.reply({\n ...\n})" - } - ] - } - }, - "/network/{requestID}/reject": { - "post": { - "operationId": "network.reject", - "parameters": [ - { - "in": "query", - "name": "directory", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "workspace", - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "requestID", - "schema": { - "type": "string" - }, - "required": true - } - ], - "summary": "Reject network resume request", - "description": "Stop a pending session instead of resuming after network reconnect.", - "responses": { - "200": { - "description": "Network wait rejected successfully", - "content": { - "application/json": { - "schema": { - "type": "boolean" - } - } - } - }, - "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BadRequestError" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotFoundError" - } - } - } - } - }, - "x-codeSamples": [ - { - "lang": "js", - "source": "import { createKiloClient } from \"@kilocode/sdk\n\nconst client = createKiloClient()\nawait client.network.reject({\n ...\n})" - } - ] - } } }, "components": { @@ -9877,10 +10298,15 @@ "type": "string" } }, - "required": ["version"] + "required": [ + "version" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.installation.update-available": { "type": "object", @@ -9896,10 +10322,15 @@ "type": "string" } }, - "required": ["version"] + "required": [ + "version" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Project": { "type": "object", @@ -9953,7 +10384,10 @@ "type": "number" } }, - "required": ["created", "updated"] + "required": [ + "created", + "updated" + ] }, "sandboxes": { "type": "array", @@ -9962,7 +10396,12 @@ } } }, - "required": ["id", "worktree", "time", "sandboxes"] + "required": [ + "id", + "worktree", + "time", + "sandboxes" + ] }, "Event.project.updated": { "type": "object", @@ -9975,7 +10414,10 @@ "$ref": "#/components/schemas/Project" } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.server.instance.disposed": { "type": "object", @@ -9991,10 +10433,15 @@ "type": "string" } }, - "required": ["directory"] + "required": [ + "directory" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.server.connected": { "type": "object", @@ -10008,7 +10455,10 @@ "properties": {} } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.global.disposed": { "type": "object", @@ -10022,7 +10472,10 @@ "properties": {} } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.global.config.updated": { "type": "object", @@ -10036,7 +10489,10 @@ "properties": {} } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.lsp.client.diagnostics": { "type": "object", @@ -10055,10 +10511,16 @@ "type": "string" } }, - "required": ["serverID", "path"] + "required": [ + "serverID", + "path" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.lsp.updated": { "type": "object", @@ -10072,7 +10534,10 @@ "properties": {} } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.file.edited": { "type": "object", @@ -10088,10 +10553,345 @@ "type": "string" } }, - "required": ["file"] + "required": [ + "file" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] + }, + "Event.tui.prompt.append": { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "tui.prompt.append" + }, + "properties": { + "type": "object", + "properties": { + "text": { + "type": "string" + } + }, + "required": [ + "text" + ] + } + }, + "required": [ + "type", + "properties" + ] + }, + "Event.tui.command.execute": { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "tui.command.execute" + }, + "properties": { + "type": "object", + "properties": { + "command": { + "anyOf": [ + { + "type": "string", + "enum": [ + "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" + ] + }, + { + "type": "string" + } + ] + } + }, + "required": [ + "command" + ] + } + }, + "required": [ + "type", + "properties" + ] + }, + "Event.tui.toast.show": { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "tui.toast.show" + }, + "properties": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "message": { + "type": "string" + }, + "variant": { + "type": "string", + "enum": [ + "info", + "success", + "warning", + "error" + ] + }, + "duration": { + "description": "Duration in milliseconds", + "default": 5000, + "type": "number" + } + }, + "required": [ + "message", + "variant" + ] + } + }, + "required": [ + "type", + "properties" + ] + }, + "Event.tui.session.select": { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "tui.session.select" + }, + "properties": { + "type": "object", + "properties": { + "sessionID": { + "description": "Session ID to navigate to", + "type": "string", + "pattern": "^ses" + } + }, + "required": [ + "sessionID" + ] + } + }, + "required": [ + "type", + "properties" + ] + }, + "Event.mcp.tools.changed": { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "mcp.tools.changed" + }, + "properties": { + "type": "object", + "properties": { + "server": { + "type": "string" + } + }, + "required": [ + "server" + ] + } + }, + "required": [ + "type", + "properties" + ] + }, + "Event.mcp.browser.open.failed": { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "mcp.browser.open.failed" + }, + "properties": { + "type": "object", + "properties": { + "mcpName": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "mcpName", + "url" + ] + } + }, + "required": [ + "type", + "properties" + ] + }, + "SessionNetworkWait": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^que.*" + }, + "sessionID": { + "type": "string", + "pattern": "^ses.*" + }, + "message": { + "type": "string" + }, + "restored": { + "type": "boolean" + }, + "time": { + "type": "object", + "properties": { + "created": { + "type": "number" + } + }, + "required": [ + "created" + ] + } + }, + "required": [ + "id", + "sessionID", + "message", + "restored", + "time" + ] + }, + "Event.session.network.asked": { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "session.network.asked" + }, + "properties": { + "$ref": "#/components/schemas/SessionNetworkWait" + } + }, + "required": [ + "type", + "properties" + ] + }, + "Event.session.network.replied": { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "session.network.replied" + }, + "properties": { + "type": "object", + "properties": { + "sessionID": { + "type": "string" + }, + "requestID": { + "type": "string" + } + }, + "required": [ + "sessionID", + "requestID" + ] + } + }, + "required": [ + "type", + "properties" + ] + }, + "Event.session.network.rejected": { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "session.network.rejected" + }, + "properties": { + "type": "object", + "properties": { + "sessionID": { + "type": "string" + }, + "requestID": { + "type": "string" + } + }, + "required": [ + "sessionID", + "requestID" + ] + } + }, + "required": [ + "type", + "properties" + ] + }, + "Event.session.network.restored": { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "session.network.restored" + }, + "properties": { + "type": "object", + "properties": { + "sessionID": { + "type": "string" + }, + "requestID": { + "type": "string" + } + }, + "required": [ + "sessionID", + "requestID" + ] + } + }, + "required": [ + "type", + "properties" + ] }, "OutputFormatText": { "type": "object", @@ -10101,7 +10901,9 @@ "const": "text" } }, - "required": ["type"] + "required": [ + "type" + ] }, "JSONSchema": { "type": "object", @@ -10127,7 +10929,10 @@ "maximum": 9007199254740991 } }, - "required": ["type", "schema"] + "required": [ + "type", + "schema" + ] }, "OutputFormat": { "anyOf": [ @@ -10159,10 +10964,20 @@ }, "status": { "type": "string", - "enum": ["added", "deleted", "modified"] + "enum": [ + "added", + "deleted", + "modified" + ] } }, - "required": ["file", "before", "after", "additions", "deletions"] + "required": [ + "file", + "before", + "after", + "additions", + "deletions" + ] }, "UserMessage": { "type": "object", @@ -10184,7 +10999,9 @@ "type": "number" } }, - "required": ["created"] + "required": [ + "created" + ] }, "format": { "$ref": "#/components/schemas/OutputFormat" @@ -10205,7 +11022,9 @@ } } }, - "required": ["diffs"] + "required": [ + "diffs" + ] }, "agent": { "type": "string" @@ -10220,7 +11039,10 @@ "type": "string" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] }, "system": { "type": "string" @@ -10261,7 +11083,14 @@ } } }, - "required": ["id", "sessionID", "role", "time", "agent", "model"] + "required": [ + "id", + "sessionID", + "role", + "time", + "agent", + "model" + ] }, "ProviderAuthError": { "type": "object", @@ -10280,10 +11109,16 @@ "type": "string" } }, - "required": ["providerID", "message"] + "required": [ + "providerID", + "message" + ] } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "UnknownError": { "type": "object", @@ -10299,10 +11134,15 @@ "type": "string" } }, - "required": ["message"] + "required": [ + "message" + ] } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "MessageOutputLengthError": { "type": "object", @@ -10316,7 +11156,10 @@ "properties": {} } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "MessageAbortedError": { "type": "object", @@ -10332,10 +11175,15 @@ "type": "string" } }, - "required": ["message"] + "required": [ + "message" + ] } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "StructuredOutputError": { "type": "object", @@ -10354,10 +11202,16 @@ "type": "number" } }, - "required": ["message", "retries"] + "required": [ + "message", + "retries" + ] } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "ContextOverflowError": { "type": "object", @@ -10376,10 +11230,15 @@ "type": "string" } }, - "required": ["message"] + "required": [ + "message" + ] } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "APIError": { "type": "object", @@ -10422,10 +11281,16 @@ } } }, - "required": ["message", "isRetryable"] + "required": [ + "message", + "isRetryable" + ] } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "AssistantMessage": { "type": "object", @@ -10450,7 +11315,9 @@ "type": "number" } }, - "required": ["created"] + "required": [ + "created" + ] }, "error": { "anyOf": [ @@ -10502,7 +11369,10 @@ "type": "string" } }, - "required": ["cwd", "root"] + "required": [ + "cwd", + "root" + ] }, "summary": { "type": "boolean" @@ -10535,10 +11405,18 @@ "type": "number" } }, - "required": ["read", "write"] + "required": [ + "read", + "write" + ] } }, - "required": ["input", "output", "reasoning", "cache"] + "required": [ + "input", + "output", + "reasoning", + "cache" + ] }, "structured": {}, "variant": { @@ -10587,10 +11465,15 @@ "$ref": "#/components/schemas/Message" } }, - "required": ["info"] + "required": [ + "info" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.message.removed": { "type": "object", @@ -10609,10 +11492,16 @@ "type": "string" } }, - "required": ["sessionID", "messageID"] + "required": [ + "sessionID", + "messageID" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "TextPart": { "type": "object", @@ -10649,7 +11538,9 @@ "type": "number" } }, - "required": ["start"] + "required": [ + "start" + ] }, "metadata": { "type": "object", @@ -10659,7 +11550,13 @@ "additionalProperties": {} } }, - "required": ["id", "sessionID", "messageID", "type", "text"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "text" + ] }, "SubtaskPart": { "type": "object", @@ -10696,13 +11593,24 @@ "type": "string" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] }, "command": { "type": "string" } }, - "required": ["id", "sessionID", "messageID", "type", "prompt", "description", "agent"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "prompt", + "description", + "agent" + ] }, "ReasoningPart": { "type": "object", @@ -10740,10 +11648,19 @@ "type": "number" } }, - "required": ["start"] + "required": [ + "start" + ] } }, - "required": ["id", "sessionID", "messageID", "type", "text", "time"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "text", + "time" + ] }, "FilePartSourceText": { "type": "object", @@ -10762,7 +11679,11 @@ "maximum": 9007199254740991 } }, - "required": ["value", "start", "end"] + "required": [ + "value", + "start", + "end" + ] }, "FileSource": { "type": "object", @@ -10778,7 +11699,11 @@ "type": "string" } }, - "required": ["text", "type", "path"] + "required": [ + "text", + "type", + "path" + ] }, "Range": { "type": "object", @@ -10793,7 +11718,10 @@ "type": "number" } }, - "required": ["line", "character"] + "required": [ + "line", + "character" + ] }, "end": { "type": "object", @@ -10805,10 +11733,16 @@ "type": "number" } }, - "required": ["line", "character"] + "required": [ + "line", + "character" + ] } }, - "required": ["start", "end"] + "required": [ + "start", + "end" + ] }, "SymbolSource": { "type": "object", @@ -10835,7 +11769,14 @@ "maximum": 9007199254740991 } }, - "required": ["text", "type", "path", "range", "name", "kind"] + "required": [ + "text", + "type", + "path", + "range", + "name", + "kind" + ] }, "ResourceSource": { "type": "object", @@ -10854,7 +11795,12 @@ "type": "string" } }, - "required": ["text", "type", "clientName", "uri"] + "required": [ + "text", + "type", + "clientName", + "uri" + ] }, "FilePartSource": { "anyOf": [ @@ -10898,7 +11844,14 @@ "$ref": "#/components/schemas/FilePartSource" } }, - "required": ["id", "sessionID", "messageID", "type", "mime", "url"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "mime", + "url" + ] }, "ToolStatePending": { "type": "object", @@ -10918,7 +11871,11 @@ "type": "string" } }, - "required": ["status", "input", "raw"] + "required": [ + "status", + "input", + "raw" + ] }, "ToolStateRunning": { "type": "object", @@ -10951,10 +11908,16 @@ "type": "number" } }, - "required": ["start"] + "required": [ + "start" + ] } }, - "required": ["status", "input", "time"] + "required": [ + "status", + "input", + "time" + ] }, "ToolStateCompleted": { "type": "object", @@ -10996,7 +11959,10 @@ "type": "number" } }, - "required": ["start", "end"] + "required": [ + "start", + "end" + ] }, "attachments": { "type": "array", @@ -11005,7 +11971,14 @@ } } }, - "required": ["status", "input", "output", "title", "metadata", "time"] + "required": [ + "status", + "input", + "output", + "title", + "metadata", + "time" + ] }, "ToolStateError": { "type": "object", @@ -11041,10 +12014,18 @@ "type": "number" } }, - "required": ["start", "end"] + "required": [ + "start", + "end" + ] } }, - "required": ["status", "input", "error", "time"] + "required": [ + "status", + "input", + "error", + "time" + ] }, "ToolState": { "anyOf": [ @@ -11095,7 +12076,15 @@ "additionalProperties": {} } }, - "required": ["id", "sessionID", "messageID", "type", "callID", "tool", "state"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "callID", + "tool", + "state" + ] }, "StepStartPart": { "type": "object", @@ -11117,7 +12106,12 @@ "type": "string" } }, - "required": ["id", "sessionID", "messageID", "type"] + "required": [ + "id", + "sessionID", + "messageID", + "type" + ] }, "StepFinishPart": { "type": "object", @@ -11169,13 +12163,29 @@ "type": "number" } }, - "required": ["read", "write"] + "required": [ + "read", + "write" + ] } }, - "required": ["input", "output", "reasoning", "cache"] + "required": [ + "input", + "output", + "reasoning", + "cache" + ] } }, - "required": ["id", "sessionID", "messageID", "type", "reason", "cost", "tokens"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "reason", + "cost", + "tokens" + ] }, "SnapshotPart": { "type": "object", @@ -11197,7 +12207,13 @@ "type": "string" } }, - "required": ["id", "sessionID", "messageID", "type", "snapshot"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "snapshot" + ] }, "PatchPart": { "type": "object", @@ -11225,7 +12241,14 @@ } } }, - "required": ["id", "sessionID", "messageID", "type", "hash", "files"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "hash", + "files" + ] }, "AgentPart": { "type": "object", @@ -11263,10 +12286,20 @@ "maximum": 9007199254740991 } }, - "required": ["value", "start", "end"] + "required": [ + "value", + "start", + "end" + ] } }, - "required": ["id", "sessionID", "messageID", "type", "name"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "name" + ] }, "RetryPart": { "type": "object", @@ -11297,10 +12330,20 @@ "type": "number" } }, - "required": ["created"] + "required": [ + "created" + ] } }, - "required": ["id", "sessionID", "messageID", "type", "attempt", "error", "time"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "attempt", + "error", + "time" + ] }, "CompactionPart": { "type": "object", @@ -11325,7 +12368,13 @@ "type": "boolean" } }, - "required": ["id", "sessionID", "messageID", "type", "auto"] + "required": [ + "id", + "sessionID", + "messageID", + "type", + "auto" + ] }, "Part": { "anyOf": [ @@ -11381,10 +12430,15 @@ "$ref": "#/components/schemas/Part" } }, - "required": ["part"] + "required": [ + "part" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.message.part.delta": { "type": "object", @@ -11412,10 +12466,19 @@ "type": "string" } }, - "required": ["sessionID", "messageID", "partID", "field", "delta"] + "required": [ + "sessionID", + "messageID", + "partID", + "field", + "delta" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.message.part.removed": { "type": "object", @@ -11437,10 +12500,17 @@ "type": "string" } }, - "required": ["sessionID", "messageID", "partID"] + "required": [ + "sessionID", + "messageID", + "partID" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "PermissionRequest": { "type": "object", @@ -11485,10 +12555,20 @@ "type": "string" } }, - "required": ["messageID", "callID"] + "required": [ + "messageID", + "callID" + ] } }, - "required": ["id", "sessionID", "permission", "patterns", "metadata", "always"] + "required": [ + "id", + "sessionID", + "permission", + "patterns", + "metadata", + "always" + ] }, "Event.permission.asked": { "type": "object", @@ -11501,7 +12581,10 @@ "$ref": "#/components/schemas/PermissionRequest" } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.permission.replied": { "type": "object", @@ -11521,13 +12604,24 @@ }, "reply": { "type": "string", - "enum": ["once", "always", "reject"] + "enum": [ + "once", + "always", + "reject" + ] } }, - "required": ["sessionID", "requestID", "reply"] + "required": [ + "sessionID", + "requestID", + "reply" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "SessionStatus": { "anyOf": [ @@ -11539,7 +12633,9 @@ "const": "idle" } }, - "required": ["type"] + "required": [ + "type" + ] }, { "type": "object", @@ -11558,7 +12654,12 @@ "type": "number" } }, - "required": ["type", "attempt", "message", "next"] + "required": [ + "type", + "attempt", + "message", + "next" + ] }, { "type": "object", @@ -11568,7 +12669,9 @@ "const": "busy" } }, - "required": ["type"] + "required": [ + "type" + ] }, { "type": "object", @@ -11584,7 +12687,11 @@ "type": "string" } }, - "required": ["type", "requestID", "message"] + "required": [ + "type", + "requestID", + "message" + ] } ] }, @@ -11605,10 +12712,16 @@ "$ref": "#/components/schemas/SessionStatus" } }, - "required": ["sessionID", "status"] + "required": [ + "sessionID", + "status" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.idle": { "type": "object", @@ -11624,10 +12737,15 @@ "type": "string" } }, - "required": ["sessionID"] + "required": [ + "sessionID" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "QuestionOption": { "type": "object", @@ -11645,7 +12763,10 @@ "type": "string" } }, - "required": ["label", "description"] + "required": [ + "label", + "description" + ] }, "QuestionInfo": { "type": "object", @@ -11674,7 +12795,11 @@ "type": "boolean" } }, - "required": ["question", "header", "options"] + "required": [ + "question", + "header", + "options" + ] }, "QuestionRequest": { "type": "object", @@ -11704,10 +12829,17 @@ "type": "string" } }, - "required": ["messageID", "callID"] + "required": [ + "messageID", + "callID" + ] } }, - "required": ["id", "sessionID", "questions"] + "required": [ + "id", + "sessionID", + "questions" + ] }, "Event.question.asked": { "type": "object", @@ -11720,7 +12852,10 @@ "$ref": "#/components/schemas/QuestionRequest" } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "QuestionAnswer": { "type": "array", @@ -11751,10 +12886,17 @@ } } }, - "required": ["sessionID", "requestID", "answers"] + "required": [ + "sessionID", + "requestID", + "answers" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.question.rejected": { "type": "object", @@ -11773,10 +12915,16 @@ "type": "string" } }, - "required": ["sessionID", "requestID"] + "required": [ + "sessionID", + "requestID" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.compacted": { "type": "object", @@ -11792,10 +12940,15 @@ "type": "string" } }, - "required": ["sessionID"] + "required": [ + "sessionID" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.file.watcher.updated": { "type": "object", @@ -11827,10 +12980,16 @@ ] } }, - "required": ["file", "event"] + "required": [ + "file", + "event" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Todo": { "type": "object", @@ -11848,7 +13007,11 @@ "type": "string" } }, - "required": ["content", "status", "priority"] + "required": [ + "content", + "status", + "priority" + ] }, "Event.todo.updated": { "type": "object", @@ -11870,166 +13033,16 @@ } } }, - "required": ["sessionID", "todos"] + "required": [ + "sessionID", + "todos" + ] } }, - "required": ["type", "properties"] - }, - "Event.tui.prompt.append": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "tui.prompt.append" - }, - "properties": { - "type": "object", - "properties": { - "text": { - "type": "string" - } - }, - "required": ["text"] - } - }, - "required": ["type", "properties"] - }, - "Event.tui.command.execute": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "tui.command.execute" - }, - "properties": { - "type": "object", - "properties": { - "command": { - "anyOf": [ - { - "type": "string", - "enum": [ - "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" - ] - }, - { - "type": "string" - } - ] - } - }, - "required": ["command"] - } - }, - "required": ["type", "properties"] - }, - "Event.tui.toast.show": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "tui.toast.show" - }, - "properties": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "message": { - "type": "string" - }, - "variant": { - "type": "string", - "enum": ["info", "success", "warning", "error"] - }, - "duration": { - "description": "Duration in milliseconds", - "default": 5000, - "type": "number" - } - }, - "required": ["message", "variant"] - } - }, - "required": ["type", "properties"] - }, - "Event.tui.session.select": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "tui.session.select" - }, - "properties": { - "type": "object", - "properties": { - "sessionID": { - "description": "Session ID to navigate to", - "type": "string", - "pattern": "^ses" - } - }, - "required": ["sessionID"] - } - }, - "required": ["type", "properties"] - }, - "Event.mcp.tools.changed": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "mcp.tools.changed" - }, - "properties": { - "type": "object", - "properties": { - "server": { - "type": "string" - } - }, - "required": ["server"] - } - }, - "required": ["type", "properties"] - }, - "Event.mcp.browser.open.failed": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "mcp.browser.open.failed" - }, - "properties": { - "type": "object", - "properties": { - "mcpName": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "required": ["mcpName", "url"] - } - }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.command.executed": { "type": "object", @@ -12056,14 +13069,26 @@ "pattern": "^msg.*" } }, - "required": ["name", "sessionID", "arguments", "messageID"] + "required": [ + "name", + "sessionID", + "arguments", + "messageID" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "PermissionAction": { "type": "string", - "enum": ["allow", "deny", "ask"] + "enum": [ + "allow", + "deny", + "ask" + ] }, "PermissionRule": { "type": "object", @@ -12078,7 +13103,11 @@ "$ref": "#/components/schemas/PermissionAction" } }, - "required": ["permission", "pattern", "action"] + "required": [ + "permission", + "pattern", + "action" + ] }, "PermissionRuleset": { "type": "array", @@ -12137,14 +13166,26 @@ }, "status": { "type": "string", - "enum": ["added", "deleted", "modified"] + "enum": [ + "added", + "deleted", + "modified" + ] } }, - "required": ["file", "additions", "deletions"] + "required": [ + "file", + "additions", + "deletions" + ] } } }, - "required": ["additions", "deletions", "files"] + "required": [ + "additions", + "deletions", + "files" + ] }, "share": { "type": "object", @@ -12153,7 +13194,9 @@ "type": "string" } }, - "required": ["url"] + "required": [ + "url" + ] }, "title": { "type": "string" @@ -12177,7 +13220,10 @@ "type": "number" } }, - "required": ["created", "updated"] + "required": [ + "created", + "updated" + ] }, "permission": { "$ref": "#/components/schemas/PermissionRuleset" @@ -12198,10 +13244,20 @@ "type": "string" } }, - "required": ["messageID"] + "required": [ + "messageID" + ] } }, - "required": ["id", "slug", "projectID", "directory", "title", "version", "time"] + "required": [ + "id", + "slug", + "projectID", + "directory", + "title", + "version", + "time" + ] }, "Event.session.created": { "type": "object", @@ -12217,10 +13273,15 @@ "$ref": "#/components/schemas/Session" } }, - "required": ["info"] + "required": [ + "info" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.updated": { "type": "object", @@ -12236,10 +13297,15 @@ "$ref": "#/components/schemas/Session" } }, - "required": ["info"] + "required": [ + "info" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.deleted": { "type": "object", @@ -12255,10 +13321,15 @@ "$ref": "#/components/schemas/Session" } }, - "required": ["info"] + "required": [ + "info" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.diff": { "type": "object", @@ -12280,10 +13351,16 @@ } } }, - "required": ["sessionID", "diff"] + "required": [ + "sessionID", + "diff" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.error": { "type": "object", @@ -12326,7 +13403,10 @@ } } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.turn.open": { "type": "object", @@ -12342,10 +13422,15 @@ "type": "string" } }, - "required": ["sessionID"] + "required": [ + "sessionID" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.session.turn.close": { "type": "object", @@ -12362,13 +13447,23 @@ }, "reason": { "type": "string", - "enum": ["completed", "error", "interrupted"] + "enum": [ + "completed", + "error", + "interrupted" + ] } }, - "required": ["sessionID", "reason"] + "required": [ + "sessionID", + "reason" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.vcs.branch.updated": { "type": "object", @@ -12386,7 +13481,10 @@ } } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.workspace.ready": { "type": "object", @@ -12402,10 +13500,15 @@ "type": "string" } }, - "required": ["name"] + "required": [ + "name" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.workspace.failed": { "type": "object", @@ -12421,10 +13524,15 @@ "type": "string" } }, - "required": ["message"] + "required": [ + "message" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Pty": { "type": "object", @@ -12450,13 +13558,24 @@ }, "status": { "type": "string", - "enum": ["running", "exited"] + "enum": [ + "running", + "exited" + ] }, "pid": { "type": "number" } }, - "required": ["id", "title", "command", "args", "cwd", "status", "pid"] + "required": [ + "id", + "title", + "command", + "args", + "cwd", + "status", + "pid" + ] }, "Event.pty.created": { "type": "object", @@ -12472,10 +13591,15 @@ "$ref": "#/components/schemas/Pty" } }, - "required": ["info"] + "required": [ + "info" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.pty.updated": { "type": "object", @@ -12491,10 +13615,15 @@ "$ref": "#/components/schemas/Pty" } }, - "required": ["info"] + "required": [ + "info" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.pty.exited": { "type": "object", @@ -12514,10 +13643,16 @@ "type": "number" } }, - "required": ["id", "exitCode"] + "required": [ + "id", + "exitCode" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.pty.deleted": { "type": "object", @@ -12534,10 +13669,15 @@ "pattern": "^pty.*" } }, - "required": ["id"] + "required": [ + "id" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.worktree.ready": { "type": "object", @@ -12556,10 +13696,16 @@ "type": "string" } }, - "required": ["name", "branch"] + "required": [ + "name", + "branch" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.worktree.failed": { "type": "object", @@ -12575,10 +13721,15 @@ "type": "string" } }, - "required": ["message"] + "required": [ + "message" + ] } }, - "required": ["type", "properties"] + "required": [ + "type", + "properties" + ] }, "Event.kilo-sessions.remote-status-changed": { "type": "object", @@ -12640,6 +13791,36 @@ { "$ref": "#/components/schemas/Event.file.edited" }, + { + "$ref": "#/components/schemas/Event.tui.prompt.append" + }, + { + "$ref": "#/components/schemas/Event.tui.command.execute" + }, + { + "$ref": "#/components/schemas/Event.tui.toast.show" + }, + { + "$ref": "#/components/schemas/Event.tui.session.select" + }, + { + "$ref": "#/components/schemas/Event.mcp.tools.changed" + }, + { + "$ref": "#/components/schemas/Event.mcp.browser.open.failed" + }, + { + "$ref": "#/components/schemas/Event.session.network.asked" + }, + { + "$ref": "#/components/schemas/Event.session.network.replied" + }, + { + "$ref": "#/components/schemas/Event.session.network.rejected" + }, + { + "$ref": "#/components/schemas/Event.session.network.restored" + }, { "$ref": "#/components/schemas/Event.message.updated" }, @@ -12676,18 +13857,6 @@ { "$ref": "#/components/schemas/Event.question.rejected" }, - { - "$ref": "#/components/schemas/Event.session.network.asked" - }, - { - "$ref": "#/components/schemas/Event.session.network.replied" - }, - { - "$ref": "#/components/schemas/Event.session.network.rejected" - }, - { - "$ref": "#/components/schemas/Event.session.network.restored" - }, { "$ref": "#/components/schemas/Event.session.compacted" }, @@ -12697,24 +13866,6 @@ { "$ref": "#/components/schemas/Event.todo.updated" }, - { - "$ref": "#/components/schemas/Event.tui.prompt.append" - }, - { - "$ref": "#/components/schemas/Event.tui.command.execute" - }, - { - "$ref": "#/components/schemas/Event.tui.toast.show" - }, - { - "$ref": "#/components/schemas/Event.tui.session.select" - }, - { - "$ref": "#/components/schemas/Event.mcp.tools.changed" - }, - { - "$ref": "#/components/schemas/Event.mcp.browser.open.failed" - }, { "$ref": "#/components/schemas/Event.command.executed" }, @@ -12781,12 +13932,20 @@ "$ref": "#/components/schemas/Event" } }, - "required": ["directory", "payload"] + "required": [ + "directory", + "payload" + ] }, "LogLevel": { "description": "Log level", "type": "string", - "enum": ["DEBUG", "INFO", "WARN", "ERROR"] + "enum": [ + "DEBUG", + "INFO", + "WARN", + "ERROR" + ] }, "ServerConfig": { "description": "Server configuration for kilo serve and web commands", @@ -12824,7 +13983,11 @@ "anyOf": [ { "type": "string", - "enum": ["ask", "allow", "deny"] + "enum": [ + "ask", + "allow", + "deny" + ] }, { "type": "null" @@ -12967,7 +14130,11 @@ }, "mode": { "type": "string", - "enum": ["subagent", "primary", "all"] + "enum": [ + "subagent", + "primary", + "all" + ] }, "hidden": { "description": "Hide this subagent from the @ autocomplete menu (default: false, only applies to mode: subagent)", @@ -12989,7 +14156,15 @@ }, { "type": "string", - "enum": ["primary", "secondary", "accent", "success", "warning", "error", "info"] + "enum": [ + "primary", + "secondary", + "accent", + "success", + "warning", + "error", + "info" + ] } ] }, @@ -13075,10 +14250,15 @@ "properties": { "field": { "type": "string", - "enum": ["reasoning_content", "reasoning_details"] + "enum": [ + "reasoning_content", + "reasoning_details" + ] } }, - "required": ["field"], + "required": [ + "field" + ], "additionalProperties": false } ] @@ -13114,10 +14294,16 @@ "type": "number" } }, - "required": ["input", "output"] + "required": [ + "input", + "output" + ] } }, - "required": ["input", "output"] + "required": [ + "input", + "output" + ] }, "limit": { "type": "object", @@ -13132,7 +14318,10 @@ "type": "number" } }, - "required": ["context", "output"] + "required": [ + "context", + "output" + ] }, "modalities": { "type": "object", @@ -13141,39 +14330,70 @@ "type": "array", "items": { "type": "string", - "enum": ["text", "audio", "image", "video", "pdf"] + "enum": [ + "text", + "audio", + "image", + "video", + "pdf" + ] } }, "output": { "type": "array", "items": { "type": "string", - "enum": ["text", "audio", "image", "video", "pdf"] + "enum": [ + "text", + "audio", + "image", + "video", + "pdf" + ] } } }, - "required": ["input", "output"] + "required": [ + "input", + "output" + ] }, "recommendedIndex": { "type": "number" }, "prompt": { "type": "string", - "enum": ["codex", "gemini", "beast", "anthropic", "trinity", "anthropic_without_todo"] + "enum": [ + "codex", + "gemini", + "beast", + "anthropic", + "trinity", + "anthropic_without_todo" + ] }, "isFree": { "type": "boolean" }, "ai_sdk_provider": { "type": "string", - "enum": ["anthropic", "openai", "openai-compatible", "openrouter"] + "enum": [ + "anthropic", + "openai", + "openai-compatible", + "openrouter" + ] }, "experimental": { "type": "boolean" }, "status": { "type": "string", - "enum": ["alpha", "beta", "deprecated"] + "enum": [ + "alpha", + "beta", + "deprecated" + ] }, "options": { "type": "object", @@ -13252,10 +14472,10 @@ "type": "boolean" }, "timeout": { - "description": "Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.", + "description": "Timeout in milliseconds for requests to this provider. Default is 120000 (2 minutes). Set to false to disable timeout.", "anyOf": [ { - "description": "Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.", + "description": "Timeout in milliseconds for requests to this provider. Default is 120000 (2 minutes). Set to false to disable timeout.", "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 @@ -13309,7 +14529,10 @@ "maximum": 9007199254740991 } }, - "required": ["type", "command"], + "required": [ + "type", + "command" + ], "additionalProperties": false }, "McpOAuthConfig": { @@ -13375,13 +14598,19 @@ "maximum": 9007199254740991 } }, - "required": ["type", "url"], + "required": [ + "type", + "url" + ], "additionalProperties": false }, "LayoutConfig": { "description": "@deprecated Always uses stretch layout.", "type": "string", - "enum": ["auto", "stretch"] + "enum": [ + "auto", + "stretch" + ] }, "Config": { "type": "object", @@ -13421,7 +14650,9 @@ "type": "boolean" } }, - "required": ["template"] + "required": [ + "template" + ] } }, "skills": { @@ -13467,7 +14698,11 @@ "share": { "description": "Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing", "type": "string", - "enum": ["manual", "auto", "disabled"] + "enum": [ + "manual", + "auto", + "disabled" + ] }, "autoshare": { "description": "@deprecated Use 'share' field instead. Share newly created sessions automatically", @@ -13622,7 +14857,9 @@ "type": "boolean" } }, - "required": ["enabled"], + "required": [ + "enabled" + ], "additionalProperties": false } ] @@ -13692,7 +14929,9 @@ "const": true } }, - "required": ["disabled"] + "required": [ + "disabled" + ] }, { "type": "object", @@ -13729,7 +14968,9 @@ "additionalProperties": {} } }, - "required": ["command"] + "required": [ + "command" + ] } ] } @@ -13846,7 +15087,11 @@ "const": false } }, - "required": ["data", "errors", "success"] + "required": [ + "data", + "errors", + "success" + ] }, "OAuth": { "type": "object", @@ -13871,7 +15116,12 @@ "type": "string" } }, - "required": ["type", "refresh", "access", "expires"] + "required": [ + "type", + "refresh", + "access", + "expires" + ] }, "ApiAuth": { "type": "object", @@ -13884,7 +15134,10 @@ "type": "string" } }, - "required": ["type", "key"] + "required": [ + "type", + "key" + ] }, "WellKnownAuth": { "type": "object", @@ -13900,7 +15153,11 @@ "type": "string" } }, - "required": ["type", "key", "token"] + "required": [ + "type", + "key", + "token" + ] }, "Auth": { "anyOf": [ @@ -13929,10 +15186,15 @@ "type": "string" } }, - "required": ["message"] + "required": [ + "message" + ] } }, - "required": ["name", "data"] + "required": [ + "name", + "data" + ] }, "Model": { "type": "object", @@ -13956,7 +15218,11 @@ "type": "string" } }, - "required": ["id", "url", "npm"] + "required": [ + "id", + "url", + "npm" + ] }, "name": { "type": "string" @@ -13998,7 +15264,13 @@ "type": "boolean" } }, - "required": ["text", "audio", "image", "video", "pdf"] + "required": [ + "text", + "audio", + "image", + "video", + "pdf" + ] }, "output": { "type": "object", @@ -14019,7 +15291,13 @@ "type": "boolean" } }, - "required": ["text", "audio", "image", "video", "pdf"] + "required": [ + "text", + "audio", + "image", + "video", + "pdf" + ] }, "interleaved": { "anyOf": [ @@ -14031,15 +15309,28 @@ "properties": { "field": { "type": "string", - "enum": ["reasoning_content", "reasoning_details"] + "enum": [ + "reasoning_content", + "reasoning_details" + ] } }, - "required": ["field"] + "required": [ + "field" + ] } ] } }, - "required": ["temperature", "reasoning", "attachment", "toolcall", "input", "output", "interleaved"] + "required": [ + "temperature", + "reasoning", + "attachment", + "toolcall", + "input", + "output", + "interleaved" + ] }, "cost": { "type": "object", @@ -14060,7 +15351,10 @@ "type": "number" } }, - "required": ["read", "write"] + "required": [ + "read", + "write" + ] }, "experimentalOver200K": { "type": "object", @@ -14081,13 +15375,24 @@ "type": "number" } }, - "required": ["read", "write"] + "required": [ + "read", + "write" + ] } }, - "required": ["input", "output", "cache"] + "required": [ + "input", + "output", + "cache" + ] } }, - "required": ["input", "output", "cache"] + "required": [ + "input", + "output", + "cache" + ] }, "limit": { "type": "object", @@ -14102,11 +15407,19 @@ "type": "number" } }, - "required": ["context", "output"] + "required": [ + "context", + "output" + ] }, "status": { "type": "string", - "enum": ["alpha", "beta", "deprecated", "active"] + "enum": [ + "alpha", + "beta", + "deprecated", + "active" + ] }, "options": { "type": "object", @@ -14145,14 +15458,26 @@ }, "prompt": { "type": "string", - "enum": ["codex", "gemini", "beast", "anthropic", "trinity", "anthropic_without_todo"] + "enum": [ + "codex", + "gemini", + "beast", + "anthropic", + "trinity", + "anthropic_without_todo" + ] }, "isFree": { "type": "boolean" }, "ai_sdk_provider": { "type": "string", - "enum": ["anthropic", "openai", "openai-compatible", "openrouter"] + "enum": [ + "anthropic", + "openai", + "openai-compatible", + "openrouter" + ] } }, "required": [ @@ -14180,7 +15505,12 @@ }, "source": { "type": "string", - "enum": ["env", "config", "custom", "api"] + "enum": [ + "env", + "config", + "custom", + "api" + ] }, "env": { "type": "array", @@ -14208,7 +15538,14 @@ } } }, - "required": ["id", "name", "source", "env", "options", "models"] + "required": [ + "id", + "name", + "source", + "env", + "options", + "models" + ] }, "ToolIDs": { "type": "array", @@ -14227,7 +15564,11 @@ }, "parameters": {} }, - "required": ["id", "description", "parameters"] + "required": [ + "id", + "description", + "parameters" + ] }, "ToolList": { "type": "array", @@ -14287,7 +15628,15 @@ "type": "string" } }, - "required": ["id", "type", "branch", "name", "directory", "extra", "projectID"] + "required": [ + "id", + "type", + "branch", + "name", + "directory", + "extra", + "projectID" + ] }, "Worktree": { "type": "object", @@ -14302,7 +15651,11 @@ "type": "string" } }, - "required": ["name", "branch", "directory"] + "required": [ + "name", + "branch", + "directory" + ] }, "WorktreeCreateInput": { "type": "object", @@ -14323,7 +15676,9 @@ "type": "string" } }, - "required": ["directory"] + "required": [ + "directory" + ] }, "WorktreeResetInput": { "type": "object", @@ -14332,7 +15687,9 @@ "type": "string" } }, - "required": ["directory"] + "required": [ + "directory" + ] }, "WorktreeDiffItem": { "type": "object", @@ -14354,7 +15711,11 @@ }, "status": { "type": "string", - "enum": ["added", "deleted", "modified"] + "enum": [ + "added", + "deleted", + "modified" + ] }, "tracked": { "type": "boolean" @@ -14394,7 +15755,10 @@ "type": "string" } }, - "required": ["id", "worktree"] + "required": [ + "id", + "worktree" + ] }, "GlobalSession": { "type": "object", @@ -14447,14 +15811,26 @@ }, "status": { "type": "string", - "enum": ["added", "deleted", "modified"] + "enum": [ + "added", + "deleted", + "modified" + ] } }, - "required": ["file", "additions", "deletions"] + "required": [ + "file", + "additions", + "deletions" + ] } } }, - "required": ["additions", "deletions", "files"] + "required": [ + "additions", + "deletions", + "files" + ] }, "share": { "type": "object", @@ -14463,7 +15839,9 @@ "type": "string" } }, - "required": ["url"] + "required": [ + "url" + ] }, "title": { "type": "string" @@ -14487,7 +15865,10 @@ "type": "number" } }, - "required": ["created", "updated"] + "required": [ + "created", + "updated" + ] }, "permission": { "$ref": "#/components/schemas/PermissionRuleset" @@ -14508,7 +15889,9 @@ "type": "string" } }, - "required": ["messageID"] + "required": [ + "messageID" + ] }, "project": { "anyOf": [ @@ -14524,7 +15907,16 @@ "type": "string" } }, - "required": ["id", "slug", "projectID", "directory", "title", "version", "time", "project"] + "required": [ + "id", + "slug", + "projectID", + "directory", + "title", + "version", + "time", + "project" + ] }, "McpResource": { "type": "object", @@ -14545,7 +15937,11 @@ "type": "string" } }, - "required": ["name", "uri", "client"] + "required": [ + "name", + "uri", + "client" + ] }, "TextPartInput": { "type": "object", @@ -14576,7 +15972,9 @@ "type": "number" } }, - "required": ["start"] + "required": [ + "start" + ] }, "metadata": { "type": "object", @@ -14586,7 +15984,10 @@ "additionalProperties": {} } }, - "required": ["type", "text"] + "required": [ + "type", + "text" + ] }, "FilePartInput": { "type": "object", @@ -14611,7 +16012,11 @@ "$ref": "#/components/schemas/FilePartSource" } }, - "required": ["type", "mime", "url"] + "required": [ + "type", + "mime", + "url" + ] }, "AgentPartInput": { "type": "object", @@ -14643,10 +16048,17 @@ "maximum": 9007199254740991 } }, - "required": ["value", "start", "end"] + "required": [ + "value", + "start", + "end" + ] } }, - "required": ["type", "name"] + "required": [ + "type", + "name" + ] }, "SubtaskPartInput": { "type": "object", @@ -14677,13 +16089,21 @@ "type": "string" } }, - "required": ["providerID", "modelID"] + "required": [ + "providerID", + "modelID" + ] }, "command": { "type": "string" } }, - "required": ["type", "prompt", "description", "agent"] + "required": [ + "type", + "prompt", + "description", + "agent" + ] }, "ProviderAuthMethod": { "type": "object", @@ -14704,7 +16124,10 @@ "type": "string" } }, - "required": ["type", "label"] + "required": [ + "type", + "label" + ] }, "ProviderAuthAuthorization": { "type": "object", @@ -14728,7 +16151,11 @@ "type": "string" } }, - "required": ["url", "method", "instructions"] + "required": [ + "url", + "method", + "instructions" + ] }, "Symbol": { "type": "object", @@ -14749,10 +16176,17 @@ "$ref": "#/components/schemas/Range" } }, - "required": ["uri", "range"] + "required": [ + "uri", + "range" + ] } }, - "required": ["name", "kind", "location"] + "required": [ + "name", + "kind", + "location" + ] }, "FileNode": { "type": "object", @@ -14768,20 +16202,32 @@ }, "type": { "type": "string", - "enum": ["file", "directory"] + "enum": [ + "file", + "directory" + ] }, "ignored": { "type": "boolean" } }, - "required": ["name", "path", "absolute", "type", "ignored"] + "required": [ + "name", + "path", + "absolute", + "type", + "ignored" + ] }, "FileContent": { "type": "object", "properties": { "type": { "type": "string", - "enum": ["text", "binary"] + "enum": [ + "text", + "binary" + ] }, "content": { "type": "string" @@ -14828,14 +16274,24 @@ } } }, - "required": ["oldStart", "oldLines", "newStart", "newLines", "lines"] + "required": [ + "oldStart", + "oldLines", + "newStart", + "newLines", + "lines" + ] } }, "index": { "type": "string" } }, - "required": ["oldFileName", "newFileName", "hunks"] + "required": [ + "oldFileName", + "newFileName", + "hunks" + ] }, "encoding": { "type": "string", @@ -14845,7 +16301,10 @@ "type": "string" } }, - "required": ["type", "content"] + "required": [ + "type", + "content" + ] }, "File": { "type": "object", @@ -14865,10 +16324,19 @@ }, "status": { "type": "string", - "enum": ["added", "deleted", "modified"] + "enum": [ + "added", + "deleted", + "modified" + ] } }, - "required": ["path", "added", "removed", "status"] + "required": [ + "path", + "added", + "removed", + "status" + ] }, "MCPStatusConnected": { "type": "object", @@ -14878,7 +16346,9 @@ "const": "connected" } }, - "required": ["status"] + "required": [ + "status" + ] }, "MCPStatusDisabled": { "type": "object", @@ -14888,7 +16358,9 @@ "const": "disabled" } }, - "required": ["status"] + "required": [ + "status" + ] }, "MCPStatusFailed": { "type": "object", @@ -14901,7 +16373,10 @@ "type": "string" } }, - "required": ["status", "error"] + "required": [ + "status", + "error" + ] }, "MCPStatusNeedsAuth": { "type": "object", @@ -14911,7 +16386,9 @@ "const": "needs_auth" } }, - "required": ["status"] + "required": [ + "status" + ] }, "MCPStatusNeedsClientRegistration": { "type": "object", @@ -14924,7 +16401,10 @@ "type": "string" } }, - "required": ["status", "error"] + "required": [ + "status", + "error" + ] }, "MCPStatus": { "anyOf": [ @@ -14964,7 +16444,13 @@ "type": "string" } }, - "required": ["home", "state", "config", "worktree", "directory"] + "required": [ + "home", + "state", + "config", + "worktree", + "directory" + ] }, "VcsInfo": { "type": "object", @@ -14973,7 +16459,9 @@ "type": "string" } }, - "required": ["branch"] + "required": [ + "branch" + ] }, "Command": { "type": "object", @@ -14992,7 +16480,11 @@ }, "source": { "type": "string", - "enum": ["command", "mcp", "skill"] + "enum": [ + "command", + "mcp", + "skill" + ] }, "template": { "anyOf": [ @@ -15014,7 +16506,11 @@ } } }, - "required": ["name", "template", "hints"] + "required": [ + "name", + "template", + "hints" + ] }, "Agent": { "type": "object", @@ -15030,7 +16526,11 @@ }, "mode": { "type": "string", - "enum": ["subagent", "primary", "all"] + "enum": [ + "subagent", + "primary", + "all" + ] }, "native": { "type": "boolean" @@ -15063,7 +16563,10 @@ "type": "string" } }, - "required": ["modelID", "providerID"] + "required": [ + "modelID", + "providerID" + ] }, "variant": { "type": "string" @@ -15084,7 +16587,12 @@ "maximum": 9007199254740991 } }, - "required": ["name", "mode", "permission", "options"] + "required": [ + "name", + "mode", + "permission", + "options" + ] }, "LSPStatus": { "type": "object", @@ -15111,7 +16619,12 @@ ] } }, - "required": ["id", "name", "root", "status"] + "required": [ + "id", + "name", + "root", + "status" + ] }, "FormatterStatus": { "type": "object", @@ -15129,116 +16642,12 @@ "type": "boolean" } }, - "required": ["name", "extensions", "enabled"] - }, - "SessionNetworkWait": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^que.*" - }, - "sessionID": { - "type": "string", - "pattern": "^ses.*" - }, - "message": { - "type": "string" - }, - "restored": { - "type": "boolean" - }, - "time": { - "type": "object", - "properties": { - "created": { - "type": "number" - } - }, - "required": ["created"] - } - }, - "required": ["id", "sessionID", "message", "restored", "time"] - }, - "Event.session.network.asked": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "session.network.asked" - }, - "properties": { - "$ref": "#/components/schemas/SessionNetworkWait" - } - }, - "required": ["type", "properties"] - }, - "Event.session.network.replied": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "session.network.replied" - }, - "properties": { - "type": "object", - "properties": { - "sessionID": { - "type": "string" - }, - "requestID": { - "type": "string" - } - }, - "required": ["sessionID", "requestID"] - } - }, - "required": ["type", "properties"] - }, - "Event.session.network.rejected": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "session.network.rejected" - }, - "properties": { - "type": "object", - "properties": { - "sessionID": { - "type": "string" - }, - "requestID": { - "type": "string" - } - }, - "required": ["sessionID", "requestID"] - } - }, - "required": ["type", "properties"] - }, - "Event.session.network.restored": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "session.network.restored" - }, - "properties": { - "type": "object", - "properties": { - "sessionID": { - "type": "string" - }, - "requestID": { - "type": "string" - } - }, - "required": ["sessionID", "requestID"] - } - }, - "required": ["type", "properties"] + "required": [ + "name", + "extensions", + "enabled" + ] } } } -} +} \ No newline at end of file