@farm.js/core 0.1.66 → 0.1.68
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-QLFDDTYN.mjs → agent-mcp-handler-AZ7QW4UP.mjs} +5 -5
- package/dist/{agent-mcp-handler-OXT73ZBY.cjs → agent-mcp-handler-FER4MQDF.cjs} +6 -6
- package/dist/{agent-mcp.d-QD2WZ9BS.d.ts → agent-mcp.d-Uh5xr7aX.d.ts} +1 -1
- package/dist/{agent-mcp.d-CO_ABmNK.d.mts → agent-mcp.d-wkVPK1GA.d.mts} +1 -1
- package/dist/agent-runtime.cjs +6 -5
- package/dist/agent-runtime.d.mts +10 -8
- package/dist/agent-runtime.d.ts +10 -8
- package/dist/agent-runtime.mjs +5 -4
- package/dist/{analyzer-4UFP4HVP.mjs → analyzer-CQDU7E3Y.mjs} +2 -2
- package/dist/analyzer-PPAHM4AW.cjs +16 -0
- package/dist/api/client.cjs +12 -2
- package/dist/api/client.d.mts +4 -4
- package/dist/api/client.d.ts +4 -4
- package/dist/api/client.mjs +12 -2
- package/dist/api/client.native.cjs +12 -2
- package/dist/api/client.native.d.mts +5 -5
- package/dist/api/client.native.d.ts +5 -5
- package/dist/api/client.native.mjs +12 -2
- package/dist/api/node.cjs +223 -0
- package/dist/api/node.d.mts +61 -0
- package/dist/api/node.d.ts +61 -0
- package/dist/api/node.mjs +223 -0
- package/dist/api/route-manager.cjs +11 -11
- package/dist/api/route-manager.d.mts +14 -11
- package/dist/api/route-manager.d.ts +14 -11
- package/dist/api/route-manager.mjs +10 -10
- package/dist/api/runtime.cjs +11 -7
- package/dist/api/runtime.d.mts +11 -9
- package/dist/api/runtime.d.ts +11 -9
- package/dist/api/runtime.mjs +10 -6
- package/dist/{api-client.d-BNLXNCXJ.d.mts → api-client.d-Bp35zMqR.d.mts} +1 -1
- package/dist/{api-client.d-ddQBNGtu.d.ts → api-client.d-CFI_xL0V.d.ts} +1 -1
- package/dist/api.cjs +17 -13
- package/dist/api.d.mts +15 -12
- package/dist/api.d.ts +15 -12
- package/dist/api.mjs +16 -12
- package/dist/{app-manifest.d-DDmNkYQQ.d.ts → app-manifest.d-BT5i2F-o.d.ts} +1 -1
- package/dist/{app-manifest.d-BpKxiU_E.d.mts → app-manifest.d-Dd4q5CFx.d.mts} +1 -1
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +15 -15
- package/dist/app-markdown.d.ts +15 -15
- package/dist/app-markdown.mjs +4 -4
- package/dist/{app.d-x68Cwr0_.d.ts → app.d-BVOpL_f2.d.ts} +52 -11
- package/dist/{app.d-kuoVWhWM.d.mts → app.d-BhiDXex_.d.mts} +52 -11
- package/dist/{chunk-RY4ABNPE.cjs → chunk-225APHKC.cjs} +3 -3
- package/dist/{chunk-JGAE5XPL.cjs → chunk-23VJEGKC.cjs} +4 -2
- package/dist/{chunk-5C7XMKQ4.cjs → chunk-2AFW7673.cjs} +6 -1
- package/dist/{chunk-SYW346ZN.cjs → chunk-2LHZD3OP.cjs} +1 -21
- package/dist/{chunk-ZZI56IUY.mjs → chunk-2ZOYOYEE.mjs} +13 -13
- package/dist/{chunk-7XGWBPQQ.cjs → chunk-3EEINK7G.cjs} +24 -10
- package/dist/{chunk-BRWIVOV4.cjs → chunk-3GNHJ3RN.cjs} +10 -8
- package/dist/{chunk-HCGWDRZO.mjs → chunk-3Y52TWYU.mjs} +18 -7
- package/dist/{chunk-CBOEJ5Z4.cjs → chunk-437QZIC2.cjs} +133 -46
- package/dist/{chunk-O6L3YYPM.cjs → chunk-4E57QHPW.cjs} +8 -16
- package/dist/{chunk-WKPBIT5Q.cjs → chunk-4HGLJOXZ.cjs} +6 -6
- package/dist/{chunk-CJNAUEVC.mjs → chunk-4QENVMG7.mjs} +1 -1
- package/dist/{chunk-EMNKZGF4.mjs → chunk-4UAQB5LB.mjs} +556 -462
- package/dist/{chunk-BQWBHWEW.mjs → chunk-4ZXKYCYK.mjs} +1 -1
- package/dist/{chunk-N35YPV4N.mjs → chunk-57QAQU4F.mjs} +9 -7
- package/dist/{chunk-ZEXE4TGY.mjs → chunk-5FBZJJGA.mjs} +247 -110
- package/dist/{chunk-4OSOLDPL.cjs → chunk-5JKDFRTK.cjs} +2 -2
- package/dist/{chunk-OLIGNTWU.cjs → chunk-5NFQ6AZI.cjs} +7 -7
- package/dist/{chunk-6HRAK7I5.mjs → chunk-5OFNUETM.mjs} +8 -2
- package/dist/{chunk-RD623KW4.cjs → chunk-67MZTLTF.cjs} +21 -3
- package/dist/chunk-6I4BFRE7.cjs +51 -0
- package/dist/{chunk-UBMHQVWN.mjs → chunk-6OFOIMNS.mjs} +1 -1
- package/dist/{chunk-K5EW7GUU.mjs → chunk-7BIW7VCW.mjs} +13 -5
- package/dist/{chunk-CHYTADNK.cjs → chunk-7LK5CTUM.cjs} +70 -53
- package/dist/{chunk-HPP2II4Z.mjs → chunk-7PJARAQQ.mjs} +1 -1
- package/dist/{chunk-LEJDW34D.cjs → chunk-7PPLTD3P.cjs} +3 -3
- package/dist/{chunk-BYRZ5VTH.mjs → chunk-A3T445WK.mjs} +47 -34
- package/dist/{chunk-TGULJSHD.mjs → chunk-AJNBTOVQ.mjs} +20 -9
- package/dist/{chunk-FBEBSAVI.cjs → chunk-AKIQ54FK.cjs} +82 -63
- package/dist/{chunk-2NGZFOKG.mjs → chunk-AOIUYHPH.mjs} +2 -2
- package/dist/{chunk-NKRZLQUK.mjs → chunk-AQIO3RNL.mjs} +1 -1
- package/dist/chunk-AQIRXBBY.cjs +26 -0
- package/dist/{chunk-DQJ2CIH7.cjs → chunk-ASYOWPSR.cjs} +2 -1
- package/dist/chunk-AZ6IW6SF.mjs +28 -0
- package/dist/{chunk-QMDU6QHN.mjs → chunk-B6RBJJ5G.mjs} +1 -1
- package/dist/{chunk-I32V5CZL.cjs → chunk-BDYM2TN3.cjs} +28 -17
- package/dist/{chunk-JLDNXURZ.cjs → chunk-BZWTBELF.cjs} +32 -32
- package/dist/{chunk-ITV4QQL2.cjs → chunk-C6CUUBY5.cjs} +14 -3
- package/dist/{chunk-QGJ4FI2G.mjs → chunk-C6HGUTXB.mjs} +113 -29
- package/dist/{chunk-YN6BHOYY.cjs → chunk-CL52PD6D.cjs} +10 -3
- package/dist/{chunk-VQJHT2ND.mjs → chunk-CRVSYDHV.mjs} +2 -2
- package/dist/{chunk-XURDCXNH.cjs → chunk-CSLHNBPS.cjs} +6 -6
- package/dist/{chunk-XQSYOVCW.cjs → chunk-DBYNZIIQ.cjs} +13 -5
- package/dist/{chunk-AZUUKA66.mjs → chunk-DIXFKAPM.mjs} +1251 -389
- package/dist/{chunk-QTD6EMN2.mjs → chunk-DQ2DI3Y7.mjs} +11 -4
- package/dist/{chunk-NHQM2Q4I.cjs → chunk-DWLNLU55.cjs} +2 -2
- package/dist/chunk-DXZ57EPE.mjs +375 -0
- package/dist/{chunk-SA7MLSP4.mjs → chunk-E3HDJCWF.mjs} +3 -3
- package/dist/{chunk-52Y3C3HG.mjs → chunk-E7VF3LQ5.mjs} +3 -2
- package/dist/{chunk-752XUZIM.cjs → chunk-EGIY4A7V.cjs} +6 -6
- package/dist/chunk-EIVGPQN5.mjs +51 -0
- package/dist/{chunk-KPAJWD3N.mjs → chunk-EYPSKXO4.mjs} +1 -1
- package/dist/{chunk-E4UDLFWR.cjs → chunk-F36LS2C7.cjs} +796 -702
- package/dist/{chunk-MPIGW42F.mjs → chunk-F6CMGWAL.mjs} +1 -1
- package/dist/{chunk-GL7N5UHF.cjs → chunk-FJMC24KG.cjs} +21 -10
- package/dist/{chunk-QISW423S.cjs → chunk-FPBOAG6N.cjs} +2 -2
- package/dist/{chunk-3CCAICF7.cjs → chunk-FSODPZRT.cjs} +5 -5
- package/dist/{chunk-2C5L5RPM.cjs → chunk-FT6KJHS3.cjs} +71 -38
- package/dist/{chunk-WMTBBQHY.cjs → chunk-FVYBEMOD.cjs} +288 -151
- package/dist/{chunk-BM2LH2JM.mjs → chunk-G7NBPP7H.mjs} +14 -13
- package/dist/{chunk-ES2LD2YD.mjs → chunk-GCRT6GJG.mjs} +18 -0
- package/dist/{chunk-5OJVKXFV.cjs → chunk-GDM3ZD2O.cjs} +10 -8
- package/dist/{chunk-25T5VXOE.mjs → chunk-GFPS7MNE.mjs} +106 -19
- package/dist/{chunk-EMDGXYUD.mjs → chunk-GJ7QVFAG.mjs} +16 -7
- package/dist/{chunk-TGSEVBPO.mjs → chunk-GJEC5S4V.mjs} +11 -0
- package/dist/{chunk-HNAISJFD.cjs → chunk-HDPT6OYE.cjs} +9 -3
- package/dist/{chunk-RVGSVQWT.mjs → chunk-HEJM46HQ.mjs} +21 -7
- package/dist/chunk-HHLEYA4B.cjs +17 -0
- package/dist/{chunk-ZNH6NR3H.cjs → chunk-HJZZSBVK.cjs} +2 -2
- package/dist/{chunk-E552H232.cjs → chunk-I7J5RLGO.cjs} +16 -2
- package/dist/chunk-ICFPTHXM.mjs +97 -0
- package/dist/{chunk-K7OZAVOI.mjs → chunk-IFR74W6S.mjs} +46 -13
- package/dist/{chunk-MPJEIHW2.cjs → chunk-IGDYL2IA.cjs} +2 -2
- package/dist/{chunk-5A77OEIG.cjs → chunk-IHTDLCDJ.cjs} +5 -5
- package/dist/{chunk-OYZXVBZP.cjs → chunk-IUKBPBM7.cjs} +2 -1
- package/dist/chunk-J6TZRYCO.cjs +22 -0
- package/dist/{chunk-E4RDMG3K.mjs → chunk-JL2YW5KX.mjs} +5 -4
- package/dist/chunk-JSOCDYER.cjs +375 -0
- package/dist/{chunk-UPYIFH2H.cjs → chunk-JWLRBDDC.cjs} +2 -2
- package/dist/{chunk-OLGQZRW6.mjs → chunk-JZBU7V4D.mjs} +37 -17
- package/dist/{chunk-ONG4RDW3.mjs → chunk-JZGL2PIH.mjs} +13 -3
- package/dist/chunk-K63OWRY2.mjs +22 -0
- package/dist/{chunk-TUPKMMXT.mjs → chunk-K6HIIWUB.mjs} +1 -1
- package/dist/{chunk-MESQF2JC.mjs → chunk-K6SXMVXO.mjs} +2 -2
- package/dist/{chunk-L2JG337G.cjs → chunk-K6VFYFOY.cjs} +33 -31
- package/dist/{chunk-TKK5QHKZ.mjs → chunk-KDO6T6OB.mjs} +3 -3
- package/dist/{chunk-EZ34EHQP.mjs → chunk-KI3MU7B5.mjs} +1 -1
- package/dist/{chunk-GHNW564E.mjs → chunk-KSZK34HU.mjs} +30 -10
- package/dist/{chunk-IT6WRNGB.cjs → chunk-KWCZKJYU.cjs} +1541 -679
- package/dist/{chunk-DVKH2RVN.cjs → chunk-LDEXTX4I.cjs} +70 -57
- package/dist/{chunk-ECKQFEX2.mjs → chunk-LENKRGBV.mjs} +8 -6
- package/dist/{chunk-XBSKPLHF.cjs → chunk-LR4KP3I7.cjs} +2 -2
- package/dist/{chunk-HEPJIKKQ.cjs → chunk-MCSRMEQV.cjs} +2 -2
- package/dist/{chunk-DQF3QLOH.mjs → chunk-ME7RVELR.mjs} +3 -2
- package/dist/{chunk-VFXE6NWR.mjs → chunk-MGKWYPE3.mjs} +2 -1
- package/dist/{chunk-TZVUF5JJ.mjs → chunk-MGZVDX4R.mjs} +5 -5
- package/dist/{chunk-MGKW5XZE.cjs → chunk-MMDKYJ5V.cjs} +7 -7
- package/dist/{chunk-SK7QSNWE.mjs → chunk-MNJDNTGO.mjs} +1 -1
- package/dist/{chunk-5Y2P454O.cjs → chunk-MTBDJ326.cjs} +6 -5
- package/dist/{chunk-FIR62CR3.mjs → chunk-MV7NWU23.mjs} +1 -1
- package/dist/{chunk-7ONGIFYX.cjs → chunk-MZ4CRSY7.cjs} +481 -171
- package/dist/{chunk-O4F3JUST.mjs → chunk-NDDRTFN4.mjs} +4 -0
- package/dist/{chunk-4IHMHFQB.cjs → chunk-NG2EZ6QS.cjs} +28 -1
- package/dist/{chunk-XBSLKXBL.mjs → chunk-NT4W4H52.mjs} +52 -35
- package/dist/{chunk-UAQD67HM.mjs → chunk-NVOMQLI2.mjs} +16 -2
- package/dist/{chunk-R62SF5R4.mjs → chunk-OB45EAQL.mjs} +6 -1
- package/dist/{chunk-V56632LA.cjs → chunk-OCNV4CI2.cjs} +39 -6
- package/dist/{chunk-SYXPWJ7N.cjs → chunk-OFBLGH6V.cjs} +17 -18
- package/dist/{chunk-VQ4NWOWO.mjs → chunk-OGVTUGMU.mjs} +5 -13
- package/dist/{chunk-3UZVPO72.mjs → chunk-OIOPQ25L.mjs} +6 -7
- package/dist/{chunk-2XGBJSDV.cjs → chunk-OO7DYIJD.cjs} +73 -24
- package/dist/{chunk-27FPUFWR.mjs → chunk-P2NBQ5JI.mjs} +1 -1
- package/dist/{chunk-HZPKJRYA.cjs → chunk-PDFFYZAT.cjs} +2 -2
- package/dist/{chunk-GSVJ3IIF.cjs → chunk-PHCJJJZV.cjs} +2 -2
- package/dist/{chunk-EVMXPJCB.mjs → chunk-PKMUQ7LM.mjs} +2 -1
- package/dist/{chunk-OAJOQU5J.mjs → chunk-PLJKJJ2H.mjs} +82 -63
- package/dist/{chunk-72KCTHLV.cjs → chunk-PRL7FXG4.cjs} +113 -29
- package/dist/{chunk-6XQSPIN6.cjs → chunk-PWKAX5MS.cjs} +13 -3
- package/dist/{chunk-4ZJ5C7UJ.cjs → chunk-QIXEU2WV.cjs} +19 -10
- package/dist/{chunk-FJWN7RV4.cjs → chunk-QO43L7Z4.cjs} +38 -8
- package/dist/{chunk-X4K7TYN6.cjs → chunk-QOGIZKSO.cjs} +26 -25
- package/dist/{chunk-CNNBFGL5.cjs → chunk-QSUYB3RH.cjs} +14 -14
- package/dist/chunk-QYNZ3CTI.mjs +17 -0
- package/dist/{chunk-X3XUZWRB.mjs → chunk-R2ZHU37O.mjs} +36 -3
- package/dist/{chunk-ZIHWAN55.cjs → chunk-RE5E2G5S.cjs} +1 -1
- package/dist/{chunk-O75GQVUK.mjs → chunk-RLH5AH2M.mjs} +1 -1
- package/dist/chunk-RWR7SMD7.cjs +50 -0
- package/dist/{chunk-7PTISZSQ.cjs → chunk-S7MWSFFP.cjs} +4 -0
- package/dist/chunk-SD6JGJOM.mjs +50 -0
- package/dist/{chunk-7H4SVNC4.cjs → chunk-SPP3EZTJ.cjs} +46 -26
- package/dist/{chunk-BIF5MLTH.cjs → chunk-SQ6IWJ3H.cjs} +1 -1
- package/dist/{chunk-WVYRLP5E.mjs → chunk-T5XFZQCL.mjs} +1 -1
- package/dist/{chunk-WAY6LOQH.mjs → chunk-TEJ67GD2.mjs} +1 -1
- package/dist/{chunk-OP7LHY4Y.cjs → chunk-TNK2TVRS.cjs} +2005 -800
- package/dist/{chunk-IFTGERT3.mjs → chunk-TTXIITYA.mjs} +49 -0
- package/dist/{chunk-ZFWYCVKS.mjs → chunk-TY5KCYDE.mjs} +22 -4
- package/dist/{chunk-WYAXRIYP.cjs → chunk-UKZ6AWKZ.cjs} +10 -9
- package/dist/{chunk-UJ3R2AH2.cjs → chunk-UPOYKX4S.cjs} +5 -5
- package/dist/{chunk-VBCQ5WOI.cjs → chunk-URN7VFO7.cjs} +105 -16
- package/dist/{chunk-2DLGV2ZG.mjs → chunk-UTUS6JUH.mjs} +1 -21
- package/dist/{chunk-435QJNC2.mjs → chunk-VFNAK6A5.mjs} +4 -4
- package/dist/{chunk-WFWFECDW.mjs → chunk-VRGY3X2I.mjs} +100 -11
- package/dist/{chunk-LQNW3ABP.cjs → chunk-VX2HZGC7.cjs} +14 -14
- package/dist/chunk-W44X6IC2.cjs +97 -0
- package/dist/{chunk-A2MN5PQJ.mjs → chunk-WMLSZAKN.mjs} +9 -9
- package/dist/{chunk-672ISQIG.mjs → chunk-WPB67LE5.mjs} +379 -69
- package/dist/{chunk-3EEET2Q5.cjs → chunk-WUTFJOV7.cjs} +32 -12
- package/dist/chunk-WVQNXXNE.cjs +28 -0
- package/dist/{chunk-Y5TOT5F6.cjs → chunk-X3MHKLCO.cjs} +5 -5
- package/dist/{chunk-W2ZXMMHA.mjs → chunk-XCAQTCGK.mjs} +1 -1
- package/dist/{chunk-Z7P2BTZ3.cjs → chunk-XGTFLG73.cjs} +30 -12
- package/dist/{chunk-XCXHQBMM.mjs → chunk-Y2LU4LE5.mjs} +1 -1
- package/dist/{chunk-5J45H65F.mjs → chunk-Y5LEPEVH.mjs} +1 -1
- package/dist/{chunk-D4MRNBVF.cjs → chunk-Y6KHPJDB.cjs} +2 -2
- package/dist/{chunk-BT4SEFLC.cjs → chunk-YAEN3L2F.cjs} +3 -2
- package/dist/chunk-YFTGIHNC.mjs +26 -0
- package/dist/{chunk-KL7SHLQB.mjs → chunk-YGJ5P3TJ.mjs} +31 -1
- package/dist/{chunk-752IHQTD.cjs → chunk-YTNBCXCW.cjs} +12 -12
- package/dist/{chunk-RFKTJTWZ.mjs → chunk-YVPX5PI5.mjs} +3 -1
- package/dist/{chunk-4TVPYN32.cjs → chunk-Z3PW3DIR.cjs} +7 -7
- package/dist/{chunk-OB7VKCUZ.mjs → chunk-Z6SOXHAD.mjs} +1851 -646
- package/dist/{chunk-72KABRWN.mjs → chunk-ZJGFAW5U.mjs} +5 -3
- package/dist/{chunk-TNBJ4LZG.mjs → chunk-ZPKJPM7K.mjs} +4 -4
- package/dist/{chunk-5FE5YT2N.mjs → chunk-ZZGQD3LL.mjs} +28 -1
- package/dist/client/lifecycle.cjs +2 -2
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/client/lifecycle.mjs +1 -1
- package/dist/{client-component.d-D74pqdea.d.mts → client-component.d-BvQOxSqh.d.mts} +2 -2
- package/dist/{client-component.d-D8VcypQA.d.ts → client-component.d-DNVSLEPi.d.ts} +2 -2
- package/dist/client-plugins.cjs +2 -2
- package/dist/{client-plugins.d-D4-6hNx7.d.mts → client-plugins.d-CE1lVK2R.d.mts} +116 -373
- package/dist/{client-plugins.d-CXElzotB.d.ts → client-plugins.d-CNDqcAuf.d.ts} +116 -373
- package/dist/client-plugins.d.mts +10 -8
- package/dist/client-plugins.d.ts +10 -8
- package/dist/client-plugins.mjs +1 -1
- package/dist/client.cjs +11 -9
- package/dist/client.d.mts +17 -15
- package/dist/client.d.ts +17 -15
- package/dist/client.mjs +10 -8
- package/dist/{config.d-qt-mE8O5.d.mts → config.d-BKIhJtmr.d.mts} +7 -2
- package/dist/{config.d-qt-mE8O5.d.ts → config.d-BKIhJtmr.d.ts} +7 -2
- package/dist/config.d.mts +10 -8
- package/dist/config.d.ts +10 -8
- package/dist/cron.cjs +2 -2
- package/dist/cron.mjs +1 -1
- package/dist/deferred.cjs +2 -2
- package/dist/deferred.mjs +1 -1
- package/dist/deployment.cjs +4 -2
- package/dist/deployment.d.mts +15 -1
- package/dist/deployment.d.ts +15 -1
- package/dist/deployment.mjs +3 -1
- package/dist/desktop.d.mts +11 -9
- package/dist/desktop.d.ts +11 -9
- package/dist/{devtools-NZUVNUP3.mjs → devtools-2A2GPC7B.mjs} +33 -29
- package/dist/{devtools-N2JQCMXB.cjs → devtools-R27T3BRY.cjs} +38 -34
- package/dist/docs.cjs +28 -27
- package/dist/docs.d.mts +24 -10
- package/dist/docs.d.ts +24 -10
- package/dist/docs.mjs +27 -26
- package/dist/env-types.cjs +3 -3
- package/dist/env-types.mjs +2 -2
- package/dist/environment/vite.cjs +7 -7
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/environment/vite.mjs +6 -6
- package/dist/{generate-route-types.d-BL2pq6xC.d.ts → generate-route-types.d-B76M5R11.d.ts} +1 -1
- package/dist/{generate-route-types.d-BoVDU8qX.d.mts → generate-route-types.d-CaGMIaNI.d.mts} +1 -1
- package/dist/headers.cjs +3 -3
- package/dist/headers.mjs +2 -2
- package/dist/image/server.d.mts +1 -1
- package/dist/image/server.d.ts +1 -1
- package/dist/image/sharp.d.mts +1 -1
- package/dist/image/sharp.d.ts +1 -1
- package/dist/{image-config.d-CeDgNyX4.d.mts → image-config.d-ByhQ0TT7.d.mts} +3 -1
- package/dist/{image-config.d-CeDgNyX4.d.ts → image-config.d-ByhQ0TT7.d.ts} +3 -1
- package/dist/image.cjs +6 -6
- package/dist/image.d.mts +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/image.mjs +1 -1
- package/dist/index.cjs +148 -128
- package/dist/{index.d-SSgYDv4D.d.mts → index.d-Bt3kl19W.d.mts} +1 -1
- package/dist/{index.d-A_x10zGS.d.ts → index.d-Cx_-DaKV.d.ts} +1 -1
- package/dist/index.d.mts +39 -87
- package/dist/index.d.ts +39 -87
- package/dist/index.mjs +224 -204
- package/dist/instrumentation.cjs +3 -3
- package/dist/instrumentation.mjs +2 -2
- package/dist/{integration-orm-52GPGTHO.cjs → integrations/orm.cjs} +5 -5
- package/dist/integrations/orm.d.mts +35 -0
- package/dist/integrations/orm.d.ts +35 -0
- package/dist/{integration-orm-CO23MSFE.mjs → integrations/orm.mjs} +5 -5
- package/dist/integrations.cjs +6 -5
- package/dist/integrations.d.mts +10 -8
- package/dist/integrations.d.ts +10 -8
- package/dist/integrations.mjs +5 -4
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +27 -11
- package/dist/internal/app-markdown-runtime.d.ts +27 -11
- package/dist/internal/app-markdown-runtime.mjs +3 -3
- package/dist/internal/build-runtime.cjs +76 -71
- package/dist/internal/build-runtime.d.mts +12 -10
- package/dist/internal/build-runtime.d.ts +12 -10
- package/dist/internal/build-runtime.mjs +75 -70
- package/dist/internal/cli-runtime.cjs +47 -46
- package/dist/internal/cli-runtime.mjs +46 -45
- package/dist/internal/client-error-overlay.cjs +6 -6
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +85 -36
- package/dist/internal/client-runtime.d.mts +44 -13
- package/dist/internal/client-runtime.d.ts +44 -13
- package/dist/internal/client-runtime.mjs +79 -30
- package/dist/internal/compression-runtime.d.mts +10 -8
- package/dist/internal/compression-runtime.d.ts +10 -8
- package/dist/internal/config-runtime.cjs +27 -26
- package/dist/internal/config-runtime.d.mts +14 -12
- package/dist/internal/config-runtime.d.ts +14 -12
- package/dist/internal/config-runtime.mjs +26 -25
- package/dist/internal/docs-precompiled-runtime.cjs +16 -5
- package/dist/internal/docs-precompiled-runtime.d.mts +7 -0
- package/dist/internal/docs-precompiled-runtime.d.ts +7 -0
- package/dist/internal/docs-precompiled-runtime.mjs +15 -4
- package/dist/internal/form-actions.cjs +7 -2
- package/dist/internal/form-actions.d.mts +10 -3
- package/dist/internal/form-actions.d.ts +10 -3
- package/dist/internal/form-actions.mjs +8 -3
- package/dist/internal/infra-analytics-runtime.cjs +11 -11
- package/dist/internal/infra-analytics-runtime.mjs +9 -9
- package/dist/internal/islands-boot.cjs +6 -1
- package/dist/internal/islands-boot.mjs +6 -1
- package/dist/internal/islands-runtime.cjs +33 -4
- package/dist/internal/islands-runtime.d.mts +1 -1
- package/dist/internal/islands-runtime.d.ts +1 -1
- package/dist/internal/islands-runtime.mjs +31 -2
- package/dist/internal/native-server-fns.cjs +5 -5
- package/dist/internal/native-server-fns.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-node-env.cjs +4 -2
- package/dist/internal/production-node-env.d.mts +22 -1
- package/dist/internal/production-node-env.d.ts +22 -1
- package/dist/internal/production-node-env.mjs +3 -1
- package/dist/internal/production-runtime.cjs +57 -39
- package/dist/internal/production-runtime.d.mts +27 -21
- package/dist/internal/production-runtime.d.ts +27 -21
- package/dist/internal/production-runtime.mjs +72 -54
- package/dist/internal/react-cache.cjs +3 -3
- package/dist/internal/react-cache.mjs +1 -1
- package/dist/internal/server-tree.cjs +2 -2
- package/dist/internal/server-tree.d.mts +0 -5
- package/dist/internal/server-tree.d.ts +0 -5
- package/dist/internal/server-tree.mjs +1 -1
- package/dist/internal/vercel-edge-middleware.cjs +87 -0
- package/dist/internal/vercel-edge-middleware.d.mts +39 -0
- package/dist/internal/vercel-edge-middleware.d.ts +39 -0
- package/dist/internal/vercel-edge-middleware.mjs +87 -0
- package/dist/layers-7P4RLKVX.cjs +20 -0
- package/dist/{layers-T55SA47E.mjs → layers-XQ7VFMWO.mjs} +4 -2
- package/dist/{layers.d-CcS42OGR.d.mts → layers.d-CH0bC4QL.d.mts} +2 -1
- package/dist/{layers.d-CcS42OGR.d.ts → layers.d-CH0bC4QL.d.ts} +2 -1
- package/dist/{lifecycle.d-C2aLBOwu.d.ts → lifecycle.d-keQs5Swc.d.mts} +7 -1
- package/dist/{lifecycle.d-C2aLBOwu.d.mts → lifecycle.d-keQs5Swc.d.ts} +7 -1
- package/dist/{manager-H5ZM3HAM.mjs → manager-JIA66YJ2.mjs} +4 -3
- package/dist/manager-JOHU6BQI.cjs +15 -0
- package/dist/markdown.cjs +7 -3
- package/dist/markdown.d.mts +10 -8
- package/dist/markdown.d.ts +10 -8
- package/dist/markdown.mjs +6 -2
- package/dist/middleware.cjs +11 -11
- package/dist/middleware.d.mts +13 -10
- package/dist/middleware.d.ts +13 -10
- package/dist/middleware.mjs +13 -13
- package/dist/mobile.d.mts +6 -6
- package/dist/mobile.d.ts +6 -6
- package/dist/mount.d-Bki4pOaJ.d.mts +38 -0
- package/dist/mount.d-DjR5aerM.d.ts +38 -0
- package/dist/{native-server-fn-handler-GLRHAYWV.mjs → native-server-fn-handler-EP5AFJYE.mjs} +5 -5
- package/dist/{native-server-fn-handler-J5MYRXN6.cjs → native-server-fn-handler-QRTXGZA4.cjs} +6 -6
- package/dist/{native-tree-7LPH57Z4.cjs → native-tree-W2SSJB3Y.cjs} +4 -4
- package/dist/{native-tree-VV6WN3GX.mjs → native-tree-Y5YQANW7.mjs} +3 -3
- package/dist/{navigation-delegate.d-GghbHJuK.d.ts → navigation-delegate.d-CtghaSP3.d.ts} +1 -1
- package/dist/{navigation-delegate.d-DQVYKoaZ.d.mts → navigation-delegate.d-VDkziXTK.d.mts} +1 -1
- package/dist/navigation.cjs +8 -7
- package/dist/navigation.d.mts +13 -11
- package/dist/navigation.d.ts +13 -11
- package/dist/navigation.mjs +7 -6
- package/dist/{nitro-DD4QCA66.mjs → nitro-NSTXT7LB.mjs} +11 -11
- package/dist/{nitro-VRDX2H4M.cjs → nitro-Y3LGITW3.cjs} +13 -13
- package/dist/node-module-bundle-LIZ2KMVW.cjs +13 -0
- package/dist/node-module-bundle-VR6NV6AI.mjs +13 -0
- package/dist/{plugin-53SY5YBS.mjs → plugin-SAS22JL7.mjs} +4 -3
- package/dist/{plugin-HZIBL3DW.cjs → plugin-WIU4GDD4.cjs} +5 -4
- package/dist/plugin.cjs +65 -63
- package/dist/plugin.d.mts +12 -10
- package/dist/plugin.d.ts +12 -10
- package/dist/plugin.mjs +64 -62
- package/dist/{production-runtime.d-Bzns3NW9.d.ts → production-runtime.d-BMyyLGBB.d.ts} +3 -57
- package/dist/{production-runtime.d-DiFa5vHW.d.mts → production-runtime.d-DMZY3OgV.d.mts} +3 -57
- package/dist/query/client.cjs +9 -7
- package/dist/query/client.mjs +5 -3
- package/dist/{render-plan.d-CcF0MeCf.d.mts → render-plan.d-BSwV8PE4.d.mts} +1 -1
- package/dist/{render-plan.d-CL_Ikfg_.d.ts → render-plan.d-i9sI4tc9.d.ts} +1 -1
- package/dist/renderer/none/server.cjs +35 -0
- package/dist/renderer/none/server.d.mts +21 -0
- package/dist/renderer/none/server.d.ts +21 -0
- package/dist/renderer/none/server.mjs +35 -0
- package/dist/renderer/react/server.cjs +3 -3
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +8 -6
- package/dist/renderer-client.d.mts +13 -11
- package/dist/renderer-client.d.ts +13 -11
- package/dist/renderer-client.mjs +5 -3
- package/dist/renderer.cjs +6 -2
- package/dist/renderer.d.mts +25 -2
- package/dist/renderer.d.ts +25 -2
- package/dist/renderer.mjs +5 -1
- package/dist/request.cjs +2 -2
- package/dist/{request.d-DarDOCk9.d.mts → request.d-C24FNQ_7.d.mts} +1 -1
- package/dist/{request.d-B1RnTLri.d.ts → request.d-Dgln8tuI.d.ts} +1 -1
- package/dist/request.d.mts +11 -9
- package/dist/request.d.ts +11 -9
- package/dist/request.mjs +1 -1
- package/dist/{route-rendering.d-BTUYCIj4.d.ts → route-rendering.d-CUylZKJA.d.ts} +1 -1
- package/dist/{route-rendering.d-D_2Ual0-.d.mts → route-rendering.d-Ds0BfwQi.d.mts} +1 -1
- package/dist/{route.d-BaVH3V0w.d.mts → route.d-DrXkpvcg.d.mts} +1 -1
- package/dist/{route.d-DBTEqifW.d.ts → route.d-hs-_cyHn.d.ts} +1 -1
- package/dist/{router.d-CMANF6da.d.ts → router.d-B56rMOFm.d.ts} +1 -1
- package/dist/{router.d-Cuv1jntg.d.mts → router.d-CFPcbqzc.d.mts} +1 -1
- package/dist/routes.cjs +3 -3
- package/dist/{routes.d-B6yFe6jm.d.ts → routes.d-9GFFNioh.d.ts} +2 -2
- package/dist/{routes.d-c2HKfrfL.d.mts → routes.d-CrEy0lJS.d.mts} +2 -2
- package/dist/routes.d.mts +10 -8
- package/dist/routes.d.ts +10 -8
- package/dist/routes.mjs +2 -2
- package/dist/{rsc-pipeline-Z7QBZOIJ.cjs → rsc-pipeline-3T7V6OUT.cjs} +30 -28
- package/dist/{rsc-pipeline-7PNVJSTR.mjs → rsc-pipeline-GA4AQWZI.mjs} +29 -27
- package/dist/{runtime-FKFCUHSK.cjs → runtime-REUTNTI5.cjs} +72 -46
- package/dist/{runtime-QQHX4BP3.mjs → runtime-ZYCKKY7L.mjs} +60 -34
- package/dist/{runtime.d-wvh4ngU0.d.mts → runtime.d-DLRO-ExG.d.mts} +11 -3
- package/dist/{runtime.d-C3RQUj6_.d.ts → runtime.d-H7k9hOQE.d.ts} +11 -3
- package/dist/{schema-dev-notice-JMXEQWIQ.mjs → schema-dev-notice-C2JINRZI.mjs} +3 -2
- package/dist/{schema-dev-notice-PLBFDTOF.cjs → schema-dev-notice-X7GG7QVB.cjs} +5 -4
- package/dist/schema.cjs +6 -2
- package/dist/schema.d-Dny9pnrm.d.mts +298 -0
- package/dist/schema.d-Dny9pnrm.d.ts +298 -0
- package/dist/schema.d.mts +1 -115
- package/dist/schema.d.ts +1 -115
- package/dist/schema.mjs +5 -1
- package/dist/server-fn-client.d.mts +2 -2
- package/dist/server-fn-client.d.ts +2 -2
- package/dist/server-fn.cjs +5 -5
- package/dist/server-fn.mjs +4 -4
- package/dist/server-http.d-rAe7lAQc.d.mts +70 -0
- package/dist/server-http.d-rAe7lAQc.d.ts +70 -0
- package/dist/server-plugins.cjs +7 -7
- package/dist/server-plugins.d.mts +20 -12
- package/dist/server-plugins.d.ts +20 -12
- package/dist/server-plugins.mjs +8 -8
- package/dist/server-query.cjs +6 -6
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +168 -126
- package/dist/server.d-C5FFrZAo.d.ts +57 -0
- package/dist/server.d-DgC8xew5.d.mts +57 -0
- package/dist/server.d.mts +24 -16
- package/dist/server.d.ts +24 -16
- package/dist/server.mjs +144 -102
- package/dist/{spa-router.d-m8H_Kl_B.d.ts → spa-router.d-Dr7oanhl.d.ts} +15 -5
- package/dist/{spa-router.d-WU_qS5gJ.d.mts → spa-router.d-g4CzhEH1.d.mts} +15 -5
- package/dist/testing.cjs +17 -17
- package/dist/testing.d.mts +10 -8
- package/dist/testing.d.ts +10 -8
- package/dist/testing.mjs +13 -13
- package/dist/theme/server.cjs +3 -3
- package/dist/theme/server.mjs +2 -2
- package/dist/types.d-xCIhyjOq.d.mts +233 -0
- package/dist/types.d-xCIhyjOq.d.ts +233 -0
- package/dist/{utils.d-C9dQD5Zg.d.ts → utils.d-BxxyDEb8.d.ts} +1 -1
- package/dist/{utils.d-W9IiEqmW.d.mts → utils.d-HIla3pD_.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +65 -63
- package/dist/vite.d.mts +36 -14
- package/dist/vite.d.ts +36 -14
- package/dist/vite.mjs +64 -62
- package/dist/workflows.cjs +4 -4
- package/dist/workflows.d.mts +121 -1
- package/dist/workflows.d.ts +121 -1
- package/dist/workflows.mjs +3 -3
- package/package.json +37 -2
- package/dist/analyzer-H7SIX6BJ.cjs +0 -16
- package/dist/chunk-5YPBFMBN.cjs +0 -19
- package/dist/chunk-CLFEQGET.cjs +0 -60
- package/dist/chunk-MK5E44WP.mjs +0 -60
- package/dist/chunk-OM7WILES.mjs +0 -100
- package/dist/chunk-Q5B4LNON.mjs +0 -19
- package/dist/chunk-QPJ4MZTO.mjs +0 -60
- package/dist/chunk-R53QDV6T.cjs +0 -100
- package/dist/chunk-UYTAP4FQ.cjs +0 -60
- package/dist/layers-DMRXRL7F.cjs +0 -18
- package/dist/manager-2LUKNX2N.cjs +0 -14
- package/dist/node-module-bundle-7JHPPF6B.mjs +0 -11
- package/dist/node-module-bundle-YJGYBOGK.cjs +0 -11
- package/dist/workflows.d-CRMzQZ3k.d.mts +0 -188
- package/dist/workflows.d-CRMzQZ3k.d.ts +0 -188
- /package/dist/{chunk-QGOZLGVP.mjs → chunk-I6FIAWNT.mjs} +0 -0
- /package/dist/{chunk-XPIPMWY3.cjs → chunk-K5NI5YQR.cjs} +0 -0
- /package/dist/{chunk-NWUHS6GV.cjs → chunk-QEJWNXRI.cjs} +0 -0
- /package/dist/{chunk-FSXSQQTV.mjs → chunk-TXE4SAMV.mjs} +0 -0
- /package/dist/{chunk-ZXK2EYQW.cjs → chunk-UUQNJDGH.cjs} +0 -0
- /package/dist/{chunk-46P5KNTE.mjs → chunk-VZBAW44S.mjs} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createFarmNativeTreeResponse
|
|
3
|
+
} from "../chunk-P2NBQ5JI.mjs";
|
|
1
4
|
import {
|
|
2
5
|
_applyFarmMobileShellClient,
|
|
3
6
|
_checkFarmMobileShellRoute,
|
|
4
7
|
_isFarmMobileShellRenderRequest
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import {
|
|
7
|
-
createFarmNativeTreeResponse
|
|
8
|
-
} from "../chunk-27FPUFWR.mjs";
|
|
8
|
+
} from "../chunk-RLH5AH2M.mjs";
|
|
9
9
|
import {
|
|
10
10
|
handleFarmDefaultMCPRequest
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-TEJ67GD2.mjs";
|
|
12
12
|
import {
|
|
13
13
|
createFarmNativeServerFnPlugin
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-Y2LU4LE5.mjs";
|
|
15
15
|
import {
|
|
16
16
|
generateNativeMCPPluginSource
|
|
17
17
|
} from "../chunk-KQH2COEJ.mjs";
|
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
_withFarmGuardedResponseCache,
|
|
24
24
|
applyProductionMiddlewareHeaders,
|
|
25
25
|
createProductionMiddlewareRunner
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-JL2YW5KX.mjs";
|
|
27
|
+
import "../chunk-DQ2DI3Y7.mjs";
|
|
27
28
|
import {
|
|
28
29
|
createFarmInstrumentationLifecycle,
|
|
29
30
|
resolveFarmInstrumentationRuntime
|
|
30
31
|
} from "../chunk-WNDAISB7.mjs";
|
|
31
|
-
import "../chunk-QTD6EMN2.mjs";
|
|
32
32
|
import {
|
|
33
33
|
appMiddlewareMayHandlePath,
|
|
34
34
|
applyFarmThemeDocument,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
parseFarmLayoutChainHeader,
|
|
49
49
|
renderFarmLocaleAlternateLinks,
|
|
50
50
|
resolveDefaultErrorStatus
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-ZPKJPM7K.mjs";
|
|
52
52
|
import "../chunk-LLZSYFOM.mjs";
|
|
53
53
|
import {
|
|
54
54
|
_farmPluginsKeepResponsesPrivate
|
|
@@ -57,9 +57,6 @@ import {
|
|
|
57
57
|
materializeSSGRoutePath,
|
|
58
58
|
mergeRouteRenderingDirectiveConfig
|
|
59
59
|
} from "../chunk-23LVFSID.mjs";
|
|
60
|
-
import {
|
|
61
|
-
handleFarmFormActionRequest
|
|
62
|
-
} from "../chunk-MK5E44WP.mjs";
|
|
63
60
|
import {
|
|
64
61
|
createFarmAiCatalogResponse,
|
|
65
62
|
createFarmApiCatalogResponse,
|
|
@@ -70,22 +67,31 @@ import {
|
|
|
70
67
|
resolveFarmMCPRouteLabel,
|
|
71
68
|
resolveFarmMarkdownRouteLabel,
|
|
72
69
|
setFarmRouteLabel
|
|
73
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-VFNAK6A5.mjs";
|
|
74
71
|
import {
|
|
75
72
|
collectFarmDefaultMCPPages,
|
|
76
73
|
resolveFarmDefaultMCPServer
|
|
77
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-K6SXMVXO.mjs";
|
|
78
75
|
import {
|
|
79
76
|
resolveFarmPreviewDeployment
|
|
80
|
-
} from "../chunk-
|
|
77
|
+
} from "../chunk-T5XFZQCL.mjs";
|
|
78
|
+
import "../chunk-L4RTTTVE.mjs";
|
|
79
|
+
import {
|
|
80
|
+
getFarmFormState,
|
|
81
|
+
handleFarmFormActionRequest,
|
|
82
|
+
renderFarmFormStateScript
|
|
83
|
+
} from "../chunk-ICFPTHXM.mjs";
|
|
81
84
|
import "../chunk-X3EFRVXY.mjs";
|
|
82
85
|
import {
|
|
83
86
|
ignoreFarmHeldValues,
|
|
84
87
|
installFarmIslandValues
|
|
85
88
|
} from "../chunk-A4PWGL46.mjs";
|
|
86
89
|
import "../chunk-MNIR7I7B.mjs";
|
|
87
|
-
import "../chunk-L4RTTTVE.mjs";
|
|
88
90
|
import "../chunk-XAXTTBUT.mjs";
|
|
91
|
+
import {
|
|
92
|
+
_setDefaultFarmThemeConfig,
|
|
93
|
+
getTheme
|
|
94
|
+
} from "../chunk-GJ7QVFAG.mjs";
|
|
89
95
|
import {
|
|
90
96
|
applyFarmPreviewRobotsTag,
|
|
91
97
|
createFarmAgentRobots,
|
|
@@ -94,33 +100,33 @@ import {
|
|
|
94
100
|
manageFarmHtmlPreloads,
|
|
95
101
|
manageFarmLinkHeaderPreloads,
|
|
96
102
|
reportFarmPreloadWarnings
|
|
97
|
-
} from "../chunk-
|
|
98
|
-
import {
|
|
99
|
-
applyFarmCspNonceToResponse,
|
|
100
|
-
createFarmCspNonce,
|
|
101
|
-
resolveFarmSecurityConfig,
|
|
102
|
-
stampFarmCspNonce
|
|
103
|
-
} from "../chunk-22W4FNTG.mjs";
|
|
103
|
+
} from "../chunk-OGVTUGMU.mjs";
|
|
104
104
|
import "../chunk-SQ5O7I3L.mjs";
|
|
105
105
|
import {
|
|
106
106
|
collectFarmLlmsTxtPages,
|
|
107
107
|
createFarmDefaultLlmsTxt,
|
|
108
108
|
createFarmLlmsFullRenderer,
|
|
109
109
|
createFarmLlmsMarkdownReader,
|
|
110
|
+
isFarmPageNoIndex,
|
|
111
|
+
readFarmLlmsMarkdownFrom,
|
|
110
112
|
renderFarmLlmsFullTxt,
|
|
113
|
+
resolveFarmAgentOrigin,
|
|
111
114
|
resolveFarmLlmsTxtConfig
|
|
112
|
-
} from "../chunk-
|
|
113
|
-
import
|
|
114
|
-
|
|
115
|
+
} from "../chunk-YGJ5P3TJ.mjs";
|
|
116
|
+
import {
|
|
117
|
+
applyFarmCspNonceToResponse,
|
|
118
|
+
createFarmCspNonce,
|
|
119
|
+
resolveFarmSecurityConfig,
|
|
120
|
+
stampFarmCspNonce
|
|
121
|
+
} from "../chunk-22W4FNTG.mjs";
|
|
115
122
|
import "../chunk-E46NXBNJ.mjs";
|
|
123
|
+
import "../chunk-IFR74W6S.mjs";
|
|
124
|
+
import "../chunk-WXFY5JIY.mjs";
|
|
116
125
|
import {
|
|
117
126
|
farmSecretsMatch
|
|
118
127
|
} from "../chunk-YP7YO3S3.mjs";
|
|
119
|
-
import {
|
|
120
|
-
_setDefaultFarmThemeConfig,
|
|
121
|
-
getTheme
|
|
122
|
-
} from "../chunk-EMDGXYUD.mjs";
|
|
123
128
|
import "../chunk-YWPNIYUP.mjs";
|
|
129
|
+
import "../chunk-M53MIIXY.mjs";
|
|
124
130
|
import {
|
|
125
131
|
_registerFarmStorageModules,
|
|
126
132
|
disposeStorage,
|
|
@@ -130,12 +136,11 @@ import {
|
|
|
130
136
|
resolveFarmRouteContext,
|
|
131
137
|
withFarmRouteContext
|
|
132
138
|
} from "../chunk-BMQAPZXD.mjs";
|
|
133
|
-
import "../chunk-M53MIIXY.mjs";
|
|
134
|
-
import "../chunk-KPAJWD3N.mjs";
|
|
135
139
|
import {
|
|
136
140
|
_runWithMiddlewareContext,
|
|
137
141
|
_runWithMiddlewareData
|
|
138
142
|
} from "../chunk-6ZFRWRHO.mjs";
|
|
143
|
+
import "../chunk-EYPSKXO4.mjs";
|
|
139
144
|
import "../chunk-EDPENAVO.mjs";
|
|
140
145
|
import {
|
|
141
146
|
_runWithAPIRequestRuntime
|
|
@@ -147,12 +152,15 @@ import "../chunk-D7Y63SOY.mjs";
|
|
|
147
152
|
import {
|
|
148
153
|
registerFarmMCPServer
|
|
149
154
|
} from "../chunk-C7GJDVN4.mjs";
|
|
155
|
+
import "../chunk-QSTRBKHZ.mjs";
|
|
150
156
|
import {
|
|
151
157
|
configureFarmCache,
|
|
152
158
|
getFarmDataCache,
|
|
153
159
|
normalizeRevalidatePath
|
|
154
160
|
} from "../chunk-RLEALQEN.mjs";
|
|
155
|
-
import
|
|
161
|
+
import {
|
|
162
|
+
fetchFarmExternalRewrite
|
|
163
|
+
} from "../chunk-CO6UYM2D.mjs";
|
|
156
164
|
import {
|
|
157
165
|
resolveFarmI18nConfig
|
|
158
166
|
} from "../chunk-MU5V7XHL.mjs";
|
|
@@ -160,18 +168,6 @@ import {
|
|
|
160
168
|
matchRoute,
|
|
161
169
|
parseRoutePath
|
|
162
170
|
} from "../chunk-JSDV2NUN.mjs";
|
|
163
|
-
import {
|
|
164
|
-
createFarmSearchParams,
|
|
165
|
-
searchParamsToObject
|
|
166
|
-
} from "../chunk-H3ASZDT7.mjs";
|
|
167
|
-
import {
|
|
168
|
-
configureFarmObservability,
|
|
169
|
-
emitFarmEvent,
|
|
170
|
-
runWithFarmRequestSpan
|
|
171
|
-
} from "../chunk-2DA7CLY7.mjs";
|
|
172
|
-
import {
|
|
173
|
-
fetchFarmExternalRewrite
|
|
174
|
-
} from "../chunk-CO6UYM2D.mjs";
|
|
175
171
|
import "../chunk-2I6PUKWJ.mjs";
|
|
176
172
|
import {
|
|
177
173
|
bufferFarmRequestBody,
|
|
@@ -184,11 +180,20 @@ import {
|
|
|
184
180
|
resolveFarmServerConfig
|
|
185
181
|
} from "../chunk-QDWMCFTH.mjs";
|
|
186
182
|
import "../chunk-D2LCAV6L.mjs";
|
|
187
|
-
import
|
|
183
|
+
import {
|
|
184
|
+
createFarmSearchParams,
|
|
185
|
+
searchParamsToObject
|
|
186
|
+
} from "../chunk-H3ASZDT7.mjs";
|
|
187
|
+
import {
|
|
188
|
+
configureFarmObservability,
|
|
189
|
+
emitFarmEvent,
|
|
190
|
+
runWithFarmRequestSpan
|
|
191
|
+
} from "../chunk-2DA7CLY7.mjs";
|
|
192
|
+
import "../chunk-F6CMGWAL.mjs";
|
|
188
193
|
import {
|
|
189
194
|
resolveFarmTrailingSlashRedirect,
|
|
190
195
|
setFarmTrailingSlashPreference
|
|
191
|
-
} from "../chunk-
|
|
196
|
+
} from "../chunk-YVPX5PI5.mjs";
|
|
192
197
|
import "../chunk-QPNVDSFZ.mjs";
|
|
193
198
|
import "../chunk-5Y4GYKKH.mjs";
|
|
194
199
|
import "../chunk-GUZC226X.mjs";
|
|
@@ -211,6 +216,11 @@ import {
|
|
|
211
216
|
} from "../chunk-S6O2L47H.mjs";
|
|
212
217
|
import "../chunk-NBIVGHAT.mjs";
|
|
213
218
|
import "../chunk-WCLLPR6H.mjs";
|
|
219
|
+
import {
|
|
220
|
+
isDeferred,
|
|
221
|
+
prepareDeferredData,
|
|
222
|
+
snapshotDeferredData
|
|
223
|
+
} from "../chunk-7BIW7VCW.mjs";
|
|
214
224
|
import "../chunk-M25IONJP.mjs";
|
|
215
225
|
import {
|
|
216
226
|
createFarmCacheKey
|
|
@@ -224,22 +234,22 @@ import {
|
|
|
224
234
|
_markFarmOwnedResponse,
|
|
225
235
|
_withFarmResponseHeaders
|
|
226
236
|
} from "../chunk-LM55GS4R.mjs";
|
|
227
|
-
import
|
|
228
|
-
getFarmRedirectError,
|
|
229
|
-
isFarmNotFoundError,
|
|
230
|
-
isFarmRedirectError
|
|
231
|
-
} from "../chunk-JNYFXL7X.mjs";
|
|
237
|
+
import "../chunk-OHWM2VI4.mjs";
|
|
232
238
|
import {
|
|
233
239
|
_getRequestReadCount,
|
|
234
240
|
_runWithCurrentRequest,
|
|
235
241
|
_runWithFarmCspNonce,
|
|
236
242
|
getCurrentRequest,
|
|
237
243
|
resolveFarmWebRequestOrigin
|
|
238
|
-
} from "../chunk-
|
|
239
|
-
import "../chunk-OHWM2VI4.mjs";
|
|
244
|
+
} from "../chunk-5OFNUETM.mjs";
|
|
240
245
|
import {
|
|
241
246
|
_resolveCurrentCspNonce
|
|
242
247
|
} from "../chunk-VIXTAVEA.mjs";
|
|
248
|
+
import {
|
|
249
|
+
getFarmRedirectError,
|
|
250
|
+
isFarmNotFoundError,
|
|
251
|
+
isFarmRedirectError
|
|
252
|
+
} from "../chunk-JNYFXL7X.mjs";
|
|
243
253
|
import {
|
|
244
254
|
localizeFarmHref,
|
|
245
255
|
localizeFarmPathname,
|
|
@@ -618,6 +628,7 @@ export {
|
|
|
618
628
|
getCurrentRequest,
|
|
619
629
|
getDefaultErrorStatusText,
|
|
620
630
|
getFarmDataCache,
|
|
631
|
+
getFarmFormState,
|
|
621
632
|
getFarmLocaleVaryHeaders,
|
|
622
633
|
getFarmRedirectError,
|
|
623
634
|
getRoutePatternSpecificity,
|
|
@@ -628,7 +639,9 @@ export {
|
|
|
628
639
|
ignoreFarmHeldValues,
|
|
629
640
|
initStorage as initFarmStorage,
|
|
630
641
|
installFarmIslandValues,
|
|
642
|
+
isDeferred,
|
|
631
643
|
isFarmNotFoundError,
|
|
644
|
+
isFarmPageNoIndex,
|
|
632
645
|
isFarmRedirectError,
|
|
633
646
|
isInRouteGroupScope as isInFarmRouteGroupScope,
|
|
634
647
|
listFarmMCPLlmsTxtLinks,
|
|
@@ -646,9 +659,12 @@ export {
|
|
|
646
659
|
normalizeRevalidatePath,
|
|
647
660
|
parseFarmLayoutChainHeader,
|
|
648
661
|
parseRoutePath,
|
|
662
|
+
prepareDeferredData,
|
|
663
|
+
readFarmLlmsMarkdownFrom,
|
|
649
664
|
readFarmRequestBody,
|
|
650
665
|
readNodeRequestBody,
|
|
651
666
|
registerFarmMCPServer,
|
|
667
|
+
renderFarmFormStateScript,
|
|
652
668
|
renderFarmLegacyErrorHtml,
|
|
653
669
|
renderFarmLegacyHtml,
|
|
654
670
|
renderFarmLlmsFullTxt,
|
|
@@ -657,6 +673,7 @@ export {
|
|
|
657
673
|
renderViewportHead,
|
|
658
674
|
reportFarmPreloadWarnings,
|
|
659
675
|
resolveDefaultErrorStatus,
|
|
676
|
+
resolveFarmAgentOrigin,
|
|
660
677
|
resolveFarmDefaultMCPServer,
|
|
661
678
|
resolveFarmDocsEngineRouteLabel,
|
|
662
679
|
resolveFarmDocsRouteLabel,
|
|
@@ -679,6 +696,7 @@ export {
|
|
|
679
696
|
setFarmBasePath,
|
|
680
697
|
setFarmRouteLabel,
|
|
681
698
|
setFarmTrailingSlashPreference,
|
|
699
|
+
snapshotDeferredData,
|
|
682
700
|
stampFarmCspNonce,
|
|
683
701
|
stripFarmBasePath,
|
|
684
702
|
stripFarmLocaleFromPathname,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkP2355C6Ecjs = require('../chunk-P2355C6E.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHDPT6OYEcjs = require('../chunk-HDPT6OYE.cjs');
|
|
7
7
|
require('../chunk-3BIASUGR.cjs');
|
|
8
8
|
require('../chunk-BTZ5O6VM.cjs');
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ require('../chunk-BTZ5O6VM.cjs');
|
|
|
11
11
|
var requests = /* @__PURE__ */ new WeakMap();
|
|
12
12
|
function cache(fn) {
|
|
13
13
|
const memoized = function(...args) {
|
|
14
|
-
const request =
|
|
14
|
+
const request = _chunkHDPT6OYEcjs.getCurrentRequestOrNull.call(void 0, );
|
|
15
15
|
if (!request) return fn.apply(this, args);
|
|
16
16
|
let functions = requests.get(request);
|
|
17
17
|
if (!functions) requests.set(request, functions = /* @__PURE__ */ new WeakMap());
|
|
@@ -51,7 +51,7 @@ function cache(fn) {
|
|
|
51
51
|
}
|
|
52
52
|
var signals = /* @__PURE__ */ new WeakMap();
|
|
53
53
|
function cacheSignal() {
|
|
54
|
-
const request =
|
|
54
|
+
const request = _chunkHDPT6OYEcjs.getCurrentRequestOrNull.call(void 0, );
|
|
55
55
|
if (!request) return null;
|
|
56
56
|
let controller = signals.get(request);
|
|
57
57
|
if (!controller) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPRL7FXG4cjs = require('../chunk-PRL7FXG4.cjs');
|
|
7
7
|
require('../chunk-ATYTLVSI.cjs');
|
|
8
8
|
require('../chunk-CQL5ZGFU.cjs');
|
|
9
9
|
require('../chunk-BTZ5O6VM.cjs');
|
|
@@ -12,4 +12,4 @@ require('../chunk-BTZ5O6VM.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.FARM_SERVER_TREE_PAYLOAD_ONLY_ATTRIBUTE =
|
|
15
|
+
exports.FARM_SERVER_TREE_PAYLOAD_ONLY_ATTRIBUTE = _chunkPRL7FXG4cjs.FARM_SERVER_TREE_PAYLOAD_ONLY_ATTRIBUTE; exports.FARM_SERVER_TREE_SCRIPT_TYPE = _chunkPRL7FXG4cjs.FARM_SERVER_TREE_SCRIPT_TYPE; exports.createFarmServerTreeElement = _chunkPRL7FXG4cjs.createFarmServerTreeElement; exports.renderFarmServerTreePage = _chunkPRL7FXG4cjs.renderFarmServerTreePage;
|
|
@@ -22,11 +22,6 @@ interface FarmServerTreeRenderOptions {
|
|
|
22
22
|
*/
|
|
23
23
|
payloadOnly?: boolean;
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
26
|
-
* @internal Resolves a server page and returns the page boundary's children: the resolved tree
|
|
27
|
-
* and its payload. Errors from the page's own code, including redirect and notFound controls,
|
|
28
|
-
* propagate unchanged. Suspense children resolve concurrently and stream as React renders them.
|
|
29
|
-
*/
|
|
30
25
|
declare function renderFarmServerTreePage(ReactRuntime: typeof React__default, element: React__default.ReactNode, options: FarmServerTreeRenderOptions): Promise<React__default.ReactElement>;
|
|
31
26
|
interface FarmServerTreeElementOptions {
|
|
32
27
|
load(reference: string): Promise<Record<string, unknown>>;
|
|
@@ -22,11 +22,6 @@ interface FarmServerTreeRenderOptions {
|
|
|
22
22
|
*/
|
|
23
23
|
payloadOnly?: boolean;
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
26
|
-
* @internal Resolves a server page and returns the page boundary's children: the resolved tree
|
|
27
|
-
* and its payload. Errors from the page's own code, including redirect and notFound controls,
|
|
28
|
-
* propagate unchanged. Suspense children resolve concurrently and stream as React renders them.
|
|
29
|
-
*/
|
|
30
25
|
declare function renderFarmServerTreePage(ReactRuntime: typeof React__default, element: React__default.ReactNode, options: FarmServerTreeRenderOptions): Promise<React__default.ReactElement>;
|
|
31
26
|
interface FarmServerTreeElementOptions {
|
|
32
27
|
load(reference: string): Promise<Record<string, unknown>>;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
FARM_SERVER_TREE_SCRIPT_TYPE,
|
|
4
4
|
createFarmServerTreeElement,
|
|
5
5
|
renderFarmServerTreePage
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-C6HGUTXB.mjs";
|
|
7
7
|
import "../chunk-FHURJABM.mjs";
|
|
8
8
|
import "../chunk-NBIVGHAT.mjs";
|
|
9
9
|
import "../chunk-Y6FXYEAI.mjs";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
var _chunkUKZ6AWKZcjs = require('../chunk-UKZ6AWKZ.cjs');
|
|
4
|
+
require('../chunk-JWLRBDDC.cjs');
|
|
5
|
+
require('../chunk-5DX3O6TT.cjs');
|
|
6
|
+
require('../chunk-2OF5RPVU.cjs');
|
|
7
|
+
require('../chunk-CFG4QERR.cjs');
|
|
8
|
+
require('../chunk-JYT7AN37.cjs');
|
|
9
|
+
require('../chunk-EVIWKPJV.cjs');
|
|
10
|
+
require('../chunk-PMJSG4JS.cjs');
|
|
11
|
+
require('../chunk-R5U7OIPI.cjs');
|
|
12
|
+
require('../chunk-A25FXJ7D.cjs');
|
|
13
|
+
require('../chunk-6CTFVBAT.cjs');
|
|
14
|
+
require('../chunk-HDPT6OYE.cjs');
|
|
15
|
+
require('../chunk-3BIASUGR.cjs');
|
|
16
|
+
require('../chunk-7JUIK547.cjs');
|
|
17
|
+
require('../chunk-OWQV6MLM.cjs');
|
|
18
|
+
require('../chunk-D22BUQKW.cjs');
|
|
19
|
+
require('../chunk-YTVSWXEZ.cjs');
|
|
20
|
+
require('../chunk-BTZ5O6VM.cjs');
|
|
21
|
+
|
|
22
|
+
// src/middleware/vercel-edge.ts
|
|
23
|
+
var NEXT_HEADER = "x-middleware-next";
|
|
24
|
+
var REWRITE_HEADER = "x-middleware-rewrite";
|
|
25
|
+
var trimTrailingSlashes = (pathname) => pathname.replace(/\/+$/, "") || "/";
|
|
26
|
+
function toGuardedPagePathname(pathname, pages) {
|
|
27
|
+
let page;
|
|
28
|
+
if (pathname.endsWith("/index.html")) page = pathname.slice(0, -"/index.html".length);
|
|
29
|
+
else if (pathname.endsWith(".html")) page = pathname.slice(0, -".html".length);
|
|
30
|
+
if (page === void 0) return void 0;
|
|
31
|
+
page = trimTrailingSlashes(page);
|
|
32
|
+
return pages.has(page) ? page : void 0;
|
|
33
|
+
}
|
|
34
|
+
function requestForPage(request, pathname) {
|
|
35
|
+
const url = new URL(request.url);
|
|
36
|
+
url.pathname = pathname;
|
|
37
|
+
return new Request(url, {
|
|
38
|
+
method: request.method,
|
|
39
|
+
headers: request.headers,
|
|
40
|
+
body: request.body,
|
|
41
|
+
redirect: request.redirect,
|
|
42
|
+
signal: request.signal,
|
|
43
|
+
// Required by the Request constructor whenever the body is a stream.
|
|
44
|
+
...request.body ? { duplex: "half" } : {}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function createFarmVercelEdgeMiddleware(options) {
|
|
48
|
+
const runMiddleware = _chunkUKZ6AWKZcjs.createProductionMiddlewareRunner.call(void 0, {
|
|
49
|
+
modules: options.modules,
|
|
50
|
+
i18n: options.i18n,
|
|
51
|
+
server: options.server,
|
|
52
|
+
apiBasePath: options.apiBasePath
|
|
53
|
+
});
|
|
54
|
+
const pages = new Set((_nullishCoalesce(options.pages, () => ( []))).map(trimTrailingSlashes));
|
|
55
|
+
return async function farmVercelEdgeMiddleware(request) {
|
|
56
|
+
const page = toGuardedPagePathname(new URL(request.url).pathname, pages);
|
|
57
|
+
const guardedRequest = page ? requestForPage(request, page) : request;
|
|
58
|
+
let result;
|
|
59
|
+
try {
|
|
60
|
+
result = await runMiddleware(guardedRequest, {
|
|
61
|
+
clientAddress: _nullishCoalesce(request.headers.get("x-real-ip"), () => ( void 0))
|
|
62
|
+
});
|
|
63
|
+
} catch (error) {
|
|
64
|
+
console.error("Middleware error:", error);
|
|
65
|
+
return new Response("Internal Server Error", {
|
|
66
|
+
status: 500,
|
|
67
|
+
headers: { "Cache-Control": "private, no-store", "Content-Type": "text/plain" }
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
if (result.response) return result.response;
|
|
71
|
+
const headers = new Headers(result.headers);
|
|
72
|
+
for (const name of Array.from(headers.keys())) {
|
|
73
|
+
if (name.toLowerCase().startsWith("x-middleware-")) headers.delete(name);
|
|
74
|
+
}
|
|
75
|
+
if (result.notFound) {
|
|
76
|
+
headers.set(REWRITE_HEADER, new URL(options.notFoundPath, request.url).href);
|
|
77
|
+
} else if (result.request.url !== guardedRequest.url) {
|
|
78
|
+
headers.set(REWRITE_HEADER, result.request.url);
|
|
79
|
+
} else {
|
|
80
|
+
headers.set(NEXT_HEADER, "1");
|
|
81
|
+
}
|
|
82
|
+
return new Response(null, { headers });
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
exports.createFarmVercelEdgeMiddleware = createFarmVercelEdgeMiddleware;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { R as ResolvedFarmI18nConfig } from '../types.d-C41ePjvP.mjs';
|
|
2
|
+
import { R as ResolvedFarmServerConfig } from '../server-http.d-rAe7lAQc.mjs';
|
|
3
|
+
import { P as ProductionMiddlewareModuleEntry } from '../production-runtime.d-DMZY3OgV.mjs';
|
|
4
|
+
import '../types.d-xCIhyjOq.mjs';
|
|
5
|
+
import 'http';
|
|
6
|
+
import 'vite';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Runs `runtime: "edge"` middleware files as Vercel routing middleware, in front of the static
|
|
10
|
+
* files `farm build` prerendered for the paths they guard. It reuses the production middleware
|
|
11
|
+
* runner, so a guard decides here exactly as it does in the server, and answers in Vercel's
|
|
12
|
+
* middleware protocol: `x-middleware-next` lets Vercel serve the static page, `x-middleware-rewrite`
|
|
13
|
+
* routes a `ctx.rewrite()`, and a response the middleware returned is sent as it is.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
interface FarmVercelEdgeMiddlewareOptions {
|
|
17
|
+
/** The `runtime: "edge"` middleware files, root first, as the server registers them. */
|
|
18
|
+
modules: ProductionMiddlewareModuleEntry[];
|
|
19
|
+
i18n?: ResolvedFarmI18nConfig;
|
|
20
|
+
server?: Pick<ResolvedFarmServerConfig, "trustProxy">;
|
|
21
|
+
apiBasePath?: string;
|
|
22
|
+
/**
|
|
23
|
+
* A path no route answers, under the app's basePath. A middleware that calls `notFound()` is
|
|
24
|
+
* answered from the server by rewriting here, so the app's own not-found page renders with a
|
|
25
|
+
* 404, as it does when the server runs the middleware.
|
|
26
|
+
*/
|
|
27
|
+
notFoundPath: string;
|
|
28
|
+
/**
|
|
29
|
+
* The URL of each page these middleware files guard, as the edge route lists them. Vercel serves
|
|
30
|
+
* a page's static file at `/index.html` and `.html` beside the page URL, so a request for one of
|
|
31
|
+
* those is decided as a request for the page: a matcher written for `/dashboard` must not miss
|
|
32
|
+
* `/dashboard/index.html`.
|
|
33
|
+
*/
|
|
34
|
+
pages?: readonly string[];
|
|
35
|
+
}
|
|
36
|
+
/** @internal */
|
|
37
|
+
declare function createFarmVercelEdgeMiddleware(options: FarmVercelEdgeMiddlewareOptions): (request: Request) => Promise<Response>;
|
|
38
|
+
|
|
39
|
+
export { type FarmVercelEdgeMiddlewareOptions, createFarmVercelEdgeMiddleware };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { R as ResolvedFarmI18nConfig } from '../types.d-C41ePjvP.js';
|
|
2
|
+
import { R as ResolvedFarmServerConfig } from '../server-http.d-rAe7lAQc.js';
|
|
3
|
+
import { P as ProductionMiddlewareModuleEntry } from '../production-runtime.d-BMyyLGBB.js';
|
|
4
|
+
import '../types.d-xCIhyjOq.js';
|
|
5
|
+
import 'http';
|
|
6
|
+
import 'vite';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Runs `runtime: "edge"` middleware files as Vercel routing middleware, in front of the static
|
|
10
|
+
* files `farm build` prerendered for the paths they guard. It reuses the production middleware
|
|
11
|
+
* runner, so a guard decides here exactly as it does in the server, and answers in Vercel's
|
|
12
|
+
* middleware protocol: `x-middleware-next` lets Vercel serve the static page, `x-middleware-rewrite`
|
|
13
|
+
* routes a `ctx.rewrite()`, and a response the middleware returned is sent as it is.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
interface FarmVercelEdgeMiddlewareOptions {
|
|
17
|
+
/** The `runtime: "edge"` middleware files, root first, as the server registers them. */
|
|
18
|
+
modules: ProductionMiddlewareModuleEntry[];
|
|
19
|
+
i18n?: ResolvedFarmI18nConfig;
|
|
20
|
+
server?: Pick<ResolvedFarmServerConfig, "trustProxy">;
|
|
21
|
+
apiBasePath?: string;
|
|
22
|
+
/**
|
|
23
|
+
* A path no route answers, under the app's basePath. A middleware that calls `notFound()` is
|
|
24
|
+
* answered from the server by rewriting here, so the app's own not-found page renders with a
|
|
25
|
+
* 404, as it does when the server runs the middleware.
|
|
26
|
+
*/
|
|
27
|
+
notFoundPath: string;
|
|
28
|
+
/**
|
|
29
|
+
* The URL of each page these middleware files guard, as the edge route lists them. Vercel serves
|
|
30
|
+
* a page's static file at `/index.html` and `.html` beside the page URL, so a request for one of
|
|
31
|
+
* those is decided as a request for the page: a matcher written for `/dashboard` must not miss
|
|
32
|
+
* `/dashboard/index.html`.
|
|
33
|
+
*/
|
|
34
|
+
pages?: readonly string[];
|
|
35
|
+
}
|
|
36
|
+
/** @internal */
|
|
37
|
+
declare function createFarmVercelEdgeMiddleware(options: FarmVercelEdgeMiddlewareOptions): (request: Request) => Promise<Response>;
|
|
38
|
+
|
|
39
|
+
export { type FarmVercelEdgeMiddlewareOptions, createFarmVercelEdgeMiddleware };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createProductionMiddlewareRunner
|
|
3
|
+
} from "../chunk-JL2YW5KX.mjs";
|
|
4
|
+
import "../chunk-EYPSKXO4.mjs";
|
|
5
|
+
import "../chunk-EDPENAVO.mjs";
|
|
6
|
+
import "../chunk-2I6PUKWJ.mjs";
|
|
7
|
+
import "../chunk-QDWMCFTH.mjs";
|
|
8
|
+
import "../chunk-D2LCAV6L.mjs";
|
|
9
|
+
import "../chunk-2DA7CLY7.mjs";
|
|
10
|
+
import "../chunk-W6QLRQ3V.mjs";
|
|
11
|
+
import "../chunk-AY2YD5ZX.mjs";
|
|
12
|
+
import "../chunk-LM55GS4R.mjs";
|
|
13
|
+
import "../chunk-OHWM2VI4.mjs";
|
|
14
|
+
import "../chunk-5OFNUETM.mjs";
|
|
15
|
+
import "../chunk-VIXTAVEA.mjs";
|
|
16
|
+
import "../chunk-JNYFXL7X.mjs";
|
|
17
|
+
import "../chunk-7S7AAK2D.mjs";
|
|
18
|
+
import "../chunk-SF3JB56B.mjs";
|
|
19
|
+
import "../chunk-AYP2YFVN.mjs";
|
|
20
|
+
import "../chunk-Y6FXYEAI.mjs";
|
|
21
|
+
|
|
22
|
+
// src/middleware/vercel-edge.ts
|
|
23
|
+
var NEXT_HEADER = "x-middleware-next";
|
|
24
|
+
var REWRITE_HEADER = "x-middleware-rewrite";
|
|
25
|
+
var trimTrailingSlashes = (pathname) => pathname.replace(/\/+$/, "") || "/";
|
|
26
|
+
function toGuardedPagePathname(pathname, pages) {
|
|
27
|
+
let page;
|
|
28
|
+
if (pathname.endsWith("/index.html")) page = pathname.slice(0, -"/index.html".length);
|
|
29
|
+
else if (pathname.endsWith(".html")) page = pathname.slice(0, -".html".length);
|
|
30
|
+
if (page === void 0) return void 0;
|
|
31
|
+
page = trimTrailingSlashes(page);
|
|
32
|
+
return pages.has(page) ? page : void 0;
|
|
33
|
+
}
|
|
34
|
+
function requestForPage(request, pathname) {
|
|
35
|
+
const url = new URL(request.url);
|
|
36
|
+
url.pathname = pathname;
|
|
37
|
+
return new Request(url, {
|
|
38
|
+
method: request.method,
|
|
39
|
+
headers: request.headers,
|
|
40
|
+
body: request.body,
|
|
41
|
+
redirect: request.redirect,
|
|
42
|
+
signal: request.signal,
|
|
43
|
+
// Required by the Request constructor whenever the body is a stream.
|
|
44
|
+
...request.body ? { duplex: "half" } : {}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function createFarmVercelEdgeMiddleware(options) {
|
|
48
|
+
const runMiddleware = createProductionMiddlewareRunner({
|
|
49
|
+
modules: options.modules,
|
|
50
|
+
i18n: options.i18n,
|
|
51
|
+
server: options.server,
|
|
52
|
+
apiBasePath: options.apiBasePath
|
|
53
|
+
});
|
|
54
|
+
const pages = new Set((options.pages ?? []).map(trimTrailingSlashes));
|
|
55
|
+
return async function farmVercelEdgeMiddleware(request) {
|
|
56
|
+
const page = toGuardedPagePathname(new URL(request.url).pathname, pages);
|
|
57
|
+
const guardedRequest = page ? requestForPage(request, page) : request;
|
|
58
|
+
let result;
|
|
59
|
+
try {
|
|
60
|
+
result = await runMiddleware(guardedRequest, {
|
|
61
|
+
clientAddress: request.headers.get("x-real-ip") ?? void 0
|
|
62
|
+
});
|
|
63
|
+
} catch (error) {
|
|
64
|
+
console.error("Middleware error:", error);
|
|
65
|
+
return new Response("Internal Server Error", {
|
|
66
|
+
status: 500,
|
|
67
|
+
headers: { "Cache-Control": "private, no-store", "Content-Type": "text/plain" }
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
if (result.response) return result.response;
|
|
71
|
+
const headers = new Headers(result.headers);
|
|
72
|
+
for (const name of Array.from(headers.keys())) {
|
|
73
|
+
if (name.toLowerCase().startsWith("x-middleware-")) headers.delete(name);
|
|
74
|
+
}
|
|
75
|
+
if (result.notFound) {
|
|
76
|
+
headers.set(REWRITE_HEADER, new URL(options.notFoundPath, request.url).href);
|
|
77
|
+
} else if (result.request.url !== guardedRequest.url) {
|
|
78
|
+
headers.set(REWRITE_HEADER, result.request.url);
|
|
79
|
+
} else {
|
|
80
|
+
headers.set(NEXT_HEADER, "1");
|
|
81
|
+
}
|
|
82
|
+
return new Response(null, { headers });
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
createFarmVercelEdgeMiddleware
|
|
87
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkMTBDJ326cjs = require('./chunk-MTBDJ326.cjs');
|
|
10
|
+
require('./chunk-ASYOWPSR.cjs');
|
|
11
|
+
require('./chunk-BTZ5O6VM.cjs');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.createFarmConfigResolutionPlugin = _chunkMTBDJ326cjs.createFarmConfigResolutionPlugin; exports.findFarmConfigFile = _chunkMTBDJ326cjs.findFarmConfigFile; exports.getFarmAppDirectories = _chunkMTBDJ326cjs.getFarmAppDirectories; exports.getFarmLayerAliases = _chunkMTBDJ326cjs.getFarmLayerAliases; exports.getFarmSourceRoots = _chunkMTBDJ326cjs.getFarmSourceRoots; exports.loadFarmConfigFile = _chunkMTBDJ326cjs.loadFarmConfigFile; exports.resolveFarmLayers = _chunkMTBDJ326cjs.resolveFarmLayers;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createFarmConfigResolutionPlugin,
|
|
3
|
+
findFarmConfigFile,
|
|
3
4
|
getFarmAppDirectories,
|
|
4
5
|
getFarmLayerAliases,
|
|
5
6
|
getFarmSourceRoots,
|
|
6
7
|
loadFarmConfigFile,
|
|
7
8
|
resolveFarmLayers
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-E7VF3LQ5.mjs";
|
|
10
|
+
import "./chunk-MGKWYPE3.mjs";
|
|
10
11
|
import "./chunk-Y6FXYEAI.mjs";
|
|
11
12
|
export {
|
|
12
13
|
createFarmConfigResolutionPlugin,
|
|
14
|
+
findFarmConfigFile,
|
|
13
15
|
getFarmAppDirectories,
|
|
14
16
|
getFarmLayerAliases,
|
|
15
17
|
getFarmSourceRoots,
|