@opencode/client 2.0.24 → 2.0.25

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 (64) hide show
  1. package/dist/chunks/{pty-handoff-71wkqa80.js → service-probe-1thtawyv.js} +1 -1
  2. package/dist/chunks/{pty-handoff-1y4a697q.js → service-probe-1y4a697q.js} +1 -1
  3. package/dist/chunks/{pty-handoff-ank0d71z.js → service-probe-2ny4vxct.js} +19 -2
  4. package/dist/chunks/{pty-handoff-w1w809zr.js → service-probe-65kht65h.js} +5 -5
  5. package/dist/chunks/{pty-handoff-qzsnm4q8.js → service-probe-9h52wrcy.js} +28 -19
  6. package/dist/chunks/{pty-handoff-frbwqjmf.js → service-probe-frbwqjmf.js} +1 -1
  7. package/dist/chunks/{pty-handoff-js54wxgp.js → service-probe-nwcpakzx.js} +2 -2
  8. package/dist/chunks/{pty-handoff-t1xa31vm.js → service-probe-t1xa31vm.js} +1 -1
  9. package/dist/chunks/{pty-handoff-src6by76.js → service-probe-trz7kcxd.js} +14 -1
  10. package/dist/chunks/{pty-handoff-5yf5aaev.js → service-probe-vnspkrex.js} +16 -11
  11. package/dist/chunks/{pty-handoff-7f0py9js.js → service-probe-y2etg5bs.js} +2 -2
  12. package/dist/chunks/{pty-handoff-myyn5x39.js → service-probe-y99g37y2.js} +17 -17
  13. package/dist/chunks/service-probe-z1hcmzxa.js +30 -0
  14. package/dist/contract.js +1 -1
  15. package/dist/effect/api/api.d.ts +12 -0
  16. package/dist/effect/client.d.ts +1 -0
  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 +2 -1
  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.d.ts +16 -2
  25. package/dist/effect/service.js +18 -23
  26. package/dist/promise/client.d.ts +1 -0
  27. package/dist/promise/client.js +11 -11
  28. package/dist/promise/generated/client-error.js +3 -3
  29. package/dist/promise/generated/client.d.ts +2 -1
  30. package/dist/promise/generated/client.js +4 -4
  31. package/dist/promise/generated/index.js +10 -10
  32. package/dist/promise/generated/types.d.ts +81 -4
  33. package/dist/promise/generated/types.js +1 -1
  34. package/dist/promise/index.js +13 -13
  35. package/dist/promise/rpc.js +2 -2
  36. package/dist/promise/service.js +13 -18
  37. package/dist/pty-handoff.js +1 -1
  38. package/dist/rpc-runtime.js +1 -1
  39. package/dist/service-contender.js +1 -1
  40. package/dist/service-probe.d.ts +18 -1
  41. package/dist/service-probe.js +5 -2
  42. package/dist/service-timing.js +1 -1
  43. package/dist/service-version.js +1 -1
  44. package/dist/service.js +1 -1
  45. package/dist/shared-events.js +1 -1
  46. package/dist/solid/connection.js +1 -1
  47. package/dist/solid/data.d.ts +7 -0
  48. package/dist/solid/data.js +9 -9
  49. package/dist/solid/index.js +11 -11
  50. package/dist/solid/pty.js +1 -1
  51. package/package.json +5 -6
  52. package/dist/chunks/pty-handoff-cqfz2qxq.js +0 -30
  53. /package/dist/chunks/{pty-handoff-6mptkzbc.js → service-probe-6mptkzbc.js} +0 -0
  54. /package/dist/chunks/{pty-handoff-9rqn6x4v.js → service-probe-9rqn6x4v.js} +0 -0
  55. /package/dist/chunks/{pty-handoff-gne7h7mq.js → service-probe-gne7h7mq.js} +0 -0
  56. /package/dist/chunks/{pty-handoff-m2eywc8w.js → service-probe-m2eywc8w.js} +0 -0
  57. /package/dist/chunks/{pty-handoff-qav6mfdz.js → service-probe-qav6mfdz.js} +0 -0
  58. /package/dist/chunks/{pty-handoff-sxt88q69.js → service-probe-sxt88q69.js} +0 -0
  59. /package/dist/chunks/{pty-handoff-ve4aws36.js → service-probe-ve4aws36.js} +0 -0
  60. /package/dist/chunks/{pty-handoff-vmytr4q8.js → service-probe-vmytr4q8.js} +0 -0
  61. /package/dist/chunks/{pty-handoff-vt9jbch8.js → service-probe-vt9jbch8.js} +0 -0
  62. /package/dist/chunks/{pty-handoff-vyas3vgt.js → service-probe-vyas3vgt.js} +0 -0
  63. /package/dist/chunks/{pty-handoff-xgnj2w4v.js → service-probe-xgnj2w4v.js} +0 -0
  64. /package/dist/chunks/{pty-handoff-ydhz1zrh.js → service-probe-ydhz1zrh.js} +0 -0
