@opencode-ai/client 0.0.0-next-15020 → 0.0.0-next-15026
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/effect/api/api.d.ts +120 -104
- package/dist/effect/generated/client.d.ts +163 -78
- package/dist/effect/generated/client.js +54 -46
- package/dist/promise/generated/client.d.ts +15 -1
- package/dist/promise/generated/client.js +16 -0
- package/dist/promise/generated/types.d.ts +106 -5
- package/package.json +4 -4
|
@@ -34,15 +34,16 @@ const Endpoint4_1 = (raw) => (input) => raw["session.create"]({
|
|
|
34
34
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
35
35
|
const Endpoint4_2 = (raw) => () => raw["session.active"]({}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
36
36
|
const Endpoint4_3 = (raw) => (input) => raw["session.get"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
37
|
-
const Endpoint4_4 = (raw) => (input) => raw["session.
|
|
38
|
-
const Endpoint4_5 = (raw) => (input) => raw["session.
|
|
39
|
-
const Endpoint4_6 = (raw) => (input) => raw["session.
|
|
40
|
-
const Endpoint4_7 = (raw) => (input) => raw["session.
|
|
41
|
-
const Endpoint4_8 = (raw) => (input) => raw["session.
|
|
37
|
+
const Endpoint4_4 = (raw) => (input) => raw["session.remove"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
38
|
+
const Endpoint4_5 = (raw) => (input) => raw["session.fork"]({ params: { sessionID: input["sessionID"] }, payload: { messageID: input["messageID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
39
|
+
const Endpoint4_6 = (raw) => (input) => raw["session.switchAgent"]({ params: { sessionID: input["sessionID"] }, payload: { agent: input["agent"] } }).pipe(Effect.mapError(mapClientError));
|
|
40
|
+
const Endpoint4_7 = (raw) => (input) => raw["session.switchModel"]({ params: { sessionID: input["sessionID"] }, payload: { model: input["model"] } }).pipe(Effect.mapError(mapClientError));
|
|
41
|
+
const Endpoint4_8 = (raw) => (input) => raw["session.rename"]({ params: { sessionID: input["sessionID"] }, payload: { title: input["title"] } }).pipe(Effect.mapError(mapClientError));
|
|
42
|
+
const Endpoint4_9 = (raw) => (input) => raw["session.prompt"]({
|
|
42
43
|
params: { sessionID: input["sessionID"] },
|
|
43
44
|
payload: { id: input["id"], prompt: input["prompt"], delivery: input["delivery"], resume: input["resume"] },
|
|
44
45
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
45
|
-
const
|
|
46
|
+
const Endpoint4_10 = (raw) => (input) => raw["session.command"]({
|
|
46
47
|
params: { sessionID: input["sessionID"] },
|
|
47
48
|
payload: {
|
|
48
49
|
id: input["id"],
|
|
@@ -56,65 +57,66 @@ const Endpoint4_9 = (raw) => (input) => raw["session.command"]({
|
|
|
56
57
|
resume: input["resume"],
|
|
57
58
|
},
|
|
58
59
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
59
|
-
const
|
|
60
|
+
const Endpoint4_11 = (raw) => (input) => raw["session.skill"]({
|
|
60
61
|
params: { sessionID: input["sessionID"] },
|
|
61
62
|
payload: { id: input["id"], skill: input["skill"], resume: input["resume"] },
|
|
62
63
|
}).pipe(Effect.mapError(mapClientError));
|
|
63
|
-
const
|
|
64
|
+
const Endpoint4_12 = (raw) => (input) => raw["session.synthetic"]({
|
|
64
65
|
params: { sessionID: input["sessionID"] },
|
|
65
66
|
payload: { text: input["text"], description: input["description"], metadata: input["metadata"] },
|
|
66
67
|
}).pipe(Effect.mapError(mapClientError));
|
|
67
|
-
const
|
|
68
|
+
const Endpoint4_13 = (raw) => (input) => raw["session.shell"]({
|
|
68
69
|
params: { sessionID: input["sessionID"] },
|
|
69
70
|
payload: { id: input["id"], command: input["command"] },
|
|
70
71
|
}).pipe(Effect.mapError(mapClientError));
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
const
|
|
72
|
+
const Endpoint4_14 = (raw) => (input) => raw["session.compact"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
73
|
+
const Endpoint4_15 = (raw) => (input) => raw["session.wait"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
74
|
+
const Endpoint4_16 = (raw) => (input) => raw["session.revert.stage"]({
|
|
74
75
|
params: { sessionID: input["sessionID"] },
|
|
75
76
|
payload: { messageID: input["messageID"], files: input["files"] },
|
|
76
77
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
const
|
|
78
|
+
const Endpoint4_17 = (raw) => (input) => raw["session.revert.clear"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
79
|
+
const Endpoint4_18 = (raw) => (input) => raw["session.revert.commit"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
80
|
+
const Endpoint4_19 = (raw) => (input) => raw["session.context"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
81
|
+
const Endpoint4_20 = (raw) => (input) => raw["session.instructions.entry.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
82
|
+
const Endpoint4_21 = (raw) => (input) => raw["session.instructions.entry.put"]({
|
|
82
83
|
params: { sessionID: input["sessionID"], key: input["key"] },
|
|
83
84
|
payload: { value: input["value"] },
|
|
84
85
|
}).pipe(Effect.mapError(mapClientError));
|
|
85
|
-
const
|
|
86
|
-
const
|
|
86
|
+
const Endpoint4_22 = (raw) => (input) => raw["session.instructions.entry.remove"]({ params: { sessionID: input["sessionID"], key: input["key"] } }).pipe(Effect.mapError(mapClientError));
|
|
87
|
+
const Endpoint4_23 = (raw) => (input) => Stream.unwrap(raw["session.log"]({
|
|
87
88
|
params: { sessionID: input["sessionID"] },
|
|
88
89
|
query: { after: input["after"], follow: input["follow"] },
|
|
89
90
|
}).pipe(Effect.mapError(mapClientError), Effect.map((stream) => stream.pipe(Stream.mapError(mapClientError)))));
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
const
|
|
91
|
+
const Endpoint4_24 = (raw) => (input) => raw["session.interrupt"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
92
|
+
const Endpoint4_25 = (raw) => (input) => raw["session.background"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
93
|
+
const Endpoint4_26 = (raw) => (input) => raw["session.message"]({ params: { sessionID: input["sessionID"], messageID: input["messageID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
93
94
|
const adaptGroup4 = (raw) => ({
|
|
94
95
|
list: Endpoint4_0(raw),
|
|
95
96
|
create: Endpoint4_1(raw),
|
|
96
97
|
active: Endpoint4_2(raw),
|
|
97
98
|
get: Endpoint4_3(raw),
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
99
|
+
remove: Endpoint4_4(raw),
|
|
100
|
+
fork: Endpoint4_5(raw),
|
|
101
|
+
switchAgent: Endpoint4_6(raw),
|
|
102
|
+
switchModel: Endpoint4_7(raw),
|
|
103
|
+
rename: Endpoint4_8(raw),
|
|
104
|
+
prompt: Endpoint4_9(raw),
|
|
105
|
+
command: Endpoint4_10(raw),
|
|
106
|
+
skill: Endpoint4_11(raw),
|
|
107
|
+
synthetic: Endpoint4_12(raw),
|
|
108
|
+
shell: Endpoint4_13(raw),
|
|
109
|
+
compact: Endpoint4_14(raw),
|
|
110
|
+
wait: Endpoint4_15(raw),
|
|
111
|
+
revertStage: Endpoint4_16(raw),
|
|
112
|
+
revertClear: Endpoint4_17(raw),
|
|
113
|
+
revertCommit: Endpoint4_18(raw),
|
|
114
|
+
context: Endpoint4_19(raw),
|
|
115
|
+
instructions: { entry: { list: Endpoint4_20(raw), put: Endpoint4_21(raw), remove: Endpoint4_22(raw) } },
|
|
116
|
+
log: Endpoint4_23(raw),
|
|
117
|
+
interrupt: Endpoint4_24(raw),
|
|
118
|
+
background: Endpoint4_25(raw),
|
|
119
|
+
message: Endpoint4_26(raw),
|
|
118
120
|
});
|
|
119
121
|
const Endpoint5_0 = (raw) => (input) => raw["session.messages"]({
|
|
120
122
|
params: { sessionID: input["sessionID"] },
|
|
@@ -293,17 +295,23 @@ const Endpoint20_1 = (raw) => (input) => raw["shell.create"]({
|
|
|
293
295
|
payload: { command: input["command"], cwd: input["cwd"], timeout: input["timeout"], metadata: input["metadata"] },
|
|
294
296
|
}).pipe(Effect.mapError(mapClientError));
|
|
295
297
|
const Endpoint20_2 = (raw) => (input) => raw["shell.get"]({ params: { id: input["id"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
296
|
-
const Endpoint20_3 = (raw) => (input) => raw["shell.
|
|
298
|
+
const Endpoint20_3 = (raw) => (input) => raw["shell.timeout"]({
|
|
299
|
+
params: { id: input["id"] },
|
|
300
|
+
query: { location: input["location"] },
|
|
301
|
+
payload: { timeout: input["timeout"] },
|
|
302
|
+
}).pipe(Effect.mapError(mapClientError));
|
|
303
|
+
const Endpoint20_4 = (raw) => (input) => raw["shell.output"]({
|
|
297
304
|
params: { id: input["id"] },
|
|
298
305
|
query: { location: input["location"], cursor: input["cursor"], limit: input["limit"] },
|
|
299
306
|
}).pipe(Effect.mapError(mapClientError));
|
|
300
|
-
const
|
|
307
|
+
const Endpoint20_5 = (raw) => (input) => raw["shell.remove"]({ params: { id: input["id"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
301
308
|
const adaptGroup20 = (raw) => ({
|
|
302
309
|
list: Endpoint20_0(raw),
|
|
303
310
|
create: Endpoint20_1(raw),
|
|
304
311
|
get: Endpoint20_2(raw),
|
|
305
|
-
|
|
306
|
-
|
|
312
|
+
timeout: Endpoint20_3(raw),
|
|
313
|
+
output: Endpoint20_4(raw),
|
|
314
|
+
remove: Endpoint20_5(raw),
|
|
307
315
|
});
|
|
308
316
|
const Endpoint21_0 = (raw) => (input) => raw["question.request.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError));
|
|
309
317
|
const Endpoint21_1 = (raw) => (input) => raw["session.question.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HealthGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, SessionListOutput, SessionCreateInput, SessionGetInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectOauthInput, IntegrationConnectOauthOutput, IntegrationAttemptStatusInput, IntegrationAttemptStatusOutput, IntegrationAttemptCompleteInput, IntegrationAttemptCancelInput, ServerMcpListInput, ServerMcpListOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectCurrentOutput, ProjectDirectoriesInput, ProjectDirectoriesOutput, FormListRequestsInput, FormListRequestsOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionListRequestsInput, PermissionListRequestsOutput, PermissionListSavedInput, PermissionRemoveSavedInput, 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, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionListRequestsInput, QuestionListRequestsOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyCreateOutput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationOutput } from "./types";
|
|
1
|
+
import type { HealthGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, PluginListInput, PluginListOutput, SessionListInput, SessionListOutput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectOauthInput, IntegrationConnectOauthOutput, IntegrationAttemptStatusInput, IntegrationAttemptStatusOutput, IntegrationAttemptCompleteInput, IntegrationAttemptCancelInput, ServerMcpListInput, ServerMcpListOutput, CredentialUpdateInput, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectCurrentOutput, ProjectDirectoriesInput, ProjectDirectoriesOutput, FormListRequestsInput, FormListRequestsOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionListRequestsInput, PermissionListRequestsOutput, PermissionListSavedInput, PermissionRemoveSavedInput, 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, QuestionListRequestsInput, QuestionListRequestsOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyCreateOutput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationOutput } from "./types";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -26,6 +26,10 @@ export declare function make(options: ClientOptions): {
|
|
|
26
26
|
create: (input?: SessionCreateInput, requestOptions?: RequestOptions) => Promise<{
|
|
27
27
|
readonly id: string;
|
|
28
28
|
readonly parentID?: string;
|
|
29
|
+
readonly fork?: {
|
|
30
|
+
readonly sessionID: string;
|
|
31
|
+
readonly messageID?: string;
|
|
32
|
+
};
|
|
29
33
|
readonly projectID: string;
|
|
30
34
|
readonly agent?: string;
|
|
31
35
|
readonly model?: {
|
|
@@ -76,6 +80,10 @@ export declare function make(options: ClientOptions): {
|
|
|
76
80
|
get: (input: SessionGetInput, requestOptions?: RequestOptions) => Promise<{
|
|
77
81
|
readonly id: string;
|
|
78
82
|
readonly parentID?: string;
|
|
83
|
+
readonly fork?: {
|
|
84
|
+
readonly sessionID: string;
|
|
85
|
+
readonly messageID?: string;
|
|
86
|
+
};
|
|
79
87
|
readonly projectID: string;
|
|
80
88
|
readonly agent?: string;
|
|
81
89
|
readonly model?: {
|
|
@@ -118,9 +126,14 @@ export declare function make(options: ClientOptions): {
|
|
|
118
126
|
}>;
|
|
119
127
|
};
|
|
120
128
|
}>;
|
|
129
|
+
remove: (input: SessionRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
121
130
|
fork: (input: SessionForkInput, requestOptions?: RequestOptions) => Promise<{
|
|
122
131
|
readonly id: string;
|
|
123
132
|
readonly parentID?: string;
|
|
133
|
+
readonly fork?: {
|
|
134
|
+
readonly sessionID: string;
|
|
135
|
+
readonly messageID?: string;
|
|
136
|
+
};
|
|
124
137
|
readonly projectID: string;
|
|
125
138
|
readonly agent?: string;
|
|
126
139
|
readonly model?: {
|
|
@@ -1294,6 +1307,7 @@ export declare function make(options: ClientOptions): {
|
|
|
1294
1307
|
list: (input?: ShellListInput, requestOptions?: RequestOptions) => Promise<ShellListOutput>;
|
|
1295
1308
|
create: (input: ShellCreateInput, requestOptions?: RequestOptions) => Promise<ShellCreateOutput>;
|
|
1296
1309
|
get: (input: ShellGetInput, requestOptions?: RequestOptions) => Promise<ShellGetOutput>;
|
|
1310
|
+
timeout: (input: ShellTimeoutInput, requestOptions?: RequestOptions) => Promise<ShellTimeoutOutput>;
|
|
1297
1311
|
output: (input: ShellOutputInput, requestOptions?: RequestOptions) => Promise<ShellOutputOutput>;
|
|
1298
1312
|
remove: (input: ShellRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
1299
1313
|
};
|
|
@@ -205,6 +205,13 @@ export function make(options) {
|
|
|
205
205
|
declaredStatuses: [404, 400, 401],
|
|
206
206
|
empty: false,
|
|
207
207
|
}, requestOptions).then((value) => value.data),
|
|
208
|
+
remove: (input, requestOptions) => request({
|
|
209
|
+
method: "DELETE",
|
|
210
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}`,
|
|
211
|
+
successStatus: 204,
|
|
212
|
+
declaredStatuses: [404, 400, 401],
|
|
213
|
+
empty: true,
|
|
214
|
+
}, requestOptions),
|
|
208
215
|
fork: (input, requestOptions) => request({
|
|
209
216
|
method: "POST",
|
|
210
217
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/fork`,
|
|
@@ -807,6 +814,15 @@ export function make(options) {
|
|
|
807
814
|
declaredStatuses: [404, 401, 400],
|
|
808
815
|
empty: false,
|
|
809
816
|
}, requestOptions),
|
|
817
|
+
timeout: (input, requestOptions) => request({
|
|
818
|
+
method: "PATCH",
|
|
819
|
+
path: `/api/shell/${encodeURIComponent(input.id)}/timeout`,
|
|
820
|
+
query: { location: input["location"] },
|
|
821
|
+
body: { timeout: input["timeout"] },
|
|
822
|
+
successStatus: 200,
|
|
823
|
+
declaredStatuses: [404, 401, 400],
|
|
824
|
+
empty: false,
|
|
825
|
+
}, requestOptions),
|
|
810
826
|
output: (input, requestOptions) => request({
|
|
811
827
|
method: "GET",
|
|
812
828
|
path: `/api/shell/${encodeURIComponent(input.id)}/output`,
|
|
@@ -324,6 +324,10 @@ export type SessionListOutput = {
|
|
|
324
324
|
readonly data: ReadonlyArray<{
|
|
325
325
|
readonly id: string;
|
|
326
326
|
readonly parentID?: string;
|
|
327
|
+
readonly fork?: {
|
|
328
|
+
readonly sessionID: string;
|
|
329
|
+
readonly messageID?: string;
|
|
330
|
+
};
|
|
327
331
|
readonly projectID: string;
|
|
328
332
|
readonly agent?: string;
|
|
329
333
|
readonly model?: {
|
|
@@ -429,6 +433,10 @@ export type SessionCreateOutput = {
|
|
|
429
433
|
readonly data: {
|
|
430
434
|
readonly id: string;
|
|
431
435
|
readonly parentID?: string;
|
|
436
|
+
readonly fork?: {
|
|
437
|
+
readonly sessionID: string;
|
|
438
|
+
readonly messageID?: string;
|
|
439
|
+
};
|
|
432
440
|
readonly projectID: string;
|
|
433
441
|
readonly agent?: string;
|
|
434
442
|
readonly model?: {
|
|
@@ -488,6 +496,10 @@ export type SessionGetOutput = {
|
|
|
488
496
|
readonly data: {
|
|
489
497
|
readonly id: string;
|
|
490
498
|
readonly parentID?: string;
|
|
499
|
+
readonly fork?: {
|
|
500
|
+
readonly sessionID: string;
|
|
501
|
+
readonly messageID?: string;
|
|
502
|
+
};
|
|
491
503
|
readonly projectID: string;
|
|
492
504
|
readonly agent?: string;
|
|
493
505
|
readonly model?: {
|
|
@@ -531,6 +543,12 @@ export type SessionGetOutput = {
|
|
|
531
543
|
};
|
|
532
544
|
};
|
|
533
545
|
}["data"];
|
|
546
|
+
export type SessionRemoveInput = {
|
|
547
|
+
readonly sessionID: {
|
|
548
|
+
readonly sessionID: string;
|
|
549
|
+
}["sessionID"];
|
|
550
|
+
};
|
|
551
|
+
export type SessionRemoveOutput = void;
|
|
534
552
|
export type SessionForkInput = {
|
|
535
553
|
readonly sessionID: {
|
|
536
554
|
readonly sessionID: string;
|
|
@@ -543,6 +561,10 @@ export type SessionForkOutput = {
|
|
|
543
561
|
readonly data: {
|
|
544
562
|
readonly id: string;
|
|
545
563
|
readonly parentID?: string;
|
|
564
|
+
readonly fork?: {
|
|
565
|
+
readonly sessionID: string;
|
|
566
|
+
readonly messageID?: string;
|
|
567
|
+
};
|
|
546
568
|
readonly projectID: string;
|
|
547
569
|
readonly agent?: string;
|
|
548
570
|
readonly model?: {
|
|
@@ -1641,6 +1663,25 @@ export type SessionLogOutput = ({
|
|
|
1641
1663
|
readonly sessionID: string;
|
|
1642
1664
|
readonly title: string;
|
|
1643
1665
|
};
|
|
1666
|
+
} | {
|
|
1667
|
+
readonly id: string;
|
|
1668
|
+
readonly created: number;
|
|
1669
|
+
readonly metadata?: {
|
|
1670
|
+
readonly [x: string]: unknown;
|
|
1671
|
+
};
|
|
1672
|
+
readonly type: "session.deleted";
|
|
1673
|
+
readonly durable: {
|
|
1674
|
+
readonly aggregateID: string;
|
|
1675
|
+
readonly seq: number;
|
|
1676
|
+
readonly version: number;
|
|
1677
|
+
};
|
|
1678
|
+
readonly location?: {
|
|
1679
|
+
readonly directory: string;
|
|
1680
|
+
readonly workspaceID?: string;
|
|
1681
|
+
};
|
|
1682
|
+
readonly data: {
|
|
1683
|
+
readonly sessionID: string;
|
|
1684
|
+
};
|
|
1644
1685
|
} | {
|
|
1645
1686
|
readonly id: string;
|
|
1646
1687
|
readonly created: number;
|
|
@@ -6043,6 +6084,25 @@ export type EventSubscribeOutput = {
|
|
|
6043
6084
|
readonly sessionID: string;
|
|
6044
6085
|
readonly title: string;
|
|
6045
6086
|
};
|
|
6087
|
+
} | {
|
|
6088
|
+
readonly id: string;
|
|
6089
|
+
readonly created: number;
|
|
6090
|
+
readonly metadata?: {
|
|
6091
|
+
readonly [x: string]: unknown;
|
|
6092
|
+
};
|
|
6093
|
+
readonly type: "session.deleted";
|
|
6094
|
+
readonly durable: {
|
|
6095
|
+
readonly aggregateID: string;
|
|
6096
|
+
readonly seq: number;
|
|
6097
|
+
readonly version: number;
|
|
6098
|
+
};
|
|
6099
|
+
readonly location?: {
|
|
6100
|
+
readonly directory: string;
|
|
6101
|
+
readonly workspaceID?: string;
|
|
6102
|
+
};
|
|
6103
|
+
readonly data: {
|
|
6104
|
+
readonly sessionID: string;
|
|
6105
|
+
};
|
|
6046
6106
|
} | {
|
|
6047
6107
|
readonly id: string;
|
|
6048
6108
|
readonly created: number;
|
|
@@ -7993,7 +8053,7 @@ export type ShellCreateInput = {
|
|
|
7993
8053
|
readonly command: {
|
|
7994
8054
|
readonly command: string;
|
|
7995
8055
|
readonly cwd?: string;
|
|
7996
|
-
readonly timeout
|
|
8056
|
+
readonly timeout: number;
|
|
7997
8057
|
readonly metadata?: {
|
|
7998
8058
|
readonly [x: string]: JsonValue;
|
|
7999
8059
|
};
|
|
@@ -8001,15 +8061,15 @@ export type ShellCreateInput = {
|
|
|
8001
8061
|
readonly cwd?: {
|
|
8002
8062
|
readonly command: string;
|
|
8003
8063
|
readonly cwd?: string;
|
|
8004
|
-
readonly timeout
|
|
8064
|
+
readonly timeout: number;
|
|
8005
8065
|
readonly metadata?: {
|
|
8006
8066
|
readonly [x: string]: JsonValue;
|
|
8007
8067
|
};
|
|
8008
8068
|
}["cwd"];
|
|
8009
|
-
readonly timeout
|
|
8069
|
+
readonly timeout: {
|
|
8010
8070
|
readonly command: string;
|
|
8011
8071
|
readonly cwd?: string;
|
|
8012
|
-
readonly timeout
|
|
8072
|
+
readonly timeout: number;
|
|
8013
8073
|
readonly metadata?: {
|
|
8014
8074
|
readonly [x: string]: JsonValue;
|
|
8015
8075
|
};
|
|
@@ -8017,7 +8077,7 @@ export type ShellCreateInput = {
|
|
|
8017
8077
|
readonly metadata?: {
|
|
8018
8078
|
readonly command: string;
|
|
8019
8079
|
readonly cwd?: string;
|
|
8020
|
-
readonly timeout
|
|
8080
|
+
readonly timeout: number;
|
|
8021
8081
|
readonly metadata?: {
|
|
8022
8082
|
readonly [x: string]: JsonValue;
|
|
8023
8083
|
};
|
|
@@ -8088,6 +8148,47 @@ export type ShellGetOutput = {
|
|
|
8088
8148
|
};
|
|
8089
8149
|
};
|
|
8090
8150
|
};
|
|
8151
|
+
export type ShellTimeoutInput = {
|
|
8152
|
+
readonly id: {
|
|
8153
|
+
readonly id: string;
|
|
8154
|
+
}["id"];
|
|
8155
|
+
readonly location?: {
|
|
8156
|
+
readonly location?: {
|
|
8157
|
+
readonly directory?: string | undefined;
|
|
8158
|
+
readonly workspace?: string | undefined;
|
|
8159
|
+
} | undefined;
|
|
8160
|
+
}["location"];
|
|
8161
|
+
readonly timeout: {
|
|
8162
|
+
readonly timeout: number;
|
|
8163
|
+
}["timeout"];
|
|
8164
|
+
};
|
|
8165
|
+
export type ShellTimeoutOutput = {
|
|
8166
|
+
readonly location: {
|
|
8167
|
+
readonly directory: string;
|
|
8168
|
+
readonly workspaceID?: string;
|
|
8169
|
+
readonly project: {
|
|
8170
|
+
readonly id: string;
|
|
8171
|
+
readonly directory: string;
|
|
8172
|
+
};
|
|
8173
|
+
};
|
|
8174
|
+
readonly data: {
|
|
8175
|
+
readonly id: string;
|
|
8176
|
+
readonly status: "running" | "exited" | "timeout" | "killed";
|
|
8177
|
+
readonly command: string;
|
|
8178
|
+
readonly cwd: string;
|
|
8179
|
+
readonly shell: string;
|
|
8180
|
+
readonly file: string;
|
|
8181
|
+
readonly pid?: number;
|
|
8182
|
+
readonly exit?: number | "Infinity" | "-Infinity" | "NaN";
|
|
8183
|
+
readonly metadata: {
|
|
8184
|
+
readonly [x: string]: JsonValue;
|
|
8185
|
+
};
|
|
8186
|
+
readonly time: {
|
|
8187
|
+
readonly started: number | "Infinity" | "-Infinity" | "NaN";
|
|
8188
|
+
readonly completed?: number | "Infinity" | "-Infinity" | "NaN";
|
|
8189
|
+
};
|
|
8190
|
+
};
|
|
8191
|
+
};
|
|
8091
8192
|
export type ShellOutputInput = {
|
|
8092
8193
|
readonly id: {
|
|
8093
8194
|
readonly id: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/client",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-15026",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"typecheck": "tsgo --noEmit"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
45
|
-
"@opencode-ai/protocol": "0.0.0-next-
|
|
44
|
+
"@opencode-ai/schema": "0.0.0-next-15026",
|
|
45
|
+
"@opencode-ai/protocol": "0.0.0-next-15026"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"effect": "4.0.0-beta.83"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@effect/platform-node": "4.0.0-beta.83",
|
|
57
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-next-
|
|
57
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-next-15026",
|
|
58
58
|
"@tsconfig/bun": "1.0.9",
|
|
59
59
|
"@types/bun": "1.3.13",
|
|
60
60
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|