@kitman-sh/cli 0.13.10 → 0.13.12

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 (27) hide show
  1. package/dist/{chunk-813vn8sn.js → chunk-02ye1s9f.js} +18 -18
  2. package/dist/{chunk-4crf5vhd.js → chunk-1bkrxc3v.js} +2 -2
  3. package/dist/{chunk-hkg8s472.js → chunk-2xh5p0na.js} +11 -10
  4. package/dist/{chunk-r5v7df8h.js → chunk-36s51mp6.js} +78 -69
  5. package/dist/{chunk-vxfajzpz.js → chunk-3z9yz32f.js} +60 -14
  6. package/dist/{chunk-6x4wkf0x.js → chunk-4m923rz8.js} +3 -3
  7. package/dist/{chunk-kk32jckf.js → chunk-4t6nrgxw.js} +4 -4
  8. package/dist/{chunk-jkddgvev.js → chunk-8cxh8j07.js} +145 -55
  9. package/dist/{chunk-zgraq2y3.js → chunk-8pbnfqaz.js} +59 -101
  10. package/dist/{chunk-s00cj5sw.js → chunk-8t1vygmr.js} +4 -4
  11. package/dist/{chunk-kj1zjrs9.js → chunk-95w14qxp.js} +6 -6
  12. package/dist/{chunk-2dwqak36.js → chunk-9d03t0pn.js} +10 -10
  13. package/dist/{chunk-ggmwpwhf.js → chunk-eahqsd8h.js} +2 -2
  14. package/dist/{chunk-24h0y27w.js → chunk-fwja3qb1.js} +1 -1
  15. package/dist/{chunk-pxvd8w2v.js → chunk-mcw7wvtx.js} +1 -6
  16. package/dist/{chunk-bkecckjn.js → chunk-n1aqwdc2.js} +10 -10
  17. package/dist/{chunk-j34gensq.js → chunk-n734b61f.js} +1 -1
  18. package/dist/{chunk-mtdz4k32.js → chunk-nge8fq10.js} +9 -9
  19. package/dist/{chunk-0nh3w4vn.js → chunk-npjpmb0w.js} +9 -9
  20. package/dist/{chunk-t82w7459.js → chunk-szt25e0z.js} +61 -195
  21. package/dist/{chunk-rz01craf.js → chunk-ths93svq.js} +463 -195
  22. package/dist/{chunk-6n3m0t02.js → chunk-x5nv63jj.js} +3 -3
  23. package/dist/{chunk-mmd7mjv0.js → chunk-yab3j170.js} +3 -3
  24. package/dist/{chunk-d4pxty7x.js → chunk-z74fnmqb.js} +20 -20
  25. package/dist/{chunk-c60xk73g.js → chunk-zb5pnthp.js} +66 -33
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -62,9 +62,11 @@ import {
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,12 +86,12 @@ 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
96
  make15,
95
97
  _await,
@@ -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,
@@ -194,9 +204,6 @@ import {
194
204
  logError,
195
205
  effectify,
196
206
  decode,
197
- isRedacted,
198
- make16,
199
- value,
200
207
  defaultParseOptions,
201
208
  omit,
202
209
  map9,
@@ -205,7 +212,7 @@ import {
205
212
  decodeEffect,
206
213
  decodeUnknownOption,
207
214
  decodeOption,
208
- make17,
215
+ make16,
209
216
  isSchema,
210
217
  optionalKey,
211
218
  optional,
@@ -264,18 +271,23 @@ import {
264
271
  decodeJsonStringOption,
265
272
  encodeJsonStringSync,
266
273
  encodePrettyJsonString
267
- } from "./chunk-zgraq2y3.js";
274
+ } from "./chunk-8pbnfqaz.js";
268
275
  import {
269
276
  map,
270
277
  makeEquivalence,
271
- toNumber,
278
+ Clock,
279
+ currentTimeMillis,
272
280
  bytes,
281
+ join,
282
+ interrupt,
283
+ getCurrent,
284
+ runIn,
273
285
  BadArgument,
274
286
  systemError,
275
287
  badArgument,
276
288
  makeUnsafe2,
277
- make7,
278
289
  make8,
290
+ make9,
279
291
  sliding,
280
292
  unbounded2,
281
293
  offer,
@@ -291,8 +303,6 @@ import {
291
303
  isSink,
292
304
  fromChannel,
293
305
  drain,
294
- make9,
295
- get3,
296
306
  isStream,
297
307
  fromChannel2,
298
308
  callback,
@@ -332,7 +342,21 @@ import {
332
342
  String2,
333
343
  optionalEnv,
334
344
  harnessesUnsupportedInSrt2
335
- } from "./chunk-t82w7459.js";
345
+ } from "./chunk-szt25e0z.js";
346
+ import {
347
+ isRedacted,
348
+ make,
349
+ value,
350
+ ExitCode,
351
+ ProcessId,
352
+ makeHandle,
353
+ make2,
354
+ ChildProcessSpawner,
355
+ display,
356
+ make3,
357
+ parseFdName,
358
+ fdName
359
+ } from "./chunk-3z9yz32f.js";
336
360
  import {
337
361
  isDateTime,
338
362
  Numeric,
@@ -345,26 +369,11 @@ import {
345
369
  SecretScope,
346
370
  SecretHosts,
347
371
  isSecretReference
348
- } from "./chunk-pxvd8w2v.js";
349
- import {
350
- ExitCode,
351
- ProcessId,
352
- makeHandle,
353
- make,
354
- ChildProcessSpawner,
355
- display,
356
- make2,
357
- parseFdName,
358
- fdName
359
- } from "./chunk-vxfajzpz.js";
372
+ } from "./chunk-mcw7wvtx.js";
360
373
 
361
374
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
362
375
  var makeEquivalence3 = Tuple;
363
376
 
364
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
365
- var Clock = ClockRef;
366
- var currentTimeMillis = currentTimeMillis2;
367
-
368
377
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
369
378
  var TypeId = "~effect/DateTime";
370
379
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -499,7 +508,7 @@ var fromDateUnsafe = (date) => {
499
508
  }
500
509
  return makeUtc(epochMillis);
501
510
  };
502
- var makeUnsafe6 = (input) => {
511
+ var makeUnsafe7 = (input) => {
503
512
  if (isDateTime2(input)) {
504
513
  return input;
505
514
  } else if (input instanceof Date) {
@@ -519,7 +528,7 @@ var makeUnsafe6 = (input) => {
519
528
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
520
529
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
521
530
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
522
- var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
531
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
523
532
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
524
533
  var nowUnsafe = () => makeUtc(Date.now());
525
534
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -626,7 +635,7 @@ class Metric$ {
626
635
  }
627
636
  hook(context) {
628
637
  const key = this.key(context);
629
- const registry = get4(context, MetricRegistry);
638
+ const registry = get3(context, MetricRegistry);
630
639
  let metadata = registry.get(key);
631
640
  if (isUndefined(metadata)) {
632
641
  metadata = this.metadata(this.createHooks());
@@ -635,11 +644,11 @@ class Metric$ {
635
644
  return metadata.hooks;
636
645
  }
637
646
  removeUnsafe(context) {
638
- get4(context, MetricRegistry).delete(this.key(context));
647
+ get3(context, MetricRegistry).delete(this.key(context));
639
648
  }
640
649
  registerUnsafe(context, hooks) {
641
650
  const key = this.key(context);
642
- const registry = get4(context, MetricRegistry);
651
+ const registry = get3(context, MetricRegistry);
643
652
  const metadata = this.metadata({
644
653
  get: hooks.get,
645
654
  update: constVoid,
@@ -655,7 +664,7 @@ class Metric$ {
655
664
  };
656
665
  }
657
666
  key(context) {
658
- const extraAttributes = get4(context, CurrentMetricAttributes);
667
+ const extraAttributes = get3(context, CurrentMetricAttributes);
659
668
  if (extraAttributes !== this.#extraAttributes) {
660
669
  this.#extraAttributes = extraAttributes;
661
670
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -898,9 +907,160 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
898
907
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
899
908
  var runMain = runMain2;
900
909
 
910
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
911
+ var BigInt2 = globalThis.BigInt;
912
+ var toNumber = (b) => {
913
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
914
+ return none();
915
+ }
916
+ return some(Number(b));
917
+ };
918
+
919
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
920
+ var TypeId3 = "~effect/RcRef";
921
+ var stateEmpty = {
922
+ _tag: "Empty"
923
+ };
924
+ var stateClosed = {
925
+ _tag: "Closed"
926
+ };
927
+ var variance = {
928
+ _A: identity,
929
+ _E: identity
930
+ };
931
+
932
+ class RcRefImpl {
933
+ [TypeId3] = variance;
934
+ pipe() {
935
+ return pipeArguments(this, arguments);
936
+ }
937
+ state = stateEmpty;
938
+ acquire;
939
+ context;
940
+ scope;
941
+ idleTimeToLive;
942
+ constructor(acquire, context, scope, idleTimeToLive) {
943
+ this.acquire = acquire;
944
+ this.context = context;
945
+ this.scope = scope;
946
+ this.idleTimeToLive = idleTimeToLive;
947
+ }
948
+ }
949
+ var make17 = (options) => withFiber2((fiber) => {
950
+ const context = fiber.context;
951
+ const scope = get3(context, Scope);
952
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
953
+ return as(addFinalizerExit(scope, () => {
954
+ const state = ref.state;
955
+ ref.state = stateClosed;
956
+ if (state._tag === "Acquired")
957
+ return close(state.scope, void_2);
958
+ if (state._tag === "Acquiring")
959
+ return interrupt(state.fiber);
960
+ return void_3;
961
+ }), ref);
962
+ });
963
+ var getState = (self, restore) => {
964
+ switch (self.state._tag) {
965
+ case "Closed": {
966
+ return interrupt3;
967
+ }
968
+ case "Acquired": {
969
+ const state = self.state;
970
+ state.refCount++;
971
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
972
+ }
973
+ case "Acquiring": {
974
+ const state = self.state;
975
+ state.awaiters++;
976
+ return awaitAcquiring(self, state, restore);
977
+ }
978
+ case "Empty": {
979
+ const acquiring = {
980
+ _tag: "Acquiring",
981
+ fiber: undefined,
982
+ awaiters: 1,
983
+ acquired: undefined
984
+ };
985
+ self.state = acquiring;
986
+ const scope = makeUnsafe6();
987
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
988
+ if (self.state !== acquiring) {
989
+ return interrupt3;
990
+ }
991
+ const state = {
992
+ _tag: "Acquired",
993
+ value,
994
+ scope,
995
+ fiber: undefined,
996
+ refCount: acquiring.awaiters,
997
+ invalidated: false
998
+ };
999
+ self.state = state;
1000
+ acquiring.acquired = state;
1001
+ return succeed6(state);
1002
+ }), onExit((exit) => {
1003
+ if (isSuccess2(exit))
1004
+ return void_3;
1005
+ if (self.state === acquiring)
1006
+ self.state = stateEmpty;
1007
+ return close(scope, exit);
1008
+ }));
1009
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1010
+ return awaitAcquiring(self, acquiring, restore);
1011
+ }
1012
+ }
1013
+ };
1014
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1015
+ const acquired = acquiring.acquired;
1016
+ if (acquired !== undefined) {
1017
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1018
+ }
1019
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1020
+ return void_3;
1021
+ self.state = stateEmpty;
1022
+ return interrupt(acquiring.fiber);
1023
+ });
1024
+ var get4 = (self_) => {
1025
+ const self = self_;
1026
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1027
+ };
1028
+ var release = (self, state) => {
1029
+ state.refCount--;
1030
+ if (state.refCount > 0) {
1031
+ return void_3;
1032
+ }
1033
+ const idleTimeToLive = self.idleTimeToLive;
1034
+ if (idleTimeToLive === undefined || state.invalidated) {
1035
+ if (self.state === state) {
1036
+ self.state = stateEmpty;
1037
+ }
1038
+ return close(state.scope, void_2);
1039
+ } else if (!isFinite(idleTimeToLive)) {
1040
+ return void_3;
1041
+ }
1042
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1043
+ if (self.state === state && state.refCount === 0) {
1044
+ self.state = stateEmpty;
1045
+ return ignoreCause(close(state.scope, void_2), {
1046
+ log: "Unhandled",
1047
+ message: "Unhandled error in RcRef finalizer"
1048
+ });
1049
+ }
1050
+ return void_3;
1051
+ })).pipe(ensuring2(sync2(() => {
1052
+ state.fiber = undefined;
1053
+ })), runForkWith(self.context), runIn(self.scope));
1054
+ return void_3;
1055
+ };
1056
+
1057
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1058
+ var make18 = make17;
1059
+ var get5 = get4;
1060
+
901
1061
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
902
- var makeUnsafe = makeUnsafe6;
903
- var make18 = make3;
1062
+ var makeUnsafe = makeUnsafe7;
1063
+ var make19 = make4;
904
1064
  var now2 = now;
905
1065
  var nowUnsafe2 = nowUnsafe;
906
1066
  var toDateUtc2 = toDateUtc;
@@ -1115,7 +1275,7 @@ var readableToPullUnsafe = (options) => {
1115
1275
  const readable = options.readable;
1116
1276
  const chunkSize = options.chunkSize ?? 4096;
1117
1277
  const closeOnDone = options.closeOnDone ?? true;
1118
- const exit = options.exit ?? make7(undefined);
1278
+ const exit = options.exit ?? make8(undefined);
1119
1279
  const latch = options.latch ?? makeUnsafe2(false);
1120
1280
  function onReadable() {
1121
1281
  latch.openUnsafe();
@@ -1219,7 +1379,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1219
1379
  windowsHide: true
1220
1380
  }, onExit);
1221
1381
  };
1222
- var make19 = /* @__PURE__ */ gen(function* () {
1382
+ var make20 = /* @__PURE__ */ gen(function* () {
1223
1383
  const fs = yield* FileSystem;
1224
1384
  const path = yield* Path;
1225
1385
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1679,7 +1839,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1679
1839
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1680
1840
  const toOption = options.to ?? "stdin";
1681
1841
  if (toOption === "stdin") {
1682
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1842
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1683
1843
  ...command.options,
1684
1844
  stdin: {
1685
1845
  ...stdinConfig,
@@ -1699,7 +1859,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1699
1859
  type: "input",
1700
1860
  stream: sourceStream
1701
1861
  };
1702
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1862
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1703
1863
  ...command.options,
1704
1864
  additionalFds: {
1705
1865
  ...existingFds,
@@ -1707,7 +1867,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1707
1867
  }
1708
1868
  })));
1709
1869
  } else {
1710
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1870
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1711
1871
  ...command.options,
1712
1872
  stdin: {
1713
1873
  ...stdinConfig,
@@ -1746,9 +1906,9 @@ var make19 = /* @__PURE__ */ gen(function* () {
1746
1906
  }
1747
1907
  }
1748
1908
  });
1749
- return make(spawnCommand);
1909
+ return make2(spawnCommand);
1750
1910
  });