@@ -1,11 +1,14 @@
1
1
  import {
2
+ decide2,
2
3
  fallback2,
3
4
  same2,
4
5
  probeResult2,
5
6
  headers2
6
- } from "./chunks/pty-handoff-ank0d71z.js";
7
- import"./chunks/pty-handoff-xgnj2w4v.js";
7
+ } from "./chunks/service-probe-2ny4vxct.js";
8
+ import"./chunks/service-probe-sxt88q69.js";
9
+ import"./chunks/service-probe-xgnj2w4v.js";
8
10
  export {
11
+ decide2 as decide,
9
12
  fallback2 as fallback,
10
13
  headers2 as headers,
11
14
  probeResult2 as probeResult,
@@ -2,7 +2,7 @@ import {
2
2
  defaultEnsureTiming2,
3
3
  ensureTiming2,
4
4
  withEnsureTiming2
5
- } from "./chunks/pty-handoff-xgnj2w4v.js";
5
+ } from "./chunks/service-probe-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/pty-handoff-sxt88q69.js";
3
+ } from "./chunks/service-probe-sxt88q69.js";
4
4
  export {
5
5
  matchesVersion2 as matchesVersion
6
6
  };
package/dist/service.js CHANGED
@@ -1 +1 @@
1
- import"./chunks/pty-handoff-qav6mfdz.js";
1
+ import"./chunks/service-probe-qav6mfdz.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make7,
3
3
  exports_shared_events
