@kitman-sh/cli 0.10.85 → 0.10.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{chunk-tzz4fv17.js → chunk-292vjjdz.js} +1 -1
  2. package/dist/{chunk-xb70ys3n.js → chunk-2fqry6rd.js} +34 -177
  3. package/dist/{chunk-mxkx0vj5.js → chunk-38end526.js} +40 -26
  4. package/dist/{chunk-kgdppbdr.js → chunk-3wvp5n5a.js} +1 -1
  5. package/dist/{chunk-rxcy9h90.js → chunk-4sz3sg95.js} +7 -7
  6. package/dist/{chunk-bk31f16e.js → chunk-6tq2m8xc.js} +3 -3
  7. package/dist/{chunk-76ctrqm6.js → chunk-93vddjpx.js} +1 -1
  8. package/dist/{chunk-e8zm8z3a.js → chunk-999xbcaa.js} +6 -6
  9. package/dist/{chunk-193zkyhj.js → chunk-b0qaan2c.js} +4 -4
  10. package/dist/{chunk-98sg1yyd.js → chunk-bjexx93x.js} +2 -2
  11. package/dist/{chunk-4s08g8x1.js → chunk-ehwvgxq8.js} +8 -8
  12. package/dist/{chunk-m0yvvg6r.js → chunk-ekkjbmr9.js} +5 -5
  13. package/dist/{chunk-fhgfsets.js → chunk-gmt7awee.js} +6 -6
  14. package/dist/{chunk-w5smxtzc.js → chunk-h8fq958v.js} +294 -142
  15. package/dist/{chunk-myjfc5nh.js → chunk-jfgmhb6k.js} +5 -5
  16. package/dist/{chunk-11pnta38.js → chunk-mak28dxp.js} +18 -18
  17. package/dist/{chunk-9zd52pda.js → chunk-mr30hj39.js} +5 -5
  18. package/dist/{chunk-gaxp5nmx.js → chunk-q1qrwcnw.js} +8 -8
  19. package/dist/{chunk-fq47a5yd.js → chunk-qnnsy306.js} +2 -2
  20. package/dist/{chunk-ycmnmmep.js → chunk-wbdgjd1n.js} +29 -29
  21. package/dist/{chunk-ky974pcr.js → chunk-wtx1vq9t.js} +4 -4
  22. package/dist/{chunk-jbwk6k6m.js → chunk-xq4k0mgr.js} +60 -60
  23. package/dist/{chunk-dcxtztbx.js → chunk-y1x0mb3b.js} +10 -10
  24. package/dist/{chunk-62565d52.js → chunk-zms40x1v.js} +2 -2
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make14,
41
+ make13,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,13 +58,15 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make15,
61
+ make14,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get4,
65
+ get3,
66
66
  merge3,
67
67
  Reference,
68
+ fromInputUnsafe,
69
+ isFinite,
68
70
  millis,
69
71
  seconds,
70
72
  toMillis,
