@opencode/client 2.0.19 → 2.0.21

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/{rpc-runtime-1tbj6z39.js → contract-1tbj6z39.js} +1 -1
  2. package/dist/chunks/contract-3heptsgt.js +30 -0
  3. package/dist/chunks/{rpc-runtime-h9cy5hnk.js → contract-c3yh8bjt.js} +35 -19
  4. package/dist/chunks/{rpc-runtime-mhqqf36r.js → contract-fnmdfwt6.js} +1 -1
  5. package/dist/chunks/{rpc-runtime-frbwqjmf.js → contract-frbwqjmf.js} +1 -1
  6. package/dist/chunks/{rpc-runtime-h11j9btw.js → contract-h11j9btw.js} +1 -1
  7. package/dist/chunks/{rpc-runtime-js54wxgp.js → contract-nwcpakzx.js} +2 -2
  8. package/dist/chunks/{rpc-runtime-t1xa31vm.js → contract-t1xa31vm.js} +1 -1
  9. package/dist/chunks/{rpc-runtime-qnqb2tyr.js → contract-tqcb80dw.js} +17 -17
  10. package/dist/chunks/{rpc-runtime-0fn08bwv.js → contract-x6wet7em.js} +26 -11
  11. package/dist/chunks/{rpc-runtime-7f0py9js.js → contract-y2etg5bs.js} +2 -2
  12. package/dist/chunks/{rpc-runtime-mnyft54j.js → contract-z6qdwcsf.js} +5 -5
  13. package/dist/contract.js +1 -1
  14. package/dist/effect/api/api.d.ts +29 -0
  15. package/dist/effect/client.d.ts +17 -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 +18 -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 +221 -12
  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/rpc-runtime-gc472t4a.js +0 -30
  48. /package/dist/chunks/{rpc-runtime-4tveyqeh.js → contract-4tveyqeh.js} +0 -0
  49. /package/dist/chunks/{rpc-runtime-6mptkzbc.js → contract-6mptkzbc.js} +0 -0
  50. /package/dist/chunks/{rpc-runtime-9rqn6x4v.js → contract-9rqn6x4v.js} +0 -0
  51. /package/dist/chunks/{rpc-runtime-gne7h7mq.js → contract-gne7h7mq.js} +0 -0
  52. /package/dist/chunks/{rpc-runtime-m2eywc8w.js → contract-m2eywc8w.js} +0 -0
  53. /package/dist/chunks/{rpc-runtime-qav6mfdz.js → contract-qav6mfdz.js} +0 -0
  54. /package/dist/chunks/{rpc-runtime-sxt88q69.js → contract-sxt88q69.js} +0 -0
  55. /package/dist/chunks/{rpc-runtime-txckps9j.js → contract-txckps9j.js} +0 -0
  56. /package/dist/chunks/{rpc-runtime-vmytr4q8.js → contract-vmytr4q8.js} +0 -0
  57. /package/dist/chunks/{rpc-runtime-vyas3vgt.js → contract-vyas3vgt.js} +0 -0
  58. /package/dist/chunks/{rpc-runtime-xgnj2w4v.js → contract-xgnj2w4v.js} +0 -0
  59. /package/dist/chunks/{rpc-runtime-ydhz1zrh.js → contract-ydhz1zrh.js} +0 -0
@@ -223,6 +223,9 @@ export type SessionStructuredError = {
223
223
  type: string;
224
224
  message: string;
225
225
  status?: number;
226
+ response?: {
227
+ body: string;
228
+ };
226
229
  };
227
230
  export type SessionMessageCompactionRunning = {
228
231
  type: "compaction";
@@ -374,15 +377,10 @@ export type IntegrationEnvMethod = {
374
377
  type: "env";
375
378
  names: Array<string>;
376
379
  };
377
- export type ConnectionCredentialInfo = {
378
- type: "credential";
379
- id: string;
380
- label: string;
381
- method: "key" | "oauth";
382
- };
383
- export type ConnectionEnvInfo = {
384
- type: "env";
385
- name: string;
380
+ export type ConnectionStatus = {
381
+ status: "needs_auth";
382
+ message: string;
383
+ url?: string;
386
384
  };
387
385
  export type IntegrationAttempt = {
388
386
  attemptID: string;
@@ -485,6 +483,16 @@ export type McpResourceTemplate = {
485
483
  description?: string;
486
484
  mimeType?: string;
487
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
+ };
488
496
  export type ProjectVcs = string;
489
497
  export type ProjectIcon = {
490
498
  url?: string;
@@ -2202,7 +2210,18 @@ export type ModelCost = {
2202
2210
  write: MoneyUSDPerMillionTokens;
2203
2211
  };
2204
2212
  };
2205
- export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
2213
+ export type ConnectionCredentialInfo = {
2214
+ type: "credential";
2215
+ id: string;
2216
+ label: string;
2217
+ method: "key" | "oauth";
2218
+ status?: ConnectionStatus;
2219
+ };
2220
+ export type ConnectionEnvInfo = {
2221
+ type: "env";
2222
+ name: string;
2223
+ status?: ConnectionStatus;
2224
+ };
2206
2225
  export type McpServer = {
2207
2226
  name: string;
2208
2227
  status: McpStatusConnected | McpStatusPending | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth;
@@ -2399,7 +2418,7 @@ export type FormMultiselectField1 = {
2399
2418
  custom?: boolean;
2400
2419
  default?: Array<string>;
2401
2420
  };
2402
- export type FormAnswer1 = {
2421
+ export type FormAnswer2 = {
2403
2422
  [x: string]: FormValue1;
2404
2423
  };
2405
2424
  export type SessionStatusUpdated = {
@@ -2701,7 +2720,17 @@ export type FormState = {
2701
2720
  answer: FormAnswer;
2702
2721
  } | {
2703
2722
  status: "cancelled";
2723
+ message?: string;
2724
+ };
2725
+ export type CredentialKey = {
2726
+ type: "key";
2727
+ key: string;
2728
+ metadata?: {
2729
+ [x: string]: JsonValue;
2730
+ };
2731
+ configuration?: FormAnswer;
2704
2732
  };
2733
+ export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
2705
2734
  export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
2706
2735
  export type FormReplied = {
2707
2736
  id: string;
@@ -2714,7 +2743,7 @@ export type FormReplied = {
2714
2743
  data: {
2715
2744
  id: string;
2716
2745
  sessionID: string;
2717
- answer: FormAnswer1;
2746
+ answer: FormAnswer2;
2718
2747
  };
2719
2748
  };
2720
2749
  export type ReferenceInfo = {
@@ -3164,6 +3193,7 @@ export type SessionMessageAssistantTool1 = {
3164
3193
  };
3165
3194
  };
3166
3195
  export type FormFields = [FormField, ...Array<FormField>];
3196
+ export type CredentialValue = CredentialOAuth | CredentialKey;
3167
3197
  export type FormFields2 = [FormField1, ...Array<FormField1>];
3168
3198
  export type SessionsResponse = {
3169
3199
  data: Array<SessionInfo>;
@@ -3246,6 +3276,13 @@ export type IntegrationKeyMethod = {
3246
3276
  label?: string;
3247
3277
  form?: FormFields;
3248
3278
  };
3279
+ export type CredentialEntry = {
3280
+ id: string;
3281
+ integrationID: string;
3282
+ label: string;
3283
+ active: boolean;
3284
+ value: CredentialValue;
3285
+ };
3249
3286
  export type FormInfo1 = {
3250
3287
  id: string;
3251
3288
  sessionID: string;
@@ -4162,6 +4199,9 @@ export type SessionImportInput = {
4162
4199
  readonly type: string;
4163
4200
  readonly message: string;
4164
4201
  readonly status?: number;
4202
+ readonly response?: {
4203
+ readonly body: string;
4204
+ };
4165
4205
  };
4166
4206
  readonly content?: readonly [
4167
4207
  ({
@@ -4217,6 +4257,9 @@ export type SessionImportInput = {
4217
4257
  readonly type: string;
4218
4258
  readonly message: string;
4219
4259
  readonly status?: number;
4260
+ readonly response?: {
4261
+ readonly body: string;
4262
+ };
4220
4263
  };
4221
4264
  readonly retry?: {
4222
4265
  readonly attempt: number;
@@ -4225,6 +4268,9 @@ export type SessionImportInput = {
4225
4268
  readonly type: string;
4226
4269
  readonly message: string;
4227
4270
  readonly status?: number;
4271
+ readonly response?: {
4272
+ readonly body: string;
4273
+ };
4228
4274
  };
4229
4275
  };
4230
4276
  } | ({
@@ -4298,6 +4344,9 @@ export type SessionImportInput = {
4298
4344
  readonly type: string;
4299
4345
  readonly message: string;
4300
4346
  readonly status?: number;
4347
+ readonly response?: {
4348
+ readonly body: string;
4349
+ };
4301
4350
  };
4302
4351
  readonly cost?: number;
4303
4352
  readonly tokens?: {
@@ -4631,6 +4680,9 @@ export type SessionImportInput = {
4631
4680
  readonly type: string;
4632
4681
  readonly message: string;
4633
4682
  readonly status?: number;
4683
+ readonly response?: {
4684
+ readonly body: string;
4685
+ };
4634
4686
  };
4635
4687
  readonly content?: readonly [
4636
4688
  ({
@@ -4686,6 +4738,9 @@ export type SessionImportInput = {
4686
4738
  readonly type: string;
4687
4739
  readonly message: string;
4688
4740
  readonly status?: number;
4741
+ readonly response?: {
4742
+ readonly body: string;
4743
+ };
4689
4744
  };
4690
4745
  readonly retry?: {
4691
4746
  readonly attempt: number;
@@ -4694,6 +4749,9 @@ export type SessionImportInput = {
4694
4749
  readonly type: string;
4695
4750
  readonly message: string;
4696
4751
  readonly status?: number;
4752
+ readonly response?: {
4753
+ readonly body: string;
4754
+ };
4697
4755
  };
4698
4756
  };
4699
4757
  } | ({
@@ -4767,6 +4825,9 @@ export type SessionImportInput = {
4767
4825
  readonly type: string;
4768
4826
  readonly message: string;
4769
4827
  readonly status?: number;
4828
+ readonly response?: {
4829
+ readonly body: string;
4830
+ };
4770
4831
  };
4771
4832
  readonly cost?: number;
4772
4833
  readonly tokens?: {
@@ -5100,6 +5161,9 @@ export type SessionImportInput = {
5100
5161
  readonly type: string;
5101
5162
  readonly message: string;
5102
5163
  readonly status?: number;
5164
+ readonly response?: {
5165
+ readonly body: string;
5166
+ };
5103
5167
  };
5104
5168
  readonly content?: readonly [
5105
5169
  ({
@@ -5155,6 +5219,9 @@ export type SessionImportInput = {
5155
5219
  readonly type: string;
5156
5220
  readonly message: string;
5157
5221
  readonly status?: number;
5222
+ readonly response?: {
5223
+ readonly body: string;
5224
+ };
5158
5225
  };
5159
5226
  readonly retry?: {
5160
5227
  readonly attempt: number;
@@ -5163,6 +5230,9 @@ export type SessionImportInput = {
5163
5230
  readonly type: string;
5164
5231
  readonly message: string;
5165
5232
  readonly status?: number;
5233
+ readonly response?: {
5234
+ readonly body: string;
5235
+ };
5166
5236
  };
5167
5237
  };
5168
5238
  } | ({
@@ -5236,6 +5306,9 @@ export type SessionImportInput = {
5236
5306
  readonly type: string;
5237
5307
  readonly message: string;
5238
5308
  readonly status?: number;
5309
+ readonly response?: {
5310
+ readonly body: string;
5311
+ };
5239
5312
  };
5240
5313
  readonly cost?: number;
5241
5314
  readonly tokens?: {
@@ -7006,6 +7079,9 @@ export type SessionFormCancelInput = {
7006
7079
  readonly sessionID: string;
7007
7080
  readonly formID: string;
7008
7081
  }["formID"];
7082
+ readonly message?: {
7083
+ readonly message?: string | undefined;
7084
+ }["message"];
7009
7085
  };
7010
7086
  export type SessionFormCancelOutput = void;
7011
7087
  export type SessionEnvironmentInput = {
@@ -7444,6 +7520,139 @@ export type McpResourceCatalogOutput = {
7444
7520
  location: LocationPublicRef;
7445
7521
  data: McpResourceCatalog;
7446
7522
  };
7523
+ export type CredentialListOutput = {
7524
+ data: Array<CredentialEntry>;
7525
+ }["data"];
7526
+ export type CredentialCreateInput = {
7527
+ readonly id?: {
7528
+ readonly id?: string;
7529
+ readonly integrationID: string;
7530
+ readonly label?: string;
7531
+ readonly value: {
7532
+ readonly type: "oauth";
7533
+ readonly methodID: string;
7534
+ readonly refresh: string;
7535
+ readonly access: string;
7536
+ readonly expires: number;
7537
+ readonly metadata?: {
7538
+ readonly [x: string]: JsonValue;
7539
+ };
7540
+ } | {
7541
+ readonly type: "key";
7542
+ readonly key: string;
7543
+ readonly metadata?: {
7544
+ readonly [x: string]: JsonValue;
7545
+ };
7546
+ readonly configuration?: {
7547
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7548
+ };
7549
+ };
7550
+ readonly activate?: boolean;
7551
+ }["id"];
7552
+ readonly integrationID: {
7553
+ readonly id?: string;
7554
+ readonly integrationID: string;
7555
+ readonly label?: string;
7556
+ readonly value: {
7557
+ readonly type: "oauth";
7558
+ readonly methodID: string;
7559
+ readonly refresh: string;
7560
+ readonly access: string;
7561
+ readonly expires: number;
7562
+ readonly metadata?: {
7563
+ readonly [x: string]: JsonValue;
7564
+ };
7565
+ } | {
7566
+ readonly type: "key";
7567
+ readonly key: string;
7568
+ readonly metadata?: {
7569
+ readonly [x: string]: JsonValue;
7570
+ };
7571
+ readonly configuration?: {
7572
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7573
+ };
7574
+ };
7575
+ readonly activate?: boolean;
7576
+ }["integrationID"];
7577
+ readonly label?: {
7578
+ readonly id?: string;
7579
+ readonly integrationID: string;
7580
+ readonly label?: string;
7581
+ readonly value: {
7582
+ readonly type: "oauth";
7583
+ readonly methodID: string;
7584
+ readonly refresh: string;
7585
+ readonly access: string;
7586
+ readonly expires: number;
7587
+ readonly metadata?: {
7588
+ readonly [x: string]: JsonValue;
7589
+ };
7590
+ } | {
7591
+ readonly type: "key";
7592
+ readonly key: string;
7593
+ readonly metadata?: {
7594
+ readonly [x: string]: JsonValue;
7595
+ };
7596
+ readonly configuration?: {
7597
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7598
+ };
7599
+ };
7600
+ readonly activate?: boolean;
7601
+ }["label"];
7602
+ readonly value: {
7603
+ readonly id?: string;
7604
+ readonly integrationID: string;
7605
+ readonly label?: string;
7606
+ readonly value: {
7607
+ readonly type: "oauth";
7608
+ readonly methodID: string;
7609
+ readonly refresh: string;
7610
+ readonly access: string;
7611
+ readonly expires: number;
7612
+ readonly metadata?: {
7613
+ readonly [x: string]: JsonValue;
7614
+ };
7615
+ } | {
7616
+ readonly type: "key";
7617
+ readonly key: string;
7618
+ readonly metadata?: {
7619
+ readonly [x: string]: JsonValue;
7620
+ };
7621
+ readonly configuration?: {
7622
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7623
+ };
7624
+ };
7625
+ readonly activate?: boolean;
7626
+ }["value"];
7627
+ readonly activate?: {
7628
+ readonly id?: string;
7629
+ readonly integrationID: string;
7630
+ readonly label?: string;
7631
+ readonly value: {
7632
+ readonly type: "oauth";
7633
+ readonly methodID: string;
7634
+ readonly refresh: string;
7635
+ readonly access: string;
7636
+ readonly expires: number;
7637
+ readonly metadata?: {
7638
+ readonly [x: string]: JsonValue;
7639
+ };
7640
+ } | {
7641
+ readonly type: "key";
7642
+ readonly key: string;
7643
+ readonly metadata?: {
7644
+ readonly [x: string]: JsonValue;
7645
+ };
7646
+ readonly configuration?: {
7647
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7648
+ };
7649
+ };
7650
+ readonly activate?: boolean;
7651
+ }["activate"];
7652
+ };
7653
+ export type CredentialCreateOutput = {
7654
+ data: CredentialEntry;
7655
+ }["data"];
7447
7656
  export type CredentialUpdateInput = {
7448
7657
  readonly credentialID: {
7449
7658
  readonly credentialID: string;
@@ -30,7 +30,7 @@ import {
30
30
  isForbiddenError2,
31
31
  isShellNotFoundError2,
32
32
  isWorktreeError2
33
- } from "../../chunks/rpc-runtime-4tveyqeh.js";
33
+ } from "../../chunks/contract-4tveyqeh.js";
34
34
  export {
35
35
  isAgentNotFoundError2 as isAgentNotFoundError,
36
36
  isCommandExecutionError2 as isCommandExecutionError,
@@ -1,9 +1,9 @@
1
- import"../chunks/rpc-runtime-m2eywc8w.js";
1
+ import"../chunks/contract-m2eywc8w.js";
2
2
  import {
3
- exports_client
4
- } from "../chunks/rpc-runtime-gc472t4a.js";
5
- import"../chunks/rpc-runtime-1tbj6z39.js";
6
- import"../chunks/rpc-runtime-vyas3vgt.js";
3
+ exports_client3
4
+ } from "../chunks/contract-3heptsgt.js";
5
+ import"../chunks/contract-1tbj6z39.js";
6
+ import"../chunks/contract-vyas3vgt.js";
7
7
  import {
8
8
  isInvalidRequestError2,
9
9
  isUnauthorizedError2,
@@ -36,15 +36,15 @@ import {
36
36
  isForbiddenError2,
37
37
  isShellNotFoundError2,
38
38
  isWorktreeError2
39
- } from "../chunks/rpc-runtime-4tveyqeh.js";
40
- import"../chunks/rpc-runtime-h9cy5hnk.js";
39
+ } from "../chunks/contract-4tveyqeh.js";
40
+ import"../chunks/contract-c3yh8bjt.js";
41
41
  import {
42
- ClientError2
43
- } from "../chunks/rpc-runtime-js54wxgp.js";
44
- import"../chunks/rpc-runtime-frbwqjmf.js";
42
+ ClientError3
43
+ } from "../chunks/contract-nwcpakzx.js";
44
+ import"../chunks/contract-frbwqjmf.js";
45
45
  export {
46
- ClientError2 as ClientError,
47
- exports_client as OpenCode,
46
+ ClientError3 as ClientError,
47
+ exports_client3 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/rpc-runtime-1tbj6z39.js";
4
- import"../chunks/rpc-runtime-4tveyqeh.js";
3
+ } from "../chunks/contract-1tbj6z39.js";
4
+ import"../chunks/contract-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/rpc-runtime-txckps9j.js";
5
+ } from "../chunks/contract-txckps9j.js";
6
6
  import {
7
7
  defaultEnsureTiming2,
8
8
  ensureTiming2
9
- } from "../chunks/rpc-runtime-xgnj2w4v.js";
9
+ } from "../chunks/contract-xgnj2w4v.js";
10
10
  import {
11
11
  matchesVersion2
12
- } from "../chunks/rpc-runtime-sxt88q69.js";
12
+ } from "../chunks/contract-sxt88q69.js";
13
13
  import {
14
14
  prepare2,
15
15
  environment2,
16
16
  complete2,
17
17
  clear2
18
- } from "../chunks/rpc-runtime-mhqqf36r.js";
19
- import"../chunks/rpc-runtime-qav6mfdz.js";
18
+ } from "../chunks/contract-fnmdfwt6.js";
19
+ import"../chunks/contract-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/rpc-runtime-mhqqf36r.js";
7
+ } from "./chunks/contract-fnmdfwt6.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/contract-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/rpc-runtime-txckps9j.js";
5
+ } from "./chunks/contract-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/rpc-runtime-xgnj2w4v.js";
5
+ } from "./chunks/contract-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/contract-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/contract-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/contract-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/contract-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-h11j9btw.js";
6
- import"../chunks/rpc-runtime-m2eywc8w.js";
7
- import"../chunks/rpc-runtime-gc472t4a.js";
8
- import"../chunks/rpc-runtime-1tbj6z39.js";
9
- import"../chunks/rpc-runtime-vyas3vgt.js";
10
- import"../chunks/rpc-runtime-4tveyqeh.js";
11
- import"../chunks/rpc-runtime-h9cy5hnk.js";
12
- import"../chunks/rpc-runtime-js54wxgp.js";
13
- import"../chunks/rpc-runtime-frbwqjmf.js";
5
+ } from "../chunks/contract-h11j9btw.js";
6
+ import"../chunks/contract-m2eywc8w.js";
7
+ import"../chunks/contract-3heptsgt.js";
8
+ import"../chunks/contract-1tbj6z39.js";
9
+ import"../chunks/contract-vyas3vgt.js";
10
+ import"../chunks/contract-4tveyqeh.js";
11
+ import"../chunks/contract-c3yh8bjt.js";
12
+ import"../chunks/contract-nwcpakzx.js";
13
+ import"../chunks/contract-frbwqjmf.js";
14
14
  export {
15
15
  createData2 as createData,
16
16
  locationKey2 as locationKey,
@@ -1,25 +1,25 @@
1
- import"../chunks/rpc-runtime-js54wxgp.js";
2
- import"../chunks/rpc-runtime-h9cy5hnk.js";
3
- import"../chunks/rpc-runtime-4tveyqeh.js";
4
- import"../chunks/rpc-runtime-vyas3vgt.js";
5
- import"../chunks/rpc-runtime-frbwqjmf.js";
6
- import"../chunks/rpc-runtime-1tbj6z39.js";
7
- import"../chunks/rpc-runtime-gc472t4a.js";
8
- import"../chunks/rpc-runtime-m2eywc8w.js";
1
+ import"../chunks/contract-nwcpakzx.js";
2
+ import"../chunks/contract-c3yh8bjt.js";
3
+ import"../chunks/contract-4tveyqeh.js";
4
+ import"../chunks/contract-vyas3vgt.js";
5
+ import"../chunks/contract-frbwqjmf.js";
6
+ import"../chunks/contract-1tbj6z39.js";
7
+ import"../chunks/contract-3heptsgt.js";
8
+ import"../chunks/contract-m2eywc8w.js";
9
9
  import {
10
10
  settleMs2,
11
11
  locationKey2,
12
12
  createData2
13
- } from "../chunks/rpc-runtime-h11j9btw.js";
13
+ } from "../chunks/contract-h11j9btw.js";
14
14
  import {
15
15
  defaultIdleTimeout2,
16
16
  foregroundIdleThreshold2,
17
17
  createClientConnection2
18
- } from "../chunks/rpc-runtime-ydhz1zrh.js";
18
+ } from "../chunks/contract-ydhz1zrh.js";
19
19
  import {
20
20
  createPtyClient2,
21
21
  createPersistentPtyClient2
22
- } from "../chunks/rpc-runtime-gne7h7mq.js";
22
+ } from "../chunks/contract-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/rpc-runtime-gne7h7mq.js";
4
+ } from "../chunks/contract-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": "2.0.19",
4
+ "version": "2.0.21",
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": "2.0.19",
61
- "@opencode/protocol": "2.0.19"
60
+ "@opencode/schema": "2.0.21",
61
+ "@opencode/protocol": "2.0.21"
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": "2.0.19",
77
+ "@opencode/httpapi-codegen": "2.0.21",
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
- make3
6
- } from "./rpc-runtime-h9cy5hnk.js";
7
- import {
8
- makeRpc2
9
- } from "./rpc-runtime-1tbj6z39.js";
10
- import {
11
- __export
12
- } from "./rpc-runtime-9rqn6x4v.js";
13
-
14
- // src/promise/client.ts
15
- var exports_client = {};
16
- __export(exports_client, {
17
- OpenCode: () => exports_client,
18
- make: () => make2
19
- });
20
- function make2(options) {
21
- const raw = make3(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 { make2, exports_client };