@aussieljk/forkbook 0.0.1-20 → 0.0.1-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/{Color-KALNKPOV.js → Color-7FO5YFB5.js} +1 -1
- package/dist/_browser-chunks/{WithTooltip-66AWY4VQ.js → WithTooltip-QWFSUQZP.js} +1 -1
- package/dist/_browser-chunks/{chunk-OWWV6YG7.js → chunk-5Z3MWCFR.js} +1 -1
- package/dist/_browser-chunks/{chunk-CX37N6FG.js → chunk-BSYOFSF6.js} +9 -9
- package/dist/_browser-chunks/{chunk-4ZGQ4YQ2.js → chunk-FAOLWWRN.js} +1 -1
- package/dist/_browser-chunks/{chunk-TRXLBGLS.js → chunk-ZIZCGWCG.js} +4 -4
- package/dist/_node-chunks/{attached-runtime-YD6HKC4B.js → attached-runtime-UC2CB4GH.js} +34 -34
- package/dist/_node-chunks/{builder-manager-UNJGYVTD.js → builder-manager-S5UUKVOR.js} +17 -19
- package/dist/_node-chunks/{chunk-QEYWG5C7.js → chunk-3335ZZIO.js} +6 -6
- package/dist/_node-chunks/{chunk-75TTPKEA.js → chunk-3D6N6P2R.js} +8 -8
- package/dist/_node-chunks/{chunk-65X3MXFT.js → chunk-3ER54PQM.js} +8 -8
- package/dist/_node-chunks/{chunk-AGLGQNTY.js → chunk-3H5C52QU.js} +6 -6
- package/dist/_node-chunks/{chunk-X6OGIC2G.js → chunk-3UI3TQ7R.js} +6 -6
- package/dist/_node-chunks/{chunk-5LFJQCYN.js → chunk-4C3ACAHV.js} +6 -6
- package/dist/_node-chunks/{chunk-J6FGP2VM.js → chunk-4UTCKJEQ.js} +7 -7
- package/dist/_node-chunks/{chunk-LAJIVWUF.js → chunk-53A5CYDK.js} +92 -17
- package/dist/_node-chunks/{chunk-HHM5X5RQ.js → chunk-53PSBDRK.js} +9 -9
- package/dist/_node-chunks/{chunk-7CWDZLIZ.js → chunk-54MO4QLB.js} +6 -6
- package/dist/_node-chunks/{chunk-QDVIQG3B.js → chunk-5CJMRQZ6.js} +6 -6
- package/dist/_node-chunks/{chunk-U54Q3F7E.js → chunk-5HOM7B4V.js} +6 -6
- package/dist/_node-chunks/{chunk-VNZF62KE.js → chunk-5QG6AXK4.js} +7 -7
- package/dist/_node-chunks/{chunk-LGHTKFSF.js → chunk-67XVZZUO.js} +6 -6
- package/dist/_node-chunks/{chunk-IIGBIVK3.js → chunk-6HQJJDLH.js} +6 -6
- package/dist/_node-chunks/chunk-6IPHWCFI.js +29 -0
- package/dist/_node-chunks/{chunk-ZZ5XMIGW.js → chunk-6XYOFBRD.js} +14 -31
- package/dist/_node-chunks/{chunk-F762PHMI.js → chunk-7IAYDGYH.js} +6 -6
- package/dist/_node-chunks/{chunk-WDANLGYN.js → chunk-7P67PUU2.js} +7 -7
- package/dist/_node-chunks/{chunk-6RYD6ENB.js → chunk-AAK5BBF2.js} +7 -7
- package/dist/_node-chunks/{chunk-VPFU5CEP.js → chunk-BGUVBOOU.js} +8 -8
- package/dist/_node-chunks/{chunk-ZLC4JSBV.js → chunk-BNGBOASQ.js} +6 -6
- package/dist/_node-chunks/{chunk-2GA4VQCS.js → chunk-BWZWCVVH.js} +9 -9
- package/dist/_node-chunks/{chunk-MWKSSYPG.js → chunk-C6HQ6WLU.js} +6 -6
- package/dist/_node-chunks/chunk-CJHRH777.js +20 -0
- package/dist/_node-chunks/{chunk-3ZOSFS7G.js → chunk-COEW4ORP.js} +6 -6
- package/dist/_node-chunks/{chunk-LCNF6BLP.js → chunk-CVHDAEDZ.js} +7 -7
- package/dist/_node-chunks/{chunk-ZX32M4O7.js → chunk-CXGOQNGI.js} +7 -7
- package/dist/_node-chunks/chunk-D4XTQWRM.js +11 -0
- package/dist/_node-chunks/{chunk-EFCBUWOB.js → chunk-D5V6CZ6U.js} +7 -7
- package/dist/_node-chunks/{chunk-CPDP5SQS.js → chunk-DCTXJ4TT.js} +9 -9
- package/dist/_node-chunks/{chunk-LNGSV5UI.js → chunk-DP6WFY3D.js} +7 -7
- package/dist/_node-chunks/{chunk-DQEUNKLX.js → chunk-E23GDXG6.js} +9 -85
- package/dist/_node-chunks/{chunk-SFXFL4TP.js → chunk-E3ZFMURC.js} +8 -8
- package/dist/_node-chunks/{chunk-N4LNGTYL.js → chunk-E6O3NA44.js} +7 -7
- package/dist/_node-chunks/{chunk-UZH2V3WY.js → chunk-ECS3WDOU.js} +7 -7
- package/dist/_node-chunks/{chunk-N5WU4BEY.js → chunk-FB5YJWOH.js} +6 -6
- package/dist/_node-chunks/{chunk-XVSUIOZA.js → chunk-FCK5FM6D.js} +7 -7
- package/dist/_node-chunks/{chunk-3CQI3JH5.js → chunk-FJUGPEJK.js} +6 -6
- package/dist/_node-chunks/{chunk-Z665R6AF.js → chunk-FPYXI76E.js} +7 -7
- package/dist/_node-chunks/{chunk-PJRPETSU.js → chunk-GEWVOY3F.js} +6 -6
- package/dist/_node-chunks/{chunk-FC3V4KZO.js → chunk-GHZ44BFB.js} +7 -7
- package/dist/_node-chunks/{chunk-WTPHQ2NG.js → chunk-GJMFISS3.js} +6 -6
- package/dist/_node-chunks/{chunk-33I6AQU7.js → chunk-GK2Y2RFX.js} +6 -6
- package/dist/_node-chunks/{chunk-7M3TOE4F.js → chunk-GP6YBA2R.js} +6 -6
- package/dist/_node-chunks/{chunk-KAALBGRE.js → chunk-GQUFGJ4D.js} +6 -6
- package/dist/_node-chunks/{chunk-MC4BFUVH.js → chunk-H4CRQDTK.js} +6 -6
- package/dist/_node-chunks/{chunk-IENHXJVB.js → chunk-HCDG54OG.js} +7 -7
- package/dist/_node-chunks/{chunk-2CNN3CRI.js → chunk-HGJMP4EI.js} +8 -8
- package/dist/_node-chunks/chunk-HSX6BDBA.js +18 -0
- package/dist/_node-chunks/{chunk-WMZJ2WK4.js → chunk-IPFPWMT5.js} +1255 -291
- package/dist/_node-chunks/{chunk-FXW52X4U.js → chunk-KRIOC4WF.js} +8 -8
- package/dist/_node-chunks/{chunk-NRXCMSAI.js → chunk-KUL2MJ6N.js} +6 -6
- package/dist/_node-chunks/{chunk-DAYTIH6Z.js → chunk-LUR6QTYB.js} +8 -8
- package/dist/_node-chunks/{chunk-2VJHCGAK.js → chunk-LYS7TI35.js} +8 -8
- package/dist/_node-chunks/{chunk-AVHJZUTH.js → chunk-MDTXL6SN.js} +8 -8
- package/dist/_node-chunks/{chunk-EKYNX5NX.js → chunk-MIIPXT4S.js} +8 -8
- package/dist/_node-chunks/{chunk-WYRBOMQF.js → chunk-MLWGAA2I.js} +8 -7
- package/dist/_node-chunks/{chunk-XF7H5GZM.js → chunk-MWUGCUB5.js} +8 -8
- package/dist/_node-chunks/{chunk-SPAHK37C.js → chunk-MX5MVLEK.js} +6 -6
- package/dist/_node-chunks/{chunk-25A7444H.js → chunk-N44UIGCO.js} +6 -6
- package/dist/_node-chunks/{chunk-JXZONVHW.js → chunk-NP2JHOFY.js} +7 -7
- package/dist/_node-chunks/{chunk-6FWJWEAG.js → chunk-OMNGOPNG.js} +7 -7
- package/dist/_node-chunks/{chunk-WZBMPROH.js → chunk-OO2GTHUF.js} +6 -6
- package/dist/_node-chunks/{chunk-ZN6YOIB2.js → chunk-PC57BIYZ.js} +7 -7
- package/dist/_node-chunks/{chunk-SUQ4OM7Y.js → chunk-PHWMAF5C.js} +6 -6
- package/dist/_node-chunks/{chunk-CJDYU653.js → chunk-PLIQQETC.js} +7 -7
- package/dist/_node-chunks/{chunk-B2EEX2SZ.js → chunk-QMYCIS2U.js} +6 -6
- package/dist/_node-chunks/{chunk-4BE3LRIQ.js → chunk-QZIDK3GX.js} +13 -14
- package/dist/_node-chunks/{chunk-6NLQCV6A.js → chunk-ROJ6RSIJ.js} +7 -7
- package/dist/_node-chunks/{chunk-NZWK62R5.js → chunk-S2NB6QEG.js} +30 -30
- package/dist/_node-chunks/{chunk-GWT4HQZU.js → chunk-S6VCOSQS.js} +6 -6
- package/dist/_node-chunks/{chunk-6OQKMJJA.js → chunk-SEVOOOB2.js} +10 -10
- package/dist/_node-chunks/{chunk-S7RGKBGT.js → chunk-SFT6ZAVN.js} +6 -6
- package/dist/_node-chunks/{chunk-AP4HJ3I3.js → chunk-SXBUK4F6.js} +7 -7
- package/dist/_node-chunks/{chunk-XUZB4FIX.js → chunk-TGF6Q66I.js} +8 -8
- package/dist/_node-chunks/{chunk-AOYLA323.js → chunk-TGFHWGGT.js} +6 -6
- package/dist/_node-chunks/{chunk-GFEH7IBP.js → chunk-TTLSBLPQ.js} +8 -8
- package/dist/_node-chunks/{chunk-VIMGLCNZ.js → chunk-UUAEW2AR.js} +6 -6
- package/dist/_node-chunks/{chunk-JOX7OETB.js → chunk-VQHM66NL.js} +8 -8
- package/dist/_node-chunks/{chunk-ZEYZWDOS.js → chunk-VSTTY3TM.js} +6 -6
- package/dist/_node-chunks/{chunk-N25CZ3RC.js → chunk-XDBSAFUB.js} +7 -7
- package/dist/_node-chunks/{chunk-EG2WLN5V.js → chunk-XTQQGAUZ.js} +7 -7
- package/dist/_node-chunks/{chunk-X2GGQZIN.js → chunk-YMJVSFJT.js} +6 -6
- package/dist/_node-chunks/{chunk-OBPVOYJA.js → chunk-YXEKWVJQ.js} +7 -7
- package/dist/_node-chunks/{chunk-L52VGA36.js → chunk-Z6CUUWJO.js} +7 -7
- package/dist/_node-chunks/{chunk-GEJBTN76.js → chunk-ZAIGR7EV.js} +9 -17
- package/dist/_node-chunks/{chunk-OMMQME7G.js → chunk-ZCFXEFR6.js} +14 -14
- package/dist/_node-chunks/{chunk-DO3CPQAZ.js → chunk-ZHUBOYOD.js} +6 -6
- package/dist/_node-chunks/{chunk-IBLUURAJ.js → chunk-ZHUBTBP2.js} +8 -8
- package/dist/_node-chunks/{chunk-JR7ZCQ77.js → chunk-ZSTIFZHY.js} +6 -6
- package/dist/_node-chunks/dist-TRTHRODT.js +16 -0
- package/dist/_node-chunks/dist-XPLJ5T4W.js +27 -0
- package/dist/_node-chunks/{local-runtime-4ETW6QTI.js → local-runtime-AC7MOWYK.js} +21 -21
- package/dist/_node-chunks/{mdx-plugin-OOYTYMVU.js → mdx-plugin-ZW26VGEP.js} +13 -13
- package/dist/_node-chunks/{monorepo-3AWUYNFD.js → monorepo-T2KZK62Q.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-ORY3BAP5.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-2CWUUF6H.js} +11 -11
- package/dist/_node-chunks/optimized-tests-4AK3PFSX.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-AY4DE7ME.js → pattern-copy-play-CMRGEXHM.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-OUQENFYO.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-FGVC633L.js → rehype-external-links-LHOAIJ2E.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-2AZLMC5G.js → rehype-slug-K54MMYY6.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-QI3YR6CU.js → relaxed-limits-TTL4PWH7.js} +11 -11
- package/dist/_node-chunks/{run-QJJ4FOF3.js → run-6DXBB5F7.js} +28 -26
- package/dist/_node-chunks/{run-WFJZYNZN.js → run-BMTV5ZAO.js} +17 -17
- package/dist/_node-chunks/{setup-V5CRAJMV.js → setup-FDPYW25Y.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-LECBBF3L.js → vitest.config.4.template-2TCFWAAI.js} +7 -7
- package/dist/addon-a11y/manager.js +3 -3
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-comments/manager.js +2 -2
- package/dist/addon-comments/preset.js +43 -15
- package/dist/addon-comments/preview.js +1 -1
- package/dist/addon-docs/blocks.js +9 -9
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-mcp/preset.js +39 -39
- package/dist/addon-mcp/preview.js +1 -1
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +2 -2
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +4 -4
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +18 -18
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +18 -18
- package/dist/addon-vitest/vitest-plugin/global-setup.js +8 -8
- package/dist/addon-vitest/vitest-plugin/index.js +18 -18
- package/dist/babel/index.js +30582 -31
- package/dist/bin/core.js +60 -71
- package/dist/bin/dispatcher.js +10 -10
- package/dist/bin/loader.js +8 -8
- package/dist/builder-next/index.js +9 -9
- package/dist/builder-vite/index.js +15 -15
- package/dist/builder-vite/preset.js +13 -13
- package/dist/{chunk-ge-rSPy0.d.ts → chunk-B53gRJBs.d.ts} +22 -4
- package/dist/{chunk-Bubi-WAs.d.ts → chunk-BspNQvZn.d.ts} +1 -6
- package/dist/{chunk-OksNJcvJ.d.ts → chunk-CMx6bGAU.d.ts} +1 -1
- package/dist/{chunk-BsO65uOb.d.ts → chunk-CRmUwbkb.d.ts} +1 -1
- package/dist/{chunk-D2CQlXaR.d.ts → chunk-bhl-7rRD.d.ts} +28 -1
- package/dist/cli/index.d.ts +3 -39
- package/dist/cli/index.js +37 -282
- package/dist/cli/skills/content/index.d.ts +1 -1
- package/dist/cli/skills/content/index.js +1 -1
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +2 -2
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/common/index.d.ts +9 -9
- package/dist/common/index.js +89 -91
- package/dist/components/index.js +29 -29
- package/dist/core-events/index.d.ts +12 -5
- package/dist/core-events/index.js +1 -5
- package/dist/core-server/index.d.ts +41 -13
- package/dist/core-server/index.js +247 -98
- package/dist/core-server/presets/common-manager.js +9 -9
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +39 -39
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.js +6 -7
- package/dist/csf-tools/index.js +13 -13
- package/dist/instrumenter/index.d.ts +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-D6tkG2NO.js → globals-runtime-BJ6EZqH7.js} +6 -6
- package/dist/manager/_manager-chunks/{globals-runtime-BnWjPJUH.js → globals-runtime-BfXaq_CP.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-Bv2PBsx6.js → globals-runtime-BkSn_Jpe.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-D9zzVzSP.js → globals-runtime-Cisw9IIE.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-DafcXCKU.js → globals-runtime-DpvE_zRs.js} +80 -84
- package/dist/manager/_manager-chunks/{globals-runtime-BDkYPr00.js → globals-runtime-wV08sCKl.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-DJlTd1qE.js → runtime-4OQZWibO.js} +134 -134
- package/dist/manager/_manager-chunks/{runtime-mjv_40eH.js → runtime-BYxbyNm0.js} +4 -4
- package/dist/manager/_manager-chunks/{runtime-BuPcYKCO.js → runtime-CM4Z8aKR.js} +0 -2
- package/dist/manager/_manager-chunks/{runtime-CGaGp83p.js → runtime-Cjo1UL1u.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-BhfRBP4G.js → runtime-Cx1-wr6J.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-CXROgt6G.js → runtime-Cxe_uJRb.js} +8 -8
- package/dist/manager/_manager-chunks/{runtime-DmpQacrn.js → runtime-D702FFTO.js} +5 -7
- package/dist/manager/_manager-chunks/{runtime-Dc6lf19c.js → runtime-DnWFp6Zw.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-DTUm5K9J.js → runtime-DoYPE6g6.js} +24 -24
- package/dist/manager/_manager-chunks/{runtime-Cn5PJT3-.js → runtime-sppa-0ll.js} +2 -2
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.d.ts +10 -10
- package/dist/mcp/index.js +10 -10
- package/dist/mocking-utils/index.js +9 -9
- package/dist/next/index.js +9 -9
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +11 -11
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.js +8 -8
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/node-logger/index.d.ts +8 -2
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +10 -10
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-C88AzFBv.js → runtime-Cbq5WjbL.js} +2 -2
- package/dist/preview/_chunks/{runtime-Cpzxe5eK.js → runtime-DDEUZops.js} +12 -16
- package/dist/preview/_chunks/{runtime-BiYuZt-X.js → runtime-DsjyhLpG.js} +8 -6
- package/dist/preview/_chunks/{runtime-MYVHRAoo.js → runtime-Dwi6NFcX.js} +2 -2
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +2 -2
- package/dist/preview-api/index.js +1 -1
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -11
- package/dist/react/preset.js +13 -13
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/withForkbook.js +11 -11
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +8 -8
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +11 -11
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-CGVVOUBC.js +0 -18
- package/dist/_node-chunks/chunk-QQNRWEHL.js +0 -972
- package/dist/_node-chunks/chunk-RAIWLNFA.js +0 -30606
- package/dist/_node-chunks/chunk-VYCVBW5Q.js +0 -92
- package/dist/_node-chunks/chunk-WYCITRIE.js +0 -11
- package/dist/_node-chunks/chunk-ZHRCL7PG.js +0 -148
- package/dist/_node-chunks/dist-HBFOS25E.js +0 -16
- package/dist/_node-chunks/dist-Q2XNFC24.js +0 -27
- package/dist/_node-chunks/optimized-tests-DOKSUJAM.js +0 -22
- package/dist/_node-chunks/postinstallAddon-L46G75CD.js +0 -20
- package/dist/chunk-CDMZhRke.d.ts +0 -30
package/dist/addon-mcp/preset.js
CHANGED
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
package_default
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-FPYXI76E.js";
|
|
15
15
|
import {
|
|
16
16
|
getCommentStore
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-MLWGAA2I.js";
|
|
18
18
|
import {
|
|
19
19
|
getPublicOrigin,
|
|
20
20
|
isForwardedForOrigin
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
22
|
-
import "../_node-chunks/chunk-
|
|
23
|
-
import "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-OMNGOPNG.js";
|
|
22
|
+
import "../_node-chunks/chunk-PHWMAF5C.js";
|
|
23
|
+
import "../_node-chunks/chunk-YMJVSFJT.js";
|
|
24
24
|
|
|
25
25
|
// src/addon-mcp/mcp-handler.ts
|
|
26
26
|
import { McpServer } from "tmcp";
|
|
27
27
|
import { ValibotJsonSchemaAdapter } from "@tmcp/adapter-valibot";
|
|
28
28
|
import { HttpTransport } from "@tmcp/transport-http";
|
|
29
|
-
import { buffer } from "node:stream/consumers";
|
|
30
29
|
|
|
31
30
|
// src/addon-mcp/telemetry.ts
|
|
32
31
|
import { logger } from "@aussieljk/forkbook/internal/node-logger";
|
|
@@ -54,7 +53,10 @@ async function collectTelemetry({
|
|
|
54
53
|
import { logger as logger4 } from "@aussieljk/forkbook/internal/node-logger";
|
|
55
54
|
import {
|
|
56
55
|
getEffectiveToolAvailability,
|
|
57
|
-
getToolAvailability
|
|
56
|
+
getToolAvailability,
|
|
57
|
+
readRequestBody,
|
|
58
|
+
RequestBodyTooLargeError,
|
|
59
|
+
sendPayloadTooLarge
|
|
58
60
|
} from "@aussieljk/forkbook/internal/core-server";
|
|
59
61
|
import { buildServerInstructions } from "@aussieljk/forkbook/internal/skills";
|
|
60
62
|
|
|
@@ -105,7 +107,7 @@ function withFriendlyErrors(schema) {
|
|
|
105
107
|
};
|
|
106
108
|
}
|
|
107
109
|
|
|
108
|
-
// src/addon-mcp/tools/get-
|
|
110
|
+
// src/addon-mcp/tools/get-forkbook-story-instructions.ts
|
|
109
111
|
import { resolveSkillInputs } from "@aussieljk/forkbook/internal/core-server";
|
|
110
112
|
import { buildStoryInstructions } from "@aussieljk/forkbook/internal/skills";
|
|
111
113
|
|
|
@@ -124,7 +126,7 @@ var errorToMCPContent = (error) => ({
|
|
|
124
126
|
import { toMcpToolName } from "@aussieljk/forkbook/open-service";
|
|
125
127
|
var PREVIEW_STORIES_TOOL_NAME = toMcpToolName("stories.preview"), GET_CHANGED_STORIES_TOOL_NAME = toMcpToolName("stories.changed"), GET_STORIES_BY_COMPONENT_TOOL_NAME = toMcpToolName("stories.findByComponent"), RUN_STORY_TESTS_TOOL_NAME = toMcpToolName("test.run"), DISPLAY_REVIEW_TOOL_NAME = toMcpToolName("review.create"), GET_UI_BUILDING_INSTRUCTIONS_TOOL_NAME = "get-forkbook-story-instructions";
|
|
126
128
|
|
|
127
|
-
// src/addon-mcp/tools/get-
|
|
129
|
+
// src/addon-mcp/tools/get-forkbook-story-instructions.ts
|
|
128
130
|
async function addGetUIBuildingInstructionsTool(server, enabled = () => server.ctx.custom?.toolsets?.dev ?? !0, {
|
|
129
131
|
docsEnabled = !1,
|
|
130
132
|
addonVitestAvailable = !1
|
|
@@ -135,7 +137,7 @@ async function addGetUIBuildingInstructionsTool(server, enabled = () => server.c
|
|
|
135
137
|
title: "Forkbook Story Development Instructions",
|
|
136
138
|
get description() {
|
|
137
139
|
let testSupported = (server.ctx.custom?.toolsets?.test ?? !0) && addonVitestAvailable, a11yAvailable = testSupported && (server.ctx.custom?.a11yEnabled ?? !1);
|
|
138
|
-
return
|
|
140
|
+
return getForkbookStoryInstructionsDescription({
|
|
139
141
|
testSupported,
|
|
140
142
|
a11yAvailable
|
|
141
143
|
});
|
|
@@ -152,7 +154,7 @@ async function addGetUIBuildingInstructionsTool(server, enabled = () => server.c
|
|
|
152
154
|
server,
|
|
153
155
|
toolset: "dev"
|
|
154
156
|
}), {
|
|
155
|
-
content: [{ type: "text", text: await
|
|
157
|
+
content: [{ type: "text", text: await buildForkbookStoryInstructions(options, {
|
|
156
158
|
toolsets: server.ctx.custom?.toolsets,
|
|
157
159
|
a11yEnabled: server.ctx.custom?.a11yEnabled,
|
|
158
160
|
addonVitestAvailable,
|
|
@@ -165,7 +167,7 @@ async function addGetUIBuildingInstructionsTool(server, enabled = () => server.c
|
|
|
165
167
|
}
|
|
166
168
|
);
|
|
167
169
|
}
|
|
168
|
-
function
|
|
170
|
+
function getForkbookStoryInstructionsDescription({
|
|
169
171
|
testSupported,
|
|
170
172
|
a11yAvailable
|
|
171
173
|
}) {
|
|
@@ -193,14 +195,14 @@ This tool provides essential Forkbook-specific guidance including:
|
|
|
193
195
|
|
|
194
196
|
Even if you're familiar with Forkbook, call this tool to ensure you're following the correct patterns, import paths, and conventions for this specific Forkbook setup.`;
|
|
195
197
|
}
|
|
196
|
-
function
|
|
198
|
+
function getForkbookStoryInstructionsToolMetadata(options) {
|
|
197
199
|
return {
|
|
198
200
|
name: GET_UI_BUILDING_INSTRUCTIONS_TOOL_NAME,
|
|
199
201
|
title: "Forkbook Story Development Instructions",
|
|
200
|
-
description:
|
|
202
|
+
description: getForkbookStoryInstructionsDescription(options)
|
|
201
203
|
};
|
|
202
204
|
}
|
|
203
|
-
async function
|
|
205
|
+
async function buildForkbookStoryInstructions(options, {
|
|
204
206
|
toolsets,
|
|
205
207
|
a11yEnabled: a11yEnabled2,
|
|
206
208
|
addonVitestAvailable,
|
|
@@ -608,7 +610,7 @@ var docsToolDefinitions = [
|
|
|
608
610
|
toolset: "dev",
|
|
609
611
|
getMetadata: ({ availability, toolsets }) => {
|
|
610
612
|
let testSupported = isToolsetEnabled("test", toolsets) && availability.testSupported;
|
|
611
|
-
return
|
|
613
|
+
return getForkbookStoryInstructionsToolMetadata({
|
|
612
614
|
testSupported,
|
|
613
615
|
a11yAvailable: testSupported && availability.a11yEnabled
|
|
614
616
|
});
|
|
@@ -706,11 +708,21 @@ var transport, origin, initialize, disableTelemetry, a11yEnabled, initializeMCPS
|
|
|
706
708
|
localAccess,
|
|
707
709
|
compositionAuth
|
|
708
710
|
}) => {
|
|
711
|
+
let webRequest;
|
|
712
|
+
try {
|
|
713
|
+
webRequest = await incomingMessageToWebRequest(req);
|
|
714
|
+
} catch (error) {
|
|
715
|
+
if (error instanceof RequestBodyTooLargeError) {
|
|
716
|
+
sendPayloadTooLarge(res, error);
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
throw error;
|
|
720
|
+
}
|
|
709
721
|
initialize || (initialize = initializeMCPServer(
|
|
710
722
|
options,
|
|
711
723
|
sources?.some((s) => s.url)
|
|
712
724
|
)), await initialize;
|
|
713
|
-
let
|
|
725
|
+
let addonContext = {
|
|
714
726
|
options,
|
|
715
727
|
endpoint,
|
|
716
728
|
toolsets: getToolsets(webRequest, addonOptions),
|
|
@@ -739,8 +751,8 @@ function getRequestOrigin(req, trustedOrigin) {
|
|
|
739
751
|
let forwardedHost = req.headers["x-forwarded-host"], host = (Array.isArray(forwardedHost) ? forwardedHost[0] : forwardedHost)?.split(",")[0]?.trim();
|
|
740
752
|
return host && isForwardedForOrigin(req, host) ? getPublicOrigin(req) : trustedOrigin;
|
|
741
753
|
}
|
|
742
|
-
async function incomingMessageToWebRequest(req) {
|
|
743
|
-
let base = req.forkbookBasePath ?? "", url2 = new URL(`${base}${req.url || "/"}`, getPublicOrigin(req)), bodyBuffer = await
|
|
754
|
+
async function incomingMessageToWebRequest(req, maxBodyBytes = 4194304) {
|
|
755
|
+
let base = req.forkbookBasePath ?? "", url2 = new URL(`${base}${req.url || "/"}`, getPublicOrigin(req)), bodyBuffer = await readRequestBody(req, maxBodyBytes);
|
|
744
756
|
return new Request(url2, {
|
|
745
757
|
method: req.method,
|
|
746
758
|
headers: req.headers,
|
|
@@ -817,7 +829,7 @@ import {
|
|
|
817
829
|
createLocalDocsAccess,
|
|
818
830
|
getEffectiveToolAvailability as getEffectiveToolAvailability2,
|
|
819
831
|
getToolAvailability as getToolAvailability2,
|
|
820
|
-
|
|
832
|
+
isCrossSiteRequest,
|
|
821
833
|
loadManifests
|
|
822
834
|
} from "@aussieljk/forkbook/internal/core-server";
|
|
823
835
|
import { isWebContainer } from "@aussieljk/forkbook/internal/common";
|
|
@@ -1357,19 +1369,7 @@ var previewAnnotations = async (existingAnnotations = []) => [...existingAnnotat
|
|
|
1357
1369
|
allowedHosts: core?.allowedHosts,
|
|
1358
1370
|
localAddress: options.localAddress,
|
|
1359
1371
|
networkAddress: options.networkAddress
|
|
1360
|
-
}, skipOriginValidation = isWebContainer(), rejectDisallowedOrigin = (req, res) => {
|
|
1361
|
-
if (skipOriginValidation)
|
|
1362
|
-
return !1;
|
|
1363
|
-
let { origin: requestOrigin } = req.headers;
|
|
1364
|
-
if (!requestOrigin)
|
|
1365
|
-
return !1;
|
|
1366
|
-
try {
|
|
1367
|
-
if (isValidHost(new URL(requestOrigin).host, hostValidation))
|
|
1368
|
-
return !1;
|
|
1369
|
-
} catch {
|
|
1370
|
-
}
|
|
1371
|
-
return res.writeHead(403, { "Content-Type": "text/plain" }), res.end("Invalid origin"), !0;
|
|
1372
|
-
}, rejectNonJsonBody = (req, res) => req.headers["content-type"]?.split(";")[0].trim().toLowerCase() === "application/json" ? !1 : (res.writeHead(415, { "Content-Type": "text/plain" }), res.end("Unsupported Media Type: Content-Type must be application/json"), !0), { refs, compositionAuth, sources, multiSource } = await resolveCompositionSources(options), rawAvailability = await getToolAvailability2(options), localAccess = rawAvailability.docgenServer && refs.length > 0 ? createLocalDocsAccess({
|
|
1372
|
+
}, skipOriginValidation = isWebContainer(), rejectDisallowedOrigin = (req, res) => skipOriginValidation || !isCrossSiteRequest(req, hostValidation) ? !1 : (res.writeHead(403, { "Content-Type": "text/plain" }), res.end("Invalid origin"), !0), rejectNonJsonBody = (req, res) => req.headers["content-type"]?.split(";")[0].trim().toLowerCase() === "application/json" ? !1 : (res.writeHead(415, { "Content-Type": "text/plain" }), res.end("Unsupported Media Type: Content-Type must be application/json"), !0), { refs, compositionAuth, sources, multiSource } = await resolveCompositionSources(options), rawAvailability = await getToolAvailability2(options), localAccess = rawAvailability.docgenServer && refs.length > 0 ? createLocalDocsAccess({
|
|
1373
1373
|
storyIndex: { getIndex: () => getStoryIndex(options) },
|
|
1374
1374
|
getManifests: () => loadManifests(options.presets)
|
|
1375
1375
|
}) : void 0, createManifestProvider;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../_browser-chunks/chunk-IMSF75WX.js";
|
|
2
2
|
|
|
3
3
|
// src/addon-mcp/constants.ts
|
|
4
|
-
var MCP_APP_PARAM = "mcp-app", MCP_APP_SIZE_CHANGED_EVENT = "
|
|
4
|
+
var MCP_APP_PARAM = "mcp-app", MCP_APP_SIZE_CHANGED_EVENT = "forkbook-mcp:size-changed";
|
|
5
5
|
|
|
6
6
|
// src/addon-mcp/preview.ts
|
|
7
7
|
var isMcpApp = new URLSearchParams(window.location.search).has(MCP_APP_PARAM);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// src/addon-mcp/constants.ts
|
|
2
|
-
var MCP_APP_PARAM = "mcp-app", MCP_APP_SIZE_CHANGED_EVENT = "
|
|
2
|
+
var MCP_APP_PARAM = "mcp-app", MCP_APP_SIZE_CHANGED_EVENT = "forkbook-mcp:size-changed";
|
|
3
3
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "@aussieljk/forkbook",
|
|
7
|
-
version: "0.0.1-
|
|
7
|
+
version: "0.0.1-21",
|
|
8
8
|
description: "Forkbook: a small, fast fork of Storybook for React with Vite, Next.js with Vite and React Native",
|
|
9
9
|
keywords: [
|
|
10
10
|
"forkbook",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../_node-chunks/chunk-
|
|
12
|
+
import "../_node-chunks/chunk-YMJVSFJT.js";
|
|
13
13
|
|
|
14
14
|
// src/addon-themes/postinstall.ts
|
|
15
15
|
import { PackageManagerName } from "@aussieljk/forkbook/internal/common";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -35,8 +35,8 @@ import {
|
|
|
35
35
|
TRIGGER_TEST_RUN_RESPONSE,
|
|
36
36
|
TUTORIAL_VIDEO_LINK,
|
|
37
37
|
storeOptions
|
|
38
|
-
} from "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-QMYCIS2U.js";
|
|
39
|
+
import "../_node-chunks/chunk-YMJVSFJT.js";
|
|
40
40
|
export {
|
|
41
41
|
ADDON_ID as A11Y_ADDON_ID,
|
|
42
42
|
PANEL_ID2 as A11Y_PANEL_ID,
|
|
@@ -54,7 +54,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id}"]
|
|
|
54
54
|
let style = document.createElement("style");
|
|
55
55
|
style.setAttribute("data-fb-css", id), style.textContent = ".fb-NOTFvq-bar{justify-content:space-between;align-items:center;padding:6px 6px 6px 20px;display:flex}.fb-NOTFvq-actionBar{justify-content:space-between;align-items:center;display:flex}.fb-NOTFvq-title{font-size:var(--fb-size-s2);font-weight:var(--fb-weight-bold)}.fb-NOTFvq-stackTrace{white-space:pre-wrap;word-wrap:break-word;user-select:text;max-height:60vh;font-family:var(--fb-font-mono);border-top:1px solid var(--fb-app-border-color);border-radius:0;margin:0;padding:20px;font-size:12px;overflow:auto}.fb-NOTFvq-troubleshootLink{color:var(--fb-color-default-text)}", document.head.appendChild(style);
|
|
56
56
|
}
|
|
57
|
-
var GlobalErrorModal_default = { actionBar: "fb-NOTFvq-actionBar",
|
|
57
|
+
var GlobalErrorModal_default = { actionBar: "fb-NOTFvq-actionBar", stackTrace: "fb-NOTFvq-stackTrace", troubleshootLink: "fb-NOTFvq-troubleshootLink", title: "fb-NOTFvq-title", bar: "fb-NOTFvq-bar" };
|
|
58
58
|
|
|
59
59
|
// src/addon-vitest/components/GlobalErrorModal.tsx
|
|
60
60
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -258,7 +258,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id2}"
|
|
|
258
258
|
let style = document.createElement("style");
|
|
259
259
|
style.setAttribute("data-fb-css", id2), style.textContent = ".fb-eMLqba-wrapper{white-space:nowrap;text-overflow:ellipsis;font-size:var(--fb-size-s1);color:var(--fb-text-muted-color);overflow:hidden}.fb-eMLqba-positiveText{color:var(--fb-color-positive-text)}", document.head.appendChild(style);
|
|
260
260
|
}
|
|
261
|
-
var Description_default = {
|
|
261
|
+
var Description_default = { positiveText: "fb-eMLqba-positiveText", wrapper: "fb-eMLqba-wrapper" };
|
|
262
262
|
|
|
263
263
|
// src/addon-vitest/components/Description.tsx
|
|
264
264
|
import { Fragment as Fragment2, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
@@ -297,7 +297,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id3}"
|
|
|
297
297
|
let style = document.createElement("style");
|
|
298
298
|
style.setAttribute("data-fb-css", id3), style.textContent = ".fb-Aohifa-icon{--status-color:var(--fb-text-muted-color);--status-background:rgb(from var(--status-color) r g b / .4);background:var(--status-color);border-radius:50%;width:6px;height:6px;margin:4px;&[data-percentage]{background:conic-gradient(var(--status-color) var(--percentage), var(--status-background) calc(var(--percentage) + 1%));width:12px;height:12px;margin:1px}&[data-running]{animation:1.5s ease-in-out infinite fb-Aohifa-glow}&[data-status=positive]{--status-color:var(--fb-color-positive)}&[data-status=warning]{--status-color:var(--fb-color-gold)}&[data-status=negative]{--status-color:var(--fb-color-negative)}&[data-status=critical]{--status-color:var(--fb-color-default-text)}}@keyframes fb-Aohifa-glow{0%,to{opacity:1}50%{opacity:.4}}", document.head.appendChild(style);
|
|
299
299
|
}
|
|
300
|
-
var TestStatusIcon_default = {
|
|
300
|
+
var TestStatusIcon_default = { icon: "fb-Aohifa-icon", glow: "fb-Aohifa-glow" };
|
|
301
301
|
|
|
302
302
|
// src/addon-vitest/components/TestStatusIcon.tsx
|
|
303
303
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
@@ -326,7 +326,7 @@ if (typeof document < "u" && !document.querySelector(`style[data-fb-css="${id4}"
|
|
|
326
326
|
let style = document.createElement("style");
|
|
327
327
|
style.setAttribute("data-fb-css", id4), style.textContent = ".fb-wwCQYa-container{flex-direction:column;padding-bottom:1px;display:flex;&[data-in-context-menu]{padding-bottom:0}}.fb-wwCQYa-heading{justify-content:space-between;gap:12px;padding:8px 0;display:flex}.fb-wwCQYa-info{flex-direction:column;min-width:0;margin-left:8px;display:flex}.fb-wwCQYa-title{font-size:var(--fb-size-s1);color:var(--fb-color-default-text);font-weight:400;&[data-crashed]{color:var(--fb-color-negative-text);font-weight:700}}.fb-wwCQYa-actions{gap:4px;display:flex}.fb-wwCQYa-actionList{padding:0}.fb-wwCQYa-muted{color:var(--fb-text-muted-color)}.fb-wwCQYa-progress{margin:4px}.fb-wwCQYa-stopIcon{width:10px}", document.head.appendChild(style);
|
|
328
328
|
}
|
|
329
|
-
var TestProviderRender_default = {
|
|
329
|
+
var TestProviderRender_default = { info: "fb-wwCQYa-info", actionList: "fb-wwCQYa-actionList", container: "fb-wwCQYa-container", progress: "fb-wwCQYa-progress", muted: "fb-wwCQYa-muted", title: "fb-wwCQYa-title", heading: "fb-wwCQYa-heading", actions: "fb-wwCQYa-actions", stopIcon: "fb-wwCQYa-stopIcon" };
|
|
330
330
|
|
|
331
331
|
// src/addon-vitest/components/TestProviderRender.tsx
|
|
332
332
|
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_supports_color
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-D5V6CZ6U.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__require,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-YMJVSFJT.js";
|
|
20
20
|
|
|
21
21
|
// ../../node_modules/make-dir/index.js
|
|
22
22
|
var require_make_dir = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_darlhdhnaq7.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
errorToErrorLike,
|
|
14
14
|
log
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-BWZWCVVH.js";
|
|
16
16
|
import {
|
|
17
17
|
ADDON_ID2 as ADDON_ID,
|
|
18
18
|
COVERAGE_DIRECTORY,
|
|
@@ -21,24 +21,24 @@ import {
|
|
|
21
21
|
STATUS_TYPE_ID_COMPONENT_TEST,
|
|
22
22
|
STORY_INDEX_CHANNEL_EVENT_NAME,
|
|
23
23
|
storeOptions
|
|
24
|
-
} from "../../_node-chunks/chunk-
|
|
24
|
+
} from "../../_node-chunks/chunk-QMYCIS2U.js";
|
|
25
25
|
import {
|
|
26
26
|
throttle
|
|
27
|
-
} from "../../_node-chunks/chunk-
|
|
27
|
+
} from "../../_node-chunks/chunk-CXGOQNGI.js";
|
|
28
28
|
import {
|
|
29
29
|
escapeRegExp
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
31
|
-
import "../../_node-chunks/chunk-
|
|
32
|
-
import "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-6HQJJDLH.js";
|
|
31
|
+
import "../../_node-chunks/chunk-H4CRQDTK.js";
|
|
32
|
+
import "../../_node-chunks/chunk-3335ZZIO.js";
|
|
33
33
|
import {
|
|
34
34
|
any,
|
|
35
35
|
up
|
|
36
|
-
} from "../../_node-chunks/chunk-
|
|
37
|
-
import "../../_node-chunks/chunk-
|
|
36
|
+
} from "../../_node-chunks/chunk-MX5MVLEK.js";
|
|
37
|
+
import "../../_node-chunks/chunk-HCDG54OG.js";
|
|
38
38
|
import {
|
|
39
39
|
slash
|
|
40
|
-
} from "../../_node-chunks/chunk-
|
|
41
|
-
import "../../_node-chunks/chunk-
|
|
40
|
+
} from "../../_node-chunks/chunk-3H5C52QU.js";
|
|
41
|
+
import "../../_node-chunks/chunk-YMJVSFJT.js";
|
|
42
42
|
|
|
43
43
|
// src/addon-vitest/node/vitest.ts
|
|
44
44
|
import process2 from "node:process";
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
|
|
52
52
|
// src/addon-vitest/node/vitest-manager.ts
|
|
53
53
|
import { existsSync, readFileSync } from "node:fs";
|
|
54
|
-
import { getProjectRoot,
|
|
54
|
+
import { getProjectRoot, resolvePathInForkbookCache } from "@aussieljk/forkbook/internal/common";
|
|
55
55
|
import { Tag } from "@aussieljk/forkbook/internal/core-server";
|
|
56
56
|
import path, { dirname, join, normalize, resolve } from "pathe";
|
|
57
57
|
|
|
@@ -118,7 +118,7 @@ var DOUBLE_SPACES = " ", getTestName = (name) => `${name}${DOUBLE_SPACES}`, Vit
|
|
|
118
118
|
cleanOnRerun: !0,
|
|
119
119
|
reportOnFailure: !0,
|
|
120
120
|
reporter: [["html", {}], forkbookCoverageReporter],
|
|
121
|
-
reportsDirectory:
|
|
121
|
+
reportsDirectory: resolvePathInForkbookCache(COVERAGE_DIRECTORY)
|
|
122
122
|
} : { enabled: !1 }, configDir = this.testManager.storybookOptions.configDir, packageRoot = configDir ? dirname(resolve(configDir)) : void 0, configFiles = [
|
|
123
123
|
...VITEST_CONFIG_FILE_EXTENSIONS.flatMap((ext) => [
|
|
124
124
|
`vitest.config.${ext}`,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
getTemplateConfigDir,
|
|
14
14
|
isConfigAlreadySetup,
|
|
15
15
|
postInstall
|
|
16
|
-
} from "../_node-chunks/chunk-
|
|
17
|
-
import "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
19
|
-
import "../_node-chunks/chunk-
|
|
16
|
+
} from "../_node-chunks/chunk-DCTXJ4TT.js";
|
|
17
|
+
import "../_node-chunks/chunk-QMYCIS2U.js";
|
|
18
|
+
import "../_node-chunks/chunk-MX5MVLEK.js";
|
|
19
|
+
import "../_node-chunks/chunk-YMJVSFJT.js";
|
|
20
20
|
export {
|
|
21
21
|
postInstall as default,
|
|
22
22
|
getTemplateConfigDir,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_darlhdhnaq7.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
errorToErrorLike,
|
|
14
14
|
log
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-BWZWCVVH.js";
|
|
16
16
|
import {
|
|
17
17
|
ADDON_ID2 as ADDON_ID,
|
|
18
18
|
COVERAGE_DIRECTORY,
|
|
@@ -24,21 +24,21 @@ import {
|
|
|
24
24
|
TRIGGER_TEST_RUN_REQUEST,
|
|
25
25
|
TRIGGER_TEST_RUN_RESPONSE,
|
|
26
26
|
storeOptions
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-QMYCIS2U.js";
|
|
28
28
|
import {
|
|
29
29
|
isEqual
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
30
|
+
} from "../_node-chunks/chunk-XTQQGAUZ.js";
|
|
31
|
+
import "../_node-chunks/chunk-H4CRQDTK.js";
|
|
32
32
|
import {
|
|
33
33
|
importMetaResolve
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
37
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-PC57BIYZ.js";
|
|
35
|
+
import "../_node-chunks/chunk-7IAYDGYH.js";
|
|
36
|
+
import "../_node-chunks/chunk-HCDG54OG.js";
|
|
37
|
+
import "../_node-chunks/chunk-YMJVSFJT.js";
|
|
38
38
|
|
|
39
39
|
// src/addon-vitest/preset.ts
|
|
40
40
|
import { mkdir } from "node:fs/promises";
|
|
41
|
-
import {
|
|
41
|
+
import { resolvePathInForkbookCache as resolvePathInForkbookCache2 } from "@aussieljk/forkbook/internal/common";
|
|
42
42
|
import {
|
|
43
43
|
registerToolset
|
|
44
44
|
} from "@aussieljk/forkbook/internal/core-server";
|
|
@@ -223,7 +223,7 @@ var lastStoryIndex, sentStoryIndex, storyIndexRequests = 0, appliedStoryIndexReq
|
|
|
223
223
|
// src/addon-vitest/node/test-run-responder.ts
|
|
224
224
|
import {
|
|
225
225
|
createFileSystemCache,
|
|
226
|
-
|
|
226
|
+
resolvePathInForkbookCache
|
|
227
227
|
} from "@aussieljk/forkbook/internal/common";
|
|
228
228
|
import {
|
|
229
229
|
internal_UniversalStore,
|
|
@@ -233,7 +233,7 @@ var resolvePreviewBuilderName = (core) => typeof core?.builder == "string" ? cor
|
|
|
233
233
|
throw storePromise = void 0, error;
|
|
234
234
|
}), createTestRunnerStore = async ({ channel, options }) => {
|
|
235
235
|
let core = await options.presets.apply("core"), configLoader = typeof core?.builder != "string" && core?.builder?.options?.configLoader || void 0, fsCache = createFileSystemCache({
|
|
236
|
-
basePath:
|
|
236
|
+
basePath: resolvePathInForkbookCache(ADDON_ID.replace("/", "-")),
|
|
237
237
|
ns: "forkbook",
|
|
238
238
|
ttl: 336 * 60 * 60 * 1e3
|
|
239
239
|
// 14 days
|
|
@@ -926,7 +926,7 @@ var isAddonVitestEnabled = !0, services = async (_value, options) => {
|
|
|
926
926
|
}, staticDirs = async (values = [], options) => {
|
|
927
927
|
if (options.configType === "PRODUCTION")
|
|
928
928
|
return values;
|
|
929
|
-
let coverageDirectory =
|
|
929
|
+
let coverageDirectory = resolvePathInForkbookCache2(COVERAGE_DIRECTORY);
|
|
930
930
|
return await mkdir(coverageDirectory, { recursive: !0 }), [
|
|
931
931
|
{
|
|
932
932
|
from: coverageDirectory,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wrk1cj8d1xj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wrk1cj8d1xj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wrk1cj8d1xj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrk1cj8d1xj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wrk1cj8d1xj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
+
} from "../../_node-chunks/chunk-YMJVSFJT.js";
|
|
17
17
|
|
|
18
18
|
// ../../node_modules/tree-kill/index.js
|
|
19
19
|
var require_tree_kill = __commonJS({
|
|
@@ -101,7 +101,7 @@ import { spawn } from "node:child_process";
|
|
|
101
101
|
import { logger } from "@aussieljk/forkbook/internal/node-logger";
|
|
102
102
|
var forkbookProcess = null, getIsVitestStandaloneRun = () => {
|
|
103
103
|
try {
|
|
104
|
-
return (import.meta.env || process?.env).
|
|
104
|
+
return (import.meta.env || process?.env).FORKBOOK !== "true";
|
|
105
105
|
} catch {
|
|
106
106
|
return !1;
|
|
107
107
|
}
|