@opencode/client 0.0.0-dev-81 → 0.0.0-dev-85
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-contender-yc6f9r07.js → service-contender-fwfnbm9h.js} +3 -3
- package/dist/chunks/{service-contender-sqcsh66p.js → service-contender-gecjxyvt.js} +3 -3
- package/dist/chunks/{service-contender-pv0yngyj.js → service-contender-kxm4y2w0.js} +7 -7
- package/dist/chunks/{service-contender-18xz77sd.js → service-contender-myz4ngx9.js} +3 -3
- package/dist/effect/client.js +5 -5
- package/dist/effect/generated/client.js +2 -2
- package/dist/effect/generated/index.js +2 -2
- package/dist/effect/index.js +4 -4
- package/dist/effect/rpc.js +3 -3
- package/dist/effect/service.js +1 -1
- package/dist/promise/client.js +4 -4
- package/dist/promise/generated/index.js +3 -3
- package/dist/promise/index.js +6 -6
- package/dist/promise/service.js +1 -1
- package/dist/pty-handoff.js +1 -1
- package/dist/shared-events.js +3 -3
- package/dist/solid/data.js +4 -4
- package/dist/solid/index.js +2 -2
- package/package.json +4 -4
- /package/dist/chunks/{service-contender-rxd7awy0.js → service-contender-3sje9kqb.js} +0 -0
- /package/dist/chunks/{service-contender-zf1v58cq.js → service-contender-g4apsqge.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./service-contender-
|
|
2
|
+
make7
|
|
3
|
+
} from "./service-contender-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
5
|
make3
|
|
6
6
|
} from "./service-contender-wcsbjfhx.js";
|
|
@@ -19,7 +19,7 @@ __export(exports_client, {
|
|
|
19
19
|
});
|
|
20
20
|
function make2(options) {
|
|
21
21
|
const raw = make3(options);
|
|
22
|
-
const events =
|
|
22
|
+
const events = make7((signal, onActivity) => raw.event.subscribe(undefined, { signal, onActivity }));
|
|
23
23
|
return {
|
|
24
24
|
...raw,
|
|
25
25
|
rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
var exports_shared_events = {};
|
|
7
7
|
__export(exports_shared_events, {
|
|
8
8
|
SharedEvents: () => exports_shared_events,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make7
|
|
10
10
|
});
|
|
11
|
-
function
|
|
11
|
+
function make7(connect) {
|
|
12
12
|
let current;
|
|
13
13
|
const capacity = 4096;
|
|
14
14
|
function stop(connection) {
|
|
@@ -146,4 +146,4 @@ function make6(connect) {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export {
|
|
149
|
+
export { make7, exports_shared_events };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./service-contender-
|
|
2
|
+
make7
|
|
3
|
+
} from "./service-contender-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError3
|
|
6
6
|
} from "./service-contender-7f0py9js.js";
|
|
7
7
|
import {
|
|
8
8
|
make5
|
|
9
|
-
} from "./service-contender-
|
|
9
|
+
} from "./service-contender-3sje9kqb.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
make6,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./service-contender-
|
|
13
|
+
} from "./service-contender-myz4ngx9.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./service-contender-9rqn6x4v.js";
|
|
@@ -40,12 +40,12 @@ var make4 = Effect.fn("OpenCode.make")(function* (options) {
|
|
|
40
40
|
this.cause = cause;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const shared =
|
|
43
|
+
const shared = make7((signal) => Stream.toAsyncIterableWith(native.pipe(Stream.interruptWhen(aborted2(signal)), Stream.catchCause((cause) => Stream.fail(new EventFailure(cause)))), context));
|
|
44
44
|
const subscribe = (input) => Stream.fromAsyncIterable(shared.subscribe({ types: input?.types }), (error) => error).pipe(Stream.catch((error) => Stream.failCause(error instanceof EventFailure ? error.cause : Cause.fail(new ClientError3({ cause: error })))));
|
|
45
45
|
return {
|
|
46
46
|
...raw,
|
|
47
47
|
event: { ...raw.event, subscribe },
|
|
48
|
-
rpc: Object.assign(
|
|
48
|
+
rpc: Object.assign(make6((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: () => make6
|
|
17
17
|
});
|
|
18
18
|
import { Effect, Stream } from "effect";
|
|
19
|
-
function
|
|
19
|
+
function make6(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 { make6, aborted2, exports_rpc };
|
package/dist/effect/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make4,
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/service-contender-
|
|
4
|
+
} from "../chunks/service-contender-kxm4y2w0.js";
|
|
5
5
|
import"../chunks/service-contender-6mptkzbc.js";
|
|
6
|
-
import"../chunks/service-contender-
|
|
6
|
+
import"../chunks/service-contender-3sje9kqb.js";
|
|
7
|
+
import"../chunks/service-contender-vmytr4q8.js";
|
|
8
|
+
import"../chunks/service-contender-myz4ngx9.js";
|
|
7
9
|
import"../chunks/service-contender-7f0py9js.js";
|
|
8
|
-
import"../chunks/service-contender-sqcsh66p.js";
|
|
9
|
-
import"../chunks/service-contender-18xz77sd.js";
|
|
10
10
|
import"../chunks/service-contender-ryy6kscr.js";
|
|
11
|
-
import"../chunks/service-contender-
|
|
11
|
+
import"../chunks/service-contender-gecjxyvt.js";
|
|
12
12
|
export {
|
|
13
13
|
exports_client3 as OpenCode,
|
|
14
14
|
make4 as make
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make5
|
|
3
|
-
} from "../../chunks/service-contender-
|
|
4
|
-
import"../../chunks/service-contender-7f0py9js.js";
|
|
3
|
+
} from "../../chunks/service-contender-3sje9kqb.js";
|
|
5
4
|
import"../../chunks/service-contender-vmytr4q8.js";
|
|
5
|
+
import"../../chunks/service-contender-7f0py9js.js";
|
|
6
6
|
export {
|
|
7
7
|
make5 as make
|
|
8
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import"../../chunks/service-contender-6mptkzbc.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client4
|
|
4
|
-
} from "../../chunks/service-contender-
|
|
4
|
+
} from "../../chunks/service-contender-3sje9kqb.js";
|
|
5
|
+
import"../../chunks/service-contender-vmytr4q8.js";
|
|
5
6
|
import {
|
|
6
7
|
ClientError3
|
|
7
8
|
} from "../../chunks/service-contender-7f0py9js.js";
|
|
8
|
-
import"../../chunks/service-contender-vmytr4q8.js";
|
|
9
9
|
export {
|
|
10
10
|
ClientError3 as ClientError,
|
|
11
11
|
exports_client4 as OpenCode
|
package/dist/effect/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
ClientError3
|
|
3
3
|
} from "../chunks/service-contender-7f0py9js.js";
|
|
4
4
|
import"../chunks/service-contender-vmytr4q8.js";
|
|
5
|
-
import"../chunks/service-contender-
|
|
5
|
+
import"../chunks/service-contender-3sje9kqb.js";
|
|
6
6
|
import"../chunks/service-contender-6mptkzbc.js";
|
|
7
|
-
import"../chunks/service-contender-
|
|
7
|
+
import"../chunks/service-contender-gecjxyvt.js";
|
|
8
8
|
import"../chunks/service-contender-ryy6kscr.js";
|
|
9
|
-
import"../chunks/service-contender-
|
|
9
|
+
import"../chunks/service-contender-myz4ngx9.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_client3
|
|
12
|
-
} from "../chunks/service-contender-
|
|
12
|
+
} from "../chunks/service-contender-kxm4y2w0.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
|
+
make6,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/service-contender-
|
|
5
|
+
} from "../chunks/service-contender-myz4ngx9.js";
|
|
6
6
|
import"../chunks/service-contender-ryy6kscr.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make6 as make
|
|
11
11
|
};
|
package/dist/effect/service.js
CHANGED
package/dist/promise/client.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/service-contender-
|
|
5
|
-
import"../chunks/service-contender-ab9bm97w.js";
|
|
4
|
+
} from "../chunks/service-contender-fwfnbm9h.js";
|
|
6
5
|
import"../chunks/service-contender-vyas3vgt.js";
|
|
7
6
|
import"../chunks/service-contender-wcsbjfhx.js";
|
|
8
|
-
import"../chunks/service-contender-
|
|
7
|
+
import"../chunks/service-contender-ab9bm97w.js";
|
|
9
8
|
import"../chunks/service-contender-8we1dz3p.js";
|
|
10
|
-
import"../chunks/service-contender-
|
|
9
|
+
import"../chunks/service-contender-js54wxgp.js";
|
|
10
|
+
import"../chunks/service-contender-gecjxyvt.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_client as OpenCode,
|
|
13
13
|
make2 as make
|
|
@@ -2,9 +2,6 @@ import"../../chunks/service-contender-vyas3vgt.js";
|
|
|
2
2
|
import {
|
|
3
3
|
exports_client2
|
|
4
4
|
} from "../../chunks/service-contender-wcsbjfhx.js";
|
|
5
|
-
import {
|
|
6
|
-
ClientError2
|
|
7
|
-
} from "../../chunks/service-contender-js54wxgp.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/service-contender-8we1dz3p.js";
|
|
45
|
+
import {
|
|
46
|
+
ClientError2
|
|
47
|
+
} from "../../chunks/service-contender-js54wxgp.js";
|
|
48
48
|
export {
|
|
49
49
|
ClientError2 as ClientError,
|
|
50
50
|
exports_client2 as OpenCode,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import"../chunks/service-contender-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/service-contender-
|
|
5
|
-
import"../chunks/service-contender-ab9bm97w.js";
|
|
4
|
+
} from "../chunks/service-contender-fwfnbm9h.js";
|
|
6
5
|
import"../chunks/service-contender-vyas3vgt.js";
|
|
7
6
|
import"../chunks/service-contender-wcsbjfhx.js";
|
|
8
|
-
import
|
|
9
|
-
ClientError2
|
|
10
|
-
} from "../chunks/service-contender-js54wxgp.js";
|
|
7
|
+
import"../chunks/service-contender-ab9bm97w.js";
|
|
11
8
|
import {
|
|
12
9
|
isInvalidRequestError2,
|
|
13
10
|
isUnauthorizedError2,
|
|
@@ -48,7 +45,10 @@ import {
|
|
|
48
45
|
isWorktreeError2,
|
|
49
46
|
isVcsInitNotSupportedError2
|
|
50
47
|
} from "../chunks/service-contender-8we1dz3p.js";
|
|
51
|
-
import
|
|
48
|
+
import {
|
|
49
|
+
ClientError2
|
|
50
|
+
} from "../chunks/service-contender-js54wxgp.js";
|
|
51
|
+
import"../chunks/service-contender-gecjxyvt.js";
|
|
52
52
|
export {
|
|
53
53
|
ClientError2 as ClientError,
|
|
54
54
|
exports_client as OpenCode,
|
package/dist/promise/service.js
CHANGED
package/dist/pty-handoff.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
complete2,
|
|
5
5
|
clear2,
|
|
6
6
|
exports_pty_handoff
|
|
7
|
-
} from "./chunks/service-contender-
|
|
7
|
+
} from "./chunks/service-contender-g4apsqge.js";
|
|
8
8
|
import"./chunks/service-contender-2ny4vxct.js";
|
|
9
9
|
import"./chunks/service-contender-sxt88q69.js";
|
|
10
10
|
import"./chunks/service-contender-xgnj2w4v.js";
|
package/dist/shared-events.js
CHANGED
package/dist/solid/data.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
createData2
|
|
5
5
|
} from "../chunks/service-contender-cyxwqteg.js";
|
|
6
6
|
import"../chunks/service-contender-m2eywc8w.js";
|
|
7
|
-
import"../chunks/service-contender-
|
|
8
|
-
import"../chunks/service-contender-ab9bm97w.js";
|
|
7
|
+
import"../chunks/service-contender-fwfnbm9h.js";
|
|
9
8
|
import"../chunks/service-contender-vyas3vgt.js";
|
|
10
9
|
import"../chunks/service-contender-wcsbjfhx.js";
|
|
11
|
-
import"../chunks/service-contender-
|
|
10
|
+
import"../chunks/service-contender-ab9bm97w.js";
|
|
12
11
|
import"../chunks/service-contender-8we1dz3p.js";
|
|
13
|
-
import"../chunks/service-contender-
|
|
12
|
+
import"../chunks/service-contender-js54wxgp.js";
|
|
13
|
+
import"../chunks/service-contender-gecjxyvt.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import"../chunks/service-contender-js54wxgp.js";
|
|
|
2
2
|
import"../chunks/service-contender-wcsbjfhx.js";
|
|
3
3
|
import"../chunks/service-contender-8we1dz3p.js";
|
|
4
4
|
import"../chunks/service-contender-vyas3vgt.js";
|
|
5
|
-
import"../chunks/service-contender-
|
|
5
|
+
import"../chunks/service-contender-gecjxyvt.js";
|
|
6
6
|
import"../chunks/service-contender-ab9bm97w.js";
|
|
7
|
-
import"../chunks/service-contender-
|
|
7
|
+
import"../chunks/service-contender-fwfnbm9h.js";
|
|
8
8
|
import"../chunks/service-contender-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-
|
|
4
|
+
"version": "0.0.0-dev-85",
|
|
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-85",
|
|
67
|
+
"@opencode/protocol": "0.0.0-dev-85"
|
|
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-85",
|
|
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
|
|
File without changes
|