@opencode/client 2.1.3 → 2.2.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/service-timing-6mq2wh8y.js +33 -0
- package/dist/chunks/{service-probe-y2etg5bs.js → service-timing-7f0py9js.js} +2 -2
- package/dist/chunks/{service-probe-ezt8t3fk.js → service-timing-8we1dz3p.js} +6 -2
- package/dist/chunks/{service-probe-8ye1ye6f.js → service-timing-8ye1ye6f.js} +2 -2
- package/dist/chunks/{service-probe-6vp15eh6.js → service-timing-ab9bm97w.js} +1 -1
- package/dist/chunks/service-timing-b80wmp2t.js +30 -0
- package/dist/chunks/{service-probe-61wt4y9h.js → service-timing-cyxwqteg.js} +111 -75
- package/dist/chunks/{service-probe-8bbb028w.js → service-timing-gecjxyvt.js} +5 -1
- package/dist/chunks/{service-probe-xwk4fryp.js → service-timing-jpd9ebw3.js} +17 -17
- package/dist/chunks/{service-probe-nwcpakzx.js → service-timing-js54wxgp.js} +2 -2
- package/dist/chunks/{service-probe-v1n69e13.js → service-timing-knyqkv17.js} +8 -2
- package/dist/chunks/{service-probe-9j12j8xw.js → service-timing-myz4ngx9.js} +5 -5
- package/dist/chunks/{service-probe-5r97ebd4.js → service-timing-rxd7awy0.js} +59 -22
- package/dist/chunks/{service-probe-ryy6kscr.js → service-timing-ryy6kscr.js} +1 -1
- package/dist/chunks/{service-probe-g22sa7qz.js → service-timing-wcsbjfhx.js} +129 -36
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +104 -14
- package/dist/effect/api.d.ts +1 -0
- package/dist/effect/client.d.ts +901 -885
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +515 -503
- 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.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/api.d.ts +1 -0
- package/dist/promise/client.d.ts +16 -5
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +17 -6
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +17 -9
- package/dist/promise/generated/types.d.ts +1165 -3509
- package/dist/promise/generated/types.js +10 -2
- package/dist/promise/index.d.ts +1 -0
- package/dist/promise/index.js +21 -13
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.d.ts +2 -2
- package/dist/promise/service.js +12 -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.d.ts +7 -2
- package/dist/shared-events.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.d.ts +11 -1
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.js +16 -12
- package/dist/solid/pty.js +1 -1
- package/dist/solid/retention.d.ts +10 -0
- package/dist/solid/retention.js +6 -0
- package/dist/solid/usage.js +1 -1
- package/package.json +15 -8
- package/dist/chunks/service-probe-9p0yrv34.js +0 -30
- /package/dist/chunks/{service-probe-6mptkzbc.js → service-timing-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-probe-8s2anffy.js → service-timing-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-probe-9rqn6x4v.js → service-timing-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-probe-gne7h7mq.js → service-timing-gne7h7mq.js} +0 -0
- /package/dist/chunks/{service-probe-m2eywc8w.js → service-timing-m2eywc8w.js} +0 -0
- /package/dist/chunks/{service-probe-qav6mfdz.js → service-timing-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-probe-sxt88q69.js → service-timing-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-probe-ve4aws36.js → service-timing-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-probe-vmytr4q8.js → service-timing-vmytr4q8.js} +0 -0
- /package/dist/chunks/{service-probe-vyas3vgt.js → service-timing-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-probe-xgnj2w4v.js → service-timing-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-probe-ydhz1zrh.js → service-timing-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
|
+
make5
|
|
3
|
+
} from "../../chunks/service-timing-rxd7awy0.js";
|
|
4
|
+
import"../../chunks/service-timing-7f0py9js.js";
|
|
5
|
+
import"../../chunks/service-timing-vmytr4q8.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
make5 as make
|
|
8
8
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import"../../chunks/service-
|
|
1
|
+
import"../../chunks/service-timing-6mptkzbc.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../chunks/service-
|
|
3
|
+
exports_client4
|
|
4
|
+
} from "../../chunks/service-timing-rxd7awy0.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../chunks/service-
|
|
8
|
-
import"../../chunks/service-
|
|
6
|
+
ClientError3
|
|
7
|
+
} from "../../chunks/service-timing-7f0py9js.js";
|
|
8
|
+
import"../../chunks/service-timing-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-timing-7f0py9js.js";
|
|
4
|
+
import"../chunks/service-timing-vmytr4q8.js";
|
|
5
|
+
import"../chunks/service-timing-rxd7awy0.js";
|
|
6
|
+
import"../chunks/service-timing-6mptkzbc.js";
|
|
7
|
+
import"../chunks/service-timing-gecjxyvt.js";
|
|
8
|
+
import"../chunks/service-timing-ryy6kscr.js";
|
|
9
|
+
import"../chunks/service-timing-myz4ngx9.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "../chunks/service-
|
|
11
|
+
exports_client3
|
|
12
|
+
} from "../chunks/service-timing-jpd9ebw3.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
|
+
make6,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
5
|
+
} from "../chunks/service-timing-myz4ngx9.js";
|
|
6
|
+
import"../chunks/service-timing-ryy6kscr.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make6 as make
|
|
11
11
|
};
|
package/dist/effect/service.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { headers } from "../service-probe.js";
|
|
|
4
4
|
export * from "../service.js";
|
|
5
5
|
export { headers };
|
|
6
6
|
/** Contents of the local service registration file. */
|
|
7
|
-
export type Info =
|
|
7
|
+
export type Info = typeof Info.Type;
|
|
8
8
|
/** Discover a healthy, compatible local service without starting one. */
|
|
9
9
|
export declare const discover: (options?: DiscoverOptions | undefined) => Effect.Effect<{
|
|
10
10
|
url: string;
|
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-timing-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/service-
|
|
8
|
+
} from "../chunks/service-timing-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/service-
|
|
12
|
-
import {
|
|
13
|
-
prepare2,
|
|
14
|
-
environment2,
|
|
15
|
-
complete2,
|
|
16
|
-
clear2
|
|
17
|
-
} from "../chunks/service-probe-v1n69e13.js";
|
|
11
|
+
} from "../chunks/service-timing-sxt88q69.js";
|
|
18
12
|
import {
|
|
19
13
|
decide2,
|
|
20
14
|
fallback2,
|
|
21
15
|
same2,
|
|
22
16
|
probeResult2,
|
|
23
17
|
headers2
|
|
24
|
-
} from "../chunks/service-
|
|
25
|
-
import
|
|
18
|
+
} from "../chunks/service-timing-8ye1ye6f.js";
|
|
19
|
+
import {
|
|
20
|
+
prepare2,
|
|
21
|
+
environment2,
|
|
22
|
+
complete2,
|
|
23
|
+
clear2
|
|
24
|
+
} from "../chunks/service-timing-knyqkv17.js";
|
|
25
|
+
import"../chunks/service-timing-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/api.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { OpenCode } from "./client.js";
|
|
2
2
|
type Client = ReturnType<typeof OpenCode.make>;
|
|
3
3
|
export type { RpcApi, RpcCallOptions, RpcClient, RpcEventPayload } from "./rpc.js";
|
|
4
|
+
export type { SelectedEvent, SubscribeOptions } from "../shared-events.js";
|
|
4
5
|
export type AgentApi = Client["agent"];
|
|
5
6
|
export type CommandApi = Client["command"];
|
|
6
7
|
export type ConfigApi = Client["config"];
|
package/dist/promise/client.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare function make(options: ClientOptions): {
|
|
|
19
19
|
};
|
|
20
20
|
plugin: {
|
|
21
21
|
list: (input?: import("./index.js").PluginListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PluginListOutput>;
|
|
22
|
+
gui: (input: import("./index.js").PluginGuiInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PluginGuiOutput>;
|
|
22
23
|
check: (input?: import("./index.js").PluginCheckInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PluginCheckOutput>;
|
|
23
24
|
update: (input: import("./index.js").PluginUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
24
25
|
};
|
|
@@ -94,6 +95,8 @@ export declare function make(options: ClientOptions): {
|
|
|
94
95
|
text: (input: import("./index.js").GenerateTextInput, requestOptions?: OpenCode.RequestOptions) => Promise<{
|
|
95
96
|
text: string;
|
|
96
97
|
}>;
|
|
98
|
+
image: (input: import("./index.js").GenerateImageInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").GenerateImageResult>;
|
|
99
|
+
decisions: (input: import("./index.js").GenerateDecisionsInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").GenerateDecisionResult>;
|
|
97
100
|
};
|
|
98
101
|
voice: {
|
|
99
102
|
models: (requestOptions?: OpenCode.RequestOptions) => Promise<{
|
|
@@ -102,11 +105,7 @@ export declare function make(options: ClientOptions): {
|
|
|
102
105
|
}>;
|
|
103
106
|
session: (input: import("./index.js").VoiceSessionInput, requestOptions?: OpenCode.RequestOptions) => Promise<{
|
|
104
107
|
transport: import("./index.js").VoiceTransport;
|
|
105
|
-
session?: {
|
|
106
|
-
id: string;
|
|
107
|
-
} | undefined;
|
|
108
108
|
}>;
|
|
109
|
-
instructions: (input: import("./index.js").VoiceInstructionsInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
110
109
|
};
|
|
111
110
|
provider: {
|
|
112
111
|
list: (input?: import("./index.js").ProviderListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ProviderListOutput>;
|
|
@@ -143,6 +142,9 @@ export declare function make(options: ClientOptions): {
|
|
|
143
142
|
resource: {
|
|
144
143
|
catalog: (input?: import("./index.js").McpResourceCatalogInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").McpResourceCatalogOutput>;
|
|
145
144
|
};
|
|
145
|
+
client: {
|
|
146
|
+
token: (input: import("./index.js").McpClientTokenInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").McpClientTokenOutput>;
|
|
147
|
+
};
|
|
146
148
|
};
|
|
147
149
|
credential: {
|
|
148
150
|
list: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").CredentialEntry[]>;
|
|
@@ -180,6 +182,8 @@ export declare function make(options: ClientOptions): {
|
|
|
180
182
|
list: (input?: import("./index.js").FileListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FileListOutput>;
|
|
181
183
|
find: (input: import("./index.js").FileFindInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FileFindOutput>;
|
|
182
184
|
write: (input: import("./index.js").FileWriteInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FileWriteOutput>;
|
|
185
|
+
watch: (input: import("./index.js").FileWatchInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
186
|
+
unwatch: (input: import("./index.js").FileUnwatchInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
183
187
|
};
|
|
184
188
|
command: {
|
|
185
189
|
list: (input?: import("./index.js").CommandListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").CommandListOutput>;
|
|
@@ -210,6 +214,9 @@ export declare function make(options: ClientOptions): {
|
|
|
210
214
|
remove: (input: import("./index.js").ExperimentalPersistentPtyRemoveInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
211
215
|
connectToken: (input: import("./index.js").ExperimentalPersistentPtyConnectTokenInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PtyTicketConnectToken>;
|
|
212
216
|
};
|
|
217
|
+
media: {
|
|
218
|
+
get: (input: import("./index.js").ExperimentalMediaGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalMediaGetOutput>;
|
|
219
|
+
};
|
|
213
220
|
};
|
|
214
221
|
shell: {
|
|
215
222
|
list: (input?: import("./index.js").ShellListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ShellListOutput>;
|
|
@@ -238,6 +245,7 @@ export declare function make(options: ClientOptions): {
|
|
|
238
245
|
diff: (input: import("./index.js").VcsDiffInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").VcsDiffOutput>;
|
|
239
246
|
};
|
|
240
247
|
debug: {
|
|
248
|
+
heapDump: (input?: import("./index.js").DebugHeapDumpInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").DebugHeapDumpOutput>;
|
|
241
249
|
location: {
|
|
242
250
|
list: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").DebugLocationListOutput>;
|
|
243
251
|
evict: (input?: import("./index.js").DebugLocationEvictInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
@@ -252,6 +260,9 @@ export declare function make(options: ClientOptions): {
|
|
|
252
260
|
providers: (input?: import("./index.js").WebsearchProvidersInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").WebsearchProvidersOutput>;
|
|
253
261
|
query: (input: import("./index.js").WebsearchQueryInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").WebsearchQueryOutput>;
|
|
254
262
|
};
|
|
263
|
+
usage: {
|
|
264
|
+
limits: (input?: import("./index.js").UsageLimitsInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").UsageLimitsOutput>;
|
|
265
|
+
};
|
|
255
266
|
config: {
|
|
256
267
|
get: (input?: import("./index.js").ConfigGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ConfigGetOutput>;
|
|
257
268
|
shells: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ConfigShellsOutput>;
|
|
@@ -261,6 +272,6 @@ export declare function make(options: ClientOptions): {
|
|
|
261
272
|
call: (input: import("./index.js").RpcCallInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").RpcOutput>;
|
|
262
273
|
};
|
|
263
274
|
event: {
|
|
264
|
-
subscribe(options?: SharedEvents.SubscribeOptions): AsyncIterable<import("./index.js").V2Event>;
|
|
275
|
+
subscribe<Type extends Exclude<"agent.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "server.connected" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated" | `rpc.${string}`, "server.connected"> = "agent.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated" | `rpc.${string}`>(options?: SharedEvents.SubscribeOptions<Type> | undefined): AsyncIterable<([Extract<Type, "agent.updated">] extends [never] ? never : import("./index.js").AgentUpdated) | ([Extract<Type, "command.updated">] extends [never] ? never : import("./index.js").CommandUpdated) | ([Extract<Type, "config.updated">] extends [never] ? never : import("./index.js").ConfigUpdated) | ([Extract<Type, "credential.switched">] extends [never] ? never : import("./index.js").CredentialSwitched) | ([Extract<Type, "credential.updated">] extends [never] ? never : import("./index.js").CredentialUpdated) | ([Extract<Type, "filesystem.changed">] extends [never] ? never : import("./index.js").FilesystemChanged) | ([Extract<Type, "form.cancelled">] extends [never] ? never : import("./index.js").FormCancelled) | ([Extract<Type, "form.created">] extends [never] ? never : import("./index.js").FormCreated) | ([Extract<Type, "form.replied">] extends [never] ? never : import("./index.js").FormReplied) | ([Extract<Type, "installation.update-available">] extends [never] ? never : import("./index.js").InstallationUpdateAvailable) | ([Extract<Type, "installation.updated">] extends [never] ? never : import("./index.js").InstallationUpdated) | ([Extract<Type, "integration.updated">] extends [never] ? never : import("./index.js").IntegrationUpdated) | ([Extract<Type, "location.shutdown">] extends [never] ? never : import("./index.js").LocationShutdown) | ([Extract<Type, "mcp.resources.changed">] extends [never] ? never : import("./index.js").McpResourcesChanged) | ([Extract<Type, "mcp.status.changed">] extends [never] ? never : import("./index.js").McpStatusChanged) | ([Extract<Type, "model.updated">] extends [never] ? never : import("./index.js").ModelUpdated) | ([Extract<Type, "models-dev.refreshed">] extends [never] ? never : import("./index.js").ModelsDevRefreshed) | ([Extract<Type, "permission.asked">] extends [never] ? never : import("./index.js").PermissionAsked) | ([Extract<Type, "permission.replied">] extends [never] ? never : import("./index.js").PermissionReplied) | ([Extract<Type, "persistent-pty.added">] extends [never] ? never : import("./index.js").PersistentPtyAdded) | ([Extract<Type, "persistent-pty.removed">] extends [never] ? never : import("./index.js").PersistentPtyRemoved) | ([Extract<Type, "plugin.updated">] extends [never] ? never : import("./index.js").PluginUpdated) | ([Extract<Type, "project.updated">] extends [never] ? never : import("./index.js").ProjectUpdated) | ([Extract<Type, "provider.updated">] extends [never] ? never : import("./index.js").ProviderUpdated) | ([Extract<Type, "pty.created">] extends [never] ? never : import("./index.js").PtyCreated) | ([Extract<Type, "pty.deleted">] extends [never] ? never : import("./index.js").PtyDeleted) | ([Extract<Type, "pty.exited">] extends [never] ? never : import("./index.js").PtyExited) | ([Extract<Type, "pty.updated">] extends [never] ? never : import("./index.js").PtyUpdated) | ([Extract<Type, "reference.updated">] extends [never] ? never : import("./index.js").ReferenceUpdated) | ([Extract<Type, "session.agent.selected">] extends [never] ? never : import("./index.js").SessionAgentSelected) | ([Extract<Type, "session.archived">] extends [never] ? never : import("./index.js").SessionArchived) | ([Extract<Type, "session.compaction.delta">] extends [never] ? never : import("./index.js").SessionCompactionDelta) | ([Extract<Type, "session.compaction.ended">] extends [never] ? never : import("./index.js").SessionCompactionEnded) | ([Extract<Type, "session.compaction.failed">] extends [never] ? never : import("./index.js").SessionCompactionFailed) | ([Extract<Type, "session.compaction.started">] extends [never] ? never : import("./index.js").SessionCompactionStarted) | ([Extract<Type, "session.created">] extends [never] ? never : import("./index.js").SessionCreated) | ([Extract<Type, "session.deleted">] extends [never] ? never : import("./index.js").SessionDeleted) | ([Extract<Type, "session.execution.failed">] extends [never] ? never : import("./index.js").SessionExecutionFailed) | ([Extract<Type, "session.execution.interrupted">] extends [never] ? never : import("./index.js").SessionExecutionInterrupted) | ([Extract<Type, "session.execution.started">] extends [never] ? never : import("./index.js").SessionExecutionStarted) | ([Extract<Type, "session.execution.succeeded">] extends [never] ? never : import("./index.js").SessionExecutionSucceeded) | ([Extract<Type, "session.forked">] extends [never] ? never : import("./index.js").SessionForked) | ([Extract<Type, "session.idle">] extends [never] ? never : import("./index.js").SessionIdle) | ([Extract<Type, "session.inbox.cancelled">] extends [never] ? never : import("./index.js").SessionInboxCancelled) | ([Extract<Type, "session.inbox.delivered">] extends [never] ? never : import("./index.js").SessionInboxDelivered) | ([Extract<Type, "session.inbox.delivery.changed">] extends [never] ? never : import("./index.js").SessionInboxDeliveryChanged) | ([Extract<Type, "session.inbox.enqueued">] extends [never] ? never : import("./index.js").SessionInboxEnqueued) | ([Extract<Type, "session.instructions.updated">] extends [never] ? never : import("./index.js").SessionInstructionsUpdated) | ([Extract<Type, "session.metadata.updated">] extends [never] ? never : import("./index.js").SessionMetadataUpdated) | ([Extract<Type, "session.model.selected">] extends [never] ? never : import("./index.js").SessionModelSelected) | ([Extract<Type, "session.moved">] extends [never] ? never : import("./index.js").SessionMoved) | ([Extract<Type, "session.permissions">] extends [never] ? never : import("./index.js").SessionPermissions) | ([Extract<Type, "session.reasoning.delta">] extends [never] ? never : import("./index.js").SessionReasoningDelta) | ([Extract<Type, "session.reasoning.ended">] extends [never] ? never : import("./index.js").SessionReasoningEnded) | ([Extract<Type, "session.reasoning.started">] extends [never] ? never : import("./index.js").SessionReasoningStarted) | ([Extract<Type, "session.renamed">] extends [never] ? never : import("./index.js").SessionRenamed) | ([Extract<Type, "session.retry.scheduled">] extends [never] ? never : import("./index.js").SessionRetryScheduled) | ([Extract<Type, "session.revert.cleared">] extends [never] ? never : import("./index.js").SessionRevertCleared) | ([Extract<Type, "session.revert.committed">] extends [never] ? never : import("./index.js").SessionRevertCommitted) | ([Extract<Type, "session.revert.staged">] extends [never] ? never : import("./index.js").SessionRevertStaged) | ([Extract<Type, "session.shell.ended">] extends [never] ? never : import("./index.js").SessionShellEnded) | ([Extract<Type, "session.shell.started">] extends [never] ? never : import("./index.js").SessionShellStarted) | ([Extract<Type, "session.skill.activated">] extends [never] ? never : import("./index.js").SessionSkillActivated) | ([Extract<Type, "session.status">] extends [never] ? never : import("./index.js").SessionStatusUpdated) | ([Extract<Type, "session.step.ended">] extends [never] ? never : import("./index.js").SessionStepEnded) | ([Extract<Type, "session.step.failed">] extends [never] ? never : import("./index.js").SessionStepFailed) | ([Extract<Type, "session.step.started">] extends [never] ? never : import("./index.js").SessionStepStarted) | ([Extract<Type, "session.step.streamed">] extends [never] ? never : import("./index.js").SessionStepStreamed) | ([Extract<Type, "session.synthetic">] extends [never] ? never : import("./index.js").SessionSynthetic) | ([Extract<Type, "session.text.delta">] extends [never] ? never : import("./index.js").SessionTextDelta) | ([Extract<Type, "session.text.ended">] extends [never] ? never : import("./index.js").SessionTextEnded) | ([Extract<Type, "session.text.started">] extends [never] ? never : import("./index.js").SessionTextStarted) | ([Extract<Type, "session.tool.called">] extends [never] ? never : import("./index.js").SessionToolCalled) | ([Extract<Type, "session.tool.failed">] extends [never] ? never : import("./index.js").SessionToolFailed) | ([Extract<Type, "session.tool.input.delta">] extends [never] ? never : import("./index.js").SessionToolInputDelta) | ([Extract<Type, "session.tool.input.ended">] extends [never] ? never : import("./index.js").SessionToolInputEnded) | ([Extract<Type, "session.tool.input.started">] extends [never] ? never : import("./index.js").SessionToolInputStarted) | ([Extract<Type, "session.tool.progress">] extends [never] ? never : import("./index.js").SessionToolProgress) | ([Extract<Type, "session.tool.success">] extends [never] ? never : import("./index.js").SessionToolSuccess) | ([Extract<Type, "session.unarchived">] extends [never] ? never : import("./index.js").SessionUnarchived) | ([Extract<Type, "session.usage.updated">] extends [never] ? never : import("./index.js").SessionUsageUpdated) | ([Extract<Type, "session.viewed">] extends [never] ? never : import("./index.js").SessionViewed) | ([Extract<Type, "shell.created">] extends [never] ? never : import("./index.js").ShellCreated) | ([Extract<Type, "shell.deleted">] extends [never] ? never : import("./index.js").ShellDeleted) | ([Extract<Type, "shell.exited">] extends [never] ? never : import("./index.js").ShellExited) | ([Extract<Type, "skill.updated">] extends [never] ? never : import("./index.js").SkillUpdated) | ([Extract<Type, "tui.command.execute">] extends [never] ? never : import("./index.js").TuiCommandExecute) | ([Extract<Type, "tui.prompt.append">] extends [never] ? never : import("./index.js").TuiPromptAppend) | ([Extract<Type, "tui.session.select">] extends [never] ? never : import("./index.js").TuiSessionSelect) | ([Extract<Type, "tui.toast.show">] extends [never] ? never : import("./index.js").TuiToastShow) | ([Extract<Type, `rpc.${string}`>] extends [never] ? never : import("./index.js").V2EventRpc) | (["server.connected" | Extract<Type, "server.connected">] extends [never] ? never : import("./index.js").V2EventServerConnected) | ([Extract<Type, "vcs.branch.updated">] extends [never] ? never : import("./index.js").VcsBranchUpdated) | ([Extract<Type, "websearch.updated">] extends [never] ? never : import("./index.js").WebsearchUpdated) | ([Extract<Type, "worktree.resolved">] extends [never] ? never : import("./index.js").WorktreeResolved) | ([Extract<Type, "worktree.updated">] extends [never] ? never : import("./index.js").WorktreeUpdated)>;
|
|
265
276
|
};
|
|
266
277
|
};
|
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-timing-b80wmp2t.js";
|
|
5
|
+
import"../chunks/service-timing-vyas3vgt.js";
|
|
6
|
+
import"../chunks/service-timing-wcsbjfhx.js";
|
|
7
|
+
import"../chunks/service-timing-js54wxgp.js";
|
|
8
|
+
import"../chunks/service-timing-ab9bm97w.js";
|
|
9
|
+
import"../chunks/service-timing-8we1dz3p.js";
|
|
10
|
+
import"../chunks/service-timing-gecjxyvt.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
exports_client as OpenCode,
|
|
13
|
+
make2 as make
|
|
14
14
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput,
|
|
1
|
+
import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, GenerateImageInput, GenerateDecisionsInput, VoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, McpClientTokenInput, McpClientTokenOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, FileWatchInput, FileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ExperimentalMediaGetInput, ExperimentalMediaGetOutput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, UsageLimitsInput, UsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -26,6 +26,7 @@ export declare function make(options: ClientOptions): {
|
|
|
26
26
|
};
|
|
27
27
|
plugin: {
|
|
28
28
|
list: (input?: PluginListInput, requestOptions?: RequestOptions) => Promise<PluginListOutput>;
|
|
29
|
+
gui: (input: PluginGuiInput, requestOptions?: RequestOptions) => Promise<PluginGuiOutput>;
|
|
29
30
|
check: (input?: PluginCheckInput, requestOptions?: RequestOptions) => Promise<PluginCheckOutput>;
|
|
30
31
|
update: (input: PluginUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
31
32
|
};
|
|
@@ -101,6 +102,8 @@ export declare function make(options: ClientOptions): {
|
|
|
101
102
|
text: (input: GenerateTextInput, requestOptions?: RequestOptions) => Promise<{
|
|
102
103
|
text: string;
|
|
103
104
|
}>;
|
|
105
|
+
image: (input: GenerateImageInput, requestOptions?: RequestOptions) => Promise<import("./types.js").GenerateImageResult>;
|
|
106
|
+
decisions: (input: GenerateDecisionsInput, requestOptions?: RequestOptions) => Promise<import("./types.js").GenerateDecisionResult>;
|
|
104
107
|
};
|
|
105
108
|
voice: {
|
|
106
109
|
models: (requestOptions?: RequestOptions) => Promise<{
|
|
@@ -109,11 +112,7 @@ export declare function make(options: ClientOptions): {
|
|
|
109
112
|
}>;
|
|
110
113
|
session: (input: VoiceSessionInput, requestOptions?: RequestOptions) => Promise<{
|
|
111
114
|
transport: import("./types.js").VoiceTransport;
|
|
112
|
-
session?: {
|
|
113
|
-
id: string;
|
|
114
|
-
} | undefined;
|
|
115
115
|
}>;
|
|
116
|
-
instructions: (input: VoiceInstructionsInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
117
116
|
};
|
|
118
117
|
provider: {
|
|
119
118
|
list: (input?: ProviderListInput, requestOptions?: RequestOptions) => Promise<ProviderListOutput>;
|
|
@@ -150,6 +149,9 @@ export declare function make(options: ClientOptions): {
|
|
|
150
149
|
resource: {
|
|
151
150
|
catalog: (input?: McpResourceCatalogInput, requestOptions?: RequestOptions) => Promise<McpResourceCatalogOutput>;
|
|
152
151
|
};
|
|
152
|
+
client: {
|
|
153
|
+
token: (input: McpClientTokenInput, requestOptions?: RequestOptions) => Promise<McpClientTokenOutput>;
|
|
154
|
+
};
|
|
153
155
|
};
|
|
154
156
|
credential: {
|
|
155
157
|
list: (requestOptions?: RequestOptions) => Promise<import("./types.js").CredentialEntry[]>;
|
|
@@ -187,6 +189,8 @@ export declare function make(options: ClientOptions): {
|
|
|
187
189
|
list: (input?: FileListInput, requestOptions?: RequestOptions) => Promise<FileListOutput>;
|
|
188
190
|
find: (input: FileFindInput, requestOptions?: RequestOptions) => Promise<FileFindOutput>;
|
|
189
191
|
write: (input: FileWriteInput, requestOptions?: RequestOptions) => Promise<FileWriteOutput>;
|
|
192
|
+
watch: (input: FileWatchInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
193
|
+
unwatch: (input: FileUnwatchInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
190
194
|
};
|
|
191
195
|
command: {
|
|
192
196
|
list: (input?: CommandListInput, requestOptions?: RequestOptions) => Promise<CommandListOutput>;
|
|
@@ -198,7 +202,7 @@ export declare function make(options: ClientOptions): {
|
|
|
198
202
|
call: (input: RpcCallInput, requestOptions?: RequestOptions) => Promise<import("./types.js").RpcOutput>;
|
|
199
203
|
};
|
|
200
204
|
event: {
|
|
201
|
-
subscribe: (requestOptions?: RequestOptions) => AsyncIterable<EventSubscribeOutput>;
|
|
205
|
+
subscribe: (input?: EventSubscribeInput, requestOptions?: RequestOptions) => AsyncIterable<EventSubscribeOutput>;
|
|
202
206
|
};
|
|
203
207
|
pty: {
|
|
204
208
|
list: (input?: PtyListInput, requestOptions?: RequestOptions) => Promise<PtyListOutput>;
|
|
@@ -223,6 +227,9 @@ export declare function make(options: ClientOptions): {
|
|
|
223
227
|
remove: (input: ExperimentalPersistentPtyRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
224
228
|
connectToken: (input: ExperimentalPersistentPtyConnectTokenInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PtyTicketConnectToken>;
|
|
225
229
|
};
|
|
230
|
+
media: {
|
|
231
|
+
get: (input: ExperimentalMediaGetInput, requestOptions?: RequestOptions) => Promise<ExperimentalMediaGetOutput>;
|
|
232
|
+
};
|
|
226
233
|
};
|
|
227
234
|
shell: {
|
|
228
235
|
list: (input?: ShellListInput, requestOptions?: RequestOptions) => Promise<ShellListOutput>;
|
|
@@ -251,6 +258,7 @@ export declare function make(options: ClientOptions): {
|
|
|
251
258
|
diff: (input: VcsDiffInput, requestOptions?: RequestOptions) => Promise<VcsDiffOutput>;
|
|
252
259
|
};
|
|
253
260
|
debug: {
|
|
261
|
+
heapDump: (input?: DebugHeapDumpInput, requestOptions?: RequestOptions) => Promise<DebugHeapDumpOutput>;
|
|
254
262
|
location: {
|
|
255
263
|
list: (requestOptions?: RequestOptions) => Promise<DebugLocationListOutput>;
|
|
256
264
|
evict: (input?: DebugLocationEvictInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
@@ -265,6 +273,9 @@ export declare function make(options: ClientOptions): {
|
|
|
265
273
|
providers: (input?: WebsearchProvidersInput, requestOptions?: RequestOptions) => Promise<WebsearchProvidersOutput>;
|
|
266
274
|
query: (input: WebsearchQueryInput, requestOptions?: RequestOptions) => Promise<WebsearchQueryOutput>;
|
|
267
275
|
};
|
|
276
|
+
usage: {
|
|
277
|
+
limits: (input?: UsageLimitsInput, requestOptions?: RequestOptions) => Promise<UsageLimitsOutput>;
|
|
278
|
+
};
|
|
268
279
|
config: {
|
|
269
280
|
get: (input?: ConfigGetInput, requestOptions?: RequestOptions) => Promise<ConfigGetOutput>;
|
|
270
281
|
shells: (requestOptions?: RequestOptions) => Promise<ConfigShellsOutput>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/service-
|
|
4
|
-
import"../../chunks/service-
|
|
2
|
+
make3
|
|
3
|
+
} from "../../chunks/service-timing-wcsbjfhx.js";
|
|
4
|
+
import"../../chunks/service-timing-js54wxgp.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
make3 as make
|
|
7
7
|
};
|