@kitman-sh/cli 0.15.1 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/{chunk-8wpg3rph.js → chunk-1scjh42j.js} +2 -2
  2. package/dist/{chunk-69xka6ew.js → chunk-23nvmnkp.js} +1 -1
  3. package/dist/{chunk-zy4sv70r.js → chunk-4g7cj90y.js} +6 -6
  4. package/dist/{chunk-k2wd9r6t.js → chunk-4pq5vq59.js} +2 -2
  5. package/dist/{chunk-91tmbf95.js → chunk-4v691rg5.js} +18 -18
  6. package/dist/{chunk-ygx2pda7.js → chunk-5jt8b98c.js} +4 -4
  7. package/dist/{chunk-xrjt25ns.js → chunk-9n6hd7es.js} +10 -10
  8. package/dist/{chunk-60fhzjx3.js → chunk-cqejv8e6.js} +107 -24
  9. package/dist/{chunk-fzaecdgv.js → chunk-djdhep8n.js} +3 -3
  10. package/dist/{chunk-2vxb3q01.js → chunk-f02v4cdn.js} +1 -1
  11. package/dist/{chunk-csxxwscf.js → chunk-f2y0z04q.js} +1 -1
  12. package/dist/{chunk-fggwdr03.js → chunk-g6nhny28.js} +18 -18
  13. package/dist/{chunk-kskb0hkb.js → chunk-gpcrp0tc.js} +3 -3
  14. package/dist/{chunk-wh4bpc4w.js → chunk-gt7gk0d4.js} +4 -4
  15. package/dist/{chunk-3ns4sbfb.js → chunk-gwzzacep.js} +1 -1
  16. package/dist/{chunk-xx711t5r.js → chunk-hbm0hybe.js} +4 -4
  17. package/dist/{chunk-dv4v0tbn.js → chunk-n9fhwgzm.js} +34 -30
  18. package/dist/{chunk-vg78dz3w.js → chunk-ppdf5m4j.js} +34 -177
  19. package/dist/{chunk-tgt9a3yz.js → chunk-r58fc2x9.js} +6 -6
  20. package/dist/{chunk-dx792s4w.js → chunk-rfnasm3c.js} +61 -61
  21. package/dist/{chunk-d40233pm.js → chunk-rv6d2r5v.js} +9 -9
  22. package/dist/{chunk-0ws25xvg.js → chunk-sd8b4k1t.js} +2 -2
  23. package/dist/{chunk-5hkdgzh4.js → chunk-x83q18w0.js} +1 -1
  24. package/dist/{chunk-6h70kent.js → chunk-xc76s9kk.js} +7 -7
  25. package/dist/{chunk-39ykbhq8.js → chunk-yg34g1m8.js} +5 -5
  26. package/dist/{chunk-f36s9s1g.js → chunk-zgbjha6j.js} +274 -119
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make14,
41
+ make13,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,13 +58,15 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make15,
61
+ make14,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get4,
65
+ get3,
66
66
  merge3,
67
67
  Reference,
68
+ fromInputUnsafe,
69
+ isFinite,
68
70
  millis,
69
71
  seconds,
70
72
  toMillis,
@@ -84,14 +86,14 @@ import {
84
86
  DisablePropagation,
85
87
  sync,
86
88
  map7,
87
- ClockRef,
88
- currentTimeMillis2,
89
89
  ConsoleRef,
90
90
  succeed3,
91
91
  fail4,
92
+ void_2,
92
93
  isSuccess2,
94
+ isFailure2,
93
95
  makeUnsafe5,
94
- make16,
96
+ make15,
95
97
  _await,
96
98
  fail5,
97
99
  isDone,
@@ -99,8 +101,12 @@ import {
99
101
  succeed4,
100
102
  doneUnsafe,
101
103
  TracerTimingEnabled,
104
+ Scope,
105
+ makeUnsafe6,
102
106
  provide,
107
+ addFinalizerExit,
103
108
  addFinalizer,
109
+ close,
104
110
  succeed5,
105
111
  effect,
106
112
  effectContext,
@@ -152,6 +158,7 @@ import {
152
158
  tapCause,
153
159
  retry,
154
160
  ignore,
161
+ ignoreCause,
155
162
  orElseSucceed,
156
163
  timeout,
157
164
  timeoutOrElse,
@@ -163,6 +170,7 @@ import {
163
170
  context,
164
171
  contextWith,
165
172
  provide3,
173
+ provideContext2,
166
174
  serviceOption,
167
175
  updateContext,
168
176
  provideService,
@@ -173,6 +181,7 @@ import {
173
181
  addFinalizer2,
174
182
  ensuring2,
175
183
  onError,
184
+ onExit,
176
185
  cached,
177
186
  interrupt3,
178
187
  interruptible,
@@ -184,6 +193,7 @@ import {
184
193
  withParentSpan,
185
194
  forkScoped,
186
195
  runFork,
196
+ runForkWith,
187
197
  runPromise,
188
198
  runPromiseWith,
189
199
  runSync,
@@ -203,7 +213,7 @@ import {
203
213
  decodeEffect,
204
214
  decodeUnknownOption,
205
215
  decodeOption,
206
- make17,
216
+ make16,
207
217
  isSchema,
208
218
  optionalKey,
209
219
  optional,
@@ -264,11 +274,17 @@ import {
264
274
  decodeJsonStringOption,
265
275
  encodeJsonStringSync,
266
276
  encodePrettyJsonString
267
- } from "./chunk-dx792s4w.js";
277
+ } from "./chunk-rfnasm3c.js";
268
278
  import {
269
279
  map,
270
280
  makeEquivalence,
281
+ Clock,
282
+ currentTimeMillis,
271
283
  bytes,
284
+ join,
285
+ interrupt,
286
+ getCurrent,
287
+ runIn,
272
288
  BadArgument,
273
289
  systemError,
274
290
  badArgument,
@@ -290,13 +306,11 @@ import {
290
306
  isSink,
291
307
  fromChannel,
292
308
  drain,
293
- make10,
294
- get3,
295
309
  isStream,
296
310
  fromChannel2,
297
311
  callback,
298
312
  empty2,
299
- make11,
313
+ make10,
300
314
  suspend,
301
315
  fail2,
302
316
  fromQueue,
@@ -322,17 +336,17 @@ import {
322
336
  mkArrayBuffer,
323
337
  toReadableStreamEffect,
324
338
  FileSystem,
325
- make12,
339
+ make11,
326
340
  FileTypeId,
327
341
  WatchBackend,
328
342
  Path,
329
- make13,
343
+ make12,
330
344
  option,
331
345
  String2,
332
346
  optionalEnv,
333
347
  harnessesUnsupportedInSrt2,
334
348
  harnessesUnsupportedInDocker2
335
- } from "./chunk-vg78dz3w.js";
349
+ } from "./chunk-ppdf5m4j.js";
336
350
  import {
337
351
  isRedacted,
338
352
  make,
@@ -346,7 +360,7 @@ import {
346
360
  make3,
347
361
  parseFdName,
348
362
  fdName
349
- } from "./chunk-k2wd9r6t.js";
363
+ } from "./chunk-4pq5vq59.js";
350
364
  import {
351
365
  isDateTime,
352
366
  Numeric,
@@ -359,15 +373,11 @@ import {
359
373
  SecretScope,
360
374
  SecretHosts,
361
375
  isSecretReference
362
- } from "./chunk-5hkdgzh4.js";
376
+ } from "./chunk-x83q18w0.js";
363
377
 
364
378
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
365
379
  var makeEquivalence3 = Tuple;
366
380
 
367
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
368
- var Clock = ClockRef;
369
- var currentTimeMillis = currentTimeMillis2;
370
-
371
381
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
372
382
  var TypeId = "~effect/DateTime";
373
383
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -502,7 +512,7 @@ var fromDateUnsafe = (date) => {
502
512
  }
503
513
  return makeUtc(epochMillis);
504
514
  };
505
- var makeUnsafe6 = (input) => {
515
+ var makeUnsafe7 = (input) => {
506
516
  if (isDateTime2(input)) {
507
517
  return input;
508
518
  } else if (input instanceof Date) {
@@ -522,7 +532,7 @@ var makeUnsafe6 = (input) => {
522
532
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
523
533
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
524
534
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
525
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
535
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
526
536
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
527
537
  var nowUnsafe = () => makeUtc(Date.now());
528
538
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -629,7 +639,7 @@ class Metric$ {
629
639
  }
630
640
  hook(context) {
631
641
  const key = this.key(context);
632
- const registry = get4(context, MetricRegistry);
642
+ const registry = get3(context, MetricRegistry);
633
643
  let metadata = registry.get(key);
634
644
  if (isUndefined(metadata)) {
635
645
  metadata = this.metadata(this.createHooks());
@@ -638,11 +648,11 @@ class Metric$ {
638
648
  return metadata.hooks;
639
649
  }
640
650
  removeUnsafe(context) {
641
- get4(context, MetricRegistry).delete(this.key(context));
651
+ get3(context, MetricRegistry).delete(this.key(context));
642
652
  }
643
653
  registerUnsafe(context, hooks) {
644
654
  const key = this.key(context);
645
- const registry = get4(context, MetricRegistry);
655
+ const registry = get3(context, MetricRegistry);
646
656
  const metadata = this.metadata({
647
657
  get: hooks.get,
648
658
  update: constVoid,
@@ -658,7 +668,7 @@ class Metric$ {
658
668
  };
659
669
  }
660
670
  key(context) {
661
- const extraAttributes = get4(context, CurrentMetricAttributes);
671
+ const extraAttributes = get3(context, CurrentMetricAttributes);
662
672
  if (extraAttributes !== this.#extraAttributes) {
663
673
  this.#extraAttributes = extraAttributes;
664
674
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -910,9 +920,151 @@ var toNumber = (b) => {
910
920
  return some(Number(b));
911
921
  };
912
922
 
923
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
924
+ var TypeId3 = "~effect/RcRef";
925
+ var stateEmpty = {
926
+ _tag: "Empty"
927
+ };
928
+ var stateClosed = {
929
+ _tag: "Closed"
930
+ };
931
+ var variance = {
932
+ _A: identity,
933
+ _E: identity
934
+ };
935
+
936
+ class RcRefImpl {
937
+ [TypeId3] = variance;
938
+ pipe() {
939
+ return pipeArguments(this, arguments);
940
+ }
941
+ state = stateEmpty;
942
+ acquire;
943
+ context;
944
+ scope;
945
+ idleTimeToLive;
946
+ constructor(acquire, context, scope, idleTimeToLive) {
947
+ this.acquire = acquire;
948
+ this.context = context;
949
+ this.scope = scope;
950
+ this.idleTimeToLive = idleTimeToLive;
951
+ }
952
+ }
953
+ var make17 = (options) => withFiber2((fiber) => {
954
+ const context = fiber.context;
955
+ const scope = get3(context, Scope);
956
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
957
+ return as(addFinalizerExit(scope, () => {
958
+ const state = ref.state;
959
+ ref.state = stateClosed;
960
+ if (state._tag === "Acquired")
961
+ return close(state.scope, void_2);
962
+ if (state._tag === "Acquiring")
963
+ return interrupt(state.fiber);
964
+ return void_3;
965
+ }), ref);
966
+ });
967
+ var getState = (self, restore) => {
968
+ switch (self.state._tag) {
969
+ case "Closed": {
970
+ return interrupt3;
971
+ }
972
+ case "Acquired": {
973
+ const state = self.state;
974
+ state.refCount++;
975
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
976
+ }
977
+ case "Acquiring": {
978
+ const state = self.state;
979
+ state.awaiters++;
980
+ return awaitAcquiring(self, state, restore);
981
+ }
982
+ case "Empty": {
983
+ const acquiring = {
984
+ _tag: "Acquiring",
985
+ fiber: undefined,
986
+ awaiters: 1,
987
+ acquired: undefined
988
+ };
989
+ self.state = acquiring;
990
+ const scope = makeUnsafe6();
991
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
992
+ if (self.state !== acquiring) {
993
+ return interrupt3;
994
+ }
995
+ const state = {
996
+ _tag: "Acquired",
997
+ value,
998
+ scope,
999
+ fiber: undefined,
1000
+ refCount: acquiring.awaiters,
1001
+ invalidated: false
1002
+ };
1003
+ self.state = state;
1004
+ acquiring.acquired = state;
1005
+ return succeed6(state);
1006
+ }), onExit((exit) => {
1007
+ if (isSuccess2(exit))
1008
+ return void_3;
1009
+ if (self.state === acquiring)
1010
+ self.state = stateEmpty;
1011
+ return close(scope, exit);
1012
+ }));
1013
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1014
+ return awaitAcquiring(self, acquiring, restore);
1015
+ }
1016
+ }
1017
+ };
1018
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1019
+ const acquired = acquiring.acquired;
1020
+ if (acquired !== undefined) {
1021
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1022
+ }
1023
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1024
+ return void_3;
1025
+ self.state = stateEmpty;
1026
+ return interrupt(acquiring.fiber);
1027
+ });
1028
+ var get4 = (self_) => {
1029
+ const self = self_;
1030
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1031
+ };
1032
+ var release = (self, state) => {
1033
+ state.refCount--;
1034
+ if (state.refCount > 0) {
1035
+ return void_3;
1036
+ }
1037
+ const idleTimeToLive = self.idleTimeToLive;
1038
+ if (idleTimeToLive === undefined || state.invalidated) {
1039
+ if (self.state === state) {
1040
+ self.state = stateEmpty;
1041
+ }
1042
+ return close(state.scope, void_2);
1043
+ } else if (!isFinite(idleTimeToLive)) {
1044
+ return void_3;
1045
+ }
1046
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1047
+ if (self.state === state && state.refCount === 0) {
1048
+ self.state = stateEmpty;
1049
+ return ignoreCause(close(state.scope, void_2), {
1050
+ log: "Unhandled",
1051
+ message: "Unhandled error in RcRef finalizer"
1052
+ });
1053
+ }
1054
+ return void_3;
1055
+ })).pipe(ensuring2(sync2(() => {
1056
+ state.fiber = undefined;
1057
+ })), runForkWith(self.context), runIn(self.scope));
1058
+ return void_3;
1059
+ };
1060
+
1061
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1062
+ var make18 = make17;
1063
+ var get5 = get4;
1064
+
913
1065
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
914
- var makeUnsafe = makeUnsafe6;
915
- var make18 = make4;
1066
+ var makeUnsafe = makeUnsafe7;
1067
+ var make19 = make4;
916
1068
  var now2 = now;
917
1069
  var nowUnsafe2 = nowUnsafe;
918
1070
  var toDateUtc2 = toDateUtc;
@@ -1231,7 +1383,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1231
1383
  windowsHide: true
1232
1384
  }, onExit);
1233
1385
  };
1234
- var make19 = /* @__PURE__ */ gen(function* () {
1386
+ var make20 = /* @__PURE__ */ gen(function* () {
1235
1387
  const fs = yield* FileSystem;
1236
1388
  const path = yield* Path;
1237
1389
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1760,7 +1912,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1760
1912
  });
1761
1913
  return make2(spawnCommand);
1762
1914
  });
1763
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1915
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1764
1916
  var flattenCommand = (command) => {
1765
1917
  const commands = [];
1766
1918
  const pipeOptions = [];
@@ -2244,7 +2396,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2244
2396
  resume(fail7(handleBadArgument("writeFile")(err)));
2245
2397
  }
2246
2398
  });
2247
- var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2399
+ var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2248
2400
  access: access2,
2249
2401
  chmod: chmod2,
2250
2402
  chown: chown2,
@@ -2304,15 +2456,15 @@ var fileUrlOps = (windows) => ({
2304
2456
  })
2305
2457
  })
2306
2458
  });
