@opencode/client 0.0.0-dev-21915 → 0.0.0-dev-21922

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.
Files changed (59) hide show
  1. package/dist/chunks/{rpc-runtime-10stgdsh.js → shared-events-10stgdsh.js} +1 -1
  2. package/dist/chunks/{rpc-runtime-15p82y03.js → shared-events-15p82y03.js} +2 -2
  3. package/dist/chunks/{rpc-runtime-8bbb028w.js → shared-events-8bbb028w.js} +1 -1
  4. package/dist/chunks/{rpc-runtime-2ny4vxct.js → shared-events-8ye1ye6f.js} +2 -2
  5. package/dist/chunks/{rpc-runtime-nk1xsepz.js → shared-events-nk1xsepz.js} +3 -3
  6. package/dist/chunks/{rpc-runtime-ryy6kscr.js → shared-events-ryy6kscr.js} +1 -1
  7. package/dist/chunks/{rpc-runtime-skhp7hxc.js → shared-events-skhp7hxc.js} +1 -1
  8. package/dist/chunks/{rpc-runtime-ykh90e52.js → shared-events-vjjdy6xx.js} +5 -5
  9. package/dist/chunks/{rpc-runtime-vsajws5y.js → shared-events-vsajws5y.js} +4 -4
  10. package/dist/chunks/{rpc-runtime-1evy2k36.js → shared-events-zyxm3269.js} +2 -2
  11. package/dist/chunks/{rpc-runtime-zzd46hf5.js → shared-events-zzd46hf5.js} +2 -2
  12. package/dist/contract.js +1 -1
  13. package/dist/effect/client.js +8 -8
  14. package/dist/effect/generated/client-error.js +1 -1
  15. package/dist/effect/generated/client.js +3 -3
  16. package/dist/effect/generated/index.js +4 -4
  17. package/dist/effect/index.js +8 -8
  18. package/dist/effect/rpc.js +2 -2
  19. package/dist/effect/service.js +6 -6
  20. package/dist/promise/client.js +7 -7
  21. package/dist/promise/generated/client-error.js +1 -1
  22. package/dist/promise/generated/client.js +2 -2
  23. package/dist/promise/generated/index.js +4 -4
  24. package/dist/promise/generated/types.d.ts +104 -96
  25. package/dist/promise/generated/types.js +1 -1
  26. package/dist/promise/index.js +8 -8
  27. package/dist/promise/rpc.js +2 -2
  28. package/dist/promise/service.js +6 -6
  29. package/dist/pty-handoff.js +4 -4
  30. package/dist/rpc-runtime.js +1 -1
  31. package/dist/service-contender.js +1 -1
  32. package/dist/service-probe.js +3 -3
  33. package/dist/service-timing.js +1 -1
  34. package/dist/service-version.js +1 -1
  35. package/dist/service.js +1 -1
  36. package/dist/shared-events.js +1 -1
  37. package/dist/solid/connection.js +1 -1
  38. package/dist/solid/data.js +9 -9
  39. package/dist/solid/index.js +13 -13
  40. package/dist/solid/pty.js +1 -1
  41. package/dist/solid/retention.js +1 -1
  42. package/dist/solid/usage.js +1 -1
  43. package/package.json +4 -4
  44. /package/dist/chunks/{rpc-runtime-6mptkzbc.js → shared-events-6mptkzbc.js} +0 -0
  45. /package/dist/chunks/{rpc-runtime-6mq2wh8y.js → shared-events-6mq2wh8y.js} +0 -0
  46. /package/dist/chunks/{rpc-runtime-8s2anffy.js → shared-events-8s2anffy.js} +0 -0
  47. /package/dist/chunks/{rpc-runtime-9rqn6x4v.js → shared-events-9rqn6x4v.js} +0 -0
  48. /package/dist/chunks/{rpc-runtime-c46qzyff.js → shared-events-c46qzyff.js} +0 -0
  49. /package/dist/chunks/{rpc-runtime-gne7h7mq.js → shared-events-gne7h7mq.js} +0 -0
  50. /package/dist/chunks/{rpc-runtime-m2eywc8w.js → shared-events-m2eywc8w.js} +0 -0
  51. /package/dist/chunks/{rpc-runtime-nwcpakzx.js → shared-events-nwcpakzx.js} +0 -0
  52. /package/dist/chunks/{rpc-runtime-qav6mfdz.js → shared-events-qav6mfdz.js} +0 -0
  53. /package/dist/chunks/{rpc-runtime-sxt88q69.js → shared-events-sxt88q69.js} +0 -0
  54. /package/dist/chunks/{rpc-runtime-ve4aws36.js → shared-events-ve4aws36.js} +0 -0
  55. /package/dist/chunks/{rpc-runtime-vmytr4q8.js → shared-events-vmytr4q8.js} +0 -0
  56. /package/dist/chunks/{rpc-runtime-vyas3vgt.js → shared-events-vyas3vgt.js} +0 -0
  57. /package/dist/chunks/{rpc-runtime-xgnj2w4v.js → shared-events-xgnj2w4v.js} +0 -0
  58. /package/dist/chunks/{rpc-runtime-y2etg5bs.js → shared-events-y2etg5bs.js} +0 -0
  59. /package/dist/chunks/{rpc-runtime-ydhz1zrh.js → shared-events-ydhz1zrh.js} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  isFormNotFoundError2,
