@opencode/client 0.0.0-dev-21105 → 0.0.0-dev-21107

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.
@@ -1,8 +1,8 @@
1
1
  import {
2
- make5
3
- } from "../../chunks/shared-events-8rj22tx8.js";
2
+ make6
3
+ } from "../../chunks/shared-events-ecq6p6gm.js";
4
4
  import"../../chunks/shared-events-7f0py9js.js";
5
5
  import"../../chunks/shared-events-vmytr4q8.js";
6
6
  export {
7
- make5 as make
7
+ make6 as make
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import"../../chunks/shared-events-6mptkzbc.js";
2
2
  import {
3
3
  exports_client4
4
- } from "../../chunks/shared-events-8rj22tx8.js";
4
+ } from "../../chunks/shared-events-ecq6p6gm.js";
5
5
  import {
6
6
  ClientError3
7
7
  } from "../../chunks/shared-events-7f0py9js.js";
@@ -2,14 +2,14 @@ import {
2
2
  ClientError3
3
3
  } from "../chunks/shared-events-7f0py9js.js";
4
4
  import"../chunks/shared-events-vmytr4q8.js";
5
- import"../chunks/shared-events-8rj22tx8.js";
5
+ import"../chunks/shared-events-ecq6p6gm.js";
6
6
  import"../chunks/shared-events-6mptkzbc.js";
7
7
  import"../chunks/shared-events-frbwqjmf.js";
8
8
  import"../chunks/shared-events-t1xa31vm.js";
9
- import"../chunks/shared-events-w1w809zr.js";
9
+ import"../chunks/shared-events-mnyft54j.js";
10
10
  import {
11
11
  exports_client3
12
- } from "../chunks/shared-events-0w8xnq85.js";
12
+ } from "../chunks/shared-events-ek3k1tay.js";
13
13
 
14
14
  // src/effect/index.ts
15
15
  import { Agent } from "@opencode/schema/agent";
@@ -1,11 +1,11 @@
1
1
  import {
2
- make6,
2
+ make5,
3
3
  aborted2,
4
4
  exports_rpc
5
- } from "../chunks/shared-events-w1w809zr.js";
5
+ } from "../chunks/shared-events-mnyft54j.js";
6
6
  import"../chunks/shared-events-t1xa31vm.js";
7
7
  export {
8
8
  exports_rpc as RpcClientRuntime,
9
9
  aborted2 as aborted,
10
- make6 as make
10
+ make5 as make
11
11
  };
@@ -14,14 +14,14 @@ import {
14
14
  environment2,
15
15
  complete2,
16
16
  clear2
17
- } from "../chunks/shared-events-td2fzm91.js";
17
+ } from "../chunks/shared-events-p2772a31.js";
18
18
  import {
19
19
  decide2,
20
20
  fallback2,
21
21
  same2,
22
22
  probeResult2,
23
23
  headers2
24
- } from "../chunks/shared-events-8ye1ye6f.js";
24
+ } from "../chunks/shared-events-2ny4vxct.js";
25
25
  import"../chunks/shared-events-qav6mfdz.js";
26
26
 
27
27
  // src/effect/service.ts
@@ -4,12 +4,6 @@ import { OpenCode } from "./generated/index.js";
4
4
  import type { ClientOptions } from "./generated/client.js";
5
5
  export type { ClientOptions, RequestOptions } from "./generated/client.js";
6
6
  export declare function make(options: ClientOptions): {
7
- rpc: import("./rpc.js").RpcApi<import("./rpc.js").RpcCallOptions> & {
8
- call: (input: import("./index.js").RpcCallInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").RpcOutput>;
9
- };
10
- event: {
11
- subscribe(options?: SharedEvents.SubscribeOptions): AsyncIterable<import("./index.js").V2Event>;
12
- };
13
7
  server: {
14
8
  info: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ServerInfo>;
15
9
  pair: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PairingCode>;
@@ -77,7 +71,7 @@ export declare function make(options: ClientOptions): {
77
71
  interrupt: (input: import("./index.js").SessionInterruptInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionInterruptResponse>;
78
72
  background: (input: import("./index.js").SessionBackgroundInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
79
73
  message: {
80
- get: (input: import("./index.js").SessionMessageGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionMessageAgentSelected | import("./index.js").SessionMessageSynthetic | import("./index.js").SessionMessageSystem | import("./index.js").SessionMessageCompactionRunning | import("./index.js").SessionMessageSkill | import("./index.js").SessionMessageShell | import("./index.js").SessionMessageCompactionFailed | import("./index.js").SessionMessageIdle | import("./index.js").SessionMessageLocationSwitched | import("./index.js").SessionMessageModelSelected | import("./index.js").SessionMessageUser | import("./index.js").SessionMessageCompactionCompleted | import("./index.js").SessionMessageAssistant>;
74
+ get: (input: import("./index.js").SessionMessageGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionMessageAgentSelected | import("./index.js").SessionMessageAssistant | import("./index.js").SessionMessageCompactionCompleted | import("./index.js").SessionMessageCompactionFailed | import("./index.js").SessionMessageCompactionRunning | import("./index.js").SessionMessageIdle | import("./index.js").SessionMessageLocationSwitched | import("./index.js").SessionMessageModelSelected | import("./index.js").SessionMessageShell | import("./index.js").SessionMessageSkill | import("./index.js").SessionMessageSynthetic | import("./index.js").SessionMessageSystem | import("./index.js").SessionMessageUser>;
81
75
  };
82
76
  form: {
83
77
  list: (input: import("./index.js").SessionFormListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FormInfo[]>;
@@ -254,4 +248,10 @@ export declare function make(options: ClientOptions): {
254
248
  shells: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ConfigShellsOutput>;
255
249
  update: (input: import("./index.js").ConfigUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
256
250
  };
251
+ rpc: import("./rpc.js").RpcApi<import("./rpc.js").RpcCallOptions> & {
252
+ call: (input: import("./index.js").RpcCallInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").RpcOutput>;
253
+ };
254
+ event: {
255
+ subscribe(options?: SharedEvents.SubscribeOptions): AsyncIterable<import("./index.js").V2Event>;
256
+ };
257
257
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  make2,
3
3
  exports_client
4
- } from "../chunks/shared-events-q008jpwa.js";
4
+ } from "../chunks/shared-events-mx66vh2p.js";
5
5
  import"../chunks/shared-events-1y4a697q.js";
6
6
  import"../chunks/shared-events-vyas3vgt.js";
7
- import"../chunks/shared-events-vt9jbch8.js";
8
7
  import"../chunks/shared-events-hqeq47hr.js";
9
8
  import"../chunks/shared-events-js54wxgp.js";
9
+ import"../chunks/shared-events-vt9jbch8.js";
10
10
  import"../chunks/shared-events-frbwqjmf.js";
11
11
  export {
12
12
  exports_client as OpenCode,
@@ -78,7 +78,7 @@ export declare function make(options: ClientOptions): {
78
78
  interrupt: (input: SessionInterruptInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInterruptResponse>;
79
79
  background: (input: SessionBackgroundInput, requestOptions?: RequestOptions) => Promise<void>;
80
80
  message: {
81
- get: (input: SessionMessageGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessageAgentSelected | import("./types.js").SessionMessageSynthetic | import("./types.js").SessionMessageSystem | import("./types.js").SessionMessageCompactionRunning | import("./types.js").SessionMessageSkill | import("./types.js").SessionMessageShell | import("./types.js").SessionMessageCompactionFailed | import("./types.js").SessionMessageIdle | import("./types.js").SessionMessageLocationSwitched | import("./types.js").SessionMessageModelSelected | import("./types.js").SessionMessageUser | import("./types.js").SessionMessageCompactionCompleted | import("./types.js").SessionMessageAssistant>;
81
+ get: (input: SessionMessageGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessageAgentSelected | import("./types.js").SessionMessageAssistant | import("./types.js").SessionMessageCompactionCompleted | import("./types.js").SessionMessageCompactionFailed | import("./types.js").SessionMessageCompactionRunning | import("./types.js").SessionMessageIdle | import("./types.js").SessionMessageLocationSwitched | import("./types.js").SessionMessageModelSelected | import("./types.js").SessionMessageShell | import("./types.js").SessionMessageSkill | import("./types.js").SessionMessageSynthetic | import("./types.js").SessionMessageSystem | import("./types.js").SessionMessageUser>;
82
82
  };
83
83
  form: {
84
84
  list: (input: SessionFormListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FormInfo[]>;
@@ -1,4 +1,10 @@
1
1
  import"../../chunks/shared-events-vyas3vgt.js";
2
+ import {
3
+ exports_client2
4
+ } from "../../chunks/shared-events-hqeq47hr.js";
5
+ import {
6
+ ClientError2
7
+ } from "../../chunks/shared-events-js54wxgp.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/shared-events-vt9jbch8.js";
37
- import {
38
- exports_client2
39
- } from "../../chunks/shared-events-hqeq47hr.js";
40
- import {
41
- ClientError2
42
- } from "../../chunks/shared-events-js54wxgp.js";
43
43
  export {
44
44
  ClientError2 as ClientError,
45
45
  exports_client2 as OpenCode,
@@ -1,9 +1,13 @@
1
1
  import"../chunks/shared-events-m2eywc8w.js";
2
2
  import {
3
3
  exports_client
4
- } from "../chunks/shared-events-q008jpwa.js";
4
+ } from "../chunks/shared-events-mx66vh2p.js";
5
5
  import"../chunks/shared-events-1y4a697q.js";
6
6
  import"../chunks/shared-events-vyas3vgt.js";
7
+ import"../chunks/shared-events-hqeq47hr.js";
8
+ import {
9
+ ClientError2
10
+ } from "../chunks/shared-events-js54wxgp.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/shared-events-vt9jbch8.js";
42
- import"../chunks/shared-events-hqeq47hr.js";
43
- import {
44
- ClientError2
45
- } from "../chunks/shared-events-js54wxgp.js";
46
46
  import"../chunks/shared-events-frbwqjmf.js";
47
47
  export {
48
48
  ClientError2 as ClientError,
@@ -14,14 +14,14 @@ import {
14
14
  environment2,
15
15
  complete2,
16
16
  clear2
17
- } from "../chunks/shared-events-td2fzm91.js";
17
+ } from "../chunks/shared-events-p2772a31.js";
18
18
  import {
19
19
  decide2,
20
20
  fallback2,
21
21
  same2,
22
22
  probeResult2,
23
23
  headers2
24
- } from "../chunks/shared-events-8ye1ye6f.js";
24
+ } from "../chunks/shared-events-2ny4vxct.js";
25
25
  import"../chunks/shared-events-qav6mfdz.js";
26
26
 
27
27
  // src/promise/service.ts
@@ -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/shared-events-p2772a31.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}`;
@@ -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-8ye1ye6f.js";
8
- import"./chunks/shared-events-xgnj2w4v.js";
7
+ } from "./chunks/shared-events-2ny4vxct.js";
9
8
  import"./chunks/shared-events-sxt88q69.js";
9
+ import"./chunks/shared-events-xgnj2w4v.js";
10
10
  export {
11
11
  decide2 as decide,
12
12
  fallback2 as fallback,
@@ -4,12 +4,12 @@ import {
4
4
  createData2
5
5
  } from "../chunks/shared-events-m77rqa4a.js";
6
6
  import"../chunks/shared-events-m2eywc8w.js";
7
- import"../chunks/shared-events-q008jpwa.js";
7
+ import"../chunks/shared-events-mx66vh2p.js";
8
8
  import"../chunks/shared-events-1y4a697q.js";
9
9
  import"../chunks/shared-events-vyas3vgt.js";
10
- import"../chunks/shared-events-vt9jbch8.js";
11
10
  import"../chunks/shared-events-hqeq47hr.js";
12
11
  import"../chunks/shared-events-js54wxgp.js";
12
+ import"../chunks/shared-events-vt9jbch8.js";
13
13
  import"../chunks/shared-events-frbwqjmf.js";
14
14
  export {
15
15
  createData2 as createData,
@@ -4,7 +4,7 @@ import"../chunks/shared-events-vt9jbch8.js";
4
4
  import"../chunks/shared-events-vyas3vgt.js";
5
5
  import"../chunks/shared-events-frbwqjmf.js";
6
6
  import"../chunks/shared-events-1y4a697q.js";
7
- import"../chunks/shared-events-q008jpwa.js";
7
+ import"../chunks/shared-events-mx66vh2p.js";
8
8
  import"../chunks/shared-events-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-21105",
4
+ "version": "0.0.0-dev-21107",
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": "0.0.0-dev-21105",
61
- "@opencode/protocol": "0.0.0-dev-21105"
60
+ "@opencode/schema": "0.0.0-dev-21107",
61
+ "@opencode/protocol": "0.0.0-dev-21107"
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": "0.0.0-dev-21105",
77
+ "@opencode/httpapi-codegen": "0.0.0-dev-21107",
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
  }