@kitman-sh/cli 0.10.105 → 0.11.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{chunk-cazap5by.js → chunk-0h5et1rg.js} +6 -6
  2. package/dist/{chunk-2cznmt28.js → chunk-2aj4ym2c.js} +7 -7
  3. package/dist/{chunk-5esfnamp.js → chunk-2sfgqfgq.js} +2 -2
  4. package/dist/{chunk-qcct8vjh.js → chunk-4ngdyd3k.js} +165 -49
  5. package/dist/{chunk-fe65rbvv.js → chunk-6zrq5xq2.js} +9 -9
  6. package/dist/{chunk-pme28eew.js → chunk-7d8prq0a.js} +4 -4
  7. package/dist/{chunk-kadsqvtm.js → chunk-9ew87kjc.js} +7 -212
  8. package/dist/{chunk-c7ym0ce7.js → chunk-anf9ddey.js} +2 -2
  9. package/dist/{chunk-xckn5gax.js → chunk-bj73db3f.js} +1 -1
  10. package/dist/{chunk-30mfra3r.js → chunk-bv9e34qz.js} +1 -1
  11. package/dist/{chunk-7z9m11z3.js → chunk-cbwmsy27.js} +487 -130
  12. package/dist/{chunk-tbrpndp2.js → chunk-cegdw7gw.js} +2 -2
  13. package/dist/{chunk-01fzz2j3.js → chunk-dc681k94.js} +4 -4
  14. package/dist/{chunk-044h6f3n.js → chunk-k2b10qys.js} +21 -19
  15. package/dist/{chunk-t80dhv1r.js → chunk-k6mfj25g.js} +3 -3
  16. package/dist/{chunk-s27r6x3a.js → chunk-kbhm8p3c.js} +5 -5
  17. package/dist/{chunk-0xjrc51m.js → chunk-nb36pw5d.js} +8 -8
  18. package/dist/{chunk-1hw35x4x.js → chunk-pqz98b85.js} +5 -5
  19. package/dist/{chunk-yjnrw9yb.js → chunk-rjdptgqf.js} +4 -4
  20. package/dist/{chunk-hv44tcjs.js → chunk-tx61h9d8.js} +6 -6
  21. package/dist/{chunk-che5w0y4.js → chunk-txyp31q5.js} +66 -60
  22. package/dist/{chunk-hxqxdy21.js → chunk-xmq9zpr1.js} +1 -1
  23. package/dist/{chunk-fzsbapgz.js → chunk-y0q2574w.js} +12 -12
  24. package/dist/{chunk-9nrr1dwr.js → chunk-znh6xbze.js} +28 -177
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make14,
41
+ make13,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,13 +58,15 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make15,
61
+ make14,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get4,
65
+ get3,
66
66
  merge3,
67
67
  Reference,
68
+ fromInputUnsafe,
69
+ isFinite,
68
70
  millis,
69
71
  seconds,
70
72
  toMillis,
