@opencode-ai/client 0.0.0-next-14989 → 0.0.0-next-14993

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.
@@ -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.context.entry.list"]>[0];
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.context.entry.list"]>>["data"];
192
- export type SessionListContextEntriesOperation<E = never> = (input: Endpoint4_19Input) => Effect.Effect<Endpoint4_19Output, E>;
193
- type Endpoint4_20Request = Parameters<RawClient["server.session"]["session.context.entry.put"]>[0];
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.context.entry.put"]>>;
200
- export type SessionPutContextEntryOperation<E = never> = (input: Endpoint4_20Input) => Effect.Effect<Endpoint4_20Output, E>;
201
- type Endpoint4_21Request = Parameters<RawClient["server.session"]["session.context.entry.remove"]>[0];
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.context.entry.remove"]>>;
207
- export type SessionRemoveContextEntryOperation<E = never> = (input: Endpoint4_21Input) => Effect.Effect<Endpoint4_21Output, E>;
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 listContextEntries: SessionListContextEntriesOperation<E>;
256
- readonly putContextEntry: SessionPutContextEntryOperation<E>;
257
- readonly removeContextEntry: SessionRemoveContextEntryOperation<E>;
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.context.entry.list"]>[0];
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.context.entry.put"]>[0];
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.context.entry.remove"]>[0];
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"];
@@ -1083,12 +1083,16 @@ export declare const make: (options?: {
1083
1083
  readonly [x: string]: unknown;
1084
1084
  } | undefined;
1085
1085
  })[], 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
