@opencode/client 2.0.32 → 2.1.0
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/{shared-events-2ny4vxct.js → rpc-runtime-2ny4vxct.js} +2 -2
- package/dist/chunks/{shared-events-q008jpwa.js → rpc-runtime-3d7b8k62.js} +4 -4
- package/dist/chunks/{shared-events-m77rqa4a.js → rpc-runtime-61wt4y9h.js} +22 -17
- package/dist/chunks/{shared-events-1y4a697q.js → rpc-runtime-6vp15eh6.js} +1 -1
- package/dist/chunks/{shared-events-td2fzm91.js → rpc-runtime-91bd4p6h.js} +1 -1
- package/dist/chunks/{shared-events-vt9jbch8.js → rpc-runtime-ezt8t3fk.js} +2 -1
- package/dist/chunks/{shared-events-frbwqjmf.js → rpc-runtime-frbwqjmf.js} +1 -1
- package/dist/chunks/{shared-events-hqeq47hr.js → rpc-runtime-nv358xrg.js} +17 -3
- package/dist/chunks/{shared-events-qf89ssmg.js → rpc-runtime-q4y9w4td.js} +22 -8
- package/dist/chunks/{shared-events-t1xa31vm.js → rpc-runtime-t1xa31vm.js} +1 -1
- package/dist/chunks/{shared-events-d86rytwj.js → rpc-runtime-tjkwftgd.js} +9 -9
- package/dist/chunks/{shared-events-mnyft54j.js → rpc-runtime-w1w809zr.js} +5 -5
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +62 -29
- package/dist/effect/client.d.ts +1387 -1362
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +1278 -1253
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +8 -7
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +3 -2
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +10 -8
- package/dist/promise/generated/types.d.ts +228 -1429
- package/dist/promise/generated/types.js +3 -1
- package/dist/promise/index.js +12 -10
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +1 -1
- package/dist/rpc-runtime.d.ts +5 -5
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.d.ts +5 -5
- 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.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.js +12 -12
- package/dist/solid/pty.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +6 -6
- /package/dist/chunks/{shared-events-6mptkzbc.js → rpc-runtime-6mptkzbc.js} +0 -0
- /package/dist/chunks/{shared-events-7f0py9js.js → rpc-runtime-7f0py9js.js} +0 -0
- /package/dist/chunks/{shared-events-8s2anffy.js → rpc-runtime-8s2anffy.js} +0 -0
- /package/dist/chunks/{shared-events-9rqn6x4v.js → rpc-runtime-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{shared-events-gne7h7mq.js → rpc-runtime-gne7h7mq.js} +0 -0
- /package/dist/chunks/{shared-events-js54wxgp.js → rpc-runtime-js54wxgp.js} +0 -0
- /package/dist/chunks/{shared-events-m2eywc8w.js → rpc-runtime-m2eywc8w.js} +0 -0
- /package/dist/chunks/{shared-events-qav6mfdz.js → rpc-runtime-qav6mfdz.js} +0 -0
- /package/dist/chunks/{shared-events-sxt88q69.js → rpc-runtime-sxt88q69.js} +0 -0
- /package/dist/chunks/{shared-events-ve4aws36.js → rpc-runtime-ve4aws36.js} +0 -0
- /package/dist/chunks/{shared-events-vmytr4q8.js → rpc-runtime-vmytr4q8.js} +0 -0
- /package/dist/chunks/{shared-events-vyas3vgt.js → rpc-runtime-vyas3vgt.js} +0 -0
- /package/dist/chunks/{shared-events-xgnj2w4v.js → rpc-runtime-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{shared-events-ydhz1zrh.js → rpc-runtime-ydhz1zrh.js} +0 -0
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
isIntegrationMethodNotFoundError2,
|
|
24
24
|
isMcpServerNotFoundError2,
|
|
25
25
|
isProjectNotFoundError2,
|
|
26
|
+
isPermissionSavedNotFoundError2,
|
|
26
27
|
isPermissionNotFoundError2,
|
|
27
28
|
isFileNotFoundError2,
|
|
28
29
|
isRpcError2,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
isShellNotFoundError2,
|
|
33
34
|
isWorktreeError2,
|
|
34
35
|
isVcsInitNotSupportedError2
|
|
35
|
-
} from "../../chunks/
|
|
36
|
+
} from "../../chunks/rpc-runtime-ezt8t3fk.js";
|
|
36
37
|
export {
|
|
37
38
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
38
39
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
@@ -53,6 +54,7 @@ export {
|
|
|
53
54
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
54
55
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
55
56
|
isPermissionNotFoundError2 as isPermissionNotFoundError,
|
|
57
|
+
isPermissionSavedNotFoundError2 as isPermissionSavedNotFoundError,
|
|
56
58
|
isProjectNotFoundError2 as isProjectNotFoundError,
|
|
57
59
|
isProviderNotFoundError2 as isProviderNotFoundError,
|
|
58
60
|
isPtyNotFoundError2 as isPtyNotFoundError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/rpc-runtime-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/rpc-runtime-3d7b8k62.js";
|
|
5
|
+
import"../chunks/rpc-runtime-6vp15eh6.js";
|
|
6
|
+
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
7
|
+
import"../chunks/rpc-runtime-nv358xrg.js";
|
|
8
|
+
import {
|
|
9
|
+
ClientError2
|
|
10
|
+
} from "../chunks/rpc-runtime-js54wxgp.js";
|
|
7
11
|
import {
|
|
8
12
|
isInvalidRequestError2,
|
|
9
13
|
isUnauthorizedError2,
|
|
@@ -29,6 +33,7 @@ import {
|
|
|
29
33
|
isIntegrationMethodNotFoundError2,
|
|
30
34
|
isMcpServerNotFoundError2,
|
|
31
35
|
isProjectNotFoundError2,
|
|
36
|
+
isPermissionSavedNotFoundError2,
|
|
32
37
|
isPermissionNotFoundError2,
|
|
33
38
|
isFileNotFoundError2,
|
|
34
39
|
isRpcError2,
|
|
@@ -38,12 +43,8 @@ import {
|
|
|
38
43
|
isShellNotFoundError2,
|
|
39
44
|
isWorktreeError2,
|
|
40
45
|
isVcsInitNotSupportedError2
|
|
41
|
-
} from "../chunks/
|
|
42
|
-
import"../chunks/
|
|
43
|
-
import {
|
|
44
|
-
ClientError2
|
|
45
|
-
} from "../chunks/shared-events-js54wxgp.js";
|
|
46
|
-
import"../chunks/shared-events-frbwqjmf.js";
|
|
46
|
+
} from "../chunks/rpc-runtime-ezt8t3fk.js";
|
|
47
|
+
import"../chunks/rpc-runtime-frbwqjmf.js";
|
|
47
48
|
export {
|
|
48
49
|
ClientError2 as ClientError,
|
|
49
50
|
exports_client as OpenCode,
|
|
@@ -66,6 +67,7 @@ export {
|
|
|
66
67
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
67
68
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
68
69
|
isPermissionNotFoundError2 as isPermissionNotFoundError,
|
|
70
|
+
isPermissionSavedNotFoundError2 as isPermissionSavedNotFoundError,
|
|
69
71
|
isProjectNotFoundError2 as isProjectNotFoundError,
|
|
70
72
|
isProviderNotFoundError2 as isProviderNotFoundError,
|
|
71
73
|
isPtyNotFoundError2 as isPtyNotFoundError,
|
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/rpc-runtime-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/rpc-runtime-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/rpc-runtime-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
prepare2,
|
|
14
14
|
environment2,
|
|
15
15
|
complete2,
|
|
16
16
|
clear2
|
|
17
|
-
} from "../chunks/
|
|
17
|
+
} from "../chunks/rpc-runtime-91bd4p6h.js";
|
|
18
18
|
import {
|
|
19
19
|
decide2,
|
|
20
20
|
fallback2,
|
|
21
21
|
same2,
|
|
22
22
|
probeResult2,
|
|
23
23
|
headers2
|
|
24
|
-
} from "../chunks/
|
|
25
|
-
import"../chunks/
|
|
24
|
+
} from "../chunks/rpc-runtime-2ny4vxct.js";
|
|
25
|
+
import"../chunks/rpc-runtime-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
package/dist/rpc-runtime.d.ts
CHANGED
|
@@ -5,16 +5,16 @@ export declare function read(schema: Rpc.Method["output"], value: unknown): Effe
|
|
|
5
5
|
export declare function readError(method: Rpc.Method, error: unknown): Effect.Effect<never, unknown>;
|
|
6
6
|
export declare const event: <D extends Rpc.Definition, Name extends keyof D["events"] & string>(definition: D, name: Name, schema: Rpc.EventDefinition, event: {
|
|
7
7
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8
|
+
readonly created: number;
|
|
9
|
+
readonly metadata?: {
|
|
10
|
+
readonly [x: string]: unknown;
|
|
11
|
+
} | undefined;
|
|
12
|
+
readonly type: `rpc.${string}`;
|
|
8
13
|
readonly location: {
|
|
9
14
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
10
15
|
};
|
|
11
16
|
readonly data: {
|
|
12
17
|
readonly [x: string]: unknown;
|
|
13
18
|
};
|
|
14
|
-
readonly type: `rpc.${string}`;
|
|
15
|
-
readonly created: number;
|
|
16
|
-
readonly metadata?: {
|
|
17
|
-
readonly [x: string]: unknown;
|
|
18
|
-
} | undefined;
|
|
19
19
|
}) => Effect.Effect<Rpc.EventPayload<D, Name>, unknown, never>;
|
|
20
20
|
export declare function eventType<const D extends Rpc.Definition, const Name extends keyof D["events"] & string>(definition: D, name: Name): `rpc.${D["id"]}.${Name}`;
|
package/dist/rpc-runtime.js
CHANGED
package/dist/service-probe.d.ts
CHANGED
|
@@ -11,17 +11,17 @@ export type LocalService = {
|
|
|
11
11
|
* it starts, replace it because its version does not meet the requirement, or fail.
|
|
12
12
|
*/
|
|
13
13
|
export declare function decide(service: LocalService, options: DiscoverOptions): {
|
|
14
|
-
_tag: "fail";
|
|
15
|
-
error: Error;
|
|
16
|
-
} | {
|
|
17
14
|
readonly _tag: "replace";
|
|
18
15
|
readonly pty: "clear" | "handoff";
|
|
19
16
|
} | {
|
|
20
|
-
readonly _tag: "reuse";
|
|
21
17
|
readonly pty?: undefined;
|
|
18
|
+
readonly _tag: "reuse";
|
|
22
19
|
} | {
|
|
23
|
-
readonly _tag: "wait";
|
|
24
20
|
readonly pty?: undefined;
|
|
21
|
+
readonly _tag: "wait";
|
|
22
|
+
} | {
|
|
23
|
+
_tag: "fail";
|
|
24
|
+
error: Error;
|
|
25
25
|
};
|
|
26
26
|
/** The default registration file. */
|
|
27
27
|
export declare function fallback(): string;
|
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/rpc-runtime-2ny4vxct.js";
|
|
8
|
+
import"./chunks/rpc-runtime-sxt88q69.js";
|
|
9
|
+
import"./chunks/rpc-runtime-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/rpc-runtime-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/rpc-runtime-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/rpc-runtime-61wt4y9h.js";
|
|
6
|
+
import"../chunks/rpc-runtime-m2eywc8w.js";
|
|
7
|
+
import"../chunks/rpc-runtime-3d7b8k62.js";
|
|
8
|
+
import"../chunks/rpc-runtime-6vp15eh6.js";
|
|
9
|
+
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
10
|
+
import"../chunks/rpc-runtime-nv358xrg.js";
|
|
11
|
+
import"../chunks/rpc-runtime-js54wxgp.js";
|
|
12
|
+
import"../chunks/rpc-runtime-ezt8t3fk.js";
|
|
13
|
+
import"../chunks/rpc-runtime-frbwqjmf.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
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/rpc-runtime-js54wxgp.js";
|
|
2
|
+
import"../chunks/rpc-runtime-nv358xrg.js";
|
|
3
|
+
import"../chunks/rpc-runtime-ezt8t3fk.js";
|
|
4
|
+
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
5
|
+
import"../chunks/rpc-runtime-frbwqjmf.js";
|
|
6
|
+
import"../chunks/rpc-runtime-6vp15eh6.js";
|
|
7
|
+
import"../chunks/rpc-runtime-3d7b8k62.js";
|
|
8
|
+
import"../chunks/rpc-runtime-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/
|
|
13
|
+
} from "../chunks/rpc-runtime-61wt4y9h.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/rpc-runtime-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/
|
|
22
|
+
} from "../chunks/rpc-runtime-gne7h7mq.js";
|
|
23
23
|
import {
|
|
24
24
|
lastAssistantWithUsage2
|
|
25
|
-
} from "../chunks/
|
|
25
|
+
} from "../chunks/rpc-runtime-8s2anffy.js";
|
|
26
26
|
export {
|
|
27
27
|
createClientConnection2 as createClientConnection,
|
|
28
28
|
createData2 as createData,
|
package/dist/solid/pty.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": "2.0
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"generate": "bun run script/build.ts",
|
|
55
55
|
"check:generated": "bun run generate && git diff --exit-code -- src/promise/generated src/effect/generated src/effect/api",
|
|
56
56
|
"test": "bun test --timeout 5000",
|
|
57
|
-
"typecheck": "
|
|
57
|
+
"typecheck": "tsc --noEmit"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@opencode/schema": "2.0
|
|
61
|
-
"@opencode/protocol": "2.0
|
|
60
|
+
"@opencode/schema": "2.1.0",
|
|
61
|
+
"@opencode/protocol": "2.1.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.1",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.1",
|
|
77
|
-
"@opencode/httpapi-codegen": "2.0
|
|
77
|
+
"@opencode/httpapi-codegen": "2.1.0",
|
|
78
78
|
"@tsconfig/bun": "1.0.9",
|
|
79
79
|
"@types/bun": "1.4.0",
|
|
80
|
-
"@typescript/native
|
|
80
|
+
"@typescript/native": "npm:typescript@7.0.2",
|
|
81
81
|
"effect": "4.0.1",
|
|
82
82
|
"solid-js": "1.9.15"
|
|
83
83
|
}
|
|
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
|