@@ -89,9 +91,11 @@ import {
89
91
  ConsoleRef,
90
92
  succeed3,
91
93
  fail4,
94
+ void_2,
92
95
  isSuccess2,
96
+ isFailure2,
93
97
  makeUnsafe5,
94
- make16,
98
+ make15,
95
99
  _await,
96
100
  fail5,
97
101
  isDone,
@@ -99,8 +103,12 @@ import {
99
103
  succeed4,
100
104
  doneUnsafe,
101
105
  TracerTimingEnabled,
106
+ Scope,
107
+ makeUnsafe6,
102
108
  provide,
109
+ addFinalizerExit,
103
110
  addFinalizer,
111
+ close,
104
112
  succeed5,
105
113
  effect,
106
114
  effectContext,
@@ -152,6 +160,7 @@ import {
152
160
  tapCause,
153
161
  retry,
154
162
  ignore,
163
+ ignoreCause,
155
164
  orElseSucceed,
156
165
  timeout,
157
166
  timeoutOrElse,
@@ -163,6 +172,7 @@ import {
163
172
  context,
164
173
  contextWith,
165
174
  provide3,
175
+ provideContext2,
166
176
  serviceOption,
167
177
  updateContext,
168
178
  provideService,
@@ -173,6 +183,7 @@ import {
173
183
  addFinalizer2,
174
184
  ensuring2,
175
185
  onError,
186
+ onExit,
176
187
  cached,
177
188
  interrupt3,
178
189
  interruptible,
@@ -184,6 +195,7 @@ import {
184
195
  withParentSpan,
185
196
  forkScoped,
186
197
  runFork,
198
+ runForkWith,
187
199
  runPromise,
188
200
  runPromiseWith,
189
201
  runSync,
@@ -202,7 +214,7 @@ import {
202
214
  decodeEffect,
203
215
  decodeUnknownOption,
204
216
  decodeOption,
205
- make17,
217
+ make16,
206
218
  isSchema,
207
219
  optionalKey,
208
220
  optional,
@@ -242,6 +254,7 @@ import {
242
254
  Class2,
243
255
  Error3,
244
256
  TaggedError2,
257
+ toEquivalence,
245
258
  toCodecJson,
246
259
  Json,
247
260
  JsonObject,
@@ -249,11 +262,15 @@ import {
249
262
  decodeJsonStringOption,
250
263
  encodeJsonStringSync,
251
264
  encodePrettyJsonString
252
- } from "./chunk-che5w0y4.js";
265
+ } from "./chunk-txyp31q5.js";
253
266
  import {
254
267
  map,
255
268
  makeEquivalence,
256
269
  bytes,
270
+ join,
271
+ interrupt,
272
+ getCurrent,
273
+ runIn,
257
274
  BadArgument,
258
275
  systemError,
259
276
  badArgument,
@@ -275,13 +292,11 @@ import {
275
292
  isSink,
276
293
  fromChannel,
277
294
  drain,
278
- make10,
279
- get3,
280
295
  isStream,
281
296
  fromChannel2,
282
297
  callback,
283
298
  empty2,
284
- make11,
299
+ make10,
285
300
  suspend,
286
301
  fail2,
287
302
  fromQueue,
@@ -307,16 +322,16 @@ import {
307
322
  mkArrayBuffer,
308
323
  toReadableStreamEffect,
309
324
  FileSystem,
310
- make12,
325
+ make11,
311
326
  FileTypeId,
312
327
  WatchBackend,
313
328
  Path,
314
- make13,
329
+ make12,
315
330
  option,
316
331
  String2,
317
332
  optionalEnv,
318
333
  harnessesUnsupportedInSrt2
319
- } from "./chunk-9nrr1dwr.js";
334
+ } from "./chunk-znh6xbze.js";
320
335
  import {
321
336
  isDateTime,
322
337
  Numeric,
@@ -329,7 +344,7 @@ import {
329
344
  SecretScope,
330
345
  SecretHosts,
331
346
  isSecretReference
332
- } from "./chunk-30mfra3r.js";
347
+ } from "./chunk-bv9e34qz.js";
333
348
  import {
334
349
  toJsonValue,
335
350
  isOneOf,
@@ -343,7 +358,7 @@ import {
343
358
  isSymbol,
344
359
  isUndefined,
345
360
  kindOf
346
- } from "./chunk-hxqxdy21.js";
361
+ } from "./chunk-xmq9zpr1.js";
347
362
  import {
348
363
  isRedacted,
349
364
  make,
@@ -357,7 +372,7 @@ import {
357
372
  make3,
358
373
  parseFdName,
359
374
  fdName
360
- } from "./chunk-5esfnamp.js";
375
+ } from "./chunk-2sfgqfgq.js";
361
376
 
362
377
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
363
378
  var makeEquivalence3 = Tuple;
@@ -500,7 +515,7 @@ var fromDateUnsafe = (date) => {
500
515
  }
501
516
  return makeUtc(epochMillis);
502
517
  };
503
- var makeUnsafe6 = (input) => {
518
+ var makeUnsafe7 = (input) => {
504
519
  if (isDateTime2(input)) {
505
520
  return input;
506
521
  } else if (input instanceof Date) {
@@ -520,7 +535,7 @@ var makeUnsafe6 = (input) => {
520
535
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
521
536
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
522
537
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
523
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
538
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
524
539
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
525
540
  var nowUnsafe = () => makeUtc(Date.now());
526
541
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -627,7 +642,7 @@ class Metric$ {
627
642
  }
628
643
  hook(context) {
629
644
  const key = this.key(context);
630
- const registry = get4(context, MetricRegistry);
645
+ const registry = get3(context, MetricRegistry);
631
646
  let metadata = registry.get(key);
632
647
  if (isUndefined2(metadata)) {
633
648
  metadata = this.metadata(this.createHooks());
@@ -636,11 +651,11 @@ class Metric$ {
636
651
  return metadata.hooks;
637
652
  }
638
653
  removeUnsafe(context) {
639
- get4(context, MetricRegistry).delete(this.key(context));
654
+ get3(context, MetricRegistry).delete(this.key(context));
640
655
  }
641
656
  registerUnsafe(context, hooks) {
642
657
  const key = this.key(context);
643
- const registry = get4(context, MetricRegistry);
658
+ const registry = get3(context, MetricRegistry);
644
659
  const metadata = this.metadata({
645
660
  get: hooks.get,
646
661
  update: constVoid,
@@ -656,7 +671,7 @@ class Metric$ {
656
671
  };
657
672
  }
658
673
  key(context) {
659
- const extraAttributes = get4(context, CurrentMetricAttributes);
674
+ const extraAttributes = get3(context, CurrentMetricAttributes);
660
675
  if (extraAttributes !== this.#extraAttributes) {
661
676
  this.#extraAttributes = extraAttributes;
662
677
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -908,9 +923,151 @@ var toNumber = (b) => {
908
923
  return some(Number(b));
909
924
  };
910
925
 
926
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
927
+ var TypeId3 = "~effect/RcRef";
928
+ var stateEmpty = {
929
+ _tag: "Empty"
930
+ };
931
+ var stateClosed = {
932
+ _tag: "Closed"
933
+ };
934
+ var variance = {
935
+ _A: identity,
936
+ _E: identity
937
+ };
938
+
939
+ class RcRefImpl {
940
+ [TypeId3] = variance;
941
+ pipe() {
942
+ return pipeArguments(this, arguments);
943
+ }
944
+ state = stateEmpty;
945
+ acquire;
946
+ context;
947
+ scope;
948
+ idleTimeToLive;
949
+ constructor(acquire, context, scope, idleTimeToLive) {
950
+ this.acquire = acquire;
951
+ this.context = context;
952
+ this.scope = scope;
953
+ this.idleTimeToLive = idleTimeToLive;
954
+ }
955
+ }
956
+ var make17 = (options) => withFiber2((fiber) => {
957
+ const context = fiber.context;
958
+ const scope = get3(context, Scope);
959
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
960
+ return as(addFinalizerExit(scope, () => {
961
+ const state = ref.state;
962
+ ref.state = stateClosed;
963
+ if (state._tag === "Acquired")
964
+ return close(state.scope, void_2);
965
+ if (state._tag === "Acquiring")
966
+ return interrupt(state.fiber);
967
+ return void_3;
968
+ }), ref);
969
+ });
970
+ var getState = (self, restore) => {
971
+ switch (self.state._tag) {
972
+ case "Closed": {
973
+ return interrupt3;
974
+ }
975
+ case "Acquired": {
976
+ const state = self.state;
977
+ state.refCount++;
978
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
979
+ }
980
+ case "Acquiring": {
981
+ const state = self.state;
982
+ state.awaiters++;
983
+ return awaitAcquiring(self, state, restore);
984
+ }
985
+ case "Empty": {
986
+ const acquiring = {
987
+ _tag: "Acquiring",
988
+ fiber: undefined,
989
+ awaiters: 1,
990
+ acquired: undefined
991
+ };
992
+ self.state = acquiring;
993
+ const scope = makeUnsafe6();
994
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
995
+ if (self.state !== acquiring) {
996
+ return interrupt3;
997
+ }
998
+ const state = {
999
+ _tag: "Acquired",
1000
+ value,
1001
+ scope,
1002
+ fiber: undefined,
1003
+ refCount: acquiring.awaiters,
1004
+ invalidated: false
1005
+ };
1006
+ self.state = state;
1007
+ acquiring.acquired = state;
1008
+ return succeed6(state);
1009
+ }), onExit((exit) => {
1010
+ if (isSuccess2(exit))
1011
+ return void_3;
1012
+ if (self.state === acquiring)
1013
+ self.state = stateEmpty;
1014
+ return close(scope, exit);
1015
+ }));
1016
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1017
+ return awaitAcquiring(self, acquiring, restore);
1018
+ }
1019
+ }
1020
+ };
1021
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1022
+ const acquired = acquiring.acquired;
1023
+ if (acquired !== undefined) {
1024
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1025
+ }
1026
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1027
+ return void_3;
1028
+ self.state = stateEmpty;
1029
+ return interrupt(acquiring.fiber);
1030
+ });
1031
+ var get4 = (self_) => {
1032
+ const self = self_;
1033
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1034
+ };
1035
+ var release = (self, state) => {
1036
+ state.refCount--;
1037
+ if (state.refCount > 0) {
1038
+ return void_3;
1039
+ }
1040
+ const idleTimeToLive = self.idleTimeToLive;
1041
+ if (idleTimeToLive === undefined || state.invalidated) {
1042
+ if (self.state === state) {
1043
+ self.state = stateEmpty;
1044
+ }
1045
+ return close(state.scope, void_2);
1046
+ } else if (!isFinite(idleTimeToLive)) {
1047
+ return void_3;
1048
+ }
1049
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1050
+ if (self.state === state && state.refCount === 0) {
1051
+ self.state = stateEmpty;
1052
+ return ignoreCause(close(state.scope, void_2), {
1053
+ log: "Unhandled",
1054
+ message: "Unhandled error in RcRef finalizer"
1055
+ });
1056
+ }
1057
+ return void_3;
1058
+ })).pipe(ensuring2(sync2(() => {
1059
+ state.fiber = undefined;
1060
+ })), runForkWith(self.context), runIn(self.scope));
1061
+ return void_3;
1062
+ };
1063
+
1064
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1065
+ var make18 = make17;
1066
+ var get5 = get4;
1067
+
911
1068
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
912
- var makeUnsafe = makeUnsafe6;
913
- var make18 = make4;
1069
+ var makeUnsafe = makeUnsafe7;
1070
+ var make19 = make4;
914
1071
  var now2 = now;
915
1072
  var nowUnsafe2 = nowUnsafe;
916
1073
  var toDateUtc2 = toDateUtc;
@@ -1229,7 +1386,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1229
1386
  windowsHide: true
1230
1387
  }, onExit);
1231
1388
  };
1232
- var make19 = /* @__PURE__ */ gen(function* () {
1389
+ var make20 = /* @__PURE__ */ gen(function* () {
1233
1390
  const fs = yield* FileSystem;
1234
1391
  const path = yield* Path;
1235
1392
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1758,7 +1915,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1758
1915
  });
1759
1916
  return make2(spawnCommand);
1760
1917
  });
1761
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1918
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1762
1919
  var flattenCommand = (command) => {
1763
1920
  const commands = [];
1764
1921
  const pipeOptions = [];
@@ -2242,7 +2399,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2242
2399
  resume(fail7(handleBadArgument("writeFile")(err)));
2243
2400
  }
2244
2401
  });
2245
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2402
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2246
2403
  access: access2,
2247
2404
  chmod: chmod2,
2248
2405
  chown: chown2,
@@ -2302,15 +2459,15 @@ var fileUrlOps = (windows) => ({
2302
2459
  })
2303
2460
  })
2304
2461
  });
2305
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2462
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2306
2463
  ...NodePath.posix,
2307
2464
  .../* @__PURE__ */ fileUrlOps(false)
2308
2465
  }));
2309
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2466
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2310
2467
  ...NodePath.win32,
2311
2468
  .../* @__PURE__ */ fileUrlOps(true)
2312
2469
  }));
2313
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2470
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2314
2471
  ...NodePath,
2315
2472
  .../* @__PURE__ */ fileUrlOps(undefined)
2316
2473
  }));
@@ -2319,10 +2476,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2319
2476
  var layer2 = layer7;
2320
2477
 
2321
2478
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2322
- var TypeId3 = "~effect/Stdio";
2323
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2324
- var make20 = (options) => ({
2325
- [TypeId3]: TypeId3,
2479
+ var TypeId4 = "~effect/Stdio";
2480
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2481
+ var make21 = (options) => ({
2482
+ [TypeId4]: TypeId4,
2326
2483
  stdinIsTerminal: succeed6(false),
2327
2484
  stdoutIsTerminal: succeed6(false),
2328
2485
  stderrIsTerminal: succeed6(false),
@@ -2330,7 +2487,7 @@ var make20 = (options) => ({
2330
2487
  });
2331
2488
 
2332
2489
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2333
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2490
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2334
2491
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2335
2492
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2336
2493
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2530,7 +2687,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2530
2687
  const uuid = bytes(randomBytes(16));
2531
2688
  return format === "bytes" ? uuid : stringify(uuid);
2532
2689
  };
2533
- var make21 = (randomBytes) => {
2690
+ var make22 = (randomBytes) => {
2534
2691
  const randomBytesChecked = (size) => {
2535
2692
  checkSize(size);
2536
2693
  return randomBytes(size);
@@ -2564,13 +2721,13 @@ var fillRandom = (crypto2, size) => {
2564
2721
  }
2565
2722
  return bytes;
2566
2723
  };
2567
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2724
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2568
2725
 
2569
2726
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2570
- var TypeId4 = "~effect/http/Cookies";
2727
+ var TypeId5 = "~effect/http/Cookies";
2571
2728
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2572
2729
  var Proto2 = {
2573
- [TypeId4]: TypeId4,
2730
+ [TypeId5]: TypeId5,
2574
2731
  ...BaseProto,
2575
2732
  toJSON() {
2576
2733
  return {
@@ -2749,14 +2906,14 @@ var tryDecodeURIComponent = (str) => {
2749
2906
  };
2750
2907
 
2751
2908
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2752
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2909
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2753
2910
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2754
- [TypeId5]: {
2755
- value: TypeId5
2911
+ [TypeId6]: {
2912
+ value: TypeId6
2756
2913
  },
2757
2914
  [symbolRedactable]: {
2758
2915
  value(context) {
2759
- return redact2(this, get4(context, CurrentRedactedNames));
2916
+ return redact2(this, get3(context, CurrentRedactedNames));
2760
2917
  }
2761
2918
  },
2762
2919
  toJSON: {
@@ -2781,7 +2938,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2781
2938
  value: BaseProto[NodeInspectSymbol]
2782
2939
  }
2783
2940
  });
2784
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2941
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2785
2942
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2786
2943
  var empty = /* @__PURE__ */ Object.create(Proto3);
2787
2944
  var fromInput = (input) => {
@@ -2806,21 +2963,21 @@ var fromInput = (input) => {
2806
2963
  };
2807
2964
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2808
2965
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2809
- const out = make22(self);
2966
+ const out = make23(self);
2810
2967
  out[key.toLowerCase()] = value;
2811
2968
  return out;
2812
2969
  });
2813
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2970
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2814
2971
  ...self,
2815
2972
  ...fromInput(headers)
2816
2973
  }));
2817
2974
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2818
- const out = make22(self);
2975
+ const out = make23(self);
2819
2976
  Object.assign(out, headers);
2820
2977
  return out;
2821
2978
  });
2822
2979
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2823
- const out = make22(self);
2980
+ const out = make23(self);
2824
2981
  delete out[key.toLowerCase()];
2825
2982
  return out;
2826
2983
  });
@@ -2877,18 +3034,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2877
3034
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2878
3035
 
2879
3036
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2880
- var TypeId6 = "~effect/http/UrlParams";
2881
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3037
+ var TypeId7 = "~effect/http/UrlParams";
3038
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2882
3039
  var Proto4 = {
2883
3040
  ...PipeInspectableProto,
2884
- [TypeId6]: TypeId6,
3041
+ [TypeId7]: TypeId7,
2885
3042
  [Symbol.iterator]() {
2886
3043
  return this.params[Symbol.iterator]();
2887
3044
  },
2888
3045
  [symbolRedactable](context) {
2889
3046
  return {
2890
3047
  _id: "UrlParams",
2891
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3048
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2892
3049
  };
2893
3050
  },
2894
3051
  toJSON() {
@@ -2901,7 +3058,7 @@ var Proto4 = {
2901
3058
  return array(this.params.flat());
2902
3059
  }
2903
3060
  };
2904
- var make23 = (params) => {
3061
+ var make24 = (params) => {
2905
3062
  const self = Object.create(Proto4);
2906
3063
  self.params = params;
2907
3064
  return self;
@@ -2920,7 +3077,7 @@ var fromInput2 = (input) => {
2920
3077
  out.push(parsed[i]);
2921
3078
  }
2922
3079
  }
2923
- return make23(out);
3080
+ return make24(out);
2924
3081
  };
2925
3082
  var fromInputNested = (input) => {
2926
3083
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2944,9 +3101,9 @@ var fromInputNested = (input) => {
2944
3101
  return out;
2945
3102
  };
2946
3103
  var coerce = (value) => isRedacted(value) ? value : String(value);
2947
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3104
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2948
3105
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2949
- var empty4 = /* @__PURE__ */ make23([]);
3106
+ var empty4 = /* @__PURE__ */ make24([]);
2950
3107
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2951
3108
  const params = fromInput2(input).params.slice();
2952
3109
  const keys = new Set;
@@ -2958,7 +3115,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2958
3115
  continue;
2959
3116
  params.push(self.params[i]);
2960
3117
  }
2961
- return make23(params);
3118
+ return make24(params);
2962
3119
  });
2963
3120
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2964
3121
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3014,13 +3171,13 @@ var decodeQueryKey = (key) => {
3014
3171
  return key;
3015
3172
  }
3016
3173
  };
3017
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3174
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3018
3175
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3019
3176
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3020
3177
  });
3021
3178
 
3022
3179
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3023
- var TypeId7 = "~effect/Terminal";
3180
+ var TypeId8 = "~effect/Terminal";
3024
3181
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3025
3182
 
3026
3183
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3029,14 +3186,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3029
3186
  [QuitErrorTypeId] = QuitErrorTypeId;
3030
3187
  }
3031
3188
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3032
- var make24 = (impl) => Terminal.of({
3189
+ var make25 = (impl) => Terminal.of({
3033
3190
  ...impl,
3034
- [TypeId7]: TypeId7
3191
+ [TypeId8]: TypeId8
3035
3192
  });
3036
3193
 
3037
3194
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3038
3195
  import * as readline from "readline";
3039
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3196
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3040
3197
  const stdin = process.stdin;
3041
3198
  const stdout = process.stdout;
3042
3199
  const lines = yield* make9();
@@ -3050,7 +3207,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3050
3207
  };
3051
3208
  stdin.once("end", onStdinEnd);
3052
3209
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3053
- const rlRef = yield* make10({
3210
+ const rlRef = yield* make18({
3054
3211
  acquire: acquireRelease(sync2(() => {
3055
3212
  const rl = readline.createInterface({
3056
3213
  input: stdin,
@@ -3089,7 +3246,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3089
3246
  if (stdin.isTTY)
3090
3247
  stdin.setRawMode(enabled);
3091
3248
  });
3092
- const rawModeRef = yield* make10({
3249
+ const rawModeRef = yield* make18({
3093
3250
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3094
3251
  idleTimeToLive: "10 millis"
3095
3252
  });
@@ -3140,14 +3297,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3140
3297
  if (inputEnded) {
3141
3298
  handleEnd();
3142
3299
  } else {
3143
- yield* get3(rlRef);
3144
- yield* get3(rawModeRef);
3300
+ yield* get5(rlRef);
3301
+ yield* get5(rawModeRef);
3145
3302
  stdin.once("end", handleEnd);
3146
3303
  }
3147
3304
  return queue;
3148
3305
  });
3149
3306
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3150
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3307
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3151
3308
  onSome: succeed6
3152
3309
  })), mapError2(() => new QuitError({}))));
3153
3310
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3158,7 +3315,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3158
3315
  cause: err
3159
3316
  }))));
3160
3317
  }));
3161
- return make24({
3318
+ return make25({
3162
3319
  columns,
3163
3320
  rows,
3164
3321
  size,
@@ -3167,7 +3324,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3167
3324
  display
3168
3325
  });
3169
3326
  });
3170
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3327
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3171
3328
  function defaultShouldQuit(input) {
3172
3329
  const key = input.key;
3173
3330
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3194,7 +3351,7 @@ function toDate(input) {
3194
3351
  return toDateUtc2(makeUnsafe(input));
3195
3352
  }
3196
3353
  function parseDate(input) {
3197
- return getOrUndefined(map4(make18(input), toDateUtc2));
3354
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3198
3355
  }
3199
3356
  function toIso(input) {
3200
3357
  return formatIso(makeUnsafe(input));
@@ -6064,7 +6221,8 @@ var RunWaiting = Union([
6064
6221
  workUnitId: Id,
6065
6222
  rank: Literals(ClaimRanks),
6066
6223
  position: Int.check(isGreaterThanOrEqualTo(1)),
6067
- reason: String4
6224
+ reason: String4,
6225
+ movesUpAt: optionalKey(String4)
6068
6226
  })
6069
6227
  ]);