3
3
  isFormAlreadySettledError2,
4
4
  isPermissionNotFoundError2
5
- } from "./rpc-runtime-c46qzyff.js";
5
+ } from "./shared-events-c46qzyff.js";
6
6
 
7
7
  // src/solid/data.ts
8
8
  import { Worktree } from "@opencode/schema/worktree";
@@ -3,10 +3,10 @@ import {
3
3
  readError2,
4
4
  event2,
5
5
  eventType2
6
- } from "./rpc-runtime-ryy6kscr.js";
6
+ } from "./shared-events-ryy6kscr.js";
7
7
  import {
8
8
  __export
9
- } from "./rpc-runtime-9rqn6x4v.js";
9
+ } from "./shared-events-9rqn6x4v.js";
10
10
 
11
11
  // src/effect/rpc.ts
12
12
  var exports_rpc = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./rpc-runtime-9rqn6x4v.js";
3
+ } from "./shared-events-9rqn6x4v.js";
4
4
 
5
5
  // src/shared-events.ts
6
6
  var exports_shared_events = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  defaultEnsureTiming2
3
- } from "./rpc-runtime-xgnj2w4v.js";
3
+ } from "./shared-events-xgnj2w4v.js";
4
4
  import {
5
5
  matchesVersion2
6
- } from "./rpc-runtime-sxt88q69.js";
6
+ } from "./shared-events-sxt88q69.js";
7
7
 
8
8
  // src/service-probe.ts
9
9
  import { homedir } from "node:os";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ClientApi2
3
- } from "./rpc-runtime-vmytr4q8.js";
3
+ } from "./shared-events-vmytr4q8.js";
4
4
  import {
5
5
  ClientError2
6
- } from "./rpc-runtime-y2etg5bs.js";
6
+ } from "./shared-events-y2etg5bs.js";
7
7
  import {
8
8
  __export
9
- } from "./rpc-runtime-9rqn6x4v.js";
9
+ } from "./shared-events-9rqn6x4v.js";
10
10
 
11
11
  // src/effect/generated/client.ts
12
12
  var exports_client2 = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./rpc-runtime-9rqn6x4v.js";
3
+ } from "./shared-events-9rqn6x4v.js";
4
4
 
5
5
  // src/rpc-runtime.ts
6
6
  var exports_rpc_runtime = {};
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isRpcError2,
3
3
  isRpcInternalError2
4
- } from "./rpc-runtime-c46qzyff.js";
4
+ } from "./shared-events-c46qzyff.js";
5
5
 
6
6
  // src/promise/rpc.ts
7
7
  function makeRpc2(raw, events) {
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  make7
3
- } from "./rpc-runtime-8bbb028w.js";
3
+ } from "./shared-events-8bbb028w.js";
4
4
  import {
5
5
  ClientError2
6
- } from "./rpc-runtime-y2etg5bs.js";
6
+ } from "./shared-events-y2etg5bs.js";
7
7
  import {
8
8
  make4
9
- } from "./rpc-runtime-nk1xsepz.js";
9
+ } from "./shared-events-nk1xsepz.js";
10
10
  import {
11
11
  make3,
12
12
  aborted2
13
- } from "./rpc-runtime-15p82y03.js";
13
+ } from "./shared-events-15p82y03.js";
14
14
  import {
15
15
  __export
16
- } from "./rpc-runtime-9rqn6x4v.js";
16
+ } from "./shared-events-9rqn6x4v.js";
17
17
 
18
18
  // src/effect/client.ts
19
19
  var exports_client = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  make7
3
- } from "./rpc-runtime-8bbb028w.js";
3
+ } from "./shared-events-8bbb028w.js";
4
4
  import {
5
5
  make6
6
- } from "./rpc-runtime-zzd46hf5.js";
6
+ } from "./shared-events-zzd46hf5.js";
7
7
  import {
8
8
  makeRpc2
9
- } from "./rpc-runtime-skhp7hxc.js";
9
+ } from "./shared-events-skhp7hxc.js";
10
10
  import {
11
11
  __export
12
- } from "./rpc-runtime-9rqn6x4v.js";
12
+ } from "./shared-events-9rqn6x4v.js";
13
13
 
14
14
  // src/promise/client.ts
15
15
  var exports_client3 = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  headers2
3
- } from "./rpc-runtime-2ny4vxct.js";
3
+ } from "./shared-events-8ye1ye6f.js";
4
4
  import {
5
5
  __export
6
- } from "./rpc-runtime-9rqn6x4v.js";
6
+ } from "./shared-events-9rqn6x4v.js";
7
7
 
8
8
  // src/pty-handoff.ts
9
9
  var exports_pty_handoff = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ClientError3
3
- } from "./rpc-runtime-nwcpakzx.js";
3
+ } from "./shared-events-nwcpakzx.js";
4
4
  import {
5
5
  __export
6
- } from "./rpc-runtime-9rqn6x4v.js";
6
+ } from "./shared-events-9rqn6x4v.js";
7
7
 
8
8
  // src/promise/generated/client.ts
9
9
  var exports_client4 = {};
package/dist/contract.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  effectOmitEndpoints2,
4
4
  groupNames2,
5
5
  promiseOmitEndpoints2
