@outerlayer/cli 0.38.0-next.20261106190200 → 0.38.0-next.20261106232046

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 (178) hide show
  1. package/README.md +3 -3
  2. package/dist/agent-setup-IJNDJ4XL.js +40 -0
  3. package/dist/{agent-subcommand-PSI3BAXM.js → agent-subcommand-XECZFIAS.js} +4 -4
  4. package/dist/{artifact-link-cmd-QP6VO7AJ.js → artifact-link-cmd-F6M2BDT7.js} +2 -2
  5. package/dist/{bridge-3WAVT5SX.js → bridge-LDKKFAHH.js} +7 -7
  6. package/dist/{build-4KG7H2XK.js → build-PTFRHSXI.js} +13 -13
  7. package/dist/{build-disk-GGGJ237B.js → build-disk-EO2VG3MF.js} +11 -11
  8. package/dist/build-info.json +1 -1
  9. package/dist/{builder-HV7PUSZZ.js → builder-LCIBBOWQ.js} +10 -10
  10. package/dist/caller-Y3RGYXHU.js +23 -0
  11. package/dist/{check-LENGOFUF.js → check-BNDMAAVS.js} +56 -56
  12. package/dist/{chunk-2MA2KWHN.js → chunk-2IVRTP6M.js} +1 -1
  13. package/dist/{chunk-NEEMG462.js → chunk-2KL345FW.js} +1 -1
  14. package/dist/{chunk-YXXJBHHF.js → chunk-2VNT47DG.js} +10 -2
  15. package/dist/{chunk-2VN36ZPA.js → chunk-3HEBSWNE.js} +1 -1
  16. package/dist/{chunk-ZGN3NOVS.js → chunk-3UKDQNFF.js} +1 -1
  17. package/dist/{chunk-ANFGBAWY.js → chunk-6AKP3FBS.js} +5 -5
  18. package/dist/{chunk-KMUERD5F.js → chunk-6IXZHORY.js} +4 -4
  19. package/dist/{chunk-UF3YTRGU.js → chunk-6Y4ZE74I.js} +4 -4
  20. package/dist/{chunk-G2ITKUX4.js → chunk-7GQE5D72.js} +1 -1
  21. package/dist/{chunk-3KVYSJAL.js → chunk-7VVTZNUP.js} +6 -6
  22. package/dist/{chunk-27P5FSZT.js → chunk-B7CAUXSV.js} +6 -6
  23. package/dist/{chunk-76Y35TWH.js → chunk-BEQYO2VO.js} +1 -1
  24. package/dist/{chunk-GM3H4ZHG.js → chunk-BJYX3PMU.js} +1 -1
  25. package/dist/{chunk-HTQFAHXD.js → chunk-BU25W7GF.js} +2 -2
  26. package/dist/{chunk-MCLSXTLY.js → chunk-C3P637LO.js} +1 -1
  27. package/dist/{chunk-6744TXEY.js → chunk-DDPCKTVN.js} +7 -7
  28. package/dist/{chunk-U4ZHNHCF.js → chunk-DRUM7NWK.js} +1 -1
  29. package/dist/{chunk-M4JFGNG7.js → chunk-EOXQCUFJ.js} +2 -2
  30. package/dist/{chunk-USJVENIV.js → chunk-FPPBL7ZC.js} +1 -1
  31. package/dist/{chunk-TOVSIUEJ.js → chunk-FSQDS7A6.js} +1 -1
  32. package/dist/{chunk-CFTSVW7W.js → chunk-FSYEDSSA.js} +1 -1
  33. package/dist/{chunk-6BPCEGJL.js → chunk-FZD6GIW5.js} +9 -9
  34. package/dist/{chunk-7B4A6PBC.js → chunk-GMLYSAKU.js} +3 -3
  35. package/dist/{chunk-NMCRJ7NZ.js → chunk-HCIOUSUX.js} +2 -3
  36. package/dist/{chunk-IOURL3LH.js → chunk-HI5FSBWD.js} +10 -10
  37. package/dist/{chunk-JKYCEXZX.js → chunk-ICKFR2DB.js} +7 -7
  38. package/dist/{chunk-RFBJKK2L.js → chunk-IQHREL5T.js} +8 -8
  39. package/dist/{chunk-VRSUCU2N.js → chunk-LPTMKPCD.js} +1 -1
  40. package/dist/{chunk-7ATHSAAT.js → chunk-LQEI4HZF.js} +1 -1
  41. package/dist/{chunk-5MWE5IOO.js → chunk-LYBHKNEG.js} +1 -1
  42. package/dist/{chunk-YZ5M7S7U.js → chunk-LYORNXIT.js} +1 -1
  43. package/dist/{chunk-OVHBDADU.js → chunk-MLM4BYK2.js} +1 -1
  44. package/dist/{chunk-DF6ZHOIA.js → chunk-MXSQINKG.js} +7 -7
  45. package/dist/{chunk-BEKYNGLH.js → chunk-NDLWXIVK.js} +1 -1
  46. package/dist/{chunk-6ZSUJ3ES.js → chunk-NMSWL2N3.js} +3 -3
  47. package/dist/{chunk-T7KETYNW.js → chunk-NOBB3LEO.js} +1 -1
  48. package/dist/{chunk-OMCDOJO2.js → chunk-O3TOA2KE.js} +3 -3
  49. package/dist/{chunk-XDVLF6OT.js → chunk-OAOZDJYT.js} +3 -3
  50. package/dist/{chunk-IXB2IIEW.js → chunk-OCQ5FQZR.js} +1 -1
  51. package/dist/{chunk-GM4TY5H2.js → chunk-OO33S4AF.js} +7 -5
  52. package/dist/{chunk-ML3O3A3Q.js → chunk-OSHKKESX.js} +77 -8
  53. package/dist/{chunk-TDUBZ4FR.js → chunk-PJNOTSB5.js} +1 -1
  54. package/dist/{chunk-FBBI6K7D.js → chunk-PVLDVUNJ.js} +2 -2
  55. package/dist/{chunk-G2EWER4K.js → chunk-QF6US5YN.js} +2 -2
  56. package/dist/{chunk-FCU7WSCV.js → chunk-QHT6PIFP.js} +4 -4
  57. package/dist/{chunk-JW25JVK4.js → chunk-QQSXVGVH.js} +6 -6
  58. package/dist/{chunk-TMYBADTM.js → chunk-QZAZPRDW.js} +5 -5
  59. package/dist/{chunk-JKQAOSSX.js → chunk-RWNVQSGX.js} +3 -3
  60. package/dist/{chunk-4PH3KXDP.js → chunk-RZXP427Z.js} +1 -1
  61. package/dist/{chunk-QHOC32DP.js → chunk-S35KTDTM.js} +10 -10
  62. package/dist/{chunk-LRE4QIMD.js → chunk-SDUCKX46.js} +9 -9
  63. package/dist/{chunk-NTRXOTO7.js → chunk-SEAVWMW2.js} +6 -6
  64. package/dist/{chunk-SUMXGPSG.js → chunk-SOB4KVRZ.js} +6 -6
  65. package/dist/{chunk-E2ZWGLNZ.js → chunk-SYENSVOK.js} +3 -3
  66. package/dist/{chunk-VOSC32UF.js → chunk-SZQKS4QK.js} +6 -6
  67. package/dist/{chunk-5QBTW367.js → chunk-TWWAV67F.js} +5 -5
  68. package/dist/{chunk-ZYQT6Q5R.js → chunk-V26DDAWZ.js} +142 -74
  69. package/dist/{chunk-ZOWUJUSF.js → chunk-V43NFQE3.js} +1 -1
  70. package/dist/{chunk-5BDYRHZZ.js → chunk-VLAVNWM4.js} +7 -7
  71. package/dist/{chunk-RDPLNQFI.js → chunk-VW5NG2AR.js} +16 -16
  72. package/dist/{chunk-7KF36CVC.js → chunk-VYAFSV43.js} +1 -1
  73. package/dist/{chunk-GQEVQIS6.js → chunk-VZGTPITG.js} +1 -1
  74. package/dist/{chunk-LFBQL4AP.js → chunk-WCBLLIPD.js} +5 -5
  75. package/dist/{chunk-TFBNHDPT.js → chunk-WCQJNDQC.js} +4 -4
  76. package/dist/{chunk-YSIVKYLW.js → chunk-WDJPGE6K.js} +4 -4
  77. package/dist/{chunk-677TCNML.js → chunk-WX7XACEU.js} +1 -1
  78. package/dist/{chunk-H2L5NB5U.js → chunk-X25VXXCF.js} +1 -1
  79. package/dist/{chunk-A24MNKYN.js → chunk-X32HZMMA.js} +4 -4
  80. package/dist/{chunk-F2PTLH3J.js → chunk-XDURUWQP.js} +29 -28
  81. package/dist/{chunk-ZPCUXCQX.js → chunk-XKJZHY4J.js} +1 -1
  82. package/dist/{chunk-TDBP62O2.js → chunk-XSEAGCYW.js} +7 -7
  83. package/dist/{chunk-3E65OLJ4.js → chunk-YFARFA4Y.js} +3 -3
  84. package/dist/{chunk-YL6GWLK5.js → chunk-YSCRMX2T.js} +8 -8
  85. package/dist/{claude-launcher-G73I5AGW.js → claude-launcher-62NZAUKT.js} +7 -7
  86. package/dist/{cli-5SILU2LX.js → cli-GJQGNNFM.js} +147 -147
  87. package/dist/{command-DBBEP7VM.js → command-3QXN5ZTK.js} +50 -50
  88. package/dist/{config-KOSTQZXG.js → config-4YPIDOHH.js} +12 -12
  89. package/dist/{connect-cmd-UNBJYFYM.js → connect-cmd-GAWR7QSH.js} +13 -13
  90. package/dist/{container-start-AAOLPVAH.js → container-start-FZCTPBZG.js} +48 -48
  91. package/dist/{context-cleanup-MKVMFRNR.js → context-cleanup-L3ZKG6EU.js} +4 -4
  92. package/dist/{context-show-cmd-P3LBILMP.js → context-show-cmd-YJ4IJ2WI.js} +14 -14
  93. package/dist/{control-plane-launch-2GOJKA53.js → control-plane-launch-GOKEVTPX.js} +14 -14
  94. package/dist/{demo-record-cmd-BPINCNYS.js → demo-record-cmd-AZSEQXO4.js} +8 -8
  95. package/dist/{demo-voice-cmd-HBK3TWM5.js → demo-voice-cmd-KHEMTR5T.js} +20 -20
  96. package/dist/{dist-MUOHO52Q.js → dist-RMEOTTVL.js} +2 -2
  97. package/dist/{docker-NUPVSMVQ.js → docker-QMKIWXHF.js} +10 -10
  98. package/dist/{doctor-GHRSOZLB.js → doctor-5PTO2DN7.js} +50 -50
  99. package/dist/{emit-artifact-cmd-CULA5AM4.js → emit-artifact-cmd-72QEOEJH.js} +19 -19
  100. package/dist/{emit-cmd-746N7PYR.js → emit-cmd-X5F5HUTQ.js} +7 -7
  101. package/dist/{emit-criteria-cmd-NY4RPUPD.js → emit-criteria-cmd-HTHETRH6.js} +16 -16
  102. package/dist/{emit-demo-cmd-MYXTGMJI.js → emit-demo-cmd-LFYJURFC.js} +20 -20
  103. package/dist/{emit-finding-cmd-ZGGMPQFT.js → emit-finding-cmd-GFWCMJFY.js} +16 -16
  104. package/dist/{emit-result-cmd-GNEQHIIZ.js → emit-result-cmd-FTWLKM6G.js} +18 -18
  105. package/dist/{emit-step-cmd-NYCJ3XFQ.js → emit-step-cmd-J4L2OAWE.js} +16 -16
  106. package/dist/{exec-client-QHB62OZ6.js → exec-client-YQH4ZSRM.js} +8 -8
  107. package/dist/find-unit-F3Q54LLR.js +24 -0
  108. package/dist/{findings-cmd-ZINCPCAB.js → findings-cmd-VFE7VINC.js} +16 -16
  109. package/dist/{fleet-readiness-FZCSJ7FY.js → fleet-readiness-FGQPCFSP.js} +14 -14
  110. package/dist/{governing-source-CQML5N2D.js → governing-source-NMZSHEHR.js} +21 -21
  111. package/dist/{guest-init-C6FWJVAQ.js → guest-init-DPZAVCWH.js} +9 -9
  112. package/dist/{hook-fast-6IOLZ45F.js → hook-fast-3VMKCCUO.js} +1 -1
  113. package/dist/{hook-install-VL4CEO4S.js → hook-install-TTF6LASI.js} +4 -4
  114. package/dist/host-checks-ANVIJJZI.js +79 -0
  115. package/dist/host-key-QZWN6ECO.js +18 -0
  116. package/dist/{image-tag-IBAYH5XH.js → image-tag-5TZ7MF5H.js} +8 -8
  117. package/dist/index.js +4 -4
  118. package/dist/{init-EIQFBAZI.js → init-5ZTKM5KM.js} +46 -46
  119. package/dist/init-6AAXECDJ.js +79 -0
  120. package/dist/{init-agent-7UQZFG5E.js → init-agent-FOR3XGZ2.js} +46 -46
  121. package/dist/{init-cmd-TNJXWFQU.js → init-cmd-7X22EFRG.js} +27 -27
  122. package/dist/{init-update-KJWMEKR3.js → init-update-JLOPXC5U.js} +24 -24
  123. package/dist/{install-cmd-UXH2LGVA.js → install-cmd-JDA4CNYW.js} +10 -10
  124. package/dist/{layout-YVTZDKVU.js → layout-AKKICGLZ.js} +4 -4
  125. package/dist/{login-browser-I6CWBA7K.js → login-browser-VNPN4FVO.js} +2 -2
  126. package/dist/{logs-22Y7QG42.js → logs-WPNNAY5E.js} +7 -7
  127. package/dist/loop-DFDQQC2Q.js +90 -0
  128. package/dist/machine-W3R5I6EM.js +79 -0
  129. package/dist/{machine-skills-6PJOJU5J.js → machine-skills-GGLBQANZ.js} +4 -4
  130. package/dist/{mcp-install-cmd-LJ7AYDDT.js → mcp-install-cmd-3NHDPAML.js} +4 -4
  131. package/dist/{mcp-serve-cmd-34LDKQSR.js → mcp-serve-cmd-CLVZFL37.js} +9 -9
  132. package/dist/{paths-2KOZGV5U.js → paths-PSLRVOVY.js} +7 -7
  133. package/dist/pending-GWDAXQSA.js +18 -0
  134. package/dist/{pidfile-FQBXIHX7.js → pidfile-5E4YPCTC.js} +8 -8
  135. package/dist/{record-7ENQ7Y5M.js → record-7ZMZA5QE.js} +8 -8
  136. package/dist/{relay-JLU7RTFS.js → relay-UUIHK5TY.js} +5 -5
  137. package/dist/{relay-protocol-AEIZCA3K.js → relay-protocol-MQVXSFN4.js} +5 -5
  138. package/dist/{runner-agents-I5YLJY7G.js → runner-agents-M5CMF2ZA.js} +4 -4
  139. package/dist/runner-env-3S64BNCU.js +24 -0
  140. package/dist/{runner-identity-MW53HCYG.js → runner-identity-3GMF6FKI.js} +10 -10
  141. package/dist/{runner-key-GERK5EV3.js → runner-key-NS5C5TTT.js} +46 -46
  142. package/dist/{session-sender-65X5PR7Q.js → session-sender-M325MH5U.js} +19 -19
  143. package/dist/{spec-cmd-3TNVJBN7.js → spec-cmd-QIVFOHR4.js} +17 -17
  144. package/dist/{starter-pack-PLSMFXBU.js → starter-pack-P5BRWSAP.js} +5 -5
  145. package/dist/state-5H5LGYWN.js +18 -0
  146. package/dist/{status-KGSQF55G.js → status-5YK3LOVJ.js} +46 -46
  147. package/dist/{sync-cmd-FNATZ5VL.js → sync-cmd-JHFRUMM5.js} +18 -18
  148. package/dist/update-steps-KFULBARX.js +80 -0
  149. package/dist/{watch-FEBBRV22.js → watch-TVHFOLVK.js} +18 -18
  150. package/dist/{work-claim-cmd-2EPUH3KT.js → work-claim-cmd-LTIAXIWH.js} +23 -23
  151. package/dist/{work-cmd-V5A3MDXV.js → work-cmd-VC353JLU.js} +16 -16
  152. package/dist/{work-comment-cmd-PUE47SUV.js → work-comment-cmd-SRQXRRJT.js} +18 -18
  153. package/dist/{work-demo-cmd-7Q3KW2OO.js → work-demo-cmd-INUFIHU4.js} +16 -16
  154. package/dist/{work-logs-cmd-SQBJX6MC.js → work-logs-cmd-TMJC7RRS.js} +16 -16
  155. package/dist/{work-open-pr-cmd-PNDF2CR5.js → work-open-pr-cmd-O6XW2YGD.js} +17 -17
  156. package/dist/{work-pr-cmd-U7WL7KYE.js → work-pr-cmd-QSE3BH3Z.js} +16 -16
  157. package/dist/{work-proofs-cmd-YHOM2NIH.js → work-proofs-cmd-FXSVPQZC.js} +18 -18
  158. package/dist/{work-proofs-record-CYIZ2RDH.js → work-proofs-record-KPRP3UAQ.js} +24 -24
  159. package/dist/{work-stop-cmd-ENRSBWFT.js → work-stop-cmd-J77H7RLL.js} +16 -16
  160. package/package.json +1 -1
  161. package/skill-pack/maintained/outerlayer-build/SKILL.md +3 -6
  162. package/skill-pack/maintained/outerlayer-build/references/code-review-judge.md +80 -0
  163. package/skill-pack/maintained/outerlayer-build/references/release.md +0 -15
  164. package/skill-pack/maintained/outerlayer-build/references/review-loop.md +1 -3
  165. package/skill-pack/maintained/outerlayer-evidence/SKILL.md +3 -7
  166. package/dist/agent-setup-RO2DJUF3.js +0 -40
  167. package/dist/caller-3P3AEY7W.js +0 -23
  168. package/dist/find-unit-UVS2FM7E.js +0 -24
  169. package/dist/host-checks-HPCMZ7XT.js +0 -79
  170. package/dist/host-key-5APXLMY2.js +0 -18
  171. package/dist/init-YD4MNH5U.js +0 -79
  172. package/dist/loop-SVE6TL6G.js +0 -90
  173. package/dist/machine-RQIO5VRG.js +0 -79
  174. package/dist/pending-RYWBDJCE.js +0 -18
  175. package/dist/runner-env-GXY2VMNH.js +0 -24
  176. package/dist/state-EKXXOPA5.js +0 -18
  177. package/dist/update-steps-3LOJ377U.js +0 -80
  178. package/skill-pack/validators/code-review.yaml +0 -30
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-GM4TY5H2.js';
3
+ import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-OO33S4AF.js';
4
4
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
5
5
  import { readFileSync } from 'fs';
6
6
  import { join } from 'path';
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-LRE4QIMD.js';
3
+ import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-SDUCKX46.js';
4
4
  import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
5
- import { detectActiveSession } from './chunk-GQEVQIS6.js';
6
- import { autoConnect } from './chunk-JKQAOSSX.js';
7
- import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-IXB2IIEW.js';
5
+ import { detectActiveSession } from './chunk-VZGTPITG.js';
6
+ import { autoConnect } from './chunk-RWNVQSGX.js';
7
+ import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-OCQ5FQZR.js';
8
8
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-T7KETYNW.js';
9
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-NOBB3LEO.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-H2L5NB5U.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-YXXJBHHF.js';
14
+ import { resolveRepoIdentity } from './chunk-X25VXXCF.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-2VNT47DG.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 { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-GM4TY5H2.js';
3
+ import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-OO33S4AF.js';
4
4
 
5
5
  createRequire(import.meta.url);
6
6
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-VOSC32UF.js';
4
- import { inspectService, realInspectProbes } from './chunk-HTQFAHXD.js';
3
+ import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-SZQKS4QK.js';
4
+ import { inspectService, realInspectProbes } from './chunk-BU25W7GF.js';
5
5
  import { realpathSync, readFileSync, readdirSync } from 'fs';
6
6
  import { resolve, dirname, join } from 'path';
7
7
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-YZ5M7S7U.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-LYORNXIT.js';
4
4
  import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-YZ5M7S7U.js';
3
+ import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-LYORNXIT.js';
4
4
  import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
5
5
  import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-GM4TY5H2.js';
3
+ import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-OO33S4AF.js';
4
4
  import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
5
5
  import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
6
6
  import { relative, sep, join, posix } from 'path';
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-ZPCUXCQX.js';
4
- import { ensureHostKey } from './chunk-TOVSIUEJ.js';
5
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-YZ5M7S7U.js';
6
- import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-FCU7WSCV.js';
7
- import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-HTQFAHXD.js';
8
- import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-TDUBZ4FR.js';
9
- import { defaultAgents } from './chunk-GM4TY5H2.js';
3
+ import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-XKJZHY4J.js';
4
+ import { ensureHostKey } from './chunk-FSQDS7A6.js';
5
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-LYORNXIT.js';
6
+ import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-QHT6PIFP.js';
7
+ import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-BU25W7GF.js';
8
+ import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-PJNOTSB5.js';
9
+ import { defaultAgents } from './chunk-OO33S4AF.js';
10
10
  import { PROVIDERS } from './chunk-7PZDPISM.js';
11
- import { compareVersions } from './chunk-H2L5NB5U.js';
11
+ import { compareVersions } from './chunk-X25VXXCF.js';
12
12
  import { createHash } from 'crypto';
13
13
  import { mkdirSync, createWriteStream, rmSync, existsSync, readFileSync, chmodSync, writeFileSync, realpathSync, readdirSync, renameSync } from 'fs';
14
14
  import { dirname, join, posix, resolve } from 'path';
@@ -447,7 +447,7 @@ function judgeCommand(input, agents = defaultAgents()) {
447
447
  }
448
448
  function withAnswerProtocol(brief, subjects) {
449
449
  const inputs = subjects === "criteria" ? `\`${JUDGE_DIR}/criteria.json\` lists the criteria to judge, \`${JUDGE_DIR}/diff.patch\` the change and \`${JUDGE_TREE}/\` the files of the pushed commit. Nothing tells you which tests prove a criterion: find them in \`${JUDGE_TREE}/\` yourself. No list of citing tests exists, so where the brief above reads one, or fails a criterion that no test cites, search for the criterion's tests instead.` : `\`${JUDGE_DIR}/diff.patch\` holds the change and \`${JUDGE_TREE}/\` the files of the pushed commit.`;
450
- const items = subjects === "criteria" ? `one entry per criterion in criteria.json, with its id and the tests your result rests on: \`{"items":[{"id":"<criterion id>","result":"pass"|"fail","reason":"<one to three sentences>","tests":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line the test starts on>}]}]}\`. A criterion you do not list fails. A pass must name at least one test file of the tree that proves it, or it fails.` : `your overall result and, when you judged separate parts, one entry per part with an id you choose (a file path or a short name): \`{"result":"pass"|"fail","items":[{"id":"<part>","result":"pass"|"fail","reason":"<one to three sentences>"}]}\`. A failing part fails the whole.`;
450
+ const items = subjects === "criteria" ? `one entry per criterion in criteria.json, with its id and the tests your result rests on: \`{"items":[{"id":"<criterion id>","result":"pass"|"fail","reason":"<one to three sentences>","tests":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line the test starts on>}]}]}\`. A criterion you do not list fails. A pass must name at least one test file of the tree that proves it, or it fails.` : `your overall result and, when you judged separate parts, one entry per part with an id you choose (a file path or a short name), unique in the answer: \`{"result":"pass"|"fail","items":[{"id":"<part>","result":"pass"|"fail","reason":"<one to three sentences>","refs":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line in the pushed commit>}]}]}\`. A failing part fails the whole. A failing part names in \`refs\` the file and line it is about.`;
451
451
  return `${brief.trimEnd()}
452
452
 
453
453
  ## How to answer
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-ZYQT6Q5R.js';
4
- import { UNIT_MARKER } from './chunk-VOSC32UF.js';
5
- import { runnerDir } from './chunk-YZ5M7S7U.js';
3
+ import { helperSocketPath } from './chunk-V26DDAWZ.js';
4
+ import { UNIT_MARKER } from './chunk-SZQKS4QK.js';
5
+ import { runnerDir } from './chunk-LYORNXIT.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
8
8
 
@@ -2,8 +2,8 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { C } from './chunk-2AM6Z5BP.js';
4
4
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
5
- import { linkedAgentsPath } from './chunk-VRSUCU2N.js';
6
- import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-GM4TY5H2.js';
5
+ import { linkedAgentsPath } from './chunk-LPTMKPCD.js';
6
+ import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-OO33S4AF.js';
7
7
  import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
8
8
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
9
9
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
@@ -15,7 +15,6 @@ var DEFAULT_TEMPLATE = "default";
15
15
  var POLICY_PATH = ".outerlayer/policy.yaml";
16
16
  var POLICY_CONTENT = "review: required\n";
17
17
  var VALIDATOR_FILES = [
18
- { name: "code-review.yaml", label: "the code review check" },
19
18
  { name: "acceptance-criteria.yaml", label: "the criteria judge check" }
20
19
  ];
21
20
  var VALIDATORS_DIR = ".outerlayer/validators";
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-ZYQT6Q5R.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-VOSC32UF.js';
5
- import { getJson, WorkCommandError } from './chunk-RFBJKK2L.js';
6
- import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-UF3YTRGU.js';
7
- import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-G2EWER4K.js';
8
- import { ensureHostKey } from './chunk-TOVSIUEJ.js';
9
- import { sandboxSettingsFrom } from './chunk-FCU7WSCV.js';
10
- import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-HTQFAHXD.js';
11
- import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-TDUBZ4FR.js';
12
- import { defaultAgents } from './chunk-GM4TY5H2.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-V26DDAWZ.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-SZQKS4QK.js';
5
+ import { getJson, WorkCommandError } from './chunk-IQHREL5T.js';
6
+ import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-6Y4ZE74I.js';
7
+ import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-QF6US5YN.js';
8
+ import { ensureHostKey } from './chunk-FSQDS7A6.js';
9
+ import { sandboxSettingsFrom } from './chunk-QHT6PIFP.js';
10
+ import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-BU25W7GF.js';
11
+ import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-PJNOTSB5.js';
12
+ import { defaultAgents } from './chunk-OO33S4AF.js';
13
13
  import { closeSync, openSync, constants, readFileSync } from 'fs';
14
14
  import { join, dirname } from 'path';
15
15
  import { totalmem } from 'os';
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { WorkCommandError, postJson } from './chunk-RFBJKK2L.js';
4
- import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-TMYBADTM.js';
5
- import { buildRefusalReason } from './chunk-MCLSXTLY.js';
6
- import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-GM3H4ZHG.js';
7
- import { signingFetchFor } from './chunk-T7KETYNW.js';
8
- import { signerFor } from './chunk-TOVSIUEJ.js';
9
- import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-YZ5M7S7U.js';
3
+ import { WorkCommandError, postJson } from './chunk-IQHREL5T.js';
4
+ import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-QZAZPRDW.js';
5
+ import { buildRefusalReason } from './chunk-C3P637LO.js';
6
+ import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-BJYX3PMU.js';
7
+ import { signingFetchFor } from './chunk-NOBB3LEO.js';
8
+ import { signerFor } from './chunk-FSQDS7A6.js';
9
+ import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-LYORNXIT.js';
10
10
  import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-SF2TBJBP.js';
11
11
  import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
12
12
  import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { detectActiveSession } from './chunk-GQEVQIS6.js';
4
- import { autoConnect } from './chunk-JKQAOSSX.js';
5
- import { workPageUrl } from './chunk-3KVYSJAL.js';
6
- import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
3
+ import { detectActiveSession } from './chunk-VZGTPITG.js';
4
+ import { autoConnect } from './chunk-RWNVQSGX.js';
5
+ import { workPageUrl } from './chunk-7VVTZNUP.js';
6
+ import { sanitizeTerminal } from './chunk-OCQ5FQZR.js';
7
7
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-T7KETYNW.js';
9
- import { signRunnerRequest } from './chunk-TOVSIUEJ.js';
8
+ import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-NOBB3LEO.js';
9
+ import { signRunnerRequest } from './chunk-FSQDS7A6.js';
10
10
  import { readRepoConnection } from './chunk-BJ3KTMDH.js';
11
11
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
12
12
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
13
13
  import { homeFromEnv } from './chunk-352DHUTP.js';
14
- import { resolveRepoIdentity } from './chunk-H2L5NB5U.js';
14
+ import { resolveRepoIdentity } from './chunk-X25VXXCF.js';
15
15
 
16
16
  createRequire(import.meta.url);
17
17
 
@@ -486,7 +486,7 @@ async function runWorkLinkSession(opts) {
486
486
  return await linkSession(opts);
487
487
  } catch (err) {
488
488
  if (opts.logFailures) {
489
- const { logHookError } = await import('./hook-fast-6IOLZ45F.js');
489
+ const { logHookError } = await import('./hook-fast-3VMKCCUO.js');
490
490
  const reason = err instanceof Error ? err.message : String(err);
491
491
  logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
492
492
  }
@@ -2,7 +2,7 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
4
4
  import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
5
- import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-GM4TY5H2.js';
5
+ import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-OO33S4AF.js';
6
6
  import { execFileSync } from 'child_process';
7
7
  import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
8
8
  import { join, dirname, isAbsolute } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { EXEC_PORT } from './chunk-E2ZWGLNZ.js';
3
+ import { EXEC_PORT } from './chunk-SYENSVOK.js';
4
4
  import { createConnection } from 'net';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-YZ5M7S7U.js';
3
+ import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-LYORNXIT.js';
4
4
  import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
5
5
  import { join, basename, sep, resolve } from 'path';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { BUILD_HOME } from './chunk-FCU7WSCV.js';
3
+ import { BUILD_HOME } from './chunk-QHT6PIFP.js';
4
4
  import { readdirSync } from 'fs';
5
5
  import { join, dirname } from 'path';
6
6
 
@@ -4,6 +4,6 @@ import { createRequire } from 'node:module';
4
4
  createRequire(import.meta.url);
5
5
 
6
6
  // src/runner/protocol.ts
7
- var RUNNER_PROTOCOL = 45;
7
+ var RUNNER_PROTOCOL = 46;
8
8
 
9
9
  export { RUNNER_PROTOCOL };
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { readNewestDemo } from './chunk-ER6KQCVJ.js';
4
- import { runEmitArtifact } from './chunk-6744TXEY.js';
4
+ import { runEmitArtifact } from './chunk-DDPCKTVN.js';
5
5
  import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
6
- import { detectActiveSession } from './chunk-GQEVQIS6.js';
7
- import { autoConnect } from './chunk-JKQAOSSX.js';
6
+ import { detectActiveSession } from './chunk-VZGTPITG.js';
7
+ import { autoConnect } from './chunk-RWNVQSGX.js';
8
8
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { defaultFetch, resolveGatewayCredentials } from './chunk-T7KETYNW.js';
9
+ import { defaultFetch, resolveGatewayCredentials } from './chunk-NOBB3LEO.js';
10
10
  import { launchedItemForSession } from './chunk-4OD45RBP.js';
11
- import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-TDUBZ4FR.js';
11
+ import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-PJNOTSB5.js';
12
12
  import { homeFromEnv } from './chunk-352DHUTP.js';
13
- import { resolveRepoIdentity } from './chunk-H2L5NB5U.js';
14
- import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-YXXJBHHF.js';
13
+ import { resolveRepoIdentity } from './chunk-X25VXXCF.js';
14
+ import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-2VNT47DG.js';
15
15
  import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
16
16
  import { createHash } from 'crypto';
17
17
  import { mkdtempSync, writeFileSync, statSync, readFileSync, rmSync, mkdirSync, existsSync, copyFileSync, accessSync, constants, realpathSync, createReadStream, createWriteStream } from 'fs';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-YZ5M7S7U.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-LYORNXIT.js';
4
4
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-ZYQT6Q5R.js';
4
- import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-76Y35TWH.js';
3
+ import { stripTerminalControls } from './chunk-V26DDAWZ.js';
4
+ import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-BEQYO2VO.js';
5
5
  import { readFileSync } from 'fs';
6
6
 
7
7
  createRequire(import.meta.url);
@@ -55,7 +55,7 @@ function envNamesOf(row, imageEnv) {
55
55
  return [...new Set(names)].sort();
56
56
  }
57
57
  async function readOwnContainer(deps = {}) {
58
- const run = deps.run ?? (await import('./docker-NUPVSMVQ.js')).spawnRun;
58
+ const run = deps.run ?? (await import('./docker-QMKIWXHF.js')).spawnRun;
59
59
  const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
60
60
  if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
61
61
  let problem = "";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
4
- import { signRunnerRequest, signerFor } from './chunk-TOVSIUEJ.js';
4
+ import { signRunnerRequest, signerFor } from './chunk-FSQDS7A6.js';
5
5
  import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
6
6
  import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-NFZMENCY.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
@@ -612,7 +612,7 @@ async function missingRenewalHookContext(home, cwd, codec) {
612
612
  try {
613
613
  const event = codec.events.find((name) => kindOf(codec, name) === "tool-used");
614
614
  if (event === void 0) return void 0;
615
- const { hookRegistered } = await import('./hook-install-VL4CEO4S.js');
615
+ const { hookRegistered } = await import('./hook-install-TTF6LASI.js');
616
616
  const registered = hookRegistered(event, { home, cwd });
617
617
  if (registered !== false) return void 0;
618
618
  return `This install has no ${event} hook, so this session's work-item lease will never be renewed while it works and may be lost to another worker mid-session. Run \`${cliInvocation()} init\` to register it.`;
@@ -812,11 +812,11 @@ async function missingControlPlane(cwd, sessionId, home, env) {
812
812
  const dirs = findGitDirs(cwd);
813
813
  if (dirs === void 0) return void 0;
814
814
  if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
815
- const { cleanupEarlierCopies } = await import('./context-cleanup-MKVMFRNR.js');
815
+ const { cleanupEarlierCopies } = await import('./context-cleanup-L3ZKG6EU.js');
816
816
  cleanupEarlierCopies(dirs);
817
817
  }
818
818
  if (!contextPossiblyGoverned(cwd, home)) return void 0;
819
- const { governanceOf } = await import('./control-plane-launch-2GOJKA53.js');
819
+ const { governanceOf } = await import('./control-plane-launch-GOKEVTPX.js');
820
820
  if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
821
821
  recordMissingContext(dirs, sessionId, home);
822
822
  const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-G2ITKUX4.js';
3
+ import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-7GQE5D72.js';
4
4
  import { startTimeOf } from './chunk-JBJTC3UU.js';
5
- import { EXEC_PORT } from './chunk-E2ZWGLNZ.js';
6
- import { RELAY_PORT } from './chunk-FCU7WSCV.js';
5
+ import { EXEC_PORT } from './chunk-SYENSVOK.js';
6
+ import { RELAY_PORT } from './chunk-QHT6PIFP.js';
7
7
  import { spawn, spawnSync } from 'child_process';
8
8
  import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
9
9
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { homeFromEnv } from './chunk-352DHUTP.js';
4
- import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-YXXJBHHF.js';
4
+ import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-2VNT47DG.js';
5
5
  import { mkdirSync, appendFileSync, writeFileSync, renameSync, unlinkSync, existsSync, readdirSync, readFileSync, statSync } from 'fs';
6
6
  import { join, dirname } from 'path';
7
7
 
@@ -5,8 +5,8 @@ import { CLAUDE_CODE, OPENCODE, NATIVE_AGENTS, LEGACY_AGENT, homeRelative } from
5
5
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
6
6
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
- import { forkFor, RAW_MIRROR_SEGMENTS, WarningCollector, WARNING_CODES, isNewerThanSupported, bucketsFromTurns, costOfUsage } from './chunk-H2L5NB5U.js';
9
- import { RESERVED_EMIT_NAMES, EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, ARTIFACT_KINDS, ArtifactCriterionIdSchema, SPEED_MAX_LENGTH } from './chunk-YXXJBHHF.js';
8
+ import { forkFor, RAW_MIRROR_SEGMENTS, WarningCollector, WARNING_CODES, isNewerThanSupported, bucketsFromTurns, costOfUsage } from './chunk-X25VXXCF.js';
9
+ import { CODE_REVIEW_NAME, RESERVED_EMIT_NAMES, EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, ARTIFACT_KINDS, ArtifactCriterionIdSchema, SPEED_MAX_LENGTH } from './chunk-2VNT47DG.js';
10
10
  import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
11
11
  import { existsSync, readFileSync, mkdirSync, writeFileSync, readdirSync, rmSync, renameSync, realpathSync, readlinkSync, symlinkSync, copyFileSync, statSync, accessSync, constants, lstatSync } from 'fs';
12
12
  import { join as join$1, dirname, sep, basename, relative, delimiter } from 'path';
@@ -7724,7 +7724,7 @@ var CONTEXT_PIN_FILENAME = ".outerlayer-pin.json";
7724
7724
  var JUDGE_SUBJECTS = ["criteria", "none"];
7725
7725
  var MAX_BRIEF_LENGTH = 300;
7726
7726
  var MAX_COMMAND_LENGTH = 2e3;
7727
- var EXTENDS_PROBLEM = '"extends" is not a policy key \u2014 every check is a file in .outerlayer/validators/. Run outerlayer init --template default to write .outerlayer/validators/code-review.yaml, then delete the extends line';
7727
+ var EXTENDS_PROBLEM = '"extends" is not a policy key \u2014 every check is a file in .outerlayer/validators/. Run outerlayer init --template default to write .outerlayer/validators/acceptance-criteria.yaml, then delete the extends line';
7728
7728
  var FREED_BUILTINS = /* @__PURE__ */ new Set(["ci-passed", "acceptance-criteria", "code-review-ran"]);
7729
7729
  var RETIRED_BUILTINS = /* @__PURE__ */ new Set([
7730
7730
  "red-then-green",
@@ -7988,6 +7988,7 @@ function parseCustomFile(file, problems) {
7988
7988
  return fail(`not valid YAML \u2014 ${error instanceof Error ? error.message : String(error)}`);
7989
7989
  }
7990
7990
  if (!isRecord(root)) return fail("must be a YAML mapping");
7991
+ if (root["id"] === CODE_REVIEW_NAME) return null;
7991
7992
  for (const key of Object.keys(root)) {
7992
7993
  if (!CUSTOM_KEYS.has(key)) return fail(`unknown key "${inlineText(key)}"`);
7993
7994
  }
@@ -8190,6 +8191,7 @@ function resolveReferences(parsed, signalIds, problems) {
8190
8191
  );
8191
8192
  const next = surviving.filter((candidate) => {
8192
8193
  for (const ref of candidate.validatorRefs) {
8194
+ if (ref === CODE_REVIEW_NAME) continue;
8193
8195
  if (ref === candidate.def.id || !ids.has(ref) || signalIds.has(ref)) {
8194
8196
  problems.push({
8195
8197
  file: candidate.file,
@@ -8199,7 +8201,7 @@ function resolveReferences(parsed, signalIds, problems) {
8199
8201
  }
8200
8202
  }
8201
8203
  for (const name of candidate.emittedRefs) {
8202
- if (!emits.has(name)) {
8204
+ if (name !== CODE_REVIEW_NAME && !emits.has(name)) {
8203
8205
  problems.push({
8204
8206
  file: candidate.file,
8205
8207
  problem: `"${candidate.def.id}" requires emitted "${name}" but no validator declares emit: ${name}`
@@ -8292,7 +8294,7 @@ function parsePolicy(policyFile, validatorFiles) {
8292
8294
  const levels = {};
8293
8295
  for (const custom of sorted) levels[custom.id] = custom.level;
8294
8296
  for (const [id, level] of Object.entries(policy.overrides)) {
8295
- if (RETIRED_BUILTINS.has(id)) continue;
8297
+ if (RETIRED_BUILTINS.has(id) || id === CODE_REVIEW_NAME) continue;
8296
8298
  if (FREED_BUILTINS.has(id) && !(id in levels)) continue;
8297
8299
  if (!(id in levels) && !signalIds.has(id)) {
8298
8300
  problems.push({
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
4
- import { resolvePackRoot, parseProofsConfig } from './chunk-GM4TY5H2.js';
5
- import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema, CHECK_ITEM_REFS_MAX, CHECK_ITEM_REF_PATH_MAX_LENGTH } from './chunk-YXXJBHHF.js';
3
+ import { sanitizeTerminal } from './chunk-OCQ5FQZR.js';
4
+ import { resolvePackRoot, parseProofsConfig } from './chunk-OO33S4AF.js';
5
+ import { CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEMS_MAX, CheckItemsSchema, CHECK_ITEM_REFS_MAX, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REF_PATH_MAX_LENGTH, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID } from './chunk-2VNT47DG.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
8
8
  import { pathToFileURL } from 'url';
@@ -1908,6 +1908,45 @@ function runnerMatcher(runners) {
1908
1908
  return index === -1 ? void 0 : index;
1909
1909
  };
1910
1910
  }
1911
+
1912
+ // src/runner/diff-lines.ts
1913
+ var HUNK = /^@@ -\d+(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/;
1914
+ var NEW_FILE = /^\+\+\+ b\/([^\t"].*?)\t?$/;
1915
+ function diffLines(patch) {
1916
+ const files = /* @__PURE__ */ new Map();
1917
+ const lines = patch.split("\n");
1918
+ let path2;
1919
+ for (let at = 0; at < lines.length; at += 1) {
1920
+ const line = lines[at];
1921
+ if (line.startsWith("diff --git ")) {
1922
+ path2 = void 0;
1923
+ continue;
1924
+ }
1925
+ if (line.startsWith("+++ ")) {
1926
+ path2 = NEW_FILE.exec(line)?.[1];
1927
+ continue;
1928
+ }
1929
+ const hunk = HUNK.exec(line);
1930
+ if (hunk === null) continue;
1931
+ let oldLeft = Number(hunk[1] ?? 1);
1932
+ let newLeft = Number(hunk[3] ?? 1);
1933
+ const start = Number(hunk[2]);
1934
+ if (path2 !== void 0 && newLeft > 0) files.set(path2, [...files.get(path2) ?? [], [start, start + newLeft - 1]]);
1935
+ while ((oldLeft > 0 || newLeft > 0) && at + 1 < lines.length) {
1936
+ at += 1;
1937
+ const mark = lines[at][0];
1938
+ if (mark === "\\") continue;
1939
+ if (mark !== "+") oldLeft -= 1;
1940
+ if (mark !== "-") newLeft -= 1;
1941
+ }
1942
+ }
1943
+ return files;
1944
+ }
1945
+ function lineInDiff(lines, path2, line) {
1946
+ return (lines.get(path2) ?? []).some(([first, last]) => line >= first && line <= last);
1947
+ }
1948
+
1949
+ // src/runner/judge-items.ts
1911
1950
  var ARTIFACT_PROOF_REASON = "Its declared artifact proves it; the judge does not judge artifacts.";
1912
1951
  var NO_NAMED_TEST_REASON = "The judge named no test file that proves this criterion.";
1913
1952
  var NO_VERDICT_REASON = "The judge gave no result for this criterion.";
@@ -1979,7 +2018,7 @@ function judgeGroups(criteria, size = JUDGE_GROUP_SIZE) {
1979
2018
  }
1980
2019
  var MAX_ANSWER_ENTRIES = 500;
1981
2020
  var MAX_NAMED_TESTS = 50;
1982
- function readTests(raw) {
2021
+ function readPlaces(raw) {
1983
2022
  if (!Array.isArray(raw)) return void 0;
1984
2023
  const tests = [];
1985
2024
  for (const entry of raw.slice(0, MAX_NAMED_TESTS)) {
@@ -1998,12 +2037,13 @@ function readAnswer(raw) {
1998
2037
  if (entries.length > MAX_ANSWER_ENTRIES) return { ok: false, problem: `items: at most ${MAX_ANSWER_ENTRIES} entries` };
1999
2038
  const read = [];
2000
2039
  for (const [index, entry] of entries.entries()) {
2001
- const { id, result: itemResult, reason, tests } = typeof entry === "object" && entry !== null ? entry : {};
2040
+ const { id, result: itemResult, reason, tests, refs } = typeof entry === "object" && entry !== null ? entry : {};
2002
2041
  if (typeof id !== "string" || id === "" || id.length > 200) return { ok: false, problem: `items.${index}.id: must be text of 1 to 200 characters` };
2003
2042
  if (itemResult !== "pass" && itemResult !== "fail") return { ok: false, problem: `items.${index}.result: must be "pass" or "fail"` };
2004
2043
  if (reason !== void 0 && typeof reason !== "string") return { ok: false, problem: `items.${index}.reason: must be text` };
2005
- const named = readTests(tests);
2006
- read.push({ id, result: itemResult, ...reason === void 0 ? {} : { reason }, ...named === void 0 ? {} : { tests: named } });
2044
+ const named = readPlaces(tests);
2045
+ const places = readPlaces(refs);
2046
+ read.push({ id, result: itemResult, ...reason === void 0 ? {} : { reason }, ...named === void 0 ? {} : { tests: named }, ...places === void 0 ? {} : { refs: places } });
2007
2047
  }
2008
2048
  return { ok: true, answer: { ...result === void 0 ? {} : { result }, items: read } };
2009
2049
  }
@@ -2060,6 +2100,27 @@ function judgedItems(input) {
2060
2100
  return { ...base, result: said.result, ...reason === void 0 ? {} : { reason }, ...withRefs, ...kept };
2061
2101
  });
2062
2102
  }
2103
+ function itemIds(ids, clean) {
2104
+ const used = /* @__PURE__ */ new Set([JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID]);
2105
+ return ids.map((id) => {
2106
+ const base = clean(id).replace(/[\u0000-\u001f\u007f]+/g, " ").trim() || "problem";
2107
+ let unique = base.slice(0, CHECK_ITEM_ID_MAX_LENGTH);
2108
+ for (let count = 2; used.has(unique); count += 1) unique = `${base.slice(0, CHECK_ITEM_ID_MAX_LENGTH - `-${count}`.length)}-${count}`;
2109
+ used.add(unique);
2110
+ return unique;
2111
+ });
2112
+ }
2113
+ function wholeItems(input) {
2114
+ const lines = diffLines(input.patch);
2115
+ const entries = [...input.answer.items.filter((entry) => entry.result === "fail"), ...input.answer.items.filter((entry) => entry.result !== "fail")].slice(0, CHECK_ITEMS_MAX - 1);
2116
+ const ids = itemIds(entries.map((entry) => entry.id), input.clean);
2117
+ return entries.map((entry, index) => {
2118
+ const reason = oneLineReason(entry.reason === void 0 ? void 0 : input.clean(entry.reason));
2119
+ const { refs } = namedTests(entry.refs, { treeRoot: input.treeRoot, check: input.place, ownTree: input.ownTree });
2120
+ const placed = entry.result === "fail" ? refs.map((ref) => ref.line === void 0 ? ref : { ...ref, inDiff: lineInDiff(lines, ref.path, ref.line) }) : refs;
2121
+ return { id: ids[index], result: entry.result, commit: input.commit, ...reason === void 0 ? {} : { reason }, ...placed.length === 0 ? {} : { refs: placed } };
2122
+ });
2123
+ }
2063
2124
  function failedItems(criteria, reason) {
2064
2125
  const said = oneLineReason(reason) ?? NO_VERDICT_REASON;
2065
2126
  return criteria.map((criterion) => ({ id: criterion.id, criterion: criterion.id, result: "fail", reason: said }));
@@ -2103,6 +2164,14 @@ function criteriaOf(workItem) {
2103
2164
  }
2104
2165
  return items.length === 0 ? void 0 : items;
2105
2166
  }
2167
+ function openPullRequests(workItem) {
2168
+ const declared = Object(workItem).pullRequests;
2169
+ if (!Array.isArray(declared)) return [];
2170
+ return declared.flatMap((entry) => {
2171
+ const { state, repository } = Object(entry);
2172
+ return (state === "open" || state === null || state === void 0) && typeof repository === "string" ? [repository] : [];
2173
+ });
2174
+ }
2106
2175
  function hostItemsOf(workItem, name) {
2107
2176
  const checks = Object(workItem).checks;
2108
2177
  if (!Array.isArray(checks)) return [];
@@ -2112,4 +2181,4 @@ function hostItemsOf(workItem, name) {
2112
2181
  return parsed.success ? parsed.data : [];
2113
2182
  }
2114
2183
 
2115
- export { MAX_TEST_FILE_BYTES, NO_VERDICT_REASON, criteriaOf, criterionInputs, failedItems, hostItemsOf, inCriteriaOrder, itemsSentence, judgeGroups, judgedItems, loadCitationFinder, oneLineReason, parseJudgeAnswer, planCriteria, runnerMatcher, testFileMatcher, testsByCriterion };
2184
+ export { MAX_TEST_FILE_BYTES, NO_VERDICT_REASON, criteriaOf, criterionInputs, failedItems, hostItemsOf, inCriteriaOrder, itemsSentence, judgeGroups, judgedItems, loadCitationFinder, oneLineReason, openPullRequests, parseJudgeAnswer, planCriteria, runnerMatcher, testFileMatcher, testsByCriterion, wholeItems };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { defaultAgents, agentById } from './chunk-GM4TY5H2.js';
3
+ import { defaultAgents, agentById } from './chunk-OO33S4AF.js';
4
4
  import { PROVIDERS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
5
5
  import { join, dirname } from 'path';
6
6
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { keyRunnerFactory, RunnerConfigError } from './chunk-UF3YTRGU.js';
4
- import { orgHomeDir } from './chunk-YZ5M7S7U.js';
3
+ import { keyRunnerFactory, RunnerConfigError } from './chunk-6Y4ZE74I.js';
4
+ import { orgHomeDir } from './chunk-LYORNXIT.js';
5
5
 
6
6
  createRequire(import.meta.url);
7
7