agents-inc 0.161.1 → 0.163.0

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 (343) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/{chunk-DOQUAWL4.js → chunk-3CSK5CQN.js} +17 -16
  3. package/dist/chunk-3CSK5CQN.js.map +1 -0
  4. package/dist/{chunk-VFZF7LVY.js → chunk-3WVH2CTK.js} +3 -3
  5. package/dist/{chunk-SBL4AYSB.js → chunk-4VL3CEOS.js} +3 -3
  6. package/dist/{chunk-QM3ZNOWJ.js → chunk-6MV4JOCL.js} +2 -2
  7. package/dist/{chunk-ADSIYZGS.js → chunk-7ANJQLPJ.js} +2 -2
  8. package/dist/{chunk-3JDVBHWO.js → chunk-7REKOTKG.js} +2 -2
  9. package/dist/{chunk-MI7LKLD7.js → chunk-ABAZMMG4.js} +2 -2
  10. package/dist/{chunk-2P3MKX5Q.js → chunk-AOTCIUGX.js} +2 -2
  11. package/dist/{chunk-GUFRQJAE.js → chunk-ARYNOWKF.js} +8 -8
  12. package/dist/{chunk-3QBOVV6A.js → chunk-AVK2HEKB.js} +5 -5
  13. package/dist/{chunk-3QBOVV6A.js.map → chunk-AVK2HEKB.js.map} +1 -1
  14. package/dist/{chunk-Z56AUTER.js → chunk-B3Y3QMWI.js} +4 -4
  15. package/dist/{chunk-WDN4HAN7.js → chunk-DSL66I4N.js} +6 -6
  16. package/dist/{chunk-SXYFATQN.js → chunk-ECURHW3T.js} +12 -12
  17. package/dist/{chunk-TPRRWOHZ.js → chunk-FLW25ORT.js} +3 -3
  18. package/dist/{chunk-YC4CLTQE.js → chunk-IAVEMTN4.js} +35 -14
  19. package/dist/chunk-IAVEMTN4.js.map +1 -0
  20. package/dist/{chunk-F5JTW3HZ.js → chunk-JIERYE6B.js} +5 -5
  21. package/dist/{chunk-UE3MLDL2.js → chunk-K5ITEA3I.js} +4 -4
  22. package/dist/{chunk-Q4KCUR2T.js → chunk-LT5GXEB2.js} +6 -6
  23. package/dist/{chunk-C2K7Q7HO.js → chunk-NKGYKOB7.js} +3 -3
  24. package/dist/{chunk-X6KXPRKI.js → chunk-NQXO4LR3.js} +4 -4
  25. package/dist/{chunk-7ZFEZN4Y.js → chunk-NTF4UXGK.js} +71 -9
  26. package/dist/{chunk-7ZFEZN4Y.js.map → chunk-NTF4UXGK.js.map} +1 -1
  27. package/dist/{chunk-IAN7QDBR.js → chunk-O664ITBD.js} +108 -25
  28. package/dist/chunk-O664ITBD.js.map +1 -0
  29. package/dist/{chunk-77YZFVQD.js → chunk-PHCPUQVR.js} +2 -2
  30. package/dist/{chunk-U5O4BWKI.js → chunk-PM3374E7.js} +43 -41
  31. package/dist/chunk-PM3374E7.js.map +1 -0
  32. package/dist/{chunk-ESI3JYOQ.js → chunk-Q4IRRVXK.js} +3 -3
  33. package/dist/{chunk-EN5MEPAS.js → chunk-QGUP3QJF.js} +5 -5
  34. package/dist/{chunk-MSUTHS2V.js → chunk-QZX7SYKU.js} +2 -2
  35. package/dist/{chunk-ZPFM2VHZ.js → chunk-RGYDFBCT.js} +4 -4
  36. package/dist/{chunk-4NAWM4OQ.js → chunk-S63LXWMC.js} +2 -2
  37. package/dist/{chunk-QTLYSVYE.js → chunk-SMSB6YZW.js} +3 -3
  38. package/dist/{chunk-IV42Z63R.js → chunk-UITEKY2R.js} +19 -9
  39. package/dist/chunk-UITEKY2R.js.map +1 -0
  40. package/dist/{chunk-SWYV7QXX.js → chunk-URXIQE7I.js} +2 -2
  41. package/dist/{chunk-ZYXQUU2P.js → chunk-V5GLL2JB.js} +7 -7
  42. package/dist/{chunk-JEJJHRZA.js → chunk-X4SSJZLY.js} +77 -8
  43. package/dist/chunk-X4SSJZLY.js.map +1 -0
  44. package/dist/{chunk-QG4NRKZD.js → chunk-XATLUKXK.js} +5 -5
  45. package/dist/{chunk-RLSZWDTB.js → chunk-XHPWTL4I.js} +3 -3
  46. package/dist/{chunk-7WKNPDN2.js → chunk-XPDVAJDH.js} +112 -32
  47. package/dist/chunk-XPDVAJDH.js.map +1 -0
  48. package/dist/{chunk-FL2CJ5T5.js → chunk-YRS3QZP2.js} +3 -3
  49. package/dist/{chunk-FXL63LDL.js → chunk-ZVXGW2IC.js} +2 -2
  50. package/dist/commands/build/marketplace.js +7 -7
  51. package/dist/commands/build/plugins.js +7 -7
  52. package/dist/commands/compile.js +82 -30
  53. package/dist/commands/compile.js.map +1 -1
  54. package/dist/commands/doctor.js +10 -10
  55. package/dist/commands/doctor.js.map +1 -1
  56. package/dist/commands/edit.js +40 -38
  57. package/dist/commands/edit.js.map +1 -1
  58. package/dist/commands/eject.js +10 -10
  59. package/dist/commands/init.js +36 -36
  60. package/dist/commands/list.js +8 -8
  61. package/dist/commands/new/marketplace.js +7 -7
  62. package/dist/commands/search.js +15 -14
  63. package/dist/commands/search.js.map +1 -1
  64. package/dist/commands/share.js +22 -16
  65. package/dist/commands/share.js.map +1 -1
  66. package/dist/commands/uninstall.js +11 -11
  67. package/dist/commands/update.js +6 -6
  68. package/dist/components/common/removal-plan-confirm.js +2 -2
  69. package/dist/components/common/select-list.js +2 -2
  70. package/dist/components/wizard/category-grid.js +4 -4
  71. package/dist/components/wizard/checkbox-grid.js +4 -4
  72. package/dist/components/wizard/domain-selection.js +9 -9
  73. package/dist/components/wizard/run-wizard-session.js +26 -26
  74. package/dist/components/wizard/scroll-affordance.js +2 -2
  75. package/dist/components/wizard/skill-agent-summary.js +5 -5
  76. package/dist/components/wizard/source-grid.js +5 -5
  77. package/dist/components/wizard/stack-selection.js +7 -7
  78. package/dist/components/wizard/step-agents.js +8 -8
  79. package/dist/components/wizard/step-build.js +7 -7
  80. package/dist/components/wizard/step-confirm.js +9 -9
  81. package/dist/components/wizard/step-sources.js +8 -8
  82. package/dist/components/wizard/step-stack.js +8 -8
  83. package/dist/components/wizard/summary-panel.js +8 -8
  84. package/dist/components/wizard/toast.js +2 -2
  85. package/dist/components/wizard/wizard-layout.js +12 -12
  86. package/dist/components/wizard/wizard-tabs.js +2 -2
  87. package/dist/components/wizard/wizard.js +25 -25
  88. package/dist/hooks/init.js +36 -36
  89. package/dist/load-agent-defs-5J2MZLAA.js +13 -0
  90. package/dist/recompile-project-agents-FCJLHAE3.js +17 -0
  91. package/dist/{source-loader-7T754EZC.js → source-loader-GRBVNRAW.js} +4 -4
  92. package/dist/src/agents/_templates/agent.liquid +30 -122
  93. package/dist/src/agents/_templates/methodologies/operating-principles.liquid +27 -0
  94. package/dist/src/agents/developer/ai-developer/critical-reminders.md +9 -48
  95. package/dist/src/agents/developer/ai-developer/critical-requirements.md +29 -47
  96. package/dist/src/agents/developer/ai-developer/identity.md +31 -40
  97. package/dist/src/agents/developer/ai-developer/output.md +92 -245
  98. package/dist/src/agents/developer/ai-developer/playbook.md +116 -270
  99. package/dist/src/agents/developer/api-developer/critical-reminders.md +9 -40
  100. package/dist/src/agents/developer/api-developer/critical-requirements.md +19 -34
  101. package/dist/src/agents/developer/api-developer/identity.md +18 -33
  102. package/dist/src/agents/developer/api-developer/output.md +118 -255
  103. package/dist/src/agents/developer/api-developer/playbook.md +103 -284
  104. package/dist/src/agents/developer/cli-developer/critical-reminders.md +9 -45
  105. package/dist/src/agents/developer/cli-developer/critical-requirements.md +21 -39
  106. package/dist/src/agents/developer/cli-developer/identity.md +22 -36
  107. package/dist/src/agents/developer/cli-developer/output.md +72 -185
  108. package/dist/src/agents/developer/cli-developer/playbook.md +107 -307
  109. package/dist/src/agents/developer/web-developer/critical-reminders.md +9 -34
  110. package/dist/src/agents/developer/web-developer/critical-requirements.md +11 -30
  111. package/dist/src/agents/developer/web-developer/identity.md +15 -15
  112. package/dist/src/agents/developer/web-developer/output.md +67 -220
  113. package/dist/src/agents/developer/web-developer/playbook.md +93 -283
  114. package/dist/src/agents/meta/agent-summoner/critical-reminders.md +6 -39
  115. package/dist/src/agents/meta/agent-summoner/critical-requirements.md +6 -44
  116. package/dist/src/agents/meta/agent-summoner/identity.md +20 -23
  117. package/dist/src/agents/meta/agent-summoner/metadata.yaml +1 -1
  118. package/dist/src/agents/meta/agent-summoner/output.md +85 -261
  119. package/dist/src/agents/meta/agent-summoner/playbook.md +220 -1398
  120. package/dist/src/agents/meta/codex-keeper/critical-reminders.md +11 -32
  121. package/dist/src/agents/meta/codex-keeper/critical-requirements.md +32 -22
  122. package/dist/src/agents/meta/codex-keeper/identity.md +31 -32
  123. package/dist/src/agents/meta/codex-keeper/output.md +49 -335
  124. package/dist/src/agents/meta/codex-keeper/playbook.md +151 -1112
  125. package/dist/src/agents/meta/convention-keeper/critical-reminders.md +11 -26
  126. package/dist/src/agents/meta/convention-keeper/critical-requirements.md +36 -25
  127. package/dist/src/agents/meta/convention-keeper/identity.md +35 -21
  128. package/dist/src/agents/meta/convention-keeper/metadata.yaml +1 -1
  129. package/dist/src/agents/meta/convention-keeper/output.md +33 -123
  130. package/dist/src/agents/meta/convention-keeper/playbook.md +64 -144
  131. package/dist/src/agents/meta/skill-summoner/critical-reminders.md +8 -71
  132. package/dist/src/agents/meta/skill-summoner/critical-requirements.md +9 -73
  133. package/dist/src/agents/meta/skill-summoner/identity.md +18 -22
  134. package/dist/src/agents/meta/skill-summoner/metadata.yaml +1 -1
  135. package/dist/src/agents/meta/skill-summoner/output.md +164 -270
  136. package/dist/src/agents/meta/skill-summoner/playbook.md +150 -1398
  137. package/dist/src/agents/planning/pm/critical-requirements.md +23 -25
  138. package/dist/src/agents/planning/pm/identity.md +24 -23
  139. package/dist/src/agents/planning/pm/output.md +5 -9
  140. package/dist/src/agents/planning/pm/playbook.md +50 -140
  141. package/dist/src/agents/researcher/ai-researcher/critical-reminders.md +8 -53
  142. package/dist/src/agents/researcher/ai-researcher/critical-requirements.md +31 -26
  143. package/dist/src/agents/researcher/ai-researcher/identity.md +36 -77
  144. package/dist/src/agents/researcher/ai-researcher/output.md +44 -151
  145. package/dist/src/agents/researcher/ai-researcher/playbook.md +130 -394
  146. package/dist/src/agents/researcher/api-researcher/critical-reminders.md +6 -38
  147. package/dist/src/agents/researcher/api-researcher/critical-requirements.md +15 -17
  148. package/dist/src/agents/researcher/api-researcher/identity.md +29 -63
  149. package/dist/src/agents/researcher/api-researcher/output.md +61 -153
  150. package/dist/src/agents/researcher/api-researcher/playbook.md +63 -140
  151. package/dist/src/agents/researcher/cli-researcher/critical-reminders.md +8 -45
  152. package/dist/src/agents/researcher/cli-researcher/critical-requirements.md +29 -24
  153. package/dist/src/agents/researcher/cli-researcher/identity.md +36 -78
  154. package/dist/src/agents/researcher/cli-researcher/output.md +22 -128
  155. package/dist/src/agents/researcher/cli-researcher/playbook.md +108 -263
  156. package/dist/src/agents/researcher/web-researcher/critical-reminders.md +5 -34
  157. package/dist/src/agents/researcher/web-researcher/critical-requirements.md +11 -16
  158. package/dist/src/agents/researcher/web-researcher/identity.md +28 -60
  159. package/dist/src/agents/researcher/web-researcher/output.md +41 -134
  160. package/dist/src/agents/researcher/web-researcher/playbook.md +48 -162
  161. package/dist/src/agents/reviewer/reviewer/critical-reminders.md +9 -22
  162. package/dist/src/agents/reviewer/reviewer/critical-requirements.md +24 -19
  163. package/dist/src/agents/reviewer/reviewer/identity.md +23 -20
  164. package/dist/src/agents/reviewer/reviewer/metadata.yaml +7 -2
  165. package/dist/src/agents/reviewer/reviewer/output.md +8 -26
  166. package/dist/src/agents/reviewer/reviewer/playbook.md +50 -91
  167. package/dist/src/agents/tester/ai-tester/critical-reminders.md +7 -40
  168. package/dist/src/agents/tester/ai-tester/critical-requirements.md +39 -31
  169. package/dist/src/agents/tester/ai-tester/identity.md +25 -40
  170. package/dist/src/agents/tester/ai-tester/output.md +8 -144
  171. package/dist/src/agents/tester/ai-tester/playbook.md +28 -40
  172. package/dist/src/agents/tester/api-tester/critical-reminders.md +8 -35
  173. package/dist/src/agents/tester/api-tester/critical-requirements.md +36 -25
  174. package/dist/src/agents/tester/api-tester/identity.md +18 -29
  175. package/dist/src/agents/tester/api-tester/metadata.yaml +1 -1
  176. package/dist/src/agents/tester/api-tester/output.md +3 -86
  177. package/dist/src/agents/tester/api-tester/playbook.md +10 -2
  178. package/dist/src/agents/tester/cli-tester/critical-reminders.md +7 -30
  179. package/dist/src/agents/tester/cli-tester/critical-requirements.md +29 -21
  180. package/dist/src/agents/tester/cli-tester/identity.md +25 -33
  181. package/dist/src/agents/tester/cli-tester/output.md +13 -105
  182. package/dist/src/agents/tester/cli-tester/playbook.md +8 -5
  183. package/dist/src/agents/tester/web-tester/critical-reminders.md +7 -25
  184. package/dist/src/agents/tester/web-tester/critical-requirements.md +25 -16
  185. package/dist/src/agents/tester/web-tester/identity.md +24 -30
  186. package/dist/src/agents/tester/web-tester/output.md +11 -116
  187. package/dist/src/agents/tester/web-tester/playbook.md +58 -221
  188. package/dist/stores/wizard-store.js +4 -4
  189. package/package.json +2 -2
  190. package/src/agents/_templates/agent.liquid +30 -122
  191. package/src/agents/_templates/methodologies/operating-principles.liquid +27 -0
  192. package/src/agents/developer/ai-developer/critical-reminders.md +9 -48
  193. package/src/agents/developer/ai-developer/critical-requirements.md +29 -47
  194. package/src/agents/developer/ai-developer/identity.md +31 -40
  195. package/src/agents/developer/ai-developer/output.md +92 -245
  196. package/src/agents/developer/ai-developer/playbook.md +116 -270
  197. package/src/agents/developer/api-developer/critical-reminders.md +9 -40
  198. package/src/agents/developer/api-developer/critical-requirements.md +19 -34
  199. package/src/agents/developer/api-developer/identity.md +18 -33
  200. package/src/agents/developer/api-developer/output.md +118 -255
  201. package/src/agents/developer/api-developer/playbook.md +103 -284
  202. package/src/agents/developer/cli-developer/critical-reminders.md +9 -45
  203. package/src/agents/developer/cli-developer/critical-requirements.md +21 -39
  204. package/src/agents/developer/cli-developer/identity.md +22 -36
  205. package/src/agents/developer/cli-developer/output.md +72 -185
  206. package/src/agents/developer/cli-developer/playbook.md +107 -307
  207. package/src/agents/developer/web-developer/critical-reminders.md +9 -34
  208. package/src/agents/developer/web-developer/critical-requirements.md +11 -30
  209. package/src/agents/developer/web-developer/identity.md +15 -15
  210. package/src/agents/developer/web-developer/output.md +67 -220
  211. package/src/agents/developer/web-developer/playbook.md +93 -283
  212. package/src/agents/meta/agent-summoner/critical-reminders.md +6 -39
  213. package/src/agents/meta/agent-summoner/critical-requirements.md +6 -44
  214. package/src/agents/meta/agent-summoner/identity.md +20 -23
  215. package/src/agents/meta/agent-summoner/metadata.yaml +1 -1
  216. package/src/agents/meta/agent-summoner/output.md +85 -261
  217. package/src/agents/meta/agent-summoner/playbook.md +220 -1398
  218. package/src/agents/meta/codex-keeper/critical-reminders.md +11 -32
  219. package/src/agents/meta/codex-keeper/critical-requirements.md +32 -22
  220. package/src/agents/meta/codex-keeper/identity.md +31 -32
  221. package/src/agents/meta/codex-keeper/output.md +49 -335
  222. package/src/agents/meta/codex-keeper/playbook.md +151 -1112
  223. package/src/agents/meta/convention-keeper/critical-reminders.md +11 -26
  224. package/src/agents/meta/convention-keeper/critical-requirements.md +36 -25
  225. package/src/agents/meta/convention-keeper/identity.md +35 -21
  226. package/src/agents/meta/convention-keeper/metadata.yaml +1 -1
  227. package/src/agents/meta/convention-keeper/output.md +33 -123
  228. package/src/agents/meta/convention-keeper/playbook.md +64 -144
  229. package/src/agents/meta/skill-summoner/critical-reminders.md +8 -71
  230. package/src/agents/meta/skill-summoner/critical-requirements.md +9 -73
  231. package/src/agents/meta/skill-summoner/identity.md +18 -22
  232. package/src/agents/meta/skill-summoner/metadata.yaml +1 -1
  233. package/src/agents/meta/skill-summoner/output.md +164 -270
  234. package/src/agents/meta/skill-summoner/playbook.md +150 -1398
  235. package/src/agents/planning/pm/critical-requirements.md +23 -25
  236. package/src/agents/planning/pm/identity.md +24 -23
  237. package/src/agents/planning/pm/output.md +5 -9
  238. package/src/agents/planning/pm/playbook.md +50 -140
  239. package/src/agents/researcher/ai-researcher/critical-reminders.md +8 -53
  240. package/src/agents/researcher/ai-researcher/critical-requirements.md +31 -26
  241. package/src/agents/researcher/ai-researcher/identity.md +36 -77
  242. package/src/agents/researcher/ai-researcher/output.md +44 -151
  243. package/src/agents/researcher/ai-researcher/playbook.md +130 -394
  244. package/src/agents/researcher/api-researcher/critical-reminders.md +6 -38
  245. package/src/agents/researcher/api-researcher/critical-requirements.md +15 -17
  246. package/src/agents/researcher/api-researcher/identity.md +29 -63
  247. package/src/agents/researcher/api-researcher/output.md +61 -153
  248. package/src/agents/researcher/api-researcher/playbook.md +63 -140
  249. package/src/agents/researcher/cli-researcher/critical-reminders.md +8 -45
  250. package/src/agents/researcher/cli-researcher/critical-requirements.md +29 -24
  251. package/src/agents/researcher/cli-researcher/identity.md +36 -78
  252. package/src/agents/researcher/cli-researcher/output.md +22 -128
  253. package/src/agents/researcher/cli-researcher/playbook.md +108 -263
  254. package/src/agents/researcher/web-researcher/critical-reminders.md +5 -34
  255. package/src/agents/researcher/web-researcher/critical-requirements.md +11 -16
  256. package/src/agents/researcher/web-researcher/identity.md +28 -60
  257. package/src/agents/researcher/web-researcher/output.md +41 -134
  258. package/src/agents/researcher/web-researcher/playbook.md +48 -162
  259. package/src/agents/reviewer/reviewer/critical-reminders.md +9 -22
  260. package/src/agents/reviewer/reviewer/critical-requirements.md +24 -19
  261. package/src/agents/reviewer/reviewer/identity.md +23 -20
  262. package/src/agents/reviewer/reviewer/metadata.yaml +7 -2
  263. package/src/agents/reviewer/reviewer/output.md +8 -26
  264. package/src/agents/reviewer/reviewer/playbook.md +50 -91
  265. package/src/agents/tester/ai-tester/critical-reminders.md +7 -40
  266. package/src/agents/tester/ai-tester/critical-requirements.md +39 -31
  267. package/src/agents/tester/ai-tester/identity.md +25 -40
  268. package/src/agents/tester/ai-tester/output.md +8 -144
  269. package/src/agents/tester/ai-tester/playbook.md +28 -40
  270. package/src/agents/tester/api-tester/critical-reminders.md +8 -35
  271. package/src/agents/tester/api-tester/critical-requirements.md +36 -25
  272. package/src/agents/tester/api-tester/identity.md +18 -29
  273. package/src/agents/tester/api-tester/metadata.yaml +1 -1
  274. package/src/agents/tester/api-tester/output.md +3 -86
  275. package/src/agents/tester/api-tester/playbook.md +10 -2
  276. package/src/agents/tester/cli-tester/critical-reminders.md +7 -30
  277. package/src/agents/tester/cli-tester/critical-requirements.md +29 -21
  278. package/src/agents/tester/cli-tester/identity.md +25 -33
  279. package/src/agents/tester/cli-tester/output.md +13 -105
  280. package/src/agents/tester/cli-tester/playbook.md +8 -5
  281. package/src/agents/tester/web-tester/critical-reminders.md +7 -25
  282. package/src/agents/tester/web-tester/critical-requirements.md +25 -16
  283. package/src/agents/tester/web-tester/identity.md +24 -30
  284. package/src/agents/tester/web-tester/output.md +11 -116
  285. package/src/agents/tester/web-tester/playbook.md +58 -221
  286. package/src/schemas/agent-frontmatter.schema.json +14 -0
  287. package/src/schemas/agent.schema.json +14 -0
  288. package/dist/chunk-7WKNPDN2.js.map +0 -1
  289. package/dist/chunk-DOQUAWL4.js.map +0 -1
  290. package/dist/chunk-IAN7QDBR.js.map +0 -1
  291. package/dist/chunk-IV42Z63R.js.map +0 -1
  292. package/dist/chunk-JEJJHRZA.js.map +0 -1
  293. package/dist/chunk-U5O4BWKI.js.map +0 -1
  294. package/dist/chunk-YC4CLTQE.js.map +0 -1
  295. package/dist/load-agent-defs-TWDFYM5S.js +0 -13
  296. package/dist/recompile-project-agents-YIGIVMCQ.js +0 -17
  297. package/dist/src/agents/_templates/methodologies/anti-over-engineering.liquid +0 -135
  298. package/dist/src/agents/_templates/methodologies/context-management.liquid +0 -15
  299. package/dist/src/agents/_templates/methodologies/improvement-protocol.liquid +0 -150
  300. package/dist/src/agents/_templates/methodologies/investigation-requirements.liquid +0 -61
  301. package/dist/src/agents/_templates/methodologies/success-criteria.liquid +0 -121
  302. package/dist/src/agents/_templates/methodologies/write-verification.liquid +0 -43
  303. package/dist/src/agents/planning/pm/critical-reminders.md +0 -39
  304. package/src/agents/_templates/methodologies/anti-over-engineering.liquid +0 -135
  305. package/src/agents/_templates/methodologies/context-management.liquid +0 -15
  306. package/src/agents/_templates/methodologies/improvement-protocol.liquid +0 -150
  307. package/src/agents/_templates/methodologies/investigation-requirements.liquid +0 -61
  308. package/src/agents/_templates/methodologies/success-criteria.liquid +0 -121
  309. package/src/agents/_templates/methodologies/write-verification.liquid +0 -43
  310. package/src/agents/planning/pm/critical-reminders.md +0 -39
  311. /package/dist/{chunk-VFZF7LVY.js.map → chunk-3WVH2CTK.js.map} +0 -0
  312. /package/dist/{chunk-SBL4AYSB.js.map → chunk-4VL3CEOS.js.map} +0 -0
  313. /package/dist/{chunk-QM3ZNOWJ.js.map → chunk-6MV4JOCL.js.map} +0 -0
  314. /package/dist/{chunk-ADSIYZGS.js.map → chunk-7ANJQLPJ.js.map} +0 -0
  315. /package/dist/{chunk-3JDVBHWO.js.map → chunk-7REKOTKG.js.map} +0 -0
  316. /package/dist/{chunk-MI7LKLD7.js.map → chunk-ABAZMMG4.js.map} +0 -0
  317. /package/dist/{chunk-2P3MKX5Q.js.map → chunk-AOTCIUGX.js.map} +0 -0
  318. /package/dist/{chunk-GUFRQJAE.js.map → chunk-ARYNOWKF.js.map} +0 -0
  319. /package/dist/{chunk-Z56AUTER.js.map → chunk-B3Y3QMWI.js.map} +0 -0
  320. /package/dist/{chunk-WDN4HAN7.js.map → chunk-DSL66I4N.js.map} +0 -0
  321. /package/dist/{chunk-SXYFATQN.js.map → chunk-ECURHW3T.js.map} +0 -0
  322. /package/dist/{chunk-TPRRWOHZ.js.map → chunk-FLW25ORT.js.map} +0 -0
  323. /package/dist/{chunk-F5JTW3HZ.js.map → chunk-JIERYE6B.js.map} +0 -0
  324. /package/dist/{chunk-UE3MLDL2.js.map → chunk-K5ITEA3I.js.map} +0 -0
  325. /package/dist/{chunk-Q4KCUR2T.js.map → chunk-LT5GXEB2.js.map} +0 -0
  326. /package/dist/{chunk-C2K7Q7HO.js.map → chunk-NKGYKOB7.js.map} +0 -0
  327. /package/dist/{chunk-X6KXPRKI.js.map → chunk-NQXO4LR3.js.map} +0 -0
  328. /package/dist/{chunk-77YZFVQD.js.map → chunk-PHCPUQVR.js.map} +0 -0
  329. /package/dist/{chunk-ESI3JYOQ.js.map → chunk-Q4IRRVXK.js.map} +0 -0
  330. /package/dist/{chunk-EN5MEPAS.js.map → chunk-QGUP3QJF.js.map} +0 -0
  331. /package/dist/{chunk-MSUTHS2V.js.map → chunk-QZX7SYKU.js.map} +0 -0
  332. /package/dist/{chunk-ZPFM2VHZ.js.map → chunk-RGYDFBCT.js.map} +0 -0
  333. /package/dist/{chunk-4NAWM4OQ.js.map → chunk-S63LXWMC.js.map} +0 -0
  334. /package/dist/{chunk-QTLYSVYE.js.map → chunk-SMSB6YZW.js.map} +0 -0
  335. /package/dist/{chunk-SWYV7QXX.js.map → chunk-URXIQE7I.js.map} +0 -0
  336. /package/dist/{chunk-ZYXQUU2P.js.map → chunk-V5GLL2JB.js.map} +0 -0
  337. /package/dist/{chunk-QG4NRKZD.js.map → chunk-XATLUKXK.js.map} +0 -0
  338. /package/dist/{chunk-RLSZWDTB.js.map → chunk-XHPWTL4I.js.map} +0 -0
  339. /package/dist/{chunk-FL2CJ5T5.js.map → chunk-YRS3QZP2.js.map} +0 -0
  340. /package/dist/{chunk-FXL63LDL.js.map → chunk-ZVXGW2IC.js.map} +0 -0
  341. /package/dist/{load-agent-defs-TWDFYM5S.js.map → load-agent-defs-5J2MZLAA.js.map} +0 -0
  342. /package/dist/{recompile-project-agents-YIGIVMCQ.js.map → recompile-project-agents-FCJLHAE3.js.map} +0 -0
  343. /package/dist/{source-loader-7T754EZC.js.map → source-loader-GRBVNRAW.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,48 @@ Each release has detailed notes in its own file under [`changelogs/`](./changelo
7
7
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
8
8
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9
9
 
10
+ ## [0.163.0] - 2026-09-04
11
+
12
+ **Every compiled sub-agent gets a slimmer, cacheable prompt and a deterministic completion gate, and a skill's own trigger sentence finally reaches the agent that loads it**
13
+
14
+ - A skill's own `usageGuidance` reaches the sub-agent that loads it, replacing a sentence derived from the category key. Two zod schemas were stripping the field, which is why the placeholder looked like the design — a stripped optional and an unstated one are the same value by two routes (CLI-872)
15
+ - The fleet is uniformly Opus 5 at 18 of 18, by owner ruling the other way round from the proposal. Two specs moved onto `config.ts` rather than staying green on a roster that can no longer discriminate (CLI-874)
16
+ - The `SKILL.md` budget number is gone rather than converted to tokens: the proposed figure was reachable by 0 of 238 skills where the old one flagged 42, and a threshold invites trimming to the number rather than to the job (CLI-876)
17
+ - A carried skill can no longer install itself over a catalogue id, writing its bytes into that skill's own directory while the run exits SUCCESS and `doctor` reports nothing. Three refusals — the loaded catalogue, the shipped catalogue no payload can move, and the disk (CLI-884)
18
+ - A global fan-out writes each registered project from that project's own catalogue instead of the triggering command's, ending a fight where the project's next `compile` undid the propagation. The parameter is deleted rather than corrected, so the defect is unrepresentable (CLI-888)
19
+ - Six methodology partials become one, the volatile skill list moves to a trailing block, and the provenance marker stops carrying the version — so a compiled agent's prompt prefix is byte-stable between invocations and across releases
20
+ - Every writing sub-agent stops against a `Stop` hook running the project's typecheck, composed with whatever hooks it declared rather than lost to them. Typecheck only, by ruling: lint and tests are the project's own judgement to gate on
21
+ - `isolation` and `experimental.cacheTtl` are supported end to end, emitted only when an agent declares them. No shipped agent carries either
22
+
23
+ See [changelogs/0.163.0.md](./changelogs/0.163.0.md) for full details.
24
+
25
+ ## [0.162.0] - 2026-09-03
26
+
27
+ **Every compiled sub-agent gains the Skill tool, text the CLI did not author reaches the terminal inert, and a refused share says what the store said**
28
+
29
+ - One sanitiser behind three chokepoints — `truncateText`, `getErrorMessage` and `formatZodIssue`. Newline and tab survive; escapes and CR do not, and stripping happens before truncation because a cut taken first leaves a fragment a terminal holds open. The census was wrong three times: the right one is keyed on which renderer foreign text funnels through, not on where it is printed (CLI-854)
30
+ - Exactly one request left the unit suite — a detached oclif child GETting the npm registry, which no in-process mock can see. The pin moves to `vitest.setup.ts`, where a process-wide variable naming no home belongs (CLI-870)
31
+ - A refused share quotes the store's own account, and suppresses a body equal to its own status's reason phrase from `node:http`'s `STATUS_CODES`. That is what makes it a rule rather than a hand-list: 413 and 429 needed no special case (CLI-855)
32
+ - `HTTP ${status}` stopped discarding a body that named the offending skill and sub-agent; the store's `message` is itself a JSON document, so the implementation parses one level further in (CLI-848)
33
+ - A contract mismatch and an out-of-date bundle are different refusals with different remedies, and only one is fixed by reloading. The 409 branch says which (CLI-852)
34
+ - The push hook runs lint and both suites for whichever side moved, in separate turbo invocations — deliberately, against a measurement: the concurrent form buys 4% and costs a 1-in-10 spurious red (CLI-863)
35
+ - Two reference documents stopped arguing for the state that change undid. A fifth defect site was found that the row did not name, and a sixth was a stale absence of exactly the class being repaired (CLI-867)
36
+ - A query outranks the domain tab rather than compounding with it, so a skill is findable by name without knowing which domain holds it (EDITOR-64)
37
+ - The editor refuses an unwritable configuration before the POST and names the rows to fix, rather than spending a write to be told no (CLI-851)
38
+ - The write-route double stopped minting what the worker refuses; making it parse was forbidden, because stripping unknown keys would grant `model`/`effort`-absent assertions for free (CLI-849)
39
+ - That double records what was SENT rather than what was accepted — recording only accepted bodies would let an empty-log assertion be satisfied by an app posting the very payload the guard exists to stop (CLI-861)
40
+ - The unit suite stops downloading a GitHub marketplace once per test — 31 tarballs a run, whose only symptom was a timeout that read as flake. 90s to 31s (CLI-853)
41
+ - A fixture at a fixed `os.tmpdir()` path gets a rule about who may write it, held against a walk of the tree: a fixed path belongs to the machine and not to the run (CLI-862)
42
+ - The family's second member repeated the first's silence; its proposed one-line fix was verified correct and deliberately not taken, because observing it requires mocking at the shared path that rule forbids (CLI-859)
43
+ - A record write made unconditional, so the checkout's bookkeeping cannot disagree with what is on disk (CLI-860)
44
+ - A spec directory's kind is stated rather than read off what currently sits in it. The first spec written under `e2e/fixtures/` had reddened four gates naming a journey row and a helper that had not moved (CLI-856)
45
+ - An over-long composer sentence is named rather than blamed on a model that was never called — three defects with two causes, including a rate limiter above the guard that refuses for free (EDITOR-69)
46
+ - Signing in stopped deleting the work it exists to preserve: a refused adoption keeps the local slot and names the scope conflict (EDITOR-67)
47
+ - And it stopped re-opening one save later. Both proposed remedies were refused by the code; what landed recomputes the reason from the write contract locally, without a request (EDITOR-73)
48
+ - The write-boundary refusal has now been watched failing. The empty request log is the claim — a guard that posted first and mapped the 400 back would produce identical words on the button (EDITOR-66)
49
+
50
+ See [changelogs/0.162.0.md](./changelogs/0.162.0.md) for full details.
51
+
10
52
  ## [0.161.1] - 2026-09-01
11
53
 
12
54
  **The editor's address gains the path that reaches it, and the two assertions that were green on its absence now derive it**
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  SelectList
4
- } from "./chunk-3JDVBHWO.js";
4
+ } from "./chunk-7REKOTKG.js";
5
5
  import {
6
6
  openUrl
7
- } from "./chunk-ADSIYZGS.js";
7
+ } from "./chunk-7ANJQLPJ.js";
8
8
  import {
9
9
  runWizardSession
10
- } from "./chunk-ZPFM2VHZ.js";
10
+ } from "./chunk-RGYDFBCT.js";
11
11
  import {
12
12
  useTerminalDimensions
13
- } from "./chunk-GUFRQJAE.js";
13
+ } from "./chunk-ARYNOWKF.js";
14
14
  import {
15
15
  Spinner
16
16
  } from "./chunk-ZBPEFQ4G.js";
