@outerlayer/cli 0.36.0-next.20261030225631 → 0.36.0-next.20261031112440

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 (115) hide show
  1. package/README.md +7 -14
  2. package/dist/{agent-setup-RZE6O737.js → agent-setup-UYTS2PHZ.js} +11 -10
  3. package/dist/{artifact-link-cmd-DLKYKNWF.js → artifact-link-cmd-W7LRR76D.js} +2 -2
  4. package/dist/{build-GVNOXEDV.js → build-KM6UILOZ.js} +4 -4
  5. package/dist/{build-disk-H5VDB4G2.js → build-disk-GCEB5EJC.js} +4 -4
  6. package/dist/build-info.json +1 -1
  7. package/dist/{builder-QW6N3XBA.js → builder-NRPJGNXU.js} +3 -3
  8. package/dist/{caller-TUO3VAKG.js → caller-XHNAY4E2.js} +6 -6
  9. package/dist/{check-LUDLYHUR.js → check-MENIW2MN.js} +35 -34
  10. package/dist/{chunk-ZFGGCEH2.js → chunk-25GQP6NR.js} +17 -17
  11. package/dist/{chunk-QLWEXEEA.js → chunk-34YFGWHR.js} +1 -1
  12. package/dist/{chunk-MJEUD4PD.js → chunk-3GFZSLSP.js} +4 -4
  13. package/dist/{chunk-YQDXFFOK.js → chunk-3PQTOKML.js} +1 -1
  14. package/dist/{chunk-HSSECQOA.js → chunk-3QLHEGXK.js} +2 -2
  15. package/dist/{chunk-OUMMLC45.js → chunk-3SQZ5LIK.js} +2 -2
  16. package/dist/{chunk-RUML4JVG.js → chunk-3YRJUX6J.js} +1 -1
  17. package/dist/{chunk-H5XPKNQZ.js → chunk-4AMSCAHT.js} +5 -5
  18. package/dist/{chunk-OJ2KWQPQ.js → chunk-4SFHEARD.js} +1 -1
  19. package/dist/{chunk-MVI3J4FN.js → chunk-5AJZGYWC.js} +4 -4
  20. package/dist/{chunk-D4BIUQPA.js → chunk-5H57X7YC.js} +1 -1
  21. package/dist/{chunk-OR2NXZ5Y.js → chunk-5UBNSGK3.js} +3 -3
  22. package/dist/{chunk-7ABJKQAQ.js → chunk-6IJZL7X2.js} +2 -2
  23. package/dist/{chunk-K6KO7TBK.js → chunk-6T2JWCSZ.js} +12 -12
  24. package/dist/{chunk-7GX4X25F.js → chunk-7O7LJWQO.js} +1 -1
  25. package/dist/{chunk-TGVIFTKI.js → chunk-AVJWMOEY.js} +1 -1
  26. package/dist/{chunk-6HRYB7M6.js → chunk-BFF6AJXM.js} +8 -8
  27. package/dist/{chunk-A2QQGMQ7.js → chunk-C4YULCXX.js} +7 -7
  28. package/dist/chunk-F3ZMVUAS.js +40 -0
  29. package/dist/{chunk-Y6FSSKLW.js → chunk-FRDYAKH3.js} +2 -2
  30. package/dist/{chunk-5TJQBHKO.js → chunk-GDIVOYDA.js} +4 -4
  31. package/dist/{chunk-O3OREOCP.js → chunk-GDMAN42R.js} +2 -2
  32. package/dist/{chunk-JII4O3EZ.js → chunk-GU25RNKD.js} +3 -3
  33. package/dist/{chunk-6KLNELLP.js → chunk-IVY3PD7P.js} +3 -3
  34. package/dist/{chunk-AILO7SNG.js → chunk-JFMSFHER.js} +13 -211
  35. package/dist/{chunk-FCJWPFDS.js → chunk-JPROSTGX.js} +4 -4
  36. package/dist/{chunk-ZJX3KECE.js → chunk-K2YG2HZN.js} +14 -14
  37. package/dist/{chunk-4A7GNO4U.js → chunk-LESWXCKZ.js} +1 -1
  38. package/dist/{chunk-YZXI37NW.js → chunk-LHFG5YUG.js} +2 -2
  39. package/dist/{chunk-WNM5GXJ3.js → chunk-LRCGXRQI.js} +2 -2
  40. package/dist/{chunk-KSMN2FUF.js → chunk-LZ7PAU55.js} +6 -2
  41. package/dist/{chunk-VOURWC2H.js → chunk-MMDGO77D.js} +1 -1
  42. package/dist/{chunk-BIAXDR3K.js → chunk-MMXPNEEQ.js} +8 -8
  43. package/dist/{chunk-BR2WJ6BX.js → chunk-MVSC7GCE.js} +2 -2
  44. package/dist/{chunk-7K7TGHDF.js → chunk-MXWPLGO6.js} +74 -707
  45. package/dist/{chunk-EA57H6AT.js → chunk-OLENS2DD.js} +1 -1
  46. package/dist/{chunk-VVUMAXFY.js → chunk-OPF6OJAT.js} +4 -4
  47. package/dist/{chunk-O6NQYFPH.js → chunk-PDQWXH3F.js} +5 -5
  48. package/dist/{chunk-QH6RZLDV.js → chunk-PJZKKFQO.js} +1 -1
  49. package/dist/{chunk-GGNG6CVE.js → chunk-PN6TNCQI.js} +14 -7
  50. package/dist/{chunk-YTNZ237E.js → chunk-RGH5GYU2.js} +7 -7
  51. package/dist/{chunk-UCRCIRQQ.js → chunk-S6OD32NC.js} +5 -5
  52. package/dist/{chunk-D3H37WUD.js → chunk-T3AJOPUR.js} +2 -2
  53. package/dist/{chunk-UHD5ZR46.js → chunk-U553JKMO.js} +4 -4
  54. package/dist/{chunk-IZVBCDSH.js → chunk-VG2NIWR4.js} +4 -4
  55. package/dist/{chunk-ZGFUZPJP.js → chunk-VJYNMGCE.js} +2 -2
  56. package/dist/{chunk-QZSA5R3L.js → chunk-VUG4IZ7H.js} +1 -1
  57. package/dist/{chunk-UI2VOW26.js → chunk-XTVVKNRP.js} +5 -8
  58. package/dist/{claude-launcher-FK5ZQWXC.js → claude-launcher-YV3TDXBU.js} +5 -5
  59. package/dist/{cli-NPNTAB2B.js → cli-TAFO3WOQ.js} +115 -117
  60. package/dist/{command-XLXJGPRZ.js → command-TRSFSBT5.js} +31 -30
  61. package/dist/{config-NVGVPL3L.js → config-YCQV3OQK.js} +5 -5
  62. package/dist/{connect-cmd-KO2TIY6J.js → connect-cmd-IRJ3MBPY.js} +8 -8
  63. package/dist/{container-start-ZCG3EHAO.js → container-start-UY2YVY3L.js} +32 -31
  64. package/dist/{context-cleanup-2MTGLUYS.js → context-cleanup-TPHCVVFV.js} +3 -3
  65. package/dist/{context-show-cmd-XLER7QAI.js → context-show-cmd-YQEQ5B34.js} +9 -9
  66. package/dist/{control-plane-launch-RUJOCYEI.js → control-plane-launch-UWFQWMWB.js} +11 -6
  67. package/dist/{demo-voice-cmd-VIMMLCLO.js → demo-voice-cmd-QAH7KPVO.js} +14 -14
  68. package/dist/dist-2SPMAD7Z.js +7 -0
  69. package/dist/{docker-3AZ3ZFLA.js → docker-2247NBIK.js} +3 -3
  70. package/dist/{doctor-TIBTSPML.js → doctor-VVFPHFS4.js} +32 -31
  71. package/dist/{emit-artifact-cmd-PLTXEBPU.js → emit-artifact-cmd-3YHOU4TI.js} +13 -13
  72. package/dist/{emit-cmd-6NZOT5DS.js → emit-cmd-HNXRGC5Z.js} +7 -6
  73. package/dist/{emit-criteria-cmd-BNXWF46E.js → emit-criteria-cmd-NN52H53B.js} +10 -10
  74. package/dist/{emit-demo-cmd-C6IQPCW7.js → emit-demo-cmd-V7CP333I.js} +14 -14
  75. package/dist/{emit-finding-cmd-5HZE7W6C.js → emit-finding-cmd-J5UZGNP4.js} +10 -10
  76. package/dist/{emit-result-cmd-WCNYSHDK.js → emit-result-cmd-IWMACBFI.js} +12 -12
  77. package/dist/{emit-step-cmd-HSKB3SNR.js → emit-step-cmd-SRWFWEU7.js} +10 -10
  78. package/dist/{find-unit-CNYGB5AN.js → find-unit-FEYD4IHC.js} +7 -7
  79. package/dist/{findings-cmd-2OQMIVHA.js → findings-cmd-BWTLCXDR.js} +10 -10
  80. package/dist/{fleet-readiness-PCQSCHQ5.js → fleet-readiness-FAKMWCJV.js} +8 -8
  81. package/dist/{governing-source-7XCL3AYM.js → governing-source-6ANJ4HQI.js} +14 -13
  82. package/dist/{hook-fast-EMZVAUJ5.js → hook-fast-3HPWMSFB.js} +1 -1
  83. package/dist/{host-checks-ULFOOLWB.js → host-checks-TX22YEFD.js} +30 -29
  84. package/dist/index.js +4 -4
  85. package/dist/{init-ZZJ57EDL.js → init-36AY3ZQZ.js} +30 -29
  86. package/dist/{init-JQTQWAM7.js → init-IYL3YXEM.js} +30 -29
  87. package/dist/{init-cmd-UKT7YW5U.js → init-cmd-JK2OGQU5.js} +18 -18
  88. package/dist/{init-update-2SN2GCTM.js → init-update-4IQPGOA6.js} +24 -31
  89. package/dist/{layout-YJ2RD5H2.js → layout-TLUOMM6F.js} +4 -4
  90. package/dist/{login-browser-TWUHD2DS.js → login-browser-ODTJEGDN.js} +2 -2
  91. package/dist/{loop-M6SSY52X.js → loop-U72FDFQR.js} +34 -33
  92. package/dist/{machine-7Z2IVG7X.js → machine-S2TYJJPP.js} +30 -29
  93. package/dist/{machine-skills-FWIZV5HO.js → machine-skills-VRUJVBQV.js} +4 -4
  94. package/dist/{runner-env-IDGTVTYW.js → runner-env-OPRWKIKI.js} +7 -7
  95. package/dist/{runner-identity-RJYVFQ5K.js → runner-identity-OY75LG6G.js} +3 -3
  96. package/dist/{runner-key-ESSC2IKR.js → runner-key-6WN67PRU.js} +30 -29
  97. package/dist/{session-sender-NCSDRNCM.js → session-sender-EINASB3R.js} +13 -13
  98. package/dist/{spec-cmd-OYQEUAMI.js → spec-cmd-253AGRFF.js} +11 -11
  99. package/dist/{starter-pack-6FOYP6DY.js → starter-pack-7QNUT74O.js} +5 -5
  100. package/dist/{status-ECHO7NRV.js → status-WCQG6SX4.js} +30 -29
  101. package/dist/{sync-cmd-7LESBUTT.js → sync-cmd-Z6PU33GC.js} +12 -12
  102. package/dist/{update-steps-JH7PPGPD.js → update-steps-BOKCWGQ6.js} +31 -30
  103. package/dist/{watch-RSUPBIJS.js → watch-XNBXSIEI.js} +12 -12
  104. package/dist/{work-claim-cmd-HX7DGFY3.js → work-claim-cmd-2A6D5EYO.js} +15 -15
  105. package/dist/{work-cmd-IEC6XKC6.js → work-cmd-JZUBXXJN.js} +10 -10
  106. package/dist/{work-comment-cmd-X65LS27O.js → work-comment-cmd-L4R6ZXLO.js} +12 -12
  107. package/dist/{work-demo-cmd-D7WGXJOC.js → work-demo-cmd-YNPN2PHQ.js} +10 -10
  108. package/dist/{work-logs-cmd-FQH2UVMI.js → work-logs-cmd-CSQJB5MD.js} +10 -10
  109. package/dist/{work-open-pr-cmd-EFAFERSF.js → work-open-pr-cmd-Y7YNI2PF.js} +11 -11
  110. package/dist/{work-pr-cmd-E55GPZKO.js → work-pr-cmd-QGAOPNLV.js} +10 -10
  111. package/dist/{work-proofs-cmd-V2O2DTAQ.js → work-proofs-cmd-RPVVD2SC.js} +12 -12
  112. package/dist/{work-proofs-record-XJFVH7B4.js → work-proofs-record-ULCY5QEP.js} +18 -18
  113. package/dist/{work-stop-cmd-ANPTSTYS.js → work-stop-cmd-LF4OTNPL.js} +10 -10
  114. package/package.json +1 -1
  115. package/dist/dist-4Q4Y6YJL.js +0 -7
