@kitman-sh/cli 0.10.99 → 0.10.100

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 (26) hide show
  1. package/dist/{chunk-rdv42ygn.js → chunk-0rf10v29.js} +4 -4
  2. package/dist/{chunk-0a10kdrd.js → chunk-1k3cvdbt.js} +4 -4
  3. package/dist/{chunk-et6qa95h.js → chunk-1kww1jdz.js} +1 -1
  4. package/dist/{chunk-0tsc91qr.js → chunk-1nw7sbtr.js} +4 -4
  5. package/dist/{chunk-abf4m4b2.js → chunk-4c78jfqk.js} +5 -5
  6. package/dist/{chunk-rrj434w6.js → chunk-5z0cwmet.js} +28 -28
  7. package/dist/{chunk-t7ncjd6s.js → chunk-6sanfepb.js} +6 -6
  8. package/dist/{chunk-4sswz0mn.js → chunk-9xj0djtp.js} +8 -8
  9. package/dist/{chunk-ampzxrqe.js → chunk-ayfdkptb.js} +61 -60
  10. package/dist/{chunk-3v70x040.js → chunk-cpx45jzk.js} +5 -5
  11. package/dist/{chunk-6vmpa1nw.js → chunk-cy7cy84h.js} +10 -10
  12. package/dist/{chunk-g3r5xp0t.js → chunk-gs6qdy2k.js} +2 -2
  13. package/dist/{chunk-56e202xk.js → chunk-hcpjfshb.js} +6 -6
  14. package/dist/{chunk-vjcn82g3.js → chunk-mjrr0wzp.js} +28 -177
  15. package/dist/{chunk-a244myqw.js → chunk-mk8vsaj7.js} +1 -1
  16. package/dist/{chunk-3ka78n56.js → chunk-mtz8f1hn.js} +7 -7
  17. package/dist/{chunk-3r7ahnwy.js → chunk-p3kwtm82.js} +2 -2
  18. package/dist/{chunk-fv6kgtze.js → chunk-qv9te9gr.js} +2 -2
  19. package/dist/{chunk-2fs34341.js → chunk-r3rap6hz.js} +30 -24
  20. package/dist/{chunk-0hjtwtms.js → chunk-tk85pw4z.js} +92 -21
  21. package/dist/{chunk-rp224rm4.js → chunk-tqw2rkc9.js} +3 -3
  22. package/dist/{chunk-z2f9enrp.js → chunk-vatjyw59.js} +17 -17
  23. package/dist/{chunk-k0shg2fb.js → chunk-wyh06par.js} +291 -135
  24. package/dist/{chunk-bk3dpjxq.js → chunk-wzkdjdb7.js} +1 -1
  25. package/dist/index.js +4 -4
  26. 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,
@@ -202,7 +214,7 @@ import {
202
214
  decodeEffect,
203
215
  decodeUnknownOption,
204
216
  decodeOption,
205
- make17,
217
+ make16,
206
218
  isSchema,
207
219
  optionalKey,
208
220
  optional,
@@ -249,11 +261,42 @@ import {
249
261
  decodeJsonStringOption,
250
262
  encodeJsonStringSync,
251
263
  encodePrettyJsonString
252
- } from "./chunk-ampzxrqe.js";
264
+ } from "./chunk-ayfdkptb.js";
265
+ import {
266
+ isDateTime,
267
+ Numeric,
268
+ isWholeNumber,
269
+ guard,
270
+ Id,
271
+ Timestamp,
272
+ ActorType,
273
+ SecretName,
274
+ SecretScope,
275
+ SecretHosts,
276
+ isSecretReference
277
+ } from "./chunk-1kww1jdz.js";
278
+ import {
279
+ toJsonValue,
280
+ isOneOf,
281
+ isBigInt,
282
+ isBoolean,
283
+ isFunction,
284
+ isNumber,
285
+ isObject,
286
+ isJsonObject,
287
+ isString,
288
+ isSymbol,
289
+ isUndefined,
290
+ kindOf
291
+ } from "./chunk-wzkdjdb7.js";
253
292
  import {
254
293
  map,
255
294
  makeEquivalence,
256
295
  bytes,
296
+ join,
297
+ interrupt,
298
+ getCurrent,
299
+ runIn,
257
300
  BadArgument,
258
301
  systemError,
259
302
  badArgument,
@@ -275,13 +318,11 @@ import {
275
318
  isSink,
276
319
  fromChannel,
277
320
  drain,
278
- make10,
279
- get3,
280
321
  isStream,
281
322
  fromChannel2,
282
323
  callback,
283
324
  empty2,
284
- make11,
325
+ make10,
285
326
  suspend,
286
327
  fail2,
287
328
  fromQueue,
@@ -307,43 +348,16 @@ import {
307
348
  mkArrayBuffer,
308
349
  toReadableStreamEffect,
309
350
  FileSystem,
310
- make12,
351
+ make11,
311
352
  FileTypeId,
312
353
  WatchBackend,
313
354
  Path,
314
- make13,
355
+ make12,
315
356
  option,
316
357
  String2,
317
358
  optionalEnv,
318
359
  harnessesUnsupportedInSrt2
319
- } from "./chunk-vjcn82g3.js";
320
- import {
321
- isDateTime,
322
- Numeric,
323
- isWholeNumber,
324
- guard,
325
- Id,
326
- Timestamp,
327
- ActorType,
328
- SecretName,
329
- SecretScope,
330
- SecretHosts,
331
- isSecretReference
332
- } from "./chunk-et6qa95h.js";
333
- import {
334
- toJsonValue,
335
- isOneOf,
336
- isBigInt,
337
- isBoolean,
338
- isFunction,
339
- isNumber,
340
- isObject,
341
- isJsonObject,
342
- isString,
343
- isSymbol,
344
- isUndefined,
345
- kindOf
346
- } from "./chunk-bk3dpjxq.js";
360
+ } from "./chunk-mjrr0wzp.js";
347
361
  import {
348
362
  isRedacted,
349
363
  make,
@@ -357,7 +371,7 @@ import {
357
371
  make3,
358
372
  parseFdName,
359
373
  fdName
360
- } from "./chunk-3r7ahnwy.js";
374
+ } from "./chunk-p3kwtm82.js";
361
375
 
362
376
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
363
377
  var makeEquivalence3 = Tuple;
@@ -500,7 +514,7 @@ var fromDateUnsafe = (date) => {
500
514
  }
501
515
  return makeUtc(epochMillis);
502
516
  };
503
- var makeUnsafe6 = (input) => {
517
+ var makeUnsafe7 = (input) => {
504
518
  if (isDateTime2(input)) {
505
519
  return input;
506
520
  } else if (input instanceof Date) {
@@ -520,7 +534,7 @@ var makeUnsafe6 = (input) => {
520
534
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
521
535
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
522
536
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
523
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
537
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
524
538
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
525
539
  var nowUnsafe = () => makeUtc(Date.now());
526
540
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -627,7 +641,7 @@ class Metric$ {
627
641
  }
628
642
  hook(context) {
629
643
  const key = this.key(context);
630
- const registry = get4(context, MetricRegistry);
644
+ const registry = get3(context, MetricRegistry);
631
645
  let metadata = registry.get(key);
632
646
  if (isUndefined2(metadata)) {
633
647
  metadata = this.metadata(this.createHooks());
@@ -636,11 +650,11 @@ class Metric$ {
636
650
  return metadata.hooks;
637
651
  }
638
652
  removeUnsafe(context) {
639
- get4(context, MetricRegistry).delete(this.key(context));
653
+ get3(context, MetricRegistry).delete(this.key(context));
640
654
  }
641
655
  registerUnsafe(context, hooks) {
642
656
  const key = this.key(context);
643
- const registry = get4(context, MetricRegistry);
657
+ const registry = get3(context, MetricRegistry);
644
658
  const metadata = this.metadata({
645
659
  get: hooks.get,
646
660
  update: constVoid,
@@ -656,7 +670,7 @@ class Metric$ {
656
670
  };
657
671
  }
658
672
  key(context) {
659
- const extraAttributes = get4(context, CurrentMetricAttributes);
673
+ const extraAttributes = get3(context, CurrentMetricAttributes);
660
674
  if (extraAttributes !== this.#extraAttributes) {
661
675
  this.#extraAttributes = extraAttributes;
662
676
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -908,9 +922,151 @@ var toNumber = (b) => {
908
922
  return some(Number(b));
909
923
  };
910
924
 
925
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
926
+ var TypeId3 = "~effect/RcRef";
927
+ var stateEmpty = {
928
+ _tag: "Empty"
929
+ };
930
+ var stateClosed = {
931
+ _tag: "Closed"
932
+ };
933
+ var variance = {
934
+ _A: identity,
935
+ _E: identity
936
+ };
937
+
938
+ class RcRefImpl {
939
+ [TypeId3] = variance;
940
+ pipe() {
941
+ return pipeArguments(this, arguments);
942
+ }
943
+ state = stateEmpty;
944
+ acquire;
945
+ context;
946
+ scope;
947
+ idleTimeToLive;
948
+ constructor(acquire, context, scope, idleTimeToLive) {
949
+ this.acquire = acquire;
950
+ this.context = context;
951
+ this.scope = scope;
952
+ this.idleTimeToLive = idleTimeToLive;
953
+ }
954
+ }
955
+ var make17 = (options) => withFiber2((fiber) => {
956
+ const context = fiber.context;
957
+ const scope = get3(context, Scope);
958
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
959
+ return as(addFinalizerExit(scope, () => {
960
+ const state = ref.state;
961
+ ref.state = stateClosed;
962
+ if (state._tag === "Acquired")
963
+ return close(state.scope, void_2);
964
+ if (state._tag === "Acquiring")
965
+ return interrupt(state.fiber);
966
+ return void_3;
967
+ }), ref);
968
+ });
969
+ var getState = (self, restore) => {
970
+ switch (self.state._tag) {
971
+ case "Closed": {
972
+ return interrupt3;
973
+ }
974
+ case "Acquired": {
975
+ const state = self.state;
976
+ state.refCount++;
977
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
978
+ }
979
+ case "Acquiring": {
980
+ const state = self.state;
981
+ state.awaiters++;
982
+ return awaitAcquiring(self, state, restore);
983
+ }
984
+ case "Empty": {
985
+ const acquiring = {
986
+ _tag: "Acquiring",
987
+ fiber: undefined,
988
+ awaiters: 1,
989
+ acquired: undefined
990
+ };
991
+ self.state = acquiring;
992
+ const scope = makeUnsafe6();
993
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
994
+ if (self.state !== acquiring) {
995
+ return interrupt3;
996
+ }
997
+ const state = {
998
+ _tag: "Acquired",
999
+ value,
1000
+ scope,
1001
+ fiber: undefined,
1002
+ refCount: acquiring.awaiters,
1003
+ invalidated: false
1004
+ };
1005
+ self.state = state;
1006
+ acquiring.acquired = state;
1007
+ return succeed6(state);
1008
+ }), onExit((exit) => {
1009
+ if (isSuccess2(exit))
1010
+ return void_3;
1011
+ if (self.state === acquiring)
1012
+ self.state = stateEmpty;
1013
+ return close(scope, exit);
1014
+ }));
1015
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1016
+ return awaitAcquiring(self, acquiring, restore);
1017
+ }
1018
+ }
1019
+ };
1020
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1021
+ const acquired = acquiring.acquired;
1022
+ if (acquired !== undefined) {
1023
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1024
+ }
1025
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1026
+ return void_3;
1027
+ self.state = stateEmpty;
1028
+ return interrupt(acquiring.fiber);
1029
+ });
1030
+ var get4 = (self_) => {
1031
+ const self = self_;
1032
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1033
+ };
1034
+ var release = (self, state) => {
1035
+ state.refCount--;
1036
+ if (state.refCount > 0) {
1037
+ return void_3;
1038
+ }
1039
+ const idleTimeToLive = self.idleTimeToLive;
1040
+ if (idleTimeToLive === undefined || state.invalidated) {
1041
+ if (self.state === state) {
1042
+ self.state = stateEmpty;
1043
+ }
1044
+ return close(state.scope, void_2);
1045
+ } else if (!isFinite(idleTimeToLive)) {
1046
+ return void_3;
1047
+ }
1048
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1049
+ if (self.state === state && state.refCount === 0) {
1050
+ self.state = stateEmpty;
1051
+ return ignoreCause(close(state.scope, void_2), {
1052
+ log: "Unhandled",
1053
+ message: "Unhandled error in RcRef finalizer"
1054
+ });
1055
+ }
1056
+ return void_3;
1057
+ })).pipe(ensuring2(sync2(() => {
1058
+ state.fiber = undefined;
1059
+ })), runForkWith(self.context), runIn(self.scope));
1060
+ return void_3;
1061
+ };
1062
+
1063
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1064
+ var make18 = make17;
1065
+ var get5 = get4;
1066
+
911
1067
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
912
- var makeUnsafe = makeUnsafe6;
913
- var make18 = make4;
1068
+ var makeUnsafe = makeUnsafe7;
1069
+ var make19 = make4;
914
1070
  var now2 = now;
915
1071
  var nowUnsafe2 = nowUnsafe;
916
1072
  var toDateUtc2 = toDateUtc;
@@ -1229,7 +1385,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1229
1385
  windowsHide: true
1230
1386
  }, onExit);
1231
1387
  };
1232
- var make19 = /* @__PURE__ */ gen(function* () {
1388
+ var make20 = /* @__PURE__ */ gen(function* () {
1233
1389
  const fs = yield* FileSystem;
1234
1390
  const path = yield* Path;
1235
1391
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1758,7 +1914,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1758
1914
  });
1759
1915
  return make2(spawnCommand);
1760
1916
  });
