@outerlayer/cli 0.38.0-next.20261108173145 → 0.38.0-next.20261109042440

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 (173) hide show
  1. package/dist/agent-setup-MLSWF7RF.js +40 -0
  2. package/dist/{agent-subcommand-OCMCCFSB.js → agent-subcommand-DCOPM2NX.js} +4 -4
  3. package/dist/{artifact-link-cmd-F6M2BDT7.js → artifact-link-cmd-RUGAK5EX.js} +2 -2
  4. package/dist/{bridge-YLEFQNIS.js → bridge-HZRJYECQ.js} +7 -7
  5. package/dist/{build-KLJ77WKQ.js → build-3LXKCCJF.js} +13 -13
  6. package/dist/{build-disk-3L3SLREW.js → build-disk-TYX6DU5R.js} +11 -11
  7. package/dist/build-info.json +1 -1
  8. package/dist/{builder-XKYFIIFR.js → builder-VYKWHAUQ.js} +10 -10
  9. package/dist/caller-VU7QBFHQ.js +23 -0
  10. package/dist/{check-QJZBJSEI.js → check-V7O237A4.js} +55 -55
  11. package/dist/{chunk-357XJHAI.js → chunk-22QIA7SH.js} +1 -1
  12. package/dist/{chunk-OCQ5FQZR.js → chunk-2DVQHK37.js} +1 -1
  13. package/dist/{chunk-N36RPTGJ.js → chunk-2J3X2Z4F.js} +18 -13
  14. package/dist/{chunk-4JU3ICKR.js → chunk-2XEQCSCQ.js} +4 -4
  15. package/dist/{chunk-XJE67R7O.js → chunk-4EQQS3VJ.js} +1 -1
  16. package/dist/{chunk-SPGMETJ6.js → chunk-4K2EMRJP.js} +6 -6
  17. package/dist/{chunk-VUNNIYLD.js → chunk-4LUHKCDO.js} +9 -9
  18. package/dist/{chunk-OZOLXCLE.js → chunk-5OBQBINA.js} +1 -1
  19. package/dist/{chunk-EMZHIR3I.js → chunk-6EN72I2O.js} +1 -1
  20. package/dist/{chunk-XGFXQRIO.js → chunk-7TM2E4RI.js} +8 -8
  21. package/dist/{chunk-7V2LUZA4.js → chunk-B3ILHK4Q.js} +7 -7
  22. package/dist/{chunk-MKGLYKVW.js → chunk-BDTFO5S7.js} +3 -3
  23. package/dist/{chunk-KUVKEP7N.js → chunk-BFWZGLUU.js} +1 -1
  24. package/dist/{chunk-PT7JH3LM.js → chunk-C3K54KRU.js} +5 -5
  25. package/dist/{chunk-KJA6Z3WV.js → chunk-CCEP5WBI.js} +7 -7
  26. package/dist/{chunk-MI4IPK47.js → chunk-CFJTX2QF.js} +10 -10
  27. package/dist/{chunk-Q4FE47JA.js → chunk-D7KYG37D.js} +3 -3
  28. package/dist/{chunk-D4MF3VYW.js → chunk-DEWD22FA.js} +1 -1
  29. package/dist/{chunk-EDQFP6WC.js → chunk-DX27B42J.js} +1 -1
  30. package/dist/{chunk-LKSDYSAN.js → chunk-EGKYININ.js} +5 -5
  31. package/dist/{chunk-YQ5NN522.js → chunk-EI6JYZ42.js} +3 -3
  32. package/dist/{chunk-WTUZDY5N.js → chunk-F3MEL6B6.js} +4 -4
  33. package/dist/{chunk-2OD5IXRW.js → chunk-GECHL3NC.js} +4 -4
  34. package/dist/{chunk-2Z7JU2LO.js → chunk-GTKR2YEZ.js} +1 -1
  35. package/dist/{chunk-4K6FPM2H.js → chunk-GVK7AKFX.js} +4 -4
  36. package/dist/{chunk-RUBFKBGT.js → chunk-H3YHAO7L.js} +1 -1
  37. package/dist/{chunk-2VNT47DG.js → chunk-HE53NIRE.js} +2 -1
  38. package/dist/{chunk-LCZO4Y7A.js → chunk-HGWDBTQ3.js} +2 -2
  39. package/dist/{chunk-3BMUYCRC.js → chunk-HQMSXIDX.js} +8 -7
  40. package/dist/{chunk-ZN3QHFYG.js → chunk-IEKXNDKX.js} +274 -39
  41. package/dist/{chunk-2DLAG5WR.js → chunk-IG5ZZG7R.js} +3 -3
  42. package/dist/{chunk-2KL345FW.js → chunk-IJ4DF5QS.js} +1 -1
  43. package/dist/{chunk-KLKMBHN4.js → chunk-IOSY5ZYJ.js} +10 -10
  44. package/dist/{chunk-ZFQ4XHLK.js → chunk-JAURZKSE.js} +5 -5
  45. package/dist/{chunk-XMW4DMHT.js → chunk-JKRVSEK7.js} +8 -8
  46. package/dist/{chunk-CLTLDVGO.js → chunk-JMWCPEKP.js} +1 -1
  47. package/dist/{chunk-G6HGC7JH.js → chunk-JSWKSMVE.js} +3 -3
  48. package/dist/{chunk-7NQWXGC5.js → chunk-KFHF3GBH.js} +6 -6
  49. package/dist/{chunk-PCJYDS7C.js → chunk-KIYP5TML.js} +1 -1
  50. package/dist/{chunk-MNWQT63C.js → chunk-KX4JKW4Z.js} +4 -4
  51. package/dist/{chunk-AORHEIAY.js → chunk-KZNIQUOC.js} +25 -25
  52. package/dist/{chunk-DZIOUCMI.js → chunk-LA5UO6LI.js} +2 -2
  53. package/dist/{chunk-R7XFHG67.js → chunk-LIMJRKIU.js} +5 -5
  54. package/dist/{chunk-UKYKWVZM.js → chunk-LLVBDIQJ.js} +7 -7
  55. package/dist/{chunk-AI25ZRE3.js → chunk-LO3PSFNT.js} +1 -1
  56. package/dist/{chunk-ULHJZ4HQ.js → chunk-LOG4LBUY.js} +2 -2
  57. package/dist/{chunk-ANDCQGUH.js → chunk-LYWLBZ37.js} +2 -2
  58. package/dist/{chunk-4TP5PS75.js → chunk-MM4B7IZK.js} +3 -3
  59. package/dist/{chunk-ISNZJI45.js → chunk-MMSFADKC.js} +1 -1
  60. package/dist/{chunk-JZF5AA6N.js → chunk-N2QYP3NQ.js} +1 -1
  61. package/dist/{chunk-PAAJQSGI.js → chunk-N3KJY74V.js} +16 -16
  62. package/dist/{chunk-N7ILSHWT.js → chunk-NHT7RHAI.js} +3 -3
  63. package/dist/{chunk-AOPMNZT5.js → chunk-OKELGJNN.js} +3 -2
  64. package/dist/{chunk-TUA57BFL.js → chunk-OPGF3FUY.js} +1 -1
  65. package/dist/{chunk-XGY5XNTJ.js → chunk-OYBBYENC.js} +7 -7
  66. package/dist/{chunk-L2D465QT.js → chunk-PM4YDVAX.js} +1 -1
  67. package/dist/{chunk-Y4IY7NI2.js → chunk-Q6ANHBJK.js} +1 -1
  68. package/dist/{chunk-ZACEJPSM.js → chunk-QP6SPQU5.js} +4 -4
  69. package/dist/{chunk-6QKXP6FD.js → chunk-RMXRQ3OC.js} +1 -1
  70. package/dist/{chunk-NAJYLQH3.js → chunk-RVYMYTXX.js} +1 -1
  71. package/dist/{chunk-SELIZ5DP.js → chunk-SLR6QAOE.js} +1 -1
  72. package/dist/{chunk-J56NXZPC.js → chunk-T63WTVGY.js} +6 -6
  73. package/dist/{chunk-SQILPZYC.js → chunk-TNAUQADA.js} +1 -1
  74. package/dist/{chunk-UILU5DEI.js → chunk-TTG6Y7G7.js} +1 -1
  75. package/dist/{chunk-SLLLDS3C.js → chunk-U463IFDK.js} +6 -6
  76. package/dist/{chunk-EVJCOO4S.js → chunk-UCDCPQXU.js} +1 -1
  77. package/dist/{chunk-ACPZJKSY.js → chunk-UNA4YIHE.js} +6 -6
  78. package/dist/{chunk-YPWMV3CQ.js → chunk-X45WDWSV.js} +1 -1
  79. package/dist/{chunk-X6GNGB54.js → chunk-X56UUEHE.js} +2 -2
  80. package/dist/{chunk-N5PVMTR5.js → chunk-Z4R73UUH.js} +6 -6
  81. package/dist/{chunk-A6PS34NT.js → chunk-ZLJD2AY3.js} +7 -7
  82. package/dist/{chunk-UMEGPDPT.js → chunk-ZWWU7COR.js} +1 -1
  83. package/dist/{claude-launcher-A2PB52O6.js → claude-launcher-YDSG5XIN.js} +7 -7
  84. package/dist/{cli-AKHLAZ2E.js → cli-DLRZZO5D.js} +150 -150
  85. package/dist/{command-N2GCUMGT.js → command-323XICE4.js} +50 -50
  86. package/dist/{config-P6MQT7CU.js → config-O2LJAZJZ.js} +12 -12
  87. package/dist/{connect-cmd-AECCKAP5.js → connect-cmd-3DBWVCUL.js} +13 -13
  88. package/dist/{container-start-ZMDCAYED.js → container-start-2EZGXAQ2.js} +48 -48
  89. package/dist/{context-cleanup-YMDLQ3PL.js → context-cleanup-Z23RX7JT.js} +4 -4
  90. package/dist/{context-show-cmd-KRWENGTR.js → context-show-cmd-OGRCR5OT.js} +14 -14
  91. package/dist/{control-plane-launch-YRDBVQHE.js → control-plane-launch-JZPULKCL.js} +14 -14
  92. package/dist/{demo-record-cmd-J5XQAPMI.js → demo-record-cmd-YPWPHDAN.js} +8 -8
  93. package/dist/{demo-voice-cmd-VTRAXIFJ.js → demo-voice-cmd-TNZ2G5CJ.js} +20 -20
  94. package/dist/{dist-MONMYZQI.js → dist-OMJJT636.js} +2 -2
  95. package/dist/{docker-54RFCNP4.js → docker-MOESJVCB.js} +10 -10
  96. package/dist/{doctor-7BHA2MNM.js → doctor-GHJ7EPRT.js} +50 -50
  97. package/dist/{emit-artifact-cmd-LNJHMF5X.js → emit-artifact-cmd-W7YBXLA7.js} +19 -19
  98. package/dist/{emit-cmd-Y2Y5CL3A.js → emit-cmd-3YOUQCID.js} +7 -7
  99. package/dist/{emit-criteria-cmd-7OTT6XYU.js → emit-criteria-cmd-KZW275Q2.js} +16 -16
  100. package/dist/{emit-demo-cmd-YPHFID3H.js → emit-demo-cmd-3UBPYRAM.js} +20 -20
  101. package/dist/{emit-finding-cmd-XAAK2CGC.js → emit-finding-cmd-NL6H2PBJ.js} +16 -16
  102. package/dist/{emit-result-cmd-BWUD4ROC.js → emit-result-cmd-KRUV7V74.js} +18 -18
  103. package/dist/{emit-step-cmd-GOUUJSSN.js → emit-step-cmd-SHBIO2JI.js} +16 -16
  104. package/dist/{exec-client-GIV4BDKO.js → exec-client-WJLO2KWS.js} +8 -8
  105. package/dist/find-unit-YNIILXQK.js +24 -0
  106. package/dist/{findings-cmd-ZNZMNBCT.js → findings-cmd-3JP4GYD3.js} +16 -16
  107. package/dist/{fleet-readiness-MKOTLDJM.js → fleet-readiness-U4IZZV52.js} +14 -14
  108. package/dist/{governing-source-KMQOZB7H.js → governing-source-VZFU65KP.js} +21 -21
  109. package/dist/{guest-init-RDO2IE5C.js → guest-init-HIKD3MHJ.js} +9 -9
  110. package/dist/{hook-fast-IKXTT3OX.js → hook-fast-2ENS5AKU.js} +1 -1
  111. package/dist/{hook-install-FUZ2Z3L4.js → hook-install-JTYPE5ZQ.js} +4 -4
  112. package/dist/host-checks-CSAVTTJ5.js +79 -0
  113. package/dist/host-key-V2VVCBGR.js +18 -0
  114. package/dist/{image-tag-SJN4JJFB.js → image-tag-EX2R462S.js} +8 -8
  115. package/dist/index.js +4 -4
  116. package/dist/init-F4CGGR62.js +79 -0
  117. package/dist/{init-4E532UXE.js → init-RXTPXCHN.js} +46 -46
  118. package/dist/{init-agent-BQKYIMOG.js → init-agent-RT45WGLM.js} +46 -46
  119. package/dist/{init-cmd-O6AXPL6V.js → init-cmd-HMPM33KI.js} +27 -27
  120. package/dist/{init-update-BEE32DYS.js → init-update-ZWSICDTJ.js} +24 -24
  121. package/dist/{install-cmd-Y33MOS4U.js → install-cmd-LX76Y7NB.js} +10 -10
  122. package/dist/{layout-VTYYGLBF.js → layout-4FLIBRPO.js} +4 -4
  123. package/dist/{login-browser-VNPN4FVO.js → login-browser-ZEOXKIQ2.js} +2 -2
  124. package/dist/{logs-D6VDVMWB.js → logs-BWGJ2BVT.js} +7 -7
  125. package/dist/loop-DINF6WGB.js +90 -0
  126. package/dist/machine-KBGKKY6E.js +79 -0
  127. package/dist/{machine-skills-BXKXRG6F.js → machine-skills-UEQA3AUX.js} +4 -4
  128. package/dist/{mcp-install-cmd-DAU25PTN.js → mcp-install-cmd-DBKKGLHW.js} +4 -4
  129. package/dist/{mcp-serve-cmd-WI2TVERC.js → mcp-serve-cmd-LFXU5UGJ.js} +9 -9
  130. package/dist/{paths-XSZV6RIP.js → paths-CSZZQK3X.js} +7 -7
  131. package/dist/pending-BHRSEFXV.js +18 -0
  132. package/dist/{pidfile-ZXYUJUD2.js → pidfile-TTIUEDXW.js} +8 -8
  133. package/dist/{record-KTFMHAAJ.js → record-U7DU6IVT.js} +8 -8
  134. package/dist/{relay-LE7ORFOR.js → relay-KZTGUSFJ.js} +5 -5
  135. package/dist/{relay-protocol-MJKBXBGB.js → relay-protocol-LG4J5K63.js} +5 -5
  136. package/dist/{runner-agents-SVCAGQHJ.js → runner-agents-32J743FJ.js} +4 -4
  137. package/dist/runner-env-RGYTHURZ.js +24 -0
  138. package/dist/{runner-identity-NEIPECZQ.js → runner-identity-VQCIKNBK.js} +10 -10
  139. package/dist/{runner-key-2Y7CCC47.js → runner-key-W76LSC57.js} +46 -46
  140. package/dist/{session-sender-JF4UZHMV.js → session-sender-3VFTMIM3.js} +19 -19
  141. package/dist/{spec-cmd-76WIDFVM.js → spec-cmd-RQFIJ75J.js} +17 -17
  142. package/dist/{starter-pack-HNBEDTIH.js → starter-pack-LO3D6CPP.js} +5 -5
  143. package/dist/state-IH6JOEJZ.js +18 -0
  144. package/dist/{status-X5HHMQJT.js → status-J5BVCENR.js} +46 -46
  145. package/dist/{sync-cmd-2PU64AZ3.js → sync-cmd-4RSCWFAF.js} +18 -18
  146. package/dist/update-steps-U7KB2PPF.js +80 -0
  147. package/dist/{watch-6C4G5JOF.js → watch-NH5QZJLE.js} +18 -18
  148. package/dist/{work-claim-cmd-YYUNJGFI.js → work-claim-cmd-ANXDKSAU.js} +22 -22
  149. package/dist/{work-cmd-4CK4W3N5.js → work-cmd-32J5UQJO.js} +16 -16
  150. package/dist/{work-comment-cmd-C52THEHZ.js → work-comment-cmd-ZUZEAIIH.js} +18 -18
  151. package/dist/{work-demo-cmd-MJQ6USSW.js → work-demo-cmd-56C6JQD3.js} +16 -16
  152. package/dist/{work-logs-cmd-UYJZBCLC.js → work-logs-cmd-XKVZ2UY6.js} +16 -16
  153. package/dist/{work-needs-attention-cmd-HEVZ5RHU.js → work-needs-attention-cmd-DYD3AIRU.js} +16 -16
  154. package/dist/{work-no-change-cmd-LFMIGD2R.js → work-no-change-cmd-QVD67UG5.js} +16 -16
  155. package/dist/{work-open-pr-cmd-XSGPLXZA.js → work-open-pr-cmd-3SSJPKHW.js} +17 -17
  156. package/dist/{work-pr-cmd-YCBNEEI3.js → work-pr-cmd-DF6Q5XHU.js} +16 -16
  157. package/dist/{work-proofs-cmd-HYVXSWM7.js → work-proofs-cmd-B6JFSXPH.js} +18 -18
  158. package/dist/{work-proofs-record-76PL2Y2Y.js → work-proofs-record-PWYMY3XW.js} +24 -24
  159. package/dist/{work-stop-cmd-IMFJIH6B.js → work-stop-cmd-4KNMURDC.js} +16 -16
  160. package/package.json +1 -1
  161. package/skill-pack/maintained/outerlayer-build/references/code-review-judge.md +52 -14
  162. package/dist/agent-setup-PYMUWCRP.js +0 -40
  163. package/dist/caller-SYFUJ4MP.js +0 -23
  164. package/dist/find-unit-Y3WVYANJ.js +0 -24
  165. package/dist/host-checks-BIGATZFK.js +0 -79
  166. package/dist/host-key-GSXTEJA5.js +0 -18
  167. package/dist/init-LIX2CH7R.js +0 -79
  168. package/dist/loop-DCQM2ASM.js +0 -90
  169. package/dist/machine-JHJNESJD.js +0 -79
  170. package/dist/pending-DZI33SGU.js +0 -18
  171. package/dist/runner-env-Q6OGDJAI.js +0 -24
  172. package/dist/state-REW53DKI.js +0 -18
  173. package/dist/update-steps-4EEACZAD.js +0 -80
@@ -1,45 +1,45 @@
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-3BMUYCRC.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-HQMSXIDX.js';
4
4
  import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
5
5
  import { zodProblem } from './chunk-I3LTIAOR.js';
6
- import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-LKSDYSAN.js';
7
- import { upgradedStarterText } from './chunk-R7XFHG67.js';
8
- import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-YQ5NN522.js';
9
- import { writeDockerClientConfig } from './chunk-SELIZ5DP.js';
10
- import { senderPidfile } from './chunk-4K6FPM2H.js';
11
- import { installScrubContext } from './chunk-VUNNIYLD.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';
12
12
  import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
13
- import { runnerImageVersion } from './chunk-EMZHIR3I.js';
14
- import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-X6GNGB54.js';
13
+ import { runnerImageVersion } from './chunk-6EN72I2O.js';
14
+ import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-X56UUEHE.js';
15
15
  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-UKYKWVZM.js';
17
- import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-2OD5IXRW.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';
18
18
  import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
19
19
  import { currentCliBuild } from './chunk-OGFGZQA3.js';
20
- import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-KUVKEP7N.js';
21
- import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-N7ILSHWT.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-KJA6Z3WV.js';
23
- import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-XGFXQRIO.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-MNWQT63C.js';
25
- import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-ULHJZ4HQ.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, WORKSPACE_LABEL, networkHelperRunArgs, JUDGE_MAX_TURNS, JUDGE_DIR, hashJudgeProgram, identityScript, identityArgs, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, SAVED_STATE_LABEL } from './chunk-N36RPTGJ.js';
27
- import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-OZOLXCLE.js';
28
- import { sanitizeTerminal, planArtifactUpload } from './chunk-OCQ5FQZR.js';
29
- import { sharedSkillNames, skillConflictMessage } from './chunk-UILU5DEI.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';
30
30
  import { readCloudConfig } from './chunk-HWVMRETT.js';
31
- import { signerFor } from './chunk-NAJYLQH3.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-AI25ZRE3.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-ZACEJPSM.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-DZIOUCMI.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';
35
35
  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-2Z7JU2LO.js';
37
- import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-AOPMNZT5.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
38
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
39
39
  import { resolveVersion } from './chunk-RA3O54FC.js';
40
40
  import { homeFromEnv } from './chunk-352DHUTP.js';
41
- import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-JZF5AA6N.js';
42
- import { CheckItemsSchema, CODE_REVIEW_NAME, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID, CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEM_HREF_MAX_LENGTH, downconvertSession } from './chunk-2VNT47DG.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';
43
43
  import { randomUUID, randomBytes, createHash } from 'crypto';
44
44
  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
45
  import { join, dirname, isAbsolute, delimiter, basename, sep, relative, resolve } from 'path';
@@ -1530,8 +1530,9 @@ function decideFromEvaluation(read) {
1530
1530
  }
1531
1531
  return { outcome: "incomplete", reason: fit("the item's verdict is not passing: ", [evaluation.sentence || evaluation.verdict]) };
1532
1532
  }
1533
- function incompleteReason(reason, judgeNotRun) {
1534
- return judgeNotRun === void 0 ? reason : `the judge did not run (${judgeNotRun}) \xB7 ${reason}`;
1533
+ function incompleteReason(reason, judgeNotRun, proofsNotCurrent) {
1534
+ const proofs = proofsNotCurrent === void 0 ? reason : `the host's recording left proofs out of date (${proofsNotCurrent}) \xB7 ${reason}`;
1535
+ return judgeNotRun === void 0 ? proofs : `the judge did not run (${judgeNotRun}) \xB7 ${proofs}`;
1535
1536
  }
1536
1537
  function unfinishedRelease(verdictReason, learned) {
1537
1538
  return learned === WORKFLOW_PERMISSION_REASON ? { outcome: "failed", reason: WORKFLOW_PERMISSION_REASON } : { outcome: "incomplete", reason: verdictReason };
@@ -3407,6 +3408,13 @@ function superviseRelay(input) {
3407
3408
  // src/runner/record-proofs.ts
3408
3409
  var RECORD_PROOFS_ARGV = ["outerlayer", "work", "proofs", "--record", "--comment"];
3409
3410
  var PROOFS_LOG = "proofs.log";
3411
+ var MAX_CAUSE_LENGTH = 300;
3412
+ function recordingCause(log) {
3413
+ const lines = log.split("\n").map((line2) => line2.trimEnd());
3414
+ const proof = lines.map((line2) => /^Not (?:current|recorded), [^:]+: (.+)$/.exec(line2)?.[1]).find((cause2) => cause2 !== void 0);
3415
+ const cause = proof ?? lines.find((line2) => line2.startsWith("setup failed: "));
3416
+ return cause === void 0 ? void 0 : cause.slice(0, MAX_CAUSE_LENGTH);
3417
+ }
3410
3418
 
3411
3419
  // src/runner/sandbox/sweep.ts
3412
3420
  var RUNNER_METADATA = "outerlayerRunner";
@@ -5654,7 +5662,7 @@ function microVmJudgeEnvironment(input) {
5654
5662
  return ran;
5655
5663
  },
5656
5664
  readReport: () => readJudgeFile("report.html", MAX_REPORT_BYTES),
5657
- readItems: () => readJudgeFile("items.json", MAX_ITEMS_BYTES)
5665
+ readItems: (name = "items.json") => readJudgeFile(answerFileName(name), MAX_ITEMS_BYTES)
5658
5666
  };
5659
5667
  }
5660
5668
  async function startCheckMicroVm(input) {
@@ -7712,6 +7720,128 @@ ${rows}
7712
7720
  `;
7713
7721
  }
7714
7722
 
7723
+ // src/runner/code-review-plan.ts
7724
+ var SMALL_CHANGE_LINES = 40;
7725
+ var LARGE_CHANGE_LINES = 800;
7726
+ var GENERATED = /(^|\/)(openapi\.ya?ml|gateway-types\.ts|yarn\.lock|package-lock\.json|pnpm-lock\.yaml)$|\.golden$|\.snap$|(^|\/)generated\/|(^|\/)db-types\//;
7727
+ var FLOOR = /\.sql$|(^|\/)migrations\/|auth|secret|permission|webhook|token|(^|\/)rls/i;
7728
+ function markdownSection(text2, heading) {
7729
+ const lines = text2.split("\n");
7730
+ const start = lines.findIndex((line2) => line2.trim() === `## ${heading}`);
7731
+ if (start === -1) return void 0;
7732
+ const end = lines.findIndex((line2, index) => index > start && line2.startsWith("## "));
7733
+ const body = lines.slice(start + 1, end === -1 ? void 0 : end).join("\n").trim();
7734
+ return body === "" ? void 0 : body;
7735
+ }
7736
+ function splitDiff(patch) {
7737
+ const parts = [];
7738
+ const starts = [...patch.matchAll(/^diff --git /gm)].map((match) => match.index);
7739
+ for (const [index, start] of starts.entries()) {
7740
+ const text2 = patch.slice(start, starts[index + 1] ?? patch.length);
7741
+ const path = /^diff --git a\/\S+ b\/(\S+)/.exec(text2)?.[1] ?? "?";
7742
+ let added = 0;
7743
+ let removed = 0;
7744
+ for (const line2 of text2.split("\n")) {
7745
+ if (line2.startsWith("+") && !line2.startsWith("+++")) added += 1;
7746
+ else if (line2.startsWith("-") && !line2.startsWith("---")) removed += 1;
7747
+ }
7748
+ parts.push({ path, text: text2, added, removed });
7749
+ }
7750
+ return parts;
7751
+ }
7752
+ function reviewFiles(patch) {
7753
+ const files = { "diff.patch": patch };
7754
+ const changed = [];
7755
+ const index = ["# Changed files", "", "| File | Added | Removed | Its part of the change |", "|---|---|---|---|"];
7756
+ for (const [position, part] of splitDiff(patch).entries()) {
7757
+ const name = `diff-${String(position + 1).padStart(3, "0")}.patch`;
7758
+ const generated = GENERATED.test(part.path);
7759
+ files[name] = part.text;
7760
+ changed.push({ path: part.path, added: part.added, removed: part.removed, name, generated });
7761
+ index.push(`| \`${part.path.replace(/[`|]/g, "_")}\` | ${part.added} | ${part.removed} | \`${name}\`${generated ? " (generated: skim it)" : ""} |`);
7762
+ }
7763
+ files["files.md"] = `${index.join("\n")}
7764
+ `;
7765
+ return { files, changed };
7766
+ }
7767
+ function territories(changed, briefs) {
7768
+ const lines = changed.filter((file) => !file.generated).reduce((sum, file) => sum + file.added + file.removed, 0);
7769
+ const generalist = { name: "generalist", text: "Review the full change with no restriction, and favor the seams no other reviewer names as its own." };
7770
+ const full = lines > LARGE_CHANGE_LINES || changed.some((file) => FLOOR.test(file.path));
7771
+ if (!full && lines < SMALL_CHANGE_LINES) return [generalist];
7772
+ const names = [
7773
+ ["contracts", "Contracts reviewer"],
7774
+ ["test-strength", "Test-strength reviewer"]
7775
+ ];
7776
+ if (full) names.push(["security", "Security reviewer"], ["failure-path", "Failure-path reviewer"]);
7777
+ const focused = names.flatMap(([name, heading]) => {
7778
+ const text2 = briefs === void 0 ? void 0 : markdownSection(briefs, heading);
7779
+ return text2 === void 0 ? [] : [{ name, text: text2 }];
7780
+ });
7781
+ return [generalist, ...focused];
7782
+ }
7783
+ function territoryBrief(brief, territory) {
7784
+ return `${brief.trimEnd()}
7785
+
7786
+ ## Your territory
7787
+
7788
+ ${territory.text}
7789
+ `;
7790
+ }
7791
+ function issueText(workItem, criteria) {
7792
+ const issue = Object(Object(workItem).issue);
7793
+ const title = Object(workItem).title;
7794
+ const parts = [];
7795
+ if (typeof title === "string" && title.trim() !== "") parts.push(`# ${title.trim()}`);
7796
+ if (typeof issue.body === "string" && issue.body.trim() !== "") parts.push(issue.body.trim());
7797
+ if (criteria !== void 0 && criteria.length > 0) parts.push(["## Recorded criteria", "", ...criteria.map((criterion) => `- \`${criterion.id}\` ${criterion.text}`)].join("\n"));
7798
+ return parts.length === 0 ? void 0 : `${parts.join("\n\n")}
7799
+ `;
7800
+ }
7801
+ function previousText(items) {
7802
+ const open = items.filter((item) => item.result === "fail" && item.id !== JUDGE_NOT_RUN_ITEM_ID && item.id !== REVIEWED_COMMIT_ITEM_ID);
7803
+ if (open.length === 0) return void 0;
7804
+ const defects = open.map((item) => ({ id: item.id, ...item.reason === void 0 ? {} : { reason: item.reason }, refs: (item.refs ?? []).map((ref) => ({ path: ref.path, ...ref.line === void 0 ? {} : { line: ref.line } })) }));
7805
+ return `${JSON.stringify({ commit: open[0].commit ?? null, defects }, null, 2)}
7806
+ `;
7807
+ }
7808
+ function mergeAnswers(answers) {
7809
+ const items = [];
7810
+ const earlier = /* @__PURE__ */ new Set();
7811
+ const keyOf2 = (entry) => {
7812
+ const place = entry.refs?.[0];
7813
+ return [entry.id, entry.result, place?.path ?? "", place?.line ?? ""].join("\0");
7814
+ };
7815
+ for (const answer of answers) {
7816
+ const kept = answer.items.filter((entry) => !earlier.has(keyOf2(entry)));
7817
+ for (const entry of kept) earlier.add(keyOf2(entry));
7818
+ items.push(...kept);
7819
+ }
7820
+ const lists = answers.flatMap((answer) => answer.reviewed === void 0 ? [] : [answer.reviewed]);
7821
+ const reviewed = lists.length === 0 ? void 0 : [...new Set(lists.flat())];
7822
+ const failed = answers.some((answer) => answer.result === "fail") || items.some((entry) => entry.result === "fail");
7823
+ const result = failed ? "fail" : answers.every((answer) => answer.result === "pass") ? "pass" : void 0;
7824
+ return { ...result === void 0 ? {} : { result }, items, ...reviewed === void 0 ? {} : { reviewed } };
7825
+ }
7826
+ function unreviewedItem(changed, reviewed, commit) {
7827
+ if (reviewed === void 0) return void 0;
7828
+ const read = new Set(reviewed.map((path) => path.replace(/^\/+/, "").replace(/^outerlayer\/judge\/tree\//, "")));
7829
+ const counted = changed.filter((file) => !file.generated && file.path !== "?");
7830
+ const missed = counted.filter((file) => !read.has(file.path));
7831
+ if (missed.length === 0) return void 0;
7832
+ const room = CHECK_ITEM_REASON_MAX_LENGTH - 40;
7833
+ let reason = `${missed.length} of ${counted.length} changed files were not reviewed: `;
7834
+ let listed = 0;
7835
+ for (const file of missed) {
7836
+ const next = `${listed === 0 ? "" : ", "}${file.path}`;
7837
+ if (reason.length + next.length > room) break;
7838
+ reason += next;
7839
+ listed += 1;
7840
+ }
7841
+ if (listed < missed.length) reason += ` and ${missed.length - listed} more`;
7842
+ return { id: UNREVIEWED_FILES_ITEM_ID, result: "skipped", commit, reason: `${reason}.` };
7843
+ }
7844
+
7715
7845
  // src/runner/judge.ts
7716
7846
  var LIMIT_KEY_TAIL = " (runner.checks.timeLimitMinutes)";
7717
7847
  var MAX_DIFF_BYTES = 4 * 1024 * 1024;
@@ -7719,13 +7849,17 @@ var noAgentProgram = (label) => `the image has no ${label} for the judge`;
7719
7849
  var REPORT_CAPTION = "The host's criteria judge, each criterion judged against the tests that prove it";
7720
7850
  var WHOLE_REPORT_CAPTION = "The host's judge of the change as a whole";
7721
7851
  var CODE_REVIEW_BRIEF = "code-review-judge.md";
7722
- function codeReviewCheck() {
7723
- let text2;
7852
+ var REVIEW_TERRITORIES = "review-briefs.md";
7853
+ var CODE_REVIEW_EFFORT = "high";
7854
+ function buildReference(name) {
7724
7855
  try {
7725
- text2 = readFileSync(join(resolvePackRoot(), "maintained", "outerlayer-build", "references", CODE_REVIEW_BRIEF), "utf8");
7856
+ return readFileSync(join(resolvePackRoot(), "maintained", "outerlayer-build", "references", name), "utf8");
7726
7857
  } catch {
7858
+ return void 0;
7727
7859
  }
7728
- return { name: CODE_REVIEW_NAME, builtIn: true, judge: { brief: CODE_REVIEW_BRIEF, text: text2, subjects: "none" } };
7860
+ }
7861
+ function codeReviewCheck() {
7862
+ return { name: CODE_REVIEW_NAME, builtIn: true, judge: { brief: CODE_REVIEW_BRIEF, text: buildReference(CODE_REVIEW_BRIEF), subjects: "none" } };
7729
7863
  }
7730
7864
  function treeFileText(root, path) {
7731
7865
  const segments = path.split("/");
@@ -7773,6 +7907,16 @@ async function hostPassedNames(config, item, fetchImpl) {
7773
7907
  }
7774
7908
  return [...latest].filter(([, result]) => result === "pass").map(([name]) => name);
7775
7909
  }
7910
+ async function earlierReview(config, workItem, fetchImpl) {
7911
+ let newest = [];
7912
+ for await (const { name, source, items } of resultsOf(config, workItem, fetchImpl)) {
7913
+ if (name !== CODE_REVIEW_NAME || source !== "host") continue;
7914
+ const parsed = CheckItemsSchema.safeParse(items);
7915
+ if (!parsed.success || parsed.data.some((item) => item.id === JUDGE_NOT_RUN_ITEM_ID)) continue;
7916
+ newest = parsed.data;
7917
+ }
7918
+ return newest;
7919
+ }
7776
7920
  async function hostReviewed(config, workItem, commit, fetchImpl) {
7777
7921
  for await (const { name, source, items } of resultsOf(config, workItem, fetchImpl)) {
7778
7922
  if (name !== CODE_REVIEW_NAME || source !== "host" || !Array.isArray(items)) continue;
@@ -8003,6 +8147,56 @@ async function runJudge(input) {
8003
8147
  const run = outcome === "timeout" ? { kind: "timeout" } : { kind: "exited", status: outcome.status, stdout: outcome.stdout, stderr: outcome.stderr };
8004
8148
  return { reply: readJudgeReply(run, minutes, runtime.agents), answer: parseJudgeAnswer(answerText), report };
8005
8149
  };
8150
+ const reviewSideBySide = async (files, runs) => {
8151
+ try {
8152
+ await environment.prepare(files, branchDir);
8153
+ } catch (err) {
8154
+ return { ok: false, reason: `the judge could not be run: ${describeCallFailure(err)}` };
8155
+ }
8156
+ const started = runs.map((territory, index) => {
8157
+ const answerName = index === 0 ? "items.json" : `items-${territory.name}.json`;
8158
+ const answer = `${JUDGE_DIR}/${answerName}`;
8159
+ const command = judgeCommand(
8160
+ { brief: withAnswerProtocol(territoryBrief(brief, territory), "none", { reviewed: true, answer }), credential, effort: CODE_REVIEW_EFFORT, answer },
8161
+ runtime.agents
8162
+ );
8163
+ const settled = environment.run(command, { logPath: join(jobDir, index === 0 ? "judge.log" : `judge-${territory.name}.log`) }).then(
8164
+ (result) => result,
8165
+ (err) => err instanceof Error ? err : new Error(String(err))
8166
+ );
8167
+ return { territory, answerName, settled, outcome: void 0 };
8168
+ });
8169
+ for (const run of started) void run.settled.then((outcome) => run.outcome = outcome);
8170
+ const timer = timeoutAfter(limitMinutes * 6e4, deps.sleep);
8171
+ let timedOut;
8172
+ try {
8173
+ timedOut = await Promise.race([Promise.all(started.map((run) => run.settled)).then(() => "done"), timer.done]) === "timeout";
8174
+ } finally {
8175
+ timer.cancel();
8176
+ }
8177
+ const answers = await Promise.all(
8178
+ started.map(async (run) => {
8179
+ try {
8180
+ return parseJudgeAnswer(await environment.readItems(run.answerName));
8181
+ } catch (err) {
8182
+ log.error(`${tag} the ${run.territory.name} review's answer could not be read: ${describeCallFailure(err)}`);
8183
+ return void 0;
8184
+ }
8185
+ })
8186
+ );
8187
+ if (timedOut) await environment.stop().catch((err) => log.error(`${tag} the judge could not be stopped after its time ran out: ${describeCallFailure(err)}`));
8188
+ await environment.clear?.().catch((err) => log.error(`${tag} what the judge left in its folder could not be removed: ${describeCallFailure(err)}`));
8189
+ if (started[0].outcome instanceof Error) return { ok: false, reason: `the judge could not be run: ${describeCallFailure(started[0].outcome)}` };
8190
+ return {
8191
+ ok: true,
8192
+ runs: started.map((run, index) => {
8193
+ const outcome = run.outcome;
8194
+ if (outcome instanceof Error) log.error(`${tag} the ${run.territory.name} review could not be run: ${describeCallFailure(outcome)}`);
8195
+ const ran = outcome === void 0 ? { kind: "timeout" } : outcome instanceof Error ? { kind: "exited", status: 1, stdout: "", stderr: outcome.message } : { kind: "exited", status: outcome.status, stdout: outcome.stdout, stderr: outcome.stderr };
8196
+ return { territory: run.territory, reply: readJudgeReply(ran, minutes, runtime.agents), answer: answers[index] };
8197
+ })
8198
+ };
8199
+ };
8006
8200
  const linkTo = (path, line2) => {
8007
8201
  const href = finder.testHref(repo, head, path, line2 ?? 1);
8008
8202
  return href !== null && href.length <= CHECK_ITEM_HREF_MAX_LENGTH && /^https:\/\/\S+$/.test(href) ? { href } : {};
@@ -8013,6 +8207,34 @@ async function runJudge(input) {
8013
8207
  ownTree = true;
8014
8208
  } catch {
8015
8209
  }
8210
+ if (criteria === void 0 && check.builtIn === true) {
8211
+ const place = (path, line2) => treeFileText(branchDir, path) === void 0 ? {} : linkTo(path, line2);
8212
+ const { files, changed } = reviewFiles(diff);
8213
+ const workItem = await readItem();
8214
+ const issue = issueText(workItem, criteriaOf(workItem));
8215
+ if (issue !== void 0) files["issue.md"] = issue;
8216
+ try {
8217
+ const earlier = previousText(await earlierReview(itemCalls(config, job), workItem, deps.fetchImpl));
8218
+ if (earlier !== void 0) files["previous.json"] = earlier;
8219
+ } catch (err) {
8220
+ log.line(`${tag} the item's earlier code review could not be read, so the review runs without it: ${describeCallFailure(err)}`);
8221
+ }
8222
+ const runs = territories(changed, buildReference(REVIEW_TERRITORIES));
8223
+ log.line(`${tag} code review: ${changed.length} changed ${changed.length === 1 ? "file" : "files"}, reviewers ${runs.map((run) => run.name).join(", ")}`);
8224
+ const reviewed = await reviewSideBySide(files, runs);
8225
+ if (!reviewed.ok) return await fail(check, reviewed.reason);
8226
+ const answers = [];
8227
+ for (const { territory, reply, answer } of reviewed.runs) {
8228
+ if (answer?.ok === true) answers.push(answer.answer);
8229
+ else log.line(`${tag} the ${territory.name} review gave no answer: ${answer?.ok === false ? answer.reason : reply.kind === "none" ? reply.reason : "it wrote no answer file"}`);
8230
+ }
8231
+ const first = reviewed.runs[0];
8232
+ if (answers.length === 0) return await finishWhole(check, { reply: first.reply, answer: first.answer, items: void 0, report: void 0, head, branch });
8233
+ const merged = mergeAnswers(answers);
8234
+ const items2 = wholeItems({ answer: merged, commit: head, treeRoot: JUDGE_TREE, place, ownTree, patch: diff, clean: cleanReason });
8235
+ const unreviewed = unreviewedItem(changed, merged.reviewed, head);
8236
+ return await finishWhole(check, { reply: first.reply, answer: { ok: true, answer: merged }, items: unreviewed === void 0 ? items2 : [...items2, unreviewed], report: void 0, head, branch });
8237
+ }
8016
8238
  if (criteria === void 0) {
8017
8239
  let ran;
8018
8240
  try {
@@ -8697,6 +8919,13 @@ function readTunnelRecord(path) {
8697
8919
  }
8698
8920
  }
8699
8921
  var VALUES_NOT_HELD = "the runner restarted and could not read this build's variables from its factory again, so it cannot remove their values from what it uploads";
8922
+ function readProofsLog(jobDirPath) {
8923
+ try {
8924
+ return readFileSync(join(jobDirPath, PROOFS_LOG), "utf8");
8925
+ } catch {
8926
+ return "";
8927
+ }
8928
+ }
8700
8929
  var SCRUBBED_RELEASE_LOG = "release-log.txt";
8701
8930
  function readScrubbedReleaseLog(jobDirPath) {
8702
8931
  try {
@@ -8852,8 +9081,14 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
8852
9081
  const recorded = build !== void 0 ? await recordProofsInContainer({ config, runtime: build.runtime, job, jobDir: jobDirPath, log: (line2) => log.line(`${tag} ${line2}`) }) : vmBuild !== void 0 ? await recordProofsInMicroVm({ config, runtime: vmBuild.runtime, job, jobDir: jobDirPath }) : sandboxBuild !== void 0 ? await recordProofsInSandbox({ config, runtime: sandboxBuild.runtime, job, jobDir: jobDirPath, log: (line2) => log.line(`${tag} ${line2}`) }) : job.build?.exec !== void 0 ? await runRecordProofsViaExec(config, job, jobDirPath, spawnFn) : await runRecordProofs(config, job, jobDirPath, spawnFn);
8853
9082
  const took = formatDuration(now().getTime() - startedMs);
8854
9083
  if (recorded.ok) log.line(`${tag} proofs ok (${took}) \xB7 see ${PROOFS_LOG}`);
8855
- else log.error(`${tag} proofs not all current (${took}): ${recorded.reason ?? "no reason given"} \xB7 see ${PROOFS_LOG} \xB7 continuing`);
9084
+ else {
9085
+ job.proofsNotCurrent = recordingCause(readProofsLog(jobDirPath)) ?? recorded.reason ?? "no reason given";
9086
+ writeJobFile(jobFilePath, job);
9087
+ log.error(`${tag} proofs not all current (${took}): ${job.proofsNotCurrent} \xB7 see ${PROOFS_LOG} \xB7 continuing`);
9088
+ }
8856
9089
  } catch (err) {
9090
+ job.proofsNotCurrent = `the recording stopped: ${describeCallFailure(err)}`;
9091
+ writeJobFile(jobFilePath, job);
8857
9092
  log.error(`${tag} the host's proof recording stopped: ${describeCallFailure(err)} \xB7 continuing`);
8858
9093
  }
8859
9094
  }
@@ -9019,7 +9254,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9019
9254
  if (decision.outcome === "incomplete") {
9020
9255
  const release2 = unfinishedRelease(
9021
9256
  // The judge prefix would push the agent's sentence past the release's bound, and the judge has nothing to judge without a pull request.
9022
- scrubReason(decision.agentReason === true ? decision.reason : incompleteReason(decision.reason, job.judgeNotRun), config, void 0, jobDirPath),
9257
+ scrubReason(decision.agentReason === true ? decision.reason : incompleteReason(decision.reason, job.judgeNotRun, job.proofsNotCurrent), config, void 0, jobDirPath),
9023
9258
  deps.container?.credentials.get(jobDirPath)?.reason
9024
9259
  );
9025
9260
  outcome = release2.outcome;
@@ -12131,7 +12366,7 @@ function containerJudgeEnvironment(input) {
12131
12366
  },
12132
12367
  run: (command, opts) => runtime.host.exec({ container: state.container, user, workdir: command.cwd, env: { literals: command.env, passed: {} }, argv: command.argv }, { logPath: opts.logPath }),
12133
12368
  readReport: () => readJudgeFile(JUDGE_REPORT, "report.html", MAX_REPORT_BYTES),
12134
- readItems: () => readJudgeFile(JUDGE_ITEMS, "items.json", MAX_ITEMS_BYTES),
12369
+ readItems: (name = "items.json") => readJudgeFile(name === "items.json" ? JUDGE_ITEMS : `${JUDGE_DIR}/${answerFileName(name)}`, name, MAX_ITEMS_BYTES),
12135
12370
  // The judge's files belong to the build's user, and Claude Code makes some of its folders private to it, so the runner's user cannot remove them from the
12136
12371
  // host. Every capability is dropped in the container, so root there could not either; the build's user removes its own, and the runner removes the rest.
12137
12372
  clear: async () => {
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-6QKXP6FD.js';
4
- import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-YPWMV3CQ.js';
3
+ import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-RMXRQ3OC.js';
4
+ import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-X45WDWSV.js';
5
5
  import { compareVersions } from './chunk-TQMI335S.js';
6
- import { runnerDir, RUNNER_DIR_MODE } from './chunk-AI25ZRE3.js';
6
+ import { runnerDir, RUNNER_DIR_MODE } from './chunk-LO3PSFNT.js';
7
7
  import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
8
8
  import { dirname, sep, join } from 'path';
9
9
  import { spawnSync } from 'child_process';
@@ -6,7 +6,7 @@ import { readCloudConfigStrict, CloudConfigError, readCloudConfig, writeCloudCon
6
6
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
8
  import { homeFromEnv } from './chunk-352DHUTP.js';
9
- import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-2VNT47DG.js';
9
+ import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-HE53NIRE.js';
10
10
  import { generateKeyPairSync, privateDecrypt, constants, createPrivateKey } from 'crypto';
11
11
  import { spawn } from 'child_process';
12
12
  import { fstatSync, existsSync, readdirSync, readFileSync, rmSync, mkdirSync, chmodSync, writeFileSync } from 'fs';
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-3BMUYCRC.js';
4
- import { WorkCommandError, resolveCredentials, getJson } from './chunk-XGFXQRIO.js';
5
- import { sanitizeTerminal } from './chunk-OCQ5FQZR.js';
3
+ import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-HQMSXIDX.js';
4
+ import { WorkCommandError, resolveCredentials, getJson } from './chunk-7TM2E4RI.js';
5
+ import { sanitizeTerminal } from './chunk-2DVQHK37.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { defaultFetch } from './chunk-TUA57BFL.js';
7
+ import { defaultFetch } from './chunk-OPGF3FUY.js';
8
8
  import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
9
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
10
  import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
11
- import { parseProofsConfig } from './chunk-AOPMNZT5.js';
12
- import { resolveRepoIdentity } from './chunk-JZF5AA6N.js';
13
- import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit, isTestSourcePath } from './chunk-2VNT47DG.js';
11
+ import { parseProofsConfig } from './chunk-OKELGJNN.js';
12
+ import { resolveRepoIdentity } from './chunk-N2QYP3NQ.js';
13
+ import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit, isTestSourcePath } from './chunk-HE53NIRE.js';
14
14
  import { spawnSync } from 'child_process';
15
15
  import { createHash } from 'crypto';
16
16
  import { readFileSync, readdirSync, lstatSync, statSync, existsSync } from 'fs';
@@ -129,14 +129,14 @@ function governingDir(cwd) {
129
129
  async function testProofMode(cwd) {
130
130
  const dir = governingDir(cwd);
131
131
  if (dir === void 0) return "any";
132
- const { testProofIn } = await import('./host-checks-BIGATZFK.js');
132
+ const { testProofIn } = await import('./host-checks-CSAVTTJ5.js');
133
133
  return testProofIn(dir);
134
134
  }
135
135
  async function judgeCheckName(cwd) {
136
136
  const dir = governingDir(cwd);
137
137
  if (dir === void 0) return {};
138
138
  if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
139
- const { checksIn, isJudgeCheck } = await import('./host-checks-BIGATZFK.js');
139
+ const { checksIn, isJudgeCheck } = await import('./host-checks-CSAVTTJ5.js');
140
140
  const quiet = { line: () => void 0, error: () => void 0 };
141
141
  const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
142
142
  return check === void 0 ? {} : { name: check.name };
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
372
372
  async function runWorkProofsCommand(opts) {
373
373
  try {
374
374
  if (opts.record) {
375
- const { runWorkProofsRecord } = await import('./work-proofs-record-76PL2Y2Y.js');
375
+ const { runWorkProofsRecord } = await import('./work-proofs-record-PWYMY3XW.js');
376
376
  const result2 = await runWorkProofsRecord(opts);
377
377
  process.exitCode = result2.exitCode;
378
378
  return;
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RemovedTargetError, removedTargetError } from './chunk-L2D465QT.js';
4
- import { removeRetiredSkills } from './chunk-EVJCOO4S.js';
5
- import { defaultFetch, resolveGatewayCredentials } from './chunk-TUA57BFL.js';
6
- import { withTokenHeader } from './chunk-ZACEJPSM.js';
3
+ import { RemovedTargetError, removedTargetError } from './chunk-PM4YDVAX.js';
4
+ import { removeRetiredSkills } from './chunk-UCDCPQXU.js';
5
+ import { defaultFetch, resolveGatewayCredentials } from './chunk-OPGF3FUY.js';
6
+ import { withTokenHeader } from './chunk-QP6SPQU5.js';
7
7
  import { appendContextProvenance } from './chunk-545P7JY7.js';
8
8
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
9
9
  import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
10
- import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-AOPMNZT5.js';
10
+ import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-OKELGJNN.js';
11
11
  import { homeFromEnv } from './chunk-352DHUTP.js';
12
12
  import { execFileSync } from 'child_process';
13
13
  import { existsSync, mkdirSync, writeFileSync, chmodSync, lstatSync, readFileSync, copyFileSync } from 'fs';
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { runEmit } from './chunk-4JU3ICKR.js';
4
- import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-UMEGPDPT.js';
5
- import { installStarterPack } from './chunk-LCZO4Y7A.js';
6
- import { listWithAnd } from './chunk-7NQWXGC5.js';
7
- import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-Y4IY7NI2.js';
3
+ import { runEmit } from './chunk-2XEQCSCQ.js';
4
+ import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-ZWWU7COR.js';
5
+ import { installStarterPack } from './chunk-HGWDBTQ3.js';
6
+ import { listWithAnd } from './chunk-KFHF3GBH.js';
7
+ import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-Q6ANHBJK.js';
8
8
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { resolveGitCommonDir, defaultGitRunner } from './chunk-ZFQ4XHLK.js';
9
+ import { resolveGitCommonDir, defaultGitRunner } from './chunk-JAURZKSE.js';
10
10
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
11
- import { linkedAgentsPath } from './chunk-SQILPZYC.js';
11
+ import { linkedAgentsPath } from './chunk-TNAUQADA.js';
12
12
  import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
13
- import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-AOPMNZT5.js';
13
+ import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-OKELGJNN.js';
14
14
  import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
15
15
  import { execFileSync } from 'child_process';
16
16
  import { existsSync, mkdirSync, writeFileSync } from 'fs';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-AOPMNZT5.js';
3
+ import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-OKELGJNN.js';
4
4
  import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-CDDED64E.js';
5
5
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
6
6
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-ZN3QHFYG.js';
4
- import { UNIT_MARKER } from './chunk-SPGMETJ6.js';
5
- import { runnerDir } from './chunk-AI25ZRE3.js';
3
+ import { helperSocketPath } from './chunk-IEKXNDKX.js';
4
+ import { UNIT_MARKER } from './chunk-4K2EMRJP.js';
5
+ import { runnerDir } from './chunk-LO3PSFNT.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
8
8
 
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { sanitizeTerminal } from './chunk-OCQ5FQZR.js';
4
- import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-Y4IY7NI2.js';
5
- import { DEFAULT_DASHBOARD } from './chunk-2KL345FW.js';
6
- import { cliFetch, resolveGatewayCredentials } from './chunk-TUA57BFL.js';
3
+ import { sanitizeTerminal } from './chunk-2DVQHK37.js';
4
+ import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-Q6ANHBJK.js';
5
+ import { DEFAULT_DASHBOARD } from './chunk-IJ4DF5QS.js';
6
+ import { cliFetch, resolveGatewayCredentials } from './chunk-OPGF3FUY.js';
7
7
  import { readCloudConfig } from './chunk-HWVMRETT.js';
8
8
  import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
9
9
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
10
- import { defaultAgents } from './chunk-AOPMNZT5.js';
11
- import { remoteLookupFailed } from './chunk-JZF5AA6N.js';
10
+ import { defaultAgents } from './chunk-OKELGJNN.js';
11
+ import { remoteLookupFailed } from './chunk-N2QYP3NQ.js';
12
12
  import { execFileSync } from 'child_process';
13
13
  import { lstatSync } from 'fs';
14
14
  import { join, relative } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { defaultAgents } from './chunk-AOPMNZT5.js';
3
+ import { defaultAgents } from './chunk-OKELGJNN.js';
4
4
  import { openSync, fstatSync, readSync, closeSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-ULHJZ4HQ.js';
4
- import { parseSize } from './chunk-N36RPTGJ.js';
5
- import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-ZACEJPSM.js';
6
- import { builderDiskPinned } from './chunk-2Z7JU2LO.js';
3
+ import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-LOG4LBUY.js';
4
+ import { parseSize } from './chunk-2J3X2Z4F.js';
5
+ import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-QP6SPQU5.js';
6
+ import { builderDiskPinned } from './chunk-GTKR2YEZ.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
8
  import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
9
9
  import { hostname } from 'os';