@opencode/client 0.0.0-dev-21881 → 0.0.0-dev-21903

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 (66) hide show
  1. package/dist/chunks/{pty-handoff-bpcm6er9.js → rpc-runtime-10stgdsh.js} +79 -50
  2. package/dist/chunks/{pty-handoff-s062yqxj.js → rpc-runtime-1m3dzmf1.js} +2 -2
  3. package/dist/chunks/{pty-handoff-y2etg5bs.js → rpc-runtime-7f0py9js.js} +2 -2
  4. package/dist/chunks/{pty-handoff-jq91dnkq.js → rpc-runtime-7saa3msa.js} +17 -17
  5. package/dist/chunks/{pty-handoff-8bbb028w.js → rpc-runtime-8bbb028w.js} +1 -1
  6. package/dist/chunks/{pty-handoff-2ny4vxct.js → rpc-runtime-8ye1ye6f.js} +2 -2
  7. package/dist/chunks/{pty-handoff-d4bnv4f0.js → rpc-runtime-ff0ps5x1.js} +18 -11
  8. package/dist/chunks/rpc-runtime-hjkdb2as.js +30 -0
  9. package/dist/chunks/{pty-handoff-nwcpakzx.js → rpc-runtime-js54wxgp.js} +2 -2
  10. package/dist/chunks/{pty-handoff-15p82y03.js → rpc-runtime-myz4ngx9.js} +5 -5
  11. package/dist/chunks/{pty-handoff-ryy6kscr.js → rpc-runtime-ryy6kscr.js} +1 -1
  12. package/dist/chunks/{pty-handoff-skhp7hxc.js → rpc-runtime-skhp7hxc.js} +1 -1
  13. package/dist/chunks/{pty-handoff-zp1ww9gq.js → rpc-runtime-vea8g3zs.js} +38 -20
  14. package/dist/contract.js +1 -1
  15. package/dist/effect/api/api.d.ts +19 -0
  16. package/dist/effect/client.d.ts +3 -1
  17. package/dist/effect/client.js +12 -12
  18. package/dist/effect/generated/client-error.js +3 -3
  19. package/dist/effect/generated/client.d.ts +4 -2
  20. package/dist/effect/generated/client.js +5 -5
  21. package/dist/effect/generated/index.js +8 -8
  22. package/dist/effect/index.js +12 -12
  23. package/dist/effect/rpc.js +4 -4
  24. package/dist/effect/service.js +6 -6
  25. package/dist/promise/client.d.ts +2 -0
  26. package/dist/promise/client.js +11 -11
  27. package/dist/promise/generated/client-error.js +3 -3
  28. package/dist/promise/generated/client.d.ts +3 -1
  29. package/dist/promise/generated/client.js +4 -4
  30. package/dist/promise/generated/index.js +9 -9
  31. package/dist/promise/generated/types.d.ts +23 -0
  32. package/dist/promise/generated/types.js +1 -1
  33. package/dist/promise/index.js +12 -12
  34. package/dist/promise/rpc.js +2 -2
  35. package/dist/promise/service.js +6 -6
  36. package/dist/pty-handoff.js +4 -4
  37. package/dist/rpc-runtime.js +1 -1
  38. package/dist/service-contender.js +1 -1
  39. package/dist/service-probe.js +3 -3
  40. package/dist/service-timing.js +1 -1
  41. package/dist/service-version.js +1 -1
  42. package/dist/service.js +1 -1
  43. package/dist/shared-events.js +1 -1
  44. package/dist/solid/connection.js +1 -1
  45. package/dist/solid/data.d.ts +5 -0
  46. package/dist/solid/data.js +9 -9
  47. package/dist/solid/index.js +13 -13
  48. package/dist/solid/pty.js +1 -1
  49. package/dist/solid/retention.js +1 -1
  50. package/dist/solid/usage.js +1 -1
  51. package/package.json +4 -4
  52. package/dist/chunks/pty-handoff-gb6s2y2x.js +0 -30
  53. /package/dist/chunks/{pty-handoff-6mptkzbc.js → rpc-runtime-6mptkzbc.js} +0 -0
  54. /package/dist/chunks/{pty-handoff-6mq2wh8y.js → rpc-runtime-6mq2wh8y.js} +0 -0
  55. /package/dist/chunks/{pty-handoff-8s2anffy.js → rpc-runtime-8s2anffy.js} +0 -0
  56. /package/dist/chunks/{pty-handoff-9rqn6x4v.js → rpc-runtime-9rqn6x4v.js} +0 -0
  57. /package/dist/chunks/{pty-handoff-c46qzyff.js → rpc-runtime-c46qzyff.js} +0 -0
  58. /package/dist/chunks/{pty-handoff-gne7h7mq.js → rpc-runtime-gne7h7mq.js} +0 -0
  59. /package/dist/chunks/{pty-handoff-m2eywc8w.js → rpc-runtime-m2eywc8w.js} +0 -0
  60. /package/dist/chunks/{pty-handoff-qav6mfdz.js → rpc-runtime-qav6mfdz.js} +0 -0
  61. /package/dist/chunks/{pty-handoff-sxt88q69.js → rpc-runtime-sxt88q69.js} +0 -0
  62. /package/dist/chunks/{pty-handoff-ve4aws36.js → rpc-runtime-ve4aws36.js} +0 -0
  63. /package/dist/chunks/{pty-handoff-vmytr4q8.js → rpc-runtime-vmytr4q8.js} +0 -0
  64. /package/dist/chunks/{pty-handoff-vyas3vgt.js → rpc-runtime-vyas3vgt.js} +0 -0
  65. /package/dist/chunks/{pty-handoff-xgnj2w4v.js → rpc-runtime-xgnj2w4v.js} +0 -0
  66. /package/dist/chunks/{pty-handoff-ydhz1zrh.js → rpc-runtime-ydhz1zrh.js} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  defaultIdleTimeout2,