1761
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1917
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1762
1918
  var flattenCommand = (command) => {
1763
1919
  const commands = [];
1764
1920
  const pipeOptions = [];
@@ -2242,7 +2398,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2242
2398
  resume(fail7(handleBadArgument("writeFile")(err)));
2243
2399
  }
2244
2400
  });
2245
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2401
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2246
2402
  access: access2,
2247
2403
  chmod: chmod2,
2248
2404
  chown: chown2,
@@ -2302,15 +2458,15 @@ var fileUrlOps = (windows) => ({
2302
2458
  })
2303
2459
  })
2304
2460
  });
2305
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2461
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2306
2462
  ...NodePath.posix,
2307
2463
  .../* @__PURE__ */ fileUrlOps(false)
2308
2464
  }));
2309
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2465
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2310
2466
  ...NodePath.win32,
2311
2467
  .../* @__PURE__ */ fileUrlOps(true)
2312
2468
  }));
2313
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2469
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2314
2470
  ...NodePath,
2315
2471
  .../* @__PURE__ */ fileUrlOps(undefined)
2316
2472
  }));
@@ -2319,10 +2475,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2319
2475
  var layer2 = layer7;
2320
2476
 
2321
2477
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2322
- var TypeId3 = "~effect/Stdio";
2323
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2324
- var make20 = (options) => ({
2325
- [TypeId3]: TypeId3,
2478
+ var TypeId4 = "~effect/Stdio";
2479
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2480
+ var make21 = (options) => ({
2481
+ [TypeId4]: TypeId4,
2326
2482
  stdinIsTerminal: succeed6(false),
2327
2483
  stdoutIsTerminal: succeed6(false),
2328
2484
  stderrIsTerminal: succeed6(false),
@@ -2330,7 +2486,7 @@ var make20 = (options) => ({
2330
2486
  });
2331
2487
 
2332
2488
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2333
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2489
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2334
2490
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2335
2491
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2336
2492
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2530,7 +2686,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2530
2686
  const uuid = bytes(randomBytes(16));
2531
2687
  return format === "bytes" ? uuid : stringify(uuid);
2532
2688
  };
2533
- var make21 = (randomBytes) => {
2689
+ var make22 = (randomBytes) => {
2534
2690
  const randomBytesChecked = (size) => {
2535
2691
  checkSize(size);
2536
2692
  return randomBytes(size);
@@ -2564,13 +2720,13 @@ var fillRandom = (crypto2, size) => {
2564
2720
  }
2565
2721
  return bytes;
2566
2722
  };
2567
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2723
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2568
2724
 
2569
2725
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2570
- var TypeId4 = "~effect/http/Cookies";
2726
+ var TypeId5 = "~effect/http/Cookies";
2571
2727
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2572
2728
  var Proto2 = {
2573
- [TypeId4]: TypeId4,
2729
+ [TypeId5]: TypeId5,
2574
2730
  ...BaseProto,
2575
2731
  toJSON() {
2576
2732
  return {
@@ -2749,14 +2905,14 @@ var tryDecodeURIComponent = (str) => {
2749
2905
  };
2750
2906
 
2751
2907
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2752
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2908
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2753
2909
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2754
- [TypeId5]: {
2755
- value: TypeId5
2910
+ [TypeId6]: {
2911
+ value: TypeId6
2756
2912
  },
2757
2913
  [symbolRedactable]: {
2758
2914
  value(context) {
2759
- return redact2(this, get4(context, CurrentRedactedNames));
2915
+ return redact2(this, get3(context, CurrentRedactedNames));
2760
2916
  }
2761
2917
  },
2762
2918
  toJSON: {
@@ -2781,7 +2937,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2781
2937
  value: BaseProto[NodeInspectSymbol]
2782
2938
  }
2783
2939
  });
2784
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2940
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2785
2941
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2786
2942
  var empty = /* @__PURE__ */ Object.create(Proto3);
2787
2943
  var fromInput = (input) => {
@@ -2806,21 +2962,21 @@ var fromInput = (input) => {
2806
2962
  };
2807
2963
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2808
2964
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2809
- const out = make22(self);
2965
+ const out = make23(self);
2810
2966
  out[key.toLowerCase()] = value;
2811
2967
  return out;
2812
2968
  });
2813
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2969
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2814
2970
  ...self,
2815
2971
  ...fromInput(headers)
2816
2972
  }));
2817
2973
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2818
- const out = make22(self);
2974
+ const out = make23(self);
2819
2975
  Object.assign(out, headers);
2820
2976
  return out;
2821
2977
  });
2822
2978
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2823
- const out = make22(self);
2979
+ const out = make23(self);
2824
2980
  delete out[key.toLowerCase()];
2825
2981
  return out;
2826
2982
  });
