@farm.js/core 0.1.68 → 0.1.70
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-FER4MQDF.cjs → agent-mcp-handler-6T2Z7TB6.cjs} +8 -5
- package/dist/{agent-mcp-handler-AZ7QW4UP.mjs → agent-mcp-handler-CPU354QQ.mjs} +7 -4
- package/dist/{agent-mcp.d-Uh5xr7aX.d.ts → agent-mcp.d-DulgFLBt.d.ts} +13 -4
- package/dist/{agent-mcp.d-wkVPK1GA.d.mts → agent-mcp.d-TAs1ES2F.d.mts} +13 -4
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +3 -2
- package/dist/agent-runtime.d.ts +3 -2
- package/dist/agent-runtime.mjs +2 -2
- package/dist/analyzer-GUIRJWZH.cjs +16 -0
- package/dist/{analyzer-CQDU7E3Y.mjs → analyzer-QGRBLETM.mjs} +2 -2
- package/dist/api/node.d.mts +5 -4
- package/dist/api/node.d.ts +5 -4
- package/dist/api/route-manager.cjs +4 -4
- package/dist/api/route-manager.d.mts +16 -7
- package/dist/api/route-manager.d.ts +16 -7
- package/dist/api/route-manager.mjs +3 -3
- package/dist/api/runtime.d.mts +4 -3
- package/dist/api/runtime.d.ts +4 -3
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +8 -24
- package/dist/api.d.ts +8 -24
- package/dist/api.mjs +5 -5
- package/dist/{app-manifest.d-Dd4q5CFx.d.mts → app-manifest.d-6zXb90o6.d.mts} +1 -1
- package/dist/{app-manifest.d-BT5i2F-o.d.ts → app-manifest.d-C-nf3Vmm.d.ts} +1 -1
- package/dist/app-markdown.cjs +5 -4
- package/dist/app-markdown.d.mts +4 -3
- package/dist/app-markdown.d.ts +4 -3
- package/dist/app-markdown.mjs +4 -3
- package/dist/{app.d-BVOpL_f2.d.ts → app.d-C2xeMIYT.d.ts} +18 -8
- package/dist/{app.d-BhiDXex_.d.mts → app.d-DF0aundc.d.mts} +18 -8
- package/dist/{base-path.d-BOUV5ozD.d.mts → base-path.d-BJ3SYpB8.d.mts} +7 -1
- package/dist/{base-path.d-BOUV5ozD.d.ts → base-path.d-BJ3SYpB8.d.ts} +7 -1
- package/dist/{chunk-4ZXKYCYK.mjs → chunk-255J7K4X.mjs} +1 -1
- package/dist/{chunk-RVGLYMJM.cjs → chunk-2AM26UGI.cjs} +2 -2
- package/dist/{chunk-UPOYKX4S.cjs → chunk-2MR4MABG.cjs} +4 -4
- package/dist/chunk-2RCCFB2Y.cjs +129 -0
- package/dist/{chunk-K6VFYFOY.cjs → chunk-2W4GNXGX.cjs} +2 -2
- package/dist/{chunk-URN7VFO7.cjs → chunk-32SYRIQ7.cjs} +21 -22
- package/dist/{chunk-CV6MFQ4Y.mjs → chunk-3AUINHFG.mjs} +1 -1
- package/dist/{chunk-KDO6T6OB.mjs → chunk-3EXCZJEN.mjs} +2 -2
- package/dist/{chunk-MMDKYJ5V.cjs → chunk-3GNVIYPO.cjs} +7 -7
- package/dist/{chunk-65Y5SIBH.cjs → chunk-3QM74STY.cjs} +1 -1
- package/dist/{chunk-NT4W4H52.mjs → chunk-3WS5AZ3R.mjs} +23 -18
- package/dist/{chunk-FJMC24KG.cjs → chunk-42KMUIWZ.cjs} +0 -3
- package/dist/{chunk-LR4KP3I7.cjs → chunk-4AC4PXZO.cjs} +2 -2
- package/dist/{chunk-YVPX5PI5.mjs → chunk-4O26BPUY.mjs} +8 -0
- package/dist/{chunk-LENKRGBV.mjs → chunk-5CFHQ7HM.mjs} +1 -1
- package/dist/{chunk-G7NBPP7H.mjs → chunk-5IJRJWJS.mjs} +1 -1
- package/dist/{chunk-MV7NWU23.mjs → chunk-5R3JQPWD.mjs} +1 -1
- package/dist/{chunk-3Y52TWYU.mjs → chunk-62ZRA7XU.mjs} +0 -3
- package/dist/{chunk-5JKDFRTK.cjs → chunk-65FPDDT4.cjs} +2 -2
- package/dist/{chunk-K6SXMVXO.mjs → chunk-75E5FDX2.mjs} +22 -7
- package/dist/{chunk-K76CBYQM.mjs → chunk-7A3URI2F.mjs} +20 -0
- package/dist/{chunk-VFNAK6A5.mjs → chunk-A2TH5MKE.mjs} +9 -5
- package/dist/{chunk-225APHKC.cjs → chunk-A7HCBHMC.cjs} +3 -3
- package/dist/{chunk-VX2HZGC7.cjs → chunk-ACGBXN3U.cjs} +2 -2
- package/dist/{chunk-Z3PW3DIR.cjs → chunk-BPUVDCGG.cjs} +5 -5
- package/dist/{chunk-FT6KJHS3.cjs → chunk-C2JOS77Z.cjs} +4 -1
- package/dist/{chunk-DIXFKAPM.mjs → chunk-CCHJWJGP.mjs} +297 -148
- package/dist/{chunk-CRVSYDHV.mjs → chunk-CKQAQFF6.mjs} +2 -2
- package/dist/chunk-DC2AXGNZ.mjs +129 -0
- package/dist/{chunk-TNK2TVRS.cjs → chunk-DIHBWZDZ.cjs} +449 -352
- package/dist/{chunk-JSOCDYER.cjs → chunk-DMXMIE2C.cjs} +15 -1
- package/dist/{chunk-23VJEGKC.cjs → chunk-DVJM55D2.cjs} +9 -1
- package/dist/{chunk-QSUYB3RH.cjs → chunk-DZHTNSQ5.cjs} +14 -14
- package/dist/{chunk-OIOPQ25L.mjs → chunk-E77IA5IF.mjs} +46 -33
- package/dist/{chunk-VRGY3X2I.mjs → chunk-EDZU7YRK.mjs} +8 -9
- package/dist/{chunk-EZTKXD6P.cjs → chunk-FDGYDQGL.cjs} +8 -1
- package/dist/{chunk-PLJKJJ2H.mjs → chunk-FETMUBIA.mjs} +27 -82
- package/dist/{chunk-HJZZSBVK.cjs → chunk-FILXOEWD.cjs} +2 -2
- package/dist/{chunk-KWCZKJYU.cjs → chunk-FJ5YCERM.cjs} +581 -432
- package/dist/{chunk-PDFFYZAT.cjs → chunk-GF22VGMS.cjs} +2 -2
- package/dist/{chunk-OOJBBHYW.cjs → chunk-GVYZCJZH.cjs} +30 -1
- package/dist/{chunk-MNJDNTGO.mjs → chunk-HAXFV2CD.mjs} +1 -1
- package/dist/{chunk-DXZ57EPE.mjs → chunk-I4KPA2C6.mjs} +14 -0
- package/dist/{chunk-LDEXTX4I.cjs → chunk-I7NUT24Z.cjs} +29 -22
- package/dist/{chunk-MZ4CRSY7.cjs → chunk-IEN2EFE5.cjs} +4 -4
- package/dist/{chunk-NVOMQLI2.mjs → chunk-IWJONXPF.mjs} +11 -0
- package/dist/{chunk-RLH5AH2M.mjs → chunk-JDO346NV.mjs} +1 -1
- package/dist/{chunk-WUTFJOV7.cjs → chunk-JFPKARWM.cjs} +16 -8
- package/dist/{chunk-A3T445WK.mjs → chunk-JFVT5ZZV.mjs} +9 -2
- package/dist/{chunk-WPB67LE5.mjs → chunk-JRF2SKCD.mjs} +1 -1
- package/dist/{chunk-YIHRZBD7.cjs → chunk-JRGR5Z4K.cjs} +1 -1
- package/dist/{chunk-UKZ6AWKZ.cjs → chunk-JWY66PID.cjs} +44 -1
- package/dist/{chunk-BDYM2TN3.cjs → chunk-JX5VOLAV.cjs} +8 -8
- package/dist/{chunk-WMLSZAKN.mjs → chunk-JZQS3ZOI.mjs} +1 -1
- package/dist/{chunk-YTNBCXCW.cjs → chunk-K4UGCUXX.cjs} +17 -13
- package/dist/{chunk-OFBLGH6V.cjs → chunk-K66JILV3.cjs} +47 -34
- package/dist/{chunk-QOGIZKSO.cjs → chunk-K7JMTAFH.cjs} +5 -5
- package/dist/{chunk-IFR74W6S.mjs → chunk-KPJYBSHL.mjs} +4 -1
- package/dist/{chunk-Z6SOXHAD.mjs → chunk-KPMLDT3B.mjs} +208 -111
- package/dist/{chunk-KI3MU7B5.mjs → chunk-LDVJIBGN.mjs} +1 -1
- package/dist/{chunk-IGDYL2IA.cjs → chunk-LECZ5DPZ.cjs} +2 -2
- package/dist/{chunk-5FBZJJGA.mjs → chunk-LXEJNWF5.mjs} +2 -2
- package/dist/{chunk-F36LS2C7.cjs → chunk-M6U6E4F7.cjs} +335 -285
- package/dist/{chunk-AKIQ54FK.cjs → chunk-MBCRWU3P.cjs} +26 -81
- package/dist/{chunk-P2NBQ5JI.mjs → chunk-MWUDEYBI.mjs} +1 -1
- package/dist/{chunk-SQ6IWJ3H.cjs → chunk-MZLJFNMH.cjs} +1 -1
- package/dist/{chunk-6OFOIMNS.mjs → chunk-N62IYXYD.mjs} +1 -1
- package/dist/{chunk-ZPKJPM7K.mjs → chunk-NA77GEIU.mjs} +2 -2
- package/dist/{chunk-FVYBEMOD.cjs → chunk-NAXKOTPP.cjs} +6 -6
- package/dist/{chunk-I7J5RLGO.cjs → chunk-NLBHLPEO.cjs} +12 -1
- package/dist/{chunk-3EEINK7G.cjs → chunk-NSZY3EWG.cjs} +10 -7
- package/dist/{chunk-F6CMGWAL.mjs → chunk-NYF7A4UW.mjs} +1 -1
- package/dist/{chunk-QO43L7Z4.cjs → chunk-O32QPFVV.cjs} +25 -7
- package/dist/{chunk-5IQ2ERQA.cjs → chunk-O47W53D3.cjs} +1 -1
- package/dist/{chunk-CO6UYM2D.mjs → chunk-O5QUJEWT.mjs} +1 -1
- package/dist/{chunk-JL2YW5KX.mjs → chunk-OAEDVXVE.mjs} +44 -1
- package/dist/{chunk-3TXKFRSO.mjs → chunk-OEL5EPOJ.mjs} +1 -1
- package/dist/{chunk-KSZK34HU.mjs → chunk-PJQ5W356.mjs} +16 -8
- package/dist/{chunk-BZWTBELF.cjs → chunk-Q5HMVGR5.cjs} +87 -17
- package/dist/{chunk-5NFQ6AZI.cjs → chunk-QEWWKYDL.cjs} +25 -10
- package/dist/{chunk-QOSDWGKT.mjs → chunk-QVBXTSIZ.mjs} +1 -1
- package/dist/{chunk-T5XFZQCL.mjs → chunk-QZHTDVH4.mjs} +1 -1
- package/dist/{chunk-HEJM46HQ.mjs → chunk-R7254L3R.mjs} +5 -2
- package/dist/{chunk-OGVTUGMU.mjs → chunk-REP6HWJN.mjs} +13 -3
- package/dist/{chunk-4UAQB5LB.mjs → chunk-RMOU3PR4.mjs} +112 -62
- package/dist/{chunk-WYL4ODZ4.mjs → chunk-SE7HPBYK.mjs} +30 -1
- package/dist/{chunk-2ZOYOYEE.mjs → chunk-THG2TVDH.mjs} +73 -3
- package/dist/{chunk-TEJ67GD2.mjs → chunk-TLSSIYAL.mjs} +20 -5
- package/dist/{chunk-DWLNLU55.cjs → chunk-TPYAYFMF.cjs} +2 -2
- package/dist/{chunk-Y6KHPJDB.cjs → chunk-U7VH3Q5E.cjs} +2 -2
- package/dist/{chunk-X3MHKLCO.cjs → chunk-VG6HYT5K.cjs} +26 -11
- package/dist/{chunk-437QZIC2.cjs → chunk-VNBDN5W2.cjs} +5 -5
- package/dist/{chunk-AJNBTOVQ.mjs → chunk-WW3LRNQV.mjs} +1 -1
- package/dist/{chunk-GFPS7MNE.mjs → chunk-WX63N6C5.mjs} +4 -4
- package/dist/{chunk-7LK5CTUM.cjs → chunk-XYVPTTUT.cjs} +31 -26
- package/dist/{chunk-VOQ7XZZT.cjs → chunk-Y2SZVIVH.cjs} +20 -0
- package/dist/{chunk-XCAQTCGK.mjs → chunk-YBY34UHB.mjs} +1 -1
- package/dist/{chunk-YGJ5P3TJ.mjs → chunk-Z3GPAFIA.mjs} +21 -3
- package/dist/{chunk-4E57QHPW.cjs → chunk-ZUVAGMQ5.cjs} +17 -7
- package/dist/{chunk-23LVFSID.mjs → chunk-ZXDX7VYZ.mjs} +7 -0
- package/dist/{client-component.d-BvQOxSqh.d.mts → client-component.d-Bk5qKJM-.d.mts} +2 -2
- package/dist/{client-component.d-DNVSLEPi.d.ts → client-component.d-DNbC4oWI.d.ts} +2 -2
- package/dist/{client-plugins.d-CNDqcAuf.d.ts → client-plugins.d-DwUqh4gp.d.ts} +50 -5
- package/dist/{client-plugins.d-CE1lVK2R.d.mts → client-plugins.d-Pi9nG0W0.d.mts} +50 -5
- package/dist/client-plugins.d.mts +3 -2
- package/dist/client-plugins.d.ts +3 -2
- package/dist/client.cjs +6 -6
- package/dist/client.d.mts +8 -7
- package/dist/client.d.ts +8 -7
- package/dist/client.mjs +5 -5
- package/dist/config.d.mts +3 -2
- package/dist/config.d.ts +3 -2
- package/dist/deployment.cjs +4 -2
- package/dist/deployment.d.mts +7 -1
- package/dist/deployment.d.ts +7 -1
- package/dist/deployment.mjs +5 -3
- package/dist/desktop.d.mts +4 -3
- package/dist/desktop.d.ts +4 -3
- package/dist/{dev-guard-ONNMVQUN.mjs → dev-guard-ZDIELV6Q.mjs} +1 -1
- package/dist/{dev-guard-2UW2KERP.cjs → dev-guard-ZLLKVO5T.cjs} +2 -2
- package/dist/{devtools-2A2GPC7B.mjs → devtools-CB43AHEP.mjs} +8 -7
- package/dist/{devtools-R27T3BRY.cjs → devtools-L5DUNDF3.cjs} +9 -8
- package/dist/docs.cjs +14 -11
- package/dist/docs.d.mts +17 -4
- package/dist/docs.d.ts +17 -4
- package/dist/docs.mjs +14 -11
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.mjs +2 -2
- package/dist/headers.d-CE6OWB-n.d.ts +18 -0
- package/dist/headers.d-DED1hHh4.d.mts +18 -0
- package/dist/i18n/client.cjs +2 -2
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/client.mjs +1 -1
- package/dist/i18n/index.cjs +2 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.mjs +1 -1
- package/dist/i18n/server.cjs +3 -3
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/i18n/server.mjs +2 -2
- package/dist/image/server.cjs +2 -2
- package/dist/image/server.mjs +1 -1
- package/dist/image/sharp.cjs +9 -9
- package/dist/image/sharp.mjs +1 -1
- package/dist/index.cjs +49 -45
- package/dist/{index.d-Bt3kl19W.d.mts → index.d-CbvOjJcp.d.mts} +1 -1
- package/dist/{index.d-Cx_-DaKV.d.ts → index.d-c9UwIqDy.d.ts} +1 -1
- package/dist/index.d.mts +26 -24
- package/dist/index.d.ts +26 -24
- package/dist/index.mjs +63 -59
- package/dist/integrations/orm.d.mts +3 -2
- package/dist/integrations/orm.d.ts +3 -2
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +3 -2
- package/dist/integrations.d.ts +3 -2
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.cjs +4 -3
- package/dist/internal/app-markdown-runtime.d.mts +4 -3
- package/dist/internal/app-markdown-runtime.d.ts +4 -3
- package/dist/internal/app-markdown-runtime.mjs +3 -2
- package/dist/internal/build-runtime.cjs +36 -37
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +35 -36
- package/dist/internal/cli-runtime.cjs +15 -14
- package/dist/internal/cli-runtime.mjs +14 -13
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +5 -3
- package/dist/internal/client-runtime.d.mts +17 -7
- package/dist/internal/client-runtime.d.ts +17 -7
- package/dist/internal/client-runtime.mjs +4 -2
- package/dist/internal/compression-runtime.d.mts +3 -2
- package/dist/internal/compression-runtime.d.ts +3 -2
- package/dist/internal/config-runtime.cjs +10 -9
- package/dist/internal/config-runtime.d.mts +6 -5
- package/dist/internal/config-runtime.d.ts +6 -5
- package/dist/internal/config-runtime.mjs +9 -8
- package/dist/internal/infra-analytics-runtime.cjs +12 -9
- package/dist/internal/infra-analytics-runtime.mjs +10 -7
- 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 +52 -17
- package/dist/internal/production-runtime.d.mts +57 -20
- package/dist/internal/production-runtime.d.ts +57 -20
- package/dist/internal/production-runtime.mjs +55 -20
- package/dist/internal/vercel-edge-middleware.cjs +3 -2
- package/dist/internal/vercel-edge-middleware.d.mts +2 -2
- package/dist/internal/vercel-edge-middleware.d.ts +2 -2
- package/dist/internal/vercel-edge-middleware.mjs +2 -1
- package/dist/markdown.cjs +3 -2
- package/dist/markdown.d.mts +3 -2
- package/dist/markdown.d.ts +3 -2
- package/dist/markdown.mjs +2 -1
- package/dist/middleware.cjs +6 -5
- package/dist/middleware.d.mts +4 -3
- package/dist/middleware.d.ts +4 -3
- package/dist/middleware.mjs +5 -4
- package/dist/mobile.d.mts +3 -3
- package/dist/mobile.d.ts +3 -3
- package/dist/{mount.d-Bki4pOaJ.d.mts → mount.d-BvWxf8ZE.d.mts} +1 -1
- package/dist/{mount.d-DjR5aerM.d.ts → mount.d-DngLY7NL.d.ts} +1 -1
- package/dist/{native-tree-W2SSJB3Y.cjs → native-tree-GF4BH33L.cjs} +4 -3
- package/dist/{native-tree-Y5YQANW7.mjs → native-tree-L2IIEBXH.mjs} +3 -2
- package/dist/{navigation-delegate.d-VDkziXTK.d.mts → navigation-delegate.d-CMyl1h2l.d.mts} +1 -1
- package/dist/{navigation-delegate.d-CtghaSP3.d.ts → navigation-delegate.d-zZogiDfa.d.ts} +1 -1
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +6 -5
- package/dist/navigation.d.ts +6 -5
- package/dist/navigation.mjs +4 -4
- package/dist/{plugin-WIU4GDD4.cjs → plugin-F2O4BFTK.cjs} +2 -2
- package/dist/{plugin-SAS22JL7.mjs → plugin-VEBRN7A3.mjs} +1 -1
- package/dist/plugin.cjs +30 -29
- package/dist/plugin.d.mts +6 -4
- package/dist/plugin.d.ts +6 -4
- package/dist/plugin.mjs +29 -28
- package/dist/{production-runtime.d-DMZY3OgV.d.mts → production-runtime.d-B0IeWWyO.d.mts} +23 -2
- package/dist/{production-runtime.d-BMyyLGBB.d.ts → production-runtime.d-q3aHIv5Y.d.ts} +23 -2
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan.d-i9sI4tc9.d.ts → render-plan.d-DQj2bzd2.d.ts} +1 -1
- package/dist/{render-plan.d-BSwV8PE4.d.mts → render-plan.d-Di1znBDW.d.mts} +1 -1
- package/dist/renderer-client.cjs +7 -7
- package/dist/renderer-client.d.mts +6 -5
- package/dist/renderer-client.d.ts +6 -5
- package/dist/renderer-client.mjs +3 -3
- package/dist/{request.d-Dgln8tuI.d.ts → request.d-C5vyoYeL.d.ts} +1 -1
- package/dist/{request.d-C24FNQ_7.d.mts → request.d-CJWzfDYJ.d.mts} +1 -1
- package/dist/request.d.mts +4 -3
- package/dist/request.d.ts +4 -3
- package/dist/{resolver.d-JnZKKsc5.d.mts → resolver.d-9iKC79CU.d.mts} +1 -1
- package/dist/{resolver.d-BHyZgpa7.d.ts → resolver.d-CY6mEa_F.d.ts} +1 -1
- package/dist/response.d-B_MtBCnF.d.mts +12 -0
- package/dist/response.d-B_MtBCnF.d.ts +12 -0
- package/dist/{route-rendering.d-Ds0BfwQi.d.mts → route-rendering.d-C-et2TZ1.d.mts} +9 -2
- package/dist/{route-rendering.d-CUylZKJA.d.ts → route-rendering.d-DhsY5M2I.d.ts} +9 -2
- package/dist/{router.d-CFPcbqzc.d.mts → router.d-BMDS5s5X.d.mts} +1 -1
- package/dist/{router.d-B56rMOFm.d.ts → router.d-CJB-Ntni.d.ts} +1 -1
- package/dist/{routes.d-CrEy0lJS.d.mts → routes.d-D3aJw1H5.d.mts} +1 -1
- package/dist/{routes.d-9GFFNioh.d.ts → routes.d-K-Qg79AA.d.ts} +1 -1
- package/dist/routes.d.mts +3 -2
- package/dist/routes.d.ts +3 -2
- package/dist/{index.d-BNNDpql4.d.ts → routing.d-BxOZ2YWc.d.ts} +1 -2
- package/dist/{index.d-BqcfqJvt.d.mts → routing.d-DwSUVZbF.d.mts} +1 -2
- package/dist/{rsc-pipeline-GA4AQWZI.mjs → rsc-pipeline-AXQJCCHI.mjs} +12 -12
- package/dist/{rsc-pipeline-3T7V6OUT.cjs → rsc-pipeline-NJKLZ3YE.cjs} +13 -13
- package/dist/{runtime-REUTNTI5.cjs → runtime-DMW6DDOI.cjs} +19 -18
- package/dist/{runtime-ZYCKKY7L.mjs → runtime-JXNEKOSE.mjs} +11 -10
- package/dist/{runtime.d-BtL3PCL3.d.ts → runtime.d-B_uPfMjA.d.ts} +2 -2
- package/dist/{runtime.d-DLRO-ExG.d.mts → runtime.d-BonodRI9.d.mts} +1 -1
- package/dist/{runtime.d-3iJAKptR.d.mts → runtime.d-nUz0HAL4.d.mts} +2 -2
- package/dist/{runtime.d-H7k9hOQE.d.ts → runtime.d-uw4123iI.d.ts} +1 -1
- package/dist/server-plugins.cjs +3 -2
- package/dist/server-plugins.d.mts +6 -12
- package/dist/server-plugins.d.ts +6 -12
- package/dist/server-plugins.mjs +2 -1
- package/dist/server.cjs +64 -56
- package/dist/server.d.mts +23 -14
- package/dist/server.d.ts +23 -14
- package/dist/server.mjs +40 -32
- package/dist/{spa-router.d-Dr7oanhl.d.ts → spa-router.d-l0d9pPZj.d.ts} +3 -3
- package/dist/{spa-router.d-g4CzhEH1.d.mts → spa-router.d-rha3M95y.d.mts} +3 -3
- package/dist/testing.cjs +3 -3
- package/dist/testing.d.mts +3 -2
- package/dist/testing.d.ts +3 -2
- package/dist/testing.mjs +3 -3
- package/dist/{types.d-C41ePjvP.d.ts → types.d-wVRlLtBf.d.mts} +1 -1
- package/dist/{types.d-C41ePjvP.d.mts → types.d-wVRlLtBf.d.ts} +1 -1
- package/dist/{utils.d-BxxyDEb8.d.ts → utils.d-BK-PTOF8.d.ts} +1 -1
- package/dist/{utils.d-HIla3pD_.d.mts → utils.d-BzuTobEc.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +37 -29
- package/dist/vite.d.mts +26 -6
- package/dist/vite.d.ts +26 -6
- package/dist/vite.mjs +36 -28
- package/package.json +3 -3
- package/dist/analyzer-PPAHM4AW.cjs +0 -16
- package/dist/chunk-HHLEYA4B.cjs +0 -17
- package/dist/chunk-QYNZ3CTI.mjs +0 -17
- package/dist/response.d-BolW0Vx_.d.mts +0 -10
- package/dist/response.d-BolW0Vx_.d.ts +0 -10
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }
|
|
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 _chunkO32QPFVVcjs = require('./chunk-O32QPFVV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkC2JOS77Zcjs = require('./chunk-C2JOS77Z.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkLRB5OVRTcjs = require('./chunk-LRB5OVRT.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
var _chunkDVJM55D2cjs = require('./chunk-DVJM55D2.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkOWQV6MLMcjs = require('./chunk-OWQV6MLM.cjs');
|
|
18
|
+
|
|
19
|
+
|
|
14
20
|
|
|
15
21
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
16
22
|
|
|
@@ -105,24 +111,32 @@ function collectFarmDefaultMCPPages(sources, options) {
|
|
|
105
111
|
for (const source of sources) {
|
|
106
112
|
const module = isRecord(source.module) ? source.module : void 0;
|
|
107
113
|
if (_optionalChain([module, 'optionalAccess', _ => _.__farmRouteGuard])) continue;
|
|
108
|
-
if (!
|
|
114
|
+
if (!_chunkC2JOS77Zcjs.isFarmMarkdownMirrorExposed.call(void 0, options.markdown, source.pattern)) continue;
|
|
109
115
|
readable.push({ pattern: source.pattern, metadata: _optionalChain([module, 'optionalAccess', _2 => _2.metadata]) });
|
|
110
116
|
}
|
|
111
|
-
|
|
117
|
+
const i18n = resolveFarmDefaultMCPI18n(options.i18n, options.basePath);
|
|
118
|
+
const toPublicPath = (pathname) => i18n ? _chunkOWQV6MLMcjs.localizeFarmPathname.call(void 0, pathname, i18n.defaultLocale, i18n) : _chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, pathname, options.basePath);
|
|
119
|
+
return _chunkO32QPFVVcjs.collectFarmLlmsTxtPages.call(void 0, readable, {
|
|
112
120
|
origin: options.origin,
|
|
113
121
|
basePath: options.basePath,
|
|
114
122
|
markdown: options.markdown
|
|
115
123
|
}).map((page) => ({
|
|
116
124
|
path: page.path,
|
|
117
125
|
title: page.title,
|
|
118
|
-
|
|
126
|
+
// As the sitemap lists it: '/base' without trailingSlash ('/base/' redirects there).
|
|
127
|
+
url: `${options.origin}${_chunkDVJM55D2cjs.normalizeFarmTrailingSlashPathname.call(void 0,
|
|
128
|
+
toPublicPath(page.path),
|
|
129
|
+
options.trailingSlash === true
|
|
130
|
+
)}`,
|
|
119
131
|
...page.description ? { description: page.description } : {},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
options.basePath
|
|
123
|
-
)}`
|
|
132
|
+
// A mirror keeps its .md URL whatever trailingSlash says, as llms.txt links it.
|
|
133
|
+
markdownUrl: `${options.origin}${toPublicPath(_chunkC2JOS77Zcjs.getFarmMarkdownMirrorPath.call(void 0, page.path))}`
|
|
124
134
|
}));
|
|
125
135
|
}
|
|
136
|
+
function resolveFarmDefaultMCPI18n(i18n, basePath) {
|
|
137
|
+
if (!i18n || i18n.enabled === false) return void 0;
|
|
138
|
+
return { ...i18n, basePath: _nullishCoalesce(basePath, () => ( i18n.basePath)) };
|
|
139
|
+
}
|
|
126
140
|
function createFarmDefaultMCPServer(app, farmVersion) {
|
|
127
141
|
const name = typeof _optionalChain([app, 'optionalAccess', _3 => _3.name]) === "string" && app.name.trim() ? app.name.trim() : "farm-app";
|
|
128
142
|
const version = typeof _optionalChain([app, 'optionalAccess', _4 => _4.version]) === "string" && app.version.trim() ? app.version.trim() : farmVersion;
|
|
@@ -166,4 +180,5 @@ function isRecord(value) {
|
|
|
166
180
|
|
|
167
181
|
|
|
168
182
|
|
|
169
|
-
|
|
183
|
+
|
|
184
|
+
exports.FARM_DEFAULT_MCP_PATH = FARM_DEFAULT_MCP_PATH; exports.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS = FARM_DEFAULT_MCP_PROTOCOL_VERSIONS; exports.FARM_DEFAULT_MCP_DESCRIPTION = FARM_DEFAULT_MCP_DESCRIPTION; exports.FARM_DEFAULT_MCP_TOOLS = FARM_DEFAULT_MCP_TOOLS; exports.collectFarmDefaultMCPPages = collectFarmDefaultMCPPages; exports.resolveFarmDefaultMCPI18n = resolveFarmDefaultMCPI18n; exports.createFarmDefaultMCPServer = createFarmDefaultMCPServer; exports.resolveFarmDefaultMCPServer = resolveFarmDefaultMCPServer; exports.isFarmDefaultMCPPathname = isFarmDefaultMCPPathname; exports.farmConfigMountsMCP = farmConfigMountsMCP;
|
|
@@ -27,12 +27,12 @@ var _chunk6IOZPJ3Icjs = require('./chunk-6IOZPJ3I.cjs');
|
|
|
27
27
|
var _chunkCQL5ZGFUcjs = require('./chunk-CQL5ZGFU.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
+
var _chunkDBYNZIIQcjs = require('./chunk-DBYNZIIQ.cjs');
|
|
30
31
|
|
|
31
32
|
|
|
32
|
-
var _chunkI7J5RLGOcjs = require('./chunk-I7J5RLGO.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkNLBHLPEOcjs = require('./chunk-NLBHLPEO.cjs');
|
|
36
36
|
|
|
37
37
|
// src/client/metadata-reconciler.ts
|
|
38
38
|
var MANAGED_ATTRIBUTE = _chunk6IOZPJ3Icjs.FARM_METADATA_ATTRIBUTE;
|
|
@@ -687,7 +687,7 @@ var SPARouter = class {
|
|
|
687
687
|
async requestPageData(path, recover, interceptFrom, activeLayoutChain, signal, cacheData, resolvePrefetch) {
|
|
688
688
|
const response = await fetch(`/__farm/page-data?path=${encodeURIComponent(path)}`, {
|
|
689
689
|
signal,
|
|
690
|
-
headers:
|
|
690
|
+
headers: _chunkNLBHLPEOcjs.createFarmDeploymentRequestHeaders.call(void 0, this.options.deploymentId, {
|
|
691
691
|
Accept: "application/x-farm-deferred+json, application/json",
|
|
692
692
|
"X-Farm-SPA": "1",
|
|
693
693
|
...activeLayoutChain ? { "X-Farm-Layout-Chain": activeLayoutChain } : {},
|
|
@@ -696,8 +696,8 @@ var SPARouter = class {
|
|
|
696
696
|
..._chunkCQL5ZGFUcjs.getFarmIslandValueHeaders.call(void 0, )
|
|
697
697
|
})
|
|
698
698
|
});
|
|
699
|
-
if (
|
|
700
|
-
const error =
|
|
699
|
+
if (_chunkNLBHLPEOcjs.isFarmDeploymentMismatchResponse.call(void 0, response, this.options.deploymentId)) {
|
|
700
|
+
const error = _chunkNLBHLPEOcjs.createFarmDeploymentMismatchError.call(void 0,
|
|
701
701
|
response,
|
|
702
702
|
this.options.deploymentId || "unknown"
|
|
703
703
|
);
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
getFarmIslandValueHeaders
|
|
27
27
|
} from "./chunk-NBIVGHAT.mjs";
|
|
28
|
+
import {
|
|
29
|
+
readDeferredDataResponse
|
|
30
|
+
} from "./chunk-7BIW7VCW.mjs";
|
|
28
31
|
import {
|
|
29
32
|
createFarmDeploymentMismatchError,
|
|
30
33
|
createFarmDeploymentRequestHeaders,
|
|
31
34
|
isFarmDeploymentMismatchResponse
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import {
|
|
34
|
-
readDeferredDataResponse
|
|
35
|
-
} from "./chunk-7BIW7VCW.mjs";
|
|
35
|
+
} from "./chunk-IWJONXPF.mjs";
|
|
36
36
|
|
|
37
37
|
// src/client/metadata-reconciler.ts
|
|
38
38
|
var MANAGED_ATTRIBUTE = FARM_METADATA_ATTRIBUTE;
|
|
@@ -19,13 +19,13 @@ var _chunkSTF6VDYQcjs = require('./chunk-STF6VDYQ.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkZUVAGMQ5cjs = require('./chunk-ZUVAGMQ5.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkBTVDYS4Bcjs = require('./chunk-BTVDYS4B.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkO32QPFVVcjs = require('./chunk-O32QPFVV.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -64,7 +64,7 @@ var _chunk3EIPOTZVcjs = require('./chunk-3EIPOTZV.cjs');
|
|
|
64
64
|
var _chunk2HW5LWAHcjs = require('./chunk-2HW5LWAH.cjs');
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
var
|
|
67
|
+
var _chunkC2JOS77Zcjs = require('./chunk-C2JOS77Z.cjs');
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
var _chunkASYOWPSRcjs = require('./chunk-ASYOWPSR.cjs');
|
|
@@ -76,7 +76,7 @@ var _chunkFSODPZRTcjs = require('./chunk-FSODPZRT.cjs');
|
|
|
76
76
|
var _chunkWT6RAN2Icjs = require('./chunk-WT6RAN2I.cjs');
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkJX5VOLAVcjs = require('./chunk-JX5VOLAV.cjs');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
var _chunk5DX3O6TTcjs = require('./chunk-5DX3O6TT.cjs');
|
|
@@ -94,7 +94,7 @@ var _chunkCFG4QERRcjs = require('./chunk-CFG4QERR.cjs');
|
|
|
94
94
|
var _chunkPMJSG4JScjs = require('./chunk-PMJSG4JS.cjs');
|
|
95
95
|
|
|
96
96
|
|
|
97
|
-
var
|
|
97
|
+
var _chunkNLBHLPEOcjs = require('./chunk-NLBHLPEO.cjs');
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
var _chunkPWKAX5MScjs = require('./chunk-PWKAX5MS.cjs');
|
|
@@ -422,13 +422,13 @@ function resolveFarmAgentConfig(input, context = {}) {
|
|
|
422
422
|
const jsonLd = _optionalChain([input, 'optionalAccess', _17 => _17.jsonLd]);
|
|
423
423
|
return {
|
|
424
424
|
jsonLd: jsonLd === void 0 ? servesPages ? { ...DEFAULT_JSON_LD } : false : !jsonLd ? false : jsonLd === true ? {} : jsonLd,
|
|
425
|
-
noindexPreviews:
|
|
425
|
+
noindexPreviews: _chunkZUVAGMQ5cjs.resolveFarmNoindexPreviews.call(void 0, _optionalChain([input, 'optionalAccess', _18 => _18.noindexPreviews])),
|
|
426
426
|
// The docs engine answers /llms.txt with its own pages; a default here would replace it.
|
|
427
427
|
// llms-full.txt renders every listed page, so it stays opt-in.
|
|
428
|
-
llmsTxt:
|
|
428
|
+
llmsTxt: _chunkO32QPFVVcjs.resolveFarmLlmsTxtConfig.call(void 0, _nullishCoalesce(_optionalChain([input, 'optionalAccess', _19 => _19.llmsTxt]), () => ( (pageDefaults ? { full: false } : false)))),
|
|
429
429
|
// Same rule as llms.txt: the docs engine answers /sitemap.xml with its own pages.
|
|
430
|
-
sitemap:
|
|
431
|
-
crawlers:
|
|
430
|
+
sitemap: _chunkZUVAGMQ5cjs.resolveFarmAgentSitemap.call(void 0, _nullishCoalesce(_optionalChain([input, 'optionalAccess', _20 => _20.sitemap]), () => ( pageDefaults))),
|
|
431
|
+
crawlers: _chunkZUVAGMQ5cjs.resolveFarmAgentCrawlers.call(void 0, _optionalChain([input, 'optionalAccess', _21 => _21.crawlers])),
|
|
432
432
|
apiCatalog: resolveFarmAgentBoolean(_optionalChain([input, 'optionalAccess', _22 => _22.apiCatalog]), "apiCatalog", false),
|
|
433
433
|
aiCatalog: resolveFarmAgentBoolean(_optionalChain([input, 'optionalAccess', _23 => _23.aiCatalog]), "aiCatalog", true),
|
|
434
434
|
manifest: _chunkBTVDYS4Bcjs.resolveFarmAppManifestConfig.call(void 0, _optionalChain([input, 'optionalAccess', _24 => _24.manifest])),
|
|
@@ -550,6 +550,12 @@ async function applyFarmDocsFrameworkAutoDetection(userConfig, options) {
|
|
|
550
550
|
|
|
551
551
|
// src/config.ts
|
|
552
552
|
var FARM_RESOLVED_CUSTOM_CONTEXT = /* @__PURE__ */ Symbol.for("farm.resolvedCustomContext");
|
|
553
|
+
var FARM_DEPLOY_TARGET_PRESETS = {
|
|
554
|
+
vercel: "vercel",
|
|
555
|
+
cloudflare: "cloudflare-pages",
|
|
556
|
+
netlify: "netlify",
|
|
557
|
+
node: "node-server"
|
|
558
|
+
};
|
|
553
559
|
function resolveSchemaConfig(config) {
|
|
554
560
|
if (config === void 0) return {};
|
|
555
561
|
if (!config || typeof config !== "object" || Array.isArray(config)) {
|
|
@@ -586,18 +592,8 @@ function normalizeDeployTarget(target) {
|
|
|
586
592
|
return target;
|
|
587
593
|
}
|
|
588
594
|
function getPresetForDeployTarget(target) {
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
return "vercel";
|
|
592
|
-
case "cloudflare":
|
|
593
|
-
return "cloudflare-pages";
|
|
594
|
-
case "netlify":
|
|
595
|
-
return "netlify";
|
|
596
|
-
case "node":
|
|
597
|
-
return "node-server";
|
|
598
|
-
default:
|
|
599
|
-
return void 0;
|
|
600
|
-
}
|
|
595
|
+
const normalized = normalizeDeployTarget(target);
|
|
596
|
+
return normalized && Object.prototype.hasOwnProperty.call(FARM_DEPLOY_TARGET_PRESETS, normalized) ? FARM_DEPLOY_TARGET_PRESETS[normalized] : void 0;
|
|
601
597
|
}
|
|
602
598
|
function getDeployTargetForPreset(preset) {
|
|
603
599
|
if (!preset) return void 0;
|
|
@@ -640,8 +636,18 @@ function assertFarmDeployNameSupported(kind, name) {
|
|
|
640
636
|
`Deploy ${kind} "vercel-edge" is not supported: Farm's Nitro version has no vercel-edge preset. Use the "vercel" ${kind} instead, which deploys Vercel Functions on Fluid compute.`
|
|
641
637
|
);
|
|
642
638
|
}
|
|
639
|
+
function assertFarmDeployTargetSupported(target) {
|
|
640
|
+
if (!target || getPresetForDeployTarget(target)) return;
|
|
641
|
+
assertFarmDeployNameSupported("target", target);
|
|
642
|
+
const targets = Object.keys(FARM_DEPLOY_TARGET_PRESETS).map((name) => `"${name}"`).join(", ");
|
|
643
|
+
throw new Error(
|
|
644
|
+
`Unknown deploy target "${String(target)}". Farm's deploy targets are ${targets}. To build with another Nitro preset, set deploy.preset instead.`
|
|
645
|
+
);
|
|
646
|
+
}
|
|
643
647
|
function resolveDeployConfig(config, overrides = {}) {
|
|
644
648
|
const deploy = config.deploy || {};
|
|
649
|
+
assertFarmDeployTargetSupported(deploy.target);
|
|
650
|
+
assertFarmDeployTargetSupported(overrides.target);
|
|
645
651
|
const distDir = config.distDir || ".farm";
|
|
646
652
|
const overrideTarget = normalizeDeployTarget(overrides.target);
|
|
647
653
|
let target = overrideTarget ? overrideTarget : overrides.preset ? getDeployTargetForPreset(overrides.preset) : normalizeDeployTarget(deploy.target);
|
|
@@ -665,7 +671,6 @@ function resolveDeployConfig(config, overrides = {}) {
|
|
|
665
671
|
const preset = overrides.preset || overrideTargetPreset || configuredPreset || getPresetForDeployTarget(target) || "node-server";
|
|
666
672
|
const resolvedTarget = target || getDeployTargetForPreset(preset);
|
|
667
673
|
assertFarmDeployNameSupported("preset", preset);
|
|
668
|
-
assertFarmDeployNameSupported("target", resolvedTarget);
|
|
669
674
|
if (detectedTarget && resolvedTarget !== detectedTarget) {
|
|
670
675
|
const mismatchKey = `mismatch:${resolvedTarget}:${detectedTarget}`;
|
|
671
676
|
if (!warnedPlatformMismatches.has(mismatchKey)) {
|
|
@@ -1089,7 +1094,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1089
1094
|
const srcDir = userConfig.srcDir || "src";
|
|
1090
1095
|
_chunkRE5E2G5Scjs.setFarmProjectSourceDir.call(void 0, root, srcDir);
|
|
1091
1096
|
const docs = await resolveDocsConfig(userConfig.docs, { root, srcDir });
|
|
1092
|
-
const md =
|
|
1097
|
+
const md = _chunkC2JOS77Zcjs.resolveMarkdownConfig.call(void 0, userConfig.md);
|
|
1093
1098
|
const mdx = _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, userConfig.mdx);
|
|
1094
1099
|
const env = _chunk3EIPOTZVcjs.resolveEnv.call(void 0, userConfig.env, process.env);
|
|
1095
1100
|
_chunk3EIPOTZVcjs.setEnv.call(void 0, env);
|
|
@@ -1114,7 +1119,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1114
1119
|
}
|
|
1115
1120
|
const integrations = nativeAuthIntegration ? { ...userConfig.integrations, auth: nativeAuthIntegration } : userConfig.integrations || {};
|
|
1116
1121
|
const generateBuildId = userConfig.generateBuildId || (() => `build-${Date.now()}`);
|
|
1117
|
-
const deploymentId =
|
|
1122
|
+
const deploymentId = _chunkNLBHLPEOcjs.normalizeFarmDeploymentId.call(void 0,
|
|
1118
1123
|
userConfig.deploymentId || process.env.FARM_DEPLOYMENT_ID || process.env.VERCEL_GIT_COMMIT_SHA || process.env.CF_PAGES_COMMIT_SHA || (mode === "production" ? await generateBuildId() : "development")
|
|
1119
1124
|
);
|
|
1120
1125
|
const basePath = _chunkD22BUQKWcjs.normalizeFarmConfigBasePath.call(void 0, userConfig.basePath);
|
|
@@ -1185,7 +1190,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1185
1190
|
plugins: [
|
|
1186
1191
|
...mobileSessionPlugin ? [mobileSessionPlugin] : [],
|
|
1187
1192
|
...nativeServerFnPlugin ? [nativeServerFnPlugin] : [],
|
|
1188
|
-
...
|
|
1193
|
+
..._chunkJX5VOLAVcjs.resolveIntegrationPlugins.call(void 0, integrations),
|
|
1189
1194
|
...nativeMCPPlugin ? [nativeMCPPlugin] : [],
|
|
1190
1195
|
...userConfig.plugins || []
|
|
1191
1196
|
],
|
|
@@ -1203,7 +1208,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1203
1208
|
userConfig.images,
|
|
1204
1209
|
_chunk67MZTLTFcjs.isFarmRendererDisabled.call(void 0, userConfig.renderer) ? "none" : void 0
|
|
1205
1210
|
),
|
|
1206
|
-
performance:
|
|
1211
|
+
performance: _chunkZUVAGMQ5cjs.resolveFarmPerformanceConfig.call(void 0, userConfig.performance),
|
|
1207
1212
|
theme: _chunkWT6RAN2Icjs.resolveFarmThemeConfig.call(void 0, userConfig.theme, basePath),
|
|
1208
1213
|
publicDir: userConfig.publicDir || "public",
|
|
1209
1214
|
i18n: _chunkLNVGXUL3cjs.resolveFarmI18nConfig.call(void 0, userConfig.i18n, { root, mode, basePath }),
|
|
@@ -12,6 +12,7 @@ var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
|
12
12
|
// src/i18n/resolver.ts
|
|
13
13
|
function getFarmLocaleVaryHeaders(config, resolution) {
|
|
14
14
|
if (!config.enabled || resolution.source === "url") return [];
|
|
15
|
+
if (isFarmLocaleNeutralPathname(resolution.pathname)) return [];
|
|
15
16
|
const headers = [];
|
|
16
17
|
if (config.detection.includes("cookie")) headers.push("Cookie");
|
|
17
18
|
if (config.detection.includes("accept-language")) headers.push("Accept-Language");
|
|
@@ -42,6 +43,14 @@ function resolveFarmLocaleRequest(request, config, options = {}) {
|
|
|
42
43
|
persist: false
|
|
43
44
|
};
|
|
44
45
|
}
|
|
46
|
+
if (isFarmLocaleNeutralPathname(pathMatch.pathname)) {
|
|
47
|
+
return {
|
|
48
|
+
locale: config.defaultLocale,
|
|
49
|
+
source: "default",
|
|
50
|
+
pathname: pathMatch.pathname,
|
|
51
|
+
persist: false
|
|
52
|
+
};
|
|
53
|
+
}
|
|
45
54
|
const detected = detectLocale(request, config);
|
|
46
55
|
const shouldRedirect = options.redirect !== false && !isInternalOrApiPath(_chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, url.pathname, config.basePath)) && config.routing !== "none" && (config.routing === "prefix-always" || detected.locale !== config.defaultLocale);
|
|
47
56
|
return {
|
|
@@ -142,6 +151,17 @@ function readCookie(header, name) {
|
|
|
142
151
|
}
|
|
143
152
|
return void 0;
|
|
144
153
|
}
|
|
154
|
+
var FARM_LOCALE_NEUTRAL_FILE_NAMES = /* @__PURE__ */ new Set([
|
|
155
|
+
"robots.txt",
|
|
156
|
+
"sitemap.xml",
|
|
157
|
+
"manifest.webmanifest",
|
|
158
|
+
"llms.txt",
|
|
159
|
+
"llms-full.txt"
|
|
160
|
+
]);
|
|
161
|
+
function isFarmLocaleNeutralPathname(pathname) {
|
|
162
|
+
if (pathname.startsWith("/.well-known/") || pathname.endsWith("/server-card")) return true;
|
|
163
|
+
return FARM_LOCALE_NEUTRAL_FILE_NAMES.has(pathname.slice(pathname.lastIndexOf("/") + 1));
|
|
164
|
+
}
|
|
145
165
|
function isInternalOrApiPath(pathname) {
|
|
146
166
|
return pathname === "/api" || pathname.startsWith("/api/") || pathname.startsWith("/__farm/") || pathname.startsWith("/_farm/");
|
|
147
167
|
}
|
|
@@ -3,7 +3,13 @@ import {
|
|
|
3
3
|
getFarmMarkdownMirrorPath,
|
|
4
4
|
isFarmMarkdownMirrorExposed,
|
|
5
5
|
matchesFarmMarkdownRoutePattern
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KPJYBSHL.mjs";
|
|
7
|
+
import {
|
|
8
|
+
normalizeFarmTrailingSlashPathname
|
|
9
|
+
} from "./chunk-4O26BPUY.mjs";
|
|
10
|
+
import {
|
|
11
|
+
localizeFarmPathname
|
|
12
|
+
} from "./chunk-7S7AAK2D.mjs";
|
|
7
13
|
import {
|
|
8
14
|
applyFarmBasePath
|
|
9
15
|
} from "./chunk-SF3JB56B.mjs";
|
|
@@ -64,17 +70,28 @@ function collectFarmLlmsTxtPages(sources, options) {
|
|
|
64
70
|
}
|
|
65
71
|
if (exclude.some((pattern) => matchesFarmMarkdownRoutePattern(pattern, path))) continue;
|
|
66
72
|
if (isFarmMetadataNoIndex(source.metadata)) continue;
|
|
67
|
-
const target = isFarmMarkdownMirrorExposed(options.markdown, path) ? getFarmMarkdownMirrorPath(path) :
|
|
73
|
+
const target = isFarmMarkdownMirrorExposed(options.markdown, path) ? getFarmAgentPagePublicPath(getFarmMarkdownMirrorPath(path), options) : normalizeFarmTrailingSlashPathname(
|
|
74
|
+
getFarmAgentPagePublicPath(path, options),
|
|
75
|
+
options.trailingSlash === true
|
|
76
|
+
);
|
|
68
77
|
const description = readMetadataString(source.metadata, "description");
|
|
69
78
|
pages.set(path, {
|
|
70
79
|
path,
|
|
71
80
|
title: readMetadataTitle(source.metadata) ?? fallbackPageTitle(path),
|
|
72
|
-
url: `${options.origin}${
|
|
81
|
+
url: `${options.origin}${target}`,
|
|
73
82
|
...description ? { description } : {}
|
|
74
83
|
});
|
|
75
84
|
}
|
|
76
85
|
return [...pages.values()].sort((left, right) => left.path.localeCompare(right.path));
|
|
77
86
|
}
|
|
87
|
+
function getFarmAgentPagePublicPath(pathname, options) {
|
|
88
|
+
const { i18n } = options;
|
|
89
|
+
if (!i18n || i18n.enabled === false) return applyFarmBasePath(pathname, options.basePath);
|
|
90
|
+
return localizeFarmPathname(pathname, i18n.defaultLocale, {
|
|
91
|
+
...i18n,
|
|
92
|
+
basePath: options.basePath ?? i18n.basePath
|
|
93
|
+
});
|
|
94
|
+
}
|
|
78
95
|
function resolveFarmAgentOrigin(metadataBase, requestOrigin) {
|
|
79
96
|
if (typeof metadataBase !== "string" && !(metadataBase instanceof URL)) return requestOrigin;
|
|
80
97
|
try {
|
|
@@ -359,6 +376,7 @@ function isRecord(value) {
|
|
|
359
376
|
export {
|
|
360
377
|
resolveFarmLlmsTxtConfig,
|
|
361
378
|
collectFarmLlmsTxtPages,
|
|
379
|
+
getFarmAgentPagePublicPath,
|
|
362
380
|
resolveFarmAgentOrigin,
|
|
363
381
|
readFarmLlmsMarkdownFrom,
|
|
364
382
|
isFarmMetadataNoIndex,
|
|
@@ -1,10 +1,14 @@
|
|
|
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 _chunkQO43L7Z4cjs = require('./chunk-QO43L7Z4.cjs');
|
|
5
4
|
|
|
5
|
+
var _chunkO32QPFVVcjs = require('./chunk-O32QPFVV.cjs');
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
var _chunkC2JOS77Zcjs = require('./chunk-C2JOS77Z.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkDVJM55D2cjs = require('./chunk-DVJM55D2.cjs');
|
|
8
12
|
|
|
9
13
|
|
|
10
14
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
@@ -162,20 +166,26 @@ function resolveRoutePatterns(value, key) {
|
|
|
162
166
|
}
|
|
163
167
|
function createFarmDefaultSitemap(sources, options) {
|
|
164
168
|
const { include, exclude } = options.config;
|
|
165
|
-
const base =
|
|
169
|
+
const base = _chunkO32QPFVVcjs.resolveFarmAgentOrigin.call(void 0, options.metadataBase, options.origin);
|
|
166
170
|
const entries = /* @__PURE__ */ new Map();
|
|
167
171
|
for (const source of sources) {
|
|
168
172
|
const path = source.pattern;
|
|
169
173
|
if (path.includes("[") || path.includes("(") || entries.has(path)) continue;
|
|
170
|
-
if (include.length && !include.some((pattern) =>
|
|
174
|
+
if (include.length && !include.some((pattern) => _chunkC2JOS77Zcjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) {
|
|
171
175
|
continue;
|
|
172
176
|
}
|
|
173
|
-
if (exclude.some((pattern) =>
|
|
177
|
+
if (exclude.some((pattern) => _chunkC2JOS77Zcjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) continue;
|
|
174
178
|
const module = isRecord(source.module) ? source.module : void 0;
|
|
175
|
-
if (
|
|
179
|
+
if (_chunkO32QPFVVcjs.isFarmMetadataNoIndex.call(void 0, _optionalChain([module, 'optionalAccess', _2 => _2.metadata]))) continue;
|
|
176
180
|
if (_optionalChain([module, 'optionalAccess', _3 => _3.__farmRouteGuard])) continue;
|
|
177
181
|
entries.set(path, {
|
|
178
|
-
url: new URL(
|
|
182
|
+
url: new URL(
|
|
183
|
+
_chunkDVJM55D2cjs.normalizeFarmTrailingSlashPathname.call(void 0,
|
|
184
|
+
_chunkO32QPFVVcjs.getFarmAgentPagePublicPath.call(void 0, path, options),
|
|
185
|
+
options.trailingSlash === true
|
|
186
|
+
),
|
|
187
|
+
base
|
|
188
|
+
).href,
|
|
179
189
|
...source.lastModified ? { lastModified: source.lastModified } : {}
|
|
180
190
|
});
|
|
181
191
|
}
|
|
@@ -61,6 +61,12 @@ function mergeRouteRenderingDirectiveConfig(directiveConfig, mod, options) {
|
|
|
61
61
|
directive: directiveConfig?.directive
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
+
function resolveRouteSharedCacheControl(view, pprCanCache = false) {
|
|
65
|
+
if (view.dynamic === "force-dynamic") return null;
|
|
66
|
+
if (!view.ssg && !pprCanCache) return null;
|
|
67
|
+
const revalidate = typeof view.revalidate === "number" && view.revalidate > 0 ? view.revalidate : 60;
|
|
68
|
+
return `public, s-maxage=${revalidate}, stale-while-revalidate=300`;
|
|
69
|
+
}
|
|
64
70
|
|
|
65
71
|
// src/ssg-paths.ts
|
|
66
72
|
var OPTIONAL_CATCH_ALL_SEGMENT = /^\[\[\.\.\.([^\]]+)\]\]$/;
|
|
@@ -176,6 +182,7 @@ function encodePathSegment(value) {
|
|
|
176
182
|
|
|
177
183
|
export {
|
|
178
184
|
mergeRouteRenderingDirectiveConfig,
|
|
185
|
+
resolveRouteSharedCacheControl,
|
|
179
186
|
materializeSSGRoutePath,
|
|
180
187
|
getOptionalCatchAllParameterNames,
|
|
181
188
|
normalizeStaticPathParams
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RouteRenderingOptions, D as DirectiveRenderingConfig, a as RouteRenderingConfig } from './route-rendering.d-
|
|
2
|
-
import { i as RouteModule,
|
|
1
|
+
import { R as RouteRenderingOptions, D as DirectiveRenderingConfig, a as RouteRenderingConfig } from './route-rendering.d-C-et2TZ1.mjs';
|
|
2
|
+
import { i as RouteModule, bg as SSGCollectionResult, bh as SSGPage } from './client-plugins.d-Pi9nG0W0.mjs';
|
|
3
3
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RouteRenderingOptions, D as DirectiveRenderingConfig, a as RouteRenderingConfig } from './route-rendering.d-
|
|
2
|
-
import { i as RouteModule,
|
|
1
|
+
import { R as RouteRenderingOptions, D as DirectiveRenderingConfig, a as RouteRenderingConfig } from './route-rendering.d-DhsY5M2I.js';
|
|
2
|
+
import { i as RouteModule, bg as SSGCollectionResult, bh as SSGPage } from './client-plugins.d-DwUqh4gp.js';
|
|
3
3
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
|
|
4
4
|
|
|
5
5
|
/**
|