@kilocode/sdk 7.2.35 → 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.
@@ -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: {
@@ -294,93 +381,6 @@ export type EventInstallationUpdateAvailable = {
294
381
  version: string;
295
382
  };
296
383
  };
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;
314
- };
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;
340
- /**
341
- * Allow typing a custom answer (default: true)
342
- */
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;
352
- /**
353
- * Questions to ask
354
- */
355
- questions: Array<QuestionInfo>;
356
- /**
357
- * Whether this question blocks prompt input (default: true)
358
- */
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>;
371
- };
372
- export type EventQuestionReplied = {
373
- type: "question.replied";
374
- properties: QuestionReplied;
375
- };
376
- export type QuestionRejected = {
377
- sessionID: string;
378
- requestID: string;
379
- };
380
- export type EventQuestionRejected = {
381
- type: "question.rejected";
382
- properties: QuestionRejected;
383
- };
384
384
  export type Todo = {
385
385
  /**
386
386
  * Brief description of the task
@@ -1141,7 +1141,7 @@ export type GlobalEvent = {
1141
1141
  directory: string;
1142
1142
  project?: string;
1143
1143
  workspace?: string;
1144
- payload: EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | 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;
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;
1145
1145
  };
1146
1146
  /**
1147
1147
  * Log level
@@ -1314,9 +1314,9 @@ export type AgentConfig = {
1314
1314
  * Default model variant for this agent (applies only when using the agent's configured model).
1315
1315
  */
1316
1316
  variant?: string;
1317
- temperature?: number;
1318
- top_p?: number;
1319
- prompt?: string;
1317
+ temperature?: number | null;
1318
+ top_p?: number | null;
1319
+ prompt?: string | null;
1320
1320
  /**
1321
1321
  * @deprecated Use 'permission' field instead
1322
1322
  */
@@ -1327,7 +1327,7 @@ export type AgentConfig = {
1327
1327
  /**
1328
1328
  * Description of when to use the agent
1329
1329
  */
1330
- description?: string;
1330
+ description?: string | null;
1331
1331
  mode?: "subagent" | "primary" | "all";
1332
1332
  /**
1333
1333
  * Hide this subagent from the @ autocomplete menu (default: false, only applies to mode: subagent)
@@ -1343,17 +1343,17 @@ export type AgentConfig = {
1343
1343
  /**
1344
1344
  * Maximum number of agentic iterations before forcing text-only response
1345
1345
  */
1346
- steps?: number;
1346
+ steps?: number | null;
1347
1347
  /**
1348
1348
  * @deprecated Use 'steps' field instead.
1349
1349
  */
1350
1350
  maxSteps?: number;
1351
1351
  permission?: PermissionConfig;
1352
- [key: string]: unknown | string | null | string | number | {
1352
+ [key: string]: unknown | string | null | string | number | null | number | null | string | null | {
1353
1353
  [key: string]: boolean;
1354
- } | boolean | "subagent" | "primary" | "all" | {
1354
+ } | boolean | string | null | "subagent" | "primary" | "all" | {
1355
1355
  [key: string]: unknown;
1356
- } | 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;
1357
1357
  };
1358
1358
  export type ProviderConfig = {
1359
1359
  api?: string;
@@ -1613,7 +1613,7 @@ export type Config = {
1613
1613
  /**
1614
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.
1615
1615
  */
1616
- default_agent?: string;
1616
+ default_agent?: string | null;
1617
1617
  /**
1618
1618
  * Custom username to display in conversations instead of system username
1619
1619
  */
@@ -2114,7 +2114,7 @@ export type File = {
2114
2114
  removed: number;
2115
2115
  status: "added" | "deleted" | "modified";
2116
2116
  };
2117
- export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | 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;
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;
2118
2118
  export type McpStatusConnected = {
2119
2119
  status: "connected";
2120
2120
  };
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.35",
4
+ "version": "7.2.36",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {