@kitman-sh/cli 0.18.0 → 0.20.0

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 (28) hide show
  1. package/dist/{chunk-nfnw3dh1.js → chunk-2scq36fm.js} +21 -21
  2. package/dist/{chunk-js64y97w.js → chunk-3hyggg9w.js} +4 -4
  3. package/dist/{chunk-mqsxwm53.js → chunk-3vgv5ba7.js} +6 -6
  4. package/dist/{chunk-mca2zp8p.js → chunk-3wct0tsd.js} +2 -2
  5. package/dist/{chunk-zmqm4mrm.js → chunk-535m9qxp.js} +265 -110
  6. package/dist/{chunk-vz38kngm.js → chunk-6387vj9z.js} +2 -2
  7. package/dist/{chunk-samxkpbz.js → chunk-6hxtg6eb.js} +3 -3
  8. package/dist/{chunk-bqhfbng3.js → chunk-7dcq58d0.js} +8 -8
  9. package/dist/{chunk-my92qn4x.js → chunk-89a53j2y.js} +5 -5
  10. package/dist/{chunk-n05bj55h.js → chunk-8xd2jvgj.js} +18 -18
  11. package/dist/{chunk-jaa8qjky.js → chunk-avg3cz82.js} +4 -4
  12. package/dist/{chunk-hj8ex4x6.js → chunk-centvmrd.js} +4 -4
  13. package/dist/{chunk-wg6xkkcr.js → chunk-dtgp724s.js} +1 -1
  14. package/dist/{chunk-h2f26xbd.js → chunk-ew07nt2d.js} +61 -61
  15. package/dist/{chunk-mg3mxhxe.js → chunk-fvdnmgsy.js} +4 -4
  16. package/dist/{chunk-d3gs4jvd.js → chunk-g00ewhrb.js} +19 -19
  17. package/dist/{chunk-tsx0347c.js → chunk-haq904fk.js} +1 -1
  18. package/dist/{chunk-63cyj9dh.js → chunk-kntnw6r0.js} +28 -177
  19. package/dist/{chunk-4qjfn1sa.js → chunk-qvpkwnky.js} +1 -1
  20. package/dist/{chunk-x8zzax0f.js → chunk-rekh8azw.js} +7 -7
  21. package/dist/{chunk-2bagaygt.js → chunk-rrbnxea1.js} +6 -6
  22. package/dist/{chunk-9jffw2mk.js → chunk-s9fwm42m.js} +3 -3
  23. package/dist/{chunk-1j38xtvp.js → chunk-spazhq67.js} +2 -2
  24. package/dist/{chunk-gap0vmj7.js → chunk-v30yf453.js} +2 -2
  25. package/dist/{chunk-5kqt4bqp.js → chunk-y7bth30s.js} +1 -1
  26. package/dist/{chunk-4p1k3yyc.js → chunk-yecj64ke.js} +10 -10
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make14,
41
+ make13,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,13 +58,15 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make15,
61
+ make14,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get4,
65
+ get3,
66
66
  merge3,
67
67
  Reference,
68
+ fromInputUnsafe,
69
+ isFinite,
68
70
  millis,
69
71
  seconds,
70
72
  toMillis,
