@kitman-sh/cli 0.10.78 → 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-bqpj1be3.js → chunk-0dwnwx45.js} +6 -132
  2. package/dist/{chunk-k0bjhj9m.js → chunk-0wy2gwj2.js} +8 -8
  3. package/dist/{chunk-cn6h21ar.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-apjzbve5.js → chunk-5v9pywm3.js} +151 -53
  7. package/dist/{chunk-g4j97dv5.js → chunk-61jk9k82.js} +269 -187
  8. package/dist/{chunk-5aebee0q.js → chunk-7b6qsc4y.js} +23 -23
  9. package/dist/{chunk-tzz4fv17.js → chunk-80z95x19.js} +1 -1
  10. package/dist/{chunk-whyjvrf2.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-nnq8d7k0.js → chunk-czxcs1ce.js} +7 -7
  14. package/dist/{chunk-bj8jqwk3.js → chunk-f3k1vjtf.js} +21 -21
  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-5sdw5ws3.js → chunk-twms8y72.js} +4 -4
  19. package/dist/{chunk-jbwk6k6m.js → chunk-v9nqb2tp.js} +226 -40
  20. package/dist/{chunk-6h16wtxk.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-697qeg1j.js → chunk-yp10rhmv.js} +7 -7
  24. package/dist/{chunk-qbsqc416.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))
@@ -6456,6 +6537,7 @@ var RunList = Struct({
6456
6537
  items: ArraySchema(RunListItem),
6457
6538
  next: optionalKey(String4)
6458
6539
  });
6540
+ var RunWaitUntils = ["attention", "finished"];
6459
6541
  var RunWaitReasons = ["question", "completed", "failed", "stopped", "timeout"];
6460
6542
  var RunWaitResult = Struct({
6461
6543
  reason: Literals(RunWaitReasons),
@@ -9600,14 +9682,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
9600
9682
  return self;
9601
9683
  }
9602
9684
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
9603
- var make5 = (method) => (url, options) => modify(empty6, {
9685
+ var make4 = (method) => (url, options) => modify(empty6, {
9604
9686
  method,
9605
9687
  url,
9606
9688
  ...options ?? undefined
9607
9689
  });
9608
- var get = /* @__PURE__ */ make5("GET");
9609
- var post = /* @__PURE__ */ make5("POST");
9610
- var put = /* @__PURE__ */ make5("PUT");
9690
+ var get = /* @__PURE__ */ make4("GET");
9691
+ var post = /* @__PURE__ */ make4("POST");
9692
+ var put = /* @__PURE__ */ make4("PUT");
9611
9693
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
9612
9694
  let result = self;
9613
9695
  if (options.method) {
@@ -9908,7 +9990,7 @@ var Proto7 = {
9908
9990
  };
9909
9991
  },
9910
9992
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
9911
- return this.execute(make5(fullMethod)(url, options));
9993
+ return this.execute(make4(fullMethod)(url, options));
9912
9994
  }]))
9913
9995
  };
9914
9996
  var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
@@ -13515,7 +13597,7 @@ var makeProto = (options) => {
13515
13597
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
13516
13598
  return Rpc;
13517
13599
  };
13518
- var make6 = (tag, options) => {
13600
+ var make5 = (tag, options) => {
13519
13601
  const successSchema = options?.success ?? Void;
13520
13602
  const errorSchema = options?.error ?? Never;
13521
13603
  const defectSchema = options?.defect ?? Defect();
@@ -13726,7 +13808,7 @@ var RpcGroupProto = {
13726
13808
  });
13727
13809
  },
13728
13810
  annotateRpcs(service, value) {
13729
- return this.annotateRpcsMerge(make15(service, value));
13811
+ return this.annotateRpcsMerge(make14(service, value));
13730
13812
  },
