@kitman-sh/cli 0.10.97 → 0.10.99

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-mrzmq4jq.js → chunk-0a10kdrd.js} +4 -4
  2. package/dist/{chunk-k6ndhjcd.js → chunk-0hjtwtms.js} +50 -25
  3. package/dist/{chunk-nwqcmdtz.js → chunk-0tsc91qr.js} +5 -4
  4. package/dist/{chunk-jtyxjjvs.js → chunk-2fs34341.js} +36 -30
  5. package/dist/{chunk-q4q69zgm.js → chunk-3ka78n56.js} +7 -7
  6. package/dist/{chunk-w0sehmpd.js → chunk-3r7ahnwy.js} +60 -14
  7. package/dist/{chunk-gfe4kk5k.js → chunk-3v70x040.js} +5 -5
  8. package/dist/{chunk-3tjssyvf.js → chunk-4sswz0mn.js} +8 -8
  9. package/dist/{chunk-t8ny8exc.js → chunk-56e202xk.js} +7 -7
  10. package/dist/{chunk-qr0n7rde.js → chunk-6vmpa1nw.js} +12 -12
  11. package/dist/{chunk-c3k32vw4.js → chunk-a244myqw.js} +1 -1
  12. package/dist/{chunk-yzmyy4vs.js → chunk-abf4m4b2.js} +5 -5
  13. package/dist/{chunk-dstm8aen.js → chunk-ampzxrqe.js} +28 -70
  14. package/dist/{chunk-k4fvnphp.js → chunk-bk3dpjxq.js} +1 -1
  15. package/dist/{chunk-mbqeakm1.js → chunk-et6qa95h.js} +1 -1
  16. package/dist/{chunk-hsf2sj69.js → chunk-fv6kgtze.js} +2 -2
  17. package/dist/{chunk-9m9cv82t.js → chunk-g3r5xp0t.js} +2 -2
  18. package/dist/{chunk-y8dzp1t8.js → chunk-k0shg2fb.js} +198 -129
  19. package/dist/{chunk-rmsm8vnc.js → chunk-rdv42ygn.js} +4 -4
  20. package/dist/{chunk-mkr1nwdy.js → chunk-rp224rm4.js} +3 -3
  21. package/dist/{chunk-3snbxcct.js → chunk-rrj434w6.js} +330 -102
  22. package/dist/{chunk-2ndnvcp3.js → chunk-t7ncjd6s.js} +8 -8
  23. package/dist/{chunk-25q7mg6g.js → chunk-vjcn82g3.js} +17 -17
  24. package/dist/{chunk-mxqrv47k.js → chunk-z2f9enrp.js} +5 -5
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make13,
41
+ make14,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,7 +58,7 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make14,
61
+ make15,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
@@ -91,7 +91,7 @@ import {
91
91
  fail4,
92
92
  isSuccess2,
93
93
  makeUnsafe5,
94
- make15,
94
+ make16,
95
95
  _await,
96
96
  fail5,
97
97
  isDone,
@@ -194,9 +194,6 @@ import {
194
194
  logError,
195
195
  effectify,
196
196
  decode,
197
- isRedacted,
198
- make16,
199
- value,
200
197
  defaultParseOptions,
201
198
  omit,
202
199
  map9,
@@ -252,7 +249,7 @@ import {
252
249
  decodeJsonStringOption,
253
250
  encodeJsonStringSync,
254
251
  encodePrettyJsonString
255
- } from "./chunk-dstm8aen.js";
252
+ } from "./chunk-ampzxrqe.js";
256
253
  import {
257
254
  map,
258
255
  makeEquivalence,
@@ -261,8 +258,8 @@ import {
261
258
  systemError,
262
259
  badArgument,
263
260
  makeUnsafe2,
264
- make7,
265
261
  make8,
262
+ make9,
266
263
  sliding,
267
264
  unbounded2,
268
265
  offer,
@@ -278,13 +275,13 @@ import {
278
275
  isSink,
279
276
  fromChannel,
280
277
  drain,
281
- make9,
278
+ make10,
282
279
  get3,
283
280
  isStream,
284
281
  fromChannel2,
285
282
  callback,
286
283
  empty2,
287
- make10,
284
+ make11,
288
285
  suspend,
289
286
  fail2,
290
287
  fromQueue,
@@ -310,16 +307,16 @@ import {
310
307
  mkArrayBuffer,
311
308
  toReadableStreamEffect,
312
309
  FileSystem,
313
- make11,
310
+ make12,
314
311
  FileTypeId,
315
312
  WatchBackend,
316
313
  Path,
317
- make12,
314
+ make13,
318
315
  option,
319
316
  String2,
320
317
  optionalEnv,
321
318
  harnessesUnsupportedInSrt2
322
- } from "./chunk-25q7mg6g.js";
319
+ } from "./chunk-vjcn82g3.js";
323
320
  import {
324
321
  isDateTime,
325
322
  Numeric,
@@ -332,7 +329,7 @@ import {
332
329
  SecretScope,
333
330
  SecretHosts,
334
331
  isSecretReference
335
- } from "./chunk-mbqeakm1.js";
332
+ } from "./chunk-et6qa95h.js";
336
333
  import {
337
334
  toJsonValue,
338
335
  isOneOf,
@@ -346,18 +343,21 @@ import {
346
343
  isSymbol,
347
344
  isUndefined,
348
345
  kindOf
349
- } from "./chunk-k4fvnphp.js";
346
+ } from "./chunk-bk3dpjxq.js";
350
347
  import {
348
+ isRedacted,
349
+ make,
350
+ value,
351
351
  ExitCode,
352
352
  ProcessId,
353
353
  makeHandle,
354
- make,
354
+ make2,
355
355
  ChildProcessSpawner,
356
356
  display,
357
- make2,
357
+ make3,
358
358
  parseFdName,
359
359
  fdName
360
- } from "./chunk-w0sehmpd.js";
360
+ } from "./chunk-3r7ahnwy.js";
361
361
 
362
362
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
363
363
  var makeEquivalence3 = Tuple;
@@ -520,7 +520,7 @@ var makeUnsafe6 = (input) => {
520
520
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
521
521
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
522
522
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
523
- var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
523
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
524
524
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
525
525
  var nowUnsafe = () => makeUtc(Date.now());
526
526
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -910,7 +910,7 @@ var toNumber = (b) => {
910
910
 
911
911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
912
912
  var makeUnsafe = makeUnsafe6;
913
- var make18 = make3;
913
+ var make18 = make4;
914
914
  var now2 = now;
915
915
  var nowUnsafe2 = nowUnsafe;
916
916
  var toDateUtc2 = toDateUtc;
@@ -1125,7 +1125,7 @@ var readableToPullUnsafe = (options) => {
1125
1125
  const readable = options.readable;
1126
1126
  const chunkSize = options.chunkSize ?? 4096;
1127
1127
  const closeOnDone = options.closeOnDone ?? true;
1128
- const exit = options.exit ?? make7(undefined);
1128
+ const exit = options.exit ?? make8(undefined);
1129
1129
  const latch = options.latch ?? makeUnsafe2(false);
1130
1130
  function onReadable() {
1131
1131
  latch.openUnsafe();
@@ -1689,7 +1689,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1689
1689
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1690
1690
  const toOption = options.to ?? "stdin";
1691
1691
  if (toOption === "stdin") {
1692
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1692
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1693
1693
  ...command.options,
1694
1694
  stdin: {
1695
1695
  ...stdinConfig,
@@ -1709,7 +1709,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1709
1709
  type: "input",
1710
1710
  stream: sourceStream
1711
1711
  };
1712
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1712
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1713
1713
  ...command.options,
1714
1714
  additionalFds: {
1715
1715
  ...existingFds,
@@ -1717,7 +1717,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1717
1717
  }
1718
1718
  })));
1719
1719
  } else {
1720
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1720
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1721
1721
  ...command.options,
1722
1722
  stdin: {
1723
1723
  ...stdinConfig,
@@ -1756,7 +1756,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1756
1756
  }
1757
1757
  }
1758
1758
  });
1759
- return make(spawnCommand);
1759
+ return make2(spawnCommand);
1760
1760
  });
1761
1761
  var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1762
1762
  var flattenCommand = (command) => {
@@ -2242,7 +2242,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2242
2242
  resume(fail7(handleBadArgument("writeFile")(err)));
2243
2243
  }
2244
2244
  });
2245
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2245
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2246
2246
  access: access2,
2247
2247
  chmod: chmod2,
2248
2248
  chown: chown2,
@@ -2302,15 +2302,15 @@ var fileUrlOps = (windows) => ({
2302
2302
  })
2303
2303
  })
2304
2304
  });
2305
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2305
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2306
2306
  ...NodePath.posix,
2307
2307
  .../* @__PURE__ */ fileUrlOps(false)
2308
2308
  }));
2309
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2309
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2310
2310
  ...NodePath.win32,
2311
2311
  .../* @__PURE__ */ fileUrlOps(true)
2312
2312
  }));
2313
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2313
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2314
2314
  ...NodePath,
2315
2315
  .../* @__PURE__ */ fileUrlOps(undefined)
2316
2316
  }));
@@ -2832,12 +2832,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2832
2832
  if (typeof key === "string") {
2833
2833
  const k = key.toLowerCase();
2834
2834
  if (k in self) {
2835
- out[k] = make16(self[k]);
2835
+ out[k] = make(self[k]);
2836
2836
  }
2837
2837
  } else {
2838
2838
  for (const name in self) {
2839
2839
  if (name.search(key) !== -1) {
2840
- out[name] = make16(self[name]);
2840
+ out[name] = make(self[name]);
2841
2841
  }
2842
2842
  }
2843
2843
  }
@@ -2944,7 +2944,7 @@ var fromInputNested = (input) => {
2944
2944
  return out;
2945
2945
  };
2946
2946
  var coerce = (value) => isRedacted(value) ? value : String(value);
2947
- var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2947
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
2948
2948
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2949
2949
  var empty4 = /* @__PURE__ */ make23([]);
2950
2950
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
@@ -2963,7 +2963,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2963
2963
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2964
2964
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2965
2965
  const patterns = Array.isArray(key) ? key : [key];
2966
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
2966
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2967
2967
  });
2968
2968
  var isRedactedName2 = isRedactedName;
2969
2969
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3039,7 +3039,7 @@ import * as readline from "readline";
3039
3039
  var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3040
3040
  const stdin = process.stdin;
3041
3041
  const stdout = process.stdout;
3042
- const lines = yield* make8();
3042
+ const lines = yield* make9();
3043
3043
  let inputEnded = stdin.readableEnded;
3044
3044
  let readlineActive = false;
3045
3045
  const onStdinEnd = () => {
@@ -3050,7 +3050,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3050
3050
  };
