@farm.js/core 0.1.78 → 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/{agent-mcp-handler-EDJNU224.mjs → agent-mcp-handler-GDY5CPPW.mjs} +5 -5
- package/dist/{agent-mcp-handler-LNBYLRTZ.cjs → agent-mcp-handler-IUL6OPC3.cjs} +6 -6
- package/dist/{agent-mcp.d-BErtnhV2.d.ts → agent-mcp.d-BPa5n0ld.d.ts} +1 -1
- package/dist/{agent-mcp.d-CYHfcjur.d.mts → agent-mcp.d-DOP95Jxm.d.mts} +1 -1
- package/dist/agent-runtime.cjs +2 -2
- package/dist/agent-runtime.d.mts +4 -4
- package/dist/agent-runtime.d.ts +4 -4
- package/dist/agent-runtime.mjs +1 -1
- package/dist/{analyzer-M2BG6QYU.mjs → analyzer-F7CWE5VA.mjs} +2 -2
- package/dist/analyzer-I7RBBQ65.cjs +16 -0
- package/dist/api/node.cjs +6 -6
- package/dist/api/node.d.mts +6 -6
- package/dist/api/node.d.ts +6 -6
- package/dist/api/node.mjs +5 -5
- package/dist/api/route-manager.cjs +8 -8
- package/dist/api/route-manager.d.mts +6 -6
- package/dist/api/route-manager.d.ts +6 -6
- package/dist/api/route-manager.mjs +7 -7
- package/dist/api/runtime.cjs +5 -5
- package/dist/api/runtime.d.mts +5 -5
- package/dist/api/runtime.d.ts +5 -5
- package/dist/api/runtime.mjs +4 -4
- package/dist/api.cjs +10 -10
- package/dist/api.d.mts +7 -7
- package/dist/api.d.ts +7 -7
- package/dist/api.mjs +9 -9
- package/dist/{app-manifest.d-6NCkLQ1y.d.mts → app-manifest.d-9UD6BznX.d.mts} +1 -1
- package/dist/{app-manifest.d-DuqLBcmi.d.ts → app-manifest.d-CO6Iu0Hx.d.ts} +1 -1
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +5 -5
- package/dist/app-markdown.d.ts +5 -5
- package/dist/app-markdown.mjs +4 -4
- package/dist/{app.d-Dk2HkvPh.d.mts → app.d-DXeRWZK7.d.mts} +4 -4
- package/dist/{app.d-Bz6vYBFF.d.ts → app.d-DwX1ePhs.d.ts} +4 -4
- package/dist/cache.cjs +3 -3
- package/dist/cache.mjs +2 -2
- package/dist/{chunk-QYOAGT3E.cjs → chunk-2BEGVSDF.cjs} +6 -5
- package/dist/{chunk-4SLHSODZ.cjs → chunk-2FK47RRZ.cjs} +13 -13
- package/dist/{chunk-2YJ4DHTD.cjs → chunk-2NOHVIJ3.cjs} +2 -2
- package/dist/{chunk-GDM3ZD2O.cjs → chunk-2OFP3IVA.cjs} +5 -1
- package/dist/{chunk-B3IRRANH.mjs → chunk-2RRTOKRZ.mjs} +1 -1
- package/dist/{chunk-PNWRH6TR.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-R77D7TCZ.mjs → chunk-44G4XHEL.mjs} +13 -6
- package/dist/{chunk-6XDDE7M6.cjs → chunk-4H4ZXUNB.cjs} +3 -3
- package/dist/{chunk-LIC6CMLB.mjs → chunk-4MIDUSIX.mjs} +13 -13
- package/dist/{chunk-F4ID7BGO.cjs → chunk-4OFWG4IK.cjs} +7 -7
- package/dist/{chunk-VRI43FDN.mjs → chunk-4WXNTAOM.mjs} +1 -1
- package/dist/{chunk-5KISFWD2.cjs → chunk-5OAN7BG5.cjs} +12 -12
- package/dist/{chunk-DPBQRDWW.cjs → chunk-5VDJEKGK.cjs} +3 -3
- package/dist/{chunk-CYNQPKA4.cjs → chunk-5ZHC6QGD.cjs} +2 -2
- package/dist/{chunk-ALEUMLJN.mjs → chunk-67JTJCAS.mjs} +3 -2
- package/dist/{chunk-CBP7AKZH.mjs → chunk-6GJZJAED.mjs} +1 -1
- package/dist/{chunk-K3ZELA6U.cjs → chunk-7DD5TNPS.cjs} +8 -8
- package/dist/{chunk-GC5ROI3A.cjs → chunk-7U4XF76R.cjs} +1 -1
- package/dist/{chunk-62DZHPDK.cjs → chunk-7YLDUB4R.cjs} +10 -10
- package/dist/{chunk-ZEWIWAS2.mjs → chunk-A5D3UMLJ.mjs} +1 -1
- package/dist/{chunk-NNGBTJCX.cjs → chunk-ANZLZNNX.cjs} +83 -25
- package/dist/{chunk-CSAIIMY3.mjs → chunk-ATISIC6G.mjs} +1 -1
- package/dist/{chunk-ZCYGYIC2.cjs → chunk-AXA2BSX3.cjs} +2 -2
- package/dist/{chunk-BNCKXPCU.cjs → chunk-BIAGSYIZ.cjs} +30 -30
- package/dist/{chunk-X2SEYK7I.mjs → chunk-BPWTSPK6.mjs} +3 -3
- package/dist/{chunk-LMXGCFAM.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-OGVOKAQU.mjs → chunk-COTFX4GT.mjs} +1 -1
- package/dist/{chunk-RK4MGL6Q.mjs → chunk-CYRO3WP4.mjs} +4 -3
- package/dist/{chunk-2G6JPLSL.cjs → chunk-DVHFIETW.cjs} +25 -18
- package/dist/{chunk-F35C3TJZ.mjs → chunk-E4E4Y5FD.mjs} +1 -1
- package/dist/{chunk-VCW6BR6U.mjs → chunk-EG5YBYHO.mjs} +2 -2
- package/dist/{chunk-2DA7CLY7.mjs → chunk-EILUVBKS.mjs} +14 -0
- package/dist/{chunk-XT2CHTDN.mjs → chunk-EY7ED5UW.mjs} +3 -3
- package/dist/{chunk-ZO6TOLHL.mjs → chunk-FS55CNTC.mjs} +1 -1
- package/dist/{chunk-DD2ANOEF.cjs → chunk-G4SZC2WH.cjs} +589 -472
- package/dist/{chunk-H5OVJHXY.cjs → chunk-GAWSWJJ2.cjs} +27 -27
- package/dist/{chunk-CKNZJFK5.cjs → chunk-GBESKA76.cjs} +3 -3
- package/dist/{chunk-EBFTAVGD.mjs → chunk-GBW5DU7V.mjs} +327 -210
- 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-VRJAMU34.mjs → chunk-JGEN2FIT.mjs} +1 -1
- package/dist/{chunk-QES76U42.mjs → chunk-K3XKEZR6.mjs} +3 -3
- package/dist/{chunk-LPXJEZJK.mjs → chunk-KCJBIWBM.mjs} +2 -2
- package/dist/{chunk-7JTVN6IJ.mjs → chunk-KEU55O2D.mjs} +1 -1
- package/dist/{chunk-5REIO5DT.mjs → chunk-KKVRWNDH.mjs} +3 -3
- package/dist/{chunk-NSNQLBHR.cjs → chunk-KMGHXIDA.cjs} +2 -2
- package/dist/{chunk-Z2FFLTF5.mjs → chunk-LTXKRIST.mjs} +2 -2
- package/dist/{chunk-F7PKUP6P.cjs → chunk-LVGB5PYK.cjs} +27 -27
- package/dist/{chunk-7RQ5KAK6.mjs → chunk-MDEFTF63.mjs} +69 -14
- package/dist/{chunk-IWGGRXD2.cjs → chunk-MHKPXX3J.cjs} +2 -2
- package/dist/{chunk-5DREJN4G.cjs → chunk-MQOHYV6L.cjs} +15 -15
- 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-WJ4NUY2H.mjs → chunk-NJ4OASLP.mjs} +4 -4
- package/dist/{chunk-EVVV2XZ2.cjs → chunk-NW3DL2PM.cjs} +53 -7
- 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-IGE5BAWK.mjs → chunk-QBJ6N5MT.mjs} +53 -7
- package/dist/{chunk-PKXGFQZS.mjs → chunk-QD34VE4N.mjs} +1 -1
- package/dist/{chunk-S6RUJRWI.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-VO5XDZHK.mjs → chunk-RPA45OQS.mjs} +2 -2
- package/dist/{chunk-A37D6LOS.mjs → chunk-RQBGHHOQ.mjs} +1 -1
- package/dist/{chunk-BZJYPIFZ.cjs → chunk-SDICLSQU.cjs} +8 -8
- package/dist/{chunk-FE6KYDHC.cjs → chunk-SHDCKRP4.cjs} +3 -3
- package/dist/{chunk-DUSTJ6A5.mjs → chunk-SLEHAGGV.mjs} +2 -2
- package/dist/{chunk-26CNCIFI.cjs → chunk-T3SMMLSB.cjs} +2 -2
- package/dist/{chunk-K6DXKHFE.mjs → chunk-TE7AX6HB.mjs} +1 -1
- package/dist/{chunk-LJKTJNOF.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-E7V2GYBP.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-NB2ZEBIS.cjs → chunk-WJ2O2MPP.cjs} +287 -288
- package/dist/{chunk-HVMQAVZK.cjs → chunk-X4TSMQWF.cjs} +333 -303
- 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-FOULIN4S.cjs → chunk-XY5OZQF6.cjs} +2 -2
- package/dist/{chunk-RIMEFQYO.mjs → chunk-XZBBKZGW.mjs} +73 -74
- package/dist/{chunk-ZJGFAW5U.mjs → chunk-YHHOTKUT.mjs} +5 -1
- package/dist/{chunk-A7EJATEW.mjs → chunk-YN3YMSKD.mjs} +3 -3
- 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-KZ5BOWJS.cjs → chunk-Z4SMFUZ7.cjs} +28 -28
- package/dist/{chunk-MBD34AS5.cjs → chunk-Z5BANEQD.cjs} +6 -6
- package/dist/{chunk-AHGOHPRN.mjs → chunk-ZDYYZX73.mjs} +60 -30
- package/dist/{chunk-4PWGLPL6.mjs → chunk-ZIEO3DQ3.mjs} +26 -15
- package/dist/{chunk-XGS76V7L.cjs → chunk-ZPEZXQTM.cjs} +22 -22
- package/dist/{chunk-ODYKCC6W.cjs → chunk-ZVSQN7NC.cjs} +135 -80
- package/dist/{cli-runtime.d-BG9q2_vC.d.ts → cli-runtime.d-8BhZy_wr.d.ts} +7 -6
- package/dist/{cli-runtime.d-CGMGs1Zz.d.mts → cli-runtime.d-DPNTN-JV.d.mts} +7 -6
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-component.d-CdsG1E7p.d.mts → client-component.d-CMCdyAr8.d.mts} +1 -1
- package/dist/{client-component.d-B84GPb_u.d.ts → client-component.d-CkDcob6D.d.ts} +1 -1
- package/dist/{client-plugins.d-FptsHgls.d.ts → client-plugins.d-BYIovYqX.d.ts} +4 -4
- package/dist/{client-plugins.d-DX-iCJWE.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.cjs +3 -3
- package/dist/client.d.mts +9 -9
- package/dist/client.d.ts +9 -9
- package/dist/client.mjs +2 -2
- package/dist/config.d.mts +4 -4
- package/dist/config.d.ts +4 -4
- package/dist/cron.cjs +3 -3
- package/dist/cron.mjs +2 -2
- package/dist/desktop.d.mts +5 -5
- package/dist/desktop.d.ts +5 -5
- package/dist/{devtools-7P3OUNLV.mjs → devtools-F3FDFV26.mjs} +10 -10
- package/dist/{devtools-TMATFNUY.cjs → devtools-JJOYTIMS.cjs} +12 -12
- package/dist/docs.cjs +14 -14
- package/dist/docs.d.mts +6 -6
- package/dist/docs.d.ts +6 -6
- package/dist/docs.mjs +13 -13
- package/dist/environment/vite.cjs +5 -5
- package/dist/environment/vite.d.mts +9 -0
- package/dist/environment/vite.d.ts +9 -0
- package/dist/environment/vite.mjs +4 -4
- package/dist/{handler.d-Cy3XbY_W.d.ts → handler.d-BwdOyc9x.d.ts} +1 -1
- package/dist/{handler.d-DSwLTpa5.d.mts → handler.d-s3IM6pbJ.d.mts} +1 -1
- package/dist/{headers.d-DiL9YTH3.d.mts → headers.d-BR-OXrqQ.d.mts} +1 -1
- package/dist/{headers.d-Qbjo38a0.d.ts → headers.d-CAW4wPey.d.ts} +1 -1
- package/dist/index.cjs +65 -59
- package/dist/{index.d-CqQKX3s6.d.mts → index.d-BEVK61zS.d.mts} +1 -1
- package/dist/{index.d-OccJoC6I.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 +67 -61
- package/dist/integrations/orm.cjs +3 -3
- package/dist/integrations/orm.d.mts +4 -4
- package/dist/integrations/orm.d.ts +4 -4
- package/dist/integrations/orm.mjs +2 -2
- package/dist/integrations.cjs +2 -2
- package/dist/integrations.d.mts +4 -4
- package/dist/integrations.d.ts +4 -4
- package/dist/integrations.mjs +1 -1
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- 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 +3 -3
- package/dist/internal/build-runtime.cjs +47 -47
- package/dist/internal/build-runtime.d.mts +7 -7
- package/dist/internal/build-runtime.d.ts +7 -7
- package/dist/internal/build-runtime.mjs +46 -46
- package/dist/internal/cli-runtime.cjs +29 -26
- package/dist/internal/cli-runtime.d.mts +11 -11
- package/dist/internal/cli-runtime.d.ts +11 -11
- package/dist/internal/cli-runtime.mjs +28 -25
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +48 -11
- package/dist/internal/client-runtime.d.mts +17 -21
- package/dist/internal/client-runtime.d.ts +17 -21
- package/dist/internal/client-runtime.mjs +37 -0
- package/dist/internal/compression-runtime.d.mts +4 -4
- package/dist/internal/compression-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.cjs +12 -12
- package/dist/internal/config-runtime.d.mts +6 -6
- package/dist/internal/config-runtime.d.ts +6 -6
- package/dist/internal/config-runtime.mjs +11 -11
- package/dist/internal/infra-analytics-runtime.cjs +10 -10
- package/dist/internal/infra-analytics-runtime.mjs +8 -8
- package/dist/internal/islands-boot.cjs +33 -5
- package/dist/internal/islands-boot.d.mts +19 -1
- package/dist/internal/islands-boot.d.ts +19 -1
- package/dist/internal/islands-boot.mjs +32 -4
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +26 -26
- package/dist/internal/production-runtime.d.mts +14 -13
- package/dist/internal/production-runtime.d.ts +14 -13
- package/dist/internal/production-runtime.mjs +27 -27
- 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.d.mts +4 -4
- package/dist/internal/start-manifest.d.ts +4 -4
- package/dist/internal/vercel-edge-middleware.cjs +3 -3
- package/dist/internal/vercel-edge-middleware.mjs +2 -2
- 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/markdown.cjs +3 -3
- package/dist/markdown.d.mts +4 -4
- package/dist/markdown.d.ts +4 -4
- package/dist/markdown.mjs +2 -2
- package/dist/middleware.cjs +8 -8
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +7 -7
- package/dist/{mount.d-CPzqOm-a.d.ts → mount.d-DcoPFqv5.d.ts} +1 -1
- package/dist/{mount.d-AcJaUtHF.d.mts → mount.d-Ylo-CmzK.d.mts} +1 -1
- package/dist/{native-server-fn-handler-WYYY4YBN.mjs → native-server-fn-handler-OXFTI6V5.mjs} +4 -4
- package/dist/{native-server-fn-handler-XRTZR7SZ.cjs → native-server-fn-handler-TNVFEQW3.cjs} +5 -5
- package/dist/{native-tree-MNUFN5G6.cjs → native-tree-5TENEQ7Y.cjs} +4 -4
- package/dist/{native-tree-JDI3LJSH.mjs → native-tree-LNO7K6JR.mjs} +3 -3
- package/dist/{navigation-delegate.d-_Df9DnPY.d.ts → navigation-delegate.d-2MK4YSlL.d.ts} +1 -1
- package/dist/{navigation-delegate.d-C4i5Y39E.d.mts → navigation-delegate.d-BA5h0fbE.d.mts} +1 -1
- package/dist/navigation.cjs +4 -4
- package/dist/navigation.d.mts +7 -7
- package/dist/navigation.d.ts +7 -7
- package/dist/navigation.mjs +3 -3
- package/dist/{nitro-NUCTYEKJ.cjs → nitro-6UOJXJZ6.cjs} +7 -7
- package/dist/{nitro-VCJ6QQSI.mjs → nitro-C3MYDX7V.mjs} +3 -3
- package/dist/observability.cjs +8 -2
- package/dist/{observability.d-DdJRiaIX.d.mts → observability.d-mXSbp4jc.d.mts} +17 -1
- package/dist/{observability.d-DdJRiaIX.d.ts → 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 +7 -1
- package/dist/{plugin-TV6W7YNK.mjs → plugin-33I3V42N.mjs} +1 -1
- package/dist/{plugin-AGEFSU7K.cjs → plugin-LN3JBZRR.cjs} +2 -2
- package/dist/plugin.cjs +37 -37
- package/dist/plugin.d.mts +8 -8
- package/dist/plugin.d.ts +8 -8
- package/dist/plugin.mjs +36 -36
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +1 -1
- package/dist/{render-plan.d-CslZE7o7.d.ts → render-plan.d-2o-AG-ot.d.ts} +1 -1
- package/dist/{render-plan.d-4V_NmaA6.d.mts → render-plan.d-ChYBMhLu.d.mts} +1 -1
- package/dist/renderer-client.cjs +4 -4
- package/dist/renderer-client.d.mts +7 -7
- package/dist/renderer-client.d.ts +7 -7
- package/dist/renderer-client.mjs +1 -1
- package/dist/renderer.d.mts +16 -1
- package/dist/renderer.d.ts +16 -1
- package/dist/{request.d-CbV3y7j3.d.ts → request.d-CE0FIkiM.d.ts} +1 -1
- package/dist/{request.d-CmLTxEgS.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/{route-rendering.d-CETnXNez.d.ts → route-rendering.d-BTPOM2nU.d.ts} +1 -1
- package/dist/{route-rendering.d-CmoqfOmj.d.mts → route-rendering.d-BZJnfKsp.d.mts} +1 -1
- package/dist/{router.d-Dga3N5YO.d.ts → router.d-BU_WE6Ol.d.ts} +1 -1
- package/dist/{router.d-ktz7pwYm.d.mts → router.d-D8Vvwl4i.d.mts} +1 -1
- package/dist/routes.cjs +4 -4
- package/dist/routes.d.mts +4 -4
- package/dist/routes.d.ts +4 -4
- package/dist/routes.mjs +3 -3
- package/dist/{rsc-pipeline-JLYD26AR.cjs → rsc-pipeline-A3R4U26C.cjs} +15 -15
- package/dist/{rsc-pipeline-N7CWJW7T.mjs → rsc-pipeline-JZWVSHOR.mjs} +14 -14
- package/dist/{runtime-QXX2A4TS.mjs → runtime-SQFRHRGJ.mjs} +18 -18
- package/dist/{runtime-F5NSS4DD.cjs → runtime-WZ3CHHGJ.cjs} +26 -26
- package/dist/{runtime.d-DuaXEM0p.d.mts → runtime.d-BnmuOXVD.d.mts} +1 -1
- package/dist/{runtime.d-BWLZUOfA.d.ts → runtime.d-DJ6IIKcF.d.ts} +1 -1
- package/dist/{schema-dev-notice-2GN5V7Y2.mjs → schema-dev-notice-EUPAUJVN.mjs} +2 -2
- package/dist/{schema-dev-notice-6VCOZGG2.cjs → schema-dev-notice-ZSCL47CT.cjs} +5 -5
- package/dist/search-client-A7YJT7JZ.cjs +15 -0
- package/dist/{search-client-W4PEFAQB.mjs → search-client-GIXIEU75.mjs} +1 -1
- package/dist/{server-components-status.d-C5JpC7_Y.d.ts → server-components-status.d-BeqSXcjM.d.ts} +1 -1
- package/dist/{server-components-status.d-CqxtJmqP.d.mts → server-components-status.d-BzOg9M8g.d.mts} +1 -1
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.d.mts +6 -6
- package/dist/server-plugins.d.ts +6 -6
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +73 -73
- package/dist/server.d.mts +15 -15
- package/dist/server.d.ts +15 -15
- package/dist/server.mjs +47 -47
- package/dist/{session-AK2OA5UZ.mjs → session-4IB34X35.mjs} +2 -2
- package/dist/session-MOYQJ7E6.cjs +24 -0
- package/dist/{spa-router.d-C3LzwTlY.d.ts → spa-router.d-BOwuVkMl.d.ts} +20 -4
- package/dist/{spa-router.d-BLE188EL.d.mts → spa-router.d-CDpftSsk.d.mts} +20 -4
- package/dist/{ssg.d-DisOfj0I.d.ts → ssg.d-BTVqyq8T.d.ts} +2 -2
- package/dist/{ssg.d-QrFyU6T4.d.mts → ssg.d-Bx_WFuwg.d.mts} +2 -2
- package/dist/storage.cjs +2 -2
- package/dist/storage.d.mts +112 -96
- package/dist/storage.d.ts +112 -96
- package/dist/storage.mjs +1 -1
- package/dist/testing.cjs +11 -11
- package/dist/testing.d.mts +4 -4
- package/dist/testing.d.ts +4 -4
- package/dist/testing.mjs +8 -8
- package/dist/{types.d-DW2vyaUq.d.mts → types.d-C5hlNbHa.d.mts} +8 -1
- package/dist/{types.d-DW2vyaUq.d.ts → types.d-C5hlNbHa.d.ts} +8 -1
- package/dist/{utils.d-BlWZFgdL.d.mts → utils.d-JkrpS-NJ.d.mts} +1 -1
- package/dist/{utils.d-7YcgfTCK.d.ts → utils.d-_dvevm5s.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +39 -37
- package/dist/vite.d.mts +15 -10
- package/dist/vite.d.ts +15 -10
- package/dist/vite.mjs +38 -36
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +7 -1
- package/types/images.d.ts +9 -0
- package/dist/analyzer-KVTUYGTT.cjs +0 -16
- package/dist/search-client-6NVC6HM2.cjs +0 -15
- package/dist/session-H4TWP73H.cjs +0 -24
- package/dist/{chunk-GFXKO4UW.mjs → chunk-3XTRT3MB.mjs} +48 -48
- package/dist/{chunk-JKFN3YVG.mjs → chunk-6JWXHPVR.mjs} +0 -0
- package/dist/{chunk-522K362I.mjs → chunk-C2OLXVUC.mjs} +0 -0
- package/dist/{chunk-MALGIHIC.cjs → chunk-HS4JPIGR.cjs} +0 -0
- package/dist/{chunk-CUZT7474.cjs → chunk-TCMRLW3K.cjs} +0 -0
- package/dist/{chunk-Q3DO7MVK.mjs → chunk-URBP6DLH.mjs} +0 -0
- package/dist/{chunk-AOTD2N5P.cjs → chunk-WGWWRV2M.cjs} +0 -0
- package/dist/{chunk-L7Y65BQU.cjs → chunk-WHEQJN4G.cjs} +48 -48
|
@@ -6,11 +6,12 @@ import {
|
|
|
6
6
|
resolveFarmServerComponentsMode
|
|
7
7
|
} from "./chunk-4QENVMG7.mjs";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-4STJ6LGR.mjs";
|
|
11
|
-
import {
|
|
9
|
+
getFarmRendererComponentExtensions,
|
|
12
10
|
isReactRenderer
|
|
13
11
|
} from "./chunk-GCRT6GJG.mjs";
|
|
12
|
+
import {
|
|
13
|
+
getFarmSourceRoots
|
|
14
|
+
} from "./chunk-4STJ6LGR.mjs";
|
|
14
15
|
import {
|
|
15
16
|
PROGRAMMATIC_ROUTE_FILE_NAMES,
|
|
16
17
|
getProgrammaticRouteDefinitionSource,
|
|
@@ -18,10 +19,10 @@ import {
|
|
|
18
19
|
} from "./chunk-DZXD6CYJ.mjs";
|
|
19
20
|
import {
|
|
20
21
|
logger
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-U6GMCDRS.mjs";
|
|
22
23
|
import {
|
|
23
24
|
FARM_VERSION
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JGEN2FIT.mjs";
|
|
25
26
|
|
|
26
27
|
// src/environment-vite.ts
|
|
27
28
|
import { existsSync, readFileSync, realpathSync } from "fs";
|
|
@@ -2337,6 +2338,41 @@ function readIfExists(filePath) {
|
|
|
2337
2338
|
(content) => content !== null
|
|
2338
2339
|
);
|
|
2339
2340
|
}
|
|
2341
|
+
var MARKDOWN_MODULE = /\.mdx?$/i;
|
|
2342
|
+
function readModuleCode(filePath) {
|
|
2343
|
+
const content = readIfExists(filePath);
|
|
2344
|
+
if (content === null || !MARKDOWN_MODULE.test(filePath)) return content;
|
|
2345
|
+
return memoizeInFarmSourceSnapshot("markdown-code", content, () => scanMarkdownCode(content));
|
|
2346
|
+
}
|
|
2347
|
+
function scanMarkdownCode(content) {
|
|
2348
|
+
const lines = content.split(/\r?\n/);
|
|
2349
|
+
const code = [];
|
|
2350
|
+
let index = 0;
|
|
2351
|
+
if (/^---\s*$/.test(lines[0] ?? "")) {
|
|
2352
|
+
const end = lines.findIndex((line, lineIndex) => lineIndex > 0 && /^---\s*$/.test(line));
|
|
2353
|
+
if (end > 0) index = end + 1;
|
|
2354
|
+
}
|
|
2355
|
+
let fence = null;
|
|
2356
|
+
let inCode = false;
|
|
2357
|
+
for (; index < lines.length; index++) {
|
|
2358
|
+
const line = lines[index];
|
|
2359
|
+
const marker = /^ {0,3}(`{3,}|~{3,})/.exec(line)?.[1];
|
|
2360
|
+
if (fence) {
|
|
2361
|
+
if (marker?.[0] === fence[0] && marker.length >= fence.length && line.trim() === marker) {
|
|
2362
|
+
fence = null;
|
|
2363
|
+
}
|
|
2364
|
+
} else if (inCode) {
|
|
2365
|
+
inCode = line.trim() !== "";
|
|
2366
|
+
code.push(line);
|
|
2367
|
+
} else if (marker) {
|
|
2368
|
+
fence = marker;
|
|
2369
|
+
} else if (/^(?:import|export)(?=[\s{*])/.test(line)) {
|
|
2370
|
+
inCode = true;
|
|
2371
|
+
code.push(line);
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
return code.join("\n");
|
|
2375
|
+
}
|
|
2340
2376
|
function readSourceFile(filePath) {
|
|
2341
2377
|
const content = readSourceFileContents(filePath);
|
|
2342
2378
|
if (content !== null) noteFarmSourceRead(filePath);
|
|
@@ -3157,11 +3193,12 @@ function findParserSensitiveJsxContainer(content, localBindings) {
|
|
|
3157
3193
|
for (let index = 0; index < tokens.length - 1; index++) {
|
|
3158
3194
|
if (tokens[index].value !== "<") continue;
|
|
3159
3195
|
if (tokens[index + 1].value === "/") {
|
|
3160
|
-
const closing = tokens[index + 2]
|
|
3161
|
-
const at = closing ? open.lastIndexOf(closing) : -1;
|
|
3196
|
+
const closing = tokens[index + 2];
|
|
3197
|
+
const at = closing?.kind === "identifier" ? open.lastIndexOf(closing.value) : -1;
|
|
3162
3198
|
if (at !== -1) open.length = at;
|
|
3163
3199
|
continue;
|
|
3164
3200
|
}
|
|
3201
|
+
if (tokens[index + 1].kind !== "identifier") continue;
|
|
3165
3202
|
const tag = tokens[index + 1].value;
|
|
3166
3203
|
if (names.has(tag)) {
|
|
3167
3204
|
let container;
|
|
@@ -3378,7 +3415,7 @@ function collectIsolatedClientBoundaries(ownerPath, root, options = {}) {
|
|
|
3378
3415
|
if (cached !== void 0) return cached;
|
|
3379
3416
|
if (visiting.has(moduleSourcePath)) return 0;
|
|
3380
3417
|
visiting.add(moduleSourcePath);
|
|
3381
|
-
const content =
|
|
3418
|
+
const content = readModuleCode(moduleSourcePath);
|
|
3382
3419
|
const parsed = parseClientModuleMetadata(content, false);
|
|
3383
3420
|
if (parsed.isClientComponent) {
|
|
3384
3421
|
if (!isIsolatableClientBoundarySource(content)) {
|
|
@@ -3401,7 +3438,14 @@ function collectIsolatedClientBoundaries(ownerPath, root, options = {}) {
|
|
|
3401
3438
|
}
|
|
3402
3439
|
const importedBindings = getStaticImportBindings(content);
|
|
3403
3440
|
let estimatedBoundaryCount2 = 0;
|
|
3404
|
-
|
|
3441
|
+
const specifiers = new Set(getImportSpecifiers(content));
|
|
3442
|
+
for (const specifier of getImportSpecifiers(content, { dynamic: true })) {
|
|
3443
|
+
if (specifiers.has(specifier)) continue;
|
|
3444
|
+
const imported = resolveImportedModule(moduleSourcePath, specifier, root);
|
|
3445
|
+
if (!imported.local || !imported.path || !MARKDOWN_MODULE.test(imported.path)) continue;
|
|
3446
|
+
estimatedBoundaryCount2 += visit(imported.path);
|
|
3447
|
+
}
|
|
3448
|
+
for (const specifier of specifiers) {
|
|
3405
3449
|
const imported = resolveImportedModule(moduleSourcePath, specifier, root);
|
|
3406
3450
|
const importedPath = imported.path;
|
|
3407
3451
|
if (!importedPath) continue;
|
|
@@ -4223,7 +4267,7 @@ var ENVIRONMENT_FUNCTIONS = /* @__PURE__ */ new Set([
|
|
|
4223
4267
|
]);
|
|
4224
4268
|
var MODULE_EXTENSION_RE2 = /\.[cm]?[jt]sx?$/;
|
|
4225
4269
|
function transformEnvironmentFunctions(options) {
|
|
4226
|
-
if (!isTransformableModule(options.id) || !containsEnvironmentFunction(options.code)) {
|
|
4270
|
+
if (!isTransformableModule(options.id, options.componentExtensions) || !containsEnvironmentFunction(options.code)) {
|
|
4227
4271
|
return null;
|
|
4228
4272
|
}
|
|
4229
4273
|
let output = options.code;
|
|
@@ -4255,6 +4299,9 @@ function transformEnvironmentFunctions(options) {
|
|
|
4255
4299
|
}
|
|
4256
4300
|
function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
4257
4301
|
let routesFiles = /* @__PURE__ */ new Set();
|
|
4302
|
+
const componentExtensions = new Set(
|
|
4303
|
+
getFarmRendererComponentExtensions(options.renderer || void 0)
|
|
4304
|
+
);
|
|
4258
4305
|
let farmApi;
|
|
4259
4306
|
let isBuild = false;
|
|
4260
4307
|
let projectRoot = process.cwd();
|
|
@@ -4303,7 +4350,13 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
|
4303
4350
|
transformOptions?.ssr
|
|
4304
4351
|
);
|
|
4305
4352
|
const parse3 = (source) => this.parse(source);
|
|
4306
|
-
const result = transformEnvironmentFunctions({
|
|
4353
|
+
const result = transformEnvironmentFunctions({
|
|
4354
|
+
code,
|
|
4355
|
+
id,
|
|
4356
|
+
environment,
|
|
4357
|
+
parse: parse3,
|
|
4358
|
+
componentExtensions
|
|
4359
|
+
});
|
|
4307
4360
|
if (environment === "client" && !isBuild && !parseProgrammaticRouteModuleId(id) && routeSourceFiles().has(moduleFile(id)) && !isProgrammaticRouteActionProxy(code)) {
|
|
4308
4361
|
this.error(routeSourceError(moduleFile(id)));
|
|
4309
4362
|
}
|
|
@@ -4627,9 +4680,11 @@ function isEnvironmentFunctionKind(value) {
|
|
|
4627
4680
|
function containsEnvironmentFunction(code) {
|
|
4628
4681
|
return Array.from(ENVIRONMENT_FUNCTIONS).some((name) => code.includes(name));
|
|
4629
4682
|
}
|
|
4630
|
-
function isTransformableModule(id) {
|
|
4631
|
-
const cleanId = id.split("?",
|
|
4632
|
-
|
|
4683
|
+
function isTransformableModule(id, componentExtensions = /* @__PURE__ */ new Set()) {
|
|
4684
|
+
const [cleanId = id, query = ""] = id.split("?", 2);
|
|
4685
|
+
if (/\.d\.[cm]?ts$/.test(cleanId)) return false;
|
|
4686
|
+
if (MODULE_EXTENSION_RE2.test(cleanId)) return true;
|
|
4687
|
+
return componentExtensions.has(path8.extname(cleanId).toLowerCase()) && !/(?:^|&)type=style\b/.test(query);
|
|
4633
4688
|
}
|
|
4634
4689
|
function transformError(id, message) {
|
|
4635
4690
|
return new Error(`[Farm environment functions] ${message} in ${id.split("?", 1)[0]}`);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkSHIWRBFIcjs = require('./chunk-SHIWRBFI.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNW3DL2PMcjs = require('./chunk-NW3DL2PM.cjs');
|
|
7
7
|
|
|
8
8
|
// src/mobile/session.ts
|
|
9
9
|
var FARM_MOBILE_SESSION_PLUGIN = "farm:mobile-session";
|
|
@@ -176,7 +176,7 @@ function createFarmMobileSessionPlugin(options) {
|
|
|
176
176
|
const refreshTtl = (_nullishCoalesce(options.refreshTokenTtl, () => ( 30 * 24 * 60 * 60))) * 1e3;
|
|
177
177
|
const nonceTtl = (_nullishCoalesce(options.nonceTtl, () => ( 60))) * 1e3;
|
|
178
178
|
const now = _nullishCoalesce(options.now, () => ( Date.now));
|
|
179
|
-
const store = () => _nullishCoalesce(_optionalChain([options, 'access', _6 => _6.storage, 'optionalCall', _7 => _7()]), () => (
|
|
179
|
+
const store = () => _nullishCoalesce(_optionalChain([options, 'access', _6 => _6.storage, 'optionalCall', _7 => _7()]), () => ( _chunkNW3DL2PMcjs.getStorage.call(void 0, STORAGE_NAMESPACE)));
|
|
180
180
|
let warnedNoReader = false;
|
|
181
181
|
function sessionReader() {
|
|
182
182
|
for (const integration of Object.values(_nullishCoalesce(options.integrations(), () => ( {})))) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVWIW47FWcjs = require('./chunk-VWIW47FW.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHS4JPIGRcjs = require('./chunk-HS4JPIGR.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkSBDWCDS6cjs = require('./chunk-SBDWCDS6.cjs');
|
|
@@ -21,7 +21,7 @@ var _chunkKORZ6PREcjs = require('./chunk-KORZ6PRE.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkWIZRYFB2cjs = require('./chunk-WIZRYFB2.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkGCJ4GNMCcjs = require('./chunk-GCJ4GNMC.cjs');
|
|
@@ -40,7 +40,7 @@ var _chunk25JGHAGHcjs = require('./chunk-25JGHAGH.cjs');
|
|
|
40
40
|
var _chunkSNP33A33cjs = require('./chunk-SNP33A33.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -122,15 +122,15 @@ var APIRouteManager = class _APIRouteManager {
|
|
|
122
122
|
await this.loadProgrammaticApiRoutes(appDir);
|
|
123
123
|
}
|
|
124
124
|
this.routes = new Map(
|
|
125
|
-
|
|
125
|
+
_chunkWIZRYFB2cjs.mergePluginAPIRoutes.call(void 0, [...this.routes.values()], this.plugins, void 0, {
|
|
126
126
|
bodySizeLimit: this.bodySizeLimit,
|
|
127
127
|
dispatch: this.dispatch
|
|
128
128
|
}).map((route) => [route.path, route])
|
|
129
129
|
);
|
|
130
130
|
if (process.env.FARM_VERBOSE) {
|
|
131
|
-
|
|
131
|
+
_chunk7U4XF76Rcjs.logger.success(`Discovered ${this.routes.size} API routes`);
|
|
132
132
|
for (const [routePath, route] of this.routes) {
|
|
133
|
-
|
|
133
|
+
_chunk7U4XF76Rcjs.logger.info(` ${route.methods.join(", ")} ${routePath}`);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
@@ -164,7 +164,7 @@ var APIRouteManager = class _APIRouteManager {
|
|
|
164
164
|
const routeModule = await this.loadModule(filePath);
|
|
165
165
|
const endpoints = {};
|
|
166
166
|
const availableMethods = [];
|
|
167
|
-
for (const method of
|
|
167
|
+
for (const method of _chunkWIZRYFB2cjs.API_ROUTE_METHODS) {
|
|
168
168
|
if (routeModule[method]) {
|
|
169
169
|
endpoints[method] = routeModule[method];
|
|
170
170
|
availableMethods.push(method);
|
|
@@ -242,7 +242,7 @@ var APIRouteManager = class _APIRouteManager {
|
|
|
242
242
|
async loadProgrammaticApiRoutes(appDir) {
|
|
243
243
|
const candidateRoots = [path.dirname(appDir), appDir];
|
|
244
244
|
const routeFiles = Array.from(
|
|
245
|
-
new Set(candidateRoots.flatMap((srcRoot) =>
|
|
245
|
+
new Set(candidateRoots.flatMap((srcRoot) => _chunkHS4JPIGRcjs.findProgrammaticRouteFilesInDir.call(void 0, srcRoot)))
|
|
246
246
|
);
|
|
247
247
|
if (routeFiles.length === 0) return;
|
|
248
248
|
const { getProgrammaticRouteManifest } = await import("./routes.cjs");
|
|
@@ -263,7 +263,7 @@ var APIRouteManager = class _APIRouteManager {
|
|
|
263
263
|
}
|
|
264
264
|
handleLoadError(message, loadError) {
|
|
265
265
|
const error = _chunkKORZ6PREcjs.explainMissingOptionalPeer.call(void 0, loadError, message.replace(/^Error loading /, ""));
|
|
266
|
-
|
|
266
|
+
_chunk7U4XF76Rcjs.logger.error(`${message}: ${error}`);
|
|
267
267
|
if (this.throwOnLoadError || error instanceof APIRouteConflictError || error instanceof _chunkML4TOUZPcjs.AmbiguousRouteError || error instanceof _chunkML4TOUZPcjs.NonTerminalCatchAllRouteError) {
|
|
268
268
|
throw error;
|
|
269
269
|
}
|
|
@@ -356,7 +356,7 @@ var APIRouteManager = class _APIRouteManager {
|
|
|
356
356
|
const url = new URL(request.url);
|
|
357
357
|
const pathname = url.pathname;
|
|
358
358
|
const method = request.method.toUpperCase();
|
|
359
|
-
const match =
|
|
359
|
+
const match = _chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, this.routes, pathname, this.basePath);
|
|
360
360
|
if (!match) {
|
|
361
361
|
return new Response(JSON.stringify({ error: "Not Found" }), {
|
|
362
362
|
status: 404,
|
|
@@ -364,23 +364,23 @@ var APIRouteManager = class _APIRouteManager {
|
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
366
|
const { route, params } = match;
|
|
367
|
-
const endpoint =
|
|
367
|
+
const endpoint = _chunkWIZRYFB2cjs.resolveAPIRouteEndpoint.call(void 0, route, method);
|
|
368
368
|
if (!endpoint) {
|
|
369
369
|
return new Response(JSON.stringify({ error: "Method Not Allowed" }), {
|
|
370
370
|
status: 405,
|
|
371
371
|
headers: {
|
|
372
|
-
Allow:
|
|
372
|
+
Allow: _chunkWIZRYFB2cjs.getAllowedAPIRouteMethods.call(void 0, route).join(", "),
|
|
373
373
|
"Content-Type": "application/json"
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
377
|
const invoke = async () => {
|
|
378
378
|
try {
|
|
379
|
-
return await
|
|
379
|
+
return await _chunkWIZRYFB2cjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params, this.bodySizeLimit);
|
|
380
380
|
} catch (error) {
|
|
381
381
|
if (options.throwOnError) throw error;
|
|
382
382
|
console.error(`[API Error] ${pathname}:`, error);
|
|
383
|
-
return
|
|
383
|
+
return _chunkWIZRYFB2cjs.createFarmInternalServerErrorResponse.call(void 0, );
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
386
|
return _optionalChain([this, 'access', _13 => _13.i18n, 'optionalAccess', _14 => _14.config, 'access', _15 => _15.enabled]) ? _chunkSXXSQVKKcjs._runWithFarmI18nRequest.call(void 0, this.i18n, request, invoke, {
|
|
@@ -395,7 +395,7 @@ var APIRouteManager = class _APIRouteManager {
|
|
|
395
395
|
return Boolean(this.matchRoute(pathname));
|
|
396
396
|
}
|
|
397
397
|
matchRoute(pathname) {
|
|
398
|
-
return
|
|
398
|
+
return _chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, this.routes, pathname, this.basePath);
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
401
401
|
* Get all routes for client type generation
|
|
@@ -28,7 +28,7 @@ function resolveFarmDocsSearchFrameworkModule(searchModule) {
|
|
|
28
28
|
function generateFarmDocsSearchBootstrapRuntime() {
|
|
29
29
|
return `(()=>{if(window.__farmDocsSearchBootstrap)return;window.__farmDocsSearchBootstrap=true;const queue=(trigger,event)=>{if(window.__FARM_DOCS_SEARCH_BRIDGE_ACTIVE__)return;event.preventDefault();event.stopPropagation();event.stopImmediatePropagation();window.__FARM_DOCS_SEARCH_PENDING__=trigger;window.__FARM_MOUNT_DOCS_SEARCH__?.()};document.addEventListener("click",(event)=>{const target=event.target instanceof Element?event.target.closest("[data-search-full]"):null;if(target)queue("button",event)},true);document.addEventListener("keydown",(event)=>{if((event.metaKey||event.ctrlKey)&&event.key.toLowerCase()==="k")queue("keyboard",event)},true)})();`;
|
|
30
30
|
}
|
|
31
|
-
function generateFarmDocsSearchClientRuntime(enabled, moduleId, frameworkModuleId = moduleId ? resolveFarmDocsSearchFrameworkModule(moduleId) : void 0) {
|
|
31
|
+
function generateFarmDocsSearchClientRuntime(enabled, moduleId, frameworkModuleId = moduleId ? resolveFarmDocsSearchFrameworkModule(moduleId) : void 0, loadRenderer) {
|
|
32
32
|
if (!enabled || !moduleId) {
|
|
33
33
|
return `
|
|
34
34
|
function isFarmDocsSearchPage() {
|
|
@@ -148,7 +148,8 @@ async function mountFarmDocsSearch() {
|
|
|
148
148
|
try {
|
|
149
149
|
farmDocsSearchModulePromise ||= Promise.all([
|
|
150
150
|
import(${JSON.stringify(moduleId)}),
|
|
151
|
-
${frameworkModuleId ? `import(${JSON.stringify(frameworkModuleId)})` : "null"}
|
|
151
|
+
${frameworkModuleId ? `import(${JSON.stringify(frameworkModuleId)})` : "null"},${loadRenderer ? `
|
|
152
|
+
${loadRenderer}(),` : ""}
|
|
152
153
|
]);
|
|
153
154
|
const [{ DocsCommandSearch }, framework] = await farmDocsSearchModulePromise;
|
|
154
155
|
if (!container.isConnected) return false;
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk-IYEY3JWJ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
APIRouteConflictError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KKVRWNDH.mjs";
|
|
13
13
|
import {
|
|
14
14
|
findProgrammaticRouteFilesInDir
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-URBP6DLH.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isFarmAPIRouteFileName
|
|
18
18
|
} from "./chunk-YX6AFPXC.mjs";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
matchAPIRouteAtBasePath,
|
|
27
27
|
mergePluginAPIRoutes,
|
|
28
28
|
resolveAPIRouteEndpoint
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-TYHWZOA2.mjs";
|
|
30
30
|
import {
|
|
31
31
|
isProgrammaticRoutesFileName
|
|
32
32
|
} from "./chunk-DZXD6CYJ.mjs";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
toPosixPath,
|
|
48
48
|
toViteModuleId
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-U6GMCDRS.mjs";
|
|
50
50
|
import {
|
|
51
51
|
createFarmRequestBodyErrorResponse,
|
|
52
52
|
readNodeRequestBody,
|
|
@@ -80,7 +80,8 @@ async function connect(name, loadClient) {
|
|
|
80
80
|
}
|
|
81
81
|
var databaseAccessor = /* @__PURE__ */ Symbol.for("farmjs.storage.managedDatabase");
|
|
82
82
|
var mountSchema = /* @__PURE__ */ Symbol.for("farmjs.storage.managedSchema");
|
|
83
|
-
|
|
83
|
+
var mountType = /* @__PURE__ */ Symbol.for("farmjs.storage.managedType");
|
|
84
|
+
function managedSqliteDriver(name, loadClient, schema, type, mount = name) {
|
|
84
85
|
let pending;
|
|
85
86
|
let initialized;
|
|
86
87
|
let closed = false;
|
|
@@ -92,6 +93,12 @@ function managedSqliteDriver(name, loadClient, schema) {
|
|
|
92
93
|
}))));
|
|
93
94
|
}
|
|
94
95
|
function kv() {
|
|
96
|
+
if (type === "sql")
|
|
97
|
+
return Promise.reject(
|
|
98
|
+
new TypeError(
|
|
99
|
+
`Storage mount ${JSON.stringify(mount)} is a SQL mount. Use getDatabase(${JSON.stringify(mount)}) to read and write it, or add a mount with \`type: "kv"\` for key-value data.`
|
|
100
|
+
)
|
|
101
|
+
);
|
|
95
102
|
return _nullishCoalesce(initialized, () => ( (initialized = client().then(async (db) => {
|
|
96
103
|
await db.execute(
|
|
97
104
|
"CREATE TABLE IF NOT EXISTS _farm_kv (key TEXT PRIMARY KEY, value TEXT NOT NULL)"
|
|
@@ -106,6 +113,7 @@ function managedSqliteDriver(name, loadClient, schema) {
|
|
|
106
113
|
name: "farm-managed-sqlite",
|
|
107
114
|
[databaseAccessor]: client,
|
|
108
115
|
[mountSchema]: schema,
|
|
116
|
+
[mountType]: type,
|
|
109
117
|
async hasItem(key) {
|
|
110
118
|
return (await (await kv()).execute({ sql: "SELECT 1 FROM _farm_kv WHERE key=?", args: [key] })).rows.length > 0;
|
|
111
119
|
},
|
|
@@ -114,6 +122,7 @@ function managedSqliteDriver(name, loadClient, schema) {
|
|
|
114
122
|
return _nullishCoalesce(_optionalChain([rows, 'access', _2 => _2[0], 'optionalAccess', _3 => _3.value]), () => ( null));
|
|
115
123
|
},
|
|
116
124
|
async getKeys(base = "") {
|
|
125
|
+
if (type === "sql") return [];
|
|
117
126
|
const { rows } = await (await kv()).execute({
|
|
118
127
|
sql: "SELECT key FROM _farm_kv WHERE instr(key,?)=1 ORDER BY key",
|
|
119
128
|
args: [base]
|
|
@@ -130,6 +139,7 @@ function managedSqliteDriver(name, loadClient, schema) {
|
|
|
130
139
|
await (await kv()).execute({ sql: "DELETE FROM _farm_kv WHERE key=?", args: [key] });
|
|
131
140
|
},
|
|
132
141
|
async clear(base = "") {
|
|
142
|
+
if (type === "sql") return;
|
|
133
143
|
await (await kv()).execute({ sql: "DELETE FROM _farm_kv WHERE instr(key,?)=1", args: [base] });
|
|
134
144
|
},
|
|
135
145
|
async dispose() {
|
|
@@ -345,7 +355,9 @@ async function resolveDriver(config, mount) {
|
|
|
345
355
|
return managedSqliteDriver(
|
|
346
356
|
managedSqliteName(mount, hosted.managed),
|
|
347
357
|
() => import("./libsql-http-M6LMNXCN.cjs"),
|
|
348
|
-
hosted.schema
|
|
358
|
+
hosted.schema,
|
|
359
|
+
hosted.type,
|
|
360
|
+
mount
|
|
349
361
|
);
|
|
350
362
|
}
|
|
351
363
|
const driverInput = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.driver]), () => ( "memory"));
|
|
@@ -459,23 +471,35 @@ function assertMountSchema(schema) {
|
|
|
459
471
|
throw new TypeError("Pass a schema created with defineSchema() from @farming-labs/orm.");
|
|
460
472
|
}
|
|
461
473
|
}
|
|
474
|
+
function isSqlDriver(driver) {
|
|
475
|
+
return typeof driver === "string" && Object.prototype.hasOwnProperty.call(DATABASE_CONNECTORS, driver);
|
|
476
|
+
}
|
|
462
477
|
function farmStorage(options = {}) {
|
|
463
|
-
if (!options || typeof options !== "object" || Array.isArray(options) || Object.keys(options).some(
|
|
478
|
+
if (!options || typeof options !== "object" || Array.isArray(options) || Object.keys(options).some(
|
|
479
|
+
(key) => key !== "namespace" && key !== "managed" && key !== "schema" && key !== "type"
|
|
480
|
+
))
|
|
464
481
|
throw new TypeError(
|
|
465
|
-
|
|
482
|
+
'Use farmStorage({ type: "kv" }) or farmStorage({ type: "sql" }), with optional `namespace` and `schema`.'
|
|
466
483
|
);
|
|
467
484
|
if (options.managed !== void 0 && options.managed !== true)
|
|
468
485
|
throw new TypeError("Set `managed` to true or omit it when using farmStorage().");
|
|
486
|
+
if (options.type !== void 0 && options.type !== "kv" && options.type !== "sql")
|
|
487
|
+
throw new TypeError('Set `type` to "kv" or "sql" in farmStorage().');
|
|
469
488
|
assertMountSchema(options.schema);
|
|
470
|
-
|
|
489
|
+
if (options.type === "kv" && options.schema)
|
|
490
|
+
throw new TypeError(
|
|
491
|
+
'A schema describes tables, so it needs a SQL mount. Use farmStorage({ type: "sql", schema }).'
|
|
492
|
+
);
|
|
493
|
+
return createManagedMount(options.namespace, options.schema, "farm", options.type);
|
|
471
494
|
}
|
|
472
|
-
function createManagedMount(namespace, schema, declaredDriver) {
|
|
495
|
+
function createManagedMount(namespace, schema, declaredDriver, type) {
|
|
473
496
|
const managed = namespace === void 0 ? true : { name: namespace };
|
|
474
497
|
if (managed !== true) managedSqliteName("", managed);
|
|
475
498
|
return {
|
|
476
499
|
driver: "farm-managed-sqlite",
|
|
477
500
|
managed,
|
|
478
501
|
...declaredDriver && { declaredDriver },
|
|
502
|
+
...type && { type },
|
|
479
503
|
...schema && { schema }
|
|
480
504
|
};
|
|
481
505
|
}
|
|
@@ -496,16 +520,33 @@ function resolveManagedStorageMount(config) {
|
|
|
496
520
|
if (driver !== "farm-managed-sqlite" && !isHostedDriver(driver))
|
|
497
521
|
throw new TypeError("Select a built-in storage driver to use `managed: true`.");
|
|
498
522
|
const declaredDriver = driver === "farm-managed-sqlite" ? options.declaredDriver : driver;
|
|
523
|
+
let type;
|
|
499
524
|
if (driver === "farm-managed-sqlite") {
|
|
525
|
+
type = options.type;
|
|
500
526
|
delete options.declaredDriver;
|
|
527
|
+
delete options.type;
|
|
501
528
|
if (declaredDriver !== void 0 && declaredDriver !== "farm" && !isHostedDriver(declaredDriver))
|
|
502
529
|
throw new TypeError("Use a known storage driver in the managed mount descriptor.");
|
|
530
|
+
if (type !== void 0 && type !== "kv" && type !== "sql")
|
|
531
|
+
throw new TypeError('Use `type: "kv"` or `type: "sql"` in the managed mount descriptor.');
|
|
532
|
+
if (type === void 0 && declaredDriver !== void 0 && declaredDriver !== "farm")
|
|
533
|
+
type = isSqlDriver(declaredDriver) ? "sql" : "kv";
|
|
534
|
+
} else {
|
|
535
|
+
type = isSqlDriver(driver) ? "sql" : "kv";
|
|
536
|
+
if ("type" in options)
|
|
537
|
+
throw new TypeError(
|
|
538
|
+
`Remove \`type\`: a managed ${String(driver)} mount always holds ${type === "sql" ? "tables" : "key-value data"}. Use farmStorage({ type }) to choose.`
|
|
539
|
+
);
|
|
503
540
|
}
|
|
504
541
|
if (Object.keys(options).some((key) => key !== "namespace" && key !== "schema"))
|
|
505
542
|
throw new TypeError(
|
|
506
543
|
"Remove provider connection settings and driver options when using `managed: true`."
|
|
507
544
|
);
|
|
508
545
|
assertMountSchema(options.schema);
|
|
546
|
+
if (type === "kv" && options.schema)
|
|
547
|
+
throw new TypeError(
|
|
548
|
+
driver === "farm-managed-sqlite" ? 'A schema describes tables, so it needs a SQL mount. Use farmStorage({ type: "sql", schema }).' : `${String(driver)} stores key-value data, so its mount cannot take a schema. Use a SQL driver such as sqliteStorage({ managed: true, schema }), or farmStorage({ type: "sql", schema }).`
|
|
549
|
+
);
|
|
509
550
|
let namespace;
|
|
510
551
|
if (managed === true) namespace = options.namespace;
|
|
511
552
|
else if ((driver === "sqlite" || driver === "farm-managed-sqlite") && !("namespace" in options))
|
|
@@ -515,7 +556,8 @@ function resolveManagedStorageMount(config) {
|
|
|
515
556
|
return createManagedMount(
|
|
516
557
|
namespace,
|
|
517
558
|
options.schema,
|
|
518
|
-
typeof declaredDriver === "string" ? declaredDriver : void 0
|
|
559
|
+
typeof declaredDriver === "string" ? declaredDriver : void 0,
|
|
560
|
+
type
|
|
519
561
|
);
|
|
520
562
|
}
|
|
521
563
|
function isHostedDriver(driver) {
|
|
@@ -631,6 +673,10 @@ async function getDatabase(name, options) {
|
|
|
631
673
|
throw new TypeError(
|
|
632
674
|
"Configure a managed SQLite mount named " + JSON.stringify(name) + " before calling getDatabase()."
|
|
633
675
|
);
|
|
676
|
+
if (driver[mountType] === "kv")
|
|
677
|
+
throw new TypeError(
|
|
678
|
+
`Storage mount ${JSON.stringify(name)} is a key-value mount. Use getStorage(${JSON.stringify(name)}) to read and write it, or add a mount with \`type: "sql"\` for tables.`
|
|
679
|
+
);
|
|
634
680
|
const client = await driver[databaseAccessor]();
|
|
635
681
|
if (options && "raw" in options) return client;
|
|
636
682
|
const schema = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _9 => _9.schema]), () => ( driver[mountSchema]));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2NOHVIJ3cjs = require('./chunk-2NOHVIJ3.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkDVJM55D2cjs = require('./chunk-DVJM55D2.cjs');
|
|
@@ -65,12 +65,12 @@ function collectFarmLlmsTxtPages(sources, options) {
|
|
|
65
65
|
for (const source of sources) {
|
|
66
66
|
const path = source.pattern;
|
|
67
67
|
if (path.includes("[") || pages.has(path)) continue;
|
|
68
|
-
if (include.length && !include.some((pattern) =>
|
|
68
|
+
if (include.length && !include.some((pattern) => _chunk2NOHVIJ3cjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) {
|
|
69
69
|
continue;
|
|
70
70
|
}
|
|
71
|
-
if (exclude.some((pattern) =>
|
|
71
|
+
if (exclude.some((pattern) => _chunk2NOHVIJ3cjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) continue;
|
|
72
72
|
if (isFarmMetadataNoIndex(source.metadata)) continue;
|
|
73
|
-
const target =
|
|
73
|
+
const target = _chunk2NOHVIJ3cjs.isFarmMarkdownMirrorExposed.call(void 0, options.markdown, path) ? getFarmAgentPagePublicPath(_chunk2NOHVIJ3cjs.getFarmMarkdownMirrorPath.call(void 0, path), options) : _chunkDVJM55D2cjs.normalizeFarmTrailingSlashPathname.call(void 0,
|
|
74
74
|
getFarmAgentPagePublicPath(path, options),
|
|
75
75
|
options.trailingSlash === true
|
|
76
76
|
);
|
|
@@ -199,7 +199,7 @@ function createFarmLlmsMarkdownReader(fetchMarkdown) {
|
|
|
199
199
|
try {
|
|
200
200
|
const response = await fetchMarkdown(
|
|
201
201
|
new Request(url, {
|
|
202
|
-
headers: { accept: "text/markdown", [
|
|
202
|
+
headers: { accept: "text/markdown", [_chunk2NOHVIJ3cjs.FARM_INTERNAL_READ_HEADER]: "llms-full" }
|
|
203
203
|
})
|
|
204
204
|
);
|
|
205
205
|
const type = _nullishCoalesce(response.headers.get("content-type"), () => ( ""));
|
|
@@ -348,6 +348,15 @@ function getSpanTraceContext(span) {
|
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
// src/observability.ts
|
|
351
|
+
var FARM_TOOL_CALL_PAYLOAD = /* @__PURE__ */ Symbol.for("farm.mcp.toolCallPayload");
|
|
352
|
+
function _farmToolCallPayload(event) {
|
|
353
|
+
if (!event || typeof event !== "object") return void 0;
|
|
354
|
+
const payload = event[FARM_TOOL_CALL_PAYLOAD];
|
|
355
|
+
return payload && typeof payload === "object" ? payload : void 0;
|
|
356
|
+
}
|
|
357
|
+
function _withFarmToolCallPayload(input, payload) {
|
|
358
|
+
return Object.defineProperty(input, FARM_TOOL_CALL_PAYLOAD, { value: payload });
|
|
359
|
+
}
|
|
351
360
|
var OBSERVABILITY_RUNTIME = /* @__PURE__ */ Symbol.for("@farm.js/core/observability-runtime/v1");
|
|
352
361
|
var runtime2 = globalThis;
|
|
353
362
|
var shared = _nullishCoalesce(runtime2[OBSERVABILITY_RUNTIME], () => ( (runtime2[OBSERVABILITY_RUNTIME] = {
|
|
@@ -406,6 +415,8 @@ function emitFarmEvent(input) {
|
|
|
406
415
|
...input
|
|
407
416
|
};
|
|
408
417
|
if (event.type === "route.redirect") event.to = event.to.replace(/[?#][\s\S]*$/, "");
|
|
418
|
+
const payload = _farmToolCallPayload(input);
|
|
419
|
+
if (payload) _withFarmToolCallPayload(event, payload);
|
|
409
420
|
const traceContext = recordFarmEventTrace(event);
|
|
410
421
|
if (traceContext) {
|
|
411
422
|
event.traceId = traceContext.traceId;
|
|
@@ -557,4 +568,7 @@ function formatError(error) {
|
|
|
557
568
|
|
|
558
569
|
|
|
559
570
|
|
|
560
|
-
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
exports.normalizeFarmTracingConfig = normalizeFarmTracingConfig; exports.configureFarmTracing = configureFarmTracing; exports.getFarmTraceContext = getFarmTraceContext; exports.runWithFarmSpan = runWithFarmSpan; exports.FARM_TOOL_CALL_PAYLOAD = FARM_TOOL_CALL_PAYLOAD; exports._farmToolCallPayload = _farmToolCallPayload; exports._withFarmToolCallPayload = _withFarmToolCallPayload; exports.configureFarmObservability = configureFarmObservability; exports.normalizeFarmObservabilityConfig = normalizeFarmObservabilityConfig; exports.onFarmEvent = onFarmEvent; exports.resetFarmObservability = resetFarmObservability; exports.emitFarmEvent = emitFarmEvent; exports.runWithFarmRequestSpan = runWithFarmRequestSpan;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
|
|
4
4
|
|
|
5
5
|
// src/server/dev-loopback.ts
|
|
6
6
|
var _net = require('net'); var _net2 = _interopRequireDefault(_net);
|
|
@@ -30,7 +30,7 @@ async function listenOnOtherLoopback(server) {
|
|
|
30
30
|
const listening = await new Promise((resolve) => {
|
|
31
31
|
const onError = (error) => {
|
|
32
32
|
if (error.code === "EADDRINUSE") {
|
|
33
|
-
|
|
33
|
+
_chunk7U4XF76Rcjs.logger.warn(
|
|
34
34
|
`Another process is listening on ${formatHost(other)}:${address.port}; the dev server answers on ${formatHost(address.address)}:${address.port} only.`
|
|
35
35
|
);
|
|
36
36
|
}
|
|
@@ -43,7 +43,7 @@ async function listenOnOtherLoopback(server) {
|
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
if (!listening) return;
|
|
46
|
-
loopback.on("error", (error) =>
|
|
46
|
+
loopback.on("error", (error) => _chunk7U4XF76Rcjs.logger.warn(`Dev loopback listener failed: ${String(error)}`));
|
|
47
47
|
httpServer.once("close", () => loopback.close());
|
|
48
48
|
}
|
|
49
49
|
function formatHost(address) {
|