@kilocode/sdk 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v2/gen/sdk.gen.d.ts +45 -20
- package/dist/v2/gen/sdk.gen.js +83 -36
- package/dist/v2/gen/types.gen.d.ts +136 -78
- 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, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as
|
|
2
|
+
import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config3, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, KiloNotificationsErrors, KiloNotificationsResponses, KiloOrganizationSetErrors, KiloOrganizationSetResponses, KiloProfileErrors, KiloProfileResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, ProjectCurrentResponses, 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, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, 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, SubtaskPartInput, 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, 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,22 @@ declare class HeyApiRegistry<T> {
|
|
|
25
25
|
get(key?: string): T;
|
|
26
26
|
set(value: T, key?: string): void;
|
|
27
27
|
}
|
|
28
|
+
export declare class Config extends HeyApiClient {
|
|
29
|
+
/**
|
|
30
|
+
* Get global configuration
|
|
31
|
+
*
|
|
32
|
+
* Retrieve the current global OpenCode configuration settings and preferences.
|
|
33
|
+
*/
|
|
34
|
+
get<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalConfigGetResponses, unknown, ThrowOnError, "fields">;
|
|
35
|
+
/**
|
|
36
|
+
* Update global configuration
|
|
37
|
+
*
|
|
38
|
+
* Update global OpenCode configuration settings and preferences.
|
|
39
|
+
*/
|
|
40
|
+
update<ThrowOnError extends boolean = false>(parameters?: {
|
|
41
|
+
config?: Config3;
|
|
42
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalConfigUpdateResponses, GlobalConfigUpdateErrors, ThrowOnError, "fields">;
|
|
43
|
+
}
|
|
28
44
|
export declare class Global extends HeyApiClient {
|
|
29
45
|
/**
|
|
30
46
|
* Get health
|
|
@@ -44,6 +60,27 @@ export declare class Global extends HeyApiClient {
|
|
|
44
60
|
* Clean up and dispose all OpenCode instances, releasing all resources.
|
|
45
61
|
*/
|
|
46
62
|
dispose<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalDisposeResponses, unknown, ThrowOnError, "fields">;
|
|
63
|
+
private _config?;
|
|
64
|
+
get config(): Config;
|
|
65
|
+
}
|
|
66
|
+
export declare class Auth extends HeyApiClient {
|
|
67
|
+
/**
|
|
68
|
+
* Remove auth credentials
|
|
69
|
+
*
|
|
70
|
+
* Remove authentication credentials
|
|
71
|
+
*/
|
|
72
|
+
remove<ThrowOnError extends boolean = false>(parameters: {
|
|
73
|
+
providerID: string;
|
|
74
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthRemoveResponses, AuthRemoveErrors, ThrowOnError, "fields">;
|
|
75
|
+
/**
|
|
76
|
+
* Set auth credentials
|
|
77
|
+
*
|
|
78
|
+
* Set authentication credentials
|
|
79
|
+
*/
|
|
80
|
+
set<ThrowOnError extends boolean = false>(parameters: {
|
|
81
|
+
providerID: string;
|
|
82
|
+
auth?: Auth3;
|
|
83
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthSetResponses, AuthSetErrors, ThrowOnError, "fields">;
|
|
47
84
|
}
|
|
48
85
|
export declare class Project extends HeyApiClient {
|
|
49
86
|
/**
|
|
@@ -150,7 +187,7 @@ export declare class Pty extends HeyApiClient {
|
|
|
150
187
|
directory?: string;
|
|
151
188
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyConnectResponses, PtyConnectErrors, ThrowOnError, "fields">;
|
|
152
189
|
}
|
|
153
|
-
export declare class
|
|
190
|
+
export declare class Config2 extends HeyApiClient {
|
|
154
191
|
/**
|
|
155
192
|
* Get configuration
|
|
156
193
|
*
|
|
@@ -166,7 +203,7 @@ export declare class Config extends HeyApiClient {
|
|
|
166
203
|
*/
|
|
167
204
|
update<ThrowOnError extends boolean = false>(parameters?: {
|
|
168
205
|
directory?: string;
|
|
169
|
-
config?:
|
|
206
|
+
config?: Config3;
|
|
170
207
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigUpdateResponses, ConfigUpdateErrors, ThrowOnError, "fields">;
|
|
171
208
|
/**
|
|
172
209
|
* List config providers
|
|
@@ -741,7 +778,7 @@ export declare class File extends HeyApiClient {
|
|
|
741
778
|
directory?: string;
|
|
742
779
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileStatusResponses, unknown, ThrowOnError, "fields">;
|
|
743
780
|
}
|
|
744
|
-
export declare class
|
|
781
|
+
export declare class Auth2 extends HeyApiClient {
|
|
745
782
|
/**
|
|
746
783
|
* Remove MCP OAuth
|
|
747
784
|
*
|
|
@@ -814,7 +851,7 @@ export declare class Mcp extends HeyApiClient {
|
|
|
814
851
|
directory?: string;
|
|
815
852
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpDisconnectResponses, unknown, ThrowOnError, "fields">;
|
|
816
853
|
private _auth?;
|
|
817
|
-
get auth():
|
|
854
|
+
get auth(): Auth2;
|
|
818
855
|
}
|
|
819
856
|
export declare class Control extends HeyApiClient {
|
|
820
857
|
/**
|
|
@@ -1027,18 +1064,6 @@ export declare class Formatter extends HeyApiClient {
|
|
|
1027
1064
|
directory?: string;
|
|
1028
1065
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FormatterStatusResponses, unknown, ThrowOnError, "fields">;
|
|
1029
1066
|
}
|
|
1030
|
-
export declare class Auth2 extends HeyApiClient {
|
|
1031
|
-
/**
|
|
1032
|
-
* Set auth credentials
|
|
1033
|
-
*
|
|
1034
|
-
* Set authentication credentials
|
|
1035
|
-
*/
|
|
1036
|
-
set<ThrowOnError extends boolean = false>(parameters: {
|
|
1037
|
-
providerID: string;
|
|
1038
|
-
directory?: string;
|
|
1039
|
-
auth?: Auth3;
|
|
1040
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthSetResponses, AuthSetErrors, ThrowOnError, "fields">;
|
|
1041
|
-
}
|
|
1042
1067
|
export declare class Event extends HeyApiClient {
|
|
1043
1068
|
/**
|
|
1044
1069
|
* Subscribe to events
|
|
@@ -1057,12 +1082,14 @@ export declare class OpencodeClient extends HeyApiClient {
|
|
|
1057
1082
|
});
|
|
1058
1083
|
private _global?;
|
|
1059
1084
|
get global(): Global;
|
|
1085
|
+
private _auth?;
|
|
1086
|
+
get auth(): Auth;
|
|
1060
1087
|
private _project?;
|
|
1061
1088
|
get project(): Project;
|
|
1062
1089
|
private _pty?;
|
|
1063
1090
|
get pty(): Pty;
|
|
1064
1091
|
private _config?;
|
|
1065
|
-
get config():
|
|
1092
|
+
get config(): Config2;
|
|
1066
1093
|
private _tool?;
|
|
1067
1094
|
get tool(): Tool;
|
|
1068
1095
|
private _worktree?;
|
|
@@ -1103,8 +1130,6 @@ export declare class OpencodeClient extends HeyApiClient {
|
|
|
1103
1130
|
get lsp(): Lsp;
|
|
1104
1131
|
private _formatter?;
|
|
1105
1132
|
get formatter(): Formatter;
|
|
1106
|
-
private _auth?;
|
|
1107
|
-
get auth(): Auth2;
|
|
1108
1133
|
private _event?;
|
|
1109
1134
|
get event(): Event;
|
|
1110
1135
|
}
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -21,6 +21,37 @@ class HeyApiRegistry {
|
|
|
21
21
|
this.instances.set(key ?? this.defaultKey, value);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
export class Config extends HeyApiClient {
|
|
25
|
+
/**
|
|
26
|
+
* Get global configuration
|
|
27
|
+
*
|
|
28
|
+
* Retrieve the current global OpenCode configuration settings and preferences.
|
|
29
|
+
*/
|
|
30
|
+
get(options) {
|
|
31
|
+
return (options?.client ?? this.client).get({
|
|
32
|
+
url: "/global/config",
|
|
33
|
+
...options,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Update global configuration
|
|
38
|
+
*
|
|
39
|
+
* Update global OpenCode configuration settings and preferences.
|
|
40
|
+
*/
|
|
41
|
+
update(parameters, options) {
|
|
42
|
+
const params = buildClientParams([parameters], [{ args: [{ key: "config", map: "body" }] }]);
|
|
43
|
+
return (options?.client ?? this.client).patch({
|
|
44
|
+
url: "/global/config",
|
|
45
|
+
...options,
|
|
46
|
+
...params,
|
|
47
|
+
headers: {
|
|
48
|
+
"Content-Type": "application/json",
|
|
49
|
+
...options?.headers,
|
|
50
|
+
...params.headers,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
24
55
|
export class Global extends HeyApiClient {
|
|
25
56
|
/**
|
|
26
57
|
* Get health
|
|
@@ -55,6 +86,50 @@ export class Global extends HeyApiClient {
|
|
|
55
86
|
...options,
|
|
56
87
|
});
|
|
57
88
|
}
|
|
89
|
+
_config;
|
|
90
|
+
get config() {
|
|
91
|
+
return (this._config ??= new Config({ client: this.client }));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export class Auth extends HeyApiClient {
|
|
95
|
+
/**
|
|
96
|
+
* Remove auth credentials
|
|
97
|
+
*
|
|
98
|
+
* Remove authentication credentials
|
|
99
|
+
*/
|
|
100
|
+
remove(parameters, options) {
|
|
101
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerID" }] }]);
|
|
102
|
+
return (options?.client ?? this.client).delete({
|
|
103
|
+
url: "/auth/{providerID}",
|
|
104
|
+
...options,
|
|
105
|
+
...params,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Set auth credentials
|
|
110
|
+
*
|
|
111
|
+
* Set authentication credentials
|
|
112
|
+
*/
|
|
113
|
+
set(parameters, options) {
|
|
114
|
+
const params = buildClientParams([parameters], [
|
|
115
|
+
{
|
|
116
|
+
args: [
|
|
117
|
+
{ in: "path", key: "providerID" },
|
|
118
|
+
{ key: "auth", map: "body" },
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
]);
|
|
122
|
+
return (options?.client ?? this.client).put({
|
|
123
|
+
url: "/auth/{providerID}",
|
|
124
|
+
...options,
|
|
125
|
+
...params,
|
|
126
|
+
headers: {
|
|
127
|
+
"Content-Type": "application/json",
|
|
128
|
+
...options?.headers,
|
|
129
|
+
...params.headers,
|
|
130
|
+
},
|
|
131
|
+
});
|
|
132
|
+
}
|
|
58
133
|
}
|
|
59
134
|
export class Project extends HeyApiClient {
|
|
60
135
|
/**
|
|
@@ -243,7 +318,7 @@ export class Pty extends HeyApiClient {
|
|
|
243
318
|
});
|
|
244
319
|
}
|
|
245
320
|
}
|
|
246
|
-
export class
|
|
321
|
+
export class Config2 extends HeyApiClient {
|
|
247
322
|
/**
|
|
248
323
|
* Get configuration
|
|
249
324
|
*
|
|
@@ -1439,7 +1514,7 @@ export class File extends HeyApiClient {
|
|
|
1439
1514
|
});
|
|
1440
1515
|
}
|
|
1441
1516
|
}
|
|
1442
|
-
export class
|
|
1517
|
+
export class Auth2 extends HeyApiClient {
|
|
1443
1518
|
/**
|
|
1444
1519
|
* Remove MCP OAuth
|
|
1445
1520
|
*
|
|
@@ -1605,7 +1680,7 @@ export class Mcp extends HeyApiClient {
|
|
|
1605
1680
|
}
|
|
1606
1681
|
_auth;
|
|
1607
1682
|
get auth() {
|
|
1608
|
-
return (this._auth ??= new
|
|
1683
|
+
return (this._auth ??= new Auth2({ client: this.client }));
|
|
1609
1684
|
}
|
|
1610
1685
|
}
|
|
1611
1686
|
export class Control extends HeyApiClient {
|
|
@@ -2006,34 +2081,6 @@ export class Formatter extends HeyApiClient {
|
|
|
2006
2081
|
});
|
|
2007
2082
|
}
|
|
2008
2083
|
}
|
|
2009
|
-
export class Auth2 extends HeyApiClient {
|
|
2010
|
-
/**
|
|
2011
|
-
* Set auth credentials
|
|
2012
|
-
*
|
|
2013
|
-
* Set authentication credentials
|
|
2014
|
-
*/
|
|
2015
|
-
set(parameters, options) {
|
|
2016
|
-
const params = buildClientParams([parameters], [
|
|
2017
|
-
{
|
|
2018
|
-
args: [
|
|
2019
|
-
{ in: "path", key: "providerID" },
|
|
2020
|
-
{ in: "query", key: "directory" },
|
|
2021
|
-
{ key: "auth", map: "body" },
|
|
2022
|
-
],
|
|
2023
|
-
},
|
|
2024
|
-
]);
|
|
2025
|
-
return (options?.client ?? this.client).put({
|
|
2026
|
-
url: "/auth/{providerID}",
|
|
2027
|
-
...options,
|
|
2028
|
-
...params,
|
|
2029
|
-
headers: {
|
|
2030
|
-
"Content-Type": "application/json",
|
|
2031
|
-
...options?.headers,
|
|
2032
|
-
...params.headers,
|
|
2033
|
-
},
|
|
2034
|
-
});
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
2037
2084
|
export class Event extends HeyApiClient {
|
|
2038
2085
|
/**
|
|
2039
2086
|
* Subscribe to events
|
|
@@ -2059,6 +2106,10 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
2059
2106
|
get global() {
|
|
2060
2107
|
return (this._global ??= new Global({ client: this.client }));
|
|
2061
2108
|
}
|
|
2109
|
+
_auth;
|
|
2110
|
+
get auth() {
|
|
2111
|
+
return (this._auth ??= new Auth({ client: this.client }));
|
|
2112
|
+
}
|
|
2062
2113
|
_project;
|
|
2063
2114
|
get project() {
|
|
2064
2115
|
return (this._project ??= new Project({ client: this.client }));
|
|
@@ -2069,7 +2120,7 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
2069
2120
|
}
|
|
2070
2121
|
_config;
|
|
2071
2122
|
get config() {
|
|
2072
|
-
return (this._config ??= new
|
|
2123
|
+
return (this._config ??= new Config2({ client: this.client }));
|
|
2073
2124
|
}
|
|
2074
2125
|
_tool;
|
|
2075
2126
|
get tool() {
|
|
@@ -2151,10 +2202,6 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
2151
2202
|
get formatter() {
|
|
2152
2203
|
return (this._formatter ??= new Formatter({ client: this.client }));
|
|
2153
2204
|
}
|
|
2154
|
-
_auth;
|
|
2155
|
-
get auth() {
|
|
2156
|
-
return (this._auth ??= new Auth2({ client: this.client }));
|
|
2157
|
-
}
|
|
2158
2205
|
_event;
|
|
2159
2206
|
get event() {
|
|
2160
2207
|
return (this._event ??= new Event({ client: this.client }));
|
|
@@ -208,6 +208,20 @@ export type TextPart = {
|
|
|
208
208
|
[key: string]: unknown;
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
|
+
export type SubtaskPart = {
|
|
212
|
+
id: string;
|
|
213
|
+
sessionID: string;
|
|
214
|
+
messageID: string;
|
|
215
|
+
type: "subtask";
|
|
216
|
+
prompt: string;
|
|
217
|
+
description: string;
|
|
218
|
+
agent: string;
|
|
219
|
+
model?: {
|
|
220
|
+
providerID: string;
|
|
221
|
+
modelID: string;
|
|
222
|
+
};
|
|
223
|
+
command?: string;
|
|
224
|
+
};
|
|
211
225
|
export type ReasoningPart = {
|
|
212
226
|
id: string;
|
|
213
227
|
sessionID: string;
|
|
@@ -401,20 +415,7 @@ export type CompactionPart = {
|
|
|
401
415
|
type: "compaction";
|
|
402
416
|
auto: boolean;
|
|
403
417
|
};
|
|
404
|
-
export type Part = TextPart |
|
|
405
|
-
id: string;
|
|
406
|
-
sessionID: string;
|
|
407
|
-
messageID: string;
|
|
408
|
-
type: "subtask";
|
|
409
|
-
prompt: string;
|
|
410
|
-
description: string;
|
|
411
|
-
agent: string;
|
|
412
|
-
model?: {
|
|
413
|
-
providerID: string;
|
|
414
|
-
modelID: string;
|
|
415
|
-
};
|
|
416
|
-
command?: string;
|
|
417
|
-
} | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
|
|
418
|
+
export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
|
|
418
419
|
export type EventMessagePartUpdated = {
|
|
419
420
|
type: "message.part.updated";
|
|
420
421
|
properties: {
|
|
@@ -549,6 +550,13 @@ export type EventSessionCompacted = {
|
|
|
549
550
|
sessionID: string;
|
|
550
551
|
};
|
|
551
552
|
};
|
|
553
|
+
export type EventFileWatcherUpdated = {
|
|
554
|
+
type: "file.watcher.updated";
|
|
555
|
+
properties: {
|
|
556
|
+
file: string;
|
|
557
|
+
event: "add" | "change" | "unlink";
|
|
558
|
+
};
|
|
559
|
+
};
|
|
552
560
|
export type Todo = {
|
|
553
561
|
/**
|
|
554
562
|
* Brief description of the task
|
|
@@ -574,13 +582,6 @@ export type EventTodoUpdated = {
|
|
|
574
582
|
todos: Array<Todo>;
|
|
575
583
|
};
|
|
576
584
|
};
|
|
577
|
-
export type EventFileWatcherUpdated = {
|
|
578
|
-
type: "file.watcher.updated";
|
|
579
|
-
properties: {
|
|
580
|
-
file: string;
|
|
581
|
-
event: "add" | "change" | "unlink";
|
|
582
|
-
};
|
|
583
|
-
};
|
|
584
585
|
export type EventTuiPromptAppend = {
|
|
585
586
|
type: "tui.prompt.append";
|
|
586
587
|
properties: {
|
|
@@ -759,24 +760,11 @@ export type EventWorktreeFailed = {
|
|
|
759
760
|
message: string;
|
|
760
761
|
};
|
|
761
762
|
};
|
|
762
|
-
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted |
|
|
763
|
+
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventFileWatcherUpdated | EventTodoUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
|
|
763
764
|
export type GlobalEvent = {
|
|
764
765
|
directory: string;
|
|
765
766
|
payload: Event;
|
|
766
767
|
};
|
|
767
|
-
export type BadRequestError = {
|
|
768
|
-
data: unknown;
|
|
769
|
-
errors: Array<{
|
|
770
|
-
[key: string]: unknown;
|
|
771
|
-
}>;
|
|
772
|
-
success: false;
|
|
773
|
-
};
|
|
774
|
-
export type NotFoundError = {
|
|
775
|
-
name: "NotFoundError";
|
|
776
|
-
data: {
|
|
777
|
-
message: string;
|
|
778
|
-
};
|
|
779
|
-
};
|
|
780
768
|
/**
|
|
781
769
|
* Custom keybind configurations
|
|
782
770
|
*/
|
|
@@ -1153,6 +1141,10 @@ export type KeybindsConfig = {
|
|
|
1153
1141
|
* Toggle tips on home screen
|
|
1154
1142
|
*/
|
|
1155
1143
|
tips_toggle?: string;
|
|
1144
|
+
/**
|
|
1145
|
+
* Toggle news on home screen
|
|
1146
|
+
*/
|
|
1147
|
+
news_toggle?: string;
|
|
1156
1148
|
};
|
|
1157
1149
|
/**
|
|
1158
1150
|
* Log level
|
|
@@ -1482,7 +1474,7 @@ export type Config = {
|
|
|
1482
1474
|
*/
|
|
1483
1475
|
small_model?: string;
|
|
1484
1476
|
/**
|
|
1485
|
-
* Default agent to use when none is specified. Must be a primary agent. Falls back to '
|
|
1477
|
+
* Default agent to use when none is specified. Must be a primary agent. Falls back to 'code' if not set or if the specified agent is invalid.
|
|
1486
1478
|
*/
|
|
1487
1479
|
default_agent?: string;
|
|
1488
1480
|
/**
|
|
@@ -1618,6 +1610,37 @@ export type Config = {
|
|
|
1618
1610
|
mcp_timeout?: number;
|
|
1619
1611
|
};
|
|
1620
1612
|
};
|
|
1613
|
+
export type BadRequestError = {
|
|
1614
|
+
data: unknown;
|
|
1615
|
+
errors: Array<{
|
|
1616
|
+
[key: string]: unknown;
|
|
1617
|
+
}>;
|
|
1618
|
+
success: false;
|
|
1619
|
+
};
|
|
1620
|
+
export type OAuth = {
|
|
1621
|
+
type: "oauth";
|
|
1622
|
+
refresh: string;
|
|
1623
|
+
access: string;
|
|
1624
|
+
expires: number;
|
|
1625
|
+
accountId?: string;
|
|
1626
|
+
enterpriseUrl?: string;
|
|
1627
|
+
};
|
|
1628
|
+
export type ApiAuth = {
|
|
1629
|
+
type: "api";
|
|
1630
|
+
key: string;
|
|
1631
|
+
};
|
|
1632
|
+
export type WellKnownAuth = {
|
|
1633
|
+
type: "wellknown";
|
|
1634
|
+
key: string;
|
|
1635
|
+
token: string;
|
|
1636
|
+
};
|
|
1637
|
+
export type Auth = OAuth | ApiAuth | WellKnownAuth;
|
|
1638
|
+
export type NotFoundError = {
|
|
1639
|
+
name: "NotFoundError";
|
|
1640
|
+
data: {
|
|
1641
|
+
message: string;
|
|
1642
|
+
};
|
|
1643
|
+
};
|
|
1621
1644
|
export type Model = {
|
|
1622
1645
|
id: string;
|
|
1623
1646
|
providerID: string;
|
|
@@ -1895,24 +1918,6 @@ export type FormatterStatus = {
|
|
|
1895
1918
|
extensions: Array<string>;
|
|
1896
1919
|
enabled: boolean;
|
|
1897
1920
|
};
|
|
1898
|
-
export type OAuth = {
|
|
1899
|
-
type: "oauth";
|
|
1900
|
-
refresh: string;
|
|
1901
|
-
access: string;
|
|
1902
|
-
expires: number;
|
|
1903
|
-
accountId?: string;
|
|
1904
|
-
enterpriseUrl?: string;
|
|
1905
|
-
};
|
|
1906
|
-
export type ApiAuth = {
|
|
1907
|
-
type: "api";
|
|
1908
|
-
key: string;
|
|
1909
|
-
};
|
|
1910
|
-
export type WellKnownAuth = {
|
|
1911
|
-
type: "wellknown";
|
|
1912
|
-
key: string;
|
|
1913
|
-
token: string;
|
|
1914
|
-
};
|
|
1915
|
-
export type Auth = OAuth | ApiAuth | WellKnownAuth;
|
|
1916
1921
|
export type GlobalHealthData = {
|
|
1917
1922
|
body?: never;
|
|
1918
1923
|
path?: never;
|
|
@@ -1942,6 +1947,39 @@ export type GlobalEventResponses = {
|
|
|
1942
1947
|
200: GlobalEvent;
|
|
1943
1948
|
};
|
|
1944
1949
|
export type GlobalEventResponse = GlobalEventResponses[keyof GlobalEventResponses];
|
|
1950
|
+
export type GlobalConfigGetData = {
|
|
1951
|
+
body?: never;
|
|
1952
|
+
path?: never;
|
|
1953
|
+
query?: never;
|
|
1954
|
+
url: "/global/config";
|
|
1955
|
+
};
|
|
1956
|
+
export type GlobalConfigGetResponses = {
|
|
1957
|
+
/**
|
|
1958
|
+
* Get global config info
|
|
1959
|
+
*/
|
|
1960
|
+
200: Config;
|
|
1961
|
+
};
|
|
1962
|
+
export type GlobalConfigGetResponse = GlobalConfigGetResponses[keyof GlobalConfigGetResponses];
|
|
1963
|
+
export type GlobalConfigUpdateData = {
|
|
1964
|
+
body?: Config;
|
|
1965
|
+
path?: never;
|
|
1966
|
+
query?: never;
|
|
1967
|
+
url: "/global/config";
|
|
1968
|
+
};
|
|
1969
|
+
export type GlobalConfigUpdateErrors = {
|
|
1970
|
+
/**
|
|
1971
|
+
* Bad request
|
|
1972
|
+
*/
|
|
1973
|
+
400: BadRequestError;
|
|
1974
|
+
};
|
|
1975
|
+
export type GlobalConfigUpdateError = GlobalConfigUpdateErrors[keyof GlobalConfigUpdateErrors];
|
|
1976
|
+
export type GlobalConfigUpdateResponses = {
|
|
1977
|
+
/**
|
|
1978
|
+
* Successfully updated global config
|
|
1979
|
+
*/
|
|
1980
|
+
200: Config;
|
|
1981
|
+
};
|
|
1982
|
+
export type GlobalConfigUpdateResponse = GlobalConfigUpdateResponses[keyof GlobalConfigUpdateResponses];
|
|
1945
1983
|
export type GlobalDisposeData = {
|
|
1946
1984
|
body?: never;
|
|
1947
1985
|
path?: never;
|
|
@@ -1955,6 +1993,50 @@ export type GlobalDisposeResponses = {
|
|
|
1955
1993
|
200: boolean;
|
|
1956
1994
|
};
|
|
1957
1995
|
export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses];
|
|
1996
|
+
export type AuthRemoveData = {
|
|
1997
|
+
body?: never;
|
|
1998
|
+
path: {
|
|
1999
|
+
providerID: string;
|
|
2000
|
+
};
|
|
2001
|
+
query?: never;
|
|
2002
|
+
url: "/auth/{providerID}";
|
|
2003
|
+
};
|
|
2004
|
+
export type AuthRemoveErrors = {
|
|
2005
|
+
/**
|
|
2006
|
+
* Bad request
|
|
2007
|
+
*/
|
|
2008
|
+
400: BadRequestError;
|
|
2009
|
+
};
|
|
2010
|
+
export type AuthRemoveError = AuthRemoveErrors[keyof AuthRemoveErrors];
|
|
2011
|
+
export type AuthRemoveResponses = {
|
|
2012
|
+
/**
|
|
2013
|
+
* Successfully removed authentication credentials
|
|
2014
|
+
*/
|
|
2015
|
+
200: boolean;
|
|
2016
|
+
};
|
|
2017
|
+
export type AuthRemoveResponse = AuthRemoveResponses[keyof AuthRemoveResponses];
|
|
2018
|
+
export type AuthSetData = {
|
|
2019
|
+
body?: Auth;
|
|
2020
|
+
path: {
|
|
2021
|
+
providerID: string;
|
|
2022
|
+
};
|
|
2023
|
+
query?: never;
|
|
2024
|
+
url: "/auth/{providerID}";
|
|
2025
|
+
};
|
|
2026
|
+
export type AuthSetErrors = {
|
|
2027
|
+
/**
|
|
2028
|
+
* Bad request
|
|
2029
|
+
*/
|
|
2030
|
+
400: BadRequestError;
|
|
2031
|
+
};
|
|
2032
|
+
export type AuthSetError = AuthSetErrors[keyof AuthSetErrors];
|
|
2033
|
+
export type AuthSetResponses = {
|
|
2034
|
+
/**
|
|
2035
|
+
* Successfully set authentication credentials
|
|
2036
|
+
*/
|
|
2037
|
+
200: boolean;
|
|
2038
|
+
};
|
|
2039
|
+
export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses];
|
|
1958
2040
|
export type ProjectListData = {
|
|
1959
2041
|
body?: never;
|
|
1960
2042
|
path?: never;
|
|
@@ -4325,30 +4407,6 @@ export type FormatterStatusResponses = {
|
|
|
4325
4407
|
200: Array<FormatterStatus>;
|
|
4326
4408
|
};
|
|
4327
4409
|
export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses];
|
|
4328
|
-
export type AuthSetData = {
|
|
4329
|
-
body?: Auth;
|
|
4330
|
-
path: {
|
|
4331
|
-
providerID: string;
|
|
4332
|
-
};
|
|
4333
|
-
query?: {
|
|
4334
|
-
directory?: string;
|
|
4335
|
-
};
|
|
4336
|
-
url: "/auth/{providerID}";
|
|
4337
|
-
};
|
|
4338
|
-
export type AuthSetErrors = {
|
|
4339
|
-
/**
|
|
4340
|
-
* Bad request
|
|
4341
|
-
*/
|
|
4342
|
-
400: BadRequestError;
|
|
4343
|
-
};
|
|
4344
|
-
export type AuthSetError = AuthSetErrors[keyof AuthSetErrors];
|
|
4345
|
-
export type AuthSetResponses = {
|
|
4346
|
-
/**
|
|
4347
|
-
* Successfully set authentication credentials
|
|
4348
|
-
*/
|
|
4349
|
-
200: boolean;
|
|
4350
|
-
};
|
|
4351
|
-
export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses];
|
|
4352
4410
|
export type EventSubscribeData = {
|
|
4353
4411
|
body?: never;
|
|
4354
4412
|
path?: never;
|