@outerlayer/cli 0.38.0-next.20261111024231 → 0.38.0-next.20261111113945

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/README.md +8 -0
  2. package/dist/{agent-setup-T2VITZUY.js → agent-setup-OJETTF3R.js} +18 -18
  3. package/dist/{agent-subcommand-KV3JO5YD.js → agent-subcommand-GDVH463X.js} +3 -3
  4. package/dist/{bridge-7MCKZXCR.js → bridge-D3L6JK6X.js} +6 -6
  5. package/dist/{build-N2MRLYFW.js → build-CBPURIYL.js} +12 -12
  6. package/dist/{build-disk-IJZYZ2K5.js → build-disk-ANS4SYJ3.js} +10 -10
  7. package/dist/build-info.json +1 -1
  8. package/dist/{builder-ATKIRCDJ.js → builder-7TYKMRTJ.js} +9 -9
  9. package/dist/caller-ZROOH73G.js +23 -0
  10. package/dist/{check-F7RN65GG.js → check-XFV3VI2N.js} +52 -52
  11. package/dist/{chunk-FT5NDSSG.js → chunk-2APZSZWP.js} +6 -6
  12. package/dist/{chunk-IEX5FXEU.js → chunk-36M66QKN.js} +1 -1
  13. package/dist/{chunk-BY2YRJSC.js → chunk-36XCKMNB.js} +4 -4
  14. package/dist/{chunk-PG33WPRF.js → chunk-3BEMKOFH.js} +1 -1
  15. package/dist/{chunk-3VEPVZV4.js → chunk-3WNKIXAJ.js} +6 -6
  16. package/dist/{chunk-LXREVZX7.js → chunk-4GJPOZXO.js} +5 -5
  17. package/dist/{chunk-T5CN56UE.js → chunk-5YJWKIIO.js} +1 -1
  18. package/dist/{chunk-E5G6K7C4.js → chunk-6XORUAR7.js} +390 -9
  19. package/dist/{chunk-IB2UHXZ7.js → chunk-7IV7XZ6C.js} +8 -8
  20. package/dist/{chunk-7LWASV77.js → chunk-7YDMHWVK.js} +3 -3
  21. package/dist/{chunk-ECMQNH2H.js → chunk-AABLA7NP.js} +3 -3
  22. package/dist/{chunk-EWGHEMEO.js → chunk-BCP3LGUV.js} +2 -2
  23. package/dist/{chunk-U5YHNSSI.js → chunk-CEDWGLK5.js} +7 -7
  24. package/dist/{chunk-OBSWWJJ3.js → chunk-DHLEYFNL.js} +3 -3
  25. package/dist/{chunk-FB2UT5XA.js → chunk-EFIMO5HF.js} +26 -26
  26. package/dist/{chunk-J4DTF5MN.js → chunk-F3RBGMHL.js} +1 -1
  27. package/dist/{chunk-YI2XPK7A.js → chunk-FAFHCIJN.js} +1 -1
  28. package/dist/{chunk-2FUJ5PSV.js → chunk-FQPGZOH3.js} +1 -1
  29. package/dist/{chunk-6T2X2JI6.js → chunk-GNJVUQYO.js} +3 -3
  30. package/dist/{chunk-KM2IMFAG.js → chunk-HKP33YSC.js} +1 -1
  31. package/dist/{chunk-M5DYOU5G.js → chunk-HWUCTGDI.js} +5 -5
  32. package/dist/{chunk-W2H6JURI.js → chunk-I6PMRDHZ.js} +4 -4
  33. package/dist/{chunk-YFMVZBLO.js → chunk-I6RBMWDV.js} +7 -7
  34. package/dist/{chunk-OBXRHBOM.js → chunk-ICXSMGJF.js} +4 -4
  35. package/dist/{chunk-64ROJ5LD.js → chunk-IKT2MOY6.js} +1 -1
  36. package/dist/{chunk-WPGGRTF4.js → chunk-JDOEEKPN.js} +1 -1
  37. package/dist/{chunk-GPP5EZV7.js → chunk-JOFYKUCM.js} +5 -5
  38. package/dist/{chunk-O53PVAUY.js → chunk-JZJNPNNW.js} +8 -6
  39. package/dist/{chunk-RWXLTF3K.js → chunk-KR34GXEH.js} +1 -1
  40. package/dist/{chunk-MPF7CVQM.js → chunk-L2VXYF66.js} +1 -1
  41. package/dist/{chunk-NWSKP5VI.js → chunk-LIHVAX2O.js} +4 -4
  42. package/dist/{chunk-CSFMIUYS.js → chunk-LW5RIKAV.js} +1 -1
  43. package/dist/{chunk-QM3M7QN3.js → chunk-LXEXWLCW.js} +1 -1
  44. package/dist/{chunk-ASCXEXYJ.js → chunk-MJEP4EFZ.js} +8 -8
  45. package/dist/{chunk-2HLMGVK6.js → chunk-MOA4PGYL.js} +1 -1
  46. package/dist/{chunk-OUKSF3LK.js → chunk-MOFT7QCR.js} +5 -5
  47. package/dist/{chunk-7U43B2UB.js → chunk-NFPJ2XC2.js} +2 -2
  48. package/dist/{chunk-NC6HUEMI.js → chunk-NIMQJTUR.js} +10 -10
  49. package/dist/{chunk-HWXBOHEA.js → chunk-NJ6IJFKR.js} +1 -1
  50. package/dist/{chunk-R35KRBTS.js → chunk-O67Y46CY.js} +7 -7
  51. package/dist/{chunk-XSVZFWZ4.js → chunk-O7TYQC2D.js} +7 -7
  52. package/dist/{chunk-R7BS36HP.js → chunk-OFZ5A2A5.js} +1 -1
  53. package/dist/{chunk-7GYY7RHR.js → chunk-OKAAVLLW.js} +4 -4
  54. package/dist/{chunk-GGKXYHT5.js → chunk-OZWB73EH.js} +2 -2
  55. package/dist/{chunk-G2CRPYFO.js → chunk-PDPBWX67.js} +1 -1
  56. package/dist/{chunk-RPIYENP2.js → chunk-PFNFXK5B.js} +4 -4
  57. package/dist/{chunk-7HYXJVU6.js → chunk-QHRH3BPI.js} +1 -1
  58. package/dist/{chunk-NAKFPE2V.js → chunk-QMCWSBQO.js} +1 -1
  59. package/dist/{chunk-YB3M2TM3.js → chunk-RHPEAVKR.js} +1 -1
  60. package/dist/{chunk-REZNW2YV.js → chunk-S6VT3TNG.js} +8 -8
  61. package/dist/{chunk-2KUFDLLY.js → chunk-SASWFX22.js} +1 -1
  62. package/dist/{chunk-KGJAYD7F.js → chunk-SGZCU6L3.js} +73 -30
  63. package/dist/{chunk-ICW75TS5.js → chunk-TXRMWSFE.js} +5 -5
  64. package/dist/{chunk-6U3UTAWQ.js → chunk-U527OJJO.js} +1 -1
  65. package/dist/{chunk-XMIL73Y2.js → chunk-UBZTPZJF.js} +1 -1
  66. package/dist/{chunk-YFQIK6LZ.js → chunk-UEAEKTK5.js} +7 -7
  67. package/dist/{chunk-OVJSVC5U.js → chunk-USINHGZI.js} +2 -2
  68. package/dist/{chunk-K6KUWUUT.js → chunk-VASOYLWE.js} +5 -5
  69. package/dist/{chunk-I5C667TJ.js → chunk-WBUOD2CU.js} +15 -15
  70. package/dist/{chunk-4HUYH65P.js → chunk-WL333KYF.js} +1 -1
  71. package/dist/{chunk-PP7MPUX7.js → chunk-WTPL4B4G.js} +3 -3
  72. package/dist/{chunk-MRSN67FY.js → chunk-WV4T6ZOQ.js} +1 -1
  73. package/dist/{chunk-ZGCIFD5Y.js → chunk-XEFOBPG3.js} +3 -3
  74. package/dist/{chunk-AB4GMYIH.js → chunk-XF2HRP6A.js} +4 -4
  75. package/dist/{chunk-5NJ367OD.js → chunk-XJJIVGJB.js} +5 -5
  76. package/dist/{chunk-7G2HRTSG.js → chunk-YE6EE4RC.js} +3 -3
  77. package/dist/{chunk-JPAO6HRN.js → chunk-YTZYFWJQ.js} +2 -2
  78. package/dist/{chunk-2PRDLE4L.js → chunk-ZTH5HHYS.js} +1 -1
  79. package/dist/{chunk-4YAFIOIV.js → chunk-ZW36EULQ.js} +4 -4
  80. package/dist/{claude-launcher-ZC664P33.js → claude-launcher-YYBDHFKP.js} +6 -6
  81. package/dist/{cli-XWXX6PJD.js → cli-KUDROKJT.js} +161 -151
  82. package/dist/{command-D656K4AE.js → command-6EO3Z7BW.js} +47 -47
  83. package/dist/{config-U2OR7MQW.js → config-6EOFYJWZ.js} +11 -11
  84. package/dist/{connect-cmd-73BBTTU5.js → connect-cmd-OTYUH5EY.js} +10 -10
  85. package/dist/{container-start-JFJYC4GQ.js → container-start-B6UCYRAZ.js} +45 -45
  86. package/dist/{context-cleanup-JPPSK7DE.js → context-cleanup-FIQMPC6F.js} +3 -3
  87. package/dist/{context-show-cmd-ETWKBHXZ.js → context-show-cmd-U7NEJRQH.js} +11 -11
  88. package/dist/{control-plane-launch-JOH7FS5U.js → control-plane-launch-SXAXGPCQ.js} +13 -13
  89. package/dist/{demo-record-cmd-GBHPIYJA.js → demo-record-cmd-WJJWOVEV.js} +7 -7
  90. package/dist/{demo-voice-cmd-GUYFA2NG.js → demo-voice-cmd-CDVRH7RS.js} +17 -17
  91. package/dist/{dist-5VKIP767.js → dist-JSSJSW2B.js} +1 -1
  92. package/dist/{docker-RC4CFNKI.js → docker-G46NSNAE.js} +9 -9
  93. package/dist/{doctor-TW6VREAT.js → doctor-6TS6Y6DI.js} +47 -47
  94. package/dist/{emit-artifact-cmd-CQLCPM4R.js → emit-artifact-cmd-QET3MR7Y.js} +16 -16
  95. package/dist/{emit-cmd-AIAY4WTW.js → emit-cmd-QGVMVSLS.js} +6 -6
  96. package/dist/{emit-criteria-cmd-VM7AO3E3.js → emit-criteria-cmd-Z3NGUOQ3.js} +13 -13
  97. package/dist/{emit-demo-cmd-3NSODQTO.js → emit-demo-cmd-VN5TLP6X.js} +17 -17
  98. package/dist/{emit-finding-cmd-4CRLSMOK.js → emit-finding-cmd-NN6TLRV4.js} +13 -13
  99. package/dist/{emit-result-cmd-GM43QMCM.js → emit-result-cmd-XCU6WVMT.js} +15 -15
  100. package/dist/{emit-step-cmd-J7KS2QXL.js → emit-step-cmd-3B3SN2DX.js} +13 -13
  101. package/dist/{exec-client-DY7673SD.js → exec-client-55XHR4PH.js} +7 -7
  102. package/dist/find-unit-RPIWIOJ2.js +24 -0
  103. package/dist/{findings-cmd-25F44AB4.js → findings-cmd-HDH4Y5ON.js} +13 -13
  104. package/dist/{fleet-readiness-Z4C6W7XN.js → fleet-readiness-3HC5JKYS.js} +12 -12
  105. package/dist/{governing-source-IURJZXUR.js → governing-source-B3RBMTCL.js} +18 -18
  106. package/dist/{guest-init-4B5MMXIQ.js → guest-init-KGFEH6IZ.js} +8 -8
  107. package/dist/{hook-fast-LB3VTEIW.js → hook-fast-BH7W6WZV.js} +1 -1
  108. package/dist/{hook-install-QQXREIMI.js → hook-install-6H6W4UM2.js} +3 -3
  109. package/dist/host-checks-VQ4C5U6W.js +80 -0
  110. package/dist/{host-key-ZWMN7VIH.js → host-key-HQQLUWQB.js} +7 -7
  111. package/dist/{image-tag-4DKLSTO6.js → image-tag-DBU2FVYO.js} +7 -7
  112. package/dist/index.js +4 -4
  113. package/dist/init-PNXWQIPT.js +80 -0
  114. package/dist/{init-XYFDIEOA.js → init-ZSLVVOTK.js} +43 -43
  115. package/dist/{init-agent-EGNFBPM5.js → init-agent-J6RUWY5O.js} +43 -43
  116. package/dist/{init-cmd-C2I22ZJA.js → init-cmd-DX66HZ6D.js} +24 -24
  117. package/dist/{init-update-H4LSR7H4.js → init-update-GZM2FZRC.js} +21 -21
  118. package/dist/{install-cmd-BI4C3MGF.js → install-cmd-L5GEWLRY.js} +9 -9
  119. package/dist/{layout-CE6QLPNH.js → layout-MBCG2IHB.js} +3 -3
  120. package/dist/{logs-7DD6J3M6.js → logs-JZF44C7F.js} +6 -6
  121. package/dist/loop-IWOVUNVC.js +90 -0
  122. package/dist/machine-HMMOQT46.js +80 -0
  123. package/dist/{machine-skills-YJLPUAYZ.js → machine-skills-RPKQK52T.js} +3 -3
  124. package/dist/{mcp-install-cmd-VSWX5BSZ.js → mcp-install-cmd-GN2K2JM3.js} +3 -3
  125. package/dist/{mcp-serve-cmd-HK2ODMHU.js → mcp-serve-cmd-X5FNE5WG.js} +8 -8
  126. package/dist/{paths-EHWU5QWB.js → paths-TQEUR7ET.js} +6 -6
  127. package/dist/pending-QUWRYGA3.js +18 -0
  128. package/dist/{pidfile-PG3L2CVV.js → pidfile-KOZAOHSS.js} +7 -7
  129. package/dist/{record-PXCRTDQU.js → record-6TPL2BNW.js} +7 -7
  130. package/dist/{relay-2MJY25BV.js → relay-ZOWT4YLQ.js} +4 -4
  131. package/dist/{relay-protocol-VBCRA347.js → relay-protocol-FDFEVLQT.js} +4 -4
  132. package/dist/{run-cmd-F7ANZPSX.js → run-cmd-DE6LEJ4S.js} +13 -13
  133. package/dist/{runner-agents-HZ5FIFPU.js → runner-agents-3NUGNJD6.js} +3 -3
  134. package/dist/{runner-env-5AM2XYEN.js → runner-env-QO43XEFB.js} +13 -13
  135. package/dist/{runner-identity-CL2KMFGC.js → runner-identity-L4RMVVQ3.js} +9 -9
  136. package/dist/{runner-key-CJ66VZE3.js → runner-key-JPAT3ERV.js} +43 -43
  137. package/dist/{session-sender-RSAHCLL6.js → session-sender-KXFNZ7QR.js} +16 -16
  138. package/dist/{spec-cmd-ED6DKB54.js → spec-cmd-B44VHKSR.js} +14 -14
  139. package/dist/{starter-pack-IT2KYFWU.js → starter-pack-7QA7J5FT.js} +4 -4
  140. package/dist/{state-MV53BATE.js → state-NBUID6K5.js} +7 -7
  141. package/dist/{status-CZTCYZLU.js → status-MQVZT3Z4.js} +43 -43
  142. package/dist/{sync-cmd-PQZD77PE.js → sync-cmd-ELGJ5MHU.js} +15 -15
  143. package/dist/update-steps-MXCEJOCG.js +81 -0
  144. package/dist/{watch-FAQXAAUA.js → watch-FJYJQXBK.js} +15 -15
  145. package/dist/{work-claim-cmd-XPXHRV74.js → work-claim-cmd-VRTQB3TO.js} +19 -19
  146. package/dist/{work-cmd-ME7DWBI6.js → work-cmd-EDGMD2VX.js} +13 -13
  147. package/dist/{work-comment-cmd-ZT4O56QR.js → work-comment-cmd-YKGQ7WPG.js} +15 -15
  148. package/dist/{work-demo-cmd-YV22MZXG.js → work-demo-cmd-GWKHJGHE.js} +13 -13
  149. package/dist/{work-logs-cmd-LUK7THB2.js → work-logs-cmd-4RA6SF2Z.js} +13 -13
  150. package/dist/{work-needs-attention-cmd-KTLWMBJV.js → work-needs-attention-cmd-SHFYBESF.js} +13 -13
  151. package/dist/{work-no-change-cmd-TWGW5ZOO.js → work-no-change-cmd-AMSJX7MG.js} +13 -13
  152. package/dist/{work-open-pr-cmd-VEM5MEUS.js → work-open-pr-cmd-G5VF5AA2.js} +14 -14
  153. package/dist/{work-pr-cmd-M4G35ZIV.js → work-pr-cmd-CX2QSIJN.js} +13 -13
  154. package/dist/{work-proofs-cmd-7EZ4QZUR.js → work-proofs-cmd-5PC334U6.js} +15 -15
  155. package/dist/{work-proofs-record-AY72YKNC.js → work-proofs-record-EHZDEFKH.js} +21 -21
  156. package/dist/{work-stop-cmd-FX5QTUYJ.js → work-stop-cmd-E7OUJHBJ.js} +13 -13
  157. package/package.json +1 -1
  158. package/dist/caller-OWXJDYPI.js +0 -23
  159. package/dist/find-unit-ZVHHFTL2.js +0 -24
  160. package/dist/host-checks-AQTZ7IKK.js +0 -80
  161. package/dist/init-P2PDGLTU.js +0 -80
  162. package/dist/loop-KEGBBAV4.js +0 -90
  163. package/dist/machine-JK27TGT6.js +0 -80
  164. package/dist/pending-K4A23JIC.js +0 -18
  165. package/dist/update-steps-DCFEKNW2.js +0 -81
@@ -1,50 +1,50 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-I5C667TJ.js';
4
- import './chunk-OUKSF3LK.js';
5
- import { verifiedTrackerNames, TRACKERS } from './chunk-YFMVZBLO.js';
6
- import './chunk-2HLMGVK6.js';
7
- import './chunk-ECMQNH2H.js';
8
- import './chunk-K6KUWUUT.js';
9
- import './chunk-J4DTF5MN.js';
10
- import './chunk-HWXBOHEA.js';
11
- import './chunk-OVJSVC5U.js';
12
- import './chunk-AB4GMYIH.js';
3
+ import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-WBUOD2CU.js';
4
+ import './chunk-MOFT7QCR.js';
5
+ import { verifiedTrackerNames, TRACKERS } from './chunk-I6RBMWDV.js';
6
+ import './chunk-MOA4PGYL.js';
7
+ import './chunk-AABLA7NP.js';
8
+ import './chunk-VASOYLWE.js';
9
+ import './chunk-F3RBGMHL.js';
10
+ import './chunk-NJ6IJFKR.js';
11
+ import './chunk-USINHGZI.js';
12
+ import './chunk-XF2HRP6A.js';
13
13
  import './chunk-QHYCF36K.js';
14
- import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-PG33WPRF.js';
14
+ import { FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-3BEMKOFH.js';
15
15
  import './chunk-N3KGXHV4.js';
16
16
  import './chunk-A2LHHKTT.js';
17
17
  import { C, warnDeprecated, API_KEY_FLAG_DEPRECATION, NO_COLOR_FLAG, stripNoColor } from './chunk-2AM6Z5BP.js';
18
- import './chunk-2KUFDLLY.js';
19
- import './chunk-R7BS36HP.js';
18
+ import './chunk-SASWFX22.js';
19
+ import './chunk-OFZ5A2A5.js';
20
20
  import './chunk-HWVMRETT.js';
21
- import './chunk-KM2IMFAG.js';
22
- import './chunk-T5CN56UE.js';
23
- import './chunk-4YAFIOIV.js';
24
- import './chunk-7U43B2UB.js';
25
- import { hookFiredMarkerPath, installedCliDistDir } from './chunk-OBSWWJJ3.js';
21
+ import './chunk-HKP33YSC.js';
22
+ import './chunk-5YJWKIIO.js';
23
+ import './chunk-ZW36EULQ.js';
24
+ import './chunk-NFPJ2XC2.js';
25
+ import { hookFiredMarkerPath, installedCliDistDir } from './chunk-DHLEYFNL.js';
26
26
  import './chunk-545P7JY7.js';
27
27
  import './chunk-SF2TBJBP.js';
28
28
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
29
29
  import './chunk-M53UNEO6.js';
30
30
  import './chunk-BKO6JEZI.js';
31
- import './chunk-NAKFPE2V.js';
31
+ import './chunk-QMCWSBQO.js';
32
32
  import './chunk-I45HTSSA.js';
33
33
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
34
34
  import { cliInvocation, packageRunnerOf } from './chunk-FZKNTIOJ.js';
35
- import { installAgents, settingsFileOf, withSettingsText } from './chunk-RWXLTF3K.js';
35
+ import { installAgents, settingsFileOf, withSettingsText } from './chunk-KR34GXEH.js';
36
36
  import { cliForInstall, SettingsParseError, PORTABLE_BIN, writeSettingsText, cliBinResolvable } from './chunk-ZHQC43NH.js';
37
- import './chunk-CSFMIUYS.js';
37
+ import './chunk-LW5RIKAV.js';
38
38
  import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
39
39
  import { removeJournalHooks, removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
40
- import { headlessNames, credentialForms, runnerAgentNamed, credentialAgent, runnerAgents, orList, credentialShapes } from './chunk-IEX5FXEU.js';
41
- import { defaultAgents, knownTargetsLine, legacyAgent } from './chunk-G2CRPYFO.js';
40
+ import { headlessNames, credentialForms, runnerAgentNamed, credentialAgent, runnerAgents, orList, credentialShapes } from './chunk-36M66QKN.js';
41
+ import { defaultAgents, knownTargetsLine, legacyAgent } from './chunk-PDPBWX67.js';
42
42
  import './chunk-PLVHIQJN.js';
43
43
  import './chunk-7PZDPISM.js';
44
44
  import './chunk-ATEMEVFF.js';
45
45
  import { resolveVersion, resolvePackageVersion } from './chunk-RA3O54FC.js';
46
46
  import { homeFromEnv } from './chunk-352DHUTP.js';
47
- import './chunk-E5G6K7C4.js';
47
+ import './chunk-6XORUAR7.js';
48
48
  import './chunk-NEXKR5RR.js';
49
49
  import './chunk-Z5GEFMRW.js';
50
50
  import { EventEmitter } from 'events';
@@ -3416,9 +3416,19 @@ new Command();
3416
3416
  function isEphemeralBin(bin) {
3417
3417
  return packageRunnerOf(bin) !== void 0;
3418
3418
  }
3419
+ var RUNNER_VERSION_BIN = /^(.*)[\\/]versions[\\/][^\\/]+([\\/]node_modules[\\/]@outerlayer[\\/]cli[\\/]dist[\\/]index\.js)$/;
3420
+ function runnerCurrentBin(bin) {
3421
+ const match = RUNNER_VERSION_BIN.exec(bin);
3422
+ if (match === null) return void 0;
3423
+ const viaCurrent = join(match[1], "current") + match[2];
3424
+ return existsSync(viaCurrent) ? viaCurrent : void 0;
3425
+ }
3419
3426
  function initHookBin(opts) {
3420
3427
  const { runningBin } = opts;
3421
- if (opts.remove || !isAbsolute(runningBin) || !isEphemeralBin(runningBin) || !existsSync(runningBin)) return runningBin;
3428
+ if (opts.remove) return runningBin;
3429
+ const viaCurrent = runnerCurrentBin(runningBin);
3430
+ if (viaCurrent !== void 0) return viaCurrent;
3431
+ if (!isAbsolute(runningBin) || !isEphemeralBin(runningBin) || !existsSync(runningBin)) return runningBin;
3422
3432
  return installCliCopy({ home: opts.home, sourceBin: runningBin }).bin;
3423
3433
  }
3424
3434
  var STALE_FILE_MS = 7 * 24 * 60 * 60 * 1e3;
@@ -3659,14 +3669,14 @@ function apiKeyOption() {
3659
3669
  return new Option("--api-key <key>", `deprecated: use \`${cliInvocation()} login\` or OUTERLAYER_API_KEY`).hideHelp();
3660
3670
  }
3661
3671
  async function installStarterPackInRepo() {
3662
- const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-IT2KYFWU.js');
3672
+ const { installStarterPack, formatStarterPackOutput } = await import('./starter-pack-7QA7J5FT.js');
3663
3673
  const cwd = process.cwd();
3664
3674
  let repoRoot = cwd;
3665
3675
  try {
3666
3676
  repoRoot = execFileSync("git", ["rev-parse", "--show-toplevel"], { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim() || cwd;
3667
3677
  } catch {
3668
3678
  }
3669
- const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-CE6QLPNH.js');
3679
+ const { declareAgentsMdLayout, isAgentsMdLayout, skillsBaseFor } = await import('./layout-MBCG2IHB.js');
3670
3680
  const fresh = !isAgentsMdLayout(repoRoot) && !existsSync(join(repoRoot, ".outerlayer/skills")) && !existsSync(join(repoRoot, ".outerlayer/AGENTS.md"));
3671
3681
  const result = installStarterPack({ repoRoot, base: fresh ? ".agents/skills" : skillsBaseFor(repoRoot) });
3672
3682
  if (fresh) declareAgentsMdLayout(repoRoot);
@@ -3809,7 +3819,7 @@ ${starter.output}`),
3809
3819
  }
3810
3820
  }
3811
3821
  async function installMachineSkillsForSetup() {
3812
- const { setupMachineSkills } = await import('./machine-skills-YJLPUAYZ.js');
3822
+ const { setupMachineSkills } = await import('./machine-skills-RPKQK52T.js');
3813
3823
  const result = setupMachineSkills(homeFromEnv());
3814
3824
  for (const failure of result.failures) process.stderr.write(`${C.yellow}!${C.reset} Could not write a maintained skill: ${failure}
3815
3825
  `);
@@ -3817,8 +3827,8 @@ async function installMachineSkillsForSetup() {
3817
3827
  ` : "";
3818
3828
  }
3819
3829
  async function realConnectDepsForCwd() {
3820
- const { realConnectDeps } = await import('./connect-cmd-73BBTTU5.js');
3821
- const { resolveRepoIdentity } = await import('./dist-5VKIP767.js');
3830
+ const { realConnectDeps } = await import('./connect-cmd-OTYUH5EY.js');
3831
+ const { resolveRepoIdentity } = await import('./dist-JSSJSW2B.js');
3822
3832
  return {
3823
3833
  ...realConnectDeps(),
3824
3834
  home: homeFromEnv(),
@@ -3835,7 +3845,7 @@ function buildProgram(argv = process.argv) {
3835
3845
  const program2 = new Command();
3836
3846
  program2.name(cliInvocation()).description("OuterLayer \u2014 see what your coding agents actually do").enablePositionalOptions().version(resolveVersion()).hook("preAction", async (_root, command) => {
3837
3847
  if (command.opts().apiKey !== void 0) warnDeprecated(API_KEY_FLAG_DEPRECATION);
3838
- const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-YJLPUAYZ.js');
3848
+ const { machineRefreshSkipped, refreshMachineSkills } = await import('./machine-skills-RPKQK52T.js');
3839
3849
  const names = [];
3840
3850
  for (let at = command; at?.parent; at = at.parent) names.push(at.name());
3841
3851
  if (!machineRefreshSkipped(names, command._hidden === true, argv)) refreshMachineSkills(homeFromEnv());
@@ -3892,8 +3902,8 @@ build, ../outerlayer-build/SKILL.md becomes ~/.agents/skills/outerlayer-build/SK
3892
3902
  what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocation() + " doctor` reports the same\nstates under Starter files.\n"
3893
3903
  ).action(async (opts) => {
3894
3904
  if (opts.update || opts.dryRun) {
3895
- const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-H4LSR7H4.js');
3896
- const { fleetReadiness } = await import('./fleet-readiness-Z4C6W7XN.js');
3905
+ const { runInitUpdateWithFleet, formatInitUpdate, updateFlagProblem } = await import('./init-update-GZM2FZRC.js');
3906
+ const { fleetReadiness } = await import('./fleet-readiness-3HC5JKYS.js');
3897
3907
  const problem = updateFlagProblem(opts);
3898
3908
  if (problem !== void 0) {
3899
3909
  fail(problem);
@@ -3910,7 +3920,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3910
3920
  }
3911
3921
  let starterTemplate;
3912
3922
  if (opts.template !== void 0) {
3913
- const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-IT2KYFWU.js');
3923
+ const { assertKnownTemplate, StarterPackError } = await import('./starter-pack-7QA7J5FT.js');
3914
3924
  try {
3915
3925
  assertKnownTemplate(opts.template);
3916
3926
  } catch (err) {
@@ -3944,13 +3954,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3944
3954
  if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
3945
3955
  `);
3946
3956
  }
3947
- const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-C2I22ZJA.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3957
+ const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-DX66HZ6D.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3948
3958
  if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
3949
3959
  else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
3950
3960
  return;
3951
3961
  }
3952
3962
  await installMachineSkillsForSetup();
3953
- const { runInitCommand } = await import('./init-cmd-C2I22ZJA.js');
3963
+ const { runInitCommand } = await import('./init-cmd-DX66HZ6D.js');
3954
3964
  const code = await runInitCommand(
3955
3965
  { json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
3956
3966
  {
@@ -3962,7 +3972,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3962
3972
  return { ok, text, detail };
3963
3973
  },
3964
3974
  runAgentSetup: async () => {
3965
- const { runAgentSetup } = await import('./agent-setup-T2VITZUY.js');
3975
+ const { runAgentSetup } = await import('./agent-setup-OJETTF3R.js');
3966
3976
  return runAgentSetup({ cwd: process.cwd(), skillsLink: opts.skillsLink !== false });
3967
3977
  },
3968
3978
  runDoctorChecks: gatherDoctorChecks,
@@ -3971,7 +3981,7 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3971
3981
  shellPath: process.env.SHELL,
3972
3982
  interactive: Boolean(process.stdin.isTTY && process.stderr.isTTY) && opts.json !== true,
3973
3983
  ask: async () => {
3974
- const { promptOnTerminal } = await import('./connect-cmd-73BBTTU5.js');
3984
+ const { promptOnTerminal } = await import('./connect-cmd-OTYUH5EY.js');
3975
3985
  const answer = await promptOnTerminal({
3976
3986
  message: `Should plain claude start Claude Code through ${cliInvocation()} claude? That is how a session in a governed repository gets its control plane. It adds one block to your zsh or bash startup file.`,
3977
3987
  options: [
@@ -4010,7 +4020,7 @@ linked (true, false, or null when it could not be checked) and, when false,
4010
4020
  linkUrl.
4011
4021
  `
4012
4022
  ).action(async (opts) => {
4013
- const { runConnectCommand } = await import('./connect-cmd-73BBTTU5.js');
4023
+ const { runConnectCommand } = await import('./connect-cmd-OTYUH5EY.js');
4014
4024
  const code = await runConnectCommand({ factory: opts.factory, json: opts.json }, await realConnectDepsForCwd(), {
4015
4025
  stdout: process.stdout,
4016
4026
  stderr: process.stderr
@@ -4092,7 +4102,7 @@ code is 1: revoke the token on /profile/security.
4092
4102
  else fail(found.reason);
4093
4103
  return;
4094
4104
  }
4095
- const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-PQZD77PE.js');
4105
+ const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-ELGJ5MHU.js');
4096
4106
  try {
4097
4107
  const result = await runSync({
4098
4108
  url: opts.url,
@@ -4121,7 +4131,7 @@ code is 1: revoke the token on /profile/security.
4121
4131
  if (invokedCommandToken(argv) === "watch") {
4122
4132
  warnDeprecated(`\`${cliInvocation()} watch\` is now \`${cliInvocation()} daemon\`; the old name will be removed in a future release.`);
4123
4133
  }
4124
- const { runWatch } = await import('./watch-FAQXAAUA.js');
4134
+ const { runWatch } = await import('./watch-FJYJQXBK.js');
4125
4135
  await runWatch({ once: opts.once });
4126
4136
  });
4127
4137
  program2.command("hook <event>", { hidden: true }).description("capture-hook fast path, installed by `init`").option("--agent <id>", "the agent that sent the event; with none, Claude Code").action(() => {
@@ -4136,8 +4146,8 @@ code is 1: revoke the token on /profile/security.
4136
4146
  });
4137
4147
  }
4138
4148
  const brokerRelay = program2.command("broker-relay", { hidden: true }).description("relay a build's loopback connections to the runner's tunnel and destinations").enablePositionalOptions().option("--port <port>", "the loopback port to listen on").option("--socket <path>", "the runner's tunnel socket").option("--join <path>", "the socket the runner's joining process connects to").option("--lease-watchdog", "exit when the runner's lease expiry passes; needs --join").option("--join-ws <port>", "also take the runner's session over a WebSocket on this port").option("--join-secret-file <path>", "the secret a WebSocket join sends first; needs --join-ws").option("--forward <port=target>", "also relay a loopback port to a destination; repeatable", (value, previous) => [...previous, value], []).action(async (opts) => {
4139
- const { startRelay, startSessionRelay } = await import('./relay-2MJY25BV.js');
4140
- const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-VBCRA347.js');
4149
+ const { startRelay, startSessionRelay } = await import('./relay-ZOWT4YLQ.js');
4150
+ const { TARGET_TUNNEL, targetOfPath } = await import('./relay-protocol-FDFEVLQT.js');
4141
4151
  const port = Number(opts.port);
4142
4152
  if (!Number.isInteger(port) || port < 1 || port > 65535) {
4143
4153
  fail(opts.port === void 0 ? "--port is required" : `--port must be a port number, not ${opts.port}`);
@@ -4175,7 +4185,7 @@ code is 1: revoke the token on /profile/security.
4175
4185
  await startRelay({ port, socketPath: opts.socket, forwards: forwards.map((forward) => ({ port: forward.port, socketPath: forward.spec })) });
4176
4186
  });
4177
4187
  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) => {
4178
- const { joinRelay } = await import('./relay-2MJY25BV.js');
4188
+ const { joinRelay } = await import('./relay-ZOWT4YLQ.js');
4179
4189
  try {
4180
4190
  await joinRelay({ socketPath: opts.socket, input: process.stdin, output: process.stdout });
4181
4191
  } catch (err) {
@@ -4191,7 +4201,7 @@ code is 1: revoke the token on /profile/security.
4191
4201
  }
4192
4202
  });
4193
4203
  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) => {
4194
- const { runVmExec } = await import('./exec-client-DY7673SD.js');
4204
+ const { runVmExec } = await import('./exec-client-55XHR4PH.js');
4195
4205
  const env = {};
4196
4206
  for (const entry of opts.env) {
4197
4207
  const eq = entry.indexOf("=");
@@ -4220,7 +4230,7 @@ code is 1: revoke the token on /profile/security.
4220
4230
  process.exitCode = await runBuildCommand({ dir: opts.dir, argv: command });
4221
4231
  });
4222
4232
  program2.command("session-sender", { hidden: true }).description("stream a runner build's sessions to its work item while the build runs").action(async () => {
4223
- const { runSessionSender } = await import('./session-sender-RSAHCLL6.js');
4233
+ const { runSessionSender } = await import('./session-sender-KXFNZ7QR.js');
4224
4234
  try {
4225
4235
  await runSessionSender();
4226
4236
  } catch (err) {
@@ -4228,7 +4238,7 @@ code is 1: revoke the token on /profile/security.
4228
4238
  }
4229
4239
  });
4230
4240
  program2.command("vm-init", { hidden: true }).description("lay out a microVM build's guest; the guest helper runs it").action(async () => {
4231
- const { realGuestHost, runGuestInit } = await import('./guest-init-4B5MMXIQ.js');
4241
+ const { realGuestHost, runGuestInit } = await import('./guest-init-KGFEH6IZ.js');
4232
4242
  const { readFileSync: readFileSync3 } = await import('fs');
4233
4243
  try {
4234
4244
  runGuestInit(realGuestHost(), readFileSync3("/proc/cmdline", "utf8"));
@@ -4237,7 +4247,7 @@ code is 1: revoke the token on /profile/security.
4237
4247
  }
4238
4248
  });
4239
4249
  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) => {
4240
- const { startBridgeForward } = await import('./bridge-7MCKZXCR.js');
4250
+ const { startBridgeForward } = await import('./bridge-D3L6JK6X.js');
4241
4251
  try {
4242
4252
  await startBridgeForward(opts);
4243
4253
  } catch (err) {
@@ -4263,7 +4273,7 @@ async function runCli(processArgv) {
4263
4273
  await buildProgram(argv).parseAsync(argv);
4264
4274
  }
4265
4275
  async function compileContext(opts) {
4266
- const { runEmit, EmitError } = await import('./emit-cmd-AIAY4WTW.js');
4276
+ const { runEmit, EmitError } = await import('./emit-cmd-QGVMVSLS.js');
4267
4277
  try {
4268
4278
  const result = runEmit({ cwd: opts.dir, check: opts.check, json: opts.json });
4269
4279
  if (result.exitCode !== 0) process.exitCode = result.exitCode;
@@ -4316,7 +4326,7 @@ Compiling .outerlayer/ moved to \`${cliInvocation()} context emit\`.
4316
4326
  await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
4317
4327
  return;
4318
4328
  }
4319
- const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-GM43QMCM.js');
4329
+ const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-XCU6WVMT.js');
4320
4330
  try {
4321
4331
  const result = await runEmitResult({
4322
4332
  name,
@@ -4368,7 +4378,7 @@ everywhere, bytes and deep link untouched; a still-queued one is cancelled
4368
4378
  locally so it never uploads. One correction can retire several duplicates.
4369
4379
  `
4370
4380
  ).action(async (file, opts) => {
4371
- const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-CQLCPM4R.js');
4381
+ const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-QET3MR7Y.js');
4372
4382
  let pr;
4373
4383
  if (opts.pr !== void 0) {
4374
4384
  pr = parseTrackerNumber(opts.pr);
@@ -4424,7 +4434,7 @@ its criterion, and the new record retires the old record. The id must be the ite
4424
4434
  as \`work demo --item <n> --json\` prints it.
4425
4435
  `
4426
4436
  ).action(async (manifest, opts) => {
4427
- const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-3NSODQTO.js');
4437
+ const { runEmitDemo, EmitDemoError } = await import('./emit-demo-cmd-VN5TLP6X.js');
4428
4438
  let item;
4429
4439
  if (opts.item !== void 0) {
4430
4440
  item = parseTrackerNumber(opts.item);
@@ -4467,7 +4477,7 @@ as \`work demo --item <n> --json\` prints it.
4467
4477
  }
4468
4478
  });
4469
4479
  program2.command("demo-voice", { hidden: true }).description("Speak demo lines for a recorder: JSON lines in on stdin, out on stdout").action(async () => {
4470
- const { runDemoVoice } = await import('./demo-voice-cmd-GUYFA2NG.js');
4480
+ const { runDemoVoice } = await import('./demo-voice-cmd-CDVRH7RS.js');
4471
4481
  await runDemoVoice();
4472
4482
  });
4473
4483
  const demoCmd = program2.command("demo").description("Record demos with the recorder this CLI carries");
@@ -4485,7 +4495,7 @@ and the command prints the manifest's path for \`emit demo\`. Under \`work proof
4485
4495
  to OUTERLAYER_PROOF_OUT instead. Exit 1 means the demo's test failed; its manifest is written all the same.
4486
4496
  `
4487
4497
  ).action(async (file, opts) => {
4488
- const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-GBHPIYJA.js');
4498
+ const { runDemoRecord, DemoRecordError } = await import('./demo-record-cmd-WJJWOVEV.js');
4489
4499
  try {
4490
4500
  const result = await runDemoRecord({
4491
4501
  file,
@@ -4534,7 +4544,7 @@ recent events with their ids. --find <text> searches all of them.
4534
4544
  item that session was launched for is used automatically.
4535
4545
  `
4536
4546
  ).action(async (opts) => {
4537
- const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-4CRLSMOK.js');
4547
+ const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-NN6TLRV4.js');
4538
4548
  try {
4539
4549
  refuseRemovedFindingFlags(opts);
4540
4550
  const result = await runEmitFinding({
@@ -4601,7 +4611,7 @@ the whole batch. "untimed": true records one with no time on purpose.
4601
4611
  that session was launched for is used automatically.
4602
4612
  `
4603
4613
  ).action(async (file, opts) => {
4604
- const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-4CRLSMOK.js');
4614
+ const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-NN6TLRV4.js');
4605
4615
  try {
4606
4616
  const result = await runEmitFindings({
4607
4617
  file,
@@ -4636,7 +4646,7 @@ command, the command exits 0, and \`sync\` sends it later. If the gateway refuse
4636
4646
  the step, the command prints why and exits 1.
4637
4647
  `
4638
4648
  ).action(async (name, opts) => {
4639
- const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-J7KS2QXL.js');
4649
+ const { runEmitStep, EmitStepError } = await import('./emit-step-cmd-3B3SN2DX.js');
4640
4650
  try {
4641
4651
  await runEmitStep({
4642
4652
  name,
@@ -4679,7 +4689,7 @@ of the item, and a (proof: <kind>) annotation names its proof.
4679
4689
  ${cliInvocation()} emit criteria acceptance/412-login.md --item 412
4680
4690
  `
4681
4691
  ).action(async (file, opts) => {
4682
- const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-VM7AO3E3.js');
4692
+ const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-Z3NGUOQ3.js');
4683
4693
  try {
4684
4694
  const result = await runEmitCriteria({
4685
4695
  file,
@@ -4703,9 +4713,9 @@ function registerSpecCommands(program2) {
4703
4713
  const specCmd = program2.command("spec").description("Find, file and edit the issue a spec lives in, in your factory's tracker");
4704
4714
  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)");
4705
4715
  const run = async (action) => {
4706
- const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
4716
+ const { WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
4707
4717
  try {
4708
- await action(await import('./spec-cmd-ED6DKB54.js'));
4718
+ await action(await import('./spec-cmd-B44VHKSR.js'));
4709
4719
  } catch (err) {
4710
4720
  if (err instanceof WorkCommandError) {
4711
4721
  fail(err.message);
@@ -4740,7 +4750,7 @@ Prints each problem the item covers with its id, its reports and its result.
4740
4750
  session was launched for is used.
4741
4751
  `
4742
4752
  ).action(async (opts) => {
4743
- const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-25F44AB4.js');
4753
+ const { runFindingsShow, FindingsCommandError } = await import('./findings-cmd-HDH4Y5ON.js');
4744
4754
  try {
4745
4755
  const result = await runFindingsShow({
4746
4756
  item: opts.item,
@@ -4768,7 +4778,7 @@ Give exactly one of --fixed and --not-fixed, and a --note. Run it again for the
4768
4778
  problem to replace the earlier result. A problem the item does not cover is refused.
4769
4779
  `
4770
4780
  ).action(async (problem, opts) => {
4771
- const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-25F44AB4.js');
4781
+ const { runFindingsResult, FindingsCommandError } = await import('./findings-cmd-HDH4Y5ON.js');
4772
4782
  try {
4773
4783
  const result = await runFindingsResult({
4774
4784
  problem,
@@ -4802,8 +4812,8 @@ an issue when the daily limit leaves none, and then you stop reporting.
4802
4812
  Only the agent of a scheduled run, which holds a run key, can run it.
4803
4813
  `
4804
4814
  ).action(async (opts) => {
4805
- const { runFoundIssue, RunCommandError } = await import('./run-cmd-F7ANZPSX.js');
4806
- const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
4815
+ const { runFoundIssue, RunCommandError } = await import('./run-cmd-DE6LEJ4S.js');
4816
+ const { WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
4807
4817
  try {
4808
4818
  await runFoundIssue(opts);
4809
4819
  } catch (err) {
@@ -4825,8 +4835,8 @@ Run it instead of found-issue, never after it. Only the agent of a
4825
4835
  scheduled run, which holds a run key, can run it.
4826
4836
  `
4827
4837
  ).action(async (opts) => {
4828
- const { runFoundNothing, RunCommandError } = await import('./run-cmd-F7ANZPSX.js');
4829
- const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
4838
+ const { runFoundNothing, RunCommandError } = await import('./run-cmd-DE6LEJ4S.js');
4839
+ const { WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
4830
4840
  try {
4831
4841
  await runFoundNothing(opts);
4832
4842
  } catch (err) {
@@ -4858,7 +4868,7 @@ takes it, and prints the line that starts your session on it. That
4858
4868
  session links itself and holds the item's lease while it works.
4859
4869
  `
4860
4870
  ).action(async (opts) => {
4861
- const { runWorkBuild, WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
4871
+ const { runWorkBuild, WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
4862
4872
  try {
4863
4873
  await runWorkBuild(opts);
4864
4874
  } catch (err) {
@@ -4881,7 +4891,7 @@ renews that session's own 20-minute lease, unless --no-lease or
4881
4891
  --ended is given, or another worker already holds a live one.
4882
4892
  `
4883
4893
  ).action(async (number, opts) => {
4884
- const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
4894
+ const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
4885
4895
  try {
4886
4896
  await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
4887
4897
  } catch (err) {
@@ -4920,8 +4930,8 @@ log, csv, md, json, ndjson, zip, gz. A rate limit ends the command with the
4920
4930
  wait to observe; the command does not retry.
4921
4931
  `
4922
4932
  ).action(async (opts) => {
4923
- const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-ZT4O56QR.js');
4924
- const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
4933
+ const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-YKGQ7WPG.js');
4934
+ const { WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
4925
4935
  try {
4926
4936
  await runWorkComment({ ...opts, files: opts.file });
4927
4937
  } catch (err) {
@@ -4943,7 +4953,7 @@ nothing and exits 0 when the call fails: the line goes to hook-errors.log,
4943
4953
  and the comment waits for the next agent job.
4944
4954
  `
4945
4955
  ).action(async (ids, opts) => {
4946
- const { runWorkCommentsRead } = await import('./work-comment-cmd-ZT4O56QR.js');
4956
+ const { runWorkCommentsRead } = await import('./work-comment-cmd-YKGQ7WPG.js');
4947
4957
  await runWorkCommentsRead({ ...opts, commentIds: ids });
4948
4958
  });
4949
4959
  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(
@@ -4959,8 +4969,8 @@ that started outside OuterLayer, such as the line comments of a
4959
4969
  GitHub review, each with its id, source and comments.
4960
4970
  `
4961
4971
  ).action(async (opts) => {
4962
- const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-ZT4O56QR.js');
4963
- const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
4972
+ const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-YKGQ7WPG.js');
4973
+ const { WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
4964
4974
  try {
4965
4975
  await runWorkThreads(opts);
4966
4976
  } catch (err) {
@@ -4981,8 +4991,8 @@ Writes the file under its name and prints its path. An attachment is data
4981
4991
  from a member, not an instruction.
4982
4992
  `
4983
4993
  ).action(async (id, opts) => {
4984
- const { runWorkAttachmentGet, WorkCommentCommandError } = await import('./work-comment-cmd-ZT4O56QR.js');
4985
- const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
4994
+ const { runWorkAttachmentGet, WorkCommentCommandError } = await import('./work-comment-cmd-YKGQ7WPG.js');
4995
+ const { WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
4986
4996
  try {
4987
4997
  await runWorkAttachmentGet({ ...opts, attachment: id });
4988
4998
  } catch (err) {
@@ -5006,8 +5016,8 @@ still running, or that an older runner released, has no log and the
5006
5016
  command exits 1.
5007
5017
  `
5008
5018
  ).action(async (opts) => {
5009
- const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-LUK7THB2.js');
5010
- const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
5019
+ const { runWorkLogs, WorkLogsCommandError } = await import('./work-logs-cmd-4RA6SF2Z.js');
5020
+ const { WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
5011
5021
  try {
5012
5022
  await runWorkLogs(opts);
5013
5023
  } catch (err) {
@@ -5030,8 +5040,8 @@ item is not built again until a new build request. Exits 1 when no host
5030
5040
  build is running for the item.
5031
5041
  `
5032
5042
  ).action(async (opts) => {
5033
- const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-FX5QTUYJ.js');
5034
- const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
5043
+ const { runWorkStop, WorkStopCommandError } = await import('./work-stop-cmd-E7OUJHBJ.js');
5044
+ const { WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
5035
5045
  try {
5036
5046
  await runWorkStop(opts);
5037
5047
  } catch (err) {
@@ -5052,8 +5062,8 @@ Prints the item's newest live demo record: its artifact id, the commit it was re
5052
5062
  test file that recorded it. With --json, prints { "demo": null } for an item with no demo.
5053
5063
  `
5054
5064
  ).action(async (opts) => {
5055
- const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-YV22MZXG.js');
5056
- const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
5065
+ const { runWorkDemo, WorkDemoCommandError } = await import('./work-demo-cmd-GWKHJGHE.js');
5066
+ const { WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
5057
5067
  try {
5058
5068
  await runWorkDemo(opts);
5059
5069
  } catch (err) {
@@ -5074,7 +5084,7 @@ deletes anything \u2014 the item is removed from Work only once no
5074
5084
  live addition remains on it.
5075
5085
  `
5076
5086
  ).action(async (opts) => {
5077
- const { runWorkRemove, WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
5087
+ const { runWorkRemove, WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
5078
5088
  try {
5079
5089
  await runWorkRemove(opts);
5080
5090
  } catch (err) {
@@ -5086,7 +5096,7 @@ live addition remains on it.
5086
5096
  }
5087
5097
  });
5088
5098
  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) => {
5089
- const { runWorkStatus, WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
5099
+ const { runWorkStatus, WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
5090
5100
  try {
5091
5101
  await runWorkStatus(opts);
5092
5102
  } catch (err) {
@@ -5144,11 +5154,11 @@ a runner build, no row is failed.
5144
5154
  fail(trackerNumberError("--pr", opts.pr));
5145
5155
  return;
5146
5156
  }
5147
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-7EZ4QZUR.js');
5157
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-5PC334U6.js');
5148
5158
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5149
5159
  });
5150
5160
  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) => {
5151
- const { runWorkList, WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
5161
+ const { runWorkList, WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
5152
5162
  try {
5153
5163
  await runWorkList(opts);
5154
5164
  } catch (err) {
@@ -5169,7 +5179,7 @@ by a different key is refused; claiming again with the same key extends
5169
5179
  it. --host is a label only.
5170
5180
  `
5171
5181
  ).action(async (opts) => {
5172
- const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-XPXHRV74.js');
5182
+ const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-VRTQB3TO.js');
5173
5183
  try {
5174
5184
  await runWorkClaim(opts);
5175
5185
  } catch (err) {
@@ -5189,7 +5199,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
5189
5199
  lease has expired, or a 403 if a different key holds it.
5190
5200
  `
5191
5201
  ).action(async (opts) => {
5192
- const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-XPXHRV74.js');
5202
+ const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-VRTQB3TO.js');
5193
5203
  try {
5194
5204
  await runWorkRenew(opts);
5195
5205
  } catch (err) {
@@ -5221,7 +5231,7 @@ applies to a host's lease only. A later tool call in the session
5221
5231
  takes the lease again.
5222
5232
  `
5223
5233
  ).action(async (opts) => {
5224
- const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-XPXHRV74.js');
5234
+ const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-VRTQB3TO.js');
5225
5235
  try {
5226
5236
  await runWorkRelease(opts);
5227
5237
  } catch (err) {
@@ -5248,7 +5258,7 @@ Idempotent: declaring the same pull request twice is a no-op.
5248
5258
  needs your own login; an agent session or a factory key is refused.
5249
5259
  `
5250
5260
  ).action(async (number, opts) => {
5251
- const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-M4G35ZIV.js');
5261
+ const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-CX2QSIJN.js');
5252
5262
  try {
5253
5263
  await runWorkPr({ ...opts, number });
5254
5264
  } catch (err) {
@@ -5273,8 +5283,8 @@ login, then declares the pull request on the item, as \`work pr\` does.
5273
5283
  Run it again after a change to the title or description.
5274
5284
  `
5275
5285
  ).action(async (opts) => {
5276
- const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-VEM5MEUS.js');
5277
- const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
5286
+ const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-G5VF5AA2.js');
5287
+ const { WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
5278
5288
  try {
5279
5289
  await runWorkOpenPr(opts);
5280
5290
  } catch (err) {
@@ -5297,8 +5307,8 @@ and OuterLayer posts the reason on the issue. Only a host build, which
5297
5307
  holds an item key, can run it.
5298
5308
  `
5299
5309
  ).action(async (opts) => {
5300
- const { runWorkNoChange, WorkNoChangeCommandError } = await import('./work-no-change-cmd-TWGW5ZOO.js');
5301
- const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
5310
+ const { runWorkNoChange, WorkNoChangeCommandError } = await import('./work-no-change-cmd-AMSJX7MG.js');
5311
+ const { WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
5302
5312
  try {
5303
5313
  await runWorkNoChange(opts);
5304
5314
  } catch (err) {
@@ -5321,8 +5331,8 @@ record that no change is needed. Only a host build, which holds an item key,
5321
5331
  can run it.
5322
5332
  `
5323
5333
  ).action(async (opts) => {
5324
- const { runWorkNeedsAttention, WorkNeedsAttentionCommandError } = await import('./work-needs-attention-cmd-KTLWMBJV.js');
5325
- const { WorkCommandError } = await import('./work-cmd-ME7DWBI6.js');
5334
+ const { runWorkNeedsAttention, WorkNeedsAttentionCommandError } = await import('./work-needs-attention-cmd-SHFYBESF.js');
5335
+ const { WorkCommandError } = await import('./work-cmd-EDGMD2VX.js');
5326
5336
  try {
5327
5337
  await runWorkNeedsAttention(opts);
5328
5338
  } catch (err) {
@@ -5366,9 +5376,9 @@ function registerRunnerCommands(program2) {
5366
5376
  const runnerCmd = program2.command("runner").description("Take work from the implement and amend queues on this machine");
5367
5377
  const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
5368
5378
  runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
5369
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-U2OR7MQW.js');
5370
- const { start, RunnerStartError } = await import('./loop-KEGBBAV4.js');
5371
- const { RunnerAlreadyRunningError } = await import('./pidfile-PG3L2CVV.js');
5379
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-6EOFYJWZ.js');
5380
+ const { start, RunnerStartError } = await import('./loop-IWOVUNVC.js');
5381
+ const { RunnerAlreadyRunningError } = await import('./pidfile-KOZAOHSS.js');
5372
5382
  const configPath = opts.config ?? defaultRunnerConfigPath();
5373
5383
  try {
5374
5384
  const { realUpdateDeps } = await import('./real-deps-QX5YH7FG.js');
@@ -5390,10 +5400,10 @@ is optional and defaults to ${words().runnerName}. On a later start it refuses v
5390
5400
  The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5391
5401
  `
5392
5402
  ).action(async () => {
5393
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-U2OR7MQW.js');
5394
- const { containerStart, containerStartExit } = await import('./container-start-JFJYC4GQ.js');
5395
- const { start, RunnerStartError } = await import('./loop-KEGBBAV4.js');
5396
- const { RunnerAlreadyRunningError } = await import('./pidfile-PG3L2CVV.js');
5403
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-6EOFYJWZ.js');
5404
+ const { containerStart, containerStartExit } = await import('./container-start-B6UCYRAZ.js');
5405
+ const { start, RunnerStartError } = await import('./loop-IWOVUNVC.js');
5406
+ const { RunnerAlreadyRunningError } = await import('./pidfile-KOZAOHSS.js');
5397
5407
  try {
5398
5408
  const outcome = containerStartExit(await containerStart({
5399
5409
  env: process.env,
@@ -5414,16 +5424,16 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5414
5424
  "after",
5415
5425
  "\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"
5416
5426
  ).action(async (opts) => {
5417
- const { defaultRunnerConfigPath } = await import('./config-U2OR7MQW.js');
5418
- const { runnerDir } = await import('./paths-EHWU5QWB.js');
5419
- const { runUpdateSteps } = await import('./update-steps-DCFEKNW2.js');
5427
+ const { defaultRunnerConfigPath } = await import('./config-6EOFYJWZ.js');
5428
+ const { runnerDir } = await import('./paths-TQEUR7ET.js');
5429
+ const { runUpdateSteps } = await import('./update-steps-MXCEJOCG.js');
5420
5430
  const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
5421
5431
  process.stdout.write(`${text}
5422
5432
  `);
5423
5433
  });
5424
5434
  runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
5425
- const { defaultRunnerConfigPath } = await import('./config-U2OR7MQW.js');
5426
- const { runRunnerCheck } = await import('./check-F7RN65GG.js');
5435
+ const { defaultRunnerConfigPath } = await import('./config-6EOFYJWZ.js');
5436
+ const { runRunnerCheck } = await import('./check-XFV3VI2N.js');
5427
5437
  const configPath = opts.config ?? defaultRunnerConfigPath();
5428
5438
  const result = await runRunnerCheck(configPath);
5429
5439
  if (!result.ok) {
@@ -5444,8 +5454,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5444
5454
  `);
5445
5455
  });
5446
5456
  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) => {
5447
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-U2OR7MQW.js');
5448
- const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-BI4C3MGF.js');
5457
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-6EOFYJWZ.js');
5458
+ const { runRunnerInstall, RunnerInstallError, launcherSummary, restartNote } = await import('./install-cmd-L5GEWLRY.js');
5449
5459
  const configPath = opts.config ?? defaultRunnerConfigPath();
5450
5460
  if (opts.service !== true) {
5451
5461
  const names = { print: "print", user: "user", unitName: "unit-name", buildMemoryMax: "build-memory-max", buildCpusMax: "build-cpus-max" };
@@ -5457,13 +5467,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5457
5467
  }
5458
5468
  }
5459
5469
  const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
5460
- if (buildCpusMax !== void 0 && !(await import('./command-D656K4AE.js')).cpusAreValid(buildCpusMax)) {
5470
+ if (buildCpusMax !== void 0 && !(await import('./command-6EO3Z7BW.js')).cpusAreValid(buildCpusMax)) {
5461
5471
  fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
5462
5472
  return;
5463
5473
  }
5464
5474
  try {
5465
5475
  if (opts.service === true) {
5466
- const { installServiceCommand, serviceSuccessText } = await import('./command-D656K4AE.js');
5476
+ const { installServiceCommand, serviceSuccessText } = await import('./command-6EO3Z7BW.js');
5467
5477
  const result2 = await installServiceCommand({
5468
5478
  configPath,
5469
5479
  print: opts.print,
@@ -5517,8 +5527,8 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5517
5527
  fail(`pass --service: \`${cliInvocation()} runner uninstall --service\` removes the runner's service.`);
5518
5528
  return;
5519
5529
  }
5520
- const { defaultRunnerConfigPath } = await import('./config-U2OR7MQW.js');
5521
- const { uninstallServiceCommand } = await import('./command-D656K4AE.js');
5530
+ const { defaultRunnerConfigPath } = await import('./config-6EOFYJWZ.js');
5531
+ const { uninstallServiceCommand } = await import('./command-6EO3Z7BW.js');
5522
5532
  const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
5523
5533
  if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5524
5534
  `);
@@ -5548,13 +5558,13 @@ already in ${words().envFile} is used.
5548
5558
  printf '%s' "$${words().variables[0]}" | ${cliInvocation()} runner init --agent ${words().runnerName} --factory <org>/<factory>
5549
5559
  `
5550
5560
  ).action(async (opts) => {
5551
- const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-U2OR7MQW.js');
5552
- const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-P2PDGLTU.js');
5553
- const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-CJ66VZE3.js');
5554
- const { detectMachine } = await import('./machine-JK27TGT6.js');
5555
- const { chooseVm, runVmInit, VmInitError } = await import('./init-XYFDIEOA.js');
5556
- const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-5AM2XYEN.js');
5557
- const { headlessNames: headlessNames2 } = await import('./runner-agents-HZ5FIFPU.js');
5561
+ const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-6EOFYJWZ.js');
5562
+ const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-PNXWQIPT.js');
5563
+ const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-JPAT3ERV.js');
5564
+ const { detectMachine } = await import('./machine-HMMOQT46.js');
5565
+ const { chooseVm, runVmInit, VmInitError } = await import('./init-ZSLVVOTK.js');
5566
+ const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-QO43XEFB.js');
5567
+ const { headlessNames: headlessNames2 } = await import('./runner-agents-3NUGNJD6.js');
5558
5568
  const configPath = opts.config ?? defaultRunnerConfigPath();
5559
5569
  if (opts.agent !== void 0 && !isAgentName(opts.agent)) {
5560
5570
  fail(`--agent ${opts.agent}: runner init writes commands for ${headlessNames2().join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
@@ -5566,7 +5576,7 @@ already in ${words().envFile} is used.
5566
5576
  return;
5567
5577
  }
5568
5578
  try {
5569
- const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-EGNFBPM5.js');
5579
+ const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-J6RUWY5O.js');
5570
5580
  agent = await initAgent({
5571
5581
  flag: agent,
5572
5582
  handOff: opts.configStdin === true,
@@ -5599,7 +5609,7 @@ already in ${words().envFile} is used.
5599
5609
  const chunks = [];
5600
5610
  for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
5601
5611
  const result2 = runRunnerInit(configPath, { machine, configFromStdin: Buffer.concat(chunks).toString("utf8"), requireContainer: true });
5602
- const { ensureHostKey: ensureHostKey2 } = await import('./host-key-ZWMN7VIH.js');
5612
+ const { ensureHostKey: ensureHostKey2 } = await import('./host-key-HQQLUWQB.js');
5603
5613
  const hostKey2 = await ensureHostKey2(configPath);
5604
5614
  process.stdout.write(`host key ${hostKey2.fingerprint}
5605
5615
  hooks: ${result2.hooks}
@@ -5654,7 +5664,7 @@ hooks: ${result2.hooks}
5654
5664
  const prepared = prepareRunnerInit(configPath, { machine, agent, credential, keyFromLogin: makeKey !== void 0 });
5655
5665
  const created = makeKey === void 0 ? void 0 : await makeKey();
5656
5666
  const result = writeRunnerInit(prepared, created);
5657
- const { ensureHostKey } = await import('./host-key-ZWMN7VIH.js');
5667
+ const { ensureHostKey } = await import('./host-key-HQQLUWQB.js');
5658
5668
  const hostKey = await ensureHostKey(configPath);
5659
5669
  if (created !== void 0) {
5660
5670
  process.stdout.write(`${C.green}\u2713${C.reset} saved the runner key in ${result.configPath}
@@ -5674,7 +5684,7 @@ hooks: ${result2.hooks}
5674
5684
  );
5675
5685
  process.stdout.write(`${C.green}\u2713${C.reset} hooks: ${result.hooks}${result.hooks === "builtin:vm" ? " (builds run in microVMs)" : " (builds run in containers)"}
5676
5686
  `);
5677
- const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-BI4C3MGF.js');
5687
+ const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-L5GEWLRY.js');
5678
5688
  let installedLayout = false;
5679
5689
  let noService = "it starts the runner from the install layout, which needs a CLI installed with npm";
5680
5690
  try {
@@ -5706,7 +5716,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
5706
5716
  let serviceUp = false;
5707
5717
  let restart;
5708
5718
  if (installedLayout) {
5709
- const { installServiceCommand } = await import('./command-D656K4AE.js');
5719
+ const { installServiceCommand } = await import('./command-6EO3Z7BW.js');
5710
5720
  const service = await installServiceCommand({
5711
5721
  configPath,
5712
5722
  entryPath: process.argv[1] ?? "",
@@ -5758,12 +5768,12 @@ image holds this CLI and a pinned ${words().agent}. Nothing runs inside the imag
5758
5768
  A repository with no devcontainer file builds on the universal image the CLI pins by digest.
5759
5769
  `
5760
5770
  ).action(async (opts) => {
5761
- const { defaultRunnerConfigPath } = await import('./config-U2OR7MQW.js');
5762
- const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-N2MRLYFW.js');
5771
+ const { defaultRunnerConfigPath } = await import('./config-6EOFYJWZ.js');
5772
+ const { baseLines, buildRepositoryImage, RecipeError } = await import('./build-CBPURIYL.js');
5763
5773
  const { currentCliBuild } = await import('./cli-build-K56DK4DS.js');
5764
- const { createDockerHost } = await import('./docker-RC4CFNKI.js');
5765
- const { builderSpec } = await import('./builder-ATKIRCDJ.js');
5766
- const { loadRunnerConfig } = await import('./config-U2OR7MQW.js');
5774
+ const { createDockerHost } = await import('./docker-G46NSNAE.js');
5775
+ const { builderSpec } = await import('./builder-7TYKMRTJ.js');
5776
+ const { loadRunnerConfig } = await import('./config-6EOFYJWZ.js');
5767
5777
  const configPath = opts.config ?? defaultRunnerConfigPath();
5768
5778
  const loaded = (() => {
5769
5779
  try {
@@ -5774,12 +5784,12 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5774
5784
  })();
5775
5785
  const memory = loaded?.build?.memory ?? "8g";
5776
5786
  try {
5777
- const { ensureRunnerIdentity } = await import('./runner-identity-CL2KMFGC.js');
5787
+ const { ensureRunnerIdentity } = await import('./runner-identity-L4RMVVQ3.js');
5778
5788
  await ensureRunnerIdentity(configPath, { log: (line) => console.error(line) }).catch((err) => {
5779
5789
  console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
5780
5790
  });
5781
- const { imageTargetFor } = await import('./governing-source-IURJZXUR.js');
5782
- const { runnerCalls } = await import('./caller-OWXJDYPI.js');
5791
+ const { imageTargetFor } = await import('./governing-source-B3RBMTCL.js');
5792
+ const { runnerCalls } = await import('./caller-ZROOH73G.js');
5783
5793
  const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
5784
5794
  if (!target.ok) {
5785
5795
  if (opts.json) {
@@ -5843,25 +5853,25 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5843
5853
  }
5844
5854
  });
5845
5855
  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) => {
5846
- const { defaultRunnerConfigPath } = await import('./config-U2OR7MQW.js');
5847
- const { requestStop } = await import('./loop-KEGBBAV4.js');
5856
+ const { defaultRunnerConfigPath } = await import('./config-6EOFYJWZ.js');
5857
+ const { requestStop } = await import('./loop-IWOVUNVC.js');
5848
5858
  const configPath = opts.config ?? defaultRunnerConfigPath();
5849
- const { runnerImageVersion } = await import('./image-tag-4DKLSTO6.js');
5859
+ const { runnerImageVersion } = await import('./image-tag-DBU2FVYO.js');
5850
5860
  await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
5851
5861
  });
5852
5862
  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) => {
5853
- const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-U2OR7MQW.js');
5854
- const { jobsDir, runnerDir } = await import('./paths-EHWU5QWB.js');
5855
- const { listJobFiles, runnerProcessState } = await import('./loop-KEGBBAV4.js');
5856
- const { renderStatus } = await import('./status-CZTCYZLU.js');
5857
- const { readHousekeepingRecord } = await import('./record-PXCRTDQU.js');
5863
+ const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-6EOFYJWZ.js');
5864
+ const { jobsDir, runnerDir } = await import('./paths-TQEUR7ET.js');
5865
+ const { listJobFiles, runnerProcessState } = await import('./loop-IWOVUNVC.js');
5866
+ const { renderStatus } = await import('./status-MQVZT3Z4.js');
5867
+ const { readHousekeepingRecord } = await import('./record-6TPL2BNW.js');
5858
5868
  const path2 = await import('path');
5859
5869
  const configPath = opts.config ?? defaultRunnerConfigPath();
5860
5870
  const all = listJobFiles(configPath);
5861
5871
  const housekeeping = readHousekeepingRecord(runnerDir(configPath));
5862
- const { readPendingUpdate } = await import('./pending-K4A23JIC.js');
5872
+ const { readPendingUpdate } = await import('./pending-QUWRYGA3.js');
5863
5873
  const pendingUpdate = readPendingUpdate(runnerDir(configPath));
5864
- const { readImageStatus } = await import('./image-tag-4DKLSTO6.js');
5874
+ const { readImageStatus } = await import('./image-tag-DBU2FVYO.js');
5865
5875
  const image = readImageStatus(runnerDir(configPath));
5866
5876
  let host = "unknown";
5867
5877
  let concurrency = 1;
@@ -5871,7 +5881,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5871
5881
  host = config.host;
5872
5882
  concurrency = config.concurrency;
5873
5883
  if (config.fleet === true) {
5874
- const { readFleetState } = await import('./state-MV53BATE.js');
5884
+ const { readFleetState } = await import('./state-NBUID6K5.js');
5875
5885
  fleet = { state: readFleetState(configPath) };
5876
5886
  }
5877
5887
  } catch {
@@ -5879,7 +5889,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5879
5889
  const processState = runnerProcessState(configPath);
5880
5890
  const service = await (async () => {
5881
5891
  if (process.platform !== "linux" || !existsSync("/run/systemd/system")) return void 0;
5882
- const { inspectRunnerService } = await import('./find-unit-ZVHHFTL2.js');
5892
+ const { inspectRunnerService } = await import('./find-unit-RPIWIOJ2.js');
5883
5893
  const facts = inspectRunnerService(configPath);
5884
5894
  return facts === void 0 ? void 0 : { unit: facts.unit, running: facts.mainPid !== void 0, delegated: facts.delegate };
5885
5895
  })();
@@ -5918,9 +5928,9 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5918
5928
  );
5919
5929
  });
5920
5930
  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) => {
5921
- const { defaultRunnerConfigPath } = await import('./config-U2OR7MQW.js');
5922
- const { listJobFiles } = await import('./loop-KEGBBAV4.js');
5923
- const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-7DD6J3M6.js');
5931
+ const { defaultRunnerConfigPath } = await import('./config-6EOFYJWZ.js');
5932
+ const { listJobFiles } = await import('./loop-IWOVUNVC.js');
5933
+ const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-JZF44C7F.js');
5924
5934
  const configPath = opts.config ?? defaultRunnerConfigPath();
5925
5935
  const jobs = listJobFiles(configPath);
5926
5936
  const selected = selectAttempt(jobs, itemArg);
@@ -6141,7 +6151,7 @@ Self-host deployments also need --app-id: without a key service to resolve the
6141
6151
  caller from the bearer token, the gateway answers 401 without that header.
6142
6152
  `
6143
6153
  ).action(async (opts) => {
6144
- const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-VSWX5BSZ.js');
6154
+ const { runMcpInstall, handleMcpInstallError, McpInstallError } = await import('./mcp-install-cmd-GN2K2JM3.js');
6145
6155
  try {
6146
6156
  if (opts.transport !== void 0 && opts.transport !== "stdio" && opts.transport !== "http") {
6147
6157
  throw new McpInstallError(`--transport must be "stdio" or "http", got "${opts.transport}"`);
@@ -6163,7 +6173,7 @@ caller from the bearer token, the gateway answers 401 without that header.
6163
6173
  "after",
6164
6174
  "\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"
6165
6175
  ).action(async (opts) => {
6166
- const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-HK2ODMHU.js');
6176
+ const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-X5FNE5WG.js');
6167
6177
  try {
6168
6178
  await runMcpServe({ url: opts.url, appId: opts.appId });
6169
6179
  } catch (err) {
@@ -6184,7 +6194,7 @@ would get, the instruction files and the names of the skills. It warns when the
6184
6194
  no \`build\`. It needs the context-read permission: a login or a factory key with it is enough.
6185
6195
  `
6186
6196
  ).action(async (opts) => {
6187
- const { runContextShow, ContextShowError } = await import('./context-show-cmd-ETWKBHXZ.js');
6197
+ const { runContextShow, ContextShowError } = await import('./context-show-cmd-U7NEJRQH.js');
6188
6198
  try {
6189
6199
  const result = await runContextShow({ repo: opts.repo, json: opts.json, url: opts.url, apiKey: opts.apiKey, appId: opts.appId });
6190
6200
  process.stdout.write(result.output);