@kitman-sh/cli 0.10.79 → 0.10.80

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-wq91rwr2.js → chunk-0dwnwx45.js} +5 -5
  2. package/dist/{chunk-ambnfp64.js → chunk-0wy2gwj2.js} +8 -8
  3. package/dist/{chunk-5mafe4g9.js → chunk-1xn27063.js} +5 -5
  4. package/dist/{chunk-76ctrqm6.js → chunk-2afjvt1c.js} +1 -1
  5. package/dist/{chunk-9zd52pda.js → chunk-4tjeks83.js} +5 -5
  6. package/dist/{chunk-fh762fzy.js → chunk-5v9pywm3.js} +62 -48
  7. package/dist/{chunk-0znt4wky.js → chunk-61jk9k82.js} +268 -187
  8. package/dist/{chunk-vt7p2dqj.js → chunk-7b6qsc4y.js} +23 -23
  9. package/dist/{chunk-tzz4fv17.js → chunk-80z95x19.js} +1 -1
  10. package/dist/{chunk-agmt5yte.js → chunk-84gm9qq8.js} +27 -26
  11. package/dist/{chunk-xb70ys3n.js → chunk-bxxym84e.js} +31 -165
  12. package/dist/{chunk-b0cscqbw.js → chunk-ctfv3bg6.js} +2 -2
  13. package/dist/{chunk-774x1zm9.js → chunk-czxcs1ce.js} +7 -7
  14. package/dist/{chunk-msejjzvq.js → chunk-f3k1vjtf.js} +14 -14
  15. package/dist/{chunk-545b129z.js → chunk-fwsq4r8a.js} +9 -2
  16. package/dist/{chunk-t07tn0ay.js → chunk-hr6etnzn.js} +4 -4
  17. package/dist/{chunk-fq47a5yd.js → chunk-kjms81x1.js} +2 -2
  18. package/dist/{chunk-kvv8n1nq.js → chunk-twms8y72.js} +4 -4
  19. package/dist/{chunk-jbwk6k6m.js → chunk-v9nqb2tp.js} +226 -40
  20. package/dist/{chunk-r3240g3z.js → chunk-vcvnk771.js} +4 -4
  21. package/dist/{chunk-98sg1yyd.js → chunk-wqv9y3dk.js} +14 -60
  22. package/dist/{chunk-e8zm8z3a.js → chunk-xkqbgz5j.js} +8 -8
  23. package/dist/{chunk-04h76486.js → chunk-yp10rhmv.js} +7 -7
  24. package/dist/{chunk-gntbq9g8.js → chunk-z0tv3ak5.js} +3 -3
  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,7 +58,7 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make15,
61
+ make14,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
@@ -91,7 +91,7 @@ import {
91
91
  fail4,
92
92
  isSuccess2,
93
93
  makeUnsafe5,
94
- make16,
94
+ make15,
95
95
  _await,
96
96
  fail5,
97
97
  isDone,
@@ -193,7 +193,12 @@ import {
193
193
  clockWith,
194
194
  logError,
195
195
  effectify,
196
+ toNumber,
197
+ bytes,
196
198
  decode,
199
+ isRedacted,
200
+ make16,
201
+ value,
197
202
  defaultParseOptions,
198
203
  omit,
199
204
  map9,
@@ -225,6 +230,7 @@ import {
225
230
  withDecodingDefaultKey,
226
231
  tag,
227
232
  TaggedStruct,
233
+ makeFilter,
228
234
  isPattern,
229
235
  Finite,
230
236
  isGreaterThanOrEqualTo,
@@ -248,17 +254,16 @@ import {
248
254
  decodeJsonStringOption,
249
255
  encodeJsonStringSync,
250
256
  encodePrettyJsonString
251
- } from "./chunk-jbwk6k6m.js";
257
+ } from "./chunk-v9nqb2tp.js";
252
258
  import {
253
259
  map,
254
260
  makeEquivalence,
255
- bytes,
256
261
  BadArgument,
257
262
  systemError,
258
263
  badArgument,
259
264
  makeUnsafe2,
265
+ make7,
260
266
  make8,
261
- make9,
262
267
  sliding,
263
268
  unbounded2,
264
269
  offer,
@@ -274,13 +279,13 @@ import {
274
279
  isSink,
275
280
  fromChannel,
276
281
  drain,
277
- make10,
282
+ make9,
278
283
  get3,
279
284
  isStream,
280
285
  fromChannel2,
281
286
  callback,
282
287
  empty2,
283
- make11,
288
+ make10,
284
289
  suspend,
285
290
  fail2,
286
291
  fromQueue,
@@ -306,16 +311,27 @@ import {
306
311
  mkArrayBuffer,
307
312
  toReadableStreamEffect,
308
313
  FileSystem,
309
- make12,
314
+ make11,
310
315
  FileTypeId,
311
316
  WatchBackend,
312
317
  Path,
313
- make13,
318
+ make12,
314
319
  option,
315
320
  String2,
316
321
  optionalEnv,
317
322
  harnessesUnsupportedInSrt2
318
- } from "./chunk-xb70ys3n.js";
323
+ } from "./chunk-bxxym84e.js";
324
+ import {
325
+ ExitCode,
326
+ ProcessId,
327
+ makeHandle,
328
+ make,
329
+ ChildProcessSpawner,
330
+ display,
331
+ make2,
332
+ parseFdName,
333
+ fdName
334
+ } from "./chunk-wqv9y3dk.js";
319
335
  import {
320
336
  isDateTime,
321
337
  Numeric,
@@ -326,8 +342,9 @@ import {
326
342
  ActorType,
327
343
  SecretName,
328
344
  SecretScope,
329
- SecretHosts
330
- } from "./chunk-545b129z.js";
345
+ SecretHosts,
346
+ isSecretReference
347
+ } from "./chunk-fwsq4r8a.js";
331
348
  import {
332
349
  toJsonValue,
333
350
  isOneOf,
@@ -341,22 +358,7 @@ import {
341
358
  isSymbol,
342
359
  isUndefined,
343
360
  kindOf
344
- } from "./chunk-tzz4fv17.js";
345
- import {
346
- isRedacted,
347
- make,
348
- value,
349
- ExitCode,
350
- ProcessId,
351
- makeHandle,
352
- make2,
353
- ChildProcessSpawner,
354
- display,
355
- make3,
356
- parseFdName,
357
- fdName
358
- } from "./chunk-98sg1yyd.js";
359
-
361
+ } from "./chunk-80z95x19.js";
360
362
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
361
363
  var makeEquivalence3 = Tuple;
362
364
 
@@ -518,7 +520,7 @@ var makeUnsafe6 = (input) => {
518
520
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
519
521
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
520
522
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
521
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
523
+ var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
522
524
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
523
525
  var nowUnsafe = () => makeUtc(Date.now());
524
526
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -897,18 +899,9 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
897
899
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
898
900
  var runMain = runMain2;
899
901
 
900
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
901
- var BigInt2 = globalThis.BigInt;
902
- var toNumber = (b) => {
903
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
904
- return none();
905
- }
906
- return some(Number(b));
907
- };
908
-
909
902
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
910
903
  var makeUnsafe = makeUnsafe6;
911
- var make18 = make4;
904
+ var make18 = make3;
912
905
  var now2 = now;
913
906
  var nowUnsafe2 = nowUnsafe;
914
907
  var toDateUtc2 = toDateUtc;
@@ -1123,7 +1116,7 @@ var readableToPullUnsafe = (options) => {
1123
1116
  const readable = options.readable;
1124
1117
  const chunkSize = options.chunkSize ?? 4096;
1125
1118
  const closeOnDone = options.closeOnDone ?? true;
1126
- const exit = options.exit ?? make8(undefined);
1119
+ const exit = options.exit ?? make7(undefined);
1127
1120
  const latch = options.latch ?? makeUnsafe2(false);
1128
1121
  function onReadable() {
1129
1122
  latch.openUnsafe();
@@ -1687,7 +1680,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1687
1680
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1688
1681
  const toOption = options.to ?? "stdin";
1689
1682
  if (toOption === "stdin") {
1690
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1683
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1691
1684
  ...command.options,
1692
1685
  stdin: {
1693
1686
  ...stdinConfig,
@@ -1707,7 +1700,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1707
1700
  type: "input",
1708
1701
  stream: sourceStream
1709
1702
  };
1710
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1703
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1711
1704
  ...command.options,
1712
1705
  additionalFds: {
1713
1706
  ...existingFds,
@@ -1715,7 +1708,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1715
1708
  }
1716
1709
  })));
1717
1710
  } else {
1718
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1711
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1719
1712
  ...command.options,
1720
1713
  stdin: {
1721
1714
  ...stdinConfig,
@@ -1754,7 +1747,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1754
1747
  }
1755
1748
  }
1756
1749
  });
1757
- return make2(spawnCommand);
1750
+ return make(spawnCommand);
1758
1751
  });
1759
1752
  var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1760
1753
  var flattenCommand = (command) => {
@@ -2240,7 +2233,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2240
2233
  resume(fail7(handleBadArgument("writeFile")(err)));
2241
2234
  }
2242
2235
  });
2243
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2236
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2244
2237
  access: access2,
2245
2238
  chmod: chmod2,
2246
2239
  chown: chown2,
@@ -2300,15 +2293,15 @@ var fileUrlOps = (windows) => ({
2300
2293
  })
2301
2294
  })
2302
2295
  });
2303
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2296
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2304
2297
  ...NodePath.posix,
2305
2298
  .../* @__PURE__ */ fileUrlOps(false)
2306
2299
  }));
2307
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2300
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2308
2301
  ...NodePath.win32,
2309
2302
  .../* @__PURE__ */ fileUrlOps(true)
2310
2303
  }));
2311
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2304
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2312
2305
  ...NodePath,
2313
2306
  .../* @__PURE__ */ fileUrlOps(undefined)
2314
2307
  }));
@@ -2830,12 +2823,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2830
2823
  if (typeof key === "string") {
2831
2824
  const k = key.toLowerCase();
2832
2825
  if (k in self) {
2833
- out[k] = make(self[k]);
2826
+ out[k] = make16(self[k]);
2834
2827
  }
2835
2828
  } else {
2836
2829
  for (const name in self) {
2837
2830
  if (name.search(key) !== -1) {
2838
- out[name] = make(self[name]);
2831
+ out[name] = make16(self[name]);
2839
2832
  }
2840
2833
  }
2841
2834
  }
@@ -2942,7 +2935,7 @@ var fromInputNested = (input) => {
2942
2935
  return out;
2943
2936
  };
2944
2937
  var coerce = (value) => isRedacted(value) ? value : String(value);
2945
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
2938
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2946
2939
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2947
2940
  var empty4 = /* @__PURE__ */ make23([]);
2948
2941
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
@@ -2961,7 +2954,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2961
2954
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2962
2955
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2963
2956
  const patterns = Array.isArray(key) ? key : [key];
2964
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2957
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
2965
2958
  });
2966
2959
  var isRedactedName2 = isRedactedName;
2967
2960
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3037,7 +3030,7 @@ import * as readline from "readline";
3037
3030
  var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3038
3031
  const stdin = process.stdin;
3039
3032
  const stdout = process.stdout;
3040
- const lines = yield* make9();
3033
+ const lines = yield* make8();
3041
3034
  let inputEnded = stdin.readableEnded;
3042
3035
  let readlineActive = false;
3043
3036
  const onStdinEnd = () => {
@@ -3048,7 +3041,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3048
3041
  };
3049
3042
  stdin.once("end", onStdinEnd);
