@kitman-sh/cli 0.12.0-rc.5 → 0.12.0-rc.7

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-2s4x5t92.js → chunk-0346hwh6.js} +5 -5
  2. package/dist/{chunk-bv9e34qz.js → chunk-0qz10ek8.js} +1 -1
  3. package/dist/{chunk-dd8hae73.js → chunk-15geyg2d.js} +119 -92
  4. package/dist/{chunk-77k89h98.js → chunk-1t12wvv1.js} +117 -264
  5. package/dist/{chunk-x70r99jg.js → chunk-2e91ymwn.js} +1 -1
  6. package/dist/{chunk-nc1rxeav.js → chunk-4w4spvb1.js} +6 -6
  7. package/dist/{chunk-3530xts6.js → chunk-56knbdt6.js} +9 -9
  8. package/dist/{chunk-cegdw7gw.js → chunk-5j848ckb.js} +2 -2
  9. package/dist/{chunk-bbadvwds.js → chunk-8twjqszj.js} +1 -1
  10. package/dist/{chunk-kvm7j3ed.js → chunk-bheg4ybe.js} +17 -17
  11. package/dist/{chunk-xmq9zpr1.js → chunk-c6rbt85q.js} +1 -1
  12. package/dist/{chunk-6x9e1etb.js → chunk-e4an66v2.js} +3 -3
  13. package/dist/{chunk-s661f8p0.js → chunk-ewhzaqp3.js} +2 -2
  14. package/dist/{chunk-5zzfsv07.js → chunk-gspfm7qh.js} +177 -37
  15. package/dist/{chunk-k9jd2dm0.js → chunk-j5t5nye5.js} +4 -4
  16. package/dist/{chunk-bj73db3f.js → chunk-nzjb36ad.js} +1 -1
  17. package/dist/{chunk-gr816kwr.js → chunk-pd2vz4bm.js} +10 -10
  18. package/dist/{chunk-hrds2xy2.js → chunk-qrm334c6.js} +7 -7
  19. package/dist/{chunk-e838cw9z.js → chunk-r5sw3fe0.js} +11 -11
  20. package/dist/{chunk-txyp31q5.js → chunk-vtfwjhzh.js} +60 -60
  21. package/dist/{chunk-s1pjsak4.js → chunk-wc2kba4z.js} +7 -7
  22. package/dist/{chunk-yafg281p.js → chunk-xcf887a4.js} +18 -18
  23. package/dist/{chunk-26mj3vr6.js → chunk-xe8qf2xy.js} +21 -21
  24. package/dist/{chunk-y2mkzww9.js → chunk-xwya1er0.js} +2 -2
  25. package/dist/{chunk-rjdptgqf.js → chunk-z450wa10.js} +4 -4
  26. package/dist/{chunk-31hk2bjb.js → chunk-znar1th3.js} +4 -4
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make13,
41
+ make14,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,15 +58,13 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make14,
61
+ make15,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get3,
65
+ get4,
66
66
  merge3,
67
67
  Reference,
68
- fromInputUnsafe,
69
- isFinite,
70
68
  millis,
71
69
  seconds,
72
70
  toMillis,