@@ -84,14 +86,14 @@ import {
84
86
  DisablePropagation,
85
87
  sync,
86
88
  map7,
87
- ClockRef,
88
- currentTimeMillis2,
89
89
  ConsoleRef,
90
90
  succeed3,
91
91
  fail4,
92
+ void_2,
92
93
  isSuccess2,
94
+ isFailure2,
93
95
  makeUnsafe5,
94
- make16,
96
+ make15,
95
97
  _await,
96
98
  fail5,
97
99
  isDone,
@@ -99,8 +101,12 @@ import {
99
101
  succeed4,
100
102
  doneUnsafe,
101
103
  TracerTimingEnabled,
104
+ Scope,
105
+ makeUnsafe6,
102
106
  provide,
107
+ addFinalizerExit,
103
108
  addFinalizer,
109
+ close,
104
110
  succeed5,
105
111
  effect,
106
112
  effectContext,
@@ -152,6 +158,7 @@ import {
152
158
  tapCause,
153
159
  retry,
154
160
  ignore,
161
+ ignoreCause,
155
162
  orElseSucceed,
156
163
  timeout,
157
164
  timeoutOrElse,
@@ -163,6 +170,7 @@ import {
163
170
  context,
164
171
  contextWith,
165
172
  provide3,
173
+ provideContext2,
166
174
  serviceOption,
167
175
  updateContext,
168
176
  provideService,
@@ -173,6 +181,7 @@ import {
173
181
  addFinalizer2,
174
182
  ensuring2,
175
183
  onError,
184
+ onExit,
176
185
  cached,
177
186
  interrupt3,
178
187
  interruptible,
@@ -184,6 +193,7 @@ import {
184
193
  withParentSpan,
185
194
  forkScoped,
186
195
  runFork,
196
+ runForkWith,
187
197
  runPromise,
188
198
  runPromiseWith,
189
199
  runSync,
@@ -202,7 +212,7 @@ import {
202
212
  decodeEffect,
203
213
  decodeUnknownOption,
204
214
  decodeOption,
205
- make17,
215
+ make16,
206
216
  isSchema,
207
217
  optionalKey,
208
218
  optional,
@@ -249,11 +259,44 @@ import {
249
259
  decodeJsonStringOption,
250
260
  encodeJsonStringSync,
251
261
  encodePrettyJsonString
252
- } from "./chunk-jbwk6k6m.js";
262
+ } from "./chunk-xq4k0mgr.js";
263
+ import {
264
+ isDateTime,
265
+ Numeric,
266
+ isWholeNumber,
267
+ guard,
268
+ Id,
269
+ Timestamp,
270
+ ActorType,
271
+ SecretName,
272
+ SecretScope,
273
+ SecretHosts,
274
+ isSecretReference
275
+ } from "./chunk-3wvp5n5a.js";
276
+ import {
277
+ toJsonValue,
278
+ isOneOf,
279
+ isBigInt,
280
+ isBoolean,
281
+ isFunction,
282
+ isNumber,
283
+ isObject,
284
+ isJsonObject,
285
+ isString,
286
+ isSymbol,
287
+ isUndefined,
288
+ kindOf
289
+ } from "./chunk-292vjjdz.js";
253
290
  import {
254
291
  map,
255
292
  makeEquivalence,
293
+ Clock,
294
+ currentTimeMillis,
256
295
  bytes,
296
+ join,
297
+ interrupt,
298
+ getCurrent,
299
+ runIn,
257
300
  BadArgument,
258
301
  systemError,
259
302
  badArgument,
@@ -275,13 +318,11 @@ import {
275
318
  isSink,
276
319
  fromChannel,
277
320
  drain,
278
- make10,
279
- get3,
280
321
  isStream,
281
322
  fromChannel2,
282
323
  callback,
283
324
  empty2,
284
- make11,
325
+ make10,
285
326
  suspend,
286
327
  fail2,
287
328
  fromQueue,
@@ -307,43 +348,16 @@ import {
307
348
  mkArrayBuffer,
308
349
  toReadableStreamEffect,
309
350
  FileSystem,
310
- make12,
351
+ make11,
311
352
  FileTypeId,
312
353
  WatchBackend,
313
354
  Path,
314
- make13,
355
+ make12,
315
356
  option,
316
357
  String2,
317
358
  optionalEnv,
318
359
  harnessesUnsupportedInSrt2
319
- } from "./chunk-xb70ys3n.js";
320
- import {
321
- isDateTime,
322
- Numeric,
323
- isWholeNumber,
324
- guard,
325
- Id,
326
- Timestamp,
327
- ActorType,
328
- SecretName,
329
- SecretScope,
330
- SecretHosts,
331
- isSecretReference
332
- } from "./chunk-kgdppbdr.js";
333
- import {
334
- toJsonValue,
335
- isOneOf,
336
- isBigInt,
337
- isBoolean,
338
- isFunction,
339
- isNumber,
340
- isObject,
341
- isJsonObject,
342
- isString,
343
- isSymbol,
344
- isUndefined,
345
- kindOf
346
- } from "./chunk-tzz4fv17.js";
360
+ } from "./chunk-2fqry6rd.js";
347
361
  import {
348
362
  isRedacted,
349
363
  make,
@@ -357,15 +371,11 @@ import {
357
371
  make3,
358
372
  parseFdName,
359
373
  fdName
360
- } from "./chunk-98sg1yyd.js";
374
+ } from "./chunk-bjexx93x.js";
361
375
 
362
376
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
363
377
  var makeEquivalence3 = Tuple;
364
378
 
365
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
366
- var Clock = ClockRef;
367
- var currentTimeMillis = currentTimeMillis2;
368
-
369
379
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
370
380
  var TypeId = "~effect/DateTime";
371
381
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -500,7 +510,7 @@ var fromDateUnsafe = (date) => {
500
510
  }
501
511
  return makeUtc(epochMillis);
502
512
  };
503
- var makeUnsafe6 = (input) => {
513
+ var makeUnsafe7 = (input) => {
504
514
  if (isDateTime2(input)) {
505
515
  return input;
506
516
  } else if (input instanceof Date) {
@@ -520,7 +530,7 @@ var makeUnsafe6 = (input) => {
520
530
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
521
531
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
522
532
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
523
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
533
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
524
534
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
525
535
  var nowUnsafe = () => makeUtc(Date.now());
526
536
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -627,7 +637,7 @@ class Metric$ {
627
637
  }
628
638
  hook(context) {
629
639
  const key = this.key(context);
630
- const registry = get4(context, MetricRegistry);
640
+ const registry = get3(context, MetricRegistry);
631
641
  let metadata = registry.get(key);
632
642
  if (isUndefined2(metadata)) {
633
643
  metadata = this.metadata(this.createHooks());
@@ -636,11 +646,11 @@ class Metric$ {
636
646
  return metadata.hooks;
637
647
  }
638
648
  removeUnsafe(context) {
639
- get4(context, MetricRegistry).delete(this.key(context));
649
+ get3(context, MetricRegistry).delete(this.key(context));
640
650
  }
641
651
  registerUnsafe(context, hooks) {
642
652
  const key = this.key(context);
643
- const registry = get4(context, MetricRegistry);
653
+ const registry = get3(context, MetricRegistry);
644
654
  const metadata = this.metadata({
645
655
  get: hooks.get,
646
656
  update: constVoid,
@@ -656,7 +666,7 @@ class Metric$ {
656
666
  };
657
667
  }
658
668
  key(context) {
659
- const extraAttributes = get4(context, CurrentMetricAttributes);
669
+ const extraAttributes = get3(context, CurrentMetricAttributes);
660
670
  if (extraAttributes !== this.#extraAttributes) {
661
671
  this.#extraAttributes = extraAttributes;
662
672
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -908,9 +918,151 @@ var toNumber = (b) => {
908
918
  return some(Number(b));
909
919
  };
910
920
 
921
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
922
+ var TypeId3 = "~effect/RcRef";
923
+ var stateEmpty = {
924
+ _tag: "Empty"
925
+ };
926
+ var stateClosed = {
927
+ _tag: "Closed"
928
+ };
929
+ var variance = {
930
+ _A: identity,
931
+ _E: identity
932
+ };
933
+
934
+ class RcRefImpl {
935
+ [TypeId3] = variance;
936
+ pipe() {
937
+ return pipeArguments(this, arguments);
938
+ }
939
+ state = stateEmpty;
940
+ acquire;
941
+ context;
942
+ scope;
943
+ idleTimeToLive;
944
+ constructor(acquire, context, scope, idleTimeToLive) {
945
+ this.acquire = acquire;
946
+ this.context = context;
947
+ this.scope = scope;
948
+ this.idleTimeToLive = idleTimeToLive;
949
+ }
950
+ }
951
+ var make17 = (options) => withFiber2((fiber) => {
952
+ const context = fiber.context;
953
+ const scope = get3(context, Scope);
954
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
955
+ return as(addFinalizerExit(scope, () => {
956
+ const state = ref.state;
957
+ ref.state = stateClosed;
958
+ if (state._tag === "Acquired")
959
+ return close(state.scope, void_2);
960
+ if (state._tag === "Acquiring")
961
+ return interrupt(state.fiber);
962
+ return void_3;
963
+ }), ref);
964
+ });
965
+ var getState = (self, restore) => {
966
+ switch (self.state._tag) {
967
+ case "Closed": {
968
+ return interrupt3;
969
+ }
970
+ case "Acquired": {
971
+ const state = self.state;
972
+ state.refCount++;
973
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
974
+ }
975
+ case "Acquiring": {
976
+ const state = self.state;
977
+ state.awaiters++;
978
+ return awaitAcquiring(self, state, restore);
979
+ }
980
+ case "Empty": {
981
+ const acquiring = {
982
+ _tag: "Acquiring",
983
+ fiber: undefined,
984
+ awaiters: 1,
985
+ acquired: undefined
986
+ };
987
+ self.state = acquiring;
988
+ const scope = makeUnsafe6();
989
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
990
+ if (self.state !== acquiring) {
991
+ return interrupt3;
992
+ }
993
+ const state = {
994
+ _tag: "Acquired",
995
+ value,
996
+ scope,
997
+ fiber: undefined,
998
+ refCount: acquiring.awaiters,
999
+ invalidated: false
1000
+ };
1001
+ self.state = state;
1002
+ acquiring.acquired = state;
1003
+ return succeed6(state);
1004
+ }), onExit((exit) => {
1005
+ if (isSuccess2(exit))
1006
+ return void_3;
1007
+ if (self.state === acquiring)
1008
+ self.state = stateEmpty;
1009
+ return close(scope, exit);
1010
+ }));
1011
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1012
+ return awaitAcquiring(self, acquiring, restore);
1013
+ }
1014
+ }
1015
+ };
1016
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1017
+ const acquired = acquiring.acquired;
1018
+ if (acquired !== undefined) {
1019
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1020
+ }
1021
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1022
+ return void_3;
1023
+ self.state = stateEmpty;
1024
+ return interrupt(acquiring.fiber);
1025
+ });
1026
+ var get4 = (self_) => {
1027
+ const self = self_;
1028
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1029
+ };
1030
+ var release = (self, state) => {
1031
+ state.refCount--;
1032
+ if (state.refCount > 0) {
1033
+ return void_3;
1034
+ }
1035
+ const idleTimeToLive = self.idleTimeToLive;
1036
+ if (idleTimeToLive === undefined || state.invalidated) {
1037
+ if (self.state === state) {
1038
+ self.state = stateEmpty;
1039
+ }
1040
+ return close(state.scope, void_2);
1041
+ } else if (!isFinite(idleTimeToLive)) {
1042
+ return void_3;
1043
+ }
1044
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1045
+ if (self.state === state && state.refCount === 0) {
1046
+ self.state = stateEmpty;
1047
+ return ignoreCause(close(state.scope, void_2), {
1048
+ log: "Unhandled",
1049
+ message: "Unhandled error in RcRef finalizer"
1050
+ });
1051
+ }
1052
+ return void_3;
1053
+ })).pipe(ensuring2(sync2(() => {
1054
+ state.fiber = undefined;
1055
+ })), runForkWith(self.context), runIn(self.scope));
1056
+ return void_3;
1057
+ };
1058
+
1059
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1060
+ var make18 = make17;
1061
+ var get5 = get4;
1062
+
911
1063
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
912
- var makeUnsafe = makeUnsafe6;
913
- var make18 = make4;
1064
+ var makeUnsafe = makeUnsafe7;
1065
+ var make19 = make4;
914
1066
  var now2 = now;
915
1067
  var nowUnsafe2 = nowUnsafe;
916
1068
  var toDateUtc2 = toDateUtc;
@@ -1229,7 +1381,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1229
1381
  windowsHide: true
1230
1382
  }, onExit);
1231
1383
  };
1232
- var make19 = /* @__PURE__ */ gen(function* () {
1384
+ var make20 = /* @__PURE__ */ gen(function* () {
1233
1385
  const fs = yield* FileSystem;
1234
1386
  const path = yield* Path;
1235
1387
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1758,7 +1910,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1758
1910
  });
1759
1911
  return make2(spawnCommand);
1760
1912
  });
1761
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1913
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1762
1914
  var flattenCommand = (command) => {
1763
1915
  const commands = [];
1764
1916
  const pipeOptions = [];
@@ -2242,7 +2394,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2242
2394
  resume(fail7(handleBadArgument("writeFile")(err)));
2243
2395
  }
2244
2396
  });
2245
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2397
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2246
2398
  access: access2,
2247
2399
  chmod: chmod2,
2248
2400
  chown: chown2,
@@ -2302,15 +2454,15 @@ var fileUrlOps = (windows) => ({
2302
2454
  })
2303
2455
  })
2304
2456
  });
