@outerlayer/cli 0.36.0-next.20261103032948 → 0.36.0-next.20261103103134

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 (177) hide show
  1. package/dist/agent-setup-DZZZH3SE.js +40 -0
  2. package/dist/{agent-subcommand-DZWYGCPN.js → agent-subcommand-WRHH6SRD.js} +5 -5
  3. package/dist/{bridge-RY2CLUYP.js → bridge-GZSZQGLI.js} +8 -7
  4. package/dist/{build-CV6IUJWD.js → build-UKZ5RPRR.js} +14 -13
  5. package/dist/{build-disk-ITPCE4ME.js → build-disk-3HOXULLP.js} +12 -11
  6. package/dist/build-info.json +1 -1
  7. package/dist/{builder-TP6RBPGB.js → builder-QEK4GIRY.js} +11 -10
  8. package/dist/caller-WSMJJSFL.js +23 -0
  9. package/dist/{check-HJ3CKWDZ.js → check-D6NMQ6LP.js} +61 -60
  10. package/dist/{chunk-ORU76DHF.js → chunk-2JWLK2TU.js} +1 -1
  11. package/dist/{chunk-IVAX5RVX.js → chunk-2QIK3JRV.js} +1 -1
  12. package/dist/{chunk-HWIV4MF6.js → chunk-2SBNZ4EC.js} +1 -1
  13. package/dist/{chunk-ZEILNR5Q.js → chunk-2W5C47AE.js} +1 -1
  14. package/dist/{chunk-4XYEPTZP.js → chunk-3XEYA3QF.js} +3 -3
  15. package/dist/{chunk-55RNQFPE.js → chunk-42X6CTBI.js} +4 -4
  16. package/dist/{chunk-VNYAJEKO.js → chunk-4MLH5MDB.js} +5 -5
  17. package/dist/{chunk-YEETN7NH.js → chunk-4MN4BBKZ.js} +7 -7
  18. package/dist/{chunk-ECUP2QQH.js → chunk-52Z7AOZ2.js} +238 -193
  19. package/dist/{chunk-EI22245K.js → chunk-54ERDQ3O.js} +77 -9
  20. package/dist/{chunk-6DOYJN44.js → chunk-54PQNYA7.js} +3 -3
  21. package/dist/{chunk-GK7QN7K6.js → chunk-6J3QWXTA.js} +4 -4
  22. package/dist/{chunk-ZIRMH464.js → chunk-6UI4ELNA.js} +62 -53
  23. package/dist/{chunk-QTU6GW2M.js → chunk-7UYXSF62.js} +8 -227
  24. package/dist/{chunk-CSWT3PDT.js → chunk-B5UBTIIP.js} +5 -5
  25. package/dist/{chunk-WEHUIYTR.js → chunk-B5VKRKLJ.js} +1 -1
  26. package/dist/{chunk-TQDYP45H.js → chunk-BEJJJZXF.js} +4 -4
  27. package/dist/{chunk-CJNZ2FIW.js → chunk-BZQ3S24G.js} +1 -1
  28. package/dist/{chunk-LWKV36FC.js → chunk-CDTBXABP.js} +2 -2
  29. package/dist/{chunk-UZ5SDO7Y.js → chunk-DEZSNJSE.js} +1 -1
  30. package/dist/{chunk-AUZAQL7C.js → chunk-DWYQKLCL.js} +1 -1
  31. package/dist/{chunk-OR2TAE22.js → chunk-EHS3HEB6.js} +4 -4
  32. package/dist/{chunk-MHRZVSXP.js → chunk-EUWTGCK5.js} +1 -1
  33. package/dist/{chunk-DQJCVLYE.js → chunk-FLQL6ZIG.js} +1 -1
  34. package/dist/{chunk-A76SNTAM.js → chunk-GPBTTHK3.js} +1 -1
  35. package/dist/{chunk-CGVYMX4N.js → chunk-GWJUEJR4.js} +7 -7
  36. package/dist/{chunk-EKCOXTS2.js → chunk-HO4DPX5N.js} +1 -1
  37. package/dist/{chunk-HBE75JAU.js → chunk-HQBKKYYQ.js} +5 -5
  38. package/dist/{chunk-PEKITBZX.js → chunk-HR4PJLOO.js} +1 -1
  39. package/dist/{chunk-WNQGSAUE.js → chunk-IDYLPN4X.js} +1 -1
  40. package/dist/chunk-IEDO26G4.js +243 -0
  41. package/dist/{chunk-W2ZZ6KQP.js → chunk-IEVARJ6G.js} +2 -2
  42. package/dist/{chunk-DBXWEZ3L.js → chunk-J4NJWTNO.js} +5 -5
  43. package/dist/{chunk-WFRYPYPT.js → chunk-JD5EVW6Y.js} +1 -1
  44. package/dist/{chunk-5SDUOS4G.js → chunk-JMM3L5RG.js} +5 -5
  45. package/dist/{chunk-RWQ5XKRH.js → chunk-K26KMWU4.js} +10 -10
  46. package/dist/{chunk-VI233QH2.js → chunk-K373UCEV.js} +1 -1
  47. package/dist/{chunk-LEQWPWZA.js → chunk-KHJPRTOW.js} +1 -1
  48. package/dist/{chunk-LPKNESZ5.js → chunk-KVO4MJWS.js} +21 -10
  49. package/dist/{chunk-AT6RLTDF.js → chunk-L3SHPR2M.js} +1 -1
  50. package/dist/{chunk-CIG5RZ7Z.js → chunk-LDKF6B2R.js} +4 -3
  51. package/dist/{chunk-J4M35XQA.js → chunk-LISVY7JZ.js} +8 -8
  52. package/dist/{chunk-AXGTLADG.js → chunk-LV4IDDD3.js} +8 -13
  53. package/dist/{chunk-CULBCABP.js → chunk-LXXP5HRJ.js} +4 -4
  54. package/dist/{chunk-SSYFNK4W.js → chunk-MPVTZLOM.js} +4 -4
  55. package/dist/{chunk-ARAH3W3L.js → chunk-NDCN3R5C.js} +3 -3
  56. package/dist/{chunk-A4QJ2E4D.js → chunk-NH4EZRBM.js} +7 -7
  57. package/dist/{chunk-5OQTDTWB.js → chunk-NMMGRG5V.js} +6 -6
  58. package/dist/{chunk-RW6TM4OU.js → chunk-NOLS2G2W.js} +1 -1
  59. package/dist/{chunk-M6FMJXYO.js → chunk-NQYTUVZR.js} +1 -1
  60. package/dist/{chunk-JXAUDSTQ.js → chunk-OGG5ELXF.js} +5 -4
  61. package/dist/{chunk-UYPE2MYB.js → chunk-OPEZVPF7.js} +3 -3
  62. package/dist/{chunk-UWYU46GF.js → chunk-OV4XTV5M.js} +2 -2
  63. package/dist/{chunk-FQ6ZKZCH.js → chunk-P4Q6M6PI.js} +1 -1
  64. package/dist/{chunk-B3XUAKJI.js → chunk-PDRWRFB2.js} +4 -4
  65. package/dist/{chunk-MHIXBZDZ.js → chunk-PYK6GCCU.js} +6 -6
  66. package/dist/{chunk-LLZ2CX4M.js → chunk-QJKW4MKH.js} +6 -1
  67. package/dist/{chunk-XEZO7VQH.js → chunk-QVOU2QUR.js} +2 -2
  68. package/dist/{chunk-GVRD3MBC.js → chunk-R63T46P7.js} +3 -3
  69. package/dist/{chunk-4EJH2EE4.js → chunk-S7YU25AF.js} +34 -30
  70. package/dist/{chunk-EE3FR5JP.js → chunk-SYKEQT63.js} +6 -6
  71. package/dist/{chunk-66GYPUUN.js → chunk-T5I2H7TJ.js} +1 -1
  72. package/dist/{chunk-3IEVIKMC.js → chunk-TWGSXBZM.js} +3 -3
  73. package/dist/{chunk-7VUTGCGH.js → chunk-U6EACUUG.js} +1 -1
  74. package/dist/{chunk-U3SXAKQZ.js → chunk-U7MLC45I.js} +6 -6
  75. package/dist/{chunk-MMCVDHDX.js → chunk-UZSMDU4U.js} +3 -3
  76. package/dist/{chunk-SLWDYHO5.js → chunk-VMPVQE4D.js} +2 -2
  77. package/dist/{chunk-NKT32ZHB.js → chunk-VST3BWL4.js} +9 -9
  78. package/dist/{chunk-NNTORDVS.js → chunk-WAGHPZP2.js} +1 -1
  79. package/dist/{chunk-FINJC6BS.js → chunk-WZOWXDDM.js} +20 -14
  80. package/dist/{chunk-RT7R4COY.js → chunk-XAMTNTOH.js} +9 -8
  81. package/dist/{chunk-D4MQRI56.js → chunk-XW2KXLZB.js} +17 -17
  82. package/dist/{chunk-ASR6TU43.js → chunk-YCBVYTFI.js} +1 -1
  83. package/dist/{chunk-6V6ONATO.js → chunk-YEZGNCSK.js} +2 -2
  84. package/dist/{chunk-TE3Q6LVL.js → chunk-ZE2JJQPC.js} +1 -1
  85. package/dist/{chunk-757WX4YX.js → chunk-ZZ4WIQRF.js} +6 -5
  86. package/dist/{claude-launcher-5I7TNYQJ.js → claude-launcher-CPSCSL6U.js} +9 -9
  87. package/dist/{cli-4F4XTBBF.js → cli-TZW5XJRE.js} +194 -162
  88. package/dist/{command-ABIQ63NE.js → command-5VOKN4HI.js} +54 -53
  89. package/dist/{config-4W4MXVZR.js → config-23EBIGW4.js} +13 -12
  90. package/dist/{connect-cmd-I7TUU2BM.js → connect-cmd-GEBIOBQQ.js} +12 -11
  91. package/dist/{container-start-5EFWPLEB.js → container-start-NJGGT4E3.js} +59 -54
  92. package/dist/{context-cleanup-7XUQDCJ5.js → context-cleanup-I7FLIV5A.js} +5 -5
  93. package/dist/{context-show-cmd-6U42IUEX.js → context-show-cmd-CSPMSRHX.js} +13 -12
  94. package/dist/{control-plane-launch-SLIYO4BZ.js → control-plane-launch-KC7NUNYQ.js} +16 -15
  95. package/dist/{demo-record-cmd-HBFGZHVK.js → demo-record-cmd-ZW6U2LAV.js} +9 -8
  96. package/dist/{demo-voice-cmd-ZINZNDWR.js → demo-voice-cmd-IDW3QX3E.js} +22 -21
  97. package/dist/{dist-AIMCXBLZ.js → dist-LOBYZWOU.js} +1 -1
  98. package/dist/docker-2VHMWLNK.js +20 -0
  99. package/dist/{doctor-ZTOJ53SA.js → doctor-ZAB6SDWF.js} +54 -53
  100. package/dist/{emit-artifact-cmd-DNA5R6C2.js → emit-artifact-cmd-2ZHPNLPG.js} +21 -20
  101. package/dist/{emit-cmd-OGNFGQF6.js → emit-cmd-UN7HGZC5.js} +8 -8
  102. package/dist/{emit-criteria-cmd-UGLCECVP.js → emit-criteria-cmd-TUXGD7CW.js} +15 -14
  103. package/dist/{emit-demo-cmd-GBNYC5GU.js → emit-demo-cmd-4YMYB556.js} +22 -21
  104. package/dist/{emit-finding-cmd-66OOJS5Q.js → emit-finding-cmd-O2NN22XF.js} +15 -14
  105. package/dist/{emit-result-cmd-3BAYNI6R.js → emit-result-cmd-VRITADX2.js} +20 -19
  106. package/dist/{emit-step-cmd-S2ZISEQS.js → emit-step-cmd-LGNBZTWJ.js} +15 -14
  107. package/dist/{exec-client-PISQ53KG.js → exec-client-NXTXAVHI.js} +9 -8
  108. package/dist/find-unit-RYYTX2O5.js +24 -0
  109. package/dist/{findings-cmd-BPYW5IMS.js → findings-cmd-RJD7KTSW.js} +15 -14
  110. package/dist/{fleet-readiness-XNWEAVW7.js → fleet-readiness-RIO2SWC7.js} +15 -14
  111. package/dist/{governing-source-GS73BIQ3.js → governing-source-CZSYE7QE.js} +21 -20
  112. package/dist/guest-init-FLSL5RI7.js +20 -0
  113. package/dist/{hook-fast-IXIYJKAN.js → hook-fast-HYRZAY5K.js} +4 -4
  114. package/dist/{hook-install-LHVMFLO6.js → hook-install-CSHKOLWT.js} +5 -5
  115. package/dist/{hook-wrap-fast-FCZEUJKT.js → hook-wrap-fast-ITUBSHEF.js} +3 -3
  116. package/dist/host-checks-KLMATCMD.js +79 -0
  117. package/dist/host-key-CPAEQSNU.js +18 -0
  118. package/dist/{image-tag-U4YQCHRG.js → image-tag-MAMFM4SO.js} +9 -8
  119. package/dist/index.js +6 -6
  120. package/dist/init-BB2LERCZ.js +79 -0
  121. package/dist/{init-WGLH27Q3.js → init-G7D7ABKV.js} +50 -49
  122. package/dist/{init-cmd-N7MZ3LA3.js → init-cmd-5GHIMFSS.js} +30 -29
  123. package/dist/{init-update-5RY6XB27.js → init-update-TQH2Q7IZ.js} +24 -23
  124. package/dist/install-cmd-PVQ5M5NM.js +21 -0
  125. package/dist/{layout-3YKZWTPE.js → layout-2DF7ON2F.js} +5 -5
  126. package/dist/{logs-U7QU7KPL.js → logs-BM644OOJ.js} +8 -7
  127. package/dist/loop-7MAMONQJ.js +90 -0
  128. package/dist/machine-HDHSI7WF.js +79 -0
  129. package/dist/{machine-skills-4UHKD4HT.js → machine-skills-O7XAZYLN.js} +5 -5
  130. package/dist/{mcp-install-cmd-SQV4UZD6.js → mcp-install-cmd-METCXTTR.js} +5 -5
  131. package/dist/{mcp-serve-cmd-LRNO35OS.js → mcp-serve-cmd-CTKBLSM6.js} +10 -9
  132. package/dist/{paths-TH2PHIEY.js → paths-VIBBLJ2W.js} +8 -7
  133. package/dist/pending-RXJKH4AC.js +18 -0
  134. package/dist/{pidfile-CI7F3737.js → pidfile-PAX5XHQJ.js} +9 -8
  135. package/dist/{record-OFRT5V22.js → record-QPXOUL6F.js} +9 -8
  136. package/dist/{relay-NCWAF6NQ.js → relay-KASDMV3R.js} +6 -5
  137. package/dist/{relay-protocol-Y3HGIACN.js → relay-protocol-7HSCZC5H.js} +6 -5
  138. package/dist/runner-agents-WUMCXVS2.js +14 -0
  139. package/dist/runner-env-R2C5LYCX.js +24 -0
  140. package/dist/{runner-identity-QS26JIKL.js → runner-identity-UDPLWT7I.js} +11 -10
  141. package/dist/{runner-key-OKTRAUHO.js → runner-key-JGIDJTHH.js} +49 -48
  142. package/dist/{session-sender-UB6GJWZS.js → session-sender-4QKSVX5Z.js} +21 -20
  143. package/dist/{shell-function-H75JWHLA.js → shell-function-FTY7SSAJ.js} +2 -2
  144. package/dist/{spec-cmd-B3Y2JF4M.js → spec-cmd-QAOTQPI6.js} +16 -15
  145. package/dist/{starter-pack-3BXEKGIH.js → starter-pack-LAPDUG6E.js} +6 -6
  146. package/dist/state-OTWJW4O7.js +18 -0
  147. package/dist/{status-MPPZT5KS.js → status-OKZHXEYB.js} +49 -48
  148. package/dist/{statusline-fast-BTJSU3MB.js → statusline-fast-7V7U4SI4.js} +3 -3
  149. package/dist/{sync-cmd-YUWBZNQD.js → sync-cmd-FLNYVXAE.js} +20 -19
  150. package/dist/update-steps-W56ITCKQ.js +80 -0
  151. package/dist/{watch-GOWRN3BK.js → watch-4V7FZI5R.js} +20 -19
  152. package/dist/{work-claim-cmd-CHCADUYP.js → work-claim-cmd-E2D4YHCS.js} +22 -21
  153. package/dist/{work-cmd-WUJXUXHP.js → work-cmd-VD362634.js} +15 -14
  154. package/dist/{work-comment-cmd-E3GBVCQX.js → work-comment-cmd-EUI5IOQI.js} +18 -17
  155. package/dist/{work-demo-cmd-YOLKT6ZD.js → work-demo-cmd-MGL3U6ZF.js} +15 -14
  156. package/dist/{work-logs-cmd-SHWLRI4D.js → work-logs-cmd-QAJG75DG.js} +15 -14
  157. package/dist/{work-open-pr-cmd-LHMYF4CX.js → work-open-pr-cmd-SXVSMG44.js} +16 -15
  158. package/dist/{work-pr-cmd-PAYHF664.js → work-pr-cmd-WUIMC7XB.js} +15 -14
  159. package/dist/{work-proofs-cmd-VRZ5EOTH.js → work-proofs-cmd-AAHTMSCF.js} +17 -16
  160. package/dist/{work-proofs-record-ECHOY77G.js → work-proofs-record-LLUEXW7I.js} +26 -25
  161. package/dist/{work-stop-cmd-Z6RMU44Y.js → work-stop-cmd-RZLGWQJ5.js} +15 -14
  162. package/package.json +1 -1
  163. package/dist/agent-setup-PCMTLHTT.js +0 -39
  164. package/dist/caller-6X73FHOM.js +0 -22
  165. package/dist/docker-5L7BRY2J.js +0 -19
  166. package/dist/find-unit-QQP7HH3R.js +0 -23
  167. package/dist/guest-init-7OVIIKLM.js +0 -19
  168. package/dist/host-checks-XVHIR3EK.js +0 -78
  169. package/dist/host-key-3FKGWSHL.js +0 -17
  170. package/dist/init-V6ESW3K6.js +0 -78
  171. package/dist/install-cmd-6GXTY4UW.js +0 -20
  172. package/dist/loop-XM24ZVOO.js +0 -89
  173. package/dist/machine-X2Z5RLVD.js +0 -78
  174. package/dist/pending-EZKNEM2I.js +0 -17
  175. package/dist/runner-env-PO3FMLIW.js +0 -23
  176. package/dist/state-BV5BZMTE.js +0 -17
  177. package/dist/update-steps-UNOE66M4.js +0 -79
