@opencode/client 0.0.0-dev-176 → 0.0.0-dev-177

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.
@@ -13,10 +13,10 @@ var exports_rpc = {};
13
13
  __export(exports_rpc, {
14
14
  RpcClientRuntime: () => exports_rpc,
15
15
  aborted: () => aborted2,
16
- make: () => make4
16
+ make: () => make3
17
17
  });
18
18
  import { Effect, Stream } from "effect";
19
- function make4(call, subscribe) {
19
+ function make3(call, subscribe) {
20
20
  return (definition) => {
21
21
  const methods = Object.fromEntries(Object.entries(definition.methods).map(([name, method]) => [
22
22
  name,
@@ -59,4 +59,4 @@ function aborted2(signal) {
59
59
  });
60
60
  }
61
61
 
62
- export { make4, aborted2, exports_rpc };
62
+ export { make3, aborted2, exports_rpc };
@@ -5,12 +5,12 @@ import {
5
5
  ClientError2
6
6
  } from "./mcp-y2etg5bs.js";
7
7
  import {
8
- make3
9
- } from "./mcp-nkw87d0v.js";
8
+ make4
9
+ } from "./mcp-m37zsx6v.js";
10
10
  import {
11
- make4,
11
+ make3,
12
12
  aborted2
13
- } from "./mcp-9j12j8xw.js";
13
+ } from "./mcp-15p82y03.js";
14
14
  import {
15
15
  __export
16
16
  } from "./mcp-9rqn6x4v.js";
@@ -30,7 +30,7 @@ var CurrentHeaders = Context.Reference("@opencode/client/effect/rpc/headers", {
30
30
  });
31
31
  var make2 = Effect.fn("OpenCode.make")(function* (options) {
32
32
  const httpClient = yield* HttpClient.HttpClient;
33
- const raw = yield* make3(options).pipe(Effect.provideService(HttpClient.HttpClient, HttpClient.mapRequestEffect(httpClient, (request) => Effect.map(CurrentHeaders, (headers) => headers ? HttpClientRequest.setHeaders(request, new Headers(headers)) : request))));
33
+ const raw = yield* make4(options).pipe(Effect.provideService(HttpClient.HttpClient, HttpClient.mapRequestEffect(httpClient, (request) => Effect.map(CurrentHeaders, (headers) => headers ? HttpClientRequest.setHeaders(request, new Headers(headers)) : request))));
34
34
  const context = yield* Effect.context();
35
35
  const native = raw.event.subscribe();
36
36
 
@@ -45,7 +45,7 @@ var make2 = Effect.fn("OpenCode.make")(function* (options) {
45
45
  return {
46
46
  ...raw,
47
47
  event: { ...raw.event, subscribe },
48
- rpc: Object.assign(make4((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
48
+ rpc: Object.assign(make3((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
49
49
  };
50
50
  });
51
51
 
@@ -11,7 +11,7 @@ import {
11
11
  // src/effect/generated/client.ts
12
12
  var exports_client2 = {};
13
13
  __export(exports_client2, {
14
- make: () => make3
14
+ make: () => make4
15
15
  });
16
16
  import { Effect, Stream, Schema } from "effect";
17
17
  import { Sse } from "effect/encoding";
@@ -683,6 +683,6 @@ var adaptClient = (raw) => ({
683
683
  usage: adaptGroupUsage(raw["server.usage"]),
684
684
  config: adaptGroupConfig(raw["server.config"])
685
685
  });
686
- var make3 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
686
+ var make4 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
687
687
 
688
- export { make3, exports_client2 };
688
+ export { make4, exports_client2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  headers2
3
- } from "./mcp-8ye1ye6f.js";
3
+ } from "./mcp-2ny4vxct.js";
4
4
  import {
5
5
  __export
6
6
  } from "./mcp-9rqn6x4v.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  make2,
3
3
  exports_client
4
- } from "../chunks/mcp-zq4nc17c.js";
4
+ } from "../chunks/mcp-e28h0z12.js";
5
+ import"../chunks/mcp-15p82y03.js";
5
6
  import"../chunks/mcp-6mptkzbc.js";
6
- import"../chunks/mcp-nkw87d0v.js";
7
+ import"../chunks/mcp-m37zsx6v.js";
7
8
  import"../chunks/mcp-y2etg5bs.js";
8
- import"../chunks/mcp-9j12j8xw.js";
9
- import"../chunks/mcp-vmytr4q8.js";
10
9
  import"../chunks/mcp-gecjxyvt.js";
10
+ import"../chunks/mcp-vmytr4q8.js";
11
11
  import"../chunks/mcp-ryy6kscr.js";
12
12
  export {
13
13
  exports_client as OpenCode,
@@ -1,8 +1,8 @@
1
1
  import {
2
- make3
3
- } from "../../chunks/mcp-nkw87d0v.js";
2
+ make4
3
+ } from "../../chunks/mcp-m37zsx6v.js";
4
4
  import"../../chunks/mcp-y2etg5bs.js";
5
5
  import"../../chunks/mcp-vmytr4q8.js";
6
6
  export {
7
- make3 as make
7
+ make4 as make
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import"../../chunks/mcp-6mptkzbc.js";
2
2
  import {
3
3
  exports_client2
4
- } from "../../chunks/mcp-nkw87d0v.js";
4
+ } from "../../chunks/mcp-m37zsx6v.js";
5
5
  import {
6
6
  ClientError2
7
7
  } from "../../chunks/mcp-y2etg5bs.js";
@@ -2,14 +2,14 @@ import {
2
2
  ClientError2
3
3
  } from "../chunks/mcp-y2etg5bs.js";
4
4
  import"../chunks/mcp-vmytr4q8.js";
5
- import"../chunks/mcp-nkw87d0v.js";
5
+ import"../chunks/mcp-m37zsx6v.js";
6
6
  import"../chunks/mcp-6mptkzbc.js";
7
7
  import"../chunks/mcp-gecjxyvt.js";
8
8
  import"../chunks/mcp-ryy6kscr.js";
9
- import"../chunks/mcp-9j12j8xw.js";
9
+ import"../chunks/mcp-15p82y03.js";
10
10
  import {
11
11
  exports_client
12
- } from "../chunks/mcp-zq4nc17c.js";
12
+ } from "../chunks/mcp-e28h0z12.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
- make4,
2
+ make3,
3
3
  aborted2,
4
4
  exports_rpc
5
- } from "../chunks/mcp-9j12j8xw.js";
5
+ } from "../chunks/mcp-15p82y03.js";
6
6
  import"../chunks/mcp-ryy6kscr.js";
7
7
  export {
8
8
  exports_rpc as RpcClientRuntime,
9
9
  aborted2 as aborted,
10
- make4 as make
10
+ make3 as make
11
11
  };
@@ -15,13 +15,13 @@ import {
15
15
  same2,
16
16
  probeResult2,
17
17
  headers2
18
- } from "../chunks/mcp-8ye1ye6f.js";
18
+ } from "../chunks/mcp-2ny4vxct.js";
19
19
  import {
20
20
  prepare2,
21
21
  environment2,
22
22
  complete2,
23
23
  clear2
24
- } from "../chunks/mcp-8p2c9bx4.js";
24
+ } from "../chunks/mcp-t7w7d9gg.js";
25
25
  import"../chunks/mcp-qav6mfdz.js";
26
26
 
27
27
  // src/effect/service.ts
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  make5,
3
3
  exports_client3
4
- } from "../chunks/mcp-nrbbv8kf.js";
4
+ } from "../chunks/mcp-aa5vv09h.js";
5
5
  import"../chunks/mcp-ab9bm97w.js";
6
6
  import"../chunks/mcp-vyas3vgt.js";
7
7
  import"../chunks/mcp-0mrkn4v6.js";
8
- import"../chunks/mcp-nwcpakzx.js";
9
8
  import"../chunks/mcp-8we1dz3p.js";
9
+ import"../chunks/mcp-nwcpakzx.js";
10
10
  import"../chunks/mcp-gecjxyvt.js";
11
11
  export {
12
12
  exports_client3 as OpenCode,
@@ -2,9 +2,6 @@ import"../../chunks/mcp-vyas3vgt.js";
2
2
  import {
3
3
  exports_client4
4
4
  } from "../../chunks/mcp-0mrkn4v6.js";
5
- import {
6
- ClientError3
7
- } from "../../chunks/mcp-nwcpakzx.js";
8
5
  import {
9
6
  isInvalidRequestError2,
10
7
  isUnauthorizedError2,
@@ -45,6 +42,9 @@ import {
45
42
  isWorktreeError2,
46
43
  isVcsInitNotSupportedError2
47
44
  } from "../../chunks/mcp-8we1dz3p.js";
45
+ import {
46
+ ClientError3
47
+ } from "../../chunks/mcp-nwcpakzx.js";
48
48
  export {
49
49
  ClientError3 as ClientError,
50
50
  exports_client4 as OpenCode,
@@ -1,13 +1,10 @@
1
1
  import"../chunks/mcp-m2eywc8w.js";
2
2
  import {
3
3
  exports_client3
4
- } from "../chunks/mcp-nrbbv8kf.js";
4
+ } from "../chunks/mcp-aa5vv09h.js";
5
5
  import"../chunks/mcp-ab9bm97w.js";
6
6
  import"../chunks/mcp-vyas3vgt.js";
7
7
  import"../chunks/mcp-0mrkn4v6.js";
8
- import {
9
- ClientError3
10
- } from "../chunks/mcp-nwcpakzx.js";
11
8
  import {
12
9
  isInvalidRequestError2,
13
10
  isUnauthorizedError2,
@@ -48,6 +45,9 @@ import {
48
45
  isWorktreeError2,
49
46
  isVcsInitNotSupportedError2
50
47
  } from "../chunks/mcp-8we1dz3p.js";
48
+ import {
49
+ ClientError3
50
+ } from "../chunks/mcp-nwcpakzx.js";
51
51
  import"../chunks/mcp-gecjxyvt.js";
52
52
  export {
53
53
  ClientError3 as ClientError,
@@ -15,13 +15,13 @@ import {
15
15
  same2,
16
16
  probeResult2,
17
17
  headers2
18
- } from "../chunks/mcp-8ye1ye6f.js";
18
+ } from "../chunks/mcp-2ny4vxct.js";
19
19
  import {
20
20
  prepare2,
21
21
  environment2,
22
22
  complete2,
23
23
  clear2
24
- } from "../chunks/mcp-8p2c9bx4.js";
24
+ } from "../chunks/mcp-t7w7d9gg.js";
25
25
  import"../chunks/mcp-qav6mfdz.js";
26
26
 
27
27
  // src/promise/service.ts
@@ -4,10 +4,10 @@ import {
4
4
  complete2,
5
5
  clear2,
6
6
  exports_pty_handoff
7
- } from "./chunks/mcp-8p2c9bx4.js";
8
- import"./chunks/mcp-8ye1ye6f.js";
9
- import"./chunks/mcp-xgnj2w4v.js";
7
+ } from "./chunks/mcp-t7w7d9gg.js";
8
+ import"./chunks/mcp-2ny4vxct.js";
10
9
  import"./chunks/mcp-sxt88q69.js";
10
+ import"./chunks/mcp-xgnj2w4v.js";
11
11
  export {
12
12
  exports_pty_handoff as PtyHandoff,
13
13
  clear2 as clear,
@@ -4,9 +4,9 @@ import {
4
4
  same2,
5
5
  probeResult2,
6
6
  headers2
7
- } from "./chunks/mcp-8ye1ye6f.js";
8
- import"./chunks/mcp-xgnj2w4v.js";
7
+ } from "./chunks/mcp-2ny4vxct.js";
9
8
  import"./chunks/mcp-sxt88q69.js";
9
+ import"./chunks/mcp-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/mcp-cyxwqteg.js";
6
6
  import"../chunks/mcp-m2eywc8w.js";
7
- import"../chunks/mcp-nrbbv8kf.js";
7
+ import"../chunks/mcp-aa5vv09h.js";
8
8
  import"../chunks/mcp-ab9bm97w.js";
9
9
  import"../chunks/mcp-vyas3vgt.js";
10
10
  import"../chunks/mcp-0mrkn4v6.js";
11
- import"../chunks/mcp-nwcpakzx.js";
12
11
  import"../chunks/mcp-8we1dz3p.js";
12
+ import"../chunks/mcp-nwcpakzx.js";
13
13
  import"../chunks/mcp-gecjxyvt.js";
14
14
  export {
15
15
  createData2 as createData,
@@ -4,7 +4,7 @@ import"../chunks/mcp-8we1dz3p.js";
4
4
  import"../chunks/mcp-vyas3vgt.js";
5
5
  import"../chunks/mcp-gecjxyvt.js";
6
6
  import"../chunks/mcp-ab9bm97w.js";
7
- import"../chunks/mcp-nrbbv8kf.js";
7
+ import"../chunks/mcp-aa5vv09h.js";
8
8
  import"../chunks/mcp-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-176",
4
+ "version": "0.0.0-dev-177",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -63,8 +63,8 @@
63
63
  "typecheck:tsc": "tsc --noEmit"
64
64
  },
65
65
  "dependencies": {
66
- "@opencode/schema": "0.0.0-dev-176",
67
- "@opencode/protocol": "0.0.0-dev-176"
66
+ "@opencode/schema": "0.0.0-dev-177",
67
+ "@opencode/protocol": "0.0.0-dev-177"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "effect": "4.0.1",
@@ -81,7 +81,7 @@
81
81
  "devDependencies": {
82
82
  "@effect/platform-node": "4.0.1",
83
83
  "@modelcontextprotocol/client": "2.3.1",
84
- "@opencode/httpapi-codegen": "0.0.0-dev-176",
84
+ "@opencode/httpapi-codegen": "0.0.0-dev-177",
85
85
  "@tsconfig/bun": "1.0.9",
86
86
  "@types/bun": "1.4.3",
87
87
  "@typescript/native": "npm:typescript@7.1.0-beta",