6070
6228
  var RunEvidence = Struct({
@@ -6516,6 +6674,7 @@ var RunStartPreview = Struct({
6516
6674
  missing: ArraySchema(String4),
6517
6675
  message: optionalKey(String4),
6518
6676
  waitingOn: optionalKey(WaitingOn),
6677
+ unreachable: optionalKey(Struct({ repoBindingId: Id, message: String4 })),
6519
6678
  teamId: optionalKey(Id),
6520
6679
  inferred: Struct({
6521
6680
  repoBindingId: optionalKey(Id),
@@ -6964,6 +7123,7 @@ var RunnerProblemCodes = [
6964
7123
  "sandbox_missing",
6965
7124
  "herdr_core_missing",
6966
7125
  "update_failed",
7126
+ "update_required",
6967
7127
  "processes_unreaped",
6968
7128
  "processes_uncontained",
6969
7129
  "full_access_refused"
@@ -8010,12 +8170,14 @@ function defaultRunnerCapabilities() {
8010
8170
  // packages/core/src/team-context.ts
8011
8171
  var BranchTemplate = String4.check(isMinLength(1), isMaxLength(160));
8012
8172
  var DeliveryMode = Literals(["gated", "auto"]);
8173
+ var HoursPerPriorityLevel = Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(168));
8013
8174
  var TeamDeliverySettings = Struct({
8014
8175
  defaultRepoBindingId: optionalKey(Id),
8015
8176
  standardBranchTemplate: BranchTemplate,
8016
8177
  epicBranchTemplate: BranchTemplate,
8017
8178
  isolatedChildBranchTemplate: BranchTemplate,
8018
8179
  delivery: DeliveryMode,
8180
+ hoursPerPriorityLevel: HoursPerPriorityLevel,
8019
8181
  revision: Int.check(isGreaterThanOrEqualTo(1))
8020
8182
  });
8021
8183
  var TeamDeliverySettingsUpdate = Struct({
@@ -8024,6 +8186,7 @@ var TeamDeliverySettingsUpdate = Struct({
8024
8186
  epicBranchTemplate: optionalKey(BranchTemplate),
8025
8187
  isolatedChildBranchTemplate: optionalKey(BranchTemplate),
8026
8188
  delivery: optionalKey(DeliveryMode),
8189
+ hoursPerPriorityLevel: optionalKey(HoursPerPriorityLevel),
8027
8190
  expectedRevision: Int.check(isGreaterThanOrEqualTo(1))
8028
8191
  });
8029
8192
  var TeamReference = Struct({ id: Id, workspaceId: Id, key: String4, name: String4 });
@@ -9403,6 +9566,85 @@ function sha256Hasher() {
9403
9566
  digest: (encoding) => hash.digest(encoding)
9404
9567
  };
9405
9568
  }
9569
+ // packages/core/src/schedule.ts
9570
+ var ScheduleFrequency = ["daily", "weekly"];
9571
+ var ScheduleMisfirePolicies = ["skip", "fire_once", "catch_up"];
9572
+ var ScheduleOverlapPolicies = ["allow", "skip", "coalesce"];
9573
+ var ScheduleVersionStatuses = ["draft", "published", "disabled", "archived"];
9574
+ var ScheduleCalendarRule = Struct({
9575
+ frequency: Literals(ScheduleFrequency),
9576
+ hour: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(23)),
9577
+ minute: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(59)),
9578
+ second: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(59))),
9579
+ daysOfWeek: optionalKey(ArraySchema(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(6))).check(isMinLength(1), isMaxLength(7)))
9580
+ });
9581
+ var ScheduleCronRule = Struct({
9582
+ cron: String4.check(isMinLength(9), isMaxLength(200), isPattern(new RegExp("^[0-9*,/-]+( [0-9*,/-]+){4}$", "u")))
9583
+ });
9584
+ var ScheduleRule = Union([ScheduleCalendarRule, ScheduleCronRule]);
9585
+ var cronBounds = [
9586
+ [0, 59],
9587
+ [0, 23],
9588
+ [1, 31],
9589
+ [1, 12],
9590
+ [0, 7]
9591
+ ];
9592
+ function cronField(field, [min, max]) {
9593
+ const values = new Set;
9594
+ for (const part of field.split(",")) {
9595
+ const match = /^(\*|(\d+)(?:-(\d+))?)(?:\/(\d+))?$/.exec(part);
9596
+ if (match === null)
9597
+ return;
9598
+ const from = match[1] === "*" ? min : Number(match[2]);
9599
+ const to = match[1] === "*" ? max : match[3] === undefined ? match[4] === undefined ? from : max : Number(match[3]);
9600
+ const step = match[4] === undefined ? 1 : Number(match[4]);
9601
+ if (from < min || to > max || from > to || step < 1)
9602
+ return;
9603
+ for (let value = from;value <= to; value += step)
9604
+ values.add(value);
9605
+ }
9606
+ return values;
9607
+ }
9608
+ function parseCron(cron) {
9609
+ const fields = cron.split(" ");
9610
+ const [minutes, hours, days, months, weekdays] = fields.map((field, index) => cronField(field, cronBounds[index] ?? [0, 0]));
9611
+ if (fields.length !== 5 || !minutes || !hours || !days || !months || !weekdays)
9612
+ return;
9613
+ return {
9614
+ minutes,
9615
+ hours,
9616
+ days,
9617
+ months,
9618
+ weekdays: new Set([...weekdays].map((value) => value % 7)),
9619
+ dayRestricted: !(fields[2] ?? "").startsWith("*"),
9620
+ weekdayRestricted: !(fields[4] ?? "").startsWith("*")
9621
+ };
9622
+ }
9623
+ function isScheduleRule(value) {
9624
+ return guard(ScheduleRule)(value) && (!("cron" in value) || parseCron(value.cron) !== undefined);
9625
+ }
9626
+ var ScheduleVersion = Struct({
9627
+ contractVersion: Literal("schedule.v1"),
9628
+ id: String4.check(isMinLength(1)),
9629
+ scheduleId: String4.check(isMinLength(1)),
9630
+ workspaceId: String4.check(isMinLength(1)),
9631
+ teamId: optionalKey(String4.check(isMinLength(1))),
9632
+ loopId: optionalKey(String4.check(isMinLength(1))),
9633
+ name: optionalKey(String4.check(isMinLength(1), isMaxLength(200))),
9634
+ version: Int.check(isGreaterThanOrEqualTo(1)),
9635
+ status: Literals(ScheduleVersionStatuses),
9636
+ timezone: String4.check(isMinLength(1), isMaxLength(80)),
9637
+ rule: ScheduleRule,
9638
+ misfirePolicy: Literals(ScheduleMisfirePolicies),
9639
+ overlapPolicy: Literals(ScheduleOverlapPolicies),
9640
+ maxCatchUp: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(200)),
9641
+ misfireGraceSeconds: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(604800))),
9642
+ inputSchemaRef: optionalKey(LoopDataSchemaRef),
9643
+ input: optionalKey(SafeJson),
9644
+ createdAt: String4.check(isMinLength(1))
9645
+ });
9646
+ var zones = new Map;
9647
+ var resolvedLocalDateTimes = new Map;
9406
9648
  // packages/core/src/transcript.ts
9407
9649
  var Text = String4.check(isMaxLength(200000));