@@ -89,9 +91,11 @@ import {
89
91
  ConsoleRef,
90
92
  succeed3,
91
93
  fail4,
94
+ void_2,
92
95
  isSuccess2,
96
+ isFailure2,
93
97
  makeUnsafe5,
94
- make16,
98
+ make15,
95
99
  _await,
96
100
  fail5,
97
101
  isDone,
@@ -99,8 +103,12 @@ import {
99
103
  succeed4,
100
104
  doneUnsafe,
101
105
  TracerTimingEnabled,
106
+ Scope,
107
+ makeUnsafe6,
102
108
  provide,
109
+ addFinalizerExit,
103
110
  addFinalizer,
111
+ close,
104
112
  succeed5,
105
113
  effect,
106
114
  effectContext,
@@ -152,6 +160,7 @@ import {
152
160
  tapCause,
153
161
  retry,
154
162
  ignore,
163
+ ignoreCause,
155
164
  orElseSucceed,
156
165
  timeout,
157
166
  timeoutOrElse,
@@ -163,6 +172,7 @@ import {
163
172
  context,
164
173
  contextWith,
165
174
  provide3,
175
+ provideContext2,
166
176
  serviceOption,
167
177
  updateContext,
168
178
  provideService,
@@ -173,6 +183,7 @@ import {
173
183
  addFinalizer2,
174
184
  ensuring2,
175
185
  onError,
186
+ onExit,
176
187
  cached,
177
188
  interrupt3,
178
189
  interruptible,
@@ -184,6 +195,7 @@ import {
184
195
  withParentSpan,
185
196
  forkScoped,
186
197
  runFork,
198
+ runForkWith,
187
199
  runPromise,
188
200
  runPromiseWith,
189
201
  runSync,
@@ -203,7 +215,7 @@ import {
203
215
  decodeEffect,
204
216
  decodeUnknownOption,
205
217
  decodeOption,
206
- make17,
218
+ make16,
207
219
  isSchema,
208
220
  optionalKey,
209
221
  optional,
@@ -264,12 +276,16 @@ import {
264
276
  decodeJsonStringOption,
265
277
  encodeJsonStringSync,
266
278
  encodePrettyJsonString
267
- } from "./chunk-h2f26xbd.js";
279
+ } from "./chunk-ew07nt2d.js";
268
280
  import {
269
281
  map,
270
282
  makeEquivalence,
271
283
  toNumber,
272
284
  bytes,
285
+ join,
286
+ interrupt,
287
+ getCurrent,
288
+ runIn,
273
289
  BadArgument,
274
290
  systemError,
275
291
  badArgument,
@@ -291,13 +307,11 @@ import {
291
307
  isSink,
292
308
  fromChannel,
293
309
  drain,
294
- make10,
295
- get3,
296
310
  isStream,
297
311
  fromChannel2,
298
312
  callback,
299
313
  empty2,
300
- make11,
314
+ make10,
301
315
  suspend,
302
316
  fail2,
303
317
  fromQueue,
@@ -323,17 +337,17 @@ import {
323
337
  mkArrayBuffer,
324
338
  toReadableStreamEffect,
325
339
  FileSystem,
326
- make12,
340
+ make11,
327
341
  FileTypeId,
328
342
  WatchBackend,
329
343
  Path,
330
- make13,
344
+ make12,
331
345
  option,
332
346
  String2,
333
347
  optionalEnv,
334
348
  harnessesUnsupportedInSrt2,
335
349
  harnessesUnsupportedInDocker2
336
- } from "./chunk-63cyj9dh.js";
350
+ } from "./chunk-kntnw6r0.js";
337
351
  import {
338
352
  isRedacted,
339
353
  make,
@@ -347,7 +361,7 @@ import {
347
361
  make3,
348
362
  parseFdName,
349
363
  fdName
350
- } from "./chunk-gap0vmj7.js";
364
+ } from "./chunk-v30yf453.js";
351
365
  import {
352
366
  isDateTime,
353
367
  Numeric,
@@ -360,8 +374,7 @@ import {
360
374
  SecretScope,
361
375
  SecretHosts,
362
376
  isSecretReference
363
- } from "./chunk-4qjfn1sa.js";
364
-
377
+ } from "./chunk-qvpkwnky.js";
365
378
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
366
379
  var makeEquivalence3 = Tuple;
367
380
 
@@ -503,7 +516,7 @@ var fromDateUnsafe = (date) => {
503
516
  }
504
517
  return makeUtc(epochMillis);
505
518
  };
506
- var makeUnsafe6 = (input) => {
519
+ var makeUnsafe7 = (input) => {
507
520
  if (isDateTime2(input)) {
508
521
  return input;
509
522
  } else if (input instanceof Date) {
@@ -523,7 +536,7 @@ var makeUnsafe6 = (input) => {
523
536
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
524
537
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
525
538
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
526
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
539
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
527
540
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
528
541
  var nowUnsafe = () => makeUtc(Date.now());
529
542
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -630,7 +643,7 @@ class Metric$ {
630
643
  }
631
644
  hook(context) {
632
645
  const key = this.key(context);
633
- const registry = get4(context, MetricRegistry);
646
+ const registry = get3(context, MetricRegistry);
634
647
  let metadata = registry.get(key);
635
648
  if (isUndefined(metadata)) {
636
649
  metadata = this.metadata(this.createHooks());
@@ -639,11 +652,11 @@ class Metric$ {
639
652
  return metadata.hooks;
640
653
  }
641
654
  removeUnsafe(context) {
642
- get4(context, MetricRegistry).delete(this.key(context));
655
+ get3(context, MetricRegistry).delete(this.key(context));
643
656
  }
644
657
  registerUnsafe(context, hooks) {
645
658
  const key = this.key(context);
646
- const registry = get4(context, MetricRegistry);
659
+ const registry = get3(context, MetricRegistry);
647
660
  const metadata = this.metadata({
648
661
  get: hooks.get,
649
662
  update: constVoid,
@@ -659,7 +672,7 @@ class Metric$ {
659
672
  };
660
673
  }
661
674
  key(context) {
662
- const extraAttributes = get4(context, CurrentMetricAttributes);
675
+ const extraAttributes = get3(context, CurrentMetricAttributes);
663
676
  if (extraAttributes !== this.#extraAttributes) {
664
677
  this.#extraAttributes = extraAttributes;
665
678
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -902,9 +915,151 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
902
915
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
903
916
  var runMain = runMain2;
904
917
 
918
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
919
+ var TypeId3 = "~effect/RcRef";
920
+ var stateEmpty = {
921
+ _tag: "Empty"
922
+ };
923
+ var stateClosed = {
924
+ _tag: "Closed"
925
+ };
926
+ var variance = {
927
+ _A: identity,
928
+ _E: identity
929
+ };
930
+
931
+ class RcRefImpl {
932
+ [TypeId3] = variance;
933
+ pipe() {
934
+ return pipeArguments(this, arguments);
935
+ }
936
+ state = stateEmpty;
937
+ acquire;
938
+ context;
939
+ scope;
940
+ idleTimeToLive;
941
+ constructor(acquire, context, scope, idleTimeToLive) {
942
+ this.acquire = acquire;
943
+ this.context = context;
944
+ this.scope = scope;
945
+ this.idleTimeToLive = idleTimeToLive;
946
+ }
947
+ }
948
+ var make17 = (options) => withFiber2((fiber) => {
949
+ const context = fiber.context;
950
+ const scope = get3(context, Scope);
951
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
952
+ return as(addFinalizerExit(scope, () => {
953
+ const state = ref.state;
954
+ ref.state = stateClosed;
955
+ if (state._tag === "Acquired")
956
+ return close(state.scope, void_2);
957
+ if (state._tag === "Acquiring")
958
+ return interrupt(state.fiber);
959
+ return void_3;
960
+ }), ref);
961
+ });
962
+ var getState = (self, restore) => {
963
+ switch (self.state._tag) {
964
+ case "Closed": {
965
+ return interrupt3;
966
+ }
967
+ case "Acquired": {
968
+ const state = self.state;
969
+ state.refCount++;
970
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
971
+ }
972
+ case "Acquiring": {
973
+ const state = self.state;
974
+ state.awaiters++;
975
+ return awaitAcquiring(self, state, restore);
976
+ }
977
+ case "Empty": {
978
+ const acquiring = {
979
+ _tag: "Acquiring",
980
+ fiber: undefined,
981
+ awaiters: 1,
982
+ acquired: undefined
983
+ };
984
+ self.state = acquiring;
985
+ const scope = makeUnsafe6();
986
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
987
+ if (self.state !== acquiring) {
988
+ return interrupt3;
989
+ }
990
+ const state = {
991
+ _tag: "Acquired",
992
+ value,
993
+ scope,
994
+ fiber: undefined,
995
+ refCount: acquiring.awaiters,
996
+ invalidated: false
997
+ };
998
+ self.state = state;
999
+ acquiring.acquired = state;
1000
+ return succeed6(state);
1001
+ }), onExit((exit) => {
1002
+ if (isSuccess2(exit))
1003
+ return void_3;
1004
+ if (self.state === acquiring)
1005
+ self.state = stateEmpty;
1006
+ return close(scope, exit);
1007
+ }));
1008
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1009
+ return awaitAcquiring(self, acquiring, restore);
1010
+ }
1011
+ }
1012
+ };
1013
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1014
+ const acquired = acquiring.acquired;
1015
+ if (acquired !== undefined) {
1016
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1017
+ }
1018
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1019
+ return void_3;
1020
+ self.state = stateEmpty;
1021
+ return interrupt(acquiring.fiber);
1022
+ });
1023
+ var get4 = (self_) => {
1024
+ const self = self_;
1025
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1026
+ };
1027
+ var release = (self, state) => {
1028
+ state.refCount--;
1029
+ if (state.refCount > 0) {
1030
+ return void_3;
1031
+ }
1032
+ const idleTimeToLive = self.idleTimeToLive;
1033
+ if (idleTimeToLive === undefined || state.invalidated) {
1034
+ if (self.state === state) {
1035
+ self.state = stateEmpty;
1036
+ }
1037
+ return close(state.scope, void_2);
1038
+ } else if (!isFinite(idleTimeToLive)) {
1039
+ return void_3;
1040
+ }
1041
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1042
+ if (self.state === state && state.refCount === 0) {
1043
+ self.state = stateEmpty;
1044
+ return ignoreCause(close(state.scope, void_2), {
1045
+ log: "Unhandled",
1046
+ message: "Unhandled error in RcRef finalizer"
1047
+ });
1048
+ }
1049
+ return void_3;
1050
+ })).pipe(ensuring2(sync2(() => {
1051
+ state.fiber = undefined;
1052
+ })), runForkWith(self.context), runIn(self.scope));
1053
+ return void_3;
1054
+ };
1055
+
1056
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1057
+ var make18 = make17;
1058
+ var get5 = get4;
1059
+
905
1060
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
906
- var makeUnsafe = makeUnsafe6;
907
- var make18 = make4;
1061
+ var makeUnsafe = makeUnsafe7;
1062
+ var make19 = make4;
908
1063
  var now2 = now;
909
1064
  var nowUnsafe2 = nowUnsafe;
910
1065
  var toDateUtc2 = toDateUtc;
@@ -1223,7 +1378,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1223
1378
  windowsHide: true
1224
1379
  }, onExit);
1225
1380
  };
1226
- var make19 = /* @__PURE__ */ gen(function* () {
1381
+ var make20 = /* @__PURE__ */ gen(function* () {
1227
1382
  const fs = yield* FileSystem;
1228
1383
  const path = yield* Path;
1229
1384
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1752,7 +1907,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1752
1907
  });
1753
1908
  return make2(spawnCommand);
1754
1909
  });
1755
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1910
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1756
1911
  var flattenCommand = (command) => {
1757
1912
  const commands = [];
1758
1913
  const pipeOptions = [];
@@ -2236,7 +2391,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2236
2391
  resume(fail7(handleBadArgument("writeFile")(err)));
2237
2392
  }
2238
2393
  });
2239
- var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2394
+ var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2240
2395
  access: access2,
2241
2396
  chmod: chmod2,
2242
2397
  chown: chown2,
@@ -2296,15 +2451,15 @@ var fileUrlOps = (windows) => ({
2296
2451
  })
2297
2452
  })
2298
2453
  });
