@outerlayer/cli 0.36.0-next.20261101131017 → 0.36.0-next.20261102124202

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/dist/agent-setup-AOB76EDJ.js +37 -0
  2. package/dist/{artifact-link-cmd-W7LRR76D.js → artifact-link-cmd-ZCMQIT5Y.js} +2 -2
  3. package/dist/bridge-DFG2GTXQ.js +13 -0
  4. package/dist/build-THAD3B4Q.js +21 -0
  5. package/dist/build-disk-HO2VPIBJ.js +18 -0
  6. package/dist/build-info.json +1 -1
  7. package/dist/builder-AXJNIF4S.js +17 -0
  8. package/dist/caller-GOY2X6QT.js +20 -0
  9. package/dist/{check-G4TVQKN3.js → check-SF2OVZXB.js} +73 -71
  10. package/dist/{chunk-KB5B6ZT5.js → chunk-3FSKTGM6.js} +20 -20
  11. package/dist/{chunk-CONA2WNE.js → chunk-4CTVN3C5.js} +18 -11
  12. package/dist/{chunk-2QW2PLWT.js → chunk-4TNUQLXH.js} +8 -8
  13. package/dist/{chunk-LGV5N5DG.js → chunk-564Q2STF.js} +1 -1
  14. package/dist/{chunk-2ANBJ7DB.js → chunk-5FIOUQGC.js} +8 -8
  15. package/dist/{chunk-4W7CPTKY.js → chunk-5FND4PIU.js} +3 -3
  16. package/dist/{chunk-SQ6HDN7A.js → chunk-5GHJFETA.js} +1 -1
  17. package/dist/{chunk-4DJZSNVT.js → chunk-6JJITHBI.js} +1 -1
  18. package/dist/{chunk-6CYNPWZT.js → chunk-6LO62EQ5.js} +151 -108
  19. package/dist/{chunk-RIHB3HA2.js → chunk-772ILTCK.js} +3 -3
  20. package/dist/{chunk-CIUD3436.js → chunk-A5Y2HBVU.js} +1 -1
  21. package/dist/{chunk-F3ZMVUAS.js → chunk-AYLYAOHH.js} +5 -5
  22. package/dist/{chunk-DZDTSDHQ.js → chunk-C3JWWPLC.js} +10 -11
  23. package/dist/{chunk-JFMSFHER.js → chunk-CKPQOQFC.js} +644 -74
  24. package/dist/{chunk-ALEUIS35.js → chunk-CVGQ3BNF.js} +1 -1
  25. package/dist/{chunk-GDMAN42R.js → chunk-EBIYRRJW.js} +5 -5
  26. package/dist/{chunk-UIKUH2UQ.js → chunk-ESSJPSJ2.js} +2 -2
  27. package/dist/{chunk-A67A5SWG.js → chunk-EUDG754F.js} +2 -2
  28. package/dist/{chunk-55PYF6S2.js → chunk-FIO6PIZ6.js} +3 -3
  29. package/dist/{chunk-WT7J2627.js → chunk-GD6KIHOS.js} +1 -1
  30. package/dist/{chunk-SRENPED2.js → chunk-GDZTL6BI.js} +42 -33
  31. package/dist/{chunk-AF6DQJ5W.js → chunk-GSXGA6KF.js} +1 -1
  32. package/dist/{chunk-T3AJOPUR.js → chunk-GZ75FRLB.js} +4 -5
  33. package/dist/chunk-H2FFONRY.js +136 -0
  34. package/dist/{chunk-IM2DECLP.js → chunk-HIN4BMRW.js} +3 -3
  35. package/dist/{chunk-OLENS2DD.js → chunk-I626B72C.js} +29 -26
  36. package/dist/{chunk-YCUUZGFF.js → chunk-I6FRCBMU.js} +26 -21
  37. package/dist/{chunk-PN6TNCQI.js → chunk-J7TCTARR.js} +11 -12
  38. package/dist/chunk-J7Y3PCO2.js +653 -0
  39. package/dist/{chunk-YQHEJ5SV.js → chunk-JVCQZDQ6.js} +3 -3
  40. package/dist/{chunk-5DYL6FJA.js → chunk-JXXHLQQR.js} +3 -3
  41. package/dist/{chunk-VI6Z4EJZ.js → chunk-K3X3L5YW.js} +4 -4
  42. package/dist/{chunk-MKSZHT6S.js → chunk-KN4VIK53.js} +1 -1
  43. package/dist/{chunk-3LCXSD26.js → chunk-L2BA2HXM.js} +1 -1
  44. package/dist/chunk-L3JXQDVH.js +78 -0
  45. package/dist/{chunk-3ONYQMGD.js → chunk-LCOQN6NR.js} +3 -3
  46. package/dist/{chunk-6KHQGLNT.js → chunk-LSXHTBAM.js} +5 -5
  47. package/dist/{chunk-RGH5GYU2.js → chunk-LVXR37OG.js} +47 -38
  48. package/dist/{chunk-HGGR7Y3V.js → chunk-LYFLUNWK.js} +12 -12
  49. package/dist/{chunk-GANAOCHR.js → chunk-M2NIHHQI.js} +24 -374
  50. package/dist/chunk-NC3QAHOS.js +26 -0
  51. package/dist/{chunk-UFRRRF64.js → chunk-NTMRMBLM.js} +10 -5
  52. package/dist/{chunk-RGU6LHPI.js → chunk-NWBB2SQ4.js} +38 -35
  53. package/dist/{chunk-A7D5BMII.js → chunk-OYKAOHX5.js} +5 -5
  54. package/dist/{chunk-46YRS7QS.js → chunk-OZOATEK3.js} +4 -4
  55. package/dist/{chunk-3PQTOKML.js → chunk-P6PHY33P.js} +1 -1
  56. package/dist/{chunk-GQ7VVBUA.js → chunk-PKO5IDW4.js} +7 -7
  57. package/dist/{chunk-7J7HRYZ3.js → chunk-PQDFW422.js} +1 -1
  58. package/dist/{chunk-EZRAR5YG.js → chunk-PT34C6SU.js} +1 -1
  59. package/dist/{chunk-K66FIV2S.js → chunk-PTPF36Q7.js} +3 -3
  60. package/dist/{chunk-7Y5VW4JG.js → chunk-Q42K6XZ6.js} +1 -1
  61. package/dist/{chunk-VIJWXQMT.js → chunk-QJDX6VJS.js} +7 -7
  62. package/dist/{chunk-W46566FP.js → chunk-RK4JQRVT.js} +9 -9
  63. package/dist/{chunk-U553JKMO.js → chunk-RPZIHELI.js} +5 -5
  64. package/dist/{chunk-CIEX2ZKQ.js → chunk-RSRZDF3K.js} +6 -6
  65. package/dist/{chunk-46OBCATR.js → chunk-T5Z22NA6.js} +1 -1
  66. package/dist/{chunk-5H57X7YC.js → chunk-TPMLB3VZ.js} +1 -1
  67. package/dist/chunk-TWYHSMHM.js +67 -0
  68. package/dist/{chunk-6GA5BJTH.js → chunk-TYCZVJTB.js} +54 -31
  69. package/dist/{chunk-4SFHEARD.js → chunk-VRQM4A64.js} +6 -3
  70. package/dist/{chunk-LRCGXRQI.js → chunk-WDQPBAFV.js} +44 -19
  71. package/dist/{chunk-UZGQT6OF.js → chunk-WLMAGMTU.js} +5 -3
  72. package/dist/{chunk-KCUX5I5W.js → chunk-WNYH42PF.js} +6 -6
  73. package/dist/{chunk-C4YULCXX.js → chunk-WQB3XOEP.js} +28 -31
  74. package/dist/{chunk-VUG4IZ7H.js → chunk-WUKLQWGY.js} +1 -1
  75. package/dist/{chunk-MDFOS4OM.js → chunk-XABJMU5A.js} +4 -4
  76. package/dist/{chunk-MMXPNEEQ.js → chunk-XAOIHYPS.js} +29 -24
  77. package/dist/{chunk-WAZJPDR2.js → chunk-XE3DIJJT.js} +1 -1
  78. package/dist/{chunk-3SQZ5LIK.js → chunk-XHFSBSIA.js} +4 -4
  79. package/dist/{chunk-GDIVOYDA.js → chunk-XLOM2BNL.js} +3 -4
  80. package/dist/{claude-launcher-YV3TDXBU.js → claude-launcher-LXZPTDNC.js} +23 -18
  81. package/dist/{cli-EMQEIYSR.js → cli-QFUT3UQS.js} +145 -146
  82. package/dist/{cli-update-notice-T3CXRWNB.js → cli-update-notice-AWYJ4A7R.js} +2 -2
  83. package/dist/{command-GKVKI74I.js → command-45RZT4CK.js} +59 -60
  84. package/dist/{config-4HXUXX3M.js → config-WYQPXLOP.js} +13 -11
  85. package/dist/connect-cmd-LUCQ7FSV.js +26 -0
  86. package/dist/{container-start-OMF3ZUIB.js → container-start-T776VI3M.js} +59 -58
  87. package/dist/{context-cleanup-TPHCVVFV.js → context-cleanup-QE2MIO2Q.js} +5 -3
  88. package/dist/{context-show-cmd-MKQAAR7R.js → context-show-cmd-7QEHUOEL.js} +17 -17
  89. package/dist/{control-plane-launch-UWFQWMWB.js → control-plane-launch-THUH6YU5.js} +19 -19
  90. package/dist/{demo-record-cmd-Y57UWBCX.js → demo-record-cmd-SBERRQNW.js} +8 -5
  91. package/dist/{demo-voice-cmd-H4PCO2PT.js → demo-voice-cmd-VM3FITZU.js} +22 -24
  92. package/dist/{dist-Y3WSK7OZ.js → dist-6KGTCWKR.js} +2 -2
  93. package/dist/docker-MQNLK4OO.js +17 -0
  94. package/dist/{doctor-FEBZ3DZB.js → doctor-NQOSPJGS.js} +75 -72
  95. package/dist/emit-artifact-cmd-6E365VBQ.js +41 -0
  96. package/dist/emit-cmd-ZPFCPVSR.js +16 -0
  97. package/dist/emit-criteria-cmd-HWQOYZZ4.js +32 -0
  98. package/dist/{emit-demo-cmd-VKGN74NW.js → emit-demo-cmd-PMQGNNVX.js} +22 -24
  99. package/dist/{emit-finding-cmd-DNFJEYQS.js → emit-finding-cmd-MYWQN5WW.js} +17 -18
  100. package/dist/{emit-result-cmd-OR5WTW4P.js → emit-result-cmd-GXK3KMAP.js} +20 -21
  101. package/dist/{emit-step-cmd-AAEBYW3L.js → emit-step-cmd-ZV2XTUVT.js} +17 -18
  102. package/dist/exec-client-P7RFRUCK.js +14 -0
  103. package/dist/find-unit-63SXQ7IM.js +21 -0
  104. package/dist/{findings-cmd-LTM62M3K.js → findings-cmd-OGMBVVSM.js} +17 -18
  105. package/dist/fleet-readiness-4RBKLXBQ.js +27 -0
  106. package/dist/governing-source-XJMXFSAR.js +38 -0
  107. package/dist/guest-init-XZHRPIMG.js +16 -0
  108. package/dist/{hook-fast-3HPWMSFB.js → hook-fast-ZOWGWCPO.js} +5 -5
  109. package/dist/host-checks-WHW24PJR.js +76 -0
  110. package/dist/host-key-MWLXB5U5.js +14 -0
  111. package/dist/{image-tag-WBD57QBN.js → image-tag-E4JK2APF.js} +9 -4
  112. package/dist/index.js +4 -4
  113. package/dist/init-EZIAHBMH.js +76 -0
  114. package/dist/{init-O5H4TWA7.js → init-LO6U7YTW.js} +56 -55
  115. package/dist/{init-cmd-HWAXEEOD.js → init-cmd-2JANO5EN.js} +27 -28
  116. package/dist/{init-update-3W2TOJQV.js → init-update-D6PRTGNE.js} +55 -48
  117. package/dist/install-cmd-SJMBNQEH.js +17 -0
  118. package/dist/layout-AQHIMJMO.js +11 -0
  119. package/dist/{login-browser-ODTJEGDN.js → login-browser-QH4KYG3F.js} +2 -2
  120. package/dist/{logs-FEITSC2V.js → logs-NE55HOET.js} +8 -3
  121. package/dist/loop-2E34CGCX.js +87 -0
  122. package/dist/machine-6ALGG4IO.js +76 -0
  123. package/dist/{machine-skills-VRUJVBQV.js → machine-skills-KK2HXYMR.js} +3 -4
  124. package/dist/{mcp-install-cmd-23ZY4IBK.js → mcp-install-cmd-2QAS3AQZ.js} +5 -1
  125. package/dist/{mcp-serve-cmd-ZINYSLY6.js → mcp-serve-cmd-U6USKHYR.js} +9 -7
  126. package/dist/{paths-XEYE7OZ2.js → paths-O7LCWY33.js} +8 -3
  127. package/dist/pending-YU2GE2UV.js +14 -0
  128. package/dist/pidfile-5GDCQ5HA.js +15 -0
  129. package/dist/record-NETSDAO6.js +14 -0
  130. package/dist/{relay-IEYNSKAZ.js → relay-VZ733BVJ.js} +6 -1
  131. package/dist/{relay-protocol-5LSWUJCW.js → relay-protocol-24GEUGCO.js} +6 -1
  132. package/dist/runner-env-KHCONH2R.js +21 -0
  133. package/dist/runner-identity-PSCZBILD.js +17 -0
  134. package/dist/{runner-key-HUOW7X7B.js → runner-key-VM2LYVRK.js} +48 -50
  135. package/dist/{session-sender-32UAV25N.js → session-sender-P2RHDM6U.js} +21 -22
  136. package/dist/{spec-cmd-TPRHZ3EV.js → spec-cmd-LGKP6MT7.js} +18 -19
  137. package/dist/{starter-pack-7QNUT74O.js → starter-pack-SMK6UPRL.js} +6 -7
  138. package/dist/state-RJR4PMMX.js +14 -0
  139. package/dist/{status-HDJ2V5UD.js → status-HEHCNIDS.js} +48 -50
  140. package/dist/{sync-cmd-AHXCXMVP.js → sync-cmd-HKN45HXL.js} +20 -21
  141. package/dist/update-steps-7E4RD47J.js +77 -0
  142. package/dist/{watch-4EDI4CTS.js → watch-RGZCUCR3.js} +20 -21
  143. package/dist/{work-claim-cmd-GFRZBX2V.js → work-claim-cmd-6DSPGCZE.js} +24 -26
  144. package/dist/{work-cmd-FLKJQWGQ.js → work-cmd-GPLYLWY7.js} +17 -18
  145. package/dist/work-comment-cmd-V5WM7LAW.js +35 -0
  146. package/dist/{work-demo-cmd-FDPDTXG6.js → work-demo-cmd-SWWI6AGD.js} +17 -18
  147. package/dist/{work-logs-cmd-PSB44DT5.js → work-logs-cmd-CTFBOPCI.js} +17 -18
  148. package/dist/{work-open-pr-cmd-QJW5PNT2.js → work-open-pr-cmd-HX2U3YBR.js} +18 -19
  149. package/dist/{work-pr-cmd-HMGBUHGL.js → work-pr-cmd-EI2R4FQG.js} +17 -18
  150. package/dist/{work-proofs-cmd-3GPGH4RL.js → work-proofs-cmd-QXNPHLYC.js} +19 -20
  151. package/dist/{work-proofs-record-AC4GYMQA.js → work-proofs-record-72OKWEES.js} +26 -28
  152. package/dist/{work-stop-cmd-YO7SBPNF.js → work-stop-cmd-7M7ZYUN2.js} +17 -18
  153. package/package.json +2 -1
  154. package/dist/agent-setup-UYTS2PHZ.js +0 -33
  155. package/dist/bridge-XM4QLKIX.js +0 -8
  156. package/dist/build-IENNKWWC.js +0 -18
  157. package/dist/build-disk-M33Q6L22.js +0 -15
  158. package/dist/builder-YNMSYR75.js +0 -14
  159. package/dist/caller-2GU5V52U.js +0 -18
  160. package/dist/chunk-3DMCCCVM.js +0 -74
  161. package/dist/chunk-7O7LJWQO.js +0 -144
  162. package/dist/chunk-FGF52V4V.js +0 -137
  163. package/dist/chunk-HCVLP7XA.js +0 -53
  164. package/dist/chunk-MESOOLF4.js +0 -45
  165. package/dist/chunk-OHQMGLJP.js +0 -113
  166. package/dist/chunk-OUPQTA7N.js +0 -145
  167. package/dist/connect-cmd-GLB2X7YA.js +0 -27
  168. package/dist/docker-AFJABU7U.js +0 -14
  169. package/dist/emit-artifact-cmd-DGFH4MUK.js +0 -42
  170. package/dist/emit-cmd-HNXRGC5Z.js +0 -17
  171. package/dist/emit-criteria-cmd-B23VYUF6.js +0 -33
  172. package/dist/exec-client-FGGPQSYQ.js +0 -9
  173. package/dist/find-unit-4XKMNIE7.js +0 -19
  174. package/dist/fleet-readiness-FAKMWCJV.js +0 -28
  175. package/dist/governing-source-75MBT2IE.js +0 -39
  176. package/dist/guest-init-WPUS45IN.js +0 -11
  177. package/dist/host-checks-PUI32LIA.js +0 -78
  178. package/dist/host-key-O4DFMOSV.js +0 -9
  179. package/dist/init-Y672J4BW.js +0 -78
  180. package/dist/install-cmd-JKPXIOEY.js +0 -12
  181. package/dist/layout-TLUOMM6F.js +0 -11
  182. package/dist/loop-QJGPNIT4.js +0 -89
  183. package/dist/machine-YKQSW22W.js +0 -78
  184. package/dist/pending-D2NNV54J.js +0 -9
  185. package/dist/pidfile-FLFVRKVW.js +0 -10
  186. package/dist/record-JMZOXD4R.js +0 -9
  187. package/dist/runner-env-FK3SUT3Q.js +0 -19
  188. package/dist/runner-identity-WYAGV6UQ.js +0 -14
  189. package/dist/state-UWIM42JH.js +0 -9
  190. package/dist/update-steps-F37GQWLJ.js +0 -79
  191. package/dist/work-comment-cmd-3HUIIEQD.js +0 -36
  192. package/dist/{chunk-OLM2TIOW.js → chunk-NFZMENCY.js} +1 -1
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-6CYNPWZT.js';
4
- import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-ALEUIS35.js';
3
+ import { stripTerminalControls } from './chunk-6LO62EQ5.js';
4
+ import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-CVGQ3BNF.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-AFJABU7U.js')).spawnRun;
58
+ const run = deps.run ?? (await import('./docker-MQNLK4OO.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 = "";
@@ -2,13 +2,13 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
4
4
  import { detectActiveSession } from './chunk-IP7BIBXJ.js';
5
- import { autoConnect } from './chunk-4W7CPTKY.js';
5
+ import { autoConnect } from './chunk-5FND4PIU.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
8
- import { resolveRepoIdentity } from './chunk-SQ6HDN7A.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-JVCQZDQ6.js';
8
+ import { resolveRepoIdentity } from './chunk-5GHJFETA.js';
9
9
  import { launchedItemForSession } from './chunk-5WYT3PPE.js';
10
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
- import { CriteriaListSchema } from './chunk-VUG4IZ7H.js';
11
+ import { CriteriaListSchema } from './chunk-WUKLQWGY.js';
12
12
  import { homeFromEnv } from './chunk-352DHUTP.js';
13
13
  import { readFileSync } from 'fs';
14
14
 
@@ -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-GANAOCHR.js';
3
+ import { RELAY_PORT, BUILD_HOME } from './chunk-M2NIHHQI.js';
4
4
  import { createServer, connect } from 'net';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -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 = 38;
7
+ var RUNNER_PROTOCOL = 39;
8
8
 
9
9
  export { RUNNER_PROTOCOL };
@@ -0,0 +1,78 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from 'node:module';
3
+ import { DEFAULT_UNIT_NAME } from './chunk-TYCZVJTB.js';
4
+ import { RUNNER_FILE_MODE } from './chunk-GD6KIHOS.js';
5
+ import { runnerAgents, credentialAgent, credentialForms, orList, credentialShapes, credentialEnvPath, withoutCredentialLines, parseRunnerEnv, forwardedVariables } from './chunk-J7Y3PCO2.js';
6
+ import { defaultAgents } from './chunk-CKPQOQFC.js';
7
+ import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
8
+ import { join, dirname } from 'path';
9
+
10
+ createRequire(import.meta.url);
11
+ var AGENT_COMMANDS = {
12
+ claude: {
13
+ implement: 'claude -p "/build" --permission-mode bypassPermissions',
14
+ amend: 'claude -p "/outerlayer-amend" --permission-mode bypassPermissions'
15
+ }
16
+ };
17
+ function isAgentName(name) {
18
+ return Object.hasOwn(AGENT_COMMANDS, name);
19
+ }
20
+ var RunnerEnvError = class extends Error {
21
+ };
22
+ function runnerEnvPath(configPath) {
23
+ return join(dirname(configPath), "runner.env");
24
+ }
25
+ function credentialFromStdin(text, agents = defaultAgents()) {
26
+ const value = (text ?? "").trim();
27
+ if (value === "") return void 0;
28
+ for (const agent2 of runnerAgents(agents)) {
29
+ const variable = agent2.credentials.identify(value);
30
+ if (variable !== void 0) return { variable, value };
31
+ }
32
+ const agent = credentialAgent(agents);
33
+ if (agent === void 0) throw new RunnerEnvError("no agent takes a credential on stdin, so nothing was written.");
34
+ throw new RunnerEnvError(`the value on stdin is not a ${credentialForms(agent.descriptor).label} credential, so nothing was written. Pipe one value: ${orList(credentialShapes(agent.descriptor).map((shape) => `${shape.phrase}, which starts ${shape.starts}`))}.`);
35
+ }
36
+ function setsCredential(path, agents) {
37
+ if (!existsSync(path)) return false;
38
+ const env = parseRunnerEnv(readFileSync(path, "utf8"));
39
+ return forwardedVariables(agents).some((name) => env[name]);
40
+ }
41
+ function hasStoredCredential(configPath, agents = defaultAgents()) {
42
+ const own = credentialEnvPath(configPath, agents);
43
+ return own !== void 0 && setsCredential(own, agents) || setsCredential(runnerEnvPath(configPath), agents);
44
+ }
45
+ function replaceFile(path, text) {
46
+ const temporary = `${path}.${process.pid}.tmp`;
47
+ try {
48
+ writeFileSync(temporary, text, { mode: RUNNER_FILE_MODE, flag: "wx" });
49
+ renameSync(temporary, path);
50
+ } catch (err) {
51
+ rmSync(temporary, { force: true });
52
+ throw err;
53
+ }
54
+ }
55
+ function storeAgentCredential(configPath, credential, agents = defaultAgents()) {
56
+ const owner = runnerAgents(agents).find((agent) => agent.descriptor.credentials.forwarded.includes(credential.variable)) ?? credentialAgent(agents);
57
+ if (owner === void 0) throw new RunnerEnvError("no agent takes a credential, so nothing was written.");
58
+ const path = join(dirname(configPath), credentialForms(owner.descriptor).envFile);
59
+ replaceFile(path, `${credential.variable}=${credential.value}
60
+ `);
61
+ const runnerPath = runnerEnvPath(configPath);
62
+ if (existsSync(runnerPath)) {
63
+ const dropped = withoutCredentialLines(readFileSync(runnerPath, "utf8"), agents);
64
+ if (dropped !== void 0) replaceFile(runnerPath, dropped);
65
+ }
66
+ return path;
67
+ }
68
+ function restartForCredential(state, unitName = DEFAULT_UNIT_NAME, agents = defaultAgents()) {
69
+ const agent = credentialAgent(agents);
70
+ const file = agent === void 0 ? "the credential file" : credentialForms(agent.descriptor).envFile;
71
+ if (state === "differs") {
72
+ return `The service ${unitName} was not written by runner init, so it may not load ${file}, the one file that now holds the credential. Add EnvironmentFile=-<config directory>/${file} to it, or run runner install --service --replace. Then restart it: sudo systemctl restart ${unitName}`;
73
+ }
74
+ if (state !== "pending-restart") return void 0;
75
+ return `The service ${unitName} loads ${file} only when it starts. Restart it so it uses the stored credential: sudo systemctl restart ${unitName}`;
76
+ }
77
+
78
+ export { AGENT_COMMANDS, RunnerEnvError, credentialFromStdin, hasStoredCredential, isAgentName, restartForCredential, storeAgentCredential };
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { LiveUploader } from './chunk-2QW2PLWT.js';
4
- import { spoolDir } from './chunk-GDMAN42R.js';
5
- import { CaptureDaemon } from './chunk-SQ6HDN7A.js';
3
+ import { LiveUploader } from './chunk-4TNUQLXH.js';
4
+ import { spoolDir } from './chunk-EBIYRRJW.js';
5
+ import { CaptureDaemon } from './chunk-5GHJFETA.js';
6
6
  import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
8
  import { mkdirSync, writeFileSync, rmSync } from 'fs';
@@ -2,14 +2,14 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
4
4
  import { detectActiveSession } from './chunk-IP7BIBXJ.js';
5
- import { autoConnect } from './chunk-4W7CPTKY.js';
5
+ import { autoConnect } from './chunk-5FND4PIU.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { acquireSpoolLockAt } from './chunk-3PQTOKML.js';
8
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
9
- import { resolveRepoIdentity } from './chunk-SQ6HDN7A.js';
7
+ import { acquireSpoolLockAt } from './chunk-P6PHY33P.js';
8
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-JVCQZDQ6.js';
9
+ import { resolveRepoIdentity } from './chunk-5GHJFETA.js';
10
10
  import { launchedItemForSession } from './chunk-5WYT3PPE.js';
11
11
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
12
- import { StepNameSchema, StepBodySchema } from './chunk-VUG4IZ7H.js';
12
+ import { StepNameSchema, StepBodySchema } from './chunk-WUKLQWGY.js';
13
13
  import { homeFromEnv } from './chunk-352DHUTP.js';
14
14
  import { randomUUID } from 'crypto';
15
15
  import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, appendFileSync } from 'fs';
@@ -1,34 +1,34 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { runEmit } from './chunk-MMXPNEEQ.js';
4
- import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-OHQMGLJP.js';
5
- import { installStarterPack } from './chunk-3SQZ5LIK.js';
3
+ import { runEmit } from './chunk-XAOIHYPS.js';
4
+ import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-H2FFONRY.js';
5
+ import { installStarterPack } from './chunk-XHFSBSIA.js';
6
+ import { listWithAnd } from './chunk-4CTVN3C5.js';
6
7
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { AGENTS_MD_LAYOUT, declareAgentsMdLayout, linkClaudeSkills, SKILLS_LINK_PATH, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-LRCGXRQI.js';
8
- import { resolveGitCommonDir, defaultGitRunner } from './chunk-PN6TNCQI.js';
9
- import { loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE } from './chunk-7O7LJWQO.js';
8
+ import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-WDQPBAFV.js';
9
+ import { resolveGitCommonDir, defaultGitRunner } from './chunk-J7TCTARR.js';
10
10
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
11
- import { linkedAgentsPath } from './chunk-4SFHEARD.js';
11
+ import { linkedAgentsPath } from './chunk-VRQM4A64.js';
12
12
  import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
13
- import { generatedHeaderSource } from './chunk-JFMSFHER.js';
13
+ import { LEGACY_AGENT, generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, contextAgents } from './chunk-CKPQOQFC.js';
14
14
  import { execFileSync } from 'child_process';
15
15
  import { existsSync, mkdirSync, writeFileSync } from 'fs';
16
16
  import { join, dirname } from 'path';
17
17
 
18
18
  createRequire(import.meta.url);
19
19
  var CONFIG_PATH = ".outerlayer/config.json";
20
- var MCP_OUTPUT_PATH = ".mcp.json";
21
20
  var POLICY_PATH = ".outerlayer/policy.yaml";
22
- var DEFAULT_CONFIG = `${JSON.stringify({ targets: ["claude-code"] }, null, 2)}
21
+ var DEFAULT_CONFIG = `${JSON.stringify({ targets: [LEGACY_AGENT] }, null, 2)}
23
22
  `;
24
- var AGENTS_MD_CONFIG = `${JSON.stringify({ targets: ["claude-code"], layout: AGENTS_MD_LAYOUT }, null, 2)}
23
+ var AGENTS_MD_CONFIG = `${JSON.stringify({ targets: [LEGACY_AGENT], layout: AGENTS_MD_LAYOUT }, null, 2)}
25
24
  `;
26
- var STARTER_AGENTS_MD = `# Agent instructions
25
+ var starterAgentsMd = (agents) => `# Agent instructions
27
26
 
28
27
  Write here what an agent needs to work in this repository: how to build and test it, the rules it follows, and what to check before it opens a pull request.
29
28
 
30
- Claude Code and Codex read this file as it is. Skills are in \`.agents/skills/\`.
29
+ ${legacyAgent(agents).descriptor.label} and Codex read this file as it is. Skills are in \`.agents/skills/\`.
31
30
  `;
31
+ var agentLabels = (agents) => contextAgents(agents).map((agent) => agent.descriptor.label).join(" and ");
32
32
  function inTodaysLayout(repoRoot) {
33
33
  if (isAgentsMdLayout(repoRoot)) return false;
34
34
  return existsSync(join(repoRoot, CONFIG_PATH)) || holdsTodaysLayoutSources(discoverOuterlayerPaths(repoRoot));
@@ -79,6 +79,7 @@ function keepHandWritten(createdSources) {
79
79
  };
80
80
  }
81
81
  function runAgentSetup(opts) {
82
+ const agents = opts.agents ?? defaultAgents();
82
83
  let repoRoot;
83
84
  try {
84
85
  repoRoot = gitTopLevel(opts.cwd);
@@ -89,7 +90,7 @@ function runAgentSetup(opts) {
89
90
  } catch (err) {
90
91
  return failed(errorMessage(err), /* @__PURE__ */ new Set(), []);
91
92
  }
92
- if (!inTodaysLayout(repoRoot)) return runAgentsMdSetup(repoRoot, opts.skillsLink !== false);
93
+ if (!inTodaysLayout(repoRoot)) return runAgentsMdSetup(repoRoot, opts.skillsLink !== false, agents);
93
94
  const written = /* @__PURE__ */ new Set();
94
95
  const kept = [];
95
96
  const problems = [];
@@ -118,20 +119,22 @@ function runAgentSetup(opts) {
118
119
  return failed(`could not install the skills: ${errorMessage(err)}`, written, kept);
119
120
  }
120
121
  try {
121
- const mcp = addStdioMcpEntryIfAbsent(repoRoot);
122
- if (mcp.added) written.add(mcp.path);
123
- else kept.push(`${mcp.path} (already has an outerlayer server)`);
124
- const docs = addDocsMcpEntryIfAbsent(repoRoot);
125
- if (docs.added) written.add(docs.path);
126
- else kept.push(`${docs.path} (already has an ${DOCS_MCP_SERVER_NAME} server)`);
122
+ for (const mcp of withOthers(addStdioMcpEntryIfAbsent(repoRoot, "outerlayer", agents))) {
123
+ if (mcp.added) written.add(mcp.path);
124
+ else kept.push(`${mcp.path} (already has an outerlayer server)`);
125
+ }
126
+ for (const docs of withOthers(addDocsMcpEntryIfAbsent(repoRoot, agents))) {
127
+ if (docs.added) written.add(docs.path);
128
+ else kept.push(`${docs.path} (already has an ${DOCS_MCP_SERVER_NAME} server)`);
129
+ }
127
130
  } catch (err) {
128
131
  problems.push(errorMessage(err));
129
132
  }
130
133
  let pending;
131
134
  try {
132
- const check = runEmit({ cwd: repoRoot, check: true, quiet: true, keep });
135
+ const check = runEmit({ cwd: repoRoot, check: true, quiet: true, keep }, agents);
133
136
  pending = check.drift ?? [];
134
- const emitted = runEmit({ cwd: repoRoot, quiet: true, keep });
137
+ const emitted = runEmit({ cwd: repoRoot, quiet: true, keep }, agents);
135
138
  for (const path of emitted.kept) keptOutputs.add(path);
136
139
  if (emitted.exitCode !== 0) {
137
140
  const detail = emitted.errors.map((e) => `${e.path}: ${e.message}`).join("; ");
@@ -152,12 +155,12 @@ function runAgentSetup(opts) {
152
155
  return {
153
156
  outcome: "done",
154
157
  reason: paths.length === 0 ? "already set up" : `${paths.length} files written`,
155
- text: renderDone(paths, kept, keptOutputs.has(MCP_OUTPUT_PATH)),
158
+ text: renderDone(paths, kept, mcpFiles(agents).some((file) => keptOutputs.has(file)), agents),
156
159
  paths,
157
160
  kept: keptPaths
158
161
  };
159
162
  }
160
- function runAgentsMdSetup(repoRoot, skillsLink) {
163
+ function runAgentsMdSetup(repoRoot, skillsLink, agents) {
161
164
  const written = /* @__PURE__ */ new Set();
162
165
  const kept = [];
163
166
  const problems = [];
@@ -175,7 +178,7 @@ function runAgentsMdSetup(repoRoot, skillsLink) {
175
178
  if (existsSync(join(repoRoot, "AGENTS.md")) || existsSync(join(repoRoot, "CLAUDE.md"))) {
176
179
  kept.push(existsSync(join(repoRoot, "AGENTS.md")) ? "AGENTS.md" : "CLAUDE.md");
177
180
  } else {
178
- writeFileSync(join(repoRoot, "AGENTS.md"), STARTER_AGENTS_MD);
181
+ writeFileSync(join(repoRoot, "AGENTS.md"), starterAgentsMd(agents));
179
182
  written.add("AGENTS.md");
180
183
  }
181
184
  if (existsSync(join(repoRoot, CONFIG_PATH))) {
@@ -190,20 +193,22 @@ function runAgentsMdSetup(repoRoot, skillsLink) {
190
193
  return failed(`could not install the skills: ${errorMessage(err)}`, written, kept);
191
194
  }
192
195
  try {
193
- const mcp = addStdioMcpEntryIfAbsent(repoRoot);
194
- if (mcp.added) written.add(mcp.path);
195
- else kept.push(`${mcp.path} (already has an outerlayer server)`);
196
- const docs = addDocsMcpEntryIfAbsent(repoRoot);
197
- if (docs.added) written.add(docs.path);
198
- else kept.push(`${docs.path} (already has an ${DOCS_MCP_SERVER_NAME} server)`);
196
+ for (const mcp of withOthers(addStdioMcpEntryIfAbsent(repoRoot, "outerlayer", agents))) {
197
+ if (mcp.added) written.add(mcp.path);
198
+ else kept.push(`${mcp.path} (already has an outerlayer server)`);
199
+ }
200
+ for (const docs of withOthers(addDocsMcpEntryIfAbsent(repoRoot, agents))) {
201
+ if (docs.added) written.add(docs.path);
202
+ else kept.push(`${docs.path} (already has an ${DOCS_MCP_SERVER_NAME} server)`);
203
+ }
199
204
  } catch (err) {
200
205
  problems.push(errorMessage(err));
201
206
  }
202
207
  let linkNote = "";
203
208
  if (skillsLink) {
204
- const link = linkClaudeSkills(repoRoot);
205
- if (link.status === "linked") written.add(SKILLS_LINK_PATH);
206
- linkNote = describeSkillsLink(link);
209
+ const link = linkAgentSkills(repoRoot, agents);
210
+ if (link.status === "linked") for (const folder of link.folders ?? [link.folder ?? legacyAgent(agents).descriptor.context.repoSkillFolders[0]]) written.add(folder);
211
+ linkNote = describeSkillsLink(link, agents);
207
212
  }
208
213
  if (problems.length > 0) return failed(problems.join("; "), written, kept);
209
214
  const paths = [...written].sort();
@@ -212,7 +217,7 @@ function runAgentsMdSetup(repoRoot, skillsLink) {
212
217
  renderPaths(paths, kept).trimEnd()
213
218
  ];
214
219
  if (linkNote !== "") lines.push(` ${linkNote}`);
215
- if (paths.length > 0) lines.push(` ${C.dim}Commit AGENTS.md, .agents/ and .mcp.json with .outerlayer/. Nothing is generated, so there is no emit step.${C.reset}`);
220
+ if (paths.length > 0) lines.push(` ${C.dim}Commit ${listWithAnd(["AGENTS.md", ".agents/", ...mcpFiles(agents)])} with .outerlayer/. Nothing is generated, so there is no emit step.${C.reset}`);
216
221
  return {
217
222
  outcome: "done",
218
223
  reason: paths.length === 0 ? "already set up" : `${paths.length} files written`,
@@ -231,6 +236,9 @@ function writtenBeforeFailure(repoRoot, pending, keep) {
231
236
  return [];
232
237
  }
233
238
  }
239
+ function withOthers(result) {
240
+ return [result, ...result.others ?? []];
241
+ }
234
242
  function failed(reason, written, kept, keptPaths = []) {
235
243
  const paths = [...written].sort();
236
244
  return {
@@ -255,15 +263,16 @@ function renderPaths(paths, kept) {
255
263
  return `${lines.join("\n")}
256
264
  `;
257
265
  }
258
- function renderDone(paths, kept, mcpKept) {
259
- const mcpNote = mcpKept ? ` ${C.yellow}!${C.reset} The outerlayer and ${DOCS_MCP_SERVER_NAME} entries were not added to .mcp.json, so their MCP servers are not set up. Add them to .mcp.json by hand, or move the servers you wrote into .outerlayer/mcp.json and run \`${cliInvocation()} context emit\`.
266
+ function renderDone(paths, kept, mcpKept, agents) {
267
+ const files = mcpFiles(agents).join(", ");
268
+ const mcpNote = mcpKept ? ` ${C.yellow}!${C.reset} The outerlayer and ${DOCS_MCP_SERVER_NAME} entries were not added to ${files}, so their MCP servers are not set up. Add them to ${files} by hand, or move the servers you wrote into .outerlayer/mcp.json and run \`${cliInvocation()} context emit\`.
260
269
  ` : "";
261
270
  const what = mcpKept ? "the OuterLayer skills" : "the OuterLayer skills and MCP servers";
262
271
  if (paths.length === 0) {
263
272
  return `${C.green}\u2713${C.reset} Agent setup: already in place, nothing changed
264
273
  ${renderPaths(paths, kept)}${mcpNote}`;
265
274
  }
266
- return `${C.green}\u2713${C.reset} Agent setup: Claude Code has ${what}
275
+ return `${C.green}\u2713${C.reset} Agent setup: ${agentLabels(agents)} has ${what}
267
276
  ` + renderPaths(paths, kept) + mcpNote + ` ${C.dim}\`context emit\` compiled every source under .outerlayer/ for the targets in ${CONFIG_PATH}, not only the skills.${C.reset}
268
277
  `;
269
278
  }
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { toolsDockerfile } from './chunk-KB5B6ZT5.js';
4
- import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-WAZJPDR2.js';
3
+ import { toolsDockerfile } from './chunk-3FSKTGM6.js';
4
+ import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-XE3DIJJT.js';
5
5
  import { startTimeOf } from './chunk-JBJTC3UU.js';
6
- import { runnerLabelValue } from './chunk-DZDTSDHQ.js';
7
- import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-CIUD3436.js';
8
- import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, CLAUDE_CODE_VERSION, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION } from './chunk-OUPQTA7N.js';
9
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-WT7J2627.js';
10
- import { withGitConfig, tokenHeader } from './chunk-GANAOCHR.js';
6
+ import { runnerLabelValue } from './chunk-C3JWWPLC.js';
7
+ import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-A5Y2HBVU.js';
8
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-GD6KIHOS.js';
9
+ import { withGitConfig, tokenHeader } from './chunk-M2NIHHQI.js';
10
+ import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION } from './chunk-J7Y3PCO2.js';
11
11
  import { mkdirSync, rmSync, writeFileSync, existsSync, mkdtempSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
12
12
  import { tmpdir } from 'os';
13
13
  import { dirname, join } from 'path';
@@ -308,7 +308,7 @@ async function prepareImageBuild(opts) {
308
308
  throw new Error(`${opts.cli.distDir} holds no index.js: the tools layer copies the built CLI, so run this from a build (yarn workspace @outerlayer/cli build)`);
309
309
  }
310
310
  const now = opts.now ?? (() => /* @__PURE__ */ new Date());
311
- const claudeCodeVersion = opts.claudeCodeVersion ?? CLAUDE_CODE_VERSION;
311
+ const agentVersion = opts.claudeCodeVersion ?? buildAgentPin();
312
312
  const nodeImage = opts.nodeImage ?? NODE_IMAGE;
313
313
  const organizationId = opts.organizationId;
314
314
  const cacheDir = repoCacheDir(opts.configPath, owner, name, organizationId);
@@ -354,7 +354,7 @@ async function prepareImageBuild(opts) {
354
354
  releaseShared = () => releasePidFile(sharedLock, self);
355
355
  }
356
356
  const rKey = recipeKey(checkout.dir, location, UNIVERSAL_IMAGE);
357
- const tKey = toolsKey({ buildId: opts.cli.buildId, claudeCodeVersion, nodeImage, ghVersion: GH_VERSION, tiniVersion: TINI_VERSION, guestHelperSha256: opts.guestHelper?.sha256, mediaPins: MEDIA_PINS });
357
+ const tKey = toolsKey({ buildId: opts.cli.buildId, claudeCodeVersion: agentVersion, nodeImage, ghVersion: GH_VERSION, tiniVersion: TINI_VERSION, guestHelperSha256: opts.guestHelper?.sha256, mediaPins: MEDIA_PINS });
358
358
  const recordDir = join(records, `${rKey.slice(0, KEY_PREFIX)}-${tKey.slice(0, KEY_PREFIX)}`);
359
359
  return {
360
360
  repository,
@@ -369,7 +369,7 @@ async function prepareImageBuild(opts) {
369
369
  recipe,
370
370
  recipeKey: rKey,
371
371
  toolsKey: tKey,
372
- claudeCodeVersion,
372
+ agentVersion,
373
373
  nodeImage,
374
374
  logPath,
375
375
  release
@@ -384,7 +384,7 @@ async function buildRepositoryImage(opts, ports) {
384
384
  const now = opts.now ?? (() => /* @__PURE__ */ new Date());
385
385
  const scratchRoot = opts.tmpDir ?? tmpdir();
386
386
  const prepared = await prepareImageBuild(opts);
387
- const { repository, repoRecords, imageRepository, tagName, checkout, location, recipe, recipeKey: rKey, toolsKey: tKey, claudeCodeVersion, nodeImage, recordDir, logPath } = prepared;
387
+ const { repository, repoRecords, imageRepository, tagName, checkout, location, recipe, recipeKey: rKey, toolsKey: tKey, agentVersion, nodeImage, recordDir, logPath } = prepared;
388
388
  const universal = location.kind === "default";
389
389
  const runnerLabel = runnerLabelValue(opts.configPath);
390
390
  const buildTag = `${TAG_HOST}/build/${tagName}:${rKey.slice(0, KEY_PREFIX)}-${tKey.slice(0, KEY_PREFIX)}`;
@@ -459,7 +459,7 @@ async function buildRepositoryImage(opts, ports) {
459
459
  const dockerfile = toolsDockerfile({
460
460
  recipeImage: universal ? UNIVERSAL_IMAGE : recipeTag,
461
461
  nodeImage,
462
- claudeCodeVersion,
462
+ claudeCodeVersion: agentVersion,
463
463
  buildId: opts.cli.buildId,
464
464
  guestHelper: opts.guestHelper !== void 0
465
465
  });