6
- } from "./chunks/rpc-runtime-vmytr4q8.js";
6
+ } from "./chunks/shared-events-vmytr4q8.js";
7
7
  export {
8
8
  ClientApi2 as ClientApi,
9
9
  effectOmitEndpoints2 as effectOmitEndpoints,
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  make2,
3
3
  exports_client
4
- } from "../chunks/rpc-runtime-ykh90e52.js";
5
- import"../chunks/rpc-runtime-15p82y03.js";
6
- import"../chunks/rpc-runtime-6mptkzbc.js";
7
- import"../chunks/rpc-runtime-nk1xsepz.js";
8
- import"../chunks/rpc-runtime-y2etg5bs.js";
9
- import"../chunks/rpc-runtime-8bbb028w.js";
10
- import"../chunks/rpc-runtime-ryy6kscr.js";
11
- import"../chunks/rpc-runtime-vmytr4q8.js";
4
+ } from "../chunks/shared-events-vjjdy6xx.js";
5
+ import"../chunks/shared-events-15p82y03.js";
6
+ import"../chunks/shared-events-6mptkzbc.js";
7
+ import"../chunks/shared-events-nk1xsepz.js";
8
+ import"../chunks/shared-events-y2etg5bs.js";
9
+ import"../chunks/shared-events-vmytr4q8.js";
10
+ import"../chunks/shared-events-8bbb028w.js";
11
+ import"../chunks/shared-events-ryy6kscr.js";
12
12
  export {
13
13
  exports_client as OpenCode,
14
14
  make2 as make
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ClientError2
3
- } from "../../chunks/rpc-runtime-y2etg5bs.js";
3
+ } from "../../chunks/shared-events-y2etg5bs.js";
4
4
  export {
5
5
  ClientError2 as ClientError
6
6
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  make4
3
- } from "../../chunks/rpc-runtime-nk1xsepz.js";
4
- import"../../chunks/rpc-runtime-y2etg5bs.js";
5
- import"../../chunks/rpc-runtime-vmytr4q8.js";
3
+ } from "../../chunks/shared-events-nk1xsepz.js";
4
+ import"../../chunks/shared-events-y2etg5bs.js";
5
+ import"../../chunks/shared-events-vmytr4q8.js";
6
6
  export {
7
7
  make4 as make
8
8
  };
@@ -1,11 +1,11 @@
1
- import"../../chunks/rpc-runtime-6mptkzbc.js";
1
+ import"../../chunks/shared-events-6mptkzbc.js";
2
2
  import {
3
3
  exports_client2
4
- } from "../../chunks/rpc-runtime-nk1xsepz.js";
4
+ } from "../../chunks/shared-events-nk1xsepz.js";
5
5
  import {
6
6
  ClientError2
7
- } from "../../chunks/rpc-runtime-y2etg5bs.js";
8
- import"../../chunks/rpc-runtime-vmytr4q8.js";
7
+ } from "../../chunks/shared-events-y2etg5bs.js";
8
+ import"../../chunks/shared-events-vmytr4q8.js";
9
9
  export {
10
10
  ClientError2 as ClientError,
11
11
  exports_client2 as OpenCode
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  ClientError2
3
- } from "../chunks/rpc-runtime-y2etg5bs.js";
4
- import"../chunks/rpc-runtime-vmytr4q8.js";
5
- import"../chunks/rpc-runtime-nk1xsepz.js";
6
- import"../chunks/rpc-runtime-6mptkzbc.js";
7
- import"../chunks/rpc-runtime-8bbb028w.js";
8
- import"../chunks/rpc-runtime-ryy6kscr.js";
9
- import"../chunks/rpc-runtime-15p82y03.js";
3
+ } from "../chunks/shared-events-y2etg5bs.js";
4
+ import"../chunks/shared-events-vmytr4q8.js";
5
+ import"../chunks/shared-events-nk1xsepz.js";
6
+ import"../chunks/shared-events-6mptkzbc.js";
7
+ import"../chunks/shared-events-8bbb028w.js";
8
+ import"../chunks/shared-events-ryy6kscr.js";
9
+ import"../chunks/shared-events-15p82y03.js";
10
10
  import {
11
11
  exports_client
12
- } from "../chunks/rpc-runtime-ykh90e52.js";
12
+ } from "../chunks/shared-events-vjjdy6xx.js";
13
13
 
14
14
  // src/effect/index.ts
15
15
  import { Agent } from "@opencode/schema/agent";
@@ -2,8 +2,8 @@ import {
2
2
  make3,
3
3
  aborted2,
4
4
  exports_rpc
5
- } from "../chunks/rpc-runtime-15p82y03.js";
6
- import"../chunks/rpc-runtime-ryy6kscr.js";
5
+ } from "../chunks/shared-events-15p82y03.js";
6
+ import"../chunks/shared-events-ryy6kscr.js";
7
7
  export {
8
8
  exports_rpc as RpcClientRuntime,
9
9
  aborted2 as aborted,
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  spawnServiceContender2,
3
3
  contenderPool2
4
- } from "../chunks/rpc-runtime-ve4aws36.js";
4
+ } from "../chunks/shared-events-ve4aws36.js";
5
5
  import {
6
6
  defaultEnsureTiming2,
7
7
  ensureTiming2
8
- } from "../chunks/rpc-runtime-xgnj2w4v.js";
8
+ } from "../chunks/shared-events-xgnj2w4v.js";
9
9
  import {
10
10
  matchesVersion2
11
- } from "../chunks/rpc-runtime-sxt88q69.js";
11
+ } from "../chunks/shared-events-sxt88q69.js";
12
12
  import {
13
13
  decide2,
14
14
  fallback2,
15
15
  same2,
16
16
  probeResult2,
17
17
  headers2
18
- } from "../chunks/rpc-runtime-2ny4vxct.js";
18
+ } from "../chunks/shared-events-8ye1ye6f.js";
19
19
  import {
20
20
  prepare2,
21
21
  environment2,
22
22
  complete2,
23
23
  clear2
24
- } from "../chunks/rpc-runtime-1evy2k36.js";
25
- import"../chunks/rpc-runtime-qav6mfdz.js";
24
+ } from "../chunks/shared-events-zyxm3269.js";
25
+ import"../chunks/shared-events-qav6mfdz.js";
26
26
 
