@opencode/client 0.0.0-dev-20303 → 0.0.0-dev-20307

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 (59) hide show
  1. package/dist/chunks/{shared-events-1tbj6z39.js → pty-handoff-1tbj6z39.js} +1 -1
  2. package/dist/chunks/{shared-events-za5s8wze.js → pty-handoff-6tf2bay6.js} +22 -10
  3. package/dist/chunks/{shared-events-y2etg5bs.js → pty-handoff-7f0py9js.js} +2 -2
  4. package/dist/chunks/{shared-events-n8g24fq8.js → pty-handoff-8wk26zth.js} +34 -19
  5. package/dist/chunks/{shared-events-frbwqjmf.js → pty-handoff-frbwqjmf.js} +1 -1
  6. package/dist/chunks/{shared-events-h11j9btw.js → pty-handoff-h11j9btw.js} +1 -1
  7. package/dist/chunks/{shared-events-nwcpakzx.js → pty-handoff-js54wxgp.js} +2 -2
  8. package/dist/chunks/{shared-events-47hsxm5z.js → pty-handoff-p1ns5v1v.js} +1 -1
  9. package/dist/chunks/{shared-events-t1xa31vm.js → pty-handoff-t1xa31vm.js} +1 -1
  10. package/dist/chunks/pty-handoff-w0z44nwf.js +30 -0
  11. package/dist/chunks/{shared-events-65kht65h.js → pty-handoff-w1w809zr.js} +5 -5
  12. package/dist/chunks/{shared-events-vzz071z7.js → pty-handoff-ycfn3pba.js} +17 -17
  13. package/dist/contract.js +1 -1
  14. package/dist/effect/api/api.d.ts +13 -0
  15. package/dist/effect/client.d.ts +2 -0
  16. package/dist/effect/client.js +12 -12
  17. package/dist/effect/generated/client-error.js +3 -3
  18. package/dist/effect/generated/client.d.ts +3 -1
  19. package/dist/effect/generated/client.js +5 -5
  20. package/dist/effect/generated/index.js +8 -8
  21. package/dist/effect/index.js +12 -12
  22. package/dist/effect/rpc.js +4 -4
  23. package/dist/effect/service.js +5 -5
  24. package/dist/promise/client.d.ts +2 -0
  25. package/dist/promise/client.js +11 -11
  26. package/dist/promise/generated/client-error.js +3 -3
  27. package/dist/promise/generated/client.d.ts +3 -1
  28. package/dist/promise/generated/client.js +4 -4
  29. package/dist/promise/generated/index.js +8 -8
  30. package/dist/promise/generated/types.d.ts +161 -2
  31. package/dist/promise/generated/types.js +1 -1
  32. package/dist/promise/index.js +12 -12
  33. package/dist/promise/rpc.js +2 -2
  34. package/dist/promise/service.js +5 -5
  35. package/dist/pty-handoff.js +1 -1
  36. package/dist/rpc-runtime.js +1 -1
  37. package/dist/service-contender.js +1 -1
  38. package/dist/service-timing.js +1 -1
  39. package/dist/service-version.js +1 -1
  40. package/dist/service.js +1 -1
  41. package/dist/shared-events.js +1 -1
  42. package/dist/solid/connection.js +1 -1
  43. package/dist/solid/data.js +9 -9
  44. package/dist/solid/index.js +11 -11
  45. package/dist/solid/pty.js +1 -1
  46. package/package.json +4 -4
  47. package/dist/chunks/shared-events-gx437w19.js +0 -30
  48. /package/dist/chunks/{shared-events-4tveyqeh.js → pty-handoff-4tveyqeh.js} +0 -0
  49. /package/dist/chunks/{shared-events-6mptkzbc.js → pty-handoff-6mptkzbc.js} +0 -0
  50. /package/dist/chunks/{shared-events-9rqn6x4v.js → pty-handoff-9rqn6x4v.js} +0 -0
  51. /package/dist/chunks/{shared-events-gne7h7mq.js → pty-handoff-gne7h7mq.js} +0 -0
  52. /package/dist/chunks/{shared-events-m2eywc8w.js → pty-handoff-m2eywc8w.js} +0 -0
  53. /package/dist/chunks/{shared-events-qav6mfdz.js → pty-handoff-qav6mfdz.js} +0 -0
  54. /package/dist/chunks/{shared-events-sxt88q69.js → pty-handoff-sxt88q69.js} +0 -0
  55. /package/dist/chunks/{shared-events-txckps9j.js → pty-handoff-txckps9j.js} +0 -0
  56. /package/dist/chunks/{shared-events-vmytr4q8.js → pty-handoff-vmytr4q8.js} +0 -0
  57. /package/dist/chunks/{shared-events-vyas3vgt.js → pty-handoff-vyas3vgt.js} +0 -0
  58. /package/dist/chunks/{shared-events-xgnj2w4v.js → pty-handoff-xgnj2w4v.js} +0 -0
  59. /package/dist/chunks/{shared-events-ydhz1zrh.js → pty-handoff-ydhz1zrh.js} +0 -0
