@kitman-sh/cli 0.10.69 → 0.10.71

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-tf5yxkpy.js → chunk-1rry0tsn.js} +60 -14
  2. package/dist/{chunk-rzr11xyn.js → chunk-1w81w56v.js} +2 -2
  3. package/dist/{chunk-gswz7ngm.js → chunk-4wqjxfbv.js} +5 -5
  4. package/dist/{chunk-qpg9t7he.js → chunk-5n121vsj.js} +7 -7
  5. package/dist/{chunk-0ahahh0f.js → chunk-60333x3q.js} +5 -5
  6. package/dist/{chunk-n0pm4rtm.js → chunk-9e452fhe.js} +197 -108
  7. package/dist/{chunk-q26gt71y.js → chunk-cmatdpfy.js} +5 -5
  8. package/dist/{chunk-zdctyf0w.js → chunk-csbf77zs.js} +8 -8
  9. package/dist/{chunk-677etczq.js → chunk-d3ksv8y1.js} +28 -70
  10. package/dist/{chunk-qdyqc4nz.js → chunk-dk0ftqwg.js} +17 -17
  11. package/dist/{chunk-kqcrxea1.js → chunk-g4xsa9ks.js} +35 -24
  12. package/dist/{chunk-9m14d9d8.js → chunk-gxnpdpjz.js} +7 -7
  13. package/dist/{chunk-drsawp1s.js → chunk-h89p59p6.js} +8 -8
  14. package/dist/{chunk-k7mn104k.js → chunk-hr9vd6dj.js} +3 -3
  15. package/dist/{chunk-p23kedha.js → chunk-q3c7vmby.js} +1 -1
  16. package/dist/{chunk-0271bhj2.js → chunk-rm83dbpv.js} +2 -2
  17. package/dist/{chunk-wnwyp9qn.js → chunk-rrnee9mk.js} +1 -1
  18. package/dist/{chunk-t0rnf6ch.js → chunk-tkmp48ha.js} +4 -4
  19. package/dist/{chunk-h6360r1c.js → chunk-v01c0k6j.js} +1 -1
  20. package/dist/{chunk-j4pmjnyd.js → chunk-vs10kwdr.js} +12 -12
  21. package/dist/{chunk-9p6v3jd2.js → chunk-wtpwkjws.js} +4 -4
  22. package/dist/{chunk-q9n4jkcp.js → chunk-x1zqfxve.js} +11 -6
  23. package/dist/{chunk-jjeawksh.js → chunk-y7p921rs.js} +31 -22
  24. package/dist/{chunk-20qadzgw.js → chunk-zwec6t49.js} +25 -25
  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
- make13,
41
+ make14,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,7 +58,7 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make14,
61
+ make15,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
@@ -91,7 +91,7 @@ import {
91
91
  fail4,
92
92
  isSuccess2,
93
93
  makeUnsafe5,
94
- make15,
94
+ make16,
95
95
  _await,
96
96
  fail5,
97
97
  isDone,
@@ -194,9 +194,6 @@ import {
194
194
  logError,
195
195
  effectify,
196
196
  decode,
197
- isRedacted,
198
- make16,
199
- value,
200
197
  defaultParseOptions,
201
198
  omit,
202
199
  map9,
@@ -251,7 +248,7 @@ import {
251
248
  decodeJsonStringOption,
252
249
  encodeJsonStringSync,
253
250
  encodePrettyJsonString
254
- } from "./chunk-677etczq.js";
251
+ } from "./chunk-d3ksv8y1.js";
255
252
  import {
256
253
  map,
257
254
  makeEquivalence,
@@ -260,8 +257,8 @@ import {
260
257
  systemError,
261
258
  badArgument,
262
259
  makeUnsafe2,
263
- make7,
264
260
  make8,
261
+ make9,
265
262
  sliding,
266
263
  unbounded2,
267
264
  offer,
@@ -277,13 +274,13 @@ import {
277
274
  isSink,
278
275
  fromChannel,
279
276
  drain,
280
- make9,
277
+ make10,
281
278
  get3,
282
279
  isStream,
283
280
  fromChannel2,
284
281
  callback,
285
282
  empty2,
286
- make10,
283
+ make11,
287
284
  suspend,
288
285
  fail2,
289
286
  fromQueue,
@@ -309,16 +306,16 @@ import {
309
306
  mkArrayBuffer,
310
307
  toReadableStreamEffect,
311
308
  FileSystem,
312
- make11,
309
+ make12,
313
310
  FileTypeId,
314
311
  WatchBackend,
315
312
  Path,
316
- make12,
313
+ make13,
317
314
  option,
318
315
  String2,
319
316
  optionalEnv,
320
317
  harnessesUnsupportedInSrt2
321
- } from "./chunk-qdyqc4nz.js";
318
+ } from "./chunk-dk0ftqwg.js";
322
319
  import {
323
320
  isDateTime,
324
321
  Numeric,
@@ -330,7 +327,7 @@ import {
330
327
  SecretName,
331
328
  SecretScope,
332
329
  SecretHosts
333
- } from "./chunk-wnwyp9qn.js";
330
+ } from "./chunk-rrnee9mk.js";
334
331
  import {
335
332
  toJsonValue,
336
333
  isOneOf,
@@ -344,18 +341,21 @@ import {
344
341
  isSymbol,
345
342
  isUndefined,
346
343
  kindOf
347
- } from "./chunk-h6360r1c.js";
344
+ } from "./chunk-v01c0k6j.js";
348
345
  import {
346
+ isRedacted,
347
+ make,
348
+ value,
349
349
  ExitCode,
350
350
  ProcessId,
351
351
  makeHandle,
352
- make,
352
+ make2,
353
353
  ChildProcessSpawner,
354
354
  display,
355
- make2,
355
+ make3,
356
356
  parseFdName,
357
357
  fdName
358
- } from "./chunk-tf5yxkpy.js";
358
+ } from "./chunk-1rry0tsn.js";
359
359
 
360
360
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
361
361
  var makeEquivalence3 = Tuple;
@@ -518,7 +518,7 @@ var makeUnsafe6 = (input) => {
518
518
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
519
519
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
520
520
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
521
- var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
521
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
522
522
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
523
523
  var nowUnsafe = () => makeUtc(Date.now());
524
524
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -908,7 +908,7 @@ var toNumber = (b) => {
908
908
 
909
909
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
910
910
  var makeUnsafe = makeUnsafe6;
911
- var make18 = make3;
911
+ var make18 = make4;
912
912
  var now2 = now;
913
913
  var nowUnsafe2 = nowUnsafe;
914
914
  var toDateUtc2 = toDateUtc;
@@ -1123,7 +1123,7 @@ var readableToPullUnsafe = (options) => {
1123
1123
  const readable = options.readable;
1124
1124
  const chunkSize = options.chunkSize ?? 4096;
1125
1125
  const closeOnDone = options.closeOnDone ?? true;
1126
- const exit = options.exit ?? make7(undefined);
1126
+ const exit = options.exit ?? make8(undefined);
1127
1127
  const latch = options.latch ?? makeUnsafe2(false);
1128
1128
  function onReadable() {
1129
1129
  latch.openUnsafe();
@@ -1687,7 +1687,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1687
1687
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1688
1688
  const toOption = options.to ?? "stdin";
1689
1689
  if (toOption === "stdin") {
1690
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1690
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1691
1691
  ...command.options,
1692
1692
  stdin: {
1693
1693
  ...stdinConfig,
@@ -1707,7 +1707,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1707
1707
  type: "input",
1708
1708
  stream: sourceStream
1709
1709
  };
1710
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1710
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1711
1711
  ...command.options,
1712
1712
  additionalFds: {
1713
1713
  ...existingFds,
@@ -1715,7 +1715,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1715
1715
  }
1716
1716
  })));
1717
1717
  } else {
1718
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1718
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1719
1719
  ...command.options,
1720
1720
  stdin: {
1721
1721
  ...stdinConfig,
@@ -1754,7 +1754,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1754
1754
  }
1755
1755
  }
1756
1756
  });
1757
- return make(spawnCommand);
1757
+ return make2(spawnCommand);
1758
1758
  });
1759
1759
  var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1760
1760
  var flattenCommand = (command) => {
@@ -2240,7 +2240,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2240
2240
  resume(fail7(handleBadArgument("writeFile")(err)));
2241
2241
  }
2242
2242
  });
2243
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2243
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2244
2244
  access: access2,
2245
2245
  chmod: chmod2,
2246
2246
  chown: chown2,
@@ -2300,15 +2300,15 @@ var fileUrlOps = (windows) => ({
2300
2300
  })
2301
2301
  })
2302
2302
  });
2303
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2303
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2304
2304
  ...NodePath.posix,
2305
2305
  .../* @__PURE__ */ fileUrlOps(false)
2306
2306
  }));
2307
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2307
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2308
2308
  ...NodePath.win32,
2309
2309
  .../* @__PURE__ */ fileUrlOps(true)
2310
2310
  }));
2311
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2311
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2312
2312
  ...NodePath,
2313
2313
  .../* @__PURE__ */ fileUrlOps(undefined)
2314
2314
  }));
@@ -2830,12 +2830,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2830
2830
  if (typeof key === "string") {
2831
2831
  const k = key.toLowerCase();
2832
2832
  if (k in self) {
2833
- out[k] = make16(self[k]);
2833
+ out[k] = make(self[k]);
2834
2834
  }
2835
2835
  } else {
2836
2836
  for (const name in self) {
2837
2837
  if (name.search(key) !== -1) {
2838
- out[name] = make16(self[name]);
2838
+ out[name] = make(self[name]);
2839
2839
  }
2840
2840
  }
2841
2841
  }
@@ -2942,7 +2942,7 @@ var fromInputNested = (input) => {
2942
2942
  return out;
2943
2943
  };
2944
2944
  var coerce = (value) => isRedacted(value) ? value : String(value);
2945
- var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2945
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
2946
2946
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2947
2947
  var empty4 = /* @__PURE__ */ make23([]);
