@aussieljk/forkbook 0.0.1-20 → 0.0.1-21

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 (240) hide show
  1. package/dist/_browser-chunks/{Color-KALNKPOV.js → Color-7FO5YFB5.js} +1 -1
  2. package/dist/_browser-chunks/{WithTooltip-66AWY4VQ.js → WithTooltip-QWFSUQZP.js} +1 -1
  3. package/dist/_browser-chunks/{chunk-OWWV6YG7.js → chunk-5Z3MWCFR.js} +1 -1
  4. package/dist/_browser-chunks/{chunk-CX37N6FG.js → chunk-BSYOFSF6.js} +9 -9
  5. package/dist/_browser-chunks/{chunk-4ZGQ4YQ2.js → chunk-FAOLWWRN.js} +1 -1
  6. package/dist/_browser-chunks/{chunk-TRXLBGLS.js → chunk-ZIZCGWCG.js} +4 -4
  7. package/dist/_node-chunks/{attached-runtime-YD6HKC4B.js → attached-runtime-UC2CB4GH.js} +34 -34
  8. package/dist/_node-chunks/{builder-manager-UNJGYVTD.js → builder-manager-S5UUKVOR.js} +17 -19
  9. package/dist/_node-chunks/{chunk-QEYWG5C7.js → chunk-3335ZZIO.js} +6 -6
  10. package/dist/_node-chunks/{chunk-75TTPKEA.js → chunk-3D6N6P2R.js} +8 -8
  11. package/dist/_node-chunks/{chunk-65X3MXFT.js → chunk-3ER54PQM.js} +8 -8
  12. package/dist/_node-chunks/{chunk-AGLGQNTY.js → chunk-3H5C52QU.js} +6 -6
  13. package/dist/_node-chunks/{chunk-X6OGIC2G.js → chunk-3UI3TQ7R.js} +6 -6
  14. package/dist/_node-chunks/{chunk-5LFJQCYN.js → chunk-4C3ACAHV.js} +6 -6
  15. package/dist/_node-chunks/{chunk-J6FGP2VM.js → chunk-4UTCKJEQ.js} +7 -7
  16. package/dist/_node-chunks/{chunk-LAJIVWUF.js → chunk-53A5CYDK.js} +92 -17
  17. package/dist/_node-chunks/{chunk-HHM5X5RQ.js → chunk-53PSBDRK.js} +9 -9
  18. package/dist/_node-chunks/{chunk-7CWDZLIZ.js → chunk-54MO4QLB.js} +6 -6
  19. package/dist/_node-chunks/{chunk-QDVIQG3B.js → chunk-5CJMRQZ6.js} +6 -6
  20. package/dist/_node-chunks/{chunk-U54Q3F7E.js → chunk-5HOM7B4V.js} +6 -6
  21. package/dist/_node-chunks/{chunk-VNZF62KE.js → chunk-5QG6AXK4.js} +7 -7
  22. package/dist/_node-chunks/{chunk-LGHTKFSF.js → chunk-67XVZZUO.js} +6 -6
  23. package/dist/_node-chunks/{chunk-IIGBIVK3.js → chunk-6HQJJDLH.js} +6 -6
  24. package/dist/_node-chunks/chunk-6IPHWCFI.js +29 -0
  25. package/dist/_node-chunks/{chunk-ZZ5XMIGW.js → chunk-6XYOFBRD.js} +14 -31
  26. package/dist/_node-chunks/{chunk-F762PHMI.js → chunk-7IAYDGYH.js} +6 -6
  27. package/dist/_node-chunks/{chunk-WDANLGYN.js → chunk-7P67PUU2.js} +7 -7
  28. package/dist/_node-chunks/{chunk-6RYD6ENB.js → chunk-AAK5BBF2.js} +7 -7
  29. package/dist/_node-chunks/{chunk-VPFU5CEP.js → chunk-BGUVBOOU.js} +8 -8
  30. package/dist/_node-chunks/{chunk-ZLC4JSBV.js → chunk-BNGBOASQ.js} +6 -6
  31. package/dist/_node-chunks/{chunk-2GA4VQCS.js → chunk-BWZWCVVH.js} +9 -9
  32. package/dist/_node-chunks/{chunk-MWKSSYPG.js → chunk-C6HQ6WLU.js} +6 -6
  33. package/dist/_node-chunks/chunk-CJHRH777.js +20 -0
  34. package/dist/_node-chunks/{chunk-3ZOSFS7G.js → chunk-COEW4ORP.js} +6 -6
  35. package/dist/_node-chunks/{chunk-LCNF6BLP.js → chunk-CVHDAEDZ.js} +7 -7
  36. package/dist/_node-chunks/{chunk-ZX32M4O7.js → chunk-CXGOQNGI.js} +7 -7
  37. package/dist/_node-chunks/chunk-D4XTQWRM.js +11 -0
  38. package/dist/_node-chunks/{chunk-EFCBUWOB.js → chunk-D5V6CZ6U.js} +7 -7
  39. package/dist/_node-chunks/{chunk-CPDP5SQS.js → chunk-DCTXJ4TT.js} +9 -9
  40. package/dist/_node-chunks/{chunk-LNGSV5UI.js → chunk-DP6WFY3D.js} +7 -7
  41. package/dist/_node-chunks/{chunk-DQEUNKLX.js → chunk-E23GDXG6.js} +9 -85
  42. package/dist/_node-chunks/{chunk-SFXFL4TP.js → chunk-E3ZFMURC.js} +8 -8
  43. package/dist/_node-chunks/{chunk-N4LNGTYL.js → chunk-E6O3NA44.js} +7 -7
  44. package/dist/_node-chunks/{chunk-UZH2V3WY.js → chunk-ECS3WDOU.js} +7 -7
  45. package/dist/_node-chunks/{chunk-N5WU4BEY.js → chunk-FB5YJWOH.js} +6 -6
  46. package/dist/_node-chunks/{chunk-XVSUIOZA.js → chunk-FCK5FM6D.js} +7 -7
  47. package/dist/_node-chunks/{chunk-3CQI3JH5.js → chunk-FJUGPEJK.js} +6 -6
  48. package/dist/_node-chunks/{chunk-Z665R6AF.js → chunk-FPYXI76E.js} +7 -7
  49. package/dist/_node-chunks/{chunk-PJRPETSU.js → chunk-GEWVOY3F.js} +6 -6
  50. package/dist/_node-chunks/{chunk-FC3V4KZO.js → chunk-GHZ44BFB.js} +7 -7
  51. package/dist/_node-chunks/{chunk-WTPHQ2NG.js → chunk-GJMFISS3.js} +6 -6
  52. package/dist/_node-chunks/{chunk-33I6AQU7.js → chunk-GK2Y2RFX.js} +6 -6
  53. package/dist/_node-chunks/{chunk-7M3TOE4F.js → chunk-GP6YBA2R.js} +6 -6
  54. package/dist/_node-chunks/{chunk-KAALBGRE.js → chunk-GQUFGJ4D.js} +6 -6
  55. package/dist/_node-chunks/{chunk-MC4BFUVH.js → chunk-H4CRQDTK.js} +6 -6
  56. package/dist/_node-chunks/{chunk-IENHXJVB.js → chunk-HCDG54OG.js} +7 -7
  57. package/dist/_node-chunks/{chunk-2CNN3CRI.js → chunk-HGJMP4EI.js} +8 -8
  58. package/dist/_node-chunks/chunk-HSX6BDBA.js +18 -0
  59. package/dist/_node-chunks/{chunk-WMZJ2WK4.js → chunk-IPFPWMT5.js} +1255 -291
  60. package/dist/_node-chunks/{chunk-FXW52X4U.js → chunk-KRIOC4WF.js} +8 -8
  61. package/dist/_node-chunks/{chunk-NRXCMSAI.js → chunk-KUL2MJ6N.js} +6 -6
  62. package/dist/_node-chunks/{chunk-DAYTIH6Z.js → chunk-LUR6QTYB.js} +8 -8
  63. package/dist/_node-chunks/{chunk-2VJHCGAK.js → chunk-LYS7TI35.js} +8 -8
  64. package/dist/_node-chunks/{chunk-AVHJZUTH.js → chunk-MDTXL6SN.js} +8 -8
  65. package/dist/_node-chunks/{chunk-EKYNX5NX.js → chunk-MIIPXT4S.js} +8 -8
  66. package/dist/_node-chunks/{chunk-WYRBOMQF.js → chunk-MLWGAA2I.js} +8 -7
  67. package/dist/_node-chunks/{chunk-XF7H5GZM.js → chunk-MWUGCUB5.js} +8 -8
  68. package/dist/_node-chunks/{chunk-SPAHK37C.js → chunk-MX5MVLEK.js} +6 -6
  69. package/dist/_node-chunks/{chunk-25A7444H.js → chunk-N44UIGCO.js} +6 -6
  70. package/dist/_node-chunks/{chunk-JXZONVHW.js → chunk-NP2JHOFY.js} +7 -7
  71. package/dist/_node-chunks/{chunk-6FWJWEAG.js → chunk-OMNGOPNG.js} +7 -7
  72. package/dist/_node-chunks/{chunk-WZBMPROH.js → chunk-OO2GTHUF.js} +6 -6
  73. package/dist/_node-chunks/{chunk-ZN6YOIB2.js → chunk-PC57BIYZ.js} +7 -7
  74. package/dist/_node-chunks/{chunk-SUQ4OM7Y.js → chunk-PHWMAF5C.js} +6 -6
  75. package/dist/_node-chunks/{chunk-CJDYU653.js → chunk-PLIQQETC.js} +7 -7
  76. package/dist/_node-chunks/{chunk-B2EEX2SZ.js → chunk-QMYCIS2U.js} +6 -6
  77. package/dist/_node-chunks/{chunk-4BE3LRIQ.js → chunk-QZIDK3GX.js} +13 -14
  78. package/dist/_node-chunks/{chunk-6NLQCV6A.js → chunk-ROJ6RSIJ.js} +7 -7
  79. package/dist/_node-chunks/{chunk-NZWK62R5.js → chunk-S2NB6QEG.js} +30 -30
  80. package/dist/_node-chunks/{chunk-GWT4HQZU.js → chunk-S6VCOSQS.js} +6 -6
  81. package/dist/_node-chunks/{chunk-6OQKMJJA.js → chunk-SEVOOOB2.js} +10 -10
  82. package/dist/_node-chunks/{chunk-S7RGKBGT.js → chunk-SFT6ZAVN.js} +6 -6
  83. package/dist/_node-chunks/{chunk-AP4HJ3I3.js → chunk-SXBUK4F6.js} +7 -7
  84. package/dist/_node-chunks/{chunk-XUZB4FIX.js → chunk-TGF6Q66I.js} +8 -8
  85. package/dist/_node-chunks/{chunk-AOYLA323.js → chunk-TGFHWGGT.js} +6 -6
  86. package/dist/_node-chunks/{chunk-GFEH7IBP.js → chunk-TTLSBLPQ.js} +8 -8
  87. package/dist/_node-chunks/{chunk-VIMGLCNZ.js → chunk-UUAEW2AR.js} +6 -6
  88. package/dist/_node-chunks/{chunk-JOX7OETB.js → chunk-VQHM66NL.js} +8 -8
  89. package/dist/_node-chunks/{chunk-ZEYZWDOS.js → chunk-VSTTY3TM.js} +6 -6
  90. package/dist/_node-chunks/{chunk-N25CZ3RC.js → chunk-XDBSAFUB.js} +7 -7
  91. package/dist/_node-chunks/{chunk-EG2WLN5V.js → chunk-XTQQGAUZ.js} +7 -7
  92. package/dist/_node-chunks/{chunk-X2GGQZIN.js → chunk-YMJVSFJT.js} +6 -6
  93. package/dist/_node-chunks/{chunk-OBPVOYJA.js → chunk-YXEKWVJQ.js} +7 -7
  94. package/dist/_node-chunks/{chunk-L52VGA36.js → chunk-Z6CUUWJO.js} +7 -7
  95. package/dist/_node-chunks/{chunk-GEJBTN76.js → chunk-ZAIGR7EV.js} +9 -17
  96. package/dist/_node-chunks/{chunk-OMMQME7G.js → chunk-ZCFXEFR6.js} +14 -14
  97. package/dist/_node-chunks/{chunk-DO3CPQAZ.js → chunk-ZHUBOYOD.js} +6 -6
  98. package/dist/_node-chunks/{chunk-IBLUURAJ.js → chunk-ZHUBTBP2.js} +8 -8
  99. package/dist/_node-chunks/{chunk-JR7ZCQ77.js → chunk-ZSTIFZHY.js} +6 -6
  100. package/dist/_node-chunks/dist-TRTHRODT.js +16 -0
  101. package/dist/_node-chunks/dist-XPLJ5T4W.js +27 -0
  102. package/dist/_node-chunks/{local-runtime-4ETW6QTI.js → local-runtime-AC7MOWYK.js} +21 -21
  103. package/dist/_node-chunks/{mdx-plugin-OOYTYMVU.js → mdx-plugin-ZW26VGEP.js} +13 -13
  104. package/dist/_node-chunks/{monorepo-3AWUYNFD.js → monorepo-T2KZK62Q.js} +11 -11
  105. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-ORY3BAP5.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-2CWUUF6H.js} +11 -11
  106. package/dist/_node-chunks/optimized-tests-4AK3PFSX.js +22 -0
  107. package/dist/_node-chunks/{pattern-copy-play-AY4DE7ME.js → pattern-copy-play-CMRGEXHM.js} +9 -9
  108. package/dist/_node-chunks/postinstallAddon-OUQENFYO.js +20 -0
  109. package/dist/_node-chunks/{rehype-external-links-FGVC633L.js → rehype-external-links-LHOAIJ2E.js} +9 -9
  110. package/dist/_node-chunks/{rehype-slug-2AZLMC5G.js → rehype-slug-K54MMYY6.js} +9 -9
  111. package/dist/_node-chunks/{relaxed-limits-QI3YR6CU.js → relaxed-limits-TTL4PWH7.js} +11 -11
  112. package/dist/_node-chunks/{run-QJJ4FOF3.js → run-6DXBB5F7.js} +28 -26
  113. package/dist/_node-chunks/{run-WFJZYNZN.js → run-BMTV5ZAO.js} +17 -17
  114. package/dist/_node-chunks/{setup-V5CRAJMV.js → setup-FDPYW25Y.js} +8 -8
  115. package/dist/_node-chunks/{vitest.config.4.template-LECBBF3L.js → vitest.config.4.template-2TCFWAAI.js} +7 -7
  116. package/dist/addon-a11y/manager.js +3 -3
  117. package/dist/addon-a11y/preset.js +7 -7
  118. package/dist/addon-comments/manager.js +2 -2
  119. package/dist/addon-comments/preset.js +43 -15
  120. package/dist/addon-comments/preview.js +1 -1
  121. package/dist/addon-docs/blocks.js +9 -9
  122. package/dist/addon-docs/manager.js +2 -2
  123. package/dist/addon-docs/preset.js +10 -10
  124. package/dist/addon-links/preview.d.ts +1 -1
  125. package/dist/addon-mcp/preset.js +39 -39
  126. package/dist/addon-mcp/preview.js +1 -1
  127. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +2 -2
  128. package/dist/addon-themes/postinstall.js +7 -7
  129. package/dist/addon-vitest/constants.js +8 -8
  130. package/dist/addon-vitest/manager.js +4 -4
  131. package/dist/addon-vitest/node/coverage-reporter.js +8 -8
  132. package/dist/addon-vitest/node/vitest.js +18 -18
  133. package/dist/addon-vitest/postinstall.js +10 -10
  134. package/dist/addon-vitest/preset.js +18 -18
  135. package/dist/addon-vitest/vitest-plugin/global-setup.js +8 -8
  136. package/dist/addon-vitest/vitest-plugin/index.js +18 -18
  137. package/dist/babel/index.js +30582 -31
  138. package/dist/bin/core.js +60 -71
  139. package/dist/bin/dispatcher.js +10 -10
  140. package/dist/bin/loader.js +8 -8
  141. package/dist/builder-next/index.js +9 -9
  142. package/dist/builder-vite/index.js +15 -15
  143. package/dist/builder-vite/preset.js +13 -13
  144. package/dist/{chunk-ge-rSPy0.d.ts → chunk-B53gRJBs.d.ts} +22 -4
  145. package/dist/{chunk-Bubi-WAs.d.ts → chunk-BspNQvZn.d.ts} +1 -6
  146. package/dist/{chunk-OksNJcvJ.d.ts → chunk-CMx6bGAU.d.ts} +1 -1
  147. package/dist/{chunk-BsO65uOb.d.ts → chunk-CRmUwbkb.d.ts} +1 -1
  148. package/dist/{chunk-D2CQlXaR.d.ts → chunk-bhl-7rRD.d.ts} +28 -1
  149. package/dist/cli/index.d.ts +3 -39
  150. package/dist/cli/index.js +37 -282
  151. package/dist/cli/skills/content/index.d.ts +1 -1
  152. package/dist/cli/skills/content/index.js +1 -1
  153. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  154. package/dist/cli/tools/sdk/child-host.js +17 -17
  155. package/dist/cli/tools/sdk/index.d.ts +2 -2
  156. package/dist/cli/tools/sdk/index.js +18 -18
  157. package/dist/cli-commands/bin/index.js +7 -7
  158. package/dist/common/index.d.ts +9 -9
  159. package/dist/common/index.js +89 -91
  160. package/dist/components/index.js +29 -29
  161. package/dist/core-events/index.d.ts +12 -5
  162. package/dist/core-events/index.js +1 -5
  163. package/dist/core-server/index.d.ts +41 -13
  164. package/dist/core-server/index.js +247 -98
  165. package/dist/core-server/presets/common-manager.js +9 -9
  166. package/dist/core-server/presets/common-override-preset.js +10 -10
  167. package/dist/core-server/presets/common-preset.js +39 -39
  168. package/dist/create/bin/index.js +7 -7
  169. package/dist/create/index.js +15 -15
  170. package/dist/csf/index.js +6 -7
  171. package/dist/csf-tools/index.js +13 -13
  172. package/dist/instrumenter/index.d.ts +1 -1
  173. package/dist/manager/_manager-chunks/{globals-runtime-D6tkG2NO.js → globals-runtime-BJ6EZqH7.js} +6 -6
  174. package/dist/manager/_manager-chunks/{globals-runtime-BnWjPJUH.js → globals-runtime-BfXaq_CP.js} +1 -1
  175. package/dist/manager/_manager-chunks/{globals-runtime-Bv2PBsx6.js → globals-runtime-BkSn_Jpe.js} +2 -2
  176. package/dist/manager/_manager-chunks/{globals-runtime-D9zzVzSP.js → globals-runtime-Cisw9IIE.js} +2 -2
  177. package/dist/manager/_manager-chunks/{globals-runtime-DafcXCKU.js → globals-runtime-DpvE_zRs.js} +80 -84
  178. package/dist/manager/_manager-chunks/{globals-runtime-BDkYPr00.js → globals-runtime-wV08sCKl.js} +2 -2
  179. package/dist/manager/_manager-chunks/{runtime-DJlTd1qE.js → runtime-4OQZWibO.js} +134 -134
  180. package/dist/manager/_manager-chunks/{runtime-mjv_40eH.js → runtime-BYxbyNm0.js} +4 -4
  181. package/dist/manager/_manager-chunks/{runtime-BuPcYKCO.js → runtime-CM4Z8aKR.js} +0 -2
  182. package/dist/manager/_manager-chunks/{runtime-CGaGp83p.js → runtime-Cjo1UL1u.js} +2 -2
  183. package/dist/manager/_manager-chunks/{runtime-BhfRBP4G.js → runtime-Cx1-wr6J.js} +1 -1
  184. package/dist/manager/_manager-chunks/{runtime-CXROgt6G.js → runtime-Cxe_uJRb.js} +8 -8
  185. package/dist/manager/_manager-chunks/{runtime-DmpQacrn.js → runtime-D702FFTO.js} +5 -7
  186. package/dist/manager/_manager-chunks/{runtime-Dc6lf19c.js → runtime-DnWFp6Zw.js} +3 -3
  187. package/dist/manager/_manager-chunks/{runtime-DTUm5K9J.js → runtime-DoYPE6g6.js} +24 -24
  188. package/dist/manager/_manager-chunks/{runtime-Cn5PJT3-.js → runtime-sppa-0ll.js} +2 -2
  189. package/dist/manager/globals-runtime.js +1 -1
  190. package/dist/manager/runtime.js +1 -1
  191. package/dist/manager-api/index.d.ts +1 -1
  192. package/dist/manager-api/index.js +1 -1
  193. package/dist/manager-errors.d.ts +1 -1
  194. package/dist/mcp/index.d.ts +10 -10
  195. package/dist/mcp/index.js +10 -10
  196. package/dist/mocking-utils/index.js +9 -9
  197. package/dist/next/index.js +9 -9
  198. package/dist/nextjs-vite/node/index.js +7 -7
  199. package/dist/nextjs-vite/preset.js +11 -11
  200. package/dist/nextjs-vite/vite-plugin/index.js +7 -7
  201. package/dist/nextjs-vite-plugin/index.js +8 -8
  202. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  203. package/dist/node-logger/index.d.ts +8 -2
  204. package/dist/node-logger/index.js +9 -9
  205. package/dist/oxc-parser/index.js +10 -10
  206. package/dist/oxc-parser/worker.js +10 -10
  207. package/dist/preview/_chunks/{runtime-C88AzFBv.js → runtime-Cbq5WjbL.js} +2 -2
  208. package/dist/preview/_chunks/{runtime-Cpzxe5eK.js → runtime-DDEUZops.js} +12 -16
  209. package/dist/preview/_chunks/{runtime-BiYuZt-X.js → runtime-DsjyhLpG.js} +8 -6
  210. package/dist/preview/_chunks/{runtime-MYVHRAoo.js → runtime-Dwi6NFcX.js} +2 -2
  211. package/dist/preview/runtime.js +1 -1
  212. package/dist/preview-api/index.d.ts +2 -2
  213. package/dist/preview-api/index.js +1 -1
  214. package/dist/preview-errors.d.ts +1 -1
  215. package/dist/react/docgen/docgen-worker.js +11 -11
  216. package/dist/react/preset.js +13 -13
  217. package/dist/react-native/bin/get-stories.js +8 -8
  218. package/dist/react-native/metro/node.js +10 -10
  219. package/dist/react-native/metro/withForkbook.js +11 -11
  220. package/dist/react-native/scripts/generate.js +8 -8
  221. package/dist/react-vite/node/index.js +7 -7
  222. package/dist/react-vite/preset.js +8 -8
  223. package/dist/server-errors.d.ts +1 -1
  224. package/dist/server-errors.js +9 -9
  225. package/dist/shared/open-service/index.d.ts +1 -1
  226. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  227. package/dist/telemetry/index.js +11 -11
  228. package/dist/types/index.d.ts +2 -2
  229. package/package.json +1 -1
  230. package/dist/_node-chunks/chunk-CGVVOUBC.js +0 -18
  231. package/dist/_node-chunks/chunk-QQNRWEHL.js +0 -972
  232. package/dist/_node-chunks/chunk-RAIWLNFA.js +0 -30606
  233. package/dist/_node-chunks/chunk-VYCVBW5Q.js +0 -92
  234. package/dist/_node-chunks/chunk-WYCITRIE.js +0 -11
  235. package/dist/_node-chunks/chunk-ZHRCL7PG.js +0 -148
  236. package/dist/_node-chunks/dist-HBFOS25E.js +0 -16
  237. package/dist/_node-chunks/dist-Q2XNFC24.js +0 -27
  238. package/dist/_node-chunks/optimized-tests-DOKSUJAM.js +0 -22
  239. package/dist/_node-chunks/postinstallAddon-L46G75CD.js +0 -20
  240. package/dist/chunk-CDMZhRke.d.ts +0 -30
