@outerlayer/cli 0.38.0-next.20261111180956 → 0.38.0-next.20261111220050

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 (192) hide show
  1. package/dist/agent-setup-P77VERNT.js +40 -0
  2. package/dist/{agent-subcommand-NZFPV3MV.js → agent-subcommand-MLVQVTVU.js} +5 -5
  3. package/dist/{artifact-link-cmd-L4BXSQQP.js → artifact-link-cmd-A7SROEQS.js} +2 -2
  4. package/dist/{bridge-OBIGQXDH.js → bridge-CVHBKOFU.js} +8 -8
  5. package/dist/{build-4IYEB6OE.js → build-KVJM6PMC.js} +14 -14
  6. package/dist/{build-disk-2MOEPIZF.js → build-disk-H6ZN32KR.js} +12 -12
  7. package/dist/build-info.json +1 -1
  8. package/dist/{builder-SVI2D35R.js → builder-3LUEEVSN.js} +11 -11
  9. package/dist/caller-IMM277FA.js +23 -0
  10. package/dist/{check-36K7RSE2.js → check-V2TITR5P.js} +58 -58
  11. package/dist/{chunk-QHYCF36K.js → chunk-26BFN6DH.js} +1 -1
  12. package/dist/{chunk-36XB56GG.js → chunk-33HBGNKZ.js} +5 -5
  13. package/dist/{chunk-LVNMKOWI.js → chunk-34VR5LPD.js} +2 -2
  14. package/dist/{chunk-RHPEAVKR.js → chunk-3FN6JADD.js} +1 -1
  15. package/dist/{chunk-B5TMIK6Q.js → chunk-3LOW5W6T.js} +274 -99
  16. package/dist/{chunk-QENFVQ7O.js → chunk-3RAAAAPL.js} +7 -7
  17. package/dist/{chunk-KA4BMGBR.js → chunk-3V5B7M5Q.js} +2 -2
  18. package/dist/{chunk-RYAEP743.js → chunk-3XZ66FRV.js} +10 -10
  19. package/dist/{chunk-KIQM57WG.js → chunk-544OP3E4.js} +90 -45
  20. package/dist/{chunk-J345NEVJ.js → chunk-5FTUUXBK.js} +5 -5
  21. package/dist/{chunk-NEXKR5RR.js → chunk-5NVF5TAL.js} +6 -1
  22. package/dist/{chunk-NFPJ2XC2.js → chunk-6AORV65Z.js} +3 -3
  23. package/dist/{chunk-PGLICHNU.js → chunk-6LYKHTC2.js} +3 -3
  24. package/dist/{chunk-WV4T6ZOQ.js → chunk-6VHBQBHL.js} +2 -2
  25. package/dist/{chunk-6XORUAR7.js → chunk-7GJEQXOH.js} +1 -1
  26. package/dist/{chunk-I45HTSSA.js → chunk-A3NJSQPK.js} +1 -1
  27. package/dist/{chunk-VCNY5VAF.js → chunk-AR3SCE7R.js} +3 -3
  28. package/dist/{chunk-N3XAJZGV.js → chunk-AS3DUHKZ.js} +7 -7
  29. package/dist/{chunk-FQPGZOH3.js → chunk-AUBLZPCA.js} +1 -1
  30. package/dist/{chunk-ATEMEVFF.js → chunk-AW3N24L5.js} +1 -1
  31. package/dist/{chunk-VK3HNAZN.js → chunk-B4HUGT3L.js} +16 -16
  32. package/dist/{chunk-FUONFFTG.js → chunk-BKAUXDXK.js} +7 -7
  33. package/dist/{chunk-ONTXC6D3.js → chunk-BU4O4T7X.js} +7 -7
  34. package/dist/{chunk-N3KGXHV4.js → chunk-BUT777XB.js} +1 -1
  35. package/dist/{chunk-6XMC6R4W.js → chunk-C6OQ45AS.js} +1 -1
  36. package/dist/{chunk-DKRZZBKI.js → chunk-CAL6L5DK.js} +3 -3
  37. package/dist/{chunk-6BXJESQF.js → chunk-CJEWYQ46.js} +9 -9
  38. package/dist/{chunk-3Z5KBFBB.js → chunk-COTJ2FIL.js} +2 -2
  39. package/dist/{chunk-ZQII2ZRP.js → chunk-CPXQLO4X.js} +1 -1
  40. package/dist/{chunk-QOP2CYYY.js → chunk-CT7X6XGR.js} +14 -11
  41. package/dist/{chunk-JDOEEKPN.js → chunk-DPMUZ2QT.js} +25 -9
  42. package/dist/{chunk-MOA4PGYL.js → chunk-DULA3AYN.js} +1 -1
  43. package/dist/{chunk-3YJJ2JDV.js → chunk-E532PUGI.js} +1 -1
  44. package/dist/{chunk-BIMHESZG.js → chunk-EVME7MT6.js} +1 -1
  45. package/dist/{chunk-OPCFOIZJ.js → chunk-EWKNMUPI.js} +1 -1
  46. package/dist/{chunk-MOFT7QCR.js → chunk-F4Q4Y7ZE.js} +5 -5
  47. package/dist/{chunk-LW5RIKAV.js → chunk-FBLO2U6D.js} +1 -1
  48. package/dist/{chunk-4AEOP5PD.js → chunk-FM4OXL5V.js} +6 -6
  49. package/dist/{chunk-V64ULWCG.js → chunk-FYIISGXR.js} +10 -10
  50. package/dist/{chunk-EQZNHUEK.js → chunk-GRNA7FHI.js} +4 -4
  51. package/dist/{chunk-OKSYYMD2.js → chunk-GXYVZZO7.js} +6 -6
  52. package/dist/{chunk-MG33BM7E.js → chunk-KGDFBO3G.js} +6 -6
  53. package/dist/{chunk-4G5SYPK2.js → chunk-KUM6RRPC.js} +1 -1
  54. package/dist/{chunk-6FQSV7ZK.js → chunk-KUNRGSPX.js} +3 -3
  55. package/dist/{chunk-LKLP5YMH.js → chunk-LEIO5LD3.js} +7 -7
  56. package/dist/{chunk-KR34GXEH.js → chunk-LF4BHMEG.js} +1 -1
  57. package/dist/{chunk-HNQLZ7CK.js → chunk-LOXR7Q77.js} +23 -9
  58. package/dist/{chunk-7XORCWWZ.js → chunk-MOBYKKTR.js} +7 -7
  59. package/dist/{chunk-NJ6IJFKR.js → chunk-MRZMJPYA.js} +1 -1
  60. package/dist/{chunk-OKAAVLLW.js → chunk-MXEZN6SV.js} +4 -4
  61. package/dist/{chunk-7GUD2FIF.js → chunk-N63KZWYP.js} +1 -1
  62. package/dist/{chunk-UKEJBA5Y.js → chunk-NHYV24WJ.js} +4 -4
  63. package/dist/{chunk-SASWFX22.js → chunk-NTPBHL6U.js} +1 -1
  64. package/dist/{chunk-QMCWSBQO.js → chunk-O4BVDRKJ.js} +2 -2
  65. package/dist/{chunk-OIH2WKIK.js → chunk-PFSUX4MQ.js} +7 -7
  66. package/dist/{chunk-SIGBRVEF.js → chunk-Q3QA4DTV.js} +18 -5
  67. package/dist/{chunk-DKTXQ7XQ.js → chunk-QPSLXP6A.js} +2 -2
  68. package/dist/{chunk-F3RBGMHL.js → chunk-QR6XP6BJ.js} +1 -1
  69. package/dist/{chunk-USINHGZI.js → chunk-RIYSVN6V.js} +3 -3
  70. package/dist/{chunk-36M66QKN.js → chunk-SBZX6XP6.js} +2 -1
  71. package/dist/{chunk-VQ6ZKSNL.js → chunk-T34WBDIO.js} +1 -1
  72. package/dist/{chunk-ABRGN5OA.js → chunk-TFAAVSYJ.js} +4 -4
  73. package/dist/{chunk-UWLCJZ45.js → chunk-TNUJXYK6.js} +1 -1
  74. package/dist/{chunk-VNHCN75M.js → chunk-TYXZTMZK.js} +1 -1
  75. package/dist/{chunk-3BEMKOFH.js → chunk-U5NUHRGX.js} +1 -1
  76. package/dist/{chunk-AJ3YUM23.js → chunk-UIS6E64L.js} +1 -1
  77. package/dist/{chunk-33XLQIV4.js → chunk-UOCYI5SA.js} +3 -3
  78. package/dist/{chunk-NRTT4GVU.js → chunk-UPIXYW7Y.js} +3 -3
  79. package/dist/{chunk-QBJ7MMOT.js → chunk-V6FY4BRV.js} +16 -5
  80. package/dist/{chunk-WV43CAGI.js → chunk-VZ3T5MPT.js} +5 -5
  81. package/dist/{chunk-TUH2STQV.js → chunk-WJMA4BRG.js} +9 -9
  82. package/dist/{chunk-TJ7OVPR7.js → chunk-WR53L7RZ.js} +8 -8
  83. package/dist/{chunk-DULO2L5B.js → chunk-WVTBZX4K.js} +1 -1
  84. package/dist/{chunk-M2WESKWY.js → chunk-YRJI2ZKT.js} +4 -4
  85. package/dist/{chunk-PDPBWX67.js → chunk-ZN4444RL.js} +17 -6
  86. package/dist/{claude-launcher-GIT7VNYK.js → claude-launcher-XHIHOO4U.js} +8 -8
  87. package/dist/{cli-6ZLZKK2W.js → cli-VZUDY3VM.js} +168 -159
  88. package/dist/{cli-update-notice-OC4SOSZE.js → cli-update-notice-PCJN5ZKP.js} +2 -2
  89. package/dist/{command-KH62X2SL.js → command-TWK2QQ5J.js} +53 -53
  90. package/dist/config-JMTO5H4U.js +22 -0
  91. package/dist/connect-cmd-JPHOQZBW.js +29 -0
  92. package/dist/{container-start-PELD6YZX.js → container-start-IWW2OVWT.js} +51 -51
  93. package/dist/{context-cleanup-FIQMPC6F.js → context-cleanup-CTKOHNCW.js} +5 -5
  94. package/dist/{context-show-cmd-SOUPRIUD.js → context-show-cmd-WO6B7UUZ.js} +16 -16
  95. package/dist/{control-plane-launch-IIHRG233.js → control-plane-launch-OZLAMALE.js} +16 -16
  96. package/dist/{demo-record-cmd-PI7QDFRP.js → demo-record-cmd-47RXW75H.js} +9 -9
  97. package/dist/{demo-voice-cmd-JZOO3TL5.js → demo-voice-cmd-ENFCUFP6.js} +22 -22
  98. package/dist/{dist-JSSJSW2B.js → dist-7JDEWP5U.js} +2 -2
  99. package/dist/docker-KC5ZFIK5.js +20 -0
  100. package/dist/{doctor-XEFEPHFI.js → doctor-3XXCQPUZ.js} +53 -53
  101. package/dist/emit-artifact-cmd-5YXDBVXP.js +44 -0
  102. package/dist/{emit-cmd-QGVMVSLS.js → emit-cmd-VETPASRD.js} +8 -8
  103. package/dist/emit-criteria-cmd-5GBTQL3J.js +35 -0
  104. package/dist/{emit-demo-cmd-2CLCGPBS.js → emit-demo-cmd-2YTSDKEN.js} +22 -22
  105. package/dist/{emit-finding-cmd-GG2WT2ZN.js → emit-finding-cmd-RXR5O2RB.js} +18 -18
  106. package/dist/{emit-result-cmd-3MUFY5ES.js → emit-result-cmd-ND72YSHC.js} +20 -20
  107. package/dist/{emit-step-cmd-KHXTWZFP.js → emit-step-cmd-NXRZAW3R.js} +18 -18
  108. package/dist/{exec-client-YQCKCZGW.js → exec-client-RQ2WBQYI.js} +9 -9
  109. package/dist/find-unit-6YALHLSE.js +24 -0
  110. package/dist/{findings-cmd-OSJ2Y3IC.js → findings-cmd-OHZRCVPV.js} +18 -18
  111. package/dist/{fleet-readiness-BY7PY5FF.js → fleet-readiness-QTBZ322P.js} +16 -16
  112. package/dist/governing-source-LOIIVNWG.js +41 -0
  113. package/dist/guest-init-R3Z35NG7.js +20 -0
  114. package/dist/{hook-fast-3BGU6BF2.js → hook-fast-BEFGAPAW.js} +3 -3
  115. package/dist/{hook-install-6H6W4UM2.js → hook-install-Y6ZL3OT2.js} +5 -5
  116. package/dist/host-checks-3OKNIXBF.js +80 -0
  117. package/dist/host-key-JDLHIUNO.js +18 -0
  118. package/dist/{image-tag-IJKYPT6D.js → image-tag-BAA6APVR.js} +9 -9
  119. package/dist/index.js +4 -4
  120. package/dist/{init-RGU3LEKB.js → init-IE5IGNVE.js} +49 -49
  121. package/dist/init-LGMYM54E.js +80 -0
  122. package/dist/{init-agent-4BJN55A7.js → init-agent-YBLFXWPL.js} +49 -49
  123. package/dist/{init-cmd-ZKDF2KT5.js → init-cmd-VKCXBALQ.js} +29 -29
  124. package/dist/{init-update-D43GTUP3.js → init-update-EJS5G2XZ.js} +26 -26
  125. package/dist/install-cmd-7LUZQZMJ.js +21 -0
  126. package/dist/{layout-MBCG2IHB.js → layout-IZ6XCHGG.js} +5 -5
  127. package/dist/{login-browser-COSWHZEC.js → login-browser-LSZKECIB.js} +2 -2
  128. package/dist/{logs-VX2SXLJH.js → logs-WVO5SCTN.js} +8 -8
  129. package/dist/loop-ZMIBNWIP.js +90 -0
  130. package/dist/machine-WILRS4XJ.js +80 -0
  131. package/dist/{machine-skills-RPKQK52T.js → machine-skills-SDIQFRIX.js} +5 -5
  132. package/dist/{mcp-install-cmd-GN2K2JM3.js → mcp-install-cmd-GF2QAYQE.js} +5 -5
  133. package/dist/{mcp-serve-cmd-P34CQIBX.js → mcp-serve-cmd-RB3NBRP7.js} +11 -11
  134. package/dist/{paths-HV3G2EHE.js → paths-W2U4BYFR.js} +8 -8
  135. package/dist/pending-ZYVVCMCB.js +18 -0
  136. package/dist/{pidfile-4ZG5I7ZR.js → pidfile-ZIDS3G5J.js} +9 -9
  137. package/dist/{record-3XWPD2UP.js → record-I6XI5YWE.js} +9 -9
  138. package/dist/{relay-ZOWT4YLQ.js → relay-MUBJFLEI.js} +6 -6
  139. package/dist/{relay-protocol-FDFEVLQT.js → relay-protocol-UK2KZKGH.js} +6 -6
  140. package/dist/{run-cmd-R4EB4TKJ.js → run-cmd-KPAN5DTB.js} +18 -18
  141. package/dist/{runner-agents-3NUGNJD6.js → runner-agents-3ZKMPZ2D.js} +5 -5
  142. package/dist/runner-env-IKUFXCUV.js +24 -0
  143. package/dist/{runner-identity-F2Z3TXJ7.js → runner-identity-UMODOKXV.js} +11 -11
  144. package/dist/{runner-key-6REHHUIJ.js → runner-key-4VZCSL73.js} +50 -50
  145. package/dist/{session-sender-NMZGHC65.js → session-sender-CCXS5LKC.js} +21 -21
  146. package/dist/{spec-cmd-Z26RVBY6.js → spec-cmd-UX6VYKE6.js} +109 -22
  147. package/dist/{starter-pack-7QA7J5FT.js → starter-pack-EQL24NLF.js} +6 -6
  148. package/dist/state-MD27KY5N.js +18 -0
  149. package/dist/{status-TFHI7GW4.js → status-IRQ5N2CN.js} +49 -49
  150. package/dist/{sync-cmd-WE46ELML.js → sync-cmd-OCHEVJDU.js} +20 -20
  151. package/dist/update-steps-PCZORLEO.js +81 -0
  152. package/dist/{watch-O5BOUDHZ.js → watch-DDSNYG5M.js} +20 -20
  153. package/dist/{work-claim-cmd-35CRWPQK.js → work-claim-cmd-2YYRYOPS.js} +27 -27
  154. package/dist/work-cmd-PRMB5ETL.js +33 -0
  155. package/dist/work-comment-cmd-7SOO2JXW.js +39 -0
  156. package/dist/{work-demo-cmd-ZFZLPJHZ.js → work-demo-cmd-P7AXOVMK.js} +18 -18
  157. package/dist/{work-logs-cmd-2CGBAPNO.js → work-logs-cmd-PUE23KB5.js} +18 -18
  158. package/dist/{work-needs-attention-cmd-SXZHDR4U.js → work-needs-attention-cmd-SJ6P2V3S.js} +18 -18
  159. package/dist/{work-no-change-cmd-EFDSBICP.js → work-no-change-cmd-6FLPOK7M.js} +18 -18
  160. package/dist/{work-open-pr-cmd-272NR4QR.js → work-open-pr-cmd-FTZSIWOM.js} +19 -19
  161. package/dist/work-pr-cmd-ZOCB54YC.js +34 -0
  162. package/dist/{work-proofs-cmd-JVKT5OIL.js → work-proofs-cmd-7HOVHHCL.js} +20 -20
  163. package/dist/{work-proofs-record-YPVLTE46.js → work-proofs-record-YWUBA3IS.js} +26 -26
  164. package/dist/{work-stop-cmd-UHGV6AGA.js → work-stop-cmd-LKDWZL24.js} +18 -18
  165. package/package.json +3 -3
  166. package/skill-pack/maintained/outerlayer-amend/references/threads.md +10 -4
  167. package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +1 -1
  168. package/skill-pack/maintained/outerlayer-build/references/code-review-judge.md +15 -5
  169. package/skill-pack/maintained/outerlayer-revise/SKILL.md +68 -0
  170. package/dist/agent-setup-HXEWWT6K.js +0 -40
  171. package/dist/caller-PW7R46M7.js +0 -23
  172. package/dist/config-AOOR5BPQ.js +0 -22
  173. package/dist/connect-cmd-FIPFU4X4.js +0 -29
  174. package/dist/docker-6MPPSTR4.js +0 -20
  175. package/dist/emit-artifact-cmd-ZU7JHEYN.js +0 -44
  176. package/dist/emit-criteria-cmd-4DSDN3CZ.js +0 -35
  177. package/dist/find-unit-YT25OH3F.js +0 -24
  178. package/dist/governing-source-FQKK5RCJ.js +0 -41
  179. package/dist/guest-init-X2HLNETS.js +0 -20
  180. package/dist/host-checks-67MLG6ET.js +0 -80
  181. package/dist/host-key-KQ6JWRB4.js +0 -18
  182. package/dist/init-6WA65ARJ.js +0 -80
  183. package/dist/install-cmd-DHIVJEBO.js +0 -21
  184. package/dist/loop-2LVQY2G3.js +0 -90
  185. package/dist/machine-BW2IR5IY.js +0 -80
  186. package/dist/pending-I2EJ7TMY.js +0 -18
  187. package/dist/runner-env-JS2WDB5L.js +0 -24
  188. package/dist/state-64OMLIN4.js +0 -18
  189. package/dist/update-steps-2C54XA4K.js +0 -81
  190. package/dist/work-cmd-4NMKJHC5.js +0 -33
  191. package/dist/work-comment-cmd-4FLBLGH3.js +0 -39
  192. package/dist/work-pr-cmd-OJ7ZGDKB.js +0 -34
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { sanitizeTerminal } from './chunk-QHYCF36K.js';
4
- import { isAgentsMdLayout } from './chunk-3BEMKOFH.js';
5
- import { resolveGatewayCredentials, defaultFetch } from './chunk-DKTXQ7XQ.js';
3
+ import { sanitizeTerminal } from './chunk-26BFN6DH.js';
4
+ import { isAgentsMdLayout } from './chunk-U5NUHRGX.js';
5
+ import { resolveGatewayCredentials, defaultFetch } from './chunk-QPSLXP6A.js';
6
6
  import { versionAtLeast } from './chunk-SF2TBJBP.js';
7
7
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
8
- import { machineSkillsState, staleAgentSkills } from './chunk-QMCWSBQO.js';
8
+ import { machineSkillsState, staleAgentSkills } from './chunk-O4BVDRKJ.js';
9
9
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
10
- import { hasSymlinkComponent } from './chunk-LW5RIKAV.js';
11
- import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-PDPBWX67.js';
12
- import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.js';
10
+ import { hasSymlinkComponent } from './chunk-FBLO2U6D.js';
11
+ import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-ZN4444RL.js';
12
+ import { MAINTAINED_SKILLS } from './chunk-AW3N24L5.js';
13
13
  import { execFileSync } from 'child_process';
14
14
  import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
15
15
  import { join, dirname, posix, basename, isAbsolute, relative } from 'path';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-6BXJESQF.js';
4
- import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-DULO2L5B.js';
3
+ import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-CJEWYQ46.js';
4
+ import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-WVTBZX4K.js';
5
5
  import { spawnSync } from 'child_process';
6
6
  import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
7
7
  import { dirname, join } from 'path';
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-B5TMIK6Q.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-4AEOP5PD.js';
5
- import { getJson, WorkCommandError } from './chunk-QOP2CYYY.js';
6
- import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-QBJ7MMOT.js';
7
- import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-KA4BMGBR.js';
8
- import { ensureHostKey } from './chunk-ZQII2ZRP.js';
9
- import { sandboxSettingsFrom } from './chunk-SIGBRVEF.js';
10
- import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-NFPJ2XC2.js';
11
- import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-36M66QKN.js';
12
- import { defaultAgents } from './chunk-PDPBWX67.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-3LOW5W6T.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-FM4OXL5V.js';
5
+ import { getJson, WorkCommandError } from './chunk-CT7X6XGR.js';
6
+ import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-V6FY4BRV.js';
7
+ import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-3V5B7M5Q.js';
8
+ import { ensureHostKey } from './chunk-CPXQLO4X.js';
9
+ import { sandboxSettingsFrom } from './chunk-Q3QA4DTV.js';
10
+ import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-6AORV65Z.js';
11
+ import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-SBZX6XP6.js';
12
+ import { defaultAgents } from './chunk-ZN4444RL.js';
13
13
  import { closeSync, openSync, constants, readFileSync } from 'fs';
14
14
  import { join, dirname } from 'path';
15
15
  import { totalmem } from 'os';
@@ -1,35 +1,36 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
4
- import { reportFailedStart, fitImageBuildMemory } from './chunk-OIH2WKIK.js';
4
+ import { reportFailedStart, fitImageBuildMemory } from './chunk-PFSUX4MQ.js';
5
5
  import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
6
- import { writeFleetState } from './chunk-VNHCN75M.js';
7
- import { writePendingUpdate } from './chunk-7GUD2FIF.js';
8
- import { renderUpdateSteps } from './chunk-NRTT4GVU.js';
9
- import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-3YJJ2JDV.js';
10
- import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-RYAEP743.js';
11
- import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-OPCFOIZJ.js';
12
- import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runIsolation, runCommandOf, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-B5TMIK6Q.js';
13
- import { RUNNER_PROTOCOL } from './chunk-6XMC6R4W.js';
14
- import { RUNNER_RESERVE_BYTES } from './chunk-4AEOP5PD.js';
15
- import { RepoFilter } from './chunk-TUH2STQV.js';
6
+ import { writeFleetState } from './chunk-TYXZTMZK.js';
7
+ import { writePendingUpdate } from './chunk-N63KZWYP.js';
8
+ import { renderUpdateSteps } from './chunk-UPIXYW7Y.js';
9
+ import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-E532PUGI.js';
10
+ import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-3XZ66FRV.js';
11
+ import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-EWKNMUPI.js';
12
+ import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runIsolation, runCommandOf, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-3LOW5W6T.js';
13
+ import { RUNNER_PROTOCOL } from './chunk-C6OQ45AS.js';
14
+ import { RUNNER_RESERVE_BYTES } from './chunk-FM4OXL5V.js';
15
+ import { RepoFilter } from './chunk-WJMA4BRG.js';
16
16
  import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
17
- import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-4G5SYPK2.js';
17
+ import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-KUM6RRPC.js';
18
18
  import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
19
- import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, configForJob } from './chunk-3Z5KBFBB.js';
20
- import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-AJ3YUM23.js';
19
+ import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, configForJob } from './chunk-COTJ2FIL.js';
20
+ import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-UIS6E64L.js';
21
21
  import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
22
- import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-FUONFFTG.js';
23
- import { isSignatureRefusal, WorkCommandError, getJson, postJson, getBytes } from './chunk-QOP2CYYY.js';
24
- import { keyRunnerFactory, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-QBJ7MMOT.js';
25
- import { allocatedBytes, freeBytes, formatBytes } from './chunk-KA4BMGBR.js';
26
- import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-6BXJESQF.js';
27
- import { loadHostKey, ensureHostKey, signerFor } from './chunk-ZQII2ZRP.js';
28
- import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-DULO2L5B.js';
29
- import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-SIGBRVEF.js';
30
- import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-NFPJ2XC2.js';
31
- import { cleanAttachmentName } from './chunk-UKEJBA5Y.js';
32
- import { jobAgent, jobCommandEnv, runnerAgents } from './chunk-36M66QKN.js';
22
+ import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-BKAUXDXK.js';
23
+ import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-CT7X6XGR.js';
24
+ import { keyRunnerFactory, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-V6FY4BRV.js';
25
+ import { allocatedBytes, freeBytes, formatBytes } from './chunk-3V5B7M5Q.js';
26
+ import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-CJEWYQ46.js';
27
+ import { loadHostKey, ensureHostKey, signerFor } from './chunk-CPXQLO4X.js';
28
+ import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-WVTBZX4K.js';
29
+ import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-Q3QA4DTV.js';
30
+ import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-6AORV65Z.js';
31
+ import { cleanAttachmentName } from './chunk-NHYV24WJ.js';
32
+ import { jobAgent, jobCommandEnv, runnerAgents } from './chunk-SBZX6XP6.js';
33
+ import { defaultAgents } from './chunk-ZN4444RL.js';
33
34
  import { resolveVersion } from './chunk-RA3O54FC.js';
34
35
  import { mkdirSync, existsSync, writeFileSync, chmodSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync } from 'fs';
35
36
  import { join, dirname } from 'path';
@@ -159,7 +160,7 @@ function parseClaim(value) {
159
160
  if (typeof value !== "object" || Array.isArray(value)) return { malformed: true };
160
161
  const data = value;
161
162
  const { id, kind, workItemId, number, appId, organizationId, size } = data;
162
- if (typeof id !== "string" || id === "" || kind !== "implement" && kind !== "amend" || typeof workItemId !== "string" || workItemId === "" || typeof number !== "number" || !Number.isInteger(number) || typeof appId !== "string" || appId === "" || typeof organizationId !== "string" || organizationId === "" || size !== "small" && size !== "large") {
163
+ if (typeof id !== "string" || id === "" || kind !== "implement" && kind !== "amend" && kind !== "revise" || typeof workItemId !== "string" || workItemId === "" || typeof number !== "number" || !Number.isInteger(number) || typeof appId !== "string" || appId === "" || typeof organizationId !== "string" || organizationId === "" || size !== "small" && size !== "large") {
163
164
  return {
164
165
  malformed: true,
165
166
  ...typeof workItemId === "string" && workItemId !== "" ? { workItemId } : {},
@@ -1211,6 +1212,25 @@ async function judgeMicroVmAdoption(input) {
1211
1212
  return names2.length > 0 && names2.every((name) => inherited.has(name)) ? "adopt" : "unservable";
1212
1213
  }
1213
1214
 
1215
+ // src/runner/revise-job.ts
1216
+ var REVISE_PROMPT = "/outerlayer-revise";
1217
+ function reviseCommandOf(config, agents = defaultAgents()) {
1218
+ if (config.commands.revise !== void 0) return config.commands.revise;
1219
+ const command = config.commands.implement ?? config.commands.amend;
1220
+ if (command === void 0) return void 0;
1221
+ return jobAgent({ command }, agents)?.adapter.headless?.commandLine(REVISE_PROMPT, "revise");
1222
+ }
1223
+ function reviseIsolation(config) {
1224
+ const kind = builtinKind(config.hooks.provision);
1225
+ return kind === "own" ? void 0 : kind === "container" ? "container" : "vm";
1226
+ }
1227
+ function takesRevise(config, agents = defaultAgents()) {
1228
+ if (builtinKind(config.hooks.provision) === "own") return false;
1229
+ if ((config.repos?.include?.length ?? 0) > 0 || (config.repos?.exclude?.length ?? 0) > 0) return false;
1230
+ if (config.queues.length === 0) return false;
1231
+ return reviseCommandOf(config, agents) !== void 0;
1232
+ }
1233
+
1214
1234
  // src/runner/wait.ts
1215
1235
  var WAIT_REQUEST_TIMEOUT_MS = 7e4;
1216
1236
  var FIRST_RETRY_MS = 1e3;
@@ -1365,7 +1385,19 @@ function releaseHelper(socketPath, self, options = {}) {
1365
1385
  }
1366
1386
 
1367
1387
  // src/runner/loop.ts
1368
- var QUEUE_ORDER = ["amend", "implement"];
1388
+ var QUEUE_ORDER = ["revise", "amend", "implement"];
1389
+ var REVISE_LIST_RETRY_MS = 10 * 6e4;
1390
+ function takesQueue(state, queue) {
1391
+ return queue === "revise" ? takesRevise(state.config, state.deps.agents) : state.config.queues.includes(queue);
1392
+ }
1393
+ function queueCommand(state, queue) {
1394
+ if (queue === "run") return runCommandOf(state.config, state.deps.agents);
1395
+ if (queue === "revise") return reviseCommandOf(state.config, state.deps.agents);
1396
+ return state.config.commands[queue];
1397
+ }
1398
+ function takenQueues(state) {
1399
+ return [...state.config.queues, ...takesRevise(state.config, state.deps.agents) ? ["revise"] : []];
1400
+ }
1369
1401
  var TRACKER_REPOSITORY_HOSTS = {
1370
1402
  github: "github.com"
1371
1403
  };
@@ -1437,7 +1469,8 @@ function deriveRepo(item) {
1437
1469
  return repoPart === "" ? void 0 : `${host}/${repoPart}`;
1438
1470
  }
1439
1471
  async function listStartable(config, queue, fetchImpl, cursor = null) {
1440
- const query = queue === "amend" ? "needs=amend&startable=true" : "startable=true";
1472
+ const isolation = queue === "revise" ? reviseIsolation(config) : void 0;
1473
+ const query = queue === "amend" ? "needs=amend&startable=true" : queue === "revise" ? `needs=revise&startable=true${isolation === void 0 ? "" : `&isolation=${isolation}`}` : "startable=true";
1441
1474
  const page = await getJson(
1442
1475
  config.url,
1443
1476
  `/v1/work-items?${query}${cursor === null ? "" : `&cursor=${encodeURIComponent(cursor)}`}`,
@@ -1469,6 +1502,7 @@ function reloadConfig(state) {
1469
1502
  return;
1470
1503
  }
1471
1504
  state.config = fitForImage(state.deps, reloaded).config;
1505
+ delete state.reviseListRefusedAtMs;
1472
1506
  const timerNote = state.pollTimerSeconds !== void 0 && state.pollTimerSeconds !== reloaded.pollSeconds ? ` \xB7 still polling every ${state.pollTimerSeconds}s until the runner restarts` : "";
1473
1507
  logOf(state).line(`config re-read \xB7 ${describeConfig(reloaded)}${timerNote}`);
1474
1508
  } catch (err) {
@@ -1524,7 +1558,7 @@ async function sendTickHeartbeat(state, workRequest, wake2 = false) {
1524
1558
  }),
1525
1559
  // Left out unless a draining runner has builds to wait on, so the gateway stores null.
1526
1560
  waitingItems: waitingItems.length > 0 ? waitingItems : void 0,
1527
- takes: { queues: state.config.queues, repos: { include: state.config.repos?.include, exclude: state.config.repos?.exclude } },
1561
+ takes: { queues: takenQueues(state), repos: { include: state.config.repos?.include, exclude: state.config.repos?.exclude } },
1528
1562
  selfUpdate: selfUpdateReport(state),
1529
1563
  deliversComments: runnerDeliversComments(state.config)
1530
1564
  },
@@ -1563,7 +1597,7 @@ function applyStops(state, stops) {
1563
1597
  }
1564
1598
  const who = `stopped by ${stop.requestedByName === "" ? "someone" : stop.requestedByName} through OuterLayer`;
1565
1599
  const reason = stop.note === null ? who : `${who}: ${stop.note}`;
1566
- logOf(state).line(`${itemTag(active.job)} ${reason} \xB7 ending the build`);
1600
+ logOf(state).line(`${itemTag(active.job)} ${reason} \xB7 ending the ${active.job.queue === "revise" ? "job" : "build"}`);
1567
1601
  void endJob(state, active, "stopped", { reason }).catch((err) => {
1568
1602
  logOf(state).error(`${itemTag(active.job)} could not be stopped: ${describeCallFailure(err)}`);
1569
1603
  });
@@ -2406,7 +2440,11 @@ async function runTick(state) {
2406
2440
  attempts++;
2407
2441
  let claimed = false;
2408
2442
  for (const queue of QUEUE_ORDER) {
2409
- if (!state.config.queues.includes(queue)) continue;
2443
+ if (!takesQueue(state, queue)) continue;
2444
+ if (queue === "revise" && state.reviseListRefusedAtMs !== void 0) {
2445
+ if (nowOf(state).getTime() - state.reviseListRefusedAtMs < REVISE_LIST_RETRY_MS) continue;
2446
+ delete state.reviseListRefusedAtMs;
2447
+ }
2410
2448
  let cursor = null;
2411
2449
  do {
2412
2450
  let page;
@@ -2415,6 +2453,11 @@ async function runTick(state) {
2415
2453
  reportRepeating(state, "the work item list", void 0);
2416
2454
  state.lastWorkRequest = { ok: true };
2417
2455
  } catch (err) {
2456
+ if (queue === "revise" && cursor === null && err instanceof WorkCommandError && err.status === 400) {
2457
+ state.reviseListRefusedAtMs = nowOf(state).getTime();
2458
+ log.line("the gateway does not list drafts to revise; asking again in 10 minutes");
2459
+ break;
2460
+ }
2418
2461
  state.lastWorkRequest = workRequestFromFailure(err);
2419
2462
  reportRepeating(state, "the work item list", `list failed: ${describeCallFailure(err)} \xB7 retrying next tick`);
2420
2463
  return;
@@ -2530,7 +2573,7 @@ var CLAIM_REFUSAL_CODES = new Set(
2530
2573
  "pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
2531
2574
  );
2532
2575
  async function tryClaimAndStart(state, item, queue) {
2533
- const { postJson: postJson2 } = await import('./work-cmd-4NMKJHC5.js');
2576
+ const { postJson: postJson2 } = await import('./work-cmd-PRMB5ETL.js');
2534
2577
  const log = logOf(state);
2535
2578
  const hostKey = await loadHostKey(state.config.configPath);
2536
2579
  const claim = await retrySend(
@@ -2545,6 +2588,7 @@ async function tryClaimAndStart(state, item, queue) {
2545
2588
  seconds: LEASE_SECONDS,
2546
2589
  runnerProtocol: RUNNER_PROTOCOL,
2547
2590
  cliVersion: state.deps.cliVersion ?? resolveVersion(),
2591
+ ...queue === "revise" && reviseIsolation(state.config) !== void 0 ? { isolation: reviseIsolation(state.config) } : {},
2548
2592
  ...hostKey === void 0 ? {} : { hostKey: hostKey.hostKey }
2549
2593
  },
2550
2594
  state.deps.fetchImpl,
@@ -2642,7 +2686,7 @@ async function startClaimedBuild(state, item, queue, data, fleet) {
2642
2686
  }
2643
2687
  reportRepeating(state, "the item key", void 0);
2644
2688
  const branch = typeof data.branch === "string" && data.branch !== "" ? data.branch : void 0;
2645
- if (branch === void 0) {
2689
+ if (branch === void 0 && queue !== "revise") {
2646
2690
  const released = await releaseUntried(state, item, fleet);
2647
2691
  reportRepeating(
2648
2692
  state,
@@ -2653,13 +2697,13 @@ async function startClaimedBuild(state, item, queue, data, fleet) {
2653
2697
  }
2654
2698
  reportRepeating(state, "the branch", void 0);
2655
2699
  const identity = parseClaimIdentity(data);
2656
- const repositories = parseClaimedRepositories(data.repositories);
2657
- if (repositories === null) {
2700
+ const repositories = queue === "revise" ? parseBranchlessRepositories(data.repositories) : parseClaimedRepositories(data.repositories);
2701
+ if (repositories === null || queue === "revise" && repositories === void 0) {
2658
2702
  const released = await releaseUntried(state, item, fleet);
2659
2703
  reportRepeating(
2660
2704
  state,
2661
2705
  "the repositories",
2662
- `the gateway named repositories for ${tag} that this runner cannot read; upgrade the runner or the gateway. ` + (released.ok ? "The claim was released and no build started" : `No build started, but releasing the claim failed (${released.reason}), so it stays held until its lease lapses`)
2706
+ (repositories === null ? `the gateway named repositories for ${tag} that this runner cannot read; upgrade the runner or the gateway. ` : `the gateway named no repository for ${tag}, so there is nothing to read. `) + (released.ok ? "The claim was released and no build started" : `No build started, but releasing the claim failed (${released.reason}), so it stays held until its lease lapses`)
2663
2707
  );
2664
2708
  return { kind: "unreadable_repositories" };
2665
2709
  }
@@ -2756,7 +2800,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
2756
2800
  mkdirSync(dirPath, { recursive: true, mode: RUNNER_DIR_MODE });
2757
2801
  const runnerRoot = runnerDir(state.config.configPath);
2758
2802
  const jobFilePath = join(dirPath, "job.json");
2759
- const configuredCommand = queue === "run" ? runCommandOf(state.config, state.deps.agents) : state.config.commands[queue];
2803
+ const configuredCommand = queueCommand(state, queue);
2760
2804
  const jobAgentId = jobAgent({ command: queue === "run" ? state.config.commands.implement : configuredCommand }, state.deps.agents)?.descriptor.id;
2761
2805
  let job = {
2762
2806
  stateFormat: state.deps.jobStateFormat ?? JOB_STATE_FORMAT,
@@ -3018,9 +3062,10 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
3018
3062
  }
3019
3063
  }
3020
3064
  } else {
3021
- if (queue === "run") {
3022
- log.error(`${tag} the runner's hooks no longer name a container, microVM or sandbox build, and a run takes none other \xB7 ending job as failed`);
3023
- await endJob(state, active, "failed", { stage: "provision", reason: "a run goes only to a build in a container or a microVM" });
3065
+ if (queue === "run" || queue === "revise") {
3066
+ const what = queue === "run" ? "a run" : "a revision";
3067
+ log.error(`${tag} the runner's hooks no longer name a container, microVM or sandbox build, and ${what} takes none other \xB7 ending job as failed`);
3068
+ await endJob(state, active, "failed", { stage: "provision", reason: `${what} goes only to a build in a container or a microVM` });
3024
3069
  return;
3025
3070
  }
3026
3071
  const runtime = runtimeOf(state);
@@ -3168,7 +3213,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
3168
3213
  return;
3169
3214
  }
3170
3215
  if (skillDecision.kind === "warn") log.line(`${tag} warning: the clone has no \`build\` skill; the control plane's context may deliver one, so the command starts`);
3171
- if (!containerMode && !vmMode && !sandboxMode) {
3216
+ if (!containerMode && !vmMode && !sandboxMode && branch !== void 0) {
3172
3217
  if (existsSync(join(workdir, ".git"))) {
3173
3218
  try {
3174
3219
  const prepared = await prepareBranch({ workdir, branch });
@@ -3188,7 +3233,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
3188
3233
  await endJob(state, active, "ok", { stage: "command" });
3189
3234
  return;
3190
3235
  }
3191
- const configured = queue === "run" ? runCommandOf(state.config, state.deps.agents) : state.config.commands[queue];
3236
+ const configured = queueCommand(state, queue);
3192
3237
  const cmdline = configured === void 0 ? void 0 : currentSkillCommand(configured);
3193
3238
  if (cmdline !== configured) log.line(`${tag} ${formerSkillProblem([queue])}`);
3194
3239
  if (!cmdline) {
@@ -3716,7 +3761,7 @@ async function rejoinContainerBuild(state, adopted) {
3716
3761
  if (cores !== void 0) runtimeOf(state).cpus.hold(container.buildId, cores);
3717
3762
  const tokens = buildTokensFor(state, adopted);
3718
3763
  runtimeOf(state).credentials.set(dirPath, tokens);
3719
- await ensureTunnel(runtimeOf(state), container, dirPath, configForJob(config, job), job.itemKey, job.branch, job.repositories, (line) => logOf(state).line(`${itemTag(job)} ${line}`), () => leaseExpiresAtMs(adopted.job), job.queue === "run");
3764
+ await ensureTunnel(runtimeOf(state), container, dirPath, configForJob(config, job), job.itemKey, job.branch, job.repositories, (line) => logOf(state).line(`${itemTag(job)} ${line}`), () => leaseExpiresAtMs(adopted.job), readOnlyRemoteOf(job.queue));
3720
3765
  try {
3721
3766
  await tokens.token("read");
3722
3767
  keepGhConfigCurrent(
@@ -3819,7 +3864,7 @@ async function rejoinMicroVmBuild(state, adopted) {
3819
3864
  let leaseServed = false;
3820
3865
  try {
3821
3866
  const repositories = repositoriesOf({ repositories: job.repositories, repository: microvm.repository, branch: job.branch });
3822
- const gitRemote = repositories.length === 0 ? void 0 : gitRemoteFor(runtime, { repositories, tokens, buildDir: microvm.buildDir, organizationId: job.organizationId, log: (line) => log.line(`${tag} ${line}`), ...job.queue === "run" ? { readOnly: true } : {} });
3867
+ const gitRemote = repositories.length === 0 ? void 0 : gitRemoteFor(runtime, { repositories, tokens, buildDir: microvm.buildDir, organizationId: job.organizationId, log: (line) => log.line(`${tag} ${line}`), ...readOnlyOption(job.queue) });
3823
3868
  runtime.tunnels.set(microvm.buildId, await startServicesFor(runtime, configForJob(config, job), microvm.buildDir, dirPath, job.itemKey, microvm.builtIns === true, gitRemote, "socket", void 0, inherit));
3824
3869
  servicesServed = true;
3825
3870
  } catch (err) {
@@ -4016,7 +4061,7 @@ async function startRunner(configPath, deps, startup) {
4016
4061
  check: update.check ? () => update.check(configPath) : async () => {
4017
4062
  const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
4018
4063
  const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
4019
- return (await import('./check-36K7RSE2.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
4064
+ return (await import('./check-V2TITR5P.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
4020
4065
  },
4021
4066
  now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
4022
4067
  log
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_UNIT_NAME } from './chunk-4AEOP5PD.js';
4
- import { RUNNER_FILE_MODE } from './chunk-DULO2L5B.js';
5
- import { parseRunnerEnv, withoutCredentialLines } from './chunk-NFPJ2XC2.js';
6
- import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-36M66QKN.js';
7
- import { defaultAgents } from './chunk-PDPBWX67.js';
3
+ import { DEFAULT_UNIT_NAME } from './chunk-FM4OXL5V.js';
4
+ import { RUNNER_FILE_MODE } from './chunk-WVTBZX4K.js';
5
+ import { parseRunnerEnv, withoutCredentialLines } from './chunk-6AORV65Z.js';
6
+ import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-SBZX6XP6.js';
7
+ import { defaultAgents } from './chunk-ZN4444RL.js';
8
8
  import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
9
9
  import { join, dirname } from 'path';
10
10
 
@@ -22391,6 +22391,11 @@ var ArtifactTombstoneRecordSchema = external_exports.looseObject({
22391
22391
  t: external_exports.string()
22392
22392
  });
22393
22393
  external_exports.union([ArtifactSpoolRecordSchema, ArtifactTombstoneRecordSchema]);
22394
+ var CODE_REVIEW_PROBLEMS_MAX = 200;
22395
+ var PROBLEM_KINDS = ["bug", "security", "data", "test", "docs", "comment"];
22396
+ function problemKind(raw) {
22397
+ return PROBLEM_KINDS.includes(raw) ? raw : "bug";
22398
+ }
22394
22399
  var CHECK_ITEM_RESULTS = ["pass", "fail", "skipped"];
22395
22400
  var CHECK_ITEMS_MAX = 500;
22396
22401
  var CHECK_ITEM_ID_MAX_LENGTH = 200;
@@ -23051,4 +23056,4 @@ xmlchars/xmlns/1.0/ed3.js:
23051
23056
  *)
23052
23057
  */
23053
23058
 
23054
- export { ARTIFACT_KINDS, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, ARTIFACT_MAX_FILENAME_LENGTH, ARTIFACT_MAX_REPLACES_TARGETS, ATTACHMENT_CLIENT_ID_HEADER, ATTACHMENT_FILENAME_HEADER, ATTACHMENT_SHA256_HEADER, ArtifactCriterionIdSchema, ArtifactSpoolRecordSchema, ArtifactTombstoneRecordSchema, BUCKET_MODEL_MAX_LENGTH, CAPTURE_TIERS, CHECK_ITEMS_MAX, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEM_REFS_MAX, CHECK_ITEM_REF_PATH_MAX_LENGTH, CLI_LOGIN_KIND, CLI_LOGIN_MACHINE_NAME_MAX, CODE_REVIEW_NAME, CheckItemsSchema, CliLoginPollResponseSchema, CliLoginRefusalSchema, CliLoginStartedSchema, CriteriaListSchema, DEMO_MANIFEST_LATEST_VERSION, DEMO_RECORD_MEDIA_TYPE, DemoManifestSchema, EMITTED_RESULTS, EMITTED_RESULT_MAX_BODY_LENGTH, EMITTED_RESULT_MAX_LINK_LENGTH, EVENT_TYPES, EmittedNameSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH, FindingBatchSchema, FindingsResponseSchema, INPUT_BAND_BOUNDARIES, JUDGE_NOT_RUN_ITEM_ID, RESERVED_EMIT_NAMES, REVIEWED_COMMIT_ITEM_ID, SAME_PROBLEM_RULES, SCHEMA_VERSION, SPEED_MAX_LENGTH, StepBodySchema, StepNameSchema, UNREVIEWED_FILES_ITEM_ID, WORK_ITEM_ATTACHMENTS_MAX_PER_COMMENT, WORK_ITEM_ATTACHMENTS_MAX_TOTAL_BYTES, WORK_ITEM_ATTACHMENT_MAX_BYTES, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, attachmentKind, bannedPathsForTier, bindTests, cleanAttachmentFilename, downconvertSession, findingGaps, inferArtifactKind, inputBandOf, isHumanUserTurn, isTestSourcePath, itemsAllowResult, mediaTypeForArtifactPath, parseAgentSession, parseJunit, parseTestSelector, turnCountBound };
23059
+ export { ARTIFACT_KINDS, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, ARTIFACT_MAX_FILENAME_LENGTH, ARTIFACT_MAX_REPLACES_TARGETS, ATTACHMENT_CLIENT_ID_HEADER, ATTACHMENT_FILENAME_HEADER, ATTACHMENT_SHA256_HEADER, ArtifactCriterionIdSchema, ArtifactSpoolRecordSchema, ArtifactTombstoneRecordSchema, BUCKET_MODEL_MAX_LENGTH, CAPTURE_TIERS, CHECK_ITEMS_MAX, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEM_REFS_MAX, CHECK_ITEM_REF_PATH_MAX_LENGTH, CLI_LOGIN_KIND, CLI_LOGIN_MACHINE_NAME_MAX, CODE_REVIEW_NAME, CODE_REVIEW_PROBLEMS_MAX, CheckItemsSchema, CliLoginPollResponseSchema, CliLoginRefusalSchema, CliLoginStartedSchema, CriteriaListSchema, DEMO_MANIFEST_LATEST_VERSION, DEMO_RECORD_MEDIA_TYPE, DemoManifestSchema, EMITTED_RESULTS, EMITTED_RESULT_MAX_BODY_LENGTH, EMITTED_RESULT_MAX_LINK_LENGTH, EVENT_TYPES, EmittedNameSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH, FindingBatchSchema, FindingsResponseSchema, INPUT_BAND_BOUNDARIES, JUDGE_NOT_RUN_ITEM_ID, RESERVED_EMIT_NAMES, REVIEWED_COMMIT_ITEM_ID, SAME_PROBLEM_RULES, SCHEMA_VERSION, SPEED_MAX_LENGTH, StepBodySchema, StepNameSchema, UNREVIEWED_FILES_ITEM_ID, WORK_ITEM_ATTACHMENTS_MAX_PER_COMMENT, WORK_ITEM_ATTACHMENTS_MAX_TOTAL_BYTES, WORK_ITEM_ATTACHMENT_MAX_BYTES, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, attachmentKind, bannedPathsForTier, bindTests, cleanAttachmentFilename, downconvertSession, findingGaps, inferArtifactKind, inputBandOf, isHumanUserTurn, isTestSourcePath, itemsAllowResult, mediaTypeForArtifactPath, parseAgentSession, parseJunit, parseTestSelector, problemKind, turnCountBound };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-36M66QKN.js';
4
- import { defaultAgents } from './chunk-PDPBWX67.js';
3
+ import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-SBZX6XP6.js';
4
+ import { defaultAgents } from './chunk-ZN4444RL.js';
5
5
  import { PROVIDERS } from './chunk-7PZDPISM.js';
6
6
  import { statSync, readFileSync } from 'fs';
7
7
  import { join } from 'path';
@@ -263,7 +263,7 @@ function holdAgentCredentials(env = process.env, agents = defaultAgents()) {
263
263
  return first === void 0 ? void 0 : heldCopies.get(first.descriptor.id);
264
264
  }
265
265
  function takeAgentCredentials(env, hooks, agents = defaultAgents()) {
266
- return /^builtin:(container|vm)$/.test(hooks.provision) ? holdAgentCredentials(env, agents) : void 0;
266
+ return /^builtin:(container|vm|sandbox)$/.test(hooks.provision) ? holdAgentCredentials(env, agents) : void 0;
267
267
  }
268
268
  function removedAgentCredentialValues() {
269
269
  return [...removedValues];
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-B5TMIK6Q.js';
4
- import { UNIT_MARKER } from './chunk-4AEOP5PD.js';
5
- import { runnerDir } from './chunk-DULO2L5B.js';
3
+ import { helperSocketPath } from './chunk-3LOW5W6T.js';
4
+ import { UNIT_MARKER } from './chunk-FM4OXL5V.js';
5
+ import { runnerDir } from './chunk-WVTBZX4K.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
8
8
 
@@ -1,9 +1,9 @@
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-PDPBWX67.js';
4
+ import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-ZN4444RL.js';
5
5
  import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
6
- import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.js';
6
+ import { MAINTAINED_SKILLS } from './chunk-AW3N24L5.js';
7
7
  import { lstatSync, readFileSync } from 'fs';
8
8
  import { join } from 'path';
9
9
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-NEXKR5RR.js';
3
+ import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-5NVF5TAL.js';
4
4
  import { readFileSync, mkdirSync, statSync, copyFileSync, renameSync, unlinkSync, writeFileSync, readdirSync, realpathSync, watch as watch$1 } from 'fs';
5
5
  import * as sp5 from 'path';
6
6
  import { join, relative, dirname, resolve, sep } from 'path';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
4
- import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-ATEMEVFF.js';
4
+ import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-AW3N24L5.js';
5
5
  import { mkdirSync, writeFileSync, renameSync, rmSync, readFileSync } from 'fs';
6
6
  import { dirname, join } from 'path';
7
7
 
@@ -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-HNQLZ7CK.js';
4
- import { resolveGatewayCredentials } from './chunk-DKTXQ7XQ.js';
3
+ import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-LOXR7Q77.js';
4
+ import { resolveGatewayCredentials } from './chunk-QPSLXP6A.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-6XORUAR7.js';
9
+ import { resolveRepoIdentity } from './chunk-7GJEQXOH.js';
10
10
 
11
11
  createRequire(import.meta.url);
12
12
 
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-TUH2STQV.js';
3
+ import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-WJMA4BRG.js';
4
4
  import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
5
- import { detectActiveSession } from './chunk-MOA4PGYL.js';
6
- import { autoConnect } from './chunk-VCNY5VAF.js';
7
- import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-QHYCF36K.js';
5
+ import { detectActiveSession } from './chunk-DULA3AYN.js';
6
+ import { autoConnect } from './chunk-AR3SCE7R.js';
7
+ import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-26BFN6DH.js';
8
8
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-DKTXQ7XQ.js';
9
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-QPSLXP6A.js';
10
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
11
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
12
12
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
13
13
  import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
14
- import { resolveRepoIdentity } from './chunk-6XORUAR7.js';
15
- import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-NEXKR5RR.js';
14
+ import { resolveRepoIdentity } from './chunk-7GJEQXOH.js';
15
+ import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-5NVF5TAL.js';
16
16
  import { createHash, randomUUID } from 'crypto';
17
17
  import { statSync, readFileSync, mkdirSync, existsSync, writeFileSync, renameSync, unlinkSync } from 'fs';
18
18
  import { resolve, basename, join } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-36M66QKN.js';
3
+ import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-SBZX6XP6.js';
4
4
  import { existsSync, readdirSync, readFileSync, lstatSync, realpathSync, writeFileSync } from 'fs';
5
5
  import { join, resolve, relative, dirname, sep, basename } from 'path';
6
6
  import { createRequire as createRequire$1 } from 'module';
@@ -4,7 +4,7 @@ import { createRequire } from 'node:module';
4
4
  createRequire(import.meta.url);
5
5
 
6
6
  // src/maintained-line.ts
7
- var MAINTAINED_SKILLS = ["outerlayer-evidence", "outerlayer-amend", "outerlayer-findings", "outerlayer-cli", "outerlayer-build", "outerlayer-run"];
7
+ var MAINTAINED_SKILLS = ["outerlayer-evidence", "outerlayer-amend", "outerlayer-findings", "outerlayer-cli", "outerlayer-build", "outerlayer-run", "outerlayer-revise"];
8
8
  var MAINTAINED_LINE_VERSION = /^<!-- maintained by OuterLayer (\S+?)\. /m;
9
9
  function maintainedLineVersion(text) {
10
10
  return MAINTAINED_LINE_VERSION.exec(text)?.[1];
@@ -1,26 +1,26 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { checkStarterFiles, contextIsGoverned } from './chunk-MOFT7QCR.js';
4
- import { resolveCredentials, getJson, WorkCommandError } from './chunk-QOP2CYYY.js';
5
- import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-QENFVQ7O.js';
6
- import { withInjectedPrograms } from './chunk-F3RBGMHL.js';
7
- import { isLinkedRepository } from './chunk-HNQLZ7CK.js';
8
- import { sanitizeTerminal } from './chunk-QHYCF36K.js';
3
+ import { checkStarterFiles, contextIsGoverned } from './chunk-F4Q4Y7ZE.js';
4
+ import { resolveCredentials, getJson, WorkCommandError } from './chunk-CT7X6XGR.js';
5
+ import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-3RAAAAPL.js';
6
+ import { withInjectedPrograms } from './chunk-QR6XP6BJ.js';
7
+ import { isLinkedRepository } from './chunk-LOXR7Q77.js';
8
+ import { sanitizeTerminal } from './chunk-26BFN6DH.js';
9
9
  import { C } from './chunk-2AM6Z5BP.js';
10
- import { checkFormerSkillNames } from './chunk-SASWFX22.js';
11
- import { resolveGatewayCredentials, defaultFetch } from './chunk-DKTXQ7XQ.js';
12
- import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-UKEJBA5Y.js';
10
+ import { checkFormerSkillNames } from './chunk-NTPBHL6U.js';
11
+ import { resolveGatewayCredentials, defaultFetch } from './chunk-QPSLXP6A.js';
12
+ import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-NHYV24WJ.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-KR34GXEH.js';
17
+ import { installAgents, withSettingsText } from './chunk-LF4BHMEG.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-PDPBWX67.js';
21
+ import { defaultAgents, legacyAgent, contextAgents } from './chunk-ZN4444RL.js';
22
22
  import { homeFromEnv } from './chunk-352DHUTP.js';
23
- import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-6XORUAR7.js';
23
+ import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-7GJEQXOH.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-2MOEPIZF.js');
1055
- const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-AOOR5BPQ.js');
1054
+ const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-H6ZN32KR.js');
1055
+ const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-JMTO5H4U.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-XEFEPHFI.js');
1083
+ const { runnerHostChecks } = await import('./doctor-3XXCQPUZ.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-YT25OH3F.js');
1111
+ const { inspectRunnerService } = await import('./find-unit-6YALHLSE.js');
1112
1112
  return inspectRunnerService(configPath);
1113
1113
  })();
1114
1114
  checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));