@opencode/client 2.0.32 → 2.1.0

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/{shared-events-2ny4vxct.js → rpc-runtime-2ny4vxct.js} +2 -2
  2. package/dist/chunks/{shared-events-q008jpwa.js → rpc-runtime-3d7b8k62.js} +4 -4
  3. package/dist/chunks/{shared-events-m77rqa4a.js → rpc-runtime-61wt4y9h.js} +22 -17
  4. package/dist/chunks/{shared-events-1y4a697q.js → rpc-runtime-6vp15eh6.js} +1 -1
  5. package/dist/chunks/{shared-events-td2fzm91.js → rpc-runtime-91bd4p6h.js} +1 -1
  6. package/dist/chunks/{shared-events-vt9jbch8.js → rpc-runtime-ezt8t3fk.js} +2 -1
  7. package/dist/chunks/{shared-events-frbwqjmf.js → rpc-runtime-frbwqjmf.js} +1 -1
  8. package/dist/chunks/{shared-events-hqeq47hr.js → rpc-runtime-nv358xrg.js} +17 -3
  9. package/dist/chunks/{shared-events-qf89ssmg.js → rpc-runtime-q4y9w4td.js} +22 -8
  10. package/dist/chunks/{shared-events-t1xa31vm.js → rpc-runtime-t1xa31vm.js} +1 -1
  11. package/dist/chunks/{shared-events-d86rytwj.js → rpc-runtime-tjkwftgd.js} +9 -9
  12. package/dist/chunks/{shared-events-mnyft54j.js → rpc-runtime-w1w809zr.js} +5 -5
  13. package/dist/contract.js +1 -1
  14. package/dist/effect/api/api.d.ts +62 -29
  15. package/dist/effect/client.d.ts +1387 -1362
  16. package/dist/effect/client.js +8 -8
  17. package/dist/effect/generated/client-error.js +1 -1
  18. package/dist/effect/generated/client.d.ts +1278 -1253
  19. package/dist/effect/generated/client.js +5 -5
  20. package/dist/effect/generated/index.js +4 -4
  21. package/dist/effect/index.js +8 -8
  22. package/dist/effect/rpc.js +4 -4
  23. package/dist/effect/service.js +6 -6
  24. package/dist/promise/client.d.ts +8 -7
  25. package/dist/promise/client.js +7 -7
  26. package/dist/promise/generated/client-error.js +1 -1
  27. package/dist/promise/generated/client.d.ts +3 -2
  28. package/dist/promise/generated/client.js +2 -2
  29. package/dist/promise/generated/index.js +10 -8
  30. package/dist/promise/generated/types.d.ts +228 -1429
  31. package/dist/promise/generated/types.js +3 -1
  32. package/dist/promise/index.js +12 -10
  33. package/dist/promise/rpc.js +2 -2
  34. package/dist/promise/service.js +6 -6
  35. package/dist/pty-handoff.js +1 -1
  36. package/dist/rpc-runtime.d.ts +5 -5
  37. package/dist/rpc-runtime.js +1 -1
  38. package/dist/service-contender.js +1 -1
  39. package/dist/service-probe.d.ts +5 -5
  40. package/dist/service-probe.js +3 -3
  41. package/dist/service-timing.js +1 -1
  42. package/dist/service-version.js +1 -1
  43. package/dist/service.js +1 -1
  44. package/dist/shared-events.js +1 -1
  45. package/dist/solid/connection.js +1 -1
  46. package/dist/solid/data.js +9 -9
  47. package/dist/solid/index.js +12 -12
  48. package/dist/solid/pty.js +1 -1
  49. package/dist/solid/usage.js +1 -1
  50. package/package.json +6 -6
  51. /package/dist/chunks/{shared-events-6mptkzbc.js → rpc-runtime-6mptkzbc.js} +0 -0
  52. /package/dist/chunks/{shared-events-7f0py9js.js → rpc-runtime-7f0py9js.js} +0 -0
  53. /package/dist/chunks/{shared-events-8s2anffy.js → rpc-runtime-8s2anffy.js} +0 -0
  54. /package/dist/chunks/{shared-events-9rqn6x4v.js → rpc-runtime-9rqn6x4v.js} +0 -0
  55. /package/dist/chunks/{shared-events-gne7h7mq.js → rpc-runtime-gne7h7mq.js} +0 -0
  56. /package/dist/chunks/{shared-events-js54wxgp.js → rpc-runtime-js54wxgp.js} +0 -0
  57. /package/dist/chunks/{shared-events-m2eywc8w.js → rpc-runtime-m2eywc8w.js} +0 -0
  58. /package/dist/chunks/{shared-events-qav6mfdz.js → rpc-runtime-qav6mfdz.js} +0 -0
  59. /package/dist/chunks/{shared-events-sxt88q69.js → rpc-runtime-sxt88q69.js} +0 -0
  60. /package/dist/chunks/{shared-events-ve4aws36.js → rpc-runtime-ve4aws36.js} +0 -0
  61. /package/dist/chunks/{shared-events-vmytr4q8.js → rpc-runtime-vmytr4q8.js} +0 -0
  62. /package/dist/chunks/{shared-events-vyas3vgt.js → rpc-runtime-vyas3vgt.js} +0 -0
  63. /package/dist/chunks/{shared-events-xgnj2w4v.js → rpc-runtime-xgnj2w4v.js} +0 -0
  64. /package/dist/chunks/{shared-events-ydhz1zrh.js → rpc-runtime-ydhz1zrh.js} +0 -0
@@ -23,6 +23,7 @@ import {
23
23
  isIntegrationMethodNotFoundError2,
24
24
  isMcpServerNotFoundError2,
25
25
  isProjectNotFoundError2,
26
+ isPermissionSavedNotFoundError2,
26
27
  isPermissionNotFoundError2,
27
28
  isFileNotFoundError2,
28
29
  isRpcError2,
@@ -32,7 +33,7 @@ import {
32
33
  isShellNotFoundError2,
33
34
  isWorktreeError2,
34
35
  isVcsInitNotSupportedError2
35
- } from "../../chunks/shared-events-vt9jbch8.js";
36
+ } from "../../chunks/rpc-runtime-ezt8t3fk.js";
36
37
  export {
37
38
  isAgentNotFoundError2 as isAgentNotFoundError,
38
39
  isCommandExecutionError2 as isCommandExecutionError,
@@ -53,6 +54,7 @@ export {
53
54
  isMcpServerNotFoundError2 as isMcpServerNotFoundError,
54
55
  isMessageNotFoundError2 as isMessageNotFoundError,
55
56
  isPermissionNotFoundError2 as isPermissionNotFoundError,
57
+ isPermissionSavedNotFoundError2 as isPermissionSavedNotFoundError,
56
58
  isProjectNotFoundError2 as isProjectNotFoundError,
57
59
  isProviderNotFoundError2 as isProviderNotFoundError,
58
60
  isPtyNotFoundError2 as isPtyNotFoundError,
@@ -1,9 +1,13 @@
1
- import"../chunks/shared-events-m2eywc8w.js";
1
+ import"../chunks/rpc-runtime-m2eywc8w.js";
2
2
  import {
3
3
  exports_client
4
- } from "../chunks/shared-events-q008jpwa.js";
5
- import"../chunks/shared-events-1y4a697q.js";
6
- import"../chunks/shared-events-vyas3vgt.js";
4
+ } from "../chunks/rpc-runtime-3d7b8k62.js";
5
+ import"../chunks/rpc-runtime-6vp15eh6.js";
6
+ import"../chunks/rpc-runtime-vyas3vgt.js";
7
+ import"../chunks/rpc-runtime-nv358xrg.js";
8
+ import {
9
+ ClientError2
10
+ } from "../chunks/rpc-runtime-js54wxgp.js";
7
11
  import {
8
12
  isInvalidRequestError2,
9
13
  isUnauthorizedError2,
@@ -29,6 +33,7 @@ import {
29
33
  isIntegrationMethodNotFoundError2,
30
34
  isMcpServerNotFoundError2,
31
35
  isProjectNotFoundError2,
36
+ isPermissionSavedNotFoundError2,
32
37
  isPermissionNotFoundError2,
33
38
  isFileNotFoundError2,
34
39
  isRpcError2,
@@ -38,12 +43,8 @@ import {
38
43
  isShellNotFoundError2,
39
44
  isWorktreeError2,
40
45
  isVcsInitNotSupportedError2
41
- } from "../chunks/shared-events-vt9jbch8.js";
42
- import"../chunks/shared-events-hqeq47hr.js";
43
- import {
44
- ClientError2
45
- } from "../chunks/shared-events-js54wxgp.js";
46
- import"../chunks/shared-events-frbwqjmf.js";
46
+ } from "../chunks/rpc-runtime-ezt8t3fk.js";
47
+ import"../chunks/rpc-runtime-frbwqjmf.js";
47
48
  export {
48
49
  ClientError2 as ClientError,
49
50
  exports_client as OpenCode,
@@ -66,6 +67,7 @@ export {
66
67
  isMcpServerNotFoundError2 as isMcpServerNotFoundError,
67
68
  isMessageNotFoundError2 as isMessageNotFoundError,
68
69
  isPermissionNotFoundError2 as isPermissionNotFoundError,
70
+ isPermissionSavedNotFoundError2 as isPermissionSavedNotFoundError,
69
71
  isProjectNotFoundError2 as isProjectNotFoundError,
70
72
  isProviderNotFoundError2 as isProviderNotFoundError,
71
73
  isPtyNotFoundError2 as isPtyNotFoundError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  makeRpc2
3
- } from "../chunks/shared-events-1y4a697q.js";
4
- import"../chunks/shared-events-vt9jbch8.js";
3
+ } from "../chunks/rpc-runtime-6vp15eh6.js";
4
+ import"../chunks/rpc-runtime-ezt8t3fk.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/shared-events-ve4aws36.js";
4
+ } from "../chunks/rpc-runtime-ve4aws36.js";
5
5
  import {
6
6
  defaultEnsureTiming2,
7
7
  ensureTiming2
8
- } from "../chunks/shared-events-xgnj2w4v.js";
8
+ } from "../chunks/rpc-runtime-xgnj2w4v.js";
9
9
  import {
10
10
  matchesVersion2
11
- } from "../chunks/shared-events-sxt88q69.js";
11
+ } from "../chunks/rpc-runtime-sxt88q69.js";
12
12
  import {
13
13
  prepare2,
14
14
  environment2,
15
15
  complete2,
16
16
  clear2
17
- } from "../chunks/shared-events-td2fzm91.js";
17
+ } from "../chunks/rpc-runtime-91bd4p6h.js";
18
18
  import {
19
19
  decide2,
20
20
  fallback2,
21
21
  same2,
22
22
  probeResult2,
23
23
  headers2
24
- } from "../chunks/shared-events-2ny4vxct.js";
25
- import"../chunks/shared-events-qav6mfdz.js";
24
+ } from "../chunks/rpc-runtime-2ny4vxct.js";
25
+ import"../chunks/rpc-runtime-qav6mfdz.js";
26
26
 
27
27
  // src/promise/service.ts
28
28
  import { readFile, rm } from "node:fs/promises";
@@ -4,7 +4,7 @@ import {
4
4
  complete2,
5
5
  clear2,
6
6
  exports_pty_handoff
7
- } from "./chunks/shared-events-td2fzm91.js";
7
+ } from "./chunks/rpc-runtime-91bd4p6h.js";
8
8
  export {
9
9
  exports_pty_handoff as PtyHandoff,
10
10
  clear2 as clear,
@@ -5,16 +5,16 @@ export declare function read(schema: Rpc.Method["output"], value: unknown): Effe
5
5
  export declare function readError(method: Rpc.Method, error: unknown): Effect.Effect<never, unknown>;
6
6
  export declare const event: <D extends Rpc.Definition, Name extends keyof D["events"] & string>(definition: D, name: Name, schema: Rpc.EventDefinition, event: {
7
7
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8
+ readonly created: number;
9
+ readonly metadata?: {
10
+ readonly [x: string]: unknown;
11
+ } | undefined;
12
+ readonly type: `rpc.${string}`;
8
13
  readonly location: {
9
14
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
10
15
  };
11
16
  readonly data: {
12
17
  readonly [x: string]: unknown;
13
18
  };
14
- readonly type: `rpc.${string}`;
15
- readonly created: number;
16
- readonly metadata?: {
17
- readonly [x: string]: unknown;
18
- } | undefined;
19
19
  }) => Effect.Effect<Rpc.EventPayload<D, Name>, unknown, never>;
20
20
  export declare function eventType<const D extends Rpc.Definition, const Name extends keyof D["events"] & string>(definition: D, name: Name): `rpc.${D["id"]}.${Name}`;
@@ -4,7 +4,7 @@ import {
4
4
  event2,
5
5
  eventType2,
6
6
  exports_rpc_runtime
7
- } from "./chunks/shared-events-t1xa31vm.js";
7
+ } from "./chunks/rpc-runtime-t1xa31vm.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/shared-events-ve4aws36.js";
5
+ } from "./chunks/rpc-runtime-ve4aws36.js";
6
6
  export {
7
7
  contenderFinished2 as contenderFinished,
8
8
  contenderPool2 as contenderPool,
@@ -11,17 +11,17 @@ export type LocalService = {
11
11
  * it starts, replace it because its version does not meet the requirement, or fail.
12
12
  */
13
13
  export declare function decide(service: LocalService, options: DiscoverOptions): {
14
- _tag: "fail";
15
- error: Error;
16
- } | {
17
14
  readonly _tag: "replace";
18
15
  readonly pty: "clear" | "handoff";
19
16
  } | {
20
- readonly _tag: "reuse";
21
17
  readonly pty?: undefined;
18
+ readonly _tag: "reuse";
22
19
  } | {
23
- readonly _tag: "wait";
24
20
  readonly pty?: undefined;
21
+ readonly _tag: "wait";
22
+ } | {
23
+ _tag: "fail";
24
+ error: Error;
25
25
  };
26
26
  /** The default registration file. */
27
27
  export declare function fallback(): string;
@@ -4,9 +4,9 @@ import {
4
4
  same2,
5
5
  probeResult2,
6
6
  headers2
7
- } from "./chunks/shared-events-2ny4vxct.js";
8
- import"./chunks/shared-events-sxt88q69.js";
9
- import"./chunks/shared-events-xgnj2w4v.js";
7
+ } from "./chunks/rpc-runtime-2ny4vxct.js";
8
+ import"./chunks/rpc-runtime-sxt88q69.js";
9
+ import"./chunks/rpc-runtime-xgnj2w4v.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/shared-events-xgnj2w4v.js";
5
+ } from "./chunks/rpc-runtime-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/shared-events-sxt88q69.js";
3
+ } from "./chunks/rpc-runtime-sxt88q69.js";
4
4
  export {
5
5
  matchesVersion2 as matchesVersion
6
6
  };
package/dist/service.js CHANGED
@@ -1 +1 @@
1
- import"./chunks/shared-events-qav6mfdz.js";
1
+ import"./chunks/rpc-runtime-qav6mfdz.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make7,
3
3
  exports_shared_events
4
- } from "./chunks/shared-events-frbwqjmf.js";
4
+ } from "./chunks/rpc-runtime-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/shared-events-ydhz1zrh.js";
5
+ } from "../chunks/rpc-runtime-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/shared-events-m77rqa4a.js";
6
- import"../chunks/shared-events-m2eywc8w.js";
7
- import"../chunks/shared-events-q008jpwa.js";
8
- import"../chunks/shared-events-1y4a697q.js";
9
- import"../chunks/shared-events-vyas3vgt.js";
10
- import"../chunks/shared-events-vt9jbch8.js";
11
- import"../chunks/shared-events-hqeq47hr.js";
12
- import"../chunks/shared-events-js54wxgp.js";
13
- import"../chunks/shared-events-frbwqjmf.js";
5
+ } from "../chunks/rpc-runtime-61wt4y9h.js";
6
+ import"../chunks/rpc-runtime-m2eywc8w.js";
7
+ import"../chunks/rpc-runtime-3d7b8k62.js";
8
+ import"../chunks/rpc-runtime-6vp15eh6.js";
9
+ import"../chunks/rpc-runtime-vyas3vgt.js";
10
+ import"../chunks/rpc-runtime-nv358xrg.js";
11
+ import"../chunks/rpc-runtime-js54wxgp.js";
12
+ import"../chunks/rpc-runtime-ezt8t3fk.js";
13
+ import"../chunks/rpc-runtime-frbwqjmf.js";
14
14
  export {
15
15
  createData2 as createData,
16
16
  locationKey2 as locationKey,
@@ -1,28 +1,28 @@
1
- import"../chunks/shared-events-js54wxgp.js";
2
- import"../chunks/shared-events-hqeq47hr.js";
3
- import"../chunks/shared-events-vt9jbch8.js";
4
- import"../chunks/shared-events-vyas3vgt.js";
5
- import"../chunks/shared-events-frbwqjmf.js";
6
- import"../chunks/shared-events-1y4a697q.js";
7
- import"../chunks/shared-events-q008jpwa.js";
8
- import"../chunks/shared-events-m2eywc8w.js";
1
+ import"../chunks/rpc-runtime-js54wxgp.js";
2
+ import"../chunks/rpc-runtime-nv358xrg.js";
3
+ import"../chunks/rpc-runtime-ezt8t3fk.js";
4
+ import"../chunks/rpc-runtime-vyas3vgt.js";
5
+ import"../chunks/rpc-runtime-frbwqjmf.js";
6
+ import"../chunks/rpc-runtime-6vp15eh6.js";
7
+ import"../chunks/rpc-runtime-3d7b8k62.js";
8
+ import"../chunks/rpc-runtime-m2eywc8w.js";
9
9
  import {
10
10
  settleMs2,
11
11
  locationKey2,
12
12
  createData2
13
- } from "../chunks/shared-events-m77rqa4a.js";
13
+ } from "../chunks/rpc-runtime-61wt4y9h.js";
14
14
  import {
15
15
  defaultIdleTimeout2,
16
16
  foregroundIdleThreshold2,
17
17
  createClientConnection2
18
- } from "../chunks/shared-events-ydhz1zrh.js";
18
+ } from "../chunks/rpc-runtime-ydhz1zrh.js";
19
19
  import {
20
20
  createPtyClient2,
21
21
  createPersistentPtyClient2
22
- } from "../chunks/shared-events-gne7h7mq.js";
22
+ } from "../chunks/rpc-runtime-gne7h7mq.js";
23
23
  import {
24
24
  lastAssistantWithUsage2
25
- } from "../chunks/shared-events-8s2anffy.js";
25
+ } from "../chunks/rpc-runtime-8s2anffy.js";
26
26
  export {
27
27
  createClientConnection2 as createClientConnection,
28
28
  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/shared-events-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
  lastAssistantWithUsage2
3
- } from "../chunks/shared-events-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": "2.0.32",
4
+ "version": "2.1.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -54,11 +54,11 @@
54
54
  "generate": "bun run script/build.ts",
55
55
  "check:generated": "bun run generate && git diff --exit-code -- src/promise/generated src/effect/generated src/effect/api",
56
56
  "test": "bun test --timeout 5000",
57
- "typecheck": "tsgo --noEmit"
57
+ "typecheck": "tsc --noEmit"
58
58
  },
59
59
  "dependencies": {
60
- "@opencode/schema": "2.0.32",
61
- "@opencode/protocol": "2.0.32"
60
+ "@opencode/schema": "2.1.0",
61
+ "@opencode/protocol": "2.1.0"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "effect": "4.0.1",
@@ -74,10 +74,10 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@effect/platform-node": "4.0.1",
77
- "@opencode/httpapi-codegen": "2.0.32",
77
+ "@opencode/httpapi-codegen": "2.1.0",
78
78
  "@tsconfig/bun": "1.0.9",
79
79
  "@types/bun": "1.4.0",
80
- "@typescript/native-preview": "7.0.0-dev.20251207.1",
80
+ "@typescript/native": "npm:typescript@7.0.2",
81
81
  "effect": "4.0.1",
82
82
  "solid-js": "1.9.15"
83
83
  }