@kilocode/sdk 7.2.26 → 7.2.30
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.
- package/dist/v2/gen/types.gen.d.ts +233 -54
- package/package.json +1 -1
|
@@ -390,43 +390,32 @@ export type EventCommandExecuted = {
|
|
|
390
390
|
messageID: string;
|
|
391
391
|
};
|
|
392
392
|
};
|
|
393
|
-
export type SuggestionAction = {
|
|
394
|
-
/**
|
|
395
|
-
* Button or option label (1-5 words)
|
|
396
|
-
*/
|
|
397
|
-
label: string;
|
|
398
|
-
/**
|
|
399
|
-
* Brief explanation of what this action does
|
|
400
|
-
*/
|
|
401
|
-
description?: string;
|
|
402
|
-
/**
|
|
403
|
-
* Synthetic user prompt to inject when this action is accepted
|
|
404
|
-
*/
|
|
405
|
-
prompt: string;
|
|
406
|
-
};
|
|
407
|
-
export type SuggestionRequest = {
|
|
408
|
-
id: string;
|
|
409
|
-
sessionID: string;
|
|
410
|
-
/**
|
|
411
|
-
* Suggestion text shown to the user
|
|
412
|
-
*/
|
|
413
|
-
text: string;
|
|
414
|
-
/**
|
|
415
|
-
* Available actions the user can take
|
|
416
|
-
*/
|
|
417
|
-
actions: Array<SuggestionAction>;
|
|
418
|
-
/**
|
|
419
|
-
* Whether this suggestion blocks prompt input. When unset, the TUI treats the suggestion as blocking for backwards compatibility; the built-in suggest tool always sets this to false.
|
|
420
|
-
*/
|
|
421
|
-
blocking?: boolean;
|
|
422
|
-
tool?: {
|
|
423
|
-
messageID: string;
|
|
424
|
-
callID: string;
|
|
425
|
-
};
|
|
426
|
-
};
|
|
427
393
|
export type EventSuggestionShown = {
|
|
428
394
|
type: "suggestion.shown";
|
|
429
|
-
properties:
|
|
395
|
+
properties: {
|
|
396
|
+
id: string;
|
|
397
|
+
sessionID: string;
|
|
398
|
+
text: string;
|
|
399
|
+
actions: Array<{
|
|
400
|
+
/**
|
|
401
|
+
* Button or option label (1-5 words)
|
|
402
|
+
*/
|
|
403
|
+
label: string;
|
|
404
|
+
/**
|
|
405
|
+
* Brief explanation of what this action does
|
|
406
|
+
*/
|
|
407
|
+
description?: string;
|
|
408
|
+
/**
|
|
409
|
+
* Synthetic user prompt to inject when this action is accepted
|
|
410
|
+
*/
|
|
411
|
+
prompt: string;
|
|
412
|
+
}>;
|
|
413
|
+
blocking?: boolean;
|
|
414
|
+
tool?: {
|
|
415
|
+
messageID: string;
|
|
416
|
+
callID: string;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
430
419
|
};
|
|
431
420
|
export type EventSuggestionAccepted = {
|
|
432
421
|
type: "suggestion.accepted";
|
|
@@ -434,7 +423,20 @@ export type EventSuggestionAccepted = {
|
|
|
434
423
|
sessionID: string;
|
|
435
424
|
requestID: string;
|
|
436
425
|
index: number;
|
|
437
|
-
action:
|
|
426
|
+
action: {
|
|
427
|
+
/**
|
|
428
|
+
* Button or option label (1-5 words)
|
|
429
|
+
*/
|
|
430
|
+
label: string;
|
|
431
|
+
/**
|
|
432
|
+
* Brief explanation of what this action does
|
|
433
|
+
*/
|
|
434
|
+
description?: string;
|
|
435
|
+
/**
|
|
436
|
+
* Synthetic user prompt to inject when this action is accepted
|
|
437
|
+
*/
|
|
438
|
+
prompt: string;
|
|
439
|
+
};
|
|
438
440
|
};
|
|
439
441
|
};
|
|
440
442
|
export type EventSuggestionDismissed = {
|
|
@@ -986,6 +988,20 @@ export type EventSessionDeleted = {
|
|
|
986
988
|
info: Session;
|
|
987
989
|
};
|
|
988
990
|
};
|
|
991
|
+
export type IndexingStatusState = "Disabled" | "In Progress" | "Complete" | "Error" | "Standby";
|
|
992
|
+
export type IndexingStatus = {
|
|
993
|
+
state: IndexingStatusState;
|
|
994
|
+
message: string;
|
|
995
|
+
processedFiles: number;
|
|
996
|
+
totalFiles: number;
|
|
997
|
+
percent: number;
|
|
998
|
+
};
|
|
999
|
+
export type EventIndexingStatus = {
|
|
1000
|
+
type: "indexing.status";
|
|
1001
|
+
properties: {
|
|
1002
|
+
status: IndexingStatus;
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
989
1005
|
export type SyncEventMessageUpdated = {
|
|
990
1006
|
type: "sync";
|
|
991
1007
|
name: "message.updated.1";
|
|
@@ -1052,31 +1068,31 @@ export type SyncEventSessionUpdated = {
|
|
|
1052
1068
|
data: {
|
|
1053
1069
|
sessionID: string;
|
|
1054
1070
|
info: {
|
|
1055
|
-
id
|
|
1056
|
-
slug
|
|
1057
|
-
projectID
|
|
1058
|
-
workspaceID
|
|
1059
|
-
directory
|
|
1060
|
-
parentID
|
|
1061
|
-
summary
|
|
1071
|
+
id?: string | null;
|
|
1072
|
+
slug?: string | null;
|
|
1073
|
+
projectID?: string | null;
|
|
1074
|
+
workspaceID?: string | null;
|
|
1075
|
+
directory?: string | null;
|
|
1076
|
+
parentID?: string | null;
|
|
1077
|
+
summary?: {
|
|
1062
1078
|
additions: number;
|
|
1063
1079
|
deletions: number;
|
|
1064
1080
|
files: number;
|
|
1065
1081
|
diffs?: Array<SnapshotSummaryFileDiff>;
|
|
1066
1082
|
} | null;
|
|
1067
1083
|
share?: {
|
|
1068
|
-
url
|
|
1084
|
+
url?: string | null;
|
|
1069
1085
|
};
|
|
1070
|
-
title
|
|
1071
|
-
version
|
|
1086
|
+
title?: string | null;
|
|
1087
|
+
version?: string | null;
|
|
1072
1088
|
time?: {
|
|
1073
|
-
created
|
|
1074
|
-
updated
|
|
1075
|
-
compacting
|
|
1076
|
-
archived
|
|
1089
|
+
created?: number | null;
|
|
1090
|
+
updated?: number | null;
|
|
1091
|
+
compacting?: number | null;
|
|
1092
|
+
archived?: number | null;
|
|
1077
1093
|
};
|
|
1078
|
-
permission
|
|
1079
|
-
revert
|
|
1094
|
+
permission?: PermissionRuleset | null;
|
|
1095
|
+
revert?: {
|
|
1080
1096
|
messageID: string;
|
|
1081
1097
|
partID?: string;
|
|
1082
1098
|
snapshot?: string;
|
|
@@ -1100,7 +1116,7 @@ export type GlobalEvent = {
|
|
|
1100
1116
|
directory: string;
|
|
1101
1117
|
project?: string;
|
|
1102
1118
|
workspace?: string;
|
|
1103
|
-
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 | EventSessionCompacted | EventKiloSessionsRemoteStatusChanged | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted;
|
|
1119
|
+
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 | 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;
|
|
1104
1120
|
};
|
|
1105
1121
|
/**
|
|
1106
1122
|
* Log level
|
|
@@ -1131,6 +1147,117 @@ export type ServerConfig = {
|
|
|
1131
1147
|
*/
|
|
1132
1148
|
cors?: Array<string>;
|
|
1133
1149
|
};
|
|
1150
|
+
/**
|
|
1151
|
+
* Codebase indexing configuration
|
|
1152
|
+
*/
|
|
1153
|
+
export type IndexingConfig = {
|
|
1154
|
+
/**
|
|
1155
|
+
* Enable codebase indexing
|
|
1156
|
+
*/
|
|
1157
|
+
enabled?: boolean;
|
|
1158
|
+
/**
|
|
1159
|
+
* Embedding provider to use for codebase indexing
|
|
1160
|
+
*/
|
|
1161
|
+
provider?: "openai" | "ollama" | "openai-compatible" | "gemini" | "mistral" | "vercel-ai-gateway" | "bedrock" | "openrouter" | "voyage";
|
|
1162
|
+
/**
|
|
1163
|
+
* Embedding model ID (uses provider default if omitted)
|
|
1164
|
+
*/
|
|
1165
|
+
model?: string;
|
|
1166
|
+
/**
|
|
1167
|
+
* Override embedding vector dimension (auto-detected from model if omitted)
|
|
1168
|
+
*/
|
|
1169
|
+
dimension?: number;
|
|
1170
|
+
/**
|
|
1171
|
+
* Vector store backend (default: qdrant)
|
|
1172
|
+
*/
|
|
1173
|
+
vectorStore?: "lancedb" | "qdrant";
|
|
1174
|
+
/**
|
|
1175
|
+
* OpenAI embedding provider options
|
|
1176
|
+
*/
|
|
1177
|
+
openai?: {
|
|
1178
|
+
apiKey?: string;
|
|
1179
|
+
};
|
|
1180
|
+
/**
|
|
1181
|
+
* Ollama embedding provider options
|
|
1182
|
+
*/
|
|
1183
|
+
ollama?: {
|
|
1184
|
+
baseUrl?: string;
|
|
1185
|
+
};
|
|
1186
|
+
/**
|
|
1187
|
+
* OpenAI-compatible embedding provider options
|
|
1188
|
+
*/
|
|
1189
|
+
"openai-compatible"?: {
|
|
1190
|
+
baseUrl?: string;
|
|
1191
|
+
apiKey?: string;
|
|
1192
|
+
};
|
|
1193
|
+
/**
|
|
1194
|
+
* Gemini embedding provider options
|
|
1195
|
+
*/
|
|
1196
|
+
gemini?: {
|
|
1197
|
+
apiKey?: string;
|
|
1198
|
+
};
|
|
1199
|
+
/**
|
|
1200
|
+
* Mistral embedding provider options
|
|
1201
|
+
*/
|
|
1202
|
+
mistral?: {
|
|
1203
|
+
apiKey?: string;
|
|
1204
|
+
};
|
|
1205
|
+
/**
|
|
1206
|
+
* Vercel AI Gateway embedding provider options
|
|
1207
|
+
*/
|
|
1208
|
+
"vercel-ai-gateway"?: {
|
|
1209
|
+
apiKey?: string;
|
|
1210
|
+
};
|
|
1211
|
+
/**
|
|
1212
|
+
* AWS Bedrock embedding provider options
|
|
1213
|
+
*/
|
|
1214
|
+
bedrock?: {
|
|
1215
|
+
region?: string;
|
|
1216
|
+
profile?: string;
|
|
1217
|
+
};
|
|
1218
|
+
/**
|
|
1219
|
+
* OpenRouter embedding provider options
|
|
1220
|
+
*/
|
|
1221
|
+
openrouter?: {
|
|
1222
|
+
apiKey?: string;
|
|
1223
|
+
specificProvider?: string;
|
|
1224
|
+
};
|
|
1225
|
+
/**
|
|
1226
|
+
* Voyage embedding provider options
|
|
1227
|
+
*/
|
|
1228
|
+
voyage?: {
|
|
1229
|
+
apiKey?: string;
|
|
1230
|
+
};
|
|
1231
|
+
/**
|
|
1232
|
+
* Qdrant vector store connection options
|
|
1233
|
+
*/
|
|
1234
|
+
qdrant?: {
|
|
1235
|
+
url?: string;
|
|
1236
|
+
apiKey?: string;
|
|
1237
|
+
};
|
|
1238
|
+
/**
|
|
1239
|
+
* LanceDB vector store options
|
|
1240
|
+
*/
|
|
1241
|
+
lancedb?: {
|
|
1242
|
+
directory?: string;
|
|
1243
|
+
};
|
|
1244
|
+
/**
|
|
1245
|
+
* Minimum similarity score for search results (default: 0.4)
|
|
1246
|
+
*/
|
|
1247
|
+
searchMinScore?: number;
|
|
1248
|
+
/**
|
|
1249
|
+
* Maximum number of search results (default: 50)
|
|
1250
|
+
*/
|
|
1251
|
+
searchMaxResults?: number;
|
|
1252
|
+
/**
|
|
1253
|
+
* Number of code segments per embedding batch (default: 60)
|
|
1254
|
+
*/
|
|
1255
|
+
embeddingBatchSize?: number;
|
|
1256
|
+
/**
|
|
1257
|
+
* Maximum retry attempts for failed embedding batches (default: 3)
|
|
1258
|
+
*/
|
|
1259
|
+
scannerMaxBatchRetries?: number;
|
|
1260
|
+
};
|
|
1134
1261
|
export type PermissionActionConfig = "ask" | "allow" | "deny" | null;
|
|
1135
1262
|
export type PermissionObjectConfig = {
|
|
1136
1263
|
[key: string]: PermissionActionConfig;
|
|
@@ -1435,6 +1562,7 @@ export type Config = {
|
|
|
1435
1562
|
* Enable remote control of sessions via Kilo Cloud. Equivalent to running /remote on startup.
|
|
1436
1563
|
*/
|
|
1437
1564
|
remote_control?: boolean;
|
|
1565
|
+
indexing?: IndexingConfig;
|
|
1438
1566
|
/**
|
|
1439
1567
|
* Model to use in the format of provider/model, eg anthropic/claude-2
|
|
1440
1568
|
*/
|
|
@@ -1538,6 +1666,19 @@ export type Config = {
|
|
|
1538
1666
|
*/
|
|
1539
1667
|
prompt?: string;
|
|
1540
1668
|
};
|
|
1669
|
+
/**
|
|
1670
|
+
* Thresholds for truncating tool output. When output exceeds either limit, the full text is written to the truncation directory and a preview is returned.
|
|
1671
|
+
*/
|
|
1672
|
+
tool_output?: {
|
|
1673
|
+
/**
|
|
1674
|
+
* Maximum lines of tool output before it is truncated and saved to disk (default: 2000)
|
|
1675
|
+
*/
|
|
1676
|
+
max_lines?: number;
|
|
1677
|
+
/**
|
|
1678
|
+
* Maximum bytes of tool output before it is truncated and saved to disk (default: 51200)
|
|
1679
|
+
*/
|
|
1680
|
+
max_bytes?: number;
|
|
1681
|
+
};
|
|
1541
1682
|
compaction?: {
|
|
1542
1683
|
/**
|
|
1543
1684
|
* Enable automatic compaction when context is full (default: true)
|
|
@@ -1570,6 +1711,10 @@ export type Config = {
|
|
|
1570
1711
|
* Enable AI-powered codebase search
|
|
1571
1712
|
*/
|
|
1572
1713
|
codebase_search?: boolean;
|
|
1714
|
+
/**
|
|
1715
|
+
* Enable semantic codebase indexing and the semantic_search tool
|
|
1716
|
+
*/
|
|
1717
|
+
semantic_indexing?: boolean;
|
|
1573
1718
|
/**
|
|
1574
1719
|
* Enable telemetry. Set to false to opt-out.
|
|
1575
1720
|
*/
|
|
@@ -1925,7 +2070,7 @@ export type File = {
|
|
|
1925
2070
|
removed: number;
|
|
1926
2071
|
status: "added" | "deleted" | "modified";
|
|
1927
2072
|
};
|
|
1928
|
-
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 | EventSessionCompacted | EventKiloSessionsRemoteStatusChanged | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted;
|
|
2073
|
+
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 | EventSessionCompacted | EventKiloSessionsRemoteStatusChanged | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventIndexingStatus;
|
|
1929
2074
|
export type McpStatusConnected = {
|
|
1930
2075
|
status: "connected";
|
|
1931
2076
|
};
|
|
@@ -2006,6 +2151,40 @@ export type FormatterStatus = {
|
|
|
2006
2151
|
extensions: Array<string>;
|
|
2007
2152
|
enabled: boolean;
|
|
2008
2153
|
};
|
|
2154
|
+
export type SuggestionAction = {
|
|
2155
|
+
/**
|
|
2156
|
+
* Button or option label (1-5 words)
|
|
2157
|
+
*/
|
|
2158
|
+
label: string;
|
|
2159
|
+
/**
|
|
2160
|
+
* Brief explanation of what this action does
|
|
2161
|
+
*/
|
|
2162
|
+
description?: string;
|
|
2163
|
+
/**
|
|
2164
|
+
* Synthetic user prompt to inject when this action is accepted
|
|
2165
|
+
*/
|
|
2166
|
+
prompt: string;
|
|
2167
|
+
};
|
|
2168
|
+
export type SuggestionRequest = {
|
|
2169
|
+
id: string;
|
|
2170
|
+
sessionID: string;
|
|
2171
|
+
/**
|
|
2172
|
+
* Suggestion text shown to the user
|
|
2173
|
+
*/
|
|
2174
|
+
text: string;
|
|
2175
|
+
/**
|
|
2176
|
+
* Available actions the user can take
|
|
2177
|
+
*/
|
|
2178
|
+
actions: Array<SuggestionAction>;
|
|
2179
|
+
/**
|
|
2180
|
+
* Whether this suggestion blocks prompt input. When unset, the TUI treats the suggestion as blocking for backwards compatibility; the built-in suggest tool always sets this to false.
|
|
2181
|
+
*/
|
|
2182
|
+
blocking?: boolean;
|
|
2183
|
+
tool?: {
|
|
2184
|
+
messageID: string;
|
|
2185
|
+
callID: string;
|
|
2186
|
+
};
|
|
2187
|
+
};
|
|
2009
2188
|
export type GlobalHealthData = {
|
|
2010
2189
|
body?: never;
|
|
2011
2190
|
path?: never;
|