@kilocode/sdk 7.2.12 → 7.2.17
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/client.js +7 -2
- package/dist/v2/gen/sdk.gen.d.ts +58 -11
- package/dist/v2/gen/sdk.gen.js +121 -17
- package/dist/v2/gen/types.gen.d.ts +301 -89
- package/package.json +1 -1
package/dist/v2/client.js
CHANGED
|
@@ -75,6 +75,11 @@ export function createKiloClient(config) {
|
|
|
75
75
|
directory: config?.directory,
|
|
76
76
|
workspace: config?.experimental_workspaceID,
|
|
77
77
|
}));
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
client.interceptors.response.use((response) => {
|
|
79
|
+
const contentType = response.headers.get("content-type");
|
|
80
|
+
if (contentType === "text/html")
|
|
81
|
+
throw new Error("Request is not supported by this version of OpenCode Server (Server responded with text/html)");
|
|
82
|
+
return response;
|
|
83
|
+
});
|
|
84
|
+
return new KiloClient({ client });
|
|
80
85
|
}
|
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, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses,
|
|
2
|
+
import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, CommitMessageGenerateErrors, CommitMessageGenerateResponses, Config as Config3, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConfigWarningsResponses, EnhancePromptEnhanceErrors, EnhancePromptEnhanceResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceAdaptorListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceStatusResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, InstanceDisposeResponses, KiloClawChatCredentialsResponses, KiloClawStatusResponses, KiloCloudSessionGetErrors, KiloCloudSessionGetResponses, KiloCloudSessionImportErrors, KiloCloudSessionImportResponses, KiloCloudSessionsErrors, KiloCloudSessionsResponses, KilocodeHeapSnapshotErrors, KilocodeHeapSnapshotResponses, KilocodeRemoveAgentErrors, KilocodeRemoveAgentResponses, KilocodeRemoveSkillErrors, KilocodeRemoveSkillResponses, KilocodeSessionImportMessageErrors, KilocodeSessionImportMessageResponses, KilocodeSessionImportPartErrors, KilocodeSessionImportPartResponses, KilocodeSessionImportProjectErrors, KilocodeSessionImportProjectResponses, KilocodeSessionImportSessionErrors, KilocodeSessionImportSessionResponses, KiloFimErrors, KiloFimResponses, KiloModesResponses, KiloNotificationsErrors, KiloNotificationsResponses, KiloOrganizationSetErrors, KiloOrganizationSetResponses, KiloProfileErrors, KiloProfileResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NetworkListResponses, NetworkRejectErrors, NetworkRejectResponses, NetworkReplyErrors, NetworkReplyResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionAllowEverythingErrors, PermissionAllowEverythingResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionSaveAlwaysRulesErrors, PermissionSaveAlwaysRulesResponses, ProjectCurrentResponses, ProjectInitGitResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, RemoteDisableResponses, RemoteEnableResponses, RemoteStatusResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SessionViewedResponses, SubtaskPartInput, SuggestionAcceptErrors, SuggestionAcceptResponses, SuggestionDismissErrors, SuggestionDismissResponses, SuggestionListResponses, TelemetryCaptureErrors, TelemetryCaptureResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsDiffResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeDiffErrors, WorktreeDiffFileErrors, WorktreeDiffFileResponses, WorktreeDiffResponses, WorktreeDiffSummaryErrors, WorktreeDiffSummaryResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -25,14 +25,6 @@ declare class HeyApiRegistry<T> {
|
|
|
25
25
|
get(key?: string): T;
|
|
26
26
|
set(value: T, key?: string): void;
|
|
27
27
|
}
|
|
28
|
-
export declare class SyncEvent extends HeyApiClient {
|
|
29
|
-
/**
|
|
30
|
-
* Subscribe to global sync events
|
|
31
|
-
*
|
|
32
|
-
* Get global sync events
|
|
33
|
-
*/
|
|
34
|
-
subscribe<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<GlobalSyncEventSubscribeResponses, unknown>>;
|
|
35
|
-
}
|
|
36
28
|
export declare class Config extends HeyApiClient {
|
|
37
29
|
/**
|
|
38
30
|
* Get global configuration
|
|
@@ -76,8 +68,6 @@ export declare class Global extends HeyApiClient {
|
|
|
76
68
|
upgrade<ThrowOnError extends boolean = false>(parameters?: {
|
|
77
69
|
target?: string;
|
|
78
70
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalUpgradeResponses, GlobalUpgradeErrors, ThrowOnError, "fields">;
|
|
79
|
-
private _syncEvent?;
|
|
80
|
-
get syncEvent(): SyncEvent;
|
|
81
71
|
private _config?;
|
|
82
72
|
get config(): Config;
|
|
83
73
|
}
|
|
@@ -328,6 +318,17 @@ export declare class Console extends HeyApiClient {
|
|
|
328
318
|
orgID?: string;
|
|
329
319
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalConsoleSwitchOrgResponses, unknown, ThrowOnError, "fields">;
|
|
330
320
|
}
|
|
321
|
+
export declare class Adaptor extends HeyApiClient {
|
|
322
|
+
/**
|
|
323
|
+
* List workspace adaptors
|
|
324
|
+
*
|
|
325
|
+
* List all available workspace adaptors for the current project.
|
|
326
|
+
*/
|
|
327
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
328
|
+
directory?: string;
|
|
329
|
+
workspace?: string;
|
|
330
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceAdaptorListResponses, unknown, ThrowOnError, "fields">;
|
|
331
|
+
}
|
|
331
332
|
export declare class Workspace extends HeyApiClient {
|
|
332
333
|
/**
|
|
333
334
|
* List workspaces
|
|
@@ -351,6 +352,15 @@ export declare class Workspace extends HeyApiClient {
|
|
|
351
352
|
branch?: string | null;
|
|
352
353
|
extra?: unknown | null;
|
|
353
354
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceCreateErrors, ThrowOnError, "fields">;
|
|
355
|
+
/**
|
|
356
|
+
* Workspace status
|
|
357
|
+
*
|
|
358
|
+
* Get connection status for workspaces in the current project.
|
|
359
|
+
*/
|
|
360
|
+
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
361
|
+
directory?: string;
|
|
362
|
+
workspace?: string;
|
|
363
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceStatusResponses, unknown, ThrowOnError, "fields">;
|
|
354
364
|
/**
|
|
355
365
|
* Remove workspace
|
|
356
366
|
*
|
|
@@ -361,6 +371,8 @@ export declare class Workspace extends HeyApiClient {
|
|
|
361
371
|
directory?: string;
|
|
362
372
|
workspace?: string;
|
|
363
373
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceRemoveErrors, ThrowOnError, "fields">;
|
|
374
|
+
private _adaptor?;
|
|
375
|
+
get adaptor(): Adaptor;
|
|
364
376
|
}
|
|
365
377
|
export declare class Session extends HeyApiClient {
|
|
366
378
|
/**
|
|
@@ -563,6 +575,7 @@ export declare class Session2 extends HeyApiClient {
|
|
|
563
575
|
directory?: string;
|
|
564
576
|
workspace?: string;
|
|
565
577
|
title?: string;
|
|
578
|
+
permission?: PermissionRuleset;
|
|
566
579
|
time?: {
|
|
567
580
|
archived?: number;
|
|
568
581
|
};
|
|
@@ -1399,6 +1412,38 @@ export declare class Network extends HeyApiClient {
|
|
|
1399
1412
|
workspace?: string;
|
|
1400
1413
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<NetworkRejectResponses, NetworkRejectErrors, ThrowOnError, "fields">;
|
|
1401
1414
|
}
|
|
1415
|
+
export declare class Suggestion extends HeyApiClient {
|
|
1416
|
+
/**
|
|
1417
|
+
* List pending suggestions
|
|
1418
|
+
*
|
|
1419
|
+
* Get all pending suggestion requests across all sessions.
|
|
1420
|
+
*/
|
|
1421
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
1422
|
+
directory?: string;
|
|
1423
|
+
workspace?: string;
|
|
1424
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SuggestionListResponses, unknown, ThrowOnError, "fields">;
|
|
1425
|
+
/**
|
|
1426
|
+
* Accept suggestion request
|
|
1427
|
+
*
|
|
1428
|
+
* Accept a suggestion request from the AI assistant.
|
|
1429
|
+
*/
|
|
1430
|
+
accept<ThrowOnError extends boolean = false>(parameters: {
|
|
1431
|
+
requestID: string;
|
|
1432
|
+
directory?: string;
|
|
1433
|
+
workspace?: string;
|
|
1434
|
+
index?: number;
|
|
1435
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SuggestionAcceptResponses, SuggestionAcceptErrors, ThrowOnError, "fields">;
|
|
1436
|
+
/**
|
|
1437
|
+
* Dismiss suggestion request
|
|
1438
|
+
*
|
|
1439
|
+
* Dismiss a suggestion request from the AI assistant.
|
|
1440
|
+
*/
|
|
1441
|
+
dismiss<ThrowOnError extends boolean = false>(parameters: {
|
|
1442
|
+
requestID: string;
|
|
1443
|
+
directory?: string;
|
|
1444
|
+
workspace?: string;
|
|
1445
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SuggestionDismissResponses, SuggestionDismissErrors, ThrowOnError, "fields">;
|
|
1446
|
+
}
|
|
1402
1447
|
export declare class Telemetry extends HeyApiClient {
|
|
1403
1448
|
/**
|
|
1404
1449
|
* Capture telemetry event
|
|
@@ -1893,6 +1938,8 @@ export declare class KiloClient extends HeyApiClient {
|
|
|
1893
1938
|
get formatter(): Formatter;
|
|
1894
1939
|
private _network?;
|
|
1895
1940
|
get network(): Network;
|
|
1941
|
+
private _suggestion?;
|
|
1942
|
+
get suggestion(): Suggestion;
|
|
1896
1943
|
private _telemetry?;
|
|
1897
1944
|
get telemetry(): Telemetry;
|
|
1898
1945
|
private _remote?;
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -21,19 +21,6 @@ class HeyApiRegistry {
|
|
|
21
21
|
this.instances.set(key ?? this.defaultKey, value);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
export class SyncEvent extends HeyApiClient {
|
|
25
|
-
/**
|
|
26
|
-
* Subscribe to global sync events
|
|
27
|
-
*
|
|
28
|
-
* Get global sync events
|
|
29
|
-
*/
|
|
30
|
-
subscribe(options) {
|
|
31
|
-
return (options?.client ?? this.client).sse.get({
|
|
32
|
-
url: "/global/sync-event",
|
|
33
|
-
...options,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
24
|
export class Config extends HeyApiClient {
|
|
38
25
|
/**
|
|
39
26
|
* Get global configuration
|
|
@@ -117,10 +104,6 @@ export class Global extends HeyApiClient {
|
|
|
117
104
|
},
|
|
118
105
|
});
|
|
119
106
|
}
|
|
120
|
-
_syncEvent;
|
|
121
|
-
get syncEvent() {
|
|
122
|
-
return (this._syncEvent ??= new SyncEvent({ client: this.client }));
|
|
123
|
-
}
|
|
124
107
|
_config;
|
|
125
108
|
get config() {
|
|
126
109
|
return (this._config ??= new Config({ client: this.client }));
|
|
@@ -628,6 +611,28 @@ export class Console extends HeyApiClient {
|
|
|
628
611
|
});
|
|
629
612
|
}
|
|
630
613
|
}
|
|
614
|
+
export class Adaptor extends HeyApiClient {
|
|
615
|
+
/**
|
|
616
|
+
* List workspace adaptors
|
|
617
|
+
*
|
|
618
|
+
* List all available workspace adaptors for the current project.
|
|
619
|
+
*/
|
|
620
|
+
list(parameters, options) {
|
|
621
|
+
const params = buildClientParams([parameters], [
|
|
622
|
+
{
|
|
623
|
+
args: [
|
|
624
|
+
{ in: "query", key: "directory" },
|
|
625
|
+
{ in: "query", key: "workspace" },
|
|
626
|
+
],
|
|
627
|
+
},
|
|
628
|
+
]);
|
|
629
|
+
return (options?.client ?? this.client).get({
|
|
630
|
+
url: "/experimental/workspace/adaptor",
|
|
631
|
+
...options,
|
|
632
|
+
...params,
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
}
|
|
631
636
|
export class Workspace extends HeyApiClient {
|
|
632
637
|
/**
|
|
633
638
|
* List workspaces
|
|
@@ -678,6 +683,26 @@ export class Workspace extends HeyApiClient {
|
|
|
678
683
|
},
|
|
679
684
|
});
|
|
680
685
|
}
|
|
686
|
+
/**
|
|
687
|
+
* Workspace status
|
|
688
|
+
*
|
|
689
|
+
* Get connection status for workspaces in the current project.
|
|
690
|
+
*/
|
|
691
|
+
status(parameters, options) {
|
|
692
|
+
const params = buildClientParams([parameters], [
|
|
693
|
+
{
|
|
694
|
+
args: [
|
|
695
|
+
{ in: "query", key: "directory" },
|
|
696
|
+
{ in: "query", key: "workspace" },
|
|
697
|
+
],
|
|
698
|
+
},
|
|
699
|
+
]);
|
|
700
|
+
return (options?.client ?? this.client).get({
|
|
701
|
+
url: "/experimental/workspace/status",
|
|
702
|
+
...options,
|
|
703
|
+
...params,
|
|
704
|
+
});
|
|
705
|
+
}
|
|
681
706
|
/**
|
|
682
707
|
* Remove workspace
|
|
683
708
|
*
|
|
@@ -699,6 +724,10 @@ export class Workspace extends HeyApiClient {
|
|
|
699
724
|
...params,
|
|
700
725
|
});
|
|
701
726
|
}
|
|
727
|
+
_adaptor;
|
|
728
|
+
get adaptor() {
|
|
729
|
+
return (this._adaptor ??= new Adaptor({ client: this.client }));
|
|
730
|
+
}
|
|
702
731
|
}
|
|
703
732
|
export class Session extends HeyApiClient {
|
|
704
733
|
/**
|
|
@@ -1108,6 +1137,7 @@ export class Session2 extends HeyApiClient {
|
|
|
1108
1137
|
{ in: "query", key: "directory" },
|
|
1109
1138
|
{ in: "query", key: "workspace" },
|
|
1110
1139
|
{ in: "body", key: "title" },
|
|
1140
|
+
{ in: "body", key: "permission" },
|
|
1111
1141
|
{ in: "body", key: "time" },
|
|
1112
1142
|
],
|
|
1113
1143
|
},
|
|
@@ -2835,6 +2865,76 @@ export class Network extends HeyApiClient {
|
|
|
2835
2865
|
});
|
|
2836
2866
|
}
|
|
2837
2867
|
}
|
|
2868
|
+
export class Suggestion extends HeyApiClient {
|
|
2869
|
+
/**
|
|
2870
|
+
* List pending suggestions
|
|
2871
|
+
*
|
|
2872
|
+
* Get all pending suggestion requests across all sessions.
|
|
2873
|
+
*/
|
|
2874
|
+
list(parameters, options) {
|
|
2875
|
+
const params = buildClientParams([parameters], [
|
|
2876
|
+
{
|
|
2877
|
+
args: [
|
|
2878
|
+
{ in: "query", key: "directory" },
|
|
2879
|
+
{ in: "query", key: "workspace" },
|
|
2880
|
+
],
|
|
2881
|
+
},
|
|
2882
|
+
]);
|
|
2883
|
+
return (options?.client ?? this.client).get({
|
|
2884
|
+
url: "/suggestion",
|
|
2885
|
+
...options,
|
|
2886
|
+
...params,
|
|
2887
|
+
});
|
|
2888
|
+
}
|
|
2889
|
+
/**
|
|
2890
|
+
* Accept suggestion request
|
|
2891
|
+
*
|
|
2892
|
+
* Accept a suggestion request from the AI assistant.
|
|
2893
|
+
*/
|
|
2894
|
+
accept(parameters, options) {
|
|
2895
|
+
const params = buildClientParams([parameters], [
|
|
2896
|
+
{
|
|
2897
|
+
args: [
|
|
2898
|
+
{ in: "path", key: "requestID" },
|
|
2899
|
+
{ in: "query", key: "directory" },
|
|
2900
|
+
{ in: "query", key: "workspace" },
|
|
2901
|
+
{ in: "body", key: "index" },
|
|
2902
|
+
],
|
|
2903
|
+
},
|
|
2904
|
+
]);
|
|
2905
|
+
return (options?.client ?? this.client).post({
|
|
2906
|
+
url: "/suggestion/{requestID}/accept",
|
|
2907
|
+
...options,
|
|
2908
|
+
...params,
|
|
2909
|
+
headers: {
|
|
2910
|
+
"Content-Type": "application/json",
|
|
2911
|
+
...options?.headers,
|
|
2912
|
+
...params.headers,
|
|
2913
|
+
},
|
|
2914
|
+
});
|
|
2915
|
+
}
|
|
2916
|
+
/**
|
|
2917
|
+
* Dismiss suggestion request
|
|
2918
|
+
*
|
|
2919
|
+
* Dismiss a suggestion request from the AI assistant.
|
|
2920
|
+
*/
|
|
2921
|
+
dismiss(parameters, options) {
|
|
2922
|
+
const params = buildClientParams([parameters], [
|
|
2923
|
+
{
|
|
2924
|
+
args: [
|
|
2925
|
+
{ in: "path", key: "requestID" },
|
|
2926
|
+
{ in: "query", key: "directory" },
|
|
2927
|
+
{ in: "query", key: "workspace" },
|
|
2928
|
+
],
|
|
2929
|
+
},
|
|
2930
|
+
]);
|
|
2931
|
+
return (options?.client ?? this.client).post({
|
|
2932
|
+
url: "/suggestion/{requestID}/dismiss",
|
|
2933
|
+
...options,
|
|
2934
|
+
...params,
|
|
2935
|
+
});
|
|
2936
|
+
}
|
|
2937
|
+
}
|
|
2838
2938
|
export class Telemetry extends HeyApiClient {
|
|
2839
2939
|
/**
|
|
2840
2940
|
* Capture telemetry event
|
|
@@ -3577,6 +3677,10 @@ export class KiloClient extends HeyApiClient {
|
|
|
3577
3677
|
get network() {
|
|
3578
3678
|
return (this._network ??= new Network({ client: this.client }));
|
|
3579
3679
|
}
|
|
3680
|
+
_suggestion;
|
|
3681
|
+
get suggestion() {
|
|
3682
|
+
return (this._suggestion ??= new Suggestion({ client: this.client }));
|
|
3683
|
+
}
|
|
3580
3684
|
_telemetry;
|
|
3581
3685
|
get telemetry() {
|
|
3582
3686
|
return (this._telemetry ??= new Telemetry({ client: this.client }));
|
|
@@ -64,6 +64,19 @@ export type EventGlobalConfigUpdated = {
|
|
|
64
64
|
[key: string]: unknown;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
+
export type EventFileEdited = {
|
|
68
|
+
type: "file.edited";
|
|
69
|
+
properties: {
|
|
70
|
+
file: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export type EventFileWatcherUpdated = {
|
|
74
|
+
type: "file.watcher.updated";
|
|
75
|
+
properties: {
|
|
76
|
+
file: string;
|
|
77
|
+
event: "add" | "change" | "unlink";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
67
80
|
export type EventLspClientDiagnostics = {
|
|
68
81
|
type: "lsp.client.diagnostics";
|
|
69
82
|
properties: {
|
|
@@ -281,34 +294,6 @@ export type EventSessionError = {
|
|
|
281
294
|
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
282
295
|
};
|
|
283
296
|
};
|
|
284
|
-
export type EventFileEdited = {
|
|
285
|
-
type: "file.edited";
|
|
286
|
-
properties: {
|
|
287
|
-
file: string;
|
|
288
|
-
};
|
|
289
|
-
};
|
|
290
|
-
export type EventFileWatcherUpdated = {
|
|
291
|
-
type: "file.watcher.updated";
|
|
292
|
-
properties: {
|
|
293
|
-
file: string;
|
|
294
|
-
event: "add" | "change" | "unlink";
|
|
295
|
-
};
|
|
296
|
-
};
|
|
297
|
-
export type EventVcsBranchUpdated = {
|
|
298
|
-
type: "vcs.branch.updated";
|
|
299
|
-
properties: {
|
|
300
|
-
branch?: string;
|
|
301
|
-
};
|
|
302
|
-
};
|
|
303
|
-
export type EventCommandExecuted = {
|
|
304
|
-
type: "command.executed";
|
|
305
|
-
properties: {
|
|
306
|
-
name: string;
|
|
307
|
-
sessionID: string;
|
|
308
|
-
arguments: string;
|
|
309
|
-
messageID: string;
|
|
310
|
-
};
|
|
311
|
-
};
|
|
312
297
|
export type QuestionOption = {
|
|
313
298
|
/**
|
|
314
299
|
* Display text (1-5 words, concise)
|
|
@@ -318,6 +303,14 @@ export type QuestionOption = {
|
|
|
318
303
|
* Explanation of choice
|
|
319
304
|
*/
|
|
320
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;
|
|
321
314
|
};
|
|
322
315
|
export type QuestionInfo = {
|
|
323
316
|
/**
|
|
@@ -336,11 +329,23 @@ export type QuestionInfo = {
|
|
|
336
329
|
* Allow selecting multiple choices
|
|
337
330
|
*/
|
|
338
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;
|
|
339
340
|
/**
|
|
340
341
|
* Allow typing a custom answer (default: true)
|
|
341
342
|
*/
|
|
342
343
|
custom?: boolean;
|
|
343
344
|
};
|
|
345
|
+
export type QuestionTool = {
|
|
346
|
+
messageID: string;
|
|
347
|
+
callID: string;
|
|
348
|
+
};
|
|
344
349
|
export type QuestionRequest = {
|
|
345
350
|
id: string;
|
|
346
351
|
sessionID: string;
|
|
@@ -348,30 +353,33 @@ export type QuestionRequest = {
|
|
|
348
353
|
* Questions to ask
|
|
349
354
|
*/
|
|
350
355
|
questions: Array<QuestionInfo>;
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
356
|
+
/**
|
|
357
|
+
* Whether this question blocks prompt input (default: true)
|
|
358
|
+
*/
|
|
359
|
+
blocking?: boolean;
|
|
360
|
+
tool?: QuestionTool;
|
|
355
361
|
};
|
|
356
362
|
export type EventQuestionAsked = {
|
|
357
363
|
type: "question.asked";
|
|
358
364
|
properties: QuestionRequest;
|
|
359
365
|
};
|
|
360
366
|
export type QuestionAnswer = Array<string>;
|
|
367
|
+
export type QuestionReplied = {
|
|
368
|
+
sessionID: string;
|
|
369
|
+
requestID: string;
|
|
370
|
+
answers: Array<QuestionAnswer>;
|
|
371
|
+
};
|
|
361
372
|
export type EventQuestionReplied = {
|
|
362
373
|
type: "question.replied";
|
|
363
|
-
properties:
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
374
|
+
properties: QuestionReplied;
|
|
375
|
+
};
|
|
376
|
+
export type QuestionRejected = {
|
|
377
|
+
sessionID: string;
|
|
378
|
+
requestID: string;
|
|
368
379
|
};
|
|
369
380
|
export type EventQuestionRejected = {
|
|
370
381
|
type: "question.rejected";
|
|
371
|
-
properties:
|
|
372
|
-
sessionID: string;
|
|
373
|
-
requestID: string;
|
|
374
|
-
};
|
|
382
|
+
properties: QuestionRejected;
|
|
375
383
|
};
|
|
376
384
|
export type Todo = {
|
|
377
385
|
/**
|
|
@@ -421,12 +429,81 @@ export type EventSessionIdle = {
|
|
|
421
429
|
sessionID: string;
|
|
422
430
|
};
|
|
423
431
|
};
|
|
432
|
+
export type SuggestionAction = {
|
|
433
|
+
/**
|
|
434
|
+
* Button or option label (1-5 words)
|
|
435
|
+
*/
|
|
436
|
+
label: string;
|
|
437
|
+
/**
|
|
438
|
+
* Brief explanation of what this action does
|
|
439
|
+
*/
|
|
440
|
+
description?: string;
|
|
441
|
+
/**
|
|
442
|
+
* Synthetic user prompt to inject when this action is accepted
|
|
443
|
+
*/
|
|
444
|
+
prompt: string;
|
|
445
|
+
};
|
|
446
|
+
export type SuggestionRequest = {
|
|
447
|
+
id: string;
|
|
448
|
+
sessionID: string;
|
|
449
|
+
/**
|
|
450
|
+
* Suggestion text shown to the user
|
|
451
|
+
*/
|
|
452
|
+
text: string;
|
|
453
|
+
/**
|
|
454
|
+
* Available actions the user can take
|
|
455
|
+
*/
|
|
456
|
+
actions: Array<SuggestionAction>;
|
|
457
|
+
/**
|
|
458
|
+
* Whether this suggestion blocks prompt input (default: true)
|
|
459
|
+
*/
|
|
460
|
+
blocking?: boolean;
|
|
461
|
+
tool?: {
|
|
462
|
+
messageID: string;
|
|
463
|
+
callID: string;
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
export type EventSuggestionShown = {
|
|
467
|
+
type: "suggestion.shown";
|
|
468
|
+
properties: SuggestionRequest;
|
|
469
|
+
};
|
|
470
|
+
export type EventSuggestionAccepted = {
|
|
471
|
+
type: "suggestion.accepted";
|
|
472
|
+
properties: {
|
|
473
|
+
sessionID: string;
|
|
474
|
+
requestID: string;
|
|
475
|
+
index: number;
|
|
476
|
+
action: SuggestionAction;
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
export type EventSuggestionDismissed = {
|
|
480
|
+
type: "suggestion.dismissed";
|
|
481
|
+
properties: {
|
|
482
|
+
sessionID: string;
|
|
483
|
+
requestID: string;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
424
486
|
export type EventSessionCompacted = {
|
|
425
487
|
type: "session.compacted";
|
|
426
488
|
properties: {
|
|
427
489
|
sessionID: string;
|
|
428
490
|
};
|
|
429
491
|
};
|
|
492
|
+
export type EventCommandExecuted = {
|
|
493
|
+
type: "command.executed";
|
|
494
|
+
properties: {
|
|
495
|
+
name: string;
|
|
496
|
+
sessionID: string;
|
|
497
|
+
arguments: string;
|
|
498
|
+
messageID: string;
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
export type EventVcsBranchUpdated = {
|
|
502
|
+
type: "vcs.branch.updated";
|
|
503
|
+
properties: {
|
|
504
|
+
branch?: string;
|
|
505
|
+
};
|
|
506
|
+
};
|
|
430
507
|
export type EventKiloSessionsRemoteStatusChanged = {
|
|
431
508
|
type: "kilo-sessions.remote-status-changed";
|
|
432
509
|
properties: {
|
|
@@ -434,14 +511,15 @@ export type EventKiloSessionsRemoteStatusChanged = {
|
|
|
434
511
|
connected: boolean;
|
|
435
512
|
};
|
|
436
513
|
};
|
|
437
|
-
export type
|
|
438
|
-
type: "
|
|
514
|
+
export type EventWorktreeReady = {
|
|
515
|
+
type: "worktree.ready";
|
|
439
516
|
properties: {
|
|
440
517
|
name: string;
|
|
518
|
+
branch: string;
|
|
441
519
|
};
|
|
442
520
|
};
|
|
443
|
-
export type
|
|
444
|
-
type: "
|
|
521
|
+
export type EventWorktreeFailed = {
|
|
522
|
+
type: "worktree.failed";
|
|
445
523
|
properties: {
|
|
446
524
|
message: string;
|
|
447
525
|
};
|
|
@@ -480,19 +558,26 @@ export type EventPtyDeleted = {
|
|
|
480
558
|
id: string;
|
|
481
559
|
};
|
|
482
560
|
};
|
|
483
|
-
export type
|
|
484
|
-
type: "
|
|
561
|
+
export type EventWorkspaceReady = {
|
|
562
|
+
type: "workspace.ready";
|
|
485
563
|
properties: {
|
|
486
564
|
name: string;
|
|
487
|
-
branch: string;
|
|
488
565
|
};
|
|
489
566
|
};
|
|
490
|
-
export type
|
|
491
|
-
type: "
|
|
567
|
+
export type EventWorkspaceFailed = {
|
|
568
|
+
type: "workspace.failed";
|
|
492
569
|
properties: {
|
|
493
570
|
message: string;
|
|
494
571
|
};
|
|
495
572
|
};
|
|
573
|
+
export type EventWorkspaceStatus = {
|
|
574
|
+
type: "workspace.status";
|
|
575
|
+
properties: {
|
|
576
|
+
workspaceID: string;
|
|
577
|
+
status: "connected" | "connecting" | "disconnected" | "error";
|
|
578
|
+
error?: string;
|
|
579
|
+
};
|
|
580
|
+
};
|
|
496
581
|
export type OutputFormatText = {
|
|
497
582
|
type: "text";
|
|
498
583
|
};
|
|
@@ -891,30 +976,34 @@ export type EventSessionDeleted = {
|
|
|
891
976
|
info: Session;
|
|
892
977
|
};
|
|
893
978
|
};
|
|
894
|
-
export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventLspClientDiagnostics | EventLspUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventSessionTurnOpen | EventSessionTurnClose | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventFileEdited | EventFileWatcherUpdated | EventVcsBranchUpdated | EventCommandExecuted | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventKiloSessionsRemoteStatusChanged | EventWorkspaceReady | EventWorkspaceFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted;
|
|
895
|
-
export type GlobalEvent = {
|
|
896
|
-
directory: string;
|
|
897
|
-
payload: Event;
|
|
898
|
-
};
|
|
899
979
|
export type SyncEventMessageUpdated = {
|
|
900
|
-
type: "
|
|
901
|
-
|
|
980
|
+
type: "sync";
|
|
981
|
+
name: "message.updated.1";
|
|
982
|
+
id: string;
|
|
983
|
+
seq: number;
|
|
984
|
+
aggregateID: "sessionID";
|
|
902
985
|
data: {
|
|
903
986
|
sessionID: string;
|
|
904
987
|
info: Message;
|
|
905
988
|
};
|
|
906
989
|
};
|
|
907
990
|
export type SyncEventMessageRemoved = {
|
|
908
|
-
type: "
|
|
909
|
-
|
|
991
|
+
type: "sync";
|
|
992
|
+
name: "message.removed.1";
|
|
993
|
+
id: string;
|
|
994
|
+
seq: number;
|
|
995
|
+
aggregateID: "sessionID";
|
|
910
996
|
data: {
|
|
911
997
|
sessionID: string;
|
|
912
998
|
messageID: string;
|
|
913
999
|
};
|
|
914
1000
|
};
|
|
915
1001
|
export type SyncEventMessagePartUpdated = {
|
|
916
|
-
type: "
|
|
917
|
-
|
|
1002
|
+
type: "sync";
|
|
1003
|
+
name: "message.part.updated.1";
|
|
1004
|
+
id: string;
|
|
1005
|
+
seq: number;
|
|
1006
|
+
aggregateID: "sessionID";
|
|
918
1007
|
data: {
|
|
919
1008
|
sessionID: string;
|
|
920
1009
|
part: Part;
|
|
@@ -922,8 +1011,11 @@ export type SyncEventMessagePartUpdated = {
|
|
|
922
1011
|
};
|
|
923
1012
|
};
|
|
924
1013
|
export type SyncEventMessagePartRemoved = {
|
|
925
|
-
type: "
|
|
926
|
-
|
|
1014
|
+
type: "sync";
|
|
1015
|
+
name: "message.part.removed.1";
|
|
1016
|
+
id: string;
|
|
1017
|
+
seq: number;
|
|
1018
|
+
aggregateID: "sessionID";
|
|
927
1019
|
data: {
|
|
928
1020
|
sessionID: string;
|
|
929
1021
|
messageID: string;
|
|
@@ -931,16 +1023,22 @@ export type SyncEventMessagePartRemoved = {
|
|
|
931
1023
|
};
|
|
932
1024
|
};
|
|
933
1025
|
export type SyncEventSessionCreated = {
|
|
934
|
-
type: "
|
|
935
|
-
|
|
1026
|
+
type: "sync";
|
|
1027
|
+
name: "session.created.1";
|
|
1028
|
+
id: string;
|
|
1029
|
+
seq: number;
|
|
1030
|
+
aggregateID: "sessionID";
|
|
936
1031
|
data: {
|
|
937
1032
|
sessionID: string;
|
|
938
1033
|
info: Session;
|
|
939
1034
|
};
|
|
940
1035
|
};
|
|
941
1036
|
export type SyncEventSessionUpdated = {
|
|
942
|
-
type: "
|
|
943
|
-
|
|
1037
|
+
type: "sync";
|
|
1038
|
+
name: "session.updated.1";
|
|
1039
|
+
id: string;
|
|
1040
|
+
seq: number;
|
|
1041
|
+
aggregateID: "sessionID";
|
|
944
1042
|
data: {
|
|
945
1043
|
sessionID: string;
|
|
946
1044
|
info: {
|
|
@@ -983,15 +1081,21 @@ export type SyncEventSessionUpdated = {
|
|
|
983
1081
|
};
|
|
984
1082
|
};
|
|
985
1083
|
export type SyncEventSessionDeleted = {
|
|
986
|
-
type: "
|
|
987
|
-
|
|
1084
|
+
type: "sync";
|
|
1085
|
+
name: "session.deleted.1";
|
|
1086
|
+
id: string;
|
|
1087
|
+
seq: number;
|
|
1088
|
+
aggregateID: "sessionID";
|
|
988
1089
|
data: {
|
|
989
1090
|
sessionID: string;
|
|
990
1091
|
info: Session;
|
|
991
1092
|
};
|
|
992
1093
|
};
|
|
993
|
-
export type
|
|
994
|
-
|
|
1094
|
+
export type GlobalEvent = {
|
|
1095
|
+
directory: string;
|
|
1096
|
+
project?: string;
|
|
1097
|
+
workspace?: string;
|
|
1098
|
+
payload: EventProjectUpdated | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventSessionTurnOpen | EventSessionTurnClose | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionCompacted | EventCommandExecuted | EventVcsBranchUpdated | EventKiloSessionsRemoteStatusChanged | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted;
|
|
995
1099
|
};
|
|
996
1100
|
/**
|
|
997
1101
|
* Log level
|
|
@@ -1179,9 +1283,9 @@ export type ProviderConfig = {
|
|
|
1179
1283
|
*/
|
|
1180
1284
|
disabled?: boolean;
|
|
1181
1285
|
[key: string]: unknown | boolean | undefined;
|
|
1182
|
-
};
|
|
1286
|
+
} | null;
|
|
1183
1287
|
};
|
|
1184
|
-
};
|
|
1288
|
+
} | null;
|
|
1185
1289
|
};
|
|
1186
1290
|
};
|
|
1187
1291
|
export type McpLocalConfig = {
|
|
@@ -1574,9 +1678,9 @@ export type Model = {
|
|
|
1574
1678
|
};
|
|
1575
1679
|
};
|
|
1576
1680
|
recommendedIndex?: number;
|
|
1577
|
-
prompt?: "codex" | "gemini" | "beast" | "anthropic" | "trinity" | "anthropic_without_todo";
|
|
1681
|
+
prompt?: "codex" | "gemini" | "beast" | "anthropic" | "trinity" | "anthropic_without_todo" | "ling";
|
|
1578
1682
|
isFree?: boolean;
|
|
1579
|
-
ai_sdk_provider?: "anthropic" | "openai" | "openai-compatible" | "openrouter";
|
|
1683
|
+
ai_sdk_provider?: "alibaba" | "anthropic" | "openai" | "openai-compatible" | "openrouter";
|
|
1580
1684
|
};
|
|
1581
1685
|
export type Provider = {
|
|
1582
1686
|
id: string;
|
|
@@ -1601,8 +1705,8 @@ export type ToolList = Array<ToolListItem>;
|
|
|
1601
1705
|
export type Workspace = {
|
|
1602
1706
|
id: string;
|
|
1603
1707
|
type: string;
|
|
1708
|
+
name: string;
|
|
1604
1709
|
branch: string | null;
|
|
1605
|
-
name: string | null;
|
|
1606
1710
|
directory: string | null;
|
|
1607
1711
|
extra: unknown | null;
|
|
1608
1712
|
projectID: string;
|
|
@@ -1809,6 +1913,7 @@ export type File = {
|
|
|
1809
1913
|
removed: number;
|
|
1810
1914
|
status: "added" | "deleted" | "modified";
|
|
1811
1915
|
};
|
|
1916
|
+
export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventSessionTurnOpen | EventSessionTurnClose | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSuggestionShown | EventSuggestionAccepted | EventSuggestionDismissed | EventSessionCompacted | EventCommandExecuted | EventVcsBranchUpdated | EventKiloSessionsRemoteStatusChanged | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted;
|
|
1812
1917
|
export type McpStatusConnected = {
|
|
1813
1918
|
status: "connected";
|
|
1814
1919
|
};
|
|
@@ -1918,19 +2023,6 @@ export type GlobalEventResponses = {
|
|
|
1918
2023
|
200: GlobalEvent;
|
|
1919
2024
|
};
|
|
1920
2025
|
export type GlobalEventResponse = GlobalEventResponses[keyof GlobalEventResponses];
|
|
1921
|
-
export type GlobalSyncEventSubscribeData = {
|
|
1922
|
-
body?: never;
|
|
1923
|
-
path?: never;
|
|
1924
|
-
query?: never;
|
|
1925
|
-
url: "/global/sync-event";
|
|
1926
|
-
};
|
|
1927
|
-
export type GlobalSyncEventSubscribeResponses = {
|
|
1928
|
-
/**
|
|
1929
|
-
* Event stream
|
|
1930
|
-
*/
|
|
1931
|
-
200: SyncEvent;
|
|
1932
|
-
};
|
|
1933
|
-
export type GlobalSyncEventSubscribeResponse = GlobalSyncEventSubscribeResponses[keyof GlobalSyncEventSubscribeResponses];
|
|
1934
2026
|
export type GlobalConfigGetData = {
|
|
1935
2027
|
body?: never;
|
|
1936
2028
|
path?: never;
|
|
@@ -2526,6 +2618,26 @@ export type ToolListResponses = {
|
|
|
2526
2618
|
200: ToolList;
|
|
2527
2619
|
};
|
|
2528
2620
|
export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
|
|
2621
|
+
export type ExperimentalWorkspaceAdaptorListData = {
|
|
2622
|
+
body?: never;
|
|
2623
|
+
path?: never;
|
|
2624
|
+
query?: {
|
|
2625
|
+
directory?: string;
|
|
2626
|
+
workspace?: string;
|
|
2627
|
+
};
|
|
2628
|
+
url: "/experimental/workspace/adaptor";
|
|
2629
|
+
};
|
|
2630
|
+
export type ExperimentalWorkspaceAdaptorListResponses = {
|
|
2631
|
+
/**
|
|
2632
|
+
* Workspace adaptors
|
|
2633
|
+
*/
|
|
2634
|
+
200: Array<{
|
|
2635
|
+
type: string;
|
|
2636
|
+
name: string;
|
|
2637
|
+
description: string;
|
|
2638
|
+
}>;
|
|
2639
|
+
};
|
|
2640
|
+
export type ExperimentalWorkspaceAdaptorListResponse = ExperimentalWorkspaceAdaptorListResponses[keyof ExperimentalWorkspaceAdaptorListResponses];
|
|
2529
2641
|
export type ExperimentalWorkspaceListData = {
|
|
2530
2642
|
body?: never;
|
|
2531
2643
|
path?: never;
|
|
@@ -2570,6 +2682,26 @@ export type ExperimentalWorkspaceCreateResponses = {
|
|
|
2570
2682
|
200: Workspace;
|
|
2571
2683
|
};
|
|
2572
2684
|
export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses];
|
|
2685
|
+
export type ExperimentalWorkspaceStatusData = {
|
|
2686
|
+
body?: never;
|
|
2687
|
+
path?: never;
|
|
2688
|
+
query?: {
|
|
2689
|
+
directory?: string;
|
|
2690
|
+
workspace?: string;
|
|
2691
|
+
};
|
|
2692
|
+
url: "/experimental/workspace/status";
|
|
2693
|
+
};
|
|
2694
|
+
export type ExperimentalWorkspaceStatusResponses = {
|
|
2695
|
+
/**
|
|
2696
|
+
* Workspace status
|
|
2697
|
+
*/
|
|
2698
|
+
200: Array<{
|
|
2699
|
+
workspaceID: string;
|
|
2700
|
+
status: "connected" | "connecting" | "disconnected" | "error";
|
|
2701
|
+
error?: string;
|
|
2702
|
+
}>;
|
|
2703
|
+
};
|
|
2704
|
+
export type ExperimentalWorkspaceStatusResponse = ExperimentalWorkspaceStatusResponses[keyof ExperimentalWorkspaceStatusResponses];
|
|
2573
2705
|
export type ExperimentalWorkspaceRemoveData = {
|
|
2574
2706
|
body?: never;
|
|
2575
2707
|
path: {
|
|
@@ -2984,6 +3116,7 @@ export type SessionGetResponse = SessionGetResponses[keyof SessionGetResponses];
|
|
|
2984
3116
|
export type SessionUpdateData = {
|
|
2985
3117
|
body?: {
|
|
2986
3118
|
title?: string;
|
|
3119
|
+
permission?: PermissionRuleset;
|
|
2987
3120
|
time?: {
|
|
2988
3121
|
archived?: number;
|
|
2989
3122
|
};
|
|
@@ -4867,6 +5000,85 @@ export type NetworkRejectResponses = {
|
|
|
4867
5000
|
200: boolean;
|
|
4868
5001
|
};
|
|
4869
5002
|
export type NetworkRejectResponse = NetworkRejectResponses[keyof NetworkRejectResponses];
|
|
5003
|
+
export type SuggestionListData = {
|
|
5004
|
+
body?: never;
|
|
5005
|
+
path?: never;
|
|
5006
|
+
query?: {
|
|
5007
|
+
directory?: string;
|
|
5008
|
+
workspace?: string;
|
|
5009
|
+
};
|
|
5010
|
+
url: "/suggestion";
|
|
5011
|
+
};
|
|
5012
|
+
export type SuggestionListResponses = {
|
|
5013
|
+
/**
|
|
5014
|
+
* List of pending suggestions
|
|
5015
|
+
*/
|
|
5016
|
+
200: Array<SuggestionRequest>;
|
|
5017
|
+
};
|
|
5018
|
+
export type SuggestionListResponse = SuggestionListResponses[keyof SuggestionListResponses];
|
|
5019
|
+
export type SuggestionAcceptData = {
|
|
5020
|
+
body?: {
|
|
5021
|
+
/**
|
|
5022
|
+
* Zero-based action index to accept
|
|
5023
|
+
*/
|
|
5024
|
+
index: number;
|
|
5025
|
+
};
|
|
5026
|
+
path: {
|
|
5027
|
+
requestID: string;
|
|
5028
|
+
};
|
|
5029
|
+
query?: {
|
|
5030
|
+
directory?: string;
|
|
5031
|
+
workspace?: string;
|
|
5032
|
+
};
|
|
5033
|
+
url: "/suggestion/{requestID}/accept";
|
|
5034
|
+
};
|
|
5035
|
+
export type SuggestionAcceptErrors = {
|
|
5036
|
+
/**
|
|
5037
|
+
* Bad request
|
|
5038
|
+
*/
|
|
5039
|
+
400: BadRequestError;
|
|
5040
|
+
/**
|
|
5041
|
+
* Not found
|
|
5042
|
+
*/
|
|
5043
|
+
404: NotFoundError;
|
|
5044
|
+
};
|
|
5045
|
+
export type SuggestionAcceptError = SuggestionAcceptErrors[keyof SuggestionAcceptErrors];
|
|
5046
|
+
export type SuggestionAcceptResponses = {
|
|
5047
|
+
/**
|
|
5048
|
+
* Suggestion accepted successfully
|
|
5049
|
+
*/
|
|
5050
|
+
200: boolean;
|
|
5051
|
+
};
|
|
5052
|
+
export type SuggestionAcceptResponse = SuggestionAcceptResponses[keyof SuggestionAcceptResponses];
|
|
5053
|
+
export type SuggestionDismissData = {
|
|
5054
|
+
body?: never;
|
|
5055
|
+
path: {
|
|
5056
|
+
requestID: string;
|
|
5057
|
+
};
|
|
5058
|
+
query?: {
|
|
5059
|
+
directory?: string;
|
|
5060
|
+
workspace?: string;
|
|
5061
|
+
};
|
|
5062
|
+
url: "/suggestion/{requestID}/dismiss";
|
|
5063
|
+
};
|
|
5064
|
+
export type SuggestionDismissErrors = {
|
|
5065
|
+
/**
|
|
5066
|
+
* Bad request
|
|
5067
|
+
*/
|
|
5068
|
+
400: BadRequestError;
|
|
5069
|
+
/**
|
|
5070
|
+
* Not found
|
|
5071
|
+
*/
|
|
5072
|
+
404: NotFoundError;
|
|
5073
|
+
};
|
|
5074
|
+
export type SuggestionDismissError = SuggestionDismissErrors[keyof SuggestionDismissErrors];
|
|
5075
|
+
export type SuggestionDismissResponses = {
|
|
5076
|
+
/**
|
|
5077
|
+
* Suggestion dismissed successfully
|
|
5078
|
+
*/
|
|
5079
|
+
200: boolean;
|
|
5080
|
+
};
|
|
5081
|
+
export type SuggestionDismissResponse = SuggestionDismissResponses[keyof SuggestionDismissResponses];
|
|
4870
5082
|
export type TelemetryCaptureData = {
|
|
4871
5083
|
body?: {
|
|
4872
5084
|
/**
|