@kitman-sh/cli 0.10.71 → 0.10.72

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 (29) hide show
  1. package/dist/{chunk-9e452fhe.js → chunk-030xsst1.js} +266 -111
  2. package/dist/{chunk-hr9vd6dj.js → chunk-290se4bt.js} +3 -3
  3. package/dist/{chunk-h89p59p6.js → chunk-2es1djpn.js} +8 -8
  4. package/dist/{chunk-y7p921rs.js → chunk-61by5f18.js} +17 -17
  5. package/dist/{chunk-dk0ftqwg.js → chunk-7672g0fj.js} +28 -177
  6. package/dist/{chunk-g4xsa9ks.js → chunk-7g4e5fsj.js} +177 -52
  7. package/dist/{chunk-csbf77zs.js → chunk-7sm45hhc.js} +6 -6
  8. package/dist/{chunk-x1zqfxve.js → chunk-7wenq6ew.js} +4 -4
  9. package/dist/{chunk-q3c7vmby.js → chunk-b63rssdn.js} +1 -1
  10. package/dist/{chunk-5n121vsj.js → chunk-cefprsjj.js} +4 -4
  11. package/dist/{chunk-cmatdpfy.js → chunk-cj3ef3pv.js} +6 -6
  12. package/dist/{chunk-zwec6t49.js → chunk-d2fxfv0j.js} +7 -7
  13. package/dist/{chunk-tkmp48ha.js → chunk-g8b2z9jn.js} +4 -4
  14. package/dist/chunk-gngg8j56.js +202 -0
  15. package/dist/{chunk-4wqjxfbv.js → chunk-hxm3bvpn.js} +5 -5
  16. package/dist/{chunk-v01c0k6j.js → chunk-nhd7dh79.js} +1 -1
  17. package/dist/{chunk-gxnpdpjz.js → chunk-pnsqttt3.js} +7 -7
  18. package/dist/{chunk-1rry0tsn.js → chunk-pyt2zrwc.js} +2 -2
  19. package/dist/{chunk-rrnee9mk.js → chunk-se79jbha.js} +1 -1
  20. package/dist/{chunk-60333x3q.js → chunk-tv94e132.js} +5 -5
  21. package/dist/{chunk-vs10kwdr.js → chunk-vd8f9brg.js} +10 -10
  22. package/dist/{chunk-d3ksv8y1.js → chunk-vrt08dk9.js} +60 -60
  23. package/dist/{chunk-rm83dbpv.js → chunk-w6qjh6q5.js} +2 -2
  24. package/dist/chunk-wssfts9s.js +16 -0
  25. package/dist/egress-proxy.ts +51 -4
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
  28. package/dist/chunk-1w81w56v.js +0 -109
  29. package/dist/chunk-wtpwkjws.js +0 -100
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make14,
41
+ make13,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,13 +58,15 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make15,
61
+ make14,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get4,
65
+ get3,
66
66
  merge3,
67
67
  Reference,
68
+ fromInputUnsafe,
69
+ isFinite,
68
70
  millis,
69
71
  seconds,
70
72
  toMillis,
@@ -89,9 +91,11 @@ import {
89
91
  ConsoleRef,
90
92
  succeed3,
91
93
  fail4,
94
+ void_2,
92
95
  isSuccess2,
96
+ isFailure2,
93
97
  makeUnsafe5,
94
- make16,
98
+ make15,
95
99
  _await,
96
100
  fail5,
97
101
  isDone,
@@ -99,8 +103,12 @@ import {
99
103
  succeed4,
100
104
  doneUnsafe,
101
105
  TracerTimingEnabled,
106
+ Scope,
107
+ makeUnsafe6,
102
108
  provide,
109
+ addFinalizerExit,
103
110
  addFinalizer,
111
+ close,
104
112
  succeed5,
105
113
  effect,
106
114
  effectContext,
@@ -152,6 +160,7 @@ import {
152
160
  tapCause,
153
161
  retry,
154
162
  ignore,
163
+ ignoreCause,
155
164
  orElseSucceed,
156
165
  timeout,
157
166
  timeoutOrElse,
@@ -163,6 +172,7 @@ import {
163
172
  context,
164
173
  contextWith,
165
174
  provide3,
175
+ provideContext2,
166
176
  serviceOption,
167
177
  updateContext,
168
178
  provideService,
@@ -173,6 +183,7 @@ import {
173
183
  addFinalizer2,
174
184
  ensuring2,
175
185
  onError,
186
+ onExit,
176
187
  cached,
177
188
  interrupt3,
178
189
  interruptible,
@@ -184,6 +195,7 @@ import {
184
195
  withParentSpan,
185
196
  forkScoped,
186
197
  runFork,
198
+ runForkWith,
187
199
  runPromise,
188
200
  runPromiseWith,
189
201
  runSync,
@@ -202,7 +214,7 @@ import {
202
214
  decodeEffect,
203
215
  decodeUnknownOption,
204
216
  decodeOption,
205
- make17,
217
+ make16,
206
218
  isSchema,
207
219
  optionalKey,
208
220
  optional,
@@ -248,11 +260,15 @@ import {
248
260
  decodeJsonStringOption,
249
261
  encodeJsonStringSync,
250
262
  encodePrettyJsonString
251
- } from "./chunk-d3ksv8y1.js";
263
+ } from "./chunk-vrt08dk9.js";
252
264
  import {
253
265
  map,
254
266
  makeEquivalence,
255
267
  bytes,
268
+ join,
269
+ interrupt,
270
+ getCurrent,
271
+ runIn,
256
272
  BadArgument,
257
273
  systemError,
258
274
  badArgument,
@@ -274,13 +290,11 @@ import {
274
290
  isSink,
275
291
  fromChannel,
276
292
  drain,
277
- make10,
278
- get3,
279
293
  isStream,
280
294
  fromChannel2,
281
295
  callback,
282
296
  empty2,
283
- make11,
297
+ make10,
284
298
  suspend,
285
299
  fail2,
286
300
  fromQueue,
@@ -306,16 +320,16 @@ import {
306
320
  mkArrayBuffer,
307
321
  toReadableStreamEffect,
308
322
  FileSystem,
309
- make12,
323
+ make11,
310
324
  FileTypeId,
311
325
  WatchBackend,
312
326
  Path,
313
- make13,
327
+ make12,
314
328
  option,
315
329
  String2,
316
330
  optionalEnv,
317
331
  harnessesUnsupportedInSrt2
318
- } from "./chunk-dk0ftqwg.js";
332
+ } from "./chunk-7672g0fj.js";
319
333
  import {
320
334
  isDateTime,
321
335
  Numeric,
@@ -327,7 +341,7 @@ import {
327
341
  SecretName,
328
342
  SecretScope,
329
343
  SecretHosts
330
- } from "./chunk-rrnee9mk.js";
344
+ } from "./chunk-se79jbha.js";
331
345
  import {
332
346
  toJsonValue,
333
347
  isOneOf,
@@ -341,7 +355,7 @@ import {
341
355
  isSymbol,
342
356
  isUndefined,
343
357
  kindOf
344
- } from "./chunk-v01c0k6j.js";
358
+ } from "./chunk-nhd7dh79.js";
345
359
  import {
346
360
  isRedacted,
347
361
  make,
@@ -355,8 +369,7 @@ import {
355
369
  make3,
356
370
  parseFdName,
357
371
  fdName
358
- } from "./chunk-1rry0tsn.js";
359
-
372
+ } from "./chunk-pyt2zrwc.js";
360
373
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
361
374
  var makeEquivalence3 = Tuple;
362
375
 
@@ -498,7 +511,7 @@ var fromDateUnsafe = (date) => {
498
511
  }
499
512
  return makeUtc(epochMillis);
500
513
  };
501
- var makeUnsafe6 = (input) => {
514
+ var makeUnsafe7 = (input) => {
502
515
  if (isDateTime2(input)) {
503
516
  return input;
504
517
  } else if (input instanceof Date) {
@@ -518,7 +531,7 @@ var makeUnsafe6 = (input) => {
518
531
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
519
532
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
520
533
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
521
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
534
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
522
535
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
523
536
  var nowUnsafe = () => makeUtc(Date.now());
524
537
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -625,7 +638,7 @@ class Metric$ {
625
638
  }
626
639
  hook(context) {
627
640
  const key = this.key(context);
628
- const registry = get4(context, MetricRegistry);
641
+ const registry = get3(context, MetricRegistry);
629
642
  let metadata = registry.get(key);
630
643
  if (isUndefined2(metadata)) {
631
644
  metadata = this.metadata(this.createHooks());
@@ -634,11 +647,11 @@ class Metric$ {
634
647
  return metadata.hooks;
635
648
  }
636
649
  removeUnsafe(context) {
637
- get4(context, MetricRegistry).delete(this.key(context));
650
+ get3(context, MetricRegistry).delete(this.key(context));
638
651
  }
639
652
  registerUnsafe(context, hooks) {
640
653
  const key = this.key(context);
641
- const registry = get4(context, MetricRegistry);
654
+ const registry = get3(context, MetricRegistry);
642
655
  const metadata = this.metadata({
643
656
  get: hooks.get,
644
657
  update: constVoid,
@@ -654,7 +667,7 @@ class Metric$ {
654
667
  };
655
668
  }
656
669
  key(context) {
657
- const extraAttributes = get4(context, CurrentMetricAttributes);
670
+ const extraAttributes = get3(context, CurrentMetricAttributes);
658
671
  if (extraAttributes !== this.#extraAttributes) {
659
672
  this.#extraAttributes = extraAttributes;
660
673
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -906,9 +919,151 @@ var toNumber = (b) => {
906
919
  return some(Number(b));
907
920
  };
908
921
 
922
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
923
+ var TypeId3 = "~effect/RcRef";
924
+ var stateEmpty = {
925
+ _tag: "Empty"
926
+ };
927
+ var stateClosed = {
928
+ _tag: "Closed"
929
+ };
930
+ var variance = {
931
+ _A: identity,
932
+ _E: identity
933
+ };
934
+
935
+ class RcRefImpl {
936
+ [TypeId3] = variance;
937
+ pipe() {
938
+ return pipeArguments(this, arguments);
939
+ }
940
+ state = stateEmpty;
941
+ acquire;
942
+ context;
943
+ scope;
944
+ idleTimeToLive;
945
+ constructor(acquire, context, scope, idleTimeToLive) {
946
+ this.acquire = acquire;
947
+ this.context = context;
948
+ this.scope = scope;
949
+ this.idleTimeToLive = idleTimeToLive;
950
+ }
951
+ }
952
+ var make17 = (options) => withFiber2((fiber) => {
953
+ const context = fiber.context;
954
+ const scope = get3(context, Scope);
955
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
956
+ return as(addFinalizerExit(scope, () => {
957
+ const state = ref.state;
958
+ ref.state = stateClosed;
959
+ if (state._tag === "Acquired")
960
+ return close(state.scope, void_2);
961
+ if (state._tag === "Acquiring")
962
+ return interrupt(state.fiber);
963
+ return void_3;
964
+ }), ref);
965
+ });
966
+ var getState = (self, restore) => {
967
+ switch (self.state._tag) {
968
+ case "Closed": {
969
+ return interrupt3;
970
+ }
971
+ case "Acquired": {
972
+ const state = self.state;
973
+ state.refCount++;
974
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
975
+ }
976
+ case "Acquiring": {
977
+ const state = self.state;
978
+ state.awaiters++;
979
+ return awaitAcquiring(self, state, restore);
980
+ }
981
+ case "Empty": {
982
+ const acquiring = {
983
+ _tag: "Acquiring",
984
+ fiber: undefined,
985
+ awaiters: 1,
986
+ acquired: undefined
987
+ };
988
+ self.state = acquiring;
989
+ const scope = makeUnsafe6();
990
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
991
+ if (self.state !== acquiring) {
992
+ return interrupt3;
993
+ }
994
+ const state = {
995
+ _tag: "Acquired",
996
+ value,
997
+ scope,
998
+ fiber: undefined,
999
+ refCount: acquiring.awaiters,
1000
+ invalidated: false
1001
+ };
1002
+ self.state = state;
1003
+ acquiring.acquired = state;
1004
+ return succeed6(state);
1005
+ }), onExit((exit) => {
1006
+ if (isSuccess2(exit))
1007
+ return void_3;
1008
+ if (self.state === acquiring)
1009
+ self.state = stateEmpty;
1010
+ return close(scope, exit);
1011
+ }));
1012
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1013
+ return awaitAcquiring(self, acquiring, restore);
1014
+ }
1015
+ }
1016
+ };
1017
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1018
+ const acquired = acquiring.acquired;
1019
+ if (acquired !== undefined) {
1020
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1021
+ }
1022
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1023
+ return void_3;
1024
+ self.state = stateEmpty;
1025
+ return interrupt(acquiring.fiber);
1026
+ });
1027
+ var get4 = (self_) => {
1028
+ const self = self_;
1029
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1030
+ };
1031
+ var release = (self, state) => {
1032
+ state.refCount--;
1033
+ if (state.refCount > 0) {
1034
+ return void_3;
1035
+ }
1036
+ const idleTimeToLive = self.idleTimeToLive;
1037
+ if (idleTimeToLive === undefined || state.invalidated) {
1038
+ if (self.state === state) {
1039
+ self.state = stateEmpty;
1040
+ }
1041
+ return close(state.scope, void_2);
1042
+ } else if (!isFinite(idleTimeToLive)) {
1043
+ return void_3;
1044
+ }
1045
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1046
+ if (self.state === state && state.refCount === 0) {
1047
+ self.state = stateEmpty;
1048
+ return ignoreCause(close(state.scope, void_2), {
1049
+ log: "Unhandled",
1050
+ message: "Unhandled error in RcRef finalizer"
1051
+ });
1052
+ }
1053
+ return void_3;
1054
+ })).pipe(ensuring2(sync2(() => {
1055
+ state.fiber = undefined;
1056
+ })), runForkWith(self.context), runIn(self.scope));
1057
+ return void_3;
1058
+ };
1059
+
1060
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1061
+ var make18 = make17;
1062
+ var get5 = get4;
1063
+
909
1064
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
910
- var makeUnsafe = makeUnsafe6;
911
- var make18 = make4;
1065
+ var makeUnsafe = makeUnsafe7;
1066
+ var make19 = make4;
912
1067
  var now2 = now;
913
1068
  var nowUnsafe2 = nowUnsafe;
914
1069
  var toDateUtc2 = toDateUtc;
@@ -1227,7 +1382,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1227
1382
  windowsHide: true
1228
1383
  }, onExit);
1229
1384
  };
1230
- var make19 = /* @__PURE__ */ gen(function* () {
1385
+ var make20 = /* @__PURE__ */ gen(function* () {
1231
1386
  const fs = yield* FileSystem;
1232
1387
  const path = yield* Path;
1233
1388
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1756,7 +1911,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1756
1911
  });
1757
1912
  return make2(spawnCommand);
1758
1913
  });
1759
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1914
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1760
1915
  var flattenCommand = (command) => {
1761
1916
  const commands = [];
1762
1917
  const pipeOptions = [];
@@ -2240,7 +2395,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2240
2395
  resume(fail7(handleBadArgument("writeFile")(err)));
2241
2396
  }
2242
2397
  });
2243
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2398
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2244
2399
  access: access2,
2245
2400
  chmod: chmod2,
2246
2401
  chown: chown2,
@@ -2300,15 +2455,15 @@ var fileUrlOps = (windows) => ({
2300
2455
  })
2301
2456
  })
2302
2457
  });
