@opencode/client 0.0.0-dev-65 → 0.0.0-dev-70
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.
- package/dist/chunks/{contract-15p82y03.js → contract-9j12j8xw.js} +3 -3
- package/dist/chunks/{contract-86jad5f6.js → contract-ctxmvs8y.js} +3 -3
- package/dist/chunks/{contract-81jvwacr.js → contract-kd24eskk.js} +6 -6
- package/dist/effect/client.js +4 -4
- package/dist/effect/generated/client.js +3 -3
- package/dist/effect/generated/index.js +1 -1
- package/dist/effect/index.js +3 -3
- package/dist/effect/rpc.js +3 -3
- package/dist/effect/service.js +1 -1
- package/dist/promise/service.js +1 -1
- package/dist/pty-handoff.js +1 -1
- package/package.json +4 -4
- /package/dist/chunks/{contract-80gjrnkv.js → contract-w2eqyd95.js} +0 -0
|
@@ -13,10 +13,10 @@ var exports_rpc = {};
|
|
|
13
13
|
__export(exports_rpc, {
|
|
14
14
|
RpcClientRuntime: () => exports_rpc,
|
|
15
15
|
aborted: () => aborted2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make4
|
|
17
17
|
});
|
|
18
18
|
import { Effect, Stream } from "effect";
|
|
19
|
-
function
|
|
19
|
+
function make4(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 {
|
|
62
|
+
export { make4, aborted2, exports_rpc };
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
// src/effect/generated/client.ts
|
|
12
12
|
var exports_client2 = {};
|
|
13
13
|
__export(exports_client2, {
|
|
14
|
-
make: () =>
|
|
14
|
+
make: () => make3
|
|
15
15
|
});
|
|
16
16
|
import { Effect, Stream, Schema } from "effect";
|
|
17
17
|
import { Sse } from "effect/encoding";
|
|
@@ -666,6 +666,6 @@ var adaptClient = (raw) => ({
|
|
|
666
666
|
usage: adaptGroupUsage(raw["server.usage"]),
|
|
667
667
|
config: adaptGroupConfig(raw["server.config"])
|
|
668
668
|
});
|
|
669
|
-
var
|
|
669
|
+
var make3 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
|
|
670
670
|
|
|
671
|
-
export {
|
|
671
|
+
export { make3, exports_client2 };
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
ClientError2
|
|
6
6
|
} from "./contract-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./contract-
|
|
8
|
+
make3
|
|
9
|
+
} from "./contract-ctxmvs8y.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
make4,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./contract-
|
|
13
|
+
} from "./contract-9j12j8xw.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./contract-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*
|
|
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))));
|
|
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(
|
|
48
|
+
rpc: Object.assign(make4((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
|
|
49
49
|
};
|
|
50
50
|
});
|
|
51
51
|
|
package/dist/effect/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/contract-
|
|
4
|
+
} from "../chunks/contract-kd24eskk.js";
|
|
5
5
|
import"../chunks/contract-6mptkzbc.js";
|
|
6
|
-
import"../chunks/contract-
|
|
7
|
-
import"../chunks/contract-
|
|
6
|
+
import"../chunks/contract-ctxmvs8y.js";
|
|
7
|
+
import"../chunks/contract-9j12j8xw.js";
|
|
8
8
|
import"../chunks/contract-y2etg5bs.js";
|
|
9
9
|
import"../chunks/contract-vmytr4q8.js";
|
|
10
|
-
import"../chunks/contract-ryy6kscr.js";
|
|
11
10
|
import"../chunks/contract-gecjxyvt.js";
|
|
11
|
+
import"../chunks/contract-ryy6kscr.js";
|
|
12
12
|
export {
|
|
13
13
|
exports_client as OpenCode,
|
|
14
14
|
make2 as make
|
package/dist/effect/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
ClientError2
|
|
3
3
|
} from "../chunks/contract-y2etg5bs.js";
|
|
4
4
|
import"../chunks/contract-vmytr4q8.js";
|
|
5
|
-
import"../chunks/contract-
|
|
5
|
+
import"../chunks/contract-ctxmvs8y.js";
|
|
6
6
|
import"../chunks/contract-6mptkzbc.js";
|
|
7
7
|
import"../chunks/contract-gecjxyvt.js";
|
|
8
8
|
import"../chunks/contract-ryy6kscr.js";
|
|
9
|
-
import"../chunks/contract-
|
|
9
|
+
import"../chunks/contract-9j12j8xw.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_client
|
|
12
|
-
} from "../chunks/contract-
|
|
12
|
+
} from "../chunks/contract-kd24eskk.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
package/dist/effect/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make4,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/contract-
|
|
5
|
+
} from "../chunks/contract-9j12j8xw.js";
|
|
6
6
|
import"../chunks/contract-ryy6kscr.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make4 as make
|
|
11
11
|
};
|
package/dist/effect/service.js
CHANGED
package/dist/promise/service.js
CHANGED
package/dist/pty-handoff.js
CHANGED
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-
|
|
4
|
+
"version": "0.0.0-dev-70",
|
|
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-
|
|
67
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
66
|
+
"@opencode/schema": "0.0.0-dev-70",
|
|
67
|
+
"@opencode/protocol": "0.0.0-dev-70"
|
|
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-
|
|
84
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-70",
|
|
85
85
|
"@tsconfig/bun": "1.0.9",
|
|
86
86
|
"@types/bun": "1.4.3",
|
|
87
87
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
File without changes
|