@kilocode/sdk 7.2.4 → 7.2.5
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/client.js +26 -0
- package/dist/v2/client.js +40 -3
- package/dist/v2/gen/sdk.gen.d.ts +593 -571
- package/dist/v2/gen/sdk.gen.js +635 -598
- package/dist/v2/gen/types.gen.d.ts +1764 -1582
- package/package.json +1 -1
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, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, KiloClawChatCredentialsResponses, KiloClawStatusResponses, KiloCloudSessionGetErrors, KiloCloudSessionGetResponses, KiloCloudSessionImportErrors, KiloCloudSessionImportResponses, KiloCloudSessionsErrors, KiloCloudSessionsResponses, 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, TelemetryCaptureErrors, TelemetryCaptureResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeDiffErrors, WorktreeDiffFileErrors, WorktreeDiffFileResponses, WorktreeDiffResponses, WorktreeDiffSummaryErrors, WorktreeDiffSummaryResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.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, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalSyncEventSubscribeResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, InstanceDisposeResponses, KiloClawChatCredentialsResponses, KiloClawStatusResponses, KiloCloudSessionGetErrors, KiloCloudSessionGetResponses, KiloCloudSessionImportErrors, KiloCloudSessionImportResponses, KiloCloudSessionsErrors, KiloCloudSessionsResponses, 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, TelemetryCaptureErrors, TelemetryCaptureResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, 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,6 +25,14 @@ 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
|
+
}
|
|
28
36
|
export declare class Config extends HeyApiClient {
|
|
29
37
|
/**
|
|
30
38
|
* Get global configuration
|
|
@@ -60,6 +68,16 @@ export declare class Global extends HeyApiClient {
|
|
|
60
68
|
* Clean up and dispose all Kilo instances, releasing all resources.
|
|
61
69
|
*/
|
|
62
70
|
dispose<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalDisposeResponses, unknown, ThrowOnError, "fields">;
|
|
71
|
+
/**
|
|
72
|
+
* Upgrade kilo
|
|
73
|
+
*
|
|
74
|
+
* Upgrade kilo to the specified version or latest if not specified.
|
|
75
|
+
*/
|
|
76
|
+
upgrade<ThrowOnError extends boolean = false>(parameters?: {
|
|
77
|
+
target?: string;
|
|
78
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalUpgradeResponses, GlobalUpgradeErrors, ThrowOnError, "fields">;
|
|
79
|
+
private _syncEvent?;
|
|
80
|
+
get syncEvent(): SyncEvent;
|
|
63
81
|
private _config?;
|
|
64
82
|
get config(): Config;
|
|
65
83
|
}
|
|
@@ -82,6 +100,41 @@ export declare class Auth extends HeyApiClient {
|
|
|
82
100
|
auth?: Auth3;
|
|
83
101
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthSetResponses, AuthSetErrors, ThrowOnError, "fields">;
|
|
84
102
|
}
|
|
103
|
+
export declare class App extends HeyApiClient {
|
|
104
|
+
/**
|
|
105
|
+
* Write log
|
|
106
|
+
*
|
|
107
|
+
* Write a log entry to the server logs with specified level and metadata.
|
|
108
|
+
*/
|
|
109
|
+
log<ThrowOnError extends boolean = false>(parameters?: {
|
|
110
|
+
directory?: string;
|
|
111
|
+
workspace?: string;
|
|
112
|
+
service?: string;
|
|
113
|
+
level?: "debug" | "info" | "error" | "warn";
|
|
114
|
+
message?: string;
|
|
115
|
+
extra?: {
|
|
116
|
+
[key: string]: unknown;
|
|
117
|
+
};
|
|
118
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppLogResponses, AppLogErrors, ThrowOnError, "fields">;
|
|
119
|
+
/**
|
|
120
|
+
* List agents
|
|
121
|
+
*
|
|
122
|
+
* Get a list of all available AI agents in the Kilo system.
|
|
123
|
+
*/
|
|
124
|
+
agents<ThrowOnError extends boolean = false>(parameters?: {
|
|
125
|
+
directory?: string;
|
|
126
|
+
workspace?: string;
|
|
127
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppAgentsResponses, unknown, ThrowOnError, "fields">;
|
|
128
|
+
/**
|
|
129
|
+
* List skills
|
|
130
|
+
*
|
|
131
|
+
* Get a list of all available skills in the Kilo system.
|
|
132
|
+
*/
|
|
133
|
+
skills<ThrowOnError extends boolean = false>(parameters?: {
|
|
134
|
+
directory?: string;
|
|
135
|
+
workspace?: string;
|
|
136
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppSkillsResponses, unknown, ThrowOnError, "fields">;
|
|
137
|
+
}
|
|
85
138
|
export declare class Project extends HeyApiClient {
|
|
86
139
|
/**
|
|
87
140
|
* List all projects
|
|
@@ -589,6 +642,7 @@ export declare class Session2 extends HeyApiClient {
|
|
|
589
642
|
directory?: string;
|
|
590
643
|
workspace?: string;
|
|
591
644
|
limit?: number;
|
|
645
|
+
before?: string;
|
|
592
646
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessagesResponses, SessionMessagesErrors, ThrowOnError, "fields">;
|
|
593
647
|
/**
|
|
594
648
|
* Send message
|
|
@@ -862,37 +916,6 @@ export declare class Question extends HeyApiClient {
|
|
|
862
916
|
workspace?: string;
|
|
863
917
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionRejectResponses, QuestionRejectErrors, ThrowOnError, "fields">;
|
|
864
918
|
}
|
|
865
|
-
export declare class Network extends HeyApiClient {
|
|
866
|
-
/**
|
|
867
|
-
* List pending network waits
|
|
868
|
-
*
|
|
869
|
-
* Get all pending network reconnect requests across all sessions.
|
|
870
|
-
*/
|
|
871
|
-
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
872
|
-
directory?: string;
|
|
873
|
-
workspace?: string;
|
|
874
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<NetworkListResponses, unknown, ThrowOnError, "fields">;
|
|
875
|
-
/**
|
|
876
|
-
* Resume after network wait
|
|
877
|
-
*
|
|
878
|
-
* Resume a pending session after reconnecting network-dependent services.
|
|
879
|
-
*/
|
|
880
|
-
reply<ThrowOnError extends boolean = false>(parameters: {
|
|
881
|
-
requestID: string;
|
|
882
|
-
directory?: string;
|
|
883
|
-
workspace?: string;
|
|
884
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<NetworkReplyResponses, NetworkReplyErrors, ThrowOnError, "fields">;
|
|
885
|
-
/**
|
|
886
|
-
* Reject network resume request
|
|
887
|
-
*
|
|
888
|
-
* Stop a pending session instead of resuming after network reconnect.
|
|
889
|
-
*/
|
|
890
|
-
reject<ThrowOnError extends boolean = false>(parameters: {
|
|
891
|
-
requestID: string;
|
|
892
|
-
directory?: string;
|
|
893
|
-
workspace?: string;
|
|
894
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<NetworkRejectResponses, NetworkRejectErrors, ThrowOnError, "fields">;
|
|
895
|
-
}
|
|
896
919
|
export declare class Oauth extends HeyApiClient {
|
|
897
920
|
/**
|
|
898
921
|
* OAuth authorize
|
|
@@ -904,6 +927,9 @@ export declare class Oauth extends HeyApiClient {
|
|
|
904
927
|
directory?: string;
|
|
905
928
|
workspace?: string;
|
|
906
929
|
method?: number;
|
|
930
|
+
inputs?: {
|
|
931
|
+
[key: string]: string;
|
|
932
|
+
};
|
|
907
933
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderOauthAuthorizeResponses, ProviderOauthAuthorizeErrors, ThrowOnError, "fields">;
|
|
908
934
|
/**
|
|
909
935
|
* OAuth callback
|
|
@@ -940,821 +966,817 @@ export declare class Provider extends HeyApiClient {
|
|
|
940
966
|
private _oauth?;
|
|
941
967
|
get oauth(): Oauth;
|
|
942
968
|
}
|
|
943
|
-
export declare class
|
|
969
|
+
export declare class Find extends HeyApiClient {
|
|
944
970
|
/**
|
|
945
|
-
*
|
|
971
|
+
* Find text
|
|
946
972
|
*
|
|
947
|
-
*
|
|
973
|
+
* Search for text patterns across files in the project using ripgrep.
|
|
948
974
|
*/
|
|
949
|
-
|
|
975
|
+
text<ThrowOnError extends boolean = false>(parameters: {
|
|
950
976
|
directory?: string;
|
|
951
977
|
workspace?: string;
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
978
|
+
pattern: string;
|
|
979
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindTextResponses, unknown, ThrowOnError, "fields">;
|
|
980
|
+
/**
|
|
981
|
+
* Find files
|
|
982
|
+
*
|
|
983
|
+
* Search for files or directories by name or pattern in the project directory.
|
|
984
|
+
*/
|
|
985
|
+
files<ThrowOnError extends boolean = false>(parameters: {
|
|
986
|
+
directory?: string;
|
|
987
|
+
workspace?: string;
|
|
988
|
+
query: string;
|
|
989
|
+
dirs?: "true" | "false";
|
|
990
|
+
type?: "file" | "directory";
|
|
991
|
+
limit?: number;
|
|
992
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindFilesResponses, unknown, ThrowOnError, "fields">;
|
|
993
|
+
/**
|
|
994
|
+
* Find symbols
|
|
995
|
+
*
|
|
996
|
+
* Search for workspace symbols like functions, classes, and variables using LSP.
|
|
997
|
+
*/
|
|
998
|
+
symbols<ThrowOnError extends boolean = false>(parameters: {
|
|
999
|
+
directory?: string;
|
|
1000
|
+
workspace?: string;
|
|
1001
|
+
query: string;
|
|
1002
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindSymbolsResponses, unknown, ThrowOnError, "fields">;
|
|
957
1003
|
}
|
|
958
|
-
export declare class
|
|
1004
|
+
export declare class File extends HeyApiClient {
|
|
959
1005
|
/**
|
|
960
|
-
*
|
|
1006
|
+
* List files
|
|
961
1007
|
*
|
|
962
|
-
*
|
|
1008
|
+
* List files and directories in a specified path.
|
|
963
1009
|
*/
|
|
964
|
-
|
|
1010
|
+
list<ThrowOnError extends boolean = false>(parameters: {
|
|
965
1011
|
directory?: string;
|
|
966
1012
|
workspace?: string;
|
|
967
|
-
|
|
1013
|
+
path: string;
|
|
1014
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileListResponses, unknown, ThrowOnError, "fields">;
|
|
968
1015
|
/**
|
|
969
|
-
*
|
|
1016
|
+
* Read file
|
|
970
1017
|
*
|
|
971
|
-
*
|
|
1018
|
+
* Read the content of a specified file.
|
|
972
1019
|
*/
|
|
973
|
-
|
|
1020
|
+
read<ThrowOnError extends boolean = false>(parameters: {
|
|
974
1021
|
directory?: string;
|
|
975
1022
|
workspace?: string;
|
|
976
|
-
|
|
1023
|
+
path: string;
|
|
1024
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileReadResponses, unknown, ThrowOnError, "fields">;
|
|
977
1025
|
/**
|
|
978
|
-
* Get
|
|
1026
|
+
* Get file status
|
|
979
1027
|
*
|
|
980
|
-
* Get the
|
|
1028
|
+
* Get the git status of all files in the project.
|
|
981
1029
|
*/
|
|
982
1030
|
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
983
1031
|
directory?: string;
|
|
984
1032
|
workspace?: string;
|
|
985
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1033
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileStatusResponses, unknown, ThrowOnError, "fields">;
|
|
986
1034
|
}
|
|
987
|
-
export declare class
|
|
1035
|
+
export declare class Event extends HeyApiClient {
|
|
988
1036
|
/**
|
|
989
|
-
*
|
|
1037
|
+
* Subscribe to events
|
|
990
1038
|
*
|
|
991
|
-
*
|
|
1039
|
+
* Get events
|
|
992
1040
|
*/
|
|
993
|
-
|
|
1041
|
+
subscribe<ThrowOnError extends boolean = false>(parameters?: {
|
|
994
1042
|
directory?: string;
|
|
995
1043
|
workspace?: string;
|
|
996
|
-
|
|
997
|
-
selectedFiles?: Array<string>;
|
|
998
|
-
previousMessage?: string;
|
|
999
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CommitMessageGenerateResponses, CommitMessageGenerateErrors, ThrowOnError, "fields">;
|
|
1044
|
+
}, options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<EventSubscribeResponses, unknown>>;
|
|
1000
1045
|
}
|
|
1001
|
-
export declare class
|
|
1046
|
+
export declare class Auth2 extends HeyApiClient {
|
|
1002
1047
|
/**
|
|
1003
|
-
*
|
|
1048
|
+
* Remove MCP OAuth
|
|
1004
1049
|
*
|
|
1005
|
-
*
|
|
1050
|
+
* Remove OAuth credentials for an MCP server
|
|
1006
1051
|
*/
|
|
1007
|
-
|
|
1052
|
+
remove<ThrowOnError extends boolean = false>(parameters: {
|
|
1053
|
+
name: string;
|
|
1008
1054
|
directory?: string;
|
|
1009
1055
|
workspace?: string;
|
|
1010
|
-
|
|
1011
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<EnhancePromptEnhanceResponses, EnhancePromptEnhanceErrors, ThrowOnError, "fields">;
|
|
1012
|
-
}
|
|
1013
|
-
export declare class SessionImport extends HeyApiClient {
|
|
1056
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthRemoveResponses, McpAuthRemoveErrors, ThrowOnError, "fields">;
|
|
1014
1057
|
/**
|
|
1015
|
-
*
|
|
1058
|
+
* Start MCP OAuth
|
|
1016
1059
|
*
|
|
1017
|
-
*
|
|
1060
|
+
* Start OAuth authentication flow for a Model Context Protocol (MCP) server.
|
|
1018
1061
|
*/
|
|
1019
|
-
|
|
1062
|
+
start<ThrowOnError extends boolean = false>(parameters: {
|
|
1063
|
+
name: string;
|
|
1020
1064
|
directory?: string;
|
|
1021
1065
|
workspace?: string;
|
|
1022
|
-
|
|
1023
|
-
worktree?: string;
|
|
1024
|
-
vcs?: string;
|
|
1025
|
-
name?: string;
|
|
1026
|
-
iconUrl?: string;
|
|
1027
|
-
iconColor?: string;
|
|
1028
|
-
timeCreated?: number;
|
|
1029
|
-
timeUpdated?: number;
|
|
1030
|
-
timeInitialized?: number;
|
|
1031
|
-
sandboxes?: Array<string>;
|
|
1032
|
-
commands?: {
|
|
1033
|
-
start?: string;
|
|
1034
|
-
};
|
|
1035
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeSessionImportProjectResponses, KilocodeSessionImportProjectErrors, ThrowOnError, "fields">;
|
|
1066
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthStartResponses, McpAuthStartErrors, ThrowOnError, "fields">;
|
|
1036
1067
|
/**
|
|
1037
|
-
*
|
|
1068
|
+
* Complete MCP OAuth
|
|
1038
1069
|
*
|
|
1039
|
-
*
|
|
1070
|
+
* Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
|
|
1040
1071
|
*/
|
|
1041
|
-
|
|
1042
|
-
|
|
1072
|
+
callback<ThrowOnError extends boolean = false>(parameters: {
|
|
1073
|
+
name: string;
|
|
1074
|
+
directory?: string;
|
|
1043
1075
|
workspace?: string;
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
force?: boolean;
|
|
1047
|
-
workspaceID?: string;
|
|
1048
|
-
parentID?: string;
|
|
1049
|
-
slug?: string;
|
|
1050
|
-
body_directory?: string;
|
|
1051
|
-
title?: string;
|
|
1052
|
-
version?: string;
|
|
1053
|
-
shareURL?: string;
|
|
1054
|
-
summary?: {
|
|
1055
|
-
additions: number;
|
|
1056
|
-
deletions: number;
|
|
1057
|
-
files: number;
|
|
1058
|
-
diffs?: Array<{
|
|
1059
|
-
[key: string]: unknown;
|
|
1060
|
-
}>;
|
|
1061
|
-
};
|
|
1062
|
-
revert?: {
|
|
1063
|
-
messageID: string;
|
|
1064
|
-
partID?: string;
|
|
1065
|
-
snapshot?: string;
|
|
1066
|
-
diff?: string;
|
|
1067
|
-
};
|
|
1068
|
-
permission?: {
|
|
1069
|
-
[key: string]: unknown;
|
|
1070
|
-
};
|
|
1071
|
-
timeCreated?: number;
|
|
1072
|
-
timeUpdated?: number;
|
|
1073
|
-
timeCompacting?: number;
|
|
1074
|
-
timeArchived?: number;
|
|
1075
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeSessionImportSessionResponses, KilocodeSessionImportSessionErrors, ThrowOnError, "fields">;
|
|
1076
|
+
code?: string;
|
|
1077
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthCallbackResponses, McpAuthCallbackErrors, ThrowOnError, "fields">;
|
|
1076
1078
|
/**
|
|
1077
|
-
*
|
|
1079
|
+
* Authenticate MCP OAuth
|
|
1078
1080
|
*
|
|
1079
|
-
*
|
|
1081
|
+
* Start OAuth flow and wait for callback (opens browser)
|
|
1080
1082
|
*/
|
|
1081
|
-
|
|
1083
|
+
authenticate<ThrowOnError extends boolean = false>(parameters: {
|
|
1084
|
+
name: string;
|
|
1082
1085
|
directory?: string;
|
|
1083
1086
|
workspace?: string;
|
|
1084
|
-
|
|
1085
|
-
sessionID?: string;
|
|
1086
|
-
timeCreated?: number;
|
|
1087
|
-
data?: {
|
|
1088
|
-
role: "user";
|
|
1089
|
-
time: {
|
|
1090
|
-
created: number;
|
|
1091
|
-
};
|
|
1092
|
-
agent: string;
|
|
1093
|
-
model: {
|
|
1094
|
-
providerID: string;
|
|
1095
|
-
modelID: string;
|
|
1096
|
-
};
|
|
1097
|
-
tools?: {
|
|
1098
|
-
[key: string]: boolean;
|
|
1099
|
-
};
|
|
1100
|
-
} | {
|
|
1101
|
-
role: "assistant";
|
|
1102
|
-
time: {
|
|
1103
|
-
created: number;
|
|
1104
|
-
completed?: number;
|
|
1105
|
-
};
|
|
1106
|
-
parentID: string;
|
|
1107
|
-
modelID: string;
|
|
1108
|
-
providerID: string;
|
|
1109
|
-
mode: string;
|
|
1110
|
-
agent: string;
|
|
1111
|
-
path: {
|
|
1112
|
-
cwd: string;
|
|
1113
|
-
root: string;
|
|
1114
|
-
};
|
|
1115
|
-
summary?: boolean;
|
|
1116
|
-
cost: number;
|
|
1117
|
-
tokens: {
|
|
1118
|
-
total?: number;
|
|
1119
|
-
input: number;
|
|
1120
|
-
output: number;
|
|
1121
|
-
reasoning: number;
|
|
1122
|
-
cache: {
|
|
1123
|
-
read: number;
|
|
1124
|
-
write: number;
|
|
1125
|
-
};
|
|
1126
|
-
};
|
|
1127
|
-
structured?: unknown;
|
|
1128
|
-
variant?: string;
|
|
1129
|
-
finish?: string;
|
|
1130
|
-
};
|
|
1131
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeSessionImportMessageResponses, KilocodeSessionImportMessageErrors, ThrowOnError, "fields">;
|
|
1132
|
-
/**
|
|
1133
|
-
* Insert part for session import
|
|
1134
|
-
*
|
|
1135
|
-
* Insert or update a part row used by legacy session import.
|
|
1136
|
-
*/
|
|
1137
|
-
part<ThrowOnError extends boolean = false>(parameters?: {
|
|
1138
|
-
directory?: string;
|
|
1139
|
-
workspace?: string;
|
|
1140
|
-
id?: string;
|
|
1141
|
-
messageID?: string;
|
|
1142
|
-
sessionID?: string;
|
|
1143
|
-
timeCreated?: number;
|
|
1144
|
-
data?: {
|
|
1145
|
-
type: "text";
|
|
1146
|
-
text: string;
|
|
1147
|
-
synthetic?: boolean;
|
|
1148
|
-
ignored?: boolean;
|
|
1149
|
-
time?: {
|
|
1150
|
-
start: number;
|
|
1151
|
-
end?: number;
|
|
1152
|
-
};
|
|
1153
|
-
metadata?: {
|
|
1154
|
-
[key: string]: unknown;
|
|
1155
|
-
};
|
|
1156
|
-
} | {
|
|
1157
|
-
type: "reasoning";
|
|
1158
|
-
text: string;
|
|
1159
|
-
metadata?: {
|
|
1160
|
-
[key: string]: unknown;
|
|
1161
|
-
};
|
|
1162
|
-
time: {
|
|
1163
|
-
start: number;
|
|
1164
|
-
end?: number;
|
|
1165
|
-
};
|
|
1166
|
-
} | {
|
|
1167
|
-
type: "tool";
|
|
1168
|
-
callID: string;
|
|
1169
|
-
tool: string;
|
|
1170
|
-
state: {
|
|
1171
|
-
status: "pending";
|
|
1172
|
-
input: {
|
|
1173
|
-
[key: string]: unknown;
|
|
1174
|
-
};
|
|
1175
|
-
raw: string;
|
|
1176
|
-
} | {
|
|
1177
|
-
status: "running";
|
|
1178
|
-
input: {
|
|
1179
|
-
[key: string]: unknown;
|
|
1180
|
-
};
|
|
1181
|
-
title?: string;
|
|
1182
|
-
metadata?: {
|
|
1183
|
-
[key: string]: unknown;
|
|
1184
|
-
};
|
|
1185
|
-
time: {
|
|
1186
|
-
start: number;
|
|
1187
|
-
};
|
|
1188
|
-
} | {
|
|
1189
|
-
status: "completed";
|
|
1190
|
-
input: {
|
|
1191
|
-
[key: string]: unknown;
|
|
1192
|
-
};
|
|
1193
|
-
output: string;
|
|
1194
|
-
title: string;
|
|
1195
|
-
metadata: {
|
|
1196
|
-
[key: string]: unknown;
|
|
1197
|
-
};
|
|
1198
|
-
time: {
|
|
1199
|
-
start: number;
|
|
1200
|
-
end: number;
|
|
1201
|
-
compacted?: number;
|
|
1202
|
-
};
|
|
1203
|
-
} | {
|
|
1204
|
-
status: "error";
|
|
1205
|
-
input: {
|
|
1206
|
-
[key: string]: unknown;
|
|
1207
|
-
};
|
|
1208
|
-
error: string;
|
|
1209
|
-
metadata?: {
|
|
1210
|
-
[key: string]: unknown;
|
|
1211
|
-
};
|
|
1212
|
-
time: {
|
|
1213
|
-
start: number;
|
|
1214
|
-
end: number;
|
|
1215
|
-
};
|
|
1216
|
-
};
|
|
1217
|
-
metadata?: {
|
|
1218
|
-
[key: string]: unknown;
|
|
1219
|
-
};
|
|
1220
|
-
};
|
|
1221
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeSessionImportPartResponses, KilocodeSessionImportPartErrors, ThrowOnError, "fields">;
|
|
1087
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthAuthenticateResponses, McpAuthAuthenticateErrors, ThrowOnError, "fields">;
|
|
1222
1088
|
}
|
|
1223
|
-
export declare class
|
|
1089
|
+
export declare class Mcp extends HeyApiClient {
|
|
1224
1090
|
/**
|
|
1225
|
-
*
|
|
1091
|
+
* Get MCP status
|
|
1226
1092
|
*
|
|
1227
|
-
*
|
|
1093
|
+
* Get the status of all Model Context Protocol (MCP) servers.
|
|
1228
1094
|
*/
|
|
1229
|
-
|
|
1095
|
+
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
1230
1096
|
directory?: string;
|
|
1231
1097
|
workspace?: string;
|
|
1232
|
-
|
|
1233
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeRemoveSkillResponses, KilocodeRemoveSkillErrors, ThrowOnError, "fields">;
|
|
1098
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpStatusResponses, unknown, ThrowOnError, "fields">;
|
|
1234
1099
|
/**
|
|
1235
|
-
*
|
|
1100
|
+
* Add MCP server
|
|
1236
1101
|
*
|
|
1237
|
-
*
|
|
1102
|
+
* Dynamically add a new Model Context Protocol (MCP) server to the system.
|
|
1238
1103
|
*/
|
|
1239
|
-
|
|
1104
|
+
add<ThrowOnError extends boolean = false>(parameters?: {
|
|
1240
1105
|
directory?: string;
|
|
1241
1106
|
workspace?: string;
|
|
1242
1107
|
name?: string;
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
get sessionImport(): SessionImport;
|
|
1246
|
-
}
|
|
1247
|
-
export declare class Organization extends HeyApiClient {
|
|
1248
|
-
/**
|
|
1249
|
-
* Update Kilo Gateway organization
|
|
1250
|
-
*
|
|
1251
|
-
* Switch to a different Kilo Gateway organization
|
|
1252
|
-
*/
|
|
1253
|
-
set<ThrowOnError extends boolean = false>(parameters?: {
|
|
1254
|
-
directory?: string;
|
|
1255
|
-
workspace?: string;
|
|
1256
|
-
organizationId?: string | null;
|
|
1257
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KiloOrganizationSetResponses, KiloOrganizationSetErrors, ThrowOnError, "fields">;
|
|
1258
|
-
}
|
|
1259
|
-
export declare class Session3 extends HeyApiClient {
|
|
1108
|
+
config?: McpLocalConfig | McpRemoteConfig;
|
|
1109
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAddResponses, McpAddErrors, ThrowOnError, "fields">;
|
|
1260
1110
|
/**
|
|
1261
|
-
*
|
|
1262
|
-
*
|
|
1263
|
-
* Fetch full session data from the Kilo cloud for preview
|
|
1111
|
+
* Connect an MCP server
|
|
1264
1112
|
*/
|
|
1265
|
-
|
|
1266
|
-
|
|
1113
|
+
connect<ThrowOnError extends boolean = false>(parameters: {
|
|
1114
|
+
name: string;
|
|
1267
1115
|
directory?: string;
|
|
1268
1116
|
workspace?: string;
|
|
1269
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1117
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpConnectResponses, unknown, ThrowOnError, "fields">;
|
|
1270
1118
|
/**
|
|
1271
|
-
*
|
|
1272
|
-
*
|
|
1273
|
-
* Download a cloud-synced session and write it to local storage with fresh IDs.
|
|
1119
|
+
* Disconnect an MCP server
|
|
1274
1120
|
*/
|
|
1275
|
-
|
|
1121
|
+
disconnect<ThrowOnError extends boolean = false>(parameters: {
|
|
1122
|
+
name: string;
|
|
1276
1123
|
directory?: string;
|
|
1277
1124
|
workspace?: string;
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
export declare class Cloud extends HeyApiClient {
|
|
1282
|
-
private _session?;
|
|
1283
|
-
get session(): Session3;
|
|
1125
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpDisconnectResponses, unknown, ThrowOnError, "fields">;
|
|
1126
|
+
private _auth?;
|
|
1127
|
+
get auth(): Auth2;
|
|
1284
1128
|
}
|
|
1285
|
-
export declare class
|
|
1129
|
+
export declare class Control extends HeyApiClient {
|
|
1286
1130
|
/**
|
|
1287
|
-
* Get
|
|
1131
|
+
* Get next TUI request
|
|
1288
1132
|
*
|
|
1289
|
-
*
|
|
1133
|
+
* Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
|
|
1290
1134
|
*/
|
|
1291
|
-
|
|
1135
|
+
next<ThrowOnError extends boolean = false>(parameters?: {
|
|
1292
1136
|
directory?: string;
|
|
1293
1137
|
workspace?: string;
|
|
1294
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1138
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlNextResponses, unknown, ThrowOnError, "fields">;
|
|
1295
1139
|
/**
|
|
1296
|
-
*
|
|
1140
|
+
* Submit TUI response
|
|
1297
1141
|
*
|
|
1298
|
-
*
|
|
1142
|
+
* Submit a response to the TUI request queue to complete a pending request.
|
|
1299
1143
|
*/
|
|
1300
|
-
|
|
1144
|
+
response<ThrowOnError extends boolean = false>(parameters?: {
|
|
1301
1145
|
directory?: string;
|
|
1302
1146
|
workspace?: string;
|
|
1303
|
-
|
|
1147
|
+
body?: unknown;
|
|
1148
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlResponseResponses, unknown, ThrowOnError, "fields">;
|
|
1304
1149
|
}
|
|
1305
|
-
export declare class
|
|
1150
|
+
export declare class Tui extends HeyApiClient {
|
|
1306
1151
|
/**
|
|
1307
|
-
*
|
|
1152
|
+
* Append TUI prompt
|
|
1308
1153
|
*
|
|
1309
|
-
*
|
|
1154
|
+
* Append prompt to the TUI
|
|
1310
1155
|
*/
|
|
1311
|
-
|
|
1156
|
+
appendPrompt<ThrowOnError extends boolean = false>(parameters?: {
|
|
1312
1157
|
directory?: string;
|
|
1313
1158
|
workspace?: string;
|
|
1314
|
-
|
|
1159
|
+
text?: string;
|
|
1160
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiAppendPromptResponses, TuiAppendPromptErrors, ThrowOnError, "fields">;
|
|
1315
1161
|
/**
|
|
1316
|
-
*
|
|
1162
|
+
* Open help dialog
|
|
1317
1163
|
*
|
|
1318
|
-
*
|
|
1164
|
+
* Open the help dialog in the TUI to display user assistance information.
|
|
1319
1165
|
*/
|
|
1320
|
-
|
|
1166
|
+
openHelp<ThrowOnError extends boolean = false>(parameters?: {
|
|
1321
1167
|
directory?: string;
|
|
1322
1168
|
workspace?: string;
|
|
1323
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1169
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenHelpResponses, unknown, ThrowOnError, "fields">;
|
|
1324
1170
|
/**
|
|
1325
|
-
*
|
|
1171
|
+
* Open sessions dialog
|
|
1326
1172
|
*
|
|
1327
|
-
*
|
|
1173
|
+
* Open the session dialog
|
|
1328
1174
|
*/
|
|
1329
|
-
|
|
1175
|
+
openSessions<ThrowOnError extends boolean = false>(parameters?: {
|
|
1330
1176
|
directory?: string;
|
|
1331
1177
|
workspace?: string;
|
|
1332
|
-
|
|
1333
|
-
suffix?: string;
|
|
1334
|
-
model?: string;
|
|
1335
|
-
maxTokens?: number;
|
|
1336
|
-
temperature?: number;
|
|
1337
|
-
}, options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<KiloFimResponses, KiloFimErrors>>;
|
|
1178
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenSessionsResponses, unknown, ThrowOnError, "fields">;
|
|
1338
1179
|
/**
|
|
1339
|
-
*
|
|
1180
|
+
* Open themes dialog
|
|
1340
1181
|
*
|
|
1341
|
-
*
|
|
1182
|
+
* Open the theme dialog
|
|
1342
1183
|
*/
|
|
1343
|
-
|
|
1184
|
+
openThemes<ThrowOnError extends boolean = false>(parameters?: {
|
|
1344
1185
|
directory?: string;
|
|
1345
1186
|
workspace?: string;
|
|
1346
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1187
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenThemesResponses, unknown, ThrowOnError, "fields">;
|
|
1347
1188
|
/**
|
|
1348
|
-
*
|
|
1189
|
+
* Open models dialog
|
|
1349
1190
|
*
|
|
1350
|
-
*
|
|
1191
|
+
* Open the model dialog
|
|
1351
1192
|
*/
|
|
1352
|
-
|
|
1193
|
+
openModels<ThrowOnError extends boolean = false>(parameters?: {
|
|
1353
1194
|
directory?: string;
|
|
1354
1195
|
workspace?: string;
|
|
1355
|
-
|
|
1356
|
-
limit?: number;
|
|
1357
|
-
gitUrl?: string;
|
|
1358
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KiloCloudSessionsResponses, KiloCloudSessionsErrors, ThrowOnError, "fields">;
|
|
1359
|
-
private _organization?;
|
|
1360
|
-
get organization(): Organization;
|
|
1361
|
-
private _cloud?;
|
|
1362
|
-
get cloud(): Cloud;
|
|
1363
|
-
private _claw?;
|
|
1364
|
-
get claw(): Claw;
|
|
1365
|
-
}
|
|
1366
|
-
export declare class Find extends HeyApiClient {
|
|
1196
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenModelsResponses, unknown, ThrowOnError, "fields">;
|
|
1367
1197
|
/**
|
|
1368
|
-
*
|
|
1198
|
+
* Submit TUI prompt
|
|
1369
1199
|
*
|
|
1370
|
-
*
|
|
1200
|
+
* Submit the prompt
|
|
1371
1201
|
*/
|
|
1372
|
-
|
|
1202
|
+
submitPrompt<ThrowOnError extends boolean = false>(parameters?: {
|
|
1373
1203
|
directory?: string;
|
|
1374
1204
|
workspace?: string;
|
|
1375
|
-
|
|
1376
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindTextResponses, unknown, ThrowOnError, "fields">;
|
|
1205
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSubmitPromptResponses, unknown, ThrowOnError, "fields">;
|
|
1377
1206
|
/**
|
|
1378
|
-
*
|
|
1207
|
+
* Clear TUI prompt
|
|
1379
1208
|
*
|
|
1380
|
-
*
|
|
1209
|
+
* Clear the prompt
|
|
1381
1210
|
*/
|
|
1382
|
-
|
|
1211
|
+
clearPrompt<ThrowOnError extends boolean = false>(parameters?: {
|
|
1383
1212
|
directory?: string;
|
|
1384
1213
|
workspace?: string;
|
|
1385
|
-
|
|
1386
|
-
dirs?: "true" | "false";
|
|
1387
|
-
type?: "file" | "directory";
|
|
1388
|
-
limit?: number;
|
|
1389
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindFilesResponses, unknown, ThrowOnError, "fields">;
|
|
1214
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiClearPromptResponses, unknown, ThrowOnError, "fields">;
|
|
1390
1215
|
/**
|
|
1391
|
-
*
|
|
1216
|
+
* Execute TUI command
|
|
1392
1217
|
*
|
|
1393
|
-
*
|
|
1218
|
+
* Execute a TUI command (e.g. agent_cycle)
|
|
1394
1219
|
*/
|
|
1395
|
-
|
|
1220
|
+
executeCommand<ThrowOnError extends boolean = false>(parameters?: {
|
|
1396
1221
|
directory?: string;
|
|
1397
1222
|
workspace?: string;
|
|
1398
|
-
|
|
1399
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1400
|
-
}
|
|
1401
|
-
export declare class File extends HeyApiClient {
|
|
1223
|
+
command?: string;
|
|
1224
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiExecuteCommandResponses, TuiExecuteCommandErrors, ThrowOnError, "fields">;
|
|
1402
1225
|
/**
|
|
1403
|
-
*
|
|
1226
|
+
* Show TUI toast
|
|
1404
1227
|
*
|
|
1405
|
-
*
|
|
1228
|
+
* Show a toast notification in the TUI
|
|
1406
1229
|
*/
|
|
1407
|
-
|
|
1230
|
+
showToast<ThrowOnError extends boolean = false>(parameters?: {
|
|
1408
1231
|
directory?: string;
|
|
1409
1232
|
workspace?: string;
|
|
1410
|
-
|
|
1411
|
-
|
|
1233
|
+
title?: string;
|
|
1234
|
+
message?: string;
|
|
1235
|
+
variant?: "info" | "success" | "warning" | "error";
|
|
1236
|
+
duration?: number;
|
|
1237
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiShowToastResponses, unknown, ThrowOnError, "fields">;
|
|
1412
1238
|
/**
|
|
1413
|
-
*
|
|
1239
|
+
* Publish TUI event
|
|
1414
1240
|
*
|
|
1415
|
-
*
|
|
1241
|
+
* Publish a TUI event
|
|
1416
1242
|
*/
|
|
1417
|
-
|
|
1243
|
+
publish<ThrowOnError extends boolean = false>(parameters?: {
|
|
1418
1244
|
directory?: string;
|
|
1419
1245
|
workspace?: string;
|
|
1420
|
-
|
|
1421
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1246
|
+
body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
|
|
1247
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiPublishResponses, TuiPublishErrors, ThrowOnError, "fields">;
|
|
1422
1248
|
/**
|
|
1423
|
-
*
|
|
1249
|
+
* Select session
|
|
1424
1250
|
*
|
|
1425
|
-
*
|
|
1251
|
+
* Navigate the TUI to display the specified session.
|
|
1426
1252
|
*/
|
|
1427
|
-
|
|
1253
|
+
selectSession<ThrowOnError extends boolean = false>(parameters?: {
|
|
1428
1254
|
directory?: string;
|
|
1429
1255
|
workspace?: string;
|
|
1430
|
-
|
|
1256
|
+
sessionID?: string;
|
|
1257
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSelectSessionResponses, TuiSelectSessionErrors, ThrowOnError, "fields">;
|
|
1258
|
+
private _control?;
|
|
1259
|
+
get control(): Control;
|
|
1431
1260
|
}
|
|
1432
|
-
export declare class
|
|
1261
|
+
export declare class Instance extends HeyApiClient {
|
|
1433
1262
|
/**
|
|
1434
|
-
*
|
|
1263
|
+
* Dispose instance
|
|
1435
1264
|
*
|
|
1436
|
-
*
|
|
1265
|
+
* Clean up and dispose the current Kilo instance, releasing all resources.
|
|
1437
1266
|
*/
|
|
1438
|
-
|
|
1439
|
-
name: string;
|
|
1267
|
+
dispose<ThrowOnError extends boolean = false>(parameters?: {
|
|
1440
1268
|
directory?: string;
|
|
1441
1269
|
workspace?: string;
|
|
1442
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1270
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<InstanceDisposeResponses, unknown, ThrowOnError, "fields">;
|
|
1271
|
+
}
|
|
1272
|
+
export declare class Path extends HeyApiClient {
|
|
1443
1273
|
/**
|
|
1444
|
-
*
|
|
1274
|
+
* Get paths
|
|
1445
1275
|
*
|
|
1446
|
-
*
|
|
1276
|
+
* Retrieve the current working directory and related path information for the Kilo instance.
|
|
1447
1277
|
*/
|
|
1448
|
-
|
|
1449
|
-
name: string;
|
|
1278
|
+
get<ThrowOnError extends boolean = false>(parameters?: {
|
|
1450
1279
|
directory?: string;
|
|
1451
1280
|
workspace?: string;
|
|
1452
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1281
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PathGetResponses, unknown, ThrowOnError, "fields">;
|
|
1282
|
+
}
|
|
1283
|
+
export declare class Vcs extends HeyApiClient {
|
|
1453
1284
|
/**
|
|
1454
|
-
*
|
|
1285
|
+
* Get VCS info
|
|
1455
1286
|
*
|
|
1456
|
-
*
|
|
1287
|
+
* Retrieve version control system (VCS) information for the current project, such as git branch.
|
|
1457
1288
|
*/
|
|
1458
|
-
|
|
1459
|
-
name: string;
|
|
1289
|
+
get<ThrowOnError extends boolean = false>(parameters?: {
|
|
1460
1290
|
directory?: string;
|
|
1461
1291
|
workspace?: string;
|
|
1462
|
-
|
|
1463
|
-
|
|
1292
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsGetResponses, unknown, ThrowOnError, "fields">;
|
|
1293
|
+
}
|
|
1294
|
+
export declare class Command extends HeyApiClient {
|
|
1464
1295
|
/**
|
|
1465
|
-
*
|
|
1296
|
+
* List commands
|
|
1466
1297
|
*
|
|
1467
|
-
*
|
|
1298
|
+
* Get a list of all available commands in the Kilo system.
|
|
1468
1299
|
*/
|
|
1469
|
-
|
|
1470
|
-
name: string;
|
|
1300
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
1471
1301
|
directory?: string;
|
|
1472
1302
|
workspace?: string;
|
|
1473
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1303
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CommandListResponses, unknown, ThrowOnError, "fields">;
|
|
1474
1304
|
}
|
|
1475
|
-
export declare class
|
|
1305
|
+
export declare class Lsp extends HeyApiClient {
|
|
1476
1306
|
/**
|
|
1477
|
-
* Get
|
|
1307
|
+
* Get LSP status
|
|
1478
1308
|
*
|
|
1479
|
-
* Get
|
|
1309
|
+
* Get LSP server status
|
|
1480
1310
|
*/
|
|
1481
1311
|
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
1482
1312
|
directory?: string;
|
|
1483
1313
|
workspace?: string;
|
|
1484
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1314
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<LspStatusResponses, unknown, ThrowOnError, "fields">;
|
|
1315
|
+
}
|
|
1316
|
+
export declare class Formatter extends HeyApiClient {
|
|
1485
1317
|
/**
|
|
1486
|
-
*
|
|
1318
|
+
* Get formatter status
|
|
1487
1319
|
*
|
|
1488
|
-
*
|
|
1320
|
+
* Get formatter status
|
|
1489
1321
|
*/
|
|
1490
|
-
|
|
1322
|
+
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
1491
1323
|
directory?: string;
|
|
1492
1324
|
workspace?: string;
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1325
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FormatterStatusResponses, unknown, ThrowOnError, "fields">;
|
|
1326
|
+
}
|
|
1327
|
+
export declare class Network extends HeyApiClient {
|
|
1496
1328
|
/**
|
|
1497
|
-
*
|
|
1329
|
+
* List pending network waits
|
|
1330
|
+
*
|
|
1331
|
+
* Get all pending network reconnect requests across all sessions.
|
|
1498
1332
|
*/
|
|
1499
|
-
|
|
1500
|
-
name: string;
|
|
1333
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
1501
1334
|
directory?: string;
|
|
1502
1335
|
workspace?: string;
|
|
1503
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1336
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<NetworkListResponses, unknown, ThrowOnError, "fields">;
|
|
1504
1337
|
/**
|
|
1505
|
-
*
|
|
1338
|
+
* Resume after network wait
|
|
1339
|
+
*
|
|
1340
|
+
* Resume a pending session after reconnecting network-dependent services.
|
|
1506
1341
|
*/
|
|
1507
|
-
|
|
1508
|
-
|
|
1342
|
+
reply<ThrowOnError extends boolean = false>(parameters: {
|
|
1343
|
+
requestID: string;
|
|
1509
1344
|
directory?: string;
|
|
1510
1345
|
workspace?: string;
|
|
1511
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1512
|
-
private _auth?;
|
|
1513
|
-
get auth(): Auth2;
|
|
1514
|
-
}
|
|
1515
|
-
export declare class Control extends HeyApiClient {
|
|
1346
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<NetworkReplyResponses, NetworkReplyErrors, ThrowOnError, "fields">;
|
|
1516
1347
|
/**
|
|
1517
|
-
*
|
|
1348
|
+
* Reject network resume request
|
|
1518
1349
|
*
|
|
1519
|
-
*
|
|
1350
|
+
* Stop a pending session instead of resuming after network reconnect.
|
|
1520
1351
|
*/
|
|
1521
|
-
|
|
1352
|
+
reject<ThrowOnError extends boolean = false>(parameters: {
|
|
1353
|
+
requestID: string;
|
|
1522
1354
|
directory?: string;
|
|
1523
1355
|
workspace?: string;
|
|
1524
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1356
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<NetworkRejectResponses, NetworkRejectErrors, ThrowOnError, "fields">;
|
|
1357
|
+
}
|
|
1358
|
+
export declare class Telemetry extends HeyApiClient {
|
|
1525
1359
|
/**
|
|
1526
|
-
*
|
|
1360
|
+
* Capture telemetry event
|
|
1527
1361
|
*
|
|
1528
|
-
*
|
|
1362
|
+
* Forward a telemetry event to PostHog via kilo-telemetry.
|
|
1529
1363
|
*/
|
|
1530
|
-
|
|
1364
|
+
capture<ThrowOnError extends boolean = false>(parameters?: {
|
|
1531
1365
|
directory?: string;
|
|
1532
1366
|
workspace?: string;
|
|
1533
|
-
|
|
1534
|
-
|
|
1367
|
+
event?: string;
|
|
1368
|
+
properties?: {
|
|
1369
|
+
[key: string]: unknown;
|
|
1370
|
+
};
|
|
1371
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TelemetryCaptureResponses, TelemetryCaptureErrors, ThrowOnError, "fields">;
|
|
1535
1372
|
}
|
|
1536
|
-
export declare class
|
|
1373
|
+
export declare class Remote extends HeyApiClient {
|
|
1537
1374
|
/**
|
|
1538
|
-
*
|
|
1375
|
+
* Enable remote connection
|
|
1539
1376
|
*
|
|
1540
|
-
*
|
|
1377
|
+
* Enable WebSocket connection to UserConnectionDO for real-time session relay and commands.
|
|
1541
1378
|
*/
|
|
1542
|
-
|
|
1379
|
+
enable<ThrowOnError extends boolean = false>(parameters?: {
|
|
1543
1380
|
directory?: string;
|
|
1544
1381
|
workspace?: string;
|
|
1545
|
-
|
|
1546
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiAppendPromptResponses, TuiAppendPromptErrors, ThrowOnError, "fields">;
|
|
1382
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<RemoteEnableResponses, unknown, ThrowOnError, "fields">;
|
|
1547
1383
|
/**
|
|
1548
|
-
*
|
|
1384
|
+
* Disable remote connection
|
|
1549
1385
|
*
|
|
1550
|
-
*
|
|
1386
|
+
* Close the remote WebSocket connection to UserConnectionDO.
|
|
1551
1387
|
*/
|
|
1552
|
-
|
|
1388
|
+
disable<ThrowOnError extends boolean = false>(parameters?: {
|
|
1553
1389
|
directory?: string;
|
|
1554
1390
|
workspace?: string;
|
|
1555
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1391
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<RemoteDisableResponses, unknown, ThrowOnError, "fields">;
|
|
1556
1392
|
/**
|
|
1557
|
-
*
|
|
1393
|
+
* Get remote connection status
|
|
1558
1394
|
*
|
|
1559
|
-
*
|
|
1395
|
+
* Get the current state of the remote WebSocket connection.
|
|
1560
1396
|
*/
|
|
1561
|
-
|
|
1397
|
+
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
1562
1398
|
directory?: string;
|
|
1563
1399
|
workspace?: string;
|
|
1564
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1400
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<RemoteStatusResponses, unknown, ThrowOnError, "fields">;
|
|
1401
|
+
}
|
|
1402
|
+
export declare class CommitMessage extends HeyApiClient {
|
|
1565
1403
|
/**
|
|
1566
|
-
*
|
|
1404
|
+
* Generate commit message
|
|
1567
1405
|
*
|
|
1568
|
-
*
|
|
1406
|
+
* Generate a commit message using AI based on the current git diff.
|
|
1569
1407
|
*/
|
|
1570
|
-
|
|
1408
|
+
generate<ThrowOnError extends boolean = false>(parameters?: {
|
|
1571
1409
|
directory?: string;
|
|
1572
1410
|
workspace?: string;
|
|
1573
|
-
|
|
1411
|
+
path?: string;
|
|
1412
|
+
selectedFiles?: Array<string>;
|
|
1413
|
+
previousMessage?: string;
|
|
1414
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CommitMessageGenerateResponses, CommitMessageGenerateErrors, ThrowOnError, "fields">;
|
|
1415
|
+
}
|
|
1416
|
+
export declare class EnhancePrompt extends HeyApiClient {
|
|
1574
1417
|
/**
|
|
1575
|
-
*
|
|
1418
|
+
* Enhance prompt
|
|
1576
1419
|
*
|
|
1577
|
-
*
|
|
1420
|
+
* Rewrite a user's draft prompt into a clearer, more specific, and more effective prompt.
|
|
1578
1421
|
*/
|
|
1579
|
-
|
|
1422
|
+
enhance<ThrowOnError extends boolean = false>(parameters?: {
|
|
1580
1423
|
directory?: string;
|
|
1581
1424
|
workspace?: string;
|
|
1582
|
-
|
|
1425
|
+
text?: string;
|
|
1426
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<EnhancePromptEnhanceResponses, EnhancePromptEnhanceErrors, ThrowOnError, "fields">;
|
|
1427
|
+
}
|
|
1428
|
+
export declare class SessionImport extends HeyApiClient {
|
|
1583
1429
|
/**
|
|
1584
|
-
*
|
|
1430
|
+
* Insert project for session import
|
|
1585
1431
|
*
|
|
1586
|
-
*
|
|
1432
|
+
* Insert or update a project row used by legacy session import.
|
|
1587
1433
|
*/
|
|
1588
|
-
|
|
1434
|
+
project<ThrowOnError extends boolean = false>(parameters?: {
|
|
1589
1435
|
directory?: string;
|
|
1590
1436
|
workspace?: string;
|
|
1591
|
-
|
|
1437
|
+
id?: string;
|
|
1438
|
+
worktree?: string;
|
|
1439
|
+
vcs?: string;
|
|
1440
|
+
name?: string;
|
|
1441
|
+
iconUrl?: string;
|
|
1442
|
+
iconColor?: string;
|
|
1443
|
+
timeCreated?: number;
|
|
1444
|
+
timeUpdated?: number;
|
|
1445
|
+
timeInitialized?: number;
|
|
1446
|
+
sandboxes?: Array<string>;
|
|
1447
|
+
commands?: {
|
|
1448
|
+
start?: string;
|
|
1449
|
+
};
|
|
1450
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeSessionImportProjectResponses, KilocodeSessionImportProjectErrors, ThrowOnError, "fields">;
|
|
1592
1451
|
/**
|
|
1593
|
-
*
|
|
1452
|
+
* Insert session for session import
|
|
1594
1453
|
*
|
|
1595
|
-
*
|
|
1454
|
+
* Insert or update a session row used by legacy session import.
|
|
1596
1455
|
*/
|
|
1597
|
-
|
|
1598
|
-
|
|
1456
|
+
session<ThrowOnError extends boolean = false>(parameters?: {
|
|
1457
|
+
query_directory?: string;
|
|
1599
1458
|
workspace?: string;
|
|
1600
|
-
|
|
1459
|
+
id?: string;
|
|
1460
|
+
projectID?: string;
|
|
1461
|
+
force?: boolean;
|
|
1462
|
+
workspaceID?: string;
|
|
1463
|
+
parentID?: string;
|
|
1464
|
+
slug?: string;
|
|
1465
|
+
body_directory?: string;
|
|
1466
|
+
title?: string;
|
|
1467
|
+
version?: string;
|
|
1468
|
+
shareURL?: string;
|
|
1469
|
+
summary?: {
|
|
1470
|
+
additions: number;
|
|
1471
|
+
deletions: number;
|
|
1472
|
+
files: number;
|
|
1473
|
+
diffs?: Array<{
|
|
1474
|
+
[key: string]: unknown;
|
|
1475
|
+
}>;
|
|
1476
|
+
};
|
|
1477
|
+
revert?: {
|
|
1478
|
+
messageID: string;
|
|
1479
|
+
partID?: string;
|
|
1480
|
+
snapshot?: string;
|
|
1481
|
+
diff?: string;
|
|
1482
|
+
};
|
|
1483
|
+
permission?: {
|
|
1484
|
+
[key: string]: unknown;
|
|
1485
|
+
};
|
|
1486
|
+
timeCreated?: number;
|
|
1487
|
+
timeUpdated?: number;
|
|
1488
|
+
timeCompacting?: number;
|
|
1489
|
+
timeArchived?: number;
|
|
1490
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeSessionImportSessionResponses, KilocodeSessionImportSessionErrors, ThrowOnError, "fields">;
|
|
1601
1491
|
/**
|
|
1602
|
-
*
|
|
1492
|
+
* Insert message for session import
|
|
1603
1493
|
*
|
|
1604
|
-
*
|
|
1494
|
+
* Insert or update a message row used by legacy session import.
|
|
1605
1495
|
*/
|
|
1606
|
-
|
|
1496
|
+
message<ThrowOnError extends boolean = false>(parameters?: {
|
|
1607
1497
|
directory?: string;
|
|
1608
1498
|
workspace?: string;
|
|
1609
|
-
|
|
1610
|
-
|
|
1499
|
+
id?: string;
|
|
1500
|
+
sessionID?: string;
|
|
1501
|
+
timeCreated?: number;
|
|
1502
|
+
data?: {
|
|
1503
|
+
role: "user";
|
|
1504
|
+
time: {
|
|
1505
|
+
created: number;
|
|
1506
|
+
};
|
|
1507
|
+
agent: string;
|
|
1508
|
+
model: {
|
|
1509
|
+
providerID: string;
|
|
1510
|
+
modelID: string;
|
|
1511
|
+
};
|
|
1512
|
+
tools?: {
|
|
1513
|
+
[key: string]: boolean;
|
|
1514
|
+
};
|
|
1515
|
+
} | {
|
|
1516
|
+
role: "assistant";
|
|
1517
|
+
time: {
|
|
1518
|
+
created: number;
|
|
1519
|
+
completed?: number;
|
|
1520
|
+
};
|
|
1521
|
+
parentID: string;
|
|
1522
|
+
modelID: string;
|
|
1523
|
+
providerID: string;
|
|
1524
|
+
mode: string;
|
|
1525
|
+
agent: string;
|
|
1526
|
+
path: {
|
|
1527
|
+
cwd: string;
|
|
1528
|
+
root: string;
|
|
1529
|
+
};
|
|
1530
|
+
summary?: boolean;
|
|
1531
|
+
cost: number;
|
|
1532
|
+
tokens: {
|
|
1533
|
+
total?: number;
|
|
1534
|
+
input: number;
|
|
1535
|
+
output: number;
|
|
1536
|
+
reasoning: number;
|
|
1537
|
+
cache: {
|
|
1538
|
+
read: number;
|
|
1539
|
+
write: number;
|
|
1540
|
+
};
|
|
1541
|
+
};
|
|
1542
|
+
structured?: unknown;
|
|
1543
|
+
variant?: string;
|
|
1544
|
+
finish?: string;
|
|
1545
|
+
};
|
|
1546
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeSessionImportMessageResponses, KilocodeSessionImportMessageErrors, ThrowOnError, "fields">;
|
|
1611
1547
|
/**
|
|
1612
|
-
*
|
|
1548
|
+
* Insert part for session import
|
|
1613
1549
|
*
|
|
1614
|
-
*
|
|
1550
|
+
* Insert or update a part row used by legacy session import.
|
|
1615
1551
|
*/
|
|
1616
|
-
|
|
1552
|
+
part<ThrowOnError extends boolean = false>(parameters?: {
|
|
1617
1553
|
directory?: string;
|
|
1618
1554
|
workspace?: string;
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1555
|
+
id?: string;
|
|
1556
|
+
messageID?: string;
|
|
1557
|
+
sessionID?: string;
|
|
1558
|
+
timeCreated?: number;
|
|
1559
|
+
data?: {
|
|
1560
|
+
type: "text";
|
|
1561
|
+
text: string;
|
|
1562
|
+
synthetic?: boolean;
|
|
1563
|
+
ignored?: boolean;
|
|
1564
|
+
time?: {
|
|
1565
|
+
start: number;
|
|
1566
|
+
end?: number;
|
|
1567
|
+
};
|
|
1568
|
+
metadata?: {
|
|
1569
|
+
[key: string]: unknown;
|
|
1570
|
+
};
|
|
1571
|
+
} | {
|
|
1572
|
+
type: "reasoning";
|
|
1573
|
+
text: string;
|
|
1574
|
+
metadata?: {
|
|
1575
|
+
[key: string]: unknown;
|
|
1576
|
+
};
|
|
1577
|
+
time: {
|
|
1578
|
+
start: number;
|
|
1579
|
+
end?: number;
|
|
1580
|
+
};
|
|
1581
|
+
} | {
|
|
1582
|
+
type: "tool";
|
|
1583
|
+
callID: string;
|
|
1584
|
+
tool: string;
|
|
1585
|
+
state: {
|
|
1586
|
+
status: "pending";
|
|
1587
|
+
input: {
|
|
1588
|
+
[key: string]: unknown;
|
|
1589
|
+
};
|
|
1590
|
+
raw: string;
|
|
1591
|
+
} | {
|
|
1592
|
+
status: "running";
|
|
1593
|
+
input: {
|
|
1594
|
+
[key: string]: unknown;
|
|
1595
|
+
};
|
|
1596
|
+
title?: string;
|
|
1597
|
+
metadata?: {
|
|
1598
|
+
[key: string]: unknown;
|
|
1599
|
+
};
|
|
1600
|
+
time: {
|
|
1601
|
+
start: number;
|
|
1602
|
+
};
|
|
1603
|
+
} | {
|
|
1604
|
+
status: "completed";
|
|
1605
|
+
input: {
|
|
1606
|
+
[key: string]: unknown;
|
|
1607
|
+
};
|
|
1608
|
+
output: string;
|
|
1609
|
+
title: string;
|
|
1610
|
+
metadata: {
|
|
1611
|
+
[key: string]: unknown;
|
|
1612
|
+
};
|
|
1613
|
+
time: {
|
|
1614
|
+
start: number;
|
|
1615
|
+
end: number;
|
|
1616
|
+
compacted?: number;
|
|
1617
|
+
};
|
|
1618
|
+
} | {
|
|
1619
|
+
status: "error";
|
|
1620
|
+
input: {
|
|
1621
|
+
[key: string]: unknown;
|
|
1622
|
+
};
|
|
1623
|
+
error: string;
|
|
1624
|
+
metadata?: {
|
|
1625
|
+
[key: string]: unknown;
|
|
1626
|
+
};
|
|
1627
|
+
time: {
|
|
1628
|
+
start: number;
|
|
1629
|
+
end: number;
|
|
1630
|
+
};
|
|
1631
|
+
};
|
|
1632
|
+
metadata?: {
|
|
1633
|
+
[key: string]: unknown;
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeSessionImportPartResponses, KilocodeSessionImportPartErrors, ThrowOnError, "fields">;
|
|
1637
|
+
}
|
|
1638
|
+
export declare class Kilocode extends HeyApiClient {
|
|
1624
1639
|
/**
|
|
1625
|
-
*
|
|
1640
|
+
* Remove a skill
|
|
1626
1641
|
*
|
|
1627
|
-
*
|
|
1642
|
+
* Remove a skill by deleting its directory from disk and clearing it from cache.
|
|
1628
1643
|
*/
|
|
1629
|
-
|
|
1644
|
+
removeSkill<ThrowOnError extends boolean = false>(parameters?: {
|
|
1630
1645
|
directory?: string;
|
|
1631
1646
|
workspace?: string;
|
|
1632
|
-
|
|
1633
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1647
|
+
location?: string;
|
|
1648
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeRemoveSkillResponses, KilocodeRemoveSkillErrors, ThrowOnError, "fields">;
|
|
1634
1649
|
/**
|
|
1635
|
-
*
|
|
1650
|
+
* Remove a custom agent
|
|
1636
1651
|
*
|
|
1637
|
-
*
|
|
1652
|
+
* Remove a custom (non-native) agent by deleting its markdown file from disk and refreshing state.
|
|
1638
1653
|
*/
|
|
1639
|
-
|
|
1654
|
+
removeAgent<ThrowOnError extends boolean = false>(parameters?: {
|
|
1640
1655
|
directory?: string;
|
|
1641
1656
|
workspace?: string;
|
|
1642
|
-
|
|
1643
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1644
|
-
private
|
|
1645
|
-
get
|
|
1657
|
+
name?: string;
|
|
1658
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KilocodeRemoveAgentResponses, KilocodeRemoveAgentErrors, ThrowOnError, "fields">;
|
|
1659
|
+
private _sessionImport?;
|
|
1660
|
+
get sessionImport(): SessionImport;
|
|
1646
1661
|
}
|
|
1647
|
-
export declare class
|
|
1662
|
+
export declare class Organization extends HeyApiClient {
|
|
1648
1663
|
/**
|
|
1649
|
-
*
|
|
1664
|
+
* Update Kilo Gateway organization
|
|
1650
1665
|
*
|
|
1651
|
-
*
|
|
1666
|
+
* Switch to a different Kilo Gateway organization
|
|
1652
1667
|
*/
|
|
1653
|
-
|
|
1668
|
+
set<ThrowOnError extends boolean = false>(parameters?: {
|
|
1654
1669
|
directory?: string;
|
|
1655
1670
|
workspace?: string;
|
|
1656
|
-
|
|
1671
|
+
organizationId?: string | null;
|
|
1672
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KiloOrganizationSetResponses, KiloOrganizationSetErrors, ThrowOnError, "fields">;
|
|
1657
1673
|
}
|
|
1658
|
-
export declare class
|
|
1674
|
+
export declare class Session3 extends HeyApiClient {
|
|
1659
1675
|
/**
|
|
1660
|
-
* Get
|
|
1676
|
+
* Get cloud session
|
|
1661
1677
|
*
|
|
1662
|
-
*
|
|
1678
|
+
* Fetch full session data from the Kilo cloud for preview
|
|
1663
1679
|
*/
|
|
1664
|
-
get<ThrowOnError extends boolean = false>(parameters
|
|
1680
|
+
get<ThrowOnError extends boolean = false>(parameters: {
|
|
1681
|
+
id: string;
|
|
1665
1682
|
directory?: string;
|
|
1666
1683
|
workspace?: string;
|
|
1667
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1668
|
-
}
|
|
1669
|
-
export declare class Vcs extends HeyApiClient {
|
|
1684
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KiloCloudSessionGetResponses, KiloCloudSessionGetErrors, ThrowOnError, "fields">;
|
|
1670
1685
|
/**
|
|
1671
|
-
*
|
|
1686
|
+
* Import session from cloud
|
|
1672
1687
|
*
|
|
1673
|
-
*
|
|
1688
|
+
* Download a cloud-synced session and write it to local storage with fresh IDs.
|
|
1674
1689
|
*/
|
|
1675
|
-
|
|
1690
|
+
import<ThrowOnError extends boolean = false>(parameters?: {
|
|
1676
1691
|
directory?: string;
|
|
1677
1692
|
workspace?: string;
|
|
1678
|
-
|
|
1693
|
+
sessionId?: string;
|
|
1694
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KiloCloudSessionImportResponses, KiloCloudSessionImportErrors, ThrowOnError, "fields">;
|
|
1679
1695
|
}
|
|
1680
|
-
export declare class
|
|
1696
|
+
export declare class Cloud extends HeyApiClient {
|
|
1697
|
+
private _session?;
|
|
1698
|
+
get session(): Session3;
|
|
1699
|
+
}
|
|
1700
|
+
export declare class Claw extends HeyApiClient {
|
|
1681
1701
|
/**
|
|
1682
|
-
*
|
|
1702
|
+
* Get KiloClaw instance status
|
|
1683
1703
|
*
|
|
1684
|
-
*
|
|
1704
|
+
* Fetch the user's KiloClaw instance status via the KiloClaw worker
|
|
1685
1705
|
*/
|
|
1686
|
-
|
|
1706
|
+
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
1687
1707
|
directory?: string;
|
|
1688
1708
|
workspace?: string;
|
|
1689
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1690
|
-
}
|
|
1691
|
-
export declare class App extends HeyApiClient {
|
|
1709
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KiloClawStatusResponses, unknown, ThrowOnError, "fields">;
|
|
1692
1710
|
/**
|
|
1693
|
-
*
|
|
1711
|
+
* Get KiloClaw chat credentials
|
|
1694
1712
|
*
|
|
1695
|
-
*
|
|
1713
|
+
* Fetch Stream Chat credentials for the user's KiloClaw instance
|
|
1696
1714
|
*/
|
|
1697
|
-
|
|
1715
|
+
chatCredentials<ThrowOnError extends boolean = false>(parameters?: {
|
|
1698
1716
|
directory?: string;
|
|
1699
1717
|
workspace?: string;
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
extra?: {
|
|
1704
|
-
[key: string]: unknown;
|
|
1705
|
-
};
|
|
1706
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppLogResponses, AppLogErrors, ThrowOnError, "fields">;
|
|
1718
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KiloClawChatCredentialsResponses, unknown, ThrowOnError, "fields">;
|
|
1719
|
+
}
|
|
1720
|
+
export declare class Kilo extends HeyApiClient {
|
|
1707
1721
|
/**
|
|
1708
|
-
*
|
|
1722
|
+
* Get Kilo Gateway profile
|
|
1709
1723
|
*
|
|
1710
|
-
*
|
|
1724
|
+
* Fetch user profile and organizations from Kilo Gateway
|
|
1711
1725
|
*/
|
|
1712
|
-
|
|
1726
|
+
profile<ThrowOnError extends boolean = false>(parameters?: {
|
|
1713
1727
|
directory?: string;
|
|
1714
1728
|
workspace?: string;
|
|
1715
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1729
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KiloProfileResponses, KiloProfileErrors, ThrowOnError, "fields">;
|
|
1716
1730
|
/**
|
|
1717
|
-
*
|
|
1731
|
+
* Get organization custom modes
|
|
1718
1732
|
*
|
|
1719
|
-
*
|
|
1733
|
+
* Fetch custom modes defined for the current organization
|
|
1720
1734
|
*/
|
|
1721
|
-
|
|
1735
|
+
modes<ThrowOnError extends boolean = false>(parameters?: {
|
|
1722
1736
|
directory?: string;
|
|
1723
1737
|
workspace?: string;
|
|
1724
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1725
|
-
}
|
|
1726
|
-
export declare class Lsp extends HeyApiClient {
|
|
1738
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KiloModesResponses, unknown, ThrowOnError, "fields">;
|
|
1727
1739
|
/**
|
|
1728
|
-
*
|
|
1740
|
+
* FIM completion
|
|
1729
1741
|
*
|
|
1730
|
-
*
|
|
1742
|
+
* Proxy a Fill-in-the-Middle completion request to the Kilo Gateway
|
|
1731
1743
|
*/
|
|
1732
|
-
|
|
1744
|
+
fim<ThrowOnError extends boolean = false>(parameters?: {
|
|
1733
1745
|
directory?: string;
|
|
1734
1746
|
workspace?: string;
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1747
|
+
prefix?: string;
|
|
1748
|
+
suffix?: string;
|
|
1749
|
+
model?: string;
|
|
1750
|
+
maxTokens?: number;
|
|
1751
|
+
temperature?: number;
|
|
1752
|
+
}, options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<KiloFimResponses, KiloFimErrors>>;
|
|
1738
1753
|
/**
|
|
1739
|
-
* Get
|
|
1754
|
+
* Get Kilo notifications
|
|
1740
1755
|
*
|
|
1741
|
-
*
|
|
1756
|
+
* Fetch notifications from Kilo Gateway for CLI display
|
|
1742
1757
|
*/
|
|
1743
|
-
|
|
1758
|
+
notifications<ThrowOnError extends boolean = false>(parameters?: {
|
|
1744
1759
|
directory?: string;
|
|
1745
1760
|
workspace?: string;
|
|
1746
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1747
|
-
}
|
|
1748
|
-
export declare class Event extends HeyApiClient {
|
|
1761
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KiloNotificationsResponses, KiloNotificationsErrors, ThrowOnError, "fields">;
|
|
1749
1762
|
/**
|
|
1750
|
-
*
|
|
1763
|
+
* Get cloud sessions
|
|
1751
1764
|
*
|
|
1752
|
-
*
|
|
1765
|
+
* Fetch cloud CLI sessions from Kilo API
|
|
1753
1766
|
*/
|
|
1754
|
-
|
|
1767
|
+
cloudSessions<ThrowOnError extends boolean = false>(parameters?: {
|
|
1755
1768
|
directory?: string;
|
|
1756
1769
|
workspace?: string;
|
|
1757
|
-
|
|
1770
|
+
cursor?: string;
|
|
1771
|
+
limit?: number;
|
|
1772
|
+
gitUrl?: string;
|
|
1773
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<KiloCloudSessionsResponses, KiloCloudSessionsErrors, ThrowOnError, "fields">;
|
|
1774
|
+
private _organization?;
|
|
1775
|
+
get organization(): Organization;
|
|
1776
|
+
private _cloud?;
|
|
1777
|
+
get cloud(): Cloud;
|
|
1778
|
+
private _claw?;
|
|
1779
|
+
get claw(): Claw;
|
|
1758
1780
|
}
|
|
1759
1781
|
export declare class KiloClient extends HeyApiClient {
|
|
1760
1782
|
static readonly __registry: HeyApiRegistry<KiloClient>;
|
|
@@ -1766,6 +1788,8 @@ export declare class KiloClient extends HeyApiClient {
|
|
|
1766
1788
|
get global(): Global;
|
|
1767
1789
|
private _auth?;
|
|
1768
1790
|
get auth(): Auth;
|
|
1791
|
+
private _app?;
|
|
1792
|
+
get app(): App;
|
|
1769
1793
|
private _project?;
|
|
1770
1794
|
get project(): Project;
|
|
1771
1795
|
private _pty?;
|
|
@@ -1786,26 +1810,14 @@ export declare class KiloClient extends HeyApiClient {
|
|
|
1786
1810
|
get permission(): Permission;
|
|
1787
1811
|
private _question?;
|
|
1788
1812
|
get question(): Question;
|
|
1789
|
-
private _network?;
|
|
1790
|
-
get network(): Network;
|
|
1791
1813
|
private _provider?;
|
|
1792
1814
|
get provider(): Provider;
|
|
1793
|
-
private _telemetry?;
|
|
1794
|
-
get telemetry(): Telemetry;
|
|
1795
|
-
private _remote?;
|
|
1796
|
-
get remote(): Remote;
|
|
1797
|
-
private _commitMessage?;
|
|
1798
|
-
get commitMessage(): CommitMessage;
|
|
1799
|
-
private _enhancePrompt?;
|
|
1800
|
-
get enhancePrompt(): EnhancePrompt;
|
|
1801
|
-
private _kilocode?;
|
|
1802
|
-
get kilocode(): Kilocode;
|
|
1803
|
-
private _kilo?;
|
|
1804
|
-
get kilo(): Kilo;
|
|
1805
1815
|
private _find?;
|
|
1806
1816
|
get find(): Find;
|
|
1807
1817
|
private _file?;
|
|
1808
1818
|
get file(): File;
|
|
1819
|
+
private _event?;
|
|
1820
|
+
get event(): Event;
|
|
1809
1821
|
private _mcp?;
|
|
1810
1822
|
get mcp(): Mcp;
|
|
1811
1823
|
private _tui?;
|
|
@@ -1818,13 +1830,23 @@ export declare class KiloClient extends HeyApiClient {
|
|
|
1818
1830
|
get vcs(): Vcs;
|
|
1819
1831
|
private _command?;
|
|
1820
1832
|
get command(): Command;
|
|
1821
|
-
private _app?;
|
|
1822
|
-
get app(): App;
|
|
1823
1833
|
private _lsp?;
|
|
1824
1834
|
get lsp(): Lsp;
|
|
1825
1835
|
private _formatter?;
|
|
1826
1836
|
get formatter(): Formatter;
|
|
1827
|
-
private
|
|
1828
|
-
get
|
|
1837
|
+
private _network?;
|
|
1838
|
+
get network(): Network;
|
|
1839
|
+
private _telemetry?;
|
|
1840
|
+
get telemetry(): Telemetry;
|
|
1841
|
+
private _remote?;
|
|
1842
|
+
get remote(): Remote;
|
|
1843
|
+
private _commitMessage?;
|
|
1844
|
+
get commitMessage(): CommitMessage;
|
|
1845
|
+
private _enhancePrompt?;
|
|
1846
|
+
get enhancePrompt(): EnhancePrompt;
|
|
1847
|
+
private _kilocode?;
|
|
1848
|
+
get kilocode(): Kilocode;
|
|
1849
|
+
private _kilo?;
|
|
1850
|
+
get kilo(): Kilo;
|
|
1829
1851
|
}
|
|
1830
1852
|
export {};
|