@kilocode/sdk 7.3.7 → 7.3.8
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/sdk.gen.d.ts +50 -7
- package/dist/v2/gen/sdk.gen.js +104 -5
- package/dist/v2/gen/types.gen.d.ts +182 -95
- package/package.json +2 -2
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -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, EventTuiCommandExecute2, EventTuiPromptAppend2, EventTuiSessionSelect2, EventTuiToastShow2, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceAdapterListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses,
|
|
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, EventTuiCommandExecute2, EventTuiPromptAppend2, EventTuiSessionSelect2, EventTuiToastShow2, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceAdapterListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceStatusResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, IndexingStatusResponses, InstanceDisposeResponses, KiloAudioTranscriptionsErrors, KiloAudioTranscriptionsResponses, KiloClawChatCredentialsResponses, KiloClawStatusErrors, 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, Prompt, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyConnectTokenErrors, PtyConnectTokenResponses, 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, SessionDelivery, SessionDiffResponses, SessionForkErrors, 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, SyncStealErrors, SyncStealResponses, TelemetryCaptureErrors, TelemetryCaptureResponses, TelemetrySetEnabledErrors, TelemetrySetEnabledResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, V2SessionCompactResponses, V2SessionContextResponses, V2SessionListErrors, V2SessionListResponses, V2SessionMessagesErrors, V2SessionMessagesResponses, V2SessionPromptResponses, V2SessionWaitResponses, VcsApplyErrors, VcsApplyResponses, VcsDiffRawResponses, VcsDiffResponses, VcsGetResponses, VcsStatusResponses, 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
|
|
@@ -290,16 +290,17 @@ export declare class Workspace extends HeyApiClient {
|
|
|
290
290
|
workspace?: string;
|
|
291
291
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceRemoveErrors, ThrowOnError, "fields">;
|
|
292
292
|
/**
|
|
293
|
-
*
|
|
293
|
+
* Warp session into workspace
|
|
294
294
|
*
|
|
295
|
-
*
|
|
295
|
+
* Move a session's sync history into the target workspace, or detach it to the local project.
|
|
296
296
|
*/
|
|
297
|
-
|
|
298
|
-
id: string;
|
|
297
|
+
warp<ThrowOnError extends boolean = false>(parameters?: {
|
|
299
298
|
directory?: string;
|
|
300
299
|
workspace?: string;
|
|
300
|
+
id?: string | null;
|
|
301
301
|
sessionID?: string;
|
|
302
|
-
|
|
302
|
+
copyChanges?: boolean;
|
|
303
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceWarpResponses, ExperimentalWorkspaceWarpErrors, ThrowOnError, "fields">;
|
|
303
304
|
private _adapter?;
|
|
304
305
|
get adapter(): Adapter;
|
|
305
306
|
}
|
|
@@ -495,6 +496,17 @@ export declare class Path extends HeyApiClient {
|
|
|
495
496
|
workspace?: string;
|
|
496
497
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PathGetResponses, unknown, ThrowOnError, "fields">;
|
|
497
498
|
}
|
|
499
|
+
export declare class Diff extends HeyApiClient {
|
|
500
|
+
/**
|
|
501
|
+
* Get raw VCS diff
|
|
502
|
+
*
|
|
503
|
+
* Retrieve a raw patch for current uncommitted changes.
|
|
504
|
+
*/
|
|
505
|
+
raw<ThrowOnError extends boolean = false>(parameters?: {
|
|
506
|
+
directory?: string;
|
|
507
|
+
workspace?: string;
|
|
508
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsDiffRawResponses, unknown, ThrowOnError, "fields">;
|
|
509
|
+
}
|
|
498
510
|
export declare class Vcs extends HeyApiClient {
|
|
499
511
|
/**
|
|
500
512
|
* Get VCS info
|
|
@@ -505,6 +517,15 @@ export declare class Vcs extends HeyApiClient {
|
|
|
505
517
|
directory?: string;
|
|
506
518
|
workspace?: string;
|
|
507
519
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsGetResponses, unknown, ThrowOnError, "fields">;
|
|
520
|
+
/**
|
|
521
|
+
* Get VCS status
|
|
522
|
+
*
|
|
523
|
+
* Retrieve changed files in the current working tree without patches.
|
|
524
|
+
*/
|
|
525
|
+
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
526
|
+
directory?: string;
|
|
527
|
+
workspace?: string;
|
|
528
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsStatusResponses, unknown, ThrowOnError, "fields">;
|
|
508
529
|
/**
|
|
509
530
|
* Get VCS diff
|
|
510
531
|
*
|
|
@@ -515,6 +536,18 @@ export declare class Vcs extends HeyApiClient {
|
|
|
515
536
|
workspace?: string;
|
|
516
537
|
mode: "git" | "branch";
|
|
517
538
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsDiffResponses, unknown, ThrowOnError, "fields">;
|
|
539
|
+
/**
|
|
540
|
+
* Apply VCS patch
|
|
541
|
+
*
|
|
542
|
+
* Apply a raw patch to the current working tree.
|
|
543
|
+
*/
|
|
544
|
+
apply<ThrowOnError extends boolean = false>(parameters?: {
|
|
545
|
+
directory?: string;
|
|
546
|
+
workspace?: string;
|
|
547
|
+
patch?: string;
|
|
548
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsApplyResponses, VcsApplyErrors, ThrowOnError, "fields">;
|
|
549
|
+
private _diff?;
|
|
550
|
+
get diff2(): Diff;
|
|
518
551
|
}
|
|
519
552
|
export declare class Command extends HeyApiClient {
|
|
520
553
|
/**
|
|
@@ -1102,7 +1135,7 @@ export declare class Session2 extends HeyApiClient {
|
|
|
1102
1135
|
directory?: string;
|
|
1103
1136
|
workspace?: string;
|
|
1104
1137
|
messageID?: string;
|
|
1105
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionForkResponses,
|
|
1138
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionForkResponses, SessionForkErrors, ThrowOnError, "fields">;
|
|
1106
1139
|
/**
|
|
1107
1140
|
* Abort session
|
|
1108
1141
|
*
|
|
@@ -1330,6 +1363,16 @@ export declare class Sync extends HeyApiClient {
|
|
|
1330
1363
|
};
|
|
1331
1364
|
}>;
|
|
1332
1365
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SyncReplayResponses, SyncReplayErrors, ThrowOnError, "fields">;
|
|
1366
|
+
/**
|
|
1367
|
+
* Steal session into workspace
|
|
1368
|
+
*
|
|
1369
|
+
* Update a session to belong to the current workspace through the sync event system.
|
|
1370
|
+
*/
|
|
1371
|
+
steal<ThrowOnError extends boolean = false>(parameters?: {
|
|
1372
|
+
directory?: string;
|
|
1373
|
+
workspace?: string;
|
|
1374
|
+
sessionID?: string;
|
|
1375
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SyncStealResponses, SyncStealErrors, ThrowOnError, "fields">;
|
|
1333
1376
|
private _history?;
|
|
1334
1377
|
get history(): History;
|
|
1335
1378
|
}
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -565,23 +565,24 @@ export class Workspace extends HeyApiClient {
|
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
567
|
/**
|
|
568
|
-
*
|
|
568
|
+
* Warp session into workspace
|
|
569
569
|
*
|
|
570
|
-
*
|
|
570
|
+
* Move a session's sync history into the target workspace, or detach it to the local project.
|
|
571
571
|
*/
|
|
572
|
-
|
|
572
|
+
warp(parameters, options) {
|
|
573
573
|
const params = buildClientParams([parameters], [
|
|
574
574
|
{
|
|
575
575
|
args: [
|
|
576
|
-
{ in: "path", key: "id" },
|
|
577
576
|
{ in: "query", key: "directory" },
|
|
578
577
|
{ in: "query", key: "workspace" },
|
|
578
|
+
{ in: "body", key: "id" },
|
|
579
579
|
{ in: "body", key: "sessionID" },
|
|
580
|
+
{ in: "body", key: "copyChanges" },
|
|
580
581
|
],
|
|
581
582
|
},
|
|
582
583
|
]);
|
|
583
584
|
return (options?.client ?? this.client).post({
|
|
584
|
-
url: "/experimental/workspace/
|
|
585
|
+
url: "/experimental/workspace/warp",
|
|
585
586
|
...options,
|
|
586
587
|
...params,
|
|
587
588
|
headers: {
|
|
@@ -998,6 +999,28 @@ export class Path extends HeyApiClient {
|
|
|
998
999
|
});
|
|
999
1000
|
}
|
|
1000
1001
|
}
|
|
1002
|
+
export class Diff extends HeyApiClient {
|
|
1003
|
+
/**
|
|
1004
|
+
* Get raw VCS diff
|
|
1005
|
+
*
|
|
1006
|
+
* Retrieve a raw patch for current uncommitted changes.
|
|
1007
|
+
*/
|
|
1008
|
+
raw(parameters, options) {
|
|
1009
|
+
const params = buildClientParams([parameters], [
|
|
1010
|
+
{
|
|
1011
|
+
args: [
|
|
1012
|
+
{ in: "query", key: "directory" },
|
|
1013
|
+
{ in: "query", key: "workspace" },
|
|
1014
|
+
],
|
|
1015
|
+
},
|
|
1016
|
+
]);
|
|
1017
|
+
return (options?.client ?? this.client).get({
|
|
1018
|
+
url: "/vcs/diff/raw",
|
|
1019
|
+
...options,
|
|
1020
|
+
...params,
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1001
1024
|
export class Vcs extends HeyApiClient {
|
|
1002
1025
|
/**
|
|
1003
1026
|
* Get VCS info
|
|
@@ -1019,6 +1042,26 @@ export class Vcs extends HeyApiClient {
|
|
|
1019
1042
|
...params,
|
|
1020
1043
|
});
|
|
1021
1044
|
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Get VCS status
|
|
1047
|
+
*
|
|
1048
|
+
* Retrieve changed files in the current working tree without patches.
|
|
1049
|
+
*/
|
|
1050
|
+
status(parameters, options) {
|
|
1051
|
+
const params = buildClientParams([parameters], [
|
|
1052
|
+
{
|
|
1053
|
+
args: [
|
|
1054
|
+
{ in: "query", key: "directory" },
|
|
1055
|
+
{ in: "query", key: "workspace" },
|
|
1056
|
+
],
|
|
1057
|
+
},
|
|
1058
|
+
]);
|
|
1059
|
+
return (options?.client ?? this.client).get({
|
|
1060
|
+
url: "/vcs/status",
|
|
1061
|
+
...options,
|
|
1062
|
+
...params,
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1022
1065
|
/**
|
|
1023
1066
|
* Get VCS diff
|
|
1024
1067
|
*
|
|
@@ -1040,6 +1083,36 @@ export class Vcs extends HeyApiClient {
|
|
|
1040
1083
|
...params,
|
|
1041
1084
|
});
|
|
1042
1085
|
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Apply VCS patch
|
|
1088
|
+
*
|
|
1089
|
+
* Apply a raw patch to the current working tree.
|
|
1090
|
+
*/
|
|
1091
|
+
apply(parameters, options) {
|
|
1092
|
+
const params = buildClientParams([parameters], [
|
|
1093
|
+
{
|
|
1094
|
+
args: [
|
|
1095
|
+
{ in: "query", key: "directory" },
|
|
1096
|
+
{ in: "query", key: "workspace" },
|
|
1097
|
+
{ in: "body", key: "patch" },
|
|
1098
|
+
],
|
|
1099
|
+
},
|
|
1100
|
+
]);
|
|
1101
|
+
return (options?.client ?? this.client).post({
|
|
1102
|
+
url: "/vcs/apply",
|
|
1103
|
+
...options,
|
|
1104
|
+
...params,
|
|
1105
|
+
headers: {
|
|
1106
|
+
"Content-Type": "application/json",
|
|
1107
|
+
...options?.headers,
|
|
1108
|
+
...params.headers,
|
|
1109
|
+
},
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
_diff;
|
|
1113
|
+
get diff2() {
|
|
1114
|
+
return (this._diff ??= new Diff({ client: this.client }));
|
|
1115
|
+
}
|
|
1043
1116
|
}
|
|
1044
1117
|
export class Command extends HeyApiClient {
|
|
1045
1118
|
/**
|
|
@@ -2650,6 +2723,32 @@ export class Sync extends HeyApiClient {
|
|
|
2650
2723
|
},
|
|
2651
2724
|
});
|
|
2652
2725
|
}
|
|
2726
|
+
/**
|
|
2727
|
+
* Steal session into workspace
|
|
2728
|
+
*
|
|
2729
|
+
* Update a session to belong to the current workspace through the sync event system.
|
|
2730
|
+
*/
|
|
2731
|
+
steal(parameters, options) {
|
|
2732
|
+
const params = buildClientParams([parameters], [
|
|
2733
|
+
{
|
|
2734
|
+
args: [
|
|
2735
|
+
{ in: "query", key: "directory" },
|
|
2736
|
+
{ in: "query", key: "workspace" },
|
|
2737
|
+
{ in: "body", key: "sessionID" },
|
|
2738
|
+
],
|
|
2739
|
+
},
|
|
2740
|
+
]);
|
|
2741
|
+
return (options?.client ?? this.client).post({
|
|
2742
|
+
url: "/sync/steal",
|
|
2743
|
+
...options,
|
|
2744
|
+
...params,
|
|
2745
|
+
headers: {
|
|
2746
|
+
"Content-Type": "application/json",
|
|
2747
|
+
...options?.headers,
|
|
2748
|
+
...params.headers,
|
|
2749
|
+
},
|
|
2750
|
+
});
|
|
2751
|
+
}
|
|
2653
2752
|
_history;
|
|
2654
2753
|
get history() {
|
|
2655
2754
|
return (this._history ??= new History({ client: this.client }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type Event = EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow1 | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventFileWatcherUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionCompacted | EventCommandExecuted | EventProjectUpdated | EventKilocodeAgentManagerStart | EventVcsBranchUpdated |
|
|
4
|
+
export type Event = EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow1 | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventFileWatcherUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionCompacted | EventCommandExecuted | EventProjectUpdated | EventKilocodeAgentManagerStart | 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 | EventIndexingStatus;
|
|
5
5
|
export type OAuth = {
|
|
6
6
|
type: "oauth";
|
|
7
7
|
refresh: string;
|
|
@@ -651,14 +651,14 @@ export type GlobalEvent = {
|
|
|
651
651
|
directory: string;
|
|
652
652
|
project?: string;
|
|
653
653
|
workspace?: string;
|
|
654
|
-
payload: EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventFileWatcherUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionCompacted | EventCommandExecuted | EventProjectUpdated | EventKilocodeAgentManagerStart | EventVcsBranchUpdated |
|
|
654
|
+
payload: EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionTurnOpen | EventSessionTurnClose | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventFileWatcherUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionCompacted | EventCommandExecuted | EventProjectUpdated | EventKilocodeAgentManagerStart | 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 | EventIndexingStatus | 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;
|
|
655
655
|
};
|
|
656
656
|
/**
|
|
657
657
|
* Log level
|
|
658
658
|
*/
|
|
659
659
|
export type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR";
|
|
660
660
|
/**
|
|
661
|
-
* Server configuration for kilo serve
|
|
661
|
+
* Server configuration for the kilo serve command
|
|
662
662
|
*/
|
|
663
663
|
export type ServerConfig = {
|
|
664
664
|
port?: number;
|
|
@@ -853,17 +853,14 @@ export type ProviderConfig = {
|
|
|
853
853
|
};
|
|
854
854
|
};
|
|
855
855
|
export type McpLocalConfig = {
|
|
856
|
-
/**
|
|
857
|
-
* Type of MCP server connection
|
|
858
|
-
*/
|
|
859
856
|
type: "local";
|
|
860
|
-
/**
|
|
861
|
-
* Command and arguments to run the MCP server
|
|
862
|
-
*/
|
|
863
857
|
command: Array<string>;
|
|
864
858
|
environment?: {
|
|
865
859
|
[key: string]: string;
|
|
866
860
|
};
|
|
861
|
+
env?: {
|
|
862
|
+
[key: string]: string;
|
|
863
|
+
};
|
|
867
864
|
enabled?: boolean;
|
|
868
865
|
timeout?: number;
|
|
869
866
|
};
|
|
@@ -1272,6 +1269,12 @@ export type VcsInfo = {
|
|
|
1272
1269
|
branch?: string;
|
|
1273
1270
|
default_branch?: string;
|
|
1274
1271
|
};
|
|
1272
|
+
export type VcsFileStatus = {
|
|
1273
|
+
file: string;
|
|
1274
|
+
additions: number;
|
|
1275
|
+
deletions: number;
|
|
1276
|
+
status: "added" | "deleted" | "modified";
|
|
1277
|
+
};
|
|
1275
1278
|
export type VcsFileDiff = {
|
|
1276
1279
|
file: string;
|
|
1277
1280
|
patch: string;
|
|
@@ -1279,6 +1282,13 @@ export type VcsFileDiff = {
|
|
|
1279
1282
|
deletions: number;
|
|
1280
1283
|
status?: "added" | "deleted" | "modified";
|
|
1281
1284
|
};
|
|
1285
|
+
export type VcsApplyError = {
|
|
1286
|
+
name: "VcsApplyError";
|
|
1287
|
+
data: {
|
|
1288
|
+
message: string;
|
|
1289
|
+
reason: "non-git" | "not-clean";
|
|
1290
|
+
};
|
|
1291
|
+
};
|
|
1282
1292
|
export type Command = {
|
|
1283
1293
|
name: string;
|
|
1284
1294
|
description?: string;
|
|
@@ -1344,6 +1354,12 @@ export type McpStatus = McpStatusConnected | McpStatusDisabled | McpStatusFailed
|
|
|
1344
1354
|
export type McpUnsupportedOAuthError = {
|
|
1345
1355
|
error: string;
|
|
1346
1356
|
};
|
|
1357
|
+
export type NotFoundError = {
|
|
1358
|
+
name: "NotFoundError";
|
|
1359
|
+
data: {
|
|
1360
|
+
message: string;
|
|
1361
|
+
};
|
|
1362
|
+
};
|
|
1347
1363
|
export type EffectHttpApiErrorForbidden = {
|
|
1348
1364
|
_tag: "Forbidden";
|
|
1349
1365
|
};
|
|
@@ -1478,6 +1494,12 @@ export type Workspace = {
|
|
|
1478
1494
|
extra: unknown | null;
|
|
1479
1495
|
projectID: string;
|
|
1480
1496
|
};
|
|
1497
|
+
export type WorkspaceWarpError = {
|
|
1498
|
+
name: "WorkspaceWarpError";
|
|
1499
|
+
data: {
|
|
1500
|
+
message: string;
|
|
1501
|
+
};
|
|
1502
|
+
};
|
|
1481
1503
|
export type EffectHttpApiErrorUnauthorized = {
|
|
1482
1504
|
_tag: "Unauthorized";
|
|
1483
1505
|
};
|
|
@@ -1627,9 +1649,11 @@ export type SyncEventSessionNextModelSwitched = {
|
|
|
1627
1649
|
data: {
|
|
1628
1650
|
timestamp: number;
|
|
1629
1651
|
sessionID: string;
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1652
|
+
model: {
|
|
1653
|
+
id: string;
|
|
1654
|
+
providerID: string;
|
|
1655
|
+
variant: string;
|
|
1656
|
+
};
|
|
1633
1657
|
};
|
|
1634
1658
|
};
|
|
1635
1659
|
export type SyncEventSessionNextPrompted = {
|
|
@@ -1695,7 +1719,7 @@ export type SyncEventSessionNextStepStarted = {
|
|
|
1695
1719
|
model: {
|
|
1696
1720
|
id: string;
|
|
1697
1721
|
providerID: string;
|
|
1698
|
-
variant
|
|
1722
|
+
variant: string;
|
|
1699
1723
|
};
|
|
1700
1724
|
snapshot?: string;
|
|
1701
1725
|
};
|
|
@@ -1732,10 +1756,7 @@ export type SyncEventSessionNextStepFailed = {
|
|
|
1732
1756
|
data: {
|
|
1733
1757
|
timestamp: number;
|
|
1734
1758
|
sessionID: string;
|
|
1735
|
-
error:
|
|
1736
|
-
type: string;
|
|
1737
|
-
message: string;
|
|
1738
|
-
};
|
|
1759
|
+
error: SessionErrorUnknown;
|
|
1739
1760
|
};
|
|
1740
1761
|
};
|
|
1741
1762
|
export type SyncEventSessionNextTextStarted = {
|
|
@@ -1920,10 +1941,7 @@ export type SyncEventSessionNextToolFailed = {
|
|
|
1920
1941
|
timestamp: number;
|
|
1921
1942
|
sessionID: string;
|
|
1922
1943
|
callID: string;
|
|
1923
|
-
error:
|
|
1924
|
-
type: string;
|
|
1925
|
-
message: string;
|
|
1926
|
-
};
|
|
1944
|
+
error: SessionErrorUnknown;
|
|
1927
1945
|
provider: {
|
|
1928
1946
|
executed: boolean;
|
|
1929
1947
|
metadata?: {
|
|
@@ -2270,6 +2288,14 @@ export type EventVcsBranchUpdated = {
|
|
|
2270
2288
|
branch?: string;
|
|
2271
2289
|
};
|
|
2272
2290
|
};
|
|
2291
|
+
export type EventKiloSessionsRemoteStatusChanged = {
|
|
2292
|
+
id: string;
|
|
2293
|
+
type: "kilo-sessions.remote-status-changed";
|
|
2294
|
+
properties: {
|
|
2295
|
+
enabled: boolean;
|
|
2296
|
+
connected: boolean;
|
|
2297
|
+
};
|
|
2298
|
+
};
|
|
2273
2299
|
export type EventWorkspaceReady = {
|
|
2274
2300
|
id: string;
|
|
2275
2301
|
type: "workspace.ready";
|
|
@@ -2284,16 +2310,6 @@ export type EventWorkspaceFailed = {
|
|
|
2284
2310
|
message: string;
|
|
2285
2311
|
};
|
|
2286
2312
|
};
|
|
2287
|
-
export type EventWorkspaceRestore = {
|
|
2288
|
-
id: string;
|
|
2289
|
-
type: "workspace.restore";
|
|
2290
|
-
properties: {
|
|
2291
|
-
workspaceID: string;
|
|
2292
|
-
sessionID: string;
|
|
2293
|
-
total: number;
|
|
2294
|
-
step: number;
|
|
2295
|
-
};
|
|
2296
|
-
};
|
|
2297
2313
|
export type EventWorkspaceStatus = {
|
|
2298
2314
|
id: string;
|
|
2299
2315
|
type: "workspace.status";
|
|
@@ -2419,9 +2435,11 @@ export type EventSessionNextModelSwitched = {
|
|
|
2419
2435
|
properties: {
|
|
2420
2436
|
timestamp: number;
|
|
2421
2437
|
sessionID: string;
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2438
|
+
model: {
|
|
2439
|
+
id: string;
|
|
2440
|
+
providerID: string;
|
|
2441
|
+
variant: string;
|
|
2442
|
+
};
|
|
2425
2443
|
};
|
|
2426
2444
|
};
|
|
2427
2445
|
export type PromptSource = {
|
|
@@ -2488,7 +2506,7 @@ export type EventSessionNextStepStarted = {
|
|
|
2488
2506
|
model: {
|
|
2489
2507
|
id: string;
|
|
2490
2508
|
providerID: string;
|
|
2491
|
-
variant
|
|
2509
|
+
variant: string;
|
|
2492
2510
|
};
|
|
2493
2511
|
snapshot?: string;
|
|
2494
2512
|
};
|
|
@@ -2513,16 +2531,17 @@ export type EventSessionNextStepEnded = {
|
|
|
2513
2531
|
snapshot?: string;
|
|
2514
2532
|
};
|
|
2515
2533
|
};
|
|
2534
|
+
export type SessionErrorUnknown = {
|
|
2535
|
+
type: "unknown";
|
|
2536
|
+
message: string;
|
|
2537
|
+
};
|
|
2516
2538
|
export type EventSessionNextStepFailed = {
|
|
2517
2539
|
id: string;
|
|
2518
2540
|
type: "session.next.step.failed";
|
|
2519
2541
|
properties: {
|
|
2520
2542
|
timestamp: number;
|
|
2521
2543
|
sessionID: string;
|
|
2522
|
-
error:
|
|
2523
|
-
type: string;
|
|
2524
|
-
message: string;
|
|
2525
|
-
};
|
|
2544
|
+
error: SessionErrorUnknown;
|
|
2526
2545
|
};
|
|
2527
2546
|
};
|
|
2528
2547
|
export type EventSessionNextTextStarted = {
|
|
@@ -2678,10 +2697,7 @@ export type EventSessionNextToolFailed = {
|
|
|
2678
2697
|
timestamp: number;
|
|
2679
2698
|
sessionID: string;
|
|
2680
2699
|
callID: string;
|
|
2681
|
-
error:
|
|
2682
|
-
type: string;
|
|
2683
|
-
message: string;
|
|
2684
|
-
};
|
|
2700
|
+
error: SessionErrorUnknown;
|
|
2685
2701
|
provider: {
|
|
2686
2702
|
executed: boolean;
|
|
2687
2703
|
metadata?: {
|
|
@@ -2740,14 +2756,6 @@ export type EventSessionNextCompactionEnded = {
|
|
|
2740
2756
|
include?: string;
|
|
2741
2757
|
};
|
|
2742
2758
|
};
|
|
2743
|
-
export type EventKiloSessionsRemoteStatusChanged = {
|
|
2744
|
-
id: string;
|
|
2745
|
-
type: "kilo-sessions.remote-status-changed";
|
|
2746
|
-
properties: {
|
|
2747
|
-
enabled: boolean;
|
|
2748
|
-
connected: boolean;
|
|
2749
|
-
};
|
|
2750
|
-
};
|
|
2751
2759
|
export type EventIndexingStatus = {
|
|
2752
2760
|
id: string;
|
|
2753
2761
|
type: "indexing.status";
|
|
@@ -2765,7 +2773,7 @@ export type SessionInfo = {
|
|
|
2765
2773
|
model?: {
|
|
2766
2774
|
id: string;
|
|
2767
2775
|
providerID: string;
|
|
2768
|
-
variant
|
|
2776
|
+
variant: string;
|
|
2769
2777
|
};
|
|
2770
2778
|
time: {
|
|
2771
2779
|
created: number;
|
|
@@ -2798,7 +2806,7 @@ export type SessionMessageModelSwitched = {
|
|
|
2798
2806
|
model: {
|
|
2799
2807
|
id: string;
|
|
2800
2808
|
providerID: string;
|
|
2801
|
-
variant
|
|
2809
|
+
variant: string;
|
|
2802
2810
|
};
|
|
2803
2811
|
};
|
|
2804
2812
|
export type SessionMessageUser = {
|
|
@@ -2883,10 +2891,7 @@ export type SessionMessageToolStateError = {
|
|
|
2883
2891
|
structured: {
|
|
2884
2892
|
[key: string]: unknown;
|
|
2885
2893
|
};
|
|
2886
|
-
error:
|
|
2887
|
-
type: string;
|
|
2888
|
-
message: string;
|
|
2889
|
-
};
|
|
2894
|
+
error: SessionErrorUnknown;
|
|
2890
2895
|
};
|
|
2891
2896
|
export type SessionMessageAssistantTool = {
|
|
2892
2897
|
type: "tool";
|
|
@@ -2920,7 +2925,7 @@ export type SessionMessageAssistant = {
|
|
|
2920
2925
|
model: {
|
|
2921
2926
|
id: string;
|
|
2922
2927
|
providerID: string;
|
|
2923
|
-
variant
|
|
2928
|
+
variant: string;
|
|
2924
2929
|
};
|
|
2925
2930
|
content: Array<SessionMessageAssistantText | SessionMessageAssistantReasoning | SessionMessageAssistantTool>;
|
|
2926
2931
|
snapshot?: {
|
|
@@ -2938,10 +2943,7 @@ export type SessionMessageAssistant = {
|
|
|
2938
2943
|
write: number;
|
|
2939
2944
|
};
|
|
2940
2945
|
};
|
|
2941
|
-
error?:
|
|
2942
|
-
type: string;
|
|
2943
|
-
message: string;
|
|
2944
|
-
};
|
|
2946
|
+
error?: SessionErrorUnknown;
|
|
2945
2947
|
};
|
|
2946
2948
|
export type SessionMessageCompaction = {
|
|
2947
2949
|
type: "compaction";
|
|
@@ -2974,12 +2976,6 @@ export type BadRequestError = {
|
|
|
2974
2976
|
}>;
|
|
2975
2977
|
success: false;
|
|
2976
2978
|
};
|
|
2977
|
-
export type NotFoundError = {
|
|
2978
|
-
name: "NotFoundError";
|
|
2979
|
-
data: {
|
|
2980
|
-
message: string;
|
|
2981
|
-
};
|
|
2982
|
-
};
|
|
2983
2979
|
export type AuthRemoveData = {
|
|
2984
2980
|
body?: never;
|
|
2985
2981
|
path: {
|
|
@@ -3738,6 +3734,22 @@ export type VcsGetResponses = {
|
|
|
3738
3734
|
200: VcsInfo;
|
|
3739
3735
|
};
|
|
3740
3736
|
export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses];
|
|
3737
|
+
export type VcsStatusData = {
|
|
3738
|
+
body?: never;
|
|
3739
|
+
path?: never;
|
|
3740
|
+
query?: {
|
|
3741
|
+
directory?: string;
|
|
3742
|
+
workspace?: string;
|
|
3743
|
+
};
|
|
3744
|
+
url: "/vcs/status";
|
|
3745
|
+
};
|
|
3746
|
+
export type VcsStatusResponses = {
|
|
3747
|
+
/**
|
|
3748
|
+
* VCS status
|
|
3749
|
+
*/
|
|
3750
|
+
200: Array<VcsFileStatus>;
|
|
3751
|
+
};
|
|
3752
|
+
export type VcsStatusResponse = VcsStatusResponses[keyof VcsStatusResponses];
|
|
3741
3753
|
export type VcsDiffData = {
|
|
3742
3754
|
body?: never;
|
|
3743
3755
|
path?: never;
|
|
@@ -3755,6 +3767,49 @@ export type VcsDiffResponses = {
|
|
|
3755
3767
|
200: Array<VcsFileDiff>;
|
|
3756
3768
|
};
|
|
3757
3769
|
export type VcsDiffResponse = VcsDiffResponses[keyof VcsDiffResponses];
|
|
3770
|
+
export type VcsDiffRawData = {
|
|
3771
|
+
body?: never;
|
|
3772
|
+
path?: never;
|
|
3773
|
+
query?: {
|
|
3774
|
+
directory?: string;
|
|
3775
|
+
workspace?: string;
|
|
3776
|
+
};
|
|
3777
|
+
url: "/vcs/diff/raw";
|
|
3778
|
+
};
|
|
3779
|
+
export type VcsDiffRawResponses = {
|
|
3780
|
+
/**
|
|
3781
|
+
* Raw VCS diff
|
|
3782
|
+
*/
|
|
3783
|
+
200: string;
|
|
3784
|
+
};
|
|
3785
|
+
export type VcsDiffRawResponse = VcsDiffRawResponses[keyof VcsDiffRawResponses];
|
|
3786
|
+
export type VcsApplyData = {
|
|
3787
|
+
body?: {
|
|
3788
|
+
patch: string;
|
|
3789
|
+
};
|
|
3790
|
+
path?: never;
|
|
3791
|
+
query?: {
|
|
3792
|
+
directory?: string;
|
|
3793
|
+
workspace?: string;
|
|
3794
|
+
};
|
|
3795
|
+
url: "/vcs/apply";
|
|
3796
|
+
};
|
|
3797
|
+
export type VcsApplyErrors = {
|
|
3798
|
+
/**
|
|
3799
|
+
* VcsApplyError
|
|
3800
|
+
*/
|
|
3801
|
+
400: VcsApplyError;
|
|
3802
|
+
};
|
|
3803
|
+
export type VcsApplyError2 = VcsApplyErrors[keyof VcsApplyErrors];
|
|
3804
|
+
export type VcsApplyResponses = {
|
|
3805
|
+
/**
|
|
3806
|
+
* VCS patch applied
|
|
3807
|
+
*/
|
|
3808
|
+
200: {
|
|
3809
|
+
applied: boolean;
|
|
3810
|
+
};
|
|
3811
|
+
};
|
|
3812
|
+
export type VcsApplyResponse = VcsApplyResponses[keyof VcsApplyResponses];
|
|
3758
3813
|
export type CommandListData = {
|
|
3759
3814
|
body?: never;
|
|
3760
3815
|
path?: never;
|
|
@@ -4211,7 +4266,7 @@ export type PtyRemoveData = {
|
|
|
4211
4266
|
};
|
|
4212
4267
|
export type PtyRemoveErrors = {
|
|
4213
4268
|
/**
|
|
4214
|
-
*
|
|
4269
|
+
* NotFoundError
|
|
4215
4270
|
*/
|
|
4216
4271
|
404: NotFoundError;
|
|
4217
4272
|
};
|
|
@@ -4236,7 +4291,7 @@ export type PtyGetData = {
|
|
|
4236
4291
|
};
|
|
4237
4292
|
export type PtyGetErrors = {
|
|
4238
4293
|
/**
|
|
4239
|
-
*
|
|
4294
|
+
* NotFoundError
|
|
4240
4295
|
*/
|
|
4241
4296
|
404: NotFoundError;
|
|
4242
4297
|
};
|
|
@@ -4296,7 +4351,7 @@ export type PtyConnectTokenErrors = {
|
|
|
4296
4351
|
*/
|
|
4297
4352
|
403: EffectHttpApiErrorForbidden;
|
|
4298
4353
|
/**
|
|
4299
|
-
*
|
|
4354
|
+
* NotFoundError
|
|
4300
4355
|
*/
|
|
4301
4356
|
404: NotFoundError;
|
|
4302
4357
|
};
|
|
@@ -4701,7 +4756,7 @@ export type SessionDeleteErrors = {
|
|
|
4701
4756
|
*/
|
|
4702
4757
|
400: BadRequestError;
|
|
4703
4758
|
/**
|
|
4704
|
-
*
|
|
4759
|
+
* NotFoundError
|
|
4705
4760
|
*/
|
|
4706
4761
|
404: NotFoundError;
|
|
4707
4762
|
};
|
|
@@ -4730,7 +4785,7 @@ export type SessionGetErrors = {
|
|
|
4730
4785
|
*/
|
|
4731
4786
|
400: BadRequestError;
|
|
4732
4787
|
/**
|
|
4733
|
-
*
|
|
4788
|
+
* NotFoundError
|
|
4734
4789
|
*/
|
|
4735
4790
|
404: NotFoundError;
|
|
4736
4791
|
};
|
|
@@ -4765,7 +4820,7 @@ export type SessionUpdateErrors = {
|
|
|
4765
4820
|
*/
|
|
4766
4821
|
400: BadRequestError;
|
|
4767
4822
|
/**
|
|
4768
|
-
*
|
|
4823
|
+
* NotFoundError
|
|
4769
4824
|
*/
|
|
4770
4825
|
404: NotFoundError;
|
|
4771
4826
|
};
|
|
@@ -4873,7 +4928,7 @@ export type SessionMessagesErrors = {
|
|
|
4873
4928
|
*/
|
|
4874
4929
|
400: BadRequestError;
|
|
4875
4930
|
/**
|
|
4876
|
-
*
|
|
4931
|
+
* NotFoundError
|
|
4877
4932
|
*/
|
|
4878
4933
|
404: NotFoundError;
|
|
4879
4934
|
};
|
|
@@ -4989,7 +5044,7 @@ export type SessionMessageErrors = {
|
|
|
4989
5044
|
*/
|
|
4990
5045
|
400: BadRequestError;
|
|
4991
5046
|
/**
|
|
4992
|
-
*
|
|
5047
|
+
* NotFoundError
|
|
4993
5048
|
*/
|
|
4994
5049
|
404: NotFoundError;
|
|
4995
5050
|
};
|
|
@@ -5017,6 +5072,13 @@ export type SessionForkData = {
|
|
|
5017
5072
|
};
|
|
5018
5073
|
url: "/session/{sessionID}/fork";
|
|
5019
5074
|
};
|
|
5075
|
+
export type SessionForkErrors = {
|
|
5076
|
+
/**
|
|
5077
|
+
* NotFoundError
|
|
5078
|
+
*/
|
|
5079
|
+
404: NotFoundError;
|
|
5080
|
+
};
|
|
5081
|
+
export type SessionForkError = SessionForkErrors[keyof SessionForkErrors];
|
|
5020
5082
|
export type SessionForkResponses = {
|
|
5021
5083
|
/**
|
|
5022
5084
|
* 200
|
|
@@ -5103,7 +5165,7 @@ export type SessionUnshareErrors = {
|
|
|
5103
5165
|
*/
|
|
5104
5166
|
400: BadRequestError;
|
|
5105
5167
|
/**
|
|
5106
|
-
*
|
|
5168
|
+
* NotFoundError
|
|
5107
5169
|
*/
|
|
5108
5170
|
404: NotFoundError;
|
|
5109
5171
|
};
|
|
@@ -5132,7 +5194,7 @@ export type SessionShareErrors = {
|
|
|
5132
5194
|
*/
|
|
5133
5195
|
400: BadRequestError;
|
|
5134
5196
|
/**
|
|
5135
|
-
*
|
|
5197
|
+
* NotFoundError
|
|
5136
5198
|
*/
|
|
5137
5199
|
404: NotFoundError;
|
|
5138
5200
|
};
|
|
@@ -5165,7 +5227,7 @@ export type SessionSummarizeErrors = {
|
|
|
5165
5227
|
*/
|
|
5166
5228
|
400: BadRequestError;
|
|
5167
5229
|
/**
|
|
5168
|
-
*
|
|
5230
|
+
* NotFoundError
|
|
5169
5231
|
*/
|
|
5170
5232
|
404: NotFoundError;
|
|
5171
5233
|
};
|
|
@@ -5540,6 +5602,33 @@ export type SyncReplayResponses = {
|
|
|
5540
5602
|
};
|
|
5541
5603
|
};
|
|
5542
5604
|
export type SyncReplayResponse = SyncReplayResponses[keyof SyncReplayResponses];
|
|
5605
|
+
export type SyncStealData = {
|
|
5606
|
+
body?: {
|
|
5607
|
+
sessionID: string;
|
|
5608
|
+
};
|
|
5609
|
+
path?: never;
|
|
5610
|
+
query?: {
|
|
5611
|
+
directory?: string;
|
|
5612
|
+
workspace?: string;
|
|
5613
|
+
};
|
|
5614
|
+
url: "/sync/steal";
|
|
5615
|
+
};
|
|
5616
|
+
export type SyncStealErrors = {
|
|
5617
|
+
/**
|
|
5618
|
+
* Bad request
|
|
5619
|
+
*/
|
|
5620
|
+
400: BadRequestError;
|
|
5621
|
+
};
|
|
5622
|
+
export type SyncStealError = SyncStealErrors[keyof SyncStealErrors];
|
|
5623
|
+
export type SyncStealResponses = {
|
|
5624
|
+
/**
|
|
5625
|
+
* Session stolen into workspace
|
|
5626
|
+
*/
|
|
5627
|
+
200: {
|
|
5628
|
+
sessionID: string;
|
|
5629
|
+
};
|
|
5630
|
+
};
|
|
5631
|
+
export type SyncStealResponse = SyncStealResponses[keyof SyncStealResponses];
|
|
5543
5632
|
export type SyncHistoryListData = {
|
|
5544
5633
|
body?: {
|
|
5545
5634
|
[key: string]: number;
|
|
@@ -5906,7 +5995,7 @@ export type TuiSelectSessionErrors = {
|
|
|
5906
5995
|
*/
|
|
5907
5996
|
400: BadRequestError;
|
|
5908
5997
|
/**
|
|
5909
|
-
*
|
|
5998
|
+
* NotFoundError
|
|
5910
5999
|
*/
|
|
5911
6000
|
404: NotFoundError;
|
|
5912
6001
|
};
|
|
@@ -6061,35 +6150,33 @@ export type ExperimentalWorkspaceRemoveResponses = {
|
|
|
6061
6150
|
200: Workspace;
|
|
6062
6151
|
};
|
|
6063
6152
|
export type ExperimentalWorkspaceRemoveResponse = ExperimentalWorkspaceRemoveResponses[keyof ExperimentalWorkspaceRemoveResponses];
|
|
6064
|
-
export type
|
|
6153
|
+
export type ExperimentalWorkspaceWarpData = {
|
|
6065
6154
|
body?: {
|
|
6155
|
+
id: string | null;
|
|
6066
6156
|
sessionID: string;
|
|
6157
|
+
copyChanges?: boolean;
|
|
6067
6158
|
};
|
|
6068
|
-
path
|
|
6069
|
-
id: string;
|
|
6070
|
-
};
|
|
6159
|
+
path?: never;
|
|
6071
6160
|
query?: {
|
|
6072
6161
|
directory?: string;
|
|
6073
6162
|
workspace?: string;
|
|
6074
6163
|
};
|
|
6075
|
-
url: "/experimental/workspace/
|
|
6164
|
+
url: "/experimental/workspace/warp";
|
|
6076
6165
|
};
|
|
6077
|
-
export type
|
|
6166
|
+
export type ExperimentalWorkspaceWarpErrors = {
|
|
6078
6167
|
/**
|
|
6079
|
-
*
|
|
6168
|
+
* WorkspaceWarpError | VcsApplyError
|
|
6080
6169
|
*/
|
|
6081
|
-
400:
|
|
6170
|
+
400: WorkspaceWarpError | VcsApplyError;
|
|
6082
6171
|
};
|
|
6083
|
-
export type
|
|
6084
|
-
export type
|
|
6172
|
+
export type ExperimentalWorkspaceWarpError = ExperimentalWorkspaceWarpErrors[keyof ExperimentalWorkspaceWarpErrors];
|
|
6173
|
+
export type ExperimentalWorkspaceWarpResponses = {
|
|
6085
6174
|
/**
|
|
6086
|
-
* Session
|
|
6175
|
+
* Session warped
|
|
6087
6176
|
*/
|
|
6088
|
-
|
|
6089
|
-
total: number;
|
|
6090
|
-
};
|
|
6177
|
+
204: void;
|
|
6091
6178
|
};
|
|
6092
|
-
export type
|
|
6179
|
+
export type ExperimentalWorkspaceWarpResponse = ExperimentalWorkspaceWarpResponses[keyof ExperimentalWorkspaceWarpResponses];
|
|
6093
6180
|
export type CommitMessageGenerateData = {
|
|
6094
6181
|
body?: {
|
|
6095
6182
|
/**
|
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.8",
|
|
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": "
|
|
48
|
+
"@types/node": "24.12.2",
|
|
49
49
|
"@typescript/native-preview": "7.0.0-dev.20260316.1",
|
|
50
50
|
"typescript": "5.8.2"
|
|
51
51
|
},
|