@opencode-ai/client 0.0.0-next-14989 → 0.0.0-next-14994
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 +16 -12
- package/dist/effect/generated/client.d.ts +25 -11
- package/dist/effect/generated/client.js +4 -6
- package/dist/promise/api.d.ts +1 -1
- package/dist/promise/generated/client.d.ts +17 -7
- package/dist/promise/generated/client.js +26 -22
- package/dist/promise/generated/types.d.ts +18 -8
- package/package.json +4 -4
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -184,27 +184,27 @@ export type Endpoint4_18Input = {
|
|
|
184
184
|
};
|
|
185
185
|
export type Endpoint4_18Output = EffectValue<ReturnType<RawClient["server.session"]["session.context"]>>["data"];
|
|
186
186
|
export type SessionContextOperation<E = never> = (input: Endpoint4_18Input) => Effect.Effect<Endpoint4_18Output, E>;
|
|
187
|
-
type Endpoint4_19Request = Parameters<RawClient["server.session"]["session.
|
|
187
|
+
type Endpoint4_19Request = Parameters<RawClient["server.session"]["session.instructions.entry.list"]>[0];
|
|
188
188
|
export type Endpoint4_19Input = {
|
|
189
189
|
readonly sessionID: Endpoint4_19Request["params"]["sessionID"];
|
|
190
190
|
};
|
|
191
|
-
export type Endpoint4_19Output = EffectValue<ReturnType<RawClient["server.session"]["session.
|
|
192
|
-
export type
|
|
193
|
-
type Endpoint4_20Request = Parameters<RawClient["server.session"]["session.
|
|
191
|
+
export type Endpoint4_19Output = EffectValue<ReturnType<RawClient["server.session"]["session.instructions.entry.list"]>>["data"];
|
|
192
|
+
export type SessionInstructionsEntryListOperation<E = never> = (input: Endpoint4_19Input) => Effect.Effect<Endpoint4_19Output, E>;
|
|
193
|
+
type Endpoint4_20Request = Parameters<RawClient["server.session"]["session.instructions.entry.put"]>[0];
|
|
194
194
|
export type Endpoint4_20Input = {
|
|
195
195
|
readonly sessionID: Endpoint4_20Request["params"]["sessionID"];
|
|
196
196
|
readonly key: Endpoint4_20Request["params"]["key"];
|
|
197
197
|
readonly value: Endpoint4_20Request["payload"]["value"];
|
|
198
198
|
};
|
|
199
|
-
export type Endpoint4_20Output = EffectValue<ReturnType<RawClient["server.session"]["session.
|
|
200
|
-
export type
|
|
201
|
-
type Endpoint4_21Request = Parameters<RawClient["server.session"]["session.
|
|
199
|
+
export type Endpoint4_20Output = EffectValue<ReturnType<RawClient["server.session"]["session.instructions.entry.put"]>>;
|
|
200
|
+
export type SessionInstructionsEntryPutOperation<E = never> = (input: Endpoint4_20Input) => Effect.Effect<Endpoint4_20Output, E>;
|
|
201
|
+
type Endpoint4_21Request = Parameters<RawClient["server.session"]["session.instructions.entry.remove"]>[0];
|
|
202
202
|
export type Endpoint4_21Input = {
|
|
203
203
|
readonly sessionID: Endpoint4_21Request["params"]["sessionID"];
|
|
204
204
|
readonly key: Endpoint4_21Request["params"]["key"];
|
|
205
205
|
};
|
|
206
|
-
export type Endpoint4_21Output = EffectValue<ReturnType<RawClient["server.session"]["session.
|
|
207
|
-
export type
|
|
206
|
+
export type Endpoint4_21Output = EffectValue<ReturnType<RawClient["server.session"]["session.instructions.entry.remove"]>>;
|
|
207
|
+
export type SessionInstructionsEntryRemoveOperation<E = never> = (input: Endpoint4_21Input) => Effect.Effect<Endpoint4_21Output, E>;
|
|
208
208
|
type Endpoint4_22Request = Parameters<RawClient["server.session"]["session.log"]>[0];
|
|
209
209
|
export type Endpoint4_22Input = {
|
|
210
210
|
readonly sessionID: Endpoint4_22Request["params"]["sessionID"];
|
|
@@ -252,9 +252,13 @@ export interface SessionApi<E = never> {
|
|
|
252
252
|
readonly revertClear: SessionRevertClearOperation<E>;
|
|
253
253
|
readonly revertCommit: SessionRevertCommitOperation<E>;
|
|
254
254
|
readonly context: SessionContextOperation<E>;
|
|
255
|
-
readonly
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
readonly instructions: {
|
|
256
|
+
readonly entry: {
|
|
257
|
+
readonly list: SessionInstructionsEntryListOperation<E>;
|
|
258
|
+
readonly put: SessionInstructionsEntryPutOperation<E>;
|
|
259
|
+
readonly remove: SessionInstructionsEntryRemoveOperation<E>;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
258
262
|
readonly log: SessionLogOperation<E>;
|
|
259
263
|
readonly interrupt: SessionInterruptOperation<E>;
|
|
260
264
|
readonly background: SessionBackgroundOperation<E>;
|
|
@@ -127,17 +127,17 @@ type Endpoint4_18Request = Parameters<RawClient["server.session"]["session.conte
|
|
|
127
127
|
type Endpoint4_18Input = {
|
|
128
128
|
readonly sessionID: Endpoint4_18Request["params"]["sessionID"];
|
|
129
129
|
};
|
|
130
|
-
type Endpoint4_19Request = Parameters<RawClient["server.session"]["session.
|
|
130
|
+
type Endpoint4_19Request = Parameters<RawClient["server.session"]["session.instructions.entry.list"]>[0];
|
|
131
131
|
type Endpoint4_19Input = {
|
|
132
132
|
readonly sessionID: Endpoint4_19Request["params"]["sessionID"];
|
|
133
133
|
};
|
|
134
|
-
type Endpoint4_20Request = Parameters<RawClient["server.session"]["session.
|
|
134
|
+
type Endpoint4_20Request = Parameters<RawClient["server.session"]["session.instructions.entry.put"]>[0];
|
|
135
135
|
type Endpoint4_20Input = {
|
|
136
136
|
readonly sessionID: Endpoint4_20Request["params"]["sessionID"];
|
|
137
137
|
readonly key: Endpoint4_20Request["params"]["key"];
|
|
138
138
|
readonly value: Endpoint4_20Request["payload"]["value"];
|
|
139
139
|
};
|
|
140
|
-
type Endpoint4_21Request = Parameters<RawClient["server.session"]["session.
|
|
140
|
+
type Endpoint4_21Request = Parameters<RawClient["server.session"]["session.instructions.entry.remove"]>[0];
|
|
141
141
|
type Endpoint4_21Input = {
|
|
142
142
|
readonly sessionID: Endpoint4_21Request["params"]["sessionID"];
|
|
143
143
|
readonly key: Endpoint4_21Request["params"]["key"];
|
|
@@ -725,6 +725,7 @@ export declare const make: (options?: {
|
|
|
725
725
|
readonly files?: readonly {
|
|
726
726
|
readonly uri: string;
|
|
727
727
|
readonly mime: string;
|
|
728
|
+
readonly content?: string | undefined;
|
|
728
729
|
readonly name?: string | undefined;
|
|
729
730
|
readonly description?: string | undefined;
|
|
730
731
|
readonly source?: {
|
|
@@ -755,6 +756,7 @@ export declare const make: (options?: {
|
|
|
755
756
|
readonly files?: readonly {
|
|
756
757
|
readonly uri: string;
|
|
757
758
|
readonly mime: string;
|
|
759
|
+
readonly content?: string | undefined;
|
|
758
760
|
readonly name?: string | undefined;
|
|
759
761
|
readonly description?: string | undefined;
|
|
760
762
|
readonly source?: {
|
|
@@ -835,6 +837,7 @@ export declare const make: (options?: {
|
|
|
835
837
|
readonly files?: readonly {
|
|
836
838
|
readonly uri: string;
|
|
837
839
|
readonly mime: string;
|
|
840
|
+
readonly content?: string | undefined;
|
|
838
841
|
readonly name?: string | undefined;
|
|
839
842
|
readonly description?: string | undefined;
|
|
840
843
|
readonly source?: {
|
|
@@ -972,6 +975,7 @@ export declare const make: (options?: {
|
|
|
972
975
|
readonly attachments?: readonly {
|
|
973
976
|
readonly uri: string;
|
|
974
977
|
readonly mime: string;
|
|
978
|
+
readonly content?: string | undefined;
|
|
975
979
|
readonly name?: string | undefined;
|
|
976
980
|
readonly description?: string | undefined;
|
|
977
981
|
readonly source?: {
|
|
@@ -1083,12 +1087,16 @@ export declare const make: (options?: {
|
|
|
1083
1087
|
readonly [x: string]: unknown;
|
|
1084
1088
|
} | undefined;
|
|
1085
1089
|
})[], import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").UnknownError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1090
|
+
instructions: {
|
|
1091
|
+
entry: {
|
|
1092
|
+
list: (input: Endpoint4_19Input) => Effect.Effect<readonly {
|
|
1093
|
+
readonly key: string;
|
|
1094
|
+
readonly value: Schema.Json;
|
|
1095
|
+
}[], import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
1096
|
+
put: (input: Endpoint4_20Input) => Effect.Effect<void, import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
1097
|
+
remove: (input: Endpoint4_21Input) => Effect.Effect<void, import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
|
|
1098
|
+
};
|
|
1099
|
+
};
|
|
1092
1100
|
log: (input: Endpoint4_22Input) => Stream.Stream<{
|
|
1093
1101
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1094
1102
|
readonly created: import("effect/DateTime").Utc;
|
|
@@ -1234,6 +1242,7 @@ export declare const make: (options?: {
|
|
|
1234
1242
|
readonly files?: readonly {
|
|
1235
1243
|
readonly uri: string;
|
|
1236
1244
|
readonly mime: string;
|
|
1245
|
+
readonly content?: string | undefined;
|
|
1237
1246
|
readonly name?: string | undefined;
|
|
1238
1247
|
readonly description?: string | undefined;
|
|
1239
1248
|
readonly source?: {
|
|
@@ -1264,7 +1273,7 @@ export declare const make: (options?: {
|
|
|
1264
1273
|
} | {
|
|
1265
1274
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1266
1275
|
readonly created: import("effect/DateTime").Utc;
|
|
1267
|
-
readonly type: "session.
|
|
1276
|
+
readonly type: "session.instructions.updated";
|
|
1268
1277
|
readonly durable: {
|
|
1269
1278
|
readonly aggregateID: string;
|
|
1270
1279
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
@@ -1962,6 +1971,7 @@ export declare const make: (options?: {
|
|
|
1962
1971
|
readonly files?: readonly {
|
|
1963
1972
|
readonly uri: string;
|
|
1964
1973
|
readonly mime: string;
|
|
1974
|
+
readonly content?: string | undefined;
|
|
1965
1975
|
readonly name?: string | undefined;
|
|
1966
1976
|
readonly description?: string | undefined;
|
|
1967
1977
|
readonly source?: {
|
|
@@ -2099,6 +2109,7 @@ export declare const make: (options?: {
|
|
|
2099
2109
|
readonly attachments?: readonly {
|
|
2100
2110
|
readonly uri: string;
|
|
2101
2111
|
readonly mime: string;
|
|
2112
|
+
readonly content?: string | undefined;
|
|
2102
2113
|
readonly name?: string | undefined;
|
|
2103
2114
|
readonly description?: string | undefined;
|
|
2104
2115
|
readonly source?: {
|
|
@@ -2252,6 +2263,7 @@ export declare const make: (options?: {
|
|
|
2252
2263
|
readonly files?: readonly {
|
|
2253
2264
|
readonly uri: string;
|
|
2254
2265
|
readonly mime: string;
|
|
2266
|
+
readonly content?: string | undefined;
|
|
2255
2267
|
readonly name?: string | undefined;
|
|
2256
2268
|
readonly description?: string | undefined;
|
|
2257
2269
|
readonly source?: {
|
|
@@ -2389,6 +2401,7 @@ export declare const make: (options?: {
|
|
|
2389
2401
|
readonly attachments?: readonly {
|
|
2390
2402
|
readonly uri: string;
|
|
2391
2403
|
readonly mime: string;
|
|
2404
|
+
readonly content?: string | undefined;
|
|
2392
2405
|
readonly name?: string | undefined;
|
|
2393
2406
|
readonly description?: string | undefined;
|
|
2394
2407
|
readonly source?: {
|
|
@@ -3658,6 +3671,7 @@ export declare const make: (options?: {
|
|
|
3658
3671
|
readonly files?: readonly {
|
|
3659
3672
|
readonly uri: string;
|
|
3660
3673
|
readonly mime: string;
|
|
3674
|
+
readonly content?: string | undefined;
|
|
3661
3675
|
readonly name?: string | undefined;
|
|
3662
3676
|
readonly description?: string | undefined;
|
|
3663
3677
|
readonly source?: {
|
|
@@ -3707,7 +3721,7 @@ export declare const make: (options?: {
|
|
|
3707
3721
|
} | {
|
|
3708
3722
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
3709
3723
|
readonly created: import("effect/DateTime").Utc;
|
|
3710
|
-
readonly type: "session.
|
|
3724
|
+
readonly type: "session.instructions.updated";
|
|
3711
3725
|
readonly durable: {
|
|
3712
3726
|
readonly aggregateID: string;
|
|
3713
3727
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
@@ -77,12 +77,12 @@ const Endpoint4_15 = (raw) => (input) => raw["session.revert.stage"]({
|
|
|
77
77
|
const Endpoint4_16 = (raw) => (input) => raw["session.revert.clear"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
78
78
|
const Endpoint4_17 = (raw) => (input) => raw["session.revert.commit"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError));
|
|
79
79
|
const Endpoint4_18 = (raw) => (input) => raw["session.context"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
80
|
-
const Endpoint4_19 = (raw) => (input) => raw["session.
|
|
81
|
-
const Endpoint4_20 = (raw) => (input) => raw["session.
|
|
80
|
+
const Endpoint4_19 = (raw) => (input) => raw["session.instructions.entry.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
|
|
81
|
+
const Endpoint4_20 = (raw) => (input) => raw["session.instructions.entry.put"]({
|
|
82
82
|
params: { sessionID: input["sessionID"], key: input["key"] },
|
|
83
83
|
payload: { value: input["value"] },
|
|
84
84
|
}).pipe(Effect.mapError(mapClientError));
|
|
85
|
-
const Endpoint4_21 = (raw) => (input) => raw["session.
|
|
85
|
+
const Endpoint4_21 = (raw) => (input) => raw["session.instructions.entry.remove"]({ params: { sessionID: input["sessionID"], key: input["key"] } }).pipe(Effect.mapError(mapClientError));
|
|
86
86
|
const Endpoint4_22 = (raw) => (input) => Stream.unwrap(raw["session.log"]({
|
|
87
87
|
params: { sessionID: input["sessionID"] },
|
|
88
88
|
query: { after: input["after"], follow: input["follow"] },
|
|
@@ -110,9 +110,7 @@ const adaptGroup4 = (raw) => ({
|
|
|
110
110
|
revertClear: Endpoint4_16(raw),
|
|
111
111
|
revertCommit: Endpoint4_17(raw),
|
|
112
112
|
context: Endpoint4_18(raw),
|
|
113
|
-
|
|
114
|
-
putContextEntry: Endpoint4_20(raw),
|
|
115
|
-
removeContextEntry: Endpoint4_21(raw),
|
|
113
|
+
instructions: { entry: { list: Endpoint4_19(raw), put: Endpoint4_20(raw), remove: Endpoint4_21(raw) } },
|
|
116
114
|
log: Endpoint4_22(raw),
|
|
117
115
|
interrupt: Endpoint4_23(raw),
|
|
118
116
|
background: Endpoint4_24(raw),
|
package/dist/promise/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentApi as EffectAgentApi, CommandApi as EffectCommandApi, EventApi as EffectEventApi, IntegrationApi as EffectIntegrationApi, ModelApi as EffectModelApi, PluginApi as EffectPluginApi, ProviderApi as EffectProviderApi, ReferenceApi as EffectReferenceApi, SessionApi as EffectSessionApi, SkillApi as EffectSkillApi } from "../effect/api/api.js";
|
|
2
2
|
import type { Effect, Stream } from "effect";
|
|
3
|
-
type PromisifyOperation<Operation> = Operation extends (...args: infer Args) => Effect.Effect<infer Success, unknown, unknown> ? (...args: Args) => Promise<Success> : Operation extends (...args: infer Args) => Stream.Stream<infer Success, unknown, unknown> ? (...args: Args) => AsyncIterable<Success> : Operation;
|
|
3
|
+
type PromisifyOperation<Operation> = Operation extends (...args: infer Args) => Effect.Effect<infer Success, unknown, unknown> ? (...args: Args) => Promise<Success> : Operation extends (...args: infer Args) => Stream.Stream<infer Success, unknown, unknown> ? (...args: Args) => AsyncIterable<Success> : Operation extends (...args: infer _Args) => unknown ? Operation : Operation extends object ? PromisifyApi<Operation> : Operation;
|
|
4
4
|
type PromisifyApi<Api> = {
|
|
5
5
|
readonly [Name in keyof Api]: PromisifyOperation<Api[Name]>;
|
|
6
6
|
};
|
|
@@ -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,
|
|
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";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -175,6 +175,7 @@ export declare function make(options: ClientOptions): {
|
|
|
175
175
|
readonly files?: ReadonlyArray<{
|
|
176
176
|
readonly uri: string;
|
|
177
177
|
readonly mime: string;
|
|
178
|
+
readonly content?: string;
|
|
178
179
|
readonly name?: string;
|
|
179
180
|
readonly description?: string;
|
|
180
181
|
readonly source?: {
|
|
@@ -205,6 +206,7 @@ export declare function make(options: ClientOptions): {
|
|
|
205
206
|
readonly files?: ReadonlyArray<{
|
|
206
207
|
readonly uri: string;
|
|
207
208
|
readonly mime: string;
|
|
209
|
+
readonly content?: string;
|
|
208
210
|
readonly name?: string;
|
|
209
211
|
readonly description?: string;
|
|
210
212
|
readonly source?: {
|
|
@@ -287,6 +289,7 @@ export declare function make(options: ClientOptions): {
|
|
|
287
289
|
readonly files?: ReadonlyArray<{
|
|
288
290
|
readonly uri: string;
|
|
289
291
|
readonly mime: string;
|
|
292
|
+
readonly content?: string;
|
|
290
293
|
readonly name?: string;
|
|
291
294
|
readonly description?: string;
|
|
292
295
|
readonly source?: {
|
|
@@ -448,6 +451,7 @@ export declare function make(options: ClientOptions): {
|
|
|
448
451
|
readonly attachments?: ReadonlyArray<{
|
|
449
452
|
readonly uri: string;
|
|
450
453
|
readonly mime: string;
|
|
454
|
+
readonly content?: string;
|
|
451
455
|
readonly name?: string;
|
|
452
456
|
readonly description?: string;
|
|
453
457
|
readonly source?: {
|
|
@@ -533,12 +537,16 @@ export declare function make(options: ClientOptions): {
|
|
|
533
537
|
readonly created: number;
|
|
534
538
|
};
|
|
535
539
|
})[]>;
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
540
|
+
instructions: {
|
|
541
|
+
entry: {
|
|
542
|
+
list: (input: SessionInstructionsEntryListInput, requestOptions?: RequestOptions) => Promise<readonly {
|
|
543
|
+
readonly key: string;
|
|
544
|
+
readonly value: import("./types").JsonValue;
|
|
545
|
+
}[]>;
|
|
546
|
+
put: (input: SessionInstructionsEntryPutInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
547
|
+
remove: (input: SessionInstructionsEntryRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
548
|
+
};
|
|
549
|
+
};
|
|
542
550
|
log: (input: SessionLogInput, requestOptions?: RequestOptions) => AsyncIterable<SessionLogOutput>;
|
|
543
551
|
interrupt: (input: SessionInterruptInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
544
552
|
background: (input: SessionBackgroundInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
@@ -583,6 +591,7 @@ export declare function make(options: ClientOptions): {
|
|
|
583
591
|
readonly files?: ReadonlyArray<{
|
|
584
592
|
readonly uri: string;
|
|
585
593
|
readonly mime: string;
|
|
594
|
+
readonly content?: string;
|
|
586
595
|
readonly name?: string;
|
|
587
596
|
readonly description?: string;
|
|
588
597
|
readonly source?: {
|
|
@@ -744,6 +753,7 @@ export declare function make(options: ClientOptions): {
|
|
|
744
753
|
readonly attachments?: ReadonlyArray<{
|
|
745
754
|
readonly uri: string;
|
|
746
755
|
readonly mime: string;
|
|
756
|
+
readonly content?: string;
|
|
747
757
|
readonly name?: string;
|
|
748
758
|
readonly description?: string;
|
|
749
759
|
readonly source?: {
|
|
@@ -330,28 +330,32 @@ export function make(options) {
|
|
|
330
330
|
declaredStatuses: [404, 500, 400, 401],
|
|
331
331
|
empty: false,
|
|
332
332
|
}, requestOptions).then((value) => value.data),
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
333
|
+
instructions: {
|
|
334
|
+
entry: {
|
|
335
|
+
list: (input, requestOptions) => request({
|
|
336
|
+
method: "GET",
|
|
337
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/instructions/entries`,
|
|
338
|
+
successStatus: 200,
|
|
339
|
+
declaredStatuses: [404, 400, 401],
|
|
340
|
+
empty: false,
|
|
341
|
+
}, requestOptions).then((value) => value.data),
|
|
342
|
+
put: (input, requestOptions) => request({
|
|
343
|
+
method: "PUT",
|
|
344
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
345
|
+
body: { value: input["value"] },
|
|
346
|
+
successStatus: 204,
|
|
347
|
+
declaredStatuses: [404, 400, 401],
|
|
348
|
+
empty: true,
|
|
349
|
+
}, requestOptions),
|
|
350
|
+
remove: (input, requestOptions) => request({
|
|
351
|
+
method: "DELETE",
|
|
352
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
|
|
353
|
+
successStatus: 204,
|
|
354
|
+
declaredStatuses: [404, 400, 401],
|
|
355
|
+
empty: true,
|
|
356
|
+
}, requestOptions),
|
|
357
|
+
},
|
|
358
|
+
},
|
|
355
359
|
log: (input, requestOptions) => sse({
|
|
356
360
|
method: "GET",
|
|
357
361
|
path: `/api/experimental/session/${encodeURIComponent(input.sessionID)}/log`,
|
|
@@ -736,6 +736,7 @@ export type SessionPromptOutput = {
|
|
|
736
736
|
readonly files?: ReadonlyArray<{
|
|
737
737
|
readonly uri: string;
|
|
738
738
|
readonly mime: string;
|
|
739
|
+
readonly content?: string;
|
|
739
740
|
readonly name?: string;
|
|
740
741
|
readonly description?: string;
|
|
741
742
|
readonly source?: {
|
|
@@ -1052,6 +1053,7 @@ export type SessionCommandOutput = {
|
|
|
1052
1053
|
readonly files?: ReadonlyArray<{
|
|
1053
1054
|
readonly uri: string;
|
|
1054
1055
|
readonly mime: string;
|
|
1056
|
+
readonly content?: string;
|
|
1055
1057
|
readonly name?: string;
|
|
1056
1058
|
readonly description?: string;
|
|
1057
1059
|
readonly source?: {
|
|
@@ -1235,6 +1237,7 @@ export type SessionContextOutput = {
|
|
|
1235
1237
|
readonly files?: ReadonlyArray<{
|
|
1236
1238
|
readonly uri: string;
|
|
1237
1239
|
readonly mime: string;
|
|
1240
|
+
readonly content?: string;
|
|
1238
1241
|
readonly name?: string;
|
|
1239
1242
|
readonly description?: string;
|
|
1240
1243
|
readonly source?: {
|
|
@@ -1396,6 +1399,7 @@ export type SessionContextOutput = {
|
|
|
1396
1399
|
readonly attachments?: ReadonlyArray<{
|
|
1397
1400
|
readonly uri: string;
|
|
1398
1401
|
readonly mime: string;
|
|
1402
|
+
readonly content?: string;
|
|
1399
1403
|
readonly name?: string;
|
|
1400
1404
|
readonly description?: string;
|
|
1401
1405
|
readonly source?: {
|
|
@@ -1482,18 +1486,18 @@ export type SessionContextOutput = {
|
|
|
1482
1486
|
};
|
|
1483
1487
|
}>;
|
|
1484
1488
|
}["data"];
|
|
1485
|
-
export type
|
|
1489
|
+
export type SessionInstructionsEntryListInput = {
|
|
1486
1490
|
readonly sessionID: {
|
|
1487
1491
|
readonly sessionID: string;
|
|
1488
1492
|
}["sessionID"];
|
|
1489
1493
|
};
|
|
1490
|
-
export type
|
|
1494
|
+
export type SessionInstructionsEntryListOutput = {
|
|
1491
1495
|
readonly data: ReadonlyArray<{
|
|
1492
1496
|
readonly key: string;
|
|
1493
1497
|
readonly value: JsonValue;
|
|
1494
1498
|
}>;
|
|
1495
1499
|
}["data"];
|
|
1496
|
-
export type
|
|
1500
|
+
export type SessionInstructionsEntryPutInput = {
|
|
1497
1501
|
readonly sessionID: {
|
|
1498
1502
|
readonly sessionID: string;
|
|
1499
1503
|
readonly key: string;
|
|
@@ -1506,8 +1510,8 @@ export type SessionPutContextEntryInput = {
|
|
|
1506
1510
|
readonly value: JsonValue;
|
|
1507
1511
|
}["value"];
|
|
1508
1512
|
};
|
|
1509
|
-
export type
|
|
1510
|
-
export type
|
|
1513
|
+
export type SessionInstructionsEntryPutOutput = void;
|
|
1514
|
+
export type SessionInstructionsEntryRemoveInput = {
|
|
1511
1515
|
readonly sessionID: {
|
|
1512
1516
|
readonly sessionID: string;
|
|
1513
1517
|
readonly key: string;
|
|
@@ -1517,7 +1521,7 @@ export type SessionRemoveContextEntryInput = {
|
|
|
1517
1521
|
readonly key: string;
|
|
1518
1522
|
}["key"];
|
|
1519
1523
|
};
|
|
1520
|
-
export type
|
|
1524
|
+
export type SessionInstructionsEntryRemoveOutput = void;
|
|
1521
1525
|
export type SessionLogInput = {
|
|
1522
1526
|
readonly sessionID: {
|
|
1523
1527
|
readonly sessionID: string;
|
|
@@ -1684,6 +1688,7 @@ export type SessionLogOutput = ({
|
|
|
1684
1688
|
readonly files?: ReadonlyArray<{
|
|
1685
1689
|
readonly uri: string;
|
|
1686
1690
|
readonly mime: string;
|
|
1691
|
+
readonly content?: string;
|
|
1687
1692
|
readonly name?: string;
|
|
1688
1693
|
readonly description?: string;
|
|
1689
1694
|
readonly source?: {
|
|
@@ -1709,7 +1714,7 @@ export type SessionLogOutput = ({
|
|
|
1709
1714
|
readonly metadata?: {
|
|
1710
1715
|
readonly [x: string]: unknown;
|
|
1711
1716
|
};
|
|
1712
|
-
readonly type: "session.
|
|
1717
|
+
readonly type: "session.instructions.updated";
|
|
1713
1718
|
readonly durable: {
|
|
1714
1719
|
readonly aggregateID: string;
|
|
1715
1720
|
readonly seq: number;
|
|
@@ -2427,6 +2432,7 @@ export type SessionMessageOutput = {
|
|
|
2427
2432
|
readonly files?: ReadonlyArray<{
|
|
2428
2433
|
readonly uri: string;
|
|
2429
2434
|
readonly mime: string;
|
|
2435
|
+
readonly content?: string;
|
|
2430
2436
|
readonly name?: string;
|
|
2431
2437
|
readonly description?: string;
|
|
2432
2438
|
readonly source?: {
|
|
@@ -2588,6 +2594,7 @@ export type SessionMessageOutput = {
|
|
|
2588
2594
|
readonly attachments?: ReadonlyArray<{
|
|
2589
2595
|
readonly uri: string;
|
|
2590
2596
|
readonly mime: string;
|
|
2597
|
+
readonly content?: string;
|
|
2591
2598
|
readonly name?: string;
|
|
2592
2599
|
readonly description?: string;
|
|
2593
2600
|
readonly source?: {
|
|
@@ -2736,6 +2743,7 @@ export type MessageListOutput = {
|
|
|
2736
2743
|
readonly files?: ReadonlyArray<{
|
|
2737
2744
|
readonly uri: string;
|
|
2738
2745
|
readonly mime: string;
|
|
2746
|
+
readonly content?: string;
|
|
2739
2747
|
readonly name?: string;
|
|
2740
2748
|
readonly description?: string;
|
|
2741
2749
|
readonly source?: {
|
|
@@ -2897,6 +2905,7 @@ export type MessageListOutput = {
|
|
|
2897
2905
|
readonly attachments?: ReadonlyArray<{
|
|
2898
2906
|
readonly uri: string;
|
|
2899
2907
|
readonly mime: string;
|
|
2908
|
+
readonly content?: string;
|
|
2900
2909
|
readonly name?: string;
|
|
2901
2910
|
readonly description?: string;
|
|
2902
2911
|
readonly source?: {
|
|
@@ -6066,6 +6075,7 @@ export type EventSubscribeOutput = {
|
|
|
6066
6075
|
readonly files?: ReadonlyArray<{
|
|
6067
6076
|
readonly uri: string;
|
|
6068
6077
|
readonly mime: string;
|
|
6078
|
+
readonly content?: string;
|
|
6069
6079
|
readonly name?: string;
|
|
6070
6080
|
readonly description?: string;
|
|
6071
6081
|
readonly source?: {
|
|
@@ -6110,7 +6120,7 @@ export type EventSubscribeOutput = {
|
|
|
6110
6120
|
readonly metadata?: {
|
|
6111
6121
|
readonly [x: string]: unknown;
|
|
6112
6122
|
};
|
|
6113
|
-
readonly type: "session.
|
|
6123
|
+
readonly type: "session.instructions.updated";
|
|
6114
6124
|
readonly durable: {
|
|
6115
6125
|
readonly aggregateID: string;
|
|
6116
6126
|
readonly seq: number;
|
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-14994",
|
|
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-14994",
|
|
45
|
+
"@opencode-ai/protocol": "0.0.0-next-14994"
|
|
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-14994",
|
|
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",
|