@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,35 +1,40 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { C } from './chunk-2AM6Z5BP.js';
4
- import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-LRCGXRQI.js';
5
- import { invalidConfigMessage } from './chunk-F3ZMVUAS.js';
6
- import { retiredSkillPaths, removeRetiredSkills } from './chunk-T3AJOPUR.js';
7
- import { maintainedFilesForExistingSkills, loadMaintainedFiles, writeMaintainedFiles } from './chunk-7O7LJWQO.js';
4
+ import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-WDQPBAFV.js';
5
+ import { invalidConfigMessage } from './chunk-AYLYAOHH.js';
6
+ import { retiredSkillPaths, removeRetiredSkills } from './chunk-GZ75FRLB.js';
8
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
9
- import { emitTree, generatedHeaderSource, parseOuterlayerConfig, classifyTree } from './chunk-JFMSFHER.js';
8
+ import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, LEGACY_AGENT, agentById } from './chunk-CKPQOQFC.js';
10
9
  import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
11
10
  import { join, dirname } from 'path';
12
11
 
13
12
  createRequire(import.meta.url);
14
13
  var CONTENT_KINDS = /* @__PURE__ */ new Set(["instructions", "skill", "skill-reference", "command", "mcp"]);
15
14
  var SKIP_DIRS = /* @__PURE__ */ new Set(["node_modules", ".git"]);
16
- var NO_CONFIG_MESSAGE = 'no .outerlayer/config.json with a non-empty targets array \u2014 create one, e.g. {"targets": ["claude-code"]}';
15
+ var noConfigMessage = () => `no .outerlayer/config.json with a non-empty targets array \u2014 create one, e.g. {"targets": ["${LEGACY_AGENT}"]}`;
17
16
  var EmitError = class extends Error {
18
17
  };
19
- var EMIT_NOT_NEEDED_NOTICE = `Claude Code and Codex read AGENTS.md and .agents/skills/ without a generated copy. Run \`${cliInvocation()} init --update\` to move this repository there and stop committing generated files.`;
20
- var NATIVE_TARGETS = /* @__PURE__ */ new Set(["claude-code"]);
21
- function noticeFor(repoRoot, targets) {
22
- if (targets.length === 0 || !targets.every((t) => NATIVE_TARGETS.has(t))) return void 0;
23
- return isAgentsMdLayout(repoRoot) ? void 0 : EMIT_NOT_NEEDED_NOTICE;
18
+ function emitNotNeededNotice(targets, agents = defaultAgents()) {
19
+ const labels = targets.map((target) => agentById(target, agents)?.descriptor.label ?? target);
20
+ return `${labels.join(", ")} and Codex read AGENTS.md and .agents/skills/ without a generated copy. Run \`${cliInvocation()} init --update\` to move this repository there and stop committing generated files.`;
21
+ }
22
+ function readsSharedFiles(id, agents) {
23
+ const native = agentById(id, agents)?.descriptor.context.native ?? [];
24
+ return native.includes("agents-md") && native.includes("skills");
25
+ }
26
+ function noticeFor(repoRoot, targets, agents) {
27
+ if (targets.length === 0 || !targets.every((t) => readsSharedFiles(t, agents))) return void 0;
28
+ return isAgentsMdLayout(repoRoot) ? void 0 : emitNotNeededNotice(targets, agents);
24
29
  }
25
30
  var HAND_OWNED_OUTPUT = /(^|\/)(CLAUDE\.md|AGENTS\.md|\.claude\/skills\/|\.agents\/skills\/)/;
26
- function resolveTargetsFromConfig(repoRoot) {
31
+ function resolveTargetsFromConfig(repoRoot, agents) {
27
32
  const configPath = join(repoRoot, ".outerlayer", "config.json");
28
- if (!existsSync(configPath)) throw new EmitError(NO_CONFIG_MESSAGE);
33
+ if (!existsSync(configPath)) throw new EmitError(noConfigMessage());
29
34
  const raw = readFileSync(configPath, "utf8");
30
- const result = parseOuterlayerConfig(raw);
35
+ const result = parseOuterlayerConfig(raw, targetIds(agents));
31
36
  if (result.ok) return result.config.targets;
32
- if (result.errors.some((e) => e.code === "no_targets")) throw new EmitError(NO_CONFIG_MESSAGE);
37
+ if (result.errors.some((e) => e.code === "no_targets")) throw new EmitError(noConfigMessage());
33
38
  throw new EmitError(invalidConfigMessage(result.errors));
34
39
  }
35
40
  function buildEmitInput(repoRoot, targets, maintained, excluded = /* @__PURE__ */ new Set()) {
@@ -174,17 +179,17 @@ function withholdKept(repoRoot, result, keep) {
174
179
  });
175
180
  return { result: { ...result, files, copies }, kept: kept.sort() };
176
181
  }
177
- function runEmit(opts = {}) {
182
+ function runEmit(opts = {}, agents = defaultAgents()) {
178
183
  const cwd = opts.cwd ?? process.cwd();
179
184
  if (!existsSync(cwd)) throw new EmitError(`no such directory: ${cwd}`);
180
- const targets = resolveTargetsFromConfig(cwd);
185
+ const targets = resolveTargetsFromConfig(cwd, agents);
181
186
  const agentsMd = isAgentsMdLayout(cwd);
182
187
  const ignoreOrphan = agentsMd ? (path) => HAND_OWNED_OUTPUT.test(path) : void 0;
183
188
  const maintained = agentsMd ? [] : maintainedFilesForExistingSkills(cwd, loadMaintainedFiles());
184
- const notice = noticeFor(cwd, targets);
189
+ const notice = noticeFor(cwd, targets, agents);
185
190
  const retired = retiredSkillPaths(cwd);
186
191
  const built = buildEmitInput(cwd, targets, maintained, new Set(retired));
187
- const emitted = emitTree(built.input);
192
+ const emitted = emitTree(built.input, emitBuilders(agents));
188
193
  const { result, kept } = withholdKept(cwd, emitted, opts.keep);
189
194
  const hasErrors = result.errors.length > 0;
190
195
  const outputs = new Set(emitted.files.map((f) => f.path));
@@ -269,17 +274,17 @@ function runCheck(cwd, opts, targets, result, hasErrors, outputs, sourcePaths, m
269
274
  return { ...notice === void 0 ? {} : { notice }, targets, files: [], copies: [], maintained: [], kept, retired: [], orphaned: [], warnings: result.warnings, errors: result.errors, drift, output, exitCode };
270
275
  }
271
276
  var REPLACED_OUTPUT = /^(?:(?:.*\/)?(?:CLAUDE|AGENTS)\.md|(?:.*\/)?\.(?:claude|agents)\/skills\/.+)$/;
272
- function inspectReplacedOutputs(repoRoot) {
277
+ function inspectReplacedOutputs(repoRoot, agents = defaultAgents()) {
273
278
  let configured = [];
274
279
  try {
275
- configured = resolveTargetsFromConfig(repoRoot);
280
+ configured = resolveTargetsFromConfig(repoRoot, agents);
276
281
  } catch {
277
282
  }
278
- const targets = [.../* @__PURE__ */ new Set([...configured, "claude-code"])];
283
+ const targets = [.../* @__PURE__ */ new Set([...configured, ...targetIds(agents)])];
279
284
  const maintained = maintainedFilesForExistingSkills(repoRoot, loadMaintainedFiles());
280
285
  const maintainedPaths = new Set(maintained.map((f) => f.path));
281
286
  const built = buildEmitInput(repoRoot, targets, maintained, new Set(retiredSkillPaths(repoRoot)));
282
- const emitted = emitTree(built.input);
287
+ const emitted = emitTree(built.input, emitBuilders(agents));
283
288
  const generated = [];
284
289
  const edited = [];
285
290
  const replacedDiffering = [];
@@ -303,4 +308,4 @@ function inspectReplacedOutputs(repoRoot) {
303
308
  return { generated: generated.sort(), edited: edited.sort(), replacedDiffering: replacedDiffering.sort() };
304
309
  }
305
310
 
306
- export { EMIT_NOT_NEEDED_NOTICE, EmitError, inspectReplacedOutputs, runEmit };
311
+ export { EmitError, inspectReplacedOutputs, runEmit };
@@ -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-WT7J2627.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-GD6KIHOS.js';
5
5
  import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
6
6
  import { dirname } from 'path';
7
7
 
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { C } from './chunk-2AM6Z5BP.js';
4
- import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-7O7LJWQO.js';
4
+ import { cliInvocation } from './chunk-FZKNTIOJ.js';
5
+ import { linkedAgentsPath } from './chunk-VRQM4A64.js';
6
+ import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, LEGACY_AGENT, MACHINE_SKILL_PATH } from './chunk-CKPQOQFC.js';
5
7
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
6
8
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
7
- import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
- import { linkedAgentsPath } from './chunk-4SFHEARD.js';
9
9
  import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'fs';
10
10
  import { join, dirname } from 'path';
11
11
 
@@ -111,7 +111,7 @@ function formatStarterPackOutput(result) {
111
111
  ...result.validatorsKept.map((path) => `${C.dim}${path} already exists \u2014 left as it is${C.reset}`),
112
112
  "",
113
113
  ...base === OUTERLAYER_SKILLS_BASE ? [
114
- `Next: create .outerlayer/config.json naming your agent tools, for example {"targets": ["claude-code"]},`,
114
+ `Next: create .outerlayer/config.json naming your agent tools, for example {"targets": ["${LEGACY_AGENT}"]},`,
115
115
  `then run ${C.yellow}${cliInvocation()} context emit${C.reset} to compile the skills into their native files.`
116
116
  ] : [`Agents read these skills from ${base}/ as they are. Nothing needs compiling.`]
117
117
  );
@@ -1,9 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { sanitizeTerminal } from './chunk-3PQTOKML.js';
4
- import { resolvePackRoot } from './chunk-7O7LJWQO.js';
5
- import { parseProofsConfig } from './chunk-JFMSFHER.js';
6
- import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-VUG4IZ7H.js';
3
+ import { sanitizeTerminal } from './chunk-P6PHY33P.js';
4
+ import { resolvePackRoot, parseProofsConfig } from './chunk-CKPQOQFC.js';
5
+ import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-WUKLQWGY.js';
7
6
  import { createHash } from 'crypto';
8
7
  import { join } from 'path';
9
8
  import { pathToFileURL } from 'url';
@@ -1,15 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { sharedSkillNames } from './chunk-FGF52V4V.js';
4
- import { GOVERNANCE_VARIABLE, versionAtLeast, MINIMUM_CLAUDE_VERSION, SHIM_SCRIPT, CONTROL_PLANE_DIR_VARIABLE } from './chunk-HCVLP7XA.js';
5
- export { MINIMUM_CLAUDE_VERSION } from './chunk-HCVLP7XA.js';
3
+ import { sharedSkillNames } from './chunk-TWYHSMHM.js';
4
+ import { GOVERNANCE_VARIABLE, versionAtLeast, MINIMUM_CLAUDE_VERSION, SHIM_SCRIPT, CONTROL_PLANE_DIR_VARIABLE } from './chunk-NC3QAHOS.js';
5
+ export { MINIMUM_CLAUDE_VERSION } from './chunk-NC3QAHOS.js';
6
6
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
7
- import { setupMachineSkills } from './chunk-OLENS2DD.js';
8
- import './chunk-7O7LJWQO.js';
7
+ import { setupMachineSkills } from './chunk-I626B72C.js';
8
+ import { defaultAgents, legacyAgent } from './chunk-CKPQOQFC.js';
9
+ import './chunk-WUKLQWGY.js';
9
10
  import './chunk-CDDED64E.js';
10
11
  import './chunk-RA3O54FC.js';
11
- import './chunk-JFMSFHER.js';
12
- import './chunk-VUG4IZ7H.js';
13
12
  import { homeFromEnv } from './chunk-352DHUTP.js';
14
13
  import './chunk-Z5GEFMRW.js';
15
14
  import { spawn, execFileSync, spawnSync } from 'child_process';
@@ -18,6 +17,12 @@ import { join, delimiter, isAbsolute, resolve, dirname, basename } from 'path';
18
17
  import { createHash, randomBytes } from 'crypto';
19
18
 
20
19
  createRequire(import.meta.url);
20
+ function under(base, folder) {
21
+ return join(base, ...folder.split("/"));
22
+ }
23
+ function skillFolderOf(agents) {
24
+ return legacyAgent(agents).descriptor.context.repoSkillFolders[0];
25
+ }
21
26
  function ownSkillsRoot(home) {
22
27
  return join(home, ".outerlayer", "context", "own");
23
28
  }
@@ -34,8 +39,8 @@ function folderNames(dir) {
34
39
  return [];
35
40
  }
36
41
  }
37
- function wantedLinks(repoRoot, shared) {
38
- const provided = new Set(folderNames(join(repoRoot, ".claude", "skills")));
42
+ function wantedLinks(repoRoot, shared, agents) {
43
+ const provided = new Set(folderNames(under(repoRoot, skillFolderOf(agents))));
39
44
  const wanted = /* @__PURE__ */ new Map();
40
45
  for (const name of folderNames(join(repoRoot, ".agents", "skills")).sort()) {
41
46
  if (provided.has(name) || shared.has(name)) continue;
@@ -43,8 +48,8 @@ function wantedLinks(repoRoot, shared) {
43
48
  }
44
49
  return wanted;
45
50
  }
46
- function holdsLinks(dir, wanted) {
47
- const skills = join(dir, ".claude", "skills");
51
+ function holdsLinks(dir, wanted, agents) {
52
+ const skills = under(dir, skillFolderOf(agents));
48
53
  let names;
49
54
  try {
50
55
  names = readdirSync(skills);
@@ -74,8 +79,8 @@ function removeMovedAside(path) {
74
79
  }
75
80
  }
76
81
  }
77
- function ensureOwnSkillsDir(input) {
78
- const wanted = wantedLinks(input.repoRoot, new Set(input.shared));
82
+ function ensureOwnSkillsDir(input, agents = defaultAgents()) {
83
+ const wanted = wantedLinks(input.repoRoot, new Set(input.shared), agents);
79
84
  if (wanted.size === 0) return void 0;
80
85
  const root = ownSkillsRoot(input.home);
81
86
  mkdirSync(root, { recursive: true });
@@ -89,13 +94,13 @@ function ensureOwnSkillsDir(input) {
89
94
  `);
90
95
  renameSync(temporary2, record);
91
96
  };
92
- if (holdsLinks(final, wanted)) {
97
+ if (holdsLinks(final, wanted, agents)) {
93
98
  if (!existsSync(record)) writeRecord();
94
99
  return final;
95
100
  }
96
101
  const temporary = join(root, `.tmp-${randomBytes(6).toString("hex")}`);
97
- mkdirSync(join(temporary, ".claude", "skills"), { recursive: true });
98
- for (const [name, target] of wanted) symlinkSync(target, join(temporary, ".claude", "skills", name));
102
+ mkdirSync(under(temporary, skillFolderOf(agents)), { recursive: true });
103
+ for (const [name, target] of wanted) symlinkSync(target, join(under(temporary, skillFolderOf(agents)), name));
99
104
  try {
100
105
  for (let attempt = 0; attempt < REPLACE_ATTEMPTS; attempt += 1) {
101
106
  try {
@@ -103,7 +108,7 @@ function ensureOwnSkillsDir(input) {
103
108
  writeRecord();
104
109
  return final;
105
110
  } catch {
106
- if (holdsLinks(final, wanted)) {
111
+ if (holdsLinks(final, wanted, agents)) {
107
112
  writeRecord();
108
113
  return final;
109
114
  }
@@ -338,7 +343,7 @@ async function runClaudeLauncher(args, deps = {}) {
338
343
  return 1;
339
344
  }
340
345
  } else {
341
- const { resolveLaunchPlane } = await import('./control-plane-launch-UWFQWMWB.js');
346
+ const { resolveLaunchPlane } = await import('./control-plane-launch-THUH6YU5.js');
342
347
  const plane = env[GOVERNANCE_VARIABLE] === "self" ? { kind: "none" } : await resolveLaunchPlane({ cwd, env, home, fetchImpl: deps.fetchImpl, stderr });
343
348
  if (plane.kind === "none") {
344
349
  const own2 = ownSkillsDirFor(cwd, home, [], stderr);