@opencode/client 0.0.0-dev-21085 → 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.
Files changed (63) hide show
  1. package/dist/chunks/{rpc-runtime-g5rhzarc.js → shared-events-0s179qd1.js} +17 -17
  2. package/dist/chunks/{rpc-runtime-1y4a697q.js → shared-events-1y4a697q.js} +1 -1
  3. package/dist/chunks/{rpc-runtime-2ny4vxct.js → shared-events-2ny4vxct.js} +2 -2
  4. package/dist/chunks/{rpc-runtime-y2etg5bs.js → shared-events-7f0py9js.js} +2 -2
  5. package/dist/chunks/{rpc-runtime-q4g3afnw.js → shared-events-8rj22tx8.js} +15 -10
  6. package/dist/chunks/{rpc-runtime-frbwqjmf.js → shared-events-frbwqjmf.js} +1 -1
  7. package/dist/chunks/{rpc-runtime-ecs5ftka.js → shared-events-hqeq47hr.js} +29 -19
  8. package/dist/chunks/{rpc-runtime-nwcpakzx.js → shared-events-js54wxgp.js} +2 -2
  9. package/dist/chunks/{rpc-runtime-m77rqa4a.js → shared-events-m77rqa4a.js} +1 -1
  10. package/dist/chunks/shared-events-mx66vh2p.js +30 -0
  11. package/dist/chunks/{rpc-runtime-gx9wnkzr.js → shared-events-p2772a31.js} +1 -1
  12. package/dist/chunks/{rpc-runtime-t1xa31vm.js → shared-events-t1xa31vm.js} +1 -1
  13. package/dist/chunks/{rpc-runtime-z6qdwcsf.js → shared-events-w1w809zr.js} +5 -5
  14. package/dist/contract.js +1 -1
  15. package/dist/effect/api/api.d.ts +29 -0
  16. package/dist/effect/client.d.ts +3 -0
  17. package/dist/effect/client.js +12 -12
  18. package/dist/effect/generated/client-error.js +3 -3
  19. package/dist/effect/generated/client.d.ts +4 -1
  20. package/dist/effect/generated/client.js +5 -5
  21. package/dist/effect/generated/index.js +8 -8
  22. package/dist/effect/index.js +12 -12
  23. package/dist/effect/rpc.js +4 -4
  24. package/dist/effect/service.js +6 -6
  25. package/dist/promise/client.d.ts +5 -0
  26. package/dist/promise/client.js +11 -11
  27. package/dist/promise/generated/client-error.js +3 -3
  28. package/dist/promise/generated/client.d.ts +6 -1
  29. package/dist/promise/generated/client.js +4 -4
  30. package/dist/promise/generated/index.js +8 -8
  31. package/dist/promise/generated/types.d.ts +58 -0
  32. package/dist/promise/generated/types.js +1 -1
  33. package/dist/promise/index.js +12 -12
  34. package/dist/promise/rpc.js +2 -2
  35. package/dist/promise/service.js +6 -6
  36. package/dist/pty-handoff.js +1 -1
  37. package/dist/rpc-runtime.js +1 -1
  38. package/dist/service-contender.js +1 -1
  39. package/dist/service-probe.js +3 -3
  40. package/dist/service-timing.js +1 -1
  41. package/dist/service-version.js +1 -1
  42. package/dist/service.js +1 -1
  43. package/dist/shared-events.js +1 -1
  44. package/dist/solid/connection.js +1 -1
  45. package/dist/solid/data.js +9 -9
  46. package/dist/solid/index.js +12 -12
  47. package/dist/solid/pty.js +1 -1
  48. package/dist/solid/usage.js +1 -1
  49. package/package.json +4 -4
  50. package/dist/chunks/rpc-runtime-wjyeq25y.js +0 -30
  51. /package/dist/chunks/{rpc-runtime-6mptkzbc.js → shared-events-6mptkzbc.js} +0 -0
  52. /package/dist/chunks/{rpc-runtime-8s2anffy.js → shared-events-8s2anffy.js} +0 -0
  53. /package/dist/chunks/{rpc-runtime-9rqn6x4v.js → shared-events-9rqn6x4v.js} +0 -0
  54. /package/dist/chunks/{rpc-runtime-gne7h7mq.js → shared-events-gne7h7mq.js} +0 -0
  55. /package/dist/chunks/{rpc-runtime-m2eywc8w.js → shared-events-m2eywc8w.js} +0 -0
  56. /package/dist/chunks/{rpc-runtime-qav6mfdz.js → shared-events-qav6mfdz.js} +0 -0
  57. /package/dist/chunks/{rpc-runtime-sxt88q69.js → shared-events-sxt88q69.js} +0 -0
  58. /package/dist/chunks/{rpc-runtime-ve4aws36.js → shared-events-ve4aws36.js} +0 -0
  59. /package/dist/chunks/{rpc-runtime-vmytr4q8.js → shared-events-vmytr4q8.js} +0 -0
  60. /package/dist/chunks/{rpc-runtime-vt9jbch8.js → shared-events-vt9jbch8.js} +0 -0
  61. /package/dist/chunks/{rpc-runtime-vyas3vgt.js → shared-events-vyas3vgt.js} +0 -0
  62. /package/dist/chunks/{rpc-runtime-xgnj2w4v.js → shared-events-xgnj2w4v.js} +0 -0
  63. /package/dist/chunks/{rpc-runtime-ydhz1zrh.js → shared-events-ydhz1zrh.js} +0 -0
