@kitman-sh/cli 0.10.70 → 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-x7g0rzqj.js → chunk-030xsst1.js} +339 -113
  2. package/dist/{chunk-pq9bkyj6.js → chunk-290se4bt.js} +3 -3
  3. package/dist/{chunk-f8qqmcgy.js → chunk-2es1djpn.js} +8 -8
  4. package/dist/{chunk-dena9bpd.js → chunk-61by5f18.js} +27 -18
  5. package/dist/{chunk-dk0ftqwg.js → chunk-7672g0fj.js} +28 -177
  6. package/dist/{chunk-e5dq8dbz.js → chunk-7g4e5fsj.js} +189 -53
  7. package/dist/{chunk-csbf77zs.js → chunk-7sm45hhc.js} +6 -6
  8. package/dist/{chunk-1j1jh211.js → chunk-7wenq6ew.js} +7 -5
  9. package/dist/{chunk-q3c7vmby.js → chunk-b63rssdn.js} +1 -1
  10. package/dist/{chunk-h0sw8tks.js → chunk-cefprsjj.js} +4 -4
  11. package/dist/{chunk-fgecj3t0.js → chunk-cj3ef3pv.js} +6 -6
  12. package/dist/{chunk-8ttdzwa3.js → chunk-d2fxfv0j.js} +9 -9
  13. package/dist/{chunk-8w7d269h.js → chunk-g8b2z9jn.js} +4 -4
  14. package/dist/chunk-gngg8j56.js +202 -0
  15. package/dist/{chunk-2wkdq54x.js → chunk-hxm3bvpn.js} +5 -5
  16. package/dist/{chunk-v01c0k6j.js → chunk-nhd7dh79.js} +1 -1
  17. package/dist/{chunk-9hr71e7c.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-7jh6atr0.js → chunk-vd8f9brg.js} +17 -17
  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));
@@ -5942,6 +6097,8 @@ var RunEvidence = Struct({
5942
6097
  durationMs: Int.check(isGreaterThanOrEqualTo(0)),
5943
6098
  outputTail: String4,
5944
6099
  fileIds: optionalKey(ArraySchema(String4)),
6100
+ skippedSinceBaseline: optionalKey(ArraySchema(String4)),
6101
+ newNotRun: optionalKey(ArraySchema(String4)),
5945
6102
  recordedAt: Timestamp
5946
6103
  });
5947
6104
  var ApprovedVerification = Struct({
@@ -6493,6 +6650,74 @@ var NetworkHostQuery = Struct({
6493
6650
  repoBindingId: optionalKey(Id)
6494
6651
  });
6495
6652
 
6653
+ // packages/core/src/test-report.ts
6654
+ var isTestReportName = (name) => /junit.*\.xml$/iu.test(name);
6655
+ var maxSkippedTests = 1e4;
6656
+ var maxRanDigests = 1e5;
6657
+ var TestId = String4.check(isMinLength(1), isMaxLength(1000));
6658
+ var CheckTests = Struct({
6659
+ reports: Int.check(isGreaterThanOrEqualTo(0)),
6660
+ passed: Int.check(isGreaterThanOrEqualTo(0)),
6661
+ failed: Int.check(isGreaterThanOrEqualTo(0)),
6662
+ skipped: Int.check(isGreaterThanOrEqualTo(0)),
6663
+ skippedTests: ArraySchema(TestId).check(isMaxLength(maxSkippedTests)),
6664
+ ranDigests: ArraySchema(String4.check(isMaxLength(16))).check(isMaxLength(maxRanDigests))
6665
+ });
6666
+ var entities = new Map([
6667
+ ["amp", "&"],
6668
+ ["lt", "<"],
6669
+ ["gt", ">"],
6670
+ ["quot", '"'],
6671
+ ["apos", "'"]
6672
+ ]);
6673
+ var codePoint = (whole, value) => value <= 1114111 ? String.fromCodePoint(value) : whole;
6674
+ var decoded = (text) => text.replaceAll(/&(#x[\da-f]+|#\d+|\w+);/giu, (whole, entity) => {
6675
+ if (entity.startsWith("#x") || entity.startsWith("#X"))
6676
+ return codePoint(whole, Number.parseInt(entity.slice(2), 16));
6677
+ if (entity.startsWith("#"))
6678
+ return codePoint(whole, Number(entity.slice(1)));
6679
+ return entities.get(entity) ?? whole;
6680
+ });
6681
+ var attribute = (attributes, name) => {
6682
+ const found = new RegExp(`(?:^|\\s)${name}\\s*=\\s*(?:"([^"]*)"|'([^']*)')`, "u").exec(attributes);
6683
+ return found === null ? undefined : decoded(found[1] ?? found[2] ?? "");
6684
+ };
6685
+ var junitTestCases = (xml) => [...xml.matchAll(/<testcase\b([^>]*?)(?:\/>|>([\s\S]*?)<\/testcase>)/gu)].map(([, attributes = "", body = ""]) => {
6686
+ const id = [attribute(attributes, "file"), attribute(attributes, "classname"), attribute(attributes, "name")].filter((part) => part !== undefined && part !== "").join(" > ");
6687
+ return {
6688
+ id: id.slice(0, 1000) || "(unnamed test)",
6689
+ status: /<(?:failure|error)\b/u.test(body) ? "failed" : /<skipped\b/u.test(body) ? "skipped" : "passed"
6690
+ };
6691
+ });
6692
+ var fnv1a = (text, seed) => {
6693
+ let hash = seed;
6694
+ for (let index = 0;index < text.length; index++) {
6695
+ hash ^= text.charCodeAt(index);
6696
+ hash = Math.imul(hash, 16777619) >>> 0;
6697
+ }
6698
+ return hash.toString(16).padStart(8, "0");
6699
+ };
6700
+ var testDigest = (id) => `${fnv1a(id, 2166136261)}${fnv1a(id, 84696351)}`;
6701
+ var checkTests = (reports) => {
6702
+ const rank = { passed: 0, skipped: 1, failed: 2 };
6703
+ const tests = new Map;
6704
+ for (const found of reports.flatMap(junitTestCases)) {
6705
+ const before = tests.get(found.id);
6706
+ if (before === undefined || rank[found.status] > rank[before])
6707
+ tests.set(found.id, found.status);
6708
+ }
6709
+ const of = (status) => [...tests].flatMap(([id, is]) => is === status ? [id] : []);
6710
+ const skipped = of("skipped").sort();
6711
+ return {
6712
+ reports: reports.length,
6713
+ passed: of("passed").length,
6714
+ failed: of("failed").length,
6715
+ skipped: skipped.length,
6716
+ skippedTests: skipped.slice(0, maxSkippedTests),
6717
+ ranDigests: [...of("passed"), ...of("failed")].map(testDigest).sort().slice(0, maxRanDigests)
6718
+ };
6719
+ };
6720
+
6496
6721
  // packages/core/src/work-unit.ts
6497
6722
  var WorkUnitLease = Struct({
6498
6723
  leaseOwnerId: Id,
@@ -6677,7 +6902,8 @@ var CheckEvidence = Struct({
6677
6902
  exitCode: optionalKey(Int),
6678
6903
  durationMs: Int.check(isGreaterThanOrEqualTo(0)),
6679
6904
  outputTail: String4.check(isMaxLength(8000)),
6680
- fileIds: optionalKey(ArraySchema(String4).check(isMaxLength(51)))
6905
+ fileIds: optionalKey(ArraySchema(String4).check(isMaxLength(51))),
6906
+ tests: optionalKey(CheckTests)
6681
6907
  });
6682
6908
  var TreeEvidence = Struct({
6683
6909
  revision: String4.check(isMinLength(1), isMaxLength(240)),
@@ -9208,11 +9434,11 @@ var TranscriptSearchResult = Struct({
9208
9434
  total: Int
9209
9435
  });
9210
9436
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9211
- var TypeId8 = "~effect/http/HttpBody";
9437
+ var TypeId9 = "~effect/http/HttpBody";
9212
9438
  class Proto5 {
9213
- [TypeId8];
9439
+ [TypeId9];
9214
9440
  constructor() {
9215
- this[TypeId8] = TypeId8;
9441
+ this[TypeId9] = TypeId9;
9216
9442
  }
9217
9443
  [NodeInspectSymbol]() {
9218
9444
  return this.toJSON();
@@ -9291,7 +9517,7 @@ var buffer = globalThis.Buffer;
9291
9517
  var encodeText = buffer !== undefined ? (body) => buffer.from(body, "utf8") : (body) => encoder.encode(body);
9292
9518
 
9293
9519
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9294
- var TypeId9 = "~effect/http/HttpClientError";
9520
+ var TypeId10 = "~effect/http/HttpClientError";
9295
9521
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9296
9522
  constructor(props) {
9297
9523
  if ("cause" in props.reason) {
@@ -9303,7 +9529,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9303
9529
  super(props);
9304
9530
  }
9305
9531
  }
9306
- [TypeId9] = TypeId9;
9532
+ [TypeId10] = TypeId10;
9307
9533
  get request() {
9308
9534
  return this.reason.request;
9309
9535
  }
@@ -9407,7 +9633,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9407
9633
  }
9408
9634
  }
9409
9635
 
9410
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9636
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9411
9637
  _tag: /* @__PURE__ */ tag("HttpError"),
9412
9638
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9413
9639
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9440,7 +9666,7 @@ var updateContentLength = (headers, body) => {
9440
9666
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9441
9667
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9442
9668
  }
9443
- var make26 = (url, params, hash) => try_({
9669
+ var make27 = (url, params, hash) => try_({
9444
9670
  try: () => {
9445
9671
  const urlInstance = new URL(url, baseUrl());
9446
9672
  for (let i = 0;i < params.params.length; i++) {
@@ -9471,10 +9697,10 @@ var baseUrl = () => {
9471
9697
  };
9472
9698
 
9473
9699
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9474
- var TypeId10 = "~effect/http/HttpClientRequest";
9475
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
9700
+ var TypeId11 = "~effect/http/HttpClientRequest";
9701
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9476
9702
  var Proto6 = {
9477
- [TypeId10]: TypeId10,
9703
+ [TypeId11]: TypeId11,
9478
9704
  ...BaseProto,
9479
9705
  toJSON() {
9480
9706
  return {
@@ -9560,7 +9786,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
9560
9786
  });
9561
9787
  var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0]), (self, body, contentType) => setBody(self, uint8Array(body, contentType)));
9562
9788
  function toUrl(self) {
9563
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
9789
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9564
9790
  if (isSuccess(r)) {
9565
9791
  return some(r.success);
9566
9792
  }
@@ -9568,7 +9794,7 @@ function toUrl(self) {
9568
9794
  }
9569
9795
 
9570
9796
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9571
- var TypeId11 = "~effect/http/HttpIncomingMessage";
9797
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
9572
9798
  var schemaBodyJson = (schema, options) => {
9573
9799
  const decode = decodeEffect(toCodecJson(schema));
9574
9800
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -9587,7 +9813,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
9587
9813
  var getWebSource = (self) => self[WebSourceSymbol]?.();
9588
9814
 
9589
9815
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
9590
- var TypeId12 = "~effect/http/HttpClientResponse";
9816
+ var TypeId13 = "~effect/http/HttpClientResponse";
9591
9817
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
9592
9818
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
9593
9819
  reason: new StatusCodeError({
@@ -9598,16 +9824,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
9598
9824
  }));
9599
9825
 
9600
9826
  class WebHttpClientResponse extends Class {
9601
- [TypeId11];
9602
9827
  [TypeId12];
9828
+ [TypeId13];
9603
9829
  request;
9604
9830
  source;
9605
9831
  constructor(request, source) {
9606
9832
  super();
9607
9833
  this.request = request;
9608
9834
  this.source = source;
9609
- this[TypeId11] = TypeId11;
9610
9835
  this[TypeId12] = TypeId12;
9836
+ this[TypeId13] = TypeId13;
9611
9837
  }
9612
9838
  toJSON() {
9613
9839
  return inspect(this, {
@@ -9779,7 +10005,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
9779
10005
  };
9780
10006
 
9781
10007
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
9782
- var TypeId13 = "~effect/http/HttpClient";
10008
+ var TypeId14 = "~effect/http/HttpClient";
9783
10009
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
9784
10010
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
9785
10011
  var execute = /* @__PURE__ */ accessor("execute");
@@ -9796,7 +10022,7 @@ var makeWith2 = (postprocess, preprocess) => {
9796
10022
  return self;
9797
10023
  };
9798
10024
  var Proto7 = {
9799
- [TypeId13]: TypeId13,
10025
+ [TypeId14]: TypeId14,
9800
10026
  pipe() {
9801
10027
  return pipeArguments(this, arguments);
9802
10028
  },
@@ -9810,10 +10036,10 @@ var Proto7 = {
9810
10036
  return this.execute(make5(fullMethod)(url, options));
9811
10037
  }]))
9812
10038
  };
9813
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10039
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
9814
10040
  const scopedController = scopedRequests.get(request);
9815
10041
  const controller = scopedController ?? new AbortController;
9816
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10042
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
9817
10043
  if (isFailure(urlResult)) {
9818
10044
  return fail7(new HttpClientError({
9819
10045
  reason: new InvalidUrlError({
@@ -9947,8 +10173,8 @@ class InterruptibleResponse {
9947
10173
  this.original = original;
9948
10174
  this.controller = controller;
9949
10175
  }
10176
+ [TypeId13] = TypeId13;
9950
10177
  [TypeId12] = TypeId12;
9951
- [TypeId11] = TypeId11;
9952
10178
  applyInterrupt(effect) {
9953
10179
  return suspend3(() => {
9954
10180
  responseRegistry.unregister(this.original);
@@ -10046,7 +10272,7 @@ var detectStreamBodySupport = () => {
10046
10272
  return false;
10047
10273
  }
10048
10274
  };
10049
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10275
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10050
10276
  if (request.headers.upgrade !== undefined) {
10051
10277
  return fail7(new HttpClientError({
10052
10278
  reason: new TransportError({
@@ -10137,10 +10363,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10137
10363
  });
10138
10364
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10139
10365
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10140
- var TypeId14 = "~effect/socket/Socket";
10366
+ var TypeId15 = "~effect/socket/Socket";
10141
10367
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10142
- var make28 = (options) => Socket.of({
10143
- [TypeId14]: TypeId14,
10368
+ var make29 = (options) => Socket.of({
10369
+ [TypeId15]: TypeId15,
10144
10370
  reader: options.reader,
10145
10371
  writer: options.writer
10146
10372
  });
@@ -10463,7 +10689,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10463
10689
  write,
10464
10690
  writeAll
10465
10691
  });
10466
- return succeed6(make28({
10692
+ return succeed6(make29({
10467
10693
  reader,
10468
10694
  writer
10469
10695
  }));
@@ -13300,7 +13526,7 @@ function getStreamSchemas(schema) {
13300
13526
  }
13301
13527
  var schema = /* @__PURE__ */ declare(isStream);
13302
13528
  function Stream(success, error) {
13303
- return make17(schema.ast, {
13529
+ return make16(schema.ast, {
13304
13530
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13305
13531
  success,
13306
13532
  error
@@ -13308,9 +13534,9 @@ function Stream(success, error) {
13308
13534
  }
13309
13535
 
13310
13536
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13311
- var TypeId15 = "~effect/rpc/Rpc";
13537
+ var TypeId16 = "~effect/rpc/Rpc";
13312
13538
  var Proto8 = {
13313
- [TypeId15]: TypeId15,
13539
+ [TypeId16]: TypeId16,
13314
13540
  pipe() {
13315
13541
  return pipeArguments(this, arguments);
13316
13542
  },
@@ -13477,7 +13703,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13477
13703
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13478
13704
 
13479
13705
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13480
- var TypeId16 = "~effect/rpc/RpcClientError";
13706
+ var TypeId17 = "~effect/rpc/RpcClientError";
13481
13707
 
13482
13708
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13483
13709
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13486,11 +13712,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13486
13712
  })) {
13487
13713
  }
13488
13714
 
13489
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
13715
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13490
13716
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13491
13717
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13492
13718
  })) {
13493
- [TypeId16] = TypeId16;
13719
+ [TypeId17] = TypeId17;
13494
13720
  get message() {
13495
13721
  return `${this.reason._tag}: ${this.reason.message}`;
13496
13722
  }
@@ -13610,7 +13836,7 @@ var RpcGroupProto = {
13610
13836
  });
13611
13837
  },
13612
13838
  annotateRpcs(service, value) {
13613
- return this.annotateRpcsMerge(make15(service, value));
13839
+ return this.annotateRpcsMerge(make14(service, value));
13614
13840
  },
13615
13841
  annotateMerge(context) {
13616
13842
  return makeProto2({
@@ -13638,7 +13864,7 @@ var make7 = (...rpcs) => makeProto2({
13638
13864
  annotations: empty3()
13639
13865
  });
13640
13866
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
13641
- var TypeId17 = "~effect/rpc/RpcMiddleware";
13867
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
13642
13868
  var Service = () => (id, options) => {
13643
13869
  const limit = getStackTraceLimit();
13644
13870
  let creationError;
@@ -13656,7 +13882,7 @@ var Service = () => (id, options) => {
13656
13882
  return creationError?.stack;
13657
13883
  }
13658
13884
  });
13659
- ServiceClass_[TypeId17] = TypeId17;
13885
+ ServiceClass_[TypeId18] = TypeId18;
13660
13886
  ServiceClass_.error = options?.error ?? Never;
13661
13887
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
13662
13888
  return ServiceClass;
@@ -14247,7 +14473,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14247
14473
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14248
14474
 
14249
14475
  // apps/cli/src/oauth.ts
14250
- var Scope = "openid profile email offline_access kitman:cli";
14476
+ var Scope2 = "openid profile email offline_access kitman:cli";
14251
14477
  var CallbackPath = "/auth/callback";
14252
14478
 
14253
14479
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14266,7 +14492,7 @@ function buildAuthorizeUrl(input) {
14266
14492
  url.searchParams.set("response_type", "code");
14267
14493
  url.searchParams.set("client_id", input.clientId);
14268
14494
  url.searchParams.set("redirect_uri", input.redirectUri);
14269
- url.searchParams.set("scope", Scope);
14495
+ url.searchParams.set("scope", Scope2);
14270
14496
  url.searchParams.set("code_challenge", input.codeChallenge);
14271
14497
  url.searchParams.set("code_challenge_method", "S256");
14272
14498
  url.searchParams.set("state", input.state);
@@ -14326,7 +14552,7 @@ function toStoredSession(token, existingRefreshToken) {
14326
14552
  }
14327
14553
  function startLoopbackServer(input) {
14328
14554
  return gen(function* () {
14329
- const code = yield* make16();
14555
+ const code = yield* make15();
14330
14556
  const context2 = yield* context();
14331
14557
  const runSyncExit = runSyncExitWith(context2);
14332
14558
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -14866,7 +15092,7 @@ var openConnection = (transport) => gen(function* () {
14866
15092
  let lastId = 0;
14867
15093
  let lost = false;
14868
15094
  const notifications = yield* unbounded2();
14869
- const ended = yield* make16();
15095
+ const ended = yield* make15();
14870
15096
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
14871
15097
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
14872
15098
  onNone: () => void_3,
@@ -14893,7 +15119,7 @@ var openConnection = (transport) => gen(function* () {
14893
15119
  if (lost)
14894
15120
  return yield* new HerdrCoreConnectionLost2({ method });
14895
15121
  const id = ++lastId;
14896
- const deferred = yield* make16();
15122
+ const deferred = yield* make15();
14897
15123
  pending.set(id, { method, deferred });
14898
15124
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
14899
15125
  return yield* _await(deferred);
@@ -14967,7 +15193,7 @@ var herdrCoreOver = (transport) => ({
14967
15193
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
14968
15194
  };
14969
15195
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
14970
- 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)));
14971
15197
  }))
14972
15198
  });
14973
15199
  var spawnedTransport = (env) => gen(function* () {
@@ -15058,7 +15284,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15058
15284
  const spawner = yield* ChildProcessSpawner;
15059
15285
  const [command, ...args] = argv;
15060
15286
  const handle = yield* spawner.spawn(make3(command, args, {
15061
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15287
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15062
15288
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15063
15289
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15064
15290
  }));
@@ -15480,4 +15706,4 @@ function checkServices(declaration) {
15480
15706
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15481
15707
  }
15482
15708
 
15483
- 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, 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, put, setHeaders, bodyUint8Array, 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 };
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, 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, put, setHeaders, bodyUint8Array, 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 };