@outerlayer/cli 0.38.0-next.20261109143949 → 0.38.0-next.20261110130701

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 (203) hide show
  1. package/README.md +20 -3
  2. package/dist/agent-setup-GZBGCV3K.js +40 -0
  3. package/dist/{agent-subcommand-DCOPM2NX.js → agent-subcommand-5PNHUNZZ.js} +5 -5
  4. package/dist/{artifact-link-cmd-RUGAK5EX.js → artifact-link-cmd-XOFZP7U5.js} +2 -2
  5. package/dist/{bridge-HZRJYECQ.js → bridge-RNM7OWRW.js} +8 -8
  6. package/dist/{build-3LXKCCJF.js → build-VKO7IVOQ.js} +14 -14
  7. package/dist/{build-disk-TYX6DU5R.js → build-disk-M2JYJF6R.js} +12 -12
  8. package/dist/build-info.json +1 -1
  9. package/dist/{builder-VYKWHAUQ.js → builder-HMHJ6U7C.js} +11 -11
  10. package/dist/caller-U26SATTV.js +23 -0
  11. package/dist/{check-YUKNUSAS.js → check-SJCTNS7N.js} +60 -60
  12. package/dist/{chunk-5OBQBINA.js → chunk-2TXYQANG.js} +1 -1
  13. package/dist/{chunk-6EN72I2O.js → chunk-2WNJ2MHD.js} +1 -1
  14. package/dist/{chunk-F3MEL6B6.js → chunk-3DY4DQOC.js} +5 -5
  15. package/dist/{chunk-LYWLBZ37.js → chunk-3GTAPQBG.js} +2 -2
  16. package/dist/{chunk-U463IFDK.js → chunk-3HJK7WTM.js} +8 -8
  17. package/dist/{chunk-O4Q7GPKU.js → chunk-3W5JLANR.js} +3 -3
  18. package/dist/{chunk-22QIA7SH.js → chunk-47JRSV6Y.js} +1 -1
  19. package/dist/{chunk-RVDXHF2M.js → chunk-4EJHQYVI.js} +255 -50
  20. package/dist/{chunk-KX4JKW4Z.js → chunk-5QDHJT73.js} +7 -4
  21. package/dist/{chunk-X45WDWSV.js → chunk-5QFFQCSY.js} +1 -1
  22. package/dist/{chunk-HGWDBTQ3.js → chunk-6RQP5GP5.js} +3 -3
  23. package/dist/{chunk-5TZCV6JB.js → chunk-6XMC6R4W.js} +1 -1
  24. package/dist/{chunk-T63WTVGY.js → chunk-6XROZIV6.js} +8 -8
  25. package/dist/{chunk-GECHL3NC.js → chunk-72LXVD4O.js} +4 -4
  26. package/dist/{chunk-C3K54KRU.js → chunk-735C5J6Q.js} +7 -7
  27. package/dist/{chunk-JMWCPEKP.js → chunk-7E55P2NR.js} +2 -2
  28. package/dist/{chunk-LO3PSFNT.js → chunk-AC6DM3S3.js} +1 -1
  29. package/dist/{chunk-JAURZKSE.js → chunk-ALCZ2SEW.js} +5 -5
  30. package/dist/{chunk-HUP2CGX4.js → chunk-AS4NMHJM.js} +3 -3
  31. package/dist/{chunk-CDDED64E.js → chunk-ATEMEVFF.js} +1 -1
  32. package/dist/{chunk-RMXRQ3OC.js → chunk-ATQHPT3B.js} +1 -1
  33. package/dist/{chunk-7TM2E4RI.js → chunk-B4U5XI4F.js} +69 -9
  34. package/dist/{chunk-2DVQHK37.js → chunk-B5Z4VA4Q.js} +1 -1
  35. package/dist/{chunk-LIH6CIVB.js → chunk-BCQFMAGM.js} +3 -3
  36. package/dist/{chunk-LIMJRKIU.js → chunk-BTH6HTE5.js} +5 -5
  37. package/dist/{chunk-WGC7UFRM.js → chunk-C2PZOLN7.js} +3 -2
  38. package/dist/{chunk-IG5ZZG7R.js → chunk-C574RHGN.js} +3 -3
  39. package/dist/{chunk-4LUHKCDO.js → chunk-CXXQQST7.js} +26 -15
  40. package/dist/{chunk-4K2EMRJP.js → chunk-DKDBMMX7.js} +6 -6
  41. package/dist/{chunk-DX27B42J.js → chunk-EHPKACA7.js} +1 -1
  42. package/dist/{chunk-RVYMYTXX.js → chunk-ENHD5PNW.js} +1 -1
  43. package/dist/{chunk-EGKYININ.js → chunk-F2ADK2KB.js} +5 -5
  44. package/dist/{chunk-GVK7AKFX.js → chunk-FGBBGUM4.js} +10 -8
  45. package/dist/{chunk-HE53NIRE.js → chunk-FXVHF6RX.js} +54 -4
  46. package/dist/{chunk-H3YHAO7L.js → chunk-GJMLLXZJ.js} +1 -1
  47. package/dist/{chunk-4EQQS3VJ.js → chunk-HDEYRLWK.js} +1 -1
  48. package/dist/{chunk-G7HNRAXN.js → chunk-HJK2KI3Q.js} +16 -16
  49. package/dist/{chunk-2J3X2Z4F.js → chunk-I2N427GS.js} +8 -8
  50. package/dist/{chunk-NFZMENCY.js → chunk-I45HTSSA.js} +1 -1
  51. package/dist/{chunk-2XEQCSCQ.js → chunk-IGO766M6.js} +4 -4
  52. package/dist/{chunk-TNAUQADA.js → chunk-ITOIM3WV.js} +1 -1
  53. package/dist/{chunk-CCEP5WBI.js → chunk-IVB6A3I7.js} +13 -11
  54. package/dist/{chunk-SLR6QAOE.js → chunk-L32O52SH.js} +1 -1
  55. package/dist/{chunk-TTG6Y7G7.js → chunk-L6CZTRNW.js} +2 -2
  56. package/dist/{chunk-4OD45RBP.js → chunk-LGJ56FCM.js} +11 -2
  57. package/dist/{chunk-N2QYP3NQ.js → chunk-MBPBYMHU.js} +565 -16
  58. package/dist/{chunk-X56UUEHE.js → chunk-MSARYPFD.js} +12 -3
  59. package/dist/{chunk-OKELGJNN.js → chunk-MT4XF5OL.js} +3 -3
  60. package/dist/{chunk-QP6SPQU5.js → chunk-NE7EG3SN.js} +6 -6
  61. package/dist/{chunk-JKRVSEK7.js → chunk-OEWSICWM.js} +8 -8
  62. package/dist/{chunk-DEWD22FA.js → chunk-OI4ZV7MJ.js} +1 -1
  63. package/dist/{chunk-IJ4DF5QS.js → chunk-OK4RSIB2.js} +1 -1
  64. package/dist/{chunk-PM4YDVAX.js → chunk-OWEJP5HJ.js} +1 -1
  65. package/dist/{chunk-Z4R73UUH.js → chunk-PA6FKP5B.js} +7 -7
  66. package/dist/{chunk-KFHF3GBH.js → chunk-QFQ2UNZU.js} +6 -6
  67. package/dist/{chunk-D7KYG37D.js → chunk-QGUCHNSQ.js} +82 -16
  68. package/dist/{chunk-OYBBYENC.js → chunk-QNHBJU74.js} +8 -8
  69. package/dist/{chunk-LOG4LBUY.js → chunk-RBLXGO5K.js} +2 -2
  70. package/dist/{chunk-KIYP5TML.js → chunk-SBPMDO47.js} +1 -1
  71. package/dist/{chunk-6JW2L7UV.js → chunk-SKGUS2CB.js} +11 -11
  72. package/dist/{chunk-NHT7RHAI.js → chunk-TD6DN5LU.js} +3 -3
  73. package/dist/{chunk-TFR6S7ZB.js → chunk-TUEEGFAQ.js} +10 -10
  74. package/dist/{chunk-ZWWU7COR.js → chunk-TUSIYONR.js} +1 -1
  75. package/dist/{chunk-UCDCPQXU.js → chunk-TW2V2IQ4.js} +1 -1
  76. package/dist/{chunk-GTKR2YEZ.js → chunk-UCUBQWJC.js} +1 -1
  77. package/dist/{chunk-EI6JYZ42.js → chunk-UUSSRXUJ.js} +3 -3
  78. package/dist/{chunk-OPGF3FUY.js → chunk-VRWZNI6U.js} +2 -2
  79. package/dist/{chunk-B3ILHK4Q.js → chunk-VU5PPWIQ.js} +8 -8
  80. package/dist/{chunk-LA5UO6LI.js → chunk-WH2QUYXH.js} +5 -4
  81. package/dist/{chunk-HW7QPCOP.js → chunk-WVMKXDOW.js} +148 -53
  82. package/dist/{chunk-LLVBDIQJ.js → chunk-XAR2CJFV.js} +7 -7
  83. package/dist/{chunk-BFWZGLUU.js → chunk-XCTE5S2C.js} +1 -1
  84. package/dist/{chunk-NR3FDUWS.js → chunk-XFODM3V7.js} +7 -7
  85. package/dist/{chunk-BDTFO5S7.js → chunk-XFU37HIM.js} +3 -3
  86. package/dist/{chunk-Q6ANHBJK.js → chunk-YO2NPS66.js} +1 -1
  87. package/dist/chunk-YOAJLD2D.js +270 -0
  88. package/dist/{chunk-MMSFADKC.js → chunk-YZQYTOCR.js} +1 -1
  89. package/dist/{claude-launcher-YDSG5XIN.js → claude-launcher-WMIUTAXY.js} +8 -8
  90. package/dist/{cli-7VKJRQWW.js → cli-R5SJT3YL.js} +233 -156
  91. package/dist/{cli-update-notice-AWYJ4A7R.js → cli-update-notice-OC4SOSZE.js} +2 -2
  92. package/dist/{command-3WAJBJWX.js → command-LWMX6I7W.js} +55 -54
  93. package/dist/{config-O2LJAZJZ.js → config-ZRGYLVDX.js} +13 -13
  94. package/dist/{connect-cmd-3DBWVCUL.js → connect-cmd-MZXTWM4R.js} +15 -15
  95. package/dist/{container-start-T4GH4WLX.js → container-start-VQR5ERZE.js} +53 -52
  96. package/dist/{context-cleanup-Z23RX7JT.js → context-cleanup-Z3HZZZXW.js} +5 -5
  97. package/dist/{context-show-cmd-OGRCR5OT.js → context-show-cmd-SCOVPVDM.js} +16 -16
  98. package/dist/{control-plane-launch-JZPULKCL.js → control-plane-launch-MWZHJ4G5.js} +16 -16
  99. package/dist/{demo-record-cmd-YPWPHDAN.js → demo-record-cmd-4RVSWVMK.js} +9 -9
  100. package/dist/{demo-voice-cmd-TNZ2G5CJ.js → demo-voice-cmd-PGM5JPCQ.js} +24 -24
  101. package/dist/{dist-OMJJT636.js → dist-XEPPXF4M.js} +2 -2
  102. package/dist/docker-25F2KOBJ.js +20 -0
  103. package/dist/{doctor-KHAB6YWH.js → doctor-3QJLCHQY.js} +55 -54
  104. package/dist/emit-artifact-cmd-Z4SHPKFT.js +44 -0
  105. package/dist/{emit-cmd-3YOUQCID.js → emit-cmd-NHMZ4M5S.js} +8 -8
  106. package/dist/emit-criteria-cmd-HCN3DOJM.js +35 -0
  107. package/dist/{emit-demo-cmd-3UBPYRAM.js → emit-demo-cmd-NOSQTOES.js} +24 -24
  108. package/dist/emit-finding-cmd-YXR3ZVCJ.js +36 -0
  109. package/dist/{emit-result-cmd-KRUV7V74.js → emit-result-cmd-Z7MBE37R.js} +22 -22
  110. package/dist/emit-step-cmd-JOSYDSEO.js +35 -0
  111. package/dist/{exec-client-WJLO2KWS.js → exec-client-SZRXXKJ5.js} +9 -9
  112. package/dist/find-unit-3RHC4375.js +24 -0
  113. package/dist/{findings-cmd-3JP4GYD3.js → findings-cmd-NGFY25WZ.js} +20 -20
  114. package/dist/{fleet-readiness-U4IZZV52.js → fleet-readiness-NWIVQQ4P.js} +16 -16
  115. package/dist/governing-source-DNWVPRXP.js +41 -0
  116. package/dist/guest-init-T7QJW2AJ.js +20 -0
  117. package/dist/{hook-fast-2ENS5AKU.js → hook-fast-ECQBMESE.js} +3 -3
  118. package/dist/{hook-install-JTYPE5ZQ.js → hook-install-MBMG3G6B.js} +5 -5
  119. package/dist/host-checks-EHSA6FLE.js +80 -0
  120. package/dist/host-key-6SMJUTJ2.js +18 -0
  121. package/dist/{image-tag-EX2R462S.js → image-tag-OCVY4W5D.js} +9 -9
  122. package/dist/index.js +4 -4
  123. package/dist/{init-7F2KP6XU.js → init-ETG7XYFQ.js} +51 -50
  124. package/dist/init-F7NB7GBW.js +80 -0
  125. package/dist/{init-agent-RJSMNEWD.js → init-agent-WEYGBAII.js} +51 -50
  126. package/dist/{init-cmd-F72BWVFC.js → init-cmd-KGM7TN6Z.js} +29 -29
  127. package/dist/{init-update-ZWSICDTJ.js → init-update-EUJ4264S.js} +26 -26
  128. package/dist/install-cmd-HWG6LJX5.js +21 -0
  129. package/dist/{layout-4FLIBRPO.js → layout-CGE4KWGO.js} +5 -5
  130. package/dist/{login-browser-ZEOXKIQ2.js → login-browser-G7WNR74C.js} +2 -2
  131. package/dist/{logs-BWGJ2BVT.js → logs-TKWJ4S4W.js} +8 -8
  132. package/dist/loop-K3QREUHK.js +90 -0
  133. package/dist/machine-5GTYN2LP.js +80 -0
  134. package/dist/{machine-skills-UEQA3AUX.js → machine-skills-CXA57QHE.js} +5 -5
  135. package/dist/{mcp-install-cmd-DBKKGLHW.js → mcp-install-cmd-6IGK65DV.js} +5 -5
  136. package/dist/{mcp-serve-cmd-LFXU5UGJ.js → mcp-serve-cmd-DVE5XP2U.js} +11 -11
  137. package/dist/{paths-CSZZQK3X.js → paths-VOWYUJLZ.js} +8 -8
  138. package/dist/pending-35ML3JE5.js +18 -0
  139. package/dist/{pidfile-TTIUEDXW.js → pidfile-MFP6B2KV.js} +9 -9
  140. package/dist/{record-U7DU6IVT.js → record-AWCJ3LTG.js} +9 -9
  141. package/dist/{relay-KZTGUSFJ.js → relay-YVZM5M6B.js} +6 -6
  142. package/dist/{relay-protocol-LG4J5K63.js → relay-protocol-MNWITORT.js} +6 -6
  143. package/dist/run-cmd-MBH5Z2UL.js +114 -0
  144. package/dist/{runner-agents-32J743FJ.js → runner-agents-L3PLYFWJ.js} +5 -5
  145. package/dist/runner-env-IHWYZ3B6.js +24 -0
  146. package/dist/{runner-identity-VQCIKNBK.js → runner-identity-E2XKIJNB.js} +11 -11
  147. package/dist/{runner-key-TFFPQCGE.js → runner-key-3AHJX75Z.js} +51 -50
  148. package/dist/session-sender-IS6S7PBC.js +44 -0
  149. package/dist/{spec-cmd-RQFIJ75J.js → spec-cmd-ZLDYL4N5.js} +21 -21
  150. package/dist/{starter-pack-LO3D6CPP.js → starter-pack-XINCCMDN.js} +6 -6
  151. package/dist/state-NIA6XT7D.js +18 -0
  152. package/dist/{status-KGZWBU26.js → status-GZ7KAIMH.js} +51 -50
  153. package/dist/{sync-cmd-4RSCWFAF.js → sync-cmd-3YZ4IB3T.js} +22 -22
  154. package/dist/update-steps-XY46I7FV.js +81 -0
  155. package/dist/{watch-NH5QZJLE.js → watch-LIIODJ5U.js} +22 -22
  156. package/dist/{work-claim-cmd-FNE2ZMVG.js → work-claim-cmd-GWBWIZ43.js} +25 -25
  157. package/dist/work-cmd-CJWTGOU5.js +33 -0
  158. package/dist/work-comment-cmd-RFVCNEET.js +39 -0
  159. package/dist/{work-demo-cmd-56C6JQD3.js → work-demo-cmd-Q2GKJCVL.js} +18 -18
  160. package/dist/{work-launch-LWDQXLGI.js → work-launch-ODTGCNJC.js} +1 -1
  161. package/dist/{work-logs-cmd-XKVZ2UY6.js → work-logs-cmd-KZQBPU2J.js} +18 -18
  162. package/dist/{work-needs-attention-cmd-DYD3AIRU.js → work-needs-attention-cmd-L3DOYAMK.js} +18 -18
  163. package/dist/{work-no-change-cmd-QVD67UG5.js → work-no-change-cmd-SHP25CJB.js} +18 -18
  164. package/dist/{work-open-pr-cmd-3SSJPKHW.js → work-open-pr-cmd-VATPLVSL.js} +20 -20
  165. package/dist/work-pr-cmd-XBLNONT3.js +34 -0
  166. package/dist/work-proofs-cmd-T5WZG3CX.js +37 -0
  167. package/dist/{work-proofs-record-KEZ6Z4QH.js → work-proofs-record-6YF4BS3K.js} +28 -28
  168. package/dist/{work-stop-cmd-4KNMURDC.js → work-stop-cmd-BLOSL24H.js} +18 -18
  169. package/package.json +2 -2
  170. package/skill-pack/maintained/outerlayer-amend/SKILL.md +1 -0
  171. package/skill-pack/maintained/outerlayer-amend/references/attachments.md +23 -0
  172. package/skill-pack/maintained/outerlayer-build/SKILL.md +5 -0
  173. package/skill-pack/maintained/outerlayer-cli/SKILL.md +9 -0
  174. package/skill-pack/maintained/outerlayer-run/SKILL.md +49 -0
  175. package/skill-pack/shipped.json +2 -0
  176. package/skill-pack/template/spec/SKILL.md +10 -11
  177. package/skill-pack/template/writing-specs/SKILL.md +18 -22
  178. package/dist/agent-setup-MLSWF7RF.js +0 -40
  179. package/dist/caller-VU7QBFHQ.js +0 -23
  180. package/dist/chunk-UNA4YIHE.js +0 -128
  181. package/dist/docker-MOESJVCB.js +0 -20
  182. package/dist/emit-artifact-cmd-W7YBXLA7.js +0 -44
  183. package/dist/emit-criteria-cmd-KZW275Q2.js +0 -35
  184. package/dist/emit-finding-cmd-NL6H2PBJ.js +0 -36
  185. package/dist/emit-step-cmd-SHBIO2JI.js +0 -35
  186. package/dist/find-unit-YNIILXQK.js +0 -24
  187. package/dist/governing-source-VZFU65KP.js +0 -41
  188. package/dist/guest-init-HIKD3MHJ.js +0 -20
  189. package/dist/host-checks-HZLHQ6WH.js +0 -79
  190. package/dist/host-key-V2VVCBGR.js +0 -18
  191. package/dist/init-XTTWPX6J.js +0 -79
  192. package/dist/install-cmd-LX76Y7NB.js +0 -21
  193. package/dist/loop-O5JBFZXP.js +0 -90
  194. package/dist/machine-LGJSYGQS.js +0 -79
  195. package/dist/pending-BHRSEFXV.js +0 -18
  196. package/dist/runner-env-RGYTHURZ.js +0 -24
  197. package/dist/session-sender-3VFTMIM3.js +0 -44
  198. package/dist/state-IH6JOEJZ.js +0 -18
  199. package/dist/update-steps-3LU3NZQL.js +0 -80
  200. package/dist/work-cmd-32J5UQJO.js +0 -33
  201. package/dist/work-comment-cmd-ZUZEAIIH.js +0 -38
  202. package/dist/work-pr-cmd-DF6Q5XHU.js +0 -34
  203. package/dist/work-proofs-cmd-2XWS5N2R.js +0 -37
@@ -1,45 +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-LIH6CIVB.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';
4
5
  import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
5
6
  import { zodProblem } from './chunk-I3LTIAOR.js';
6
- import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-EGKYININ.js';
7
- import { upgradedStarterText } from './chunk-LIMJRKIU.js';
8
- import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-EI6JYZ42.js';
9
- import { writeDockerClientConfig } from './chunk-SLR6QAOE.js';
10
- import { senderPidfile } from './chunk-GVK7AKFX.js';
11
- import { installScrubContext } from './chunk-4LUHKCDO.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';
12
13
  import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
13
- import { runnerImageVersion } from './chunk-6EN72I2O.js';
14
- import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-X56UUEHE.js';
14
+ import { runnerImageVersion } from './chunk-2WNJ2MHD.js';
15
+ import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-MSARYPFD.js';
15
16
  import { receiveFiles } from './chunk-NN33FYXG.js';
16
- import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-LLVBDIQJ.js';
17
- import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-GECHL3NC.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';
18
19
  import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
19
20
  import { currentCliBuild } from './chunk-OGFGZQA3.js';
20
- import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-BFWZGLUU.js';
21
- import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-NHT7RHAI.js';
22
- import { describeCallFailure, shortClaim, retrySend, resolveGoverningSource, prefetchGovernedContext, refusalCode, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, keepStagedContext, pinnedSourceOf, WORKFLOW_PERMISSION_REASON, shimScript, controlPlaneTokenFailure } from './chunk-CCEP5WBI.js';
23
- import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-7TM2E4RI.js';
24
- import { runnerCredentialProblem, builtinKind, keyRunnerFactory, sandboxSizeOf, networkOf, sandboxTimeLimitMinutes, DEFAULT_SETUP_MINUTES, optionalEgress, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-KX4JKW4Z.js';
25
- import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-LOG4LBUY.js';
26
- 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-2J3X2Z4F.js';
27
- import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-5OBQBINA.js';
28
- import { sanitizeTerminal, planArtifactUpload } from './chunk-2DVQHK37.js';
29
- import { sharedSkillNames, skillConflictMessage } from './chunk-TTG6Y7G7.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';
30
31
  import { readCloudConfig } from './chunk-HWVMRETT.js';
31
- import { signerFor } from './chunk-RVYMYTXX.js';
32
- 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-LO3PSFNT.js';
33
- 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-QP6SPQU5.js';
34
- 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-LA5UO6LI.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';
35
36
  import { versionAtLeast } from './chunk-SF2TBJBP.js';
36
- 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-GTKR2YEZ.js';
37
- import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-OKELGJNN.js';
38
- import { MAINTAINED_SKILLS } from './chunk-CDDED64E.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
+ import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.js';
39
40
  import { resolveVersion } from './chunk-RA3O54FC.js';
40
41
  import { homeFromEnv } from './chunk-352DHUTP.js';
41
- import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-N2QYP3NQ.js';
42
- 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';
43
44
  import { randomUUID, randomBytes, createHash } from 'crypto';
44
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';
45
46
  import { join, dirname, isAbsolute, delimiter, basename, sep, relative, resolve } from 'path';
@@ -1588,6 +1589,79 @@ function createLeaseChannel(valueMs) {
1588
1589
  };
1589
1590
  }
1590
1591
 
1592
+ // src/runner/run-job.ts
1593
+ function runIsolation(config) {
1594
+ if (config.fleet === true || config.managed === true || !config.queues.includes("implement")) return void 0;
1595
+ if (isBuiltinContainer(config.hooks.provision)) return "container";
1596
+ if (isBuiltinVm(config.hooks.provision) || isBuiltinSandbox(config.hooks.provision)) return "vm";
1597
+ return void 0;
1598
+ }
1599
+ function claimRepos(repos) {
1600
+ if (repos === void 0 || (repos.include?.length ?? 0) === 0 && (repos.exclude?.length ?? 0) === 0) return void 0;
1601
+ const bare = (pattern) => pattern.replace(/^github\.com\//i, "");
1602
+ return { include: (repos.include ?? []).map(bare), exclude: (repos.exclude ?? []).map(bare) };
1603
+ }
1604
+ function parseClaim(data) {
1605
+ const run = data.run;
1606
+ const runKey = data.runKey;
1607
+ if (run === null || run === void 0 || typeof run !== "object") return { kind: "none" };
1608
+ if (typeof run.id !== "string" || typeof run.repository !== "string" || typeof run.instructions !== "string" || typeof run.issuesLeft !== "number" || typeof run.timeLimitSeconds !== "number" || typeof runKey !== "string" || runKey === "") {
1609
+ return { kind: "malformed", reason: "the gateway's answer to the run claim is missing a field the runner needs; upgrade the runner or the gateway" };
1610
+ }
1611
+ return {
1612
+ kind: "claimed",
1613
+ run: { id: run.id, automationId: typeof run.automationId === "string" ? run.automationId : "", repository: run.repository, instructions: run.instructions, issuesLeft: run.issuesLeft, timeLimitSeconds: run.timeLimitSeconds, leaseExpiresAt: typeof run.leaseExpiresAt === "string" ? run.leaseExpiresAt : "" },
1614
+ runKey
1615
+ };
1616
+ }
1617
+ async function claimRun(input) {
1618
+ const { config } = input;
1619
+ const repos = claimRepos(config.repos);
1620
+ const { data } = await postJson(
1621
+ config.url,
1622
+ "/v1/schedule-runs/claim",
1623
+ config.apiKey,
1624
+ keyRunnerFactory(config),
1625
+ {
1626
+ host: config.host,
1627
+ runnerProtocol: RUNNER_PROTOCOL,
1628
+ cliVersion: input.cliVersion,
1629
+ isolation: input.isolation,
1630
+ seconds: LEASE_SECONDS,
1631
+ ...repos === void 0 ? {} : { repos },
1632
+ ...input.hostKey === void 0 ? {} : { hostKey: input.hostKey }
1633
+ },
1634
+ input.fetchImpl,
1635
+ void 0,
1636
+ input.signer
1637
+ );
1638
+ return parseClaim(data);
1639
+ }
1640
+ function releaseOutcomeOf(outcome) {
1641
+ if (outcome === "ok") return "ended";
1642
+ if (outcome === "timed_out") return "timed_out";
1643
+ return "failed";
1644
+ }
1645
+ async function renewRun(config, runId, fetchImpl, timeoutMs) {
1646
+ try {
1647
+ await postJson(config.url, `/v1/schedule-runs/${runId}/renew`, config.apiKey, config.appId, { seconds: LEASE_SECONDS }, fetchImpl, timeoutMs, await signerFor(config.configPath));
1648
+ return "renewed";
1649
+ } catch (err) {
1650
+ if (err instanceof WorkCommandError && isSignatureRefusal(err.code)) return "retry_later";
1651
+ if (err instanceof WorkCommandError && !err.retryable) return "lease_lost";
1652
+ return "retry_later";
1653
+ }
1654
+ }
1655
+ async function releaseRun(config, runId, outcome, fetchImpl) {
1656
+ const { data } = await postJson(config.url, `/v1/schedule-runs/${runId}/release`, config.apiKey, config.appId, { outcome: releaseOutcomeOf(outcome) }, fetchImpl, void 0, await signerFor(config.configPath));
1657
+ return { state: typeof data.state === "string" ? data.state : void 0 };
1658
+ }
1659
+ var RUN_PROMPT = "/outerlayer-run";
1660
+ function runCommandOf(config, agents = defaultAgents()) {
1661
+ if (config.commands.run !== void 0) return config.commands.run;
1662
+ return jobAgent({ command: config.commands.implement }, agents)?.adapter.headless?.commandLine(RUN_PROMPT, "implement");
1663
+ }
1664
+
1591
1665
  // src/runner/container/agent-user.ts
1592
1666
  var ADDED_USER = "ol-agent";
1593
1667
  var RELAY_REFUSAL = `the agent's user cannot be \`${RELAY_USER}\``;
@@ -3744,7 +3818,7 @@ async function provisionSandbox(input) {
3744
3818
  } catch (err) {
3745
3819
  return fail(err instanceof SandboxError ? describeSandboxError(err) : describeCallFailure(err));
3746
3820
  }
3747
- const governing = await resolveGoverningSource({ config, repository, fetchImpl: input.fetchImpl });
3821
+ const governing = input.queue === "run" ? SELF_GOVERNED : await resolveGoverningSource({ config, repository, fetchImpl: input.fetchImpl });
3748
3822
  if (!governing.ok) return fail(governing.reason);
3749
3823
  const governingSource = governing.source;
3750
3824
  const controlPlaneUrl = (controlPlane) => runtime.remoteFor?.(controlPlane) ?? `${runtime.github.gitUrl}/${controlPlane}.git`;
@@ -3783,6 +3857,7 @@ async function provisionSandbox(input) {
3783
3857
  const env = buildEnvironment({
3784
3858
  config,
3785
3859
  item: item.number,
3860
+ ...input.queue === "run" ? { run: true } : {},
3786
3861
  itemKey,
3787
3862
  repository,
3788
3863
  repositories,
@@ -3832,7 +3907,7 @@ async function provisionSandbox(input) {
3832
3907
  environment.credentials = tokens.used();
3833
3908
  let services;
3834
3909
  try {
3835
- const gitRemote = gitRemoteFor(runtime, { repositories, tokens, buildDir: buildDir2, log: (line2) => log.line(`${tag} ${line2}`) });
3910
+ const gitRemote = gitRemoteFor(runtime, { repositories, tokens, buildDir: buildDir2, log: (line2) => log.line(`${tag} ${line2}`), ...input.queue === "run" ? { readOnly: true } : {} });
3836
3911
  services = await startServicesFor(runtime, config, buildDir2, jobDir, itemKey, true, gitRemote, "stream", input.leaseExpiryMs === void 0 ? void 0 : leaseFor(runtime, buildId, input.leaseExpiryMs), void 0, (line2) => log.line(`${tag} ${line2}`));
3837
3912
  runtime.tunnels.set(buildId, services);
3838
3913
  } catch (err) {
@@ -4056,6 +4131,7 @@ async function runCliInSandbox(input, argv, logName) {
4056
4131
  const env = buildEnvironment({
4057
4132
  config: claimCalls(input.config, job),
4058
4133
  item: job.item,
4134
+ ...job.queue === "run" ? { run: true } : {},
4059
4135
  itemKey: job.itemKey,
4060
4136
  branch: job.branch,
4061
4137
  repository: state.repository,
@@ -4996,7 +5072,7 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
4996
5072
  } catch (err) {
4997
5073
  return fail(err instanceof AssetError ? err.message : `the microVM's assets could not be had: ${describeCallFailure(err)}`);
4998
5074
  }
4999
- const governing = await resolveGoverningSource({ config, repository, fetchImpl: input.fetchImpl });
5075
+ const governing = input.queue === "run" ? SELF_GOVERNED : await resolveGoverningSource({ config, repository, fetchImpl: input.fetchImpl });
5000
5076
  if (!governing.ok) return fail(governing.reason);
5001
5077
  const governingSource = governing.source;
5002
5078
  const controlPlaneUrl = (controlPlane) => runtime.remoteFor?.(controlPlane) ?? `${runtime.github.gitUrl}/${controlPlane}.git`;
@@ -5074,6 +5150,7 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
5074
5150
  const envInput = {
5075
5151
  config,
5076
5152
  item: item.number,
5153
+ ...input.queue === "run" ? { run: true } : {},
5077
5154
  itemKey,
5078
5155
  repository,
5079
5156
  repositories,
@@ -5146,7 +5223,7 @@ async function provisionMicroVmOnce(input, allowRestore, itemDiskFailed) {
5146
5223
  makeBuildsDirPrivate(buildDir2);
5147
5224
  let services;
5148
5225
  try {
5149
- const gitRemote = gitRemoteFor(runtime, { repositories, tokens, buildDir: buildDir2, organizationId: input.organizationId, log: (line2) => log.line(`${tag} ${line2}`) });
5226
+ const gitRemote = gitRemoteFor(runtime, { repositories, tokens, buildDir: buildDir2, organizationId: input.organizationId, log: (line2) => log.line(`${tag} ${line2}`), ...input.queue === "run" ? { readOnly: true } : {} });
5150
5227
  services = await startServicesFor(runtime, config, buildDir2, jobDir, itemKey, true, gitRemote, "socket", void 0, void 0, (line2) => log.line(`${tag} ${line2}`));
5151
5228
  runtime.tunnels.set(buildId, services);
5152
5229
  } catch (err) {
@@ -5440,6 +5517,7 @@ function vmExecFor(input, argv) {
5440
5517
  const built = buildEnvironment({
5441
5518
  config: claimCalls(input.config, input.job),
5442
5519
  item: input.job.item,
5520
+ ...input.job.queue === "run" ? { run: true } : {},
5443
5521
  itemKey: input.job.itemKey,
5444
5522
  branch: input.job.branch,
5445
5523
  repository: state.repository,
@@ -5480,6 +5558,7 @@ async function startMicroVmCommand(input) {
5480
5558
  const env = withExtraEnv(buildEnvironment({
5481
5559
  config: claimCalls(input.config, input.job),
5482
5560
  item: input.job.item,
5561
+ ...input.job.queue === "run" ? { run: true } : {},
5483
5562
  itemKey: input.job.itemKey,
5484
5563
  branch: input.job.branch,
5485
5564
  repository: state.repository,
@@ -5535,6 +5614,7 @@ async function runCliInMicroVm(input, argv, logName, goneReason2) {
5535
5614
  const env = buildEnvironment({
5536
5615
  config: claimCalls(input.config, job),
5537
5616
  item: job.item,
5617
+ ...job.queue === "run" ? { run: true } : {},
5538
5618
  itemKey: job.itemKey,
5539
5619
  branch: job.branch,
5540
5620
  repository: state.repository,
@@ -7068,6 +7148,9 @@ async function startSender(input) {
7068
7148
  return void 0;
7069
7149
  }
7070
7150
  }
7151
+ function pidfileKey(job) {
7152
+ return job.queue === "run" ? String(job.item) : Number(job.item);
7153
+ }
7071
7154
  function launchFor(config, job, jobDir, deps) {
7072
7155
  if (job.microvm !== void 0) {
7073
7156
  const runtime = deps.runtime ?? createContainerRuntime();
@@ -7090,7 +7173,7 @@ async function restartSender(input) {
7090
7173
  const state = job.container;
7091
7174
  if (state !== void 0 && job.itemKey !== void 0) {
7092
7175
  const runtime = deps.runtime ?? createContainerRuntime();
7093
- const pidfile = senderPidfile(BUILD_HOME2, Number(job.item));
7176
+ const pidfile = senderPidfile(BUILD_HOME2, pidfileKey(job));
7094
7177
  const sleep = deps.sleep ?? ((ms) => new Promise((resolve2) => setTimeout(resolve2, ms)));
7095
7178
  const running = async () => {
7096
7179
  const probe = await runtime.host.exec({ container: state.container, user: state.agentUser ?? ADDED_USER, env: { literals: {}, passed: {} }, argv: ["/bin/sh", "-c", senderAliveScript(pidfile)] });
@@ -7156,8 +7239,8 @@ async function stopSender(input) {
7156
7239
  if (sender === void 0) return;
7157
7240
  const tag = `${itemTag(job)}`;
7158
7241
  const sleep = deps.sleep ?? ((ms) => new Promise((resolve2) => setTimeout(resolve2, ms)));
7159
- const inContainer = job.container === void 0 ? void 0 : { state: job.container, runtime: deps.runtime ?? createContainerRuntime(), pidfile: senderPidfile(BUILD_HOME2, Number(job.item)) };
7160
- const inGuest = job.microvm === void 0 ? void 0 : { state: job.microvm, runtime: deps.runtime ?? createContainerRuntime(), pidfile: senderPidfile(BUILD_HOME2, Number(job.item)) };
7242
+ const inContainer = job.container === void 0 ? void 0 : { state: job.container, runtime: deps.runtime ?? createContainerRuntime(), pidfile: senderPidfile(BUILD_HOME2, pidfileKey(job)) };
7243
+ const inGuest = job.microvm === void 0 ? void 0 : { state: job.microvm, runtime: deps.runtime ?? createContainerRuntime(), pidfile: senderPidfile(BUILD_HOME2, pidfileKey(job)) };
7161
7244
  const signalInside = async (signal) => {
7162
7245
  if (inContainer !== void 0) return signalInContainer(inContainer.runtime, inContainer.state, inContainer.pidfile, signal).catch(() => void 0);
7163
7246
  if (inGuest !== void 0) return signalInGuest(inGuest.runtime, inGuest.state, inGuest.pidfile, signal).catch(() => void 0);
@@ -8981,6 +9064,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
8981
9064
  const jobFilePath = join(jobDirPath, "job.json");
8982
9065
  const logPath = join(jobDirPath, "command.log");
8983
9066
  const tag = `${itemTag(job)}`;
9067
+ const isRun = job.queue === "run";
8984
9068
  deps.attemptLogs?.open(job.item, jobDirPath, itemScope(job));
8985
9069
  const valuesNotHeld = (job.managedVariables?.length ?? 0) > 0 && managedBuildSettingsFor(jobDirPath) === void 0;
8986
9070
  if (job.sender !== void 0) {
@@ -9111,7 +9195,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9111
9195
  log.error(`${tag} removing an earlier attempt's check environment failed: ${describeCallFailure(err)} \xB7 continuing`);
9112
9196
  }
9113
9197
  }
9114
- if (outcome === "ok" && !job.cleanupRan && job.proofsRan !== true && !valuesNotHeld && job.workdir !== void 0 && job.itemKey !== void 0 && await declaresRecordedProof(itemCalls(config, job), job.item, deps.fetchImpl)) {
9198
+ if (outcome === "ok" && !isRun && !job.cleanupRan && job.proofsRan !== true && !valuesNotHeld && job.workdir !== void 0 && job.itemKey !== void 0 && await declaresRecordedProof(itemCalls(config, job), job.item, deps.fetchImpl)) {
9115
9199
  setStage(job, jobDirPath, "proofs");
9116
9200
  job.proofsRan = true;
9117
9201
  writeJobFile(jobFilePath, job);
@@ -9132,16 +9216,16 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9132
9216
  log.error(`${tag} the host's proof recording stopped: ${describeCallFailure(err)} \xB7 continuing`);
9133
9217
  }
9134
9218
  }
9135
- if (valuesNotHeld && outcome === "ok" && !job.cleanupRan) {
9219
+ if (valuesNotHeld && outcome === "ok" && !isRun && !job.cleanupRan) {
9136
9220
  log.error(`${tag} the host's judge and checks skipped: ${VALUES_NOT_HELD}`);
9137
9221
  await reportCodeReview(config, job, { result: "skipped", reason: "variables_lost" }, { fetchImpl: deps.fetchImpl, log, now: deps.now, sleep: deps.sleep });
9138
9222
  }
9139
- if (outcome === "ok" && !job.cleanupRan && job.sandbox !== void 0 && job.judgeRan !== true) {
9223
+ if (outcome === "ok" && !isRun && !job.cleanupRan && job.sandbox !== void 0 && job.judgeRan !== true) {
9140
9224
  job.judgeNotRun = "the host's judge and checks do not run for a build in a sandbox";
9141
9225
  log.line(`${tag} the host's judge and checks are not run for a build in a sandbox`);
9142
9226
  await reportCodeReview(config, job, { result: "skipped", reason: "sandbox" }, { fetchImpl: deps.fetchImpl, log, now: deps.now, sleep: deps.sleep });
9143
9227
  }
9144
- if (outcome === "ok" && !job.cleanupRan && job.judgeRan !== true && !valuesNotHeld && job.sandbox === void 0) {
9228
+ if (outcome === "ok" && !isRun && !job.cleanupRan && job.judgeRan !== true && !valuesNotHeld && job.sandbox === void 0) {
9145
9229
  setStage(job, jobDirPath, "judge");
9146
9230
  job.judgeRan = true;
9147
9231
  writeJobFile(jobFilePath, job);
@@ -9156,7 +9240,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9156
9240
  log.error(`${tag} the host's judge stopped: ${describeCallFailure(err)} \xB7 continuing`);
9157
9241
  }
9158
9242
  }
9159
- if (outcome === "ok" && !job.cleanupRan && job.checksRan !== true && !valuesNotHeld && job.sandbox === void 0) {
9243
+ if (outcome === "ok" && !isRun && !job.cleanupRan && job.checksRan !== true && !valuesNotHeld && job.sandbox === void 0) {
9160
9244
  setStage(job, jobDirPath, "checks");
9161
9245
  job.checksRan = true;
9162
9246
  writeJobFile(jobFilePath, job);
@@ -9289,7 +9373,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9289
9373
  writeJobFile(jobFilePath, job);
9290
9374
  }
9291
9375
  let verdictReason;
9292
- if (outcome === "ok") {
9376
+ if (outcome === "ok" && !isRun) {
9293
9377
  const decision = await settleVerdict({
9294
9378
  read: () => readItemEvaluation(itemCalls(config, job), job.item, deps.fetchImpl, job.claimId),
9295
9379
  now,
@@ -9306,7 +9390,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9306
9390
  log.error(`${tag} the command exited 0 but the item is not done: ${verdictReason}`);
9307
9391
  }
9308
9392
  }
9309
- if (config.hooks.report) {
9393
+ if (config.hooks.report && !isRun) {
9310
9394
  setStage(job, jobDirPath, "report");
9311
9395
  log.line(`${tag} report started \xB7 phase end`);
9312
9396
  const reportStartedMs = now().getTime();
@@ -9373,7 +9457,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9373
9457
  const runnerLog = valuesNotHeld ? `The runner sends no log for this attempt: ${VALUES_NOT_HELD}.
9374
9458
  ` : releaseLogFor(jobDirPath, job, config);
9375
9459
  const detail = outcome === void 0 ? { log: runnerLog } : { stage: job.endStage, exitCode: job.endExitCode, reason: job.reason, environment: job.environment, resume: job.resume, disk: job.disk, log: runnerLog };
9376
- const release = await retrySend(() => releaseLease(claimCalls(config, job), claimItem(config, job), outcome, detail, deps.fetchImpl), {
9460
+ const release = await retrySend(() => sendRelease(config, job, outcome, detail, deps.fetchImpl), {
9377
9461
  now: deps.now,
9378
9462
  sleep: deps.sleep
9379
9463
  });
@@ -9403,6 +9487,13 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9403
9487
  }
9404
9488
  return job;
9405
9489
  }
9490
+ async function sendRelease(config, job, outcome, detail, fetchImpl) {
9491
+ if (job.queue === "run") {
9492
+ await releaseRun(claimCalls(config, job), String(job.item), outcome, fetchImpl);
9493
+ return {};
9494
+ }
9495
+ return releaseLease(claimCalls(config, job), claimItem(config, job), outcome, detail, fetchImpl);
9496
+ }
9406
9497
  function egressText(record) {
9407
9498
  if (record === void 0) return "";
9408
9499
  return record.egress === void 0 ? " \xB7 tunnel counts not recorded" : ` \xB7 ${egressSummary(record.egress)}`;
@@ -9444,7 +9535,7 @@ async function retryFailedReleases(jobsDirPath, config, deps) {
9444
9535
  }
9445
9536
  const runnerLog = readScrubbedReleaseLog(dirPath) ?? releaseLogFor(dirPath, job, config);
9446
9537
  const detail = job.outcome === void 0 ? { log: runnerLog } : { stage: job.endStage, exitCode: job.endExitCode, reason: job.reason, environment: job.environment, resume: job.resume, disk: job.disk, log: runnerLog };
9447
- const release = await retrySend(() => releaseLease(claimCalls(config, job), claimItem(config, job), job.outcome, detail, deps.fetchImpl), {
9538
+ const release = await retrySend(() => sendRelease(config, job, job.outcome, detail, deps.fetchImpl), {
9448
9539
  now: deps.now,
9449
9540
  sleep: deps.sleep
9450
9541
  });
@@ -11712,7 +11803,7 @@ async function provisionContainerOnce(input, allowRestore, itemDiskFailed) {
11712
11803
  if (/docker desktop/i.test(await host.operatingSystem() ?? "") && !(runnerImageVersion(runtime.hostEnv) !== void 0 && runtime.platform === "linux")) {
11713
11804
  return fail(DOCKER_DESKTOP_REASON);
11714
11805
  }
11715
- const governing = await resolveGoverningSource({ config, repository, fetchImpl: input.fetchImpl });
11806
+ const governing = input.queue === "run" ? SELF_GOVERNED : await resolveGoverningSource({ config, repository, fetchImpl: input.fetchImpl });
11716
11807
  if (!governing.ok) return fail(governing.reason);
11717
11808
  const governingSource = governing.source;
11718
11809
  const controlPlaneUrl = (controlPlane) => runtime.remoteFor?.(controlPlane) ?? `${runtime.github.gitUrl}/${controlPlane}.git`;
@@ -11791,6 +11882,7 @@ async function provisionContainerOnce(input, allowRestore, itemDiskFailed) {
11791
11882
  const envInput = {
11792
11883
  config,
11793
11884
  item: item.number,
11885
+ ...input.queue === "run" ? { run: true } : {},
11794
11886
  itemKey,
11795
11887
  repository,
11796
11888
  repositories,
@@ -11866,7 +11958,7 @@ async function provisionContainerOnce(input, allowRestore, itemDiskFailed) {
11866
11958
  environment.credentials = tokens.used();
11867
11959
  let services;
11868
11960
  try {
11869
- const gitRemote = gitRemoteFor(runtime, { repositories, tokens, buildDir: buildDir2, log: (line2) => log.line(`${tag} ${line2}`) });
11961
+ const gitRemote = gitRemoteFor(runtime, { repositories, tokens, buildDir: buildDir2, log: (line2) => log.line(`${tag} ${line2}`), ...input.queue === "run" ? { readOnly: true } : {} });
11870
11962
  services = await startServicesFor(runtime, config, buildDir2, jobDir, itemKey, true, gitRemote, "stream", input.leaseExpiryMs === void 0 ? void 0 : leaseFor(runtime, buildId, input.leaseExpiryMs), void 0, (line2) => log.line(`${tag} ${line2}`));
11871
11963
  runtime.tunnels.set(buildId, services);
11872
11964
  } catch (err) {
@@ -12045,6 +12137,7 @@ function containerCommandExec(input) {
12045
12137
  const built = buildEnvironment({
12046
12138
  config: claimCalls(input.config, input.job),
12047
12139
  item: input.job.item,
12140
+ ...input.job.queue === "run" ? { run: true } : {},
12048
12141
  itemKey: input.job.itemKey,
12049
12142
  branch: input.job.branch,
12050
12143
  repository: state.repository,
@@ -12074,6 +12167,7 @@ function containerSenderCommand(input) {
12074
12167
  const env = buildEnvironment({
12075
12168
  config: claimCalls(input.config, input.job),
12076
12169
  item: input.job.item,
12170
+ ...input.job.queue === "run" ? { run: true } : {},
12077
12171
  itemKey: input.job.itemKey,
12078
12172
  branch: input.job.branch,
12079
12173
  repository: state.repository,
@@ -12174,7 +12268,7 @@ function leaseFor(runtime, buildId, expiryMs) {
12174
12268
  }
12175
12269
  return channel;
12176
12270
  }
12177
- async function ensureTunnel(runtime, state, jobDir, config, itemKey, branch, repositories, log, leaseExpiryMs) {
12271
+ async function ensureTunnel(runtime, state, jobDir, config, itemKey, branch, repositories, log, leaseExpiryMs, readOnly) {
12178
12272
  if (runtime.tunnels.has(state.buildId)) return;
12179
12273
  const transport = transportOf(state);
12180
12274
  if (transport === "unknown") {
@@ -12183,7 +12277,7 @@ async function ensureTunnel(runtime, state, jobDir, config, itemKey, branch, rep
12183
12277
  }
12184
12278
  const tokens = runtime.credentials.get(jobDir);
12185
12279
  const served = repositoriesOf({ repositories, repository: state.repository, branch });
12186
- const gitRemote = tokens === void 0 || served.length === 0 ? void 0 : gitRemoteFor(runtime, { repositories: served, tokens, buildDir: state.buildDir });
12280
+ const gitRemote = tokens === void 0 || served.length === 0 ? void 0 : gitRemoteFor(runtime, { repositories: served, tokens, buildDir: state.buildDir, ...readOnly === true ? { readOnly: true } : {} });
12187
12281
  const lease = transport === "exec" && leaseExpiryMs !== void 0 ? leaseFor(runtime, state.buildId, leaseExpiryMs) : void 0;
12188
12282
  if (state.stopped === true) lease?.stop();
12189
12283
  const services = await startServicesFor(runtime, config, state.buildDir, jobDir, itemKey, state.builtIns === true, gitRemote, transport === "exec" ? "stream" : "socket", lease);
@@ -12209,7 +12303,7 @@ async function runCliInContainer(input, argv, logName) {
12209
12303
  const { runtime, job } = input;
12210
12304
  const state = job.container;
12211
12305
  try {
12212
- await ensureTunnel(runtime, state, input.jobDir, input.config, job.itemKey, job.branch, job.repositories, input.log, () => leaseExpiresAtMs(job));
12306
+ await ensureTunnel(runtime, state, input.jobDir, configForJob(input.config, job), job.itemKey, job.branch, job.repositories, input.log, () => leaseExpiresAtMs(job), job.queue === "run");
12213
12307
  if (state.stopped) {
12214
12308
  const network = await ensureNetworkReady(runtime, state);
12215
12309
  if (network !== void 0) return { ok: false, reason: network };
@@ -12223,6 +12317,7 @@ async function runCliInContainer(input, argv, logName) {
12223
12317
  const env = buildEnvironment({
12224
12318
  config: claimCalls(input.config, job),
12225
12319
  item: job.item,
12320
+ ...job.queue === "run" ? { run: true } : {},
12226
12321
  itemKey: job.itemKey,
12227
12322
  branch: job.branch,
12228
12323
  repository: state.repository,
@@ -12369,7 +12464,7 @@ function containerJudgeEnvironment(input) {
12369
12464
  };
12370
12465
  return {
12371
12466
  stop: async () => {
12372
- if (input.config !== void 0) await ensureTunnel(runtime, state, input.jobDir, input.config, job.itemKey, job.branch, job.repositories, input.log);
12467
+ if (input.config !== void 0) await ensureTunnel(runtime, state, input.jobDir, configForJob(input.config, job), job.itemKey, job.branch, job.repositories, input.log, void 0, job.queue === "run");
12373
12468
  await stopContainer(runtime, state);
12374
12469
  const network = await ensureNetworkReady(runtime, state);
12375
12470
  if (network !== void 0) throw new Error(network);
@@ -13054,4 +13149,4 @@ async function runHostChecks(input) {
13054
13149
  }
13055
13150
  }
13056
13151
 
13057
- export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, CRITERIA_CHECK, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, checksIn, claimPermissionProblem, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeProbe, keepGhConfigCurrent, keptCommitsLine, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recordsProofsOnly, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
13152
+ export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, CRITERIA_CHECK, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeProbe, keepGhConfigCurrent, keptCommitsLine, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recordsProofsOnly, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runCommandOf, runHook, runHostChecks, runHousekeeping, runIsolation, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { toolsDockerfile } from './chunk-GECHL3NC.js';
4
- import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-DEWD22FA.js';
3
+ import { toolsDockerfile } from './chunk-72LXVD4O.js';
4
+ import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-OI4ZV7MJ.js';
5
5
  import { startTimeOf } from './chunk-JBJTC3UU.js';
6
- import { runnerLabelValue } from './chunk-2J3X2Z4F.js';
7
- import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-5OBQBINA.js';
8
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-LO3PSFNT.js';
9
- import { withGitConfig, tokenHeader } from './chunk-QP6SPQU5.js';
10
- import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-GTKR2YEZ.js';
6
+ import { runnerLabelValue } from './chunk-I2N427GS.js';
7
+ import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-2TXYQANG.js';
8
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-AC6DM3S3.js';
9
+ import { withGitConfig, tokenHeader } from './chunk-NE7EG3SN.js';
10
+ import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-UCUBQWJC.js';
11
11
  import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
12
12
  import { tmpdir } from 'os';
13
13
  import { join } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { EXEC_PORT } from './chunk-NHT7RHAI.js';
3
+ import { EXEC_PORT } from './chunk-TD6DN5LU.js';
4
4
  import { createConnection } from 'net';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-HW7QPCOP.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-4K2EMRJP.js';
5
- import { RunnerAlreadyRunningError, readPidFile } from './chunk-DEWD22FA.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-WVMKXDOW.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-DKDBMMX7.js';
5
+ import { RunnerAlreadyRunningError, readPidFile } from './chunk-OI4ZV7MJ.js';
6
6
  import { isSameProcess } from './chunk-JBJTC3UU.js';
7
- import { isSignatureRefusal, postJson } from './chunk-7TM2E4RI.js';
8
- import { keyRunnerFactory } from './chunk-KX4JKW4Z.js';
9
- import { signerFor } from './chunk-RVYMYTXX.js';
10
- import { pidFilePath } from './chunk-LO3PSFNT.js';
7
+ import { isSignatureRefusal, postJson } from './chunk-B4U5XI4F.js';
8
+ import { keyRunnerFactory } from './chunk-5QDHJT73.js';
9
+ import { signerFor } from './chunk-ENHD5PNW.js';
10
+ import { pidFilePath } from './chunk-AC6DM3S3.js';
11
11
  import { readFileSync } from 'fs';
12
12
 
13
13
  createRequire(import.meta.url);
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-KFHF3GBH.js';
4
- import { resolveGatewayCredentials } from './chunk-OPGF3FUY.js';
3
+ import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-QFQ2UNZU.js';
4
+ import { resolveGatewayCredentials } from './chunk-VRWZNI6U.js';
5
5
  import { readCloudConfig } from './chunk-HWVMRETT.js';
6
6
  import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
8
  import { homeFromEnv } from './chunk-352DHUTP.js';
9
- import { resolveRepoIdentity } from './chunk-N2QYP3NQ.js';
9
+ import { resolveRepoIdentity } from './chunk-MBPBYMHU.js';
10
10
 
11
11
  createRequire(import.meta.url);
12
12
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-OKELGJNN.js';
3
+ import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-MT4XF5OL.js';
4
4
  import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
5
5
  import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
6
6
  import { relative, sep, join, posix } from 'path';