@opencode/client 0.0.0-dev-203 → 0.0.0-dev-216

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 (65) hide show
  1. package/dist/chunks/{service-18xz77sd.js → contract-15p82y03.js} +5 -5
  2. package/dist/chunks/{service-8ye1ye6f.js → contract-2ny4vxct.js} +2 -2
  3. package/dist/chunks/{service-khkm0pf7.js → contract-csehnca4.js} +1 -1
  4. package/dist/chunks/{service-0f3b9fnq.js → contract-cvg5j6d1.js} +2 -1
  5. package/dist/chunks/{service-znq785sc.js → contract-e4dem3g3.js} +19 -19
  6. package/dist/chunks/{service-sqcsh66p.js → contract-gecjxyvt.js} +4 -4
  7. package/dist/chunks/{service-nn94b6ph.js → contract-jndfjhn3.js} +2 -2
  8. package/dist/chunks/{service-z11mztjj.js → contract-kdshn947.js} +1 -1
  9. package/dist/chunks/{service-js54wxgp.js → contract-nwcpakzx.js} +2 -2
  10. package/dist/chunks/contract-p0cwenbx.js +30 -0
  11. package/dist/chunks/{service-j4snqxar.js → contract-r76mn47y.js} +32 -10
  12. package/dist/chunks/{service-ryy6kscr.js → contract-ryy6kscr.js} +1 -1
  13. package/dist/chunks/{service-7f0py9js.js → contract-y2etg5bs.js} +2 -2
  14. package/dist/chunks/{service-sp3vqdnr.js → contract-yn2a71yh.js} +71 -19
  15. package/dist/contract.js +1 -1
  16. package/dist/effect/api/api.d.ts +43 -0
  17. package/dist/effect/client.d.ts +156 -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 +157 -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 +8 -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 +9 -1
  30. package/dist/promise/generated/client.js +4 -4
  31. package/dist/promise/generated/index.js +11 -9
  32. package/dist/promise/generated/types.d.ts +126 -0
  33. package/dist/promise/generated/types.js +3 -1
  34. package/dist/promise/index.js +15 -13
  35. package/dist/promise/rpc.js +2 -2
  36. package/dist/promise/service.js +6 -6
  37. package/dist/pty-handoff.js +4 -4
  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 +3 -3
  45. package/dist/solid/connection.js +1 -1
  46. package/dist/solid/data.js +9 -9
  47. package/dist/solid/index.js +13 -13
  48. package/dist/solid/pty.js +1 -1
  49. package/dist/solid/retention.js +1 -1
  50. package/dist/solid/usage.js +1 -1
  51. package/package.json +4 -4
  52. package/dist/chunks/service-yrcbssy3.js +0 -30
  53. /package/dist/chunks/{service-60xe5cbf.js → contract-60xe5cbf.js} +0 -0
  54. /package/dist/chunks/{service-6mptkzbc.js → contract-6mptkzbc.js} +0 -0
  55. /package/dist/chunks/{service-6mq2wh8y.js → contract-6mq2wh8y.js} +0 -0
  56. /package/dist/chunks/{service-8s2anffy.js → contract-8s2anffy.js} +0 -0
  57. /package/dist/chunks/{service-9rqn6x4v.js → contract-9rqn6x4v.js} +0 -0
  58. /package/dist/chunks/{service-gne7h7mq.js → contract-gne7h7mq.js} +0 -0
  59. /package/dist/chunks/{service-m2eywc8w.js → contract-m2eywc8w.js} +0 -0
  60. /package/dist/chunks/{service-qav6mfdz.js → contract-qav6mfdz.js} +0 -0
  61. /package/dist/chunks/{service-sxt88q69.js → contract-sxt88q69.js} +0 -0
  62. /package/dist/chunks/{service-ve4aws36.js → contract-ve4aws36.js} +0 -0
  63. /package/dist/chunks/{service-vyas3vgt.js → contract-vyas3vgt.js} +0 -0
  64. /package/dist/chunks/{service-xgnj2w4v.js → contract-xgnj2w4v.js} +0 -0
  65. /package/dist/chunks/{service-ydhz1zrh.js → contract-ydhz1zrh.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
- make3
3
- } from "../../chunks/service-sp3vqdnr.js";
4
- import"../../chunks/service-js54wxgp.js";
2
+ make6
3
+ } from "../../chunks/contract-yn2a71yh.js";
4
+ import"../../chunks/contract-nwcpakzx.js";
5
5
  export {
6
- make3 as make
6
+ make6 as make
7
7
  };
@@ -1,10 +1,7 @@
1
- import"../../chunks/service-vyas3vgt.js";
1
+ import"../../chunks/contract-vyas3vgt.js";
2
2
  import {
3
- exports_client2
4
- } from "../../chunks/service-sp3vqdnr.js";
5
- import {
6
- ClientError2
7
- } from "../../chunks/service-js54wxgp.js";
3
+ exports_client4
4
+ } from "../../chunks/contract-yn2a71yh.js";
8
5
  import {
9
6
  isInvalidRequestError2,
10
7
  isUnauthorizedError2,
@@ -41,13 +38,17 @@ import {
41
38
  isRpcError2,
42
39
  isRpcInternalError2,
43
40
  isPtyNotFoundError2,
41
+ isScheduleNotFoundError2,
44
42
  isShellNotFoundError2,
45
43
  isWorktreeError2,
46
44
  isVcsInitNotSupportedError2
47
- } from "../../chunks/service-0f3b9fnq.js";
45
+ } from "../../chunks/contract-cvg5j6d1.js";
46
+ import {
47
+ ClientError3
48
+ } from "../../chunks/contract-nwcpakzx.js";
48
49
  export {
49
- ClientError2 as ClientError,
50
- exports_client2 as OpenCode,
50
+ ClientError3 as ClientError,
51
+ exports_client4 as OpenCode,
51
52
  isAgentNotFoundError2 as isAgentNotFoundError,
52
53
  isCommandExecutionError2 as isCommandExecutionError,
53
54
  isCommandNotFoundError2 as isCommandNotFoundError,
@@ -76,6 +77,7 @@ export {
76
77
  isPtyNotFoundError2 as isPtyNotFoundError,
77
78
  isRpcError2 as isRpcError,
78
79
  isRpcInternalError2 as isRpcInternalError,
80
+ isScheduleNotFoundError2 as isScheduleNotFoundError,
79
81
  isServiceUnavailableError2 as isServiceUnavailableError,
80
82
  isSessionBusyError2 as isSessionBusyError,
81
83
  isSessionNotFoundError2 as isSessionNotFoundError,
@@ -466,6 +466,24 @@ export type PersistentPtyHandoff = {
466
466
  ticket: string;
467
467
  expiresAt: number;
468
468
  };
469
+ export type ScheduleID = string;
470
+ export type ScheduleDuration = string;
471
+ export type ScheduleWhenAt = {
472
+ type: "at";
473
+ at: string;
474
+ tz?: string;
475
+ };
476
+ export type ScheduleWhenCron = {
477
+ type: "cron";
478
+ cron: string;
479
+ tz?: string;
480
+ };
481
+ export type ScheduleActionPrompt = {
482
+ type: "prompt";
483
+ prompt: string;
484
+ };
485
+ export type ScheduleStatus = "active" | "paused" | "done";
486
+ export type ScheduleOutcome = "fired" | "late" | "skipped" | "disabled" | "failed";
469
487
  export type ReferenceGitSource = {
470
488
  type: "git";
471
489
  repository: string;
@@ -1189,6 +1207,17 @@ export type FormMultiselectField1 = {
1189
1207
  export type FormAnswer1 = {
1190
1208
  [x: string]: FormValue1;
1191
1209
  };
1210
+ export type ScheduleWhenIn = {
1211
+ type: "in";
1212
+ in: ScheduleDuration;
1213
+ tz?: string;
1214
+ };
1215
+ export type ScheduleWhenEvery = {
1216
+ type: "every";
1217
+ every: ScheduleDuration;
1218
+ tz?: string;
1219
+ };
1220
+ export type ScheduleAction = ScheduleActionPrompt;
1192
1221
  export type VcsInfo = {
1193
1222
  provider?: string;
1194
1223
  branch: VcsBranch;
@@ -2938,6 +2967,7 @@ export type FormReplied = {
2938
2967
  answer: FormAnswer1;
2939
2968
  };
2940
2969
  };
2970
+ export type ScheduleWhen = ScheduleWhenIn | ScheduleWhenAt | ScheduleWhenEvery | ScheduleWhenCron;
2941
2971
  export type SessionInboxMove = {
2942
2972
  id: SessionMessageID;
2943
2973
  sessionID: SessionID;
@@ -3369,6 +3399,11 @@ export type ConfigEntry = {
3369
3399
  todo?: boolean;
3370
3400
  background_compaction?: boolean;
3371
3401
  media_blob?: boolean;
3402
+ image_model?: string | {
3403
+ providerID: string;
3404
+ model: string;
3405
+ variant?: string;
3406
+ };
3372
3407
  schedules?: boolean;
3373
3408
  subagent_depth?: number;
3374
3409
  location_idle_timeout?: string | false;
@@ -3463,6 +3498,25 @@ export type CredentialEntry = {
3463
3498
  value: CredentialValue;
3464
3499
  };
3465
3500
  export type FormFields2 = [FormField1, ...Array<FormField1>];
3501
+ export type ScheduleInfo = {
3502
+ id: ScheduleID;
3503
+ sessionID?: SessionID;
3504
+ name?: string;
3505
+ when: ScheduleWhen;
3506
+ tz: string;
3507
+ action: ScheduleAction;
3508
+ status: ScheduleStatus;
3509
+ nextDueAt?: number;
3510
+ endsAt?: number;
3511
+ remainingRuns?: number;
3512
+ runCount: number;
3513
+ lastFiredAt?: number;
3514
+ lastOutcome?: ScheduleOutcome;
3515
+ time: {
3516
+ created: number;
3517
+ updated: number;
3518
+ };
3519
+ };
3466
3520
  export type AgentInfo = {
3467
3521
  id: AgentID;
3468
3522
  name: string;
@@ -3851,6 +3905,12 @@ export type PtyNotFoundError = {
3851
3905
  readonly message: string;
3852
3906
  };
3853
3907
  export declare const isPtyNotFoundError: (value: unknown) => value is PtyNotFoundError;
3908
+ export type ScheduleNotFoundError = {
3909
+ readonly _tag: "ScheduleNotFoundError";
3910
+ readonly scheduleID: string;
3911
+ readonly message: string;
3912
+ };
3913
+ export declare const isScheduleNotFoundError: (value: unknown) => value is ScheduleNotFoundError;
3854
3914
  export type ShellNotFoundError = {
3855
3915
  readonly _tag: "ShellNotFoundError";
3856
3916
  readonly id: string;
@@ -5283,6 +5343,72 @@ export type ExperimentalMediaGetInput = {
5283
5343
  readonly hash: string;
5284
5344
  };
5285
5345
  export type ExperimentalMediaGetOutput = globalThis.Uint8Array;
5346
+ export type ExperimentalScheduleCreateInput = {
5347
+ readonly sessionID: string;
5348
+ readonly name?: string | undefined;
5349
+ readonly when: {
5350
+ readonly in: string;
5351
+ readonly at?: never;
5352
+ readonly every?: never;
5353
+ readonly cron?: never;
5354
+ readonly tz?: string;
5355
+ } | {
5356
+ readonly at: string;
5357
+ readonly in?: never;
5358
+ readonly every?: never;
5359
+ readonly cron?: never;
5360
+ readonly tz?: string;
5361
+ } | {
5362
+ readonly every: string;
5363
+ readonly in?: never;
5364
+ readonly at?: never;
5365
+ readonly cron?: never;
5366
+ readonly tz?: string;
5367
+ } | {
5368
+ readonly cron: string;
5369
+ readonly in?: never;
5370
+ readonly at?: never;
5371
+ readonly every?: never;
5372
+ readonly tz?: string;
5373
+ };
5374
+ readonly ends?: {
5375
+ readonly after?: string;
5376
+ readonly at?: string;
5377
+ readonly times?: number;
5378
+ } | undefined;
5379
+ readonly prompt: string;
5380
+ };
5381
+ export type ExperimentalScheduleCreateOutput = {
5382
+ data: ScheduleInfo;
5383
+ }["data"];
5384
+ export type ExperimentalScheduleListInput = {
5385
+ readonly sessionID: string;
5386
+ };
5387
+ export type ExperimentalScheduleListOutput = {
5388
+ data: Array<ScheduleInfo>;
5389
+ }["data"];
5390
+ export type ExperimentalScheduleGetInput = {
5391
+ readonly scheduleID: string;
5392
+ };
5393
+ export type ExperimentalScheduleGetOutput = {
5394
+ data: ScheduleInfo;
5395
+ }["data"];
5396
+ export type ExperimentalSchedulePauseInput = {
5397
+ readonly scheduleID: string;
5398
+ };
5399
+ export type ExperimentalSchedulePauseOutput = {
5400
+ data: ScheduleInfo;
5401
+ }["data"];
5402
+ export type ExperimentalScheduleResumeInput = {
5403
+ readonly scheduleID: string;
5404
+ };
5405
+ export type ExperimentalScheduleResumeOutput = {
5406
+ data: ScheduleInfo;
5407
+ }["data"];
5408
+ export type ExperimentalScheduleDeleteInput = {
5409
+ readonly scheduleID: string;
5410
+ };
5411
+ export type ExperimentalScheduleDeleteOutput = void;
5286
5412
  export type ShellListInput = {
5287
5413
  readonly location?: {
5288
5414
  readonly directory?: string | undefined;
@@ -34,10 +34,11 @@ import {
34
34
  isRpcError2,
35
35
  isRpcInternalError2,
36
36
  isPtyNotFoundError2,
37
+ isScheduleNotFoundError2,
37
38
  isShellNotFoundError2,
38
39
  isWorktreeError2,
39
40
  isVcsInitNotSupportedError2
40
- } from "../../chunks/service-0f3b9fnq.js";
41
+ } from "../../chunks/contract-cvg5j6d1.js";
41
42
  export {
42
43
  isAgentNotFoundError2 as isAgentNotFoundError,
43
44
  isCommandExecutionError2 as isCommandExecutionError,
@@ -67,6 +68,7 @@ export {
67
68
  isPtyNotFoundError2 as isPtyNotFoundError,
68
69
  isRpcError2 as isRpcError,
69
70
  isRpcInternalError2 as isRpcInternalError,
71
+ isScheduleNotFoundError2 as isScheduleNotFoundError,
70
72
  isServiceUnavailableError2 as isServiceUnavailableError,
71
73
  isSessionBusyError2 as isSessionBusyError,
72
74
  isSessionNotFoundError2 as isSessionNotFoundError,
@@ -1,13 +1,10 @@
1
- import"../chunks/service-m2eywc8w.js";
1
+ import"../chunks/contract-m2eywc8w.js";
2
2
  import {
3
- exports_client
4
- } from "../chunks/service-yrcbssy3.js";
5
- import"../chunks/service-vyas3vgt.js";
6
- import"../chunks/service-sp3vqdnr.js";
7
- import {
8
- ClientError2
9
- } from "../chunks/service-js54wxgp.js";
10
- import"../chunks/service-z11mztjj.js";
3
+ exports_client3
4
+ } from "../chunks/contract-p0cwenbx.js";
5
+ import"../chunks/contract-vyas3vgt.js";
6
+ import"../chunks/contract-yn2a71yh.js";
7
+ import"../chunks/contract-kdshn947.js";
11
8
  import {
12
9
  isInvalidRequestError2,
13
10
  isUnauthorizedError2,
@@ -44,14 +41,18 @@ import {
44
41
  isRpcError2,
45
42
  isRpcInternalError2,
46
43
  isPtyNotFoundError2,
44
+ isScheduleNotFoundError2,
47
45
  isShellNotFoundError2,
48
46
  isWorktreeError2,
49
47
  isVcsInitNotSupportedError2
50
- } from "../chunks/service-0f3b9fnq.js";
51
- import"../chunks/service-sqcsh66p.js";
48
+ } from "../chunks/contract-cvg5j6d1.js";
49
+ import {
50
+ ClientError3
51
+ } from "../chunks/contract-nwcpakzx.js";
52
+ import"../chunks/contract-gecjxyvt.js";
52
53
  export {
53
- ClientError2 as ClientError,
54
- exports_client as OpenCode,
54
+ ClientError3 as ClientError,
55
+ exports_client3 as OpenCode,
55
56
  isAgentNotFoundError2 as isAgentNotFoundError,
56
57
  isCommandExecutionError2 as isCommandExecutionError,
57
58
  isCommandNotFoundError2 as isCommandNotFoundError,
@@ -80,6 +81,7 @@ export {
80
81
  isPtyNotFoundError2 as isPtyNotFoundError,
81
82
  isRpcError2 as isRpcError,
82
83
  isRpcInternalError2 as isRpcInternalError,
84
+ isScheduleNotFoundError2 as isScheduleNotFoundError,
83
85
  isServiceUnavailableError2 as isServiceUnavailableError,
84
86
  isSessionBusyError2 as isSessionBusyError,
85
87
  isSessionNotFoundError2 as isSessionNotFoundError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  makeRpc2
3
- } from "../chunks/service-z11mztjj.js";
4
- import"../chunks/service-0f3b9fnq.js";
3
+ } from "../chunks/contract-kdshn947.js";
4
+ import"../chunks/contract-cvg5j6d1.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-ve4aws36.js";
4
+ } from "../chunks/contract-ve4aws36.js";
5
5
  import {
6
6
  defaultEnsureTiming2,
7
7
  ensureTiming2
8
- } from "../chunks/service-xgnj2w4v.js";
8
+ } from "../chunks/contract-xgnj2w4v.js";
9
9
  import {
10
10
  matchesVersion2
11
- } from "../chunks/service-sxt88q69.js";
11
+ } from "../chunks/contract-sxt88q69.js";
12
12
  import {
13
13
  decide2,
14
14
  fallback2,
15
15
  same2,
16
16
  probeResult2,
17
17
  headers2
18
- } from "../chunks/service-8ye1ye6f.js";
18
+ } from "../chunks/contract-2ny4vxct.js";
19
19
  import {
20
20
  prepare2,
21
21
  environment2,
22
22
  complete2,
23
23
  clear2
24
- } from "../chunks/service-nn94b6ph.js";
25
- import"../chunks/service-qav6mfdz.js";
24
+ } from "../chunks/contract-jndfjhn3.js";
25
+ import"../chunks/contract-qav6mfdz.js";
26
26
 
27
27
  // src/promise/service.ts
28
28
  import { readFile, rm } from "node:fs/promises";
@@ -4,10 +4,10 @@ import {
4
4
  complete2,
5
5
  clear2,
6
6
  exports_pty_handoff
7
- } from "./chunks/service-nn94b6ph.js";
8
- import"./chunks/service-8ye1ye6f.js";
9
- import"./chunks/service-xgnj2w4v.js";
10
- import"./chunks/service-sxt88q69.js";
7
+ } from "./chunks/contract-jndfjhn3.js";
8
+ import"./chunks/contract-2ny4vxct.js";
9
+ import"./chunks/contract-sxt88q69.js";
10
+ import"./chunks/contract-xgnj2w4v.js";
11
11
  export {
12
12
  exports_pty_handoff as PtyHandoff,
13
13
  clear2 as clear,
@@ -4,7 +4,7 @@ import {
4
4
  event2,
5
5
  eventType2,
6
6
  exports_rpc_runtime
7
- } from "./chunks/service-ryy6kscr.js";
7
+ } from "./chunks/contract-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-ve4aws36.js";
5
+ } from "./chunks/contract-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-8ye1ye6f.js";
8
- import"./chunks/service-xgnj2w4v.js";
9
- import"./chunks/service-sxt88q69.js";
7
+ } from "./chunks/contract-2ny4vxct.js";
8
+ import"./chunks/contract-sxt88q69.js";
9
+ import"./chunks/contract-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-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/service-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/service-qav6mfdz.js";
1
+ import"./chunks/contract-qav6mfdz.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
- make6,
2
+ make7,
3
3
  exports_shared_events
4
- } from "./chunks/service-sqcsh66p.js";
4
+ } from "./chunks/contract-gecjxyvt.js";
5
5
  export {
6
6
  exports_shared_events as SharedEvents,
7
- make6 as make
7
+ make7 as make
8
8
  };