2303
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2458
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2304
2459
  ...NodePath.posix,
2305
2460
  .../* @__PURE__ */ fileUrlOps(false)
2306
2461
  }));
2307
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2462
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2308
2463
  ...NodePath.win32,
2309
2464
  .../* @__PURE__ */ fileUrlOps(true)
2310
2465
  }));
2311
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2466
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2312
2467
  ...NodePath,
2313
2468
  .../* @__PURE__ */ fileUrlOps(undefined)
2314
2469
  }));
@@ -2317,10 +2472,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2317
2472
  var layer2 = layer7;
2318
2473
 
2319
2474
  // 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,
2475
+ var TypeId4 = "~effect/Stdio";
2476
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2477
+ var make21 = (options) => ({
2478
+ [TypeId4]: TypeId4,
2324
2479
  stdinIsTerminal: succeed6(false),
2325
2480
  stdoutIsTerminal: succeed6(false),
2326
2481
  stderrIsTerminal: succeed6(false),
@@ -2328,7 +2483,7 @@ var make20 = (options) => ({
2328
2483
  });
2329
2484
 
2330
2485
  // 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({
2486
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2332
2487
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2333
2488
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2334
2489
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2528,7 +2683,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2528
2683
  const uuid = bytes(randomBytes(16));
2529
2684
  return format === "bytes" ? uuid : stringify(uuid);
2530
2685
  };
2531
- var make21 = (randomBytes) => {
2686
+ var make22 = (randomBytes) => {
2532
2687
  const randomBytesChecked = (size) => {
2533
2688
  checkSize(size);
2534
2689
  return randomBytes(size);
@@ -2562,13 +2717,13 @@ var fillRandom = (crypto2, size) => {
2562
2717
  }
2563
2718
  return bytes;
2564
2719
  };
2565
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2720
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2566
2721
 
2567
2722
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2568
- var TypeId4 = "~effect/http/Cookies";
2723
+ var TypeId5 = "~effect/http/Cookies";
2569
2724
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2570
2725
  var Proto2 = {
2571
- [TypeId4]: TypeId4,
2726
+ [TypeId5]: TypeId5,
2572
2727
  ...BaseProto,
2573
2728
  toJSON() {
2574
2729
  return {
@@ -2747,14 +2902,14 @@ var tryDecodeURIComponent = (str) => {
2747
2902
  };
2748
2903
 
2749
2904
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2750
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2905
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2751
2906
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2752
- [TypeId5]: {
2753
- value: TypeId5
2907
+ [TypeId6]: {
2908
+ value: TypeId6
2754
2909
  },
2755
2910
  [symbolRedactable]: {
2756
2911
  value(context) {
2757
- return redact2(this, get4(context, CurrentRedactedNames));
2912
+ return redact2(this, get3(context, CurrentRedactedNames));
2758
2913
  }
2759
2914
  },
2760
2915
  toJSON: {
@@ -2779,7 +2934,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2779
2934
  value: BaseProto[NodeInspectSymbol]
2780
2935
  }
2781
2936
  });
2782
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2937
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2783
2938
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2784
2939
  var empty = /* @__PURE__ */ Object.create(Proto3);
2785
2940
  var fromInput = (input) => {
@@ -2804,21 +2959,21 @@ var fromInput = (input) => {
2804
2959
  };
2805
2960
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2806
2961
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2807
- const out = make22(self);
2962
+ const out = make23(self);
2808
2963
  out[key.toLowerCase()] = value;
2809
2964
  return out;
2810
2965
  });
2811
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2966
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2812
2967
  ...self,
2813
2968
  ...fromInput(headers)
2814
2969
  }));
2815
2970
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2816
- const out = make22(self);
2971
+ const out = make23(self);
2817
2972
  Object.assign(out, headers);
2818
2973
  return out;
2819
2974
  });
2820
2975
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2821
- const out = make22(self);
2976
+ const out = make23(self);
2822
2977
  delete out[key.toLowerCase()];
2823
2978
  return out;
2824
2979
  });
@@ -2875,18 +3030,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2875
3030
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2876
3031
 
2877
3032
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2878
- var TypeId6 = "~effect/http/UrlParams";
2879
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3033
+ var TypeId7 = "~effect/http/UrlParams";
3034
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2880
3035
  var Proto4 = {
2881
3036
  ...PipeInspectableProto,
2882
- [TypeId6]: TypeId6,
3037
+ [TypeId7]: TypeId7,
2883
3038
  [Symbol.iterator]() {
2884
3039
  return this.params[Symbol.iterator]();
2885
3040
  },
2886
3041
  [symbolRedactable](context) {
2887
3042
  return {
2888
3043
  _id: "UrlParams",
2889
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3044
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2890
3045
  };
2891
3046
  },
2892
3047
  toJSON() {
@@ -2899,7 +3054,7 @@ var Proto4 = {
2899
3054
  return array(this.params.flat());
2900
3055
  }
2901
3056
  };
2902
- var make23 = (params) => {
3057
+ var make24 = (params) => {
2903
3058
  const self = Object.create(Proto4);
2904
3059
  self.params = params;
2905
3060
  return self;
@@ -2918,7 +3073,7 @@ var fromInput2 = (input) => {
2918
3073
  out.push(parsed[i]);
2919
3074
  }
2920
3075
  }
2921
- return make23(out);
3076
+ return make24(out);
2922
3077
  };
2923
3078
  var fromInputNested = (input) => {
2924
3079
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2942,9 +3097,9 @@ var fromInputNested = (input) => {
2942
3097
  return out;
2943
3098
  };
2944
3099
  var coerce = (value) => isRedacted(value) ? value : String(value);
2945
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3100
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2946
3101
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2947
- var empty4 = /* @__PURE__ */ make23([]);
3102
+ var empty4 = /* @__PURE__ */ make24([]);
2948
3103
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2949
3104
  const params = fromInput2(input).params.slice();
2950
3105
  const keys = new Set;
@@ -2956,7 +3111,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2956
3111
  continue;
2957
3112
  params.push(self.params[i]);
2958
3113
  }
2959
- return make23(params);
3114
+ return make24(params);
2960
3115
  });
2961
3116
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2962
3117
  const patterns = Array.isArray(key) ? key : [key];
@@ -3011,13 +3166,13 @@ var decodeQueryKey = (key) => {
3011
3166
  return key;
3012
3167
  }
3013
3168
  };
3014
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3169
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3015
3170
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3016
3171
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3017
3172
  });
3018
3173
 
3019
3174
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3020
- var TypeId7 = "~effect/Terminal";
3175
+ var TypeId8 = "~effect/Terminal";
3021
3176
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3022
3177
 
3023
3178
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3026,14 +3181,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3026
3181
  [QuitErrorTypeId] = QuitErrorTypeId;
3027
3182
  }
3028
3183
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3029
- var make24 = (impl) => Terminal.of({
3184
+ var make25 = (impl) => Terminal.of({
3030
3185
  ...impl,
3031
- [TypeId7]: TypeId7
3186
+ [TypeId8]: TypeId8
3032
3187
  });
3033
3188
 
3034
3189
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3035
3190
  import * as readline from "readline";
3036
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3191
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3037
3192
  const stdin = process.stdin;
3038
3193
  const stdout = process.stdout;
3039
3194
  const lines = yield* make9();
@@ -3047,7 +3202,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3047
3202
  };
3048
3203
  stdin.once("end", onStdinEnd);
3049
3204
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3050
- const rlRef = yield* make10({
3205
+ const rlRef = yield* make18({
3051
3206
  acquire: acquireRelease(sync2(() => {
3052
3207
  const rl = readline.createInterface({
3053
3208
  input: stdin,
@@ -3086,7 +3241,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3086
3241
  if (stdin.isTTY)
3087
3242
  stdin.setRawMode(enabled);
3088
3243
  });
3089
- const rawModeRef = yield* make10({
3244
+ const rawModeRef = yield* make18({
3090
3245
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3091
3246
  idleTimeToLive: "10 millis"
3092
3247
  });
@@ -3137,14 +3292,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3137
3292
  if (inputEnded) {
3138
3293
  handleEnd();
3139
3294
  } else {
3140
- yield* get3(rlRef);
3141
- yield* get3(rawModeRef);
3295
+ yield* get5(rlRef);
3296
+ yield* get5(rawModeRef);
3142
3297
  stdin.once("end", handleEnd);
3143
3298
  }
3144
3299
  return queue;
3145
3300
  });
3146
3301
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3147
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3302
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3148
3303
  onSome: succeed6
3149
3304
  })), mapError2(() => new QuitError({}))));
3150
3305
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3155,7 +3310,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3155
3310
  cause: err
3156
3311
  }))));
