@aussieljk/forkbook 0.0.1-5 → 0.0.1-6

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 (306) hide show
  1. package/dist/_browser-chunks/{Color-GTF4GM7L.js → Color-2BMQTRYG.js} +1 -1
  2. package/dist/_browser-chunks/WithTooltip-GJACFWKM.js +196 -0
  3. package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
  4. package/dist/_browser-chunks/chunk-6EJEEII7.js +1149 -0
  5. package/dist/_browser-chunks/{chunk-MJY6ITYT.js → chunk-6IKB2UHQ.js} +10 -10
  6. package/dist/_browser-chunks/chunk-DPRGR3QP.js +5995 -0
  7. package/dist/_browser-chunks/{chunk-K6GRZSXS.js → chunk-EQKMUQF3.js} +4 -3
  8. package/dist/_browser-chunks/{chunk-GU3X2J4S.js → chunk-FRAOQJDI.js} +3 -1
  9. package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-H4ZHAXN3.js} +1 -1
  10. package/dist/_browser-chunks/{chunk-ZLWA5RIE.js → chunk-I4ATZPNZ.js} +1 -1
  11. package/dist/_browser-chunks/{chunk-6SHRDXGF.js → chunk-IJYLSHY7.js} +173 -87
  12. package/dist/_browser-chunks/{chunk-SZCSXISG.js → chunk-NA4ITZTK.js} +7 -5
  13. package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
  14. package/dist/_browser-chunks/{chunk-K2B36HKM.js → chunk-O24AZJZ7.js} +1 -1
  15. package/dist/_browser-chunks/{chunk-HOSBMS2F.js → chunk-QAHDGPZ7.js} +1 -1
  16. package/dist/_browser-chunks/{chunk-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
  17. package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
  18. package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-X7D777E6.js} +547 -1622
  19. package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
  20. package/dist/_node-chunks/{attached-runtime-IOE3BXIY.js → attached-runtime-EBWIOQZN.js} +29 -29
  21. package/dist/_node-chunks/{builder-manager-GDFEGD72.js → builder-manager-ETBLZ2RH.js} +130 -146
  22. package/dist/_node-chunks/{chunk-VN3A5CEH.js → chunk-252Y5WHZ.js} +7 -7
  23. package/dist/_node-chunks/{chunk-7XUQM6SR.js → chunk-25PXULSJ.js} +14 -14
  24. package/dist/_node-chunks/chunk-2DBJWMYE.js +495 -0
  25. package/dist/_node-chunks/{chunk-WMQ2VCTF.js → chunk-3UWWRDA5.js} +7 -7
  26. package/dist/_node-chunks/{chunk-BFZG4UTW.js → chunk-4KCQYJT6.js} +7 -7
  27. package/dist/_node-chunks/{chunk-KQFHT7SW.js → chunk-4MJIPOJ5.js} +6 -6
  28. package/dist/_node-chunks/{chunk-YLKS7U3M.js → chunk-4WLIN3VZ.js} +8 -8
  29. package/dist/_node-chunks/{chunk-E6KXSYWR.js → chunk-4XNPO23I.js} +6 -6
  30. package/dist/_node-chunks/{chunk-J64XMUPF.js → chunk-5T635FTI.js} +10 -10
  31. package/dist/_node-chunks/{chunk-HCX5R46Q.js → chunk-5Z6MT4RI.js} +8 -8
  32. package/dist/_node-chunks/{chunk-A4XRNDN4.js → chunk-644CUCK5.js} +7 -7
  33. package/dist/_node-chunks/{chunk-GR65OLAH.js → chunk-7E27CGRU.js} +7 -7
  34. package/dist/_node-chunks/{chunk-TZ2TZW2K.js → chunk-A35J7YYA.js} +6 -6
  35. package/dist/_node-chunks/{chunk-3DX6THMV.js → chunk-ALHPFKVB.js} +8 -8
  36. package/dist/_node-chunks/{chunk-AXQ6LLSE.js → chunk-ANDQVXYX.js} +8 -8
  37. package/dist/_node-chunks/{chunk-UW35FCXF.js → chunk-AS4SFRCZ.js} +6 -6
  38. package/dist/_node-chunks/{chunk-SJZQ44OR.js → chunk-BLUMKQQB.js} +6 -6
  39. package/dist/_node-chunks/{chunk-5LE7GXEC.js → chunk-C5JG7EKF.js} +6 -6
  40. package/dist/_node-chunks/{chunk-AXG3EMKS.js → chunk-CBUQY454.js} +7 -15
  41. package/dist/_node-chunks/{chunk-BBD2KUV4.js → chunk-CF7KLGUW.js} +22 -20
  42. package/dist/_node-chunks/{chunk-V45RRBTK.js → chunk-CGVPHZVD.js} +8 -8
  43. package/dist/_node-chunks/{chunk-MCZZMBPA.js → chunk-DABFUVLR.js} +6 -6
  44. package/dist/_node-chunks/{chunk-TYCDPVIH.js → chunk-DCNZ6SFN.js} +6 -6
  45. package/dist/_node-chunks/{chunk-6DOJKR3V.js → chunk-DDGW2EBW.js} +29843 -51588
  46. package/dist/_node-chunks/{chunk-Q33BYVLY.js → chunk-DRLBJM6X.js} +7 -7
  47. package/dist/_node-chunks/{chunk-AAAUVDWT.js → chunk-E3O7VAPG.js} +10 -10
  48. package/dist/_node-chunks/{chunk-L5CY6HKG.js → chunk-FIFCNBTL.js} +7 -7
  49. package/dist/_node-chunks/{chunk-SDXU22OH.js → chunk-FQWTUSYB.js} +6 -6
  50. package/dist/_node-chunks/{chunk-LCXIUTOU.js → chunk-G6YNW4FK.js} +7 -7
  51. package/dist/_node-chunks/{chunk-OSJFTZ5N.js → chunk-GDFQQO5U.js} +6 -6
  52. package/dist/_node-chunks/{chunk-SAAQFJL4.js → chunk-GGTXOH3W.js} +6 -6
  53. package/dist/_node-chunks/{chunk-ZZNBVMBU.js → chunk-GIOREKIG.js} +7 -7
  54. package/dist/_node-chunks/{chunk-MDGNN3FJ.js → chunk-GOFK4EKU.js} +6 -6
  55. package/dist/_node-chunks/{chunk-SUJXQU74.js → chunk-GQ3HJNIH.js} +10 -13
  56. package/dist/_node-chunks/{chunk-RCPKLP3X.js → chunk-GRTI5653.js} +7 -7
  57. package/dist/_node-chunks/{chunk-ES5QZBSB.js → chunk-HKL3VOYX.js} +6 -6
  58. package/dist/_node-chunks/{chunk-T2I453AJ.js → chunk-HUPRQZ3I.js} +7 -7
  59. package/dist/_node-chunks/{chunk-VJSOHPVD.js → chunk-HWRHYM7Z.js} +6 -6
  60. package/dist/_node-chunks/{chunk-U47PBQZ3.js → chunk-I7HRDCNY.js} +10 -10
  61. package/dist/_node-chunks/{chunk-GS4VNNSS.js → chunk-IFPMZ247.js} +6 -6
  62. package/dist/_node-chunks/{chunk-EWAGCBER.js → chunk-J6M5CRYZ.js} +8 -8
  63. package/dist/_node-chunks/{chunk-45LRLOYO.js → chunk-JPXJI6QR.js} +60 -134
  64. package/dist/_node-chunks/{chunk-NYWD5LYM.js → chunk-JS2J2SKX.js} +6 -6
  65. package/dist/_node-chunks/{chunk-BV3QRFE6.js → chunk-JZWF3XLN.js} +6 -6
  66. package/dist/_node-chunks/{chunk-QQXFB4YA.js → chunk-KF3FT3NI.js} +9 -9
  67. package/dist/_node-chunks/chunk-KWPWQA7G.js +2609 -0
  68. package/dist/_node-chunks/{chunk-VBSVLIXU.js → chunk-L4JGWK4K.js} +6 -6
  69. package/dist/_node-chunks/{chunk-MHDKWHOA.js → chunk-LFIFBDMS.js} +6 -6
  70. package/dist/_node-chunks/{chunk-3DCJB2D4.js → chunk-LWKLJYYQ.js} +6 -6
  71. package/dist/_node-chunks/{chunk-XUHEL63G.js → chunk-LXVSVTQ3.js} +6 -6
  72. package/dist/_node-chunks/chunk-MDW3GSU3.js +69 -0
  73. package/dist/_node-chunks/{chunk-WHDCECIV.js → chunk-MFN2XBPL.js} +7 -7
  74. package/dist/_node-chunks/{chunk-5KAJVK4E.js → chunk-MQFB44YS.js} +7 -7
  75. package/dist/_node-chunks/{chunk-OTFIQXHR.js → chunk-MZ2GSR3G.js} +22 -50
  76. package/dist/_node-chunks/{chunk-AX2ALHBK.js → chunk-N7HEOGTM.js} +9 -6
  77. package/dist/_node-chunks/{chunk-NDGTNFUN.js → chunk-NUAQC3XP.js} +16 -13
  78. package/dist/_node-chunks/{chunk-F4Q7OCCN.js → chunk-NX6CSWF3.js} +8 -8
  79. package/dist/_node-chunks/{chunk-I3DKGHVD.js → chunk-NZ7EQWYA.js} +9 -9
  80. package/dist/_node-chunks/{chunk-UKEJISQU.js → chunk-OLGIDCVD.js} +650 -9
  81. package/dist/_node-chunks/{chunk-AXJJB2K6.js → chunk-P65JVLO3.js} +8 -8
  82. package/dist/_node-chunks/{chunk-2GY2FKLH.js → chunk-PAN35AYX.js} +7 -7
  83. package/dist/_node-chunks/{chunk-7TUSIVWS.js → chunk-PLWLCVP2.js} +6 -6
  84. package/dist/_node-chunks/{chunk-SR3BCYEH.js → chunk-Q4BEWGMK.js} +6 -6
  85. package/dist/_node-chunks/{chunk-FA36CEN4.js → chunk-QNUXGVZZ.js} +6 -6
  86. package/dist/_node-chunks/{chunk-OB2XHL53.js → chunk-R5DWO2S2.js} +31 -30
  87. package/dist/_node-chunks/{chunk-D6B2DRQZ.js → chunk-SLZV7PTQ.js} +8 -8
  88. package/dist/_node-chunks/{chunk-BTFSFATC.js → chunk-TIRP5JQM.js} +11 -10
  89. package/dist/_node-chunks/{chunk-YTBTCM22.js → chunk-TMXWDY2O.js} +6 -6
  90. package/dist/_node-chunks/{chunk-HWY2CAUH.js → chunk-TN3ULFFZ.js} +6 -6
  91. package/dist/_node-chunks/{chunk-M2QB5ALN.js → chunk-TPSJW4CQ.js} +6 -6
  92. package/dist/_node-chunks/{chunk-6QQTZT3Z.js → chunk-TYBPAV3X.js} +6 -6
  93. package/dist/_node-chunks/chunk-UUE3PSJB.js +11 -0
  94. package/dist/_node-chunks/chunk-VKNRNBTB.js +18 -0
  95. package/dist/_node-chunks/{chunk-LSP54OYM.js → chunk-VPU4E7DI.js} +25 -8
  96. package/dist/_node-chunks/{chunk-CGXW2HFE.js → chunk-WIQ6Y3NX.js} +6 -6
  97. package/dist/_node-chunks/{chunk-E4C2H45J.js → chunk-WRG3CFGS.js} +6 -6
  98. package/dist/_node-chunks/{chunk-N4FLP7AO.js → chunk-X3RTVNRN.js} +7 -7
  99. package/dist/_node-chunks/chunk-XOGU5PWI.js +347 -0
  100. package/dist/_node-chunks/{chunk-QZVFIEOM.js → chunk-XWGMQW2H.js} +6 -6
  101. package/dist/_node-chunks/chunk-YCXTTQ7K.js +620 -0
  102. package/dist/_node-chunks/{chunk-JJNO3SFI.js → chunk-YHH57LHY.js} +9 -9
  103. package/dist/_node-chunks/{chunk-ZPPVG262.js → chunk-YMZ2SGFK.js} +6 -6
  104. package/dist/_node-chunks/{chunk-B2IOB2V3.js → chunk-YNENOZRY.js} +7 -7
  105. package/dist/_node-chunks/{chunk-4WO3GNZQ.js → chunk-YPGVYNJB.js} +6 -6
  106. package/dist/_node-chunks/{chunk-RECGEABN.js → chunk-YQDBSAXW.js} +7 -7
  107. package/dist/_node-chunks/{chunk-UM5G27IC.js → chunk-Z4NZLBOX.js} +7 -7
  108. package/dist/_node-chunks/{chunk-E4TBS4MV.js → chunk-ZC3ZZKMS.js} +8 -8
  109. package/dist/_node-chunks/{chunk-PHXCOTMO.js → chunk-ZCITDAV4.js} +34 -949
  110. package/dist/_node-chunks/chunk-ZNSGFYAT.js +25 -0
  111. package/dist/_node-chunks/{chunk-CK4EHW3K.js → chunk-ZSH6BUCW.js} +25 -25
  112. package/dist/_node-chunks/{chunk-KCAPE7OJ.js → chunk-ZTFNOXZF.js} +6 -6
  113. package/dist/_node-chunks/dist-GGTGKXZA.js +27 -0
  114. package/dist/_node-chunks/dist-NS676VJR.js +16 -0
  115. package/dist/_node-chunks/{local-runtime-RW6AAWSX.js → local-runtime-BUTEKJYV.js} +20 -20
  116. package/dist/_node-chunks/{mdx-plugin-BKWCT6CB.js → mdx-plugin-7WXQIHPV.js} +2263 -130
  117. package/dist/_node-chunks/{monorepo-ZFJ6HM34.js → monorepo-NCD3X2BR.js} +11 -11
  118. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-C3EW4VJW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-SD3B272K.js} +11 -11
  119. package/dist/_node-chunks/optimized-tests-ITVOHEOA.js +22 -0
  120. package/dist/_node-chunks/{pattern-copy-play-2ZMJNCBS.js → pattern-copy-play-3QJANDJD.js} +9 -9
  121. package/dist/_node-chunks/postinstallAddon-LEUHOKX6.js +20 -0
  122. package/dist/_node-chunks/{rehype-external-links-RT5Z62RV.js → rehype-external-links-4LR5BDR2.js} +9 -9
  123. package/dist/_node-chunks/{rehype-slug-H5TWHJ6G.js → rehype-slug-PWFRGOEV.js} +9 -9
  124. package/dist/_node-chunks/{relaxed-limits-DYLWZGE4.js → relaxed-limits-VNNWUW7X.js} +11 -11
  125. package/dist/_node-chunks/{run-65LLGSVR.js → run-RUAAWEQT.js} +13 -13
  126. package/dist/_node-chunks/{run-BQQLK454.js → run-YK6ARCWS.js} +17 -17
  127. package/dist/_node-chunks/session-id-JJYVZAKO.js +23 -0
  128. package/dist/_node-chunks/{setup-NEO7XX66.js → setup-4QKCICV6.js} +8 -8
  129. package/dist/_node-chunks/{vitest.config.4.template-6P3FZQTY.js → vitest.config.4.template-WVFLIXN7.js} +7 -7
  130. package/dist/actions/decorator.js +2 -1
  131. package/dist/actions/index.js +2 -1
  132. package/dist/addon-a11y/index.js +2 -1
  133. package/dist/addon-a11y/manager.js +7 -6
  134. package/dist/addon-a11y/preset.js +7 -7
  135. package/dist/addon-a11y/preview.js +2 -1
  136. package/dist/addon-docs/blocks.js +29 -15
  137. package/dist/addon-docs/manager.js +2 -2
  138. package/dist/addon-docs/preset.js +10 -10
  139. package/dist/addon-links/index.js +3 -2
  140. package/dist/addon-links/preview.d.ts +1 -1
  141. package/dist/addon-links/preview.js +3 -2
  142. package/dist/addon-links/react/index.js +2 -1
  143. package/dist/addon-mcp/preset.js +8 -8
  144. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +16 -44
  145. package/dist/addon-ondevice-actions/index.js +5 -1
  146. package/dist/addon-ondevice-actions/register.js +5 -1
  147. package/dist/addon-themes/postinstall.js +7 -7
  148. package/dist/addon-vitest/constants.js +8 -8
  149. package/dist/addon-vitest/manager.js +3 -3
  150. package/dist/addon-vitest/node/coverage-reporter.js +8 -8
  151. package/dist/addon-vitest/node/vitest.js +16 -16
  152. package/dist/addon-vitest/postinstall.js +10 -10
  153. package/dist/addon-vitest/preset.js +15 -16
  154. package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
  155. package/dist/addon-vitest/vitest-plugin/index.js +17 -17
  156. package/dist/babel/index.d.ts +91 -842
  157. package/dist/babel/index.js +13 -19
  158. package/dist/bin/core.js +61 -60
  159. package/dist/bin/dispatcher.js +10 -10
  160. package/dist/bin/loader.js +16 -15
  161. package/dist/builder-vite/index.js +15 -15
  162. package/dist/builder-vite/preset.js +13 -13
  163. package/dist/{chunk-Jf7j2Ot0.d.ts → chunk-BGhyFTJO.d.ts} +1 -1
  164. package/dist/chunk-CV4-Z2pn.d.ts +30 -0
  165. package/dist/{chunk-Ce6uhJuR.d.ts → chunk-CVY28Ngy.d.ts} +1 -1
  166. package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
  167. package/dist/{chunk-CZHsX9Zo.d.ts → chunk-ClI-HEh5.d.ts} +1 -1
  168. package/dist/{chunk-DpljNJTz.d.ts → chunk-CzmZhVrn.d.ts} +34 -0
  169. package/dist/cli/index.d.ts +13 -866
  170. package/dist/cli/index.js +42 -4952
  171. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  172. package/dist/cli/tools/sdk/child-host.js +17 -17
  173. package/dist/cli/tools/sdk/index.d.ts +1 -1
  174. package/dist/cli/tools/sdk/index.js +18 -18
  175. package/dist/cli-commands/bin/index.js +7 -7
  176. package/dist/client-logger/index.js +3 -1
  177. package/dist/common/index.d.ts +5 -4
  178. package/dist/common/index.js +35 -37
  179. package/dist/components/index.d.ts +14 -231
  180. package/dist/components/index.js +2514 -8361
  181. package/dist/core-events/index.d.ts +3 -2
  182. package/dist/core-events/index.js +3 -1
  183. package/dist/core-server/index.d.ts +2 -2
  184. package/dist/core-server/index.js +450 -147
  185. package/dist/core-server/presets/common-manager.js +60 -864
  186. package/dist/core-server/presets/common-override-preset.js +12 -10
  187. package/dist/core-server/presets/common-preset.js +39 -40
  188. package/dist/create/bin/index.js +7 -7
  189. package/dist/create/index.js +15 -15
  190. package/dist/csf/index.d.ts +1 -1
  191. package/dist/csf/index.js +27 -93
  192. package/dist/csf-tools/index.d.ts +2 -12
  193. package/dist/csf-tools/index.js +14 -14
  194. package/dist/instrumenter/index.js +3 -1
  195. package/dist/manager/_manager-chunks/{globals-runtime-Cr3nYYcT.js → globals-runtime-B-IeQLQu.js} +57 -58
  196. package/dist/manager/_manager-chunks/{globals-runtime-zVfMhZAt.js → globals-runtime-B5-0Ccbv.js} +1 -1
  197. package/dist/manager/_manager-chunks/{globals-runtime-DqNrRmOM.js → globals-runtime-B71TiXST.js} +93 -2146
  198. package/dist/manager/_manager-chunks/{globals-runtime-BgVwdR45.js → globals-runtime-BUP5e_t9.js} +1 -1
  199. package/dist/manager/_manager-chunks/{globals-runtime-Bke4A4DG.js → globals-runtime-C7mqoHpE.js} +1 -1
  200. package/dist/manager/_manager-chunks/{globals-runtime-DCOX9nD5.js → globals-runtime-CBviMKtt.js} +1 -17
  201. package/dist/manager/_manager-chunks/{globals-runtime-ALpzCL93.js → globals-runtime-CYNosEiD.js} +1 -2
  202. package/dist/manager/_manager-chunks/{globals-runtime-BcNHymiF.js → globals-runtime-C_evJrEn.js} +1 -1
  203. package/dist/manager/_manager-chunks/{globals-runtime-DW1HVuLt.js → globals-runtime-CdgVeAbk.js} +408 -377
  204. package/dist/manager/_manager-chunks/{globals-runtime-CTB3rhS1.js → globals-runtime-Cqn8KdSZ.js} +4 -4
  205. package/dist/manager/_manager-chunks/{globals-runtime-D_YKR9nf.js → globals-runtime-CrIF09P8.js} +1246 -539
  206. package/dist/manager/_manager-chunks/{globals-runtime-m07udJ_K.js → globals-runtime-Ct1kY4wb.js} +637 -1730
  207. package/dist/manager/_manager-chunks/globals-runtime-CvyFEPIY.js +5282 -0
  208. package/dist/manager/_manager-chunks/{globals-runtime-CF4o9_wT.js → globals-runtime-DMBjo1QS.js} +2 -1
  209. package/dist/manager/_manager-chunks/{globals-runtime-CXKb33hg.js → globals-runtime-DUK6bGcb.js} +51 -24
  210. package/dist/manager/_manager-chunks/{globals-runtime-CUBVmgcG.js → globals-runtime-DedfO-DP.js} +4 -4
  211. package/dist/manager/_manager-chunks/{globals-runtime-DMvB3-IM.js → globals-runtime-DqhIYwLp.js} +148 -136
  212. package/dist/manager/_manager-chunks/{globals-runtime-CiLcg4q9.js → globals-runtime-XSxCU7PR.js} +1 -1
  213. package/dist/manager/_manager-chunks/{runtime-DFhLVh8q.js → runtime-BR5z0WoJ.js} +2 -2
  214. package/dist/manager/_manager-chunks/{runtime-Bldwclun.js → runtime-BgYvp1WN.js} +15 -7
  215. package/dist/manager/_manager-chunks/{runtime-DrjpEyLM.js → runtime-CHI-LHF1.js} +3 -3
  216. package/dist/manager/_manager-chunks/{runtime-Cmu7D8A0.js → runtime-CUymj6EY.js} +176 -159
  217. package/dist/manager/_manager-chunks/runtime-CaU1DSEZ.js +528 -0
  218. package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-CqItbdKW.js} +3 -2
  219. package/dist/manager/_manager-chunks/{runtime-a5zd7km2.js → runtime-D4ZOOIV0.js} +5 -531
  220. package/dist/manager/_manager-chunks/{runtime-DGHNKNQl.js → runtime-DER98nV0.js} +3 -19
  221. package/dist/manager/_manager-chunks/{runtime-Cdz2BHhM.js → runtime-DrTLBe7a.js} +29 -30
  222. package/dist/manager/_manager-chunks/{runtime-B-eSQdxk.js → runtime-MAf7Wpk5.js} +3 -2
  223. package/dist/manager/_manager-chunks/{runtime-CuJiHYCp.js → runtime-cVFIMcca.js} +1 -1
  224. package/dist/manager/globals-runtime.js +1 -1
  225. package/dist/manager/runtime.js +1 -1
  226. package/dist/manager-api/index.d.ts +1 -1
  227. package/dist/manager-api/index.js +20 -26
  228. package/dist/manager-errors.d.ts +1 -1
  229. package/dist/mcp/index.js +8 -8
  230. package/dist/mocking-utils/index.js +16 -11
  231. package/dist/nextjs-vite/index.js +3 -2
  232. package/dist/nextjs-vite/node/index.js +7 -7
  233. package/dist/nextjs-vite/preset.js +11 -11
  234. package/dist/nextjs-vite/vite-plugin/index.js +7 -7
  235. package/dist/nextjs-vite-plugin/index.d.ts +1 -2
  236. package/dist/nextjs-vite-plugin/index.js +12 -27
  237. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  238. package/dist/node-logger/index.d.ts +65 -72
  239. package/dist/node-logger/index.js +11 -12
  240. package/dist/oxc-parser/index.js +11 -13
  241. package/dist/oxc-parser/worker.js +10 -10
  242. package/dist/preview/_chunks/{runtime-DVM_AHbR.js → runtime-6P-h06Te.js} +51 -50
  243. package/dist/preview/_chunks/{runtime-BoxmlDdB.js → runtime-B9KKIDGa.js} +202 -81
  244. package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
  245. package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
  246. package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
  247. package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
  248. package/dist/preview/_chunks/{runtime-D7B4bVe_.js → runtime-C8QFpkFV.js} +6 -6
  249. package/dist/preview/_chunks/{runtime-CijtAN7R.js → runtime-DdqR8Fd0.js} +15 -6
  250. package/dist/preview/_chunks/{runtime-B3y8ocOg.js → runtime-DvBfMhis.js} +2 -2
  251. package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
  252. package/dist/preview/runtime.js +1 -1
  253. package/dist/preview-api/index.d.ts +1 -1
  254. package/dist/preview-api/index.js +2 -1
  255. package/dist/preview-errors.d.ts +1 -1
  256. package/dist/react/docgen/docgen-worker.js +11 -12
  257. package/dist/react/entry-preview.js +2 -1
  258. package/dist/react/index.js +6 -4
  259. package/dist/react/preset.js +13 -14
  260. package/dist/react/preview.js +3 -2
  261. package/dist/react-native/bin/get-stories.js +8 -8
  262. package/dist/react-native/index.js +25 -211
  263. package/dist/react-native/metro/node.js +10 -9
  264. package/dist/react-native/metro/withStorybook.js +11 -10
  265. package/dist/react-native/scripts/generate.js +8 -8
  266. package/dist/react-vite/node/index.js +7 -7
  267. package/dist/react-vite/preset.js +7 -7
  268. package/dist/router/index.js +3 -1
  269. package/dist/server-errors.d.ts +1 -1
  270. package/dist/server-errors.js +9 -9
  271. package/dist/shared/open-service/index.d.ts +1 -1
  272. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  273. package/dist/telemetry/index.js +43 -45
  274. package/dist/test/index.js +808 -573
  275. package/dist/theming/create.js +2 -1
  276. package/dist/theming/index.js +22 -1
  277. package/dist/types/index.d.ts +1 -1
  278. package/package.json +16 -44
  279. package/dist/_browser-chunks/WithTooltip-V55S6YCY.js +0 -1619
  280. package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
  281. package/dist/_browser-chunks/chunk-UDQ3XQFC.js +0 -108
  282. package/dist/_node-chunks/chunk-BRD332PB.js +0 -3008
  283. package/dist/_node-chunks/chunk-E2XKJLXK.js +0 -4731
  284. package/dist/_node-chunks/chunk-F2LQJXAB.js +0 -29
  285. package/dist/_node-chunks/chunk-MMFUHYSU.js +0 -23
  286. package/dist/_node-chunks/chunk-UGFY5LEG.js +0 -18
  287. package/dist/_node-chunks/chunk-UO5ZOCSQ.js +0 -662
  288. package/dist/_node-chunks/chunk-VMUXW2E2.js +0 -5414
  289. package/dist/_node-chunks/chunk-VNXE7UJL.js +0 -51
  290. package/dist/_node-chunks/chunk-VRJJ43P2.js +0 -11
  291. package/dist/_node-chunks/chunk-WCJUS7OC.js +0 -1877
  292. package/dist/_node-chunks/chunk-WMBMSNB7.js +0 -36
  293. package/dist/_node-chunks/chunk-YV2QBXU6.js +0 -3823
  294. package/dist/_node-chunks/dist-VFUGPNLK.js +0 -16
  295. package/dist/_node-chunks/globby-N7LO32D3.js +0 -2884
  296. package/dist/_node-chunks/jiti-SJDZ7LQB.js +0 -3848
  297. package/dist/_node-chunks/lib-4HD6QL5R.js +0 -366
  298. package/dist/_node-chunks/optimized-tests-LVKXZ3HQ.js +0 -22
  299. package/dist/_node-chunks/postinstallAddon-I6MAL6PW.js +0 -20
  300. package/dist/_node-chunks/session-id-6Z2RXBTG.js +0 -23
  301. package/dist/chunk-BfBzpgct.d.ts +0 -916
  302. package/dist/core-server/presets/common-manager.css +0 -170
  303. package/dist/manager/_manager-chunks/globals-runtime-Bon7UvQk.js +0 -9766
  304. package/dist/manager/_manager-chunks/globals-runtime-DDOIxI_l.js +0 -1584
  305. package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
  306. package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