@@ -1,11 +1,11 @@
1
1
  import {
2
- make4,
2
+ make6,
3
3
  aborted2,
4
4
  exports_rpc
5
- } from "../chunks/rpc-runtime-z6qdwcsf.js";
6
- import"../chunks/rpc-runtime-t1xa31vm.js";
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
- make4 as make
10
+ make6 as make
11
11
  };
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  spawnServiceContender2,
3
3
  contenderPool2
4
- } from "../chunks/rpc-runtime-ve4aws36.js";
4
+ } from "../chunks/shared-events-ve4aws36.js";
5
5
  import {
6
6
  defaultEnsureTiming2,
7
7
  ensureTiming2
8
- } from "../chunks/rpc-runtime-xgnj2w4v.js";
8
+ } from "../chunks/shared-events-xgnj2w4v.js";
9
9
  import {
10
10
  matchesVersion2
11
- } from "../chunks/rpc-runtime-sxt88q69.js";
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/rpc-runtime-gx9wnkzr.js";
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/rpc-runtime-2ny4vxct.js";
25
- import"../chunks/rpc-runtime-qav6mfdz.js";
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";
@@ -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>;
@@ -1,14 +1,14 @@
1
1
  import {
2
- make5,
3
- exports_client3
4
- } from "../chunks/rpc-runtime-wjyeq25y.js";
5
- import"../chunks/rpc-runtime-vyas3vgt.js";
6
- import"../chunks/rpc-runtime-ecs5ftka.js";
7
- import"../chunks/rpc-runtime-1y4a697q.js";
8
- import"../chunks/rpc-runtime-nwcpakzx.js";
9
- import"../chunks/rpc-runtime-vt9jbch8.js";
10
- import"../chunks/rpc-runtime-frbwqjmf.js";
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
- exports_client3 as OpenCode,
13
- make5 as make
12
+ exports_client as OpenCode,
13
+ make2 as make
14
14
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
- ClientError3
3
- } from "../../chunks/rpc-runtime-nwcpakzx.js";
2
+ ClientError2
3
+ } from "../../chunks/shared-events-js54wxgp.js";
4
4
  export {
5
- ClientError3 as ClientError
5
+ ClientError2 as ClientError
6
6
  };
@@ -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
- make6
3
- } from "../../chunks/rpc-runtime-ecs5ftka.js";
4
- import"../../chunks/rpc-runtime-nwcpakzx.js";
2
+ make3
3
+ } from "../../chunks/shared-events-hqeq47hr.js";
4
+ import"../../chunks/shared-events-js54wxgp.js";
5
5
  export {
6
- make6 as make
6
+ make3 as make
7
7
  };
