@opencode/client 0.0.0-dev-21920 → 0.0.0-dev-44
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-timing-10stgdsh.js → contract-10stgdsh.js} +1 -1
- package/dist/chunks/{service-timing-myz4ngx9.js → contract-15p82y03.js} +5 -5
- package/dist/chunks/{service-timing-wgwjv0c0.js → contract-1c0a7bf6.js} +12 -12
- package/dist/chunks/{service-timing-8ye1ye6f.js → contract-2ny4vxct.js} +2 -2
- package/dist/chunks/contract-c7bzqp37.js +30 -0
- package/dist/chunks/{service-timing-z60thr8p.js → contract-g7k52zyy.js} +17 -17
- package/dist/chunks/{service-timing-8bbb028w.js → contract-gecjxyvt.js} +5 -1
- package/dist/chunks/{service-timing-js54wxgp.js → contract-nwcpakzx.js} +2 -2
- package/dist/chunks/{service-timing-ryy6kscr.js → contract-ryy6kscr.js} +1 -1
- package/dist/chunks/{service-timing-skhp7hxc.js → contract-skhp7hxc.js} +1 -1
- package/dist/chunks/{service-timing-c5vnxf8s.js → contract-vetb1vph.js} +28 -21
- package/dist/chunks/{service-timing-7f0py9js.js → contract-y2etg5bs.js} +2 -2
- package/dist/chunks/{service-timing-tcza4147.js → contract-z63y07gf.js} +2 -2
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +5 -1
- package/dist/effect/api.d.ts +1 -0
- package/dist/effect/client.d.ts +101 -97
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +2 -2
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +8 -8
- package/dist/effect/index.js +12 -12
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/promise/api.d.ts +1 -0
- package/dist/promise/client.d.ts +1 -1
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +2 -2
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +9 -9
- package/dist/promise/generated/types.d.ts +905 -3545
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +13 -13
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +4 -4
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.d.ts +7 -2
- package/dist/shared-events.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.js +13 -13
- package/dist/solid/pty.js +1 -1
- package/dist/solid/retention.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +7 -6
- package/dist/chunks/service-timing-wjm0xvz3.js +0 -30
- /package/dist/chunks/{service-timing-6mptkzbc.js → contract-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-timing-6mq2wh8y.js → contract-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{service-timing-8s2anffy.js → contract-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-timing-9rqn6x4v.js → contract-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-timing-c46qzyff.js → contract-c46qzyff.js} +0 -0
- /package/dist/chunks/{service-timing-gne7h7mq.js → contract-gne7h7mq.js} +0 -0
- /package/dist/chunks/{service-timing-m2eywc8w.js → contract-m2eywc8w.js} +0 -0
- /package/dist/chunks/{service-timing-qav6mfdz.js → contract-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-timing-sxt88q69.js → contract-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-timing-ve4aws36.js → contract-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-timing-vmytr4q8.js → contract-vmytr4q8.js} +0 -0
- /package/dist/chunks/{service-timing-vyas3vgt.js → contract-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-timing-xgnj2w4v.js → contract-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-timing-ydhz1zrh.js → contract-ydhz1zrh.js} +0 -0
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isShellNotFoundError2,
|
|
34
34
|
isWorktreeError2,
|
|
35
35
|
isVcsInitNotSupportedError2
|
|
36
|
-
} from "../../chunks/
|
|
36
|
+
} from "../../chunks/contract-c46qzyff.js";
|
|
37
37
|
export {
|
|
38
38
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
39
39
|
isCommandExecutionError2 as isCommandExecutionError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/contract-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import
|
|
8
|
-
ClientError2
|
|
9
|
-
} from "../chunks/service-timing-js54wxgp.js";
|
|
10
|
-
import"../chunks/service-timing-skhp7hxc.js";
|
|
3
|
+
exports_client3
|
|
4
|
+
} from "../chunks/contract-c7bzqp37.js";
|
|
5
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
6
|
+
import"../chunks/contract-skhp7hxc.js";
|
|
7
|
+
import"../chunks/contract-vetb1vph.js";
|
|
11
8
|
import {
|
|
12
9
|
isInvalidRequestError2,
|
|
13
10
|
isUnauthorizedError2,
|
|
@@ -43,11 +40,14 @@ import {
|
|
|
43
40
|
isShellNotFoundError2,
|
|
44
41
|
isWorktreeError2,
|
|
45
42
|
isVcsInitNotSupportedError2
|
|
46
|
-
} from "../chunks/
|
|
47
|
-
import
|
|
43
|
+
} from "../chunks/contract-c46qzyff.js";
|
|
44
|
+
import {
|
|
45
|
+
ClientError3
|
|
46
|
+
} from "../chunks/contract-nwcpakzx.js";
|
|
47
|
+
import"../chunks/contract-gecjxyvt.js";
|
|
48
48
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
ClientError3 as ClientError,
|
|
50
|
+
exports_client3 as OpenCode,
|
|
51
51
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
52
52
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
53
53
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
package/dist/promise/rpc.js
CHANGED
package/dist/promise/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/
|
|
4
|
+
} from "../chunks/contract-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/contract-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/contract-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
decide2,
|
|
14
14
|
fallback2,
|
|
15
15
|
same2,
|
|
16
16
|
probeResult2,
|
|
17
17
|
headers2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/contract-2ny4vxct.js";
|
|
19
19
|
import {
|
|
20
20
|
prepare2,
|
|
21
21
|
environment2,
|
|
22
22
|
complete2,
|
|
23
23
|
clear2
|
|
24
|
-
} from "../chunks/
|
|
25
|
-
import"../chunks/
|
|
24
|
+
} from "../chunks/contract-z63y07gf.js";
|
|
25
|
+
import"../chunks/contract-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/promise/service.ts
|
|
28
28
|
import { readFile, rm } from "node:fs/promises";
|
package/dist/pty-handoff.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
complete2,
|
|
5
5
|
clear2,
|
|
6
6
|
exports_pty_handoff
|
|
7
|
-
} from "./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
10
|
-
import"./chunks/
|
|
7
|
+
} from "./chunks/contract-z63y07gf.js";
|
|
8
|
+
import"./chunks/contract-2ny4vxct.js";
|
|
9
|
+
import"./chunks/contract-sxt88q69.js";
|
|
10
|
+
import"./chunks/contract-xgnj2w4v.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_pty_handoff as PtyHandoff,
|
|
13
13
|
clear2 as clear,
|
package/dist/rpc-runtime.js
CHANGED
package/dist/service-probe.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
same2,
|
|
5
5
|
probeResult2,
|
|
6
6
|
headers2
|
|
7
|
-
} from "./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
7
|
+
} from "./chunks/contract-2ny4vxct.js";
|
|
8
|
+
import"./chunks/contract-sxt88q69.js";
|
|
9
|
+
import"./chunks/contract-xgnj2w4v.js";
|
|
10
10
|
export {
|
|
11
11
|
decide2 as decide,
|
|
12
12
|
fallback2 as fallback,
|
package/dist/service-timing.js
CHANGED
package/dist/service-version.js
CHANGED
package/dist/service.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunks/
|
|
1
|
+
import"./chunks/contract-qav6mfdz.js";
|
package/dist/shared-events.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export * as SharedEvents from "./shared-events.js";
|
|
2
|
-
|
|
2
|
+
/** The members of event union `A` whose type matches one of `Type`, including `rpc.*` events. */
|
|
3
|
+
export type SelectedEvent<A extends {
|
|
4
|
+
readonly type: string;
|
|
5
|
+
}, Type extends string> = A extends unknown ? [Extract<Type, A["type"]>] extends [never] ? never : A : never;
|
|
6
|
+
export type SubscribeOptions<Type extends string = string> = {
|
|
7
|
+
readonly types?: ReadonlyArray<Type>;
|
|
3
8
|
readonly signal?: AbortSignal;
|
|
4
9
|
/** Reports transport activity on the shared stream, including keepalive frames that carry no event. */
|
|
5
10
|
readonly onActivity?: () => void;
|
|
@@ -7,5 +12,5 @@ export type SubscribeOptions = {
|
|
|
7
12
|
export declare function make<A extends {
|
|
8
13
|
readonly type: string;
|
|
9
14
|
}>(connect: (signal: AbortSignal, onActivity: () => void) => AsyncIterable<A>): {
|
|
10
|
-
subscribe(options?: SubscribeOptions): AsyncIterable<A
|
|
15
|
+
subscribe<Type extends Exclude<A["type"], "server.connected"> = Exclude<A["type"], "server.connected">>(options?: SubscribeOptions<Type>): AsyncIterable<SelectedEvent<A, Type | "server.connected">>;
|
|
11
16
|
};
|
package/dist/shared-events.js
CHANGED
package/dist/solid/connection.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
defaultIdleTimeout2,
|
|
3
3
|
foregroundIdleThreshold2,
|
|
4
4
|
createClientConnection2
|
|
5
|
-
} from "../chunks/
|
|
5
|
+
} from "../chunks/contract-ydhz1zrh.js";
|
|
6
6
|
export {
|
|
7
7
|
createClientConnection2 as createClientConnection,
|
|
8
8
|
defaultIdleTimeout2 as defaultIdleTimeout,
|
package/dist/solid/data.js
CHANGED
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
settleMs2,
|
|
3
3
|
locationKey2,
|
|
4
4
|
createData2
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
12
|
-
import"../chunks/
|
|
13
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/contract-10stgdsh.js";
|
|
6
|
+
import"../chunks/contract-m2eywc8w.js";
|
|
7
|
+
import"../chunks/contract-c7bzqp37.js";
|
|
8
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
9
|
+
import"../chunks/contract-skhp7hxc.js";
|
|
10
|
+
import"../chunks/contract-vetb1vph.js";
|
|
11
|
+
import"../chunks/contract-c46qzyff.js";
|
|
12
|
+
import"../chunks/contract-nwcpakzx.js";
|
|
13
|
+
import"../chunks/contract-gecjxyvt.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import"../chunks/
|
|
2
|
-
import"../chunks/
|
|
3
|
-
import"../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/contract-nwcpakzx.js";
|
|
2
|
+
import"../chunks/contract-vetb1vph.js";
|
|
3
|
+
import"../chunks/contract-c46qzyff.js";
|
|
4
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
5
|
+
import"../chunks/contract-gecjxyvt.js";
|
|
6
|
+
import"../chunks/contract-skhp7hxc.js";
|
|
7
|
+
import"../chunks/contract-c7bzqp37.js";
|
|
8
|
+
import"../chunks/contract-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/
|
|
13
|
+
} from "../chunks/contract-10stgdsh.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/contract-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/
|
|
22
|
+
} from "../chunks/contract-gne7h7mq.js";
|
|
23
23
|
import {
|
|
24
24
|
createSessionRetention2
|
|
25
|
-
} from "../chunks/
|
|
25
|
+
} from "../chunks/contract-6mq2wh8y.js";
|
|
26
26
|
import {
|
|
27
27
|
lastAssistantWithUsage2
|
|
28
|
-
} from "../chunks/
|
|
28
|
+
} from "../chunks/contract-8s2anffy.js";
|
|
29
29
|
export {
|
|
30
30
|
createClientConnection2 as createClientConnection,
|
|
31
31
|
createData2 as createData,
|
package/dist/solid/pty.js
CHANGED
package/dist/solid/retention.js
CHANGED
package/dist/solid/usage.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-44",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -54,16 +54,17 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
|
-
"build": "bun run script/build
|
|
58
|
-
"
|
|
57
|
+
"build": "bun run script/build.ts",
|
|
58
|
+
"pack": "bun run script/pack.ts",
|
|
59
|
+
"generate": "bun run script/generate.ts",
|
|
59
60
|
"check:generated": "bun run generate && git diff --exit-code -- src/promise/generated src/effect/generated src/effect/api",
|
|
60
61
|
"test": "bun test --timeout 5000",
|
|
61
62
|
"typecheck": "bun check --no-script",
|
|
62
63
|
"typecheck:tsc": "tsc --noEmit"
|
|
63
64
|
},
|
|
64
65
|
"dependencies": {
|
|
65
|
-
"@opencode/schema": "0.0.0-dev-
|
|
66
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
66
|
+
"@opencode/schema": "0.0.0-dev-44",
|
|
67
|
+
"@opencode/protocol": "0.0.0-dev-44"
|
|
67
68
|
},
|
|
68
69
|
"peerDependencies": {
|
|
69
70
|
"effect": "4.0.1",
|
|
@@ -80,7 +81,7 @@
|
|
|
80
81
|
"devDependencies": {
|
|
81
82
|
"@effect/platform-node": "4.0.1",
|
|
82
83
|
"@modelcontextprotocol/client": "2.3.1",
|
|
83
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
84
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-44",
|
|
84
85
|
"@tsconfig/bun": "1.0.9",
|
|
85
86
|
"@types/bun": "1.4.3",
|
|
86
87
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
make7
|
|
3
|
-
} from "./service-timing-8bbb028w.js";
|
|
4
|
-
import {
|
|
5
|
-
make3
|
|
6
|
-
} from "./service-timing-c5vnxf8s.js";
|
|
7
|
-
import {
|
|
8
|
-
makeRpc2
|
|
9
|
-
} from "./service-timing-skhp7hxc.js";
|
|
10
|
-
import {
|
|
11
|
-
__export
|
|
12
|
-
} from "./service-timing-9rqn6x4v.js";
|
|
13
|
-
|
|
14
|
-
// src/promise/client.ts
|
|
15
|
-
var exports_client = {};
|
|
16
|
-
__export(exports_client, {
|
|
17
|
-
OpenCode: () => exports_client,
|
|
18
|
-
make: () => make2
|
|
19
|
-
});
|
|
20
|
-
function make2(options) {
|
|
21
|
-
const raw = make3(options);
|
|
22
|
-
const events = make7((signal, onActivity) => raw.event.subscribe({ signal, onActivity }));
|
|
23
|
-
return {
|
|
24
|
-
...raw,
|
|
25
|
-
rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
|
|
26
|
-
event: events
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { make2, exports_client };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|