@@ -0,0 +1,495 @@
1
+ import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import {
13
+ nodePathsToArray
14
+ } from "./chunk-XOGU5PWI.js";
15
+ import {
16
+ Tag
17
+ } from "./chunk-JS2J2SKX.js";
18
+
19
+ // src/common/utils/envs.ts
20
+ var isWebContainer = () => process.versions.webcontainer != null;
21
+ async function loadEnvs(options = {}) {
22
+ let { loadEnv } = await import("vite"), defaultNodeEnv = options.production ? "production" : "development", baseEnv = {
23
+ NODE_ENV: process.env.NODE_ENV || defaultNodeEnv,
24
+ NODE_PATH: process.env.NODE_PATH || "",
25
+ STORYBOOK: process.env.STORYBOOK || "true",
26
+ // This is to support CRA's public folder feature.
27
+ // In production we set this to dot(.) to allow the browser to access these assets
28
+ // even when deployed inside a subpath. (like in GitHub pages)
29
+ // In development this is just empty as we always serves from the root.
30
+ PUBLIC_URL: options.production ? "." : ""
31
+ }, envEntries = loadEnv(baseEnv.NODE_ENV, process.cwd(), "FORKBOOK_"), raw = { ...baseEnv, ...envEntries };
32
+ raw.NODE_PATH = nodePathsToArray(raw.NODE_PATH || "");
33
+ let stringified = Object.fromEntries(
34
+ Object.entries(raw).map(([key, value]) => [key, JSON.stringify(value)])
35
+ );
36
+ return { raw, stringified };
37
+ }
38
+ var stringifyEnvs = (raw) => Object.entries(raw).reduce((acc, [key, value]) => (acc[key] = JSON.stringify(value), acc), {}), stringifyProcessEnvs = (raw) => Object.entries(raw).reduce((acc, [key, value]) => (acc[`process.env.${key}`] = JSON.stringify(value), acc), {}), optionalEnvToBoolean = (input) => {
39
+ if (input !== void 0)
40
+ return input.toUpperCase() === "FALSE" || input === "0" ? !1 : input.toUpperCase() === "TRUE" || input === "1" ? !0 : !!input;
41
+ };
42
+ function isCI() {
43
+ return optionalEnvToBoolean(process.env.CI);
44
+ }
45
+
46
+ // src/common/utils/component-id.ts
47
+ function getComponentIdFromEntry(entry) {
48
+ return entry.id.split("--")[0];
49
+ }
50
+
51
+ // src/common/utils/select-component-entry.ts
52
+ import { dedent } from "ts-dedent";
53
+ import { once } from "@aussieljk/forkbook/internal/node-logger";
54
+ var STORY_FILE_TEST_REGEXP = /(stories|story)\.(m?js|ts)x?$/;
55
+ function isAttachedDocsEntry(entry) {
56
+ return entry.type === "docs" && entry.tags?.includes(Tag.ATTACHED_MDX) === !0 && entry.storiesImports.length > 0;
57
+ }
58
+ function isEligibleStoryEntry(entry) {
59
+ return entry.type === "story" && entry.subtype === "story";
60
+ }
61
+ function getStoryImportPathFromEntry(entry) {
62
+ if (entry.type === "story")
63
+ return entry.importPath;
64
+ if (isAttachedDocsEntry(entry))
65
+ return entry.storiesImports[0];
66
+ }
67
+ function buildCollisionWarning(componentId, importPaths, winner) {
68
+ let sortedPaths = Array.from(importPaths).sort();
69
+ return dedent`
70
+ Multiple story files share the component id '${componentId}':
71
+ ${sortedPaths.map((path) => ` - ${path}`).join(`
72
+ `)}
73
+ The props table and description for this id are generated from '${winner.importPath}' only. If these files document different components, give each file a unique title so every component keeps its docs.
74
+ `;
75
+ }
76
+ function selectComponentEntriesByComponentId(indexEntries) {
77
+ let entriesByComponentId = /* @__PURE__ */ new Map(), storyImportPathsByComponentId = /* @__PURE__ */ new Map();
78
+ for (let entry of indexEntries) {
79
+ if (!isEligibleStoryEntry(entry))
80
+ continue;
81
+ let componentId = getComponentIdFromEntry(entry);
82
+ entriesByComponentId.set(componentId, entry);
83
+ let importPaths = storyImportPathsByComponentId.get(componentId) ?? /* @__PURE__ */ new Set();
84
+ importPaths.add(entry.importPath), storyImportPathsByComponentId.set(componentId, importPaths);
85
+ }
86
+ for (let [componentId, importPaths] of storyImportPathsByComponentId) {
87
+ let winner = entriesByComponentId.get(componentId);
88
+ importPaths.size > 1 && winner && once.warn(buildCollisionWarning(componentId, importPaths, winner));
89
+ }
90
+ for (let entry of indexEntries) {
91
+ if (!isAttachedDocsEntry(entry))
92
+ continue;
93
+ let componentId = getComponentIdFromEntry(entry);
94
+ entriesByComponentId.has(componentId) || entriesByComponentId.set(componentId, entry);
95
+ }
96
+ return entriesByComponentId;
97
+ }
98
+
99
+ // src/common/utils/exec.ts
100
+ import { fork } from "node:child_process";
101
+
102
+ // ../../node_modules/tinyexec/dist/main.mjs
103
+ import { spawn, spawnSync } from "node:child_process";
104
+ import { cwd } from "node:process";
105
+ import { basename, delimiter, dirname, normalize, resolve } from "node:path";
106
+ import { fileURLToPath } from "node:url";
107
+ import { pipeline } from "node:stream/promises";
108
+ import { PassThrough } from "node:stream";
109
+ import readline from "node:readline";
110
+ import { closeSync, openSync, readSync, statSync } from "node:fs";
111
+ var isPathLikePattern = /^path$/i, defaultEnvPathInfo = {
112
+ key: "PATH",
113
+ value: ""
114
+ };
115
+ function getPathFromEnv(env) {
116
+ for (let key in env) {
117
+ if (!Object.prototype.hasOwnProperty.call(env, key) || !isPathLikePattern.test(key)) continue;
118
+ let value = env[key];
119
+ return value ? {
120
+ key,
121
+ value
122
+ } : defaultEnvPathInfo;
123
+ }
124
+ return defaultEnvPathInfo;
125
+ }
126
+ function addNodeBinToPath(cwd2, path) {
127
+ let parts = path.value.split(delimiter), nodeBinPaths = [], currentPath = typeof cwd2 == "string" ? cwd2 : fileURLToPath(cwd2, { windows: !1 }), lastPath;
128
+ do
129
+ nodeBinPaths.push(resolve(currentPath, "node_modules", ".bin")), lastPath = currentPath, currentPath = dirname(currentPath);
130
+ while (currentPath !== lastPath);
131
+ nodeBinPaths.push(dirname(process.execPath));
132
+ let newPath = nodeBinPaths.concat(parts).join(delimiter);
133
+ return {
134
+ key: path.key,
135
+ value: newPath
136
+ };
137
+ }
138
+ function computeEnv(cwd2, env, nodePath = !0) {
139
+ let envWithDefault = {
140
+ ...process.env,
141
+ ...env
142
+ };
143
+ if (!nodePath) return envWithDefault;
144
+ let envPathInfo = addNodeBinToPath(cwd2, getPathFromEnv(envWithDefault));
145
+ return envWithDefault[envPathInfo.key] = envPathInfo.value, envWithDefault;
146
+ }
147
+ var combineStreams = (streams) => {
148
+ let streamCount = streams.length, combined = new PassThrough(), maybeEmitEnd = () => {
149
+ --streamCount === 0 && combined.end();
150
+ };
151
+ for (let stream of streams) pipeline(stream, combined, { end: !1 }).then(maybeEmitEnd).catch(maybeEmitEnd);
152
+ return combined;
153
+ }, metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g, shebangRegExp = /^#!\s*(.+)/, isWindowsExecutableRegExp = /\.(?:com|exe)$/i, isNodeModulesCmdRegExp = /node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/i, isWindows = process.platform === "win32", defaultPathExt = [
154
+ ".EXE",
155
+ ".CMD",
156
+ ".BAT",
157
+ ".COM"
158
+ ], noPathExt = [""];
159
+ function normalizeSpawnCommand(command, args = [], options = {}) {
160
+ if (options.shell === !0 || !isWindows) return {
161
+ command,
162
+ args,
163
+ options
164
+ };
165
+ let file = resolveCommand(command, options), shebang = null;
166
+ if (file !== null) {
167
+ let buffer = Buffer.alloc(150), fd = null;
168
+ try {
169
+ fd = openSync(file, "r"), readSync(fd, buffer, 0, 150, 0);
170
+ } catch {
171
+ } finally {
172
+ fd !== null && closeSync(fd);
173
+ }
174
+ let match = buffer.toString().match(shebangRegExp);
175
+ if (match !== null) {
176
+ let line = match[1].trim(), separatorIndex = line.indexOf(" "), path = separatorIndex !== -1 ? line.slice(0, separatorIndex) : line, argument = separatorIndex !== -1 ? line.slice(separatorIndex + 1) : "", binary = basename(path);
177
+ shebang = binary === "env" ? argument || null : binary;
178
+ }
179
+ }
180
+ if (shebang !== null && file !== null && (args = [file, ...args], command = shebang, file = resolveCommand(command, options)), file === null || !isWindowsExecutableRegExp.test(file)) {
181
+ let needsDoubleEscapeMetaChars = file !== null && isNodeModulesCmdRegExp.test(file);
182
+ command = normalize(command), command = command.replace(metaCharsRegExp, "^$1"), args = args.map((arg) => (arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"'), arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1"), arg = `"${arg}"`, arg = arg.replace(metaCharsRegExp, "^$1"), needsDoubleEscapeMetaChars && (arg = arg.replace(metaCharsRegExp, "^$1")), arg)), args = [
183
+ "/d",
184
+ "/s",
185
+ "/c",
186
+ `"${[command, ...args].join(" ")}"`
187
+ ], command = options.env?.comspec ?? "cmd.exe", options = {
188
+ ...options,
189
+ windowsVerbatimArguments: !0
190
+ };
191
+ }
192
+ return {
193
+ command,
194
+ args,
195
+ options
196
+ };
197
+ }
198
+ function resolveCommand(command, options) {
199
+ let cwd$3 = (options.cwd ?? cwd()).toString(), env = options.env ?? process.env, PATH = getPathFromEnv(env).value, pathEnv = command.includes("/") || command.includes("\\") ? [""] : [cwd$3, ...PATH.split(delimiter)], pathExt = env.PATHEXT ? env.PATHEXT.split(delimiter) : defaultPathExt;
200
+ command.includes(".") && pathExt[0] !== "" && (pathExt = ["", ...pathExt]);
201
+ for (let extensions of [pathExt, noPathExt]) for (let path of pathEnv) {
202
+ let unquoted = path.startsWith('"') && path.endsWith('"') && path.length > 1 ? path.slice(1, -1) : path, dest = resolve(cwd$3, unquoted, command);
203
+ for (let ext of extensions) {
204
+ let destWithExt = dest + ext;
205
+ try {
206
+ if (statSync(destWithExt).isFile()) return destWithExt;
207
+ } catch {
208
+ }
209
+ }
210
+ }
211
+ return null;
212
+ }
213
+ var NonZeroExitError = class extends Error {
214
+ result;
215
+ output;
216
+ exitCode;
217
+ get signalCode() {
218
+ return this.result.signalCode;
219
+ }
220
+ constructor(result, output, command, args) {
221
+ let target = "The process";
222
+ command && (target = `The command \`${args?.length ? `${command} ${args.map((a) => /[ "'`()]/.test(a) ? JSON.stringify(a) : a).join(" ")}` : command}\``);
223
+ let exitCode = result.exitCode ?? 1;
224
+ super(result.signalCode !== null ? `${target} was killed by the signal ${result.signalCode}` : `${target} exited with a non-zero status (${exitCode})`), this.result = result, this.output = output, this.exitCode = exitCode, Object.defineProperty(this, "result", {
225
+ enumerable: !1,
226
+ writable: !1,
227
+ configurable: !1
228
+ });
229
+ }
230
+ }, LINE_SEPARATOR_REGEX = /\r?\n/, defaultOptions = {
231
+ timeout: void 0,
232
+ persist: !1
233
+ }, defaultSyncOptions = { timeout: void 0 }, defaultNodeOptions = { windowsHide: !0 };
234
+ function combineSignals(signals) {
235
+ let controller = new AbortController();
236
+ for (let signal of signals) {
237
+ if (signal.aborted)
238
+ return controller.abort(), signal;
239
+ let onAbort = () => {
240
+ controller.abort(signal.reason);
241
+ };
242
+ signal.addEventListener("abort", onAbort, { signal: controller.signal });
243
+ }
244
+ return controller.signal;
245
+ }
246
+ async function readStream(stream) {
247
+ let output = "";
248
+ try {
249
+ for await (let chunk of stream) output += chunk.toString();
250
+ } catch {
251
+ }
252
+ return output;
253
+ }
254
+ var ExecProcess = class {
255
+ _process;
256
+ _aborted = !1;
257
+ _options;
258
+ _command;
259
+ _args;
260
+ _resolveClose;
261
+ _processClosed;
262
+ _thrownError;
263
+ get process() {
264
+ return this._process;
265
+ }
266
+ get pid() {
267
+ return this._process?.pid;
268
+ }
269
+ get exitCode() {
270
+ if (this._process && this._process.exitCode !== null) return this._process.exitCode;
271
+ }
272
+ get signalCode() {
273
+ return this._process?.signalCode ?? null;
274
+ }
275
+ constructor(command, args, options) {
276
+ this._options = {
277
+ ...defaultOptions,
278
+ ...options
279
+ }, this._command = command, this._args = args ?? [], this._processClosed = new Promise((resolve2) => {
280
+ this._resolveClose = resolve2;
281
+ });
282
+ }
283
+ kill(signal) {
284
+ return this._process?.kill(signal) === !0;
285
+ }
286
+ get aborted() {
287
+ return this._aborted;
288
+ }
289
+ get killed() {
290
+ return this._process?.killed === !0;
291
+ }
292
+ pipe(command, args, options) {
293
+ return exec(command, args, {
294
+ ...options,
295
+ stdin: this
296
+ });
297
+ }
298
+ async *[Symbol.asyncIterator]() {
299
+ let proc = this._process;
300
+ if (!proc) return;
301
+ let streams = [];
302
+ this._streamErr && streams.push(this._streamErr), this._streamOut && streams.push(this._streamOut);
303
+ let streamCombined = combineStreams(streams), rl = readline.createInterface({ input: streamCombined });
304
+ for await (let chunk of rl) yield chunk.toString();
305
+ if (await this._processClosed, proc.removeAllListeners(), this._thrownError) throw this._thrownError;
306
+ if (this._options?.throwOnError && (this.exitCode !== 0 && this.exitCode !== void 0 || this.signalCode !== null)) throw new NonZeroExitError(this, void 0, this._command, this._args);
307
+ }
308
+ async _waitForOutput() {
309
+ let proc = this._process;
310
+ if (!proc) throw new Error("No process was started");
311
+ let [stdout, stderr] = await Promise.all([this._streamOut ? readStream(this._streamOut) : "", this._streamErr ? readStream(this._streamErr) : ""]);
312
+ await this._processClosed;
313
+ let { stdin } = this._options;
314
+ if (stdin && typeof stdin != "string" && await stdin, proc.removeAllListeners(), this._thrownError) throw this._thrownError;
315
+ let result = {
316
+ stderr,
317
+ stdout,
318
+ exitCode: this.exitCode
319
+ };
320
+ if (this._options.throwOnError && (this.exitCode !== 0 && this.exitCode !== void 0 || this.signalCode !== null)) throw new NonZeroExitError(this, result, this._command, this._args);
321
+ return result;
322
+ }
323
+ then(onfulfilled, onrejected) {
324
+ return this._waitForOutput().then(onfulfilled, onrejected);
325
+ }
326
+ _streamOut;
327
+ _streamErr;
328
+ spawn() {
329
+ let options = this._options, nodeOptions = {
330
+ ...defaultNodeOptions,
331
+ ...options.nodeOptions
332
+ }, cwd$1 = nodeOptions?.cwd ?? cwd(), signals = [];
333
+ this._resetState(), options.timeout !== void 0 && signals.push(AbortSignal.timeout(options.timeout)), options.signal !== void 0 && signals.push(options.signal), options.persist === !0 && (nodeOptions.detached = !0), signals.length > 0 && (nodeOptions.signal = combineSignals(signals)), nodeOptions.env = computeEnv(cwd$1, nodeOptions.env, options.nodePath);
334
+ let crossResult = normalizeSpawnCommand(this._command, this._args, nodeOptions), handle = spawn(crossResult.command, crossResult.args, crossResult.options);
335
+ if (handle.stderr && (this._streamErr = handle.stderr), handle.stdout && (this._streamOut = handle.stdout), this._process = handle, handle.once("error", this._onError), handle.once("close", this._onClose), handle.stdin) {
336
+ let { stdin } = options;
337
+ typeof stdin == "string" ? handle.stdin.end(stdin) : stdin?.process?.stdout?.pipe(handle.stdin);
338
+ }
339
+ }
340
+ _resetState() {
341
+ this._aborted = !1, this._processClosed = new Promise((resolve2) => {
342
+ this._resolveClose = resolve2;
343
+ }), this._thrownError = void 0;
344
+ }
345
+ _onError = (err) => {
346
+ if (err.name === "AbortError" && (!(err.cause instanceof Error) || err.cause.name !== "TimeoutError")) {
347
+ this._aborted = !0;
348
+ return;
349
+ }
350
+ this._thrownError = err;
351
+ };
352
+ _onClose = () => {
353
+ this._resolveClose && this._resolveClose();
354
+ };
355
+ };
356
+ function xSync(command, args, options) {
357
+ let opts = {
358
+ ...defaultSyncOptions,
359
+ ...options
360
+ }, nodeOptions = {
361
+ ...defaultNodeOptions,
362
+ ...opts.nodeOptions
363
+ }, cwd$2 = nodeOptions?.cwd ?? cwd();
364
+ opts.timeout !== void 0 && (nodeOptions.timeout = opts.timeout), nodeOptions.env = computeEnv(cwd$2, nodeOptions.env, opts.nodePath);
365
+ let crossResult = normalizeSpawnCommand(command, args ?? [], nodeOptions), spawnResult = spawnSync(crossResult.command, crossResult.args, crossResult.options);
366
+ if (spawnResult.error) throw spawnResult.error;
367
+ let stdout = spawnResult.stdout?.toString() ?? "", stderr = spawnResult.stderr?.toString() ?? "", exitCode = spawnResult.status ?? void 0, signalCode = spawnResult.signal ?? null, killed = signalCode !== null, result = {
368
+ stdout,
369
+ stderr,
370
+ get exitCode() {
371
+ return exitCode;
372
+ },
373
+ get signalCode() {
374
+ return signalCode;
375
+ },
376
+ get pid() {
377
+ return spawnResult.pid;
378
+ },
379
+ get killed() {
380
+ return killed;
381
+ },
382
+ *[Symbol.iterator]() {
383
+ for (let text of [stdout, stderr]) {
384
+ if (!text) continue;
385
+ let lines = text.split(LINE_SEPARATOR_REGEX);
386
+ lines[lines.length - 1] === "" && lines.pop(), yield* lines;
387
+ }
388
+ }
389
+ };
390
+ if (opts.throwOnError && (exitCode !== 0 && exitCode !== void 0 || signalCode !== null)) throw new NonZeroExitError(result, {
391
+ stdout: result.stdout,
392
+ stderr: result.stderr,
393
+ exitCode: result.exitCode
394
+ }, command, args);
395
+ return result;
396
+ }
397
+ var x = (command, args, userOptions) => {
398
+ let proc = new ExecProcess(command, args, userOptions);
399
+ return proc.spawn(), proc;
400
+ }, exec = x;
401
+
402
+ // src/common/utils/exec.ts
403
+ var ExecError = class extends Error {
404
+ constructor(command, {
405
+ exitCode,
406
+ signal,
407
+ code,
408
+ stdout = "",
409
+ stderr = "",
410
+ cause
411
+ }) {
412
+ let shortMessage = `Command ${signal ? `was killed with ${signal}` : code ? `failed with ${code}` : `failed with exit code ${exitCode}`}: ${command}`;
413
+ super([shortMessage, stderr, stdout].filter(Boolean).join(`
414
+
415
+ `), { cause }), this.name = "ExecError", this.command = command, this.shortMessage = shortMessage, this.exitCode = exitCode, this.signal = signal, this.code = code, this.stdout = stdout, this.stderr = stderr;
416
+ }
417
+ }, withProcessEnv = (env) => ({ ...process.env, ...env });
418
+ function exec2(command, args = [], options = {}) {
419
+ let commandLine = [command, ...args].join(" "), result = x(command, args, {
420
+ throwOnError: !1,
421
+ timeout: options.timeout,
422
+ nodeOptions: {
423
+ cwd: options.cwd,
424
+ env: withProcessEnv(options.env),
425
+ stdio: options.stdio ?? "pipe",
426
+ signal: options.signal,
427
+ shell: options.shell
428
+ }
429
+ }), promise = Promise.resolve(result).then(
430
+ (output) => {
431
+ let signal = result.signalCode ?? void 0;
432
+ if (output.exitCode !== 0 || signal)
433
+ throw new ExecError(commandLine, { ...output, signal });
434
+ return output;
435
+ },
436
+ (error) => {
437
+ throw error?.name === "AbortError" ? error : new ExecError(commandLine, { code: error?.code, cause: error });
438
+ }
439
+ );
440
+ return Object.assign(promise, {
441
+ stdout: result.process?.stdout ?? null,
442
+ stderr: result.process?.stderr ?? null,
443
+ kill: () => result.kill()
444
+ });
445
+ }
446
+ function execSync(command, args = [], options = {}) {
447
+ let commandLine = [command, ...args].join(" "), output;
448
+ try {
449
+ output = xSync(command, args, {
450
+ throwOnError: !1,
451
+ timeout: options.timeout,
452
+ nodeOptions: {
453
+ cwd: options.cwd,
454
+ env: withProcessEnv(options.env),
455
+ stdio: options.stdio ?? "pipe",
456
+ encoding: "utf8",
457
+ shell: options.shell
458
+ }
459
+ });
460
+ } catch (error) {
461
+ throw new ExecError(commandLine, {
462
+ code: error?.code,
463
+ cause: error
464
+ });
465
+ }
466
+ let signal = output.signalCode ?? void 0;
467
+ if (output.exitCode !== 0 || signal)
468
+ throw new ExecError(commandLine, { ...output, signal });
469
+ return output;
470
+ }
471
+ function execNode(scriptPath, args = [], options = {}) {
472
+ return fork(scriptPath, args, {
473
+ cwd: options.cwd,
474
+ env: withProcessEnv(options.env),
475
+ signal: options.signal,
476
+ stdio: ["pipe", "pipe", "pipe", "ipc"]
477
+ });
478
+ }
479
+
480
+ export {
481
+ exec2 as exec,
482
+ execSync,
483
+ execNode,
484
+ isWebContainer,
485
+ loadEnvs,
486
+ stringifyEnvs,
487
+ stringifyProcessEnvs,
488
+ optionalEnvToBoolean,
489
+ isCI,
490
+ getComponentIdFromEntry,
491
+ STORY_FILE_TEST_REGEXP,
492
+ isEligibleStoryEntry,
493
+ getStoryImportPathFromEntry,
494
+ selectComponentEntriesByComponentId
495
+ };
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_1qqypd7gt14 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1qqypd7gt14 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1qqypd7gt14 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1qqypd7gt14.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1qqypd7gt14.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1qqypd7gt14.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.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
  UniversalStoreFollowerTimeoutError
14
- } from "./chunk-2GY2FKLH.js";
14
+ } from "./chunk-PAN35AYX.js";
15
15
 
16
16
  // src/shared/universal-store/index.ts
17
17
  import { dedent } from "ts-dedent";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_1qqypd7gt14 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1qqypd7gt14 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1qqypd7gt14 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1qqypd7gt14.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1qqypd7gt14.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1qqypd7gt14.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_1qqypd7gt14.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __require
15
- } from "./chunk-TZ2TZW2K.js";
15
+ } from "./chunk-A35J7YYA.js";
16
16
 
17
17
  // ../../node_modules/has-flag/index.js
18
18
  var require_has_flag = __commonJS({
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_1qqypd7gt14 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1qqypd7gt14 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1qqypd7gt14 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1qqypd7gt14.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1qqypd7gt14.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1qqypd7gt14.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
@@ -1,21 +1,21 @@
1
- import CJS_COMPAT_NODE_URL_1qqypd7gt14 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1qqypd7gt14 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1qqypd7gt14 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1qqypd7gt14.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1qqypd7gt14.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1qqypd7gt14.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.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
  projectPathsEqual
14
- } from "./chunk-T2I453AJ.js";
14
+ } from "./chunk-HUPRQZ3I.js";
15
15
  import {
16
16
  CLAUDE_AGENT_NAME,
17
17
  CLAUDE_PREVIEW_AGENT_NAME
18
- } from "./chunk-6QQTZT3Z.js";
18
+ } from "./chunk-TYBPAV3X.js";
19
19
 
20
20
  // src/cli/tools/instances/registry.ts
21
21
  import * as fs from "node:fs/promises";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_1qqypd7gt14 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1qqypd7gt14 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1qqypd7gt14 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1qqypd7gt14.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1qqypd7gt14.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1qqypd7gt14.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Forkbook's esbuild configuration
@@ -1,24 +1,24 @@
1
- import CJS_COMPAT_NODE_URL_1qqypd7gt14 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1qqypd7gt14 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1qqypd7gt14 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_7qov04rgzsv from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_7qov04rgzsv from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_7qov04rgzsv from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1qqypd7gt14.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1qqypd7gt14.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1qqypd7gt14.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_7qov04rgzsv.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_7qov04rgzsv.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_7qov04rgzsv.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
  nanoid
14
- } from "./chunk-VBSVLIXU.js";
14
+ } from "./chunk-L4JGWK4K.js";
15
15
  import {
16
16
  isEqual
17
- } from "./chunk-N4FLP7AO.js";
17
+ } from "./chunk-X3RTVNRN.js";
18
18
  import {
19
19
  deserializeError,
20
20
  serializeError
21
- } from "./chunk-SDXU22OH.js";
21
+ } from "./chunk-FQWTUSYB.js";
22
22
  import {
23
23
  OpenServiceAsyncRecipeError,
24
24
  OpenServiceAsyncSchemaError,
@@ -34,7 +34,7 @@ import {
34
34
  OpenServiceRemoteCommandUnhandledError,
35
35
  OpenServiceUnimplementedOperationError,
36
36
  OpenServiceValidationError
37
- } from "./chunk-F4Q7OCCN.js";
37
+ } from "./chunk-NX6CSWF3.js";
38
38
 
39
39
  // src/channels/main.ts
40
40
  var isMulti = (args) => args.transports !== void 0, generateRandomId = () => Math.random().toString(16).slice(2), Channel = class {