3157
3312
  }));
3158
- return make24({
3313
+ return make25({
3159
3314
  columns,
3160
3315
  rows,
3161
3316
  size,
@@ -3164,7 +3319,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3164
3319
  display
3165
3320
  });
3166
3321
  });
3167
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3322
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3168
3323
  function defaultShouldQuit(input) {
3169
3324
  const key = input.key;
3170
3325
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3191,7 +3346,7 @@ function toDate(input) {
3191
3346
  return toDateUtc2(makeUnsafe(input));
3192
3347
  }
3193
3348
  function parseDate(input) {
3194
- return getOrUndefined(map4(make18(input), toDateUtc2));
3349
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3195
3350
  }
3196
3351
  function toIso(input) {
3197
3352
  return formatIso(makeUnsafe(input));
@@ -9279,11 +9434,11 @@ var TranscriptSearchResult = Struct({
9279
9434
  total: Int
9280
9435
  });
9281
9436
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9282
- var TypeId8 = "~effect/http/HttpBody";
9437
+ var TypeId9 = "~effect/http/HttpBody";
9283
9438
  class Proto5 {
9284
- [TypeId8];
9439
+ [TypeId9];
9285
9440
  constructor() {
9286
- this[TypeId8] = TypeId8;
9441
+ this[TypeId9] = TypeId9;
9287
9442
  }
9288
9443
  [NodeInspectSymbol]() {
9289
9444
  return this.toJSON();
@@ -9362,7 +9517,7 @@ var buffer = globalThis.Buffer;
9362
9517
  var encodeText = buffer !== undefined ? (body) => buffer.from(body, "utf8") : (body) => encoder.encode(body);
9363
9518
 
9364
9519
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9365
- var TypeId9 = "~effect/http/HttpClientError";
9520
+ var TypeId10 = "~effect/http/HttpClientError";
9366
9521
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9367
9522
  constructor(props) {
9368
9523
  if ("cause" in props.reason) {
@@ -9374,7 +9529,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9374
9529
  super(props);
9375
9530
  }
9376
9531
  }
9377
- [TypeId9] = TypeId9;
9532
+ [TypeId10] = TypeId10;
9378
9533
  get request() {
9379
9534
  return this.reason.request;
9380
9535
  }
@@ -9478,7 +9633,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9478
9633
  }
9479
9634
  }
9480
9635
 
9481
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9636
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9482
9637
  _tag: /* @__PURE__ */ tag("HttpError"),
9483
9638
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9484
9639
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9511,7 +9666,7 @@ var updateContentLength = (headers, body) => {
9511
9666
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9512
9667
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9513
9668
  }
9514
- var make26 = (url, params, hash) => try_({
9669
+ var make27 = (url, params, hash) => try_({
9515
9670
  try: () => {
9516
9671
  const urlInstance = new URL(url, baseUrl());
9517
9672
  for (let i = 0;i < params.params.length; i++) {
@@ -9542,10 +9697,10 @@ var baseUrl = () => {
9542
9697
  };
9543
9698
 
9544
9699
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9545
- var TypeId10 = "~effect/http/HttpClientRequest";
9546
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
9700
+ var TypeId11 = "~effect/http/HttpClientRequest";
9701
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9547
9702
  var Proto6 = {
9548
- [TypeId10]: TypeId10,
9703
+ [TypeId11]: TypeId11,
9549
9704
  ...BaseProto,
9550
9705
  toJSON() {
9551
9706
  return {
@@ -9631,7 +9786,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
9631
9786
  });
9632
9787
  var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0]), (self, body, contentType) => setBody(self, uint8Array(body, contentType)));
9633
9788
  function toUrl(self) {
9634
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
9789
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9635
9790
  if (isSuccess(r)) {
9636
9791
  return some(r.success);
9637
9792
  }
@@ -9639,7 +9794,7 @@ function toUrl(self) {
9639
9794
  }
9640
9795
 
9641
9796
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9642
- var TypeId11 = "~effect/http/HttpIncomingMessage";
9797
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
9643
9798
  var schemaBodyJson = (schema, options) => {
9644
9799
  const decode = decodeEffect(toCodecJson(schema));
9645
9800
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -9658,7 +9813,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
9658
9813
  var getWebSource = (self) => self[WebSourceSymbol]?.();
9659
9814
 
9660
9815
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
9661
- var TypeId12 = "~effect/http/HttpClientResponse";
9816
+ var TypeId13 = "~effect/http/HttpClientResponse";
9662
9817
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
9663
9818
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
9664
9819
  reason: new StatusCodeError({
@@ -9669,16 +9824,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
9669
9824
  }));
9670
9825
 
9671
9826
  class WebHttpClientResponse extends Class {
9672
- [TypeId11];
9673
9827
  [TypeId12];
9828
+ [TypeId13];
9674
9829
  request;
9675
9830
  source;
9676
9831
  constructor(request, source) {
9677
9832
  super();
9678
9833
  this.request = request;
9679
9834
  this.source = source;
9680
- this[TypeId11] = TypeId11;
9681
9835
  this[TypeId12] = TypeId12;
9836
+ this[TypeId13] = TypeId13;
9682
9837
  }
9683
9838
  toJSON() {
9684
9839
  return inspect(this, {
@@ -9850,7 +10005,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
9850
10005
  };
9851
10006
 
9852
10007
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
9853
- var TypeId13 = "~effect/http/HttpClient";
10008
+ var TypeId14 = "~effect/http/HttpClient";
9854
10009
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
9855
10010
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
9856
10011
  var execute = /* @__PURE__ */ accessor("execute");
@@ -9867,7 +10022,7 @@ var makeWith2 = (postprocess, preprocess) => {
9867
10022
  return self;
9868
10023
  };
9869
10024
  var Proto7 = {
9870
- [TypeId13]: TypeId13,
10025
+ [TypeId14]: TypeId14,
9871
10026
  pipe() {
9872
10027
  return pipeArguments(this, arguments);
9873
10028
  },
@@ -9881,10 +10036,10 @@ var Proto7 = {
9881
10036
  return this.execute(make5(fullMethod)(url, options));
9882
10037
  }]))
9883
10038
  };
9884
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10039
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
9885
10040
  const scopedController = scopedRequests.get(request);
9886
10041
  const controller = scopedController ?? new AbortController;
9887
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10042
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
9888
10043
  if (isFailure(urlResult)) {
9889
10044
  return fail7(new HttpClientError({
9890
10045
  reason: new InvalidUrlError({
@@ -10018,8 +10173,8 @@ class InterruptibleResponse {
10018
10173
  this.original = original;
10019
10174
  this.controller = controller;
10020
10175
  }
10176
+ [TypeId13] = TypeId13;
10021
10177
  [TypeId12] = TypeId12;
10022
- [TypeId11] = TypeId11;
10023
10178
  applyInterrupt(effect) {
10024
10179
  return suspend3(() => {
10025
10180
  responseRegistry.unregister(this.original);
@@ -10117,7 +10272,7 @@ var detectStreamBodySupport = () => {
10117
10272
  return false;
10118
10273
  }
10119
10274
  };
10120
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10275
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10121
10276
  if (request.headers.upgrade !== undefined) {
10122
10277
  return fail7(new HttpClientError({
10123
10278
  reason: new TransportError({
@@ -10208,10 +10363,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10208
10363
  });
10209
10364
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10210
10365
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10211
- var TypeId14 = "~effect/socket/Socket";
10366
+ var TypeId15 = "~effect/socket/Socket";
10212
10367
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10213
- var make28 = (options) => Socket.of({
10214
- [TypeId14]: TypeId14,
10368
+ var make29 = (options) => Socket.of({
10369
+ [TypeId15]: TypeId15,
10215
10370
  reader: options.reader,
10216
10371
  writer: options.writer
10217
10372
  });
@@ -10534,7 +10689,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10534
10689
  write,
10535
10690
  writeAll
10536
10691
  });
10537
- return succeed6(make28({
10692
+ return succeed6(make29({
10538
10693
  reader,
10539
10694
  writer
10540
10695
  }));
@@ -13371,7 +13526,7 @@ function getStreamSchemas(schema) {
13371
13526
  }
13372
13527
  var schema = /* @__PURE__ */ declare(isStream);
13373
13528
  function Stream(success, error) {
13374
- return make17(schema.ast, {
13529
+ return make16(schema.ast, {
13375
13530
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13376
13531
  success,
13377
13532
  error
@@ -13379,9 +13534,9 @@ function Stream(success, error) {
13379
13534
  }
13380
13535
 
13381
13536
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13382
- var TypeId15 = "~effect/rpc/Rpc";
13537
+ var TypeId16 = "~effect/rpc/Rpc";
13383
13538
  var Proto8 = {
13384
- [TypeId15]: TypeId15,
13539
+ [TypeId16]: TypeId16,
13385
13540
  pipe() {
13386
13541
  return pipeArguments(this, arguments);
13387
13542
  },
@@ -13548,7 +13703,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13548
13703
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13549
13704
 
13550
13705
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13551
- var TypeId16 = "~effect/rpc/RpcClientError";
13706
+ var TypeId17 = "~effect/rpc/RpcClientError";
13552
13707
 
13553
13708
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13554
13709
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13557,11 +13712,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13557
13712
  })) {
13558
13713
  }
13559
13714
 
13560
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
13715
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13561
13716
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13562
13717
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13563
13718
  })) {
13564
- [TypeId16] = TypeId16;
13719
+ [TypeId17] = TypeId17;
13565
13720
  get message() {
13566
13721
  return `${this.reason._tag}: ${this.reason.message}`;
13567
13722
  }
@@ -13681,7 +13836,7 @@ var RpcGroupProto = {
13681
13836
  });
13682
13837
  },
13683
13838
  annotateRpcs(service, value) {
13684
- return this.annotateRpcsMerge(make15(service, value));
13839
+ return this.annotateRpcsMerge(make14(service, value));
13685
13840
  },
13686
13841
  annotateMerge(context) {
13687
13842
  return makeProto2({
@@ -13709,7 +13864,7 @@ var make7 = (...rpcs) => makeProto2({
13709
13864
  annotations: empty3()
13710
13865
  });
13711
13866
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
13712
- var TypeId17 = "~effect/rpc/RpcMiddleware";
13867
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
13713
13868
  var Service = () => (id, options) => {
13714
13869
  const limit = getStackTraceLimit();
13715
13870
  let creationError;
@@ -13727,7 +13882,7 @@ var Service = () => (id, options) => {
13727
13882
  return creationError?.stack;
13728
13883
  }
13729
13884
  });
13730
- ServiceClass_[TypeId17] = TypeId17;
13885
+ ServiceClass_[TypeId18] = TypeId18;
13731
13886
  ServiceClass_.error = options?.error ?? Never;
13732
13887
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
13733
13888
  return ServiceClass;
@@ -14318,7 +14473,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14318
14473
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14319
14474
 
14320
14475
  // apps/cli/src/oauth.ts
14321
- var Scope = "openid profile email offline_access kitman:cli";
14476
+ var Scope2 = "openid profile email offline_access kitman:cli";
14322
14477
  var CallbackPath = "/auth/callback";
14323
14478
 
14324
14479
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14337,7 +14492,7 @@ function buildAuthorizeUrl(input) {
14337
14492
  url.searchParams.set("response_type", "code");
14338
14493
  url.searchParams.set("client_id", input.clientId);
14339
14494
  url.searchParams.set("redirect_uri", input.redirectUri);
14340
- url.searchParams.set("scope", Scope);
14495
+ url.searchParams.set("scope", Scope2);
14341
14496
  url.searchParams.set("code_challenge", input.codeChallenge);
14342
14497
  url.searchParams.set("code_challenge_method", "S256");
14343
14498
  url.searchParams.set("state", input.state);
@@ -14397,7 +14552,7 @@ function toStoredSession(token, existingRefreshToken) {
14397
14552
  }
14398
14553
  function startLoopbackServer(input) {
14399
14554
  return gen(function* () {
14400
- const code = yield* make16();
14555
+ const code = yield* make15();
14401
14556
  const context2 = yield* context();
14402
14557
  const runSyncExit = runSyncExitWith(context2);
14403
14558
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -14937,7 +15092,7 @@ var openConnection = (transport) => gen(function* () {
14937
15092
  let lastId = 0;
14938
15093
  let lost = false;
14939
15094
  const notifications = yield* unbounded2();
14940
- const ended = yield* make16();
15095
+ const ended = yield* make15();
14941
15096
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
14942
15097
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
14943
15098
  onNone: () => void_3,
@@ -14964,7 +15119,7 @@ var openConnection = (transport) => gen(function* () {
14964
15119
  if (lost)
14965
15120
  return yield* new HerdrCoreConnectionLost2({ method });
14966
15121
  const id = ++lastId;
14967
- const deferred = yield* make16();
15122
+ const deferred = yield* make15();
14968
15123
  pending.set(id, { method, deferred });
14969
15124
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
14970
15125
  return yield* _await(deferred);
@@ -15038,7 +15193,7 @@ var herdrCoreOver = (transport) => ({
15038
15193
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15039
15194
  };
15040
15195
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15041
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15196
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15042
15197
  }))
15043
15198
  });
15044
15199
  var spawnedTransport = (env) => gen(function* () {
@@ -15129,7 +15284,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15129
15284
  const spawner = yield* ChildProcessSpawner;
15130
15285
  const [command, ...args] = argv;
15131
15286
  const handle = yield* spawner.spawn(make3(command, args, {
15132
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15287
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15133
15288
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15134
15289
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15135
15290
  }));