@outerlayer/cli 0.36.0-next.20261101174803 → 0.36.0-next.20261102135508

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 (206) hide show
  1. package/dist/agent-setup-Q3HDN23U.js +39 -0
  2. package/dist/agent-subcommand-Z6SOLWZW.js +25 -0
  3. package/dist/bridge-4KPODDN7.js +15 -0
  4. package/dist/build-KYXFZQ33.js +23 -0
  5. package/dist/build-disk-W6AL5WHI.js +20 -0
  6. package/dist/build-info.json +1 -1
  7. package/dist/builder-IMNOEYV7.js +19 -0
  8. package/dist/caller-NLRE272L.js +22 -0
  9. package/dist/{check-K4RVAP4L.js → check-WWX32IGY.js} +78 -74
  10. package/dist/{chunk-MKSZHT6S.js → chunk-2YC3TXWX.js} +1 -1
  11. package/dist/{chunk-QIOTIQWD.js → chunk-3UFX6KH2.js} +12 -11
  12. package/dist/{chunk-F2LPX2HS.js → chunk-3YEPLVNW.js} +8 -8
  13. package/dist/chunk-4DLJ343I.js +38 -0
  14. package/dist/{chunk-5WYT3PPE.js → chunk-4OD45RBP.js} +4 -1
  15. package/dist/{chunk-H7SKHAUE.js → chunk-4XXBV37R.js} +6 -6
  16. package/dist/{chunk-XNBUZGRO.js → chunk-6B3V6EGQ.js} +11 -9
  17. package/dist/{chunk-O36YAH2G.js → chunk-6HDXRDC5.js} +4 -4
  18. package/dist/chunk-6JLYU322.js +68 -0
  19. package/dist/{chunk-5GHJFETA.js → chunk-6KH3NMIT.js} +3010 -1196
  20. package/dist/{chunk-SPXVFFQV.js → chunk-AQE6E54X.js} +10 -9
  21. package/dist/{chunk-LGV5N5DG.js → chunk-ATKCHMFD.js} +1 -1
  22. package/dist/{chunk-7J7HRYZ3.js → chunk-B2P72DAE.js} +1 -1
  23. package/dist/{chunk-LEHBDEUG.js → chunk-B36NSEUM.js} +4 -5
  24. package/dist/{chunk-B62TYDP2.js → chunk-B5SWBFVE.js} +5 -4
  25. package/dist/chunk-BSPJI5T7.js +28 -0
  26. package/dist/{chunk-VJYSPH2J.js → chunk-BUYXEU7J.js} +26 -21
  27. package/dist/{chunk-CIUD3436.js → chunk-BZSJ77MO.js} +1 -1
  28. package/dist/{chunk-OEBFKPHK.js → chunk-CDG475ZP.js} +11 -11
  29. package/dist/{chunk-AGKQEOFS.js → chunk-CSBW4LGL.js} +54 -31
  30. package/dist/{chunk-D2OTBS47.js → chunk-CSVJGW3I.js} +2 -2
  31. package/dist/{chunk-GANAOCHR.js → chunk-CXJC3JLN.js} +25 -374
  32. package/dist/{chunk-WAZJPDR2.js → chunk-D4VGJQY7.js} +1 -1
  33. package/dist/{chunk-BRUDBWLO.js → chunk-D5I5SSPU.js} +7 -7
  34. package/dist/{chunk-KFUDKFEH.js → chunk-D6EXW4EB.js} +45 -19
  35. package/dist/{chunk-AF6DQJ5W.js → chunk-DG3M5DZU.js} +1 -1
  36. package/dist/{chunk-WT7J2627.js → chunk-DTCTXDJP.js} +1 -1
  37. package/dist/chunk-DTQPDMHG.js +654 -0
  38. package/dist/{chunk-EZRAR5YG.js → chunk-E3TP4QTM.js} +1 -1
  39. package/dist/{chunk-NFZJ5XHP.js → chunk-ENBOAE2W.js} +33 -32
  40. package/dist/{chunk-R3252UTU.js → chunk-ENMX3VQ7.js} +7 -7
  41. package/dist/{chunk-AH6634HC.js → chunk-FOSYM7TQ.js} +1 -2
  42. package/dist/{chunk-HL7UNTXO.js → chunk-FRMAQ3C4.js} +17 -10
  43. package/dist/{chunk-HAWPG7QW.js → chunk-FTP7SE6Y.js} +3 -3
  44. package/dist/{chunk-IP7BIBXJ.js → chunk-FWSVWPMS.js} +16 -7
  45. package/dist/{chunk-GLUQVET2.js → chunk-GFZ7PELR.js} +6 -6
  46. package/dist/{chunk-UZGQT6OF.js → chunk-H2NJG3TE.js} +6 -3
  47. package/dist/{chunk-46OBCATR.js → chunk-HRHWA6TZ.js} +1 -1
  48. package/dist/chunk-HTRDL42C.js +45 -0
  49. package/dist/{chunk-YBAVN6WS.js → chunk-I4DM7SNX.js} +7 -7
  50. package/dist/{chunk-24FEVLX7.js → chunk-I6U6QPN6.js} +1311 -73
  51. package/dist/{chunk-4DJZSNVT.js → chunk-IKFAJTLZ.js} +1 -1
  52. package/dist/{chunk-55PYF6S2.js → chunk-J2OMKFYB.js} +3 -3
  53. package/dist/{chunk-7Y5VW4JG.js → chunk-K2G3VB7W.js} +1 -1
  54. package/dist/chunk-K7N6LAPC.js +78 -0
  55. package/dist/{chunk-ULBVE7MP.js → chunk-KRCU66AM.js} +9 -9
  56. package/dist/{chunk-JU3VU42K.js → chunk-LHHDX7FB.js} +5 -5
  57. package/dist/{chunk-FUJUFLDC.js → chunk-LO4CK734.js} +8 -14
  58. package/dist/chunk-LSLK4RS4.js +82 -0
  59. package/dist/{chunk-ABAVN4RT.js → chunk-LSZUTI6O.js} +29 -26
  60. package/dist/chunk-MVPOYQQY.js +136 -0
  61. package/dist/{chunk-YQHEJ5SV.js → chunk-NXQK2I3G.js} +3 -3
  62. package/dist/{chunk-DJMR4YPG.js → chunk-O3MJAHLI.js} +82 -96
  63. package/dist/{chunk-B7PYT2BY.js → chunk-PBGNX3PS.js} +6 -3
  64. package/dist/{chunk-CJJDJ7AT.js → chunk-PIZA7OG2.js} +5 -3
  65. package/dist/{chunk-RIHB3HA2.js → chunk-PMA67TIN.js} +3 -3
  66. package/dist/{chunk-DJDTL6AY.js → chunk-QKOJ22OV.js} +148 -293
  67. package/dist/{chunk-RDWKRG4K.js → chunk-RF4JHGGB.js} +7 -7
  68. package/dist/{chunk-MOOZJRKM.js → chunk-SJJXDU2J.js} +27 -30
  69. package/dist/chunk-T5QBWM6M.js +113 -0
  70. package/dist/{chunk-W7I65BKE.js → chunk-TJIFYV2Z.js} +12 -12
  71. package/dist/{chunk-EBOQU6QC.js → chunk-TKY3SDXH.js} +6 -6
  72. package/dist/{chunk-ALEUIS35.js → chunk-ULBYRPAP.js} +1 -1
  73. package/dist/{chunk-ZP7F3OHV.js → chunk-URHS76GV.js} +48 -38
  74. package/dist/{chunk-X2XTCGUS.js → chunk-VAYVTUU4.js} +11 -12
  75. package/dist/{chunk-TSYHUUAT.js → chunk-VUH7KKVD.js} +3 -3
  76. package/dist/{chunk-RIIPBJK6.js → chunk-WACPWYMH.js} +4 -4
  77. package/dist/{chunk-AAGU5FJF.js → chunk-WGC7UFRM.js} +1 -1
  78. package/dist/{chunk-2SRQSGPR.js → chunk-WVAXJOWG.js} +30 -24
  79. package/dist/{chunk-KLXECBIE.js → chunk-XEWG4AB2.js} +151 -108
  80. package/dist/{chunk-KDK6AF7B.js → chunk-XIDDJSQU.js} +7 -6
  81. package/dist/{chunk-MXIFRYLA.js → chunk-Y4E7IS7H.js} +2 -2
  82. package/dist/{chunk-DHFNBNC3.js → chunk-YJQ7YA7J.js} +5 -5
  83. package/dist/{chunk-6A2GEFN3.js → chunk-YMVRCSKD.js} +4 -4
  84. package/dist/{chunk-JW5BENE6.js → chunk-YYQ5NOT5.js} +3 -3
  85. package/dist/chunk-ZHQC43NH.js +130 -0
  86. package/dist/{chunk-KB5B6ZT5.js → chunk-ZSRMJOAK.js} +20 -20
  87. package/dist/{claude-launcher-L77BKZOC.js → claude-launcher-LGKJZH33.js} +99 -120
  88. package/dist/{cli-QQY5UECM.js → cli-Q5L64EEG.js} +327 -298
  89. package/dist/{cli-update-notice-T3CXRWNB.js → cli-update-notice-AWYJ4A7R.js} +2 -2
  90. package/dist/{command-QLHQZ32L.js → command-CGEFJZNC.js} +65 -64
  91. package/dist/{config-5GY7FL35.js → config-T22KVOOT.js} +14 -10
  92. package/dist/connect-cmd-RUBP466E.js +28 -0
  93. package/dist/{container-start-OCJODSMB.js → container-start-JRF3SBUA.js} +65 -62
  94. package/dist/{context-cleanup-A7KBEBIO.js → context-cleanup-3K2AOECJ.js} +6 -2
  95. package/dist/{context-show-cmd-MZ74ZIVO.js → context-show-cmd-4UXO5WQJ.js} +18 -16
  96. package/dist/{control-plane-launch-3TZFOSCX.js → control-plane-launch-AAH4YH56.js} +31 -27
  97. package/dist/{demo-record-cmd-Y57UWBCX.js → demo-record-cmd-2OKCGST7.js} +10 -5
  98. package/dist/{demo-voice-cmd-4INIOVTC.js → demo-voice-cmd-GEPX7GIG.js} +27 -27
  99. package/dist/{dist-6KGTCWKR.js → dist-VVZIGSAF.js} +1 -1
  100. package/dist/docker-5VWK335X.js +19 -0
  101. package/dist/{doctor-DB2AJUAO.js → doctor-EQM3JRZI.js} +81 -76
  102. package/dist/emit-artifact-cmd-TA3MPHLU.js +43 -0
  103. package/dist/{emit-cmd-IOWTTZSA.js → emit-cmd-RO4L4PFZ.js} +9 -8
  104. package/dist/emit-criteria-cmd-NMTUV2KM.js +34 -0
  105. package/dist/emit-demo-cmd-Y2Y6LEL7.js +46 -0
  106. package/dist/{emit-finding-cmd-KQIGM5IF.js → emit-finding-cmd-VECM64UR.js} +20 -19
  107. package/dist/{emit-result-cmd-6Q7OU2NY.js → emit-result-cmd-2ERWFDUN.js} +25 -24
  108. package/dist/{emit-step-cmd-GZU5O2FR.js → emit-step-cmd-V2ET66N4.js} +20 -19
  109. package/dist/exec-client-54XKNPTI.js +16 -0
  110. package/dist/find-unit-CNAPU7XQ.js +23 -0
  111. package/dist/{findings-cmd-T7PQAVJG.js → findings-cmd-QJPPF6BY.js} +20 -19
  112. package/dist/{fleet-readiness-PTMOEX6L.js → fleet-readiness-DKAPHAZN.js} +16 -15
  113. package/dist/governing-source-7PZ6DAJU.js +40 -0
  114. package/dist/guest-init-5QZRGP62.js +18 -0
  115. package/dist/{hook-fast-RW7RU3O6.js → hook-fast-VXROB4KF.js} +7 -5
  116. package/dist/hook-install-GDNRMML4.js +14 -0
  117. package/dist/{hook-wrap-fast-545QJSBJ.js → hook-wrap-fast-LWWKKPGK.js} +4 -2
  118. package/dist/host-checks-WAPO5X7X.js +78 -0
  119. package/dist/host-key-HLLV37NV.js +16 -0
  120. package/dist/image-tag-PBWQBATH.js +17 -0
  121. package/dist/index.js +8 -9
  122. package/dist/init-EK3PUU6W.js +78 -0
  123. package/dist/{init-HUQLVUPO.js → init-Y2URPVVY.js} +62 -59
  124. package/dist/{init-cmd-6NQGBVAJ.js → init-cmd-XNANUDIW.js} +38 -33
  125. package/dist/{init-update-MA6QKX46.js → init-update-EFCTKF6D.js} +55 -46
  126. package/dist/install-cmd-RHFUZFV4.js +19 -0
  127. package/dist/layout-7XMC7S6K.js +13 -0
  128. package/dist/{logs-FEITSC2V.js → logs-E7MGQINH.js} +10 -3
  129. package/dist/loop-L6TX6OR4.js +89 -0
  130. package/dist/machine-VJKAY2GX.js +78 -0
  131. package/dist/{machine-skills-237PQFRC.js → machine-skills-HR4RNRNR.js} +5 -4
  132. package/dist/{mcp-install-cmd-23ZY4IBK.js → mcp-install-cmd-SMPLT43Q.js} +7 -1
  133. package/dist/{mcp-serve-cmd-ZINYSLY6.js → mcp-serve-cmd-XXERT673.js} +11 -7
  134. package/dist/{paths-XEYE7OZ2.js → paths-F2ZR2EKC.js} +10 -3
  135. package/dist/pending-VOFQRXP4.js +16 -0
  136. package/dist/pidfile-7M7O2M7T.js +17 -0
  137. package/dist/record-YCJ6DZOY.js +16 -0
  138. package/dist/{relay-IEYNSKAZ.js → relay-I2T43PPB.js} +8 -1
  139. package/dist/relay-protocol-GI2GC2AM.js +13 -0
  140. package/dist/runner-env-YW55JVU7.js +23 -0
  141. package/dist/runner-identity-Y5ZFCC7V.js +19 -0
  142. package/dist/{runner-key-CFZ47PR3.js → runner-key-R47C6374.js} +54 -54
  143. package/dist/session-sender-UPACLRGG.js +43 -0
  144. package/dist/{shell-function-NRD4KVUK.js → shell-function-GYD2ZQQG.js} +2 -1
  145. package/dist/{spec-cmd-CNASSB6L.js → spec-cmd-7QRE2SZK.js} +21 -20
  146. package/dist/{starter-pack-CCVIEY72.js → starter-pack-IMKIUA56.js} +7 -6
  147. package/dist/state-VAHBIMS5.js +16 -0
  148. package/dist/{status-VNHIHQ57.js → status-BQEYEG2V.js} +54 -54
  149. package/dist/{statusline-fast-E7RWVREA.js → statusline-fast-NUVHCNRX.js} +4 -2
  150. package/dist/{sync-cmd-5JLJBODH.js → sync-cmd-NBLYEPQG.js} +25 -24
  151. package/dist/update-steps-VGKNGWTZ.js +79 -0
  152. package/dist/{watch-AEWWTUEK.js → watch-IHV4V3HZ.js} +25 -24
  153. package/dist/{work-claim-cmd-GUYOJYH7.js → work-claim-cmd-WGTSU5IT.js} +24 -24
  154. package/dist/{work-cmd-YRPYMGII.js → work-cmd-HKOJU5FJ.js} +18 -17
  155. package/dist/{work-comment-cmd-U5Z6FKEU.js → work-comment-cmd-H3JCWQ2J.js} +21 -20
  156. package/dist/{work-demo-cmd-OLCWTVWM.js → work-demo-cmd-J4AZAIVP.js} +18 -17
  157. package/dist/{work-launch-TTGSHLY4.js → work-launch-LWDQXLGI.js} +1 -1
  158. package/dist/{work-logs-cmd-2OA7ENDU.js → work-logs-cmd-UOO4JVLG.js} +18 -17
  159. package/dist/{work-open-pr-cmd-6GUCDYVM.js → work-open-pr-cmd-QFRDDBAM.js} +20 -19
  160. package/dist/{work-pr-cmd-KK3VQUQI.js → work-pr-cmd-3Q2D5RQT.js} +19 -18
  161. package/dist/{work-proofs-cmd-BUOS5OJC.js → work-proofs-cmd-7Y3HGT7C.js} +21 -20
  162. package/dist/{work-proofs-record-6WLMOK53.js → work-proofs-record-QPUM6DY4.js} +31 -31
  163. package/dist/{work-stop-cmd-VZJX5X4L.js → work-stop-cmd-SD2ZRMSY.js} +18 -17
  164. package/package.json +1 -1
  165. package/dist/agent-setup-DJRQFPDU.js +0 -33
  166. package/dist/bridge-XM4QLKIX.js +0 -8
  167. package/dist/build-ZE5IG3V6.js +0 -18
  168. package/dist/build-disk-GMXDIZU4.js +0 -15
  169. package/dist/builder-LJ3FSB36.js +0 -14
  170. package/dist/caller-YLNJJPFU.js +0 -18
  171. package/dist/chunk-CXFJOX2C.js +0 -144
  172. package/dist/chunk-FGF52V4V.js +0 -137
  173. package/dist/chunk-HCVLP7XA.js +0 -53
  174. package/dist/chunk-KYDEBGJG.js +0 -402
  175. package/dist/chunk-MESOOLF4.js +0 -45
  176. package/dist/chunk-OHQMGLJP.js +0 -113
  177. package/dist/chunk-OUPQTA7N.js +0 -145
  178. package/dist/chunk-VRMXYQWR.js +0 -74
  179. package/dist/connect-cmd-THV7XBVP.js +0 -27
  180. package/dist/docker-5YVUZ3J2.js +0 -14
  181. package/dist/emit-artifact-cmd-H27MFSKH.js +0 -42
  182. package/dist/emit-criteria-cmd-IOUVMB2Q.js +0 -33
  183. package/dist/emit-demo-cmd-WJSS7KU2.js +0 -46
  184. package/dist/exec-client-FGGPQSYQ.js +0 -9
  185. package/dist/find-unit-PRZIFBIK.js +0 -19
  186. package/dist/governing-source-CND5ZZC3.js +0 -39
  187. package/dist/guest-init-WPUS45IN.js +0 -11
  188. package/dist/host-checks-S3B7Z4SY.js +0 -78
  189. package/dist/host-key-O4DFMOSV.js +0 -9
  190. package/dist/image-tag-WBD57QBN.js +0 -10
  191. package/dist/init-ILTX4V56.js +0 -78
  192. package/dist/install-cmd-JKPXIOEY.js +0 -12
  193. package/dist/layout-2ZMCT2D3.js +0 -11
  194. package/dist/loop-KDWDOSMQ.js +0 -89
  195. package/dist/machine-Z6K5XXI6.js +0 -78
  196. package/dist/pending-D2NNV54J.js +0 -9
  197. package/dist/pidfile-FLFVRKVW.js +0 -10
  198. package/dist/record-JMZOXD4R.js +0 -9
  199. package/dist/relay-protocol-5LSWUJCW.js +0 -6
  200. package/dist/runner-env-W2UMHY7P.js +0 -19
  201. package/dist/runner-identity-IIY5UJL3.js +0 -14
  202. package/dist/session-sender-NO4F2IQ5.js +0 -42
  203. package/dist/settings-XB2HYBKO.js +0 -7
  204. package/dist/state-UWIM42JH.js +0 -9
  205. package/dist/update-steps-XGOXDCOS.js +0 -79
  206. package/dist/{chunk-OLM2TIOW.js → chunk-NFZMENCY.js} +1 -1