@@ -2,7 +2,7 @@ import {
2
2
  defaultIdleTimeout2,
3
3
  foregroundIdleThreshold2,
4
4
  createClientConnection2
5
- } from "../chunks/service-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/service-khkm0pf7.js";
6
- import"../chunks/service-m2eywc8w.js";
7
- import"../chunks/service-yrcbssy3.js";
8
- import"../chunks/service-vyas3vgt.js";
9
- import"../chunks/service-sp3vqdnr.js";
10
- import"../chunks/service-js54wxgp.js";
11
- import"../chunks/service-z11mztjj.js";
12
- import"../chunks/service-0f3b9fnq.js";
13
- import"../chunks/service-sqcsh66p.js";
5
+ } from "../chunks/contract-csehnca4.js";
6
+ import"../chunks/contract-m2eywc8w.js";
7
+ import"../chunks/contract-p0cwenbx.js";
8
+ import"../chunks/contract-vyas3vgt.js";
9
+ import"../chunks/contract-yn2a71yh.js";
10
+ import"../chunks/contract-kdshn947.js";
11
+ import"../chunks/contract-cvg5j6d1.js";
12
+ import"../chunks/contract-nwcpakzx.js";
13
+ import"../chunks/contract-gecjxyvt.js";
14
14
  export {
15
15
  createData2 as createData,
16
16
  locationKey2 as locationKey,
@@ -1,31 +1,31 @@
1
- import"../chunks/service-js54wxgp.js";
2
- import"../chunks/service-sp3vqdnr.js";
3
- import"../chunks/service-0f3b9fnq.js";
4
- import"../chunks/service-vyas3vgt.js";
5
- import"../chunks/service-sqcsh66p.js";
6
- import"../chunks/service-z11mztjj.js";
7
- import"../chunks/service-yrcbssy3.js";
8
- import"../chunks/service-m2eywc8w.js";
1
+ import"../chunks/contract-nwcpakzx.js";
2
+ import"../chunks/contract-yn2a71yh.js";
3
+ import"../chunks/contract-cvg5j6d1.js";
4
+ import"../chunks/contract-vyas3vgt.js";
5
+ import"../chunks/contract-gecjxyvt.js";
6
+ import"../chunks/contract-kdshn947.js";
7
+ import"../chunks/contract-p0cwenbx.js";
8
+ import"../chunks/contract-m2eywc8w.js";
9
9
  import {
10
10
  settleMs2,
11
11
  locationKey2,
12
12
  createData2
13
- } from "../chunks/service-khkm0pf7.js";
13
+ } from "../chunks/contract-csehnca4.js";
14
14
  import {
15
15
  defaultIdleTimeout2,
16
16
  foregroundIdleThreshold2,
17
17
  createClientConnection2
18
- } from "../chunks/service-ydhz1zrh.js";
18
+ } from "../chunks/contract-ydhz1zrh.js";
19
19
  import {
20
20
  createPtyClient2,
21
21
  createPersistentPtyClient2
22
- } from "../chunks/service-gne7h7mq.js";
22
+ } from "../chunks/contract-gne7h7mq.js";
23
23
  import {
24
24
  createSessionRetention2
25
- } from "../chunks/service-6mq2wh8y.js";
25
+ } from "../chunks/contract-6mq2wh8y.js";
26
26
  import {
27
27
  lastAssistantWithUsage2
28
- } from "../chunks/service-8s2anffy.js";
28
+ } from "../chunks/contract-8s2anffy.js";
29
29
  export {
30
30
  createClientConnection2 as createClientConnection,
31
31
  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-gne7h7mq.js";
4
+ } from "../chunks/contract-gne7h7mq.js";
5
5
  export {
6
6
  createPersistentPtyClient2 as createPersistentPtyClient,
7
7
  createPtyClient2 as createPtyClient
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createSessionRetention2
3
- } from "../chunks/service-6mq2wh8y.js";
3
+ } from "../chunks/contract-6mq2wh8y.js";
4
4
  export {
5
5
  createSessionRetention2 as createSessionRetention
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  lastAssistantWithUsage2
3
- } from "../chunks/service-8s2anffy.js";
3
+ } from "../chunks/contract-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-203",
4
+ "version": "0.0.0-dev-216",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -63,8 +63,8 @@
63
63
  "typecheck:tsc": "tsc --noEmit"
64
64
  },
65
65
  "dependencies": {
66
- "@opencode/schema": "0.0.0-dev-203",
67
- "@opencode/protocol": "0.0.0-dev-203"
66
+ "@opencode/schema": "0.0.0-dev-216",
67
+ "@opencode/protocol": "0.0.0-dev-216"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "effect": "4.0.1",
@@ -81,7 +81,7 @@
81
81
  "devDependencies": {
82
82
  "@effect/platform-node": "4.0.1",
83
83
  "@modelcontextprotocol/client": "2.3.1",
84
- "@opencode/httpapi-codegen": "0.0.0-dev-203",
84
+ "@opencode/httpapi-codegen": "0.0.0-dev-216",
85
85
  "@tsconfig/bun": "1.0.9",
86
86
  "@types/bun": "1.4.3",
87
87
  "@typescript/native": "npm:typescript@7.1.0-beta",
@@ -1,30 +0,0 @@
1
- import {
2
- make6
3
- } from "./service-sqcsh66p.js";
4
- import {
5
- make3
6
- } from "./service-sp3vqdnr.js";
7
- import {
8
- makeRpc2
9
- } from "./service-z11mztjj.js";
10
- import {
11
- __export
12
- } from "./service-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 = make6((signal, onActivity) => raw.event.subscribe(undefined, { 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 };