3
3
  foregroundIdleThreshold2,
4
4
  createClientConnection2
5
- } from "../chunks/pty-handoff-ydhz1zrh.js";
5
+ } from "../chunks/rpc-runtime-ydhz1zrh.js";
6
6
  export {
7
7
  createClientConnection2 as createClientConnection,
8
8
  defaultIdleTimeout2 as defaultIdleTimeout,
@@ -29,6 +29,11 @@ export type CreateDataInput = {
29
29
  };
30
30
  /** Receives failed event-driven reads. Explicit reads still reject to their caller. */
31
31
  readonly onError?: (error: unknown) => void;
32
+ /**
33
+ * Drops the payload of inline `data:` files in tool results before they enter the store. For clients that never
34
+ * render tool-result files: a session full of screenshots otherwise keeps hundreds of MB of base64 alive.
35
+ */
36
+ readonly omitToolFileData?: boolean;
32
37
  };
33
38
  export declare const settleMs = 150;
34
39
  export type FormWithLocation = FormInfo & {
@@ -2,15 +2,15 @@ import {
2
2
  settleMs2,
3
3
  locationKey2,
4
4
  createData2
5
- } from "../chunks/pty-handoff-bpcm6er9.js";
6
- import"../chunks/pty-handoff-m2eywc8w.js";
7
- import"../chunks/pty-handoff-gb6s2y2x.js";
8
- import"../chunks/pty-handoff-skhp7hxc.js";
9
- import"../chunks/pty-handoff-vyas3vgt.js";
10
- import"../chunks/pty-handoff-zp1ww9gq.js";
11
- import"../chunks/pty-handoff-c46qzyff.js";
12
- import"../chunks/pty-handoff-nwcpakzx.js";
13
- import"../chunks/pty-handoff-8bbb028w.js";
5
+ } from "../chunks/rpc-runtime-10stgdsh.js";
6
+ import"../chunks/rpc-runtime-m2eywc8w.js";
7
+ import"../chunks/rpc-runtime-hjkdb2as.js";
8
+ import"../chunks/rpc-runtime-skhp7hxc.js";
9
+ import"../chunks/rpc-runtime-vyas3vgt.js";
10
+ import"../chunks/rpc-runtime-c46qzyff.js";
11
+ import"../chunks/rpc-runtime-vea8g3zs.js";
12
+ import"../chunks/rpc-runtime-js54wxgp.js";
13
+ import"../chunks/rpc-runtime-8bbb028w.js";
14
14
  export {
15
15
  createData2 as createData,
16
16
  locationKey2 as locationKey,
@@ -1,31 +1,31 @@
1
- import"../chunks/pty-handoff-nwcpakzx.js";
2
- import"../chunks/pty-handoff-zp1ww9gq.js";
3
- import"../chunks/pty-handoff-c46qzyff.js";
4
- import"../chunks/pty-handoff-vyas3vgt.js";
5
- import"../chunks/pty-handoff-8bbb028w.js";
6
- import"../chunks/pty-handoff-skhp7hxc.js";
7
- import"../chunks/pty-handoff-gb6s2y2x.js";
8
- import"../chunks/pty-handoff-m2eywc8w.js";
1
+ import"../chunks/rpc-runtime-js54wxgp.js";
2
+ import"../chunks/rpc-runtime-vea8g3zs.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-hjkdb2as.js";
8
+ import"../chunks/rpc-runtime-m2eywc8w.js";
9
9
  import {
10
10
  settleMs2,
11
11
  locationKey2,
12
12
  createData2
13
- } from "../chunks/pty-handoff-bpcm6er9.js";
13
+ } from "../chunks/rpc-runtime-10stgdsh.js";
14
14
  import {
15
15
  defaultIdleTimeout2,
16
16
  foregroundIdleThreshold2,
17
17
  createClientConnection2
18
- } from "../chunks/pty-handoff-ydhz1zrh.js";
18
+ } from "../chunks/rpc-runtime-ydhz1zrh.js";
19
19
  import {
20
20
  createPtyClient2,
21
21
  createPersistentPtyClient2
22
- } from "../chunks/pty-handoff-gne7h7mq.js";
22
+ } from "../chunks/rpc-runtime-gne7h7mq.js";
23
23
  import {
24
24
  createSessionRetention2
25
- } from "../chunks/pty-handoff-6mq2wh8y.js";
25
+ } from "../chunks/rpc-runtime-6mq2wh8y.js";
26
26
  import {
27
27
  lastAssistantWithUsage2
28
- } from "../chunks/pty-handoff-8s2anffy.js";
28
+ } from "../chunks/rpc-runtime-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/pty-handoff-gne7h7mq.js";
4
+ } from "../chunks/rpc-runtime-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/pty-handoff-6mq2wh8y.js";
3
+ } from "../chunks/rpc-runtime-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/pty-handoff-8s2anffy.js";
3
+ } from "../chunks/rpc-runtime-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-21881",
4
+ "version": "0.0.0-dev-21903",
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-21881",
66
- "@opencode/protocol": "0.0.0-dev-21881"
65
+ "@opencode/schema": "0.0.0-dev-21903",
66
+ "@opencode/protocol": "0.0.0-dev-21903"
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-21881",
83
+ "@opencode/httpapi-codegen": "0.0.0-dev-21903",
84
84
  "@tsconfig/bun": "1.0.9",
85
85
  "@types/bun": "1.4.3",
86
86
  "@typescript/native": "npm:typescript@7.1.0-beta",
@@ -1,30 +0,0 @@
1
- import {
2
- make7
3
- } from "./pty-handoff-8bbb028w.js";
4
- import {
5
- make6
6
- } from "./pty-handoff-zp1ww9gq.js";
7
- import {
8
- makeRpc2
9
- } from "./pty-handoff-skhp7hxc.js";
10
- import {
11
- __export
12
- } from "./pty-handoff-9rqn6x4v.js";
13
-
14
- // src/promise/client.ts
15
- var exports_client3 = {};
16
- __export(exports_client3, {
17
- OpenCode: () => exports_client3,
18
- make: () => make5
19
- });
20
- function make5(options) {
21
- const raw = make6(options);
22
- const events = make7((signal, onActivity) => raw.event.subscribe({ signal, onActivity }));
23
- return {
24
- ...raw,
25
- rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
26
- event: events
27
- };
28
- }
29
-
30
- export { make5, exports_client3 };