1751
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1911
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1752
1912
  var flattenCommand = (command) => {
1753
1913
  const commands = [];
1754
1914
  const pipeOptions = [];
@@ -2309,10 +2469,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2309
2469
  var layer2 = layer7;
2310
2470
 
2311
2471
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2312
- var TypeId3 = "~effect/Stdio";
2313
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2314
- var make20 = (options) => ({
2315
- [TypeId3]: TypeId3,
2472
+ var TypeId4 = "~effect/Stdio";
2473
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2474
+ var make21 = (options) => ({
2475
+ [TypeId4]: TypeId4,
2316
2476
  stdinIsTerminal: succeed6(false),
2317
2477
  stdoutIsTerminal: succeed6(false),
2318
2478
  stderrIsTerminal: succeed6(false),
@@ -2320,7 +2480,7 @@ var make20 = (options) => ({
2320
2480
  });
2321
2481
 
2322
2482
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2323
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2483
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2324
2484
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2325
2485
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2326
2486
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2520,7 +2680,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2520
2680
  const uuid = bytes(randomBytes(16));
2521
2681
  return format === "bytes" ? uuid : stringify(uuid);
2522
2682
  };
2523
- var make21 = (randomBytes) => {
2683
+ var make22 = (randomBytes) => {
2524
2684
  const randomBytesChecked = (size) => {
2525
2685
  checkSize(size);
2526
2686
  return randomBytes(size);
@@ -2554,13 +2714,13 @@ var fillRandom = (crypto2, size) => {
2554
2714
  }
2555
2715
  return bytes;
2556
2716
  };
2557
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2717
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2558
2718
 
2559
2719
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2560
- var TypeId4 = "~effect/http/Cookies";
2720
+ var TypeId5 = "~effect/http/Cookies";
2561
2721
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2562
2722
  var Proto2 = {
2563
- [TypeId4]: TypeId4,
2723
+ [TypeId5]: TypeId5,
2564
2724
  ...BaseProto,
2565
2725
  toJSON() {
2566
2726
  return {
@@ -2739,14 +2899,14 @@ var tryDecodeURIComponent = (str) => {
2739
2899
  };
2740
2900
 
2741
2901
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2742
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2902
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2743
2903
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2744
- [TypeId5]: {
2745
- value: TypeId5
2904
+ [TypeId6]: {
2905
+ value: TypeId6
2746
2906
  },
2747
2907
  [symbolRedactable]: {
2748
2908
  value(context) {
2749
- return redact2(this, get4(context, CurrentRedactedNames));
2909
+ return redact2(this, get3(context, CurrentRedactedNames));
2750
2910
  }
2751
2911
  },
2752
2912
  toJSON: {
@@ -2771,7 +2931,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2771
2931
  value: BaseProto[NodeInspectSymbol]
2772
2932
  }
2773
2933
  });
2774
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2934
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2775
2935
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2776
2936
  var empty = /* @__PURE__ */ Object.create(Proto3);
2777
2937
  var fromInput = (input) => {
@@ -2796,21 +2956,21 @@ var fromInput = (input) => {
2796
2956
  };
2797
2957
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2798
2958
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2799
- const out = make22(self);
2959
+ const out = make23(self);
2800
2960
  out[key.toLowerCase()] = value;
2801
2961
  return out;
2802
2962
  });
2803
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2963
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2804
2964
  ...self,
2805
2965
  ...fromInput(headers)
2806
2966
  }));
2807
2967
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2808
- const out = make22(self);
2968
+ const out = make23(self);
2809
2969
  Object.assign(out, headers);
2810
2970
  return out;
2811
2971
  });
2812
2972
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2813
- const out = make22(self);
2973
+ const out = make23(self);
2814
2974
  delete out[key.toLowerCase()];
2815
2975
  return out;
2816
2976
  });
@@ -2822,12 +2982,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2822
2982
  if (typeof key === "string") {
2823
2983
  const k = key.toLowerCase();
2824
2984
  if (k in self) {
2825
- out[k] = make16(self[k]);
2985
+ out[k] = make(self[k]);
2826
2986
  }
2827
2987
  } else {
2828
2988
  for (const name in self) {
2829
2989
  if (name.search(key) !== -1) {
2830
- out[name] = make16(self[name]);
2990
+ out[name] = make(self[name]);
2831
2991
  }
2832
2992
  }
2833
2993
  }
@@ -2867,18 +3027,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2867
3027
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2868
3028
 
2869
3029
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2870
- var TypeId6 = "~effect/http/UrlParams";
2871
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3030
+ var TypeId7 = "~effect/http/UrlParams";
3031
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2872
3032
  var Proto4 = {
2873
3033
  ...PipeInspectableProto,
2874
- [TypeId6]: TypeId6,
3034
+ [TypeId7]: TypeId7,
2875
3035
  [Symbol.iterator]() {
2876
3036
  return this.params[Symbol.iterator]();
2877
3037
  },
2878
3038
  [symbolRedactable](context) {
2879
3039
  return {
2880
3040
  _id: "UrlParams",
2881
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3041
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2882
3042
  };
2883
3043
  },
2884
3044
  toJSON() {
@@ -2891,7 +3051,7 @@ var Proto4 = {
2891
3051
  return array(this.params.flat());
2892
3052
  }
2893
3053
  };
2894
- var make23 = (params) => {
3054
+ var make24 = (params) => {
2895
3055
  const self = Object.create(Proto4);
2896
3056
  self.params = params;
2897
3057
  return self;
@@ -2910,7 +3070,7 @@ var fromInput2 = (input) => {
2910
3070
  out.push(parsed[i]);
2911
3071
  }
2912
3072
  }
2913
- return make23(out);
3073
+ return make24(out);
2914
3074
  };
2915
3075
  var fromInputNested = (input) => {
2916
3076
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2936,7 +3096,7 @@ var fromInputNested = (input) => {
2936
3096
  var coerce = (value) => isRedacted(value) ? value : String(value);
2937
3097
  var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2938
3098
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2939
- var empty4 = /* @__PURE__ */ make23([]);
3099
+ var empty4 = /* @__PURE__ */ make24([]);
2940
3100
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2941
3101
  const params = fromInput2(input).params.slice();
2942
3102
  const keys = new Set;
@@ -2948,12 +3108,12 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2948
3108
  continue;
2949
3109
  params.push(self.params[i]);
2950
3110
  }
2951
- return make23(params);
3111
+ return make24(params);
2952
3112
  });
2953
3113
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2954
3114
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2955
3115
  const patterns = Array.isArray(key) ? key : [key];
2956
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
3116
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2957
3117
  });
2958
3118
  var isRedactedName2 = isRedactedName;
2959
3119
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3004,13 +3164,13 @@ var decodeQueryKey = (key) => {
3004
3164
  return key;
3005
3165
  }
3006
3166
  };
3007
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3167
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3008
3168
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3009
3169
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3010
3170
  });
3011
3171
 
3012
3172
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3013
- var TypeId7 = "~effect/Terminal";
3173
+ var TypeId8 = "~effect/Terminal";
3014
3174
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3015
3175
 
3016
3176
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3019,17 +3179,17 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3019
3179
  [QuitErrorTypeId] = QuitErrorTypeId;
3020
3180
  }
3021
3181
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3022
- var make24 = (impl) => Terminal.of({
3182
+ var make25 = (impl) => Terminal.of({
3023
3183
  ...impl,
3024
- [TypeId7]: TypeId7
3184
+ [TypeId8]: TypeId8
3025
3185
  });
3026
3186
 
3027
3187
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3028
3188
  import * as readline from "readline";
3029
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3189
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3030
3190
  const stdin = process.stdin;
3031
3191
  const stdout = process.stdout;
3032
- const lines = yield* make8();
3192
+ const lines = yield* make9();
3033
3193
  let inputEnded = stdin.readableEnded;
3034
3194
  let readlineActive = false;
3035
3195
  const onStdinEnd = () => {
@@ -3040,7 +3200,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3040
3200
  };
3041
3201
  stdin.once("end", onStdinEnd);
3042
3202
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3043
- const rlRef = yield* make9({
3203
+ const rlRef = yield* make18({
3044
3204
  acquire: acquireRelease(sync2(() => {
3045
3205
  const rl = readline.createInterface({
3046
3206
  input: stdin,
@@ -3079,7 +3239,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3079
3239
  if (stdin.isTTY)
3080
3240
  stdin.setRawMode(enabled);
3081
3241
  });
3082
- const rawModeRef = yield* make9({
3242
+ const rawModeRef = yield* make18({
3083
3243
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3084
3244
  idleTimeToLive: "10 millis"
3085
3245
  });
@@ -3100,7 +3260,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3100
3260
  return queue;
3101
3261
  });
3102
3262
  const readInput = gen(function* () {
3103
- const queue = yield* make8();
3263
+ const queue = yield* make9();
3104
3264
  const handleKeypress = (s, k) => {
3105
3265
  const userInput = {
3106
3266
  input: fromUndefinedOr(s),
@@ -3130,14 +3290,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3130
3290
  if (inputEnded) {
3131
3291
  handleEnd();
3132
3292
  } else {
3133
- yield* get3(rlRef);
3134
- yield* get3(rawModeRef);
3293
+ yield* get5(rlRef);
3294
+ yield* get5(rawModeRef);
3135
3295
  stdin.once("end", handleEnd);
3136
3296
  }
3137
3297
  return queue;
3138
3298
  });
3139
3299
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3140
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3300
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3141
3301
  onSome: succeed6
3142
3302
  })), mapError2(() => new QuitError({}))));
3143
3303
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3148,7 +3308,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3148
3308
  cause: err
3149
3309
  }))));
3150
3310
  }));
3151
- return make24({
3311
+ return make25({
3152
3312
  columns,
3153
3313
  rows,
3154
3314
  size,
@@ -3157,7 +3317,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3157
3317
  display
3158
3318
  });
3159
3319
  });
3160
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3320
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3161
3321
  function defaultShouldQuit(input) {
3162
3322
  const key = input.key;
3163
3323
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3184,7 +3344,7 @@ function toDate(input) {
3184
3344
  return toDateUtc2(makeUnsafe(input));
3185
3345
  }
3186
3346
  function parseDate(input) {
3187
- return getOrUndefined(map4(make18(input), toDateUtc2));
3347
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3188
3348
  }
3189
3349
  function toIso(input) {
3190
3350
  return formatIso(makeUnsafe(input));
@@ -6178,6 +6338,7 @@ var RunEvidence = Struct({
6178
6338
  durationMs: Int.check(isGreaterThanOrEqualTo(0)),
6179
6339
  outputTail: String4,
6180
6340
  fileIds: optionalKey(ArraySchema(String4)),
6341
+ failedTests: optionalKey(ArraySchema(String4)),
6181
6342
  skippedSinceBaseline: optionalKey(ArraySchema(String4)),
6182
6343
  newNotRun: optionalKey(ArraySchema(String4)),
6183
6344
  recordedAt: Timestamp
@@ -6508,6 +6669,8 @@ var RunStepSummary = Struct({
6508
6669
  failureSummary: optionalKey(String4),
6509
6670
  output: optionalKey(Unknown),
6510
6671
  revision: optionalKey(String4),
6672
+ harness: optionalKey(String4),
6673
+ model: optionalKey(String4),
6511
6674
  tokens: optionalKey(AttemptTokens)
6512
6675
  })),
6513
6676
  tokens: optionalKey(TokenUsage)
@@ -6742,13 +6905,16 @@ var isTestReportName = (name) => /junit.*\.xml$/iu.test(name);
6742
6905
  var maxSkippedTests = 1e4;
6743
6906
  var maxRanDigests = 1e5;
6744
6907
  var TestId = String4.check(isMinLength(1), isMaxLength(1000));
6908
+ var maxFailedTests = 50;
6909
+ var maxFailedTestLength = 300;
6745
6910
  var CheckTests = Struct({
6746
6911
  reports: Int.check(isGreaterThanOrEqualTo(0)),
6747
6912
  passed: Int.check(isGreaterThanOrEqualTo(0)),
6748
6913
  failed: Int.check(isGreaterThanOrEqualTo(0)),
6749
6914
  skipped: Int.check(isGreaterThanOrEqualTo(0)),
6750
6915
  skippedTests: ArraySchema(TestId).check(isMaxLength(maxSkippedTests)),
6751
- ranDigests: ArraySchema(String4.check(isMaxLength(16))).check(isMaxLength(maxRanDigests))
6916
+ ranDigests: ArraySchema(String4.check(isMaxLength(16))).check(isMaxLength(maxRanDigests)),
6917
+ failedTests: optionalKey(ArraySchema(String4.check(isMinLength(1), isMaxLength(maxFailedTestLength))).check(isMaxLength(maxFailedTests)))
6752
6918
  });
6753
6919
  var entities = new Map([
6754
6920
  ["amp", "&"],
@@ -6785,7 +6951,98 @@ var fnv1a = (text, seed) => {
6785
6951
  return hash.toString(16).padStart(8, "0");
6786
6952
  };
6787
6953
  var testDigest = (id) => `${fnv1a(id, 2166136261)}${fnv1a(id, 84696351)}`;
6788
- var checkTests = (reports) => {
6954
+ var scriptPrefix = /^(?:[^|]{1,300} \| |\S+ [\w:.-]+: )/u;
6955
+ var failedTestLines = [
6956
+ /^\(fail\) (.+?)(?: \[[\d.]+ ?m?s\])?$/su,
6957
+ /^\u25CF (?=.+? \u203A .)(.+)$/su,
6958
+ /^FAILED (\S+?::(?:[^[]+?(?:\[.*?\])?|.+?))(?: - .*)?$/su,
6959
+ /^--- FAIL: (\S+)/u,
6960
+ /^test (.+) \.\.\. FAILED$/su,
6961
+ /^not ok \d+ (?:- )?(?!.*# (?:TODO|SKIP)\b)(.+)$/isu
6962
+ ];
6963
+ var failedFileStart = String.raw`FAIL +(?:\|[^|]+\| *)?(?! )(?!\S*:\/\/)`;
6964
+ var afterPath = String.raw` > | \[ `;
6965
+ var failedFilePaths = [
6966
+ String.raw`\S*\.[A-Za-z]\w*(?=[\s:]|$)`,
6967
+ String.raw`(?=\S*[A-Za-z])(?=\S*\/)\S+(?=${afterPath}|$)`,
6968
+ String.raw`(?:(?!${afterPath}).)*\.[A-Za-z]\w*(?=${afterPath})`,
6969
+ String.raw`(?=\S*\/)(?:(?!${afterPath}).)*\.[A-Za-z]\w*$`,
6970
+ String.raw`(?=.*(?:\.(?:test|spec)\.|\b__tests__\/))(?:(?!${afterPath}).)*\.[cm]?[jt]sx?$`
6971
+ ];
6972
+ var failedFileLine = new RegExp(`^${failedFileStart}((?:${failedFilePaths.join("|")}).*)$`, "su");
6973
+ var jestFileStats = /^((?:(?! > ).)*) \((?:[\d.]+ m?s(?:, \d+ MB heap size)?|\d+ MB heap size)\)$/su;
6974
+ var isPathOf = (file, path) => `/${file}`.endsWith(`/${path.replace(/^(?:\.\.\/)+/u, "")}`);
6975
+ var withoutRepeatedPath = (name) => (name.endsWith(" ]") ? [...name.matchAll(/ \[ /gu)] : []).map(({ index }) => name.slice(0, index)).find((path) => isPathOf(name.slice(path.length + 3, -2), path)) ?? name;
6976
+ var paddedLabels = /^FAIL {2}(?:\|[^|]+\| )?(?: \S+(?: \S+)* {2})+/u;
6977
+ var failedFileTest = (text) => {
6978
+ const name = failedFileLine.exec(text.replace(paddedLabels, "FAIL ").replace(jestFileStats, "$1"))?.[1];
6979
+ return name === undefined ? undefined : withoutRepeatedPath(name);
6980
+ };
6981
+ var maxLineLength = 1000;
6982
+ var ansiColours = /\u001B\[[\d;]*m/gu;
6983
+ var failedTestOfLine = (line) => {
6984
+ const printed = line.slice(0, maxLineLength).replaceAll(ansiColours, "");
6985
+ const unprefixed = printed.replace(scriptPrefix, "");
6986
+ return [printed, unprefixed, unprefixed.replace(scriptPrefix, "")].map((text) => text.trim()).flatMap((text) => [failedFileTest(text), ...failedTestLines.map((pattern) => pattern.exec(text)?.[1]?.trim())]).find((name) => name !== undefined && name !== "");
6987
+ };
6988
+ var namedTest = (name) => {
6989
+ const at = name.indexOf(" > ");
6990
+ return at === -1 ? { name, file: name, path: "" } : { name, file: name.slice(0, at), path: name.slice(at + 3) };
6991
+ };
6992
+ var reportedTest = (name) => {
6993
+ const test = namedTest(name);
6994
+ return test.path !== "" && isPathOf(test.file, test.path) ? namedTest(test.file) : test;
6995
+ };
6996
+ var byPath = (tests) => {
6997
+ const grouped = new Map;
6998
+ for (const test of tests) {
6999
+ const found = grouped.get(test.path);
7000
+ if (found === undefined)
7001
+ grouped.set(test.path, [test]);
7002
+ else
7003
+ found.push(test);
7004
+ }
7005
+ return grouped;
7006
+ };
7007
+ var holds = (tests, test) => (tests.get(test.path) ?? []).some(({ file }) => isPathOf(file, test.file) || isPathOf(test.file, file));
7008
+ var attempt = String.raw`(?:\d+ times in )?(?:initial run|\d+[a-z]{2} (?:retry(?: of \d+[a-z]{2} repeat)?|repeat))`;
7009
+ var vitestAttempts = new RegExp(String.raw` \(${attempt}(?:, ${attempt})*\)$`, "u");
7010
+ var vitestTimes = / \(\d+ times\)$/u;
7011
+ var printedTest = (reports) => (name) => {
7012
+ const whole = namedTest(name);
7013
+ const attempted = /[./]/u.test(whole.file) ? namedTest(name.replace(vitestAttempts, "")) : whole;
7014
+ return [whole, attempted, namedTest(name.replace(vitestTimes, ""))].find((test) => holds(reports, test)) ?? attempted;
7015
+ };
7016
+ var namesWithoutFile = ({ path }) => {
7017
+ const parts = path.split(" > ");
7018
+ return [path, [...parts.slice(0, -1).reverse(), ...parts.slice(-1)].join(" > ")];
7019
+ };
7020
+ var spaced = (name) => name.replaceAll(/ [>\u203A] /gu, " ");
7021
+ var reportedForms = ({ name, path }) => [name, path].map((text) => [text, namedTest(text)]).map(([text, test]) => test.file === test.path ? test.file : text).flatMap((text) => [spaced(text), text.replace(" > ", ".")]);
7022
+ var printedForm = (name) => {
7023
+ if (name.includes(" \u203A "))
7024
+ return spaced(name);
7025
+ const [, file, names, rest] = /^(\S+?)\.py::([^[]*)(.*)$/su.exec(name) ?? [];
7026
+ return file === undefined || names === undefined ? undefined : `${file.replaceAll("/", ".")}.${names.replaceAll("::", ".")}${rest ?? ""}`;
7027
+ };
7028
+ var failedTestsOf = (reported, printed) => {
7029
+ const reports = [...new Set(reported)].map(reportedTest);
7030
+ const reportsByPath = byPath(reports);
7031
+ const prints = [...new Set(printed)].map(printedTest(reportsByPath));
7032
+ const printsByPath = byPath(prints);
7033
+ const unprinted = reports.filter((test) => !holds(printsByPath, test));
7034
+ const namedWithoutFile = new Set(unprinted.flatMap(namesWithoutFile));
7035
+ const namedInForm = new Set(unprinted.flatMap(reportedForms));
7036
+ const unreported = prints.filter((test) => !holds(reportsByPath, test) && !namedWithoutFile.has(test.name) && !namedInForm.has(printedForm(test.name)));
7037
+ const named = new Set;
7038
+ for (const { name } of [...reports, ...unreported]) {
7039
+ if (named.size === maxFailedTests)
7040
+ break;
7041
+ named.add(redactCredentials(name).slice(0, maxFailedTestLength));
7042
+ }
7043
+ return [...named];
7044
+ };
7045
+ var checkTests = (reports, printed = []) => {
6789
7046
  const rank = { passed: 0, skipped: 1, failed: 2 };
6790
7047
  const tests = new Map;
6791
7048
  for (const found of reports.flatMap(junitTestCases)) {
@@ -6795,13 +7052,15 @@ var checkTests = (reports) => {
6795
7052
  }
6796
7053
  const of = (status) => [...tests].flatMap(([id, is]) => is === status ? [id] : []);
6797
7054
  const skipped = of("skipped").sort();
7055
+ const failedTests = failedTestsOf(of("failed"), printed);
6798
7056
  return {
6799
7057
  reports: reports.length,
6800
7058
  passed: of("passed").length,
6801
7059
  failed: of("failed").length,
6802
7060
  skipped: skipped.length,
6803
7061
  skippedTests: skipped.slice(0, maxSkippedTests),
6804
- ranDigests: [...of("passed"), ...of("failed")].map(testDigest).sort().slice(0, maxRanDigests)
7062
+ ranDigests: [...of("passed"), ...of("failed")].map(testDigest).sort().slice(0, maxRanDigests),
7063
+ ...failedTests.length === 0 ? undefined : { failedTests }
6805
7064
  };
6806
7065
  };
6807
7066
 
@@ -7106,7 +7365,8 @@ var RunnerProblemCodes = [
7106
7365
  "update_required",
7107
7366
  "processes_unreaped",
7108
7367
  "processes_uncontained",
7109
- "full_access_refused"
7368
+ "full_access_refused",
7369
+ "cli_session_expired"
7110
7370
  ];
7111
7371
  var RunnerProblemText = String4.check(isMinLength(1), isMaxLength(500));
7112
7372
  var RunnerProblemReport = Struct({
@@ -9653,11 +9913,11 @@ var TranscriptSearchResult = Struct({
9653
9913
  total: Int
9654
9914
  });
9655
9915
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9656
- var TypeId8 = "~effect/http/HttpBody";
9916
+ var TypeId9 = "~effect/http/HttpBody";
9657
9917
  class Proto5 {
9658
- [TypeId8];
9918
+ [TypeId9];
9659
9919
  constructor() {
9660
- this[TypeId8] = TypeId8;
9920
+ this[TypeId9] = TypeId9;
9661
9921
  }
9662
9922
  [NodeInspectSymbol]() {
9663
9923
  return this.toJSON();
@@ -9748,7 +10008,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9748
10008
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9749
10009
 
9750
10010
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9751
- var TypeId9 = "~effect/http/HttpClientError";
10011
+ var TypeId10 = "~effect/http/HttpClientError";
9752
10012
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9753
10013
  constructor(props) {
9754
10014
  if ("cause" in props.reason) {
@@ -9760,7 +10020,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9760
10020
  super(props);
9761
10021
  }
9762
10022
  }
9763
- [TypeId9] = TypeId9;
10023
+ [TypeId10] = TypeId10;
9764
10024
  get request() {
9765
10025
  return this.reason.request;
9766
10026
  }
@@ -9864,7 +10124,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9864
10124
  }
9865
10125
  }
9866
10126
 
9867
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
10127
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9868
10128
  _tag: /* @__PURE__ */ tag("HttpError"),
9869
10129
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9870
10130
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9897,7 +10157,7 @@ var updateContentLength = (headers, body) => {
9897
10157
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9898
10158
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9899
10159
  }
9900
- var make26 = (url, params, hash) => try_({
10160
+ var make27 = (url, params, hash) => try_({
9901
10161
  try: () => {
9902
10162
  const urlInstance = new URL(url, baseUrl());
9903
10163
  for (let i = 0;i < params.params.length; i++) {
@@ -9928,10 +10188,10 @@ var baseUrl = () => {
9928
10188
  };
9929
10189
 
9930
10190
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9931
- var TypeId10 = "~effect/http/HttpClientRequest";
9932
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
10191
+ var TypeId11 = "~effect/http/HttpClientRequest";
10192
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9933
10193
  var Proto6 = {
9934
- [TypeId10]: TypeId10,
10194
+ [TypeId11]: TypeId11,
9935
10195
  ...BaseProto,
9936
10196
  toJSON() {
9937
10197
  return {
@@ -9959,14 +10219,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
9959
10219
  return self;
9960
10220
  }
9961
10221
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
9962
- var make4 = (method) => (url, options) => modify(empty6, {
10222
+ var make5 = (method) => (url, options) => modify(empty6, {
9963
10223
  method,
9964
10224
  url,
9965
10225
  ...options ?? undefined
9966
10226
  });
9967
- var get = /* @__PURE__ */ make4("GET");
9968
- var post = /* @__PURE__ */ make4("POST");
9969
- var put = /* @__PURE__ */ make4("PUT");
10227
+ var get = /* @__PURE__ */ make5("GET");
10228
+ var post = /* @__PURE__ */ make5("POST");
10229
+ var put = /* @__PURE__ */ make5("PUT");
9970
10230
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
9971
10231
  let result = self;
9972
10232
  if (options.method) {
@@ -10020,7 +10280,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
10020
10280
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
10021
10281
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
10022
10282
  function toUrl(self) {
10023
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
10283
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
10024
10284
  if (isSuccess(r)) {
10025
10285
  return some(r.success);
10026
10286
  }
@@ -10028,7 +10288,7 @@ function toUrl(self) {
10028
10288
  }
10029
10289
 
10030
10290
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
10031
- var TypeId11 = "~effect/http/HttpIncomingMessage";
10291
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
10032
10292
  var schemaBodyJson = (schema, options) => {
10033
10293
  const decode = decodeEffect(toCodecJson(schema));
10034
10294
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -10047,7 +10307,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
10047
10307
  var getWebSource = (self) => self[WebSourceSymbol]?.();
10048
10308
 
10049
10309
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
10050
- var TypeId12 = "~effect/http/HttpClientResponse";
10310
+ var TypeId13 = "~effect/http/HttpClientResponse";
10051
10311
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
10052
10312
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
10053
10313
  reason: new StatusCodeError({
@@ -10058,16 +10318,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
10058
10318
  }));
10059
10319
 
10060
10320
  class WebHttpClientResponse extends Class {
10061
- [TypeId11];
10062
10321
  [TypeId12];
10322
+ [TypeId13];
10063
10323
  request;
10064
10324
  source;
10065
10325
  constructor(request, source) {
10066
10326
  super();
10067
10327
  this.request = request;
10068
10328
  this.source = source;
10069
- this[TypeId11] = TypeId11;
10070
10329
  this[TypeId12] = TypeId12;
10330
+ this[TypeId13] = TypeId13;
10071
10331
  }
10072
10332
  toJSON() {
10073
10333
  return inspect(this, {
@@ -10239,7 +10499,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10239
10499
  };
10240
10500
 
10241
10501
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10242
- var TypeId13 = "~effect/http/HttpClient";
10502
+ var TypeId14 = "~effect/http/HttpClient";
10243
10503
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10244
10504
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10245
10505
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10256,7 +10516,7 @@ var makeWith2 = (postprocess, preprocess) => {
10256
10516
  return self;
10257
10517
  };
10258
10518
  var Proto7 = {
10259
- [TypeId13]: TypeId13,
10519
+ [TypeId14]: TypeId14,
10260
10520
  pipe() {
10261
10521
  return pipeArguments(this, arguments);
10262
10522
  },
@@ -10267,13 +10527,13 @@ var Proto7 = {
10267
10527
  };
10268
10528
  },
10269
10529
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
10270
- return this.execute(make4(fullMethod)(url, options));
10530
+ return this.execute(make5(fullMethod)(url, options));
10271
10531
  }]))
10272
10532
  };
10273
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10533
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10274
10534
  const scopedController = scopedRequests.get(request);
10275
10535
  const controller = scopedController ?? new AbortController;
10276
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10536
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10277
10537
  if (isFailure(urlResult)) {
10278
10538
  return fail7(new HttpClientError({
10279
10539
  reason: new InvalidUrlError({
@@ -10407,8 +10667,8 @@ class InterruptibleResponse {
10407
10667
  this.original = original;
10408
10668
  this.controller = controller;
10409
10669
  }
10670
+ [TypeId13] = TypeId13;
10410
10671
  [TypeId12] = TypeId12;
10411
- [TypeId11] = TypeId11;
10412
10672
  applyInterrupt(effect) {
10413
10673
  return suspend3(() => {
10414
10674
  responseRegistry.unregister(this.original);
@@ -10506,7 +10766,7 @@ var detectStreamBodySupport = () => {
10506
10766
  return false;
10507
10767
  }
10508
10768
  };
10509
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10769
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10510
10770
  if (request.headers.upgrade !== undefined) {
10511
10771
  return fail7(new HttpClientError({
10512
10772
  reason: new TransportError({
@@ -10597,10 +10857,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10597
10857
  });
10598
10858
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10599
10859
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10600
- var TypeId14 = "~effect/socket/Socket";
10860
+ var TypeId15 = "~effect/socket/Socket";
10601
10861
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10602
- var make28 = (options) => Socket.of({
10603
- [TypeId14]: TypeId14,
10862
+ var make29 = (options) => Socket.of({
10863
+ [TypeId15]: TypeId15,
10604
10864
  reader: options.reader,
10605
10865
  writer: options.writer
10606
10866
  });
@@ -10923,7 +11183,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10923
11183
  write,
10924
11184
  writeAll
10925
11185
  });
10926
- return succeed6(make28({
11186
+ return succeed6(make29({
10927
11187
  reader,
10928
11188
  writer
10929
11189
  }));
@@ -13878,7 +14138,7 @@ function getStreamSchemas(schema) {
13878
14138
  }
13879
14139
  var schema = /* @__PURE__ */ declare(isStream);
13880
14140
  function Stream(success, error) {
13881
- return make17(schema.ast, {
14141
+ return make16(schema.ast, {
13882
14142
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13883
14143
  success,
13884
14144
  error
@@ -13886,9 +14146,9 @@ function Stream(success, error) {
13886
14146
  }
13887
14147
 
13888
14148
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13889
- var TypeId15 = "~effect/rpc/Rpc";
14149
+ var TypeId16 = "~effect/rpc/Rpc";
13890
14150
  var Proto8 = {
13891
- [TypeId15]: TypeId15,
14151
+ [TypeId16]: TypeId16,
13892
14152
  pipe() {
13893
14153
  return pipeArguments(this, arguments);
13894
14154
  },
@@ -13977,7 +14237,7 @@ var makeProto = (options) => {
13977
14237
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
13978
14238
  return Rpc;
13979
14239
  };
13980
- var make5 = (tag, options) => {
14240
+ var make6 = (tag, options) => {
13981
14241
  const successSchema = options?.success ?? Void;
13982
14242
  const errorSchema = options?.error ?? Never;
13983
14243
  const defectSchema = options?.defect ?? Defect();
@@ -14055,7 +14315,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
14055
14315
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
14056
14316
 
14057
14317
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
14058
- var TypeId16 = "~effect/rpc/RpcClientError";
14318
+ var TypeId17 = "~effect/rpc/RpcClientError";
14059
14319
 
14060
14320
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
14061
14321
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -14064,11 +14324,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
14064
14324
  })) {
14065
14325
  }
14066
14326
 
14067
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
14327
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
14068
14328
  _tag: /* @__PURE__ */ tag("RpcClientError"),
14069
14329
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
14070
14330
  })) {
14071
- [TypeId16] = TypeId16;
14331
+ [TypeId17] = TypeId17;
14072
14332
  get message() {
14073
14333
  return `${this.reason._tag}: ${this.reason.message}`;
14074
14334
  }
@@ -14211,12 +14471,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
14211
14471
  requests: options.requests,
14212
14472
  annotations: options.annotations
14213
14473
  });
14214
- var make6 = (...rpcs) => makeProto2({
14474
+ var make7 = (...rpcs) => makeProto2({
14215
14475
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
14216
14476
  annotations: empty3()
14217
14477
  });
14218
14478
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
14219
- var TypeId17 = "~effect/rpc/RpcMiddleware";
14479
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
14220
14480
  var Service = () => (id, options) => {
14221
14481
  const limit = getStackTraceLimit();
14222
14482
  let creationError;
@@ -14234,7 +14494,7 @@ var Service = () => (id, options) => {
14234
14494
  return creationError?.stack;
14235
14495
  }
14236
14496
  });
14237
- ServiceClass_[TypeId17] = TypeId17;
14497
+ ServiceClass_[TypeId18] = TypeId18;
14238
14498
  ServiceClass_.error = options?.error ?? Never;
14239
14499
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
14240
14500
  return ServiceClass;
@@ -14317,96 +14577,96 @@ var ProgramOutcome = Union([
14317
14577
  Struct({ status: Literal("failed"), failureSummary: String4 })
14318
14578
  ]);
14319
14579
 
14320
- class RunnerReplicaRpcs extends make6(make5("Claim", {
14580
+ class RunnerReplicaRpcs extends make7(make6("Claim", {
14321
14581
  payload: WorkUnitClaimInput,
14322
14582
  success: WorkUnitClaimResult,
14323
14583
  error: RunnerRpcError
14324
- }), make5("Heartbeat", {
14584
+ }), make6("Heartbeat", {
14325
14585
  payload: WorkUnitHeartbeatInput,
14326
14586
  success: WorkUnitHeartbeatResult,
14327
14587
  error: RunnerRpcError
14328
- }), make5("Complete", {
14588
+ }), make6("Complete", {
14329
14589
  payload: WorkUnitCompletion,
14330
14590
  error: RunnerRpcError
14331
- }), make5("Release", {
14591
+ }), make6("Release", {
14332
14592
  payload: WorkUnitReleaseInput,
14333
14593
  error: RunnerRpcError
14334
- }), make5("Signals", {
14594
+ }), make6("Signals", {
14335
14595
  payload: { runnerReplicaId: String4 },
14336
14596
  success: RunnerSignal,
14337
14597
  error: RunnerRpcError,
14338
14598
  stream: true
14339
- }), make5("ReportSteer", {
14599
+ }), make6("ReportSteer", {
14340
14600
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
14341
14601
  success: Void,
14342
14602
  error: RunnerRpcError
14343
- }), make5("AppendTranscript", {
14603
+ }), make6("AppendTranscript", {
14344
14604
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
14345
14605
  success: Void,
14346
14606
  error: RunnerRpcError
14347
- }), make5("CreateCheckpointFile", {
14607
+ }), make6("CreateCheckpointFile", {
14348
14608
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
14349
14609
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14350
14610
  error: Union([RunnerRpcError, RunFileRefused])
14351
- }), make5("CheckpointFileParts", {
14611
+ }), make6("CheckpointFileParts", {
14352
14612
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14353
14613
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14354
14614
  error: RunnerRpcError
14355
- }), make5("CompleteCheckpointFile", {
14615
+ }), make6("CompleteCheckpointFile", {
14356
14616
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14357
14617
  success: RunFileRecord,
14358
14618
  error: RunnerRpcError
14359
- }), make5("SaveCheckpoint", {
14619
+ }), make6("SaveCheckpoint", {
14360
14620
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
14361
14621
  success: Void,
14362
14622
  error: RunnerRpcError
14363
- }), make5("ResumeCheckpoint", {
14623
+ }), make6("ResumeCheckpoint", {
14364
14624
  payload: { lease: ProgramLease },
14365
14625
  success: UndefinedOr(ResumedCheckpoint),
14366
14626
  error: RunnerRpcError
14367
- }), make5("SettledCheckpoints", {
14627
+ }), make6("SettledCheckpoints", {
14368
14628
  success: ArraySchema(Struct({
14369
14629
  stepAttemptId: String4,
14370
14630
  ref: optionalKey(String4),
14371
14631
  repoBinding: optionalKey(WorkUnitRepoBinding)
14372
14632
  })),
14373
14633
  error: RunnerRpcError
14374
- }), make5("ForgetCheckpoints", {
14634
+ }), make6("ForgetCheckpoints", {
14375
14635
  payload: { stepAttemptIds: ArraySchema(String4) },
14376
14636
  success: Void,
14377
14637
  error: RunnerRpcError
14378
- }), make5("GitCredential", {
14638
+ }), make6("GitCredential", {
14379
14639
  payload: { repoBindingId: String4 },
14380
14640
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
14381
14641
  error: RunnerRpcError
14382
- }), make5("Bundle", {
14642
+ }), make6("Bundle", {
14383
14643
  payload: { digest: String4 },
14384
14644
  success: Struct({ bundle: String4 }),
14385
14645
  error: RunnerRpcError
14386
- }), make5("SettledRuns", {
14646
+ }), make6("SettledRuns", {
14387
14647
  payload: { runIds: ArraySchema(String4) },
14388
14648
  success: ArraySchema(String4),
14389
14649
  error: RunnerRpcError
14390
- }), make5("KnownEvidence", {
14650
+ }), make6("KnownEvidence", {
14391
14651
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
14392
14652
  success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
14393
14653
  error: RunnerRpcError
14394
14654
  })).middleware(RunnerAuthentication) {
14395
14655
  }
14396
14656
 
14397
- class RunnerJournalRpcs extends make6(make5("RecordActivity", {
14657
+ class RunnerJournalRpcs extends make7(make6("RecordActivity", {
14398
14658
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
14399
14659
  error: RunnerRpcError
14400
- }), make5("DeferredDone", {
14660
+ }), make6("DeferredDone", {
14401
14661
  payload: { lease: ProgramLease, name: String4, exit: Json },
14402
14662
  error: RunnerRpcError
14403
- }), make5("ScheduleClock", {
14663
+ }), make6("ScheduleClock", {
14404
14664
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
14405
14665
  error: RunnerRpcError
14406
- }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
14666
+ }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
14407
14667
  }
14408
14668
 
14409
- class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14669
+ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14410
14670
  payload: {
14411
14671
  lease: ProgramLease,
14412
14672
  step: String4,
@@ -14426,7 +14686,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14426
14686
  },
14427
14687
  success: Struct({ questionId: String4 }),
14428
14688
  error: RunnerRpcError
14429
- }), make5("StartAgentStep", {
14689
+ }), make6("StartAgentStep", {
14430
14690
  payload: {
14431
14691
  lease: ProgramLease,
14432
14692
  step: String4,
@@ -14442,7 +14702,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14442
14702
  },
14443
14703
  success: Struct({ stepAttemptId: String4 }),
14444
14704
  error: RunnerRpcError
14445
- }), make5("StartVerification", {
14705
+ }), make6("StartVerification", {
14446
14706
  payload: {
14447
14707
  lease: ProgramLease,
14448
14708
  step: String4,
@@ -14463,7 +14723,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14463
14723
  },
14464
14724
  success: Struct({ verificationId: String4 }),
14465
14725
  error: RunnerRpcError
14466
- }), make5("AwaitEvent", {
14726
+ }), make6("AwaitEvent", {
14467
14727
  payload: {
14468
14728
  lease: ProgramLease,
14469
14729
  step: String4,
@@ -14479,7 +14739,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14479
14739
  })))
14480
14740
  },
14481
14741
  error: RunnerRpcError
14482
- }), make5("ClaimResource", {
14742
+ }), make6("ClaimResource", {
14483
14743
  payload: {
14484
14744
  lease: ProgramLease,
14485
14745
  step: String4,
@@ -14488,7 +14748,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14488
14748
  action: Literals(["claim", "take_over", "let_go"])
14489
14749
  },
14490
14750
  error: RunnerRpcError
14491
- }), make5("AdmitChild", {
14751
+ }), make6("AdmitChild", {
14492
14752
  payload: {
14493
14753
  lease: ProgramLease,
14494
14754
  step: String4,
@@ -14499,7 +14759,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14499
14759
  },
14500
14760
  success: Struct({ runId: String4 }),
14501
14761
  error: RunnerRpcError
14502
- }), make5("StoreArtifact", {
14762
+ }), make6("StoreArtifact", {
14503
14763
  payload: {
14504
14764
  lease: ProgramLease,
14505
14765
  step: String4,
@@ -14511,7 +14771,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14511
14771
  },
14512
14772
  success: Struct({ artifactId: String4 }),
14513
14773
  error: RunnerRpcError
14514
- }), make5("RecordNote", {
14774
+ }), make6("RecordNote", {
14515
14775
  payload: {
14516
14776
  lease: ProgramLease,
14517
14777
  step: String4,
@@ -14520,7 +14780,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14520
14780
  kind: optional(Literals(["note", "blocker"]))
14521
14781
  },
14522
14782
  error: RunnerRpcError
14523
- }), make5("PerformHostEffect", {
14783
+ }), make6("PerformHostEffect", {
14524
14784
  payload: {
14525
14785
  lease: ProgramLease,
14526
14786
  step: String4,
@@ -14549,7 +14809,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14549
14809
  },
14550
14810
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
14551
14811
  error: RunnerRpcError
14552
- }), make5("AlertTask", {
14812
+ }), make6("AlertTask", {
14553
14813
  payload: {
14554
14814
  lease: ProgramLease,
14555
14815
  step: String4,
@@ -14566,7 +14826,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14566
14826
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
14567
14827
  }),
14568
14828
  error: RunnerRpcError
14569
- }), make5("ReadTranscripts", {
14829
+ }), make6("ReadTranscripts", {
14570
14830
  payload: {
14571
14831
  lease: ProgramLease,
14572
14832
  step: String4,
@@ -14601,7 +14861,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14601
14861
  })))
14602
14862
  }),
14603
14863
  error: RunnerRpcError
14604
- }), make5("PipelineStatus", {
14864
+ }), make6("PipelineStatus", {
14605
14865
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14606
14866
  success: Struct({
14607
14867
  head: String4,
@@ -14635,11 +14895,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14635
14895
  }))
14636
14896
  }),
14637
14897
  error: RunnerRpcError
14638
- }), make5("ReportPipeline", {
14898
+ }), make6("ReportPipeline", {
14639
14899
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
14640
14900
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
14641
14901
  error: RunnerRpcError
14642
- }), make5("ReviewThreads", {
14902
+ }), make6("ReviewThreads", {
14643
14903
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14644
14904
  success: Struct({
14645
14905
  threads: ArraySchema(Struct({
@@ -14651,7 +14911,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14651
14911
  }))
14652
14912
  }),
14653
14913
  error: RunnerRpcError
14654
- }), make5("OpenChangeRequests", {
14914
+ }), make6("OpenChangeRequests", {
14655
14915
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
14656
14916
  success: Struct({
14657
14917
  changeRequests: ArraySchema(Struct({
@@ -14665,7 +14925,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14665
14925
  }))
14666
14926
  }),
14667
14927
  error: RunnerRpcError
14668
- }), make5("OwnChangeRequests", {
14928
+ }), make6("OwnChangeRequests", {
14669
14929
  payload: { lease: ProgramLease, step: String4 },
14670
14930
  success: Struct({
14671
14931
  changeRequests: ArraySchema(Struct({
@@ -14678,7 +14938,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14678
14938
  }))
14679
14939
  }),
14680
14940
  error: RunnerRpcError
14681
- }), make5("Propose", {
14941
+ }), make6("Propose", {
14682
14942
  payload: {
14683
14943
  lease: ProgramLease,
14684
14944
  step: String4,
@@ -14707,7 +14967,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14707
14967
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
14708
14968
  }),
14709
14969
  error: RunnerRpcError
14710
- }), make5("ReadProject", {
14970
+ }), make6("ReadProject", {
14711
14971
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
14712
14972
  success: Struct({
14713
14973
  project: Struct({ id: String4, name: String4 }),
@@ -14730,7 +14990,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14730
14990
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
14731
14991
  }),
14732
14992
  error: RunnerRpcError
14733
- }), make5("DraftUpdate", {
14993
+ }), make6("DraftUpdate", {
14734
14994
  payload: {
14735
14995
  lease: ProgramLease,
14736
14996
  step: String4,
@@ -14745,7 +15005,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14745
15005
  },
14746
15006
  success: Struct({ id: String4 }),
14747
15007
  error: RunnerRpcError
14748
- }), make5("CreatePlanTasks", {
15008
+ }), make6("CreatePlanTasks", {
14749
15009
  payload: {
14750
15010
  lease: ProgramLease,
14751
15011
  projectId: optionalKey(String4),
@@ -14765,15 +15025,15 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14765
15025
  },
14766
15026
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
14767
15027
  error: RunnerRpcError
14768
- }), make5("IntegrationBranch", {
15028
+ }), make6("IntegrationBranch", {
14769
15029
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
14770
15030
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14771
15031
  error: RunnerRpcError
14772
- }), make5("DeliveryBase", {
15032
+ }), make6("DeliveryBase", {
14773
15033
  payload: { lease: ProgramLease },
14774
15034
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14775
15035
  error: RunnerRpcError
14776
- }), make5("MergeChangeRequest", {
15036
+ }), make6("MergeChangeRequest", {
14777
15037
  payload: {
14778
15038
  lease: ProgramLease,
14779
15039
  step: String4,
@@ -14791,7 +15051,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14791
15051
  Struct({ status: Literal("moved"), head: String4 })
14792
15052
  ]),
14793
15053
  error: RunnerRpcError
14794
- }), make5("ApproveChangeRequest", {
15054
+ }), make6("ApproveChangeRequest", {
14795
15055
  payload: {
14796
15056
  lease: ProgramLease,
14797
15057
  step: String4,
@@ -14807,7 +15067,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14807
15067
  Struct({ approved: Literal(false), reason: String4 })
14808
15068
  ]),
14809
15069
  error: RunnerRpcError
14810
- }), make5("CloseChangeRequest", {
15070
+ }), make6("CloseChangeRequest", {
14811
15071
  payload: {
14812
15072
  lease: ProgramLease,
14813
15073
  step: String4,
@@ -14817,7 +15077,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14817
15077
  },
14818
15078
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
14819
15079
  error: RunnerRpcError
14820
- }), make5("RerunPipeline", {
15080
+ }), make6("RerunPipeline", {
14821
15081
  payload: {
14822
15082
  lease: ProgramLease,
14823
15083
  step: String4,
@@ -14827,7 +15087,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14827
15087
  },
14828
15088
  success: Struct({ head: String4, pipelines: Int }),
14829
15089
  error: RunnerRpcError
14830
- }), make5("PublishRelease", {
15090
+ }), make6("PublishRelease", {
14831
15091
  payload: {
14832
15092
  lease: ProgramLease,
14833
15093
  step: String4,
@@ -14839,14 +15099,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14839
15099
  },
14840
15100
  success: Struct({ tag: String4, revision: String4, url: String4 }),
14841
15101
  error: RunnerRpcError
14842
- }), make5("ProgramSecrets", {
15102
+ }), make6("ProgramSecrets", {
14843
15103
  payload: { lease: ProgramLease },
14844
15104
  success: Record(String4, String4),
14845
15105
  error: RunnerRpcError
14846
15106
  })).middleware(RunnerAuthentication) {
14847
15107
  }
14848
15108
 
14849
- class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
15109
+ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14850
15110
  payload: {
14851
15111
  lease: ProgramLease,
14852
15112
  step: String4,
@@ -14858,11 +15118,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14858
15118
  },
14859
15119
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14860
15120
  error: Union([RunnerRpcError, RunFileRefused])
14861
- }), make5("RunFileParts", {
15121
+ }), make6("RunFileParts", {
14862
15122
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14863
15123
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14864
15124
  error: RunnerRpcError
14865
- }), make5("CompleteRunFile", {
15125
+ }), make6("CompleteRunFile", {
14866
15126
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14867
15127
  success: RunFileRecord,
14868
15128
  error: RunnerRpcError
@@ -14872,7 +15132,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14872
15132
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14873
15133
 
14874
15134
  // apps/cli/src/oauth.ts
14875
- var Scope = "openid profile email offline_access kitman:cli";
15135
+ var Scope2 = "openid profile email offline_access kitman:cli";
14876
15136
  var CallbackPath = "/auth/callback";
14877
15137
 
14878
15138
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14891,7 +15151,7 @@ function buildAuthorizeUrl(input) {
14891
15151
  url.searchParams.set("response_type", "code");
14892
15152
  url.searchParams.set("client_id", input.clientId);
14893
15153
  url.searchParams.set("redirect_uri", input.redirectUri);
14894
- url.searchParams.set("scope", Scope);
15154
+ url.searchParams.set("scope", Scope2);
14895
15155
  url.searchParams.set("code_challenge", input.codeChallenge);
14896
15156
  url.searchParams.set("code_challenge_method", "S256");
14897
15157
  url.searchParams.set("state", input.state);
@@ -15025,7 +15285,7 @@ function postForm(input) {
15025
15285
  function tokenResponse(response, failure) {
15026
15286
  return gen(function* () {
15027
15287
  if (!response.ok)
15028
- return yield* new CliError({ message: `${failure} with ${response.status}` });
15288
+ return yield* new CliError({ message: `${failure} with ${response.status}`, status: response.status });
15029
15289
  const body = yield* tryPromise({
15030
15290
  try: () => response.json(),
15031
15291
  catch: () => new CliError({ message: `${failure}: invalid JSON` })
@@ -15061,7 +15321,7 @@ function createSdkClient(input) {
15061
15321
  const fetchImpl = input.fetch ?? (yield* Fetch);
15062
15322
  let session = input.session;
15063
15323
  const refreshPermit = makeUnsafe3(1);
15064
- const refreshFrom = (stale) => refreshPermit.withPermits(1)(suspend3(() => session === stale ? tap2(refreshSession({ ...input, fetch: fetchImpl, session: stale }), (next) => sync2(() => session = next)) : succeed6(session))).pipe(mapError2((error) => new KitmanClientError({ operation: "refreshSession", message: error.message, status: 401 })));
15324
+ const refreshFrom = (stale) => refreshPermit.withPermits(1)(suspend3(() => session === stale ? tap2(refreshSession({ ...input, fetch: fetchImpl, session: stale }), (next) => sync2(() => session = next)) : succeed6(session))).pipe(mapError2(refreshFailure));
15065
15325
  const authorizedFetch = (resource, init) => runPromise(gen(function* () {
15066
15326
  if (session.refreshToken && shouldRefresh(yield* currentDate, session.expiresAt))
15067
15327
  yield* refreshFrom(session);
@@ -15079,6 +15339,14 @@ function createSdkClient(input) {
15079
15339
  });
15080
15340
  });
15081
15341
  }
15342
+ var sessionExpired = "The kitman login on this machine has expired. Run `kitman login`.";
15343
+ var refusedRefresh = new Set([400, 401, 403]);
15344
+ var expiredIfRefused = (error) => error instanceof CliError && error.status !== undefined && refusedRefresh.has(error.status) ? new CliError({ message: sessionExpired, status: 401 }) : error;
15345
+ var refreshFailure = (error) => new KitmanClientError({
15346
+ operation: "refreshSession",
15347
+ message: error.message,
15348
+ status: (error instanceof CliError ? error.status : undefined) ?? 503
15349
+ });
15082
15350
  function refreshSession(input) {
15083
15351
  const storedSession = readAuthStore(input.authPath).pipe(map8((auth) => sessionForApi(auth, input.apiUrl)));
15084
15352
  return withAuthLock(input.authPath, gen(function* () {
@@ -15096,7 +15364,7 @@ function refreshSession(input) {
15096
15364
  refreshToken: spentToken,
15097
15365
  ...input.fetch ? { fetch: input.fetch } : undefined
15098
15366
  }).pipe(map8((token) => toStoredSession(token, spentToken)));
15099
- const session = yield* refreshing.pipe(catch_((error) => storedSession.pipe(filterOrFail((current) => current !== undefined && current.refreshToken !== spentToken, () => error))));
15367
+ const session = yield* refreshing.pipe(catch_((error) => storedSession.pipe(filterOrFail((current) => current !== undefined && current.refreshToken !== spentToken, () => error))), mapError2(expiredIfRefused));
15100
15368
  const current = yield* storedSession;
15101
15369
  if (current?.refreshToken !== spentToken)
15102
15370
  return current ?? session;
@@ -15599,7 +15867,7 @@ var spawnedTransport = (env) => gen(function* () {
15599
15867
  const spawner = yield* ChildProcessSpawner;
15600
15868
  const input = yield* unbounded2();
15601
15869
  const encoder = new TextEncoder;
15602
- const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
15870
+ const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
15603
15871
  extendEnv: false,
15604
15872
  env,
15605
15873
  stdin: fromQueue(input),
@@ -15630,7 +15898,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
15630
15898
  const spawner = yield* ChildProcessSpawner;
15631
15899
  const env = coreEnv(options);
15632
15900
  const run = (args) => gen(function* () {
15633
- const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15901
+ const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15634
15902
  const [stdout, stderr, exitCode] = yield* all3([
15635
15903
  mkString(decodeText(handle.stdout)),
15636
15904
  mkString(decodeText(handle.stderr)),
@@ -15656,7 +15924,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
15656
15924
  }
15657
15925
  var runCommand2 = (command, args, options = {}) => gen(function* () {
15658
15926
  const spawner = yield* ChildProcessSpawner;
15659
- const handle = yield* spawner.spawn(make2(command, args, {
15927
+ const handle = yield* spawner.spawn(make3(command, args, {
15660
15928
  stdin: "ignore",
15661
15929
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15662
15930
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -15682,7 +15950,7 @@ var shellOutputTailChars2 = 64 * 1024;
15682
15950
  var runProcess2 = (argv, options) => gen(function* () {
15683
15951
  const spawner = yield* ChildProcessSpawner;
15684
15952
  const [command, ...args] = argv;
15685
- const handle = yield* spawner.spawn(make2(command, args, {
15953
+ const handle = yield* spawner.spawn(make3(command, args, {
15686
15954
  stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15687
15955
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15688
15956
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
@@ -16115,4 +16383,4 @@ function checkServices(declaration) {
16115
16383
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
16116
16384
  }
16117
16385
 
16118
- 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, 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, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, 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 };
16386
+ 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, failedTestOfLine, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, 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, runnerReleaseChannelPath, 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 };