shuvcode 2.0.0-alpha-9 → 2.0.0-alpha-10
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/client/api.d.ts +1 -0
- package/client/generated/client.d.ts +14 -1
- package/client/generated/client.js +67 -7
- package/client/generated/types.d.ts +2079 -798
- package/client/generated/types.js +2 -2
- package/client/index.d.ts +1 -1
- package/client/index.js +3 -3
- package/client/service.d.ts +8 -1
- package/client/service.js +65 -21
- package/package.json +13 -13
package/client/api.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type Client = ReturnType<typeof import("./generated/client.js").make>;
|
|
2
2
|
export type AgentApi = Client["agent"];
|
|
3
3
|
export type CommandApi = Client["command"];
|
|
4
|
+
export type ConfigApi = Client["config"];
|
|
4
5
|
export type EventApi = Client["event"];
|
|
5
6
|
export type IntegrationApi = Client["integration"];
|
|
6
7
|
export type ModelApi = Client["model"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionPendingListInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, AuthStatusInput, AuthStatusOutput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectDirectoriesInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionRequestListInput, QuestionRequestListOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsGetInput, VcsGetOutput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput } from "./types";
|
|
1
|
+
import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionPendingListInput, SessionPendingCancelInput, SessionPendingSteerInput, SessionPendingQueueInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, AuthStatusInput, AuthStatusOutput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectDirectoriesInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionRequestListInput, QuestionRequestListOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsGetInput, VcsGetOutput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput } from "./types";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -29,6 +29,8 @@ export declare function make(options: ClientOptions): {
|
|
|
29
29
|
session: {
|
|
30
30
|
list: (input?: SessionListInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionsResponse>;
|
|
31
31
|
create: (input?: SessionCreateInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionInfo>;
|
|
32
|
+
import: (input: SessionImportInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionInfo>;
|
|
33
|
+
export: (input: SessionExportInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionTransferData>;
|
|
32
34
|
active: (requestOptions?: RequestOptions) => Promise<{
|
|
33
35
|
[x: string]: import("./types").SessionActive;
|
|
34
36
|
}>;
|
|
@@ -54,6 +56,9 @@ export declare function make(options: ClientOptions): {
|
|
|
54
56
|
context: (input: SessionContextInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionMessageInfo[]>;
|
|
55
57
|
pending: {
|
|
56
58
|
list: (input: SessionPendingListInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionPendingInfo[]>;
|
|
59
|
+
cancel: (input: SessionPendingCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
60
|
+
steer: (input: SessionPendingSteerInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
61
|
+
queue: (input: SessionPendingQueueInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
57
62
|
};
|
|
58
63
|
instructions: {
|
|
59
64
|
entry: {
|
|
@@ -219,8 +224,16 @@ export declare function make(options: ClientOptions): {
|
|
|
219
224
|
evict: (input?: DebugLocationEvictInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
220
225
|
};
|
|
221
226
|
};
|
|
227
|
+
migration: {
|
|
228
|
+
v1: {
|
|
229
|
+
status: (requestOptions?: RequestOptions) => Promise<MigrationV1StatusOutput>;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
222
232
|
websearch: {
|
|
223
233
|
providers: (input?: WebsearchProvidersInput, requestOptions?: RequestOptions) => Promise<WebsearchProvidersOutput>;
|
|
224
234
|
query: (input: WebsearchQueryInput, requestOptions?: RequestOptions) => Promise<WebsearchQueryOutput>;
|
|
225
235
|
};
|
|
236
|
+
config: {
|
|
237
|
+
get: (input?: ConfigGetInput, requestOptions?: RequestOptions) => Promise<ConfigGetOutput>;
|
|
238
|
+
};
|
|
226
239
|
};
|
|
@@ -213,6 +213,22 @@ export function make(options) {
|
|
|
213
213
|
declaredStatuses: [401, 400],
|
|
214
214
|
empty: false,
|
|
215
215
|
}, requestOptions).then((value) => value.data),
|
|
216
|
+
import: (input, requestOptions) => request({
|
|
217
|
+
method: "POST",
|
|
218
|
+
path: `/api/session/import`,
|
|
219
|
+
body: { info: input["info"], messages: input["messages"], location: input["location"] },
|
|
220
|
+
successStatus: 200,
|
|
221
|
+
declaredStatuses: [409, 401, 400],
|
|
222
|
+
empty: false,
|
|
223
|
+
}, requestOptions).then((value) => value.data),
|
|
224
|
+
export: (input, requestOptions) => request({
|
|
225
|
+
method: "GET",
|
|
226
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/export`,
|
|
227
|
+
query: { sanitize: input["sanitize"] },
|
|
228
|
+
successStatus: 200,
|
|
229
|
+
declaredStatuses: [404, 500, 401, 400],
|
|
230
|
+
empty: false,
|
|
231
|
+
}, requestOptions).then((value) => value.data),
|
|
216
232
|
active: (requestOptions) => request({
|
|
217
233
|
method: "GET",
|
|
218
234
|
path: `/api/session/active`,
|
|
@@ -224,7 +240,7 @@ export function make(options) {
|
|
|
224
240
|
method: "GET",
|
|
225
241
|
path: `/api/session/${encodeURIComponent(input.sessionID)}`,
|
|
226
242
|
successStatus: 200,
|
|
227
|
-
declaredStatuses: [404,
|
|
243
|
+
declaredStatuses: [404, 401, 400],
|
|
228
244
|
empty: false,
|
|
229
245
|
}, requestOptions).then((value) => value.data),
|
|
230
246
|
remove: (input, requestOptions) => request({
|
|
@@ -283,6 +299,7 @@ export function make(options) {
|
|
|
283
299
|
files: input["files"],
|
|
284
300
|
agents: input["agents"],
|
|
285
301
|
output: input["output"],
|
|
302
|
+
skills: input["skills"],
|
|
286
303
|
metadata: input["metadata"],
|
|
287
304
|
delivery: input["delivery"],
|
|
288
305
|
resume: input["resume"],
|
|
@@ -302,6 +319,7 @@ export function make(options) {
|
|
|
302
319
|
model: input["model"],
|
|
303
320
|
files: input["files"],
|
|
304
321
|
agents: input["agents"],
|
|
322
|
+
skills: input["skills"],
|
|
305
323
|
delivery: input["delivery"],
|
|
306
324
|
resume: input["resume"],
|
|
307
325
|
},
|
|
@@ -383,7 +401,7 @@ export function make(options) {
|
|
|
383
401
|
method: "GET",
|
|
384
402
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/context`,
|
|
385
403
|
successStatus: 200,
|
|
386
|
-
declaredStatuses: [404, 500,
|
|
404
|
+
declaredStatuses: [404, 500, 401, 400],
|
|
387
405
|
empty: false,
|
|
388
406
|
}, requestOptions).then((value) => value.data),
|
|
389
407
|
pending: {
|
|
@@ -391,9 +409,30 @@ export function make(options) {
|
|
|
391
409
|
method: "GET",
|
|
392
410
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/pending`,
|
|
393
411
|
successStatus: 200,
|
|
394
|
-
declaredStatuses: [404,
|
|
412
|
+
declaredStatuses: [404, 401, 400],
|
|
395
413
|
empty: false,
|
|
396
414
|
}, requestOptions).then((value) => value.data),
|
|
415
|
+
cancel: (input, requestOptions) => request({
|
|
416
|
+
method: "DELETE",
|
|
417
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/pending/${encodeURIComponent(input.inputID)}`,
|
|
418
|
+
successStatus: 204,
|
|
419
|
+
declaredStatuses: [409, 404, 401, 400],
|
|
420
|
+
empty: true,
|
|
421
|
+
}, requestOptions),
|
|
422
|
+
steer: (input, requestOptions) => request({
|
|
423
|
+
method: "POST",
|
|
424
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/pending/${encodeURIComponent(input.inputID)}/steer`,
|
|
425
|
+
successStatus: 204,
|
|
426
|
+
declaredStatuses: [409, 404, 401, 400],
|
|
427
|
+
empty: true,
|
|
428
|
+
}, requestOptions),
|
|
429
|
+
queue: (input, requestOptions) => request({
|
|
430
|
+
method: "POST",
|
|
431
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/pending/${encodeURIComponent(input.inputID)}/queue`,
|
|
432
|
+
successStatus: 204,
|
|
433
|
+
declaredStatuses: [409, 404, 401, 400],
|
|
434
|
+
empty: true,
|
|
435
|
+
}, requestOptions),
|
|
397
436
|
},
|
|
398
437
|
instructions: {
|
|
399
438
|
entry: {
|
|
@@ -434,7 +473,7 @@ export function make(options) {
|
|
|
434
473
|
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/log`,
|
|
435
474
|
query: { after: input["after"], follow: input["follow"] },
|
|
436
475
|
successStatus: 200,
|
|
437
|
-
declaredStatuses: [404,
|
|
476
|
+
declaredStatuses: [404, 401, 400],
|
|
438
477
|
empty: false,
|
|
439
478
|
}, requestOptions),
|
|
440
479
|
interrupt: (input, requestOptions) => request({
|
|
@@ -455,7 +494,7 @@ export function make(options) {
|
|
|
455
494
|
method: "GET",
|
|
456
495
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/message/${encodeURIComponent(input.messageID)}`,
|
|
457
496
|
successStatus: 200,
|
|
458
|
-
declaredStatuses: [404,
|
|
497
|
+
declaredStatuses: [404, 401, 400],
|
|
459
498
|
empty: false,
|
|
460
499
|
}, requestOptions).then((value) => value.data),
|
|
461
500
|
},
|
|
@@ -549,7 +588,7 @@ export function make(options) {
|
|
|
549
588
|
method: "POST",
|
|
550
589
|
path: `/api/integration/${encodeURIComponent(input.integrationID)}/connect/key`,
|
|
551
590
|
query: { location: input["location"] },
|
|
552
|
-
body: { key: input["key"], label: input["label"] },
|
|
591
|
+
body: { key: input["key"], answer: input["answer"], label: input["label"] },
|
|
553
592
|
successStatus: 204,
|
|
554
593
|
declaredStatuses: [400, 401],
|
|
555
594
|
empty: true,
|
|
@@ -560,7 +599,7 @@ export function make(options) {
|
|
|
560
599
|
method: "POST",
|
|
561
600
|
path: `/api/integration/${encodeURIComponent(input.integrationID)}/connect/oauth`,
|
|
562
601
|
query: { location: input["location"] },
|
|
563
|
-
body: { methodID: input["methodID"],
|
|
602
|
+
body: { methodID: input["methodID"], answer: input["answer"], label: input["label"] },
|
|
564
603
|
successStatus: 200,
|
|
565
604
|
declaredStatuses: [400, 401],
|
|
566
605
|
empty: false,
|
|
@@ -1117,6 +1156,17 @@ export function make(options) {
|
|
|
1117
1156
|
}, requestOptions),
|
|
1118
1157
|
},
|
|
1119
1158
|
},
|
|
1159
|
+
migration: {
|
|
1160
|
+
v1: {
|
|
1161
|
+
status: (requestOptions) => request({
|
|
1162
|
+
method: "GET",
|
|
1163
|
+
path: `/api/experimental/migration/v1`,
|
|
1164
|
+
successStatus: 200,
|
|
1165
|
+
declaredStatuses: [401, 400],
|
|
1166
|
+
empty: false,
|
|
1167
|
+
}, requestOptions),
|
|
1168
|
+
},
|
|
1169
|
+
},
|
|
1120
1170
|
websearch: {
|
|
1121
1171
|
providers: (input, requestOptions) => request({
|
|
1122
1172
|
method: "GET",
|
|
@@ -1136,6 +1186,16 @@ export function make(options) {
|
|
|
1136
1186
|
empty: false,
|
|
1137
1187
|
}, requestOptions),
|
|
1138
1188
|
},
|
|
1189
|
+
config: {
|
|
1190
|
+
get: (input, requestOptions) => request({
|
|
1191
|
+
method: "GET",
|
|
1192
|
+
path: `/api/config`,
|
|
1193
|
+
query: { location: input?.["location"] },
|
|
1194
|
+
successStatus: 200,
|
|
1195
|
+
declaredStatuses: [401, 400],
|
|
1196
|
+
empty: false,
|
|
1197
|
+
}, requestOptions),
|
|
1198
|
+
},
|
|
1139
1199
|
};
|
|
1140
1200
|
}
|
|
1141
1201
|
function encodePath(value) {
|