@kitman-sh/cli 0.15.1 → 0.16.1

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-zy4sv70r.js → chunk-1r026thg.js} +6 -6
  2. package/dist/{chunk-69xka6ew.js → chunk-3b198ntn.js} +1 -1
  3. package/dist/{chunk-91tmbf95.js → chunk-4yjcehqr.js} +17 -17
  4. package/dist/{chunk-6h70kent.js → chunk-5s4sgrak.js} +7 -7
  5. package/dist/{chunk-wh4bpc4w.js → chunk-8f632x21.js} +4 -4
  6. package/dist/{chunk-tgt9a3yz.js → chunk-9qfyb5r2.js} +6 -6
  7. package/dist/{chunk-fggwdr03.js → chunk-b0b9v7t9.js} +17 -17
  8. package/dist/{chunk-60fhzjx3.js → chunk-bcqqrwsk.js} +114 -26
  9. package/dist/{chunk-vg78dz3w.js → chunk-bkteq6b3.js} +28 -177
  10. package/dist/{chunk-fzaecdgv.js → chunk-djdhep8n.js} +3 -3
  11. package/dist/{chunk-f36s9s1g.js → chunk-dxfab1aj.js} +273 -113
  12. package/dist/{chunk-dv4v0tbn.js → chunk-e42hjb3j.js} +33 -29
  13. package/dist/{chunk-xx711t5r.js → chunk-eavx040m.js} +4 -4
  14. package/dist/{chunk-csxxwscf.js → chunk-f2y0z04q.js} +1 -1
  15. package/dist/{chunk-kskb0hkb.js → chunk-ft3gnwd1.js} +3 -3
  16. package/dist/{chunk-k2wd9r6t.js → chunk-g1f0cjqe.js} +2 -2
  17. package/dist/{chunk-3ns4sbfb.js → chunk-gwzzacep.js} +1 -1
  18. package/dist/{chunk-d40233pm.js → chunk-hwqecp0m.js} +8 -8
  19. package/dist/{chunk-dx792s4w.js → chunk-rfnasm3c.js} +61 -61
  20. package/dist/{chunk-8wpg3rph.js → chunk-scwj3w7m.js} +2 -2
  21. package/dist/{chunk-0ws25xvg.js → chunk-sd8b4k1t.js} +2 -2
  22. package/dist/{chunk-2vxb3q01.js → chunk-tc7td60t.js} +1 -1
  23. package/dist/{chunk-ygx2pda7.js → chunk-tx7et9g7.js} +4 -4
  24. package/dist/{chunk-5hkdgzh4.js → chunk-x83q18w0.js} +1 -1
  25. package/dist/{chunk-39ykbhq8.js → chunk-xy3hcdhr.js} +5 -5
  26. package/dist/{chunk-xrjt25ns.js → chunk-yja59yh8.js} +10 -10
  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,