3051
3051
  stdin.once("end", onStdinEnd);
3052
3052
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3053
- const rlRef = yield* make9({
3053
+ const rlRef = yield* make10({
3054
3054
  acquire: acquireRelease(sync2(() => {
3055
3055
  const rl = readline.createInterface({
3056
3056
  input: stdin,
@@ -3089,7 +3089,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3089
3089
  if (stdin.isTTY)
3090
3090
  stdin.setRawMode(enabled);
3091
3091
  });
3092
- const rawModeRef = yield* make9({
3092
+ const rawModeRef = yield* make10({
3093
3093
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3094
3094
  idleTimeToLive: "10 millis"
3095
3095
  });
@@ -3110,7 +3110,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3110
3110
  return queue;
3111
3111
  });
3112
3112
  const readInput = gen(function* () {
3113
- const queue = yield* make8();
3113
+ const queue = yield* make9();
3114
3114
  const handleKeypress = (s, k) => {
3115
3115
  const userInput = {
3116
3116
  input: fromUndefinedOr(s),
@@ -4633,6 +4633,25 @@ function normalizedSecretKey(key) {
4633
4633
  return key.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[-\s]+/g, "_").toLowerCase();
4634
4634
  }
4635
4635
 
4636
+ // packages/core/src/network-host.ts
4637
+ var label = "[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?";
4638
+ var port = "(?:[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])";
4639
+ var NetworkHost = String4.check(isMaxLength(260), isPattern(new RegExp(`^(?:localhost|${label}(?:\\.${label})+|\\*\\.${label}\\.${label}(?:\\.${label})*)(?::${port})?$`, "u")));
4640
+ var NetworkHostScope = Union([Struct({ teamId: Id }), Struct({ repoBindingId: Id })]);
4641
+ var NetworkHostSummary = Struct({
4642
+ host: NetworkHost,
4643
+ teamId: optionalKey(Id),
4644
+ repoBindingId: optionalKey(Id),
4645
+ addedByActorType: ActorType,
4646
+ addedByActorId: String4,
4647
+ addedAt: Timestamp
4648
+ });
4649
+ var NetworkHostList = Struct({ items: ArraySchema(NetworkHostSummary) });
4650
+ var NetworkHostQuery = Struct({
4651
+ teamId: optionalKey(Id),
4652
+ repoBindingId: optionalKey(Id)
4653
+ });
4654
+
4636
4655
  // packages/core/src/task-key.ts
4637
4656
  var TaskKeyPattern = /^[A-Z][A-Z0-9]{1,11}-[1-9][0-9]*$/;
4638
4657
  var TaskKey = String4.check(isPattern(new RegExp(TaskKeyPattern.source, "u")));
@@ -6569,25 +6588,6 @@ var RunActionSummary = Struct({
6569
6588
  var RunActionList = Struct({ items: ArraySchema(RunActionSummary) });
6570
6589
  var RunActionTaken = Struct({ action: String4, run: Run });
6571
6590
 
6572
- // packages/core/src/network-host.ts
6573
- var label = "[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?";
6574
- var port = "(?:[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])";
6575
- var NetworkHost = String4.check(isMaxLength(260), isPattern(new RegExp(`^(?:localhost|${label}(?:\\.${label})+|\\*\\.${label}\\.${label}(?:\\.${label})*)(?::${port})?$`, "u")));
6576
- var NetworkHostScope = Union([Struct({ teamId: Id }), Struct({ repoBindingId: Id })]);
6577
- var NetworkHostSummary = Struct({
6578
- host: NetworkHost,
6579
- teamId: optionalKey(Id),
6580
- repoBindingId: optionalKey(Id),
6581
- addedByActorType: ActorType,
6582
- addedByActorId: String4,
6583
- addedAt: Timestamp
6584
- });
6585
- var NetworkHostList = Struct({ items: ArraySchema(NetworkHostSummary) });
6586
- var NetworkHostQuery = Struct({
6587
- teamId: optionalKey(Id),
6588
- repoBindingId: optionalKey(Id)
6589
- });
6590
-
6591
6591
  // packages/core/src/test-report.ts
6592
6592
  var isTestReportName = (name) => /junit.*\.xml$/iu.test(name);
6593
6593
  var maxSkippedTests = 1e4;
@@ -6935,7 +6935,8 @@ var RunnerProblemCodes = [
6935
6935
  "herdr_core_missing",
6936
6936
  "update_failed",
6937
6937
  "processes_unreaped",
6938
- "processes_uncontained"
6938
+ "processes_uncontained",
6939
+ "full_access_refused"
6939
6940
  ];
6940
6941
  var RunnerProblemText = String4.check(isMinLength(1), isMaxLength(500));
6941
6942
  var RunnerProblemReport = Struct({
@@ -7178,6 +7179,57 @@ var RunnerCapabilities = Struct({
7178
7179
  measure: optionalKey(Boolean2),
7179
7180
  resolve: optionalKey(Boolean2)
7180
7181
  });
7182
+ var MaxRunnerConcurrency = 4;
7183
+ var PinnedImage = String4.check(isMaxLength(500), isPattern(new RegExp("^[^\\s@]+@sha256:[a-f0-9]{64}$", "u")));
7184
+ var RunnerSettings = Struct({
7185
+ concurrency: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(MaxRunnerConcurrency)),
7186
+ sandbox: RunnerExecutionBackend,
7187
+ dockerImage: NullOr(PinnedImage),
7188
+ checkHosts: ArraySchema(NetworkHost).check(isMaxLength(50)),
7189
+ checkDockerImage: NullOr(PinnedImage),
7190
+ checkRegistryImage: NullOr(PinnedImage)
7191
+ });
7192
+ var RunnerSettingNames = [
7193
+ "concurrency",
7194
+ "sandbox",
7195
+ "dockerImage",
7196
+ "checkHosts",
7197
+ "checkDockerImage",
7198
+ "checkRegistryImage"
7199
+ ];
7200
+ var RunnerSettingsUpdate = Struct({
7201
+ concurrency: optionalKey(RunnerSettings.fields.concurrency),
7202
+ sandbox: optionalKey(RunnerSettings.fields.sandbox),
7203
+ dockerImage: optionalKey(RunnerSettings.fields.dockerImage),
7204
+ checkHosts: optionalKey(RunnerSettings.fields.checkHosts),
7205
+ checkDockerImage: optionalKey(RunnerSettings.fields.checkDockerImage),
7206
+ checkRegistryImage: optionalKey(RunnerSettings.fields.checkRegistryImage)
7207
+ });
7208
+ var RunnerAppliedSettings = Struct({
7209
+ ...RunnerSettings.fields,
7210
+ fullAccessAllowed: Boolean2
7211
+ });
7212
+ var defaultRunnerSettings = (personal) => ({
7213
+ concurrency: 1,
7214
+ sandbox: personal ? "srt" : "docker",
7215
+ dockerImage: null,
7216
+ checkHosts: [],
7217
+ checkDockerImage: null,
7218
+ checkRegistryImage: null
7219
+ });
7220
+ var RunnerSettingValue = Union([Finite, String4, ArraySchema(String4), Null]);
7221
+ var RunnerSettingChange = Struct({
7222
+ id: Id,
7223
+ setting: Literals(RunnerSettingNames),
7224
+ from: RunnerSettingValue,
7225
+ to: RunnerSettingValue,
7226
+ actorType: ActorType,
7227
+ actorId: String4,
7228
+ source: Literals(["person", "environment"]),
7229
+ changedAt: Timestamp
7230
+ });
7231
+ var RunnerSettingsHistory = Struct({ items: ArraySchema(RunnerSettingChange) });
7232
+ var shownRunnerSetting = (value) => Array.isArray(value) ? value.length === 0 ? "none" : value.join(",") : value === null ? "none" : String(value);
7181
7233
  var Runner = Struct({
7182
7234
  id: Id,
7183
7235
  workspaceId: Id,
@@ -7196,6 +7248,8 @@ var Runner = Struct({
7196
7248
  latestVersion: optionalKey(RunnerVersion),
7197
7249
  container: Boolean2,
7198
7250
  automaticUpdates: Boolean2,
7251
+ settings: optionalKey(RunnerSettings),
7252
+ appliedSettings: optionalKey(RunnerAppliedSettings),
7199
7253
  lastHeartbeatAt: optionalKey(Timestamp),
7200
7254
  createdByUserId: optionalKey(Id),
7201
7255
  createdAt: Timestamp,
@@ -7341,7 +7395,9 @@ var RunnerHeartbeatInput = Struct({
7341
7395
  container: optionalKey(Boolean2),
7342
7396
  problems: optionalKey(ArraySchema(RunnerProblemReport).check(isMaxLength(RunnerProblemCodes.length))),
7343
7397
  capabilities: optionalKey(RunnerCapabilities),
7344
- labels: optionalKey(ArraySchema(String4.check(isMinLength(1))).check(isMaxLength(50)))
7398
+ labels: optionalKey(ArraySchema(String4.check(isMinLength(1))).check(isMaxLength(50))),
7399
+ environmentSettings: optionalKey(RunnerSettingsUpdate),
7400
+ appliedSettings: optionalKey(RunnerAppliedSettings)
7345
7401
  });
7346
7402
  var RunnerCapabilitiesUpdate = Struct({
7347
7403
  capabilities: RunnerCapabilities,
@@ -9705,14 +9761,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
9705
9761
  return self;
9706
9762
  }
9707
9763
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
9708
- var make4 = (method) => (url, options) => modify(empty6, {
9764
+ var make5 = (method) => (url, options) => modify(empty6, {
9709
9765
  method,
9710
9766
  url,
9711
9767
  ...options ?? undefined
9712
9768
  });
9713
- var get = /* @__PURE__ */ make4("GET");
9714
- var post = /* @__PURE__ */ make4("POST");
9715
- var put = /* @__PURE__ */ make4("PUT");
9769
+ var get = /* @__PURE__ */ make5("GET");
9770
+ var post = /* @__PURE__ */ make5("POST");
9771
+ var put = /* @__PURE__ */ make5("PUT");
9716
9772
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
9717
9773
  let result = self;
9718
9774
  if (options.method) {
@@ -10013,7 +10069,7 @@ var Proto7 = {
10013
10069
  };
10014
10070
  },
10015
10071
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
10016
- return this.execute(make4(fullMethod)(url, options));
10072
+ return this.execute(make5(fullMethod)(url, options));
10017
10073
  }]))
10018
10074
  };
10019
10075
  var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
@@ -12489,6 +12545,18 @@ class KitmanEffectClient {
12489
12545
  removeRunner(runnerId) {
12490
12546
  return this.request("removeRunner", `/runners/${segment(runnerId)}`, { method: "DELETE", headers: this.headers() });
12491
12547
  }
12548
+ updateRunnerSettings(runnerId, input) {
12549
+ return this.request("updateRunnerSettings", `/runners/${segment(runnerId)}/settings`, {
12550
+ method: "PATCH",
12551
+ headers: this.headers(true),
12552
+ body: JSON.stringify(input)
12553
+ });
12554
+ }
12555
+ listRunnerSettingsHistory(runnerId) {
12556
+ return this.request("listRunnerSettingsHistory", `/runners/${segment(runnerId)}/settings/history`, {
12557
+ headers: this.headers()
12558
+ });
12559
+ }
12492
12560
  setRunnerDefaultHarness(runnerId, input) {
12493
12561
  return this.request("setRunnerDefaultHarness", `/runners/${segment(runnerId)}/default-harness`, {
12494
12562
  method: "PUT",
@@ -13620,7 +13688,7 @@ var makeProto = (options) => {
13620
13688
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
13621
13689
  return Rpc;
13622
13690
  };
13623
- var make5 = (tag, options) => {
13691
+ var make6 = (tag, options) => {
13624
13692
  const successSchema = options?.success ?? Void;
13625
13693
  const errorSchema = options?.error ?? Never;
13626
13694
  const defectSchema = options?.defect ?? Defect();
@@ -13831,7 +13899,7 @@ var RpcGroupProto = {
13831
13899
  });
13832
13900
  },
13833
13901
  annotateRpcs(service, value) {
13834
- return this.annotateRpcsMerge(make14(service, value));
13902
+ return this.annotateRpcsMerge(make15(service, value));
13835
13903
  },
13836
13904
  annotateMerge(context) {
13837
13905
  return makeProto2({
@@ -13854,7 +13922,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
13854
13922
  requests: options.requests,
13855
13923
  annotations: options.annotations
13856
13924
  });
13857
- var make6 = (...rpcs) => makeProto2({
13925
+ var make7 = (...rpcs) => makeProto2({
13858
13926
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
13859
13927
  annotations: empty3()
13860
13928
  });
@@ -13961,96 +14029,96 @@ var ProgramOutcome = Union([
13961
14029
  Struct({ status: Literal("failed"), failureSummary: String4 })
13962
14030
  ]);
13963
14031
 
13964
- class RunnerReplicaRpcs extends make6(make5("Claim", {
14032
+ class RunnerReplicaRpcs extends make7(make6("Claim", {
13965
14033
  payload: WorkUnitClaimInput,
13966
14034
  success: WorkUnitClaimResult,
13967
14035
  error: RunnerRpcError
13968
- }), make5("Heartbeat", {
14036
+ }), make6("Heartbeat", {
13969
14037
  payload: WorkUnitHeartbeatInput,
13970
14038
  success: WorkUnitHeartbeatResult,
13971
14039
  error: RunnerRpcError
13972
- }), make5("Complete", {
14040
+ }), make6("Complete", {
13973
14041
  payload: WorkUnitCompletion,
13974
14042
  error: RunnerRpcError
13975
- }), make5("Release", {
14043
+ }), make6("Release", {
13976
14044
  payload: WorkUnitReleaseInput,
13977
14045
  error: RunnerRpcError
13978
- }), make5("Signals", {
14046
+ }), make6("Signals", {
13979
14047
  payload: { runnerReplicaId: String4 },
13980
14048
  success: RunnerSignal,
13981
14049
  error: RunnerRpcError,
13982
14050
  stream: true
13983
- }), make5("ReportSteer", {
14051
+ }), make6("ReportSteer", {
13984
14052
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
13985
14053
  success: Void,
13986
14054
  error: RunnerRpcError
13987
- }), make5("AppendTranscript", {
14055
+ }), make6("AppendTranscript", {
13988
14056
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
13989
14057
  success: Void,
13990
14058
  error: RunnerRpcError
13991
- }), make5("CreateCheckpointFile", {
14059
+ }), make6("CreateCheckpointFile", {
13992
14060
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
13993
14061
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
13994
14062
  error: Union([RunnerRpcError, RunFileRefused])
13995
- }), make5("CheckpointFileParts", {
14063
+ }), make6("CheckpointFileParts", {
13996
14064
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
13997
14065
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
13998
14066
  error: RunnerRpcError
13999
- }), make5("CompleteCheckpointFile", {
14067
+ }), make6("CompleteCheckpointFile", {
14000
14068
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14001
14069
  success: RunFileRecord,
14002
14070
  error: RunnerRpcError
14003
- }), make5("SaveCheckpoint", {
14071
+ }), make6("SaveCheckpoint", {
14004
14072
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
14005
14073
  success: Void,
14006
14074
  error: RunnerRpcError
14007
- }), make5("ResumeCheckpoint", {
14075
+ }), make6("ResumeCheckpoint", {
14008
14076
  payload: { lease: ProgramLease },
14009
14077
  success: UndefinedOr(ResumedCheckpoint),
14010
14078
  error: RunnerRpcError
14011
- }), make5("SettledCheckpoints", {
14079
+ }), make6("SettledCheckpoints", {
14012
14080
  success: ArraySchema(Struct({
14013
14081
  stepAttemptId: String4,
14014
14082
  ref: optionalKey(String4),
14015
14083
  repoBinding: optionalKey(WorkUnitRepoBinding)
14016
14084
  })),
14017
14085
  error: RunnerRpcError
14018
- }), make5("ForgetCheckpoints", {
14086
+ }), make6("ForgetCheckpoints", {
14019
14087
  payload: { stepAttemptIds: ArraySchema(String4) },
14020
14088
  success: Void,
14021
14089
  error: RunnerRpcError
14022
- }), make5("GitCredential", {
14090
+ }), make6("GitCredential", {
14023
14091
  payload: { repoBindingId: String4 },
14024
14092
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
14025
14093
  error: RunnerRpcError
14026
- }), make5("Bundle", {
14094
+ }), make6("Bundle", {
14027
14095
  payload: { digest: String4 },
14028
14096
  success: Struct({ bundle: String4 }),
14029
14097
  error: RunnerRpcError
14030
- }), make5("SettledRuns", {
14098
+ }), make6("SettledRuns", {
14031
14099
  payload: { runIds: ArraySchema(String4) },
14032
14100
  success: ArraySchema(String4),
14033
14101
  error: RunnerRpcError
14034
- }), make5("KnownEvidence", {
14102
+ }), make6("KnownEvidence", {
14035
14103
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
14036
14104
  success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
14037
14105
  error: RunnerRpcError
14038
14106
  })).middleware(RunnerAuthentication) {
14039
14107
  }
14040
14108
 
14041
- class RunnerJournalRpcs extends make6(make5("RecordActivity", {
14109
+ class RunnerJournalRpcs extends make7(make6("RecordActivity", {
14042
14110
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
14043
14111
  error: RunnerRpcError
14044
- }), make5("DeferredDone", {
14112
+ }), make6("DeferredDone", {
14045
14113
  payload: { lease: ProgramLease, name: String4, exit: Json },
14046
14114
  error: RunnerRpcError
14047
- }), make5("ScheduleClock", {
14115
+ }), make6("ScheduleClock", {
14048
14116
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
14049
14117
  error: RunnerRpcError
14050
- }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
14118
+ }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
14051
14119
  }
14052
14120
 
14053
- class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14121
+ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14054
14122
  payload: {
14055
14123
  lease: ProgramLease,
14056
14124
  step: String4,
@@ -14069,7 +14137,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14069
14137
  },
14070
14138
  success: Struct({ questionId: String4 }),
14071
14139
  error: RunnerRpcError
14072
- }), make5("StartAgentStep", {
14140
+ }), make6("StartAgentStep", {
14073
14141
  payload: {
14074
14142
  lease: ProgramLease,
14075
14143
  step: String4,
@@ -14085,7 +14153,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14085
14153
  },
14086
14154
  success: Struct({ stepAttemptId: String4 }),
14087
14155
  error: RunnerRpcError
14088
- }), make5("StartVerification", {
14156
+ }), make6("StartVerification", {
14089
14157
  payload: {
14090
14158
  lease: ProgramLease,
14091
14159
  step: String4,
@@ -14104,7 +14172,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14104
14172
  },
14105
14173
  success: Struct({ verificationId: String4 }),
14106
14174
  error: RunnerRpcError
14107
- }), make5("AwaitEvent", {
14175
+ }), make6("AwaitEvent", {
14108
14176
  payload: {
14109
14177
  lease: ProgramLease,
14110
14178
  step: String4,
@@ -14120,7 +14188,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14120
14188
  })))
14121
14189
  },
14122
14190
  error: RunnerRpcError
14123
- }), make5("ClaimResource", {
14191
+ }), make6("ClaimResource", {
14124
14192
  payload: {
14125
14193
  lease: ProgramLease,
14126
14194
  step: String4,
@@ -14129,7 +14197,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14129
14197
  action: Literals(["claim", "take_over", "let_go"])
14130
14198
  },
14131
14199
  error: RunnerRpcError
14132
- }), make5("AdmitChild", {
14200
+ }), make6("AdmitChild", {
14133
14201
  payload: {
14134
14202
  lease: ProgramLease,
14135
14203
  step: String4,
@@ -14140,7 +14208,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14140
14208
  },
14141
14209
  success: Struct({ runId: String4 }),
14142
14210
  error: RunnerRpcError
14143
- }), make5("StoreArtifact", {
14211
+ }), make6("StoreArtifact", {
14144
14212
  payload: {
14145
14213
  lease: ProgramLease,
14146
14214
  step: String4,
@@ -14152,7 +14220,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14152
14220
  },
14153
14221
  success: Struct({ artifactId: String4 }),
14154
14222
  error: RunnerRpcError
14155
- }), make5("RecordNote", {
14223
+ }), make6("RecordNote", {
14156
14224
  payload: {
14157
14225
  lease: ProgramLease,
14158
14226
  step: String4,
@@ -14161,7 +14229,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14161
14229
  kind: optional(Literals(["note", "blocker"]))
14162
14230
  },
14163
14231
  error: RunnerRpcError
14164
- }), make5("PerformHostEffect", {
14232
+ }), make6("PerformHostEffect", {
14165
14233
  payload: {
14166
14234
  lease: ProgramLease,
14167
14235
  step: String4,
@@ -14189,7 +14257,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14189
14257
  },
14190
14258
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
14191
14259
  error: RunnerRpcError
14192
- }), make5("AlertTask", {
14260
+ }), make6("AlertTask", {
14193
14261
  payload: {
14194
14262
  lease: ProgramLease,
14195
14263
  step: String4,
@@ -14206,7 +14274,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14206
14274
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
14207
14275
  }),
14208
14276
  error: RunnerRpcError
14209
- }), make5("ReadTranscripts", {
14277
+ }), make6("ReadTranscripts", {
14210
14278
  payload: { lease: ProgramLease, step: String4, days: Int, teamId: optionalKey(String4) },
14211
14279
  success: Struct({
14212
14280
  runs: ArraySchema(Struct({
@@ -14234,7 +14302,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14234
14302
  })))
14235
14303
  }),
14236
14304
  error: RunnerRpcError
14237
- }), make5("PipelineStatus", {
14305
+ }), make6("PipelineStatus", {
14238
14306
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14239
14307
  success: Struct({
14240
14308
  head: String4,
@@ -14250,6 +14318,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14250
14318
  runnerChecks: optionalKey(ArraySchema(String4)),
14251
14319
  approved: optionalKey(String4),
14252
14320
  repository: optionalKey(String4),
14321
+ sourceBranch: optionalKey(String4),
14253
14322
  targetBranch: optionalKey(String4),
14254
14323
  conflicts: optionalKey(Boolean2),
14255
14324
  needsRebase: optionalKey(Boolean2),
@@ -14265,11 +14334,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14265
14334
  }))
14266
14335
  }),
14267
14336
  error: RunnerRpcError
14268
- }), make5("ReportPipeline", {
14337
+ }), make6("ReportPipeline", {
14269
14338
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
14270
14339
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
14271
14340
  error: RunnerRpcError
14272
- }), make5("ReviewThreads", {
14341
+ }), make6("ReviewThreads", {
14273
14342
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14274
14343
  success: Struct({
14275
14344
  threads: ArraySchema(Struct({
@@ -14281,7 +14350,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14281
14350
  }))
14282
14351
  }),
14283
14352
  error: RunnerRpcError
14284
- }), make5("OpenChangeRequests", {
14353
+ }), make6("OpenChangeRequests", {
14285
14354
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
14286
14355
  success: Struct({
14287
14356
  changeRequests: ArraySchema(Struct({
@@ -14295,7 +14364,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14295
14364
  }))
14296
14365
  }),
14297
14366
  error: RunnerRpcError
14298
- }), make5("OwnChangeRequests", {
14367
+ }), make6("OwnChangeRequests", {
14299
14368
  payload: { lease: ProgramLease, step: String4 },
14300
14369
  success: Struct({
14301
14370
  changeRequests: ArraySchema(Struct({
@@ -14308,7 +14377,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14308
14377
  }))
14309
14378
  }),
14310
14379
  error: RunnerRpcError
14311
- }), make5("Propose", {
14380
+ }), make6("Propose", {
14312
14381
  payload: {
14313
14382
  lease: ProgramLease,
14314
14383
  step: String4,
@@ -14336,7 +14405,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14336
14405
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
14337
14406
  }),
14338
14407
  error: RunnerRpcError
14339
- }), make5("ReadProject", {
14408
+ }), make6("ReadProject", {
14340
14409
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
14341
14410
  success: Struct({
14342
14411
  project: Struct({ id: String4, name: String4 }),
@@ -14359,7 +14428,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14359
14428
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
14360
14429
  }),
14361
14430
  error: RunnerRpcError
14362
- }), make5("DraftUpdate", {
14431
+ }), make6("DraftUpdate", {
14363
14432
  payload: {
14364
14433
  lease: ProgramLease,
14365
14434
  step: String4,
@@ -14374,7 +14443,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14374
14443
  },
14375
14444
  success: Struct({ id: String4 }),
14376
14445
  error: RunnerRpcError
14377
- }), make5("CreatePlanTasks", {
14446
+ }), make6("CreatePlanTasks", {
14378
14447
  payload: {
14379
14448
  lease: ProgramLease,
14380
14449
  projectId: optionalKey(String4),
@@ -14389,11 +14458,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14389
14458
  },
14390
14459
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
14391
14460
  error: RunnerRpcError
14392
- }), make5("IntegrationBranch", {
14461
+ }), make6("IntegrationBranch", {
14393
14462
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
14394
14463
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14395
14464
  error: RunnerRpcError
14396
- }), make5("MergeChangeRequest", {
14465
+ }), make6("MergeChangeRequest", {
14397
14466
  payload: {
14398
14467
  lease: ProgramLease,
14399
14468
  step: String4,
@@ -14406,7 +14475,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14406
14475
  Struct({ status: Literal("moved"), head: String4 })
14407
14476
  ]),
14408
14477
  error: RunnerRpcError
14409
- }), make5("ApproveChangeRequest", {
14478
+ }), make6("ApproveChangeRequest", {
14410
14479
  payload: {
14411
14480
  lease: ProgramLease,
14412
14481
  step: String4,
@@ -14421,7 +14490,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14421
14490
  Struct({ approved: Literal(false), reason: String4 })
14422
14491
  ]),
14423
14492
  error: RunnerRpcError
14424
- }), make5("CloseChangeRequest", {
14493
+ }), make6("CloseChangeRequest", {
14425
14494
  payload: {
14426
14495
  lease: ProgramLease,
14427
14496
  step: String4,
@@ -14431,7 +14500,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14431
14500
  },
14432
14501
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
14433
14502
  error: RunnerRpcError
14434
- }), make5("RerunPipeline", {
14503
+ }), make6("RerunPipeline", {
14435
14504
  payload: {
14436
14505
  lease: ProgramLease,
14437
14506
  step: String4,
@@ -14441,7 +14510,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14441
14510
  },
14442
14511
  success: Struct({ head: String4, pipelines: Int }),
14443
14512
  error: RunnerRpcError
14444
- }), make5("PublishRelease", {
14513
+ }), make6("PublishRelease", {
14445
14514
  payload: {
14446
14515
  lease: ProgramLease,
14447
14516
  step: String4,
@@ -14452,14 +14521,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14452
14521
  },
14453
14522
  success: Struct({ tag: String4, revision: String4, url: String4 }),
14454
14523
  error: RunnerRpcError
14455
- }), make5("ProgramSecrets", {
14524
+ }), make6("ProgramSecrets", {
14456
14525
  payload: { lease: ProgramLease },
14457
14526
  success: Record(String4, String4),
14458
14527
  error: RunnerRpcError
14459
14528
  })).middleware(RunnerAuthentication) {
14460
14529
  }
14461
14530
 
14462
- class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14531
+ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14463
14532
  payload: {
14464
14533
  lease: ProgramLease,
14465
14534
  step: String4,
@@ -14471,11 +14540,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14471
14540
  },
14472
14541
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14473
14542
  error: Union([RunnerRpcError, RunFileRefused])
14474
- }), make5("RunFileParts", {
14543
+ }), make6("RunFileParts", {
14475
14544
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14476
14545
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14477
14546
  error: RunnerRpcError
14478
- }), make5("CompleteRunFile", {
14547
+ }), make6("CompleteRunFile", {
14479
14548
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14480
14549
  success: RunFileRecord,
14481
14550
  error: RunnerRpcError
@@ -14564,7 +14633,7 @@ function toStoredSession(token, existingRefreshToken) {
14564
14633
  }
14565
14634
  function startLoopbackServer(input) {
14566
14635
  return gen(function* () {
14567
- const code = yield* make15();
14636
+ const code = yield* make16();
14568
14637
  const context2 = yield* context();
14569
14638
  const runSyncExit = runSyncExitWith(context2);
14570
14639
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15104,7 +15173,7 @@ var openConnection = (transport) => gen(function* () {
15104
15173
  let lastId = 0;
15105
15174
  let lost = false;
15106
15175
  const notifications = yield* unbounded2();
15107
- const ended = yield* make15();
15176
+ const ended = yield* make16();
15108
15177
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15109
15178
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15110
15179
  onNone: () => void_3,
@@ -15131,7 +15200,7 @@ var openConnection = (transport) => gen(function* () {
15131
15200
  if (lost)
15132
15201
  return yield* new HerdrCoreConnectionLost2({ method });
15133
15202
  const id = ++lastId;
15134
- const deferred = yield* make15();
15203
+ const deferred = yield* make16();
15135
15204
  pending.set(id, { method, deferred });
15136
15205
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15137
15206
  return yield* _await(deferred);
@@ -15205,14 +15274,14 @@ var herdrCoreOver = (transport) => ({
15205
15274
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15206
15275
  };
15207
15276
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15208
- return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15277
+ return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15209
15278
  }))
15210
15279
  });
15211
15280
  var spawnedTransport = (env) => gen(function* () {
15212
15281
  const spawner = yield* ChildProcessSpawner;
15213
15282
  const input = yield* unbounded2();
15214
15283
  const encoder = new TextEncoder;
15215
- const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
15284
+ const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
15216
15285
  extendEnv: false,
15217
15286
  env,
15218
15287
  stdin: fromQueue(input),
@@ -15243,7 +15312,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
15243
15312
  const spawner = yield* ChildProcessSpawner;
15244
15313
  const env = coreEnv(options);
15245
15314
  const run = (args) => gen(function* () {
15246
- const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15315
+ const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15247
15316
  const [stdout, stderr, exitCode] = yield* all3([
15248
15317
  mkString(decodeText(handle.stdout)),
15249
15318
  mkString(decodeText(handle.stderr)),
@@ -15269,7 +15338,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
15269
15338
  }
15270
15339
  var runCommand2 = (command, args, options = {}) => gen(function* () {
15271
15340
  const spawner = yield* ChildProcessSpawner;
15272
- const handle = yield* spawner.spawn(make2(command, args, {
15341
+ const handle = yield* spawner.spawn(make3(command, args, {
15273
15342
  stdin: "ignore",
15274
15343
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15275
15344
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -15295,8 +15364,8 @@ var shellOutputTailChars2 = 64 * 1024;
15295
15364
  var runProcess2 = (argv, options) => gen(function* () {
15296
15365
  const spawner = yield* ChildProcessSpawner;
15297
15366
  const [command, ...args] = argv;
15298
- const handle = yield* spawner.spawn(make2(command, args, {
15299
- stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15367
+ const handle = yield* spawner.spawn(make3(command, args, {
15368
+ stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15300
15369
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15301
15370
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15302
15371
  }));
@@ -15621,7 +15690,7 @@ var launchableHarnesses = (input) => {
15621
15690
  ...input.harnesses.unavailable,
15622
15691
  ...refused.map((harness) => ({
15623
15692
  harness,
15624
- missing: [`${harness} cannot run in srt yet; set KITMAN_RUNNER_SANDBOX to docker or host to offer it`]
15693
+ missing: [`${harness} cannot run in srt yet; set the Runner's sandbox to docker or host to offer it`]
15625
15694
  }))
15626
15695
  ]
15627
15696
  };
@@ -15719,4 +15788,4 @@ function checkServices(declaration) {
15719
15788
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15720
15789
  }
15721
15790
 
15722
- 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 };
15791
+ export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };