@opencode/client 2.2.1 → 2.2.3
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/{mcp-yn2a71yh.js → contract-0e3ghr9a.js} +4 -2
- package/dist/chunks/{mcp-8ye1ye6f.js → contract-2ny4vxct.js} +2 -2
- package/dist/chunks/{mcp-15p82y03.js → contract-9j12j8xw.js} +5 -5
- package/dist/chunks/{mcp-0e9xp5b3.js → contract-bhbt909k.js} +9 -9
- package/dist/chunks/{mcp-csehnca4.js → contract-fh77hmr5.js} +76 -8
- package/dist/chunks/{mcp-qhd5h5hk.js → contract-gcmv0c13.js} +2 -2
- package/dist/chunks/{mcp-gecjxyvt.js → contract-gecjxyvt.js} +1 -1
- package/dist/chunks/{mcp-6v8v0sqq.js → contract-gmh1mc73.js} +4 -4
- package/dist/chunks/{mcp-4z60zgnr.js → contract-gxr0nf8c.js} +8 -6
- package/dist/chunks/{mcp-kdshn947.js → contract-kdshn947.js} +1 -1
- package/dist/chunks/contract-mwrzahmf.js +38 -0
- package/dist/chunks/{mcp-ryy6kscr.js → contract-ryy6kscr.js} +1 -1
- package/dist/chunks/{mcp-gne7h7mq.js → contract-v1h0xkyr.js} +42 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +3 -1
- package/dist/effect/client.d.ts +88 -4
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +88 -4
- 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.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +8 -8
- package/dist/promise/generated/types.d.ts +62 -7
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.d.ts +1 -0
- package/dist/promise/index.js +17 -11
- package/dist/promise/media.d.ts +356 -0
- package/dist/promise/media.js +8 -0
- 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.d.ts +2 -0
- package/dist/solid/data.js +10 -9
- package/dist/solid/index.js +20 -13
- package/dist/solid/pty.d.ts +66 -0
- package/dist/solid/pty.js +8 -2
- package/dist/solid/retention.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +7 -7
- /package/dist/chunks/{mcp-60xe5cbf.js → contract-60xe5cbf.js} +0 -0
- /package/dist/chunks/{mcp-6mptkzbc.js → contract-6mptkzbc.js} +0 -0
- /package/dist/chunks/{mcp-6mq2wh8y.js → contract-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{mcp-m2eywc8w.js → contract-6r38tsk5.js} +0 -0
- /package/dist/chunks/{mcp-8s2anffy.js → contract-8s2anffy.js} +0 -0
- /package/dist/chunks/{mcp-9rqn6x4v.js → contract-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{mcp-cvg5j6d1.js → contract-cvg5j6d1.js} +0 -0
- /package/dist/chunks/{mcp-nwcpakzx.js → contract-nwcpakzx.js} +0 -0
- /package/dist/chunks/{mcp-qav6mfdz.js → contract-qav6mfdz.js} +0 -0
- /package/dist/chunks/{mcp-sxt88q69.js → contract-sxt88q69.js} +0 -0
- /package/dist/chunks/{mcp-ve4aws36.js → contract-ve4aws36.js} +0 -0
- /package/dist/chunks/{mcp-vyas3vgt.js → contract-vyas3vgt.js} +0 -0
- /package/dist/chunks/{mcp-xgnj2w4v.js → contract-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{mcp-y2etg5bs.js → contract-y2etg5bs.js} +0 -0
- /package/dist/chunks/{mcp-ydhz1zrh.js → contract-ydhz1zrh.js} +0 -0
package/dist/solid/index.js
CHANGED
|
@@ -1,40 +1,47 @@
|
|
|
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-0e3ghr9a.js";
|
|
3
|
+
import"../chunks/contract-cvg5j6d1.js";
|
|
4
|
+
import"../chunks/contract-vyas3vgt.js";
|
|
5
|
+
import"../chunks/contract-gecjxyvt.js";
|
|
6
|
+
import"../chunks/contract-kdshn947.js";
|
|
7
|
+
import"../chunks/contract-gmh1mc73.js";
|
|
8
|
+
import"../chunks/contract-mwrzahmf.js";
|
|
9
|
+
import"../chunks/contract-6r38tsk5.js";
|
|
9
10
|
import {
|
|
10
11
|
settleMs2,
|
|
11
12
|
locationKey2,
|
|
12
13
|
createData2
|
|
13
|
-
} from "../chunks/
|
|
14
|
+
} from "../chunks/contract-fh77hmr5.js";
|
|
14
15
|
import {
|
|
15
16
|
defaultIdleTimeout2,
|
|
16
17
|
foregroundIdleThreshold2,
|
|
17
18
|
createClientConnection2
|
|
18
|
-
} from "../chunks/
|
|
19
|
+
} from "../chunks/contract-ydhz1zrh.js";
|
|
19
20
|
import {
|
|
21
|
+
PersistentPtyMessage2,
|
|
22
|
+
decodePersistentPtyMessage2,
|
|
23
|
+
persistentPtyFrame2,
|
|
20
24
|
createPtyClient2,
|
|
21
25
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/
|
|
26
|
+
} from "../chunks/contract-v1h0xkyr.js";
|
|
23
27
|
import {
|
|
24
28
|
createSessionRetention2
|
|
25
|
-
} from "../chunks/
|
|
29
|
+
} from "../chunks/contract-6mq2wh8y.js";
|
|
26
30
|
import {
|
|
27
31
|
lastAssistantWithUsage2
|
|
28
|
-
} from "../chunks/
|
|
32
|
+
} from "../chunks/contract-8s2anffy.js";
|
|
29
33
|
export {
|
|
34
|
+
PersistentPtyMessage2 as PersistentPtyMessage,
|
|
30
35
|
createClientConnection2 as createClientConnection,
|
|
31
36
|
createData2 as createData,
|
|
32
37
|
createPersistentPtyClient2 as createPersistentPtyClient,
|
|
33
38
|
createPtyClient2 as createPtyClient,
|
|
34
39
|
createSessionRetention2 as createSessionRetention,
|
|
40
|
+
decodePersistentPtyMessage2 as decodePersistentPtyMessage,
|
|
35
41
|
defaultIdleTimeout2 as defaultIdleTimeout,
|
|
36
42
|
foregroundIdleThreshold2 as foregroundIdleThreshold,
|
|
37
43
|
lastAssistantWithUsage2 as lastAssistantWithUsage,
|
|
38
44
|
locationKey2 as locationKey,
|
|
45
|
+
persistentPtyFrame2 as persistentPtyFrame,
|
|
39
46
|
settleMs2 as settleMs
|
|
40
47
|
};
|
package/dist/solid/pty.d.ts
CHANGED
|
@@ -1,4 +1,70 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
1
2
|
import type { ExperimentalPersistentPtyConnectTokenInput, OpenCodeClient, PtyConnectTokenInput } from "../promise";
|
|
3
|
+
export declare const PersistentPtyMessage: Schema.Union<readonly [Schema.Struct<{
|
|
4
|
+
readonly type: Schema.Literal<"attached">;
|
|
5
|
+
readonly inputProtocol: Schema.optional<Schema.Number>;
|
|
6
|
+
readonly info: Schema.Struct<{
|
|
7
|
+
readonly size: Schema.Struct<{
|
|
8
|
+
readonly cols: Schema.Int;
|
|
9
|
+
readonly rows: Schema.Int;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
12
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["controller", "observer"]>>;
|
|
13
|
+
}>, Schema.Struct<{
|
|
14
|
+
readonly type: Schema.Literal<"replay_complete">;
|
|
15
|
+
}>, Schema.Struct<{
|
|
16
|
+
readonly type: Schema.Literal<"resized">;
|
|
17
|
+
readonly cols: Schema.Number;
|
|
18
|
+
readonly rows: Schema.Number;
|
|
19
|
+
readonly checkpoint: Schema.String;
|
|
20
|
+
}>, Schema.Struct<{
|
|
21
|
+
readonly type: Schema.Literal<"controller_changed">;
|
|
22
|
+
readonly attachmentID: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
23
|
+
}>, Schema.Struct<{
|
|
24
|
+
readonly type: Schema.Literal<"exited">;
|
|
25
|
+
readonly exitCode: Schema.optional<Schema.NullOr<Schema.Number>>;
|
|
26
|
+
}>, Schema.Struct<{
|
|
27
|
+
readonly type: Schema.Literal<"title_changed">;
|
|
28
|
+
readonly title: Schema.String;
|
|
29
|
+
}>, Schema.Struct<{
|
|
30
|
+
readonly type: Schema.Literal<"foreground_process_changed">;
|
|
31
|
+
readonly process: Schema.NullOr<Schema.String>;
|
|
32
|
+
}>]>;
|
|
33
|
+
export type PersistentPtyMessage = typeof PersistentPtyMessage.Type;
|
|
34
|
+
export declare function decodePersistentPtyMessage(text: string): import("effect/Option").Option<{
|
|
35
|
+
readonly type: "replay_complete";
|
|
36
|
+
} | {
|
|
37
|
+
readonly type: "resized";
|
|
38
|
+
readonly cols: number;
|
|
39
|
+
readonly rows: number;
|
|
40
|
+
readonly checkpoint: string;
|
|
41
|
+
} | {
|
|
42
|
+
readonly type: "title_changed";
|
|
43
|
+
readonly title: string;
|
|
44
|
+
} | {
|
|
45
|
+
readonly type: "foreground_process_changed";
|
|
46
|
+
readonly process: string | null;
|
|
47
|
+
} | {
|
|
48
|
+
readonly type: "attached";
|
|
49
|
+
readonly inputProtocol?: number | undefined;
|
|
50
|
+
readonly info: {
|
|
51
|
+
readonly size: {
|
|
52
|
+
readonly cols: number;
|
|
53
|
+
readonly rows: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly role?: "controller" | "observer" | undefined;
|
|
57
|
+
} | {
|
|
58
|
+
readonly type: "controller_changed";
|
|
59
|
+
readonly attachmentID?: string | null | undefined;
|
|
60
|
+
} | {
|
|
61
|
+
readonly type: "exited";
|
|
62
|
+
readonly exitCode?: number | null | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
export declare function persistentPtyFrame(size: {
|
|
65
|
+
cols: number;
|
|
66
|
+
rows: number;
|
|
67
|
+
}, data?: Uint8Array): Uint8Array<ArrayBuffer>;
|
|
2
68
|
export type PtyClientOptions = {
|
|
3
69
|
readonly url: string;
|
|
4
70
|
readonly openSocket?: (url: URL) => WebSocket;
|
package/dist/solid/pty.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
+
PersistentPtyMessage2,
|
|
3
|
+
decodePersistentPtyMessage2,
|
|
4
|
+
persistentPtyFrame2,
|
|
2
5
|
createPtyClient2,
|
|
3
6
|
createPersistentPtyClient2
|
|
4
|
-
} from "../chunks/
|
|
7
|
+
} from "../chunks/contract-v1h0xkyr.js";
|
|
5
8
|
export {
|
|
9
|
+
PersistentPtyMessage2 as PersistentPtyMessage,
|
|
6
10
|
createPersistentPtyClient2 as createPersistentPtyClient,
|
|
7
|
-
createPtyClient2 as createPtyClient
|
|
11
|
+
createPtyClient2 as createPtyClient,
|
|
12
|
+
decodePersistentPtyMessage2 as decodePersistentPtyMessage,
|
|
13
|
+
persistentPtyFrame2 as persistentPtyFrame
|
|
8
14
|
};
|
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.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -63,11 +63,11 @@
|
|
|
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.3",
|
|
67
|
+
"@opencode/protocol": "2.2.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"effect": "4.0.
|
|
70
|
+
"effect": "4.0.6",
|
|
71
71
|
"solid-js": ">=1.9.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependenciesMeta": {
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@effect/platform-node": "4.0.
|
|
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.3",
|
|
85
85
|
"@tsconfig/bun": "1.0.9",
|
|
86
86
|
"@types/bun": "1.4.3",
|
|
87
87
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
88
|
-
"effect": "4.0.
|
|
88
|
+
"effect": "4.0.6",
|
|
89
89
|
"solid-js": "1.9.17"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
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
|