@@ -91,11 +89,9 @@ import {
91
89
  ConsoleRef,
92
90
  succeed3,
93
91
  fail4,
94
- void_2,
95
92
  isSuccess2,
96
- isFailure2,
97
93
  makeUnsafe5,
98
- make15,
94
+ make16,
99
95
  _await,
100
96
  fail5,
101
97
  isDone,
@@ -103,12 +99,8 @@ import {
103
99
  succeed4,
104
100
  doneUnsafe,
105
101
  TracerTimingEnabled,
106
- Scope,
107
- makeUnsafe6,
108
102
  provide,
109
- addFinalizerExit,
110
103
  addFinalizer,
111
- close,
112
104
  succeed5,
113
105
  effect,
114
106
  effectContext,
@@ -160,7 +152,6 @@ import {
160
152
  tapCause,
161
153
  retry,
162
154
  ignore,
163
- ignoreCause,
164
155
  orElseSucceed,
165
156
  timeout,
166
157
  timeoutOrElse,
@@ -172,7 +163,6 @@ import {
172
163
  context,
173
164
  contextWith,
174
165
  provide3,
175
- provideContext2,
176
166
  serviceOption,
177
167
  updateContext,
178
168
  provideService,
@@ -183,7 +173,6 @@ import {
183
173
  addFinalizer2,
184
174
  ensuring2,
185
175
  onError,
186
- onExit,
187
176
  cached,
188
177
  interrupt3,
189
178
  interruptible,
@@ -195,7 +184,6 @@ import {
195
184
  withParentSpan,
196
185
  forkScoped,
197
186
  runFork,
198
- runForkWith,
199
187
  runPromise,
200
188
  runPromiseWith,
201
189
  runSync,
@@ -214,7 +202,7 @@ import {
214
202
  decodeEffect,
215
203
  decodeUnknownOption,
216
204
  decodeOption,
217
- make16,
205
+ make17,
218
206
  isSchema,
219
207
  optionalKey,
220
208
  optional,
@@ -261,16 +249,11 @@ import {
261
249
  decodeJsonStringOption,
262
250
  encodeJsonStringSync,
263
251
  encodePrettyJsonString
264
- } from "./chunk-txyp31q5.js";
252
+ } from "./chunk-vtfwjhzh.js";
265
253
  import {
266
254
  map,
267
255
  makeEquivalence,
268
- toNumber,
269
256
  bytes,
270
- join,
271
- interrupt,
272
- getCurrent,
273
- runIn,
274
257
  BadArgument,
275
258
  systemError,
276
259
  badArgument,
@@ -292,11 +275,13 @@ import {
292
275
  isSink,
293
276
  fromChannel,
294
277
  drain,
278
+ make10,
279
+ get3,
295
280
  isStream,
296
281
  fromChannel2,
297
282
  callback,
298
283
  empty2,
299
- make10,
284
+ make11,
300
285
  suspend,
301
286
  fail2,
302
287
  fromQueue,
@@ -322,16 +307,16 @@ import {
322
307
  mkArrayBuffer,
323
308
  toReadableStreamEffect,
324
309
  FileSystem,
325
- make11,
310
+ make12,
326
311
  FileTypeId,
327
312
  WatchBackend,
328
313
  Path,
329
- make12,
314
+ make13,
330
315
  option,
331
316
  String2,
332
317
  optionalEnv,
333
318
  harnessesUnsupportedInSrt2
334
- } from "./chunk-5zzfsv07.js";
319
+ } from "./chunk-gspfm7qh.js";
335
320
  import {
336
321
  isDateTime,
337
322
  Numeric,
@@ -344,7 +329,7 @@ import {
344
329
  SecretScope,
345
330
  SecretHosts,
346
331
  isSecretReference
347
- } from "./chunk-bv9e34qz.js";
332
+ } from "./chunk-0qz10ek8.js";
348
333
  import {
349
334
  toJsonValue,
350
335
  isOneOf,
@@ -358,7 +343,7 @@ import {
358
343
  isSymbol,
359
344
  isUndefined,
360
345
  kindOf
361
- } from "./chunk-xmq9zpr1.js";
346
+ } from "./chunk-c6rbt85q.js";
362
347
  import {
363
348
  isRedacted,
364
349
  make,
@@ -372,7 +357,8 @@ import {
372
357
  make3,
373
358
  parseFdName,
374
359
  fdName
375
- } from "./chunk-y2mkzww9.js";
360
+ } from "./chunk-xwya1er0.js";
361
+
376
362
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
377
363
  var makeEquivalence3 = Tuple;
378
364
 
@@ -514,7 +500,7 @@ var fromDateUnsafe = (date) => {
514
500
  }
515
501
  return makeUtc(epochMillis);
516
502
  };
517
- var makeUnsafe7 = (input) => {
503
+ var makeUnsafe6 = (input) => {
518
504
  if (isDateTime2(input)) {
519
505
  return input;
520
506
  } else if (input instanceof Date) {
@@ -534,7 +520,7 @@ var makeUnsafe7 = (input) => {
534
520
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
535
521
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
536
522
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
537
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
523
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
538
524
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
539
525
  var nowUnsafe = () => makeUtc(Date.now());
540
526
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -641,7 +627,7 @@ class Metric$ {
641
627
  }
642
628
  hook(context) {
643
629
  const key = this.key(context);
644
- const registry = get3(context, MetricRegistry);
630
+ const registry = get4(context, MetricRegistry);
645
631
  let metadata = registry.get(key);
646
632
  if (isUndefined2(metadata)) {
647
633
  metadata = this.metadata(this.createHooks());
@@ -650,11 +636,11 @@ class Metric$ {
650
636
  return metadata.hooks;
651
637
  }
652
638
  removeUnsafe(context) {
653
- get3(context, MetricRegistry).delete(this.key(context));
639
+ get4(context, MetricRegistry).delete(this.key(context));
654
640
  }
655
641
  registerUnsafe(context, hooks) {
656
642
  const key = this.key(context);
657
- const registry = get3(context, MetricRegistry);
643
+ const registry = get4(context, MetricRegistry);
658
644
  const metadata = this.metadata({
659
645
  get: hooks.get,
660
646
  update: constVoid,
@@ -670,7 +656,7 @@ class Metric$ {
670
656
  };
671
657
  }
672
658
  key(context) {
673
- const extraAttributes = get3(context, CurrentMetricAttributes);
659
+ const extraAttributes = get4(context, CurrentMetricAttributes);
674
660
  if (extraAttributes !== this.#extraAttributes) {
675
661
  this.#extraAttributes = extraAttributes;
676
662
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -913,151 +899,18 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
913
899
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
914
900
  var runMain = runMain2;
915
901
 
916
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
917
- var TypeId3 = "~effect/RcRef";
918
- var stateEmpty = {
919
- _tag: "Empty"
920
- };
921
- var stateClosed = {
922
- _tag: "Closed"
923
- };
924
- var variance = {
925
- _A: identity,
926
- _E: identity
927
- };
928
-
929
- class RcRefImpl {
930
- [TypeId3] = variance;
931
- pipe() {
932
- return pipeArguments(this, arguments);
933
- }
934
- state = stateEmpty;
935
- acquire;
936
- context;
937
- scope;
938
- idleTimeToLive;
939
- constructor(acquire, context, scope, idleTimeToLive) {
940
- this.acquire = acquire;
941
- this.context = context;
942
- this.scope = scope;
943
- this.idleTimeToLive = idleTimeToLive;
944
- }
945
- }
946
- var make17 = (options) => withFiber2((fiber) => {
947
- const context = fiber.context;
948
- const scope = get3(context, Scope);
949
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
950
- return as(addFinalizerExit(scope, () => {
951
- const state = ref.state;
952
- ref.state = stateClosed;
953
- if (state._tag === "Acquired")
954
- return close(state.scope, void_2);
955
- if (state._tag === "Acquiring")
956
- return interrupt(state.fiber);
957
- return void_3;
958
- }), ref);
959
- });
960
- var getState = (self, restore) => {
961
- switch (self.state._tag) {
962
- case "Closed": {
963
- return interrupt3;
964
- }
965
- case "Acquired": {
966
- const state = self.state;
967
- state.refCount++;
968
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
969
- }
970
- case "Acquiring": {
971
- const state = self.state;
972
- state.awaiters++;
973
- return awaitAcquiring(self, state, restore);
974
- }
975
- case "Empty": {
976
- const acquiring = {
977
- _tag: "Acquiring",
978
- fiber: undefined,
979
- awaiters: 1,
980
- acquired: undefined
981
- };
982
- self.state = acquiring;
983
- const scope = makeUnsafe6();
984
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
985
- if (self.state !== acquiring) {
986
- return interrupt3;
987
- }
988
- const state = {
989
- _tag: "Acquired",
990
- value,
991
- scope,
992
- fiber: undefined,
993
- refCount: acquiring.awaiters,
994
- invalidated: false
995
- };
996
- self.state = state;
997
- acquiring.acquired = state;
998
- return succeed6(state);
999
- }), onExit((exit) => {
1000
- if (isSuccess2(exit))
1001
- return void_3;
1002
- if (self.state === acquiring)
1003
- self.state = stateEmpty;
1004
- return close(scope, exit);
1005
- }));
1006
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1007
- return awaitAcquiring(self, acquiring, restore);
1008
- }
1009
- }
1010
- };
1011
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1012
- const acquired = acquiring.acquired;
1013
- if (acquired !== undefined) {
1014
- return isFailure2(exit) ? release(self, acquired) : void_3;
1015
- }
1016
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
1017
- return void_3;
1018
- self.state = stateEmpty;
1019
- return interrupt(acquiring.fiber);
1020
- });
1021
- var get4 = (self_) => {
1022
- const self = self_;
1023
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1024
- };
1025
- var release = (self, state) => {
1026
- state.refCount--;
1027
- if (state.refCount > 0) {
1028
- return void_3;
1029
- }
1030
- const idleTimeToLive = self.idleTimeToLive;
1031
- if (idleTimeToLive === undefined || state.invalidated) {
1032
- if (self.state === state) {
1033
- self.state = stateEmpty;
1034
- }
1035
- return close(state.scope, void_2);
1036
- } else if (!isFinite(idleTimeToLive)) {
1037
- return void_3;
902
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
903
+ var BigInt2 = globalThis.BigInt;
904
+ var toNumber = (b) => {
905
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
906
+ return none();
1038
907
  }
1039
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1040
- if (self.state === state && state.refCount === 0) {
1041
- self.state = stateEmpty;
1042
- return ignoreCause(close(state.scope, void_2), {
1043
- log: "Unhandled",
1044
- message: "Unhandled error in RcRef finalizer"
1045
- });
1046
- }
1047
- return void_3;
1048
- })).pipe(ensuring2(sync2(() => {
1049
- state.fiber = undefined;
1050
- })), runForkWith(self.context), runIn(self.scope));
1051
- return void_3;
908
+ return some(Number(b));
1052
909
  };
1053
910
 
1054
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1055
- var make18 = make17;
1056
- var get5 = get4;
1057
-
1058
911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1059
- var makeUnsafe = makeUnsafe7;
1060
- var make19 = make4;
912
+ var makeUnsafe = makeUnsafe6;
913
+ var make18 = make4;
1061
914
  var now2 = now;
1062
915
  var nowUnsafe2 = nowUnsafe;
1063
916
  var toDateUtc2 = toDateUtc;
@@ -1376,7 +1229,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1376
1229
  windowsHide: true
1377
1230
  }, onExit);
1378
1231
  };
1379
- var make20 = /* @__PURE__ */ gen(function* () {
1232
+ var make19 = /* @__PURE__ */ gen(function* () {
1380
1233
  const fs = yield* FileSystem;
1381
1234
  const path = yield* Path;
1382
1235
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1905,7 +1758,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1905
1758
  });
1906
1759
  return make2(spawnCommand);
1907
1760
  });
1908
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1761
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1909
1762
  var flattenCommand = (command) => {
1910
1763
  const commands = [];
1911
1764
  const pipeOptions = [];
@@ -2389,7 +2242,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2389
2242
  resume(fail7(handleBadArgument("writeFile")(err)));
2390
2243
  }
2391
2244
  });
2392
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2245
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2393
2246
  access: access2,
2394
2247
  chmod: chmod2,
2395
2248
  chown: chown2,
@@ -2449,15 +2302,15 @@ var fileUrlOps = (windows) => ({
2449
2302
  })
2450
2303
  })
2451
2304
  });
