@opencode/client 2.1.2 → 2.1.3
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-probe-gbq9x9x6.js → service-probe-5r97ebd4.js} +13 -4
- package/dist/chunks/{service-probe-65kht65h.js → service-probe-9j12j8xw.js} +4 -4
- package/dist/chunks/{service-probe-k9g6n5n1.js → service-probe-9p0yrv34.js} +2 -2
- package/dist/chunks/{service-probe-77ntr0t0.js → service-probe-g22sa7qz.js} +16 -1
- package/dist/chunks/{service-probe-ggt8t74w.js → service-probe-xwk4fryp.js} +7 -7
- package/dist/effect/api/api.d.ts +23 -0
- package/dist/effect/client.d.ts +2 -0
- package/dist/effect/client.js +5 -5
- package/dist/effect/generated/client.d.ts +3 -1
- package/dist/effect/generated/client.js +3 -3
- package/dist/effect/generated/index.js +1 -1
- package/dist/effect/index.js +5 -5
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +2 -2
- package/dist/promise/client.d.ts +8 -0
- package/dist/promise/client.js +5 -5
- package/dist/promise/generated/client.d.ts +9 -1
- package/dist/promise/generated/client.js +1 -1
- package/dist/promise/generated/index.js +6 -6
- package/dist/promise/generated/types.d.ts +28 -0
- package/dist/promise/index.js +7 -7
- package/dist/promise/service.js +2 -2
- package/dist/pty-handoff.js +1 -1
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-probe.js +2 -2
- package/dist/shared-events.js +1 -1
- package/dist/solid/data.js +5 -5
- package/dist/solid/index.js +3 -3
- package/package.json +5 -5
- /package/dist/chunks/{service-probe-frbwqjmf.js → service-probe-8bbb028w.js} +0 -0
- /package/dist/chunks/{service-probe-2ny4vxct.js → service-probe-8ye1ye6f.js} +0 -0
- /package/dist/chunks/{service-probe-t1xa31vm.js → service-probe-ryy6kscr.js} +0 -0
- /package/dist/chunks/{service-probe-032v66at.js → service-probe-v1n69e13.js} +0 -0
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
// src/effect/generated/client.ts
|
|
12
12
|
var exports_client2 = {};
|
|
13
13
|
__export(exports_client2, {
|
|
14
|
-
make: () =>
|
|
14
|
+
make: () => make3
|
|
15
15
|
});
|
|
16
16
|
import { Effect, Stream, Schema } from "effect";
|
|
17
17
|
import { Sse } from "effect/encoding";
|
|
@@ -271,10 +271,19 @@ var adaptGroupModel = (raw) => ({
|
|
|
271
271
|
});
|
|
272
272
|
var EndpointGenerateText = (raw) => (input) => preserveEffect()(raw["generate.text"]({ payload: { prompt: input["prompt"], model: input["model"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
273
273
|
var adaptGroupGenerate = (raw) => ({ text: EndpointGenerateText(raw) });
|
|
274
|
+
var EndpointVoiceModels = (raw) => () => preserveEffect()(raw["voice.models"]({}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
274
275
|
var EndpointVoiceSession = (raw) => (input) => preserveEffect()(raw["voice.session"]({
|
|
275
276
|
payload: { model: input["model"], session: input["session"], transport: input["transport"] }
|
|
276
277
|
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
277
|
-
var
|
|
278
|
+
var EndpointVoiceInstructions = (raw) => (input) => preserveEffect()(raw["voice.instructions"]({
|
|
279
|
+
params: { sessionID: input["sessionID"] },
|
|
280
|
+
payload: { instructions: input["instructions"] }
|
|
281
|
+
}).pipe(Effect.mapError(mapClientError)));
|
|
282
|
+
var adaptGroupVoice = (raw) => ({
|
|
283
|
+
models: EndpointVoiceModels(raw),
|
|
284
|
+
session: EndpointVoiceSession(raw),
|
|
285
|
+
instructions: EndpointVoiceInstructions(raw)
|
|
286
|
+
});
|
|
278
287
|
var EndpointProviderList = (raw) => (input) => preserveEffect()(raw["provider.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
279
288
|
var EndpointProviderGet = (raw) => (input) => preserveEffect()(raw["provider.get"]({ params: { providerID: input["providerID"] }, query: { location: input["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
280
289
|
var adaptGroupProvider = (raw) => ({
|
|
@@ -637,6 +646,6 @@ var adaptClient = (raw) => ({
|
|
|
637
646
|
websearch: adaptGroupWebsearch(raw["server.websearch"]),
|
|
638
647
|
config: adaptGroupConfig(raw["server.config"])
|
|
639
648
|
});
|
|
640
|
-
var
|
|
649
|
+
var make3 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
|
|
641
650
|
|
|
642
|
-
export {
|
|
651
|
+
export { make3, exports_client2 };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
readError2,
|
|
4
4
|
event2,
|
|
5
5
|
eventType2
|
|
6
|
-
} from "./service-probe-
|
|
6
|
+
} from "./service-probe-ryy6kscr.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./service-probe-9rqn6x4v.js";
|
|
@@ -13,10 +13,10 @@ var exports_rpc = {};
|
|
|
13
13
|
__export(exports_rpc, {
|
|
14
14
|
RpcClientRuntime: () => exports_rpc,
|
|
15
15
|
aborted: () => aborted2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make4
|
|
17
17
|
});
|
|
18
18
|
import { Effect, Stream } from "effect";
|
|
19
|
-
function
|
|
19
|
+
function make4(call, subscribe) {
|
|
20
20
|
return (definition) => {
|
|
21
21
|
const methods = Object.fromEntries(Object.entries(definition.methods).map(([name, method]) => [
|
|
22
22
|
name,
|
|
@@ -59,4 +59,4 @@ function aborted2(signal) {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export {
|
|
62
|
+
export { make4, aborted2, exports_rpc };
|
|
@@ -652,6 +652,13 @@ function make6(options) {
|
|
|
652
652
|
}, requestOptions).then((value) => value.data)
|
|
653
653
|
},
|
|
654
654
|
voice: {
|
|
655
|
+
models: (requestOptions) => request({
|
|
656
|
+
method: "GET",
|
|
657
|
+
path: `/api/experimental/voice/models`,
|
|
658
|
+
successStatus: 200,
|
|
659
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
660
|
+
empty: false
|
|
661
|
+
}, requestOptions).then((value) => value.data),
|
|
655
662
|
session: (input, requestOptions) => request({
|
|
656
663
|
method: "POST",
|
|
657
664
|
path: `/api/experimental/voice/session`,
|
|
@@ -659,7 +666,15 @@ function make6(options) {
|
|
|
659
666
|
successStatus: 200,
|
|
660
667
|
declaredStatuses: [400, 401, 404, 503],
|
|
661
668
|
empty: false
|
|
662
|
-
}, requestOptions).then((value) => value.data)
|
|
669
|
+
}, requestOptions).then((value) => value.data),
|
|
670
|
+
instructions: (input, requestOptions) => request({
|
|
671
|
+
method: "POST",
|
|
672
|
+
path: `/api/experimental/voice/session/${encodeURIComponent(input.sessionID)}/instructions`,
|
|
673
|
+
body: { instructions: input["instructions"] },
|
|
674
|
+
successStatus: 204,
|
|
675
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
676
|
+
empty: true
|
|
677
|
+
}, requestOptions)
|
|
663
678
|
},
|
|
664
679
|
provider: {
|
|
665
680
|
list: (input, requestOptions) => request({
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./service-probe-
|
|
3
|
+
} from "./service-probe-8bbb028w.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError2
|
|
6
6
|
} from "./service-probe-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./service-probe-
|
|
8
|
+
make3
|
|
9
|
+
} from "./service-probe-5r97ebd4.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
make4,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./service-probe-
|
|
13
|
+
} from "./service-probe-9j12j8xw.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./service-probe-9rqn6x4v.js";
|
|
@@ -30,7 +30,7 @@ var CurrentHeaders = Context.Reference("@opencode/client/effect/rpc/headers", {
|
|
|
30
30
|
});
|
|
31
31
|
var make2 = Effect.fn("OpenCode.make")(function* (options) {
|
|
32
32
|
const httpClient = yield* HttpClient.HttpClient;
|
|
33
|
-
const raw = yield*
|
|
33
|
+
const raw = yield* make3(options).pipe(Effect.provideService(HttpClient.HttpClient, HttpClient.mapRequestEffect(httpClient, (request) => Effect.map(CurrentHeaders, (headers) => headers ? HttpClientRequest.setHeaders(request, new Headers(headers)) : request))));
|
|
34
34
|
const context = yield* Effect.context();
|
|
35
35
|
const native = raw.event.subscribe();
|
|
36
36
|
|
|
@@ -45,7 +45,7 @@ var make2 = Effect.fn("OpenCode.make")(function* (options) {
|
|
|
45
45
|
return {
|
|
46
46
|
...raw,
|
|
47
47
|
event: { ...raw.event, subscribe },
|
|
48
|
-
rpc: Object.assign(
|
|
48
|
+
rpc: Object.assign(make4((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
|
|
49
49
|
};
|
|
50
50
|
});
|
|
51
51
|
|
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -1799,6 +1799,18 @@ export type GenerateTextOperation<E = never> = (input: GenerateTextInput) => Eff
|
|
|
1799
1799
|
export interface GenerateApi<E = never> {
|
|
1800
1800
|
readonly text: GenerateTextOperation<E>;
|
|
1801
1801
|
}
|
|
1802
|
+
export type VoiceModelsOutput = {
|
|
1803
|
+
readonly models: ReadonlyArray<{
|
|
1804
|
+
readonly model: string;
|
|
1805
|
+
readonly provider: string;
|
|
1806
|
+
readonly transports: ReadonlyArray<"webrtc" | "websocket">;
|
|
1807
|
+
readonly available: boolean;
|
|
1808
|
+
readonly integration?: string | undefined;
|
|
1809
|
+
readonly workspace?: string | undefined;
|
|
1810
|
+
}>;
|
|
1811
|
+
readonly default?: string | undefined;
|
|
1812
|
+
};
|
|
1813
|
+
export type VoiceModelsOperation<E = never> = () => Effect.Effect<VoiceModelsOutput, E>;
|
|
1802
1814
|
export type VoiceSessionInput = {
|
|
1803
1815
|
readonly model: string;
|
|
1804
1816
|
readonly session?: {
|
|
@@ -1822,10 +1834,21 @@ export type VoiceSessionOutput = {
|
|
|
1822
1834
|
readonly token: string;
|
|
1823
1835
|
readonly expiresAt: number;
|
|
1824
1836
|
};
|
|
1837
|
+
readonly session?: {
|
|
1838
|
+
readonly id: string;
|
|
1839
|
+
} | undefined;
|
|
1825
1840
|
};
|
|
1826
1841
|
export type VoiceSessionOperation<E = never> = (input: VoiceSessionInput) => Effect.Effect<VoiceSessionOutput, E>;
|
|
1842
|
+
export type VoiceInstructionsInput = {
|
|
1843
|
+
readonly sessionID: string;
|
|
1844
|
+
readonly instructions: string;
|
|
1845
|
+
};
|
|
1846
|
+
export type VoiceInstructionsOutput = void;
|
|
1847
|
+
export type VoiceInstructionsOperation<E = never> = (input: VoiceInstructionsInput) => Effect.Effect<VoiceInstructionsOutput, E>;
|
|
1827
1848
|
export interface VoiceApi<E = never> {
|
|
1849
|
+
readonly models: VoiceModelsOperation<E>;
|
|
1828
1850
|
readonly session: VoiceSessionOperation<E>;
|
|
1851
|
+
readonly instructions: VoiceInstructionsOperation<E>;
|
|
1829
1852
|
}
|
|
1830
1853
|
export type ProviderListInput = {
|
|
1831
1854
|
readonly location?: {
|
package/dist/effect/client.d.ts
CHANGED
|
@@ -93,7 +93,9 @@ export declare const make: (options?: {
|
|
|
93
93
|
text: (input: import("./api.js").GenerateTextInput) => Effect.Effect<import("./api.js").GenerateTextOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
94
94
|
};
|
|
95
95
|
voice: {
|
|
96
|
+
models: () => Effect.Effect<import("./api.js").VoiceModelsOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
96
97
|
session: (input: import("./api.js").VoiceSessionInput) => Effect.Effect<import("./api.js").VoiceSessionOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
98
|
+
instructions: (input: import("./api.js").VoiceInstructionsInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
97
99
|
};
|
|
98
100
|
provider: {
|
|
99
101
|
list: (input?: import("./api.js").ProviderListInput) => Effect.Effect<import("./api.js").ProviderListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
package/dist/effect/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/service-probe-
|
|
5
|
-
import"../chunks/service-probe-65kht65h.js";
|
|
4
|
+
} from "../chunks/service-probe-xwk4fryp.js";
|
|
6
5
|
import"../chunks/service-probe-6mptkzbc.js";
|
|
7
|
-
import"../chunks/service-probe-
|
|
6
|
+
import"../chunks/service-probe-5r97ebd4.js";
|
|
8
7
|
import"../chunks/service-probe-y2etg5bs.js";
|
|
8
|
+
import"../chunks/service-probe-9j12j8xw.js";
|
|
9
|
+
import"../chunks/service-probe-ryy6kscr.js";
|
|
9
10
|
import"../chunks/service-probe-vmytr4q8.js";
|
|
10
|
-
import"../chunks/service-probe-
|
|
11
|
-
import"../chunks/service-probe-frbwqjmf.js";
|
|
11
|
+
import"../chunks/service-probe-8bbb028w.js";
|
|
12
12
|
export {
|
|
13
13
|
exports_client as OpenCode,
|
|
14
14
|
make2 as make
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect, Stream, Schema } from "effect";
|
|
2
2
|
import { Sse } from "effect/encoding";
|
|
3
3
|
import { HttpClientError } from "effect/http";
|
|
4
|
-
import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionStatsInput, SessionStatsOutput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionExportOutput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryListOutput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionGenerateOutput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormListOutput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, GenerateTextOutput, VoiceSessionInput, VoiceSessionOutput, 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, CredentialListOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, 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 "../api/api.js";
|
|
4
|
+
import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionStatsInput, SessionStatsOutput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionExportOutput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryListOutput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionGenerateOutput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormListOutput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, GenerateTextOutput, VoiceModelsOutput, VoiceSessionInput, VoiceSessionOutput, VoiceInstructionsInput, 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, CredentialListOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, 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 "../api/api.js";
|
|
5
5
|
import { ClientError } from "./client-error.js";
|
|
6
6
|
export declare const make: (options?: {
|
|
7
7
|
readonly baseUrl?: URL | string;
|
|
@@ -92,7 +92,9 @@ export declare const make: (options?: {
|
|
|
92
92
|
text: (input: GenerateTextInput) => Effect.Effect<GenerateTextOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
93
93
|
};
|
|
94
94
|
voice: {
|
|
95
|
+
models: () => Effect.Effect<VoiceModelsOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
95
96
|
session: (input: VoiceSessionInput) => Effect.Effect<VoiceSessionOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
97
|
+
instructions: (input: VoiceInstructionsInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
96
98
|
};
|
|
97
99
|
provider: {
|
|
98
100
|
list: (input?: ProviderListInput) => Effect.Effect<ProviderListOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/service-probe-
|
|
2
|
+
make3
|
|
3
|
+
} from "../../chunks/service-probe-5r97ebd4.js";
|
|
4
4
|
import"../../chunks/service-probe-y2etg5bs.js";
|
|
5
5
|
import"../../chunks/service-probe-vmytr4q8.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
make3 as make
|
|
8
8
|
};
|
package/dist/effect/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
ClientError2
|
|
3
3
|
} from "../chunks/service-probe-y2etg5bs.js";
|
|
4
4
|
import"../chunks/service-probe-vmytr4q8.js";
|
|
5
|
-
import"../chunks/service-probe-
|
|
5
|
+
import"../chunks/service-probe-5r97ebd4.js";
|
|
6
6
|
import"../chunks/service-probe-6mptkzbc.js";
|
|
7
|
-
import"../chunks/service-probe-
|
|
8
|
-
import"../chunks/service-probe-
|
|
9
|
-
import"../chunks/service-probe-
|
|
7
|
+
import"../chunks/service-probe-8bbb028w.js";
|
|
8
|
+
import"../chunks/service-probe-ryy6kscr.js";
|
|
9
|
+
import"../chunks/service-probe-9j12j8xw.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_client
|
|
12
|
-
} from "../chunks/service-probe-
|
|
12
|
+
} from "../chunks/service-probe-xwk4fryp.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
package/dist/effect/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make4,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/service-probe-
|
|
6
|
-
import"../chunks/service-probe-
|
|
5
|
+
} from "../chunks/service-probe-9j12j8xw.js";
|
|
6
|
+
import"../chunks/service-probe-ryy6kscr.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make4 as make
|
|
11
11
|
};
|
package/dist/effect/service.js
CHANGED
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
environment2,
|
|
15
15
|
complete2,
|
|
16
16
|
clear2
|
|
17
|
-
} from "../chunks/service-probe-
|
|
17
|
+
} from "../chunks/service-probe-v1n69e13.js";
|
|
18
18
|
import {
|
|
19
19
|
decide2,
|
|
20
20
|
fallback2,
|
|
21
21
|
same2,
|
|
22
22
|
probeResult2,
|
|
23
23
|
headers2
|
|
24
|
-
} from "../chunks/service-probe-
|
|
24
|
+
} from "../chunks/service-probe-8ye1ye6f.js";
|
|
25
25
|
import"../chunks/service-probe-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/effect/service.ts
|
package/dist/promise/client.d.ts
CHANGED
|
@@ -96,9 +96,17 @@ export declare function make(options: ClientOptions): {
|
|
|
96
96
|
}>;
|
|
97
97
|
};
|
|
98
98
|
voice: {
|
|
99
|
+
models: (requestOptions?: OpenCode.RequestOptions) => Promise<{
|
|
100
|
+
models: Array<import("./index.js").VoiceModel>;
|
|
101
|
+
default?: string | undefined;
|
|
102
|
+
}>;
|
|
99
103
|
session: (input: import("./index.js").VoiceSessionInput, requestOptions?: OpenCode.RequestOptions) => Promise<{
|
|
100
104
|
transport: import("./index.js").VoiceTransport;
|
|
105
|
+
session?: {
|
|
106
|
+
id: string;
|
|
107
|
+
} | undefined;
|
|
101
108
|
}>;
|
|
109
|
+
instructions: (input: import("./index.js").VoiceInstructionsInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
102
110
|
};
|
|
103
111
|
provider: {
|
|
104
112
|
list: (input?: import("./index.js").ProviderListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ProviderListOutput>;
|
package/dist/promise/client.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make5,
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/service-probe-
|
|
5
|
-
import"../chunks/service-probe-6vp15eh6.js";
|
|
4
|
+
} from "../chunks/service-probe-9p0yrv34.js";
|
|
6
5
|
import"../chunks/service-probe-vyas3vgt.js";
|
|
7
|
-
import"../chunks/service-probe-
|
|
8
|
-
import"../chunks/service-probe-77ntr0t0.js";
|
|
6
|
+
import"../chunks/service-probe-g22sa7qz.js";
|
|
9
7
|
import"../chunks/service-probe-nwcpakzx.js";
|
|
10
|
-
import"../chunks/service-probe-
|
|
8
|
+
import"../chunks/service-probe-6vp15eh6.js";
|
|
9
|
+
import"../chunks/service-probe-ezt8t3fk.js";
|
|
10
|
+
import"../chunks/service-probe-8bbb028w.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_client3 as OpenCode,
|
|
13
13
|
make5 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, 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";
|
|
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, VoiceInstructionsInput, 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;
|
|
@@ -103,9 +103,17 @@ export declare function make(options: ClientOptions): {
|
|
|
103
103
|
}>;
|
|
104
104
|
};
|
|
105
105
|
voice: {
|
|
106
|
+
models: (requestOptions?: RequestOptions) => Promise<{
|
|
107
|
+
models: Array<import("./types.js").VoiceModel>;
|
|
108
|
+
default?: string | undefined;
|
|
109
|
+
}>;
|
|
106
110
|
session: (input: VoiceSessionInput, requestOptions?: RequestOptions) => Promise<{
|
|
107
111
|
transport: import("./types.js").VoiceTransport;
|
|
112
|
+
session?: {
|
|
113
|
+
id: string;
|
|
114
|
+
} | undefined;
|
|
108
115
|
}>;
|
|
116
|
+
instructions: (input: VoiceInstructionsInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
109
117
|
};
|
|
110
118
|
provider: {
|
|
111
119
|
list: (input?: ProviderListInput, requestOptions?: RequestOptions) => Promise<ProviderListOutput>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import"../../chunks/service-probe-vyas3vgt.js";
|
|
2
|
+
import {
|
|
3
|
+
exports_client4
|
|
4
|
+
} from "../../chunks/service-probe-g22sa7qz.js";
|
|
5
|
+
import {
|
|
6
|
+
ClientError3
|
|
7
|
+
} from "../../chunks/service-probe-nwcpakzx.js";
|
|
2
8
|
import {
|
|
3
9
|
isInvalidRequestError2,
|
|
4
10
|
isUnauthorizedError2,
|
|
@@ -35,12 +41,6 @@ import {
|
|
|
35
41
|
isWorktreeError2,
|
|
36
42
|
isVcsInitNotSupportedError2
|
|
37
43
|
} from "../../chunks/service-probe-ezt8t3fk.js";
|
|
38
|
-
import {
|
|
39
|
-
exports_client4
|
|
40
|
-
} from "../../chunks/service-probe-77ntr0t0.js";
|
|
41
|
-
import {
|
|
42
|
-
ClientError3
|
|
43
|
-
} from "../../chunks/service-probe-nwcpakzx.js";
|
|
44
44
|
export {
|
|
45
45
|
ClientError3 as ClientError,
|
|
46
46
|
exports_client4 as OpenCode,
|
|
@@ -239,6 +239,7 @@ export type GenerateTextResponse = {
|
|
|
239
239
|
text: string;
|
|
240
240
|
};
|
|
241
241
|
};
|
|
242
|
+
export type VoiceTransportType = "webrtc" | "websocket";
|
|
242
243
|
export type VoiceWebRTCTransport = {
|
|
243
244
|
type: "webrtc";
|
|
244
245
|
sdp: string;
|
|
@@ -918,6 +919,14 @@ export type ModelCost = {
|
|
|
918
919
|
write: MoneyUSDPerMillionTokens;
|
|
919
920
|
};
|
|
920
921
|
};
|
|
922
|
+
export type VoiceModel = {
|
|
923
|
+
model: string;
|
|
924
|
+
provider: string;
|
|
925
|
+
transports: Array<VoiceTransportType>;
|
|
926
|
+
available: boolean;
|
|
927
|
+
integration?: string | undefined;
|
|
928
|
+
workspace?: string | undefined;
|
|
929
|
+
};
|
|
921
930
|
export type VoiceTransport = VoiceWebRTCTransport | VoiceWebSocketTransport;
|
|
922
931
|
export type IntegrationCommandMethod = {
|
|
923
932
|
id: IntegrationMethodID;
|
|
@@ -2763,9 +2772,18 @@ export type ProviderInfo = {
|
|
|
2763
2772
|
[x: string]: any;
|
|
2764
2773
|
};
|
|
2765
2774
|
};
|
|
2775
|
+
export type VoiceModelsResponse = {
|
|
2776
|
+
data: {
|
|
2777
|
+
models: Array<VoiceModel>;
|
|
2778
|
+
default?: string | undefined;
|
|
2779
|
+
};
|
|
2780
|
+
};
|
|
2766
2781
|
export type VoiceSessionResponse = {
|
|
2767
2782
|
data: {
|
|
2768
2783
|
transport: VoiceTransport;
|
|
2784
|
+
session?: {
|
|
2785
|
+
id: string;
|
|
2786
|
+
} | undefined;
|
|
2769
2787
|
};
|
|
2770
2788
|
};
|
|
2771
2789
|
export type CredentialValue = CredentialOAuth | CredentialKey | CredentialExternal;
|
|
@@ -6150,6 +6168,7 @@ export type GenerateTextInput = {
|
|
|
6150
6168
|
}["model"];
|
|
6151
6169
|
};
|
|
6152
6170
|
export type GenerateTextOutput = GenerateTextResponse["data"];
|
|
6171
|
+
export type VoiceModelsOutput = VoiceModelsResponse["data"];
|
|
6153
6172
|
export type VoiceSessionInput = {
|
|
6154
6173
|
readonly model: {
|
|
6155
6174
|
readonly model: string;
|
|
@@ -6192,6 +6211,15 @@ export type VoiceSessionInput = {
|
|
|
6192
6211
|
}["transport"];
|
|
6193
6212
|
};
|
|
6194
6213
|
export type VoiceSessionOutput = VoiceSessionResponse["data"];
|
|
6214
|
+
export type VoiceInstructionsInput = {
|
|
6215
|
+
readonly sessionID: {
|
|
6216
|
+
readonly sessionID: string;
|
|
6217
|
+
}["sessionID"];
|
|
6218
|
+
readonly instructions: {
|
|
6219
|
+
readonly instructions: string;
|
|
6220
|
+
}["instructions"];
|
|
6221
|
+
};
|
|
6222
|
+
export type VoiceInstructionsOutput = void;
|
|
6195
6223
|
export type ProviderListInput = {
|
|
6196
6224
|
readonly location?: {
|
|
6197
6225
|
readonly location?: {
|
package/dist/promise/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import"../chunks/service-probe-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/service-probe-
|
|
5
|
-
import"../chunks/service-probe-6vp15eh6.js";
|
|
4
|
+
} from "../chunks/service-probe-9p0yrv34.js";
|
|
6
5
|
import"../chunks/service-probe-vyas3vgt.js";
|
|
6
|
+
import"../chunks/service-probe-g22sa7qz.js";
|
|
7
|
+
import {
|
|
8
|
+
ClientError3
|
|
9
|
+
} from "../chunks/service-probe-nwcpakzx.js";
|
|
10
|
+
import"../chunks/service-probe-6vp15eh6.js";
|
|
7
11
|
import {
|
|
8
12
|
isInvalidRequestError2,
|
|
9
13
|
isUnauthorizedError2,
|
|
@@ -40,11 +44,7 @@ import {
|
|
|
40
44
|
isWorktreeError2,
|
|
41
45
|
isVcsInitNotSupportedError2
|
|
42
46
|
} from "../chunks/service-probe-ezt8t3fk.js";
|
|
43
|
-
import"../chunks/service-probe-
|
|
44
|
-
import {
|
|
45
|
-
ClientError3
|
|
46
|
-
} from "../chunks/service-probe-nwcpakzx.js";
|
|
47
|
-
import"../chunks/service-probe-frbwqjmf.js";
|
|
47
|
+
import"../chunks/service-probe-8bbb028w.js";
|
|
48
48
|
export {
|
|
49
49
|
ClientError3 as ClientError,
|
|
50
50
|
exports_client3 as OpenCode,
|
package/dist/promise/service.js
CHANGED
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
environment2,
|
|
15
15
|
complete2,
|
|
16
16
|
clear2
|
|
17
|
-
} from "../chunks/service-probe-
|
|
17
|
+
} from "../chunks/service-probe-v1n69e13.js";
|
|
18
18
|
import {
|
|
19
19
|
decide2,
|
|
20
20
|
fallback2,
|
|
21
21
|
same2,
|
|
22
22
|
probeResult2,
|
|
23
23
|
headers2
|
|
24
|
-
} from "../chunks/service-probe-
|
|
24
|
+
} from "../chunks/service-probe-8ye1ye6f.js";
|
|
25
25
|
import"../chunks/service-probe-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/promise/service.ts
|
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/service-probe-
|
|
8
|
-
import"./chunks/service-probe-sxt88q69.js";
|
|
7
|
+
} from "./chunks/service-probe-8ye1ye6f.js";
|
|
9
8
|
import"./chunks/service-probe-xgnj2w4v.js";
|
|
9
|
+
import"./chunks/service-probe-sxt88q69.js";
|
|
10
10
|
export {
|
|
11
11
|
decide2 as decide,
|
|
12
12
|
fallback2 as fallback,
|
package/dist/shared-events.js
CHANGED
package/dist/solid/data.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
createData2
|
|
5
5
|
} from "../chunks/service-probe-61wt4y9h.js";
|
|
6
6
|
import"../chunks/service-probe-m2eywc8w.js";
|
|
7
|
-
import"../chunks/service-probe-
|
|
8
|
-
import"../chunks/service-probe-6vp15eh6.js";
|
|
7
|
+
import"../chunks/service-probe-9p0yrv34.js";
|
|
9
8
|
import"../chunks/service-probe-vyas3vgt.js";
|
|
10
|
-
import"../chunks/service-probe-
|
|
11
|
-
import"../chunks/service-probe-77ntr0t0.js";
|
|
9
|
+
import"../chunks/service-probe-g22sa7qz.js";
|
|
12
10
|
import"../chunks/service-probe-nwcpakzx.js";
|
|
13
|
-
import"../chunks/service-probe-
|
|
11
|
+
import"../chunks/service-probe-6vp15eh6.js";
|
|
12
|
+
import"../chunks/service-probe-ezt8t3fk.js";
|
|
13
|
+
import"../chunks/service-probe-8bbb028w.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import"../chunks/service-probe-nwcpakzx.js";
|
|
2
|
-
import"../chunks/service-probe-
|
|
2
|
+
import"../chunks/service-probe-g22sa7qz.js";
|
|
3
3
|
import"../chunks/service-probe-ezt8t3fk.js";
|
|
4
4
|
import"../chunks/service-probe-vyas3vgt.js";
|
|
5
|
-
import"../chunks/service-probe-
|
|
5
|
+
import"../chunks/service-probe-8bbb028w.js";
|
|
6
6
|
import"../chunks/service-probe-6vp15eh6.js";
|
|
7
|
-
import"../chunks/service-probe-
|
|
7
|
+
import"../chunks/service-probe-9p0yrv34.js";
|
|
8
8
|
import"../chunks/service-probe-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
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.1.
|
|
4
|
+
"version": "2.1.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"typecheck": "tsc --noEmit"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@opencode/schema": "2.1.
|
|
61
|
-
"@opencode/protocol": "2.1.
|
|
60
|
+
"@opencode/schema": "2.1.3",
|
|
61
|
+
"@opencode/protocol": "2.1.3"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.1",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.1",
|
|
77
|
-
"@opencode/httpapi-codegen": "2.1.
|
|
77
|
+
"@opencode/httpapi-codegen": "2.1.3",
|
|
78
78
|
"@tsconfig/bun": "1.0.9",
|
|
79
|
-
"@types/bun": "1.4.
|
|
79
|
+
"@types/bun": "1.4.3",
|
|
80
80
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
81
81
|
"effect": "4.0.1",
|
|
82
82
|
"solid-js": "1.9.15"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|