@opencode/client 2.0.30 → 2.0.32
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-1y4a697q.js → shared-events-1y4a697q.js} +1 -1
- package/dist/chunks/{rpc-runtime-2ny4vxct.js → shared-events-2ny4vxct.js} +2 -2
- package/dist/chunks/{rpc-runtime-y2etg5bs.js → shared-events-7f0py9js.js} +2 -2
- package/dist/chunks/{rpc-runtime-h04kvgxv.js → shared-events-d86rytwj.js} +17 -17
- package/dist/chunks/{rpc-runtime-frbwqjmf.js → shared-events-frbwqjmf.js} +1 -1
- package/dist/chunks/{rpc-runtime-ecs5ftka.js → shared-events-hqeq47hr.js} +29 -19
- package/dist/chunks/{rpc-runtime-nwcpakzx.js → shared-events-js54wxgp.js} +2 -2
- package/dist/chunks/{rpc-runtime-m77rqa4a.js → shared-events-m77rqa4a.js} +1 -1
- package/dist/chunks/{rpc-runtime-65kht65h.js → shared-events-mnyft54j.js} +5 -5
- package/dist/chunks/shared-events-q008jpwa.js +30 -0
- package/dist/chunks/{rpc-runtime-0vrbw414.js → shared-events-qf89ssmg.js} +15 -10
- package/dist/chunks/{rpc-runtime-t1xa31vm.js → shared-events-t1xa31vm.js} +1 -1
- package/dist/chunks/{rpc-runtime-5n64m9fb.js → shared-events-td2fzm91.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +29 -0
- package/dist/effect/client.d.ts +3 -0
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +4 -1
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +8 -8
- package/dist/effect/index.js +12 -12
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +5 -0
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +6 -1
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +10 -10
- package/dist/promise/generated/types.d.ts +77 -4
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +13 -13
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +1 -1
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.js +12 -12
- package/dist/solid/pty.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/rpc-runtime-gzm3wsgd.js +0 -30
- /package/dist/chunks/{rpc-runtime-6mptkzbc.js → shared-events-6mptkzbc.js} +0 -0
- /package/dist/chunks/{rpc-runtime-8s2anffy.js → shared-events-8s2anffy.js} +0 -0
- /package/dist/chunks/{rpc-runtime-9rqn6x4v.js → shared-events-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{rpc-runtime-gne7h7mq.js → shared-events-gne7h7mq.js} +0 -0
- /package/dist/chunks/{rpc-runtime-m2eywc8w.js → shared-events-m2eywc8w.js} +0 -0
- /package/dist/chunks/{rpc-runtime-qav6mfdz.js → shared-events-qav6mfdz.js} +0 -0
- /package/dist/chunks/{rpc-runtime-sxt88q69.js → shared-events-sxt88q69.js} +0 -0
- /package/dist/chunks/{rpc-runtime-ve4aws36.js → shared-events-ve4aws36.js} +0 -0
- /package/dist/chunks/{rpc-runtime-vmytr4q8.js → shared-events-vmytr4q8.js} +0 -0
- /package/dist/chunks/{rpc-runtime-vt9jbch8.js → shared-events-vt9jbch8.js} +0 -0
- /package/dist/chunks/{rpc-runtime-vyas3vgt.js → shared-events-vyas3vgt.js} +0 -0
- /package/dist/chunks/{rpc-runtime-xgnj2w4v.js → shared-events-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{rpc-runtime-ydhz1zrh.js → shared-events-ydhz1zrh.js} +0 -0
package/dist/effect/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make5,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/shared-events-mnyft54j.js";
|
|
6
|
+
import"../chunks/shared-events-t1xa31vm.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make5 as make
|
|
11
11
|
};
|
package/dist/effect/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/
|
|
4
|
+
} from "../chunks/shared-events-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/shared-events-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/shared-events-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
prepare2,
|
|
14
14
|
environment2,
|
|
15
15
|
complete2,
|
|
16
16
|
clear2
|
|
17
|
-
} from "../chunks/
|
|
17
|
+
} from "../chunks/shared-events-td2fzm91.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/shared-events-2ny4vxct.js";
|
|
25
|
+
import"../chunks/shared-events-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
|
@@ -101,6 +101,11 @@ export declare function make(options: ClientOptions): {
|
|
|
101
101
|
text: string;
|
|
102
102
|
}>;
|
|
103
103
|
};
|
|
104
|
+
voice: {
|
|
105
|
+
session: (input: import("./index.js").VoiceSessionInput, requestOptions?: OpenCode.RequestOptions) => Promise<{
|
|
106
|
+
transport: import("./index.js").VoiceTransport;
|
|
107
|
+
}>;
|
|
108
|
+
};
|
|
104
109
|
provider: {
|
|
105
110
|
list: (input?: import("./index.js").ProviderListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ProviderListOutput>;
|
|
106
111
|
get: (input: import("./index.js").ProviderGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ProviderGetOutput>;
|
package/dist/promise/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
2
|
+
make2,
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/shared-events-q008jpwa.js";
|
|
5
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
6
|
+
import"../chunks/shared-events-vyas3vgt.js";
|
|
7
|
+
import"../chunks/shared-events-vt9jbch8.js";
|
|
8
|
+
import"../chunks/shared-events-hqeq47hr.js";
|
|
9
|
+
import"../chunks/shared-events-js54wxgp.js";
|
|
10
|
+
import"../chunks/shared-events-frbwqjmf.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
exports_client as OpenCode,
|
|
13
|
+
make2 as make
|
|
14
14
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, 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, 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;
|
|
@@ -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>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
2
|
+
make3
|
|
3
|
+
} from "../../chunks/shared-events-hqeq47hr.js";
|
|
4
|
+
import"../../chunks/shared-events-js54wxgp.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
make3 as make
|
|
7
7
|
};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import"../../chunks/
|
|
2
|
-
import {
|
|
3
|
-
exports_client4
|
|
4
|
-
} from "../../chunks/rpc-runtime-ecs5ftka.js";
|
|
5
|
-
import {
|
|
6
|
-
ClientError3
|
|
7
|
-
} from "../../chunks/rpc-runtime-nwcpakzx.js";
|
|
1
|
+
import"../../chunks/shared-events-vyas3vgt.js";
|
|
8
2
|
import {
|
|
9
3
|
isInvalidRequestError2,
|
|
10
4
|
isUnauthorizedError2,
|
|
@@ -39,10 +33,16 @@ import {
|
|
|
39
33
|
isShellNotFoundError2,
|
|
40
34
|
isWorktreeError2,
|
|
41
35
|
isVcsInitNotSupportedError2
|
|
42
|
-
} from "../../chunks/
|
|
36
|
+
} from "../../chunks/shared-events-vt9jbch8.js";
|
|
37
|
+
import {
|
|
38
|
+
exports_client2
|
|
39
|
+
} from "../../chunks/shared-events-hqeq47hr.js";
|
|
40
|
+
import {
|
|
41
|
+
ClientError2
|
|
42
|
+
} from "../../chunks/shared-events-js54wxgp.js";
|
|
43
43
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
ClientError2 as ClientError,
|
|
45
|
+
exports_client2 as OpenCode,
|
|
46
46
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
47
47
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
48
48
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
@@ -230,6 +230,7 @@ export type ModelCapabilities = {
|
|
|
230
230
|
tools: boolean;
|
|
231
231
|
input: Array<string>;
|
|
232
232
|
output: Array<string>;
|
|
233
|
+
temperature?: boolean;
|
|
233
234
|
};
|
|
234
235
|
export type MoneyUSDPerMillionTokens = number;
|
|
235
236
|
export type GenerateTextResponse = {
|
|
@@ -237,6 +238,16 @@ export type GenerateTextResponse = {
|
|
|
237
238
|
text: string;
|
|
238
239
|
};
|
|
239
240
|
};
|
|
241
|
+
export type VoiceWebRTCTransport = {
|
|
242
|
+
type: "webrtc";
|
|
243
|
+
sdp: string;
|
|
244
|
+
};
|
|
245
|
+
export type VoiceWebSocketTransport = {
|
|
246
|
+
type: "websocket";
|
|
247
|
+
url: string;
|
|
248
|
+
token: string;
|
|
249
|
+
expiresAt: number;
|
|
250
|
+
};
|
|
240
251
|
export type IntegrationID = string;
|
|
241
252
|
export type IntegrationMethodID = string;
|
|
242
253
|
export type IntegrationEnvMethod = {
|
|
@@ -436,10 +447,16 @@ export type McpProtocol = "legacy" | "auto" | "2026-07-28";
|
|
|
436
447
|
export type ConfigWorktree = {
|
|
437
448
|
directory: string;
|
|
438
449
|
};
|
|
439
|
-
export type
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
450
|
+
export type ConfigModelReasoning = {
|
|
451
|
+
supported: false;
|
|
452
|
+
} | {
|
|
453
|
+
supported: true;
|
|
454
|
+
toggle?: boolean;
|
|
455
|
+
effort?: Array<string>;
|
|
456
|
+
budget?: {
|
|
457
|
+
min?: number;
|
|
458
|
+
max?: number;
|
|
459
|
+
};
|
|
443
460
|
};
|
|
444
461
|
export type ConfigShellOption = {
|
|
445
462
|
path: string;
|
|
@@ -900,6 +917,7 @@ export type ModelCost = {
|
|
|
900
917
|
write: MoneyUSDPerMillionTokens;
|
|
901
918
|
};
|
|
902
919
|
};
|
|
920
|
+
export type VoiceTransport = VoiceWebRTCTransport | VoiceWebSocketTransport;
|
|
903
921
|
export type IntegrationCommandMethod = {
|
|
904
922
|
id: IntegrationMethodID;
|
|
905
923
|
type: "command";
|
|
@@ -1114,6 +1132,13 @@ export type WebSearchProvider = {
|
|
|
1114
1132
|
id: WebSearchID;
|
|
1115
1133
|
name: string;
|
|
1116
1134
|
};
|
|
1135
|
+
export type ConfigModelCapabilities = {
|
|
1136
|
+
tools?: boolean;
|
|
1137
|
+
input?: Array<string>;
|
|
1138
|
+
output?: Array<string>;
|
|
1139
|
+
temperature?: boolean;
|
|
1140
|
+
reasoning?: ConfigModelReasoning;
|
|
1141
|
+
};
|
|
1117
1142
|
export type SessionMessageLocationSwitched = {
|
|
1118
1143
|
id: SessionMessageID;
|
|
1119
1144
|
metadata?: {
|
|
@@ -2677,6 +2702,11 @@ export type ProviderInfo = {
|
|
|
2677
2702
|
[x: string]: any;
|
|
2678
2703
|
};
|
|
2679
2704
|
};
|
|
2705
|
+
export type VoiceSessionResponse = {
|
|
2706
|
+
data: {
|
|
2707
|
+
transport: VoiceTransport;
|
|
2708
|
+
};
|
|
2709
|
+
};
|
|
2680
2710
|
export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
|
|
2681
2711
|
export type PtyCreated = {
|
|
2682
2712
|
id: EventID;
|
|
@@ -3139,6 +3169,7 @@ export type ConfigEntry = {
|
|
|
3139
3169
|
modelID?: string;
|
|
3140
3170
|
family?: string;
|
|
3141
3171
|
name?: string;
|
|
3172
|
+
releaseDate?: string;
|
|
3142
3173
|
compatibility?: ModelCompatibility;
|
|
3143
3174
|
package?: string;
|
|
3144
3175
|
settings?: ConfigModelSettings;
|
|
@@ -7319,6 +7350,48 @@ export type GenerateTextInput = {
|
|
|
7319
7350
|
}["model"];
|
|
7320
7351
|
};
|
|
7321
7352
|
export type GenerateTextOutput = GenerateTextResponse["data"];
|
|
7353
|
+
export type VoiceSessionInput = {
|
|
7354
|
+
readonly model: {
|
|
7355
|
+
readonly model: string;
|
|
7356
|
+
readonly session?: {
|
|
7357
|
+
readonly [x: string]: unknown;
|
|
7358
|
+
} | undefined;
|
|
7359
|
+
readonly transport: {
|
|
7360
|
+
readonly type: "webrtc";
|
|
7361
|
+
readonly sdp: string;
|
|
7362
|
+
readonly dcid?: number | undefined;
|
|
7363
|
+
} | {
|
|
7364
|
+
readonly type: "websocket";
|
|
7365
|
+
};
|
|
7366
|
+
}["model"];
|
|
7367
|
+
readonly session?: {
|
|
7368
|
+
readonly model: string;
|
|
7369
|
+
readonly session?: {
|
|
7370
|
+
readonly [x: string]: unknown;
|
|
7371
|
+
} | undefined;
|
|
7372
|
+
readonly transport: {
|
|
7373
|
+
readonly type: "webrtc";
|
|
7374
|
+
readonly sdp: string;
|
|
7375
|
+
readonly dcid?: number | undefined;
|
|
7376
|
+
} | {
|
|
7377
|
+
readonly type: "websocket";
|
|
7378
|
+
};
|
|
7379
|
+
}["session"];
|
|
7380
|
+
readonly transport: {
|
|
7381
|
+
readonly model: string;
|
|
7382
|
+
readonly session?: {
|
|
7383
|
+
readonly [x: string]: unknown;
|
|
7384
|
+
} | undefined;
|
|
7385
|
+
readonly transport: {
|
|
7386
|
+
readonly type: "webrtc";
|
|
7387
|
+
readonly sdp: string;
|
|
7388
|
+
readonly dcid?: number | undefined;
|
|
7389
|
+
} | {
|
|
7390
|
+
readonly type: "websocket";
|
|
7391
|
+
};
|
|
7392
|
+
}["transport"];
|
|
7393
|
+
};
|
|
7394
|
+
export type VoiceSessionOutput = VoiceSessionResponse["data"];
|
|
7322
7395
|
export type ProviderListInput = {
|
|
7323
7396
|
readonly location?: {
|
|
7324
7397
|
readonly location?: {
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
isShellNotFoundError2,
|
|
33
33
|
isWorktreeError2,
|
|
34
34
|
isVcsInitNotSupportedError2
|
|
35
|
-
} from "../../chunks/
|
|
35
|
+
} from "../../chunks/shared-events-vt9jbch8.js";
|
|
36
36
|
export {
|
|
37
37
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
38
38
|
isCommandExecutionError2 as isCommandExecutionError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/shared-events-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import {
|
|
8
|
-
ClientError3
|
|
9
|
-
} from "../chunks/rpc-runtime-nwcpakzx.js";
|
|
10
|
-
import"../chunks/rpc-runtime-frbwqjmf.js";
|
|
11
|
-
import"../chunks/rpc-runtime-1y4a697q.js";
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/shared-events-q008jpwa.js";
|
|
5
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
6
|
+
import"../chunks/shared-events-vyas3vgt.js";
|
|
12
7
|
import {
|
|
13
8
|
isInvalidRequestError2,
|
|
14
9
|
isUnauthorizedError2,
|
|
@@ -43,10 +38,15 @@ import {
|
|
|
43
38
|
isShellNotFoundError2,
|
|
44
39
|
isWorktreeError2,
|
|
45
40
|
isVcsInitNotSupportedError2
|
|
46
|
-
} from "../chunks/
|
|
41
|
+
} from "../chunks/shared-events-vt9jbch8.js";
|
|
42
|
+
import"../chunks/shared-events-hqeq47hr.js";
|
|
43
|
+
import {
|
|
44
|
+
ClientError2
|
|
45
|
+
} from "../chunks/shared-events-js54wxgp.js";
|
|
46
|
+
import"../chunks/shared-events-frbwqjmf.js";
|
|
47
47
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
ClientError2 as ClientError,
|
|
49
|
+
exports_client as OpenCode,
|
|
50
50
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
51
51
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
52
52
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
package/dist/promise/rpc.js
CHANGED
package/dist/promise/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/
|
|
4
|
+
} from "../chunks/shared-events-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/shared-events-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/shared-events-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
prepare2,
|
|
14
14
|
environment2,
|
|
15
15
|
complete2,
|
|
16
16
|
clear2
|
|
17
|
-
} from "../chunks/
|
|
17
|
+
} from "../chunks/shared-events-td2fzm91.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/shared-events-2ny4vxct.js";
|
|
25
|
+
import"../chunks/shared-events-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/promise/service.ts
|
|
28
28
|
import { readFile, rm } from "node:fs/promises";
|
package/dist/pty-handoff.js
CHANGED
package/dist/rpc-runtime.js
CHANGED
package/dist/service-probe.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
same2,
|
|
5
5
|
probeResult2,
|
|
6
6
|
headers2
|
|
7
|
-
} from "./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
7
|
+
} from "./chunks/shared-events-2ny4vxct.js";
|
|
8
|
+
import"./chunks/shared-events-sxt88q69.js";
|
|
9
|
+
import"./chunks/shared-events-xgnj2w4v.js";
|
|
10
10
|
export {
|
|
11
11
|
decide2 as decide,
|
|
12
12
|
fallback2 as fallback,
|
package/dist/service-timing.js
CHANGED
package/dist/service-version.js
CHANGED
package/dist/service.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunks/
|
|
1
|
+
import"./chunks/shared-events-qav6mfdz.js";
|
package/dist/shared-events.js
CHANGED
package/dist/solid/connection.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
defaultIdleTimeout2,
|
|
3
3
|
foregroundIdleThreshold2,
|
|
4
4
|
createClientConnection2
|
|
5
|
-
} from "../chunks/
|
|
5
|
+
} from "../chunks/shared-events-ydhz1zrh.js";
|
|
6
6
|
export {
|
|
7
7
|
createClientConnection2 as createClientConnection,
|
|
8
8
|
defaultIdleTimeout2 as defaultIdleTimeout,
|
package/dist/solid/data.js
CHANGED
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
settleMs2,
|
|
3
3
|
locationKey2,
|
|
4
4
|
createData2
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
12
|
-
import"../chunks/
|
|
13
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/shared-events-m77rqa4a.js";
|
|
6
|
+
import"../chunks/shared-events-m2eywc8w.js";
|
|
7
|
+
import"../chunks/shared-events-q008jpwa.js";
|
|
8
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
9
|
+
import"../chunks/shared-events-vyas3vgt.js";
|
|
10
|
+
import"../chunks/shared-events-vt9jbch8.js";
|
|
11
|
+
import"../chunks/shared-events-hqeq47hr.js";
|
|
12
|
+
import"../chunks/shared-events-js54wxgp.js";
|
|
13
|
+
import"../chunks/shared-events-frbwqjmf.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import"../chunks/
|
|
2
|
-
import"../chunks/
|
|
3
|
-
import"../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/shared-events-js54wxgp.js";
|
|
2
|
+
import"../chunks/shared-events-hqeq47hr.js";
|
|
3
|
+
import"../chunks/shared-events-vt9jbch8.js";
|
|
4
|
+
import"../chunks/shared-events-vyas3vgt.js";
|
|
5
|
+
import"../chunks/shared-events-frbwqjmf.js";
|
|
6
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
7
|
+
import"../chunks/shared-events-q008jpwa.js";
|
|
8
|
+
import"../chunks/shared-events-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/
|
|
13
|
+
} from "../chunks/shared-events-m77rqa4a.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/shared-events-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/
|
|
22
|
+
} from "../chunks/shared-events-gne7h7mq.js";
|
|
23
23
|
import {
|
|
24
24
|
lastAssistantWithUsage2
|
|
25
|
-
} from "../chunks/
|
|
25
|
+
} from "../chunks/shared-events-8s2anffy.js";
|
|
26
26
|
export {
|
|
27
27
|
createClientConnection2 as createClientConnection,
|
|
28
28
|
createData2 as createData,
|
package/dist/solid/pty.js
CHANGED
package/dist/solid/usage.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/client",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.32",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"typecheck": "tsgo --noEmit"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@opencode/schema": "2.0.
|
|
61
|
-
"@opencode/protocol": "2.0.
|
|
60
|
+
"@opencode/schema": "2.0.32",
|
|
61
|
+
"@opencode/protocol": "2.0.32"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.1",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.1",
|
|
77
|
-
"@opencode/httpapi-codegen": "2.0.
|
|
77
|
+
"@opencode/httpapi-codegen": "2.0.32",
|
|
78
78
|
"@tsconfig/bun": "1.0.9",
|
|
79
79
|
"@types/bun": "1.4.0",
|
|
80
80
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
make7
|
|
3
|
-
} from "./rpc-runtime-frbwqjmf.js";
|
|
4
|
-
import {
|
|
5
|
-
make6
|
|
6
|
-
} from "./rpc-runtime-ecs5ftka.js";
|
|
7
|
-
import {
|
|
8
|
-
makeRpc2
|
|
9
|
-
} from "./rpc-runtime-1y4a697q.js";
|
|
10
|
-
import {
|
|
11
|
-
__export
|
|
12
|
-
} from "./rpc-runtime-9rqn6x4v.js";
|
|
13
|
-
|
|
14
|
-
// src/promise/client.ts
|
|
15
|
-
var exports_client3 = {};
|
|
16
|
-
__export(exports_client3, {
|
|
17
|
-
OpenCode: () => exports_client3,
|
|
18
|
-
make: () => make5
|
|
19
|
-
});
|
|
20
|
-
function make5(options) {
|
|
21
|
-
const raw = make6(options);
|
|
22
|
-
const events = make7((signal, onActivity) => raw.event.subscribe({ signal, onActivity }));
|
|
23
|
-
return {
|
|
24
|
-
...raw,
|
|
25
|
-
rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
|
|
26
|
-
event: events
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { make5, exports_client3 };
|
|
File without changes
|