@kitman-sh/cli 0.12.0-rc.8 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{chunk-dh09wyed.js → chunk-0367j54r.js} +42 -42
  2. package/dist/{chunk-y7vjk8vv.js → chunk-0h49y8gf.js} +165 -31
  3. package/dist/{chunk-3kxwb7qn.js → chunk-13yrey2v.js} +7 -7
  4. package/dist/{chunk-7959aeck.js → chunk-1wbdexzg.js} +14 -6
  5. package/dist/{chunk-jg8n8z0z.js → chunk-4d4n8qjs.js} +4 -4
  6. package/dist/{chunk-8sz25ptv.js → chunk-5zhh41gb.js} +4 -4
  7. package/dist/{chunk-e711ebdj.js → chunk-5zth85pj.js} +2 -2
  8. package/dist/{chunk-6pqxsnk1.js → chunk-711r4pfw.js} +20 -20
  9. package/dist/{chunk-9q7qc1dg.js → chunk-adbzjs9g.js} +1 -1
  10. package/dist/{chunk-det0tmx7.js → chunk-beagq0pp.js} +27 -17
  11. package/dist/{chunk-9c9vrbh4.js → chunk-c7253rcg.js} +171 -132
  12. package/dist/{chunk-mmpcdj8f.js → chunk-c76ngzr6.js} +7 -7
  13. package/dist/{chunk-vkchn89k.js → chunk-cbpb2rww.js} +7 -7
  14. package/dist/{chunk-jwc8bdga.js → chunk-fs72937p.js} +5 -5
  15. package/dist/{chunk-mm2m3bys.js → chunk-gq7y5v3e.js} +1 -1
  16. package/dist/{chunk-bz4bp0q7.js → chunk-gy9rf14f.js} +3 -3
  17. package/dist/{chunk-3cgshf16.js → chunk-hvwkpnv5.js} +24 -24
  18. package/dist/{chunk-ey4mf341.js → chunk-kvt8cr8m.js} +6 -6
  19. package/dist/{chunk-892qrkb3.js → chunk-mtkstrh3.js} +60 -14
  20. package/dist/{chunk-s8m2tzdr.js → chunk-q5w3v4k1.js} +1 -1
  21. package/dist/{chunk-vrms6e1m.js → chunk-rgby07sa.js} +4 -4
  22. package/dist/{chunk-scb6qgy2.js → chunk-xmdjysn2.js} +52 -24
  23. package/dist/{chunk-skqn4h13.js → chunk-y1krmnbv.js} +2 -2
  24. package/dist/{chunk-d8qcmqh5.js → chunk-y39h1gzp.js} +4 -4
  25. package/dist/{chunk-x3cc7dfc.js → chunk-zw3gf6r5.js} +40 -226
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make13,
41
+ make14,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,7 +58,7 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make14,
61
+ make15,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
@@ -91,7 +91,7 @@ import {
91
91
  fail4,
92
92
  isSuccess2,
93
93
  makeUnsafe5,
94
- make15,
94
+ make16,
95
95
  _await,
96
96
  fail5,
97
97
  isDone,
@@ -193,12 +193,7 @@ import {
193
193
  clockWith,
194
194
  logError,
195
195
  effectify,
196
- toNumber,
197
- bytes,
198
196
  decode,
199
- isRedacted,
200
- make16,
201
- value,
202
197
  defaultParseOptions,
203
198
  omit,
204
199
  map9,
@@ -266,16 +261,17 @@ import {
266
261
  decodeJsonStringOption,
267
262
  encodeJsonStringSync,
268
263
  encodePrettyJsonString
269
- } from "./chunk-x3cc7dfc.js";
264
+ } from "./chunk-zw3gf6r5.js";
270
265
  import {
271
266
  map,
272
267
  makeEquivalence,
268
+ bytes,
273
269
  BadArgument,
274
270
  systemError,
275
271
  badArgument,
276
272
  makeUnsafe2,
277
- make7,
278
273
  make8,
274
+ make9,
279
275
  sliding,
280
276
  unbounded2,
281
277
  offer,
@@ -291,13 +287,13 @@ import {
291
287
  isSink,
292
288
  fromChannel,
293
289
  drain,
294
- make9,
290
+ make10,
295
291
  get3,
296
292
  isStream,
297
293
  fromChannel2,
298
294
  callback,
299
295
  empty2,
300
- make10,
296
+ make11,
301
297
  suspend,
302
298
  fail2,
303
299
  fromQueue,
@@ -323,27 +319,16 @@ import {
323
319
  mkArrayBuffer,
324
320
  toReadableStreamEffect,
325
321
  FileSystem,
326
- make11,
322
+ make12,
327
323
  FileTypeId,
328
324
  WatchBackend,
329
325
  Path,
330
- make12,
326
+ make13,
331
327
  option,
332
328
  String2,
333
329
  optionalEnv,
334
330
  harnessesUnsupportedInSrt2
335
- } from "./chunk-y7vjk8vv.js";
336
- import {
337
- ExitCode,
338
- ProcessId,
339
- makeHandle,
340
- make,
341
- ChildProcessSpawner,
342
- display,
343
- make2,
344
- parseFdName,
345
- fdName
346
- } from "./chunk-892qrkb3.js";
331
+ } from "./chunk-0h49y8gf.js";
347
332
  import {
348
333
  isDateTime,
349
334
  Numeric,
@@ -356,7 +341,22 @@ import {
356
341
  SecretScope,
357
342
  SecretHosts,
358
343
  isSecretReference
359
- } from "./chunk-s8m2tzdr.js";
344
+ } from "./chunk-q5w3v4k1.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-mtkstrh3.js";
359
+
360
360
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
361
361
  var makeEquivalence3 = Tuple;
362
362
 
@@ -518,7 +518,7 @@ var makeUnsafe6 = (input) => {
518
518
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
519
519
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
520
520
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
521
- var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
521
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
522
522
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
523
523
  var nowUnsafe = () => makeUtc(Date.now());
524
524
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -897,9 +897,18 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
897
897
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
898
898
  var runMain = runMain2;
899
899
 
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
+
900
909
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
901
910
  var makeUnsafe = makeUnsafe6;
902
- var make18 = make3;
911
+ var make18 = make4;
903
912
  var now2 = now;
904
913
  var nowUnsafe2 = nowUnsafe;
905
914
  var toDateUtc2 = toDateUtc;
@@ -1114,7 +1123,7 @@ var readableToPullUnsafe = (options) => {
1114
1123
  const readable = options.readable;
1115
1124
  const chunkSize = options.chunkSize ?? 4096;
1116
1125
  const closeOnDone = options.closeOnDone ?? true;
1117
- const exit = options.exit ?? make7(undefined);
1126
+ const exit = options.exit ?? make8(undefined);
1118
1127
  const latch = options.latch ?? makeUnsafe2(false);
1119
1128
  function onReadable() {
1120
1129
  latch.openUnsafe();
@@ -1678,7 +1687,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1678
1687
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1679
1688
  const toOption = options.to ?? "stdin";
1680
1689
  if (toOption === "stdin") {
1681
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1690
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1682
1691
  ...command.options,
1683
1692
  stdin: {
1684
1693
  ...stdinConfig,
@@ -1698,7 +1707,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1698
1707
  type: "input",
1699
1708
  stream: sourceStream
1700
1709
  };
1701
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1710
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1702
1711
  ...command.options,
1703
1712
  additionalFds: {
1704
1713
  ...existingFds,
@@ -1706,7 +1715,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1706
1715
  }
1707
1716
  })));
1708
1717
  } else {
1709
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1718
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1710
1719
  ...command.options,
1711
1720
  stdin: {
1712
1721
  ...stdinConfig,
@@ -1745,7 +1754,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1745
1754
  }
1746
1755
  }
1747
1756
  });
1748
- return make(spawnCommand);
1757
+ return make2(spawnCommand);
1749
1758
  });
1750
1759
  var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1751
1760
  var flattenCommand = (command) => {
@@ -2231,7 +2240,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2231
2240
  resume(fail7(handleBadArgument("writeFile")(err)));
2232
2241
  }
2233
2242
  });
2234
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2243
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2235
2244
  access: access2,
2236
2245
  chmod: chmod2,
2237
2246
  chown: chown2,
@@ -2291,15 +2300,15 @@ var fileUrlOps = (windows) => ({
2291
2300
  })
2292
2301
  })
2293
2302
  });
2294
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2303
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2295
2304
  ...NodePath.posix,
2296
2305
  .../* @__PURE__ */ fileUrlOps(false)
2297
2306
  }));
2298
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2307
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2299
2308
  ...NodePath.win32,
2300
2309
  .../* @__PURE__ */ fileUrlOps(true)
2301
2310
  }));
2302
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2311
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2303
2312
  ...NodePath,
2304
2313
  .../* @__PURE__ */ fileUrlOps(undefined)
2305
2314
  }));
@@ -2821,12 +2830,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2821
2830
  if (typeof key === "string") {
2822
2831
  const k = key.toLowerCase();
2823
2832
  if (k in self) {
2824
- out[k] = make16(self[k]);
2833
+ out[k] = make(self[k]);
2825
2834
  }
2826
2835
  } else {
2827
2836
  for (const name in self) {
2828
2837
  if (name.search(key) !== -1) {
2829
- out[name] = make16(self[name]);
2838
+ out[name] = make(self[name]);
2830
2839
  }
2831
2840
  }
2832
2841
  }
