@kilocode/sdk 7.3.22 → 7.3.28
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 +89 -83
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type Event =
|
|
4
|
+
export type Event = EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow1 | EventTuiSessionSelect | EventKilocodeAgentManagerStart | EventIndexingStatus | EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventLspClientDiagnostics | EventLspUpdated | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionCompacted | EventCommandExecuted | EventProjectUpdated | EventVcsBranchUpdated | EventKiloSessionsRemoteStatusChanged | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextPrompted | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded;
|
|
5
5
|
export type OAuth = {
|
|
6
6
|
type: "oauth";
|
|
7
7
|
refresh: string;
|
|
@@ -23,6 +23,48 @@ export type WellKnownAuth = {
|
|
|
23
23
|
token: string;
|
|
24
24
|
};
|
|
25
25
|
export type Auth = OAuth | ApiAuth | WellKnownAuth;
|
|
26
|
+
export type EventTuiPromptAppend = {
|
|
27
|
+
id: string;
|
|
28
|
+
type: "tui.prompt.append";
|
|
29
|
+
properties: {
|
|
30
|
+
text: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type EventTuiCommandExecute = {
|
|
34
|
+
id: string;
|
|
35
|
+
type: "tui.command.execute";
|
|
36
|
+
properties: {
|
|
37
|
+
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;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export type EventTuiToastShow = {
|
|
41
|
+
id: string;
|
|
42
|
+
type: "tui.toast.show";
|
|
43
|
+
properties: {
|
|
44
|
+
title?: string;
|
|
45
|
+
message: string;
|
|
46
|
+
variant: "info" | "success" | "warning" | "error";
|
|
47
|
+
duration?: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export type EventTuiSessionSelect = {
|
|
51
|
+
id: string;
|
|
52
|
+
type: "tui.session.select";
|
|
53
|
+
properties: {
|
|
54
|
+
/**
|
|
55
|
+
* Session ID to navigate to
|
|
56
|
+
*/
|
|
57
|
+
sessionID: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export type IndexingStatusState = "Disabled" | "In Progress" | "Complete" | "Error" | "Standby";
|
|
61
|
+
export type IndexingStatus = {
|
|
62
|
+
state: IndexingStatusState;
|
|
63
|
+
message: string;
|
|
64
|
+
processedFiles: number;
|
|
65
|
+
totalFiles: number;
|
|
66
|
+
percent: number;
|
|
67
|
+
};
|
|
26
68
|
export type QuestionOption = {
|
|
27
69
|
/**
|
|
28
70
|
* Display text (1-5 words, concise)
|
|
@@ -78,40 +120,6 @@ export type QuestionRejected = {
|
|
|
78
120
|
sessionID: string;
|
|
79
121
|
requestID: string;
|
|
80
122
|
};
|
|
81
|
-
export type EventTuiPromptAppend = {
|
|
82
|
-
id: string;
|
|
83
|
-
type: "tui.prompt.append";
|
|
84
|
-
properties: {
|
|
85
|
-
text: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
export type EventTuiCommandExecute = {
|
|
89
|
-
id: string;
|
|
90
|
-
type: "tui.command.execute";
|
|
91
|
-
properties: {
|
|
92
|
-
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;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
export type EventTuiToastShow = {
|
|
96
|
-
id: string;
|
|
97
|
-
type: "tui.toast.show";
|
|
98
|
-
properties: {
|
|
99
|
-
title?: string;
|
|
100
|
-
message: string;
|
|
101
|
-
variant: "info" | "success" | "warning" | "error";
|
|
102
|
-
duration?: number;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
export type EventTuiSessionSelect = {
|
|
106
|
-
id: string;
|
|
107
|
-
type: "tui.session.select";
|
|
108
|
-
properties: {
|
|
109
|
-
/**
|
|
110
|
-
* Session ID to navigate to
|
|
111
|
-
*/
|
|
112
|
-
sessionID: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
123
|
export type SessionNetworkWait = {
|
|
116
124
|
id: string;
|
|
117
125
|
sessionID: string;
|
|
@@ -667,19 +675,11 @@ export type Prompt = {
|
|
|
667
675
|
files?: Array<PromptFileAttachment>;
|
|
668
676
|
agents?: Array<PromptAgentAttachment>;
|
|
669
677
|
};
|
|
670
|
-
export type IndexingStatusState = "Disabled" | "In Progress" | "Complete" | "Error" | "Standby";
|
|
671
|
-
export type IndexingStatus = {
|
|
672
|
-
state: IndexingStatusState;
|
|
673
|
-
message: string;
|
|
674
|
-
processedFiles: number;
|
|
675
|
-
totalFiles: number;
|
|
676
|
-
percent: number;
|
|
677
|
-
};
|
|
678
678
|
export type GlobalEvent = {
|
|
679
679
|
directory: string;
|
|
680
680
|
project?: string;
|
|
681
681
|
workspace?: string;
|
|
682
|
-
payload:
|
|
682
|
+
payload: EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventKilocodeAgentManagerStart | EventIndexingStatus | EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventLspClientDiagnostics | EventLspUpdated | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventBackgroundProcessUpdated | EventBackgroundProcessDeleted | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionCompacted | EventCommandExecuted | EventProjectUpdated | EventVcsBranchUpdated | EventKiloSessionsRemoteStatusChanged | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextPrompted | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextPrompted | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextDelta | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningDelta | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputDelta | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionDelta | SyncEventSessionNextCompactionEnded;
|
|
683
683
|
};
|
|
684
684
|
/**
|
|
685
685
|
* Log level
|
|
@@ -845,6 +845,8 @@ export type ProviderConfig = {
|
|
|
845
845
|
name?: string;
|
|
846
846
|
family?: string;
|
|
847
847
|
prompt?: "codex" | "gemini" | "beast" | "anthropic" | "trinity" | "anthropic_without_todo" | "ling" | "gpt55";
|
|
848
|
+
isFree?: boolean;
|
|
849
|
+
ai_sdk_provider?: "alibaba" | "anthropic" | "openai" | "openai-compatible" | "openrouter";
|
|
848
850
|
release_date?: string;
|
|
849
851
|
attachment?: boolean;
|
|
850
852
|
reasoning?: boolean;
|
|
@@ -2187,13 +2189,6 @@ export type SyncEventSessionNextCompactionEnded = {
|
|
|
2187
2189
|
include?: string;
|
|
2188
2190
|
};
|
|
2189
2191
|
};
|
|
2190
|
-
export type EventServerInstanceDisposed = {
|
|
2191
|
-
id: string;
|
|
2192
|
-
type: "server.instance.disposed";
|
|
2193
|
-
properties: {
|
|
2194
|
-
directory: string;
|
|
2195
|
-
};
|
|
2196
|
-
};
|
|
2197
2192
|
export type EventServerConnected = {
|
|
2198
2193
|
id: string;
|
|
2199
2194
|
type: "server.connected";
|
|
@@ -2215,6 +2210,35 @@ export type EventGlobalConfigUpdated = {
|
|
|
2215
2210
|
[key: string]: unknown;
|
|
2216
2211
|
};
|
|
2217
2212
|
};
|
|
2213
|
+
export type EventKilocodeAgentManagerStart = {
|
|
2214
|
+
id: string;
|
|
2215
|
+
type: "kilocode.agent_manager.start";
|
|
2216
|
+
properties: {
|
|
2217
|
+
requestID: string;
|
|
2218
|
+
sessionID: string;
|
|
2219
|
+
mode: "worktree" | "local";
|
|
2220
|
+
versions?: boolean;
|
|
2221
|
+
tasks: Array<{
|
|
2222
|
+
prompt?: string;
|
|
2223
|
+
name?: string;
|
|
2224
|
+
branchName?: string;
|
|
2225
|
+
}>;
|
|
2226
|
+
};
|
|
2227
|
+
};
|
|
2228
|
+
export type EventIndexingStatus = {
|
|
2229
|
+
id: string;
|
|
2230
|
+
type: "indexing.status";
|
|
2231
|
+
properties: {
|
|
2232
|
+
status: IndexingStatus;
|
|
2233
|
+
};
|
|
2234
|
+
};
|
|
2235
|
+
export type EventServerInstanceDisposed = {
|
|
2236
|
+
id: string;
|
|
2237
|
+
type: "server.instance.disposed";
|
|
2238
|
+
properties: {
|
|
2239
|
+
directory: string;
|
|
2240
|
+
};
|
|
2241
|
+
};
|
|
2218
2242
|
export type EventFileEdited = {
|
|
2219
2243
|
id: string;
|
|
2220
2244
|
type: "file.edited";
|
|
@@ -2468,21 +2492,6 @@ export type EventProjectUpdated = {
|
|
|
2468
2492
|
type: "project.updated";
|
|
2469
2493
|
properties: Project;
|
|
2470
2494
|
};
|
|
2471
|
-
export type EventKilocodeAgentManagerStart = {
|
|
2472
|
-
id: string;
|
|
2473
|
-
type: "kilocode.agent_manager.start";
|
|
2474
|
-
properties: {
|
|
2475
|
-
requestID: string;
|
|
2476
|
-
sessionID: string;
|
|
2477
|
-
mode: "worktree" | "local";
|
|
2478
|
-
versions?: boolean;
|
|
2479
|
-
tasks: Array<{
|
|
2480
|
-
prompt?: string;
|
|
2481
|
-
name?: string;
|
|
2482
|
-
branchName?: string;
|
|
2483
|
-
}>;
|
|
2484
|
-
};
|
|
2485
|
-
};
|
|
2486
2495
|
export type EventVcsBranchUpdated = {
|
|
2487
2496
|
id: string;
|
|
2488
2497
|
type: "vcs.branch.updated";
|
|
@@ -2958,13 +2967,6 @@ export type EventSessionNextCompactionEnded = {
|
|
|
2958
2967
|
include?: string;
|
|
2959
2968
|
};
|
|
2960
2969
|
};
|
|
2961
|
-
export type EventIndexingStatus = {
|
|
2962
|
-
id: string;
|
|
2963
|
-
type: "indexing.status";
|
|
2964
|
-
properties: {
|
|
2965
|
-
status: IndexingStatus;
|
|
2966
|
-
};
|
|
2967
|
-
};
|
|
2968
2970
|
export type SessionInfo = {
|
|
2969
2971
|
id: string;
|
|
2970
2972
|
parentID?: string;
|
|
@@ -5291,6 +5293,10 @@ export type SessionForkData = {
|
|
|
5291
5293
|
url: "/session/{sessionID}/fork";
|
|
5292
5294
|
};
|
|
5293
5295
|
export type SessionForkErrors = {
|
|
5296
|
+
/**
|
|
5297
|
+
* Bad request
|
|
5298
|
+
*/
|
|
5299
|
+
400: BadRequestError;
|
|
5294
5300
|
/**
|
|
5295
5301
|
* NotFoundError
|
|
5296
5302
|
*/
|
|
@@ -6968,8 +6974,8 @@ export type KiloProfileResponses = {
|
|
|
6968
6974
|
};
|
|
6969
6975
|
balance: {
|
|
6970
6976
|
balance: number;
|
|
6971
|
-
};
|
|
6972
|
-
currentOrgId: string;
|
|
6977
|
+
} | null;
|
|
6978
|
+
currentOrgId: string | null;
|
|
6973
6979
|
};
|
|
6974
6980
|
};
|
|
6975
6981
|
export type KiloProfileResponse = KiloProfileResponses[keyof KiloProfileResponses];
|
|
@@ -7212,20 +7218,20 @@ export type KiloClawStatusResponses = {
|
|
|
7212
7218
|
* Instance status
|
|
7213
7219
|
*/
|
|
7214
7220
|
200: {
|
|
7215
|
-
status: "provisioned" | "starting" | "restarting" | "recovering" | "running" | "stopped" | "destroying" | "restoring";
|
|
7221
|
+
status: "provisioned" | "starting" | "restarting" | "recovering" | "running" | "stopped" | "destroying" | "restoring" | null;
|
|
7216
7222
|
sandboxId?: string;
|
|
7217
7223
|
flyRegion?: string;
|
|
7218
7224
|
machineSize?: {
|
|
7219
7225
|
cpus: number;
|
|
7220
7226
|
memory_mb: number;
|
|
7221
7227
|
};
|
|
7222
|
-
openclawVersion?: string;
|
|
7223
|
-
lastStartedAt?: string;
|
|
7224
|
-
lastStoppedAt?: string;
|
|
7228
|
+
openclawVersion?: string | null;
|
|
7229
|
+
lastStartedAt?: string | null;
|
|
7230
|
+
lastStoppedAt?: string | null;
|
|
7225
7231
|
channelCount?: number;
|
|
7226
7232
|
secretCount?: number;
|
|
7227
7233
|
userId?: string;
|
|
7228
|
-
botName?: string;
|
|
7234
|
+
botName?: string | null;
|
|
7229
7235
|
};
|
|
7230
7236
|
};
|
|
7231
7237
|
export type KiloClawStatusResponse = KiloClawStatusResponses[keyof KiloClawStatusResponses];
|
|
@@ -7247,7 +7253,7 @@ export type KiloClawChatCredentialsResponses = {
|
|
|
7247
7253
|
expiresAt: string;
|
|
7248
7254
|
kiloChatUrl: string;
|
|
7249
7255
|
eventServiceUrl: string;
|
|
7250
|
-
};
|
|
7256
|
+
} | null;
|
|
7251
7257
|
};
|
|
7252
7258
|
export type KiloClawChatCredentialsResponse = KiloClawChatCredentialsResponses[keyof KiloClawChatCredentialsResponses];
|
|
7253
7259
|
export type KiloCloudSessionsData = {
|
|
@@ -7276,12 +7282,12 @@ export type KiloCloudSessionsResponses = {
|
|
|
7276
7282
|
200: {
|
|
7277
7283
|
cliSessions: Array<{
|
|
7278
7284
|
session_id: string;
|
|
7279
|
-
title: string;
|
|
7285
|
+
title: string | null;
|
|
7280
7286
|
created_at: string;
|
|
7281
7287
|
updated_at: string;
|
|
7282
7288
|
version: number;
|
|
7283
7289
|
}>;
|
|
7284
|
-
nextCursor: string;
|
|
7290
|
+
nextCursor: string | null;
|
|
7285
7291
|
};
|
|
7286
7292
|
};
|
|
7287
7293
|
export type KiloCloudSessionsResponse = KiloCloudSessionsResponses[keyof KiloCloudSessionsResponses];
|
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.3.
|
|
4
|
+
"version": "7.3.28",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@hey-api/openapi-ts": "0.90.10",
|
|
46
46
|
"@tsconfig/node22": "22.0.2",
|
|
47
47
|
"@types/cross-spawn": "6.0.6",
|
|
48
|
-
"@types/node": "24.12.
|
|
48
|
+
"@types/node": "24.12.4",
|
|
49
49
|
"@typescript/native-preview": "7.0.0-dev.20260316.1",
|
|
50
50
|
"typescript": "5.8.2"
|
|
51
51
|
},
|