@kitman-sh/cli 0.16.1 → 0.18.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-scwj3w7m.js → chunk-1j38xtvp.js} +2 -2
  2. package/dist/{chunk-9qfyb5r2.js → chunk-2bagaygt.js} +6 -6
  3. package/dist/{chunk-yja59yh8.js → chunk-4p1k3yyc.js} +17 -17
  4. package/dist/{chunk-x83q18w0.js → chunk-4qjfn1sa.js} +1 -1
  5. package/dist/{chunk-gwzzacep.js → chunk-5kqt4bqp.js} +1 -1
  6. package/dist/{chunk-bkteq6b3.js → chunk-63cyj9dh.js} +186 -28
  7. package/dist/{chunk-ft3gnwd1.js → chunk-9jffw2mk.js} +3 -3
  8. package/dist/{chunk-hwqecp0m.js → chunk-bqhfbng3.js} +12 -12
  9. package/dist/{chunk-bcqqrwsk.js → chunk-d3gs4jvd.js} +85 -69
  10. package/dist/{chunk-g1f0cjqe.js → chunk-gap0vmj7.js} +2 -2
  11. package/dist/{chunk-rfnasm3c.js → chunk-h2f26xbd.js} +93 -61
  12. package/dist/{chunk-8f632x21.js → chunk-hj8ex4x6.js} +4 -4
  13. package/dist/{chunk-tx7et9g7.js → chunk-jaa8qjky.js} +9 -9
  14. package/dist/{chunk-eavx040m.js → chunk-js64y97w.js} +4 -4
  15. package/dist/{chunk-tc7td60t.js → chunk-mca2zp8p.js} +4 -4
  16. package/dist/{chunk-1r026thg.js → chunk-mg3mxhxe.js} +6 -6
  17. package/dist/{chunk-4yjcehqr.js → chunk-mqsxwm53.js} +17 -17
  18. package/dist/{chunk-xy3hcdhr.js → chunk-my92qn4x.js} +8 -8
  19. package/dist/{chunk-e42hjb3j.js → chunk-n05bj55h.js} +29 -29
  20. package/dist/{chunk-b0b9v7t9.js → chunk-nfnw3dh1.js} +8 -8
  21. package/dist/{chunk-djdhep8n.js → chunk-samxkpbz.js} +3 -3
  22. package/dist/{chunk-f2y0z04q.js → chunk-tsx0347c.js} +1 -1
  23. package/dist/{chunk-sd8b4k1t.js → chunk-vz38kngm.js} +2 -2
  24. package/dist/{chunk-3b198ntn.js → chunk-wg6xkkcr.js} +1 -1
  25. package/dist/{chunk-5s4sgrak.js → chunk-x8zzax0f.js} +10 -10
  26. package/dist/{chunk-dxfab1aj.js → chunk-zmqm4mrm.js} +110 -274
  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
- make13,
41
+ make14,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,15 +58,13 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make14,
61
+ make15,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get3,
65
+ get4,
66
66
  merge3,
67
67
  Reference,
68
- fromInputUnsafe,
69
- isFinite,
70
68
  millis,
71
69
  seconds,
72
70
  toMillis,
@@ -91,11 +89,9 @@ import {
91
89
  ConsoleRef,
92
90
  succeed3,
93
91
  fail4,
94
- void_2,
95
92
  isSuccess2,
96
- isFailure2,
97
93
  makeUnsafe5,
98
- make15,
94
+ make16,
99
95
  _await,
100
96
  fail5,
101
97
  isDone,
@@ -103,12 +99,8 @@ import {
103
99
  succeed4,
104
100
  doneUnsafe,
105
101
  TracerTimingEnabled,
106
- Scope,
107
- makeUnsafe6,
108
102
  provide,
109
- addFinalizerExit,
110
103
  addFinalizer,
111
- close,
112
104
  succeed5,
113
105
  effect,
114
106
  effectContext,
@@ -160,7 +152,6 @@ import {
160
152
  tapCause,
161
153
  retry,
162
154
  ignore,
163
- ignoreCause,
164
155
  orElseSucceed,
165
156
  timeout,
166
157
  timeoutOrElse,
@@ -172,7 +163,6 @@ import {
172
163
  context,
173
164
  contextWith,
174
165
  provide3,
175
- provideContext2,
176
166
  serviceOption,
177
167
  updateContext,
178
168
  provideService,
@@ -183,7 +173,6 @@ import {
183
173
  addFinalizer2,
184
174
  ensuring2,
185
175
  onError,
186
- onExit,
187
176
  cached,
188
177
  interrupt3,
189
178
  interruptible,
@@ -195,7 +184,6 @@ import {
195
184
  withParentSpan,
196
185
  forkScoped,
197
186
  runFork,
198
- runForkWith,
199
187
  runPromise,
200
188
  runPromiseWith,
201
189
  runSync,
@@ -215,7 +203,7 @@ import {
215
203
  decodeEffect,
216
204
  decodeUnknownOption,
217
205
  decodeOption,
218
- make16,
206
+ make17,
219
207
  isSchema,
220
208
  optionalKey,
221
209
  optional,
@@ -276,15 +264,12 @@ import {
276
264
  decodeJsonStringOption,
277
265
  encodeJsonStringSync,
278
266
  encodePrettyJsonString
279
- } from "./chunk-rfnasm3c.js";
267
+ } from "./chunk-h2f26xbd.js";
280
268
  import {
281
269
  map,
282
270
  makeEquivalence,
271
+ toNumber,
283
272
  bytes,
284
- join,
285
- interrupt,
286
- getCurrent,
287
- runIn,
288
273
  BadArgument,
289
274
  systemError,
290
275
  badArgument,
@@ -306,11 +291,13 @@ import {
306
291
  isSink,
307
292
  fromChannel,
308
293
  drain,
294
+ make10,
295
+ get3,
309
296
  isStream,
310
297
  fromChannel2,
311
298
  callback,
312
299
  empty2,
313
- make10,
300
+ make11,
314
301
  suspend,
315
302
  fail2,
316
303
  fromQueue,
@@ -336,17 +323,17 @@ import {
336
323
  mkArrayBuffer,
337
324
  toReadableStreamEffect,
338
325
  FileSystem,
339
- make11,
326
+ make12,
340
327
  FileTypeId,
341
328
  WatchBackend,
342
329
  Path,
343
- make12,
330
+ make13,
344
331
  option,
345
332
  String2,
346
333
  optionalEnv,
347
334
  harnessesUnsupportedInSrt2,
348
335
  harnessesUnsupportedInDocker2
349
- } from "./chunk-bkteq6b3.js";
336
+ } from "./chunk-63cyj9dh.js";
350
337
  import {
351
338
  isRedacted,
352
339
  make,
@@ -360,7 +347,7 @@ import {
360
347
  make3,
361
348
  parseFdName,
362
349
  fdName
363
- } from "./chunk-g1f0cjqe.js";
350
+ } from "./chunk-gap0vmj7.js";
364
351
  import {
365
352
  isDateTime,
366
353
  Numeric,
@@ -373,7 +360,7 @@ import {
373
360
  SecretScope,
374
361
  SecretHosts,
375
362
  isSecretReference
376
- } from "./chunk-x83q18w0.js";
363
+ } from "./chunk-4qjfn1sa.js";
377
364
 
378
365
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
379
366
  var makeEquivalence3 = Tuple;
@@ -516,7 +503,7 @@ var fromDateUnsafe = (date) => {
516
503
  }
517
504
  return makeUtc(epochMillis);
518
505
  };
519
- var makeUnsafe7 = (input) => {
506
+ var makeUnsafe6 = (input) => {
520
507
  if (isDateTime2(input)) {
521
508
  return input;
522
509
  } else if (input instanceof Date) {
@@ -536,7 +523,7 @@ var makeUnsafe7 = (input) => {
536
523
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
537
524
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
538
525
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
539
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
526
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
540
527
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
541
528
  var nowUnsafe = () => makeUtc(Date.now());
542
529
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -643,7 +630,7 @@ class Metric$ {
643
630
  }
644
631
  hook(context) {
645
632
  const key = this.key(context);
646
- const registry = get3(context, MetricRegistry);
633
+ const registry = get4(context, MetricRegistry);
647
634
  let metadata = registry.get(key);
648
635
  if (isUndefined(metadata)) {
649
636
  metadata = this.metadata(this.createHooks());
@@ -652,11 +639,11 @@ class Metric$ {
652
639
  return metadata.hooks;
653
640
  }
654
641
  removeUnsafe(context) {
655
- get3(context, MetricRegistry).delete(this.key(context));
642
+ get4(context, MetricRegistry).delete(this.key(context));
656
643
  }
657
644
  registerUnsafe(context, hooks) {
658
645
  const key = this.key(context);
659
- const registry = get3(context, MetricRegistry);
646
+ const registry = get4(context, MetricRegistry);
660
647
  const metadata = this.metadata({
661
648
  get: hooks.get,
662
649
  update: constVoid,
@@ -672,7 +659,7 @@ class Metric$ {
672
659
  };
673
660
  }
674
661
  key(context) {
675
- const extraAttributes = get3(context, CurrentMetricAttributes);
662
+ const extraAttributes = get4(context, CurrentMetricAttributes);
676
663
  if (extraAttributes !== this.#extraAttributes) {
677
664
  this.#extraAttributes = extraAttributes;
678
665
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -915,160 +902,9 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
915
902
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
916
903
  var runMain = runMain2;
917
904
 
918
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
919
- var BigInt2 = globalThis.BigInt;
920
- var toNumber = (b) => {
921
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
922
- return none();
923
- }
924
- return some(Number(b));
925
- };
926
-
927
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
928
- var TypeId3 = "~effect/RcRef";
929
- var stateEmpty = {
930
- _tag: "Empty"
931
- };
932
- var stateClosed = {
933
- _tag: "Closed"
934
- };
935
- var variance = {
936
- _A: identity,
937
- _E: identity
938
- };
939
-
940
- class RcRefImpl {
941
- [TypeId3] = variance;
942
- pipe() {
943
- return pipeArguments(this, arguments);
944
- }
945
- state = stateEmpty;
946
- acquire;
947
- context;
948
- scope;
949
- idleTimeToLive;
950
- constructor(acquire, context, scope, idleTimeToLive) {
951
- this.acquire = acquire;
952
- this.context = context;
953
- this.scope = scope;
954
- this.idleTimeToLive = idleTimeToLive;
955
- }
956
- }
957
- var make17 = (options) => withFiber2((fiber) => {
958
- const context = fiber.context;
959
- const scope = get3(context, Scope);
960
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
961
- return as(addFinalizerExit(scope, () => {
962
- const state = ref.state;
963
- ref.state = stateClosed;
964
- if (state._tag === "Acquired")
965
- return close(state.scope, void_2);
966
- if (state._tag === "Acquiring")
967
- return interrupt(state.fiber);
968
- return void_3;
969
- }), ref);
970
- });
971
- var getState = (self, restore) => {
972
- switch (self.state._tag) {
973
- case "Closed": {
974
- return interrupt3;
975
- }
976
- case "Acquired": {
977
- const state = self.state;
978
- state.refCount++;
979
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
980
- }
981
- case "Acquiring": {
982
- const state = self.state;
983
- state.awaiters++;
984
- return awaitAcquiring(self, state, restore);
985
- }
986
- case "Empty": {
987
- const acquiring = {
988
- _tag: "Acquiring",
989
- fiber: undefined,
990
- awaiters: 1,
991
- acquired: undefined
992
- };
993
- self.state = acquiring;
994
- const scope = makeUnsafe6();
995
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
996
- if (self.state !== acquiring) {
997
- return interrupt3;
998
- }
999
- const state = {
1000
- _tag: "Acquired",
1001
- value,
1002
- scope,
1003
- fiber: undefined,
1004
- refCount: acquiring.awaiters,
1005
- invalidated: false
1006
- };
1007
- self.state = state;
1008
- acquiring.acquired = state;
1009
- return succeed6(state);
1010
- }), onExit((exit) => {
1011
- if (isSuccess2(exit))
1012
- return void_3;
1013
- if (self.state === acquiring)
1014
- self.state = stateEmpty;
1015
- return close(scope, exit);
1016
- }));
1017
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1018
- return awaitAcquiring(self, acquiring, restore);
1019
- }
1020
- }
1021
- };
1022
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1023
- const acquired = acquiring.acquired;
1024
- if (acquired !== undefined) {
1025
- return isFailure2(exit) ? release(self, acquired) : void_3;
1026
- }
1027
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
1028
- return void_3;
1029
- self.state = stateEmpty;
1030
- return interrupt(acquiring.fiber);
1031
- });
1032
- var get4 = (self_) => {
1033
- const self = self_;
1034
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1035
- };
1036
- var release = (self, state) => {
1037
- state.refCount--;
1038
- if (state.refCount > 0) {
1039
- return void_3;
1040
- }
1041
- const idleTimeToLive = self.idleTimeToLive;
1042
- if (idleTimeToLive === undefined || state.invalidated) {
1043
- if (self.state === state) {
1044
- self.state = stateEmpty;
1045
- }
1046
- return close(state.scope, void_2);
1047
- } else if (!isFinite(idleTimeToLive)) {
1048
- return void_3;
1049
- }
1050
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1051
- if (self.state === state && state.refCount === 0) {
1052
- self.state = stateEmpty;
1053
- return ignoreCause(close(state.scope, void_2), {
1054
- log: "Unhandled",
1055
- message: "Unhandled error in RcRef finalizer"
1056
- });
1057
- }
1058
- return void_3;
1059
- })).pipe(ensuring2(sync2(() => {
1060
- state.fiber = undefined;
1061
- })), runForkWith(self.context), runIn(self.scope));
1062
- return void_3;
1063
- };
1064
-
1065
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1066
- var make18 = make17;
1067
- var get5 = get4;
1068
-
1069
905
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1070
- var makeUnsafe = makeUnsafe7;
1071
- var make19 = make4;
906
+ var makeUnsafe = makeUnsafe6;
907
+ var make18 = make4;
1072
908
  var now2 = now;
1073
909
  var nowUnsafe2 = nowUnsafe;
1074
910
  var toDateUtc2 = toDateUtc;
@@ -1387,7 +1223,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1387
1223
  windowsHide: true
1388
1224
  }, onExit);
1389
1225
  };
1390
- var make20 = /* @__PURE__ */ gen(function* () {
1226
+ var make19 = /* @__PURE__ */ gen(function* () {
1391
1227
  const fs = yield* FileSystem;
1392
1228
  const path = yield* Path;
1393
1229
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1916,7 +1752,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1916
1752
  });
1917
1753
  return make2(spawnCommand);
1918
1754
  });
1919
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1755
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1920
1756
  var flattenCommand = (command) => {
1921
1757
  const commands = [];
1922
1758
  const pipeOptions = [];
@@ -2400,7 +2236,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2400
2236
  resume(fail7(handleBadArgument("writeFile")(err)));
2401
2237
  }
2402
2238
  });
2403
- var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2239
+ var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2404
2240
  access: access2,
2405
2241
  chmod: chmod2,
2406
2242
  chown: chown2,
@@ -2460,15 +2296,15 @@ var fileUrlOps = (windows) => ({
2460
2296
  })
2461
2297
  })