@@ -1,43 +1,43 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-K6KO7TBK.js';
4
- import './chunk-UHD5ZR46.js';
3
+ import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-6T2JWCSZ.js';
4
+ import './chunk-U553JKMO.js';
5
5
  import './chunk-OHQMGLJP.js';
6
- import './chunk-OUMMLC45.js';
7
- import { verifiedTrackerNames, TRACKERS } from './chunk-UCRCIRQQ.js';
6
+ import './chunk-3SQZ5LIK.js';
7
+ import { verifiedTrackerNames, TRACKERS } from './chunk-S6OD32NC.js';
8
8
  import './chunk-IP7BIBXJ.js';
9
- import './chunk-YZXI37NW.js';
10
- import './chunk-FCJWPFDS.js';
11
- import './chunk-D4BIUQPA.js';
9
+ import './chunk-LHFG5YUG.js';
10
+ import './chunk-JPROSTGX.js';
11
+ import './chunk-5H57X7YC.js';
12
12
  import './chunk-A2LHHKTT.js';
13
13
  import { C, warnDeprecated, API_KEY_FLAG_DEPRECATION, NO_COLOR_FLAG, stripNoColor } from './chunk-2AM6Z5BP.js';
14
- import './chunk-A2QQGMQ7.js';
15
- import './chunk-YQDXFFOK.js';
16
- import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-WNM5GXJ3.js';
17
- import './chunk-D3H37WUD.js';
14
+ import './chunk-C4YULCXX.js';
15
+ import './chunk-3PQTOKML.js';
16
+ import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-LRCGXRQI.js';
17
+ import './chunk-T3AJOPUR.js';
18
18
  import './chunk-YQHEJ5SV.js';
19
19
  import './chunk-HWVMRETT.js';
20
20
  import './chunk-4DJZSNVT.js';
21
- import { hookFiredMarkerPath, installedCliDistDir } from './chunk-O3OREOCP.js';
21
+ import { hookFiredMarkerPath, installedCliDistDir } from './chunk-GDMAN42R.js';
22
22
  import './chunk-545P7JY7.js';
23
23
  import './chunk-YBAVN6WS.js';
24
24
  import './chunk-BKO6JEZI.js';
25
25
  import './chunk-HCVLP7XA.js';
