@opencode/client 0.0.0-dev-21603 → 0.0.0-dev-21614

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/{service-probe-8ye1ye6f.js → service-version-2ny4vxct.js} +2 -2
  2. package/dist/chunks/{service-probe-1wp7yhqk.js → service-version-2qav067b.js} +16 -11
  3. package/dist/chunks/{service-probe-8bbb028w.js → service-version-8bbb028w.js} +1 -1
  4. package/dist/chunks/{service-probe-q8jx5gjp.js → service-version-8s9dwebd.js} +17 -17
  5. package/dist/chunks/{service-probe-anregfhs.js → service-version-9j12j8xw.js} +5 -5
  6. package/dist/chunks/{service-probe-0yt83ffw.js → service-version-bw17jdw4.js} +1 -1
  7. package/dist/chunks/{service-probe-ezt8t3fk.js → service-version-c46qzyff.js} +2 -2
  8. package/dist/chunks/{service-probe-3gaxfvs6.js → service-version-fmza27wn.js} +30 -19
  9. package/dist/chunks/{service-probe-61wt4y9h.js → service-version-g9ajxfy0.js} +1 -1
  10. package/dist/chunks/{service-probe-js54wxgp.js → service-version-nwcpakzx.js} +2 -2
  11. package/dist/chunks/service-version-phpywnth.js +30 -0
  12. package/dist/chunks/{service-probe-ryy6kscr.js → service-version-ryy6kscr.js} +1 -1
  13. package/dist/chunks/{service-probe-6vp15eh6.js → service-version-skhp7hxc.js} +1 -1
  14. package/dist/chunks/{service-probe-7f0py9js.js → service-version-y2etg5bs.js} +2 -2
  15. package/dist/contract.js +1 -1
  16. package/dist/effect/api/api.d.ts +16 -1
  17. package/dist/effect/client.d.ts +3 -0
  18. package/dist/effect/client.js +12 -12
  19. package/dist/effect/generated/client-error.js +3 -3
  20. package/dist/effect/generated/client.d.ts +4 -1
  21. package/dist/effect/generated/client.js +5 -5
  22. package/dist/effect/generated/index.js +8 -8
  23. package/dist/effect/index.js +12 -12
  24. package/dist/effect/rpc.js +4 -4
  25. package/dist/effect/service.js +6 -6
  26. package/dist/promise/client.d.ts +3 -0
  27. package/dist/promise/client.js +11 -11
  28. package/dist/promise/generated/client-error.js +3 -3
  29. package/dist/promise/generated/client.d.ts +4 -1
  30. package/dist/promise/generated/client.js +4 -4
  31. package/dist/promise/generated/index.js +9 -9
  32. package/dist/promise/generated/types.d.ts +30 -9
  33. package/dist/promise/generated/types.js +2 -2
  34. package/dist/promise/index.js +13 -13
  35. package/dist/promise/rpc.js +2 -2
  36. package/dist/promise/service.js +6 -6
  37. package/dist/pty-handoff.js +1 -1
  38. package/dist/rpc-runtime.js +1 -1
  39. package/dist/service-contender.js +1 -1
  40. package/dist/service-probe.js +3 -3
  41. package/dist/service-timing.js +1 -1
  42. package/dist/service-version.js +1 -1
  43. package/dist/service.js +1 -1
  44. package/dist/shared-events.js +1 -1
  45. package/dist/solid/connection.js +1 -1
  46. package/dist/solid/data.js +9 -9
  47. package/dist/solid/index.js +12 -12
  48. package/dist/solid/pty.js +1 -1
  49. package/dist/solid/usage.js +1 -1
  50. package/package.json +4 -4
  51. package/dist/chunks/service-probe-2kam2gy2.js +0 -30
  52. /package/dist/chunks/{service-probe-6mptkzbc.js → service-version-6mptkzbc.js} +0 -0
  53. /package/dist/chunks/{service-probe-8s2anffy.js → service-version-8s2anffy.js} +0 -0
  54. /package/dist/chunks/{service-probe-9rqn6x4v.js → service-version-9rqn6x4v.js} +0 -0
  55. /package/dist/chunks/{service-probe-gne7h7mq.js → service-version-gne7h7mq.js} +0 -0
  56. /package/dist/chunks/{service-probe-m2eywc8w.js → service-version-m2eywc8w.js} +0 -0
  57. /package/dist/chunks/{service-probe-qav6mfdz.js → service-version-qav6mfdz.js} +0 -0
  58. /package/dist/chunks/{service-probe-sxt88q69.js → service-version-sxt88q69.js} +0 -0
  59. /package/dist/chunks/{service-probe-ve4aws36.js → service-version-ve4aws36.js} +0 -0
  60. /package/dist/chunks/{service-probe-vmytr4q8.js → service-version-vmytr4q8.js} +0 -0
  61. /package/dist/chunks/{service-probe-vyas3vgt.js → service-version-vyas3vgt.js} +0 -0
  62. /package/dist/chunks/{service-probe-xgnj2w4v.js → service-version-xgnj2w4v.js} +0 -0
  63. /package/dist/chunks/{service-probe-ydhz1zrh.js → service-version-ydhz1zrh.js} +0 -0
