@opencode/client 2.0.31 → 2.1.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/{contract-2ny4vxct.js → rpc-runtime-2ny4vxct.js} +2 -2
- package/dist/chunks/{contract-csw6v8a4.js → rpc-runtime-3d7b8k62.js} +4 -4
- package/dist/chunks/{contract-m77rqa4a.js → rpc-runtime-61wt4y9h.js} +22 -17
- package/dist/chunks/{contract-1y4a697q.js → rpc-runtime-6vp15eh6.js} +1 -1
- package/dist/chunks/{contract-j4tgja9b.js → rpc-runtime-91bd4p6h.js} +1 -1
- package/dist/chunks/{contract-vt9jbch8.js → rpc-runtime-ezt8t3fk.js} +2 -1
- package/dist/chunks/{contract-frbwqjmf.js → rpc-runtime-frbwqjmf.js} +1 -1
- package/dist/chunks/{contract-qfk0hgz0.js → rpc-runtime-nv358xrg.js} +27 -3
- package/dist/chunks/{contract-9swsjjg0.js → rpc-runtime-q4y9w4td.js} +24 -5
- package/dist/chunks/{contract-t1xa31vm.js → rpc-runtime-t1xa31vm.js} +1 -1
- package/dist/chunks/{contract-4yh01835.js → rpc-runtime-tjkwftgd.js} +5 -5
- package/dist/chunks/{contract-w1w809zr.js → rpc-runtime-w1w809zr.js} +2 -2
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +91 -29
- package/dist/effect/client.d.ts +1389 -1361
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +1279 -1251
- package/dist/effect/generated/client.js +3 -3
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +2 -2
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +13 -7
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +8 -2
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +6 -4
- package/dist/promise/generated/types.d.ts +286 -1429
- package/dist/promise/generated/types.js +3 -1
- package/dist/promise/index.js +10 -8
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +1 -1
- package/dist/rpc-runtime.d.ts +5 -5
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.d.ts +5 -5
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.js +12 -12
- package/dist/solid/pty.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +6 -6
- /package/dist/chunks/{contract-6mptkzbc.js → rpc-runtime-6mptkzbc.js} +0 -0
- /package/dist/chunks/{contract-7f0py9js.js → rpc-runtime-7f0py9js.js} +0 -0
- /package/dist/chunks/{contract-8s2anffy.js → rpc-runtime-8s2anffy.js} +0 -0
- /package/dist/chunks/{contract-9rqn6x4v.js → rpc-runtime-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{contract-gne7h7mq.js → rpc-runtime-gne7h7mq.js} +0 -0
- /package/dist/chunks/{contract-js54wxgp.js → rpc-runtime-js54wxgp.js} +0 -0
- /package/dist/chunks/{contract-m2eywc8w.js → rpc-runtime-m2eywc8w.js} +0 -0
- /package/dist/chunks/{contract-qav6mfdz.js → rpc-runtime-qav6mfdz.js} +0 -0
- /package/dist/chunks/{contract-sxt88q69.js → rpc-runtime-sxt88q69.js} +0 -0
- /package/dist/chunks/{contract-ve4aws36.js → rpc-runtime-ve4aws36.js} +0 -0
- /package/dist/chunks/{contract-vmytr4q8.js → rpc-runtime-vmytr4q8.js} +0 -0
- /package/dist/chunks/{contract-vyas3vgt.js → rpc-runtime-vyas3vgt.js} +0 -0
- /package/dist/chunks/{contract-xgnj2w4v.js → rpc-runtime-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{contract-ydhz1zrh.js → rpc-runtime-ydhz1zrh.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make5
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
3
|
+
} from "../../chunks/rpc-runtime-q4y9w4td.js";
|
|
4
|
+
import"../../chunks/rpc-runtime-7f0py9js.js";
|
|
5
|
+
import"../../chunks/rpc-runtime-vmytr4q8.js";
|
|
6
6
|
export {
|
|
7
7
|
make5 as make
|
|
8
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/rpc-runtime-6mptkzbc.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client4
|
|
4
|
-
} from "../../chunks/
|
|
4
|
+
} from "../../chunks/rpc-runtime-q4y9w4td.js";
|
|
5
5
|
import {
|
|
6
6
|
ClientError3
|
|
7
|
-
} from "../../chunks/
|
|
8
|
-
import"../../chunks/
|
|
7
|
+
} from "../../chunks/rpc-runtime-7f0py9js.js";
|
|
8
|
+
import"../../chunks/rpc-runtime-vmytr4q8.js";
|
|
9
9
|
export {
|
|
10
10
|
ClientError3 as ClientError,
|
|
11
11
|
exports_client4 as OpenCode
|
package/dist/effect/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError3
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/rpc-runtime-7f0py9js.js";
|
|
4
|
+
import"../chunks/rpc-runtime-vmytr4q8.js";
|
|
5
|
+
import"../chunks/rpc-runtime-q4y9w4td.js";
|
|
6
|
+
import"../chunks/rpc-runtime-6mptkzbc.js";
|
|
7
|
+
import"../chunks/rpc-runtime-frbwqjmf.js";
|
|
8
|
+
import"../chunks/rpc-runtime-t1xa31vm.js";
|
|
9
|
+
import"../chunks/rpc-runtime-w1w809zr.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_client3
|
|
12
|
-
} from "../chunks/
|
|
12
|
+
} from "../chunks/rpc-runtime-tjkwftgd.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
package/dist/effect/rpc.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
make6,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/rpc-runtime-w1w809zr.js";
|
|
6
|
+
import"../chunks/rpc-runtime-t1xa31vm.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
package/dist/effect/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/
|
|
4
|
+
} from "../chunks/rpc-runtime-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/rpc-runtime-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/rpc-runtime-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
prepare2,
|
|
14
14
|
environment2,
|
|
15
15
|
complete2,
|
|
16
16
|
clear2
|
|
17
|
-
} from "../chunks/
|
|
17
|
+
} from "../chunks/rpc-runtime-91bd4p6h.js";
|
|
18
18
|
import {
|
|
19
19
|
decide2,
|
|
20
20
|
fallback2,
|
|
21
21
|
same2,
|
|
22
22
|
probeResult2,
|
|
23
23
|
headers2
|
|
24
|
-
} from "../chunks/
|
|
25
|
-
import"../chunks/
|
|
24
|
+
} from "../chunks/rpc-runtime-2ny4vxct.js";
|
|
25
|
+
import"../chunks/rpc-runtime-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/effect/service.ts
|
|
28
28
|
import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
|
package/dist/promise/client.d.ts
CHANGED
|
@@ -4,12 +4,6 @@ import { OpenCode } from "./generated/index.js";
|
|
|
4
4
|
import type { ClientOptions } from "./generated/client.js";
|
|
5
5
|
export type { ClientOptions, RequestOptions } from "./generated/client.js";
|
|
6
6
|
export declare function make(options: ClientOptions): {
|
|
7
|
-
rpc: import("./rpc.js").RpcApi<import("./rpc.js").RpcCallOptions> & {
|
|
8
|
-
call: (input: import("./index.js").RpcCallInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").RpcOutput>;
|
|
9
|
-
};
|
|
10
|
-
event: {
|
|
11
|
-
subscribe(options?: SharedEvents.SubscribeOptions): AsyncIterable<import("./index.js").V2Event>;
|
|
12
|
-
};
|
|
13
7
|
server: {
|
|
14
8
|
info: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ServerInfo>;
|
|
15
9
|
pair: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PairingCode>;
|
|
@@ -77,7 +71,7 @@ export declare function make(options: ClientOptions): {
|
|
|
77
71
|
interrupt: (input: import("./index.js").SessionInterruptInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionInterruptResponse>;
|
|
78
72
|
background: (input: import("./index.js").SessionBackgroundInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
79
73
|
message: {
|
|
80
|
-
get: (input: import("./index.js").SessionMessageGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionMessageAgentSelected | import("./index.js").
|
|
74
|
+
get: (input: import("./index.js").SessionMessageGetInput, requestOptions?: OpenCode.RequestOptions) => 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>;
|
|
81
75
|
};
|
|
82
76
|
form: {
|
|
83
77
|
list: (input: import("./index.js").SessionFormListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FormInfo[]>;
|
|
@@ -101,6 +95,11 @@ export declare function make(options: ClientOptions): {
|
|
|
101
95
|
text: string;
|
|
102
96
|
}>;
|
|
103
97
|
};
|
|
98
|
+
voice: {
|
|
99
|
+
session: (input: import("./index.js").VoiceSessionInput, requestOptions?: OpenCode.RequestOptions) => Promise<{
|
|
100
|
+
transport: import("./index.js").VoiceTransport;
|
|
101
|
+
}>;
|
|
102
|
+
};
|
|
104
103
|
provider: {
|
|
105
104
|
list: (input?: import("./index.js").ProviderListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ProviderListOutput>;
|
|
106
105
|
get: (input: import("./index.js").ProviderGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ProviderGetOutput>;
|
|
@@ -157,6 +156,7 @@ export declare function make(options: ClientOptions): {
|
|
|
157
156
|
};
|
|
158
157
|
saved: {
|
|
159
158
|
list: (input?: import("./index.js").PermissionSavedListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PermissionSavedInfo[]>;
|
|
159
|
+
update: (input: import("./index.js").PermissionSavedUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PermissionSavedInfo>;
|
|
160
160
|
remove: (input: import("./index.js").PermissionSavedRemoveInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
161
161
|
};
|
|
162
162
|
create: (input: import("./index.js").PermissionCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<{
|
|
@@ -249,4 +249,10 @@ export declare function make(options: ClientOptions): {
|
|
|
249
249
|
shells: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ConfigShellsOutput>;
|
|
250
250
|
update: (input: import("./index.js").ConfigUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
251
251
|
};
|
|
252
|
+
rpc: import("./rpc.js").RpcApi<import("./rpc.js").RpcCallOptions> & {
|
|
253
|
+
call: (input: import("./index.js").RpcCallInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").RpcOutput>;
|
|
254
|
+
};
|
|
255
|
+
event: {
|
|
256
|
+
subscribe(options?: SharedEvents.SubscribeOptions): AsyncIterable<import("./index.js").V2Event>;
|
|
257
|
+
};
|
|
252
258
|
};
|
package/dist/promise/client.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/rpc-runtime-3d7b8k62.js";
|
|
5
|
+
import"../chunks/rpc-runtime-6vp15eh6.js";
|
|
6
|
+
import"../chunks/rpc-runtime-vyas3vgt.js";
|
|
7
|
+
import"../chunks/rpc-runtime-nv358xrg.js";
|
|
8
|
+
import"../chunks/rpc-runtime-js54wxgp.js";
|
|
9
|
+
import"../chunks/rpc-runtime-ezt8t3fk.js";
|
|
10
|
+
import"../chunks/rpc-runtime-frbwqjmf.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_client as OpenCode,
|
|
13
13
|
make2 as make
|
|
@@ -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, 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, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, 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, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
|
|
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, 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, 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, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, 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, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -78,7 +78,7 @@ export declare function make(options: ClientOptions): {
|
|
|
78
78
|
interrupt: (input: SessionInterruptInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInterruptResponse>;
|
|
79
79
|
background: (input: SessionBackgroundInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
80
80
|
message: {
|
|
81
|
-
get: (input: SessionMessageGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessageAgentSelected | import("./types.js").
|
|
81
|
+
get: (input: SessionMessageGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessageAgentSelected | import("./types.js").SessionMessageAssistant | import("./types.js").SessionMessageCompactionCompleted | import("./types.js").SessionMessageCompactionFailed | import("./types.js").SessionMessageCompactionRunning | import("./types.js").SessionMessageIdle | import("./types.js").SessionMessageLocationSwitched | import("./types.js").SessionMessageModelSelected | import("./types.js").SessionMessageShell | import("./types.js").SessionMessageSkill | import("./types.js").SessionMessageSynthetic | import("./types.js").SessionMessageSystem | import("./types.js").SessionMessageUser>;
|
|
82
82
|
};
|
|
83
83
|
form: {
|
|
84
84
|
list: (input: SessionFormListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FormInfo[]>;
|
|
@@ -102,6 +102,11 @@ export declare function make(options: ClientOptions): {
|
|
|
102
102
|
text: string;
|
|
103
103
|
}>;
|
|
104
104
|
};
|
|
105
|
+
voice: {
|
|
106
|
+
session: (input: VoiceSessionInput, requestOptions?: RequestOptions) => Promise<{
|
|
107
|
+
transport: import("./types.js").VoiceTransport;
|
|
108
|
+
}>;
|
|
109
|
+
};
|
|
105
110
|
provider: {
|
|
106
111
|
list: (input?: ProviderListInput, requestOptions?: RequestOptions) => Promise<ProviderListOutput>;
|
|
107
112
|
get: (input: ProviderGetInput, requestOptions?: RequestOptions) => Promise<ProviderGetOutput>;
|
|
@@ -158,6 +163,7 @@ export declare function make(options: ClientOptions): {
|
|
|
158
163
|
};
|
|
159
164
|
saved: {
|
|
160
165
|
list: (input?: PermissionSavedListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PermissionSavedInfo[]>;
|
|
166
|
+
update: (input: PermissionSavedUpdateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PermissionSavedInfo>;
|
|
161
167
|
remove: (input: PermissionSavedRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
162
168
|
};
|
|
163
169
|
create: (input: PermissionCreateInput, requestOptions?: RequestOptions) => Promise<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/rpc-runtime-vyas3vgt.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client2
|
|
4
|
-
} from "../../chunks/
|
|
4
|
+
} from "../../chunks/rpc-runtime-nv358xrg.js";
|
|
5
5
|
import {
|
|
6
6
|
ClientError2
|
|
7
|
-
} from "../../chunks/
|
|
7
|
+
} from "../../chunks/rpc-runtime-js54wxgp.js";
|
|
8
8
|
import {
|
|
9
9
|
isInvalidRequestError2,
|
|
10
10
|
isUnauthorizedError2,
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
isIntegrationMethodNotFoundError2,
|
|
31
31
|
isMcpServerNotFoundError2,
|
|
32
32
|
isProjectNotFoundError2,
|
|
33
|
+
isPermissionSavedNotFoundError2,
|
|
33
34
|
isPermissionNotFoundError2,
|
|
34
35
|
isFileNotFoundError2,
|
|
35
36
|
isRpcError2,
|
|
@@ -39,7 +40,7 @@ import {
|
|
|
39
40
|
isShellNotFoundError2,
|
|
40
41
|
isWorktreeError2,
|
|
41
42
|
isVcsInitNotSupportedError2
|
|
42
|
-
} from "../../chunks/
|
|
43
|
+
} from "../../chunks/rpc-runtime-ezt8t3fk.js";
|
|
43
44
|
export {
|
|
44
45
|
ClientError2 as ClientError,
|
|
45
46
|
exports_client2 as OpenCode,
|
|
@@ -62,6 +63,7 @@ export {
|
|
|
62
63
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
63
64
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
64
65
|
isPermissionNotFoundError2 as isPermissionNotFoundError,
|
|
66
|
+
isPermissionSavedNotFoundError2 as isPermissionSavedNotFoundError,
|
|
65
67
|
isProjectNotFoundError2 as isProjectNotFoundError,
|
|
66
68
|
isProviderNotFoundError2 as isProviderNotFoundError,
|
|
67
69
|
isPtyNotFoundError2 as isPtyNotFoundError,
|