@farm.js/core 0.1.66 → 0.1.67
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-BFu9xHAi.d.ts} +1 -1
- package/dist/{agent-mcp.d-CO_ABmNK.d.mts → agent-mcp.d-DWyWkTSy.d.mts} +1 -1
- package/dist/agent-runtime.cjs +6 -5
- package/dist/agent-runtime.d.mts +6 -6
- package/dist/agent-runtime.d.ts +6 -6
- package/dist/agent-runtime.mjs +5 -4
- package/dist/analyzer-KVZGVY5Q.cjs +16 -0
- package/dist/{analyzer-4UFP4HVP.mjs → analyzer-TTIIXXMQ.mjs} +2 -2
- 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 +59 -0
- package/dist/api/node.d.ts +59 -0
- package/dist/api/node.mjs +223 -0
- package/dist/api/route-manager.cjs +11 -11
- package/dist/api/route-manager.d.mts +10 -9
- package/dist/api/route-manager.d.ts +10 -9
- package/dist/api/route-manager.mjs +10 -10
- package/dist/api/runtime.cjs +11 -7
- package/dist/api/runtime.d.mts +7 -7
- package/dist/api/runtime.d.ts +7 -7
- 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 +11 -10
- package/dist/api.d.ts +11 -10
- package/dist/api.mjs +16 -12
- package/dist/{app-manifest.d-BpKxiU_E.d.mts → app-manifest.d-CRmjN5j9.d.mts} +1 -1
- package/dist/{app-manifest.d-DDmNkYQQ.d.ts → app-manifest.d-CwfhGrVR.d.ts} +1 -1
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +7 -7
- package/dist/app-markdown.d.ts +7 -7
- package/dist/app-markdown.mjs +4 -4
- package/dist/{app.d-x68Cwr0_.d.ts → app.d-BX9LVTiP.d.ts} +50 -9
- package/dist/{app.d-kuoVWhWM.d.mts → app.d-uBBUxwyV.d.mts} +50 -9
- package/dist/{chunk-V56632LA.cjs → chunk-22IWL4YD.cjs} +19 -5
- package/dist/{chunk-RY4ABNPE.cjs → chunk-23PVOIPT.cjs} +3 -3
- 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-RVGSVQWT.mjs → chunk-3T5TLFCQ.mjs} +10 -5
- package/dist/{chunk-XBSKPLHF.cjs → chunk-3T7ALZJF.cjs} +2 -2
- package/dist/{chunk-7ONGIFYX.cjs → chunk-4DRINDGN.cjs} +319 -138
- package/dist/{chunk-O6L3YYPM.cjs → chunk-4E57QHPW.cjs} +8 -16
- package/dist/{chunk-WKPBIT5Q.cjs → chunk-4HGLJOXZ.cjs} +6 -6
- package/dist/{chunk-JGAE5XPL.cjs → chunk-4JX3M4C6.cjs} +2 -1
- package/dist/{chunk-CJNAUEVC.mjs → chunk-4QENVMG7.mjs} +1 -1
- package/dist/{chunk-CHYTADNK.cjs → chunk-556H7JCE.cjs} +65 -48
- package/dist/{chunk-OLIGNTWU.cjs → chunk-5NFQ6AZI.cjs} +7 -7
- package/dist/{chunk-6HRAK7I5.mjs → chunk-5OFNUETM.mjs} +8 -2
- package/dist/{chunk-TZVUF5JJ.mjs → chunk-5TA63JD3.mjs} +4 -4
- package/dist/{chunk-RD623KW4.cjs → chunk-67MZTLTF.cjs} +21 -3
- package/dist/chunk-6I4BFRE7.cjs +51 -0
- package/dist/{chunk-4TVPYN32.cjs → chunk-6R53ZWX2.cjs} +7 -7
- package/dist/{chunk-MGKW5XZE.cjs → chunk-6SQZXRJ2.cjs} +7 -7
- package/dist/{chunk-MPJEIHW2.cjs → chunk-6V5YWI4W.cjs} +2 -2
- package/dist/{chunk-BM2LH2JM.mjs → chunk-6YBYX4K4.mjs} +13 -12
- package/dist/{chunk-X3XUZWRB.mjs → chunk-724MGMIL.mjs} +17 -3
- package/dist/{chunk-K5EW7GUU.mjs → chunk-7BIW7VCW.mjs} +13 -5
- package/dist/{chunk-HPP2II4Z.mjs → chunk-7PJARAQQ.mjs} +1 -1
- package/dist/{chunk-LEJDW34D.cjs → chunk-7PPLTD3P.cjs} +3 -3
- 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-ZEXE4TGY.mjs → chunk-AQDLVHNF.mjs} +230 -110
- package/dist/{chunk-NKRZLQUK.mjs → chunk-AQIO3RNL.mjs} +1 -1
- package/dist/chunk-AQIRXBBY.cjs +26 -0
- 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-YN6BHOYY.cjs → chunk-CL52PD6D.cjs} +10 -3
- package/dist/{chunk-UBMHQVWN.mjs → chunk-CO3YMZFD.mjs} +1 -1
- package/dist/{chunk-XURDCXNH.cjs → chunk-CSLHNBPS.cjs} +6 -6
- package/dist/{chunk-CNNBFGL5.cjs → chunk-DB2HSHQA.cjs} +14 -14
- package/dist/{chunk-XQSYOVCW.cjs → chunk-DBYNZIIQ.cjs} +13 -5
- package/dist/{chunk-DVKH2RVN.cjs → chunk-DCXSIEFE.cjs} +40 -41
- package/dist/{chunk-D4MRNBVF.cjs → chunk-DGOFR7D5.cjs} +2 -2
- package/dist/{chunk-QTD6EMN2.mjs → chunk-DQ2DI3Y7.mjs} +11 -4
- package/dist/chunk-DXZ57EPE.mjs +375 -0
- package/dist/{chunk-SA7MLSP4.mjs → chunk-E3HDJCWF.mjs} +3 -3
- package/dist/{chunk-BYRZ5VTH.mjs → chunk-E6CD45JK.mjs} +30 -31
- 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-E552H232.cjs → chunk-F43OG25P.cjs} +1 -1
- package/dist/{chunk-UAQD67HM.mjs → chunk-F7JKVHU2.mjs} +1 -1
- package/dist/{chunk-QISW423S.cjs → chunk-FPBOAG6N.cjs} +2 -2
- package/dist/{chunk-2C5L5RPM.cjs → chunk-FT6KJHS3.cjs} +71 -38
- package/dist/{chunk-ES2LD2YD.mjs → chunk-GCRT6GJG.mjs} +18 -0
- package/dist/{chunk-5OJVKXFV.cjs → chunk-GDM3ZD2O.cjs} +10 -8
- package/dist/{chunk-EMDGXYUD.mjs → chunk-GJ7QVFAG.mjs} +16 -7
- package/dist/{chunk-TGSEVBPO.mjs → chunk-GJEC5S4V.mjs} +11 -0
- package/dist/{chunk-672ISQIG.mjs → chunk-GTV2ABO7.mjs} +218 -37
- package/dist/{chunk-MPIGW42F.mjs → chunk-H37MDCPR.mjs} +1 -1
- package/dist/{chunk-HNAISJFD.cjs → chunk-HDPT6OYE.cjs} +9 -3
- package/dist/{chunk-25T5VXOE.mjs → chunk-HFHJJXSV.mjs} +106 -19
- package/dist/{chunk-ZNH6NR3H.cjs → chunk-HJZZSBVK.cjs} +2 -2
- package/dist/{chunk-BIF5MLTH.cjs → chunk-HM7AGSKU.cjs} +1 -1
- package/dist/{chunk-GL7N5UHF.cjs → chunk-HNVAZGQD.cjs} +20 -9
- package/dist/{chunk-SK7QSNWE.mjs → chunk-HP2DQGQH.mjs} +1 -1
- package/dist/{chunk-435QJNC2.mjs → chunk-HRPTMX5C.mjs} +4 -4
- package/dist/{chunk-K7OZAVOI.mjs → chunk-IFR74W6S.mjs} +46 -13
- package/dist/{chunk-5A77OEIG.cjs → chunk-IHTDLCDJ.cjs} +5 -5
- package/dist/{chunk-VQJHT2ND.mjs → chunk-IRA2CZAY.mjs} +2 -2
- package/dist/{chunk-OYZXVBZP.cjs → chunk-IUKBPBM7.cjs} +2 -1
- package/dist/chunk-J6TZRYCO.cjs +22 -0
- package/dist/{chunk-WYAXRIYP.cjs → chunk-J7JHVCWA.cjs} +8 -8
- package/dist/chunk-JSOCDYER.cjs +375 -0
- package/dist/{chunk-TKK5QHKZ.mjs → chunk-JVM3DKZE.mjs} +3 -3
- package/dist/{chunk-UPYIFH2H.cjs → chunk-JWLRBDDC.cjs} +2 -2
- package/dist/{chunk-BQWBHWEW.mjs → chunk-JWSI5WO4.mjs} +1 -1
- 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-3CCAICF7.cjs → chunk-KCY52OUQ.cjs} +4 -4
- package/dist/{chunk-EZ34EHQP.mjs → chunk-KI3MU7B5.mjs} +1 -1
- package/dist/{chunk-GHNW564E.mjs → chunk-KSZK34HU.mjs} +30 -10
- package/dist/{chunk-RFKTJTWZ.mjs → chunk-KWFNUODD.mjs} +2 -1
- package/dist/{chunk-ECKQFEX2.mjs → chunk-LENKRGBV.mjs} +8 -6
- package/dist/{chunk-752IHQTD.cjs → chunk-LPIZMU7D.cjs} +12 -12
- package/dist/{chunk-HEPJIKKQ.cjs → chunk-MCSRMEQV.cjs} +2 -2
- package/dist/{chunk-DQF3QLOH.mjs → chunk-ME7RVELR.mjs} +3 -2
- package/dist/{chunk-E4UDLFWR.cjs → chunk-N5DQMOAG.cjs} +588 -677
- package/dist/{chunk-O4F3JUST.mjs → chunk-NDDRTFN4.mjs} +4 -0
- package/dist/{chunk-CBOEJ5Z4.cjs → chunk-OB3IFUK6.cjs} +133 -46
- package/dist/{chunk-R62SF5R4.mjs → chunk-OB45EAQL.mjs} +6 -1
- 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-4OSOLDPL.cjs → chunk-PL6RTBDE.cjs} +2 -2
- package/dist/{chunk-OAJOQU5J.mjs → chunk-PLJKJJ2H.mjs} +82 -63
- package/dist/{chunk-WMTBBQHY.cjs → chunk-PPX7UOFY.cjs} +271 -151
- package/dist/{chunk-6XQSPIN6.cjs → chunk-PWKAX5MS.cjs} +13 -3
- package/dist/{chunk-7XGWBPQQ.cjs → chunk-Q37INCXG.cjs} +13 -8
- package/dist/{chunk-OP7LHY4Y.cjs → chunk-Q5UX55YA.cjs} +1445 -601
- package/dist/{chunk-NHQM2Q4I.cjs → chunk-QGQP6QKO.cjs} +2 -2
- package/dist/{chunk-IT6WRNGB.cjs → chunk-QITSS4TD.cjs} +1381 -626
- package/dist/{chunk-4ZJ5C7UJ.cjs → chunk-QIXEU2WV.cjs} +19 -10
- package/dist/{chunk-HCGWDRZO.mjs → chunk-QJVW76JG.mjs} +17 -6
- package/dist/{chunk-FJWN7RV4.cjs → chunk-QO43L7Z4.cjs} +38 -8
- package/dist/{chunk-ZIHWAN55.cjs → chunk-RE5E2G5S.cjs} +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-E4RDMG3K.mjs → chunk-TEG6HJVF.mjs} +4 -4
- package/dist/{chunk-WAY6LOQH.mjs → chunk-TEJ67GD2.mjs} +1 -1
- package/dist/{chunk-IFTGERT3.mjs → chunk-TTXIITYA.mjs} +49 -0
- package/dist/{chunk-ZFWYCVKS.mjs → chunk-TY5KCYDE.mjs} +22 -4
- package/dist/{chunk-W2ZXMMHA.mjs → chunk-UHE5JUKB.mjs} +1 -1
- package/dist/{chunk-OB7VKCUZ.mjs → chunk-UHNSY2PQ.mjs} +1302 -458
- package/dist/{chunk-UJ3R2AH2.cjs → chunk-UPOYKX4S.cjs} +5 -5
- package/dist/{chunk-2DLGV2ZG.mjs → chunk-UTUS6JUH.mjs} +1 -21
- package/dist/{chunk-WVYRLP5E.mjs → chunk-V5MQMQ2P.mjs} +1 -1
- package/dist/{chunk-VBCQ5WOI.cjs → chunk-V5RTHYJB.cjs} +30 -10
- package/dist/{chunk-WFWFECDW.mjs → chunk-VK54PDQ6.mjs} +25 -5
- package/dist/{chunk-LQNW3ABP.cjs → chunk-VX2HZGC7.cjs} +14 -14
- package/dist/{chunk-XBSLKXBL.mjs → chunk-WDD5CTZW.mjs} +49 -32
- package/dist/{chunk-EMNKZGF4.mjs → chunk-WGHY3OL5.mjs} +354 -443
- package/dist/{chunk-A2MN5PQJ.mjs → chunk-WMLSZAKN.mjs} +9 -9
- 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-Z7P2BTZ3.cjs → chunk-XGTFLG73.cjs} +30 -12
- package/dist/{chunk-AZUUKA66.mjs → chunk-XNZWMXCF.mjs} +1090 -335
- package/dist/{chunk-FIR62CR3.mjs → chunk-XUES6OET.mjs} +1 -1
- package/dist/{chunk-XCXHQBMM.mjs → chunk-Y2LU4LE5.mjs} +1 -1
- package/dist/{chunk-5J45H65F.mjs → chunk-Y5LEPEVH.mjs} +1 -1
- 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-O75GQVUK.mjs → chunk-YQYTQJZN.mjs} +1 -1
- package/dist/{chunk-X4K7TYN6.cjs → chunk-YVTS3S3F.cjs} +24 -23
- package/dist/{chunk-72KABRWN.mjs → chunk-ZJGFAW5U.mjs} +5 -3
- package/dist/{chunk-TNBJ4LZG.mjs → chunk-ZPKJPM7K.mjs} +4 -4
- 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-CDRvRmbU.d.mts} +2 -2
- package/dist/{client-component.d-D8VcypQA.d.ts → client-component.d-DWRKyAp5.d.ts} +2 -2
- package/dist/client-plugins.cjs +2 -2
- package/dist/{client-plugins.d-D4-6hNx7.d.mts → client-plugins.d-BNILjfX3.d.mts} +94 -140
- package/dist/{client-plugins.d-CXElzotB.d.ts → client-plugins.d-CrKZiNSN.d.ts} +94 -140
- package/dist/client-plugins.d.mts +6 -6
- package/dist/client-plugins.d.ts +6 -6
- package/dist/client-plugins.mjs +1 -1
- package/dist/client.cjs +11 -9
- package/dist/client.d.mts +13 -13
- package/dist/client.d.ts +13 -13
- 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 +6 -6
- package/dist/config.d.ts +6 -6
- 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 +2 -2
- package/dist/deployment.mjs +1 -1
- package/dist/desktop.d.mts +7 -7
- package/dist/desktop.d.ts +7 -7
- package/dist/{devtools-N2JQCMXB.cjs → devtools-RZVT4JVN.cjs} +36 -32
- package/dist/{devtools-NZUVNUP3.mjs → devtools-UFQYT3VA.mjs} +31 -27
- package/dist/docs.cjs +26 -25
- package/dist/docs.d.mts +20 -8
- package/dist/docs.d.ts +20 -8
- package/dist/docs.mjs +25 -24
- package/dist/env-types.cjs +3 -3
- package/dist/env-types.mjs +2 -2
- package/dist/environment/vite.cjs +5 -5
- package/dist/environment/vite.mjs +4 -4
- 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 +142 -127
- package/dist/{index.d-SSgYDv4D.d.mts → index.d-Bdm6866n.d.mts} +1 -1
- package/dist/{index.d-A_x10zGS.d.ts → index.d-Dey5T14f.d.ts} +1 -1
- package/dist/index.d.mts +31 -82
- package/dist/index.d.ts +31 -82
- package/dist/index.mjs +213 -198
- package/dist/{integration-orm-52GPGTHO.cjs → integrations/orm.cjs} +5 -5
- package/dist/integrations/orm.d.mts +33 -0
- package/dist/integrations/orm.d.ts +33 -0
- package/dist/{integration-orm-CO23MSFE.mjs → integrations/orm.mjs} +5 -5
- package/dist/integrations.cjs +6 -5
- package/dist/integrations.d.mts +6 -6
- package/dist/integrations.d.ts +6 -6
- package/dist/integrations.mjs +5 -4
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +17 -8
- package/dist/internal/app-markdown-runtime.d.ts +17 -8
- package/dist/internal/app-markdown-runtime.mjs +3 -3
- package/dist/internal/build-runtime.cjs +68 -66
- package/dist/internal/build-runtime.d.mts +8 -8
- package/dist/internal/build-runtime.d.ts +8 -8
- package/dist/internal/build-runtime.mjs +67 -65
- package/dist/internal/cli-runtime.cjs +45 -44
- package/dist/internal/cli-runtime.mjs +44 -43
- package/dist/internal/client-error-overlay.cjs +6 -6
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +60 -6
- package/dist/internal/client-runtime.d.mts +40 -11
- package/dist/internal/client-runtime.d.ts +40 -11
- package/dist/internal/client-runtime.mjs +58 -4
- package/dist/internal/compression-runtime.d.mts +6 -6
- package/dist/internal/compression-runtime.d.ts +6 -6
- package/dist/internal/config-runtime.cjs +25 -24
- package/dist/internal/config-runtime.d.mts +9 -9
- package/dist/internal/config-runtime.d.ts +9 -9
- package/dist/internal/config-runtime.mjs +24 -23
- 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/infra-analytics-runtime.cjs +11 -11
- package/dist/internal/infra-analytics-runtime.mjs +9 -9
- 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-runtime.cjs +53 -39
- package/dist/internal/production-runtime.d.mts +16 -15
- package/dist/internal/production-runtime.d.ts +16 -15
- package/dist/internal/production-runtime.mjs +68 -54
- package/dist/internal/react-cache.cjs +3 -3
- package/dist/internal/react-cache.mjs +1 -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 +6 -6
- package/dist/markdown.d.ts +6 -6
- package/dist/markdown.mjs +6 -2
- package/dist/middleware.cjs +10 -10
- package/dist/middleware.d.mts +8 -8
- package/dist/middleware.d.ts +8 -8
- package/dist/middleware.mjs +9 -9
- package/dist/mobile.d.mts +4 -4
- package/dist/mobile.d.ts +4 -4
- package/dist/mount.d-BP0nLYQO.d.mts +38 -0
- package/dist/mount.d-CkiPky_F.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-DQVYKoaZ.d.mts → navigation-delegate.d-CdBP-hkZ.d.mts} +1 -1
- package/dist/{navigation-delegate.d-GghbHJuK.d.ts → navigation-delegate.d-DchcGzAQ.d.ts} +1 -1
- package/dist/navigation.cjs +8 -7
- package/dist/navigation.d.mts +9 -9
- package/dist/navigation.d.ts +9 -9
- package/dist/navigation.mjs +7 -6
- package/dist/{nitro-DD4QCA66.mjs → nitro-55YOZWRA.mjs} +11 -11
- package/dist/{nitro-VRDX2H4M.cjs → nitro-EEX2J3KB.cjs} +13 -13
- package/dist/{plugin-53SY5YBS.mjs → plugin-SAS22JL7.mjs} +4 -3
- package/dist/{plugin-HZIBL3DW.cjs → plugin-WIU4GDD4.cjs} +5 -4
- package/dist/plugin.cjs +61 -59
- package/dist/plugin.d.mts +8 -8
- package/dist/plugin.d.ts +8 -8
- package/dist/plugin.mjs +60 -58
- package/dist/{production-runtime.d-Bzns3NW9.d.ts → production-runtime.d-Dou_Htas.d.ts} +1 -1
- package/dist/{production-runtime.d-DiFa5vHW.d.mts → production-runtime.d-VwsBzIee.d.mts} +1 -1
- package/dist/query/client.cjs +9 -7
- package/dist/query/client.mjs +5 -3
- package/dist/{render-plan.d-CL_Ikfg_.d.ts → render-plan.d-D8UakAIk.d.ts} +1 -1
- package/dist/{render-plan.d-CcF0MeCf.d.mts → render-plan.d-LKymStDJ.d.mts} +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 +2 -2
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +8 -6
- package/dist/renderer-client.d.mts +9 -9
- package/dist/renderer-client.d.ts +9 -9
- package/dist/renderer-client.mjs +5 -3
- package/dist/renderer.cjs +6 -2
- package/dist/renderer.d.mts +20 -2
- package/dist/renderer.d.ts +20 -2
- package/dist/renderer.mjs +5 -1
- package/dist/request.cjs +2 -2
- package/dist/{request.d-B1RnTLri.d.ts → request.d-B928QjWy.d.ts} +1 -1
- package/dist/{request.d-DarDOCk9.d.mts → request.d-KG-4d2eG.d.mts} +1 -1
- package/dist/request.d.mts +7 -7
- package/dist/request.d.ts +7 -7
- package/dist/request.mjs +1 -1
- package/dist/{route-rendering.d-BTUYCIj4.d.ts → route-rendering.d-DoEe_w9t.d.ts} +1 -1
- package/dist/{route-rendering.d-D_2Ual0-.d.mts → route-rendering.d-NIHQeb4m.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-Cuv1jntg.d.mts → router.d-B8PkJSGp.d.mts} +1 -1
- package/dist/{router.d-CMANF6da.d.ts → router.d-DYnRHQwz.d.ts} +1 -1
- package/dist/routes.cjs +3 -3
- package/dist/{routes.d-c2HKfrfL.d.mts → routes.d-DgZ_jgGG.d.mts} +1 -1
- package/dist/{routes.d-B6yFe6jm.d.ts → routes.d-uUBZyWoK.d.ts} +1 -1
- package/dist/routes.d.mts +6 -6
- package/dist/routes.d.ts +6 -6
- package/dist/routes.mjs +2 -2
- package/dist/{rsc-pipeline-7PNVJSTR.mjs → rsc-pipeline-4OJ5ZQNZ.mjs} +26 -25
- package/dist/{rsc-pipeline-Z7QBZOIJ.cjs → rsc-pipeline-7K5H2RPH.cjs} +27 -26
- package/dist/{runtime-QQHX4BP3.mjs → runtime-U7O3HZOZ.mjs} +60 -34
- package/dist/{runtime-FKFCUHSK.cjs → runtime-X52Q7JFR.cjs} +70 -44
- package/dist/{runtime.d-wvh4ngU0.d.mts → runtime.d-BxQIzwfy.d.mts} +11 -3
- package/dist/{runtime.d-C3RQUj6_.d.ts → runtime.d-DP7mEkEF.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-plugins.cjs +7 -7
- package/dist/server-plugins.d.mts +16 -10
- package/dist/server-plugins.d.ts +16 -10
- 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 +160 -120
- package/dist/server.d.mts +20 -14
- package/dist/server.d.ts +20 -14
- package/dist/server.mjs +138 -98
- package/dist/{spa-router.d-WU_qS5gJ.d.mts → spa-router.d-BgHPVMhz.d.mts} +15 -5
- package/dist/{spa-router.d-m8H_Kl_B.d.ts → spa-router.d-DsFDHTsv.d.ts} +15 -5
- package/dist/testing.cjs +17 -17
- package/dist/testing.d.mts +6 -6
- package/dist/testing.d.ts +6 -6
- package/dist/testing.mjs +13 -13
- package/dist/theme/server.cjs +3 -3
- package/dist/theme/server.mjs +2 -2
- package/dist/{utils.d-W9IiEqmW.d.mts → utils.d-BKyKDBR1.d.mts} +1 -1
- package/dist/{utils.d-C9dQD5Zg.d.ts → utils.d-zxAVcf_V.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +63 -61
- package/dist/vite.d.mts +32 -12
- package/dist/vite.d.ts +32 -12
- package/dist/vite.mjs +62 -60
- package/dist/workflows.cjs +4 -4
- package/dist/workflows.mjs +3 -3
- package/package.json +31 -1
- package/dist/analyzer-H7SIX6BJ.cjs +0 -16
- package/dist/chunk-5YPBFMBN.cjs +0 -19
- 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/manager-2LUKNX2N.cjs +0 -14
- /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
package/dist/server.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app.d-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app.d-uBBUxwyV.mjs';
|
|
2
2
|
export { defineConfig, farmPlugin } from './vite.mjs';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, a as matchRouteParts, b as matchRoutePrefix, c as matchRoutePrefixParts, p as parseRoutePath, d as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, e as splitRoutePath, t as toPosixPath, h as toRootRelativeUrlPath, i as toViteModuleId } from './utils.d-
|
|
3
|
+
import { aH as FarmConfig, q as FarmUserConfig } from './client-plugins.d-BNILjfX3.mjs';
|
|
4
|
+
export { aI as AppRoutePattern, aJ as BuildOptions, aK as ErrorBoundary, aL as ErrorProps, w as FarmAppContext, aM as FarmComponentType, aN as FarmContextFactory, aO as FarmContextFactoryInput, aP as FarmIsolatedClientHydrationMode, aQ as FarmMCPUserConfig, aR as FarmMigrationCommand, aS as FarmMigrationsConfig, aT as FarmMigrationsUserConfig, t as FarmRequest, u as FarmResponse, aU as GenerateStaticParams, aV as Layout, aW as LayoutMetadataProps, aX as LayoutModule, L as LayoutProps, aY as Loading, aZ as LoadingProps, M as Metadata, a_ as MetadataJsonLd, a$ as MetadataProps, b0 as MetadataRobots, b1 as MetadataRobotsDirectives, b2 as MiddlewareProps, b3 as NitroPreset, b4 as Page, x as PageProps, b5 as PagePropsWithMiddleware, b6 as PageRouteParams, P as ParsedRoute, z as PluginContextProps, b7 as ResolvedFarmMigrationsConfig, i as RouteModule, s as RouteSegment, b8 as SSGCollectionResult, b9 as SSGPage, ba as ServerAction, bb as StaticPathParams, bc as StaticPathPrimitive, bd as StaticRouteParams, be as ThemeColorDescriptor, bf as Viewport, bg as resolveFarmMCPConfig, bh as resolveFarmMCPPlugin } from './client-plugins.d-BNILjfX3.mjs';
|
|
5
|
+
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, a as matchRouteParts, b as matchRoutePrefix, c as matchRoutePrefixParts, p as parseRoutePath, d as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, e as splitRoutePath, t as toPosixPath, h as toRootRelativeUrlPath, i as toViteModuleId } from './utils.d-BKyKDBR1.mjs';
|
|
6
6
|
export { _collectFarmStorageModules, _registerFarmStorageModules, createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.mjs';
|
|
7
7
|
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, PPR_SHELL_ADAPTER_TTL_SECONDS, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, applyFarmCacheInvalidations, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.mjs';
|
|
8
8
|
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.mjs';
|
|
9
9
|
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.mjs';
|
|
10
10
|
import { ViteDevServer } from 'vite';
|
|
11
|
-
export { g as getCurrentRequest } from './request.d-
|
|
11
|
+
export { g as getCurrentRequest } from './request.d-KG-4d2eG.mjs';
|
|
12
12
|
export { s as sendWebResponse } from './response.d-BolW0Vx_.mjs';
|
|
13
13
|
export { getTheme, getThemeSnapshot } from './theme/server.mjs';
|
|
14
14
|
export { DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT, FarmServerActionsConfig, PreparedServerActionRequest, ResolvedFarmServerActionsConfig, SanitizedServerActionError, ServerActionRequestError, ServerActionRequestKind, createServerActionRequestErrorResponse, getServerActionExecutionContext, getServerActionInvalidations, getServerActionSignal, prepareServerActionRequest, resolveServerActionsConfig, runWithServerActionRequest, sanitizeServerActionError, validateServerActionRequest } from './server-action-security.mjs';
|
|
@@ -20,17 +20,17 @@ export { e as FarmStorageBuiltinDriverConfig, b as FarmStorageClient, a as FarmS
|
|
|
20
20
|
import './workflows.d-CRMzQZ3k.mjs';
|
|
21
21
|
import './cron.mjs';
|
|
22
22
|
import './endpoint.d-BkMSCRf6.mjs';
|
|
23
|
-
import './image-config.d-
|
|
23
|
+
import './image-config.d-ByhQ0TT7.mjs';
|
|
24
24
|
import './routes.mjs';
|
|
25
25
|
import 'react';
|
|
26
26
|
import './server-fn.mjs';
|
|
27
27
|
import './server-fn-error.d-DrcH9cc1.mjs';
|
|
28
28
|
import './renderer.mjs';
|
|
29
29
|
import './deployment.mjs';
|
|
30
|
-
import './lifecycle.d-
|
|
31
|
-
import './route.d-
|
|
30
|
+
import './lifecycle.d-keQs5Swc.mjs';
|
|
31
|
+
import './route.d-DrXkpvcg.mjs';
|
|
32
32
|
import 'http';
|
|
33
|
-
import './schema.mjs';
|
|
33
|
+
import './schema.d-Dny9pnrm.mjs';
|
|
34
34
|
import '@farming-labs/orm';
|
|
35
35
|
import '@farming-labs/docs';
|
|
36
36
|
import './observability.d-B2363jB6.mjs';
|
|
@@ -39,14 +39,14 @@ import './env.mjs';
|
|
|
39
39
|
import 'rolldown/utils';
|
|
40
40
|
import 'rolldown';
|
|
41
41
|
import './types.d-C41ePjvP.mjs';
|
|
42
|
-
import './config.d-
|
|
42
|
+
import './config.d-BKIhJtmr.mjs';
|
|
43
43
|
import './types.d-DQnyD3VD.mjs';
|
|
44
44
|
import './font.mjs';
|
|
45
|
-
import './client-component.d-
|
|
46
|
-
import './route-rendering.d-
|
|
45
|
+
import './client-component.d-CDRvRmbU.mjs';
|
|
46
|
+
import './route-rendering.d-NIHQeb4m.mjs';
|
|
47
47
|
import './island.d-CfGru1MO.mjs';
|
|
48
|
-
import './agent-mcp.d-
|
|
49
|
-
import './render-plan.d-
|
|
48
|
+
import './agent-mcp.d-DWyWkTSy.mjs';
|
|
49
|
+
import './render-plan.d-LKymStDJ.mjs';
|
|
50
50
|
import './runtime.d-3iJAKptR.mjs';
|
|
51
51
|
import './resolver.d-JnZKKsc5.mjs';
|
|
52
52
|
import './platform.mjs';
|
|
@@ -69,6 +69,12 @@ declare function createServer(config?: FarmConfig | FarmUserConfig, options?: {
|
|
|
69
69
|
* it; core stays free of package-manager orchestration.
|
|
70
70
|
*/
|
|
71
71
|
ensureServerComponentsPackages?: (config: FarmConfig | FarmUserConfig, root: string) => Promise<unknown>;
|
|
72
|
+
/**
|
|
73
|
+
* @internal Return once Vite is created and finish Farm's setup in the background, so the
|
|
74
|
+
* caller can open the port first. `startDevServer` passes it and awaits the setup after
|
|
75
|
+
* listening; requests that arrive before then wait for it.
|
|
76
|
+
*/
|
|
77
|
+
deferSetup?: boolean;
|
|
72
78
|
}): Promise<ViteDevServer>;
|
|
73
79
|
/**
|
|
74
80
|
* Start the development server
|
package/dist/server.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app.d-
|
|
1
|
+
export { F as FarmApp, R as RouteManager, S as ServerRenderer, c as createFarmApp } from './app.d-BX9LVTiP.js';
|
|
2
2
|
export { defineConfig, farmPlugin } from './vite.js';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, a as matchRouteParts, b as matchRoutePrefix, c as matchRoutePrefixParts, p as parseRoutePath, d as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, e as splitRoutePath, t as toPosixPath, h as toRootRelativeUrlPath, i as toViteModuleId } from './utils.d-
|
|
3
|
+
import { aH as FarmConfig, q as FarmUserConfig } from './client-plugins.d-CrKZiNSN.js';
|
|
4
|
+
export { aI as AppRoutePattern, aJ as BuildOptions, aK as ErrorBoundary, aL as ErrorProps, w as FarmAppContext, aM as FarmComponentType, aN as FarmContextFactory, aO as FarmContextFactoryInput, aP as FarmIsolatedClientHydrationMode, aQ as FarmMCPUserConfig, aR as FarmMigrationCommand, aS as FarmMigrationsConfig, aT as FarmMigrationsUserConfig, t as FarmRequest, u as FarmResponse, aU as GenerateStaticParams, aV as Layout, aW as LayoutMetadataProps, aX as LayoutModule, L as LayoutProps, aY as Loading, aZ as LoadingProps, M as Metadata, a_ as MetadataJsonLd, a$ as MetadataProps, b0 as MetadataRobots, b1 as MetadataRobotsDirectives, b2 as MiddlewareProps, b3 as NitroPreset, b4 as Page, x as PageProps, b5 as PagePropsWithMiddleware, b6 as PageRouteParams, P as ParsedRoute, z as PluginContextProps, b7 as ResolvedFarmMigrationsConfig, i as RouteModule, s as RouteSegment, b8 as SSGCollectionResult, b9 as SSGPage, ba as ServerAction, bb as StaticPathParams, bc as StaticPathPrimitive, bd as StaticRouteParams, be as ThemeColorDescriptor, bf as Viewport, bg as resolveFarmMCPConfig, bh as resolveFarmMCPPlugin } from './client-plugins.d-CrKZiNSN.js';
|
|
5
|
+
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, a as matchRouteParts, b as matchRoutePrefix, c as matchRoutePrefixParts, p as parseRoutePath, d as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, e as splitRoutePath, t as toPosixPath, h as toRootRelativeUrlPath, i as toViteModuleId } from './utils.d-zxAVcf_V.js';
|
|
6
6
|
export { _collectFarmStorageModules, _registerFarmStorageModules, createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.js';
|
|
7
7
|
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationStreamOptions, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmClientCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, PPR_SHELL_ADAPTER_TTL_SECONDS, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, applyFarmCacheInvalidations, configureFarmCache, createFarmCacheInvalidationStream, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.js';
|
|
8
8
|
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.js';
|
|
9
9
|
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.js';
|
|
10
10
|
import { ViteDevServer } from 'vite';
|
|
11
|
-
export { g as getCurrentRequest } from './request.d-
|
|
11
|
+
export { g as getCurrentRequest } from './request.d-B928QjWy.js';
|
|
12
12
|
export { s as sendWebResponse } from './response.d-BolW0Vx_.js';
|
|
13
13
|
export { getTheme, getThemeSnapshot } from './theme/server.js';
|
|
14
14
|
export { DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT, FarmServerActionsConfig, PreparedServerActionRequest, ResolvedFarmServerActionsConfig, SanitizedServerActionError, ServerActionRequestError, ServerActionRequestKind, createServerActionRequestErrorResponse, getServerActionExecutionContext, getServerActionInvalidations, getServerActionSignal, prepareServerActionRequest, resolveServerActionsConfig, runWithServerActionRequest, sanitizeServerActionError, validateServerActionRequest } from './server-action-security.js';
|
|
@@ -20,17 +20,17 @@ export { e as FarmStorageBuiltinDriverConfig, b as FarmStorageClient, a as FarmS
|
|
|
20
20
|
import './workflows.d-CRMzQZ3k.js';
|
|
21
21
|
import './cron.js';
|
|
22
22
|
import './endpoint.d-BgHn0lhl.js';
|
|
23
|
-
import './image-config.d-
|
|
23
|
+
import './image-config.d-ByhQ0TT7.js';
|
|
24
24
|
import './routes.js';
|
|
25
25
|
import 'react';
|
|
26
26
|
import './server-fn.js';
|
|
27
27
|
import './server-fn-error.d-DrcH9cc1.js';
|
|
28
28
|
import './renderer.js';
|
|
29
29
|
import './deployment.js';
|
|
30
|
-
import './lifecycle.d-
|
|
31
|
-
import './route.d-
|
|
30
|
+
import './lifecycle.d-keQs5Swc.js';
|
|
31
|
+
import './route.d-hs-_cyHn.js';
|
|
32
32
|
import 'http';
|
|
33
|
-
import './schema.js';
|
|
33
|
+
import './schema.d-Dny9pnrm.js';
|
|
34
34
|
import '@farming-labs/orm';
|
|
35
35
|
import '@farming-labs/docs';
|
|
36
36
|
import './observability.d-B2363jB6.js';
|
|
@@ -39,14 +39,14 @@ import './env.js';
|
|
|
39
39
|
import 'rolldown/utils';
|
|
40
40
|
import 'rolldown';
|
|
41
41
|
import './types.d-C41ePjvP.js';
|
|
42
|
-
import './config.d-
|
|
42
|
+
import './config.d-BKIhJtmr.js';
|
|
43
43
|
import './types.d-DQnyD3VD.js';
|
|
44
44
|
import './font.js';
|
|
45
|
-
import './client-component.d-
|
|
46
|
-
import './route-rendering.d-
|
|
45
|
+
import './client-component.d-DWRKyAp5.js';
|
|
46
|
+
import './route-rendering.d-DoEe_w9t.js';
|
|
47
47
|
import './island.d-CfGru1MO.js';
|
|
48
|
-
import './agent-mcp.d-
|
|
49
|
-
import './render-plan.d-
|
|
48
|
+
import './agent-mcp.d-BFu9xHAi.js';
|
|
49
|
+
import './render-plan.d-D8UakAIk.js';
|
|
50
50
|
import './runtime.d-BtL3PCL3.js';
|
|
51
51
|
import './resolver.d-BHyZgpa7.js';
|
|
52
52
|
import './platform.js';
|
|
@@ -69,6 +69,12 @@ declare function createServer(config?: FarmConfig | FarmUserConfig, options?: {
|
|
|
69
69
|
* it; core stays free of package-manager orchestration.
|
|
70
70
|
*/
|
|
71
71
|
ensureServerComponentsPackages?: (config: FarmConfig | FarmUserConfig, root: string) => Promise<unknown>;
|
|
72
|
+
/**
|
|
73
|
+
* @internal Return once Vite is created and finish Farm's setup in the background, so the
|
|
74
|
+
* caller can open the port first. `startDevServer` passes it and awaits the setup after
|
|
75
|
+
* listening; requests that arrive before then wait for it.
|
|
76
|
+
*/
|
|
77
|
+
deferSetup?: boolean;
|
|
72
78
|
}): Promise<ViteDevServer>;
|
|
73
79
|
/**
|
|
74
80
|
* Start the development server
|
package/dist/server.mjs
CHANGED
|
@@ -3,17 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-FN5UEC7I.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createFarmInfraAnalyticsPlugin
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
FARM_SERVER_QUERY_SYMBOL,
|
|
9
|
-
createServerQuery
|
|
10
|
-
} from "./chunk-NKRZLQUK.mjs";
|
|
6
|
+
} from "./chunk-JVM3DKZE.mjs";
|
|
11
7
|
import {
|
|
12
8
|
FarmEnvironmentError,
|
|
13
9
|
createClientOnlyFn,
|
|
14
10
|
createIsomorphicFn,
|
|
15
11
|
createServerOnlyFn
|
|
16
12
|
} from "./chunk-VR6QLTTX.mjs";
|
|
13
|
+
import {
|
|
14
|
+
FARM_SERVER_QUERY_SYMBOL,
|
|
15
|
+
createServerQuery
|
|
16
|
+
} from "./chunk-AQIO3RNL.mjs";
|
|
17
|
+
import "./chunk-DQ2DI3Y7.mjs";
|
|
17
18
|
import {
|
|
18
19
|
loadFarmDocsEngine
|
|
19
20
|
} from "./chunk-VE3FWJBO.mjs";
|
|
@@ -23,7 +24,7 @@ import {
|
|
|
23
24
|
resolveConfig,
|
|
24
25
|
resolveFarmMCPConfig,
|
|
25
26
|
resolveFarmMCPPlugin
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WDD5CTZW.mjs";
|
|
27
28
|
import "./chunk-VISQDC6W.mjs";
|
|
28
29
|
import {
|
|
29
30
|
loadFarmInstrumentation,
|
|
@@ -32,14 +33,13 @@ import {
|
|
|
32
33
|
import {
|
|
33
34
|
createFarmInstrumentationLifecycle
|
|
34
35
|
} from "./chunk-WNDAISB7.mjs";
|
|
35
|
-
import "./chunk-QTD6EMN2.mjs";
|
|
36
36
|
import "./chunk-N7XWC6BN.mjs";
|
|
37
37
|
import {
|
|
38
38
|
defineConfig,
|
|
39
39
|
farmI18nClientBridgePlugin,
|
|
40
40
|
farmPlugin,
|
|
41
41
|
farmServerOnlyEntriesPlugin
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-XNZWMXCF.mjs";
|
|
43
43
|
import {
|
|
44
44
|
createFarmReactRefreshPlugins,
|
|
45
45
|
farmDesktopDevGuardPlugin
|
|
@@ -55,63 +55,63 @@ import {
|
|
|
55
55
|
createFarmThemeCssPlugin,
|
|
56
56
|
mergeFarmViteConfig,
|
|
57
57
|
resolveFarmImageProviderForRuntime
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-WGHY3OL5.mjs";
|
|
59
59
|
import {
|
|
60
60
|
loadTailwindVitePlugin
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-DXZ57EPE.mjs";
|
|
62
62
|
import {
|
|
63
63
|
FarmRuntimeShutdownError,
|
|
64
64
|
PluginManager
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-KSZK34HU.mjs";
|
|
66
|
+
import "./chunk-6YBYX4K4.mjs";
|
|
67
|
+
import "./chunk-ZJGFAW5U.mjs";
|
|
68
|
+
import "./chunk-E3HDJCWF.mjs";
|
|
69
|
+
import "./chunk-7PJARAQQ.mjs";
|
|
70
|
+
import "./chunk-UTUS6JUH.mjs";
|
|
66
71
|
import "./chunk-CROAFCMW.mjs";
|
|
67
72
|
import {
|
|
68
73
|
resolveFarmPlatform,
|
|
69
74
|
validateFarmDesktopConfig
|
|
70
75
|
} from "./chunk-SMUW7UST.mjs";
|
|
71
76
|
import "./chunk-UB7RVEMX.mjs";
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-SA7MLSP4.mjs";
|
|
75
|
-
import {
|
|
76
|
-
readSchemaTables
|
|
77
|
-
} from "./chunk-2DLGV2ZG.mjs";
|
|
78
|
-
import "./chunk-HPP2II4Z.mjs";
|
|
79
|
-
import "./chunk-WNLPQW7W.mjs";
|
|
80
|
-
import "./chunk-F3N52U7S.mjs";
|
|
81
|
-
import "./chunk-TNBJ4LZG.mjs";
|
|
77
|
+
import "./chunk-GNZIAJGB.mjs";
|
|
78
|
+
import "./chunk-ZPKJPM7K.mjs";
|
|
82
79
|
import "./chunk-LLZSYFOM.mjs";
|
|
83
80
|
import "./chunk-UUMKLGUU.mjs";
|
|
84
81
|
import "./chunk-23LVFSID.mjs";
|
|
82
|
+
import "./chunk-HRPTMX5C.mjs";
|
|
83
|
+
import "./chunk-K6SXMVXO.mjs";
|
|
84
|
+
import "./chunk-V5MQMQ2P.mjs";
|
|
85
|
+
import "./chunk-L4RTTTVE.mjs";
|
|
85
86
|
import "./chunk-MK5E44WP.mjs";
|
|
86
|
-
import "./chunk-435QJNC2.mjs";
|
|
87
|
-
import "./chunk-MESQF2JC.mjs";
|
|
88
|
-
import "./chunk-WVYRLP5E.mjs";
|
|
89
87
|
import "./chunk-X3EFRVXY.mjs";
|
|
90
88
|
import "./chunk-A4PWGL46.mjs";
|
|
91
89
|
import "./chunk-MNIR7I7B.mjs";
|
|
92
|
-
import "./chunk-L4RTTTVE.mjs";
|
|
93
|
-
import "./chunk-GNZIAJGB.mjs";
|
|
94
90
|
import "./chunk-XAXTTBUT.mjs";
|
|
91
|
+
import "./chunk-K6HIIWUB.mjs";
|
|
92
|
+
import "./chunk-YFTGIHNC.mjs";
|
|
95
93
|
import "./chunk-HZOMT5DY.mjs";
|
|
96
94
|
import {
|
|
97
95
|
farmEnvironmentFunctionsPlugin
|
|
98
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-GTV2ABO7.mjs";
|
|
99
97
|
import "./chunk-S32PDOLO.mjs";
|
|
100
|
-
import
|
|
101
|
-
|
|
98
|
+
import {
|
|
99
|
+
getTheme,
|
|
100
|
+
getThemeSnapshot
|
|
101
|
+
} from "./chunk-GJ7QVFAG.mjs";
|
|
102
102
|
import "./chunk-EJCVG25Z.mjs";
|
|
103
103
|
import "./chunk-NRNAHZ57.mjs";
|
|
104
104
|
import "./chunk-TPA2PV5J.mjs";
|
|
105
|
-
import "./chunk-
|
|
105
|
+
import "./chunk-724MGMIL.mjs";
|
|
106
106
|
import "./chunk-XR2ZIBQK.mjs";
|
|
107
107
|
import "./chunk-CU5SYTJG.mjs";
|
|
108
|
-
import "./chunk-
|
|
109
|
-
import "./chunk-22W4FNTG.mjs";
|
|
108
|
+
import "./chunk-OGVTUGMU.mjs";
|
|
110
109
|
import "./chunk-SQ5O7I3L.mjs";
|
|
111
|
-
import "./chunk-
|
|
110
|
+
import "./chunk-YGJ5P3TJ.mjs";
|
|
111
|
+
import "./chunk-22W4FNTG.mjs";
|
|
112
112
|
import {
|
|
113
113
|
resolveFarmServerComponentsMode
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-4QENVMG7.mjs";
|
|
115
115
|
import {
|
|
116
116
|
createFarmConfigResolutionPlugin,
|
|
117
117
|
getFarmAppDirectories,
|
|
@@ -124,20 +124,9 @@ import {
|
|
|
124
124
|
isReactRenderer,
|
|
125
125
|
loadFarmRendererVitePlugins,
|
|
126
126
|
resolveFarmRenderer
|
|
127
|
-
} from "./chunk-
|
|
128
|
-
import "./chunk-
|
|
129
|
-
import
|
|
130
|
-
setEnv
|
|
131
|
-
} from "./chunk-N33DLJBC.mjs";
|
|
132
|
-
import "./chunk-FIR62CR3.mjs";
|
|
133
|
-
import "./chunk-RVGSVQWT.mjs";
|
|
134
|
-
import "./chunk-BRYPZIMB.mjs";
|
|
135
|
-
import "./chunk-UIJOLBUL.mjs";
|
|
136
|
-
import "./chunk-K7OZAVOI.mjs";
|
|
137
|
-
import "./chunk-VFXE6NWR.mjs";
|
|
138
|
-
import "./chunk-TZVUF5JJ.mjs";
|
|
139
|
-
import "./chunk-DQF3QLOH.mjs";
|
|
140
|
-
import "./chunk-WXFY5JIY.mjs";
|
|
127
|
+
} from "./chunk-GCRT6GJG.mjs";
|
|
128
|
+
import "./chunk-AOIUYHPH.mjs";
|
|
129
|
+
import "./chunk-ME7RVELR.mjs";
|
|
141
130
|
import {
|
|
142
131
|
DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT,
|
|
143
132
|
ServerActionRequestError,
|
|
@@ -151,12 +140,28 @@ import {
|
|
|
151
140
|
sanitizeServerActionError,
|
|
152
141
|
validateServerActionRequest
|
|
153
142
|
} from "./chunk-E46NXBNJ.mjs";
|
|
154
|
-
import "./chunk-YP7YO3S3.mjs";
|
|
155
143
|
import {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
144
|
+
setEnv
|
|
145
|
+
} from "./chunk-N33DLJBC.mjs";
|
|
146
|
+
import "./chunk-XUES6OET.mjs";
|
|
147
|
+
import "./chunk-3T5TLFCQ.mjs";
|
|
148
|
+
import "./chunk-BRYPZIMB.mjs";
|
|
149
|
+
import "./chunk-UIJOLBUL.mjs";
|
|
150
|
+
import "./chunk-IFR74W6S.mjs";
|
|
151
|
+
import "./chunk-VFXE6NWR.mjs";
|
|
152
|
+
import "./chunk-5TA63JD3.mjs";
|
|
153
|
+
import "./chunk-WXFY5JIY.mjs";
|
|
154
|
+
import "./chunk-YP7YO3S3.mjs";
|
|
159
155
|
import "./chunk-YWPNIYUP.mjs";
|
|
156
|
+
import "./chunk-AJNBTOVQ.mjs";
|
|
157
|
+
import "./chunk-H4WUWLQR.mjs";
|
|
158
|
+
import "./chunk-M53MIIXY.mjs";
|
|
159
|
+
import "./chunk-WNLPQW7W.mjs";
|
|
160
|
+
import "./chunk-F3N52U7S.mjs";
|
|
161
|
+
import "./chunk-VZBAW44S.mjs";
|
|
162
|
+
import {
|
|
163
|
+
readSchemaTables
|
|
164
|
+
} from "./chunk-K63OWRY2.mjs";
|
|
160
165
|
import {
|
|
161
166
|
_collectFarmStorageModules,
|
|
162
167
|
_registerFarmStorageModules,
|
|
@@ -188,14 +193,10 @@ import {
|
|
|
188
193
|
vercelKVStorage
|
|
189
194
|
} from "./chunk-TJVUTGED.mjs";
|
|
190
195
|
import "./chunk-BMQAPZXD.mjs";
|
|
191
|
-
import "./chunk-
|
|
192
|
-
import "./chunk-H4WUWLQR.mjs";
|
|
193
|
-
import "./chunk-M53MIIXY.mjs";
|
|
194
|
-
import "./chunk-46P5KNTE.mjs";
|
|
195
|
-
import "./chunk-A2MN5PQJ.mjs";
|
|
196
|
+
import "./chunk-WMLSZAKN.mjs";
|
|
196
197
|
import "./chunk-MMK4MZUN.mjs";
|
|
197
198
|
import "./chunk-K3RU5MOR.mjs";
|
|
198
|
-
import "./chunk-
|
|
199
|
+
import "./chunk-EYPSKXO4.mjs";
|
|
199
200
|
import "./chunk-6ZFRWRHO.mjs";
|
|
200
201
|
import "./chunk-EDPENAVO.mjs";
|
|
201
202
|
import "./chunk-OJO2GOM3.mjs";
|
|
@@ -206,19 +207,21 @@ import {
|
|
|
206
207
|
_withAfterNodeMiddleware,
|
|
207
208
|
after
|
|
208
209
|
} from "./chunk-IYEY3JWJ.mjs";
|
|
209
|
-
import "./chunk-
|
|
210
|
-
import "./chunk-
|
|
210
|
+
import "./chunk-OIOPQ25L.mjs";
|
|
211
|
+
import "./chunk-TXE4SAMV.mjs";
|
|
211
212
|
import "./chunk-YX6AFPXC.mjs";
|
|
212
213
|
import "./chunk-CV6MFQ4Y.mjs";
|
|
213
214
|
import "./chunk-DU4VHHPJ.mjs";
|
|
214
215
|
import "./chunk-NR63PD3P.mjs";
|
|
215
|
-
import "./chunk-
|
|
216
|
-
import "./chunk-
|
|
216
|
+
import "./chunk-TY5KCYDE.mjs";
|
|
217
|
+
import "./chunk-OB45EAQL.mjs";
|
|
217
218
|
import "./chunk-GWXZS7K5.mjs";
|
|
218
219
|
import "./chunk-D7Y63SOY.mjs";
|
|
219
220
|
import "./chunk-C7GJDVN4.mjs";
|
|
221
|
+
import "./chunk-GJEC5S4V.mjs";
|
|
222
|
+
import "./chunk-QSTRBKHZ.mjs";
|
|
220
223
|
import "./chunk-6YFC3ZFX.mjs";
|
|
221
|
-
import "./chunk-
|
|
224
|
+
import "./chunk-PKMUQ7LM.mjs";
|
|
222
225
|
import {
|
|
223
226
|
FarmDataCache,
|
|
224
227
|
PPR_SHELL_ADAPTER_TTL_SECONDS,
|
|
@@ -238,11 +241,12 @@ import {
|
|
|
238
241
|
unstable_cache,
|
|
239
242
|
updateTag
|
|
240
243
|
} from "./chunk-RLEALQEN.mjs";
|
|
241
|
-
import "./chunk-TGSEVBPO.mjs";
|
|
242
|
-
import "./chunk-QSTRBKHZ.mjs";
|
|
243
244
|
import {
|
|
244
245
|
createCliColors
|
|
245
246
|
} from "./chunk-IGL6CO6M.mjs";
|
|
247
|
+
import {
|
|
248
|
+
sendWebResponse
|
|
249
|
+
} from "./chunk-CO6UYM2D.mjs";
|
|
246
250
|
import "./chunk-VHIXGZYH.mjs";
|
|
247
251
|
import "./chunk-TUOO6IK3.mjs";
|
|
248
252
|
import "./chunk-MU5V7XHL.mjs";
|
|
@@ -263,18 +267,15 @@ import {
|
|
|
263
267
|
toRootRelativeUrlPath,
|
|
264
268
|
toViteModuleId
|
|
265
269
|
} from "./chunk-JSDV2NUN.mjs";
|
|
266
|
-
import "./chunk-H3ASZDT7.mjs";
|
|
267
|
-
import "./chunk-2DA7CLY7.mjs";
|
|
268
|
-
import {
|
|
269
|
-
sendWebResponse
|
|
270
|
-
} from "./chunk-CO6UYM2D.mjs";
|
|
271
270
|
import "./chunk-2I6PUKWJ.mjs";
|
|
272
271
|
import "./chunk-QDWMCFTH.mjs";
|
|
273
272
|
import "./chunk-D2LCAV6L.mjs";
|
|
273
|
+
import "./chunk-H3ASZDT7.mjs";
|
|
274
|
+
import "./chunk-2DA7CLY7.mjs";
|
|
274
275
|
import {
|
|
275
276
|
FARM_VERSION
|
|
276
|
-
} from "./chunk-
|
|
277
|
-
import "./chunk-
|
|
277
|
+
} from "./chunk-H37MDCPR.mjs";
|
|
278
|
+
import "./chunk-KWFNUODD.mjs";
|
|
278
279
|
import "./chunk-QPNVDSFZ.mjs";
|
|
279
280
|
import "./chunk-GYMGK467.mjs";
|
|
280
281
|
import "./chunk-5Y4GYKKH.mjs";
|
|
@@ -284,11 +285,12 @@ import "./chunk-W6QLRQ3V.mjs";
|
|
|
284
285
|
import "./chunk-K76CBYQM.mjs";
|
|
285
286
|
import "./chunk-AY2YD5ZX.mjs";
|
|
286
287
|
import "./chunk-MFQGU5CC.mjs";
|
|
288
|
+
import "./chunk-SD6JGJOM.mjs";
|
|
287
289
|
import "./chunk-S6O2L47H.mjs";
|
|
288
290
|
import "./chunk-NBIVGHAT.mjs";
|
|
289
291
|
import "./chunk-WCLLPR6H.mjs";
|
|
290
|
-
import "./chunk-
|
|
291
|
-
import "./chunk-
|
|
292
|
+
import "./chunk-F7JKVHU2.mjs";
|
|
293
|
+
import "./chunk-7BIW7VCW.mjs";
|
|
292
294
|
import "./chunk-M25IONJP.mjs";
|
|
293
295
|
import {
|
|
294
296
|
createFarmCacheKey,
|
|
@@ -298,25 +300,25 @@ import {
|
|
|
298
300
|
applyFarmCacheInvalidations
|
|
299
301
|
} from "./chunk-AZQXXXDX.mjs";
|
|
300
302
|
import {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
createRedirectsPlugin
|
|
304
|
-
} from "./chunk-OAJOQU5J.mjs";
|
|
303
|
+
createLoggerPlugin
|
|
304
|
+
} from "./chunk-EIVGPQN5.mjs";
|
|
305
305
|
import {
|
|
306
306
|
createCompressionPlugin
|
|
307
307
|
} from "./chunk-75XSZIRE.mjs";
|
|
308
308
|
import {
|
|
309
|
+
createHeadersPlugin,
|
|
310
|
+
createRedirectsPlugin,
|
|
309
311
|
createRewritesPlugin
|
|
310
|
-
} from "./chunk-
|
|
312
|
+
} from "./chunk-PLJKJJ2H.mjs";
|
|
311
313
|
import "./chunk-XQ4DPO4G.mjs";
|
|
312
|
-
import "./chunk-
|
|
314
|
+
import "./chunk-JZGL2PIH.mjs";
|
|
313
315
|
import "./chunk-LM55GS4R.mjs";
|
|
314
|
-
import "./chunk-
|
|
316
|
+
import "./chunk-OHWM2VI4.mjs";
|
|
315
317
|
import {
|
|
316
318
|
getCurrentRequest
|
|
317
|
-
} from "./chunk-
|
|
318
|
-
import "./chunk-OHWM2VI4.mjs";
|
|
319
|
+
} from "./chunk-5OFNUETM.mjs";
|
|
319
320
|
import "./chunk-VIXTAVEA.mjs";
|
|
321
|
+
import "./chunk-JNYFXL7X.mjs";
|
|
320
322
|
import "./chunk-7S7AAK2D.mjs";
|
|
321
323
|
import "./chunk-SF3JB56B.mjs";
|
|
322
324
|
import "./chunk-AYP2YFVN.mjs";
|
|
@@ -622,7 +624,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
622
624
|
checkWebDesktopBlock(userConfig?.desktop);
|
|
623
625
|
const rscConfig = userConfig ?? config;
|
|
624
626
|
if (resolveFarmServerComponentsMode(rscConfig.experimental?.serverComponents)) {
|
|
625
|
-
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-
|
|
627
|
+
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-4OJ5ZQNZ.mjs");
|
|
626
628
|
await options.ensureServerComponentsPackages?.(rscConfig, root);
|
|
627
629
|
if (farmAppUsesRscPipeline(await resolveFarmRscCheckConfig(rscConfig, root, mode), root)) {
|
|
628
630
|
return await createFarmRscDevServer(rscConfig, {
|
|
@@ -656,14 +658,15 @@ async function createServer2(config = {}, options = {}) {
|
|
|
656
658
|
const redirects = await resolvedConfig.redirects();
|
|
657
659
|
const headers = await resolvedConfig.headers();
|
|
658
660
|
const rewrites = await resolvedConfig.rewrites();
|
|
661
|
+
const configRouteOptions = { i18n: resolvedConfig.i18n, basePath: resolvedConfig.basePath };
|
|
659
662
|
if (redirects.length > 0) {
|
|
660
|
-
pluginManager.addPlugin(createRedirectsPlugin(redirects,
|
|
663
|
+
pluginManager.addPlugin(createRedirectsPlugin(redirects, configRouteOptions));
|
|
661
664
|
}
|
|
662
665
|
if (headers.length > 0) {
|
|
663
|
-
pluginManager.addPlugin(createHeadersPlugin(headers,
|
|
666
|
+
pluginManager.addPlugin(createHeadersPlugin(headers, configRouteOptions));
|
|
664
667
|
}
|
|
665
668
|
if (rewrites.length > 0) {
|
|
666
|
-
pluginManager.addPlugin(createRewritesPlugin(rewrites,
|
|
669
|
+
pluginManager.addPlugin(createRewritesPlugin(rewrites, configRouteOptions));
|
|
667
670
|
}
|
|
668
671
|
if (resolvedConfig.compress && mode === "production") {
|
|
669
672
|
pluginManager.addPlugin(createCompressionPlugin());
|
|
@@ -695,6 +698,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
695
698
|
{ ssr: true }
|
|
696
699
|
);
|
|
697
700
|
const reactRefreshPlugins = isReactRenderer(finalConfig.renderer) ? await createFarmReactRefreshPlugins() : [];
|
|
701
|
+
const deferredSetup = options.deferSetup ? {} : void 0;
|
|
698
702
|
let tailwindVitePlugin = void 0;
|
|
699
703
|
const shouldUseProjectPostcss = hasProjectPostcssConfig(projectRoot);
|
|
700
704
|
if (shouldUseProjectPostcss) {
|
|
@@ -715,8 +719,8 @@ async function createServer2(config = {}, options = {}) {
|
|
|
715
719
|
...reactRefreshPlugins,
|
|
716
720
|
createDevDependencyStubsPlugin(),
|
|
717
721
|
farmI18nClientBridgePlugin(),
|
|
718
|
-
farmServerOnlyEntriesPlugin(),
|
|
719
|
-
farmPlugin(finalConfig, pluginManager),
|
|
722
|
+
farmServerOnlyEntriesPlugin({ prebundleServerPackages: true }),
|
|
723
|
+
farmPlugin(finalConfig, pluginManager, deferredSetup),
|
|
720
724
|
farmEnvironmentFunctionsPlugin(finalConfig),
|
|
721
725
|
createBrandingPlugin(),
|
|
722
726
|
createFarmDevLoopbackPlugin(),
|
|
@@ -786,13 +790,33 @@ async function createServer2(config = {}, options = {}) {
|
|
|
786
790
|
server.__farmPluginManager = pluginManager;
|
|
787
791
|
server.__farmResolvedConfig = resolvedConfig;
|
|
788
792
|
server.__farmInstrumentation = instrumentation;
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
793
|
+
const createdServer = server;
|
|
794
|
+
const createdPluginManager = pluginManager;
|
|
795
|
+
const finishSetup = async () => {
|
|
796
|
+
createdPluginManager.updateContext({ config: finalConfig, viteServer: createdServer });
|
|
797
|
+
await createdPluginManager.setupPlugins();
|
|
798
|
+
await createdPluginManager.runHookParallel("devServerCreated", createdServer);
|
|
799
|
+
await createdPluginManager.runHookParallel("configResolved", finalConfig);
|
|
800
|
+
await createdPluginManager.runHookParallel("buildStart");
|
|
801
|
+
};
|
|
802
|
+
if (deferredSetup?.setup) {
|
|
803
|
+
const startup = deferredSetup.setup.then(finishSetup).catch(async (error) => {
|
|
804
|
+
await cleanUpFailedCreation(error);
|
|
805
|
+
throw error;
|
|
806
|
+
});
|
|
807
|
+
deferredSetup.ready = startup;
|
|
808
|
+
startup.catch(() => {
|
|
809
|
+
});
|
|
810
|
+
server[FARM_DEFERRED_STARTUP] = startup;
|
|
811
|
+
return server;
|
|
812
|
+
}
|
|
813
|
+
await finishSetup();
|
|
794
814
|
return server;
|
|
795
815
|
} catch (error) {
|
|
816
|
+
await cleanUpFailedCreation(error);
|
|
817
|
+
throw error;
|
|
818
|
+
}
|
|
819
|
+
async function cleanUpFailedCreation(error) {
|
|
796
820
|
const attempt = async (operation, run) => {
|
|
797
821
|
try {
|
|
798
822
|
await run();
|
|
@@ -824,9 +848,14 @@ async function createServer2(config = {}, options = {}) {
|
|
|
824
848
|
await attempt("shut down instrumentation", () => instrumentation?.shutdown());
|
|
825
849
|
}
|
|
826
850
|
logger.error(`Failed to create server: ${error}`);
|
|
827
|
-
throw error;
|
|
828
851
|
}
|
|
829
852
|
}
|
|
853
|
+
var FARM_DEFERRED_STARTUP = /* @__PURE__ */ Symbol.for("@farm.js/core/deferred-dev-startup");
|
|
854
|
+
var FarmDeferredStartupError = class {
|
|
855
|
+
constructor(cause) {
|
|
856
|
+
this.cause = cause;
|
|
857
|
+
}
|
|
858
|
+
};
|
|
830
859
|
function noticeSchemaChangesInBackground(config) {
|
|
831
860
|
if (!config) return false;
|
|
832
861
|
const candidates = [
|
|
@@ -834,18 +863,29 @@ function noticeSchemaChangesInBackground(config) {
|
|
|
834
863
|
...Object.values(config.integrations ?? {})
|
|
835
864
|
];
|
|
836
865
|
if (!candidates.some((candidate) => readSchemaTables(candidate))) return false;
|
|
837
|
-
void import("./schema-dev-notice-
|
|
866
|
+
void import("./schema-dev-notice-C2JINRZI.mjs").then(({ noticePendingSchemaChanges }) => noticePendingSchemaChanges(config)).catch(() => {
|
|
838
867
|
});
|
|
839
868
|
return true;
|
|
840
869
|
}
|
|
841
870
|
async function startDevServer(config = {}, port, options = {}) {
|
|
842
|
-
const server = await createServer2(config, { ...options, port });
|
|
871
|
+
const server = await createServer2(config, { ...options, port, deferSetup: true });
|
|
843
872
|
const pluginManager = server.__farmPluginManager;
|
|
873
|
+
const startup = server[FARM_DEFERRED_STARTUP];
|
|
874
|
+
const settleStartup = () => startup?.catch((error) => {
|
|
875
|
+
throw new FarmDeferredStartupError(error);
|
|
876
|
+
});
|
|
844
877
|
try {
|
|
845
|
-
|
|
878
|
+
try {
|
|
879
|
+
await server.listen(port);
|
|
880
|
+
} catch (error) {
|
|
881
|
+
await settleStartup();
|
|
882
|
+
throw error;
|
|
883
|
+
}
|
|
884
|
+
await settleStartup();
|
|
846
885
|
await pluginManager?.startRuntime();
|
|
847
886
|
noticeSchemaChangesInBackground(server.__farmResolvedConfig);
|
|
848
887
|
} catch (error) {
|
|
888
|
+
if (error instanceof FarmDeferredStartupError) throw error.cause;
|
|
849
889
|
try {
|
|
850
890
|
await pluginManager?.runHookParallel("onError", { phase: "startDevServer", error });
|
|
851
891
|
} catch (reportError) {
|