@outerlayer/cli 0.38.0-next.20261109235338 → 0.38.0-next.20261110133110

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 (183) hide show
  1. package/README.md +9 -2
  2. package/dist/agent-setup-GZBGCV3K.js +40 -0
  3. package/dist/{agent-subcommand-JC5JXZ3X.js → agent-subcommand-5PNHUNZZ.js} +4 -4
  4. package/dist/{artifact-link-cmd-RUGAK5EX.js → artifact-link-cmd-XOFZP7U5.js} +2 -2
  5. package/dist/{bridge-TYO2YB2X.js → bridge-RNM7OWRW.js} +7 -7
  6. package/dist/{build-QUCL3HFM.js → build-VKO7IVOQ.js} +13 -13
  7. package/dist/{build-disk-3JUHPJEQ.js → build-disk-M2JYJF6R.js} +11 -11
  8. package/dist/build-info.json +1 -1
  9. package/dist/{builder-PADLK3VJ.js → builder-HMHJ6U7C.js} +10 -10
  10. package/dist/caller-U26SATTV.js +23 -0
  11. package/dist/{check-DBYJIP44.js → check-3XHEVEXS.js} +56 -56
  12. package/dist/{chunk-6L55K352.js → chunk-25G5KXBE.js} +7 -7
  13. package/dist/{chunk-Y2M2NZX4.js → chunk-2KGYMIVS.js} +10 -10
  14. package/dist/{chunk-IXC5EISR.js → chunk-2TXYQANG.js} +1 -1
  15. package/dist/{chunk-HT4OKJDB.js → chunk-2WNJ2MHD.js} +1 -1
  16. package/dist/{chunk-4NRIC2G5.js → chunk-3DY4DQOC.js} +4 -4
  17. package/dist/{chunk-553QW3PJ.js → chunk-3GTAPQBG.js} +2 -2
  18. package/dist/{chunk-F3NW5TBW.js → chunk-3HJK7WTM.js} +6 -6
  19. package/dist/{chunk-X3CGWGAG.js → chunk-47JRSV6Y.js} +1 -1
  20. package/dist/{chunk-WISVAUTD.js → chunk-5QDHJT73.js} +4 -4
  21. package/dist/{chunk-DPBFNZ6H.js → chunk-5QFFQCSY.js} +1 -1
  22. package/dist/{chunk-KGHVJI7V.js → chunk-67BVM7JK.js} +3 -3
  23. package/dist/{chunk-P43BSQGV.js → chunk-6RQP5GP5.js} +2 -2
  24. package/dist/{chunk-RN5VLKZ2.js → chunk-6XMC6R4W.js} +1 -1
  25. package/dist/{chunk-Y67NEZMW.js → chunk-6XROZIV6.js} +6 -6
  26. package/dist/{chunk-LJPYKCIP.js → chunk-72LXVD4O.js} +4 -4
  27. package/dist/{chunk-4A4TMFGV.js → chunk-735C5J6Q.js} +5 -5
  28. package/dist/{chunk-PCY626FL.js → chunk-7E55P2NR.js} +1 -1
  29. package/dist/{chunk-O7IJBJ6Z.js → chunk-AC6DM3S3.js} +1 -1
  30. package/dist/{chunk-2TA2Z5IJ.js → chunk-ALCZ2SEW.js} +5 -5
  31. package/dist/{chunk-OQHHPJNK.js → chunk-ATQHPT3B.js} +1 -1
  32. package/dist/{chunk-QZP3O6IM.js → chunk-B4U5XI4F.js} +69 -9
  33. package/dist/{chunk-2DVQHK37.js → chunk-B5Z4VA4Q.js} +1 -1
  34. package/dist/{chunk-XMVASSUZ.js → chunk-BCQFMAGM.js} +3 -3
  35. package/dist/{chunk-EYFIWJFI.js → chunk-BTH6HTE5.js} +5 -5
  36. package/dist/{chunk-HWHJDQLC.js → chunk-C574RHGN.js} +3 -3
  37. package/dist/{chunk-KHC7ICRR.js → chunk-CXXQQST7.js} +9 -9
  38. package/dist/{chunk-52IVBUIU.js → chunk-DKDBMMX7.js} +6 -6
  39. package/dist/{chunk-SKKKPLOC.js → chunk-E27XMQKR.js} +3 -3
  40. package/dist/{chunk-XLUQC2PE.js → chunk-EHPKACA7.js} +1 -1
  41. package/dist/{chunk-JLCEQXQF.js → chunk-ENHD5PNW.js} +1 -1
  42. package/dist/{chunk-5J4WME44.js → chunk-F2ADK2KB.js} +5 -5
  43. package/dist/{chunk-AZRZBG45.js → chunk-FGBBGUM4.js} +4 -4
  44. package/dist/{chunk-HE53NIRE.js → chunk-FXVHF6RX.js} +54 -4
  45. package/dist/{chunk-W37QA6WG.js → chunk-GJMLLXZJ.js} +1 -1
  46. package/dist/{chunk-IJWQT2Y7.js → chunk-HDEYRLWK.js} +1 -1
  47. package/dist/{chunk-A237UPRS.js → chunk-HMDEF3UT.js} +16 -16
  48. package/dist/{chunk-G2J574LS.js → chunk-I2N427GS.js} +8 -8
  49. package/dist/{chunk-2YOFSE7U.js → chunk-I64CTY4U.js} +52 -34
  50. package/dist/{chunk-GH5Y3R5R.js → chunk-IGO766M6.js} +4 -4
  51. package/dist/{chunk-XPXJWIOJ.js → chunk-ITOIM3WV.js} +1 -1
  52. package/dist/{chunk-MGOEHY72.js → chunk-IVB6A3I7.js} +7 -7
  53. package/dist/{chunk-7HN6T4MY.js → chunk-L32O52SH.js} +1 -1
  54. package/dist/{chunk-DE5QLWJK.js → chunk-L6CZTRNW.js} +1 -1
  55. package/dist/{chunk-N2QYP3NQ.js → chunk-MBPBYMHU.js} +565 -16
  56. package/dist/{chunk-TYLZR7HX.js → chunk-MSARYPFD.js} +2 -2
  57. package/dist/{chunk-3Q2SEOT3.js → chunk-MT4XF5OL.js} +2 -2
  58. package/dist/{chunk-UU6FN6PZ.js → chunk-NE7EG3SN.js} +4 -4
  59. package/dist/{chunk-PE5J46EE.js → chunk-OEWSICWM.js} +8 -8
  60. package/dist/{chunk-26NMJGEY.js → chunk-OI4ZV7MJ.js} +1 -1
  61. package/dist/{chunk-IJ4DF5QS.js → chunk-OK4RSIB2.js} +1 -1
  62. package/dist/{chunk-ZZ4AX25R.js → chunk-OWEJP5HJ.js} +1 -1
  63. package/dist/{chunk-NL2MMRJI.js → chunk-PA6FKP5B.js} +6 -6
  64. package/dist/{chunk-ZRTGX4GN.js → chunk-QFQ2UNZU.js} +6 -6
  65. package/dist/{chunk-SOLQ3JA6.js → chunk-QGUCHNSQ.js} +66 -11
  66. package/dist/{chunk-NAU7U44X.js → chunk-QNHBJU74.js} +7 -7
  67. package/dist/{chunk-7NP5G2FV.js → chunk-RBLXGO5K.js} +2 -2
  68. package/dist/{chunk-F4XMG7EO.js → chunk-SBPMDO47.js} +1 -1
  69. package/dist/{chunk-5AU2GQGH.js → chunk-TD6DN5LU.js} +3 -3
  70. package/dist/{chunk-FLIRUHVT.js → chunk-TUSIYONR.js} +1 -1
  71. package/dist/{chunk-HITUWIB7.js → chunk-TW2V2IQ4.js} +1 -1
  72. package/dist/{chunk-ZUIHEOSC.js → chunk-UCUBQWJC.js} +1 -1
  73. package/dist/{chunk-DQLHVV62.js → chunk-UUSSRXUJ.js} +3 -3
  74. package/dist/{chunk-QA3U3MJZ.js → chunk-VNHDMOZW.js} +155 -36
  75. package/dist/{chunk-BAWOWJ3G.js → chunk-VQQF6MDT.js} +10 -10
  76. package/dist/{chunk-6ZMFEZ2K.js → chunk-VRWZNI6U.js} +1 -1
  77. package/dist/{chunk-ZIOMM4LL.js → chunk-VU5PPWIQ.js} +7 -7
  78. package/dist/{chunk-2BMH3373.js → chunk-WH2QUYXH.js} +2 -2
  79. package/dist/{chunk-WE4CWGNR.js → chunk-XAR2CJFV.js} +7 -7
  80. package/dist/{chunk-XDHMRHMC.js → chunk-XCTE5S2C.js} +1 -1
  81. package/dist/{chunk-IPB5UOHH.js → chunk-XFU37HIM.js} +3 -3
  82. package/dist/{chunk-C7YFAPMY.js → chunk-YO2NPS66.js} +1 -1
  83. package/dist/chunk-YOAJLD2D.js +270 -0
  84. package/dist/{chunk-3QTC4UWC.js → chunk-YZQYTOCR.js} +1 -1
  85. package/dist/{claude-launcher-UYCMHZOU.js → claude-launcher-WMIUTAXY.js} +7 -7
  86. package/dist/{cli-KEVUJ6PY.js → cli-VQNE6M77.js} +186 -156
  87. package/dist/{command-DNGERCQW.js → command-XQPL75PX.js} +51 -51
  88. package/dist/{config-M66C2AGN.js → config-ZRGYLVDX.js} +12 -12
  89. package/dist/{connect-cmd-JBM5ODV3.js → connect-cmd-MZXTWM4R.js} +13 -13
  90. package/dist/{container-start-4NKXX3MA.js → container-start-M7SFF62T.js} +49 -49
  91. package/dist/{context-cleanup-UE5HQRHP.js → context-cleanup-Z3HZZZXW.js} +4 -4
  92. package/dist/{context-show-cmd-HX5LND6O.js → context-show-cmd-SCOVPVDM.js} +14 -14
  93. package/dist/{control-plane-launch-XEMMZ7VZ.js → control-plane-launch-MWZHJ4G5.js} +14 -14
  94. package/dist/{demo-record-cmd-PI4PFFEO.js → demo-record-cmd-4RVSWVMK.js} +8 -8
  95. package/dist/{demo-voice-cmd-3GASMSCU.js → demo-voice-cmd-PGM5JPCQ.js} +20 -20
  96. package/dist/{dist-OMJJT636.js → dist-XEPPXF4M.js} +2 -2
  97. package/dist/{docker-KWHEDC6K.js → docker-25F2KOBJ.js} +10 -10
  98. package/dist/{doctor-GPATU5TY.js → doctor-Z3U3ICVR.js} +51 -51
  99. package/dist/{emit-artifact-cmd-OH7PNHZF.js → emit-artifact-cmd-Z4SHPKFT.js} +19 -19
  100. package/dist/{emit-cmd-RPICQ5H2.js → emit-cmd-NHMZ4M5S.js} +7 -7
  101. package/dist/{emit-criteria-cmd-JW2GS2SO.js → emit-criteria-cmd-HCN3DOJM.js} +16 -16
  102. package/dist/{emit-demo-cmd-5W6H6AI4.js → emit-demo-cmd-NOSQTOES.js} +20 -20
  103. package/dist/{emit-finding-cmd-PSCJFCBZ.js → emit-finding-cmd-YXR3ZVCJ.js} +16 -16
  104. package/dist/{emit-result-cmd-VJZDDWD3.js → emit-result-cmd-Z7MBE37R.js} +18 -18
  105. package/dist/{emit-step-cmd-ER65MOU6.js → emit-step-cmd-JOSYDSEO.js} +16 -16
  106. package/dist/{exec-client-PHJ4YGYG.js → exec-client-SZRXXKJ5.js} +8 -8
  107. package/dist/find-unit-3RHC4375.js +24 -0
  108. package/dist/{findings-cmd-BN6LO7LI.js → findings-cmd-NGFY25WZ.js} +16 -16
  109. package/dist/{fleet-readiness-FHVT7ZXE.js → fleet-readiness-NWIVQQ4P.js} +14 -14
  110. package/dist/governing-source-DNWVPRXP.js +41 -0
  111. package/dist/{guest-init-IREU7IIE.js → guest-init-T7QJW2AJ.js} +9 -9
  112. package/dist/{hook-fast-OFCB6O5N.js → hook-fast-ECQBMESE.js} +1 -1
  113. package/dist/{hook-install-3SSLJYA3.js → hook-install-MBMG3G6B.js} +4 -4
  114. package/dist/host-checks-QLGWXKOC.js +80 -0
  115. package/dist/host-key-6SMJUTJ2.js +18 -0
  116. package/dist/{image-tag-MYCA26HL.js → image-tag-OCVY4W5D.js} +8 -8
  117. package/dist/index.js +4 -4
  118. package/dist/init-JY3XYZI6.js +80 -0
  119. package/dist/{init-RUY6NPTN.js → init-NRN2DQC3.js} +47 -47
  120. package/dist/{init-agent-Z6PF22UT.js → init-agent-GDOZHPQH.js} +47 -47
  121. package/dist/{init-cmd-3M4QENFU.js → init-cmd-QJYX47LS.js} +27 -27
  122. package/dist/{init-update-V4AWGCUH.js → init-update-EUJ4264S.js} +24 -24
  123. package/dist/{install-cmd-UJO2EMXF.js → install-cmd-HWG6LJX5.js} +10 -10
  124. package/dist/{layout-VZ3MERWV.js → layout-CGE4KWGO.js} +4 -4
  125. package/dist/{login-browser-ZEOXKIQ2.js → login-browser-G7WNR74C.js} +2 -2
  126. package/dist/{logs-SQJ5BKAP.js → logs-TKWJ4S4W.js} +7 -7
  127. package/dist/loop-HWYHQ374.js +90 -0
  128. package/dist/machine-NVXRV4BO.js +80 -0
  129. package/dist/{machine-skills-SAD5OWIH.js → machine-skills-CXA57QHE.js} +4 -4
  130. package/dist/{mcp-install-cmd-7KKOGEFA.js → mcp-install-cmd-6IGK65DV.js} +4 -4
  131. package/dist/{mcp-serve-cmd-EKANKY4W.js → mcp-serve-cmd-DVE5XP2U.js} +9 -9
  132. package/dist/{paths-LYF7UNWL.js → paths-VOWYUJLZ.js} +7 -7
  133. package/dist/pending-35ML3JE5.js +18 -0
  134. package/dist/{pidfile-EYAULWL2.js → pidfile-MFP6B2KV.js} +8 -8
  135. package/dist/{record-CHYO34BN.js → record-AWCJ3LTG.js} +8 -8
  136. package/dist/{relay-J3OROVNN.js → relay-YVZM5M6B.js} +5 -5
  137. package/dist/{relay-protocol-UI7QUDOZ.js → relay-protocol-MNWITORT.js} +5 -5
  138. package/dist/{run-cmd-PIMQNBAX.js → run-cmd-MBH5Z2UL.js} +16 -16
  139. package/dist/{runner-agents-KSP3MLAH.js → runner-agents-L3PLYFWJ.js} +4 -4
  140. package/dist/runner-env-IHWYZ3B6.js +24 -0
  141. package/dist/{runner-identity-WZAKGBRX.js → runner-identity-E2XKIJNB.js} +10 -10
  142. package/dist/{runner-key-HGHQYJJX.js → runner-key-W5M6AYY5.js} +47 -47
  143. package/dist/{session-sender-W6MTYKLE.js → session-sender-IS6S7PBC.js} +19 -19
  144. package/dist/{spec-cmd-RJVMWOOX.js → spec-cmd-ZLDYL4N5.js} +17 -17
  145. package/dist/{starter-pack-52PX6IPU.js → starter-pack-XINCCMDN.js} +5 -5
  146. package/dist/state-NIA6XT7D.js +18 -0
  147. package/dist/{status-YQ25OCUL.js → status-L7R6FKWD.js} +47 -47
  148. package/dist/{sync-cmd-2NBSELL7.js → sync-cmd-3YZ4IB3T.js} +18 -18
  149. package/dist/update-steps-6SPAPBAB.js +81 -0
  150. package/dist/{watch-WQGK2SQB.js → watch-LIIODJ5U.js} +18 -18
  151. package/dist/{work-claim-cmd-CQ3DSJBR.js → work-claim-cmd-GWBWIZ43.js} +23 -23
  152. package/dist/work-cmd-CJWTGOU5.js +33 -0
  153. package/dist/work-comment-cmd-RFVCNEET.js +39 -0
  154. package/dist/{work-demo-cmd-BOKSQSA5.js → work-demo-cmd-Q2GKJCVL.js} +16 -16
  155. package/dist/{work-logs-cmd-TZXDF3UI.js → work-logs-cmd-KZQBPU2J.js} +16 -16
  156. package/dist/{work-needs-attention-cmd-WR5GR3B6.js → work-needs-attention-cmd-L3DOYAMK.js} +16 -16
  157. package/dist/{work-no-change-cmd-TKC3V64O.js → work-no-change-cmd-SHP25CJB.js} +16 -16
  158. package/dist/{work-open-pr-cmd-T2IFI7OR.js → work-open-pr-cmd-VATPLVSL.js} +17 -17
  159. package/dist/{work-pr-cmd-WM6PGSGK.js → work-pr-cmd-XBLNONT3.js} +16 -16
  160. package/dist/{work-proofs-cmd-E4VJP55B.js → work-proofs-cmd-27IPS3EY.js} +18 -18
  161. package/dist/{work-proofs-record-MIVUWECF.js → work-proofs-record-2RDDJ6CK.js} +24 -24
  162. package/dist/{work-stop-cmd-52WGVYF5.js → work-stop-cmd-BLOSL24H.js} +16 -16
  163. package/package.json +1 -1
  164. package/skill-pack/maintained/outerlayer-amend/SKILL.md +1 -0
  165. package/skill-pack/maintained/outerlayer-amend/references/attachments.md +23 -0
  166. package/skill-pack/maintained/outerlayer-build/SKILL.md +5 -0
  167. package/skill-pack/maintained/outerlayer-cli/SKILL.md +9 -0
  168. package/dist/agent-setup-F4KAKOQE.js +0 -40
  169. package/dist/caller-LYH64TZB.js +0 -23
  170. package/dist/chunk-SWXAP4GM.js +0 -128
  171. package/dist/find-unit-D7MX5YW7.js +0 -24
  172. package/dist/governing-source-6WWMRJEI.js +0 -41
  173. package/dist/host-checks-KYLKXG2A.js +0 -80
  174. package/dist/host-key-4764FB4U.js +0 -18
  175. package/dist/init-EPBASJNK.js +0 -80
  176. package/dist/loop-VUNIGNXU.js +0 -90
  177. package/dist/machine-2KFSAU27.js +0 -80
  178. package/dist/pending-3FQ3GG6T.js +0 -18
  179. package/dist/runner-env-AMGOE3UI.js +0 -24
  180. package/dist/state-UIV37NXY.js +0 -18
  181. package/dist/update-steps-FH7UXI5N.js +0 -81
  182. package/dist/work-cmd-B32BDBV2.js +0 -33
  183. package/dist/work-comment-cmd-L5FTPUGE.js +0 -38
@@ -1,26 +1,26 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { checkStarterFiles, contextIsGoverned } from './chunk-EYFIWJFI.js';
4
- import { resolveCredentials, getJson, WorkCommandError } from './chunk-QZP3O6IM.js';
5
- import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-NL2MMRJI.js';
6
- import { withInjectedPrograms } from './chunk-X3CGWGAG.js';
7
- import { isLinkedRepository } from './chunk-ZRTGX4GN.js';
8
- import { sanitizeTerminal } from './chunk-2DVQHK37.js';
3
+ import { checkStarterFiles, contextIsGoverned } from './chunk-BTH6HTE5.js';
4
+ import { resolveCredentials, getJson, WorkCommandError } from './chunk-B4U5XI4F.js';
5
+ import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-PA6FKP5B.js';
6
+ import { withInjectedPrograms } from './chunk-47JRSV6Y.js';
7
+ import { isLinkedRepository } from './chunk-QFQ2UNZU.js';
8
+ import { sanitizeTerminal } from './chunk-B5Z4VA4Q.js';
9
9
  import { C } from './chunk-2AM6Z5BP.js';
10
- import { checkFormerSkillNames } from './chunk-HITUWIB7.js';
11
- import { resolveGatewayCredentials, defaultFetch } from './chunk-6ZMFEZ2K.js';
12
- import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-SOLQ3JA6.js';
10
+ import { checkFormerSkillNames } from './chunk-TW2V2IQ4.js';
11
+ import { resolveGatewayCredentials, defaultFetch } from './chunk-VRWZNI6U.js';
12
+ import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-QGUCHNSQ.js';
13
13
  import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-SF2TBJBP.js';
14
14
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
15
15
  import { readStatuslineState, STATE_FRESH_MS } from './chunk-M53UNEO6.js';
16
16
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
17
- import { installAgents, withSettingsText } from './chunk-W37QA6WG.js';
17
+ import { installAgents, withSettingsText } from './chunk-GJMLLXZJ.js';
18
18
  import { cliForInstall, cliBinResolvable } from './chunk-ZHQC43NH.js';
19
19
  import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
20
20
  import { deadHooksState, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
21
- import { defaultAgents, legacyAgent, contextAgents } from './chunk-3Q2SEOT3.js';
21
+ import { defaultAgents, legacyAgent, contextAgents } from './chunk-MT4XF5OL.js';
22
22
  import { homeFromEnv } from './chunk-352DHUTP.js';
23
- import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-N2QYP3NQ.js';
23
+ import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-MBPBYMHU.js';
24
24
  import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
25
25
  import { sep, join, dirname, resolve, delimiter } from 'path';
26
26
  import { execFileSync } from 'child_process';
@@ -1051,8 +1051,8 @@ function doctorExitCode(checks) {
1051
1051
 
1052
1052
  // src/doctor-report.ts
1053
1053
  async function gatherDoctorChecks(options = {}) {
1054
- const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-3JUHPJEQ.js');
1055
- const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-M66C2AGN.js');
1054
+ const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-M2JYJF6R.js');
1055
+ const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-ZRGYLVDX.js');
1056
1056
  const configPath = options.configPath ?? defaultRunnerConfigPath();
1057
1057
  const runnerHost = hasRunnerBlock(configPath);
1058
1058
  const hooks = (() => {
@@ -1080,7 +1080,7 @@ async function gatherDoctorChecks(options = {}) {
1080
1080
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1081
1081
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1082
1082
  } else if (hasRunnerBlock(configPath)) {
1083
- const { runnerHostChecks } = await import('./doctor-GPATU5TY.js');
1083
+ const { runnerHostChecks } = await import('./doctor-Z3U3ICVR.js');
1084
1084
  const gateway = (() => {
1085
1085
  try {
1086
1086
  const loaded = loadRunnerConfig(configPath);
@@ -1108,7 +1108,7 @@ async function gatherDoctorChecks(options = {}) {
1108
1108
  const service = await (async () => {
1109
1109
  const { existsSync: existsSync3 } = await import('fs');
1110
1110
  if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
1111
- const { inspectRunnerService } = await import('./find-unit-D7MX5YW7.js');
1111
+ const { inspectRunnerService } = await import('./find-unit-3RHC4375.js');
1112
1112
  return inspectRunnerService(configPath);
1113
1113
  })();
1114
1114
  checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-IXC5EISR.js';
4
- import { ensureHostKey } from './chunk-JLCEQXQF.js';
5
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-O7IJBJ6Z.js';
6
- import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-UU6FN6PZ.js';
7
- import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-2BMH3373.js';
8
- import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-ZUIHEOSC.js';
9
- import { defaultAgents } from './chunk-3Q2SEOT3.js';
3
+ import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-2TXYQANG.js';
4
+ import { ensureHostKey } from './chunk-ENHD5PNW.js';
5
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-AC6DM3S3.js';
6
+ import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-NE7EG3SN.js';
7
+ import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-WH2QUYXH.js';
8
+ import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-UCUBQWJC.js';
9
+ import { defaultAgents } from './chunk-MT4XF5OL.js';
10
10
  import { PROVIDERS } from './chunk-7PZDPISM.js';
11
- import { compareVersions } from './chunk-N2QYP3NQ.js';
11
+ import { compareVersions } from './chunk-MBPBYMHU.js';
12
12
  import { createHash } from 'crypto';
13
13
  import { mkdirSync, createWriteStream, rmSync, existsSync, readFileSync, chmodSync, writeFileSync, realpathSync, readdirSync, renameSync } from 'fs';
14
14
  import { dirname, join, posix, resolve } from 'path';
@@ -1,46 +1,46 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, openPullRequests, MAX_TEST_FILE_BYTES } from './chunk-XMVASSUZ.js';
4
- import { RUNNER_PROTOCOL } from './chunk-RN5VLKZ2.js';
3
+ import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, openPullRequests, MAX_TEST_FILE_BYTES } from './chunk-BCQFMAGM.js';
4
+ import { RUNNER_PROTOCOL } from './chunk-6XMC6R4W.js';
5
5
  import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
6
6
  import { zodProblem } from './chunk-I3LTIAOR.js';
7
- import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-5J4WME44.js';
8
- import { upgradedStarterText } from './chunk-EYFIWJFI.js';
9
- import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-DQLHVV62.js';
10
- import { writeDockerClientConfig } from './chunk-7HN6T4MY.js';
11
- import { senderPidfile } from './chunk-AZRZBG45.js';
12
- import { installScrubContext } from './chunk-KHC7ICRR.js';
7
+ import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-F2ADK2KB.js';
8
+ import { upgradedStarterText } from './chunk-BTH6HTE5.js';
9
+ import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-UUSSRXUJ.js';
10
+ import { writeDockerClientConfig } from './chunk-L32O52SH.js';
11
+ import { senderPidfile } from './chunk-FGBBGUM4.js';
12
+ import { installScrubContext } from './chunk-CXXQQST7.js';
13
13
  import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
14
- import { runnerImageVersion } from './chunk-HT4OKJDB.js';
15
- import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-TYLZR7HX.js';
14
+ import { runnerImageVersion } from './chunk-2WNJ2MHD.js';
15
+ import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-MSARYPFD.js';
16
16
  import { receiveFiles } from './chunk-NN33FYXG.js';
17
- import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-WE4CWGNR.js';
18
- import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-LJPYKCIP.js';
17
+ import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-XAR2CJFV.js';
18
+ import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-72LXVD4O.js';
19
19
  import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
20
20
  import { currentCliBuild } from './chunk-OGFGZQA3.js';
21
- import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-XDHMRHMC.js';
22
- import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-5AU2GQGH.js';
23
- import { describeCallFailure, shortClaim, retrySend, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, refusalCode, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, keepStagedContext, pinnedSourceOf, WORKFLOW_PERMISSION_REASON, shimScript, controlPlaneTokenFailure } from './chunk-MGOEHY72.js';
24
- import { postJson, WorkCommandError, isSignatureRefusal, getJson } from './chunk-QZP3O6IM.js';
25
- import { isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, keyRunnerFactory, runnerCredentialProblem, builtinKind, sandboxSizeOf, networkOf, sandboxTimeLimitMinutes, DEFAULT_SETUP_MINUTES, optionalEgress, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-WISVAUTD.js';
26
- import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-7NP5G2FV.js';
27
- import { runnerLabelValue, said, RUNNER_LABEL, BUILD_LABEL, prepareRunArgs, containerRunArgs, firstLine, writeJobFile, readJobFile, spawnRun, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, mountableHome, homeCopyRunArgs, containerExecArgs, childEnvironment, readDu, identityRunArgs, parseIdentity, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, parseSize, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, judgeCommand, JUDGE_DIR, WORKSPACE_LABEL, networkHelperRunArgs, JUDGE_MAX_TURNS, JUDGE_ITEMS, answerFileName, hashJudgeProgram, identityScript, identityArgs, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_REPORT, SAVED_STATE_LABEL } from './chunk-G2J574LS.js';
28
- import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-IXC5EISR.js';
29
- import { sanitizeTerminal, planArtifactUpload } from './chunk-2DVQHK37.js';
30
- import { sharedSkillNames, skillConflictMessage } from './chunk-DE5QLWJK.js';
21
+ import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-XCTE5S2C.js';
22
+ import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-TD6DN5LU.js';
23
+ import { describeCallFailure, shortClaim, retrySend, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, refusalCode, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, keepStagedContext, pinnedSourceOf, WORKFLOW_PERMISSION_REASON, shimScript, controlPlaneTokenFailure } from './chunk-IVB6A3I7.js';
24
+ import { postJson, WorkCommandError, isSignatureRefusal, getJson } from './chunk-B4U5XI4F.js';
25
+ import { isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, keyRunnerFactory, runnerCredentialProblem, builtinKind, sandboxSizeOf, networkOf, sandboxTimeLimitMinutes, DEFAULT_SETUP_MINUTES, optionalEgress, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-5QDHJT73.js';
26
+ import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-RBLXGO5K.js';
27
+ import { runnerLabelValue, said, RUNNER_LABEL, BUILD_LABEL, prepareRunArgs, containerRunArgs, firstLine, writeJobFile, readJobFile, spawnRun, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, mountableHome, homeCopyRunArgs, containerExecArgs, childEnvironment, readDu, identityRunArgs, parseIdentity, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, parseSize, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, judgeCommand, JUDGE_DIR, WORKSPACE_LABEL, networkHelperRunArgs, JUDGE_MAX_TURNS, JUDGE_ITEMS, answerFileName, hashJudgeProgram, identityScript, identityArgs, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_REPORT, SAVED_STATE_LABEL } from './chunk-I2N427GS.js';
28
+ import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-2TXYQANG.js';
29
+ import { sanitizeTerminal, planArtifactUpload } from './chunk-B5Z4VA4Q.js';
30
+ import { sharedSkillNames, skillConflictMessage } from './chunk-L6CZTRNW.js';
31
31
  import { readCloudConfig } from './chunk-HWVMRETT.js';
32
- import { signerFor } from './chunk-JLCEQXQF.js';
33
- import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, buildDir, ghConfigDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, runnerDirOfBuild, mirrorDir, orgHomeDir, deliveryDir, jobConsolePath, vsockPath, SHIM_DIR, builderConsolePath, rootfsPathFor, diskTemplatesDir } from './chunk-O7IJBJ6Z.js';
34
- import { BUILD_HOME, repositoriesOf, primaryOf, SandboxError, describeSandboxError, buildEnvironment, CHECKOUT_DIR, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, trustEnvironment, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, toolProxyEnvironment, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, checkoutPath, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf } from './chunk-UU6FN6PZ.js';
35
- import { agentCredential, builtInNames, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, realFdStorePort, RELAY_ID, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, DOCKER_DESKTOP_REASON } from './chunk-2BMH3373.js';
32
+ import { signerFor } from './chunk-ENHD5PNW.js';
33
+ import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, buildDir, ghConfigDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, runnerDirOfBuild, mirrorDir, orgHomeDir, deliveryDir, jobConsolePath, vsockPath, SHIM_DIR, builderConsolePath, rootfsPathFor, diskTemplatesDir } from './chunk-AC6DM3S3.js';
34
+ import { BUILD_HOME, repositoriesOf, primaryOf, SandboxError, describeSandboxError, buildEnvironment, CHECKOUT_DIR, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, trustEnvironment, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, toolProxyEnvironment, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, checkoutPath, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf } from './chunk-NE7EG3SN.js';
35
+ import { agentCredential, builtInNames, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, realFdStorePort, RELAY_ID, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, DOCKER_DESKTOP_REASON } from './chunk-WH2QUYXH.js';
36
36
  import { versionAtLeast } from './chunk-SF2TBJBP.js';
37
- import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, agentVersionOf, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, strippedVariables, runnerAgents, judgeAgent, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE } from './chunk-ZUIHEOSC.js';
38
- import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-3Q2SEOT3.js';
37
+ import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, agentVersionOf, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, strippedVariables, runnerAgents, judgeAgent, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE } from './chunk-UCUBQWJC.js';
38
+ import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-MT4XF5OL.js';
39
39
  import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.js';
40
40
  import { resolveVersion } from './chunk-RA3O54FC.js';
41
41
  import { homeFromEnv } from './chunk-352DHUTP.js';
42
- import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-N2QYP3NQ.js';
43
- import { CheckItemsSchema, CODE_REVIEW_NAME, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID, CHECK_ITEM_REASON_MAX_LENGTH, UNREVIEWED_FILES_ITEM_ID, CHECK_ITEM_HREF_MAX_LENGTH, downconvertSession } from './chunk-HE53NIRE.js';
42
+ import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-MBPBYMHU.js';
43
+ import { CheckItemsSchema, CODE_REVIEW_NAME, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID, CHECK_ITEM_REASON_MAX_LENGTH, UNREVIEWED_FILES_ITEM_ID, CHECK_ITEM_HREF_MAX_LENGTH, downconvertSession } from './chunk-FXVHF6RX.js';
44
44
  import { randomUUID, randomBytes, createHash } from 'crypto';
45
45
  import { rmSync, mkdirSync, existsSync, readFileSync, mkdtempSync, statSync, appendFileSync, writeFileSync, readdirSync, accessSync, constants, openSync, closeSync, renameSync, rmdirSync, chmodSync, createReadStream, lstatSync, unlinkSync, realpathSync, writeSync, truncateSync, cpSync, fstatSync, readSync, createWriteStream, copyFileSync, linkSync } from 'fs';
46
46
  import { join, dirname, isAbsolute, delimiter, basename, sep, relative, resolve } from 'path';
@@ -5553,6 +5553,16 @@ function microVmCommandLine(input) {
5553
5553
  const { options, env } = vmExecFor(input, ["/bin/sh", "-c", commandWithShim(input.job, input.cmdline)]);
5554
5554
  return { line: [process.execPath, input.cli, "vm-exec", ...vmExecArgs(options)].map(shellQuote).join(" "), options, env };
5555
5555
  }
5556
+ async function clearMicroVmCommandDir(runtime, state, commandDir) {
5557
+ const files = ["exit-code", "command.pid", "command.log"].map((name) => shellQuote(`${commandDir}/${name}`)).join(" ");
5558
+ const cleared = await withinTime(
5559
+ (signal) => runtime.vm.exec(state.vsockPath, { argv: ["/bin/sh", "-c", `rm -f ${files}`], user: state.agentUser ?? ADDED_USER, cwd: "/", env: { PATH: GUEST_PATH2 } }, { signal })
5560
+ );
5561
+ if (cleared.status !== 0) {
5562
+ const said2 = firstLine(cleared.stderr);
5563
+ throw new Error(`the files an earlier command left in ${commandDir} could not be removed: exit ${cleared.status}${said2 === "" ? "" : `: ${said2}`}`);
5564
+ }
5565
+ }
5556
5566
  async function startMicroVmCommand(input) {
5557
5567
  const state = input.job.microvm;
5558
5568
  const env = withExtraEnv(buildEnvironment({
@@ -5576,12 +5586,14 @@ async function startMicroVmCommand(input) {
5576
5586
  proxiedEnvironment: proxiedEnvironment(input.jobDir),
5577
5587
  trustEnvironment: trustEnvironment(input.jobDir)
5578
5588
  }), input.extraEnv);
5589
+ const commandDir = state.commandDir ?? MICROVM_COMMAND_DIR;
5590
+ await clearMicroVmCommandDir(input.runtime, state, commandDir);
5579
5591
  const started = await input.runtime.vm.exec(state.vsockPath, {
5580
5592
  argv: ["/bin/sh", "-c", commandWithShim(input.job, input.cmdline)],
5581
5593
  user: state.agentUser ?? ADDED_USER,
5582
5594
  cwd: CHECKOUT_DIR,
5583
5595
  env: execEnvironment(state.imageEnv, env),
5584
- detach: state.commandDir ?? MICROVM_COMMAND_DIR
5596
+ detach: commandDir
5585
5597
  });
5586
5598
  if (started.status !== 0) {
5587
5599
  const said2 = firstLine(started.stderr);
@@ -8865,6 +8877,7 @@ async function renewLease(config, item, fetchImpl) {
8865
8877
  }
8866
8878
  }
8867
8879
  var ALREADY_RELEASED = "already released";
8880
+ var CLAIM_NOT_NEWEST = "claim_not_newest";
8868
8881
  async function releaseLease(config, item, outcome, detail, fetchImpl) {
8869
8882
  const send = async (environment2, sent2, log2, resume2, disk2) => postJson(
8870
8883
  config.url,
@@ -9466,10 +9479,11 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9466
9479
  }
9467
9480
  dropManagedBuildSettings(jobDirPath);
9468
9481
  const alreadyReleased = release.ok && wasAlreadyReleased(release.value, outcome, sentAtMs);
9482
+ const superseded = !release.ok && release.code === CLAIM_NOT_NEWEST;
9469
9483
  const endedAt = now();
9470
9484
  job.outcome = outcome;
9471
9485
  job.endedAt = endedAt.toISOString();
9472
- job.releaseFailed = release.ok ? alreadyReleased ? ALREADY_RELEASED : void 0 : release.reason;
9486
+ job.releaseFailed = release.ok ? alreadyReleased ? ALREADY_RELEASED : void 0 : superseded ? void 0 : release.reason;
9473
9487
  writeJobFile(jobFilePath, job);
9474
9488
  deps.attemptLogs?.close(job.item, itemScope(job));
9475
9489
  const total = formatDuration(endedAt.getTime() - new Date(job.startedAt).getTime());
@@ -9477,6 +9491,8 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9477
9491
  log.line(
9478
9492
  `${tag} lease was already released (outcome ${release.ok ? release.value.outcome ?? "none" : "unknown"}) \xB7 this attempt ended as ${outcome ?? "not attempted"}`
9479
9493
  );
9494
+ } else if (superseded) {
9495
+ log.line(`${tag} not released: its lease lapsed and a newer lease holds the item \xB7 this attempt ended as ${outcome ?? "not attempted"}`);
9480
9496
  } else if (release.ok) {
9481
9497
  log.line(
9482
9498
  outcome === void 0 ? `${tag} released \xB7 not attempted (provision exit 75) \xB7 ${total}` : `${tag} released \xB7 outcome ${outcome} \xB7 ${total}${egressText(tunnelRecord)}`
@@ -9492,7 +9508,7 @@ async function sendRelease(config, job, outcome, detail, fetchImpl) {
9492
9508
  await releaseRun(claimCalls(config, job), String(job.item), outcome, fetchImpl);
9493
9509
  return {};
9494
9510
  }
9495
- return releaseLease(claimCalls(config, job), claimItem(config, job), outcome, detail, fetchImpl);
9511
+ return releaseLease(claimCalls(config, job), claimItem(config, job), outcome, { ...detail, claimId: job.claimId }, fetchImpl);
9496
9512
  }
9497
9513
  function egressText(record) {
9498
9514
  if (record === void 0) return "";
@@ -9547,7 +9563,9 @@ async function retryFailedReleases(jobsDirPath, config, deps) {
9547
9563
  job.releaseFailed = release.reason;
9548
9564
  writeJobFile(jobFilePath, job);
9549
9565
  }
9550
- results.push({ job, released: release.ok });
9566
+ results.push(
9567
+ release.ok ? { job, released: true } : { job, released: false, reason: release.code === CLAIM_NOT_NEWEST ? "its lease lapsed and a newer lease holds the item" : release.reason, final: !release.retryable }
9568
+ );
9551
9569
  }
9552
9570
  return results;
9553
9571
  }
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-C7YFAPMY.js';
3
+ import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-YO2NPS66.js';
4
4
  import { C } from './chunk-2AM6Z5BP.js';
5
- import { invalidConfigMessage } from './chunk-ZZ4AX25R.js';
6
- import { retiredSkillPaths, removeRetiredSkills } from './chunk-HITUWIB7.js';
5
+ import { invalidConfigMessage } from './chunk-OWEJP5HJ.js';
6
+ import { retiredSkillPaths, removeRetiredSkills } from './chunk-TW2V2IQ4.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
- import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-3Q2SEOT3.js';
8
+ import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-MT4XF5OL.js';
9
9
  import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
10
10
  import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
11
11
  import { join, dirname } from 'path';
@@ -2,7 +2,7 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
4
4
  import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
5
- import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-3Q2SEOT3.js';
5
+ import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-MT4XF5OL.js';
6
6
  import { execFileSync } from 'child_process';
7
7
  import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
8
8
  import { join, dirname, isAbsolute } from 'path';
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { WorkCommandError, postJson } from './chunk-QZP3O6IM.js';
4
- import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-2TA2Z5IJ.js';
5
- import { buildRefusalReason } from './chunk-ZZ4AX25R.js';
6
- import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-DE5QLWJK.js';
7
- import { signingFetchFor } from './chunk-6ZMFEZ2K.js';
8
- import { signerFor } from './chunk-JLCEQXQF.js';
9
- import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-O7IJBJ6Z.js';
3
+ import { WorkCommandError, postJson } from './chunk-B4U5XI4F.js';
4
+ import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-ALCZ2SEW.js';
5
+ import { buildRefusalReason } from './chunk-OWEJP5HJ.js';
6
+ import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-L6CZTRNW.js';
7
+ import { signingFetchFor } from './chunk-VRWZNI6U.js';
8
+ import { signerFor } from './chunk-ENHD5PNW.js';
9
+ import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-AC6DM3S3.js';
10
10
  import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-SF2TBJBP.js';
11
11
  import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
12
12
  import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RELAY_PORT, BUILD_HOME } from './chunk-UU6FN6PZ.js';
3
+ import { RELAY_PORT, BUILD_HOME } from './chunk-NE7EG3SN.js';
4
4
  import { createServer, connect } from 'net';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-SF2TBJBP.js';
4
- import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-3Q2SEOT3.js';
4
+ import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-MT4XF5OL.js';
5
5
  import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
6
6
  import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.js';
7
7
  import { lstatSync, readFileSync } from 'fs';