9408
9650
  var AgentEvent = Union([
@@ -9485,11 +9727,11 @@ var TranscriptSearchResult = Struct({
9485
9727
  total: Int
9486
9728
  });
9487
9729
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9488
- var TypeId8 = "~effect/http/HttpBody";
9730
+ var TypeId9 = "~effect/http/HttpBody";
9489
9731
  class Proto5 {
9490
- [TypeId8];
9732
+ [TypeId9];
9491
9733
  constructor() {
9492
- this[TypeId8] = TypeId8;
9734
+ this[TypeId9] = TypeId9;
9493
9735
  }
9494
9736
  [NodeInspectSymbol]() {
9495
9737
  return this.toJSON();
@@ -9580,7 +9822,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9580
9822
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9581
9823
 
9582
9824
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9583
- var TypeId9 = "~effect/http/HttpClientError";
9825
+ var TypeId10 = "~effect/http/HttpClientError";
9584
9826
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9585
9827
  constructor(props) {
9586
9828
  if ("cause" in props.reason) {
@@ -9592,7 +9834,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9592
9834
  super(props);
9593
9835
  }
9594
9836
  }
9595
- [TypeId9] = TypeId9;
9837
+ [TypeId10] = TypeId10;
9596
9838
  get request() {
9597
9839
  return this.reason.request;
9598
9840
  }
@@ -9696,7 +9938,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9696
9938
  }
9697
9939
  }
9698
9940
 
9699
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9941
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9700
9942
  _tag: /* @__PURE__ */ tag("HttpError"),
9701
9943
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9702
9944
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9729,7 +9971,7 @@ var updateContentLength = (headers, body) => {
9729
9971
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9730
9972
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9731
9973
  }
9732
- var make26 = (url, params, hash) => try_({
9974
+ var make27 = (url, params, hash) => try_({
9733
9975
  try: () => {
9734
9976
  const urlInstance = new URL(url, baseUrl());
9735
9977
  for (let i = 0;i < params.params.length; i++) {
@@ -9760,10 +10002,10 @@ var baseUrl = () => {
9760
10002
  };
9761
10003
 
9762
10004
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9763
- var TypeId10 = "~effect/http/HttpClientRequest";
9764
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
10005
+ var TypeId11 = "~effect/http/HttpClientRequest";
10006
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9765
10007
  var Proto6 = {
9766
- [TypeId10]: TypeId10,
10008
+ [TypeId11]: TypeId11,
9767
10009
  ...BaseProto,
9768
10010
  toJSON() {
9769
10011
  return {
@@ -9852,7 +10094,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
9852
10094
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
9853
10095
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
9854
10096
  function toUrl(self) {
9855
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
10097
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9856
10098
  if (isSuccess(r)) {
9857
10099
  return some(r.success);
9858
10100
  }
@@ -9860,7 +10102,7 @@ function toUrl(self) {
9860
10102
  }
9861
10103
 
9862
10104
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9863
- var TypeId11 = "~effect/http/HttpIncomingMessage";
10105
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
9864
10106
  var schemaBodyJson = (schema, options) => {
9865
10107
  const decode = decodeEffect(toCodecJson(schema));
9866
10108
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -9879,7 +10121,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
9879
10121
  var getWebSource = (self) => self[WebSourceSymbol]?.();
9880
10122
 
9881
10123
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
9882
- var TypeId12 = "~effect/http/HttpClientResponse";
10124
+ var TypeId13 = "~effect/http/HttpClientResponse";
9883
10125
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
9884
10126
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
9885
10127
  reason: new StatusCodeError({
@@ -9890,16 +10132,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
9890
10132
  }));
9891
10133
 
9892
10134
  class WebHttpClientResponse extends Class {
9893
- [TypeId11];
9894
10135
  [TypeId12];
10136
+ [TypeId13];
9895
10137
  request;
9896
10138
  source;
9897
10139
  constructor(request, source) {
9898
10140
  super();
9899
10141
  this.request = request;
9900
10142
  this.source = source;
9901
- this[TypeId11] = TypeId11;
9902
10143
  this[TypeId12] = TypeId12;
10144
+ this[TypeId13] = TypeId13;
9903
10145
  }
9904
10146
  toJSON() {
9905
10147
  return inspect(this, {
@@ -10071,7 +10313,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10071
10313
  };
10072
10314
 
10073
10315
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10074
- var TypeId13 = "~effect/http/HttpClient";
10316
+ var TypeId14 = "~effect/http/HttpClient";
10075
10317
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10076
10318
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10077
10319
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10088,7 +10330,7 @@ var makeWith2 = (postprocess, preprocess) => {
10088
10330
  return self;
10089
10331
  };
10090
10332
  var Proto7 = {
10091
- [TypeId13]: TypeId13,
10333
+ [TypeId14]: TypeId14,
10092
10334
  pipe() {
10093
10335
  return pipeArguments(this, arguments);
10094
10336
  },
@@ -10102,10 +10344,10 @@ var Proto7 = {
10102
10344
  return this.execute(make5(fullMethod)(url, options));
10103
10345
  }]))
10104
10346
  };
10105
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10347
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10106
10348
  const scopedController = scopedRequests.get(request);
10107
10349
  const controller = scopedController ?? new AbortController;
10108
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10350
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10109
10351
  if (isFailure(urlResult)) {
10110
10352
  return fail7(new HttpClientError({
10111
10353
  reason: new InvalidUrlError({
@@ -10239,8 +10481,8 @@ class InterruptibleResponse {
10239
10481
  this.original = original;
10240
10482
  this.controller = controller;
10241
10483
  }
10484
+ [TypeId13] = TypeId13;
10242
10485
  [TypeId12] = TypeId12;
10243
- [TypeId11] = TypeId11;
10244
10486
  applyInterrupt(effect) {
10245
10487
  return suspend3(() => {
10246
10488
  responseRegistry.unregister(this.original);
@@ -10338,7 +10580,7 @@ var detectStreamBodySupport = () => {
10338
10580
  return false;
10339
10581
  }
10340
10582
  };
10341
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10583
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10342
10584
  if (request.headers.upgrade !== undefined) {
10343
10585
  return fail7(new HttpClientError({
10344
10586
  reason: new TransportError({
@@ -10429,10 +10671,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10429
10671
  });
10430
10672
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10431
10673
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10432
- var TypeId14 = "~effect/socket/Socket";
10674
+ var TypeId15 = "~effect/socket/Socket";
10433
10675
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10434
- var make28 = (options) => Socket.of({
10435
- [TypeId14]: TypeId14,
10676
+ var make29 = (options) => Socket.of({
10677
+ [TypeId15]: TypeId15,
10436
10678
  reader: options.reader,
10437
10679
  writer: options.writer
10438
10680
  });
@@ -10755,7 +10997,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10755
10997
  write,
10756
10998
  writeAll
10757
10999
  });
10758
- return succeed6(make28({
11000
+ return succeed6(make29({
10759
11001
  reader,
10760
11002
  writer
10761
11003
  }));
@@ -11326,6 +11568,120 @@ var DeployBindingCreate = Struct({
11326
11568
  });
11327
11569
  var DeployBindingList = Struct({ items: ArraySchema(DeployBinding) });
11328
11570
  var defaultKitName = "@kitman-sh/software-engineering";
11571
+
11572
+ // packages/core/src/kit-declarations.ts
11573
+ var LoopCapabilities = [
11574
+ "agent_work",
11575
+ "ask",
11576
+ "call",
11577
+ "verify",
11578
+ "change_request",
11579
+ "write_back",
11580
+ "post_comment",
11581
+ "create_tasks",
11582
+ "merge_change_request",
11583
+ "approve_change_request",
11584
+ "publish_release",
11585
+ "read_transcripts",
11586
+ "read_change_request",
11587
+ "measure",
11588
+ "claim",
11589
+ "propose",
11590
+ "read_project",
11591
+ "draft_update"
11592
+ ];
11593
+ var JsonObject2 = Record(String4, Json);
11594
+ var SecretName2 = String4.check(isPattern(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/));
11595
+ var EventFilterValue = Union([String4, Finite, Boolean2, Null]);
11596
+ var LoopManifest = Struct({
11597
+ id: String4,
11598
+ title: String4,
11599
+ version: optionalKey(LoopVersion),
11600
+ input: JsonObject2,
11601
+ output: JsonObject2,
11602
+ outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"])),
11603
+ agents: Record(String4, String4),
11604
+ checkout: Literals(["none", "read", "write"]),
11605
+ when: ArraySchema(Struct({
11606
+ event: String4,
11607
+ filter: optionalKey(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
11608
+ input: Record(String4, String4),
11609
+ values: optionalKey(JsonObject2)
11610
+ })),
11611
+ offers: ArraySchema(Struct({
11612
+ id: String4,
11613
+ title: String4,
11614
+ loop: String4,
11615
+ from: optionalKey(String4)
11616
+ })),
11617
+ capabilities: ArraySchema(Literals(LoopCapabilities)),
11618
+ ownCapabilities: optionalKey(ArraySchema(Literals(LoopCapabilities))),
11619
+ secrets: optionalKey(ArraySchema(SecretName2)),
11620
+ network: optionalKey(AgentSandboxNetwork),
11621
+ schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 }))
11622
+ });
11623
+ var LoopDetail = Struct({
11624
+ id: String4,
11625
+ resolved: optionalKey(Struct({
11626
+ ...ProgramLoop.fields,
11627
+ agents: LoopManifest.fields.agents,
11628
+ when: LoopManifest.fields.when,
11629
+ schedule: optionalKey(Struct({
11630
+ rule: ScheduleRule,
11631
+ timezone: String4,
11632
+ on: Boolean2,
11633
+ nextRunAt: optionalKey(String4)
11634
+ }))
11635
+ }))
11636
+ });
11637
+ var AgentDeclaration = Struct({
11638
+ extends: optionalKey(String4),
11639
+ instructions: optionalKey(String4),
11640
+ harness: optionalKey(String4),
11641
+ model: optionalKey(String4),
11642
+ effort: optionalKey(Literals(AgentEfforts)),
11643
+ fallbacks: optionalKey(ArraySchema(AgentFallback)),
11644
+ tools: optionalKey(ArraySchema(Literals(AgentCapabilities))),
11645
+ skills: optionalKey(ArraySchema(String4.check(isMinLength(1)))),
11646
+ network: optionalKey(Union([Struct({ hosts: ArraySchema(String4) }), Literal("open")])),
11647
+ sandbox: optionalKey(Literal("docker"))
11648
+ });
11649
+ var scheduleFields = {
11650
+ name: String4.check(isMinLength(1)),
11651
+ loop: String4,
11652
+ team: optionalKey(String4),
11653
+ input: optionalKey(JsonObject2),
11654
+ timezone: String4,
11655
+ misfire: optionalKey(Literals(ScheduleMisfirePolicies)),
11656
+ overlap: optionalKey(Literals(ScheduleOverlapPolicies))
11657
+ };
11658
+ var ScheduleDeclaration = Union([
11659
+ Struct({
11660
+ ...scheduleFields,
11661
+ cron: String4.check(makeFilter((cron) => isScheduleRule({ cron }) || "five cron fields, each within its range"))
11662
+ }),
11663
+ Struct({
11664
+ ...scheduleFields,
11665
+ rule: declare((value) => isScheduleRule(value), {
11666
+ expected: "a Schedule rule: frequency daily or weekly, hour, minute, and optionally second and daysOfWeek"
11667
+ })
11668
+ })
11669
+ ]);
11670
+ var CarriedKit = Struct({
11671
+ name: KitName,
11672
+ version: String4.check(isMinLength(1)),
11673
+ setup: KitDigest,
11674
+ loops: ArraySchema(String4),
11675
+ agents: ArraySchema(String4)
11676
+ });
11677
+ var KitDeclarations = Struct({
11678
+ loops: ArraySchema(LoopManifest),
11679
+ agents: Record(String4, AgentDeclaration),
11680
+ schedules: optionalKey(Record(String4, ScheduleDeclaration)),
11681
+ carried: optionalKey(ArraySchema(CarriedKit))
11682
+ });
11683
+ var sameLoop = toEquivalence(LoopManifest);
11684
+ var sameAgent = toEquivalence(AgentDeclaration);
11329
11685
  // packages/core/src/kit-setup.ts
11330
11686
  var KitSetup = Struct({
11331
11687
  ...AgentEnvironmentFragment.fields,
@@ -13650,7 +14006,7 @@ function getStreamSchemas(schema) {
13650
14006
  }
13651
14007
  var schema = /* @__PURE__ */ declare(isStream);
13652
14008
  function Stream(success, error) {
13653
- return make17(schema.ast, {
14009
+ return make16(schema.ast, {
13654
14010
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13655
14011
  success,
13656
14012
  error
@@ -13658,9 +14014,9 @@ function Stream(success, error) {
13658
14014
  }
13659
14015
 
13660
14016
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13661
- var TypeId15 = "~effect/rpc/Rpc";
14017
+ var TypeId16 = "~effect/rpc/Rpc";
13662
14018
  var Proto8 = {
13663
- [TypeId15]: TypeId15,
14019
+ [TypeId16]: TypeId16,
13664
14020
  pipe() {
13665
14021
  return pipeArguments(this, arguments);
13666
14022
  },
@@ -13827,7 +14183,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13827
14183
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13828
14184
 
13829
14185
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13830
- var TypeId16 = "~effect/rpc/RpcClientError";
14186
+ var TypeId17 = "~effect/rpc/RpcClientError";
13831
14187
 
13832
14188
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13833
14189
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13836,11 +14192,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13836
14192
  })) {
13837
14193
  }
13838
14194
 
13839
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
14195
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13840
14196
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13841
14197
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13842
14198
  })) {
13843
- [TypeId16] = TypeId16;
14199
+ [TypeId17] = TypeId17;
13844
14200
  get message() {
13845
14201
  return `${this.reason._tag}: ${this.reason.message}`;
13846
14202
  }
@@ -13960,7 +14316,7 @@ var RpcGroupProto = {
13960
14316
  });
13961
14317
  },
13962
14318
  annotateRpcs(service, value) {
13963
- return this.annotateRpcsMerge(make15(service, value));
14319
+ return this.annotateRpcsMerge(make14(service, value));
13964
14320
  },
13965
14321
  annotateMerge(context) {
13966
14322
  return makeProto2({
@@ -13988,7 +14344,7 @@ var make7 = (...rpcs) => makeProto2({
13988
14344
  annotations: empty3()
13989
14345
  });
13990
14346
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
13991
- var TypeId17 = "~effect/rpc/RpcMiddleware";
14347
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
13992
14348
  var Service = () => (id, options) => {
13993
14349
  const limit = getStackTraceLimit();
13994
14350
  let creationError;
@@ -14006,7 +14362,7 @@ var Service = () => (id, options) => {
14006
14362
  return creationError?.stack;
14007
14363
  }
14008
14364
  });
14009
- ServiceClass_[TypeId17] = TypeId17;
14365
+ ServiceClass_[TypeId18] = TypeId18;
14010
14366
  ServiceClass_.error = options?.error ?? Never;
14011
14367
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
14012
14368
  return ServiceClass;
@@ -14014,7 +14370,6 @@ var Service = () => (id, options) => {
14014
14370
  // packages/live/src/rpc/runner-group.ts
14015
14371
  var RunnerHeaders = { runnerId: "x-kitman-runner-id", protocolVersion: "x-kitman-rpc-protocol" };
14016
14372
  var RunnerRpcProtocolVersion = 5;
14017
-
14018
14373
  class RunnerRpcError extends TaggedError2()("RunnerRpcError", {
14019
14374
  code: String4,
14020
14375
  message: String4,
@@ -14026,7 +14381,7 @@ class RunnerAuthentication extends Service()("RunnerAuthentication", {
14026
14381
  error: RunnerRpcError
14027
14382
  }) {
14028
14383
  }
14029
- var EventFilterValue = Union([String4, Finite, Boolean2, Null]);
14384
+ var EventFilterValue2 = Union([String4, Finite, Boolean2, Null]);
14030
14385
  var WorkAvailable = TaggedStruct("WorkAvailable", {});
14031
14386
  var LeaseRevoked = TaggedStruct("LeaseRevoked", { workUnitId: String4 });
14032
14387
  var Settled = TaggedStruct("Settled", { workUnitId: String4 });
@@ -14239,12 +14594,12 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14239
14594
  step: String4,
14240
14595
  deferredName: String4,
14241
14596
  event: String4,
14242
- filter: optional(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
14597
+ filter: optional(Record(String4, Union([EventFilterValue2, ArraySchema(EventFilterValue2)]))),
14243
14598
  timeoutMillis: Int,
14244
14599
  since: optionalKey(String4),
14245
14600
  or: optionalKey(ArraySchema(Struct({
14246
14601
  event: String4,
14247
- filter: optionalKey(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
14602
+ filter: optionalKey(Record(String4, Union([EventFilterValue2, ArraySchema(EventFilterValue2)]))),
14248
14603
  since: optionalKey(String4)
14249
14604
  })))
14250
14605
  },
@@ -14619,7 +14974,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14619
14974
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14620
14975
 
14621
14976
  // apps/cli/src/oauth.ts
14622
- var Scope = "openid profile email offline_access kitman:cli";
14977
+ var Scope2 = "openid profile email offline_access kitman:cli";
14623
14978
  var CallbackPath = "/auth/callback";
14624
14979
 
14625
14980
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14638,7 +14993,7 @@ function buildAuthorizeUrl(input) {
14638
14993
  url.searchParams.set("response_type", "code");
14639
14994
  url.searchParams.set("client_id", input.clientId);
14640
14995
  url.searchParams.set("redirect_uri", input.redirectUri);
14641
- url.searchParams.set("scope", Scope);
14996
+ url.searchParams.set("scope", Scope2);
14642
14997
  url.searchParams.set("code_challenge", input.codeChallenge);
14643
14998
  url.searchParams.set("code_challenge_method", "S256");
14644
14999
  url.searchParams.set("state", input.state);
@@ -14698,7 +15053,7 @@ function toStoredSession(token, existingRefreshToken) {
14698
15053
  }
14699
15054
  function startLoopbackServer(input) {
14700
15055
  return gen(function* () {
14701
- const code = yield* make16();
15056
+ const code = yield* make15();
14702
15057
  const context2 = yield* context();
14703
15058
  const runSyncExit = runSyncExitWith(context2);
14704
15059
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15238,7 +15593,7 @@ var openConnection = (transport) => gen(function* () {
15238
15593
  let lastId = 0;
15239
15594
  let lost = false;
15240
15595
  const notifications = yield* unbounded2();
15241
- const ended = yield* make16();
15596
+ const ended = yield* make15();
15242
15597
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15243
15598
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15244
15599
  onNone: () => void_3,
@@ -15265,7 +15620,7 @@ var openConnection = (transport) => gen(function* () {
15265
15620
  if (lost)
15266
15621
  return yield* new HerdrCoreConnectionLost2({ method });
15267
15622
  const id = ++lastId;
15268
- const deferred = yield* make16();
15623
+ const deferred = yield* make15();
15269
15624
  pending.set(id, { method, deferred });
15270
15625
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15271
15626
  return yield* _await(deferred);
@@ -15339,7 +15694,7 @@ var herdrCoreOver = (transport) => ({
15339
15694
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15340
15695
  };
15341
15696
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15342
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15697
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15343
15698
  }))
15344
15699
  });
15345
15700
  var spawnedTransport = (env) => gen(function* () {
@@ -15430,7 +15785,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15430
15785
  const spawner = yield* ChildProcessSpawner;
15431
15786
  const [command, ...args] = argv;
15432
15787
  const handle = yield* spawner.spawn(make3(command, args, {
15433
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15788
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15434
15789
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15435
15790
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15436
15791
  }));
@@ -15763,27 +16118,28 @@ var launchableHarnesses = (input) => {
15763
16118
  function herdrRunnerCapabilitiesForRepoBinding2(repoBinding, input) {
15764
16119
  const capabilities = herdrRunnerCapabilities2(input);
15765
16120
  const sshAgentAvailable = input.sshAgentAvailable === true;
15766
- const credentialProviderTypes = [
15767
- ...new Set(repoBinding.credentialRefs.flatMap((credential) => credential.kind === "runner_secret" || credential.kind === "local_env" ? [credential.kind === "runner_secret" ? credential.providerType : "env"] : []))
15768
- ];
15769
16121
  const authenticated = repoBinding.credentialRefs.every((credential) => credential.kind === "none") || repoBinding.credentialRefs.every((credential) => credential.kind === "ssh_agent") && sshAgentAvailable;
15770
16122
  return {
15771
16123
  ...capabilities,
15772
16124
  deliveryTools: input.fullAccess === true && repoBinding.provider === "gitlab" ? [{ kind: "glab", available: true, providerHosts: [repoBinding.host], authenticated }] : capabilities.deliveryTools,
15773
- repoBindings: [
15774
- ...(capabilities.repoBindings ?? []).filter((candidate) => candidate.repoBindingId !== repoBinding.id),
15775
- {
15776
- repoBindingId: repoBinding.id,
15777
- provider: repoBinding.provider,
15778
- host: repoBinding.host,
15779
- accessModes: ["managed_clone"],
15780
- credentialProviderTypes,
15781
- authenticated,
16125
+ ...capabilities.repoBindings === undefined ? undefined : {
16126
+ repoBindings: capabilities.repoBindings.map((reported) => reported.repoBindingId === repoBinding.id ? {
16127
+ ...reported,
15782
16128
  canPush: input.fullAccess === true && repoBinding.credentialRefs.every((credential) => credential.kind === "ssh_agent") && sshAgentAvailable
15783
- }
15784
- ]
16129
+ } : reported)
16130
+ }
15785
16131
  };
15786
16132
  }
16133
+ var reportedRepoBinding = ({ repoBinding, reachable }) => ({
16134
+ repoBindingId: repoBinding.id,
16135
+ provider: repoBinding.provider,
16136
+ host: repoBinding.host,
16137
+ accessModes: ["managed_clone"],
16138
+ credentialProviderTypes: [
16139
+ ...new Set(repoBinding.credentialRefs.flatMap((credential) => credential.kind === "runner_secret" || credential.kind === "local_env" ? [credential.kind === "runner_secret" ? credential.providerType : "env"] : []))
16140
+ ],
16141
+ authenticated: reachable
16142
+ });
15787
16143
  function herdrRunnerCapabilities2(input) {
15788
16144
  const bunVersion = process.versions.bun;
15789
16145
  const sandboxBackends = (input.sandbox?.backends ?? []).filter((backend) => backend !== "host");
@@ -15813,6 +16169,7 @@ function herdrRunnerCapabilities2(input) {
15813
16169
  providerActions: input.fullAccess ? { comment: "allowed", requestChanges: "allowed", approve: "allowed", merge: "disabled" } : { comment: "disabled", requestChanges: "disabled", approve: "disabled", merge: "disabled" },
15814
16170
  cacheSharingModes: []
15815
16171
  },
16172
+ ...input.reached === undefined || input.reached.length === 0 ? undefined : { repoBindings: input.reached.map(reportedRepoBinding) },
15816
16173
  resourceLimits: { maxConcurrentRuns: 1, maxRunSeconds: 86400 },
15817
16174
  measure: true,
15818
16175
  resolve: true
@@ -15853,4 +16210,4 @@ function checkServices(declaration) {
15853
16210
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15854
16211
  }
15855
16212
 
15856
- export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
16213
+ 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, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, RunDisplayStates, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, AgentDeclaration, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };