@opencode/client 0.0.0-dev-20858 → 0.0.0-dev-20859

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.
@@ -14,7 +14,7 @@ import {
14
14
  environment2,
15
15
  complete2,
16
16
  clear2
17
- } from "../chunks/pty-handoff-d2t3jt2r.js";
17
+ } from "../chunks/pty-handoff-r2jrs2kk.js";
18
18
  import {
19
19
  decide2,
20
20
  fallback2,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  make5,
3
3
  exports_client3
4
- } from "../chunks/pty-handoff-j8bgrn1y.js";
5
- import"../chunks/pty-handoff-vyas3vgt.js";
4
+ } from "../chunks/pty-handoff-xrgnamvt.js";
6
5
  import"../chunks/pty-handoff-1y4a697q.js";
7
- import"../chunks/pty-handoff-vt9jbch8.js";
6
+ import"../chunks/pty-handoff-vyas3vgt.js";
8
7
  import"../chunks/pty-handoff-ecs5ftka.js";
9
8
  import"../chunks/pty-handoff-nwcpakzx.js";
9
+ import"../chunks/pty-handoff-vt9jbch8.js";
10
10
  import"../chunks/pty-handoff-frbwqjmf.js";
11
11
  export {
12
12
  exports_client3 as OpenCode,
@@ -1,4 +1,10 @@
1
1
  import"../../chunks/pty-handoff-vyas3vgt.js";
2
+ import {
3
+ exports_client4
4
+ } from "../../chunks/pty-handoff-ecs5ftka.js";
5
+ import {
6
+ ClientError3
7
+ } from "../../chunks/pty-handoff-nwcpakzx.js";
2
8
  import {
3
9
  isInvalidRequestError2,
4
10
  isUnauthorizedError2,
@@ -34,12 +40,6 @@ import {
34
40
  isWorktreeError2,
35
41
  isVcsInitNotSupportedError2
36
42
  } from "../../chunks/pty-handoff-vt9jbch8.js";
37
- import {
38
- exports_client4
39
- } from "../../chunks/pty-handoff-ecs5ftka.js";
40
- import {
41
- ClientError3
42
- } from "../../chunks/pty-handoff-nwcpakzx.js";
43
43
  export {
44
44
  ClientError3 as ClientError,
45
45
  exports_client4 as OpenCode,
@@ -29,6 +29,7 @@ export type ProviderCompaction = {
29
29
  type: "native";
30
30
  };
31
31
  export type ProviderTransport = "http" | "websocket";
32
+ export type ProviderEncoding = "zstd" | "gzip" | "none";
32
33
  export type AgentColor = string;
33
34
  export type PermissionEffect = "allow" | "deny" | "ask";
34
35
  export type PluginSource = {
@@ -482,22 +483,19 @@ export type SessionProviderContextProvenance = {
482
483
  protocol: string;
483
484
  endpoint: string;
484
485
  };
485
- export type ModelSettings = {
486
- compaction?: ProviderCompaction;
487
- } & {
488
- [x: string]: any;
489
- };
490
- export type ConfigModelSettings = {
491
- compaction?: ProviderCompaction;
492
- } & {
493
- [x: string]: JsonValue | null;
494
- };
495
486
  export type ProviderSettings = {
496
487
  timeout?: number | false;
497
488
  headerTimeout?: number | false;
498
489
  chunkTimeout?: number | false;
499
490
  compaction?: ProviderCompaction;
500
491
  transport?: ProviderTransport;
492
+ encoding?: ProviderEncoding;
493
+ } & {
494
+ [x: string]: any;
495
+ };
496
+ export type ModelSettings = {
497
+ compaction?: ProviderCompaction;
498
+ encoding?: ProviderEncoding;
501
499
  } & {
502
500
  [x: string]: any;
503
501
  };
@@ -507,6 +505,13 @@ export type ConfigProviderSettings = {
507
505
  chunkTimeout?: number | false;
508
506
  compaction?: ProviderCompaction;
509
507
  transport?: ProviderTransport;
508
+ encoding?: ProviderEncoding;
509
+ } & {
510
+ [x: string]: JsonValue | null;
511
+ };
512
+ export type ConfigModelSettings = {
513
+ compaction?: ProviderCompaction;
514
+ encoding?: ProviderEncoding;
510
515
  } & {
511
516
  [x: string]: JsonValue | null;
512
517
  };
@@ -1175,22 +1180,22 @@ export type SessionProviderContext = {
1175
1180
  provenance: SessionProviderContextProvenance;
1176
1181
  messages: JsonValue;
1177
1182
  };
1178
- export type ModelVariant = {
1179
- id: string;
1180
- settings?: ModelSettings;
1181
- headers?: {
1183
+ export type ProviderRequest = {
1184
+ settings: ProviderSettings;
1185
+ headers: {
1182
1186
  [x: string]: string;
1183
1187
  };
1184
- body?: {
1188
+ body: {
1185
1189
  [x: string]: any;
1186
1190
  };
1187
1191
  };
1188
- export type ProviderRequest = {
1189
- settings: ProviderSettings;
1190
- headers: {
1192
+ export type ModelVariant = {
1193
+ id: string;
1194
+ settings?: ModelSettings;
1195
+ headers?: {
1191
1196
  [x: string]: string;
1192
1197
  };
1193
- body: {
1198
+ body?: {
1194
1199
  [x: string]: any;
1195
1200
  };
1196
1201
  };
@@ -1,9 +1,13 @@
1
1
  import"../chunks/pty-handoff-m2eywc8w.js";
2
2
  import {
3
3
  exports_client3
4
- } from "../chunks/pty-handoff-j8bgrn1y.js";
5
- import"../chunks/pty-handoff-vyas3vgt.js";
4
+ } from "../chunks/pty-handoff-xrgnamvt.js";
6
5
  import"../chunks/pty-handoff-1y4a697q.js";
6
+ import"../chunks/pty-handoff-vyas3vgt.js";
7
+ import"../chunks/pty-handoff-ecs5ftka.js";
8
+ import {
9
+ ClientError3
10
+ } from "../chunks/pty-handoff-nwcpakzx.js";
7
11
  import {
8
12
  isInvalidRequestError2,
9
13
  isUnauthorizedError2,
@@ -39,10 +43,6 @@ import {
39
43
  isWorktreeError2,
40
44
  isVcsInitNotSupportedError2
41
45
  } from "../chunks/pty-handoff-vt9jbch8.js";
42
- import"../chunks/pty-handoff-ecs5ftka.js";
43
- import {
44
- ClientError3
45
- } from "../chunks/pty-handoff-nwcpakzx.js";
46
46
  import"../chunks/pty-handoff-frbwqjmf.js";
47
47
  export {
48
48
  ClientError3 as ClientError,
@@ -14,7 +14,7 @@ import {
14
14
  environment2,
15
15
  complete2,
16
16
  clear2
17
- } from "../chunks/pty-handoff-d2t3jt2r.js";
17
+ } from "../chunks/pty-handoff-r2jrs2kk.js";
18
18
  import {
19
19
  decide2,
20
20
  fallback2,
@@ -4,7 +4,7 @@ import {
4
4
  complete2,
5
5
  clear2,
6
6
  exports_pty_handoff
7
- } from "./chunks/pty-handoff-d2t3jt2r.js";
7
+ } from "./chunks/pty-handoff-r2jrs2kk.js";
8
8
  export {
9
9
  exports_pty_handoff as PtyHandoff,
10
10
  clear2 as clear,
@@ -4,12 +4,12 @@ import {
4
4
  createData2
5
5
  } from "../chunks/pty-handoff-9vdz0zwn.js";
6
6
  import"../chunks/pty-handoff-m2eywc8w.js";
7
- import"../chunks/pty-handoff-j8bgrn1y.js";
8
- import"../chunks/pty-handoff-vyas3vgt.js";
7
+ import"../chunks/pty-handoff-xrgnamvt.js";
9
8
  import"../chunks/pty-handoff-1y4a697q.js";
10
- import"../chunks/pty-handoff-vt9jbch8.js";
9
+ import"../chunks/pty-handoff-vyas3vgt.js";
11
10
  import"../chunks/pty-handoff-ecs5ftka.js";
12
11
  import"../chunks/pty-handoff-nwcpakzx.js";
12
+ import"../chunks/pty-handoff-vt9jbch8.js";
13
13
  import"../chunks/pty-handoff-frbwqjmf.js";
14
14
  export {
15
15
  createData2 as createData,
@@ -4,7 +4,7 @@ import"../chunks/pty-handoff-vt9jbch8.js";
4
4
  import"../chunks/pty-handoff-vyas3vgt.js";
5
5
  import"../chunks/pty-handoff-frbwqjmf.js";
6
6
  import"../chunks/pty-handoff-1y4a697q.js";
7
- import"../chunks/pty-handoff-j8bgrn1y.js";
7
+ import"../chunks/pty-handoff-xrgnamvt.js";
8
8
  import"../chunks/pty-handoff-m2eywc8w.js";
9
9
  import {
10
10
  settleMs2,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/client",
4
- "version": "0.0.0-dev-20858",
4
+ "version": "0.0.0-dev-20859",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -57,8 +57,8 @@
57
57
  "typecheck": "tsgo --noEmit"
58
58
  },
59
59
  "dependencies": {
60
- "@opencode/schema": "0.0.0-dev-20858",
61
- "@opencode/protocol": "0.0.0-dev-20858"
60
+ "@opencode/schema": "0.0.0-dev-20859",
61
+ "@opencode/protocol": "0.0.0-dev-20859"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "effect": "4.0.1",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@effect/platform-node": "4.0.1",
77
- "@opencode/httpapi-codegen": "0.0.0-dev-20858",
77
+ "@opencode/httpapi-codegen": "0.0.0-dev-20859",
78
78
  "@tsconfig/bun": "1.0.9",
79
79
  "@types/bun": "1.4.0",
80
80
  "@typescript/native-preview": "7.0.0-dev.20251207.1",