@opencode-ai/client 0.0.0-next-15298 → 0.0.0-next-15303

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.
@@ -1249,7 +1249,7 @@ export declare const make: (options?: {
1249
1249
  readonly key: string;
1250
1250
  readonly value: Schema.Json;
1251
1251
  }[], Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
1252
- put: (input: Endpoint5_23Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
1252
+ put: (input: Endpoint5_23Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/schema/instruction-entry").ValueTooLargeError | HttpClientError.HttpClientError | ClientError, never>;
1253
1253
  remove: (input: Endpoint5_24Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | HttpClientError.HttpClientError | ClientError, never>;
1254
1254
  };
1255
1255
  };
@@ -1371,6 +1371,7 @@ export declare const make: (options?: {
1371
1371
  };
1372
1372
  readonly data: {
1373
1373
  readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
1374
+ readonly parentSeq: number;
1374
1375
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1375
1376
  readonly from?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
1376
1377
  };
@@ -1557,7 +1558,9 @@ export declare const make: (options?: {
1557
1558
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1558
1559
  };
1559
1560
  readonly data: {
1560
- readonly text: string;
1561
+ readonly delta: {
1562
+ readonly [x: string]: (string & import("effect/Brand").Brand<"Instruction.Hash">) | "removed";
1563
+ };
1561
1564
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1562
1565
  };
1563
1566
  readonly metadata?: {
@@ -4308,6 +4311,7 @@ export declare const make: (options?: {
4308
4311
  };
4309
4312
  readonly data: {
4310
4313
  readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
4314
+ readonly parentSeq: number;
4311
4315
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
4312
4316
  readonly from?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
4313
4317
  };
@@ -4494,7 +4498,9 @@ export declare const make: (options?: {
4494
4498
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
4495
4499
  };
4496
4500
  readonly data: {
4497
- readonly text: string;
4501
+ readonly delta: {
4502
+ readonly [x: string]: (string & import("effect/Brand").Brand<"Instruction.Hash">) | "removed";
4503
+ };
4498
4504
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
4499
4505
  };
4500
4506
  readonly metadata?: {
@@ -389,7 +389,7 @@ export function make(options) {
389
389
  path: `/api/session/${encodeURIComponent(input.sessionID)}/instructions/entries/${encodeURIComponent(input.key)}`,
390
390
  body: { value: input["value"] },
391
391
  successStatus: 204,
392
- declaredStatuses: [404, 400, 401],
392
+ declaredStatuses: [404, 413, 400, 401],
393
393
  empty: true,
394
394
  }, requestOptions),
395
395
  remove: (input, requestOptions) => request({
@@ -73,6 +73,13 @@ export type UnknownError = {
73
73
  readonly ref?: string | undefined;
74
74
  };
75
75
  export declare const isUnknownError: (value: unknown) => value is UnknownError;
76
+ export type InstructionEntryValueTooLargeError = {
77
+ readonly _tag: "InstructionEntryValueTooLargeError";
78
+ readonly actualBytes: number;
79
+ readonly maxBytes: number;
80
+ readonly message: string;
81
+ };
82
+ export declare const isInstructionEntryValueTooLargeError: (value: unknown) => value is InstructionEntryValueTooLargeError;
76
83
  export type ProviderNotFoundError = {
77
84
  readonly _tag: "ProviderNotFoundError";
78
85
  readonly providerID: string;
@@ -1929,7 +1936,7 @@ export type SessionLogOutput = ({
1929
1936
  durable: {
1930
1937
  aggregateID: string;
1931
1938
  seq: number;
1932
- version: 1;
1939
+ version: 2;
1933
1940
  };
1934
1941
  location?: {
1935
1942
  directory: string;
@@ -1938,6 +1945,7 @@ export type SessionLogOutput = ({
1938
1945
  data: {
1939
1946
  sessionID: string;
1940
1947
  parentID: string;
1948
+ parentSeq: number;
1941
1949
  from?: string;
1942
1950
  };
1943
1951
  } | {
@@ -2116,7 +2124,7 @@ export type SessionLogOutput = ({
2116
2124
  durable: {
2117
2125
  aggregateID: string;
2118
2126
  seq: number;
2119
- version: 1;
2127
+ version: 2;
2120
2128
  };
2121
2129
  location?: {
2122
2130
  directory: string;
@@ -2124,7 +2132,9 @@ export type SessionLogOutput = ({
2124
2132
  };
2125
2133
  data: {
2126
2134
  sessionID: string;
2127
- text: string;
2135
+ delta: {
2136
+ [x: string]: string | "removed";
2137
+ };
2128
2138
  };
2129
2139
  } | {
2130
2140
  id: string;
@@ -7025,7 +7035,7 @@ export type EventSubscribeOutput = {
7025
7035
  durable: {
7026
7036
  aggregateID: string;
7027
7037
  seq: number;
7028
- version: 1;
7038
+ version: 2;
7029
7039
  };
7030
7040
  location?: {
7031
7041
  directory: string;
@@ -7034,6 +7044,7 @@ export type EventSubscribeOutput = {
7034
7044
  data: {
7035
7045
  sessionID: string;
7036
7046
  parentID: string;
7047
+ parentSeq: number;
7037
7048
  from?: string;
7038
7049
  };
7039
7050
  } | {
@@ -7212,7 +7223,7 @@ export type EventSubscribeOutput = {
7212
7223
  durable: {
7213
7224
  aggregateID: string;
7214
7225
  seq: number;
7215
- version: 1;
7226
+ version: 2;
7216
7227
  };
7217
7228
  location?: {
7218
7229
  directory: string;
@@ -7220,7 +7231,9 @@ export type EventSubscribeOutput = {
7220
7231
  };
7221
7232
  data: {
7222
7233
  sessionID: string;
7223
- text: string;
7234
+ delta: {
7235
+ [x: string]: string | "removed";
7236
+ };
7224
7237
  };
7225
7238
  } | {
7226
7239
  id: string;
@@ -10,6 +10,10 @@ export const isSkillNotFoundError = (value) => typeof value === "object" && valu
10
10
  export const isServiceUnavailableError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ServiceUnavailableError";
11
11
  export const isSessionBusyError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "SessionBusyError";
12
12
  export const isUnknownError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "UnknownError";
13
+ export const isInstructionEntryValueTooLargeError = (value) => typeof value === "object" &&
14
+ value !== null &&
15
+ "_tag" in value &&
16
+ value["_tag"] === "InstructionEntryValueTooLargeError";
13
17
  export const isProviderNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ProviderNotFoundError";
14
18
  export const isFormNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "FormNotFoundError";
15
19
  export const isFormAlreadySettledError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "FormAlreadySettledError";
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-15298",
4
+ "version": "0.0.0-next-15303",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -45,8 +45,8 @@
45
45
  "typecheck": "tsgo --noEmit"
46
46
  },
47
47
  "dependencies": {
48
- "@opencode-ai/schema": "0.0.0-next-15298",
49
- "@opencode-ai/protocol": "0.0.0-next-15298"
48
+ "@opencode-ai/schema": "0.0.0-next-15303",
49
+ "@opencode-ai/protocol": "0.0.0-next-15303"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "effect": "4.0.0-beta.83"
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "devDependencies": {
60
60
  "@effect/platform-node": "4.0.0-beta.83",
61
- "@opencode-ai/httpapi-codegen": "0.0.0-next-15298",
61
+ "@opencode-ai/httpapi-codegen": "0.0.0-next-15303",
62
62
  "@tsconfig/bun": "1.0.9",
63
63
  "@types/bun": "1.3.13",
64
64
  "@typescript/native-preview": "7.0.0-dev.20251207.1",