shuvcode 2.0.0-alpha-10 → 2.0.0-alpha-12
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/generated/client.d.ts +39 -46
- package/client/generated/client.js +32 -56
- package/client/generated/index.d.ts +3 -3
- package/client/generated/index.js +3 -3
- package/client/generated/types.d.ts +326 -336
- package/client/generated/types.js +1 -2
- package/client/index.d.ts +3 -3
- package/client/index.js +5 -5
- package/client/service.js +83 -89
- package/package.json +13 -13
|
@@ -1,4 +1,4 @@
|
|
|
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,
|
|
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, SessionInboxListInput, SessionInboxCancelInput, SessionInboxSteerInput, SessionInboxQueueInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, SessionEnvironmentInput, 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, 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, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsGetInput, VcsGetOutput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -10,8 +10,8 @@ export interface RequestOptions {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function make(options: ClientOptions): {
|
|
12
12
|
health: {
|
|
13
|
-
get: (requestOptions?: RequestOptions) => Promise<import("./types").ServiceHealth>;
|
|
14
|
-
stop: (input: HealthStopInput, requestOptions?: RequestOptions) => Promise<import("./types").ServiceStopResponse>;
|
|
13
|
+
get: (requestOptions?: RequestOptions) => Promise<import("./types.js").ServiceHealth>;
|
|
14
|
+
stop: (input: HealthStopInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ServiceStopResponse>;
|
|
15
15
|
};
|
|
16
16
|
server: {
|
|
17
17
|
get: (requestOptions?: RequestOptions) => Promise<ServerGetOutput>;
|
|
@@ -27,42 +27,42 @@ export declare function make(options: ClientOptions): {
|
|
|
27
27
|
list: (input?: PluginListInput, requestOptions?: RequestOptions) => Promise<PluginListOutput>;
|
|
28
28
|
};
|
|
29
29
|
session: {
|
|
30
|
-
list: (input?: SessionListInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionsResponse>;
|
|
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>;
|
|
30
|
+
list: (input?: SessionListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionsResponse>;
|
|
31
|
+
create: (input?: SessionCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInfo>;
|
|
32
|
+
import: (input: SessionImportInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInfo>;
|
|
33
|
+
export: (input: SessionExportInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionTransferData>;
|
|
34
34
|
active: (requestOptions?: RequestOptions) => Promise<{
|
|
35
|
-
[x: string]: import("./types").SessionActive;
|
|
35
|
+
[x: string]: import("./types.js").SessionActive;
|
|
36
36
|
}>;
|
|
37
|
-
get: (input: SessionGetInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionInfo>;
|
|
37
|
+
get: (input: SessionGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInfo>;
|
|
38
38
|
remove: (input: SessionRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
39
|
-
fork: (input: SessionForkInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionInfo>;
|
|
39
|
+
fork: (input: SessionForkInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInfo>;
|
|
40
40
|
switchAgent: (input: SessionSwitchAgentInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
41
41
|
switchModel: (input: SessionSwitchModelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
42
42
|
rename: (input: SessionRenameInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
43
43
|
move: (input: SessionMoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
44
|
-
prompt: (input: SessionPromptInput, requestOptions?: RequestOptions) => Promise<import("./types").
|
|
45
|
-
command: (input: SessionCommandInput, requestOptions?: RequestOptions) => Promise<import("./types").
|
|
44
|
+
prompt: (input: SessionPromptInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInboxUser>;
|
|
45
|
+
command: (input: SessionCommandInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInboxUser>;
|
|
46
46
|
skill: (input: SessionSkillInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
47
|
-
synthetic: (input: SessionSyntheticInput, requestOptions?: RequestOptions) => Promise<import("./types").
|
|
47
|
+
synthetic: (input: SessionSyntheticInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInboxSynthetic>;
|
|
48
48
|
shell: (input: SessionShellInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
49
|
-
compact: (input: SessionCompactInput, requestOptions?: RequestOptions) => Promise<import("./types").
|
|
49
|
+
compact: (input: SessionCompactInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInboxCompaction>;
|
|
50
50
|
wait: (input: SessionWaitInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
51
51
|
revert: {
|
|
52
|
-
stage: (input: SessionRevertStageInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionRevert>;
|
|
52
|
+
stage: (input: SessionRevertStageInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionRevert>;
|
|
53
53
|
clear: (input: SessionRevertClearInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
54
54
|
commit: (input: SessionRevertCommitInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
55
55
|
};
|
|
56
|
-
context: (input: SessionContextInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionMessageInfo[]>;
|
|
57
|
-
|
|
58
|
-
list: (input:
|
|
59
|
-
cancel: (input:
|
|
60
|
-
steer: (input:
|
|
61
|
-
queue: (input:
|
|
56
|
+
context: (input: SessionContextInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessageInfo[]>;
|
|
57
|
+
inbox: {
|
|
58
|
+
list: (input: SessionInboxListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInboxInfo[]>;
|
|
59
|
+
cancel: (input: SessionInboxCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
60
|
+
steer: (input: SessionInboxSteerInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
61
|
+
queue: (input: SessionInboxQueueInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
62
62
|
};
|
|
63
63
|
instructions: {
|
|
64
64
|
entry: {
|
|
65
|
-
list: (input: SessionInstructionsEntryListInput, requestOptions?: RequestOptions) => Promise<import("./types").InstructionEntryInfo[]>;
|
|
65
|
+
list: (input: SessionInstructionsEntryListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").InstructionEntryInfo[]>;
|
|
66
66
|
put: (input: SessionInstructionsEntryPutInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
67
67
|
remove: (input: SessionInstructionsEntryRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
68
68
|
};
|
|
@@ -73,10 +73,11 @@ export declare function make(options: ClientOptions): {
|
|
|
73
73
|
log: (input: SessionLogInput, requestOptions?: RequestOptions) => AsyncIterable<SessionLogOutput>;
|
|
74
74
|
interrupt: (input: SessionInterruptInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
75
75
|
background: (input: SessionBackgroundInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
76
|
-
message: (input: SessionMessageInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionMessageAgentSelected | import("./types").SessionMessageSynthetic | import("./types").SessionMessageSystem | import("./types").SessionMessageSkill | import("./types").SessionMessageShell | import("./types").SessionMessageCompactionRunning | import("./types").SessionMessageCompactionCompleted | import("./types").SessionMessageModelSelected | import("./types").SessionMessageCompactionFailed | import("./types").SessionMessageUser | import("./types").SessionMessageAssistant>;
|
|
76
|
+
message: (input: SessionMessageInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessageAgentSelected | import("./types.js").SessionMessageSynthetic | import("./types.js").SessionMessageSystem | import("./types.js").SessionMessageSkill | import("./types.js").SessionMessageShell | import("./types.js").SessionMessageCompactionRunning | import("./types.js").SessionMessageCompactionCompleted | import("./types.js").SessionMessageModelSelected | import("./types.js").SessionMessageLocationSwitched | import("./types.js").SessionMessageCompactionFailed | import("./types.js").SessionMessageUser | import("./types.js").SessionMessageAssistant>;
|
|
77
|
+
environment: (input: SessionEnvironmentInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
77
78
|
};
|
|
78
79
|
message: {
|
|
79
|
-
list: (input: MessageListInput, requestOptions?: RequestOptions) => Promise<import("./types").SessionMessagesResponse>;
|
|
80
|
+
list: (input: MessageListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessagesResponse>;
|
|
80
81
|
};
|
|
81
82
|
model: {
|
|
82
83
|
list: (input?: ModelListInput, requestOptions?: RequestOptions) => Promise<ModelListOutput>;
|
|
@@ -131,21 +132,20 @@ export declare function make(options: ClientOptions): {
|
|
|
131
132
|
};
|
|
132
133
|
project: {
|
|
133
134
|
list: (requestOptions?: RequestOptions) => Promise<ProjectListOutput>;
|
|
134
|
-
current: (input?: ProjectCurrentInput, requestOptions?: RequestOptions) => Promise<import("./types").ProjectCurrent>;
|
|
135
|
-
directories: (input: ProjectDirectoriesInput, requestOptions?: RequestOptions) => Promise<import("./types").ProjectDirectories>;
|
|
135
|
+
current: (input?: ProjectCurrentInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProjectCurrent>;
|
|
136
136
|
};
|
|
137
137
|
form: {
|
|
138
138
|
request: {
|
|
139
139
|
list: (input?: FormRequestListInput, requestOptions?: RequestOptions) => Promise<FormRequestListOutput>;
|
|
140
140
|
};
|
|
141
|
-
list: (input: FormListInput, requestOptions?: RequestOptions) => Promise<import("./types").FormInfo[]>;
|
|
142
|
-
create: (input: FormCreateInput, requestOptions?: RequestOptions) => Promise<import("./types").FormInfo>;
|
|
143
|
-
get: (input: FormGetInput, requestOptions?: RequestOptions) => Promise<import("./types").FormInfo>;
|
|
141
|
+
list: (input: FormListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FormInfo[]>;
|
|
142
|
+
create: (input: FormCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FormInfo>;
|
|
143
|
+
get: (input: FormGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FormInfo>;
|
|
144
144
|
state: (input: FormStateInput, requestOptions?: RequestOptions) => Promise<{
|
|
145
145
|
status: "pending";
|
|
146
146
|
} | {
|
|
147
147
|
status: "answered";
|
|
148
|
-
answer: import("./types").FormAnswer;
|
|
148
|
+
answer: import("./types.js").FormAnswer;
|
|
149
149
|
} | {
|
|
150
150
|
status: "cancelled";
|
|
151
151
|
}>;
|
|
@@ -157,15 +157,15 @@ export declare function make(options: ClientOptions): {
|
|
|
157
157
|
list: (input?: PermissionRequestListInput, requestOptions?: RequestOptions) => Promise<PermissionRequestListOutput>;
|
|
158
158
|
};
|
|
159
159
|
saved: {
|
|
160
|
-
list: (input?: PermissionSavedListInput, requestOptions?: RequestOptions) => Promise<import("./types").PermissionSavedInfo[]>;
|
|
160
|
+
list: (input?: PermissionSavedListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PermissionSavedInfo[]>;
|
|
161
161
|
remove: (input: PermissionSavedRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
162
162
|
};
|
|
163
163
|
create: (input: PermissionCreateInput, requestOptions?: RequestOptions) => Promise<{
|
|
164
164
|
id: string;
|
|
165
|
-
effect: import("./types").PermissionEffect;
|
|
165
|
+
effect: import("./types.js").PermissionEffect;
|
|
166
166
|
}>;
|
|
167
|
-
list: (input: PermissionListInput, requestOptions?: RequestOptions) => Promise<import("./types").PermissionRequest[]>;
|
|
168
|
-
get: (input: PermissionGetInput, requestOptions?: RequestOptions) => Promise<import("./types").PermissionRequest>;
|
|
167
|
+
list: (input: PermissionListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PermissionRequest[]>;
|
|
168
|
+
get: (input: PermissionGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PermissionRequest>;
|
|
169
169
|
reply: (input: PermissionReplyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
170
170
|
};
|
|
171
171
|
file: {
|
|
@@ -197,21 +197,14 @@ export declare function make(options: ClientOptions): {
|
|
|
197
197
|
output: (input: ShellOutputInput, requestOptions?: RequestOptions) => Promise<ShellOutputOutput>;
|
|
198
198
|
remove: (input: ShellRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
199
199
|
};
|
|
200
|
-
question: {
|
|
201
|
-
request: {
|
|
202
|
-
list: (input?: QuestionRequestListInput, requestOptions?: RequestOptions) => Promise<QuestionRequestListOutput>;
|
|
203
|
-
};
|
|
204
|
-
list: (input: QuestionListInput, requestOptions?: RequestOptions) => Promise<import("./types").QuestionRequest[]>;
|
|
205
|
-
reply: (input: QuestionReplyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
206
|
-
reject: (input: QuestionRejectInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
207
|
-
};
|
|
208
200
|
reference: {
|
|
209
201
|
list: (input?: ReferenceListInput, requestOptions?: RequestOptions) => Promise<ReferenceListOutput>;
|
|
210
202
|
};
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
203
|
+
worktree: {
|
|
204
|
+
list: (input: WorktreeListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").WorktreeList>;
|
|
205
|
+
create: (input: WorktreeCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").WorktreeInfo>;
|
|
206
|
+
remove: (input: WorktreeRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
207
|
+
refresh: (input: WorktreeRefreshInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
215
208
|
};
|
|
216
209
|
vcs: {
|
|
217
210
|
get: (input?: VcsGetInput, requestOptions?: RequestOptions) => Promise<VcsGetOutput>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClientError } from "./client-error";
|
|
1
|
+
import { ClientError } from "./client-error.js";
|
|
2
2
|
const maxSseEventBytes = 16 * 1024 * 1024;
|
|
3
3
|
export function make(options) {
|
|
4
4
|
const fetch = options.fetch ?? globalThis.fetch;
|
|
@@ -285,7 +285,7 @@ export function make(options) {
|
|
|
285
285
|
move: (input, requestOptions) => request({
|
|
286
286
|
method: "POST",
|
|
287
287
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/move`,
|
|
288
|
-
body: { directory: input["directory"], workspaceID: input["workspaceID"] },
|
|
288
|
+
body: { directory: input["directory"], workspaceID: input["workspaceID"], delivery: input["delivery"] },
|
|
289
289
|
successStatus: 204,
|
|
290
290
|
declaredStatuses: [404, 400, 401],
|
|
291
291
|
empty: true,
|
|
@@ -361,7 +361,7 @@ export function make(options) {
|
|
|
361
361
|
compact: (input, requestOptions) => request({
|
|
362
362
|
method: "POST",
|
|
363
363
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/compact`,
|
|
364
|
-
body: { id: input["id"] },
|
|
364
|
+
body: { id: input["id"], delivery: input["delivery"] },
|
|
365
365
|
successStatus: 200,
|
|
366
366
|
declaredStatuses: [409, 404, 400, 401],
|
|
367
367
|
empty: false,
|
|
@@ -404,31 +404,31 @@ export function make(options) {
|
|
|
404
404
|
declaredStatuses: [404, 500, 401, 400],
|
|
405
405
|
empty: false,
|
|
406
406
|
}, requestOptions).then((value) => value.data),
|
|
407
|
-
|
|
407
|
+
inbox: {
|
|
408
408
|
list: (input, requestOptions) => request({
|
|
409
409
|
method: "GET",
|
|
410
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/
|
|
410
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox`,
|
|
411
411
|
successStatus: 200,
|
|
412
412
|
declaredStatuses: [404, 401, 400],
|
|
413
413
|
empty: false,
|
|
414
414
|
}, requestOptions).then((value) => value.data),
|
|
415
415
|
cancel: (input, requestOptions) => request({
|
|
416
416
|
method: "DELETE",
|
|
417
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/
|
|
417
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}`,
|
|
418
418
|
successStatus: 204,
|
|
419
419
|
declaredStatuses: [409, 404, 401, 400],
|
|
420
420
|
empty: true,
|
|
421
421
|
}, requestOptions),
|
|
422
422
|
steer: (input, requestOptions) => request({
|
|
423
423
|
method: "POST",
|
|
424
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/
|
|
424
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}/steer`,
|
|
425
425
|
successStatus: 204,
|
|
426
426
|
declaredStatuses: [409, 404, 401, 400],
|
|
427
427
|
empty: true,
|
|
428
428
|
}, requestOptions),
|
|
429
429
|
queue: (input, requestOptions) => request({
|
|
430
430
|
method: "POST",
|
|
431
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/
|
|
431
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}/queue`,
|
|
432
432
|
successStatus: 204,
|
|
433
433
|
declaredStatuses: [409, 404, 401, 400],
|
|
434
434
|
empty: true,
|
|
@@ -479,6 +479,7 @@ export function make(options) {
|
|
|
479
479
|
interrupt: (input, requestOptions) => request({
|
|
480
480
|
method: "POST",
|
|
481
481
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/interrupt`,
|
|
482
|
+
query: { continue: input["continue"] },
|
|
482
483
|
successStatus: 204,
|
|
483
484
|
declaredStatuses: [404, 400, 401],
|
|
484
485
|
empty: true,
|
|
@@ -497,6 +498,14 @@ export function make(options) {
|
|
|
497
498
|
declaredStatuses: [404, 401, 400],
|
|
498
499
|
empty: false,
|
|
499
500
|
}, requestOptions).then((value) => value.data),
|
|
501
|
+
environment: (input, requestOptions) => request({
|
|
502
|
+
method: "PUT",
|
|
503
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/environment`,
|
|
504
|
+
body: { variables: input["variables"] },
|
|
505
|
+
successStatus: 204,
|
|
506
|
+
declaredStatuses: [404, 401, 400],
|
|
507
|
+
empty: true,
|
|
508
|
+
}, requestOptions),
|
|
500
509
|
},
|
|
501
510
|
message: {
|
|
502
511
|
list: (input, requestOptions) => request({
|
|
@@ -750,14 +759,6 @@ export function make(options) {
|
|
|
750
759
|
declaredStatuses: [401, 400],
|
|
751
760
|
empty: false,
|
|
752
761
|
}, requestOptions),
|
|
753
|
-
directories: (input, requestOptions) => request({
|
|
754
|
-
method: "GET",
|
|
755
|
-
path: `/api/project/${encodeURIComponent(input.projectID)}/directories`,
|
|
756
|
-
query: { location: input["location"] },
|
|
757
|
-
successStatus: 200,
|
|
758
|
-
declaredStatuses: [401, 400],
|
|
759
|
-
empty: false,
|
|
760
|
-
}, requestOptions),
|
|
761
762
|
},
|
|
762
763
|
form: {
|
|
763
764
|
request: {
|
|
@@ -1039,64 +1040,40 @@ export function make(options) {
|
|
|
1039
1040
|
empty: true,
|
|
1040
1041
|
}, requestOptions),
|
|
1041
1042
|
},
|
|
1042
|
-
|
|
1043
|
-
request: {
|
|
1044
|
-
list: (input, requestOptions) => request({
|
|
1045
|
-
method: "GET",
|
|
1046
|
-
path: `/api/question/request`,
|
|
1047
|
-
query: { location: input?.["location"] },
|
|
1048
|
-
successStatus: 200,
|
|
1049
|
-
declaredStatuses: [401, 400],
|
|
1050
|
-
empty: false,
|
|
1051
|
-
}, requestOptions),
|
|
1052
|
-
},
|
|
1043
|
+
reference: {
|
|
1053
1044
|
list: (input, requestOptions) => request({
|
|
1054
1045
|
method: "GET",
|
|
1055
|
-
path: `/api/
|
|
1046
|
+
path: `/api/reference`,
|
|
1047
|
+
query: { location: input?.["location"] },
|
|
1056
1048
|
successStatus: 200,
|
|
1057
|
-
declaredStatuses: [
|
|
1049
|
+
declaredStatuses: [401, 400],
|
|
1058
1050
|
empty: false,
|
|
1059
|
-
}, requestOptions).then((value) => value.data),
|
|
1060
|
-
reply: (input, requestOptions) => request({
|
|
1061
|
-
method: "POST",
|
|
1062
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/question/${encodeURIComponent(input.requestID)}/reply`,
|
|
1063
|
-
body: { answers: input["answers"] },
|
|
1064
|
-
successStatus: 204,
|
|
1065
|
-
declaredStatuses: [404, 400, 401],
|
|
1066
|
-
empty: true,
|
|
1067
|
-
}, requestOptions),
|
|
1068
|
-
reject: (input, requestOptions) => request({
|
|
1069
|
-
method: "POST",
|
|
1070
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/question/${encodeURIComponent(input.requestID)}/reject`,
|
|
1071
|
-
successStatus: 204,
|
|
1072
|
-
declaredStatuses: [404, 400, 401],
|
|
1073
|
-
empty: true,
|
|
1074
1051
|
}, requestOptions),
|
|
1075
1052
|
},
|
|
1076
|
-
|
|
1053
|
+
worktree: {
|
|
1077
1054
|
list: (input, requestOptions) => request({
|
|
1078
1055
|
method: "GET",
|
|
1079
|
-
path: `/api/
|
|
1080
|
-
query: { location: input?.["location"] },
|
|
1056
|
+
path: `/api/worktree/${encodeURIComponent(input.projectID)}`,
|
|
1081
1057
|
successStatus: 200,
|
|
1082
1058
|
declaredStatuses: [401, 400],
|
|
1083
1059
|
empty: false,
|
|
1084
1060
|
}, requestOptions),
|
|
1085
|
-
},
|
|
1086
|
-
projectCopy: {
|
|
1087
1061
|
create: (input, requestOptions) => request({
|
|
1088
1062
|
method: "POST",
|
|
1089
|
-
path: `/
|
|
1090
|
-
|
|
1091
|
-
|
|
1063
|
+
path: `/api/worktree/${encodeURIComponent(input.projectID)}`,
|
|
1064
|
+
body: {
|
|
1065
|
+
strategy: input["strategy"],
|
|
1066
|
+
from: input["from"],
|
|
1067
|
+
directory: input["directory"],
|
|
1068
|
+
name: input["name"],
|
|
1069
|
+
},
|
|
1092
1070
|
successStatus: 200,
|
|
1093
1071
|
declaredStatuses: [400, 401],
|
|
1094
1072
|
empty: false,
|
|
1095
1073
|
}, requestOptions),
|
|
1096
1074
|
remove: (input, requestOptions) => request({
|
|
1097
1075
|
method: "DELETE",
|
|
1098
|
-
path: `/
|
|
1099
|
-
query: { location: input["location"] },
|
|
1076
|
+
path: `/api/worktree/${encodeURIComponent(input.projectID)}`,
|
|
1100
1077
|
body: { directory: input["directory"], force: input["force"] },
|
|
1101
1078
|
successStatus: 204,
|
|
1102
1079
|
declaredStatuses: [400, 401],
|
|
@@ -1104,8 +1081,7 @@ export function make(options) {
|
|
|
1104
1081
|
}, requestOptions),
|
|
1105
1082
|
refresh: (input, requestOptions) => request({
|
|
1106
1083
|
method: "POST",
|
|
1107
|
-
path: `/
|
|
1108
|
-
query: { location: input["location"] },
|
|
1084
|
+
path: `/api/worktree/${encodeURIComponent(input.projectID)}/refresh`,
|
|
1109
1085
|
successStatus: 204,
|
|
1110
1086
|
declaredStatuses: [400, 401],
|
|
1111
1087
|
empty: true,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ClientError, type ClientErrorReason } from "./client-error";
|
|
2
|
-
export * as OpenCode from "./client";
|
|
3
|
-
export * from "./types";
|
|
1
|
+
export { ClientError, type ClientErrorReason } from "./client-error.js";
|
|
2
|
+
export * as OpenCode from "./client.js";
|
|
3
|
+
export * from "./types.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ClientError } from "./client-error";
|
|
2
|
-
export * as OpenCode from "./client";
|
|
3
|
-
export * from "./types";
|
|
1
|
+
export { ClientError } from "./client-error.js";
|
|
2
|
+
export * as OpenCode from "./client.js";
|
|
3
|
+
export * from "./types.js";
|