@kilocode/sdk 7.2.34 → 7.2.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
2
- import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, CommitMessageGenerateErrors, CommitMessageGenerateResponses, Config as Config3, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConfigWarningsResponses, EnhancePromptEnhanceErrors, EnhancePromptEnhanceResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceAdaptorListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceSessionRestoreErrors, ExperimentalWorkspaceSessionRestoreResponses, ExperimentalWorkspaceStatusResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, InstanceDisposeResponses, KiloClawChatCredentialsResponses, KiloClawStatusResponses, KiloCloudSessionGetErrors, KiloCloudSessionGetResponses, KiloCloudSessionImportErrors, KiloCloudSessionImportResponses, KiloCloudSessionsErrors, KiloCloudSessionsResponses, KilocodeHeapSnapshotErrors, KilocodeHeapSnapshotResponses, KilocodeRemoveAgentErrors, KilocodeRemoveAgentResponses, KilocodeRemoveSkillErrors, KilocodeRemoveSkillResponses, KilocodeSessionImportMessageErrors, KilocodeSessionImportMessageResponses, KilocodeSessionImportPartErrors, KilocodeSessionImportPartResponses, KilocodeSessionImportProjectErrors, KilocodeSessionImportProjectResponses, KilocodeSessionImportSessionErrors, KilocodeSessionImportSessionResponses, KiloFimErrors, KiloFimResponses, KiloModesResponses, KiloNotificationsErrors, KiloNotificationsResponses, KiloOrganizationSetErrors, KiloOrganizationSetResponses, KiloProfileErrors, KiloProfileResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NetworkListResponses, NetworkRejectErrors, NetworkRejectResponses, NetworkReplyErrors, NetworkReplyResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionAllowEverythingErrors, PermissionAllowEverythingResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionSaveAlwaysRulesErrors, PermissionSaveAlwaysRulesResponses, ProjectCurrentResponses, ProjectInitGitResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, RemoteDisableResponses, RemoteEnableResponses, RemoteStatusResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SessionViewedResponses, SubtaskPartInput, SuggestionAcceptErrors, SuggestionAcceptResponses, SuggestionDismissErrors, SuggestionDismissResponses, SuggestionListResponses, SyncHistoryListErrors, SyncHistoryListResponses, SyncReplayErrors, SyncReplayResponses, SyncStartResponses, TelemetryCaptureErrors, TelemetryCaptureResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsDiffResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeDiffErrors, WorktreeDiffFileErrors, WorktreeDiffFileResponses, WorktreeDiffResponses, WorktreeDiffSummaryErrors, WorktreeDiffSummaryResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
2
+ import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, CommitMessageGenerateErrors, CommitMessageGenerateResponses, Config as Config3, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConfigWarningsResponses, EnhancePromptEnhanceErrors, EnhancePromptEnhanceResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceAdaptorListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceSessionRestoreErrors, ExperimentalWorkspaceSessionRestoreResponses, ExperimentalWorkspaceStatusResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, InstanceDisposeResponses, KiloClawChatCredentialsResponses, KiloClawStatusResponses, KiloCloudSessionGetErrors, KiloCloudSessionGetResponses, KiloCloudSessionImportErrors, KiloCloudSessionImportResponses, KiloCloudSessionsErrors, KiloCloudSessionsResponses, KilocodeHeapSnapshotErrors, KilocodeHeapSnapshotResponses, KilocodeRemoveAgentErrors, KilocodeRemoveAgentResponses, KilocodeRemoveSkillErrors, KilocodeRemoveSkillResponses, KilocodeSessionImportMessageErrors, KilocodeSessionImportMessageResponses, KilocodeSessionImportPartErrors, KilocodeSessionImportPartResponses, KilocodeSessionImportProjectErrors, KilocodeSessionImportProjectResponses, KilocodeSessionImportSessionErrors, KilocodeSessionImportSessionResponses, KiloFimErrors, KiloFimResponses, KiloModesResponses, KiloNotificationsErrors, KiloNotificationsResponses, KiloOrganizationSetErrors, KiloOrganizationSetResponses, KiloProfileErrors, KiloProfileResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NetworkListResponses, NetworkRejectErrors, NetworkRejectResponses, NetworkReplyErrors, NetworkReplyResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionAllowEverythingErrors, PermissionAllowEverythingResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionSaveAlwaysRulesErrors, PermissionSaveAlwaysRulesResponses, ProjectCurrentResponses, ProjectInitGitResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyShellsResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, RemoteDisableResponses, RemoteEnableResponses, RemoteStatusResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SessionViewedResponses, SubtaskPartInput, SuggestionAcceptErrors, SuggestionAcceptResponses, SuggestionDismissErrors, SuggestionDismissResponses, SuggestionListResponses, SyncHistoryListErrors, SyncHistoryListResponses, SyncReplayErrors, SyncReplayResponses, SyncStartResponses, TelemetryCaptureErrors, TelemetryCaptureResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsDiffResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeDiffErrors, WorktreeDiffFileErrors, WorktreeDiffFileResponses, WorktreeDiffResponses, WorktreeDiffSummaryErrors, WorktreeDiffSummaryResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -234,12 +234,12 @@ export declare class Session extends HeyApiClient {
234
234
  workspace?: string;
235
235
  projectID?: string;
236
236
  worktrees?: boolean;
237
- roots?: boolean;
237
+ roots?: boolean | "true" | "false";
238
238
  start?: number;
239
239
  cursor?: number;
240
240
  search?: string;
241
241
  limit?: number;
242
- archived?: boolean;
242
+ archived?: boolean | "true" | "false";
243
243
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalSessionListResponses, unknown, ThrowOnError, "fields">;
244
244
  }