@@ -2,21 +2,21 @@ import {
2
2
  spawnServiceContender2,
3
3
  contenderFailure2,
4
4
  contenderFinished2
5
- } from "../chunks/shared-events-txckps9j.js";
5
+ } from "../chunks/pty-handoff-txckps9j.js";
6
6
  import {
7
7
  defaultEnsureTiming2,
8
8
  ensureTiming2
9
- } from "../chunks/shared-events-xgnj2w4v.js";
9
+ } from "../chunks/pty-handoff-xgnj2w4v.js";
10
10
  import {
11
11
  matchesVersion2
12
- } from "../chunks/shared-events-sxt88q69.js";
12
+ } from "../chunks/pty-handoff-sxt88q69.js";
13
13
  import {
14
14
  prepare2,
15
15
  environment2,
16
16
  complete2,
17
17
  clear2
18
- } from "../chunks/shared-events-47hsxm5z.js";
19
- import"../chunks/shared-events-qav6mfdz.js";
18
+ } from "../chunks/pty-handoff-p1ns5v1v.js";
19
+ import"../chunks/pty-handoff-qav6mfdz.js";
20
20
 
21
21
  // src/effect/service.ts
22
22
  import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
@@ -137,6 +137,8 @@ export declare function make(options: ClientOptions): {
137
137
  };
138
138
  };