@@ -1,9 +1,8 @@
1
- import { Go as SupportedFramework$1, Ko as SupportedBuilder$1, Wo as SupportedRenderer$1, go as StorybookConfigRaw$1 } from "../chunk-ge-rSPy0.js";
2
- import { t as JsPackageManager$1 } from "../chunk-D2CQlXaR.js";
1
+ import { Jo as SupportedFramework$1, Yo as SupportedBuilder$1, qo as SupportedRenderer$1, yo as StorybookConfigRaw$1 } from "../chunk-B53gRJBs.js";
2
+ import { t as JsPackageManager$1 } from "../chunk-bhl-7rRD.js";
3
3
  import { Feature, SupportedBuilder, SupportedFramework, SupportedLanguage, SupportedRenderer } from "@aussieljk/forkbook/internal/types";
4
4
  import * as v from "valibot";
5
5
  import { JsPackageManager, PackageJson as PackageJson$1, PackageManagerName } from "@aussieljk/forkbook/internal/common";
6
- import { CsfValue } from "@aussieljk/forkbook/internal/csf-tools";
7
6
 
8
7
  //#region .dts-emit/code/core/src/cli/helpers.d.ts
9
8
  declare function readFileAsJson(jsonPath: string, allowComments?: boolean): any;
@@ -75,41 +74,6 @@ declare enum ProjectType {
75
74
  //#region .dts-emit/code/core/src/cli/NpmOptions.d.ts
76
75
  type NpmOptions = Parameters<JsPackageManager$1['addDependencies']>[0];
77
76
  //#endregion
78
- //#region .dts-emit/code/core/src/cli/eslintPlugin.d.ts
79
- declare const SUPPORTED_ESLINT_EXTENSIONS: string[];
80
- declare const findEslintFile: (instanceDir: string) => string | undefined;
81
- /**
82
- * Add the recommended Forkbook config to an ESLint flat config, written as `export default` or
83
- * `module.exports =`. Supported config shapes:
84
- *
85
- * 1. `[...]`
86
- * 2. `defineConfig([...])` from `eslint/config`
87
- * 3. `tseslint.config(...)` from `typescript-eslint`
88
- * 4. A top-level variable holding one of the above
89
- *
90
- * For any other ES module config, only the import is added. Any other CommonJS config is left
91
- * unchanged, with a warning to add the Forkbook config manually.
92
- */
93
- declare const configureFlatConfig: (code: string, configFile: string) => Promise<string>;
94
- declare function extractEslintInfo(packageManager: JsPackageManager): Promise<{
95
- hasEslint: boolean;
96
- isStorybookPluginInstalled: boolean;
97
- eslintConfigFile: string | undefined;
98
- unsupportedExtension?: string;
99
- isFlatConfig: boolean;
100
- }>;
101
- declare const normalizeExtends: (existingExtends: CsfValue) => string[];
102
- declare function configureEslintPlugin({
103
- eslintConfigFile,
104
- packageManager,
105
- isFlatConfig
106
- }: {
107
- eslintConfigFile: string | undefined;
108
- packageManager: JsPackageManager;
109
- isFlatConfig: boolean;
110
- }): Promise<void>;
111
- declare const suggestESLintPlugin: () => Promise<boolean>;
112
- //#endregion
113
77
  //#region .dts-emit/code/core/src/cli/globalSettings.d.ts
114
78
  declare const userSettingSchema: v.ObjectSchema<{
115
79
  readonly version: v.NumberSchema<undefined>;
@@ -318,4 +282,4 @@ declare const getStorybookData: ({
318
282
  }>;
319
283
  type GetStorybookData = typeof getStorybookData;
320
284
  //#endregion
321
- export { AddonVitestCompatibilityOptions, AddonVitestService, GetStorybookData, NpmOptions, ProjectType, SUPPORTED_ESLINT_EXTENSIONS, Settings, SkillsInstallResult, SkillsSource, _clearGlobalSettings, addToDevDependenciesIfNotPresent, adjustTemplate, canInstallLatestVitest, cliStoriesTargetPath, coerceSemver, configureEslintPlugin, configureFlatConfig, copyTemplate, copyTemplateFiles, detectIncompatiblePackageVersions, detectLanguage, extractEslintInfo, findEslintFile, getBabelDependencies, getRendererDir, getStorybookData, getVersionSafe, getWorkingDir, globalSettings, hasStorybookDependencies, hasStorybookSkills, installSkills, normalizeExtends, readFileAsJson, suggestESLintPlugin, supportsAiSetup, supportsSkills, writeFileAsJson };
285
+ export { AddonVitestCompatibilityOptions, AddonVitestService, GetStorybookData, NpmOptions, ProjectType, Settings, SkillsInstallResult, SkillsSource, _clearGlobalSettings, addToDevDependenciesIfNotPresent, adjustTemplate, canInstallLatestVitest, cliStoriesTargetPath, coerceSemver, copyTemplate, copyTemplateFiles, detectIncompatiblePackageVersions, detectLanguage, getBabelDependencies, getRendererDir, getStorybookData, getVersionSafe, getWorkingDir, globalSettings, hasStorybookDependencies, hasStorybookSkills, installSkills, readFileAsJson, supportsAiSetup, supportsSkills, writeFileAsJson };
package/dist/cli/index.js CHANGED
@@ -1,20 +1,14 @@
1
- import CJS_COMPAT_NODE_URL_darlhdhnaq7 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_darlhdhnaq7 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_darlhdhnaq7 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_darlhdhnaq7.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_darlhdhnaq7.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_darlhdhnaq7.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
- import {
13
- babelParse,
14
- recast,
15
- traverse,
16
- types
17
- } from "../_node-chunks/chunk-RAIWLNFA.js";
18
12
  import {
19
13
  Settings,
20
14
  _clearGlobalSettings,
@@ -23,33 +17,28 @@ import {
23
17
  getStorybookData,
24
18
  getWorkingDir,
25
19
  globalSettings
26
- } from "../_node-chunks/chunk-GEJBTN76.js";
27
- import "../_node-chunks/chunk-SFXFL4TP.js";
28
- import "../_node-chunks/chunk-EFCBUWOB.js";
29
- import {
30
- detectIndent
31
- } from "../_node-chunks/chunk-VYCVBW5Q.js";
32
- import "../_node-chunks/chunk-NRXCMSAI.js";
33
- import "../_node-chunks/chunk-XUZB4FIX.js";
34
- import "../_node-chunks/chunk-AP4HJ3I3.js";
20
+ } from "../_node-chunks/chunk-ZAIGR7EV.js";
21
+ import "../_node-chunks/chunk-6IPHWCFI.js";
22
+ import "../_node-chunks/chunk-KUL2MJ6N.js";
23
+ import "../_node-chunks/chunk-TGF6Q66I.js";
24
+ import "../_node-chunks/chunk-SXBUK4F6.js";
35
25
  import {
36
- any,
37
- up2 as up
38
- } from "../_node-chunks/chunk-SPAHK37C.js";
26
+ any
27
+ } from "../_node-chunks/chunk-MX5MVLEK.js";
39
28
  import {
40
29
  invariant
41
- } from "../_node-chunks/chunk-KAALBGRE.js";
30
+ } from "../_node-chunks/chunk-GQUFGJ4D.js";
42
31
  import {
43
32
  resolvePackageDir
44
- } from "../_node-chunks/chunk-ZN6YOIB2.js";
45
- import "../_node-chunks/chunk-F762PHMI.js";
46
- import "../_node-chunks/chunk-2CNN3CRI.js";
33
+ } from "../_node-chunks/chunk-PC57BIYZ.js";
34
+ import "../_node-chunks/chunk-7IAYDGYH.js";
35
+ import "../_node-chunks/chunk-HGJMP4EI.js";
47
36
  import {
48
37
  require_picocolors
49
- } from "../_node-chunks/chunk-IENHXJVB.js";
38
+ } from "../_node-chunks/chunk-HCDG54OG.js";
50
39
  import {
51
40
  __toESM
52
- } from "../_node-chunks/chunk-X2GGQZIN.js";
41
+ } from "../_node-chunks/chunk-YMJVSFJT.js";
53
42
 
54
43
  // src/cli/helpers.ts
55
44
  var import_picocolors = __toESM(require_picocolors(), 1);
@@ -190,243 +179,16 @@ function hasStorybookDependencies(packageManager) {
190
179
  // src/cli/projectTypes.ts
191
180
  var ProjectType = /* @__PURE__ */ ((ProjectType2) => (ProjectType2.NEXTJS = "nextjs", ProjectType2.NX = "nx", ProjectType2.REACT = "react", ProjectType2.REACT_NATIVE = "react_native", ProjectType2.UNDETECTED = "undetected", ProjectType2.UNSUPPORTED = "unsupported", ProjectType2))(ProjectType || {});
192
181
 
193
- // src/cli/eslintPlugin.ts
194
- import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
195
- import { getProjectRoot } from "@aussieljk/forkbook/internal/common";
196
- import { readConfig, writeConfig } from "@aussieljk/forkbook/internal/csf-tools";
197
- import { logger as logger2, prompt } from "@aussieljk/forkbook/internal/node-logger";
198
- import { applyEdits, modify, parse as parseJsonc2 } from "jsonc-parser";
199
- var import_picocolors2 = __toESM(require_picocolors(), 1);
200
- import { dedent } from "ts-dedent";
201
- var SUPPORTED_ESLINT_EXTENSIONS = ["ts", "mts", "cts", "mjs", "js", "cjs", "json"], UNSUPPORTED_ESLINT_EXTENSIONS = ["yaml", "yml"], findEslintFile = (instanceDir) => {
202
- let filePrefixes = ["eslint.config", ".eslintrc"];
203
- for (let prefix of filePrefixes)
204
- for (let ext of UNSUPPORTED_ESLINT_EXTENSIONS)
205
- if (up(`${prefix}.${ext}`, { cwd: instanceDir, last: getProjectRoot() }))
206
- throw new Error(`Unsupported ESLint config extension: .${ext}`);
207
- for (let prefix of filePrefixes)
208
- for (let ext of SUPPORTED_ESLINT_EXTENSIONS) {
209
- let file = up(`${prefix}.${ext}`, { cwd: instanceDir, last: getProjectRoot() });
210
- if (file)
211
- return file;
212
- }
213
- }, FORKBOOK_PLUGIN = "eslint-plugin-storybook", FLAT_CONFIG_DOCS_COMMENT = {
214
- type: "CommentLine",
215
- value: " For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format"
216
- };
217
- function unwrapTSExpression(expr) {
218
- return types.isTSAsExpression(expr) || types.isTSSatisfiesExpression(expr) ? unwrapTSExpression(expr.expression) : expr;
219
- }
220
- function isRequireOf(node, source) {
221
- return types.isCallExpression(node) && types.isIdentifier(node.callee, { name: "require" }) && types.isStringLiteral(node.arguments[0], { value: source });
222
- }
223
- function findConfigHelperNames(program) {
224
- let names = { tsEslint: "", defineConfig: "" };
225
- for (let statement of program.body) {
226
- if (types.isImportDeclaration(statement))
227
- for (let specifier of statement.specifiers)
228
- statement.source.value === "typescript-eslint" && types.isImportDefaultSpecifier(specifier) && (names.tsEslint = specifier.local.name), statement.source.value === "eslint/config" && types.isImportSpecifier(specifier) && types.isIdentifier(specifier.imported, { name: "defineConfig" }) && (names.defineConfig = specifier.local.name);
229
- if (types.isVariableDeclaration(statement)) {
230
- for (let { id, init } of statement.declarations)
231
- if (isRequireOf(init, "typescript-eslint") && types.isIdentifier(id) && (names.tsEslint = id.name), isRequireOf(init, "eslint/config") && types.isObjectPattern(id))
232
- for (let property of id.properties)
233
- types.isObjectProperty(property) && types.isIdentifier(property.key, { name: "defineConfig" }) && types.isIdentifier(property.value) && (names.defineConfig = property.value.name);
234
- }
235
- }
236
- return names;
237
- }
238
- function findConfigTarget(expression, scope, helpers, followIdentifier = !0) {
239
- let config = unwrapTSExpression(expression);
240
- if (types.isArrayExpression(config))
241
- return config;
242
- if (types.isIdentifier(config) && followIdentifier) {
243
- let binding = scope.getBinding(config.name);
244
- return binding?.constant && binding.path.isVariableDeclarator() && types.isIdentifier(binding.path.node.id) ? findConfigTarget(binding.path.node.init, scope, helpers, !1) : void 0;
245
- }
246
- if (types.isCallExpression(config)) {
247
- if (helpers.defineConfig && types.isIdentifier(config.callee, { name: helpers.defineConfig })) {
248
- let configs = unwrapTSExpression(config.arguments[0]);
249
- return types.isArrayExpression(configs) ? configs : void 0;
250
- }
251
- if (helpers.tsEslint && types.isMemberExpression(config.callee) && types.isIdentifier(config.callee.object, { name: helpers.tsEslint }) && types.isIdentifier(config.callee.property, { name: "config" }))
252
- return config;
253
- }
254
- }
255
- function addStorybookConfig(target, storybookLocalName) {
256
- let storybookConfig = types.memberExpression(
257
- types.memberExpression(types.identifier(storybookLocalName), types.identifier("configs")),
258
- types.stringLiteral("flat/recommended"),
259
- !0
260
- );
261
- types.isArrayExpression(target) ? target.elements.push(types.spreadElement(storybookConfig)) : target.arguments.push(storybookConfig);
262
- }
263
- function hasStorybookConfig(target, storybookLocalNames) {
264
- return (types.isArrayExpression(target) ? target.elements : target.arguments).some((entry) => {
265
- let config = types.isSpreadElement(entry) ? entry.argument : entry;
266
- if (!types.isMemberExpression(config) || !types.isStringLiteral(config.property, { value: "flat/recommended" }) || !types.isMemberExpression(config.object) || !types.isIdentifier(config.object.property, { name: "configs" }))
267
- return !1;
268
- let plugin = config.object.object;
269
- return types.isIdentifier(plugin) && storybookLocalNames.has(plugin.name) || isRequireOf(plugin, FORKBOOK_PLUGIN);
270
- });
271
- }
272
- function findCommonJsExport(ast) {
273
- let exportedConfig, isSupported = !0;
274
- return traverse(ast, {
275
- AssignmentExpression(path) {
276
- let { left } = path.node;
277
- if (!types.isMemberExpression(left) || !types.isIdentifier(left.object, { name: "module" }) || !left.computed && !types.isIdentifier(left.property, { name: "exports" }))
278
- return;
279
- !left.computed && !exportedConfig && path.node.operator === "=" && path.parentPath?.isExpressionStatement() && path.parentPath.parentPath?.isProgram() ? exportedConfig = path.node.right : isSupported = !1;
280
- }
281
- }), { exportedConfig, isSupported };
282
- }
283
- var configureFlatConfig = async (code, configFile) => {
284
- let ast = babelParse(code), hasStorybookImport = !1, hasDestructuredStorybookRequire = !1, storybookRequires = [], programScope;
285
- if (traverse(ast, {
286
- Program(path) {
287
- programScope = path.scope;
288
- },
289
- ImportDeclaration(path) {
290
- path.node.source.value === FORKBOOK_PLUGIN && (hasStorybookImport = !0, path.stop());
291
- },
292
- CallExpression(path) {
293
- if (types.isImport(path.node.callee) && types.isStringLiteral(path.node.arguments[0], { value: FORKBOOK_PLUGIN })) {
294
- hasStorybookImport = !0, path.stop();
295
- return;
296
- }
297
- let declarator = path.parentPath;
298
- !isRequireOf(path.node, FORKBOOK_PLUGIN) || !declarator?.isVariableDeclarator() || !declarator.parentPath.parentPath?.isProgram() || (types.isIdentifier(declarator.node.id) ? storybookRequires.push({
299
- localName: declarator.node.id.name,
300
- end: declarator.node.end ?? 0
301
- }) : (hasDestructuredStorybookRequire = !0, path.stop()));
302
- }
303
- }), hasStorybookImport || hasDestructuredStorybookRequire || !programScope)
304
- return code;
305
- let helpers = findConfigHelperNames(ast.program), commonJsExport = findCommonJsExport(ast);
306
- if (commonJsExport.exportedConfig || !commonJsExport.isSupported || storybookRequires.length > 0) {
307
- let target2 = commonJsExport.isSupported && findConfigTarget(commonJsExport.exportedConfig, programScope, helpers);
308
- if (!target2)
309
- return logger2.warn(
310
- `Could not automatically add eslint-plugin-storybook to ${configFile}. Please add it manually: const storybook = require('eslint-plugin-storybook'); then add ...storybook.configs['flat/recommended'] to the exported config. See https://forkbook.ljk.dev/docs/configure/integration/eslint-plugin`
311
- ), code;
312
- if (hasStorybookConfig(target2, new Set(storybookRequires.map(({ localName: localName2 }) => localName2))))
313
- return code;
314
- let requiredBeforeTarget = storybookRequires.find(({ end }) => end <= (target2.start ?? 0));
315
- if (requiredBeforeTarget)
316
- return addStorybookConfig(target2, requiredBeforeTarget.localName), recast.print(ast).code;
317
- let localName = "storybook";
318
- for (let suffix = 1; programScope.hasBinding(localName); suffix++)
319
- localName = `_storybook${suffix > 1 ? suffix : ""}`;
320
- addStorybookConfig(target2, localName);
321
- let storybookRequire = types.variableDeclaration("const", [
322
- types.variableDeclarator(
323
- types.identifier(localName),
324
- types.callExpression(types.identifier("require"), [types.stringLiteral(FORKBOOK_PLUGIN)])
325
- )
326
- ]);
327
- return Object.assign(storybookRequire, { comments: [FLAT_CONFIG_DOCS_COMMENT] }), ast.program.body.unshift(storybookRequire), recast.print(ast).code;
328
- }
329
- let exportDefault = ast.program.body.find(
330
- (statement) => types.isExportDefaultDeclaration(statement)
331
- ), target = findConfigTarget(exportDefault?.declaration, programScope, helpers);
332
- target && addStorybookConfig(target, "storybook");
333
- let importDecl = types.importDeclaration(
334
- [types.importDefaultSpecifier(types.identifier("storybook"))],
335
- types.stringLiteral(FORKBOOK_PLUGIN)
336
- );
337
- return Object.assign(importDecl, { comments: [FLAT_CONFIG_DOCS_COMMENT] }), ast.program.body.unshift(importDecl), recast.print(ast).code;
338
- };
339
- async function extractEslintInfo(packageManager) {
340
- let unsupportedExtension, allDependencies = packageManager.getAllDependencies(), { packageJson } = packageManager.primaryPackageJson, eslintConfigFile;
341
- try {
342
- eslintConfigFile = findEslintFile(packageManager.instanceDir);
343
- } catch (err) {
344
- if (err instanceof Error && err.message.includes("Unsupported ESLint"))
345
- unsupportedExtension = String(err);
346
- else
347
- throw err;
348
- }
349
- let isStorybookPluginInstalled = !!allDependencies["eslint-plugin-storybook"];
350
- return {
351
- hasEslint: !!(allDependencies.eslint || eslintConfigFile || packageJson.eslintConfig),
352
- isStorybookPluginInstalled,
353
- eslintConfigFile,
354
- unsupportedExtension,
355
- isFlatConfig: !!(eslintConfigFile && eslintConfigFile.match(/eslint\.config\.[^/]+/))
356
- };
357
- }
358
- var normalizeExtends = (existingExtends) => {
359
- if (!existingExtends)
360
- return [];
361
- if (typeof existingExtends == "string")
362
- return [existingExtends];
363
- if (Array.isArray(existingExtends) && existingExtends.every((extension) => typeof extension == "string"))
364
- return existingExtends;
365
- throw new Error(`Invalid eslint extends ${existingExtends}`);
366
- };
367
- async function configureEslintPlugin({
368
- eslintConfigFile,
369
- packageManager,
370
- isFlatConfig
371
- }) {
372
- if (eslintConfigFile)
373
- if (eslintConfigFile.endsWith("json")) {
374
- logger2.debug(`Detected JSON config at ${eslintConfigFile}`);
375
- let eslintFileContents = await readFile2(eslintConfigFile, { encoding: "utf8" }), eslintConfig = parseJsonc2(eslintFileContents);
376
- if (normalizeExtends(eslintConfig.extends).filter(Boolean).includes("plugin:@aussieljk/forkbook/recommended"))
377
- return;
378
- let formattingOptions = { insertSpaces: !0, tabSize: detectIndent(eslintFileContents).amount || 2 }, plugin = "plugin:@aussieljk/forkbook/recommended", edits = Array.isArray(eslintConfig.extends) ? modify(eslintFileContents, ["extends", -1], plugin, {
379
- formattingOptions,
380
- isArrayInsertion: !0
381
- }) : modify(
382
- eslintFileContents,
383
- ["extends"],
384
- eslintConfig.extends ? [eslintConfig.extends, plugin] : [plugin],
385
- { formattingOptions }
386
- );
387
- await writeFile2(eslintConfigFile, applyEdits(eslintFileContents, edits));
388
- } else if (isFlatConfig) {
389
- logger2.debug(`Detected flat config at ${eslintConfigFile}`);
390
- let code = await readFile2(eslintConfigFile, { encoding: "utf8" }), output = await configureFlatConfig(code, eslintConfigFile);
391
- if (output === code)
392
- return;
393
- await writeFile2(eslintConfigFile, output);
394
- } else {
395
- let eslint = await readConfig(eslintConfigFile), existingExtends = normalizeExtends(eslint.getValue(["extends"])).filter(Boolean);
396
- if (existingExtends.includes("plugin:@aussieljk/forkbook/recommended"))
397
- return;
398
- eslint.set(["extends"], [...existingExtends, "plugin:@aussieljk/forkbook/recommended"]), await writeConfig(eslint);
399
- }
400
- else {
401
- logger2.debug("No ESLint config file found, configuring in package.json instead");
402
- let { packageJson, operationDir } = packageManager.primaryPackageJson, existingExtends = normalizeExtends(packageJson.eslintConfig?.extends).filter(Boolean);
403
- packageJson.eslintConfig = {
404
- ...packageJson.eslintConfig,
405
- extends: [...existingExtends, "plugin:@aussieljk/forkbook/recommended"]
406
- }, packageManager.writePackageJson(packageJson, operationDir);
407
- }
408
- }
409
- var suggestESLintPlugin = async () => await prompt.confirm({
410
- message: dedent`
411
- We have detected that you're using ESLint. Forkbook provides a plugin that gives the best experience with Forkbook and helps follow best practices: ${import_picocolors2.default.yellow(
412
- "https://forkbook.ljk.dev/docs/configure/integration/eslint-plugin"
413
- )}
414
-
415
- Would you like to install it?
416
- `,
417
- initialValue: !0
418
- });
419
-
420
182
  // src/cli/AddonVitestService.ts
421
183
  import fs from "node:fs/promises";
422
184
  import os from "node:os";
423
185
  import { canUpdateVitestConfigFile } from "@aussieljk/forkbook/internal/babel";
424
- import { getProjectRoot as getProjectRoot2 } from "@aussieljk/forkbook/internal/common";
186
+ import { getProjectRoot } from "@aussieljk/forkbook/internal/common";
425
187
  import { CLI_COLORS } from "@aussieljk/forkbook/internal/node-logger";
426
- import { logger as logger3, prompt as prompt2 } from "@aussieljk/forkbook/internal/node-logger";
188
+ import { logger as logger2, prompt } from "@aussieljk/forkbook/internal/node-logger";
427
189
  import { ErrorCollector } from "@aussieljk/forkbook/internal/telemetry";
428
190
  import { coerce as coerce2, intersects, minVersion, satisfies as satisfies2, validRange } from "semver";
429
- import { dedent as dedent2 } from "ts-dedent";
191
+ import { dedent } from "ts-dedent";
430
192
 
431
193
  // src/cli/AddonVitestService.constants.ts
432
194
  var SUPPORTED_FRAMEWORKS = [
@@ -503,13 +265,13 @@ var canInstallLatestVitest = (allDependencies) => {
503
265
  if (process.env.FORKBOOK_CLI_SKIP_PLAYWRIGHT_INSTALLATION)
504
266
  return result = "skipped", { errors, result };
505
267
  try {
506
- (options.yes ? !0 : await (async () => (logger3.log(dedent2`
268
+ (options.yes ? !0 : await (async () => (logger2.log(dedent`
507
269
  Playwright browser binaries are necessary for @aussieljk/forkbook/addon-vitest. The download can take some time. If you don't want to wait, you can skip the installation and run the following command manually later:
508
270
  ${CLI_COLORS.cta(playwrightCommandString)}
509
- `), prompt2.confirm({
271
+ `), prompt.confirm({
510
272
  message: "Do you want to install Playwright with Chromium now?",
511
273
  initialValue: !0
512
- })))()) ? await prompt2.executeTaskWithSpinner(
274
+ })))()) ? await prompt.executeTaskWithSpinner(
513
275
  (signal) => this.packageManager.runPackageCommand({
514
276
  args: playwrightCommand,
515
277
  useRemotePkg: options.useRemotePkg,
@@ -523,12 +285,12 @@ var canInstallLatestVitest = (allDependencies) => {
523
285
  success: "Playwright browser binaries installed successfully",
524
286
  abortable: !0
525
287
  }
526
- ) ? result = "aborted" : (result = "installed", useWithDeps || logger3.warn(dedent2`
288
+ ) ? result = "aborted" : (result = "installed", useWithDeps || logger2.warn(dedent`
527
289
  Playwright was installed without system dependencies. Depending on your operating system, you may need to install additional libraries for Playwright to work correctly.
528
290
  To check for missing dependencies, run Forkbook Test from the Forkbook UI — it will report any libraries that need to be installed.
529
291
  On MacOS, Windows, Debian and Ubuntu, you can install system dependencies manually by running:
530
292
  ${CLI_COLORS.cta(this.packageManager.getPackageCommand(["playwright", "install", "chromium", "--with-deps"]))}
531
- `)) : (logger3.warn("Playwright installation skipped"), result = "skipped");
293
+ `)) : (logger2.warn("Playwright installation skipped"), result = "skipped");
532
294
  } catch (e) {
533
295
  result = "failed", ErrorCollector.addError(e), e instanceof Error ? errors.push(e.stack ?? e.message) : errors.push(String(e));
534
296
  }
@@ -579,7 +341,7 @@ var canInstallLatestVitest = (allDependencies) => {
579
341
  * Public method that can be used by both postinstall and @aussieljk/forkbook/internal/create flows
580
342
  */
581
343
  async validateConfigFiles(directory) {
582
- let reasons = [], projectRoot = getProjectRoot2(), vitestConfigFile = any(
344
+ let reasons = [], projectRoot = getProjectRoot(), vitestConfigFile = any(
583
345
  ["ts", "js", "tsx", "jsx", "cts", "cjs", "mts", "mjs"].map((ex) => `vitest.config.${ex}`),
584
346
  { cwd: directory, last: projectRoot }
585
347
  );
@@ -594,10 +356,10 @@ var canInstallLatestVitest = (allDependencies) => {
594
356
  };
595
357
 
596
358
  // src/cli/installSkills.ts
597
- import { readFile as readFile3 } from "node:fs/promises";
359
+ import { readFile as readFile2 } from "node:fs/promises";
598
360
  import { join as join3 } from "node:path";
599
- import { getProjectRoot as getProjectRoot3, isCI } from "@aussieljk/forkbook/internal/common";
600
- import { CLI_COLORS as CLI_COLORS2, logger as logger4 } from "@aussieljk/forkbook/internal/node-logger";
361
+ import { getProjectRoot as getProjectRoot2, isCI } from "@aussieljk/forkbook/internal/common";
362
+ import { CLI_COLORS as CLI_COLORS2, logger as logger3 } from "@aussieljk/forkbook/internal/node-logger";
601
363
  import { isTelemetryModuleEnabled } from "@aussieljk/forkbook/internal/telemetry";
602
364
  import { SupportedBuilder as SupportedBuilder2, SupportedRenderer } from "@aussieljk/forkbook/internal/types";
603
365
  var SKILLS_REPO = "storybookjs/skills", SKILLS_REF = `${SKILLS_REPO}#v11.0.0-alpha.6`;
@@ -610,7 +372,7 @@ function supportsAiSetup(renderer, builder, framework) {
610
372
  async function hasStorybookSkills() {
611
373
  try {
612
374
  let lock = JSON.parse(
613
- await readFile3(join3(getProjectRoot3(), "skills-lock.json"), "utf8")
375
+ await readFile2(join3(getProjectRoot2(), "skills-lock.json"), "utf8")
614
376
  );
615
377
  return Object.values(lock.skills ?? {}).some(
616
378
  (skill) => skill.source?.toLowerCase().includes(SKILLS_REPO)
@@ -636,20 +398,20 @@ async function installSkills({
636
398
  "universal",
637
399
  "--copy"
638
400
  ];
639
- logger4.log(CLI_COLORS2.cta(packageManager.getRemoteRunCommand(args)));
401
+ logger3.log(CLI_COLORS2.cta(packageManager.getRemoteRunCommand(args)));
640
402
  try {
641
403
  await packageManager.runPackageCommand({
642
404
  args,
643
405
  useRemotePkg: !0,
644
- cwd: getProjectRoot3(),
406
+ cwd: getProjectRoot2(),
645
407
  stdio,
646
408
  env: isTelemetryModuleEnabled() ? {} : { DISABLE_TELEMETRY: "1" },
647
409
  timeout: 12e4
648
410
  });
649
411
  } catch (error) {
650
- logger4.warn(
412
+ logger3.warn(
651
413
  `Could not install the Forkbook skills, continuing without them. Install them later with: ${packageManager.getRemoteRunCommand(["skills@latest", "add", skillsRef])}`
652
- ), logger4.debug(error);
414
+ ), logger3.debug(error);
653
415
  let exitCode = error?.data?.exitCode;
654
416
  return {
655
417
  result: "failed",
@@ -657,14 +419,13 @@ async function installSkills({
657
419
  exitCode: typeof exitCode == "number" ? exitCode : void 0
658
420
  };
659
421
  }
660
- return logger4.log(
422
+ return logger3.log(
661
423
  `Remove the Forkbook skills with: ${packageManager.getRemoteRunCommand(["skills@latest", "remove"])}`
662
424
  ), { result: "installed", source };
663
425
  }
664
426
  export {
665
427
  AddonVitestService,
666
428
  ProjectType,
667
- SUPPORTED_ESLINT_EXTENSIONS,
668
429
  Settings,
669
430
  _clearGlobalSettings,
670
431
  addToDevDependenciesIfNotPresent,
@@ -672,14 +433,10 @@ export {
672
433
  canInstallLatestVitest,
673
434
  cliStoriesTargetPath,
674
435
  coerceSemver,
675
- configureEslintPlugin,
676
- configureFlatConfig,
677
436
  copyTemplate,
678
437
  copyTemplateFiles,
679
438
  detectIncompatiblePackageVersions,
680
439
  detectLanguage,
681
- extractEslintInfo,
682
- findEslintFile,
683
440
  getBabelDependencies,
684
441
  getRendererDir,
685
442
  getStorybookData,
@@ -689,9 +446,7 @@ export {
689
446
  hasStorybookDependencies,
690
447
  hasStorybookSkills,
691
448
  installSkills,
692
- normalizeExtends,
693
449
  readFileAsJson,
694
- suggestESLintPlugin,
695
450
  supportsAiSetup,
696
451
  supportsSkills,
697
452
  writeFileAsJson
@@ -66,7 +66,7 @@ declare function buildStoryInstructions({
66
66
  docsEnabled
67
67
  }: StoryInstructionsInputs): string;
68
68
  //#endregion
69
- //#region .dts-emit/code/core/src/cli/skills/content/framework-renderer.d.ts
69
+ //#region .dts-emit/code/core/src/shared/utils/framework-renderer.d.ts
70
70
  declare const frameworkToRendererMap: Record<string, string>;
71
71
  //#endregion
72
72
  export { SKILLS, SKILL_IDS, type ServerInstructionsInputs, type SkillId, type SkillTransport, type StoryInstructionsInputs, buildServerInstructions, buildStoryInstructions, frameworkToRendererMap, getFinalLinksGuidance, getSkillRef, isSkillId };
@@ -90,7 +90,7 @@ function buildServerInstructions({
90
90
  `);
91
91
  }
92
92
 
93
- // src/cli/skills/content/framework-renderer.ts
93
+ // src/shared/utils/framework-renderer.ts
94
94
  var frameworkToRendererMap = {
95
95
  "@aussieljk/forkbook/react-vite": "@aussieljk/forkbook/react",
96
96
  "@aussieljk/forkbook/nextjs-vite": "@aussieljk/forkbook/react"
@@ -1,4 +1,4 @@
1
- import { d as ToolsStorybookInfo, o as ToolsClientInfo } from "../../../chunk-BsO65uOb.js";
1
+ import { d as ToolsStorybookInfo, o as ToolsClientInfo } from "../../../chunk-CRmUwbkb.js";
2
2
 
3
3
  //#region .dts-emit/code/core/src/shared/open-service/service-error-serialization.d.ts
4
4
  /**
@@ -1,31 +1,31 @@
1
- import CJS_COMPAT_NODE_URL_darlhdhnaq7 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_darlhdhnaq7 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_darlhdhnaq7 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_darlhdhnaq7.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_darlhdhnaq7.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_darlhdhnaq7.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  createTools
14
- } from "../../../_node-chunks/chunk-OMMQME7G.js";
15
- import "../../../_node-chunks/chunk-WTPHQ2NG.js";
14
+ } from "../../../_node-chunks/chunk-ZCFXEFR6.js";
15
+ import "../../../_node-chunks/chunk-GJMFISS3.js";
16
16
  import {
17
17
  ToolsRuntimeError
18
- } from "../../../_node-chunks/chunk-XVSUIOZA.js";
19
- import "../../../_node-chunks/chunk-VNZF62KE.js";
20
- import "../../../_node-chunks/chunk-WDANLGYN.js";
21
- import "../../../_node-chunks/chunk-IIGBIVK3.js";
18
+ } from "../../../_node-chunks/chunk-FCK5FM6D.js";
19
+ import "../../../_node-chunks/chunk-5QG6AXK4.js";
20
+ import "../../../_node-chunks/chunk-7P67PUU2.js";
21
+ import "../../../_node-chunks/chunk-6HQJJDLH.js";
22
22
  import {
23
23
  serializeError
24
- } from "../../../_node-chunks/chunk-7CWDZLIZ.js";
25
- import "../../../_node-chunks/chunk-QEYWG5C7.js";
26
- import "../../../_node-chunks/chunk-2CNN3CRI.js";
27
- import "../../../_node-chunks/chunk-IENHXJVB.js";
28
- import "../../../_node-chunks/chunk-X2GGQZIN.js";
24
+ } from "../../../_node-chunks/chunk-54MO4QLB.js";
25
+ import "../../../_node-chunks/chunk-3335ZZIO.js";
26
+ import "../../../_node-chunks/chunk-HGJMP4EI.js";
27
+ import "../../../_node-chunks/chunk-HCDG54OG.js";
28
+ import "../../../_node-chunks/chunk-YMJVSFJT.js";
29
29
 
30
30
  // src/cli/tools/sdk/child-host.ts
31
31
  import { pathToFileURL } from "node:url";
@@ -1,8 +1,8 @@
1
1
  import { h as Channel } from "../../../chunk-r-Vjut9o.js";
2
2
  import { f as ToolsetOutcome } from "../../../chunk-BtKww7r1.js";
3
- import { C as attachGateReasonFromError, E as StorybookInstanceRecord, S as ToolsRuntimeErrorReason, T as ToolsRuntime, _ as AttachUnavailableReason, a as ToolsCallOptions, b as ToolsAttachGateReason, c as ToolsHostKind, d as ToolsStorybookInfo, f as ToolsetCatalog, g as AttachUnavailableError, h as ToolsetJsonSchema, i as Tools, l as ToolsMode, m as ToolsetCatalogMethod, n as CreateToolsOptions, o as ToolsClientInfo, p as ToolsetCatalogEntry, r as LocalTools, s as ToolsDescribeOptions, t as AttachedTools, u as ToolsSiblingInstance, v as EnvironmentMismatchError, w as isAttachGateError, x as ToolsRuntimeError, y as SpawnFailedError } from "../../../chunk-BsO65uOb.js";
4
- import { fork } from "node:child_process";
3
+ import { C as attachGateReasonFromError, E as StorybookInstanceRecord, S as ToolsRuntimeErrorReason, T as ToolsRuntime, _ as AttachUnavailableReason, a as ToolsCallOptions, b as ToolsAttachGateReason, c as ToolsHostKind, d as ToolsStorybookInfo, f as ToolsetCatalog, g as AttachUnavailableError, h as ToolsetJsonSchema, i as Tools, l as ToolsMode, m as ToolsetCatalogMethod, n as CreateToolsOptions, o as ToolsClientInfo, p as ToolsetCatalogEntry, r as LocalTools, s as ToolsDescribeOptions, t as AttachedTools, u as ToolsSiblingInstance, v as EnvironmentMismatchError, w as isAttachGateError, x as ToolsRuntimeError, y as SpawnFailedError } from "../../../chunk-CRmUwbkb.js";
5
4
  import { logger } from "@aussieljk/forkbook/internal/node-logger";
5
+ import { fork } from "node:child_process";
6
6
 
7
7
  //#region .dts-emit/code/core/src/cli/tools/sdk/node-channel.d.ts
8
8
  interface NodeChannelConnection {