@@ -1,49 +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-D4MQRI56.js';
4
- import './chunk-VNYAJEKO.js';
5
- import './chunk-MHIXBZDZ.js';
6
- import './chunk-WFRYPYPT.js';
7
- import './chunk-6DOYJN44.js';
8
- import { verifiedTrackerNames, TRACKERS } from './chunk-LPKNESZ5.js';
9
- import './chunk-66GYPUUN.js';
10
- import './chunk-MMCVDHDX.js';
11
- import './chunk-B3XUAKJI.js';
3
+ import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-XW2KXLZB.js';
4
+ import './chunk-4MLH5MDB.js';
5
+ import { verifiedTrackerNames, TRACKERS } from './chunk-KVO4MJWS.js';
6
+ import './chunk-T5I2H7TJ.js';
7
+ import './chunk-UZSMDU4U.js';
8
+ import './chunk-PYK6GCCU.js';
9
+ import './chunk-2SBNZ4EC.js';
10
+ import './chunk-JD5EVW6Y.js';
11
+ import './chunk-54PQNYA7.js';
12
+ import './chunk-PDRWRFB2.js';
12
13
  import './chunk-F3T5QJ24.js';
13
- import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-XEZO7VQH.js';
14
+ import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-QVOU2QUR.js';
14
15
  import './chunk-A6RI6KTI.js';
15
16
  import './chunk-A2LHHKTT.js';
16
17
  import { C, warnDeprecated, API_KEY_FLAG_DEPRECATION, NO_COLOR_FLAG, stripNoColor } from './chunk-2AM6Z5BP.js';
17
- import './chunk-M6FMJXYO.js';
18
- import './chunk-PEKITBZX.js';
18
+ import './chunk-NQYTUVZR.js';
19
+ import './chunk-HR4PJLOO.js';
19
20
  import './chunk-HWVMRETT.js';
20
- import './chunk-LEQWPWZA.js';
21
- import './chunk-AT6RLTDF.js';
22
- import './chunk-CIG5RZ7Z.js';
23
- import { hookFiredMarkerPath, installedCliDistDir } from './chunk-EE3FR5JP.js';
21
+ import './chunk-KHJPRTOW.js';
22
+ import './chunk-L3SHPR2M.js';
23
+ import './chunk-LDKF6B2R.js';
24
+ import './chunk-7UYXSF62.js';
25
+ import { hookFiredMarkerPath, installedCliDistDir } from './chunk-SYKEQT63.js';
24
26
  import './chunk-545P7JY7.js';
25
- import './chunk-ORU76DHF.js';
26
- import './chunk-BKO6JEZI.js';
27
- import './chunk-HWIV4MF6.js';
28
- import './chunk-UWYU46GF.js';
27
+ import './chunk-OV4XTV5M.js';
29
28
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
30
- import './chunk-7VUTGCGH.js';
29
+ import './chunk-2JWLK2TU.js';
30
+ import './chunk-BKO6JEZI.js';
31
+ import './chunk-U6EACUUG.js';
31
32
  import './chunk-NFZMENCY.js';
32
33
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
33
34
  import { cliInvocation, packageRunnerOf } from './chunk-FZKNTIOJ.js';
34
- import { installAgents, settingsFileOf, withSettingsText } from './chunk-CJNZ2FIW.js';
35
+ import { installAgents, settingsFileOf, withSettingsText } from './chunk-BZQ3S24G.js';
35
36
  import { cliForInstall, SettingsParseError, PORTABLE_BIN, writeSettingsText, cliBinResolvable } from './chunk-ZHQC43NH.js';
36
- import './chunk-UZ5SDO7Y.js';
37
+ import './chunk-DEZSNJSE.js';
37
38
  import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
38
39
  import { removeJournalHooks, removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
39
- import './chunk-QTU6GW2M.js';
40
- import { defaultAgents, legacyAgent } from './chunk-EI22245K.js';
41
- import './chunk-RW6TM4OU.js';
42
- import './chunk-LLZ2CX4M.js';
40
+ import { credentialAgent, credentialForms, credentialShapes } from './chunk-IEDO26G4.js';
41
+ import { defaultAgents, legacyAgent } from './chunk-54ERDQ3O.js';
42
+ import './chunk-NOLS2G2W.js';
43
+ import './chunk-QJKW4MKH.js';
43
44
  import './chunk-CDDED64E.js';
44
45
  import { resolveVersion, resolvePackageVersion } from './chunk-RA3O54FC.js';
45
46
  import { homeFromEnv } from './chunk-352DHUTP.js';
46
- import './chunk-FINJC6BS.js';
47
+ import './chunk-WZOWXDDM.js';
47
48
  import './chunk-WUKLQWGY.js';
48
49
  import './chunk-Z5GEFMRW.js';
49
50
  import { EventEmitter } from 'events';
@@ -3638,10 +3639,10 @@ function resolveCliBin() {
3638
3639
  }
3639
3640
  }
3640
3641
  var SUPPORT_TEXT = "\nDocs: https://docs.outerlayer.ai\nIssues: https://github.com/outerlayerai/outerlayer/issues\n";
3641
- function fail(message) {
3642
+ function fail(message, code = 1) {
3642
3643
  process.stderr.write(`${C.red}\u2717${C.reset} ${message}
3643
3644
  `);
3644
- process.exitCode = 1;
3645
+ process.exitCode = code;
3645
3646
  }
3646
3647
  function printLauncher(result, summary) {
3647
3648
  const line = summary(result.launcher);
@@ -3658,14 +3659,14 @@ function apiKeyOption() {
3658
3659
  return new Option("--api-key <key>", `deprecated: use \`${cliInvocation()} login\` or OUTERLAYER_API_KEY`).hideHelp();
3659
3660
  }
3660
3661
  async function installStarterPackInRepo() {
3661
- const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-3BXEKGIH.js');
3662
+ const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-LAPDUG6E.js');
3662
3663
  const cwd = process.cwd();
3663
3664
  let repoRoot = cwd;
3664
3665
  try {
3665
3666
  repoRoot = execFileSync("git", ["rev-parse", "--show-toplevel"], { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim() || cwd;
3666
3667
  } catch {
3667
3668
  }
3668
- const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-3YKZWTPE.js');
3669
+ const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-2DF7ON2F.js');
3669
3670
  const fresh = !isAgentsMdLayout(repoRoot) && !existsSync(join(repoRoot, ".outerlayer/skills")) && !existsSync(join(repoRoot, ".outerlayer/AGENTS.md"));
3670
3671
  const result = installStarterPack({ repoRoot, base: fresh ? ".agents/skills" : skillsBaseFor(repoRoot) });
3671
3672
  if (fresh) declareAgentsMdLayout(repoRoot);
@@ -3807,7 +3808,7 @@ ${starter.output}`),
3807
3808
  }
3808
3809
  }
3809
3810
  async function installMachineSkillsForSetup() {
3810
- const { setupMachineSkills } = await import('./machine-skills-4UHKD4HT.js');
3811
+ const { setupMachineSkills } = await import('./machine-skills-O7XAZYLN.js');
3811
3812
  const result = setupMachineSkills(homeFromEnv());
3812
3813
  for (const failure of result.failures) process.stderr.write(`${C.yellow}!${C.reset} Could not write a maintained skill: ${failure}
3813
3814
  `);
@@ -3815,8 +3816,8 @@ async function installMachineSkillsForSetup() {
3815
3816
  ` : "";
3816
3817
  }
3817
3818
  async function realConnectDepsForCwd() {
3818
- const { realConnectDeps } = await import('./connect-cmd-I7TUU2BM.js');
3819
- const { resolveRepoIdentity } = await import('./dist-AIMCXBLZ.js');
3819
+ const { realConnectDeps } = await import('./connect-cmd-GEBIOBQQ.js');
3820
+ const { resolveRepoIdentity } = await import('./dist-LOBYZWOU.js');
3820
3821
  return {
3821
3822
  ...realConnectDeps(),
3822
3823
  home: homeFromEnv(),
@@ -3833,7 +3834,7 @@ function buildProgram(argv = process.argv) {
3833
3834
  const program2 = new Command();
3834
3835
  program2.name(cliInvocation()).description("OuterLayer \u2014 see what your coding agents actually do").enablePositionalOptions().version(resolveVersion()).hook("preAction", async (_root, command) => {
3835
3836
  if (command.opts().apiKey !== void 0) warnDeprecated(API_KEY_FLAG_DEPRECATION);
3836
- const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-4UHKD4HT.js');
3837
+ const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-O7XAZYLN.js');
3837
3838
  const names = [];
3838
3839
  for (let at = command; at?.parent; at = at.parent) names.push(at.name());
3839
3840
  if (!machineRefreshSkipped(names, command._hidden === true, argv)) refreshMachineSkills(homeFromEnv());
@@ -3890,8 +3891,8 @@ build, ../outerlayer-build/SKILL.md becomes ~/.agents/skills/outerlayer-build/SK
3890
3891
  what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocation() + " doctor` reports the same\nstates under Starter files.\n"
3891
3892
  ).action(async (opts) => {
3892
3893
  if (opts.update || opts.dryRun) {
3893
- const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-5RY6XB27.js');
3894
- const { fleetReadiness } = await import('./fleet-readiness-XNWEAVW7.js');
3894
+ const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-TQH2Q7IZ.js');
3895
+ const { fleetReadiness } = await import('./fleet-readiness-RIO2SWC7.js');
3895
3896
  const problem = updateFlagProblem(opts);
3896
3897
  if (problem !== void 0) {
3897
3898
  fail(problem);
@@ -3908,7 +3909,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3908
3909
  }
3909
3910
  let starterTemplate;
3910
3911
  if (opts.template !== void 0) {
3911
- const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-3BXEKGIH.js');
3912
+ const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-LAPDUG6E.js');
3912
3913
  try {
3913
3914
  assertKnownTemplate(opts.template);
3914
3915
  } catch (err) {
@@ -3937,18 +3938,18 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3937
3938
  return;
3938
3939
  }
3939
3940
  if (opts.remove) {
3940
- const { removeShellFunction } = await import('./shell-function-H75JWHLA.js');
3941
+ const { removeShellFunction } = await import('./shell-function-FTY7SSAJ.js');
3941
3942
  const changed = removeShellFunction({ home: homeFromEnv() });
3942
3943
  if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
3943
3944
  `);
3944
3945
  }
3945
- const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-N7MZ3LA3.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3946
+ const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-5GHIMFSS.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3946
3947
  if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
3947
3948
  else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
3948
3949
  return;
3949
3950
  }
3950
3951
  await installMachineSkillsForSetup();
3951
- const { runInitCommand } = await import('./init-cmd-N7MZ3LA3.js');
3952
+ const { runInitCommand } = await import('./init-cmd-5GHIMFSS.js');
3952
3953
  const code = await runInitCommand(
3953
3954
  { json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
3954
3955
  {
@@ -3960,7 +3961,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3960
3961
  return { ok, text, detail };
3961
3962
  },
3962
3963
  runAgentSetup: async () => {
3963
- const { runAgentSetup } = await import('./agent-setup-PCMTLHTT.js');
3964
+ const { runAgentSetup } = await import('./agent-setup-DZZZH3SE.js');
3964
3965
  return runAgentSetup({ cwd: process.cwd(), skillsLink: opts.skillsLink !== false });
3965
3966
  },
3966
3967
  runDoctorChecks: gatherDoctorChecks,
@@ -3969,7 +3970,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3969
3970
  shellPath: process.env.SHELL,
3970
3971
  interactive: Boolean(process.stdin.isTTY && process.stderr.isTTY) && opts.json !== true,
3971
3972
  ask: async () => {
3972
- const { promptOnTerminal } = await import('./connect-cmd-I7TUU2BM.js');
3973
+ const { promptOnTerminal } = await import('./connect-cmd-GEBIOBQQ.js');
3973
3974
  const answer = await promptOnTerminal({
3974
3975
  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.`,
3975
3976
  options: [
@@ -4008,7 +4009,7 @@ linked (true, false, or null when it could not be checked) and, when false,
4008
4009
  linkUrl.
4009
4010
  `
4010
4011
  ).action(async (opts) => {
4011
- const { runConnectCommand } = await import('./connect-cmd-I7TUU2BM.js');
4012
+ const { runConnectCommand } = await import('./connect-cmd-GEBIOBQQ.js');
4012
4013
  const code = await runConnectCommand({ factory: opts.factory, json: opts.json }, await realConnectDepsForCwd(), {
4013
4014
  stdout: process.stdout,
4014
4015
  stderr: process.stderr
@@ -4086,7 +4087,7 @@ code is 1: revoke the token on /profile/security.
4086
4087
  else fail(found.reason);
4087
4088
  return;
4088
4089
  }
4089
- const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-YUWBZNQD.js');
4090
+ const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-FLNYVXAE.js');
4090
4091
  try {
4091
4092
  const result = await runSync({
4092
4093
  url: opts.url,
@@ -4115,7 +4116,7 @@ code is 1: revoke the token on /profile/security.
4115
4116
  if (invokedCommandToken(argv) === "watch") {
4116
4117
  warnDeprecated(`\`${cliInvocation()} watch\` is now \`${cliInvocation()} daemon\`; the old name will be removed in a future release.`);
4117
4118
  }
4118
- const { runWatch } = await import('./watch-GOWRN3BK.js');
4119
+ const { runWatch } = await import('./watch-4V7FZI5R.js');
4119
4120
  await runWatch({ once: opts.once });
4120
4121
  });
4121
4122
  program2.command("hook <event>", { hidden: true }).description("capture-hook fast path, installed by `init`").action(() => {
@@ -4130,8 +4131,8 @@ code is 1: revoke the token on /profile/security.
4130
4131
  });
4131
4132
  }
4132
4133
  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) => {
4133
- const { startRelay, startSessionRelay } = await import('./relay-NCWAF6NQ.js');
4134
- const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-Y3HGIACN.js');
4134
+ const { startRelay, startSessionRelay } = await import('./relay-KASDMV3R.js');
4135
+ const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-7HSCZC5H.js');
4135
4136
  const port = Number(opts.port);
4136
4137
  if (!Number.isInteger(port) || port < 1 || port > 65535) {
4137
4138
  fail(opts.port === void 0 ? "--port is required" : `--port must be a port number, not ${opts.port}`);
@@ -4163,7 +4164,7 @@ code is 1: revoke the token on /profile/security.
4163
4164
  await startRelay({ port, socketPath: opts.socket, forwards: forwards.map((forward) => ({ port: forward.port, socketPath: forward.spec })) });
4164
4165
  });
4165
4166
  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) => {
4166
- const { joinRelay } = await import('./relay-NCWAF6NQ.js');
4167
+ const { joinRelay } = await import('./relay-KASDMV3R.js');
4167
4168
  try {
4168
4169
  await joinRelay({ socketPath: opts.socket, input: process.stdin, output: process.stdout });
4169
4170
  } catch (err) {
@@ -4179,7 +4180,7 @@ code is 1: revoke the token on /profile/security.
4179
4180
  }
4180
4181
  });
4181
4182
  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) => {
4182
- const { runVmExec } = await import('./exec-client-PISQ53KG.js');
4183
+ const { runVmExec } = await import('./exec-client-NXTXAVHI.js');
4183
4184
  const env = {};
4184
4185
  for (const entry of opts.env) {
4185
4186
  const eq = entry.indexOf("=");
@@ -4208,7 +4209,7 @@ code is 1: revoke the token on /profile/security.
4208
4209
  process.exitCode = await runBuildCommand({ dir: opts.dir, argv: command });
4209
4210
  });
4210
4211
  program2.command("session-sender", { hidden: true }).description("stream a runner build's sessions to its work item while the build runs").action(async () => {
4211
- const { runSessionSender } = await import('./session-sender-UB6GJWZS.js');
4212
+ const { runSessionSender } = await import('./session-sender-4QKSVX5Z.js');
4212
4213
  try {
4213
4214
  await runSessionSender();
4214
4215
  } catch (err) {
@@ -4216,7 +4217,7 @@ code is 1: revoke the token on /profile/security.
4216
4217
  }
4217
4218
  });
4218
4219
  program2.command("vm-init", { hidden: true }).description("lay out a microVM build's guest; the guest helper runs it").action(async () => {
4219
- const { realGuestHost, runGuestInit } = await import('./guest-init-7OVIIKLM.js');
4220
+ const { realGuestHost, runGuestInit } = await import('./guest-init-FLSL5RI7.js');
4220
4221
  const { readFileSync: readFileSync3 } = await import('fs');
4221
4222
  try {
4222
4223
  runGuestInit(realGuestHost(), readFileSync3("/proc/cmdline", "utf8"));
@@ -4225,7 +4226,7 @@ code is 1: revoke the token on /profile/security.
4225
4226
  }
4226
4227
  });
4227
4228
  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) => {
4228
- const { startBridgeForward } = await import('./bridge-RY2CLUYP.js');
4229
+ const { startBridgeForward } = await import('./bridge-GZSZQGLI.js');
4229
4230
  try {
4230
4231
  await startBridgeForward(opts);
4231
4232
  } catch (err) {
@@ -4251,7 +4252,7 @@ async function runCli(processArgv) {
4251
4252
  await buildProgram(argv).parseAsync(argv);
4252
4253
  }
4253
4254
  async function compileContext(opts) {
4254
- const { runEmit, EmitError } = await import('./emit-cmd-OGNFGQF6.js');
4255
+ const { runEmit, EmitError } = await import('./emit-cmd-UN7HGZC5.js');
4255
4256
  try {
4256
4257
  const result = runEmit({ cwd: opts.dir, check: opts.check, json: opts.json });
4257
4258
  if (result.exitCode !== 0) process.exitCode = result.exitCode;
@@ -4304,7 +4305,7 @@ Compiling .outerlayer/ moved to \`${cliInvocation()} context emit\`.
4304
4305
  await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
4305
4306
  return;
4306
4307
  }
4307
- const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-3BAYNI6R.js');
4308
+ const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-VRITADX2.js');
4308
4309
  try {
4309
4310
  const result = await runEmitResult({
4310
4311
  name,
@@ -4355,7 +4356,7 @@ everywhere, bytes and deep link untouched; a still-queued one is cancelled
4355
4356
  locally so it never uploads. One correction can retire several duplicates.
4356
4357
  `
4357
4358
  ).action(async (file, opts) => {
4358
- const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-DNA5R6C2.js');
4359
+ const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-2ZHPNLPG.js');
4359
4360
  let pr;
4360
4361
  if (opts.pr !== void 0) {
4361
4362
  pr = parseTrackerNumber(opts.pr);
@@ -4411,7 +4412,7 @@ its criterion, and the new record retires the old record. The id must be the ite
4411
4412
  as \`work demo --item <n> --json\` prints it.
4412
4413
  `
4413
4414
  ).action(async (manifest, opts) => {
4414
- const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-GBNYC5GU.js');
4415
+ const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-4YMYB556.js');
4415
4416
  let item;
4416
4417
  if (opts.item !== void 0) {
4417
4418
  item = parseTrackerNumber(opts.item);
@@ -4454,7 +4455,7 @@ as \`work demo --item <n> --json\` prints it.
4454
4455
  }
4455
4456
  });
4456
4457
  program2.command("demo-voice", { hidden: true }).description("Speak demo lines for a recorder: JSON lines in on stdin, out on stdout").action(async () => {
4457
- const { runDemoVoice } = await import('./demo-voice-cmd-ZINZNDWR.js');
4458
+ const { runDemoVoice } = await import('./demo-voice-cmd-IDW3QX3E.js');
4458
4459
  await runDemoVoice();
4459
4460
  });
4460
4461
  const demoCmd = program2.command("demo").description("Record demos with the recorder this CLI carries");
@@ -4472,7 +4473,7 @@ and the command prints the manifest's path for \`emit demo\`. Under \`work proof
4472
4473
  to OUTERLAYER_PROOF_OUT instead. Exit 1 means the demo's test failed; its manifest is written all the same.
4473
4474
  `
4474
4475
  ).action(async (file, opts) => {
4475
- const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-HBFGZHVK.js');
4476
+ const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-ZW6U2LAV.js');
4476
4477
  try {
4477
4478
  const result = await runDemoRecord({
4478
4479
  file,
@@ -4521,7 +4522,7 @@ recent events with their ids. --find <text> searches all of them.
4521
4522
  item that session was launched for is used automatically.
4522
4523
  `
4523
4524
  ).action(async (opts) => {
4524
- const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-66OOJS5Q.js');
4525
+ const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-O2NN22XF.js');
4525
4526
  try {
4526
4527
  refuseRemovedFindingFlags(opts);
4527
4528
  const result = await runEmitFinding({
@@ -4588,7 +4589,7 @@ the whole batch. "untimed": true records one with no time on purpose.
4588
4589
  that session was launched for is used automatically.
4589
4590
  `
4590
4591
  ).action(async (file, opts) => {
4591
- const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-66OOJS5Q.js');
4592
+ const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-O2NN22XF.js');
4592
4593
  try {
4593
4594
  const result = await runEmitFindings({
4594
4595
  file,
@@ -4623,7 +4624,7 @@ command, the command exits 0, and \`sync\` sends it later. If the gateway refuse
4623
4624
  the step, the command prints why and exits 1.
4624
4625
  `
4625
4626
  ).action(async (name, opts) => {
4626
- const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-S2ZISEQS.js');
4627
+ const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-LGNBZTWJ.js');
4627
4628
  try {
4628
4629
  await runEmitStep({
4629
4630
  name,
@@ -4666,7 +4667,7 @@ of the item, and a (proof: <kind>) annotation names its proof.
4666
4667
  ${cliInvocation()} emit criteria acceptance/412-login.md --item 412
4667
4668
  `
4668
4669
  ).action(async (file, opts) => {
4669
- const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-UGLCECVP.js');
4670
+ const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-TUXGD7CW.js');
4670
4671
  try {
4671
4672
  const result = await runEmitCriteria({
4672
4673
  file,
@@ -4690,9 +4691,9 @@ function registerSpecCommands(program2) {
4690
4691
  const specCmd = program2.command("spec").description("Find, file and edit the issue a spec lives in, in your factory's tracker");
4691
4692
  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)");
4692
4693
  const run = async (action) => {
4693
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4694
+ const { WorkCommandError } = await import('./work-cmd-VD362634.js');
4694
4695
  try {
4695
- await action(await import('./spec-cmd-B3Y2JF4M.js'));
4696
+ await action(await import('./spec-cmd-QAOTQPI6.js'));
4696
4697
  } catch (err) {
4697
4698
  if (err instanceof WorkCommandError) {
4698
4699
  fail(err.message);
@@ -4727,7 +4728,7 @@ Prints each problem the item covers with its id, its reports and its result.
4727
4728
  session was launched for is used.
4728
4729
  `
4729
4730
  ).action(async (opts) => {
4730
- const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-BPYW5IMS.js');
4731
+ const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-RJD7KTSW.js');
4731
4732
  try {
4732
4733
  const result = await runFindingsShow({
4733
4734
  item: opts.item,
@@ -4755,7 +4756,7 @@ Give exactly one of --fixed and --not-fixed, and a --note. Run it again for the
4755
4756
  problem to replace the earlier result. A problem the item does not cover is refused.
4756
4757
  `
4757
4758
  ).action(async (problem, opts) => {
4758
- const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-BPYW5IMS.js');
4759
+ const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-RJD7KTSW.js');
4759
4760
  try {
4760
4761
  const result = await runFindingsResult({
4761
4762
  problem,
@@ -4778,13 +4779,14 @@ problem to replace the earlier result. A problem the item does not cover is refu
4778
4779
  }
4779
4780
  });
4780
4781
  const workCmd = program2.command("work").description("Start, remove, or read what the factory is working on (the Work page)");
4781
- workCmd.command("build").description("Start work on an item: a host builds it, or with --local you do").option("--issue <number>", "issue number, or a Linear/Jira key like ENG-123 (adds it to Work first)").option(TRACKER_OPTION_FLAG, "tracker for a keyed --issue \u2014 required if more than one is connected").option("--item <number>", "the item's own number inside this factory \u2014 must already exist").option("--local", "you build it in a session you start; no host takes it").option("--repo <owner/name>", "repository \u2014 the checkout's remote for a number, never guessed for a key").option("--note <text>", "a short note for people to read; the agent never sees it").option("--instructions <text>", "text the build's agent receives, up to 2000 characters; not with --local").option("--runner <kind>", "kind of runner that takes the build: managed or self-hosted; not with --local").option("--session-id <id>", "session id to record as-is, skipping detection").option("--retry <count>", "retries after a gateway answer worth trying again").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(
4782
+ workCmd.command("build").description("Start work on an item: a host builds it, or with --local you do").option("--issue <number>", "issue number, or a Linear/Jira key like ENG-123 (adds it to Work first)").option(TRACKER_OPTION_FLAG, "tracker for a keyed --issue \u2014 required if more than one is connected").option("--item <number>", "the item's own number inside this factory \u2014 must already exist").option("--local", "you build it in a session you start; no host takes it").option("--repo <owner/name>", "repository \u2014 the checkout's remote for a number, never guessed for a key").option("--note <text>", "a short note for people to read; the agent never sees it").option("--instructions <text>", "text the build's agent receives, up to 2000 characters; not with --local").option("--runner <kind>", "kind of runner that takes the build: managed or self-hosted; not with --local").option("--fresh", "start from a fresh disk, not the item's kept disk; not with --local").option("--session-id <id>", "session id to record as-is, skipping detection").option("--retry <count>", "retries after a gateway answer worth trying again").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(
4782
4783
  "after",
4783
4784
  `
4784
4785
  ${cliInvocation()} work build --issue 42 # a host builds it
4785
4786
  ${cliInvocation()} work build --item 7 # retry an item already on Work
4786
4787
  ${cliInvocation()} work build --issue 42 --instructions "skip the docs" # the agent reads this
4787
4788
  ${cliInvocation()} work build --issue 42 --runner managed # a managed runner builds it
4789
+ ${cliInvocation()} work build --item 7 --fresh # no kept disk is restored
4788
4790
  ${cliInvocation()} work build --issue 42 --local # you build it
4789
4791
  ${cliInvocation()} work build --issue ENG-123 --tracker linear # a Linear issue
4790
4792
 
@@ -4797,7 +4799,7 @@ takes it, and prints the line that starts your session on it. That
4797
4799
  session links itself and holds the item's lease while it works.
4798
4800
  `
4799
4801
  ).action(async (opts) => {
4800
- const { runWorkBuild, WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4802
+ const { runWorkBuild, WorkCommandError } = await import('./work-cmd-VD362634.js');
4801
4803
  try {
4802
4804
  await runWorkBuild(opts);
4803
4805
  } catch (err) {
@@ -4820,7 +4822,7 @@ renews that session's own 20-minute lease, unless --no-lease or
4820
4822
  --ended is given, or another worker already holds a live one.
4821
4823
  `
4822
4824
  ).action(async (number, opts) => {
4823
- const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4825
+ const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-VD362634.js');
4824
4826
  try {
4825
4827
  await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
4826
4828
  } catch (err) {
@@ -4851,8 +4853,8 @@ thread at its source. It takes a plain answer: no --criterion and no
4851
4853
  action flag.
4852
4854
  `
4853
4855
  ).action(async (opts) => {
4854
- const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-E3GBVCQX.js');
4855
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4856
+ const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-EUI5IOQI.js');
4857
+ const { WorkCommandError } = await import('./work-cmd-VD362634.js');
4856
4858
  try {
4857
4859
  await runWorkComment(opts);
4858
4860
  } catch (err) {
@@ -4874,7 +4876,7 @@ nothing and exits 0 when the call fails: the line goes to hook-errors.log,
4874
4876
  and the comment waits for the next agent job.
4875
4877
  `
4876
4878
  ).action(async (ids, opts) => {
4877
- const { runWorkCommentsRead } = await import('./work-comment-cmd-E3GBVCQX.js');
4879
+ const { runWorkCommentsRead } = await import('./work-comment-cmd-EUI5IOQI.js');
4878
4880
  await runWorkCommentsRead({ ...opts, commentIds: ids });
4879
4881
  });
4880
4882
  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(
@@ -4890,8 +4892,8 @@ that started outside OuterLayer, such as the line comments of a
4890
4892
  GitHub review, each with its id, source and comments.
4891
4893
  `
4892
4894
  ).action(async (opts) => {
4893
- const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-E3GBVCQX.js');
4894
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4895
+ const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-EUI5IOQI.js');
4896
+ const { WorkCommandError } = await import('./work-cmd-VD362634.js');
4895
4897
  try {
4896
4898
  await runWorkThreads(opts);
4897
4899
  } catch (err) {
@@ -4915,8 +4917,8 @@ still running, or that an older runner released, has no log and the
4915
4917
  command exits 1.
4916
4918
  `
4917
4919
  ).action(async (opts) => {
4918
- const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-SHWLRI4D.js');
4919
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4920
+ const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-QAJG75DG.js');
4921
+ const { WorkCommandError } = await import('./work-cmd-VD362634.js');
4920
4922
  try {
4921
4923
  await runWorkLogs(opts);
4922
4924
  } catch (err) {
@@ -4939,8 +4941,8 @@ item is not built again until a new build request. Exits 1 when no host
4939
4941
  build is running for the item.
4940
4942
  `
4941
4943
  ).action(async (opts) => {
4942
- const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-Z6RMU44Y.js');
4943
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4944
+ const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-RZLGWQJ5.js');
4945
+ const { WorkCommandError } = await import('./work-cmd-VD362634.js');
4944
4946
  try {
4945
4947
  await runWorkStop(opts);
4946
4948
  } catch (err) {
@@ -4961,8 +4963,8 @@ Prints the item's newest live demo record: its artifact id, the commit it was re
4961
4963
  test file that recorded it. With --json, prints { "demo": null } for an item with no demo.
4962
4964
  `
4963
4965
  ).action(async (opts) => {
4964
- const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-YOLKT6ZD.js');
4965
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4966
+ const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-MGL3U6ZF.js');
4967
+ const { WorkCommandError } = await import('./work-cmd-VD362634.js');
4966
4968
  try {
4967
4969
  await runWorkDemo(opts);
4968
4970
  } catch (err) {
@@ -4983,7 +4985,7 @@ deletes anything \u2014 the item is removed from Work only once no
4983
4985
  live addition remains on it.
4984
4986
  `
4985
4987
  ).action(async (opts) => {
4986
- const { runWorkRemove, WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4988
+ const { runWorkRemove, WorkCommandError } = await import('./work-cmd-VD362634.js');
4987
4989
  try {
4988
4990
  await runWorkRemove(opts);
4989
4991
  } catch (err) {
@@ -4995,7 +4997,7 @@ live addition remains on it.
4995
4997
  }
4996
4998
  });
4997
4999
  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) => {
4998
- const { runWorkStatus, WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
5000
+ const { runWorkStatus, WorkCommandError } = await import('./work-cmd-VD362634.js');
4999
5001
  try {
5000
5002
  await runWorkStatus(opts);
5001
5003
  } catch (err) {
@@ -5040,11 +5042,11 @@ differs from HEAD.
5040
5042
  fail(trackerNumberError("--pr", opts.pr));
5041
5043
  return;
5042
5044
  }
5043
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-VRZ5EOTH.js');
5045
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-AAHTMSCF.js');
5044
5046
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5045
5047
  });
5046
5048
  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) => {
5047
- const { runWorkList, WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
5049
+ const { runWorkList, WorkCommandError } = await import('./work-cmd-VD362634.js');
5048
5050
  try {
5049
5051
  await runWorkList(opts);
5050
5052
  } catch (err) {
@@ -5065,7 +5067,7 @@ by a different key is refused; claiming again with the same key extends
5065
5067
  it. --host is a label only.
5066
5068
  `
5067
5069
  ).action(async (opts) => {
5068
- const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-CHCADUYP.js');
5070
+ const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-E2D4YHCS.js');
5069
5071
  try {
5070
5072
  await runWorkClaim(opts);
5071
5073
  } catch (err) {
@@ -5085,7 +5087,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
5085
5087
  lease has expired, or a 403 if a different key holds it.
5086
5088
  `
5087
5089
  ).action(async (opts) => {
5088
- const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-CHCADUYP.js');
5090
+ const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-E2D4YHCS.js');
5089
5091
  try {
5090
5092
  await runWorkRenew(opts);
5091
5093
  } catch (err) {
@@ -5117,7 +5119,7 @@ applies to a host's lease only. A later tool call in the session
5117
5119
  takes the lease again.
5118
5120
  `
5119
5121
  ).action(async (opts) => {
5120
- const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-CHCADUYP.js');
5122
+ const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-E2D4YHCS.js');
5121
5123
  try {
5122
5124
  await runWorkRelease(opts);
5123
5125
  } catch (err) {
@@ -5144,7 +5146,7 @@ Idempotent: declaring the same pull request twice is a no-op.
5144
5146
  needs your own login; an agent session or a factory key is refused.
5145
5147
  `
5146
5148
  ).action(async (number, opts) => {
5147
- const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-PAYHF664.js');
5149
+ const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-WUIMC7XB.js');
5148
5150
  try {
5149
5151
  await runWorkPr({ ...opts, number });
5150
5152
  } catch (err) {
@@ -5169,8 +5171,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
5169
5171
  Run it again after a change to the title or description.
5170
5172
  `
5171
5173
  ).action(async (opts) => {
5172
- const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-LHMYF4CX.js');
5173
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
5174
+ const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-SXVSMG44.js');
5175
+ const { WorkCommandError } = await import('./work-cmd-VD362634.js');
5174
5176
  try {
5175
5177
  await runWorkOpenPr(opts);
5176
5178
  } catch (err) {
@@ -5182,13 +5184,29 @@ Run it again after a change to the title or description.
5182
5184
  }
5183
5185
  });
5184
5186
  }
5187
+ function runnerHelpWords() {
5188
+ const agent = credentialAgent();
5189
+ const forms = credentialForms(agent.descriptor);
5190
+ return {
5191
+ agent: agent.descriptor.label,
5192
+ label: forms.label,
5193
+ possessive: forms.possessive,
5194
+ runnerName: forms.runnerName,
5195
+ envFile: forms.envFile,
5196
+ setupCommand: forms.setupCommand,
5197
+ variables: forms.variables,
5198
+ starts: credentialShapes(agent.descriptor).map((shape) => shape.starts)
5199
+ };
5200
+ }
5185
5201
  function registerRunnerCommands(program2) {
5202
+ let resolved;
5203
+ const words = () => resolved ??= runnerHelpWords();
5186
5204
  const runnerCmd = program2.command("runner").description("Take work from the implement and amend queues on this machine");
5187
5205
  const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
5188
5206
  runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
5189
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-4W4MXVZR.js');
5190
- const { start, RunnerStartError } = await import('./loop-XM24ZVOO.js');
5191
- const { RunnerAlreadyRunningError } = await import('./pidfile-CI7F3737.js');
5207
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-23EBIGW4.js');
5208
+ const { start, RunnerStartError } = await import('./loop-7MAMONQJ.js');
5209
+ const { RunnerAlreadyRunningError } = await import('./pidfile-PAX5XHQJ.js');
5192
5210
  const configPath = opts.config ?? defaultRunnerConfigPath();
5193
5211
  try {
5194
5212
  const { realUpdateDeps } = await import('./real-deps-QX5YH7FG.js');
@@ -5203,20 +5221,25 @@ function registerRunnerCommands(program2) {
5203
5221
  });
5204
5222
  runnerCmd.command("container-start").description("Container entrypoint: write the config from variables, then run").addHelpText(
5205
5223
  "after",
5206
- "\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"
5224
+ () => `
5225
+ Reads OUTERLAYER_URL, OUTERLAYER_APP_ID, OUTERLAYER_API_KEY, OUTERLAYER_RUNNER_NAME and one ${words().label} credential
5226
+ (${words().variables.join(" or ")}) from the environment. OUTERLAYER_AGENT
5227
+ is optional and defaults to ${words().runnerName}. On a later start it refuses variables that disagree with the config in the volume.
5228
+ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5229
+ `
5207
5230
  ).action(async () => {
5208
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-4W4MXVZR.js');
5209
- const { containerStart } = await import('./container-start-5EFWPLEB.js');
5210
- const { start, RunnerStartError } = await import('./loop-XM24ZVOO.js');
5211
- const { RunnerAlreadyRunningError } = await import('./pidfile-CI7F3737.js');
5231
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-23EBIGW4.js');
5232
+ const { containerStart, containerStartExit } = await import('./container-start-NJGGT4E3.js');
5233
+ const { start, RunnerStartError } = await import('./loop-7MAMONQJ.js');
5234
+ const { RunnerAlreadyRunningError } = await import('./pidfile-PAX5XHQJ.js');
5212
5235
  try {
5213
- const result = await containerStart({
5236
+ const outcome = containerStartExit(await containerStart({
5214
5237
  env: process.env,
5215
5238
  configPath: defaultRunnerConfigPath(),
5216
5239
  start,
5217
5240
  exit: (code) => process.exit(code)
5218
- });
5219
- if (!result.ok) fail(result.message);
5241
+ }));
5242
+ if (outcome.message !== void 0) fail(outcome.message, outcome.code);
5220
5243
  } catch (err) {
5221
5244
  if (err instanceof RunnerConfigError || err instanceof RunnerAlreadyRunningError || err instanceof RunnerStartError) {
5222
5245
  fail(err.message);
@@ -5229,16 +5252,16 @@ function registerRunnerCommands(program2) {
5229
5252
  "after",
5230
5253
  "\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"
5231
5254
  ).action(async (opts) => {
5232
- const { defaultRunnerConfigPath } = await import('./config-4W4MXVZR.js');
5233
- const { runnerDir } = await import('./paths-TH2PHIEY.js');
5234
- const { runUpdateSteps } = await import('./update-steps-UNOE66M4.js');
5255
+ const { defaultRunnerConfigPath } = await import('./config-23EBIGW4.js');
5256
+ const { runnerDir } = await import('./paths-VIBBLJ2W.js');
5257
+ const { runUpdateSteps } = await import('./update-steps-W56ITCKQ.js');
5235
5258
  const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
5236
5259
  process.stdout.write(`${text}
5237
5260
  `);
5238
5261
  });
5239
5262
  runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
5240
- const { defaultRunnerConfigPath } = await import('./config-4W4MXVZR.js');
5241
- const { runRunnerCheck } = await import('./check-HJ3CKWDZ.js');
5263
+ const { defaultRunnerConfigPath } = await import('./config-23EBIGW4.js');
5264
+ const { runRunnerCheck } = await import('./check-D6NMQ6LP.js');
5242
5265
  const configPath = opts.config ?? defaultRunnerConfigPath();
5243
5266
  const result = await runRunnerCheck(configPath);
5244
5267
  if (!result.ok) {
@@ -5259,8 +5282,8 @@ function registerRunnerCommands(program2) {
5259
5282
  `);
5260
5283
  });
5261
5284
  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) => {
5262
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-4W4MXVZR.js');
5263
- const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-6GXTY4UW.js');
5285
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-23EBIGW4.js');
5286
+ const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-PVQ5M5NM.js');
5264
5287
  const configPath = opts.config ?? defaultRunnerConfigPath();
5265
5288
  if (opts.service !== true) {
5266
5289
  const names = { print: "print", user: "user", unitName: "unit-name", buildMemoryMax: "build-memory-max", buildCpusMax: "build-cpus-max" };
@@ -5272,13 +5295,13 @@ function registerRunnerCommands(program2) {
5272
5295
  }
5273
5296
  }
5274
5297
  const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
5275
- if (buildCpusMax !== void 0 && !(await import('./command-ABIQ63NE.js')).cpusAreValid(buildCpusMax)) {
5298
+ if (buildCpusMax !== void 0 && !(await import('./command-5VOKN4HI.js')).cpusAreValid(buildCpusMax)) {
5276
5299
  fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
5277
5300
  return;
5278
5301
  }
5279
5302
  try {
5280
5303
  if (opts.service === true) {
5281
- const { installServiceCommand } = await import('./command-ABIQ63NE.js');
5304
+ const { installServiceCommand } = await import('./command-5VOKN4HI.js');
5282
5305
  const result2 = await installServiceCommand({
5283
5306
  configPath,
5284
5307
  print: opts.print,
@@ -5335,8 +5358,8 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5335
5358
  fail(`pass --service: \`${cliInvocation()} runner uninstall --service\` removes the runner's service.`);
5336
5359
  return;
5337
5360
  }
5338
- const { defaultRunnerConfigPath } = await import('./config-4W4MXVZR.js');
5339
- const { uninstallServiceCommand } = await import('./command-ABIQ63NE.js');
5361
+ const { defaultRunnerConfigPath } = await import('./config-23EBIGW4.js');
5362
+ const { uninstallServiceCommand } = await import('./command-5VOKN4HI.js');
5340
5363
  const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
5341
5364
  if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5342
5365
  `);
@@ -5344,7 +5367,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5344
5367
  });
5345
5368
  runnerCmd.command("init").description("Write a runner block that fits this machine; on macOS, offers a Linux VM").option("--config <path>", configOption).option("--vm", "on macOS, run the runner in a Linux VM (Lima), with container builds").addOption(new Option("--config-stdin", "the VM-side hand-off: read the whole config as JSON on stdin").hideHelp()).option("--vm-cli-package <path>", "with --vm, install this packed CLI tarball in the VM").option("--unit-name <name>", "the service unit's name, to run a second runner beside the first").option("--agent <name>", "write commands that start this agent (claude); its credential comes on stdin").option("--factory <org/factory>", "factory to create the runner key on, as <org>/<factory>").option("--app-id <id>", "factory id, instead of --factory (Settings \u2192 General)").addHelpText(
5346
5369
  "after",
5347
- `
5370
+ () => `
5348
5371
  With no apiKey in the config file, and a login saved by \`${cliInvocation()} login\`,
5349
5372
  runner init names the factory the runner is for: --factory, then --app-id,
5350
5373
  OUTERLAYER_APP_ID, or this repository's connection. With none of those, a
@@ -5353,25 +5376,26 @@ them. It then prints the factory's API keys page, where you create a key with
5353
5376
  the Runner preset, and asks you to paste it. Nothing is shown as you paste.
5354
5377
  With no terminal to ask on, it stops and says what to put in the config file.
5355
5378
 
5356
- With --agent claude, the queue commands start Claude Code instead of the
5357
- placeholder, and Claude's credential is read from stdin: a token from
5358
- \`claude setup-token\` (sk-ant-oat...) or an API key (sk-ant-api...). It is
5359
- never printed, and is stored in the claude.env beside the config with mode
5360
- 600. Any Claude credential line in runner.env is removed. With nothing piped, a credential
5361
- already in claude.env is used.
5379
+ With --agent ${words().runnerName}, the queue commands start ${words().agent} instead of the
5380
+ placeholder, and ${words().possessive} credential is read from stdin: a token from
5381
+ \`${words().setupCommand}\` (${words().starts[0]}...) or an API key (${words().starts[1]}...). It is
5382
+ never printed, and is stored in the ${words().envFile} beside the config with mode
5383
+ 600. Any ${words().label} credential line in runner.env is removed. With nothing piped, a credential
5384
+ already in ${words().envFile} is used.
5362
5385
 
5363
- printf '%s' "$CLAUDE_CODE_OAUTH_TOKEN" | ${cliInvocation()} runner init --agent claude --factory <org>/<factory>
5386
+ printf '%s' "$${words().variables[0]}" | ${cliInvocation()} runner init --agent ${words().runnerName} --factory <org>/<factory>
5364
5387
  `
5365
5388
  ).action(async (opts) => {
5366
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-4W4MXVZR.js');
5367
- const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-V6ESW3K6.js');
5368
- const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-OKTRAUHO.js');
5369
- const { detectMachine } = await import('./machine-X2Z5RLVD.js');
5370
- const { chooseVm, runVmInit, VmInitError } = await import('./init-WGLH27Q3.js');
5371
- const { AGENT_COMMANDS, credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-PO3FMLIW.js');
5389
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-23EBIGW4.js');
5390
+ const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-BB2LERCZ.js');
5391
+ const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-JGIDJTHH.js');
5392
+ const { detectMachine } = await import('./machine-HDHSI7WF.js');
5393
+ const { chooseVm, runVmInit, VmInitError } = await import('./init-G7D7ABKV.js');
5394
+ const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-R2C5LYCX.js');
5395
+ const { headlessNames } = await import('./runner-agents-WUMCXVS2.js');
5372
5396
  const configPath = opts.config ?? defaultRunnerConfigPath();
5373
5397
  if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
5374
- fail(`--agent ${opts.agent}: runner init writes commands for ${Object.keys(AGENT_COMMANDS).join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
5398
+ fail(`--agent ${opts.agent}: runner init writes commands for ${headlessNames().join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
5375
5399
  return;
5376
5400
  }
5377
5401
  const agent = opts.agent;
@@ -5385,7 +5409,7 @@ already in claude.env is used.
5385
5409
  const { readPipedKey } = await import('./login-browser-NUQQYH5J.js');
5386
5410
  credential = credentialFromStdin(
5387
5411
  await readPipedKey(process.stdin, {
5388
- onWaiting: () => process.stderr.write(`runner init is waiting for Claude's credential on stdin; close stdin to use the one already in claude.env
5412
+ onWaiting: () => process.stderr.write(`runner init is waiting for ${words().possessive} credential on stdin; close stdin to use the one already in ${words().envFile}
5389
5413
  `)
5390
5414
  })
5391
5415
  );
@@ -5399,7 +5423,7 @@ already in claude.env is used.
5399
5423
  const chunks = [];
5400
5424
  for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
5401
5425
  const result2 = runRunnerInit(configPath, { machine, configFromStdin: Buffer.concat(chunks).toString("utf8"), requireContainer: true });
5402
- const { ensureHostKey: ensureHostKey2 } = await import('./host-key-3FKGWSHL.js');
5426
+ const { ensureHostKey: ensureHostKey2 } = await import('./host-key-CPAEQSNU.js');
5403
5427
  const hostKey2 = await ensureHostKey2(configPath);
5404
5428
  process.stdout.write(`host key ${hostKey2.fingerprint}
5405
5429
  hooks: ${result2.hooks}
@@ -5454,7 +5478,7 @@ hooks: ${result2.hooks}
5454
5478
  const prepared = prepareRunnerInit(configPath, { machine, agent, credential, keyFromLogin: makeKey !== void 0 });
5455
5479
  const created = makeKey === void 0 ? void 0 : await makeKey();
5456
5480
  const result = writeRunnerInit(prepared, created);
5457
- const { ensureHostKey } = await import('./host-key-3FKGWSHL.js');
5481
+ const { ensureHostKey } = await import('./host-key-CPAEQSNU.js');
5458
5482
  const hostKey = await ensureHostKey(configPath);
5459
5483
  if (created !== void 0) {
5460
5484
  process.stdout.write(`${C.green}\u2713${C.reset} saved the runner key in ${result.configPath}
@@ -5474,7 +5498,7 @@ hooks: ${result2.hooks}
5474
5498
  );
5475
5499
  process.stdout.write(`${C.green}\u2713${C.reset} hooks: ${result.hooks}${result.hooks === "builtin:vm" ? " (builds run in microVMs)" : " (builds run in containers)"}
5476
5500
  `);
5477
- const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-6GXTY4UW.js');
5501
+ const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-PVQ5M5NM.js');
5478
5502
  let installedLayout = false;
5479
5503
  let noService = "it starts the runner from the install layout, which needs a CLI installed with npm";
5480
5504
  try {
@@ -5506,7 +5530,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
5506
5530
  let serviceUp = false;
5507
5531
  let restart;
5508
5532
  if (installedLayout) {
5509
- const { installServiceCommand } = await import('./command-ABIQ63NE.js');
5533
+ const { installServiceCommand } = await import('./command-5VOKN4HI.js');
5510
5534
  const service = await installServiceCommand({
5511
5535
  configPath,
5512
5536
  entryPath: process.argv[1] ?? "",
@@ -5534,7 +5558,7 @@ ${C.yellow}${restart}${C.reset}
5534
5558
  `
5535
5559
  Next:
5536
5560
  ` + steps.map((step, i) => ` ${i + 1}. ${step}
5537
- `).join("") + (serviceUp && agent === void 0 ? ` The runner service claims nothing until step 1 is done and a Claude credential is in ${join(dirname(configPath), "claude.env")}; ${C.yellow}${cliInvocation()} runner status${C.reset} shows what it is doing.
5561
+ `).join("") + (serviceUp && agent === void 0 ? ` The runner service claims nothing until step 1 is done and a ${words().label} credential is in ${join(dirname(configPath), words().envFile)}; ${C.yellow}${cliInvocation()} runner status${C.reset} shows what it is doing.
5538
5562
  ` : serviceUp ? ` The runner service is running; ${C.yellow}${cliInvocation()} runner status${C.reset} shows what it is doing.
5539
5563
  ` : "")
5540
5564
  );
@@ -5548,14 +5572,22 @@ Next:
5548
5572
  });
5549
5573
  runnerCmd.command("image").description("Build a repository's image from its governing repository's devcontainer").requiredOption("--repository <owner/name>", "the repository to build the image for").option("--remote <url>", "where to fetch from (default: the repository's GitHub URL)").option("--config <path>", configOption).option("--json", "machine-readable JSON output").addHelpText(
5550
5574
  "after",
5551
- "\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"
5575
+ () => `
5576
+ A repository governed by a control plane builds the control plane's image, at the commit
5577
+ the gateway has stored for it. A repository that governs itself fetches the head of its
5578
+ default branch into the runner's cache. Either way it reads .devcontainer/devcontainer.json
5579
+ and builds the image with the devcontainer CLI. Settings
5580
+ that reach the host or widen the container's privileges are ignored and listed. The
5581
+ image holds this CLI and a pinned ${words().agent}. Nothing runs inside the image.
5582
+ A repository with no devcontainer file builds on the universal image the CLI pins by digest.
5583
+ `
5552
5584
  ).action(async (opts) => {
5553
- const { defaultRunnerConfigPath } = await import('./config-4W4MXVZR.js');
5554
- const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-CV6IUJWD.js');
5585
+ const { defaultRunnerConfigPath } = await import('./config-23EBIGW4.js');
5586
+ const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-UKZ5RPRR.js');
5555
5587
  const { currentCliBuild } = await import('./cli-build-K56DK4DS.js');
5556
- const { createDockerHost } = await import('./docker-5L7BRY2J.js');
5557
- const { builderSpec } = await import('./builder-TP6RBPGB.js');
5558
- const { loadRunnerConfig } = await import('./config-4W4MXVZR.js');
5588
+ const { createDockerHost } = await import('./docker-2VHMWLNK.js');
5589
+ const { builderSpec } = await import('./builder-QEK4GIRY.js');
5590
+ const { loadRunnerConfig } = await import('./config-23EBIGW4.js');
5559
5591
  const configPath = opts.config ?? defaultRunnerConfigPath();
5560
5592
  const loaded = (() => {
5561
5593
  try {
@@ -5566,12 +5598,12 @@ Next:
5566
5598
  })();
5567
5599
  const memory = loaded?.build?.memory ?? "8g";
5568
5600
  try {
5569
- const { ensureRunnerIdentity } = await import('./runner-identity-QS26JIKL.js');
5601
+ const { ensureRunnerIdentity } = await import('./runner-identity-UDPLWT7I.js');
5570
5602
  await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
5571
5603
  console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
5572
5604
  });
5573
- const { imageTargetFor } = await import('./governing-source-GS73BIQ3.js');
5574
- const { runnerCalls } = await import('./caller-6X73FHOM.js');
5605
+ const { imageTargetFor } = await import('./governing-source-CZSYE7QE.js');
5606
+ const { runnerCalls } = await import('./caller-WSMJJSFL.js');
5575
5607
  const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
5576
5608
  if (!target.ok) {
5577
5609
  if (opts.json) {
@@ -5635,25 +5667,25 @@ Next:
5635
5667
  }
5636
5668
  });
5637
5669
  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) => {
5638
- const { defaultRunnerConfigPath } = await import('./config-4W4MXVZR.js');
5639
- const { requestStop } = await import('./loop-XM24ZVOO.js');
5670
+ const { defaultRunnerConfigPath } = await import('./config-23EBIGW4.js');
5671
+ const { requestStop } = await import('./loop-7MAMONQJ.js');
5640
5672
  const configPath = opts.config ?? defaultRunnerConfigPath();
5641
- const { runnerImageVersion } = await import('./image-tag-U4YQCHRG.js');
5673
+ const { runnerImageVersion } = await import('./image-tag-MAMFM4SO.js');
5642
5674
  await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
5643
5675
  });
5644
5676
  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) => {
5645
- const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-4W4MXVZR.js');
5646
- const { jobsDir, runnerDir } = await import('./paths-TH2PHIEY.js');
5647
- const { listJobFiles, runnerProcessState } = await import('./loop-XM24ZVOO.js');
5648
- const { renderStatus } = await import('./status-MPPZT5KS.js');
5649
- const { readHousekeepingRecord } = await import('./record-OFRT5V22.js');
5677
+ const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-23EBIGW4.js');
5678
+ const { jobsDir, runnerDir } = await import('./paths-VIBBLJ2W.js');
5679
+ const { listJobFiles, runnerProcessState } = await import('./loop-7MAMONQJ.js');
5680
+ const { renderStatus } = await import('./status-OKZHXEYB.js');
5681
+ const { readHousekeepingRecord } = await import('./record-QPXOUL6F.js');
5650
5682
  const path2 = await import('path');
5651
5683
  const configPath = opts.config ?? defaultRunnerConfigPath();
5652
5684
  const all = listJobFiles(configPath);
5653
5685
  const housekeeping = readHousekeepingRecord(runnerDir(configPath));
5654
- const { readPendingUpdate } = await import('./pending-EZKNEM2I.js');
5686
+ const { readPendingUpdate } = await import('./pending-RXJKH4AC.js');
5655
5687
  const pendingUpdate = readPendingUpdate(runnerDir(configPath));
5656
- const { readImageStatus } = await import('./image-tag-U4YQCHRG.js');
5688
+ const { readImageStatus } = await import('./image-tag-MAMFM4SO.js');
5657
5689
  const image = readImageStatus(runnerDir(configPath));
5658
5690
  let host = "unknown";
5659
5691
  let concurrency = 1;
@@ -5663,7 +5695,7 @@ Next:
5663
5695
  host = config.host;
5664
5696
  concurrency = config.concurrency;
5665
5697
  if (config.fleet === true) {
5666
- const { readFleetState } = await import('./state-BV5BZMTE.js');
5698
+ const { readFleetState } = await import('./state-OTWJW4O7.js');
5667
5699
  fleet = { state: readFleetState(configPath) };
5668
5700
  }
5669
5701
  } catch {
@@ -5671,7 +5703,7 @@ Next:
5671
5703
  const processState = runnerProcessState(configPath);
5672
5704
  const service = await (async () => {
5673
5705
  if (process.platform !== "linux" || !existsSync("/run/systemd/system")) return void 0;
5674
- const { inspectRunnerService } = await import('./find-unit-QQP7HH3R.js');
5706
+ const { inspectRunnerService } = await import('./find-unit-RYYTX2O5.js');
5675
5707
  const facts = inspectRunnerService(configPath);
5676
5708
  return facts === void 0 ? void 0 : { unit: facts.unit, running: facts.mainPid !== void 0, delegated: facts.delegate };
5677
5709
  })();
@@ -5710,9 +5742,9 @@ Next:
5710
5742
  );
5711
5743
  });
5712
5744
  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) => {
5713
- const { defaultRunnerConfigPath } = await import('./config-4W4MXVZR.js');
5714
- const { listJobFiles } = await import('./loop-XM24ZVOO.js');
5715
- const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-U7QU7KPL.js');
5745
+ const { defaultRunnerConfigPath } = await import('./config-23EBIGW4.js');
5746
+ const { listJobFiles } = await import('./loop-7MAMONQJ.js');
5747
+ const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-BM644OOJ.js');
5716
5748
  const configPath = opts.config ?? defaultRunnerConfigPath();
5717
5749
  const jobs = listJobFiles(configPath);
5718
5750
  const selected = selectAttempt(jobs, itemArg);
@@ -5933,7 +5965,7 @@ Self-host deployments also need --app-id: without a key service to resolve the
5933
5965
  caller from the bearer token, the gateway answers 401 without that header.
5934
5966
  `
5935
5967
  ).action(async (opts) => {
5936
- const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-SQV4UZD6.js');
5968
+ const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-METCXTTR.js');
5937
5969
  try {
5938
5970
  if (opts.transport !== void 0 && opts.transport !== "stdio" && opts.transport !== "http") {
5939
5971
  throw new McpInstallError(`--transport must be "stdio" or "http", got "${opts.transport}"`);
@@ -5955,7 +5987,7 @@ caller from the bearer token, the gateway answers 401 without that header.
5955
5987
  "after",
5956
5988
  "\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"
5957
5989
  ).action(async (opts) => {
5958
- const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-LRNO35OS.js');
5990
+ const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-CTKBLSM6.js');
5959
5991
  try {
5960
5992
  await runMcpServe({ url: opts.url, appId: opts.appId });
5961
5993
  } catch (err) {
@@ -5976,7 +6008,7 @@ would get, the instruction files and the names of the skills. It warns when the
5976
6008
  no \`build\`. It needs the context-read permission: a login or a factory key with it is enough.
5977
6009
  `
5978
6010
  ).action(async (opts) => {
5979
- const { runContextShow, ContextShowError } = await import('./context-show-cmd-6U42IUEX.js');
6011
+ const { runContextShow, ContextShowError } = await import('./context-show-cmd-CSPMSRHX.js');
5980
6012
  try {
5981
6013
  const result = await runContextShow({ repo: opts.repo, json: opts.json, url: opts.url, apiKey: opts.apiKey, appId: opts.appId });
5982
6014
  process.stdout.write(result.output);