@opencode/client 0.0.0-dev-271 → 0.0.0-dev-286
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/{rpc-runtime-6zp7akge.js → rpc-runtime-0e3ghr9a.js} +3 -3
- package/dist/chunks/{rpc-runtime-sqcsh66p.js → rpc-runtime-gecjxyvt.js} +3 -3
- package/dist/chunks/{rpc-runtime-enha36tm.js → rpc-runtime-jyhrvv87.js} +4 -4
- package/dist/chunks/{rpc-runtime-2kfhge2q.js → rpc-runtime-kwv4hea0.js} +6 -6
- package/dist/chunks/rpc-runtime-mwrzahmf.js +38 -0
- package/dist/chunks/{rpc-runtime-gne7h7mq.js → rpc-runtime-v1h0xkyr.js} +42 -1
- package/dist/effect/client.js +3 -3
- package/dist/effect/generated/client.js +1 -1
- package/dist/effect/generated/index.js +1 -1
- package/dist/effect/index.js +3 -3
- package/dist/effect/service.js +1 -1
- package/dist/promise/client.js +4 -4
- package/dist/promise/generated/client.js +3 -3
- package/dist/promise/generated/index.js +1 -1
- package/dist/promise/index.d.ts +1 -0
- package/dist/promise/index.js +12 -6
- package/dist/promise/media.d.ts +356 -0
- package/dist/promise/media.js +8 -0
- package/dist/promise/service.js +1 -1
- package/dist/pty-handoff.js +1 -1
- package/dist/shared-events.js +3 -3
- package/dist/solid/data.js +6 -5
- package/dist/solid/index.js +12 -5
- package/dist/solid/pty.d.ts +66 -0
- package/dist/solid/pty.js +8 -2
- package/package.json +4 -4
- /package/dist/chunks/{rpc-runtime-m2eywc8w.js → rpc-runtime-6r38tsk5.js} +0 -0
- /package/dist/chunks/{rpc-runtime-khzktj08.js → rpc-runtime-bb4rz2ry.js} +0 -0
- /package/dist/chunks/{rpc-runtime-5w21zsxq.js → rpc-runtime-rrq6nhff.js} +0 -0
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
// src/promise/generated/client.ts
|
|
9
9
|
var exports_client4 = {};
|
|
10
10
|
__export(exports_client4, {
|
|
11
|
-
make: () =>
|
|
11
|
+
make: () => make6
|
|
12
12
|
});
|
|
13
13
|
var maxSseEventBytes = 16 * 1024 * 1024;
|
|
14
|
-
function
|
|
14
|
+
function make6(options) {
|
|
15
15
|
const fetch = options.fetch ?? globalThis.fetch;
|
|
16
16
|
const prepare = (descriptor, requestOptions) => {
|
|
17
17
|
const baseUrl = new URL(options.baseUrl);
|
|
@@ -1721,4 +1721,4 @@ function isContentType(response, expected) {
|
|
|
1721
1721
|
return response.headers.get("content-type")?.split(";", 1)[0]?.trim().toLowerCase() === expected;
|
|
1722
1722
|
}
|
|
1723
1723
|
|
|
1724
|
-
export {
|
|
1724
|
+
export { make6, exports_client4 };
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
var exports_shared_events = {};
|
|
7
7
|
__export(exports_shared_events, {
|
|
8
8
|
SharedEvents: () => exports_shared_events,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make7
|
|
10
10
|
});
|
|
11
|
-
function
|
|
11
|
+
function make7(connect) {
|
|
12
12
|
let current;
|
|
13
13
|
const capacity = 4096;
|
|
14
14
|
function stop(connection) {
|
|
@@ -146,4 +146,4 @@ function make6(connect) {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export {
|
|
149
|
+
export { make7, exports_shared_events };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./rpc-runtime-
|
|
2
|
+
make7
|
|
3
|
+
} from "./rpc-runtime-gecjxyvt.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError2
|
|
6
6
|
} from "./rpc-runtime-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
8
|
make4
|
|
9
|
-
} from "./rpc-runtime-
|
|
9
|
+
} from "./rpc-runtime-bb4rz2ry.js";
|
|
10
10
|
import {
|
|
11
11
|
make3,
|
|
12
12
|
aborted2
|
|
@@ -40,7 +40,7 @@ var make2 = Effect.fn("OpenCode.make")(function* (options) {
|
|
|
40
40
|
this.cause = cause;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const shared =
|
|
43
|
+
const shared = make7((signal) => Stream.toAsyncIterableWith(native.pipe(Stream.interruptWhen(aborted2(signal)), Stream.catchCause((cause) => Stream.fail(new EventFailure(cause)))), context));
|
|
44
44
|
const subscribe = (input) => Stream.fromAsyncIterable(shared.subscribe({ types: input?.types }), (error) => error).pipe(Stream.catch((error) => Stream.failCause(error instanceof EventFailure ? error.cause : Cause.fail(new ClientError2({ cause: error })))));
|
|
45
45
|
return {
|
|
46
46
|
...raw,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
make6
|
|
3
|
-
} from "./rpc-runtime-sqcsh66p.js";
|
|
4
1
|
import {
|
|
5
2
|
make7
|
|
6
|
-
} from "./rpc-runtime-
|
|
3
|
+
} from "./rpc-runtime-gecjxyvt.js";
|
|
4
|
+
import {
|
|
5
|
+
make6
|
|
6
|
+
} from "./rpc-runtime-0e3ghr9a.js";
|
|
7
7
|
import {
|
|
8
8
|
makeRpc2
|
|
9
9
|
} from "./rpc-runtime-kdshn947.js";
|
|
@@ -18,8 +18,8 @@ __export(exports_client3, {
|
|
|
18
18
|
make: () => make5
|
|
19
19
|
});
|
|
20
20
|
function make5(options) {
|
|
21
|
-
const raw =
|
|
22
|
-
const events =
|
|
21
|
+
const raw = make6(options);
|
|
22
|
+
const events = make7((signal, onActivity) => raw.event.subscribe(undefined, { signal, onActivity }));
|
|
23
23
|
return {
|
|
24
24
|
...raw,
|
|
25
25
|
rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// src/promise/media.ts
|
|
2
|
+
var MEDIA_URI_CAPABILITY = "experimental-media-uri";
|
|
3
|
+
var CAPABILITIES_HEADER = "X-OpenCode-Capabilities";
|
|
4
|
+
var MEDIA_REF = /^media:([0-9a-f]{64})$/;
|
|
5
|
+
function mediaHashFromUri2(uri) {
|
|
6
|
+
if (!uri)
|
|
7
|
+
return;
|
|
8
|
+
return MEDIA_REF.exec(uri)?.[1];
|
|
9
|
+
}
|
|
10
|
+
function withMediaRefs2(api) {
|
|
11
|
+
return {
|
|
12
|
+
...api,
|
|
13
|
+
message: {
|
|
14
|
+
...api.message,
|
|
15
|
+
list: (input, options) => api.message.list(input, mediaRefOptions(options))
|
|
16
|
+
},
|
|
17
|
+
session: {
|
|
18
|
+
...api.session,
|
|
19
|
+
message: {
|
|
20
|
+
...api.session.message,
|
|
21
|
+
get: (input, options) => api.session.message.get(input, mediaRefOptions(options))
|
|
22
|
+
},
|
|
23
|
+
inbox: {
|
|
24
|
+
...api.session.inbox,
|
|
25
|
+
list: (input, options) => api.session.inbox.list(input, mediaRefOptions(options))
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function mediaRefOptions(options) {
|
|
31
|
+
if (options?.mediaRefs === false)
|
|
32
|
+
return options;
|
|
33
|
+
const headers = new Headers(options?.headers);
|
|
34
|
+
headers.set(CAPABILITIES_HEADER, MEDIA_URI_CAPABILITY);
|
|
35
|
+
return { ...options, headers };
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { mediaHashFromUri2, withMediaRefs2 };
|
|
@@ -1,4 +1,45 @@
|
|
|
1
1
|
// src/solid/pty.ts
|
|
2
|
+
import { PersistentPty } from "@opencode/schema/persistent-pty";
|
|
3
|
+
import { Schema } from "effect";
|
|
4
|
+
var PersistentPtyMessage2 = Schema.Union([
|
|
5
|
+
Schema.Struct({
|
|
6
|
+
type: Schema.Literal("attached"),
|
|
7
|
+
inputProtocol: Schema.optional(Schema.Number),
|
|
8
|
+
info: Schema.Struct({ size: PersistentPty.Info.fields.size }),
|
|
9
|
+
role: Schema.optional(Schema.Literals(["controller", "observer"]))
|
|
10
|
+
}),
|
|
11
|
+
Schema.Struct({ type: Schema.Literal("replay_complete") }),
|
|
12
|
+
Schema.Struct({
|
|
13
|
+
type: Schema.Literal("resized"),
|
|
14
|
+
cols: Schema.Number,
|
|
15
|
+
rows: Schema.Number,
|
|
16
|
+
checkpoint: Schema.String
|
|
17
|
+
}),
|
|
18
|
+
Schema.Struct({
|
|
19
|
+
type: Schema.Literal("controller_changed"),
|
|
20
|
+
attachmentID: Schema.optional(Schema.NullOr(Schema.String))
|
|
21
|
+
}),
|
|
22
|
+
Schema.Struct({
|
|
23
|
+
type: Schema.Literal("exited"),
|
|
24
|
+
exitCode: Schema.optional(Schema.NullOr(Schema.Number))
|
|
25
|
+
}),
|
|
26
|
+
Schema.Struct({ type: Schema.Literal("title_changed"), title: Schema.String }),
|
|
27
|
+
Schema.Struct({ type: Schema.Literal("foreground_process_changed"), process: Schema.NullOr(Schema.String) })
|
|
28
|
+
]);
|
|
29
|
+
var decodeMessage = Schema.decodeUnknownOption(Schema.fromJsonString(PersistentPtyMessage2));
|
|
30
|
+
function decodePersistentPtyMessage2(text) {
|
|
31
|
+
return decodeMessage(text);
|
|
32
|
+
}
|
|
33
|
+
function persistentPtyFrame2(size, data) {
|
|
34
|
+
const frame = new Uint8Array(5 + (data?.byteLength ?? 0));
|
|
35
|
+
const view = new DataView(frame.buffer);
|
|
36
|
+
frame[0] = data ? 1 : 0;
|
|
37
|
+
view.setUint16(1, size.cols);
|
|
38
|
+
view.setUint16(3, size.rows);
|
|
39
|
+
if (data)
|
|
40
|
+
frame.set(data, 5);
|
|
41
|
+
return frame;
|
|
42
|
+
}
|
|
2
43
|
function createPtyClient2(api, options) {
|
|
3
44
|
return {
|
|
4
45
|
async connect(input) {
|
|
@@ -47,4 +88,4 @@ function createPersistentPtyClient2(api, options) {
|
|
|
47
88
|
};
|
|
48
89
|
}
|
|
49
90
|
|
|
50
|
-
export { createPtyClient2, createPersistentPtyClient2 };
|
|
91
|
+
export { PersistentPtyMessage2, decodePersistentPtyMessage2, persistentPtyFrame2, createPtyClient2, createPersistentPtyClient2 };
|
package/dist/effect/client.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/rpc-runtime-
|
|
4
|
+
} from "../chunks/rpc-runtime-jyhrvv87.js";
|
|
5
5
|
import"../chunks/rpc-runtime-15p82y03.js";
|
|
6
6
|
import"../chunks/rpc-runtime-6mptkzbc.js";
|
|
7
|
-
import"../chunks/rpc-runtime-
|
|
7
|
+
import"../chunks/rpc-runtime-bb4rz2ry.js";
|
|
8
8
|
import"../chunks/rpc-runtime-y2etg5bs.js";
|
|
9
|
-
import"../chunks/rpc-runtime-sqcsh66p.js";
|
|
10
9
|
import"../chunks/rpc-runtime-ryy6kscr.js";
|
|
10
|
+
import"../chunks/rpc-runtime-gecjxyvt.js";
|
|
11
11
|
import"../chunks/rpc-runtime-60xe5cbf.js";
|
|
12
12
|
export {
|
|
13
13
|
exports_client as OpenCode,
|
package/dist/effect/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
ClientError2
|
|
3
3
|
} from "../chunks/rpc-runtime-y2etg5bs.js";
|
|
4
4
|
import"../chunks/rpc-runtime-60xe5cbf.js";
|
|
5
|
-
import"../chunks/rpc-runtime-
|
|
5
|
+
import"../chunks/rpc-runtime-bb4rz2ry.js";
|
|
6
6
|
import"../chunks/rpc-runtime-6mptkzbc.js";
|
|
7
|
-
import"../chunks/rpc-runtime-
|
|
7
|
+
import"../chunks/rpc-runtime-gecjxyvt.js";
|
|
8
8
|
import"../chunks/rpc-runtime-ryy6kscr.js";
|
|
9
9
|
import"../chunks/rpc-runtime-15p82y03.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_client
|
|
12
|
-
} from "../chunks/rpc-runtime-
|
|
12
|
+
} from "../chunks/rpc-runtime-jyhrvv87.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
package/dist/effect/service.js
CHANGED
package/dist/promise/client.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make5,
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/rpc-runtime-
|
|
5
|
-
import"../chunks/rpc-runtime-sqcsh66p.js";
|
|
6
|
-
import"../chunks/rpc-runtime-kdshn947.js";
|
|
4
|
+
} from "../chunks/rpc-runtime-kwv4hea0.js";
|
|
7
5
|
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
8
|
-
import"../chunks/rpc-runtime-
|
|
6
|
+
import"../chunks/rpc-runtime-0e3ghr9a.js";
|
|
9
7
|
import"../chunks/rpc-runtime-nwcpakzx.js";
|
|
8
|
+
import"../chunks/rpc-runtime-kdshn947.js";
|
|
10
9
|
import"../chunks/rpc-runtime-cvg5j6d1.js";
|
|
10
|
+
import"../chunks/rpc-runtime-gecjxyvt.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_client3 as OpenCode,
|
|
13
13
|
make5 as make
|
package/dist/promise/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { OpenCode } from "./client.js";
|
|
2
2
|
export * from "./generated/index.js";
|
|
3
3
|
export { OpenCode } from "./client.js";
|
|
4
|
+
export { mediaHashFromUri, withMediaRefs, type MediaRequestOptions } from "./media.js";
|
|
4
5
|
export type { AgentApi, CommandApi, ConfigApi, EventApi, IntegrationApi, ModelApi, PluginApi, ProviderApi, ReferenceApi, RpcApi, RpcCallOptions, RpcClient, RpcEventPayload, WebSearchApi, SessionApi, SkillApi, } from "./api.js";
|
|
5
6
|
export type { EventSubscribeOutput as OpenCodeEvent } from "./generated/types.js";
|
|
6
7
|
export type { MediaFileAttachment as PromptMediaFileAttachment, Attachment as PromptAttachment, } from "@opencode/schema/prompt";
|
package/dist/promise/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import"../chunks/rpc-runtime-
|
|
1
|
+
import"../chunks/rpc-runtime-6r38tsk5.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/rpc-runtime-
|
|
5
|
-
import"../chunks/rpc-runtime-sqcsh66p.js";
|
|
6
|
-
import"../chunks/rpc-runtime-kdshn947.js";
|
|
4
|
+
} from "../chunks/rpc-runtime-kwv4hea0.js";
|
|
7
5
|
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
8
|
-
import"../chunks/rpc-runtime-
|
|
6
|
+
import"../chunks/rpc-runtime-0e3ghr9a.js";
|
|
9
7
|
import {
|
|
10
8
|
ClientError3
|
|
11
9
|
} from "../chunks/rpc-runtime-nwcpakzx.js";
|
|
10
|
+
import"../chunks/rpc-runtime-kdshn947.js";
|
|
12
11
|
import {
|
|
13
12
|
isInvalidRequestError2,
|
|
14
13
|
isUnauthorizedError2,
|
|
@@ -50,6 +49,11 @@ import {
|
|
|
50
49
|
isWorktreeError2,
|
|
51
50
|
isVcsInitNotSupportedError2
|
|
52
51
|
} from "../chunks/rpc-runtime-cvg5j6d1.js";
|
|
52
|
+
import {
|
|
53
|
+
mediaHashFromUri2,
|
|
54
|
+
withMediaRefs2
|
|
55
|
+
} from "../chunks/rpc-runtime-mwrzahmf.js";
|
|
56
|
+
import"../chunks/rpc-runtime-gecjxyvt.js";
|
|
53
57
|
export {
|
|
54
58
|
ClientError3 as ClientError,
|
|
55
59
|
exports_client3 as OpenCode,
|
|
@@ -91,5 +95,7 @@ export {
|
|
|
91
95
|
isUnknownError2 as isUnknownError,
|
|
92
96
|
isUnsupportedModelError2 as isUnsupportedModelError,
|
|
93
97
|
isVcsInitNotSupportedError2 as isVcsInitNotSupportedError,
|
|
94
|
-
isWorktreeError2 as isWorktreeError
|
|
98
|
+
isWorktreeError2 as isWorktreeError,
|
|
99
|
+
mediaHashFromUri2 as mediaHashFromUri,
|
|
100
|
+
withMediaRefs2 as withMediaRefs
|
|
95
101
|
};
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import type { make, RequestOptions } from "./client.js";
|
|
2
|
+
import type { MessageListInput, SessionInboxListInput, SessionMessageGetInput } from "./generated/types.js";
|
|
3
|
+
/** `mediaRefs: false` reads stored media as inline bytes, for callers such as export that need self-contained messages. */
|
|
4
|
+
export type MediaRequestOptions = RequestOptions & {
|
|
5
|
+
readonly mediaRefs?: false;
|
|
6
|
+
};
|
|
7
|
+
/** The blob hash in a `media:<hash>` ref, the only form the server sends stored media in. */
|
|
8
|
+
export declare function mediaHashFromUri(uri: string | undefined): string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Opts a client into the experimental `experimental-media-uri` capability: while `experimental.media_blob` is on,
|
|
11
|
+
* stored media comes back as `media:<hash>` refs, whose bytes `experimental.media.get` reads.
|
|
12
|
+
*
|
|
13
|
+
* Only the message and inbox reads can return refs, so only they carry the capability.
|
|
14
|
+
* A custom header makes a cross-origin request preflighted, which every other request must keep avoiding.
|
|
15
|
+
*/
|
|
16
|
+
export declare function withMediaRefs(api: ReturnType<typeof make>): {
|
|
17
|
+
server: {
|
|
18
|
+
info: (requestOptions?: RequestOptions) => Promise<import("./index.js").ServerInfo>;
|
|
19
|
+
pair: (requestOptions?: RequestOptions) => Promise<import("./index.js").PairingCode>;
|
|
20
|
+
connect: (input: import("./index.js").ServerConnectInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PairingSession>;
|
|
21
|
+
};
|
|
22
|
+
location: {
|
|
23
|
+
get: (input?: import("./index.js").LocationGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").LocationPublicInfo>;
|
|
24
|
+
reload: (requestOptions?: RequestOptions) => Promise<void>;
|
|
25
|
+
};
|
|
26
|
+
agent: {
|
|
27
|
+
list: (input?: import("./index.js").AgentListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").AgentListOutput>;
|
|
28
|
+
get: (input: import("./index.js").AgentGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").AgentGetOutput>;
|
|
29
|
+
};
|
|
30
|
+
plugin: {
|
|
31
|
+
list: (input?: import("./index.js").PluginListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PluginListOutput>;
|
|
32
|
+
gui: (input: import("./index.js").PluginGuiInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PluginGuiOutput>;
|
|
33
|
+
check: (input?: import("./index.js").PluginCheckInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PluginCheckOutput>;
|
|
34
|
+
update: (input: import("./index.js").PluginUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
experimental: {
|
|
37
|
+
session: {
|
|
38
|
+
stats: (input?: import("./index.js").ExperimentalSessionStatsInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionStatsInfo>;
|
|
39
|
+
import: (input: import("./index.js").ExperimentalSessionImportInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionInfo>;
|
|
40
|
+
export: (input: import("./index.js").ExperimentalSessionExportInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionTransferData>;
|
|
41
|
+
skill: (input: import("./index.js").ExperimentalSessionSkillInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
42
|
+
wait: (input: import("./index.js").ExperimentalSessionWaitInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
43
|
+
instructions: {
|
|
44
|
+
entry: {
|
|
45
|
+
list: (input: import("./index.js").ExperimentalSessionInstructionsEntryListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").InstructionEntryInfo[]>;
|
|
46
|
+
put: (input: import("./index.js").ExperimentalSessionInstructionsEntryPutInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
47
|
+
remove: (input: import("./index.js").ExperimentalSessionInstructionsEntryRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
log: (input: import("./index.js").ExperimentalSessionLogInput, requestOptions?: RequestOptions) => AsyncIterable<import("./index.js").ExperimentalSessionLogOutput>;
|
|
51
|
+
};
|
|
52
|
+
generate: {
|
|
53
|
+
text: (input: import("./index.js").ExperimentalGenerateTextInput, requestOptions?: RequestOptions) => Promise<{
|
|
54
|
+
text: string;
|
|
55
|
+
}>;
|
|
56
|
+
image: (input: import("./index.js").ExperimentalGenerateImageInput, requestOptions?: RequestOptions) => Promise<import("./index.js").GenerateImageResult>;
|
|
57
|
+
decisions: (input: import("./index.js").ExperimentalGenerateDecisionsInput, requestOptions?: RequestOptions) => Promise<import("./index.js").GenerateDecisionResult>;
|
|
58
|
+
};
|
|
59
|
+
voice: {
|
|
60
|
+
models: (requestOptions?: RequestOptions) => Promise<{
|
|
61
|
+
models: Array<import("./index.js").VoiceModel>;
|
|
62
|
+
default?: string | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
session: (input: import("./index.js").ExperimentalVoiceSessionInput, requestOptions?: RequestOptions) => Promise<{
|
|
65
|
+
transport: import("./index.js").VoiceTransport;
|
|
66
|
+
}>;
|
|
67
|
+
};
|
|
68
|
+
integration: {
|
|
69
|
+
wellknown: {
|
|
70
|
+
add: (input: import("./index.js").ExperimentalIntegrationWellknownAddInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
mcp: {
|
|
74
|
+
add: (input: import("./index.js").ExperimentalMcpAddInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
75
|
+
remove: (input: import("./index.js").ExperimentalMcpRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
76
|
+
connect: (input: import("./index.js").ExperimentalMcpConnectInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
77
|
+
disconnect: (input: import("./index.js").ExperimentalMcpDisconnectInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
78
|
+
client: {
|
|
79
|
+
token: (input: import("./index.js").ExperimentalMcpClientTokenInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalMcpClientTokenOutput>;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
file: {
|
|
83
|
+
write: (input: import("./index.js").ExperimentalFileWriteInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalFileWriteOutput>;
|
|
84
|
+
watch: (input: import("./index.js").ExperimentalFileWatchInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
85
|
+
unwatch: (input: import("./index.js").ExperimentalFileUnwatchInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
86
|
+
};
|
|
87
|
+
persistentPty: {
|
|
88
|
+
read: (input: import("./index.js").ExperimentalPersistentPtyReadInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PersistentPtyReadResult | null>;
|
|
89
|
+
list: (input: import("./index.js").ExperimentalPersistentPtyListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PersistentPtyInfo[]>;
|
|
90
|
+
create: (input: import("./index.js").ExperimentalPersistentPtyCreateInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PersistentPtyInfo>;
|
|
91
|
+
shutdown: (requestOptions?: RequestOptions) => Promise<void>;
|
|
92
|
+
handoff: (requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalPersistentPtyHandoffOutput>;
|
|
93
|
+
get: (input: import("./index.js").ExperimentalPersistentPtyGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PersistentPtyInfo>;
|
|
94
|
+
update: (input: import("./index.js").ExperimentalPersistentPtyUpdateInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PersistentPtyInfo>;
|
|
95
|
+
snapshot: (input: import("./index.js").ExperimentalPersistentPtySnapshotInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PersistentPtySnapshot>;
|
|
96
|
+
remove: (input: import("./index.js").ExperimentalPersistentPtyRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
97
|
+
connectToken: (input: import("./index.js").ExperimentalPersistentPtyConnectTokenInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PtyTicketConnectToken>;
|
|
98
|
+
};
|
|
99
|
+
media: {
|
|
100
|
+
get: (input: import("./index.js").ExperimentalMediaGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalMediaGetOutput>;
|
|
101
|
+
};
|
|
102
|
+
schedule: {
|
|
103
|
+
create: (input: import("./index.js").ExperimentalScheduleCreateInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
|
|
104
|
+
list: (input: import("./index.js").ExperimentalScheduleListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ScheduleInfo[]>;
|
|
105
|
+
get: (input: import("./index.js").ExperimentalScheduleGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
|
|
106
|
+
pause: (input: import("./index.js").ExperimentalSchedulePauseInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
|
|
107
|
+
resume: (input: import("./index.js").ExperimentalScheduleResumeInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
|
|
108
|
+
delete: (input: import("./index.js").ExperimentalScheduleDeleteInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
109
|
+
};
|
|
110
|
+
migration: {
|
|
111
|
+
v1: {
|
|
112
|
+
status: (requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalMigrationV1StatusOutput>;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
usage: {
|
|
116
|
+
limits: (input?: import("./index.js").ExperimentalUsageLimitsInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalUsageLimitsOutput>;
|
|
117
|
+
};
|
|
118
|
+
config: {
|
|
119
|
+
update: (input: import("./index.js").ExperimentalConfigUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
model: {
|
|
123
|
+
list: (input?: import("./index.js").ModelListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ModelListOutput>;
|
|
124
|
+
default: (input?: import("./index.js").ModelDefaultInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ModelDefaultOutput>;
|
|
125
|
+
};
|
|
126
|
+
provider: {
|
|
127
|
+
list: (input?: import("./index.js").ProviderListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ProviderListOutput>;
|
|
128
|
+
get: (input: import("./index.js").ProviderGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ProviderGetOutput>;
|
|
129
|
+
};
|
|
130
|
+
credential: {
|
|
131
|
+
list: (requestOptions?: RequestOptions) => Promise<import("./index.js").CredentialEntry[]>;
|
|
132
|
+
create: (input: import("./index.js").CredentialCreateInput, requestOptions?: RequestOptions) => Promise<import("./index.js").CredentialEntry>;
|
|
133
|
+
update: (input: import("./index.js").CredentialUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
134
|
+
activate: (input: import("./index.js").CredentialActivateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
135
|
+
remove: (input: import("./index.js").CredentialRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
136
|
+
};
|
|
137
|
+
project: {
|
|
138
|
+
list: (input?: import("./index.js").ProjectListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ProjectListOutput>;
|
|
139
|
+
update: (input: import("./index.js").ProjectUpdateInput, requestOptions?: RequestOptions) => Promise<import("./index.js").Project>;
|
|
140
|
+
};
|
|
141
|
+
form: {
|
|
142
|
+
list: (input?: import("./index.js").FormListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").FormListOutput>;
|
|
143
|
+
};
|
|
144
|
+
permission: {
|
|
145
|
+
request: {
|
|
146
|
+
list: (input?: import("./index.js").PermissionRequestListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PermissionRequestListOutput>;
|
|
147
|
+
};
|
|
148
|
+
saved: {
|
|
149
|
+
list: (input?: import("./index.js").PermissionSavedListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PermissionSavedInfo[]>;
|
|
150
|
+
update: (input: import("./index.js").PermissionSavedUpdateInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PermissionSavedInfo>;
|
|
151
|
+
remove: (input: import("./index.js").PermissionSavedRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
152
|
+
};
|
|
153
|
+
create: (input: import("./index.js").PermissionCreateInput, requestOptions?: RequestOptions) => Promise<{
|
|
154
|
+
id: import("./index.js").PermissionID;
|
|
155
|
+
effect: import("./index.js").PermissionEffect;
|
|
156
|
+
}>;
|
|
157
|
+
list: (input: import("./index.js").PermissionListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PermissionRequest[]>;
|
|
158
|
+
get: (input: import("./index.js").PermissionGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PermissionRequest>;
|
|
159
|
+
reply: (input: import("./index.js").PermissionReplyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
160
|
+
};
|
|
161
|
+
command: {
|
|
162
|
+
list: (input?: import("./index.js").CommandListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").CommandListOutput>;
|
|
163
|
+
};
|
|
164
|
+
skill: {
|
|
165
|
+
list: (input?: import("./index.js").SkillListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SkillListOutput>;
|
|
166
|
+
};
|
|
167
|
+
pty: {
|
|
168
|
+
list: (input?: import("./index.js").PtyListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PtyListOutput>;
|
|
169
|
+
create: (input?: import("./index.js").PtyCreateInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PtyCreateOutput>;
|
|
170
|
+
get: (input: import("./index.js").PtyGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PtyGetOutput>;
|
|
171
|
+
update: (input: import("./index.js").PtyUpdateInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PtyUpdateOutput>;
|
|
172
|
+
remove: (input: import("./index.js").PtyRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
173
|
+
connect: {
|
|
174
|
+
token: (input: import("./index.js").PtyConnectTokenInput, requestOptions?: RequestOptions) => Promise<import("./index.js").PtyConnectTokenOutput>;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
shell: {
|
|
178
|
+
list: (input?: import("./index.js").ShellListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ShellListOutput>;
|
|
179
|
+
create: (input: import("./index.js").ShellCreateInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ShellCreateOutput>;
|
|
180
|
+
get: (input: import("./index.js").ShellGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ShellGetOutput>;
|
|
181
|
+
output: (input: import("./index.js").ShellOutputInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ShellOutputOutput>;
|
|
182
|
+
remove: (input: import("./index.js").ShellRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
183
|
+
};
|
|
184
|
+
reference: {
|
|
185
|
+
list: (input?: import("./index.js").ReferenceListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ReferenceListOutput>;
|
|
186
|
+
};
|
|
187
|
+
worktree: {
|
|
188
|
+
list: (input: import("./index.js").WorktreeListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").WorktreeList>;
|
|
189
|
+
create: (input: import("./index.js").WorktreeCreateInput, requestOptions?: RequestOptions) => Promise<import("./index.js").WorktreeInfo>;
|
|
190
|
+
remove: (input: import("./index.js").WorktreeRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
191
|
+
refresh: (input: import("./index.js").WorktreeRefreshInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
192
|
+
};
|
|
193
|
+
vcs: {
|
|
194
|
+
init: (input?: import("./index.js").VcsInitInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
195
|
+
get: (input?: import("./index.js").VcsGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").VcsGetOutput>;
|
|
196
|
+
base: (input?: import("./index.js").VcsBaseInput, requestOptions?: RequestOptions) => Promise<import("./index.js").VcsBaseOutput>;
|
|
197
|
+
status: (input?: import("./index.js").VcsStatusInput, requestOptions?: RequestOptions) => Promise<import("./index.js").VcsStatusOutput>;
|
|
198
|
+
branch: {
|
|
199
|
+
list: (input?: import("./index.js").VcsBranchListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").VcsBranchListOutput>;
|
|
200
|
+
};
|
|
201
|
+
diff: (input: import("./index.js").VcsDiffInput, requestOptions?: RequestOptions) => Promise<import("./index.js").VcsDiffOutput>;
|
|
202
|
+
};
|
|
203
|
+
debug: {
|
|
204
|
+
heapDump: (input?: import("./index.js").DebugHeapDumpInput, requestOptions?: RequestOptions) => Promise<import("./index.js").DebugHeapDumpOutput>;
|
|
205
|
+
location: {
|
|
206
|
+
list: (requestOptions?: RequestOptions) => Promise<import("./index.js").DebugLocationListOutput>;
|
|
207
|
+
evict: (input?: import("./index.js").DebugLocationEvictInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
websearch: {
|
|
211
|
+
providers: (input?: import("./index.js").WebsearchProvidersInput, requestOptions?: RequestOptions) => Promise<import("./index.js").WebsearchProvidersOutput>;
|
|
212
|
+
query: (input: import("./index.js").WebsearchQueryInput, requestOptions?: RequestOptions) => Promise<import("./index.js").WebsearchQueryOutput>;
|
|
213
|
+
};
|
|
214
|
+
generate: {
|
|
215
|
+
text: (input: import("./index.js").ExperimentalGenerateTextInput, requestOptions?: RequestOptions) => Promise<{
|
|
216
|
+
text: string;
|
|
217
|
+
}>;
|
|
218
|
+
image: (input: import("./index.js").ExperimentalGenerateImageInput, requestOptions?: RequestOptions) => Promise<import("./index.js").GenerateImageResult>;
|
|
219
|
+
decisions: (input: import("./index.js").ExperimentalGenerateDecisionsInput, requestOptions?: RequestOptions) => Promise<import("./index.js").GenerateDecisionResult>;
|
|
220
|
+
};
|
|
221
|
+
voice: {
|
|
222
|
+
models: (requestOptions?: RequestOptions) => Promise<{
|
|
223
|
+
models: Array<import("./index.js").VoiceModel>;
|
|
224
|
+
default?: string | undefined;
|
|
225
|
+
}>;
|
|
226
|
+
session: (input: import("./index.js").ExperimentalVoiceSessionInput, requestOptions?: RequestOptions) => Promise<{
|
|
227
|
+
transport: import("./index.js").VoiceTransport;
|
|
228
|
+
}>;
|
|
229
|
+
};
|
|
230
|
+
integration: {
|
|
231
|
+
list: (input?: import("./index.js").IntegrationListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").IntegrationListOutput>;
|
|
232
|
+
get: (input: import("./index.js").IntegrationGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").IntegrationGetOutput>;
|
|
233
|
+
connect: {
|
|
234
|
+
key: (input: import("./index.js").IntegrationConnectKeyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
235
|
+
external: (input: import("./index.js").IntegrationConnectExternalInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
236
|
+
};
|
|
237
|
+
oauth: {
|
|
238
|
+
connect: (input: import("./index.js").IntegrationOauthConnectInput, requestOptions?: RequestOptions) => Promise<import("./index.js").IntegrationOauthConnectOutput>;
|
|
239
|
+
status: (input: import("./index.js").IntegrationOauthStatusInput, requestOptions?: RequestOptions) => Promise<import("./index.js").IntegrationOauthStatusOutput>;
|
|
240
|
+
complete: (input: import("./index.js").IntegrationOauthCompleteInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
241
|
+
cancel: (input: import("./index.js").IntegrationOauthCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
242
|
+
};
|
|
243
|
+
command: {
|
|
244
|
+
connect: (input: import("./index.js").IntegrationCommandConnectInput, requestOptions?: RequestOptions) => Promise<import("./index.js").IntegrationCommandConnectOutput>;
|
|
245
|
+
status: (input: import("./index.js").IntegrationCommandStatusInput, requestOptions?: RequestOptions) => Promise<import("./index.js").IntegrationCommandStatusOutput>;
|
|
246
|
+
cancel: (input: import("./index.js").IntegrationCommandCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
247
|
+
};
|
|
248
|
+
wellknown: {
|
|
249
|
+
add: (input: import("./index.js").ExperimentalIntegrationWellknownAddInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
mcp: {
|
|
253
|
+
list: (input?: import("./index.js").McpListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").McpListOutput>;
|
|
254
|
+
resource: {
|
|
255
|
+
catalog: (input?: import("./index.js").McpResourceCatalogInput, requestOptions?: RequestOptions) => Promise<import("./index.js").McpResourceCatalogOutput>;
|
|
256
|
+
};
|
|
257
|
+
add: (input: import("./index.js").ExperimentalMcpAddInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
258
|
+
remove: (input: import("./index.js").ExperimentalMcpRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
259
|
+
connect: (input: import("./index.js").ExperimentalMcpConnectInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
260
|
+
disconnect: (input: import("./index.js").ExperimentalMcpDisconnectInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
261
|
+
client: {
|
|
262
|
+
token: (input: import("./index.js").ExperimentalMcpClientTokenInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalMcpClientTokenOutput>;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
file: {
|
|
266
|
+
read: (input: import("./index.js").FileReadInput, requestOptions?: RequestOptions) => Promise<import("./index.js").FileReadOutput>;
|
|
267
|
+
list: (input?: import("./index.js").FileListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").FileListOutput>;
|
|
268
|
+
find: (input: import("./index.js").FileFindInput, requestOptions?: RequestOptions) => Promise<import("./index.js").FileFindOutput>;
|
|
269
|
+
write: (input: import("./index.js").ExperimentalFileWriteInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalFileWriteOutput>;
|
|
270
|
+
watch: (input: import("./index.js").ExperimentalFileWatchInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
271
|
+
unwatch: (input: import("./index.js").ExperimentalFileUnwatchInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
272
|
+
};
|
|
273
|
+
migration: {
|
|
274
|
+
v1: {
|
|
275
|
+
status: (requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalMigrationV1StatusOutput>;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
usage: {
|
|
279
|
+
limits: (input?: import("./index.js").ExperimentalUsageLimitsInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ExperimentalUsageLimitsOutput>;
|
|
280
|
+
};
|
|
281
|
+
config: {
|
|
282
|
+
get: (input?: import("./index.js").ConfigGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").ConfigGetOutput>;
|
|
283
|
+
shells: (requestOptions?: RequestOptions) => Promise<import("./index.js").ConfigShellsOutput>;
|
|
284
|
+
update: (input: import("./index.js").ExperimentalConfigUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
285
|
+
};
|
|
286
|
+
rpc: import("./rpc.js").RpcApi<import("./rpc.js").RpcCallOptions> & {
|
|
287
|
+
call: (input: import("./index.js").RpcCallInput, requestOptions?: RequestOptions) => Promise<import("./index.js").RpcOutput>;
|
|
288
|
+
};
|
|
289
|
+
event: {
|
|
290
|
+
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?: import("./api.js").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)>;
|
|
291
|
+
};
|
|
292
|
+
message: {
|
|
293
|
+
list: (input: MessageListInput, options?: MediaRequestOptions) => Promise<import("./index.js").SessionMessagesResponse>;
|
|
294
|
+
};
|
|
295
|
+
session: {
|
|
296
|
+
list: (input?: import("./index.js").SessionListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionsResponse>;
|
|
297
|
+
create: (input?: import("./index.js").SessionCreateInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionInfo>;
|
|
298
|
+
active: (requestOptions?: RequestOptions) => Promise<{
|
|
299
|
+
[x: string]: import("./index.js").SessionActive;
|
|
300
|
+
}>;
|
|
301
|
+
get: (input: import("./index.js").SessionGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionInfo>;
|
|
302
|
+
remove: (input: import("./index.js").SessionRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
303
|
+
fork: (input: import("./index.js").SessionForkInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionInfo>;
|
|
304
|
+
switchAgent: (input: import("./index.js").SessionSwitchAgentInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
305
|
+
switchModel: (input: import("./index.js").SessionSwitchModelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
306
|
+
update: (input: import("./index.js").SessionUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
307
|
+
move: (input: import("./index.js").SessionMoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
308
|
+
prompt: (input: import("./index.js").SessionPromptInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionInboxUser>;
|
|
309
|
+
command: (input: import("./index.js").SessionCommandInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
310
|
+
synthetic: (input: import("./index.js").SessionSyntheticInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionInboxSynthetic>;
|
|
311
|
+
shell: (input: import("./index.js").SessionShellInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
312
|
+
compact: (input: import("./index.js").SessionCompactInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionInboxCompaction>;
|
|
313
|
+
revert: {
|
|
314
|
+
stage: (input: import("./index.js").SessionRevertStageInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionRevert>;
|
|
315
|
+
clear: (input: import("./index.js").SessionRevertClearInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
316
|
+
commit: (input: import("./index.js").SessionRevertCommitInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
317
|
+
};
|
|
318
|
+
context: (input: import("./index.js").SessionContextInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionMessageInfo[]>;
|
|
319
|
+
diff: (input: import("./index.js").SessionDiffInput, requestOptions?: RequestOptions) => Promise<import("./index.js").FileDiffInfo[]>;
|
|
320
|
+
generate: (input: import("./index.js").SessionGenerateInput, requestOptions?: RequestOptions) => Promise<{
|
|
321
|
+
text: string;
|
|
322
|
+
}>;
|
|
323
|
+
interrupt: (input: import("./index.js").SessionInterruptInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionInterruptResponse>;
|
|
324
|
+
background: (input: import("./index.js").SessionBackgroundInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
325
|
+
form: {
|
|
326
|
+
list: (input: import("./index.js").SessionFormListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").FormInfo[]>;
|
|
327
|
+
create: (input: import("./index.js").SessionFormCreateInput, requestOptions?: RequestOptions) => Promise<import("./index.js").FormInfo>;
|
|
328
|
+
get: (input: import("./index.js").SessionFormGetInput, requestOptions?: RequestOptions) => Promise<import("./index.js").FormDetail>;
|
|
329
|
+
reply: (input: import("./index.js").SessionFormReplyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
330
|
+
cancel: (input: import("./index.js").SessionFormCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
331
|
+
};
|
|
332
|
+
environment: (input: import("./index.js").SessionEnvironmentInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
333
|
+
view: (input: import("./index.js").SessionViewInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
334
|
+
stats: (input?: import("./index.js").ExperimentalSessionStatsInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionStatsInfo>;
|
|
335
|
+
import: (input: import("./index.js").ExperimentalSessionImportInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionInfo>;
|
|
336
|
+
export: (input: import("./index.js").ExperimentalSessionExportInput, requestOptions?: RequestOptions) => Promise<import("./index.js").SessionTransferData>;
|
|
337
|
+
skill: (input: import("./index.js").ExperimentalSessionSkillInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
338
|
+
wait: (input: import("./index.js").ExperimentalSessionWaitInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
339
|
+
instructions: {
|
|
340
|
+
entry: {
|
|
341
|
+
list: (input: import("./index.js").ExperimentalSessionInstructionsEntryListInput, requestOptions?: RequestOptions) => Promise<import("./index.js").InstructionEntryInfo[]>;
|
|
342
|
+
put: (input: import("./index.js").ExperimentalSessionInstructionsEntryPutInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
343
|
+
remove: (input: import("./index.js").ExperimentalSessionInstructionsEntryRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
log: (input: import("./index.js").ExperimentalSessionLogInput, requestOptions?: RequestOptions) => AsyncIterable<import("./index.js").ExperimentalSessionLogOutput>;
|
|
347
|
+
message: {
|
|
348
|
+
get: (input: SessionMessageGetInput, options?: MediaRequestOptions) => Promise<import("./index.js").SessionMessageAgentSelected | import("./index.js").SessionMessageAssistant | import("./index.js").SessionMessageCompactionCompleted | import("./index.js").SessionMessageCompactionFailed | import("./index.js").SessionMessageCompactionRunning | import("./index.js").SessionMessageIdle | import("./index.js").SessionMessageLocationSwitched | import("./index.js").SessionMessageModelSelected | import("./index.js").SessionMessageShell | import("./index.js").SessionMessageSkill | import("./index.js").SessionMessageSynthetic | import("./index.js").SessionMessageSystem | import("./index.js").SessionMessageUser>;
|
|
349
|
+
};
|
|
350
|
+
inbox: {
|
|
351
|
+
cancel: (input: import("./index.js").SessionInboxCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
352
|
+
update: (input: import("./index.js").SessionInboxUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
353
|
+
list: (input: SessionInboxListInput, options?: MediaRequestOptions) => Promise<import("./index.js").SessionInboxInfo[]>;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
};
|
package/dist/promise/service.js
CHANGED
package/dist/pty-handoff.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
complete2,
|
|
5
5
|
clear2,
|
|
6
6
|
exports_pty_handoff
|
|
7
|
-
} from "./chunks/rpc-runtime-
|
|
7
|
+
} from "./chunks/rpc-runtime-rrq6nhff.js";
|
|
8
8
|
import"./chunks/rpc-runtime-8ye1ye6f.js";
|
|
9
9
|
import"./chunks/rpc-runtime-xgnj2w4v.js";
|
|
10
10
|
import"./chunks/rpc-runtime-sxt88q69.js";
|
package/dist/shared-events.js
CHANGED
package/dist/solid/data.js
CHANGED
|
@@ -3,14 +3,15 @@ import {
|
|
|
3
3
|
locationKey2,
|
|
4
4
|
createData2
|
|
5
5
|
} from "../chunks/rpc-runtime-f6hq5twr.js";
|
|
6
|
-
import"../chunks/rpc-runtime-
|
|
7
|
-
import"../chunks/rpc-runtime-
|
|
8
|
-
import"../chunks/rpc-runtime-sqcsh66p.js";
|
|
9
|
-
import"../chunks/rpc-runtime-kdshn947.js";
|
|
6
|
+
import"../chunks/rpc-runtime-6r38tsk5.js";
|
|
7
|
+
import"../chunks/rpc-runtime-kwv4hea0.js";
|
|
10
8
|
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
11
|
-
import"../chunks/rpc-runtime-
|
|
9
|
+
import"../chunks/rpc-runtime-0e3ghr9a.js";
|
|
12
10
|
import"../chunks/rpc-runtime-nwcpakzx.js";
|
|
11
|
+
import"../chunks/rpc-runtime-kdshn947.js";
|
|
13
12
|
import"../chunks/rpc-runtime-cvg5j6d1.js";
|
|
13
|
+
import"../chunks/rpc-runtime-mwrzahmf.js";
|
|
14
|
+
import"../chunks/rpc-runtime-gecjxyvt.js";
|
|
14
15
|
export {
|
|
15
16
|
createData2 as createData,
|
|
16
17
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import"../chunks/rpc-runtime-nwcpakzx.js";
|
|
2
|
-
import"../chunks/rpc-runtime-
|
|
2
|
+
import"../chunks/rpc-runtime-0e3ghr9a.js";
|
|
3
3
|
import"../chunks/rpc-runtime-cvg5j6d1.js";
|
|
4
4
|
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
5
|
-
import"../chunks/rpc-runtime-
|
|
5
|
+
import"../chunks/rpc-runtime-gecjxyvt.js";
|
|
6
6
|
import"../chunks/rpc-runtime-kdshn947.js";
|
|
7
|
-
import"../chunks/rpc-runtime-
|
|
8
|
-
import"../chunks/rpc-runtime-
|
|
7
|
+
import"../chunks/rpc-runtime-kwv4hea0.js";
|
|
8
|
+
import"../chunks/rpc-runtime-mwrzahmf.js";
|
|
9
|
+
import"../chunks/rpc-runtime-6r38tsk5.js";
|
|
9
10
|
import {
|
|
10
11
|
settleMs2,
|
|
11
12
|
locationKey2,
|
|
@@ -17,9 +18,12 @@ import {
|
|
|
17
18
|
createClientConnection2
|
|
18
19
|
} from "../chunks/rpc-runtime-ydhz1zrh.js";
|
|
19
20
|
import {
|
|
21
|
+
PersistentPtyMessage2,
|
|
22
|
+
decodePersistentPtyMessage2,
|
|
23
|
+
persistentPtyFrame2,
|
|
20
24
|
createPtyClient2,
|
|
21
25
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/rpc-runtime-
|
|
26
|
+
} from "../chunks/rpc-runtime-v1h0xkyr.js";
|
|
23
27
|
import {
|
|
24
28
|
createSessionRetention2
|
|
25
29
|
} from "../chunks/rpc-runtime-6mq2wh8y.js";
|
|
@@ -27,14 +31,17 @@ import {
|
|
|
27
31
|
lastAssistantWithUsage2
|
|
28
32
|
} from "../chunks/rpc-runtime-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/rpc-runtime-
|
|
7
|
+
} from "../chunks/rpc-runtime-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/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": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-286",
|
|
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": "0.0.0-dev-
|
|
67
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
66
|
+
"@opencode/schema": "0.0.0-dev-286",
|
|
67
|
+
"@opencode/protocol": "0.0.0-dev-286"
|
|
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": "0.0.0-dev-
|
|
84
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-286",
|
|
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
|