@outerlayer/cli 0.38.0-next.20261106003041 → 0.38.0-next.20261106190200

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 (165) hide show
  1. package/README.md +16 -0
  2. package/dist/{agent-setup-CBEPGNFY.js → agent-setup-RO2DJUF3.js} +18 -18
  3. package/dist/{agent-subcommand-UNSXJUHA.js → agent-subcommand-PSI3BAXM.js} +3 -3
  4. package/dist/{bridge-JI4IO7JN.js → bridge-3WAVT5SX.js} +6 -6
  5. package/dist/{build-2L3L2OJO.js → build-4KG7H2XK.js} +12 -12
  6. package/dist/{build-disk-CKBEEF4N.js → build-disk-GGGJ237B.js} +10 -10
  7. package/dist/build-info.json +1 -1
  8. package/dist/{builder-PKDA7X2H.js → builder-HV7PUSZZ.js} +9 -9
  9. package/dist/caller-3P3AEY7W.js +23 -0
  10. package/dist/{check-FG32SYJF.js → check-LENGOFUF.js} +68 -52
  11. package/dist/{chunk-DXBYNJRM.js → chunk-27P5FSZT.js} +5 -5
  12. package/dist/{chunk-T524XQKI.js → chunk-2MA2KWHN.js} +1 -1
  13. package/dist/{chunk-FGVVBYCT.js → chunk-2VN36ZPA.js} +1 -1
  14. package/dist/{chunk-ZCEM4GJ5.js → chunk-3E65OLJ4.js} +3 -3
  15. package/dist/{chunk-EXIZ3G6I.js → chunk-3KVYSJAL.js} +4 -4
  16. package/dist/{chunk-EHJYXABQ.js → chunk-4PH3KXDP.js} +1 -1
  17. package/dist/{chunk-WF2NXBOM.js → chunk-5BDYRHZZ.js} +7 -7
  18. package/dist/{chunk-ZTJTAKVW.js → chunk-5MWE5IOO.js} +1 -1
  19. package/dist/{chunk-ERQLHUWU.js → chunk-5QBTW367.js} +5 -5
  20. package/dist/{chunk-4MSEUIMK.js → chunk-6744TXEY.js} +5 -5
  21. package/dist/{chunk-MDKLSY43.js → chunk-677TCNML.js} +1 -1
  22. package/dist/{chunk-3FAJMXBA.js → chunk-6BPCEGJL.js} +8 -8
  23. package/dist/{chunk-S7CE7QCF.js → chunk-6ZSUJ3ES.js} +3 -3
  24. package/dist/{chunk-TAEDH2SU.js → chunk-76Y35TWH.js} +1 -1
  25. package/dist/{chunk-HG2ZG6ZU.js → chunk-7ATHSAAT.js} +1 -1
  26. package/dist/{chunk-KLQLQQGG.js → chunk-7B4A6PBC.js} +3 -3
  27. package/dist/{chunk-PARDL7HH.js → chunk-7KF36CVC.js} +1 -1
  28. package/dist/{chunk-ZO3RUMUR.js → chunk-A24MNKYN.js} +4 -4
  29. package/dist/{chunk-O4Z2YVC3.js → chunk-ANFGBAWY.js} +4 -4
  30. package/dist/{chunk-L4ACBB5R.js → chunk-BEKYNGLH.js} +1 -1
  31. package/dist/{chunk-YWWW47OY.js → chunk-CFTSVW7W.js} +1 -1
  32. package/dist/{chunk-RSRNZB4T.js → chunk-DF6ZHOIA.js} +6 -6
  33. package/dist/{chunk-U5EE7PGC.js → chunk-E2ZWGLNZ.js} +3 -3
  34. package/dist/{chunk-K6JOU4CT.js → chunk-F2PTLH3J.js} +152 -48
  35. package/dist/{chunk-ZLJXMXZP.js → chunk-FBBI6K7D.js} +2 -2
  36. package/dist/{chunk-OUHM6U6Z.js → chunk-FCU7WSCV.js} +144 -5
  37. package/dist/{chunk-MPE4NOKD.js → chunk-G2EWER4K.js} +2 -2
  38. package/dist/{chunk-ONOINHY4.js → chunk-G2ITKUX4.js} +1 -1
  39. package/dist/{chunk-QWDGHEQL.js → chunk-GM3H4ZHG.js} +1 -1
  40. package/dist/{chunk-AVEF3T6Y.js → chunk-GM4TY5H2.js} +1 -1
  41. package/dist/{chunk-DL5N6V3D.js → chunk-GQEVQIS6.js} +1 -1
  42. package/dist/{chunk-5R5FEPLH.js → chunk-H2L5NB5U.js} +98 -17
  43. package/dist/{chunk-CGXYPLK3.js → chunk-HTQFAHXD.js} +2 -2
  44. package/dist/{chunk-QONY6C2B.js → chunk-IOURL3LH.js} +15 -9
  45. package/dist/{chunk-XE2PXGZT.js → chunk-JKQAOSSX.js} +3 -3
  46. package/dist/{chunk-3XWZKL2P.js → chunk-JKYCEXZX.js} +7 -7
  47. package/dist/{chunk-45TFVWNT.js → chunk-JW25JVK4.js} +5 -5
  48. package/dist/{chunk-VWNQRD4I.js → chunk-KMUERD5F.js} +4 -4
  49. package/dist/{chunk-AJC5Q2NY.js → chunk-LFBQL4AP.js} +5 -5
  50. package/dist/{chunk-3DVCPRKE.js → chunk-LRE4QIMD.js} +7 -7
  51. package/dist/{chunk-GMRVWRHD.js → chunk-M4JFGNG7.js} +2 -2
  52. package/dist/{chunk-X2DX3A7H.js → chunk-MCLSXTLY.js} +1 -1
  53. package/dist/{chunk-BO3NOGKE.js → chunk-ML3O3A3Q.js} +1 -1
  54. package/dist/{chunk-ABN4UBR5.js → chunk-NMCRJ7NZ.js} +2 -2
  55. package/dist/{chunk-CCMKLF7K.js → chunk-NTRXOTO7.js} +4 -4
  56. package/dist/{chunk-256R6O56.js → chunk-OMCDOJO2.js} +8 -5
  57. package/dist/{chunk-OGQW7A4G.js → chunk-QHOC32DP.js} +8 -8
  58. package/dist/{chunk-SMFWLPXC.js → chunk-RDPLNQFI.js} +18 -17
  59. package/dist/{chunk-JTDMSQMI.js → chunk-RFBJKK2L.js} +7 -7
  60. package/dist/{chunk-BL6CCU26.js → chunk-SUMXGPSG.js} +5 -5
  61. package/dist/{chunk-XDRZ3BNA.js → chunk-T7KETYNW.js} +1 -1
  62. package/dist/{chunk-PMJ6IEUM.js → chunk-TDBP62O2.js} +7 -7
  63. package/dist/{chunk-RZ6WJTUP.js → chunk-TDUBZ4FR.js} +1 -1
  64. package/dist/{chunk-AMG5ICDO.js → chunk-TFBNHDPT.js} +4 -4
  65. package/dist/{chunk-DVFGCVTV.js → chunk-TMYBADTM.js} +5 -5
  66. package/dist/{chunk-EFAOERZH.js → chunk-TOVSIUEJ.js} +1 -1
  67. package/dist/{chunk-EERD7VI3.js → chunk-U4ZHNHCF.js} +1 -1
  68. package/dist/{chunk-VNT2IRLM.js → chunk-UF3YTRGU.js} +70 -11
  69. package/dist/{chunk-U7L4GBGS.js → chunk-USJVENIV.js} +1 -1
  70. package/dist/{chunk-2MQQASWB.js → chunk-VOSC32UF.js} +6 -6
  71. package/dist/{chunk-FOUG2R4Q.js → chunk-VRSUCU2N.js} +1 -1
  72. package/dist/{chunk-YZRDJOOR.js → chunk-XDVLF6OT.js} +3 -3
  73. package/dist/{chunk-DK5YFDYI.js → chunk-YL6GWLK5.js} +8 -8
  74. package/dist/{chunk-YKWOVYVN.js → chunk-YSIVKYLW.js} +9 -6
  75. package/dist/{chunk-5VAXNAOD.js → chunk-YZ5M7S7U.js} +1 -1
  76. package/dist/{chunk-RUJR3SDB.js → chunk-ZGN3NOVS.js} +1 -1
  77. package/dist/{chunk-OFWNBTLU.js → chunk-ZOWUJUSF.js} +1 -1
  78. package/dist/{chunk-FER7JJ3S.js → chunk-ZPCUXCQX.js} +1 -1
  79. package/dist/{chunk-Z4R36YDJ.js → chunk-ZYQT6Q5R.js} +1379 -628
  80. package/dist/{claude-launcher-FHQTSQOM.js → claude-launcher-G73I5AGW.js} +6 -6
  81. package/dist/{cli-GNC4MFMP.js → cli-5SILU2LX.js} +154 -147
  82. package/dist/{command-47EYM2FJ.js → command-DBBEP7VM.js} +56 -49
  83. package/dist/{config-EA6WVKAS.js → config-KOSTQZXG.js} +11 -11
  84. package/dist/{connect-cmd-4JO2LBUT.js → connect-cmd-UNBJYFYM.js} +10 -10
  85. package/dist/{container-start-XR7KANS6.js → container-start-AAOLPVAH.js} +45 -45
  86. package/dist/{context-cleanup-6CTKLEUT.js → context-cleanup-MKVMFRNR.js} +3 -3
  87. package/dist/{context-show-cmd-Z7NQAKNE.js → context-show-cmd-P3LBILMP.js} +11 -11
  88. package/dist/{control-plane-launch-4PLBJKBS.js → control-plane-launch-2GOJKA53.js} +13 -13
  89. package/dist/{demo-record-cmd-3B2ME2ZI.js → demo-record-cmd-BPINCNYS.js} +7 -7
  90. package/dist/{demo-voice-cmd-LIXAA3OS.js → demo-voice-cmd-HBK3TWM5.js} +17 -17
  91. package/dist/{dist-3TV6G4YF.js → dist-MUOHO52Q.js} +1 -1
  92. package/dist/{docker-FPEQS6HK.js → docker-NUPVSMVQ.js} +9 -9
  93. package/dist/{doctor-AFH6UUX6.js → doctor-GHRSOZLB.js} +53 -47
  94. package/dist/{emit-artifact-cmd-5XIEUWFX.js → emit-artifact-cmd-CULA5AM4.js} +16 -16
  95. package/dist/{emit-cmd-IKYF27IK.js → emit-cmd-746N7PYR.js} +6 -6
  96. package/dist/{emit-criteria-cmd-YS5ZSLCN.js → emit-criteria-cmd-NY4RPUPD.js} +13 -13
  97. package/dist/{emit-demo-cmd-IDC2JC46.js → emit-demo-cmd-MYXTGMJI.js} +17 -17
  98. package/dist/{emit-finding-cmd-C4NRTIZO.js → emit-finding-cmd-ZGGMPQFT.js} +13 -13
  99. package/dist/{emit-result-cmd-GC2I7JQU.js → emit-result-cmd-GNEQHIIZ.js} +15 -15
  100. package/dist/{emit-step-cmd-TTH4FYFW.js → emit-step-cmd-NYCJ3XFQ.js} +13 -13
  101. package/dist/{exec-client-DT5EWVQL.js → exec-client-QHB62OZ6.js} +7 -7
  102. package/dist/find-unit-UVS2FM7E.js +24 -0
  103. package/dist/{findings-cmd-MSV52ODM.js → findings-cmd-ZINCPCAB.js} +13 -13
  104. package/dist/{fleet-readiness-O76CSI7M.js → fleet-readiness-FZCSJ7FY.js} +12 -12
  105. package/dist/{governing-source-QEFYVBQF.js → governing-source-CQML5N2D.js} +18 -18
  106. package/dist/{guest-init-X7M5AIOI.js → guest-init-C6FWJVAQ.js} +8 -8
  107. package/dist/{hook-fast-T6FOTZHA.js → hook-fast-6IOLZ45F.js} +1 -1
  108. package/dist/{hook-install-OUSUHQ6C.js → hook-install-VL4CEO4S.js} +3 -3
  109. package/dist/host-checks-HPCMZ7XT.js +79 -0
  110. package/dist/{host-key-UFUIBFBF.js → host-key-5APXLMY2.js} +7 -7
  111. package/dist/{image-tag-AE6EKDPV.js → image-tag-IBAYH5XH.js} +7 -7
  112. package/dist/index.js +4 -4
  113. package/dist/{init-PUN3PKOT.js → init-EIQFBAZI.js} +43 -43
  114. package/dist/init-YD4MNH5U.js +79 -0
  115. package/dist/{init-agent-D3KK24QX.js → init-agent-7UQZFG5E.js} +43 -43
  116. package/dist/{init-cmd-LGRN3U7K.js → init-cmd-TNJXWFQU.js} +24 -24
  117. package/dist/{init-update-ZL2J7EQI.js → init-update-KJWMEKR3.js} +21 -21
  118. package/dist/{install-cmd-4ID4VBH2.js → install-cmd-UXH2LGVA.js} +9 -9
  119. package/dist/{layout-G6K72TXK.js → layout-YVTZDKVU.js} +3 -3
  120. package/dist/{logs-DIA3NWC2.js → logs-22Y7QG42.js} +6 -6
  121. package/dist/loop-SVE6TL6G.js +90 -0
  122. package/dist/machine-RQIO5VRG.js +79 -0
  123. package/dist/{machine-skills-JLJJDXBS.js → machine-skills-6PJOJU5J.js} +3 -3
  124. package/dist/{mcp-install-cmd-OTAX7QP2.js → mcp-install-cmd-LJ7AYDDT.js} +3 -3
  125. package/dist/{mcp-serve-cmd-63KQEQYS.js → mcp-serve-cmd-34LDKQSR.js} +8 -8
  126. package/dist/{paths-KVMMJQ7T.js → paths-2KOZGV5U.js} +6 -6
  127. package/dist/{pending-2IE3VBAN.js → pending-RYWBDJCE.js} +7 -7
  128. package/dist/{pidfile-NCBBWZNH.js → pidfile-FQBXIHX7.js} +7 -7
  129. package/dist/{record-PQDJVKYV.js → record-7ENQ7Y5M.js} +7 -7
  130. package/dist/relay-JLU7RTFS.js +474 -0
  131. package/dist/{relay-protocol-PJ2HOP6B.js → relay-protocol-AEIZCA3K.js} +4 -4
  132. package/dist/{runner-agents-CEW4Z3FR.js → runner-agents-I5YLJY7G.js} +3 -3
  133. package/dist/{runner-env-23OLQBQZ.js → runner-env-GXY2VMNH.js} +13 -13
  134. package/dist/{runner-identity-IJKE4SRJ.js → runner-identity-MW53HCYG.js} +9 -9
  135. package/dist/{runner-key-4J4MHN3S.js → runner-key-GERK5EV3.js} +43 -43
  136. package/dist/{session-sender-HKNACIH5.js → session-sender-65X5PR7Q.js} +16 -16
  137. package/dist/{spec-cmd-4R7AYTBU.js → spec-cmd-3TNVJBN7.js} +14 -14
  138. package/dist/{starter-pack-6C7HPT4O.js → starter-pack-PLSMFXBU.js} +4 -4
  139. package/dist/{state-DPEWDXQN.js → state-EKXXOPA5.js} +7 -7
  140. package/dist/{status-GMVC666R.js → status-KGSQF55G.js} +43 -43
  141. package/dist/{sync-cmd-UMAENSGZ.js → sync-cmd-FNATZ5VL.js} +15 -15
  142. package/dist/update-steps-3LOJ377U.js +80 -0
  143. package/dist/{watch-RAUF223H.js → watch-FEBBRV22.js} +15 -15
  144. package/dist/{work-claim-cmd-A3ISXUFA.js → work-claim-cmd-2EPUH3KT.js} +19 -19
  145. package/dist/{work-cmd-U7YLMDZ7.js → work-cmd-V5A3MDXV.js} +13 -13
  146. package/dist/{work-comment-cmd-CMWMOWVG.js → work-comment-cmd-PUE47SUV.js} +15 -15
  147. package/dist/{work-demo-cmd-EKTJHIVM.js → work-demo-cmd-7Q3KW2OO.js} +13 -13
  148. package/dist/{work-logs-cmd-Z3QOFYTJ.js → work-logs-cmd-SQBJX6MC.js} +13 -13
  149. package/dist/{work-open-pr-cmd-NJXIX3QZ.js → work-open-pr-cmd-PNDF2CR5.js} +14 -14
  150. package/dist/{work-pr-cmd-JUV3SN7I.js → work-pr-cmd-U7WL7KYE.js} +13 -13
  151. package/dist/{work-proofs-cmd-MIDPIFTH.js → work-proofs-cmd-YHOM2NIH.js} +15 -15
  152. package/dist/{work-proofs-record-6FTMJDQG.js → work-proofs-record-CYIZ2RDH.js} +21 -21
  153. package/dist/{work-stop-cmd-Z7MYNR7R.js → work-stop-cmd-ENRSBWFT.js} +13 -13
  154. package/package.json +1 -1
  155. package/skill-pack/maintained/outerlayer-amend/SKILL.md +13 -13
  156. package/skill-pack/maintained/outerlayer-amend/references/failed-checks.md +35 -0
  157. package/skill-pack/maintained/outerlayer-build/SKILL.md +3 -1
  158. package/dist/caller-XETCC46J.js +0 -23
  159. package/dist/find-unit-337Y4QAC.js +0 -24
  160. package/dist/host-checks-OXB5J3KR.js +0 -79
  161. package/dist/init-V7X3KA7B.js +0 -79
  162. package/dist/loop-AWBFKDV7.js +0 -90
  163. package/dist/machine-BZPKYURG.js +0 -79
  164. package/dist/relay-QDB526DJ.js +0 -223
  165. package/dist/update-steps-GTXNCG3Z.js +0 -80
@@ -1,50 +1,50 @@
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-SMFWLPXC.js';
4
- import './chunk-ERQLHUWU.js';
5
- import { verifiedTrackerNames, TRACKERS } from './chunk-JTDMSQMI.js';
6
- import './chunk-DL5N6V3D.js';
7
- import './chunk-XE2PXGZT.js';
8
- import './chunk-BL6CCU26.js';
9
- import './chunk-EERD7VI3.js';
10
- import './chunk-FGVVBYCT.js';
11
- import './chunk-ABN4UBR5.js';
12
- import './chunk-EXIZ3G6I.js';
3
+ import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-RDPLNQFI.js';
4
+ import './chunk-5QBTW367.js';
5
+ import { verifiedTrackerNames, TRACKERS } from './chunk-RFBJKK2L.js';
6
+ import './chunk-GQEVQIS6.js';
7
+ import './chunk-JKQAOSSX.js';
8
+ import './chunk-SUMXGPSG.js';
9
+ import './chunk-U4ZHNHCF.js';
10
+ import './chunk-2VN36ZPA.js';
11
+ import './chunk-NMCRJ7NZ.js';
12
+ import './chunk-3KVYSJAL.js';
13
13
  import './chunk-IXB2IIEW.js';
14
- import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-YWWW47OY.js';
14
+ import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-CFTSVW7W.js';
15
15
  import './chunk-NEEMG462.js';
16
16
  import './chunk-A2LHHKTT.js';
17
17
  import { C, warnDeprecated, API_KEY_FLAG_DEPRECATION, NO_COLOR_FLAG, stripNoColor } from './chunk-2AM6Z5BP.js';
18
- import './chunk-T524XQKI.js';
19
- import './chunk-XDRZ3BNA.js';
18
+ import './chunk-2MA2KWHN.js';
19
+ import './chunk-T7KETYNW.js';
20
20
  import './chunk-HWVMRETT.js';
21
- import './chunk-EFAOERZH.js';
22
- import './chunk-5VAXNAOD.js';
23
- import './chunk-OUHM6U6Z.js';
24
- import './chunk-CGXYPLK3.js';
25
- import { hookFiredMarkerPath, installedCliDistDir } from './chunk-256R6O56.js';
21
+ import './chunk-TOVSIUEJ.js';
22
+ import './chunk-YZ5M7S7U.js';
23
+ import './chunk-FCU7WSCV.js';
24
+ import './chunk-HTQFAHXD.js';
25
+ import { hookFiredMarkerPath, installedCliDistDir } from './chunk-OMCDOJO2.js';
26
26
  import './chunk-545P7JY7.js';
27
27
  import './chunk-SF2TBJBP.js';
28
28
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
29
29
  import './chunk-M53UNEO6.js';
30
30
  import './chunk-BKO6JEZI.js';
31
- import './chunk-OFWNBTLU.js';
31
+ import './chunk-ZOWUJUSF.js';
32
32
  import './chunk-NFZMENCY.js';
33
33
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
34
34
  import { cliInvocation, packageRunnerOf } from './chunk-FZKNTIOJ.js';
35
- import { installAgents, settingsFileOf, withSettingsText } from './chunk-EHJYXABQ.js';
35
+ import { installAgents, settingsFileOf, withSettingsText } from './chunk-4PH3KXDP.js';
36
36
  import { cliForInstall, SettingsParseError, PORTABLE_BIN, writeSettingsText, cliBinResolvable } from './chunk-ZHQC43NH.js';
37
- import './chunk-FOUG2R4Q.js';
37
+ import './chunk-VRSUCU2N.js';
38
38
  import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