2299
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2454
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2300
2455
  ...NodePath.posix,
2301
2456
  .../* @__PURE__ */ fileUrlOps(false)
2302
2457
  }));
2303
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2458
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2304
2459
  ...NodePath.win32,
2305
2460
  .../* @__PURE__ */ fileUrlOps(true)
2306
2461
  }));
2307
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2462
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2308
2463
  ...NodePath,
2309
2464
  .../* @__PURE__ */ fileUrlOps(undefined)
2310
2465
  }));
@@ -2313,10 +2468,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2313
2468
  var layer2 = layer7;
2314
2469
 
2315
2470
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2316
- var TypeId3 = "~effect/Stdio";
2317
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2318
- var make20 = (options) => ({
2319
- [TypeId3]: TypeId3,
2471
+ var TypeId4 = "~effect/Stdio";
2472
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2473
+ var make21 = (options) => ({
2474
+ [TypeId4]: TypeId4,
2320
2475
  stdinIsTerminal: succeed6(false),
2321
2476
  stdoutIsTerminal: succeed6(false),
2322
2477
  stderrIsTerminal: succeed6(false),
@@ -2324,7 +2479,7 @@ var make20 = (options) => ({
2324
2479
  });
2325
2480
 
2326
2481
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2327
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2482
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2328
2483
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2329
2484
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2330
2485
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2524,7 +2679,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2524
2679
  const uuid = bytes(randomBytes(16));
2525
2680
  return format === "bytes" ? uuid : stringify(uuid);
2526
2681
  };
2527
- var make21 = (randomBytes) => {
2682
+ var make22 = (randomBytes) => {
2528
2683
  const randomBytesChecked = (size) => {
2529
2684
  checkSize(size);
2530
2685
  return randomBytes(size);
@@ -2558,7 +2713,7 @@ var fillRandom = (crypto2, size) => {
2558
2713
  }
2559
2714
  return bytes;
2560
2715
  };
2561
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2716
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2562
2717
  var randomBytesUnsafe = (size) => {
2563
2718
  checkSize(size);
2564
2719
  return fillRandom(globalThis.crypto, size);
@@ -2566,10 +2721,10 @@ var randomBytesUnsafe = (size) => {
2566
2721
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2567
2722
 
2568
2723
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2569
- var TypeId4 = "~effect/http/Cookies";
2724
+ var TypeId5 = "~effect/http/Cookies";
2570
2725
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2571
2726
  var Proto2 = {
2572
- [TypeId4]: TypeId4,
2727
+ [TypeId5]: TypeId5,
2573
2728
  ...BaseProto,
2574
2729
  toJSON() {
2575
2730
  return {
@@ -2748,14 +2903,14 @@ var tryDecodeURIComponent = (str) => {
2748
2903
  };
2749
2904
 
2750
2905
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2751
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2906
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2752
2907
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2753
- [TypeId5]: {
2754
- value: TypeId5
2908
+ [TypeId6]: {
2909
+ value: TypeId6
2755
2910
  },
2756
2911
  [symbolRedactable]: {
2757
2912
  value(context) {
2758
- return redact2(this, get4(context, CurrentRedactedNames));
2913
+ return redact2(this, get3(context, CurrentRedactedNames));
2759
2914
  }
2760
2915
  },
2761
2916
  toJSON: {
@@ -2780,7 +2935,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2780
2935
  value: BaseProto[NodeInspectSymbol]
2781
2936
  }
2782
2937
  });
2783
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2938
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2784
2939
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2785
2940
  var empty = /* @__PURE__ */ Object.create(Proto3);
2786
2941
  var fromInput = (input) => {
@@ -2805,21 +2960,21 @@ var fromInput = (input) => {
2805
2960
  };
2806
2961
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2807
2962
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2808
- const out = make22(self);
2963
+ const out = make23(self);
2809
2964
  out[key.toLowerCase()] = value;
2810
2965
  return out;
2811
2966
  });
2812
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2967
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2813
2968
  ...self,
2814
2969
  ...fromInput(headers)
2815
2970
  }));
2816
2971
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2817
- const out = make22(self);
2972
+ const out = make23(self);
2818
2973
  Object.assign(out, headers);
2819
2974
  return out;
2820
2975
  });
2821
2976
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2822
- const out = make22(self);
2977
+ const out = make23(self);
2823
2978
  delete out[key.toLowerCase()];
2824
2979
  return out;
2825
2980
  });
@@ -2876,18 +3031,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2876
3031
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2877
3032
 
2878
3033
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2879
- var TypeId6 = "~effect/http/UrlParams";
2880
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3034
+ var TypeId7 = "~effect/http/UrlParams";
3035
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2881
3036
  var Proto4 = {
2882
3037
  ...PipeInspectableProto,
2883
- [TypeId6]: TypeId6,
3038
+ [TypeId7]: TypeId7,
2884
3039
  [Symbol.iterator]() {
2885
3040
  return this.params[Symbol.iterator]();
2886
3041
  },
2887
3042
  [symbolRedactable](context) {
2888
3043
  return {
2889
3044
  _id: "UrlParams",
2890
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3045
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2891
3046
  };
2892
3047
  },
2893
3048
  toJSON() {
@@ -2900,7 +3055,7 @@ var Proto4 = {
2900
3055
  return array(this.params.flat());
2901
3056
  }
2902
3057
  };
2903
- var make23 = (params) => {
3058
+ var make24 = (params) => {
2904
3059
  const self = Object.create(Proto4);
2905
3060
  self.params = params;
2906
3061
  return self;
@@ -2919,7 +3074,7 @@ var fromInput2 = (input) => {
2919
3074
  out.push(parsed[i]);
2920
3075
  }
2921
3076
  }
2922
- return make23(out);
3077
+ return make24(out);
2923
3078
  };
2924
3079
  var fromInputNested = (input) => {
2925
3080
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2943,9 +3098,9 @@ var fromInputNested = (input) => {
2943
3098
  return out;
2944
3099
  };
2945
3100
  var coerce = (value) => isRedacted(value) ? value : String(value);
2946
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3101
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2947
3102
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2948
- var empty4 = /* @__PURE__ */ make23([]);
3103
+ var empty4 = /* @__PURE__ */ make24([]);
2949
3104
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2950
3105
  const params = fromInput2(input).params.slice();
2951
3106
  const keys = new Set;
@@ -2957,7 +3112,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2957
3112
  continue;
2958
3113
  params.push(self.params[i]);
2959
3114
  }
2960
- return make23(params);
3115
+ return make24(params);
2961
3116
  });
2962
3117
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2963
3118
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3013,13 +3168,13 @@ var decodeQueryKey = (key) => {
3013
3168
  return key;
3014
3169
  }
3015
3170
  };
3016
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3171
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3017
3172
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3018
3173
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3019
3174
  });
3020
3175
 
3021
3176
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3022
- var TypeId7 = "~effect/Terminal";
3177
+ var TypeId8 = "~effect/Terminal";
3023
3178
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3024
3179
 
3025
3180
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3028,14 +3183,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3028
3183
  [QuitErrorTypeId] = QuitErrorTypeId;
3029
3184
  }
3030
3185
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3031
- var make24 = (impl) => Terminal.of({
3186
+ var make25 = (impl) => Terminal.of({
3032
3187
  ...impl,
3033
- [TypeId7]: TypeId7
3188
+ [TypeId8]: TypeId8
3034
3189
  });
3035
3190
 
3036
3191
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3037
3192
  import * as readline from "readline";
3038
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3193
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3039
3194
  const stdin = process.stdin;
3040
3195
  const stdout = process.stdout;
3041
3196
  const lines = yield* make9();
@@ -3049,7 +3204,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3049
3204
  };
3050
3205
  stdin.once("end", onStdinEnd);
3051
3206
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3052
- const rlRef = yield* make10({
3207
+ const rlRef = yield* make18({
3053
3208
  acquire: acquireRelease(sync2(() => {
3054
3209
  const rl = readline.createInterface({
3055
3210
  input: stdin,
@@ -3088,7 +3243,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3088
3243
  if (stdin.isTTY)
3089
3244
  stdin.setRawMode(enabled);
3090
3245
  });
3091
- const rawModeRef = yield* make10({
3246
+ const rawModeRef = yield* make18({
3092
3247
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3093
3248
  idleTimeToLive: "10 millis"
3094
3249
  });
@@ -3139,14 +3294,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3139
3294
  if (inputEnded) {
3140
3295
  handleEnd();
3141
3296
  } else {
3142
- yield* get3(rlRef);
3143
- yield* get3(rawModeRef);
3297
+ yield* get5(rlRef);
3298
+ yield* get5(rawModeRef);
3144
3299
  stdin.once("end", handleEnd);
3145
3300
  }
3146
3301
  return queue;
3147
3302
  });
3148
3303
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3149
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3304
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3150
3305
  onSome: succeed6
3151
3306
  })), mapError2(() => new QuitError({}))));
3152
3307
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3157,7 +3312,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3157
3312
  cause: err
3158
3313
  }))));