3050
3043
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3051
- const rlRef = yield* make10({
3044
+ const rlRef = yield* make9({
3052
3045
  acquire: acquireRelease(sync2(() => {
3053
3046
  const rl = readline.createInterface({
3054
3047
  input: stdin,
@@ -3087,7 +3080,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3087
3080
  if (stdin.isTTY)
3088
3081
  stdin.setRawMode(enabled);
3089
3082
  });
3090
- const rawModeRef = yield* make10({
3083
+ const rawModeRef = yield* make9({
3091
3084
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3092
3085
  idleTimeToLive: "10 millis"
3093
3086
  });
@@ -3108,7 +3101,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3108
3101
  return queue;
3109
3102
  });
3110
3103
  const readInput = gen(function* () {
3111
- const queue = yield* make9();
3104
+ const queue = yield* make8();
3112
3105
  const handleKeypress = (s, k) => {
3113
3106
  const userInput = {
3114
3107
  input: fromUndefinedOr(s),
@@ -3234,7 +3227,8 @@ var RedactionFindingSchema = Struct({
3234
3227
  classification: RedactionClassificationSchema,
3235
3228
  rule: String4.check(isMinLength(1), isMaxLength(120)),
3236
3229
  preview: String4.check(isMaxLength(160)),
3237
- sha256: String4.check(isPattern(new RegExp("^[a-f0-9]{64}$", "u")))
3230
+ sha256: String4.check(isPattern(new RegExp("^[a-f0-9]{64}$", "u"))),
3231
+ span: optionalKey(Struct({ start: Int.check(isGreaterThanOrEqualTo(0)), end: Int }))
3238
3232
  });
3239
3233
  var EvidenceRef = Struct({
3240
3234
  contractVersion: Literal(EvidenceRefContractVersion),
@@ -3378,62 +3372,146 @@ var LOCAL_PATH_KEYS = new Set([
3378
3372
  "docker_socket",
3379
3373
  "ssh_agent_socket"
3380
3374
  ]);
3375
+ var wrappedValue = String.raw`<[A-Za-z][A-Za-z0-9 _.-]*>|\$\{[^{}\s]*\}|\{\{[^{}]*\}\}|proxy-ep=[A-Za-z0-9.-]+;kitmanref(?:[0-9a-f]{2})+(?![A-Za-z0-9._~+/-])`;
3376
+ var secretReferenceTail = String.raw`(?<=secret:)\/\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+(?![^\s,;}"')\]\x60])`;
3377
+ var bearerValue = /[0-9]|[._~+/:-][A-Za-z0-9]|[<{]/u;
3381
3378
  var VALUE_RULES = [
3382
- ["secret", /-----BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY-----/u, "private-key"],
3383
- ["credential", /\bBearer\s+(?=[A-Za-z]*(?:[0-9]|[._~+/-][A-Za-z0-9]))[A-Za-z0-9._~+/-]+=*/iu, "bearer-token"],
3384
- [
3385
- "credential",
3386
- /(?:^|[^A-Za-z0-9])(?:ghp_|github_pat_|glpat-|ksa1\.|sk-[A-Za-z0-9_-]{8,}|xox[baprs]-)[A-Za-z0-9._-]+/u,
3387
- "provider-token"
3388
- ],
3389
- [
3390
- "credential",
3391
- /(?:api[_ -]?key|secret|token|password)\s*[:=]\s*(?!env\b|file\b|exec\b)[^\s,;}]+/iu,
3392
- "credential-assignment"
3393
- ],
3394
- ["pii", /\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/iu, "email"],
3395
- ["pii", /\b\d{3}-\d{2}-\d{4}\b/u, "ssn"],
3396
- ["pii", /(?:\+\d[\d ()-]{8,}\d|\(\d{3}\)[\d -]{7,}\d|\b\d{3}[ -]\d{3}[ -]\d{4}\b)/u, "phone"],
3397
- ["pii", /\b(?:\d[ -]*?){13,19}\b/u, "payment-number"],
3398
- ["url", /\b(?:https?|ftp):\/\/[^\s]+/iu, "url-content"],
3399
- ["diff", /(^|\n)diff --git\s/u, "diff-content"],
3400
- ["source", /(^|\n)\s*(?:import|export|const|let|var|function|class)\s+[A-Za-z_$]/u, "source-content"],
3401
- ["log", /(?:^|\n)\s*\d{4}-\d{2}-\d{2}T\S+\s+(?:ERROR|WARN|INFO|DEBUG)\b/u, "structured-log"],
3402
- ["transcript", /(?:^|\n)\s*(?:user|assistant|system)\s*:/iu, "transcript-content"]
3379
+ { classification: "secret", name: "private-key", pattern: /-----BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY-----/u },
3380
+ {
3381
+ classification: "credential",
3382
+ name: "bearer-token",
3383
+ pattern: new RegExp(`\\bBearer\\s+(?<value>(?:${wrappedValue}|[A-Za-z0-9._~+/*:=-])+(?<![.,:]))`, "iu"),
3384
+ holds: (value) => !isPlaceholder(value) && bearerValue.test(value)
3385
+ },
3386
+ {
3387
+ classification: "credential",
3388
+ name: "provider-token",
3389
+ pattern: /(?:^|[^A-Za-z0-9])(?<value><?(?:ghp_|github_pat_|glpat-|ksa1\.|sk-[A-Za-z0-9_-]{8,}|xox[baprs]-)[A-Za-z0-9._*-]*[A-Za-z0-9_*-]>?)/u,
3390
+ holds: (value) => !isPlaceholder(value)
3391
+ },
3392
+ {
3393
+ classification: "credential",
3394
+ name: "credential-assignment",
3395
+ pattern: new RegExp(`(?:api[_ -]?key|secret|token|password)\\s*[:=]\\s*(?!env\\b|file\\b|exec\\b|${secretReferenceTail})(?<value>(?:${wrappedValue}|[^\\s,;{}])+)`, "iu"),
3396
+ holds: looksLikeCredential
3397
+ },
3398
+ { classification: "pii", name: "email", pattern: /\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/iu },
3399
+ { classification: "pii", name: "ssn", pattern: /\b\d{3}-\d{2}-\d{4}\b/u },
3400
+ {
3401
+ classification: "pii",
3402
+ name: "phone",
3403
+ pattern: /(?:\+\d[\d ()-]{8,}\d|\(\d{3}\)[\d -]{7,}\d|\b\d{3}[ -]\d{3}[ -]\d{4}\b)/u
3404
+ },
3405
+ { classification: "pii", name: "payment-number", pattern: /\b(?:\d[ -]*?){13,19}\b/u },
3406
+ { classification: "url", name: "url-content", pattern: /\b(?:https?|ftp):\/\/[^\s]+/iu },
3407
+ { classification: "diff", name: "diff-content", pattern: /(^|\n)diff --git\s/u },
3408
+ {
3409
+ classification: "source",
3410
+ name: "source-content",
3411
+ pattern: /(^|\n)\s*(?:import|export|const|let|var|function|class)\s+[A-Za-z_$]/u
3412
+ },
3413
+ {
3414
+ classification: "log",
3415
+ name: "structured-log",
3416
+ pattern: /(?:^|\n)\s*\d{4}-\d{2}-\d{2}T\S+\s+(?:ERROR|WARN|INFO|DEBUG)\b/u
3417
+ },
3418
+ { classification: "transcript", name: "transcript-content", pattern: /(?:^|\n)\s*(?:user|assistant|system)\s*:/iu }
3419
+ ];
3420
+ var maskedToken = /^(?:ghp_|github_pat_|glpat-|ksa1\.|xox[baprs]-|sk-(?:ant-(?:[a-z]+[0-9]*-)?|proj-|or-v[0-9]+-)?)(?:x{4,}|X{4,}|\*{4,})$/u;
3421
+ var placeholderWord = "(?:[A-Z]?[a-z]+|[A-Z]+)";
3422
+ var placeholders = [
3423
+ maskedToken,
3424
+ new RegExp(`^<${placeholderWord}[0-9]{0,2}(?:[ _.-]${placeholderWord}[0-9]{0,2})*>$`, "u"),
3425
+ /^\$\{[A-Za-z_][A-Za-z0-9_]*\}$/u,
3426
+ /^\$[A-Za-z_][A-Za-z0-9_]*$/u,
3427
+ /^\{\{\s*[A-Za-z_][A-Za-z0-9_.]*\s*\}\}$/u,
3428
+ /^%[A-Za-z_][A-Za-z0-9_]*%$/u,
3429
+ /^\[REDACTED(?::[a-z_]+)?\]$/u,
3430
+ /^[A-Z][A-Z0-9]*(?:_[A-Z][A-Z0-9]*)+$/u,
3431
+ /^([xX*\u2022#.-])\1{2,}$/u,
3432
+ /^runner-secret:[A-Z0-9_]+:(?:env|file|exec)$/u
3403
3433
  ];
3434
+ var isPlaceholder = (value) => placeholders.some((pattern) => pattern.test(value)) || isSecretReference(value);
3435
+ var holdsNoSecret = (classification, value) => (classification === "secret" || classification === "credential") && isString(value) && isPlaceholder(value.trim());
3436
+ var unwrapped = (value) => value.replace(/^["'`(]+/u, "").replace(/["'`).]+$/u, "");
3437
+ function looksLikeCredential(raw, matched) {
3438
+ const value = unwrapped(raw);
3439
+ if (isPlaceholder(raw) || isPlaceholder(value))
3440
+ return false;
3441
+ return /^[^\s:=]+=\S/u.test(matched) || value.length >= 6 && /[0-9]/u.test(value) || value.length >= 20 && /[a-z]/u.test(value) && /[A-Z]/u.test(value);
3442
+ }
3443
+ function ruleMatch(rule, text) {
3444
+ for (const match of text.matchAll(globalPattern(rule))) {
3445
+ const value = match.groups?.value ?? match[0];
3446
+ if (rule.holds !== undefined && !rule.holds(value, match[0]))
3447
+ continue;
3448
+ const start = match.index + (match.groups?.value === undefined ? 0 : match[0].lastIndexOf(value));
3449
+ return { classification: rule.classification, rule: rule.name, span: { start, end: start + value.length } };
3450
+ }
3451
+ return;
3452
+ }
3453
+ var globalPatterns = new WeakMap;
3454
+ var globalPattern = (rule) => {
3455
+ const known = globalPatterns.get(rule);
3456
+ if (known !== undefined)
3457
+ return known;
3458
+ const pattern = new RegExp(rule.pattern.source, `${rule.pattern.flags}g`);
3459
+ globalPatterns.set(rule, pattern);
3460
+ return pattern;
3461
+ };
3462
+ var redactedBy = (text, rule) => text.replace(globalPattern(rule), (matched, ...rest) => {
3463
+ const groups = rest.at(-1);
3464
+ const value = isObject(groups) && groups !== null && "value" in groups ? groups.value : undefined;
3465
+ return rule.holds === undefined || rule.holds(isString(value) ? value : matched, matched) ? `[REDACTED:${rule.classification}]` : matched;
3466
+ });
3404
3467
  var runnerSecretReference = /^runner-secret:[A-Z0-9_]+:(?:env|file|exec)$/u;
3468
+ var credentialUrlRule = {
3469
+ classification: "url",
3470
+ name: "credential-url",
3471
+ pattern: /\b(?:https?|ftp):\/\/(?:[^\s/?#]*@|[^\s?#]*\?)[^\s]*/iu
3472
+ };
3405
3473
  var uuidPattern = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/giu;
3406
- var credentialUrl = /\b(?:https?|ftp):\/\/(?:[^\s/?#]*@|[^\s?#]*\?)[^\s]*/iu;
3407
- function classifyDurableSurfaceValue(key, value, options = {}) {
3408
- const classification = classifyAnything(key, value);
3409
- if (options.leavesKitman === true || classification === undefined || keptClassifications.has(classification))
3410
- return classification;
3474
+ function classifiedValue(key, value, options) {
3475
+ const classified = classifyAnything(key, value);
3476
+ if (options.leavesKitman === true || classified === undefined || keptClassifications.has(classified.classification))
3477
+ return classified;
3411
3478
  return isString(value) ? credentialIn(value) : undefined;
3412
3479
  }
3413
3480
  var keptClassifications = new Set(["secret", "credential", "unknown"]);
3414
3481
  function credentialIn(value) {
3415
- const rule = VALUE_RULES.find(([classification, pattern]) => keptClassifications.has(classification) && pattern.test(value));
3416
- return rule?.[0] ?? (credentialUrl.test(value) ? "url" : undefined);
3482
+ for (const rule of VALUE_RULES) {
3483
+ const matched = keptClassifications.has(rule.classification) ? ruleMatch(rule, value) : undefined;
3484
+ if (matched !== undefined)
3485
+ return matched;
3486
+ }
3487
+ return ruleMatch(credentialUrlRule, value);
3417
3488
  }
3418
3489
  function classifyAnything(key, value) {
3419
3490
  const normalizedKey = normalizeKey(key);
3420
3491
  if (LOCAL_PATH_KEYS.has(normalizedKey) && isString(value) && isUnsafeLocalPath(value))
3421
- return "path";
3492
+ return { classification: "path" };
3422
3493
  const byKey = KEY_CLASSIFICATION[normalizedKey];
3423
3494
  if (byKey !== undefined)
3424
- return byKey;
3495
+ return holdsNoSecret(byKey, value) ? undefined : { classification: byKey };
3425
3496
  if (Array.isArray(value) || isPlainObject(value))
3426
3497
  return;
3427
- if (!isString(value))
3428
- return unsupportedValueClassification(value);
3498
+ if (!isString(value)) {
3499
+ const unsupported = unsupportedValueClassification(value);
3500
+ return unsupported === undefined ? undefined : { classification: unsupported };
3501
+ }
3429
3502
  if (REDACTED_PATTERN.test(value.trim()))
3430
3503
  return;
3431
3504
  if ((normalizedKey === "api_url" || normalizedKey === "api_base_url") && /^https?:\/\/[^?\s]+$/u.test(value))
3432
3505
  return;
3433
3506
  if (runnerSecretReference.test(value))
3434
3507
  return;
3435
- const text = value.replace(uuidPattern, "uuid");
3436
- return VALUE_RULES.find(([, pattern]) => pattern.test(text))?.[0];
3508
+ const masked = value.replace(uuidPattern, (uuid) => "u".repeat(uuid.length));
3509
+ for (const rule of VALUE_RULES) {
3510
+ const matched = ruleMatch(rule, keptClassifications.has(rule.classification) ? value : masked);
3511
+ if (matched !== undefined)
3512
+ return matched;
3513
+ }
3514
+ return;
3437
3515
  }
3438
3516
  var durableTextLimit = 1024;
3439
3517
  function scanDurableSurface(value, path = "surface", options = {}) {
@@ -3459,11 +3537,12 @@ function scanValue(value, path, key, findings, depth, options = {}) {
3459
3537
  return;
3460
3538
  if (key !== undefined) {
3461
3539
  const normalizedKey = normalizeKey(key);
3462
- const keyClassification = classifyDurableSurfaceValue(key, value, options);
3540
+ const classified = classifiedValue(key, value, options);
3541
+ const keyClassification = classified?.classification;
3463
3542
  if ((keyClassification === undefined || keyClassification === "pii") && options.allowCanonicalIds === true && LIVE_CANONICAL_ID_KEYS.has(normalizedKey) && isString(value) && CANONICAL_ID_PATTERN.test(value) && /[A-Za-z]/u.test(value))
3464
3543
  return;
3465
- if (keyClassification !== undefined) {
3466
- findings.push(finding(path, keyClassification, value));
3544
+ if (classified !== undefined) {
3545
+ findings.push(classifiedFinding(path, classified, value));
3467
3546
  return;
3468
3547
  }
3469
3548
  }
@@ -3476,9 +3555,9 @@ function scanValue(value, path, key, findings, depth, options = {}) {
3476
3555
  scanValue(child, `${path}.${childKey}`, childKey, findings, depth + 1, options);
3477
3556
  return;
3478
3557
  }
3479
- const classification = classifyDurableSurfaceValue(key ?? path, value, options);
3480
- if (classification !== undefined)
3481
- findings.push(finding(path, classification, value));
3558
+ const classified = classifiedValue(key ?? path, value, options);
3559
+ if (classified !== undefined)
3560
+ findings.push(classifiedFinding(path, classified, value));
3482
3561
  else if (isString(value) && value.length > (options.maxTextLength ?? durableTextLimit))
3483
3562
  findings.push(finding(path, "unknown", value, "unbounded-text"));
3484
3563
  }
@@ -3491,6 +3570,10 @@ function finding(path, classification, value, rule = "classified-key") {
3491
3570
  sha256: sha256(canonicalJson2(value))
3492
3571
  };
3493
3572
  }
3573
+ var classifiedFinding = (path, classified, value) => ({
3574
+ ...finding(path, classified.classification, value, classified.rule),
3575
+ ...classified.span === undefined ? undefined : { span: classified.span }
3576
+ });
3494
3577
  function isUnsafeLocalPath(value) {
3495
3578
  return value.startsWith("/") || value.startsWith("~") || value.includes("/.ssh") || value.includes("/.config") || value.includes("docker.sock");
3496
3579
  }
@@ -3672,11 +3755,8 @@ function requiredWord(values, index) {
3672
3755
  throw new Error(`SHA-256 word index ${index} is out of bounds`);
3673
3756
  return value;
3674
3757
  }
3675
- var CREDENTIAL_RULES = VALUE_RULES.flatMap(([classification, pattern]) => classification === "secret" || classification === "credential" ? [[classification, new RegExp(pattern.source, `${pattern.flags}g`)]] : []);
3676
- var RESPONSE_RULES = [
3677
- ...CREDENTIAL_RULES,
3678
- ["url", new RegExp(credentialUrl.source, "giu")]
3679
- ];
3758
+ var CREDENTIAL_RULES = VALUE_RULES.filter((rule) => rule.classification === "secret" || rule.classification === "credential");
3759
+ var RESPONSE_RULES = [...CREDENTIAL_RULES, credentialUrlRule];
3680
3760
  function redactResponseSurface(value) {
3681
3761
  return redactResponseValue(value, undefined, 0);
3682
3762
  }
@@ -3684,14 +3764,14 @@ function redactResponseValue(value, key, depth) {
3684
3764
  if (depth > MAX_DEPTH)
3685
3765
  return "[REDACTED:unknown]";
3686
3766
  const byKey = key === undefined ? undefined : KEY_CLASSIFICATION[normalizeKey(key)];
3687
- if ((byKey === "secret" || byKey === "credential") && value !== null && value !== undefined)
3767
+ if ((byKey === "secret" || byKey === "credential") && value !== null && value !== undefined && !holdsNoSecret(byKey, value))
3688
3768
  return isString(value) && REDACTED_PATTERN.test(value.trim()) ? value : `[REDACTED:${byKey}]`;
3689
3769
  if (Array.isArray(value))
3690
3770
  return value.map((item) => redactResponseValue(item, undefined, depth + 1));
3691
3771
  if (isPlainObject(value))
3692
3772
  return Object.fromEntries(Object.entries(value).flatMap(([childKey, child]) => child === undefined ? [] : [[childKey, redactResponseValue(child, childKey, depth + 1)]]));
3693
3773
  if (isString(value))
3694
- return runnerSecretReference.test(value) ? value : RESPONSE_RULES.reduce((text, [classification, pattern]) => text.replace(pattern, `[REDACTED:${classification}]`), value);
3774
+ return runnerSecretReference.test(value) ? value : RESPONSE_RULES.reduce(redactedBy, value);
3695
3775
  if (value === undefined || isNumber(value) && !Number.isFinite(value))
3696
3776
  return null;
3697
3777
  if (value === null || isNumber(value) || isBoolean(value))
@@ -3699,7 +3779,7 @@ function redactResponseValue(value, key, depth) {
3699
3779
  return "[REDACTED:unknown]";
3700
3780
  }
3701
3781
  function redactCredentials(output) {
3702
- return CREDENTIAL_RULES.reduce((text, [classification, pattern]) => text.replace(pattern, `[REDACTED:${classification}]`), output);
3782
+ return CREDENTIAL_RULES.reduce(redactedBy, output);
3703
3783
  }
3704
3784
  function redactedOutputTail(output, maxChars = 4000) {
3705
3785
  const redacted = redactCredentials(output);
@@ -6125,15 +6205,6 @@ var StepAttemptSessionUpdateList = Struct({
6125
6205
  items: ArraySchema(StepAttemptSessionUpdate),
6126
6206
  next: optionalKey(String4)
6127
6207
  });
6128
- var StepOutputSubmissionResult = Union([
6129
- Struct({ status: Literal("accepted") }),
6130
- Struct({
6131
- status: Literal("rejected"),
6132
- message: String4,
6133
- submissionsLeft: Int.check(isGreaterThanOrEqualTo(0))
6134
- }),
6135
- Struct({ status: Literal("failed"), message: String4 })
6136
- ]);
6137
6208
  var HarnessHoldReasons = ["out_of_quota", "rate_limited", "login_refused", "failed_to_start"];
6138
6209
  var SkippedChoiceReasons = ["not_on_runner", ...HarnessHoldReasons];
6139
6210
  var SkippedChoice = Struct({
@@ -6174,9 +6245,9 @@ var StepAttempt = Struct({
6174
6245
  });
6175
6246
  var StepAttemptList = Struct({ items: ArraySchema(StepAttempt) });
6176
6247
  var QuestionResponderPolicy = Struct({
6177
- eligibleMemberIds: ArraySchema(Id).check(isMinLength(1), isMaxLength(100), isUnique()),
6248
+ eligibleMemberIds: ArraySchema(Id).check(isMaxLength(100), isUnique()),
6178
6249
  allowWorkspaceAdmins: Boolean2
6179
- });
6250
+ }).check(makeFilter((policy) => policy.eligibleMemberIds.length > 0 || policy.allowWorkspaceAdmins || "someone who may answer"));
6180
6251
  var QuestionAnswer = Struct({
6181
6252
  value: LoopSafeText,
6182
6253
  answeredByUserId: optionalKey(Id),
@@ -6210,6 +6281,16 @@ var Question = Struct({
6210
6281
  updatedAt: Timestamp,
6211
6282
  resolvedAt: optionalKey(Timestamp)
6212
6283
  });
6284
+ var StepOutputSubmissionResult = Union([
6285
+ Struct({ status: Literal("accepted") }),
6286
+ Struct({
6287
+ status: Literal("rejected"),
6288
+ message: String4,
6289
+ submissionsLeft: Int.check(isGreaterThanOrEqualTo(0))
6290
+ }),
6291
+ Struct({ status: Literal("failed"), message: String4 }),
6292
+ Struct({ status: Literal("parked"), message: String4, question: Question })
6293
+ ]);
6213
6294
  var QuestionAnswerCreate = Struct({
6214
6295
  value: LoopSafeText,
6215
6296
  idempotencyKey: String4.check(isMinLength(1), isMaxLength(240))
@@ -9601,14 +9682,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
9601
9682
  return self;
9602
9683
  }
9603
9684
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
9604
- var make5 = (method) => (url, options) => modify(empty6, {
9685
+ var make4 = (method) => (url, options) => modify(empty6, {
9605
9686
  method,
9606
9687
  url,
9607
9688
  ...options ?? undefined
9608
9689
  });
9609
- var get = /* @__PURE__ */ make5("GET");
9610
- var post = /* @__PURE__ */ make5("POST");
9611
- var put = /* @__PURE__ */ make5("PUT");
9690
+ var get = /* @__PURE__ */ make4("GET");
9691
+ var post = /* @__PURE__ */ make4("POST");
9692
+ var put = /* @__PURE__ */ make4("PUT");
9612
9693
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
9613
9694
  let result = self;
9614
9695
  if (options.method) {
@@ -9909,7 +9990,7 @@ var Proto7 = {
9909
9990
  };
9910
9991
  },
9911
9992
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
9912
- return this.execute(make5(fullMethod)(url, options));
9993
+ return this.execute(make4(fullMethod)(url, options));
9913
9994
  }]))
9914
9995
  };
9915
9996
  var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
@@ -13516,7 +13597,7 @@ var makeProto = (options) => {
13516
13597
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
13517
13598
  return Rpc;
13518
13599
  };
13519
- var make6 = (tag, options) => {
13600
+ var make5 = (tag, options) => {
13520
13601
  const successSchema = options?.success ?? Void;
13521
13602
  const errorSchema = options?.error ?? Never;
13522
13603
  const defectSchema = options?.defect ?? Defect();
@@ -13727,7 +13808,7 @@ var RpcGroupProto = {
13727
13808
  });
13728
13809
  },
13729
13810
  annotateRpcs(service, value) {
13730
- return this.annotateRpcsMerge(make15(service, value));
13811
+ return this.annotateRpcsMerge(make14(service, value));
13731
13812
  },
13732
13813
  annotateMerge(context) {
13733
13814
  return makeProto2({
@@ -13750,7 +13831,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
13750
13831
  requests: options.requests,
13751
13832
  annotations: options.annotations
13752
13833
  });
13753
- var make7 = (...rpcs) => makeProto2({
13834
+ var make6 = (...rpcs) => makeProto2({
13754
13835
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
13755
13836
  annotations: empty3()
13756
13837
  });
@@ -13857,96 +13938,96 @@ var ProgramOutcome = Union([
13857
13938
  Struct({ status: Literal("failed"), failureSummary: String4 })
13858
13939
  ]);
13859
13940
 
13860
- class RunnerReplicaRpcs extends make7(make6("Claim", {
13941
+ class RunnerReplicaRpcs extends make6(make5("Claim", {
13861
13942
  payload: WorkUnitClaimInput,
13862
13943
  success: WorkUnitClaimResult,
13863
13944
  error: RunnerRpcError
13864
- }), make6("Heartbeat", {
13945
+ }), make5("Heartbeat", {
13865
13946
  payload: WorkUnitHeartbeatInput,
13866
13947
  success: WorkUnitHeartbeatResult,
13867
13948
  error: RunnerRpcError
13868
- }), make6("Complete", {
13949
+ }), make5("Complete", {
13869
13950
  payload: WorkUnitCompletion,
13870
13951
  error: RunnerRpcError
13871
- }), make6("Release", {
13952
+ }), make5("Release", {
13872
13953
  payload: WorkUnitReleaseInput,
13873
13954
  error: RunnerRpcError
13874
- }), make6("Signals", {
13955
+ }), make5("Signals", {
13875
13956
  payload: { runnerReplicaId: String4 },
13876
13957
  success: RunnerSignal,
13877
13958
  error: RunnerRpcError,
13878
13959
  stream: true
13879
- }), make6("ReportSteer", {
13960
+ }), make5("ReportSteer", {
13880
13961
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
13881
13962
  success: Void,
13882
13963
  error: RunnerRpcError
13883
- }), make6("AppendTranscript", {
13964
+ }), make5("AppendTranscript", {
13884
13965
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
13885
13966
  success: Void,
13886
13967
  error: RunnerRpcError
13887
- }), make6("CreateCheckpointFile", {
13968
+ }), make5("CreateCheckpointFile", {
13888
13969
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
13889
13970
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
13890
13971
  error: Union([RunnerRpcError, RunFileRefused])
13891
- }), make6("CheckpointFileParts", {
13972
+ }), make5("CheckpointFileParts", {
13892
13973
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
13893
13974
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
13894
13975
  error: RunnerRpcError
13895
- }), make6("CompleteCheckpointFile", {
13976
+ }), make5("CompleteCheckpointFile", {
13896
13977
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
13897
13978
  success: RunFileRecord,
13898
13979
  error: RunnerRpcError
13899
- }), make6("SaveCheckpoint", {
13980
+ }), make5("SaveCheckpoint", {
13900
13981
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
13901
13982
  success: Void,
13902
13983
  error: RunnerRpcError
13903
- }), make6("ResumeCheckpoint", {
13984
+ }), make5("ResumeCheckpoint", {
13904
13985
  payload: { lease: ProgramLease },
13905
13986
  success: UndefinedOr(ResumedCheckpoint),
13906
13987
  error: RunnerRpcError
13907
- }), make6("SettledCheckpoints", {
13988
+ }), make5("SettledCheckpoints", {
13908
13989
  success: ArraySchema(Struct({
13909
13990
  stepAttemptId: String4,
13910
13991
  ref: optionalKey(String4),
13911
13992
  repoBinding: optionalKey(WorkUnitRepoBinding)
13912
13993
  })),
13913
13994
  error: RunnerRpcError
13914
- }), make6("ForgetCheckpoints", {
13995
+ }), make5("ForgetCheckpoints", {
13915
13996
  payload: { stepAttemptIds: ArraySchema(String4) },
13916
13997
  success: Void,
13917
13998
  error: RunnerRpcError
13918
- }), make6("GitCredential", {
13999
+ }), make5("GitCredential", {
13919
14000
  payload: { repoBindingId: String4 },
13920
14001
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
13921
14002
  error: RunnerRpcError
13922
- }), make6("Bundle", {
14003
+ }), make5("Bundle", {
13923
14004
  payload: { digest: String4 },
13924
14005
  success: Struct({ bundle: String4 }),
13925
14006
  error: RunnerRpcError
13926
- }), make6("SettledRuns", {
14007
+ }), make5("SettledRuns", {
13927
14008
  payload: { runIds: ArraySchema(String4) },
13928
14009
  success: ArraySchema(String4),
13929
14010
  error: RunnerRpcError
13930
- }), make6("KnownEvidence", {
14011
+ }), make5("KnownEvidence", {
13931
14012
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
13932
14013
  success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
13933
14014
  error: RunnerRpcError
13934
14015
  })).middleware(RunnerAuthentication) {
13935
14016
  }
13936
14017
 
13937
- class RunnerJournalRpcs extends make7(make6("RecordActivity", {
14018
+ class RunnerJournalRpcs extends make6(make5("RecordActivity", {
13938
14019
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
13939
14020
  error: RunnerRpcError
13940
- }), make6("DeferredDone", {
14021
+ }), make5("DeferredDone", {
13941
14022
  payload: { lease: ProgramLease, name: String4, exit: Json },
13942
14023
  error: RunnerRpcError
13943
- }), make6("ScheduleClock", {
14024
+ }), make5("ScheduleClock", {
13944
14025
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
13945
14026
  error: RunnerRpcError
13946
- }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
14027
+ }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
13947
14028
  }
13948
14029
 
13949
- class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14030
+ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13950
14031
  payload: {
13951
14032
  lease: ProgramLease,
13952
14033
  step: String4,
@@ -13965,7 +14046,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13965
14046
  },
13966
14047
  success: Struct({ questionId: String4 }),
13967
14048
  error: RunnerRpcError
13968
- }), make6("StartAgentStep", {
14049
+ }), make5("StartAgentStep", {
13969
14050
  payload: {
13970
14051
  lease: ProgramLease,
13971
14052
  step: String4,
@@ -13981,7 +14062,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13981
14062
  },
13982
14063
  success: Struct({ stepAttemptId: String4 }),
13983
14064
  error: RunnerRpcError
13984
- }), make6("StartVerification", {
14065
+ }), make5("StartVerification", {
13985
14066
  payload: {
13986
14067
  lease: ProgramLease,
13987
14068
  step: String4,
@@ -13999,7 +14080,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13999
14080
  },
14000
14081
  success: Struct({ verificationId: String4 }),
14001
14082
  error: RunnerRpcError
14002
- }), make6("AwaitEvent", {
14083
+ }), make5("AwaitEvent", {
14003
14084
  payload: {
14004
14085
  lease: ProgramLease,
14005
14086
  step: String4,
@@ -14015,7 +14096,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14015
14096
  })))
14016
14097
  },
14017
14098
  error: RunnerRpcError
14018
- }), make6("ClaimResource", {
14099
+ }), make5("ClaimResource", {
14019
14100
  payload: {
14020
14101
  lease: ProgramLease,
14021
14102
  step: String4,
@@ -14024,7 +14105,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14024
14105
  action: Literals(["claim", "take_over", "let_go"])
14025
14106
  },
14026
14107
  error: RunnerRpcError
14027
- }), make6("AdmitChild", {
14108
+ }), make5("AdmitChild", {
14028
14109
  payload: {
14029
14110
  lease: ProgramLease,
14030
14111
  step: String4,
@@ -14035,7 +14116,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14035
14116
  },
14036
14117
  success: Struct({ runId: String4 }),
14037
14118
  error: RunnerRpcError
14038
- }), make6("StoreArtifact", {
14119
+ }), make5("StoreArtifact", {
14039
14120
  payload: {
14040
14121
  lease: ProgramLease,
14041
14122
  step: String4,
@@ -14047,7 +14128,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14047
14128
  },
14048
14129
  success: Struct({ artifactId: String4 }),
14049
14130
  error: RunnerRpcError
14050
- }), make6("RecordNote", {
14131
+ }), make5("RecordNote", {
14051
14132
  payload: {
14052
14133
  lease: ProgramLease,
14053
14134
  step: String4,
@@ -14056,7 +14137,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14056
14137
  kind: optional(Literals(["note", "blocker"]))
14057
14138
  },
14058
14139
  error: RunnerRpcError
14059
- }), make6("PerformHostEffect", {
14140
+ }), make5("PerformHostEffect", {
14060
14141
  payload: {
14061
14142
  lease: ProgramLease,
14062
14143
  step: String4,
@@ -14084,7 +14165,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14084
14165
  },
14085
14166
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
14086
14167
  error: RunnerRpcError
14087
- }), make6("AlertTask", {
14168
+ }), make5("AlertTask", {
14088
14169
  payload: {
14089
14170
  lease: ProgramLease,
14090
14171
  step: String4,
@@ -14101,7 +14182,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14101
14182
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
14102
14183
  }),
14103
14184
  error: RunnerRpcError
14104
- }), make6("ReadTranscripts", {
14185
+ }), make5("ReadTranscripts", {
14105
14186
  payload: { lease: ProgramLease, step: String4, days: Int },
14106
14187
  success: Struct({
14107
14188
  runs: ArraySchema(Struct({
@@ -14120,7 +14201,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14120
14201
  }))
14121
14202
  }),
14122
14203
  error: RunnerRpcError
14123
- }), make6("PipelineStatus", {
14204
+ }), make5("PipelineStatus", {
14124
14205
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14125
14206
  success: Struct({
14126
14207
  head: String4,
@@ -14150,11 +14231,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14150
14231
  }))
14151
14232
  }),
14152
14233
  error: RunnerRpcError
14153
- }), make6("ReportPipeline", {
14234
+ }), make5("ReportPipeline", {
14154
14235
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
14155
14236
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
14156
14237
  error: RunnerRpcError
14157
- }), make6("ReviewThreads", {
14238
+ }), make5("ReviewThreads", {
14158
14239
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14159
14240
  success: Struct({
14160
14241
  threads: ArraySchema(Struct({
@@ -14166,7 +14247,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14166
14247
  }))
14167
14248
  }),
14168
14249
  error: RunnerRpcError
14169
- }), make6("OpenChangeRequests", {
14250
+ }), make5("OpenChangeRequests", {
14170
14251
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
14171
14252
  success: Struct({
14172
14253
  changeRequests: ArraySchema(Struct({
@@ -14180,7 +14261,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14180
14261
  }))
14181
14262
  }),
14182
14263
  error: RunnerRpcError
14183
- }), make6("OwnChangeRequests", {
14264
+ }), make5("OwnChangeRequests", {
14184
14265
  payload: { lease: ProgramLease, step: String4 },
14185
14266
  success: Struct({
14186
14267
  changeRequests: ArraySchema(Struct({
@@ -14193,7 +14274,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14193
14274
  }))
14194
14275
  }),
14195
14276
  error: RunnerRpcError
14196
- }), make6("Propose", {
14277
+ }), make5("Propose", {
14197
14278
  payload: {
14198
14279
  lease: ProgramLease,
14199
14280
  step: String4,
@@ -14220,7 +14301,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14220
14301
  matched: optionalKey(Boolean2)
14221
14302
  }),
14222
14303
  error: RunnerRpcError
14223
- }), make6("ReadProject", {
14304
+ }), make5("ReadProject", {
14224
14305
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
14225
14306
  success: Struct({
14226
14307
  project: Struct({ id: String4, name: String4 }),
@@ -14243,7 +14324,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14243
14324
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
14244
14325
  }),
14245
14326
  error: RunnerRpcError
14246
- }), make6("DraftUpdate", {
14327
+ }), make5("DraftUpdate", {
14247
14328
  payload: {
14248
14329
  lease: ProgramLease,
14249
14330
  step: String4,
@@ -14258,7 +14339,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14258
14339
  },
14259
14340
  success: Struct({ id: String4 }),
14260
14341
  error: RunnerRpcError
14261
- }), make6("CreatePlanTasks", {
14342
+ }), make5("CreatePlanTasks", {
14262
14343
  payload: {
14263
14344
  lease: ProgramLease,
14264
14345
  projectId: optionalKey(String4),
@@ -14273,11 +14354,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14273
14354
  },
14274
14355
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
14275
14356
  error: RunnerRpcError
14276
- }), make6("IntegrationBranch", {
14357
+ }), make5("IntegrationBranch", {
14277
14358
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
14278
14359
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14279
14360
  error: RunnerRpcError
14280
- }), make6("MergeChangeRequest", {
14361
+ }), make5("MergeChangeRequest", {
14281
14362
  payload: {
14282
14363
  lease: ProgramLease,
14283
14364
  step: String4,
@@ -14290,7 +14371,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14290
14371
  Struct({ status: Literal("moved"), head: String4 })
14291
14372
  ]),
14292
14373
  error: RunnerRpcError
14293
- }), make6("ApproveChangeRequest", {
14374
+ }), make5("ApproveChangeRequest", {
14294
14375
  payload: {
14295
14376
  lease: ProgramLease,
14296
14377
  step: String4,
@@ -14305,7 +14386,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14305
14386
  Struct({ approved: Literal(false), reason: String4 })
14306
14387
  ]),
14307
14388
  error: RunnerRpcError
14308
- }), make6("CloseChangeRequest", {
14389
+ }), make5("CloseChangeRequest", {
14309
14390
  payload: {
14310
14391
  lease: ProgramLease,
14311
14392
  step: String4,
@@ -14315,7 +14396,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14315
14396
  },
14316
14397
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
14317
14398
  error: RunnerRpcError
14318
- }), make6("RerunPipeline", {
14399
+ }), make5("RerunPipeline", {
14319
14400
  payload: {
14320
14401
  lease: ProgramLease,
14321
14402
  step: String4,
@@ -14325,7 +14406,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14325
14406
  },
14326
14407
  success: Struct({ head: String4, pipelines: Int }),
14327
14408
  error: RunnerRpcError
14328
- }), make6("PublishRelease", {
14409
+ }), make5("PublishRelease", {
14329
14410
  payload: {
14330
14411
  lease: ProgramLease,
14331
14412
  step: String4,
@@ -14336,14 +14417,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14336
14417
  },
14337
14418
  success: Struct({ tag: String4, revision: String4, url: String4 }),
14338
14419
  error: RunnerRpcError
14339
- }), make6("ProgramSecrets", {
14420
+ }), make5("ProgramSecrets", {
14340
14421
  payload: { lease: ProgramLease },
14341
14422
  success: Record(String4, String4),
14342
14423
  error: RunnerRpcError
14343
14424
  })).middleware(RunnerAuthentication) {
14344
14425
  }
14345
14426
 
14346
- class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14427
+ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14347
14428
  payload: {
14348
14429
  lease: ProgramLease,
14349
14430
  step: String4,
@@ -14355,11 +14436,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14355
14436
  },
14356
14437
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14357
14438
  error: Union([RunnerRpcError, RunFileRefused])
14358
- }), make6("RunFileParts", {
14439
+ }), make5("RunFileParts", {
14359
14440
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14360
14441
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14361
14442
  error: RunnerRpcError
14362
- }), make6("CompleteRunFile", {
14443
+ }), make5("CompleteRunFile", {
14363
14444
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14364
14445
  success: RunFileRecord,
14365
14446
  error: RunnerRpcError
@@ -14448,7 +14529,7 @@ function toStoredSession(token, existingRefreshToken) {
14448
14529
  }
14449
14530
  function startLoopbackServer(input) {
14450
14531
  return gen(function* () {
14451
- const code = yield* make16();
14532
+ const code = yield* make15();
14452
14533
  const context2 = yield* context();
14453
14534
  const runSyncExit = runSyncExitWith(context2);
14454
14535
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -14988,7 +15069,7 @@ var openConnection = (transport) => gen(function* () {
14988
15069
  let lastId = 0;
14989
15070
  let lost = false;
14990
15071
  const notifications = yield* unbounded2();
14991
- const ended = yield* make16();
15072
+ const ended = yield* make15();
14992
15073
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
14993
15074
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
14994
15075
  onNone: () => void_3,
@@ -15015,7 +15096,7 @@ var openConnection = (transport) => gen(function* () {
15015
15096
  if (lost)
15016
15097
  return yield* new HerdrCoreConnectionLost2({ method });
15017
15098
  const id = ++lastId;
15018
- const deferred = yield* make16();
15099
+ const deferred = yield* make15();
15019
15100
  pending.set(id, { method, deferred });
15020
15101
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15021
15102
  return yield* _await(deferred);
@@ -15089,14 +15170,14 @@ var herdrCoreOver = (transport) => ({
15089
15170
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15090
15171
  };
15091
15172
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15092
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15173
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15093
15174
  }))
15094
15175
  });
15095
15176
  var spawnedTransport = (env) => gen(function* () {
15096
15177
  const spawner = yield* ChildProcessSpawner;
15097
15178
  const input = yield* unbounded2();
15098
15179
  const encoder = new TextEncoder;
15099
- const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
15180
+ const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
15100
15181
  extendEnv: false,
15101
15182
  env,
15102
15183
  stdin: fromQueue(input),
@@ -15127,7 +15208,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
15127
15208
  const spawner = yield* ChildProcessSpawner;
15128
15209
  const env = coreEnv(options);
15129
15210
  const run = (args) => gen(function* () {
15130
- const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15211
+ const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15131
15212
  const [stdout, stderr, exitCode] = yield* all3([
15132
15213
  mkString(decodeText(handle.stdout)),
15133
15214
  mkString(decodeText(handle.stderr)),
@@ -15153,7 +15234,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
15153
15234
  }
15154
15235
  var runCommand2 = (command, args, options = {}) => gen(function* () {
15155
15236
  const spawner = yield* ChildProcessSpawner;
15156
- const handle = yield* spawner.spawn(make3(command, args, {
15237
+ const handle = yield* spawner.spawn(make2(command, args, {
15157
15238
  stdin: "ignore",
15158
15239
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15159
15240
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -15179,8 +15260,8 @@ var shellOutputTailChars2 = 64 * 1024;
15179
15260
  var runProcess2 = (argv, options) => gen(function* () {
15180
15261
  const spawner = yield* ChildProcessSpawner;
15181
15262
  const [command, ...args] = argv;
15182
- const handle = yield* spawner.spawn(make3(command, args, {
15183
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15263
+ const handle = yield* spawner.spawn(make2(command, args, {
15264
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15184
15265
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15185
15266
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15186
15267
  }));
@@ -15602,4 +15683,4 @@ function checkServices(declaration) {
15602
15683
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15603
15684
  }
15604
15685
 
15605
- 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, RunWaitUntils, 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, 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 };
15686
+ 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, RunWaitUntils, 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, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, 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 };