2305
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2457
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2306
2458
  ...NodePath.posix,
2307
2459
  .../* @__PURE__ */ fileUrlOps(false)
2308
2460
  }));
2309
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2461
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2310
2462
  ...NodePath.win32,
2311
2463
  .../* @__PURE__ */ fileUrlOps(true)
2312
2464
  }));
2313
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2465
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2314
2466
  ...NodePath,
2315
2467
  .../* @__PURE__ */ fileUrlOps(undefined)
2316
2468
  }));
@@ -2319,10 +2471,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2319
2471
  var layer2 = layer7;
2320
2472
 
2321
2473
  // 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,
2474
+ var TypeId4 = "~effect/Stdio";
2475
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2476
+ var make21 = (options) => ({
2477
+ [TypeId4]: TypeId4,
2326
2478
  stdinIsTerminal: succeed6(false),
2327
2479
  stdoutIsTerminal: succeed6(false),
2328
2480
  stderrIsTerminal: succeed6(false),
@@ -2330,7 +2482,7 @@ var make20 = (options) => ({
2330
2482
  });
2331
2483
 
2332
2484
  // 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({
2485
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2334
2486
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2335
2487
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2336
2488
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2530,7 +2682,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2530
2682
  const uuid = bytes(randomBytes(16));
2531
2683
  return format === "bytes" ? uuid : stringify(uuid);
2532
2684
  };
2533
- var make21 = (randomBytes) => {
2685
+ var make22 = (randomBytes) => {
2534
2686
  const randomBytesChecked = (size) => {
2535
2687
  checkSize(size);
2536
2688
  return randomBytes(size);
@@ -2564,13 +2716,13 @@ var fillRandom = (crypto2, size) => {
2564
2716
  }
2565
2717
  return bytes;
2566
2718
  };
2567
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2719
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2568
2720
 
2569
2721
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2570
- var TypeId4 = "~effect/http/Cookies";
2722
+ var TypeId5 = "~effect/http/Cookies";
2571
2723
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2572
2724
  var Proto2 = {
2573
- [TypeId4]: TypeId4,
2725
+ [TypeId5]: TypeId5,
2574
2726
  ...BaseProto,
2575
2727
  toJSON() {
2576
2728
  return {
@@ -2749,14 +2901,14 @@ var tryDecodeURIComponent = (str) => {
2749
2901
  };
2750
2902
 
2751
2903
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2752
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2904
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2753
2905
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2754
- [TypeId5]: {
2755
- value: TypeId5
2906
+ [TypeId6]: {
2907
+ value: TypeId6
2756
2908
  },
2757
2909
  [symbolRedactable]: {
2758
2910
  value(context) {
2759
- return redact2(this, get4(context, CurrentRedactedNames));
2911
+ return redact2(this, get3(context, CurrentRedactedNames));
2760
2912
  }
2761
2913
  },
2762
2914
  toJSON: {
@@ -2781,7 +2933,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2781
2933
  value: BaseProto[NodeInspectSymbol]
2782
2934
  }
2783
2935
  });
2784
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2936
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2785
2937
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2786
2938
  var empty = /* @__PURE__ */ Object.create(Proto3);
2787
2939
  var fromInput = (input) => {
@@ -2806,21 +2958,21 @@ var fromInput = (input) => {
2806
2958
  };
2807
2959
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2808
2960
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2809
- const out = make22(self);
2961
+ const out = make23(self);
2810
2962
  out[key.toLowerCase()] = value;
2811
2963
  return out;
2812
2964
  });
2813
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2965
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2814
2966
  ...self,
2815
2967
  ...fromInput(headers)
2816
2968
  }));
2817
2969
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2818
- const out = make22(self);
2970
+ const out = make23(self);
2819
2971
  Object.assign(out, headers);
2820
2972
  return out;
2821
2973
  });
