@kitman-sh/cli 0.43.0 → 0.45.0

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 (28) hide show
  1. package/dist/{chunk-8b02x7vv.js → chunk-04wqa07j.js} +1 -1
  2. package/dist/{chunk-27e7m975.js → chunk-0dfg674z.js} +7 -7
  3. package/dist/{chunk-ea29sbaq.js → chunk-4vxbxjf8.js} +1 -1
  4. package/dist/{chunk-91tvnb8f.js → chunk-5gbt1vhm.js} +9 -9
  5. package/dist/{chunk-d4vhrja4.js → chunk-5pjbxhxy.js} +3 -3
  6. package/dist/{chunk-etrfc5cn.js → chunk-5smh4dp2.js} +35 -32
  7. package/dist/{chunk-0qfaf9h3.js → chunk-69y8j7fs.js} +140 -138
  8. package/dist/{chunk-cnryphhh.js → chunk-8gkrs473.js} +7 -7
  9. package/dist/{chunk-b2btevxm.js → chunk-9qvgbp6k.js} +60 -46
  10. package/dist/{chunk-98azvx6g.js → chunk-9ykh05hz.js} +1 -1
  11. package/dist/{chunk-ns26fbmk.js → chunk-a71b15k3.js} +2 -2
  12. package/dist/{chunk-fekh3jwz.js → chunk-e3dv8hzy.js} +1 -1
  13. package/dist/{chunk-7ygg19wj.js → chunk-es6rnmyw.js} +3 -3
  14. package/dist/{chunk-qxpwkb5f.js → chunk-f957cxrx.js} +7 -7
  15. package/dist/{chunk-bbq7q5r6.js → chunk-fmvdwf5h.js} +69 -49
  16. package/dist/{chunk-6x08g7m6.js → chunk-fqh4pj6b.js} +14 -60
  17. package/dist/{chunk-fbddgx6q.js → chunk-g26y214g.js} +4 -4
  18. package/dist/{chunk-bqbfyqx6.js → chunk-k462v2v7.js} +103 -51
  19. package/dist/{chunk-qqc567gx.js → chunk-k7eh8tac.js} +4 -4
  20. package/dist/{chunk-wy6gmtd9.js → chunk-n3jpxd14.js} +2 -2
  21. package/dist/{chunk-rbt72xjw.js → chunk-qzwsh96c.js} +22 -3
  22. package/dist/{chunk-hgvft7vy.js → chunk-tfwgeqx5.js} +4 -4
  23. package/dist/{chunk-bqebfc06.js → chunk-tqv14b4c.js} +12 -12
  24. package/dist/{chunk-jq5h43a4.js → chunk-tx9aey19.js} +287 -59
  25. package/dist/{chunk-wv8kt4rb.js → chunk-yyz9xrc1.js} +6 -6
  26. package/dist/{chunk-jvwjreb0.js → chunk-zx86g3dw.js} +7 -7
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make14,
41
+ make13,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -57,8 +57,8 @@ import {
57
57
  flatMap,
58
58
  Service2,
59
59
  makeUnsafe4,
60
- empty3,
61
- make15,
60
+ empty4,
61
+ make14,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
@@ -89,7 +89,7 @@ import {
89
89
  fail4,
90
90
  isSuccess2,
91
91
  makeUnsafe5,
92
- make16,
92
+ make15,
93
93
  _await,
94
94
  fail5,
95
95
  isDone,
@@ -192,6 +192,9 @@ import {
192
192
  logError,
193
193
  effectify,
194
194
  decode,
195
+ isRedacted,
196
+ make16,
197
+ value,
195
198
  defaultParseOptions,
196
199
  omit,
197
200
  map10,
@@ -262,7 +265,7 @@ import {
262
265
  decodeJsonStringOption,
263
266
  encodeJsonStringSync,
264
267
  encodePrettyJsonString
265
- } from "./chunk-bqbfyqx6.js";
268
+ } from "./chunk-k462v2v7.js";
266
269
  import {
267
270
  map,
268
271
  makeEquivalence,
@@ -273,8 +276,8 @@ import {
273
276
  systemError,
274
277
  badArgument,
275
278
  makeUnsafe2,
279
+ make7,
276
280
  make8,
277
- make9,
278
281
  sliding,
279
282
  unbounded2,
280
283
  offer,
@@ -290,13 +293,13 @@ import {
290
293
  isSink,
291
294
  fromChannel,
292
295
  drain,
293
- make10,
296
+ make9,
294
297
  get3,
295
298
  isStream,
296
299
  fromChannel2,
297
300
  callback,
298
- empty2,
299
- make11,
301
+ empty3,
302
+ make10,
300
303
  suspend,
301
304
  fail2,
302
305
  fromQueue,
@@ -322,31 +325,28 @@ import {
322
325
  mkArrayBuffer,
323
326
  toReadableStreamEffect,
324
327
  FileSystem,
325
- make12,
328
+ make11,
326
329
  FileTypeId,
327
330
  WatchBackend,
328
331
  Path,
329
- make13,
332
+ make12,
330
333
  option,
331
334
  String2,
332
335
  optionalEnv,
333
336
  harnessesUnsupportedInSrt2,
334
337
  harnessesUnsupportedInDocker2
335
- } from "./chunk-etrfc5cn.js";
338
+ } from "./chunk-5smh4dp2.js";
336
339
  import {
337
- isRedacted,
338
- make,
339
- value,
340
340
  ExitCode,
341
341
  ProcessId,
342
342
  makeHandle,
343
- make2,
343
+ make,
344
344
  ChildProcessSpawner,
345
345
  display,
346
- make3,
346
+ make2,
347
347
  parseFdName,
348
348
  fdName
349
- } from "./chunk-6x08g7m6.js";
349
+ } from "./chunk-fqh4pj6b.js";
350
350
  import {
351
351
  isDateTime,
352
352
  Numeric,
@@ -359,7 +359,7 @@ import {
359
359
  SecretScope,
360
360
  SecretHosts,
361
361
  isSecretReference
362
- } from "./chunk-ea29sbaq.js";
362
+ } from "./chunk-4vxbxjf8.js";
363
363
 
364
364
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
365
365
  var makeEquivalence3 = Tuple;
@@ -518,7 +518,7 @@ var makeUnsafe6 = (input) => {
518
518
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
519
519
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
520
520
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
521
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
521
+ var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
522
522
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
523
523
  var nowUnsafe = () => makeUtc(Date.now());
524
524
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -908,7 +908,7 @@ var toNumber = (b) => {
908
908
 
909
909
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
910
910
  var makeUnsafe = makeUnsafe6;
911
- var make18 = make4;
911
+ var make18 = make3;
912
912
  var now2 = now;
913
913
  var nowUnsafe2 = nowUnsafe;
914
914
  var toDateUtc2 = toDateUtc;
@@ -1123,7 +1123,7 @@ var readableToPullUnsafe = (options) => {
1123
1123
  const readable = options.readable;
1124
1124
  const chunkSize = options.chunkSize ?? 4096;
1125
1125
  const closeOnDone = options.closeOnDone ?? true;
1126
- const exit = options.exit ?? make8(undefined);
1126
+ const exit = options.exit ?? make7(undefined);
1127
1127
  const latch = options.latch ?? makeUnsafe2(false);
1128
1128
  function onReadable() {
1129
1129
  latch.openUnsafe();
@@ -1339,7 +1339,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1339
1339
  if (additionalFds.length === 0) {
1340
1340
  return {
1341
1341
  getInputFd: () => drain,
1342
- getOutputFd: () => empty2
1342
+ getOutputFd: () => empty3
1343
1343
  };
1344
1344
  }
1345
1345
  const inputSinks = new Map;
@@ -1362,7 +1362,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1362
1362
  return void_3;
1363
1363
  });
1364
1364
  const setupOutput = (fd, nodeStream, sink) => {
1365
- let stream = empty2;
1365
+ let stream = empty3;
1366
1366
  if (nodeStream && "read" in nodeStream) {
1367
1367
  const passThrough = new PassThrough;
1368
1368
  let error = undefined;
@@ -1408,7 +1408,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1408
1408
  }
1409
1409
  return {
1410
1410
  getInputFd: (fd) => inputSinks.get(fd) ?? drain,
1411
- getOutputFd: (fd) => outputStreams.get(fd) ?? empty2
1411
+ getOutputFd: (fd) => outputStreams.get(fd) ?? empty3
1412
1412
  };
1413
1413
  });
1414
1414
  const setupChildStdin = (command, childProcess, config, inputFailure) => suspend3(() => {
@@ -1436,7 +1436,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1436
1436
  evaluate: () => passThrough,
1437
1437
  onError: (error) => toPlatformError("fromReadable(stdout)", toError(error), command)
1438
1438
  });
1439
- })() : empty2;
1439
+ })() : empty3;
1440
1440
  let stderr = childProcess.stderr ? (() => {
1441
1441
  const passThrough = new PassThrough;
1442
1442
  childProcess.stderr.on("error", (error) => passThrough.destroy(error));
@@ -1445,7 +1445,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1445
1445
  evaluate: () => passThrough,
1446
1446
  onError: (error) => toPlatformError("fromReadable(stderr)", toError(error), command)
1447
1447
  });
1448
- })() : empty2;
1448
+ })() : empty3;
1449
1449
  if (isSink(stdoutConfig.stream)) {
1450
1450
  stdout = transduce(stdout, stdoutConfig.stream);
1451
1451
  }
@@ -1687,7 +1687,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1687
1687
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1688
1688
  const toOption = options.to ?? "stdin";
1689
1689
  if (toOption === "stdin") {
1690
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1690
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1691
1691
  ...command.options,
1692
1692
  stdin: {
1693
1693
  ...stdinConfig,
@@ -1707,7 +1707,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1707
1707
  type: "input",
1708
1708
  stream: sourceStream
1709
1709
  };
1710
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1710
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1711
1711
  ...command.options,
1712
1712
  additionalFds: {
1713
1713
  ...existingFds,
@@ -1715,7 +1715,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1715
1715
  }
1716
1716
  })));
1717
1717
  } else {
1718
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1718
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1719
1719
  ...command.options,
1720
1720
  stdin: {
1721
1721
  ...stdinConfig,
@@ -1754,7 +1754,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1754
1754
  }
1755
1755
  }
1756
1756
  });
1757
- return make2(spawnCommand);
1757
+ return make(spawnCommand);
1758
1758
  });
1759
1759
  var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1760
1760
  var flattenCommand = (command) => {
@@ -2240,7 +2240,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2240
2240
  resume(fail7(handleBadArgument("writeFile")(err)));
2241
2241
  }
2242
2242
  });
2243
- var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2243
+ var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2244
2244
  access: access2,
2245
2245
  chmod: chmod2,
2246
2246
  chown: chown2,
@@ -2300,15 +2300,15 @@ var fileUrlOps = (windows) => ({
2300
2300
  })
2301
2301
  })
2302
2302
  });
2303
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2303
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2304
2304
  ...NodePath.posix,
2305
2305
  .../* @__PURE__ */ fileUrlOps(false)
2306
2306
  }));
2307
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2307
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2308
2308
  ...NodePath.win32,
2309
2309
  .../* @__PURE__ */ fileUrlOps(true)
2310
2310
  }));
2311
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2311
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2312
2312
  ...NodePath,
2313
2313
  .../* @__PURE__ */ fileUrlOps(undefined)
2314
2314
  }));
@@ -2835,12 +2835,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2835
2835
  if (typeof key === "string") {
2836
2836
  const k = key.toLowerCase();
2837
2837
  if (k in self) {
2838
- out[k] = make(self[k]);
2838
+ out[k] = make16(self[k]);
2839
2839
  }
2840
2840
  } else {
2841
2841
  for (const name in self) {
2842
2842
  if (name.search(key) !== -1) {
2843
- out[name] = make(self[name]);
2843
+ out[name] = make16(self[name]);
2844
2844
  }
2845
2845
  }
2846
2846
  }
@@ -2947,9 +2947,9 @@ var fromInputNested = (input) => {
2947
2947
  return out;
2948
2948
  };
2949
2949
  var coerce = (value) => isRedacted(value) ? value : String(value);
2950
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
2950
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2951
2951
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2952
- var empty4 = /* @__PURE__ */ make23([]);
2952
+ var empty2 = /* @__PURE__ */ make23([]);
2953
2953
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2954
2954
  const params = fromInput2(input).params.slice();
2955
2955
  const keys = new Set;
@@ -2966,7 +2966,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2966
2966
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2967
2967
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2968
2968
  const patterns = Array.isArray(key) ? key : [key];
2969
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2969
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
2970
2970
  });
2971
2971
  var isRedactedName2 = isRedactedName;
2972
2972
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3017,7 +3017,7 @@ var decodeQueryKey = (key) => {
3017
3017
  return key;
3018
3018
  }
3019
3019
  };
3020
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3020
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty4(), CurrentRedactedNames2);
3021
3021
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3022
3022
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3023
3023
  });
@@ -3042,7 +3042,7 @@ import * as readline from "readline";
3042
3042
  var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3043
3043
  const stdin = process.stdin;
3044
3044
  const stdout = process.stdout;
3045
- const lines = yield* make9();
3045
+ const lines = yield* make8();
3046
3046
  let inputEnded = stdin.readableEnded;
3047
3047
  let readlineActive = false;
3048
3048
  const onStdinEnd = () => {
@@ -3053,7 +3053,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3053
3053
  };
3054
3054
  stdin.once("end", onStdinEnd);
3055
3055
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3056
- const rlRef = yield* make10({
3056
+ const rlRef = yield* make9({
3057
3057
  acquire: acquireRelease(sync2(() => {
3058
3058
  const rl = readline.createInterface({
3059
3059
  input: stdin,
@@ -3092,7 +3092,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3092
3092
  if (stdin.isTTY)
3093
3093
  stdin.setRawMode(enabled);
3094
3094
  });
3095
- const rawModeRef = yield* make10({
3095
+ const rawModeRef = yield* make9({
3096
3096
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3097
3097
  idleTimeToLive: "10 millis"
3098
3098
  });
@@ -3113,7 +3113,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3113
3113
  return queue;
3114
3114
  });
3115
3115
  const readInput = gen(function* () {
3116
- const queue = yield* make9();
3116
+ const queue = yield* make8();
3117
3117
  const handleKeypress = (s, k) => {
3118
3118
  const userInput = {
3119
3119
  input: fromUndefinedOr(s),
@@ -7995,7 +7995,8 @@ var WorkUnitClaimInput = Struct({
7995
7995
  capacitySlot: String4.check(isMinLength(1), isMaxLength(240)),
7996
7996
  idempotencyKey: String4.check(isMinLength(1), isMaxLength(240)),
7997
7997
  leaseDurationSeconds: optionalKey(Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(3600))),
7998
- takesVerifications: optionalKey(Boolean2)
7998
+ takesVerifications: optionalKey(Boolean2),
7999
+ heldOnly: optionalKey(Boolean2)
7999
8000
  });
8000
8001
  var WorkUnitHeartbeatInput = Struct({
8001
8002
  workUnitId: Id,
@@ -8378,16 +8379,15 @@ var RunnerCapabilities = Struct({
8378
8379
  versions: optionalKey(Boolean2),
8379
8380
  compare: optionalKey(Boolean2),
8380
8381
  command: optionalKey(Boolean2),
8381
- applyChange: optionalKey(Boolean2)
8382
+ applyChange: optionalKey(Boolean2),
8383
+ readsAutoSettings: optionalKey(Boolean2)
8382
8384
  });
8383
- var MaxRunnerConcurrency = 32;
8384
- var DefaultVerificationConcurrency = MaxRunnerConcurrency;
8385
8385
  var autoVerificationConcurrency = (cores) => Math.max(1, Math.ceil(cores / 3));
8386
- var verificationCap = (settings, cores) => Math.min(settings.concurrency, settings.verificationConcurrency === DefaultVerificationConcurrency && cores !== undefined ? autoVerificationConcurrency(cores) : settings.verificationConcurrency);
8386
+ var verificationCap = (settings, cores) => Math.min(settings.concurrency, settings.verificationConcurrency !== "auto" ? settings.verificationConcurrency : cores === undefined ? settings.concurrency : autoVerificationConcurrency(cores));
8387
8387
  var PinnedImage = String4.check(isMaxLength(500), isPattern(new RegExp("^[^\\s@]+@sha256:[a-f0-9]{64}$", "u")));
8388
8388
  var RunnerSettings = Struct({
8389
- concurrency: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(MaxRunnerConcurrency)),
8390
- verificationConcurrency: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(MaxRunnerConcurrency)),
8389
+ concurrency: Int.check(isGreaterThanOrEqualTo(1)),
8390
+ verificationConcurrency: Union([Literal("auto"), Int.check(isGreaterThanOrEqualTo(1))]),
8391
8391
  sandbox: RunnerExecutionBackend,
8392
8392
  dockerImage: NullOr(PinnedImage),
8393
8393
  checkHosts: ArraySchema(NetworkHost).check(isMaxLength(50)),
@@ -8414,12 +8414,12 @@ var RunnerSettingsUpdate = Struct({
8414
8414
  });
8415
8415
  var RunnerAppliedSettings = Struct({
8416
8416
  ...RunnerSettings.fields,
8417
- verificationConcurrency: optionalKey(RunnerSettings.fields.verificationConcurrency),
8417
+ verificationConcurrency: optionalKey(Int.check(isGreaterThanOrEqualTo(1))),
8418
8418
  fullAccessAllowed: Boolean2
8419
8419
  });
8420
8420
  var defaultRunnerSettings = (personal) => ({
8421
8421
  concurrency: 1,
8422
- verificationConcurrency: DefaultVerificationConcurrency,
8422
+ verificationConcurrency: "auto",
8423
8423
  sandbox: personal ? "srt" : "docker",
8424
8424
  dockerImage: null,
8425
8425
  checkHosts: [],
@@ -8613,6 +8613,7 @@ var RunnerRegistrationResult = Struct({
8613
8613
  var RunnerHeartbeatInput = Struct({
8614
8614
  version: optionalKey(RunnerVersion),
8615
8615
  container: optionalKey(Boolean2),
8616
+ readsAutoSettings: optionalKey(Literal(true)),
8616
8617
  problems: optionalKey(ArraySchema(RunnerProblemReport).check(isMaxLength(RunnerProblemCodes.length))),
8617
8618
  capabilities: optionalKey(RunnerCapabilities),
8618
8619
  labels: optionalKey(ArraySchema(String4.check(isMinLength(1))).check(isMaxLength(50))),
@@ -11145,15 +11146,15 @@ function makeWith(method, url, urlParams, hash, headers, body) {
11145
11146
  self.body = body;
11146
11147
  return self;
11147
11148
  }
11148
- var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
11149
- var make5 = (method) => (url, options) => modify(empty6, {
11149
+ var empty6 = /* @__PURE__ */ makeWith("GET", "", empty2, /* @__PURE__ */ none(), empty, empty5);
11150
+ var make4 = (method) => (url, options) => modify(empty6, {
11150
11151
  method,
11151
11152
  url,
11152
11153
  ...options ?? undefined
11153
11154
  });
11154
- var get = /* @__PURE__ */ make5("GET");
11155
- var post = /* @__PURE__ */ make5("POST");
11156
- var put = /* @__PURE__ */ make5("PUT");
11155
+ var get = /* @__PURE__ */ make4("GET");
11156
+ var post = /* @__PURE__ */ make4("POST");
11157
+ var put = /* @__PURE__ */ make4("PUT");
11157
11158
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
11158
11159
  let result = self;
11159
11160
  if (options.method) {
@@ -11454,7 +11455,7 @@ var Proto7 = {
11454
11455
  };
11455
11456
  },
11456
11457
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
11457
- return this.execute(make5(fullMethod)(url, options));
11458
+ return this.execute(make4(fullMethod)(url, options));
11458
11459
  }]))
11459
11460
  };
11460
11461
  var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
@@ -15544,7 +15545,7 @@ var makeProto = (options) => {
15544
15545
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
15545
15546
  return Rpc;
15546
15547
  };
15547
- var make6 = (tag, options) => {
15548
+ var make5 = (tag, options) => {
15548
15549
  const successSchema = options?.success ?? Void;
15549
15550
  const errorSchema = options?.error ?? Never;
15550
15551
  const defectSchema = options?.defect ?? Defect();
@@ -15564,7 +15565,7 @@ var make6 = (tag, options) => {
15564
15565
  successSchema: options?.stream ? Stream(successSchema, errorSchema) : successSchema,
15565
15566
  errorSchema: options?.stream ? Never : errorSchema,
15566
15567
  defectSchema,
15567
- annotations: empty3(),
15568
+ annotations: empty4(),
15568
15569
  middlewares: new Set
15569
15570
  });
15570
15571
  };
@@ -15755,7 +15756,7 @@ var RpcGroupProto = {
15755
15756
  });
15756
15757
  },
15757
15758
  annotateRpcs(service, value) {
15758
- return this.annotateRpcsMerge(make15(service, value));
15759
+ return this.annotateRpcsMerge(make14(service, value));
15759
15760
  },
15760
15761
  annotateMerge(context) {
15761
15762
  return makeProto2({
@@ -15778,9 +15779,9 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
15778
15779
  requests: options.requests,
15779
15780
  annotations: options.annotations
15780
15781
  });
15781
- var make7 = (...rpcs) => makeProto2({
15782
+ var make6 = (...rpcs) => makeProto2({
15782
15783
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
15783
- annotations: empty3()
15784
+ annotations: empty4()
15784
15785
  });
15785
15786
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15786
15787
  var TypeId17 = "~effect/rpc/RpcMiddleware";
@@ -15887,77 +15888,77 @@ var ProgramOutcome = Union([
15887
15888
  Struct({ status: Literal("failed"), failureSummary: String4 })
15888
15889
  ]);
15889
15890
 
15890
- class RunnerReplicaRpcs extends make7(make6("Claim", {
15891
+ class RunnerReplicaRpcs extends make6(make5("Claim", {
15891
15892
  payload: WorkUnitClaimInput,
15892
15893
  success: WorkUnitClaimResult,
15893
15894
  error: RunnerRpcError
15894
- }), make6("Heartbeat", {
15895
+ }), make5("Heartbeat", {
15895
15896
  payload: WorkUnitHeartbeatInput,
15896
15897
  success: WorkUnitHeartbeatResult,
15897
15898
  error: RunnerRpcError
15898
- }), make6("Complete", {
15899
+ }), make5("Complete", {
15899
15900
  payload: WorkUnitCompletion,
15900
15901
  error: RunnerRpcError
15901
- }), make6("Release", {
15902
+ }), make5("Release", {
15902
15903
  payload: WorkUnitReleaseInput,
15903
15904
  error: RunnerRpcError
15904
- }), make6("Signals", {
15905
+ }), make5("Signals", {
15905
15906
  payload: { runnerReplicaId: String4 },
15906
15907
  success: RunnerSignal,
15907
15908
  error: RunnerRpcError,
15908
15909
  stream: true
15909
- }), make6("ReportSteer", {
15910
+ }), make5("ReportSteer", {
15910
15911
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
15911
15912
  success: Void,
15912
15913
  error: RunnerRpcError
15913
- }), make6("AppendTranscript", {
15914
+ }), make5("AppendTranscript", {
15914
15915
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
15915
15916
  success: Void,
15916
15917
  error: RunnerRpcError
15917
- }), make6("CreateCheckpointFile", {
15918
+ }), make5("CreateCheckpointFile", {
15918
15919
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
15919
15920
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
15920
15921
  error: Union([RunnerRpcError, RunFileRefused])
15921
- }), make6("CheckpointFileParts", {
15922
+ }), make5("CheckpointFileParts", {
15922
15923
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
15923
15924
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
15924
15925
  error: RunnerRpcError
15925
- }), make6("CompleteCheckpointFile", {
15926
+ }), make5("CompleteCheckpointFile", {
15926
15927
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
15927
15928
  success: RunFileRecord,
15928
15929
  error: RunnerRpcError
15929
- }), make6("SaveCheckpoint", {
15930
+ }), make5("SaveCheckpoint", {
15930
15931
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
15931
15932
  success: Void,
15932
15933
  error: RunnerRpcError
15933
- }), make6("ResumeCheckpoint", {
15934
+ }), make5("ResumeCheckpoint", {
15934
15935
  payload: { lease: ProgramLease },
15935
15936
  success: UndefinedOr(ResumedCheckpoint),
15936
15937
  error: RunnerRpcError
15937
- }), make6("SettledCheckpoints", {
15938
+ }), make5("SettledCheckpoints", {
15938
15939
  success: ArraySchema(Struct({
15939
15940
  stepAttemptId: String4,
15940
15941
  ref: optionalKey(String4),
15941
15942
  repoBinding: optionalKey(WorkUnitRepoBinding)
15942
15943
  })),
15943
15944
  error: RunnerRpcError
15944
- }), make6("ForgetCheckpoints", {
15945
+ }), make5("ForgetCheckpoints", {
15945
15946
  payload: { stepAttemptIds: ArraySchema(String4) },
15946
15947
  success: Void,
15947
15948
  error: RunnerRpcError
15948
- }), make6("GitCredential", {
15949
+ }), make5("GitCredential", {
15949
15950
  payload: { repoBindingId: String4 },
15950
15951
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
15951
15952
  error: RunnerRpcError
15952
- }), make6("Bundle", {
15953
+ }), make5("Bundle", {
15953
15954
  payload: { digest: String4 },
15954
15955
  success: Struct({ bundle: String4 }),
15955
15956
  error: RunnerRpcError
15956
- }), make6("SettledRuns", {
15957
+ }), make5("SettledRuns", {
15957
15958
  payload: { runIds: ArraySchema(String4) },
15958
15959
  success: ArraySchema(String4),
15959
15960
  error: RunnerRpcError
15960
- }), make6("KnownEvidence", {
15961
+ }), make5("KnownEvidence", {
15961
15962
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
15962
15963
  success: ArraySchema(Struct({
15963
15964
  tree: String4,
@@ -15969,24 +15970,24 @@ class RunnerReplicaRpcs extends make7(make6("Claim", {
15969
15970
  })).middleware(RunnerAuthentication) {
15970
15971
  }
15971
15972
 
15972
- class RunnerJournalRpcs extends make7(make6("RecordActivity", {
15973
+ class RunnerJournalRpcs extends make6(make5("RecordActivity", {
15973
15974
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
15974
15975
  error: RunnerRpcError
15975
- }), make6("DeferredDone", {
15976
+ }), make5("DeferredDone", {
15976
15977
  payload: { lease: ProgramLease, name: String4, exit: Json },
15977
15978
  error: RunnerRpcError
15978
- }), make6("ScheduleClock", {
15979
+ }), make5("ScheduleClock", {
15979
15980
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
15980
15981
  error: RunnerRpcError
15981
- }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
15982
+ }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
15982
15983
  }
15983
- var RunHostStep = make6("RunHostStep", {
15984
+ var RunHostStep = make5("RunHostStep", {
15984
15985
  payload: { lease: ProgramLease, step: String4, hostStep: String4, request: Json },
15985
15986
  success: Json,
15986
15987
  error: RunnerRpcError
15987
15988
  });
15988
15989
 
15989
- class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15990
+ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
15990
15991
  payload: {
15991
15992
  lease: ProgramLease,
15992
15993
  step: String4,
@@ -16006,7 +16007,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16006
16007
  },
16007
16008
  success: Struct({ questionId: String4 }),
16008
16009
  error: RunnerRpcError
16009
- }), make6("StartAgentStep", {
16010
+ }), make5("StartAgentStep", {
16010
16011
  payload: {
16011
16012
  lease: ProgramLease,
16012
16013
  step: String4,
@@ -16023,7 +16024,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16023
16024
  },
16024
16025
  success: Struct({ stepAttemptId: String4 }),
16025
16026
  error: RunnerRpcError
16026
- }), make6("StartVerification", {
16027
+ }), make5("StartVerification", {
16027
16028
  payload: {
16028
16029
  lease: ProgramLease,
16029
16030
  step: String4,
@@ -16047,7 +16048,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16047
16048
  },
16048
16049
  success: Struct({ verificationId: String4 }),
16049
16050
  error: RunnerRpcError
16050
- }), make6("AwaitEvent", {
16051
+ }), make5("AwaitEvent", {
16051
16052
  payload: {
16052
16053
  lease: ProgramLease,
16053
16054
  step: String4,
@@ -16063,7 +16064,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16063
16064
  })))
16064
16065
  },
16065
16066
  error: RunnerRpcError
16066
- }), make6("ClaimResource", {
16067
+ }), make5("ClaimResource", {
16067
16068
  payload: {
16068
16069
  lease: ProgramLease,
16069
16070
  step: String4,
@@ -16074,7 +16075,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16074
16075
  claims: optionalKey(ArraySchema(String4))
16075
16076
  },
16076
16077
  error: RunnerRpcError
16077
- }), make6("AdmitChild", {
16078
+ }), make5("AdmitChild", {
16078
16079
  payload: {
16079
16080
  lease: ProgramLease,
16080
16081
  step: String4,
@@ -16085,7 +16086,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16085
16086
  },
16086
16087
  success: Struct({ runId: String4 }),
16087
16088
  error: RunnerRpcError
16088
- }), make6("AdmitChildById", {
16089
+ }), make5("AdmitChildById", {
16089
16090
  payload: {
16090
16091
  lease: ProgramLease,
16091
16092
  step: String4,
@@ -16096,18 +16097,18 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16096
16097
  },
16097
16098
  success: Struct({ runId: String4 }),
16098
16099
  error: RunnerRpcError
16099
- }), make6("CallableLoops", {
16100
+ }), make5("CallableLoops", {
16100
16101
  payload: { lease: ProgramLease, step: String4, taskId: optional(String4) },
16101
16102
  success: Struct({ loops: ArraySchema(CallableLoop) }),
16102
16103
  error: RunnerRpcError
16103
- }), make6("StopLaunches", {
16104
+ }), make5("StopLaunches", {
16104
16105
  payload: {
16105
16106
  lease: ProgramLease,
16106
16107
  step: String4,
16107
16108
  deferredNames: ArraySchema(String4)
16108
16109
  },
16109
16110
  error: RunnerRpcError
16110
- }), make6("StoreArtifact", {
16111
+ }), make5("StoreArtifact", {
16111
16112
  payload: {
16112
16113
  lease: ProgramLease,
16113
16114
  step: String4,
@@ -16119,7 +16120,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16119
16120
  },
16120
16121
  success: Struct({ artifactId: String4 }),
16121
16122
  error: RunnerRpcError
16122
- }), make6("RecordNote", {
16123
+ }), make5("RecordNote", {
16123
16124
  payload: {
16124
16125
  lease: ProgramLease,
16125
16126
  step: String4,
@@ -16128,7 +16129,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16128
16129
  kind: optional(Literals(["note", "blocker"]))
16129
16130
  },
16130
16131
  error: RunnerRpcError
16131
- }), make6("PerformHostEffect", {
16132
+ }), make5("PerformHostEffect", {
16132
16133
  payload: {
16133
16134
  lease: ProgramLease,
16134
16135
  step: String4,
@@ -16157,7 +16158,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16157
16158
  },
16158
16159
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
16159
16160
  error: RunnerRpcError
16160
- }), make6("AlertTask", {
16161
+ }), make5("AlertTask", {
16161
16162
  payload: {
16162
16163
  lease: ProgramLease,
16163
16164
  step: String4,
@@ -16174,7 +16175,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16174
16175
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
16175
16176
  }),
16176
16177
  error: RunnerRpcError
16177
- }), make6("ReadTranscripts", {
16178
+ }), make5("ReadTranscripts", {
16178
16179
  payload: {
16179
16180
  lease: ProgramLease,
16180
16181
  step: String4,
@@ -16209,7 +16210,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16209
16210
  })))
16210
16211
  }),
16211
16212
  error: RunnerRpcError
16212
- }), make6("PipelineStatus", {
16213
+ }), make5("PipelineStatus", {
16213
16214
  payload: {
16214
16215
  lease: ProgramLease,
16215
16216
  step: String4,
@@ -16249,11 +16250,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16249
16250
  }))
16250
16251
  }),
16251
16252
  error: RunnerRpcError
16252
- }), make6("ReportPipeline", {
16253
+ }), make5("ReportPipeline", {
16253
16254
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
16254
16255
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
16255
16256
  error: RunnerRpcError
16256
- }), make6("ReviewThreads", {
16257
+ }), make5("ReviewThreads", {
16257
16258
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
16258
16259
  success: Struct({
16259
16260
  threads: ArraySchema(Struct({
@@ -16265,7 +16266,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16265
16266
  }))
16266
16267
  }),
16267
16268
  error: RunnerRpcError
16268
- }), make6("OpenChangeRequests", {
16269
+ }), make5("OpenChangeRequests", {
16269
16270
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
16270
16271
  success: Struct({
16271
16272
  changeRequests: ArraySchema(Struct({
@@ -16279,7 +16280,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16279
16280
  }))
16280
16281
  }),
16281
16282
  error: RunnerRpcError
16282
- }), make6("OwnChangeRequests", {
16283
+ }), make5("OwnChangeRequests", {
16283
16284
  payload: { lease: ProgramLease, step: String4 },
16284
16285
  success: Struct({
16285
16286
  changeRequests: ArraySchema(Struct({
@@ -16292,7 +16293,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16292
16293
  }))
16293
16294
  }),
16294
16295
  error: RunnerRpcError
16295
- }), make6("Propose", {
16296
+ }), make5("Propose", {
16296
16297
  payload: {
16297
16298
  lease: ProgramLease,
16298
16299
  step: String4,
@@ -16321,7 +16322,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16321
16322
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
16322
16323
  }),
16323
16324
  error: RunnerRpcError
16324
- }), make6("ReadProject", {
16325
+ }), make5("ReadProject", {
16325
16326
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
16326
16327
  success: Struct({
16327
16328
  project: Struct({ id: String4, name: String4 }),
@@ -16344,7 +16345,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16344
16345
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
16345
16346
  }),
16346
16347
  error: RunnerRpcError
16347
- }), make6("DraftUpdate", {
16348
+ }), make5("DraftUpdate", {
16348
16349
  payload: {
16349
16350
  lease: ProgramLease,
16350
16351
  step: String4,
@@ -16359,7 +16360,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16359
16360
  },
16360
16361
  success: Struct({ id: String4 }),
16361
16362
  error: RunnerRpcError
16362
- }), make6("CreatePlanTasks", {
16363
+ }), make5("CreatePlanTasks", {
16363
16364
  payload: {
16364
16365
  lease: ProgramLease,
16365
16366
  projectId: optionalKey(String4),
@@ -16380,15 +16381,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16380
16381
  },
16381
16382
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
16382
16383
  error: RunnerRpcError
16383
- }), make6("IntegrationBranch", {
16384
+ }), make5("IntegrationBranch", {
16384
16385
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
16385
16386
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16386
16387
  error: RunnerRpcError
16387
- }), make6("DeliveryBase", {
16388
+ }), make5("DeliveryBase", {
16388
16389
  payload: { lease: ProgramLease },
16389
16390
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16390
16391
  error: RunnerRpcError
16391
- }), make6("Branch", {
16392
+ }), make5("Branch", {
16392
16393
  payload: {
16393
16394
  lease: ProgramLease,
16394
16395
  branch: optionalKey(String4),
@@ -16403,7 +16404,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16403
16404
  created: Boolean2
16404
16405
  }),
16405
16406
  error: RunnerRpcError
16406
- }), make6("BranchChangeRequest", {
16407
+ }), make5("BranchChangeRequest", {
16407
16408
  payload: {
16408
16409
  lease: ProgramLease,
16409
16410
  step: String4,
@@ -16426,7 +16427,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16426
16427
  Struct({ status: Literal("elsewhere"), team: String4 })
16427
16428
  ]),
16428
16429
  error: RunnerRpcError
16429
- }), make6("MergeChangeRequest", {
16430
+ }), make5("MergeChangeRequest", {
16430
16431
  payload: {
16431
16432
  lease: ProgramLease,
16432
16433
  step: String4,
@@ -16444,7 +16445,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16444
16445
  Struct({ status: Literal("moved"), head: String4 })
16445
16446
  ]),
16446
16447
  error: RunnerRpcError
16447
- }), make6("ApproveChangeRequest", {
16448
+ }), make5("ApproveChangeRequest", {
16448
16449
  payload: {
16449
16450
  lease: ProgramLease,
16450
16451
  step: String4,
@@ -16460,7 +16461,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16460
16461
  Struct({ approved: Literal(false), reason: String4 })
16461
16462
  ]),
16462
16463
  error: RunnerRpcError
16463
- }), make6("CloseChangeRequest", {
16464
+ }), make5("CloseChangeRequest", {
16464
16465
  payload: {
16465
16466
  lease: ProgramLease,
16466
16467
  step: String4,
@@ -16470,7 +16471,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16470
16471
  },
16471
16472
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
16472
16473
  error: RunnerRpcError
16473
- }), make6("RerunPipeline", {
16474
+ }), make5("RerunPipeline", {
16474
16475
  payload: {
16475
16476
  lease: ProgramLease,
16476
16477
  step: String4,
@@ -16480,7 +16481,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16480
16481
  },
16481
16482
  success: Struct({ head: String4, pipelines: Int }),
16482
16483
  error: RunnerRpcError
16483
- }), make6("PublishRelease", {
16484
+ }), make5("PublishRelease", {
16484
16485
  payload: {
16485
16486
  lease: ProgramLease,
16486
16487
  step: String4,
@@ -16494,7 +16495,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16494
16495
  },
16495
16496
  success: Struct({ tag: String4, revision: String4, url: String4 }),
16496
16497
  error: RunnerRpcError
16497
- }), make6("RecordDeploy", {
16498
+ }), make5("RecordDeploy", {
16498
16499
  payload: {
16499
16500
  lease: ProgramLease,
16500
16501
  step: String4,
@@ -16506,7 +16507,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16506
16507
  },
16507
16508
  success: Deploy,
16508
16509
  error: RunnerRpcError
16509
- }), make6("DeployTarget", {
16510
+ }), make5("DeployTarget", {
16510
16511
  payload: { lease: ProgramLease, step: String4, target: DeployTargetName },
16511
16512
  success: Struct({
16512
16513
  target: String4,
@@ -16514,14 +16515,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16514
16515
  order: optionalKey(ArraySchema(String4))
16515
16516
  }),
16516
16517
  error: RunnerRpcError
16517
- }), RunHostStep, make6("ProgramSecrets", {
16518
+ }), RunHostStep, make5("ProgramSecrets", {
16518
16519
  payload: { lease: ProgramLease },
16519
16520
  success: Record(String4, String4),
16520
16521
  error: RunnerRpcError
16521
16522
  })).middleware(RunnerAuthentication) {
16522
16523
  }
16523
16524
 
16524
- class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16525
+ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
16525
16526
  payload: {
16526
16527
  lease: ProgramLease,
16527
16528
  step: String4,
@@ -16533,11 +16534,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16533
16534
  },
16534
16535
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16535
16536
  error: Union([RunnerRpcError, RunFileRefused])
16536
- }), make6("RunFileParts", {
16537
+ }), make5("RunFileParts", {
16537
16538
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16538
16539
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16539
16540
  error: RunnerRpcError
16540
- }), make6("CompleteRunFile", {
16541
+ }), make5("CompleteRunFile", {
16541
16542
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16542
16543
  success: RunFileRecord,
16543
16544
  error: RunnerRpcError
@@ -16626,7 +16627,7 @@ function toStoredSession(token, existingRefreshToken) {
16626
16627
  }
16627
16628
  function startLoopbackServer(input) {
16628
16629
  return gen(function* () {
16629
- const code = yield* make16();
16630
+ const code = yield* make15();
16630
16631
  const context2 = yield* context();
16631
16632
  const runSyncExit = runSyncExitWith(context2);
16632
16633
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -17174,7 +17175,7 @@ var openConnection = (transport) => gen(function* () {
17174
17175
  let lastId = 0;
17175
17176
  let lost = false;
17176
17177
  const notifications = yield* unbounded2();
17177
- const ended = yield* make16();
17178
+ const ended = yield* make15();
17178
17179
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
17179
17180
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
17180
17181
  onNone: () => void_3,
@@ -17201,7 +17202,7 @@ var openConnection = (transport) => gen(function* () {
17201
17202
  if (lost)
17202
17203
  return yield* new HerdrCoreConnectionLost2({ method });
17203
17204
  const id = ++lastId;
17204
- const deferred = yield* make16();
17205
+ const deferred = yield* make15();
17205
17206
  pending.set(id, { method, deferred });
17206
17207
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
17207
17208
  return yield* _await(deferred);
@@ -17275,14 +17276,14 @@ var herdrCoreOver = (transport) => ({
17275
17276
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
17276
17277
  };
17277
17278
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
17278
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17279
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17279
17280
  }))
17280
17281
  });
17281
17282
  var spawnedTransport = (env) => gen(function* () {
17282
17283
  const spawner = yield* ChildProcessSpawner;
17283
17284
  const input = yield* unbounded2();
17284
17285
  const encoder = new TextEncoder;
17285
- const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
17286
+ const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
17286
17287
  extendEnv: false,
17287
17288
  env,
17288
17289
  stdin: fromQueue(input),
@@ -17291,7 +17292,7 @@ var spawnedTransport = (env) => gen(function* () {
17291
17292
  return {
17292
17293
  write: (line) => asVoid(offer(input, encoder.encode(`${line}
17293
17294
  `))),
17294
- lines: handle.stdout.pipe(decodeText, splitLines, catchCause(() => empty2))
17295
+ lines: handle.stdout.pipe(decodeText, splitLines, catchCause(() => empty3))
17295
17296
  };
17296
17297
  });
17297
17298
  var coreEnv = (options) => {
@@ -17313,7 +17314,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
17313
17314
  const spawner = yield* ChildProcessSpawner;
17314
17315
  const env = coreEnv(options);
17315
17316
  const run = (args) => gen(function* () {
17316
- const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17317
+ const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17317
17318
  const [stdout, stderr, exitCode] = yield* all3([
17318
17319
  mkString(decodeText(handle.stdout)),
17319
17320
  mkString(decodeText(handle.stderr)),
@@ -17339,7 +17340,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
17339
17340
  }
17340
17341
  var runCommand2 = (command, args, options = {}) => gen(function* () {
17341
17342
  const spawner = yield* ChildProcessSpawner;
17342
- const handle = yield* spawner.spawn(make3(command, args, {
17343
+ const handle = yield* spawner.spawn(make2(command, args, {
17343
17344
  stdin: "ignore",
17344
17345
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17345
17346
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -17365,8 +17366,8 @@ var shellOutputTailChars2 = 64 * 1024;
17365
17366
  var runProcess2 = (argv, options) => gen(function* () {
17366
17367
  const spawner = yield* ChildProcessSpawner;
17367
17368
  const [command, ...args] = argv;
17368
- const handle = yield* spawner.spawn(make3(command, args, {
17369
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
17369
+ const handle = yield* spawner.spawn(make2(command, args, {
17370
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17370
17371
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17371
17372
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
17372
17373
  }));
@@ -17840,7 +17841,8 @@ function herdrRunnerCapabilities2(input) {
17840
17841
  versions: true,
17841
17842
  compare: true,
17842
17843
  command: true,
17843
- applyChange: true
17844
+ applyChange: true,
17845
+ readsAutoSettings: true
17844
17846
  };
17845
17847
  }
17846
17848
  function assertHerdrRunnerCapability2(capabilities) {
@@ -17886,4 +17888,4 @@ function serviceChecks(declaration) {
17886
17888
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
17887
17889
  }
17888
17890
 
17889
- export { 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, verificationCap, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, 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, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepLogDirFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, 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, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
17891
+ export { 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, verificationCap, PinnedImage, RunnerSettings, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, 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, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepLogDirFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, 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, WorkAvailable, 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, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };