@aussieljk/forkbook 0.0.0-stage → 0.0.1-2

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 (598) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +77 -2
  3. package/assets/addon-vitest/templates/vitest.config.4.template.ts +36 -0
  4. package/assets/browser/favicon-wrapper.svg +46 -0
  5. package/assets/browser/favicon.svg +1 -0
  6. package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
  7. package/assets/browser/nunito-sans-bold.woff2 +0 -0
  8. package/assets/browser/nunito-sans-italic.woff2 +0 -0
  9. package/assets/browser/nunito-sans-regular.woff2 +0 -0
  10. package/assets/builder-vite/iframe.html +99 -0
  11. package/assets/create/rendererAssets/.eslintrc.json +16 -0
  12. package/assets/create/rendererAssets/common/Configure.mdx +388 -0
  13. package/assets/create/rendererAssets/common/assets/accessibility.png +0 -0
  14. package/assets/create/rendererAssets/common/assets/accessibility.svg +1 -0
  15. package/assets/create/rendererAssets/common/assets/addon-library.png +0 -0
  16. package/assets/create/rendererAssets/common/assets/assets.png +0 -0
  17. package/assets/create/rendererAssets/common/assets/avif-test-image.avif +0 -0
  18. package/assets/create/rendererAssets/common/assets/context.png +0 -0
  19. package/assets/create/rendererAssets/common/assets/discord.svg +1 -0
  20. package/assets/create/rendererAssets/common/assets/docs.png +0 -0
  21. package/assets/create/rendererAssets/common/assets/figma-plugin.png +0 -0
  22. package/assets/create/rendererAssets/common/assets/github.svg +1 -0
  23. package/assets/create/rendererAssets/common/assets/share.png +0 -0
  24. package/assets/create/rendererAssets/common/assets/styling.png +0 -0
  25. package/assets/create/rendererAssets/common/assets/testing.png +0 -0
  26. package/assets/create/rendererAssets/common/assets/theming.png +0 -0
  27. package/assets/create/rendererAssets/common/assets/tutorials.svg +1 -0
  28. package/assets/create/rendererAssets/common/assets/youtube.svg +1 -0
  29. package/assets/create/rendererAssets/common/button.css +30 -0
  30. package/assets/create/rendererAssets/common/header.css +32 -0
  31. package/assets/create/rendererAssets/common/page.css +68 -0
  32. package/assets/create/templates/react-native/index.expo.js +20 -0
  33. package/assets/create/templates/react-native/index.js +25 -0
  34. package/assets/docs/addon-backgrounds.gif +0 -0
  35. package/assets/docs/addon-controls-args-annotated.png +0 -0
  36. package/assets/docs/addon-controls-args-background-color.png +0 -0
  37. package/assets/docs/addon-controls-args-background-string.png +0 -0
  38. package/assets/docs/addon-controls-args-docs.png +0 -0
  39. package/assets/docs/addon-controls-args-logging.png +0 -0
  40. package/assets/docs/addon-controls-args-no-annotation.png +0 -0
  41. package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
  42. package/assets/docs/addon-controls-args-reflow.png +0 -0
  43. package/assets/docs/addon-controls-args-template.png +0 -0
  44. package/assets/docs/addon-controls-expanded.png +0 -0
  45. package/assets/docs/addon-controls-hero.gif +0 -0
  46. package/assets/docs/addon-controls-install.png +0 -0
  47. package/assets/docs/hero.gif +0 -0
  48. package/assets/docs/highlight.png +0 -0
  49. package/assets/docs/message-reference.png +0 -0
  50. package/assets/docs/viewport.png +0 -0
  51. package/assets/react-native/metro-env.d.ts +69 -0
  52. package/assets/server/addon.tsconfig.json +6 -0
  53. package/assets/server/base-preview-body.html +116 -0
  54. package/assets/server/base-preview-head.html +494 -0
  55. package/assets/server/openBrowser.applescript +94 -0
  56. package/assets/server/template.ejs +87 -0
  57. package/dist/.build-stamp +0 -0
  58. package/dist/_browser-chunks/Color-PCLE2J36.js +1025 -0
  59. package/dist/_browser-chunks/DocsRenderer-JXND3PVQ.js +10 -0
  60. package/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +1619 -0
  61. package/dist/_browser-chunks/chunk-2JDQ35OA.js +247 -0
  62. package/dist/_browser-chunks/chunk-2JT76G3E.js +104 -0
  63. package/dist/_browser-chunks/chunk-2MEPHP35.js +17 -0
  64. package/dist/_browser-chunks/chunk-2SCZVUKW.js +24 -0
  65. package/dist/_browser-chunks/chunk-46Z7NGAS.js +41 -0
  66. package/dist/_browser-chunks/chunk-4ATQOMJB.js +30 -0
  67. package/dist/_browser-chunks/chunk-52CW7FF7.js +49 -0
  68. package/dist/_browser-chunks/chunk-5I7E4GMO.js +62 -0
  69. package/dist/_browser-chunks/chunk-5P4QA6MY.js +20 -0
  70. package/dist/_browser-chunks/chunk-5WMXI5GW.js +816 -0
  71. package/dist/_browser-chunks/chunk-66OCZ54D.js +2604 -0
  72. package/dist/_browser-chunks/chunk-6SXYJQST.js +253 -0
  73. package/dist/_browser-chunks/chunk-AYRF6EJB.js +36 -0
  74. package/dist/_browser-chunks/chunk-B4AUNNU4.js +156 -0
  75. package/dist/_browser-chunks/chunk-BCP2FFXF.js +369 -0
  76. package/dist/_browser-chunks/chunk-C3D4HEFY.js +3396 -0
  77. package/dist/_browser-chunks/chunk-CFAOWGL7.js +43 -0
  78. package/dist/_browser-chunks/chunk-CFWWCCZV.js +223 -0
  79. package/dist/_browser-chunks/chunk-CNED6RYH.js +18 -0
  80. package/dist/_browser-chunks/chunk-DRQKCCAG.js +136 -0
  81. package/dist/_browser-chunks/chunk-ECQ75MKQ.js +0 -0
  82. package/dist/_browser-chunks/chunk-EIYAKDGP.js +302 -0
  83. package/dist/_browser-chunks/chunk-ENKK74N4.js +12 -0
  84. package/dist/_browser-chunks/chunk-FENFYI4X.js +698 -0
  85. package/dist/_browser-chunks/chunk-FJGWSWL5.js +155 -0
  86. package/dist/_browser-chunks/chunk-FVSEPWWX.js +2810 -0
  87. package/dist/_browser-chunks/chunk-GNZY6LOW.js +10116 -0
  88. package/dist/_browser-chunks/chunk-IE4ULIOQ.js +14 -0
  89. package/dist/_browser-chunks/chunk-IMSF75WX.js +42 -0
  90. package/dist/_browser-chunks/chunk-IWQGIXJS.js +14 -0
  91. package/dist/_browser-chunks/chunk-JMC7AIKT.js +108 -0
  92. package/dist/_browser-chunks/chunk-JPUOQJUI.js +8 -0
  93. package/dist/_browser-chunks/chunk-JSBKXXXF.js +218 -0
  94. package/dist/_browser-chunks/chunk-JWSKPMPC.js +73 -0
  95. package/dist/_browser-chunks/chunk-JYVGARBG.js +2943 -0
  96. package/dist/_browser-chunks/chunk-KBK7GKBN.js +35 -0
  97. package/dist/_browser-chunks/chunk-KQ7CRO2B.js +108 -0
  98. package/dist/_browser-chunks/chunk-LAWXTSXK.js +18 -0
  99. package/dist/_browser-chunks/chunk-LE2LTDW3.js +14 -0
  100. package/dist/_browser-chunks/chunk-LEVSOOLQ.js +48 -0
  101. package/dist/_browser-chunks/chunk-LV5PIKV4.js +93 -0
  102. package/dist/_browser-chunks/chunk-MDOL7KML.js +56 -0
  103. package/dist/_browser-chunks/chunk-MFMDGWP6.js +34 -0
  104. package/dist/_browser-chunks/chunk-MLBOOZL4.js +67 -0
  105. package/dist/_browser-chunks/chunk-NQUD4B7H.js +91 -0
  106. package/dist/_browser-chunks/chunk-NULBREPZ.js +43 -0
  107. package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
  108. package/dist/_browser-chunks/chunk-OD6IBQCC.js +117 -0
  109. package/dist/_browser-chunks/chunk-ODVJ3XZJ.js +157 -0
  110. package/dist/_browser-chunks/chunk-OQWFVDIN.js +386 -0
  111. package/dist/_browser-chunks/chunk-OVH3USFB.js +20 -0
  112. package/dist/_browser-chunks/chunk-OZZPSYQR.js +14 -0
  113. package/dist/_browser-chunks/chunk-P6PK47TQ.js +1970 -0
  114. package/dist/_browser-chunks/chunk-PFRNG3UC.js +22 -0
  115. package/dist/_browser-chunks/chunk-PJSMZ27A.js +13 -0
  116. package/dist/_browser-chunks/chunk-QC4HFS6K.js +41 -0
  117. package/dist/_browser-chunks/chunk-QDXFODK4.js +274 -0
  118. package/dist/_browser-chunks/chunk-RBCHTR7C.js +28 -0
  119. package/dist/_browser-chunks/chunk-RMYQ3QN3.js +294 -0
  120. package/dist/_browser-chunks/chunk-RNTIV5CE.js +411 -0
  121. package/dist/_browser-chunks/chunk-RSPAQWVJ.js +80 -0
  122. package/dist/_browser-chunks/chunk-S6TK43XQ.js +836 -0
  123. package/dist/_browser-chunks/chunk-SC67XZST.js +18 -0
  124. package/dist/_browser-chunks/chunk-SFVA4SBT.js +683 -0
  125. package/dist/_browser-chunks/chunk-SZYFOQMT.js +25 -0
  126. package/dist/_browser-chunks/chunk-TBJCJXK4.js +18 -0
  127. package/dist/_browser-chunks/chunk-UMDO3KB7.js +205 -0
  128. package/dist/_browser-chunks/chunk-V2G23FV7.js +11 -0
  129. package/dist/_browser-chunks/chunk-V5M7Q4HT.js +88 -0
  130. package/dist/_browser-chunks/chunk-W5M6NPS3.js +198 -0
  131. package/dist/_browser-chunks/chunk-W7NE2JXW.js +84 -0
  132. package/dist/_browser-chunks/chunk-WGVAAM43.js +1110 -0
  133. package/dist/_browser-chunks/chunk-WHQRNHXD.js +8 -0
  134. package/dist/_browser-chunks/chunk-WOSOWBCA.js +12 -0
  135. package/dist/_browser-chunks/chunk-WZ7KR7SH.js +85 -0
  136. package/dist/_browser-chunks/chunk-YEKO6BHJ.js +20 -0
  137. package/dist/_browser-chunks/chunk-YI2IBIQS.js +7 -0
  138. package/dist/_browser-chunks/chunk-YTIT5NA5.js +1966 -0
  139. package/dist/_browser-chunks/chunk-ZEHRUHTA.js +6 -0
  140. package/dist/_browser-chunks/chunk-ZTQ5MEJ5.js +203 -0
  141. package/dist/_browser-chunks/matchers-YLBYSYAF.js +1263 -0
  142. package/dist/_browser-chunks/react-dom-client-4OHE3QDV.js +9 -0
  143. package/dist/_node-chunks/attached-runtime-I2G4WLJI.js +282 -0
  144. package/dist/_node-chunks/builder-manager-VVHYQXCH.js +1661 -0
  145. package/dist/_node-chunks/chunk-2BUPBPFB.js +82 -0
  146. package/dist/_node-chunks/chunk-2DSIDINN.js +884 -0
  147. package/dist/_node-chunks/chunk-2RU7BKEW.js +23 -0
  148. package/dist/_node-chunks/chunk-34EO2PUT.js +26 -0
  149. package/dist/_node-chunks/chunk-3BKIBF5S.js +3008 -0
  150. package/dist/_node-chunks/chunk-3SDUYDXH.js +98 -0
  151. package/dist/_node-chunks/chunk-3T4ZSNPH.js +662 -0
  152. package/dist/_node-chunks/chunk-3W7F2B7P.js +79 -0
  153. package/dist/_node-chunks/chunk-3Y6AAY5H.js +80 -0
  154. package/dist/_node-chunks/chunk-42UWAGPW.js +1193 -0
  155. package/dist/_node-chunks/chunk-4FEANXWU.js +1986 -0
  156. package/dist/_node-chunks/chunk-5DQFEZEA.js +40 -0
  157. package/dist/_node-chunks/chunk-6KEHV53S.js +1218 -0
  158. package/dist/_node-chunks/chunk-6LMWA44H.js +3837 -0
  159. package/dist/_node-chunks/chunk-6YKBRP72.js +20 -0
  160. package/dist/_node-chunks/chunk-7GUDZVRQ.js +110 -0
  161. package/dist/_node-chunks/chunk-B5J7Q7J4.js +21 -0
  162. package/dist/_node-chunks/chunk-BS2WMZMR.js +90 -0
  163. package/dist/_node-chunks/chunk-BSKFCWQD.js +47 -0
  164. package/dist/_node-chunks/chunk-BXVYT7SB.js +36 -0
  165. package/dist/_node-chunks/chunk-CCOTJ4FC.js +688 -0
  166. package/dist/_node-chunks/chunk-CQKMLL5J.js +33 -0
  167. package/dist/_node-chunks/chunk-CXRU72ET.js +63 -0
  168. package/dist/_node-chunks/chunk-DC7DKR5K.js +20 -0
  169. package/dist/_node-chunks/chunk-DHJFTB4K.js +25 -0
  170. package/dist/_node-chunks/chunk-DUR55DJJ.js +1094 -0
  171. package/dist/_node-chunks/chunk-E6YESGLX.js +7032 -0
  172. package/dist/_node-chunks/chunk-EHUNOMDD.js +52345 -0
  173. package/dist/_node-chunks/chunk-ET7PWEO7.js +298 -0
  174. package/dist/_node-chunks/chunk-EWOX7HPJ.js +20 -0
  175. package/dist/_node-chunks/chunk-F3ZFKBHY.js +844 -0
  176. package/dist/_node-chunks/chunk-FK7KGTV7.js +26 -0
  177. package/dist/_node-chunks/chunk-FPZB5OI7.js +35 -0
  178. package/dist/_node-chunks/chunk-FW2HQUBQ.js +25 -0
  179. package/dist/_node-chunks/chunk-FY6UXW6G.js +11 -0
  180. package/dist/_node-chunks/chunk-GEFQN7K3.js +499 -0
  181. package/dist/_node-chunks/chunk-GRBLDJCR.js +989 -0
  182. package/dist/_node-chunks/chunk-H32DYT6P.js +87 -0
  183. package/dist/_node-chunks/chunk-H4PPVMP5.js +23 -0
  184. package/dist/_node-chunks/chunk-HMP2G23X.js +25 -0
  185. package/dist/_node-chunks/chunk-ICPBH3E7.js +59 -0
  186. package/dist/_node-chunks/chunk-IDEL2J23.js +23 -0
  187. package/dist/_node-chunks/chunk-IK4FGZLR.js +223 -0
  188. package/dist/_node-chunks/chunk-JDXXX6LB.js +68 -0
  189. package/dist/_node-chunks/chunk-JGGFYIG5.js +5468 -0
  190. package/dist/_node-chunks/chunk-JPAZLYJ3.js +29 -0
  191. package/dist/_node-chunks/chunk-JZOO7GGC.js +48 -0
  192. package/dist/_node-chunks/chunk-KISMCCP5.js +4744 -0
  193. package/dist/_node-chunks/chunk-LCK4ZQKG.js +115 -0
  194. package/dist/_node-chunks/chunk-LO56I6E2.js +132 -0
  195. package/dist/_node-chunks/chunk-LXBD4UL4.js +104 -0
  196. package/dist/_node-chunks/chunk-MA24JW6C.js +7162 -0
  197. package/dist/_node-chunks/chunk-MK2KYAI6.js +5414 -0
  198. package/dist/_node-chunks/chunk-NDWKJ4CL.js +2102 -0
  199. package/dist/_node-chunks/chunk-NIBT7XDZ.js +168 -0
  200. package/dist/_node-chunks/chunk-NPO45IMH.js +33 -0
  201. package/dist/_node-chunks/chunk-OISX4AGQ.js +414 -0
  202. package/dist/_node-chunks/chunk-OUW6R7C3.js +26 -0
  203. package/dist/_node-chunks/chunk-OWNFOGTA.js +194 -0
  204. package/dist/_node-chunks/chunk-Q7QNUM5H.js +49 -0
  205. package/dist/_node-chunks/chunk-QEQLR22M.js +1877 -0
  206. package/dist/_node-chunks/chunk-RRN2V55B.js +45 -0
  207. package/dist/_node-chunks/chunk-RWFIFGO5.js +144 -0
  208. package/dist/_node-chunks/chunk-RXNJDRGO.js +209 -0
  209. package/dist/_node-chunks/chunk-RZMQ7S3L.js +92 -0
  210. package/dist/_node-chunks/chunk-SIEXZVCR.js +51 -0
  211. package/dist/_node-chunks/chunk-SLWQNBGO.js +2034 -0
  212. package/dist/_node-chunks/chunk-SVTBJ7Q3.js +35 -0
  213. package/dist/_node-chunks/chunk-SWO5CDYU.js +32 -0
  214. package/dist/_node-chunks/chunk-TD5PLLQG.js +121 -0
  215. package/dist/_node-chunks/chunk-TEQGGSP7.js +33 -0
  216. package/dist/_node-chunks/chunk-TFCEV2XX.js +155 -0
  217. package/dist/_node-chunks/chunk-TFEWM4E3.js +1073 -0
  218. package/dist/_node-chunks/chunk-TINO74G5.js +21 -0
  219. package/dist/_node-chunks/chunk-TNJIXE37.js +40 -0
  220. package/dist/_node-chunks/chunk-TWI4GVH7.js +19 -0
  221. package/dist/_node-chunks/chunk-U5W53R2J.js +1011 -0
  222. package/dist/_node-chunks/chunk-UBOGWBEA.js +148 -0
  223. package/dist/_node-chunks/chunk-UMUBKI6E.js +3787 -0
  224. package/dist/_node-chunks/chunk-UVINFLGY.js +56 -0
  225. package/dist/_node-chunks/chunk-V2DY426G.js +1133 -0
  226. package/dist/_node-chunks/chunk-VLOXOXXE.js +45 -0
  227. package/dist/_node-chunks/chunk-W4OMYLSP.js +1297 -0
  228. package/dist/_node-chunks/chunk-WAXVSN3O.js +18 -0
  229. package/dist/_node-chunks/chunk-WCULS5TP.js +3767 -0
  230. package/dist/_node-chunks/chunk-WNZ2UMFM.js +153 -0
  231. package/dist/_node-chunks/chunk-WZJF2OUH.js +74 -0
  232. package/dist/_node-chunks/chunk-XGIUVY52.js +611 -0
  233. package/dist/_node-chunks/chunk-XHL2LVBM.js +415 -0
  234. package/dist/_node-chunks/chunk-XI6B6P47.js +59 -0
  235. package/dist/_node-chunks/chunk-XLP2ZKXV.js +60 -0
  236. package/dist/_node-chunks/chunk-YCMRA6RX.js +95 -0
  237. package/dist/_node-chunks/chunk-YZFWBA5L.js +2700 -0
  238. package/dist/_node-chunks/chunk-ZMAMXQKP.js +4731 -0
  239. package/dist/_node-chunks/chunk-ZWBCQ4MJ.js +110 -0
  240. package/dist/_node-chunks/dist-VTSTZKUB.js +16 -0
  241. package/dist/_node-chunks/globby-OEMHPBFY.js +2884 -0
  242. package/dist/_node-chunks/jiti-NFX6UU74.js +3848 -0
  243. package/dist/_node-chunks/lib-MDVARD7W.js +366 -0
  244. package/dist/_node-chunks/local-runtime-NTKIN2QT.js +78 -0
  245. package/dist/_node-chunks/mdx-plugin-MWISDWDQ.js +5680 -0
  246. package/dist/_node-chunks/monorepo-LIRFMQXE.js +121 -0
  247. package/dist/_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js +121 -0
  248. package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +22 -0
  249. package/dist/_node-chunks/pattern-copy-play-EKHIUAU2.js +807 -0
  250. package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +20 -0
  251. package/dist/_node-chunks/rehype-external-links-BUN3HUCO.js +121 -0
  252. package/dist/_node-chunks/rehype-slug-PLADX223.js +52 -0
  253. package/dist/_node-chunks/relaxed-limits-GBHW6KIQ.js +117 -0
  254. package/dist/_node-chunks/run-KDTIZNSY.js +103 -0
  255. package/dist/_node-chunks/run-NL66VTNR.js +4532 -0
  256. package/dist/_node-chunks/session-id-KIIVOQLR.js +23 -0
  257. package/dist/_node-chunks/setup-MGC7BQO6.js +278 -0
  258. package/dist/_node-chunks/vitest.config.4.template-JH2THZFG.js +54 -0
  259. package/dist/actions/decorator.d.ts +7 -0
  260. package/dist/actions/decorator.js +43 -0
  261. package/dist/actions/index.d.ts +67 -0
  262. package/dist/actions/index.js +28 -0
  263. package/dist/addon-a11y/index.d.ts +52 -0
  264. package/dist/addon-a11y/index.js +16 -0
  265. package/dist/addon-a11y/manager.js +1429 -0
  266. package/dist/addon-a11y/preset.js +18 -0
  267. package/dist/addon-a11y/preview.d.ts +17 -0
  268. package/dist/addon-a11y/preview.js +15 -0
  269. package/dist/addon-docs/blocks.d.ts +1061 -0
  270. package/dist/addon-docs/blocks.js +2461 -0
  271. package/dist/addon-docs/index.d.ts +236 -0
  272. package/dist/addon-docs/index.js +16 -0
  273. package/dist/addon-docs/manager.js +90 -0
  274. package/dist/addon-docs/mdx-react-shim.d.ts +1 -0
  275. package/dist/addon-docs/mdx-react-shim.js +2 -0
  276. package/dist/addon-docs/preset.js +378 -0
  277. package/dist/addon-docs/preview.d.ts +4 -0
  278. package/dist/addon-docs/preview.js +7 -0
  279. package/dist/addon-links/index.d.ts +22 -0
  280. package/dist/addon-links/index.js +20 -0
  281. package/dist/addon-links/manager.js +14 -0
  282. package/dist/addon-links/preview.d.ts +6 -0
  283. package/dist/addon-links/preview.js +9 -0
  284. package/dist/addon-links/react/index.d.ts +25 -0
  285. package/dist/addon-links/react/index.js +52 -0
  286. package/dist/addon-mcp/preset.js +1345 -0
  287. package/dist/addon-mcp/preview.js +29 -0
  288. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +1153 -0
  289. package/dist/addon-ondevice-actions/index.d.ts +4 -0
  290. package/dist/addon-ondevice-actions/index.js +7 -0
  291. package/dist/addon-ondevice-actions/register.js +7 -0
  292. package/dist/addon-ondevice-controls/index.d.ts +6 -0
  293. package/dist/addon-ondevice-controls/index.js +14 -0
  294. package/dist/addon-ondevice-controls/register.js +10 -0
  295. package/dist/addon-pseudo-states/index.d.ts +35 -0
  296. package/dist/addon-pseudo-states/index.js +15 -0
  297. package/dist/addon-pseudo-states/manager.js +53 -0
  298. package/dist/addon-pseudo-states/preview.d.ts +9 -0
  299. package/dist/addon-pseudo-states/preview.js +10 -0
  300. package/dist/addon-themes/index.d.ts +80 -0
  301. package/dist/addon-themes/index.js +104 -0
  302. package/dist/addon-themes/manager.js +97 -0
  303. package/dist/addon-themes/postinstall.js +33 -0
  304. package/dist/addon-themes/preview.d.ts +6 -0
  305. package/dist/addon-themes/preview.js +8 -0
  306. package/dist/addon-vitest/constants.d.ts +132 -0
  307. package/dist/addon-vitest/constants.js +66 -0
  308. package/dist/addon-vitest/index.d.ts +4 -0
  309. package/dist/addon-vitest/index.js +8 -0
  310. package/dist/addon-vitest/manager.js +665 -0
  311. package/dist/addon-vitest/node/coverage-reporter.js +1284 -0
  312. package/dist/addon-vitest/node/vitest.js +674 -0
  313. package/dist/addon-vitest/postinstall.js +24 -0
  314. package/dist/addon-vitest/preset.js +943 -0
  315. package/dist/addon-vitest/vitest-plugin/global-setup.js +162 -0
  316. package/dist/addon-vitest/vitest-plugin/index.d.ts +56 -0
  317. package/dist/addon-vitest/vitest-plugin/index.js +463 -0
  318. package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +9 -0
  319. package/dist/addon-vitest/vitest-plugin/setup-file.browser.4.js +20 -0
  320. package/dist/addon-vitest/vitest-plugin/setup-file.js +50 -0
  321. package/dist/addon-vitest/vitest-plugin/test-utils.js +128 -0
  322. package/dist/babel/index.d.ts +2301 -0
  323. package/dist/babel/index.js +61 -0
  324. package/dist/backgrounds/index.d.ts +6 -0
  325. package/dist/backgrounds/index.js +15 -0
  326. package/dist/bin/core.js +1705 -0
  327. package/dist/bin/dispatcher.js +43 -0
  328. package/dist/bin/loader.js +115 -0
  329. package/dist/builder-vite/index.d.ts +50 -0
  330. package/dist/builder-vite/index.js +245 -0
  331. package/dist/builder-vite/preset.js +27 -0
  332. package/dist/channels/index.d.ts +2 -0
  333. package/dist/channels/index.js +352 -0
  334. package/dist/chunk-B2t1tGRh.d.ts +284 -0
  335. package/dist/chunk-BCoJQE-f.d.ts +602 -0
  336. package/dist/chunk-BGkgZp-H.d.ts +214 -0
  337. package/dist/chunk-BTVrWliM.d.ts +115 -0
  338. package/dist/chunk-BXLImeLy.d.ts +197 -0
  339. package/dist/chunk-BfBzpgct.d.ts +916 -0
  340. package/dist/chunk-Bpi2tz-6.d.ts +511 -0
  341. package/dist/chunk-BxWufQms.d.ts +142 -0
  342. package/dist/chunk-C-bavsOH.d.ts +34 -0
  343. package/dist/chunk-C2p5r3Vt.d.ts +13001 -0
  344. package/dist/chunk-C6PAgHLT.d.ts +12 -0
  345. package/dist/chunk-CMeX4WRe.d.ts +179 -0
  346. package/dist/chunk-Ct9xd6IM.d.ts +65 -0
  347. package/dist/chunk-CwQKNaYL.d.ts +15 -0
  348. package/dist/chunk-D7DwV41f.d.ts +3622 -0
  349. package/dist/chunk-DEVFdzxR.d.ts +253 -0
  350. package/dist/chunk-DaVb55-_.d.ts +124 -0
  351. package/dist/chunk-DgRNfmj_.d.ts +40 -0
  352. package/dist/chunk-DoIGKY33.d.ts +666 -0
  353. package/dist/chunk-Dr3R0DXk.d.ts +40 -0
  354. package/dist/chunk-DtHByo32.d.ts +55 -0
  355. package/dist/chunk-Dw1z1Pki.d.ts +933 -0
  356. package/dist/chunk-DzuY9DXg.d.ts +79 -0
  357. package/dist/chunk-FjDVzZTj.d.ts +62 -0
  358. package/dist/chunk-Kt1tW-D1.d.ts +59 -0
  359. package/dist/chunk-XP8oHzpE.d.ts +6 -0
  360. package/dist/chunk-gCX81nOr.d.ts +61 -0
  361. package/dist/chunk-pcFXCimE.d.ts +741 -0
  362. package/dist/cli/index.d.ts +1174 -0
  363. package/dist/cli/index.js +5613 -0
  364. package/dist/cli/skills/content/index.d.ts +72 -0
  365. package/dist/cli/skills/content/index.js +335 -0
  366. package/dist/cli/tools/sdk/child-host.d.ts +61 -0
  367. package/dist/cli/tools/sdk/child-host.js +131 -0
  368. package/dist/cli/tools/sdk/index.d.ts +137 -0
  369. package/dist/cli/tools/sdk/index.js +44 -0
  370. package/dist/cli-commands/bin/index.js +25 -0
  371. package/dist/client-logger/index.d.ts +31 -0
  372. package/dist/client-logger/index.js +63 -0
  373. package/dist/common/index.d.ts +1103 -0
  374. package/dist/common/index.js +364 -0
  375. package/dist/components/index.d.ts +1924 -0
  376. package/dist/components/index.js +13759 -0
  377. package/dist/core-events/index.d.ts +155 -0
  378. package/dist/core-events/index.js +136 -0
  379. package/dist/core-server/index.d.ts +2200 -0
  380. package/dist/core-server/index.js +4165 -0
  381. package/dist/core-server/presets/common-manager.css +170 -0
  382. package/dist/core-server/presets/common-manager.js +4168 -0
  383. package/dist/core-server/presets/common-override-preset.js +81 -0
  384. package/dist/core-server/presets/common-preset.js +2187 -0
  385. package/dist/create/bin/index.js +23 -0
  386. package/dist/create/index.js +25 -0
  387. package/dist/csf/csf-utils.d.ts +2 -0
  388. package/dist/csf/csf-utils.js +19 -0
  389. package/dist/csf/index.d.ts +7 -0
  390. package/dist/csf/index.js +2142 -0
  391. package/dist/csf-tools/index.d.ts +1157 -0
  392. package/dist/csf-tools/index.js +736 -0
  393. package/dist/docs-tools/index.d.ts +197 -0
  394. package/dist/docs-tools/index.js +61 -0
  395. package/dist/highlight/index.d.ts +10 -0
  396. package/dist/highlight/index.js +15 -0
  397. package/dist/instrumenter/index.d.ts +113 -0
  398. package/dist/instrumenter/index.js +2595 -0
  399. package/dist/manager/_manager-chunks/globals-runtime-8HkdnU2F.js +6144 -0
  400. package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +3389 -0
  401. package/dist/manager/_manager-chunks/globals-runtime-BdGkqNEt.js +45 -0
  402. package/dist/manager/_manager-chunks/globals-runtime-BmphMP6z.js +1190 -0
  403. package/dist/manager/_manager-chunks/globals-runtime-BvM-NY2g.js +13307 -0
  404. package/dist/manager/_manager-chunks/globals-runtime-C02fvgcd.js +9243 -0
  405. package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +9766 -0
  406. package/dist/manager/_manager-chunks/globals-runtime-DpNYC-qi.js +5564 -0
  407. package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +5357 -0
  408. package/dist/manager/_manager-chunks/globals-runtime-DwFqpqya.js +722 -0
  409. package/dist/manager/_manager-chunks/globals-runtime-FC201B7s.js +6837 -0
  410. package/dist/manager/_manager-chunks/globals-runtime-Rp_zjGnh.js +121 -0
  411. package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +10463 -0
  412. package/dist/manager/_manager-chunks/globals-runtime-eLPTIfX-.js +7759 -0
  413. package/dist/manager/_manager-chunks/globals-runtime-qKvCZHFY.js +4468 -0
  414. package/dist/manager/_manager-chunks/globals-runtime-sGpNlIJ1.js +5102 -0
  415. package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +452 -0
  416. package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +22 -0
  417. package/dist/manager/_manager-chunks/runtime-BhkT2CXl.js +1408 -0
  418. package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +998 -0
  419. package/dist/manager/_manager-chunks/runtime-D0UOWx0U.js +979 -0
  420. package/dist/manager/_manager-chunks/runtime-D94Vq3oR.js +4014 -0
  421. package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +77 -0
  422. package/dist/manager/_manager-chunks/runtime-EITvVbkG.js +46 -0
  423. package/dist/manager/_manager-chunks/runtime-cp5pazY2.js +8936 -0
  424. package/dist/manager/_manager-chunks/runtime-eDVAYF7N.js +6860 -0
  425. package/dist/manager/_manager-chunks/runtime-i-PDAHLR.js +2493 -0
  426. package/dist/manager/globals-runtime.js +2 -0
  427. package/dist/manager/globals.d.ts +23 -0
  428. package/dist/manager/globals.js +26 -0
  429. package/dist/manager/manager-stores.d.ts +2 -0
  430. package/dist/manager/manager-stores.js +19 -0
  431. package/dist/manager/runtime.js +2 -0
  432. package/dist/manager-api/index.d.ts +2 -0
  433. package/dist/manager-api/index.js +3257 -0
  434. package/dist/manager-errors.d.ts +89 -0
  435. package/dist/manager-errors.js +20 -0
  436. package/dist/mcp/index.d.ts +270 -0
  437. package/dist/mcp/index.js +305 -0
  438. package/dist/mocking-utils/index.d.ts +689 -0
  439. package/dist/mocking-utils/index.js +521 -0
  440. package/dist/mocking-utils/mocker-runtime.js +1254 -0
  441. package/dist/nextjs-vite/config/preview.js +3 -0
  442. package/dist/nextjs-vite/export-mocks/cache/index.d.ts +25 -0
  443. package/dist/nextjs-vite/export-mocks/cache/index.js +29 -0
  444. package/dist/nextjs-vite/export-mocks/headers/index.d.ts +37 -0
  445. package/dist/nextjs-vite/export-mocks/headers/index.js +54 -0
  446. package/dist/nextjs-vite/export-mocks/link/index.d.ts +9 -0
  447. package/dist/nextjs-vite/export-mocks/link/index.js +59 -0
  448. package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +28 -0
  449. package/dist/nextjs-vite/export-mocks/navigation/index.js +58 -0
  450. package/dist/nextjs-vite/export-mocks/router/index.d.ts +34 -0
  451. package/dist/nextjs-vite/export-mocks/router/index.js +63 -0
  452. package/dist/nextjs-vite/index.d.ts +92 -0
  453. package/dist/nextjs-vite/index.js +58 -0
  454. package/dist/nextjs-vite/node/index.d.ts +6 -0
  455. package/dist/nextjs-vite/node/index.js +20 -0
  456. package/dist/nextjs-vite/preset.js +648 -0
  457. package/dist/nextjs-vite/preview.d.ts +20 -0
  458. package/dist/nextjs-vite/preview.js +11 -0
  459. package/dist/nextjs-vite/vite-plugin/index.d.ts +6 -0
  460. package/dist/nextjs-vite/vite-plugin/index.js +19 -0
  461. package/dist/nextjs-vite-plugin/index.d.ts +28 -0
  462. package/dist/nextjs-vite-plugin/index.js +923 -0
  463. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +29 -0
  464. package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-context.js +8 -0
  465. package/dist/nextjs-vite-plugin/plugins/next-image/alias/image-default-loader.js +23 -0
  466. package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +28 -0
  467. package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +17 -0
  468. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/cache/index.js +29 -0
  469. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/dynamic/index.js +40 -0
  470. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/headers/index.js +55 -0
  471. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/link/index.js +63 -0
  472. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/navigation/index.js +71 -0
  473. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +74 -0
  474. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/rsc/server-only.js +7 -0
  475. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/safe-stable-stringify/index.js +13 -0
  476. package/dist/nextjs-vite-plugin/plugins/next-mocks/compatibility/draft-mode.compat.js +7 -0
  477. package/dist/node-logger/index.d.ts +495 -0
  478. package/dist/node-logger/index.js +42 -0
  479. package/dist/oxc-parser/index.d.ts +99 -0
  480. package/dist/oxc-parser/index.js +275 -0
  481. package/dist/oxc-parser/worker.js +37 -0
  482. package/dist/preview/_chunks/runtime-BIzIdDbb.js +10263 -0
  483. package/dist/preview/_chunks/runtime-BTPtVY1p.js +1102 -0
  484. package/dist/preview/_chunks/runtime-BZSnICCg.js +8484 -0
  485. package/dist/preview/_chunks/runtime-BdGkqNEt.js +45 -0
  486. package/dist/preview/_chunks/runtime-BwSxqk3t.js +63 -0
  487. package/dist/preview/_chunks/runtime-CqHxptiK.js +6143 -0
  488. package/dist/preview/_chunks/runtime-CsV4HZPV.js +5064 -0
  489. package/dist/preview/_chunks/runtime-CxZK_Ln3.js +284 -0
  490. package/dist/preview/_chunks/runtime-DZToXfvO.js +9767 -0
  491. package/dist/preview/_chunks/runtime-DrTjJkPY.js +3872 -0
  492. package/dist/preview/_chunks/runtime-DuHdxMFA.js +387 -0
  493. package/dist/preview/_chunks/runtime-iXdo8CR8.js +3635 -0
  494. package/dist/preview/_chunks/runtime-q3wt0e_N.js +6838 -0
  495. package/dist/preview/globals.d.ts +16 -0
  496. package/dist/preview/globals.js +20 -0
  497. package/dist/preview/runtime.js +6 -0
  498. package/dist/preview-api/index.d.ts +4 -0
  499. package/dist/preview-api/index.js +147 -0
  500. package/dist/preview-errors.d.ts +186 -0
  501. package/dist/preview-errors.js +56 -0
  502. package/dist/react/docgen/docgen-worker.js +38 -0
  503. package/dist/react/entry-preview-argtypes.js +9 -0
  504. package/dist/react/entry-preview-docs.js +12 -0
  505. package/dist/react/entry-preview-rsc.js +11 -0
  506. package/dist/react/entry-preview.js +21 -0
  507. package/dist/react/index.d.ts +119 -0
  508. package/dist/react/index.js +26 -0
  509. package/dist/react/preset.js +301 -0
  510. package/dist/react/preview.d.ts +2 -0
  511. package/dist/react/preview.js +11 -0
  512. package/dist/react-native/bin/get-stories.js +34 -0
  513. package/dist/react-native/index.d.ts +160 -0
  514. package/dist/react-native/index.js +1547 -0
  515. package/dist/react-native/metro/node.d.ts +83 -0
  516. package/dist/react-native/metro/node.js +21 -0
  517. package/dist/react-native/metro/withStorybook.d.ts +2269 -0
  518. package/dist/react-native/metro/withStorybook.js +138 -0
  519. package/dist/react-native/preview.d.ts +6 -0
  520. package/dist/react-native/preview.js +20 -0
  521. package/dist/react-native/scripts/generate.d.ts +22 -0
  522. package/dist/react-native/scripts/generate.js +18 -0
  523. package/dist/react-native/stub.js +20 -0
  524. package/dist/react-native-theming/index.d.ts +175 -0
  525. package/dist/react-native-theming/index.js +2591 -0
  526. package/dist/react-native-ui/index.d.ts +130 -0
  527. package/dist/react-native-ui/index.js +1448 -0
  528. package/dist/react-native-ui-common/index.d.ts +230 -0
  529. package/dist/react-native-ui-common/index.js +514 -0
  530. package/dist/react-vite/index.d.ts +4 -0
  531. package/dist/react-vite/index.js +8 -0
  532. package/dist/react-vite/node/index.d.ts +6 -0
  533. package/dist/react-vite/node/index.js +20 -0
  534. package/dist/react-vite/preset.d.ts +6 -0
  535. package/dist/react-vite/preset.js +21 -0
  536. package/dist/router/index.d.ts +141 -0
  537. package/dist/router/index.js +1217 -0
  538. package/dist/server-errors.d.ts +2 -0
  539. package/dist/server-errors.js +149 -0
  540. package/dist/shared/open-service/index.d.ts +3 -0
  541. package/dist/shared/open-service/index.js +115 -0
  542. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +75 -0
  543. package/dist/shared/open-service/toolsets/docs/public.d.ts +1296 -0
  544. package/dist/shared/open-service/toolsets/docs/public.js +991 -0
  545. package/dist/telemetry/index.d.ts +314 -0
  546. package/dist/telemetry/index.js +103 -0
  547. package/dist/test/index.d.ts +158 -0
  548. package/dist/test/index.js +19421 -0
  549. package/dist/theming/create.d.ts +15 -0
  550. package/dist/theming/create.js +11 -0
  551. package/dist/theming/index.d.ts +54 -0
  552. package/dist/theming/index.js +511 -0
  553. package/dist/types/index.d.ts +2 -0
  554. package/dist/types/index.js +48 -0
  555. package/dist/viewport/index.d.ts +275 -0
  556. package/dist/viewport/index.js +21 -0
  557. package/package.json +1054 -4
  558. package/template/nextjs-vite/cli/.eslintrc.json +6 -0
  559. package/template/nextjs-vite/cli/js/Button.jsx +42 -0
  560. package/template/nextjs-vite/cli/js/Button.stories.js +49 -0
  561. package/template/nextjs-vite/cli/js/Configure.mdx +470 -0
  562. package/template/nextjs-vite/cli/js/Header.jsx +58 -0
  563. package/template/nextjs-vite/cli/js/Header.stories.js +30 -0
  564. package/template/nextjs-vite/cli/js/Page.jsx +68 -0
  565. package/template/nextjs-vite/cli/js/Page.stories.js +28 -0
  566. package/template/nextjs-vite/cli/ts/Button.stories.ts +54 -0
  567. package/template/nextjs-vite/cli/ts/Button.tsx +39 -0
  568. package/template/nextjs-vite/cli/ts/Configure.mdx +446 -0
  569. package/template/nextjs-vite/cli/ts/Header.stories.ts +34 -0
  570. package/template/nextjs-vite/cli/ts/Header.tsx +54 -0
  571. package/template/nextjs-vite/cli/ts/Page.stories.ts +33 -0
  572. package/template/nextjs-vite/cli/ts/Page.tsx +73 -0
  573. package/template/react/cli/.eslintrc.json +5 -0
  574. package/template/react/cli/js/Button.jsx +39 -0
  575. package/template/react/cli/js/Button.stories.js +49 -0
  576. package/template/react/cli/js/Header.jsx +56 -0
  577. package/template/react/cli/js/Header.stories.js +29 -0
  578. package/template/react/cli/js/Page.jsx +69 -0
  579. package/template/react/cli/js/Page.stories.js +28 -0
  580. package/template/react/cli/ts/Button.stories.ts +54 -0
  581. package/template/react/cli/ts/Button.tsx +37 -0
  582. package/template/react/cli/ts/Header.stories.ts +34 -0
  583. package/template/react/cli/ts/Header.tsx +56 -0
  584. package/template/react/cli/ts/Page.stories.ts +33 -0
  585. package/template/react/cli/ts/Page.tsx +73 -0
  586. package/template/react-vite/cli/.eslintrc.json +5 -0
  587. package/template/react-vite/cli/js/Button.jsx +39 -0
  588. package/template/react-vite/cli/js/Button.stories.js +49 -0
  589. package/template/react-vite/cli/js/Header.jsx +56 -0
  590. package/template/react-vite/cli/js/Header.stories.js +29 -0
  591. package/template/react-vite/cli/js/Page.jsx +69 -0
  592. package/template/react-vite/cli/js/Page.stories.js +28 -0
  593. package/template/react-vite/cli/ts/Button.stories.ts +54 -0
  594. package/template/react-vite/cli/ts/Button.tsx +37 -0
  595. package/template/react-vite/cli/ts/Header.stories.ts +34 -0
  596. package/template/react-vite/cli/ts/Header.tsx +56 -0
  597. package/template/react-vite/cli/ts/Page.stories.ts +33 -0
  598. package/template/react-vite/cli/ts/Page.tsx +73 -0
@@ -0,0 +1,1296 @@
1
+ import * as v from "valibot";
2
+
3
+ //#region ../../node_modules/@standard-schema/spec/dist/index.d.ts
4
+ /** The Standard Typed interface. This is a base type extended by other specs. */
5
+ interface StandardTypedV1<Input = unknown, Output = Input> {
6
+ /** The Standard properties. */
7
+ readonly "~standard": StandardTypedV1.Props<Input, Output>;
8
+ }
9
+ declare namespace StandardTypedV1 {
10
+ /** The Standard Typed properties interface. */
11
+ interface Props<Input = unknown, Output = Input> {
12
+ /** The version number of the standard. */
13
+ readonly version: 1;
14
+ /** The vendor name of the schema library. */
15
+ readonly vendor: string;
16
+ /** Inferred types associated with the schema. */
17
+ readonly types?: Types<Input, Output> | undefined;
18
+ }
19
+ /** The Standard Typed types interface. */
20
+ interface Types<Input = unknown, Output = Input> {
21
+ /** The input type of the schema. */
22
+ readonly input: Input;
23
+ /** The output type of the schema. */
24
+ readonly output: Output;
25
+ }
26
+ /** Infers the input type of a Standard Typed. */
27
+ type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
28
+ /** Infers the output type of a Standard Typed. */
29
+ type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
30
+ }
31
+ /** The Standard Schema interface. */
32
+ interface StandardSchemaV1<Input = unknown, Output = Input> {
33
+ /** The Standard Schema properties. */
34
+ readonly "~standard": StandardSchemaV1.Props<Input, Output>;
35
+ }
36
+ declare namespace StandardSchemaV1 {
37
+ /** The Standard Schema properties interface. */
38
+ interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
39
+ /** Validates unknown input values. */
40
+ readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
41
+ }
42
+ /** The result interface of the validate function. */
43
+ type Result<Output> = SuccessResult<Output> | FailureResult;
44
+ /** The result interface if validation succeeds. */
45
+ interface SuccessResult<Output> {
46
+ /** The typed output value. */
47
+ readonly value: Output;
48
+ /** A falsy value for `issues` indicates success. */
49
+ readonly issues?: undefined;
50
+ }
51
+ interface Options {
52
+ /** Explicit support for additional vendor-specific parameters, if needed. */
53
+ readonly libraryOptions?: Record<string, unknown> | undefined;
54
+ }
55
+ /** The result interface if validation fails. */
56
+ interface FailureResult {
57
+ /** The issues of failed validation. */
58
+ readonly issues: ReadonlyArray<Issue>;
59
+ }
60
+ /** The issue interface of the failure output. */
61
+ interface Issue {
62
+ /** The error message of the issue. */
63
+ readonly message: string;
64
+ /** The path of the issue, if any. */
65
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
66
+ }
67
+ /** The path segment interface of the issue. */
68
+ interface PathSegment {
69
+ /** The key representing a path segment. */
70
+ readonly key: PropertyKey;
71
+ }
72
+ /** The Standard types interface. */
73
+ interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
74
+ /** Infers the input type of a Standard. */
75
+ type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
76
+ /** Infers the output type of a Standard. */
77
+ type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
78
+ }
79
+ /** The Standard JSON Schema interface. */
80
+ //#endregion
81
+ //#region .dts-emit/code/core/src/shared/open-service/types.d.ts
82
+ type GetServiceOptions = {
83
+ /**
84
+ * Required when the target service is marked `internal: true`. Internal OSA surfaces are unstable
85
+ * and may change without a semver bump — only pass this when you intentionally accept that risk.
86
+ */
87
+ internal?: boolean;
88
+ };
89
+ //#endregion
90
+ //#region .dts-emit/code/core/src/shared/open-service/toolset-definition.d.ts
91
+ type AnySchema = StandardSchemaV1<unknown, unknown>;
92
+ type ToolsetTransport = 'cli' | 'mcp' | 'sdk';
93
+ /**
94
+ * Service lookup for toolset handlers. Intentionally not keyed to ServerCoreServices:
95
+ * toolsets may call core OSA (with `{ internal: true }`) or optional addon services by id.
96
+ */
97
+ type ToolsetGetService = {
98
+ <TInstance = unknown>(serviceId: string, options?: GetServiceOptions): TInstance;
99
+ };
100
+ type ToolsetCtx = {
101
+ transport: ToolsetTransport;
102
+ /**
103
+ * Forkbook UI base URL, including any deployment subpath. Absent when running from a CLI
104
+ * without a live Forkbook.
105
+ */
106
+ origin?: string;
107
+ getService: ToolsetGetService;
108
+ };
109
+ /**
110
+ * A handler's usage report: the payload describing what the call did, counts and flags alike. It
111
+ * travels on the outcome, so a handler reports at most once and in the same object as its data.
112
+ * The surface that ran the method turns it into its own telemetry record and names the event; a
113
+ * handler never names one.
114
+ */
115
+ type ToolsetTelemetryReport = {
116
+ payload: Record<string, unknown>;
117
+ };
118
+ /**
119
+ * A method description, resolved per transport.
120
+ *
121
+ * The function form exists because descriptions cross-reference sibling methods, and each surface
122
+ * spells those differently (`stories-changed` on MCP, `npx forkbook tools stories changed` on
123
+ * the CLI, dotted `toolsetId.methodName` in the SDK). Use `getToolName(ctx)` to render a reference
124
+ * rather than hardcoding a spelling.
125
+ */
126
+ type ToolsetMethodDescription = string | ((context: ToolsetCtx) => string);
127
+ /**
128
+ * The result of one method run: the tag, the structured data, the rendered Markdown, and the usage
129
+ * report, all from a single execution.
130
+ *
131
+ * The failure model in one line each: could not do the job → throw; did the job and the answer is
132
+ * bad news → return `{ ok: false, data, markdown }`. Adapters unwrap mechanically — text blocks
133
+ * from `markdown`, `structuredContent` from `data`, MCP `isError` (and later CLI exit codes) from
134
+ * `ok` — so everything a method means lives on its definition, never re-derived outside it.
135
+ *
136
+ * Declare `TFailure = never` for infallible methods; the signature then documents fallibility and
137
+ * TypeScript narrows both branches. Return plain object literals: contextual typing against this
138
+ * union does the narrowing, no factory helpers needed.
139
+ *
140
+ * `markdown` may be multiple strings: MCP renders each as its own text block (`stories-preview`
141
+ * renders one block per URL), the CLI joins them with newlines.
142
+ */
143
+ type ToolsetOutcome<TSuccess, TFailure = TSuccess, TReport extends ToolsetTelemetryReport = ToolsetTelemetryReport> = {
144
+ readonly ok: true;
145
+ readonly data: TSuccess;
146
+ readonly markdown: string | string[];
147
+ readonly telemetry?: TReport;
148
+ } | {
149
+ readonly ok: false;
150
+ readonly data: TFailure;
151
+ readonly markdown: string | string[];
152
+ readonly telemetry?: TReport;
153
+ };
154
+ type AnyToolsetOutcome = ToolsetOutcome<any, any>;
155
+ /** Output schema for a published toolset method. Must describe a JSON object. */
156
+ type ToolsetObjectOutputSchema = StandardSchemaV1<Record<string, unknown>, Record<string, unknown>>;
157
+ /**
158
+ * One public method: description, input schema, optional output schema, and one handler.
159
+ *
160
+ * The handler produces the whole {@link ToolsetOutcome} — data, side effects, the usage report,
161
+ * and the rendered Markdown — because one MCP response carries `content` (text) and
162
+ * `structuredContent` (JSON) at once, and both must come from a single run: re-running a method
163
+ * with side effects would repeat them. The usage report is part of the returned object, with the
164
+ * rendered text in hand, so no consumer can forget it.
165
+ */
166
+ type ToolsetMethod<TSchema extends AnySchema = AnySchema, TOutcome extends AnyToolsetOutcome = AnyToolsetOutcome> = {
167
+ /**
168
+ * Short display label shown by client UIs (e.g. an MCP client's tool list). Editable prose like
169
+ * `description`, not an invokable tool name.
170
+ */
171
+ title: string;
172
+ description: ToolsetMethodDescription;
173
+ input: TSchema;
174
+ /**
175
+ * Published as the MCP tool's `outputSchema`. Must describe a JSON object.
176
+ *
177
+ * A client may hand the model only this structured data and drop the text, so it has to carry
178
+ * everything `markdown` says, next-step instructions included.
179
+ */
180
+ output?: ToolsetObjectOutputSchema;
181
+ /**
182
+ * Marks a method that can only do its job against a running Forkbook dev server — because it
183
+ * needs a live origin for its URLs or reads state only the dev server owns. Consumers that run
184
+ * without one (the `forkbook tools` CLI) surface these methods behind one uniform contract:
185
+ * start the dev server first. Adapters that always have a dev server (MCP) ignore the trait.
186
+ */
187
+ requiresDevServer?: true;
188
+ handler: (input: StandardSchemaV1.InferOutput<TSchema>, context: ToolsetCtx) => TOutcome | Promise<TOutcome>;
189
+ };
190
+ type AnyToolsetMethod = ToolsetMethod<any, AnyToolsetOutcome>;
191
+ type ToolsetMethods = Record<string, AnyToolsetMethod>;
192
+ type ToolsetDefinition<TId extends string = string, TMethods extends ToolsetMethods = ToolsetMethods> = {
193
+ id: TId;
194
+ description: string;
195
+ methods: TMethods;
196
+ };
197
+ /** Resolves a method description for one transport. */
198
+ declare function resolveToolsetDescription(description: ToolsetMethodDescription, context: ToolsetCtx): string;
199
+ //#endregion
200
+ //#region .dts-emit/code/core/src/shared/open-service/toolset-names.d.ts
201
+ type ToolsetMethodId = `${string}.${string}`;
202
+ /** `stories.findByComponent` -> `stories-find-by-component`. */
203
+ declare function toMcpToolName(method: ToolsetMethodId): string;
204
+ /**
205
+ * Renders how a toolset method is spelled for the active transport.
206
+ *
207
+ * Not a composed-Storybook "ref" (`refs` in `main.js`) — the name is the invokable tool/command
208
+ * string agents see. Descriptions that tell an agent to call another tool must use this rather
209
+ * than hardcoding either spelling.
210
+ */
211
+ declare function getToolName(context: Pick<ToolsetCtx, 'transport'>): (method: ToolsetMethodId) => string;
212
+ //#endregion
213
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/instructions.d.ts
214
+ /**
215
+ * Server instructions for an MCP server that only serves the docs tools (`@aussieljk/forkbook/mcp`).
216
+ *
217
+ * This is the workflow an agent should follow across the three tools, which no single tool
218
+ * description can state: discover ids first, then fetch, and never invent a prop. It names its
219
+ * tools through {@link getToolName} so the prose cannot drift from what is registered.
220
+ */
221
+ declare const DOCS_TOOLSET_INSTRUCTIONS: string;
222
+ //#endregion
223
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/manifest-formatter/manifest-types.d.ts
224
+ declare const ManifestErrorSchema: v.ObjectSchema<{
225
+ readonly name: v.StringSchema<undefined>;
226
+ readonly message: v.StringSchema<undefined>;
227
+ }, undefined>;
228
+ type ManifestError = v.InferOutput<typeof ManifestErrorSchema>;
229
+ declare const StorySchema: v.ObjectSchema<{
230
+ readonly name: v.StringSchema<undefined>;
231
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
232
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
233
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
234
+ readonly name: v.StringSchema<undefined>;
235
+ readonly message: v.StringSchema<undefined>;
236
+ }, undefined>, undefined>;
237
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
238
+ readonly snippet: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
239
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
240
+ }, undefined>;
241
+ type Story = v.InferOutput<typeof StorySchema>;
242
+ /**
243
+ * A JSON Reference (`{ $ref }`) pointing at a value in another manifest document. Used by the v1
244
+ * (split/ref) format for docgen, story-docs and MDX payloads.
245
+ */
246
+ declare const JsonRef: v.ObjectSchema<{
247
+ readonly $ref: v.StringSchema<undefined>;
248
+ }, undefined>;
249
+ type JsonRef = v.InferOutput<typeof JsonRef>;
250
+ /** Inline (v0) docs entry: the full MDX `content` is embedded. */
251
+ declare const DocV0: v.ObjectSchema<{
252
+ readonly id: v.StringSchema<undefined>;
253
+ readonly name: v.StringSchema<undefined>;
254
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
255
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
256
+ readonly content: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
257
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
258
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
259
+ readonly name: v.StringSchema<undefined>;
260
+ readonly message: v.StringSchema<undefined>;
261
+ }, undefined>, undefined>;
262
+ }, undefined>;
263
+ type DocV0 = v.InferOutput<typeof DocV0>;
264
+ declare const SubcomponentManifest: v.ObjectSchema<{
265
+ readonly name: v.StringSchema<undefined>;
266
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
267
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
268
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
269
+ readonly name: v.StringSchema<undefined>;
270
+ readonly message: v.StringSchema<undefined>;
271
+ }, undefined>, undefined>;
272
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
273
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
274
+ readonly import: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
275
+ readonly apiDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
276
+ readonly renderer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
277
+ readonly reactComponentMeta: v.OptionalSchema<v.AnySchema, undefined>;
278
+ }, undefined>;
279
+ type SubcomponentManifest = v.InferOutput<typeof SubcomponentManifest>;
280
+ /** Inline (v0) component: docgen, stories and attached docs are all embedded. */
281
+ declare const ComponentManifestV0: v.ObjectSchema<{
282
+ readonly name: v.StringSchema<undefined>;
283
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
284
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
285
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
286
+ readonly name: v.StringSchema<undefined>;
287
+ readonly message: v.StringSchema<undefined>;
288
+ }, undefined>, undefined>;
289
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
290
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
291
+ readonly import: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
292
+ readonly apiDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
293
+ readonly renderer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
294
+ readonly reactComponentMeta: v.OptionalSchema<v.AnySchema, undefined>;
295
+ readonly id: v.StringSchema<undefined>;
296
+ readonly stories: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
297
+ readonly name: v.StringSchema<undefined>;
298
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
299
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
300
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
301
+ readonly name: v.StringSchema<undefined>;
302
+ readonly message: v.StringSchema<undefined>;
303
+ }, undefined>, undefined>;
304
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
305
+ readonly snippet: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
306
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
307
+ }, undefined>, undefined>, undefined>;
308
+ readonly subcomponents: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
309
+ readonly name: v.StringSchema<undefined>;
310
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
311
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
312
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
313
+ readonly name: v.StringSchema<undefined>;
314
+ readonly message: v.StringSchema<undefined>;
315
+ }, undefined>, undefined>;
316
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
317
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
318
+ readonly import: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
319
+ readonly apiDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
320
+ readonly renderer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
321
+ readonly reactComponentMeta: v.OptionalSchema<v.AnySchema, undefined>;
322
+ }, undefined>, undefined>, undefined>;
323
+ readonly docs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
324
+ readonly id: v.StringSchema<undefined>;
325
+ readonly name: v.StringSchema<undefined>;
326
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
327
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
328
+ readonly content: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
329
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
330
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
331
+ readonly name: v.StringSchema<undefined>;
332
+ readonly message: v.StringSchema<undefined>;
333
+ }, undefined>, undefined>;
334
+ }, undefined>, undefined>, undefined>;
335
+ }, undefined>;
336
+ type ComponentManifestV0 = v.InferOutput<typeof ComponentManifestV0>;
337
+ declare const ComponentManifestMapV0: v.ObjectSchema<{
338
+ readonly v: v.LiteralSchema<0, undefined>;
339
+ readonly components: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
340
+ readonly name: v.StringSchema<undefined>;
341
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
342
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
343
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
344
+ readonly name: v.StringSchema<undefined>;
345
+ readonly message: v.StringSchema<undefined>;
346
+ }, undefined>, undefined>;
347
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
348
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
349
+ readonly import: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
350
+ readonly apiDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
351
+ readonly renderer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
352
+ readonly reactComponentMeta: v.OptionalSchema<v.AnySchema, undefined>;
353
+ readonly id: v.StringSchema<undefined>;
354
+ readonly stories: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
355
+ readonly name: v.StringSchema<undefined>;
356
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
357
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
358
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
359
+ readonly name: v.StringSchema<undefined>;
360
+ readonly message: v.StringSchema<undefined>;
361
+ }, undefined>, undefined>;
362
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
363
+ readonly snippet: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
364
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
365
+ }, undefined>, undefined>, undefined>;
366
+ readonly subcomponents: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
367
+ readonly name: v.StringSchema<undefined>;
368
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
369
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
370
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
371
+ readonly name: v.StringSchema<undefined>;
372
+ readonly message: v.StringSchema<undefined>;
373
+ }, undefined>, undefined>;
374
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
375
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
376
+ readonly import: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
377
+ readonly apiDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
378
+ readonly renderer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
379
+ readonly reactComponentMeta: v.OptionalSchema<v.AnySchema, undefined>;
380
+ }, undefined>, undefined>, undefined>;
381
+ readonly docs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
382
+ readonly id: v.StringSchema<undefined>;
383
+ readonly name: v.StringSchema<undefined>;
384
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
385
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
386
+ readonly content: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
387
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
388
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
389
+ readonly name: v.StringSchema<undefined>;
390
+ readonly message: v.StringSchema<undefined>;
391
+ }, undefined>, undefined>;
392
+ }, undefined>, undefined>, undefined>;
393
+ }, undefined>, undefined>;
394
+ }, undefined>;
395
+ type ComponentManifestMapV0 = v.InferOutput<typeof ComponentManifestMapV0>;
396
+ declare const DocsManifestMapV0: v.ObjectSchema<{
397
+ readonly v: v.LiteralSchema<0, undefined>;
398
+ readonly docs: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
399
+ readonly id: v.StringSchema<undefined>;
400
+ readonly name: v.StringSchema<undefined>;
401
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
402
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
403
+ readonly content: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
404
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
405
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
406
+ readonly name: v.StringSchema<undefined>;
407
+ readonly message: v.StringSchema<undefined>;
408
+ }, undefined>, undefined>;
409
+ }, undefined>, undefined>;
410
+ }, undefined>;
411
+ type DocsManifestMapV0 = v.InferOutput<typeof DocsManifestMapV0>;
412
+ /**
413
+ * Shallow (v1) docs entry. The full MDX payload lives behind `mdx.$ref`; `mdx` is optional because
414
+ * the in-process dev index omits it.
415
+ */
416
+ declare const DocV1: v.ObjectSchema<{
417
+ readonly id: v.StringSchema<undefined>;
418
+ readonly name: v.StringSchema<undefined>;
419
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
420
+ readonly mdx: v.OptionalSchema<v.ObjectSchema<{
421
+ readonly $ref: v.StringSchema<undefined>;
422
+ }, undefined>, undefined>;
423
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
424
+ readonly name: v.StringSchema<undefined>;
425
+ readonly message: v.StringSchema<undefined>;
426
+ }, undefined>, undefined>;
427
+ }, undefined>;
428
+ type DocV1 = v.InferOutput<typeof DocV1>;
429
+ /**
430
+ * Shallow (v1) component index row. Identity and summary are inlined for cheap listing; docgen and
431
+ * story-docs live behind `$ref`s, attached docs behind nested `mdx.$ref`s. `stories` may also be an
432
+ * inline array, which is how a listing built with story ids resolved carries them.
433
+ */
434
+ declare const ComponentManifestV1: v.ObjectSchema<{
435
+ readonly id: v.StringSchema<undefined>;
436
+ readonly name: v.StringSchema<undefined>;
437
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
438
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
439
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
440
+ readonly name: v.StringSchema<undefined>;
441
+ readonly message: v.StringSchema<undefined>;
442
+ }, undefined>, undefined>;
443
+ readonly docgen: v.OptionalSchema<v.ObjectSchema<{
444
+ readonly $ref: v.StringSchema<undefined>;
445
+ }, undefined>, undefined>;
446
+ readonly stories: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
447
+ readonly $ref: v.StringSchema<undefined>;
448
+ }, undefined>, v.ArraySchema<v.ObjectSchema<{
449
+ readonly name: v.StringSchema<undefined>;
450
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
451
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
452
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
453
+ readonly name: v.StringSchema<undefined>;
454
+ readonly message: v.StringSchema<undefined>;
455
+ }, undefined>, undefined>;
456
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
457
+ readonly snippet: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
458
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
459
+ }, undefined>, undefined>], undefined>, undefined>;
460
+ readonly docs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
461
+ readonly id: v.StringSchema<undefined>;
462
+ readonly name: v.StringSchema<undefined>;
463
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
464
+ readonly mdx: v.OptionalSchema<v.ObjectSchema<{
465
+ readonly $ref: v.StringSchema<undefined>;
466
+ }, undefined>, undefined>;
467
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
468
+ readonly name: v.StringSchema<undefined>;
469
+ readonly message: v.StringSchema<undefined>;
470
+ }, undefined>, undefined>;
471
+ }, undefined>, undefined>, undefined>;
472
+ }, undefined>;
473
+ type ComponentManifestV1 = v.InferOutput<typeof ComponentManifestV1>;
474
+ declare const ComponentManifestMapV1: v.ObjectSchema<{
475
+ readonly v: v.LiteralSchema<1, undefined>;
476
+ readonly components: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
477
+ readonly id: v.StringSchema<undefined>;
478
+ readonly name: v.StringSchema<undefined>;
479
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
480
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
481
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
482
+ readonly name: v.StringSchema<undefined>;
483
+ readonly message: v.StringSchema<undefined>;
484
+ }, undefined>, undefined>;
485
+ readonly docgen: v.OptionalSchema<v.ObjectSchema<{
486
+ readonly $ref: v.StringSchema<undefined>;
487
+ }, undefined>, undefined>;
488
+ readonly stories: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
489
+ readonly $ref: v.StringSchema<undefined>;
490
+ }, undefined>, v.ArraySchema<v.ObjectSchema<{
491
+ readonly name: v.StringSchema<undefined>;
492
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
493
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
494
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
495
+ readonly name: v.StringSchema<undefined>;
496
+ readonly message: v.StringSchema<undefined>;
497
+ }, undefined>, undefined>;
498
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
499
+ readonly snippet: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
500
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
501
+ }, undefined>, undefined>], undefined>, undefined>;
502
+ readonly docs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
503
+ readonly id: v.StringSchema<undefined>;
504
+ readonly name: v.StringSchema<undefined>;
505
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
506
+ readonly mdx: v.OptionalSchema<v.ObjectSchema<{
507
+ readonly $ref: v.StringSchema<undefined>;
508
+ }, undefined>, undefined>;
509
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
510
+ readonly name: v.StringSchema<undefined>;
511
+ readonly message: v.StringSchema<undefined>;
512
+ }, undefined>, undefined>;
513
+ }, undefined>, undefined>, undefined>;
514
+ }, undefined>, undefined>;
515
+ }, undefined>;
516
+ type ComponentManifestMapV1 = v.InferOutput<typeof ComponentManifestMapV1>;
517
+ declare const DocsManifestMapV1: v.ObjectSchema<{
518
+ readonly v: v.LiteralSchema<1, undefined>;
519
+ readonly docs: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
520
+ readonly id: v.StringSchema<undefined>;
521
+ readonly name: v.StringSchema<undefined>;
522
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
523
+ readonly mdx: v.OptionalSchema<v.ObjectSchema<{
524
+ readonly $ref: v.StringSchema<undefined>;
525
+ }, undefined>, undefined>;
526
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
527
+ readonly name: v.StringSchema<undefined>;
528
+ readonly message: v.StringSchema<undefined>;
529
+ }, undefined>, undefined>;
530
+ }, undefined>, undefined>;
531
+ }, undefined>;
532
+ type DocsManifestMapV1 = v.InferOutput<typeof DocsManifestMapV1>;
533
+ /** `components.json`, discriminated on `v` (0 = inline, 1 = split/ref). */
534
+ declare const ComponentManifestMap: v.VariantSchema<"v", [v.ObjectSchema<{
535
+ readonly v: v.LiteralSchema<0, undefined>;
536
+ readonly components: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
537
+ readonly name: v.StringSchema<undefined>;
538
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
539
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
540
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
541
+ readonly name: v.StringSchema<undefined>;
542
+ readonly message: v.StringSchema<undefined>;
543
+ }, undefined>, undefined>;
544
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
545
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
546
+ readonly import: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
547
+ readonly apiDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
548
+ readonly renderer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
549
+ readonly reactComponentMeta: v.OptionalSchema<v.AnySchema, undefined>;
550
+ readonly id: v.StringSchema<undefined>;
551
+ readonly stories: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
552
+ readonly name: v.StringSchema<undefined>;
553
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
554
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
555
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
556
+ readonly name: v.StringSchema<undefined>;
557
+ readonly message: v.StringSchema<undefined>;
558
+ }, undefined>, undefined>;
559
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
560
+ readonly snippet: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
561
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
562
+ }, undefined>, undefined>, undefined>;
563
+ readonly subcomponents: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
564
+ readonly name: v.StringSchema<undefined>;
565
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
566
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
567
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
568
+ readonly name: v.StringSchema<undefined>;
569
+ readonly message: v.StringSchema<undefined>;
570
+ }, undefined>, undefined>;
571
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
572
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
573
+ readonly import: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
574
+ readonly apiDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
575
+ readonly renderer: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
576
+ readonly reactComponentMeta: v.OptionalSchema<v.AnySchema, undefined>;
577
+ }, undefined>, undefined>, undefined>;
578
+ readonly docs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
579
+ readonly id: v.StringSchema<undefined>;
580
+ readonly name: v.StringSchema<undefined>;
581
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
582
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
583
+ readonly content: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
584
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
585
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
586
+ readonly name: v.StringSchema<undefined>;
587
+ readonly message: v.StringSchema<undefined>;
588
+ }, undefined>, undefined>;
589
+ }, undefined>, undefined>, undefined>;
590
+ }, undefined>, undefined>;
591
+ }, undefined>, v.ObjectSchema<{
592
+ readonly v: v.LiteralSchema<1, undefined>;
593
+ readonly components: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
594
+ readonly id: v.StringSchema<undefined>;
595
+ readonly name: v.StringSchema<undefined>;
596
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
597
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
598
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
599
+ readonly name: v.StringSchema<undefined>;
600
+ readonly message: v.StringSchema<undefined>;
601
+ }, undefined>, undefined>;
602
+ readonly docgen: v.OptionalSchema<v.ObjectSchema<{
603
+ readonly $ref: v.StringSchema<undefined>;
604
+ }, undefined>, undefined>;
605
+ readonly stories: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
606
+ readonly $ref: v.StringSchema<undefined>;
607
+ }, undefined>, v.ArraySchema<v.ObjectSchema<{
608
+ readonly name: v.StringSchema<undefined>;
609
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
610
+ readonly jsDocTags: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
611
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
612
+ readonly name: v.StringSchema<undefined>;
613
+ readonly message: v.StringSchema<undefined>;
614
+ }, undefined>, undefined>;
615
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
616
+ readonly snippet: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
617
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
618
+ }, undefined>, undefined>], undefined>, undefined>;
619
+ readonly docs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
620
+ readonly id: v.StringSchema<undefined>;
621
+ readonly name: v.StringSchema<undefined>;
622
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
623
+ readonly mdx: v.OptionalSchema<v.ObjectSchema<{
624
+ readonly $ref: v.StringSchema<undefined>;
625
+ }, undefined>, undefined>;
626
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
627
+ readonly name: v.StringSchema<undefined>;
628
+ readonly message: v.StringSchema<undefined>;
629
+ }, undefined>, undefined>;
630
+ }, undefined>, undefined>, undefined>;
631
+ }, undefined>, undefined>;
632
+ }, undefined>], undefined>;
633
+ type ComponentManifestMap = v.InferOutput<typeof ComponentManifestMap>;
634
+ /** `docs.json` for standalone documentation entries, discriminated on `v`. */
635
+ declare const DocsManifestMap: v.VariantSchema<"v", [v.ObjectSchema<{
636
+ readonly v: v.LiteralSchema<0, undefined>;
637
+ readonly docs: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
638
+ readonly id: v.StringSchema<undefined>;
639
+ readonly name: v.StringSchema<undefined>;
640
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
641
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
642
+ readonly content: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
643
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
644
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
645
+ readonly name: v.StringSchema<undefined>;
646
+ readonly message: v.StringSchema<undefined>;
647
+ }, undefined>, undefined>;
648
+ }, undefined>, undefined>;
649
+ }, undefined>, v.ObjectSchema<{
650
+ readonly v: v.LiteralSchema<1, undefined>;
651
+ readonly docs: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
652
+ readonly id: v.StringSchema<undefined>;
653
+ readonly name: v.StringSchema<undefined>;
654
+ readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
655
+ readonly mdx: v.OptionalSchema<v.ObjectSchema<{
656
+ readonly $ref: v.StringSchema<undefined>;
657
+ }, undefined>, undefined>;
658
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
659
+ readonly name: v.StringSchema<undefined>;
660
+ readonly message: v.StringSchema<undefined>;
661
+ }, undefined>, undefined>;
662
+ }, undefined>, undefined>;
663
+ }, undefined>], undefined>;
664
+ type DocsManifestMap = v.InferOutput<typeof DocsManifestMap>;
665
+ /** A component index row as it appears in either format. */
666
+ type ComponentManifestEntry = ComponentManifestV0 | ComponentManifestV1;
667
+ /** A docs index row as it appears in either format. */
668
+ type DocEntry = DocV0 | DocV1;
669
+ /**
670
+ * A fully-resolved component, as consumed by the formatters: inline shape (stories as an array,
671
+ * attached docs with `content`, docgen inlined). Identical to the v0 shape — v1 rows reach it by
672
+ * following their `$ref`s, or by being built in-process from the open services.
673
+ */
674
+ type ComponentManifest = ComponentManifestV0;
675
+ /** A fully-resolved docs entry (inline `content`), as consumed by the formatters. */
676
+ type Doc = DocV0;
677
+ type AllManifests = {
678
+ componentManifest: ComponentManifestMap;
679
+ docsManifest?: DocsManifestMap;
680
+ };
681
+ //#endregion
682
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/access.d.ts
683
+ /**
684
+ * One fully-assembled entry: docgen, stories, and MDX content already merged. This is the shape the
685
+ * Markdown formatters consume, which is why it uses the inline manifest types rather than the
686
+ * shallow index rows `list` returns.
687
+ */
688
+ type ResolvedDocsEntry = {
689
+ kind: 'component';
690
+ component: ComponentManifest;
691
+ } | {
692
+ kind: 'doc';
693
+ doc: Doc;
694
+ };
695
+ type DocsAccess = {
696
+ /** Shallow component + standalone-docs index. Story ids are resolved only when requested. */list(options: {
697
+ withStoryIds: boolean;
698
+ }): Promise<AllManifests>; /** One component or standalone docs entry, fully assembled; undefined when the id is unknown. */
699
+ resolve(id: string): Promise<ResolvedDocsEntry | undefined>;
700
+ };
701
+ /** A listing with no components and no standalone docs. */
702
+ declare function emptyManifests(): AllManifests;
703
+ //#endregion
704
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/sources.d.ts
705
+ /** One Forkbook in a composition. The local source has no `url`. */
706
+ type Source = {
707
+ /** Stable identifier, used as the `storybookId` tool input. */id: string; /** Human-readable title, used as the section header when listing. */
708
+ title: string; /** Remote URL; undefined for the local Forkbook. */
709
+ url?: string;
710
+ };
711
+ type SourceWithUrl = Source & {
712
+ url: string;
713
+ };
714
+ /** Guidance for a source that can only be read through its own MCP endpoint. */
715
+ type RequiresOwnMcpNotice = {
716
+ kind: 'requires-own-mcp';
717
+ endpoint: string;
718
+ };
719
+ /**
720
+ * One source's contribution to a composed listing. Exactly one of `manifests`, `error` or `notice`
721
+ * carries the outcome, so a failing source occupies its own section instead of the whole listing.
722
+ */
723
+ type SourceListing = {
724
+ source: Source;
725
+ manifests?: AllManifests;
726
+ error?: string;
727
+ notice?: RequiresOwnMcpNotice;
728
+ };
729
+ declare function getSourceMcpEndpoint(source: SourceWithUrl): string;
730
+ /**
731
+ * A private composed Forkbook cannot be proxied — its credentials belong to the user, not to this
732
+ * server — so the answer is the address the agent should talk to instead.
733
+ */
734
+ declare function formatRequiresOwnMcpNotice(source: Source, endpoint: string, options?: {
735
+ includeHeader?: boolean;
736
+ }): string;
737
+ declare class RequiresOwnMcpError extends Error {
738
+ readonly source: SourceWithUrl;
739
+ readonly endpoint: string;
740
+ constructor(source: SourceWithUrl);
741
+ }
742
+ /** Thrown when a manifest cannot be fetched or does not parse. */
743
+ declare class ManifestGetError extends Error {
744
+ readonly url: string;
745
+ readonly cause?: Error;
746
+ constructor(message: string, url?: string, cause?: Error);
747
+ }
748
+ //#endregion
749
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/access-provider.d.ts
750
+ /** Where the top-level manifests live, relative to the Forkbook build. */
751
+ declare const COMPONENT_MANIFEST_PATH = "./manifests/components.json";
752
+ declare const DOCS_MANIFEST_PATH = "./manifests/docs.json";
753
+ /**
754
+ * Fetches one manifest file by path. `request` is the incoming MCP request, which the default
755
+ * provider uses to derive the origin; custom providers may ignore it.
756
+ */
757
+ type ManifestProvider = (request: Request | undefined, path: string, source?: Source) => Promise<string>;
758
+ type ProviderDocsAccessOptions = {
759
+ manifestProvider?: ManifestProvider; /** The in-flight request. Read per call, because the access outlives any single request. */
760
+ getRequest?: () => Request | undefined; /** The composed source this access reads, when part of a composition. */
761
+ source?: Source;
762
+ /**
763
+ * Resolves a single entry in-process, bypassing the manifest index. The dev server passes this
764
+ * for its local source when `docgenServer` is on, so one lookup never triggers
765
+ * docgen extraction for every component.
766
+ */
767
+ resolveEntry?: (id: string, source?: Source) => Promise<ResolvedDocsEntry | undefined>;
768
+ };
769
+ /** Fetches and validates the component and docs manifests for one source. */
770
+ declare function fetchManifests(request?: Request, manifestProvider?: ManifestProvider, source?: Source): Promise<AllManifests>;
771
+ /**
772
+ * Resolves a `$ref` into the provider path of the referenced file and the JSON-pointer segments
773
+ * into it.
774
+ *
775
+ * The path is relative to the component manifest's location, e.g.
776
+ * `"../services/core/docgen/button.json#/components/button"` resolves to
777
+ * `./services/core/docgen/button.json` with pointer `["components", "button"]`.
778
+ */
779
+ declare function parseManifestRef(ref: string): {
780
+ path: string;
781
+ pointer: string[];
782
+ };
783
+ /**
784
+ * Resolves a component index row into a full component manifest by following any `$ref`s it carries
785
+ * (docgen, story-docs, attached MDX), then adapting the payloads into the formatter's shape. Rows
786
+ * without any `$ref` are already in resolved (inline/v0) form and are returned unchanged.
787
+ */
788
+ declare function resolveComponentEntry(component: ComponentManifestEntry, request?: Request, manifestProvider?: ManifestProvider, source?: Source): Promise<ComponentManifest>;
789
+ /**
790
+ * Resolves only a component's stories `$ref`, leaving docgen and docs refs untouched. Listing with
791
+ * story ids uses this so it doesn't pay for docgen and MDX resolution it won't show.
792
+ */
793
+ declare function resolveComponentStories(component: ComponentManifestEntry, request?: Request, manifestProvider?: ManifestProvider, source?: Source): Promise<ComponentManifestEntry>;
794
+ /** Resolves a standalone docs row, following its `mdx.$ref` when present. */
795
+ declare function resolveDocEntry(doc: DocEntry, request?: Request, manifestProvider?: ManifestProvider, source?: Source): Promise<Doc>;
796
+ /** Docs access over manifest files served by a provider. */
797
+ declare function createProviderDocsAccess({
798
+ manifestProvider,
799
+ getRequest,
800
+ source,
801
+ resolveEntry
802
+ }?: ProviderDocsAccessOptions): DocsAccess;
803
+ //#endregion
804
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/multi-source.d.ts
805
+ /** One composed source and the access that reads it. */
806
+ type DocsSource = {
807
+ source: Source;
808
+ access: DocsAccess;
809
+ };
810
+ type CompositionDocsSourcesOptions = {
811
+ sources: Source[];
812
+ manifestProvider?: ManifestProvider;
813
+ getRequest?: () => Request | undefined;
814
+ /**
815
+ * Reads the local Forkbook — the source with no `url` — instead of fetching manifests from it.
816
+ * The dev server passes its service-backed access here when `docgenServer` is on,
817
+ * where the local `/manifests/*.json` are deliberately 404'd and the data lives in the services.
818
+ */
819
+ localAccess?: DocsAccess;
820
+ /**
821
+ * Resolves a single entry in-process, short-cutting the manifest index. Part of the hosted
822
+ * package's public context, so it stays available to embedders that supply one.
823
+ */
824
+ resolveEntry?: (id: string, source?: Source) => Promise<ResolvedDocsEntry | undefined>;
825
+ };
826
+ /**
827
+ * Builds one access per composed source.
828
+ *
829
+ * Remote sources are read through the same provider access a single hosted Forkbook uses, which is
830
+ * what lets a composition reuse that implementation rather than a parallel one. The local source
831
+ * may instead be handed a ready-made access, so the dev server reads itself the same way in a
832
+ * composition as it does alone.
833
+ */
834
+ declare function createCompositionDocsSources({
835
+ sources,
836
+ manifestProvider,
837
+ getRequest,
838
+ localAccess,
839
+ resolveEntry
840
+ }: CompositionDocsSourcesOptions): DocsSource[];
841
+ /**
842
+ * Lists every source concurrently, turning a failure into that source's own outcome.
843
+ *
844
+ * One unreachable or private source must not cost the agent the entire listing, which is the whole
845
+ * reason each result is captured rather than awaited together.
846
+ */
847
+ declare function listSources(sources: DocsSource[], options: {
848
+ withStoryIds: boolean;
849
+ }): Promise<SourceListing[]>;
850
+ //#endregion
851
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/definition.d.ts
852
+ /**
853
+ * Which Storybooks these tools serve — exactly one of the two.
854
+ *
855
+ * Modelled as an exclusive union so neither "no access at all" nor "both, one silently winning" can
856
+ * be constructed: a composition takes a `storybookId` on every lookup and a single Forkbook must
857
+ * not ask for one, and that difference is decided here.
858
+ */
859
+ type CreateDocsToolsetOptions = {
860
+ /** Reads the one Forkbook these tools serve. */docsAccess: DocsAccess;
861
+ sources?: never;
862
+ } | {
863
+ /** The composed Storybooks these tools serve; ids are only unique within a source. */sources: DocsSource[];
864
+ docsAccess?: never;
865
+ };
866
+ type DocsListOutput = {
867
+ withStoryIds: boolean; /** Single-source listing. */
868
+ manifests?: AllManifests; /** Per-source listings, in composition. */
869
+ sources?: SourceListing[];
870
+ };
871
+ type DocsShowOutput = {
872
+ id: string;
873
+ entry?: ResolvedDocsEntry;
874
+ storybookId?: string; /** Set when the request named no source, or one that does not exist. */
875
+ sourceError?: string; /** Set when the named source can only be read through its own MCP endpoint. */
876
+ notice?: string;
877
+ };
878
+ type DocsShowStoryOutput = {
879
+ componentId?: string;
880
+ storyName?: string;
881
+ storyId?: string;
882
+ entry?: ResolvedDocsEntry;
883
+ storybookId?: string;
884
+ sourceError?: string;
885
+ notice?: string;
886
+ };
887
+ /**
888
+ * The manifests a listing should be reported against.
889
+ *
890
+ * Reporting predates composition and describes one Forkbook, so a composed listing is reported
891
+ * against the first source that produced one. Nothing is returned when no source did — a listing of
892
+ * nothing but errors is not a usage signal.
893
+ */
894
+ declare function selectReportedManifests({
895
+ manifests,
896
+ sources
897
+ }: DocsListOutput): AllManifests | undefined;
898
+ /**
899
+ * Whether `docs.show` failed: an unusable source, or an id that resolved to nothing.
900
+ *
901
+ * The handlers encode this in the outcome tag; the predicate stays exported because it is part of
902
+ * the frozen `@aussieljk/forkbook/mcp` API.
903
+ */
904
+ declare function isDocsShowError(output: DocsShowOutput): boolean;
905
+ /** Whether `docs.showStory` failed: an unusable source, a missing component, or a missing story. */
906
+ declare function isDocsShowStoryError(output: DocsShowStoryOutput): boolean;
907
+ declare function describeList(ctx: ToolsetCtx): string;
908
+ declare function describeShow(ctx: ToolsetCtx): string;
909
+ /**
910
+ * Creates the public docs API over an injected {@link DocsAccess}.
911
+ *
912
+ * The toolset never reads services or manifests itself, so the same definition serves the dev
913
+ * server (open services or the built manifests), a hosted Forkbook (manifest files over any
914
+ * provider), and a composition of several of those.
915
+ */
916
+ declare function createDocsToolset(options: CreateDocsToolsetOptions): ToolsetDefinition<"docs", {
917
+ readonly list: {
918
+ readonly input: v.StrictObjectSchema<{
919
+ readonly withStoryIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "When true, includes story sub-bullets under each component with story name and story ID. Use this to discover IDs for downstream story-focused workflows without filesystem lookup.">]>, false>;
920
+ }, undefined>;
921
+ readonly title: "List All Documentation";
922
+ readonly description: typeof describeList;
923
+ readonly handler: (input: any) => Promise<ToolsetOutcome<DocsListOutput, never>>;
924
+ };
925
+ readonly show: {
926
+ readonly input: v.StrictObjectSchema<{
927
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "The component or docs entry ID (e.g., \"button\")">]>;
928
+ }, undefined>;
929
+ readonly title: "Get Documentation";
930
+ readonly description: typeof describeShow;
931
+ readonly handler: (input: any, ctx: ToolsetCtx) => Promise<ToolsetOutcome<DocsShowOutput>>;
932
+ };
933
+ readonly showStory: {
934
+ readonly input: v.StrictObjectSchema<{
935
+ storyId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "The story ID, as listed by the docs list tool with withStoryIds: true and shown next to each story in the component documentation (e.g., \"button--primary\"). Prefer this over componentId + storyName whenever you have a story ID.">]>;
936
+ componentId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "The component ID (e.g., \"button\"). Use together with storyName, and only when you have no story ID.">]>;
937
+ storyName: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "The human-readable story name (e.g., \"Primary\"). Use together with componentId.">]>;
938
+ }, undefined> | v.StrictObjectSchema<{
939
+ readonly storybookId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "The ID of the Forkbook source to query (e.g., \"local\", \"design-system\"). Defaults to \"local\", this Forkbook.">]>, "local">;
940
+ readonly storyId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "The story ID, as listed by the docs list tool with withStoryIds: true and shown next to each story in the component documentation (e.g., \"button--primary\"). Prefer this over componentId + storyName whenever you have a story ID.">]>;
941
+ readonly componentId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "The component ID (e.g., \"button\"). Use together with storyName, and only when you have no story ID.">]>;
942
+ readonly storyName: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "The human-readable story name (e.g., \"Primary\"). Use together with componentId.">]>;
943
+ }, undefined>;
944
+ readonly title: "Get Documentation for Story";
945
+ readonly description: "Get detailed documentation for a specific story variant of a UI component. Use this when you need to see more usage examples of a component, via the stories written for it. Identify the story by its story ID (preferred), or by componentId plus storyName.";
946
+ readonly handler: (input: any, ctx: ToolsetCtx) => Promise<ToolsetOutcome<DocsShowStoryOutput>>;
947
+ };
948
+ }>;
949
+ type DocsToolset = ReturnType<typeof createDocsToolset>;
950
+ //#endregion
951
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/estimate-tokens.d.ts
952
+ /**
953
+ * Estimates token count from text using a fast approximation.
954
+ * Counts:
955
+ * - Continuous whitespace as a single token
956
+ * - Continuous alphanumeric sequences as single tokens
957
+ * - Each special character as an individual token
958
+ *
959
+ * This is a cheap approximation suitable for telemetry purposes.
960
+ *
961
+ * @param text - The text to estimate token count for
962
+ * @returns Estimated token count
963
+ */
964
+ declare function estimateTokens(text: string): number;
965
+ //#endregion
966
+ //#region .dts-emit/code/core/src/csf/SBType.d.ts
967
+ interface SBBaseType {
968
+ required?: boolean;
969
+ raw?: string;
970
+ }
971
+ type SBScalarType = SBBaseType & {
972
+ name: 'boolean' | 'string' | 'number' | 'function' | 'symbol' | 'date';
973
+ };
974
+ type SBArrayType = SBBaseType & {
975
+ name: 'array';
976
+ value: SBType;
977
+ };
978
+ type SBNodeType = SBBaseType & {
979
+ name: 'node';
980
+ renderer: string;
981
+ };
982
+ type SBObjectType = SBBaseType & {
983
+ name: 'object';
984
+ value: Record<string, SBType>;
985
+ };
986
+ type SBEnumType = SBBaseType & {
987
+ name: 'enum';
988
+ value: (string | number | null)[];
989
+ };
990
+ type SBIntersectionType = SBBaseType & {
991
+ name: 'intersection';
992
+ value: SBType[];
993
+ };
994
+ type SBUnionType = SBBaseType & {
995
+ name: 'union';
996
+ value: SBType[];
997
+ };
998
+ type SBLiteralType = SBBaseType & {
999
+ name: 'literal';
1000
+ value: unknown;
1001
+ };
1002
+ type SBTupleType = SBBaseType & {
1003
+ name: 'tuple';
1004
+ value: SBType[];
1005
+ };
1006
+ type SBOtherType = SBBaseType & {
1007
+ name: 'other';
1008
+ value: string;
1009
+ };
1010
+ type SBType = SBScalarType | SBEnumType | SBArrayType | SBNodeType | SBObjectType | SBIntersectionType | SBUnionType | SBLiteralType | SBTupleType | SBOtherType;
1011
+ //#endregion
1012
+ //#region .dts-emit/code/core/src/csf/story.d.ts
1013
+ type ControlType = 'object' | 'boolean' | 'check' | 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select' | 'number' | 'range' | 'file' | 'color' | 'date' | 'text';
1014
+ type ConditionalTest = {
1015
+ truthy?: boolean;
1016
+ } | {
1017
+ exists: boolean;
1018
+ } | {
1019
+ eq: any;
1020
+ } | {
1021
+ neq: any;
1022
+ };
1023
+ type ConditionalValue = {
1024
+ arg: string;
1025
+ } | {
1026
+ global: string;
1027
+ };
1028
+ type Conditional = ConditionalValue & ConditionalTest;
1029
+ interface ControlBase {
1030
+ [key: string]: any;
1031
+ /** @see https://storybook.js.org/docs/api/arg-types#controltype */
1032
+ type?: ControlType;
1033
+ disable?: boolean;
1034
+ }
1035
+ type Control = ControlType | false | (ControlBase & (ControlBase | {
1036
+ type: 'color'; /** @see https://storybook.js.org/docs/api/arg-types#controlpresetcolors */
1037
+ presetColors?: string[];
1038
+ } | {
1039
+ type: 'file'; /** @see https://storybook.js.org/docs/api/arg-types#controlaccept */
1040
+ accept?: string;
1041
+ } | {
1042
+ type: 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select'; /** @see https://storybook.js.org/docs/api/arg-types#controllabels */
1043
+ labels?: {
1044
+ [options: string]: string;
1045
+ };
1046
+ } | {
1047
+ type: 'number' | 'range'; /** @see https://storybook.js.org/docs/api/arg-types#controlmax */
1048
+ max?: number; /** @see https://storybook.js.org/docs/api/arg-types#controlmin */
1049
+ min?: number; /** @see https://storybook.js.org/docs/api/arg-types#controlstep */
1050
+ step?: number;
1051
+ }));
1052
+ interface InputType {
1053
+ /** @see https://storybook.js.org/docs/api/arg-types#control */
1054
+ control?: Control;
1055
+ /** @see https://storybook.js.org/docs/api/arg-types#description */
1056
+ description?: string;
1057
+ /** @see https://storybook.js.org/docs/api/arg-types#if */
1058
+ if?: Conditional;
1059
+ /** @see https://storybook.js.org/docs/api/arg-types#mapping */
1060
+ mapping?: {
1061
+ [key: string]: any;
1062
+ };
1063
+ /** @see https://storybook.js.org/docs/api/arg-types#name */
1064
+ name?: string;
1065
+ /** @see https://storybook.js.org/docs/api/arg-types#options */
1066
+ options?: readonly any[];
1067
+ /** @see https://storybook.js.org/docs/api/arg-types#table */
1068
+ table?: {
1069
+ [key: string]: unknown; /** @see https://storybook.js.org/docs/api/arg-types#tablecategory */
1070
+ category?: string; /** @see https://storybook.js.org/docs/api/arg-types#tabledefaultvalue */
1071
+ defaultValue?: {
1072
+ summary?: string | undefined;
1073
+ detail?: string | undefined;
1074
+ }; /** @see https://storybook.js.org/docs/api/arg-types#tabledisable */
1075
+ disable?: boolean; /** @see https://storybook.js.org/docs/api/arg-types#tablesubcategory */
1076
+ subcategory?: string; /** @see https://storybook.js.org/docs/api/arg-types#tabletype */
1077
+ type?: {
1078
+ summary?: string | undefined;
1079
+ detail?: string | undefined;
1080
+ };
1081
+ };
1082
+ /** @see https://storybook.js.org/docs/api/arg-types#type */
1083
+ type?: SBType | SBScalarType['name'];
1084
+ /**
1085
+ * Removed. Set the story value with `args`, or the docs-table text with `table.defaultValue`.
1086
+ * The index signature would otherwise still accept this field.
1087
+ */
1088
+ defaultValue?: never;
1089
+ [key: string]: any;
1090
+ }
1091
+ interface StrictInputType extends InputType {
1092
+ name: string;
1093
+ type?: SBType;
1094
+ }
1095
+ interface Args {
1096
+ [name: string]: any;
1097
+ }
1098
+ type StrictArgTypes<TArgs = Args> = { [name in keyof TArgs]: StrictInputType };
1099
+ //#endregion
1100
+ //#region .dts-emit/code/core/src/shared/open-service/services/story-docs/types.d.ts
1101
+ /** Free-form error attached to a story snippet entry. */
1102
+ interface StoryDocsError {
1103
+ name: string;
1104
+ message: string;
1105
+ }
1106
+ /** Snippet + metadata for one story under a component. */
1107
+ interface StoryDoc {
1108
+ id: string;
1109
+ name: string;
1110
+ snippet?: string;
1111
+ description?: string;
1112
+ summary?: string;
1113
+ /**
1114
+ * What a static pass could not resolve, in the source text it was written as. Next to a
1115
+ * `snippet` it marks the example as partial; on its own it says why no static snippet could be
1116
+ * produced at all. An `error` means the provider itself failed.
1117
+ */
1118
+ warning?: string;
1119
+ error?: StoryDocsError;
1120
+ }
1121
+ /** Story docs keyed by story id for O(1) lookup and fine-grained open-service subscriptions. */
1122
+ type StoryDocsById = Record<string, StoryDoc>;
1123
+ //#endregion
1124
+ //#region .dts-emit/code/core/src/shared/open-service/services/docgen/types.d.ts
1125
+ /** Free-form error attached to a payload or subcomponent. */
1126
+ interface DocgenError {
1127
+ name: string;
1128
+ message: string;
1129
+ }
1130
+ /** Compact JSDoc tag map: tag name → list of tag values (e.g. `@example a` → `{ example: ['a'] }`). */
1131
+ type DocgenJsDocTags = Record<string, string[]>;
1132
+ /**
1133
+ * Docgen payload returned by `core/docgen`'s `docgen` query.
1134
+ *
1135
+ * Component-only fields (props, descriptions, subcomponents). Story snippets and file-level
1136
+ * imports live in `core/story-docs` when `docgenServer` is enabled.
1137
+ */
1138
+ interface DocgenPayload {
1139
+ id: string;
1140
+ name: string;
1141
+ /** CSF story file import path from the index entry (same as component manifest `path`). */
1142
+ path: string;
1143
+ description?: string;
1144
+ summary?: string;
1145
+ jsDocTags: DocgenJsDocTags;
1146
+ /** Renderer-converted argTypes derived from integration-specific docgen data at write time. */
1147
+ argTypes?: StrictArgTypes;
1148
+ /**
1149
+ * Framework-authored API documentation in Markdown, rendered verbatim in place of the props
1150
+ * section. Prefer `##` level headings for sections (Inputs, Outputs, Props, Events, Slots) and TS
1151
+ * types for structured data.
1152
+ */
1153
+ apiDescription?: string;
1154
+ /** Renderer id (e.g. `angular`), so a consumer knows which template syntax the component takes. */
1155
+ renderer?: string;
1156
+ subcomponents?: Record<string, DocgenSubcomponent>;
1157
+ error?: DocgenError;
1158
+ [key: string]: unknown;
1159
+ }
1160
+ /** Component-level summary + docgen for one subcomponent. */
1161
+ interface DocgenSubcomponent {
1162
+ name: string;
1163
+ path: string;
1164
+ description?: string;
1165
+ summary?: string;
1166
+ import?: string;
1167
+ jsDocTags: DocgenJsDocTags;
1168
+ /** Renderer-converted argTypes derived from integration-specific docgen data at write time. */
1169
+ argTypes?: StrictArgTypes;
1170
+ /** See {@link DocgenPayload.apiDescription}. */
1171
+ apiDescription?: string;
1172
+ /** See {@link DocgenPayload.renderer}. */
1173
+ renderer?: string;
1174
+ error?: DocgenError;
1175
+ [key: string]: unknown;
1176
+ }
1177
+ //#endregion
1178
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/map.d.ts
1179
+ type MdxDoc = {
1180
+ id: string;
1181
+ name: string;
1182
+ path?: string;
1183
+ title?: string;
1184
+ content?: string;
1185
+ summary?: string;
1186
+ error?: {
1187
+ name: string;
1188
+ message: string;
1189
+ };
1190
+ };
1191
+ //#endregion
1192
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/manifest-formatter/adapt-core-manifest.d.ts
1193
+ /**
1194
+ * Adapts the `docgenServer` open-service payloads into the manifest formatter's
1195
+ * {@link ComponentManifest}/{@link Doc} shapes.
1196
+ *
1197
+ * Only `argTypes` is dropped: the props section comes from `apiDescription` when the framework
1198
+ * authored one, else from the `react*` docgen-engine fields. All of those pass through unchanged.
1199
+ */
1200
+ /**
1201
+ * A component assembled from the `core/docgen` payload plus the `core/story-docs` stories and
1202
+ * resolved attached MDX docs.
1203
+ */
1204
+ type CoreDocgenComponent = Partial<Omit<DocgenPayload, 'id' | 'name'>> & {
1205
+ id: string;
1206
+ name: string;
1207
+ import?: string; /** Story snippets, either as a story-docs record or an already-resolved array. */
1208
+ stories?: StoryDocsById | Story[]; /** Attached docs keyed by doc id (resolved MDX payloads). */
1209
+ docs?: Record<string, MdxDoc>;
1210
+ };
1211
+ /** Converts the story-docs `stories` record (or an already-resolved array) into `Story[]`. */
1212
+ declare function adaptCoreStories(stories: CoreDocgenComponent['stories']): Story[] | undefined;
1213
+ /** Adapts one MDX service payload into a {@link Doc}. */
1214
+ declare function adaptCoreDoc(doc: MdxDoc): Doc;
1215
+ /** Adapts a core-format component (docgen + story-docs + attached MDX) into a {@link ComponentManifest}. */
1216
+ declare function adaptCoreComponent(core: CoreDocgenComponent): ComponentManifest;
1217
+ //#endregion
1218
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/manifest-formatter/extract-docs-summary.d.ts
1219
+ /**
1220
+ * Maximum length for a summary before truncation.
1221
+ */
1222
+ declare const MAX_SUMMARY_LENGTH = 90;
1223
+ /**
1224
+ * Extracts a summary from MDX content.
1225
+ * The summary is created by:
1226
+ * 1. Removing import statements
1227
+ * 2. Removing JSX/MDX expressions
1228
+ * 3. Extracting only text content from JSX/HTML elements
1229
+ * 4. Truncating to MAX_SUMMARY_LENGTH characters if needed
1230
+ *
1231
+ * @param content - The MDX content string
1232
+ * @returns A summary string, or undefined if no meaningful text content is found
1233
+ */
1234
+ declare function extractDocsSummary(content: string): string | undefined;
1235
+ //#endregion
1236
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/manifest-formatter/markdown.d.ts
1237
+ /**
1238
+ * Maximum number of stories to show in full detail in component manifests.
1239
+ * Remaining stories will be shown as names only.
1240
+ */
1241
+ declare const MAX_STORIES_TO_SHOW = 3;
1242
+ type ListFormattingOptions = {
1243
+ withStoryIds?: boolean;
1244
+ };
1245
+ /**
1246
+ * Format a single component manifest into markdown.
1247
+ */
1248
+ declare function formatComponentManifest(componentManifest: ComponentManifest): string;
1249
+ /**
1250
+ * Format a single doc manifest into markdown.
1251
+ */
1252
+ declare function formatDocsManifest(doc: Doc): string;
1253
+ /**
1254
+ * Format a component manifest map into a markdown list.
1255
+ * @param manifest - The component manifest map to format
1256
+ * @returns Formatted string representation of the component list
1257
+ */
1258
+ declare function formatManifestsToLists(manifests: AllManifests, options?: ListFormattingOptions): string;
1259
+ /**
1260
+ * Format a single story's documentation.
1261
+ */
1262
+ declare function formatStoryDocumentation(componentManifest: ComponentManifest, storyName: string): string;
1263
+ //#endregion
1264
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/manifest-formatter/parse-component-meta.d.ts
1265
+ /**
1266
+ * Parses the `reactComponentMeta` docgen payload into a simple props list. The dev server and the
1267
+ * hosted `@aussieljk/forkbook/mcp` package (which bundles this entry) both use this parser. The types below
1268
+ * are only the fields that the parser reads.
1269
+ */
1270
+ type ParsedDocgen = {
1271
+ tags?: Record<string, string[]>;
1272
+ props: Record<string, {
1273
+ description?: string;
1274
+ type?: string;
1275
+ defaultValue?: string;
1276
+ required?: boolean;
1277
+ }>;
1278
+ };
1279
+ /** The fields of a `reactComponentMeta` payload that the parser reads. */
1280
+ type ComponentMetaDoc = {
1281
+ tags?: Record<string, unknown>;
1282
+ props?: Record<string, {
1283
+ description?: string;
1284
+ required?: boolean;
1285
+ type?: {
1286
+ name?: string;
1287
+ raw?: string;
1288
+ };
1289
+ defaultValue?: {
1290
+ value?: string;
1291
+ } | null;
1292
+ }>;
1293
+ };
1294
+ declare const parseReactComponentMeta: (componentDoc: ComponentMetaDoc) => ParsedDocgen;
1295
+ //#endregion
1296
+ export { type AllManifests, COMPONENT_MANIFEST_PATH, type ComponentManifest, type ComponentManifestEntry, ComponentManifestMap, ComponentManifestMapV0, ComponentManifestMapV1, type ComponentManifestV0, type ComponentManifestV1, type CompositionDocsSourcesOptions, type CoreDocgenComponent, type CreateDocsToolsetOptions, DOCS_MANIFEST_PATH, DOCS_TOOLSET_INSTRUCTIONS, type Doc, type DocEntry, type DocV0, type DocV1, type DocsAccess, type DocsListOutput, DocsManifestMap, DocsManifestMapV0, DocsManifestMapV1, type DocsShowOutput, type DocsShowStoryOutput, type DocsSource, type DocsToolset, JsonRef, MAX_STORIES_TO_SHOW, MAX_SUMMARY_LENGTH, type ManifestError, ManifestGetError, type ManifestProvider, type ParsedDocgen, type ProviderDocsAccessOptions, RequiresOwnMcpError, type RequiresOwnMcpNotice, type ResolvedDocsEntry, type Source, type SourceListing, type Story, type SubcomponentManifest, type ToolsetCtx, type ToolsetMethodId, type ToolsetOutcome, adaptCoreComponent, adaptCoreDoc, adaptCoreStories, createCompositionDocsSources, createDocsToolset, createProviderDocsAccess, emptyManifests, estimateTokens, extractDocsSummary, fetchManifests, formatComponentManifest, formatDocsManifest, formatManifestsToLists, formatRequiresOwnMcpNotice, formatStoryDocumentation, getSourceMcpEndpoint, getToolName, isDocsShowError, isDocsShowStoryError, listSources, parseManifestRef, parseReactComponentMeta, resolveComponentEntry, resolveComponentStories, resolveDocEntry, resolveToolsetDescription, selectReportedManifests, toMcpToolName };