@farm.js/core 0.1.69 → 0.1.71
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-KE4J3W7S.cjs} +8 -5
- package/dist/{agent-mcp-handler-AZ7QW4UP.mjs → agent-mcp-handler-VIT4GOSR.mjs} +7 -4
- package/dist/{agent-mcp.d-DOfBMEzP.d.mts → agent-mcp.d-BzNw6JI8.d.ts} +24 -5
- package/dist/{agent-mcp.d-DnIgriX1.d.ts → agent-mcp.d-CgFen3EH.d.mts} +24 -5
- 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-LPIVRSTJ.cjs +16 -0
- package/dist/{analyzer-NAL5TJUP.mjs → analyzer-VK3BAOFI.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 -7
- package/dist/api.d.ts +8 -7
- package/dist/api.mjs +5 -5
- package/dist/{app-manifest.d-CaAcaukR.d.ts → app-manifest.d-DY4JfJxi.d.ts} +1 -1
- package/dist/{app-manifest.d-_BVbI0xp.d.mts → app-manifest.d-DpDK_B1k.d.mts} +1 -1
- package/dist/app-markdown.cjs +7 -4
- package/dist/app-markdown.d.mts +5 -4
- package/dist/app-markdown.d.ts +5 -4
- package/dist/app-markdown.mjs +6 -3
- package/dist/{app.d-BWeDqOaF.d.ts → app.d-BeK6bb1c.d.ts} +22 -10
- package/dist/{app.d-CaPwtytN.d.mts → app.d-D-5UNrFd.d.mts} +22 -10
- package/dist/{base-path.d-CTDVF0Fc.d.mts → base-path.d-BJ3SYpB8.d.mts} +6 -1
- package/dist/{base-path.d-CTDVF0Fc.d.ts → base-path.d-BJ3SYpB8.d.ts} +6 -1
- package/dist/{chunk-4ZXKYCYK.mjs → chunk-255J7K4X.mjs} +1 -1
- package/dist/{chunk-RVGLYMJM.cjs → chunk-2AM26UGI.cjs} +2 -2
- package/dist/{chunk-5TOWKGV3.mjs → chunk-2CQC5CMD.mjs} +1 -1
- package/dist/{chunk-VO65MYJD.cjs → chunk-2IFT2CSA.cjs} +4 -4
- 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-CV6MFQ4Y.mjs → chunk-3AUINHFG.mjs} +1 -1
- package/dist/{chunk-TKYOJ5G2.cjs → chunk-3BQ7QHUH.cjs} +5 -5
- package/dist/{chunk-MMDKYJ5V.cjs → chunk-3GNVIYPO.cjs} +7 -7
- package/dist/{chunk-65Y5SIBH.cjs → chunk-3QM74STY.cjs} +1 -1
- package/dist/{chunk-FJMC24KG.cjs → chunk-42KMUIWZ.cjs} +0 -3
- package/dist/{chunk-YVPX5PI5.mjs → chunk-4O26BPUY.mjs} +8 -0
- package/dist/{chunk-PDQ6EGPK.mjs → chunk-4OD2LXF2.mjs} +2 -2
- package/dist/{chunk-LENKRGBV.mjs → chunk-5CFHQ7HM.mjs} +1 -1
- package/dist/{chunk-3Y52TWYU.mjs → chunk-62ZRA7XU.mjs} +0 -3
- package/dist/{chunk-K76CBYQM.mjs → chunk-7A3URI2F.mjs} +20 -0
- package/dist/{chunk-UHU4QALN.mjs → chunk-7BUE2GM6.mjs} +294 -164
- package/dist/{chunk-L6NWQ3DR.cjs → chunk-7OHJWFLB.cjs} +600 -469
- package/dist/{chunk-VX2HZGC7.cjs → chunk-ACGBXN3U.cjs} +2 -2
- package/dist/{chunk-MV7NWU23.mjs → chunk-AYVGD3PK.mjs} +1 -1
- package/dist/{chunk-FT6KJHS3.cjs → chunk-C2JOS77Z.cjs} +4 -1
- package/dist/{chunk-CRVSYDHV.mjs → chunk-CKQAQFF6.mjs} +2 -2
- package/dist/{chunk-QOGIZKSO.cjs → chunk-CSQPMV3Q.cjs} +21 -11
- package/dist/chunk-DC2AXGNZ.mjs +129 -0
- package/dist/{chunk-Q4HH5Q6A.cjs → chunk-DMXMIE2C.cjs} +2 -2
- package/dist/{chunk-MAGFDK4Q.mjs → chunk-DPIGYXSV.mjs} +1 -1
- package/dist/{chunk-GUMKIQJL.cjs → chunk-DPYBVVL3.cjs} +2 -2
- 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-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-PDFFYZAT.cjs → chunk-GF22VGMS.cjs} +2 -2
- package/dist/{chunk-IYLZZTP6.mjs → chunk-GUU3IZSM.mjs} +167 -77
- package/dist/{chunk-OOJBBHYW.cjs → chunk-GVYZCJZH.cjs} +30 -1
- package/dist/{chunk-YOHHL2UE.mjs → chunk-I4KPA2C6.mjs} +1 -1
- package/dist/{chunk-PEYDQMSA.mjs → chunk-IGXS54GC.mjs} +6 -6
- package/dist/{chunk-NVOMQLI2.mjs → chunk-IWJONXPF.mjs} +11 -0
- package/dist/{chunk-SZORL7EW.mjs → chunk-IYDJNCR7.mjs} +6 -6
- package/dist/{chunk-HEJM46HQ.mjs → chunk-J5ASGNKF.mjs} +28 -2
- package/dist/{chunk-RLH5AH2M.mjs → chunk-JDO346NV.mjs} +1 -1
- package/dist/{chunk-K6SXMVXO.mjs → chunk-JMFTKNBA.mjs} +22 -7
- package/dist/{chunk-YIHRZBD7.cjs → chunk-JRGR5Z4K.cjs} +1 -1
- package/dist/{chunk-4W4ZWSV2.cjs → chunk-JVA4PIYN.cjs} +604 -434
- 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-OFBLGH6V.cjs → chunk-K66JILV3.cjs} +47 -34
- package/dist/{chunk-6GQJVY4E.cjs → chunk-KEB7AGS6.cjs} +17 -17
- package/dist/{chunk-IFR74W6S.mjs → chunk-KPJYBSHL.mjs} +4 -1
- package/dist/{chunk-TEJ67GD2.mjs → chunk-KQAB5LML.mjs} +28 -6
- package/dist/{chunk-DHR2WDSL.cjs → chunk-KWST2O22.cjs} +387 -297
- package/dist/{chunk-3EEINK7G.cjs → chunk-L6E4SHUB.cjs} +41 -15
- package/dist/{chunk-KI3MU7B5.mjs → chunk-LDVJIBGN.mjs} +1 -1
- package/dist/{chunk-5FBZJJGA.mjs → chunk-LXEJNWF5.mjs} +2 -2
- package/dist/{chunk-AKIQ54FK.cjs → chunk-MBCRWU3P.cjs} +26 -81
- package/dist/{chunk-22LGTSBA.cjs → chunk-MEJCP2LX.cjs} +1 -1
- package/dist/{chunk-ZR2QB45W.mjs → chunk-MITIAOUQ.mjs} +4 -4
- package/dist/{chunk-OCNV4CI2.cjs → chunk-MQ4DYVFS.cjs} +26 -0
- package/dist/{chunk-P2NBQ5JI.mjs → chunk-MWUDEYBI.mjs} +1 -1
- package/dist/{chunk-LR4KP3I7.cjs → chunk-N3XO5AL5.cjs} +2 -2
- 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-R2ZHU37O.mjs → chunk-NLRAQXAA.mjs} +26 -0
- package/dist/{chunk-QO43L7Z4.cjs → chunk-O32QPFVV.cjs} +25 -7
- package/dist/{chunk-CO6UYM2D.mjs → chunk-O5QUJEWT.mjs} +1 -1
- package/dist/{chunk-JL2YW5KX.mjs → chunk-OAEDVXVE.mjs} +44 -1
- package/dist/{chunk-F6YLXK5L.cjs → chunk-PLXD2MJV.cjs} +19 -19
- package/dist/{chunk-JFPKARWM.cjs → chunk-PMU4U2W2.cjs} +1 -0
- package/dist/{chunk-GTQOEEE7.cjs → chunk-Q5HMVGR5.cjs} +13 -13
- package/dist/{chunk-ZYCEEE3V.mjs → chunk-QUFENL7Q.mjs} +2 -2
- package/dist/{chunk-QOSDWGKT.mjs → chunk-QVBXTSIZ.mjs} +1 -1
- package/dist/{chunk-OGVTUGMU.mjs → chunk-REP6HWJN.mjs} +13 -3
- package/dist/{chunk-ANMIR6US.mjs → chunk-RJUCNO7R.mjs} +1 -1
- package/dist/{chunk-WYL4ODZ4.mjs → chunk-SE7HPBYK.mjs} +30 -1
- package/dist/{chunk-GQ6QOH7T.cjs → chunk-SXMWVP2L.cjs} +12 -12
- package/dist/{chunk-D5F7RPZP.mjs → chunk-THG2TVDH.mjs} +3 -3
- package/dist/{chunk-X3MHKLCO.cjs → chunk-TP4RAV7Y.cjs} +25 -10
- package/dist/{chunk-DWLNLU55.cjs → chunk-TPYAYFMF.cjs} +2 -2
- package/dist/{chunk-Y6KHPJDB.cjs → chunk-U7VH3Q5E.cjs} +2 -2
- package/dist/{chunk-4JRAMCUP.cjs → chunk-UISZLYKY.cjs} +22 -22
- package/dist/{chunk-CKCKCUYO.mjs → chunk-UQUOSNRN.mjs} +511 -341
- package/dist/{chunk-2P7UYHZP.mjs → chunk-V25GSH43.mjs} +1 -1
- package/dist/{chunk-437QZIC2.cjs → chunk-VNBDN5W2.cjs} +5 -5
- package/dist/{chunk-ABIBASLJ.cjs → chunk-VXB5CMNC.cjs} +2 -2
- package/dist/{chunk-G7NBPP7H.mjs → chunk-W2T6NDNP.mjs} +11 -1
- package/dist/{chunk-AJNBTOVQ.mjs → chunk-WW3LRNQV.mjs} +1 -1
- package/dist/{chunk-GFPS7MNE.mjs → chunk-WX63N6C5.mjs} +4 -4
- package/dist/{chunk-ULMXZYOA.mjs → chunk-X7LGLF33.mjs} +1 -1
- package/dist/{chunk-VOQ7XZZT.cjs → chunk-Y2SZVIVH.cjs} +20 -0
- package/dist/{chunk-XCAQTCGK.mjs → chunk-YBY34UHB.mjs} +1 -1
- package/dist/{chunk-5NFQ6AZI.cjs → chunk-YCNHUIPR.cjs} +33 -11
- package/dist/{chunk-YGJ5P3TJ.mjs → chunk-Z3GPAFIA.mjs} +21 -3
- package/dist/{chunk-PJQ5W356.mjs → chunk-Z5ZZAGIH.mjs} +1 -0
- package/dist/{chunk-L5OZN6YW.cjs → chunk-ZPUAOKHV.cjs} +3 -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-CnEeVvGG.d.mts → client-component.d-DwpH251K.d.mts} +2 -2
- package/dist/{client-component.d-CfJxuXZl.d.ts → client-component.d-fYupugbZ.d.ts} +2 -2
- package/dist/{client-plugins.d-D7dHV1Nf.d.ts → client-plugins.d-BxqFfHpM.d.ts} +39 -3
- package/dist/{client-plugins.d-Do5ULA0x.d.mts → client-plugins.d-k3bOT5gz.d.mts} +39 -3
- 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-BP4EBTKQ.mjs → devtools-6MXPFPNJ.mjs} +9 -8
- package/dist/{devtools-7HNDS4SY.cjs → devtools-O5625KCK.cjs} +10 -9
- package/dist/docs.cjs +13 -12
- package/dist/docs.d.mts +4 -3
- package/dist/docs.d.ts +4 -3
- package/dist/docs.mjs +12 -11
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.mjs +2 -2
- package/dist/headers.d-DalIGbVO.d.ts +18 -0
- package/dist/headers.d-sNT7ZQiU.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/index.cjs +50 -45
- package/dist/{index.d-CVFk37uX.d.ts → index.d-BcA-secm.d.ts} +1 -1
- package/dist/{index.d-B1MpEJAo.d.mts → index.d-DDHHAv7j.d.mts} +1 -1
- package/dist/index.d.mts +26 -24
- package/dist/index.d.ts +26 -24
- package/dist/index.mjs +63 -58
- 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 +6 -3
- package/dist/internal/app-markdown-runtime.d.mts +13 -4
- package/dist/internal/app-markdown-runtime.d.ts +13 -4
- package/dist/internal/app-markdown-runtime.mjs +5 -2
- package/dist/internal/build-runtime.cjs +37 -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 +36 -36
- package/dist/internal/cli-runtime.cjs +18 -15
- package/dist/internal/cli-runtime.mjs +17 -14
- 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 +11 -10
- package/dist/internal/config-runtime.d.mts +6 -5
- package/dist/internal/config-runtime.d.ts +6 -5
- package/dist/internal/config-runtime.mjs +10 -9
- 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 +48 -17
- package/dist/internal/production-runtime.d.mts +53 -18
- package/dist/internal/production-runtime.d.ts +53 -18
- package/dist/internal/production-runtime.mjs +50 -19
- 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-CBqr-LfI.d.mts → mount.d-C1PONsEe.d.mts} +1 -1
- package/dist/{mount.d-CGzN61Kq.d.ts → mount.d-D3JOux2V.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-BwCOhpj7.d.mts → navigation-delegate.d-CJQQHboA.d.mts} +1 -1
- package/dist/{navigation-delegate.d-CLH2dXjy.d.ts → navigation-delegate.d-CQQPbdkE.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/{nitro-Y3LGITW3.cjs → nitro-2LMOMIST.cjs} +2 -2
- package/dist/{nitro-NSTXT7LB.mjs → nitro-72TFIGGO.mjs} +1 -1
- package/dist/{plugin-F2O4BFTK.cjs → plugin-5PIQQVRP.cjs} +2 -2
- package/dist/{plugin-VEBRN7A3.mjs → plugin-QZT747YW.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-CzGDjcT0.d.mts → render-plan.d-CiUj0rq5.d.mts} +1 -1
- package/dist/{render-plan.d-W6LmjD6y.d.ts → render-plan.d-DHuJMJRP.d.ts} +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-CgNVderU.d.mts → request.d-D-F7o7tb.d.mts} +1 -1
- package/dist/{request.d-CTVRZiQv.d.ts → request.d-DRUbOmYD.d.ts} +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-D0bmZVJA.d.mts → route-rendering.d-6smgwT2t.d.mts} +9 -2
- package/dist/{route-rendering.d-FDSNtCMg.d.ts → route-rendering.d-KwqM_mlK.d.ts} +9 -2
- package/dist/{router.d-DZ3ldniI.d.ts → router.d-B6sesMRD.d.ts} +1 -1
- package/dist/{router.d-GRKm_uAV.d.mts → router.d-BYmDeDlp.d.mts} +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-J4KKBSCH.cjs → rsc-pipeline-P4PCWDO2.cjs} +14 -13
- package/dist/{rsc-pipeline-PJZOVYSY.mjs → rsc-pipeline-R2GOKIMU.mjs} +13 -12
- package/dist/{runtime-QDBSE4H6.mjs → runtime-DP5DYGW5.mjs} +12 -11
- package/dist/{runtime-OLEO5NXF.cjs → runtime-WA2Q4SLG.cjs} +20 -19
- package/dist/{runtime.d-DqXihlxm.d.mts → runtime.d-BFSJf-ww.d.mts} +1 -1
- package/dist/{runtime.d-BtL3PCL3.d.ts → runtime.d-B_uPfMjA.d.ts} +2 -2
- package/dist/{runtime.d-pqFQBU2N.d.ts → runtime.d-CbdMI0Oy.d.ts} +1 -1
- package/dist/{runtime.d-3iJAKptR.d.mts → runtime.d-nUz0HAL4.d.mts} +2 -2
- 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-Dhvy60p4.d.mts → spa-router.d-D4EDwR20.d.mts} +3 -3
- package/dist/{spa-router.d-DhOhaQ-7.d.ts → spa-router.d-mC1D5cTN.d.ts} +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-BVCMRRau.d.ts → utils.d-A2X3a6z_.d.ts} +1 -1
- package/dist/{utils.d-Q8EHCpkF.d.mts → utils.d-DxMzteqE.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 +28 -6
- package/dist/vite.d.ts +28 -6
- package/dist/vite.mjs +36 -28
- package/package.json +3 -3
- package/dist/analyzer-SAJSV6SP.cjs +0 -16
- package/dist/response.d-BolW0Vx_.d.mts +0 -10
- package/dist/response.d-BolW0Vx_.d.ts +0 -10
|
@@ -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
|
);
|
|
@@ -15,14 +15,14 @@ var _chunkWBTHHTBOcjs = require('./chunk-WBTHHTBO.cjs');
|
|
|
15
15
|
var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkMEJCP2LXcjs = require('./chunk-MEJCP2LX.cjs');
|
|
19
19
|
|
|
20
20
|
// src/mobile/analyzer.ts
|
|
21
21
|
var _crypto = require('crypto');
|
|
22
22
|
var _fs = require('fs');
|
|
23
23
|
var _promises = require('fs/promises');
|
|
24
24
|
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
25
|
-
var ANALYZER_VERSION = `7:${
|
|
25
|
+
var ANALYZER_VERSION = `7:${_chunkMEJCP2LXcjs.FARM_VERSION}`;
|
|
26
26
|
var INTRINSIC_KINDS = {};
|
|
27
27
|
for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
|
|
28
28
|
INTRINSIC_KINDS[tag] = "View";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
materializeSSGRoutePath,
|
|
11
11
|
mergeRouteRenderingDirectiveConfig,
|
|
12
12
|
normalizeStaticPathParams
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZXDX7VYZ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
FARM_NATIVE_SERVER_FN_PLUGIN
|
|
16
16
|
} from "./chunk-L4RTTTVE.mjs";
|
|
@@ -26,6 +26,9 @@ import {
|
|
|
26
26
|
getFarmAppDirectories,
|
|
27
27
|
getFarmSourceRoots
|
|
28
28
|
} from "./chunk-E7VF3LQ5.mjs";
|
|
29
|
+
import {
|
|
30
|
+
isFarmMarkdownPageFile
|
|
31
|
+
} from "./chunk-J5ASGNKF.mjs";
|
|
29
32
|
import {
|
|
30
33
|
resolveSchemaModels
|
|
31
34
|
} from "./chunk-F3N52U7S.mjs";
|
|
@@ -420,6 +423,13 @@ async function collectSSGPages(routes, loadModule, options = {}) {
|
|
|
420
423
|
continue;
|
|
421
424
|
}
|
|
422
425
|
const source = await readFile(route.filePath, "utf8").catch(() => void 0);
|
|
426
|
+
if (options.docsAdapterRoutes?.owns(route.path) && isFarmMarkdownPageFile(route.filePath)) {
|
|
427
|
+
ssrRoutes.push(route.path);
|
|
428
|
+
if (options.suggestStaticRendering !== false && analyzeStaticRouteCandidate(null, source, { isDynamic: route.isDynamic }).candidate) {
|
|
429
|
+
staticCandidateDocsPages += 1;
|
|
430
|
+
}
|
|
431
|
+
continue;
|
|
432
|
+
}
|
|
423
433
|
const configuredRendering = resolveConfiguredRouteRenderingConfig(mod, source);
|
|
424
434
|
const rendering = resolveRouteRenderingConfig(mod, source);
|
|
425
435
|
if (configuredRendering.ssg && !rendering.ssg && source) {
|
|
@@ -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;
|
|
@@ -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
|
}
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
var _chunkTP4RAV7Ycjs = require('./chunk-TP4RAV7Y.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkO32QPFVVcjs = require('./chunk-O32QPFVV.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkOWQV6MLMcjs = require('./chunk-OWQV6MLM.cjs');
|
|
6
13
|
|
|
7
14
|
|
|
8
15
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
@@ -36,10 +43,10 @@ async function handleFarmDefaultMCPRequest(request, context) {
|
|
|
36
43
|
return transportError(403, "Cross-origin requests are not allowed.");
|
|
37
44
|
}
|
|
38
45
|
const protocolHeader = request.headers.get("mcp-protocol-version");
|
|
39
|
-
if (protocolHeader && !
|
|
46
|
+
if (protocolHeader && !_chunkTP4RAV7Ycjs.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS.includes(protocolHeader.trim())) {
|
|
40
47
|
return transportError(
|
|
41
48
|
400,
|
|
42
|
-
`Unsupported MCP-Protocol-Version: ${protocolHeader.slice(0, 32)}. Supported: ${
|
|
49
|
+
`Unsupported MCP-Protocol-Version: ${protocolHeader.slice(0, 32)}. Supported: ${_chunkTP4RAV7Ycjs.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS.join(", ")}.`
|
|
43
50
|
);
|
|
44
51
|
}
|
|
45
52
|
const contentType = _nullishCoalesce(request.headers.get("content-type"), () => ( ""));
|
|
@@ -95,7 +102,7 @@ async function dispatch(method, params, request, context) {
|
|
|
95
102
|
switch (method) {
|
|
96
103
|
case "initialize": {
|
|
97
104
|
const requested = isRecord(params) ? params.protocolVersion : void 0;
|
|
98
|
-
const protocolVersion = typeof requested === "string" &&
|
|
105
|
+
const protocolVersion = typeof requested === "string" && _chunkTP4RAV7Ycjs.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS.includes(requested) ? requested : _chunkTP4RAV7Ycjs.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS[0];
|
|
99
106
|
return {
|
|
100
107
|
protocolVersion,
|
|
101
108
|
capabilities: { tools: { listChanged: false } },
|
|
@@ -103,7 +110,7 @@ async function dispatch(method, params, request, context) {
|
|
|
103
110
|
name: context.server.name,
|
|
104
111
|
version: context.server.version,
|
|
105
112
|
...context.server.title ? { title: context.server.title } : {},
|
|
106
|
-
description:
|
|
113
|
+
description: _chunkTP4RAV7Ycjs.FARM_DEFAULT_MCP_DESCRIPTION
|
|
107
114
|
},
|
|
108
115
|
instructions: INSTRUCTIONS
|
|
109
116
|
};
|
|
@@ -111,7 +118,7 @@ async function dispatch(method, params, request, context) {
|
|
|
111
118
|
case "ping":
|
|
112
119
|
return {};
|
|
113
120
|
case "tools/list":
|
|
114
|
-
return { tools:
|
|
121
|
+
return { tools: _chunkTP4RAV7Ycjs.FARM_DEFAULT_MCP_TOOLS };
|
|
115
122
|
case "tools/call":
|
|
116
123
|
return callTool(params, request, context);
|
|
117
124
|
default:
|
|
@@ -122,7 +129,7 @@ async function callTool(params, request, context) {
|
|
|
122
129
|
if (!isRecord(params) || typeof params.name !== "string") {
|
|
123
130
|
throw new FarmMCPRequestError(INVALID_PARAMS, "tools/call needs a tool name.");
|
|
124
131
|
}
|
|
125
|
-
const tool =
|
|
132
|
+
const tool = _chunkTP4RAV7Ycjs.FARM_DEFAULT_MCP_TOOLS.find(({ name }) => name === params.name);
|
|
126
133
|
if (!tool) {
|
|
127
134
|
throw new FarmMCPRequestError(INVALID_PARAMS, `Unknown tool: ${params.name.slice(0, 64)}`);
|
|
128
135
|
}
|
|
@@ -147,7 +154,13 @@ async function callTool(params, request, context) {
|
|
|
147
154
|
if (typeof path !== "string" || !path.trim() || path.length > 2048) {
|
|
148
155
|
return toolError('path must be a page path such as "/about".');
|
|
149
156
|
}
|
|
150
|
-
const pagePath = toPagePath(
|
|
157
|
+
const pagePath = toPagePath(
|
|
158
|
+
path,
|
|
159
|
+
request.url,
|
|
160
|
+
context.metadataBase,
|
|
161
|
+
context.basePath,
|
|
162
|
+
_chunkTP4RAV7Ycjs.resolveFarmDefaultMCPI18n.call(void 0, context.i18n, context.basePath)
|
|
163
|
+
);
|
|
151
164
|
const pages = await context.listPages();
|
|
152
165
|
const page = pagePath ? pages.find((candidate) => candidate.path === pagePath) : void 0;
|
|
153
166
|
if (!page) {
|
|
@@ -194,21 +207,30 @@ function searchPages(pages, query, limit) {
|
|
|
194
207
|
(left, right) => right.score - left.score || left.page.path.localeCompare(right.page.path)
|
|
195
208
|
).slice(0, limit).map(({ page }) => page);
|
|
196
209
|
}
|
|
197
|
-
function toPagePath(input, requestUrl, basePath) {
|
|
210
|
+
function toPagePath(input, requestUrl, metadataBase, basePath, i18n) {
|
|
198
211
|
let url;
|
|
199
212
|
try {
|
|
200
213
|
url = new URL(input.trim(), requestUrl);
|
|
201
214
|
} catch (e2) {
|
|
202
215
|
return null;
|
|
203
216
|
}
|
|
204
|
-
|
|
217
|
+
const requestOrigin = new URL(requestUrl).origin;
|
|
218
|
+
if (url.origin !== requestOrigin && url.origin !== _chunkO32QPFVVcjs.resolveFarmAgentOrigin.call(void 0, metadataBase, requestOrigin)) {
|
|
219
|
+
return null;
|
|
220
|
+
}
|
|
205
221
|
let path = url.pathname;
|
|
206
222
|
try {
|
|
207
223
|
path = decodeURI(path);
|
|
208
224
|
} catch (e3) {
|
|
209
225
|
return null;
|
|
210
226
|
}
|
|
211
|
-
|
|
227
|
+
if (i18n) {
|
|
228
|
+
const match = _chunkOWQV6MLMcjs.resolveFarmLocalePath.call(void 0, path, i18n);
|
|
229
|
+
if (match.explicit && match.locale !== i18n.defaultLocale) return null;
|
|
230
|
+
path = match.pathname;
|
|
231
|
+
} else {
|
|
232
|
+
path = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, path, basePath);
|
|
233
|
+
}
|
|
212
234
|
if (path === "/index.md") return "/";
|
|
213
235
|
if (path.toLowerCase().endsWith(".md")) path = path.slice(0, -3) || "/";
|
|
214
236
|
return path.length > 1 ? path.replace(/\/+$/, "") || "/" : path;
|
|
@@ -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,
|
|
@@ -688,6 +688,7 @@ var PluginManager = class {
|
|
|
688
688
|
* Runs only `runtime.before` for a request Farm re-routed internally, such as
|
|
689
689
|
* a configured rewrite, so guards also see the destination URL. The session
|
|
690
690
|
* opened for `source` keeps its context; context and after hooks don't rerun.
|
|
691
|
+
* `options` describe the destination; the session keeps the source's route.
|
|
691
692
|
*/
|
|
692
693
|
async runRuntimeBeforeForRewrite(source, request, options = {}) {
|
|
693
694
|
if (!this.hasRuntimeHook("before")) return request;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVXB5CMNCcjs = require('./chunk-VXB5CMNC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
|
|
@@ -64,7 +64,7 @@ function findFarmNativeScreenFiles(appDirs) {
|
|
|
64
64
|
}
|
|
65
65
|
function collectFarmNativeServerFns(options) {
|
|
66
66
|
const { root, srcDir } = options;
|
|
67
|
-
const aliases =
|
|
67
|
+
const aliases = _chunkVXB5CMNCcjs.readAliases.call(void 0, root, srcDir);
|
|
68
68
|
const seen = /* @__PURE__ */ new Set();
|
|
69
69
|
const found = /* @__PURE__ */ new Map();
|
|
70
70
|
const queue = [...options.entries];
|
|
@@ -98,7 +98,7 @@ function collectFarmNativeServerFns(options) {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
|
|
101
|
-
const resolved =
|
|
101
|
+
const resolved = _chunkVXB5CMNCcjs.resolveFile.call(void 0, candidate);
|
|
102
102
|
if (resolved && SCRIPT.test(resolved) && !resolved.includes(`${_path2.default.sep}node_modules${_path2.default.sep}`)) {
|
|
103
103
|
queue.push(resolved);
|
|
104
104
|
break;
|
|
@@ -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-6smgwT2t.mjs';
|
|
2
|
+
import { i as RouteModule, bg as SSGCollectionResult, bh as SSGPage } from './client-plugins.d-k3bOT5gz.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-KwqM_mlK.js';
|
|
2
|
+
import { i as RouteModule, bg as SSGCollectionResult, bh as SSGPage } from './client-plugins.d-BxqFfHpM.js';
|
|
3
3
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
|
|
4
4
|
|
|
5
5
|
/**
|