13731
13813
  annotateMerge(context) {
13732
13814
  return makeProto2({
@@ -13749,7 +13831,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
13749
13831
  requests: options.requests,
13750
13832
  annotations: options.annotations
13751
13833
  });
13752
- var make7 = (...rpcs) => makeProto2({
13834
+ var make6 = (...rpcs) => makeProto2({
13753
13835
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
13754
13836
  annotations: empty3()
13755
13837
  });
@@ -13856,96 +13938,96 @@ var ProgramOutcome = Union([
13856
13938
  Struct({ status: Literal("failed"), failureSummary: String4 })
13857
13939
  ]);
13858
13940
 
13859
- class RunnerReplicaRpcs extends make7(make6("Claim", {
13941
+ class RunnerReplicaRpcs extends make6(make5("Claim", {
13860
13942
  payload: WorkUnitClaimInput,
13861
13943
  success: WorkUnitClaimResult,
13862
13944
  error: RunnerRpcError
13863
- }), make6("Heartbeat", {
13945
+ }), make5("Heartbeat", {
13864
13946
  payload: WorkUnitHeartbeatInput,
13865
13947
  success: WorkUnitHeartbeatResult,
13866
13948
  error: RunnerRpcError
13867
- }), make6("Complete", {
13949
+ }), make5("Complete", {
13868
13950
  payload: WorkUnitCompletion,
13869
13951
  error: RunnerRpcError
13870
- }), make6("Release", {
13952
+ }), make5("Release", {
13871
13953
  payload: WorkUnitReleaseInput,
13872
13954
  error: RunnerRpcError
13873
- }), make6("Signals", {
13955
+ }), make5("Signals", {
13874
13956
  payload: { runnerReplicaId: String4 },
13875
13957
  success: RunnerSignal,
13876
13958
  error: RunnerRpcError,
13877
13959
  stream: true
13878
- }), make6("ReportSteer", {
13960
+ }), make5("ReportSteer", {
13879
13961
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
13880
13962
  success: Void,
13881
13963
  error: RunnerRpcError
13882
- }), make6("AppendTranscript", {
13964
+ }), make5("AppendTranscript", {
13883
13965
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
13884
13966
  success: Void,
13885
13967
  error: RunnerRpcError
13886
- }), make6("CreateCheckpointFile", {
13968
+ }), make5("CreateCheckpointFile", {
13887
13969
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
13888
13970
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
13889
13971
  error: Union([RunnerRpcError, RunFileRefused])
13890
- }), make6("CheckpointFileParts", {
13972
+ }), make5("CheckpointFileParts", {
13891
13973
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
13892
13974
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
13893
13975
  error: RunnerRpcError
13894
- }), make6("CompleteCheckpointFile", {
13976
+ }), make5("CompleteCheckpointFile", {
13895
13977
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
13896
13978
  success: RunFileRecord,
13897
13979
  error: RunnerRpcError
13898
- }), make6("SaveCheckpoint", {
13980
+ }), make5("SaveCheckpoint", {
13899
13981
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
13900
13982
  success: Void,
13901
13983
  error: RunnerRpcError
13902
- }), make6("ResumeCheckpoint", {
13984
+ }), make5("ResumeCheckpoint", {
13903
13985
  payload: { lease: ProgramLease },
13904
13986
  success: UndefinedOr(ResumedCheckpoint),
13905
13987
  error: RunnerRpcError
13906
- }), make6("SettledCheckpoints", {
13988
+ }), make5("SettledCheckpoints", {
13907
13989
  success: ArraySchema(Struct({
13908
13990
  stepAttemptId: String4,
13909
13991
  ref: optionalKey(String4),
13910
13992
  repoBinding: optionalKey(WorkUnitRepoBinding)
13911
13993
  })),
13912
13994
  error: RunnerRpcError
13913
- }), make6("ForgetCheckpoints", {
13995
+ }), make5("ForgetCheckpoints", {
13914
13996
  payload: { stepAttemptIds: ArraySchema(String4) },
13915
13997
  success: Void,
13916
13998
  error: RunnerRpcError
13917
- }), make6("GitCredential", {
13999
+ }), make5("GitCredential", {
13918
14000
  payload: { repoBindingId: String4 },
13919
14001
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
13920
14002
  error: RunnerRpcError
13921
- }), make6("Bundle", {
14003
+ }), make5("Bundle", {
13922
14004
  payload: { digest: String4 },
13923
14005
  success: Struct({ bundle: String4 }),
13924
14006
  error: RunnerRpcError
13925
- }), make6("SettledRuns", {
14007
+ }), make5("SettledRuns", {
13926
14008
  payload: { runIds: ArraySchema(String4) },
13927
14009
  success: ArraySchema(String4),
13928
14010
  error: RunnerRpcError
13929
- }), make6("KnownEvidence", {
14011
+ }), make5("KnownEvidence", {
13930
14012
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
13931
14013
  success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
13932
14014
  error: RunnerRpcError
13933
14015
  })).middleware(RunnerAuthentication) {
13934
14016
  }
13935
14017
 
13936
- class RunnerJournalRpcs extends make7(make6("RecordActivity", {
14018
+ class RunnerJournalRpcs extends make6(make5("RecordActivity", {
13937
14019
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
13938
14020
  error: RunnerRpcError
13939
- }), make6("DeferredDone", {
14021
+ }), make5("DeferredDone", {
13940
14022
  payload: { lease: ProgramLease, name: String4, exit: Json },
13941
14023
  error: RunnerRpcError
13942
- }), make6("ScheduleClock", {
14024
+ }), make5("ScheduleClock", {
13943
14025
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
13944
14026
  error: RunnerRpcError
13945
- }), 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) {
13946
14028
  }
13947
14029
 
13948
- class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14030
+ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13949
14031
  payload: {
13950
14032
  lease: ProgramLease,
13951
14033
  step: String4,
@@ -13964,7 +14046,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13964
14046
  },
13965
14047
  success: Struct({ questionId: String4 }),
13966
14048
  error: RunnerRpcError
13967
- }), make6("StartAgentStep", {
14049
+ }), make5("StartAgentStep", {
13968
14050
  payload: {
13969
14051
  lease: ProgramLease,
13970
14052
  step: String4,
@@ -13980,7 +14062,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13980
14062
  },
13981
14063
  success: Struct({ stepAttemptId: String4 }),
13982
14064
  error: RunnerRpcError
13983
- }), make6("StartVerification", {
14065
+ }), make5("StartVerification", {
13984
14066
  payload: {
13985
14067
  lease: ProgramLease,
13986
14068
  step: String4,
@@ -13998,7 +14080,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13998
14080
  },
13999
14081
  success: Struct({ verificationId: String4 }),
14000
14082
  error: RunnerRpcError
14001
- }), make6("AwaitEvent", {
14083
+ }), make5("AwaitEvent", {
14002
14084
  payload: {
14003
14085
  lease: ProgramLease,
14004
14086
  step: String4,
@@ -14014,7 +14096,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14014
14096
  })))
14015
14097
  },
14016
14098
  error: RunnerRpcError
14017
- }), make6("ClaimResource", {
14099
+ }), make5("ClaimResource", {
14018
14100
  payload: {
14019
14101
  lease: ProgramLease,
14020
14102
  step: String4,
@@ -14023,7 +14105,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14023
14105
  action: Literals(["claim", "take_over", "let_go"])
14024
14106
  },
14025
14107
  error: RunnerRpcError
14026
- }), make6("AdmitChild", {
14108
+ }), make5("AdmitChild", {
14027
14109
  payload: {
14028
14110
  lease: ProgramLease,
14029
14111
  step: String4,
@@ -14034,7 +14116,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14034
14116
  },
14035
14117
  success: Struct({ runId: String4 }),
14036
14118
  error: RunnerRpcError
14037
- }), make6("StoreArtifact", {
14119
+ }), make5("StoreArtifact", {
14038
14120
  payload: {
14039
14121
  lease: ProgramLease,
14040
14122
  step: String4,
@@ -14046,7 +14128,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14046
14128
  },
14047
14129
  success: Struct({ artifactId: String4 }),
14048
14130
  error: RunnerRpcError
14049
- }), make6("RecordNote", {
14131
+ }), make5("RecordNote", {
14050
14132
  payload: {
14051
14133
  lease: ProgramLease,
14052
14134
  step: String4,
@@ -14055,7 +14137,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14055
14137
  kind: optional(Literals(["note", "blocker"]))
14056
14138
  },
14057
14139
  error: RunnerRpcError
14058
- }), make6("PerformHostEffect", {
14140
+ }), make5("PerformHostEffect", {
14059
14141
  payload: {
14060
14142
  lease: ProgramLease,
14061
14143
  step: String4,
@@ -14083,7 +14165,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14083
14165
  },
14084
14166
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
14085
14167
  error: RunnerRpcError
14086
- }), make6("AlertTask", {
14168
+ }), make5("AlertTask", {
14087
14169
  payload: {
14088
14170
  lease: ProgramLease,
14089
14171
  step: String4,
@@ -14100,7 +14182,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14100
14182
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
14101
14183
  }),
14102
14184
  error: RunnerRpcError
14103
- }), make6("ReadTranscripts", {
14185
+ }), make5("ReadTranscripts", {
14104
14186
  payload: { lease: ProgramLease, step: String4, days: Int },
14105
14187
  success: Struct({
14106
14188
  runs: ArraySchema(Struct({
@@ -14119,7 +14201,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14119
14201
  }))
14120
14202
  }),
14121
14203
  error: RunnerRpcError
14122
- }), make6("PipelineStatus", {
14204
+ }), make5("PipelineStatus", {
14123
14205
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14124
14206
  success: Struct({
14125
14207
  head: String4,
@@ -14149,11 +14231,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14149
14231
  }))
14150
14232
  }),
14151
14233
  error: RunnerRpcError
14152
- }), make6("ReportPipeline", {
14234
+ }), make5("ReportPipeline", {
14153
14235
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
14154
14236
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
14155
14237
  error: RunnerRpcError
14156
- }), make6("ReviewThreads", {
14238
+ }), make5("ReviewThreads", {
14157
14239
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14158
14240
  success: Struct({
14159
14241
  threads: ArraySchema(Struct({
@@ -14165,7 +14247,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14165
14247
  }))
14166
14248
  }),
14167
14249
  error: RunnerRpcError
14168
- }), make6("OpenChangeRequests", {
14250
+ }), make5("OpenChangeRequests", {
14169
14251
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
14170
14252
  success: Struct({
14171
14253
  changeRequests: ArraySchema(Struct({
@@ -14179,7 +14261,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14179
14261
  }))
14180
14262
  }),
14181
14263
  error: RunnerRpcError
14182
- }), make6("OwnChangeRequests", {
14264
+ }), make5("OwnChangeRequests", {
14183
14265
  payload: { lease: ProgramLease, step: String4 },
14184
14266
  success: Struct({
14185
14267
  changeRequests: ArraySchema(Struct({
@@ -14192,7 +14274,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14192
14274
  }))
14193
14275
  }),
14194
14276
  error: RunnerRpcError
14195
- }), make6("Propose", {
14277
+ }), make5("Propose", {
14196
14278
  payload: {
14197
14279
  lease: ProgramLease,
14198
14280
  step: String4,
@@ -14219,7 +14301,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14219
14301
  matched: optionalKey(Boolean2)
14220
14302
  }),
14221
14303
  error: RunnerRpcError
14222
- }), make6("ReadProject", {
14304
+ }), make5("ReadProject", {
14223
14305
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
14224
14306
  success: Struct({
14225
14307
  project: Struct({ id: String4, name: String4 }),
@@ -14242,7 +14324,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14242
14324
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
14243
14325
  }),
14244
14326
  error: RunnerRpcError
14245
- }), make6("DraftUpdate", {
14327
+ }), make5("DraftUpdate", {
14246
14328
  payload: {
14247
14329
  lease: ProgramLease,
14248
14330
  step: String4,
@@ -14257,7 +14339,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14257
14339
  },
14258
14340
  success: Struct({ id: String4 }),
14259
14341
  error: RunnerRpcError
14260
- }), make6("CreatePlanTasks", {
14342
+ }), make5("CreatePlanTasks", {
14261
14343
  payload: {
14262
14344
  lease: ProgramLease,
14263
14345
  projectId: optionalKey(String4),
@@ -14272,11 +14354,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14272
14354
  },
14273
14355
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
14274
14356
  error: RunnerRpcError
14275
- }), make6("IntegrationBranch", {
14357
+ }), make5("IntegrationBranch", {
14276
14358
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
14277
14359
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14278
14360
  error: RunnerRpcError
14279
- }), make6("MergeChangeRequest", {
14361
+ }), make5("MergeChangeRequest", {
14280
14362
  payload: {
14281
14363
  lease: ProgramLease,
14282
14364
  step: String4,
@@ -14289,7 +14371,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14289
14371
  Struct({ status: Literal("moved"), head: String4 })
14290
14372
  ]),
14291
14373
  error: RunnerRpcError
14292
- }), make6("ApproveChangeRequest", {
14374
+ }), make5("ApproveChangeRequest", {
14293
14375
  payload: {
14294
14376
  lease: ProgramLease,
14295
14377
  step: String4,
@@ -14304,7 +14386,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14304
14386
  Struct({ approved: Literal(false), reason: String4 })
14305
14387
  ]),
14306
14388
  error: RunnerRpcError
14307
- }), make6("CloseChangeRequest", {
14389
+ }), make5("CloseChangeRequest", {
14308
14390
  payload: {
14309
14391
  lease: ProgramLease,
14310
14392
  step: String4,
@@ -14314,7 +14396,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14314
14396
  },
14315
14397
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
14316
14398
  error: RunnerRpcError
14317
- }), make6("RerunPipeline", {
14399
+ }), make5("RerunPipeline", {
14318
14400
  payload: {
14319
14401
  lease: ProgramLease,
14320
14402
  step: String4,
@@ -14324,7 +14406,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14324
14406
  },
14325
14407
  success: Struct({ head: String4, pipelines: Int }),
14326
14408
  error: RunnerRpcError
14327
- }), make6("PublishRelease", {
14409
+ }), make5("PublishRelease", {
14328
14410
  payload: {
14329
14411
  lease: ProgramLease,
14330
14412
  step: String4,
@@ -14335,14 +14417,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14335
14417
  },
14336
14418
  success: Struct({ tag: String4, revision: String4, url: String4 }),
14337
14419
  error: RunnerRpcError
14338
- }), make6("ProgramSecrets", {
14420
+ }), make5("ProgramSecrets", {
14339
14421
  payload: { lease: ProgramLease },
14340
14422
  success: Record(String4, String4),
14341
14423
  error: RunnerRpcError
14342
14424
  })).middleware(RunnerAuthentication) {
14343
14425
  }
