@outerlayer/cli 0.38.0-next.20261105155912 → 0.38.0-next.20261106003041

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 (197) hide show
  1. package/dist/agent-setup-CBEPGNFY.js +40 -0
  2. package/dist/{agent-subcommand-KPQGEOPQ.js → agent-subcommand-UNSXJUHA.js} +6 -6
  3. package/dist/{artifact-link-cmd-72FQTBGO.js → artifact-link-cmd-QP6VO7AJ.js} +2 -2
  4. package/dist/{bridge-F4BNXRM2.js → bridge-JI4IO7JN.js} +9 -9
  5. package/dist/build-2L3L2OJO.js +24 -0
  6. package/dist/build-disk-CKBEEF4N.js +21 -0
  7. package/dist/build-info.json +1 -1
  8. package/dist/builder-PKDA7X2H.js +20 -0
  9. package/dist/caller-XETCC46J.js +23 -0
  10. package/dist/{check-CZM3LZ7Y.js → check-FG32SYJF.js} +59 -59
  11. package/dist/{chunk-K7BI4TLM.js → chunk-256R6O56.js} +20 -7
  12. package/dist/{chunk-HU3POMM4.js → chunk-2MQQASWB.js} +6 -6
  13. package/dist/{chunk-H6H5GCM6.js → chunk-3DVCPRKE.js} +22 -11
  14. package/dist/{chunk-PMBG7IYE.js → chunk-3FAJMXBA.js} +11 -11
  15. package/dist/{chunk-QDM23DTW.js → chunk-3XWZKL2P.js} +10 -10
  16. package/dist/{chunk-3PR7BPMG.js → chunk-45TFVWNT.js} +6 -6
  17. package/dist/{chunk-6XYKZH3K.js → chunk-4MSEUIMK.js} +14 -8
  18. package/dist/{chunk-QAFR65VC.js → chunk-5R5FEPLH.js} +1 -1
  19. package/dist/{chunk-2C3XLYO5.js → chunk-5VAXNAOD.js} +1 -1
  20. package/dist/{chunk-QJKW4MKH.js → chunk-7PZDPISM.js} +54 -2
  21. package/dist/{chunk-YU6XPJ5I.js → chunk-ABN4UBR5.js} +3 -3
  22. package/dist/{chunk-XN4A275V.js → chunk-AJC5Q2NY.js} +23 -13
  23. package/dist/{chunk-HVUS5WRU.js → chunk-AMG5ICDO.js} +4 -4
  24. package/dist/{chunk-IYUJFAQD.js → chunk-AVEF3T6Y.js} +919 -36
  25. package/dist/{chunk-EKRLMOWS.js → chunk-BL6CCU26.js} +7 -7
  26. package/dist/{chunk-3B5H5MGB.js → chunk-BO3NOGKE.js} +3 -3
  27. package/dist/{chunk-BMYIPXBG.js → chunk-CCMKLF7K.js} +6 -6
  28. package/dist/{chunk-DP6ZOSCR.js → chunk-CGXYPLK3.js} +24 -10
  29. package/dist/{chunk-K7KQCOSM.js → chunk-DK5YFDYI.js} +9 -9
  30. package/dist/{chunk-IJN3GP4M.js → chunk-DL5N6V3D.js} +1 -1
  31. package/dist/{chunk-VG524OUD.js → chunk-DVFGCVTV.js} +5 -5
  32. package/dist/{chunk-EVFZUFCO.js → chunk-DXBYNJRM.js} +6 -6
  33. package/dist/{chunk-45UZPTDQ.js → chunk-EERD7VI3.js} +1 -1
  34. package/dist/{chunk-U63SE2NJ.js → chunk-EFAOERZH.js} +1 -1
  35. package/dist/{chunk-64D2YZK5.js → chunk-EHJYXABQ.js} +1 -1
  36. package/dist/{chunk-2FDWTE6F.js → chunk-ERQLHUWU.js} +5 -5
  37. package/dist/{chunk-MPGTKJOM.js → chunk-EXIZ3G6I.js} +6 -6
  38. package/dist/{chunk-KXKVMSHC.js → chunk-FER7JJ3S.js} +1 -1
  39. package/dist/{chunk-OVRLLZPJ.js → chunk-FGVVBYCT.js} +1 -1
  40. package/dist/{chunk-J56SR6X4.js → chunk-FOUG2R4Q.js} +1 -1
  41. package/dist/{chunk-35RIDLSD.js → chunk-GMRVWRHD.js} +2 -2
  42. package/dist/{chunk-LMT72G74.js → chunk-HG2ZG6ZU.js} +1 -1
  43. package/dist/{chunk-2QIK3JRV.js → chunk-IRFN2ZHJ.js} +1 -1
  44. package/dist/{chunk-VVZIFOAN.js → chunk-IXB2IIEW.js} +1 -1
  45. package/dist/{chunk-GMRIR2MF.js → chunk-JTDMSQMI.js} +9 -9
  46. package/dist/{chunk-TOH7FJH3.js → chunk-K6JOU4CT.js} +42 -31
  47. package/dist/{chunk-RVIZRXBK.js → chunk-KLQLQQGG.js} +3 -3
  48. package/dist/{chunk-L25GQH45.js → chunk-L4ACBB5R.js} +1 -1
  49. package/dist/{chunk-7TPLWWFN.js → chunk-M53UNEO6.js} +1 -1
  50. package/dist/{chunk-IG7SBYJY.js → chunk-MDKLSY43.js} +1 -1
  51. package/dist/{chunk-3J7F3VGZ.js → chunk-MPE4NOKD.js} +2 -2
  52. package/dist/{chunk-ZBPUHNUZ.js → chunk-NEEMG462.js} +1 -1
  53. package/dist/{chunk-CUAV3727.js → chunk-O4Z2YVC3.js} +5 -5
  54. package/dist/{chunk-SSSPZ3TB.js → chunk-OFWNBTLU.js} +1 -1
  55. package/dist/{chunk-5YWOGS66.js → chunk-OGQW7A4G.js} +16 -12
  56. package/dist/{chunk-MY6T3N3A.js → chunk-ONOINHY4.js} +1 -1
  57. package/dist/{chunk-XUXDUOJI.js → chunk-OUHM6U6Z.js} +6 -6
  58. package/dist/{chunk-JCEJARDB.js → chunk-PARDL7HH.js} +1 -1
  59. package/dist/{chunk-WWTZLRPH.js → chunk-PLVHIQJN.js} +43 -3
  60. package/dist/{chunk-EOVVSXRH.js → chunk-PMJ6IEUM.js} +7 -7
  61. package/dist/{chunk-OCDG3ZWH.js → chunk-QONY6C2B.js} +9 -9
  62. package/dist/{chunk-FRQPX2QR.js → chunk-QWDGHEQL.js} +3 -3
  63. package/dist/{chunk-AWY7ORQ2.js → chunk-RNCCRUT5.js} +1 -1
  64. package/dist/{chunk-J7MMYBBV.js → chunk-RSRNZB4T.js} +7 -7
  65. package/dist/{chunk-MB7IX6DO.js → chunk-RUJR3SDB.js} +1 -1
  66. package/dist/{chunk-RM3K57Q7.js → chunk-RZ6WJTUP.js} +39 -16
  67. package/dist/{chunk-XQSTN7NG.js → chunk-S7CE7QCF.js} +3 -3
  68. package/dist/{chunk-OV4XTV5M.js → chunk-SF2TBJBP.js} +7 -4
  69. package/dist/{chunk-WHPMCF7R.js → chunk-SMFWLPXC.js} +18 -18
  70. package/dist/{chunk-Y2HVISUN.js → chunk-T524XQKI.js} +1 -1
  71. package/dist/{chunk-2RKPEUGK.js → chunk-TAEDH2SU.js} +1 -1
  72. package/dist/{chunk-W7LJQ2GU.js → chunk-U5EE7PGC.js} +4 -4
  73. package/dist/{chunk-SUMRSD2Q.js → chunk-U7L4GBGS.js} +1 -1
  74. package/dist/{chunk-SKV6FO37.js → chunk-VNT2IRLM.js} +4 -4
  75. package/dist/{chunk-M4WTELYI.js → chunk-VWNQRD4I.js} +4 -4
  76. package/dist/{chunk-D5JJQRW7.js → chunk-WF2NXBOM.js} +9 -9
  77. package/dist/{chunk-5M3KXOPY.js → chunk-X2DX3A7H.js} +2 -2
  78. package/dist/{chunk-VUSYGNNN.js → chunk-XDRZ3BNA.js} +1 -1
  79. package/dist/{chunk-DOKFFSOZ.js → chunk-XE2PXGZT.js} +3 -3
  80. package/dist/{chunk-Y5ZKDLNX.js → chunk-YKWOVYVN.js} +15 -15
  81. package/dist/{chunk-HI5RBFL3.js → chunk-YWWW47OY.js} +14 -9
  82. package/dist/{chunk-2JIGPSVF.js → chunk-YXXJBHHF.js} +20 -4
  83. package/dist/{chunk-KXCTWOPU.js → chunk-YZRDJOOR.js} +3 -3
  84. package/dist/{chunk-GLJX2CZY.js → chunk-Z4R36YDJ.js} +353 -303
  85. package/dist/{chunk-GZETHU2Z.js → chunk-ZCEM4GJ5.js} +3 -3
  86. package/dist/{chunk-VV2VLQWG.js → chunk-ZLJXMXZP.js} +2 -2
  87. package/dist/{chunk-ZEEQB7VM.js → chunk-ZO3RUMUR.js} +5 -5
  88. package/dist/{chunk-HOCVTWV2.js → chunk-ZTJTAKVW.js} +1 -1
  89. package/dist/{claude-launcher-3O5W5ENW.js → claude-launcher-FHQTSQOM.js} +10 -10
  90. package/dist/{cli-YMSYVF7O.js → cli-GNC4MFMP.js} +173 -159
  91. package/dist/{command-ZOWMTOWA.js → command-47EYM2FJ.js} +54 -54
  92. package/dist/{config-J4NNZ2XO.js → config-EA6WVKAS.js} +14 -14
  93. package/dist/{connect-cmd-GVIUKK3R.js → connect-cmd-4JO2LBUT.js} +15 -15
  94. package/dist/{container-start-RZSGWDZG.js → container-start-XR7KANS6.js} +58 -53
  95. package/dist/{context-cleanup-7V2ARBSC.js → context-cleanup-6CTKLEUT.js} +6 -6
  96. package/dist/{context-show-cmd-73E36KAV.js → context-show-cmd-Z7NQAKNE.js} +16 -16
  97. package/dist/{control-plane-launch-L744RJ4A.js → control-plane-launch-4PLBJKBS.js} +17 -17
  98. package/dist/{demo-record-cmd-KGH3WGLY.js → demo-record-cmd-3B2ME2ZI.js} +10 -10
  99. package/dist/{demo-voice-cmd-CHCS7TQF.js → demo-voice-cmd-LIXAA3OS.js} +24 -24
  100. package/dist/{dist-U6EGOQD5.js → dist-3TV6G4YF.js} +2 -2
  101. package/dist/docker-FPEQS6HK.js +20 -0
  102. package/dist/{doctor-NILQ2RUT.js → doctor-AFH6UUX6.js} +59 -59
  103. package/dist/emit-artifact-cmd-5XIEUWFX.js +44 -0
  104. package/dist/{emit-cmd-AG7HL3YI.js → emit-cmd-IKYF27IK.js} +9 -9
  105. package/dist/emit-criteria-cmd-YS5ZSLCN.js +35 -0
  106. package/dist/{emit-demo-cmd-GHDL7ZGH.js → emit-demo-cmd-IDC2JC46.js} +24 -24
  107. package/dist/{emit-finding-cmd-KPHWY6ZU.js → emit-finding-cmd-C4NRTIZO.js} +18 -18
  108. package/dist/{emit-result-cmd-WOJEHOXH.js → emit-result-cmd-GC2I7JQU.js} +22 -22
  109. package/dist/{emit-step-cmd-QTNJBTZN.js → emit-step-cmd-TTH4FYFW.js} +18 -18
  110. package/dist/{exec-client-IPPD3NF4.js → exec-client-DT5EWVQL.js} +10 -10
  111. package/dist/find-unit-337Y4QAC.js +24 -0
  112. package/dist/{findings-cmd-LVYAXHQG.js → findings-cmd-MSV52ODM.js} +18 -18
  113. package/dist/fleet-readiness-O76CSI7M.js +31 -0
  114. package/dist/governing-source-QEFYVBQF.js +41 -0
  115. package/dist/guest-init-X7M5AIOI.js +20 -0
  116. package/dist/{hook-fast-RNST4WJH.js → hook-fast-T6FOTZHA.js} +4 -4
  117. package/dist/{hook-install-G3FUCXBE.js → hook-install-OUSUHQ6C.js} +6 -6
  118. package/dist/{hook-wrap-fast-HNY3OGLN.js → hook-wrap-fast-GVS5HF5C.js} +3 -3
  119. package/dist/host-checks-OXB5J3KR.js +79 -0
  120. package/dist/host-key-UFUIBFBF.js +18 -0
  121. package/dist/{image-tag-5Z2NKCHC.js → image-tag-AE6EKDPV.js} +10 -10
  122. package/dist/index.js +7 -7
  123. package/dist/{init-7OHFUQBV.js → init-PUN3PKOT.js} +50 -50
  124. package/dist/init-V7X3KA7B.js +79 -0
  125. package/dist/{init-agent-B5ADPZIB.js → init-agent-D3KK24QX.js} +51 -51
  126. package/dist/{init-cmd-ZT2PXGPD.js → init-cmd-LGRN3U7K.js} +32 -32
  127. package/dist/{init-update-WYM5WSM7.js → init-update-ZL2J7EQI.js} +27 -27
  128. package/dist/install-cmd-4ID4VBH2.js +21 -0
  129. package/dist/{layout-RPYMSWCY.js → layout-G6K72TXK.js} +6 -6
  130. package/dist/{login-browser-AMCRDS5C.js → login-browser-I6CWBA7K.js} +2 -2
  131. package/dist/{logs-XKEW5EOB.js → logs-DIA3NWC2.js} +9 -9
  132. package/dist/loop-AWBFKDV7.js +90 -0
  133. package/dist/machine-BZPKYURG.js +79 -0
  134. package/dist/{machine-skills-RP2Y5F32.js → machine-skills-JLJJDXBS.js} +6 -6
  135. package/dist/{mcp-install-cmd-IZYHXHXG.js → mcp-install-cmd-OTAX7QP2.js} +6 -6
  136. package/dist/{mcp-serve-cmd-HAIJVRR7.js → mcp-serve-cmd-63KQEQYS.js} +11 -11
  137. package/dist/{paths-6AMRSXZK.js → paths-KVMMJQ7T.js} +9 -9
  138. package/dist/pending-2IE3VBAN.js +18 -0
  139. package/dist/pidfile-NCBBWZNH.js +19 -0
  140. package/dist/record-PQDJVKYV.js +18 -0
  141. package/dist/{relay-CO5I2WOV.js → relay-QDB526DJ.js} +7 -7
  142. package/dist/{relay-protocol-S2JGOYZZ.js → relay-protocol-PJ2HOP6B.js} +7 -7
  143. package/dist/runner-agents-CEW4Z3FR.js +14 -0
  144. package/dist/runner-env-23OLQBQZ.js +24 -0
  145. package/dist/runner-identity-IJKE4SRJ.js +20 -0
  146. package/dist/{runner-key-VCWF2EN7.js → runner-key-4J4MHN3S.js} +50 -50
  147. package/dist/session-sender-HKNACIH5.js +44 -0
  148. package/dist/{shell-function-FTY7SSAJ.js → shell-function-RBJR373S.js} +2 -2
  149. package/dist/{spec-cmd-2WKI4V2T.js → spec-cmd-4R7AYTBU.js} +19 -19
  150. package/dist/{starter-pack-W6S3L76K.js → starter-pack-6C7HPT4O.js} +7 -7
  151. package/dist/state-DPEWDXQN.js +18 -0
  152. package/dist/{status-HHM6TH6J.js → status-GMVC666R.js} +50 -50
  153. package/dist/{statusline-fast-5G2CTPSX.js → statusline-fast-WUXKRABL.js} +3 -3
  154. package/dist/{sync-cmd-TIDWKW4E.js → sync-cmd-UMAENSGZ.js} +22 -22
  155. package/dist/update-steps-GTXNCG3Z.js +80 -0
  156. package/dist/{watch-IA6UDVSF.js → watch-RAUF223H.js} +22 -22
  157. package/dist/{work-claim-cmd-7TLC4DKU.js → work-claim-cmd-A3ISXUFA.js} +24 -24
  158. package/dist/{work-cmd-2LXE27RX.js → work-cmd-U7YLMDZ7.js} +18 -18
  159. package/dist/work-comment-cmd-CMWMOWVG.js +38 -0
  160. package/dist/{work-demo-cmd-CSXUA7KH.js → work-demo-cmd-EKTJHIVM.js} +18 -18
  161. package/dist/{work-logs-cmd-ECF7ZLHO.js → work-logs-cmd-Z3QOFYTJ.js} +18 -18
  162. package/dist/{work-open-pr-cmd-SUJEYZ6C.js → work-open-pr-cmd-NJXIX3QZ.js} +19 -19
  163. package/dist/work-pr-cmd-JUV3SN7I.js +34 -0
  164. package/dist/{work-proofs-cmd-UQU6SSFD.js → work-proofs-cmd-MIDPIFTH.js} +20 -20
  165. package/dist/{work-proofs-record-MKCYQLS2.js → work-proofs-record-6FTMJDQG.js} +29 -29
  166. package/dist/{work-stop-cmd-PBC7SJ7M.js → work-stop-cmd-Z7MYNR7R.js} +18 -18
  167. package/package.json +2 -2
  168. package/skill-pack/maintained/outerlayer-build/references/evidence.md +5 -2
  169. package/dist/agent-setup-RXMEQ7PA.js +0 -40
  170. package/dist/build-ZH5MAZNM.js +0 -24
  171. package/dist/build-disk-GPCMOIZV.js +0 -21
  172. package/dist/builder-ZMVXHOEJ.js +0 -20
  173. package/dist/caller-J7FR4VBJ.js +0 -23
  174. package/dist/docker-CAMJXBAJ.js +0 -20
  175. package/dist/emit-artifact-cmd-CGY656UZ.js +0 -44
  176. package/dist/emit-criteria-cmd-3HYUUSDK.js +0 -35
  177. package/dist/find-unit-N3OJBFS5.js +0 -24
  178. package/dist/fleet-readiness-F46LOKJ6.js +0 -31
  179. package/dist/governing-source-4XYZYZCD.js +0 -41
  180. package/dist/guest-init-CFJM25V5.js +0 -20
  181. package/dist/host-checks-PPTMNHRA.js +0 -79
  182. package/dist/host-key-QUBI74MS.js +0 -18
  183. package/dist/init-5ERGXSUD.js +0 -79
  184. package/dist/install-cmd-3NOHEA6E.js +0 -21
  185. package/dist/loop-HTKTSGBA.js +0 -90
  186. package/dist/machine-RBYGRRSM.js +0 -79
  187. package/dist/pending-C4XQUKWA.js +0 -18
  188. package/dist/pidfile-3BILBCEO.js +0 -19
  189. package/dist/record-MV6WJGZT.js +0 -18
  190. package/dist/runner-agents-FQ4FODZN.js +0 -14
  191. package/dist/runner-env-72OTIZV2.js +0 -24
  192. package/dist/runner-identity-IVP2GW33.js +0 -20
  193. package/dist/session-sender-PWYFVWN6.js +0 -44
  194. package/dist/state-C3FRODOO.js +0 -18
  195. package/dist/update-steps-WD25IX2R.js +0 -80
  196. package/dist/work-comment-cmd-ER53OPLH.js +0 -38
  197. package/dist/work-pr-cmd-FCNFYWUR.js +0 -34
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-PMBG7IYE.js';
4
- import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-2C3XLYO5.js';
3
+ import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-3FAJMXBA.js';
4
+ import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-5VAXNAOD.js';
5
5
  import { spawnSync } from 'child_process';
6
6
  import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
7
7
  import { dirname, join } from 'path';
@@ -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-2JIGPSVF.js';
9
+ import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-YXXJBHHF.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,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
4
- import { detectActiveSession } from './chunk-IJN3GP4M.js';
5
- import { autoConnect } from './chunk-DOKFFSOZ.js';
4
+ import { detectActiveSession } from './chunk-DL5N6V3D.js';
5
+ import { autoConnect } from './chunk-XE2PXGZT.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-VUSYGNNN.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-XDRZ3BNA.js';
8
8
  import { launchedItemForSession } from './chunk-4OD45RBP.js';
9
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
10
  import { homeFromEnv } from './chunk-352DHUTP.js';
11
- import { resolveRepoIdentity } from './chunk-QAFR65VC.js';
12
- import { CriteriaListSchema } from './chunk-2JIGPSVF.js';
11
+ import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
12
+ import { CriteriaListSchema } from './chunk-YXXJBHHF.js';
13
13
  import { readFileSync } from 'fs';
14
14
 
15
15
  createRequire(import.meta.url);
@@ -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-IYUJFAQD.js';
3
+ import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-AVEF3T6Y.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,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-3B5H5MGB.js';
4
- import { WorkCommandError, resolveCredentials, getJson } from './chunk-GMRIR2MF.js';
5
- import { sanitizeTerminal } from './chunk-VVZIFOAN.js';
3
+ import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-BO3NOGKE.js';
4
+ import { WorkCommandError, resolveCredentials, getJson } from './chunk-JTDMSQMI.js';
5
+ import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { defaultFetch } from './chunk-VUSYGNNN.js';
7
+ import { defaultFetch } from './chunk-XDRZ3BNA.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-IYUJFAQD.js';
12
- import { resolveRepoIdentity } from './chunk-QAFR65VC.js';
13
- import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit } from './chunk-2JIGPSVF.js';
11
+ import { parseProofsConfig } from './chunk-AVEF3T6Y.js';
12
+ import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
13
+ import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit, isTestSourcePath } from './chunk-YXXJBHHF.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-PPTMNHRA.js');
132
+ const { testProofIn } = await import('./host-checks-OXB5J3KR.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-PPTMNHRA.js');
139
+ const { checksIn, isJudgeCheck } = await import('./host-checks-OXB5J3KR.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 };
@@ -224,7 +224,11 @@ ${parts.join("\n")}
224
224
  }
225
225
  function testSelectors(tests) {
226
226
  if (!tests.selected) return [];
227
- return tests.items.map((test) => test.file !== null && test.line !== null ? `${test.name}=${test.file}:${test.line}` : test.name);
227
+ return tests.items.map((test) => {
228
+ if (test.file === null) return test.name;
229
+ if (test.line !== null) return `${test.name}=${test.file}:${test.line}`;
230
+ return isTestSourcePath(test.file) ? `${test.name}=${test.file}` : test.name;
231
+ });
228
232
  }
229
233
  function testFilesOf(tests) {
230
234
  return [...new Set(tests.items.flatMap((test) => test.file === null ? [] : [test.file]))].sort();
@@ -246,7 +250,7 @@ function recordingProblems(input) {
246
250
  if (entry.proof !== "test" || entry.tests === void 0) continue;
247
251
  const files = testFilesOf(entry.tests);
248
252
  const unmatched = files.filter((file) => matches(file) === void 0);
249
- if (files.length === 0) problems.push(`The host cannot record ${entry.id} again: its results name no test file. Emit them again naming each test with --test <name>=<path>:<line>.`);
253
+ if (files.length === 0) problems.push(`The host cannot record ${entry.id} again: its results name no test file. Turn on the JUnit reporter's file attribute (Vitest and jest-junit: addFileAttribute) and emit them again, or name each test's file with --test <name>=<path>.`);
250
254
  else if (unmatched.length > 0) problems.push(`The host cannot record ${entry.id} again: no runner in .outerlayer-proofs.yaml matches ${unmatched.join(", ")}.`);
251
255
  }
252
256
  return problems;
@@ -368,7 +372,7 @@ async function runWorkProofs(opts) {
368
372
  async function runWorkProofsCommand(opts) {
369
373
  try {
370
374
  if (opts.record) {
371
- const { runWorkProofsRecord } = await import('./work-proofs-record-MKCYQLS2.js');
375
+ const { runWorkProofsRecord } = await import('./work-proofs-record-6FTMJDQG.js');
372
376
  const result2 = await runWorkProofsRecord(opts);
373
377
  process.exitCode = result2.exitCode;
374
378
  return;
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RELAY_PORT, BUILD_HOME } from './chunk-XUXDUOJI.js';
3
+ import { RELAY_PORT, BUILD_HOME } from './chunk-OUHM6U6Z.js';
4
4
  import { createServer, connect } from 'net';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-DP6ZOSCR.js';
4
- import { strippedVariables } from './chunk-RM3K57Q7.js';
5
- import { defaultAgents } from './chunk-IYUJFAQD.js';
6
- import { PROVIDERS } from './chunk-QJKW4MKH.js';
7
- import { MIN_SCRUBBED_LITERAL } from './chunk-QAFR65VC.js';
3
+ import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-CGXYPLK3.js';
4
+ import { strippedVariables } from './chunk-RZ6WJTUP.js';
5
+ import { defaultAgents } from './chunk-AVEF3T6Y.js';
6
+ import { PROVIDERS } from './chunk-7PZDPISM.js';
7
+ import { MIN_SCRUBBED_LITERAL } from './chunk-5R5FEPLH.js';
8
8
  import { mkdirSync, writeFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
9
9
  import { request as request$1, createServer } from 'http';
10
10
  import { request } from 'https';
@@ -537,7 +537,7 @@ function buildEnvironment(input) {
537
537
  }
538
538
  }
539
539
  const destinations = destinationEnvironment(input.config.build?.destinations, containerLocalAddress);
540
- const builtInLiterals = builtIns ? builtInEnvironment((name2) => containerBuiltInAddress(name2, input.agents), input.config.managed === true ? managedAgentCredential(input.agents) : agentCredential(input.hostEnv, {}, input.agents), input.agents) : {};
540
+ const builtInLiterals = builtIns ? builtInEnvironment((name2) => containerBuiltInAddress(name2, input.agents), input.config.managed === true ? managedAgentCredential(input.agents) : agentCredential(input.hostEnv, {}, input.agents), input.agents, void 0, input.job) : {};
541
541
  const hooksPath = input.identity?.hooksPath;
542
542
  const hooks = {};
543
543
  if (hooksPath !== void 0) {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { isSameProcess } from './chunk-JBJTC3UU.js';
4
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-2C3XLYO5.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-5VAXNAOD.js';
5
5
  import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
6
6
  import { dirname } from 'path';
7
7
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
3
+ import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
4
4
 
5
5
  createRequire(import.meta.url);
6
6
 
@@ -108,9 +108,49 @@ var CLAUDE_CODE_HOOKS = {
108
108
  statusLine
109
109
  };
110
110
 
111
+ // ../agents/src/opencode/hooks.ts
112
+ var REGISTERED2 = [
113
+ ["session.execution.started", "session-start"],
114
+ ["session.tool.success", "tool-used"],
115
+ ["session.usage.updated", "usage"],
116
+ ["session.execution.succeeded", "turn-ended"]
117
+ ];
118
+ var KIND_BY_NAME2 = new Map(REGISTERED2);
119
+ var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
120
+ var text2 = (value) => typeof value === "string" ? value : void 0;
121
+ function parsePayload2(stdin) {
122
+ try {
123
+ const parsed = stdin === "" ? {} : JSON.parse(stdin);
124
+ return isObject(parsed) ? parsed : {};
125
+ } catch {
126
+ return {};
127
+ }
128
+ }
129
+ function decode2(name, stdin) {
130
+ const payload = parsePayload2(stdin);
131
+ const nativeName = String(name ?? payload.type ?? "unknown");
132
+ const kind = KIND_BY_NAME2.get(nativeName);
133
+ const sessionId = text2(isObject(payload.data) ? payload.data.sessionID : void 0) ?? text2(payload.sessionID);
134
+ const cwd = text2(isObject(payload.location) ? payload.location.directory : void 0);
135
+ return {
136
+ nativeName,
137
+ ...kind === void 0 ? {} : { kind },
138
+ ...kind !== void 0 && sessionId !== void 0 ? { event: { kind, sessionId, cwd: cwd ?? "", session: { agent: "opencode", id: sessionId, locator: { kind: "export", id: sessionId } } } } : {},
139
+ spool: { sessionId: sessionId ?? null, transcriptPath: null, cwd: cwd ?? null, payloadEvent: payload.type ?? null },
140
+ fromSubagent: false
141
+ };
142
+ }
143
+ var OPENCODE_CODEC = {
144
+ events: REGISTERED2.map(([name]) => name),
145
+ decode: decode2,
146
+ // OpenCode takes no context from a hook, so there is nothing to print.
147
+ reply: () => ""
148
+ };
149
+
111
150
  // ../agents/src/native/hook-codecs.ts
112
151
  var HOOK_CODECS = {
113
- "claude-code": CLAUDE_CODE_HOOKS
152
+ "claude-code": CLAUDE_CODE_HOOKS,
153
+ opencode: OPENCODE_CODEC
114
154
  };
115
155
 
116
156
  // ../agents/src/lifecycle.ts
@@ -118,4 +158,4 @@ function hookCodec(agentId) {
118
158
  return HOOK_CODECS[agentId ?? LEGACY_AGENT];
119
159
  }
120
160
 
121
- export { CLAUDE_CODE_HOOKS, hookCodec };
161
+ export { CLAUDE_CODE_HOOKS, OPENCODE_CODEC, hookCodec };
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-GLJX2CZY.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-HU3POMM4.js';
5
- import { RunnerAlreadyRunningError, readPidFile } from './chunk-JCEJARDB.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-Z4R36YDJ.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-2MQQASWB.js';
5
+ import { RunnerAlreadyRunningError, readPidFile } from './chunk-PARDL7HH.js';
6
6
  import { isSameProcess } from './chunk-JBJTC3UU.js';
7
- import { isSignatureRefusal, postJson } from './chunk-GMRIR2MF.js';
8
- import { keyRunnerFactory } from './chunk-SKV6FO37.js';
9
- import { signerFor } from './chunk-U63SE2NJ.js';
10
- import { pidFilePath } from './chunk-2C3XLYO5.js';
7
+ import { isSignatureRefusal, postJson } from './chunk-JTDMSQMI.js';
8
+ import { keyRunnerFactory } from './chunk-VNT2IRLM.js';
9
+ import { signerFor } from './chunk-EFAOERZH.js';
10
+ import { pidFilePath } from './chunk-5VAXNAOD.js';
11
11
  import { readFileSync } from 'fs';
12
12
 
13
13
  createRequire(import.meta.url);
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-GLJX2CZY.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-HU3POMM4.js';
5
- import { getJson, WorkCommandError } from './chunk-GMRIR2MF.js';
6
- import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-SKV6FO37.js';
7
- import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-3J7F3VGZ.js';
8
- import { ensureHostKey } from './chunk-U63SE2NJ.js';
9
- import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-DP6ZOSCR.js';
10
- import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-RM3K57Q7.js';
11
- import { defaultAgents } from './chunk-IYUJFAQD.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-Z4R36YDJ.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-2MQQASWB.js';
5
+ import { getJson, WorkCommandError } from './chunk-JTDMSQMI.js';
6
+ import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-VNT2IRLM.js';
7
+ import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-MPE4NOKD.js';
8
+ import { ensureHostKey } from './chunk-EFAOERZH.js';
9
+ import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-CGXYPLK3.js';
10
+ import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-RZ6WJTUP.js';
11
+ import { defaultAgents } from './chunk-AVEF3T6Y.js';
12
12
  import { closeSync, openSync, constants, readFileSync } from 'fs';
13
13
  import { join, dirname } from 'path';
14
14
  import { totalmem } from 'os';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-OV4XTV5M.js';
4
- import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-IYUJFAQD.js';
5
- import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
3
+ import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-SF2TBJBP.js';
4
+ import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-AVEF3T6Y.js';
5
+ import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
6
6
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
7
7
  import { lstatSync, readFileSync } from 'fs';
8
8
  import { join } from 'path';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { decodeWrappedCommand } from './chunk-ZHQC43NH.js';
4
- import { hookCodec } from './chunk-WWTZLRPH.js';
4
+ import { hookCodec } from './chunk-PLVHIQJN.js';
5
5
  import { homeFromEnv } from './chunk-352DHUTP.js';
6
6
  import { readFileSync, mkdirSync, appendFileSync, writeFileSync } from 'fs';
7
7
  import { spawn } from 'child_process';
@@ -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-6XYKZH3K.js';
4
+ import { runEmitArtifact } from './chunk-4MSEUIMK.js';
5
5
  import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
6
- import { detectActiveSession } from './chunk-IJN3GP4M.js';
7
- import { autoConnect } from './chunk-DOKFFSOZ.js';
6
+ import { detectActiveSession } from './chunk-DL5N6V3D.js';
7
+ import { autoConnect } from './chunk-XE2PXGZT.js';
8
8
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { defaultFetch, resolveGatewayCredentials } from './chunk-VUSYGNNN.js';
9
+ import { defaultFetch, resolveGatewayCredentials } from './chunk-XDRZ3BNA.js';
10
10
  import { launchedItemForSession } from './chunk-4OD45RBP.js';
11
- import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-RM3K57Q7.js';
11
+ import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-RZ6WJTUP.js';
12
12
  import { homeFromEnv } from './chunk-352DHUTP.js';
13
- import { resolveRepoIdentity } from './chunk-QAFR65VC.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-2JIGPSVF.js';
13
+ import { resolveRepoIdentity } from './chunk-5R5FEPLH.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';
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 { currentLink } from './chunk-HOCVTWV2.js';
3
+ import { currentLink } from './chunk-ZTJTAKVW.js';
4
4
  import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
5
5
  import { randomBytes } from 'crypto';
6
6
  import { join, dirname, delimiter, resolve } from 'path';
@@ -1,13 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { defaultAgents, agentById } from './chunk-IYUJFAQD.js';
4
- import { LEGACY_AGENT, PROVIDERS } from './chunk-QJKW4MKH.js';
3
+ import { defaultAgents, agentById } from './chunk-AVEF3T6Y.js';
4
+ import { PROVIDERS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
5
5
  import { join, dirname } from 'path';
6
6
 
7
7
  createRequire(import.meta.url);
8
8
 
9
9
  // src/runner/image/pins.ts
10
10
  var CLAUDE_CODE_VERSION = "2.1.284";
11
+ var OPENCODE_VERSION = "2.2.5";
11
12
  var DEFAULT_BASE_IMAGE = "ubuntu:24.04@sha256:008173c23f95b170204355c12626cb5a965d779a7e1283b09e9cffbb1bf33ca3";
12
13
  var NODE_IMAGE = "node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c";
13
14
  var BUILDKIT_IMAGE = "moby/buildkit:v0.33.1@sha256:cec9f139f45e93c5c69c60f8b07cfad9f43f4ef6b6a6cd917527fea5ff2e3dea";
@@ -146,7 +147,7 @@ function universalImagePinned(digest = UNIVERSAL_IMAGE_DIGEST) {
146
147
  }
147
148
 
148
149
  // src/runner/runner-agents.ts
149
- var AGENT_PINS = { [LEGACY_AGENT]: CLAUDE_CODE_VERSION };
150
+ var AGENT_PINS = { [LEGACY_AGENT]: CLAUDE_CODE_VERSION, opencode: OPENCODE_VERSION };
150
151
  function runnerAgents(agents = defaultAgents()) {
151
152
  return agents.flatMap((agent) => agent.adapter.credentials === void 0 ? [] : [{ descriptor: agent.descriptor, adapter: agent.adapter, credentials: agent.adapter.credentials }]);
152
153
  }
@@ -156,10 +157,18 @@ function credentialAgent(agents = defaultAgents()) {
156
157
  function buildAgent(agents = defaultAgents()) {
157
158
  return agentById(LEGACY_AGENT, agents);
158
159
  }
159
- function jobAgent(_job, agents = defaultAgents()) {
160
- return buildAgent(agents);
160
+ function programOf(command) {
161
+ const word = command.trim().split(/\s+/).find((candidate) => !/^[A-Za-z_][A-Za-z0-9_]*=/.test(candidate));
162
+ return word?.replace(/^["']|["']$/g, "").split("/").pop();
163
+ }
164
+ function agentIdOfCommand(command, agents = defaultAgents()) {
165
+ const program = command === void 0 ? void 0 : programOf(command);
166
+ return program === void 0 ? void 0 : agents.find((agent) => agent.descriptor.program === program)?.descriptor.id;
167
+ }
168
+ function jobAgent(job, agents = defaultAgents()) {
169
+ const id = job?.agent ?? agentIdOfCommand(job?.command, agents);
170
+ return (id === void 0 ? void 0 : agentById(id, agents)) ?? buildAgent(agents);
161
171
  }
162
- var JOB_AGENT_ID = LEGACY_AGENT;
163
172
  function headlessAgents(agents = defaultAgents()) {
164
173
  return agents.flatMap((agent) => agent.adapter.headless === void 0 ? [] : [{ descriptor: agent.descriptor, adapter: agent.adapter, headless: agent.adapter.headless }]);
165
174
  }
@@ -174,10 +183,10 @@ function agentCommands(name, agents = defaultAgents()) {
174
183
  return found === void 0 ? void 0 : { implement: found.headless.commandLine(queuePrompt("implement"), "implement"), amend: found.headless.commandLine(queuePrompt("amend"), "amend") };
175
184
  }
176
185
  function defaultCommandLine(queue, agents = defaultAgents()) {
177
- return jobAgent(void 0, agents)?.adapter.headless?.commandLine(queuePrompt(queue), queue);
186
+ return buildAgent(agents)?.adapter.headless?.commandLine(queuePrompt(queue), queue);
178
187
  }
179
- function jobCommandEnv(sessionEnv, agents = defaultAgents()) {
180
- return { ...jobAgent(void 0, agents)?.adapter.headless?.jobEnv, OUTERLAYER_UNATTENDED: "1", ...sessionEnv };
188
+ function jobCommandEnv(sessionEnv, agents = defaultAgents(), job) {
189
+ return { ...jobAgent(job, agents)?.adapter.headless?.jobEnv, OUTERLAYER_UNATTENDED: "1", ...sessionEnv };
181
190
  }
182
191
  function runnerNameOf(descriptor) {
183
192
  return descriptor.legacy?.runnerName ?? descriptor.id;
@@ -209,9 +218,10 @@ function storeVariables(forms) {
209
218
  const [first, ...rest] = forms.variables;
210
219
  return [`${first} (from \`${forms.setupCommand}\`)`, ...rest].join(" or ");
211
220
  }
212
- function credentialForms(descriptor) {
221
+ function credentialForms(descriptor, agents = defaultAgents()) {
213
222
  const { label, setupCommand, forwarded } = descriptor.credentials;
214
- return { label, possessive: `${label}'s`, checkName: `${runnerNameOf(descriptor)} credential`, setupCommand, variables: forwarded, runnerName: runnerNameOf(descriptor), envFile: credentialNames(descriptor).envFile };
223
+ const owner = runnerAgents(agents).find((agent) => agent.descriptor.credentials.forwarded.some((variable) => forwarded.includes(variable)))?.descriptor ?? descriptor;
224
+ return { label, possessive: `${label}'s`, checkName: `${runnerNameOf(descriptor)} credential`, setupCommand, variables: forwarded, runnerName: runnerNameOf(descriptor), envFile: credentialNames(owner).envFile };
215
225
  }
216
226
  function credentialShapes(descriptor, providers = PROVIDERS) {
217
227
  const { setupCommand, forwarded, kinds } = descriptor.credentials;
@@ -219,7 +229,7 @@ function credentialShapes(descriptor, providers = PROVIDERS) {
219
229
  const kind = kinds[variable];
220
230
  const provider = providers[kind.provider];
221
231
  const name = `${provider?.label ?? kind.provider} ${provider?.credentialKinds.find((candidate) => candidate.id === kind.providerKind)?.label ?? kind.providerKind}`;
222
- return { phrase: index === 0 ? `a token from \`${setupCommand}\`` : `${/^[AEIOU]/i.test(name) ? "an" : "a"} ${name}`, starts: kind.starts };
232
+ return { phrase: index === 0 && setupCommand !== "" ? `a token from \`${setupCommand}\`` : `${/^[AEIOU]/i.test(name) ? "an" : "a"} ${name}`, starts: kind.starts };
223
233
  });
224
234
  }
225
235
  function orList(items) {
@@ -238,15 +248,28 @@ function providersOf(agents = defaultAgents(), providers = PROVIDERS) {
238
248
  function buildAgentPin(agents = defaultAgents()) {
239
249
  return AGENT_PINS[buildAgent(agents)?.descriptor.id ?? LEGACY_AGENT];
240
250
  }
241
- function agentVersionOf(toolsJson, agents = defaultAgents()) {
242
- const agent = buildAgent(agents);
251
+ function judgeAgent(agents = defaultAgents()) {
252
+ return buildAgent(agents);
253
+ }
254
+ function imageInstalls(agents = defaultAgents(), buildVersion, versions = {}) {
255
+ const build = buildAgent(agents);
256
+ return agents.flatMap((agent) => {
257
+ const version = agent === build && buildVersion !== void 0 ? buildVersion : versions[agent.descriptor.id] ?? AGENT_PINS[agent.descriptor.id];
258
+ return agent.adapter.image === void 0 || version === void 0 ? [] : [{ agent, image: agent.adapter.image, version }];
259
+ });
260
+ }
261
+ function imageAgentPins(agents = defaultAgents(), buildVersion) {
262
+ return imageInstalls(agents, buildVersion).map(({ agent, version }) => ({ id: agent.descriptor.id, version }));
263
+ }
264
+ function agentVersionOf(toolsJson, agents = defaultAgents(), job) {
265
+ const agent = jobAgent(job, agents);
243
266
  try {
244
267
  const key = agent?.adapter.image?.versionKey;
245
268
  const version = key === void 0 ? void 0 : JSON.parse(toolsJson)[key];
246
269
  if (typeof version === "string" && version !== "") return version;
247
270
  } catch {
248
271
  }
249
- return buildAgentPin(agents);
272
+ return AGENT_PINS[agent?.descriptor.id ?? LEGACY_AGENT] ?? buildAgentPin(agents);
250
273
  }
251
274
 
252
- export { AGENT_PINS, BUILDER_DISK_BASE_URL, BUILDER_DISK_SHA256, BUILDER_DISK_VERSION, BUILDKIT_IMAGE, DEFAULT_BASE_IMAGE, FFMPEG_BUILD_TAG, FFMPEG_STATIC, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GH_SHA256, GH_VERSION, GUEST_ASSETS_BASE_URL, GUEST_ASSETS_VERSION, GUEST_HELPER_SHA256, GUEST_KERNEL_SHA256, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, HEADLESS_SHELL_REVISION, HOST_HELPER_ASSETS_VERSION, HOST_HELPER_BASE_URL, HOST_HELPER_SHA256, HOST_HELPER_SLICE_SINCE, JAILER_BINARY_SHA256, JOB_AGENT_ID, MANAGED_KIND, MEDIA_PINS, MICROVM_ARCHES, NETWORK_HELPER_SHA256, NODE_IMAGE, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, PLAYWRIGHT_VERSION, TINI_SHA256, TINI_VERSION, UNIVERSAL_IMAGE, UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, VOICE_PACK_FILES, VOICE_PACK_VERSION, agentCommands, agentVersionOf, buildAgent, buildAgentPin, builderDiskPinned, credentialAgent, credentialEnvPath, credentialForms, credentialHandOffKey, credentialNames, credentialShapes, defaultCommandLine, firecrackerArch, forwardedVariables, guestAssetsPinned, headlessNames, hostHelperPinned, hostHelperSupportsSlice, jobAgent, jobCommandEnv, managedKeyName, networkHelperPinned, orList, providersOf, runnerAgentNamed, runnerAgents, storeVariables, strippedVariables, universalImagePinned };
275
+ export { AGENT_PINS, BUILDER_DISK_BASE_URL, BUILDER_DISK_SHA256, BUILDER_DISK_VERSION, BUILDKIT_IMAGE, DEFAULT_BASE_IMAGE, FFMPEG_BUILD_TAG, FFMPEG_STATIC, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GH_SHA256, GH_VERSION, GUEST_ASSETS_BASE_URL, GUEST_ASSETS_VERSION, GUEST_HELPER_SHA256, GUEST_KERNEL_SHA256, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, HEADLESS_SHELL_REVISION, HOST_HELPER_ASSETS_VERSION, HOST_HELPER_BASE_URL, HOST_HELPER_SHA256, HOST_HELPER_SLICE_SINCE, JAILER_BINARY_SHA256, MANAGED_KIND, MEDIA_PINS, MICROVM_ARCHES, NETWORK_HELPER_SHA256, NODE_IMAGE, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, PLAYWRIGHT_VERSION, TINI_SHA256, TINI_VERSION, UNIVERSAL_IMAGE, UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, VOICE_PACK_FILES, VOICE_PACK_VERSION, agentCommands, agentVersionOf, buildAgent, buildAgentPin, builderDiskPinned, credentialAgent, credentialEnvPath, credentialForms, credentialHandOffKey, credentialNames, credentialShapes, defaultCommandLine, firecrackerArch, forwardedVariables, guestAssetsPinned, headlessNames, hostHelperPinned, hostHelperSupportsSlice, imageAgentPins, imageInstalls, jobAgent, jobCommandEnv, judgeAgent, managedKeyName, networkHelperPinned, orList, providersOf, runnerAgentNamed, runnerAgents, storeVariables, strippedVariables, universalImagePinned };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-GLJX2CZY.js';
4
- import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-2RKPEUGK.js';
3
+ import { stripTerminalControls } from './chunk-Z4R36YDJ.js';
4
+ import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-TAEDH2SU.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-CAMJXBAJ.js')).spawnRun;
58
+ const run = deps.run ?? (await import('./docker-FPEQS6HK.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,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-QJKW4MKH.js';
3
+ import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
4
4
 
5
5
  createRequire(import.meta.url);
6
6
 
@@ -21,8 +21,11 @@ function versionAtLeast(text, minimum = MINIMUM_CLAUDE_VERSION) {
21
21
  const difference = have.map((part, i) => part - need[i]).find((delta) => delta !== 0);
22
22
  return (difference ?? 0) >= 0;
23
23
  }
24
- var SHIM_SCRIPT = `#!/bin/sh
25
- exec outerlayer ${LEGACY.legacy.subcommand} "$@"
24
+ var SHIM_SCRIPT = shimScriptFor(LEGACY.legacy.subcommand);
25
+ function shimScriptFor(subcommand) {
26
+ return `#!/bin/sh
27
+ exec outerlayer ${subcommand} "$@"
26
28
  `;
29
+ }
27
30
 
28
- export { CONTROL_PLANE_DIR_VARIABLE, GOVERNANCE_VARIABLE, SHIM_SCRIPT, SUPPORTED_CONTROL_PLANE_LAYOUT, versionAtLeast };
31
+ export { CONTROL_PLANE_DIR_VARIABLE, GOVERNANCE_VARIABLE, SHIM_SCRIPT, SUPPORTED_CONTROL_PLANE_LAYOUT, shimScriptFor, versionAtLeast };
@@ -1,26 +1,26 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { checkStarterFiles, contextIsGoverned } from './chunk-2FDWTE6F.js';
4
- import { resolveCredentials, getJson, WorkCommandError } from './chunk-GMRIR2MF.js';
5
- import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-EKRLMOWS.js';
6
- import { withInjectedPrograms } from './chunk-45UZPTDQ.js';
7
- import { isLinkedRepository } from './chunk-MPGTKJOM.js';
8
- import { sanitizeTerminal } from './chunk-VVZIFOAN.js';
3
+ import { checkStarterFiles, contextIsGoverned } from './chunk-ERQLHUWU.js';
4
+ import { resolveCredentials, getJson, WorkCommandError } from './chunk-JTDMSQMI.js';
5
+ import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-BL6CCU26.js';
6
+ import { withInjectedPrograms } from './chunk-EERD7VI3.js';
7
+ import { isLinkedRepository } from './chunk-EXIZ3G6I.js';
8
+ import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
9
9
  import { C } from './chunk-2AM6Z5BP.js';
10
- import { checkFormerSkillNames } from './chunk-Y2HVISUN.js';
11
- import { resolveGatewayCredentials, defaultFetch } from './chunk-VUSYGNNN.js';
12
- import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-K7BI4TLM.js';
13
- import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-OV4XTV5M.js';
10
+ import { checkFormerSkillNames } from './chunk-T524XQKI.js';
11
+ import { resolveGatewayCredentials, defaultFetch } from './chunk-XDRZ3BNA.js';
12
+ import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-256R6O56.js';
13
+ import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-SF2TBJBP.js';
14
14
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
15
- import { readStatuslineState, STATE_FRESH_MS } from './chunk-7TPLWWFN.js';
15
+ import { readStatuslineState, STATE_FRESH_MS } from './chunk-M53UNEO6.js';
16
16
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
17
- import { installAgents, withSettingsText } from './chunk-64D2YZK5.js';
17
+ import { installAgents, withSettingsText } from './chunk-EHJYXABQ.js';
18
18
  import { cliForInstall, cliBinResolvable } from './chunk-ZHQC43NH.js';
19
19
  import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
20
20
  import { deadHooksState, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
21
- import { defaultAgents, legacyAgent, contextAgents } from './chunk-IYUJFAQD.js';
21
+ import { defaultAgents, legacyAgent, contextAgents } from './chunk-AVEF3T6Y.js';
22
22
  import { homeFromEnv } from './chunk-352DHUTP.js';
23
- import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-QAFR65VC.js';
23
+ import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-5R5FEPLH.js';
24
24
  import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
25
25
  import { sep, join, dirname, resolve, delimiter } from 'path';
26
26
  import { execFileSync } from 'child_process';
@@ -1050,8 +1050,8 @@ function doctorExitCode(checks) {
1050
1050
 
1051
1051
  // src/doctor-report.ts
1052
1052
  async function gatherDoctorChecks() {
1053
- const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-GPCMOIZV.js');
1054
- const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-J4NNZ2XO.js');
1053
+ const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-CKBEEF4N.js');
1054
+ const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-EA6WVKAS.js');
1055
1055
  const configPath = defaultRunnerConfigPath();
1056
1056
  const runnerHost = hasRunnerBlock(configPath);
1057
1057
  const hooks = (() => {
@@ -1079,7 +1079,7 @@ async function gatherDoctorChecks() {
1079
1079
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1080
1080
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1081
1081
  } else if (hasRunnerBlock(configPath)) {
1082
- const { runnerHostChecks } = await import('./doctor-NILQ2RUT.js');
1082
+ const { runnerHostChecks } = await import('./doctor-AFH6UUX6.js');
1083
1083
  const gateway = (() => {
1084
1084
  try {
1085
1085
  const loaded = loadRunnerConfig(configPath);
@@ -1107,7 +1107,7 @@ async function gatherDoctorChecks() {
1107
1107
  const service = await (async () => {
1108
1108
  const { existsSync: existsSync3 } = await import('fs');
1109
1109
  if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
1110
- const { inspectRunnerService } = await import('./find-unit-N3OJBFS5.js');
1110
+ const { inspectRunnerService } = await import('./find-unit-337Y4QAC.js');
1111
1111
  return inspectRunnerService(configPath);
1112
1112
  })();
1113
1113
  checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
4
- import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-IYUJFAQD.js';
4
+ import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-AVEF3T6Y.js';
5
5
  import { readFileSync, existsSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
6
6
  import { join, dirname, relative, sep } from 'path';
7
7
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { isVersion, compareVersions } from './chunk-TQMI335S.js';
4
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-2C3XLYO5.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-5VAXNAOD.js';
5
5
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
6
6
  import { join } from 'path';
7
7
 
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-XUXDUOJI.js';
4
- import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-DP6ZOSCR.js';
5
- import { defaultAgents } from './chunk-IYUJFAQD.js';
6
- import { PROVIDERS } from './chunk-QJKW4MKH.js';
3
+ import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-OUHM6U6Z.js';
4
+ import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-CGXYPLK3.js';
5
+ import { defaultAgents } from './chunk-AVEF3T6Y.js';
6
+ import { PROVIDERS } from './chunk-7PZDPISM.js';
7
7
  import { symlinkSync, unlinkSync } from 'fs';
8
8
  import { join } from 'path';
9
9