@@ -1,15 +1,15 @@
1
1
  import {
2
- ClientError3
3
- } from "../chunks/service-probe-7f0py9js.js";
4
- import"../chunks/service-probe-vmytr4q8.js";
5
- import"../chunks/service-probe-1wp7yhqk.js";
6
- import"../chunks/service-probe-6mptkzbc.js";
7
- import"../chunks/service-probe-8bbb028w.js";
8
- import"../chunks/service-probe-ryy6kscr.js";
9
- import"../chunks/service-probe-anregfhs.js";
2
+ ClientError2
3
+ } from "../chunks/service-version-y2etg5bs.js";
4
+ import"../chunks/service-version-vmytr4q8.js";
5
+ import"../chunks/service-version-2qav067b.js";
6
+ import"../chunks/service-version-6mptkzbc.js";
7
+ import"../chunks/service-version-8bbb028w.js";
8
+ import"../chunks/service-version-ryy6kscr.js";
9
+ import"../chunks/service-version-9j12j8xw.js";
10
10
  import {
11
- exports_client3
12
- } from "../chunks/service-probe-q8jx5gjp.js";
11
+ exports_client
12
+ } from "../chunks/service-version-8s9dwebd.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
- ClientError3 as ClientError,
46
+ ClientError2 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
- exports_client3 as OpenCode,
57
+ exports_client as OpenCode,
58
58
  Permission,
59
59
  PermissionSaved,
60
60
  Project,
@@ -1,11 +1,11 @@
1
1
  import {
2
- make5,
2
+ make4,
3
3
  aborted2,
4
4
  exports_rpc
5
- } from "../chunks/service-probe-anregfhs.js";
6
- import"../chunks/service-probe-ryy6kscr.js";
5
+ } from "../chunks/service-version-9j12j8xw.js";
6
+ import"../chunks/service-version-ryy6kscr.js";
7
7
  export {
8
8
  exports_rpc as RpcClientRuntime,
9
9
  aborted2 as aborted,
10
- make5 as make
10
+ make4 as make
11
11
  };
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  spawnServiceContender2,
3
3
  contenderPool2