package/dist/index.js CHANGED
@@ -6,25 +6,24 @@ createRequire(import.meta.url);
6
6
  // src/index.ts
7
7
  var argv = process.argv.slice(2);
8
8
  if (argv[0] === "hook") {
9
- const { runHookFast } = await import('./hook-fast-RW7RU3O6.js');
9
+ const { runHookFast } = await import('./hook-fast-VXROB4KF.js');
10
10
  await runHookFast(argv[1]);
11
11
  process.exit(0);
12
12
  }
13
13
  if (argv[0] === "hook-wrap") {
14
- const { runHookWrapFast, parseHookWrapArgs } = await import('./hook-wrap-fast-545QJSBJ.js');
14
+ const { runHookWrapFast, parseHookWrapArgs } = await import('./hook-wrap-fast-LWWKKPGK.js');
15
15
  const { id, captureOutput } = parseHookWrapArgs(argv.slice(1));
16
16
  const code = await runHookWrapFast(id, { captureOutput });
17
17
  process.exit(code);
18
18
  }
19
19
  if (argv[0] === "statusline") {
20
- const { runStatuslineFast } = await import('./statusline-fast-E7RWVREA.js');
20
+ const { runStatuslineFast } = await import('./statusline-fast-NUVHCNRX.js');
21
21
  await runStatuslineFast(argv.slice(1));
22
22
  process.exit(0);
23
23
  }
