@farm.js/core 0.1.77 → 0.1.80
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/after.cjs +1 -1
- package/dist/after.mjs +1 -1
- package/dist/{agent-mcp-handler-PJKZHYSA.mjs → agent-mcp-handler-GDY5CPPW.mjs} +6 -6
- package/dist/{agent-mcp-handler-73SGWVZT.cjs → agent-mcp-handler-IUL6OPC3.cjs} +7 -7
- package/dist/{agent-mcp.d-B1h3RznZ.d.ts → agent-mcp.d-BPa5n0ld.d.ts} +1 -1
- package/dist/{agent-mcp.d-WFQotg8M.d.mts → agent-mcp.d-DOP95Jxm.d.mts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +4 -4
- package/dist/agent-runtime.d.ts +4 -4
- package/dist/agent-runtime.mjs +2 -2
- package/dist/{analyzer-64YS2OXQ.mjs → analyzer-F7CWE5VA.mjs} +3 -3
- package/dist/analyzer-I7RBBQ65.cjs +16 -0
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.mjs +1 -1
- package/dist/api/client.native.cjs +1 -1
- package/dist/api/client.native.mjs +1 -1
- package/dist/api/node.cjs +7 -7
- package/dist/api/node.d.mts +6 -6
- package/dist/api/node.d.ts +6 -6
- package/dist/api/node.mjs +6 -6
- package/dist/api/route-manager.cjs +10 -10
- package/dist/api/route-manager.d.mts +6 -6
- package/dist/api/route-manager.d.ts +6 -6
- package/dist/api/route-manager.mjs +9 -9
- package/dist/api/runtime.cjs +6 -6
- package/dist/api/runtime.d.mts +5 -5
- package/dist/api/runtime.d.ts +5 -5
- package/dist/api/runtime.mjs +5 -5
- package/dist/api.cjs +12 -12
- package/dist/api.d.mts +7 -7
- package/dist/api.d.ts +7 -7
- package/dist/api.mjs +11 -11
- package/dist/{app-manifest.d-EZEYG-tD.d.mts → app-manifest.d-9UD6BznX.d.mts} +1 -1
- package/dist/{app-manifest.d-Ktsqsuk9.d.ts → app-manifest.d-CO6Iu0Hx.d.ts} +1 -1
- package/dist/app-markdown.cjs +6 -6
- package/dist/app-markdown.d.mts +5 -5
- package/dist/app-markdown.d.ts +5 -5
- package/dist/app-markdown.mjs +5 -5
- package/dist/{app.d-DTkqYcIr.d.mts → app.d-DXeRWZK7.d.mts} +4 -4
- package/dist/{app.d-CSh3y8w8.d.ts → app.d-DwX1ePhs.d.ts} +4 -4
- package/dist/cache.cjs +4 -4
- package/dist/cache.mjs +3 -3
- package/dist/{chunk-QYOAGT3E.cjs → chunk-2BEGVSDF.cjs} +6 -5
- package/dist/{chunk-WW62HKA2.cjs → chunk-2FK47RRZ.cjs} +15 -15
- package/dist/{chunk-2YJ4DHTD.cjs → chunk-2NOHVIJ3.cjs} +2 -2
- package/dist/{chunk-GDM3ZD2O.cjs → chunk-2OFP3IVA.cjs} +5 -1
- package/dist/{chunk-JRBWBMP2.mjs → chunk-2RRTOKRZ.mjs} +1 -1
- package/dist/{chunk-BTHNOAOF.mjs → chunk-3JQBQG7K.mjs} +4 -4
- package/dist/{chunk-H76C5AOU.mjs → chunk-3K2E55BJ.mjs} +2 -2
- package/dist/{chunk-VJ6L7TII.cjs → chunk-3SPECQXI.cjs} +31 -20
- package/dist/{chunk-FNVGK72M.mjs → chunk-44G4XHEL.mjs} +15 -8
- package/dist/{chunk-63EFR2WF.cjs → chunk-4H4ZXUNB.cjs} +3 -3
- package/dist/{chunk-ZBE5EHVJ.mjs → chunk-4MIDUSIX.mjs} +14 -14
- package/dist/{chunk-F4ID7BGO.cjs → chunk-4OFWG4IK.cjs} +7 -7
- package/dist/{chunk-WXMR3OHY.mjs → chunk-4WXNTAOM.mjs} +1 -1
- package/dist/{chunk-LTDMJD2F.cjs → chunk-5OAN7BG5.cjs} +12 -12
- package/dist/{chunk-MQW4LHJR.cjs → chunk-5VDJEKGK.cjs} +4 -4
- package/dist/{chunk-CYNQPKA4.cjs → chunk-5ZHC6QGD.cjs} +2 -2
- package/dist/{chunk-ALEUMLJN.mjs → chunk-67JTJCAS.mjs} +3 -2
- package/dist/{chunk-WHNNDFCJ.mjs → chunk-6GJZJAED.mjs} +1 -1
- package/dist/{chunk-SYPEMXW2.mjs → chunk-6MZSTPD2.mjs} +1 -1
- package/dist/{chunk-SFSTZ7TB.cjs → chunk-7DD5TNPS.cjs} +8 -8
- package/dist/{chunk-GC5ROI3A.cjs → chunk-7U4XF76R.cjs} +1 -1
- package/dist/{chunk-QVBXTSIZ.mjs → chunk-7V5M43ND.mjs} +1 -1
- package/dist/{chunk-62DZHPDK.cjs → chunk-7YLDUB4R.cjs} +10 -10
- package/dist/{chunk-7EOSFIPN.cjs → chunk-A4WWKG2B.cjs} +2 -2
- package/dist/{chunk-OCKQ3YOH.mjs → chunk-A5D3UMLJ.mjs} +2 -2
- package/dist/{chunk-DSRWQ4SJ.cjs → chunk-ANZLZNNX.cjs} +83 -25
- package/dist/{chunk-CSAIIMY3.mjs → chunk-ATISIC6G.mjs} +1 -1
- package/dist/{chunk-FVVGEGQ2.cjs → chunk-AXA2BSX3.cjs} +2 -2
- package/dist/{chunk-BNCKXPCU.cjs → chunk-BIAGSYIZ.cjs} +30 -30
- package/dist/{chunk-FPGSIOWS.mjs → chunk-BPWTSPK6.mjs} +3 -3
- package/dist/{chunk-UYACD4SH.cjs → chunk-CCMP4JD2.cjs} +1 -1
- package/dist/{chunk-JHZ6HULQ.cjs → chunk-CGIVCGH5.cjs} +2 -2
- package/dist/{chunk-ERT6HQAI.mjs → chunk-CNDBLUKI.mjs} +2 -2
- package/dist/{chunk-3AJQFVWW.mjs → chunk-COTFX4GT.mjs} +2 -2
- package/dist/{chunk-RK4MGL6Q.mjs → chunk-CYRO3WP4.mjs} +4 -3
- package/dist/{chunk-PUEPDMWY.cjs → chunk-DVHFIETW.cjs} +29 -22
- package/dist/{chunk-F35C3TJZ.mjs → chunk-E4E4Y5FD.mjs} +1 -1
- package/dist/{chunk-TQOYIPMQ.mjs → chunk-EG5YBYHO.mjs} +2 -2
- package/dist/{chunk-2DA7CLY7.mjs → chunk-EILUVBKS.mjs} +14 -0
- package/dist/{chunk-GAAK3HDZ.mjs → chunk-EY7ED5UW.mjs} +6 -6
- package/dist/{chunk-ZO6TOLHL.mjs → chunk-FS55CNTC.mjs} +1 -1
- package/dist/{chunk-YRQ44JTF.cjs → chunk-G4SZC2WH.cjs} +649 -446
- package/dist/{chunk-OQZF6H6G.cjs → chunk-GAWSWJJ2.cjs} +27 -27
- package/dist/{chunk-QUEYL2WM.cjs → chunk-GBESKA76.cjs} +4 -4
- package/dist/{chunk-NTHAZLVS.mjs → chunk-GBW5DU7V.mjs} +385 -182
- package/dist/{chunk-OVUU2RCQ.mjs → chunk-HD5FLXP2.mjs} +1 -1
- package/dist/{chunk-Q2EKSSEG.cjs → chunk-HEDGTXXB.cjs} +14 -14
- package/dist/{chunk-5QZT2EQN.cjs → chunk-HNUBRUFQ.cjs} +2 -2
- package/dist/{chunk-JA6RML7C.mjs → chunk-HR4N2K4V.mjs} +2 -2
- package/dist/{chunk-6D3CJFNU.cjs → chunk-HR5GU4UU.cjs} +7 -7
- package/dist/{chunk-SX535SU5.cjs → chunk-IJPRCQHW.cjs} +10 -10
- package/dist/{chunk-SMYDCZBW.mjs → chunk-JGEN2FIT.mjs} +1 -1
- package/dist/{chunk-3GMD2E4Q.mjs → chunk-K3XKEZR6.mjs} +3 -3
- package/dist/{chunk-LPXJEZJK.mjs → chunk-KCJBIWBM.mjs} +2 -2
- package/dist/{chunk-IXC6WDMT.mjs → chunk-KEU55O2D.mjs} +1 -1
- package/dist/{chunk-5WFPZG7K.mjs → chunk-KKVRWNDH.mjs} +6 -6
- package/dist/{chunk-NSNQLBHR.cjs → chunk-KMGHXIDA.cjs} +2 -2
- package/dist/{chunk-Z2FFLTF5.mjs → chunk-LTXKRIST.mjs} +2 -2
- package/dist/{chunk-YROK6CJC.cjs → chunk-LVGB5PYK.cjs} +30 -30
- package/dist/{chunk-QODXWUGQ.mjs → chunk-MDEFTF63.mjs} +69 -14
- package/dist/{chunk-FTQUNBRN.cjs → chunk-MHKPXX3J.cjs} +2 -2
- package/dist/{chunk-HFJLMALC.cjs → chunk-MQOHYV6L.cjs} +17 -17
- package/dist/{chunk-BGUTIQII.mjs → chunk-MUZHULW2.mjs} +1 -1
- package/dist/{chunk-WGNGM6MJ.mjs → chunk-MZ5QGWRW.mjs} +2 -2
- package/dist/{chunk-DZZHTMWM.cjs → chunk-N3H7UPBM.cjs} +3 -2
- package/dist/{chunk-CF74ABRI.mjs → chunk-NJ4OASLP.mjs} +4 -4
- package/dist/{chunk-RFXEQYPH.cjs → chunk-NW3DL2PM.cjs} +83 -24
- package/dist/{chunk-QDHR54S6.cjs → chunk-OBVBII5K.cjs} +5 -5
- package/dist/{chunk-WRWJ7IWT.cjs → chunk-OLKYHTLN.cjs} +5 -5
- package/dist/{chunk-EVIWKPJV.cjs → chunk-PLJMEUAN.cjs} +15 -1
- package/dist/{chunk-EMTN5ABC.mjs → chunk-POVHO46S.mjs} +1 -1
- package/dist/{chunk-X3Y6JWJG.cjs → chunk-PWMJBCAN.cjs} +3 -3
- package/dist/{chunk-PG7J7XYT.cjs → chunk-Q4TRGTO7.cjs} +6 -6
- package/dist/{chunk-KUXEII7V.mjs → chunk-Q4YEAWUK.mjs} +1 -1
- package/dist/{chunk-D2RLADWN.mjs → chunk-QBJ6N5MT.mjs} +83 -24
- package/dist/{chunk-PKXGFQZS.mjs → chunk-QD34VE4N.mjs} +1 -1
- package/dist/{chunk-2QPTZMGK.mjs → chunk-QHAISITM.mjs} +1 -1
- package/dist/{chunk-VJI2LWTL.cjs → chunk-RFNQTQ44.cjs} +2 -2
- package/dist/{chunk-TZ2YPXLB.cjs → chunk-RLCOWWE5.cjs} +7 -7
- package/dist/{chunk-IG2JE6WJ.mjs → chunk-RLEAVG6G.mjs} +1 -1
- package/dist/{chunk-SL2BSPDJ.mjs → chunk-RPA45OQS.mjs} +2 -2
- package/dist/{chunk-ORWXJDUN.mjs → chunk-RQBGHHOQ.mjs} +1 -1
- package/dist/{chunk-GC2BSXQS.cjs → chunk-SDICLSQU.cjs} +11 -11
- package/dist/{chunk-FE6KYDHC.cjs → chunk-SHDCKRP4.cjs} +3 -3
- package/dist/{chunk-DUSTJ6A5.mjs → chunk-SLEHAGGV.mjs} +2 -2
- package/dist/{chunk-IIVZTGGP.cjs → chunk-T3SMMLSB.cjs} +2 -2
- package/dist/{chunk-K6DXKHFE.mjs → chunk-TE7AX6HB.mjs} +1 -1
- package/dist/chunk-TIZJYHB7.mjs +42 -0
- package/dist/{chunk-NQZWLIPT.cjs → chunk-TS3ZHJN5.cjs} +3 -3
- package/dist/{chunk-KHS3T3E5.mjs → chunk-TYHWZOA2.mjs} +1 -1
- package/dist/{chunk-Z3QXQN4U.mjs → chunk-U6GMCDRS.mjs} +1 -1
- package/dist/{chunk-URQW27KO.mjs → chunk-UBLKPREL.mjs} +1 -1
- package/dist/{chunk-DD22NQFX.cjs → chunk-UGLTOLTJ.cjs} +2 -2
- package/dist/{chunk-PE2LEWXA.mjs → chunk-UJPE75GF.mjs} +1 -1
- package/dist/{chunk-6ZFGWB75.cjs → chunk-UWOCYINY.cjs} +4 -4
- package/dist/chunk-UZM3PDKK.cjs +46 -0
- package/dist/{chunk-YTGNMKRA.mjs → chunk-V73Y4UBL.mjs} +67 -9
- package/dist/{chunk-G7B6NU4X.cjs → chunk-VFMHE5D3.cjs} +3 -3
- package/dist/{chunk-IXO6O2EL.cjs → chunk-VGVRGGP4.cjs} +2 -2
- package/dist/{chunk-YRXPDKMM.cjs → chunk-W53Z4WDI.cjs} +8 -8
- package/dist/{chunk-47R7CX4A.mjs → chunk-WBPVLCNE.mjs} +1 -1
- package/dist/{chunk-4VLXQ55O.cjs → chunk-WIZRYFB2.cjs} +3 -3
- package/dist/{chunk-WZVESREI.cjs → chunk-WJ2O2MPP.cjs} +312 -291
- package/dist/{chunk-SIYELCIX.cjs → chunk-X4TSMQWF.cjs} +339 -309
- package/dist/{chunk-DASQJ5UD.mjs → chunk-XF7MJSUS.mjs} +1 -1
- package/dist/{chunk-S7QEQCVV.mjs → chunk-XGL42MQ7.mjs} +1 -1
- package/dist/{chunk-YN7G22MP.cjs → chunk-XKUKWMGX.cjs} +3 -3
- package/dist/{chunk-JD42G6BN.cjs → chunk-XY5OZQF6.cjs} +2 -2
- package/dist/{chunk-7EXFAJST.mjs → chunk-XZBBKZGW.mjs} +80 -59
- package/dist/{chunk-3QM74STY.cjs → chunk-Y2FEFQAY.cjs} +3 -3
- package/dist/{chunk-ZJGFAW5U.mjs → chunk-YHHOTKUT.mjs} +5 -1
- package/dist/{chunk-65XXHTVJ.mjs → chunk-YN3YMSKD.mjs} +4 -4
- package/dist/{chunk-PDACTAVX.mjs → chunk-YOVSWY2E.mjs} +1 -1
- package/dist/{chunk-R5X7FDOG.mjs → chunk-YU2MNIIY.mjs} +1 -1
- package/dist/{chunk-42EUEYW6.cjs → chunk-YUQUGVSV.cjs} +8 -8
- package/dist/{chunk-DZ3AZ7UK.cjs → chunk-Z4SMFUZ7.cjs} +28 -28
- package/dist/{chunk-7SAGHWWU.cjs → chunk-Z5BANEQD.cjs} +6 -6
- package/dist/{chunk-IHMSLS2O.mjs → chunk-ZDYYZX73.mjs} +63 -33
- package/dist/{chunk-4PWGLPL6.mjs → chunk-ZIEO3DQ3.mjs} +26 -15
- package/dist/{chunk-FCHEO3LG.cjs → chunk-ZPEZXQTM.cjs} +22 -22
- package/dist/{chunk-PMKUTZGR.cjs → chunk-ZVSQN7NC.cjs} +135 -80
- package/dist/{cli-runtime.d-DljFfr8T.d.ts → cli-runtime.d-8BhZy_wr.d.ts} +7 -6
- package/dist/{cli-runtime.d-HSkdfvoq.d.mts → cli-runtime.d-DPNTN-JV.d.mts} +7 -6
- package/dist/client/lifecycle.cjs +1 -1
- 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-B-1dIlsw.d.mts → client-component.d-CMCdyAr8.d.mts} +1 -1
- package/dist/{client-component.d-_otXB__v.d.ts → client-component.d-CkDcob6D.d.ts} +1 -1
- package/dist/client-plugins.cjs +1 -1
- package/dist/{client-plugins.d-MjxlvbCK.d.ts → client-plugins.d-BYIovYqX.d.ts} +4 -4
- package/dist/{client-plugins.d-BmBzvfSP.d.mts → client-plugins.d-WcMwOZGZ.d.mts} +4 -4
- package/dist/client-plugins.d.mts +4 -4
- package/dist/client-plugins.d.ts +4 -4
- package/dist/client-plugins.mjs +1 -1
- package/dist/client.cjs +4 -4
- package/dist/client.d.mts +9 -9
- package/dist/client.d.ts +9 -9
- package/dist/client.mjs +3 -3
- package/dist/config.cjs +1 -1
- package/dist/config.d.mts +4 -4
- package/dist/config.d.ts +4 -4
- package/dist/config.mjs +1 -1
- package/dist/cron.cjs +4 -4
- package/dist/cron.mjs +3 -3
- package/dist/deferred.cjs +1 -1
- package/dist/deferred.mjs +1 -1
- package/dist/deployment.cjs +1 -1
- package/dist/deployment.mjs +1 -1
- package/dist/desktop.cjs +1 -1
- package/dist/desktop.d.mts +5 -5
- package/dist/desktop.d.ts +5 -5
- package/dist/desktop.mjs +1 -1
- package/dist/{dev-guard-ZDIELV6Q.mjs → dev-guard-K3GJDPEQ.mjs} +1 -1
- package/dist/{dev-guard-ZLLKVO5T.cjs → dev-guard-VIEEA4LS.cjs} +1 -1
- package/dist/{devtools-7LHXG2VS.mjs → devtools-F3FDFV26.mjs} +11 -11
- package/dist/{devtools-NNQN66EZ.cjs → devtools-JJOYTIMS.cjs} +13 -13
- package/dist/{devtools-client-X5OQCXDF.cjs → devtools-client-BKBCCORT.cjs} +1 -1
- package/dist/{devtools-client-SU4XH46J.mjs → devtools-client-L4MUWD6K.mjs} +1 -1
- package/dist/{devtools-ui-CYBVFLPH.mjs → devtools-ui-BOG33MT5.mjs} +1 -1
- package/dist/{devtools-ui-SYRUXUA7.cjs → devtools-ui-C2EMF2SO.cjs} +1 -1
- package/dist/docs.cjs +15 -15
- package/dist/docs.d.mts +6 -6
- package/dist/docs.d.ts +6 -6
- package/dist/docs.mjs +14 -14
- package/dist/env-types.cjs +1 -1
- package/dist/env-types.mjs +1 -1
- package/dist/env.cjs +1 -1
- package/dist/env.mjs +1 -1
- package/dist/environment/vite.cjs +6 -6
- package/dist/environment/vite.d.mts +9 -0
- package/dist/environment/vite.d.ts +9 -0
- package/dist/environment/vite.mjs +5 -5
- package/dist/environment.cjs +1 -1
- package/dist/environment.mjs +1 -1
- package/dist/font.cjs +1 -1
- package/dist/font.mjs +1 -1
- package/dist/{handler.d-C53zFDmp.d.ts → handler.d-BwdOyc9x.d.ts} +1 -1
- package/dist/{handler.d-CaYopqaD.d.mts → handler.d-s3IM6pbJ.d.mts} +1 -1
- package/dist/headers.cjs +1 -1
- package/dist/{headers.d-MBkD9ZLf.d.mts → headers.d-BR-OXrqQ.d.mts} +1 -1
- package/dist/{headers.d-BvtpC90T.d.ts → headers.d-CAW4wPey.d.ts} +1 -1
- package/dist/headers.mjs +1 -1
- package/dist/i18n/client.cjs +1 -1
- package/dist/i18n/client.mjs +1 -1
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.mjs +1 -1
- package/dist/i18n/server.cjs +1 -1
- package/dist/i18n/server.mjs +1 -1
- package/dist/image/server.cjs +1 -1
- package/dist/image/server.mjs +1 -1
- package/dist/image/sharp.cjs +1 -1
- package/dist/image/sharp.mjs +1 -1
- package/dist/image.cjs +1 -1
- package/dist/image.mjs +1 -1
- package/dist/index.cjs +74 -68
- package/dist/{index.d-Mikf-tdP.d.mts → index.d-BEVK61zS.d.mts} +1 -1
- package/dist/{index.d-2hQpPZ-P.d.ts → index.d-ah2c89Wu.d.ts} +1 -1
- package/dist/index.d.mts +25 -25
- package/dist/index.d.ts +25 -25
- package/dist/index.mjs +72 -66
- package/dist/instrumentation.cjs +1 -1
- package/dist/instrumentation.mjs +1 -1
- package/dist/integrations/orm.cjs +4 -4
- package/dist/integrations/orm.d.mts +4 -4
- package/dist/integrations/orm.d.ts +4 -4
- package/dist/integrations/orm.mjs +3 -3
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +4 -4
- package/dist/integrations.d.ts +4 -4
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.cjs +5 -5
- package/dist/internal/app-markdown-runtime.d.mts +5 -5
- package/dist/internal/app-markdown-runtime.d.ts +5 -5
- package/dist/internal/app-markdown-runtime.mjs +4 -4
- package/dist/internal/build-runtime.cjs +51 -51
- package/dist/internal/build-runtime.d.mts +7 -7
- package/dist/internal/build-runtime.d.ts +7 -7
- package/dist/internal/build-runtime.mjs +50 -50
- package/dist/internal/cli-runtime.cjs +31 -28
- package/dist/internal/cli-runtime.d.mts +11 -11
- package/dist/internal/cli-runtime.d.ts +11 -11
- package/dist/internal/cli-runtime.mjs +30 -27
- package/dist/internal/client-error-overlay.cjs +5 -5
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +49 -12
- package/dist/internal/client-runtime.d.mts +17 -21
- package/dist/internal/client-runtime.d.ts +17 -21
- package/dist/internal/client-runtime.mjs +38 -1
- package/dist/internal/compression-runtime.cjs +1 -1
- package/dist/internal/compression-runtime.d.mts +4 -4
- package/dist/internal/compression-runtime.d.ts +4 -4
- package/dist/internal/compression-runtime.mjs +1 -1
- package/dist/internal/config-runtime.cjs +13 -13
- package/dist/internal/config-runtime.d.mts +6 -6
- package/dist/internal/config-runtime.d.ts +6 -6
- package/dist/internal/config-runtime.mjs +12 -12
- package/dist/internal/desktop-guard.cjs +1 -1
- package/dist/internal/desktop-guard.mjs +1 -1
- package/dist/internal/docs-precompiled-runtime.cjs +1 -1
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions-client.cjs +1 -1
- package/dist/internal/form-actions-client.mjs +1 -1
- package/dist/internal/form-actions.cjs +1 -1
- package/dist/internal/form-actions.mjs +1 -1
- package/dist/internal/infra-analytics-runtime.cjs +11 -11
- package/dist/internal/infra-analytics-runtime.mjs +9 -9
- package/dist/internal/island-codec.cjs +1 -1
- package/dist/internal/island-codec.mjs +1 -1
- package/dist/internal/island-value-store.cjs +1 -1
- package/dist/internal/island-value-store.mjs +1 -1
- package/dist/internal/islands-boot.cjs +59 -10
- package/dist/internal/islands-boot.d.mts +19 -1
- package/dist/internal/islands-boot.d.ts +19 -1
- package/dist/internal/islands-boot.mjs +55 -6
- package/dist/internal/islands-runtime.cjs +1 -1
- package/dist/internal/islands-runtime.mjs +1 -1
- package/dist/internal/islands-server.cjs +1 -1
- package/dist/internal/islands-server.mjs +1 -1
- package/dist/internal/islx-client.cjs +1 -1
- package/dist/internal/islx-react.cjs +1 -1
- package/dist/internal/islx-server.cjs +1 -1
- package/dist/internal/isolated-boundary.cjs +1 -1
- package/dist/internal/isolated-boundary.mjs +1 -1
- package/dist/internal/metadata-image-runtime.cjs +1 -1
- package/dist/internal/metadata-image-runtime.mjs +1 -1
- 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 +4 -4
- package/dist/internal/product-telemetry-runtime.mjs +3 -3
- package/dist/internal/production-node-env.cjs +1 -1
- package/dist/internal/production-node-env.mjs +1 -1
- package/dist/internal/production-runtime.cjs +27 -27
- package/dist/internal/production-runtime.d.mts +14 -13
- package/dist/internal/production-runtime.d.ts +14 -13
- package/dist/internal/production-runtime.mjs +28 -28
- package/dist/internal/react-cache.cjs +1 -1
- package/dist/internal/react-cache.mjs +1 -1
- package/dist/internal/request-cookies.cjs +1 -1
- package/dist/internal/request-cookies.mjs +1 -1
- package/dist/internal/server-fn-transform.cjs +1 -1
- package/dist/internal/server-fn-transform.mjs +1 -1
- package/dist/internal/server-tree.cjs +1 -1
- package/dist/internal/server-tree.mjs +1 -1
- package/dist/internal/spa-router.cjs +44 -0
- package/dist/internal/spa-router.d.mts +41 -0
- package/dist/internal/spa-router.d.ts +41 -0
- package/dist/internal/spa-router.mjs +44 -0
- package/dist/internal/start-manifest.cjs +1 -1
- package/dist/internal/start-manifest.d.mts +4 -4
- package/dist/internal/start-manifest.d.ts +4 -4
- package/dist/internal/start-manifest.mjs +1 -1
- package/dist/internal/vercel-edge-middleware.cjs +4 -4
- package/dist/internal/vercel-edge-middleware.mjs +3 -3
- package/dist/json-ld.cjs +1 -1
- package/dist/json-ld.mjs +1 -1
- package/dist/{layers-I7VE5Q2Y.mjs → layers-5ZD4764G.mjs} +1 -1
- package/dist/{layers-WP5K5F7W.cjs → layers-HMEGUEXM.cjs} +1 -1
- package/dist/libsql-http-2QD224YS.mjs +600 -0
- package/dist/libsql-http-M6LMNXCN.cjs +600 -0
- package/dist/{lifecycle.d-VzcXyEyn.d.ts → lifecycle.d-OtGWAvJT.d.mts} +1 -1
- package/dist/{lifecycle.d-VzcXyEyn.d.mts → lifecycle.d-OtGWAvJT.d.ts} +1 -1
- package/dist/{manager-YO2RHDYU.mjs → manager-OMTC5FOJ.mjs} +2 -2
- package/dist/{manager-R7FV4A56.cjs → manager-PX4QN4HK.cjs} +4 -4
- package/dist/markdown.cjs +4 -4
- package/dist/markdown.d.mts +4 -4
- package/dist/markdown.d.ts +4 -4
- package/dist/markdown.mjs +3 -3
- package/dist/middleware.cjs +10 -10
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +9 -9
- package/dist/mobile.cjs +1 -1
- package/dist/mobile.mjs +1 -1
- package/dist/{modules-KOKD4XS6.mjs → modules-3Q2ZCY4Q.mjs} +1 -1
- package/dist/{modules-QTP7WJPD.cjs → modules-KDHFBQ6L.cjs} +1 -1
- package/dist/{mount.d-GU-tNxbE.d.ts → mount.d-DcoPFqv5.d.ts} +1 -1
- package/dist/{mount.d-DsP46XCy.d.mts → mount.d-Ylo-CmzK.d.mts} +1 -1
- package/dist/{native-server-fn-handler-LII4MDRR.mjs → native-server-fn-handler-OXFTI6V5.mjs} +5 -5
- package/dist/{native-server-fn-handler-IWNKQEXK.cjs → native-server-fn-handler-TNVFEQW3.cjs} +6 -6
- package/dist/{native-specs-LDV6IZ4N.mjs → native-specs-A7YOL463.mjs} +1 -1
- package/dist/{native-specs-5OLED4MM.cjs → native-specs-JDPH26AO.cjs} +1 -1
- package/dist/{native-tree-D3PW64ZL.cjs → native-tree-5TENEQ7Y.cjs} +5 -5
- package/dist/{native-tree-G6ZWS7IR.mjs → native-tree-LNO7K6JR.mjs} +4 -4
- package/dist/native.cjs +1 -1
- package/dist/native.mjs +1 -1
- package/dist/{navigation-delegate.d-DsxNPrLT.d.ts → navigation-delegate.d-2MK4YSlL.d.ts} +1 -1
- package/dist/{navigation-delegate.d-CUtNOYLi.d.mts → navigation-delegate.d-BA5h0fbE.d.mts} +1 -1
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +7 -7
- package/dist/navigation.d.ts +7 -7
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-HKMVYIXY.cjs → nitro-6UOJXJZ6.cjs} +8 -8
- package/dist/{nitro-RHLKLYXH.mjs → nitro-C3MYDX7V.mjs} +4 -4
- package/dist/{node-module-bundle-LIZ2KMVW.cjs → node-module-bundle-M6BISE2P.cjs} +1 -1
- package/dist/{node-module-bundle-VR6NV6AI.mjs → node-module-bundle-XPLBMXRD.mjs} +1 -1
- package/dist/observability.cjs +9 -3
- package/dist/{observability.d-DdJRiaIX.d.ts → observability.d-mXSbp4jc.d.mts} +17 -1
- package/dist/{observability.d-DdJRiaIX.d.mts → observability.d-mXSbp4jc.d.ts} +17 -1
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/observability.mjs +8 -2
- package/dist/og.cjs +1 -1
- package/dist/og.mjs +1 -1
- package/dist/platform.cjs +1 -1
- package/dist/platform.mjs +1 -1
- package/dist/{plugin-2KWR2X4B.mjs → plugin-33I3V42N.mjs} +2 -2
- package/dist/{plugin-MW7IDV76.cjs → plugin-LN3JBZRR.cjs} +3 -3
- package/dist/plugin.cjs +41 -41
- package/dist/plugin.d.mts +8 -8
- package/dist/plugin.d.ts +8 -8
- package/dist/plugin.mjs +40 -40
- package/dist/{port-CLL4BC4O.mjs → port-CEZTV776.mjs} +1 -1
- package/dist/{port-HASZTQGY.cjs → port-STMSGUVU.cjs} +1 -1
- package/dist/query/client.cjs +7 -7
- package/dist/query/client.mjs +2 -2
- package/dist/query/index.cjs +1 -1
- package/dist/query/index.mjs +1 -1
- package/dist/query/parsers.cjs +1 -1
- package/dist/query/parsers.mjs +1 -1
- package/dist/query/server.cjs +1 -1
- package/dist/query/server.mjs +1 -1
- package/dist/{render-plan.d-8K6S0h0L.d.ts → render-plan.d-2o-AG-ot.d.ts} +1 -1
- package/dist/{render-plan.d-B7Xp-PPW.d.mts → render-plan.d-ChYBMhLu.d.mts} +1 -1
- package/dist/renderer/none/server.cjs +1 -1
- package/dist/renderer/none/server.mjs +1 -1
- package/dist/renderer/react/client.cjs +1 -1
- package/dist/renderer/react/client.mjs +1 -1
- package/dist/renderer/react/server.cjs +1 -1
- package/dist/renderer/react/server.mjs +1 -1
- package/dist/renderer/react/vite.cjs +1 -1
- package/dist/renderer/react/vite.mjs +1 -1
- package/dist/renderer-client.cjs +5 -5
- package/dist/renderer-client.d.mts +7 -7
- package/dist/renderer-client.d.ts +7 -7
- package/dist/renderer-client.mjs +2 -2
- package/dist/renderer.cjs +1 -1
- package/dist/renderer.d.mts +16 -1
- package/dist/renderer.d.ts +16 -1
- package/dist/renderer.mjs +1 -1
- package/dist/request.cjs +1 -1
- package/dist/{request.d-CuQxmOqX.d.ts → request.d-CE0FIkiM.d.ts} +1 -1
- package/dist/{request.d-nhqciCAz.d.mts → request.d-RCnCBuWq.d.mts} +1 -1
- package/dist/request.d.mts +5 -5
- package/dist/request.d.ts +5 -5
- package/dist/request.mjs +1 -1
- package/dist/{route-rendering.d-BSsdDYC1.d.ts → route-rendering.d-BTPOM2nU.d.ts} +1 -1
- package/dist/{route-rendering.d-CeF1FOnl.d.mts → route-rendering.d-BZJnfKsp.d.mts} +1 -1
- package/dist/router.cjs +1 -1
- package/dist/{router.d-C7yGlhDL.d.ts → router.d-BU_WE6Ol.d.ts} +1 -1
- package/dist/{router.d-D462OX24.d.mts → router.d-D8Vvwl4i.d.mts} +1 -1
- package/dist/router.mjs +1 -1
- package/dist/routes.cjs +5 -5
- package/dist/routes.d.mts +4 -4
- package/dist/routes.d.ts +4 -4
- package/dist/routes.mjs +4 -4
- package/dist/{rsc-pipeline-7PV6ARDS.cjs → rsc-pipeline-A3R4U26C.cjs} +17 -17
- package/dist/{rsc-pipeline-EZU4W4RL.mjs → rsc-pipeline-JZWVSHOR.mjs} +16 -16
- package/dist/{runtime-RWLFEPS3.mjs → runtime-SQFRHRGJ.mjs} +20 -20
- package/dist/{runtime-QOE3NRXF.cjs → runtime-WZ3CHHGJ.cjs} +28 -28
- package/dist/{runtime.d-C-BHQMy5.d.mts → runtime.d-BnmuOXVD.d.mts} +1 -1
- package/dist/{runtime.d-CORDJQMy.d.ts → runtime.d-DJ6IIKcF.d.ts} +1 -1
- package/dist/safe-fetch.cjs +1 -1
- package/dist/safe-fetch.mjs +1 -1
- package/dist/{schema-dev-notice-CA55V57L.mjs → schema-dev-notice-EUPAUJVN.mjs} +3 -3
- package/dist/{schema-dev-notice-RWA2UTR6.cjs → schema-dev-notice-ZSCL47CT.cjs} +6 -6
- package/dist/schema.cjs +1 -1
- package/dist/schema.mjs +1 -1
- package/dist/search-client-A7YJT7JZ.cjs +15 -0
- package/dist/{search-client-OXH6GBNO.mjs → search-client-GIXIEU75.mjs} +2 -2
- package/dist/server-action-security.cjs +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-BbADqqjq.d.ts → server-components-status.d-BeqSXcjM.d.ts} +1 -1
- package/dist/{server-components-status.d-BJ6huueH.d.mts → server-components-status.d-BzOg9M8g.d.mts} +1 -1
- package/dist/server-fn-client.cjs +1 -1
- package/dist/server-fn-client.mjs +1 -1
- package/dist/server-fn.cjs +5 -5
- package/dist/server-fn.mjs +4 -4
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +6 -6
- package/dist/server-plugins.d.ts +6 -6
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query-client.cjs +1 -1
- package/dist/server-query-client.mjs +1 -1
- package/dist/server-query.cjs +6 -6
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +122 -100
- package/dist/server.d.mts +15 -15
- package/dist/server.d.ts +15 -15
- package/dist/server.mjs +77 -55
- package/dist/{session-WPAT6H76.mjs → session-4IB34X35.mjs} +3 -3
- package/dist/session-MOYQJ7E6.cjs +24 -0
- package/dist/{spa-router.d-DyGJLQc_.d.ts → spa-router.d-BOwuVkMl.d.ts} +20 -4
- package/dist/{spa-router.d-DfjafHyX.d.mts → spa-router.d-CDpftSsk.d.mts} +20 -4
- package/dist/{ssg.d-D11lz_wr.d.ts → ssg.d-BTVqyq8T.d.ts} +2 -2
- package/dist/{ssg.d-iiLTyLAO.d.mts → ssg.d-Bx_WFuwg.d.mts} +2 -2
- package/dist/storage.cjs +3 -3
- package/dist/storage.d.mts +112 -96
- package/dist/storage.d.ts +112 -96
- package/dist/storage.mjs +2 -2
- package/dist/testing.cjs +13 -13
- package/dist/testing.d.mts +4 -4
- package/dist/testing.d.ts +4 -4
- package/dist/testing.mjs +10 -10
- package/dist/theme/client.cjs +1 -1
- package/dist/theme/client.mjs +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.mjs +1 -1
- package/dist/theme/runtime.cjs +1 -1
- package/dist/theme/runtime.mjs +1 -1
- package/dist/theme/server.cjs +1 -1
- package/dist/theme/server.mjs +1 -1
- package/dist/{types.d-DC97bnjj.d.mts → types.d-C5hlNbHa.d.mts} +14 -2
- package/dist/{types.d-DC97bnjj.d.ts → types.d-C5hlNbHa.d.ts} +14 -2
- package/dist/{utils.d-fW-95yEh.d.mts → utils.d-JkrpS-NJ.d.mts} +1 -1
- package/dist/{utils.d-D-GQeEfa.d.ts → utils.d-_dvevm5s.d.ts} +1 -1
- package/dist/version.cjs +3 -3
- package/dist/version.mjs +2 -2
- package/dist/vite.cjs +43 -41
- package/dist/vite.d.mts +15 -10
- package/dist/vite.d.ts +15 -10
- package/dist/vite.mjs +42 -40
- package/dist/workflows.cjs +4 -4
- package/dist/workflows.mjs +3 -3
- package/package.json +9 -5
- package/types/images.d.ts +9 -0
- package/dist/analyzer-HTNXLX6N.cjs +0 -16
- package/dist/chunk-BTZ5O6VM.cjs +0 -14
- package/dist/chunk-Y6FXYEAI.mjs +0 -10
- package/dist/search-client-ZZLKVO5R.cjs +0 -15
- package/dist/session-OU7M4CIF.cjs +0 -24
- package/dist/{chunk-GFXKO4UW.mjs → chunk-3XTRT3MB.mjs} +48 -48
- package/dist/{chunk-BEXH6BGH.mjs → chunk-6JWXHPVR.mjs} +0 -0
- package/dist/{chunk-RL47VZ6J.mjs → chunk-C2OLXVUC.mjs} +0 -0
- package/dist/{chunk-YTNE4KGC.cjs → chunk-HS4JPIGR.cjs} +0 -0
- package/dist/{chunk-PC5OZ4YR.cjs → chunk-TCMRLW3K.cjs} +0 -0
- package/dist/{chunk-UOE6ZZZP.mjs → chunk-URBP6DLH.mjs} +0 -0
- package/dist/{chunk-AF3PNVVF.cjs → chunk-WGWWRV2M.cjs} +0 -0
- package/dist/{chunk-L7Y65BQU.cjs → chunk-WHEQJN4G.cjs} +48 -48
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkCGIVCGH5cjs = require('./chunk-CGIVCGH5.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -64,14 +64,14 @@ async function handleFarmNativeServerFnRequest(request, options, parsed) {
|
|
|
64
64
|
return refuse(400, "invalid_body", "The input has a key that is not allowed.");
|
|
65
65
|
}
|
|
66
66
|
const fn = await options.resolve(call.id);
|
|
67
|
-
if (fn === void 0 ||
|
|
67
|
+
if (fn === void 0 || _chunkCGIVCGH5cjs._describeServerFunction.call(void 0, fn) === void 0) {
|
|
68
68
|
return refuse(
|
|
69
69
|
404,
|
|
70
70
|
"unknown_function",
|
|
71
71
|
"No server function with this id is open to native screens."
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
|
-
const outcome = await
|
|
74
|
+
const outcome = await _chunkCGIVCGH5cjs._invokeServerFunction.call(void 0, fn, call.input, request);
|
|
75
75
|
if (outcome.ok) {
|
|
76
76
|
try {
|
|
77
77
|
return json(200, { data: _nullishCoalesce(outcome.data, () => ( null)) });
|
|
@@ -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 _chunkCCMP4JD2cjs = require('./chunk-CCMP4JD2.cjs');
|
|
4
4
|
|
|
5
5
|
// src/deployment-environment.ts
|
|
6
6
|
function isFarmProductionDeploymentEnvironment(env = process.env) {
|
|
@@ -90,7 +90,7 @@ function createFarmProductionSiteReporter(options) {
|
|
|
90
90
|
schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
|
|
91
91
|
eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
|
|
92
92
|
packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
|
|
93
|
-
packageVersion: sanitizeDetail(
|
|
93
|
+
packageVersion: sanitizeDetail(_chunkCCMP4JD2cjs.FARM_VERSION, "unknown"),
|
|
94
94
|
renderer: sanitizeDetail(options.renderer, "custom"),
|
|
95
95
|
deployTarget: sanitizeDetail(options.deployTarget, "custom")
|
|
96
96
|
};
|
|
@@ -2,16 +2,17 @@ import {
|
|
|
2
2
|
createFarmReactRefreshPlugins,
|
|
3
3
|
farmDesktopDevGuardPlugin,
|
|
4
4
|
isFarmReactRefreshActive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7V5M43ND.mjs";
|
|
6
6
|
import {
|
|
7
7
|
_listFarmRegisteredMCPServerTools,
|
|
8
8
|
_observeFarmRegisteredMCPResponse,
|
|
9
9
|
_readFarmRegisteredMCPCalls
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZIEO3DQ3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
createFarmImageHandler
|
|
13
13
|
} from "./chunk-UD6KTSJS.mjs";
|
|
14
14
|
import {
|
|
15
|
+
FARM_EARLY_NAVIGATION_SOURCE,
|
|
15
16
|
FARM_LAYOUT_ELEMENT_CLIENT_SOURCE,
|
|
16
17
|
FARM_NAVIGATION_SCRIPT_SOURCE,
|
|
17
18
|
FARM_NAVIGATION_STREAM_READER_SOURCE,
|
|
@@ -40,22 +41,22 @@ import {
|
|
|
40
41
|
resolveFarmImageProviderForRuntime,
|
|
41
42
|
resolveFarmRouteRootStrategy,
|
|
42
43
|
toBakedMarkdownSourcePath
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ZDYYZX73.mjs";
|
|
44
45
|
import {
|
|
45
46
|
generateFarmClientPluginEntryCode,
|
|
46
47
|
hasFarmServerRuntimePlugins,
|
|
47
48
|
loadTailwindVitePlugin
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-RPA45OQS.mjs";
|
|
49
50
|
import {
|
|
50
51
|
FARM_NODE_RESPONSE_END_PENDING
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-C2OLXVUC.mjs";
|
|
52
53
|
import {
|
|
53
54
|
resolveFarmPlatform
|
|
54
55
|
} from "./chunk-SMUW7UST.mjs";
|
|
55
56
|
import {
|
|
56
57
|
generateFarmTypeArtifacts,
|
|
57
58
|
resolveRouteRenderingConfig
|
|
58
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-YN3YMSKD.mjs";
|
|
59
60
|
import {
|
|
60
61
|
createFarmRouteRenderPlan,
|
|
61
62
|
farmPathGuardCoversEndpoint,
|
|
@@ -64,7 +65,7 @@ import {
|
|
|
64
65
|
getSharedLayoutPrefixLength,
|
|
65
66
|
parseFarmLayoutChainHeader,
|
|
66
67
|
renderFarmLocaleAlternateLinks
|
|
67
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-3K2E55BJ.mjs";
|
|
68
69
|
import {
|
|
69
70
|
FARM_NATIVE_TREE_CONTENT_TYPE
|
|
70
71
|
} from "./chunk-LLZSYFOM.mjs";
|
|
@@ -82,13 +83,13 @@ import {
|
|
|
82
83
|
resolveFarmMCPRouteLabel,
|
|
83
84
|
resolveFarmMarkdownRouteLabel,
|
|
84
85
|
setFarmRouteLabel
|
|
85
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-3JQBQG7K.mjs";
|
|
86
87
|
import {
|
|
87
88
|
FARM_DEFAULT_MCP_PATH
|
|
88
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-HR4N2K4V.mjs";
|
|
89
90
|
import {
|
|
90
91
|
isFarmPreviewDeploymentEnvironment
|
|
91
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-RQBGHHOQ.mjs";
|
|
92
93
|
import {
|
|
93
94
|
createFarmServerFnBoundaryModule,
|
|
94
95
|
isFarmServerFnBoundaryId,
|
|
@@ -139,7 +140,7 @@ import {
|
|
|
139
140
|
usePackageScanCacheFile,
|
|
140
141
|
withFarmSourceSnapshotOf,
|
|
141
142
|
wrapFarmIslandContainers
|
|
142
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-MDEFTF63.mjs";
|
|
143
144
|
import {
|
|
144
145
|
generateFarmDocsAdapterClientRuntime,
|
|
145
146
|
getFarmDocsAdapterConfigModule
|
|
@@ -163,18 +164,13 @@ import {
|
|
|
163
164
|
FARM_PREVIEW_ROBOTS_TAG,
|
|
164
165
|
resolveFarmAgentCrawlers,
|
|
165
166
|
resolveFarmAgentSitemap
|
|
166
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-SLEHAGGV.mjs";
|
|
167
168
|
import {
|
|
168
169
|
resolveFarmLlmsTxtConfig
|
|
169
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-XGL42MQ7.mjs";
|
|
170
171
|
import {
|
|
171
172
|
resolveFarmServerComponentsMode
|
|
172
173
|
} from "./chunk-4QENVMG7.mjs";
|
|
173
|
-
import {
|
|
174
|
-
getFarmAppDirectories,
|
|
175
|
-
getFarmLayerAliases,
|
|
176
|
-
getFarmSourceRoots
|
|
177
|
-
} from "./chunk-4STJ6LGR.mjs";
|
|
178
174
|
import {
|
|
179
175
|
REACT_RENDERER,
|
|
180
176
|
getFarmRendererCapabilities,
|
|
@@ -185,6 +181,11 @@ import {
|
|
|
185
181
|
resolveFarmRenderer,
|
|
186
182
|
resolveFarmRendererAppSetup
|
|
187
183
|
} from "./chunk-GCRT6GJG.mjs";
|
|
184
|
+
import {
|
|
185
|
+
getFarmAppDirectories,
|
|
186
|
+
getFarmLayerAliases,
|
|
187
|
+
getFarmSourceRoots
|
|
188
|
+
} from "./chunk-4STJ6LGR.mjs";
|
|
188
189
|
import {
|
|
189
190
|
getPublicFarmImageConfig,
|
|
190
191
|
resolveFarmImageConfig
|
|
@@ -196,7 +197,7 @@ import {
|
|
|
196
197
|
createFarmMarkdownSourceResponse,
|
|
197
198
|
isFarmMarkdownPageFile,
|
|
198
199
|
normalizeFarmMarkdownRoutePath
|
|
199
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-MUZHULW2.mjs";
|
|
200
201
|
import {
|
|
201
202
|
resolveFarmMdxComponentsModulePath,
|
|
202
203
|
resolveMdxConfig
|
|
@@ -208,21 +209,21 @@ import {
|
|
|
208
209
|
farmRequestWantsMarkdown,
|
|
209
210
|
getFarmMarkdownAlternatePath,
|
|
210
211
|
resolveMarkdownMirrorTarget
|
|
211
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-YU2MNIIY.mjs";
|
|
212
213
|
import {
|
|
213
214
|
dispatchIntegrationRequest,
|
|
214
215
|
getFarmIntegrationPluginOwner,
|
|
215
216
|
getIntegrationDocumentNavigationMatchers,
|
|
216
217
|
getIntegrationProviders,
|
|
217
218
|
matchIntegrationRoute
|
|
218
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-6JWXHPVR.mjs";
|
|
219
220
|
import {
|
|
220
221
|
resolveFarmRouteContext,
|
|
221
222
|
withFarmRouteContext
|
|
222
223
|
} from "./chunk-BMQAPZXD.mjs";
|
|
223
224
|
import {
|
|
224
225
|
MiddlewareManager
|
|
225
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-EY7ED5UW.mjs";
|
|
226
227
|
import {
|
|
227
228
|
_runWithMiddlewareContext,
|
|
228
229
|
_runWithMiddlewareData
|
|
@@ -238,7 +239,7 @@ import {
|
|
|
238
239
|
} from "./chunk-IYEY3JWJ.mjs";
|
|
239
240
|
import {
|
|
240
241
|
APIRouteManager
|
|
241
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-KKVRWNDH.mjs";
|
|
242
243
|
import {
|
|
243
244
|
getFarmI18nClientSnapshot
|
|
244
245
|
} from "./chunk-O7JEFGUV.mjs";
|
|
@@ -250,7 +251,7 @@ import {
|
|
|
250
251
|
FARM_INTERNAL_SERVER_ERROR_BODY,
|
|
251
252
|
createFarmInternalServerErrorResponse,
|
|
252
253
|
isFarmAPIPathname
|
|
253
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-TYHWZOA2.mjs";
|
|
254
255
|
import {
|
|
255
256
|
registerFarmMCPServer
|
|
256
257
|
} from "./chunk-F7MJWW6A.mjs";
|
|
@@ -280,7 +281,7 @@ import {
|
|
|
280
281
|
logger,
|
|
281
282
|
toPosixPath,
|
|
282
283
|
toViteModuleId
|
|
283
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-U6GMCDRS.mjs";
|
|
284
285
|
import {
|
|
285
286
|
resolveFarmAPIServerBasePath
|
|
286
287
|
} from "./chunk-2I6PUKWJ.mjs";
|
|
@@ -298,10 +299,10 @@ import {
|
|
|
298
299
|
import {
|
|
299
300
|
emitFarmEvent,
|
|
300
301
|
runWithFarmRequestSpan
|
|
301
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-EILUVBKS.mjs";
|
|
302
303
|
import {
|
|
303
304
|
FARM_VERSION
|
|
304
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-JGEN2FIT.mjs";
|
|
305
306
|
import {
|
|
306
307
|
DEFAULT_FARM_API_BASE_PATH
|
|
307
308
|
} from "./chunk-W6QLRQ3V.mjs";
|
|
@@ -348,7 +349,7 @@ import {
|
|
|
348
349
|
} from "./chunk-SF3JB56B.mjs";
|
|
349
350
|
import {
|
|
350
351
|
__require
|
|
351
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-TIZJYHB7.mjs";
|
|
352
353
|
|
|
353
354
|
// src/form-actions-transform.ts
|
|
354
355
|
import { createHash } from "crypto";
|
|
@@ -986,7 +987,8 @@ import { readFile } from "fs/promises";
|
|
|
986
987
|
import path4 from "path";
|
|
987
988
|
import { imageSize } from "image-size";
|
|
988
989
|
var FARM_IMAGE_ID_PREFIX = "\0farm:image:";
|
|
989
|
-
var STATIC_IMAGE_RE = /\.(?:avif|gif|jpe?g|png|webp)$/i;
|
|
990
|
+
var STATIC_IMAGE_RE = /\.(?:avif|gif|jpe?g|png|svg|webp)$/i;
|
|
991
|
+
var SVG_RE = /\.svg$/i;
|
|
990
992
|
var SCRIPT_IMPORTER_RE = /\.(?:[cm]?[jt]sx?|mdx?)$/i;
|
|
991
993
|
function farmImageImportsPlugin() {
|
|
992
994
|
return {
|
|
@@ -1021,7 +1023,7 @@ async function createStaticImageModule(filePath, sourceDeclaration) {
|
|
|
1021
1023
|
if (!dimensions.width || !dimensions.height) {
|
|
1022
1024
|
throw new Error(`Could not determine image dimensions for ${filePath}`);
|
|
1023
1025
|
}
|
|
1024
|
-
const blurDataURL = await createBlurDataURL(bytes);
|
|
1026
|
+
const blurDataURL = SVG_RE.test(filePath) ? void 0 : await createBlurDataURL(bytes);
|
|
1025
1027
|
return [
|
|
1026
1028
|
sourceDeclaration,
|
|
1027
1029
|
`const image = ${JSON.stringify({
|
|
@@ -1264,22 +1266,22 @@ function loadFarmDocsDevRuntime() {
|
|
|
1264
1266
|
return import("./docs.mjs");
|
|
1265
1267
|
}
|
|
1266
1268
|
function loadFarmDocsSearchDevRuntime() {
|
|
1267
|
-
return import("./search-client-
|
|
1269
|
+
return import("./search-client-GIXIEU75.mjs");
|
|
1268
1270
|
}
|
|
1269
1271
|
function loadFarmOpenAPIDevRuntime() {
|
|
1270
|
-
return import("./manager-
|
|
1272
|
+
return import("./manager-OMTC5FOJ.mjs");
|
|
1271
1273
|
}
|
|
1272
1274
|
function loadFarmWorkflowsDevRuntime() {
|
|
1273
1275
|
return import("./workflows.mjs");
|
|
1274
1276
|
}
|
|
1275
1277
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
1276
|
-
return import("./devtools-
|
|
1278
|
+
return import("./devtools-F3FDFV26.mjs");
|
|
1277
1279
|
}
|
|
1278
1280
|
function loadFarmDevtoolsUIRuntime() {
|
|
1279
|
-
return import("./devtools-ui-
|
|
1281
|
+
return import("./devtools-ui-BOG33MT5.mjs");
|
|
1280
1282
|
}
|
|
1281
1283
|
function loadFarmDevtoolsClientRuntime() {
|
|
1282
|
-
return import("./devtools-client-
|
|
1284
|
+
return import("./devtools-client-L4MUWD6K.mjs");
|
|
1283
1285
|
}
|
|
1284
1286
|
function farmI18nClientBridgePlugin() {
|
|
1285
1287
|
return {
|
|
@@ -2243,6 +2245,15 @@ async function warnClientBoundaryOnce(context, id, code, config) {
|
|
|
2243
2245
|
).join("\n")
|
|
2244
2246
|
);
|
|
2245
2247
|
}
|
|
2248
|
+
function isFarmAppRuntimeFile(file, appDirs, routeModuleExtensions) {
|
|
2249
|
+
const normalized = file.replace(/\\/g, "/");
|
|
2250
|
+
if (!appDirs.some((appDir) => normalized.startsWith(`${appDir}/`))) return false;
|
|
2251
|
+
const routeModule = /\/(?:page|default|layout|loading|error)(\.[^./]+)$/.exec(normalized);
|
|
2252
|
+
if (routeModule) return routeModuleExtensions.has(routeModule[1].toLowerCase());
|
|
2253
|
+
return /\/(?:middleware|route)\.(?:ts|tsx|js|jsx|md|mdx)$|\/(?:sitemap|robots|manifest)\.(?:ts|js)$|\/(?:opengraph-image|twitter-image)(?:\.(?:ts|tsx|js|jsx|png|jpg|jpeg|gif|webp)|\.alt\.txt)$/.test(
|
|
2254
|
+
normalized
|
|
2255
|
+
);
|
|
2256
|
+
}
|
|
2246
2257
|
function shouldEmitFarmClientRootHmr(renderer) {
|
|
2247
2258
|
return getFarmRendererCapabilities(resolveFarmRenderer(renderer)).reconcilesRerenders;
|
|
2248
2259
|
}
|
|
@@ -2579,12 +2590,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2579
2590
|
(srcDir) => isPotentialProgrammaticRouteSourceFile(normalized, srcDir)
|
|
2580
2591
|
);
|
|
2581
2592
|
};
|
|
2582
|
-
const isAppRuntimeFile = (file) =>
|
|
2583
|
-
const normalized = file.replace(/\\/g, "/");
|
|
2584
|
-
return appDirSlugs.some((appDir) => normalized.startsWith(`${appDir}/`)) && /\/(?:page|default|layout|loading|error|middleware|route)\.(?:ts|tsx|js|jsx|md|mdx)$|\/(?:sitemap|robots|manifest)\.(?:ts|js)$|\/(?:opengraph-image|twitter-image)(?:\.(?:ts|tsx|js|jsx|png|jpg|jpeg|gif|webp)|\.alt\.txt)$/.test(
|
|
2585
|
-
normalized
|
|
2586
|
-
);
|
|
2587
|
-
};
|
|
2593
|
+
const isAppRuntimeFile = (file) => isFarmAppRuntimeFile(file, appDirSlugs, routeModuleExtensions);
|
|
2588
2594
|
const isStaticMetadataImageFile = (file) => /\/(?:opengraph-image|twitter-image)(?:\.(?:png|jpg|jpeg|gif|webp)|\.alt\.txt)$/.test(
|
|
2589
2595
|
file.replace(/\\/g, "/")
|
|
2590
2596
|
);
|
|
@@ -3533,7 +3539,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3533
3539
|
}
|
|
3534
3540
|
}
|
|
3535
3541
|
if (options.mobileClient && !viteModuleRequest && (requestMethod === "GET" || requestMethod === "HEAD" || requestMethod === "POST") && req.headers.accept?.includes(FARM_NATIVE_TREE_CONTENT_TYPE)) {
|
|
3536
|
-
const { createFarmNativeTreeResponse } = await import("./native-tree-
|
|
3542
|
+
const { createFarmNativeTreeResponse } = await import("./native-tree-LNO7K6JR.mjs");
|
|
3537
3543
|
const treeBodyInit = requestMethod === "POST" ? { body: createFarmNodeRequestBodyStream(req), duplex: "half" } : {};
|
|
3538
3544
|
const treeResponse = await createFarmNativeTreeResponse({
|
|
3539
3545
|
request: new Request(fullUrl, {
|
|
@@ -5329,6 +5335,7 @@ if (import.meta.hot) {
|
|
|
5329
5335
|
let clientPlanCurrent = false;
|
|
5330
5336
|
if (isHydrationPlanSource && (isolatedHydrationMode === "enabled" || isolatedHydrationMode === "analyze" || tracksAsyncOwnerIslands)) {
|
|
5331
5337
|
const routeManager = planRouteManager;
|
|
5338
|
+
await ctx.read?.();
|
|
5332
5339
|
if (routeManager?.isEditPlanNeutral(file)) {
|
|
5333
5340
|
clientPlanCurrent = true;
|
|
5334
5341
|
} else if (routeManager) {
|
|
@@ -5947,9 +5954,18 @@ function generateClientCode(integrationProviders = [], documentNavigationMatcher
|
|
|
5947
5954
|
const appSetupPath = resolveFarmRendererAppSetup(root, renderer);
|
|
5948
5955
|
const rendererClientImports = isReactRenderer(renderer) ? `import React from 'react'
|
|
5949
5956
|
import { hydrateRoot, createRoot } from 'react-dom/client'
|
|
5950
|
-
import { restorePagePosition } from '@farm.js/core/internal/client-runtime'` :
|
|
5957
|
+
import { restorePagePosition } from '@farm.js/core/internal/client-runtime'` : (
|
|
5958
|
+
// Named exports only: a renderer's client module needs no default export. `React` is a
|
|
5959
|
+
// copy of the namespace, as in the production entry, where Rolldown warns about each
|
|
5960
|
+
// optional export (`Children`, `markFunctionComponent`) feature-checked on the namespace.
|
|
5961
|
+
appSetupPath ? `import * as __farmRendererClient from ${JSON.stringify(renderer.client)}
|
|
5962
|
+
import { hydrateRoot, createRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)}
|
|
5951
5963
|
import __farmAppSetup from ${JSON.stringify(toViteModuleId(appSetupPath, root))}
|
|
5952
|
-
|
|
5964
|
+
const React = { ...__farmRendererClient }
|
|
5965
|
+
__farmConfigureApp(__farmAppSetup)` : `import * as __farmRendererClient from ${JSON.stringify(renderer.client)}
|
|
5966
|
+
import { hydrateRoot, createRoot } from ${JSON.stringify(renderer.client)}
|
|
5967
|
+
const React = { ...__farmRendererClient }`
|
|
5968
|
+
);
|
|
5953
5969
|
const isolatedHydrationImport = isolatedHydrationEnabled ? `${islandValues ? "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph, createFarmServerTreeElement, createFarmServerTreeLayout } from '@farm.js/core/internal/islands-runtime'" : "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph } from '@farm.js/core/internal/isolated-boundary'\nimport { createFarmServerTreeElement } from '@farm.js/core/internal/server-tree'"}` : "";
|
|
5954
5970
|
const docsAdapterImportBlock = generateFarmDocsAdapterClientRuntime(
|
|
5955
5971
|
docsAdapterReact,
|
|
@@ -6005,10 +6021,11 @@ function rerenderFarmTreeLayouts() {}`;
|
|
|
6005
6021
|
return `
|
|
6006
6022
|
${rendererClientImports}
|
|
6007
6023
|
${isolatedHydrationImport}
|
|
6008
|
-
import { installChunkErrorRecovery, SPARouter } from '@farm.js/core/client'
|
|
6009
6024
|
import { createClientPluginManager } from '@farm.js/core/plugin/client'
|
|
6025
|
+
// Not @farm.js/core/client: that module's graph imports react, which other renderers' apps lack.
|
|
6026
|
+
import { SPARouter } from '@farm.js/core/internal/spa-router'
|
|
6010
6027
|
import { isFarmRouteActive } from '@farm.js/core/router'
|
|
6011
|
-
import { installFarmLinkPrefetch, isFarmBlockedNavigationURL, readFarmLinkNavigateOptions, rememberFarmLinkLocale, replayFarmQueuedInteraction, scheduleFarmIslandHydration, createFarmSearchParams, searchParamsToObject, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from '@farm.js/core/internal/client-runtime'
|
|
6028
|
+
import { installChunkErrorRecovery, installFarmLinkPrefetch, isFarmBlockedNavigationURL, readFarmLinkNavigateOptions, rememberFarmLinkLocale, replayFarmQueuedInteraction, scheduleFarmIslandHydration, createFarmSearchParams, searchParamsToObject, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from '@farm.js/core/internal/client-runtime'
|
|
6012
6029
|
import { reviveDeferredData } from '@farm.js/core/deferred'
|
|
6013
6030
|
import {
|
|
6014
6031
|
createFarmDeploymentMismatchError,
|
|
@@ -7260,6 +7277,8 @@ ${islandValues ? `
|
|
|
7260
7277
|
|
|
7261
7278
|
${islandValues ? `${FARM_NAVIGATION_STREAM_READER_SOURCE}
|
|
7262
7279
|
|
|
7280
|
+
${FARM_EARLY_NAVIGATION_SOURCE}
|
|
7281
|
+
|
|
7263
7282
|
// Islands mode navigates as the production client does: it fetches the page itself, names the
|
|
7264
7283
|
// layouts it shows by key (F-Layouts), and asks for flush markers (F-Stream), so the shell arrives
|
|
7265
7284
|
// before slow Suspense content. Other pages (a client page, a layout that hydrates, route slots)
|
|
@@ -7331,19 +7350,20 @@ async function fetchFarmNavigationDocument(path, context) {
|
|
|
7331
7350
|
keepLayouts && !context.refresh && !activeLayoutShouldHydrate
|
|
7332
7351
|
? readLayoutIdentities(container)
|
|
7333
7352
|
: [];
|
|
7334
|
-
const
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
// A prefetch names its layouts even when it keeps none: that marks it as a navigation,
|
|
7343
|
-
// which the server answers without loading.tsx.
|
|
7344
|
-
...(identities.length || context.prefetch ? { 'F-Layouts': JSON.stringify(identities) } : {}),
|
|
7345
|
-
}),
|
|
7353
|
+
const headers = createFarmDeploymentRequestHeaders(deploymentId, {
|
|
7354
|
+
Accept: 'text/html',
|
|
7355
|
+
// A refresh arrives whole, like a transition: the islands it keeps are all in it.
|
|
7356
|
+
...(context.prefetch || context.refresh ? {} : { 'F-Stream': 'flush' }),
|
|
7357
|
+
...getFarmIslandValueHeaders(),
|
|
7358
|
+
// A prefetch names its layouts even when it keeps none: that marks it as a navigation,
|
|
7359
|
+
// which the server answers without loading.tsx.
|
|
7360
|
+
...(identities.length || context.prefetch ? { 'F-Layouts': JSON.stringify(identities) } : {}),
|
|
7346
7361
|
});
|
|
7362
|
+
const target = url.pathname + url.search;
|
|
7363
|
+
const response = await (
|
|
7364
|
+
(!context.prefetch && takeFarmEarlyNavigation(target, headers, context.signal)) ||
|
|
7365
|
+
fetch(target, { signal: context.signal, redirect: 'manual', headers })
|
|
7366
|
+
);
|
|
7347
7367
|
if (isFarmDeploymentMismatchResponse(response, deploymentId)) {
|
|
7348
7368
|
const error = createFarmDeploymentMismatchError(response, deploymentId || 'unknown');
|
|
7349
7369
|
window.dispatchEvent(new CustomEvent('farm:deployment-mismatch', { detail: error }));
|
|
@@ -7958,7 +7978,7 @@ async function defineConfig(config = {}) {
|
|
|
7958
7978
|
const tailwindVitePlugin = await loadTailwindVitePlugin();
|
|
7959
7979
|
const appRoot = path6.resolve(config.root || process.cwd());
|
|
7960
7980
|
if (config.extends?.length) {
|
|
7961
|
-
const { config: layeredConfig } = await import("./layers-
|
|
7981
|
+
const { config: layeredConfig } = await import("./layers-5ZD4764G.mjs").then(
|
|
7962
7982
|
({ resolveFarmLayers }) => resolveFarmLayers(config, {
|
|
7963
7983
|
root: appRoot,
|
|
7964
7984
|
mode: process.env.NODE_ENV === "production" ? "production" : "development"
|
|
@@ -8187,6 +8207,7 @@ export {
|
|
|
8187
8207
|
withFarmRequestTracing,
|
|
8188
8208
|
rewriteEarlySsrRelativeImports,
|
|
8189
8209
|
transformIsolatedClientBoundaryModule,
|
|
8210
|
+
isFarmAppRuntimeFile,
|
|
8190
8211
|
shouldEmitFarmClientRootHmr,
|
|
8191
8212
|
farmPlugin,
|
|
8192
8213
|
defineConfig
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUZM3PDKKcjs = require('./chunk-UZM3PDKK.cjs');
|
|
7
7
|
|
|
8
8
|
// src/desktop/dev-guard-plugin.ts
|
|
9
9
|
function farmDesktopDevGuardPlugin(basePath) {
|
|
@@ -15,7 +15,7 @@ function farmDesktopDevGuardPlugin(basePath) {
|
|
|
15
15
|
order: "pre",
|
|
16
16
|
async handler(server) {
|
|
17
17
|
if (_chunkAQLHD6HZcjs.resolveFarmPlatform.call(void 0, ) !== "desktop") return;
|
|
18
|
-
const { createFarmDesktopDevGuard } = await import("./dev-guard-
|
|
18
|
+
const { createFarmDesktopDevGuard } = await import("./dev-guard-VIEEA4LS.cjs");
|
|
19
19
|
server.middlewares.use(createFarmDesktopDevGuard(server, { basePath: basePath || "" }));
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -83,7 +83,7 @@ ${code}`,
|
|
|
83
83
|
}
|
|
84
84
|
async function loadFarmReactPlugin() {
|
|
85
85
|
const entry = _module.createRequire.call(void 0,
|
|
86
|
-
typeof __filename === "string" ? __filename :
|
|
86
|
+
typeof __filename === "string" ? __filename : _chunkUZM3PDKKcjs.define_import_meta_default.url
|
|
87
87
|
).resolve("@vitejs/plugin-react");
|
|
88
88
|
return await import(
|
|
89
89
|
/* @vite-ignore */
|
|
@@ -126,6 +126,7 @@ function renderSqlTable(model, dialect, modelLookup) {
|
|
|
126
126
|
const tableName = quoteSqlIdentifier(dialect, model.modelName);
|
|
127
127
|
const lines = [`CREATE TABLE IF NOT EXISTS ${tableName} (`];
|
|
128
128
|
const columns = [];
|
|
129
|
+
const foreignKeys = [];
|
|
129
130
|
const internalReferences = createInternalReferenceLookup(model, dialect, modelLookup);
|
|
130
131
|
for (const [fieldKey, field] of Object.entries(model.model.fields)) {
|
|
131
132
|
assertNoSchemaListField(
|
|
@@ -151,7 +152,9 @@ function renderSqlTable(model, dialect, modelLookup) {
|
|
|
151
152
|
}
|
|
152
153
|
const crossOwner = model.foreignKeys?.[fieldKey];
|
|
153
154
|
const reference = internalReferences.get(fieldKey) ?? (crossOwner ? `REFERENCES ${quoteSqlIdentifier(dialect, crossOwner.table)} (${quoteSqlIdentifier(dialect, crossOwner.column)})${crossOwner.onDelete !== "noAction" ? ` ON DELETE ${SQL_ON_DELETE_ACTIONS[crossOwner.onDelete]}` : ""}` : void 0);
|
|
154
|
-
if (reference) {
|
|
155
|
+
if (reference && dialect === "mysql") {
|
|
156
|
+
foreignKeys.push(` FOREIGN KEY (${quoteSqlIdentifier(dialect, field.name)}) ${reference}`);
|
|
157
|
+
} else if (reference) {
|
|
155
158
|
parts.push(reference);
|
|
156
159
|
} else if (field.reference) {
|
|
157
160
|
parts.push(
|
|
@@ -166,6 +169,7 @@ function renderSqlTable(model, dialect, modelLookup) {
|
|
|
166
169
|
` ${definition.unique ? "UNIQUE KEY" : "KEY"} ${quoteSqlIdentifier(dialect, definition.name)} (${definition.columns.join(", ")})`
|
|
167
170
|
);
|
|
168
171
|
}
|
|
172
|
+
columns.push(...foreignKeys);
|
|
169
173
|
}
|
|
170
174
|
lines.push(columns.join(",\n"));
|
|
171
175
|
lines.push(");");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRouteTypeDeclarations,
|
|
3
3
|
generateRouteTypes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-K3XKEZR6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
APITypeGenerator
|
|
7
7
|
} from "./chunk-HQ2VAJLW.mjs";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-4STJ6LGR.mjs";
|
|
30
30
|
import {
|
|
31
31
|
isFarmMarkdownPageFile
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MUZHULW2.mjs";
|
|
33
33
|
import {
|
|
34
34
|
resolveSchemaModels
|
|
35
35
|
} from "./chunk-F3N52U7S.mjs";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./chunk-VO55MMBX.mjs";
|
|
45
45
|
import {
|
|
46
46
|
resolvePluginRoutes
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-HD5FLXP2.mjs";
|
|
48
48
|
|
|
49
49
|
// src/ssg.ts
|
|
50
50
|
import { readFileSync } from "fs";
|
|
@@ -947,7 +947,7 @@ async function generateFarmTypeArtifacts(options) {
|
|
|
947
947
|
if (syncModelTypes) unifiedSections.push(syncModelTypes);
|
|
948
948
|
}
|
|
949
949
|
if (shouldRefreshUnifiedTypes && existsSync2(join3(root, srcDir, "native"))) {
|
|
950
|
-
const [{ scanFarmMobileAppModules }, { createFarmNativeModuleTypeDeclarations }] = await Promise.all([import("./modules-
|
|
950
|
+
const [{ scanFarmMobileAppModules }, { createFarmNativeModuleTypeDeclarations }] = await Promise.all([import("./modules-3Q2ZCY4Q.mjs"), import("./native-specs-A7YOL463.mjs")]);
|
|
951
951
|
const appModules = scanFarmMobileAppModules({ root, srcDir });
|
|
952
952
|
const nativeTypes = appModules && createFarmNativeModuleTypeDeclarations(appModules.specs, { root });
|
|
953
953
|
if (nativeTypes) unifiedSections.push(nativeTypes);
|
|
@@ -20,7 +20,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
|
20
20
|
var _chunk7Q7UB4TLcjs = require('./chunk-7Q7UB4TL.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkPLJMEUANcjs = require('./chunk-PLJMEUAN.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -546,7 +546,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
546
546
|
pathname,
|
|
547
547
|
name: entry.filePath
|
|
548
548
|
};
|
|
549
|
-
|
|
549
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, { type: "middleware.start", ...middlewareEvent });
|
|
550
550
|
try {
|
|
551
551
|
const returnedResponse = await executeHandlers(entry.handlers, ctx);
|
|
552
552
|
currentRequest = contextState.getRequest();
|
|
@@ -555,7 +555,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
555
555
|
returnedResponse,
|
|
556
556
|
mapToHeaders(contextState.headers)
|
|
557
557
|
);
|
|
558
|
-
|
|
558
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
|
|
559
559
|
type: "middleware.shortCircuit",
|
|
560
560
|
...middlewareEvent,
|
|
561
561
|
status: response.status
|
|
@@ -572,7 +572,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
572
572
|
}
|
|
573
573
|
if (ctx._handled || ctx.response.headersSent || ctx.response.writableEnded) {
|
|
574
574
|
const response = contextState.getResponse() || new Response(null);
|
|
575
|
-
|
|
575
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
|
|
576
576
|
type: "middleware.shortCircuit",
|
|
577
577
|
...middlewareEvent,
|
|
578
578
|
status: response.status
|
|
@@ -587,7 +587,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
587
587
|
guarded
|
|
588
588
|
};
|
|
589
589
|
}
|
|
590
|
-
|
|
590
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
|
|
591
591
|
type: "middleware.complete",
|
|
592
592
|
...middlewareEvent,
|
|
593
593
|
durationMs: Date.now() - middlewareStartTime
|
|
@@ -600,7 +600,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
600
600
|
new Response(null, { status: redirect.status, headers: { Location: redirect.url } }),
|
|
601
601
|
mapToHeaders(contextState.headers)
|
|
602
602
|
);
|
|
603
|
-
|
|
603
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
|
|
604
604
|
type: "middleware.shortCircuit",
|
|
605
605
|
...middlewareEvent,
|
|
606
606
|
status: response.status
|
|
@@ -616,7 +616,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
618
|
if (_chunk7JUIK547cjs.isFarmNotFoundError.call(void 0, error)) {
|
|
619
|
-
|
|
619
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, { type: "middleware.shortCircuit", ...middlewareEvent, status: 404 });
|
|
620
620
|
return {
|
|
621
621
|
request: currentRequest,
|
|
622
622
|
response: null,
|
|
@@ -628,7 +628,7 @@ function createProductionMiddlewareRunner(options = {}) {
|
|
|
628
628
|
notFound: true
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
|
|
631
|
+
_chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
|
|
632
632
|
type: "middleware.error",
|
|
633
633
|
...middlewareEvent,
|
|
634
634
|
error
|