@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
|
@@ -9,10 +9,10 @@ var _chunkKBGZ5FD6cjs = require('./chunk-KBGZ5FD6.cjs');
|
|
|
9
9
|
var _chunkP2355C6Ecjs = require('./chunk-P2355C6E.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkMQOHYV6Lcjs = require('./chunk-MQOHYV6L.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkHS4JPIGRcjs = require('./chunk-HS4JPIGR.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkSBDWCDS6cjs = require('./chunk-SBDWCDS6.cjs');
|
|
@@ -26,7 +26,7 @@ var _chunkSBDWCDS6cjs = require('./chunk-SBDWCDS6.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkWIZRYFB2cjs = require('./chunk-WIZRYFB2.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
var _chunkYUCU6XB4cjs = require('./chunk-YUCU6XB4.cjs');
|
|
@@ -46,7 +46,7 @@ var _chunkZMSVKVI3cjs = require('./chunk-ZMSVKVI3.cjs');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
@@ -148,7 +148,7 @@ function farmApiPlugin(options = {}) {
|
|
|
148
148
|
const existing = apiRoutesCache.get(routePath);
|
|
149
149
|
const existingFile = _optionalChain([endpointSources, 'access', _4 => _4.get, 'call', _5 => _5(routePath), 'optionalAccess', _6 => _6.get, 'call', _7 => _7(normalizedMethod)]);
|
|
150
150
|
if (existingFile) {
|
|
151
|
-
throw new (0,
|
|
151
|
+
throw new (0, _chunkMQOHYV6Lcjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
|
|
152
152
|
}
|
|
153
153
|
if (existing) {
|
|
154
154
|
if (!existing.methods.includes(normalizedMethod)) {
|
|
@@ -224,7 +224,7 @@ function farmApiPlugin(options = {}) {
|
|
|
224
224
|
const createRouter = async () => {
|
|
225
225
|
const plugins = options.plugins ? await (_nullishCoalesce(routePlugins, () => ( (routePlugins = Promise.resolve(options.plugins({ root: projectRoot })))))) : [];
|
|
226
226
|
pluginMergedRoutes = plugins.length ? new Map(
|
|
227
|
-
|
|
227
|
+
_chunkWIZRYFB2cjs.mergePluginAPIRoutes.call(void 0, [...apiRoutesCache.values()], plugins, void 0, {
|
|
228
228
|
bodySizeLimit,
|
|
229
229
|
// A plugin calling an app endpoint (an MCP tool, say) goes back through this server,
|
|
230
230
|
// so the middleware that guards the endpoint's path runs for it.
|
|
@@ -244,7 +244,7 @@ function farmApiPlugin(options = {}) {
|
|
|
244
244
|
const url = new URL(request.url);
|
|
245
245
|
const method = request.method.toUpperCase();
|
|
246
246
|
const pathname = url.pathname;
|
|
247
|
-
const match =
|
|
247
|
+
const match = _chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath);
|
|
248
248
|
if (!match) {
|
|
249
249
|
return new Response(JSON.stringify({ error: "Not Found" }), {
|
|
250
250
|
status: 404,
|
|
@@ -252,21 +252,21 @@ function farmApiPlugin(options = {}) {
|
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
const { route, params } = match;
|
|
255
|
-
const endpoint =
|
|
255
|
+
const endpoint = _chunkWIZRYFB2cjs.resolveAPIRouteEndpoint.call(void 0, route, method);
|
|
256
256
|
if (!endpoint) {
|
|
257
257
|
return new Response(JSON.stringify({ error: "Method Not Allowed" }), {
|
|
258
258
|
status: 405,
|
|
259
259
|
headers: {
|
|
260
|
-
Allow:
|
|
260
|
+
Allow: _chunkWIZRYFB2cjs.getAllowedAPIRouteMethods.call(void 0, route).join(", "),
|
|
261
261
|
"Content-Type": "application/json"
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
try {
|
|
266
|
-
return await
|
|
266
|
+
return await _chunkWIZRYFB2cjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params, bodySizeLimit);
|
|
267
267
|
} catch (error) {
|
|
268
268
|
console.error(`[API Error] ${pathname}:`, error);
|
|
269
|
-
return
|
|
269
|
+
return _chunkWIZRYFB2cjs.createFarmInternalServerErrorResponse.call(void 0, );
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
log(`API router created with ${totalEndpoints} endpoints`);
|
|
@@ -310,7 +310,7 @@ function farmApiPlugin(options = {}) {
|
|
|
310
310
|
const routeModule = await _chunk25JGHAGHcjs.loadFarmDevModule.call(void 0, server, filePath);
|
|
311
311
|
const endpoints = {};
|
|
312
312
|
const availableMethods = [];
|
|
313
|
-
for (const method of
|
|
313
|
+
for (const method of _chunkWIZRYFB2cjs.API_ROUTE_METHODS) {
|
|
314
314
|
if (routeModule[method]) {
|
|
315
315
|
availableMethods.push(method);
|
|
316
316
|
endpoints[method] = routeModule[method];
|
|
@@ -323,7 +323,7 @@ function farmApiPlugin(options = {}) {
|
|
|
323
323
|
log(`API route discovered: ${availableMethods.join(", ")} ${routePath}`);
|
|
324
324
|
}
|
|
325
325
|
} catch (e) {
|
|
326
|
-
if (e instanceof
|
|
326
|
+
if (e instanceof _chunkMQOHYV6Lcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
|
|
327
327
|
log(`API route load failed at ${filePath}: ${e.message}`);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
@@ -350,7 +350,7 @@ function farmApiPlugin(options = {}) {
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
} catch (e) {
|
|
353
|
-
if (e instanceof
|
|
353
|
+
if (e instanceof _chunkMQOHYV6Lcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
|
|
354
354
|
log(`Root routes.ts load failed: ${e.message}`);
|
|
355
355
|
}
|
|
356
356
|
break;
|
|
@@ -360,14 +360,14 @@ function farmApiPlugin(options = {}) {
|
|
|
360
360
|
const discoverProgrammaticRoutes = async () => {
|
|
361
361
|
const path = await import("path");
|
|
362
362
|
const srcRoot = path.join(server.config.root, srcDir);
|
|
363
|
-
const routeFiles =
|
|
363
|
+
const routeFiles = _chunkHS4JPIGRcjs.findProgrammaticRouteFilesInDir.call(void 0, srcRoot);
|
|
364
364
|
if (routeFiles.length === 0) return;
|
|
365
365
|
const { getProgrammaticRouteManifest } = await import("./routes.cjs");
|
|
366
366
|
for (const routeFile of routeFiles) {
|
|
367
367
|
try {
|
|
368
368
|
const routesModule = await _chunk25JGHAGHcjs.loadFarmDevModule.call(void 0,
|
|
369
369
|
server,
|
|
370
|
-
|
|
370
|
+
_chunk7U4XF76Rcjs.toViteModuleId.call(void 0, routeFile, server.config.root)
|
|
371
371
|
);
|
|
372
372
|
const manifest = getProgrammaticRouteManifest(routesModule);
|
|
373
373
|
if (!manifest) continue;
|
|
@@ -381,7 +381,7 @@ function farmApiPlugin(options = {}) {
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
} catch (e) {
|
|
384
|
-
if (e instanceof
|
|
384
|
+
if (e instanceof _chunkMQOHYV6Lcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
|
|
385
385
|
log(`Programmatic routes file load failed at ${routeFile}: ${e.message}`);
|
|
386
386
|
}
|
|
387
387
|
}
|
|
@@ -433,7 +433,7 @@ function farmApiPlugin(options = {}) {
|
|
|
433
433
|
const runWithDevI18n = async (req, res, handle) => {
|
|
434
434
|
const i18n = await devI18n;
|
|
435
435
|
const pathname = (req.url || "/").split("?")[0];
|
|
436
|
-
if (!
|
|
436
|
+
if (!_chunkWIZRYFB2cjs.isFarmAPIPathname.call(void 0, pathname, basePath) && !_chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath)) {
|
|
437
437
|
return handle();
|
|
438
438
|
}
|
|
439
439
|
const headers = new Headers();
|
|
@@ -472,15 +472,15 @@ function farmApiPlugin(options = {}) {
|
|
|
472
472
|
if (discoveryPromise) await waitForDiscovery();
|
|
473
473
|
const farmMiddleware = server.__farmMiddleware__;
|
|
474
474
|
let middlewareRan = false;
|
|
475
|
-
if (!
|
|
476
|
-
if (!farmMiddleware || !apiRouterHandler || !
|
|
475
|
+
if (!_chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), pathname, basePath)) {
|
|
476
|
+
if (!farmMiddleware || !apiRouterHandler || !_chunkWIZRYFB2cjs.isFarmAPIPathname.call(void 0, pathname, basePath)) {
|
|
477
477
|
return next();
|
|
478
478
|
}
|
|
479
479
|
await _optionalChain([farmMiddleware, 'access', _10 => _10.waitForDiscovery, 'optionalCall', _11 => _11()]);
|
|
480
480
|
if (await farmMiddleware.execute(req, res, pathname, /* @__PURE__ */ new Map())) return;
|
|
481
481
|
middlewareRan = true;
|
|
482
482
|
const rewrittenPathname = (req.url || url).split("?")[0];
|
|
483
|
-
if (rewrittenPathname === pathname || !
|
|
483
|
+
if (rewrittenPathname === pathname || !_chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), rewrittenPathname, basePath)) {
|
|
484
484
|
return next();
|
|
485
485
|
}
|
|
486
486
|
}
|
|
@@ -501,7 +501,7 @@ function farmApiPlugin(options = {}) {
|
|
|
501
501
|
}
|
|
502
502
|
const currentUrl = req.url || url;
|
|
503
503
|
const currentPathname = currentUrl.split("?")[0];
|
|
504
|
-
if (currentPathname !== pathname && !
|
|
504
|
+
if (currentPathname !== pathname && !_chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, servedRoutes(), currentPathname, basePath)) {
|
|
505
505
|
return next();
|
|
506
506
|
}
|
|
507
507
|
const fullUrl = _chunk2RSVYJT6cjs.resolveFarmRequestURL.call(void 0, req);
|
|
@@ -538,7 +538,7 @@ function farmApiPlugin(options = {}) {
|
|
|
538
538
|
console.error("[FARM] API error:", error);
|
|
539
539
|
res.statusCode = 500;
|
|
540
540
|
res.setHeader("Content-Type", "application/json");
|
|
541
|
-
res.end(
|
|
541
|
+
res.end(_chunkWIZRYFB2cjs.FARM_INTERNAL_SERVER_ERROR_BODY);
|
|
542
542
|
}
|
|
543
543
|
});
|
|
544
544
|
server.middlewares.use((req, res, next) => {
|
|
@@ -562,13 +562,13 @@ function farmApiPlugin(options = {}) {
|
|
|
562
562
|
}
|
|
563
563
|
res.statusCode = 500;
|
|
564
564
|
res.setHeader("Content-Type", "application/json");
|
|
565
|
-
res.end(
|
|
565
|
+
res.end(_chunkWIZRYFB2cjs.FARM_INTERNAL_SERVER_ERROR_BODY);
|
|
566
566
|
});
|
|
567
567
|
});
|
|
568
568
|
};
|
|
569
569
|
},
|
|
570
570
|
async handleHotUpdate({ file, server, modules }) {
|
|
571
|
-
const normalizedFile =
|
|
571
|
+
const normalizedFile = _chunk7U4XF76Rcjs.toPosixPath.call(void 0, file);
|
|
572
572
|
const fileName = normalizedFile.split("/").pop() || "";
|
|
573
573
|
if (fileName === "routes.ts" || fileName === "routes.tsx" || fileName === "routes.js" || _chunkYUCU6XB4cjs.isProgrammaticRoutesFileName.call(void 0, fileName)) {
|
|
574
574
|
log(`Root routes file updated: ${fileName}`);
|
|
@@ -606,7 +606,7 @@ function farmApiPlugin(options = {}) {
|
|
|
606
606
|
log(`API router recreated`);
|
|
607
607
|
} catch (e) {
|
|
608
608
|
restoreRouteState(previousState);
|
|
609
|
-
if (e instanceof
|
|
609
|
+
if (e instanceof _chunkMQOHYV6Lcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
|
|
610
610
|
log(`Root routes.ts HMR failed: ${e.message}`);
|
|
611
611
|
}
|
|
612
612
|
return [];
|
|
@@ -634,7 +634,7 @@ function farmApiPlugin(options = {}) {
|
|
|
634
634
|
const routeModule = await _chunk25JGHAGHcjs.loadFarmDevModule.call(void 0, server, file);
|
|
635
635
|
removeEndpointsFromFile(file);
|
|
636
636
|
const availableMethods = [];
|
|
637
|
-
for (const method of
|
|
637
|
+
for (const method of _chunkWIZRYFB2cjs.API_ROUTE_METHODS) {
|
|
638
638
|
if (!routeModule[method]) continue;
|
|
639
639
|
availableMethods.push(method);
|
|
640
640
|
addEndpoint(routePath, file, method, routeModule[method]);
|
|
@@ -644,7 +644,7 @@ function farmApiPlugin(options = {}) {
|
|
|
644
644
|
log(`API router recreated`);
|
|
645
645
|
} catch (e) {
|
|
646
646
|
restoreRouteState(previousState);
|
|
647
|
-
if (e instanceof
|
|
647
|
+
if (e instanceof _chunkMQOHYV6Lcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
|
|
648
648
|
log(`API route HMR failed: ${e.message}`);
|
|
649
649
|
}
|
|
650
650
|
return [];
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkWGWWRV2Mcjs = require('./chunk-WGWWRV2M.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkKORZ6PREcjs = require('./chunk-KORZ6PRE.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
14
14
|
|
|
15
15
|
// src/client-plugin-build.ts
|
|
16
16
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
@@ -284,7 +284,7 @@ function isArrayIndex(key) {
|
|
|
284
284
|
// src/plugin-server-runtime.ts
|
|
285
285
|
function hasFarmServerRuntimePlugins(plugins) {
|
|
286
286
|
return (plugins || []).some((plugin) => {
|
|
287
|
-
if (
|
|
287
|
+
if (_chunkWGWWRV2Mcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) === false) return false;
|
|
288
288
|
return Boolean(
|
|
289
289
|
plugin.setup || plugin.init || plugin.ready || plugin.shutdown || plugin.runtime || plugin.router || plugin.render || plugin.beforeRouteMatch || plugin.afterRouteMatch || plugin.beforeRender || plugin.afterRender || plugin.onError || plugin.transformHTML
|
|
290
290
|
);
|
|
@@ -354,11 +354,11 @@ async function loadTailwindVitePlugin(options = {}, importTailwind = () => impor
|
|
|
354
354
|
try {
|
|
355
355
|
const tailwindVite = (await importTailwind()).default;
|
|
356
356
|
const plugin = options.builder ? adaptTailwindVitePlugin(tailwindVite(), options.builder) : tailwindVite();
|
|
357
|
-
if (options.announce)
|
|
357
|
+
if (options.announce) _chunk7U4XF76Rcjs.logger.info("\u{1F4E6} Enabled built-in Tailwind support (@tailwindcss/vite)");
|
|
358
358
|
return plugin;
|
|
359
359
|
} catch (error) {
|
|
360
360
|
if (_chunkKORZ6PREcjs.isMissingPackageError.call(void 0, error, "@tailwindcss/vite")) return createMissingTailwindPlugin();
|
|
361
|
-
|
|
361
|
+
_chunk7U4XF76Rcjs.logger.warn(
|
|
362
362
|
`Tailwind plugin auto-enable failed${options.label ? ` ${options.label}` : ""}; continuing without it: ${error.message}`
|
|
363
363
|
);
|
|
364
364
|
return void 0;
|
|
@@ -378,7 +378,7 @@ function createMissingTailwindPlugin() {
|
|
|
378
378
|
}
|
|
379
379
|
warnedMissingTailwind = true;
|
|
380
380
|
const file = _path2.default.relative(root, id.split("?", 1)[0]).replace(/\\/g, "/");
|
|
381
|
-
|
|
381
|
+
_chunk7U4XF76Rcjs.logger.warn(
|
|
382
382
|
`${file} imports Tailwind CSS, but @tailwindcss/vite is not installed; continuing without Tailwind. ${TAILWIND_VITE_INSTALL_HINT}`
|
|
383
383
|
);
|
|
384
384
|
return null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveFarmAppClientEntry,
|
|
3
3
|
resolveFarmClientPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RPA45OQS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveFarmPlatform
|
|
7
7
|
} from "./chunk-SMUW7UST.mjs";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
collectSSGPages,
|
|
10
10
|
matchSSGPage,
|
|
11
11
|
resolveRouteRenderingConfigFromFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YN3YMSKD.mjs";
|
|
13
13
|
import {
|
|
14
14
|
appendFarmHead,
|
|
15
15
|
classifyFarmDocumentPrefix,
|
|
@@ -45,10 +45,10 @@ import {
|
|
|
45
45
|
stripRouteGroups,
|
|
46
46
|
takeFarmHoistedHead,
|
|
47
47
|
takeFarmNavigationOutlet
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-3K2E55BJ.mjs";
|
|
49
49
|
import {
|
|
50
50
|
listFarmMCPLlmsTxtLinks
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-3JQBQG7K.mjs";
|
|
52
52
|
import {
|
|
53
53
|
FARM_DEFAULT_MCP_PATH,
|
|
54
54
|
collectFarmDefaultMCPPages,
|
|
@@ -56,19 +56,19 @@ import {
|
|
|
56
56
|
farmConfigMountsMCP,
|
|
57
57
|
isFarmDefaultMCPPathname,
|
|
58
58
|
resolveFarmDefaultMCPServer
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-HR4N2K4V.mjs";
|
|
60
60
|
import {
|
|
61
61
|
createFarmMetadataImageResponse
|
|
62
62
|
} from "./chunk-HONTCUK6.mjs";
|
|
63
|
+
import {
|
|
64
|
+
installFarmIslandValues,
|
|
65
|
+
uninstallFarmIslandValues
|
|
66
|
+
} from "./chunk-7KDCVSTR.mjs";
|
|
63
67
|
import {
|
|
64
68
|
getFarmFormState,
|
|
65
69
|
handleFarmFormActionRequest,
|
|
66
70
|
renderFarmFormStateScript
|
|
67
71
|
} from "./chunk-7FQFK3OA.mjs";
|
|
68
|
-
import {
|
|
69
|
-
installFarmIslandValues,
|
|
70
|
-
uninstallFarmIslandValues
|
|
71
|
-
} from "./chunk-7KDCVSTR.mjs";
|
|
72
72
|
import {
|
|
73
73
|
FarmSourceSnapshotStore,
|
|
74
74
|
collectFarmRenderedClientModules,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
traceFarmSourceReads,
|
|
96
96
|
usesFarmServerTree,
|
|
97
97
|
withFarmSourceSnapshot
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-MDEFTF63.mjs";
|
|
99
99
|
import {
|
|
100
100
|
FARM_ISLAND_REPLAYABLE_SELECTOR
|
|
101
101
|
} from "./chunk-S32PDOLO.mjs";
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
resolveFarmAgentCrawlers,
|
|
123
123
|
resolveFarmAgentSitemap,
|
|
124
124
|
resolveFarmPerformanceConfig
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-SLEHAGGV.mjs";
|
|
126
126
|
import {
|
|
127
127
|
collectFarmLlmsTxtPages,
|
|
128
128
|
createFarmDefaultLlmsTxt,
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
renderFarmLlmsFullTxt,
|
|
133
133
|
resolveFarmAgentOrigin,
|
|
134
134
|
resolveFarmLlmsTxtConfig
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-XGL42MQ7.mjs";
|
|
136
136
|
import {
|
|
137
137
|
createFarmCspNonce,
|
|
138
138
|
createFarmCspNonceRewriter,
|
|
@@ -144,10 +144,6 @@ import {
|
|
|
144
144
|
import {
|
|
145
145
|
resolveFarmServerComponentsMode
|
|
146
146
|
} from "./chunk-4QENVMG7.mjs";
|
|
147
|
-
import {
|
|
148
|
-
getFarmAppDirectories,
|
|
149
|
-
getFarmSourceRoots
|
|
150
|
-
} from "./chunk-4STJ6LGR.mjs";
|
|
151
147
|
import {
|
|
152
148
|
assertFarmRendererStreamingRuntime,
|
|
153
149
|
getFarmRendererCapabilities,
|
|
@@ -161,22 +157,26 @@ import {
|
|
|
161
157
|
resolveFarmRendererAppSetup,
|
|
162
158
|
resolveFarmRendererModule
|
|
163
159
|
} from "./chunk-GCRT6GJG.mjs";
|
|
160
|
+
import {
|
|
161
|
+
getFarmAppDirectories,
|
|
162
|
+
getFarmSourceRoots
|
|
163
|
+
} from "./chunk-4STJ6LGR.mjs";
|
|
164
164
|
import {
|
|
165
165
|
resolveFarmImageConfig
|
|
166
166
|
} from "./chunk-AOIUYHPH.mjs";
|
|
167
167
|
import {
|
|
168
168
|
resolveCronConfig
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-ATISIC6G.mjs";
|
|
170
170
|
import {
|
|
171
171
|
resolveServerActionsConfig
|
|
172
172
|
} from "./chunk-NLATR3T3.mjs";
|
|
173
173
|
import {
|
|
174
174
|
createFarmMarkdownRouteModuleFromFile,
|
|
175
175
|
loadFarmMdxComponents
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-Q4YEAWUK.mjs";
|
|
177
177
|
import {
|
|
178
178
|
isFarmMarkdownPageFile
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-MUZHULW2.mjs";
|
|
180
180
|
import {
|
|
181
181
|
resolveFarmMdxComponentsModulePath,
|
|
182
182
|
resolveMdxConfig
|
|
@@ -189,10 +189,10 @@ import {
|
|
|
189
189
|
farmRequestWantsMarkdown,
|
|
190
190
|
getFarmMarkdownAlternatePath,
|
|
191
191
|
resolveMarkdownConfig
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-YU2MNIIY.mjs";
|
|
193
193
|
import {
|
|
194
194
|
resolveWorkflowsConfig
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-COTFX4GT.mjs";
|
|
196
196
|
import {
|
|
197
197
|
resolveFarmThemeConfig
|
|
198
198
|
} from "./chunk-YWPNIYUP.mjs";
|
|
@@ -200,10 +200,10 @@ import {
|
|
|
200
200
|
getIntegrationProviders,
|
|
201
201
|
getRegisteredIntegrationAPIManifest,
|
|
202
202
|
isFarmIntegrationProviderComponentReference
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-6JWXHPVR.mjs";
|
|
204
204
|
import {
|
|
205
205
|
initStorage
|
|
206
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-QBJ6N5MT.mjs";
|
|
207
207
|
import {
|
|
208
208
|
resolveFarmRouteContext,
|
|
209
209
|
withFarmRouteContext
|
|
@@ -211,7 +211,7 @@ import {
|
|
|
211
211
|
import {
|
|
212
212
|
createRouteSlotContainerId,
|
|
213
213
|
parseRouteSlotFile
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-CYRO3WP4.mjs";
|
|
215
215
|
import {
|
|
216
216
|
_clearCurrentMiddlewareContext,
|
|
217
217
|
_clearCurrentMiddlewareData,
|
|
@@ -221,7 +221,7 @@ import {
|
|
|
221
221
|
import {
|
|
222
222
|
findProgrammaticRouteFiles,
|
|
223
223
|
loadProgrammaticRouteManifests
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-URBP6DLH.mjs";
|
|
225
225
|
import {
|
|
226
226
|
_runWithFarmI18nRequest,
|
|
227
227
|
_setDefaultFarmI18nRuntime,
|
|
@@ -250,16 +250,16 @@ import {
|
|
|
250
250
|
configureFarmCache,
|
|
251
251
|
getFarmDataCache,
|
|
252
252
|
normalizeRevalidatePath
|
|
253
|
-
} from "./chunk-
|
|
253
|
+
} from "./chunk-FS55CNTC.mjs";
|
|
254
254
|
import {
|
|
255
255
|
sendWebResponse
|
|
256
256
|
} from "./chunk-O5QUJEWT.mjs";
|
|
257
|
-
import {
|
|
258
|
-
toFileModuleUrl
|
|
259
|
-
} from "./chunk-VHIXGZYH.mjs";
|
|
260
257
|
import {
|
|
261
258
|
loadFarmDevModule
|
|
262
259
|
} from "./chunk-7H2TXT2K.mjs";
|
|
260
|
+
import {
|
|
261
|
+
toFileModuleUrl
|
|
262
|
+
} from "./chunk-VHIXGZYH.mjs";
|
|
263
263
|
import {
|
|
264
264
|
resolveFarmI18nConfig
|
|
265
265
|
} from "./chunk-VJSXPN3W.mjs";
|
|
@@ -276,7 +276,7 @@ import {
|
|
|
276
276
|
splitRoutePath,
|
|
277
277
|
toRootRelativeUrlPath,
|
|
278
278
|
toViteModuleId
|
|
279
|
-
} from "./chunk-
|
|
279
|
+
} from "./chunk-U6GMCDRS.mjs";
|
|
280
280
|
import {
|
|
281
281
|
resolveFarmAPIServerBasePath
|
|
282
282
|
} from "./chunk-2I6PUKWJ.mjs";
|
|
@@ -295,10 +295,10 @@ import {
|
|
|
295
295
|
import {
|
|
296
296
|
configureFarmObservability,
|
|
297
297
|
emitFarmEvent
|
|
298
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-EILUVBKS.mjs";
|
|
299
299
|
import {
|
|
300
300
|
FARM_VERSION
|
|
301
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-JGEN2FIT.mjs";
|
|
302
302
|
import {
|
|
303
303
|
_setFarmSearchPreserveRoutes
|
|
304
304
|
} from "./chunk-VDQZV6BX.mjs";
|
|
@@ -6062,7 +6062,7 @@ window.__FARM_I18N__ = ${i18nSnapshot ? serializeInlineValue(i18nSnapshot) : "nu
|
|
|
6062
6062
|
const server = this.getDefaultMCPServer();
|
|
6063
6063
|
const request2 = getCurrentRequestOrNull() ?? createWebRequestFromFarmRequest(req, { trustProxy: this.config.server?.trustProxy });
|
|
6064
6064
|
try {
|
|
6065
|
-
const { handleFarmDefaultMCPRequest } = await import("./agent-mcp-handler-
|
|
6065
|
+
const { handleFarmDefaultMCPRequest } = await import("./agent-mcp-handler-GDY5CPPW.mjs");
|
|
6066
6066
|
const origin = new URL(request2.url).origin;
|
|
6067
6067
|
const i18n = this.i18nRuntime?.config;
|
|
6068
6068
|
const metadataBase = await this.getRootMetadataBase();
|
|
@@ -8068,6 +8068,35 @@ async function readFarmNavigationStream(body, flushToken) {
|
|
|
8068
8068
|
cancel: function() { reader.cancel().catch(function() {}); },
|
|
8069
8069
|
};
|
|
8070
8070
|
}`;
|
|
8071
|
+
var FARM_EARLY_NAVIGATION_SOURCE = `// The request the boot script sent for a link clicked before the router ran (islands-boot.ts).
|
|
8072
|
+
// The next navigation request takes its response when it is the same request, and aborts it
|
|
8073
|
+
// otherwise. The held island values may differ: a response for fewer of them carries more values,
|
|
8074
|
+
// which fits any page. As with a prefetched page, a response sent over 30 seconds ago is not used.
|
|
8075
|
+
function takeFarmEarlyNavigation(url, headers, signal) {
|
|
8076
|
+
const early = window.__FARM_EARLY_NAVIGATION__;
|
|
8077
|
+
if (!early) return null;
|
|
8078
|
+
window.__FARM_EARLY_NAVIGATION__ = undefined;
|
|
8079
|
+
const target = new URL(url, window.location.href);
|
|
8080
|
+
const requested = new URL(early.url, window.location.href);
|
|
8081
|
+
target.hash = "";
|
|
8082
|
+
requested.hash = "";
|
|
8083
|
+
let same = target.href === requested.href && Date.now() - early.at <= 30000 && !(signal && signal.aborted);
|
|
8084
|
+
const names = new Set(Object.keys(early.headers));
|
|
8085
|
+
headers.forEach(function(value, name) { names.add(name); });
|
|
8086
|
+
names.forEach(function(name) {
|
|
8087
|
+
const sent = Object.prototype.hasOwnProperty.call(early.headers, name) ? early.headers[name] : null;
|
|
8088
|
+
// A whole page answers a request for a streamed one, as a response without flush markers is
|
|
8089
|
+
// all shell. The boot asks for it whole from under a layout that hydrates as one root.
|
|
8090
|
+
if (name === "f-values" || (name === "f-stream" && sent === null)) return;
|
|
8091
|
+
if (sent !== headers.get(name)) same = false;
|
|
8092
|
+
});
|
|
8093
|
+
if (!same) {
|
|
8094
|
+
early.controller.abort();
|
|
8095
|
+
return null;
|
|
8096
|
+
}
|
|
8097
|
+
if (signal) signal.addEventListener("abort", function() { early.controller.abort(); }, { once: true });
|
|
8098
|
+
return early.response;
|
|
8099
|
+
}`;
|
|
8071
8100
|
|
|
8072
8101
|
// src/client/refresh-fields.ts
|
|
8073
8102
|
var FARM_REFRESH_FIELDS_SOURCE = `// The server-rendered fields of a tree: islands keep their own.
|
|
@@ -8555,6 +8584,7 @@ export {
|
|
|
8555
8584
|
FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE,
|
|
8556
8585
|
FARM_NAVIGATION_SCRIPT_SOURCE,
|
|
8557
8586
|
FARM_NAVIGATION_STREAM_READER_SOURCE,
|
|
8587
|
+
FARM_EARLY_NAVIGATION_SOURCE,
|
|
8558
8588
|
FARM_REFRESH_FIELDS_SOURCE,
|
|
8559
8589
|
exactIdPattern,
|
|
8560
8590
|
fileNamePattern,
|
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
_listFarmRegisteredMCPServers
|
|
3
3
|
} from "./chunk-F7MJWW6A.mjs";
|
|
4
4
|
import {
|
|
5
|
+
_withFarmToolCallPayload,
|
|
5
6
|
emitFarmEvent
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EILUVBKS.mjs";
|
|
7
8
|
import {
|
|
8
9
|
applyFarmBasePath,
|
|
9
10
|
stripFarmBasePath
|
|
@@ -81,8 +82,9 @@ async function _readFarmRegisteredMCPCalls(request, basePath) {
|
|
|
81
82
|
if (!isObject(message) || message.method !== "tools/call" || !isRequestId(message.id)) {
|
|
82
83
|
return [];
|
|
83
84
|
}
|
|
84
|
-
const
|
|
85
|
-
|
|
85
|
+
const params = isObject(message.params) ? message.params : void 0;
|
|
86
|
+
const tool = params?.name;
|
|
87
|
+
return typeof tool === "string" && TOOL_NAME.test(tool) ? [{ id: message.id, tool, arguments: params?.arguments }] : [];
|
|
86
88
|
});
|
|
87
89
|
return calls.length ? { server, calls, startedAt } : void 0;
|
|
88
90
|
}
|
|
@@ -102,22 +104,31 @@ function _observeFarmRegisteredMCPResponse(response, observed, waitUntil) {
|
|
|
102
104
|
});
|
|
103
105
|
}
|
|
104
106
|
async function reportOutcomes(body, eventStream, { server, calls, startedAt }) {
|
|
105
|
-
const pending = new Map(calls.map((call) => [call.id, call
|
|
107
|
+
const pending = new Map(calls.map((call) => [call.id, call]));
|
|
106
108
|
const answer = (message) => {
|
|
107
109
|
if (!isObject(message) || !isRequestId(message.id) || !isObject(message.result)) return;
|
|
108
|
-
const
|
|
109
|
-
if (
|
|
110
|
+
const call = pending.get(message.id);
|
|
111
|
+
if (call === void 0) return;
|
|
110
112
|
pending.delete(message.id);
|
|
111
113
|
const outcome = message.result.isError === true ? "error" : "success";
|
|
112
|
-
emitFarmEvent(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
114
|
+
emitFarmEvent(
|
|
115
|
+
// Only Farm Infra analytics reads the arguments and result, never logs or traces.
|
|
116
|
+
_withFarmToolCallPayload(
|
|
117
|
+
{
|
|
118
|
+
type: "mcp.tool.complete",
|
|
119
|
+
level: outcome === "error" ? "error" : "info",
|
|
120
|
+
route: server.path,
|
|
121
|
+
server: server.name,
|
|
122
|
+
tool: call.tool,
|
|
123
|
+
outcome,
|
|
124
|
+
durationMs: Math.max(0, performance.now() - startedAt)
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
...call.arguments === void 0 ? {} : { arguments: call.arguments },
|
|
128
|
+
result: message.result
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
);
|
|
121
132
|
};
|
|
122
133
|
const reader = body.getReader();
|
|
123
134
|
const decoder = new TextDecoder();
|