26
26
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
27
- import './chunk-EA57H6AT.js';
28
- import './chunk-7GX4X25F.js';
29
- import './chunk-7K7TGHDF.js';
27
+ import './chunk-OLENS2DD.js';
28
+ import './chunk-7O7LJWQO.js';
29
+ import './chunk-MXWPLGO6.js';
30
30
  import './chunk-OLM2TIOW.js';
31
31
  import './chunk-CDDED64E.js';
32
32
  import { resolveVersion, resolvePackageVersion } from './chunk-RA3O54FC.js';
33
33
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
34
34
  import { cliInvocation, packageRunnerOf } from './chunk-FZKNTIOJ.js';
35
35
  import { settingsPath, readSettings, SettingsParseError, listHookCandidates, PORTABLE_BIN, wrapHooks, writeSettings, unwrapHooks, REGISTERED_EVENTS, removeHooks, removeStatusline, cliBinResolvable, mergeHooks, repointWrappedHooks, AUTO_WRAP_EVENTS, mergeStatusline } from './chunk-KYDEBGJG.js';
36
- import './chunk-OJ2KWQPQ.js';
36
+ import './chunk-4SFHEARD.js';
37
37
  import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
38
38
  import { removeJournalHooks, removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
39
- import './chunk-AILO7SNG.js';
40
- import './chunk-QZSA5R3L.js';
39
+ import './chunk-JFMSFHER.js';
40
+ import './chunk-VUG4IZ7H.js';
41
41
  import { homeFromEnv } from './chunk-352DHUTP.js';
42
42
  import './chunk-WT7J2627.js';
43
43
  import './chunk-GANAOCHR.js';
@@ -3658,14 +3658,14 @@ function apiKeyOption() {
3658
3658
  return new Option("--api-key <key>", `deprecated: use \`${cliInvocation()} login\` or OUTERLAYER_API_KEY`).hideHelp();
3659
3659
  }
3660
3660
  async function installStarterPackInRepo() {
3661
- const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-6FOYP6DY.js');
3661
+ const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-7QNUT74O.js');
3662
3662
  const cwd = process.cwd();
3663
3663
  let repoRoot = cwd;
3664
3664
  try {
3665
3665
  repoRoot = execFileSync("git", ["rev-parse", "--show-toplevel"], { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim() || cwd;
3666
3666
  } catch {
3667
3667
  }
3668
- const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-YJ2RD5H2.js');
3668
+ const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-TLUOMM6F.js');
3669
3669
  const fresh = !isAgentsMdLayout(repoRoot) && !existsSync(join(repoRoot, ".outerlayer/skills")) && !existsSync(join(repoRoot, ".outerlayer/AGENTS.md"));
3670
3670
  const result = installStarterPack({ repoRoot, base: fresh ? ".agents/skills" : skillsBaseFor(repoRoot) });
3671
3671
  if (fresh) declareAgentsMdLayout(repoRoot);
@@ -3791,7 +3791,7 @@ ${starter.output}`),
3791
3791
  }
3792
3792
  }
3793
3793
  async function installMachineSkillsForSetup() {
3794
- const { setupMachineSkills } = await import('./machine-skills-FWIZV5HO.js');
3794
+ const { setupMachineSkills } = await import('./machine-skills-VRUJVBQV.js');
3795
3795
  const result = setupMachineSkills(homeFromEnv());
3796
3796
  for (const failure of result.failures) process.stderr.write(`${C.yellow}!${C.reset} Could not write a maintained skill: ${failure}
3797
3797
  `);
@@ -3799,8 +3799,8 @@ async function installMachineSkillsForSetup() {
3799
3799
  ` : "";
3800
3800
  }
3801
3801
  async function realConnectDepsForCwd() {
3802
- const { realConnectDeps } = await import('./connect-cmd-KO2TIY6J.js');
3803
- const { resolveRepoIdentity } = await import('./dist-4Q4Y6YJL.js');
3802
+ const { realConnectDeps } = await import('./connect-cmd-IRJ3MBPY.js');
3803
+ const { resolveRepoIdentity } = await import('./dist-2SPMAD7Z.js');
3804
3804
  return {
3805
3805
  ...realConnectDeps(),
3806
3806
  home: homeFromEnv(),
@@ -3817,7 +3817,7 @@ function buildProgram(argv = process.argv) {
3817
3817
  const program2 = new Command();
3818
3818
  program2.name(cliInvocation()).description("OuterLayer \u2014 see what your coding agents actually do").enablePositionalOptions().version(resolveVersion()).hook("preAction", async (_root, command) => {
3819
3819
  if (command.opts().apiKey !== void 0) warnDeprecated(API_KEY_FLAG_DEPRECATION);
3820
- const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-FWIZV5HO.js');
3820
+ const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-VRUJVBQV.js');
3821
3821
  const names = [];
3822
3822
  for (let at = command; at?.parent; at = at.parent) names.push(at.name());
3823
3823
  if (!machineRefreshSkipped(names, command._hidden === true, argv)) refreshMachineSkills(homeFromEnv());
@@ -3874,8 +3874,8 @@ build, ../outerlayer-build/SKILL.md becomes ~/.agents/skills/outerlayer-build/SK
3874
3874
  what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocation() + " doctor` reports the same\nstates under Starter files.\n"
3875
3875
  ).action(async (opts) => {
3876
3876
  if (opts.update || opts.dryRun) {
3877
- const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-2SN2GCTM.js');
3878
- const { fleetReadiness } = await import('./fleet-readiness-PCQSCHQ5.js');
3877
+ const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-4IQPGOA6.js');
3878
+ const { fleetReadiness } = await import('./fleet-readiness-FAKMWCJV.js');
3879
3879
  const problem = updateFlagProblem(opts);
3880
3880
  if (problem !== void 0) {
3881
3881
  fail(problem);
@@ -3892,7 +3892,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3892
3892
  }
3893
3893
  let starterTemplate;
3894
3894
  if (opts.template !== void 0) {
3895
- const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-6FOYP6DY.js');
3895
+ const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-7QNUT74O.js');
3896
3896
  try {
3897
3897
  assertKnownTemplate(opts.template);
3898
3898
  } catch (err) {
@@ -3926,13 +3926,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3926
3926
  if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
3927
3927
  `);
3928
3928
  }
3929
- const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-UKT7YW5U.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3929
+ const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-JK2OGQU5.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3930
3930
  if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
3931
3931
  else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
3932
3932
  return;
3933
3933
  }
3934
3934
  await installMachineSkillsForSetup();
3935
- const { runInitCommand } = await import('./init-cmd-UKT7YW5U.js');
3935
+ const { runInitCommand } = await import('./init-cmd-JK2OGQU5.js');
3936
3936
  const code = await runInitCommand(
3937
3937
  { json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
3938
3938
  {
@@ -3944,7 +3944,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3944
3944
  return { ok, text, detail };
3945
3945
  },
3946
3946
  runAgentSetup: async () => {
3947
- const { runAgentSetup } = await import('./agent-setup-RZE6O737.js');
3947
+ const { runAgentSetup } = await import('./agent-setup-UYTS2PHZ.js');
3948
3948
  return runAgentSetup({ cwd: process.cwd(), skillsLink: opts.skillsLink !== false });
3949
3949
  },
3950
3950
  runDoctorChecks: gatherDoctorChecks,
@@ -3953,7 +3953,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3953
3953
  shellPath: process.env.SHELL,
3954
3954
  interactive: Boolean(process.stdin.isTTY && process.stderr.isTTY) && opts.json !== true,
3955
3955
  ask: async () => {
3956
- const { promptOnTerminal } = await import('./connect-cmd-KO2TIY6J.js');
3956
+ const { promptOnTerminal } = await import('./connect-cmd-IRJ3MBPY.js');
3957
3957
  const answer = await promptOnTerminal({
3958
3958
  message: `Should plain claude start Claude Code through ${cliInvocation()} claude? That is how a session in a governed repository gets its control plane. It adds one block to your zsh or bash startup file.`,
3959
3959
  options: [
@@ -3992,7 +3992,7 @@ linked (true, false, or null when it could not be checked) and, when false,
3992
3992
  linkUrl.
3993
3993
  `
3994
3994
  ).action(async (opts) => {
3995
- const { runConnectCommand } = await import('./connect-cmd-KO2TIY6J.js');
3995
+ const { runConnectCommand } = await import('./connect-cmd-IRJ3MBPY.js');
3996
3996
  const code = await runConnectCommand({ factory: opts.factory, json: opts.json }, await realConnectDepsForCwd(), {
3997
3997
  stdout: process.stdout,
3998
3998
  stderr: process.stderr
@@ -4031,7 +4031,7 @@ Every later command reads the saved file, so none of them needs a key on
4031
4031
  its command line. A saved key is checked for real on the first \`sync\`.
4032
4032
  `
4033
4033
  ).action(async (opts) => {
4034
- const { runLoginCommand, realLoginDeps } = await import('./login-browser-TWUHD2DS.js');
4034
+ const { runLoginCommand, realLoginDeps } = await import('./login-browser-ODTJEGDN.js');
4035
4035
  const code = await runLoginCommand(
4036
4036
  {
4037
4037
  browser: opts.browser !== false,
@@ -4059,18 +4059,18 @@ code is 1: revoke the token on /profile/security.
4059
4059
  const code = await runLogoutCommand(realLogoutDeps());
4060
4060
  if (code !== 0) process.exitCode = code;
4061
4061
  });
4062
- program2.command("sync").description("Send local coding-agent sessions to OuterLayer cloud").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").option("--tier <tier>", "capture tier: metrics | redacted | full (default: full)").option("--dry-run", "print what would leave this machine, send nothing").option("--all", "ignore the sync checkpoint and re-send everything").option("--limit <n>", "only the N most recent sessions", (v) => parseInt(v, 10)).option("--json", "machine-readable JSON output").option("--quiet", "no output; exit code only").option("--link <artifactId>", "print the dashboard link of an artifact already uploaded; sends nothing").option("--root <dir>", "Claude Code transcript root (default ~/.claude/projects)").option("--codex-root <dir>", "Codex sessions root (default ~/.codex/sessions)").option("--cursor-root <dir>", "Cursor chats root (default ~/.cursor/chats)").addHelpText(
4062
+ program2.command("sync").description("Send local coding-agent sessions to OuterLayer cloud").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").option("--tier <tier>", "capture tier: metrics | redacted | full (default: full)").option("--dry-run", "print what would leave this machine, send nothing").option("--all", "ignore the sync checkpoint and re-send everything").option("--limit <n>", "only the N most recent sessions", (v) => parseInt(v, 10)).option("--json", "machine-readable JSON output").option("--quiet", "no output; exit code only").option("--link <artifactId>", "print the dashboard link of an artifact already uploaded; sends nothing").option("--root <dir>", "Claude Code transcript root (default ~/.claude/projects)").addHelpText(
4063
4063
  "after",
4064
4064
  "\nIncremental: only sessions newer than the last checkpoint ship. The tier\nis applied on this machine before anything leaves it; `--dry-run` prints\nexactly what would. The hook-triggered background sync runs `--quiet`.\nExit 2 means the server rejected at least one session.\n"
4065
4065
  ).action(async (opts) => {
4066
4066
  if (opts.link !== void 0) {
4067
- const { lookupArtifactLink } = await import('./artifact-link-cmd-DLKYKNWF.js');
4067
+ const { lookupArtifactLink } = await import('./artifact-link-cmd-W7LRR76D.js');
4068
4068
  const found = lookupArtifactLink(opts.link);
4069
4069
  if (found.ok) process.stdout.write(found.url + "\n");
4070
4070
  else fail(found.reason);
4071
4071
  return;
4072
4072
  }
4073
- const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-7LESBUTT.js');
4073
+ const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-Z6PU33GC.js');
4074
4074
  try {
4075
4075
  const result = await runSync({
4076
4076
  url: opts.url,
@@ -4082,9 +4082,7 @@ code is 1: revoke the token on /profile/security.
4082
4082
  limit: opts.limit,
4083
4083
  json: opts.json,
4084
4084
  quiet: opts.quiet,
4085
- root: opts.root,
4086
- codexRoot: opts.codexRoot,
4087
- cursorRoot: opts.cursorRoot
4085
+ root: opts.root
4088
4086
  });
4089
4087
  if (result.rejected.length > 0) process.exitCode = 2;
4090
4088
  } catch (err) {
@@ -4101,7 +4099,7 @@ code is 1: revoke the token on /profile/security.
4101
4099
  if (invokedCommandToken(argv) === "watch") {
4102
4100
  warnDeprecated(`\`${cliInvocation()} watch\` is now \`${cliInvocation()} daemon\`; the old name will be removed in a future release.`);
4103
4101
  }
4104
- const { runWatch } = await import('./watch-RSUPBIJS.js');
4102
+ const { runWatch } = await import('./watch-XNBXSIEI.js');
4105
4103
  await runWatch({ once: opts.once });
4106
4104
  });
4107
4105
  program2.command("hook <event>", { hidden: true }).description("capture-hook fast path, installed by `init`").action(() => {
@@ -4191,7 +4189,7 @@ code is 1: revoke the token on /profile/security.
4191
4189
  process.exitCode = await runBuildCommand({ dir: opts.dir, argv: command });
4192
4190
  });
4193
4191
  program2.command("session-sender", { hidden: true }).description("stream a runner build's sessions to its work item while the build runs").action(async () => {
4194
- const { runSessionSender } = await import('./session-sender-NCSDRNCM.js');
4192
+ const { runSessionSender } = await import('./session-sender-EINASB3R.js');
4195
4193
  try {
4196
4194
  await runSessionSender();
4197
4195
  } catch (err) {
@@ -4234,7 +4232,7 @@ async function runCli(processArgv) {
4234
4232
  await buildProgram(argv).parseAsync(argv);
4235
4233
  }
4236
4234
  async function compileContext(opts) {
4237
- const { runEmit, EmitError } = await import('./emit-cmd-6NZOT5DS.js');
4235
+ const { runEmit, EmitError } = await import('./emit-cmd-HNXRGC5Z.js');
4238
4236
  try {
4239
4237
  const result = runEmit({ cwd: opts.dir, check: opts.check, json: opts.json });
4240
4238
  if (result.exitCode !== 0) process.exitCode = result.exitCode;
@@ -4287,7 +4285,7 @@ Compiling .outerlayer/ moved to \`${cliInvocation()} context emit\`.
4287
4285
  await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
4288
4286
  return;
4289
4287
  }
4290
- const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-WCNYSHDK.js');
4288
+ const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-IWMACBFI.js');
4291
4289
  try {
4292
4290
  const result = await runEmitResult({
4293
4291
  name,
@@ -4338,7 +4336,7 @@ everywhere, bytes and deep link untouched; a still-queued one is cancelled
4338
4336
  locally so it never uploads. One correction can retire several duplicates.
4339
4337
  `
4340
4338
  ).action(async (file, opts) => {
4341
- const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-PLTXEBPU.js');
4339
+ const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-3YHOU4TI.js');
4342
4340
  let pr;
4343
4341
  if (opts.pr !== void 0) {
4344
4342
  pr = parseTrackerNumber(opts.pr);
@@ -4394,7 +4392,7 @@ its criterion, and the new record retires the old record. The id must be the ite
4394
4392
  as \`work demo --item <n> --json\` prints it.
4395
4393
  `
4396
4394
  ).action(async (manifest, opts) => {
4397
- const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-C6IQPCW7.js');
4395
+ const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-V7CP333I.js');
4398
4396
  let item;
4399
4397
  if (opts.item !== void 0) {
4400
4398
  item = parseTrackerNumber(opts.item);
@@ -4437,7 +4435,7 @@ as \`work demo --item <n> --json\` prints it.
4437
4435
  }
4438
4436
  });
4439
4437
  program2.command("demo-voice", { hidden: true }).description("Speak demo lines for a recorder: JSON lines in on stdin, out on stdout").action(async () => {
4440
- const { runDemoVoice } = await import('./demo-voice-cmd-VIMMLCLO.js');
4438
+ const { runDemoVoice } = await import('./demo-voice-cmd-QAH7KPVO.js');
4441
4439
  await runDemoVoice();
4442
4440
  });
4443
4441
  const demoCmd = program2.command("demo").description("Record demos with the recorder this CLI carries");
@@ -4504,7 +4502,7 @@ recent events with their ids. --find <text> searches all of them.
4504
4502
  item that session was launched for is used automatically.
4505
4503
  `
4506
4504
  ).action(async (opts) => {
4507
- const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-5HZE7W6C.js');
4505
+ const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-J5UZGNP4.js');
4508
4506
  try {
4509
4507
  refuseRemovedFindingFlags(opts);
4510
4508
  const result = await runEmitFinding({
@@ -4571,7 +4569,7 @@ the whole batch. "untimed": true records one with no time on purpose.
4571
4569
  that session was launched for is used automatically.
4572
4570
  `
4573
4571
  ).action(async (file, opts) => {
4574
- const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-5HZE7W6C.js');
4572
+ const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-J5UZGNP4.js');
4575
4573
  try {
4576
4574
  const result = await runEmitFindings({
4577
4575
  file,
@@ -4606,7 +4604,7 @@ command, the command exits 0, and \`sync\` sends it later. If the gateway refuse
4606
4604
  the step, the command prints why and exits 1.
4607
4605
  `
4608
4606
  ).action(async (name, opts) => {
4609
- const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-HSKB3SNR.js');
4607
+ const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-SRWFWEU7.js');
4610
4608
  try {
4611
4609
  await runEmitStep({
4612
4610
  name,
@@ -4649,7 +4647,7 @@ of the item, and a (proof: <kind>) annotation names its proof.
4649
4647
  ${cliInvocation()} emit criteria acceptance/412-login.md --item 412
4650
4648
  `
4651
4649
  ).action(async (file, opts) => {
4652
- const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-BNXWF46E.js');
4650
+ const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-NN52H53B.js');
4653
4651
  try {
4654
4652
  const result = await runEmitCriteria({
4655
4653
  file,
@@ -4673,9 +4671,9 @@ function registerSpecCommands(program2) {
4673
4671
  const specCmd = program2.command("spec").description("Find, file and edit the issue a spec lives in, in your factory's tracker");
4674
4672
  const credentialOptions = (command) => command.option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)");
4675
4673
  const run = async (action) => {
4676
- const { WorkCommandError } = await import('./work-cmd-IEC6XKC6.js');
4674
+ const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4677
4675
  try {
4678
- await action(await import('./spec-cmd-OYQEUAMI.js'));
4676
+ await action(await import('./spec-cmd-253AGRFF.js'));
4679
4677
  } catch (err) {
4680
4678
  if (err instanceof WorkCommandError) {
4681
4679
  fail(err.message);
@@ -4710,7 +4708,7 @@ Prints each problem the item covers with its id, its reports and its result.
4710
4708
  session was launched for is used.
4711
4709
  `
4712
4710
  ).action(async (opts) => {
4713
- const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-2OQMIVHA.js');
4711
+ const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-BWTLCXDR.js');
4714
4712
  try {
4715
4713
  const result = await runFindingsShow({
4716
4714
  item: opts.item,
@@ -4738,7 +4736,7 @@ Give exactly one of --fixed and --not-fixed, and a --note. Run it again for the
4738
4736
  problem to replace the earlier result. A problem the item does not cover is refused.
4739
4737
  `
4740
4738
  ).action(async (problem, opts) => {
4741
- const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-2OQMIVHA.js');
4739
+ const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-BWTLCXDR.js');
4742
4740
  try {
4743
4741
  const result = await runFindingsResult({
4744
4742
  problem,
@@ -4780,7 +4778,7 @@ takes it, and prints the line that starts your session on it. That
4780
4778
  session links itself and holds the item's lease while it works.
4781
4779
  `
4782
4780
  ).action(async (opts) => {
4783
- const { runWorkBuild, WorkCommandError } = await import('./work-cmd-IEC6XKC6.js');
4781
+ const { runWorkBuild, WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4784
4782
  try {
4785
4783
  await runWorkBuild(opts);
4786
4784
  } catch (err) {
@@ -4803,7 +4801,7 @@ renews that session's own 20-minute lease, unless --no-lease or
4803
4801
  --ended is given, or another worker already holds a live one.
4804
4802
  `
4805
4803
  ).action(async (number, opts) => {
4806
- const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-IEC6XKC6.js');
4804
+ const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4807
4805
  try {
4808
4806
  await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
4809
4807
  } catch (err) {
@@ -4834,8 +4832,8 @@ thread at its source. It takes a plain answer: no --criterion and no
4834
4832
  action flag.
4835
4833
  `
4836
4834
  ).action(async (opts) => {
4837
- const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-X65LS27O.js');
4838
- const { WorkCommandError } = await import('./work-cmd-IEC6XKC6.js');
4835
+ const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-L4R6ZXLO.js');
4836
+ const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4839
4837
  try {
4840
4838
  await runWorkComment(opts);
4841
4839
  } catch (err) {
@@ -4857,7 +4855,7 @@ nothing and exits 0 when the call fails: the line goes to hook-errors.log,
4857
4855
  and the comment waits for the next agent job.
4858
4856
  `
4859
4857
  ).action(async (ids, opts) => {
4860
- const { runWorkCommentsRead } = await import('./work-comment-cmd-X65LS27O.js');
4858
+ const { runWorkCommentsRead } = await import('./work-comment-cmd-L4R6ZXLO.js');
4861
4859
  await runWorkCommentsRead({ ...opts, commentIds: ids });
4862
4860
  });
4863
4861
  workCmd.command("threads").description("Read a work item's general thread, its criterion threads and its source threads").requiredOption("--item <number>", "the item's number inside this factory").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").addHelpText(
@@ -4873,8 +4871,8 @@ that started outside OuterLayer, such as the line comments of a
4873
4871
  GitHub review, each with its id, source and comments.
4874
4872
  `
4875
4873
  ).action(async (opts) => {
4876
- const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-X65LS27O.js');
4877
- const { WorkCommandError } = await import('./work-cmd-IEC6XKC6.js');
4874
+ const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-L4R6ZXLO.js');
4875
+ const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4878
4876
  try {
4879
4877
  await runWorkThreads(opts);
4880
4878
  } catch (err) {
@@ -4898,8 +4896,8 @@ still running, or that an older runner released, has no log and the
4898
4896
  command exits 1.
4899
4897
  `
4900
4898
  ).action(async (opts) => {
4901
- const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-FQH2UVMI.js');
4902
- const { WorkCommandError } = await import('./work-cmd-IEC6XKC6.js');
4899
+ const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-CSQJB5MD.js');
4900
+ const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4903
4901
  try {
4904
4902
  await runWorkLogs(opts);
4905
4903
  } catch (err) {
@@ -4922,8 +4920,8 @@ item is not built again until a new build request. Exits 1 when no host
4922
4920
  build is running for the item.
4923
4921
  `
4924
4922
  ).action(async (opts) => {
4925
- const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-ANPTSTYS.js');
4926
- const { WorkCommandError } = await import('./work-cmd-IEC6XKC6.js');
4923
+ const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-LF4OTNPL.js');
4924
+ const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4927
4925
  try {
4928
4926
  await runWorkStop(opts);
4929
4927
  } catch (err) {
@@ -4944,8 +4942,8 @@ Prints the item's newest live demo record: its artifact id, the commit it was re
4944
4942
  test file that recorded it. With --json, prints { "demo": null } for an item with no demo.
4945
4943
  `
4946
4944
  ).action(async (opts) => {
4947
- const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-D7WGXJOC.js');
4948
- const { WorkCommandError } = await import('./work-cmd-IEC6XKC6.js');
4945
+ const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-YNPN2PHQ.js');
4946
+ const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4949
4947
  try {
4950
4948
  await runWorkDemo(opts);
4951
4949
  } catch (err) {
@@ -4966,7 +4964,7 @@ deletes anything \u2014 the item is removed from Work only once no
4966
4964
  live addition remains on it.
4967
4965
  `
4968
4966
  ).action(async (opts) => {
4969
- const { runWorkRemove, WorkCommandError } = await import('./work-cmd-IEC6XKC6.js');
4967
+ const { runWorkRemove, WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4970
4968
  try {
4971
4969
  await runWorkRemove(opts);
4972
4970
  } catch (err) {
@@ -4978,7 +4976,7 @@ live addition remains on it.
4978
4976
  }
4979
4977
  });
4980
4978
  workCmd.command("status").description("Show one item's stage, gate ledger, and additions").option("--item <number>", "the item's number inside this factory").option("--issue <number>", "issue number, or a Linear/Jira key like ENG-123").option(TRACKER_OPTION_FLAG, "tracker for a keyed --issue, when both hold the key").option("--repo <owner/name>", "repository for an issue number (default: the checkout's remote)").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").action(async (opts) => {
4981
- const { runWorkStatus, WorkCommandError } = await import('./work-cmd-IEC6XKC6.js');
4979
+ const { runWorkStatus, WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
4982
4980
  try {
4983
4981
  await runWorkStatus(opts);
4984
4982
  } catch (err) {
@@ -5023,11 +5021,11 @@ differs from HEAD.
5023
5021
  fail(trackerNumberError("--pr", opts.pr));
5024
5022
  return;
5025
5023
  }
5026
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-V2O2DTAQ.js');
5024
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-RPVVD2SC.js');
5027
5025
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5028
5026
  });
5029
5027
  workCmd.command("list").description("List live work items for this factory").option("--stage <spec|build|review>", "filter by stage").option("--section <attention|waiting|flowing>", "filter by Queue section").option("--repo <owner/name>", "repository (default: the current checkout's remote)").option("--unclaimed", "only items with no live lease").option("--claimed", "only items with a live lease, held by a host or a local session").option("--startable", "only items a host can start: a build request, no open PR, no live lease").option("--needs <amend>", "only items with a thread waiting on an agent").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").action(async (opts) => {
5030
- const { runWorkList, WorkCommandError } = await import('./work-cmd-IEC6XKC6.js');
5028
+ const { runWorkList, WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
5031
5029
  try {
5032
5030
  await runWorkList(opts);
5033
5031
  } catch (err) {
@@ -5048,7 +5046,7 @@ by a different key is refused; claiming again with the same key extends
5048
5046
  it. --host is a label only.
5049
5047
  `
5050
5048
  ).action(async (opts) => {
5051
- const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-HX7DGFY3.js');
5049
+ const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-2A6D5EYO.js');
5052
5050
  try {
5053
5051
  await runWorkClaim(opts);
5054
5052
  } catch (err) {
@@ -5068,7 +5066,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
5068
5066
  lease has expired, or a 403 if a different key holds it.
5069
5067
  `
5070
5068
  ).action(async (opts) => {
5071
- const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-HX7DGFY3.js');
5069
+ const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-2A6D5EYO.js');
5072
5070
  try {
5073
5071
  await runWorkRenew(opts);
5074
5072
  } catch (err) {
@@ -5100,7 +5098,7 @@ applies to a host's lease only. A later tool call in the session
5100
5098
  takes the lease again.
5101
5099
  `
5102
5100
  ).action(async (opts) => {
5103
- const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-HX7DGFY3.js');
5101
+ const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-2A6D5EYO.js');
5104
5102
  try {
5105
5103
  await runWorkRelease(opts);
5106
5104
  } catch (err) {
@@ -5127,7 +5125,7 @@ Idempotent: declaring the same pull request twice is a no-op.
5127
5125
  needs your own login; an agent session or a factory key is refused.
5128
5126
  `
5129
5127
  ).action(async (number, opts) => {
5130
- const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-E55GPZKO.js');
5128
+ const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-QGAOPNLV.js');
5131
5129
  try {
5132
5130
  await runWorkPr({ ...opts, number });
5133
5131
  } catch (err) {
@@ -5152,8 +5150,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
5152
5150
  Run it again after a change to the title or description.
5153
5151
  `
5154
5152
  ).action(async (opts) => {
5155
- const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-EFAFERSF.js');
5156
- const { WorkCommandError } = await import('./work-cmd-IEC6XKC6.js');
5153
+ const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-Y7YNI2PF.js');
5154
+ const { WorkCommandError } = await import('./work-cmd-JZUBXXJN.js');
5157
5155
  try {
5158
5156
  await runWorkOpenPr(opts);
5159
5157
  } catch (err) {
@@ -5169,8 +5167,8 @@ function registerRunnerCommands(program2) {
5169
5167
  const runnerCmd = program2.command("runner").description("Take work from the implement and amend queues on this machine");
5170
5168
  const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
5171
5169
  runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
5172
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-NVGVPL3L.js');
5173
- const { start, RunnerStartError } = await import('./loop-M6SSY52X.js');
5170
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-YCQV3OQK.js');
5171
+ const { start, RunnerStartError } = await import('./loop-U72FDFQR.js');
5174
5172
  const { RunnerAlreadyRunningError } = await import('./pidfile-FLFVRKVW.js');
5175
5173
  const configPath = opts.config ?? defaultRunnerConfigPath();
5176
5174
  try {
@@ -5188,9 +5186,9 @@ function registerRunnerCommands(program2) {
5188
5186
  "after",
5189
5187
  "\nReads OUTERLAYER_URL, OUTERLAYER_APP_ID, OUTERLAYER_API_KEY, OUTERLAYER_RUNNER_NAME and one Claude credential\n(CLAUDE_CODE_OAUTH_TOKEN or ANTHROPIC_API_KEY) from the environment. OUTERLAYER_AGENT\nis optional and defaults to claude. On a later start it refuses variables that disagree with the config in the volume.\nThe image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use `runner start`.\n"
5190
5188
  ).action(async () => {
5191
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-NVGVPL3L.js');
5192
- const { containerStart } = await import('./container-start-ZCG3EHAO.js');
5193
- const { start, RunnerStartError } = await import('./loop-M6SSY52X.js');
5189
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-YCQV3OQK.js');
5190
+ const { containerStart } = await import('./container-start-UY2YVY3L.js');
5191
+ const { start, RunnerStartError } = await import('./loop-U72FDFQR.js');
5194
5192
  const { RunnerAlreadyRunningError } = await import('./pidfile-FLFVRKVW.js');
5195
5193
  try {
5196
5194
  const result = await containerStart({
@@ -5212,16 +5210,16 @@ function registerRunnerCommands(program2) {
5212
5210
  "after",
5213
5211
  "\nIn the runner image, run it with `docker exec <container> outerlayer runner update-steps`. It reads the\ncontainer with `docker inspect` and changes nothing. The steps rename the old container and never remove it\nbefore the new one runs. They name the container's variables and never print a value.\n"
5214
5212
  ).action(async (opts) => {
5215
- const { defaultRunnerConfigPath } = await import('./config-NVGVPL3L.js');
5213
+ const { defaultRunnerConfigPath } = await import('./config-YCQV3OQK.js');
5216
5214
  const { runnerDir } = await import('./paths-XEYE7OZ2.js');
5217
- const { runUpdateSteps } = await import('./update-steps-JH7PPGPD.js');
5215
+ const { runUpdateSteps } = await import('./update-steps-BOKCWGQ6.js');
5218
5216
  const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
5219
5217
  process.stdout.write(`${text}
5220
5218
  `);
5221
5219
  });
5222
5220
  runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
5223
- const { defaultRunnerConfigPath } = await import('./config-NVGVPL3L.js');
5224
- const { runRunnerCheck } = await import('./check-LUDLYHUR.js');
5221
+ const { defaultRunnerConfigPath } = await import('./config-YCQV3OQK.js');
5222
+ const { runRunnerCheck } = await import('./check-MENIW2MN.js');
5225
5223
  const configPath = opts.config ?? defaultRunnerConfigPath();
5226
5224
  const result = await runRunnerCheck(configPath);
5227
5225
  if (!result.ok) {
@@ -5242,7 +5240,7 @@ function registerRunnerCommands(program2) {
5242
5240
  `);
5243
5241
  });
5244
5242
  runnerCmd.command("install").description("Put this CLI in the runner's install layout; --service adds its service").option("--config <path>", configOption).option("--service", "set up the service that keeps the runner running").option("--print", "with --service, print the unit and set up nothing").option("--user <account>", "with --service, the account the service runs as").option("--replace", "replace a unit or launcher file this command did not write").option("--allow-downgrade", "install this CLI even when it is older than the version the runner runs").option("--unit-name <name>", "with --service, the unit's name, to run a second runner beside the first").option("--build-memory-max <size>", "with --service, memory all builds may use together, such as 16g").option("--build-cpus-max <n>", "with --service, CPUs all builds may use together, such as 4").action(async (opts) => {
5245
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-NVGVPL3L.js');
5243
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-YCQV3OQK.js');
5246
5244
  const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-JKPXIOEY.js');
5247
5245
  const configPath = opts.config ?? defaultRunnerConfigPath();
5248
5246
  if (opts.service !== true) {
@@ -5255,13 +5253,13 @@ function registerRunnerCommands(program2) {
5255
5253
  }
5256
5254
  }
5257
5255
  const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
5258
- if (buildCpusMax !== void 0 && !(await import('./command-XLXJGPRZ.js')).cpusAreValid(buildCpusMax)) {
5256
+ if (buildCpusMax !== void 0 && !(await import('./command-TRSFSBT5.js')).cpusAreValid(buildCpusMax)) {
5259
5257
  fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
5260
5258
  return;
5261
5259
  }
5262
5260
  try {
5263
5261
  if (opts.service === true) {
5264
- const { installServiceCommand } = await import('./command-XLXJGPRZ.js');
5262
+ const { installServiceCommand } = await import('./command-TRSFSBT5.js');
5265
5263
  const result2 = await installServiceCommand({
5266
5264
  configPath,
5267
5265
  print: opts.print,
@@ -5318,8 +5316,8 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5318
5316
  fail(`pass --service: \`${cliInvocation()} runner uninstall --service\` removes the runner's service.`);
5319
5317
  return;
5320
5318
  }
5321
- const { defaultRunnerConfigPath } = await import('./config-NVGVPL3L.js');
5322
- const { uninstallServiceCommand } = await import('./command-XLXJGPRZ.js');
5319
+ const { defaultRunnerConfigPath } = await import('./config-YCQV3OQK.js');
5320
+ const { uninstallServiceCommand } = await import('./command-TRSFSBT5.js');
5323
5321
  const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
5324
5322
  if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5325
5323
  `);
@@ -5346,12 +5344,12 @@ already in claude.env is used.
5346
5344
  printf '%s' "$CLAUDE_CODE_OAUTH_TOKEN" | ${cliInvocation()} runner init --agent claude --factory <org>/<factory>
5347
5345
  `
5348
5346
  ).action(async (opts) => {
5349
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-NVGVPL3L.js');
5350
- const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-JQTQWAM7.js');
5351
- const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-ESSC2IKR.js');
5352
- const { detectMachine } = await import('./machine-7Z2IVG7X.js');
5353
- const { chooseVm, runVmInit, VmInitError } = await import('./init-ZZJ57EDL.js');
5354
- const { AGENT_COMMANDS, credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-IDGTVTYW.js');
5347
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-YCQV3OQK.js');
5348
+ const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-IYL3YXEM.js');
5349
+ const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-6WN67PRU.js');
5350
+ const { detectMachine } = await import('./machine-S2TYJJPP.js');
5351
+ const { chooseVm, runVmInit, VmInitError } = await import('./init-36AY3ZQZ.js');
5352
+ const { AGENT_COMMANDS, credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-OPRWKIKI.js');
5355
5353
  const configPath = opts.config ?? defaultRunnerConfigPath();
5356
5354
  if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
5357
5355
  fail(`--agent ${opts.agent}: runner init writes commands for ${Object.keys(AGENT_COMMANDS).join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
@@ -5365,7 +5363,7 @@ already in claude.env is used.
5365
5363
  try {
5366
5364
  let credential;
5367
5365
  if (agent !== void 0) {
5368
- const { readPipedKey } = await import('./login-browser-TWUHD2DS.js');
5366
+ const { readPipedKey } = await import('./login-browser-ODTJEGDN.js');
5369
5367
  credential = credentialFromStdin(
5370
5368
  await readPipedKey(process.stdin, {
5371
5369
  onWaiting: () => process.stderr.write(`runner init is waiting for Claude's credential on stdin; close stdin to use the one already in claude.env
@@ -5501,7 +5499,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
5501
5499
  let serviceUp = false;
5502
5500
  let restart;
5503
5501
  if (installedLayout) {
5504
- const { installServiceCommand } = await import('./command-XLXJGPRZ.js');
5502
+ const { installServiceCommand } = await import('./command-TRSFSBT5.js');
5505
5503
  const service = await installServiceCommand({
5506
5504
  configPath,
5507
5505
  entryPath: process.argv[1] ?? "",
@@ -5545,12 +5543,12 @@ Next:
5545
5543
  "after",
5546
5544
  "\nA repository governed by a control plane builds the control plane's image, at the commit\nthe gateway has stored for it. A repository that governs itself fetches the head of its\ndefault branch into the runner's cache. Either way it reads .devcontainer/devcontainer.json\nand builds the image with the devcontainer CLI. Settings\nthat reach the host or widen the container's privileges are ignored and listed. The\nimage holds this CLI and a pinned Claude Code. Nothing runs inside the image.\nA repository with no devcontainer file builds on the universal image the CLI pins by digest.\n"
5547
5545
  ).action(async (opts) => {
5548
- const { defaultRunnerConfigPath } = await import('./config-NVGVPL3L.js');
5549
- const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-GVNOXEDV.js');
5546
+ const { defaultRunnerConfigPath } = await import('./config-YCQV3OQK.js');
5547
+ const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-KM6UILOZ.js');
5550
5548
  const { currentCliBuild } = await import('./cli-build-K56DK4DS.js');
5551
- const { createDockerHost } = await import('./docker-3AZ3ZFLA.js');
5552
- const { builderSpec } = await import('./builder-QW6N3XBA.js');
5553
- const { loadRunnerConfig } = await import('./config-NVGVPL3L.js');
5549
+ const { createDockerHost } = await import('./docker-2247NBIK.js');
5550
+ const { builderSpec } = await import('./builder-NRPJGNXU.js');
5551
+ const { loadRunnerConfig } = await import('./config-YCQV3OQK.js');
5554
5552
  const configPath = opts.config ?? defaultRunnerConfigPath();
5555
5553
  const loaded = (() => {
5556
5554
  try {
@@ -5561,12 +5559,12 @@ Next:
5561
5559
  })();
5562
5560
  const memory = loaded?.build?.memory ?? "8g";
5563
5561
  try {
5564
- const { ensureRunnerIdentity } = await import('./runner-identity-RJYVFQ5K.js');
5562
+ const { ensureRunnerIdentity } = await import('./runner-identity-OY75LG6G.js');
5565
5563
  await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
5566
5564
  console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
5567
5565
  });
5568
- const { imageTargetFor } = await import('./governing-source-7XCL3AYM.js');
5569
- const { runnerCalls } = await import('./caller-TUO3VAKG.js');
5566
+ const { imageTargetFor } = await import('./governing-source-6ANJ4HQI.js');
5567
+ const { runnerCalls } = await import('./caller-XHNAY4E2.js');
5570
5568
  const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
5571
5569
  if (!target.ok) {
5572
5570
  if (opts.json) {
@@ -5630,17 +5628,17 @@ Next:
5630
5628
  }
5631
5629
  });
5632
5630
  runnerCmd.command("stop").description("Take no more work; finish running jobs, then exit").option("--config <path>", "the cloud config file naming the runner to stop").option("--now", "end running jobs immediately, with outcome stopped").action(async (opts) => {
5633
- const { defaultRunnerConfigPath } = await import('./config-NVGVPL3L.js');
5634
- const { requestStop } = await import('./loop-M6SSY52X.js');
5631
+ const { defaultRunnerConfigPath } = await import('./config-YCQV3OQK.js');
5632
+ const { requestStop } = await import('./loop-U72FDFQR.js');
5635
5633
  const configPath = opts.config ?? defaultRunnerConfigPath();
5636
5634
  const { runnerImageVersion } = await import('./image-tag-WBD57QBN.js');
5637
5635
  await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
5638
5636
  });
5639
5637
  runnerCmd.command("status").description("List running jobs; with --recent, finished ones too").option("--config <path>", "the cloud config file naming the runner to inspect").option("--recent", "also list finished jobs, newest first, capped at 20").option("--json", "machine-readable JSON output").action(async (opts) => {
5640
- const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-NVGVPL3L.js');
5638
+ const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-YCQV3OQK.js');
5641
5639
  const { jobsDir, runnerDir } = await import('./paths-XEYE7OZ2.js');
5642
- const { listJobFiles, runnerProcessState } = await import('./loop-M6SSY52X.js');
5643
- const { renderStatus } = await import('./status-ECHO7NRV.js');
5640
+ const { listJobFiles, runnerProcessState } = await import('./loop-U72FDFQR.js');
5641
+ const { renderStatus } = await import('./status-WCQG6SX4.js');
5644
5642
  const { readHousekeepingRecord } = await import('./record-JMZOXD4R.js');
5645
5643
  const path2 = await import('path');
5646
5644
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -5666,7 +5664,7 @@ Next:
5666
5664
  const processState = runnerProcessState(configPath);
5667
5665
  const service = await (async () => {
5668
5666
  if (process.platform !== "linux" || !existsSync("/run/systemd/system")) return void 0;
5669
- const { inspectRunnerService } = await import('./find-unit-CNYGB5AN.js');
5667
+ const { inspectRunnerService } = await import('./find-unit-FEYD4IHC.js');
5670
5668
  const facts = inspectRunnerService(configPath);
5671
5669
  return facts === void 0 ? void 0 : { unit: facts.unit, running: facts.mainPid !== void 0, delegated: facts.delegate };
5672
5670
  })();
@@ -5705,8 +5703,8 @@ Next:
5705
5703
  );
5706
5704
  });
5707
5705
  runnerCmd.command("logs").argument("<item>", "the work item's number in the factory, or a build's claim id").description("Print the newest attempt's log for one item or claim id").option("--config <path>", "the cloud config file naming the runner to inspect").option("-f, --follow", "keep printing as the log grows").action(async (itemArg, opts) => {
5708
- const { defaultRunnerConfigPath } = await import('./config-NVGVPL3L.js');
5709
- const { listJobFiles } = await import('./loop-M6SSY52X.js');
5706
+ const { defaultRunnerConfigPath } = await import('./config-YCQV3OQK.js');
5707
+ const { listJobFiles } = await import('./loop-U72FDFQR.js');
5710
5708
  const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-FEITSC2V.js');
5711
5709
  const configPath = opts.config ?? defaultRunnerConfigPath();
5712
5710
  const jobs = listJobFiles(configPath);
@@ -5961,7 +5959,7 @@ would get, the instruction files and the names of the skills. It warns when the
5961
5959
  no \`build\`. It needs the context-read permission: a login or a factory key with it is enough.
5962
5960
  `
5963
5961
  ).action(async (opts) => {
5964
- const { runContextShow, ContextShowError } = await import('./context-show-cmd-XLER7QAI.js');
5962
+ const { runContextShow, ContextShowError } = await import('./context-show-cmd-YQEQ5B34.js');
5965
5963
  try {
5966
5964
  const result = await runContextShow({ repo: opts.repo, json: opts.json, url: opts.url, apiKey: opts.apiKey, appId: opts.appId });
5967
5965
  process.stdout.write(result.output);
@@ -5975,7 +5973,7 @@ no \`build\`. It needs the context-read permission: a login or a factory key wit
5975
5973
  });
5976
5974
  contextCmd.command("emit").description("Compile .outerlayer/ into each configured target tool's native files").option("--check", "compare against disk, write nothing, exit 1 on drift (CI mode)").option("--dir <path>", "repo root to read from (default: cwd)").option("--json", "machine-readable JSON output").addHelpText(
5977
5975
  "after",
5978
- '\nTargets come from .outerlayer/config.json only; there is no --target flag.\nMissing or empty config: {"targets": [...]}, e.g. {"targets": ["claude-code"]}.\nKnown targets: claude-code, cursor, codex, copilot, factory.\n\nThe maintained skills (outerlayer-evidence, outerlayer-amend, outerlayer-findings,\nouterlayer-cli, outerlayer-build) follow this CLI: emit rewrites one that differs from its bundle, and --check\nreports it as drift. A copy under an earlier name (amend, emitting-evidence,\nreporting-findings, outerlayer) is deleted, and --check reports it as retired.\nTemplates (spec, writing-specs, writing-tests, build) are never rewritten or reported.\n\nOrphan detection (--check) only covers header-carrying outputs: every markdown\ntarget file gets a generated-by comment, but .mcp.json and .cursor/mcp.json are\nJSON with no comment syntax, so they can never be flagged as orphaned; missing\nand content drift still apply to them.\n'
5976
+ '\nTargets come from .outerlayer/config.json only; there is no --target flag.\nMissing or empty config: {"targets": [...]}, e.g. {"targets": ["claude-code"]}.\nKnown targets: claude-code.\n\nThe maintained skills (outerlayer-evidence, outerlayer-amend, outerlayer-findings,\nouterlayer-cli, outerlayer-build) follow this CLI: emit rewrites one that differs from its bundle, and --check\nreports it as drift. A copy under an earlier name (amend, emitting-evidence,\nreporting-findings, outerlayer) is deleted, and --check reports it as retired.\nTemplates (spec, writing-specs, writing-tests, build) are never rewritten or reported.\n\nOrphan detection (--check) only covers header-carrying outputs: every markdown\ntarget file gets a generated-by comment, but .mcp.json is JSON with no\ncomment syntax, so it can never be flagged as orphaned; missing\nand content drift still apply to it.\n'
5979
5977
  ).action(async (opts) => {
5980
5978
  await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
5981
5979
  });