27
27
  // src/effect/service.ts
28
28
  import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  make5,
3
3
  exports_client3
4
- } from "../chunks/rpc-runtime-vsajws5y.js";
5
- import"../chunks/rpc-runtime-vyas3vgt.js";
6
- import"../chunks/rpc-runtime-skhp7hxc.js";
7
- import"../chunks/rpc-runtime-c46qzyff.js";
8
- import"../chunks/rpc-runtime-zzd46hf5.js";
9
- import"../chunks/rpc-runtime-nwcpakzx.js";
10
- import"../chunks/rpc-runtime-8bbb028w.js";
4
+ } from "../chunks/shared-events-vsajws5y.js";
5
+ import"../chunks/shared-events-vyas3vgt.js";
6
+ import"../chunks/shared-events-skhp7hxc.js";
7
+ import"../chunks/shared-events-c46qzyff.js";
8
+ import"../chunks/shared-events-zzd46hf5.js";
9
+ import"../chunks/shared-events-nwcpakzx.js";
10
+ import"../chunks/shared-events-8bbb028w.js";
11
11
  export {
12
12
  exports_client3 as OpenCode,
13
13
  make5 as make
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ClientError3
3
- } from "../../chunks/rpc-runtime-nwcpakzx.js";
3
+ } from "../../chunks/shared-events-nwcpakzx.js";
4
4
  export {
5
5
  ClientError3 as ClientError
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make6
3
- } from "../../chunks/rpc-runtime-zzd46hf5.js";
4
- import"../../chunks/rpc-runtime-nwcpakzx.js";
3
+ } from "../../chunks/shared-events-zzd46hf5.js";
4
+ import"../../chunks/shared-events-nwcpakzx.js";
5
5
  export {
6
6
  make6 as make
7
7
  };
@@ -1,4 +1,4 @@
1
- import"../../chunks/rpc-runtime-vyas3vgt.js";
1
+ import"../../chunks/shared-events-vyas3vgt.js";
2
2
  import {
3
3
  isInvalidRequestError2,
4
4
  isUnauthorizedError2,
@@ -34,13 +34,13 @@ import {
34
34
  isShellNotFoundError2,
35
35
  isWorktreeError2,
36
36
  isVcsInitNotSupportedError2
37
- } from "../../chunks/rpc-runtime-c46qzyff.js";
37
+ } from "../../chunks/shared-events-c46qzyff.js";
38
38
  import {
39
39
  exports_client4
40
- } from "../../chunks/rpc-runtime-zzd46hf5.js";
40
+ } from "../../chunks/shared-events-zzd46hf5.js";
41
41
  import {
42
42
  ClientError3
43
- } from "../../chunks/rpc-runtime-nwcpakzx.js";
43
+ } from "../../chunks/shared-events-nwcpakzx.js";
44
44
  export {
45
45
  ClientError3 as ClientError,
46
46
  exports_client4 as OpenCode,
@@ -29,6 +29,7 @@ export type ProviderCompaction = {
29
29
  } | {
30
30
  type: "native";
31
31
  };
32
+ export type ProviderCacheTTL = `${number}${"ms" | "s" | "m" | "h" | "d"}`;
32
33
  export type ProviderTransport = "http" | "websocket";
33
34
  export type ProviderEncoding = "zstd" | "gzip" | "none";
34
35
  export type AgentColor = string;
@@ -509,37 +510,8 @@ export type ModelRef = {
509
510
  providerID: ProviderID;
510
511
  variant?: string;
511
512
  };
512
- export type ProviderSettings = {
513
- timeout?: number | false;
514
- headerTimeout?: number | false;
515
- chunkTimeout?: number | false;
516
- compaction?: ProviderCompaction;
517
- transport?: ProviderTransport;
518
- encoding?: ProviderEncoding;
519
- } & {
520
- [x: string]: any;
521
- };
522
- export type ModelSettings = {
523
- compaction?: ProviderCompaction;
524
- encoding?: ProviderEncoding;
525
- } & {
526
- [x: string]: any;
527
- };
528
- export type ConfigProviderSettings = {
529
- timeout?: number | false;
530
- headerTimeout?: number | false;
531
- chunkTimeout?: number | false;
532
- compaction?: ProviderCompaction;
533
- transport?: ProviderTransport;
534
- encoding?: ProviderEncoding;
535
- } & {
536
- [x: string]: JsonValue | null;
537
- };
538
- export type ConfigModelSettings = {
539
- compaction?: ProviderCompaction;
540
- encoding?: ProviderEncoding;
541
- } & {
542
- [x: string]: JsonValue | null;
513
+ export type ProviderCache = {
514
+ ttl?: ProviderCacheTTL;
543
515
  };
544
516
  export type PermissionRule = {
545
517
  action: string;
@@ -1247,24 +1219,41 @@ export type SessionMessageCompactionCompleted = {
1247
1219
  cost?: MoneyUSD;
1248
1220
  tokens?: TokenUsageInfo;
1249
1221
  };
1250
- export type ProviderRequest = {
1251
- settings: ProviderSettings;
1252
- headers: {
1253
- [x: string]: string;
1254
- };
1255
- body: {
1256
- [x: string]: any;
1257
- };
1222
+ export type ProviderSettings = {
1223
+ timeout?: number | false;
1224
+ headerTimeout?: number | false;
1225
+ chunkTimeout?: number | false;
1226
+ compaction?: ProviderCompaction;
1227
+ cache?: ProviderCache;
1228
+ transport?: ProviderTransport;
1229
+ encoding?: ProviderEncoding;
1230
+ } & {
1231
+ [x: string]: any;
1258
1232
  };
1259
- export type ModelVariant = {
1260
- id: string;
1261
- settings?: ModelSettings;
1262
- headers?: {
1263
- [x: string]: string;
1264
- };
1265
- body?: {
1266
- [x: string]: any;
1267
- };
1233
+ export type ModelSettings = {
1234
+ compaction?: ProviderCompaction;
1235
+ cache?: ProviderCache;
1236
+ encoding?: ProviderEncoding;
1237
+ } & {
1238
+ [x: string]: any;
1239
+ };
1240
+ export type ConfigProviderSettings = {
1241
+ timeout?: number | false;
1242
+ headerTimeout?: number | false;
1243
+ chunkTimeout?: number | false;
1244
+ compaction?: ProviderCompaction;
1245
+ cache?: ProviderCache;
1246
+ transport?: ProviderTransport;
1247
+ encoding?: ProviderEncoding;
1248
+ } & {
1249
+ [x: string]: JsonValue | null;
1250
+ };
1251
+ export type ConfigModelSettings = {
1252
+ compaction?: ProviderCompaction;
1253
+ cache?: ProviderCache;
1254
+ encoding?: ProviderEncoding;
1255
+ } & {
1256
+ [x: string]: JsonValue | null;
1268
1257
  };
1269
1258
  export type PermissionRuleset = Array<PermissionRule>;
1270
1259
  export type UsageLimitsBudget = {
@@ -2787,22 +2776,6 @@ export type FormState = {
2787
2776
  status: "cancelled";
2788
2777
  message?: string;
2789
2778
  };
2790
- export type ProviderInfo = {
2791
- id: ProviderID;
2792
- canonical?: ProviderID;
2793
- integrationID?: IntegrationID;
2794
- name: string;
2795
- activation: "auto" | "enabled" | "disabled";
2796
- package: string;
2797
- compatibility?: ProviderCompatibility;
2798
- settings?: ProviderSettings;
2799
- headers?: {
2800
- [x: string]: string;
2801
- };
2802
- body?: {
2803
- [x: string]: any;
2804
- };
2805
- };
2806
2779
  export type VoiceModelsResponse = {
2807
2780
  data: {
2808
2781
  models: Array<VoiceModel>;
@@ -2912,49 +2885,41 @@ export type SessionStatsInfo = {
2912
2885
  models: Array<SessionStatsModelUsage>;
2913
2886
  };
2914
2887
  export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
2915
- export type ModelInfo = {
2916
- id: string;
2917
- modelID: string;
2918
- providerID: ProviderID;
2888
+ export type ProviderRequest = {
2889
+ settings: ProviderSettings;
2890
+ headers: {
2891
+ [x: string]: string;
2892
+ };
2893
+ body: {
2894
+ [x: string]: any;
2895
+ };
2896
+ };
2897
+ export type ProviderInfo = {
2898
+ id: ProviderID;
2919
2899
  canonical?: ProviderID;
2920
- family?: string;
2900
+ integrationID?: IntegrationID;
2921
2901
  name: string;
2922
- compatibility?: ModelCompatibility;
2923
- package?: string;
2924
- settings?: ModelSettings;
2902
+ activation: "auto" | "enabled" | "disabled";
2903
+ package: string;
2904
+ compatibility?: ProviderCompatibility;
2905
+ settings?: ProviderSettings;
2925
2906
  headers?: {
2926
2907
  [x: string]: string;
2927
2908
  };
2928
2909
  body?: {
2929
2910
  [x: string]: any;
2930
2911
  };
2931
- capabilities: ModelCapabilities;
2932
- variants: Array<ModelVariant>;
2933
- time: {
2934
- released: number;
2912
+ };
2913
+ export type ModelVariant = {
2914
+ id: string;
2915
+ settings?: ModelSettings;
2916
+ headers?: {
2917
+ [x: string]: string;
2935
2918
  };
2936
- cost: Array<ModelCost>;
2937
- status: "alpha" | "beta" | "deprecated" | "active";
2938
- enabled: boolean;
2939
- limit: {
2940
- context: number;
2941
- input?: number;
2942
- output: number;
2919
+ body?: {
2920
+ [x: string]: any;
2943
2921
  };
2944
2922
  };
2945
- export type AgentInfo = {
2946
- id: AgentID;
2947
- name: string;
2948
- model?: ModelRef;
2949
- request: ProviderRequest;
2950
- system?: string;
2951
- description?: string;
2952
- mode: "subagent" | "primary" | "all";
2953
- hidden: boolean;
2954
- color?: AgentColor;
2955
- steps?: number;
2956
- permissions: PermissionRuleset;
2957
- };
2958
2923
  export type SessionInfo = {
2959
2924
  id: SessionID;
2960
2925
  parentID?: SessionID;
@@ -3377,6 +3342,49 @@ export type CredentialEntry = {
3377
3342
  value: CredentialValue;
3378
3343
  };
3379
3344
  export type FormFields2 = [FormField1, ...Array<FormField1>];
3345
+ export type AgentInfo = {
3346
+ id: AgentID;
3347
+ name: string;
3348
+ model?: ModelRef;
3349
+ request: ProviderRequest;
3350
+ system?: string;
3351
+ description?: string;
3352
+ mode: "subagent" | "primary" | "all";
3353
+ hidden: boolean;
3354
+ color?: AgentColor;
3355
+ steps?: number;
3356
+ permissions: PermissionRuleset;
3357
+ };
3358
+ export type ModelInfo = {
3359
+ id: string;
3360
+ modelID: string;
3361
+ providerID: ProviderID;
3362
+ canonical?: ProviderID;
3363
+ family?: string;
3364
+ name: string;
3365
+ compatibility?: ModelCompatibility;
3366
+ package?: string;
3367
+ settings?: ModelSettings;
3368
+ headers?: {
3369
+ [x: string]: string;
3370
+ };
3371
+ body?: {
3372
+ [x: string]: any;
3373
+ };
3374
+ capabilities: ModelCapabilities;
3375
+ variants: Array<ModelVariant>;
3376
+ time: {
3377
+ released: number;
3378
+ };
3379
+ cost: Array<ModelCost>;
3380
+ status: "alpha" | "beta" | "deprecated" | "active";
3381
+ enabled: boolean;
3382
+ limit: {
3383
+ context: number;
3384
+ input?: number;
3385
+ output: number;
3386
+ };
3387
+ };
3380
3388
  export type SessionsResponse = {
3381
3389
  data: Array<SessionInfo>;
3382
3390
  cursor: {
@@ -33,7 +33,7 @@ import {
33
33
  isShellNotFoundError2,
34
34
  isWorktreeError2,
35
35
  isVcsInitNotSupportedError2
36
- } from "../../chunks/rpc-runtime-c46qzyff.js";
36
+ } from "../../chunks/shared-events-c46qzyff.js";
37
37
  export {
38
38
  isAgentNotFoundError2 as isAgentNotFoundError,
39
39
  isCommandExecutionError2 as isCommandExecutionError,
@@ -1,9 +1,9 @@
1
- import"../chunks/rpc-runtime-m2eywc8w.js";
1
+ import"../chunks/shared-events-m2eywc8w.js";
2
2
  import {
3
3
  exports_client3
4
- } from "../chunks/rpc-runtime-vsajws5y.js";
5
- import"../chunks/rpc-runtime-vyas3vgt.js";
6
- import"../chunks/rpc-runtime-skhp7hxc.js";
4
+ } from "../chunks/shared-events-vsajws5y.js";
5
+ import"../chunks/shared-events-vyas3vgt.js";
6
+ import"../chunks/shared-events-skhp7hxc.js";
7
7
  import {
8
8
  isInvalidRequestError2,
9
9
  isUnauthorizedError2,
@@ -39,12 +39,12 @@ import {
39
39
  isShellNotFoundError2,
40
40
  isWorktreeError2,
41
41
  isVcsInitNotSupportedError2
42
- } from "../chunks/rpc-runtime-c46qzyff.js";
43
- import"../chunks/rpc-runtime-zzd46hf5.js";
42
+ } from "../chunks/shared-events-c46qzyff.js";
43
+ import"../chunks/shared-events-zzd46hf5.js";
44
44
  import {
45
45
  ClientError3
46
- } from "../chunks/rpc-runtime-nwcpakzx.js";
47
- import"../chunks/rpc-runtime-8bbb028w.js";
46
+ } from "../chunks/shared-events-nwcpakzx.js";
47
+ import"../chunks/shared-events-8bbb028w.js";
48
48
  export {
49
49
  ClientError3 as ClientError,
50
50
  exports_client3 as OpenCode,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  makeRpc2
3
- } from "../chunks/rpc-runtime-skhp7hxc.js";
4
- import"../chunks/rpc-runtime-c46qzyff.js";
3
+ } from "../chunks/shared-events-skhp7hxc.js";
4
+ import"../chunks/shared-events-c46qzyff.js";
5
5
  export {
6
6
  makeRpc2 as makeRpc
7
7
  };
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  spawnServiceContender2,
3
3
  contenderPool2
4
- } from "../chunks/rpc-runtime-ve4aws36.js";
4
+ } from "../chunks/shared-events-ve4aws36.js";
5
5
  import {
6
6
  defaultEnsureTiming2,
7
7
  ensureTiming2
8
- } from "../chunks/rpc-runtime-xgnj2w4v.js";
8
+ } from "../chunks/shared-events-xgnj2w4v.js";
9
9
  import {
10
10
  matchesVersion2
11
- } from "../chunks/rpc-runtime-sxt88q69.js";
11
+ } from "../chunks/shared-events-sxt88q69.js";
12
12
  import {
13
13
  decide2,
14
14
  fallback2,
15
15
  same2,
16
16
  probeResult2,
17
17
  headers2
18
- } from "../chunks/rpc-runtime-2ny4vxct.js";
18
+ } from "../chunks/shared-events-8ye1ye6f.js";
19
19
  import {
20
20
  prepare2,
21
21
  environment2,
22
22
  complete2,
23
23
  clear2
24
- } from "../chunks/rpc-runtime-1evy2k36.js";
25
- import"../chunks/rpc-runtime-qav6mfdz.js";
24
+ } from "../chunks/shared-events-zyxm3269.js";
25
+ import"../chunks/shared-events-qav6mfdz.js";
26
26
 
27
27
  // src/promise/service.ts
28
28
  import { readFile, rm } from "node:fs/promises";
@@ -4,10 +4,10 @@ import {
4
4
  complete2,
5
5
  clear2,
6
6
  exports_pty_handoff
7
- } from "./chunks/rpc-runtime-1evy2k36.js";
8
- import"./chunks/rpc-runtime-2ny4vxct.js";
9
- import"./chunks/rpc-runtime-sxt88q69.js";
10
- import"./chunks/rpc-runtime-xgnj2w4v.js";
7
+ } from "./chunks/shared-events-zyxm3269.js";
8
+ import"./chunks/shared-events-8ye1ye6f.js";
9
+ import"./chunks/shared-events-xgnj2w4v.js";
10
+ import"./chunks/shared-events-sxt88q69.js";
11
11
  export {
12
12
  exports_pty_handoff as PtyHandoff,
13
13
  clear2 as clear,
@@ -4,7 +4,7 @@ import {
4
4
  event2,
5
5
  eventType2,
6
6
  exports_rpc_runtime
7
- } from "./chunks/rpc-runtime-ryy6kscr.js";
7
+ } from "./chunks/shared-events-ryy6kscr.js";
8
8
  export {
9
9
  exports_rpc_runtime as RpcRuntime,
10
10
  event2 as event,
@@ -2,7 +2,7 @@ import {
2
2
  spawnServiceContender2,
3
3
  contenderPool2,
4
4
  contenderFinished2
5
- } from "./chunks/rpc-runtime-ve4aws36.js";
5
+ } from "./chunks/shared-events-ve4aws36.js";
6
6
  export {
7
7
  contenderFinished2 as contenderFinished,
8
8
  contenderPool2 as contenderPool,
@@ -4,9 +4,9 @@ import {
4
4
  same2,
5
5
  probeResult2,
6
6
  headers2
7
- } from "./chunks/rpc-runtime-2ny4vxct.js";
8
- import"./chunks/rpc-runtime-sxt88q69.js";
9
- import"./chunks/rpc-runtime-xgnj2w4v.js";
7
+ } from "./chunks/shared-events-8ye1ye6f.js";
8
+ import"./chunks/shared-events-xgnj2w4v.js";
9
+ import"./chunks/shared-events-sxt88q69.js";
10
10
  export {
11
11
  decide2 as decide,
12
12
  fallback2 as fallback,
@@ -2,7 +2,7 @@ import {
2
2
  defaultEnsureTiming2,
3
3
  ensureTiming2,
4
4
  withEnsureTiming2
5
- } from "./chunks/rpc-runtime-xgnj2w4v.js";
5
+ } from "./chunks/shared-events-xgnj2w4v.js";
6
6
  export {
7
7
  defaultEnsureTiming2 as defaultEnsureTiming,
8
8
  ensureTiming2 as ensureTiming,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  matchesVersion2
3
- } from "./chunks/rpc-runtime-sxt88q69.js";
3
+ } from "./chunks/shared-events-sxt88q69.js";
4
4
  export {
5
5
  matchesVersion2 as matchesVersion
6
6
  };
package/dist/service.js CHANGED
@@ -1 +1 @@
1
- import"./chunks/rpc-runtime-qav6mfdz.js";
1
+ import"./chunks/shared-events-qav6mfdz.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make7,
3
3
  exports_shared_events
4
- } from "./chunks/rpc-runtime-8bbb028w.js";
4
+ } from "./chunks/shared-events-8bbb028w.js";
5
5
  export {
6
6
  exports_shared_events as SharedEvents,
7
7
  make7 as make
@@ -2,7 +2,7 @@ import {
2
2
  defaultIdleTimeout2,
3
3
  foregroundIdleThreshold2,
4
4
  createClientConnection2
5
- } from "../chunks/rpc-runtime-ydhz1zrh.js";
5
+ } from "../chunks/shared-events-ydhz1zrh.js";
6
6
  export {
7
7
  createClientConnection2 as createClientConnection,
8
8
  defaultIdleTimeout2 as defaultIdleTimeout,
@@ -2,15 +2,15 @@ import {
2
2
  settleMs2,
3
3
  locationKey2,
4
4
  createData2
5
- } from "../chunks/rpc-runtime-10stgdsh.js";
6
- import"../chunks/rpc-runtime-m2eywc8w.js";
7
- import"../chunks/rpc-runtime-vsajws5y.js";
8
- import"../chunks/rpc-runtime-vyas3vgt.js";
9
- import"../chunks/rpc-runtime-skhp7hxc.js";
10
- import"../chunks/rpc-runtime-c46qzyff.js";
11
- import"../chunks/rpc-runtime-zzd46hf5.js";
12
- import"../chunks/rpc-runtime-nwcpakzx.js";
13
- import"../chunks/rpc-runtime-8bbb028w.js";
5
+ } from "../chunks/shared-events-10stgdsh.js";
6
+ import"../chunks/shared-events-m2eywc8w.js";
7
+ import"../chunks/shared-events-vsajws5y.js";
8
+ import"../chunks/shared-events-vyas3vgt.js";
9
+ import"../chunks/shared-events-skhp7hxc.js";
10
+ import"../chunks/shared-events-c46qzyff.js";
11
+ import"../chunks/shared-events-zzd46hf5.js";
12
+ import"../chunks/shared-events-nwcpakzx.js";
13
+ import"../chunks/shared-events-8bbb028w.js";
14
14
  export {
15
15
  createData2 as createData,
16
16
  locationKey2 as locationKey,
@@ -1,31 +1,31 @@
1
- import"../chunks/rpc-runtime-nwcpakzx.js";
2
- import"../chunks/rpc-runtime-zzd46hf5.js";
3
- import"../chunks/rpc-runtime-c46qzyff.js";
4
- import"../chunks/rpc-runtime-vyas3vgt.js";
5
- import"../chunks/rpc-runtime-8bbb028w.js";
6
- import"../chunks/rpc-runtime-skhp7hxc.js";
7
- import"../chunks/rpc-runtime-vsajws5y.js";
8
- import"../chunks/rpc-runtime-m2eywc8w.js";
1
+ import"../chunks/shared-events-nwcpakzx.js";
2
+ import"../chunks/shared-events-zzd46hf5.js";
3
+ import"../chunks/shared-events-c46qzyff.js";
4
+ import"../chunks/shared-events-vyas3vgt.js";
5
+ import"../chunks/shared-events-8bbb028w.js";
6
+ import"../chunks/shared-events-skhp7hxc.js";
7
+ import"../chunks/shared-events-vsajws5y.js";
8
+ import"../chunks/shared-events-m2eywc8w.js";
9
9
  import {
10
10
  settleMs2,
11
11
  locationKey2,
12
12
  createData2
13
- } from "../chunks/rpc-runtime-10stgdsh.js";
13
+ } from "../chunks/shared-events-10stgdsh.js";
14
14
  import {
15
15
  defaultIdleTimeout2,
16
16
  foregroundIdleThreshold2,
17
17
  createClientConnection2
18
- } from "../chunks/rpc-runtime-ydhz1zrh.js";
18
+ } from "../chunks/shared-events-ydhz1zrh.js";
19
19
  import {
20
20
  createPtyClient2,
21
21
  createPersistentPtyClient2
22
- } from "../chunks/rpc-runtime-gne7h7mq.js";
22
+ } from "../chunks/shared-events-gne7h7mq.js";
23
23
  import {
24
24
  createSessionRetention2
25
- } from "../chunks/rpc-runtime-6mq2wh8y.js";
25
+ } from "../chunks/shared-events-6mq2wh8y.js";
26
26
  import {
27
27
  lastAssistantWithUsage2
28
- } from "../chunks/rpc-runtime-8s2anffy.js";
28
+ } from "../chunks/shared-events-8s2anffy.js";
29
29
  export {
30
30
  createClientConnection2 as createClientConnection,
31
31
  createData2 as createData,
package/dist/solid/pty.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createPtyClient2,
3
3
  createPersistentPtyClient2
4
- } from "../chunks/rpc-runtime-gne7h7mq.js";
4
+ } from "../chunks/shared-events-gne7h7mq.js";
5
5
  export {
6
6
  createPersistentPtyClient2 as createPersistentPtyClient,
7
7
  createPtyClient2 as createPtyClient
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createSessionRetention2
3
- } from "../chunks/rpc-runtime-6mq2wh8y.js";
3
+ } from "../chunks/shared-events-6mq2wh8y.js";
4
4
  export {
5
5
  createSessionRetention2 as createSessionRetention
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  lastAssistantWithUsage2
3
- } from "../chunks/rpc-runtime-8s2anffy.js";
3
+ } from "../chunks/shared-events-8s2anffy.js";
4
4
  export {
5
5
  lastAssistantWithUsage2 as lastAssistantWithUsage
6
6
  };
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-21915",
4
+ "version": "0.0.0-dev-21922",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -62,8 +62,8 @@
62
62
  "typecheck:tsc": "tsc --noEmit"
63
63
  },
64
64
  "dependencies": {
65
- "@opencode/schema": "0.0.0-dev-21915",
66
- "@opencode/protocol": "0.0.0-dev-21915"
65
+ "@opencode/schema": "0.0.0-dev-21922",
66
+ "@opencode/protocol": "0.0.0-dev-21922"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "effect": "4.0.1",
@@ -80,7 +80,7 @@
80
80
  "devDependencies": {
81
81
  "@effect/platform-node": "4.0.1",
82
82
  "@modelcontextprotocol/client": "2.3.1",
83
- "@opencode/httpapi-codegen": "0.0.0-dev-21915",
83
+ "@opencode/httpapi-codegen": "0.0.0-dev-21922",
84
84
  "@tsconfig/bun": "1.0.9",
85
85
  "@types/bun": "1.4.3",
86
86
  "@typescript/native": "npm:typescript@7.1.0-beta",