2462
2298
  });
2463
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2299
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2464
2300
  ...NodePath.posix,
2465
2301
  .../* @__PURE__ */ fileUrlOps(false)
2466
2302
  }));
2467
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2303
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2468
2304
  ...NodePath.win32,
2469
2305
  .../* @__PURE__ */ fileUrlOps(true)
2470
2306
  }));
2471
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2307
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2472
2308
  ...NodePath,
2473
2309
  .../* @__PURE__ */ fileUrlOps(undefined)
2474
2310
  }));
@@ -2477,10 +2313,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2477
2313
  var layer2 = layer7;
2478
2314
 
2479
2315
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2480
- var TypeId4 = "~effect/Stdio";
2481
- var Stdio = /* @__PURE__ */ Service2(TypeId4);
2482
- var make21 = (options) => ({
2483
- [TypeId4]: TypeId4,
2316
+ var TypeId3 = "~effect/Stdio";
2317
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2318
+ var make20 = (options) => ({
2319
+ [TypeId3]: TypeId3,
2484
2320
  stdinIsTerminal: succeed6(false),
2485
2321
  stdoutIsTerminal: succeed6(false),
2486
2322
  stderrIsTerminal: succeed6(false),
@@ -2488,7 +2324,7 @@ var make21 = (options) => ({
2488
2324
  });
2489
2325
 
2490
2326
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2491
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2327
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2492
2328
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2493
2329
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2494
2330
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2688,7 +2524,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2688
2524
  const uuid = bytes(randomBytes(16));
2689
2525
  return format === "bytes" ? uuid : stringify(uuid);
2690
2526
  };
2691
- var make22 = (randomBytes) => {
2527
+ var make21 = (randomBytes) => {
2692
2528
  const randomBytesChecked = (size) => {
2693
2529
  checkSize(size);
2694
2530
  return randomBytes(size);
@@ -2722,7 +2558,7 @@ var fillRandom = (crypto2, size) => {
2722
2558
  }
2723
2559
  return bytes;
2724
2560
  };
2725
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2561
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2726
2562
  var randomBytesUnsafe = (size) => {
2727
2563
  checkSize(size);
2728
2564
  return fillRandom(globalThis.crypto, size);
@@ -2730,10 +2566,10 @@ var randomBytesUnsafe = (size) => {
2730
2566
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2731
2567
 
2732
2568
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2733
- var TypeId5 = "~effect/http/Cookies";
2569
+ var TypeId4 = "~effect/http/Cookies";
2734
2570
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2735
2571
  var Proto2 = {
2736
- [TypeId5]: TypeId5,
2572
+ [TypeId4]: TypeId4,
2737
2573
  ...BaseProto,
2738
2574
  toJSON() {
2739
2575
  return {
@@ -2912,14 +2748,14 @@ var tryDecodeURIComponent = (str) => {
2912
2748
  };
2913
2749
 
2914
2750
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2915
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2751
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2916
2752
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2917
- [TypeId6]: {
2918
- value: TypeId6
2753
+ [TypeId5]: {
2754
+ value: TypeId5
2919
2755
  },
2920
2756
  [symbolRedactable]: {
2921
2757
  value(context) {
2922
- return redact2(this, get3(context, CurrentRedactedNames));
2758
+ return redact2(this, get4(context, CurrentRedactedNames));
2923
2759
  }
2924
2760
  },
2925
2761
  toJSON: {
@@ -2944,7 +2780,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2944
2780
  value: BaseProto[NodeInspectSymbol]
2945
2781
  }
2946
2782
  });
2947
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2783
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2948
2784
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2949
2785
  var empty = /* @__PURE__ */ Object.create(Proto3);
2950
2786
  var fromInput = (input) => {
@@ -2969,21 +2805,21 @@ var fromInput = (input) => {
2969
2805
  };
2970
2806
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2971
2807
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2972
- const out = make23(self);
2808
+ const out = make22(self);
2973
2809
  out[key.toLowerCase()] = value;
2974
2810
  return out;
2975
2811
  });
2976
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2812
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2977
2813
  ...self,
2978
2814
  ...fromInput(headers)
2979
2815
  }));
2980
2816
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2981
- const out = make23(self);
2817
+ const out = make22(self);
2982
2818
  Object.assign(out, headers);
2983
2819
  return out;
2984
2820
  });
2985
2821
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2986
- const out = make23(self);
2822
+ const out = make22(self);
2987
2823
  delete out[key.toLowerCase()];
2988
2824
  return out;
2989
2825
  });
@@ -3040,18 +2876,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3040
2876
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3041
2877
 
3042
2878
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
3043
- var TypeId7 = "~effect/http/UrlParams";
3044
- var isUrlParams = (u) => hasProperty(u, TypeId7);
2879
+ var TypeId6 = "~effect/http/UrlParams";
2880
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3045
2881
  var Proto4 = {
3046
2882
  ...PipeInspectableProto,
3047
- [TypeId7]: TypeId7,
2883
+ [TypeId6]: TypeId6,
3048
2884
  [Symbol.iterator]() {
3049
2885
  return this.params[Symbol.iterator]();
3050
2886
  },
3051
2887
  [symbolRedactable](context) {
3052
2888
  return {
3053
2889
  _id: "UrlParams",
3054
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2890
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3055
2891
  };
3056
2892
  },
3057
2893
  toJSON() {
@@ -3064,7 +2900,7 @@ var Proto4 = {
3064
2900
  return array(this.params.flat());
3065
2901
  }
3066
2902
  };
3067
- var make24 = (params) => {
2903
+ var make23 = (params) => {
3068
2904
  const self = Object.create(Proto4);
3069
2905
  self.params = params;
3070
2906
  return self;
@@ -3083,7 +2919,7 @@ var fromInput2 = (input) => {
3083
2919
  out.push(parsed[i]);
3084
2920
  }
3085
2921
  }
3086
- return make24(out);
2922
+ return make23(out);
3087
2923
  };
3088
2924
  var fromInputNested = (input) => {
3089
2925
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3107,9 +2943,9 @@ var fromInputNested = (input) => {
3107
2943
  return out;
3108
2944
  };
3109
2945
  var coerce = (value) => isRedacted(value) ? value : String(value);
3110
- var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2946
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3111
2947
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3112
- var empty4 = /* @__PURE__ */ make24([]);
2948
+ var empty4 = /* @__PURE__ */ make23([]);
3113
2949
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3114
2950
  const params = fromInput2(input).params.slice();
3115
2951
  const keys = new Set;
@@ -3121,7 +2957,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3121
2957
  continue;
3122
2958
  params.push(self.params[i]);
3123
2959
  }
3124
- return make24(params);
2960
+ return make23(params);
3125
2961
  });
3126
2962
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
3127
2963
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3177,13 +3013,13 @@ var decodeQueryKey = (key) => {
3177
3013
  return key;
3178
3014
  }
3179
3015
  };
3180
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3016
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3181
3017
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3182
3018
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3183
3019
  });
3184
3020
 
3185
3021
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3186
- var TypeId8 = "~effect/Terminal";
3022
+ var TypeId7 = "~effect/Terminal";
3187
3023
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3188
3024
 
3189
3025
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3192,14 +3028,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3192
3028
  [QuitErrorTypeId] = QuitErrorTypeId;
3193
3029
  }
3194
3030
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3195
- var make25 = (impl) => Terminal.of({
3031
+ var make24 = (impl) => Terminal.of({
3196
3032
  ...impl,
3197
- [TypeId8]: TypeId8
3033
+ [TypeId7]: TypeId7
3198
3034
  });
3199
3035
 
3200
3036
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3201
3037
  import * as readline from "readline";
3202
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3038
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3203
3039
  const stdin = process.stdin;
3204
3040
  const stdout = process.stdout;
3205
3041
  const lines = yield* make9();
@@ -3213,7 +3049,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3213
3049
  };
3214
3050
  stdin.once("end", onStdinEnd);
3215
3051
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3216
- const rlRef = yield* make18({
3052
+ const rlRef = yield* make10({
3217
3053
  acquire: acquireRelease(sync2(() => {
3218
3054
  const rl = readline.createInterface({
3219
3055
  input: stdin,
@@ -3252,7 +3088,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3252
3088
  if (stdin.isTTY)
3253
3089
  stdin.setRawMode(enabled);
3254
3090
  });
3255
- const rawModeRef = yield* make18({
3091
+ const rawModeRef = yield* make10({
3256
3092
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3257
3093
  idleTimeToLive: "10 millis"
3258
3094
  });
@@ -3303,14 +3139,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3303
3139
  if (inputEnded) {
3304
3140
  handleEnd();
3305
3141
  } else {
3306
- yield* get5(rlRef);
3307
- yield* get5(rawModeRef);
3142
+ yield* get3(rlRef);
3143
+ yield* get3(rawModeRef);
3308
3144
  stdin.once("end", handleEnd);
3309
3145
  }
3310
3146
  return queue;
3311
3147
  });
3312
3148
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3313
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3149
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3314
3150
  onSome: succeed6
3315
3151
  })), mapError2(() => new QuitError({}))));
3316
3152
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3321,7 +3157,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3321
3157
  cause: err
3322
3158
  }))));
3323
3159
  }));
3324
- return make25({
3160
+ return make24({
3325
3161
  columns,
3326
3162
  rows,
3327
3163
  size,
@@ -3330,7 +3166,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3330
3166
  display
3331
3167
  });
3332
3168
  });
3333
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3169
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3334
3170
  function defaultShouldQuit(input) {
3335
3171
  const key = input.key;
3336
3172
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3357,7 +3193,7 @@ function toDate(input) {
3357
3193
  return toDateUtc2(makeUnsafe(input));
3358
3194
  }
3359
3195
  function parseDate(input) {
3360
- return getOrUndefined(map4(make19(input), toDateUtc2));
3196
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3361
3197
  }
3362
3198
  function toIso(input) {
3363
3199
  return formatIso(makeUnsafe(input));
@@ -10965,11 +10801,11 @@ var TranscriptSearchResult = Struct({
10965
10801
  total: Int
10966
10802
  });
10967
10803
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
10968
- var TypeId9 = "~effect/http/HttpBody";
10804
+ var TypeId8 = "~effect/http/HttpBody";
10969
10805
  class Proto5 {
10970
- [TypeId9];
10806
+ [TypeId8];
10971
10807
  constructor() {
10972
- this[TypeId9] = TypeId9;
10808
+ this[TypeId8] = TypeId8;
10973
10809
  }
10974
10810
  [NodeInspectSymbol]() {
10975
10811
  return this.toJSON();
@@ -11060,7 +10896,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
11060
10896
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
11061
10897
 
11062
10898
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
11063
- var TypeId10 = "~effect/http/HttpClientError";
10899
+ var TypeId9 = "~effect/http/HttpClientError";
11064
10900
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11065
10901
  constructor(props) {
11066
10902
  if ("cause" in props.reason) {
@@ -11072,7 +10908,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11072
10908
  super(props);
11073
10909
  }
11074
10910
  }
11075
- [TypeId10] = TypeId10;
10911
+ [TypeId9] = TypeId9;
11076
10912
  get request() {
11077
10913
  return this.reason.request;
11078
10914
  }
@@ -11176,7 +11012,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11176
11012
  }
11177
11013
  }
11178
11014
 
11179
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11015
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11180
11016
  _tag: /* @__PURE__ */ tag("HttpError"),
11181
11017
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11182
11018
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11209,7 +11045,7 @@ var updateContentLength = (headers, body) => {
11209
11045
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11210
11046
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11211
11047
  }
11212
- var make27 = (url, params, hash) => try_({
11048
+ var make26 = (url, params, hash) => try_({
11213
11049
  try: () => {
11214
11050
  const urlInstance = new URL(url, baseUrl());
11215
11051
  for (let i = 0;i < params.params.length; i++) {
@@ -11240,10 +11076,10 @@ var baseUrl = () => {
11240
11076
  };
11241
11077
 
11242
11078
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
11243
- var TypeId11 = "~effect/http/HttpClientRequest";
11244
- var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11079
+ var TypeId10 = "~effect/http/HttpClientRequest";
11080
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11245
11081
  var Proto6 = {
11246
- [TypeId11]: TypeId11,
11082
+ [TypeId10]: TypeId10,
11247
11083
  ...BaseProto,
11248
11084
  toJSON() {
11249
11085
  return {
@@ -11332,7 +11168,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11332
11168
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11333
11169
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11334
11170
  function toUrl(self) {
11335
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11171
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11336
11172
  if (isSuccess(r)) {
11337
11173
  return some(r.success);
11338
11174
  }
@@ -11340,7 +11176,7 @@ function toUrl(self) {
11340
11176
  }
11341
11177
 
11342
11178
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11343
- var TypeId12 = "~effect/http/HttpIncomingMessage";
11179
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
11344
11180
  var schemaBodyJson = (schema, options) => {
11345
11181
  const decode = decodeEffect(toCodecJson(schema));
11346
11182
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11359,7 +11195,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11359
11195
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11360
11196
 
11361
11197
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11362
- var TypeId13 = "~effect/http/HttpClientResponse";
11198
+ var TypeId12 = "~effect/http/HttpClientResponse";
11363
11199
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11364
11200
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11365
11201
  reason: new StatusCodeError({
@@ -11370,16 +11206,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11370
11206
  }));
11371
11207
 
11372
11208
  class WebHttpClientResponse extends Class {
11209
+ [TypeId11];
11373
11210
  [TypeId12];
11374
- [TypeId13];
11375
11211
  request;
11376
11212
  source;
11377
11213
  constructor(request, source) {
11378
11214
  super();
11379
11215
  this.request = request;
11380
11216
  this.source = source;
11217
+ this[TypeId11] = TypeId11;
11381
11218
  this[TypeId12] = TypeId12;
11382
- this[TypeId13] = TypeId13;
11383
11219
  }
11384
11220
  toJSON() {
11385
11221
  return inspect(this, {
@@ -11551,7 +11387,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11551
11387
  };
11552
11388
 
11553
11389
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11554
- var TypeId14 = "~effect/http/HttpClient";
11390
+ var TypeId13 = "~effect/http/HttpClient";
11555
11391
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11556
11392
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11557
11393
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11568,7 +11404,7 @@ var makeWith2 = (postprocess, preprocess) => {
11568
11404
  return self;
11569
11405
  };
11570
11406
  var Proto7 = {
11571
- [TypeId14]: TypeId14,
11407
+ [TypeId13]: TypeId13,
11572
11408
  pipe() {
11573
11409
  return pipeArguments(this, arguments);
11574
11410
  },
@@ -11582,10 +11418,10 @@ var Proto7 = {
11582
11418
  return this.execute(make5(fullMethod)(url, options));
11583
11419
  }]))
11584
11420
  };
11585
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11421
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11586
11422
  const scopedController = scopedRequests.get(request);
11587
11423
  const controller = scopedController ?? new AbortController;
11588
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11424
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11589
11425
  if (isFailure(urlResult)) {
11590
11426
  return fail7(new HttpClientError({
11591
11427
  reason: new InvalidUrlError({
@@ -11719,8 +11555,8 @@ class InterruptibleResponse {
11719
11555
  this.original = original;
11720
11556
  this.controller = controller;
11721
11557
  }
11722
- [TypeId13] = TypeId13;
11723
11558
  [TypeId12] = TypeId12;
11559
+ [TypeId11] = TypeId11;
11724
11560
  applyInterrupt(effect) {
11725
11561
  return suspend3(() => {
11726
11562
  responseRegistry.unregister(this.original);
@@ -11818,7 +11654,7 @@ var detectStreamBodySupport = () => {
11818
11654
  return false;
11819
11655
  }
11820
11656
  };
11821
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11657
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11822
11658
  if (request.headers.upgrade !== undefined) {
11823
11659
  return fail7(new HttpClientError({
11824
11660
  reason: new TransportError({
@@ -11909,10 +11745,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11909
11745
  });
11910
11746
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11911
11747
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11912
- var TypeId15 = "~effect/socket/Socket";
11748
+ var TypeId14 = "~effect/socket/Socket";
11913
11749
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11914
- var make29 = (options) => Socket.of({
11915
- [TypeId15]: TypeId15,
11750
+ var make28 = (options) => Socket.of({
11751
+ [TypeId14]: TypeId14,
11916
11752
  reader: options.reader,
11917
11753
  writer: options.writer
11918
11754
  });
@@ -12235,7 +12071,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12235
12071
  write,
12236
12072
  writeAll
12237
12073
  });
12238
- return succeed6(make29({
12074
+ return succeed6(make28({
12239
12075
  reader,
12240
12076
  writer
12241
12077
  }));
@@ -15561,7 +15397,7 @@ function getStreamSchemas(schema) {
15561
15397
  }
15562
15398
  var schema = /* @__PURE__ */ declare(isStream);
15563
15399
  function Stream(success, error) {
15564
- return make16(schema.ast, {
15400
+ return make17(schema.ast, {
15565
15401
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15566
15402
  success,
15567
15403
  error
@@ -15569,9 +15405,9 @@ function Stream(success, error) {
15569
15405
  }
15570
15406
 
15571
15407
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15572
- var TypeId16 = "~effect/rpc/Rpc";
15408
+ var TypeId15 = "~effect/rpc/Rpc";
15573
15409
  var Proto8 = {
15574
- [TypeId16]: TypeId16,
15410
+ [TypeId15]: TypeId15,
15575
15411
  pipe() {
15576
15412
  return pipeArguments(this, arguments);
15577
15413
  },
@@ -15738,7 +15574,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15738
15574
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15739
15575
 
15740
15576
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15741
- var TypeId17 = "~effect/rpc/RpcClientError";
15577
+ var TypeId16 = "~effect/rpc/RpcClientError";
15742
15578
 
15743
15579
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15744
15580
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15747,11 +15583,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15747
15583
  })) {
15748
15584
  }
15749
15585
 
15750
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15586
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15751
15587
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15752
15588
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15753
15589
  })) {
15754
- [TypeId17] = TypeId17;
15590
+ [TypeId16] = TypeId16;
15755
15591
  get message() {
15756
15592
  return `${this.reason._tag}: ${this.reason.message}`;
15757
15593
  }
@@ -15871,7 +15707,7 @@ var RpcGroupProto = {
15871
15707
  });
15872
15708
  },
15873
15709
  annotateRpcs(service, value) {
15874
- return this.annotateRpcsMerge(make14(service, value));
15710
+ return this.annotateRpcsMerge(make15(service, value));
15875
15711
  },
15876
15712
  annotateMerge(context) {
15877
15713
  return makeProto2({
@@ -15899,7 +15735,7 @@ var make7 = (...rpcs) => makeProto2({
15899
15735
  annotations: empty3()
15900
15736
  });
15901
15737
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15902
- var TypeId18 = "~effect/rpc/RpcMiddleware";
15738
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
15903
15739
  var Service = () => (id, options) => {
15904
15740
  const limit = getStackTraceLimit();
15905
15741
  let creationError;
@@ -15917,7 +15753,7 @@ var Service = () => (id, options) => {
15917
15753
  return creationError?.stack;
15918
15754
  }
15919
15755
  });
15920
- ServiceClass_[TypeId18] = TypeId18;
15756
+ ServiceClass_[TypeId17] = TypeId17;
15921
15757
  ServiceClass_.error = options?.error ?? Never;
15922
15758
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15923
15759
  return ServiceClass;
@@ -16660,7 +16496,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16660
16496
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16661
16497
 
16662
16498
  // apps/cli/src/oauth.ts
16663
- var Scope2 = "openid profile email offline_access kitman:cli";
16499
+ var Scope = "openid profile email offline_access kitman:cli";
16664
16500
  var CallbackPath = "/auth/callback";
16665
16501
 
16666
16502
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16679,7 +16515,7 @@ function buildAuthorizeUrl(input) {
16679
16515
  url.searchParams.set("response_type", "code");
16680
16516
  url.searchParams.set("client_id", input.clientId);
16681
16517
  url.searchParams.set("redirect_uri", input.redirectUri);
16682
- url.searchParams.set("scope", Scope2);
16518
+ url.searchParams.set("scope", Scope);
16683
16519
  url.searchParams.set("code_challenge", input.codeChallenge);
16684
16520
  url.searchParams.set("code_challenge_method", "S256");
16685
16521
  url.searchParams.set("state", input.state);
@@ -16739,7 +16575,7 @@ function toStoredSession(token, existingRefreshToken) {
16739
16575
  }
16740
16576
  function startLoopbackServer(input) {
16741
16577
  return gen(function* () {
16742
- const code = yield* make15();
16578
+ const code = yield* make16();
16743
16579
  const context2 = yield* context();
16744
16580
  const runSyncExit = runSyncExitWith(context2);
16745
16581
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -17287,7 +17123,7 @@ var openConnection = (transport) => gen(function* () {
17287
17123
  let lastId = 0;
17288
17124
  let lost = false;
17289
17125
  const notifications = yield* unbounded2();
17290
- const ended = yield* make15();
17126
+ const ended = yield* make16();
17291
17127
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
17292
17128
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
17293
17129
  onNone: () => void_3,
@@ -17314,7 +17150,7 @@ var openConnection = (transport) => gen(function* () {
17314
17150
  if (lost)
17315
17151
  return yield* new HerdrCoreConnectionLost2({ method });
17316
17152
  const id = ++lastId;
17317
- const deferred = yield* make15();
17153
+ const deferred = yield* make16();
17318
17154
  pending.set(id, { method, deferred });
17319
17155
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
17320
17156
  return yield* _await(deferred);
@@ -17388,7 +17224,7 @@ var herdrCoreOver = (transport) => ({
17388
17224
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
17389
17225
  };
17390
17226
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
17391
- return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17227
+ return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17392
17228
  }))
17393
17229
  });
17394
17230
  var spawnedTransport = (env) => gen(function* () {
@@ -17479,7 +17315,7 @@ var runProcess2 = (argv, options) => gen(function* () {
17479
17315
  const spawner = yield* ChildProcessSpawner;
17480
17316
  const [command, ...args] = argv;
17481
17317
  const handle = yield* spawner.spawn(make3(command, args, {
17482
- stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17318
+ stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
17483
17319
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17484
17320
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
17485
17321
  }));