@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
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkCGIVCGH5cjs = require('./chunk-CGIVCGH5.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -64,14 +64,14 @@ async function handleFarmNativeServerFnRequest(request, options, parsed) {
|
|
|
64
64
|
return refuse(400, "invalid_body", "The input has a key that is not allowed.");
|
|
65
65
|
}
|
|
66
66
|
const fn = await options.resolve(call.id);
|
|
67
|
-
if (fn === void 0 ||
|
|
67
|
+
if (fn === void 0 || _chunkCGIVCGH5cjs._describeServerFunction.call(void 0, fn) === void 0) {
|
|
68
68
|
return refuse(
|
|
69
69
|
404,
|
|
70
70
|
"unknown_function",
|
|
71
71
|
"No server function with this id is open to native screens."
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
|
-
const outcome = await
|
|
74
|
+
const outcome = await _chunkCGIVCGH5cjs._invokeServerFunction.call(void 0, fn, call.input, request);
|
|
75
75
|
if (outcome.ok) {
|
|
76
76
|
try {
|
|
77
77
|
return json(200, { data: _nullishCoalesce(outcome.data, () => ( null)) });
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkCCMP4JD2cjs = require('./chunk-CCMP4JD2.cjs');
|
|
4
4
|
|
|
5
5
|
// src/deployment-environment.ts
|
|
6
6
|
function isFarmProductionDeploymentEnvironment(env = process.env) {
|
|
@@ -90,7 +90,7 @@ function createFarmProductionSiteReporter(options) {
|
|
|
90
90
|
schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
|
|
91
91
|
eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
|
|
92
92
|
packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
|
|
93
|
-
packageVersion: sanitizeDetail(
|
|
93
|
+
packageVersion: sanitizeDetail(_chunkCCMP4JD2cjs.FARM_VERSION, "unknown"),
|
|
94
94
|
renderer: sanitizeDetail(options.renderer, "custom"),
|
|
95
95
|
deployTarget: sanitizeDetail(options.deployTarget, "custom")
|
|
96
96
|
};
|
|
@@ -7,11 +7,12 @@ import {
|
|
|
7
7
|
_listFarmRegisteredMCPServerTools,
|
|
8
8
|
_observeFarmRegisteredMCPResponse,
|
|
9
9
|
_readFarmRegisteredMCPCalls
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZIEO3DQ3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
createFarmImageHandler
|
|
13
13
|
} from "./chunk-UD6KTSJS.mjs";
|
|
14
14
|
import {
|
|
15
|
+
FARM_EARLY_NAVIGATION_SOURCE,
|
|
15
16
|
FARM_LAYOUT_ELEMENT_CLIENT_SOURCE,
|
|
16
17
|
FARM_NAVIGATION_SCRIPT_SOURCE,
|
|
17
18
|
FARM_NAVIGATION_STREAM_READER_SOURCE,
|
|
@@ -40,22 +41,22 @@ import {
|
|
|
40
41
|
resolveFarmImageProviderForRuntime,
|
|
41
42
|
resolveFarmRouteRootStrategy,
|
|
42
43
|
toBakedMarkdownSourcePath
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ZDYYZX73.mjs";
|
|
44
45
|
import {
|
|
45
46
|
generateFarmClientPluginEntryCode,
|
|
46
47
|
hasFarmServerRuntimePlugins,
|
|
47
48
|
loadTailwindVitePlugin
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-RPA45OQS.mjs";
|
|
49
50
|
import {
|
|
50
51
|
FARM_NODE_RESPONSE_END_PENDING
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-C2OLXVUC.mjs";
|
|
52
53
|
import {
|
|
53
54
|
resolveFarmPlatform
|
|
54
55
|
} from "./chunk-SMUW7UST.mjs";
|
|
55
56
|
import {
|
|
56
57
|
generateFarmTypeArtifacts,
|
|
57
58
|
resolveRouteRenderingConfig
|
|
58
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-YN3YMSKD.mjs";
|
|
59
60
|
import {
|
|
60
61
|
createFarmRouteRenderPlan,
|
|
61
62
|
farmPathGuardCoversEndpoint,
|
|
@@ -64,7 +65,7 @@ import {
|
|
|
64
65
|
getSharedLayoutPrefixLength,
|
|
65
66
|
parseFarmLayoutChainHeader,
|
|
66
67
|
renderFarmLocaleAlternateLinks
|
|
67
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-3K2E55BJ.mjs";
|
|
68
69
|
import {
|
|
69
70
|
FARM_NATIVE_TREE_CONTENT_TYPE
|
|
70
71
|
} from "./chunk-LLZSYFOM.mjs";
|
|
@@ -82,13 +83,13 @@ import {
|
|
|
82
83
|
resolveFarmMCPRouteLabel,
|
|
83
84
|
resolveFarmMarkdownRouteLabel,
|
|
84
85
|
setFarmRouteLabel
|
|
85
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-3JQBQG7K.mjs";
|
|
86
87
|
import {
|
|
87
88
|
FARM_DEFAULT_MCP_PATH
|
|
88
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-HR4N2K4V.mjs";
|
|
89
90
|
import {
|
|
90
91
|
isFarmPreviewDeploymentEnvironment
|
|
91
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-RQBGHHOQ.mjs";
|
|
92
93
|
import {
|
|
93
94
|
createFarmServerFnBoundaryModule,
|
|
94
95
|
isFarmServerFnBoundaryId,
|
|
@@ -139,7 +140,7 @@ import {
|
|
|
139
140
|
usePackageScanCacheFile,
|
|
140
141
|
withFarmSourceSnapshotOf,
|
|
141
142
|
wrapFarmIslandContainers
|
|
142
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-MDEFTF63.mjs";
|
|
143
144
|
import {
|
|
144
145
|
generateFarmDocsAdapterClientRuntime,
|
|
145
146
|
getFarmDocsAdapterConfigModule
|
|
@@ -163,18 +164,13 @@ import {
|
|
|
163
164
|
FARM_PREVIEW_ROBOTS_TAG,
|
|
164
165
|
resolveFarmAgentCrawlers,
|
|
165
166
|
resolveFarmAgentSitemap
|
|
166
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-SLEHAGGV.mjs";
|
|
167
168
|
import {
|
|
168
169
|
resolveFarmLlmsTxtConfig
|
|
169
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-XGL42MQ7.mjs";
|
|
170
171
|
import {
|
|
171
172
|
resolveFarmServerComponentsMode
|
|
172
173
|
} from "./chunk-4QENVMG7.mjs";
|
|
173
|
-
import {
|
|
174
|
-
getFarmAppDirectories,
|
|
175
|
-
getFarmLayerAliases,
|
|
176
|
-
getFarmSourceRoots
|
|
177
|
-
} from "./chunk-4STJ6LGR.mjs";
|
|
178
174
|
import {
|
|
179
175
|
REACT_RENDERER,
|
|
180
176
|
getFarmRendererCapabilities,
|
|
@@ -185,6 +181,11 @@ import {
|
|
|
185
181
|
resolveFarmRenderer,
|
|
186
182
|
resolveFarmRendererAppSetup
|
|
187
183
|
} from "./chunk-GCRT6GJG.mjs";
|
|
184
|
+
import {
|
|
185
|
+
getFarmAppDirectories,
|
|
186
|
+
getFarmLayerAliases,
|
|
187
|
+
getFarmSourceRoots
|
|
188
|
+
} from "./chunk-4STJ6LGR.mjs";
|
|
188
189
|
import {
|
|
189
190
|
getPublicFarmImageConfig,
|
|
190
191
|
resolveFarmImageConfig
|
|
@@ -196,7 +197,7 @@ import {
|
|
|
196
197
|
createFarmMarkdownSourceResponse,
|
|
197
198
|
isFarmMarkdownPageFile,
|
|
198
199
|
normalizeFarmMarkdownRoutePath
|
|
199
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-MUZHULW2.mjs";
|
|
200
201
|
import {
|
|
201
202
|
resolveFarmMdxComponentsModulePath,
|
|
202
203
|
resolveMdxConfig
|
|
@@ -208,21 +209,21 @@ import {
|
|
|
208
209
|
farmRequestWantsMarkdown,
|
|
209
210
|
getFarmMarkdownAlternatePath,
|
|
210
211
|
resolveMarkdownMirrorTarget
|
|
211
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-YU2MNIIY.mjs";
|
|
212
213
|
import {
|
|
213
214
|
dispatchIntegrationRequest,
|
|
214
215
|
getFarmIntegrationPluginOwner,
|
|
215
216
|
getIntegrationDocumentNavigationMatchers,
|
|
216
217
|
getIntegrationProviders,
|
|
217
218
|
matchIntegrationRoute
|
|
218
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-6JWXHPVR.mjs";
|
|
219
220
|
import {
|
|
220
221
|
resolveFarmRouteContext,
|
|
221
222
|
withFarmRouteContext
|
|
222
223
|
} from "./chunk-BMQAPZXD.mjs";
|
|
223
224
|
import {
|
|
224
225
|
MiddlewareManager
|
|
225
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-EY7ED5UW.mjs";
|
|
226
227
|
import {
|
|
227
228
|
_runWithMiddlewareContext,
|
|
228
229
|
_runWithMiddlewareData
|
|
@@ -238,7 +239,7 @@ import {
|
|
|
238
239
|
} from "./chunk-IYEY3JWJ.mjs";
|
|
239
240
|
import {
|
|
240
241
|
APIRouteManager
|
|
241
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-KKVRWNDH.mjs";
|
|
242
243
|
import {
|
|
243
244
|
getFarmI18nClientSnapshot
|
|
244
245
|
} from "./chunk-O7JEFGUV.mjs";
|
|
@@ -250,7 +251,7 @@ import {
|
|
|
250
251
|
FARM_INTERNAL_SERVER_ERROR_BODY,
|
|
251
252
|
createFarmInternalServerErrorResponse,
|
|
252
253
|
isFarmAPIPathname
|
|
253
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-TYHWZOA2.mjs";
|
|
254
255
|
import {
|
|
255
256
|
registerFarmMCPServer
|
|
256
257
|
} from "./chunk-F7MJWW6A.mjs";
|
|
@@ -280,7 +281,7 @@ import {
|
|
|
280
281
|
logger,
|
|
281
282
|
toPosixPath,
|
|
282
283
|
toViteModuleId
|
|
283
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-U6GMCDRS.mjs";
|
|
284
285
|
import {
|
|
285
286
|
resolveFarmAPIServerBasePath
|
|
286
287
|
} from "./chunk-2I6PUKWJ.mjs";
|
|
@@ -298,10 +299,10 @@ import {
|
|
|
298
299
|
import {
|
|
299
300
|
emitFarmEvent,
|
|
300
301
|
runWithFarmRequestSpan
|
|
301
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-EILUVBKS.mjs";
|
|
302
303
|
import {
|
|
303
304
|
FARM_VERSION
|
|
304
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-JGEN2FIT.mjs";
|
|
305
306
|
import {
|
|
306
307
|
DEFAULT_FARM_API_BASE_PATH
|
|
307
308
|
} from "./chunk-W6QLRQ3V.mjs";
|
|
@@ -986,7 +987,8 @@ import { readFile } from "fs/promises";
|
|
|
986
987
|
import path4 from "path";
|
|
987
988
|
import { imageSize } from "image-size";
|
|
988
989
|
var FARM_IMAGE_ID_PREFIX = "\0farm:image:";
|
|
989
|
-
var STATIC_IMAGE_RE = /\.(?:avif|gif|jpe?g|png|webp)$/i;
|
|
990
|
+
var STATIC_IMAGE_RE = /\.(?:avif|gif|jpe?g|png|svg|webp)$/i;
|
|
991
|
+
var SVG_RE = /\.svg$/i;
|
|
990
992
|
var SCRIPT_IMPORTER_RE = /\.(?:[cm]?[jt]sx?|mdx?)$/i;
|
|
991
993
|
function farmImageImportsPlugin() {
|
|
992
994
|
return {
|
|
@@ -1021,7 +1023,7 @@ async function createStaticImageModule(filePath, sourceDeclaration) {
|
|
|
1021
1023
|
if (!dimensions.width || !dimensions.height) {
|
|
1022
1024
|
throw new Error(`Could not determine image dimensions for ${filePath}`);
|
|
1023
1025
|
}
|
|
1024
|
-
const blurDataURL = await createBlurDataURL(bytes);
|
|
1026
|
+
const blurDataURL = SVG_RE.test(filePath) ? void 0 : await createBlurDataURL(bytes);
|
|
1025
1027
|
return [
|
|
1026
1028
|
sourceDeclaration,
|
|
1027
1029
|
`const image = ${JSON.stringify({
|
|
@@ -1264,7 +1266,7 @@ function loadFarmDocsDevRuntime() {
|
|
|
1264
1266
|
return import("./docs.mjs");
|
|
1265
1267
|
}
|
|
1266
1268
|
function loadFarmDocsSearchDevRuntime() {
|
|
1267
|
-
return import("./search-client-
|
|
1269
|
+
return import("./search-client-GIXIEU75.mjs");
|
|
1268
1270
|
}
|
|
1269
1271
|
function loadFarmOpenAPIDevRuntime() {
|
|
1270
1272
|
return import("./manager-OMTC5FOJ.mjs");
|
|
@@ -1273,7 +1275,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
1273
1275
|
return import("./workflows.mjs");
|
|
1274
1276
|
}
|
|
1275
1277
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
1276
|
-
return import("./devtools-
|
|
1278
|
+
return import("./devtools-F3FDFV26.mjs");
|
|
1277
1279
|
}
|
|
1278
1280
|
function loadFarmDevtoolsUIRuntime() {
|
|
1279
1281
|
return import("./devtools-ui-BOG33MT5.mjs");
|
|
@@ -2243,6 +2245,15 @@ async function warnClientBoundaryOnce(context, id, code, config) {
|
|
|
2243
2245
|
).join("\n")
|
|
2244
2246
|
);
|
|
2245
2247
|
}
|
|
2248
|
+
function isFarmAppRuntimeFile(file, appDirs, routeModuleExtensions) {
|
|
2249
|
+
const normalized = file.replace(/\\/g, "/");
|
|
2250
|
+
if (!appDirs.some((appDir) => normalized.startsWith(`${appDir}/`))) return false;
|
|
2251
|
+
const routeModule = /\/(?:page|default|layout|loading|error)(\.[^./]+)$/.exec(normalized);
|
|
2252
|
+
if (routeModule) return routeModuleExtensions.has(routeModule[1].toLowerCase());
|
|
2253
|
+
return /\/(?:middleware|route)\.(?:ts|tsx|js|jsx|md|mdx)$|\/(?:sitemap|robots|manifest)\.(?:ts|js)$|\/(?:opengraph-image|twitter-image)(?:\.(?:ts|tsx|js|jsx|png|jpg|jpeg|gif|webp)|\.alt\.txt)$/.test(
|
|
2254
|
+
normalized
|
|
2255
|
+
);
|
|
2256
|
+
}
|
|
2246
2257
|
function shouldEmitFarmClientRootHmr(renderer) {
|
|
2247
2258
|
return getFarmRendererCapabilities(resolveFarmRenderer(renderer)).reconcilesRerenders;
|
|
2248
2259
|
}
|
|
@@ -2579,12 +2590,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2579
2590
|
(srcDir) => isPotentialProgrammaticRouteSourceFile(normalized, srcDir)
|
|
2580
2591
|
);
|
|
2581
2592
|
};
|
|
2582
|
-
const isAppRuntimeFile = (file) =>
|
|
2583
|
-
const normalized = file.replace(/\\/g, "/");
|
|
2584
|
-
return appDirSlugs.some((appDir) => normalized.startsWith(`${appDir}/`)) && /\/(?:page|default|layout|loading|error|middleware|route)\.(?:ts|tsx|js|jsx|md|mdx)$|\/(?:sitemap|robots|manifest)\.(?:ts|js)$|\/(?:opengraph-image|twitter-image)(?:\.(?:ts|tsx|js|jsx|png|jpg|jpeg|gif|webp)|\.alt\.txt)$/.test(
|
|
2585
|
-
normalized
|
|
2586
|
-
);
|
|
2587
|
-
};
|
|
2593
|
+
const isAppRuntimeFile = (file) => isFarmAppRuntimeFile(file, appDirSlugs, routeModuleExtensions);
|
|
2588
2594
|
const isStaticMetadataImageFile = (file) => /\/(?:opengraph-image|twitter-image)(?:\.(?:png|jpg|jpeg|gif|webp)|\.alt\.txt)$/.test(
|
|
2589
2595
|
file.replace(/\\/g, "/")
|
|
2590
2596
|
);
|
|
@@ -3533,7 +3539,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3533
3539
|
}
|
|
3534
3540
|
}
|
|
3535
3541
|
if (options.mobileClient && !viteModuleRequest && (requestMethod === "GET" || requestMethod === "HEAD" || requestMethod === "POST") && req.headers.accept?.includes(FARM_NATIVE_TREE_CONTENT_TYPE)) {
|
|
3536
|
-
const { createFarmNativeTreeResponse } = await import("./native-tree-
|
|
3542
|
+
const { createFarmNativeTreeResponse } = await import("./native-tree-LNO7K6JR.mjs");
|
|
3537
3543
|
const treeBodyInit = requestMethod === "POST" ? { body: createFarmNodeRequestBodyStream(req), duplex: "half" } : {};
|
|
3538
3544
|
const treeResponse = await createFarmNativeTreeResponse({
|
|
3539
3545
|
request: new Request(fullUrl, {
|
|
@@ -5948,9 +5954,18 @@ function generateClientCode(integrationProviders = [], documentNavigationMatcher
|
|
|
5948
5954
|
const appSetupPath = resolveFarmRendererAppSetup(root, renderer);
|
|
5949
5955
|
const rendererClientImports = isReactRenderer(renderer) ? `import React from 'react'
|
|
5950
5956
|
import { hydrateRoot, createRoot } from 'react-dom/client'
|
|
5951
|
-
import { restorePagePosition } from '@farm.js/core/internal/client-runtime'` :
|
|
5957
|
+
import { restorePagePosition } from '@farm.js/core/internal/client-runtime'` : (
|
|
5958
|
+
// Named exports only: a renderer's client module needs no default export. `React` is a
|
|
5959
|
+
// copy of the namespace, as in the production entry, where Rolldown warns about each
|
|
5960
|
+
// optional export (`Children`, `markFunctionComponent`) feature-checked on the namespace.
|
|
5961
|
+
appSetupPath ? `import * as __farmRendererClient from ${JSON.stringify(renderer.client)}
|
|
5962
|
+
import { hydrateRoot, createRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)}
|
|
5952
5963
|
import __farmAppSetup from ${JSON.stringify(toViteModuleId(appSetupPath, root))}
|
|
5953
|
-
|
|
5964
|
+
const React = { ...__farmRendererClient }
|
|
5965
|
+
__farmConfigureApp(__farmAppSetup)` : `import * as __farmRendererClient from ${JSON.stringify(renderer.client)}
|
|
5966
|
+
import { hydrateRoot, createRoot } from ${JSON.stringify(renderer.client)}
|
|
5967
|
+
const React = { ...__farmRendererClient }`
|
|
5968
|
+
);
|
|
5954
5969
|
const isolatedHydrationImport = isolatedHydrationEnabled ? `${islandValues ? "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph, createFarmServerTreeElement, createFarmServerTreeLayout } from '@farm.js/core/internal/islands-runtime'" : "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph } from '@farm.js/core/internal/isolated-boundary'\nimport { createFarmServerTreeElement } from '@farm.js/core/internal/server-tree'"}` : "";
|
|
5955
5970
|
const docsAdapterImportBlock = generateFarmDocsAdapterClientRuntime(
|
|
5956
5971
|
docsAdapterReact,
|
|
@@ -6006,10 +6021,11 @@ function rerenderFarmTreeLayouts() {}`;
|
|
|
6006
6021
|
return `
|
|
6007
6022
|
${rendererClientImports}
|
|
6008
6023
|
${isolatedHydrationImport}
|
|
6009
|
-
import { installChunkErrorRecovery, SPARouter } from '@farm.js/core/client'
|
|
6010
6024
|
import { createClientPluginManager } from '@farm.js/core/plugin/client'
|
|
6025
|
+
// Not @farm.js/core/client: that module's graph imports react, which other renderers' apps lack.
|
|
6026
|
+
import { SPARouter } from '@farm.js/core/internal/spa-router'
|
|
6011
6027
|
import { isFarmRouteActive } from '@farm.js/core/router'
|
|
6012
|
-
import { installFarmLinkPrefetch, isFarmBlockedNavigationURL, readFarmLinkNavigateOptions, rememberFarmLinkLocale, replayFarmQueuedInteraction, scheduleFarmIslandHydration, createFarmSearchParams, searchParamsToObject, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from '@farm.js/core/internal/client-runtime'
|
|
6028
|
+
import { installChunkErrorRecovery, installFarmLinkPrefetch, isFarmBlockedNavigationURL, readFarmLinkNavigateOptions, rememberFarmLinkLocale, replayFarmQueuedInteraction, scheduleFarmIslandHydration, createFarmSearchParams, searchParamsToObject, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from '@farm.js/core/internal/client-runtime'
|
|
6013
6029
|
import { reviveDeferredData } from '@farm.js/core/deferred'
|
|
6014
6030
|
import {
|
|
6015
6031
|
createFarmDeploymentMismatchError,
|
|
@@ -7261,6 +7277,8 @@ ${islandValues ? `
|
|
|
7261
7277
|
|
|
7262
7278
|
${islandValues ? `${FARM_NAVIGATION_STREAM_READER_SOURCE}
|
|
7263
7279
|
|
|
7280
|
+
${FARM_EARLY_NAVIGATION_SOURCE}
|
|
7281
|
+
|
|
7264
7282
|
// Islands mode navigates as the production client does: it fetches the page itself, names the
|
|
7265
7283
|
// layouts it shows by key (F-Layouts), and asks for flush markers (F-Stream), so the shell arrives
|
|
7266
7284
|
// before slow Suspense content. Other pages (a client page, a layout that hydrates, route slots)
|
|
@@ -7332,19 +7350,20 @@ async function fetchFarmNavigationDocument(path, context) {
|
|
|
7332
7350
|
keepLayouts && !context.refresh && !activeLayoutShouldHydrate
|
|
7333
7351
|
? readLayoutIdentities(container)
|
|
7334
7352
|
: [];
|
|
7335
|
-
const
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
// A prefetch names its layouts even when it keeps none: that marks it as a navigation,
|
|
7344
|
-
// which the server answers without loading.tsx.
|
|
7345
|
-
...(identities.length || context.prefetch ? { 'F-Layouts': JSON.stringify(identities) } : {}),
|
|
7346
|
-
}),
|
|
7353
|
+
const headers = createFarmDeploymentRequestHeaders(deploymentId, {
|
|
7354
|
+
Accept: 'text/html',
|
|
7355
|
+
// A refresh arrives whole, like a transition: the islands it keeps are all in it.
|
|
7356
|
+
...(context.prefetch || context.refresh ? {} : { 'F-Stream': 'flush' }),
|
|
7357
|
+
...getFarmIslandValueHeaders(),
|
|
7358
|
+
// A prefetch names its layouts even when it keeps none: that marks it as a navigation,
|
|
7359
|
+
// which the server answers without loading.tsx.
|
|
7360
|
+
...(identities.length || context.prefetch ? { 'F-Layouts': JSON.stringify(identities) } : {}),
|
|
7347
7361
|
});
|
|
7362
|
+
const target = url.pathname + url.search;
|
|
7363
|
+
const response = await (
|
|
7364
|
+
(!context.prefetch && takeFarmEarlyNavigation(target, headers, context.signal)) ||
|
|
7365
|
+
fetch(target, { signal: context.signal, redirect: 'manual', headers })
|
|
7366
|
+
);
|
|
7348
7367
|
if (isFarmDeploymentMismatchResponse(response, deploymentId)) {
|
|
7349
7368
|
const error = createFarmDeploymentMismatchError(response, deploymentId || 'unknown');
|
|
7350
7369
|
window.dispatchEvent(new CustomEvent('farm:deployment-mismatch', { detail: error }));
|
|
@@ -7848,27 +7867,6 @@ function farmIslandsOnlyDocument() {
|
|
|
7848
7867
|
}
|
|
7849
7868
|
},
|
|
7850
7869
|
});
|
|
7851
|
-
${islandValues ? `// A layout root that waits for a click renders again on a navigation, and a link under the
|
|
7852
|
-
// pointer is a navigation on its way: hydrate the root now, as the production entry does.
|
|
7853
|
-
if (layoutShouldHydrate && islandStrategy !== 'load') {
|
|
7854
|
-
const hydrateForLink = (target) => {
|
|
7855
|
-
const anchor = target instanceof Element ? target.closest('a[href]') : null;
|
|
7856
|
-
const href = anchor && anchor.getAttribute('href');
|
|
7857
|
-
if (!href || href.startsWith('#') || hasAbsoluteNavigationHref(href)) return false;
|
|
7858
|
-
if (!pageContainer.contains(anchor)) return false;
|
|
7859
|
-
document.dispatchEvent(
|
|
7860
|
-
new CustomEvent('farm:island-interaction', { detail: { target: anchor, kind: null } }),
|
|
7861
|
-
);
|
|
7862
|
-
return true;
|
|
7863
|
-
};
|
|
7864
|
-
const onLinkIntent = (event) => {
|
|
7865
|
-
if (hydrateForLink(event.target)) document.removeEventListener('mouseover', onLinkIntent, true);
|
|
7866
|
-
};
|
|
7867
|
-
if (!hydrateForLink(pageContainer.querySelector('a[href]:hover'))) {
|
|
7868
|
-
document.addEventListener('mouseover', onLinkIntent, true);
|
|
7869
|
-
void pageHydration.finally(() => document.removeEventListener('mouseover', onLinkIntent, true));
|
|
7870
|
-
}
|
|
7871
|
-
}` : ""}
|
|
7872
7870
|
${isolatedHydrationEnabled ? `const isolatedHydration =
|
|
7873
7871
|
hasIsolatedClientBoundaries &&
|
|
7874
7872
|
!layoutShouldHydrate
|
|
@@ -8209,6 +8207,7 @@ export {
|
|
|
8209
8207
|
withFarmRequestTracing,
|
|
8210
8208
|
rewriteEarlySsrRelativeImports,
|
|
8211
8209
|
transformIsolatedClientBoundaryModule,
|
|
8210
|
+
isFarmAppRuntimeFile,
|
|
8212
8211
|
shouldEmitFarmClientRootHmr,
|
|
8213
8212
|
farmPlugin,
|
|
8214
8213
|
defineConfig
|
|
@@ -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
|
assertNoSchemaListField(
|
|
@@ -151,7 +152,9 @@ function renderSqlTable(model, dialect, modelLookup) {
|
|
|
151
152
|
}
|
|
152
153
|
const crossOwner = model.foreignKeys?.[fieldKey];
|
|
153
154
|
const reference = 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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRouteTypeDeclarations,
|
|
3
3
|
generateRouteTypes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-K3XKEZR6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
APITypeGenerator
|
|
7
7
|
} from "./chunk-HQ2VAJLW.mjs";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-4STJ6LGR.mjs";
|
|
30
30
|
import {
|
|
31
31
|
isFarmMarkdownPageFile
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MUZHULW2.mjs";
|
|
33
33
|
import {
|
|
34
34
|
resolveSchemaModels
|
|
35
35
|
} from "./chunk-F3N52U7S.mjs";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./chunk-VO55MMBX.mjs";
|
|
45
45
|
import {
|
|
46
46
|
resolvePluginRoutes
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-HD5FLXP2.mjs";
|
|
48
48
|
|
|
49
49
|
// src/ssg.ts
|
|
50
50
|
import { readFileSync } from "fs";
|
|
@@ -20,7 +20,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
|
20
20
|
var _chunk7Q7UB4TLcjs = require('./chunk-7Q7UB4TL.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkPLJMEUANcjs = require('./chunk-PLJMEUAN.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -546,7 +546,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
546
546
|
pathname,
|
|
547
547
|
name: entry.filePath
|
|
548
548
|
};
|
|
549
|
-
|
|
549
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, { type: "middleware.start", ...middlewareEvent });
|
|
550
550
|
try {
|
|
551
551
|
const returnedResponse = await executeHandlers(entry.handlers, ctx);
|
|
552
552
|
currentRequest = contextState.getRequest();
|
|
@@ -555,7 +555,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
555
555
|
returnedResponse,
|
|
556
556
|
mapToHeaders(contextState.headers)
|
|
557
557
|
);
|
|
558
|
-
|
|
558
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
|
|
559
559
|
type: "middleware.shortCircuit",
|
|
560
560
|
...middlewareEvent,
|
|
561
561
|
status: response.status
|
|
@@ -572,7 +572,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
572
572
|
}
|
|
573
573
|
if (ctx._handled || ctx.response.headersSent || ctx.response.writableEnded) {
|
|
574
574
|
const response = contextState.getResponse() || new Response(null);
|
|
575
|
-
|
|
575
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
|
|
576
576
|
type: "middleware.shortCircuit",
|
|
577
577
|
...middlewareEvent,
|
|
578
578
|
status: response.status
|
|
@@ -587,7 +587,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
587
587
|
guarded
|
|
588
588
|
};
|
|
589
589
|
}
|
|
590
|
-
|
|
590
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
|
|
591
591
|
type: "middleware.complete",
|
|
592
592
|
...middlewareEvent,
|
|
593
593
|
durationMs: Date.now() - middlewareStartTime
|
|
@@ -600,7 +600,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
600
600
|
new Response(null, { status: redirect.status, headers: { Location: redirect.url } }),
|
|
601
601
|
mapToHeaders(contextState.headers)
|
|
602
602
|
);
|
|
603
|
-
|
|
603
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
|
|
604
604
|
type: "middleware.shortCircuit",
|
|
605
605
|
...middlewareEvent,
|
|
606
606
|
status: response.status
|
|
@@ -616,7 +616,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
618
|
if (_chunk7JUIK547cjs.isFarmNotFoundError.call(void 0, error)) {
|
|
619
|
-
|
|
619
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, { type: "middleware.shortCircuit", ...middlewareEvent, status: 404 });
|
|
620
620
|
return {
|
|
621
621
|
request: currentRequest,
|
|
622
622
|
response: null,
|
|
@@ -628,7 +628,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
628
628
|
notFound: true
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
|
|
631
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
|
|
632
632
|
type: "middleware.error",
|
|
633
633
|
...middlewareEvent,
|
|
634
634
|
error
|