3159
3314
  }));
3160
- return make24({
3315
+ return make25({
3161
3316
  columns,
3162
3317
  rows,
3163
3318
  size,
@@ -3166,7 +3321,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3166
3321
  display
3167
3322
  });
3168
3323
  });
3169
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3324
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3170
3325
  function defaultShouldQuit(input) {
3171
3326
  const key = input.key;
3172
3327
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3193,7 +3348,7 @@ function toDate(input) {
3193
3348
  return toDateUtc2(makeUnsafe(input));
3194
3349
  }
3195
3350
  function parseDate(input) {
3196
- return getOrUndefined(map4(make18(input), toDateUtc2));
3351
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3197
3352
  }
3198
3353
  function toIso(input) {
3199
3354
  return formatIso(makeUnsafe(input));
@@ -10801,11 +10956,11 @@ var TranscriptSearchResult = Struct({
10801
10956
  total: Int
10802
10957
  });
10803
10958
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
10804
- var TypeId8 = "~effect/http/HttpBody";
10959
+ var TypeId9 = "~effect/http/HttpBody";
10805
10960
  class Proto5 {
10806
- [TypeId8];
10961
+ [TypeId9];
10807
10962
  constructor() {
10808
- this[TypeId8] = TypeId8;
10963
+ this[TypeId9] = TypeId9;
10809
10964
  }
10810
10965
  [NodeInspectSymbol]() {
10811
10966
  return this.toJSON();
@@ -10896,7 +11051,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
10896
11051
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
10897
11052
 
10898
11053
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
10899
- var TypeId9 = "~effect/http/HttpClientError";
11054
+ var TypeId10 = "~effect/http/HttpClientError";
10900
11055
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10901
11056
  constructor(props) {
10902
11057
  if ("cause" in props.reason) {
@@ -10908,7 +11063,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10908
11063
  super(props);
10909
11064
  }
10910
11065
  }
10911
- [TypeId9] = TypeId9;
11066
+ [TypeId10] = TypeId10;
10912
11067
  get request() {
10913
11068
  return this.reason.request;
10914
11069
  }
@@ -11012,7 +11167,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11012
11167
  }
11013
11168
  }
11014
11169
 
11015
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11170
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11016
11171
  _tag: /* @__PURE__ */ tag("HttpError"),
11017
11172
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11018
11173
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11045,7 +11200,7 @@ var updateContentLength = (headers, body) => {
11045
11200
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11046
11201
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11047
11202
  }
11048
- var make26 = (url, params, hash) => try_({
11203
+ var make27 = (url, params, hash) => try_({
11049
11204
  try: () => {
11050
11205
  const urlInstance = new URL(url, baseUrl());
11051
11206
  for (let i = 0;i < params.params.length; i++) {
@@ -11076,10 +11231,10 @@ var baseUrl = () => {
11076
11231
  };
11077
11232
 
11078
11233
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
11079
- var TypeId10 = "~effect/http/HttpClientRequest";
11080
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11234
+ var TypeId11 = "~effect/http/HttpClientRequest";
11235
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11081
11236
  var Proto6 = {
11082
- [TypeId10]: TypeId10,
11237
+ [TypeId11]: TypeId11,
11083
11238
  ...BaseProto,
11084
11239
  toJSON() {
11085
11240
  return {
@@ -11168,7 +11323,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11168
11323
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11169
11324
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11170
11325
  function toUrl(self) {
11171
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11326
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11172
11327
  if (isSuccess(r)) {
11173
11328
  return some(r.success);
11174
11329
  }
@@ -11176,7 +11331,7 @@ function toUrl(self) {
11176
11331
  }
11177
11332
 
11178
11333
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11179
- var TypeId11 = "~effect/http/HttpIncomingMessage";
11334
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
11180
11335
  var schemaBodyJson = (schema, options) => {
11181
11336
  const decode = decodeEffect(toCodecJson(schema));
11182
11337
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11195,7 +11350,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11195
11350
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11196
11351
 
11197
11352
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11198
- var TypeId12 = "~effect/http/HttpClientResponse";
11353
+ var TypeId13 = "~effect/http/HttpClientResponse";
11199
11354
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11200
11355
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11201
11356
  reason: new StatusCodeError({
@@ -11206,16 +11361,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11206
11361
  }));
11207
11362
 
11208
11363
  class WebHttpClientResponse extends Class {
11209
- [TypeId11];
11210
11364
  [TypeId12];
11365
+ [TypeId13];
11211
11366
  request;
11212
11367
  source;
11213
11368
  constructor(request, source) {
11214
11369
  super();
11215
11370
  this.request = request;
11216
11371
  this.source = source;
11217
- this[TypeId11] = TypeId11;
11218
11372
  this[TypeId12] = TypeId12;
11373
+ this[TypeId13] = TypeId13;
11219
11374
  }
11220
11375
  toJSON() {
11221
11376
  return inspect(this, {
@@ -11387,7 +11542,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11387
11542
  };
11388
11543
 
11389
11544
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11390
- var TypeId13 = "~effect/http/HttpClient";
11545
+ var TypeId14 = "~effect/http/HttpClient";
11391
11546
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11392
11547
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11393
11548
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11404,7 +11559,7 @@ var makeWith2 = (postprocess, preprocess) => {
11404
11559
  return self;
11405
11560
  };
11406
11561
  var Proto7 = {
11407
- [TypeId13]: TypeId13,
11562
+ [TypeId14]: TypeId14,
11408
11563
  pipe() {
11409
11564
  return pipeArguments(this, arguments);
11410
11565
  },
@@ -11418,10 +11573,10 @@ var Proto7 = {
11418
11573
  return this.execute(make5(fullMethod)(url, options));
11419
11574
  }]))
11420
11575
  };
11421
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11576
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11422
11577
  const scopedController = scopedRequests.get(request);
11423
11578
  const controller = scopedController ?? new AbortController;
11424
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11579
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11425
11580
  if (isFailure(urlResult)) {
11426
11581
  return fail7(new HttpClientError({
11427
11582
  reason: new InvalidUrlError({
@@ -11555,8 +11710,8 @@ class InterruptibleResponse {
11555
11710
  this.original = original;
11556
11711
  this.controller = controller;
11557
11712
  }
11713
+ [TypeId13] = TypeId13;
11558
11714
  [TypeId12] = TypeId12;
11559
- [TypeId11] = TypeId11;
11560
11715
  applyInterrupt(effect) {
11561
11716
  return suspend3(() => {
11562
11717
  responseRegistry.unregister(this.original);
@@ -11654,7 +11809,7 @@ var detectStreamBodySupport = () => {
11654
11809
  return false;
11655
11810
  }
11656
11811
  };
11657
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11812
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11658
11813
  if (request.headers.upgrade !== undefined) {
11659
11814
  return fail7(new HttpClientError({
11660
11815
  reason: new TransportError({
@@ -11745,10 +11900,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11745
11900
  });
11746
11901
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11747
11902
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11748
- var TypeId14 = "~effect/socket/Socket";
11903
+ var TypeId15 = "~effect/socket/Socket";
11749
11904
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11750
- var make28 = (options) => Socket.of({
11751
- [TypeId14]: TypeId14,
11905
+ var make29 = (options) => Socket.of({
11906
+ [TypeId15]: TypeId15,
11752
11907
  reader: options.reader,
11753
11908
  writer: options.writer
11754
11909
  });
@@ -12071,7 +12226,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12071
12226
  write,
12072
12227
  writeAll
12073
12228
  });
12074
- return succeed6(make28({
12229
+ return succeed6(make29({
12075
12230
  reader,
12076
12231
  writer
12077
12232
  }));
@@ -15397,7 +15552,7 @@ function getStreamSchemas(schema) {
15397
15552
  }
15398
15553
  var schema = /* @__PURE__ */ declare(isStream);
15399
15554
  function Stream(success, error) {
15400
- return make17(schema.ast, {
15555
+ return make16(schema.ast, {
15401
15556
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15402
15557
  success,
15403
15558
  error
@@ -15405,9 +15560,9 @@ function Stream(success, error) {
15405
15560
  }
15406
15561
 
15407
15562
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15408
- var TypeId15 = "~effect/rpc/Rpc";
15563
+ var TypeId16 = "~effect/rpc/Rpc";
15409
15564
  var Proto8 = {
15410
- [TypeId15]: TypeId15,
15565
+ [TypeId16]: TypeId16,
15411
15566
  pipe() {
15412
15567
  return pipeArguments(this, arguments);
15413
15568
  },
@@ -15574,7 +15729,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15574
15729
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15575
15730
 
15576
15731
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15577
- var TypeId16 = "~effect/rpc/RpcClientError";
15732
+ var TypeId17 = "~effect/rpc/RpcClientError";
15578
15733
 
15579
15734
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15580
15735
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15583,11 +15738,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15583
15738
  })) {
15584
15739
  }
15585
15740
 
15586
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15741
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15587
15742
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15588
15743
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15589
15744
  })) {
15590
- [TypeId16] = TypeId16;
15745
+ [TypeId17] = TypeId17;
15591
15746
  get message() {
15592
15747
  return `${this.reason._tag}: ${this.reason.message}`;
15593
15748
  }
@@ -15707,7 +15862,7 @@ var RpcGroupProto = {
15707
15862
  });
15708
15863
  },
15709
15864
  annotateRpcs(service, value) {
15710
- return this.annotateRpcsMerge(make15(service, value));
15865
+ return this.annotateRpcsMerge(make14(service, value));
15711
15866
  },
15712
15867
  annotateMerge(context) {
15713
15868
  return makeProto2({
@@ -15735,7 +15890,7 @@ var make7 = (...rpcs) => makeProto2({
15735
15890
  annotations: empty3()
15736
15891
  });
15737
15892
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15738
- var TypeId17 = "~effect/rpc/RpcMiddleware";
15893
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
15739
15894
  var Service = () => (id, options) => {
15740
15895
  const limit = getStackTraceLimit();
15741
15896
  let creationError;
@@ -15753,7 +15908,7 @@ var Service = () => (id, options) => {
15753
15908
  return creationError?.stack;
15754
15909
  }
15755
15910
  });
15756
- ServiceClass_[TypeId17] = TypeId17;
15911
+ ServiceClass_[TypeId18] = TypeId18;
15757
15912
  ServiceClass_.error = options?.error ?? Never;
15758
15913
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15759
15914
  return ServiceClass;
@@ -16496,7 +16651,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16496
16651
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16497
16652
 
16498
16653
  // apps/cli/src/oauth.ts
16499
- var Scope = "openid profile email offline_access kitman:cli";
16654
+ var Scope2 = "openid profile email offline_access kitman:cli";
16500
16655
  var CallbackPath = "/auth/callback";
16501
16656
 
16502
16657
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16515,7 +16670,7 @@ function buildAuthorizeUrl(input) {
16515
16670
  url.searchParams.set("response_type", "code");
16516
16671
  url.searchParams.set("client_id", input.clientId);
16517
16672
  url.searchParams.set("redirect_uri", input.redirectUri);
16518
- url.searchParams.set("scope", Scope);
16673
+ url.searchParams.set("scope", Scope2);
16519
16674
  url.searchParams.set("code_challenge", input.codeChallenge);
16520
16675
  url.searchParams.set("code_challenge_method", "S256");
16521
16676
  url.searchParams.set("state", input.state);
@@ -16575,7 +16730,7 @@ function toStoredSession(token, existingRefreshToken) {
16575
16730
  }
16576
16731
  function startLoopbackServer(input) {
16577
16732
  return gen(function* () {
16578
- const code = yield* make16();
16733
+ const code = yield* make15();
16579
16734
  const context2 = yield* context();
16580
16735
  const runSyncExit = runSyncExitWith(context2);
16581
16736
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -17123,7 +17278,7 @@ var openConnection = (transport) => gen(function* () {
17123
17278
  let lastId = 0;
17124
17279
  let lost = false;
17125
17280
  const notifications = yield* unbounded2();
17126
- const ended = yield* make16();
17281
+ const ended = yield* make15();
17127
17282
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
17128
17283
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
17129
17284
  onNone: () => void_3,
@@ -17150,7 +17305,7 @@ var openConnection = (transport) => gen(function* () {
17150
17305
  if (lost)
17151
17306
  return yield* new HerdrCoreConnectionLost2({ method });
17152
17307
  const id = ++lastId;
17153
- const deferred = yield* make16();
17308
+ const deferred = yield* make15();
17154
17309
  pending.set(id, { method, deferred });
17155
17310
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
17156
17311
  return yield* _await(deferred);
@@ -17224,7 +17379,7 @@ var herdrCoreOver = (transport) => ({
17224
17379
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
17225
17380
  };
17226
17381
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
17227
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17382
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17228
17383
  }))
17229
17384
  });
17230
17385
  var spawnedTransport = (env) => gen(function* () {
@@ -17315,7 +17470,7 @@ var runProcess2 = (argv, options) => gen(function* () {
17315
17470
  const spawner = yield* ChildProcessSpawner;
17316
17471
  const [command, ...args] = argv;
17317
17472
  const handle = yield* spawner.spawn(make3(command, args, {
17318
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
17473
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17319
17474
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17320
17475
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
17321
17476
  }));