- listContextEntries: (input: Endpoint4_19Input) => Effect.Effect<readonly {
1087
- readonly key: string;
1088
- readonly value: Schema.Json;
1089
- }[], import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
1090
- putContextEntry: (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>;
1091
- removeContextEntry: (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>;
1086
+ instructions: {
1087
+ entry: {
1088
+ list: (input: Endpoint4_19Input) => Effect.Effect<readonly {
1089
+ readonly key: string;
1090
+ readonly value: Schema.Json;
1091
+ }[], import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
1092
+ 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>;
1093
+ 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>;
1094
+ };
1095
+ };
1092
1096
  log: (input: Endpoint4_22Input) => Stream.Stream<{
1093
1097
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1094
1098
  readonly created: import("effect/DateTime").Utc;
@@ -1264,7 +1268,7 @@ export declare const make: (options?: {
1264
1268
  } | {
1265
1269
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1266
1270
  readonly created: import("effect/DateTime").Utc;
1267
- readonly type: "session.context.updated";
1271
+ readonly type: "session.instructions.updated";
1268
1272
  readonly durable: {
1269
1273
  readonly aggregateID: string;
1270
1274
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -3707,7 +3711,7 @@ export declare const make: (options?: {
3707
3711
  } | {
3708
3712
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
3709
3713
  readonly created: import("effect/DateTime").Utc;
3710
- readonly type: "session.context.updated";
3714
+ readonly type: "session.instructions.updated";
3711
3715
  readonly durable: {
3712
3716
  readonly aggregateID: string;
3713
3717
  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.context.entry.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data));
81
- const Endpoint4_20 = (raw) => (input) => raw["session.context.entry.put"]({
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.context.entry.remove"]({ params: { sessionID: input["sessionID"], key: input["key"] } }).pipe(Effect.mapError(mapClientError));
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
- listContextEntries: Endpoint4_19(raw),
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),
@@ -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, SessionListContextEntriesInput, SessionPutContextEntryInput, SessionRemoveContextEntryInput, 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, 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;
@@ -533,12 +533,16 @@ export declare function make(options: ClientOptions): {
533
533
  readonly created: number;
534
534
  };
535
535
  })[]>;
536
- listContextEntries: (input: SessionListContextEntriesInput, requestOptions?: RequestOptions) => Promise<readonly {
537
- readonly key: string;
538
- readonly value: import("./types").JsonValue;
539
- }[]>;
540
- putContextEntry: (input: SessionPutContextEntryInput, requestOptions?: RequestOptions) => Promise<void>;
541
- removeContextEntry: (input: SessionRemoveContextEntryInput, requestOptions?: RequestOptions) => Promise<void>;
536
+ instructions: {
537
+ entry: {
538
+ list: (input: SessionInstructionsEntryListInput, requestOptions?: RequestOptions) => Promise<readonly {
539
+ readonly key: string;
540
+ readonly value: import("./types").JsonValue;
541
+ }[]>;
542
+ put: (input: SessionInstructionsEntryPutInput, requestOptions?: RequestOptions) => Promise<void>;
543
+ remove: (input: SessionInstructionsEntryRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
544
+ };
545
+ };
542
546
  log: (input: SessionLogInput, requestOptions?: RequestOptions) => AsyncIterable<SessionLogOutput>;
543
547
  interrupt: (input: SessionInterruptInput, requestOptions?: RequestOptions) => Promise<void>;
544
548
  background: (input: SessionBackgroundInput, requestOptions?: RequestOptions) => Promise<void>;
@@ -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
- listContextEntries: (input, requestOptions) => request({
334
- method: "GET",
335
- path: `/api/session/${encodeURIComponent(input.sessionID)}/context-entry`,
336
- successStatus: 200,
337
- declaredStatuses: [404, 400, 401],
338
- empty: false,
339
- }, requestOptions).then((value) => value.data),
340
- putContextEntry: (input, requestOptions) => request({
341
- method: "PUT",
342
- path: `/api/session/${encodeURIComponent(input.sessionID)}/context-entry/${encodeURIComponent(input.key)}`,
343
- body: { value: input["value"] },
344
- successStatus: 204,
345
- declaredStatuses: [404, 400, 401],
346
- empty: true,
347
- }, requestOptions),
348
- removeContextEntry: (input, requestOptions) => request({
349
- method: "DELETE",
350
- path: `/api/session/${encodeURIComponent(input.sessionID)}/context-entry/${encodeURIComponent(input.key)}`,
351
- successStatus: 204,
352
- declaredStatuses: [404, 400, 401],
353
- empty: true,
354
- }, requestOptions),
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`,
@@ -1482,18 +1482,18 @@ export type SessionContextOutput = {
1482
1482
  };
1483
1483
  }>;
1484
1484
  }["data"];
1485
- export type SessionListContextEntriesInput = {
1485
+ export type SessionInstructionsEntryListInput = {
1486
1486
  readonly sessionID: {
1487
1487
  readonly sessionID: string;
1488
1488
  }["sessionID"];
1489
1489
  };
1490
- export type SessionListContextEntriesOutput = {
1490
+ export type SessionInstructionsEntryListOutput = {
1491
1491
  readonly data: ReadonlyArray<{
1492
1492
  readonly key: string;
1493
1493
  readonly value: JsonValue;
1494
1494
  }>;
1495
1495
  }["data"];
1496
- export type SessionPutContextEntryInput = {
1496
+ export type SessionInstructionsEntryPutInput = {
1497
1497
  readonly sessionID: {
1498
1498
  readonly sessionID: string;
1499
1499
  readonly key: string;
@@ -1506,8 +1506,8 @@ export type SessionPutContextEntryInput = {
1506
1506
  readonly value: JsonValue;
1507
1507
  }["value"];
1508
1508
  };
1509
- export type SessionPutContextEntryOutput = void;
1510
- export type SessionRemoveContextEntryInput = {
1509
+ export type SessionInstructionsEntryPutOutput = void;
1510
+ export type SessionInstructionsEntryRemoveInput = {
1511
1511
  readonly sessionID: {
1512
1512
  readonly sessionID: string;
1513
1513
  readonly key: string;
@@ -1517,7 +1517,7 @@ export type SessionRemoveContextEntryInput = {
1517
1517
  readonly key: string;
1518
1518
  }["key"];
1519
1519
  };
1520
- export type SessionRemoveContextEntryOutput = void;
1520
+ export type SessionInstructionsEntryRemoveOutput = void;
1521
1521
  export type SessionLogInput = {
1522
1522
  readonly sessionID: {
1523
1523
  readonly sessionID: string;
@@ -1709,7 +1709,7 @@ export type SessionLogOutput = ({
1709
1709
  readonly metadata?: {
1710
1710
  readonly [x: string]: unknown;
1711
1711
  };
1712
- readonly type: "session.context.updated";
1712
+ readonly type: "session.instructions.updated";
1713
1713
  readonly durable: {
1714
1714
  readonly aggregateID: string;
1715
1715
  readonly seq: number;
@@ -6110,7 +6110,7 @@ export type EventSubscribeOutput = {
6110
6110
  readonly metadata?: {
6111
6111
  readonly [x: string]: unknown;
6112
6112
  };
6113
- readonly type: "session.context.updated";
6113
+ readonly type: "session.instructions.updated";
6114
6114
  readonly durable: {
6115
6115
  readonly aggregateID: string;
6116
6116
  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-14989",
4
+ "version": "0.0.0-next-14993",
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-14989",
45
- "@opencode-ai/protocol": "0.0.0-next-14989"
44
+ "@opencode-ai/schema": "0.0.0-next-14993",
45
+ "@opencode-ai/protocol": "0.0.0-next-14993"
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-14989",
57
+ "@opencode-ai/httpapi-codegen": "0.0.0-next-14993",
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",