139
139
  credential: {
140
+ list: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").CredentialEntry[]>;
141
+ create: (input: import("./index.js").CredentialCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").CredentialEntry>;
140
142
  update: (input: import("./index.js").CredentialUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
141
143
  activate: (input: import("./index.js").CredentialActivateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
142
144
  remove: (input: import("./index.js").CredentialRemoveInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
@@ -1,14 +1,14 @@
1
1
  import {
2
- make5,
3
- exports_client3
4
- } from "../chunks/shared-events-gx437w19.js";
5
- import"../chunks/shared-events-vyas3vgt.js";
6
- import"../chunks/shared-events-n8g24fq8.js";
7
- import"../chunks/shared-events-nwcpakzx.js";
8
- import"../chunks/shared-events-1tbj6z39.js";
9
- import"../chunks/shared-events-4tveyqeh.js";
10
- import"../chunks/shared-events-frbwqjmf.js";
2
+ make2,
3
+ exports_client
4
+ } from "../chunks/pty-handoff-w0z44nwf.js";
5
+ import"../chunks/pty-handoff-vyas3vgt.js";
6
+ import"../chunks/pty-handoff-8wk26zth.js";
7
+ import"../chunks/pty-handoff-js54wxgp.js";
8
+ import"../chunks/pty-handoff-1tbj6z39.js";
9
+ import"../chunks/pty-handoff-4tveyqeh.js";
10
+ import"../chunks/pty-handoff-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/shared-events-nwcpakzx.js";
2
+ ClientError2
3
+ } from "../../chunks/pty-handoff-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, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, 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, 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, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, 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, 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;
@@ -138,6 +138,8 @@ export declare function make(options: ClientOptions): {
138
138
  };
139
139
  };
140
140
  credential: {
141
+ list: (requestOptions?: RequestOptions) => Promise<import("./types.js").CredentialEntry[]>;
142
+ create: (input: CredentialCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").CredentialEntry>;
141
143
  update: (input: CredentialUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
142
144
  activate: (input: CredentialActivateInput, requestOptions?: RequestOptions) => Promise<void>;
143
145
  remove: (input: CredentialRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
@@ -1,7 +1,7 @@
1
1
  import {
2
- make6
3
- } from "../../chunks/shared-events-n8g24fq8.js";
4
- import"../../chunks/shared-events-nwcpakzx.js";
2
+ make3
3
+ } from "../../chunks/pty-handoff-8wk26zth.js";
4
+ import"../../chunks/pty-handoff-js54wxgp.js";
5
5
  export {
6
- make6 as make
6
+ make3 as make
7
7
  };
@@ -1,10 +1,10 @@
1
- import"../../chunks/shared-events-vyas3vgt.js";
1
+ import"../../chunks/pty-handoff-vyas3vgt.js";
2
2
  import {
3
- exports_client4
4
- } from "../../chunks/shared-events-n8g24fq8.js";
3
+ exports_client2
4
+ } from "../../chunks/pty-handoff-8wk26zth.js";
5
5
  import {
6
- ClientError3
7
- } from "../../chunks/shared-events-nwcpakzx.js";
6
+ ClientError2
7
+ } from "../../chunks/pty-handoff-js54wxgp.js";
8
8
  import {
9
9
  isInvalidRequestError2,
10
10
  isUnauthorizedError2,
@@ -37,10 +37,10 @@ import {
37
37
  isForbiddenError2,
38
38
  isShellNotFoundError2,
39
39
  isWorktreeError2
40
- } from "../../chunks/shared-events-4tveyqeh.js";
40
+ } from "../../chunks/pty-handoff-4tveyqeh.js";
41
41
  export {
42
- ClientError3 as ClientError,
43
- exports_client4 as OpenCode,
42
+ ClientError2 as ClientError,
43
+ exports_client2 as OpenCode,
44
44
  isAgentNotFoundError2 as isAgentNotFoundError,
45
45
  isCommandExecutionError2 as isCommandExecutionError,
46
46
  isCommandNotFoundError2 as isCommandNotFoundError,
@@ -483,6 +483,16 @@ export type McpResourceTemplate = {
483
483
  description?: string;
484
484
  mimeType?: string;
485
485
  };
486
+ export type CredentialOAuth = {
487
+ type: "oauth";
488
+ methodID: string;
489
+ refresh: string;
490
+ access: string;
491
+ expires: number;
492
+ metadata?: {
493
+ [x: string]: JsonValue;
494
+ };
495
+ };
486
496
  export type ProjectVcs = string;
487
497
  export type ProjectIcon = {
488
498
  url?: string;
@@ -2408,7 +2418,7 @@ export type FormMultiselectField1 = {
2408
2418
  custom?: boolean;
2409
2419
  default?: Array<string>;
2410
2420
  };
2411
- export type FormAnswer1 = {
2421
+ export type FormAnswer2 = {
2412
2422
  [x: string]: FormValue1;
2413
2423
  };
2414
2424
  export type SessionStatusUpdated = {
@@ -2711,6 +2721,14 @@ export type FormState = {
2711
2721
  } | {
2712
2722
  status: "cancelled";
2713
2723
  };
2724
+ export type CredentialKey = {
2725
+ type: "key";
2726
+ key: string;
2727
+ metadata?: {
2728
+ [x: string]: JsonValue;
2729
+ };
2730
+ configuration?: FormAnswer;
2731
+ };
2714
2732
  export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
2715
2733
  export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
2716
2734
  export type FormReplied = {
@@ -2724,7 +2742,7 @@ export type FormReplied = {
2724
2742
  data: {
2725
2743
  id: string;
2726
2744
  sessionID: string;
2727
- answer: FormAnswer1;
2745
+ answer: FormAnswer2;
2728
2746
  };
2729
2747
  };
2730
2748
  export type ReferenceInfo = {
@@ -3174,6 +3192,7 @@ export type SessionMessageAssistantTool1 = {
3174
3192
  };
3175
3193
  };
3176
3194
  export type FormFields = [FormField, ...Array<FormField>];
3195
+ export type CredentialValue = CredentialOAuth | CredentialKey;
3177
3196
  export type FormFields2 = [FormField1, ...Array<FormField1>];
3178
3197
  export type SessionsResponse = {
3179
3198
  data: Array<SessionInfo>;
@@ -3256,6 +3275,13 @@ export type IntegrationKeyMethod = {
3256
3275
  label?: string;
3257
3276
  form?: FormFields;
3258
3277
  };
3278
+ export type CredentialEntry = {
3279
+ id: string;
3280
+ integrationID: string;
3281
+ label: string;
3282
+ active: boolean;
3283
+ value: CredentialValue;
3284
+ };
3259
3285
  export type FormInfo1 = {
3260
3286
  id: string;
3261
3287
  sessionID: string;
@@ -7490,6 +7516,139 @@ export type McpResourceCatalogOutput = {
7490
7516
  location: LocationPublicRef;
7491
7517
  data: McpResourceCatalog;
7492
7518
  };
7519
+ export type CredentialListOutput = {
7520
+ data: Array<CredentialEntry>;
7521
+ }["data"];
7522
+ export type CredentialCreateInput = {
7523
+ readonly id?: {
7524
+ readonly id?: string;
7525
+ readonly integrationID: string;
7526
+ readonly label?: string;
7527
+ readonly value: {
7528
+ readonly type: "oauth";
7529
+ readonly methodID: string;
7530
+ readonly refresh: string;
7531
+ readonly access: string;
7532
+ readonly expires: number;
7533
+ readonly metadata?: {
7534
+ readonly [x: string]: JsonValue;
7535
+ };
7536
+ } | {
7537
+ readonly type: "key";
7538
+ readonly key: string;
7539
+ readonly metadata?: {
7540
+ readonly [x: string]: JsonValue;
7541
+ };
7542
+ readonly configuration?: {
7543
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7544
+ };
7545
+ };
7546
+ readonly activate?: boolean;
7547
+ }["id"];
7548
+ readonly integrationID: {
7549
+ readonly id?: string;
7550
+ readonly integrationID: string;
7551
+ readonly label?: string;
7552
+ readonly value: {
7553
+ readonly type: "oauth";
7554
+ readonly methodID: string;
7555
+ readonly refresh: string;
7556
+ readonly access: string;
7557
+ readonly expires: number;
7558
+ readonly metadata?: {
7559
+ readonly [x: string]: JsonValue;
7560
+ };
7561
+ } | {
7562
+ readonly type: "key";
7563
+ readonly key: string;
7564
+ readonly metadata?: {
7565
+ readonly [x: string]: JsonValue;
7566
+ };
7567
+ readonly configuration?: {
7568
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7569
+ };
7570
+ };
7571
+ readonly activate?: boolean;
7572
+ }["integrationID"];
7573
+ readonly label?: {
7574
+ readonly id?: string;
7575
+ readonly integrationID: string;
7576
+ readonly label?: string;
7577
+ readonly value: {
7578
+ readonly type: "oauth";
7579
+ readonly methodID: string;
7580
+ readonly refresh: string;
7581
+ readonly access: string;
7582
+ readonly expires: number;
7583
+ readonly metadata?: {
7584
+ readonly [x: string]: JsonValue;
7585
+ };
7586
+ } | {
7587
+ readonly type: "key";
7588
+ readonly key: string;
7589
+ readonly metadata?: {
7590
+ readonly [x: string]: JsonValue;
7591
+ };
7592
+ readonly configuration?: {
7593
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7594
+ };
7595
+ };
7596
+ readonly activate?: boolean;
7597
+ }["label"];
7598
+ readonly value: {
7599
+ readonly id?: string;
7600
+ readonly integrationID: string;
7601
+ readonly label?: string;
7602
+ readonly value: {
7603
+ readonly type: "oauth";
7604
+ readonly methodID: string;
7605
+ readonly refresh: string;
7606
+ readonly access: string;
7607
+ readonly expires: number;
7608
+ readonly metadata?: {
7609
+ readonly [x: string]: JsonValue;
7610
+ };
7611
+ } | {
7612
+ readonly type: "key";
7613
+ readonly key: string;
7614
+ readonly metadata?: {
7615
+ readonly [x: string]: JsonValue;
7616
+ };
7617
+ readonly configuration?: {
7618
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7619
+ };
7620
+ };
7621
+ readonly activate?: boolean;
7622
+ }["value"];
7623
+ readonly activate?: {
7624
+ readonly id?: string;
7625
+ readonly integrationID: string;
7626
+ readonly label?: string;
7627
+ readonly value: {
7628
+ readonly type: "oauth";
7629
+ readonly methodID: string;
7630
+ readonly refresh: string;
7631
+ readonly access: string;
7632
+ readonly expires: number;
7633
+ readonly metadata?: {
7634
+ readonly [x: string]: JsonValue;
7635
+ };
7636
+ } | {
7637
+ readonly type: "key";
7638
+ readonly key: string;
7639
+ readonly metadata?: {
7640
+ readonly [x: string]: JsonValue;
7641
+ };
7642
+ readonly configuration?: {
7643
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7644
+ };
7645
+ };
7646
+ readonly activate?: boolean;
7647
+ }["activate"];
7648
+ };
7649
+ export type CredentialCreateOutput = {
7650
+ data: CredentialEntry;
7651
+ }["data"];
7493
7652
  export type CredentialUpdateInput = {
7494
7653
  readonly credentialID: {
7495
7654
  readonly credentialID: string;
@@ -30,7 +30,7 @@ import {
30
30
  isForbiddenError2,
31
31
  isShellNotFoundError2,
32
32
  isWorktreeError2
33
- } from "../../chunks/shared-events-4tveyqeh.js";
33
+ } from "../../chunks/pty-handoff-4tveyqeh.js";
34
34
  export {
35
35
  isAgentNotFoundError2 as isAgentNotFoundError,
36
36
  isCommandExecutionError2 as isCommandExecutionError,
@@ -1,13 +1,13 @@
1
- import"../chunks/shared-events-m2eywc8w.js";
1
+ import"../chunks/pty-handoff-m2eywc8w.js";
2
2
  import {
3
- exports_client3
4
- } from "../chunks/shared-events-gx437w19.js";
5
- import"../chunks/shared-events-vyas3vgt.js";
6
- import"../chunks/shared-events-n8g24fq8.js";
3
+ exports_client
4
+ } from "../chunks/pty-handoff-w0z44nwf.js";
5
+ import"../chunks/pty-handoff-vyas3vgt.js";
6
+ import"../chunks/pty-handoff-8wk26zth.js";
7
7
  import {
8
- ClientError3
9
- } from "../chunks/shared-events-nwcpakzx.js";
10
- import"../chunks/shared-events-1tbj6z39.js";
8
+ ClientError2
9
+ } from "../chunks/pty-handoff-js54wxgp.js";
10
+ import"../chunks/pty-handoff-1tbj6z39.js";
11
11
  import {
12
12
  isInvalidRequestError2,
13
13
  isUnauthorizedError2,
@@ -40,11 +40,11 @@ import {
40
40
  isForbiddenError2,
41
41
  isShellNotFoundError2,
42
42
  isWorktreeError2
43
- } from "../chunks/shared-events-4tveyqeh.js";
44
- import"../chunks/shared-events-frbwqjmf.js";
43
+ } from "../chunks/pty-handoff-4tveyqeh.js";
44
+ import"../chunks/pty-handoff-frbwqjmf.js";
45
45
  export {
46
- ClientError3 as ClientError,
47
- exports_client3 as OpenCode,
46
+ ClientError2 as ClientError,
47
+ exports_client as OpenCode,
48
48
  isAgentNotFoundError2 as isAgentNotFoundError,
49
49
  isCommandExecutionError2 as isCommandExecutionError,
50
50
  isCommandNotFoundError2 as isCommandNotFoundError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  makeRpc2
3
- } from "../chunks/shared-events-1tbj6z39.js";
4
- import"../chunks/shared-events-4tveyqeh.js";
3
+ } from "../chunks/pty-handoff-1tbj6z39.js";
4
+ import"../chunks/pty-handoff-4tveyqeh.js";
5
5
  export {
6
6
  makeRpc2 as makeRpc
7
7
  };
@@ -2,21 +2,21 @@ import {
2
2
  spawnServiceContender2,
3
3
  contenderFailure2,
4
4
  contenderFinished2
5
- } from "../chunks/shared-events-txckps9j.js";
5
+ } from "../chunks/pty-handoff-txckps9j.js";
6
6
  import {
7
7
  defaultEnsureTiming2,
8
8
  ensureTiming2
9
- } from "../chunks/shared-events-xgnj2w4v.js";
9
+ } from "../chunks/pty-handoff-xgnj2w4v.js";
10
10
  import {
11
11
  matchesVersion2
12
- } from "../chunks/shared-events-sxt88q69.js";
12
+ } from "../chunks/pty-handoff-sxt88q69.js";
13
13
  import {
14
14
  prepare2,
15
15
  environment2,
16
16
  complete2,
17
17
  clear2
18
- } from "../chunks/shared-events-47hsxm5z.js";
19
- import"../chunks/shared-events-qav6mfdz.js";
18
+ } from "../chunks/pty-handoff-p1ns5v1v.js";
19
+ import"../chunks/pty-handoff-qav6mfdz.js";
20
20
 
21
21
  // src/promise/service.ts
22
22
  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/shared-events-47hsxm5z.js";
7
+ } from "./chunks/pty-handoff-p1ns5v1v.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/shared-events-t1xa31vm.js";
7
+ } from "./chunks/pty-handoff-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
  contenderFailure2,
4
4
  contenderFinished2
5
- } from "./chunks/shared-events-txckps9j.js";
5
+ } from "./chunks/pty-handoff-txckps9j.js";
6
6
  export {
7
7
  contenderFailure2 as contenderFailure,
8
8
  contenderFinished2 as contenderFinished,
@@ -2,7 +2,7 @@ import {
2
2
  defaultEnsureTiming2,
3
3
  ensureTiming2,
4
4
  withEnsureTiming2
5
- } from "./chunks/shared-events-xgnj2w4v.js";
5
+ } from "./chunks/pty-handoff-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/shared-events-sxt88q69.js";
3
+ } from "./chunks/pty-handoff-sxt88q69.js";
4
4
  export {
5
5
  matchesVersion2 as matchesVersion
6
6
  };