@@ -2933,7 +2942,7 @@ var fromInputNested = (input) => {
2933
2942
  return out;
2934
2943
  };
2935
2944
  var coerce = (value) => isRedacted(value) ? value : String(value);
2936
- var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2945
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
2937
2946
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2938
2947
  var empty4 = /* @__PURE__ */ make23([]);
2939
2948
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
@@ -2952,7 +2961,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2952
2961
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2953
2962
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2954
2963
  const patterns = Array.isArray(key) ? key : [key];
2955
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
2964
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2956
2965
  });
2957
2966
  var isRedactedName2 = isRedactedName;
2958
2967
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3028,7 +3037,7 @@ import * as readline from "readline";
3028
3037
  var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3029
3038
  const stdin = process.stdin;
3030
3039
  const stdout = process.stdout;
3031
- const lines = yield* make8();
3040
+ const lines = yield* make9();
3032
3041
  let inputEnded = stdin.readableEnded;
3033
3042
  let readlineActive = false;
3034
3043
  const onStdinEnd = () => {
@@ -3039,7 +3048,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3039
3048
  };
3040
3049
  stdin.once("end", onStdinEnd);
3041
3050
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3042
- const rlRef = yield* make9({
3051
+ const rlRef = yield* make10({
3043
3052
  acquire: acquireRelease(sync2(() => {
3044
3053
  const rl = readline.createInterface({
3045
3054
  input: stdin,
@@ -3078,7 +3087,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3078
3087
  if (stdin.isTTY)
3079
3088
  stdin.setRawMode(enabled);
3080
3089
  });
3081
- const rawModeRef = yield* make9({
3090
+ const rawModeRef = yield* make10({
3082
3091
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3083
3092
  idleTimeToLive: "10 millis"
3084
3093
  });
@@ -3099,7 +3108,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3099
3108
  return queue;
3100
3109
  });
3101
3110
  const readInput = gen(function* () {
3102
- const queue = yield* make8();
3111
+ const queue = yield* make9();
3103
3112
  const handleKeypress = (s, k) => {
3104
3113
  const userInput = {
3105
3114
  input: fromUndefinedOr(s),
@@ -4215,6 +4224,50 @@ var RunCommandCenterSnapshot = Struct({
4215
4224
  lowerBound: String4.check(isMinLength(1), isMaxLength(512)),
4216
4225
  isComplete: Literal(true)
4217
4226
  });
4227
+ // packages/core/src/release-channel.ts
4228
+ var ReleaseChannels = ["stable", "next"];
4229
+ var ReleaseChannel = Literals(ReleaseChannels);
4230
+ var DefaultReleaseChannel = "stable";
4231
+ var releaseVersion = (version) => {
4232
+ const parts = /^v?(\d+)\.(\d+)\.(\d+)(?:-([^+]+))?(?:\+.*)?$/u.exec(version);
4233
+ if (parts === null)
4234
+ return;
4235
+ const prerelease = parts[4];
4236
+ const devBuild = prerelease !== undefined && /(?:^|-)\d+-g[0-9a-f]+$/u.test(prerelease);
4237
+ const stage = prerelease === undefined ? 1 : devBuild && /^\d+-g[0-9a-f]+$/u.test(prerelease) ? 2 : 0;
4238
+ return {
4239
+ numbers: [...parts.slice(1, 4).map(Number), stage],
4240
+ prerelease: stage === 0 && prerelease !== undefined ? prerelease.split(".") : [],
4241
+ stable: prerelease === undefined,
4242
+ devBuild
4243
+ };
4244
+ };
4245
+ var comparePrereleaseIdentifier = (a, b) => {
4246
+ const [numericA, numericB] = [/^\d+$/u.test(a), /^\d+$/u.test(b)];
4247
+ if (numericA && numericB)
4248
+ return Number(a) - Number(b);
4249
+ if (numericA !== numericB)
4250
+ return numericA ? -1 : 1;
4251
+ return a < b ? -1 : a > b ? 1 : 0;
4252
+ };
4253
+ var comparePrerelease = (a, b) => {
4254
+ for (let index = 0;index < Math.min(a.length, b.length); index++) {
4255
+ const order = comparePrereleaseIdentifier(a[index] ?? "", b[index] ?? "");
4256
+ if (order !== 0)
4257
+ return order;
4258
+ }
4259
+ return a.length - b.length;
4260
+ };
4261
+ var newerKitmanVersion = (candidate, running) => {
4262
+ const [a, b] = [releaseVersion(candidate), releaseVersion(running)];
4263
+ if (a === undefined || b === undefined)
4264
+ return true;
4265
+ const differing = a.numbers.findIndex((part, index) => part !== b.numbers[index]);
4266
+ if (differing === -1)
4267
+ return comparePrerelease(a.prerelease, b.prerelease) > 0;
4268
+ return (a.numbers[differing] ?? 0) > (b.numbers[differing] ?? 0);
4269
+ };
4270
+
4218
4271
  // packages/core/src/agent-environment.ts
4219
4272
  var AgentHarnessIds = ["opencode", "claude-code", "codex", "pi"];
4220
4273
  var AgentEnvironmentPolicy = Union([Literal("recommended"), Literal("required")]);
@@ -7362,6 +7415,7 @@ var Runner = Struct({
7362
7415
  latestVersion: optionalKey(RunnerVersion),
7363
7416
  container: Boolean2,
7364
7417
  automaticUpdates: Boolean2,
7418
+ releaseChannel: optionalKey(ReleaseChannel),
7365
7419
  settings: optionalKey(RunnerSettings),
7366
7420
  appliedSettings: optionalKey(RunnerAppliedSettings),
7367
7421
  lastHeartbeatAt: optionalKey(Timestamp),
@@ -8109,21 +8163,6 @@ function deliveryProviderActions(providerActions, delivery) {
8109
8163
  release: posture("release")
8110
8164
  };
8111
8165
  }
8112
- var releaseVersion = (version) => {
8113
- const parts = /^v?(\d+)\.(\d+)\.(\d+)(-.+)?$/u.exec(version);
8114
- if (parts === null)
8115
- return;
8116
- const suffix = parts[4];
8117
- const stage = suffix === undefined ? 1 : /^-\d+-g[0-9a-f]+$/u.test(suffix) ? 2 : 0;
8118
- return { numbers: [...parts.slice(1, 4).map(Number), stage], stable: suffix === undefined };
8119
- };
8120
- var newerKitmanVersion = (candidate, running) => {
8121
- const [a, b] = [releaseVersion(candidate), releaseVersion(running)];
8122
- if (a === undefined || b === undefined)
8123
- return true;
8124
- const differing = a.numbers.findIndex((part, index) => part !== b.numbers[index]);
8125
- return differing !== -1 && (a.numbers[differing] ?? 0) > (b.numbers[differing] ?? 0);
8126
- };
8127
8166
  // packages/core/src/team-context.ts
8128
8167
  var BranchTemplate = String4.check(isMinLength(1), isMaxLength(160));
8129
8168
  var DeliveryMode = Literals(["gated", "auto"]);
@@ -9911,14 +9950,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
9911
9950
  return self;
9912
9951
  }
9913
9952
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
9914
- var make4 = (method) => (url, options) => modify(empty6, {
9953
+ var make5 = (method) => (url, options) => modify(empty6, {
9915
9954
  method,
9916
9955
  url,
9917
9956
  ...options ?? undefined
9918
9957
  });
9919
- var get = /* @__PURE__ */ make4("GET");
9920
- var post = /* @__PURE__ */ make4("POST");
9921
- var put = /* @__PURE__ */ make4("PUT");
9958
+ var get = /* @__PURE__ */ make5("GET");
9959
+ var post = /* @__PURE__ */ make5("POST");
9960
+ var put = /* @__PURE__ */ make5("PUT");
9922
9961
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
9923
9962
  let result = self;
9924
9963
  if (options.method) {
@@ -10219,7 +10258,7 @@ var Proto7 = {
10219
10258
  };
10220
10259
  },
10221
10260
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
10222
- return this.execute(make4(fullMethod)(url, options));
10261
+ return this.execute(make5(fullMethod)(url, options));
10223
10262
  }]))
10224
10263
  };
10225
10264
  var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
@@ -13907,7 +13946,7 @@ var makeProto = (options) => {
13907
13946
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
13908
13947
  return Rpc;
13909
13948
  };
13910
- var make5 = (tag, options) => {
13949
+ var make6 = (tag, options) => {
13911
13950
  const successSchema = options?.success ?? Void;
13912
13951
  const errorSchema = options?.error ?? Never;
13913
13952
  const defectSchema = options?.defect ?? Defect();
@@ -14118,7 +14157,7 @@ var RpcGroupProto = {
14118
14157
  });
14119
14158
  },
14120
14159
  annotateRpcs(service, value) {
14121
- return this.annotateRpcsMerge(make14(service, value));
14160
+ return this.annotateRpcsMerge(make15(service, value));
14122
14161
  },
14123
14162
  annotateMerge(context) {
14124
14163
  return makeProto2({
@@ -14141,7 +14180,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
14141
14180
  requests: options.requests,
14142
14181
  annotations: options.annotations
14143
14182
  });
14144
- var make6 = (...rpcs) => makeProto2({
14183
+ var make7 = (...rpcs) => makeProto2({
14145
14184
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
14146
14185
  annotations: empty3()
14147
14186
  });
@@ -14247,96 +14286,96 @@ var ProgramOutcome = Union([
14247
14286
  Struct({ status: Literal("failed"), failureSummary: String4 })
14248
14287
  ]);
14249
14288
 
14250
- class RunnerReplicaRpcs extends make6(make5("Claim", {
14289
+ class RunnerReplicaRpcs extends make7(make6("Claim", {
14251
14290
  payload: WorkUnitClaimInput,
14252
14291
  success: WorkUnitClaimResult,
14253
14292
  error: RunnerRpcError
14254
- }), make5("Heartbeat", {
14293
+ }), make6("Heartbeat", {
14255
14294
  payload: WorkUnitHeartbeatInput,
14256
14295
  success: WorkUnitHeartbeatResult,
14257
14296
  error: RunnerRpcError
14258
- }), make5("Complete", {
14297
+ }), make6("Complete", {
14259
14298
  payload: WorkUnitCompletion,
14260
14299
  error: RunnerRpcError
14261
- }), make5("Release", {
14300
+ }), make6("Release", {
14262
14301
  payload: WorkUnitReleaseInput,
14263
14302
  error: RunnerRpcError
14264
- }), make5("Signals", {
14303
+ }), make6("Signals", {
14265
14304
  payload: { runnerReplicaId: String4 },
14266
14305
  success: RunnerSignal,
14267
14306
  error: RunnerRpcError,
14268
14307
  stream: true
14269
- }), make5("ReportSteer", {
14308
+ }), make6("ReportSteer", {
14270
14309
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
14271
14310
  success: Void,
14272
14311
  error: RunnerRpcError
14273
- }), make5("AppendTranscript", {
14312
+ }), make6("AppendTranscript", {
14274
14313
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
14275
14314
  success: Void,
14276
14315
  error: RunnerRpcError
14277
- }), make5("CreateCheckpointFile", {
14316
+ }), make6("CreateCheckpointFile", {
14278
14317
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
14279
14318
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14280
14319
  error: Union([RunnerRpcError, RunFileRefused])
14281
- }), make5("CheckpointFileParts", {
14320
+ }), make6("CheckpointFileParts", {
14282
14321
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14283
14322
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14284
14323
  error: RunnerRpcError
14285
- }), make5("CompleteCheckpointFile", {
14324
+ }), make6("CompleteCheckpointFile", {
14286
14325
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14287
14326
  success: RunFileRecord,
14288
14327
  error: RunnerRpcError
14289
- }), make5("SaveCheckpoint", {
14328
+ }), make6("SaveCheckpoint", {
14290
14329
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
14291
14330
  success: Void,
14292
14331
  error: RunnerRpcError
14293
- }), make5("ResumeCheckpoint", {
14332
+ }), make6("ResumeCheckpoint", {
14294
14333
  payload: { lease: ProgramLease },
14295
14334
  success: UndefinedOr(ResumedCheckpoint),
14296
14335
  error: RunnerRpcError
14297
- }), make5("SettledCheckpoints", {
14336
+ }), make6("SettledCheckpoints", {
14298
14337
  success: ArraySchema(Struct({
14299
14338
  stepAttemptId: String4,
14300
14339
  ref: optionalKey(String4),
14301
14340
  repoBinding: optionalKey(WorkUnitRepoBinding)
14302
14341
  })),
14303
14342
  error: RunnerRpcError
14304
- }), make5("ForgetCheckpoints", {
14343
+ }), make6("ForgetCheckpoints", {
14305
14344
  payload: { stepAttemptIds: ArraySchema(String4) },
14306
14345
  success: Void,
14307
14346
  error: RunnerRpcError
14308
- }), make5("GitCredential", {
14347
+ }), make6("GitCredential", {
14309
14348
  payload: { repoBindingId: String4 },
14310
14349
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
14311
14350
  error: RunnerRpcError
14312
- }), make5("Bundle", {
14351
+ }), make6("Bundle", {
14313
14352
  payload: { digest: String4 },
14314
14353
  success: Struct({ bundle: String4 }),
14315
14354
  error: RunnerRpcError
14316
- }), make5("SettledRuns", {
14355
+ }), make6("SettledRuns", {
14317
14356
  payload: { runIds: ArraySchema(String4) },
14318
14357
  success: ArraySchema(String4),
14319
14358
  error: RunnerRpcError
14320
- }), make5("KnownEvidence", {
14359
+ }), make6("KnownEvidence", {
14321
14360
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
14322
14361
  success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
14323
14362
  error: RunnerRpcError
14324
14363
  })).middleware(RunnerAuthentication) {
14325
14364
  }
14326
14365
 
14327
- class RunnerJournalRpcs extends make6(make5("RecordActivity", {
14366
+ class RunnerJournalRpcs extends make7(make6("RecordActivity", {
14328
14367
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
14329
14368
  error: RunnerRpcError
14330
- }), make5("DeferredDone", {
14369
+ }), make6("DeferredDone", {
14331
14370
  payload: { lease: ProgramLease, name: String4, exit: Json },
14332
14371
  error: RunnerRpcError
14333
- }), make5("ScheduleClock", {
14372
+ }), make6("ScheduleClock", {
14334
14373
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
14335
14374
  error: RunnerRpcError
14336
- }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
14375
+ }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
14337
14376
  }
14338
14377
 
14339
- class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14378
+ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14340
14379
  payload: {
14341
14380
  lease: ProgramLease,
14342
14381
  step: String4,
@@ -14356,7 +14395,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14356
14395
  },
14357
14396
  success: Struct({ questionId: String4 }),
14358
14397
  error: RunnerRpcError
14359
- }), make5("StartAgentStep", {
14398
+ }), make6("StartAgentStep", {
14360
14399
  payload: {
14361
14400
  lease: ProgramLease,
14362
14401
  step: String4,
@@ -14372,7 +14411,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14372
14411
  },
14373
14412
  success: Struct({ stepAttemptId: String4 }),
14374
14413
  error: RunnerRpcError
14375
- }), make5("StartVerification", {
14414
+ }), make6("StartVerification", {
14376
14415
  payload: {
14377
14416
  lease: ProgramLease,
14378
14417
  step: String4,
@@ -14393,7 +14432,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14393
14432
  },
14394
14433
  success: Struct({ verificationId: String4 }),
14395
14434
  error: RunnerRpcError
14396
- }), make5("AwaitEvent", {
14435
+ }), make6("AwaitEvent", {
14397
14436
  payload: {
14398
14437
  lease: ProgramLease,
14399
14438
  step: String4,
@@ -14409,7 +14448,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14409
14448
  })))
14410
14449
  },
14411
14450
  error: RunnerRpcError
14412
- }), make5("ClaimResource", {
14451
+ }), make6("ClaimResource", {
14413
14452
  payload: {
14414
14453
  lease: ProgramLease,
14415
14454
  step: String4,
@@ -14418,7 +14457,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14418
14457
  action: Literals(["claim", "take_over", "let_go"])
14419
14458
  },
14420
14459
  error: RunnerRpcError
14421
- }), make5("AdmitChild", {
14460
+ }), make6("AdmitChild", {
14422
14461
  payload: {
14423
14462
  lease: ProgramLease,
14424
14463
  step: String4,
@@ -14429,7 +14468,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14429
14468
  },
14430
14469
  success: Struct({ runId: String4 }),
14431
14470
  error: RunnerRpcError
14432
- }), make5("StoreArtifact", {
14471
+ }), make6("StoreArtifact", {
14433
14472
  payload: {
14434
14473
  lease: ProgramLease,
14435
14474
  step: String4,
@@ -14441,7 +14480,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14441
14480
  },
14442
14481
  success: Struct({ artifactId: String4 }),
14443
14482
  error: RunnerRpcError
14444
- }), make5("RecordNote", {
14483
+ }), make6("RecordNote", {
14445
14484
  payload: {
14446
14485
  lease: ProgramLease,
14447
14486
  step: String4,
@@ -14450,7 +14489,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14450
14489
  kind: optional(Literals(["note", "blocker"]))
14451
14490
  },
14452
14491
  error: RunnerRpcError
14453
- }), make5("PerformHostEffect", {
14492
+ }), make6("PerformHostEffect", {
14454
14493
  payload: {
14455
14494
  lease: ProgramLease,
14456
14495
  step: String4,
@@ -14479,7 +14518,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14479
14518
  },
14480
14519
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
14481
14520
  error: RunnerRpcError
14482
- }), make5("AlertTask", {
14521
+ }), make6("AlertTask", {
14483
14522
  payload: {
14484
14523
  lease: ProgramLease,
14485
14524
  step: String4,
@@ -14496,7 +14535,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14496
14535
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
14497
14536
  }),
14498
14537
  error: RunnerRpcError
14499
- }), make5("ReadTranscripts", {
14538
+ }), make6("ReadTranscripts", {
14500
14539
  payload: {
14501
14540
  lease: ProgramLease,
14502
14541
  step: String4,
@@ -14531,7 +14570,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14531
14570
  })))
14532
14571
  }),
14533
14572
  error: RunnerRpcError
14534
- }), make5("PipelineStatus", {
14573
+ }), make6("PipelineStatus", {
14535
14574
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14536
14575
  success: Struct({
14537
14576
  head: String4,
@@ -14565,11 +14604,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14565
14604
  }))
14566
14605
  }),
14567
14606
  error: RunnerRpcError
14568
- }), make5("ReportPipeline", {
14607
+ }), make6("ReportPipeline", {
14569
14608
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
14570
14609
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
14571
14610
  error: RunnerRpcError
14572
- }), make5("ReviewThreads", {
14611
+ }), make6("ReviewThreads", {
14573
14612
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14574
14613
  success: Struct({
14575
14614
  threads: ArraySchema(Struct({
@@ -14581,7 +14620,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14581
14620
  }))
14582
14621
  }),
14583
14622
  error: RunnerRpcError
14584
- }), make5("OpenChangeRequests", {
14623
+ }), make6("OpenChangeRequests", {
14585
14624
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
14586
14625
  success: Struct({
14587
14626
  changeRequests: ArraySchema(Struct({
@@ -14595,7 +14634,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14595
14634
  }))
14596
14635
  }),
14597
14636
  error: RunnerRpcError
14598
- }), make5("OwnChangeRequests", {
14637
+ }), make6("OwnChangeRequests", {
14599
14638
  payload: { lease: ProgramLease, step: String4 },
14600
14639
  success: Struct({
14601
14640
  changeRequests: ArraySchema(Struct({
@@ -14608,7 +14647,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14608
14647
  }))
14609
14648
  }),
14610
14649
  error: RunnerRpcError
14611
- }), make5("Propose", {
14650
+ }), make6("Propose", {
14612
14651
  payload: {
14613
14652
  lease: ProgramLease,
14614
14653
  step: String4,
@@ -14637,7 +14676,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14637
14676
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
14638
14677
  }),
14639
14678
  error: RunnerRpcError
14640
- }), make5("ReadProject", {
14679
+ }), make6("ReadProject", {
14641
14680
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
14642
14681
  success: Struct({
14643
14682
  project: Struct({ id: String4, name: String4 }),
@@ -14660,7 +14699,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14660
14699
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
14661
14700
  }),
14662
14701
  error: RunnerRpcError
14663
- }), make5("DraftUpdate", {
14702
+ }), make6("DraftUpdate", {
14664
14703
  payload: {
14665
14704
  lease: ProgramLease,
14666
14705
  step: String4,
@@ -14675,7 +14714,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14675
14714
  },
14676
14715
  success: Struct({ id: String4 }),
14677
14716
  error: RunnerRpcError
14678
- }), make5("CreatePlanTasks", {
14717
+ }), make6("CreatePlanTasks", {
14679
14718
  payload: {
14680
14719
  lease: ProgramLease,
14681
14720
  projectId: optionalKey(String4),
@@ -14693,15 +14732,15 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14693
14732
  },
14694
14733
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
14695
14734
  error: RunnerRpcError
14696
- }), make5("IntegrationBranch", {
14735
+ }), make6("IntegrationBranch", {
14697
14736
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
14698
14737
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14699
14738
  error: RunnerRpcError
14700
- }), make5("DeliveryBase", {
14739
+ }), make6("DeliveryBase", {
14701
14740
  payload: { lease: ProgramLease },
14702
14741
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14703
14742
  error: RunnerRpcError
14704
- }), make5("MergeChangeRequest", {
14743
+ }), make6("MergeChangeRequest", {
14705
14744
  payload: {
14706
14745
  lease: ProgramLease,
14707
14746
  step: String4,
@@ -14719,7 +14758,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14719
14758
  Struct({ status: Literal("moved"), head: String4 })
14720
14759
  ]),
14721
14760
  error: RunnerRpcError
14722
- }), make5("ApproveChangeRequest", {
14761
+ }), make6("ApproveChangeRequest", {
14723
14762
  payload: {
14724
14763
  lease: ProgramLease,
14725
14764
  step: String4,
@@ -14735,7 +14774,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14735
14774
  Struct({ approved: Literal(false), reason: String4 })
14736
14775
  ]),
14737
14776
  error: RunnerRpcError
14738
- }), make5("CloseChangeRequest", {
14777
+ }), make6("CloseChangeRequest", {
14739
14778
  payload: {
14740
14779
  lease: ProgramLease,
14741
14780
  step: String4,
@@ -14745,7 +14784,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14745
14784
  },
14746
14785
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
14747
14786
  error: RunnerRpcError
14748
- }), make5("RerunPipeline", {
14787
+ }), make6("RerunPipeline", {
14749
14788
  payload: {
14750
14789
  lease: ProgramLease,
14751
14790
  step: String4,
@@ -14755,7 +14794,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14755
14794
  },
14756
14795
  success: Struct({ head: String4, pipelines: Int }),
14757
14796
  error: RunnerRpcError
14758
- }), make5("PublishRelease", {
14797
+ }), make6("PublishRelease", {
14759
14798
  payload: {
14760
14799
  lease: ProgramLease,
14761
14800
  step: String4,
@@ -14767,14 +14806,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14767
14806
  },
14768
14807
  success: Struct({ tag: String4, revision: String4, url: String4 }),
14769
14808
  error: RunnerRpcError
14770
- }), make5("ProgramSecrets", {
14809
+ }), make6("ProgramSecrets", {
14771
14810
  payload: { lease: ProgramLease },
14772
14811
  success: Record(String4, String4),
14773
14812
  error: RunnerRpcError
14774
14813
  })).middleware(RunnerAuthentication) {
14775
14814
  }
14776
14815
 
14777
- class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14816
+ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14778
14817
  payload: {
14779
14818
  lease: ProgramLease,
14780
14819
  step: String4,
@@ -14786,11 +14825,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14786
14825
  },
14787
14826
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14788
14827
  error: Union([RunnerRpcError, RunFileRefused])
14789
- }), make5("RunFileParts", {
14828
+ }), make6("RunFileParts", {
14790
14829
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14791
14830
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14792
14831
  error: RunnerRpcError
14793
- }), make5("CompleteRunFile", {
14832
+ }), make6("CompleteRunFile", {
14794
14833
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14795
14834
  success: RunFileRecord,
14796
14835
  error: RunnerRpcError
@@ -14879,7 +14918,7 @@ function toStoredSession(token, existingRefreshToken) {
14879
14918
  }
14880
14919
  function startLoopbackServer(input) {
14881
14920
  return gen(function* () {
14882
- const code = yield* make15();
14921
+ const code = yield* make16();
14883
14922
  const context2 = yield* context();
14884
14923
  const runSyncExit = runSyncExitWith(context2);
14885
14924
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15419,7 +15458,7 @@ var openConnection = (transport) => gen(function* () {
15419
15458
  let lastId = 0;
15420
15459
  let lost = false;
15421
15460
  const notifications = yield* unbounded2();
15422
- const ended = yield* make15();
15461
+ const ended = yield* make16();
15423
15462
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15424
15463
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15425
15464
  onNone: () => void_3,
@@ -15446,7 +15485,7 @@ var openConnection = (transport) => gen(function* () {
15446
15485
  if (lost)
15447
15486
  return yield* new HerdrCoreConnectionLost2({ method });
15448
15487
  const id = ++lastId;
15449
- const deferred = yield* make15();
15488
+ const deferred = yield* make16();
15450
15489
  pending.set(id, { method, deferred });
15451
15490
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15452
15491
  return yield* _await(deferred);
@@ -15520,14 +15559,14 @@ var herdrCoreOver = (transport) => ({
15520
15559
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15521
15560
  };
15522
15561
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15523
- return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15562
+ return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15524
15563
  }))
15525
15564
  });
15526
15565
  var spawnedTransport = (env) => gen(function* () {
15527
15566
  const spawner = yield* ChildProcessSpawner;
15528
15567
  const input = yield* unbounded2();
15529
15568
  const encoder = new TextEncoder;
15530
- const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
15569
+ const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
15531
15570
  extendEnv: false,
15532
15571
  env,
15533
15572
  stdin: fromQueue(input),
@@ -15558,7 +15597,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
15558
15597
  const spawner = yield* ChildProcessSpawner;
15559
15598
  const env = coreEnv(options);
15560
15599
  const run = (args) => gen(function* () {
15561
- const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15600
+ const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15562
15601
  const [stdout, stderr, exitCode] = yield* all3([
15563
15602
  mkString(decodeText(handle.stdout)),
15564
15603
  mkString(decodeText(handle.stderr)),
@@ -15584,7 +15623,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
15584
15623
  }
15585
15624
  var runCommand2 = (command, args, options = {}) => gen(function* () {
15586
15625
  const spawner = yield* ChildProcessSpawner;
15587
- const handle = yield* spawner.spawn(make2(command, args, {
15626
+ const handle = yield* spawner.spawn(make3(command, args, {
15588
15627
  stdin: "ignore",
15589
15628
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15590
15629
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -15610,8 +15649,8 @@ var shellOutputTailChars2 = 64 * 1024;
15610
15649
  var runProcess2 = (argv, options) => gen(function* () {
15611
15650
  const spawner = yield* ChildProcessSpawner;
15612
15651
  const [command, ...args] = argv;
15613
- const handle = yield* spawner.spawn(make2(command, args, {
15614
- stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15652
+ const handle = yield* spawner.spawn(make3(command, args, {
15653
+ stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15615
15654
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15616
15655
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15617
15656
  }));
@@ -16043,4 +16082,4 @@ function checkServices(declaration) {
16043
16082
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
16044
16083
  }
16045
16084
 
16046
- export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, newerKitmanVersion, 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 };
16085
+ 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, 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 };