@farm.js/core 0.1.78 → 0.1.80
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/{agent-mcp-handler-EDJNU224.mjs → agent-mcp-handler-GDY5CPPW.mjs} +5 -5
- package/dist/{agent-mcp-handler-LNBYLRTZ.cjs → agent-mcp-handler-IUL6OPC3.cjs} +6 -6
- package/dist/{agent-mcp.d-BErtnhV2.d.ts → agent-mcp.d-BPa5n0ld.d.ts} +1 -1
- package/dist/{agent-mcp.d-CYHfcjur.d.mts → agent-mcp.d-DOP95Jxm.d.mts} +1 -1
- package/dist/agent-runtime.cjs +2 -2
- package/dist/agent-runtime.d.mts +4 -4
- package/dist/agent-runtime.d.ts +4 -4
- package/dist/agent-runtime.mjs +1 -1
- package/dist/{analyzer-M2BG6QYU.mjs → analyzer-F7CWE5VA.mjs} +2 -2
- package/dist/analyzer-I7RBBQ65.cjs +16 -0
- package/dist/api/node.cjs +6 -6
- package/dist/api/node.d.mts +6 -6
- package/dist/api/node.d.ts +6 -6
- package/dist/api/node.mjs +5 -5
- package/dist/api/route-manager.cjs +8 -8
- package/dist/api/route-manager.d.mts +6 -6
- package/dist/api/route-manager.d.ts +6 -6
- package/dist/api/route-manager.mjs +7 -7
- package/dist/api/runtime.cjs +5 -5
- package/dist/api/runtime.d.mts +5 -5
- package/dist/api/runtime.d.ts +5 -5
- package/dist/api/runtime.mjs +4 -4
- package/dist/api.cjs +10 -10
- package/dist/api.d.mts +7 -7
- package/dist/api.d.ts +7 -7
- package/dist/api.mjs +9 -9
- package/dist/{app-manifest.d-6NCkLQ1y.d.mts → app-manifest.d-9UD6BznX.d.mts} +1 -1
- package/dist/{app-manifest.d-DuqLBcmi.d.ts → app-manifest.d-CO6Iu0Hx.d.ts} +1 -1
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +5 -5
- package/dist/app-markdown.d.ts +5 -5
- package/dist/app-markdown.mjs +4 -4
- package/dist/{app.d-Dk2HkvPh.d.mts → app.d-DXeRWZK7.d.mts} +4 -4
- package/dist/{app.d-Bz6vYBFF.d.ts → app.d-DwX1ePhs.d.ts} +4 -4
- package/dist/cache.cjs +3 -3
- package/dist/cache.mjs +2 -2
- package/dist/{chunk-QYOAGT3E.cjs → chunk-2BEGVSDF.cjs} +6 -5
- package/dist/{chunk-4SLHSODZ.cjs → chunk-2FK47RRZ.cjs} +13 -13
- package/dist/{chunk-2YJ4DHTD.cjs → chunk-2NOHVIJ3.cjs} +2 -2
- package/dist/{chunk-GDM3ZD2O.cjs → chunk-2OFP3IVA.cjs} +5 -1
- package/dist/{chunk-B3IRRANH.mjs → chunk-2RRTOKRZ.mjs} +1 -1
- package/dist/{chunk-PNWRH6TR.mjs → chunk-3JQBQG7K.mjs} +4 -4
- package/dist/{chunk-H76C5AOU.mjs → chunk-3K2E55BJ.mjs} +2 -2
- package/dist/{chunk-VJ6L7TII.cjs → chunk-3SPECQXI.cjs} +31 -20
- package/dist/{chunk-R77D7TCZ.mjs → chunk-44G4XHEL.mjs} +13 -6
- package/dist/{chunk-6XDDE7M6.cjs → chunk-4H4ZXUNB.cjs} +3 -3
- package/dist/{chunk-LIC6CMLB.mjs → chunk-4MIDUSIX.mjs} +13 -13
- package/dist/{chunk-F4ID7BGO.cjs → chunk-4OFWG4IK.cjs} +7 -7
- package/dist/{chunk-VRI43FDN.mjs → chunk-4WXNTAOM.mjs} +1 -1
- package/dist/{chunk-5KISFWD2.cjs → chunk-5OAN7BG5.cjs} +12 -12
- package/dist/{chunk-DPBQRDWW.cjs → chunk-5VDJEKGK.cjs} +3 -3
- package/dist/{chunk-CYNQPKA4.cjs → chunk-5ZHC6QGD.cjs} +2 -2
- package/dist/{chunk-ALEUMLJN.mjs → chunk-67JTJCAS.mjs} +3 -2
- package/dist/{chunk-CBP7AKZH.mjs → chunk-6GJZJAED.mjs} +1 -1
- package/dist/{chunk-K3ZELA6U.cjs → chunk-7DD5TNPS.cjs} +8 -8
- package/dist/{chunk-GC5ROI3A.cjs → chunk-7U4XF76R.cjs} +1 -1
- package/dist/{chunk-62DZHPDK.cjs → chunk-7YLDUB4R.cjs} +10 -10
- package/dist/{chunk-ZEWIWAS2.mjs → chunk-A5D3UMLJ.mjs} +1 -1
- package/dist/{chunk-NNGBTJCX.cjs → chunk-ANZLZNNX.cjs} +83 -25
- package/dist/{chunk-CSAIIMY3.mjs → chunk-ATISIC6G.mjs} +1 -1
- package/dist/{chunk-ZCYGYIC2.cjs → chunk-AXA2BSX3.cjs} +2 -2
- package/dist/{chunk-BNCKXPCU.cjs → chunk-BIAGSYIZ.cjs} +30 -30
- package/dist/{chunk-X2SEYK7I.mjs → chunk-BPWTSPK6.mjs} +3 -3
- package/dist/{chunk-LMXGCFAM.cjs → chunk-CCMP4JD2.cjs} +1 -1
- package/dist/{chunk-JHZ6HULQ.cjs → chunk-CGIVCGH5.cjs} +2 -2
- package/dist/{chunk-ERT6HQAI.mjs → chunk-CNDBLUKI.mjs} +2 -2
- package/dist/{chunk-OGVOKAQU.mjs → chunk-COTFX4GT.mjs} +1 -1
- package/dist/{chunk-RK4MGL6Q.mjs → chunk-CYRO3WP4.mjs} +4 -3
- package/dist/{chunk-2G6JPLSL.cjs → chunk-DVHFIETW.cjs} +25 -18
- package/dist/{chunk-F35C3TJZ.mjs → chunk-E4E4Y5FD.mjs} +1 -1
- package/dist/{chunk-VCW6BR6U.mjs → chunk-EG5YBYHO.mjs} +2 -2
- package/dist/{chunk-2DA7CLY7.mjs → chunk-EILUVBKS.mjs} +14 -0
- package/dist/{chunk-XT2CHTDN.mjs → chunk-EY7ED5UW.mjs} +3 -3
- package/dist/{chunk-ZO6TOLHL.mjs → chunk-FS55CNTC.mjs} +1 -1
- package/dist/{chunk-DD2ANOEF.cjs → chunk-G4SZC2WH.cjs} +589 -472
- package/dist/{chunk-H5OVJHXY.cjs → chunk-GAWSWJJ2.cjs} +27 -27
- package/dist/{chunk-CKNZJFK5.cjs → chunk-GBESKA76.cjs} +3 -3
- package/dist/{chunk-EBFTAVGD.mjs → chunk-GBW5DU7V.mjs} +327 -210
- package/dist/{chunk-OVUU2RCQ.mjs → chunk-HD5FLXP2.mjs} +1 -1
- package/dist/{chunk-Q2EKSSEG.cjs → chunk-HEDGTXXB.cjs} +14 -14
- package/dist/{chunk-5QZT2EQN.cjs → chunk-HNUBRUFQ.cjs} +2 -2
- package/dist/{chunk-JA6RML7C.mjs → chunk-HR4N2K4V.mjs} +2 -2
- package/dist/{chunk-6D3CJFNU.cjs → chunk-HR5GU4UU.cjs} +7 -7
- package/dist/{chunk-SX535SU5.cjs → chunk-IJPRCQHW.cjs} +10 -10
- package/dist/{chunk-VRJAMU34.mjs → chunk-JGEN2FIT.mjs} +1 -1
- package/dist/{chunk-QES76U42.mjs → chunk-K3XKEZR6.mjs} +3 -3
- package/dist/{chunk-LPXJEZJK.mjs → chunk-KCJBIWBM.mjs} +2 -2
- package/dist/{chunk-7JTVN6IJ.mjs → chunk-KEU55O2D.mjs} +1 -1
- package/dist/{chunk-5REIO5DT.mjs → chunk-KKVRWNDH.mjs} +3 -3
- package/dist/{chunk-NSNQLBHR.cjs → chunk-KMGHXIDA.cjs} +2 -2
- package/dist/{chunk-Z2FFLTF5.mjs → chunk-LTXKRIST.mjs} +2 -2
- package/dist/{chunk-F7PKUP6P.cjs → chunk-LVGB5PYK.cjs} +27 -27
- package/dist/{chunk-7RQ5KAK6.mjs → chunk-MDEFTF63.mjs} +69 -14
- package/dist/{chunk-IWGGRXD2.cjs → chunk-MHKPXX3J.cjs} +2 -2
- package/dist/{chunk-5DREJN4G.cjs → chunk-MQOHYV6L.cjs} +15 -15
- package/dist/{chunk-BGUTIQII.mjs → chunk-MUZHULW2.mjs} +1 -1
- package/dist/{chunk-WGNGM6MJ.mjs → chunk-MZ5QGWRW.mjs} +2 -2
- package/dist/{chunk-DZZHTMWM.cjs → chunk-N3H7UPBM.cjs} +3 -2
- package/dist/{chunk-WJ4NUY2H.mjs → chunk-NJ4OASLP.mjs} +4 -4
- package/dist/{chunk-EVVV2XZ2.cjs → chunk-NW3DL2PM.cjs} +53 -7
- package/dist/{chunk-WRWJ7IWT.cjs → chunk-OLKYHTLN.cjs} +5 -5
- package/dist/{chunk-EVIWKPJV.cjs → chunk-PLJMEUAN.cjs} +15 -1
- package/dist/{chunk-EMTN5ABC.mjs → chunk-POVHO46S.mjs} +1 -1
- package/dist/{chunk-X3Y6JWJG.cjs → chunk-PWMJBCAN.cjs} +3 -3
- package/dist/{chunk-PG7J7XYT.cjs → chunk-Q4TRGTO7.cjs} +6 -6
- package/dist/{chunk-KUXEII7V.mjs → chunk-Q4YEAWUK.mjs} +1 -1
- package/dist/{chunk-IGE5BAWK.mjs → chunk-QBJ6N5MT.mjs} +53 -7
- package/dist/{chunk-PKXGFQZS.mjs → chunk-QD34VE4N.mjs} +1 -1
- package/dist/{chunk-S6RUJRWI.mjs → chunk-QHAISITM.mjs} +1 -1
- package/dist/{chunk-VJI2LWTL.cjs → chunk-RFNQTQ44.cjs} +2 -2
- package/dist/{chunk-TZ2YPXLB.cjs → chunk-RLCOWWE5.cjs} +7 -7
- package/dist/{chunk-IG2JE6WJ.mjs → chunk-RLEAVG6G.mjs} +1 -1
- package/dist/{chunk-VO5XDZHK.mjs → chunk-RPA45OQS.mjs} +2 -2
- package/dist/{chunk-A37D6LOS.mjs → chunk-RQBGHHOQ.mjs} +1 -1
- package/dist/{chunk-BZJYPIFZ.cjs → chunk-SDICLSQU.cjs} +8 -8
- package/dist/{chunk-FE6KYDHC.cjs → chunk-SHDCKRP4.cjs} +3 -3
- package/dist/{chunk-DUSTJ6A5.mjs → chunk-SLEHAGGV.mjs} +2 -2
- package/dist/{chunk-26CNCIFI.cjs → chunk-T3SMMLSB.cjs} +2 -2
- package/dist/{chunk-K6DXKHFE.mjs → chunk-TE7AX6HB.mjs} +1 -1
- package/dist/{chunk-LJKTJNOF.cjs → chunk-TS3ZHJN5.cjs} +3 -3
- package/dist/{chunk-KHS3T3E5.mjs → chunk-TYHWZOA2.mjs} +1 -1
- package/dist/{chunk-Z3QXQN4U.mjs → chunk-U6GMCDRS.mjs} +1 -1
- package/dist/{chunk-URQW27KO.mjs → chunk-UBLKPREL.mjs} +1 -1
- package/dist/{chunk-DD22NQFX.cjs → chunk-UGLTOLTJ.cjs} +2 -2
- package/dist/{chunk-PE2LEWXA.mjs → chunk-UJPE75GF.mjs} +1 -1
- package/dist/{chunk-6ZFGWB75.cjs → chunk-UWOCYINY.cjs} +4 -4
- package/dist/{chunk-E7V2GYBP.mjs → chunk-V73Y4UBL.mjs} +67 -9
- package/dist/{chunk-G7B6NU4X.cjs → chunk-VFMHE5D3.cjs} +3 -3
- package/dist/{chunk-IXO6O2EL.cjs → chunk-VGVRGGP4.cjs} +2 -2
- package/dist/{chunk-YRXPDKMM.cjs → chunk-W53Z4WDI.cjs} +8 -8
- package/dist/{chunk-47R7CX4A.mjs → chunk-WBPVLCNE.mjs} +1 -1
- package/dist/{chunk-4VLXQ55O.cjs → chunk-WIZRYFB2.cjs} +3 -3
- package/dist/{chunk-NB2ZEBIS.cjs → chunk-WJ2O2MPP.cjs} +287 -288
- package/dist/{chunk-HVMQAVZK.cjs → chunk-X4TSMQWF.cjs} +333 -303
- package/dist/{chunk-DASQJ5UD.mjs → chunk-XF7MJSUS.mjs} +1 -1
- package/dist/{chunk-S7QEQCVV.mjs → chunk-XGL42MQ7.mjs} +1 -1
- package/dist/{chunk-YN7G22MP.cjs → chunk-XKUKWMGX.cjs} +3 -3
- package/dist/{chunk-FOULIN4S.cjs → chunk-XY5OZQF6.cjs} +2 -2
- package/dist/{chunk-RIMEFQYO.mjs → chunk-XZBBKZGW.mjs} +73 -74
- package/dist/{chunk-ZJGFAW5U.mjs → chunk-YHHOTKUT.mjs} +5 -1
- package/dist/{chunk-A7EJATEW.mjs → chunk-YN3YMSKD.mjs} +3 -3
- package/dist/{chunk-PDACTAVX.mjs → chunk-YOVSWY2E.mjs} +1 -1
- package/dist/{chunk-R5X7FDOG.mjs → chunk-YU2MNIIY.mjs} +1 -1
- package/dist/{chunk-42EUEYW6.cjs → chunk-YUQUGVSV.cjs} +8 -8
- package/dist/{chunk-KZ5BOWJS.cjs → chunk-Z4SMFUZ7.cjs} +28 -28
- package/dist/{chunk-MBD34AS5.cjs → chunk-Z5BANEQD.cjs} +6 -6
- package/dist/{chunk-AHGOHPRN.mjs → chunk-ZDYYZX73.mjs} +60 -30
- package/dist/{chunk-4PWGLPL6.mjs → chunk-ZIEO3DQ3.mjs} +26 -15
- package/dist/{chunk-XGS76V7L.cjs → chunk-ZPEZXQTM.cjs} +22 -22
- package/dist/{chunk-ODYKCC6W.cjs → chunk-ZVSQN7NC.cjs} +135 -80
- package/dist/{cli-runtime.d-BG9q2_vC.d.ts → cli-runtime.d-8BhZy_wr.d.ts} +7 -6
- package/dist/{cli-runtime.d-CGMGs1Zz.d.mts → cli-runtime.d-DPNTN-JV.d.mts} +7 -6
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-component.d-CdsG1E7p.d.mts → client-component.d-CMCdyAr8.d.mts} +1 -1
- package/dist/{client-component.d-B84GPb_u.d.ts → client-component.d-CkDcob6D.d.ts} +1 -1
- package/dist/{client-plugins.d-FptsHgls.d.ts → client-plugins.d-BYIovYqX.d.ts} +4 -4
- package/dist/{client-plugins.d-DX-iCJWE.d.mts → client-plugins.d-WcMwOZGZ.d.mts} +4 -4
- package/dist/client-plugins.d.mts +4 -4
- package/dist/client-plugins.d.ts +4 -4
- package/dist/client.cjs +3 -3
- package/dist/client.d.mts +9 -9
- package/dist/client.d.ts +9 -9
- package/dist/client.mjs +2 -2
- package/dist/config.d.mts +4 -4
- package/dist/config.d.ts +4 -4
- package/dist/cron.cjs +3 -3
- package/dist/cron.mjs +2 -2
- package/dist/desktop.d.mts +5 -5
- package/dist/desktop.d.ts +5 -5
- package/dist/{devtools-7P3OUNLV.mjs → devtools-F3FDFV26.mjs} +10 -10
- package/dist/{devtools-TMATFNUY.cjs → devtools-JJOYTIMS.cjs} +12 -12
- package/dist/docs.cjs +14 -14
- package/dist/docs.d.mts +6 -6
- package/dist/docs.d.ts +6 -6
- package/dist/docs.mjs +13 -13
- package/dist/environment/vite.cjs +5 -5
- package/dist/environment/vite.d.mts +9 -0
- package/dist/environment/vite.d.ts +9 -0
- package/dist/environment/vite.mjs +4 -4
- package/dist/{handler.d-Cy3XbY_W.d.ts → handler.d-BwdOyc9x.d.ts} +1 -1
- package/dist/{handler.d-DSwLTpa5.d.mts → handler.d-s3IM6pbJ.d.mts} +1 -1
- package/dist/{headers.d-DiL9YTH3.d.mts → headers.d-BR-OXrqQ.d.mts} +1 -1
- package/dist/{headers.d-Qbjo38a0.d.ts → headers.d-CAW4wPey.d.ts} +1 -1
- package/dist/index.cjs +65 -59
- package/dist/{index.d-CqQKX3s6.d.mts → index.d-BEVK61zS.d.mts} +1 -1
- package/dist/{index.d-OccJoC6I.d.ts → index.d-ah2c89Wu.d.ts} +1 -1
- package/dist/index.d.mts +25 -25
- package/dist/index.d.ts +25 -25
- package/dist/index.mjs +67 -61
- package/dist/integrations/orm.cjs +3 -3
- package/dist/integrations/orm.d.mts +4 -4
- package/dist/integrations/orm.d.ts +4 -4
- package/dist/integrations/orm.mjs +2 -2
- package/dist/integrations.cjs +2 -2
- package/dist/integrations.d.mts +4 -4
- package/dist/integrations.d.ts +4 -4
- package/dist/integrations.mjs +1 -1
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +5 -5
- package/dist/internal/app-markdown-runtime.d.ts +5 -5
- package/dist/internal/app-markdown-runtime.mjs +3 -3
- package/dist/internal/build-runtime.cjs +47 -47
- package/dist/internal/build-runtime.d.mts +7 -7
- package/dist/internal/build-runtime.d.ts +7 -7
- package/dist/internal/build-runtime.mjs +46 -46
- package/dist/internal/cli-runtime.cjs +29 -26
- package/dist/internal/cli-runtime.d.mts +11 -11
- package/dist/internal/cli-runtime.d.ts +11 -11
- package/dist/internal/cli-runtime.mjs +28 -25
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +48 -11
- package/dist/internal/client-runtime.d.mts +17 -21
- package/dist/internal/client-runtime.d.ts +17 -21
- package/dist/internal/client-runtime.mjs +37 -0
- package/dist/internal/compression-runtime.d.mts +4 -4
- package/dist/internal/compression-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.cjs +12 -12
- package/dist/internal/config-runtime.d.mts +6 -6
- package/dist/internal/config-runtime.d.ts +6 -6
- package/dist/internal/config-runtime.mjs +11 -11
- package/dist/internal/infra-analytics-runtime.cjs +10 -10
- package/dist/internal/infra-analytics-runtime.mjs +8 -8
- package/dist/internal/islands-boot.cjs +33 -5
- package/dist/internal/islands-boot.d.mts +19 -1
- package/dist/internal/islands-boot.d.ts +19 -1
- package/dist/internal/islands-boot.mjs +32 -4
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +26 -26
- package/dist/internal/production-runtime.d.mts +14 -13
- package/dist/internal/production-runtime.d.ts +14 -13
- package/dist/internal/production-runtime.mjs +27 -27
- package/dist/internal/spa-router.cjs +44 -0
- package/dist/internal/spa-router.d.mts +41 -0
- package/dist/internal/spa-router.d.ts +41 -0
- package/dist/internal/spa-router.mjs +44 -0
- package/dist/internal/start-manifest.d.mts +4 -4
- package/dist/internal/start-manifest.d.ts +4 -4
- package/dist/internal/vercel-edge-middleware.cjs +3 -3
- package/dist/internal/vercel-edge-middleware.mjs +2 -2
- package/dist/{lifecycle.d-VzcXyEyn.d.ts → lifecycle.d-OtGWAvJT.d.mts} +1 -1
- package/dist/{lifecycle.d-VzcXyEyn.d.mts → lifecycle.d-OtGWAvJT.d.ts} +1 -1
- package/dist/markdown.cjs +3 -3
- package/dist/markdown.d.mts +4 -4
- package/dist/markdown.d.ts +4 -4
- package/dist/markdown.mjs +2 -2
- package/dist/middleware.cjs +8 -8
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +7 -7
- package/dist/{mount.d-CPzqOm-a.d.ts → mount.d-DcoPFqv5.d.ts} +1 -1
- package/dist/{mount.d-AcJaUtHF.d.mts → mount.d-Ylo-CmzK.d.mts} +1 -1
- package/dist/{native-server-fn-handler-WYYY4YBN.mjs → native-server-fn-handler-OXFTI6V5.mjs} +4 -4
- package/dist/{native-server-fn-handler-XRTZR7SZ.cjs → native-server-fn-handler-TNVFEQW3.cjs} +5 -5
- package/dist/{native-tree-MNUFN5G6.cjs → native-tree-5TENEQ7Y.cjs} +4 -4
- package/dist/{native-tree-JDI3LJSH.mjs → native-tree-LNO7K6JR.mjs} +3 -3
- package/dist/{navigation-delegate.d-_Df9DnPY.d.ts → navigation-delegate.d-2MK4YSlL.d.ts} +1 -1
- package/dist/{navigation-delegate.d-C4i5Y39E.d.mts → navigation-delegate.d-BA5h0fbE.d.mts} +1 -1
- package/dist/navigation.cjs +4 -4
- package/dist/navigation.d.mts +7 -7
- package/dist/navigation.d.ts +7 -7
- package/dist/navigation.mjs +3 -3
- package/dist/{nitro-NUCTYEKJ.cjs → nitro-6UOJXJZ6.cjs} +7 -7
- package/dist/{nitro-VCJ6QQSI.mjs → nitro-C3MYDX7V.mjs} +3 -3
- package/dist/observability.cjs +8 -2
- package/dist/{observability.d-DdJRiaIX.d.mts → observability.d-mXSbp4jc.d.mts} +17 -1
- package/dist/{observability.d-DdJRiaIX.d.ts → observability.d-mXSbp4jc.d.ts} +17 -1
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/observability.mjs +7 -1
- package/dist/{plugin-TV6W7YNK.mjs → plugin-33I3V42N.mjs} +1 -1
- package/dist/{plugin-AGEFSU7K.cjs → plugin-LN3JBZRR.cjs} +2 -2
- package/dist/plugin.cjs +37 -37
- package/dist/plugin.d.mts +8 -8
- package/dist/plugin.d.ts +8 -8
- package/dist/plugin.mjs +36 -36
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +1 -1
- package/dist/{render-plan.d-CslZE7o7.d.ts → render-plan.d-2o-AG-ot.d.ts} +1 -1
- package/dist/{render-plan.d-4V_NmaA6.d.mts → render-plan.d-ChYBMhLu.d.mts} +1 -1
- package/dist/renderer-client.cjs +4 -4
- package/dist/renderer-client.d.mts +7 -7
- package/dist/renderer-client.d.ts +7 -7
- package/dist/renderer-client.mjs +1 -1
- package/dist/renderer.d.mts +16 -1
- package/dist/renderer.d.ts +16 -1
- package/dist/{request.d-CbV3y7j3.d.ts → request.d-CE0FIkiM.d.ts} +1 -1
- package/dist/{request.d-CmLTxEgS.d.mts → request.d-RCnCBuWq.d.mts} +1 -1
- package/dist/request.d.mts +5 -5
- package/dist/request.d.ts +5 -5
- package/dist/{route-rendering.d-CETnXNez.d.ts → route-rendering.d-BTPOM2nU.d.ts} +1 -1
- package/dist/{route-rendering.d-CmoqfOmj.d.mts → route-rendering.d-BZJnfKsp.d.mts} +1 -1
- package/dist/{router.d-Dga3N5YO.d.ts → router.d-BU_WE6Ol.d.ts} +1 -1
- package/dist/{router.d-ktz7pwYm.d.mts → router.d-D8Vvwl4i.d.mts} +1 -1
- package/dist/routes.cjs +4 -4
- package/dist/routes.d.mts +4 -4
- package/dist/routes.d.ts +4 -4
- package/dist/routes.mjs +3 -3
- package/dist/{rsc-pipeline-JLYD26AR.cjs → rsc-pipeline-A3R4U26C.cjs} +15 -15
- package/dist/{rsc-pipeline-N7CWJW7T.mjs → rsc-pipeline-JZWVSHOR.mjs} +14 -14
- package/dist/{runtime-QXX2A4TS.mjs → runtime-SQFRHRGJ.mjs} +18 -18
- package/dist/{runtime-F5NSS4DD.cjs → runtime-WZ3CHHGJ.cjs} +26 -26
- package/dist/{runtime.d-DuaXEM0p.d.mts → runtime.d-BnmuOXVD.d.mts} +1 -1
- package/dist/{runtime.d-BWLZUOfA.d.ts → runtime.d-DJ6IIKcF.d.ts} +1 -1
- package/dist/{schema-dev-notice-2GN5V7Y2.mjs → schema-dev-notice-EUPAUJVN.mjs} +2 -2
- package/dist/{schema-dev-notice-6VCOZGG2.cjs → schema-dev-notice-ZSCL47CT.cjs} +5 -5
- package/dist/search-client-A7YJT7JZ.cjs +15 -0
- package/dist/{search-client-W4PEFAQB.mjs → search-client-GIXIEU75.mjs} +1 -1
- package/dist/{server-components-status.d-C5JpC7_Y.d.ts → server-components-status.d-BeqSXcjM.d.ts} +1 -1
- package/dist/{server-components-status.d-CqxtJmqP.d.mts → server-components-status.d-BzOg9M8g.d.mts} +1 -1
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.d.mts +6 -6
- package/dist/server-plugins.d.ts +6 -6
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +73 -73
- package/dist/server.d.mts +15 -15
- package/dist/server.d.ts +15 -15
- package/dist/server.mjs +47 -47
- package/dist/{session-AK2OA5UZ.mjs → session-4IB34X35.mjs} +2 -2
- package/dist/session-MOYQJ7E6.cjs +24 -0
- package/dist/{spa-router.d-C3LzwTlY.d.ts → spa-router.d-BOwuVkMl.d.ts} +20 -4
- package/dist/{spa-router.d-BLE188EL.d.mts → spa-router.d-CDpftSsk.d.mts} +20 -4
- package/dist/{ssg.d-DisOfj0I.d.ts → ssg.d-BTVqyq8T.d.ts} +2 -2
- package/dist/{ssg.d-QrFyU6T4.d.mts → ssg.d-Bx_WFuwg.d.mts} +2 -2
- package/dist/storage.cjs +2 -2
- package/dist/storage.d.mts +112 -96
- package/dist/storage.d.ts +112 -96
- package/dist/storage.mjs +1 -1
- package/dist/testing.cjs +11 -11
- package/dist/testing.d.mts +4 -4
- package/dist/testing.d.ts +4 -4
- package/dist/testing.mjs +8 -8
- package/dist/{types.d-DW2vyaUq.d.mts → types.d-C5hlNbHa.d.mts} +8 -1
- package/dist/{types.d-DW2vyaUq.d.ts → types.d-C5hlNbHa.d.ts} +8 -1
- package/dist/{utils.d-BlWZFgdL.d.mts → utils.d-JkrpS-NJ.d.mts} +1 -1
- package/dist/{utils.d-7YcgfTCK.d.ts → utils.d-_dvevm5s.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +39 -37
- package/dist/vite.d.mts +15 -10
- package/dist/vite.d.ts +15 -10
- package/dist/vite.mjs +38 -36
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +7 -1
- package/types/images.d.ts +9 -0
- package/dist/analyzer-KVTUYGTT.cjs +0 -16
- package/dist/search-client-6NVC6HM2.cjs +0 -15
- package/dist/session-H4TWP73H.cjs +0 -24
- package/dist/{chunk-GFXKO4UW.mjs → chunk-3XTRT3MB.mjs} +48 -48
- package/dist/{chunk-JKFN3YVG.mjs → chunk-6JWXHPVR.mjs} +0 -0
- package/dist/{chunk-522K362I.mjs → chunk-C2OLXVUC.mjs} +0 -0
- package/dist/{chunk-MALGIHIC.cjs → chunk-HS4JPIGR.cjs} +0 -0
- package/dist/{chunk-CUZT7474.cjs → chunk-TCMRLW3K.cjs} +0 -0
- package/dist/{chunk-Q3DO7MVK.mjs → chunk-URBP6DLH.mjs} +0 -0
- package/dist/{chunk-AOTD2N5P.cjs → chunk-WGWWRV2M.cjs} +0 -0
- package/dist/{chunk-L7Y65BQU.cjs → chunk-WHEQJN4G.cjs} +48 -48
|
@@ -126,6 +126,7 @@ function renderSqlTable(model, dialect, modelLookup) {
|
|
|
126
126
|
const tableName = quoteSqlIdentifier(dialect, model.modelName);
|
|
127
127
|
const lines = [`CREATE TABLE IF NOT EXISTS ${tableName} (`];
|
|
128
128
|
const columns = [];
|
|
129
|
+
const foreignKeys = [];
|
|
129
130
|
const internalReferences = createInternalReferenceLookup(model, dialect, modelLookup);
|
|
130
131
|
for (const [fieldKey, field] of Object.entries(model.model.fields)) {
|
|
131
132
|
_chunkSHD265HWcjs.assertNoSchemaListField.call(void 0,
|
|
@@ -151,7 +152,9 @@ function renderSqlTable(model, dialect, modelLookup) {
|
|
|
151
152
|
}
|
|
152
153
|
const crossOwner = _optionalChain([model, 'access', _10 => _10.foreignKeys, 'optionalAccess', _11 => _11[fieldKey]]);
|
|
153
154
|
const reference = _nullishCoalesce(internalReferences.get(fieldKey), () => ( (crossOwner ? `REFERENCES ${quoteSqlIdentifier(dialect, crossOwner.table)} (${quoteSqlIdentifier(dialect, crossOwner.column)})${crossOwner.onDelete !== "noAction" ? ` ON DELETE ${SQL_ON_DELETE_ACTIONS[crossOwner.onDelete]}` : ""}` : void 0)));
|
|
154
|
-
if (reference) {
|
|
155
|
+
if (reference && dialect === "mysql") {
|
|
156
|
+
foreignKeys.push(` FOREIGN KEY (${quoteSqlIdentifier(dialect, field.name)}) ${reference}`);
|
|
157
|
+
} else if (reference) {
|
|
155
158
|
parts.push(reference);
|
|
156
159
|
} else if (field.reference) {
|
|
157
160
|
parts.push(
|
|
@@ -166,6 +169,7 @@ function renderSqlTable(model, dialect, modelLookup) {
|
|
|
166
169
|
` ${definition.unique ? "UNIQUE KEY" : "KEY"} ${quoteSqlIdentifier(dialect, definition.name)} (${definition.columns.join(", ")})`
|
|
167
170
|
);
|
|
168
171
|
}
|
|
172
|
+
columns.push(...foreignKeys);
|
|
169
173
|
}
|
|
170
174
|
lines.push(columns.join(",\n"));
|
|
171
175
|
lines.push(");");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FARM_DEFAULT_MCP_PATH,
|
|
3
3
|
FARM_DEFAULT_MCP_TOOLS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HR4N2K4V.mjs";
|
|
5
5
|
import {
|
|
6
6
|
normalizeFarmProductionSiteOrigin
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RQBGHHOQ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveFarmAppManifestConfig
|
|
10
10
|
} from "./chunk-SQ5O7I3L.mjs";
|
|
11
11
|
import {
|
|
12
12
|
emitFarmAgentRead,
|
|
13
13
|
getFarmMarkdownMirrorPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YU2MNIIY.mjs";
|
|
15
15
|
import {
|
|
16
16
|
readFarmEnvironmentValue
|
|
17
17
|
} from "./chunk-WXFY5JIY.mjs";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-YT2ZMLXK.mjs";
|
|
30
30
|
import {
|
|
31
31
|
FARM_VERSION
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-JGEN2FIT.mjs";
|
|
33
33
|
import {
|
|
34
34
|
applyFarmBasePath
|
|
35
35
|
} from "./chunk-SF3JB56B.mjs";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-XAXTTBUT.mjs";
|
|
4
4
|
import {
|
|
5
5
|
serializeFarmLlmsTxt
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XGL42MQ7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
stampFarmCspNonce
|
|
9
9
|
} from "./chunk-22W4FNTG.mjs";
|
|
10
10
|
import {
|
|
11
11
|
emitFarmAgentRead
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YU2MNIIY.mjs";
|
|
13
13
|
import {
|
|
14
14
|
resolveFarmThemeConfig
|
|
15
15
|
} from "./chunk-YWPNIYUP.mjs";
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
var _chunkRKQOMG2Xcjs = require('./chunk-RKQOMG2X.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
var _chunkPLJMEUANcjs = require('./chunk-PLJMEUAN.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
@@ -81,20 +82,21 @@ async function _readFarmRegisteredMCPCalls(request, basePath) {
|
|
|
81
82
|
if (!isObject(message) || message.method !== "tools/call" || !isRequestId(message.id)) {
|
|
82
83
|
return [];
|
|
83
84
|
}
|
|
84
|
-
const
|
|
85
|
-
|
|
85
|
+
const params = isObject(message.params) ? message.params : void 0;
|
|
86
|
+
const tool = _optionalChain([params, 'optionalAccess', _15 => _15.name]);
|
|
87
|
+
return typeof tool === "string" && TOOL_NAME.test(tool) ? [{ id: message.id, tool, arguments: _optionalChain([params, 'optionalAccess', _16 => _16.arguments]) }] : [];
|
|
86
88
|
});
|
|
87
89
|
return calls.length ? { server, calls, startedAt } : void 0;
|
|
88
90
|
}
|
|
89
91
|
function _observeFarmRegisteredMCPResponse(response, observed, waitUntil) {
|
|
90
92
|
if (!observed || !response.ok || !response.body) return response;
|
|
91
93
|
const eventStream = isEventStream(response);
|
|
92
|
-
if (!eventStream && !_optionalChain([response, 'access',
|
|
94
|
+
if (!eventStream && !_optionalChain([response, 'access', _17 => _17.headers, 'access', _18 => _18.get, 'call', _19 => _19("content-type"), 'optionalAccess', _20 => _20.toLowerCase, 'call', _21 => _21(), 'access', _22 => _22.includes, 'call', _23 => _23("json")])) {
|
|
93
95
|
return response;
|
|
94
96
|
}
|
|
95
97
|
const [sent, read] = response.body.tee();
|
|
96
98
|
const done = reportOutcomes(read, eventStream, observed);
|
|
97
|
-
_optionalChain([waitUntil, 'optionalCall',
|
|
99
|
+
_optionalChain([waitUntil, 'optionalCall', _24 => _24(done)]);
|
|
98
100
|
return new Response(sent, {
|
|
99
101
|
status: response.status,
|
|
100
102
|
statusText: response.statusText,
|
|
@@ -102,22 +104,31 @@ function _observeFarmRegisteredMCPResponse(response, observed, waitUntil) {
|
|
|
102
104
|
});
|
|
103
105
|
}
|
|
104
106
|
async function reportOutcomes(body, eventStream, { server, calls, startedAt }) {
|
|
105
|
-
const pending = new Map(calls.map((call) => [call.id, call
|
|
107
|
+
const pending = new Map(calls.map((call) => [call.id, call]));
|
|
106
108
|
const answer = (message) => {
|
|
107
109
|
if (!isObject(message) || !isRequestId(message.id) || !isObject(message.result)) return;
|
|
108
|
-
const
|
|
109
|
-
if (
|
|
110
|
+
const call = pending.get(message.id);
|
|
111
|
+
if (call === void 0) return;
|
|
110
112
|
pending.delete(message.id);
|
|
111
113
|
const outcome = message.result.isError === true ? "error" : "success";
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
114
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0,
|
|
115
|
+
// Only Farm Infra analytics reads the arguments and result, never logs or traces.
|
|
116
|
+
_chunkPLJMEUANcjs._withFarmToolCallPayload.call(void 0,
|
|
117
|
+
{
|
|
118
|
+
type: "mcp.tool.complete",
|
|
119
|
+
level: outcome === "error" ? "error" : "info",
|
|
120
|
+
route: server.path,
|
|
121
|
+
server: server.name,
|
|
122
|
+
tool: call.tool,
|
|
123
|
+
outcome,
|
|
124
|
+
durationMs: Math.max(0, performance.now() - startedAt)
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
...call.arguments === void 0 ? {} : { arguments: call.arguments },
|
|
128
|
+
result: message.result
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
);
|
|
121
132
|
};
|
|
122
133
|
const reader = body.getReader();
|
|
123
134
|
const decoder = new TextDecoder();
|
|
@@ -199,12 +210,12 @@ async function listTools(handle, url, signal) {
|
|
|
199
210
|
);
|
|
200
211
|
if (!response) return void 0;
|
|
201
212
|
if (response.status === 401 || response.status === 403) {
|
|
202
|
-
await _optionalChain([response, 'access',
|
|
213
|
+
await _optionalChain([response, 'access', _25 => _25.body, 'optionalAccess', _26 => _26.cancel, 'call', _27 => _27(), 'access', _28 => _28.catch, 'call', _29 => _29(() => {
|
|
203
214
|
})]);
|
|
204
215
|
return page === 0 ? { authorization: "required" } : void 0;
|
|
205
216
|
}
|
|
206
217
|
if (!response.ok || !response.body) {
|
|
207
|
-
await _optionalChain([response, 'access',
|
|
218
|
+
await _optionalChain([response, 'access', _30 => _30.body, 'optionalAccess', _31 => _31.cancel, 'call', _32 => _32(), 'access', _33 => _33.catch, 'call', _34 => _34(() => {
|
|
208
219
|
})]);
|
|
209
220
|
return void 0;
|
|
210
221
|
}
|
|
@@ -231,7 +242,7 @@ async function _listFarmRegisteredMCPServerTools(handle, request, options) {
|
|
|
231
242
|
);
|
|
232
243
|
const listings = await Promise.all(
|
|
233
244
|
servers.map((server) => {
|
|
234
|
-
if (_optionalChain([options, 'access',
|
|
245
|
+
if (_optionalChain([options, 'access', _35 => _35.guardCoversPath, 'optionalCall', _36 => _36(server.path)])) {
|
|
235
246
|
return Promise.resolve({ authorization: "required" });
|
|
236
247
|
}
|
|
237
248
|
const cached = options.cache ? LISTINGS.get(server) : void 0;
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
formatFarmRscBlockingMessage,
|
|
5
5
|
inspectFarmServerComponents,
|
|
6
6
|
resolveFarmRscCheckConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-A5D3UMLJ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
createFarmDevLoopbackPlugin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RLEAVG6G.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveDeployOutputPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4MIDUSIX.mjs";
|
|
14
14
|
import {
|
|
15
15
|
farmDesktopDevGuardPlugin,
|
|
16
16
|
loadFarmReactPlugin
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
generateFarmClientPluginEntryCode,
|
|
20
20
|
hasFarmServerRuntimePlugins,
|
|
21
21
|
loadTailwindVitePlugin
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RPA45OQS.mjs";
|
|
23
23
|
import {
|
|
24
24
|
resolveFarmPlatform
|
|
25
25
|
} from "./chunk-SMUW7UST.mjs";
|
|
@@ -49,7 +49,14 @@ var FARM_RSC_CONFIG_KEYS = [
|
|
|
49
49
|
"agent",
|
|
50
50
|
"mcp"
|
|
51
51
|
];
|
|
52
|
-
var FARM_RSC_PASSTHROUGH_KEYS = [
|
|
52
|
+
var FARM_RSC_PASSTHROUGH_KEYS = [
|
|
53
|
+
"i18n",
|
|
54
|
+
"cache",
|
|
55
|
+
"redirects",
|
|
56
|
+
"rewrites",
|
|
57
|
+
"headers",
|
|
58
|
+
"compress"
|
|
59
|
+
];
|
|
53
60
|
function pickImportTarget(entry) {
|
|
54
61
|
if (typeof entry === "string") return entry;
|
|
55
62
|
if (!entry || typeof entry !== "object") return void 0;
|
|
@@ -210,7 +217,7 @@ async function resolveFarmRscServerPlugins(userConfig, config, root) {
|
|
|
210
217
|
}
|
|
211
218
|
async function configureFarmRscPlugins(config, command) {
|
|
212
219
|
if (config.plugins.length === 0) return config;
|
|
213
|
-
const { PluginManager } = await import("./plugin-
|
|
220
|
+
const { PluginManager } = await import("./plugin-33I3V42N.mjs");
|
|
214
221
|
const manager = new PluginManager({
|
|
215
222
|
config,
|
|
216
223
|
isDev: command === "serve",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk2FK47RRZcjs = require('./chunk-2FK47RRZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk5DX3O6TTcjs = require('./chunk-5DX3O6TT.cjs');
|
|
@@ -142,7 +142,7 @@ function getCountedRateLimitKeys(ctx) {
|
|
|
142
142
|
return counted;
|
|
143
143
|
}
|
|
144
144
|
function requireRateLimitClientAddress(ctx) {
|
|
145
|
-
const address =
|
|
145
|
+
const address = _chunk2FK47RRZcjs.getFarmMiddlewareClientAddress.call(void 0, ctx.request);
|
|
146
146
|
if (address) return address;
|
|
147
147
|
throw new Error(
|
|
148
148
|
"Rate limiting could not identify the caller: this runtime reports no client address. Set `server.trustProxy` so a proxy's x-forwarded-for is trusted, or pass a `keyGenerator` that derives the bucket from something you do have, such as a session or an API key."
|
|
@@ -413,7 +413,7 @@ function farmMiddlewarePlugin(options = {}) {
|
|
|
413
413
|
mode: server.config.mode === "production" ? "production" : "development",
|
|
414
414
|
basePath: _nullishCoalesce(options.basePath, () => ( "/"))
|
|
415
415
|
});
|
|
416
|
-
manager = new (0,
|
|
416
|
+
manager = new (0, _chunk2FK47RRZcjs.MiddlewareManager)(
|
|
417
417
|
getMiddlewareAppDirectory(server.config.root, srcDir),
|
|
418
418
|
server,
|
|
419
419
|
options.middleware,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
resolveFarmAgentSitemap,
|
|
20
20
|
resolveFarmNoindexPreviews,
|
|
21
21
|
resolveFarmPerformanceConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SLEHAGGV.mjs";
|
|
23
23
|
import {
|
|
24
24
|
resolveFarmAppManifestConfig
|
|
25
25
|
} from "./chunk-SQ5O7I3L.mjs";
|
|
26
26
|
import {
|
|
27
27
|
resolveFarmLlmsTxtConfig
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XGL42MQ7.mjs";
|
|
29
29
|
import {
|
|
30
30
|
farmCspBlocksFrameworkInlineScripts,
|
|
31
31
|
getFarmSecurityHeader,
|
|
@@ -35,15 +35,15 @@ import {
|
|
|
35
35
|
resolveFarmServerComponentsMode,
|
|
36
36
|
setFarmProjectSourceDir
|
|
37
37
|
} from "./chunk-4QENVMG7.mjs";
|
|
38
|
-
import {
|
|
39
|
-
loadFarmConfigFile,
|
|
40
|
-
resolveFarmLayers
|
|
41
|
-
} from "./chunk-4STJ6LGR.mjs";
|
|
42
38
|
import {
|
|
43
39
|
isFarmRendererDisabled,
|
|
44
40
|
isReactRenderer,
|
|
45
41
|
resolveFarmRenderer
|
|
46
42
|
} from "./chunk-GCRT6GJG.mjs";
|
|
43
|
+
import {
|
|
44
|
+
loadFarmConfigFile,
|
|
45
|
+
resolveFarmLayers
|
|
46
|
+
} from "./chunk-4STJ6LGR.mjs";
|
|
47
47
|
import {
|
|
48
48
|
resolveFarmImageConfig
|
|
49
49
|
} from "./chunk-AOIUYHPH.mjs";
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
FARM_CRON_NAME_SEGMENT_PATTERN,
|
|
52
52
|
normalizeCronExpression,
|
|
53
53
|
resolveCronConfig
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-ATISIC6G.mjs";
|
|
55
55
|
import {
|
|
56
56
|
resolveServerActionsConfig
|
|
57
57
|
} from "./chunk-NLATR3T3.mjs";
|
|
@@ -64,19 +64,19 @@ import {
|
|
|
64
64
|
} from "./chunk-UIJOLBUL.mjs";
|
|
65
65
|
import {
|
|
66
66
|
resolveMarkdownConfig
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-YU2MNIIY.mjs";
|
|
68
68
|
import {
|
|
69
69
|
bundleNodeModule
|
|
70
70
|
} from "./chunk-MGKWYPE3.mjs";
|
|
71
71
|
import {
|
|
72
72
|
resolveWorkflowsConfig
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-COTFX4GT.mjs";
|
|
74
74
|
import {
|
|
75
75
|
resolveFarmThemeConfig
|
|
76
76
|
} from "./chunk-YWPNIYUP.mjs";
|
|
77
77
|
import {
|
|
78
78
|
resolveIntegrationPlugins
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-6JWXHPVR.mjs";
|
|
80
80
|
import {
|
|
81
81
|
compileMiddlewareConfig
|
|
82
82
|
} from "./chunk-EDPENAVO.mjs";
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
} from "./chunk-VJSXPN3W.mjs";
|
|
86
86
|
import {
|
|
87
87
|
logger
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-U6GMCDRS.mjs";
|
|
89
89
|
import {
|
|
90
90
|
resolveFarmServerConfig
|
|
91
91
|
} from "./chunk-YT2ZMLXK.mjs";
|
|
@@ -1120,12 +1120,12 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1120
1120
|
userConfig.deploymentId || process.env.FARM_DEPLOYMENT_ID || process.env.VERCEL_GIT_COMMIT_SHA || process.env.CF_PAGES_COMMIT_SHA || (mode === "production" ? await generateBuildId() : "development")
|
|
1121
1121
|
);
|
|
1122
1122
|
const basePath = normalizeFarmConfigBasePath(userConfig.basePath);
|
|
1123
|
-
const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-
|
|
1123
|
+
const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-4IB34X35.mjs")).createFarmMobileSessionPlugin({
|
|
1124
1124
|
basePath,
|
|
1125
1125
|
integrations: () => integrations
|
|
1126
1126
|
}) : null;
|
|
1127
1127
|
let nativeServerFnAppDirs = [];
|
|
1128
|
-
const nativeServerFnPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./native-server-fn-handler-
|
|
1128
|
+
const nativeServerFnPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./native-server-fn-handler-OXFTI6V5.mjs")).createFarmNativeServerFnPlugin({
|
|
1129
1129
|
resolve: (await import("./internal/native-server-fns.mjs")).createFarmDevNativeServerFnResolver(
|
|
1130
1130
|
{ root, srcDir, appDirs: () => nativeServerFnAppDirs }
|
|
1131
1131
|
)
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkOLKYHTLNcjs = require('./chunk-OLKYHTLN.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk2NOHVIJ3cjs = require('./chunk-2NOHVIJ3.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkDVJM55D2cjs = require('./chunk-DVJM55D2.cjs');
|
|
@@ -166,22 +166,22 @@ function resolveRoutePatterns(value, key) {
|
|
|
166
166
|
}
|
|
167
167
|
function createFarmDefaultSitemap(sources, options) {
|
|
168
168
|
const { include, exclude } = options.config;
|
|
169
|
-
const base =
|
|
169
|
+
const base = _chunkOLKYHTLNcjs.resolveFarmAgentOrigin.call(void 0, options.metadataBase, options.origin);
|
|
170
170
|
const entries = /* @__PURE__ */ new Map();
|
|
171
171
|
for (const source of sources) {
|
|
172
172
|
const path = source.pattern;
|
|
173
173
|
if (path.includes("[") || path.includes("(") || entries.has(path)) continue;
|
|
174
|
-
if (include.length && !include.some((pattern) =>
|
|
174
|
+
if (include.length && !include.some((pattern) => _chunk2NOHVIJ3cjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) {
|
|
175
175
|
continue;
|
|
176
176
|
}
|
|
177
|
-
if (exclude.some((pattern) =>
|
|
177
|
+
if (exclude.some((pattern) => _chunk2NOHVIJ3cjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) continue;
|
|
178
178
|
const module = isRecord(source.module) ? source.module : void 0;
|
|
179
|
-
if (
|
|
179
|
+
if (_chunkOLKYHTLNcjs.isFarmMetadataNoIndex.call(void 0, _optionalChain([module, 'optionalAccess', _2 => _2.metadata]))) continue;
|
|
180
180
|
if (_optionalChain([module, 'optionalAccess', _3 => _3.__farmRouteGuard])) continue;
|
|
181
181
|
entries.set(path, {
|
|
182
182
|
url: new URL(
|
|
183
183
|
_chunkDVJM55D2cjs.normalizeFarmTrailingSlashPathname.call(void 0,
|
|
184
|
-
|
|
184
|
+
_chunkOLKYHTLNcjs.getFarmAgentPagePublicPath.call(void 0, path, options),
|
|
185
185
|
options.trailingSlash === true
|
|
186
186
|
),
|
|
187
187
|
base
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkW53Z4WDIcjs = require('./chunk-W53Z4WDI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXY5OZQF6cjs = require('./chunk-XY5OZQF6.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkBTVDYS4Bcjs = require('./chunk-BTVDYS4B.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2NOHVIJ3cjs = require('./chunk-2NOHVIJ3.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk2KMIJDY6cjs = require('./chunk-2KMIJDY6.cjs');
|
|
@@ -29,7 +29,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
|
29
29
|
var _chunk7Q7UB4TLcjs = require('./chunk-7Q7UB4TL.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkCCMP4JD2cjs = require('./chunk-CCMP4JD2.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
@@ -165,7 +165,7 @@ function createFarmAiCatalogResponse(request, input = {}, requestUrl) {
|
|
|
165
165
|
if (_chunk7Q7UB4TLcjs.matchesFarmIfNoneMatch.call(void 0, request.headers.get("if-none-match"), etag)) {
|
|
166
166
|
return new Response(null, { status: 304, headers });
|
|
167
167
|
}
|
|
168
|
-
|
|
168
|
+
_chunk2NOHVIJ3cjs.emitFarmAgentRead.call(void 0, request, card ? "mcp-server-card" : "ai-catalog", 200);
|
|
169
169
|
return new Response(method === "HEAD" ? null : body, { status: 200, headers });
|
|
170
170
|
}
|
|
171
171
|
function corsHeaders() {
|
|
@@ -233,7 +233,7 @@ function createFarmApiCatalogResponse(method, input, request) {
|
|
|
233
233
|
headers: { Allow: "GET, HEAD", "Content-Type": "text/plain; charset=utf-8" }
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
-
if (request)
|
|
236
|
+
if (request) _chunk2NOHVIJ3cjs.emitFarmAgentRead.call(void 0, request, "api-catalog", 200);
|
|
237
237
|
const catalog = createFarmApiCatalog(input);
|
|
238
238
|
return new Response(upperMethod === "HEAD" ? null : JSON.stringify(catalog), {
|
|
239
239
|
status: 200,
|
|
@@ -288,7 +288,7 @@ function createFarmAppManifest(input, registered = []) {
|
|
|
288
288
|
return {
|
|
289
289
|
schemaVersion: 1,
|
|
290
290
|
app: app ? {
|
|
291
|
-
...app.version ? { farm:
|
|
291
|
+
...app.version ? { farm: _chunkCCMP4JD2cjs.FARM_VERSION } : {},
|
|
292
292
|
...app.renderer ? { renderer: input.renderer } : {},
|
|
293
293
|
basePath: input.basePath,
|
|
294
294
|
...app.build ? { build: input.build } : {}
|
|
@@ -319,7 +319,7 @@ function resolveFarmSiteUrl() {
|
|
|
319
319
|
asUrl(read("RAILWAY_PUBLIC_DOMAIN"))
|
|
320
320
|
];
|
|
321
321
|
for (const candidate of candidates) {
|
|
322
|
-
const origin = candidate ?
|
|
322
|
+
const origin = candidate ? _chunkXY5OZQF6cjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
|
|
323
323
|
if (origin) return origin;
|
|
324
324
|
}
|
|
325
325
|
return null;
|
|
@@ -379,7 +379,7 @@ function listDefaultServer(input) {
|
|
|
379
379
|
authorization: "none",
|
|
380
380
|
resources: [],
|
|
381
381
|
prompts: [],
|
|
382
|
-
tools:
|
|
382
|
+
tools: _chunkW53Z4WDIcjs.FARM_DEFAULT_MCP_TOOLS.map((tool) => ({
|
|
383
383
|
name: tool.name,
|
|
384
384
|
title: tool.title,
|
|
385
385
|
description: tool.description,
|
|
@@ -441,7 +441,7 @@ function listFarmBuiltInRoutePaths(input) {
|
|
|
441
441
|
...agent.manifest !== false ? [FARM_APP_MANIFEST_PATH, FARM_APP_MANIFEST_LEGACY_PATH] : [],
|
|
442
442
|
...agent.apiCatalog ? [FARM_API_CATALOG_PATH] : [],
|
|
443
443
|
...agent.aiCatalog !== false ? [FARM_AI_CATALOG_PATH, FARM_ARD_PATH] : [],
|
|
444
|
-
...agent.mcp === true ? [
|
|
444
|
+
...agent.mcp === true ? [_chunkW53Z4WDIcjs.FARM_DEFAULT_MCP_PATH, `${_chunkW53Z4WDIcjs.FARM_DEFAULT_MCP_PATH}${FARM_MCP_SERVER_CARD_SUFFIX}`] : [],
|
|
445
445
|
..._optionalChain([agent, 'access', _43 => _43.llmsTxt, 'optionalAccess', _44 => _44.enabled]) ? ["/llms.txt"] : [],
|
|
446
446
|
..._optionalChain([agent, 'access', _45 => _45.llmsTxt, 'optionalAccess', _46 => _46.enabled]) && agent.llmsTxt.full ? ["/llms-full.txt"] : [],
|
|
447
447
|
..._optionalChain([agent, 'access', _47 => _47.sitemap, 'optionalAccess', _48 => _48.enabled]) ? ["/sitemap.xml"] : [],
|
|
@@ -481,7 +481,7 @@ function resolveFarmDocsRouteLabel(routePathname, docs) {
|
|
|
481
481
|
for (const entry of entries) {
|
|
482
482
|
const base = entry === "/" ? "" : entry;
|
|
483
483
|
if (page === entry || entry === "/" && page === "/index") {
|
|
484
|
-
return markdown ?
|
|
484
|
+
return markdown ? _chunk2NOHVIJ3cjs.getFarmMarkdownMirrorPath.call(void 0, entry) : entry;
|
|
485
485
|
}
|
|
486
486
|
if (page.startsWith(`${base}/`)) {
|
|
487
487
|
const label = _optionalChain([docs, 'access', _55 => _55.pages, 'optionalAccess', _56 => _56.has, 'call', _57 => _57(page)]) && PUBLISHED_PAGE_PATH.test(page) ? page : `${base}/[...slug]`;
|
|
@@ -504,7 +504,7 @@ function resolveFarmMarkdownRouteLabel(routePathname, matchPagePattern) {
|
|
|
504
504
|
if (!routePathname.toLowerCase().endsWith(".md")) return null;
|
|
505
505
|
const page = routePathname === "/index.md" ? "/" : routePathname.slice(0, -".md".length) || "/";
|
|
506
506
|
const pattern = matchPagePattern(page);
|
|
507
|
-
return pattern ?
|
|
507
|
+
return pattern ? _chunk2NOHVIJ3cjs.getFarmMarkdownMirrorPath.call(void 0, pattern) : null;
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
8
8
|
|
|
9
9
|
// src/server-components-status.ts
|
|
10
10
|
var _fs = require('fs');
|
|
@@ -100,7 +100,7 @@ function farmAppUsesRscPipeline(config, root) {
|
|
|
100
100
|
if (status.fallback) {
|
|
101
101
|
if (!warnedFallback) {
|
|
102
102
|
warnedFallback = true;
|
|
103
|
-
|
|
103
|
+
_chunk7U4XF76Rcjs.logger.warn(
|
|
104
104
|
`[Farm.js] ${formatFarmRscFallbackMessage(status.missingPackages, status.blockingKeys)}`
|
|
105
105
|
);
|
|
106
106
|
}
|
|
@@ -110,7 +110,7 @@ function farmAppUsesRscPipeline(config, root) {
|
|
|
110
110
|
throw new Error(`[Farm.js] ${formatFarmRscBlockingMessage(status.blockingKeys)}`);
|
|
111
111
|
}
|
|
112
112
|
if (status.ignoredKeys.length > 0) {
|
|
113
|
-
|
|
113
|
+
_chunk7U4XF76Rcjs.logger.warn(`[Farm.js] ${formatFarmRscIgnoredMessage(status.ignoredKeys)}`);
|
|
114
114
|
}
|
|
115
115
|
return true;
|
|
116
116
|
}
|
|
@@ -7,7 +7,7 @@ var _chunk2KMIJDY6cjs = require('./chunk-2KMIJDY6.cjs');
|
|
|
7
7
|
var _chunkSHIWRBFIcjs = require('./chunk-SHIWRBFI.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
11
11
|
|
|
12
12
|
// src/cron.ts
|
|
13
13
|
var DEFAULT_FARM_CRON_SECRET_ENV = "CRON_SECRET";
|
|
@@ -94,7 +94,7 @@ async function prepareFarmCronForNitro(config) {
|
|
|
94
94
|
const wrapperNames = resolveCronWrapperFileNames(cron.jobs.map((job) => job.name));
|
|
95
95
|
for (const job of cron.jobs) {
|
|
96
96
|
const taskName = getFarmCronTaskName(job.name);
|
|
97
|
-
const wrapperPath =
|
|
97
|
+
const wrapperPath = _chunk7U4XF76Rcjs.toPosixPath.call(void 0, path.join(generatedDir, `${wrapperNames.get(job.name)}.mjs`));
|
|
98
98
|
await fs.writeFile(wrapperPath, createNitroCronTaskWrapper(job, cron.secretEnv), "utf8");
|
|
99
99
|
tasks[taskName] = {
|
|
100
100
|
handler: wrapperPath,
|
|
@@ -28,7 +28,7 @@ function resolveFarmDocsSearchFrameworkModule(searchModule) {
|
|
|
28
28
|
function generateFarmDocsSearchBootstrapRuntime() {
|
|
29
29
|
return `(()=>{if(window.__farmDocsSearchBootstrap)return;window.__farmDocsSearchBootstrap=true;const queue=(trigger,event)=>{if(window.__FARM_DOCS_SEARCH_BRIDGE_ACTIVE__)return;event.preventDefault();event.stopPropagation();event.stopImmediatePropagation();window.__FARM_DOCS_SEARCH_PENDING__=trigger;window.__FARM_MOUNT_DOCS_SEARCH__?.()};document.addEventListener("click",(event)=>{const target=event.target instanceof Element?event.target.closest("[data-search-full]"):null;if(target)queue("button",event)},true);document.addEventListener("keydown",(event)=>{if((event.metaKey||event.ctrlKey)&&event.key.toLowerCase()==="k")queue("keyboard",event)},true)})();`;
|
|
30
30
|
}
|
|
31
|
-
function generateFarmDocsSearchClientRuntime(enabled, moduleId, frameworkModuleId = moduleId ? resolveFarmDocsSearchFrameworkModule(moduleId) : void 0) {
|
|
31
|
+
function generateFarmDocsSearchClientRuntime(enabled, moduleId, frameworkModuleId = moduleId ? resolveFarmDocsSearchFrameworkModule(moduleId) : void 0, loadRenderer) {
|
|
32
32
|
if (!enabled || !moduleId) {
|
|
33
33
|
return `
|
|
34
34
|
function isFarmDocsSearchPage() {
|
|
@@ -148,7 +148,8 @@ async function mountFarmDocsSearch() {
|
|
|
148
148
|
try {
|
|
149
149
|
farmDocsSearchModulePromise ||= Promise.all([
|
|
150
150
|
import(${JSON.stringify(moduleId)}),
|
|
151
|
-
${frameworkModuleId ? `import(${JSON.stringify(frameworkModuleId)})` : "null"}
|
|
151
|
+
${frameworkModuleId ? `import(${JSON.stringify(frameworkModuleId)})` : "null"},${loadRenderer ? `
|
|
152
|
+
${loadRenderer}(),` : ""}
|
|
152
153
|
]);
|
|
153
154
|
const [{ DocsCommandSearch }, framework] = await farmDocsSearchModulePromise;
|
|
154
155
|
if (!container.isConnected) return false;
|
|
@@ -6,13 +6,13 @@ var _chunkAQIRXBBYcjs = require('./chunk-AQIRXBBY.cjs');
|
|
|
6
6
|
var _chunk67MZTLTFcjs = require('./chunk-67MZTLTF.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk2BEGVSDFcjs = require('./chunk-2BEGVSDF.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkHS4JPIGRcjs = require('./chunk-HS4JPIGR.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
16
16
|
|
|
17
17
|
// src/routing/generate-route-types.ts
|
|
18
18
|
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
@@ -153,8 +153,8 @@ async function scanRoutePatterns(options) {
|
|
|
153
153
|
{ cwd: appDir, expandDirectories: false }
|
|
154
154
|
);
|
|
155
155
|
for (const file of routeModuleFiles) {
|
|
156
|
-
if (
|
|
157
|
-
const route =
|
|
156
|
+
if (_chunk2BEGVSDFcjs.parseRouteSlotFile.call(void 0, file)) continue;
|
|
157
|
+
const route = _chunk7U4XF76Rcjs.parseRoutePath.call(void 0, file);
|
|
158
158
|
const pattern = createRoutePattern(route);
|
|
159
159
|
modules.add(pattern);
|
|
160
160
|
if (route.type === "page") {
|
|
@@ -174,7 +174,7 @@ async function scanRoutePatterns(options) {
|
|
|
174
174
|
);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
for (const route of await
|
|
177
|
+
for (const route of await _chunkHS4JPIGRcjs.discoverProgrammaticRoutePaths.call(void 0, source.root, source.srcDir)) {
|
|
178
178
|
pages.add(route);
|
|
179
179
|
modules.add(route);
|
|
180
180
|
}
|
|
@@ -204,9 +204,9 @@ function scanPlatformRouteFiles(appDir, files, nativePages, nativeLayouts) {
|
|
|
204
204
|
const kind = _nullishCoalesce(match[1], () => ( "page"));
|
|
205
205
|
const platform = _nullishCoalesce(match[2], () => ( match[3]));
|
|
206
206
|
const twin = path.posix.join(path.posix.dirname(normalized), `${kind}.tsx`);
|
|
207
|
-
if (kind === "page" &&
|
|
207
|
+
if (kind === "page" && _chunk2BEGVSDFcjs.parseRouteSlotFile.call(void 0, twin)) continue;
|
|
208
208
|
const dir = path.posix.dirname(normalized);
|
|
209
|
-
const pattern = kind === "page" ? createRoutePattern(
|
|
209
|
+
const pattern = kind === "page" ? createRoutePattern(_chunk7U4XF76Rcjs.parseRoutePath.call(void 0, twin)) : dir === "." ? "/" : `/${dir}`;
|
|
210
210
|
const key = `${kind}\0${pattern}\0${platform}`;
|
|
211
211
|
const previous = seen.get(key);
|
|
212
212
|
if (previous) {
|
|
@@ -57,7 +57,7 @@ function parseRoutePath(filePath) {
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
function getRouteType(fileName) {
|
|
60
|
-
const baseName = fileName.replace(/\.
|
|
60
|
+
const baseName = fileName.replace(/\.[^./]+$/, "");
|
|
61
61
|
switch (baseName) {
|
|
62
62
|
case "page":
|
|
63
63
|
return "page";
|