@@ -2877,18 +3033,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2877
3033
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2878
3034
 
2879
3035
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2880
- var TypeId6 = "~effect/http/UrlParams";
2881
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3036
+ var TypeId7 = "~effect/http/UrlParams";
3037
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2882
3038
  var Proto4 = {
2883
3039
  ...PipeInspectableProto,
2884
- [TypeId6]: TypeId6,
3040
+ [TypeId7]: TypeId7,
2885
3041
  [Symbol.iterator]() {
2886
3042
  return this.params[Symbol.iterator]();
2887
3043
  },
2888
3044
  [symbolRedactable](context) {
2889
3045
  return {
2890
3046
  _id: "UrlParams",
2891
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3047
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2892
3048
  };
2893
3049
  },
2894
3050
  toJSON() {
@@ -2901,7 +3057,7 @@ var Proto4 = {
2901
3057
  return array(this.params.flat());
2902
3058
  }
2903
3059
  };
2904
- var make23 = (params) => {
3060
+ var make24 = (params) => {
2905
3061
  const self = Object.create(Proto4);
2906
3062
  self.params = params;
2907
3063
  return self;
@@ -2920,7 +3076,7 @@ var fromInput2 = (input) => {
2920
3076
  out.push(parsed[i]);
2921
3077
  }
2922
3078
  }
2923
- return make23(out);
3079
+ return make24(out);
2924
3080
  };
2925
3081
  var fromInputNested = (input) => {
2926
3082
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2944,9 +3100,9 @@ var fromInputNested = (input) => {
2944
3100
  return out;
2945
3101
  };
2946
3102
  var coerce = (value) => isRedacted(value) ? value : String(value);
2947
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3103
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2948
3104
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2949
- var empty4 = /* @__PURE__ */ make23([]);
3105
+ var empty4 = /* @__PURE__ */ make24([]);
2950
3106
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2951
3107
  const params = fromInput2(input).params.slice();
2952
3108
  const keys = new Set;
@@ -2958,7 +3114,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2958
3114
  continue;
2959
3115
  params.push(self.params[i]);
2960
3116
  }
2961
- return make23(params);
3117
+ return make24(params);
2962
3118
  });
2963
3119
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2964
3120
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3014,13 +3170,13 @@ var decodeQueryKey = (key) => {
3014
3170
  return key;
3015
3171
  }
3016
3172
  };
3017
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3173
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3018
3174
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3019
3175
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3020
3176
  });
3021
3177
 
3022
3178
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3023
- var TypeId7 = "~effect/Terminal";
3179
+ var TypeId8 = "~effect/Terminal";
3024
3180
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3025
3181
 
3026
3182
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3029,14 +3185,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3029
3185
  [QuitErrorTypeId] = QuitErrorTypeId;
3030
3186
  }
3031
3187
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3032
- var make24 = (impl) => Terminal.of({
3188
+ var make25 = (impl) => Terminal.of({
3033
3189
  ...impl,
3034
- [TypeId7]: TypeId7
3190
+ [TypeId8]: TypeId8
3035
3191
  });
3036
3192
 
3037
3193
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3038
3194
  import * as readline from "readline";
3039
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3195
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3040
3196
  const stdin = process.stdin;
3041
3197
  const stdout = process.stdout;
3042
3198
  const lines = yield* make9();
@@ -3050,7 +3206,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3050
3206
  };
3051
3207
  stdin.once("end", onStdinEnd);
3052
3208
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3053
- const rlRef = yield* make10({
3209
+ const rlRef = yield* make18({
3054
3210
  acquire: acquireRelease(sync2(() => {
3055
3211
  const rl = readline.createInterface({
3056
3212
  input: stdin,
@@ -3089,7 +3245,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3089
3245
  if (stdin.isTTY)
3090
3246
  stdin.setRawMode(enabled);
3091
3247
  });
3092
- const rawModeRef = yield* make10({
3248
+ const rawModeRef = yield* make18({
3093
3249
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3094
3250
  idleTimeToLive: "10 millis"
3095
3251
  });
@@ -3140,14 +3296,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3140
3296
  if (inputEnded) {
3141
3297
  handleEnd();
3142
3298
  } else {
3143
- yield* get3(rlRef);
3144
- yield* get3(rawModeRef);
3299
+ yield* get5(rlRef);
3300
+ yield* get5(rawModeRef);
3145
3301
  stdin.once("end", handleEnd);
3146
3302
  }
3147
3303
  return queue;
3148
3304
  });
3149
3305
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3150
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3306
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3151
3307
  onSome: succeed6
3152
3308
  })), mapError2(() => new QuitError({}))));
3153
3309
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3158,7 +3314,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3158
3314
  cause: err
3159
3315
  }))));
3160
3316
  }));
3161
- return make24({
3317
+ return make25({
3162
3318
  columns,
3163
3319
  rows,
3164
3320
  size,
@@ -3167,7 +3323,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3167
3323
  display
3168
3324
  });
3169
3325
  });
3170
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3326
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3171
3327
  function defaultShouldQuit(input) {
3172
3328
  const key = input.key;
3173
3329
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3194,7 +3350,7 @@ function toDate(input) {
3194
3350
  return toDateUtc2(makeUnsafe(input));
3195
3351
  }
3196
3352
  function parseDate(input) {
3197
- return getOrUndefined(map4(make18(input), toDateUtc2));
3353
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3198
3354
  }
3199
3355
  function toIso(input) {
3200
3356
  return formatIso(makeUnsafe(input));
@@ -9455,11 +9611,11 @@ var TranscriptSearchResult = Struct({
9455
9611
  total: Int
9456
9612
  });
9457
9613
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9458
- var TypeId8 = "~effect/http/HttpBody";
9614
+ var TypeId9 = "~effect/http/HttpBody";
9459
9615
  class Proto5 {
9460
- [TypeId8];
9616
+ [TypeId9];
9461
9617
  constructor() {
9462
- this[TypeId8] = TypeId8;
9618
+ this[TypeId9] = TypeId9;
9463
9619
  }
9464
9620
  [NodeInspectSymbol]() {
9465
9621
  return this.toJSON();
@@ -9550,7 +9706,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9550
9706
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9551
9707
 
9552
9708
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9553
- var TypeId9 = "~effect/http/HttpClientError";
9709
+ var TypeId10 = "~effect/http/HttpClientError";
9554
9710
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9555
9711
  constructor(props) {
9556
9712
  if ("cause" in props.reason) {
@@ -9562,7 +9718,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9562
9718
  super(props);
9563
9719
  }
9564
9720
  }
9565
- [TypeId9] = TypeId9;
9721
+ [TypeId10] = TypeId10;
9566
9722
  get request() {
9567
9723
  return this.reason.request;
9568
9724
  }
@@ -9666,7 +9822,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9666
9822
  }
9667
9823
  }
9668
9824
 
9669
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9825
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9670
9826
  _tag: /* @__PURE__ */ tag("HttpError"),
9671
9827
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9672
9828
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9699,7 +9855,7 @@ var updateContentLength = (headers, body) => {
9699
9855
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9700
9856
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9701
9857
  }
9702
- var make26 = (url, params, hash) => try_({
9858
+ var make27 = (url, params, hash) => try_({
9703
9859
  try: () => {
9704
9860
  const urlInstance = new URL(url, baseUrl());
9705
9861
  for (let i = 0;i < params.params.length; i++) {
@@ -9730,10 +9886,10 @@ var baseUrl = () => {
9730
9886
  };
9731
9887
 
9732
9888
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9733
- var TypeId10 = "~effect/http/HttpClientRequest";
9734
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
9889
+ var TypeId11 = "~effect/http/HttpClientRequest";
9890
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9735
9891
  var Proto6 = {
9736
- [TypeId10]: TypeId10,
9892
+ [TypeId11]: TypeId11,
9737
9893
  ...BaseProto,
9738
9894
  toJSON() {
9739
9895
  return {
@@ -9822,7 +9978,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
9822
9978
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
9823
9979
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
9824
9980
  function toUrl(self) {
9825
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
9981
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9826
9982
  if (isSuccess(r)) {
9827
9983
  return some(r.success);
9828
9984
  }
@@ -9830,7 +9986,7 @@ function toUrl(self) {
9830
9986
  }
9831
9987
 
9832
9988
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9833
- var TypeId11 = "~effect/http/HttpIncomingMessage";
9989
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
9834
9990
  var schemaBodyJson = (schema, options) => {
9835
9991
  const decode = decodeEffect(toCodecJson(schema));
9836
9992
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -9849,7 +10005,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
9849
10005
  var getWebSource = (self) => self[WebSourceSymbol]?.();
9850
10006
 
9851
10007
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
9852
- var TypeId12 = "~effect/http/HttpClientResponse";
10008
+ var TypeId13 = "~effect/http/HttpClientResponse";
9853
10009
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
9854
10010
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
9855
10011
  reason: new StatusCodeError({
@@ -9860,16 +10016,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
9860
10016
  }));
9861
10017
 
9862
10018
  class WebHttpClientResponse extends Class {
9863
- [TypeId11];
9864
10019
  [TypeId12];
10020
+ [TypeId13];
9865
10021
  request;
9866
10022
  source;
9867
10023
  constructor(request, source) {
9868
10024
  super();
9869
10025
  this.request = request;
9870
10026
  this.source = source;
9871
- this[TypeId11] = TypeId11;
9872
10027
  this[TypeId12] = TypeId12;
10028
+ this[TypeId13] = TypeId13;
9873
10029
  }
9874
10030
  toJSON() {
9875
10031
  return inspect(this, {
@@ -10041,7 +10197,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10041
10197
  };
10042
10198
 
10043
10199
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10044
- var TypeId13 = "~effect/http/HttpClient";
10200
+ var TypeId14 = "~effect/http/HttpClient";
10045
10201
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10046
10202
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10047
10203
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10058,7 +10214,7 @@ var makeWith2 = (postprocess, preprocess) => {
10058
10214
  return self;
10059
10215
  };
10060
10216
  var Proto7 = {
10061
- [TypeId13]: TypeId13,
10217
+ [TypeId14]: TypeId14,
10062
10218
  pipe() {
10063
10219
  return pipeArguments(this, arguments);
10064
10220
  },
@@ -10072,10 +10228,10 @@ var Proto7 = {
10072
10228
  return this.execute(make5(fullMethod)(url, options));
10073
10229
  }]))
10074
10230
  };
10075
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10231
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10076
10232
  const scopedController = scopedRequests.get(request);
10077
10233
  const controller = scopedController ?? new AbortController;
10078
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10234
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10079
10235
  if (isFailure(urlResult)) {
10080
10236
  return fail7(new HttpClientError({
10081
10237
  reason: new InvalidUrlError({
@@ -10209,8 +10365,8 @@ class InterruptibleResponse {
10209
10365
  this.original = original;
10210
10366
  this.controller = controller;
10211
10367
  }
10368
+ [TypeId13] = TypeId13;
10212
10369
  [TypeId12] = TypeId12;
10213
- [TypeId11] = TypeId11;
10214
10370
  applyInterrupt(effect) {
10215
10371
  return suspend3(() => {
10216
10372
  responseRegistry.unregister(this.original);
@@ -10308,7 +10464,7 @@ var detectStreamBodySupport = () => {
10308
10464
  return false;
10309
10465
  }
10310
10466
  };
10311
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10467
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10312
10468
  if (request.headers.upgrade !== undefined) {
10313
10469
  return fail7(new HttpClientError({
10314
10470
  reason: new TransportError({
@@ -10399,10 +10555,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10399
10555
  });
10400
10556
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10401
10557
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10402
- var TypeId14 = "~effect/socket/Socket";
10558
+ var TypeId15 = "~effect/socket/Socket";
10403
10559
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10404
- var make28 = (options) => Socket.of({
10405
- [TypeId14]: TypeId14,
10560
+ var make29 = (options) => Socket.of({
10561
+ [TypeId15]: TypeId15,
10406
10562
  reader: options.reader,
10407
10563
  writer: options.writer
10408
10564
  });
@@ -10725,7 +10881,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10725
10881
  write,
10726
10882
  writeAll
10727
10883
  });
10728
- return succeed6(make28({
10884
+ return succeed6(make29({
10729
10885
  reader,
10730
10886
  writer
10731
10887
  }));
@@ -13589,7 +13745,7 @@ function getStreamSchemas(schema) {
13589
13745
  }
13590
13746
  var schema = /* @__PURE__ */ declare(isStream);
13591
13747
  function Stream(success, error) {
13592
- return make17(schema.ast, {
13748
+ return make16(schema.ast, {
13593
13749
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13594
13750
  success,
13595
13751
  error
@@ -13597,9 +13753,9 @@ function Stream(success, error) {
13597
13753
  }
13598
13754
 
13599
13755
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13600
- var TypeId15 = "~effect/rpc/Rpc";
13756
+ var TypeId16 = "~effect/rpc/Rpc";
13601
13757
  var Proto8 = {
13602
- [TypeId15]: TypeId15,
13758
+ [TypeId16]: TypeId16,
13603
13759
  pipe() {
13604
13760
  return pipeArguments(this, arguments);
13605
13761
  },
@@ -13766,7 +13922,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13766
13922
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13767
13923
 
13768
13924
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13769
- var TypeId16 = "~effect/rpc/RpcClientError";
13925
+ var TypeId17 = "~effect/rpc/RpcClientError";
13770
13926
 
13771
13927
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13772
13928
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13775,11 +13931,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13775
13931
  })) {
13776
13932
  }
13777
13933
 
13778
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
13934
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13779
13935
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13780
13936
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13781
13937
  })) {
13782
- [TypeId16] = TypeId16;
13938
+ [TypeId17] = TypeId17;
13783
13939
  get message() {
13784
13940
  return `${this.reason._tag}: ${this.reason.message}`;
13785
13941
  }
@@ -13899,7 +14055,7 @@ var RpcGroupProto = {
13899
14055
  });
13900
14056
  },
13901
14057
  annotateRpcs(service, value) {
13902
- return this.annotateRpcsMerge(make15(service, value));
14058
+ return this.annotateRpcsMerge(make14(service, value));
13903
14059
  },
13904
14060
  annotateMerge(context) {
13905
14061
  return makeProto2({
@@ -13927,7 +14083,7 @@ var make7 = (...rpcs) => makeProto2({
13927
14083
  annotations: empty3()
13928
14084
  });
13929
14085
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
13930
- var TypeId17 = "~effect/rpc/RpcMiddleware";
14086
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
13931
14087
  var Service = () => (id, options) => {
13932
14088
  const limit = getStackTraceLimit();
13933
14089
  let creationError;
@@ -13945,7 +14101,7 @@ var Service = () => (id, options) => {
13945
14101
  return creationError?.stack;
13946
14102
  }
13947
14103
  });
13948
- ServiceClass_[TypeId17] = TypeId17;
14104
+ ServiceClass_[TypeId18] = TypeId18;
13949
14105
  ServiceClass_.error = options?.error ?? Never;
13950
14106
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
13951
14107
  return ServiceClass;
@@ -14554,7 +14710,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14554
14710
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14555
14711
 
14556
14712
  // apps/cli/src/oauth.ts
14557
- var Scope = "openid profile email offline_access kitman:cli";
14713
+ var Scope2 = "openid profile email offline_access kitman:cli";
14558
14714
  var CallbackPath = "/auth/callback";
14559
14715
 
14560
14716
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14573,7 +14729,7 @@ function buildAuthorizeUrl(input) {
14573
14729
  url.searchParams.set("response_type", "code");
14574
14730
  url.searchParams.set("client_id", input.clientId);
14575
14731
  url.searchParams.set("redirect_uri", input.redirectUri);
14576
- url.searchParams.set("scope", Scope);
14732
+ url.searchParams.set("scope", Scope2);
14577
14733
  url.searchParams.set("code_challenge", input.codeChallenge);
14578
14734
  url.searchParams.set("code_challenge_method", "S256");
14579
14735
  url.searchParams.set("state", input.state);
@@ -14633,7 +14789,7 @@ function toStoredSession(token, existingRefreshToken) {
14633
14789
  }
14634
14790
  function startLoopbackServer(input) {
14635
14791
  return gen(function* () {
14636
- const code = yield* make16();
14792
+ const code = yield* make15();
14637
14793
  const context2 = yield* context();
14638
14794
  const runSyncExit = runSyncExitWith(context2);
14639
14795
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15173,7 +15329,7 @@ var openConnection = (transport) => gen(function* () {
15173
15329
  let lastId = 0;
15174
15330
  let lost = false;
15175
15331
  const notifications = yield* unbounded2();
15176
- const ended = yield* make16();
15332
+ const ended = yield* make15();
15177
15333
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15178
15334
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15179
15335
  onNone: () => void_3,
@@ -15200,7 +15356,7 @@ var openConnection = (transport) => gen(function* () {
15200
15356
  if (lost)
15201
15357
  return yield* new HerdrCoreConnectionLost2({ method });
15202
15358
  const id = ++lastId;
15203
- const deferred = yield* make16();
15359
+ const deferred = yield* make15();
15204
15360
  pending.set(id, { method, deferred });
15205
15361
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15206
15362
  return yield* _await(deferred);
@@ -15274,7 +15430,7 @@ var herdrCoreOver = (transport) => ({
15274
15430
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15275
15431
  };
15276
15432
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15277
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15433
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15278
15434
  }))
15279
15435
  });
15280
15436
  var spawnedTransport = (env) => gen(function* () {
@@ -15365,7 +15521,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15365
15521
  const spawner = yield* ChildProcessSpawner;
15366
15522
  const [command, ...args] = argv;
15367
15523
  const handle = yield* spawner.spawn(make3(command, args, {
15368
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15524
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15369
15525
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15370
15526
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15371
15527
  }));