@@ -89,9 +91,11 @@ import {
89
91
  ConsoleRef,
90
92
  succeed3,
91
93
  fail4,
94
+ void_2,
92
95
  isSuccess2,
96
+ isFailure2,
93
97
  makeUnsafe5,
94
- make16,
98
+ make15,
95
99
  _await,
96
100
  fail5,
97
101
  isDone,
@@ -99,8 +103,12 @@ import {
99
103
  succeed4,
100
104
  doneUnsafe,
101
105
  TracerTimingEnabled,
106
+ Scope,
107
+ makeUnsafe6,
102
108
  provide,
109
+ addFinalizerExit,
103
110
  addFinalizer,
111
+ close,
104
112
  succeed5,
105
113
  effect,
106
114
  effectContext,
@@ -152,6 +160,7 @@ import {
152
160
  tapCause,
153
161
  retry,
154
162
  ignore,
163
+ ignoreCause,
155
164
  orElseSucceed,
156
165
  timeout,
157
166
  timeoutOrElse,
@@ -163,6 +172,7 @@ import {
163
172
  context,
164
173
  contextWith,
165
174
  provide3,
175
+ provideContext2,
166
176
  serviceOption,
167
177
  updateContext,
168
178
  provideService,
@@ -173,6 +183,7 @@ import {
173
183
  addFinalizer2,
174
184
  ensuring2,
175
185
  onError,
186
+ onExit,
176
187
  cached,
177
188
  interrupt3,
178
189
  interruptible,
@@ -184,6 +195,7 @@ import {
184
195
  withParentSpan,
185
196
  forkScoped,
186
197
  runFork,
198
+ runForkWith,
187
199
  runPromise,
188
200
  runPromiseWith,
189
201
  runSync,
@@ -203,7 +215,7 @@ import {
203
215
  decodeEffect,
204
216
  decodeUnknownOption,
205
217
  decodeOption,
206
- make17,
218
+ make16,
207
219
  isSchema,
208
220
  optionalKey,
209
221
  optional,
@@ -264,11 +276,15 @@ import {
264
276
  decodeJsonStringOption,
265
277
  encodeJsonStringSync,
266
278
  encodePrettyJsonString
267
- } from "./chunk-dx792s4w.js";
279
+ } from "./chunk-rfnasm3c.js";
268
280
  import {
269
281
  map,
270
282
  makeEquivalence,
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-bkteq6b3.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-g1f0cjqe.js";
350
364
  import {
351
365
  isDateTime,
352
366
  Numeric,
@@ -359,7 +373,7 @@ 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;
@@ -502,7 +516,7 @@ var fromDateUnsafe = (date) => {
502
516
  }
503
517
  return makeUtc(epochMillis);
504
518
  };
505
- var makeUnsafe6 = (input) => {
519
+ var makeUnsafe7 = (input) => {
506
520
  if (isDateTime2(input)) {
507
521
  return input;
508
522
  } else if (input instanceof Date) {
@@ -522,7 +536,7 @@ var makeUnsafe6 = (input) => {
522
536
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
523
537
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
524
538
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
525
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
539
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
526
540
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
527
541
  var nowUnsafe = () => makeUtc(Date.now());
528
542
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -629,7 +643,7 @@ class Metric$ {
629
643
  }
630
644
  hook(context) {
631
645
  const key = this.key(context);
632
- const registry = get4(context, MetricRegistry);
646
+ const registry = get3(context, MetricRegistry);
633
647
  let metadata = registry.get(key);
634
648
  if (isUndefined(metadata)) {
635
649
  metadata = this.metadata(this.createHooks());
@@ -638,11 +652,11 @@ class Metric$ {
638
652
  return metadata.hooks;
639
653
  }
640
654
  removeUnsafe(context) {
641
- get4(context, MetricRegistry).delete(this.key(context));
655
+ get3(context, MetricRegistry).delete(this.key(context));
642
656
  }
643
657
  registerUnsafe(context, hooks) {
644
658
  const key = this.key(context);
645
- const registry = get4(context, MetricRegistry);
659
+ const registry = get3(context, MetricRegistry);
646
660
  const metadata = this.metadata({
647
661
  get: hooks.get,
648
662
  update: constVoid,
@@ -658,7 +672,7 @@ class Metric$ {
658
672
  };
659
673
  }
660
674
  key(context) {
661
- const extraAttributes = get4(context, CurrentMetricAttributes);
675
+ const extraAttributes = get3(context, CurrentMetricAttributes);
662
676
  if (extraAttributes !== this.#extraAttributes) {
663
677
  this.#extraAttributes = extraAttributes;
664
678
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -910,9 +924,151 @@ var toNumber = (b) => {
910
924
  return some(Number(b));
911
925
  };
912
926
 
927
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
928
+ var TypeId3 = "~effect/RcRef";
929
+ var stateEmpty = {
930
+ _tag: "Empty"
931
+ };
932
+ var stateClosed = {
933
+ _tag: "Closed"
934
+ };
935
+ var variance = {
936
+ _A: identity,
937
+ _E: identity
938
+ };
939
+
940
+ class RcRefImpl {
941
+ [TypeId3] = variance;
942
+ pipe() {
943
+ return pipeArguments(this, arguments);
944
+ }
945
+ state = stateEmpty;
946
+ acquire;
947
+ context;
948
+ scope;
949
+ idleTimeToLive;
950
+ constructor(acquire, context, scope, idleTimeToLive) {
951
+ this.acquire = acquire;
952
+ this.context = context;
953
+ this.scope = scope;
954
+ this.idleTimeToLive = idleTimeToLive;
955
+ }
956
+ }
957
+ var make17 = (options) => withFiber2((fiber) => {
958
+ const context = fiber.context;
959
+ const scope = get3(context, Scope);
960
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
961
+ return as(addFinalizerExit(scope, () => {
962
+ const state = ref.state;
963
+ ref.state = stateClosed;
964
+ if (state._tag === "Acquired")
965
+ return close(state.scope, void_2);
966
+ if (state._tag === "Acquiring")
967
+ return interrupt(state.fiber);
968
+ return void_3;
969
+ }), ref);
970
+ });
971
+ var getState = (self, restore) => {
972
+ switch (self.state._tag) {
973
+ case "Closed": {
974
+ return interrupt3;
975
+ }
976
+ case "Acquired": {
977
+ const state = self.state;
978
+ state.refCount++;
979
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
980
+ }
981
+ case "Acquiring": {
982
+ const state = self.state;
983
+ state.awaiters++;
984
+ return awaitAcquiring(self, state, restore);
985
+ }
986
+ case "Empty": {
987
+ const acquiring = {
988
+ _tag: "Acquiring",
989
+ fiber: undefined,
990
+ awaiters: 1,
991
+ acquired: undefined
992
+ };
993
+ self.state = acquiring;
994
+ const scope = makeUnsafe6();
995
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
996
+ if (self.state !== acquiring) {
997
+ return interrupt3;
998
+ }
999
+ const state = {
1000
+ _tag: "Acquired",
1001
+ value,
1002
+ scope,
1003
+ fiber: undefined,
1004
+ refCount: acquiring.awaiters,
1005
+ invalidated: false
1006
+ };
1007
+ self.state = state;
1008
+ acquiring.acquired = state;
1009
+ return succeed6(state);
1010
+ }), onExit((exit) => {
1011
+ if (isSuccess2(exit))
1012
+ return void_3;
1013
+ if (self.state === acquiring)
1014
+ self.state = stateEmpty;
1015
+ return close(scope, exit);
1016
+ }));
1017
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1018
+ return awaitAcquiring(self, acquiring, restore);
1019
+ }
1020
+ }
1021
+ };
1022
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1023
+ const acquired = acquiring.acquired;
1024
+ if (acquired !== undefined) {
1025
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1026
+ }
1027
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1028
+ return void_3;
1029
+ self.state = stateEmpty;
1030
+ return interrupt(acquiring.fiber);
1031
+ });
1032
+ var get4 = (self_) => {
1033
+ const self = self_;
1034
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1035
+ };
1036
+ var release = (self, state) => {
1037
+ state.refCount--;
1038
+ if (state.refCount > 0) {
1039
+ return void_3;
1040
+ }
1041
+ const idleTimeToLive = self.idleTimeToLive;
1042
+ if (idleTimeToLive === undefined || state.invalidated) {
1043
+ if (self.state === state) {
1044
+ self.state = stateEmpty;
1045
+ }
1046
+ return close(state.scope, void_2);
1047
+ } else if (!isFinite(idleTimeToLive)) {
1048
+ return void_3;
1049
+ }
1050
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1051
+ if (self.state === state && state.refCount === 0) {
1052
+ self.state = stateEmpty;
1053
+ return ignoreCause(close(state.scope, void_2), {
1054
+ log: "Unhandled",
1055
+ message: "Unhandled error in RcRef finalizer"
1056
+ });
1057
+ }
1058
+ return void_3;
1059
+ })).pipe(ensuring2(sync2(() => {
1060
+ state.fiber = undefined;
1061
+ })), runForkWith(self.context), runIn(self.scope));
1062
+ return void_3;
1063
+ };
1064
+
1065
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1066
+ var make18 = make17;
1067
+ var get5 = get4;
1068
+
913
1069
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
914
- var makeUnsafe = makeUnsafe6;
915
- var make18 = make4;
1070
+ var makeUnsafe = makeUnsafe7;
1071
+ var make19 = make4;
916
1072
  var now2 = now;
917
1073
  var nowUnsafe2 = nowUnsafe;
918
1074
  var toDateUtc2 = toDateUtc;
@@ -1231,7 +1387,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1231
1387
  windowsHide: true
1232
1388
  }, onExit);
1233
1389
  };
1234
- var make19 = /* @__PURE__ */ gen(function* () {
1390
+ var make20 = /* @__PURE__ */ gen(function* () {
1235
1391
  const fs = yield* FileSystem;
1236
1392
  const path = yield* Path;
1237
1393
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1760,7 +1916,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1760
1916
  });
1761
1917
  return make2(spawnCommand);
1762
1918
  });
1763
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1919
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1764
1920
  var flattenCommand = (command) => {
1765
1921
  const commands = [];
1766
1922
  const pipeOptions = [];
@@ -2244,7 +2400,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2244
2400
  resume(fail7(handleBadArgument("writeFile")(err)));
2245
2401
  }
2246
2402
  });
2247
- var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2403
+ var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2248
2404
  access: access2,
2249
2405
  chmod: chmod2,
2250
2406
  chown: chown2,
@@ -2304,15 +2460,15 @@ var fileUrlOps = (windows) => ({
2304
2460
  })
2305
2461
  })
2306
2462
  });