@@ -18,7 +18,7 @@ import {
18
18
  fetchSeedConfig,
19
19
  registerExternalSkills,
20
20
  writeExternalSkills
21
- } from "./chunk-JEJJHRZA.js";
21
+ } from "./chunk-X4SSJZLY.js";
22
22
  import {
23
23
  promptValue
24
24
  } from "./chunk-JCPANDNR.js";
@@ -26,24 +26,24 @@ import {
26
26
  compileAgentsAllScopes,
27
27
  loadSource,
28
28
  writeProjectConfig
29
- } from "./chunk-U5O4BWKI.js";
29
+ } from "./chunk-PM3374E7.js";
30
30
  import {
31
31
  copyLocalSkills,
32
32
  discoverInstalledSkills
33
- } from "./chunk-YC4CLTQE.js";
33
+ } from "./chunk-IAVEMTN4.js";
34
34
  import {
35
35
  loadAgentDefs
36
- } from "./chunk-QTLYSVYE.js";
36
+ } from "./chunk-SMSB6YZW.js";
37
37
  import {
38
38
  render
39
39
  } from "./chunk-JFLVEFFP.js";
40
40
  import {
41
41
  BaseCommand,
42
42
  EXIT_CODES
43
- } from "./chunk-F5JTW3HZ.js";
43
+ } from "./chunk-JIERYE6B.js";
44
44
  import {
45
45
  clearTerminalScreen
46
- } from "./chunk-77YZFVQD.js";
46
+ } from "./chunk-PHCPUQVR.js";
47
47
  import {
48
48
  INCOMPLETE_WORK_RECOVERY,
49
49
  INSTALL_MODE_DESCRIPTIONS,
@@ -73,7 +73,7 @@ import {
73
73
  skippedUnknownAgents,
74
74
  skippedUnknownSkills,
75
75
  warn
76
- } from "./chunk-7WKNPDN2.js";
76
+ } from "./chunk-XPDVAJDH.js";
77
77
  import {
78
78
  ASCII_LOGO,
79
79
  CLAUDE_DIR,
@@ -87,7 +87,7 @@ import {
87
87
  MAX_CONFIG_FILE_SIZE,
88
88
  STANDARD_FILES,
89
89
  editorConfigUrl
90
- } from "./chunk-IV42Z63R.js";
90
+ } from "./chunk-UITEKY2R.js";
91
91
 
92
92
  // src/cli/commands/init.tsx
93
93
  import "react";
@@ -477,9 +477,10 @@ var Init = class _Init extends BaseCommand {
477
477
  /**
478
478
  * Seats the catalogue entries the payload carries with it, or refuses the run.
479
479
  *
480
- * The refusal is `registerExternalSkills`' own — a carried skill asked for as a plugin, which
481
- * no marketplace serves — and is reported with this command's exit code for the same reason the
482
- * decode's is.
480
+ * The refusals are `registerExternalSkills`' own — a carried skill asked for as a plugin, which
481
+ * no marketplace serves, and a carried skill claiming an id the loaded catalogue already owns,
482
+ * whose bytes would be written over that catalogue's own copy — and are reported with this
483
+ * command's exit code for the same reason the decode's is.
483
484
  */
484
485
  registerExternalSkillsOrFail(payload, matrix, projectDir) {
485
486
  try {
@@ -824,4 +825,4 @@ export {
824
825
  Init,
825
826
  getDashboardData
826
827
  };
827
- //# sourceMappingURL=chunk-DOQUAWL4.js.map
828
+ //# sourceMappingURL=chunk-3CSK5CQN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/cli/commands/init.tsx","../src/cli/lib/permission-checker.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Flags, type Interfaces } from \"@oclif/core\";\nimport { Box, Text, useApp } from \"ink\";\nimport { render } from \"../components/render.js\";\n\nimport { BaseCommand } from \"../base-command.js\";\nimport { type WizardResultV2 } from \"../components/wizard/wizard.js\";\nimport { runWizardSession } from \"../components/wizard/run-wizard-session.js\";\nimport { useTerminalDimensions } from \"../components/hooks/use-terminal-dimensions.js\";\nimport { type SourceLoadResult } from \"../lib/loading/index.js\";\nimport {\n loadSource,\n loadAgentDefs,\n copyLocalSkills,\n writeProjectConfig,\n compileAgentsAllScopes,\n type CompilationResult,\n type SkillCopyResult,\n discoverInstalledSkills,\n} from \"../lib/operations/index.js\";\nimport { fetchSeedConfig } from \"../lib/seed/fetch-seed.js\";\nimport {\n registerExternalSkills,\n writeExternalSkills,\n type ExternalSkillInstall,\n} from \"../lib/seed/external-skills.js\";\nimport { seedToWizardResult, type SeedMapping } from \"../lib/seed/seed-to-wizard.js\";\nimport { getInstallationInfo } from \"../lib/plugins/plugin-info.js\";\nimport { loadProjectConfig } from \"../lib/configuration/project-config.js\";\nimport { resolveBranding } from \"../lib/configuration/config.js\";\nimport {\n type InstallMode,\n detectInstallation,\n detectGlobalInstallation,\n detectProjectInstallation,\n deriveInstallMode,\n resolveInstallPaths,\n buildAgentScopeMap,\n isHomeDirectory,\n INSTALL_MODE_LABELS,\n INSTALL_MODE_DESCRIPTIONS,\n} from \"../lib/installation/index.js\";\nimport { checkPermissions } from \"../lib/permission-checker.js\";\nimport {\n ASCII_LOGO,\n CLAUDE_SRC_DIR,\n CLI_INVOKE_COMMAND,\n DEFAULT_BRANDING,\n EDITOR_URL,\n EDIT_PROJECT_SETUP_FLAG,\n EJECT_SOURCE,\n STANDARD_FILES,\n editorConfigUrl,\n} from \"../consts.js\";\nimport { clearTerminalScreen } from \"../utils/terminal.js\";\nimport { SelectList, type SelectListItem } from \"../components/common/select-list.js\";\nimport { promptValue } from \"../components/common/prompt-confirm.js\";\nimport { Spinner } from \"../components/common/spinner.js\";\nimport { getErrorMessage } from \"../utils/errors.js\";\nimport { EXIT_CODES } from \"../lib/exit-codes.js\";\nimport { openUrl } from \"../utils/open-url.js\";\nimport type { AgentName, MergedSkillsMatrix, SkillScope } from \"../types/index.js\";\nimport { type StartupMessage } from \"../utils/logger.js\";\nimport {\n INCOMPLETE_WORK_RECOVERY,\n STATUS_MESSAGES,\n agentsNotCompiled,\n carriedSkillsWritten,\n globalScopedAgentsHint,\n initSucceeded,\n sharedConfigExistingInstall,\n sharedConfigGlobalInstall,\n skippedUnknownAgents,\n skippedUnknownSkills,\n} from \"../utils/messages.js\";\nimport type { SeedPayload } from \"@workspace/matrix/seed\";\n\nconst DASHBOARD_OPTIONS = [\n { label: \"Edit\", value: \"edit\" },\n { label: \"Compile\", value: \"compile\" },\n { label: \"Doctor\", value: \"doctor\" },\n { label: \"List\", value: \"list\" },\n] as const satisfies readonly SelectListItem<string>[];\n\n/** The commands offered by the project dashboard (single source: DASHBOARD_OPTIONS). */\nexport type DashboardCommand = (typeof DASHBOARD_OPTIONS)[number][\"value\"];\n\n/**\n * The dashboard's title: {@link ASCII_LOGO} for an installation resting on the shipped branding,\n * and the configured name in its place for one that white-labels it.\n *\n * **The logo gives way rather than sitting above the name, because it spells the shipped name.**\n * `branding.name` replaces a heading everywhere else it is read — every configured leg of\n * `commands/branding-name-reaches-headings` asserts {@link DEFAULT_BRANDING.NAME} is ABSENT — so\n * painting `AGENTS INC` in block capitals above `Northwind` would leave the vendor's name at the\n * most prominent surface the product has, which is the one thing white-labelling is for.\n *\n * The default path is untouched by construction: {@link resolveBranding} answers\n * {@link DEFAULT_BRANDING.NAME} for a configuration with no `branding` key, so an unbranded\n * install takes the logo arm. A configuration naming the shipped name explicitly takes it too —\n * it asked for the shipped name and gets the shipped presentation of it.\n */\nconst DashboardTitle: React.FC<{ name: string }> = ({ name }) =>\n name === DEFAULT_BRANDING.NAME ? <Text>{ASCII_LOGO}</Text> : <Text bold>{name}</Text>;\n\ntype DashboardProps = {\n /** Everything the screen paints, exactly as {@link formatDashboardText} is handed it. */\n data: DashboardData;\n onSelect: (command: DashboardCommand) => void;\n onCancel: () => void;\n};\n\nexport const Dashboard: React.FC<DashboardProps> = ({ data, onSelect, onCancel }) => {\n const { exit } = useApp();\n const { rows: terminalHeight } = useTerminalDimensions();\n\n return (\n <Box flexDirection=\"column\" height={terminalHeight}>\n <Box marginBottom={1}>\n <DashboardTitle name={data.name} />\n </Box>\n <Box marginBottom={1}>\n <Text>{dashboardCountLines(data).join(\"\\n\")}</Text>\n </Box>\n <SelectList\n items={DASHBOARD_OPTIONS}\n onSelect={(command) => {\n onSelect(command);\n exit();\n }}\n onCancel={() => {\n onCancel();\n exit();\n }}\n />\n </Box>\n );\n};\n\n/**\n * What this installation is, as the lines both dashboards paint between the title and the menu.\n *\n * **Shared because the two paths had diverged, not for reuse.** `showDashboard` branches on\n * `process.stdin.isTTY`, and only the text branch drew these — so the screen a person sits in\n * front of was less informative than the output they get by piping it, and no assertion could see\n * it, because each path was only ever compared against itself. One producer is what makes the two\n * unable to drift apart again.\n */\nexport function dashboardCountLines(data: DashboardData): string[] {\n const lines = [\n ` Skills: ${data.skillCount} installed`,\n ` Agents: ${data.agentCount} compiled`,\n ` Mode: ${INSTALL_MODE_LABELS[data.mode]}`,\n ];\n if (data.source) {\n lines.push(` Marketplace: ${data.source}`);\n }\n return lines;\n}\n\n/** Formats the dashboard summary as plain text lines (for non-interactive/test output). */\nexport function formatDashboardText(data: DashboardData): string {\n return [\n data.name,\n \"\",\n ...dashboardCountLines(data),\n \"\",\n ` [Edit] [Compile] [Doctor] [List]`,\n ].join(\"\\n\");\n}\n\n/**\n * Shows the project dashboard and returns the selected command (or null if cancelled).\n * In non-interactive environments (no TTY), prints the summary text and returns null.\n */\nexport async function showDashboard(\n projectDir: string,\n log?: (message: string) => void,\n): Promise<DashboardCommand | null> {\n const data = await getDashboardData(projectDir);\n\n // Non-interactive: print text summary and exit (CI, piped, tests)\n if (!process.stdin.isTTY) {\n const output = log ?? console.log;\n output(formatDashboardText(data));\n return null;\n }\n\n // First-wins resolution via promptValue; clearOnResolve repaints a clean\n // terminal before unmount (dashboard occupies the full height).\n const selectedCommand = await promptValue<DashboardCommand | null>(\n (resolve) => (\n <Dashboard\n data={data}\n onSelect={(command) => resolve(command)}\n onCancel={() => resolve(null)}\n />\n ),\n { onExit: null, clearOnResolve: true },\n );\n\n clearTerminalScreen();\n\n return selectedCommand;\n}\n\n/**\n * Why the dashboard is on screen.\n *\n * `\"init\"` — the user ran `cc init` in an already-installed directory. That is a request\n * to set this project up, so choosing Edit continues the setup: it must materialise the\n * project even if the wizard changes nothing.\n *\n * `\"standalone\"` — the bare `cc` dashboard. Edit is just an editor there; a pass with no\n * changes is an inspection and must leave the filesystem untouched.\n */\nexport type DashboardOrigin = \"init\" | \"standalone\";\n\n/** The extra argv a dashboard selection needs to carry its origin into the command. */\nfunction dashboardCommandArgv(command: DashboardCommand, origin: DashboardOrigin): string[] {\n if (command !== \"edit\" || origin !== \"init\") return [];\n return [`--${EDIT_PROJECT_SETUP_FLAG}`];\n}\n\n/**\n * Shared dashboard entry: when the project is already initialized, shows the\n * dashboard and runs the chosen command. Returns true when the project was\n * initialized (dashboard shown), false otherwise. Never exits the process —\n * callers decide (the init hook exits SUCCESS at its own call site).\n */\nexport async function runDashboardFlow(\n projectDir: string,\n config: Interfaces.Config,\n origin: DashboardOrigin,\n log?: (message: string) => void,\n): Promise<boolean> {\n const installation = await detectInstallation(projectDir);\n if (!installation) return false;\n\n const selectedCommand = await showDashboard(projectDir, log);\n if (selectedCommand) {\n await config.runCommand(selectedCommand, dashboardCommandArgv(selectedCommand, origin));\n }\n return true;\n}\n\n/**\n * What `init` decided to install, and the little each producer knows that the shared spine does\n * not. Keeping these on the value rather than branching on a flag downstream is what stops the\n * two paths growing separate copies of the install sequence.\n */\n/**\n * The marketplace this run was pointed at, as oclif hands it over.\n *\n * `marketplace` is a required key holding `string | undefined` rather than\n * `marketplace?: string` because that is what oclif produces: a non-required flag still gets\n * its key written on the parse result, set to `undefined` when it was not passed. Under\n * `exactOptionalPropertyTypes` the two are different types, and `?` would be describing a\n * producer that never omits the key.\n */\ntype SourceFlags = { marketplace: string | undefined };\n\ntype Selection = {\n result: WizardResultV2;\n sourceResult: SourceLoadResult;\n /**\n * The marketplace this selection was actually loaded from, which the shared spine records in\n * the written config. Carried on the value because a shared id may name one the command line\n * did not, and the install has to record where its skills really came from either way.\n */\n sourceFlags: SourceFlags;\n /** Whether a person is at the terminal, so the permission notice may wait for them. */\n interactive: boolean;\n /** What to say if the selection turns out to be empty — only the producer knows why it is. */\n emptyMessage: string;\n};\n\n/**\n * Whether a decoded selection would write anything into the user's own ~/.claude. Skills and\n * sub-agents are asked separately because either can be globally scoped on its own: a shared\n * configuration can pin every skill to the project and still send a sub-agent home, and the\n * reverse.\n */\nfunction writesGlobalContent(result: WizardResultV2): boolean {\n return (\n result.skills.some((skill) => skill.scope === \"global\") ||\n result.agentConfigs.some((agent) => agent.scope === \"global\")\n );\n}\n\n/**\n * Which marketplace a shared configuration installs from.\n *\n * A payload names the one its skills were fetched from, because a skill id carries whose skill it\n * is and never where that repository lives — so without the ref the load walks on to the default\n * public catalogue and installs a different repository's skill under the same id.\n *\n * `--marketplace` still outranks it: naming one is an instruction about THIS install, while the\n * payload's ref is a record of where the sharer's came from. A payload that names none leaves the\n * flag undefined, which puts the load back on the rungs it has always walked.\n */\nfunction sharedConfigSourceFlags(flags: SourceFlags, payload: SeedPayload): SourceFlags {\n return { marketplace: flags.marketplace ?? payload.marketplace };\n}\n\nexport default class Init extends BaseCommand {\n /**\n * The name this run prints itself under, resolved once on {@link install}'s spine because the\n * closing line is printed several calls below it. Same shape and same reason as `uninstall`'s\n * field: a plain `string` holding the shipped default rather than an optional every reader\n * would have to answer for.\n */\n private brandingName: string = DEFAULT_BRANDING.NAME;\n\n static summary = `Initialize ${DEFAULT_BRANDING.NAME} in this project`;\n static description =\n \"Interactive wizard to set up skills and agents. Supports Plugin Mode (native install) and Eject Mode (copy to .claude/).\";\n\n static examples = [\n {\n description: \"Start the setup wizard\",\n command: \"<%= config.bin %> <%= command.id %>\",\n },\n {\n description: \"Initialize from a custom marketplace\",\n command: \"<%= config.bin %> <%= command.id %> --marketplace github:org/marketplace\",\n },\n ];\n\n static flags = {\n marketplace: Flags.string({\n char: \"m\",\n description: \"Skills marketplace path or URL\",\n required: false,\n }),\n from: Flags.string({\n description: \"Install a configuration shared from agentsinc.sh by its id, without the wizard\",\n helpValue: \"<id>\",\n }),\n ui: Flags.boolean({\n description:\n \"Open agentsinc.sh/editor instead of the terminal — the id --from names, or the catalogue\",\n default: false,\n }),\n };\n\n /**\n * The command in two statements: do the work, then answer for it.\n *\n * {@link install} owns every path through the setup and returns however it likes; the exit\n * code is decided once, here, after the last of them. Deciding it inside would mean deciding\n * it at each of that method's endings, and an ending added later would inherit the exit-0\n * default silently — which is the defect this pair exists to close. `edit` is two statements\n * for the same reason.\n */\n async run(): Promise<void> {\n await this.install();\n this.exitIfWorkIncomplete();\n }\n\n /**\n * The editor, opened on whatever `--from` named — or on nothing when it named nothing.\n *\n * **One rule, both commands (owner ruling 2026-08-24): `--ui` opens the command's SUBJECT, and\n * `--from` is what supplies one.** `edit --ui` alone opens this installation because that is\n * `edit`'s subject; `init --ui` alone opens the catalogue because a fresh directory has none.\n * Given an id, either opens that id — which is what makes a shared configuration something a\n * recipient can look at rather than only apply blind.\n *\n * No publish happens here and none is needed. `edit --ui` mints an id because an installation\n * is not a configuration the store holds yet; an id already IS one, so this is\n * `editorConfigUrl` and nothing else — no network, no marketplace, no catalogue load.\n *\n * The link is PRINTED first and opened second. Over a pipe, in CI, and on a machine with no\n * desktop session there is no browser to be anybody's — a link nobody can copy is the whole\n * loss, so opening one is the convenience on top and a failure to open is a warning beside a\n * link that still works.\n */\n private async openEditor(id: string | undefined): Promise<void> {\n const url = id === undefined ? EDITOR_URL : editorConfigUrl(id);\n\n this.log(id === undefined ? `Build it at ${url}` : `Open it at ${url}`);\n if (id === undefined) {\n this.log(`Then install what it gives you with '${CLI_INVOKE_COMMAND} init --from <id>'.`);\n } else {\n this.log(`To install it here instead, run '${CLI_INVOKE_COMMAND} init --from ${id}'.`);\n }\n\n if (!process.stdin.isTTY) return;\n\n const opened = await openUrl(url);\n if (!opened.ok) this.warn(opened.error);\n }\n\n /**\n * One spine, two producers. The wizard and a shared id differ only in *where the selection\n * comes from* — everything after it (the empty guard, the install pipeline) is identical, so it\n * lives here once rather than being written twice and drifting.\n */\n private async install(): Promise<void> {\n const { flags } = await this.parse(Init);\n const projectDir = process.cwd();\n\n // Above `ensureConfigReadable`, and above every read below it, because this route touches no\n // installation at all. A config too broken to load must not stop someone reaching the other\n // front door, and an id somebody shared is not this directory's business either.\n if (flags.ui) return this.openEditor(flags.from);\n\n // Every route below reads the configs first — to show a dashboard, to refuse a shared id, or\n // to inline the global one. One that exists but cannot be read is recreated, not installed\n // over, and saying so here is what keeps the raw loader error off the screen.\n await this.ensureConfigReadable(projectDir);\n\n // Read once on the spine, because the closing line is printed several calls below it. The\n // degrade arm of `resolveBrandingName` cannot fire here: the line above has already refused\n // every config this would read.\n this.brandingName = await this.resolveBrandingName(projectDir);\n\n // Only a bare `init` is diverted to the dashboard. An id is an explicit instruction to install\n // *that* configuration, so it overrides an existing installation instead.\n if (!flags.from && (await this.showDashboardIfInitialized(projectDir))) return;\n\n const selection = flags.from\n ? await this.selectionFromSharedConfig(flags.from, flags, projectDir)\n : await this.selectionFromWizard(flags, projectDir);\n\n if (!selection) this.exit(EXIT_CODES.CANCELLED);\n\n // On the spine rather than in either producer: a broken constraint is a fact about the\n // selection, not about where it came from, and `edit` reports the same fact the same way\n // the moment the wizard hands it one. Both producers run the same validator over the same\n // matrix — the wizard over what was chosen, `--from` over what survived the decode — so\n // what is said here is this catalog's verdict either way.\n this.reportValidationErrors(selection.result.validation);\n\n // A sub-agent is installable on its own — it has front-matter, a prompt and a compiled file\n // without owning a single skill — so only a selection with neither is nothing to install.\n if (selection.result.skills.length === 0 && selection.result.selectedAgents.length === 0) {\n // The producer supplies the wording because only it knows why empty means what it means:\n // nothing chosen, versus a payload this catalog cannot install.\n this.error(selection.emptyMessage, { exit: EXIT_CODES.ERROR });\n }\n\n await this.handleInstallation(\n selection.result,\n selection.sourceResult,\n selection.sourceFlags,\n selection.interactive,\n );\n }\n\n /** The interactive producer: load the source, run the wizard, return what was chosen. */\n private async selectionFromWizard(\n flags: SourceFlags,\n projectDir: string,\n ): Promise<Selection | null> {\n // The blank global config is created by writeProjectConfig() once the\n // wizard succeeds, never before it renders: a cancelled init must leave no\n // artifact that the next run could mistake for an existing installation.\n const isGlobalRoot = isHomeDirectory(projectDir);\n\n const { sourceResult, startupMessages } = await this.loadWizardInputsUnderSpinner(flags);\n\n const result = await this.runWizard(startupMessages, isGlobalRoot);\n if (!result) return null;\n\n return {\n result,\n sourceResult,\n sourceFlags: flags,\n // A person is already at the terminal, so the permission notice can wait for them.\n interactive: true,\n emptyMessage: \"No skills selected\",\n };\n }\n\n /**\n * Everything the wizard needs, loaded behind a spinner that comes down whichever way the\n * await ends.\n *\n * The cleanup is a `finally` because a source that cannot be loaded refuses the run from\n * inside this await, and oclif would otherwise paint its error under an Ink tree still\n * repainting over it. Never a `catch`: the throw reaches oclif untouched, or both the\n * error rendering and the exit code change with it.\n */\n private async loadWizardInputsUnderSpinner(flags: SourceFlags): Promise<{\n sourceResult: SourceLoadResult;\n startupMessages: StartupMessage[];\n }> {\n const { unmount, clear: clearSpinner } = render(\n <Spinner label={STATUS_MESSAGES.LOADING_SKILLS} />,\n );\n try {\n return await this.loadSourceOrFail(flags);\n } finally {\n clearSpinner();\n unmount();\n }\n }\n\n /**\n * The `--from <id>` producer: fetch and map, no wizard. Nothing here may assume a TTY — running\n * headless is most of why the flag exists.\n *\n * It is also greenfield-only, which is what two of the three refusals are: a shared\n * configuration is installed whole, so anything it would have to install over has to be\n * uninstalled first. The third is about the LOCATION rather than what is already in it — a\n * global installation holds only global-scoped content, and this is the one producer that never\n * asked. All three fire before anything is written.\n */\n private async selectionFromSharedConfig(\n id: string,\n flags: SourceFlags,\n projectDir: string,\n ): Promise<Selection> {\n await this.refuseInstalledProject(projectDir);\n\n this.log(`Fetching configuration ${id}...`);\n const fetched = await fetchSeedConfig(id);\n if (!fetched.ok) {\n this.error(fetched.error, { exit: EXIT_CODES.ERROR });\n }\n\n const sourceFlags = sharedConfigSourceFlags(flags, fetched.payload);\n const { sourceResult } = await this.loadSourceOrFail(sourceFlags);\n // Before the decode, because a skill the payload CARRIES answers to no catalogue: unseated,\n // its id is skipped like any other unknown one and its content is never read.\n const carriedSkills = this.registerExternalSkillsOrFail(\n fetched.payload,\n sourceResult.matrix,\n projectDir,\n );\n const { result, skippedSkillIds, skippedAgentNames } = this.decodeSeedOrFail(\n fetched.payload,\n sourceResult.matrix,\n );\n\n // The location refusal is `BaseCommand`'s, because `edit --from` reaches the same\n // contradiction through the other door and an invariant enforced on one producer is enforced\n // nowhere. It runs before {@link refuseBlockingGlobalInstall} because it needs no filesystem\n // probe to answer: where the install root is, and what the payload said, is all of it.\n this.refuseProjectScopedContentAtHome(result, projectDir);\n await this.refuseBlockingGlobalInstall(result);\n\n // After the refusals and before the install: every refusal on this path fires with nothing\n // written, and the copy step that follows finds these skills already where they belong.\n await this.writeCarriedSkills(carriedSkills);\n\n // Named, not counted. \"3 skills were skipped\" cannot be acted on; the ids can, and this is the\n // one moment the user can tell whether what they shared is what they are getting. Worded once,\n // in `messages.ts`, because `edit --from` reports the same skips about the same wire.\n if (skippedSkillIds.length > 0) this.warn(skippedUnknownSkills(skippedSkillIds));\n if (skippedAgentNames.length > 0) this.warn(skippedUnknownAgents(skippedAgentNames));\n\n if (result.skills.length > 0) {\n this.log(\n `Installing ${result.skills.length} skill(s) across ${result.selectedAgents.length} sub-agent(s)\\n`,\n );\n }\n\n return {\n result,\n sourceResult,\n sourceFlags,\n interactive: false,\n emptyMessage: `Configuration '${id}' contains no skills this catalog can install.`,\n };\n }\n\n /**\n * Refuses to install a shared configuration into a directory that already has one.\n *\n * Project-scoped detection rather than `detectInstallation`, whose global fallback would refuse\n * every clean project on a machine with a global install — including for a payload that never\n * goes near it. Whether a global install is in the way is a question about the PAYLOAD, and\n * {@link refuseBlockingGlobalInstall} is where it is asked.\n *\n * This runs before the fetch: there is nothing to learn from the network about a directory that\n * is already spoken for.\n */\n private async refuseInstalledProject(projectDir: string): Promise<void> {\n const installation = await detectProjectInstallation(projectDir);\n if (!installation) return;\n\n this.error(sharedConfigExistingInstall(installation.configPath), { exit: EXIT_CODES.ERROR });\n }\n\n /**\n * The other half of the same rule. A payload carrying global-scoped skills or sub-agents writes\n * into the user's own ~/.claude, so an installation there is in its way even when this project\n * is spotless. A payload with nothing global cannot reach that far and is never refused for it.\n */\n private async refuseBlockingGlobalInstall(result: WizardResultV2): Promise<void> {\n if (!writesGlobalContent(result)) return;\n\n const globalInstallation = await detectGlobalInstallation();\n if (!globalInstallation) return;\n\n this.error(sharedConfigGlobalInstall(globalInstallation.configPath), {\n exit: EXIT_CODES.ERROR,\n });\n }\n\n /**\n * The decode refuses a payload the config model has nowhere to write (see `seedToWizardResult`).\n * That is a failure of this command, reported with this command's exit code rather than left to\n * surface as an unhandled throw.\n */\n private decodeSeedOrFail(payload: SeedPayload, matrix: MergedSkillsMatrix): SeedMapping {\n try {\n return seedToWizardResult(payload, matrix);\n } catch (error) {\n this.handleError(error);\n }\n }\n\n /**\n * Seats the catalogue entries the payload carries with it, or refuses the run.\n *\n * The refusals are `registerExternalSkills`' own — a carried skill asked for as a plugin, which\n * no marketplace serves, and a carried skill claiming an id the loaded catalogue already owns,\n * whose bytes would be written over that catalogue's own copy — and are reported with this\n * command's exit code for the same reason the decode's is.\n */\n private registerExternalSkillsOrFail(\n payload: SeedPayload,\n matrix: MergedSkillsMatrix,\n projectDir: string,\n ): ExternalSkillInstall[] {\n try {\n return registerExternalSkills(payload, matrix, projectDir);\n } catch (error) {\n this.handleError(error);\n }\n }\n\n /** Writes the skills the payload brought with it, and says which they were. */\n private async writeCarriedSkills(carried: ExternalSkillInstall[]): Promise<void> {\n if (carried.length === 0) return;\n\n await writeExternalSkills(carried);\n // Named rather than counted, like the skips: these are the entries no catalogue can explain,\n // so this line is the only place the user learns what arrived with the configuration itself.\n this.log(carriedSkillsWritten(carried.map((skill) => skill.id)));\n }\n\n private async showDashboardIfInitialized(projectDir: string): Promise<boolean> {\n return runDashboardFlow(projectDir, this.config, \"init\", (msg) => this.log(msg));\n }\n\n private async loadSourceOrFail(\n flags: SourceFlags,\n ): Promise<{ sourceResult: SourceLoadResult; startupMessages: StartupMessage[] }> {\n try {\n const loaded = await loadSource({\n // The one load that may CHOOSE a marketplace rather than read the stored one.\n caller: \"init\",\n ...(flags.marketplace !== undefined && { sourceFlag: flags.marketplace }),\n projectDir: process.cwd(),\n captureStartupMessages: true,\n });\n return { sourceResult: loaded.sourceResult, startupMessages: loaded.startupMessages };\n } catch (error) {\n this.error(getErrorMessage(error), {\n exit: EXIT_CODES.ERROR,\n });\n }\n }\n\n /**\n * `init`'s wizard opens on an empty selection, and can open on nothing else: it is reached\n * only once {@link showDashboardIfInitialized} has found no installation, and that check\n * falls back to the home directory — so a global roster to hydrate from would have diverted\n * this run to the dashboard before the wizard was built. Hydrating a saved selection is\n * `edit`'s job, and `Edit.runEditWizard` is where it happens.\n */\n private async runWizard(\n startupMessages: StartupMessage[],\n isGlobalRoot: boolean,\n ): Promise<WizardResultV2 | null> {\n return runWizardSession({\n hydrate: { isEditingFromGlobalScope: isGlobalRoot },\n props: {\n version: this.config.version,\n logo: ASCII_LOGO,\n startupMessages,\n },\n onCancel: () => this.log(\"Setup cancelled\"),\n clearTerminal: () => this.clearTerminal(),\n });\n }\n\n private async handleInstallation(\n result: WizardResultV2,\n sourceResult: SourceLoadResult,\n flags: SourceFlags,\n /**\n * Whether the caller can hold the terminal. The permission notice is an Ink app with no exit\n * of its own, so `waitUntilExit()` only ever resolves because a person is there to end it —\n * which is fine after the wizard and a hang everywhere else. `--from` sets this false: it has\n * to complete over a pipe and in CI.\n */\n interactive = true,\n ): Promise<void> {\n const projectDir = process.cwd();\n const activeSkills = result.skills.filter((s) => !s.excluded);\n const installMode = deriveInstallMode(activeSkills);\n const ejectedSkills = activeSkills.filter((s) => s.origin === EJECT_SOURCE);\n const pluginSkills = activeSkills.filter((s) => s.origin !== EJECT_SOURCE);\n\n this.logInstallPlan(installMode, ejectedSkills, pluginSkills);\n\n // Resolve marketplace up front — BEFORE any filesystem mutation. If\n // resolution fails in mixed mode, the hard-error must fire before\n // `copyEjectSkillsStep` copies anything to `.claude/skills/`, otherwise\n // we leave an orphaned half-install with no config.ts to recognise it.\n const resolvedMarketplace =\n pluginSkills.length > 0\n ? await this.requireMarketplaceOrExit(\n sourceResult,\n \"install plugin skills\",\n (marketplace) => this.log(`Registering marketplace \"${marketplace}\"...`),\n )\n : null;\n\n const copyResult =\n installMode === \"eject\" || installMode === \"mixed\"\n ? await this.copyEjectSkillsStep(ejectedSkills, projectDir, sourceResult, installMode)\n : null;\n\n if (resolvedMarketplace !== null) {\n await this.installPluginSkillsReported(\n pluginSkills,\n resolvedMarketplace,\n projectDir,\n sourceResult.matrix,\n );\n }\n // The shared install reporter hard-errors on any failure, so reaching here with\n // a resolved marketplace means plugin mode fully succeeded.\n const pluginModeSucceeded = resolvedMarketplace !== null;\n\n try {\n const { configResult, compileResult, agentScopeMap } = await this.writeConfigAndCompile(\n result,\n sourceResult,\n flags,\n );\n this.reportSuccess(\n configResult,\n compileResult,\n agentScopeMap,\n installMode,\n pluginModeSucceeded,\n copyResult,\n );\n\n await this.showPermissionNotice(projectDir, interactive);\n } catch (error) {\n this.handleError(error);\n }\n }\n\n /**\n * The permission notice, where there is one to show. It is an Ink app with no exit of its own,\n * so `waitUntilExit()` only ever resolves because a person is there to end it — which is fine\n * after the wizard and a hang everywhere else. Without a terminal to hold, one frame is\n * rendered and let go: the notice is information, not a prompt, so there is nothing to answer\n * and nothing to wait for.\n */\n private async showPermissionNotice(projectDir: string, interactive: boolean): Promise<void> {\n const permissionWarning = await checkPermissions(projectDir);\n if (!permissionWarning) return;\n\n if (!interactive) {\n const { unmount } = render(permissionWarning);\n unmount();\n return;\n }\n\n const { waitUntilExit } = render(permissionWarning);\n await waitUntilExit();\n }\n\n private logInstallPlan(\n installMode: InstallMode,\n ejectedSkills: WizardResultV2[\"skills\"],\n pluginSkills: WizardResultV2[\"skills\"],\n ): void {\n this.log(\"\\n\");\n this.log(`Selected ${ejectedSkills.length + pluginSkills.length} skills`);\n this.log(\n `Install mode: ${\n installMode === \"mixed\"\n ? `${INSTALL_MODE_LABELS.mixed} (${ejectedSkills.length} eject, ${pluginSkills.length} plugin)`\n : INSTALL_MODE_DESCRIPTIONS[installMode]\n }`,\n );\n }\n\n private async copyEjectSkillsStep(\n localSkills: WizardResultV2[\"skills\"],\n projectDir: string,\n sourceResult: SourceLoadResult,\n installMode: InstallMode,\n ): Promise<SkillCopyResult> {\n this.log(\"Copying skills to local directory...\");\n const copyResult = await copyLocalSkills(localSkills, projectDir, sourceResult);\n\n if (installMode === \"mixed\") {\n if (copyResult.projectCopied.length > 0 && copyResult.globalCopied.length > 0) {\n this.log(\n `Copied ${copyResult.totalCopied} local skills (${copyResult.projectCopied.length} project, ${copyResult.globalCopied.length} global)`,\n );\n } else if (copyResult.globalCopied.length > 0) {\n this.log(`Copied ${copyResult.globalCopied.length} local skills to ~/.claude/skills/`);\n } else {\n this.log(`Copied ${copyResult.projectCopied.length} local skills to .claude/skills/`);\n }\n } else {\n this.log(`Copied ${copyResult.totalCopied} skills to .claude/skills/\\n`);\n }\n\n return copyResult;\n }\n\n private async writeConfigAndCompile(\n result: WizardResultV2,\n sourceResult: SourceLoadResult,\n flags: SourceFlags,\n ): Promise<{\n configResult: Awaited<ReturnType<typeof writeProjectConfig>>;\n compileResult: CompilationResult;\n agentScopeMap: Map<AgentName, SkillScope>;\n }> {\n this.log(\"Generating configuration...\");\n const configResult = await writeProjectConfig({\n wizardResult: result,\n sourceResult,\n projectDir: process.cwd(),\n ...(flags.marketplace !== undefined && { sourceFlag: flags.marketplace }),\n });\n\n if (configResult.wasMerged) {\n this.log(`Merged with existing config at ${configResult.existingConfigPath}`);\n }\n\n this.log(`Configuration saved (${configResult.config.agents.length} agents)\\n`);\n this.reportUnassignedSkills(configResult.config);\n\n this.log(STATUS_MESSAGES.COMPILING_AGENTS);\n const cwd = process.cwd();\n const agentDefs = await loadAgentDefs();\n const { allSkills } = await discoverInstalledSkills(cwd);\n const agentScopeMap = buildAgentScopeMap(configResult.config);\n const compileResult = await compileAgentsAllScopes({\n projectDir: cwd,\n sourcePath: agentDefs.sourcePath,\n skills: allSkills,\n agentScopeMap,\n });\n this.reportCompilation(compileResult);\n\n this.reportPropagatedRecompile(configResult.propagation);\n\n return { configResult, compileResult, agentScopeMap };\n }\n\n /**\n * What the compile pass did, including the half this command used to drop.\n *\n * It read `compiled` and nothing else, so a pass that lost a sub-agent printed a number that\n * looked perfectly right — `compiled` counts successes, so it is correct either way — and the\n * failures reached no surface at all: no count, no reason, no exit code. A user's FIRST\n * install could silently land a roster missing a sub-agent.\n *\n * The compile is the last thing `init` does, so a failure here cannot be answered by aborting:\n * the skills are on disk and `config.ts` and `config-types.ts` describe them. What is owed is\n * the account, which {@link BaseCommand.exitIfWorkIncomplete} prints and answers for.\n */\n private reportCompilation(compileResult: CompilationResult): void {\n const { compiled, failed, warnings } = compileResult;\n const summary = `Compiled ${compiled.length} agents`;\n\n if (failed.length === 0) {\n this.log(`${summary}\\n`);\n return;\n }\n\n this.log(`${summary} (${failed.length} failed)\\n`);\n for (const warning of warnings) {\n this.warn(warning);\n }\n // Recorded off `failed` rather than off the warnings just printed: `warnings` also carries\n // entries that are not failures — a scope with nothing to compile contributes one on every\n // project-context run — and the ending must not file those as work owed.\n this.recordIncompleteWork(agentsNotCompiled(failed), INCOMPLETE_WORK_RECOVERY.RECOMPILE);\n }\n\n private reportSuccess(\n configResult: Awaited<ReturnType<typeof writeProjectConfig>>,\n compileResult: CompilationResult,\n agentScopeMap: Map<AgentName, SkillScope>,\n installMode: InstallMode,\n pluginModeSucceeded: boolean,\n copyResult: SkillCopyResult | null,\n ): void {\n // A run with work owed ends on the failure account instead — `initialized successfully!`\n // over a roster missing a sub-agent is the claim being withdrawn, not a line beside it.\n // Where the install landed is still reported below: that is what the account is about.\n if (!this.hasIncompleteWork) this.log(`${initSucceeded(this.brandingName)}\\n`);\n\n const isEjectOutput =\n installMode === \"eject\" || (installMode === \"mixed\" && !pluginModeSucceeded);\n if (isEjectOutput && copyResult && copyResult.totalCopied > 0) {\n this.reportSkillsCopied(copyResult);\n }\n this.reportAgentsCompiled(compileResult.compiled, agentScopeMap);\n this.reportConfiguration(configResult.configPath, agentScopeMap);\n }\n\n /**\n * Names the config that actually holds this install's assignments, and where a\n * recompile of them has to be run from.\n *\n * Split by the same `agentScopeMap` the two reporters above split on, because the\n * same scope decides both. A project config's `stack` is filtered down to\n * project-scoped agents on the way out, so a wholly GLOBAL install leaves it\n * carrying no assignment at all — naming it sends the user to a file with nothing\n * in it — and `compile` in this cwd runs the PROJECT pass, which recompiles no\n * global agent. At the home root both scopes resolve to one file and one pass, so\n * there is nothing to split and the project wording stands.\n */\n private reportConfiguration(\n projectConfigPath: string,\n agentScopeMap: Map<AgentName, SkillScope>,\n ): void {\n const cwd = process.cwd();\n const paths = {\n global: resolveInstallPaths(cwd, \"global\").configPath,\n project: projectConfigPath,\n };\n const split = splitAgentScopes(cwd, agentScopeMap);\n\n this.log(\"Configuration:\");\n for (const configPath of configsHoldingAssignments(split, paths)) {\n this.log(` ${configPath}`);\n }\n this.log(\"\");\n\n this.log(\"To customize agent-skill assignments:\");\n for (const [index, step] of customizationSteps(split, paths.global).entries()) {\n this.log(` ${index + 1}. ${step}`);\n }\n this.log(\"\");\n }\n\n /**\n * Reports where the skills actually landed. `copyLocalSkills` splits by scope,\n * so a default install driven from a project directory writes every skill\n * under HOME — reporting the project path there names a directory that was\n * never written.\n *\n * This block is a filesystem listing, so the entries are the on-disk directory\n * names — skill ids, not display names. `copySkillsToLocalFlattened` names each\n * destination directory after `skill.id`, so a user can copy any line and `cd`\n * into it.\n */\n private reportSkillsCopied(copyResult: SkillCopyResult): void {\n const cwd = process.cwd();\n const groups = isHomeDirectory(cwd)\n ? [\n {\n dir: resolveInstallPaths(cwd, \"project\").skillsDir,\n copied: [...copyResult.globalCopied, ...copyResult.projectCopied],\n },\n ]\n : [\n { dir: resolveInstallPaths(cwd, \"global\").skillsDir, copied: copyResult.globalCopied },\n { dir: resolveInstallPaths(cwd, \"project\").skillsDir, copied: copyResult.projectCopied },\n ].filter((group) => group.copied.length > 0);\n\n for (const group of groups) {\n this.log(\"Skills copied to:\");\n this.log(` ${group.dir}`);\n for (const copied of group.copied) {\n this.log(` ${copied.skillId}/`);\n }\n this.log(\"\");\n }\n }\n\n /**\n * Reports where the agents actually landed, mirroring the scope split\n * `compileAgentsAllScopes` performs: one pass at the home root, otherwise a\n * global pass under HOME and a project pass under the project directory.\n */\n private reportAgentsCompiled(\n compiled: AgentName[],\n agentScopeMap: Map<AgentName, SkillScope>,\n ): void {\n const cwd = process.cwd();\n const groups = isHomeDirectory(cwd)\n ? [{ dir: resolveInstallPaths(cwd, \"project\").agentsDir, agents: compiled }]\n : [\n {\n dir: resolveInstallPaths(cwd, \"global\").agentsDir,\n agents: compiled.filter((name) => agentScopeMap.get(name) === \"global\"),\n },\n {\n dir: resolveInstallPaths(cwd, \"project\").agentsDir,\n agents: compiled.filter((name) => agentScopeMap.get(name) !== \"global\"),\n },\n ].filter((group) => group.agents.length > 0);\n\n for (const group of groups) {\n this.log(\"Agents compiled to:\");\n this.log(` ${group.dir}`);\n for (const agentName of group.agents) {\n this.log(` ${agentName}.md`);\n }\n this.log(\"\");\n }\n }\n}\n\n/** The two config files an install can write, as the closing block refers to them. */\ntype ConfigPaths = { global: string; project: string };\n\n/** How this install's sub-agents fall across the two scopes, seen from the directory it ran in. */\ntype AgentScopeSplit = { globalAgentCount: number; isGlobalOnly: boolean };\n\n/**\n * At the home root the two scopes resolve to ONE config file and ONE compile pass, so there\n * is nothing to split and the split reports none — which is what leaves the project wording\n * standing there unchanged. Same fork `reportAgentsCompiled` makes over the same question.\n */\nfunction splitAgentScopes(cwd: string, agentScopeMap: Map<AgentName, SkillScope>): AgentScopeSplit {\n if (isHomeDirectory(cwd)) return { globalAgentCount: 0, isGlobalOnly: false };\n\n const scopes = [...agentScopeMap.values()];\n const globalAgentCount = scopes.filter((scope) => scope === \"global\").length;\n return {\n globalAgentCount,\n isGlobalOnly: globalAgentCount > 0 && globalAgentCount === scopes.length,\n };\n}\n\n/**\n * The config file(s) this install's assignments actually landed in. A wholly global install\n * has none in the project file — the writer filters its `stack` down to project-scoped\n * agents — so naming it would send the user to a file with nothing in it.\n */\nfunction configsHoldingAssignments(split: AgentScopeSplit, paths: ConfigPaths): string[] {\n if (split.isGlobalOnly) return [paths.global];\n if (split.globalAgentCount > 0) return [paths.global, paths.project];\n return [paths.project];\n}\n\n/**\n * What changing an assignment takes, in the order it takes it. The compile step is the half\n * that has to be scope-aware: `compile` run in a project directory performs the PROJECT pass\n * only, so it recompiles no global agent — which `globalScopedAgentsHint` already says, in\n * the words `compile` itself says it in when it lands in the mirror image of this state.\n */\nfunction customizationSteps(split: AgentScopeSplit, globalConfigPath: string): string[] {\n if (split.isGlobalOnly) {\n return [`Edit ${globalConfigPath}`, globalScopedAgentsHint(split.globalAgentCount)];\n }\n\n return [\n `Edit ${CLAUDE_SRC_DIR}/${STANDARD_FILES.CONFIG_TS}`,\n `Run '${CLI_INVOKE_COMMAND} compile' to regenerate agents`,\n ...(split.globalAgentCount > 0 ? [globalScopedAgentsHint(split.globalAgentCount)] : []),\n ];\n}\n\nexport type DashboardData = {\n /**\n * The name the dashboard is titled with — `branding.name` where the configuration supplies one\n * and {@link DEFAULT_BRANDING.NAME} otherwise. Carried on the data rather than read by either\n * consumer so {@link formatDashboardText} stays a pure function of what it is handed, and so\n * the one place that reaches a configuration is the one that already loads it.\n *\n * **Both of {@link showDashboard}'s branches read it, and that is the invariant to keep.** This\n * field was resolved for the piped branch alone for as long as it was, while the `Dashboard`\n * component was handed only its callbacks and painted {@link ASCII_LOGO} — so the dashboard a\n * person actually sees was the one surface `branding.name` never reached, and every spec on the\n * subject drove through a pipe and could not see it.\n */\n name: string;\n skillCount: number;\n agentCount: number;\n mode: InstallMode;\n source?: string;\n};\n\n/**\n * Gathers dashboard data from the installation and project config.\n *\n * Both counts come from the same scope-aware installation so the summary cannot\n * mix a project-only figure with a global one — a default install driven from a\n * project directory puts every skill and agent under HOME.\n */\nexport async function getDashboardData(projectDir: string): Promise<DashboardData> {\n // ABORT is the posture on `resolveBranding`, and it is the one already in force: the\n // `loadProjectConfig` beside it raises for the same file, so a configuration that cannot be\n // evaluated fails this call whether branding is read or not. Nothing is degraded here that was\n // not already, and the dashboard is only reached once an installation has been detected.\n const [info, loaded, branding] = await Promise.all([\n getInstallationInfo(),\n loadProjectConfig(projectDir),\n resolveBranding(projectDir),\n ]);\n\n const activeSkills = loaded?.config.skills.filter((s) => !s.excluded);\n const skillCount = info?.skillCount ?? 0;\n const agentCount = info?.agentCount ?? 0;\n const mode = info?.mode ?? (activeSkills ? deriveInstallMode(activeSkills) : \"eject\");\n const source = loaded?.config.marketplace;\n\n return {\n name: branding.name,\n skillCount,\n agentCount,\n mode,\n ...(source !== undefined && { source }),\n };\n}\n","import React from \"react\";\nimport { z } from \"zod\";\n\nimport { Text, Box } from \"ink\";\nimport path from \"path\";\n\nimport { CLAUDE_DIR, CLI_COLORS, MAX_CONFIG_FILE_SIZE, STANDARD_FILES } from \"../consts\";\nimport { fileExists, readFileSafe } from \"../utils/fs\";\nimport { warn } from \"../utils/logger\";\nimport { settingsFileSchema } from \"./schemas\";\n\ntype SettingsFile = z.infer<typeof settingsFileSchema>;\ntype PermissionConfig = NonNullable<SettingsFile[\"permissions\"]>;\n\n/**\n * Reads one settings file's permissions block; undefined when absent, malformed, or empty.\n *\n * settings.json belongs to Claude Code, which adds keys on its own release schedule. This CLI\n * consumes `permissions` and owns nothing else in the file, so it stays silent about every other\n * field rather than warning about settings it has no standing to judge.\n */\nasync function readSettingsPermissions(filePath: string): Promise<PermissionConfig | undefined> {\n if (!(await fileExists(filePath))) return undefined;\n try {\n const content = await readFileSafe(filePath, MAX_CONFIG_FILE_SIZE);\n const raw: unknown = JSON.parse(content);\n const result = settingsFileSchema.safeParse(raw);\n const parsed: SettingsFile = result.success ? result.data : {};\n return parsed.permissions;\n } catch {\n warn(`Malformed settings file at '${filePath}' — skipping`);\n return undefined;\n }\n}\n\n/** Permissions from the first settings file that defines them — settings.local.json wins. */\nasync function loadPermissions(projectRoot: string): Promise<PermissionConfig | undefined> {\n const settingsPath = path.join(projectRoot, CLAUDE_DIR, STANDARD_FILES.SETTINGS_JSON);\n const localSettingsPath = path.join(projectRoot, CLAUDE_DIR, STANDARD_FILES.SETTINGS_LOCAL_JSON);\n\n for (const filePath of [localSettingsPath, settingsPath]) {\n const permissions = await readSettingsPermissions(filePath);\n if (permissions) return permissions;\n }\n return undefined;\n}\n\nexport async function checkPermissions(projectRoot: string): Promise<React.ReactElement | null> {\n const permissions = await loadPermissions(projectRoot);\n\n if (!permissions) {\n return (\n <Box flexDirection=\"column\" borderStyle=\"round\" borderColor={CLI_COLORS.WARNING} padding={1}>\n <Text bold color={CLI_COLORS.WARNING}>\n Permission Notice\n </Text>\n <Text>No permissions configured in .claude/settings.json</Text>\n <Text>Agents will prompt for approval on each tool use.</Text>\n <Text> </Text>\n <Text>For autonomous operation, add to .claude/settings.json:</Text>\n <Text> </Text>\n <Text color={CLI_COLORS.DIM}>{\"{\"}</Text>\n <Text color={CLI_COLORS.DIM}>{' \"permissions\": {'}</Text>\n <Text color={CLI_COLORS.DIM}>{' \"allow\": ['}</Text>\n <Text color={CLI_COLORS.DIM}>{' \"Read(*)\",'}</Text>\n <Text color={CLI_COLORS.DIM}>{' \"Bash(git *)\",'}</Text>\n <Text color={CLI_COLORS.DIM}>{' \"Bash(bun *)\"'}</Text>\n <Text color={CLI_COLORS.DIM}>{\" ]\"}</Text>\n <Text color={CLI_COLORS.DIM}>{\" }\"}</Text>\n <Text color={CLI_COLORS.DIM}>{\"}\"}</Text>\n </Box>\n );\n }\n\n const hasRestrictiveBash = permissions.deny?.some(\n (rule) => rule === \"Bash(*)\" || rule === \"Bash\",\n );\n const hasNoAllows = !permissions.allow || permissions.allow.length === 0;\n\n if (hasRestrictiveBash || hasNoAllows) {\n return (\n <Box flexDirection=\"column\" borderStyle=\"round\" borderColor={CLI_COLORS.WARNING} padding={1}>\n <Text bold color={CLI_COLORS.WARNING}>\n Permission Warnings\n </Text>\n {hasRestrictiveBash && (\n <Text>\n ⚠ Bash is denied in permissions. Some agents require Bash for git, testing, and build\n commands.\n </Text>\n )}\n {hasNoAllows && (\n <Text>⚠ No allow rules configured. Agents will prompt for each tool use.</Text>\n )}\n </Box>\n );\n }\n\n return null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAkB;AAElB,SAAS,aAA8B;AACvC,SAAS,OAAAA,MAAK,QAAAC,OAAM,cAAc;;;ACHlC,OAAkB;AAClB,OAAkB;AAElB,SAAS,MAAM,WAAW;AAC1B,OAAO,UAAU;AAgDX,SACE,KADF;AA/BN,eAAe,wBAAwB,UAAyD;AAC9F,MAAI,CAAE,MAAM,WAAW,QAAQ,EAAI,QAAO;AAC1C,MAAI;AACF,UAAM,UAAU,MAAM,aAAa,UAAU,oBAAoB;AACjE,UAAM,MAAe,KAAK,MAAM,OAAO;AACvC,UAAM,SAAS,mBAAmB,UAAU,GAAG;AAC/C,UAAM,SAAuB,OAAO,UAAU,OAAO,OAAO,CAAC;AAC7D,WAA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,SAAS,eAAe,kBAAkB,YAAY,IAAI;AAC7E,QAAM,SAAS,QAAQ,OAAO;AAE9B,SAAO;AAAA,IACL,MAAM,SAAS;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAI,WAAW,UAAa,EAAE,OAAO;AAAA,EACvC;AACF;","names":["Box","Text","jsx","jsxs","Text","Box"]}
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  useRowScroll
4
- } from "./chunk-FL2CJ5T5.js";
4
+ } from "./chunk-YRS3QZP2.js";
5
5
  import {
6
6
  KEY_SPACE
7
7
  } from "./chunk-WTJ3AY33.js";
8
8
  import {
9
9
  CLI_COLORS,
10
10
  UI_SYMBOLS
11
- } from "./chunk-IV42Z63R.js";
11
+ } from "./chunk-UITEKY2R.js";
12
12
 
13
13
  // src/cli/components/wizard/checkbox-grid.tsx
14
14
  import { Box, Text, useInput } from "ink";
@@ -108,4 +108,4 @@ var CheckboxGrid = ({
108
108
  export {
109
109
  CheckboxGrid
110
110
  };
111
- //# sourceMappingURL=chunk-VFZF7LVY.js.map
111
+ //# sourceMappingURL=chunk-3WVH2CTK.js.map
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  isDomain
4
- } from "./chunk-7WKNPDN2.js";
4
+ } from "./chunk-XPDVAJDH.js";
5
5
  import {
6
6
  findStack
7
- } from "./chunk-3QBOVV6A.js";
7
+ } from "./chunk-AVK2HEKB.js";
8
8
 
9
9
  // src/cli/components/wizard/utils.ts
10
10
  var DOMAIN_DISPLAY_NAMES = {
@@ -32,4 +32,4 @@ export {
32
32
  getDomainDisplayName,
33
33
  getStackName
34
34
  };
35
- //# sourceMappingURL=chunk-SBL4AYSB.js.map
35
+ //# sourceMappingURL=chunk-4VL3CEOS.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  SCROLL_VIEWPORT
4
- } from "./chunk-IV42Z63R.js";
4
+ } from "./chunk-UITEKY2R.js";
5
5
 
6
6
  // src/cli/components/wizard/scroll-affordance.tsx
7
7
  import { Box, Text } from "ink";
@@ -21,4 +21,4 @@ var ScrollAffordance = ({ hiddenAbove, hiddenBelow }) => {
21
21
  export {
22
22
  ScrollAffordance
23
23
  };
24
- //# sourceMappingURL=chunk-QM3ZNOWJ.js.map
24
+ //# sourceMappingURL=chunk-6MV4JOCL.js.map
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  execCommand,
4
4
  getErrorMessage
5
- } from "./chunk-7WKNPDN2.js";
5
+ } from "./chunk-XPDVAJDH.js";
6
6
 
7
7
  // src/cli/utils/open-url.ts
8
8
  function browserOpenerCommand(platform, url) {
@@ -32,4 +32,4 @@ async function openUrl(url) {
32
32
  export {
33
33
  openUrl
34
34
  };
35
- //# sourceMappingURL=chunk-ADSIYZGS.js.map
35
+ //# sourceMappingURL=chunk-7ANJQLPJ.js.map
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  CLI_COLORS,
7
7
  UI_SYMBOLS
8
- } from "./chunk-IV42Z63R.js";
8
+ } from "./chunk-UITEKY2R.js";
9
9
 
10
10
  // src/cli/components/common/select-list.tsx
11
11
  import { useCallback } from "react";
@@ -48,4 +48,4 @@ function SelectList({
48
48
  export {
49
49
  SelectList
50
50
  };
51
- //# sourceMappingURL=chunk-3JDVBHWO.js.map
51
+ //# sourceMappingURL=chunk-7REKOTKG.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  SCROLL_VIEWPORT
4
- } from "./chunk-IV42Z63R.js";
4
+ } from "./chunk-UITEKY2R.js";
5
5
 
6
6
  // src/cli/components/hooks/use-section-scroll.ts
7
7
  import { useCallback, useEffect, useRef, useState } from "react";
@@ -118,4 +118,4 @@ export {
118
118
  useSectionScroll,
119
119
  computeRowScrollTop
120
120
  };
121
- //# sourceMappingURL=chunk-MI7LKLD7.js.map
121
+ //# sourceMappingURL=chunk-ABAZMMG4.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  SummaryPanel
4
- } from "./chunk-Q4KCUR2T.js";
4
+ } from "./chunk-LT5GXEB2.js";
5
5
 
6
6
  // src/cli/components/wizard/step-confirm.tsx
7
7
  import { useInput } from "ink";
@@ -22,4 +22,4 @@ var StepConfirm = ({ onComplete, onBack }) => {
22
22
  export {
23
23
  StepConfirm
24
24
  };
25
- //# sourceMappingURL=chunk-2P3MKX5Q.js.map
25
+ //# sourceMappingURL=chunk-AOTCIUGX.js.map
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  SummaryPanel
4
- } from "./chunk-Q4KCUR2T.js";
4
+ } from "./chunk-LT5GXEB2.js";
5
5
  import {
6
6
  Toast
7
- } from "./chunk-MSUTHS2V.js";
7
+ } from "./chunk-QZX7SYKU.js";
8
8
  import {
9
9
  WizardTabs,
10
10
  wizardTabsFor
11
- } from "./chunk-4NAWM4OQ.js";
11
+ } from "./chunk-S63LXWMC.js";
12
12
  import {
13
13
  getDomainDisplayName,
14
14
  getStackName
15
- } from "./chunk-SBL4AYSB.js";
15
+ } from "./chunk-4VL3CEOS.js";
16
16
  import {
17
17
  HOTKEY_INFO,
18
18
  HOTKEY_SCOPE,
@@ -25,17 +25,17 @@ import {
25
25
  import {
26
26
  getActiveStepFlow,
27
27
  useWizardStore
28
- } from "./chunk-UE3MLDL2.js";
28
+ } from "./chunk-K5ITEA3I.js";
29
29
  import {
30
30
  formatTerminalTooSmallMessage,
31
31
  isTerminalLargeEnough
32
- } from "./chunk-77YZFVQD.js";
32
+ } from "./chunk-PHCPUQVR.js";
33
33
  import {
34
34
  CLI_COLORS,
35
35
  FALLBACK_DOMAIN,
36
36
  LOGO_MIN_TERMINAL_ROWS,
37
37
  orderDomains
38
- } from "./chunk-IV42Z63R.js";
38
+ } from "./chunk-UITEKY2R.js";
39
39
 
40
40
  // src/cli/components/wizard/wizard-layout.tsx
41
41
  import { Box, Text } from "ink";
@@ -234,4 +234,4 @@ export {
234
234
  useTerminalDimensions,
235
235
  WizardLayout
236
236
  };
237
- //# sourceMappingURL=chunk-GUFRQJAE.js.map
237
+ //# sourceMappingURL=chunk-ARYNOWKF.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  seatCatalog
4
- } from "./chunk-IV42Z63R.js";
4
+ } from "./chunk-UITEKY2R.js";
5
5
 
6
6
  // src/cli/types/generated/matrix.ts
7
7
  var BUILT_IN_MATRIX = {
@@ -5841,7 +5841,7 @@ var BUILT_IN_MATRIX = {
5841
5841
  slug: "react-query",
5842
5842
  displayName: "React Query",
5843
5843
  description: "Server state and caching",
5844
- usageGuidance: "Use when fetching API data with React Query, generating API clients from OpenAPI specs with hey-api, or configuring query caching and error handling.",
5844
+ usageGuidance: "Use when fetching API data with React Query, wiring typed clients generated from an API schema, or configuring query caching and error handling.",
5845
5845
  category: "web-server-state",
5846
5846
  author: "@vince",
5847
5847
  conflictsWith: [
@@ -6152,7 +6152,7 @@ var BUILT_IN_MATRIX = {
6152
6152
  slug: "scss-modules",
6153
6153
  displayName: "SCSS Modules",
6154
6154
  description: "SCSS Modules styling",
6155
- usageGuidance: "Use when styling with SCSS Modules, design tokens, or CSS cascade layers.",
6155
+ usageGuidance: "Use when writing scoped component styles in .module.scss, organising Sass with @use and @forward, or ordering styles with CSS cascade layers.",
6156
6156
  category: "web-styling",
6157
6157
  author: "@vince",
6158
6158
  conflictsWith: [],
@@ -6489,7 +6489,7 @@ var BUILT_IN_MATRIX = {
6489
6489
  slug: "headless-ui",
6490
6490
  displayName: "Headless UI",
6491
6491
  description: "Unstyled accessible UI components by Tailwind Labs",
6492
- usageGuidance: "Use when building accessible UI with Headless UI \u2014 Dialog, Menu, Listbox, Combobox, Popover, Tabs, Disclosure, and other unstyled primitives designed for Tailwind CSS.",
6492
+ usageGuidance: "Use when building accessible UI with Headless UI \u2014 Dialog, Menu, Listbox, Combobox, Popover, Tabs, Disclosure, and other unstyled primitives you style yourself.",
6493
6493
  category: "web-ui-components",
6494
6494
  author: "@vince",
6495
6495
  conflictsWith: [],
@@ -9363,4 +9363,4 @@ export {
9363
9363
  hasSkill,
9364
9364
  findStack
9365
9365
  };
9366
- //# sourceMappingURL=chunk-3QBOVV6A.js.map
9366
+ //# sourceMappingURL=chunk-AVK2HEKB.js.map