39
39
  import { removeJournalHooks, removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
40
- import { headlessNames, credentialForms, runnerAgentNamed, credentialAgent, runnerAgents, orList, credentialShapes } from './chunk-RZ6WJTUP.js';
41
- import { defaultAgents, knownTargetsLine, legacyAgent } from './chunk-AVEF3T6Y.js';
40
+ import { headlessNames, credentialForms, runnerAgentNamed, credentialAgent, runnerAgents, orList, credentialShapes } from './chunk-TDUBZ4FR.js';
41
+ import { defaultAgents, knownTargetsLine, legacyAgent } from './chunk-GM4TY5H2.js';
42
42
  import './chunk-PLVHIQJN.js';
43
43
  import './chunk-7PZDPISM.js';
44
44
  import './chunk-CDDED64E.js';
45
45
  import { resolveVersion, resolvePackageVersion } from './chunk-RA3O54FC.js';
46
46
  import { homeFromEnv } from './chunk-352DHUTP.js';
47
- import './chunk-5R5FEPLH.js';
47
+ import './chunk-H2L5NB5U.js';
48
48
  import './chunk-YXXJBHHF.js';
49
49
  import './chunk-Z5GEFMRW.js';
50
50
  import { EventEmitter } from 'events';
@@ -3659,14 +3659,14 @@ function apiKeyOption() {
3659
3659
  return new Option("--api-key <key>", `deprecated: use \`${cliInvocation()} login\` or OUTERLAYER_API_KEY`).hideHelp();
3660
3660
  }
3661
3661
  async function installStarterPackInRepo() {
3662
- const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-6C7HPT4O.js');
3662
+ const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-PLSMFXBU.js');
3663
3663
  const cwd = process.cwd();
3664
3664
  let repoRoot = cwd;
3665
3665
  try {
3666
3666
  repoRoot = execFileSync("git", ["rev-parse", "--show-toplevel"], { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim() || cwd;
3667
3667
  } catch {
3668
3668
  }
3669
- const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-G6K72TXK.js');
3669
+ const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-YVTZDKVU.js');
3670
3670
  const fresh = !isAgentsMdLayout(repoRoot) && !existsSync(join(repoRoot, ".outerlayer/skills")) && !existsSync(join(repoRoot, ".outerlayer/AGENTS.md"));
3671
3671
  const result = installStarterPack({ repoRoot, base: fresh ? ".agents/skills" : skillsBaseFor(repoRoot) });
3672
3672
  if (fresh) declareAgentsMdLayout(repoRoot);
@@ -3809,7 +3809,7 @@ ${starter.output}`),
3809
3809
  }
3810
3810
  }
3811
3811
  async function installMachineSkillsForSetup() {
3812
- const { setupMachineSkills } = await import('./machine-skills-JLJJDXBS.js');
3812
+ const { setupMachineSkills } = await import('./machine-skills-6PJOJU5J.js');
3813
3813
  const result = setupMachineSkills(homeFromEnv());
3814
3814
  for (const failure of result.failures) process.stderr.write(`${C.yellow}!${C.reset} Could not write a maintained skill: ${failure}
3815
3815
  `);
@@ -3817,8 +3817,8 @@ async function installMachineSkillsForSetup() {
3817
3817
  ` : "";
3818
3818
  }
3819
3819
  async function realConnectDepsForCwd() {
3820
- const { realConnectDeps } = await import('./connect-cmd-4JO2LBUT.js');
3821
- const { resolveRepoIdentity } = await import('./dist-3TV6G4YF.js');
3820
+ const { realConnectDeps } = await import('./connect-cmd-UNBJYFYM.js');
3821
+ const { resolveRepoIdentity } = await import('./dist-MUOHO52Q.js');
3822
3822
  return {
3823
3823
  ...realConnectDeps(),
3824
3824
  home: homeFromEnv(),
@@ -3835,7 +3835,7 @@ function buildProgram(argv = process.argv) {
3835
3835
  const program2 = new Command();
3836
3836
  program2.name(cliInvocation()).description("OuterLayer \u2014 see what your coding agents actually do").enablePositionalOptions().version(resolveVersion()).hook("preAction", async (_root, command) => {
3837
3837
  if (command.opts().apiKey !== void 0) warnDeprecated(API_KEY_FLAG_DEPRECATION);
3838
- const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-JLJJDXBS.js');
3838
+ const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-6PJOJU5J.js');
3839
3839
  const names = [];
3840
3840
  for (let at = command; at?.parent; at = at.parent) names.push(at.name());
3841
3841
  if (!machineRefreshSkipped(names, command._hidden === true, argv)) refreshMachineSkills(homeFromEnv());
@@ -3892,8 +3892,8 @@ build, ../outerlayer-build/SKILL.md becomes ~/.agents/skills/outerlayer-build/SK
3892
3892
  what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocation() + " doctor` reports the same\nstates under Starter files.\n"
3893
3893
  ).action(async (opts) => {
3894
3894
  if (opts.update || opts.dryRun) {
3895
- const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-ZL2J7EQI.js');
3896
- const { fleetReadiness } = await import('./fleet-readiness-O76CSI7M.js');
3895
+ const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-KJWMEKR3.js');
3896
+ const { fleetReadiness } = await import('./fleet-readiness-FZCSJ7FY.js');
3897
3897
  const problem = updateFlagProblem(opts);
3898
3898
  if (problem !== void 0) {
3899
3899
  fail(problem);
@@ -3910,7 +3910,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3910
3910
  }
3911
3911
  let starterTemplate;
3912
3912
  if (opts.template !== void 0) {
3913
- const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-6C7HPT4O.js');
3913
+ const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-PLSMFXBU.js');
3914
3914
  try {
3915
3915
  assertKnownTemplate(opts.template);
3916
3916
  } catch (err) {
@@ -3944,13 +3944,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3944
3944
  if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
3945
3945
  `);
3946
3946
  }
3947
- const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-LGRN3U7K.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3947
+ const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-TNJXWFQU.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3948
3948
  if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
3949
3949
  else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
3950
3950
  return;
3951
3951
  }
3952
3952
  await installMachineSkillsForSetup();
3953
- const { runInitCommand } = await import('./init-cmd-LGRN3U7K.js');
3953
+ const { runInitCommand } = await import('./init-cmd-TNJXWFQU.js');
3954
3954
  const code = await runInitCommand(
3955
3955
  { json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
3956
3956
  {
@@ -3962,7 +3962,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3962
3962
  return { ok, text, detail };
3963
3963
  },
3964
3964
  runAgentSetup: async () => {
3965
- const { runAgentSetup } = await import('./agent-setup-CBEPGNFY.js');
3965
+ const { runAgentSetup } = await import('./agent-setup-RO2DJUF3.js');
3966
3966
  return runAgentSetup({ cwd: process.cwd(), skillsLink: opts.skillsLink !== false });
3967
3967
  },
3968
3968
  runDoctorChecks: gatherDoctorChecks,
@@ -3971,7 +3971,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3971
3971
  shellPath: process.env.SHELL,
3972
3972
  interactive: Boolean(process.stdin.isTTY && process.stderr.isTTY) && opts.json !== true,
3973
3973
  ask: async () => {
3974
- const { promptOnTerminal } = await import('./connect-cmd-4JO2LBUT.js');
3974
+ const { promptOnTerminal } = await import('./connect-cmd-UNBJYFYM.js');
3975
3975
  const answer = await promptOnTerminal({
3976
3976
  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.`,
3977
3977
  options: [
@@ -4010,15 +4010,19 @@ linked (true, false, or null when it could not be checked) and, when false,
4010
4010
  linkUrl.
4011
4011
  `
4012
4012
  ).action(async (opts) => {
4013
- const { runConnectCommand } = await import('./connect-cmd-4JO2LBUT.js');
4013
+ const { runConnectCommand } = await import('./connect-cmd-UNBJYFYM.js');
4014
4014
  const code = await runConnectCommand({ factory: opts.factory, json: opts.json }, await realConnectDepsForCwd(), {
4015
4015
  stdout: process.stdout,
4016
4016
  stderr: process.stderr
4017
4017
  });
4018
4018
  if (code !== 0) process.exitCode = code;
4019
4019
  });
4020
- program2.command("doctor").description("Diagnose the capture setup; every failing check names its fix").option("--json", "machine-readable JSON output").action(async (opts) => {
4021
- const checks = await gatherDoctorChecks();
4020
+ program2.command("doctor").description("Diagnose the capture setup; every failing check names its fix").option("--json", "machine-readable JSON output").option("--config <path>", "the runner's config file to check (default: ~/.outerlayer/config.json)").action(async (opts) => {
4021
+ if (opts.config !== void 0 && !existsSync(opts.config)) {
4022
+ fail(`no config file at ${opts.config}`);
4023
+ return;
4024
+ }
4025
+ const checks = await gatherDoctorChecks(opts.config === void 0 ? {} : { configPath: opts.config });
4022
4026
  process.exitCode = doctorExitCode(checks);
4023
4027
  if (opts.json) {
4024
4028
  writeJson({ checks, summary: summarizeChecks(checks) });
@@ -4088,7 +4092,7 @@ code is 1: revoke the token on /profile/security.
4088
4092
  else fail(found.reason);
4089
4093
  return;
4090
4094
  }
4091
- const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-UMAENSGZ.js');
4095
+ const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-FNATZ5VL.js');
4092
4096
  try {
4093
4097
  const result = await runSync({
4094
4098
  url: opts.url,
@@ -4117,7 +4121,7 @@ code is 1: revoke the token on /profile/security.
4117
4121
  if (invokedCommandToken(argv) === "watch") {
4118
4122
  warnDeprecated(`\`${cliInvocation()} watch\` is now \`${cliInvocation()} daemon\`; the old name will be removed in a future release.`);
4119
4123
  }
4120
- const { runWatch } = await import('./watch-RAUF223H.js');
4124
+ const { runWatch } = await import('./watch-FEBBRV22.js');
4121
4125
  await runWatch({ once: opts.once });
4122
4126
  });
4123
4127
  program2.command("hook <event>", { hidden: true }).description("capture-hook fast path, installed by `init`").option("--agent <id>", "the agent that sent the event; with none, Claude Code").action(() => {
@@ -4131,9 +4135,9 @@ code is 1: revoke the token on /profile/security.
4131
4135
  program2.command(`${agent.descriptor.legacy?.subcommand ?? agent.descriptor.id} [args...]`).description(`start ${agent.descriptor.label} with the repository's control plane attached`).allowUnknownOption().helpOption(false).action(() => {
4132
4136
  });
4133
4137
  }
4134
- const brokerRelay = program2.command("broker-relay", { hidden: true }).description("relay a build's loopback connections to the runner's tunnel and destinations").enablePositionalOptions().option("--port <port>", "the loopback port to listen on").option("--socket <path>", "the runner's tunnel socket").option("--join <path>", "the socket the runner's joining process connects to").option("--lease-watchdog", "exit when the runner's lease expiry passes; needs --join").option("--forward <port=target>", "also relay a loopback port to a destination; repeatable", (value, previous) => [...previous, value], []).action(async (opts) => {
4135
- const { startRelay, startSessionRelay } = await import('./relay-QDB526DJ.js');
4136
- const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-PJ2HOP6B.js');
4138
+ const brokerRelay = program2.command("broker-relay", { hidden: true }).description("relay a build's loopback connections to the runner's tunnel and destinations").enablePositionalOptions().option("--port <port>", "the loopback port to listen on").option("--socket <path>", "the runner's tunnel socket").option("--join <path>", "the socket the runner's joining process connects to").option("--lease-watchdog", "exit when the runner's lease expiry passes; needs --join").option("--join-ws <port>", "also take the runner's session over a WebSocket on this port").option("--join-secret-file <path>", "the secret a WebSocket join sends first; needs --join-ws").option("--forward <port=target>", "also relay a loopback port to a destination; repeatable", (value, previous) => [...previous, value], []).action(async (opts) => {
4139
+ const { startRelay, startSessionRelay } = await import('./relay-JLU7RTFS.js');
4140
+ const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-AEIZCA3K.js');
4137
4141
  const port = Number(opts.port);
4138
4142
  if (!Number.isInteger(port) || port < 1 || port > 65535) {
4139
4143
  fail(opts.port === void 0 ? "--port is required" : `--port must be a port number, not ${opts.port}`);
@@ -4143,6 +4147,11 @@ code is 1: revoke the token on /profile/security.
4143
4147
  fail("give one of --socket and --join");
4144
4148
  return;
4145
4149
  }
4150
+ const joinWsPort = opts.joinWs === void 0 ? void 0 : Number(opts.joinWs);
4151
+ if (opts.joinWs !== void 0 && (opts.join === void 0 || opts.joinSecretFile === void 0 || joinWsPort === void 0 || !Number.isInteger(joinWsPort) || joinWsPort < 1 || joinWsPort > 65535)) {
4152
+ fail("--join-ws needs a port number, --join and --join-secret-file");
4153
+ return;
4154
+ }
4146
4155
  const forwards = [];
4147
4156
  for (const spec of opts.forward) {
4148
4157
  const eq = spec.indexOf("=");
@@ -4158,6 +4167,7 @@ code is 1: revoke the token on /profile/security.
4158
4167
  await startSessionRelay({
4159
4168
  joinPath: opts.join,
4160
4169
  ...opts.leaseWatchdog === true ? { onLeaseExpired: () => process.exit(0) } : {},
4170
+ ...joinWsPort === void 0 ? {} : { joinWs: { port: joinWsPort, secretPath: opts.joinSecretFile } },
4161
4171
  ports: [{ port, target: TARGET_TUNNEL }, ...forwards.map((forward) => ({ port: forward.port, target: forward.spec }))]
4162
4172
  });
4163
4173
  return;
@@ -4165,7 +4175,7 @@ code is 1: revoke the token on /profile/security.
4165
4175
  await startRelay({ port, socketPath: opts.socket, forwards: forwards.map((forward) => ({ port: forward.port, socketPath: forward.spec })) });
4166
4176
  });
4167
4177
  brokerRelay.command("join").description("carry the runner's session to the relay over standard input and output").option("--socket <path>", "the relay's joining socket", "/run/outerlayer-relay/join.sock").action(async (opts) => {
4168
- const { joinRelay } = await import('./relay-QDB526DJ.js');
4178
+ const { joinRelay } = await import('./relay-JLU7RTFS.js');
4169
4179
  try {
4170
4180
  await joinRelay({ socketPath: opts.socket, input: process.stdin, output: process.stdout });
4171
4181
  } catch (err) {
@@ -4181,7 +4191,7 @@ code is 1: revoke the token on /profile/security.
4181
4191
  }
4182
4192
  });
4183
4193
  program2.command("vm-exec", { hidden: true }).description("run a command in a microVM build's guest through its exec agent").requiredOption("--socket <path>", "the Unix socket Firecracker serves the build's vsock device on").option("--user <user>", "the user to run as", "").option("--cwd <dir>", "the working directory", "/").option("--env <NAME=value>", "an environment value the command line carries; repeatable", (value, previous) => [...previous, value], []).option("--pass <NAME>", "an environment variable whose value is read from this process; repeatable", (value, previous) => [...previous, value], []).argument("<argv...>", "the command and its arguments").action(async (argv2, opts) => {
4184
- const { runVmExec } = await import('./exec-client-DT5EWVQL.js');
4194
+ const { runVmExec } = await import('./exec-client-QHB62OZ6.js');
4185
4195
  const env = {};
4186
4196
  for (const entry of opts.env) {
4187
4197
  const eq = entry.indexOf("=");
@@ -4210,7 +4220,7 @@ code is 1: revoke the token on /profile/security.
4210
4220
  process.exitCode = await runBuildCommand({ dir: opts.dir, argv: command });
4211
4221
  });
4212
4222
  program2.command("session-sender", { hidden: true }).description("stream a runner build's sessions to its work item while the build runs").action(async () => {
4213
- const { runSessionSender } = await import('./session-sender-HKNACIH5.js');
4223
+ const { runSessionSender } = await import('./session-sender-65X5PR7Q.js');
4214
4224
  try {
4215
4225
  await runSessionSender();
4216
4226
  } catch (err) {
@@ -4218,7 +4228,7 @@ code is 1: revoke the token on /profile/security.
4218
4228
  }
4219
4229
  });
4220
4230
  program2.command("vm-init", { hidden: true }).description("lay out a microVM build's guest; the guest helper runs it").action(async () => {
4221
- const { realGuestHost, runGuestInit } = await import('./guest-init-X7M5AIOI.js');
4231
+ const { realGuestHost, runGuestInit } = await import('./guest-init-C6FWJVAQ.js');
4222
4232
  const { readFileSync: readFileSync3 } = await import('fs');
4223
4233
  try {
4224
4234
  runGuestInit(realGuestHost(), readFileSync3("/proc/cmdline", "utf8"));
@@ -4227,7 +4237,7 @@ code is 1: revoke the token on /profile/security.
4227
4237
  }
4228
4238
  });
4229
4239
  program2.command("vm-forward", { hidden: true }).description("pipe a guest port to another; vm-init runs it").requiredOption("--listen <host:port>", "the address to listen on").requiredOption("--to <host:port>", "the address to pipe each connection to").action(async (opts) => {
4230
- const { startBridgeForward } = await import('./bridge-JI4IO7JN.js');
4240
+ const { startBridgeForward } = await import('./bridge-3WAVT5SX.js');
4231
4241
  try {
4232
4242
  await startBridgeForward(opts);
4233
4243
  } catch (err) {
@@ -4253,7 +4263,7 @@ async function runCli(processArgv) {
4253
4263
  await buildProgram(argv).parseAsync(argv);
4254
4264
  }
4255
4265
  async function compileContext(opts) {
4256
- const { runEmit, EmitError } = await import('./emit-cmd-IKYF27IK.js');
4266
+ const { runEmit, EmitError } = await import('./emit-cmd-746N7PYR.js');
4257
4267
  try {
4258
4268
  const result = runEmit({ cwd: opts.dir, check: opts.check, json: opts.json });
4259
4269
  if (result.exitCode !== 0) process.exitCode = result.exitCode;
@@ -4306,7 +4316,7 @@ Compiling .outerlayer/ moved to \`${cliInvocation()} context emit\`.
4306
4316
  await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
4307
4317
  return;
4308
4318
  }
4309
- const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-GC2I7JQU.js');
4319
+ const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-GNEQHIIZ.js');
4310
4320
  try {
4311
4321
  const result = await runEmitResult({
4312
4322
  name,
@@ -4358,7 +4368,7 @@ everywhere, bytes and deep link untouched; a still-queued one is cancelled
4358
4368
  locally so it never uploads. One correction can retire several duplicates.
4359
4369
  `
4360
4370
  ).action(async (file, opts) => {
4361
- const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-5XIEUWFX.js');
4371
+ const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-CULA5AM4.js');
4362
4372
  let pr;
4363
4373
  if (opts.pr !== void 0) {
4364
4374
  pr = parseTrackerNumber(opts.pr);
@@ -4414,7 +4424,7 @@ its criterion, and the new record retires the old record. The id must be the ite
4414
4424
  as \`work demo --item <n> --json\` prints it.
4415
4425
  `
4416
4426
  ).action(async (manifest, opts) => {
4417
- const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-IDC2JC46.js');
4427
+ const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-MYXTGMJI.js');
4418
4428
  let item;
4419
4429
  if (opts.item !== void 0) {
4420
4430
  item = parseTrackerNumber(opts.item);
@@ -4457,7 +4467,7 @@ as \`work demo --item <n> --json\` prints it.
4457
4467
  }
4458
4468
  });
4459
4469
  program2.command("demo-voice", { hidden: true }).description("Speak demo lines for a recorder: JSON lines in on stdin, out on stdout").action(async () => {
4460
- const { runDemoVoice } = await import('./demo-voice-cmd-LIXAA3OS.js');
4470
+ const { runDemoVoice } = await import('./demo-voice-cmd-HBK3TWM5.js');
4461
4471
  await runDemoVoice();
4462
4472
  });
4463
4473
  const demoCmd = program2.command("demo").description("Record demos with the recorder this CLI carries");
@@ -4475,7 +4485,7 @@ and the command prints the manifest's path for \`emit demo\`. Under \`work proof
4475
4485
  to OUTERLAYER_PROOF_OUT instead. Exit 1 means the demo's test failed; its manifest is written all the same.
4476
4486
  `
4477
4487
  ).action(async (file, opts) => {
4478
- const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-3B2ME2ZI.js');
4488
+ const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-BPINCNYS.js');
4479
4489
  try {
4480
4490
  const result = await runDemoRecord({
4481
4491
  file,
@@ -4524,7 +4534,7 @@ recent events with their ids. --find <text> searches all of them.
4524
4534
  item that session was launched for is used automatically.
4525
4535
  `
4526
4536
  ).action(async (opts) => {
4527
- const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-C4NRTIZO.js');
4537
+ const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-ZGGMPQFT.js');
4528
4538
  try {
4529
4539
  refuseRemovedFindingFlags(opts);
4530
4540
  const result = await runEmitFinding({
@@ -4591,7 +4601,7 @@ the whole batch. "untimed": true records one with no time on purpose.
4591
4601
  that session was launched for is used automatically.
4592
4602
  `
4593
4603
  ).action(async (file, opts) => {
4594
- const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-C4NRTIZO.js');
4604
+ const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-ZGGMPQFT.js');
4595
4605
  try {
4596
4606
  const result = await runEmitFindings({
4597
4607
  file,
@@ -4626,7 +4636,7 @@ command, the command exits 0, and \`sync\` sends it later. If the gateway refuse
4626
4636
  the step, the command prints why and exits 1.
4627
4637
  `
4628
4638
  ).action(async (name, opts) => {
4629
- const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-TTH4FYFW.js');
4639
+ const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-NYCJ3XFQ.js');
4630
4640
  try {
4631
4641
  await runEmitStep({
4632
4642
  name,
@@ -4669,7 +4679,7 @@ of the item, and a (proof: <kind>) annotation names its proof.
4669
4679
  ${cliInvocation()} emit criteria acceptance/412-login.md --item 412
4670
4680
  `
4671
4681
  ).action(async (file, opts) => {
4672
- const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-YS5ZSLCN.js');
4682
+ const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-NY4RPUPD.js');
4673
4683
  try {
4674
4684
  const result = await runEmitCriteria({
4675
4685
  file,
@@ -4693,9 +4703,9 @@ function registerSpecCommands(program2) {
4693
4703
  const specCmd = program2.command("spec").description("Find, file and edit the issue a spec lives in, in your factory's tracker");
4694
4704
  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)");
4695
4705
  const run = async (action) => {
4696
- const { WorkCommandError } = await import('./work-cmd-U7YLMDZ7.js');
4706
+ const { WorkCommandError } = await import('./work-cmd-V5A3MDXV.js');
4697
4707
  try {
4698
- await action(await import('./spec-cmd-4R7AYTBU.js'));
4708
+ await action(await import('./spec-cmd-3TNVJBN7.js'));
4699
4709
  } catch (err) {
4700
4710
  if (err instanceof WorkCommandError) {
4701
4711
  fail(err.message);
@@ -4730,7 +4740,7 @@ Prints each problem the item covers with its id, its reports and its result.
4730
4740
  session was launched for is used.
4731
4741
  `
4732
4742
  ).action(async (opts) => {
4733
- const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-MSV52ODM.js');
4743
+ const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-ZINCPCAB.js');
4734
4744
  try {
4735
4745
  const result = await runFindingsShow({
4736
4746
  item: opts.item,
@@ -4758,7 +4768,7 @@ Give exactly one of --fixed and --not-fixed, and a --note. Run it again for the
4758
4768
  problem to replace the earlier result. A problem the item does not cover is refused.
4759
4769
  `
4760
4770
  ).action(async (problem, opts) => {
4761
- const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-MSV52ODM.js');
4771
+ const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-ZINCPCAB.js');
4762
4772
  try {
4763
4773
  const result = await runFindingsResult({
4764
4774
  problem,
@@ -4801,7 +4811,7 @@ takes it, and prints the line that starts your session on it. That
4801
4811
  session links itself and holds the item's lease while it works.
4802
4812
  `
4803
4813
  ).action(async (opts) => {
4804
- const { runWorkBuild, WorkCommandError } = await import('./work-cmd-U7YLMDZ7.js');
4814
+ const { runWorkBuild, WorkCommandError } = await import('./work-cmd-V5A3MDXV.js');
4805
4815
  try {
4806
4816
  await runWorkBuild(opts);
4807
4817
  } catch (err) {
@@ -4824,7 +4834,7 @@ renews that session's own 20-minute lease, unless --no-lease or
4824
4834
  --ended is given, or another worker already holds a live one.
4825
4835
  `
4826
4836
  ).action(async (number, opts) => {
4827
- const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-U7YLMDZ7.js');
4837
+ const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-V5A3MDXV.js');
4828
4838
  try {
4829
4839
  await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
4830
4840
  } catch (err) {
@@ -4855,8 +4865,8 @@ thread at its source. It takes a plain answer: no --criterion and no
4855
4865
  action flag.
4856
4866
  `
4857
4867
  ).action(async (opts) => {
4858
- const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-CMWMOWVG.js');
4859
- const { WorkCommandError } = await import('./work-cmd-U7YLMDZ7.js');
4868
+ const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-PUE47SUV.js');
4869
+ const { WorkCommandError } = await import('./work-cmd-V5A3MDXV.js');
4860
4870
  try {
4861
4871
  await runWorkComment(opts);
4862
4872
  } catch (err) {
@@ -4878,7 +4888,7 @@ nothing and exits 0 when the call fails: the line goes to hook-errors.log,
4878
4888
  and the comment waits for the next agent job.
4879
4889
  `
4880
4890
  ).action(async (ids, opts) => {
4881
- const { runWorkCommentsRead } = await import('./work-comment-cmd-CMWMOWVG.js');
4891
+ const { runWorkCommentsRead } = await import('./work-comment-cmd-PUE47SUV.js');
4882
4892
  await runWorkCommentsRead({ ...opts, commentIds: ids });
4883
4893
  });
4884
4894
  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(
@@ -4894,8 +4904,8 @@ that started outside OuterLayer, such as the line comments of a
4894
4904
  GitHub review, each with its id, source and comments.
4895
4905
  `
4896
4906
  ).action(async (opts) => {
4897
- const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-CMWMOWVG.js');
4898
- const { WorkCommandError } = await import('./work-cmd-U7YLMDZ7.js');
4907
+ const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-PUE47SUV.js');
4908
+ const { WorkCommandError } = await import('./work-cmd-V5A3MDXV.js');
4899
4909
  try {
4900
4910
  await runWorkThreads(opts);
4901
4911
  } catch (err) {
@@ -4919,8 +4929,8 @@ still running, or that an older runner released, has no log and the
4919
4929
  command exits 1.
4920
4930
  `
4921
4931
  ).action(async (opts) => {
4922
- const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-Z3QOFYTJ.js');
4923
- const { WorkCommandError } = await import('./work-cmd-U7YLMDZ7.js');
4932
+ const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-SQBJX6MC.js');
4933
+ const { WorkCommandError } = await import('./work-cmd-V5A3MDXV.js');
4924
4934
  try {
4925
4935
  await runWorkLogs(opts);
4926
4936
  } catch (err) {
@@ -4943,8 +4953,8 @@ item is not built again until a new build request. Exits 1 when no host
4943
4953
  build is running for the item.
4944
4954
  `
4945
4955
  ).action(async (opts) => {
4946
- const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-Z7MYNR7R.js');
4947
- const { WorkCommandError } = await import('./work-cmd-U7YLMDZ7.js');
4956
+ const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-ENRSBWFT.js');
4957
+ const { WorkCommandError } = await import('./work-cmd-V5A3MDXV.js');
4948
4958
  try {
4949
4959
  await runWorkStop(opts);
4950
4960
  } catch (err) {
@@ -4965,8 +4975,8 @@ Prints the item's newest live demo record: its artifact id, the commit it was re
4965
4975
  test file that recorded it. With --json, prints { "demo": null } for an item with no demo.
4966
4976
  `
4967
4977
  ).action(async (opts) => {
4968
- const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-EKTJHIVM.js');
4969
- const { WorkCommandError } = await import('./work-cmd-U7YLMDZ7.js');
4978
+ const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-7Q3KW2OO.js');
4979
+ const { WorkCommandError } = await import('./work-cmd-V5A3MDXV.js');
4970
4980
  try {
4971
4981
  await runWorkDemo(opts);
4972
4982
  } catch (err) {
@@ -4987,7 +4997,7 @@ deletes anything \u2014 the item is removed from Work only once no
4987
4997
  live addition remains on it.
4988
4998
  `
4989
4999
  ).action(async (opts) => {
4990
- const { runWorkRemove, WorkCommandError } = await import('./work-cmd-U7YLMDZ7.js');
5000
+ const { runWorkRemove, WorkCommandError } = await import('./work-cmd-V5A3MDXV.js');
4991
5001
  try {
4992
5002
  await runWorkRemove(opts);
4993
5003
  } catch (err) {
@@ -4999,7 +5009,7 @@ live addition remains on it.
4999
5009
  }
5000
5010
  });
5001
5011
  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) => {
5002
- const { runWorkStatus, WorkCommandError } = await import('./work-cmd-U7YLMDZ7.js');
5012
+ const { runWorkStatus, WorkCommandError } = await import('./work-cmd-V5A3MDXV.js');
5003
5013
  try {
5004
5014
  await runWorkStatus(opts);
5005
5015
  } catch (err) {
@@ -5047,11 +5057,11 @@ stops at once if a tracked file differs from HEAD.
5047
5057
  fail(trackerNumberError("--pr", opts.pr));
5048
5058
  return;
5049
5059
  }
5050
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-MIDPIFTH.js');
5060
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-YHOM2NIH.js');
5051
5061
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5052
5062
  });
5053
5063
  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) => {
5054
- const { runWorkList, WorkCommandError } = await import('./work-cmd-U7YLMDZ7.js');
5064
+ const { runWorkList, WorkCommandError } = await import('./work-cmd-V5A3MDXV.js');
5055
5065
  try {
5056
5066
  await runWorkList(opts);
5057
5067
  } catch (err) {
@@ -5072,7 +5082,7 @@ by a different key is refused; claiming again with the same key extends
5072
5082
  it. --host is a label only.
5073
5083
  `
5074
5084
  ).action(async (opts) => {
5075
- const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-A3ISXUFA.js');
5085
+ const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-2EPUH3KT.js');
5076
5086
  try {
5077
5087
  await runWorkClaim(opts);
5078
5088
  } catch (err) {
@@ -5092,7 +5102,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
5092
5102
  lease has expired, or a 403 if a different key holds it.
5093
5103
  `
5094
5104
  ).action(async (opts) => {
5095
- const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-A3ISXUFA.js');
5105
+ const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-2EPUH3KT.js');
5096
5106
  try {
5097
5107
  await runWorkRenew(opts);
5098
5108
  } catch (err) {
@@ -5124,7 +5134,7 @@ applies to a host's lease only. A later tool call in the session
5124
5134
  takes the lease again.
5125
5135
  `
5126
5136
  ).action(async (opts) => {
5127
- const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-A3ISXUFA.js');
5137
+ const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-2EPUH3KT.js');
5128
5138
  try {
5129
5139
  await runWorkRelease(opts);
5130
5140
  } catch (err) {
@@ -5151,7 +5161,7 @@ Idempotent: declaring the same pull request twice is a no-op.
5151
5161
  needs your own login; an agent session or a factory key is refused.
5152
5162
  `
5153
5163
  ).action(async (number, opts) => {
5154
- const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-JUV3SN7I.js');
5164
+ const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-U7WL7KYE.js');
5155
5165
  try {
5156
5166
  await runWorkPr({ ...opts, number });
5157
5167
  } catch (err) {
@@ -5176,8 +5186,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
5176
5186
  Run it again after a change to the title or description.
5177
5187
  `
5178
5188
  ).action(async (opts) => {
5179
- const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-NJXIX3QZ.js');
5180
- const { WorkCommandError } = await import('./work-cmd-U7YLMDZ7.js');
5189
+ const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-PNDF2CR5.js');
5190
+ const { WorkCommandError } = await import('./work-cmd-V5A3MDXV.js');
5181
5191
  try {
5182
5192
  await runWorkOpenPr(opts);
5183
5193
  } catch (err) {
@@ -5221,9 +5231,9 @@ function registerRunnerCommands(program2) {
5221
5231
  const runnerCmd = program2.command("runner").description("Take work from the implement and amend queues on this machine");
5222
5232
  const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
5223
5233
  runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
5224
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-EA6WVKAS.js');
5225
- const { start, RunnerStartError } = await import('./loop-AWBFKDV7.js');
5226
- const { RunnerAlreadyRunningError } = await import('./pidfile-NCBBWZNH.js');
5234
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-KOSTQZXG.js');
5235
+ const { start, RunnerStartError } = await import('./loop-SVE6TL6G.js');
5236
+ const { RunnerAlreadyRunningError } = await import('./pidfile-FQBXIHX7.js');
5227
5237
  const configPath = opts.config ?? defaultRunnerConfigPath();
5228
5238
  try {
5229
5239
  const { realUpdateDeps } = await import('./real-deps-QX5YH7FG.js');
@@ -5245,10 +5255,10 @@ is optional and defaults to ${words().runnerName}. On a later start it refuses v
5245
5255
  The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5246
5256
  `
5247
5257
  ).action(async () => {
5248
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-EA6WVKAS.js');
5249
- const { containerStart, containerStartExit } = await import('./container-start-XR7KANS6.js');
5250
- const { start, RunnerStartError } = await import('./loop-AWBFKDV7.js');
5251
- const { RunnerAlreadyRunningError } = await import('./pidfile-NCBBWZNH.js');
5258
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-KOSTQZXG.js');
5259
+ const { containerStart, containerStartExit } = await import('./container-start-AAOLPVAH.js');
5260
+ const { start, RunnerStartError } = await import('./loop-SVE6TL6G.js');
5261
+ const { RunnerAlreadyRunningError } = await import('./pidfile-FQBXIHX7.js');
5252
5262
  try {
5253
5263
  const outcome = containerStartExit(await containerStart({
5254
5264
  env: process.env,
@@ -5269,16 +5279,16 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5269
5279
  "after",
5270
5280
  "\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"
5271
5281
  ).action(async (opts) => {
5272
- const { defaultRunnerConfigPath } = await import('./config-EA6WVKAS.js');
5273
- const { runnerDir } = await import('./paths-KVMMJQ7T.js');
5274
- const { runUpdateSteps } = await import('./update-steps-GTXNCG3Z.js');
5282
+ const { defaultRunnerConfigPath } = await import('./config-KOSTQZXG.js');
5283
+ const { runnerDir } = await import('./paths-2KOZGV5U.js');
5284
+ const { runUpdateSteps } = await import('./update-steps-3LOJ377U.js');
5275
5285
  const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
5276
5286
  process.stdout.write(`${text}
5277
5287
  `);
5278
5288
  });
5279
5289
  runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
5280
- const { defaultRunnerConfigPath } = await import('./config-EA6WVKAS.js');
5281
- const { runRunnerCheck } = await import('./check-FG32SYJF.js');
5290
+ const { defaultRunnerConfigPath } = await import('./config-KOSTQZXG.js');
5291
+ const { runRunnerCheck } = await import('./check-LENGOFUF.js');
5282
5292
  const configPath = opts.config ?? defaultRunnerConfigPath();
5283
5293
  const result = await runRunnerCheck(configPath);
5284
5294
  if (!result.ok) {
@@ -5299,8 +5309,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5299
5309
  `);
5300
5310
  });
5301
5311
  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) => {
5302
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-EA6WVKAS.js');
5303
- const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-4ID4VBH2.js');
5312
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-KOSTQZXG.js');
5313
+ const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-UXH2LGVA.js');
5304
5314
  const configPath = opts.config ?? defaultRunnerConfigPath();
5305
5315
  if (opts.service !== true) {
5306
5316
  const names = { print: "print", user: "user", unitName: "unit-name", buildMemoryMax: "build-memory-max", buildCpusMax: "build-cpus-max" };
@@ -5312,13 +5322,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5312
5322
  }
5313
5323
  }
5314
5324
  const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
5315
- if (buildCpusMax !== void 0 && !(await import('./command-47EYM2FJ.js')).cpusAreValid(buildCpusMax)) {
5325
+ if (buildCpusMax !== void 0 && !(await import('./command-DBBEP7VM.js')).cpusAreValid(buildCpusMax)) {
5316
5326
  fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
5317
5327
  return;
5318
5328
  }
5319
5329
  try {
5320
5330
  if (opts.service === true) {
5321
- const { installServiceCommand } = await import('./command-47EYM2FJ.js');
5331
+ const { installServiceCommand, serviceSuccessText } = await import('./command-DBBEP7VM.js');
5322
5332
  const result2 = await installServiceCommand({
5323
5333
  configPath,
5324
5334
  print: opts.print,
@@ -5334,10 +5344,7 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5334
5344
  });
5335
5345
  if (result2.unit !== void 0) process.stdout.write(result2.unit);
5336
5346
  if (result2.ok) {
5337
- for (const line of result2.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5338
- `);
5339
- for (const note of result2.notes ?? []) process.stdout.write(`${C.yellow}${note}${C.reset}
5340
- `);
5347
+ process.stdout.write(serviceSuccessText(result2));
5341
5348
  } else fail(result2.lines.length > 0 ? result2.lines.join("\n ") : "the service was not set up");
5342
5349
  return;
5343
5350
  }
@@ -5375,8 +5382,8 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5375
5382
  fail(`pass --service: \`${cliInvocation()} runner uninstall --service\` removes the runner's service.`);
5376
5383
  return;
5377
5384
  }
5378
- const { defaultRunnerConfigPath } = await import('./config-EA6WVKAS.js');
5379
- const { uninstallServiceCommand } = await import('./command-47EYM2FJ.js');
5385
+ const { defaultRunnerConfigPath } = await import('./config-KOSTQZXG.js');
5386
+ const { uninstallServiceCommand } = await import('./command-DBBEP7VM.js');
5380
5387
  const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
5381
5388
  if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5382
5389
  `);
@@ -5406,13 +5413,13 @@ already in ${words().envFile} is used.
5406
5413
  printf '%s' "$${words().variables[0]}" | ${cliInvocation()} runner init --agent ${words().runnerName} --factory <org>/<factory>
5407
5414
  `
5408
5415
  ).action(async (opts) => {
5409
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-EA6WVKAS.js');
5410
- const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-V7X3KA7B.js');
5411
- const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-4J4MHN3S.js');
5412
- const { detectMachine } = await import('./machine-BZPKYURG.js');
5413
- const { chooseVm, runVmInit, VmInitError } = await import('./init-PUN3PKOT.js');
5414
- const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-23OLQBQZ.js');
5415
- const { headlessNames: headlessNames2 } = await import('./runner-agents-CEW4Z3FR.js');
5416
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-KOSTQZXG.js');
5417
+ const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-YD4MNH5U.js');
5418
+ const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-GERK5EV3.js');
5419
+ const { detectMachine } = await import('./machine-RQIO5VRG.js');
5420
+ const { chooseVm, runVmInit, VmInitError } = await import('./init-EIQFBAZI.js');
5421
+ const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-GXY2VMNH.js');
5422
+ const { headlessNames: headlessNames2 } = await import('./runner-agents-I5YLJY7G.js');
5416
5423
  const configPath = opts.config ?? defaultRunnerConfigPath();
5417
5424
  if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
5418
5425
  fail(`--agent ${opts.agent}: runner init writes commands for ${headlessNames2().join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
@@ -5424,7 +5431,7 @@ already in ${words().envFile} is used.
5424
5431
  return;
5425
5432
  }
5426
5433
  try {
5427
- const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-D3KK24QX.js');
5434
+ const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-7UQZFG5E.js');
5428
5435
  agent = await initAgent({
5429
5436
  flag: agent,
5430
5437
  handOff: opts.configStdin === true,
@@ -5457,7 +5464,7 @@ already in ${words().envFile} is used.
5457
5464
  const chunks = [];
5458
5465
  for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
5459
5466
  const result2 = runRunnerInit(configPath, { machine, configFromStdin: Buffer.concat(chunks).toString("utf8"), requireContainer: true });
5460
- const { ensureHostKey: ensureHostKey2 } = await import('./host-key-UFUIBFBF.js');
5467
+ const { ensureHostKey: ensureHostKey2 } = await import('./host-key-5APXLMY2.js');
5461
5468
  const hostKey2 = await ensureHostKey2(configPath);
5462
5469
  process.stdout.write(`host key ${hostKey2.fingerprint}
5463
5470
  hooks: ${result2.hooks}
@@ -5512,7 +5519,7 @@ hooks: ${result2.hooks}
5512
5519
  const prepared = prepareRunnerInit(configPath, { machine, agent, credential, keyFromLogin: makeKey !== void 0 });
5513
5520
  const created = makeKey === void 0 ? void 0 : await makeKey();
5514
5521
  const result = writeRunnerInit(prepared, created);
5515
- const { ensureHostKey } = await import('./host-key-UFUIBFBF.js');
5522
+ const { ensureHostKey } = await import('./host-key-5APXLMY2.js');
5516
5523
  const hostKey = await ensureHostKey(configPath);
5517
5524
  if (created !== void 0) {
5518
5525
  process.stdout.write(`${C.green}\u2713${C.reset} saved the runner key in ${result.configPath}
@@ -5532,7 +5539,7 @@ hooks: ${result2.hooks}
5532
5539
  );
5533
5540
  process.stdout.write(`${C.green}\u2713${C.reset} hooks: ${result.hooks}${result.hooks === "builtin:vm" ? " (builds run in microVMs)" : " (builds run in containers)"}
5534
5541
  `);
5535
- const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-4ID4VBH2.js');
5542
+ const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-UXH2LGVA.js');
5536
5543
  let installedLayout = false;
5537
5544
  let noService = "it starts the runner from the install layout, which needs a CLI installed with npm";
5538
5545
  try {
@@ -5564,7 +5571,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
5564
5571
  let serviceUp = false;
5565
5572
  let restart;
5566
5573
  if (installedLayout) {
5567
- const { installServiceCommand } = await import('./command-47EYM2FJ.js');
5574
+ const { installServiceCommand } = await import('./command-DBBEP7VM.js');
5568
5575
  const service = await installServiceCommand({
5569
5576
  configPath,
5570
5577
  entryPath: process.argv[1] ?? "",
@@ -5616,12 +5623,12 @@ image holds this CLI and a pinned ${words().agent}. Nothing runs inside the imag
5616
5623
  A repository with no devcontainer file builds on the universal image the CLI pins by digest.
5617
5624
  `
5618
5625
  ).action(async (opts) => {
5619
- const { defaultRunnerConfigPath } = await import('./config-EA6WVKAS.js');
5620
- const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-2L3L2OJO.js');
5626
+ const { defaultRunnerConfigPath } = await import('./config-KOSTQZXG.js');
5627
+ const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-4KG7H2XK.js');
5621
5628
  const { currentCliBuild } = await import('./cli-build-K56DK4DS.js');
5622
- const { createDockerHost } = await import('./docker-FPEQS6HK.js');
5623
- const { builderSpec } = await import('./builder-PKDA7X2H.js');
5624
- const { loadRunnerConfig } = await import('./config-EA6WVKAS.js');
5629
+ const { createDockerHost } = await import('./docker-NUPVSMVQ.js');
5630
+ const { builderSpec } = await import('./builder-HV7PUSZZ.js');
5631
+ const { loadRunnerConfig } = await import('./config-KOSTQZXG.js');
5625
5632
  const configPath = opts.config ?? defaultRunnerConfigPath();
5626
5633
  const loaded = (() => {
5627
5634
  try {
@@ -5632,12 +5639,12 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5632
5639
  })();
5633
5640
  const memory = loaded?.build?.memory ?? "8g";
5634
5641
  try {
5635
- const { ensureRunnerIdentity } = await import('./runner-identity-IJKE4SRJ.js');
5642
+ const { ensureRunnerIdentity } = await import('./runner-identity-MW53HCYG.js');
5636
5643
  await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
5637
5644
  console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
5638
5645
  });
5639
- const { imageTargetFor } = await import('./governing-source-QEFYVBQF.js');
5640
- const { runnerCalls } = await import('./caller-XETCC46J.js');
5646
+ const { imageTargetFor } = await import('./governing-source-CQML5N2D.js');
5647
+ const { runnerCalls } = await import('./caller-3P3AEY7W.js');
5641
5648
  const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
5642
5649
  if (!target.ok) {
5643
5650
  if (opts.json) {
@@ -5701,25 +5708,25 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5701
5708
  }
5702
5709
  });
5703
5710
  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) => {
5704
- const { defaultRunnerConfigPath } = await import('./config-EA6WVKAS.js');
5705
- const { requestStop } = await import('./loop-AWBFKDV7.js');
5711
+ const { defaultRunnerConfigPath } = await import('./config-KOSTQZXG.js');
5712
+ const { requestStop } = await import('./loop-SVE6TL6G.js');
5706
5713
  const configPath = opts.config ?? defaultRunnerConfigPath();
5707
- const { runnerImageVersion } = await import('./image-tag-AE6EKDPV.js');
5714
+ const { runnerImageVersion } = await import('./image-tag-IBAYH5XH.js');
5708
5715
  await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
5709
5716
  });
5710
5717
  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) => {
5711
- const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-EA6WVKAS.js');
5712
- const { jobsDir, runnerDir } = await import('./paths-KVMMJQ7T.js');
5713
- const { listJobFiles, runnerProcessState } = await import('./loop-AWBFKDV7.js');
5714
- const { renderStatus } = await import('./status-GMVC666R.js');
5715
- const { readHousekeepingRecord } = await import('./record-PQDJVKYV.js');
5718
+ const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-KOSTQZXG.js');
5719
+ const { jobsDir, runnerDir } = await import('./paths-2KOZGV5U.js');
5720
+ const { listJobFiles, runnerProcessState } = await import('./loop-SVE6TL6G.js');
5721
+ const { renderStatus } = await import('./status-KGSQF55G.js');
5722
+ const { readHousekeepingRecord } = await import('./record-7ENQ7Y5M.js');
5716
5723
  const path2 = await import('path');
5717
5724
  const configPath = opts.config ?? defaultRunnerConfigPath();
5718
5725
  const all = listJobFiles(configPath);
5719
5726
  const housekeeping = readHousekeepingRecord(runnerDir(configPath));
5720
- const { readPendingUpdate } = await import('./pending-2IE3VBAN.js');
5727
+ const { readPendingUpdate } = await import('./pending-RYWBDJCE.js');
5721
5728
  const pendingUpdate = readPendingUpdate(runnerDir(configPath));
5722
- const { readImageStatus } = await import('./image-tag-AE6EKDPV.js');
5729
+ const { readImageStatus } = await import('./image-tag-IBAYH5XH.js');
5723
5730
  const image = readImageStatus(runnerDir(configPath));
5724
5731
  let host = "unknown";
5725
5732
  let concurrency = 1;
@@ -5729,7 +5736,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5729
5736
  host = config.host;
5730
5737
  concurrency = config.concurrency;
5731
5738
  if (config.fleet === true) {
5732
- const { readFleetState } = await import('./state-DPEWDXQN.js');
5739
+ const { readFleetState } = await import('./state-EKXXOPA5.js');
5733
5740
  fleet = { state: readFleetState(configPath) };
5734
5741
  }
5735
5742
  } catch {
@@ -5737,7 +5744,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5737
5744
  const processState = runnerProcessState(configPath);
5738
5745
  const service = await (async () => {
5739
5746
  if (process.platform !== "linux" || !existsSync("/run/systemd/system")) return void 0;
5740
- const { inspectRunnerService } = await import('./find-unit-337Y4QAC.js');
5747
+ const { inspectRunnerService } = await import('./find-unit-UVS2FM7E.js');
5741
5748
  const facts = inspectRunnerService(configPath);
5742
5749
  return facts === void 0 ? void 0 : { unit: facts.unit, running: facts.mainPid !== void 0, delegated: facts.delegate };
5743
5750
  })();
@@ -5776,9 +5783,9 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5776
5783
  );
5777
5784
  });
5778
5785
  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) => {
5779
- const { defaultRunnerConfigPath } = await import('./config-EA6WVKAS.js');
5780
- const { listJobFiles } = await import('./loop-AWBFKDV7.js');
5781
- const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-DIA3NWC2.js');
5786
+ const { defaultRunnerConfigPath } = await import('./config-KOSTQZXG.js');
5787
+ const { listJobFiles } = await import('./loop-SVE6TL6G.js');
5788
+ const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-22Y7QG42.js');
5782
5789
  const configPath = opts.config ?? defaultRunnerConfigPath();
5783
5790
  const jobs = listJobFiles(configPath);
5784
5791
  const selected = selectAttempt(jobs, itemArg);
@@ -5999,7 +6006,7 @@ Self-host deployments also need --app-id: without a key service to resolve the
5999
6006
  caller from the bearer token, the gateway answers 401 without that header.
6000
6007
  `
6001
6008
  ).action(async (opts) => {
6002
- const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-OTAX7QP2.js');
6009
+ const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-LJ7AYDDT.js');
6003
6010
  try {
6004
6011
  if (opts.transport !== void 0 && opts.transport !== "stdio" && opts.transport !== "http") {
6005
6012
  throw new McpInstallError(`--transport must be "stdio" or "http", got "${opts.transport}"`);
@@ -6021,7 +6028,7 @@ caller from the bearer token, the gateway answers 401 without that header.
6021
6028
  "after",
6022
6029
  "\nWhat the stdio .mcp.json entry spawns. Reads newline-delimited JSON-RPC 2.0 on\nstdin and writes responses on stdout. The API key comes from OUTERLAYER_API_KEY\nor ~/.outerlayer/config.json at start-up; with neither the command exits 1 and\nprints why, which the MCP client shows as the connect error.\n"
6023
6030
  ).action(async (opts) => {
6024
- const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-63KQEQYS.js');
6031
+ const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-34LDKQSR.js');
6025
6032
  try {
6026
6033
  await runMcpServe({ url: opts.url, appId: opts.appId });
6027
6034
  } catch (err) {
@@ -6042,7 +6049,7 @@ would get, the instruction files and the names of the skills. It warns when the
6042
6049
  no \`build\`. It needs the context-read permission: a login or a factory key with it is enough.
6043
6050
  `
6044
6051
  ).action(async (opts) => {
6045
- const { runContextShow, ContextShowError } = await import('./context-show-cmd-Z7NQAKNE.js');
6052
+ const { runContextShow, ContextShowError } = await import('./context-show-cmd-P3LBILMP.js');
6046
6053
  try {
6047
6054
  const result = await runContextShow({ repo: opts.repo, json: opts.json, url: opts.url, apiKey: opts.apiKey, appId: opts.appId });
6048
6055
  process.stdout.write(result.output);