package/dist/service.js CHANGED
@@ -1 +1 @@
1
- import"./chunks/shared-events-qav6mfdz.js";
1
+ import"./chunks/pty-handoff-qav6mfdz.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make7,
3
3
  exports_shared_events
4
- } from "./chunks/shared-events-frbwqjmf.js";
4
+ } from "./chunks/pty-handoff-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/shared-events-ydhz1zrh.js";
5
+ } from "../chunks/pty-handoff-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/shared-events-h11j9btw.js";
6
- import"../chunks/shared-events-m2eywc8w.js";
7
- import"../chunks/shared-events-gx437w19.js";
8
- import"../chunks/shared-events-vyas3vgt.js";
9
- import"../chunks/shared-events-n8g24fq8.js";
10
- import"../chunks/shared-events-nwcpakzx.js";
11
- import"../chunks/shared-events-1tbj6z39.js";
12
- import"../chunks/shared-events-4tveyqeh.js";
13
- import"../chunks/shared-events-frbwqjmf.js";
5
+ } from "../chunks/pty-handoff-h11j9btw.js";
6
+ import"../chunks/pty-handoff-m2eywc8w.js";
7
+ import"../chunks/pty-handoff-w0z44nwf.js";
8
+ import"../chunks/pty-handoff-vyas3vgt.js";
9
+ import"../chunks/pty-handoff-8wk26zth.js";
10
+ import"../chunks/pty-handoff-js54wxgp.js";
11
+ import"../chunks/pty-handoff-1tbj6z39.js";
12
+ import"../chunks/pty-handoff-4tveyqeh.js";
13
+ import"../chunks/pty-handoff-frbwqjmf.js";
14
14
  export {
15
15
  createData2 as createData,
16
16
  locationKey2 as locationKey,
@@ -1,25 +1,25 @@
1
- import"../chunks/shared-events-nwcpakzx.js";
2
- import"../chunks/shared-events-n8g24fq8.js";
3
- import"../chunks/shared-events-4tveyqeh.js";
4
- import"../chunks/shared-events-vyas3vgt.js";
5
- import"../chunks/shared-events-frbwqjmf.js";
6
- import"../chunks/shared-events-1tbj6z39.js";
7
- import"../chunks/shared-events-gx437w19.js";
8
- import"../chunks/shared-events-m2eywc8w.js";
1
+ import"../chunks/pty-handoff-js54wxgp.js";
2
+ import"../chunks/pty-handoff-8wk26zth.js";
3
+ import"../chunks/pty-handoff-4tveyqeh.js";
4
+ import"../chunks/pty-handoff-vyas3vgt.js";
5
+ import"../chunks/pty-handoff-frbwqjmf.js";
6
+ import"../chunks/pty-handoff-1tbj6z39.js";
7
+ import"../chunks/pty-handoff-w0z44nwf.js";
8
+ import"../chunks/pty-handoff-m2eywc8w.js";
9
9
  import {
10
10
  settleMs2,
11
11
  locationKey2,
12
12
  createData2
13
- } from "../chunks/shared-events-h11j9btw.js";
13
+ } from "../chunks/pty-handoff-h11j9btw.js";
14
14
  import {
15
15
  defaultIdleTimeout2,
16
16
  foregroundIdleThreshold2,
17
17
  createClientConnection2
18
- } from "../chunks/shared-events-ydhz1zrh.js";
18
+ } from "../chunks/pty-handoff-ydhz1zrh.js";
19
19
  import {
20
20
  createPtyClient2,
21
21
  createPersistentPtyClient2
22
- } from "../chunks/shared-events-gne7h7mq.js";
22
+ } from "../chunks/pty-handoff-gne7h7mq.js";
23
23
  export {
24
24
  createClientConnection2 as createClientConnection,
25
25
  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/shared-events-gne7h7mq.js";
4
+ } from "../chunks/pty-handoff-gne7h7mq.js";
5
5
  export {
6
6
  createPersistentPtyClient2 as createPersistentPtyClient,
7
7
  createPtyClient2 as createPtyClient
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-20303",
4
+ "version": "0.0.0-dev-20307",
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-20303",
61
- "@opencode/protocol": "0.0.0-dev-20303"
60
+ "@opencode/schema": "0.0.0-dev-20307",
61
+ "@opencode/protocol": "0.0.0-dev-20307"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "effect": "4.0.0-rc.112",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@effect/platform-node": "4.0.0-rc.112",
77
- "@opencode/httpapi-codegen": "0.0.0-dev-20303",
77
+ "@opencode/httpapi-codegen": "0.0.0-dev-20307",
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 "./shared-events-frbwqjmf.js";
4
- import {
5
- make6
6
- } from "./shared-events-n8g24fq8.js";
7
- import {
8
- makeRpc2
9
- } from "./shared-events-1tbj6z39.js";
10
- import {
11
- __export
12
- } from "./shared-events-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 };