4
- } from "../chunks/service-probe-ve4aws36.js";
4
+ } from "../chunks/service-version-ve4aws36.js";
5
5
  import {
6
6
  defaultEnsureTiming2,
7
7
  ensureTiming2
8
- } from "../chunks/service-probe-xgnj2w4v.js";
8
+ } from "../chunks/service-version-xgnj2w4v.js";
9
9
  import {
10
10
  matchesVersion2
11
- } from "../chunks/service-probe-sxt88q69.js";
11
+ } from "../chunks/service-version-sxt88q69.js";
12
12
  import {
13
13
  prepare2,
14
14
  environment2,
15
15
  complete2,
16
16
  clear2
17
- } from "../chunks/service-probe-0yt83ffw.js";
17
+ } from "../chunks/service-version-bw17jdw4.js";
18
18
  import {
19
19
  decide2,
20
20
  fallback2,
21
21
  same2,
22
22
  probeResult2,
23
23
  headers2
24
- } from "../chunks/service-probe-8ye1ye6f.js";
25
- import"../chunks/service-probe-qav6mfdz.js";
24
+ } from "../chunks/service-version-2ny4vxct.js";
25
+ import"../chunks/service-version-qav6mfdz.js";
26
26
 
27
27
  // src/effect/service.ts
28
28
  import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
