@opencode/client 0.0.0-dev-20484 → 0.0.0-dev-20487
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-c74kxtaj.js → shared-events-1y4a697q.js} +1 -1
- package/dist/chunks/{contract-3c62vwd3.js → shared-events-5myj1ht6.js} +17 -17
- package/dist/chunks/{contract-y2etg5bs.js → shared-events-7f0py9js.js} +2 -2
- package/dist/chunks/{contract-10k8qxyc.js → shared-events-e5ea35j7.js} +1 -1
- package/dist/chunks/shared-events-er999wh1.js +30 -0
- package/dist/chunks/{contract-frbwqjmf.js → shared-events-frbwqjmf.js} +1 -1
- package/dist/chunks/{contract-nwcpakzx.js → shared-events-js54wxgp.js} +2 -2
- package/dist/chunks/{contract-z6qdwcsf.js → shared-events-mnyft54j.js} +5 -5
- package/dist/chunks/{contract-bqmmtv3d.js → shared-events-qzsnm4q8.js} +70 -64
- package/dist/chunks/{contract-ajnk5b9f.js → shared-events-raw99g3w.js} +10 -10
- package/dist/chunks/{contract-t1xa31vm.js → shared-events-t1xa31vm.js} +1 -1
- package/dist/chunks/{contract-vv6ja3wh.js → shared-events-t2nwke50.js} +1 -1
- package/dist/chunks/{contract-wyrqvvk9.js → shared-events-vt9jbch8.js} +2 -1
- package/dist/contract.js +1 -1
- package/dist/effect/client.d.ts +93 -93
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +92 -92
- 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 +5 -5
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +12 -10
- package/dist/promise/generated/types.d.ts +8 -0
- package/dist/promise/generated/types.js +3 -1
- package/dist/promise/index.js +15 -13
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +5 -5
- package/dist/pty-handoff.js +1 -1
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- 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 +11 -11
- package/dist/solid/pty.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/contract-bm1v05te.js +0 -30
- /package/dist/chunks/{contract-6mptkzbc.js → shared-events-6mptkzbc.js} +0 -0
- /package/dist/chunks/{contract-9rqn6x4v.js → shared-events-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{contract-gne7h7mq.js → shared-events-gne7h7mq.js} +0 -0
- /package/dist/chunks/{contract-m2eywc8w.js → shared-events-m2eywc8w.js} +0 -0
- /package/dist/chunks/{contract-qav6mfdz.js → shared-events-qav6mfdz.js} +0 -0
- /package/dist/chunks/{contract-sxt88q69.js → shared-events-sxt88q69.js} +0 -0
- /package/dist/chunks/{contract-txckps9j.js → shared-events-txckps9j.js} +0 -0
- /package/dist/chunks/{contract-vmytr4q8.js → shared-events-vmytr4q8.js} +0 -0
- /package/dist/chunks/{contract-vyas3vgt.js → shared-events-vyas3vgt.js} +0 -0
- /package/dist/chunks/{contract-xgnj2w4v.js → shared-events-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{contract-ydhz1zrh.js → shared-events-ydhz1zrh.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
2
|
+
make3
|
|
3
|
+
} from "../../chunks/shared-events-qzsnm4q8.js";
|
|
4
|
+
import"../../chunks/shared-events-js54wxgp.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
make3 as make
|
|
7
7
|
};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/shared-events-vyas3vgt.js";
|
|
2
|
+
import {
|
|
3
|
+
exports_client2
|
|
4
|
+
} from "../../chunks/shared-events-qzsnm4q8.js";
|
|
5
|
+
import {
|
|
6
|
+
ClientError2
|
|
7
|
+
} from "../../chunks/shared-events-js54wxgp.js";
|
|
2
8
|
import {
|
|
3
9
|
isInvalidRequestError2,
|
|
4
10
|
isUnauthorizedError2,
|
|
11
|
+
isLocationNotFoundError2,
|
|
5
12
|
isServiceUnavailableError2,
|
|
6
13
|
isAgentNotFoundError2,
|
|
7
14
|
isInvalidCursorError2,
|
|
@@ -32,16 +39,10 @@ import {
|
|
|
32
39
|
isShellNotFoundError2,
|
|
33
40
|
isWorktreeError2,
|
|
34
41
|
isVcsInitNotSupportedError2
|
|
35
|
-
} from "../../chunks/
|
|
36
|
-
import {
|
|
37
|
-
exports_client4
|
|
38
|
-
} from "../../chunks/contract-bqmmtv3d.js";
|
|
39
|
-
import {
|
|
40
|
-
ClientError3
|
|
41
|
-
} from "../../chunks/contract-nwcpakzx.js";
|
|
42
|
+
} from "../../chunks/shared-events-vt9jbch8.js";
|
|
42
43
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
ClientError2 as ClientError,
|
|
45
|
+
exports_client2 as OpenCode,
|
|
45
46
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
46
47
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
47
48
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
@@ -57,6 +58,7 @@ export {
|
|
|
57
58
|
isIntegrationNotFoundError2 as isIntegrationNotFoundError,
|
|
58
59
|
isInvalidCursorError2 as isInvalidCursorError,
|
|
59
60
|
isInvalidRequestError2 as isInvalidRequestError,
|
|
61
|
+
isLocationNotFoundError2 as isLocationNotFoundError,
|
|
60
62
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
61
63
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
62
64
|
isPermissionNotFoundError2 as isPermissionNotFoundError,
|
|
@@ -3368,6 +3368,14 @@ export type UnauthorizedError = {
|
|
|
3368
3368
|
readonly message: string;
|
|
3369
3369
|
};
|
|
3370
3370
|
export declare const isUnauthorizedError: (value: unknown) => value is UnauthorizedError;
|
|
3371
|
+
export type LocationNotFoundError = {
|
|
3372
|
+
readonly _tag: "LocationNotFoundError";
|
|
3373
|
+
readonly location: {
|
|
3374
|
+
readonly directory: string;
|
|
3375
|
+
};
|
|
3376
|
+
readonly message: string;
|
|
3377
|
+
};
|
|
3378
|
+
export declare const isLocationNotFoundError: (value: unknown) => value is LocationNotFoundError;
|
|
3371
3379
|
export type ServiceUnavailableError = {
|
|
3372
3380
|
readonly _tag: "ServiceUnavailableError";
|
|
3373
3381
|
readonly message: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isInvalidRequestError2,
|
|
3
3
|
isUnauthorizedError2,
|
|
4
|
+
isLocationNotFoundError2,
|
|
4
5
|
isServiceUnavailableError2,
|
|
5
6
|
isAgentNotFoundError2,
|
|
6
7
|
isInvalidCursorError2,
|
|
@@ -31,7 +32,7 @@ import {
|
|
|
31
32
|
isShellNotFoundError2,
|
|
32
33
|
isWorktreeError2,
|
|
33
34
|
isVcsInitNotSupportedError2
|
|
34
|
-
} from "../../chunks/
|
|
35
|
+
} from "../../chunks/shared-events-vt9jbch8.js";
|
|
35
36
|
export {
|
|
36
37
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
37
38
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
@@ -48,6 +49,7 @@ export {
|
|
|
48
49
|
isIntegrationNotFoundError2 as isIntegrationNotFoundError,
|
|
49
50
|
isInvalidCursorError2 as isInvalidCursorError,
|
|
50
51
|
isInvalidRequestError2 as isInvalidRequestError,
|
|
52
|
+
isLocationNotFoundError2 as isLocationNotFoundError,
|
|
51
53
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
52
54
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
53
55
|
isPermissionNotFoundError2 as isPermissionNotFoundError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/shared-events-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/shared-events-er999wh1.js";
|
|
5
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
6
|
+
import"../chunks/shared-events-vyas3vgt.js";
|
|
7
|
+
import"../chunks/shared-events-qzsnm4q8.js";
|
|
8
|
+
import {
|
|
9
|
+
ClientError2
|
|
10
|
+
} from "../chunks/shared-events-js54wxgp.js";
|
|
7
11
|
import {
|
|
8
12
|
isInvalidRequestError2,
|
|
9
13
|
isUnauthorizedError2,
|
|
14
|
+
isLocationNotFoundError2,
|
|
10
15
|
isServiceUnavailableError2,
|
|
11
16
|
isAgentNotFoundError2,
|
|
12
17
|
isInvalidCursorError2,
|
|
@@ -37,15 +42,11 @@ import {
|
|
|
37
42
|
isShellNotFoundError2,
|
|
38
43
|
isWorktreeError2,
|
|
39
44
|
isVcsInitNotSupportedError2
|
|
40
|
-
} from "../chunks/
|
|
41
|
-
import"../chunks/
|
|
42
|
-
import {
|
|
43
|
-
ClientError3
|
|
44
|
-
} from "../chunks/contract-nwcpakzx.js";
|
|
45
|
-
import"../chunks/contract-frbwqjmf.js";
|
|
45
|
+
} from "../chunks/shared-events-vt9jbch8.js";
|
|
46
|
+
import"../chunks/shared-events-frbwqjmf.js";
|
|
46
47
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
ClientError2 as ClientError,
|
|
49
|
+
exports_client as OpenCode,
|
|
49
50
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
50
51
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
51
52
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
@@ -61,6 +62,7 @@ export {
|
|
|
61
62
|
isIntegrationNotFoundError2 as isIntegrationNotFoundError,
|
|
62
63
|
isInvalidCursorError2 as isInvalidCursorError,
|
|
63
64
|
isInvalidRequestError2 as isInvalidRequestError,
|
|
65
|
+
isLocationNotFoundError2 as isLocationNotFoundError,
|
|
64
66
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
65
67
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
66
68
|
isPermissionNotFoundError2 as isPermissionNotFoundError,
|
package/dist/promise/rpc.js
CHANGED
package/dist/promise/service.js
CHANGED
|
@@ -2,21 +2,21 @@ import {
|
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderFailure2,
|
|
4
4
|
contenderFinished2
|
|
5
|
-
} from "../chunks/
|
|
5
|
+
} from "../chunks/shared-events-txckps9j.js";
|
|
6
6
|
import {
|
|
7
7
|
defaultEnsureTiming2,
|
|
8
8
|
ensureTiming2
|
|
9
|
-
} from "../chunks/
|
|
9
|
+
} from "../chunks/shared-events-xgnj2w4v.js";
|
|
10
10
|
import {
|
|
11
11
|
matchesVersion2
|
|
12
|
-
} from "../chunks/
|
|
12
|
+
} from "../chunks/shared-events-sxt88q69.js";
|
|
13
13
|
import {
|
|
14
14
|
prepare2,
|
|
15
15
|
environment2,
|
|
16
16
|
complete2,
|
|
17
17
|
clear2
|
|
18
|
-
} from "../chunks/
|
|
19
|
-
import"../chunks/
|
|
18
|
+
} from "../chunks/shared-events-t2nwke50.js";
|
|
19
|
+
import"../chunks/shared-events-qav6mfdz.js";
|
|
20
20
|
|
|
21
21
|
// src/promise/service.ts
|
|
22
22
|
import { readFile, rm } from "node:fs/promises";
|
package/dist/pty-handoff.js
CHANGED
package/dist/rpc-runtime.js
CHANGED
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/shared-events-qav6mfdz.js";
|
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/shared-events-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/shared-events-e5ea35j7.js";
|
|
6
|
+
import"../chunks/shared-events-m2eywc8w.js";
|
|
7
|
+
import"../chunks/shared-events-er999wh1.js";
|
|
8
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
9
|
+
import"../chunks/shared-events-vyas3vgt.js";
|
|
10
|
+
import"../chunks/shared-events-qzsnm4q8.js";
|
|
11
|
+
import"../chunks/shared-events-js54wxgp.js";
|
|
12
|
+
import"../chunks/shared-events-vt9jbch8.js";
|
|
13
|
+
import"../chunks/shared-events-frbwqjmf.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
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/shared-events-js54wxgp.js";
|
|
2
|
+
import"../chunks/shared-events-qzsnm4q8.js";
|
|
3
|
+
import"../chunks/shared-events-vt9jbch8.js";
|
|
4
|
+
import"../chunks/shared-events-vyas3vgt.js";
|
|
5
|
+
import"../chunks/shared-events-frbwqjmf.js";
|
|
6
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
7
|
+
import"../chunks/shared-events-er999wh1.js";
|
|
8
|
+
import"../chunks/shared-events-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/
|
|
13
|
+
} from "../chunks/shared-events-e5ea35j7.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/shared-events-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/
|
|
22
|
+
} from "../chunks/shared-events-gne7h7mq.js";
|
|
23
23
|
export {
|
|
24
24
|
createClientConnection2 as createClientConnection,
|
|
25
25
|
createData2 as createData,
|
package/dist/solid/pty.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-20487",
|
|
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-20487",
|
|
61
|
+
"@opencode/protocol": "0.0.0-dev-20487"
|
|
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-20487",
|
|
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",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
make7
|
|
3
|
-
} from "./contract-frbwqjmf.js";
|
|
4
|
-
import {
|
|
5
|
-
make6
|
|
6
|
-
} from "./contract-bqmmtv3d.js";
|
|
7
|
-
import {
|
|
8
|
-
makeRpc2
|
|
9
|
-
} from "./contract-c74kxtaj.js";
|
|
10
|
-
import {
|
|
11
|
-
__export
|
|
12
|
-
} from "./contract-9rqn6x4v.js";
|
|
13
|
-
|
|
14
|
-
// src/promise/client.ts
|
|
15
|
-
var exports_client3 = {};
|
|
16
|
-
__export(exports_client3, {
|
|
17
|
-
OpenCode: () => exports_client3,
|
|
18
|
-
make: () => make5
|
|
19
|
-
});
|
|
20
|
-
function make5(options) {
|
|
21
|
-
const raw = make6(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 { make5, exports_client3 };
|
|
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
|