14344
14426
 
14345
- class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14427
+ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14346
14428
  payload: {
14347
14429
  lease: ProgramLease,
14348
14430
  step: String4,
@@ -14354,11 +14436,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14354
14436
  },
14355
14437
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14356
14438
  error: Union([RunnerRpcError, RunFileRefused])
14357
- }), make6("RunFileParts", {
14439
+ }), make5("RunFileParts", {
14358
14440
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14359
14441
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14360
14442
  error: RunnerRpcError
14361
- }), make6("CompleteRunFile", {
14443
+ }), make5("CompleteRunFile", {
14362
14444
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14363
14445
  success: RunFileRecord,
14364
14446
  error: RunnerRpcError
@@ -14447,7 +14529,7 @@ function toStoredSession(token, existingRefreshToken) {
14447
14529
  }
14448
14530
  function startLoopbackServer(input) {
14449
14531
  return gen(function* () {
14450
- const code = yield* make16();
14532
+ const code = yield* make15();
14451
14533
  const context2 = yield* context();
14452
14534
  const runSyncExit = runSyncExitWith(context2);
14453
14535
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -14987,7 +15069,7 @@ var openConnection = (transport) => gen(function* () {
14987
15069
  let lastId = 0;
14988
15070
  let lost = false;
14989
15071
  const notifications = yield* unbounded2();
14990
- const ended = yield* make16();
15072
+ const ended = yield* make15();
14991
15073
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
14992
15074
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
14993
15075
  onNone: () => void_3,
@@ -15014,7 +15096,7 @@ var openConnection = (transport) => gen(function* () {
15014
15096
  if (lost)
15015
15097
  return yield* new HerdrCoreConnectionLost2({ method });
15016
15098
  const id = ++lastId;
15017
- const deferred = yield* make16();
15099
+ const deferred = yield* make15();
15018
15100
  pending.set(id, { method, deferred });
15019
15101
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15020
15102
  return yield* _await(deferred);
@@ -15088,14 +15170,14 @@ var herdrCoreOver = (transport) => ({
15088
15170
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15089
15171
  };
15090
15172
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15091
- 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)));
15092
15174
  }))
15093
15175
  });
15094
15176
  var spawnedTransport = (env) => gen(function* () {
15095
15177
  const spawner = yield* ChildProcessSpawner;
15096
15178
  const input = yield* unbounded2();
15097
15179
  const encoder = new TextEncoder;
15098
- const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
15180
+ const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
15099
15181
  extendEnv: false,
15100
15182
  env,
15101
15183
  stdin: fromQueue(input),
@@ -15126,7 +15208,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
15126
15208
  const spawner = yield* ChildProcessSpawner;
15127
15209
  const env = coreEnv(options);
15128
15210
  const run = (args) => gen(function* () {
15129
- 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" }));
15130
15212
  const [stdout, stderr, exitCode] = yield* all3([
15131
15213
  mkString(decodeText(handle.stdout)),
15132
15214
  mkString(decodeText(handle.stderr)),
@@ -15152,7 +15234,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
15152
15234
  }
15153
15235
  var runCommand2 = (command, args, options = {}) => gen(function* () {
15154
15236
  const spawner = yield* ChildProcessSpawner;
15155
- const handle = yield* spawner.spawn(make3(command, args, {
15237
+ const handle = yield* spawner.spawn(make2(command, args, {
15156
15238
  stdin: "ignore",
15157
15239
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15158
15240
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -15178,8 +15260,8 @@ var shellOutputTailChars2 = 64 * 1024;
15178
15260
  var runProcess2 = (argv, options) => gen(function* () {
15179
15261
  const spawner = yield* ChildProcessSpawner;
15180
15262
  const [command, ...args] = argv;
15181
- const handle = yield* spawner.spawn(make3(command, args, {
15182
- 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)),
15183
15265
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15184
15266
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15185
15267
  }));
@@ -15601,4 +15683,4 @@ function checkServices(declaration) {
15601
15683
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15602
15684
  }
15603
15685
 
15604
- 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, 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 };