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

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 (176) 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-QLJ2O7VO.js} +60 -59
  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-EI22245K.js → chunk-54ERDQ3O.js} +77 -9
  19. package/dist/{chunk-6DOYJN44.js → chunk-54PQNYA7.js} +3 -3
  20. package/dist/{chunk-GK7QN7K6.js → chunk-6J3QWXTA.js} +4 -4
  21. package/dist/{chunk-ZIRMH464.js → chunk-6UI4ELNA.js} +62 -53
  22. package/dist/{chunk-QTU6GW2M.js → chunk-7UYXSF62.js} +8 -227
  23. package/dist/{chunk-4EJH2EE4.js → chunk-A64EXQUL.js} +28 -27
  24. package/dist/{chunk-WEHUIYTR.js → chunk-B5VKRKLJ.js} +1 -1
  25. package/dist/{chunk-TQDYP45H.js → chunk-BEJJJZXF.js} +4 -4
  26. package/dist/{chunk-A4QJ2E4D.js → chunk-BTGNFRRT.js} +7 -7
  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-LPKNESZ5.js → chunk-H4G26OZC.js} +8 -8
  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-D4MQRI56.js → chunk-HX6B34ZF.js} +17 -17
  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-AT6RLTDF.js → chunk-L3SHPR2M.js} +1 -1
  49. package/dist/{chunk-CIG5RZ7Z.js → chunk-LDKF6B2R.js} +4 -3
  50. package/dist/{chunk-AXGTLADG.js → chunk-LV4IDDD3.js} +8 -13
  51. package/dist/{chunk-CULBCABP.js → chunk-LXXP5HRJ.js} +4 -4
  52. package/dist/{chunk-SSYFNK4W.js → chunk-MPVTZLOM.js} +4 -4
  53. package/dist/{chunk-J4M35XQA.js → chunk-N3SO5VCM.js} +8 -8
  54. package/dist/{chunk-5OQTDTWB.js → chunk-NMMGRG5V.js} +6 -6
  55. package/dist/{chunk-RW6TM4OU.js → chunk-NOLS2G2W.js} +1 -1
  56. package/dist/{chunk-M6FMJXYO.js → chunk-NQYTUVZR.js} +1 -1
  57. package/dist/{chunk-JXAUDSTQ.js → chunk-OGG5ELXF.js} +5 -4
  58. package/dist/{chunk-UYPE2MYB.js → chunk-OPEZVPF7.js} +3 -3
  59. package/dist/{chunk-UWYU46GF.js → chunk-OV4XTV5M.js} +2 -2
  60. package/dist/{chunk-FQ6ZKZCH.js → chunk-P4Q6M6PI.js} +1 -1
  61. package/dist/{chunk-B3XUAKJI.js → chunk-PDRWRFB2.js} +4 -4
  62. package/dist/{chunk-MHIXBZDZ.js → chunk-PYK6GCCU.js} +6 -6
  63. package/dist/{chunk-LLZ2CX4M.js → chunk-QJKW4MKH.js} +6 -1
  64. package/dist/{chunk-ECUP2QQH.js → chunk-QKLCIJEU.js} +226 -187
  65. package/dist/{chunk-XEZO7VQH.js → chunk-QVOU2QUR.js} +2 -2
  66. package/dist/{chunk-CSWT3PDT.js → chunk-RGKJ5J72.js} +5 -5
  67. package/dist/{chunk-RT7R4COY.js → chunk-RKV3UQCG.js} +9 -8
  68. package/dist/{chunk-EE3FR5JP.js → chunk-SYKEQT63.js} +6 -6
  69. package/dist/{chunk-66GYPUUN.js → chunk-T5I2H7TJ.js} +1 -1
  70. package/dist/{chunk-3IEVIKMC.js → chunk-TWGSXBZM.js} +3 -3
  71. package/dist/{chunk-7VUTGCGH.js → chunk-U6EACUUG.js} +1 -1
  72. package/dist/{chunk-CGVYMX4N.js → chunk-U6HCTKPH.js} +7 -7
  73. package/dist/{chunk-U3SXAKQZ.js → chunk-U7MLC45I.js} +6 -6
  74. package/dist/{chunk-MMCVDHDX.js → chunk-UZSMDU4U.js} +3 -3
  75. package/dist/{chunk-SLWDYHO5.js → chunk-VMPVQE4D.js} +2 -2
  76. package/dist/{chunk-NKT32ZHB.js → chunk-VST3BWL4.js} +9 -9
  77. package/dist/{chunk-NNTORDVS.js → chunk-WAGHPZP2.js} +1 -1
  78. package/dist/{chunk-FINJC6BS.js → chunk-WZOWXDDM.js} +20 -14
  79. package/dist/{chunk-ARAH3W3L.js → chunk-XSGWMQJF.js} +3 -3
  80. package/dist/{chunk-ASR6TU43.js → chunk-YCBVYTFI.js} +1 -1
  81. package/dist/{chunk-6V6ONATO.js → chunk-YEZGNCSK.js} +2 -2
  82. package/dist/{chunk-GVRD3MBC.js → chunk-YWCK4EOT.js} +3 -3
  83. package/dist/{chunk-TE3Q6LVL.js → chunk-ZE2JJQPC.js} +1 -1
  84. package/dist/{chunk-757WX4YX.js → chunk-ZZ4WIQRF.js} +6 -5
  85. package/dist/{claude-launcher-5I7TNYQJ.js → claude-launcher-CPSCSL6U.js} +9 -9
  86. package/dist/{cli-4F4XTBBF.js → cli-4M74XOWW.js} +192 -161
  87. package/dist/{command-ABIQ63NE.js → command-RY76GIQG.js} +54 -53
  88. package/dist/{config-4W4MXVZR.js → config-23EBIGW4.js} +13 -12
  89. package/dist/{connect-cmd-I7TUU2BM.js → connect-cmd-GEBIOBQQ.js} +12 -11
  90. package/dist/{container-start-5EFWPLEB.js → container-start-SUBTHQME.js} +59 -54
  91. package/dist/{context-cleanup-7XUQDCJ5.js → context-cleanup-I7FLIV5A.js} +5 -5
  92. package/dist/{context-show-cmd-6U42IUEX.js → context-show-cmd-CSPMSRHX.js} +13 -12
  93. package/dist/{control-plane-launch-SLIYO4BZ.js → control-plane-launch-KC7NUNYQ.js} +16 -15
  94. package/dist/{demo-record-cmd-HBFGZHVK.js → demo-record-cmd-ZW6U2LAV.js} +9 -8
  95. package/dist/{demo-voice-cmd-ZINZNDWR.js → demo-voice-cmd-IDW3QX3E.js} +22 -21
  96. package/dist/{dist-AIMCXBLZ.js → dist-LOBYZWOU.js} +1 -1
  97. package/dist/docker-2VHMWLNK.js +20 -0
  98. package/dist/{doctor-ZTOJ53SA.js → doctor-GEG64FBO.js} +54 -53
  99. package/dist/{emit-artifact-cmd-DNA5R6C2.js → emit-artifact-cmd-2ZHPNLPG.js} +21 -20
  100. package/dist/{emit-cmd-OGNFGQF6.js → emit-cmd-UN7HGZC5.js} +8 -8
  101. package/dist/{emit-criteria-cmd-UGLCECVP.js → emit-criteria-cmd-TUXGD7CW.js} +15 -14
  102. package/dist/{emit-demo-cmd-GBNYC5GU.js → emit-demo-cmd-4YMYB556.js} +22 -21
  103. package/dist/{emit-finding-cmd-66OOJS5Q.js → emit-finding-cmd-O2NN22XF.js} +15 -14
  104. package/dist/{emit-result-cmd-3BAYNI6R.js → emit-result-cmd-VRITADX2.js} +20 -19
  105. package/dist/{emit-step-cmd-S2ZISEQS.js → emit-step-cmd-LGNBZTWJ.js} +15 -14
  106. package/dist/{exec-client-PISQ53KG.js → exec-client-NXTXAVHI.js} +9 -8
  107. package/dist/find-unit-RYYTX2O5.js +24 -0
  108. package/dist/{findings-cmd-BPYW5IMS.js → findings-cmd-RJD7KTSW.js} +15 -14
  109. package/dist/{fleet-readiness-XNWEAVW7.js → fleet-readiness-RIO2SWC7.js} +15 -14
  110. package/dist/{governing-source-GS73BIQ3.js → governing-source-IR3KUGQF.js} +21 -20
  111. package/dist/guest-init-FLSL5RI7.js +20 -0
  112. package/dist/{hook-fast-IXIYJKAN.js → hook-fast-HYRZAY5K.js} +4 -4
  113. package/dist/{hook-install-LHVMFLO6.js → hook-install-CSHKOLWT.js} +5 -5
  114. package/dist/{hook-wrap-fast-FCZEUJKT.js → hook-wrap-fast-ITUBSHEF.js} +3 -3
  115. package/dist/host-checks-OB45XC67.js +79 -0
  116. package/dist/host-key-CPAEQSNU.js +18 -0
  117. package/dist/{image-tag-U4YQCHRG.js → image-tag-MAMFM4SO.js} +9 -8
  118. package/dist/index.js +6 -6
  119. package/dist/{init-WGLH27Q3.js → init-G34M5Y4W.js} +50 -49
  120. package/dist/init-HHD2NNWY.js +79 -0
  121. package/dist/{init-cmd-N7MZ3LA3.js → init-cmd-GDT27DWD.js} +30 -29
  122. package/dist/{init-update-5RY6XB27.js → init-update-TQH2Q7IZ.js} +24 -23
  123. package/dist/install-cmd-PVQ5M5NM.js +21 -0
  124. package/dist/{layout-3YKZWTPE.js → layout-2DF7ON2F.js} +5 -5
  125. package/dist/{logs-U7QU7KPL.js → logs-BM644OOJ.js} +8 -7
  126. package/dist/loop-6MSKJN52.js +90 -0
  127. package/dist/machine-LGD4UVCI.js +79 -0
  128. package/dist/{machine-skills-4UHKD4HT.js → machine-skills-O7XAZYLN.js} +5 -5
  129. package/dist/{mcp-install-cmd-SQV4UZD6.js → mcp-install-cmd-METCXTTR.js} +5 -5
  130. package/dist/{mcp-serve-cmd-LRNO35OS.js → mcp-serve-cmd-CTKBLSM6.js} +10 -9
  131. package/dist/{paths-TH2PHIEY.js → paths-VIBBLJ2W.js} +8 -7
  132. package/dist/pending-RXJKH4AC.js +18 -0
  133. package/dist/{pidfile-CI7F3737.js → pidfile-PAX5XHQJ.js} +9 -8
  134. package/dist/{record-OFRT5V22.js → record-QPXOUL6F.js} +9 -8
  135. package/dist/{relay-NCWAF6NQ.js → relay-KASDMV3R.js} +6 -5
  136. package/dist/{relay-protocol-Y3HGIACN.js → relay-protocol-7HSCZC5H.js} +6 -5
  137. package/dist/runner-agents-WUMCXVS2.js +14 -0
  138. package/dist/runner-env-R2C5LYCX.js +24 -0
  139. package/dist/{runner-identity-QS26JIKL.js → runner-identity-UDPLWT7I.js} +11 -10
  140. package/dist/{runner-key-OKTRAUHO.js → runner-key-Z2IQ5TS7.js} +49 -48
  141. package/dist/{session-sender-UB6GJWZS.js → session-sender-4QKSVX5Z.js} +21 -20
  142. package/dist/{shell-function-H75JWHLA.js → shell-function-FTY7SSAJ.js} +2 -2
  143. package/dist/{spec-cmd-B3Y2JF4M.js → spec-cmd-TON4PYGQ.js} +16 -15
  144. package/dist/{starter-pack-3BXEKGIH.js → starter-pack-LAPDUG6E.js} +6 -6
  145. package/dist/state-OTWJW4O7.js +18 -0
  146. package/dist/{status-MPPZT5KS.js → status-ROMTDMFO.js} +49 -48
  147. package/dist/{statusline-fast-BTJSU3MB.js → statusline-fast-7V7U4SI4.js} +3 -3
  148. package/dist/{sync-cmd-YUWBZNQD.js → sync-cmd-FLNYVXAE.js} +20 -19
  149. package/dist/update-steps-A5OSPYAS.js +80 -0
  150. package/dist/{watch-GOWRN3BK.js → watch-4V7FZI5R.js} +20 -19
  151. package/dist/{work-claim-cmd-CHCADUYP.js → work-claim-cmd-5EYXVPKH.js} +21 -20
  152. package/dist/{work-cmd-WUJXUXHP.js → work-cmd-RUOTA5K7.js} +15 -14
  153. package/dist/{work-comment-cmd-E3GBVCQX.js → work-comment-cmd-7UM3O3EL.js} +18 -17
  154. package/dist/{work-demo-cmd-YOLKT6ZD.js → work-demo-cmd-K4NRR2AK.js} +15 -14
  155. package/dist/{work-logs-cmd-SHWLRI4D.js → work-logs-cmd-QW7PNI6V.js} +15 -14
  156. package/dist/{work-open-pr-cmd-LHMYF4CX.js → work-open-pr-cmd-Y6MTWQG5.js} +16 -15
  157. package/dist/{work-pr-cmd-PAYHF664.js → work-pr-cmd-WUIMC7XB.js} +15 -14
  158. package/dist/{work-proofs-cmd-VRZ5EOTH.js → work-proofs-cmd-5LMTROA6.js} +17 -16
  159. package/dist/{work-proofs-record-ECHOY77G.js → work-proofs-record-3JGUT2F5.js} +26 -25
  160. package/dist/{work-stop-cmd-Z6RMU44Y.js → work-stop-cmd-R5F5VRUM.js} +15 -14
  161. package/package.json +1 -1
  162. package/dist/agent-setup-PCMTLHTT.js +0 -39
  163. package/dist/caller-6X73FHOM.js +0 -22
  164. package/dist/docker-5L7BRY2J.js +0 -19
  165. package/dist/find-unit-QQP7HH3R.js +0 -23
  166. package/dist/guest-init-7OVIIKLM.js +0 -19
  167. package/dist/host-checks-XVHIR3EK.js +0 -78
  168. package/dist/host-key-3FKGWSHL.js +0 -17
  169. package/dist/init-V6ESW3K6.js +0 -78
  170. package/dist/install-cmd-6GXTY4UW.js +0 -20
  171. package/dist/loop-XM24ZVOO.js +0 -89
  172. package/dist/machine-X2Z5RLVD.js +0 -78
  173. package/dist/pending-EZKNEM2I.js +0 -17
  174. package/dist/runner-env-PO3FMLIW.js +0 -23
  175. package/dist/state-BV5BZMTE.js +0 -17
  176. 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-HX6B34ZF.js';
4
+ import './chunk-4MLH5MDB.js';
5
+ import { verifiedTrackerNames, TRACKERS } from './chunk-H4G26OZC.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-GDT27DWD.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-GDT27DWD.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-RUOTA5K7.js');
4694
4695
  try {
4695
- await action(await import('./spec-cmd-B3Y2JF4M.js'));
4696
+ await action(await import('./spec-cmd-TON4PYGQ.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,
@@ -4797,7 +4798,7 @@ takes it, and prints the line that starts your session on it. That
4797
4798
  session links itself and holds the item's lease while it works.
4798
4799
  `
4799
4800
  ).action(async (opts) => {
4800
- const { runWorkBuild, WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4801
+ const { runWorkBuild, WorkCommandError } = await import('./work-cmd-RUOTA5K7.js');
4801
4802
  try {
4802
4803
  await runWorkBuild(opts);
4803
4804
  } catch (err) {
@@ -4820,7 +4821,7 @@ renews that session's own 20-minute lease, unless --no-lease or
4820
4821
  --ended is given, or another worker already holds a live one.
4821
4822
  `
4822
4823
  ).action(async (number, opts) => {
4823
- const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4824
+ const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-RUOTA5K7.js');
4824
4825
  try {
4825
4826
  await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
4826
4827
  } catch (err) {
@@ -4851,8 +4852,8 @@ thread at its source. It takes a plain answer: no --criterion and no
4851
4852
  action flag.
4852
4853
  `
4853
4854
  ).action(async (opts) => {
4854
- const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-E3GBVCQX.js');
4855
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4855
+ const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-7UM3O3EL.js');
4856
+ const { WorkCommandError } = await import('./work-cmd-RUOTA5K7.js');
4856
4857
  try {
4857
4858
  await runWorkComment(opts);
4858
4859
  } catch (err) {
@@ -4874,7 +4875,7 @@ nothing and exits 0 when the call fails: the line goes to hook-errors.log,
4874
4875
  and the comment waits for the next agent job.
4875
4876
  `
4876
4877
  ).action(async (ids, opts) => {
4877
- const { runWorkCommentsRead } = await import('./work-comment-cmd-E3GBVCQX.js');
4878
+ const { runWorkCommentsRead } = await import('./work-comment-cmd-7UM3O3EL.js');
4878
4879
  await runWorkCommentsRead({ ...opts, commentIds: ids });
4879
4880
  });
4880
4881
  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 +4891,8 @@ that started outside OuterLayer, such as the line comments of a
4890
4891
  GitHub review, each with its id, source and comments.
4891
4892
  `
4892
4893
  ).action(async (opts) => {
4893
- const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-E3GBVCQX.js');
4894
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4894
+ const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-7UM3O3EL.js');
4895
+ const { WorkCommandError } = await import('./work-cmd-RUOTA5K7.js');
4895
4896
  try {
4896
4897
  await runWorkThreads(opts);
4897
4898
  } catch (err) {
@@ -4915,8 +4916,8 @@ still running, or that an older runner released, has no log and the
4915
4916
  command exits 1.
4916
4917
  `
4917
4918
  ).action(async (opts) => {
4918
- const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-SHWLRI4D.js');
4919
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4919
+ const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-QW7PNI6V.js');
4920
+ const { WorkCommandError } = await import('./work-cmd-RUOTA5K7.js');
4920
4921
  try {
4921
4922
  await runWorkLogs(opts);
4922
4923
  } catch (err) {
@@ -4939,8 +4940,8 @@ item is not built again until a new build request. Exits 1 when no host
4939
4940
  build is running for the item.
4940
4941
  `
4941
4942
  ).action(async (opts) => {
4942
- const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-Z6RMU44Y.js');
4943
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4943
+ const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-R5F5VRUM.js');
4944
+ const { WorkCommandError } = await import('./work-cmd-RUOTA5K7.js');
4944
4945
  try {
4945
4946
  await runWorkStop(opts);
4946
4947
  } catch (err) {
@@ -4961,8 +4962,8 @@ Prints the item's newest live demo record: its artifact id, the commit it was re
4961
4962
  test file that recorded it. With --json, prints { "demo": null } for an item with no demo.
4962
4963
  `
4963
4964
  ).action(async (opts) => {
4964
- const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-YOLKT6ZD.js');
4965
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4965
+ const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-K4NRR2AK.js');
4966
+ const { WorkCommandError } = await import('./work-cmd-RUOTA5K7.js');
4966
4967
  try {
4967
4968
  await runWorkDemo(opts);
4968
4969
  } catch (err) {
@@ -4983,7 +4984,7 @@ deletes anything \u2014 the item is removed from Work only once no
4983
4984
  live addition remains on it.
4984
4985
  `
4985
4986
  ).action(async (opts) => {
4986
- const { runWorkRemove, WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
4987
+ const { runWorkRemove, WorkCommandError } = await import('./work-cmd-RUOTA5K7.js');
4987
4988
  try {
4988
4989
  await runWorkRemove(opts);
4989
4990
  } catch (err) {
@@ -4995,7 +4996,7 @@ live addition remains on it.
4995
4996
  }
4996
4997
  });
4997
4998
  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');
4999
+ const { runWorkStatus, WorkCommandError } = await import('./work-cmd-RUOTA5K7.js');
4999
5000
  try {
5000
5001
  await runWorkStatus(opts);
5001
5002
  } catch (err) {
@@ -5040,11 +5041,11 @@ differs from HEAD.
5040
5041
  fail(trackerNumberError("--pr", opts.pr));
5041
5042
  return;
5042
5043
  }
5043
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-VRZ5EOTH.js');
5044
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-5LMTROA6.js');
5044
5045
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5045
5046
  });
5046
5047
  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');
5048
+ const { runWorkList, WorkCommandError } = await import('./work-cmd-RUOTA5K7.js');
5048
5049
  try {
5049
5050
  await runWorkList(opts);
5050
5051
  } catch (err) {
@@ -5065,7 +5066,7 @@ by a different key is refused; claiming again with the same key extends
5065
5066
  it. --host is a label only.
5066
5067
  `
5067
5068
  ).action(async (opts) => {
5068
- const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-CHCADUYP.js');
5069
+ const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-5EYXVPKH.js');
5069
5070
  try {
5070
5071
  await runWorkClaim(opts);
5071
5072
  } catch (err) {
@@ -5085,7 +5086,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
5085
5086
  lease has expired, or a 403 if a different key holds it.
5086
5087
  `
5087
5088
  ).action(async (opts) => {
5088
- const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-CHCADUYP.js');
5089
+ const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-5EYXVPKH.js');
5089
5090
  try {
5090
5091
  await runWorkRenew(opts);
5091
5092
  } catch (err) {
@@ -5117,7 +5118,7 @@ applies to a host's lease only. A later tool call in the session
5117
5118
  takes the lease again.
5118
5119
  `
5119
5120
  ).action(async (opts) => {
5120
- const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-CHCADUYP.js');
5121
+ const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-5EYXVPKH.js');
5121
5122
  try {
5122
5123
  await runWorkRelease(opts);
5123
5124
  } catch (err) {
@@ -5144,7 +5145,7 @@ Idempotent: declaring the same pull request twice is a no-op.
5144
5145
  needs your own login; an agent session or a factory key is refused.
5145
5146
  `
5146
5147
  ).action(async (number, opts) => {
5147
- const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-PAYHF664.js');
5148
+ const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-WUIMC7XB.js');
5148
5149
  try {
5149
5150
  await runWorkPr({ ...opts, number });
5150
5151
  } catch (err) {
@@ -5169,8 +5170,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
5169
5170
  Run it again after a change to the title or description.
5170
5171
  `
5171
5172
  ).action(async (opts) => {
5172
- const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-LHMYF4CX.js');
5173
- const { WorkCommandError } = await import('./work-cmd-WUJXUXHP.js');
5173
+ const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-Y6MTWQG5.js');
5174
+ const { WorkCommandError } = await import('./work-cmd-RUOTA5K7.js');
5174
5175
  try {
5175
5176
  await runWorkOpenPr(opts);
5176
5177
  } catch (err) {
@@ -5182,13 +5183,29 @@ Run it again after a change to the title or description.
5182
5183
  }
5183
5184
  });
5184
5185
  }
5186
+ function runnerHelpWords() {
5187
+ const agent = credentialAgent();
5188
+ const forms = credentialForms(agent.descriptor);
5189
+ return {
5190
+ agent: agent.descriptor.label,
5191
+ label: forms.label,
5192
+ possessive: forms.possessive,
5193
+ runnerName: forms.runnerName,
5194
+ envFile: forms.envFile,
5195
+ setupCommand: forms.setupCommand,
5196
+ variables: forms.variables,
5197
+ starts: credentialShapes(agent.descriptor).map((shape) => shape.starts)
5198
+ };
5199
+ }
5185
5200
  function registerRunnerCommands(program2) {
5201
+ let resolved;
5202
+ const words = () => resolved ??= runnerHelpWords();
5186
5203
  const runnerCmd = program2.command("runner").description("Take work from the implement and amend queues on this machine");
5187
5204
  const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
5188
5205
  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');
5206
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-23EBIGW4.js');
5207
+ const { start, RunnerStartError } = await import('./loop-6MSKJN52.js');
5208
+ const { RunnerAlreadyRunningError } = await import('./pidfile-PAX5XHQJ.js');
5192
5209
  const configPath = opts.config ?? defaultRunnerConfigPath();
5193
5210
  try {
5194
5211
  const { realUpdateDeps } = await import('./real-deps-QX5YH7FG.js');
@@ -5203,20 +5220,25 @@ function registerRunnerCommands(program2) {
5203
5220
  });
5204
5221
  runnerCmd.command("container-start").description("Container entrypoint: write the config from variables, then run").addHelpText(
5205
5222
  "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"
5223
+ () => `
5224
+ Reads OUTERLAYER_URL, OUTERLAYER_APP_ID, OUTERLAYER_API_KEY, OUTERLAYER_RUNNER_NAME and one ${words().label} credential
5225
+ (${words().variables.join(" or ")}) from the environment. OUTERLAYER_AGENT
5226
+ is optional and defaults to ${words().runnerName}. On a later start it refuses variables that disagree with the config in the volume.
5227
+ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5228
+ `
5207
5229
  ).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');
5230
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-23EBIGW4.js');
5231
+ const { containerStart, containerStartExit } = await import('./container-start-SUBTHQME.js');
5232
+ const { start, RunnerStartError } = await import('./loop-6MSKJN52.js');
5233
+ const { RunnerAlreadyRunningError } = await import('./pidfile-PAX5XHQJ.js');
5212
5234
  try {
5213
- const result = await containerStart({
5235
+ const outcome = containerStartExit(await containerStart({
5214
5236
  env: process.env,
5215
5237
  configPath: defaultRunnerConfigPath(),
5216
5238
  start,
5217
5239
  exit: (code) => process.exit(code)
5218
- });
5219
- if (!result.ok) fail(result.message);
5240
+ }));
5241
+ if (outcome.message !== void 0) fail(outcome.message, outcome.code);
5220
5242
  } catch (err) {
5221
5243
  if (err instanceof RunnerConfigError || err instanceof RunnerAlreadyRunningError || err instanceof RunnerStartError) {
5222
5244
  fail(err.message);
@@ -5229,16 +5251,16 @@ function registerRunnerCommands(program2) {
5229
5251
  "after",
5230
5252
  "\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
5253
  ).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');
5254
+ const { defaultRunnerConfigPath } = await import('./config-23EBIGW4.js');
5255
+ const { runnerDir } = await import('./paths-VIBBLJ2W.js');
5256
+ const { runUpdateSteps } = await import('./update-steps-A5OSPYAS.js');
5235
5257
  const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
5236
5258
  process.stdout.write(`${text}
5237
5259
  `);
5238
5260
  });
5239
5261
  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');
5262
+ const { defaultRunnerConfigPath } = await import('./config-23EBIGW4.js');
5263
+ const { runRunnerCheck } = await import('./check-QLJ2O7VO.js');
5242
5264
  const configPath = opts.config ?? defaultRunnerConfigPath();
5243
5265
  const result = await runRunnerCheck(configPath);
5244
5266
  if (!result.ok) {
@@ -5259,8 +5281,8 @@ function registerRunnerCommands(program2) {
5259
5281
  `);
5260
5282
  });
5261
5283
  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');
5284
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-23EBIGW4.js');
5285
+ const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-PVQ5M5NM.js');
5264
5286
  const configPath = opts.config ?? defaultRunnerConfigPath();
5265
5287
  if (opts.service !== true) {
5266
5288
  const names = { print: "print", user: "user", unitName: "unit-name", buildMemoryMax: "build-memory-max", buildCpusMax: "build-cpus-max" };
@@ -5272,13 +5294,13 @@ function registerRunnerCommands(program2) {
5272
5294
  }
5273
5295
  }
5274
5296
  const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
5275
- if (buildCpusMax !== void 0 && !(await import('./command-ABIQ63NE.js')).cpusAreValid(buildCpusMax)) {
5297
+ if (buildCpusMax !== void 0 && !(await import('./command-RY76GIQG.js')).cpusAreValid(buildCpusMax)) {
5276
5298
  fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
5277
5299
  return;
5278
5300
  }
5279
5301
  try {
5280
5302
  if (opts.service === true) {
5281
- const { installServiceCommand } = await import('./command-ABIQ63NE.js');
5303
+ const { installServiceCommand } = await import('./command-RY76GIQG.js');
5282
5304
  const result2 = await installServiceCommand({
5283
5305
  configPath,
5284
5306
  print: opts.print,
@@ -5335,8 +5357,8 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5335
5357
  fail(`pass --service: \`${cliInvocation()} runner uninstall --service\` removes the runner's service.`);
5336
5358
  return;
5337
5359
  }
5338
- const { defaultRunnerConfigPath } = await import('./config-4W4MXVZR.js');
5339
- const { uninstallServiceCommand } = await import('./command-ABIQ63NE.js');
5360
+ const { defaultRunnerConfigPath } = await import('./config-23EBIGW4.js');
5361
+ const { uninstallServiceCommand } = await import('./command-RY76GIQG.js');
5340
5362
  const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
5341
5363
  if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5342
5364
  `);
@@ -5344,7 +5366,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5344
5366
  });
5345
5367
  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
5368
  "after",
5347
- `
5369
+ () => `
5348
5370
  With no apiKey in the config file, and a login saved by \`${cliInvocation()} login\`,
5349
5371
  runner init names the factory the runner is for: --factory, then --app-id,
5350
5372
  OUTERLAYER_APP_ID, or this repository's connection. With none of those, a
@@ -5353,25 +5375,26 @@ them. It then prints the factory's API keys page, where you create a key with
5353
5375
  the Runner preset, and asks you to paste it. Nothing is shown as you paste.
5354
5376
  With no terminal to ask on, it stops and says what to put in the config file.
5355
5377
 
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.
5378
+ With --agent ${words().runnerName}, the queue commands start ${words().agent} instead of the
5379
+ placeholder, and ${words().possessive} credential is read from stdin: a token from
5380
+ \`${words().setupCommand}\` (${words().starts[0]}...) or an API key (${words().starts[1]}...). It is
5381
+ never printed, and is stored in the ${words().envFile} beside the config with mode
5382
+ 600. Any ${words().label} credential line in runner.env is removed. With nothing piped, a credential
5383
+ already in ${words().envFile} is used.
5362
5384
 
5363
- printf '%s' "$CLAUDE_CODE_OAUTH_TOKEN" | ${cliInvocation()} runner init --agent claude --factory <org>/<factory>
5385
+ printf '%s' "$${words().variables[0]}" | ${cliInvocation()} runner init --agent ${words().runnerName} --factory <org>/<factory>
5364
5386
  `
5365
5387
  ).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');
5388
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-23EBIGW4.js');
5389
+ const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-HHD2NNWY.js');
5390
+ const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-Z2IQ5TS7.js');
5391
+ const { detectMachine } = await import('./machine-LGD4UVCI.js');
5392
+ const { chooseVm, runVmInit, VmInitError } = await import('./init-G34M5Y4W.js');
5393
+ const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-R2C5LYCX.js');
5394
+ const { headlessNames } = await import('./runner-agents-WUMCXVS2.js');
5372
5395
  const configPath = opts.config ?? defaultRunnerConfigPath();
5373
5396
  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.`);
5397
+ fail(`--agent ${opts.agent}: runner init writes commands for ${headlessNames().join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
5375
5398
  return;
5376
5399
  }
5377
5400
  const agent = opts.agent;
@@ -5385,7 +5408,7 @@ already in claude.env is used.
5385
5408
  const { readPipedKey } = await import('./login-browser-NUQQYH5J.js');
5386
5409
  credential = credentialFromStdin(
5387
5410
  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
5411
+ 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
5412
  `)
5390
5413
  })
5391
5414
  );
@@ -5399,7 +5422,7 @@ already in claude.env is used.
5399
5422
  const chunks = [];
5400
5423
  for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
5401
5424
  const result2 = runRunnerInit(configPath, { machine, configFromStdin: Buffer.concat(chunks).toString("utf8"), requireContainer: true });
5402
- const { ensureHostKey: ensureHostKey2 } = await import('./host-key-3FKGWSHL.js');
5425
+ const { ensureHostKey: ensureHostKey2 } = await import('./host-key-CPAEQSNU.js');
5403
5426
  const hostKey2 = await ensureHostKey2(configPath);
5404
5427
  process.stdout.write(`host key ${hostKey2.fingerprint}
5405
5428
  hooks: ${result2.hooks}
@@ -5454,7 +5477,7 @@ hooks: ${result2.hooks}
5454
5477
  const prepared = prepareRunnerInit(configPath, { machine, agent, credential, keyFromLogin: makeKey !== void 0 });
5455
5478
  const created = makeKey === void 0 ? void 0 : await makeKey();
5456
5479
  const result = writeRunnerInit(prepared, created);
5457
- const { ensureHostKey } = await import('./host-key-3FKGWSHL.js');
5480
+ const { ensureHostKey } = await import('./host-key-CPAEQSNU.js');
5458
5481
  const hostKey = await ensureHostKey(configPath);
5459
5482
  if (created !== void 0) {
5460
5483
  process.stdout.write(`${C.green}\u2713${C.reset} saved the runner key in ${result.configPath}
@@ -5474,7 +5497,7 @@ hooks: ${result2.hooks}
5474
5497
  );
5475
5498
  process.stdout.write(`${C.green}\u2713${C.reset} hooks: ${result.hooks}${result.hooks === "builtin:vm" ? " (builds run in microVMs)" : " (builds run in containers)"}
5476
5499
  `);
5477
- const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-6GXTY4UW.js');
5500
+ const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-PVQ5M5NM.js');
5478
5501
  let installedLayout = false;
5479
5502
  let noService = "it starts the runner from the install layout, which needs a CLI installed with npm";
5480
5503
  try {
@@ -5506,7 +5529,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
5506
5529
  let serviceUp = false;
5507
5530
  let restart;
5508
5531
  if (installedLayout) {
5509
- const { installServiceCommand } = await import('./command-ABIQ63NE.js');
5532
+ const { installServiceCommand } = await import('./command-RY76GIQG.js');
5510
5533
  const service = await installServiceCommand({
5511
5534
  configPath,
5512
5535
  entryPath: process.argv[1] ?? "",
@@ -5534,7 +5557,7 @@ ${C.yellow}${restart}${C.reset}
5534
5557
  `
5535
5558
  Next:
5536
5559
  ` + 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.
5560
+ `).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
5561
  ` : serviceUp ? ` The runner service is running; ${C.yellow}${cliInvocation()} runner status${C.reset} shows what it is doing.
5539
5562
  ` : "")
5540
5563
  );
@@ -5548,14 +5571,22 @@ Next:
5548
5571
  });
5549
5572
  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
5573
  "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"
5574
+ () => `
5575
+ A repository governed by a control plane builds the control plane's image, at the commit
5576
+ the gateway has stored for it. A repository that governs itself fetches the head of its
5577
+ default branch into the runner's cache. Either way it reads .devcontainer/devcontainer.json
5578
+ and builds the image with the devcontainer CLI. Settings
5579
+ that reach the host or widen the container's privileges are ignored and listed. The
5580
+ image holds this CLI and a pinned ${words().agent}. Nothing runs inside the image.
5581
+ A repository with no devcontainer file builds on the universal image the CLI pins by digest.
5582
+ `
5552
5583
  ).action(async (opts) => {
5553
- const { defaultRunnerConfigPath } = await import('./config-4W4MXVZR.js');
5554
- const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-CV6IUJWD.js');
5584
+ const { defaultRunnerConfigPath } = await import('./config-23EBIGW4.js');
5585
+ const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-UKZ5RPRR.js');
5555
5586
  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');
5587
+ const { createDockerHost } = await import('./docker-2VHMWLNK.js');
5588
+ const { builderSpec } = await import('./builder-QEK4GIRY.js');
5589
+ const { loadRunnerConfig } = await import('./config-23EBIGW4.js');
5559
5590
  const configPath = opts.config ?? defaultRunnerConfigPath();
5560
5591
  const loaded = (() => {
5561
5592
  try {
@@ -5566,12 +5597,12 @@ Next:
5566
5597
  })();
5567
5598
  const memory = loaded?.build?.memory ?? "8g";
5568
5599
  try {
5569
- const { ensureRunnerIdentity } = await import('./runner-identity-QS26JIKL.js');
5600
+ const { ensureRunnerIdentity } = await import('./runner-identity-UDPLWT7I.js');
5570
5601
  await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
5571
5602
  console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
5572
5603
  });
5573
- const { imageTargetFor } = await import('./governing-source-GS73BIQ3.js');
5574
- const { runnerCalls } = await import('./caller-6X73FHOM.js');
5604
+ const { imageTargetFor } = await import('./governing-source-IR3KUGQF.js');
5605
+ const { runnerCalls } = await import('./caller-WSMJJSFL.js');
5575
5606
  const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
5576
5607
  if (!target.ok) {
5577
5608
  if (opts.json) {
@@ -5635,25 +5666,25 @@ Next:
5635
5666
  }
5636
5667
  });
5637
5668
  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');
5669
+ const { defaultRunnerConfigPath } = await import('./config-23EBIGW4.js');
5670
+ const { requestStop } = await import('./loop-6MSKJN52.js');
5640
5671
  const configPath = opts.config ?? defaultRunnerConfigPath();
5641
- const { runnerImageVersion } = await import('./image-tag-U4YQCHRG.js');
5672
+ const { runnerImageVersion } = await import('./image-tag-MAMFM4SO.js');
5642
5673
  await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
5643
5674
  });
5644
5675
  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');
5676
+ const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-23EBIGW4.js');
5677
+ const { jobsDir, runnerDir } = await import('./paths-VIBBLJ2W.js');
5678
+ const { listJobFiles, runnerProcessState } = await import('./loop-6MSKJN52.js');
5679
+ const { renderStatus } = await import('./status-ROMTDMFO.js');
5680
+ const { readHousekeepingRecord } = await import('./record-QPXOUL6F.js');
5650
5681
  const path2 = await import('path');
5651
5682
  const configPath = opts.config ?? defaultRunnerConfigPath();
5652
5683
  const all = listJobFiles(configPath);
5653
5684
  const housekeeping = readHousekeepingRecord(runnerDir(configPath));
5654
- const { readPendingUpdate } = await import('./pending-EZKNEM2I.js');
5685
+ const { readPendingUpdate } = await import('./pending-RXJKH4AC.js');
5655
5686
  const pendingUpdate = readPendingUpdate(runnerDir(configPath));
5656
- const { readImageStatus } = await import('./image-tag-U4YQCHRG.js');
5687
+ const { readImageStatus } = await import('./image-tag-MAMFM4SO.js');
5657
5688
  const image = readImageStatus(runnerDir(configPath));
5658
5689
  let host = "unknown";
5659
5690
  let concurrency = 1;
@@ -5663,7 +5694,7 @@ Next:
5663
5694
  host = config.host;
5664
5695
  concurrency = config.concurrency;
5665
5696
  if (config.fleet === true) {
5666
- const { readFleetState } = await import('./state-BV5BZMTE.js');
5697
+ const { readFleetState } = await import('./state-OTWJW4O7.js');
5667
5698
  fleet = { state: readFleetState(configPath) };
5668
5699
  }
5669
5700
  } catch {
@@ -5671,7 +5702,7 @@ Next:
5671
5702
  const processState = runnerProcessState(configPath);
5672
5703
  const service = await (async () => {
5673
5704
  if (process.platform !== "linux" || !existsSync("/run/systemd/system")) return void 0;
5674
- const { inspectRunnerService } = await import('./find-unit-QQP7HH3R.js');
5705
+ const { inspectRunnerService } = await import('./find-unit-RYYTX2O5.js');
5675
5706
  const facts = inspectRunnerService(configPath);
5676
5707
  return facts === void 0 ? void 0 : { unit: facts.unit, running: facts.mainPid !== void 0, delegated: facts.delegate };
5677
5708
  })();
@@ -5710,9 +5741,9 @@ Next:
5710
5741
  );
5711
5742
  });
5712
5743
  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');
5744
+ const { defaultRunnerConfigPath } = await import('./config-23EBIGW4.js');
5745
+ const { listJobFiles } = await import('./loop-6MSKJN52.js');
5746
+ const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-BM644OOJ.js');
5716
5747
  const configPath = opts.config ?? defaultRunnerConfigPath();
5717
5748
  const jobs = listJobFiles(configPath);
5718
5749
  const selected = selectAttempt(jobs, itemArg);
@@ -5933,7 +5964,7 @@ Self-host deployments also need --app-id: without a key service to resolve the
5933
5964
  caller from the bearer token, the gateway answers 401 without that header.
5934
5965
  `
5935
5966
  ).action(async (opts) => {
5936
- const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-SQV4UZD6.js');
5967
+ const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-METCXTTR.js');
5937
5968
  try {
5938
5969
  if (opts.transport !== void 0 && opts.transport !== "stdio" && opts.transport !== "http") {
5939
5970
  throw new McpInstallError(`--transport must be "stdio" or "http", got "${opts.transport}"`);
@@ -5955,7 +5986,7 @@ caller from the bearer token, the gateway answers 401 without that header.
5955
5986
  "after",
5956
5987
  "\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
5988
  ).action(async (opts) => {
5958
- const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-LRNO35OS.js');
5989
+ const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-CTKBLSM6.js');
5959
5990
  try {
5960
5991
  await runMcpServe({ url: opts.url, appId: opts.appId });
5961
5992
  } catch (err) {
@@ -5976,7 +6007,7 @@ would get, the instruction files and the names of the skills. It warns when the
5976
6007
  no \`build\`. It needs the context-read permission: a login or a factory key with it is enough.
5977
6008
  `
5978
6009
  ).action(async (opts) => {
5979
- const { runContextShow, ContextShowError } = await import('./context-show-cmd-6U42IUEX.js');
6010
+ const { runContextShow, ContextShowError } = await import('./context-show-cmd-CSPMSRHX.js');
5980
6011
  try {
5981
6012
  const result = await runContextShow({ repo: opts.repo, json: opts.json, url: opts.url, apiKey: opts.apiKey, appId: opts.appId });
5982
6013
  process.stdout.write(result.output);