@kitman-sh/cli 0.12.0-rc.1 → 0.12.0-rc.3

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.
@@ -7,10 +7,10 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-kpfrhex3.js";
11
- import"./chunk-2qarscbj.js";
10
+ } from "./chunk-56knbdt6.js";
11
+ import"./chunk-xwya1er0.js";
12
12
  import"./chunk-c6rbt85q.js";
13
- import"./chunk-0b93nv6j.js";
13
+ import"./chunk-gspfm7qh.js";
14
14
  import"./chunk-vtfwjhzh.js";
15
15
  export {
16
16
  decoded2 as decoded,
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-kfwp70pn.js";
8
- import"./chunk-rm3vqk5d.js";
9
- import"./chunk-dc57c8s5.js";
7
+ } from "./chunk-y8sscyvt.js";
8
+ import"./chunk-794hjysw.js";
9
+ import"./chunk-dymepetx.js";
10
10
  import"./chunk-0qz10ek8.js";
11
11
  import"./chunk-c6rbt85q.js";
12
- import"./chunk-0b93nv6j.js";
12
+ import"./chunk-gspfm7qh.js";
13
13
  import"./chunk-vtfwjhzh.js";
14
14
  export {
15
15
  makeProgramRpcClient2 as makeProgramRpcClient,
@@ -1,9 +1,4 @@
1
1
  // @bun
2
- import {
3
- make11,
4
- runForEach,
5
- compiled2
6
- } from "./chunk-0b93nv6j.js";
7
2
  import {
8
3
  getOrUndefined,
9
4
  liftThrowable,
@@ -33,10 +28,15 @@ import {
33
28
  isJsonObject,
34
29
  isString
35
30
  } from "./chunk-c6rbt85q.js";
31
+ import {
32
+ make11,
33
+ runForEach,
34
+ compiled2
35
+ } from "./chunk-gspfm7qh.js";
36
36
  import {
37
37
  ChildProcessSpawner,
38
38
  make3
39
- } from "./chunk-2qarscbj.js";
39
+ } from "./chunk-xwya1er0.js";
40
40
 
41
41
  // packages/agent-runtime/src/opencode-store.ts
42
42
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -1,12 +1,4 @@
1
1
  // @bun
2
- import {
3
- decodeText,
4
- mkString,
5
- FileSystem,
6
- Path,
7
- withDefault,
8
- String2
9
- } from "./chunk-0b93nv6j.js";
10
2
  import {
11
3
  isString2,
12
4
  hasProperty,
@@ -43,6 +35,14 @@ import {
43
35
  } from "./chunk-vtfwjhzh.js";
44
36
  import"./chunk-0qz10ek8.js";
45
37
  import"./chunk-c6rbt85q.js";
38
+ import {
39
+ decodeText,
40
+ mkString,
41
+ FileSystem,
42
+ Path,
43
+ withDefault,
44
+ String2
45
+ } from "./chunk-gspfm7qh.js";
46
46
  import {
47
47
  SecureRandom,
48
48
  layerWebCrypto,
@@ -54,23 +54,23 @@ import {
54
54
  layer4,
55
55
  kitmanMcpServer,
56
56
  RunnerRpcProtocolVersion
57
- } from "./chunk-dc57c8s5.js";
57
+ } from "./chunk-dymepetx.js";
58
58
  import {
59
59
  Packument,
60
60
  tarballMatches
61
- } from "./chunk-ejhfa1t6.js";
62
- import"./chunk-kfwp70pn.js";
61
+ } from "./chunk-e7e120qw.js";
62
+ import"./chunk-y8sscyvt.js";
63
63
  import {
64
64
  AgentDeclaration,
65
65
  KitDeclarations,
66
66
  describeFlag,
67
67
  Described
68
- } from "./chunk-rr0yw34p.js";
68
+ } from "./chunk-8ez1s9cr.js";
69
69
  import {
70
70
  ChildProcessSpawner,
71
71
  make3
72
- } from "./chunk-2qarscbj.js";
73
- import"./chunk-rm3vqk5d.js";
72
+ } from "./chunk-xwya1er0.js";
73
+ import"./chunk-794hjysw.js";
74
74
 
75
75
  // packages/sdk/src/build/index.ts
76
76
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -108,7 +108,7 @@ import {
108
108
  shutdownUnsafe,
109
109
  fromQueue,
110
110
  unwrap
111
- } from "./chunk-0b93nv6j.js";
111
+ } from "./chunk-gspfm7qh.js";
112
112
  import {
113
113
  Clock,
114
114
  empty,
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-dc57c8s5.js";
126
+ } from "./chunk-dymepetx.js";
127
127
 
128
128
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
129
129
  class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
@@ -76,10 +76,6 @@ import {
76
76
  toCodecJson,
77
77
  Json
78
78
  } from "./chunk-vtfwjhzh.js";
79
- import {
80
- runForEach,
81
- FileSystem
82
- } from "./chunk-0b93nv6j.js";
83
79
  import {
84
80
  guard
85
81
  } from "./chunk-0qz10ek8.js";
@@ -109,7 +105,11 @@ import {
109
105
  KitDigest,
110
106
  KitSetup,
111
107
  RunnerRpcError
112
- } from "./chunk-dc57c8s5.js";
108
+ } from "./chunk-dymepetx.js";
109
+ import {
110
+ runForEach,
111
+ FileSystem
112
+ } from "./chunk-gspfm7qh.js";
113
113
 
114
114
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
115
115
  var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
@@ -664,7 +664,9 @@ var NoteRequest = Struct({
664
664
  });
665
665
  var CreateTasksRequest = Struct({
666
666
  tickets: ArraySchema(PlanTicket),
667
- projectId: optionalKey(String4)
667
+ projectId: optionalKey(String4),
668
+ builds: optionalKey(Boolean2),
669
+ releases: optionalKey(Boolean2)
668
670
  });
669
671
  var CreateTasksResult = Struct({
670
672
  tasks: ArraySchema(Struct({ key: String4, taskId: String4 }))
@@ -709,7 +711,8 @@ var ApproveChangeRequestRequest = Struct({
709
711
  head: String4,
710
712
  summary: String4,
711
713
  review: optionalKey(String4),
712
- carries: optionalKey(String4)
714
+ carries: optionalKey(String4),
715
+ reuses: optionalKey(String4)
713
716
  });
714
717
  var ApproveChangeRequestResult = Union([
715
718
  Struct({ approved: Literal(true), reviewId: String4 }),
@@ -768,6 +771,7 @@ var PipelineStatus = Struct({
768
771
  runnerChecks: optionalKey(ArraySchema(String4)),
769
772
  targetChecks: optionalKey(ArraySchema(String4)),
770
773
  approved: optionalKey(String4),
774
+ reviewed: optionalKey(Struct({ review: String4, notRun: optionalKey(ArraySchema(String4)) })),
771
775
  repository: optionalKey(String4),
772
776
  sourceBranch: optionalKey(String4),
773
777
  targetBranch: optionalKey(String4),
@@ -253,7 +253,6 @@ import {
253
253
  import {
254
254
  map,
255
255
  makeEquivalence,
256
- toNumber,
257
256
  bytes,
258
257
  BadArgument,
259
258
  systemError,
@@ -317,7 +316,7 @@ import {
317
316
  String2,
318
317
  optionalEnv,
319
318
  harnessesUnsupportedInSrt2
320
- } from "./chunk-0b93nv6j.js";
319
+ } from "./chunk-gspfm7qh.js";
321
320
  import {
322
321
  isDateTime,
323
322
  Numeric,
@@ -358,7 +357,7 @@ import {
358
357
  make3,
359
358
  parseFdName,
360
359
  fdName
361
- } from "./chunk-2qarscbj.js";
360
+ } from "./chunk-xwya1er0.js";
362
361
 
363
362
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
364
363
  var makeEquivalence3 = Tuple;
@@ -900,6 +899,15 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
900
899
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
901
900
  var runMain = runMain2;
902
901
 
902
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
903
+ var BigInt2 = globalThis.BigInt;
904
+ var toNumber = (b) => {
905
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
906
+ return none();
907
+ }
908
+ return some(Number(b));
909
+ };
910
+
903
911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
904
912
  var makeUnsafe = makeUnsafe6;
905
913
  var make18 = make4;
@@ -3206,7 +3214,7 @@ var waitingOnWords = ({ keys, hidden }) => {
3206
3214
 
3207
3215
  // packages/core/src/run-queue.ts
3208
3216
  var ClaimRanks = ["in_progress", "finishing", "new"];
3209
- var queueWords = (place) => `#${place.position} in the queue, ${place.reason}`;
3217
+ var queueWords = (place) => place.unrunnable === undefined ? `#${place.position} in the queue, ${place.reason}` : `no online Runner can run it: ${place.unrunnable}`;
3210
3218
  // packages/core/src/redaction.ts
3211
3219
  var DurableSurfaceContractVersion = "durable-redaction.v1";
3212
3220
  var EvidenceRefContractVersion = "evidence-ref.v1";
@@ -3373,8 +3381,23 @@ var LOCAL_PATH_KEYS = new Set([
3373
3381
  "docker_socket",
3374
3382
  "ssh_agent_socket"
3375
3383
  ]);
3376
- var wrappedValue = String.raw`<[A-Za-z][A-Za-z0-9 _.-]*>|\$\{[^{}\s]*\}|\{\{[^{}]*\}\}|proxy-ep=[A-Za-z0-9.-]+;kitmanref(?:[0-9a-f]{2})+(?![A-Za-z0-9._~+/-])`;
3384
+ var wrappedValue = String.raw`<[A-Za-z][A-Za-z0-9 _.|-]*>|\$\{[^{}\s]*\}|\{\{[^{}]*\}\}|proxy-ep=[A-Za-z0-9.-]+;kitmanref(?:[0-9a-f]{2})+(?![A-Za-z0-9._~+/-])`;
3385
+ var placeholderWord = "(?:[A-Z]?[a-z]+|[A-Z]+)";
3386
+ var placeholderNamePart = `(?:[A-Z]?[a-z]+|[A-Z]+)(?:[A-Z][a-z]+)*[0-9]{0,4}`;
3387
+ var anglePlaceholder = `<${placeholderWord}[0-9]{0,2}(?:[ _.|-]${placeholderWord}[0-9]{0,2})*>`;
3388
+ var secretReferencePart = String.raw`(?:[A-Za-z0-9_.-]+|${anglePlaceholder}|\$\{[A-Za-z_][A-Za-z0-9_]*\}|\{\{\s*[A-Za-z_][A-Za-z0-9_.]*\s*\}\}|\*|\u2026)`;
3389
+ var describedSecretReference = new RegExp(`^secret://${secretReferencePart}/(?:${secretReferencePart})?$`, "u");
3377
3390
  var secretReferenceTail = String.raw`(?<=secret:)\/\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+(?![^\s,;}"')\]\x60])`;
3391
+ var referenceInText = new RegExp(String.raw`secret:\/\/${secretReferencePart}\/${secretReferencePart}(?![^\s,;}"')\]\x60])`, "gu");
3392
+ function inSecretReference(text, start, end) {
3393
+ for (const reference of text.matchAll(referenceInText)) {
3394
+ const referenceEnd = reference.index + reference[0].length;
3395
+ if (reference.index <= start && end <= referenceEnd)
3396
+ return isPlaceholder(unwrapped(reference[0]));
3397
+ }
3398
+ return false;
3399
+ }
3400
+ var placeholderTokenName = new RegExp(`^<?(?:ghp_|github_pat_|glpat-|ksa1\\.|sk-|xox[baprs]-)${placeholderNamePart}(?:[_.-]${placeholderNamePart})*>?$`, "u");
3378
3401
  var bearerValue = /[0-9]|[._~+/:-][A-Za-z0-9]|[<{]/u;
3379
3402
  var VALUE_RULES = [
3380
3403
  { classification: "secret", name: "private-key", pattern: /-----BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY-----/u },
@@ -3388,7 +3411,7 @@ var VALUE_RULES = [
3388
3411
  classification: "credential",
3389
3412
  name: "provider-token",
3390
3413
  pattern: /(?:^|[^A-Za-z0-9])(?<value><?(?:ghp_|github_pat_|glpat-|ksa1\.|sk-[A-Za-z0-9_-]{8,}|xox[baprs]-)[A-Za-z0-9._*-]*[A-Za-z0-9_*-]>?)/u,
3391
- holds: (value) => !isPlaceholder(value)
3414
+ holds: (value, _matched, text, start) => !isPlaceholder(value) && !(placeholderTokenName.test(value) && inSecretReference(text, start, start + value.length))
3392
3415
  },
3393
3416
  {
3394
3417
  classification: "credential",
@@ -3419,10 +3442,10 @@ var VALUE_RULES = [
3419
3442
  { classification: "transcript", name: "transcript-content", pattern: /(?:^|\n)\s*(?:user|assistant|system)\s*:/iu }
3420
3443
  ];
3421
3444
  var maskedToken = /^(?:ghp_|github_pat_|glpat-|ksa1\.|xox[baprs]-|sk-(?:ant-(?:[a-z]+[0-9]*-)?|proj-|or-v[0-9]+-)?)(?:x{4,}|X{4,}|\*{4,})$/u;
3422
- var placeholderWord = "(?:[A-Z]?[a-z]+|[A-Z]+)";
3423
3445
  var placeholders = [
3424
3446
  maskedToken,
3425
- new RegExp(`^<${placeholderWord}[0-9]{0,2}(?:[ _.-]${placeholderWord}[0-9]{0,2})*>$`, "u"),
3447
+ new RegExp(`^${anglePlaceholder}$`, "u"),
3448
+ describedSecretReference,
3426
3449
  /^\$\{[A-Za-z_][A-Za-z0-9_]*\}$/u,
3427
3450
  /^\$[A-Za-z_][A-Za-z0-9_]*$/u,
3428
3451
  /^\{\{\s*[A-Za-z_][A-Za-z0-9_.]*\s*\}\}$/u,
@@ -3439,14 +3462,16 @@ function looksLikeCredential(raw, matched) {
3439
3462
  const value = unwrapped(raw);
3440
3463
  if (isPlaceholder(raw) || isPlaceholder(value))
3441
3464
  return false;
3465
+ if (matched === `secret:${raw}` && isPlaceholder(`secret:${value}`))
3466
+ return false;
3442
3467
  return /^[^\s:=]+=\S/u.test(matched) || value.length >= 6 && /[0-9]/u.test(value) || value.length >= 20 && /[a-z]/u.test(value) && /[A-Z]/u.test(value);
3443
3468
  }
3444
3469
  function ruleMatch(rule, text) {
3445
3470
  for (const match of text.matchAll(globalPattern(rule))) {
3446
3471
  const value = match.groups?.value ?? match[0];
3447
- if (rule.holds !== undefined && !rule.holds(value, match[0]))
3448
- continue;
3449
3472
  const start = match.index + (match.groups?.value === undefined ? 0 : match[0].lastIndexOf(value));
3473
+ if (rule.holds !== undefined && !rule.holds(value, match[0], text, start))
3474
+ continue;
3450
3475
  return { classification: rule.classification, rule: rule.name, span: { start, end: start + value.length } };
3451
3476
  }
3452
3477
  return;
@@ -3462,8 +3487,11 @@ var globalPattern = (rule) => {
3462
3487
  };
3463
3488
  var redactedBy = (text, rule) => text.replace(globalPattern(rule), (matched, ...rest) => {
3464
3489
  const groups = rest.at(-1);
3465
- const value = isObject(groups) && groups !== null && "value" in groups ? groups.value : undefined;
3466
- return rule.holds === undefined || rule.holds(isString(value) ? value : matched, matched) ? `[REDACTED:${rule.classification}]` : matched;
3490
+ const offset = isObject(groups) ? rest.at(-3) : rest.at(-2);
3491
+ const named = isObject(groups) && groups !== null && "value" in groups ? groups.value : undefined;
3492
+ const value = isString(named) ? named : matched;
3493
+ const start = (isNumber(offset) ? offset : 0) + matched.lastIndexOf(value);
3494
+ return rule.holds === undefined || rule.holds(value, matched, text, start) ? `[REDACTED:${rule.classification}]` : matched;
3467
3495
  });
3468
3496
  var runnerSecretReference = /^runner-secret:[A-Z0-9_]+:(?:env|file|exec)$/u;
3469
3497
  var credentialUrlRule = {
@@ -6089,7 +6117,8 @@ var RunWaiting = Union([
6089
6117
  rank: Literals(ClaimRanks),
6090
6118
  position: Int.check(isGreaterThanOrEqualTo(1)),
6091
6119
  reason: String4,
6092
- movesUpAt: optionalKey(String4)
6120
+ movesUpAt: optionalKey(String4),
6121
+ unrunnable: optionalKey(String4)
6093
6122
  })
6094
6123
  ]);
6095
6124
  var RunEvidence = Struct({
@@ -14524,6 +14553,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14524
14553
  runnerChecks: optionalKey(ArraySchema(String4)),
14525
14554
  targetChecks: optionalKey(ArraySchema(String4)),
14526
14555
  approved: optionalKey(String4),
14556
+ reviewed: optionalKey(Struct({ review: String4, notRun: optionalKey(ArraySchema(String4)) })),
14527
14557
  repository: optionalKey(String4),
14528
14558
  sourceBranch: optionalKey(String4),
14529
14559
  targetBranch: optionalKey(String4),
@@ -14655,13 +14685,16 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14655
14685
  payload: {
14656
14686
  lease: ProgramLease,
14657
14687
  projectId: optionalKey(String4),
14688
+ builds: optionalKey(Boolean2),
14689
+ releases: optionalKey(Boolean2),
14658
14690
  tickets: ArraySchema(Struct({
14659
14691
  key: String4,
14660
14692
  title: String4,
14661
14693
  body: String4,
14662
14694
  acceptanceCriteria: ArraySchema(String4),
14663
14695
  blockedBy: ArraySchema(String4),
14664
- outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"]))
14696
+ outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"])),
14697
+ repoBindingId: optionalKey(String4)
14665
14698
  }))
14666
14699
  },
14667
14700
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
@@ -14700,7 +14733,8 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14700
14733
  head: String4,
14701
14734
  summary: String4,
14702
14735
  review: optionalKey(String4),
14703
- carries: optionalKey(String4)
14736
+ carries: optionalKey(String4),
14737
+ reuses: optionalKey(String4)
14704
14738
  },
14705
14739
  success: Union([
14706
14740
  Struct({ approved: Literal(true), reviewId: String4 }),
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-0b93nv6j.js";
31
+ } from "./chunk-gspfm7qh.js";
32
32
  import {
33
33
  digestSha256,
34
34
  digestSha512,
@@ -38,7 +38,7 @@ import {
38
38
  get2,
39
39
  layer4,
40
40
  KitDigest
41
- } from "./chunk-dc57c8s5.js";
41
+ } from "./chunk-dymepetx.js";
42
42
 
43
43
  // packages/core/src/npm-registry.ts
44
44
  var KitManifest = Struct({
@@ -14,7 +14,7 @@ import {
14
14
  writeSrtSettings2,
15
15
  srtStepArgv2,
16
16
  srtArgv2
17
- } from "./chunk-0b93nv6j.js";
17
+ } from "./chunk-gspfm7qh.js";
18
18
  import"./chunk-vtfwjhzh.js";
19
19
  export {
20
20
  compiled2 as compiled,
@@ -166,6 +166,7 @@ import {
166
166
  scope2,
167
167
  scoped,
168
168
  scopedWith,
169
+ acquireRelease,
169
170
  ensuring2,
170
171
  onError,
171
172
  onExitPrimitive2,
@@ -181,6 +182,7 @@ import {
181
182
  runForkWith,
182
183
  runPromise,
183
184
  fnUntraced,
185
+ logWarning,
184
186
  mapEager,
185
187
  flatMapEager,
186
188
  catchEager,
@@ -248,15 +250,6 @@ var makeEquivalence = (equivalence) => {
248
250
  return (self, that) => is(self, that) && is(that, self);
249
251
  };
250
252
 
251
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
252
- var BigInt2 = globalThis.BigInt;
253
- var toNumber = (b) => {
254
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
255
- return none();
256
- }
257
- return some(Number(b));
258
- };
259
-
260
253
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
261
254
  var bigint0 = /* @__PURE__ */ BigInt(0);
262
255
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -3474,6 +3467,9 @@ var optionalEnv = (name) => gen(function* () {
3474
3467
  }));
3475
3468
  var operatorConfigHome = (home) => optionalEnv("XDG_CONFIG_HOME").pipe(map8((configHome) => configHome ?? `${home}/.config`));
3476
3469
 
3470
+ // packages/agent-runtime/src/temp-directory.ts
3471
+ var tempDirectoryScoped = (fs, options) => acquireRelease(fs.makeTempDirectory(options), (directory) => fs.remove(directory, { recursive: true, force: true }).pipe(catch_((error) => logWarning("temp_directory_not_removed", { directory, error: error.message }))));
3472
+
3477
3473
  // packages/agent-runtime/src/srt-sandbox.ts
3478
3474
  var harnessesUnsupportedInSrt2 = ["codex"];
3479
3475
  var compiled2 = import.meta.url.startsWith("file:///$bunfs/");
@@ -3547,7 +3543,7 @@ var writeSrtSettings2 = (policy, unixSockets) => gen(function* () {
3547
3543
  const settings = srtSettings2({ ...policy, readAllowedPaths }, seccomp === undefined ? [] : [seccomp], unixSockets);
3548
3544
  if (settings === undefined)
3549
3545
  return yield* die3(new Error("srt cannot run a Step with an open network"));
3550
- const dir = yield* fs.makeTempDirectoryScoped({ prefix: "kitman-srt-" });
3546
+ const dir = yield* tempDirectoryScoped(fs, { prefix: "kitman-srt-" });
3551
3547
  const settingsFile = path.join(dir, "srt-settings.json");
3552
3548
  yield* fs.writeFileString(settingsFile, encodeUnknownJsonStringSync(applyPath === undefined ? settings : { ...settings, seccomp: { applyPath } }));
3553
3549
  return { dir, settingsFile };
@@ -3561,4 +3557,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3561
3557
  ...argv
3562
3558
  ];
3563
3559
 
3564
- export { map, makeEquivalence, toNumber, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3560
+ export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -108,7 +108,7 @@ import {
108
108
  withDefault,
109
109
  option,
110
110
  String2
111
- } from "./chunk-0b93nv6j.js";
111
+ } from "./chunk-gspfm7qh.js";
112
112
  import {
113
113
  currentTimeMillis,
114
114
  SecureRandom,
@@ -218,7 +218,7 @@ import {
218
218
  harnessNames,
219
219
  herdrRunnerCapabilities2,
220
220
  declaredChecks
221
- } from "./chunk-dc57c8s5.js";
221
+ } from "./chunk-dymepetx.js";
222
222
  import {
223
223
  Id
224
224
  } from "./chunk-0qz10ek8.js";
@@ -235,7 +235,7 @@ import {
235
235
  import {
236
236
  ChildProcessSpawner,
237
237
  make3
238
- } from "./chunk-2qarscbj.js";
238
+ } from "./chunk-xwya1er0.js";
239
239
 
240
240
  // apps/cli/src/cli-error.ts
241
241
  function cliErrorCode(error, status) {
@@ -987,10 +987,10 @@ var sandboxMissing = (sandbox, missing) => ({
987
987
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
988
988
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
989
989
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
990
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-8yyj061t.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
990
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-jef2vdr6.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
991
991
  });
992
992
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
993
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-8yyj061t.js")), (module) => module.updateHerdrCore(options))
993
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-jef2vdr6.js")), (module) => module.updateHerdrCore(options))
994
994
  });
995
995
  var herdrCoreMissing = (error) => {
996
996
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1410,7 +1410,7 @@ var syncTargets = (harness) => gen(function* () {
1410
1410
  });
1411
1411
  var syncKits = (input) => gen(function* () {
1412
1412
  const fs = yield* FileSystem;
1413
- const { syncKitSetup } = yield* promise(() => import("./chunk-p3jbjz2a.js"));
1413
+ const { syncKitSetup } = yield* promise(() => import("./chunk-y73z1kkz.js"));
1414
1414
  const harnesses = yield* syncTargets(input.harness);
1415
1415
  const chain = yield* input.client.getKitChain(input.workspaceId);
1416
1416
  for (const { name, problem } of chain.skipped)
@@ -2328,7 +2328,7 @@ var package_default = {
2328
2328
  };
2329
2329
 
2330
2330
  // apps/cli/src/scaffold.ts
2331
- var cliVersion = "0.12.0-rc.1";
2331
+ var cliVersion = "0.12.0-rc.3";
2332
2332
  var packageJson = (name, scaffold) => `${JSON.stringify({
2333
2333
  name,
2334
2334
  private: true,
@@ -2480,7 +2480,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2480
2480
 
2481
2481
  // apps/cli/src/commands.ts
2482
2482
  var ClientId = "kitman-cli";
2483
- var agentRuntime = promise(() => import("./chunk-s7xcdcqx.js"));
2483
+ var agentRuntime = promise(() => import("./chunk-x55v5kyg.js"));
2484
2484
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2485
2485
  defaultValue: () => gen(function* () {
2486
2486
  const tui = yield* tryPromise({
@@ -3482,7 +3482,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3482
3482
  });
3483
3483
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3484
3484
  defaultValue: () => (options) => gen(function* () {
3485
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-82xjnghh.js"));
3485
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-2gg3ccte.js"));
3486
3486
  return yield* makeRunnerRpcClient({
3487
3487
  runnerId: options.runnerId,
3488
3488
  bearer: options.bearer,
@@ -4014,7 +4014,7 @@ function mcpCommand(args) {
4014
4014
  if (command.action === "run") {
4015
4015
  if (command.args.length > 0)
4016
4016
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4017
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-66xhktcp.js"));
4017
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-ks3p7yha.js"));
4018
4018
  return yield* runMcpServerCommand({ flags: command.flags });
4019
4019
  }
4020
4020
  if (command.action !== "setup")
@@ -4502,7 +4502,7 @@ function programLoopCommand(command) {
4502
4502
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4503
4503
  });
4504
4504
  }
4505
- var docsModule = promise(() => import("./chunk-a8jgegds.js"));
4505
+ var docsModule = promise(() => import("./chunk-yatva7be.js"));
4506
4506
  function docsCommand(args) {
4507
4507
  return gen(function* () {
4508
4508
  const command = parseCommand(args);
@@ -4750,7 +4750,7 @@ var runShowLines = (shown) => [
4750
4750
  ...questionLines2(shown.questions.filter((question) => question.status === "open")),
4751
4751
  ...shown.artifacts.flatMap((artifact) => [`Artifact ${artifact.kind}: ${artifact.title}`, artifact.text]),
4752
4752
  ...shown.children.map((child) => `Child ${child.name}: ${child.runId} ${child.status}`),
4753
- ...shown.waiting.map((waiting) => waiting.kind === "queue" ? `Waiting for a Runner slot for ${waiting.name}: ${queueWords(waiting)}` : `Waiting on ${waiting.kind} ${waiting.name}`)
4753
+ ...shown.waiting.map((waiting) => waiting.kind === "queue" ? `${waiting.unrunnable === undefined ? "Waiting for a Runner slot for" : "Waiting for a Runner that can run"} ${waiting.name}: ${queueWords(waiting)}` : `Waiting on ${waiting.kind} ${waiting.name}`)
4754
4754
  ];
4755
4755
  var myTeamsSections = [
4756
4756
  ["needsYou", "Needs you"],
@@ -5322,9 +5322,9 @@ function changeRequestCommand(args) {
5322
5322
  yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
5323
5323
  });
5324
5324
  }
5325
- var KitWriter = map8(promise(() => import("./chunk-tcyqkqzj.js")), (build) => build.writeKit);
5325
+ var KitWriter = map8(promise(() => import("./chunk-6akwhwyp.js")), (build) => build.writeKit);
5326
5326
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5327
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-tcyqkqzj.js")), (build) => build.buildKit(directory))
5327
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-6akwhwyp.js")), (build) => build.buildKit(directory))
5328
5328
  });
5329
5329
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5330
5330
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-2qarscbj.js";
2
+ import"./chunk-xwya1er0.js";
3
3
  import {
4
4
  HERDR_CORE_GENERATION2,
5
5
  HERDR_CORE_INSTALL_COMMAND2,
@@ -12,8 +12,8 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-dc57c8s5.js";
16
- import"./chunk-0b93nv6j.js";
15
+ } from "./chunk-dymepetx.js";
16
+ import"./chunk-gspfm7qh.js";
17
17
  import"./chunk-vtfwjhzh.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,