@farm.js/core 0.1.72 → 0.1.74
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-VIT4GOSR.mjs → agent-mcp-handler-HX4F4VKN.mjs} +4 -4
- package/dist/{agent-mcp-handler-KE4J3W7S.cjs → agent-mcp-handler-NRIL4JBC.cjs} +5 -5
- package/dist/{agent-mcp.d-Cwff7lcA.d.mts → agent-mcp.d-BEhDfdWc.d.mts} +1 -1
- package/dist/{agent-mcp.d-BO3rZXEM.d.ts → agent-mcp.d-CX8_oOT_.d.ts} +1 -1
- package/dist/agent-runtime.cjs +4 -4
- package/dist/agent-runtime.d.mts +5 -5
- package/dist/agent-runtime.d.ts +5 -5
- package/dist/agent-runtime.mjs +3 -3
- package/dist/{analyzer-5Q75LTIL.mjs → analyzer-2K35LIQZ.mjs} +2 -2
- package/dist/analyzer-6EOYURMV.cjs +16 -0
- package/dist/api/client.d.mts +3 -3
- package/dist/api/client.d.ts +3 -3
- package/dist/api/client.native.d.mts +4 -4
- package/dist/api/client.native.d.ts +4 -4
- package/dist/api/node.cjs +9 -8
- package/dist/api/node.d.mts +7 -7
- package/dist/api/node.d.ts +7 -7
- package/dist/api/node.mjs +8 -7
- package/dist/api/route-manager.cjs +11 -9
- package/dist/api/route-manager.d.mts +10 -8
- package/dist/api/route-manager.d.ts +10 -8
- package/dist/api/route-manager.mjs +10 -8
- package/dist/api/runtime.cjs +8 -7
- package/dist/api/runtime.d.mts +6 -6
- package/dist/api/runtime.d.ts +6 -6
- package/dist/api/runtime.mjs +7 -6
- package/dist/{api-client.d-Bp35zMqR.d.mts → api-client.d-CyVmI4Di.d.mts} +2 -2
- package/dist/{api-client.d-CFI_xL0V.d.ts → api-client.d-DrTM7BdH.d.ts} +2 -2
- package/dist/api.cjs +13 -11
- package/dist/api.d.mts +10 -10
- package/dist/api.d.ts +10 -10
- package/dist/api.mjs +12 -10
- package/dist/{app-manifest.d-USD_IbFd.d.mts → app-manifest.d-BcXt2yCx.d.mts} +10 -1
- package/dist/{app-manifest.d-DwjGkYlP.d.ts → app-manifest.d-CVEx1CFB.d.ts} +10 -1
- package/dist/app-markdown.cjs +8 -4
- package/dist/app-markdown.d.mts +7 -7
- package/dist/app-markdown.d.ts +7 -7
- package/dist/app-markdown.mjs +7 -3
- package/dist/{app.d-DAmF2MAk.d.ts → app.d-B6i8CSrx.d.ts} +36 -4
- package/dist/{app.d-fW06_h8h.d.mts → app.d-DowzSmT5.d.mts} +36 -4
- package/dist/cache.cjs +2 -2
- package/dist/cache.d.mts +8 -0
- package/dist/cache.d.ts +8 -0
- package/dist/cache.mjs +1 -1
- package/dist/chunk-2DOI6HLJ.cjs +284 -0
- package/dist/chunk-2GQBBOFH.mjs +76 -0
- package/dist/{chunk-5LOARKDP.cjs → chunk-2TZ3F6TN.cjs} +29 -17
- package/dist/{chunk-IWCYRDRQ.cjs → chunk-35GBGSQZ.cjs} +3 -3
- package/dist/{chunk-GF22VGMS.cjs → chunk-3BUJIPKE.cjs} +2 -2
- package/dist/{chunk-Y5LEPEVH.mjs → chunk-3ODLJRA6.mjs} +1 -1
- package/dist/{chunk-DMAP4RND.cjs → chunk-3OMLZLDE.cjs} +54 -16
- package/dist/{chunk-VNBDN5W2.cjs → chunk-47ZDUDN5.cjs} +64 -27
- package/dist/{chunk-2W4GNXGX.cjs → chunk-4AB62NMW.cjs} +2 -2
- package/dist/{chunk-HDPT6OYE.cjs → chunk-4M5ESTJ2.cjs} +10 -2
- package/dist/{chunk-CBLRSZQL.cjs → chunk-56HHUSR5.cjs} +502 -430
- package/dist/chunk-5XD2ULJG.mjs +114 -0
- package/dist/{chunk-JX5VOLAV.cjs → chunk-65OS2TOT.cjs} +4 -4
- package/dist/{chunk-WIJF3PBM.mjs → chunk-6JEXH7N6.mjs} +1 -1
- package/dist/{chunk-TY5KCYDE.mjs → chunk-72NTEYCX.mjs} +10 -3
- package/dist/{chunk-5R4Q5FN7.cjs → chunk-737MIVX3.cjs} +52 -41
- package/dist/{chunk-5X6OHJEE.cjs → chunk-77SVUQM5.cjs} +74 -20
- package/dist/{chunk-CKQAQFF6.mjs → chunk-7RKHXF4P.mjs} +2 -2
- package/dist/{chunk-GJEC5S4V.mjs → chunk-7VCLTNED.mjs} +1 -1
- package/dist/{chunk-E3LE6EZH.cjs → chunk-ACAEFEOH.cjs} +38 -41
- package/dist/{chunk-REP6HWJN.mjs → chunk-AL6E63FZ.mjs} +2 -2
- package/dist/{chunk-DQ2DI3Y7.mjs → chunk-AO5IRA2N.mjs} +2 -2
- package/dist/{chunk-VAWDGGW3.mjs → chunk-AU5UPNOD.mjs} +26 -15
- package/dist/{chunk-DS7JGFW5.mjs → chunk-B3XY6FMC.mjs} +71 -17
- package/dist/{chunk-U7VH3Q5E.cjs → chunk-B5WZP3T3.cjs} +15 -2
- package/dist/{chunk-3JN5M3T5.mjs → chunk-BFOMCSZ2.mjs} +476 -138
- package/dist/{chunk-I4KPA2C6.mjs → chunk-BIX46FTI.mjs} +1 -1
- package/dist/{chunk-YZLEOMMA.mjs → chunk-BNXV3PRM.mjs} +4 -4
- package/dist/{chunk-3GNVIYPO.cjs → chunk-BSJMWCWM.cjs} +7 -7
- package/dist/{chunk-WVQNXXNE.cjs → chunk-BWFBTTJ5.cjs} +2 -2
- package/dist/{chunk-FEFCISOX.cjs → chunk-CEVXKJKF.cjs} +2 -2
- package/dist/{chunk-DGNMXL2O.mjs → chunk-CF77L6RL.mjs} +33 -36
- package/dist/{chunk-OB45EAQL.mjs → chunk-CXQZQK6R.mjs} +3 -2
- package/dist/{chunk-255J7K4X.mjs → chunk-D2IAYGYA.mjs} +1 -1
- package/dist/{chunk-OSEQL34Q.cjs → chunk-D4TYE6MY.cjs} +2 -2
- package/dist/{chunk-FSSONJRV.cjs → chunk-DM2YGTRH.cjs} +24 -17
- package/dist/{chunk-ICFPTHXM.mjs → chunk-DRBXYJZ6.mjs} +7 -3
- package/dist/{chunk-E3HDJCWF.mjs → chunk-DRHHTHA3.mjs} +1 -1
- package/dist/{chunk-YXIQYWOK.cjs → chunk-DTBRSRTR.cjs} +23 -5
- package/dist/{chunk-JZQS3ZOI.mjs → chunk-E4T7WJJN.mjs} +10 -2
- package/dist/{chunk-YAEN3L2F.cjs → chunk-EF5AP4CV.cjs} +21 -2
- package/dist/{chunk-SPP3EZTJ.cjs → chunk-EHJOSIXM.cjs} +137 -67
- package/dist/{chunk-JZBU7V4D.mjs → chunk-ELJQWUAR.mjs} +125 -55
- package/dist/{chunk-DMXMIE2C.cjs → chunk-ENYBDM4U.cjs} +2 -2
- package/dist/{chunk-ZFEJ2SF2.cjs → chunk-EWIEJQP6.cjs} +28 -28
- package/dist/{chunk-ZUVAGMQ5.cjs → chunk-F244KE2D.cjs} +7 -7
- package/dist/{chunk-WW3LRNQV.mjs → chunk-FCBUNILW.mjs} +1 -1
- package/dist/{chunk-645ENY7W.mjs → chunk-FEQ72ZHD.mjs} +16 -9
- package/dist/{chunk-ME7RVELR.mjs → chunk-FGXSWRWA.mjs} +20 -1
- package/dist/{chunk-2AFW7673.cjs → chunk-FNWL5DMG.cjs} +4 -3
- package/dist/{chunk-HLMUWKAP.cjs → chunk-FYV6DTAG.cjs} +826 -531
- package/dist/{chunk-7PPLTD3P.cjs → chunk-G7S6XG6X.cjs} +6 -6
- package/dist/{chunk-AQIO3RNL.mjs → chunk-GK2GBIXD.mjs} +3 -3
- package/dist/{chunk-IHTDLCDJ.cjs → chunk-GRHSQYD4.cjs} +17 -4
- package/dist/{chunk-W44X6IC2.cjs → chunk-HBLYSWIJ.cjs} +13 -9
- package/dist/chunk-HK4VJI27.cjs +76 -0
- package/dist/{chunk-EGIY4A7V.cjs → chunk-HKZVC5GP.cjs} +2 -2
- package/dist/{chunk-EYPSKXO4.mjs → chunk-HRQV5Q3J.mjs} +1 -1
- package/dist/{chunk-S7MWSFFP.cjs → chunk-IBEHVSU4.cjs} +2 -2
- package/dist/{chunk-77VNYVVX.mjs → chunk-IG4IQMIW.mjs} +1 -1
- package/dist/{chunk-N3XO5AL5.cjs → chunk-IJFNXP3D.cjs} +2 -2
- package/dist/{chunk-RFWWXEIF.mjs → chunk-IP2R2TAE.mjs} +1 -1
- package/dist/{chunk-FETMUBIA.mjs → chunk-IZ5WOTQP.mjs} +1 -1
- package/dist/{chunk-CSLHNBPS.cjs → chunk-J42QN7OC.cjs} +6 -6
- package/dist/{chunk-NDDRTFN4.mjs → chunk-J7EUGGTY.mjs} +2 -2
- package/dist/{chunk-5XFKWHZD.mjs → chunk-JI6N4W2I.mjs} +208 -136
- package/dist/{chunk-GJ7QVFAG.mjs → chunk-JOECBGY7.mjs} +1 -1
- package/dist/{chunk-CL52PD6D.cjs → chunk-JSUVQ5HG.cjs} +8 -8
- package/dist/{chunk-DZHTNSQ5.cjs → chunk-JWHRVBCZ.cjs} +14 -14
- package/dist/{chunk-OSMUE5ST.mjs → chunk-JZ43UD6S.mjs} +7 -7
- package/dist/{chunk-RLEALQEN.mjs → chunk-KIRIFO6T.mjs} +43 -5
- package/dist/{chunk-XGTFLG73.cjs → chunk-KMYOKQPP.cjs} +18 -11
- package/dist/{chunk-WX63N6C5.mjs → chunk-KNEYWPZV.mjs} +64 -27
- package/dist/{chunk-AYVGD3PK.mjs → chunk-KUMKBBYP.mjs} +1 -1
- package/dist/{chunk-VT25ERQK.mjs → chunk-KWUZJZ23.mjs} +21 -3
- package/dist/{chunk-NV26EGMC.mjs → chunk-LHFGTR7F.mjs} +2 -2
- package/dist/{chunk-4P5634G6.cjs → chunk-LIQJYEQP.cjs} +14 -9
- package/dist/chunk-LRPPXKCX.mjs +58 -0
- package/dist/chunk-LXTYJ2HW.mjs +139 -0
- package/dist/{chunk-O32QPFVV.cjs → chunk-MKQ27TGW.cjs} +5 -5
- package/dist/{chunk-KQAB5LML.mjs → chunk-MQ5HA7H2.mjs} +2 -2
- package/dist/{chunk-Z3GPAFIA.mjs → chunk-MUITBU5Z.mjs} +1 -1
- package/dist/chunk-NDOE76QC.cjs +58 -0
- package/dist/{chunk-EXN4DTVF.cjs → chunk-NET6PBUH.cjs} +2 -2
- package/dist/{chunk-YBY34UHB.mjs → chunk-NKETXVKP.mjs} +15 -2
- package/dist/chunk-NRWEY2CM.mjs +25 -0
- package/dist/chunk-NU5XLYRN.cjs +139 -0
- package/dist/{chunk-BE7AQXJB.cjs → chunk-NXGQIXR7.cjs} +507 -169
- package/dist/{chunk-C5AM2XDN.cjs → chunk-O2A6HE76.cjs} +4 -4
- package/dist/{chunk-OAEDVXVE.mjs → chunk-O6K4G7YA.mjs} +5 -2
- package/dist/{chunk-LXEJNWF5.mjs → chunk-OSKIG4OP.mjs} +2 -2
- package/dist/{chunk-3WG7GJQL.cjs → chunk-P3EZKU6L.cjs} +18 -18
- package/dist/{chunk-C2JOS77Z.cjs → chunk-PG6ZIHKE.cjs} +250 -51
- package/dist/{chunk-ET6WW3FY.cjs → chunk-Q3MVNRAO.cjs} +1305 -848
- package/dist/{chunk-AZ6IW6SF.mjs → chunk-Q4G52OSW.mjs} +1 -1
- package/dist/{chunk-TPYAYFMF.cjs → chunk-QL3YZTGZ.cjs} +2 -2
- package/dist/{chunk-JMFTKNBA.mjs → chunk-R4BWNP73.mjs} +2 -2
- package/dist/{chunk-J5ASGNKF.mjs → chunk-R6Q6VSGU.mjs} +24 -9
- package/dist/{chunk-B6RBJJ5G.mjs → chunk-RBRIKT6B.mjs} +15 -2
- package/dist/{chunk-C6CUUBY5.cjs → chunk-RHI67C2V.cjs} +5 -5
- package/dist/chunk-RK3YYUX6.cjs +114 -0
- package/dist/{chunk-Y2LU4LE5.mjs → chunk-ROPMQNCG.mjs} +2 -2
- package/dist/{chunk-QIXEU2WV.cjs → chunk-RQ4UZJPR.cjs} +3 -3
- package/dist/{chunk-ZDZUFD67.cjs → chunk-RSL3YFJG.cjs} +1 -1
- package/dist/{chunk-JWY66PID.cjs → chunk-S3D6SL2V.cjs} +9 -6
- package/dist/{chunk-4HGLJOXZ.cjs → chunk-TPDKFRQX.cjs} +11 -11
- package/dist/{chunk-E2V7RRFL.mjs → chunk-UHAARKF3.mjs} +2 -2
- package/dist/{chunk-QSTRBKHZ.mjs → chunk-UJWRXBVP.mjs} +2 -2
- package/dist/{chunk-7QCJDYZQ.cjs → chunk-V6T3UJAH.cjs} +7 -7
- package/dist/{chunk-AUAMXI6N.mjs → chunk-VFPFXMTF.mjs} +1 -1
- package/dist/{chunk-KPJYBSHL.mjs → chunk-VKLV7GF4.mjs} +221 -22
- package/dist/{chunk-TP4RAV7Y.cjs → chunk-VKRMO3EZ.cjs} +8 -8
- package/dist/chunk-VWIW47FW.cjs +25 -0
- package/dist/{chunk-L6E4SHUB.cjs → chunk-VZKCGHWC.cjs} +39 -24
- package/dist/{chunk-JWLRBDDC.cjs → chunk-WH3PBJS7.cjs} +2 -2
- package/dist/{chunk-BSXKZPFE.mjs → chunk-WS4SLJW5.mjs} +501 -206
- package/dist/{chunk-5OFNUETM.mjs → chunk-WTTJ2YS2.mjs} +9 -1
- package/dist/{chunk-RLFGKJQ6.mjs → chunk-X2KNHD4B.mjs} +14 -2
- package/dist/{chunk-5CFHQ7HM.mjs → chunk-XXKMAHYE.mjs} +1 -1
- package/dist/{chunk-MBCRWU3P.cjs → chunk-XZPI44Q7.cjs} +4 -4
- package/dist/{chunk-ACGBXN3U.cjs → chunk-Y4FEQBKY.cjs} +17 -9
- package/dist/{chunk-MWUDEYBI.mjs → chunk-YH33PZ3K.mjs} +1 -1
- package/dist/chunk-YQWRBBAA.mjs +284 -0
- package/dist/{chunk-QUYAGU65.mjs → chunk-YWDRWG4L.mjs} +1210 -753
- package/dist/{chunk-E46NXBNJ.mjs → chunk-ZD7JUTBY.mjs} +11 -6
- package/dist/{chunk-JDO346NV.mjs → chunk-ZLRWO5GK.mjs} +1 -1
- package/dist/{chunk-NAXKOTPP.cjs → chunk-ZRCGPSUM.cjs} +21 -21
- package/dist/{chunk-YCNHUIPR.cjs → chunk-ZZGANFQH.cjs} +10 -10
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-component.d-9J7CkTWW.d.ts → client-component.d-DYOwmq0c.d.ts} +80 -3
- package/dist/{client-component.d-ciHeCxr-.d.mts → client-component.d-edV76QvU.d.mts} +80 -3
- package/dist/{client-plugins.d-CUOhfapO.d.ts → client-plugins.d-BmJYW2FY.d.ts} +20 -7
- package/dist/{client-plugins.d-JnRz5a1o.d.mts → client-plugins.d-DwvqqGsU.d.mts} +20 -7
- package/dist/client-plugins.d.mts +5 -5
- package/dist/client-plugins.d.ts +5 -5
- package/dist/client.cjs +6 -5
- package/dist/client.d.mts +12 -12
- package/dist/client.d.ts +12 -12
- package/dist/client.mjs +5 -4
- package/dist/config.d.mts +5 -5
- package/dist/config.d.ts +5 -5
- package/dist/cron.cjs +6 -2
- package/dist/cron.d.mts +11 -2
- package/dist/cron.d.ts +11 -2
- package/dist/cron.mjs +7 -3
- package/dist/desktop.d.mts +6 -6
- package/dist/desktop.d.ts +6 -6
- package/dist/{devtools-7JPQMSTQ.mjs → devtools-WPX62NG2.mjs} +10 -9
- package/dist/{devtools-IZFUYWPG.cjs → devtools-YMDS7PUA.cjs} +12 -11
- package/dist/docs.cjs +14 -13
- package/dist/docs.d.mts +6 -6
- package/dist/docs.d.ts +6 -6
- package/dist/docs.mjs +13 -12
- package/dist/{endpoint.d-BkMSCRf6.d.mts → endpoint.d-BXbBpKoh.d.mts} +42 -1
- package/dist/{endpoint.d-BgHn0lhl.d.ts → endpoint.d-Dx_1k6Du.d.ts} +42 -1
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.mjs +2 -2
- package/dist/headers.cjs +3 -3
- package/dist/{headers.d-CqpTL_fZ.d.ts → headers.d-BIbQyAxJ.d.ts} +1 -1
- package/dist/{headers.d-rbbTKGaN.d.mts → headers.d-BtNxFc2s.d.mts} +1 -1
- package/dist/headers.mjs +2 -2
- package/dist/index.cjs +73 -60
- package/dist/{index.d-CMKvzHLW.d.ts → index.d-CQ_wUzOV.d.ts} +1 -1
- package/dist/{index.d-D_B2D9Il.d.mts → index.d-CQdDRXd1.d.mts} +1 -1
- package/dist/index.d.mts +63 -29
- package/dist/index.d.ts +63 -29
- package/dist/index.mjs +69 -56
- package/dist/integrations/orm.d.mts +5 -5
- package/dist/integrations/orm.d.ts +5 -5
- package/dist/integrations.cjs +4 -4
- package/dist/integrations.d.mts +5 -5
- package/dist/integrations.d.ts +5 -5
- package/dist/integrations.mjs +3 -3
- package/dist/internal/app-markdown-runtime.cjs +7 -3
- package/dist/internal/app-markdown-runtime.d.mts +18 -7
- package/dist/internal/app-markdown-runtime.d.ts +18 -7
- package/dist/internal/app-markdown-runtime.mjs +6 -2
- package/dist/internal/build-runtime.cjs +42 -40
- package/dist/internal/build-runtime.d.mts +7 -7
- package/dist/internal/build-runtime.d.ts +7 -7
- package/dist/internal/build-runtime.mjs +41 -39
- package/dist/internal/cli-runtime.cjs +21 -20
- package/dist/internal/cli-runtime.mjs +20 -19
- package/dist/internal/client-error-overlay.cjs +6 -6
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +6 -2
- package/dist/internal/client-runtime.d.mts +22 -10
- package/dist/internal/client-runtime.d.ts +22 -10
- package/dist/internal/client-runtime.mjs +5 -1
- package/dist/internal/compression-runtime.d.mts +5 -5
- package/dist/internal/compression-runtime.d.ts +5 -5
- package/dist/internal/config-runtime.cjs +12 -11
- package/dist/internal/config-runtime.d.mts +7 -7
- package/dist/internal/config-runtime.d.ts +7 -7
- package/dist/internal/config-runtime.mjs +11 -10
- package/dist/internal/form-actions.cjs +5 -4
- package/dist/internal/form-actions.d.mts +2 -2
- package/dist/internal/form-actions.d.ts +2 -2
- package/dist/internal/form-actions.mjs +4 -3
- package/dist/internal/infra-analytics-runtime.cjs +10 -10
- package/dist/internal/infra-analytics-runtime.mjs +8 -8
- 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 +32 -22
- package/dist/internal/production-runtime.d.mts +65 -14
- package/dist/internal/production-runtime.d.ts +65 -14
- package/dist/internal/production-runtime.mjs +31 -21
- package/dist/internal/react-cache.cjs +3 -3
- package/dist/internal/react-cache.mjs +1 -1
- package/dist/internal/vercel-edge-middleware.cjs +4 -4
- package/dist/internal/vercel-edge-middleware.mjs +3 -3
- package/dist/{lifecycle.d-keQs5Swc.d.mts → lifecycle.d-OtGWAvJT.d.mts} +4 -0
- package/dist/{lifecycle.d-keQs5Swc.d.ts → lifecycle.d-OtGWAvJT.d.ts} +4 -0
- package/dist/{manager-JIA66YJ2.mjs → manager-RHB2P35B.mjs} +4 -1
- package/dist/{manager-JOHU6BQI.cjs → manager-S77ZARTC.cjs} +5 -2
- package/dist/markdown.cjs +2 -2
- package/dist/markdown.d.mts +5 -5
- package/dist/markdown.d.ts +5 -5
- package/dist/markdown.mjs +1 -1
- package/dist/middleware.cjs +6 -6
- package/dist/middleware.d.mts +5 -5
- package/dist/middleware.d.ts +5 -5
- package/dist/middleware.mjs +5 -5
- package/dist/{mount.d-ImEO7q8a.d.mts → mount.d-6bhpBQQB.d.mts} +1 -1
- package/dist/{mount.d-B0XMxDRh.d.ts → mount.d-C-u7rFkM.d.ts} +1 -1
- package/dist/{native-server-fn-handler-EP5AFJYE.mjs → native-server-fn-handler-I66X4E5S.mjs} +6 -5
- package/dist/{native-server-fn-handler-QRTXGZA4.cjs → native-server-fn-handler-W4FSD76W.cjs} +7 -6
- package/dist/{native-tree-L2IIEBXH.mjs → native-tree-3X23BT3N.mjs} +2 -2
- package/dist/{native-tree-GF4BH33L.cjs → native-tree-TAPKR7QJ.cjs} +3 -3
- package/dist/{navigation-delegate.d-83Q7ksf7.d.mts → navigation-delegate.d-nx6gtsY4.d.mts} +1 -1
- package/dist/{navigation-delegate.d-RRx1CSlb.d.ts → navigation-delegate.d-xsG4T1x-.d.ts} +1 -1
- package/dist/navigation.cjs +4 -4
- package/dist/navigation.d.mts +8 -8
- package/dist/navigation.d.ts +8 -8
- package/dist/navigation.mjs +3 -3
- package/dist/{nitro-2LMOMIST.cjs → nitro-SSFTPZMW.cjs} +4 -4
- package/dist/{nitro-72TFIGGO.mjs → nitro-XTQ2HKDL.mjs} +1 -1
- package/dist/{observability.d-B2363jB6.d.ts → observability.d-DdJRiaIX.d.mts} +27 -3
- package/dist/{observability.d-B2363jB6.d.mts → observability.d-DdJRiaIX.d.ts} +27 -3
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/plugin.cjs +36 -33
- package/dist/plugin.d.mts +8 -8
- package/dist/plugin.d.ts +8 -8
- package/dist/plugin.mjs +35 -32
- package/dist/query/client.cjs +5 -5
- package/dist/query/client.mjs +1 -1
- package/dist/{render-plan.d-wP8nTeRV.d.mts → render-plan.d-B5y3h97B.d.mts} +1 -1
- package/dist/{render-plan.d-Ds2sXJ5m.d.ts → render-plan.d-gW0fwKz2.d.ts} +1 -1
- package/dist/renderer-client.cjs +4 -4
- package/dist/renderer-client.d.mts +8 -8
- package/dist/renderer-client.d.ts +8 -8
- package/dist/renderer-client.mjs +1 -1
- package/dist/request.cjs +2 -2
- package/dist/{request.d-zpSn6pu_.d.ts → request.d-B0ugAadD.d.ts} +9 -2
- package/dist/{request.d-F3h7K37m.d.mts → request.d-DLq33nYo.d.mts} +9 -2
- package/dist/request.d.mts +6 -6
- package/dist/request.d.ts +6 -6
- package/dist/request.mjs +1 -1
- package/dist/{route-rendering.d-Mw0ZKG2e.d.mts → route-rendering.d-DSeIV7yV.d.mts} +1 -1
- package/dist/{route-rendering.d-BL0_AdKj.d.ts → route-rendering.d-ytaqDQD6.d.ts} +1 -1
- package/dist/{route.d-DrXkpvcg.d.mts → route.d-Cd4Fi6BA.d.ts} +3 -1
- package/dist/{route.d-hs-_cyHn.d.ts → route.d-ShmtqqVQ.d.mts} +3 -1
- package/dist/{router.d-BwXigemZ.d.ts → router.d-BaEAEGPg.d.ts} +1 -1
- package/dist/{router.d-NGVsU11T.d.mts → router.d-Chd5cpe3.d.mts} +1 -1
- package/dist/routes.cjs +5 -3
- package/dist/routes.d.mts +5 -5
- package/dist/routes.d.ts +5 -5
- package/dist/routes.mjs +4 -2
- package/dist/{rsc-pipeline-DHYZLWSF.mjs → rsc-pipeline-DPMYONEV.mjs} +12 -11
- package/dist/{rsc-pipeline-BNXYMG4G.cjs → rsc-pipeline-XIUUMMG5.cjs} +13 -12
- package/dist/{runtime-IWOT6ZVC.cjs → runtime-WD77S3C5.cjs} +25 -25
- package/dist/{runtime-XPYKUNL3.mjs → runtime-XIUJZTZ3.mjs} +16 -16
- package/dist/{runtime.d-BA3MzhXz.d.mts → runtime.d-DpCs0eAO.d.mts} +3 -3
- package/dist/{runtime.d-OBIZWpx1.d.ts → runtime.d-h2USyQsz.d.ts} +3 -3
- package/dist/server-action-security.cjs +5 -3
- package/dist/server-action-security.d.mts +11 -3
- package/dist/server-action-security.d.ts +11 -3
- package/dist/server-action-security.mjs +4 -2
- package/dist/server-fn-client.d.mts +3 -3
- package/dist/server-fn-client.d.ts +3 -3
- package/dist/server-fn.cjs +6 -5
- package/dist/server-fn.d.mts +1 -1
- package/dist/server-fn.d.ts +1 -1
- package/dist/server-fn.mjs +5 -4
- package/dist/server-plugins.cjs +4 -4
- package/dist/server-plugins.d.mts +54 -10
- package/dist/server-plugins.d.ts +54 -10
- package/dist/server-plugins.mjs +3 -3
- package/dist/server-query-client.d.mts +1 -1
- package/dist/server-query-client.d.ts +1 -1
- package/dist/server-query.cjs +7 -6
- package/dist/server-query.d.mts +1 -1
- package/dist/server-query.d.ts +1 -1
- package/dist/server-query.mjs +6 -5
- package/dist/server.cjs +65 -68
- package/dist/server.d.mts +15 -15
- package/dist/server.d.ts +15 -15
- package/dist/server.mjs +44 -47
- package/dist/{spa-router.d-BG2XzE5p.d.mts → spa-router.d-DCQVtEaE.d.mts} +11 -5
- package/dist/{spa-router.d-DrYT944-.d.ts → spa-router.d-DpdJHs1q.d.ts} +11 -5
- package/dist/testing.cjs +16 -14
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.mjs +12 -10
- package/dist/theme/server.cjs +3 -3
- package/dist/theme/server.mjs +2 -2
- package/dist/{utils.d-C1k9BJeD.d.mts → utils.d-DKDZtAY5.d.mts} +1 -1
- package/dist/{utils.d-DcF4wxey.d.ts → utils.d-DmicwMvS.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +38 -33
- package/dist/vite.d.mts +24 -10
- package/dist/vite.d.ts +24 -10
- package/dist/vite.mjs +37 -32
- package/package.json +1 -1
- package/dist/analyzer-UJG4MIZW.cjs +0 -16
- package/dist/chunk-6I4BFRE7.cjs +0 -51
- package/dist/chunk-EIVGPQN5.mjs +0 -51
- package/dist/chunk-V3UOEWCB.cjs +0 -46
- package/dist/chunk-VE3FWJBO.mjs +0 -46
- /package/dist/{chunk-QEJWNXRI.cjs → chunk-EMRYJG4U.cjs} +0 -0
- /package/dist/{chunk-TXE4SAMV.mjs → chunk-H2ZJ35NW.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkS3D6SL2Vcjs = require('./chunk-S3D6SL2V.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -54,7 +54,7 @@ function _applyFarmMobileShellClient(request, response, client, onPrivate) {
|
|
|
54
54
|
return _chunkA25FXJ7Dcjs._withFarmResponseHeaders.call(void 0, response, (headers2) => appendVary(headers2, FARM_SHELL_HEADER));
|
|
55
55
|
}
|
|
56
56
|
_optionalChain([onPrivate, 'optionalCall', _8 => _8()]);
|
|
57
|
-
const headers = new Headers(
|
|
57
|
+
const headers = new Headers(_chunkS3D6SL2Vcjs._withFarmGuardedResponseCache.call(void 0, response).headers);
|
|
58
58
|
appendVary(headers, FARM_SHELL_HEADER);
|
|
59
59
|
headers.delete("content-length");
|
|
60
60
|
headers.delete("etag");
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
collectFarmLlmsTxtPages,
|
|
3
3
|
getFarmAgentPagePublicPath,
|
|
4
4
|
resolveFarmAgentOrigin
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MUITBU5Z.mjs";
|
|
6
6
|
import {
|
|
7
7
|
getFarmMarkdownMirrorPath,
|
|
8
8
|
isFarmMarkdownMirrorExposed
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VKLV7GF4.mjs";
|
|
10
10
|
import {
|
|
11
11
|
_listFarmMCPCatalogs,
|
|
12
12
|
_listFarmRegisteredMCPServers
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
_resolveFarmMarkdownIndexAlias,
|
|
9
9
|
createFarmMarkdownViewResponse,
|
|
10
10
|
requestAcceptsMarkdown
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VKLV7GF4.mjs";
|
|
12
12
|
import {
|
|
13
13
|
withoutFarmDeploymentCookie
|
|
14
14
|
} from "./chunk-IWJONXPF.mjs";
|
|
@@ -62,18 +62,31 @@ function createMarkdownMetadata(source, filePath) {
|
|
|
62
62
|
source: filePath
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
async function
|
|
66
|
-
const [{
|
|
65
|
+
async function compileFarmMarkdownPage(body) {
|
|
66
|
+
const [{ compile }, remarkGfmModule] = await Promise.all([
|
|
67
67
|
import("@mdx-js/mdx"),
|
|
68
|
-
import("react/jsx-runtime"),
|
|
69
68
|
import("remark-gfm")
|
|
70
69
|
]);
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
baseUrl: pathToFileURL(filePath),
|
|
75
|
-
remarkPlugins: [remarkGfm]
|
|
70
|
+
const compiled = await compile(body, {
|
|
71
|
+
outputFormat: "function-body",
|
|
72
|
+
remarkPlugins: [remarkGfmModule.default]
|
|
76
73
|
});
|
|
74
|
+
return String(compiled);
|
|
75
|
+
}
|
|
76
|
+
var AsyncFunction = Object.getPrototypeOf(async () => {
|
|
77
|
+
}).constructor;
|
|
78
|
+
async function runFarmMarkdownPage(code, filePath) {
|
|
79
|
+
const { Fragment, jsx, jsxs } = await import("react/jsx-runtime");
|
|
80
|
+
return new AsyncFunction(code)({ Fragment, jsx, jsxs, baseUrl: pathToFileURL(filePath) });
|
|
81
|
+
}
|
|
82
|
+
var FARM_MARKDOWN_PRECOMPILED_PAGES = /* @__PURE__ */ Symbol.for("farm.markdown.precompiledPages");
|
|
83
|
+
function precompiledFarmMarkdownPage(body) {
|
|
84
|
+
const pages = globalThis[FARM_MARKDOWN_PRECOMPILED_PAGES];
|
|
85
|
+
return pages?.get(body);
|
|
86
|
+
}
|
|
87
|
+
async function evaluateMdxSource(body, filePath) {
|
|
88
|
+
const code = precompiledFarmMarkdownPage(body) ?? await compileFarmMarkdownPage(body);
|
|
89
|
+
return runFarmMarkdownPage(code, filePath);
|
|
77
90
|
}
|
|
78
91
|
var MARKDOWN_ROUTE_CONFIG_EXPORT = /^export\s+const\s+(dynamic|revalidate|ssg)\s*=\s*("[^"\\]*"|'[^'\\]*'|\d+(?:\.\d+)?|true|false)\s*;?\s*$/;
|
|
79
92
|
function readFarmMarkdownRouteConfig(body) {
|
|
@@ -309,6 +322,8 @@ export {
|
|
|
309
322
|
parseMarkdownFrontmatter,
|
|
310
323
|
titleFromMarkdown,
|
|
311
324
|
createMarkdownMetadata,
|
|
325
|
+
compileFarmMarkdownPage,
|
|
326
|
+
FARM_MARKDOWN_PRECOMPILED_PAGES,
|
|
312
327
|
readFarmMarkdownRouteConfig,
|
|
313
328
|
createFarmMarkdownRouteModule,
|
|
314
329
|
isFarmMarkdownPublicSourceResponse,
|
|
@@ -14,13 +14,22 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
createRouteDataCacheTag,
|
|
16
16
|
getFarmDataCache
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KIRIFO6T.mjs";
|
|
18
18
|
import {
|
|
19
19
|
createFarmSearchParams
|
|
20
20
|
} from "./chunk-H3ASZDT7.mjs";
|
|
21
|
+
import {
|
|
22
|
+
getActiveFarmI18nSnapshot
|
|
23
|
+
} from "./chunk-M25IONJP.mjs";
|
|
21
24
|
import {
|
|
22
25
|
createFarmCacheKey
|
|
23
26
|
} from "./chunk-GLOICKDO.mjs";
|
|
27
|
+
import {
|
|
28
|
+
stripFarmLocaleFromPathname
|
|
29
|
+
} from "./chunk-7S7AAK2D.mjs";
|
|
30
|
+
import {
|
|
31
|
+
stripFarmBasePath
|
|
32
|
+
} from "./chunk-SF3JB56B.mjs";
|
|
24
33
|
|
|
25
34
|
// src/routes.ts
|
|
26
35
|
var FARM_ROUTES_BRAND = /* @__PURE__ */ Symbol.for("farm.routes");
|
|
@@ -589,13 +598,17 @@ async function resolveProgrammaticRouteData(route, dataHooks, context) {
|
|
|
589
598
|
...await resolveProgrammaticRouteDataKeys(dataHooks.tags, context)
|
|
590
599
|
],
|
|
591
600
|
paths: [
|
|
592
|
-
...typeof context.path === "string" ? [context.path] : [],
|
|
601
|
+
...typeof context.path === "string" ? /* @__PURE__ */ new Set([context.path, toRouteDataPathname(context.path)]) : [],
|
|
593
602
|
...await resolveProgrammaticRouteDataKeys(dataHooks.paths, context)
|
|
594
603
|
],
|
|
595
604
|
revalidate
|
|
596
605
|
};
|
|
597
606
|
return getFarmDataCache().getOrSet(cacheKey, () => dataHooks.main(context), cacheOptions);
|
|
598
607
|
}
|
|
608
|
+
function toRouteDataPathname(path) {
|
|
609
|
+
const i18n = getActiveFarmI18nSnapshot();
|
|
610
|
+
return i18n ? stripFarmLocaleFromPathname(path, i18n) : stripFarmBasePath(path);
|
|
611
|
+
}
|
|
599
612
|
async function resolveProgrammaticRouteDataKeys(input, context) {
|
|
600
613
|
if (!input) return [];
|
|
601
614
|
const value = typeof input === "function" ? await input(context) : input;
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCEVXKJKFcjs = require('./chunk-CEVXKJKF.cjs');
|
|
7
7
|
|
|
8
8
|
// src/integration-request-security.ts
|
|
9
9
|
function resolveIntegrationAllowedOrigins(values, label) {
|
|
10
|
-
return Object.freeze((_nullishCoalesce(values, () => ( []))).map((value) =>
|
|
10
|
+
return Object.freeze((_nullishCoalesce(values, () => ( []))).map((value) => _chunkCEVXKJKFcjs.normalizeAllowedOriginPattern.call(void 0, value, label)));
|
|
11
11
|
}
|
|
12
12
|
function validateIntegrationRequestOrigin(request, policy = {}) {
|
|
13
13
|
const allowedOrigins = _nullishCoalesce(policy.allowedOrigins, () => ( []));
|
|
14
14
|
const requireOriginMetadata = _nullishCoalesce(policy.requireOriginMetadata, () => ( true));
|
|
15
15
|
const fetchSite = _optionalChain([request, 'access', _ => _.headers, 'access', _2 => _2.get, 'call', _3 => _3("sec-fetch-site"), 'optionalAccess', _4 => _4.trim, 'call', _5 => _5(), 'access', _6 => _6.toLowerCase, 'call', _7 => _7()]);
|
|
16
|
-
const source =
|
|
16
|
+
const source = _chunkCEVXKJKFcjs.getRequestSourceOrigin.call(void 0, request);
|
|
17
17
|
if (!source.ok) {
|
|
18
18
|
return { ok: false, reason: source.reason };
|
|
19
19
|
}
|
|
@@ -28,9 +28,9 @@ function validateIntegrationRequestOrigin(request, policy = {}) {
|
|
|
28
28
|
}
|
|
29
29
|
const requestUrl = new URL(request.url);
|
|
30
30
|
const matchesConfiguredOrigin = allowedOrigins.some(
|
|
31
|
-
(pattern) =>
|
|
31
|
+
(pattern) => _chunkCEVXKJKFcjs.matchesAllowedOrigin.call(void 0, source.origin, pattern)
|
|
32
32
|
);
|
|
33
|
-
const matchesRequest = source.origin === requestUrl.origin ||
|
|
33
|
+
const matchesRequest = source.origin === requestUrl.origin || _chunkCEVXKJKFcjs.matchesHostHeader.call(void 0, source.origin, request);
|
|
34
34
|
if (!matchesRequest && !matchesConfiguredOrigin) {
|
|
35
35
|
return { ok: false, reason: "cross-site" };
|
|
36
36
|
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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; }// src/client/link-prefetch.ts
|
|
2
|
+
var FARM_LINK_PREFETCH_ATTRIBUTE = "data-farm-prefetch";
|
|
3
|
+
var FARM_LINK_PREFETCH_DELAY_ATTRIBUTE = "data-farm-prefetch-delay";
|
|
4
|
+
var FARM_LINK_PREFETCH_DELAY = 50;
|
|
5
|
+
var LINK = "a[data-farm-link][href]";
|
|
6
|
+
var INTENT_EVENTS = ["mouseover", "focusin", "touchstart"];
|
|
7
|
+
var LEAVE_EVENTS = ["mouseout", "focusout"];
|
|
8
|
+
function readRouter() {
|
|
9
|
+
const router = window.__FARM_SPA_ROUTER__;
|
|
10
|
+
return router && typeof router.prefetch === "function" ? router : null;
|
|
11
|
+
}
|
|
12
|
+
function readMode(anchor) {
|
|
13
|
+
return anchor.getAttribute(FARM_LINK_PREFETCH_ATTRIBUTE);
|
|
14
|
+
}
|
|
15
|
+
function isRouted(anchor) {
|
|
16
|
+
const href = anchor.getAttribute("href");
|
|
17
|
+
return !!href && !href.startsWith("//") && !/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(href);
|
|
18
|
+
}
|
|
19
|
+
function linksIn(node) {
|
|
20
|
+
if (!(node instanceof Element)) return [];
|
|
21
|
+
const links = Array.from(node.querySelectorAll(LINK));
|
|
22
|
+
if (node.matches(LINK)) links.unshift(node);
|
|
23
|
+
return links.filter(isRouted);
|
|
24
|
+
}
|
|
25
|
+
function ignore() {
|
|
26
|
+
}
|
|
27
|
+
function installFarmLinkPrefetch() {
|
|
28
|
+
const timers = /* @__PURE__ */ new Map();
|
|
29
|
+
const observed = /* @__PURE__ */ new Set();
|
|
30
|
+
const prefetch = (anchor) => {
|
|
31
|
+
const href = anchor.getAttribute("href");
|
|
32
|
+
const router = readRouter();
|
|
33
|
+
if (!href || !router) return;
|
|
34
|
+
try {
|
|
35
|
+
void Promise.resolve(router.prefetch(href)).catch(ignore);
|
|
36
|
+
} catch (e) {
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const intentLink = (event) => {
|
|
40
|
+
const anchor = event.target instanceof Element ? event.target.closest(LINK) : null;
|
|
41
|
+
if (!anchor || !isRouted(anchor)) return null;
|
|
42
|
+
const related = event.relatedTarget;
|
|
43
|
+
return related instanceof Node && anchor.contains(related) ? null : anchor;
|
|
44
|
+
};
|
|
45
|
+
const schedule = (event) => {
|
|
46
|
+
const anchor = intentLink(event);
|
|
47
|
+
if (!anchor || timers.has(anchor)) return;
|
|
48
|
+
const mode = readMode(anchor);
|
|
49
|
+
if (mode !== null && mode !== "intent") return;
|
|
50
|
+
const delay = Number(
|
|
51
|
+
_nullishCoalesce(anchor.getAttribute(FARM_LINK_PREFETCH_DELAY_ATTRIBUTE), () => ( FARM_LINK_PREFETCH_DELAY))
|
|
52
|
+
);
|
|
53
|
+
const timer = setTimeout(() => {
|
|
54
|
+
timers.delete(anchor);
|
|
55
|
+
prefetch(anchor);
|
|
56
|
+
}, delay);
|
|
57
|
+
timers.set(anchor, timer);
|
|
58
|
+
};
|
|
59
|
+
const cancel = (event) => {
|
|
60
|
+
const anchor = intentLink(event);
|
|
61
|
+
if (!anchor) return;
|
|
62
|
+
const timer = timers.get(anchor);
|
|
63
|
+
if (timer === void 0) return;
|
|
64
|
+
clearTimeout(timer);
|
|
65
|
+
timers.delete(anchor);
|
|
66
|
+
};
|
|
67
|
+
const track = (node) => {
|
|
68
|
+
for (const anchor of linksIn(node)) {
|
|
69
|
+
if (!anchor.isConnected) continue;
|
|
70
|
+
const mode = readMode(anchor);
|
|
71
|
+
if (mode === "render") {
|
|
72
|
+
prefetch(anchor);
|
|
73
|
+
} else if (mode === null || mode === "viewport") {
|
|
74
|
+
const router = readRouter();
|
|
75
|
+
if (!_optionalChain([router, 'optionalAccess', _ => _.observeForPrefetch])) continue;
|
|
76
|
+
router.observeForPrefetch(anchor);
|
|
77
|
+
observed.add(anchor);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const release = (node) => {
|
|
82
|
+
for (const anchor of linksIn(node)) {
|
|
83
|
+
if (anchor.isConnected || !observed.delete(anchor)) continue;
|
|
84
|
+
_optionalChain([readRouter, 'call', _2 => _2(), 'optionalAccess', _3 => _3.unobserveForPrefetch, 'optionalCall', _4 => _4(anchor)]);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const mutations = new MutationObserver((records) => {
|
|
88
|
+
for (const record of records) {
|
|
89
|
+
record.removedNodes.forEach(release);
|
|
90
|
+
record.addedNodes.forEach(track);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
for (const type of INTENT_EVENTS) {
|
|
94
|
+
document.addEventListener(type, schedule, { capture: true, passive: true });
|
|
95
|
+
}
|
|
96
|
+
for (const type of LEAVE_EVENTS) document.addEventListener(type, cancel, true);
|
|
97
|
+
mutations.observe(document.documentElement, { childList: true, subtree: true });
|
|
98
|
+
track(document.documentElement);
|
|
99
|
+
return () => {
|
|
100
|
+
mutations.disconnect();
|
|
101
|
+
for (const type of INTENT_EVENTS) document.removeEventListener(type, schedule, true);
|
|
102
|
+
for (const type of LEAVE_EVENTS) document.removeEventListener(type, cancel, true);
|
|
103
|
+
for (const timer of timers.values()) clearTimeout(timer);
|
|
104
|
+
timers.clear();
|
|
105
|
+
const router = readRouter();
|
|
106
|
+
for (const anchor of observed) _optionalChain([router, 'optionalAccess', _5 => _5.unobserveForPrefetch, 'optionalCall', _6 => _6(anchor)]);
|
|
107
|
+
observed.clear();
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
exports.FARM_LINK_PREFETCH_DELAY = FARM_LINK_PREFETCH_DELAY; exports.installFarmLinkPrefetch = installFarmLinkPrefetch;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
_describeServerFunction,
|
|
3
3
|
_invokeServerFunction
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AO5IRA2N.mjs";
|
|
5
5
|
import {
|
|
6
6
|
FARM_NATIVE_SERVER_FN_PATH,
|
|
7
7
|
FARM_NATIVE_SERVER_FN_PLUGIN
|
|
8
8
|
} from "./chunk-L4RTTTVE.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZD7JUTBY.mjs";
|
|
12
12
|
|
|
13
13
|
// src/mobile/native-server-fn-handler.ts
|
|
14
14
|
var MOBILE_APP_HEADER = "x-farm-mobile";
|
|
@@ -9,7 +9,7 @@ var _chunkOOZEU5KKcjs = require('./chunk-OOZEU5KK.cjs');
|
|
|
9
9
|
var _chunkR5U7OIPIcjs = require('./chunk-R5U7OIPI.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk4M5ESTJ2cjs = require('./chunk-4M5ESTJ2.cjs');
|
|
13
13
|
|
|
14
14
|
// src/theme/server.ts
|
|
15
15
|
var FARM_THEME_DEFAULT_CONFIG = /* @__PURE__ */ Symbol.for("farm.js.theme.default-config");
|
|
@@ -23,12 +23,12 @@ function _setDefaultFarmThemeConfig(config, basePath = "/") {
|
|
|
23
23
|
basePath
|
|
24
24
|
);
|
|
25
25
|
}
|
|
26
|
-
function getTheme(request =
|
|
26
|
+
function getTheme(request = _chunk4M5ESTJ2cjs.getCurrentRequestOrNull.call(void 0, )) {
|
|
27
27
|
const config = getDefaultThemeConfig();
|
|
28
28
|
if (!request) return config.default;
|
|
29
29
|
return readFarmThemePreference(request, config);
|
|
30
30
|
}
|
|
31
|
-
function getThemeSnapshot(request =
|
|
31
|
+
function getThemeSnapshot(request = _chunk4M5ESTJ2cjs.getCurrentRequestOrNull.call(void 0, )) {
|
|
32
32
|
const config = getDefaultThemeConfig();
|
|
33
33
|
const theme = request ? readFarmThemePreference(request, config) : config.default;
|
|
34
34
|
return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkWH3PBJS7cjs = require('./chunk-WH3PBJS7.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -87,19 +87,19 @@ var WebResponseHeaderMap = class extends Map {
|
|
|
87
87
|
var WebCookieJar = class {
|
|
88
88
|
constructor(request, headers) {
|
|
89
89
|
this.headers = headers;
|
|
90
|
-
this.cookies =
|
|
90
|
+
this.cookies = _chunkWH3PBJS7cjs.parseMiddlewareCookieHeader.call(void 0, request.headers.get("cookie"));
|
|
91
91
|
}
|
|
92
92
|
get(name) {
|
|
93
93
|
return this.cookies[name];
|
|
94
94
|
}
|
|
95
95
|
set(name, value, options = {}) {
|
|
96
96
|
this.cookies[name] = value;
|
|
97
|
-
const cookieString =
|
|
97
|
+
const cookieString = _chunkWH3PBJS7cjs.serializeMiddlewareCookie.call(void 0, name, value, options);
|
|
98
98
|
this.headers.appendSetCookie(cookieString);
|
|
99
99
|
}
|
|
100
100
|
delete(name, options = {}) {
|
|
101
101
|
delete this.cookies[name];
|
|
102
|
-
this.headers.appendSetCookie(
|
|
102
|
+
this.headers.appendSetCookie(_chunkWH3PBJS7cjs.serializeMiddlewareCookieDeletion.call(void 0, name, options));
|
|
103
103
|
}
|
|
104
104
|
getAll() {
|
|
105
105
|
return { ...this.cookies };
|
|
@@ -405,7 +405,7 @@ function normalizeConfigMiddleware(config) {
|
|
|
405
405
|
function normalizeFileMiddleware(modules = []) {
|
|
406
406
|
const entries = [];
|
|
407
407
|
for (const moduleEntry of modules) {
|
|
408
|
-
const normalized =
|
|
408
|
+
const normalized = _chunkWH3PBJS7cjs.normalizeMiddlewareModule.call(void 0, moduleEntry.module, moduleEntry.path);
|
|
409
409
|
if (!normalized) {
|
|
410
410
|
continue;
|
|
411
411
|
}
|
|
@@ -672,7 +672,10 @@ function applyProductionMiddlewareHeaders(response, middlewareHeaders) {
|
|
|
672
672
|
if (headers.has(key)) continue;
|
|
673
673
|
headers.set(key, value);
|
|
674
674
|
}
|
|
675
|
-
|
|
675
|
+
if (setCookies.length === 0) return;
|
|
676
|
+
const responseCookies = headers.getSetCookie();
|
|
677
|
+
headers.delete("Set-Cookie");
|
|
678
|
+
for (const cookie of [...setCookies, ...responseCookies]) {
|
|
676
679
|
headers.append("Set-Cookie", cookie);
|
|
677
680
|
}
|
|
678
681
|
});
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJSUVQ5HGcjs = require('./chunk-JSUVQ5HG.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkMPU5DOXXcjs = require('./chunk-MPU5DOXX.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkLIQJYEQPcjs = require('./chunk-LIQJYEQP.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk3OMLZLDEcjs = require('./chunk-3OMLZLDE.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -32,7 +32,7 @@ function createServerQuery(options) {
|
|
|
32
32
|
throw new TypeError("createServerQuery requires a key function");
|
|
33
33
|
}
|
|
34
34
|
const staleTime = normalizeServerQueryStaleTime(options.staleTime);
|
|
35
|
-
const execute =
|
|
35
|
+
const execute = _chunkJSUVQ5HGcjs.createServerFn.call(void 0, {
|
|
36
36
|
input: options.input,
|
|
37
37
|
middleware: options.middleware,
|
|
38
38
|
handler: async (context) => {
|
|
@@ -42,7 +42,7 @@ function createServerQuery(options) {
|
|
|
42
42
|
const cacheKey = _chunkDXUXQP2Tcjs.createFarmCacheKey.call(void 0, ["route-data", routeKey]);
|
|
43
43
|
const producer = async () => {
|
|
44
44
|
const value = await options.handler(context);
|
|
45
|
-
return
|
|
45
|
+
return _chunkJSUVQ5HGcjs._parseServerFnSchema.call(void 0, options.output, value, "output", "createServerQuery");
|
|
46
46
|
};
|
|
47
47
|
let data;
|
|
48
48
|
let updatedAt;
|
|
@@ -50,9 +50,9 @@ function createServerQuery(options) {
|
|
|
50
50
|
data = await dedupeServerQueryRequest(cacheKey, context.request, producer);
|
|
51
51
|
updatedAt = Date.now();
|
|
52
52
|
} else {
|
|
53
|
-
const cache =
|
|
53
|
+
const cache = _chunk3OMLZLDEcjs.getFarmDataCache.call(void 0, );
|
|
54
54
|
data = await cache.getOrSet(cacheKey, producer, {
|
|
55
|
-
tags: [
|
|
55
|
+
tags: [_chunk3OMLZLDEcjs.createRouteDataCacheTag.call(void 0, routeKey)],
|
|
56
56
|
revalidate: staleTime === false ? false : staleTime / 1e3
|
|
57
57
|
});
|
|
58
58
|
updatedAt = await _asyncNullishCoalesce(await _asyncOptionalChain([(await cache.getEntryAsync(cacheKey, { allowStale: true })), 'optionalAccess', async _ => _.createdAt]), async () => ( Date.now()));
|
|
@@ -67,7 +67,7 @@ function createServerQuery(options) {
|
|
|
67
67
|
});
|
|
68
68
|
const query = async (input) => {
|
|
69
69
|
const result = await execute(input);
|
|
70
|
-
return
|
|
70
|
+
return _chunkLIQJYEQPcjs.getServerActionExecutionContext.call(void 0, ) ? result : result.data;
|
|
71
71
|
};
|
|
72
72
|
Object.defineProperties(query, {
|
|
73
73
|
[FARM_SERVER_QUERY_SYMBOL]: {
|
|
@@ -87,10 +87,10 @@ function createServerQuery(options) {
|
|
|
87
87
|
enumerable: false
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
|
|
90
|
+
_chunkJSUVQ5HGcjs._attachServerFunctionDescriptor.call(void 0,
|
|
91
91
|
query,
|
|
92
|
-
|
|
93
|
-
const result = await
|
|
92
|
+
_chunkJSUVQ5HGcjs.createServerFunctionDescriptor.call(void 0, "query", options, async (value) => {
|
|
93
|
+
const result = await _chunkJSUVQ5HGcjs._runServerFunctionForCaller.call(void 0,
|
|
94
94
|
execute,
|
|
95
95
|
value
|
|
96
96
|
);
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-FN5UEC7I.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveDeployOutputPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JZ43UD6S.mjs";
|
|
14
14
|
import {
|
|
15
15
|
farmDesktopDevGuardPlugin,
|
|
16
16
|
loadFarmReactPlugin
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
generateFarmClientPluginEntryCode,
|
|
20
20
|
hasFarmServerRuntimePlugins,
|
|
21
21
|
loadTailwindVitePlugin
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BIX46FTI.mjs";
|
|
23
23
|
import {
|
|
24
24
|
resolveFarmPlatform
|
|
25
25
|
} from "./chunk-SMUW7UST.mjs";
|
|
@@ -24,12 +24,12 @@ function parseSourceOrigin(value) {
|
|
|
24
24
|
return { ok: false, reason: "invalid-origin" };
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
function matchesHostHeader(sourceOrigin, request) {
|
|
27
|
+
function matchesHostHeader(sourceOrigin, request, requestOrigin = request.url) {
|
|
28
28
|
const host = request.headers.get("host")?.trim().toLowerCase();
|
|
29
29
|
if (!host) return false;
|
|
30
30
|
try {
|
|
31
31
|
const source = new URL(sourceOrigin);
|
|
32
|
-
const target = new URL(
|
|
32
|
+
const target = new URL(requestOrigin);
|
|
33
33
|
return source.protocol === target.protocol && source.host.toLowerCase() === host;
|
|
34
34
|
} catch {
|
|
35
35
|
return false;
|
|
@@ -10,7 +10,7 @@ var _chunk42KMUIWZcjs = require('./chunk-42KMUIWZ.cjs');
|
|
|
10
10
|
var _chunkXVSBALOYcjs = require('./chunk-XVSBALOY.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkP3EZKU6Lcjs = require('./chunk-P3EZKU6L.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -19,7 +19,7 @@ var _chunk3QM74STYcjs = require('./chunk-3QM74STY.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkENYBDM4Ucjs = require('./chunk-ENYBDM4U.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
@@ -116,10 +116,10 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
116
116
|
if (config[key] !== void 0) rscConfig[key] = config[key];
|
|
117
117
|
}
|
|
118
118
|
const createReactPlugin = hasPluginNamed(vitePlugins, "vite:react") ? void 0 : await _asyncNullishCoalesce(await _asyncOptionalChain([viteReact, 'optionalAccess', async _4 => _4.default]), async () => ( (options.command === "serve" ? (await _chunk3QM74STYcjs.loadFarmReactPlugin.call(void 0, )).default : void 0)));
|
|
119
|
-
const tailwind = hasPluginNamed(vitePlugins, "@tailwindcss/vite") ? void 0 : await
|
|
119
|
+
const tailwind = hasPluginNamed(vitePlugins, "@tailwindcss/vite") ? void 0 : await _chunkENYBDM4Ucjs.loadTailwindVitePlugin.call(void 0, );
|
|
120
120
|
const platform = _chunkAQLHD6HZcjs.resolveFarmPlatform.call(void 0, );
|
|
121
121
|
const mobileClient = config.mobile === void 0 || platform === "desktop" ? void 0 : options.command === "build" ? "entry" : platform === "mobile" ? "inline" : void 0;
|
|
122
|
-
const clientPluginEntry =
|
|
122
|
+
const clientPluginEntry = _chunkENYBDM4Ucjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
123
123
|
config.plugins,
|
|
124
124
|
root,
|
|
125
125
|
typeof config.srcDir === "string" ? config.srcDir : "src",
|
|
@@ -156,7 +156,7 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
156
156
|
server: { environmentName: "rsc" },
|
|
157
157
|
config: {
|
|
158
158
|
preset: options.preset,
|
|
159
|
-
outputDir: options.outputDir &&
|
|
159
|
+
outputDir: options.outputDir && _chunkP3EZKU6Lcjs.resolveDeployOutputPath.call(void 0, root, options.outputDir)
|
|
160
160
|
}
|
|
161
161
|
})
|
|
162
162
|
]
|
|
@@ -176,12 +176,12 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
176
176
|
async function resolveFarmRscServerPlugins(userConfig, config, root) {
|
|
177
177
|
const kept = _nullishCoalesce(config.plugins, () => ( []));
|
|
178
178
|
const names = new Set(
|
|
179
|
-
kept.filter((plugin) =>
|
|
179
|
+
kept.filter((plugin) => _chunkENYBDM4Ucjs.hasFarmServerRuntimePlugins.call(void 0, [plugin])).map((plugin) => plugin.name)
|
|
180
180
|
);
|
|
181
181
|
if (names.size === 0) return void 0;
|
|
182
182
|
const loads = (plugin) => {
|
|
183
183
|
const candidate = plugin;
|
|
184
|
-
return !!candidate && names.has(candidate.name) &&
|
|
184
|
+
return !!candidate && names.has(candidate.name) && _chunkENYBDM4Ucjs.hasFarmServerRuntimePlugins.call(void 0, [candidate]);
|
|
185
185
|
};
|
|
186
186
|
const { findFarmConfigFile, loadFarmConfigFile, resolveFarmLayers } = await import("./layers-7P4RLKVX.cjs");
|
|
187
187
|
const files = [];
|