2822
2974
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2823
- const out = make22(self);
2975
+ const out = make23(self);
2824
2976
  delete out[key.toLowerCase()];
2825
2977
  return out;
2826
2978
  });
@@ -2877,18 +3029,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2877
3029
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2878
3030
 
2879
3031
  // 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);
3032
+ var TypeId7 = "~effect/http/UrlParams";
3033
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2882
3034
  var Proto4 = {
2883
3035
  ...PipeInspectableProto,
2884
- [TypeId6]: TypeId6,
3036
+ [TypeId7]: TypeId7,
2885
3037
  [Symbol.iterator]() {
2886
3038
  return this.params[Symbol.iterator]();
2887
3039
  },
2888
3040
  [symbolRedactable](context) {
2889
3041
  return {
2890
3042
  _id: "UrlParams",
2891
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3043
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2892
3044
  };
2893
3045
  },
2894
3046
  toJSON() {
@@ -2901,7 +3053,7 @@ var Proto4 = {
2901
3053
  return array(this.params.flat());
2902
3054
  }
2903
3055
  };
2904
- var make23 = (params) => {
3056
+ var make24 = (params) => {
2905
3057
  const self = Object.create(Proto4);
2906
3058
  self.params = params;
2907
3059
  return self;
@@ -2920,7 +3072,7 @@ var fromInput2 = (input) => {
2920
3072
  out.push(parsed[i]);
2921
3073
  }
2922
3074
  }
2923
- return make23(out);
3075
+ return make24(out);
2924
3076
  };
2925
3077
  var fromInputNested = (input) => {
2926
3078
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2944,9 +3096,9 @@ var fromInputNested = (input) => {
2944
3096
  return out;
2945
3097
  };
2946
3098
  var coerce = (value) => isRedacted(value) ? value : String(value);
2947
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3099
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2948
3100
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2949
- var empty4 = /* @__PURE__ */ make23([]);
3101
+ var empty4 = /* @__PURE__ */ make24([]);
2950
3102
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2951
3103
  const params = fromInput2(input).params.slice();
2952
3104
  const keys = new Set;
@@ -2958,7 +3110,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2958
3110
  continue;
2959
3111
  params.push(self.params[i]);
2960
3112
  }
2961
- return make23(params);
3113
+ return make24(params);
2962
3114
  });