@@ -1,10 +1,10 @@
1
- import"../../chunks/rpc-runtime-vyas3vgt.js";
1
+ import"../../chunks/shared-events-vyas3vgt.js";
2
2
  import {
3
- exports_client4
4
- } from "../../chunks/rpc-runtime-ecs5ftka.js";
3
+ exports_client2
4
+ } from "../../chunks/shared-events-hqeq47hr.js";
5
5
  import {
6
- ClientError3
7
- } from "../../chunks/rpc-runtime-nwcpakzx.js";
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/rpc-runtime-vt9jbch8.js";
42
+ } from "../../chunks/shared-events-vt9jbch8.js";
43
43
  export {
44
- ClientError3 as ClientError,
45
- exports_client4 as OpenCode,
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/rpc-runtime-vt9jbch8.js";
35
+ } from "../../chunks/shared-events-vt9jbch8.js";
36
36
  export {
37
37
  isAgentNotFoundError2 as isAgentNotFoundError,
38
38
  isCommandExecutionError2 as isCommandExecutionError,
@@ -1,13 +1,13 @@
1
- import"../chunks/rpc-runtime-m2eywc8w.js";
1
+ import"../chunks/shared-events-m2eywc8w.js";
2
2
  import {
3
- exports_client3
4
- } from "../chunks/rpc-runtime-wjyeq25y.js";
5
- import"../chunks/rpc-runtime-vyas3vgt.js";
6
- import"../chunks/rpc-runtime-ecs5ftka.js";
7
- import"../chunks/rpc-runtime-1y4a697q.js";
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
8
  import {
9
- ClientError3
10
- } from "../chunks/rpc-runtime-nwcpakzx.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/rpc-runtime-vt9jbch8.js";
46
- import"../chunks/rpc-runtime-frbwqjmf.js";
45
+ } from "../chunks/shared-events-vt9jbch8.js";
46
+ import"../chunks/shared-events-frbwqjmf.js";
47
47
  export {
48
- ClientError3 as ClientError,
49
- exports_client3 as OpenCode,
48
+ ClientError2 as ClientError,
49
+ exports_client as OpenCode,
50
50
  isAgentNotFoundError2 as isAgentNotFoundError,
51
51
  isCommandExecutionError2 as isCommandExecutionError,
52
52
  isCommandNotFoundError2 as isCommandNotFoundError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  makeRpc2
3
- } from "../chunks/rpc-runtime-1y4a697q.js";
4
- import"../chunks/rpc-runtime-vt9jbch8.js";
3
+ } from "../chunks/shared-events-1y4a697q.js";
4
+ import"../chunks/shared-events-vt9jbch8.js";
5
5
  export {
6
6
  makeRpc2 as makeRpc
7
7
  };
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  spawnServiceContender2,
3
3
  contenderPool2
4
- } from "../chunks/rpc-runtime-ve4aws36.js";
4
+ } from "../chunks/shared-events-ve4aws36.js";
5
5
  import {
6
6
  defaultEnsureTiming2,
7
7
  ensureTiming2
8
- } from "../chunks/rpc-runtime-xgnj2w4v.js";
8
+ } from "../chunks/shared-events-xgnj2w4v.js";
9
9
  import {
10
10
  matchesVersion2
11
- } from "../chunks/rpc-runtime-sxt88q69.js";
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/rpc-runtime-gx9wnkzr.js";
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/rpc-runtime-2ny4vxct.js";
25
- import"../chunks/rpc-runtime-qav6mfdz.js";
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";
@@ -4,7 +4,7 @@ import {
4
4
  complete2,
5
5
  clear2,
6
6
  exports_pty_handoff
7
- } from "./chunks/rpc-runtime-gx9wnkzr.js";
7
+ } from "./chunks/shared-events-p2772a31.js";
8
8
  export {
9
9
  exports_pty_handoff as PtyHandoff,
10
10
  clear2 as clear,
@@ -4,7 +4,7 @@ import {
4
4
  event2,
5
5
  eventType2,
6
6
  exports_rpc_runtime
7
- } from "./chunks/rpc-runtime-t1xa31vm.js";
7
+ } from "./chunks/shared-events-t1xa31vm.js";
8
8
  export {
9
9
  exports_rpc_runtime as RpcRuntime,
10
10
  event2 as event,
@@ -2,7 +2,7 @@ import {
2
2
  spawnServiceContender2,
3
3
  contenderPool2,
4
4
  contenderFinished2
5
- } from "./chunks/rpc-runtime-ve4aws36.js";
5
+ } from "./chunks/shared-events-ve4aws36.js";
6
6
  export {
7
7
  contenderFinished2 as contenderFinished,
8
8
  contenderPool2 as contenderPool,
@@ -4,9 +4,9 @@ import {
4
4
  same2,
5
5
  probeResult2,
6
6
  headers2
7
- } from "./chunks/rpc-runtime-2ny4vxct.js";
8
- import"./chunks/rpc-runtime-sxt88q69.js";
9
- import"./chunks/rpc-runtime-xgnj2w4v.js";
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,
@@ -2,7 +2,7 @@ import {
2
2
  defaultEnsureTiming2,
3
3
  ensureTiming2,
4
4
  withEnsureTiming2
5
- } from "./chunks/rpc-runtime-xgnj2w4v.js";
5
+ } from "./chunks/shared-events-xgnj2w4v.js";
6
6
  export {
7
7
  defaultEnsureTiming2 as defaultEnsureTiming,
8
8
  ensureTiming2 as ensureTiming,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  matchesVersion2
3
- } from "./chunks/rpc-runtime-sxt88q69.js";
3
+ } from "./chunks/shared-events-sxt88q69.js";
4
4
  export {
5
5
  matchesVersion2 as matchesVersion
6
6
  };
package/dist/service.js CHANGED
@@ -1 +1 @@
1
- import"./chunks/rpc-runtime-qav6mfdz.js";
1
+ import"./chunks/shared-events-qav6mfdz.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make7,
3
3
  exports_shared_events
4
- } from "./chunks/rpc-runtime-frbwqjmf.js";
4
+ } from "./chunks/shared-events-frbwqjmf.js";
5
5
  export {
6
6
  exports_shared_events as SharedEvents,
7
7
  make7 as make
@@ -2,7 +2,7 @@ import {
2
2
  defaultIdleTimeout2,
3
3
  foregroundIdleThreshold2,
4
4
  createClientConnection2
5
- } from "../chunks/rpc-runtime-ydhz1zrh.js";
5
+ } from "../chunks/shared-events-ydhz1zrh.js";
6
6
  export {
7
7
  createClientConnection2 as createClientConnection,
8
8
  defaultIdleTimeout2 as defaultIdleTimeout,
@@ -2,15 +2,15 @@ import {
2
2
  settleMs2,
3
3
  locationKey2,
4
4
  createData2
5
- } from "../chunks/rpc-runtime-m77rqa4a.js";
6
- import"../chunks/rpc-runtime-m2eywc8w.js";
7
- import"../chunks/rpc-runtime-wjyeq25y.js";
8
- import"../chunks/rpc-runtime-vyas3vgt.js";
9
- import"../chunks/rpc-runtime-ecs5ftka.js";
10
- import"../chunks/rpc-runtime-1y4a697q.js";
11
- import"../chunks/rpc-runtime-nwcpakzx.js";
12
- import"../chunks/rpc-runtime-vt9jbch8.js";
13
- import"../chunks/rpc-runtime-frbwqjmf.js";
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,
@@ -1,28 +1,28 @@
1
- import"../chunks/rpc-runtime-nwcpakzx.js";
2
- import"../chunks/rpc-runtime-ecs5ftka.js";
3
- import"../chunks/rpc-runtime-vt9jbch8.js";
4
- import"../chunks/rpc-runtime-vyas3vgt.js";
5
- import"../chunks/rpc-runtime-frbwqjmf.js";
6
- import"../chunks/rpc-runtime-1y4a697q.js";
7
- import"../chunks/rpc-runtime-wjyeq25y.js";
8
- import"../chunks/rpc-runtime-m2eywc8w.js";
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/rpc-runtime-m77rqa4a.js";
13
+ } from "../chunks/shared-events-m77rqa4a.js";
14
14
  import {
15
15
  defaultIdleTimeout2,
16
16
  foregroundIdleThreshold2,
17
17
  createClientConnection2
18
- } from "../chunks/rpc-runtime-ydhz1zrh.js";
18
+ } from "../chunks/shared-events-ydhz1zrh.js";
19
19
  import {
20
20
  createPtyClient2,
21
21
  createPersistentPtyClient2
22
- } from "../chunks/rpc-runtime-gne7h7mq.js";
22
+ } from "../chunks/shared-events-gne7h7mq.js";
23
23
  import {
24
24
  lastAssistantWithUsage2
25
- } from "../chunks/rpc-runtime-8s2anffy.js";
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
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createPtyClient2,
3
3
  createPersistentPtyClient2
4
- } from "../chunks/rpc-runtime-gne7h7mq.js";
4
+ } from "../chunks/shared-events-gne7h7mq.js";
5
5
  export {
6
6
  createPersistentPtyClient2 as createPersistentPtyClient,
7
7
  createPtyClient2 as createPtyClient
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  lastAssistantWithUsage2
3
- } from "../chunks/rpc-runtime-8s2anffy.js";
3
+ } from "../chunks/shared-events-8s2anffy.js";
4
4
  export {
5
5
  lastAssistantWithUsage2 as lastAssistantWithUsage
6
6
  };
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-21085",
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-21085",
61
- "@opencode/protocol": "0.0.0-dev-21085"
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-21085",
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
- 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 };