4
- } from "./chunks/pty-handoff-frbwqjmf.js";
4
+ } from "./chunks/service-probe-frbwqjmf.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/pty-handoff-ydhz1zrh.js";
5
+ } from "../chunks/service-probe-ydhz1zrh.js";
6
6
  export {
7
7
  createClientConnection2 as createClientConnection,
8
8
  defaultIdleTimeout2 as defaultIdleTimeout,
@@ -1,6 +1,12 @@
1
1
  import type { AgentInfo, CommandInfo, ConfigEntry, SessionFormCancelInput, FormInfo, SessionFormReplyInput, IntegrationInfo, LocationRef, McpResource, McpServer, ModelInfo, ModelRef, PermissionSavedInfo, PermissionRequest, PermissionReplyInput, Project, ProviderInfo, ReferenceInfo, SessionMessageInfo, SessionInfo, SessionInboxInfo, SessionInboxCompaction, ShellInfo, SkillInfo, VcsInfo, OpenCodeEvent, OpenCodeClient, WebSearchProvider } from "../promise";
2
2
  import { type SessionPromptInput } from "../promise";
3
3
  export type DataSessionStatus = "idle" | "running";
4
+ /**
5
+ * Where a pending user prompt stands relative to the runner: `starting` is promoted at the next idle boundary,
6
+ * `steering` waits for the next step boundary of an execution that already delivered input, `stranded` outlived an
7
+ * execution that ended without delivering it, and `queued` waits for every steer to drain.
8
+ */
9
+ export type DataPendingStatus = "starting" | "steering" | "stranded" | "queued";
4
10
  type OpenCodeEventMap = {
5
11
  [Type in OpenCodeEvent["type"]]: Extract<OpenCodeEvent, {
6
12
  type: Type;
@@ -57,6 +63,7 @@ export declare function createData(config: CreateDataInput): {
57
63
  };
58
64
  pending: {
59
65
  list(sessionID: string): SessionInboxInfo[];
66
+ status(sessionID: string, inboxID: string): DataPendingStatus | undefined;
60
67
  sync(sessionID: string): Promise<void>;
61
68
  invalidate(sessionID: string): void;
62
69
  };
@@ -2,15 +2,15 @@ import {
2
2
  settleMs2,
3
3
  locationKey2,
4
4
  createData2
5
- } from "../chunks/pty-handoff-src6by76.js";
6
- import"../chunks/pty-handoff-m2eywc8w.js";
7
- import"../chunks/pty-handoff-cqfz2qxq.js";
8
- import"../chunks/pty-handoff-vyas3vgt.js";
9
- import"../chunks/pty-handoff-qzsnm4q8.js";
10
- import"../chunks/pty-handoff-js54wxgp.js";
11
- import"../chunks/pty-handoff-1y4a697q.js";
12
- import"../chunks/pty-handoff-vt9jbch8.js";
13
- import"../chunks/pty-handoff-frbwqjmf.js";
5
+ } from "../chunks/service-probe-trz7kcxd.js";
6
+ import"../chunks/service-probe-m2eywc8w.js";
7
+ import"../chunks/service-probe-z1hcmzxa.js";
8
+ import"../chunks/service-probe-vyas3vgt.js";
9
+ import"../chunks/service-probe-1y4a697q.js";
10
+ import"../chunks/service-probe-vt9jbch8.js";
11
+ import"../chunks/service-probe-9h52wrcy.js";
12
+ import"../chunks/service-probe-nwcpakzx.js";
13
+ import"../chunks/service-probe-frbwqjmf.js";
14
14
  export {
15
15
  createData2 as createData,
16
16
  locationKey2 as locationKey,
@@ -1,25 +1,25 @@
1
- import"../chunks/pty-handoff-js54wxgp.js";
2
- import"../chunks/pty-handoff-qzsnm4q8.js";
3
- import"../chunks/pty-handoff-vt9jbch8.js";
4
- import"../chunks/pty-handoff-vyas3vgt.js";
5
- import"../chunks/pty-handoff-frbwqjmf.js";
6
- import"../chunks/pty-handoff-1y4a697q.js";
7
- import"../chunks/pty-handoff-cqfz2qxq.js";
8
- import"../chunks/pty-handoff-m2eywc8w.js";
1
+ import"../chunks/service-probe-nwcpakzx.js";
2
+ import"../chunks/service-probe-9h52wrcy.js";
3
+ import"../chunks/service-probe-vt9jbch8.js";
4
+ import"../chunks/service-probe-vyas3vgt.js";
5
+ import"../chunks/service-probe-frbwqjmf.js";
6
+ import"../chunks/service-probe-1y4a697q.js";
7
+ import"../chunks/service-probe-z1hcmzxa.js";
8
+ import"../chunks/service-probe-m2eywc8w.js";
9
9
  import {
10
10
  settleMs2,
11
11
  locationKey2,
12
12
  createData2
13
- } from "../chunks/pty-handoff-src6by76.js";
13
+ } from "../chunks/service-probe-trz7kcxd.js";
14
14
  import {
15
15
  defaultIdleTimeout2,
16
16
  foregroundIdleThreshold2,
17
17
  createClientConnection2
18
- } from "../chunks/pty-handoff-ydhz1zrh.js";
18
+ } from "../chunks/service-probe-ydhz1zrh.js";
19
19
  import {
20
20
  createPtyClient2,
21
21
  createPersistentPtyClient2
22
- } from "../chunks/pty-handoff-gne7h7mq.js";
22
+ } from "../chunks/service-probe-gne7h7mq.js";
23
23
  export {
24
24
  createClientConnection2 as createClientConnection,
25
25
  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/service-probe-gne7h7mq.js";
5
5
  export {
6
6
  createPersistentPtyClient2 as createPersistentPtyClient,
7
7
  createPtyClient2 as createPtyClient
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": "2.0.24",
4
+ "version": "2.0.25",
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": "2.0.24",
61
- "@opencode/protocol": "2.0.24"
60
+ "@opencode/schema": "2.0.25",
61
+ "@opencode/protocol": "2.0.25"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "effect": "4.0.0-rc.112",
@@ -74,12 +74,11 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@effect/platform-node": "4.0.0-rc.112",
77
- "@opencode/httpapi-codegen": "2.0.24",
77
+ "@opencode/httpapi-codegen": "2.0.25",
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",
81
81
  "effect": "4.0.0-rc.112",
82
- "solid-js": "1.9.15",
83
- "zod": "4.1.8"
82
+ "solid-js": "1.9.15"
84
83
  }
85
84
  }
@@ -1,30 +0,0 @@
1
- import {
2
- make7
3
- } from "./pty-handoff-frbwqjmf.js";
4
- import {
5
- make3
6
- } from "./pty-handoff-qzsnm4q8.js";
7
- import {
8
- makeRpc2
9
- } from "./pty-handoff-1y4a697q.js";
10
- import {
11
- __export
12
- } from "./pty-handoff-9rqn6x4v.js";
13
-
14
- // src/promise/client.ts
15
- var exports_client = {};
16
- __export(exports_client, {
17
- OpenCode: () => exports_client,
18
- make: () => make2
19
- });
20
- function make2(options) {
21
- const raw = make3(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 { make2, exports_client };