@kitman-sh/cli 0.42.0 → 0.42.2

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-v9y1ene9.js → chunk-17715h5w.js} +35 -35
  2. package/dist/{chunk-mrgeje8k.js → chunk-1gr39h4v.js} +2 -2
  3. package/dist/{chunk-01ntfatw.js → chunk-1w517sym.js} +7 -7
  4. package/dist/{chunk-cnryphhh.js → chunk-2bt9e1fj.js} +5 -5
  5. package/dist/{chunk-ez61p8ef.js → chunk-33zd0yt4.js} +10 -10
  6. package/dist/{chunk-6x08g7m6.js → chunk-3gax0xq6.js} +2 -2
  7. package/dist/{chunk-bqbfyqx6.js → chunk-b4td2pgc.js} +61 -61
  8. package/dist/{chunk-5r3j4h21.js → chunk-c3ms91a6.js} +18 -18
  9. package/dist/{chunk-wy6gmtd9.js → chunk-dhe1fwhw.js} +2 -2
  10. package/dist/{chunk-ns26fbmk.js → chunk-drw8m50d.js} +2 -2
  11. package/dist/{chunk-jwtgfc34.js → chunk-gqgbah9q.js} +6 -6
  12. package/dist/{chunk-d4vhrja4.js → chunk-hfy8nmat.js} +3 -3
  13. package/dist/{chunk-netm7d3w.js → chunk-hg9y4ykj.js} +4 -4
  14. package/dist/{chunk-r4fs82ar.js → chunk-mc0xxx2z.js} +6 -6
  15. package/dist/{chunk-67ybyzmq.js → chunk-q6qn9c47.js} +266 -110
  16. package/dist/{chunk-ea29sbaq.js → chunk-qndcafax.js} +1 -1
  17. package/dist/{chunk-hgvft7vy.js → chunk-r5b36fgg.js} +4 -4
  18. package/dist/{chunk-ae26brmm.js → chunk-rc4wvjf2.js} +29 -23
  19. package/dist/{chunk-zzg4b212.js → chunk-re7cr0kk.js} +8 -8
  20. package/dist/{chunk-etrfc5cn.js → chunk-sasjamqz.js} +29 -178
  21. package/dist/{chunk-dtbkp9eq.js → chunk-sbk4evb4.js} +3 -3
  22. package/dist/{chunk-v8mfd1bm.js → chunk-t8y2y7ha.js} +1 -1
  23. package/dist/{chunk-98azvx6g.js → chunk-tpmyf5mk.js} +1 -1
  24. package/dist/{chunk-px1fhc26.js → chunk-vjkgbsry.js} +4 -4
  25. package/dist/{chunk-8b02x7vv.js → chunk-wre79w3z.js} +1 -1
  26. package/dist/{chunk-mdqc88kx.js → chunk-y6mjtq6n.js} +8 -8
  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,
@@ -87,9 +89,11 @@ import {
87
89
  ConsoleRef,
88
90
  succeed3,
89
91
  fail4,
92
+ void_2,
90
93
  isSuccess2,
94
+ isFailure2,
91
95
  makeUnsafe5,
92
- make16,
96
+ make15,
93
97
  _await,
94
98
  fail5,
95
99
  isDone,
@@ -97,8 +101,12 @@ import {
97
101
  succeed4,
98
102
  doneUnsafe,
99
103
  TracerTimingEnabled,
104
+ Scope,
105
+ makeUnsafe6,
100
106
  provide,
107
+ addFinalizerExit,
101
108
  addFinalizer,
109
+ close,
102
110
  succeed5,
103
111
  effect,
104
112
  effectContext,
@@ -150,6 +158,7 @@ import {
150
158
  tapCause,
151
159
  retry,
152
160
  ignore,
161
+ ignoreCause,
153
162
  orElseSucceed,
154
163
  timeout,
155
164
  timeoutOrElse,
@@ -161,6 +170,7 @@ import {
161
170
  context,
162
171
  contextWith,
163
172
  provide3,
173
+ provideContext2,
164
174
  serviceOption,
165
175
  updateContext,
166
176
  provideService,
@@ -171,6 +181,7 @@ import {
171
181
  addFinalizer2,
172
182
  ensuring2,
173
183
  onError,
184
+ onExit,
174
185
  cached,
175
186
  interrupt3,
176
187
  interruptible,
@@ -182,6 +193,7 @@ import {
182
193
  withParentSpan,
183
194
  forkScoped,
184
195
  runFork,
196
+ runForkWith,
185
197
  runPromise,
186
198
  runPromiseWith,
187
199
  runSync,
@@ -201,7 +213,7 @@ import {
201
213
  decodeEffect,
202
214
  decodeUnknownOption,
203
215
  decodeOption,
204
- make17,
216
+ make16,
205
217
  isSchema,
206
218
  optionalKey,
207
219
  optional,
@@ -262,13 +274,17 @@ import {
262
274
  decodeJsonStringOption,
263
275
  encodeJsonStringSync,
264
276
  encodePrettyJsonString
265
- } from "./chunk-bqbfyqx6.js";
277
+ } from "./chunk-b4td2pgc.js";
266
278
  import {
267
279
  map,
268
280
  makeEquivalence,
269
281
  Clock,
270
282
  currentTimeMillis,
271
283
  bytes,
284
+ join,
285
+ interrupt,
286
+ getCurrent,
287
+ runIn,
272
288
  BadArgument,
273
289
  systemError,
274
290
  badArgument,
@@ -290,13 +306,11 @@ import {
290
306
  isSink,
291
307
  fromChannel,
292
308
  drain,
293
- make10,
294
- get3,
295
309
  isStream,
296
310
  fromChannel2,
297
311
  callback,
298
312
  empty2,
299
- make11,
313
+ make10,
300
314
  suspend,
301
315
  fail2,
302
316
  fromQueue,
@@ -322,17 +336,17 @@ import {
322
336
  mkArrayBuffer,
323
337
  toReadableStreamEffect,
324
338
  FileSystem,
325
- make12,
339
+ make11,
326
340
  FileTypeId,
327
341
  WatchBackend,
328
342
  Path,
329
- make13,
343
+ make12,
330
344
  option,
331
345
  String2,
332
346
  optionalEnv,
333
347
  harnessesUnsupportedInSrt2,
334
348
  harnessesUnsupportedInDocker2
335
- } from "./chunk-etrfc5cn.js";
349
+ } from "./chunk-sasjamqz.js";
336
350
  import {
337
351
  isRedacted,
338
352
  make,
@@ -346,7 +360,7 @@ import {
346
360
  make3,
347
361
  parseFdName,
348
362
  fdName
349
- } from "./chunk-6x08g7m6.js";
363
+ } from "./chunk-3gax0xq6.js";
350
364
  import {
351
365
  isDateTime,
352
366
  Numeric,
@@ -359,7 +373,7 @@ import {
359
373
  SecretScope,
360
374
  SecretHosts,
361
375
  isSecretReference
362
- } from "./chunk-ea29sbaq.js";
376
+ } from "./chunk-qndcafax.js";
363
377
 
364
378
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
365
379
  var makeEquivalence3 = Tuple;
@@ -498,7 +512,7 @@ var fromDateUnsafe = (date) => {
498
512
  }
499
513
  return makeUtc(epochMillis);
500
514
  };
501
- var makeUnsafe6 = (input) => {
515
+ var makeUnsafe7 = (input) => {
502
516
  if (isDateTime2(input)) {
503
517
  return input;
504
518
  } else if (input instanceof Date) {
@@ -518,7 +532,7 @@ var makeUnsafe6 = (input) => {
518
532
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
519
533
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
520
534
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
521
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
535
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
522
536
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
523
537
  var nowUnsafe = () => makeUtc(Date.now());
524
538
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -625,7 +639,7 @@ class Metric$ {
625
639
  }
626
640
  hook(context) {
627
641
  const key = this.key(context);
628
- const registry = get4(context, MetricRegistry);
642
+ const registry = get3(context, MetricRegistry);
629
643
  let metadata = registry.get(key);
630
644
  if (isUndefined(metadata)) {
631
645
  metadata = this.metadata(this.createHooks());
@@ -634,11 +648,11 @@ class Metric$ {
634
648
  return metadata.hooks;
635
649
  }
636
650
  removeUnsafe(context) {
637
- get4(context, MetricRegistry).delete(this.key(context));
651
+ get3(context, MetricRegistry).delete(this.key(context));
638
652
  }
639
653
  registerUnsafe(context, hooks) {
640
654
  const key = this.key(context);
641
- const registry = get4(context, MetricRegistry);
655
+ const registry = get3(context, MetricRegistry);
642
656
  const metadata = this.metadata({
643
657
  get: hooks.get,
644
658
  update: constVoid,
@@ -654,7 +668,7 @@ class Metric$ {
654
668
  };
655
669
  }
656
670
  key(context) {
657
- const extraAttributes = get4(context, CurrentMetricAttributes);
671
+ const extraAttributes = get3(context, CurrentMetricAttributes);
658
672
  if (extraAttributes !== this.#extraAttributes) {
659
673
  this.#extraAttributes = extraAttributes;
660
674
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -906,9 +920,151 @@ var toNumber = (b) => {
906
920
  return some(Number(b));
907
921
  };
908
922
 
923
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
924
+ var TypeId3 = "~effect/RcRef";
925
+ var stateEmpty = {
926
+ _tag: "Empty"
927
+ };
928
+ var stateClosed = {
929
+ _tag: "Closed"
930
+ };
931
+ var variance = {
932
+ _A: identity,
933
+ _E: identity
934
+ };
935
+
936
+ class RcRefImpl {
937
+ [TypeId3] = variance;
938
+ pipe() {
939
+ return pipeArguments(this, arguments);
940
+ }
941
+ state = stateEmpty;
942
+ acquire;
943
+ context;
944
+ scope;
945
+ idleTimeToLive;
946
+ constructor(acquire, context, scope, idleTimeToLive) {
947
+ this.acquire = acquire;
948
+ this.context = context;
949
+ this.scope = scope;
950
+ this.idleTimeToLive = idleTimeToLive;
951
+ }
952
+ }
953
+ var make17 = (options) => withFiber2((fiber) => {
954
+ const context = fiber.context;
955
+ const scope = get3(context, Scope);
956
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
957
+ return as(addFinalizerExit(scope, () => {
958
+ const state = ref.state;
959
+ ref.state = stateClosed;
960
+ if (state._tag === "Acquired")
961
+ return close(state.scope, void_2);
962
+ if (state._tag === "Acquiring")
963
+ return interrupt(state.fiber);
964
+ return void_3;
965
+ }), ref);
966
+ });
967
+ var getState = (self, restore) => {
968
+ switch (self.state._tag) {
969
+ case "Closed": {
970
+ return interrupt3;
971
+ }
972
+ case "Acquired": {
973
+ const state = self.state;
974
+ state.refCount++;
975
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
976
+ }
977
+ case "Acquiring": {
978
+ const state = self.state;
979
+ state.awaiters++;
980
+ return awaitAcquiring(self, state, restore);
981
+ }
982
+ case "Empty": {
983
+ const acquiring = {
984
+ _tag: "Acquiring",
985
+ fiber: undefined,
986
+ awaiters: 1,
987
+ acquired: undefined
988
+ };
989
+ self.state = acquiring;
990
+ const scope = makeUnsafe6();
991
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
992
+ if (self.state !== acquiring) {
993
+ return interrupt3;
994
+ }
995
+ const state = {
996
+ _tag: "Acquired",
997
+ value,
998
+ scope,
999
+ fiber: undefined,
1000
+ refCount: acquiring.awaiters,
1001
+ invalidated: false
1002
+ };
1003
+ self.state = state;
1004
+ acquiring.acquired = state;
1005
+ return succeed6(state);
1006
+ }), onExit((exit) => {
1007
+ if (isSuccess2(exit))
1008
+ return void_3;
1009
+ if (self.state === acquiring)
1010
+ self.state = stateEmpty;
1011
+ return close(scope, exit);
1012
+ }));
1013
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1014
+ return awaitAcquiring(self, acquiring, restore);
1015
+ }
1016
+ }
1017
+ };
1018
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1019
+ const acquired = acquiring.acquired;
1020
+ if (acquired !== undefined) {
1021
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1022
+ }
1023
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1024
+ return void_3;
1025
+ self.state = stateEmpty;
1026
+ return interrupt(acquiring.fiber);
1027
+ });
1028
+ var get4 = (self_) => {
1029
+ const self = self_;
1030
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1031
+ };
1032
+ var release = (self, state) => {
1033
+ state.refCount--;
1034
+ if (state.refCount > 0) {
1035
+ return void_3;
1036
+ }
1037
+ const idleTimeToLive = self.idleTimeToLive;
1038
+ if (idleTimeToLive === undefined || state.invalidated) {
1039
+ if (self.state === state) {
1040
+ self.state = stateEmpty;
1041
+ }
1042
+ return close(state.scope, void_2);
1043
+ } else if (!isFinite(idleTimeToLive)) {
1044
+ return void_3;
1045
+ }
1046
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1047
+ if (self.state === state && state.refCount === 0) {
1048
+ self.state = stateEmpty;
1049
+ return ignoreCause(close(state.scope, void_2), {
1050
+ log: "Unhandled",
1051
+ message: "Unhandled error in RcRef finalizer"
1052
+ });
1053
+ }
1054
+ return void_3;
1055
+ })).pipe(ensuring2(sync2(() => {
1056
+ state.fiber = undefined;
1057
+ })), runForkWith(self.context), runIn(self.scope));
1058
+ return void_3;
1059
+ };
1060
+
1061
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1062
+ var make18 = make17;
1063
+ var get5 = get4;
1064
+
909
1065
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
910
- var makeUnsafe = makeUnsafe6;
911
- var make18 = make4;
1066
+ var makeUnsafe = makeUnsafe7;
1067
+ var make19 = make4;
912
1068
  var now2 = now;
913
1069
  var nowUnsafe2 = nowUnsafe;
914
1070
  var toDateUtc2 = toDateUtc;
@@ -1227,7 +1383,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1227
1383
  windowsHide: true
1228
1384
  }, onExit);
1229
1385
  };
1230
- var make19 = /* @__PURE__ */ gen(function* () {
1386
+ var make20 = /* @__PURE__ */ gen(function* () {
1231
1387
  const fs = yield* FileSystem;
1232
1388
  const path = yield* Path;
1233
1389
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1756,7 +1912,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1756
1912
  });
1757
1913
  return make2(spawnCommand);
1758
1914
  });
1759
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1915
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1760
1916
  var flattenCommand = (command) => {
1761
1917
  const commands = [];
1762
1918
  const pipeOptions = [];
@@ -2240,7 +2396,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2240
2396
  resume(fail7(handleBadArgument("writeFile")(err)));
2241
2397
  }
2242
2398
  });
2243
- var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2399
+ var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2244
2400
  access: access2,
2245
2401
  chmod: chmod2,
2246
2402
  chown: chown2,
@@ -2300,15 +2456,15 @@ var fileUrlOps = (windows) => ({
2300
2456
  })
2301
2457
  })
2302
2458
  });
2303
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2459
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2304
2460
  ...NodePath.posix,
2305
2461
  .../* @__PURE__ */ fileUrlOps(false)
2306
2462
  }));
2307
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2463
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2308
2464
  ...NodePath.win32,
2309
2465
  .../* @__PURE__ */ fileUrlOps(true)
2310
2466
  }));
2311
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2467
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2312
2468
  ...NodePath,
2313
2469
  .../* @__PURE__ */ fileUrlOps(undefined)
2314
2470
  }));
@@ -2317,10 +2473,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2317
2473
  var layer2 = layer7;
2318
2474
 
2319
2475
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2320
- var TypeId3 = "~effect/Stdio";
2321
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2322
- var make20 = (options) => ({
2323
- [TypeId3]: TypeId3,
2476
+ var TypeId4 = "~effect/Stdio";
2477
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2478
+ var make21 = (options) => ({
2479
+ [TypeId4]: TypeId4,
2324
2480
  stdinIsTerminal: succeed6(false),
2325
2481
  stdoutIsTerminal: succeed6(false),
2326
2482
  stderrIsTerminal: succeed6(false),
@@ -2328,7 +2484,7 @@ var make20 = (options) => ({
2328
2484
  });
2329
2485
 
2330
2486
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2331
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2487
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2332
2488
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2333
2489
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2334
2490
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2528,7 +2684,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2528
2684
  const uuid = bytes(randomBytes(16));
2529
2685
  return format === "bytes" ? uuid : stringify(uuid);
2530
2686
  };
2531
- var make21 = (randomBytes) => {
2687
+ var make22 = (randomBytes) => {
2532
2688
  const randomBytesChecked = (size) => {
2533
2689
  checkSize(size);
2534
2690
  return randomBytes(size);
@@ -2562,7 +2718,7 @@ var fillRandom = (crypto2, size) => {
2562
2718
  }
2563
2719
  return bytes;
2564
2720
  };
2565
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2721
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2566
2722
  var randomBytesUnsafe = (size) => {
2567
2723
  checkSize(size);
2568
2724
  return fillRandom(globalThis.crypto, size);
@@ -2570,10 +2726,10 @@ var randomBytesUnsafe = (size) => {
2570
2726
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2571
2727
 
2572
2728
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2573
- var TypeId4 = "~effect/http/Cookies";
2729
+ var TypeId5 = "~effect/http/Cookies";
2574
2730
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2575
2731
  var Proto2 = {
2576
- [TypeId4]: TypeId4,
2732
+ [TypeId5]: TypeId5,
2577
2733
  ...BaseProto,
2578
2734
  toJSON() {
2579
2735
  return {
@@ -2752,14 +2908,14 @@ var tryDecodeURIComponent = (str) => {
2752
2908
  };
2753
2909
 
2754
2910
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2755
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2911
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2756
2912
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2757
- [TypeId5]: {
2758
- value: TypeId5
2913
+ [TypeId6]: {
2914
+ value: TypeId6
2759
2915
  },
2760
2916
  [symbolRedactable]: {
2761
2917
  value(context) {
2762
- return redact2(this, get4(context, CurrentRedactedNames));
2918
+ return redact2(this, get3(context, CurrentRedactedNames));
2763
2919
  }
2764
2920
  },
2765
2921
  toJSON: {
@@ -2784,7 +2940,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2784
2940
  value: BaseProto[NodeInspectSymbol]
2785
2941
  }
2786
2942
  });
2787
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2943
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2788
2944
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2789
2945
  var empty = /* @__PURE__ */ Object.create(Proto3);
2790
2946
  var fromInput = (input) => {
@@ -2809,21 +2965,21 @@ var fromInput = (input) => {
2809
2965
  };
2810
2966
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2811
2967
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2812
- const out = make22(self);
2968
+ const out = make23(self);
2813
2969
  out[key.toLowerCase()] = value;
2814
2970
  return out;
2815
2971
  });
2816
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2972
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2817
2973
  ...self,
2818
2974
  ...fromInput(headers)
2819
2975
  }));
2820
2976
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2821
- const out = make22(self);
2977
+ const out = make23(self);
2822
2978
  Object.assign(out, headers);
2823
2979
  return out;
2824
2980
  });
2825
2981
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2826
- const out = make22(self);
2982
+ const out = make23(self);
2827
2983
  delete out[key.toLowerCase()];
2828
2984
  return out;
2829
2985
  });
@@ -2880,18 +3036,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2880
3036
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2881
3037
 
2882
3038
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2883
- var TypeId6 = "~effect/http/UrlParams";
2884
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3039
+ var TypeId7 = "~effect/http/UrlParams";
3040
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2885
3041
  var Proto4 = {
2886
3042
  ...PipeInspectableProto,
2887
- [TypeId6]: TypeId6,
3043
+ [TypeId7]: TypeId7,
2888
3044
  [Symbol.iterator]() {
2889
3045
  return this.params[Symbol.iterator]();
2890
3046
  },
2891
3047
  [symbolRedactable](context) {
2892
3048
  return {
2893
3049
  _id: "UrlParams",
2894
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3050
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2895
3051
  };
2896
3052
  },
2897
3053
  toJSON() {
@@ -2904,7 +3060,7 @@ var Proto4 = {
2904
3060
  return array(this.params.flat());
2905
3061
  }
2906
3062
  };
2907
- var make23 = (params) => {
3063
+ var make24 = (params) => {
2908
3064
  const self = Object.create(Proto4);
2909
3065
  self.params = params;
2910
3066
  return self;
@@ -2923,7 +3079,7 @@ var fromInput2 = (input) => {
2923
3079
  out.push(parsed[i]);
2924
3080
  }
2925
3081
  }
2926
- return make23(out);
3082
+ return make24(out);
2927
3083
  };
2928
3084
  var fromInputNested = (input) => {
2929
3085
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2947,9 +3103,9 @@ var fromInputNested = (input) => {
2947
3103
  return out;
2948
3104
  };
2949
3105
  var coerce = (value) => isRedacted(value) ? value : String(value);
2950
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3106
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2951
3107
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2952
- var empty4 = /* @__PURE__ */ make23([]);
3108
+ var empty4 = /* @__PURE__ */ make24([]);
2953
3109
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2954
3110
  const params = fromInput2(input).params.slice();
2955
3111
  const keys = new Set;
@@ -2961,7 +3117,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2961
3117
  continue;
2962
3118
  params.push(self.params[i]);
2963
3119
  }
2964
- return make23(params);
3120
+ return make24(params);
2965
3121
  });
2966
3122
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2967
3123
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3017,13 +3173,13 @@ var decodeQueryKey = (key) => {
3017
3173
  return key;
3018
3174
  }
3019
3175
  };
3020
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3176
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3021
3177
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3022
3178
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3023
3179
  });
3024
3180
 
3025
3181
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3026
- var TypeId7 = "~effect/Terminal";
3182
+ var TypeId8 = "~effect/Terminal";
3027
3183
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3028
3184
 
3029
3185
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3032,14 +3188,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3032
3188
  [QuitErrorTypeId] = QuitErrorTypeId;
3033
3189
  }
3034
3190
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3035
- var make24 = (impl) => Terminal.of({
3191
+ var make25 = (impl) => Terminal.of({
3036
3192
  ...impl,
3037
- [TypeId7]: TypeId7
3193
+ [TypeId8]: TypeId8
3038
3194
  });
3039
3195
 
3040
3196
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3041
3197
  import * as readline from "readline";
3042
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3198
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3043
3199
  const stdin = process.stdin;
3044
3200
  const stdout = process.stdout;
3045
3201
  const lines = yield* make9();
@@ -3053,7 +3209,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3053
3209
  };
3054
3210
  stdin.once("end", onStdinEnd);
3055
3211
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3056
- const rlRef = yield* make10({
3212
+ const rlRef = yield* make18({
3057
3213
  acquire: acquireRelease(sync2(() => {
3058
3214
  const rl = readline.createInterface({
3059
3215
  input: stdin,
@@ -3092,7 +3248,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3092
3248
  if (stdin.isTTY)
3093
3249
  stdin.setRawMode(enabled);
3094
3250
  });
3095
- const rawModeRef = yield* make10({
3251
+ const rawModeRef = yield* make18({
3096
3252
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3097
3253
  idleTimeToLive: "10 millis"
3098
3254
  });
@@ -3143,14 +3299,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3143
3299
  if (inputEnded) {
3144
3300
  handleEnd();
3145
3301
  } else {
3146
- yield* get3(rlRef);
3147
- yield* get3(rawModeRef);
3302
+ yield* get5(rlRef);
3303
+ yield* get5(rawModeRef);
3148
3304
  stdin.once("end", handleEnd);
3149
3305
  }
3150
3306
  return queue;
3151
3307
  });
3152
3308
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3153
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3309
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3154
3310
  onSome: succeed6
3155
3311
  })), mapError2(() => new QuitError({}))));
3156
3312
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3161,7 +3317,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3161
3317
  cause: err
3162
3318
  }))));
3163
3319
  }));
3164
- return make24({
3320
+ return make25({
3165
3321
  columns,
3166
3322
  rows,
3167
3323
  size,
@@ -3170,7 +3326,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3170
3326
  display
3171
3327
  });
3172
3328
  });
3173
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3329
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3174
3330
  function defaultShouldQuit(input) {
3175
3331
  const key = input.key;
3176
3332
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3197,7 +3353,7 @@ function toDate(input) {
3197
3353
  return toDateUtc2(makeUnsafe(input));
3198
3354
  }
3199
3355
  function parseDate(input) {
3200
- return getOrUndefined(map4(make18(input), toDateUtc2));
3356
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3201
3357
  }
3202
3358
  function toIso(input) {
3203
3359
  return formatIso(makeUnsafe(input));
@@ -8381,7 +8537,7 @@ var RunnerCapabilities = Struct({
8381
8537
  applyChange: optionalKey(Boolean2)
8382
8538
  });
8383
8539
  var MaxRunnerConcurrency = 32;
8384
- var DefaultVerificationConcurrency = 2;
8540
+ var DefaultVerificationConcurrency = MaxRunnerConcurrency;
8385
8541
  var verificationCap = (settings) => Math.min(settings.concurrency, settings.verificationConcurrency);
8386
8542
  var PinnedImage = String4.check(isMaxLength(500), isPattern(new RegExp("^[^\\s@]+@sha256:[a-f0-9]{64}$", "u")));
8387
8543
  var RunnerSettings = Struct({
@@ -10839,11 +10995,11 @@ var TranscriptSearchResult = Struct({
10839
10995
  total: Int
10840
10996
  });
10841
10997
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
10842
- var TypeId8 = "~effect/http/HttpBody";
10998
+ var TypeId9 = "~effect/http/HttpBody";
10843
10999
  class Proto5 {
10844
- [TypeId8];
11000
+ [TypeId9];
10845
11001
  constructor() {
10846
- this[TypeId8] = TypeId8;
11002
+ this[TypeId9] = TypeId9;
10847
11003
  }
10848
11004
  [NodeInspectSymbol]() {
10849
11005
  return this.toJSON();
@@ -10934,7 +11090,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
10934
11090
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
10935
11091
 
10936
11092
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
10937
- var TypeId9 = "~effect/http/HttpClientError";
11093
+ var TypeId10 = "~effect/http/HttpClientError";
10938
11094
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10939
11095
  constructor(props) {
10940
11096
  if ("cause" in props.reason) {
@@ -10946,7 +11102,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10946
11102
  super(props);
10947
11103
  }
10948
11104
  }
10949
- [TypeId9] = TypeId9;
11105
+ [TypeId10] = TypeId10;
10950
11106
  get request() {
10951
11107
  return this.reason.request;
10952
11108
  }
@@ -11050,7 +11206,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11050
11206
  }
11051
11207
  }
11052
11208
 
11053
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11209
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11054
11210
  _tag: /* @__PURE__ */ tag("HttpError"),
11055
11211
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11056
11212
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11083,7 +11239,7 @@ var updateContentLength = (headers, body) => {
11083
11239
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11084
11240
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11085
11241
  }
11086
- var make26 = (url, params, hash) => try_({
11242
+ var make27 = (url, params, hash) => try_({
11087
11243
  try: () => {
11088
11244
  const urlInstance = new URL(url, baseUrl());
11089
11245
  for (let i = 0;i < params.params.length; i++) {
@@ -11114,10 +11270,10 @@ var baseUrl = () => {
11114
11270
  };
11115
11271
 
11116
11272
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
11117
- var TypeId10 = "~effect/http/HttpClientRequest";
11118
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11273
+ var TypeId11 = "~effect/http/HttpClientRequest";
11274
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11119
11275
  var Proto6 = {
11120
- [TypeId10]: TypeId10,
11276
+ [TypeId11]: TypeId11,
11121
11277
  ...BaseProto,
11122
11278
  toJSON() {
11123
11279
  return {
@@ -11206,7 +11362,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11206
11362
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11207
11363
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11208
11364
  function toUrl(self) {
11209
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11365
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11210
11366
  if (isSuccess(r)) {
11211
11367
  return some(r.success);
11212
11368
  }
@@ -11214,7 +11370,7 @@ function toUrl(self) {
11214
11370
  }
11215
11371
 
11216
11372
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11217
- var TypeId11 = "~effect/http/HttpIncomingMessage";
11373
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
11218
11374
  var schemaBodyJson = (schema, options) => {
11219
11375
  const decode = decodeEffect(toCodecJson(schema));
11220
11376
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11233,7 +11389,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11233
11389
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11234
11390
 
11235
11391
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11236
- var TypeId12 = "~effect/http/HttpClientResponse";
11392
+ var TypeId13 = "~effect/http/HttpClientResponse";
11237
11393
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11238
11394
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11239
11395
  reason: new StatusCodeError({
@@ -11244,16 +11400,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11244
11400
  }));
11245
11401
 
11246
11402
  class WebHttpClientResponse extends Class {
11247
- [TypeId11];
11248
11403
  [TypeId12];
11404
+ [TypeId13];
11249
11405
  request;
11250
11406
  source;
11251
11407
  constructor(request, source) {
11252
11408
  super();
11253
11409
  this.request = request;
11254
11410
  this.source = source;
11255
- this[TypeId11] = TypeId11;
11256
11411
  this[TypeId12] = TypeId12;
11412
+ this[TypeId13] = TypeId13;
11257
11413
  }
11258
11414
  toJSON() {
11259
11415
  return inspect(this, {
@@ -11425,7 +11581,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11425
11581
  };
11426
11582
 
11427
11583
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11428
- var TypeId13 = "~effect/http/HttpClient";
11584
+ var TypeId14 = "~effect/http/HttpClient";
11429
11585
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11430
11586
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11431
11587
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11442,7 +11598,7 @@ var makeWith2 = (postprocess, preprocess) => {
11442
11598
  return self;
11443
11599
  };
11444
11600
  var Proto7 = {
11445
- [TypeId13]: TypeId13,
11601
+ [TypeId14]: TypeId14,
11446
11602
  pipe() {
11447
11603
  return pipeArguments(this, arguments);
11448
11604
  },
@@ -11456,10 +11612,10 @@ var Proto7 = {
11456
11612
  return this.execute(make5(fullMethod)(url, options));
11457
11613
  }]))
11458
11614
  };
11459
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11615
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11460
11616
  const scopedController = scopedRequests.get(request);
11461
11617
  const controller = scopedController ?? new AbortController;
11462
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11618
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11463
11619
  if (isFailure(urlResult)) {
11464
11620
  return fail7(new HttpClientError({
11465
11621
  reason: new InvalidUrlError({
@@ -11593,8 +11749,8 @@ class InterruptibleResponse {
11593
11749
  this.original = original;
11594
11750
  this.controller = controller;
11595
11751
  }
11752
+ [TypeId13] = TypeId13;
11596
11753
  [TypeId12] = TypeId12;
11597
- [TypeId11] = TypeId11;
11598
11754
  applyInterrupt(effect) {
11599
11755
  return suspend3(() => {
11600
11756
  responseRegistry.unregister(this.original);
@@ -11692,7 +11848,7 @@ var detectStreamBodySupport = () => {
11692
11848
  return false;
11693
11849
  }
11694
11850
  };
11695
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11851
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11696
11852
  if (request.headers.upgrade !== undefined) {
11697
11853
  return fail7(new HttpClientError({
11698
11854
  reason: new TransportError({
@@ -11783,10 +11939,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11783
11939
  });
11784
11940
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11785
11941
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11786
- var TypeId14 = "~effect/socket/Socket";
11942
+ var TypeId15 = "~effect/socket/Socket";
11787
11943
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11788
- var make28 = (options) => Socket.of({
11789
- [TypeId14]: TypeId14,
11944
+ var make29 = (options) => Socket.of({
11945
+ [TypeId15]: TypeId15,
11790
11946
  reader: options.reader,
11791
11947
  writer: options.writer
11792
11948
  });
@@ -12109,7 +12265,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12109
12265
  write,
12110
12266
  writeAll
12111
12267
  });
12112
- return succeed6(make28({
12268
+ return succeed6(make29({
12113
12269
  reader,
12114
12270
  writer
12115
12271
  }));
@@ -15444,7 +15600,7 @@ function getStreamSchemas(schema) {
15444
15600
  }
15445
15601
  var schema = /* @__PURE__ */ declare(isStream);
15446
15602
  function Stream(success, error) {
15447
- return make17(schema.ast, {
15603
+ return make16(schema.ast, {
15448
15604
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15449
15605
  success,
15450
15606
  error
@@ -15452,9 +15608,9 @@ function Stream(success, error) {
15452
15608
  }
15453
15609
 
15454
15610
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15455
- var TypeId15 = "~effect/rpc/Rpc";
15611
+ var TypeId16 = "~effect/rpc/Rpc";
15456
15612
  var Proto8 = {
15457
- [TypeId15]: TypeId15,
15613
+ [TypeId16]: TypeId16,
15458
15614
  pipe() {
15459
15615
  return pipeArguments(this, arguments);
15460
15616
  },
@@ -15621,7 +15777,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15621
15777
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15622
15778
 
15623
15779
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15624
- var TypeId16 = "~effect/rpc/RpcClientError";
15780
+ var TypeId17 = "~effect/rpc/RpcClientError";
15625
15781
 
15626
15782
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15627
15783
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15630,11 +15786,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15630
15786
  })) {
15631
15787
  }
15632
15788
 
15633
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15789
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15634
15790
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15635
15791
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15636
15792
  })) {
15637
- [TypeId16] = TypeId16;
15793
+ [TypeId17] = TypeId17;
15638
15794
  get message() {
15639
15795
  return `${this.reason._tag}: ${this.reason.message}`;
15640
15796
  }
@@ -15754,7 +15910,7 @@ var RpcGroupProto = {
15754
15910
  });
15755
15911
  },
15756
15912
  annotateRpcs(service, value) {
15757
- return this.annotateRpcsMerge(make15(service, value));
15913
+ return this.annotateRpcsMerge(make14(service, value));
15758
15914
  },
15759
15915
  annotateMerge(context) {
15760
15916
  return makeProto2({
@@ -15782,7 +15938,7 @@ var make7 = (...rpcs) => makeProto2({
15782
15938
  annotations: empty3()
15783
15939
  });
15784
15940
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15785
- var TypeId17 = "~effect/rpc/RpcMiddleware";
15941
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
15786
15942
  var Service = () => (id, options) => {
15787
15943
  const limit = getStackTraceLimit();
15788
15944
  let creationError;
@@ -15800,7 +15956,7 @@ var Service = () => (id, options) => {
15800
15956
  return creationError?.stack;
15801
15957
  }
15802
15958
  });
15803
- ServiceClass_[TypeId17] = TypeId17;
15959
+ ServiceClass_[TypeId18] = TypeId18;
15804
15960
  ServiceClass_.error = options?.error ?? Never;
15805
15961
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15806
15962
  return ServiceClass;
@@ -16546,7 +16702,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16546
16702
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16547
16703
 
16548
16704
  // apps/cli/src/oauth.ts
16549
- var Scope = "openid profile email offline_access kitman:cli";
16705
+ var Scope2 = "openid profile email offline_access kitman:cli";
16550
16706
  var CallbackPath = "/auth/callback";
16551
16707
 
16552
16708
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16565,7 +16721,7 @@ function buildAuthorizeUrl(input) {
16565
16721
  url.searchParams.set("response_type", "code");
16566
16722
  url.searchParams.set("client_id", input.clientId);
16567
16723
  url.searchParams.set("redirect_uri", input.redirectUri);
16568
- url.searchParams.set("scope", Scope);
16724
+ url.searchParams.set("scope", Scope2);
16569
16725
  url.searchParams.set("code_challenge", input.codeChallenge);
16570
16726
  url.searchParams.set("code_challenge_method", "S256");
16571
16727
  url.searchParams.set("state", input.state);
@@ -16625,7 +16781,7 @@ function toStoredSession(token, existingRefreshToken) {
16625
16781
  }
16626
16782
  function startLoopbackServer(input) {
16627
16783
  return gen(function* () {
16628
- const code = yield* make16();
16784
+ const code = yield* make15();
16629
16785
  const context2 = yield* context();
16630
16786
  const runSyncExit = runSyncExitWith(context2);
16631
16787
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -17173,7 +17329,7 @@ var openConnection = (transport) => gen(function* () {
17173
17329
  let lastId = 0;
17174
17330
  let lost = false;
17175
17331
  const notifications = yield* unbounded2();
17176
- const ended = yield* make16();
17332
+ const ended = yield* make15();
17177
17333
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
17178
17334
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
17179
17335
  onNone: () => void_3,
@@ -17200,7 +17356,7 @@ var openConnection = (transport) => gen(function* () {
17200
17356
  if (lost)
17201
17357
  return yield* new HerdrCoreConnectionLost2({ method });
17202
17358
  const id = ++lastId;
17203
- const deferred = yield* make16();
17359
+ const deferred = yield* make15();
17204
17360
  pending.set(id, { method, deferred });
17205
17361
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
17206
17362
  return yield* _await(deferred);
@@ -17274,7 +17430,7 @@ var herdrCoreOver = (transport) => ({
17274
17430
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
17275
17431
  };
17276
17432
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
17277
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17433
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17278
17434
  }))
17279
17435
  });
17280
17436
  var spawnedTransport = (env) => gen(function* () {
@@ -17365,7 +17521,7 @@ var runProcess2 = (argv, options) => gen(function* () {
17365
17521
  const spawner = yield* ChildProcessSpawner;
17366
17522
  const [command, ...args] = argv;
17367
17523
  const handle = yield* spawner.spawn(make3(command, args, {
17368
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
17524
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17369
17525
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17370
17526
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
17371
17527
  }));