2452
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2305
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2453
2306
  ...NodePath.posix,
2454
2307
  .../* @__PURE__ */ fileUrlOps(false)
2455
2308
  }));
2456
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2309
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2457
2310
  ...NodePath.win32,
2458
2311
  .../* @__PURE__ */ fileUrlOps(true)
2459
2312
  }));
2460
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2313
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2461
2314
  ...NodePath,
2462
2315
  .../* @__PURE__ */ fileUrlOps(undefined)
2463
2316
  }));
@@ -2466,10 +2319,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2466
2319
  var layer2 = layer7;
2467
2320
 
2468
2321
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2469
- var TypeId4 = "~effect/Stdio";
2470
- var Stdio = /* @__PURE__ */ Service2(TypeId4);
2471
- var make21 = (options) => ({
2472
- [TypeId4]: TypeId4,
2322
+ var TypeId3 = "~effect/Stdio";
2323
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2324
+ var make20 = (options) => ({
2325
+ [TypeId3]: TypeId3,
2473
2326
  stdinIsTerminal: succeed6(false),
2474
2327
  stdoutIsTerminal: succeed6(false),
2475
2328
  stderrIsTerminal: succeed6(false),
@@ -2477,7 +2330,7 @@ var make21 = (options) => ({
2477
2330
  });
2478
2331
 
2479
2332
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2480
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2333
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2481
2334
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2482
2335
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2483
2336
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2677,7 +2530,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2677
2530
  const uuid = bytes(randomBytes(16));
2678
2531
  return format === "bytes" ? uuid : stringify(uuid);
2679
2532
  };
2680
- var make22 = (randomBytes) => {
2533
+ var make21 = (randomBytes) => {
2681
2534
  const randomBytesChecked = (size) => {
2682
2535
  checkSize(size);
2683
2536
  return randomBytes(size);
@@ -2711,13 +2564,13 @@ var fillRandom = (crypto2, size) => {
2711
2564
  }
2712
2565
  return bytes;
2713
2566
  };
2714
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2567
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2715
2568
 
2716
2569
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2717
- var TypeId5 = "~effect/http/Cookies";
2570
+ var TypeId4 = "~effect/http/Cookies";
2718
2571
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2719
2572
  var Proto2 = {
2720
- [TypeId5]: TypeId5,
2573
+ [TypeId4]: TypeId4,
2721
2574
  ...BaseProto,
2722
2575
  toJSON() {
2723
2576
  return {
@@ -2896,14 +2749,14 @@ var tryDecodeURIComponent = (str) => {
2896
2749
  };
2897
2750
 
2898
2751
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2899
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2752
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2900
2753
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2901
- [TypeId6]: {
2902
- value: TypeId6
2754
+ [TypeId5]: {
2755
+ value: TypeId5
2903
2756
  },
2904
2757
  [symbolRedactable]: {
2905
2758
  value(context) {
2906
- return redact2(this, get3(context, CurrentRedactedNames));
2759
+ return redact2(this, get4(context, CurrentRedactedNames));
2907
2760
  }
2908
2761
  },
2909
2762
  toJSON: {
@@ -2928,7 +2781,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2928
2781
  value: BaseProto[NodeInspectSymbol]
2929
2782
  }
2930
2783
  });
2931
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2784
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2932
2785
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2933
2786
  var empty = /* @__PURE__ */ Object.create(Proto3);
2934
2787
  var fromInput = (input) => {
@@ -2953,21 +2806,21 @@ var fromInput = (input) => {
2953
2806
  };
2954
2807
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2955
2808
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2956
- const out = make23(self);
2809
+ const out = make22(self);
2957
2810
  out[key.toLowerCase()] = value;
2958
2811
  return out;
2959
2812
  });
2960
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2813
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2961
2814
  ...self,
2962
2815
  ...fromInput(headers)
2963
2816
  }));
2964
2817
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2965
- const out = make23(self);
2818
+ const out = make22(self);
2966
2819
  Object.assign(out, headers);
2967
2820
  return out;
2968
2821
  });
2969
2822
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2970
- const out = make23(self);
2823
+ const out = make22(self);
2971
2824
  delete out[key.toLowerCase()];
2972
2825
  return out;
2973
2826
  });