245
245
  export declare class Resource extends HeyApiClient {
@@ -315,6 +315,15 @@ export declare class Project extends HeyApiClient {
315
315
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectUpdateResponses, ProjectUpdateErrors, ThrowOnError, "fields">;
316
316
  }
317
317
  export declare class Pty extends HeyApiClient {
318
+ /**
319
+ * List available shells
320
+ *
321
+ * Get a list of available shells on the system.
322
+ */
323
+ shells<ThrowOnError extends boolean = false>(parameters?: {
324
+ directory?: string;
325
+ workspace?: string;
326
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyShellsResponses, unknown, ThrowOnError, "fields">;
318
327
  /**
319
328
  * List PTY sessions
320
329
  *
@@ -528,7 +537,7 @@ export declare class Session2 extends HeyApiClient {
528
537
  list<ThrowOnError extends boolean = false>(parameters?: {
529
538
  directory?: string;
530
539
  workspace?: string;
531
- roots?: boolean;
540
+ roots?: boolean | "true" | "false";
532
541
  start?: number;
533
542
  search?: string;
534
543
  limit?: number;
@@ -596,6 +596,26 @@ export class Project extends HeyApiClient {
596
596
  }
597
597
  }
598
598
  export class Pty extends HeyApiClient {
599
+ /**
600
+ * List available shells
601
+ *
602
+ * Get a list of available shells on the system.
603
+ */
604
+ shells(parameters, options) {
605
+ const params = buildClientParams([parameters], [
606
+ {
607
+ args: [
608
+ { in: "query", key: "directory" },
609
+ { in: "query", key: "workspace" },
610
+ ],
611
+ },
612
+ ]);
613
+ return (options?.client ?? this.client).get({
614
+ url: "/pty/shells",
615
+ ...options,
616
+ ...params,
617
+ });
618
+ }
599
619
  /**
600
620
  * List PTY sessions
601
621
  *
@@ -65,6 +65,93 @@ export type EventFileWatcherUpdated = {
65
65
  event: "add" | "change" | "unlink";
66
66
  };
67
67
  };
68
+ export type QuestionOption = {
69
+ /**
70
+ * Display text (1-5 words, concise)
71
+ */
72
+ label: string;
73
+ /**
74
+ * Explanation of choice
75
+ */
76
+ description: string;
77
+ /**
78
+ * Optional i18n key for the label; clients translate and still reply with `label`
79
+ */
80
+ labelKey?: string;
81
+ /**
82
+ * Optional i18n key for the description
83
+ */
84
+ descriptionKey?: string;
85
+ };
86
+ export type QuestionInfo = {
87
+ /**
88
+ * Complete question
89
+ */
90
+ question: string;
91
+ /**
92
+ * Very short label (max 30 chars)
93
+ */
94
+ header: string;
95
+ /**
96
+ * Available choices
97
+ */
98
+ options: Array<QuestionOption>;
99
+ /**
100
+ * Allow selecting multiple choices
101
+ */
102
+ multiple?: boolean;
103
+ /**
104
+ * Optional i18n key for the question text; clients fall back to `question` when missing
105
+ */
106
+ questionKey?: string;
107
+ /**
108
+ * Optional i18n key for the header; clients fall back to `header` when missing
109
+ */
110
+ headerKey?: string;
111
+ /**
112
+ * Allow typing a custom answer (default: true)
113
+ */
114
+ custom?: boolean;
115
+ };
116
+ export type QuestionTool = {
117
+ messageID: string;
118
+ callID: string;
119
+ };
120
+ export type QuestionRequest = {
121
+ id: string;
122
+ sessionID: string;
123
+ /**
124
+ * Questions to ask
125
+ */
126
+ questions: Array<QuestionInfo>;
127
+ /**
128
+ * Whether this question blocks prompt input (default: true)
129
+ */
130
+ blocking?: boolean;
131
+ tool?: QuestionTool;
132
+ };
133
+ export type EventQuestionAsked = {
134
+ type: "question.asked";
135
+ properties: QuestionRequest;
136
+ };
137
+ export type QuestionAnswer = Array<string>;
138
+ export type QuestionReplied = {
139
+ sessionID: string;
140
+ requestID: string;
141
+ answers: Array<QuestionAnswer>;
142
+ };
143
+ export type EventQuestionReplied = {
144
+ type: "question.replied";
145
+ properties: QuestionReplied;
146
+ };
147
+ export type QuestionRejected = {
148
+ sessionID: string;
149
+ requestID: string;
150
+ };
151
+ export type EventQuestionRejected = {
152
+ type: "question.rejected";
153
+ properties: QuestionRejected;
154
+ };
68
155
  export type EventLspClientDiagnostics = {
69
156
  type: "lsp.client.diagnostics";
70
157
  properties: {
@@ -78,18 +165,6 @@ export type EventLspUpdated = {
78
165
  [key: string]: unknown;
79
166
  };
80
167
  };
81
- export type EventInstallationUpdated = {
82
- type: "installation.updated";
83
- properties: {
84
- version: string;
85
- };
86
- };
87
- export type EventInstallationUpdateAvailable = {
88
- type: "installation.update-available";
89
- properties: {
90
- version: string;
91
- };
92
- };
93
168
  export type EventTuiPromptAppend = {
94
169
  type: "tui.prompt.append";
95
170
  properties: {
@@ -294,100 +369,64 @@ export type EventSessionError = {
294
369
  error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
295
370
  };
296
371
  };
297
- export type QuestionOption = {
298
- /**
299
- * Display text (1-5 words, concise)
300
- */
301
- label: string;
302
- /**
303
- * Explanation of choice
304
- */
305
- description: string;
306
- /**
307
- * Optional i18n key for the label; clients translate and still reply with `label`
308
- */
309
- labelKey?: string;
310
- /**
311
- * Optional i18n key for the description
312
- */
313
- descriptionKey?: string;
372
+ export type EventInstallationUpdated = {
373
+ type: "installation.updated";
374
+ properties: {
375
+ version: string;
376
+ };
314
377
  };
315
- export type QuestionInfo = {
316
- /**
317
- * Complete question
318
- */
319
- question: string;
320
- /**
321
- * Very short label (max 30 chars)
322
- */
323
- header: string;
324
- /**
325
- * Available choices
326
- */
327
- options: Array<QuestionOption>;
328
- /**
329
- * Allow selecting multiple choices
330
- */
331
- multiple?: boolean;
332
- /**
333
- * Optional i18n key for the question text; clients fall back to `question` when missing
334
- */
335
- questionKey?: string;
336
- /**
337
- * Optional i18n key for the header; clients fall back to `header` when missing
338
- */
339
- headerKey?: string;
378
+ export type EventInstallationUpdateAvailable = {
379
+ type: "installation.update-available";
380
+ properties: {
381
+ version: string;
382
+ };
383
+ };
384
+ export type Todo = {
340
385
  /**
341
- * Allow typing a custom answer (default: true)
386
+ * Brief description of the task
342
387
  */
343
- custom?: boolean;
344
- };
345
- export type QuestionTool = {
346
- messageID: string;
347
- callID: string;
348
- };
349
- export type QuestionRequest = {
350
- id: string;
351
- sessionID: string;
388
+ content: string;
352
389
  /**
353
- * Questions to ask
390
+ * Current status of the task: pending, in_progress, completed, cancelled
354
391
  */
355
- questions: Array<QuestionInfo>;
392
+ status: string;
356
393
  /**
357
- * Whether this question blocks prompt input (default: true)
394
+ * Priority level of the task: high, medium, low
358
395
  */
359
- blocking?: boolean;
360
- tool?: QuestionTool;
361
- };
362
- export type EventQuestionAsked = {
363
- type: "question.asked";
364
- properties: QuestionRequest;
365
- };
366
- export type QuestionAnswer = Array<string>;
367
- export type QuestionReplied = {
368
- sessionID: string;
369
- requestID: string;
370
- answers: Array<QuestionAnswer>;
396
+ priority: string;
371
397
  };
372
- export type EventQuestionReplied = {
373
- type: "question.replied";
374
- properties: QuestionReplied;
398
+ export type EventTodoUpdated = {
399
+ type: "todo.updated";
400
+ properties: {
401
+ sessionID: string;
402
+ todos: Array<Todo>;
403
+ };
375
404
  };
376
- export type QuestionRejected = {
377
- sessionID: string;
405
+ export type SessionStatus = {
406
+ type: "idle";
407
+ } | {
408
+ type: "retry";
409
+ attempt: number;
410
+ message: string;
411
+ next: number;
412
+ } | {
413
+ type: "busy";
414
+ } | {
415
+ type: "offline";
378
416
  requestID: string;
417
+ message: string;
379
418
  };
380
- export type EventQuestionRejected = {
381
- type: "question.rejected";
382
- properties: QuestionRejected;
419
+ export type EventSessionStatus = {
420
+ type: "session.status";
421
+ properties: {
422
+ sessionID: string;
423
+ status: SessionStatus;
424
+ };
383
425
  };
384
- export type EventCommandExecuted = {
385
- type: "command.executed";
426
+ export type EventSessionIdle = {
427
+ type: "session.idle";
386
428
  properties: {
387
- name: string;
388
429
  sessionID: string;
389
- arguments: string;
390
- messageID: string;
391
430
  };
392
431
  };
393
432
  export type EventSuggestionShown = {
@@ -446,58 +485,19 @@ export type EventSuggestionDismissed = {
446
485
  requestID: string;
447
486
  };
448
487
  };
449
- export type SessionStatus = {
450
- type: "idle";
451
- } | {
452
- type: "retry";
453
- attempt: number;
454
- message: string;
455
- next: number;
456
- } | {
457
- type: "busy";
458
- } | {
459
- type: "offline";
460
- requestID: string;
461
- message: string;
462
- };
463
- export type EventSessionStatus = {
464
- type: "session.status";
465
- properties: {
466
- sessionID: string;
467
- status: SessionStatus;
468
- };
469
- };
470
- export type EventSessionIdle = {
471
- type: "session.idle";
488
+ export type EventSessionCompacted = {
489
+ type: "session.compacted";
472
490
  properties: {
473
491
  sessionID: string;
474
492
  };
475
493
  };
476
- export type Todo = {
477
- /**
478
- * Brief description of the task
479
- */
480
- content: string;
481
- /**
482
- * Current status of the task: pending, in_progress, completed, cancelled
483
- */
484
- status: string;
485
- /**
486
- * Priority level of the task: high, medium, low
487
- */
488
- priority: string;
489
- };
490
- export type EventTodoUpdated = {
491
- type: "todo.updated";
494
+ export type EventCommandExecuted = {
495
+ type: "command.executed";
492
496
  properties: {
497
+ name: string;
493
498
  sessionID: string;
494
- todos: Array<Todo>;
495
- };
496
- };
497
- export type EventVcsBranchUpdated = {
498
- type: "vcs.branch.updated";
499
- properties: {
500
- branch?: string;
499
+ arguments: string;
500
+ messageID: string;
501
501
  };
502
502
  };
503
503
  export type EventKilocodeAgentManagerStart = {
@@ -523,10 +523,10 @@ export type EventKilocodeAgentManagerStart = {
523
523
  }>;
524
524
  };
525
525
  };
526
- export type EventSessionCompacted = {
527
- type: "session.compacted";
526
+ export type EventVcsBranchUpdated = {
527
+ type: "vcs.branch.updated";
528
528
  properties: {
529
- sessionID: string;
529
+ branch?: string;
530
530
  };
531
531
  };
532
532
  export type EventKiloSessionsRemoteStatusChanged = {
@@ -964,6 +964,7 @@ export type Session = {
964
964
  projectID: string;
965
965
  workspaceID?: string;
966
966
  directory: string;
967
+ path?: string;
967
968
  parentID?: string;
968
969
  summary?: {
969
970
  additions: number;
@@ -1096,6 +1097,7 @@ export type SyncEventSessionUpdated = {
1096
1097
  projectID?: string | null;
1097
1098
  workspaceID?: string | null;
1098
1099
  directory?: string | null;
1100
+ path?: string | null;
1099
1101
  parentID?: string | null;
1100
1102
  summary?: {
1101
1103
  additions: number;
@@ -1139,7 +1141,7 @@ export type GlobalEvent = {
1139
1141
  directory: string;
1140
1142
  project?: string;
1141
1143
  workspace?: string;
1142
- payload: EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventInstallationUpdated | EventInstallationUpdateAvailable | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventCommandExecuted | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionStatus | EventSessionIdle | EventTodoUpdated | EventVcsBranchUpdated | EventKilocodeAgentManagerStart | EventSessionCompacted | EventKiloSessionsRemoteStatusChanged | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventIndexingStatus | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted;
1144
+ payload: EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventFileEdited | EventFileWatcherUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventLspClientDiagnostics | EventLspUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionCompacted | EventCommandExecuted | EventKilocodeAgentManagerStart | EventVcsBranchUpdated | EventKiloSessionsRemoteStatusChanged | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventIndexingStatus | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted;
1143
1145
  };
1144
1146
  /**
1145
1147
  * Log level
@@ -1312,9 +1314,9 @@ export type AgentConfig = {
1312
1314
  * Default model variant for this agent (applies only when using the agent's configured model).
1313
1315
  */
1314
1316
  variant?: string;
1315
- temperature?: number;
1316
- top_p?: number;
1317
- prompt?: string;
1317
+ temperature?: number | null;
1318
+ top_p?: number | null;
1319
+ prompt?: string | null;
1318
1320
  /**
1319
1321
  * @deprecated Use 'permission' field instead
1320
1322
  */
@@ -1325,7 +1327,7 @@ export type AgentConfig = {
1325
1327
  /**
1326
1328
  * Description of when to use the agent
1327
1329
  */
1328
- description?: string;
1330
+ description?: string | null;
1329
1331
  mode?: "subagent" | "primary" | "all";
1330
1332
  /**
1331
1333
  * Hide this subagent from the @ autocomplete menu (default: false, only applies to mode: subagent)
@@ -1341,17 +1343,17 @@ export type AgentConfig = {
1341
1343
  /**
1342
1344
  * Maximum number of agentic iterations before forcing text-only response
1343
1345
  */
1344
- steps?: number;
1346
+ steps?: number | null;
1345
1347
  /**
1346
1348
  * @deprecated Use 'steps' field instead.
1347
1349
  */
1348
1350
  maxSteps?: number;
1349
1351
  permission?: PermissionConfig;
1350
- [key: string]: unknown | string | null | string | number | {
1352
+ [key: string]: unknown | string | null | string | number | null | number | null | string | null | {
1351
1353
  [key: string]: boolean;
1352
- } | boolean | "subagent" | "primary" | "all" | {
1354
+ } | boolean | string | null | "subagent" | "primary" | "all" | {
1353
1355
  [key: string]: unknown;
1354
- } | string | "primary" | "secondary" | "accent" | "success" | "warning" | "error" | "info" | number | PermissionConfig | undefined;
1356
+ } | string | "primary" | "secondary" | "accent" | "success" | "warning" | "error" | "info" | number | null | number | PermissionConfig | undefined;
1355
1357
  };
1356
1358
  export type ProviderConfig = {
1357
1359
  api?: string;
@@ -1523,6 +1525,10 @@ export type Config = {
1523
1525
  * JSON schema reference for configuration validation
1524
1526
  */
1525
1527
  $schema?: string;
1528
+ /**
1529
+ * Default shell to use for terminal and bash tool
1530
+ */
1531
+ shell?: string;
1526
1532
  logLevel?: LogLevel;
1527
1533
  server?: ServerConfig;
1528
1534
  /**
@@ -1607,7 +1613,7 @@ export type Config = {
1607
1613
  /**
1608
1614
  * Default agent to use when none is specified. Must be a primary agent. Falls back to 'code' if not set or if the specified agent is invalid.
1609
1615
  */
1610
- default_agent?: string;
1616
+ default_agent?: string | null;
1611
1617
  /**
1612
1618
  * Custom username to display in conversations instead of system username
1613
1619
  */
@@ -1952,6 +1958,7 @@ export type GlobalSession = {
1952
1958
  projectID: string;
1953
1959
  workspaceID?: string;
1954
1960
  directory: string;
1961
+ path?: string;
1955
1962
  parentID?: string;
1956
1963
  summary?: {
1957
1964
  additions: number;
@@ -2107,7 +2114,7 @@ export type File = {
2107
2114
  removed: number;
2108
2115
  status: "added" | "deleted" | "modified";
2109
2116
  };
2110
- export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventInstallationUpdated | EventInstallationUpdateAvailable | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventCommandExecuted | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionStatus | EventSessionIdle | EventTodoUpdated | EventVcsBranchUpdated | EventKilocodeAgentManagerStart | EventSessionCompacted | EventKiloSessionsRemoteStatusChanged | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventIndexingStatus;
2117
+ export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventFileEdited | EventFileWatcherUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventLspClientDiagnostics | EventLspUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionCompacted | EventCommandExecuted | EventKilocodeAgentManagerStart | EventVcsBranchUpdated | EventKiloSessionsRemoteStatusChanged | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventIndexingStatus;
2111
2118
  export type McpStatusConnected = {
2112
2119
  status: "connected";
2113
2120
  };
@@ -2126,6 +2133,9 @@ export type McpStatusNeedsClientRegistration = {
2126
2133
  error: string;
2127
2134
  };
2128
2135
  export type McpStatus = McpStatusConnected | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth | McpStatusNeedsClientRegistration;
2136
+ export type McpUnsupportedOAuthError = {
2137
+ error: string;
2138
+ };
2129
2139
  export type Path = {
2130
2140
  home: string;
2131
2141
  state: string;
@@ -2638,6 +2648,26 @@ export type ProjectUpdateResponses = {
2638
2648
  200: Project;
2639
2649
  };
2640
2650
  export type ProjectUpdateResponse = ProjectUpdateResponses[keyof ProjectUpdateResponses];
2651
+ export type PtyShellsData = {
2652
+ body?: never;
2653
+ path?: never;
2654
+ query?: {
2655
+ directory?: string;
2656
+ workspace?: string;
2657
+ };
2658
+ url: "/pty/shells";
2659
+ };
2660
+ export type PtyShellsResponses = {
2661
+ /**
2662
+ * List of shells
2663
+ */
2664
+ 200: Array<{
2665
+ path: string;
2666
+ name: string;
2667
+ acceptable: boolean;
2668
+ }>;
2669
+ };
2670
+ export type PtyShellsResponse = PtyShellsResponses[keyof PtyShellsResponses];
2641
2671
  export type PtyListData = {
2642
2672
  body?: never;
2643
2673
  path?: never;
@@ -3169,7 +3199,7 @@ export type ExperimentalSessionListData = {
3169
3199
  /**
3170
3200
  * Only return root sessions (no parentID)
3171
3201
  */
3172
- roots?: boolean;
3202
+ roots?: boolean | "true" | "false";
3173
3203
  /**
3174
3204
  * Filter sessions updated on or after this timestamp (milliseconds since epoch)
3175
3205
  */
@@ -3189,7 +3219,7 @@ export type ExperimentalSessionListData = {
3189
3219
  /**
3190
3220
  * Include archived sessions (default false)
3191
3221
  */
3192
- archived?: boolean;
3222
+ archived?: boolean | "true" | "false";
3193
3223
  };
3194
3224
  url: "/experimental/session";
3195
3225
  };
@@ -3230,7 +3260,7 @@ export type SessionListData = {
3230
3260
  /**
3231
3261
  * Only return root sessions (no parentID)
3232
3262
  */
3233
- roots?: boolean;
3263
+ roots?: boolean | "true" | "false";
3234
3264
  /**
3235
3265
  * Filter sessions updated on or after this timestamp (milliseconds since epoch)
3236
3266
  */
@@ -4702,9 +4732,9 @@ export type McpAuthStartData = {
4702
4732
  };
4703
4733
  export type McpAuthStartErrors = {
4704
4734
  /**
4705
- * Bad request
4735
+ * MCP server does not support OAuth
4706
4736
  */
4707
- 400: BadRequestError;
4737
+ 400: McpUnsupportedOAuthError;
4708
4738
  /**
4709
4739
  * Not found
4710
4740
  */
@@ -4770,9 +4800,9 @@ export type McpAuthAuthenticateData = {
4770
4800
  };
4771
4801
  export type McpAuthAuthenticateErrors = {
4772
4802
  /**
4773
- * Bad request
4803
+ * MCP server does not support OAuth
4774
4804
  */
4775
- 400: BadRequestError;
4805
+ 400: McpUnsupportedOAuthError;
4776
4806
  /**
4777
4807
  * Not found
4778
4808
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@kilocode/sdk",
4
- "version": "7.2.34",
4
+ "version": "7.2.36",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {