@opencode/client 2.2.3 → 2.2.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/{contract-v1h0xkyr.js → service-3eaz3m83.js} +1 -25
- package/dist/chunks/{contract-2ny4vxct.js → service-8ye1ye6f.js} +2 -2
- package/dist/chunks/{contract-9j12j8xw.js → service-9j12j8xw.js} +2 -2
- package/dist/chunks/{contract-0e3ghr9a.js → service-b6gvhk3y.js} +76 -4
- package/dist/chunks/{contract-bhbt909k.js → service-c5ps3bxz.js} +5 -5
- package/dist/chunks/{contract-gecjxyvt.js → service-gecjxyvt.js} +1 -1
- package/dist/chunks/{contract-gcmv0c13.js → service-qbhap0da.js} +2 -2
- package/dist/chunks/{contract-ryy6kscr.js → service-ryy6kscr.js} +1 -1
- package/dist/chunks/{contract-fh77hmr5.js → service-sbaynanj.js} +1 -1
- package/dist/chunks/{contract-cvg5j6d1.js → service-sdjh9vmn.js} +3 -1
- package/dist/chunks/{contract-gmh1mc73.js → service-vzds1rj7.js} +4 -4
- package/dist/chunks/{contract-kdshn947.js → service-xqwq6bgr.js} +1 -1
- package/dist/chunks/{contract-gxr0nf8c.js → service-ykkgdxgz.js} +39 -4
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +93 -3
- package/dist/effect/client.d.ts +58 -2
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +58 -2
- 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.js +6 -6
- package/dist/promise/client.d.ts +10 -1
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +10 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +8 -4
- package/dist/promise/generated/types.d.ts +146 -4
- package/dist/promise/generated/types.js +5 -1
- package/dist/promise/index.js +13 -9
- package/dist/promise/media.d.ts +10 -1
- package/dist/promise/media.js +1 -1
- 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.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.js +10 -10
- package/dist/solid/index.js +14 -16
- package/dist/solid/pty.d.ts +1 -9
- package/dist/solid/pty.js +1 -3
- package/dist/solid/retention.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +4 -4
- /package/dist/chunks/{contract-60xe5cbf.js → service-60xe5cbf.js} +0 -0
- /package/dist/chunks/{contract-6mptkzbc.js → service-6mptkzbc.js} +0 -0
- /package/dist/chunks/{contract-6mq2wh8y.js → service-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{contract-6r38tsk5.js → service-6r38tsk5.js} +0 -0
- /package/dist/chunks/{contract-8s2anffy.js → service-8s2anffy.js} +0 -0
- /package/dist/chunks/{contract-9rqn6x4v.js → service-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{contract-mwrzahmf.js → service-mwrzahmf.js} +0 -0
- /package/dist/chunks/{contract-nwcpakzx.js → service-nwcpakzx.js} +0 -0
- /package/dist/chunks/{contract-qav6mfdz.js → service-qav6mfdz.js} +0 -0
- /package/dist/chunks/{contract-sxt88q69.js → service-sxt88q69.js} +0 -0
- /package/dist/chunks/{contract-ve4aws36.js → service-ve4aws36.js} +0 -0
- /package/dist/chunks/{contract-vyas3vgt.js → service-vyas3vgt.js} +0 -0
- /package/dist/chunks/{contract-xgnj2w4v.js → service-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{contract-y2etg5bs.js → service-y2etg5bs.js} +0 -0
- /package/dist/chunks/{contract-ydhz1zrh.js → service-ydhz1zrh.js} +0 -0
package/dist/solid/data.js
CHANGED
|
@@ -2,16 +2,16 @@ 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/
|
|
14
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/service-sbaynanj.js";
|
|
6
|
+
import"../chunks/service-6r38tsk5.js";
|
|
7
|
+
import"../chunks/service-mwrzahmf.js";
|
|
8
|
+
import"../chunks/service-vzds1rj7.js";
|
|
9
|
+
import"../chunks/service-vyas3vgt.js";
|
|
10
|
+
import"../chunks/service-b6gvhk3y.js";
|
|
11
|
+
import"../chunks/service-nwcpakzx.js";
|
|
12
|
+
import"../chunks/service-xqwq6bgr.js";
|
|
13
|
+
import"../chunks/service-sdjh9vmn.js";
|
|
14
|
+
import"../chunks/service-gecjxyvt.js";
|
|
15
15
|
export {
|
|
16
16
|
createData2 as createData,
|
|
17
17
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,41 +1,39 @@
|
|
|
1
|
-
import"../chunks/
|
|
2
|
-
import"../chunks/
|
|
3
|
-
import"../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/service-nwcpakzx.js";
|
|
2
|
+
import"../chunks/service-b6gvhk3y.js";
|
|
3
|
+
import"../chunks/service-sdjh9vmn.js";
|
|
4
|
+
import"../chunks/service-vyas3vgt.js";
|
|
5
|
+
import"../chunks/service-gecjxyvt.js";
|
|
6
|
+
import"../chunks/service-xqwq6bgr.js";
|
|
7
|
+
import"../chunks/service-vzds1rj7.js";
|
|
8
|
+
import"../chunks/service-mwrzahmf.js";
|
|
9
|
+
import"../chunks/service-6r38tsk5.js";
|
|
10
10
|
import {
|
|
11
11
|
settleMs2,
|
|
12
12
|
locationKey2,
|
|
13
13
|
createData2
|
|
14
|
-
} from "../chunks/
|
|
14
|
+
} from "../chunks/service-sbaynanj.js";
|
|
15
15
|
import {
|
|
16
16
|
defaultIdleTimeout2,
|
|
17
17
|
foregroundIdleThreshold2,
|
|
18
18
|
createClientConnection2
|
|
19
|
-
} from "../chunks/
|
|
19
|
+
} from "../chunks/service-ydhz1zrh.js";
|
|
20
20
|
import {
|
|
21
21
|
PersistentPtyMessage2,
|
|
22
22
|
decodePersistentPtyMessage2,
|
|
23
23
|
persistentPtyFrame2,
|
|
24
|
-
createPtyClient2,
|
|
25
24
|
createPersistentPtyClient2
|
|
26
|
-
} from "../chunks/
|
|
25
|
+
} from "../chunks/service-3eaz3m83.js";
|
|
27
26
|
import {
|
|
28
27
|
createSessionRetention2
|
|
29
|
-
} from "../chunks/
|
|
28
|
+
} from "../chunks/service-6mq2wh8y.js";
|
|
30
29
|
import {
|
|
31
30
|
lastAssistantWithUsage2
|
|
32
|
-
} from "../chunks/
|
|
31
|
+
} from "../chunks/service-8s2anffy.js";
|
|
33
32
|
export {
|
|
34
33
|
PersistentPtyMessage2 as PersistentPtyMessage,
|
|
35
34
|
createClientConnection2 as createClientConnection,
|
|
36
35
|
createData2 as createData,
|
|
37
36
|
createPersistentPtyClient2 as createPersistentPtyClient,
|
|
38
|
-
createPtyClient2 as createPtyClient,
|
|
39
37
|
createSessionRetention2 as createSessionRetention,
|
|
40
38
|
decodePersistentPtyMessage2 as decodePersistentPtyMessage,
|
|
41
39
|
defaultIdleTimeout2 as defaultIdleTimeout,
|
package/dist/solid/pty.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import type { ExperimentalPersistentPtyConnectTokenInput, OpenCodeClient
|
|
2
|
+
import type { ExperimentalPersistentPtyConnectTokenInput, OpenCodeClient } from "../promise";
|
|
3
3
|
export declare const PersistentPtyMessage: Schema.Union<readonly [Schema.Struct<{
|
|
4
4
|
readonly type: Schema.Literal<"attached">;
|
|
5
5
|
readonly inputProtocol: Schema.optional<Schema.Number>;
|
|
@@ -69,20 +69,12 @@ export type PtyClientOptions = {
|
|
|
69
69
|
readonly url: string;
|
|
70
70
|
readonly openSocket?: (url: URL) => WebSocket;
|
|
71
71
|
};
|
|
72
|
-
export type PtyConnectInput = {
|
|
73
|
-
readonly ptyID: PtyConnectTokenInput["ptyID"];
|
|
74
|
-
readonly location?: PtyConnectTokenInput["location"];
|
|
75
|
-
readonly cursor?: number;
|
|
76
|
-
};
|
|
77
72
|
export type PersistentPtyConnectInput = {
|
|
78
73
|
readonly ptyID: ExperimentalPersistentPtyConnectTokenInput["ptyID"];
|
|
79
74
|
readonly cursor: number;
|
|
80
75
|
readonly attachmentID: string;
|
|
81
76
|
readonly takeover?: boolean;
|
|
82
77
|
};
|
|
83
|
-
export declare function createPtyClient(api: OpenCodeClient, options: PtyClientOptions): {
|
|
84
|
-
connect(input: PtyConnectInput): Promise<WebSocket>;
|
|
85
|
-
};
|
|
86
78
|
export declare function createPersistentPtyClient(api: OpenCodeClient, options: PtyClientOptions): {
|
|
87
79
|
connect(input: PersistentPtyConnectInput): Promise<WebSocket>;
|
|
88
80
|
};
|
package/dist/solid/pty.js
CHANGED
|
@@ -2,13 +2,11 @@ import {
|
|
|
2
2
|
PersistentPtyMessage2,
|
|
3
3
|
decodePersistentPtyMessage2,
|
|
4
4
|
persistentPtyFrame2,
|
|
5
|
-
createPtyClient2,
|
|
6
5
|
createPersistentPtyClient2
|
|
7
|
-
} from "../chunks/
|
|
6
|
+
} from "../chunks/service-3eaz3m83.js";
|
|
8
7
|
export {
|
|
9
8
|
PersistentPtyMessage2 as PersistentPtyMessage,
|
|
10
9
|
createPersistentPtyClient2 as createPersistentPtyClient,
|
|
11
|
-
createPtyClient2 as createPtyClient,
|
|
12
10
|
decodePersistentPtyMessage2 as decodePersistentPtyMessage,
|
|
13
11
|
persistentPtyFrame2 as persistentPtyFrame
|
|
14
12
|
};
|
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": "2.2.
|
|
4
|
+
"version": "2.2.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typecheck:tsc": "tsc --noEmit"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@opencode/schema": "2.2.
|
|
67
|
-
"@opencode/protocol": "2.2.
|
|
66
|
+
"@opencode/schema": "2.2.4",
|
|
67
|
+
"@opencode/protocol": "2.2.4"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"effect": "4.0.6",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@effect/platform-node": "4.0.6",
|
|
83
83
|
"@modelcontextprotocol/client": "2.3.1",
|
|
84
|
-
"@opencode/httpapi-codegen": "2.2.
|
|
84
|
+
"@opencode/httpapi-codegen": "2.2.4",
|
|
85
85
|
"@tsconfig/bun": "1.0.9",
|
|
86
86
|
"@types/bun": "1.4.3",
|
|
87
87
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
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
|
|
File without changes
|