@@ -3024,18 +2877,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3024
2877
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3025
2878
 
3026
2879
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
3027
- var TypeId7 = "~effect/http/UrlParams";
3028
- var isUrlParams = (u) => hasProperty(u, TypeId7);
2880
+ var TypeId6 = "~effect/http/UrlParams";
2881
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3029
2882
  var Proto4 = {
3030
2883
  ...PipeInspectableProto,
3031
- [TypeId7]: TypeId7,
2884
+ [TypeId6]: TypeId6,
3032
2885
  [Symbol.iterator]() {
3033
2886
  return this.params[Symbol.iterator]();
3034
2887
  },
3035
2888
  [symbolRedactable](context) {
3036
2889
  return {
3037
2890
  _id: "UrlParams",
3038
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2891
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3039
2892
  };
3040
2893
  },
3041
2894
  toJSON() {
@@ -3048,7 +2901,7 @@ var Proto4 = {
3048
2901
  return array(this.params.flat());
3049
2902
  }
3050
2903
  };
3051
- var make24 = (params) => {
2904
+ var make23 = (params) => {
3052
2905
  const self = Object.create(Proto4);
3053
2906
  self.params = params;
3054
2907
  return self;
@@ -3067,7 +2920,7 @@ var fromInput2 = (input) => {
3067
2920
  out.push(parsed[i]);
3068
2921
  }
3069
2922
  }
3070
- return make24(out);
2923
+ return make23(out);
3071
2924
  };
3072
2925
  var fromInputNested = (input) => {
3073
2926
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3091,9 +2944,9 @@ var fromInputNested = (input) => {
3091
2944
  return out;
3092
2945
  };
3093
2946
  var coerce = (value) => isRedacted(value) ? value : String(value);
3094
- var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2947
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3095
2948
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3096
- var empty4 = /* @__PURE__ */ make24([]);
2949
+ var empty4 = /* @__PURE__ */ make23([]);
3097
2950
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3098
2951
  const params = fromInput2(input).params.slice();
3099
2952
  const keys = new Set;
@@ -3105,7 +2958,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3105
2958
  continue;
3106
2959
  params.push(self.params[i]);
3107
2960
  }
3108
- return make24(params);
2961
+ return make23(params);
3109
2962
  });
3110
2963
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
3111
2964
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3161,13 +3014,13 @@ var decodeQueryKey = (key) => {
3161
3014
  return key;
3162
3015
  }
3163
3016
  };
3164
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3017
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3165
3018
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3166
3019
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3167
3020
  });
3168
3021
 
3169
3022
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3170
- var TypeId8 = "~effect/Terminal";
3023
+ var TypeId7 = "~effect/Terminal";
3171
3024
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3172
3025
 
3173
3026
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3176,14 +3029,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3176
3029
  [QuitErrorTypeId] = QuitErrorTypeId;
3177
3030
  }
3178
3031
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3179
- var make25 = (impl) => Terminal.of({
3032
+ var make24 = (impl) => Terminal.of({
3180
3033
  ...impl,
3181
- [TypeId8]: TypeId8
3034
+ [TypeId7]: TypeId7
3182
3035
  });
3183
3036
 
3184
3037
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3185
3038
  import * as readline from "readline";
3186
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3039
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3187
3040
  const stdin = process.stdin;
3188
3041
  const stdout = process.stdout;
3189
3042
  const lines = yield* make9();
@@ -3197,7 +3050,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3197
3050
  };
3198
3051
  stdin.once("end", onStdinEnd);
3199
3052
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3200
- const rlRef = yield* make18({
3053
+ const rlRef = yield* make10({
3201
3054
  acquire: acquireRelease(sync2(() => {
3202
3055
  const rl = readline.createInterface({
3203
3056
  input: stdin,
@@ -3236,7 +3089,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3236
3089
  if (stdin.isTTY)
3237
3090
  stdin.setRawMode(enabled);
3238
3091
  });
3239
- const rawModeRef = yield* make18({
3092
+ const rawModeRef = yield* make10({
3240
3093
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3241
3094
  idleTimeToLive: "10 millis"
3242
3095
  });
@@ -3287,14 +3140,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3287
3140
  if (inputEnded) {
3288
3141
  handleEnd();
3289
3142
  } else {
3290
- yield* get5(rlRef);
3291
- yield* get5(rawModeRef);
3143
+ yield* get3(rlRef);
3144
+ yield* get3(rawModeRef);
3292
3145
  stdin.once("end", handleEnd);
3293
3146
  }
3294
3147
  return queue;
3295
3148
  });
3296
3149
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3297
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3150
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3298
3151
  onSome: succeed6
3299
3152
  })), mapError2(() => new QuitError({}))));
3300
3153
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3305,7 +3158,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3305
3158
  cause: err
3306
3159
  }))));
