@opencode/client 0.0.0-dev-21083 → 0.0.0-dev-21086
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{service-timing-0fm13wma.js → shared-events-0s179qd1.js} +19 -19
- package/dist/chunks/{service-timing-1y4a697q.js → shared-events-1y4a697q.js} +1 -1
- package/dist/chunks/{service-timing-8ye1ye6f.js → shared-events-2ny4vxct.js} +2 -2
- package/dist/chunks/{service-timing-y2etg5bs.js → shared-events-7f0py9js.js} +2 -2
- package/dist/chunks/{service-timing-w06ymky3.js → shared-events-8rj22tx8.js} +15 -10
- package/dist/chunks/{service-timing-8vkebhdp.js → shared-events-frbwqjmf.js} +4 -4
- package/dist/chunks/{service-timing-2fzwj8x4.js → shared-events-hqeq47hr.js} +29 -19
- package/dist/chunks/{service-timing-nwcpakzx.js → shared-events-js54wxgp.js} +2 -2
- package/dist/chunks/{service-timing-m77rqa4a.js → shared-events-m77rqa4a.js} +1 -1
- package/dist/chunks/shared-events-mx66vh2p.js +30 -0
- package/dist/chunks/{service-timing-jxmgxdt2.js → shared-events-p2772a31.js} +1 -1
- package/dist/chunks/{service-timing-t1xa31vm.js → shared-events-t1xa31vm.js} +1 -1
- package/dist/chunks/{service-timing-r2b6cxgb.js → shared-events-w1w809zr.js} +5 -5
- 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 +8 -8
- package/dist/promise/generated/types.d.ts +58 -0
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +12 -12
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +1 -1
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.js +3 -3
- 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/service-timing-pznmyrzt.js +0 -30
- /package/dist/chunks/{service-timing-6mptkzbc.js → shared-events-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-timing-8s2anffy.js → shared-events-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-timing-9rqn6x4v.js → shared-events-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-timing-gne7h7mq.js → shared-events-gne7h7mq.js} +0 -0
- /package/dist/chunks/{service-timing-m2eywc8w.js → shared-events-m2eywc8w.js} +0 -0
- /package/dist/chunks/{service-timing-qav6mfdz.js → shared-events-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-timing-sxt88q69.js → shared-events-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-timing-ve4aws36.js → shared-events-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-timing-vmytr4q8.js → shared-events-vmytr4q8.js} +0 -0
- /package/dist/chunks/{service-timing-vt9jbch8.js → shared-events-vt9jbch8.js} +0 -0
- /package/dist/chunks/{service-timing-vyas3vgt.js → shared-events-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-timing-xgnj2w4v.js → shared-events-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-timing-ydhz1zrh.js → shared-events-ydhz1zrh.js} +0 -0
package/dist/effect/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
2
|
+
ClientError3
|
|
3
|
+
} from "../chunks/shared-events-7f0py9js.js";
|
|
4
|
+
import"../chunks/shared-events-vmytr4q8.js";
|
|
5
|
+
import"../chunks/shared-events-8rj22tx8.js";
|
|
6
|
+
import"../chunks/shared-events-6mptkzbc.js";
|
|
7
|
+
import"../chunks/shared-events-frbwqjmf.js";
|
|
8
|
+
import"../chunks/shared-events-t1xa31vm.js";
|
|
9
|
+
import"../chunks/shared-events-w1w809zr.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "../chunks/
|
|
11
|
+
exports_client3
|
|
12
|
+
} from "../chunks/shared-events-0s179qd1.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
|
@@ -43,7 +43,7 @@ import { PromptInput } from "@opencode/schema/prompt-input";
|
|
|
43
43
|
export {
|
|
44
44
|
AbsolutePath,
|
|
45
45
|
Agent,
|
|
46
|
-
|
|
46
|
+
ClientError3 as ClientError,
|
|
47
47
|
Command,
|
|
48
48
|
Config,
|
|
49
49
|
Credential,
|
|
@@ -54,7 +54,7 @@ export {
|
|
|
54
54
|
Integration,
|
|
55
55
|
Location,
|
|
56
56
|
Model,
|
|
57
|
-
|
|
57
|
+
exports_client3 as OpenCode,
|
|
58
58
|
Permission,
|
|
59
59
|
PermissionSaved,
|
|
60
60
|
Project,
|
package/dist/effect/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make6,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/shared-events-w1w809zr.js";
|
|
6
|
+
import"../chunks/shared-events-t1xa31vm.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make6 as make
|
|
11
11
|
};
|
package/dist/effect/service.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-p2772a31.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-mx66vh2p.js";
|
|
5
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
6
|
+
import"../chunks/shared-events-vyas3vgt.js";
|
|
7
|
+
import"../chunks/shared-events-hqeq47hr.js";
|
|
8
|
+
import"../chunks/shared-events-js54wxgp.js";
|
|
9
|
+
import"../chunks/shared-events-vt9jbch8.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,10 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/shared-events-vyas3vgt.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../chunks/
|
|
3
|
+
exports_client2
|
|
4
|
+
} from "../../chunks/shared-events-hqeq47hr.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../chunks/
|
|
6
|
+
ClientError2
|
|
7
|
+
} from "../../chunks/shared-events-js54wxgp.js";
|
|
8
8
|
import {
|
|
9
9
|
isInvalidRequestError2,
|
|
10
10
|
isUnauthorizedError2,
|
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
isShellNotFoundError2,
|
|
40
40
|
isWorktreeError2,
|
|
41
41
|
isVcsInitNotSupportedError2
|
|
42
|
-
} from "../../chunks/
|
|
42
|
+
} from "../../chunks/shared-events-vt9jbch8.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,
|
|
@@ -238,6 +238,16 @@ export type GenerateTextResponse = {
|
|
|
238
238
|
text: string;
|
|
239
239
|
};
|
|
240
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
|
+
};
|
|
241
251
|
export type IntegrationID = string;
|
|
242
252
|
export type IntegrationMethodID = string;
|
|
243
253
|
export type IntegrationEnvMethod = {
|
|
@@ -907,6 +917,7 @@ export type ModelCost = {
|
|
|
907
917
|
write: MoneyUSDPerMillionTokens;
|
|
908
918
|
};
|
|
909
919
|
};
|
|
920
|
+
export type VoiceTransport = VoiceWebRTCTransport | VoiceWebSocketTransport;
|
|
910
921
|
export type IntegrationCommandMethod = {
|
|
911
922
|
id: IntegrationMethodID;
|
|
912
923
|
type: "command";
|
|
@@ -2691,6 +2702,11 @@ export type ProviderInfo = {
|
|
|
2691
2702
|
[x: string]: any;
|
|
2692
2703
|
};
|
|
2693
2704
|
};
|
|
2705
|
+
export type VoiceSessionResponse = {
|
|
2706
|
+
data: {
|
|
2707
|
+
transport: VoiceTransport;
|
|
2708
|
+
};
|
|
2709
|
+
};
|
|
2694
2710
|
export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
|
|
2695
2711
|
export type PtyCreated = {
|
|
2696
2712
|
id: EventID;
|
|
@@ -7334,6 +7350,48 @@ export type GenerateTextInput = {
|
|
|
7334
7350
|
}["model"];
|
|
7335
7351
|
};
|
|
7336
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"];
|
|
7337
7395
|
export type ProviderListInput = {
|
|
7338
7396
|
readonly location?: {
|
|
7339
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,13 +1,13 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/shared-events-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
3
|
+
exports_client
|
|
4
|
+
} from "../chunks/shared-events-mx66vh2p.js";
|
|
5
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
6
|
+
import"../chunks/shared-events-vyas3vgt.js";
|
|
7
|
+
import"../chunks/shared-events-hqeq47hr.js";
|
|
7
8
|
import {
|
|
8
|
-
|
|
9
|
-
} from "../chunks/
|
|
10
|
-
import"../chunks/service-timing-1y4a697q.js";
|
|
9
|
+
ClientError2
|
|
10
|
+
} from "../chunks/shared-events-js54wxgp.js";
|
|
11
11
|
import {
|
|
12
12
|
isInvalidRequestError2,
|
|
13
13
|
isUnauthorizedError2,
|
|
@@ -42,11 +42,11 @@ import {
|
|
|
42
42
|
isShellNotFoundError2,
|
|
43
43
|
isWorktreeError2,
|
|
44
44
|
isVcsInitNotSupportedError2
|
|
45
|
-
} from "../chunks/
|
|
46
|
-
import"../chunks/
|
|
45
|
+
} from "../chunks/shared-events-vt9jbch8.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-p2772a31.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-mx66vh2p.js";
|
|
8
|
+
import"../chunks/shared-events-1y4a697q.js";
|
|
9
|
+
import"../chunks/shared-events-vyas3vgt.js";
|
|
10
|
+
import"../chunks/shared-events-hqeq47hr.js";
|
|
11
|
+
import"../chunks/shared-events-js54wxgp.js";
|
|
12
|
+
import"../chunks/shared-events-vt9jbch8.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-mx66vh2p.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": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-21086",
|
|
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": "0.0.0-dev-
|
|
61
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
60
|
+
"@opencode/schema": "0.0.0-dev-21086",
|
|
61
|
+
"@opencode/protocol": "0.0.0-dev-21086"
|
|
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": "0.0.0-dev-
|
|
77
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-21086",
|
|
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
|
-
make6
|
|
3
|
-
} from "./service-timing-8vkebhdp.js";
|
|
4
|
-
import {
|
|
5
|
-
make5
|
|
6
|
-
} from "./service-timing-2fzwj8x4.js";
|
|
7
|
-
import {
|
|
8
|
-
makeRpc2
|
|
9
|
-
} from "./service-timing-1y4a697q.js";
|
|
10
|
-
import {
|
|
11
|
-
__export
|
|
12
|
-
} from "./service-timing-9rqn6x4v.js";
|
|
13
|
-
|
|
14
|
-
// src/promise/client.ts
|
|
15
|
-
var exports_client3 = {};
|
|
16
|
-
__export(exports_client3, {
|
|
17
|
-
OpenCode: () => exports_client3,
|
|
18
|
-
make: () => make4
|
|
19
|
-
});
|
|
20
|
-
function make4(options) {
|
|
21
|
-
const raw = make5(options);
|
|
22
|
-
const events = make6((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 { make4, exports_client3 };
|
|
File without changes
|