2307
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2459
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2308
2460
  ...NodePath.posix,
2309
2461
  .../* @__PURE__ */ fileUrlOps(false)
2310
2462
  }));
2311
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2463
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2312
2464
  ...NodePath.win32,
2313
2465
  .../* @__PURE__ */ fileUrlOps(true)
2314
2466
  }));
2315
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2467
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2316
2468
  ...NodePath,
2317
2469
  .../* @__PURE__ */ fileUrlOps(undefined)
2318
2470
  }));
@@ -2321,10 +2473,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2321
2473
  var layer2 = layer7;
2322
2474
 
2323
2475
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2324
- var TypeId3 = "~effect/Stdio";
2325
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2326
- var make20 = (options) => ({
2327
- [TypeId3]: TypeId3,
2476
+ var TypeId4 = "~effect/Stdio";
2477
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2478
+ var make21 = (options) => ({
2479
+ [TypeId4]: TypeId4,
2328
2480
  stdinIsTerminal: succeed6(false),
2329
2481
  stdoutIsTerminal: succeed6(false),
2330
2482
  stderrIsTerminal: succeed6(false),
@@ -2332,7 +2484,7 @@ var make20 = (options) => ({
2332
2484
  });
2333
2485
 
2334
2486
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2335
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2487
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2336
2488
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2337
2489
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2338
2490
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2532,7 +2684,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2532
2684
  const uuid = bytes(randomBytes(16));
2533
2685
  return format === "bytes" ? uuid : stringify(uuid);
2534
2686
  };
2535
- var make21 = (randomBytes) => {
2687
+ var make22 = (randomBytes) => {
2536
2688
  const randomBytesChecked = (size) => {
2537
2689
  checkSize(size);
2538
2690
  return randomBytes(size);
@@ -2566,7 +2718,7 @@ var fillRandom = (crypto2, size) => {
2566
2718
  }
2567
2719
  return bytes;
2568
2720
  };
2569
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2721
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2570
2722
  var randomBytesUnsafe = (size) => {
2571
2723
  checkSize(size);
2572
2724
  return fillRandom(globalThis.crypto, size);
@@ -2574,10 +2726,10 @@ var randomBytesUnsafe = (size) => {
2574
2726
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2575
2727
 
2576
2728
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2577
- var TypeId4 = "~effect/http/Cookies";
2729
+ var TypeId5 = "~effect/http/Cookies";
2578
2730
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2579
2731
  var Proto2 = {
2580
- [TypeId4]: TypeId4,
2732
+ [TypeId5]: TypeId5,
2581
2733
  ...BaseProto,
2582
2734
  toJSON() {
2583
2735
  return {
@@ -2756,14 +2908,14 @@ var tryDecodeURIComponent = (str) => {
2756
2908
  };
2757
2909
 
2758
2910
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2759
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2911
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2760
2912
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2761
- [TypeId5]: {
2762
- value: TypeId5
2913
+ [TypeId6]: {
2914
+ value: TypeId6
2763
2915
  },
2764
2916
  [symbolRedactable]: {
2765
2917
  value(context) {
2766
- return redact2(this, get4(context, CurrentRedactedNames));
2918
+ return redact2(this, get3(context, CurrentRedactedNames));
2767
2919
  }
2768
2920
  },
2769
2921
  toJSON: {
@@ -2788,7 +2940,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2788
2940
  value: BaseProto[NodeInspectSymbol]
2789
2941
  }
2790
2942
  });
2791
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2943
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2792
2944
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2793
2945
  var empty = /* @__PURE__ */ Object.create(Proto3);
2794
2946
  var fromInput = (input) => {
@@ -2813,21 +2965,21 @@ var fromInput = (input) => {
2813
2965
  };
2814
2966
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2815
2967
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2816
- const out = make22(self);
2968
+ const out = make23(self);
2817
2969
  out[key.toLowerCase()] = value;
2818
2970
  return out;
2819
2971
  });
2820
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2972
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2821
2973
  ...self,
2822
2974
  ...fromInput(headers)
2823
2975
  }));
2824
2976
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2825
- const out = make22(self);
2977
+ const out = make23(self);
2826
2978
  Object.assign(out, headers);
2827
2979
  return out;
2828
2980
  });
2829
2981
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2830
- const out = make22(self);
2982
+ const out = make23(self);
2831
2983
  delete out[key.toLowerCase()];
2832
2984
  return out;
2833
2985
  });
@@ -2884,18 +3036,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2884
3036
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2885
3037
 
2886
3038
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2887
- var TypeId6 = "~effect/http/UrlParams";
2888
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3039
+ var TypeId7 = "~effect/http/UrlParams";
3040
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2889
3041
  var Proto4 = {
2890
3042
  ...PipeInspectableProto,
2891
- [TypeId6]: TypeId6,
3043
+ [TypeId7]: TypeId7,
2892
3044
  [Symbol.iterator]() {
2893
3045
  return this.params[Symbol.iterator]();
2894
3046
  },
2895
3047
  [symbolRedactable](context) {
2896
3048
  return {
2897
3049
  _id: "UrlParams",
2898
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3050
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2899
3051
  };
2900
3052
  },
2901
3053
  toJSON() {
@@ -2908,7 +3060,7 @@ var Proto4 = {
2908
3060
  return array(this.params.flat());
2909
3061
  }
2910
3062
  };
2911
- var make23 = (params) => {
3063
+ var make24 = (params) => {
2912
3064
  const self = Object.create(Proto4);
2913
3065
  self.params = params;
2914
3066
  return self;
@@ -2927,7 +3079,7 @@ var fromInput2 = (input) => {
2927
3079
  out.push(parsed[i]);
2928
3080
  }
2929
3081
  }
2930
- return make23(out);
3082
+ return make24(out);
2931
3083
  };
2932
3084
  var fromInputNested = (input) => {
2933
3085
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2951,9 +3103,9 @@ var fromInputNested = (input) => {
2951
3103
  return out;
2952
3104
  };
2953
3105
  var coerce = (value) => isRedacted(value) ? value : String(value);
2954
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3106
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2955
3107
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2956
- var empty4 = /* @__PURE__ */ make23([]);
3108
+ var empty4 = /* @__PURE__ */ make24([]);
2957
3109
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2958
3110
  const params = fromInput2(input).params.slice();
2959
3111
  const keys = new Set;
@@ -2965,7 +3117,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2965
3117
  continue;
2966
3118
  params.push(self.params[i]);
2967
3119
  }
2968
- return make23(params);
3120
+ return make24(params);
2969
3121
  });
2970
3122
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2971
3123
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3021,13 +3173,13 @@ var decodeQueryKey = (key) => {
3021
3173
  return key;
3022
3174
  }
3023
3175
  };
3024
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3176
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3025
3177
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3026
3178
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3027
3179
  });
3028
3180
 
3029
3181
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3030
- var TypeId7 = "~effect/Terminal";
3182
+ var TypeId8 = "~effect/Terminal";
3031
3183
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3032
3184
 
3033
3185
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3036,14 +3188,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3036
3188
  [QuitErrorTypeId] = QuitErrorTypeId;
3037
3189
  }
3038
3190
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3039
- var make24 = (impl) => Terminal.of({
3191
+ var make25 = (impl) => Terminal.of({
3040
3192
  ...impl,
3041
- [TypeId7]: TypeId7
3193
+ [TypeId8]: TypeId8
3042
3194
  });
3043
3195
 
3044
3196
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3045
3197
  import * as readline from "readline";
3046
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3198
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3047
3199
  const stdin = process.stdin;
3048
3200
  const stdout = process.stdout;
3049
3201
  const lines = yield* make9();
@@ -3057,7 +3209,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3057
3209
  };
3058
3210
  stdin.once("end", onStdinEnd);
3059
3211
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3060
- const rlRef = yield* make10({
3212
+ const rlRef = yield* make18({
3061
3213
  acquire: acquireRelease(sync2(() => {
3062
3214
  const rl = readline.createInterface({
3063
3215
  input: stdin,
@@ -3096,7 +3248,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3096
3248
  if (stdin.isTTY)
3097
3249
  stdin.setRawMode(enabled);
3098
3250
  });
3099
- const rawModeRef = yield* make10({
3251
+ const rawModeRef = yield* make18({
3100
3252
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3101
3253
  idleTimeToLive: "10 millis"
3102
3254
  });
@@ -3147,14 +3299,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3147
3299
  if (inputEnded) {
3148
3300
  handleEnd();
3149
3301
  } else {
3150
- yield* get3(rlRef);
3151
- yield* get3(rawModeRef);
3302
+ yield* get5(rlRef);
3303
+ yield* get5(rawModeRef);
3152
3304
  stdin.once("end", handleEnd);
3153
3305
  }
3154
3306
  return queue;
3155
3307
  });
3156
3308
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3157
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3309
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3158
3310
  onSome: succeed6
3159
3311
  })), mapError2(() => new QuitError({}))));
3160
3312
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3165,7 +3317,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3165
3317
  cause: err
3166
3318
  }))));
3167
3319
  }));
3168
- return make24({
3320
+ return make25({
3169
3321
  columns,
3170
3322
  rows,
3171
3323
  size,
@@ -3174,7 +3326,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3174
3326
  display
3175
3327
  });
3176
3328
  });
3177
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3329
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3178
3330
  function defaultShouldQuit(input) {
3179
3331
  const key = input.key;
3180
3332
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3201,7 +3353,7 @@ function toDate(input) {
3201
3353
  return toDateUtc2(makeUnsafe(input));
3202
3354
  }
3203
3355
  function parseDate(input) {
3204
- return getOrUndefined(map4(make18(input), toDateUtc2));
3356
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3205
3357
  }
3206
3358
  function toIso(input) {
3207
3359
  return formatIso(makeUnsafe(input));
@@ -7143,7 +7295,8 @@ var StepAttemptSessionUpdateList = Struct({
7143
7295
  next: optionalKey(String4)
7144
7296
  });
7145
7297
  var HarnessHoldReasons = ["out_of_quota", "rate_limited", "login_refused", "failed_to_start"];
7146
- var SkippedChoiceReasons = ["not_on_runner", ...HarnessHoldReasons];
7298
+ var PassOverReasons = [...HarnessHoldReasons, "harness_error"];
7299
+ var SkippedChoiceReasons = ["not_on_runner", ...PassOverReasons];
7147
7300
  var SkippedChoice = Struct({
7148
7301
  harness: optionalKey(String4),
7149
7302
  model: optionalKey(String4),
@@ -8065,7 +8218,7 @@ var HarnessHold = Struct({
8065
8218
  until: optionalKey(Timestamp),
8066
8219
  scope: optionalKey(Literal("step"))
8067
8220
  });
8068
- var StepRestart = Struct({ reason: Literal("login_revoked") });
8221
+ var StepRestart = Struct({ reason: Literals(["login_revoked", "harness_error"]) });
8069
8222
  var WorkUnitOutcome = Struct({
8070
8223
  status: Union([
8071
8224
  Literal("completed"),
@@ -10759,6 +10912,7 @@ var AgentEvent = Union([
10759
10912
  host: String4.check(isMaxLength(300)),
10760
10913
  reason: String4.check(isMaxLength(500))
10761
10914
  }),
10915
+ Struct({ kind: Literal("harness_error"), text: Text }),
10762
10916
  Struct({
10763
10917
  kind: Literal("lifecycle"),
10764
10918
  state: Literals(["started", "resumed", "parked", "finished", "failed", "canceled"])
@@ -10806,11 +10960,11 @@ var TranscriptSearchResult = Struct({
10806
10960
  total: Int
10807
10961
  });
10808
10962
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
10809
- var TypeId8 = "~effect/http/HttpBody";
10963
+ var TypeId9 = "~effect/http/HttpBody";
10810
10964
  class Proto5 {
10811
- [TypeId8];
10965
+ [TypeId9];
10812
10966
  constructor() {
10813
- this[TypeId8] = TypeId8;
10967
+ this[TypeId9] = TypeId9;
10814
10968
  }
10815
10969
  [NodeInspectSymbol]() {
10816
10970
  return this.toJSON();
@@ -10901,7 +11055,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
10901
11055
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
10902
11056
 
10903
11057
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
10904
- var TypeId9 = "~effect/http/HttpClientError";
11058
+ var TypeId10 = "~effect/http/HttpClientError";
10905
11059
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10906
11060
  constructor(props) {
10907
11061
  if ("cause" in props.reason) {
@@ -10913,7 +11067,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10913
11067
  super(props);
10914
11068
  }
10915
11069
  }
10916
- [TypeId9] = TypeId9;
11070
+ [TypeId10] = TypeId10;
10917
11071
  get request() {
10918
11072
  return this.reason.request;
10919
11073
  }
@@ -11017,7 +11171,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11017
11171
  }
11018
11172
  }
11019
11173
 
11020
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11174
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11021
11175
  _tag: /* @__PURE__ */ tag("HttpError"),
11022
11176
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11023
11177
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11050,7 +11204,7 @@ var updateContentLength = (headers, body) => {
11050
11204
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11051
11205
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11052
11206
  }
11053
- var make26 = (url, params, hash) => try_({
11207
+ var make27 = (url, params, hash) => try_({
11054
11208
  try: () => {
11055
11209
  const urlInstance = new URL(url, baseUrl());
11056
11210
  for (let i = 0;i < params.params.length; i++) {
@@ -11081,10 +11235,10 @@ var baseUrl = () => {
11081
11235
  };
11082
11236
 
11083
11237
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
11084
- var TypeId10 = "~effect/http/HttpClientRequest";
11085
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11238
+ var TypeId11 = "~effect/http/HttpClientRequest";
11239
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11086
11240
  var Proto6 = {
11087
- [TypeId10]: TypeId10,
11241
+ [TypeId11]: TypeId11,
11088
11242
  ...BaseProto,
11089
11243
  toJSON() {
11090
11244
  return {
@@ -11173,7 +11327,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11173
11327
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11174
11328
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11175
11329
  function toUrl(self) {
11176
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11330
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11177
11331
  if (isSuccess(r)) {
11178
11332
  return some(r.success);
11179
11333
  }
@@ -11181,7 +11335,7 @@ function toUrl(self) {
11181
11335
  }
11182
11336
 
11183
11337
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11184
- var TypeId11 = "~effect/http/HttpIncomingMessage";
11338
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
11185
11339
  var schemaBodyJson = (schema, options) => {
11186
11340
  const decode = decodeEffect(toCodecJson(schema));
11187
11341
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11200,7 +11354,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11200
11354
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11201
11355
 
11202
11356
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11203
- var TypeId12 = "~effect/http/HttpClientResponse";
11357
+ var TypeId13 = "~effect/http/HttpClientResponse";
11204
11358
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11205
11359
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11206
11360
  reason: new StatusCodeError({
@@ -11211,16 +11365,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11211
11365
  }));
11212
11366
 
11213
11367
  class WebHttpClientResponse extends Class {
11214
- [TypeId11];
11215
11368
  [TypeId12];
11369
+ [TypeId13];
11216
11370
  request;
11217
11371
  source;
11218
11372
  constructor(request, source) {
11219
11373
  super();
11220
11374
  this.request = request;
11221
11375
  this.source = source;
11222
- this[TypeId11] = TypeId11;
11223
11376
  this[TypeId12] = TypeId12;
11377
+ this[TypeId13] = TypeId13;
11224
11378
  }
11225
11379
  toJSON() {
11226
11380
  return inspect(this, {
@@ -11392,7 +11546,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11392
11546
  };
11393
11547
 
11394
11548
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11395
- var TypeId13 = "~effect/http/HttpClient";
11549
+ var TypeId14 = "~effect/http/HttpClient";
11396
11550
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11397
11551
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11398
11552
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11409,7 +11563,7 @@ var makeWith2 = (postprocess, preprocess) => {
11409
11563
  return self;
11410
11564
  };
11411
11565
  var Proto7 = {
11412
- [TypeId13]: TypeId13,
11566
+ [TypeId14]: TypeId14,
11413
11567
  pipe() {
11414
11568
  return pipeArguments(this, arguments);
11415
11569
  },
@@ -11423,10 +11577,10 @@ var Proto7 = {
11423
11577
  return this.execute(make5(fullMethod)(url, options));
11424
11578
  }]))
11425
11579
  };
11426
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11580
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11427
11581
  const scopedController = scopedRequests.get(request);
11428
11582
  const controller = scopedController ?? new AbortController;
11429
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11583
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11430
11584
  if (isFailure(urlResult)) {
11431
11585
  return fail7(new HttpClientError({
11432
11586
  reason: new InvalidUrlError({
@@ -11560,8 +11714,8 @@ class InterruptibleResponse {
11560
11714
  this.original = original;
11561
11715
  this.controller = controller;
11562
11716
  }
11717
+ [TypeId13] = TypeId13;
11563
11718
  [TypeId12] = TypeId12;
11564
- [TypeId11] = TypeId11;
11565
11719
  applyInterrupt(effect) {
11566
11720
  return suspend3(() => {
11567
11721
  responseRegistry.unregister(this.original);
@@ -11659,7 +11813,7 @@ var detectStreamBodySupport = () => {
11659
11813
  return false;
11660
11814
  }
11661
11815
  };
11662
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11816
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11663
11817
  if (request.headers.upgrade !== undefined) {
11664
11818
  return fail7(new HttpClientError({
11665
11819
  reason: new TransportError({
@@ -11750,10 +11904,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11750
11904
  });
11751
11905
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11752
11906
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11753
- var TypeId14 = "~effect/socket/Socket";
11907
+ var TypeId15 = "~effect/socket/Socket";
11754
11908
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11755
- var make28 = (options) => Socket.of({
11756
- [TypeId14]: TypeId14,
11909
+ var make29 = (options) => Socket.of({
11910
+ [TypeId15]: TypeId15,
11757
11911
  reader: options.reader,
11758
11912
  writer: options.writer
11759
11913
  });
@@ -12076,7 +12230,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12076
12230
  write,
12077
12231
  writeAll
12078
12232
  });
12079
- return succeed6(make28({
12233
+ return succeed6(make29({
12080
12234
  reader,
12081
12235
  writer
12082
12236
  }));
@@ -12515,7 +12669,8 @@ var skippedReasonWords = {
12515
12669
  out_of_quota: "out of quota",
12516
12670
  rate_limited: "rate limited",
12517
12671
  login_refused: "login refused",
12518
- failed_to_start: "failed to start"
12672
+ failed_to_start: "failed to start",
12673
+ harness_error: "stopped in its error state"
12519
12674
  };
12520
12675
  var choiceWords = (choice, unnamedModel) => [
12521
12676
  choice.harness ?? "the Runner\u2019s default Harness",
@@ -15401,7 +15556,7 @@ function getStreamSchemas(schema) {
15401
15556
  }
15402
15557
  var schema = /* @__PURE__ */ declare(isStream);
15403
15558
  function Stream(success, error) {
15404
- return make17(schema.ast, {
15559
+ return make16(schema.ast, {
15405
15560
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15406
15561
  success,
15407
15562
  error
@@ -15409,9 +15564,9 @@ function Stream(success, error) {
15409
15564
  }
15410
15565
 
15411
15566
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15412
- var TypeId15 = "~effect/rpc/Rpc";
15567
+ var TypeId16 = "~effect/rpc/Rpc";
15413
15568
  var Proto8 = {
15414
- [TypeId15]: TypeId15,
15569
+ [TypeId16]: TypeId16,
15415
15570
  pipe() {
15416
15571
  return pipeArguments(this, arguments);
15417
15572
  },
@@ -15578,7 +15733,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15578
15733
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15579
15734
 
15580
15735
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15581
- var TypeId16 = "~effect/rpc/RpcClientError";
15736
+ var TypeId17 = "~effect/rpc/RpcClientError";
15582
15737
 
15583
15738
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15584
15739
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15587,11 +15742,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15587
15742
  })) {
15588
15743
  }
15589
15744
 
15590
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15745
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15591
15746
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15592
15747
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15593
15748
  })) {
15594
- [TypeId16] = TypeId16;
15749
+ [TypeId17] = TypeId17;
15595
15750
  get message() {
15596
15751
  return `${this.reason._tag}: ${this.reason.message}`;
15597
15752
  }
@@ -15711,7 +15866,7 @@ var RpcGroupProto = {
15711
15866
  });
15712
15867
  },
15713
15868
  annotateRpcs(service, value) {
15714
- return this.annotateRpcsMerge(make15(service, value));
15869
+ return this.annotateRpcsMerge(make14(service, value));
15715
15870
  },
15716
15871
  annotateMerge(context) {
15717
15872
  return makeProto2({
@@ -15739,7 +15894,7 @@ var make7 = (...rpcs) => makeProto2({
15739
15894
  annotations: empty3()
15740
15895
  });
15741
15896
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15742
- var TypeId17 = "~effect/rpc/RpcMiddleware";
15897
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
15743
15898
  var Service = () => (id, options) => {
15744
15899
  const limit = getStackTraceLimit();
15745
15900
  let creationError;
@@ -15757,7 +15912,7 @@ var Service = () => (id, options) => {
15757
15912
  return creationError?.stack;
15758
15913
  }
15759
15914
  });
15760
- ServiceClass_[TypeId17] = TypeId17;
15915
+ ServiceClass_[TypeId18] = TypeId18;
15761
15916
  ServiceClass_.error = options?.error ?? Never;
15762
15917
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15763
15918
  return ServiceClass;
@@ -16500,7 +16655,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16500
16655
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16501
16656
 
16502
16657
  // apps/cli/src/oauth.ts
16503
- var Scope = "openid profile email offline_access kitman:cli";
16658
+ var Scope2 = "openid profile email offline_access kitman:cli";
16504
16659
  var CallbackPath = "/auth/callback";
16505
16660
 
16506
16661
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16519,7 +16674,7 @@ function buildAuthorizeUrl(input) {
16519
16674
  url.searchParams.set("response_type", "code");
16520
16675
  url.searchParams.set("client_id", input.clientId);
16521
16676
  url.searchParams.set("redirect_uri", input.redirectUri);
16522
- url.searchParams.set("scope", Scope);
16677
+ url.searchParams.set("scope", Scope2);
16523
16678
  url.searchParams.set("code_challenge", input.codeChallenge);
16524
16679
  url.searchParams.set("code_challenge_method", "S256");
16525
16680
  url.searchParams.set("state", input.state);
@@ -16579,7 +16734,7 @@ function toStoredSession(token, existingRefreshToken) {
16579
16734
  }
16580
16735
  function startLoopbackServer(input) {
16581
16736
  return gen(function* () {
16582
- const code = yield* make16();
16737
+ const code = yield* make15();
16583
16738
  const context2 = yield* context();
16584
16739
  const runSyncExit = runSyncExitWith(context2);
16585
16740
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -17127,7 +17282,7 @@ var openConnection = (transport) => gen(function* () {
17127
17282
  let lastId = 0;
17128
17283
  let lost = false;
17129
17284
  const notifications = yield* unbounded2();
17130
- const ended = yield* make16();
17285
+ const ended = yield* make15();
17131
17286
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
17132
17287
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
17133
17288
  onNone: () => void_3,
@@ -17154,7 +17309,7 @@ var openConnection = (transport) => gen(function* () {
17154
17309
  if (lost)
17155
17310
  return yield* new HerdrCoreConnectionLost2({ method });
17156
17311
  const id = ++lastId;
17157
- const deferred = yield* make16();
17312
+ const deferred = yield* make15();
17158
17313
  pending.set(id, { method, deferred });
17159
17314
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
17160
17315
  return yield* _await(deferred);
@@ -17228,7 +17383,7 @@ var herdrCoreOver = (transport) => ({
17228
17383
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
17229
17384
  };
17230
17385
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
17231
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17386
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17232
17387
  }))
17233
17388
  });
17234
17389
  var spawnedTransport = (env) => gen(function* () {
@@ -17319,7 +17474,7 @@ var runProcess2 = (argv, options) => gen(function* () {
17319
17474
  const spawner = yield* ChildProcessSpawner;
17320
17475
  const [command, ...args] = argv;
17321
17476
  const handle = yield* spawner.spawn(make3(command, args, {
17322
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
17477
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17323
17478
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17324
17479
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
17325
17480
  }));
@@ -17839,4 +17994,4 @@ function serviceChecks(declaration) {
17839
17994
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
17840
17995
  }
17841
17996
 
17842
- 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, 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, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, 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, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
17997
+ 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, 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, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, 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, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };