@opencode/client 0.0.0-dev-20053 → 0.0.0-dev-20055
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/{rpc-runtime-fya0q1x2.js → rpc-runtime-10yqjj3w.js} +1 -1
- package/dist/chunks/{rpc-runtime-fwsnhmea.js → rpc-runtime-7dxyhjws.js} +1 -1
- package/dist/chunks/{rpc-runtime-2djeg3e6.js → rpc-runtime-bpdjd9xk.js} +4 -4
- package/dist/chunks/{rpc-runtime-n3c99vt5.js → rpc-runtime-nwcpakzx.js} +2 -1
- package/dist/effect/client.js +3 -3
- package/dist/effect/generated/client.js +1 -1
- package/dist/effect/generated/index.js +1 -1
- package/dist/effect/index.js +2 -2
- package/dist/effect/service.js +1 -1
- package/dist/promise/client.js +4 -4
- package/dist/promise/generated/client-error.d.ts +3 -1
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +2 -2
- package/dist/promise/index.js +4 -4
- package/dist/promise/service.js +1 -1
- package/dist/pty-handoff.js +1 -1
- package/dist/solid/data.js +4 -4
- package/dist/solid/index.js +3 -3
- package/package.json +4 -4
- /package/dist/chunks/{rpc-runtime-yzab9a3t.js → rpc-runtime-3edwb0g6.js} +0 -0
- /package/dist/chunks/{rpc-runtime-5r7r9kd6.js → rpc-runtime-r7kdtxyz.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError3
|
|
3
|
-
} from "./rpc-runtime-
|
|
3
|
+
} from "./rpc-runtime-nwcpakzx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./rpc-runtime-9rqn6x4v.js";
|
|
@@ -53,7 +53,7 @@ function make6(options) {
|
|
|
53
53
|
try {
|
|
54
54
|
await response.body?.cancel();
|
|
55
55
|
} catch {}
|
|
56
|
-
throw new ClientError3("UnexpectedStatus", { cause: { status: response.status } });
|
|
56
|
+
throw new ClientError3("UnexpectedStatus", { cause: { status: response.status }, detail: String(response.status) });
|
|
57
57
|
};
|
|
58
58
|
const request = async (descriptor, requestOptions) => {
|
|
59
59
|
const response = await execute(descriptor, requestOptions);
|
|
@@ -78,7 +78,7 @@ function make6(options) {
|
|
|
78
78
|
try {
|
|
79
79
|
await response.body?.cancel();
|
|
80
80
|
} catch {}
|
|
81
|
-
throw new ClientError3("UnsupportedContentType");
|
|
81
|
+
throw new ClientError3("UnsupportedContentType", { detail: response.headers.get("content-type") });
|
|
82
82
|
}
|
|
83
83
|
if (response.body === null)
|
|
84
84
|
throw new ClientError3("MalformedResponse");
|
|
@@ -1382,7 +1382,7 @@ async function json(response) {
|
|
|
1382
1382
|
try {
|
|
1383
1383
|
await response.body?.cancel();
|
|
1384
1384
|
} catch {}
|
|
1385
|
-
throw new ClientError3("UnsupportedContentType");
|
|
1385
|
+
throw new ClientError3("UnsupportedContentType", { detail: response.headers.get("content-type") });
|
|
1386
1386
|
}
|
|
1387
1387
|
let text;
|
|
1388
1388
|
try {
|
|
@@ -3,7 +3,8 @@ class ClientError3 extends Error {
|
|
|
3
3
|
reason;
|
|
4
4
|
name = "ClientError";
|
|
5
5
|
constructor(reason, options) {
|
|
6
|
-
|
|
6
|
+
const detail = options?.detail ?? (options?.cause instanceof Error ? options.cause.message : undefined);
|
|
7
|
+
super(detail ? `${reason}: ${detail}` : reason, options);
|
|
7
8
|
this.reason = reason;
|
|
8
9
|
}
|
|
9
10
|
}
|
package/dist/effect/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/rpc-runtime-
|
|
4
|
+
} from "../chunks/rpc-runtime-7dxyhjws.js";
|
|
5
5
|
import"../chunks/rpc-runtime-6mptkzbc.js";
|
|
6
|
-
import"../chunks/rpc-runtime-
|
|
6
|
+
import"../chunks/rpc-runtime-r7kdtxyz.js";
|
|
7
7
|
import"../chunks/rpc-runtime-y2etg5bs.js";
|
|
8
8
|
import"../chunks/rpc-runtime-z6qdwcsf.js";
|
|
9
9
|
import"../chunks/rpc-runtime-t1xa31vm.js";
|
|
10
|
-
import"../chunks/rpc-runtime-frbwqjmf.js";
|
|
11
10
|
import"../chunks/rpc-runtime-vmytr4q8.js";
|
|
11
|
+
import"../chunks/rpc-runtime-frbwqjmf.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/rpc-runtime-y2etg5bs.js";
|
|
4
4
|
import"../chunks/rpc-runtime-vmytr4q8.js";
|
|
5
|
-
import"../chunks/rpc-runtime-
|
|
5
|
+
import"../chunks/rpc-runtime-r7kdtxyz.js";
|
|
6
6
|
import"../chunks/rpc-runtime-6mptkzbc.js";
|
|
7
7
|
import"../chunks/rpc-runtime-frbwqjmf.js";
|
|
8
8
|
import"../chunks/rpc-runtime-t1xa31vm.js";
|
|
9
9
|
import"../chunks/rpc-runtime-z6qdwcsf.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_client
|
|
12
|
-
} from "../chunks/rpc-runtime-
|
|
12
|
+
} from "../chunks/rpc-runtime-7dxyhjws.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
package/dist/effect/service.js
CHANGED
package/dist/promise/client.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make5,
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/rpc-runtime-
|
|
5
|
-
import"../chunks/rpc-runtime-1tbj6z39.js";
|
|
4
|
+
} from "../chunks/rpc-runtime-10yqjj3w.js";
|
|
6
5
|
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
6
|
+
import"../chunks/rpc-runtime-1tbj6z39.js";
|
|
7
7
|
import"../chunks/rpc-runtime-4tveyqeh.js";
|
|
8
|
-
import"../chunks/rpc-runtime-
|
|
9
|
-
import"../chunks/rpc-runtime-
|
|
8
|
+
import"../chunks/rpc-runtime-bpdjd9xk.js";
|
|
9
|
+
import"../chunks/rpc-runtime-nwcpakzx.js";
|
|
10
10
|
import"../chunks/rpc-runtime-frbwqjmf.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_client3 as OpenCode,
|
|
@@ -2,5 +2,7 @@ export type ClientErrorReason = "Transport" | "UnexpectedStatus" | "UnsupportedC
|
|
|
2
2
|
export declare class ClientError extends Error {
|
|
3
3
|
readonly reason: ClientErrorReason;
|
|
4
4
|
readonly name = "ClientError";
|
|
5
|
-
constructor(reason: ClientErrorReason, options?: ErrorOptions
|
|
5
|
+
constructor(reason: ClientErrorReason, options?: ErrorOptions & {
|
|
6
|
+
readonly detail?: string | null;
|
|
7
|
+
});
|
|
6
8
|
}
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
} from "../../chunks/rpc-runtime-4tveyqeh.js";
|
|
35
35
|
import {
|
|
36
36
|
exports_client4
|
|
37
|
-
} from "../../chunks/rpc-runtime-
|
|
37
|
+
} from "../../chunks/rpc-runtime-bpdjd9xk.js";
|
|
38
38
|
import {
|
|
39
39
|
ClientError3
|
|
40
|
-
} from "../../chunks/rpc-runtime-
|
|
40
|
+
} from "../../chunks/rpc-runtime-nwcpakzx.js";
|
|
41
41
|
export {
|
|
42
42
|
ClientError3 as ClientError,
|
|
43
43
|
exports_client4 as OpenCode,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import"../chunks/rpc-runtime-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/rpc-runtime-
|
|
5
|
-
import"../chunks/rpc-runtime-1tbj6z39.js";
|
|
4
|
+
} from "../chunks/rpc-runtime-10yqjj3w.js";
|
|
6
5
|
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
6
|
+
import"../chunks/rpc-runtime-1tbj6z39.js";
|
|
7
7
|
import {
|
|
8
8
|
isInvalidRequestError2,
|
|
9
9
|
isUnauthorizedError2,
|
|
@@ -37,10 +37,10 @@ import {
|
|
|
37
37
|
isShellNotFoundError2,
|
|
38
38
|
isWorktreeError2
|
|
39
39
|
} from "../chunks/rpc-runtime-4tveyqeh.js";
|
|
40
|
-
import"../chunks/rpc-runtime-
|
|
40
|
+
import"../chunks/rpc-runtime-bpdjd9xk.js";
|
|
41
41
|
import {
|
|
42
42
|
ClientError3
|
|
43
|
-
} from "../chunks/rpc-runtime-
|
|
43
|
+
} from "../chunks/rpc-runtime-nwcpakzx.js";
|
|
44
44
|
import"../chunks/rpc-runtime-frbwqjmf.js";
|
|
45
45
|
export {
|
|
46
46
|
ClientError3 as ClientError,
|
package/dist/promise/service.js
CHANGED
package/dist/pty-handoff.js
CHANGED
package/dist/solid/data.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
createData2
|
|
5
5
|
} from "../chunks/rpc-runtime-h11j9btw.js";
|
|
6
6
|
import"../chunks/rpc-runtime-m2eywc8w.js";
|
|
7
|
-
import"../chunks/rpc-runtime-
|
|
8
|
-
import"../chunks/rpc-runtime-1tbj6z39.js";
|
|
7
|
+
import"../chunks/rpc-runtime-10yqjj3w.js";
|
|
9
8
|
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
9
|
+
import"../chunks/rpc-runtime-1tbj6z39.js";
|
|
10
10
|
import"../chunks/rpc-runtime-4tveyqeh.js";
|
|
11
|
-
import"../chunks/rpc-runtime-
|
|
12
|
-
import"../chunks/rpc-runtime-
|
|
11
|
+
import"../chunks/rpc-runtime-bpdjd9xk.js";
|
|
12
|
+
import"../chunks/rpc-runtime-nwcpakzx.js";
|
|
13
13
|
import"../chunks/rpc-runtime-frbwqjmf.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import"../chunks/rpc-runtime-
|
|
2
|
-
import"../chunks/rpc-runtime-
|
|
1
|
+
import"../chunks/rpc-runtime-nwcpakzx.js";
|
|
2
|
+
import"../chunks/rpc-runtime-bpdjd9xk.js";
|
|
3
3
|
import"../chunks/rpc-runtime-4tveyqeh.js";
|
|
4
4
|
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
5
5
|
import"../chunks/rpc-runtime-frbwqjmf.js";
|
|
6
6
|
import"../chunks/rpc-runtime-1tbj6z39.js";
|
|
7
|
-
import"../chunks/rpc-runtime-
|
|
7
|
+
import"../chunks/rpc-runtime-10yqjj3w.js";
|
|
8
8
|
import"../chunks/rpc-runtime-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-20055",
|
|
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-20055",
|
|
61
|
+
"@opencode/protocol": "0.0.0-dev-20055"
|
|
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-20055",
|
|
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",
|
|
File without changes
|
|
File without changes
|