@opencode/client 0.0.0-dev-20082 → 0.0.0-dev-20085
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/{service-7znjf2dm.js → service-r7kdtxyz.js} +3 -3
- package/dist/chunks/{service-d9yrkgkn.js → service-yadhdny7.js} +6 -6
- package/dist/chunks/{service-65kht65h.js → service-z6qdwcsf.js} +3 -3
- package/dist/effect/client.js +5 -5
- 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/package.json +4 -4
|
@@ -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/unstable/encoding";
|
|
@@ -589,6 +589,6 @@ var adaptClient = (raw) => ({
|
|
|
589
589
|
websearch: adaptGroupWebsearch(raw["server.websearch"]),
|
|
590
590
|
config: adaptGroupConfig(raw["server.config"])
|
|
591
591
|
});
|
|
592
|
-
var
|
|
592
|
+
var make3 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
|
|
593
593
|
|
|
594
|
-
export {
|
|
594
|
+
export { make3, exports_client2 };
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
ClientError2
|
|
6
6
|
} from "./service-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./service-
|
|
8
|
+
make3
|
|
9
|
+
} from "./service-r7kdtxyz.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
make4,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./service-
|
|
13
|
+
} from "./service-z6qdwcsf.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./service-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
|
|
|
@@ -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 };
|
package/dist/effect/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/service-
|
|
5
|
-
import"../chunks/service-65kht65h.js";
|
|
4
|
+
} from "../chunks/service-yadhdny7.js";
|
|
6
5
|
import"../chunks/service-6mptkzbc.js";
|
|
7
|
-
import"../chunks/service-
|
|
6
|
+
import"../chunks/service-r7kdtxyz.js";
|
|
8
7
|
import"../chunks/service-y2etg5bs.js";
|
|
9
|
-
import"../chunks/service-
|
|
10
|
-
import"../chunks/service-vmytr4q8.js";
|
|
8
|
+
import"../chunks/service-z6qdwcsf.js";
|
|
11
9
|
import"../chunks/service-frbwqjmf.js";
|
|
10
|
+
import"../chunks/service-vmytr4q8.js";
|
|
11
|
+
import"../chunks/service-t1xa31vm.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/service-y2etg5bs.js";
|
|
4
4
|
import"../chunks/service-vmytr4q8.js";
|
|
5
|
-
import"../chunks/service-
|
|
5
|
+
import"../chunks/service-r7kdtxyz.js";
|
|
6
6
|
import"../chunks/service-6mptkzbc.js";
|
|
7
7
|
import"../chunks/service-frbwqjmf.js";
|
|
8
8
|
import"../chunks/service-t1xa31vm.js";
|
|
9
|
-
import"../chunks/service-
|
|
9
|
+
import"../chunks/service-z6qdwcsf.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_client
|
|
12
|
-
} from "../chunks/service-
|
|
12
|
+
} from "../chunks/service-yadhdny7.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/service-
|
|
5
|
+
} from "../chunks/service-z6qdwcsf.js";
|
|
6
6
|
import"../chunks/service-t1xa31vm.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make4 as make
|
|
11
11
|
};
|
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-20085",
|
|
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": "0.0.0-dev-
|
|
61
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
60
|
+
"@opencode/schema": "0.0.0-dev-20085",
|
|
61
|
+
"@opencode/protocol": "0.0.0-dev-20085"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.0-rc.112",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
77
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
77
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-20085",
|
|
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",
|