2963
3115
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2964
3116
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3014,13 +3166,13 @@ var decodeQueryKey = (key) => {
3014
3166
  return key;
3015
3167
  }
3016
3168
  };
3017
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3169
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3018
3170
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3019
3171
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3020
3172
  });
3021
3173
 
3022
3174
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3023
- var TypeId7 = "~effect/Terminal";
3175
+ var TypeId8 = "~effect/Terminal";
3024
3176
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3025
3177
 
3026
3178
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3029,14 +3181,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3029
3181
  [QuitErrorTypeId] = QuitErrorTypeId;
3030
3182
  }
3031
3183
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3032
- var make24 = (impl) => Terminal.of({
3184
+ var make25 = (impl) => Terminal.of({
3033
3185
  ...impl,
3034
- [TypeId7]: TypeId7
3186
+ [TypeId8]: TypeId8
3035
3187
  });
3036
3188
 
3037
3189
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3038
3190
  import * as readline from "readline";
3039
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3191
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3040
3192
  const stdin = process.stdin;
3041
3193
  const stdout = process.stdout;
3042
3194
  const lines = yield* make9();
@@ -3050,7 +3202,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3050
3202
  };
3051
3203
  stdin.once("end", onStdinEnd);
3052
3204
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3053
- const rlRef = yield* make10({
3205
+ const rlRef = yield* make18({
3054
3206
  acquire: acquireRelease(sync2(() => {
3055
3207
  const rl = readline.createInterface({
3056
3208
  input: stdin,
@@ -3089,7 +3241,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3089
3241
  if (stdin.isTTY)
3090
3242
  stdin.setRawMode(enabled);
3091
3243
  });
3092
- const rawModeRef = yield* make10({
3244
+ const rawModeRef = yield* make18({
3093
3245
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3094
3246
  idleTimeToLive: "10 millis"
3095
3247
  });
@@ -3140,14 +3292,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3140
3292
  if (inputEnded) {
3141
3293
  handleEnd();
3142
3294
  } else {
3143
- yield* get3(rlRef);
3144
- yield* get3(rawModeRef);
3295
+ yield* get5(rlRef);
3296
+ yield* get5(rawModeRef);
3145
3297
  stdin.once("end", handleEnd);
3146
3298
  }
3147
3299
  return queue;
3148
3300
  });
3149
3301
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3150
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3302
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3151
3303
  onSome: succeed6
3152
3304
  })), mapError2(() => new QuitError({}))));
3153
3305
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3158,7 +3310,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3158
3310
  cause: err
3159
3311
  }))));
3160
3312
  }));
3161
- return make24({
3313
+ return make25({
3162
3314
  columns,
3163
3315
  rows,
3164
3316
  size,
@@ -3167,7 +3319,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3167
3319
  display
3168
3320
  });
3169
3321
  });
3170
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3322
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3171
3323
  function defaultShouldQuit(input) {
3172
3324
  const key = input.key;
3173
3325
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3194,7 +3346,7 @@ function toDate(input) {
3194
3346
  return toDateUtc2(makeUnsafe(input));
3195
3347
  }
3196
3348
  function parseDate(input) {
3197
- return getOrUndefined(map4(make18(input), toDateUtc2));
3349
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3198
3350
  }
3199
3351
  function toIso(input) {
3200
3352
  return formatIso(makeUnsafe(input));
@@ -9396,11 +9548,11 @@ var TranscriptSearchResult = Struct({
9396
9548
  total: Int
9397
9549
  });
9398
9550
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9399
- var TypeId8 = "~effect/http/HttpBody";
9551
+ var TypeId9 = "~effect/http/HttpBody";
9400
9552
  class Proto5 {
9401
- [TypeId8];
9553
+ [TypeId9];
9402
9554
  constructor() {
9403
- this[TypeId8] = TypeId8;
9555
+ this[TypeId9] = TypeId9;
9404
9556
  }
9405
9557
  [NodeInspectSymbol]() {
9406
9558
  return this.toJSON();
@@ -9491,7 +9643,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9491
9643
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9492
9644
 
9493
9645
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9494
- var TypeId9 = "~effect/http/HttpClientError";
9646
+ var TypeId10 = "~effect/http/HttpClientError";
9495
9647
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9496
9648
  constructor(props) {
9497
9649
  if ("cause" in props.reason) {
@@ -9503,7 +9655,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9503
9655
  super(props);
9504
9656
  }
9505
9657
  }
9506
- [TypeId9] = TypeId9;
9658
+ [TypeId10] = TypeId10;
9507
9659
  get request() {
9508
9660
  return this.reason.request;
9509
9661
  }
@@ -9607,7 +9759,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9607
9759
  }
9608
9760
  }
9609
9761
 
9610
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9762
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9611
9763
  _tag: /* @__PURE__ */ tag("HttpError"),
9612
9764
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9613
9765
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9640,7 +9792,7 @@ var updateContentLength = (headers, body) => {
9640
9792
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9641
9793
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9642
9794
  }
9643
- var make26 = (url, params, hash) => try_({
9795
+ var make27 = (url, params, hash) => try_({
9644
9796
  try: () => {
9645
9797
  const urlInstance = new URL(url, baseUrl());
9646
9798
  for (let i = 0;i < params.params.length; i++) {
@@ -9671,10 +9823,10 @@ var baseUrl = () => {
9671
9823
  };
9672
9824
 
9673
9825
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9674
- var TypeId10 = "~effect/http/HttpClientRequest";
9675
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
9826
+ var TypeId11 = "~effect/http/HttpClientRequest";
9827
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9676
9828
  var Proto6 = {
9677
- [TypeId10]: TypeId10,
9829
+ [TypeId11]: TypeId11,
9678
9830
  ...BaseProto,
9679
9831
  toJSON() {
9680
9832
  return {
@@ -9763,7 +9915,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
9763
9915
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
9764
9916
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
9765
9917
  function toUrl(self) {
9766
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
9918
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9767
9919
  if (isSuccess(r)) {
9768
9920
  return some(r.success);
9769
9921
  }
@@ -9771,7 +9923,7 @@ function toUrl(self) {
9771
9923
  }
9772
9924
 
9773
9925
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9774
- var TypeId11 = "~effect/http/HttpIncomingMessage";
9926
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
9775
9927
  var schemaBodyJson = (schema, options) => {
9776
9928
  const decode = decodeEffect(toCodecJson(schema));
9777
9929
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -9790,7 +9942,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
9790
9942
  var getWebSource = (self) => self[WebSourceSymbol]?.();
9791
9943
 
9792
9944
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
9793
- var TypeId12 = "~effect/http/HttpClientResponse";
9945
+ var TypeId13 = "~effect/http/HttpClientResponse";
9794
9946
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
9795
9947
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
9796
9948
  reason: new StatusCodeError({
@@ -9801,16 +9953,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
9801
9953
  }));
9802
9954
 
9803
9955
  class WebHttpClientResponse extends Class {
9804
- [TypeId11];
9805
9956
  [TypeId12];
9957
+ [TypeId13];
9806
9958
  request;
9807
9959
  source;
9808
9960
  constructor(request, source) {
9809
9961
  super();
9810
9962
  this.request = request;
9811
9963
  this.source = source;
9812
- this[TypeId11] = TypeId11;
9813
9964
  this[TypeId12] = TypeId12;
9965
+ this[TypeId13] = TypeId13;
9814
9966
  }
9815
9967
  toJSON() {
9816
9968
  return inspect(this, {
@@ -9982,7 +10134,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
9982
10134
  };
9983
10135
 
9984
10136
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
9985
- var TypeId13 = "~effect/http/HttpClient";
10137
+ var TypeId14 = "~effect/http/HttpClient";
9986
10138
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
9987
10139
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
9988
10140
  var execute = /* @__PURE__ */ accessor("execute");
@@ -9999,7 +10151,7 @@ var makeWith2 = (postprocess, preprocess) => {
9999
10151
  return self;
10000
10152
  };
10001
10153
  var Proto7 = {
10002
- [TypeId13]: TypeId13,
10154
+ [TypeId14]: TypeId14,
10003
10155
  pipe() {
10004
10156
  return pipeArguments(this, arguments);
10005
10157
  },
@@ -10013,10 +10165,10 @@ var Proto7 = {
10013
10165
  return this.execute(make5(fullMethod)(url, options));
10014
10166
  }]))
10015
10167
  };
10016
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10168
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10017
10169
  const scopedController = scopedRequests.get(request);
10018
10170
  const controller = scopedController ?? new AbortController;
10019
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10171
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10020
10172
  if (isFailure(urlResult)) {
10021
10173
  return fail7(new HttpClientError({
10022
10174
  reason: new InvalidUrlError({
@@ -10150,8 +10302,8 @@ class InterruptibleResponse {
10150
10302
  this.original = original;
10151
10303
  this.controller = controller;
10152
10304
  }
10305
+ [TypeId13] = TypeId13;
10153
10306
  [TypeId12] = TypeId12;
10154
- [TypeId11] = TypeId11;
10155
10307
  applyInterrupt(effect) {
10156
10308
  return suspend3(() => {
10157
10309
  responseRegistry.unregister(this.original);
@@ -10249,7 +10401,7 @@ var detectStreamBodySupport = () => {
10249
10401
  return false;
10250
10402
  }
10251
10403
  };
10252
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10404
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10253
10405
  if (request.headers.upgrade !== undefined) {
10254
10406
  return fail7(new HttpClientError({
10255
10407
  reason: new TransportError({
@@ -10340,10 +10492,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10340
10492
  });
10341
10493
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10342
10494
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10343
- var TypeId14 = "~effect/socket/Socket";
10495
+ var TypeId15 = "~effect/socket/Socket";
10344
10496
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10345
- var make28 = (options) => Socket.of({
10346
- [TypeId14]: TypeId14,
10497
+ var make29 = (options) => Socket.of({
10498
+ [TypeId15]: TypeId15,
10347
10499
  reader: options.reader,
10348
10500
  writer: options.writer
10349
10501
  });
@@ -10666,7 +10818,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10666
10818
  write,
10667
10819
  writeAll
10668
10820
  });
10669
- return succeed6(make28({
10821
+ return succeed6(make29({
10670
10822
  reader,
10671
10823
  writer
10672
10824
  }));
@@ -13518,7 +13670,7 @@ function getStreamSchemas(schema) {
13518
13670
  }
13519
13671
  var schema = /* @__PURE__ */ declare(isStream);
13520
13672
  function Stream(success, error) {
13521
- return make17(schema.ast, {
13673
+ return make16(schema.ast, {
13522
13674
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13523
13675
  success,
13524
13676
  error
@@ -13526,9 +13678,9 @@ function Stream(success, error) {
13526
13678
  }
13527
13679
 
13528
13680
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13529
- var TypeId15 = "~effect/rpc/Rpc";
13681
+ var TypeId16 = "~effect/rpc/Rpc";
13530
13682
  var Proto8 = {
13531
- [TypeId15]: TypeId15,
13683
+ [TypeId16]: TypeId16,
13532
13684
  pipe() {
13533
13685
  return pipeArguments(this, arguments);
13534
13686
  },
@@ -13695,7 +13847,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13695
13847
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13696
13848
 
13697
13849
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13698
- var TypeId16 = "~effect/rpc/RpcClientError";
13850
+ var TypeId17 = "~effect/rpc/RpcClientError";
13699
13851
 
13700
13852
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13701
13853
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13704,11 +13856,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13704
13856
  })) {
13705
13857
  }
13706
13858
 
13707
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
13859
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13708
13860
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13709
13861
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13710
13862
  })) {
13711
- [TypeId16] = TypeId16;
13863
+ [TypeId17] = TypeId17;
13712
13864
  get message() {
13713
13865
  return `${this.reason._tag}: ${this.reason.message}`;
13714
13866
  }
@@ -13828,7 +13980,7 @@ var RpcGroupProto = {
13828
13980
  });
13829
13981
  },
13830
13982
  annotateRpcs(service, value) {
13831
- return this.annotateRpcsMerge(make15(service, value));
13983
+ return this.annotateRpcsMerge(make14(service, value));
13832
13984
  },
13833
13985
  annotateMerge(context) {
13834
13986
  return makeProto2({
@@ -13856,7 +14008,7 @@ var make7 = (...rpcs) => makeProto2({
13856
14008
  annotations: empty3()
13857
14009
  });
13858
14010
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
13859
- var TypeId17 = "~effect/rpc/RpcMiddleware";
14011
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
13860
14012
  var Service = () => (id, options) => {
13861
14013
  const limit = getStackTraceLimit();
13862
14014
  let creationError;
@@ -13874,7 +14026,7 @@ var Service = () => (id, options) => {
13874
14026
  return creationError?.stack;
13875
14027
  }
13876
14028
  });
13877
- ServiceClass_[TypeId17] = TypeId17;
14029
+ ServiceClass_[TypeId18] = TypeId18;
13878
14030
  ServiceClass_.error = options?.error ?? Never;
13879
14031
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
13880
14032
  return ServiceClass;
@@ -14472,7 +14624,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14472
14624
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14473
14625
 
14474
14626
  // apps/cli/src/oauth.ts
14475
- var Scope = "openid profile email offline_access kitman:cli";
14627
+ var Scope2 = "openid profile email offline_access kitman:cli";
14476
14628
  var CallbackPath = "/auth/callback";
14477
14629
 
14478
14630
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14491,7 +14643,7 @@ function buildAuthorizeUrl(input) {
14491
14643
  url.searchParams.set("response_type", "code");
14492
14644
  url.searchParams.set("client_id", input.clientId);
14493
14645
  url.searchParams.set("redirect_uri", input.redirectUri);
14494
- url.searchParams.set("scope", Scope);
14646
+ url.searchParams.set("scope", Scope2);
14495
14647
  url.searchParams.set("code_challenge", input.codeChallenge);
14496
14648
  url.searchParams.set("code_challenge_method", "S256");
14497
14649
  url.searchParams.set("state", input.state);
@@ -14551,7 +14703,7 @@ function toStoredSession(token, existingRefreshToken) {
14551
14703
  }
14552
14704
  function startLoopbackServer(input) {
14553
14705
  return gen(function* () {
14554
- const code = yield* make16();
14706
+ const code = yield* make15();
14555
14707
  const context2 = yield* context();
14556
14708
  const runSyncExit = runSyncExitWith(context2);
14557
14709
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15091,7 +15243,7 @@ var openConnection = (transport) => gen(function* () {
15091
15243
  let lastId = 0;
15092
15244
  let lost = false;
15093
15245
  const notifications = yield* unbounded2();
15094
- const ended = yield* make16();
15246
+ const ended = yield* make15();
15095
15247
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15096
15248
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15097
15249
  onNone: () => void_3,
@@ -15118,7 +15270,7 @@ var openConnection = (transport) => gen(function* () {
15118
15270
  if (lost)
15119
15271
  return yield* new HerdrCoreConnectionLost2({ method });
15120
15272
  const id = ++lastId;
15121
- const deferred = yield* make16();
15273
+ const deferred = yield* make15();
15122
15274
  pending.set(id, { method, deferred });
15123
15275
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15124
15276
  return yield* _await(deferred);
@@ -15192,7 +15344,7 @@ var herdrCoreOver = (transport) => ({
15192
15344
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15193
15345
  };
15194
15346
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15195
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15347
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15196
15348
  }))
15197
15349
  });
15198
15350
  var spawnedTransport = (env) => gen(function* () {
@@ -15283,7 +15435,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15283
15435
  const spawner = yield* ChildProcessSpawner;
15284
15436
  const [command, ...args] = argv;
15285
15437
  const handle = yield* spawner.spawn(make3(command, args, {
15286
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15438
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15287
15439
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15288
15440
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15289
15441
  }));
@@ -15706,4 +15858,4 @@ function checkServices(declaration) {
15706
15858
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15707
15859
  }
15708
15860
 
15709
- export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
15861
+ export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };