@opencode/client 0.0.0-dev-21599 → 0.0.0-dev-21603
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-timing-b6wmvv71.js → service-probe-0yt83ffw.js} +1 -1
- package/dist/chunks/{service-timing-f0mehgdh.js → service-probe-1wp7yhqk.js} +10 -10
- package/dist/chunks/service-probe-2kam2gy2.js +30 -0
- package/dist/chunks/{service-timing-g22sa7qz.js → service-probe-3gaxfvs6.js} +19 -19
- package/dist/chunks/{service-timing-61wt4y9h.js → service-probe-61wt4y9h.js} +1 -1
- package/dist/chunks/{service-timing-6vp15eh6.js → service-probe-6vp15eh6.js} +1 -1
- package/dist/chunks/{service-timing-y2etg5bs.js → service-probe-7f0py9js.js} +2 -2
- package/dist/chunks/{service-timing-8bbb028w.js → service-probe-8bbb028w.js} +1 -1
- package/dist/chunks/{service-timing-8ye1ye6f.js → service-probe-8ye1ye6f.js} +2 -2
- package/dist/chunks/{service-timing-15p82y03.js → service-probe-anregfhs.js} +5 -5
- package/dist/chunks/{service-timing-nwcpakzx.js → service-probe-js54wxgp.js} +2 -2
- package/dist/chunks/{service-timing-7j6qs0tw.js → service-probe-q8jx5gjp.js} +17 -17
- package/dist/chunks/{service-timing-ryy6kscr.js → service-probe-ryy6kscr.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/client.d.ts +678 -678
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +448 -448
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +8 -8
- package/dist/effect/index.js +12 -12
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/mcp.d.ts +44 -0
- package/dist/mcp.js +110 -0
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +8 -8
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +12 -12
- 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.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 +9 -4
- package/dist/chunks/service-timing-bd9wd9zc.js +0 -30
- /package/dist/chunks/{service-timing-6mptkzbc.js → service-probe-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-timing-8s2anffy.js → service-probe-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-timing-9rqn6x4v.js → service-probe-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-timing-ezt8t3fk.js → service-probe-ezt8t3fk.js} +0 -0
- /package/dist/chunks/{service-timing-gne7h7mq.js → service-probe-gne7h7mq.js} +0 -0
- /package/dist/chunks/{service-timing-m2eywc8w.js → service-probe-m2eywc8w.js} +0 -0
- /package/dist/chunks/{service-timing-qav6mfdz.js → service-probe-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-timing-sxt88q69.js → service-probe-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-timing-ve4aws36.js → service-probe-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-timing-vmytr4q8.js → service-probe-vmytr4q8.js} +0 -0
- /package/dist/chunks/{service-timing-vyas3vgt.js → service-probe-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-timing-xgnj2w4v.js → service-probe-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-timing-ydhz1zrh.js → service-probe-ydhz1zrh.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/service-
|
|
4
|
-
import"../../chunks/service-
|
|
5
|
-
import"../../chunks/service-
|
|
2
|
+
make6
|
|
3
|
+
} from "../../chunks/service-probe-1wp7yhqk.js";
|
|
4
|
+
import"../../chunks/service-probe-7f0py9js.js";
|
|
5
|
+
import"../../chunks/service-probe-vmytr4q8.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
make6 as make
|
|
8
8
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import"../../chunks/service-
|
|
1
|
+
import"../../chunks/service-probe-6mptkzbc.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../chunks/service-
|
|
3
|
+
exports_client4
|
|
4
|
+
} from "../../chunks/service-probe-1wp7yhqk.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../chunks/service-
|
|
8
|
-
import"../../chunks/service-
|
|
6
|
+
ClientError3
|
|
7
|
+
} from "../../chunks/service-probe-7f0py9js.js";
|
|
8
|
+
import"../../chunks/service-probe-vmytr4q8.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
ClientError3 as ClientError,
|
|
11
|
+
exports_client4 as OpenCode
|
|
12
12
|
};
|
package/dist/effect/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunks/service-
|
|
4
|
-
import"../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
9
|
-
import"../chunks/service-
|
|
2
|
+
ClientError3
|
|
3
|
+
} from "../chunks/service-probe-7f0py9js.js";
|
|
4
|
+
import"../chunks/service-probe-vmytr4q8.js";
|
|
5
|
+
import"../chunks/service-probe-1wp7yhqk.js";
|
|
6
|
+
import"../chunks/service-probe-6mptkzbc.js";
|
|
7
|
+
import"../chunks/service-probe-8bbb028w.js";
|
|
8
|
+
import"../chunks/service-probe-ryy6kscr.js";
|
|
9
|
+
import"../chunks/service-probe-anregfhs.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "../chunks/service-
|
|
11
|
+
exports_client3
|
|
12
|
+
} from "../chunks/service-probe-q8jx5gjp.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
|
@@ -43,7 +43,7 @@ import { PromptInput } from "@opencode/schema/prompt-input";
|
|
|
43
43
|
export {
|
|
44
44
|
AbsolutePath,
|
|
45
45
|
Agent,
|
|
46
|
-
|
|
46
|
+
ClientError3 as ClientError,
|
|
47
47
|
Command,
|
|
48
48
|
Config,
|
|
49
49
|
Credential,
|
|
@@ -54,7 +54,7 @@ export {
|
|
|
54
54
|
Integration,
|
|
55
55
|
Location,
|
|
56
56
|
Model,
|
|
57
|
-
|
|
57
|
+
exports_client3 as OpenCode,
|
|
58
58
|
Permission,
|
|
59
59
|
PermissionSaved,
|
|
60
60
|
Project,
|
package/dist/effect/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make5,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
5
|
+
} from "../chunks/service-probe-anregfhs.js";
|
|
6
|
+
import"../chunks/service-probe-ryy6kscr.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make5 as make
|
|
11
11
|
};
|
package/dist/effect/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/service-
|
|
4
|
+
} from "../chunks/service-probe-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/service-
|
|
8
|
+
} from "../chunks/service-probe-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/service-
|
|
11
|
+
} from "../chunks/service-probe-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
prepare2,
|
|
14
14
|
environment2,
|
|
15
15
|
complete2,
|
|
16
16
|
clear2
|
|
17
|
-
} from "../chunks/service-
|
|
17
|
+
} from "../chunks/service-probe-0yt83ffw.js";
|
|
18
18
|
import {
|
|
19
19
|
decide2,
|
|
20
20
|
fallback2,
|
|
21
21
|
same2,
|
|
22
22
|
probeResult2,
|
|
23
23
|
headers2
|
|
24
|
-
} from "../chunks/service-
|
|
25
|
-
import"../chunks/service-
|
|
24
|
+
} from "../chunks/service-probe-8ye1ye6f.js";
|
|
25
|
+
import"../chunks/service-probe-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/effect/service.ts
|
|
28
28
|
import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
|
package/dist/mcp.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type ClientMcpOptions = {
|
|
2
|
+
/** Base URL of the opencode server, for example `http://127.0.0.1:4096`. Its query params are kept. */
|
|
3
|
+
readonly url: string;
|
|
4
|
+
/** Client name, `[a-zA-Z0-9_-]+`. Tools are exposed to the model as `<name>_<tool>`. */
|
|
5
|
+
readonly name: string;
|
|
6
|
+
/** Sent as `location[directory]`. */
|
|
7
|
+
readonly directory?: string;
|
|
8
|
+
/** Handshake headers, such as `authorization`. Browsers cannot send them; use a ticket in `url` instead. */
|
|
9
|
+
readonly headers?: Record<string, string>;
|
|
10
|
+
readonly tools: ReadonlyArray<ClientMcpTool>;
|
|
11
|
+
readonly WebSocket?: typeof WebSocket;
|
|
12
|
+
};
|
|
13
|
+
export type ClientMcpTool = {
|
|
14
|
+
/** `[a-zA-Z0-9_-]+` */
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly description?: string;
|
|
17
|
+
/** JSON Schema for the arguments; `type: "object"` is always set. Arguments are not validated here. */
|
|
18
|
+
readonly inputSchema?: Record<string, unknown>;
|
|
19
|
+
readonly handler: (args: Record<string, unknown>, ctx: ClientMcpToolContext) => ClientMcpToolResult | Promise<ClientMcpToolResult>;
|
|
20
|
+
};
|
|
21
|
+
export type ClientMcpToolContext = {
|
|
22
|
+
/** The opencode session that issued the call. */
|
|
23
|
+
readonly sessionID?: string;
|
|
24
|
+
};
|
|
25
|
+
export type ClientMcpToolResult = {
|
|
26
|
+
readonly content: ReadonlyArray<{
|
|
27
|
+
readonly type: "text";
|
|
28
|
+
readonly text: string;
|
|
29
|
+
} | {
|
|
30
|
+
readonly type: "image";
|
|
31
|
+
readonly data: string;
|
|
32
|
+
readonly mimeType: string;
|
|
33
|
+
}>;
|
|
34
|
+
readonly isError?: boolean;
|
|
35
|
+
};
|
|
36
|
+
export type ClientMcpConnection = {
|
|
37
|
+
close(): Promise<void>;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Exposes tools to the opencode server: opens a WebSocket to `/api/experimental/client-mcp` and answers MCP
|
|
41
|
+
* JSON-RPC over it (one message per text frame), so the opencode server is the MCP client. Reconnects with
|
|
42
|
+
* backoff until `close()`.
|
|
43
|
+
*/
|
|
44
|
+
export declare function connectClientMcp(options: ClientMcpOptions): ClientMcpConnection;
|
package/dist/mcp.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// src/mcp.ts
|
|
2
|
+
var SESSION_ID_META_KEY = "ai.opencode/sessionID";
|
|
3
|
+
var PROTOCOL_VERSION = "2025-11-25";
|
|
4
|
+
var RECONNECT_MIN = 500;
|
|
5
|
+
var RECONNECT_MAX = 1e4;
|
|
6
|
+
function connectClientMcp(options) {
|
|
7
|
+
const state = {
|
|
8
|
+
disposed: false,
|
|
9
|
+
delay: RECONNECT_MIN
|
|
10
|
+
};
|
|
11
|
+
const connect = () => {
|
|
12
|
+
if (state.disposed)
|
|
13
|
+
return;
|
|
14
|
+
const Socket = options.WebSocket ?? WebSocket;
|
|
15
|
+
const socket = options.headers ? new Socket(endpoint(options), { headers: options.headers }) : new Socket(endpoint(options));
|
|
16
|
+
state.socket = socket;
|
|
17
|
+
socket.addEventListener("message", (event) => {
|
|
18
|
+
if (state.disposed || typeof event.data !== "string")
|
|
19
|
+
return;
|
|
20
|
+
const message = parse(event.data);
|
|
21
|
+
if (!message)
|
|
22
|
+
return;
|
|
23
|
+
if (message.method === "notifications/initialized")
|
|
24
|
+
state.delay = RECONNECT_MIN;
|
|
25
|
+
if (typeof message.id !== "string" && typeof message.id !== "number" || typeof message.method !== "string")
|
|
26
|
+
return;
|
|
27
|
+
respond(options, message.method, message.params).then((reply) => send(socket, { jsonrpc: "2.0", id: message.id, ...reply }));
|
|
28
|
+
});
|
|
29
|
+
socket.addEventListener("close", () => {
|
|
30
|
+
if (state.socket === socket)
|
|
31
|
+
state.socket = undefined;
|
|
32
|
+
if (state.disposed)
|
|
33
|
+
return;
|
|
34
|
+
state.timer = setTimeout(connect, state.delay);
|
|
35
|
+
state.delay = Math.min(state.delay * 2, RECONNECT_MAX);
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
connect();
|
|
39
|
+
return {
|
|
40
|
+
async close() {
|
|
41
|
+
state.disposed = true;
|
|
42
|
+
clearTimeout(state.timer);
|
|
43
|
+
state.socket?.close(1000);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
async function respond(options, method, params) {
|
|
48
|
+
switch (method) {
|
|
49
|
+
case "initialize":
|
|
50
|
+
return {
|
|
51
|
+
result: {
|
|
52
|
+
protocolVersion: typeof params?.protocolVersion === "string" ? params.protocolVersion : PROTOCOL_VERSION,
|
|
53
|
+
capabilities: { tools: {} },
|
|
54
|
+
serverInfo: { name: options.name, version: "1.0.0" }
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
case "ping":
|
|
58
|
+
return { result: {} };
|
|
59
|
+
case "tools/list":
|
|
60
|
+
return {
|
|
61
|
+
result: {
|
|
62
|
+
tools: options.tools.map((tool) => ({
|
|
63
|
+
name: tool.name,
|
|
64
|
+
description: tool.description,
|
|
65
|
+
inputSchema: { type: "object", ...tool.inputSchema }
|
|
66
|
+
}))
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
case "tools/call": {
|
|
70
|
+
const tool = options.tools.find((tool) => tool.name === params?.name);
|
|
71
|
+
if (!tool)
|
|
72
|
+
return { error: { code: -32602, message: `Unknown tool: ${String(params?.name)}` } };
|
|
73
|
+
const meta = params?._meta?.[SESSION_ID_META_KEY];
|
|
74
|
+
return Promise.resolve().then(() => tool.handler(params?.arguments ?? {}, { sessionID: typeof meta === "string" ? meta : undefined })).then((result) => ({ result }), (error) => ({
|
|
75
|
+
result: {
|
|
76
|
+
content: [{ type: "text", text: error instanceof Error ? error.message : String(error) }],
|
|
77
|
+
isError: true
|
|
78
|
+
}
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return { error: { code: -32601, message: `Method not found: ${method}` } };
|
|
83
|
+
}
|
|
84
|
+
function send(socket, message) {
|
|
85
|
+
if (socket.readyState === socket.OPEN)
|
|
86
|
+
socket.send(JSON.stringify(message));
|
|
87
|
+
}
|
|
88
|
+
function parse(text) {
|
|
89
|
+
try {
|
|
90
|
+
const value = JSON.parse(text);
|
|
91
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
|
|
92
|
+
} catch {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function endpoint(options) {
|
|
97
|
+
const base = new URL(options.url);
|
|
98
|
+
if (!base.pathname.endsWith("/"))
|
|
99
|
+
base.pathname += "/";
|
|
100
|
+
const url = new URL("api/experimental/client-mcp", base);
|
|
101
|
+
url.search = base.search;
|
|
102
|
+
if (options.directory)
|
|
103
|
+
url.searchParams.set("location[directory]", options.directory);
|
|
104
|
+
url.searchParams.set("name", options.name);
|
|
105
|
+
url.protocol = url.protocol === "https:" || url.protocol === "wss:" ? "wss:" : "ws:";
|
|
106
|
+
return url;
|
|
107
|
+
}
|
|
108
|
+
export {
|
|
109
|
+
connectClientMcp
|
|
110
|
+
};
|
package/dist/promise/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
9
|
-
import"../chunks/service-
|
|
10
|
-
import"../chunks/service-
|
|
2
|
+
make2,
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/service-probe-2kam2gy2.js";
|
|
5
|
+
import"../chunks/service-probe-6vp15eh6.js";
|
|
6
|
+
import"../chunks/service-probe-vyas3vgt.js";
|
|
7
|
+
import"../chunks/service-probe-ezt8t3fk.js";
|
|
8
|
+
import"../chunks/service-probe-3gaxfvs6.js";
|
|
9
|
+
import"../chunks/service-probe-js54wxgp.js";
|
|
10
|
+
import"../chunks/service-probe-8bbb028w.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
exports_client as OpenCode,
|
|
13
|
+
make2 as make
|
|
14
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/service-
|
|
4
|
-
import"../../chunks/service-
|
|
2
|
+
make3
|
|
3
|
+
} from "../../chunks/service-probe-3gaxfvs6.js";
|
|
4
|
+
import"../../chunks/service-probe-js54wxgp.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
make3 as make
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../chunks/service-
|
|
1
|
+
import"../../chunks/service-probe-vyas3vgt.js";
|
|
2
2
|
import {
|
|
3
3
|
isInvalidRequestError2,
|
|
4
4
|
isUnauthorizedError2,
|
|
@@ -34,16 +34,16 @@ import {
|
|
|
34
34
|
isShellNotFoundError2,
|
|
35
35
|
isWorktreeError2,
|
|
36
36
|
isVcsInitNotSupportedError2
|
|
37
|
-
} from "../../chunks/service-
|
|
37
|
+
} from "../../chunks/service-probe-ezt8t3fk.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "../../chunks/service-
|
|
39
|
+
exports_client2
|
|
40
|
+
} from "../../chunks/service-probe-3gaxfvs6.js";
|
|
41
41
|
import {
|
|
42
|
-
|
|
43
|
-
} from "../../chunks/service-
|
|
42
|
+
ClientError2
|
|
43
|
+
} from "../../chunks/service-probe-js54wxgp.js";
|
|
44
44
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
ClientError2 as ClientError,
|
|
46
|
+
exports_client2 as OpenCode,
|
|
47
47
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
48
48
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
49
49
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isShellNotFoundError2,
|
|
34
34
|
isWorktreeError2,
|
|
35
35
|
isVcsInitNotSupportedError2
|
|
36
|
-
} from "../../chunks/service-
|
|
36
|
+
} from "../../chunks/service-probe-ezt8t3fk.js";
|
|
37
37
|
export {
|
|
38
38
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
39
39
|
isCommandExecutionError2 as isCommandExecutionError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"../chunks/service-
|
|
1
|
+
import"../chunks/service-probe-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/service-probe-2kam2gy2.js";
|
|
5
|
+
import"../chunks/service-probe-6vp15eh6.js";
|
|
6
|
+
import"../chunks/service-probe-vyas3vgt.js";
|
|
7
7
|
import {
|
|
8
8
|
isInvalidRequestError2,
|
|
9
9
|
isUnauthorizedError2,
|
|
@@ -39,15 +39,15 @@ import {
|
|
|
39
39
|
isShellNotFoundError2,
|
|
40
40
|
isWorktreeError2,
|
|
41
41
|
isVcsInitNotSupportedError2
|
|
42
|
-
} from "../chunks/service-
|
|
43
|
-
import"../chunks/service-
|
|
42
|
+
} from "../chunks/service-probe-ezt8t3fk.js";
|
|
43
|
+
import"../chunks/service-probe-3gaxfvs6.js";
|
|
44
44
|
import {
|
|
45
|
-
|
|
46
|
-
} from "../chunks/service-
|
|
47
|
-
import"../chunks/service-
|
|
45
|
+
ClientError2
|
|
46
|
+
} from "../chunks/service-probe-js54wxgp.js";
|
|
47
|
+
import"../chunks/service-probe-8bbb028w.js";
|
|
48
48
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
ClientError2 as ClientError,
|
|
50
|
+
exports_client as OpenCode,
|
|
51
51
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
52
52
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
53
53
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
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/service-
|
|
4
|
+
} from "../chunks/service-probe-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/service-
|
|
8
|
+
} from "../chunks/service-probe-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/service-
|
|
11
|
+
} from "../chunks/service-probe-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
prepare2,
|
|
14
14
|
environment2,
|
|
15
15
|
complete2,
|
|
16
16
|
clear2
|
|
17
|
-
} from "../chunks/service-
|
|
17
|
+
} from "../chunks/service-probe-0yt83ffw.js";
|
|
18
18
|
import {
|
|
19
19
|
decide2,
|
|
20
20
|
fallback2,
|
|
21
21
|
same2,
|
|
22
22
|
probeResult2,
|
|
23
23
|
headers2
|
|
24
|
-
} from "../chunks/service-
|
|
25
|
-
import"../chunks/service-
|
|
24
|
+
} from "../chunks/service-probe-8ye1ye6f.js";
|
|
25
|
+
import"../chunks/service-probe-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.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/service-
|
|
8
|
-
import"./chunks/service-
|
|
9
|
-
import"./chunks/service-
|
|
7
|
+
} from "./chunks/service-probe-8ye1ye6f.js";
|
|
8
|
+
import"./chunks/service-probe-xgnj2w4v.js";
|
|
9
|
+
import"./chunks/service-probe-sxt88q69.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/service-
|
|
1
|
+
import"./chunks/service-probe-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/service-
|
|
5
|
+
} from "../chunks/service-probe-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/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
9
|
-
import"../chunks/service-
|
|
10
|
-
import"../chunks/service-
|
|
11
|
-
import"../chunks/service-
|
|
12
|
-
import"../chunks/service-
|
|
13
|
-
import"../chunks/service-
|
|
5
|
+
} from "../chunks/service-probe-61wt4y9h.js";
|
|
6
|
+
import"../chunks/service-probe-m2eywc8w.js";
|
|
7
|
+
import"../chunks/service-probe-2kam2gy2.js";
|
|
8
|
+
import"../chunks/service-probe-6vp15eh6.js";
|
|
9
|
+
import"../chunks/service-probe-vyas3vgt.js";
|
|
10
|
+
import"../chunks/service-probe-ezt8t3fk.js";
|
|
11
|
+
import"../chunks/service-probe-3gaxfvs6.js";
|
|
12
|
+
import"../chunks/service-probe-js54wxgp.js";
|
|
13
|
+
import"../chunks/service-probe-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/service-
|
|
2
|
-
import"../chunks/service-
|
|
3
|
-
import"../chunks/service-
|
|
4
|
-
import"../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
1
|
+
import"../chunks/service-probe-js54wxgp.js";
|
|
2
|
+
import"../chunks/service-probe-3gaxfvs6.js";
|
|
3
|
+
import"../chunks/service-probe-ezt8t3fk.js";
|
|
4
|
+
import"../chunks/service-probe-vyas3vgt.js";
|
|
5
|
+
import"../chunks/service-probe-8bbb028w.js";
|
|
6
|
+
import"../chunks/service-probe-6vp15eh6.js";
|
|
7
|
+
import"../chunks/service-probe-2kam2gy2.js";
|
|
8
|
+
import"../chunks/service-probe-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/service-
|
|
13
|
+
} from "../chunks/service-probe-61wt4y9h.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/service-
|
|
18
|
+
} from "../chunks/service-probe-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/service-
|
|
22
|
+
} from "../chunks/service-probe-gne7h7mq.js";
|
|
23
23
|
import {
|
|
24
24
|
lastAssistantWithUsage2
|
|
25
|
-
} from "../chunks/service-
|
|
25
|
+
} from "../chunks/service-probe-8s2anffy.js";
|
|
26
26
|
export {
|
|
27
27
|
createClientConnection2 as createClientConnection,
|
|
28
28
|
createData2 as createData,
|
package/dist/solid/pty.js
CHANGED