2948
2948
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
@@ -2960,7 +2960,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2960
2960
  });
2961
2961
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2962
2962
  const patterns = Array.isArray(key) ? key : [key];
2963
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
2963
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2964
2964
  });
2965
2965
  var isRedactedName2 = isRedactedName;
2966
2966
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3036,7 +3036,7 @@ import * as readline from "readline";
3036
3036
  var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3037
3037
  const stdin = process.stdin;
3038
3038
  const stdout = process.stdout;
3039
- const lines = yield* make8();
3039
+ const lines = yield* make9();
3040
3040
  let inputEnded = stdin.readableEnded;
3041
3041
  let readlineActive = false;
3042
3042
  const onStdinEnd = () => {
@@ -3047,7 +3047,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3047
3047
  };
3048
3048
  stdin.once("end", onStdinEnd);
3049
3049
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3050
- const rlRef = yield* make9({
3050
+ const rlRef = yield* make10({
3051
3051
  acquire: acquireRelease(sync2(() => {
3052
3052
  const rl = readline.createInterface({
3053
3053
  input: stdin,
@@ -3086,7 +3086,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3086
3086
  if (stdin.isTTY)
3087
3087
  stdin.setRawMode(enabled);
3088
3088
  });
3089
- const rawModeRef = yield* make9({
3089
+ const rawModeRef = yield* make10({
3090
3090
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3091
3091
  idleTimeToLive: "10 millis"
3092
3092
  });
@@ -3107,7 +3107,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3107
3107
  return queue;
3108
3108
  });
3109
3109
  const readInput = gen(function* () {
3110
- const queue = yield* make8();
3110
+ const queue = yield* make9();
3111
3111
  const handleKeypress = (s, k) => {
3112
3112
  const userInput = {
3113
3113
  input: fromUndefinedOr(s),
@@ -5915,6 +5915,12 @@ var RunWaiting = Union([
5915
5915
  name: String4.check(isMinLength(1)),
5916
5916
  verificationId: Id
5917
5917
  }),
5918
+ Struct({
5919
+ kind: Literal("claim"),
5920
+ name: String4.check(isMinLength(1)),
5921
+ resource: String4.check(isMinLength(1)),
5922
+ holder: optionalKey(Struct({ runId: Id, loopId: String4 }))
5923
+ }),
5918
5924
  Struct({
5919
5925
  kind: Literal("queue"),
5920
5926
  name: String4.check(isMinLength(1)),
@@ -5936,6 +5942,8 @@ var RunEvidence = Struct({
5936
5942
  durationMs: Int.check(isGreaterThanOrEqualTo(0)),
5937
5943
  outputTail: String4,
5938
5944
  fileIds: optionalKey(ArraySchema(String4)),
5945
+ skippedSinceBaseline: optionalKey(ArraySchema(String4)),
5946
+ newNotRun: optionalKey(ArraySchema(String4)),
5939
5947
  recordedAt: Timestamp
5940
5948
  });
5941
5949
  var ApprovedVerification = Struct({
@@ -6487,6 +6495,74 @@ var NetworkHostQuery = Struct({
6487
6495
  repoBindingId: optionalKey(Id)
6488
6496
  });
6489
6497
 
6498
+ // packages/core/src/test-report.ts
6499
+ var isTestReportName = (name) => /junit.*\.xml$/iu.test(name);
6500
+ var maxSkippedTests = 1e4;
6501
+ var maxRanDigests = 1e5;
6502
+ var TestId = String4.check(isMinLength(1), isMaxLength(1000));
6503
+ var CheckTests = Struct({
6504
+ reports: Int.check(isGreaterThanOrEqualTo(0)),
6505
+ passed: Int.check(isGreaterThanOrEqualTo(0)),
6506
+ failed: Int.check(isGreaterThanOrEqualTo(0)),
6507
+ skipped: Int.check(isGreaterThanOrEqualTo(0)),
6508
+ skippedTests: ArraySchema(TestId).check(isMaxLength(maxSkippedTests)),
6509
+ ranDigests: ArraySchema(String4.check(isMaxLength(16))).check(isMaxLength(maxRanDigests))
6510
+ });
6511
+ var entities = new Map([
6512
+ ["amp", "&"],
6513
+ ["lt", "<"],
6514
+ ["gt", ">"],
6515
+ ["quot", '"'],
6516
+ ["apos", "'"]
6517
+ ]);
6518
+ var codePoint = (whole, value) => value <= 1114111 ? String.fromCodePoint(value) : whole;
6519
+ var decoded = (text) => text.replaceAll(/&(#x[\da-f]+|#\d+|\w+);/giu, (whole, entity) => {
6520
+ if (entity.startsWith("#x") || entity.startsWith("#X"))
6521
+ return codePoint(whole, Number.parseInt(entity.slice(2), 16));
6522
+ if (entity.startsWith("#"))
6523
+ return codePoint(whole, Number(entity.slice(1)));
6524
+ return entities.get(entity) ?? whole;
6525
+ });
6526
+ var attribute = (attributes, name) => {
6527
+ const found = new RegExp(`(?:^|\\s)${name}\\s*=\\s*(?:"([^"]*)"|'([^']*)')`, "u").exec(attributes);
6528
+ return found === null ? undefined : decoded(found[1] ?? found[2] ?? "");
6529
+ };
6530
+ var junitTestCases = (xml) => [...xml.matchAll(/<testcase\b([^>]*?)(?:\/>|>([\s\S]*?)<\/testcase>)/gu)].map(([, attributes = "", body = ""]) => {
6531
+ const id = [attribute(attributes, "file"), attribute(attributes, "classname"), attribute(attributes, "name")].filter((part) => part !== undefined && part !== "").join(" > ");
6532
+ return {
6533
+ id: id.slice(0, 1000) || "(unnamed test)",
6534
+ status: /<(?:failure|error)\b/u.test(body) ? "failed" : /<skipped\b/u.test(body) ? "skipped" : "passed"
6535
+ };
6536
+ });
6537
+ var fnv1a = (text, seed) => {
6538
+ let hash = seed;
6539
+ for (let index = 0;index < text.length; index++) {
6540
+ hash ^= text.charCodeAt(index);
6541
+ hash = Math.imul(hash, 16777619) >>> 0;
6542
+ }
6543
+ return hash.toString(16).padStart(8, "0");
6544
+ };
6545
+ var testDigest = (id) => `${fnv1a(id, 2166136261)}${fnv1a(id, 84696351)}`;
6546
+ var checkTests = (reports) => {
6547
+ const rank = { passed: 0, skipped: 1, failed: 2 };
6548
+ const tests = new Map;
6549
+ for (const found of reports.flatMap(junitTestCases)) {
6550
+ const before = tests.get(found.id);
6551
+ if (before === undefined || rank[found.status] > rank[before])
6552
+ tests.set(found.id, found.status);
6553
+ }
6554
+ const of = (status) => [...tests].flatMap(([id, is]) => is === status ? [id] : []);
6555
+ const skipped = of("skipped").sort();
6556
+ return {
6557
+ reports: reports.length,
6558
+ passed: of("passed").length,
6559
+ failed: of("failed").length,
6560
+ skipped: skipped.length,
6561
+ skippedTests: skipped.slice(0, maxSkippedTests),
6562
+ ranDigests: [...of("passed"), ...of("failed")].map(testDigest).sort().slice(0, maxRanDigests)
6563
+ };
6564
+ };
6565
+
6490
6566
  // packages/core/src/work-unit.ts
6491
6567
  var WorkUnitLease = Struct({
6492
6568
  leaseOwnerId: Id,
@@ -6671,7 +6747,8 @@ var CheckEvidence = Struct({
6671
6747
  exitCode: optionalKey(Int),
6672
6748
  durationMs: Int.check(isGreaterThanOrEqualTo(0)),
6673
6749
  outputTail: String4.check(isMaxLength(8000)),
6674
- fileIds: optionalKey(ArraySchema(String4).check(isMaxLength(51)))
6750
+ fileIds: optionalKey(ArraySchema(String4).check(isMaxLength(51))),
6751
+ tests: optionalKey(CheckTests)
6675
6752
  });
6676
6753
  var TreeEvidence = Struct({
6677
6754
  revision: String4.check(isMinLength(1), isMaxLength(240)),
@@ -9496,13 +9573,13 @@ function makeWith(method, url, urlParams, hash, headers, body) {
9496
9573
  return self;
9497
9574
  }
9498
9575
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
9499
- var make4 = (method) => (url, options) => modify(empty6, {
9576
+ var make5 = (method) => (url, options) => modify(empty6, {
9500
9577
  method,
9501
9578
  url,
9502
9579
  ...options ?? undefined
9503
9580
  });
9504
- var get = /* @__PURE__ */ make4("GET");
9505
- var put = /* @__PURE__ */ make4("PUT");
9581
+ var get = /* @__PURE__ */ make5("GET");
9582
+ var put = /* @__PURE__ */ make5("PUT");
9506
9583
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
9507
9584
  let result = self;
9508
9585
  if (options.method) {
@@ -9801,7 +9878,7 @@ var Proto7 = {
9801
9878
  };
9802
9879
  },
9803
9880
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
9804
- return this.execute(make4(fullMethod)(url, options));
9881
+ return this.execute(make5(fullMethod)(url, options));
9805
9882
  }]))
9806
9883
  };
9807
9884
  var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
@@ -13393,7 +13470,7 @@ var makeProto = (options) => {
13393
13470
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
13394
13471
  return Rpc;
13395
13472
  };
13396
- var make5 = (tag, options) => {
13473
+ var make6 = (tag, options) => {
13397
13474
  const successSchema = options?.success ?? Void;
13398
13475
  const errorSchema = options?.error ?? Never;
13399
13476
  const defectSchema = options?.defect ?? Defect();
@@ -13604,7 +13681,7 @@ var RpcGroupProto = {
13604
13681
  });
13605
13682
  },
13606
13683
  annotateRpcs(service, value) {
13607
- return this.annotateRpcsMerge(make14(service, value));
13684
+ return this.annotateRpcsMerge(make15(service, value));
13608
13685
  },
13609
13686
  annotateMerge(context) {
13610
13687
  return makeProto2({
@@ -13627,7 +13704,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
13627
13704
  requests: options.requests,
13628
13705
  annotations: options.annotations
13629
13706
  });
13630
- var make6 = (...rpcs) => makeProto2({
13707
+ var make7 = (...rpcs) => makeProto2({
13631
13708
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
13632
13709
  annotations: empty3()
13633
13710
  });
@@ -13734,96 +13811,96 @@ var ProgramOutcome = Union([
13734
13811
  Struct({ status: Literal("failed"), failureSummary: String4 })
13735
13812
  ]);
13736
13813
 
13737
- class RunnerReplicaRpcs extends make6(make5("Claim", {
13814
+ class RunnerReplicaRpcs extends make7(make6("Claim", {
13738
13815
  payload: WorkUnitClaimInput,
13739
13816
  success: WorkUnitClaimResult,
13740
13817
  error: RunnerRpcError
13741
- }), make5("Heartbeat", {
13818
+ }), make6("Heartbeat", {
13742
13819
  payload: WorkUnitHeartbeatInput,
13743
13820
  success: WorkUnitHeartbeatResult,
13744
13821
  error: RunnerRpcError
13745
- }), make5("Complete", {
13822
+ }), make6("Complete", {
13746
13823
  payload: WorkUnitCompletion,
13747
13824
  error: RunnerRpcError
13748
- }), make5("Release", {
13825
+ }), make6("Release", {
13749
13826
  payload: WorkUnitReleaseInput,
13750
13827
  error: RunnerRpcError
13751
- }), make5("Signals", {
13828
+ }), make6("Signals", {
13752
13829
  payload: { runnerReplicaId: String4 },
13753
13830
  success: RunnerSignal,
13754
13831
  error: RunnerRpcError,
13755
13832
  stream: true
13756
- }), make5("ReportSteer", {
13833
+ }), make6("ReportSteer", {
13757
13834
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
13758
13835
  success: Void,
13759
13836
  error: RunnerRpcError
13760
- }), make5("AppendTranscript", {
13837
+ }), make6("AppendTranscript", {
13761
13838
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
13762
13839
  success: Void,
13763
13840
  error: RunnerRpcError
13764
- }), make5("CreateCheckpointFile", {
13841
+ }), make6("CreateCheckpointFile", {
13765
13842
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
13766
13843
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
13767
13844
  error: Union([RunnerRpcError, RunFileRefused])
13768
- }), make5("CheckpointFileParts", {
13845
+ }), make6("CheckpointFileParts", {
13769
13846
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
13770
13847
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
13771
13848
  error: RunnerRpcError
13772
- }), make5("CompleteCheckpointFile", {
13849
+ }), make6("CompleteCheckpointFile", {
13773
13850
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
13774
13851
  success: RunFileRecord,
13775
13852
  error: RunnerRpcError
13776
- }), make5("SaveCheckpoint", {
13853
+ }), make6("SaveCheckpoint", {
13777
13854
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
13778
13855
  success: Void,
13779
13856
  error: RunnerRpcError
13780
- }), make5("ResumeCheckpoint", {
13857
+ }), make6("ResumeCheckpoint", {
13781
13858
  payload: { lease: ProgramLease },
13782
13859
  success: UndefinedOr(ResumedCheckpoint),
13783
13860
  error: RunnerRpcError
13784
- }), make5("SettledCheckpoints", {
13861
+ }), make6("SettledCheckpoints", {
13785
13862
  success: ArraySchema(Struct({
13786
13863
  stepAttemptId: String4,
13787
13864
  ref: optionalKey(String4),
13788
13865
  repoBinding: optionalKey(WorkUnitRepoBinding)
13789
13866
  })),
13790
13867
  error: RunnerRpcError
13791
- }), make5("ForgetCheckpoints", {
13868
+ }), make6("ForgetCheckpoints", {
13792
13869
  payload: { stepAttemptIds: ArraySchema(String4) },
13793
13870
  success: Void,
13794
13871
  error: RunnerRpcError
13795
- }), make5("GitCredential", {
13872
+ }), make6("GitCredential", {
13796
13873
  payload: { repoBindingId: String4 },
13797
13874
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
13798
13875
  error: RunnerRpcError
13799
- }), make5("Bundle", {
13876
+ }), make6("Bundle", {
13800
13877
  payload: { digest: String4 },
13801
13878
  success: Struct({ bundle: String4 }),
13802
13879
  error: RunnerRpcError
13803
- }), make5("SettledRuns", {
13880
+ }), make6("SettledRuns", {
13804
13881
  payload: { runIds: ArraySchema(String4) },
13805
13882
  success: ArraySchema(String4),
13806
13883
  error: RunnerRpcError
13807
- }), make5("KnownEvidence", {
13884
+ }), make6("KnownEvidence", {
13808
13885
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
13809
13886
  success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
13810
13887
  error: RunnerRpcError
13811
13888
  })).middleware(RunnerAuthentication) {
13812
13889
  }
13813
13890
 
13814
- class RunnerJournalRpcs extends make6(make5("RecordActivity", {
13891
+ class RunnerJournalRpcs extends make7(make6("RecordActivity", {
13815
13892
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
13816
13893
  error: RunnerRpcError
13817
- }), make5("DeferredDone", {
13894
+ }), make6("DeferredDone", {
13818
13895
  payload: { lease: ProgramLease, name: String4, exit: Json },
13819
13896
  error: RunnerRpcError
13820
- }), make5("ScheduleClock", {
13897
+ }), make6("ScheduleClock", {
13821
13898
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
13822
13899
  error: RunnerRpcError
13823
- }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
13900
+ }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
13824
13901
  }
13825
13902
 
13826
- class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13903
+ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13827
13904
  payload: {
13828
13905
  lease: ProgramLease,
13829
13906
  step: String4,
@@ -13841,7 +13918,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13841
13918
  },
13842
13919
  success: Struct({ questionId: String4 }),
13843
13920
  error: RunnerRpcError
13844
- }), make5("StartAgentStep", {
13921
+ }), make6("StartAgentStep", {
13845
13922
  payload: {
13846
13923
  lease: ProgramLease,
13847
13924
  step: String4,
@@ -13857,7 +13934,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13857
13934
  },
13858
13935
  success: Struct({ stepAttemptId: String4 }),
13859
13936
  error: RunnerRpcError
13860
- }), make5("StartVerification", {
13937
+ }), make6("StartVerification", {
13861
13938
  payload: {
13862
13939
  lease: ProgramLease,
13863
13940
  step: String4,
@@ -13875,7 +13952,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13875
13952
  },
13876
13953
  success: Struct({ verificationId: String4 }),
13877
13954
  error: RunnerRpcError
13878
- }), make5("AwaitEvent", {
13955
+ }), make6("AwaitEvent", {
13879
13956
  payload: {
13880
13957
  lease: ProgramLease,
13881
13958
  step: String4,
@@ -13891,7 +13968,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13891
13968
  })))
13892
13969
  },
13893
13970
  error: RunnerRpcError
13894
- }), make5("ClaimResource", {
13971
+ }), make6("ClaimResource", {
13895
13972
  payload: {
13896
13973
  lease: ProgramLease,
13897
13974
  step: String4,
@@ -13900,7 +13977,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13900
13977
  action: Literals(["claim", "take_over", "let_go"])
13901
13978
  },
13902
13979
  error: RunnerRpcError
13903
- }), make5("AdmitChild", {
13980
+ }), make6("AdmitChild", {
13904
13981
  payload: {
13905
13982
  lease: ProgramLease,
13906
13983
  step: String4,
@@ -13910,7 +13987,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13910
13987
  },
13911
13988
  success: Struct({ runId: String4 }),
13912
13989
  error: RunnerRpcError
13913
- }), make5("StoreArtifact", {
13990
+ }), make6("StoreArtifact", {
13914
13991
  payload: {
13915
13992
  lease: ProgramLease,
13916
13993
  step: String4,
@@ -13922,7 +13999,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13922
13999
  },
13923
14000
  success: Struct({ artifactId: String4 }),
13924
14001
  error: RunnerRpcError
13925
- }), make5("RecordNote", {
14002
+ }), make6("RecordNote", {
13926
14003
  payload: {
13927
14004
  lease: ProgramLease,
13928
14005
  step: String4,
@@ -13930,7 +14007,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13930
14007
  artifactId: optional(String4)
13931
14008
  },
13932
14009
  error: RunnerRpcError
13933
- }), make5("PerformHostEffect", {
14010
+ }), make6("PerformHostEffect", {
13934
14011
  payload: {
13935
14012
  lease: ProgramLease,
13936
14013
  step: String4,
@@ -13958,7 +14035,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13958
14035
  },
13959
14036
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
13960
14037
  error: RunnerRpcError
13961
- }), make5("AlertTask", {
14038
+ }), make6("AlertTask", {
13962
14039
  payload: {
13963
14040
  lease: ProgramLease,
13964
14041
  step: String4,
@@ -13975,7 +14052,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13975
14052
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
13976
14053
  }),
13977
14054
  error: RunnerRpcError
13978
- }), make5("ReadTranscripts", {
14055
+ }), make6("ReadTranscripts", {
13979
14056
  payload: { lease: ProgramLease, step: String4, days: Int },
13980
14057
  success: Struct({
13981
14058
  runs: ArraySchema(Struct({
@@ -13994,7 +14071,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13994
14071
  }))
13995
14072
  }),
13996
14073
  error: RunnerRpcError
13997
- }), make5("PipelineStatus", {
14074
+ }), make6("PipelineStatus", {
13998
14075
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
13999
14076
  success: Struct({
14000
14077
  head: String4,
@@ -14007,14 +14084,26 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14007
14084
  logTail: optionalKey(String4)
14008
14085
  })),
14009
14086
  readAt: optionalKey(String4),
14010
- runnerChecks: optionalKey(ArraySchema(String4))
14087
+ runnerChecks: optionalKey(ArraySchema(String4)),
14088
+ approved: optionalKey(String4),
14089
+ repository: optionalKey(String4),
14090
+ target: optionalKey(Struct({
14091
+ branch: String4,
14092
+ head: String4,
14093
+ jobs: ArraySchema(Struct({
14094
+ name: String4,
14095
+ status: Literals(["running", "success", "failed", "skipped"]),
14096
+ url: optionalKey(String4),
14097
+ logTail: optionalKey(String4)
14098
+ }))
14099
+ }))
14011
14100
  }),
14012
14101
  error: RunnerRpcError
14013
- }), make5("ReportPipeline", {
14102
+ }), make6("ReportPipeline", {
14014
14103
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
14015
14104
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
14016
14105
  error: RunnerRpcError
14017
- }), make5("ReviewThreads", {
14106
+ }), make6("ReviewThreads", {
14018
14107
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14019
14108
  success: Struct({
14020
14109
  threads: ArraySchema(Struct({
@@ -14026,7 +14115,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14026
14115
  }))
14027
14116
  }),
14028
14117
  error: RunnerRpcError
14029
- }), make5("OpenChangeRequests", {
14118
+ }), make6("OpenChangeRequests", {
14030
14119
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
14031
14120
  success: Struct({
14032
14121
  changeRequests: ArraySchema(Struct({
@@ -14040,7 +14129,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14040
14129
  }))
14041
14130
  }),
14042
14131
  error: RunnerRpcError
14043
- }), make5("OwnChangeRequests", {
14132
+ }), make6("OwnChangeRequests", {
14044
14133
  payload: { lease: ProgramLease, step: String4 },
14045
14134
  success: Struct({
14046
14135
  changeRequests: ArraySchema(Struct({
@@ -14053,7 +14142,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14053
14142
  }))
14054
14143
  }),
14055
14144
  error: RunnerRpcError
14056
- }), make5("Propose", {
14145
+ }), make6("Propose", {
14057
14146
  payload: {
14058
14147
  lease: ProgramLease,
14059
14148
  step: String4,
@@ -14080,7 +14169,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14080
14169
  matched: optionalKey(Boolean2)
14081
14170
  }),
14082
14171
  error: RunnerRpcError
14083
- }), make5("ReadProject", {
14172
+ }), make6("ReadProject", {
14084
14173
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
14085
14174
  success: Struct({
14086
14175
  project: Struct({ id: String4, name: String4 }),
@@ -14103,7 +14192,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14103
14192
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
14104
14193
  }),
14105
14194
  error: RunnerRpcError
14106
- }), make5("DraftUpdate", {
14195
+ }), make6("DraftUpdate", {
14107
14196
  payload: {
14108
14197
  lease: ProgramLease,
14109
14198
  step: String4,
@@ -14118,7 +14207,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14118
14207
  },
14119
14208
  success: Struct({ id: String4 }),
14120
14209
  error: RunnerRpcError
14121
- }), make5("CreatePlanTasks", {
14210
+ }), make6("CreatePlanTasks", {
14122
14211
  payload: {
14123
14212
  lease: ProgramLease,
14124
14213
  projectId: optionalKey(String4),
@@ -14133,11 +14222,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14133
14222
  },
14134
14223
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
14135
14224
  error: RunnerRpcError
14136
- }), make5("IntegrationBranch", {
14225
+ }), make6("IntegrationBranch", {
14137
14226
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
14138
14227
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14139
14228
  error: RunnerRpcError
14140
- }), make5("MergeChangeRequest", {
14229
+ }), make6("MergeChangeRequest", {
14141
14230
  payload: {
14142
14231
  lease: ProgramLease,
14143
14232
  step: String4,
@@ -14150,7 +14239,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14150
14239
  Struct({ status: Literal("moved"), head: String4 })
14151
14240
  ]),
14152
14241
  error: RunnerRpcError
14153
- }), make5("ApproveChangeRequest", {
14242
+ }), make6("ApproveChangeRequest", {
14154
14243
  payload: {
14155
14244
  lease: ProgramLease,
14156
14245
  step: String4,
@@ -14165,7 +14254,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14165
14254
  Struct({ approved: Literal(false), reason: String4 })
14166
14255
  ]),
14167
14256
  error: RunnerRpcError
14168
- }), make5("CloseChangeRequest", {
14257
+ }), make6("CloseChangeRequest", {
14169
14258
  payload: {
14170
14259
  lease: ProgramLease,
14171
14260
  step: String4,
@@ -14175,7 +14264,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14175
14264
  },
14176
14265
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
14177
14266
  error: RunnerRpcError
14178
- }), make5("RerunPipeline", {
14267
+ }), make6("RerunPipeline", {
14179
14268
  payload: {
14180
14269
  lease: ProgramLease,
14181
14270
  step: String4,
@@ -14185,7 +14274,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14185
14274
  },
14186
14275
  success: Struct({ head: String4, pipelines: Int }),
14187
14276
  error: RunnerRpcError
14188
- }), make5("PublishRelease", {
14277
+ }), make6("PublishRelease", {
14189
14278
  payload: {
14190
14279
  lease: ProgramLease,
14191
14280
  step: String4,
@@ -14196,14 +14285,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14196
14285
  },
14197
14286
  success: Struct({ tag: String4, revision: String4, url: String4 }),
14198
14287
  error: RunnerRpcError
14199
- }), make5("ProgramSecrets", {
14288
+ }), make6("ProgramSecrets", {
14200
14289
  payload: { lease: ProgramLease },
14201
14290
  success: Record(String4, String4),
14202
14291
  error: RunnerRpcError
14203
14292
  })).middleware(RunnerAuthentication) {
14204
14293
  }
14205
14294
 
14206
- class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14295
+ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14207
14296
  payload: {
14208
14297
  lease: ProgramLease,
14209
14298
  step: String4,
@@ -14215,11 +14304,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14215
14304
  },
14216
14305
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14217
14306
  error: Union([RunnerRpcError, RunFileRefused])
14218
- }), make5("RunFileParts", {
14307
+ }), make6("RunFileParts", {
14219
14308
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14220
14309
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14221
14310
  error: RunnerRpcError
14222
- }), make5("CompleteRunFile", {
14311
+ }), make6("CompleteRunFile", {
14223
14312
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14224
14313
  success: RunFileRecord,
14225
14314
  error: RunnerRpcError
@@ -14308,7 +14397,7 @@ function toStoredSession(token, existingRefreshToken) {
14308
14397
  }
14309
14398
  function startLoopbackServer(input) {
14310
14399
  return gen(function* () {
14311
- const code = yield* make15();
14400
+ const code = yield* make16();
14312
14401
  const context2 = yield* context();
14313
14402
  const runSyncExit = runSyncExitWith(context2);
14314
14403
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -14848,7 +14937,7 @@ var openConnection = (transport) => gen(function* () {
14848
14937
  let lastId = 0;
14849
14938
  let lost = false;
14850
14939
  const notifications = yield* unbounded2();
14851
- const ended = yield* make15();
14940
+ const ended = yield* make16();
14852
14941
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
14853
14942
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
14854
14943
  onNone: () => void_3,
@@ -14875,7 +14964,7 @@ var openConnection = (transport) => gen(function* () {
14875
14964
  if (lost)
14876
14965
  return yield* new HerdrCoreConnectionLost2({ method });
14877
14966
  const id = ++lastId;
14878
- const deferred = yield* make15();
14967
+ const deferred = yield* make16();
14879
14968
  pending.set(id, { method, deferred });
14880
14969
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
14881
14970
  return yield* _await(deferred);
@@ -14949,14 +15038,14 @@ var herdrCoreOver = (transport) => ({
14949
15038
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
14950
15039
  };
14951
15040
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
14952
- return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15041
+ return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
14953
15042
  }))
14954
15043
  });
14955
15044
  var spawnedTransport = (env) => gen(function* () {
14956
15045
  const spawner = yield* ChildProcessSpawner;
14957
15046
  const input = yield* unbounded2();
14958
15047
  const encoder = new TextEncoder;
14959
- const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
15048
+ const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
14960
15049
  extendEnv: false,
14961
15050
  env,
14962
15051
  stdin: fromQueue(input),
@@ -14987,7 +15076,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
14987
15076
  const spawner = yield* ChildProcessSpawner;
14988
15077
  const env = coreEnv(options);
14989
15078
  const run = (args) => gen(function* () {
14990
- const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15079
+ const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
14991
15080
  const [stdout, stderr, exitCode] = yield* all3([
14992
15081
  mkString(decodeText(handle.stdout)),
14993
15082
  mkString(decodeText(handle.stderr)),
@@ -15013,7 +15102,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
15013
15102
  }
15014
15103
  var runCommand2 = (command, args, options = {}) => gen(function* () {
15015
15104
  const spawner = yield* ChildProcessSpawner;
15016
- const handle = yield* spawner.spawn(make2(command, args, {
15105
+ const handle = yield* spawner.spawn(make3(command, args, {
15017
15106
  stdin: "ignore",
15018
15107
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15019
15108
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -15039,8 +15128,8 @@ var shellOutputTailChars2 = 64 * 1024;
15039
15128
  var runProcess2 = (argv, options) => gen(function* () {
15040
15129
  const spawner = yield* ChildProcessSpawner;
15041
15130
  const [command, ...args] = argv;
15042
- const handle = yield* spawner.spawn(make2(command, args, {
15043
- stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15131
+ const handle = yield* spawner.spawn(make3(command, args, {
15132
+ stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15044
15133
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15045
15134
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15046
15135
  }));
@@ -15462,4 +15551,4 @@ function checkServices(declaration) {
15462
15551
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15463
15552
  }
15464
15553
 
15465
- export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, put, setHeaders, bodyUint8Array, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
15554
+ export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, put, setHeaders, bodyUint8Array, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };