@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,2200 @@
1
+ import { B as ServerServiceRegistration, G as ServiceInstanceOf, H as ServiceDescriptor, K as ServiceRegistrationOptions, M as QueryCtx, N as QueryDefinition, O as OperationDescriptor, P as QueryFunctions, R as RuntimeService, U as ServiceId, V as ServiceDefinition, W as ServiceInstance, Y as ServiceSummary, b as CommandDefinition, j as Query, o as ToolsetGetService, v as Command, y as CommandCtx, z as SchemaDescriptor } from "../chunk-BCoJQE-f.js";
2
+ import { Co as StoryDocsProviderPreset, Cs as ImportParser, Ds as FileChangeEvent, Ec as Tag, Es as ChangeDetectionAdapter, Fc as TestProviderStoreEvent, Nc as TestProviderStateByProviderId, Os as ModuleResolveConfig, Pc as TestProviderStoreById, So as StoryDocsProviderInput, Ss as ImportEdge, St as StatusTypeId, Tc as defineService, Ts as ParseFileArgs, Uc as UniversalStore, Vc as MockUniversalStore, Yo as Options$1, _c as DocsAccess, _t as Status$1, bo as StoryDocsPayload, bt as StatusStoreByTypeId$1, dc as PreviewStoriesOutput, fc as StoryIndexAccess, gc as SourceWithUrl, hc as createDocsToolset, jc as TestProviderId, lc as registerToolset, lo as ModuleGraphServiceState, mc as reviewToolset, pc as createStoriesToolset, pt as StorybookError, vc as ResolvedDocsEntry, ws as ImportParserContext, wt as StatusesByStoryIdAndTypeId$1, xt as StatusStoreEvent, yc as emptyManifests, yt as StatusStore } from "../chunk-C2p5r3Vt.js";
3
+ import { n as registerService, t as getService$1 } from "../chunk-CwQKNaYL.js";
4
+ import { ArgTypes, SBType } from "@aussieljk/forkbook/internal/csf";
5
+ import { Channel, ChannelLike } from "@aussieljk/forkbook/internal/channels";
6
+ import { Builder, BuilderOptions, CLIOptions, DocsAnchor, DocsIndexEntry, DocsOptions, IndexEntry, IndexInputStats, Indexer, LoadOptions, Manifests, NormalizedStoriesSpecifier, Options, Path, Presets, Status, StatusStoreByTypeId, StatusValue, StoryIndex, StoryIndexEntry, StorybookConfigRaw } from "@aussieljk/forkbook/internal/types";
7
+ import * as v from "valibot";
8
+ import { getPreviewBodyTemplate, getPreviewHeadTemplate, loadAllPresets } from "@aussieljk/forkbook/internal/common";
9
+ import { EventType } from "@aussieljk/forkbook/internal/telemetry";
10
+ import { watch } from "node:fs";
11
+ import { readFile, stat } from "node:fs/promises";
12
+ import { WebSocketServer } from "ws";
13
+ import { IncomingMessage } from "node:http";
14
+
15
+ //#region .dts-emit/code/core/src/core-server/build-static.d.ts
16
+ type BuildStaticStandaloneOptions = CLIOptions & LoadOptions & BuilderOptions & {
17
+ outputDir: string;
18
+ };
19
+ declare function buildStaticStandalone(options: BuildStaticStandaloneOptions): Promise<void>;
20
+ //#endregion
21
+ //#region .dts-emit/code/core/src/core-server/build-dev.d.ts
22
+ declare function buildDevStandalone(options: CLIOptions & LoadOptions & BuilderOptions & {
23
+ storybookVersion?: string;
24
+ }): Promise<{
25
+ port: number;
26
+ address: string;
27
+ networkAddress: string;
28
+ }>;
29
+ //#endregion
30
+ //#region .dts-emit/code/core/src/core-server/build-index.d.ts
31
+ type BuildIndexOptions = CLIOptions & LoadOptions & BuilderOptions;
32
+ declare const buildIndex: (options: BuildIndexOptions) => Promise<import("@aussieljk/forkbook/internal/types").StoryIndex>;
33
+ declare const buildIndexStandalone: (options: BuildIndexOptions & {
34
+ outputFile: string;
35
+ }) => Promise<void>;
36
+ //#endregion
37
+ //#region .dts-emit/code/core/src/core-server/withTelemetry.d.ts
38
+ type TelemetryOptions = {
39
+ cliOptions: CLIOptions;
40
+ presetOptions?: Parameters<typeof loadAllPresets>[0];
41
+ printError?: (err: any) => void;
42
+ skipPrompt?: boolean;
43
+ eventType?: EventType;
44
+ fallbackTelemetryState?: boolean;
45
+ };
46
+ type ErrorLevel = 'none' | 'error' | 'full';
47
+ declare function getErrorLevel({
48
+ cliOptions,
49
+ presetOptions,
50
+ skipPrompt,
51
+ eventType
52
+ }: TelemetryOptions): Promise<ErrorLevel>;
53
+ declare function sendTelemetryError(_error: unknown, eventType: EventType, options: TelemetryOptions, blocking?: boolean, parent?: StorybookError): Promise<void>;
54
+ declare function withTelemetry<T>(eventType: EventType, options: TelemetryOptions, run: () => Promise<T>): Promise<T | undefined>;
55
+ //#endregion
56
+ //#region .dts-emit/code/core/src/core-server/standalone.d.ts
57
+ declare function build$1(options?: any, frameworkOptions?: any): Promise<void | {
58
+ port: number;
59
+ address: string;
60
+ networkAddress: string;
61
+ }>;
62
+ //#endregion
63
+ //#region .dts-emit/code/core/src/core-server/utils/server-statics.d.ts
64
+ declare const mapStaticDir: (staticDir: NonNullable<StorybookConfigRaw['staticDirs']>[number], configDir: string) => {
65
+ staticDir: string;
66
+ staticPath: string;
67
+ targetDir: string;
68
+ targetEndpoint: string;
69
+ };
70
+ //#endregion
71
+ //#region ../../node_modules/tsconfig-paths/lib/filesystem.d.ts
72
+ /**
73
+ * A function that json from a file
74
+ */
75
+ interface ReadJsonSync {
76
+ (packageJsonPath: string): any | undefined;
77
+ }
78
+ //#endregion
79
+ //#region ../../node_modules/tsconfig-paths/lib/match-path-sync.d.ts
80
+ /**
81
+ * Function that can match a path
82
+ */
83
+ interface MatchPath {
84
+ (requestedModule: string, readJson?: ReadJsonSync, fileExists?: (name: string) => boolean, extensions?: ReadonlyArray<string>): string | undefined;
85
+ }
86
+ //#endregion
87
+ //#region .dts-emit/code/core/src/core-server/utils/IndexingError.d.ts
88
+ declare class IndexingError extends Error {
89
+ importPaths: string[];
90
+ constructor(message: string, importPaths: string[], stack?: string);
91
+ pathsString(): string;
92
+ toString(): string;
93
+ }
94
+ //#endregion
95
+ //#region .dts-emit/code/core/src/core-server/utils/summarizeStats.d.ts
96
+ type IndexStatsSummary = Record<keyof IndexInputStats, number>;
97
+ //#endregion
98
+ //#region .dts-emit/code/core/src/core-server/utils/StoryIndexGenerator.d.ts
99
+ type StoryIndexEntryWithExtra = StoryIndexEntry & {
100
+ extra: {
101
+ metaId?: string;
102
+ stats: IndexInputStats;
103
+ };
104
+ };
105
+ /** A .mdx file will produce a docs entry */
106
+ type DocsCacheEntry = DocsIndexEntry;
107
+ /** A `_.stories._` file will produce a list of stories and possibly a docs entry */
108
+ type StoriesCacheEntry = {
109
+ entries: (StoryIndexEntryWithExtra | DocsIndexEntry)[];
110
+ dependents: Path[];
111
+ type: 'stories';
112
+ };
113
+ type ErrorEntry = {
114
+ type: 'error';
115
+ err: IndexingError;
116
+ };
117
+ type CacheEntry = false | StoriesCacheEntry | DocsCacheEntry | ErrorEntry;
118
+ type SpecifierStoriesCache = Record<Path, CacheEntry>;
119
+ type StoryIndexGeneratorOptions = {
120
+ workingDir: Path;
121
+ configDir: Path;
122
+ indexers: Indexer[];
123
+ docs: DocsOptions;
124
+ build?: StorybookConfigRaw['build'];
125
+ features?: StorybookConfigRaw['features'];
126
+ storySorts?: StorybookConfigRaw['storySorts'];
127
+ };
128
+ /**
129
+ * The StoryIndexGenerator extracts stories and docs entries for each file matching (one or more)
130
+ * stories "specifiers", as defined in main.js.
131
+ *
132
+ * The output is a set of entries (see above for the types).
133
+ *
134
+ * Each file is treated as a stories or a (modern) docs file.
135
+ *
136
+ * A stories file is indexed by an indexer (passed in), which produces a list of stories.
137
+ *
138
+ * - If the stories have the `parameters.docsOnly` setting, they are disregarded.
139
+ * - If the stories have `autodocs` enabled, a docs entry is added pointing to the story file.
140
+ *
141
+ * A (modern) docs (.mdx) file is indexed, a docs entry is added.
142
+ *
143
+ * In the preview, a docs entry with the `autodocs` tag will be rendered as a CSF file that exports
144
+ * an MDX template on the `docs.page` parameter, whereas other docs entries are rendered as MDX
145
+ * files directly.
146
+ *
147
+ * The entries are "uniq"-ed and sorted. Stories entries are preferred to docs entries and MDX docs
148
+ * entries are preferred to CSF templates (with warnings).
149
+ */
150
+ declare class StoryIndexGenerator {
151
+ readonly specifiers: NormalizedStoriesSpecifier[];
152
+ readonly options: StoryIndexGeneratorOptions;
153
+ private specifierToCache;
154
+ /** Cache for findMatchingFiles results */
155
+ private static findMatchingFilesCache;
156
+ private lastIndex?;
157
+ private lastStats?;
158
+ private lastError?;
159
+ private invalidationListeners;
160
+ constructor(specifiers: NormalizedStoriesSpecifier[], options: StoryIndexGeneratorOptions);
161
+ /** Generate a cache key for findMatchingFiles */
162
+ private static getFindMatchingFilesCacheKey;
163
+ /** Clear the findMatchingFiles cache */
164
+ static clearFindMatchingFilesCache(): void;
165
+ static findMatchingFiles(specifier: NormalizedStoriesSpecifier, workingDir: Path, ignoreWarnings?: boolean): Promise<SpecifierStoriesCache>;
166
+ static findMatchingFilesForSpecifiers(specifiers: NormalizedStoriesSpecifier[], workingDir: Path, ignoreWarnings?: boolean): Promise<Array<readonly [NormalizedStoriesSpecifier, SpecifierStoriesCache]>>;
167
+ initialize(): Promise<void>;
168
+ /** Run the updater function over all the empty cache entries */
169
+ updateExtracted(updater: (specifier: NormalizedStoriesSpecifier, absolutePath: Path, existingEntry: CacheEntry) => Promise<CacheEntry>, overwrite?: boolean): Promise<void>;
170
+ isDocsMdx(absolutePath: Path): boolean;
171
+ ensureExtracted({
172
+ projectTags
173
+ }: {
174
+ projectTags?: Tag[];
175
+ }): Promise<{
176
+ entries: (IndexEntry | ErrorEntry)[];
177
+ stats: IndexStatsSummary;
178
+ }>;
179
+ findDependencies(absoluteImports: Path[]): StoriesCacheEntry[];
180
+ /**
181
+ * Try to find the component path from a raw import string and return it in the same format as
182
+ * `importPath`. Respect tsconfig paths if available.
183
+ *
184
+ * If no such file exists, assume that the import is from a package and return the raw
185
+ */
186
+ resolveComponentPath(rawComponentPath: Path, absolutePath: Path, matchPath: MatchPath | undefined): string;
187
+ extractStories(specifier: NormalizedStoriesSpecifier, absolutePath: Path, projectTags?: Tag[]): Promise<StoriesCacheEntry | DocsCacheEntry>;
188
+ extractDocs(specifier: NormalizedStoriesSpecifier, absolutePath: Path, projectTags?: Tag[]): Promise<false | DocsIndexEntry>;
189
+ chooseDuplicate(firstEntry: IndexEntry, secondEntry: IndexEntry, projectTags: Tag[]): IndexEntry;
190
+ sortStories(entries: StoryIndex['entries'], storySortParameter: any): Promise<Record<string, IndexEntry>>;
191
+ getIndex(): Promise<StoryIndex>;
192
+ getIndexAndStats(): Promise<{
193
+ storyIndex: StoryIndex;
194
+ stats: IndexStatsSummary;
195
+ }>;
196
+ invalidateAll(): void;
197
+ invalidate(importPath: Path, removed: boolean): void;
198
+ onInvalidated(listener: () => void): () => void;
199
+ getPreviewCode(): Promise<string | undefined>;
200
+ getProjectTags(previewCode?: string): string[];
201
+ static storyFileNames(specifierToCache: Map<NormalizedStoriesSpecifier, SpecifierStoriesCache>): string[];
202
+ }
203
+ //#endregion
204
+ //#region .dts-emit/code/core/src/core-server/utils/get-stories-paths-from-config.d.ts
205
+ /**
206
+ * Resolves story file paths from a main config's `stories` field without evaluating story files.
207
+ *
208
+ * @example
209
+ *
210
+ * ```typescript
211
+ * const storiesPaths = await getStoriesPathsFromConfig({
212
+ * stories: ['src\/**\/*.stories.tsx'],
213
+ * configDir: '/path/to/.forkbook',
214
+ * workingDir: '/path/to/project',
215
+ * });
216
+ * ```
217
+ */
218
+ declare const getStoriesPathsFromConfig: ({
219
+ stories,
220
+ configDir,
221
+ workingDir
222
+ }: {
223
+ stories: StorybookConfigRaw['stories'];
224
+ configDir: string;
225
+ workingDir: string;
226
+ }) => Promise<string[]>;
227
+ //#endregion
228
+ //#region .dts-emit/code/core/src/core-server/utils/get-dummy-args-from-argtypes.d.ts
229
+ type ComponentArgTypesInfo = {
230
+ required: boolean;
231
+ type: SBType;
232
+ };
233
+ type ComponentArgTypesData = {
234
+ props?: Record<string, ComponentArgTypesInfo>;
235
+ };
236
+ //#endregion
237
+ //#region .dts-emit/code/core/src/core-server/load.d.ts
238
+ declare function loadStorybook(options: CLIOptions & LoadOptions & BuilderOptions & {
239
+ storybookVersion?: string;
240
+ previewConfigPath?: string;
241
+ /**
242
+ * The channel handed to every preset. Callers that prepared state on a channel of their own
243
+ * (the `forkbook tools` CLI prepares the UniversalStore singleton on one) must pass it here,
244
+ * so addon hooks that answer requests over `options.channel` share the caller's bus.
245
+ */
246
+ channel?: Channel;
247
+ }): Promise<Options>;
248
+ //#endregion
249
+ //#region .dts-emit/code/core/src/core-server/utils/analyze-mdx.d.ts
250
+ type MdxAnalysisResult = {
251
+ title: string | undefined;
252
+ of: string | undefined;
253
+ name: string | undefined;
254
+ id: string | undefined;
255
+ summary: string | undefined;
256
+ isTemplate: boolean;
257
+ metaTags?: string[];
258
+ imports: string[];
259
+ anchors?: DocsAnchor[];
260
+ };
261
+ declare const analyzeMdx: (code: string) => Promise<MdxAnalysisResult>;
262
+ //#endregion
263
+ //#region .dts-emit/code/core/src/core-server/utils/manifests/mdx-manifest.d.ts
264
+ /**
265
+ * Canonical contract for the MDX docs open service.
266
+ *
267
+ * The service implementation lives in `@aussieljk/forkbook/addon-docs`, but the data contract (service id,
268
+ * on-disk/`$ref` layout, payload shapes, and the consumer query handle) lives here in core so the
269
+ * addon that produces it and the core manifest writer that consumes it share one source of truth.
270
+ * Mirrors the docgen service contract under `shared/open-service/services/docgen/`.
271
+ */
272
+ /** A JSON Reference (`{ $ref }`) pointing at a value in another manifest document. */
273
+ type JsonRef = {
274
+ $ref: string;
275
+ };
276
+ /** Open-service id for the MDX docs service (also the on-disk directory under `services/`). */
277
+ declare const MDX_SERVICE_ID = "addon-docs/mdx";
278
+ /** Free-form error captured while reading or analyzing an MDX doc. */
279
+ interface MdxError {
280
+ name: string;
281
+ message: string;
282
+ }
283
+ /**
284
+ * One MDX doc, both as stored in the service and as resolved from a manifest `$ref`.
285
+ *
286
+ * `summary` shares `content`'s optionality: it is derived from the doc when available (an explicit
287
+ * `Meta` summary, falling back to text extracted from the content) and omitted otherwise.
288
+ */
289
+ interface MdxDocPayload {
290
+ id: string;
291
+ name: string;
292
+ path: string;
293
+ title: string;
294
+ content?: string;
295
+ summary?: string;
296
+ error?: MdxError;
297
+ mdx?: never;
298
+ }
299
+ /** Per-component MDX payload: every doc grouped under a single component (or standalone) id. */
300
+ interface MdxPayload {
301
+ id: string;
302
+ name: string;
303
+ docs: Record<string, MdxDocPayload>;
304
+ }
305
+ /** Shallow docs index row: id, name, optional summary, and a `$ref` to the full MDX payload. */
306
+ interface DocsManifestRefEntry {
307
+ id: string;
308
+ name: string;
309
+ summary?: string;
310
+ mdx: JsonRef;
311
+ path?: never;
312
+ title?: never;
313
+ content?: never;
314
+ error?: never;
315
+ }
316
+ /** A docs manifest entry is either an inline payload or a shallow `$ref` row. */
317
+ type DocsManifestEntry = MdxDocPayload | DocsManifestRefEntry;
318
+ /** Minimal consumer handle for reading every MDX payload from the live service (dev). */
319
+ interface MdxServiceContract {
320
+ queries: {
321
+ mdxForAllComponents: {
322
+ loaded: () => Promise<Record<string, MdxPayload>>;
323
+ };
324
+ };
325
+ }
326
+ /** Relative path segment for one component's static snapshot file (`<id>.json`). */
327
+ declare function mdxQueryStaticPath(id: string): string;
328
+ /** Logical static-store key: `addon-docs/mdx/<id>.json`. */
329
+ declare function mdxStaticStorePath(id: string): string;
330
+ /** `$ref` target for one doc, relative to the `manifests/` directory. */
331
+ declare function mdxManifestRef(componentId: string, docId: string): string;
332
+ //#endregion
333
+ //#region .dts-emit/code/core/src/shared/open-service/service-registry.d.ts
334
+ /** Returns one summary entry per registered service — the lowest-cost discovery endpoint. */
335
+ declare function listServices(): Promise<ServiceSummary[]>;
336
+ /** Returns the schema-backed descriptor for one registered service. */
337
+ declare function describeService(serviceId: ServiceId): Promise<ServiceDescriptor>;
338
+ //#endregion
339
+ //#region .dts-emit/code/core/src/shared/open-service/services/story-docs/provider.d.ts
340
+ interface WorkerGatedStoryDocsProviderOptions {
341
+ /** Name shown in the debug log when a story file cannot be read, such as `Vue`. */
342
+ label: string;
343
+ /** Absolute path of the docgen worker module that must be registered for this provider to run. */
344
+ docgenWorker: string;
345
+ /** Story files this provider reads. Defaults to CSF story files. */
346
+ storyFileTest?: RegExp;
347
+ /** Reads one story file; `undefined` hands the story to the next provider. */
348
+ build: (input: StoryDocsProviderInput) => Promise<StoryDocsPayload | undefined>;
349
+ }
350
+ /**
351
+ * Create an `experimental_storyDocsProvider` preset that only runs when the renderer's docgen worker
352
+ * is registered, and merges its payload over the next provider's.
353
+ *
354
+ * A story file the provider cannot read falls back to the next provider and is logged at debug level.
355
+ */
356
+ declare function createWorkerGatedStoryDocsProvider({
357
+ label,
358
+ docgenWorker,
359
+ storyFileTest,
360
+ build
361
+ }: WorkerGatedStoryDocsProviderOptions): StoryDocsProviderPreset;
362
+ //#endregion
363
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/stories/story-input.d.ts
364
+ /**
365
+ * Shared story selector used by the stories and test APIs.
366
+ *
367
+ * Prefer `{ storyId }` unless the caller already has a concrete story-file path and export name.
368
+ */
369
+ declare const storyInputSchema: v.UnionSchema<[v.ObjectSchema<{
370
+ readonly props: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
371
+ [x: string]: any;
372
+ } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
373
+ readonly globals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
374
+ [x: string]: any;
375
+ } | undefined, "Optional Forkbook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
376
+ readonly exportName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "The export name of the story from the story file.\nUse this path-based shape only when you're already editing a .stories.* file and know the export names in that file.\nIf you do not already have story file context, prefer the storyId shape instead of searching files.">]>;
377
+ readonly explicitStoryName: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "If the story has an explicit name set via the \"name\" property, that is different from the export name, provide it here.\nOtherwise don't set this.">]>;
378
+ readonly absoluteStoryPath: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Absolute path to the story file. Use together with exportName only when story file context is already available.">]>;
379
+ }, undefined>, v.ObjectSchema<{
380
+ readonly props: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
381
+ [x: string]: any;
382
+ } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
383
+ readonly globals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
384
+ [x: string]: any;
385
+ } | undefined, "Optional Forkbook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
386
+ readonly storyId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, `The full Forkbook story ID (for example "button--primary").
387
+ Prefer this shape whenever you are not already working in a specific story file.
388
+ Use IDs discovered from ${string} (withStoryIds=true) or ${string}.`>]>;
389
+ }, undefined>], undefined>;
390
+ declare const storyInputArraySchema: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
391
+ readonly props: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
392
+ [x: string]: any;
393
+ } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
394
+ readonly globals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
395
+ [x: string]: any;
396
+ } | undefined, "Optional Forkbook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
397
+ readonly exportName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "The export name of the story from the story file.\nUse this path-based shape only when you're already editing a .stories.* file and know the export names in that file.\nIf you do not already have story file context, prefer the storyId shape instead of searching files.">]>;
398
+ readonly explicitStoryName: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "If the story has an explicit name set via the \"name\" property, that is different from the export name, provide it here.\nOtherwise don't set this.">]>;
399
+ readonly absoluteStoryPath: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Absolute path to the story file. Use together with exportName only when story file context is already available.">]>;
400
+ }, undefined>, v.ObjectSchema<{
401
+ readonly props: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
402
+ [x: string]: any;
403
+ } | undefined, "Optional custom props to pass to the story for rendering. Use this when you don't want to render the default story,\nbut you want to customize some args or other props.\nYou can look up the component's documentation using the get-storybook-story-instructions tool to see what props are available.">]>;
404
+ readonly globals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>, v.DescriptionAction<{
405
+ [x: string]: any;
406
+ } | undefined, "Optional Forkbook globals to set for the story preview. Globals are used for things like theme, locale, viewport, and other cross-cutting concerns.\nCommon globals include 'theme' (e.g., 'dark', 'light'), 'locale' (e.g., 'en', 'fr'), and 'backgrounds' (e.g., { value: '#000' }).">]>;
407
+ readonly storyId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, `The full Forkbook story ID (for example "button--primary").
408
+ Prefer this shape whenever you are not already working in a specific story file.
409
+ Use IDs discovered from ${string} (withStoryIds=true) or ${string}.`>]>;
410
+ }, undefined>], undefined>, undefined>;
411
+ type StoryInput = v.InferOutput<typeof storyInputSchema>;
412
+ //#endregion
413
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/stories/find-story-ids.d.ts
414
+ interface FoundStory {
415
+ /** The matched index entry — carrying it proves the id exists in the index. */
416
+ entry: IndexEntry;
417
+ input: StoryInput;
418
+ }
419
+ interface NotFoundStory {
420
+ input: StoryInput;
421
+ errorMessage: string;
422
+ }
423
+ type FindStoryIdsResult = FoundStory | NotFoundStory;
424
+ /**
425
+ * Finds story IDs in the story index that match the given story inputs.
426
+ *
427
+ * Returns per-input lookup results in the same order as `stories`.
428
+ */
429
+ declare function findStoryIds(index: StoryIndex, stories: StoryInput[]): FindStoryIdsResult[];
430
+ //#endregion
431
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/access-service.d.ts
432
+ type ServiceDocsAccessOptions = {
433
+ storyIndex: {
434
+ getIndex: () => Promise<StoryIndex>;
435
+ };
436
+ getService: ToolsetGetService;
437
+ };
438
+ declare function createServiceDocsAccess({
439
+ storyIndex,
440
+ getService
441
+ }: ServiceDocsAccessOptions): DocsAccess;
442
+ //#endregion
443
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/access-manifest.d.ts
444
+ /** The manifests as they leave core's manifest builder, before any shape is assumed. */
445
+ type RawManifests = {
446
+ components?: unknown;
447
+ docs?: unknown;
448
+ };
449
+ type ManifestDocsAccessOptions = {
450
+ getManifests: () => Promise<RawManifests>;
451
+ };
452
+ declare function createManifestDocsAccess({
453
+ getManifests
454
+ }: ManifestDocsAccessOptions): DocsAccess;
455
+ //#endregion
456
+ //#region .dts-emit/code/core/src/shared/open-service/toolsets/docs/access-local.d.ts
457
+ type LocalDocsAccessOptions = {
458
+ storyIndex: {
459
+ getIndex: () => Promise<StoryIndex>;
460
+ }; /** Reads the live inline manifests, e.g. core-server's `loadManifests`. */
461
+ getManifests: () => Promise<RawManifests>;
462
+ };
463
+ declare function createLocalDocsAccess({
464
+ storyIndex,
465
+ getManifests
466
+ }: LocalDocsAccessOptions): DocsAccess;
467
+ //#endregion
468
+ //#region .dts-emit/code/core/src/core-server/utils/manifests/manifests.d.ts
469
+ /**
470
+ * Loads the live manifests, the same way the dev-server manifest routes do.
471
+ *
472
+ * Exposed for the docs toolset, which reads manifest data in-process instead of fetching its own
473
+ * server over loopback HTTP.
474
+ */
475
+ declare function loadManifests(presets: Presets): Promise<Manifests>;
476
+ //#endregion
477
+ //#region .dts-emit/code/core/src/core-server/utils/get-refs-from-config.d.ts
478
+ /**
479
+ * Reads the composed Storybooks from the project's `refs` as docs sources, in config order.
480
+ *
481
+ * Only the configured `refs` count, not auto-refs from package dependencies; a function-form
482
+ * `refs` receives an empty object instead of them. Disabled refs and refs without a string `url`
483
+ * are dropped, and so is a ref keyed `local`, the id reserved for this Forkbook's own source. Ids
484
+ * and titles are normalised the way the manager does for the sidebar, so a source id matches the
485
+ * ref id in Forkbook URLs. No network access.
486
+ *
487
+ * A `refs` config that throws yields no sources and a warning, because this also runs for tools
488
+ * that load the config without the manager, such as the Vitest plugin and the tools CLI.
489
+ */
490
+ declare function getRefsFromConfig(options: Options): Promise<SourceWithUrl[]>;
491
+ //#endregion
492
+ //#region .dts-emit/code/core/src/core-server/stores/status.d.ts
493
+ declare function createServerStatusStore(leader: boolean): {
494
+ getStatusStoreByTypeId: (typeId: StatusTypeId) => StatusStoreByTypeId$1;
495
+ fullStatusStore: StatusStore & {
496
+ selectStatuses: (statuses: Status$1[]) => void;
497
+ typeId: undefined;
498
+ };
499
+ universalStatusStore: UniversalStore<StatusesByStoryIdAndTypeId$1, StatusStoreEvent>;
500
+ };
501
+ type StatusStoreBundle = ReturnType<typeof createServerStatusStore>;
502
+ declare const getStatusStoreByTypeId: StatusStoreBundle['getStatusStoreByTypeId'];
503
+ declare const fullStatusStore: StatusStoreBundle['fullStatusStore'];
504
+ declare const universalStatusStore: StatusStoreBundle['universalStatusStore'];
505
+ //#endregion
506
+ //#region .dts-emit/code/core/src/core-server/change-detection/errors.d.ts
507
+ declare class ChangeDetectionUnavailableError extends Error {
508
+ constructor(message: string, options?: ErrorOptions);
509
+ }
510
+ declare class ChangeDetectionFailureError extends Error {
511
+ constructor(message: string, options?: ErrorOptions);
512
+ }
513
+ //#endregion
514
+ //#region .dts-emit/code/core/src/core-server/change-detection/readiness.d.ts
515
+ type ChangeDetectionReadiness = {
516
+ status: 'ready';
517
+ } | {
518
+ status: 'unavailable';
519
+ reason: string;
520
+ error?: Error;
521
+ } | {
522
+ status: 'error';
523
+ error: Error;
524
+ };
525
+ type ChangeDetectionHost = () => void | Promise<void>;
526
+ /**
527
+ * Install a one-shot starter the first {@link getChangeDetectionReadiness} call runs. The CLI uses
528
+ * this so git/status scanning does not start at bootstrap; the dev server starts the service itself
529
+ * and never installs a host.
530
+ */
531
+ declare function setChangeDetectionHost(next?: ChangeDetectionHost): void;
532
+ declare function getChangeDetectionReadiness(): Promise<ChangeDetectionReadiness>;
533
+ declare function resetChangeDetectionReadiness(): void;
534
+ //#endregion
535
+ //#region .dts-emit/code/core/src/shared/open-service/services/module-graph/definition.d.ts
536
+ declare const moduleGraphServiceDef: ServiceDefinition<ModuleGraphServiceState, {
537
+ readonly status: QueryDefinition<ModuleGraphServiceState, v.UndefinedSchema<undefined>, v.VariantSchema<"value", [v.ObjectSchema<{
538
+ readonly value: v.LiteralSchema<"booting", undefined>;
539
+ }, undefined>, v.ObjectSchema<{
540
+ readonly value: v.LiteralSchema<"ready", undefined>;
541
+ }, undefined>, v.ObjectSchema<{
542
+ readonly value: v.LiteralSchema<"error", undefined>;
543
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
544
+ }, undefined>, v.ObjectSchema<{
545
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
546
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
547
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
548
+ }, undefined>], undefined>, {
549
+ readonly _applyGraphSnapshot: v.ObjectSchema<{
550
+ readonly storiesByFile: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, v.DescriptionAction<{
551
+ [x: string]: {
552
+ [x: string]: number;
553
+ };
554
+ }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
555
+ }, undefined>;
556
+ readonly _applyGraphUpdate: v.ObjectSchema<{
557
+ readonly bumpedStoryFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
558
+ readonly changedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "When (unix ms) the change was made. Defaults to now when unknown.">]>, undefined>;
559
+ }, undefined>;
560
+ readonly _setStatus: v.VariantSchema<"value", [v.ObjectSchema<{
561
+ readonly value: v.LiteralSchema<"booting", undefined>;
562
+ }, undefined>, v.ObjectSchema<{
563
+ readonly value: v.LiteralSchema<"ready", undefined>;
564
+ }, undefined>, v.ObjectSchema<{
565
+ readonly value: v.LiteralSchema<"error", undefined>;
566
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
567
+ }, undefined>, v.ObjectSchema<{
568
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
569
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
570
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
571
+ }, undefined>], undefined>;
572
+ readonly _waitForSettledEngine: v.UndefinedSchema<undefined>;
573
+ readonly _waitForChangeDetectionReadiness: v.UndefinedSchema<undefined>;
574
+ }, {
575
+ readonly _applyGraphSnapshot: v.VoidSchema<undefined>;
576
+ readonly _applyGraphUpdate: v.VoidSchema<undefined>;
577
+ readonly _setStatus: v.VoidSchema<undefined>;
578
+ readonly _waitForSettledEngine: v.VoidSchema<undefined>;
579
+ readonly _waitForChangeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
580
+ readonly status: v.LiteralSchema<"pending", undefined>;
581
+ }, undefined>, v.ObjectSchema<{
582
+ readonly status: v.LiteralSchema<"ready", undefined>;
583
+ }, undefined>, v.ObjectSchema<{
584
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
585
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
586
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
587
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
588
+ }, undefined>, undefined>;
589
+ }, undefined>, v.ObjectSchema<{
590
+ readonly status: v.LiteralSchema<"error", undefined>;
591
+ readonly error: v.ObjectSchema<{
592
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
593
+ }, undefined>;
594
+ }, undefined>], undefined>;
595
+ }, QueryFunctions<{
596
+ readonly status: v.UndefinedSchema<undefined>;
597
+ readonly changeDetectionReadiness: v.UndefinedSchema<undefined>;
598
+ readonly graphRevision: v.OptionalSchema<v.ObjectSchema<{
599
+ readonly storyFiles: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
600
+ }, undefined>, undefined>;
601
+ readonly graphChangedAt: v.UndefinedSchema<undefined>;
602
+ readonly fileActivityRevision: v.UndefinedSchema<undefined>;
603
+ readonly latestStoryChanges: v.UndefinedSchema<undefined>;
604
+ }, {
605
+ readonly status: v.VariantSchema<"value", [v.ObjectSchema<{
606
+ readonly value: v.LiteralSchema<"booting", undefined>;
607
+ }, undefined>, v.ObjectSchema<{
608
+ readonly value: v.LiteralSchema<"ready", undefined>;
609
+ }, undefined>, v.ObjectSchema<{
610
+ readonly value: v.LiteralSchema<"error", undefined>;
611
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
612
+ }, undefined>, v.ObjectSchema<{
613
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
614
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
615
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
616
+ }, undefined>], undefined>;
617
+ readonly changeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
618
+ readonly status: v.LiteralSchema<"pending", undefined>;
619
+ }, undefined>, v.ObjectSchema<{
620
+ readonly status: v.LiteralSchema<"ready", undefined>;
621
+ }, undefined>, v.ObjectSchema<{
622
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
623
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
624
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
625
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
626
+ }, undefined>, undefined>;
627
+ }, undefined>, v.ObjectSchema<{
628
+ readonly status: v.LiteralSchema<"error", undefined>;
629
+ readonly error: v.ObjectSchema<{
630
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
631
+ }, undefined>;
632
+ }, undefined>], undefined>;
633
+ readonly graphRevision: v.NumberSchema<undefined>;
634
+ readonly graphChangedAt: v.NumberSchema<undefined>;
635
+ readonly fileActivityRevision: v.NumberSchema<undefined>;
636
+ readonly latestStoryChanges: v.ObjectSchema<{
637
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
638
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
639
+ }, undefined>;
640
+ }>> & ({
641
+ __internal_naming_error: "Operation \"status\" has internal: true but must be prefixed with \"_\"";
642
+ } | {
643
+ internal?: false;
644
+ });
645
+ readonly changeDetectionReadiness: QueryDefinition<ModuleGraphServiceState, v.UndefinedSchema<undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
646
+ readonly status: v.LiteralSchema<"pending", undefined>;
647
+ }, undefined>, v.ObjectSchema<{
648
+ readonly status: v.LiteralSchema<"ready", undefined>;
649
+ }, undefined>, v.ObjectSchema<{
650
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
651
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
652
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
653
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
654
+ }, undefined>, undefined>;
655
+ }, undefined>, v.ObjectSchema<{
656
+ readonly status: v.LiteralSchema<"error", undefined>;
657
+ readonly error: v.ObjectSchema<{
658
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
659
+ }, undefined>;
660
+ }, undefined>], undefined>, {
661
+ readonly _applyGraphSnapshot: v.ObjectSchema<{
662
+ readonly storiesByFile: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, v.DescriptionAction<{
663
+ [x: string]: {
664
+ [x: string]: number;
665
+ };
666
+ }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
667
+ }, undefined>;
668
+ readonly _applyGraphUpdate: v.ObjectSchema<{
669
+ readonly bumpedStoryFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
670
+ readonly changedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "When (unix ms) the change was made. Defaults to now when unknown.">]>, undefined>;
671
+ }, undefined>;
672
+ readonly _setStatus: v.VariantSchema<"value", [v.ObjectSchema<{
673
+ readonly value: v.LiteralSchema<"booting", undefined>;
674
+ }, undefined>, v.ObjectSchema<{
675
+ readonly value: v.LiteralSchema<"ready", undefined>;
676
+ }, undefined>, v.ObjectSchema<{
677
+ readonly value: v.LiteralSchema<"error", undefined>;
678
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
679
+ }, undefined>, v.ObjectSchema<{
680
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
681
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
682
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
683
+ }, undefined>], undefined>;
684
+ readonly _waitForSettledEngine: v.UndefinedSchema<undefined>;
685
+ readonly _waitForChangeDetectionReadiness: v.UndefinedSchema<undefined>;
686
+ }, {
687
+ readonly _applyGraphSnapshot: v.VoidSchema<undefined>;
688
+ readonly _applyGraphUpdate: v.VoidSchema<undefined>;
689
+ readonly _setStatus: v.VoidSchema<undefined>;
690
+ readonly _waitForSettledEngine: v.VoidSchema<undefined>;
691
+ readonly _waitForChangeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
692
+ readonly status: v.LiteralSchema<"pending", undefined>;
693
+ }, undefined>, v.ObjectSchema<{
694
+ readonly status: v.LiteralSchema<"ready", undefined>;
695
+ }, undefined>, v.ObjectSchema<{
696
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
697
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
698
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
699
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
700
+ }, undefined>, undefined>;
701
+ }, undefined>, v.ObjectSchema<{
702
+ readonly status: v.LiteralSchema<"error", undefined>;
703
+ readonly error: v.ObjectSchema<{
704
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
705
+ }, undefined>;
706
+ }, undefined>], undefined>;
707
+ }, QueryFunctions<{
708
+ readonly status: v.UndefinedSchema<undefined>;
709
+ readonly changeDetectionReadiness: v.UndefinedSchema<undefined>;
710
+ readonly graphRevision: v.OptionalSchema<v.ObjectSchema<{
711
+ readonly storyFiles: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
712
+ }, undefined>, undefined>;
713
+ readonly graphChangedAt: v.UndefinedSchema<undefined>;
714
+ readonly fileActivityRevision: v.UndefinedSchema<undefined>;
715
+ readonly latestStoryChanges: v.UndefinedSchema<undefined>;
716
+ }, {
717
+ readonly status: v.VariantSchema<"value", [v.ObjectSchema<{
718
+ readonly value: v.LiteralSchema<"booting", undefined>;
719
+ }, undefined>, v.ObjectSchema<{
720
+ readonly value: v.LiteralSchema<"ready", undefined>;
721
+ }, undefined>, v.ObjectSchema<{
722
+ readonly value: v.LiteralSchema<"error", undefined>;
723
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
724
+ }, undefined>, v.ObjectSchema<{
725
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
726
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
727
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
728
+ }, undefined>], undefined>;
729
+ readonly changeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
730
+ readonly status: v.LiteralSchema<"pending", undefined>;
731
+ }, undefined>, v.ObjectSchema<{
732
+ readonly status: v.LiteralSchema<"ready", undefined>;
733
+ }, undefined>, v.ObjectSchema<{
734
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
735
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
736
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
737
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
738
+ }, undefined>, undefined>;
739
+ }, undefined>, v.ObjectSchema<{
740
+ readonly status: v.LiteralSchema<"error", undefined>;
741
+ readonly error: v.ObjectSchema<{
742
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
743
+ }, undefined>;
744
+ }, undefined>], undefined>;
745
+ readonly graphRevision: v.NumberSchema<undefined>;
746
+ readonly graphChangedAt: v.NumberSchema<undefined>;
747
+ readonly fileActivityRevision: v.NumberSchema<undefined>;
748
+ readonly latestStoryChanges: v.ObjectSchema<{
749
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
750
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
751
+ }, undefined>;
752
+ }>> & ({
753
+ __internal_naming_error: "Operation \"changeDetectionReadiness\" has internal: true but must be prefixed with \"_\"";
754
+ } | {
755
+ internal?: false;
756
+ });
757
+ readonly graphRevision: QueryDefinition<ModuleGraphServiceState, v.OptionalSchema<v.ObjectSchema<{
758
+ readonly storyFiles: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
759
+ }, undefined>, undefined>, v.NumberSchema<undefined>, {
760
+ readonly _applyGraphSnapshot: v.ObjectSchema<{
761
+ readonly storiesByFile: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, v.DescriptionAction<{
762
+ [x: string]: {
763
+ [x: string]: number;
764
+ };
765
+ }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
766
+ }, undefined>;
767
+ readonly _applyGraphUpdate: v.ObjectSchema<{
768
+ readonly bumpedStoryFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
769
+ readonly changedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "When (unix ms) the change was made. Defaults to now when unknown.">]>, undefined>;
770
+ }, undefined>;
771
+ readonly _setStatus: v.VariantSchema<"value", [v.ObjectSchema<{
772
+ readonly value: v.LiteralSchema<"booting", undefined>;
773
+ }, undefined>, v.ObjectSchema<{
774
+ readonly value: v.LiteralSchema<"ready", undefined>;
775
+ }, undefined>, v.ObjectSchema<{
776
+ readonly value: v.LiteralSchema<"error", undefined>;
777
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
778
+ }, undefined>, v.ObjectSchema<{
779
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
780
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
781
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
782
+ }, undefined>], undefined>;
783
+ readonly _waitForSettledEngine: v.UndefinedSchema<undefined>;
784
+ readonly _waitForChangeDetectionReadiness: v.UndefinedSchema<undefined>;
785
+ }, {
786
+ readonly _applyGraphSnapshot: v.VoidSchema<undefined>;
787
+ readonly _applyGraphUpdate: v.VoidSchema<undefined>;
788
+ readonly _setStatus: v.VoidSchema<undefined>;
789
+ readonly _waitForSettledEngine: v.VoidSchema<undefined>;
790
+ readonly _waitForChangeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
791
+ readonly status: v.LiteralSchema<"pending", undefined>;
792
+ }, undefined>, v.ObjectSchema<{
793
+ readonly status: v.LiteralSchema<"ready", undefined>;
794
+ }, undefined>, v.ObjectSchema<{
795
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
796
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
797
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
798
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
799
+ }, undefined>, undefined>;
800
+ }, undefined>, v.ObjectSchema<{
801
+ readonly status: v.LiteralSchema<"error", undefined>;
802
+ readonly error: v.ObjectSchema<{
803
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
804
+ }, undefined>;
805
+ }, undefined>], undefined>;
806
+ }, QueryFunctions<{
807
+ readonly status: v.UndefinedSchema<undefined>;
808
+ readonly changeDetectionReadiness: v.UndefinedSchema<undefined>;
809
+ readonly graphRevision: v.OptionalSchema<v.ObjectSchema<{
810
+ readonly storyFiles: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
811
+ }, undefined>, undefined>;
812
+ readonly graphChangedAt: v.UndefinedSchema<undefined>;
813
+ readonly fileActivityRevision: v.UndefinedSchema<undefined>;
814
+ readonly latestStoryChanges: v.UndefinedSchema<undefined>;
815
+ }, {
816
+ readonly status: v.VariantSchema<"value", [v.ObjectSchema<{
817
+ readonly value: v.LiteralSchema<"booting", undefined>;
818
+ }, undefined>, v.ObjectSchema<{
819
+ readonly value: v.LiteralSchema<"ready", undefined>;
820
+ }, undefined>, v.ObjectSchema<{
821
+ readonly value: v.LiteralSchema<"error", undefined>;
822
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
823
+ }, undefined>, v.ObjectSchema<{
824
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
825
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
826
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
827
+ }, undefined>], undefined>;
828
+ readonly changeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
829
+ readonly status: v.LiteralSchema<"pending", undefined>;
830
+ }, undefined>, v.ObjectSchema<{
831
+ readonly status: v.LiteralSchema<"ready", undefined>;
832
+ }, undefined>, v.ObjectSchema<{
833
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
834
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
835
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
836
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
837
+ }, undefined>, undefined>;
838
+ }, undefined>, v.ObjectSchema<{
839
+ readonly status: v.LiteralSchema<"error", undefined>;
840
+ readonly error: v.ObjectSchema<{
841
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
842
+ }, undefined>;
843
+ }, undefined>], undefined>;
844
+ readonly graphRevision: v.NumberSchema<undefined>;
845
+ readonly graphChangedAt: v.NumberSchema<undefined>;
846
+ readonly fileActivityRevision: v.NumberSchema<undefined>;
847
+ readonly latestStoryChanges: v.ObjectSchema<{
848
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
849
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
850
+ }, undefined>;
851
+ }>> & ({
852
+ __internal_naming_error: "Operation \"graphRevision\" has internal: true but must be prefixed with \"_\"";
853
+ } | {
854
+ internal?: false;
855
+ });
856
+ readonly graphChangedAt: QueryDefinition<ModuleGraphServiceState, v.UndefinedSchema<undefined>, v.NumberSchema<undefined>, {
857
+ readonly _applyGraphSnapshot: v.ObjectSchema<{
858
+ readonly storiesByFile: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, v.DescriptionAction<{
859
+ [x: string]: {
860
+ [x: string]: number;
861
+ };
862
+ }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
863
+ }, undefined>;
864
+ readonly _applyGraphUpdate: v.ObjectSchema<{
865
+ readonly bumpedStoryFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
866
+ readonly changedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "When (unix ms) the change was made. Defaults to now when unknown.">]>, undefined>;
867
+ }, undefined>;
868
+ readonly _setStatus: v.VariantSchema<"value", [v.ObjectSchema<{
869
+ readonly value: v.LiteralSchema<"booting", undefined>;
870
+ }, undefined>, v.ObjectSchema<{
871
+ readonly value: v.LiteralSchema<"ready", undefined>;
872
+ }, undefined>, v.ObjectSchema<{
873
+ readonly value: v.LiteralSchema<"error", undefined>;
874
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
875
+ }, undefined>, v.ObjectSchema<{
876
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
877
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
878
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
879
+ }, undefined>], undefined>;
880
+ readonly _waitForSettledEngine: v.UndefinedSchema<undefined>;
881
+ readonly _waitForChangeDetectionReadiness: v.UndefinedSchema<undefined>;
882
+ }, {
883
+ readonly _applyGraphSnapshot: v.VoidSchema<undefined>;
884
+ readonly _applyGraphUpdate: v.VoidSchema<undefined>;
885
+ readonly _setStatus: v.VoidSchema<undefined>;
886
+ readonly _waitForSettledEngine: v.VoidSchema<undefined>;
887
+ readonly _waitForChangeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
888
+ readonly status: v.LiteralSchema<"pending", undefined>;
889
+ }, undefined>, v.ObjectSchema<{
890
+ readonly status: v.LiteralSchema<"ready", undefined>;
891
+ }, undefined>, v.ObjectSchema<{
892
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
893
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
894
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
895
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
896
+ }, undefined>, undefined>;
897
+ }, undefined>, v.ObjectSchema<{
898
+ readonly status: v.LiteralSchema<"error", undefined>;
899
+ readonly error: v.ObjectSchema<{
900
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
901
+ }, undefined>;
902
+ }, undefined>], undefined>;
903
+ }, QueryFunctions<{
904
+ readonly status: v.UndefinedSchema<undefined>;
905
+ readonly changeDetectionReadiness: v.UndefinedSchema<undefined>;
906
+ readonly graphRevision: v.OptionalSchema<v.ObjectSchema<{
907
+ readonly storyFiles: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
908
+ }, undefined>, undefined>;
909
+ readonly graphChangedAt: v.UndefinedSchema<undefined>;
910
+ readonly fileActivityRevision: v.UndefinedSchema<undefined>;
911
+ readonly latestStoryChanges: v.UndefinedSchema<undefined>;
912
+ }, {
913
+ readonly status: v.VariantSchema<"value", [v.ObjectSchema<{
914
+ readonly value: v.LiteralSchema<"booting", undefined>;
915
+ }, undefined>, v.ObjectSchema<{
916
+ readonly value: v.LiteralSchema<"ready", undefined>;
917
+ }, undefined>, v.ObjectSchema<{
918
+ readonly value: v.LiteralSchema<"error", undefined>;
919
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
920
+ }, undefined>, v.ObjectSchema<{
921
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
922
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
923
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
924
+ }, undefined>], undefined>;
925
+ readonly changeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
926
+ readonly status: v.LiteralSchema<"pending", undefined>;
927
+ }, undefined>, v.ObjectSchema<{
928
+ readonly status: v.LiteralSchema<"ready", undefined>;
929
+ }, undefined>, v.ObjectSchema<{
930
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
931
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
932
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
933
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
934
+ }, undefined>, undefined>;
935
+ }, undefined>, v.ObjectSchema<{
936
+ readonly status: v.LiteralSchema<"error", undefined>;
937
+ readonly error: v.ObjectSchema<{
938
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
939
+ }, undefined>;
940
+ }, undefined>], undefined>;
941
+ readonly graphRevision: v.NumberSchema<undefined>;
942
+ readonly graphChangedAt: v.NumberSchema<undefined>;
943
+ readonly fileActivityRevision: v.NumberSchema<undefined>;
944
+ readonly latestStoryChanges: v.ObjectSchema<{
945
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
946
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
947
+ }, undefined>;
948
+ }>> & ({
949
+ __internal_naming_error: "Operation \"graphChangedAt\" has internal: true but must be prefixed with \"_\"";
950
+ } | {
951
+ internal?: false;
952
+ });
953
+ readonly fileActivityRevision: QueryDefinition<ModuleGraphServiceState, v.UndefinedSchema<undefined>, v.NumberSchema<undefined>, {
954
+ readonly _applyGraphSnapshot: v.ObjectSchema<{
955
+ readonly storiesByFile: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, v.DescriptionAction<{
956
+ [x: string]: {
957
+ [x: string]: number;
958
+ };
959
+ }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
960
+ }, undefined>;
961
+ readonly _applyGraphUpdate: v.ObjectSchema<{
962
+ readonly bumpedStoryFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
963
+ readonly changedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "When (unix ms) the change was made. Defaults to now when unknown.">]>, undefined>;
964
+ }, undefined>;
965
+ readonly _setStatus: v.VariantSchema<"value", [v.ObjectSchema<{
966
+ readonly value: v.LiteralSchema<"booting", undefined>;
967
+ }, undefined>, v.ObjectSchema<{
968
+ readonly value: v.LiteralSchema<"ready", undefined>;
969
+ }, undefined>, v.ObjectSchema<{
970
+ readonly value: v.LiteralSchema<"error", undefined>;
971
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
972
+ }, undefined>, v.ObjectSchema<{
973
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
974
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
975
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
976
+ }, undefined>], undefined>;
977
+ readonly _waitForSettledEngine: v.UndefinedSchema<undefined>;
978
+ readonly _waitForChangeDetectionReadiness: v.UndefinedSchema<undefined>;
979
+ }, {
980
+ readonly _applyGraphSnapshot: v.VoidSchema<undefined>;
981
+ readonly _applyGraphUpdate: v.VoidSchema<undefined>;
982
+ readonly _setStatus: v.VoidSchema<undefined>;
983
+ readonly _waitForSettledEngine: v.VoidSchema<undefined>;
984
+ readonly _waitForChangeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
985
+ readonly status: v.LiteralSchema<"pending", undefined>;
986
+ }, undefined>, v.ObjectSchema<{
987
+ readonly status: v.LiteralSchema<"ready", undefined>;
988
+ }, undefined>, v.ObjectSchema<{
989
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
990
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
991
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
992
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
993
+ }, undefined>, undefined>;
994
+ }, undefined>, v.ObjectSchema<{
995
+ readonly status: v.LiteralSchema<"error", undefined>;
996
+ readonly error: v.ObjectSchema<{
997
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
998
+ }, undefined>;
999
+ }, undefined>], undefined>;
1000
+ }, QueryFunctions<{
1001
+ readonly status: v.UndefinedSchema<undefined>;
1002
+ readonly changeDetectionReadiness: v.UndefinedSchema<undefined>;
1003
+ readonly graphRevision: v.OptionalSchema<v.ObjectSchema<{
1004
+ readonly storyFiles: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
1005
+ }, undefined>, undefined>;
1006
+ readonly graphChangedAt: v.UndefinedSchema<undefined>;
1007
+ readonly fileActivityRevision: v.UndefinedSchema<undefined>;
1008
+ readonly latestStoryChanges: v.UndefinedSchema<undefined>;
1009
+ }, {
1010
+ readonly status: v.VariantSchema<"value", [v.ObjectSchema<{
1011
+ readonly value: v.LiteralSchema<"booting", undefined>;
1012
+ }, undefined>, v.ObjectSchema<{
1013
+ readonly value: v.LiteralSchema<"ready", undefined>;
1014
+ }, undefined>, v.ObjectSchema<{
1015
+ readonly value: v.LiteralSchema<"error", undefined>;
1016
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1017
+ }, undefined>, v.ObjectSchema<{
1018
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1019
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1020
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1021
+ }, undefined>], undefined>;
1022
+ readonly changeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1023
+ readonly status: v.LiteralSchema<"pending", undefined>;
1024
+ }, undefined>, v.ObjectSchema<{
1025
+ readonly status: v.LiteralSchema<"ready", undefined>;
1026
+ }, undefined>, v.ObjectSchema<{
1027
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1028
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1029
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1030
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1031
+ }, undefined>, undefined>;
1032
+ }, undefined>, v.ObjectSchema<{
1033
+ readonly status: v.LiteralSchema<"error", undefined>;
1034
+ readonly error: v.ObjectSchema<{
1035
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1036
+ }, undefined>;
1037
+ }, undefined>], undefined>;
1038
+ readonly graphRevision: v.NumberSchema<undefined>;
1039
+ readonly graphChangedAt: v.NumberSchema<undefined>;
1040
+ readonly fileActivityRevision: v.NumberSchema<undefined>;
1041
+ readonly latestStoryChanges: v.ObjectSchema<{
1042
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
1043
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
1044
+ }, undefined>;
1045
+ }>> & ({
1046
+ __internal_naming_error: "Operation \"fileActivityRevision\" has internal: true but must be prefixed with \"_\"";
1047
+ } | {
1048
+ internal?: false;
1049
+ });
1050
+ readonly latestStoryChanges: QueryDefinition<ModuleGraphServiceState, v.UndefinedSchema<undefined>, v.ObjectSchema<{
1051
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
1052
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
1053
+ }, undefined>, {
1054
+ readonly _applyGraphSnapshot: v.ObjectSchema<{
1055
+ readonly storiesByFile: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, v.DescriptionAction<{
1056
+ [x: string]: {
1057
+ [x: string]: number;
1058
+ };
1059
+ }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
1060
+ }, undefined>;
1061
+ readonly _applyGraphUpdate: v.ObjectSchema<{
1062
+ readonly bumpedStoryFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
1063
+ readonly changedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "When (unix ms) the change was made. Defaults to now when unknown.">]>, undefined>;
1064
+ }, undefined>;
1065
+ readonly _setStatus: v.VariantSchema<"value", [v.ObjectSchema<{
1066
+ readonly value: v.LiteralSchema<"booting", undefined>;
1067
+ }, undefined>, v.ObjectSchema<{
1068
+ readonly value: v.LiteralSchema<"ready", undefined>;
1069
+ }, undefined>, v.ObjectSchema<{
1070
+ readonly value: v.LiteralSchema<"error", undefined>;
1071
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1072
+ }, undefined>, v.ObjectSchema<{
1073
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1074
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1075
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1076
+ }, undefined>], undefined>;
1077
+ readonly _waitForSettledEngine: v.UndefinedSchema<undefined>;
1078
+ readonly _waitForChangeDetectionReadiness: v.UndefinedSchema<undefined>;
1079
+ }, {
1080
+ readonly _applyGraphSnapshot: v.VoidSchema<undefined>;
1081
+ readonly _applyGraphUpdate: v.VoidSchema<undefined>;
1082
+ readonly _setStatus: v.VoidSchema<undefined>;
1083
+ readonly _waitForSettledEngine: v.VoidSchema<undefined>;
1084
+ readonly _waitForChangeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1085
+ readonly status: v.LiteralSchema<"pending", undefined>;
1086
+ }, undefined>, v.ObjectSchema<{
1087
+ readonly status: v.LiteralSchema<"ready", undefined>;
1088
+ }, undefined>, v.ObjectSchema<{
1089
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1090
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1091
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1092
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1093
+ }, undefined>, undefined>;
1094
+ }, undefined>, v.ObjectSchema<{
1095
+ readonly status: v.LiteralSchema<"error", undefined>;
1096
+ readonly error: v.ObjectSchema<{
1097
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1098
+ }, undefined>;
1099
+ }, undefined>], undefined>;
1100
+ }, QueryFunctions<{
1101
+ readonly status: v.UndefinedSchema<undefined>;
1102
+ readonly changeDetectionReadiness: v.UndefinedSchema<undefined>;
1103
+ readonly graphRevision: v.OptionalSchema<v.ObjectSchema<{
1104
+ readonly storyFiles: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
1105
+ }, undefined>, undefined>;
1106
+ readonly graphChangedAt: v.UndefinedSchema<undefined>;
1107
+ readonly fileActivityRevision: v.UndefinedSchema<undefined>;
1108
+ readonly latestStoryChanges: v.UndefinedSchema<undefined>;
1109
+ }, {
1110
+ readonly status: v.VariantSchema<"value", [v.ObjectSchema<{
1111
+ readonly value: v.LiteralSchema<"booting", undefined>;
1112
+ }, undefined>, v.ObjectSchema<{
1113
+ readonly value: v.LiteralSchema<"ready", undefined>;
1114
+ }, undefined>, v.ObjectSchema<{
1115
+ readonly value: v.LiteralSchema<"error", undefined>;
1116
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1117
+ }, undefined>, v.ObjectSchema<{
1118
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1119
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1120
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1121
+ }, undefined>], undefined>;
1122
+ readonly changeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1123
+ readonly status: v.LiteralSchema<"pending", undefined>;
1124
+ }, undefined>, v.ObjectSchema<{
1125
+ readonly status: v.LiteralSchema<"ready", undefined>;
1126
+ }, undefined>, v.ObjectSchema<{
1127
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1128
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1129
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1130
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1131
+ }, undefined>, undefined>;
1132
+ }, undefined>, v.ObjectSchema<{
1133
+ readonly status: v.LiteralSchema<"error", undefined>;
1134
+ readonly error: v.ObjectSchema<{
1135
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1136
+ }, undefined>;
1137
+ }, undefined>], undefined>;
1138
+ readonly graphRevision: v.NumberSchema<undefined>;
1139
+ readonly graphChangedAt: v.NumberSchema<undefined>;
1140
+ readonly fileActivityRevision: v.NumberSchema<undefined>;
1141
+ readonly latestStoryChanges: v.ObjectSchema<{
1142
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
1143
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
1144
+ }, undefined>;
1145
+ }>> & ({
1146
+ __internal_naming_error: "Operation \"latestStoryChanges\" has internal: true but must be prefixed with \"_\"";
1147
+ } | {
1148
+ internal?: false;
1149
+ });
1150
+ } & {
1151
+ readonly status: {
1152
+ output: v.VariantSchema<"value", [v.ObjectSchema<{
1153
+ readonly value: v.LiteralSchema<"booting", undefined>;
1154
+ }, undefined>, v.ObjectSchema<{
1155
+ readonly value: v.LiteralSchema<"ready", undefined>;
1156
+ }, undefined>, v.ObjectSchema<{
1157
+ readonly value: v.LiteralSchema<"error", undefined>;
1158
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1159
+ }, undefined>, v.ObjectSchema<{
1160
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1161
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1162
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1163
+ }, undefined>], undefined>;
1164
+ };
1165
+ readonly changeDetectionReadiness: {
1166
+ output: v.VariantSchema<"status", [v.ObjectSchema<{
1167
+ readonly status: v.LiteralSchema<"pending", undefined>;
1168
+ }, undefined>, v.ObjectSchema<{
1169
+ readonly status: v.LiteralSchema<"ready", undefined>;
1170
+ }, undefined>, v.ObjectSchema<{
1171
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1172
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1173
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1174
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1175
+ }, undefined>, undefined>;
1176
+ }, undefined>, v.ObjectSchema<{
1177
+ readonly status: v.LiteralSchema<"error", undefined>;
1178
+ readonly error: v.ObjectSchema<{
1179
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1180
+ }, undefined>;
1181
+ }, undefined>], undefined>;
1182
+ };
1183
+ readonly graphRevision: {
1184
+ output: v.NumberSchema<undefined>;
1185
+ };
1186
+ readonly graphChangedAt: {
1187
+ output: v.NumberSchema<undefined>;
1188
+ };
1189
+ readonly fileActivityRevision: {
1190
+ output: v.NumberSchema<undefined>;
1191
+ };
1192
+ readonly latestStoryChanges: {
1193
+ output: v.ObjectSchema<{
1194
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
1195
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
1196
+ }, undefined>;
1197
+ };
1198
+ }, {
1199
+ readonly _applyGraphSnapshot: CommandDefinition<ModuleGraphServiceState, v.ObjectSchema<{
1200
+ readonly storiesByFile: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, v.DescriptionAction<{
1201
+ [x: string]: {
1202
+ [x: string]: number;
1203
+ };
1204
+ }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
1205
+ }, undefined>, v.VoidSchema<undefined>, {
1206
+ readonly _applyGraphSnapshot: v.ObjectSchema<{
1207
+ readonly storiesByFile: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, v.DescriptionAction<{
1208
+ [x: string]: {
1209
+ [x: string]: number;
1210
+ };
1211
+ }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
1212
+ }, undefined>;
1213
+ readonly _applyGraphUpdate: v.ObjectSchema<{
1214
+ readonly bumpedStoryFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
1215
+ readonly changedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "When (unix ms) the change was made. Defaults to now when unknown.">]>, undefined>;
1216
+ }, undefined>;
1217
+ readonly _setStatus: v.VariantSchema<"value", [v.ObjectSchema<{
1218
+ readonly value: v.LiteralSchema<"booting", undefined>;
1219
+ }, undefined>, v.ObjectSchema<{
1220
+ readonly value: v.LiteralSchema<"ready", undefined>;
1221
+ }, undefined>, v.ObjectSchema<{
1222
+ readonly value: v.LiteralSchema<"error", undefined>;
1223
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1224
+ }, undefined>, v.ObjectSchema<{
1225
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1226
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1227
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1228
+ }, undefined>], undefined>;
1229
+ readonly _waitForSettledEngine: v.UndefinedSchema<undefined>;
1230
+ readonly _waitForChangeDetectionReadiness: v.UndefinedSchema<undefined>;
1231
+ }, {
1232
+ readonly _applyGraphSnapshot: v.VoidSchema<undefined>;
1233
+ readonly _applyGraphUpdate: v.VoidSchema<undefined>;
1234
+ readonly _setStatus: v.VoidSchema<undefined>;
1235
+ readonly _waitForSettledEngine: v.VoidSchema<undefined>;
1236
+ readonly _waitForChangeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1237
+ readonly status: v.LiteralSchema<"pending", undefined>;
1238
+ }, undefined>, v.ObjectSchema<{
1239
+ readonly status: v.LiteralSchema<"ready", undefined>;
1240
+ }, undefined>, v.ObjectSchema<{
1241
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1242
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1243
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1244
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1245
+ }, undefined>, undefined>;
1246
+ }, undefined>, v.ObjectSchema<{
1247
+ readonly status: v.LiteralSchema<"error", undefined>;
1248
+ readonly error: v.ObjectSchema<{
1249
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1250
+ }, undefined>;
1251
+ }, undefined>], undefined>;
1252
+ }, QueryFunctions<{
1253
+ readonly status: v.UndefinedSchema<undefined>;
1254
+ readonly changeDetectionReadiness: v.UndefinedSchema<undefined>;
1255
+ readonly graphRevision: v.OptionalSchema<v.ObjectSchema<{
1256
+ readonly storyFiles: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
1257
+ }, undefined>, undefined>;
1258
+ readonly graphChangedAt: v.UndefinedSchema<undefined>;
1259
+ readonly fileActivityRevision: v.UndefinedSchema<undefined>;
1260
+ readonly latestStoryChanges: v.UndefinedSchema<undefined>;
1261
+ }, {
1262
+ readonly status: v.VariantSchema<"value", [v.ObjectSchema<{
1263
+ readonly value: v.LiteralSchema<"booting", undefined>;
1264
+ }, undefined>, v.ObjectSchema<{
1265
+ readonly value: v.LiteralSchema<"ready", undefined>;
1266
+ }, undefined>, v.ObjectSchema<{
1267
+ readonly value: v.LiteralSchema<"error", undefined>;
1268
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1269
+ }, undefined>, v.ObjectSchema<{
1270
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1271
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1272
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1273
+ }, undefined>], undefined>;
1274
+ readonly changeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1275
+ readonly status: v.LiteralSchema<"pending", undefined>;
1276
+ }, undefined>, v.ObjectSchema<{
1277
+ readonly status: v.LiteralSchema<"ready", undefined>;
1278
+ }, undefined>, v.ObjectSchema<{
1279
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1280
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1281
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1282
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1283
+ }, undefined>, undefined>;
1284
+ }, undefined>, v.ObjectSchema<{
1285
+ readonly status: v.LiteralSchema<"error", undefined>;
1286
+ readonly error: v.ObjectSchema<{
1287
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1288
+ }, undefined>;
1289
+ }, undefined>], undefined>;
1290
+ readonly graphRevision: v.NumberSchema<undefined>;
1291
+ readonly graphChangedAt: v.NumberSchema<undefined>;
1292
+ readonly fileActivityRevision: v.NumberSchema<undefined>;
1293
+ readonly latestStoryChanges: v.ObjectSchema<{
1294
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
1295
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
1296
+ }, undefined>;
1297
+ }>> & ({
1298
+ __internal_naming_error: "Operation \"_applyGraphSnapshot\" is prefixed with \"_\" and must set internal: true";
1299
+ } | {
1300
+ internal: true;
1301
+ });
1302
+ readonly _applyGraphUpdate: CommandDefinition<ModuleGraphServiceState, v.ObjectSchema<{
1303
+ readonly bumpedStoryFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
1304
+ readonly changedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "When (unix ms) the change was made. Defaults to now when unknown.">]>, undefined>;
1305
+ }, undefined>, v.VoidSchema<undefined>, {
1306
+ readonly _applyGraphSnapshot: v.ObjectSchema<{
1307
+ readonly storiesByFile: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, v.DescriptionAction<{
1308
+ [x: string]: {
1309
+ [x: string]: number;
1310
+ };
1311
+ }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
1312
+ }, undefined>;
1313
+ readonly _applyGraphUpdate: v.ObjectSchema<{
1314
+ readonly bumpedStoryFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
1315
+ readonly changedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "When (unix ms) the change was made. Defaults to now when unknown.">]>, undefined>;
1316
+ }, undefined>;
1317
+ readonly _setStatus: v.VariantSchema<"value", [v.ObjectSchema<{
1318
+ readonly value: v.LiteralSchema<"booting", undefined>;
1319
+ }, undefined>, v.ObjectSchema<{
1320
+ readonly value: v.LiteralSchema<"ready", undefined>;
1321
+ }, undefined>, v.ObjectSchema<{
1322
+ readonly value: v.LiteralSchema<"error", undefined>;
1323
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1324
+ }, undefined>, v.ObjectSchema<{
1325
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1326
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1327
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1328
+ }, undefined>], undefined>;
1329
+ readonly _waitForSettledEngine: v.UndefinedSchema<undefined>;
1330
+ readonly _waitForChangeDetectionReadiness: v.UndefinedSchema<undefined>;
1331
+ }, {
1332
+ readonly _applyGraphSnapshot: v.VoidSchema<undefined>;
1333
+ readonly _applyGraphUpdate: v.VoidSchema<undefined>;
1334
+ readonly _setStatus: v.VoidSchema<undefined>;
1335
+ readonly _waitForSettledEngine: v.VoidSchema<undefined>;
1336
+ readonly _waitForChangeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1337
+ readonly status: v.LiteralSchema<"pending", undefined>;
1338
+ }, undefined>, v.ObjectSchema<{
1339
+ readonly status: v.LiteralSchema<"ready", undefined>;
1340
+ }, undefined>, v.ObjectSchema<{
1341
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1342
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1343
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1344
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1345
+ }, undefined>, undefined>;
1346
+ }, undefined>, v.ObjectSchema<{
1347
+ readonly status: v.LiteralSchema<"error", undefined>;
1348
+ readonly error: v.ObjectSchema<{
1349
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1350
+ }, undefined>;
1351
+ }, undefined>], undefined>;
1352
+ }, QueryFunctions<{
1353
+ readonly status: v.UndefinedSchema<undefined>;
1354
+ readonly changeDetectionReadiness: v.UndefinedSchema<undefined>;
1355
+ readonly graphRevision: v.OptionalSchema<v.ObjectSchema<{
1356
+ readonly storyFiles: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
1357
+ }, undefined>, undefined>;
1358
+ readonly graphChangedAt: v.UndefinedSchema<undefined>;
1359
+ readonly fileActivityRevision: v.UndefinedSchema<undefined>;
1360
+ readonly latestStoryChanges: v.UndefinedSchema<undefined>;
1361
+ }, {
1362
+ readonly status: v.VariantSchema<"value", [v.ObjectSchema<{
1363
+ readonly value: v.LiteralSchema<"booting", undefined>;
1364
+ }, undefined>, v.ObjectSchema<{
1365
+ readonly value: v.LiteralSchema<"ready", undefined>;
1366
+ }, undefined>, v.ObjectSchema<{
1367
+ readonly value: v.LiteralSchema<"error", undefined>;
1368
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1369
+ }, undefined>, v.ObjectSchema<{
1370
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1371
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1372
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1373
+ }, undefined>], undefined>;
1374
+ readonly changeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1375
+ readonly status: v.LiteralSchema<"pending", undefined>;
1376
+ }, undefined>, v.ObjectSchema<{
1377
+ readonly status: v.LiteralSchema<"ready", undefined>;
1378
+ }, undefined>, v.ObjectSchema<{
1379
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1380
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1381
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1382
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1383
+ }, undefined>, undefined>;
1384
+ }, undefined>, v.ObjectSchema<{
1385
+ readonly status: v.LiteralSchema<"error", undefined>;
1386
+ readonly error: v.ObjectSchema<{
1387
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1388
+ }, undefined>;
1389
+ }, undefined>], undefined>;
1390
+ readonly graphRevision: v.NumberSchema<undefined>;
1391
+ readonly graphChangedAt: v.NumberSchema<undefined>;
1392
+ readonly fileActivityRevision: v.NumberSchema<undefined>;
1393
+ readonly latestStoryChanges: v.ObjectSchema<{
1394
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
1395
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
1396
+ }, undefined>;
1397
+ }>> & ({
1398
+ __internal_naming_error: "Operation \"_applyGraphUpdate\" is prefixed with \"_\" and must set internal: true";
1399
+ } | {
1400
+ internal: true;
1401
+ });
1402
+ readonly _setStatus: CommandDefinition<ModuleGraphServiceState, v.VariantSchema<"value", [v.ObjectSchema<{
1403
+ readonly value: v.LiteralSchema<"booting", undefined>;
1404
+ }, undefined>, v.ObjectSchema<{
1405
+ readonly value: v.LiteralSchema<"ready", undefined>;
1406
+ }, undefined>, v.ObjectSchema<{
1407
+ readonly value: v.LiteralSchema<"error", undefined>;
1408
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1409
+ }, undefined>, v.ObjectSchema<{
1410
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1411
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1412
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1413
+ }, undefined>], undefined>, v.VoidSchema<undefined>, {
1414
+ readonly _applyGraphSnapshot: v.ObjectSchema<{
1415
+ readonly storiesByFile: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, v.DescriptionAction<{
1416
+ [x: string]: {
1417
+ [x: string]: number;
1418
+ };
1419
+ }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
1420
+ }, undefined>;
1421
+ readonly _applyGraphUpdate: v.ObjectSchema<{
1422
+ readonly bumpedStoryFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
1423
+ readonly changedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "When (unix ms) the change was made. Defaults to now when unknown.">]>, undefined>;
1424
+ }, undefined>;
1425
+ readonly _setStatus: v.VariantSchema<"value", [v.ObjectSchema<{
1426
+ readonly value: v.LiteralSchema<"booting", undefined>;
1427
+ }, undefined>, v.ObjectSchema<{
1428
+ readonly value: v.LiteralSchema<"ready", undefined>;
1429
+ }, undefined>, v.ObjectSchema<{
1430
+ readonly value: v.LiteralSchema<"error", undefined>;
1431
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1432
+ }, undefined>, v.ObjectSchema<{
1433
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1434
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1435
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1436
+ }, undefined>], undefined>;
1437
+ readonly _waitForSettledEngine: v.UndefinedSchema<undefined>;
1438
+ readonly _waitForChangeDetectionReadiness: v.UndefinedSchema<undefined>;
1439
+ }, {
1440
+ readonly _applyGraphSnapshot: v.VoidSchema<undefined>;
1441
+ readonly _applyGraphUpdate: v.VoidSchema<undefined>;
1442
+ readonly _setStatus: v.VoidSchema<undefined>;
1443
+ readonly _waitForSettledEngine: v.VoidSchema<undefined>;
1444
+ readonly _waitForChangeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1445
+ readonly status: v.LiteralSchema<"pending", undefined>;
1446
+ }, undefined>, v.ObjectSchema<{
1447
+ readonly status: v.LiteralSchema<"ready", undefined>;
1448
+ }, undefined>, v.ObjectSchema<{
1449
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1450
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1451
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1452
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1453
+ }, undefined>, undefined>;
1454
+ }, undefined>, v.ObjectSchema<{
1455
+ readonly status: v.LiteralSchema<"error", undefined>;
1456
+ readonly error: v.ObjectSchema<{
1457
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1458
+ }, undefined>;
1459
+ }, undefined>], undefined>;
1460
+ }, QueryFunctions<{
1461
+ readonly status: v.UndefinedSchema<undefined>;
1462
+ readonly changeDetectionReadiness: v.UndefinedSchema<undefined>;
1463
+ readonly graphRevision: v.OptionalSchema<v.ObjectSchema<{
1464
+ readonly storyFiles: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
1465
+ }, undefined>, undefined>;
1466
+ readonly graphChangedAt: v.UndefinedSchema<undefined>;
1467
+ readonly fileActivityRevision: v.UndefinedSchema<undefined>;
1468
+ readonly latestStoryChanges: v.UndefinedSchema<undefined>;
1469
+ }, {
1470
+ readonly status: v.VariantSchema<"value", [v.ObjectSchema<{
1471
+ readonly value: v.LiteralSchema<"booting", undefined>;
1472
+ }, undefined>, v.ObjectSchema<{
1473
+ readonly value: v.LiteralSchema<"ready", undefined>;
1474
+ }, undefined>, v.ObjectSchema<{
1475
+ readonly value: v.LiteralSchema<"error", undefined>;
1476
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1477
+ }, undefined>, v.ObjectSchema<{
1478
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1479
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1480
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1481
+ }, undefined>], undefined>;
1482
+ readonly changeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1483
+ readonly status: v.LiteralSchema<"pending", undefined>;
1484
+ }, undefined>, v.ObjectSchema<{
1485
+ readonly status: v.LiteralSchema<"ready", undefined>;
1486
+ }, undefined>, v.ObjectSchema<{
1487
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1488
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1489
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1490
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1491
+ }, undefined>, undefined>;
1492
+ }, undefined>, v.ObjectSchema<{
1493
+ readonly status: v.LiteralSchema<"error", undefined>;
1494
+ readonly error: v.ObjectSchema<{
1495
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1496
+ }, undefined>;
1497
+ }, undefined>], undefined>;
1498
+ readonly graphRevision: v.NumberSchema<undefined>;
1499
+ readonly graphChangedAt: v.NumberSchema<undefined>;
1500
+ readonly fileActivityRevision: v.NumberSchema<undefined>;
1501
+ readonly latestStoryChanges: v.ObjectSchema<{
1502
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
1503
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
1504
+ }, undefined>;
1505
+ }>> & ({
1506
+ __internal_naming_error: "Operation \"_setStatus\" is prefixed with \"_\" and must set internal: true";
1507
+ } | {
1508
+ internal: true;
1509
+ });
1510
+ readonly _waitForSettledEngine: CommandDefinition<ModuleGraphServiceState, v.UndefinedSchema<undefined>, v.VoidSchema<undefined>, {
1511
+ readonly _applyGraphSnapshot: v.ObjectSchema<{
1512
+ readonly storiesByFile: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, v.DescriptionAction<{
1513
+ [x: string]: {
1514
+ [x: string]: number;
1515
+ };
1516
+ }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
1517
+ }, undefined>;
1518
+ readonly _applyGraphUpdate: v.ObjectSchema<{
1519
+ readonly bumpedStoryFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
1520
+ readonly changedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "When (unix ms) the change was made. Defaults to now when unknown.">]>, undefined>;
1521
+ }, undefined>;
1522
+ readonly _setStatus: v.VariantSchema<"value", [v.ObjectSchema<{
1523
+ readonly value: v.LiteralSchema<"booting", undefined>;
1524
+ }, undefined>, v.ObjectSchema<{
1525
+ readonly value: v.LiteralSchema<"ready", undefined>;
1526
+ }, undefined>, v.ObjectSchema<{
1527
+ readonly value: v.LiteralSchema<"error", undefined>;
1528
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1529
+ }, undefined>, v.ObjectSchema<{
1530
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1531
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1532
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1533
+ }, undefined>], undefined>;
1534
+ readonly _waitForSettledEngine: v.UndefinedSchema<undefined>;
1535
+ readonly _waitForChangeDetectionReadiness: v.UndefinedSchema<undefined>;
1536
+ }, {
1537
+ readonly _applyGraphSnapshot: v.VoidSchema<undefined>;
1538
+ readonly _applyGraphUpdate: v.VoidSchema<undefined>;
1539
+ readonly _setStatus: v.VoidSchema<undefined>;
1540
+ readonly _waitForSettledEngine: v.VoidSchema<undefined>;
1541
+ readonly _waitForChangeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1542
+ readonly status: v.LiteralSchema<"pending", undefined>;
1543
+ }, undefined>, v.ObjectSchema<{
1544
+ readonly status: v.LiteralSchema<"ready", undefined>;
1545
+ }, undefined>, v.ObjectSchema<{
1546
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1547
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1548
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1549
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1550
+ }, undefined>, undefined>;
1551
+ }, undefined>, v.ObjectSchema<{
1552
+ readonly status: v.LiteralSchema<"error", undefined>;
1553
+ readonly error: v.ObjectSchema<{
1554
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1555
+ }, undefined>;
1556
+ }, undefined>], undefined>;
1557
+ }, QueryFunctions<{
1558
+ readonly status: v.UndefinedSchema<undefined>;
1559
+ readonly changeDetectionReadiness: v.UndefinedSchema<undefined>;
1560
+ readonly graphRevision: v.OptionalSchema<v.ObjectSchema<{
1561
+ readonly storyFiles: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
1562
+ }, undefined>, undefined>;
1563
+ readonly graphChangedAt: v.UndefinedSchema<undefined>;
1564
+ readonly fileActivityRevision: v.UndefinedSchema<undefined>;
1565
+ readonly latestStoryChanges: v.UndefinedSchema<undefined>;
1566
+ }, {
1567
+ readonly status: v.VariantSchema<"value", [v.ObjectSchema<{
1568
+ readonly value: v.LiteralSchema<"booting", undefined>;
1569
+ }, undefined>, v.ObjectSchema<{
1570
+ readonly value: v.LiteralSchema<"ready", undefined>;
1571
+ }, undefined>, v.ObjectSchema<{
1572
+ readonly value: v.LiteralSchema<"error", undefined>;
1573
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1574
+ }, undefined>, v.ObjectSchema<{
1575
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1576
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1577
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1578
+ }, undefined>], undefined>;
1579
+ readonly changeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1580
+ readonly status: v.LiteralSchema<"pending", undefined>;
1581
+ }, undefined>, v.ObjectSchema<{
1582
+ readonly status: v.LiteralSchema<"ready", undefined>;
1583
+ }, undefined>, v.ObjectSchema<{
1584
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1585
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1586
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1587
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1588
+ }, undefined>, undefined>;
1589
+ }, undefined>, v.ObjectSchema<{
1590
+ readonly status: v.LiteralSchema<"error", undefined>;
1591
+ readonly error: v.ObjectSchema<{
1592
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1593
+ }, undefined>;
1594
+ }, undefined>], undefined>;
1595
+ readonly graphRevision: v.NumberSchema<undefined>;
1596
+ readonly graphChangedAt: v.NumberSchema<undefined>;
1597
+ readonly fileActivityRevision: v.NumberSchema<undefined>;
1598
+ readonly latestStoryChanges: v.ObjectSchema<{
1599
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
1600
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
1601
+ }, undefined>;
1602
+ }>> & ({
1603
+ __internal_naming_error: "Operation \"_waitForSettledEngine\" is prefixed with \"_\" and must set internal: true";
1604
+ } | {
1605
+ internal: true;
1606
+ });
1607
+ readonly _waitForChangeDetectionReadiness: CommandDefinition<ModuleGraphServiceState, v.UndefinedSchema<undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
1608
+ readonly status: v.LiteralSchema<"pending", undefined>;
1609
+ }, undefined>, v.ObjectSchema<{
1610
+ readonly status: v.LiteralSchema<"ready", undefined>;
1611
+ }, undefined>, v.ObjectSchema<{
1612
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1613
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1614
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1615
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1616
+ }, undefined>, undefined>;
1617
+ }, undefined>, v.ObjectSchema<{
1618
+ readonly status: v.LiteralSchema<"error", undefined>;
1619
+ readonly error: v.ObjectSchema<{
1620
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1621
+ }, undefined>;
1622
+ }, undefined>], undefined>, {
1623
+ readonly _applyGraphSnapshot: v.ObjectSchema<{
1624
+ readonly storiesByFile: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Breadth-first-search depth: the shortest number of import edges between the source file and this story file.">]>, undefined>, undefined>, v.DescriptionAction<{
1625
+ [x: string]: {
1626
+ [x: string]: number;
1627
+ };
1628
+ }, "Complete relative reverse index keyed by story-index-style source file paths. Values map affected story-index-style story file paths to breadth-first-search depths.">]>;
1629
+ }, undefined>;
1630
+ readonly _applyGraphUpdate: v.ObjectSchema<{
1631
+ readonly bumpedStoryFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story files whose graph changed, using story-index-style relative paths. Each listed file has its version incremented.">]>;
1632
+ readonly changedAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "When (unix ms) the change was made. Defaults to now when unknown.">]>, undefined>;
1633
+ }, undefined>;
1634
+ readonly _setStatus: v.VariantSchema<"value", [v.ObjectSchema<{
1635
+ readonly value: v.LiteralSchema<"booting", undefined>;
1636
+ }, undefined>, v.ObjectSchema<{
1637
+ readonly value: v.LiteralSchema<"ready", undefined>;
1638
+ }, undefined>, v.ObjectSchema<{
1639
+ readonly value: v.LiteralSchema<"error", undefined>;
1640
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1641
+ }, undefined>, v.ObjectSchema<{
1642
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1643
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1644
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1645
+ }, undefined>], undefined>;
1646
+ readonly _waitForSettledEngine: v.UndefinedSchema<undefined>;
1647
+ readonly _waitForChangeDetectionReadiness: v.UndefinedSchema<undefined>;
1648
+ }, {
1649
+ readonly _applyGraphSnapshot: v.VoidSchema<undefined>;
1650
+ readonly _applyGraphUpdate: v.VoidSchema<undefined>;
1651
+ readonly _setStatus: v.VoidSchema<undefined>;
1652
+ readonly _waitForSettledEngine: v.VoidSchema<undefined>;
1653
+ readonly _waitForChangeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1654
+ readonly status: v.LiteralSchema<"pending", undefined>;
1655
+ }, undefined>, v.ObjectSchema<{
1656
+ readonly status: v.LiteralSchema<"ready", undefined>;
1657
+ }, undefined>, v.ObjectSchema<{
1658
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1659
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1660
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1661
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1662
+ }, undefined>, undefined>;
1663
+ }, undefined>, v.ObjectSchema<{
1664
+ readonly status: v.LiteralSchema<"error", undefined>;
1665
+ readonly error: v.ObjectSchema<{
1666
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1667
+ }, undefined>;
1668
+ }, undefined>], undefined>;
1669
+ }, QueryFunctions<{
1670
+ readonly status: v.UndefinedSchema<undefined>;
1671
+ readonly changeDetectionReadiness: v.UndefinedSchema<undefined>;
1672
+ readonly graphRevision: v.OptionalSchema<v.ObjectSchema<{
1673
+ readonly storyFiles: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Story file to scope the watch to. Accepts absolute paths, story-index-style relative paths with `./`, or relative paths without `./`. Pass an empty array to watch nothing (returns 0).">]>, undefined>;
1674
+ }, undefined>, undefined>;
1675
+ readonly graphChangedAt: v.UndefinedSchema<undefined>;
1676
+ readonly fileActivityRevision: v.UndefinedSchema<undefined>;
1677
+ readonly latestStoryChanges: v.UndefinedSchema<undefined>;
1678
+ }, {
1679
+ readonly status: v.VariantSchema<"value", [v.ObjectSchema<{
1680
+ readonly value: v.LiteralSchema<"booting", undefined>;
1681
+ }, undefined>, v.ObjectSchema<{
1682
+ readonly value: v.LiteralSchema<"ready", undefined>;
1683
+ }, undefined>, v.ObjectSchema<{
1684
+ readonly value: v.LiteralSchema<"error", undefined>;
1685
+ readonly error: v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Serializable error describing why the module graph failed unexpectedly.">]>;
1686
+ }, undefined>, v.ObjectSchema<{
1687
+ readonly value: v.LiteralSchema<"unavailable", undefined>;
1688
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable reason why the current builder/runtime cannot provide module graph functionality.">]>;
1689
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.GenericSchema, v.DescriptionAction<unknown, "Optional serializable error reported by the builder adapter.">]>, undefined>;
1690
+ }, undefined>], undefined>;
1691
+ readonly changeDetectionReadiness: v.VariantSchema<"status", [v.ObjectSchema<{
1692
+ readonly status: v.LiteralSchema<"pending", undefined>;
1693
+ }, undefined>, v.ObjectSchema<{
1694
+ readonly status: v.LiteralSchema<"ready", undefined>;
1695
+ }, undefined>, v.ObjectSchema<{
1696
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1697
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1698
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1699
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1700
+ }, undefined>, undefined>;
1701
+ }, undefined>, v.ObjectSchema<{
1702
+ readonly status: v.LiteralSchema<"error", undefined>;
1703
+ readonly error: v.ObjectSchema<{
1704
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1705
+ }, undefined>;
1706
+ }, undefined>], undefined>;
1707
+ readonly graphRevision: v.NumberSchema<undefined>;
1708
+ readonly graphChangedAt: v.NumberSchema<undefined>;
1709
+ readonly fileActivityRevision: v.NumberSchema<undefined>;
1710
+ readonly latestStoryChanges: v.ObjectSchema<{
1711
+ readonly revision: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.DescriptionAction<number, "Graph revision number for this latest story change set.">]>;
1712
+ readonly storyFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "A story-index-style relative path such as `./src/Button.stories.tsx`.">]>, undefined>, v.DescriptionAction<string[], "Story-index-relative story files touched by the latest module graph change set.">]>;
1713
+ }, undefined>;
1714
+ }>> & ({
1715
+ __internal_naming_error: "Operation \"_waitForChangeDetectionReadiness\" is prefixed with \"_\" and must set internal: true";
1716
+ } | {
1717
+ internal: true;
1718
+ });
1719
+ } & {
1720
+ readonly _applyGraphSnapshot: {
1721
+ output: v.VoidSchema<undefined>;
1722
+ };
1723
+ readonly _applyGraphUpdate: {
1724
+ output: v.VoidSchema<undefined>;
1725
+ };
1726
+ readonly _setStatus: {
1727
+ output: v.VoidSchema<undefined>;
1728
+ };
1729
+ readonly _waitForSettledEngine: {
1730
+ output: v.VoidSchema<undefined>;
1731
+ };
1732
+ readonly _waitForChangeDetectionReadiness: {
1733
+ output: v.VariantSchema<"status", [v.ObjectSchema<{
1734
+ readonly status: v.LiteralSchema<"pending", undefined>;
1735
+ }, undefined>, v.ObjectSchema<{
1736
+ readonly status: v.LiteralSchema<"ready", undefined>;
1737
+ }, undefined>, v.ObjectSchema<{
1738
+ readonly status: v.LiteralSchema<"unavailable", undefined>;
1739
+ readonly reason: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Why change detection cannot publish statuses, such as no git.">]>;
1740
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
1741
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Optional diagnostic from the provider that marked scanning unavailable.">]>;
1742
+ }, undefined>, undefined>;
1743
+ }, undefined>, v.ObjectSchema<{
1744
+ readonly status: v.LiteralSchema<"error", undefined>;
1745
+ readonly error: v.ObjectSchema<{
1746
+ readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Human-readable scan failure message.">]>;
1747
+ }, undefined>;
1748
+ }, undefined>], undefined>;
1749
+ };
1750
+ }, "core/module-graph">;
1751
+ type ModuleGraphService = ServiceInstanceOf<typeof moduleGraphServiceDef>;
1752
+ //#endregion
1753
+ //#region .dts-emit/code/core/src/core-server/change-detection/GitDiffProvider.d.ts
1754
+ interface GitDiffResult {
1755
+ changed: Set<string>;
1756
+ new: Set<string>;
1757
+ }
1758
+ type GitStateChangeCallback = () => void;
1759
+ type GitFileSystem = {
1760
+ watch: typeof watch;
1761
+ readFile: typeof readFile;
1762
+ stat: typeof stat;
1763
+ };
1764
+ declare class GitDiffProvider {
1765
+ private readonly cwd;
1766
+ private readonly fileSystem;
1767
+ private repoRoot;
1768
+ private gitStateCallback;
1769
+ private branchWatcher;
1770
+ private headWatcher;
1771
+ private packedRefsWatcher;
1772
+ private watchingInitialized;
1773
+ private watchingStopped;
1774
+ constructor(cwd?: string, fileSystem?: GitFileSystem);
1775
+ getRepoRoot(): Promise<string>;
1776
+ getChangedFiles(): Promise<GitDiffResult>;
1777
+ getHeadCommit(): Promise<string>;
1778
+ isWorkingTreeClean(): Promise<boolean>;
1779
+ onGitStateChange(callback: GitStateChangeCallback): void;
1780
+ private initializeWatching;
1781
+ private attachWatcher;
1782
+ private configureBranchWatcher;
1783
+ private reconfigureBranchWatcher;
1784
+ dispose(): void;
1785
+ private stopWatching;
1786
+ private getGitDir;
1787
+ private readHeadRef;
1788
+ private runGitCommand;
1789
+ private isEnoentError;
1790
+ private toGitError;
1791
+ }
1792
+ //#endregion
1793
+ //#region .dts-emit/code/core/src/core-server/change-detection/IndexBaselineService.d.ts
1794
+ type BaselineCache = {
1795
+ get: <T = unknown>(key: string) => Promise<T | undefined>;
1796
+ set: <T = unknown>(key: string, value: T) => Promise<void>;
1797
+ };
1798
+ declare class IndexBaselineService {
1799
+ private readonly options;
1800
+ private baselineEntryIds;
1801
+ private initializePromise;
1802
+ private syncInFlight;
1803
+ private cache;
1804
+ constructor(options: {
1805
+ storyIndexGeneratorPromise: Promise<StoryIndexGenerator>;
1806
+ gitDiffProvider: GitDiffProvider;
1807
+ onBaselineUpdated: () => void;
1808
+ cache?: BaselineCache;
1809
+ });
1810
+ start(): Promise<void>;
1811
+ getBaselineEntryIds(): Promise<Set<string>>;
1812
+ handleGitStateChange(): Promise<void>;
1813
+ private initialize;
1814
+ private refreshBaseline;
1815
+ }
1816
+ //#endregion
1817
+ //#region .dts-emit/code/core/src/core-server/change-detection/change-detection-service.d.ts
1818
+ /**
1819
+ * Publishes change-detection story statuses to the status store. It resolves git-changed files,
1820
+ * maps them to affected stories through the `core/module-graph` open service, and emits
1821
+ * `modified`/`affected`/`new` statuses (plus index-baseline `new` entries).
1822
+ */
1823
+ declare class ChangeDetectionService {
1824
+ private readonly options;
1825
+ private disposed;
1826
+ private debounceTimer;
1827
+ private scanInFlight;
1828
+ private rerunAfterCurrentScan;
1829
+ private readinessResolved;
1830
+ private statusPipelineStarted;
1831
+ private previousStatuses;
1832
+ private gitDiffProvider;
1833
+ private indexBaselineService;
1834
+ private unsubscribeModuleGraphStatus;
1835
+ private unsubscribeFileActivity;
1836
+ private readonly workingDir;
1837
+ private readonly debounceMs;
1838
+ constructor(options: {
1839
+ storyIndexGeneratorPromise: Promise<StoryIndexGenerator>;
1840
+ statusStore: StatusStoreByTypeId;
1841
+ gitDiffProvider?: GitDiffProvider;
1842
+ indexBaselineService?: IndexBaselineService;
1843
+ workingDir?: string;
1844
+ debounceMs?: number;
1845
+ });
1846
+ private getModuleGraph;
1847
+ private getModuleGraphIndex;
1848
+ private onGraphReady;
1849
+ private onGraphChange;
1850
+ private onGraphError;
1851
+ private onGraphUnavailable;
1852
+ private onModuleGraphStatus;
1853
+ start(): void;
1854
+ /**
1855
+ * Wires the git-diff-driven status pipeline. Runs once the dependency graph is ready (so the
1856
+ * initial scan and every git-state-change scan read a populated reverse index).
1857
+ */
1858
+ private startStatusPipeline;
1859
+ dispose(): Promise<void>;
1860
+ private scheduleScan;
1861
+ private scan;
1862
+ private buildStatuses;
1863
+ private getGitDiffProvider;
1864
+ private getIndexBaselineService;
1865
+ private applyStatusStorePatch;
1866
+ private resolveReadiness;
1867
+ }
1868
+ //#endregion
1869
+ //#region .dts-emit/code/core/src/shared/open-service/services/module-graph/server.d.ts
1870
+ declare function resolveChangeDetectionAdapter(adapter: ChangeDetectionAdapter | null | undefined): void;
1871
+ //#endregion
1872
+ //#region .dts-emit/code/core/src/core-server/utils/get-builders.d.ts
1873
+ declare function getBuilders({
1874
+ presets
1875
+ }: Options): Promise<Builder<unknown>[]>;
1876
+ //#endregion
1877
+ //#region .dts-emit/code/core/src/core-server/utils/getHostValidationMiddleware.d.ts
1878
+ type HostValidationOptions = {
1879
+ host?: string;
1880
+ allowedHosts?: string[] | true;
1881
+ localAddress?: string;
1882
+ networkAddress?: string;
1883
+ };
1884
+ /**
1885
+ * Validates a host (Host header–shaped string, e.g. "localhost:6006") against known local/network
1886
+ * addresses and allowed hosts. Callers must pass host-shaped input; normalize from an origin URL
1887
+ * (e.g. new URL(origin).host) before invoking if needed.
1888
+ *
1889
+ * `localhost`, its subdomains and `127.0.0.1` are always allowed. Any other IP address is
1890
+ * allowed only when it is an address of this machine, the `--host` value, or listed in
1891
+ * `allowedHosts`. Hostnames must be listed in `allowedHosts`, unless they are the `--host` value.
1892
+ *
1893
+ * @param host - The host to validate (hostname or "hostname:port").
1894
+ * @param options - The builder options.
1895
+ * @returns `true` if the host is valid, `false` otherwise.
1896
+ */
1897
+ declare const isValidHost: (host: string | undefined, options: HostValidationOptions) => boolean;
1898
+ //#endregion
1899
+ //#region .dts-emit/code/core/src/core-server/utils/get-server-channel.d.ts
1900
+ /**
1901
+ * Prepare the UniversalStore singleton for a server realm without a dev server (the `storybook
1902
+ * tools` CLI). Leader stores only become ready — and accept writes — once prepared, which the dev
1903
+ * server does above with its live channel; a headless realm has no followers to synchronize, so a
1904
+ * transport-less channel is correct. The channel is returned so the caller can hand the same bus
1905
+ * to configuration loading: stores only hear events on the channel they were prepared with, and
1906
+ * addon responders (addon-vitest's test runner among them) relay child-process store events onto
1907
+ * the channel their preset hooks received. Lives here (not in the CLI) so the preparation call
1908
+ * stays next to the class it configures instead of reaching through an internal static from
1909
+ * another entry, which the published type declarations strip.
1910
+ */
1911
+ declare function prepareHeadlessUniversalStores(): Channel;
1912
+ //#endregion
1913
+ //#region .dts-emit/code/core/src/core-server/utils/apply-services-preset-once.d.ts
1914
+ declare global {
1915
+ var FORKBOOK_SERVICES_PRESET_PROMISE: Promise<void> | undefined;
1916
+ }
1917
+ /**
1918
+ * Applies the 'services' preset, but only once, as the services must not be registered multiple times.
1919
+ *
1920
+ * This is to ensure that we don't apply the preset multiple times in dev mode, which can lead to issues with the telemetry service and other services that are meant to be singletons.
1921
+ */
1922
+ /** Clears the one-shot so a later configuration load can apply the `services` preset again. */
1923
+ declare function resetServicesPresetOnce(): void;
1924
+ //#endregion
1925
+ //#region .dts-emit/code/core/src/core-server/stores/test-provider.d.ts
1926
+ declare function createServerTestProviderStore(leader: boolean): {
1927
+ getTestProviderStoreById: (testProviderId: TestProviderId) => TestProviderStoreById;
1928
+ fullTestProviderStore: {
1929
+ settingsChanged: () => void;
1930
+ onRunAll: (listener: () => void) => () => void;
1931
+ onClearAll: (listener: () => void) => () => void;
1932
+ } & {
1933
+ getFullState: UniversalStore<TestProviderStateByProviderId, TestProviderStoreEvent>['getState'];
1934
+ setFullState: UniversalStore<TestProviderStateByProviderId, TestProviderStoreEvent>['setState'];
1935
+ onSettingsChanged: (listener: (testProviderId: TestProviderId) => void) => () => void;
1936
+ runAll: () => void;
1937
+ clearAll: () => void;
1938
+ };
1939
+ universalTestProviderStore: UniversalStore<TestProviderStateByProviderId, TestProviderStoreEvent>;
1940
+ };
1941
+ type TestProviderStoreBundle = ReturnType<typeof createServerTestProviderStore>;
1942
+ declare const getTestProviderStoreById: TestProviderStoreBundle['getTestProviderStoreById'];
1943
+ declare const fullTestProviderStore: TestProviderStoreBundle['fullTestProviderStore'];
1944
+ declare const universalTestProviderStore: TestProviderStoreBundle['universalTestProviderStore'];
1945
+ //#endregion
1946
+ //#region .dts-emit/code/core/src/core-server/utils/ghost-stories/get-candidates.d.ts
1947
+ declare function getComponentCandidates({
1948
+ sampleSize,
1949
+ globPattern,
1950
+ cwd
1951
+ }?: {
1952
+ sampleSize?: number;
1953
+ globPattern?: string; /** Working directory for glob. Defaults to process.cwd(). */
1954
+ cwd?: string;
1955
+ }): Promise<{
1956
+ candidates: string[];
1957
+ error?: string;
1958
+ globMatchCount: number;
1959
+ analyzedCount?: number;
1960
+ avgComplexity?: number;
1961
+ }>;
1962
+ //#endregion
1963
+ //#region .dts-emit/code/core/src/shared/utils/test-result-types.d.ts
1964
+ interface StoryTestResult {
1965
+ storyId: string;
1966
+ status: 'PASS' | 'FAIL' | 'PENDING';
1967
+ error?: string;
1968
+ stack?: string;
1969
+ /** Whether the story rendered to an empty/invisible DOM element */
1970
+ emptyRender?: boolean;
1971
+ }
1972
+ /**
1973
+ * A `StoryTestResult` augmented with the timestamp at which it was recorded.
1974
+ * Used by the agent self-healing flow to persist the most recent outcome
1975
+ * per story across runs (in cache only — never sent in telemetry).
1976
+ */
1977
+ interface StoryTestResultHistoryEntry extends StoryTestResult {
1978
+ timestamp: number;
1979
+ }
1980
+ type StoryTestResultHistory = Record<string, StoryTestResultHistoryEntry>;
1981
+ interface CategorizedError {
1982
+ category: string;
1983
+ count: number;
1984
+ uniqueCount: number;
1985
+ matchedDependencies: string[];
1986
+ }
1987
+ /**
1988
+ * Outcome of the `CssCheck` story — a story (id suffix `--css-check`)
1989
+ * whose `play` asserts a component-specific computed style via
1990
+ * `getComputedStyle`. Distinguishes "component mounted" from "the
1991
+ * user's CSS actually loaded".
1992
+ *
1993
+ * - `'pass'` — a `CssCheck` story ran and passed.
1994
+ * - `'fail'` — a `CssCheck` story ran and failed.
1995
+ * - `'not-run'` — no pass/fail signal available: either no `CssCheck`
1996
+ * story is in the suite, or the story existed but was
1997
+ * not executed (skipped, pending, todo, filtered out).
1998
+ *
1999
+ * Only the three-valued enum is emitted — no storyId or component
2000
+ * name — so no user-authored data enters telemetry.
2001
+ */
2002
+ type CssCheckOutcome = 'pass' | 'fail' | 'not-run';
2003
+ interface TestRunAnalysis {
2004
+ /** Stats for the current run (only stories executed in this run). */
2005
+ total: number;
2006
+ passed: number;
2007
+ passedButEmptyRender: number;
2008
+ successRate: number;
2009
+ successRateWithoutEmptyRender: number;
2010
+ uniqueErrorCount: number;
2011
+ categorizedErrors: Record<string, CategorizedError>;
2012
+ cssCheck: CssCheckOutcome;
2013
+ /**
2014
+ * Stats accumulated across runs: for every story we've ever seen, we
2015
+ * keep the most recent outcome (by timestamp). Only emitted by the
2016
+ * agent self-healing flow, which is the only consumer that persists
2017
+ * a per-story history in the Forkbook cache.
2018
+ */
2019
+ cumulativeTotal?: number;
2020
+ cumulativePassed?: number;
2021
+ cumulativePassedButEmptyRender?: number;
2022
+ cumulativeSuccessRate?: number;
2023
+ cumulativeSuccessRateWithoutEmptyRender?: number;
2024
+ cumulativeUniqueErrorCount?: number;
2025
+ cumulativeCategorizedErrors?: Record<string, CategorizedError>;
2026
+ cumulativeCssCheck?: CssCheckOutcome;
2027
+ }
2028
+ //#endregion
2029
+ //#region .dts-emit/code/core/src/core-server/utils/ghost-stories/types.d.ts
2030
+ interface TestRunSummary {
2031
+ duration?: number;
2032
+ summary?: TestRunAnalysis;
2033
+ runError?: string;
2034
+ }
2035
+ //#endregion
2036
+ //#region .dts-emit/code/core/src/core-server/utils/ghost-stories/run-story-tests.d.ts
2037
+ /**
2038
+ * Run ghost stories: execute vitest on component file paths to auto-generate
2039
+ * and test stories that don't exist on disk.
2040
+ *
2041
+ * @param componentFilePaths - Absolute paths to component files to test.
2042
+ * @param options.cwd - Working directory for vitest. Defaults to process.cwd().
2043
+ */
2044
+ declare function runStoryTests(componentFilePaths: string[], options?: {
2045
+ cwd?: string;
2046
+ ghostRun?: boolean;
2047
+ }): Promise<TestRunSummary>;
2048
+ //#endregion
2049
+ //#region .dts-emit/code/core/src/core-server/utils/server-address.d.ts
2050
+ interface PortOptions {
2051
+ exactPort?: boolean;
2052
+ }
2053
+ declare const getServerPort: (port?: number, {
2054
+ exactPort
2055
+ }?: PortOptions) => Promise<number>;
2056
+ //#endregion
2057
+ //#region .dts-emit/code/core/src/cli/skills/availability.d.ts
2058
+ interface ToolAvailability {
2059
+ /** The `core/module-graph` open service is registered/resolvable. Gates `stories-find-by-component`. */
2060
+ moduleGraphSupported: boolean;
2061
+ /** Component-manifest feature is on AND manifests were found. Gates the `docs` toolset. */
2062
+ docsEnabled: boolean;
2063
+ /**
2064
+ * Docs gate for the `forkbook tools` CLI channel, which reads manifests in-process and so only
2065
+ * needs manifests to be producible — not the `componentsManifest` opt-in that gates MCP.
2066
+ */
2067
+ docsEnabledForCli: boolean;
2068
+ /** Any component manifests were found (drives the docs "why disabled" copy). */
2069
+ docsHasManifests: boolean;
2070
+ /** The component-manifest feature flag is enabled (drives the docs "why disabled" copy). */
2071
+ docsFeatureEnabled: boolean;
2072
+ /**
2073
+ * `@aussieljk/forkbook/addon-vitest` is enabled (not merely installed), matching the condition under
2074
+ * which it registers the `test` toolset. Gates the `test` toolset (`test-run`).
2075
+ */
2076
+ testSupported: boolean;
2077
+ /** `@aussieljk/forkbook/addon-a11y` is enabled. Gates the accessibility sub-feature of `test-run`. */
2078
+ a11yEnabled: boolean;
2079
+ /** `docgenServer` mode: read manifest data in-process from the open services. */
2080
+ docgenServer: boolean;
2081
+ }
2082
+ /**
2083
+ * Composed Storybooks with component manifests can back docs tools even when the
2084
+ * local Forkbook has no component manifest. Use this before feeding
2085
+ * availability into the shared tool registry.
2086
+ */
2087
+ declare function getEffectiveToolAvailability(availability: ToolAvailability, {
2088
+ multiSource
2089
+ }?: {
2090
+ multiSource?: boolean;
2091
+ }): ToolAvailability;
2092
+ /**
2093
+ * True iff the `core/module-graph` open service is registered in this process — reflects
2094
+ * registration rather than mere runtime presence so tool gating/badging can't drift from the
2095
+ * service the dev server actually resolves (a builder may ship change detection but not
2096
+ * register the service, e.g. without change detection wired up).
2097
+ */
2098
+ declare function isModuleGraphSupported(): Promise<boolean>;
2099
+ /**
2100
+ * Single source of truth for the runtime gates that decide whether each tool is
2101
+ * registered (and how the landing page badges it).
2102
+ *
2103
+ * Every dynamic gate lives here — the dependency graph, the component manifest
2104
+ * (docs), addon-vitest (test) and the accessibility sub-feature — so the MCP
2105
+ * server (which registers the tools) and the browser landing page (which shows
2106
+ * enabled/disabled badges) can never drift apart. Add new gates here rather
2107
+ * than computing them ad-hoc at a call site.
2108
+ */
2109
+ declare function getToolAvailability(options: Options$1): Promise<ToolAvailability>;
2110
+ //#endregion
2111
+ //#region .dts-emit/code/core/src/cli/skills/addon-a11y.d.ts
2112
+ /**
2113
+ * Check if @aussieljk/forkbook/addon-a11y is enabled in the Forkbook configuration.
2114
+ */
2115
+ declare function isAddonA11yEnabled(options: Options$1): Promise<boolean>;
2116
+ //#endregion
2117
+ //#region .dts-emit/code/core/src/cli/skills/addon-vitest.d.ts
2118
+ /**
2119
+ * Whether `@aussieljk/forkbook/addon-vitest` is enabled in this project.
2120
+ *
2121
+ * Reads the `isAddonVitestEnabled` marker that addon's preset exports, so this is true exactly
2122
+ * when its presets loaded — the same condition under which its `services` hook registers the
2123
+ * `test` toolset. Installed-but-not-enabled (a hoisted monorepo dependency, or an addon removed
2124
+ * from `main.ts` without uninstalling) must read false: the toolset never registers there, so
2125
+ * offering the tool would make every test call fail.
2126
+ */
2127
+ declare function isAddonVitestEnabled(options: Options$1): Promise<boolean>;
2128
+ //#endregion
2129
+ //#region .dts-emit/code/core/src/cli/skills/inputs.d.ts
2130
+ type SkillInputs = ToolAvailability & {
2131
+ framework: string;
2132
+ renderer?: string; /** The preview file imports `definePreview`, the entry point of CSF Factories. */
2133
+ csfFactories: boolean; /** Path of the preview file relative to the working directory; a default name when there is none. */
2134
+ previewFile: string; /** The preview file, or `main` when there is none, is TypeScript. */
2135
+ typescript: boolean;
2136
+ };
2137
+ /**
2138
+ * The one probing path for skill-content assembly: everything the pure builders need, resolved
2139
+ * from the target Forkbook's presets. Both the skills CLI and addon-mcp fill builder inputs from
2140
+ * this, so the two channels cannot drift.
2141
+ */
2142
+ declare function resolveSkillInputs(options: Options$1): Promise<SkillInputs>;
2143
+ //#endregion
2144
+ //#region .dts-emit/code/core/src/cli/skills/manifest-status.d.ts
2145
+ type ManifestFeatures = {
2146
+ componentsManifest?: boolean;
2147
+ experimentalComponentsManifest?: boolean;
2148
+ docgenServer?: boolean;
2149
+ };
2150
+ type ManifestStatus = {
2151
+ available: boolean;
2152
+ hasManifests: boolean;
2153
+ hasFeatureFlag: boolean;
2154
+ /**
2155
+ * `docgenServer` mode: the split/ref manifest format served from the
2156
+ * open services. In dev, `/manifests/*.json` is 404'd by core, so the addon reads
2157
+ * manifest data in-process instead of fetching it.
2158
+ */
2159
+ docgenServer: boolean;
2160
+ };
2161
+ declare const getManifestStatus: (options: Options$1) => Promise<ManifestStatus>;
2162
+ //#endregion
2163
+ //#region .dts-emit/code/core/src/shared/utils/analyze-test-results.d.ts
2164
+ /**
2165
+ * Analyze a list of story test results and produce a TestRunAnalysis with pass/fail counts, success
2166
+ * rates, empty render detection, and categorized errors.
2167
+ *
2168
+ * @param results Story results from the current run.
2169
+ * @param cumulativeResults Optional aggregated results across runs (latest outcome per story).
2170
+ * Only the agent self-healing flow tracks history and passes this; when omitted no
2171
+ * `cumulative*` fields are emitted.
2172
+ */
2173
+ declare function analyzeTestResults(results: StoryTestResult[], cumulativeResults?: StoryTestResult[]): TestRunAnalysis;
2174
+ //#endregion
2175
+ //#region .dts-emit/code/core/src/shared/utils/to-story-test-result.d.ts
2176
+ interface VitestLikeReport {
2177
+ type: string;
2178
+ result?: {
2179
+ emptyRender?: boolean;
2180
+ } | unknown;
2181
+ }
2182
+ interface VitestLikeError {
2183
+ message?: string;
2184
+ stack?: string;
2185
+ }
2186
+ interface VitestLikeInput {
2187
+ storyId: string | undefined;
2188
+ /** Raw vitest status, e.g. 'passed' | 'failed' | 'skipped' | 'pending' | 'running' | ... */
2189
+ statusRaw: string | undefined;
2190
+ errors?: readonly VitestLikeError[];
2191
+ reports?: readonly VitestLikeReport[];
2192
+ }
2193
+ /**
2194
+ * Convert a Vitest-like input (either a JSON reporter assertion or a runtime TestCase) into a
2195
+ * StoryTestResult. Returns null when the input has no storyId — callers can use this to skip
2196
+ * non-story tests.
2197
+ */
2198
+ declare function toStoryTestResult(input: VitestLikeInput): StoryTestResult | null;
2199
+ //#endregion
2200
+ export { BuildIndexOptions, BuildStaticStandaloneOptions, type ChangeDetectionAdapter, ChangeDetectionFailureError, ChangeDetectionService, ChangeDetectionUnavailableError, type Command, type CommandCtx, type CommandDefinition, type ComponentArgTypesData, type DocsAccess, type DocsManifestEntry, type DocsManifestRefEntry, type ChangeDetectionReadiness as Experimental_ChangeDetectionReadiness, type FileChangeEvent, type FoundStory, type HostValidationOptions, type ImportEdge, type ImportParser, type ImportParserContext, type JsonRef, MDX_SERVICE_ID, type ManifestFeatures, type ManifestStatus, type MdxDocPayload, type MdxError, type MdxPayload, type MdxServiceContract, type ModuleGraphService, type ModuleResolveConfig, type NotFoundStory, type OperationDescriptor, type ParseFileArgs, type PreviewStoriesOutput, type Query, type QueryCtx, type QueryDefinition, type ResolvedDocsEntry, type RuntimeService, type SchemaDescriptor, type ServerServiceRegistration, type ServiceDefinition, type ServiceDescriptor, type ServiceInstance, type ServiceRegistrationOptions, type ServiceSummary, type SkillInputs, type StoryIndexAccess, StoryIndexGenerator, type StoryInput, type StoryTestResult, type StoryTestResultHistory, type StoryTestResultHistoryEntry, Tag, type ToolAvailability, type WorkerGatedStoryDocsProviderOptions, analyzeMdx, analyzeTestResults, build$1 as build, buildDevStandalone, buildIndex, buildIndexStandalone, buildStaticStandalone, createDocsToolset, createLocalDocsAccess, createManifestDocsAccess, createServiceDocsAccess, createStoriesToolset, createWorkerGatedStoryDocsProvider, describeService, emptyManifests, MockUniversalStore as experimental_MockUniversalStore, defineService as experimental_defineService, getChangeDetectionReadiness as experimental_getChangeDetectionReadiness, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, loadStorybook as experimental_loadStorybook, registerService as experimental_registerService, resetChangeDetectionReadiness as experimental_resetChangeDetectionReadiness, resetServicesPresetOnce as experimental_resetServicesPresetOnce, setChangeDetectionHost as experimental_setChangeDetectionHost, findStoryIds, getBuilders, getComponentCandidates, getEffectiveToolAvailability, getErrorLevel, getManifestStatus, getPreviewBodyTemplate, getPreviewHeadTemplate, getRefsFromConfig, getServerPort, getService$1 as getService, getStoriesPathsFromConfig, getToolAvailability, UniversalStore as internal_UniversalStore, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, isAddonA11yEnabled, isAddonVitestEnabled, isModuleGraphSupported, isValidHost, listServices, loadManifests, mapStaticDir, mdxManifestRef, mdxQueryStaticPath, mdxStaticStorePath, type moduleGraphServiceDef, prepareHeadlessUniversalStores, registerToolset, resolveChangeDetectionAdapter, resolveSkillInputs, reviewToolset, runStoryTests, sendTelemetryError, storyInputArraySchema, toStoryTestResult, withTelemetry };