@@ -143,6 +143,9 @@ export declare function make(options: ClientOptions): {
143
143
  resource: {
144
144
  catalog: (input?: import("./index.js").McpResourceCatalogInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").McpResourceCatalogOutput>;
145
145
  };
146
+ client: {
147
+ token: (input: import("./index.js").McpClientTokenInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").McpClientTokenOutput>;
148
+ };
146
149
  };
147
150
  credential: {
148
151
  list: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").CredentialEntry[]>;
@@ -1,14 +1,14 @@
1
1
  import {
2
- make2,
3
- exports_client
4
- } from "../chunks/service-probe-2kam2gy2.js";
5
- import"../chunks/service-probe-6vp15eh6.js";
6
- import"../chunks/service-probe-vyas3vgt.js";
7
- import"../chunks/service-probe-ezt8t3fk.js";
8
- import"../chunks/service-probe-3gaxfvs6.js";
9
- import"../chunks/service-probe-js54wxgp.js";
10
- import"../chunks/service-probe-8bbb028w.js";
2
+ make5,
3
+ exports_client3
4
+ } from "../chunks/service-version-phpywnth.js";
5
+ import"../chunks/service-version-vyas3vgt.js";
6
+ import"../chunks/service-version-skhp7hxc.js";
7
+ import"../chunks/service-version-c46qzyff.js";
8
+ import"../chunks/service-version-fmza27wn.js";
9
+ import"../chunks/service-version-nwcpakzx.js";
10
+ import"../chunks/service-version-8bbb028w.js";
11
11
  export {
12
- exports_client as OpenCode,
13
- make2 as make
12
+ exports_client3 as OpenCode,
13
+ make5 as make
14
14
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
- ClientError2
3
- } from "../../chunks/service-probe-js54wxgp.js";
2
+ ClientError3
3
+ } from "../../chunks/service-version-nwcpakzx.js";
4
4
  export {
5
- ClientError2 as ClientError
5
+ ClientError3 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, 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";
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, McpClientTokenInput, McpClientTokenOutput, 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;
@@ -150,6 +150,9 @@ export declare function make(options: ClientOptions): {
150
150
  resource: {
151
151
  catalog: (input?: McpResourceCatalogInput, requestOptions?: RequestOptions) => Promise<McpResourceCatalogOutput>;
152
152
  };
153
+ client: {
154
+ token: (input: McpClientTokenInput, requestOptions?: RequestOptions) => Promise<McpClientTokenOutput>;
155
+ };
153
156
  };
154
157
  credential: {
155
158
  list: (requestOptions?: RequestOptions) => Promise<import("./types.js").CredentialEntry[]>;
@@ -1,7 +1,7 @@
1
1
  import {
2
- make3
3
- } from "../../chunks/service-probe-3gaxfvs6.js";
4
- import"../../chunks/service-probe-js54wxgp.js";
2
+ make6
3
+ } from "../../chunks/service-version-fmza27wn.js";
4
+ import"../../chunks/service-version-nwcpakzx.js";
5
5
  export {
6
- make3 as make
6
+ make6 as make
7
7
  };
@@ -1,4 +1,4 @@
1
- import"../../chunks/service-probe-vyas3vgt.js";
1
+ import"../../chunks/service-version-vyas3vgt.js";
2
2
  import {
3
3
  isInvalidRequestError2,
4
4
  isUnauthorizedError2,
@@ -23,6 +23,7 @@ import {
23
23
  isIntegrationAttemptNotFoundError2,
24
24
  isIntegrationMethodNotFoundError2,
25
25
  isMcpServerNotFoundError2,
26
+ isForbiddenError2,
26
27
  isProjectNotFoundError2,
27
28
  isPermissionSavedNotFoundError2,
28
29
  isPermissionNotFoundError2,
@@ -30,20 +31,19 @@ import {
30
31
  isRpcError2,
31
32
  isRpcInternalError2,
32
33
  isPtyNotFoundError2,
33
- isForbiddenError2,
34
34
  isShellNotFoundError2,
35
35
  isWorktreeError2,
36
36
  isVcsInitNotSupportedError2
37
- } from "../../chunks/service-probe-ezt8t3fk.js";
37
+ } from "../../chunks/service-version-c46qzyff.js";
38
38
  import {
39
- exports_client2
40
- } from "../../chunks/service-probe-3gaxfvs6.js";
39
+ exports_client4
40
+ } from "../../chunks/service-version-fmza27wn.js";
41
41
  import {
42
- ClientError2
43
- } from "../../chunks/service-probe-js54wxgp.js";
42
+ ClientError3
43
+ } from "../../chunks/service-version-nwcpakzx.js";
44
44
  export {
45
- ClientError2 as ClientError,
46
- exports_client2 as OpenCode,
45
+ ClientError3 as ClientError,
46
+ exports_client4 as OpenCode,
47
47
  isAgentNotFoundError2 as isAgentNotFoundError,
48
48
  isCommandExecutionError2 as isCommandExecutionError,
49
49
  isCommandNotFoundError2 as isCommandNotFoundError,
@@ -347,6 +347,10 @@ export type McpResourceTemplate = {
347
347
  description?: string;
348
348
  mimeType?: string;
349
349
  };
350
+ export type PtyTicketConnectToken = {
351
+ ticket: string;
352
+ expires_in: number;
353
+ };
350
354
  export type CredentialKey = {
351
355
  type: "key";
352
356
  key: string;
@@ -412,10 +416,6 @@ export type SessionStatus = {
412
416
  } | {
413
417
  type: "busy";
414
418
  };
415
- export type PtyTicketConnectToken = {
416
- ticket: string;
417
- expires_in: number;
418
- };
419
419
  export type PersistentPtyHandoff = {
420
420
  directory: string;
421
421
  instanceID: string;
@@ -3632,6 +3632,11 @@ export type McpServerNotFoundError = {
3632
3632
  readonly message: string;
3633
3633
  };
3634
3634
  export declare const isMcpServerNotFoundError: (value: unknown) => value is McpServerNotFoundError;
3635
+ export type ForbiddenError = {
3636
+ readonly _tag: "ForbiddenError";
3637
+ readonly message: string;
3638
+ };
3639
+ export declare const isForbiddenError: (value: unknown) => value is ForbiddenError;
3635
3640
  export type ProjectNotFoundError = {
3636
3641
  readonly _tag: "ProjectNotFoundError";
3637
3642
  readonly projectID: string;
@@ -3676,11 +3681,6 @@ export type PtyNotFoundError = {
3676
3681
  readonly message: string;
3677
3682
  };
3678
3683
  export declare const isPtyNotFoundError: (value: unknown) => value is PtyNotFoundError;
3679
- export type ForbiddenError = {
3680
- readonly _tag: "ForbiddenError";
3681
- readonly message: string;
3682
- };
3683
- export declare const isForbiddenError: (value: unknown) => value is ForbiddenError;
3684
3684
  export type ShellNotFoundError = {
3685
3685
  readonly _tag: "ShellNotFoundError";
3686
3686
  readonly id: string;
@@ -6598,6 +6598,27 @@ export type McpResourceCatalogOutput = {
6598
6598
  location: LocationPublicRef;
6599
6599
  data: McpResourceCatalog;
6600
6600
  };
6601
+ export type McpClientTokenInput = {
6602
+ readonly location?: {
6603
+ readonly location?: {
6604
+ readonly directory?: string | undefined;
6605
+ } | undefined;
6606
+ readonly name: string;
6607
+ }["location"];
6608
+ readonly name: {
6609
+ readonly location?: {
6610
+ readonly directory?: string | undefined;
6611
+ } | undefined;
6612
+ readonly name: string;
6613
+ }["name"];
6614
+ readonly "x-opencode-ticket"?: {
6615
+ readonly "x-opencode-ticket"?: string | undefined;
6616
+ }["x-opencode-ticket"];
6617
+ };
6618
+ export type McpClientTokenOutput = {
6619
+ location: LocationPublicRef;
6620
+ data: PtyTicketConnectToken;
6621
+ };
6601
6622
  export type CredentialListOutput = {
6602
6623
  data: Array<CredentialEntry>;
6603
6624
  }["data"];
@@ -22,6 +22,7 @@ import {
22
22
  isIntegrationAttemptNotFoundError2,
23
23
  isIntegrationMethodNotFoundError2,
24
24
  isMcpServerNotFoundError2,
25
+ isForbiddenError2,
25
26
  isProjectNotFoundError2,
26
27
  isPermissionSavedNotFoundError2,
27
28
  isPermissionNotFoundError2,
@@ -29,11 +30,10 @@ import {
29
30
  isRpcError2,
30
31
  isRpcInternalError2,
31
32
  isPtyNotFoundError2,
32
- isForbiddenError2,
33
33
  isShellNotFoundError2,
34
34
  isWorktreeError2,
35
35
  isVcsInitNotSupportedError2
36
- } from "../../chunks/service-probe-ezt8t3fk.js";
36
+ } from "../../chunks/service-version-c46qzyff.js";
37
37
  export {
38
38
  isAgentNotFoundError2 as isAgentNotFoundError,
39
39
  isCommandExecutionError2 as isCommandExecutionError,
@@ -1,9 +1,9 @@
1
- import"../chunks/service-probe-m2eywc8w.js";
1
+ import"../chunks/service-version-m2eywc8w.js";
2
2
  import {
3
- exports_client
4
- } from "../chunks/service-probe-2kam2gy2.js";
5
- import"../chunks/service-probe-6vp15eh6.js";
6
- import"../chunks/service-probe-vyas3vgt.js";
3
+ exports_client3
4
+ } from "../chunks/service-version-phpywnth.js";
5
+ import"../chunks/service-version-vyas3vgt.js";
6
+ import"../chunks/service-version-skhp7hxc.js";
7
7
  import {
8
8
  isInvalidRequestError2,
9
9
  isUnauthorizedError2,
@@ -28,6 +28,7 @@ import {
28
28
  isIntegrationAttemptNotFoundError2,
29
29
  isIntegrationMethodNotFoundError2,
30
30
  isMcpServerNotFoundError2,
31
+ isForbiddenError2,
31
32
  isProjectNotFoundError2,
32
33
  isPermissionSavedNotFoundError2,
33
34
  isPermissionNotFoundError2,
@@ -35,19 +36,18 @@ import {
35
36
  isRpcError2,
36
37
  isRpcInternalError2,
37
38
  isPtyNotFoundError2,
38
- isForbiddenError2,
39
39
  isShellNotFoundError2,
40
40
  isWorktreeError2,
41
41
  isVcsInitNotSupportedError2
42
- } from "../chunks/service-probe-ezt8t3fk.js";
43
- import"../chunks/service-probe-3gaxfvs6.js";
42
+ } from "../chunks/service-version-c46qzyff.js";
43
+ import"../chunks/service-version-fmza27wn.js";
44
44
  import {
45
- ClientError2
46
- } from "../chunks/service-probe-js54wxgp.js";
47
- import"../chunks/service-probe-8bbb028w.js";
45
+ ClientError3
46
+ } from "../chunks/service-version-nwcpakzx.js";
47
+ import"../chunks/service-version-8bbb028w.js";
48
48
  export {
49
- ClientError2 as ClientError,
50
- exports_client as OpenCode,
49
+ ClientError3 as ClientError,
50
+ exports_client3 as OpenCode,
51
51
  isAgentNotFoundError2 as isAgentNotFoundError,
52
52
  isCommandExecutionError2 as isCommandExecutionError,
53
53
  isCommandNotFoundError2 as isCommandNotFoundError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  makeRpc2
3
- } from "../chunks/service-probe-6vp15eh6.js";
4
- import"../chunks/service-probe-ezt8t3fk.js";
3
+ } from "../chunks/service-version-skhp7hxc.js";
4
+ import"../chunks/service-version-c46qzyff.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/service-probe-ve4aws36.js";
4
+ } from "../chunks/service-version-ve4aws36.js";
5
5
  import {
6
6
  defaultEnsureTiming2,
7
7
  ensureTiming2
8
- } from "../chunks/service-probe-xgnj2w4v.js";
8
+ } from "../chunks/service-version-xgnj2w4v.js";
9
9
  import {
10
10
  matchesVersion2
11
- } from "../chunks/service-probe-sxt88q69.js";
11
+ } from "../chunks/service-version-sxt88q69.js";
12
12
  import {
13
13
  prepare2,
14
14
  environment2,
15
15
  complete2,
16
16
  clear2
17
- } from "../chunks/service-probe-0yt83ffw.js";
17
+ } from "../chunks/service-version-bw17jdw4.js";
18
18
  import {
19
19
  decide2,
20
20
  fallback2,
21
21
  same2,
22
22
  probeResult2,
23
23
  headers2
24
- } from "../chunks/service-probe-8ye1ye6f.js";
25
- import"../chunks/service-probe-qav6mfdz.js";
24
+ } from "../chunks/service-version-2ny4vxct.js";
25
+ import"../chunks/service-version-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/service-probe-0yt83ffw.js";
7
+ } from "./chunks/service-version-bw17jdw4.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/service-probe-ryy6kscr.js";
7
+ } from "./chunks/service-version-ryy6kscr.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/service-probe-ve4aws36.js";
5
+ } from "./chunks/service-version-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/service-probe-8ye1ye6f.js";
8
- import"./chunks/service-probe-xgnj2w4v.js";
9
- import"./chunks/service-probe-sxt88q69.js";
7
+ } from "./chunks/service-version-2ny4vxct.js";
8
+ import"./chunks/service-version-sxt88q69.js";
9
+ import"./chunks/service-version-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/service-probe-xgnj2w4v.js";
5
+ } from "./chunks/service-version-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/service-probe-sxt88q69.js";
3
+ } from "./chunks/service-version-sxt88q69.js";
4
4
  export {
5
5
  matchesVersion2 as matchesVersion
6
6
  };
package/dist/service.js CHANGED
@@ -1 +1 @@
1
- import"./chunks/service-probe-qav6mfdz.js";
1
+ import"./chunks/service-version-qav6mfdz.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make7,
3
3
  exports_shared_events
4
- } from "./chunks/service-probe-8bbb028w.js";
4
+ } from "./chunks/service-version-8bbb028w.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/service-probe-ydhz1zrh.js";
5
+ } from "../chunks/service-version-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/service-probe-61wt4y9h.js";
6
- import"../chunks/service-probe-m2eywc8w.js";
7
- import"../chunks/service-probe-2kam2gy2.js";
8
- import"../chunks/service-probe-6vp15eh6.js";
9
- import"../chunks/service-probe-vyas3vgt.js";
10
- import"../chunks/service-probe-ezt8t3fk.js";
11
- import"../chunks/service-probe-3gaxfvs6.js";
12
- import"../chunks/service-probe-js54wxgp.js";
13
- import"../chunks/service-probe-8bbb028w.js";
5
+ } from "../chunks/service-version-g9ajxfy0.js";
6
+ import"../chunks/service-version-m2eywc8w.js";
7
+ import"../chunks/service-version-phpywnth.js";
8
+ import"../chunks/service-version-vyas3vgt.js";
9
+ import"../chunks/service-version-skhp7hxc.js";
10
+ import"../chunks/service-version-c46qzyff.js";
11
+ import"../chunks/service-version-fmza27wn.js";
12
+ import"../chunks/service-version-nwcpakzx.js";
13
+ import"../chunks/service-version-8bbb028w.js";
14
14
  export {
15
15
  createData2 as createData,
16
16
  locationKey2 as locationKey,
@@ -1,28 +1,28 @@
1
- import"../chunks/service-probe-js54wxgp.js";
2
- import"../chunks/service-probe-3gaxfvs6.js";
3
- import"../chunks/service-probe-ezt8t3fk.js";
4
- import"../chunks/service-probe-vyas3vgt.js";
5
- import"../chunks/service-probe-8bbb028w.js";
6
- import"../chunks/service-probe-6vp15eh6.js";
7
- import"../chunks/service-probe-2kam2gy2.js";
8
- import"../chunks/service-probe-m2eywc8w.js";
1
+ import"../chunks/service-version-nwcpakzx.js";
2
+ import"../chunks/service-version-fmza27wn.js";
3
+ import"../chunks/service-version-c46qzyff.js";
4
+ import"../chunks/service-version-vyas3vgt.js";
5
+ import"../chunks/service-version-8bbb028w.js";
6
+ import"../chunks/service-version-skhp7hxc.js";
7
+ import"../chunks/service-version-phpywnth.js";
8
+ import"../chunks/service-version-m2eywc8w.js";
9
9
  import {
10
10
  settleMs2,
11
11
  locationKey2,
12
12
  createData2
13
- } from "../chunks/service-probe-61wt4y9h.js";
13
+ } from "../chunks/service-version-g9ajxfy0.js";
14
14
  import {
15
15
  defaultIdleTimeout2,
16
16
  foregroundIdleThreshold2,
17
17
  createClientConnection2
18
- } from "../chunks/service-probe-ydhz1zrh.js";
18
+ } from "../chunks/service-version-ydhz1zrh.js";
19
19
  import {
20
20
  createPtyClient2,
21
21
  createPersistentPtyClient2
22
- } from "../chunks/service-probe-gne7h7mq.js";
22
+ } from "../chunks/service-version-gne7h7mq.js";
23
23
  import {
24
24
  lastAssistantWithUsage2
25
- } from "../chunks/service-probe-8s2anffy.js";
25
+ } from "../chunks/service-version-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/service-probe-gne7h7mq.js";
4
+ } from "../chunks/service-version-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/service-probe-8s2anffy.js";
3
+ } from "../chunks/service-version-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-21603",
4
+ "version": "0.0.0-dev-21614",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -61,8 +61,8 @@
61
61
  "typecheck": "tsc --noEmit"
62
62
  },
63
63
  "dependencies": {
64
- "@opencode/schema": "0.0.0-dev-21603",
65
- "@opencode/protocol": "0.0.0-dev-21603"
64
+ "@opencode/schema": "0.0.0-dev-21614",
65
+ "@opencode/protocol": "0.0.0-dev-21614"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "effect": "4.0.1",
@@ -79,7 +79,7 @@
79
79
  "devDependencies": {
80
80
  "@effect/platform-node": "4.0.1",
81
81
  "@modelcontextprotocol/client": "2.0.0",
82
- "@opencode/httpapi-codegen": "0.0.0-dev-21603",
82
+ "@opencode/httpapi-codegen": "0.0.0-dev-21614",
83
83
  "@tsconfig/bun": "1.0.9",
84
84
  "@types/bun": "1.4.3",
85
85
  "@typescript/native": "npm:typescript@7.0.2",