24
- if (argv[0] === "claude") {
25
- const { runClaudeLauncher } = await import('./claude-launcher-L77BKZOC.js');
26
- process.exit(await runClaudeLauncher(argv.slice(1)));
27
- }
28
- (await import('./hook-fast-RW7RU3O6.js')).recordLinkExitFailure(argv);
29
- var { runCli } = await import('./cli-QQY5UECM.js');
24
+ var { runSubcommand } = await import('./agent-subcommand-Z6SOLWZW.js');
25
+ var launcherCode = await runSubcommand(argv);
26
+ if (launcherCode !== void 0) process.exit(launcherCode);
27
+ (await import('./hook-fast-VXROB4KF.js')).recordLinkExitFailure(argv);
28
+ var { runCli } = await import('./cli-Q5L64EEG.js');
30
29
  await runCli(process.argv);
@@ -0,0 +1,78 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from 'node:module';
3
+ export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-XEWG4AB2.js';
4
+ import './chunk-FOSYM7TQ.js';
5
+ import './chunk-I3LTIAOR.js';
6
+ import './chunk-2PGI6RDE.js';
7
+ import './chunk-K7N6LAPC.js';
8
+ import './chunk-CSBW4LGL.js';
9
+ import './chunk-LHHDX7FB.js';
10
+ import './chunk-J2OMKFYB.js';
11
+ import './chunk-YMVRCSKD.js';
12
+ import './chunk-3UFX6KH2.js';
13
+ import './chunk-ENMX3VQ7.js';
14
+ import './chunk-WGC7UFRM.js';
15
+ import './chunk-ZVB57WI6.js';
16
+ import './chunk-ULBYRPAP.js';
17
+ import './chunk-TQMI335S.js';
18
+ import './chunk-CSVJGW3I.js';
19
+ import './chunk-NN33FYXG.js';
20
+ import './chunk-TJIFYV2Z.js';
21
+ import './chunk-ZSRMJOAK.js';
22
+ import './chunk-D4VGJQY7.js';
23
+ import './chunk-JBJTC3UU.js';
24
+ import './chunk-OGFGZQA3.js';
25
+ import './chunk-HRHWA6TZ.js';
26
+ import './chunk-H2NJG3TE.js';
27
+ import './chunk-3YEPLVNW.js';
28
+ import './chunk-2YC3TXWX.js';
29
+ import './chunk-WACPWYMH.js';
30
+ import './chunk-Y4E7IS7H.js';
31
+ import './chunk-CDG475ZP.js';
32
+ import './chunk-BZSJ77MO.js';
33
+ import './chunk-MVPOYQQY.js';
34
+ import './chunk-B5SWBFVE.js';
35
+ import './chunk-AQE6E54X.js';
36
+ import './chunk-FWSVWPMS.js';
37
+ import './chunk-VUH7KKVD.js';
38
+ import './chunk-FRMAQ3C4.js';
39
+ import './chunk-P6PHY33P.js';
40
+ import './chunk-6KH3NMIT.js';
41
+ import './chunk-D6EXW4EB.js';
42
+ import './chunk-TPMLB3VZ.js';
43
+ import './chunk-A2LHHKTT.js';
44
+ import './chunk-2AM6Z5BP.js';
45
+ import './chunk-VAYVTUU4.js';
46
+ import './chunk-XIDDJSQU.js';
47
+ import './chunk-B36NSEUM.js';
48
+ import './chunk-NXQK2I3G.js';
49
+ import './chunk-HWVMRETT.js';
50
+ import './chunk-IKFAJTLZ.js';
51
+ import './chunk-O3MJAHLI.js';
52
+ import './chunk-545P7JY7.js';
53
+ import './chunk-LO4CK734.js';
54
+ import './chunk-BKO6JEZI.js';
55
+ import './chunk-6JLYU322.js';
56
+ import './chunk-BSPJI5T7.js';
57
+ import './chunk-BJ3KTMDH.js';
58
+ import './chunk-NFZMENCY.js';
59
+ import './chunk-4OD45RBP.js';
60
+ import './chunk-WZBHBH3J.js';
61
+ import './chunk-FZKNTIOJ.js';
62
+ import './chunk-ZHQC43NH.js';
63
+ import './chunk-PBGNX3PS.js';
64
+ import './chunk-YQR6E6OV.js';
65
+ import './chunk-CJPTUU2E.js';
66
+ import './chunk-DTCTXDJP.js';
67
+ import './chunk-CXJC3JLN.js';
68
+ import './chunk-DTQPDMHG.js';
69
+ import './chunk-I6U6QPN6.js';
70
+ import './chunk-WUKLQWGY.js';
71
+ import './chunk-T5QBWM6M.js';
72
+ import './chunk-LSLK4RS4.js';
73
+ import './chunk-CDDED64E.js';
74
+ import './chunk-RA3O54FC.js';
75
+ import './chunk-352DHUTP.js';
76
+ import './chunk-Z5GEFMRW.js';
77
+
78
+ createRequire(import.meta.url);
@@ -1,80 +1,80 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { npmSupportsProvenance } from './chunk-E7R2GIAW.js';
4
- import { RunnerInitError, readConfigObject } from './chunk-KLXECBIE.js';
5
- import './chunk-AH6634HC.js';
4
+ import { RunnerInitError, readConfigObject } from './chunk-XEWG4AB2.js';
5
+ import './chunk-FOSYM7TQ.js';
6
6
  import './chunk-I3LTIAOR.js';
7
7
  import './chunk-2PGI6RDE.js';
8
- import './chunk-JU3VU42K.js';
9
- import './chunk-6A2GEFN3.js';
10
- import './chunk-QIOTIQWD.js';
11
- import './chunk-R3252UTU.js';
12
- import './chunk-AAGU5FJF.js';
8
+ import './chunk-K7N6LAPC.js';
9
+ import { checkFit, VM_SERVICE_NAME, RUNNER_RESERVE_BYTES } from './chunk-CSBW4LGL.js';
10
+ import './chunk-LHHDX7FB.js';
11
+ import './chunk-J2OMKFYB.js';
12
+ import './chunk-YMVRCSKD.js';
13
+ import './chunk-3UFX6KH2.js';
14
+ import './chunk-ENMX3VQ7.js';
15
+ import './chunk-WGC7UFRM.js';
13
16
  import './chunk-ZVB57WI6.js';
14
- import './chunk-ALEUIS35.js';
17
+ import './chunk-ULBYRPAP.js';
15
18
  import './chunk-TQMI335S.js';
16
- import './chunk-VRMXYQWR.js';
17
- import { checkFit, VM_SERVICE_NAME, RUNNER_RESERVE_BYTES } from './chunk-AGKQEOFS.js';
19
+ import './chunk-CSVJGW3I.js';
18
20
  import './chunk-NN33FYXG.js';
19
- import './chunk-W7I65BKE.js';
20
- import './chunk-KB5B6ZT5.js';
21
- import './chunk-WAZJPDR2.js';
22
- import './chunk-OGFGZQA3.js';
23
- import './chunk-46OBCATR.js';
24
- import './chunk-F2LPX2HS.js';
25
- import './chunk-55PYF6S2.js';
21
+ import './chunk-TJIFYV2Z.js';
22
+ import './chunk-ZSRMJOAK.js';
23
+ import './chunk-D4VGJQY7.js';
26
24
  import './chunk-JBJTC3UU.js';
27
- import './chunk-UZGQT6OF.js';
28
- import './chunk-MKSZHT6S.js';
25
+ import './chunk-OGFGZQA3.js';
26
+ import './chunk-HRHWA6TZ.js';
27
+ import './chunk-H2NJG3TE.js';
28
+ import './chunk-3YEPLVNW.js';
29
+ import './chunk-2YC3TXWX.js';
30
+ import { runnerCredentialProblem, resolveBuild, resolveHousekeeping, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-WACPWYMH.js';
31
+ import './chunk-Y4E7IS7H.js';
32
+ import { parseSize } from './chunk-CDG475ZP.js';
33
+ import './chunk-BZSJ77MO.js';
29
34
  import { writeLaunchAgent } from './chunk-LF6MLJCY.js';
30
- import './chunk-D2OTBS47.js';
31
- import { runnerCredentialProblem, resolveBuild, resolveHousekeeping, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-RIIPBJK6.js';
32
- import './chunk-MXIFRYLA.js';
33
- import { parseSize } from './chunk-OEBFKPHK.js';
34
- import './chunk-CIUD3436.js';
35
- import './chunk-OUPQTA7N.js';
36
- import './chunk-OHQMGLJP.js';
37
- import './chunk-B62TYDP2.js';
38
- import './chunk-SPXVFFQV.js';
39
- import './chunk-IP7BIBXJ.js';
40
- import './chunk-TSYHUUAT.js';
41
- import './chunk-HL7UNTXO.js';
35
+ import './chunk-MVPOYQQY.js';
36
+ import './chunk-B5SWBFVE.js';
37
+ import './chunk-AQE6E54X.js';
38
+ import './chunk-FWSVWPMS.js';
39
+ import './chunk-VUH7KKVD.js';
40
+ import './chunk-FRMAQ3C4.js';
41
+ import './chunk-P6PHY33P.js';
42
+ import './chunk-6KH3NMIT.js';
43
+ import './chunk-D6EXW4EB.js';
42
44
  import './chunk-TPMLB3VZ.js';
43
45
  import './chunk-A2LHHKTT.js';
44
46
  import './chunk-2AM6Z5BP.js';
45
- import './chunk-P6PHY33P.js';
46
- import './chunk-KFUDKFEH.js';
47
- import './chunk-X2XTCGUS.js';
48
- import './chunk-KDK6AF7B.js';
49
- import './chunk-LEHBDEUG.js';
50
- import './chunk-YQHEJ5SV.js';
47
+ import './chunk-VAYVTUU4.js';
48
+ import './chunk-XIDDJSQU.js';
49
+ import './chunk-B36NSEUM.js';
50
+ import './chunk-NXQK2I3G.js';
51
51
  import { readCloudConfig } from './chunk-HWVMRETT.js';
52
- import './chunk-4DJZSNVT.js';
53
- import './chunk-DJMR4YPG.js';
52
+ import './chunk-IKFAJTLZ.js';
53
+ import './chunk-O3MJAHLI.js';
54
54
  import './chunk-545P7JY7.js';
55
- import './chunk-FUJUFLDC.js';
55
+ import './chunk-LO4CK734.js';
56
56
  import './chunk-BKO6JEZI.js';
57
- import './chunk-FGF52V4V.js';
58
- import './chunk-HCVLP7XA.js';
57
+ import './chunk-6JLYU322.js';
58
+ import './chunk-BSPJI5T7.js';
59
59
  import './chunk-BJ3KTMDH.js';
60
- import './chunk-CXFJOX2C.js';
61
- import './chunk-5GHJFETA.js';
62
- import './chunk-OLM2TIOW.js';
63
- import './chunk-CDDED64E.js';
64
- import './chunk-RA3O54FC.js';
65
- import './chunk-5WYT3PPE.js';
60
+ import './chunk-NFZMENCY.js';
61
+ import './chunk-4OD45RBP.js';
66
62
  import './chunk-WZBHBH3J.js';
67
63
  import './chunk-FZKNTIOJ.js';
68
- import './chunk-KYDEBGJG.js';
69
- import './chunk-B7PYT2BY.js';
64
+ import './chunk-ZHQC43NH.js';
65
+ import './chunk-PBGNX3PS.js';
70
66
  import './chunk-YQR6E6OV.js';
71
67
  import './chunk-CJPTUU2E.js';
72
- import './chunk-24FEVLX7.js';
68
+ import { hostKeyPath } from './chunk-DTCTXDJP.js';
69
+ import './chunk-CXJC3JLN.js';
70
+ import { runnerAgentNamed, credentialForms, orList, credentialShapes, credentialHandOffKey, credentialAgent } from './chunk-DTQPDMHG.js';
71
+ import { defaultAgents } from './chunk-I6U6QPN6.js';
73
72
  import './chunk-WUKLQWGY.js';
73
+ import './chunk-T5QBWM6M.js';
74
+ import './chunk-LSLK4RS4.js';
75
+ import './chunk-CDDED64E.js';
76
+ import './chunk-RA3O54FC.js';
74
77
  import './chunk-352DHUTP.js';
75
- import { hostKeyPath } from './chunk-WT7J2627.js';
76
- import './chunk-GANAOCHR.js';
77
- import './chunk-MESOOLF4.js';
78
78
  import './chunk-Z5GEFMRW.js';
79
79
  import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
80
80
  import { dirname } from 'path';
@@ -139,9 +139,12 @@ async function runVmInit(configPath, deps) {
139
139
  const { lima } = deps;
140
140
  const instance = deps.instance ?? VM_INSTANCE;
141
141
  const progress = deps.progress ?? (() => void 0);
142
- if (deps.agent === "claude" && deps.credential === void 0) {
142
+ const agents = deps.agents ?? defaultAgents();
143
+ const named = deps.agent === void 0 ? void 0 : runnerAgentNamed(deps.agent, agents);
144
+ if (named !== void 0 && deps.credential === void 0) {
145
+ const forms = credentialForms(named.descriptor);
143
146
  throw new RunnerInitError(
144
- "--agent claude needs Claude's credential on stdin, because the new VM has none. Pipe a token from `claude setup-token`, or an Anthropic API key: printf '%s' \"$CLAUDE_CODE_OAUTH_TOKEN\" | outerlayer runner init --vm --agent claude"
147
+ `--agent ${forms.runnerName} needs ${forms.possessive} credential on stdin, because the new VM has none. Pipe ${orList(credentialShapes(named.descriptor).map((shape) => shape.phrase))}: printf '%s' "$${forms.variables[0]}" | outerlayer runner init --vm --agent ${forms.runnerName}`
145
148
  );
146
149
  }
147
150
  const limactl = lima.locate();
@@ -248,7 +251,7 @@ async function runVmInit(configPath, deps) {
248
251
  ...block === void 0 ? {} : { runner: carried },
249
252
  // JSON leaves out a key whose value is undefined, so a hand-off with no agent carries neither key.
250
253
  agent: deps.agent,
251
- claudeCredential: deps.credential?.value
254
+ [credentialHandOffKey(agents)]: deps.credential?.value
252
255
  };
253
256
  const innerOut = await sh(["sg", "docker", "-c", `${quote(outerlayer)} runner init --config-stdin --config ${quote(vmConfig)}`], JSON.stringify(handoff));
254
257
  const installOut = await sh(["sh", "-c", `${quote(outerlayer)} runner install --service --config ${quote(vmConfig)}`]);
@@ -281,8 +284,8 @@ async function runVmInit(configPath, deps) {
281
284
  ...hadHostKey ? ["deleted this Mac's old host key. If the runner key was bound to it, a member uses Clear host key on the API keys page before the VM's first claim"] : [],
282
285
  ...created === void 0 && !hasLogin ? ["this Mac has no login now that the runner key left its config, so capture on this Mac has no credential. Run outerlayer login to sign in"] : [],
283
286
  ...installed.warnings,
284
- ...deps.credential === void 0 ? [
285
- `put CLAUDE_CODE_OAUTH_TOKEN=<token> in ${home}/.outerlayer/claude.env inside the VM, then restart the runner so it loads the file: limactl shell ${instance} sudo systemctl restart ${VM_SERVICE_NAME}`
287
+ ...deps.credential === void 0 && credentialAgent(agents) !== void 0 ? [
288
+ `put ${credentialForms(credentialAgent(agents).descriptor).variables[0]}=<token> in ${home}/.outerlayer/${credentialForms(credentialAgent(agents).descriptor).envFile} inside the VM, then restart the runner so it loads the file: limactl shell ${instance} sudo systemctl restart ${VM_SERVICE_NAME}`
286
289
  ] : []
287
290
  ];
288
291
  lines.push(
@@ -1,48 +1,51 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { summarizeChecks, summaryText, renderDoctorText } from './chunk-DJDTL6AY.js';
4
- import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-CJJDJ7AT.js';
5
- import './chunk-JU3VU42K.js';
6
- import './chunk-OHQMGLJP.js';
7
- import './chunk-B62TYDP2.js';
8
- import './chunk-SPXVFFQV.js';
9
- import './chunk-IP7BIBXJ.js';
10
- import './chunk-TSYHUUAT.js';
11
- import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-HL7UNTXO.js';
3
+ import { summarizeChecks, summaryText, renderDoctorText } from './chunk-QKOJ22OV.js';
4
+ import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-PIZA7OG2.js';
5
+ import './chunk-LHHDX7FB.js';
6
+ import './chunk-SJJXDU2J.js';
7
+ import './chunk-MVPOYQQY.js';
8
+ import './chunk-B5SWBFVE.js';
9
+ import './chunk-AQE6E54X.js';
10
+ import './chunk-FWSVWPMS.js';
11
+ import './chunk-VUH7KKVD.js';
12
+ import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-FRMAQ3C4.js';
13
+ import './chunk-P6PHY33P.js';
14
+ import './chunk-6KH3NMIT.js';
15
+ import './chunk-D6EXW4EB.js';
12
16
  import './chunk-TPMLB3VZ.js';
13
17
  import './chunk-A2LHHKTT.js';
14
18
  import { C } from './chunk-2AM6Z5BP.js';
15
- import './chunk-MOOZJRKM.js';
16
- import './chunk-P6PHY33P.js';
17
- import './chunk-KFUDKFEH.js';
18
- import './chunk-LEHBDEUG.js';
19
- import './chunk-YQHEJ5SV.js';
19
+ import './chunk-B36NSEUM.js';
20
+ import './chunk-NXQK2I3G.js';
20
21
  import './chunk-HWVMRETT.js';
21
- import './chunk-4DJZSNVT.js';
22
- import './chunk-DJMR4YPG.js';
22
+ import './chunk-IKFAJTLZ.js';
23
+ import './chunk-O3MJAHLI.js';
23
24
  import './chunk-545P7JY7.js';
24
- import './chunk-YBAVN6WS.js';
25
+ import './chunk-I4DM7SNX.js';
25
26
  import './chunk-BKO6JEZI.js';
26
- import './chunk-HCVLP7XA.js';
27
+ import './chunk-4DLJ343I.js';
28
+ import './chunk-BSPJI5T7.js';
27
29
  import './chunk-BJ3KTMDH.js';
28
- import './chunk-ABAVN4RT.js';
29
- import './chunk-CXFJOX2C.js';
30
- import './chunk-5GHJFETA.js';
31
- import './chunk-OLM2TIOW.js';
32
- import './chunk-CDDED64E.js';
33
- import './chunk-RA3O54FC.js';
30
+ import './chunk-LSZUTI6O.js';
31
+ import './chunk-NFZMENCY.js';
34
32
  import './chunk-WZBHBH3J.js';
35
33
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
36
- import './chunk-KYDEBGJG.js';
37
- import './chunk-B7PYT2BY.js';
34
+ import './chunk-HTRDL42C.js';
35
+ import './chunk-ZHQC43NH.js';
36
+ import './chunk-PBGNX3PS.js';
38
37
  import './chunk-YQR6E6OV.js';
39
38
  import './chunk-CJPTUU2E.js';
40
- import './chunk-24FEVLX7.js';
39
+ import './chunk-DTCTXDJP.js';
40
+ import './chunk-CXJC3JLN.js';
41
+ import './chunk-DTQPDMHG.js';
42
+ import './chunk-I6U6QPN6.js';
41
43
  import './chunk-WUKLQWGY.js';
44
+ import './chunk-T5QBWM6M.js';
45
+ import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-LSLK4RS4.js';
46
+ import './chunk-CDDED64E.js';
47
+ import './chunk-RA3O54FC.js';
42
48
  import './chunk-352DHUTP.js';
43
- import './chunk-WT7J2627.js';
44
- import './chunk-GANAOCHR.js';
45
- import './chunk-MESOOLF4.js';
46
49
  import './chunk-Z5GEFMRW.js';
47
50
 
48
51
  createRequire(import.meta.url);
@@ -164,6 +167,8 @@ ${CLOSING_LINE}
164
167
  }
165
168
  return finish();
166
169
  }
170
+ var AGENT = NATIVE_AGENTS[LEGACY_AGENT];
171
+ var LAUNCHER = AGENT.legacy.subcommand;
167
172
  async function setUpShellFunction(flags, shell) {
168
173
  if (flags.shellFunction !== void 0) return applyShellFunctionFlag(flags.shellFunction, shell);
169
174
  if (shellFunctionInstalled({ home: shell.home, shellPath: shell.shellPath })) return { outcome: "skipped", reason: "already set up", text: "" };
@@ -174,16 +179,16 @@ async function setUpShellFunction(flags, shell) {
174
179
  function applyShellFunctionFlag(on, shell) {
175
180
  if (!on) {
176
181
  const changed = removeShellFunction({ home: shell.home });
177
- return changed.length === 0 ? { outcome: "skipped", reason: "no shell function to remove", text: "" } : { outcome: "done", reason: "removed the shell function", text: `${C.green}\u2713${C.reset} removed the claude function from ${changed.join(", ")}
182
+ return changed.length === 0 ? { outcome: "skipped", reason: "no shell function to remove", text: "" } : { outcome: "done", reason: "removed the shell function", text: `${C.green}\u2713${C.reset} removed the ${AGENT.program} function from ${changed.join(", ")}
178
183
  ` };
179
184
  }
180
185
  const installed = installShellFunction({ home: shell.home, shellPath: shell.shellPath });
181
186
  switch (installed.status) {
182
187
  case "added":
183
- return { outcome: "done", reason: "added the shell function", text: `${C.green}\u2713${C.reset} plain claude now runs ${cliInvocation()} claude in new shells (${installed.file})
188
+ return { outcome: "done", reason: "added the shell function", text: `${C.green}\u2713${C.reset} plain ${AGENT.program} now runs ${cliInvocation()} ${LAUNCHER} in new shells (${installed.file})
184
189
  ` };
185
190
  case "unchanged":
186
- return { outcome: "done", reason: "already set up", text: `${C.green}\u2713${C.reset} plain claude already runs ${cliInvocation()} claude (${installed.file})
191
+ return { outcome: "done", reason: "already set up", text: `${C.green}\u2713${C.reset} plain ${AGENT.program} already runs ${cliInvocation()} ${LAUNCHER} (${installed.file})
187
192
  ` };
188
193
  case "unsupported":
189
194
  return {
@@ -1,45 +1,46 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { keepHandWritten } from './chunk-ZP7F3OHV.js';
4
- import { runEmit, inspectReplacedOutputs } from './chunk-2SRQSGPR.js';
5
- import { contextIsGoverned, inspectStarterFiles, readShippedManifest, contentHash, canonical } from './chunk-JU3VU42K.js';
6
- import { setMcpEntry } from './chunk-OHQMGLJP.js';
7
- import './chunk-B62TYDP2.js';
8
- import { AGENTS_LAYOUT_COMMIT_LINE, COMMIT_LINE } from './chunk-HL7UNTXO.js';
3
+ import { keepHandWritten } from './chunk-URHS76GV.js';
4
+ import { runEmit, inspectReplacedOutputs } from './chunk-WVAXJOWG.js';
5
+ import { contextIsGoverned, inspectStarterFiles, readShippedManifest, contentHash, canonical } from './chunk-LHHDX7FB.js';
6
+ import { maintainedReferenceRewrites, applyReferenceRewrites, describeFleet, committedMaintainedFolders, skillsFolders } from './chunk-SJJXDU2J.js';
7
+ import { setMcpEntry } from './chunk-MVPOYQQY.js';
8
+ import './chunk-B5SWBFVE.js';
9
+ import { COMMIT_LINE, agentsLayoutCommitLine, listWithAnd } from './chunk-FRMAQ3C4.js';
10
+ import './chunk-P6PHY33P.js';
11
+ import './chunk-6KH3NMIT.js';
12
+ import { skillsBaseFor, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths, declareAgentsMdLayout, linkAgentSkills, mcpFiles, skillLinkFolders, readConfigObject, filesBelow, describeSkillsLink, FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-D6EXW4EB.js';
9
13
  import './chunk-TPMLB3VZ.js';
10
14
  import './chunk-A2LHHKTT.js';
11
15
  import { C } from './chunk-2AM6Z5BP.js';
12
- import { maintainedReferenceRewrites, applyReferenceRewrites, describeFleet, committedMaintainedFolders, skillsFolders } from './chunk-MOOZJRKM.js';
13
- import './chunk-P6PHY33P.js';
14
- import { skillsBaseFor, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths, declareAgentsMdLayout, linkClaudeSkills, SKILLS_LINK_PATH, readConfigObject, filesBelow, describeSkillsLink, FIRST_VERSION_READING_AGENTS_SKILLS } from './chunk-KFUDKFEH.js';
15
- import './chunk-X2XTCGUS.js';
16
- import { removedTargetErrorIn } from './chunk-KDK6AF7B.js';
17
- import { retiredSkillPaths, removeRetiredSkills } from './chunk-LEHBDEUG.js';
18
- import './chunk-YQHEJ5SV.js';
16
+ import './chunk-VAYVTUU4.js';
17
+ import { removedTargetErrorIn } from './chunk-XIDDJSQU.js';
18
+ import { retiredSkillPaths, removeRetiredSkills } from './chunk-B36NSEUM.js';
19
+ import './chunk-NXQK2I3G.js';
19
20
  import './chunk-HWVMRETT.js';
20
- import './chunk-4DJZSNVT.js';
21
+ import './chunk-IKFAJTLZ.js';
21
22
  import './chunk-545P7JY7.js';
22
- import './chunk-HCVLP7XA.js';
23
+ import './chunk-BSPJI5T7.js';
23
24
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
24
- import './chunk-ABAVN4RT.js';
25
- import { writeMaintainedFiles, maintainedFilesForExistingSkills, loadMaintainedFiles, AGENTS_SKILLS_BASE, MACHINE_SKILL_PATH, OUTERLAYER_SKILLS_BASE } from './chunk-CXFJOX2C.js';
26
- import './chunk-5GHJFETA.js';
27
- import './chunk-OLM2TIOW.js';
28
- import './chunk-CDDED64E.js';
29
- import './chunk-RA3O54FC.js';
25
+ import './chunk-LSZUTI6O.js';
26
+ import './chunk-NFZMENCY.js';
30
27
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
31
- import { linkedAgentsPath, hasSymlinkComponent } from './chunk-B7PYT2BY.js';
28
+ import { linkedAgentsPath, hasSymlinkComponent } from './chunk-PBGNX3PS.js';
32
29
  import './chunk-YQR6E6OV.js';
33
30
  import './chunk-CJPTUU2E.js';
34
- import './chunk-24FEVLX7.js';
31
+ import './chunk-DTCTXDJP.js';
32
+ import './chunk-CXJC3JLN.js';
33
+ import './chunk-DTQPDMHG.js';
34
+ import { writeMaintainedFiles, maintainedFilesForExistingSkills, loadMaintainedFiles, AGENTS_SKILLS_BASE, MACHINE_SKILL_PATH, OUTERLAYER_SKILLS_BASE, defaultAgents, legacyAgent } from './chunk-I6U6QPN6.js';
35
35
  import './chunk-WUKLQWGY.js';
36
+ import './chunk-T5QBWM6M.js';
37
+ import './chunk-LSLK4RS4.js';
38
+ import './chunk-CDDED64E.js';
39
+ import './chunk-RA3O54FC.js';
36
40
  import './chunk-352DHUTP.js';
37
- import './chunk-WT7J2627.js';
38
- import './chunk-GANAOCHR.js';
39
- import './chunk-MESOOLF4.js';
40
41
  import './chunk-Z5GEFMRW.js';
41
42
  import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync, unlinkSync, readdirSync, rmdirSync, renameSync, lstatSync } from 'fs';
42
- import { join, dirname } from 'path';
43
+ import { join, dirname, posix } from 'path';
43
44
  import { spawnSync } from 'child_process';
44
45
 
45
46
  createRequire(import.meta.url);
@@ -93,16 +94,23 @@ function ignoredReason(ignored) {
93
94
  const more = ignored.length > 1 ? ` and ${ignored.length - 1} more` : "";
94
95
  return `git ignores ${ignored[0]}${more}, so the next commit would delete it from the repository; add an exception to .gitignore, then run again`;
95
96
  }
96
- function controlPlaneNote() {
97
- return `A CLI or runner older than ${FIRST_VERSION_READING_AGENTS_SKILLS}, the first that reads .agents/skills/, delivers none of these skills. Keeping .claude/skills/ as an identical copy of .agents/skills/ until they upgrade keeps them working. Until then, make every edit in both folders. To make the copy now, run \`cp -R .agents/skills/. .claude/skills/\`, and commit it.`;
97
+ function controlPlaneNote(folder) {
98
+ return `A CLI or runner older than ${FIRST_VERSION_READING_AGENTS_SKILLS}, the first that reads .agents/skills/, delivers none of these skills. Keeping ${folder}/ as an identical copy of .agents/skills/ until they upgrade keeps them working. Until then, make every edit in both folders. To make the copy now, run \`cp -R .agents/skills/. ${folder}/\`, and commit it.`;
99
+ }
100
+ function olderCliFolder(agents) {
101
+ return legacyAgent(agents).descriptor.context.repoSkillFolders[0];
98
102
  }
99
103
  function migrateToAgentsMdLayout(root, opts) {
104
+ const agents = opts.agents ?? defaultAgents();
105
+ const linkFolders = skillLinkFolders(agents);
106
+ const keptCopy = olderCliFolder(agents);
107
+ const mcpFile = legacyAgent(agents).adapter.context.mcp.file;
100
108
  const outerlayerPaths = discoverOuterlayerPaths(root);
101
- const retired = retiredSkillPaths(root);
102
- const inspected = inspectReplacedOutputs(root);
109
+ const retired = retiredSkillPaths(root, void 0, agents);
110
+ const inspected = inspectReplacedOutputs(root, agents);
103
111
  const edited = inspected.edited;
104
112
  const generated = inspected.generated.filter(
105
- (path) => !hasSymlinkComponent(root, path) && !(opts.controlPlane && (path === SKILLS_LINK_PATH || path.startsWith(`${SKILLS_LINK_PATH}/`) || path.includes(`/${SKILLS_LINK_PATH}/`)))
113
+ (path) => !hasSymlinkComponent(root, path) && !(opts.controlPlane && (path === keptCopy || path.startsWith(`${keptCopy}/`) || path.includes(`/${keptCopy}/`)))
106
114
  );
107
115
  const removedSet = /* @__PURE__ */ new Set([...retired, ...generated]);
108
116
  const survives = (rel) => {
@@ -165,7 +173,7 @@ function migrateToAgentsMdLayout(root, opts) {
165
173
  }
166
174
  }
167
175
  }
168
- const mcpPlan = scopesOf(outerlayerPaths).map((scope) => ({ src: scope === "" ? ".outerlayer/mcp.json" : `${scope}/.outerlayer/mcp.json`, dst: scope === "" ? ".mcp.json" : `${scope}/.mcp.json` })).filter((m) => exists(root, m.src));
176
+ const mcpPlan = scopesOf(outerlayerPaths).map((scope) => ({ src: scope === "" ? ".outerlayer/mcp.json" : `${scope}/.outerlayer/mcp.json`, dst: scope === "" ? mcpFile : `${scope}/${mcpFile}` })).filter((m) => exists(root, m.src));
169
177
  const linkedMcp = mcpPlan.filter((m) => hasSymlinkComponent(root, m.src) || hasSymlinkComponent(root, m.dst));
170
178
  for (const m of linkedMcp) notMoved.push({ path: m.src, because: `it or ${m.dst} is a link, and a move would follow it` });
171
179
  mcpPlan.splice(0, mcpPlan.length, ...mcpPlan.filter((m) => !linkedMcp.includes(m)));
@@ -229,16 +237,16 @@ function migrateToAgentsMdLayout(root, opts) {
229
237
  }
230
238
  const skillsStay = moves.some((m) => m.to === ".agents/skills" || m.to.startsWith(".agents/skills/")) || survives(".agents/skills");
231
239
  if (opts.controlPlane) {
232
- result.link = { status: "skipped", reason: "this control plane keeps .claude/skills/ as a copy for older CLIs" };
240
+ result.link = { status: "skipped", reason: `this control plane keeps ${keptCopy}/ as a copy for older CLIs` };
233
241
  } else if (!opts.skillsLink) {
234
242
  result.link = { status: "skipped", reason: "--no-skills-link" };
235
243
  } else if (!skillsStay) {
236
244
  result.link = { status: "skipped", reason: "there are no skills in .agents/skills/" };
237
245
  } else {
238
- const blocking = opts.dryRun ? filesBelow(root, SKILLS_LINK_PATH).filter((file) => !removedSet.has(file)) : [];
239
- result.link = blocking.length > 0 ? { status: "blocked", blocking } : { status: "linked" };
246
+ const blocked2 = opts.dryRun ? linkFolders.map((folder) => ({ folder, blocking: filesBelow(root, folder).filter((file) => !removedSet.has(file)) })).find((entry) => entry.blocking.length > 0) : void 0;
247
+ result.link = blocked2 === void 0 ? { status: "linked" } : blocked2.folder === keptCopy ? { status: "blocked", blocking: blocked2.blocking } : { status: "blocked", blocking: blocked2.blocking, folder: blocked2.folder };
240
248
  }
241
- if (result.moved.some((m) => m.to.startsWith(".agents/skills/")) && opts.controlPlane) result.controlPlaneNote = controlPlaneNote();
249
+ if (result.moved.some((m) => m.to.startsWith(".agents/skills/")) && opts.controlPlane) result.controlPlaneNote = controlPlaneNote(keptCopy);
242
250
  result.layoutDeclared = result.notMoved.length === 0;
243
251
  if (opts.dryRun) return result;
244
252
  removeRetiredSkills(root, (path) => hasSymlinkComponent(root, path));
@@ -264,12 +272,13 @@ function migrateToAgentsMdLayout(root, opts) {
264
272
  else if (!exists(root, m.dst)) renameSync(join(root, m.src), join(root, m.dst));
265
273
  if (exists(root, m.src)) unlinkSync(join(root, m.src));
266
274
  }
267
- if (result.link.status === "linked" || result.link.status === "blocked") result.link = linkClaudeSkills(root);
275
+ if (result.link.status === "linked" || result.link.status === "blocked") result.link = linkAgentSkills(root, agents);
268
276
  result.layoutDeclared = result.notMoved.length === 0 && declareAgentsMdLayout(root);
269
277
  return result;
270
278
  }
271
- function describeMigration(m, color) {
279
+ function describeMigration(m, color, agents = defaultAgents()) {
272
280
  const { green, yellow, dim, reset } = color;
281
+ const linkFolders = skillLinkFolders(agents);
273
282
  const lines = [];
274
283
  const verb = (done, planned) => m.dryRun ? planned : `${green}${done}${reset}`;
275
284
  lines.push(m.dryRun ? "Move to the AGENTS.md layout (nothing written):" : "Moved to the AGENTS.md layout:");
@@ -287,13 +296,13 @@ function describeMigration(m, color) {
287
296
  if (m.commandsKept) {
288
297
  lines.push(` ${dim}kept .outerlayer/commands/ and the commands compiled from it: run \`${cliInvocation()} context emit\` after you change a command${reset}`);
289
298
  }
290
- if (m.link.status === "skipped") lines.push(` ${dim}no .claude/skills link (${m.link.reason})${reset}`);
299
+ if (m.link.status === "skipped") lines.push(` ${dim}no ${linkFolders.join(", ")} link (${m.link.reason})${reset}`);
291
300
  else if (m.dryRun) {
292
301
  lines.push(
293
- m.link.status === "linked" ? ` would link ${SKILLS_LINK_PATH} to ../.agents/skills` : ` ${yellow}would leave${reset} ${SKILLS_LINK_PATH}/ as it is: it still holds ${m.link.blocking.join(", ")}`
302
+ ...m.link.status === "linked" ? linkFolders.map((folder) => ` would link ${folder} to ${posix.relative(posix.dirname(folder), ".agents/skills")}`) : [` ${yellow}would leave${reset} ${m.link.folder ?? olderCliFolder(agents)}/ as it is: it still holds ${m.link.blocking.join(", ")}`]
294
303
  );
295
304
  } else {
296
- const text = describeSkillsLink(m.link);
305
+ const text = describeSkillsLink(m.link, agents);
297
306
  if (text !== "") lines.push(` ${m.link.status === "linked" ? `${green}\u2713${reset}` : `${yellow}!${reset}`} ${text}`);
298
307
  }
299
308
  if (m.notMoved.length > 0 || !m.layoutDeclared) {
@@ -509,7 +518,7 @@ function updateRepository(opts) {
509
518
  if (removedTarget !== void 0) return { status: "failed", reason: removedTarget, dryRun, items: [], emitted: [], kept: [], manifest: "ok" };
510
519
  let migration;
511
520
  try {
512
- migration = migrateToAgentsMdLayout(root, { dryRun, skillsLink: opts.skillsLink !== false, controlPlane: opts.controlPlane === true });
521
+ migration = migrateToAgentsMdLayout(root, { dryRun, skillsLink: opts.skillsLink !== false, controlPlane: opts.controlPlane === true, agents: opts.agents });
513
522
  } catch (err) {
514
523
  return { status: "failed", reason: `could not move the files: ${errorMessage(err)}`, dryRun, items: [], emitted: [], kept: [], manifest: "ok" };
515
524
  }
@@ -519,7 +528,7 @@ function updateRepository(opts) {
519
528
  }
520
529
  const starter = runStarterUpdate({ cwd: opts.cwd, packRoot: opts.packRoot });
521
530
  if (migration.link.status === "skipped" && migration.link.reason.startsWith("there are no skills") && existsSync(join(root, ".agents", "skills"))) {
522
- migration.link = linkClaudeSkills(root);
531
+ migration.link = linkAgentSkills(root, opts.agents);
523
532
  }
524
533
  const staleReferences = isAgentsMdLayout(root) ? staleSkillReferences(root) : [];
525
534
  return { ...starter, migration, ...staleReferences.length > 0 ? { staleReferences } : {} };
@@ -583,8 +592,8 @@ function formatInitUpdate(result) {
583
592
  if (result.status === "failed") lines.push("", `${C.red}\u2717${C.reset} ${result.reason}`);
584
593
  else if (!result.dryRun && (changed.length > 0 || migrated)) {
585
594
  if (result.reason === NOT_COMPILED) lines.push("", `${C.dim}${NOT_COMPILED}${C.reset}`);
586
- lines.push("", "The changes are left uncommitted.", result.agentsMdLayout === true && !migrated ? AGENTS_LAYOUT_COMMIT_LINE : COMMIT_LINE);
587
- if (migrated) lines.push("Commit the removed and moved files too: AGENTS.md, .agents/, .mcp.json and .claude/skills.");
595
+ lines.push("", "The changes are left uncommitted.", result.agentsMdLayout === true && !migrated ? agentsLayoutCommitLine() : COMMIT_LINE);
596
+ if (migrated) lines.push(`Commit the removed and moved files too: ${listWithAnd(["AGENTS.md", ".agents/", ...mcpFiles(), ...skillLinkFolders()])}.`);
588
597
  } else if (changed.length === 0) lines.push("", `${C.green}\u2713${C.reset} Nothing to update.`);
589
598
  return `${lines.join("\n")}
590
599
  `;
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from 'node:module';
3
+ export { RunnerDowngradeError, RunnerInstallError, launcherSummary, restartNote, runRunnerInstall } from './chunk-PMA67TIN.js';
4
+ import './chunk-B2P72DAE.js';
5
+ import './chunk-DG3M5DZU.js';
6
+ import './chunk-TQMI335S.js';
7
+ import './chunk-DTCTXDJP.js';
8
+ import './chunk-CXJC3JLN.js';
9
+ import './chunk-DTQPDMHG.js';
10
+ import './chunk-I6U6QPN6.js';
11
+ import './chunk-WUKLQWGY.js';
12
+ import './chunk-T5QBWM6M.js';
13
+ import './chunk-LSLK4RS4.js';
14
+ import './chunk-CDDED64E.js';
15
+ import './chunk-RA3O54FC.js';
16
+ import './chunk-352DHUTP.js';
17
+ import './chunk-Z5GEFMRW.js';
18
+
19
+ createRequire(import.meta.url);
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from 'node:module';
3
+ export { AGENTS_MD_LAYOUT, FIRST_VERSION_READING_AGENTS_SKILLS, declareAgentsMdLayout, describeSkillsLink, filesBelow, holdsTodaysLayoutSources, isAgentsMdLayout, linkAgentSkills, mcpFiles, readConfigObject, skillLinkFolders, skillsBaseFor } from './chunk-D6EXW4EB.js';
4
+ import './chunk-I6U6QPN6.js';
5
+ import './chunk-WUKLQWGY.js';
6
+ import './chunk-T5QBWM6M.js';
7
+ import './chunk-LSLK4RS4.js';
8
+ import './chunk-CDDED64E.js';
9
+ import './chunk-RA3O54FC.js';
10
+ import './chunk-352DHUTP.js';
11
+ import './chunk-Z5GEFMRW.js';
12
+
13
+ createRequire(import.meta.url);