3307
3160
  }));
3308
- return make25({
3161
+ return make24({
3309
3162
  columns,
3310
3163
  rows,
3311
3164
  size,
@@ -3314,7 +3167,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3314
3167
  display
3315
3168
  });
3316
3169
  });
3317
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3170
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3318
3171
  function defaultShouldQuit(input) {
3319
3172
  const key = input.key;
3320
3173
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3341,7 +3194,7 @@ function toDate(input) {
3341
3194
  return toDateUtc2(makeUnsafe(input));
3342
3195
  }
3343
3196
  function parseDate(input) {
3344
- return getOrUndefined(map4(make19(input), toDateUtc2));
3197
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3345
3198
  }
3346
3199
  function toIso(input) {
3347
3200
  return formatIso(makeUnsafe(input));
@@ -9763,11 +9616,11 @@ var TranscriptSearchResult = Struct({
9763
9616
  total: Int
9764
9617
  });
9765
9618
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9766
- var TypeId9 = "~effect/http/HttpBody";
9619
+ var TypeId8 = "~effect/http/HttpBody";
9767
9620
  class Proto5 {
9768
- [TypeId9];
9621
+ [TypeId8];
9769
9622
  constructor() {
9770
- this[TypeId9] = TypeId9;
9623
+ this[TypeId8] = TypeId8;
9771
9624
  }
9772
9625
  [NodeInspectSymbol]() {
9773
9626
  return this.toJSON();
@@ -9858,7 +9711,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9858
9711
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9859
9712
 
9860
9713
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9861
- var TypeId10 = "~effect/http/HttpClientError";
9714
+ var TypeId9 = "~effect/http/HttpClientError";
9862
9715
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9863
9716
  constructor(props) {
9864
9717
  if ("cause" in props.reason) {
@@ -9870,7 +9723,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9870
9723
  super(props);
9871
9724
  }
9872
9725
  }
9873
- [TypeId10] = TypeId10;
9726
+ [TypeId9] = TypeId9;
9874
9727
  get request() {
9875
9728
  return this.reason.request;
9876
9729
  }
@@ -9974,7 +9827,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9974
9827
  }
9975
9828
  }
9976
9829
 
9977
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9830
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9978
9831
  _tag: /* @__PURE__ */ tag("HttpError"),
9979
9832
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9980
9833
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -10007,7 +9860,7 @@ var updateContentLength = (headers, body) => {
10007
9860
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
10008
9861
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
10009
9862
  }
10010
- var make27 = (url, params, hash) => try_({
9863
+ var make26 = (url, params, hash) => try_({
10011
9864
  try: () => {
10012
9865
  const urlInstance = new URL(url, baseUrl());
10013
9866
  for (let i = 0;i < params.params.length; i++) {
@@ -10038,10 +9891,10 @@ var baseUrl = () => {
10038
9891
  };
10039
9892
 
10040
9893
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
10041
- var TypeId11 = "~effect/http/HttpClientRequest";
10042
- var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9894
+ var TypeId10 = "~effect/http/HttpClientRequest";
9895
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
10043
9896
  var Proto6 = {
10044
- [TypeId11]: TypeId11,
9897
+ [TypeId10]: TypeId10,
10045
9898
  ...BaseProto,
10046
9899
  toJSON() {
10047
9900
  return {
@@ -10130,7 +9983,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
10130
9983
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
10131
9984
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
10132
9985
  function toUrl(self) {
10133
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9986
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
10134
9987
  if (isSuccess(r)) {
10135
9988
  return some(r.success);
10136
9989
  }
@@ -10138,7 +9991,7 @@ function toUrl(self) {
10138
9991
  }
10139
9992
 
10140
9993
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
10141
- var TypeId12 = "~effect/http/HttpIncomingMessage";
9994
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
10142
9995
  var schemaBodyJson = (schema, options) => {
10143
9996
  const decode = decodeEffect(toCodecJson(schema));
10144
9997
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -10157,7 +10010,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
10157
10010
  var getWebSource = (self) => self[WebSourceSymbol]?.();
10158
10011
 
10159
10012
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
10160
- var TypeId13 = "~effect/http/HttpClientResponse";
10013
+ var TypeId12 = "~effect/http/HttpClientResponse";
10161
10014
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
10162
10015
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
10163
10016
  reason: new StatusCodeError({
@@ -10168,16 +10021,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
10168
10021
  }));
10169
10022
 
10170
10023
  class WebHttpClientResponse extends Class {
10024
+ [TypeId11];
10171
10025
  [TypeId12];
10172
- [TypeId13];
10173
10026
  request;
10174
10027
  source;
10175
10028
  constructor(request, source) {
10176
10029
  super();
10177
10030
  this.request = request;
10178
10031
  this.source = source;
10032
+ this[TypeId11] = TypeId11;
10179
10033
  this[TypeId12] = TypeId12;
10180
- this[TypeId13] = TypeId13;
10181
10034
  }
10182
10035
  toJSON() {
10183
10036
  return inspect(this, {
@@ -10349,7 +10202,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10349
10202
  };
10350
10203
 
10351
10204
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10352
- var TypeId14 = "~effect/http/HttpClient";
10205
+ var TypeId13 = "~effect/http/HttpClient";
10353
10206
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10354
10207
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10355
10208
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10366,7 +10219,7 @@ var makeWith2 = (postprocess, preprocess) => {
10366
10219
  return self;
10367
10220
  };
10368
10221
  var Proto7 = {
10369
- [TypeId14]: TypeId14,
10222
+ [TypeId13]: TypeId13,
10370
10223
  pipe() {
10371
10224
  return pipeArguments(this, arguments);
10372
10225
  },
@@ -10380,10 +10233,10 @@ var Proto7 = {
10380
10233
  return this.execute(make5(fullMethod)(url, options));
10381
10234
  }]))
10382
10235
  };
10383
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10236
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10384
10237
  const scopedController = scopedRequests.get(request);
10385
10238
  const controller = scopedController ?? new AbortController;
10386
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10239
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10387
10240
  if (isFailure(urlResult)) {
10388
10241
  return fail7(new HttpClientError({
10389
10242
  reason: new InvalidUrlError({
@@ -10517,8 +10370,8 @@ class InterruptibleResponse {
10517
10370
  this.original = original;
10518
10371
  this.controller = controller;
10519
10372
  }
10520
- [TypeId13] = TypeId13;
10521
10373
  [TypeId12] = TypeId12;
10374
+ [TypeId11] = TypeId11;
10522
10375
  applyInterrupt(effect) {
10523
10376
  return suspend3(() => {
10524
10377
  responseRegistry.unregister(this.original);
@@ -10616,7 +10469,7 @@ var detectStreamBodySupport = () => {
10616
10469
  return false;
10617
10470
  }
10618
10471
  };
10619
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10472
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10620
10473
  if (request.headers.upgrade !== undefined) {
10621
10474
  return fail7(new HttpClientError({
10622
10475
  reason: new TransportError({
@@ -10707,10 +10560,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10707
10560
  });
10708
10561
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10709
10562
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10710
- var TypeId15 = "~effect/socket/Socket";
10563
+ var TypeId14 = "~effect/socket/Socket";
10711
10564
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10712
- var make29 = (options) => Socket.of({
10713
- [TypeId15]: TypeId15,
10565
+ var make28 = (options) => Socket.of({
10566
+ [TypeId14]: TypeId14,
10714
10567
  reader: options.reader,
10715
10568
  writer: options.writer
10716
10569
  });
@@ -11033,7 +10886,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
11033
10886
  write,
11034
10887
  writeAll
11035
10888
  });
11036
- return succeed6(make29({
10889
+ return succeed6(make28({
11037
10890
  reader,
11038
10891
  writer
11039
10892
  }));
@@ -13966,7 +13819,7 @@ function getStreamSchemas(schema) {
13966
13819
  }
13967
13820
  var schema = /* @__PURE__ */ declare(isStream);
13968
13821
  function Stream(success, error) {
13969
- return make16(schema.ast, {
13822
+ return make17(schema.ast, {
13970
13823
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13971
13824
  success,
13972
13825
  error
@@ -13974,9 +13827,9 @@ function Stream(success, error) {
13974
13827
  }
13975
13828
 
13976
13829
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13977
- var TypeId16 = "~effect/rpc/Rpc";
13830
+ var TypeId15 = "~effect/rpc/Rpc";
13978
13831
  var Proto8 = {
13979
- [TypeId16]: TypeId16,
13832
+ [TypeId15]: TypeId15,
13980
13833
  pipe() {
13981
13834
  return pipeArguments(this, arguments);
13982
13835
  },
@@ -14143,7 +13996,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
14143
13996
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
14144
13997
 
14145
13998
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
14146
- var TypeId17 = "~effect/rpc/RpcClientError";
13999
+ var TypeId16 = "~effect/rpc/RpcClientError";
14147
14000
 
14148
14001
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
14149
14002
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -14152,11 +14005,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
14152
14005
  })) {
14153
14006
  }
14154
14007
 
14155
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
14008
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
14156
14009
  _tag: /* @__PURE__ */ tag("RpcClientError"),
14157
14010
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
14158
14011
  })) {
14159
- [TypeId17] = TypeId17;
14012
+ [TypeId16] = TypeId16;
14160
14013
  get message() {
14161
14014
  return `${this.reason._tag}: ${this.reason.message}`;
14162
14015
  }
@@ -14276,7 +14129,7 @@ var RpcGroupProto = {
14276
14129
  });
14277
14130
  },
14278
14131
  annotateRpcs(service, value) {
14279
- return this.annotateRpcsMerge(make14(service, value));
14132
+ return this.annotateRpcsMerge(make15(service, value));
14280
14133
  },
14281
14134
  annotateMerge(context) {
14282
14135
  return makeProto2({
@@ -14304,7 +14157,7 @@ var make7 = (...rpcs) => makeProto2({
14304
14157
  annotations: empty3()
14305
14158
  });
14306
14159
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
14307
- var TypeId18 = "~effect/rpc/RpcMiddleware";
14160
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
14308
14161
  var Service = () => (id, options) => {
14309
14162
  const limit = getStackTraceLimit();
14310
14163
  let creationError;
@@ -14322,7 +14175,7 @@ var Service = () => (id, options) => {
14322
14175
  return creationError?.stack;
14323
14176
  }
14324
14177
  });
14325
- ServiceClass_[TypeId18] = TypeId18;
14178
+ ServiceClass_[TypeId17] = TypeId17;
14326
14179
  ServiceClass_.error = options?.error ?? Never;
14327
14180
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
14328
14181
  return ServiceClass;
@@ -14958,7 +14811,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14958
14811
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14959
14812
 
14960
14813
  // apps/cli/src/oauth.ts
14961
- var Scope2 = "openid profile email offline_access kitman:cli";
14814
+ var Scope = "openid profile email offline_access kitman:cli";
14962
14815
  var CallbackPath = "/auth/callback";
14963
14816
 
14964
14817
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14977,7 +14830,7 @@ function buildAuthorizeUrl(input) {
14977
14830
  url.searchParams.set("response_type", "code");
14978
14831
  url.searchParams.set("client_id", input.clientId);
14979
14832
  url.searchParams.set("redirect_uri", input.redirectUri);
14980
- url.searchParams.set("scope", Scope2);
14833
+ url.searchParams.set("scope", Scope);
14981
14834
  url.searchParams.set("code_challenge", input.codeChallenge);
14982
14835
  url.searchParams.set("code_challenge_method", "S256");
14983
14836
  url.searchParams.set("state", input.state);
@@ -15037,7 +14890,7 @@ function toStoredSession(token, existingRefreshToken) {
15037
14890
  }
15038
14891
  function startLoopbackServer(input) {
15039
14892
  return gen(function* () {
15040
- const code = yield* make15();
14893
+ const code = yield* make16();
15041
14894
  const context2 = yield* context();
15042
14895
  const runSyncExit = runSyncExitWith(context2);
15043
14896
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15577,7 +15430,7 @@ var openConnection = (transport) => gen(function* () {
15577
15430
  let lastId = 0;
15578
15431
  let lost = false;
15579
15432
  const notifications = yield* unbounded2();
15580
- const ended = yield* make15();
15433
+ const ended = yield* make16();
15581
15434
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15582
15435
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15583
15436
  onNone: () => void_3,
@@ -15604,7 +15457,7 @@ var openConnection = (transport) => gen(function* () {
15604
15457
  if (lost)
15605
15458
  return yield* new HerdrCoreConnectionLost2({ method });
15606
15459
  const id = ++lastId;
15607
- const deferred = yield* make15();
15460
+ const deferred = yield* make16();
15608
15461
  pending.set(id, { method, deferred });
15609
15462
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15610
15463
  return yield* _await(deferred);
@@ -15678,7 +15531,7 @@ var herdrCoreOver = (transport) => ({
15678
15531
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15679
15532
  };
15680
15533
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15681
- return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15534
+ return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15682
15535
  }))
15683
15536
  });
15684
15537
  var spawnedTransport = (env) => gen(function* () {
@@ -15769,7 +15622,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15769
15622
  const spawner = yield* ChildProcessSpawner;
15770
15623
  const [command, ...args] = argv;
15771
15624
  const handle = yield* spawner.spawn(make3(command, args, {
15772
- stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15625
+ stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15773
15626
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15774
15627
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15775
15628
  }));