2307
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2463
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2308
2464
  ...NodePath.posix,
2309
2465
  .../* @__PURE__ */ fileUrlOps(false)
2310
2466
  }));
2311
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2467
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2312
2468
  ...NodePath.win32,
2313
2469
  .../* @__PURE__ */ fileUrlOps(true)
2314
2470
  }));
2315
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2471
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2316
2472
  ...NodePath,
2317
2473
  .../* @__PURE__ */ fileUrlOps(undefined)
2318
2474
  }));
@@ -2321,10 +2477,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2321
2477
  var layer2 = layer7;
2322
2478
 
2323
2479
  // 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,
2480
+ var TypeId4 = "~effect/Stdio";
2481
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2482
+ var make21 = (options) => ({
2483
+ [TypeId4]: TypeId4,
2328
2484
  stdinIsTerminal: succeed6(false),
2329
2485
  stdoutIsTerminal: succeed6(false),
2330
2486
  stderrIsTerminal: succeed6(false),
@@ -2332,7 +2488,7 @@ var make20 = (options) => ({
2332
2488
  });
2333
2489
 
2334
2490
  // 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({
2491
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2336
2492
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2337
2493
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2338
2494
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2532,7 +2688,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2532
2688
  const uuid = bytes(randomBytes(16));
2533
2689
  return format === "bytes" ? uuid : stringify(uuid);
2534
2690
  };
2535
- var make21 = (randomBytes) => {
2691
+ var make22 = (randomBytes) => {
2536
2692
  const randomBytesChecked = (size) => {
2537
2693
  checkSize(size);
2538
2694
  return randomBytes(size);
@@ -2566,7 +2722,7 @@ var fillRandom = (crypto2, size) => {
2566
2722
  }
2567
2723
  return bytes;
2568
2724
  };
2569
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2725
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2570
2726
  var randomBytesUnsafe = (size) => {
2571
2727
  checkSize(size);
2572
2728
  return fillRandom(globalThis.crypto, size);
@@ -2574,10 +2730,10 @@ var randomBytesUnsafe = (size) => {
2574
2730
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2575
2731
 
2576
2732
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2577
- var TypeId4 = "~effect/http/Cookies";
2733
+ var TypeId5 = "~effect/http/Cookies";
2578
2734
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2579
2735
  var Proto2 = {
2580
- [TypeId4]: TypeId4,
2736
+ [TypeId5]: TypeId5,
2581
2737
  ...BaseProto,
2582
2738
  toJSON() {
2583
2739
  return {
@@ -2756,14 +2912,14 @@ var tryDecodeURIComponent = (str) => {
2756
2912
  };
2757
2913
 
2758
2914
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2759
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2915
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2760
2916
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2761
- [TypeId5]: {
2762
- value: TypeId5
2917
+ [TypeId6]: {
2918
+ value: TypeId6
2763
2919
  },
2764
2920
  [symbolRedactable]: {
2765
2921
  value(context) {
2766
- return redact2(this, get4(context, CurrentRedactedNames));
2922
+ return redact2(this, get3(context, CurrentRedactedNames));
2767
2923
  }
2768
2924
  },
2769
2925
  toJSON: {
@@ -2788,7 +2944,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2788
2944
  value: BaseProto[NodeInspectSymbol]
2789
2945
  }
2790
2946
  });
2791
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2947
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2792
2948
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2793
2949
  var empty = /* @__PURE__ */ Object.create(Proto3);
2794
2950
  var fromInput = (input) => {
@@ -2813,21 +2969,21 @@ var fromInput = (input) => {
2813
2969
  };
2814
2970
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2815
2971
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2816
- const out = make22(self);
2972
+ const out = make23(self);
2817
2973
  out[key.toLowerCase()] = value;
2818
2974
  return out;
2819
2975
  });
2820
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2976
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2821
2977
  ...self,
2822
2978
  ...fromInput(headers)
2823
2979
  }));
2824
2980
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2825
- const out = make22(self);
2981
+ const out = make23(self);
2826
2982
  Object.assign(out, headers);
2827
2983
  return out;
2828
2984
  });
2829
2985
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2830
- const out = make22(self);
2986
+ const out = make23(self);
2831
2987
  delete out[key.toLowerCase()];
2832
2988
  return out;
2833
2989
  });
@@ -2884,18 +3040,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2884
3040
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2885
3041
 
2886
3042
  // 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);
3043
+ var TypeId7 = "~effect/http/UrlParams";
3044
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2889
3045
  var Proto4 = {
2890
3046
  ...PipeInspectableProto,
2891
- [TypeId6]: TypeId6,
3047
+ [TypeId7]: TypeId7,
2892
3048
  [Symbol.iterator]() {
2893
3049
  return this.params[Symbol.iterator]();
2894
3050
  },
2895
3051
  [symbolRedactable](context) {
2896
3052
  return {
2897
3053
  _id: "UrlParams",
2898
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3054
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2899
3055
  };
2900
3056
  },
2901
3057
  toJSON() {
@@ -2908,7 +3064,7 @@ var Proto4 = {
2908
3064
  return array(this.params.flat());
2909
3065
  }
2910
3066
  };
2911
- var make23 = (params) => {
3067
+ var make24 = (params) => {
2912
3068
  const self = Object.create(Proto4);
2913
3069
  self.params = params;
2914
3070
  return self;
@@ -2927,7 +3083,7 @@ var fromInput2 = (input) => {
2927
3083
  out.push(parsed[i]);
2928
3084
  }
2929
3085
  }
2930
- return make23(out);
3086
+ return make24(out);
2931
3087
  };
2932
3088
  var fromInputNested = (input) => {
2933
3089
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2951,9 +3107,9 @@ var fromInputNested = (input) => {
2951
3107
  return out;
2952
3108
  };
2953
3109
  var coerce = (value) => isRedacted(value) ? value : String(value);
2954
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3110
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2955
3111
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2956
- var empty4 = /* @__PURE__ */ make23([]);
3112
+ var empty4 = /* @__PURE__ */ make24([]);
2957
3113
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2958
3114
  const params = fromInput2(input).params.slice();
2959
3115
  const keys = new Set;
@@ -2965,7 +3121,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2965
3121
  continue;
2966
3122
  params.push(self.params[i]);
2967
3123
  }
2968
- return make23(params);
3124
+ return make24(params);
2969
3125
  });
2970
3126
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2971
3127
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3021,13 +3177,13 @@ var decodeQueryKey = (key) => {
3021
3177
  return key;
3022
3178
  }
3023
3179
  };
3024
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3180
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3025
3181
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3026
3182
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3027
3183
  });
3028
3184
 
3029
3185
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3030
- var TypeId7 = "~effect/Terminal";
3186
+ var TypeId8 = "~effect/Terminal";
3031
3187
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3032
3188
 
3033
3189
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3036,14 +3192,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3036
3192
  [QuitErrorTypeId] = QuitErrorTypeId;
3037
3193
  }
3038
3194
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3039
- var make24 = (impl) => Terminal.of({
3195
+ var make25 = (impl) => Terminal.of({
3040
3196
  ...impl,
3041
- [TypeId7]: TypeId7
3197
+ [TypeId8]: TypeId8
3042
3198
  });
3043
3199
 
3044
3200
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3045
3201
  import * as readline from "readline";
3046
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3202
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3047
3203
  const stdin = process.stdin;
3048
3204
  const stdout = process.stdout;
3049
3205
  const lines = yield* make9();
@@ -3057,7 +3213,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3057
3213
  };
3058
3214
  stdin.once("end", onStdinEnd);
3059
3215
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3060
- const rlRef = yield* make10({
3216
+ const rlRef = yield* make18({
3061
3217
  acquire: acquireRelease(sync2(() => {
3062
3218
  const rl = readline.createInterface({
3063
3219
  input: stdin,
@@ -3096,7 +3252,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3096
3252
  if (stdin.isTTY)
3097
3253
  stdin.setRawMode(enabled);
3098
3254
  });
3099
- const rawModeRef = yield* make10({
3255
+ const rawModeRef = yield* make18({
3100
3256
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3101
3257
  idleTimeToLive: "10 millis"
3102
3258
  });
@@ -3147,14 +3303,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3147
3303
  if (inputEnded) {
3148
3304
  handleEnd();
3149
3305
  } else {
3150
- yield* get3(rlRef);
3151
- yield* get3(rawModeRef);
3306
+ yield* get5(rlRef);
3307
+ yield* get5(rawModeRef);
3152
3308
  stdin.once("end", handleEnd);
3153
3309
  }
3154
3310
  return queue;
3155
3311
  });
3156
3312
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3157
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3313
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3158
3314
  onSome: succeed6
3159
3315
  })), mapError2(() => new QuitError({}))));
3160
3316
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3165,7 +3321,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3165
3321
  cause: err
3166
3322
  }))));
3167
3323
  }));
3168
- return make24({
3324
+ return make25({
3169
3325
  columns,
3170
3326
  rows,
3171
3327
  size,
@@ -3174,7 +3330,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3174
3330
  display
3175
3331
  });
3176
3332
  });
3177
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3333
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3178
3334
  function defaultShouldQuit(input) {
3179
3335
  const key = input.key;
3180
3336
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3201,7 +3357,7 @@ function toDate(input) {
3201
3357
  return toDateUtc2(makeUnsafe(input));
3202
3358
  }
3203
3359
  function parseDate(input) {
3204
- return getOrUndefined(map4(make18(input), toDateUtc2));
3360
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3205
3361
  }
3206
3362
  function toIso(input) {
3207
3363
  return formatIso(makeUnsafe(input));
@@ -7143,7 +7299,8 @@ var StepAttemptSessionUpdateList = Struct({
7143
7299
  next: optionalKey(String4)
7144
7300
  });
7145
7301
  var HarnessHoldReasons = ["out_of_quota", "rate_limited", "login_refused", "failed_to_start"];
7146
- var SkippedChoiceReasons = ["not_on_runner", ...HarnessHoldReasons];
7302
+ var PassOverReasons = [...HarnessHoldReasons, "harness_error"];
7303
+ var SkippedChoiceReasons = ["not_on_runner", ...PassOverReasons];
7147
7304
  var SkippedChoice = Struct({
7148
7305
  harness: optionalKey(String4),
7149
7306
  model: optionalKey(String4),
@@ -7739,6 +7896,7 @@ var ApprovedCheck = Struct({
7739
7896
  workingDirectory: optionalKey(String4.check(isMinLength(1), isMaxLength(500))),
7740
7897
  suggested: optionalKey(Boolean2)
7741
7898
  });
7899
+ var defaultDeployCommand = { name: "deploy", command: ".kitman/deploy" };
7742
7900
  var AfterMergeCommand = Struct({
7743
7901
  command: ApprovedCheck.fields.command,
7744
7902
  workingDirectory: ApprovedCheck.fields.workingDirectory
@@ -8065,7 +8223,7 @@ var HarnessHold = Struct({
8065
8223
  until: optionalKey(Timestamp),
8066
8224
  scope: optionalKey(Literal("step"))
8067
8225
  });
8068
- var StepRestart = Struct({ reason: Literal("login_revoked") });
8226
+ var StepRestart = Struct({ reason: Literals(["login_revoked", "harness_error"]) });
8069
8227
  var WorkUnitOutcome = Struct({
8070
8228
  status: Union([
8071
8229
  Literal("completed"),
@@ -10759,6 +10917,7 @@ var AgentEvent = Union([
10759
10917
  host: String4.check(isMaxLength(300)),
10760
10918
  reason: String4.check(isMaxLength(500))
10761
10919
  }),
10920
+ Struct({ kind: Literal("harness_error"), text: Text }),
10762
10921
  Struct({
10763
10922
  kind: Literal("lifecycle"),
10764
10923
  state: Literals(["started", "resumed", "parked", "finished", "failed", "canceled"])
@@ -10806,11 +10965,11 @@ var TranscriptSearchResult = Struct({
10806
10965
  total: Int
10807
10966
  });
10808
10967
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
10809
- var TypeId8 = "~effect/http/HttpBody";
10968
+ var TypeId9 = "~effect/http/HttpBody";
10810
10969
  class Proto5 {
10811
- [TypeId8];
10970
+ [TypeId9];
10812
10971
  constructor() {
10813
- this[TypeId8] = TypeId8;
10972
+ this[TypeId9] = TypeId9;
10814
10973
  }
10815
10974
  [NodeInspectSymbol]() {
10816
10975
  return this.toJSON();
@@ -10901,7 +11060,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
10901
11060
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
10902
11061
 
10903
11062
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
10904
- var TypeId9 = "~effect/http/HttpClientError";
11063
+ var TypeId10 = "~effect/http/HttpClientError";
10905
11064
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10906
11065
  constructor(props) {
10907
11066
  if ("cause" in props.reason) {
@@ -10913,7 +11072,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10913
11072
  super(props);
10914
11073
  }
10915
11074
  }
10916
- [TypeId9] = TypeId9;
11075
+ [TypeId10] = TypeId10;
10917
11076
  get request() {
10918
11077
  return this.reason.request;
10919
11078
  }
@@ -11017,7 +11176,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11017
11176
  }
11018
11177
  }
11019
11178
 
11020
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11179
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11021
11180
  _tag: /* @__PURE__ */ tag("HttpError"),
11022
11181
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11023
11182
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11050,7 +11209,7 @@ var updateContentLength = (headers, body) => {
11050
11209
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11051
11210
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11052
11211
  }
11053
- var make26 = (url, params, hash) => try_({
11212
+ var make27 = (url, params, hash) => try_({
11054
11213
  try: () => {
11055
11214
  const urlInstance = new URL(url, baseUrl());
11056
11215
  for (let i = 0;i < params.params.length; i++) {
@@ -11081,10 +11240,10 @@ var baseUrl = () => {
11081
11240
  };
11082
11241
 
11083
11242
  // 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);
11243
+ var TypeId11 = "~effect/http/HttpClientRequest";
11244
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11086
11245
  var Proto6 = {
11087
- [TypeId10]: TypeId10,
11246
+ [TypeId11]: TypeId11,
11088
11247
  ...BaseProto,
11089
11248
  toJSON() {
11090
11249
  return {
@@ -11173,7 +11332,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11173
11332
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11174
11333
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11175
11334
  function toUrl(self) {
11176
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11335
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11177
11336
  if (isSuccess(r)) {
11178
11337
  return some(r.success);
11179
11338
  }
@@ -11181,7 +11340,7 @@ function toUrl(self) {
11181
11340
  }
11182
11341
 
11183
11342
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11184
- var TypeId11 = "~effect/http/HttpIncomingMessage";
11343
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
11185
11344
  var schemaBodyJson = (schema, options) => {
11186
11345
  const decode = decodeEffect(toCodecJson(schema));
11187
11346
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11200,7 +11359,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11200
11359
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11201
11360
 
11202
11361
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11203
- var TypeId12 = "~effect/http/HttpClientResponse";
11362
+ var TypeId13 = "~effect/http/HttpClientResponse";
11204
11363
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11205
11364
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11206
11365
  reason: new StatusCodeError({
@@ -11211,16 +11370,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11211
11370
  }));
11212
11371
 
11213
11372
  class WebHttpClientResponse extends Class {
11214
- [TypeId11];
11215
11373
  [TypeId12];
11374
+ [TypeId13];
11216
11375
  request;
11217
11376
  source;
11218
11377
  constructor(request, source) {
11219
11378
  super();
11220
11379
  this.request = request;
11221
11380
  this.source = source;
11222
- this[TypeId11] = TypeId11;
11223
11381
  this[TypeId12] = TypeId12;
11382
+ this[TypeId13] = TypeId13;
11224
11383
  }
11225
11384
  toJSON() {
11226
11385
  return inspect(this, {
@@ -11392,7 +11551,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11392
11551
  };
11393
11552
 
11394
11553
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11395
- var TypeId13 = "~effect/http/HttpClient";
11554
+ var TypeId14 = "~effect/http/HttpClient";
11396
11555
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11397
11556
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11398
11557
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11409,7 +11568,7 @@ var makeWith2 = (postprocess, preprocess) => {
11409
11568
  return self;
11410
11569
  };
11411
11570
  var Proto7 = {
11412
- [TypeId13]: TypeId13,
11571
+ [TypeId14]: TypeId14,
11413
11572
  pipe() {
11414
11573
  return pipeArguments(this, arguments);
11415
11574
  },
@@ -11423,10 +11582,10 @@ var Proto7 = {
11423
11582
  return this.execute(make5(fullMethod)(url, options));
11424
11583
  }]))
11425
11584
  };
11426
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11585
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11427
11586
  const scopedController = scopedRequests.get(request);
11428
11587
  const controller = scopedController ?? new AbortController;
11429
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11588
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11430
11589
  if (isFailure(urlResult)) {
11431
11590
  return fail7(new HttpClientError({
11432
11591
  reason: new InvalidUrlError({
@@ -11560,8 +11719,8 @@ class InterruptibleResponse {
11560
11719
  this.original = original;
11561
11720
  this.controller = controller;
11562
11721
  }
11722
+ [TypeId13] = TypeId13;
11563
11723
  [TypeId12] = TypeId12;
11564
- [TypeId11] = TypeId11;
11565
11724
  applyInterrupt(effect) {
11566
11725
  return suspend3(() => {
11567
11726
  responseRegistry.unregister(this.original);
@@ -11659,7 +11818,7 @@ var detectStreamBodySupport = () => {
11659
11818
  return false;
11660
11819
  }
11661
11820
  };
11662
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11821
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11663
11822
  if (request.headers.upgrade !== undefined) {
11664
11823
  return fail7(new HttpClientError({
11665
11824
  reason: new TransportError({
@@ -11750,10 +11909,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11750
11909
  });
11751
11910
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11752
11911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11753
- var TypeId14 = "~effect/socket/Socket";
11912
+ var TypeId15 = "~effect/socket/Socket";
11754
11913
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11755
- var make28 = (options) => Socket.of({
11756
- [TypeId14]: TypeId14,
11914
+ var make29 = (options) => Socket.of({
11915
+ [TypeId15]: TypeId15,
11757
11916
  reader: options.reader,
11758
11917
  writer: options.writer
11759
11918
  });
@@ -12076,7 +12235,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12076
12235
  write,
12077
12236
  writeAll
12078
12237
  });
12079
- return succeed6(make28({
12238
+ return succeed6(make29({
12080
12239
  reader,
12081
12240
  writer
12082
12241
  }));
@@ -12515,7 +12674,8 @@ var skippedReasonWords = {
12515
12674
  out_of_quota: "out of quota",
12516
12675
  rate_limited: "rate limited",
12517
12676
  login_refused: "login refused",
12518
- failed_to_start: "failed to start"
12677
+ failed_to_start: "failed to start",
12678
+ harness_error: "stopped in its error state"
12519
12679
  };
12520
12680
  var choiceWords = (choice, unnamedModel) => [
12521
12681
  choice.harness ?? "the Runner\u2019s default Harness",
@@ -15401,7 +15561,7 @@ function getStreamSchemas(schema) {
15401
15561
  }
15402
15562
  var schema = /* @__PURE__ */ declare(isStream);
15403
15563
  function Stream(success, error) {
15404
- return make17(schema.ast, {
15564
+ return make16(schema.ast, {
15405
15565
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15406
15566
  success,
15407
15567
  error
@@ -15409,9 +15569,9 @@ function Stream(success, error) {
15409
15569
  }
15410
15570
 
15411
15571
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15412
- var TypeId15 = "~effect/rpc/Rpc";
15572
+ var TypeId16 = "~effect/rpc/Rpc";
15413
15573
  var Proto8 = {
15414
- [TypeId15]: TypeId15,
15574
+ [TypeId16]: TypeId16,
15415
15575
  pipe() {
15416
15576
  return pipeArguments(this, arguments);
15417
15577
  },
@@ -15578,7 +15738,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15578
15738
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15579
15739
 
15580
15740
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15581
- var TypeId16 = "~effect/rpc/RpcClientError";
15741
+ var TypeId17 = "~effect/rpc/RpcClientError";
15582
15742
 
15583
15743
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15584
15744
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15587,11 +15747,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15587
15747
  })) {
15588
15748
  }
15589
15749
 
15590
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15750
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15591
15751
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15592
15752
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15593
15753
  })) {
15594
- [TypeId16] = TypeId16;
15754
+ [TypeId17] = TypeId17;
15595
15755
  get message() {
15596
15756
  return `${this.reason._tag}: ${this.reason.message}`;
15597
15757
  }
@@ -15711,7 +15871,7 @@ var RpcGroupProto = {
15711
15871
  });
15712
15872
  },
15713
15873
  annotateRpcs(service, value) {
15714
- return this.annotateRpcsMerge(make15(service, value));
15874
+ return this.annotateRpcsMerge(make14(service, value));
15715
15875
  },
15716
15876
  annotateMerge(context) {
15717
15877
  return makeProto2({
@@ -15739,7 +15899,7 @@ var make7 = (...rpcs) => makeProto2({
15739
15899
  annotations: empty3()
15740
15900
  });
15741
15901
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15742
- var TypeId17 = "~effect/rpc/RpcMiddleware";
15902
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
15743
15903
  var Service = () => (id, options) => {
15744
15904
  const limit = getStackTraceLimit();
15745
15905
  let creationError;
@@ -15757,7 +15917,7 @@ var Service = () => (id, options) => {
15757
15917
  return creationError?.stack;
15758
15918
  }
15759
15919
  });
15760
- ServiceClass_[TypeId17] = TypeId17;
15920
+ ServiceClass_[TypeId18] = TypeId18;
15761
15921
  ServiceClass_.error = options?.error ?? Never;
15762
15922
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15763
15923
  return ServiceClass;
@@ -16500,7 +16660,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16500
16660
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16501
16661
 
16502
16662
  // apps/cli/src/oauth.ts
16503
- var Scope = "openid profile email offline_access kitman:cli";
16663
+ var Scope2 = "openid profile email offline_access kitman:cli";
16504
16664
  var CallbackPath = "/auth/callback";
16505
16665
 
16506
16666
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16519,7 +16679,7 @@ function buildAuthorizeUrl(input) {
16519
16679
  url.searchParams.set("response_type", "code");
16520
16680
  url.searchParams.set("client_id", input.clientId);
16521
16681
  url.searchParams.set("redirect_uri", input.redirectUri);
16522
- url.searchParams.set("scope", Scope);
16682
+ url.searchParams.set("scope", Scope2);
16523
16683
  url.searchParams.set("code_challenge", input.codeChallenge);
16524
16684
  url.searchParams.set("code_challenge_method", "S256");
16525
16685
  url.searchParams.set("state", input.state);
@@ -16579,7 +16739,7 @@ function toStoredSession(token, existingRefreshToken) {
16579
16739
  }
16580
16740
  function startLoopbackServer(input) {
16581
16741
  return gen(function* () {
16582
- const code = yield* make16();
16742
+ const code = yield* make15();
16583
16743
  const context2 = yield* context();
16584
16744
  const runSyncExit = runSyncExitWith(context2);
16585
16745
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -17127,7 +17287,7 @@ var openConnection = (transport) => gen(function* () {
17127
17287
  let lastId = 0;
17128
17288
  let lost = false;
17129
17289
  const notifications = yield* unbounded2();
17130
- const ended = yield* make16();
17290
+ const ended = yield* make15();
17131
17291
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
17132
17292
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
17133
17293
  onNone: () => void_3,
@@ -17154,7 +17314,7 @@ var openConnection = (transport) => gen(function* () {
17154
17314
  if (lost)
17155
17315
  return yield* new HerdrCoreConnectionLost2({ method });
17156
17316
  const id = ++lastId;
17157
- const deferred = yield* make16();
17317
+ const deferred = yield* make15();
17158
17318
  pending.set(id, { method, deferred });
17159
17319
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
17160
17320
  return yield* _await(deferred);
@@ -17228,7 +17388,7 @@ var herdrCoreOver = (transport) => ({
17228
17388
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
17229
17389
  };
17230
17390
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
17231
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17391
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17232
17392
  }))
17233
17393
  });
17234
17394
  var spawnedTransport = (env) => gen(function* () {
@@ -17319,7 +17479,7 @@ var runProcess2 = (argv, options) => gen(function* () {
17319
17479
  const spawner = yield* ChildProcessSpawner;
17320
17480
  const [command, ...args] = argv;
17321
17481
  const handle = yield* spawner.spawn(make3(command, args, {
17322
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
17482
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17323
17483
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17324
17484
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
17325
17485
  }));
@@ -17839,4 +17999,4 @@ function serviceChecks(declaration) {
17839
17999
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
17840
18000
  }
17841
18001
 
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 };
18002
+ 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, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, 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 };