@opencode/client 2.1.2 → 2.1.4
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-probe-65kht65h.js → contract-15p82y03.js} +2 -2
- package/dist/chunks/{service-probe-61wt4y9h.js → contract-1x65x4hv.js} +15 -20
- package/dist/chunks/{service-probe-2ny4vxct.js → contract-2ny4vxct.js} +2 -2
- package/dist/chunks/{service-probe-frbwqjmf.js → contract-8bbb028w.js} +1 -1
- package/dist/chunks/{service-probe-032v66at.js → contract-9kmsh4jj.js} +8 -2
- package/dist/chunks/{service-probe-ezt8t3fk.js → contract-c46qzyff.js} +2 -2
- package/dist/chunks/{service-probe-ggt8t74w.js → contract-hg9t2gnm.js} +5 -5
- package/dist/chunks/{service-probe-t1xa31vm.js → contract-ryy6kscr.js} +1 -1
- package/dist/chunks/{service-probe-77ntr0t0.js → contract-s2hya144.js} +37 -3
- package/dist/chunks/{service-probe-6vp15eh6.js → contract-skhp7hxc.js} +1 -1
- package/dist/chunks/{service-probe-k9g6n5n1.js → contract-vwtmm97t.js} +4 -4
- package/dist/chunks/{service-probe-gbq9x9x6.js → contract-w10x3kfx.js} +21 -5
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +55 -1
- package/dist/effect/client.d.ts +791 -785
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +491 -485
- package/dist/effect/generated/client.js +3 -3
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +2 -2
- package/dist/effect/service.d.ts +1 -1
- package/dist/effect/service.js +11 -11
- package/dist/mcp.d.ts +44 -0
- package/dist/mcp.js +110 -0
- package/dist/promise/client.d.ts +12 -0
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +13 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +9 -9
- package/dist/promise/generated/types.d.ts +75 -9
- package/dist/promise/generated/types.js +2 -2
- package/dist/promise/index.js +11 -11
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +11 -11
- package/dist/pty-handoff.js +4 -1
- 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.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 +13 -7
- /package/dist/chunks/{service-probe-6mptkzbc.js → contract-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-probe-8s2anffy.js → contract-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-probe-9rqn6x4v.js → contract-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-probe-gne7h7mq.js → contract-gne7h7mq.js} +0 -0
- /package/dist/chunks/{service-probe-m2eywc8w.js → contract-m2eywc8w.js} +0 -0
- /package/dist/chunks/{service-probe-nwcpakzx.js → contract-nwcpakzx.js} +0 -0
- /package/dist/chunks/{service-probe-qav6mfdz.js → contract-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-probe-sxt88q69.js → contract-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-probe-ve4aws36.js → contract-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-probe-vmytr4q8.js → contract-vmytr4q8.js} +0 -0
- /package/dist/chunks/{service-probe-vyas3vgt.js → contract-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-probe-xgnj2w4v.js → contract-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-probe-y2etg5bs.js → contract-y2etg5bs.js} +0 -0
- /package/dist/chunks/{service-probe-ydhz1zrh.js → contract-ydhz1zrh.js} +0 -0
package/dist/promise/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/contract-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/contract-vwtmm97t.js";
|
|
5
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
6
|
+
import"../chunks/contract-s2hya144.js";
|
|
7
|
+
import {
|
|
8
|
+
ClientError3
|
|
9
|
+
} from "../chunks/contract-nwcpakzx.js";
|
|
10
|
+
import"../chunks/contract-skhp7hxc.js";
|
|
7
11
|
import {
|
|
8
12
|
isInvalidRequestError2,
|
|
9
13
|
isUnauthorizedError2,
|
|
@@ -28,6 +32,7 @@ import {
|
|
|
28
32
|
isIntegrationAttemptNotFoundError2,
|
|
29
33
|
isIntegrationMethodNotFoundError2,
|
|
30
34
|
isMcpServerNotFoundError2,
|
|
35
|
+
isForbiddenError2,
|
|
31
36
|
isProjectNotFoundError2,
|
|
32
37
|
isPermissionSavedNotFoundError2,
|
|
33
38
|
isPermissionNotFoundError2,
|
|
@@ -35,16 +40,11 @@ import {
|
|
|
35
40
|
isRpcError2,
|
|
36
41
|
isRpcInternalError2,
|
|
37
42
|
isPtyNotFoundError2,
|
|
38
|
-
isForbiddenError2,
|
|
39
43
|
isShellNotFoundError2,
|
|
40
44
|
isWorktreeError2,
|
|
41
45
|
isVcsInitNotSupportedError2
|
|
42
|
-
} from "../chunks/
|
|
43
|
-
import"../chunks/
|
|
44
|
-
import {
|
|
45
|
-
ClientError3
|
|
46
|
-
} from "../chunks/service-probe-nwcpakzx.js";
|
|
47
|
-
import"../chunks/service-probe-frbwqjmf.js";
|
|
46
|
+
} from "../chunks/contract-c46qzyff.js";
|
|
47
|
+
import"../chunks/contract-8bbb028w.js";
|
|
48
48
|
export {
|
|
49
49
|
ClientError3 as ClientError,
|
|
50
50
|
exports_client3 as OpenCode,
|
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/
|
|
12
|
-
import {
|
|
13
|
-
prepare2,
|
|
14
|
-
environment2,
|
|
15
|
-
complete2,
|
|
16
|
-
clear2
|
|
17
|
-
} from "../chunks/service-probe-032v66at.js";
|
|
11
|
+
} from "../chunks/contract-sxt88q69.js";
|
|
18
12
|
import {
|
|
19
13
|
decide2,
|
|
20
14
|
fallback2,
|
|
21
15
|
same2,
|
|
22
16
|
probeResult2,
|
|
23
17
|
headers2
|
|
24
|
-
} from "../chunks/
|
|
25
|
-
import
|
|
18
|
+
} from "../chunks/contract-2ny4vxct.js";
|
|
19
|
+
import {
|
|
20
|
+
prepare2,
|
|
21
|
+
environment2,
|
|
22
|
+
complete2,
|
|
23
|
+
clear2
|
|
24
|
+
} from "../chunks/contract-9kmsh4jj.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,7 +4,10 @@ import {
|
|
|
4
4
|
complete2,
|
|
5
5
|
clear2,
|
|
6
6
|
exports_pty_handoff
|
|
7
|
-
} from "./chunks/
|
|
7
|
+
} from "./chunks/contract-9kmsh4jj.js";
|
|
8
|
+
import"./chunks/contract-2ny4vxct.js";
|
|
9
|
+
import"./chunks/contract-sxt88q69.js";
|
|
10
|
+
import"./chunks/contract-xgnj2w4v.js";
|
|
8
11
|
export {
|
|
9
12
|
exports_pty_handoff as PtyHandoff,
|
|
10
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.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-1x65x4hv.js";
|
|
6
|
+
import"../chunks/contract-m2eywc8w.js";
|
|
7
|
+
import"../chunks/contract-vwtmm97t.js";
|
|
8
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
9
|
+
import"../chunks/contract-s2hya144.js";
|
|
10
|
+
import"../chunks/contract-nwcpakzx.js";
|
|
11
|
+
import"../chunks/contract-skhp7hxc.js";
|
|
12
|
+
import"../chunks/contract-c46qzyff.js";
|
|
13
|
+
import"../chunks/contract-8bbb028w.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/contract-nwcpakzx.js";
|
|
2
|
+
import"../chunks/contract-s2hya144.js";
|
|
3
|
+
import"../chunks/contract-c46qzyff.js";
|
|
4
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
5
|
+
import"../chunks/contract-8bbb028w.js";
|
|
6
|
+
import"../chunks/contract-skhp7hxc.js";
|
|
7
|
+
import"../chunks/contract-vwtmm97t.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-1x65x4hv.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
|
lastAssistantWithUsage2
|
|
25
|
-
} from "../chunks/
|
|
25
|
+
} from "../chunks/contract-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.1.
|
|
4
|
+
"version": "2.1.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
"./effect/service": {
|
|
48
48
|
"import": "./dist/effect/service.js",
|
|
49
49
|
"types": "./dist/effect/service.d.ts"
|
|
50
|
+
},
|
|
51
|
+
"./mcp": {
|
|
52
|
+
"import": "./dist/mcp.js",
|
|
53
|
+
"types": "./dist/mcp.d.ts"
|
|
50
54
|
}
|
|
51
55
|
},
|
|
52
56
|
"scripts": {
|
|
@@ -54,11 +58,12 @@
|
|
|
54
58
|
"generate": "bun run script/build.ts",
|
|
55
59
|
"check:generated": "bun run generate && git diff --exit-code -- src/promise/generated src/effect/generated src/effect/api",
|
|
56
60
|
"test": "bun test --timeout 5000",
|
|
57
|
-
"typecheck": "
|
|
61
|
+
"typecheck": "bun check --no-script",
|
|
62
|
+
"typecheck:tsc": "tsc --noEmit"
|
|
58
63
|
},
|
|
59
64
|
"dependencies": {
|
|
60
|
-
"@opencode/schema": "2.1.
|
|
61
|
-
"@opencode/protocol": "2.1.
|
|
65
|
+
"@opencode/schema": "2.1.4",
|
|
66
|
+
"@opencode/protocol": "2.1.4"
|
|
62
67
|
},
|
|
63
68
|
"peerDependencies": {
|
|
64
69
|
"effect": "4.0.1",
|
|
@@ -74,10 +79,11 @@
|
|
|
74
79
|
},
|
|
75
80
|
"devDependencies": {
|
|
76
81
|
"@effect/platform-node": "4.0.1",
|
|
77
|
-
"@
|
|
82
|
+
"@modelcontextprotocol/client": "2.3.1",
|
|
83
|
+
"@opencode/httpapi-codegen": "2.1.4",
|
|
78
84
|
"@tsconfig/bun": "1.0.9",
|
|
79
|
-
"@types/bun": "1.4.
|
|
80
|
-
"@typescript/native": "npm:typescript@7.0
|
|
85
|
+
"@types/bun": "1.4.3",
|
|
86
|
+
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
81
87
|
"effect": "4.0.1",
|
|
82
88
|
"solid-js": "1.9.15"
|
|
83
89
|
}
|
|
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
|