@kitman-sh/cli 0.14.1 → 0.14.3

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/LICENSE.md +10 -0
  2. package/dist/{chunk-rbbh4f56.js → chunk-2w9a76nr.js} +28 -177
  3. package/dist/{chunk-f1y7ysjg.js → chunk-34748vfg.js} +278 -122
  4. package/dist/{chunk-kwkh8hxt.js → chunk-3f6mzrm7.js} +1 -1
  5. package/dist/{chunk-enabwyrn.js → chunk-44kx62t6.js} +7 -7
  6. package/dist/{chunk-gvs5fcvy.js → chunk-65dpe0ev.js} +3 -3
  7. package/dist/{chunk-nvncrs4n.js → chunk-7q3t3x0x.js} +6 -6
  8. package/dist/{chunk-jp7cjnng.js → chunk-7v1n7a6k.js} +4 -4
  9. package/dist/{chunk-vx4qe0fe.js → chunk-91j33xf2.js} +6 -6
  10. package/dist/{chunk-fch7pjzh.js → chunk-9anvghq2.js} +2 -2
  11. package/dist/{chunk-c80dvhxf.js → chunk-9avbsbvk.js} +1 -6
  12. package/dist/{chunk-5x44qb6d.js → chunk-a4mkjaxa.js} +6 -6
  13. package/dist/{chunk-vt8aqeby.js → chunk-bbf0jzsc.js} +1 -1
  14. package/dist/{chunk-93xj74qp.js → chunk-ctpgfdzf.js} +3 -3
  15. package/dist/{chunk-27k0egfz.js → chunk-daem5h1c.js} +28 -28
  16. package/dist/{chunk-pyss20q2.js → chunk-dhtx14r5.js} +3 -3
  17. package/dist/{chunk-zw2mzy00.js → chunk-er9n65mh.js} +9 -9
  18. package/dist/{chunk-5jqqhvv2.js → chunk-f96vy2h9.js} +4 -4
  19. package/dist/{chunk-77jk3v8v.js → chunk-hasfatd4.js} +5 -5
  20. package/dist/{chunk-a9srrnsk.js → chunk-my9vcmfw.js} +31 -31
  21. package/dist/{chunk-0axm9scx.js → chunk-rgrpvnwg.js} +23 -23
  22. package/dist/{chunk-jnpv483d.js → chunk-rvnem2bt.js} +4 -4
  23. package/dist/{chunk-zr59g5bk.js → chunk-tebzffha.js} +17 -17
  24. package/dist/{chunk-cwdrhsvk.js → chunk-y0y2gg8d.js} +2 -2
  25. package/dist/{chunk-wttgq85b.js → chunk-zpp4jg4a.js} +60 -60
  26. package/dist/{chunk-4qpmjrd2.js → chunk-zxmx605h.js} +2 -2
  27. package/dist/index.js +4 -4
  28. package/package.json +4 -3
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make14,
41
+ make13,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,13 +58,15 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make15,
61
+ make14,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get4,
65
+ get3,
66
66
  merge3,
67
67
  Reference,
68
+ fromInputUnsafe,
69
+ isFinite,
68
70
  millis,
69
71
  seconds,
70
72
  toMillis,
@@ -89,9 +91,11 @@ import {
89
91
  ConsoleRef,
90
92
  succeed3,
91
93
  fail4,
94
+ void_2,
92
95
  isSuccess2,
96
+ isFailure2,
93
97
  makeUnsafe5,
94
- make16,
98
+ make15,
95
99
  _await,
96
100
  fail5,
97
101
  isDone,
@@ -99,8 +103,12 @@ import {
99
103
  succeed4,
100
104
  doneUnsafe,
101
105
  TracerTimingEnabled,
106
+ Scope,
107
+ makeUnsafe6,
102
108
  provide,
109
+ addFinalizerExit,
103
110
  addFinalizer,
111
+ close,
104
112
  succeed5,
105
113
  effect,
106
114
  effectContext,
@@ -152,6 +160,7 @@ import {
152
160
  tapCause,
153
161
  retry,
154
162
  ignore,
163
+ ignoreCause,
155
164
  orElseSucceed,
156
165
  timeout,
157
166
  timeoutOrElse,
@@ -163,6 +172,7 @@ import {
163
172
  context,
164
173
  contextWith,
165
174
  provide3,
175
+ provideContext2,
166
176
  serviceOption,
167
177
  updateContext,
168
178
  provideService,
@@ -173,6 +183,7 @@ import {
173
183
  addFinalizer2,
174
184
  ensuring2,
175
185
  onError,
186
+ onExit,
176
187
  cached,
177
188
  interrupt3,
178
189
  interruptible,
@@ -184,6 +195,7 @@ import {
184
195
  withParentSpan,
185
196
  forkScoped,
186
197
  runFork,
198
+ runForkWith,
187
199
  runPromise,
188
200
  runPromiseWith,
189
201
  runSync,
@@ -203,7 +215,7 @@ import {
203
215
  decodeEffect,
204
216
  decodeUnknownOption,
205
217
  decodeOption,
206
- make17,
218
+ make16,
207
219
  isSchema,
208
220
  optionalKey,
209
221
  optional,
@@ -263,11 +275,15 @@ import {
263
275
  decodeJsonStringOption,
264
276
  encodeJsonStringSync,
265
277
  encodePrettyJsonString
266
- } from "./chunk-wttgq85b.js";
278
+ } from "./chunk-zpp4jg4a.js";
267
279
  import {
268
280
  map,
269
281
  makeEquivalence,
270
282
  bytes,
283
+ join,
284
+ interrupt,
285
+ getCurrent,
286
+ runIn,
271
287
  BadArgument,
272
288
  systemError,
273
289
  badArgument,
@@ -289,13 +305,11 @@ import {
289
305
  isSink,
290
306
  fromChannel,
291
307
  drain,
292
- make10,
293
- get3,
294
308
  isStream,
295
309
  fromChannel2,
296
310
  callback,
297
311
  empty2,
298
- make11,
312
+ make10,
299
313
  suspend,
300
314
  fail2,
301
315
  fromQueue,
@@ -321,29 +335,16 @@ import {
321
335
  mkArrayBuffer,
322
336
  toReadableStreamEffect,
323
337
  FileSystem,
324
- make12,
338
+ make11,
325
339
  FileTypeId,
326
340
  WatchBackend,
327
341
  Path,
328
- make13,
342
+ make12,
329
343
  option,
330
344
  String2,
331
345
  optionalEnv,
332
346
  harnessesUnsupportedInSrt2
333
- } from "./chunk-rbbh4f56.js";
334
- import {
335
- isDateTime,
336
- Numeric,
337
- isWholeNumber,
338
- guard,
339
- Id,
340
- Timestamp,
341
- ActorType,
342
- SecretName,
343
- SecretScope,
344
- SecretHosts,
345
- isSecretReference
346
- } from "./chunk-c80dvhxf.js";
347
+ } from "./chunk-2w9a76nr.js";
347
348
  import {
348
349
  isRedacted,
349
350
  make,
@@ -357,7 +358,20 @@ import {
357
358
  make3,
358
359
  parseFdName,
359
360
  fdName
360
- } from "./chunk-4qpmjrd2.js";
361
+ } from "./chunk-zxmx605h.js";
362
+ import {
363
+ isDateTime,
364
+ Numeric,
365
+ isWholeNumber,
366
+ guard,
367
+ Id,
368
+ Timestamp,
369
+ ActorType,
370
+ SecretName,
371
+ SecretScope,
372
+ SecretHosts,
373
+ isSecretReference
374
+ } from "./chunk-9avbsbvk.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 (isUndefined(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));
@@ -7511,7 +7667,7 @@ var RunnerCapabilities = Struct({
7511
7667
  resolve: optionalKey(Boolean2),
7512
7668
  deploy: optionalKey(Boolean2)
7513
7669
  });
7514
- var MaxRunnerConcurrency = 4;
7670
+ var MaxRunnerConcurrency = 32;
7515
7671
  var PinnedImage = String4.check(isMaxLength(500), isPattern(new RegExp("^[^\\s@]+@sha256:[a-f0-9]{64}$", "u")));
7516
7672
  var RunnerSettings = Struct({
7517
7673
  concurrency: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(MaxRunnerConcurrency)),
@@ -9829,11 +9985,11 @@ var TranscriptSearchResult = Struct({
9829
9985
  total: Int
9830
9986
  });
9831
9987
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9832
- var TypeId8 = "~effect/http/HttpBody";
9988
+ var TypeId9 = "~effect/http/HttpBody";
9833
9989
  class Proto5 {
9834
- [TypeId8];
9990
+ [TypeId9];
9835
9991
  constructor() {
9836
- this[TypeId8] = TypeId8;
9992
+ this[TypeId9] = TypeId9;
9837
9993
  }
9838
9994
  [NodeInspectSymbol]() {
9839
9995
  return this.toJSON();
@@ -9924,7 +10080,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9924
10080
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9925
10081
 
9926
10082
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9927
- var TypeId9 = "~effect/http/HttpClientError";
10083
+ var TypeId10 = "~effect/http/HttpClientError";
9928
10084
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9929
10085
  constructor(props) {
9930
10086
  if ("cause" in props.reason) {
@@ -9936,7 +10092,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9936
10092
  super(props);
9937
10093
  }
9938
10094
  }
9939
- [TypeId9] = TypeId9;
10095
+ [TypeId10] = TypeId10;
9940
10096
  get request() {
9941
10097
  return this.reason.request;
9942
10098
  }
@@ -10040,7 +10196,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
10040
10196
  }
10041
10197
  }
10042
10198
 
10043
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
10199
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
10044
10200
  _tag: /* @__PURE__ */ tag("HttpError"),
10045
10201
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
10046
10202
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -10073,7 +10229,7 @@ var updateContentLength = (headers, body) => {
10073
10229
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
10074
10230
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
10075
10231
  }
10076
- var make26 = (url, params, hash) => try_({
10232
+ var make27 = (url, params, hash) => try_({
10077
10233
  try: () => {
10078
10234
  const urlInstance = new URL(url, baseUrl());
10079
10235
  for (let i = 0;i < params.params.length; i++) {
@@ -10104,10 +10260,10 @@ var baseUrl = () => {
10104
10260
  };
10105
10261
 
10106
10262
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
10107
- var TypeId10 = "~effect/http/HttpClientRequest";
10108
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
10263
+ var TypeId11 = "~effect/http/HttpClientRequest";
10264
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
10109
10265
  var Proto6 = {
10110
- [TypeId10]: TypeId10,
10266
+ [TypeId11]: TypeId11,
10111
10267
  ...BaseProto,
10112
10268
  toJSON() {
10113
10269
  return {
@@ -10196,7 +10352,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
10196
10352
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
10197
10353
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
10198
10354
  function toUrl(self) {
10199
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
10355
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
10200
10356
  if (isSuccess(r)) {
10201
10357
  return some(r.success);
10202
10358
  }
@@ -10204,7 +10360,7 @@ function toUrl(self) {
10204
10360
  }
10205
10361
 
10206
10362
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
10207
- var TypeId11 = "~effect/http/HttpIncomingMessage";
10363
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
10208
10364
  var schemaBodyJson = (schema, options) => {
10209
10365
  const decode = decodeEffect(toCodecJson(schema));
10210
10366
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -10223,7 +10379,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
10223
10379
  var getWebSource = (self) => self[WebSourceSymbol]?.();
10224
10380
 
10225
10381
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
10226
- var TypeId12 = "~effect/http/HttpClientResponse";
10382
+ var TypeId13 = "~effect/http/HttpClientResponse";
10227
10383
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
10228
10384
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
10229
10385
  reason: new StatusCodeError({
@@ -10234,16 +10390,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
10234
10390
  }));
10235
10391
 
10236
10392
  class WebHttpClientResponse extends Class {
10237
- [TypeId11];
10238
10393
  [TypeId12];
10394
+ [TypeId13];
10239
10395
  request;
10240
10396
  source;
10241
10397
  constructor(request, source) {
10242
10398
  super();
10243
10399
  this.request = request;
10244
10400
  this.source = source;
10245
- this[TypeId11] = TypeId11;
10246
10401
  this[TypeId12] = TypeId12;
10402
+ this[TypeId13] = TypeId13;
10247
10403
  }
10248
10404
  toJSON() {
10249
10405
  return inspect(this, {
@@ -10415,7 +10571,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10415
10571
  };
10416
10572
 
10417
10573
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10418
- var TypeId13 = "~effect/http/HttpClient";
10574
+ var TypeId14 = "~effect/http/HttpClient";
10419
10575
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10420
10576
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10421
10577
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10432,7 +10588,7 @@ var makeWith2 = (postprocess, preprocess) => {
10432
10588
  return self;
10433
10589
  };
10434
10590
  var Proto7 = {
10435
- [TypeId13]: TypeId13,
10591
+ [TypeId14]: TypeId14,
10436
10592
  pipe() {
10437
10593
  return pipeArguments(this, arguments);
10438
10594
  },
@@ -10446,10 +10602,10 @@ var Proto7 = {
10446
10602
  return this.execute(make5(fullMethod)(url, options));
10447
10603
  }]))
10448
10604
  };
10449
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10605
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10450
10606
  const scopedController = scopedRequests.get(request);
10451
10607
  const controller = scopedController ?? new AbortController;
10452
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10608
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10453
10609
  if (isFailure(urlResult)) {
10454
10610
  return fail7(new HttpClientError({
10455
10611
  reason: new InvalidUrlError({
@@ -10583,8 +10739,8 @@ class InterruptibleResponse {
10583
10739
  this.original = original;
10584
10740
  this.controller = controller;
10585
10741
  }
10742
+ [TypeId13] = TypeId13;
10586
10743
  [TypeId12] = TypeId12;
10587
- [TypeId11] = TypeId11;
10588
10744
  applyInterrupt(effect) {
10589
10745
  return suspend3(() => {
10590
10746
  responseRegistry.unregister(this.original);
@@ -10682,7 +10838,7 @@ var detectStreamBodySupport = () => {
10682
10838
  return false;
10683
10839
  }
10684
10840
  };
10685
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10841
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10686
10842
  if (request.headers.upgrade !== undefined) {
10687
10843
  return fail7(new HttpClientError({
10688
10844
  reason: new TransportError({
@@ -10773,10 +10929,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10773
10929
  });
10774
10930
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10775
10931
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10776
- var TypeId14 = "~effect/socket/Socket";
10932
+ var TypeId15 = "~effect/socket/Socket";
10777
10933
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10778
- var make28 = (options) => Socket.of({
10779
- [TypeId14]: TypeId14,
10934
+ var make29 = (options) => Socket.of({
10935
+ [TypeId15]: TypeId15,
10780
10936
  reader: options.reader,
10781
10937
  writer: options.writer
10782
10938
  });
@@ -11099,7 +11255,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
11099
11255
  write,
11100
11256
  writeAll
11101
11257
  });
11102
- return succeed6(make28({
11258
+ return succeed6(make29({
11103
11259
  reader,
11104
11260
  writer
11105
11261
  }));
@@ -14075,7 +14231,7 @@ function getStreamSchemas(schema) {
14075
14231
  }
14076
14232
  var schema = /* @__PURE__ */ declare(isStream);
14077
14233
  function Stream(success, error) {
14078
- return make17(schema.ast, {
14234
+ return make16(schema.ast, {
14079
14235
  [StreamSchemaTypeId]: StreamSchemaTypeId,
14080
14236
  success,
14081
14237
  error
@@ -14083,9 +14239,9 @@ function Stream(success, error) {
14083
14239
  }
14084
14240
 
14085
14241
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
14086
- var TypeId15 = "~effect/rpc/Rpc";
14242
+ var TypeId16 = "~effect/rpc/Rpc";
14087
14243
  var Proto8 = {
14088
- [TypeId15]: TypeId15,
14244
+ [TypeId16]: TypeId16,
14089
14245
  pipe() {
14090
14246
  return pipeArguments(this, arguments);
14091
14247
  },
@@ -14252,7 +14408,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
14252
14408
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
14253
14409
 
14254
14410
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
14255
- var TypeId16 = "~effect/rpc/RpcClientError";
14411
+ var TypeId17 = "~effect/rpc/RpcClientError";
14256
14412
 
14257
14413
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
14258
14414
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -14261,11 +14417,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
14261
14417
  })) {
14262
14418
  }
14263
14419
 
14264
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
14420
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
14265
14421
  _tag: /* @__PURE__ */ tag("RpcClientError"),
14266
14422
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
14267
14423
  })) {
14268
- [TypeId16] = TypeId16;
14424
+ [TypeId17] = TypeId17;
14269
14425
  get message() {
14270
14426
  return `${this.reason._tag}: ${this.reason.message}`;
14271
14427
  }
@@ -14385,7 +14541,7 @@ var RpcGroupProto = {
14385
14541
  });
14386
14542
  },
14387
14543
  annotateRpcs(service, value) {
14388
- return this.annotateRpcsMerge(make15(service, value));
14544
+ return this.annotateRpcsMerge(make14(service, value));
14389
14545
  },
14390
14546
  annotateMerge(context) {
14391
14547
  return makeProto2({
@@ -14413,7 +14569,7 @@ var make7 = (...rpcs) => makeProto2({
14413
14569
  annotations: empty3()
14414
14570
  });
14415
14571
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
14416
- var TypeId17 = "~effect/rpc/RpcMiddleware";
14572
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
14417
14573
  var Service = () => (id, options) => {
14418
14574
  const limit = getStackTraceLimit();
14419
14575
  let creationError;
@@ -14431,7 +14587,7 @@ var Service = () => (id, options) => {
14431
14587
  return creationError?.stack;
14432
14588
  }
14433
14589
  });
14434
- ServiceClass_[TypeId17] = TypeId17;
14590
+ ServiceClass_[TypeId18] = TypeId18;
14435
14591
  ServiceClass_.error = options?.error ?? Never;
14436
14592
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
14437
14593
  return ServiceClass;
@@ -15075,7 +15231,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
15075
15231
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
15076
15232
 
15077
15233
  // apps/cli/src/oauth.ts
15078
- var Scope = "openid profile email offline_access kitman:cli";
15234
+ var Scope2 = "openid profile email offline_access kitman:cli";
15079
15235
  var CallbackPath = "/auth/callback";
15080
15236
 
15081
15237
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -15094,7 +15250,7 @@ function buildAuthorizeUrl(input) {
15094
15250
  url.searchParams.set("response_type", "code");
15095
15251
  url.searchParams.set("client_id", input.clientId);
15096
15252
  url.searchParams.set("redirect_uri", input.redirectUri);
15097
- url.searchParams.set("scope", Scope);
15253
+ url.searchParams.set("scope", Scope2);
15098
15254
  url.searchParams.set("code_challenge", input.codeChallenge);
15099
15255
  url.searchParams.set("code_challenge_method", "S256");
15100
15256
  url.searchParams.set("state", input.state);
@@ -15154,7 +15310,7 @@ function toStoredSession(token, existingRefreshToken) {
15154
15310
  }
15155
15311
  function startLoopbackServer(input) {
15156
15312
  return gen(function* () {
15157
- const code = yield* make16();
15313
+ const code = yield* make15();
15158
15314
  const context2 = yield* context();
15159
15315
  const runSyncExit = runSyncExitWith(context2);
15160
15316
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15702,7 +15858,7 @@ var openConnection = (transport) => gen(function* () {
15702
15858
  let lastId = 0;
15703
15859
  let lost = false;
15704
15860
  const notifications = yield* unbounded2();
15705
- const ended = yield* make16();
15861
+ const ended = yield* make15();
15706
15862
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15707
15863
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15708
15864
  onNone: () => void_3,
@@ -15729,7 +15885,7 @@ var openConnection = (transport) => gen(function* () {
15729
15885
  if (lost)
15730
15886
  return yield* new HerdrCoreConnectionLost2({ method });
15731
15887
  const id = ++lastId;
15732
- const deferred = yield* make16();
15888
+ const deferred = yield* make15();
15733
15889
  pending.set(id, { method, deferred });
15734
15890
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15735
15891
  return yield* _await(deferred);
@@ -15803,7 +15959,7 @@ var herdrCoreOver = (transport) => ({
15803
15959
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15804
15960
  };
15805
15961
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15806
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15962
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15807
15963
  }))
15808
15964
  });
15809
15965
  var spawnedTransport = (env) => gen(function* () {
@@ -15894,7 +16050,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15894
16050
  const spawner = yield* ChildProcessSpawner;
15895
16051
  const [command, ...args] = argv;
15896
16052
  const handle = yield* spawner.spawn(make3(command, args, {
15897
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
16053
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15898
16054
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15899
16055
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15900
16056
  }));