@farm.js/core 0.1.78 → 0.1.81
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-Cxi3214_.d.ts} +1 -1
- package/dist/{agent-mcp.d-CYHfcjur.d.mts → agent-mcp.d-DMqOqnOA.d.mts} +1 -1
- package/dist/agent-runtime.cjs +2 -2
- package/dist/agent-runtime.d.mts +5 -4
- package/dist/agent-runtime.d.ts +5 -4
- package/dist/agent-runtime.mjs +1 -1
- package/dist/analyzer-435DCIQ6.cjs +17 -0
- package/dist/{analyzer-M2BG6QYU.mjs → analyzer-IC66UJCU.mjs} +3 -2
- 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 +7 -6
- package/dist/api/node.d.ts +7 -6
- package/dist/api/node.mjs +6 -6
- package/dist/api/route-manager.cjs +10 -10
- package/dist/api/route-manager.d.mts +7 -6
- package/dist/api/route-manager.d.ts +7 -6
- package/dist/api/route-manager.mjs +9 -9
- package/dist/api/runtime.cjs +6 -6
- package/dist/api/runtime.d.mts +6 -5
- package/dist/api/runtime.d.ts +6 -5
- package/dist/api/runtime.mjs +5 -5
- package/dist/api.cjs +12 -12
- package/dist/api.d.mts +8 -7
- package/dist/api.d.ts +8 -7
- package/dist/api.mjs +11 -11
- package/dist/{app-manifest.d-6NCkLQ1y.d.mts → app-manifest.d-Bbxp5kes.d.mts} +1 -1
- package/dist/{app-manifest.d-DuqLBcmi.d.ts → app-manifest.d-C8Cswd31.d.ts} +1 -1
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +8 -7
- package/dist/app-markdown.d.ts +8 -7
- package/dist/app-markdown.mjs +4 -4
- package/dist/{app.d-Dk2HkvPh.d.mts → app.d-BJuSurgy.d.mts} +13 -4
- package/dist/{app.d-Bz6vYBFF.d.ts → app.d-DGIoFt5D.d.ts} +13 -4
- package/dist/cache.cjs +3 -3
- package/dist/cache.mjs +2 -2
- package/dist/{chunk-PG7J7XYT.cjs → chunk-26WP75W5.cjs} +38 -22
- package/dist/{chunk-QYOAGT3E.cjs → chunk-2BEGVSDF.cjs} +6 -5
- package/dist/{chunk-GCRT6GJG.mjs → chunk-2HMSSPCZ.mjs} +26 -0
- package/dist/{chunk-2YJ4DHTD.cjs → chunk-2NOHVIJ3.cjs} +2 -2
- package/dist/{chunk-GDM3ZD2O.cjs → chunk-2OFP3IVA.cjs} +5 -1
- package/dist/{chunk-7KDCVSTR.mjs → chunk-2PFGA6PB.mjs} +2 -2
- package/dist/chunk-2UYYXSUS.mjs +401 -0
- package/dist/{chunk-DD2ANOEF.cjs → chunk-2Y2HRZQY.cjs} +843 -627
- package/dist/{chunk-PL7MCYYD.mjs → chunk-3AV4DCXY.mjs} +58 -358
- package/dist/{chunk-3GNHJ3RN.cjs → chunk-3BTN3NP7.cjs} +2 -2
- package/dist/{chunk-XT2CHTDN.mjs → chunk-3RVLJTFZ.mjs} +6 -6
- package/dist/{chunk-VJ6L7TII.cjs → chunk-3SPECQXI.cjs} +31 -20
- package/dist/{chunk-ODYKCC6W.cjs → chunk-46UV2E7I.cjs} +156 -104
- package/dist/{chunk-F4ID7BGO.cjs → chunk-4OFWG4IK.cjs} +7 -7
- package/dist/{chunk-VRI43FDN.mjs → chunk-4WXNTAOM.mjs} +1 -1
- package/dist/{chunk-QMR2TUVZ.cjs → chunk-52Q4OB4A.cjs} +4 -4
- package/dist/chunk-5MMKNW7Q.cjs +54 -0
- package/dist/{chunk-RIMEFQYO.mjs → chunk-5N526T7Q.mjs} +116 -86
- 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-5REIO5DT.mjs → chunk-6WVRVGKC.mjs} +6 -6
- package/dist/{chunk-GC5ROI3A.cjs → chunk-7U4XF76R.cjs} +1 -1
- package/dist/{chunk-FOULIN4S.cjs → chunk-ADQ2LATR.cjs} +2 -2
- package/dist/{chunk-K3ZELA6U.cjs → chunk-AHVF5GI2.cjs} +10 -10
- package/dist/{chunk-CSAIIMY3.mjs → chunk-ATISIC6G.mjs} +1 -1
- package/dist/{chunk-MGKWYPE3.mjs → chunk-AYDVUCXD.mjs} +1 -0
- package/dist/chunk-B7L24VPX.cjs +401 -0
- package/dist/{chunk-DPBQRDWW.cjs → chunk-BBVLOEND.cjs} +4 -4
- package/dist/{chunk-DASQJ5UD.mjs → chunk-BCQIXH7L.mjs} +1 -1
- package/dist/{chunk-BNCKXPCU.cjs → chunk-BIAGSYIZ.cjs} +30 -30
- package/dist/{chunk-R77D7TCZ.mjs → chunk-BJWJP5A4.mjs} +20 -13
- package/dist/{chunk-X2SEYK7I.mjs → chunk-BPWTSPK6.mjs} +3 -3
- package/dist/{chunk-CKNZJFK5.cjs → chunk-BSX5OGSD.cjs} +4 -4
- package/dist/{chunk-ERT6HQAI.mjs → chunk-BVJUFVCU.mjs} +2 -2
- package/dist/chunk-C5QHZ626.cjs +85 -0
- package/dist/{chunk-HVMQAVZK.cjs → chunk-CL7BUGVB.cjs} +656 -521
- package/dist/{chunk-TZ2YPXLB.cjs → chunk-CN2JOTRO.cjs} +7 -7
- package/dist/{chunk-ZCYGYIC2.cjs → chunk-CPZZBCPO.cjs} +22 -21
- package/dist/{chunk-RK4MGL6Q.mjs → chunk-CYRO3WP4.mjs} +4 -3
- package/dist/chunk-D2VAANBS.mjs +48 -0
- package/dist/{chunk-VRJAMU34.mjs → chunk-D77OGI6X.mjs} +1 -1
- package/dist/{chunk-6XDDE7M6.cjs → chunk-DJ3PVHTW.cjs} +3 -3
- package/dist/{chunk-XGS76V7L.cjs → chunk-E3HBD2K3.cjs} +22 -22
- package/dist/{chunk-F35C3TJZ.mjs → chunk-E4E4Y5FD.mjs} +1 -1
- package/dist/{chunk-KUXEII7V.mjs → chunk-ECVSRE4Y.mjs} +3 -2
- package/dist/{chunk-2DA7CLY7.mjs → chunk-EILUVBKS.mjs} +14 -0
- package/dist/chunk-EZYKV24V.mjs +385 -0
- package/dist/{chunk-TVCFY3KK.cjs → chunk-FB4CWSC2.cjs} +12 -12
- package/dist/{chunk-ZO6TOLHL.mjs → chunk-FS55CNTC.mjs} +1 -1
- package/dist/{chunk-IYFBLWXU.cjs → chunk-FULX5RYX.cjs} +61 -361
- package/dist/{chunk-5KISFWD2.cjs → chunk-FYZD7DUS.cjs} +12 -12
- package/dist/{chunk-H5OVJHXY.cjs → chunk-GAWSWJJ2.cjs} +27 -27
- package/dist/{chunk-A37D6LOS.mjs → chunk-GY63XD6K.mjs} +1 -1
- package/dist/{chunk-OVUU2RCQ.mjs → chunk-HD5FLXP2.mjs} +1 -1
- package/dist/{chunk-5QZT2EQN.cjs → chunk-HQEYZSF3.cjs} +4 -3
- package/dist/{chunk-JA6RML7C.mjs → chunk-HR4N2K4V.mjs} +2 -2
- package/dist/{chunk-6D3CJFNU.cjs → chunk-HR5GU4UU.cjs} +7 -7
- package/dist/{chunk-7RQ5KAK6.mjs → chunk-HTNJ7A4D.mjs} +88 -36
- package/dist/chunk-I4WZRG73.mjs +54 -0
- package/dist/{chunk-BGUTIQII.mjs → chunk-ICOJ2BC6.mjs} +24 -8
- package/dist/{chunk-SX535SU5.cjs → chunk-IJPRCQHW.cjs} +10 -10
- package/dist/{chunk-E7V2GYBP.mjs → chunk-IM3UINTZ.mjs} +67 -9
- package/dist/{chunk-MNIR7I7B.mjs → chunk-INKVDO42.mjs} +1 -1
- package/dist/{chunk-AHGOHPRN.mjs → chunk-IPG6B25T.mjs} +235 -100
- package/dist/{chunk-PE2LEWXA.mjs → chunk-J2VUPCCR.mjs} +4 -4
- package/dist/{chunk-Q2EKSSEG.cjs → chunk-JB4BHRFK.cjs} +17 -17
- package/dist/{chunk-YN7G22MP.cjs → chunk-JCYDWJVO.cjs} +3 -3
- package/dist/{chunk-LPXJEZJK.mjs → chunk-KCJBIWBM.mjs} +2 -2
- package/dist/{chunk-NSNQLBHR.cjs → chunk-KMGHXIDA.cjs} +2 -2
- package/dist/{chunk-SVCUSOEF.mjs → chunk-KR5DF7WK.mjs} +1 -1
- package/dist/{chunk-5DREJN4G.cjs → chunk-LKIG5SM6.cjs} +17 -17
- package/dist/{chunk-OGVOKAQU.mjs → chunk-LTOT5KVJ.mjs} +2 -2
- package/dist/{chunk-Z2FFLTF5.mjs → chunk-LTXKRIST.mjs} +2 -2
- package/dist/{chunk-67MZTLTF.cjs → chunk-M6DAIE4T.cjs} +27 -1
- package/dist/{chunk-IWGGRXD2.cjs → chunk-MHKPXX3J.cjs} +2 -2
- package/dist/{chunk-F7PKUP6P.cjs → chunk-MOGRRZMW.cjs} +38 -38
- package/dist/{chunk-DZZHTMWM.cjs → chunk-N3H7UPBM.cjs} +3 -2
- package/dist/{chunk-WGNGM6MJ.mjs → chunk-N3VMHPIY.mjs} +2 -2
- package/dist/{chunk-EBFTAVGD.mjs → chunk-NOYKBGUK.mjs} +672 -456
- package/dist/{chunk-LMXGCFAM.cjs → chunk-NSLRK5DK.cjs} +1 -1
- package/dist/{chunk-EVVV2XZ2.cjs → chunk-NW3DL2PM.cjs} +53 -7
- package/dist/{chunk-6ZFGWB75.cjs → chunk-OFVCWV2D.cjs} +5 -5
- package/dist/{chunk-NB2ZEBIS.cjs → chunk-OIWDEDUO.cjs} +540 -510
- package/dist/{chunk-WRWJ7IWT.cjs → chunk-OLKYHTLN.cjs} +5 -5
- package/dist/{chunk-QES76U42.mjs → chunk-ONSZP5JK.mjs} +4 -4
- package/dist/{chunk-H76C5AOU.mjs → chunk-OO4GVGM3.mjs} +4 -4
- package/dist/{chunk-BZJYPIFZ.cjs → chunk-OUDNUFVR.cjs} +12 -12
- package/dist/{chunk-EVIWKPJV.cjs → chunk-PLJMEUAN.cjs} +15 -1
- package/dist/{chunk-GFXKO4UW.mjs → chunk-PO5MZIWK.mjs} +49 -49
- package/dist/{chunk-VCW6BR6U.mjs → chunk-POL5RCVU.mjs} +2 -2
- package/dist/{chunk-EMTN5ABC.mjs → chunk-POVHO46S.mjs} +1 -1
- package/dist/{chunk-ASYOWPSR.cjs → chunk-PWDBWXQI.cjs} +2 -1
- package/dist/{chunk-X3Y6JWJG.cjs → chunk-PWMJBCAN.cjs} +3 -3
- package/dist/{chunk-IGE5BAWK.mjs → chunk-QBJ6N5MT.mjs} +53 -7
- package/dist/{chunk-62DZHPDK.cjs → chunk-QCKSYYXK.cjs} +10 -10
- package/dist/{chunk-PKXGFQZS.mjs → chunk-QD34VE4N.mjs} +1 -1
- package/dist/{chunk-57QAQU4F.mjs → chunk-QRNYSISP.mjs} +1 -1
- package/dist/{chunk-PRL7FXG4.cjs → chunk-RDNKQ5MK.cjs} +12 -13
- package/dist/{chunk-VJI2LWTL.cjs → chunk-RFNQTQ44.cjs} +2 -2
- package/dist/{chunk-IG2JE6WJ.mjs → chunk-RLEAVG6G.mjs} +1 -1
- package/dist/{chunk-VO5XDZHK.mjs → chunk-RPA45OQS.mjs} +2 -2
- package/dist/{chunk-PNWRH6TR.mjs → chunk-RZ6XUEQS.mjs} +4 -4
- package/dist/{chunk-S6RUJRWI.mjs → chunk-S3IWDDQ3.mjs} +1 -1
- package/dist/{chunk-EGHPFXPZ.cjs → chunk-SAPG45RA.cjs} +23 -23
- 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-A7EJATEW.mjs → chunk-TLSGRK7E.mjs} +4 -4
- 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-UDMBUTJD.mjs +85 -0
- package/dist/{chunk-WJ4NUY2H.mjs → chunk-UF4BNKKJ.mjs} +4 -4
- package/dist/{chunk-L7Y65BQU.cjs → chunk-UGD53SNO.cjs} +50 -50
- package/dist/{chunk-DD22NQFX.cjs → chunk-UGLTOLTJ.cjs} +2 -2
- package/dist/{chunk-G7B6NU4X.cjs → chunk-VFMHE5D3.cjs} +3 -3
- package/dist/{chunk-4SLHSODZ.cjs → chunk-VGHDPEPQ.cjs} +15 -15
- package/dist/{chunk-IXO6O2EL.cjs → chunk-VGVRGGP4.cjs} +2 -2
- package/dist/{chunk-47R7CX4A.mjs → chunk-VPGEYX5Y.mjs} +4 -4
- package/dist/chunk-VS7HLH4S.cjs +385 -0
- package/dist/{chunk-YRXPDKMM.cjs → chunk-W53Z4WDI.cjs} +8 -8
- package/dist/{chunk-NNGBTJCX.cjs → chunk-W6C3LEXX.cjs} +83 -25
- package/dist/{chunk-4VLXQ55O.cjs → chunk-WIZRYFB2.cjs} +3 -3
- package/dist/chunk-WMRGIQTA.cjs +48 -0
- package/dist/{chunk-52LTENRE.cjs → chunk-WOAXQ5MZ.cjs} +9 -9
- package/dist/{chunk-C6HGUTXB.mjs → chunk-XBSIGZ4J.mjs} +2 -3
- package/dist/{chunk-S7QEQCVV.mjs → chunk-XGL42MQ7.mjs} +1 -1
- package/dist/{chunk-JHZ6HULQ.cjs → chunk-XOFJUSWC.cjs} +4 -4
- package/dist/{chunk-LJKTJNOF.cjs → chunk-XOGCNKB7.cjs} +3 -3
- package/dist/{chunk-7JTVN6IJ.mjs → chunk-XOXCQGAF.mjs} +7 -6
- package/dist/{chunk-LIC6CMLB.mjs → chunk-YH7ENV3K.mjs} +18 -18
- package/dist/{chunk-ZJGFAW5U.mjs → chunk-YHHOTKUT.mjs} +5 -1
- package/dist/{chunk-B3IRRANH.mjs → chunk-YHM4PXJY.mjs} +1 -1
- package/dist/{chunk-PDACTAVX.mjs → chunk-YOVSWY2E.mjs} +1 -1
- package/dist/{chunk-ZEWIWAS2.mjs → chunk-YSU3WCW6.mjs} +2 -2
- package/dist/{chunk-R5X7FDOG.mjs → chunk-YU2MNIIY.mjs} +1 -1
- package/dist/{chunk-42EUEYW6.cjs → chunk-YUQUGVSV.cjs} +8 -8
- package/dist/{chunk-4STJ6LGR.mjs → chunk-Z3RM3VA2.mjs} +1 -1
- package/dist/{chunk-MBD34AS5.cjs → chunk-Z5BANEQD.cjs} +6 -6
- package/dist/{chunk-4PWGLPL6.mjs → chunk-ZIEO3DQ3.mjs} +26 -15
- package/dist/{chunk-2G6JPLSL.cjs → chunk-ZIYJWJV2.cjs} +27 -20
- package/dist/{chunk-KZ5BOWJS.cjs → chunk-ZKNXCRUQ.cjs} +28 -28
- package/dist/{cli-runtime.d-CGMGs1Zz.d.mts → cli-runtime.d-D8O1v2_X.d.mts} +7 -6
- package/dist/{cli-runtime.d-BG9q2_vC.d.ts → cli-runtime.d-hf4L1MNP.d.ts} +7 -6
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-component.d-B84GPb_u.d.ts → client-component.d-CX8UCQh-.d.ts} +1 -1
- package/dist/{client-component.d-CdsG1E7p.d.mts → client-component.d-DFwUHlOz.d.mts} +1 -1
- package/dist/{client-plugins.d-DX-iCJWE.d.mts → client-plugins.d-BflSNO-b.d.mts} +5 -16
- package/dist/{client-plugins.d-FptsHgls.d.ts → client-plugins.d-qWp8hNwd.d.ts} +5 -16
- package/dist/client-plugins.d.mts +5 -4
- package/dist/client-plugins.d.ts +5 -4
- package/dist/client.cjs +9 -8
- package/dist/client.d.mts +23 -154
- package/dist/client.d.ts +23 -154
- package/dist/client.mjs +8 -7
- package/dist/config.d.mts +5 -4
- package/dist/config.d.ts +5 -4
- package/dist/cron.cjs +3 -3
- package/dist/cron.mjs +2 -2
- package/dist/desktop.d.mts +6 -5
- package/dist/desktop.d.ts +6 -5
- package/dist/{devtools-TMATFNUY.cjs → devtools-EI5N366Z.cjs} +17 -17
- package/dist/{devtools-7P3OUNLV.mjs → devtools-XJHODO5H.mjs} +14 -14
- package/dist/docs.cjs +18 -18
- package/dist/docs.d.mts +7 -6
- package/dist/docs.d.ts +7 -6
- package/dist/docs.mjs +17 -17
- package/dist/environment/vite.cjs +8 -7
- package/dist/environment/vite.d.mts +9 -0
- package/dist/environment/vite.d.ts +9 -0
- package/dist/environment/vite.mjs +7 -6
- package/dist/{handler.d-Cy3XbY_W.d.ts → handler.d-C2oRihfa.d.ts} +1 -1
- package/dist/{handler.d-DSwLTpa5.d.mts → handler.d-DoH5Krkq.d.mts} +1 -1
- package/dist/{headers.d-DiL9YTH3.d.mts → headers.d-BrX53wFQ.d.mts} +1 -1
- package/dist/{headers.d-Qbjo38a0.d.ts → headers.d-Dj0mfYpb.d.ts} +1 -1
- package/dist/index.cjs +90 -82
- package/dist/{index.d-OccJoC6I.d.ts → index.d-Dhc2scRl.d.ts} +1 -1
- package/dist/{index.d-CqQKX3s6.d.mts → index.d-DzDHOttz.d.mts} +1 -1
- package/dist/index.d.mts +29 -27
- package/dist/index.d.ts +29 -27
- package/dist/index.mjs +92 -84
- package/dist/instrumentation.cjs +3 -3
- package/dist/instrumentation.mjs +2 -2
- package/dist/integrations/orm.cjs +3 -3
- package/dist/integrations/orm.d.mts +5 -4
- package/dist/integrations/orm.d.ts +5 -4
- package/dist/integrations/orm.mjs +2 -2
- package/dist/integrations.cjs +2 -2
- package/dist/integrations.d.mts +5 -4
- package/dist/integrations.d.ts +5 -4
- package/dist/integrations.mjs +1 -1
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +15 -8
- package/dist/internal/app-markdown-runtime.d.ts +15 -8
- package/dist/internal/app-markdown-runtime.mjs +3 -3
- package/dist/internal/build-runtime.cjs +63 -62
- package/dist/internal/build-runtime.d.mts +8 -7
- package/dist/internal/build-runtime.d.ts +8 -7
- package/dist/internal/build-runtime.mjs +62 -61
- package/dist/internal/cli-runtime.cjs +37 -34
- package/dist/internal/cli-runtime.d.mts +12 -11
- package/dist/internal/cli-runtime.d.ts +12 -11
- package/dist/internal/cli-runtime.mjs +39 -36
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +112 -14
- package/dist/internal/client-runtime.d.mts +29 -22
- package/dist/internal/client-runtime.d.ts +29 -22
- package/dist/internal/client-runtime.mjs +104 -6
- package/dist/internal/compression-runtime.d.mts +5 -4
- package/dist/internal/compression-runtime.d.ts +5 -4
- package/dist/internal/config-runtime.cjs +16 -16
- package/dist/internal/config-runtime.d.mts +7 -6
- package/dist/internal/config-runtime.d.ts +7 -6
- package/dist/internal/config-runtime.mjs +15 -15
- package/dist/internal/docs-precompiled-runtime.cjs +1 -1
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions.cjs +3 -3
- package/dist/internal/form-actions.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +11 -11
- package/dist/internal/infra-analytics-runtime.mjs +9 -9
- package/dist/internal/island-codec.cjs +3 -3
- package/dist/internal/island-codec.mjs +2 -2
- package/dist/internal/island-value-store.d.mts +1 -1
- package/dist/internal/island-value-store.d.ts +1 -1
- package/dist/internal/islands-boot.cjs +39 -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 +38 -4
- package/dist/internal/islands-runtime.cjs +10 -56
- package/dist/internal/islands-runtime.mjs +6 -52
- package/dist/internal/islands-server.cjs +4 -4
- package/dist/internal/islands-server.mjs +3 -3
- package/dist/internal/islx-actions-client.cjs +36 -0
- package/dist/internal/islx-actions-client.d.mts +13 -0
- package/dist/internal/islx-actions-client.d.ts +13 -0
- package/dist/internal/islx-actions-client.mjs +36 -0
- package/dist/internal/islx-actions-server.cjs +8 -0
- package/dist/internal/islx-actions-server.d.mts +6 -0
- package/dist/internal/islx-actions-server.d.ts +6 -0
- package/dist/internal/islx-actions-server.mjs +8 -0
- package/dist/internal/islx-client.d.mts +0 -4
- package/dist/internal/islx-client.d.ts +0 -4
- package/dist/internal/isolated-boundary.cjs +3 -3
- package/dist/internal/isolated-boundary.d.mts +1 -1
- package/dist/internal/isolated-boundary.d.ts +1 -1
- package/dist/internal/isolated-boundary.mjs +2 -2
- package/dist/internal/metadata-image-runtime.cjs +4 -2
- package/dist/internal/metadata-image-runtime.d.mts +18 -2
- package/dist/internal/metadata-image-runtime.d.ts +18 -2
- package/dist/internal/metadata-image-runtime.mjs +5 -3
- package/dist/internal/native-server-fns.cjs +5 -4
- package/dist/internal/native-server-fns.mjs +4 -3
- package/dist/internal/navigation-neutral.cjs +36 -0
- package/dist/internal/navigation-neutral.d.mts +14 -0
- package/dist/internal/navigation-neutral.d.ts +14 -0
- package/dist/internal/navigation-neutral.mjs +36 -0
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +36 -36
- package/dist/internal/production-runtime.d.mts +15 -13
- package/dist/internal/production-runtime.d.ts +15 -13
- package/dist/internal/production-runtime.mjs +46 -46
- package/dist/internal/server-tree.cjs +5 -4
- package/dist/internal/server-tree.d.mts +3 -4
- package/dist/internal/server-tree.d.ts +3 -4
- package/dist/internal/server-tree.mjs +4 -3
- package/dist/internal/spa-router.cjs +44 -0
- package/dist/internal/spa-router.d.mts +42 -0
- package/dist/internal/spa-router.d.ts +42 -0
- package/dist/internal/spa-router.mjs +44 -0
- package/dist/internal/start-manifest.d.mts +5 -4
- package/dist/internal/start-manifest.d.ts +5 -4
- package/dist/internal/vercel-edge-middleware.cjs +4 -4
- package/dist/internal/vercel-edge-middleware.mjs +3 -3
- package/dist/island-value-protocol.d-fEoc1m8e.d.mts +27 -0
- package/dist/island-value-protocol.d-fEoc1m8e.d.ts +27 -0
- package/dist/{layers-5ZD4764G.mjs → layers-744BBUY5.mjs} +2 -2
- package/dist/layers-XLOMMQP7.cjs +21 -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/markdown.cjs +3 -3
- package/dist/markdown.d.mts +5 -4
- package/dist/markdown.d.ts +5 -4
- package/dist/markdown.mjs +2 -2
- package/dist/middleware.cjs +10 -10
- package/dist/middleware.d.mts +5 -4
- package/dist/middleware.d.ts +5 -4
- package/dist/middleware.mjs +9 -9
- package/dist/{mount.d-AcJaUtHF.d.mts → mount.d-DOaeUoWq.d.mts} +1 -1
- package/dist/{mount.d-CPzqOm-a.d.ts → mount.d-DwXjaOHY.d.ts} +1 -1
- package/dist/{native-server-fn-handler-XRTZR7SZ.cjs → native-server-fn-handler-57TCQPSM.cjs} +6 -6
- package/dist/{native-server-fn-handler-WYYY4YBN.mjs → native-server-fn-handler-PYK65A46.mjs} +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-C4i5Y39E.d.mts → navigation-delegate.d-BElGUMgt.d.mts} +1 -1
- package/dist/{navigation-delegate.d-_Df9DnPY.d.ts → navigation-delegate.d-o3pPd9VI.d.ts} +1 -1
- package/dist/navigation-errors.d-DwHtoMyR.d.mts +13 -0
- package/dist/navigation-errors.d-DwHtoMyR.d.ts +13 -0
- package/dist/navigation.cjs +6 -6
- package/dist/navigation.d.mts +10 -9
- package/dist/navigation.d.ts +10 -9
- package/dist/navigation.mjs +5 -5
- package/dist/{nitro-NUCTYEKJ.cjs → nitro-XGIO6EQN.cjs} +7 -7
- package/dist/{nitro-VCJ6QQSI.mjs → nitro-YLTGVGK4.mjs} +3 -3
- package/dist/node-module-bundle-TNSY5PAC.cjs +15 -0
- package/dist/{node-module-bundle-XPLBMXRD.mjs → node-module-bundle-ZWCQJCKA.mjs} +3 -1
- 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 +50 -48
- package/dist/plugin.d.mts +9 -8
- package/dist/plugin.d.ts +9 -8
- package/dist/plugin.mjs +49 -47
- package/dist/query/client.cjs +10 -10
- package/dist/query/client.mjs +5 -5
- package/dist/{render-plan.d-CslZE7o7.d.ts → render-plan.d-BD06tqFA.d.ts} +1 -1
- package/dist/{render-plan.d-4V_NmaA6.d.mts → render-plan.d-xWCRAJeR.d.mts} +1 -1
- package/dist/renderer/none/server.cjs +5 -1
- package/dist/renderer/none/server.d.mts +3 -1
- package/dist/renderer/none/server.d.ts +3 -1
- package/dist/renderer/none/server.mjs +4 -0
- package/dist/renderer/react/server.cjs +6 -6
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +34 -15
- package/dist/renderer-client.d.mts +16 -100
- package/dist/renderer-client.d.ts +16 -100
- package/dist/renderer-client.mjs +23 -4
- package/dist/renderer.cjs +4 -2
- package/dist/renderer.d.mts +49 -6
- package/dist/renderer.d.ts +49 -6
- package/dist/renderer.mjs +3 -1
- package/dist/{request.d-CbV3y7j3.d.ts → request.d-DUMuWxSN.d.ts} +1 -1
- package/dist/{request.d-CmLTxEgS.d.mts → request.d-Dx82V8bz.d.mts} +1 -1
- package/dist/request.d.mts +6 -5
- package/dist/request.d.ts +6 -5
- package/dist/{route-rendering.d-CETnXNez.d.ts → route-rendering.d-BwBVpLtD.d.ts} +1 -1
- package/dist/{route-rendering.d-CmoqfOmj.d.mts → route-rendering.d-DJh6GauM.d.mts} +1 -1
- package/dist/{router.d-ktz7pwYm.d.mts → router.d-BtkKDxUB.d.mts} +1 -1
- package/dist/{router.d-Dga3N5YO.d.ts → router.d-CJBSG5jr.d.ts} +1 -1
- package/dist/routes.cjs +5 -5
- package/dist/routes.d.mts +5 -4
- package/dist/routes.d.ts +5 -4
- package/dist/routes.mjs +4 -4
- package/dist/{rsc-pipeline-N7CWJW7T.mjs → rsc-pipeline-GD6KLOIG.mjs} +20 -20
- package/dist/{rsc-pipeline-JLYD26AR.cjs → rsc-pipeline-H5AXQA7A.cjs} +21 -21
- package/dist/{runtime-QXX2A4TS.mjs → runtime-OJ7FXFUI.mjs} +22 -22
- package/dist/{runtime-F5NSS4DD.cjs → runtime-YWQVBC3V.cjs} +32 -32
- package/dist/{runtime.d-BWLZUOfA.d.ts → runtime.d-BQnD0cfC.d.ts} +1 -1
- package/dist/{runtime.d-DuaXEM0p.d.mts → runtime.d-C4SuZXf6.d.mts} +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-action-security.cjs +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-CqxtJmqP.d.mts → server-components-status.d-9rH7ZoEq.d.mts} +1 -1
- package/dist/{server-components-status.d-C5JpC7_Y.d.ts → server-components-status.d-rfKOcE0N.d.ts} +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 +7 -6
- package/dist/server-plugins.d.ts +7 -6
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query.cjs +6 -6
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +95 -90
- package/dist/server.d.mts +16 -15
- package/dist/server.d.ts +16 -15
- package/dist/server.mjs +61 -56
- 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-DMKiBsHH.d.ts} +20 -4
- package/dist/{spa-router.d-BLE188EL.d.mts → spa-router.d-V6XLSTCy.d.mts} +20 -4
- package/dist/{ssg.d-QrFyU6T4.d.mts → ssg.d-BnCKPQL0.d.mts} +2 -2
- package/dist/{ssg.d-DisOfj0I.d.ts → ssg.d-MNedvvMB.d.ts} +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/store-core.d-Ad5biajo.d.ts +301 -0
- package/dist/store-core.d-BqJI1-ix.d.mts +301 -0
- package/dist/testing.cjs +13 -13
- package/dist/testing.d.mts +5 -4
- package/dist/testing.d.ts +5 -4
- package/dist/testing.mjs +10 -10
- 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-BEKLWa0Z.d.mts} +1 -1
- package/dist/{utils.d-7YcgfTCK.d.ts → utils.d-BdjHKDuT.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +55 -49
- package/dist/vite.d.mts +26 -10
- package/dist/vite.d.ts +26 -10
- package/dist/vite.mjs +54 -48
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +23 -2
- package/types/images.d.ts +9 -0
- package/dist/analyzer-KVTUYGTT.cjs +0 -16
- package/dist/chunk-CQL5ZGFU.cjs +0 -50
- package/dist/chunk-HONTCUK6.mjs +0 -203
- package/dist/chunk-K6PGK7DC.cjs +0 -203
- package/dist/chunk-NBIVGHAT.mjs +0 -50
- package/dist/island-value-protocol.d-BRayRghM.d.mts +0 -12
- package/dist/island-value-protocol.d-BRayRghM.d.ts +0 -12
- package/dist/layers-HMEGUEXM.cjs +0 -21
- package/dist/node-module-bundle-M6BISE2P.cjs +0 -13
- package/dist/search-client-6NVC6HM2.cjs +0 -15
- package/dist/session-H4TWP73H.cjs +0 -24
- 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-PBJ7MEOV.cjs → chunk-OZUINP2P.cjs} +2 -2
- package/dist/{chunk-CUZT7474.cjs → chunk-TCMRLW3K.cjs} +0 -0
- package/dist/{chunk-Q3DO7MVK.mjs → chunk-URBP6DLH.mjs} +0 -0
- package/dist/{chunk-7FQFK3OA.mjs → chunk-V7HNYR76.mjs} +3 -3
- /package/dist/{chunk-AOTD2N5P.cjs → chunk-WGWWRV2M.cjs} +0 -0
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var _chunkRK3YYUX6cjs = require('./chunk-RK3YYUX6.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
3
|
var _chunkPZXYAWYGcjs = require('./chunk-PZXYAWYG.cjs');
|
|
7
4
|
|
|
8
5
|
|
|
@@ -16,24 +13,20 @@ var _chunkZNXU4E6Acjs = require('./chunk-ZNXU4E6A.cjs');
|
|
|
16
13
|
var _chunkEOXPRC2Ccjs = require('./chunk-EOXPRC2C.cjs');
|
|
17
14
|
|
|
18
15
|
|
|
19
|
-
var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
|
|
20
16
|
|
|
21
17
|
|
|
22
18
|
|
|
23
19
|
|
|
20
|
+
var _chunkB7L24VPXcjs = require('./chunk-B7L24VPX.cjs');
|
|
24
21
|
|
|
25
22
|
|
|
26
23
|
|
|
27
|
-
var _chunk2PJVEL56cjs = require('./chunk-2PJVEL56.cjs');
|
|
28
24
|
|
|
29
25
|
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
var _chunkWKVYF2B5cjs = require('./chunk-WKVYF2B5.cjs');
|
|
26
|
+
var _chunk2PJVEL56cjs = require('./chunk-2PJVEL56.cjs');
|
|
34
27
|
|
|
35
28
|
|
|
36
|
-
var
|
|
29
|
+
var _chunkI2BYNELAcjs = require('./chunk-I2BYNELA.cjs');
|
|
37
30
|
|
|
38
31
|
|
|
39
32
|
|
|
@@ -43,11 +36,6 @@ var _chunkDVJM55D2cjs = require('./chunk-DVJM55D2.cjs');
|
|
|
43
36
|
var _chunkUZCMMJJTcjs = require('./chunk-UZCMMJJT.cjs');
|
|
44
37
|
|
|
45
38
|
|
|
46
|
-
var _chunk3BIASUGRcjs = require('./chunk-3BIASUGR.cjs');
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
39
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
52
40
|
|
|
53
41
|
// src/mutation-client.ts
|
|
@@ -894,198 +882,41 @@ async function clearPersistedCache() {
|
|
|
894
882
|
|
|
895
883
|
// src/store.ts
|
|
896
884
|
|
|
897
|
-
var
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
}
|
|
908
|
-
function pickState(state, keys) {
|
|
909
|
-
const slice = {};
|
|
910
|
-
for (const key of keys) {
|
|
911
|
-
slice[key] = state[key];
|
|
912
|
-
}
|
|
913
|
-
return slice;
|
|
914
|
-
}
|
|
915
|
-
function getEnumerableKeys(state) {
|
|
916
|
-
return Reflect.ownKeys(state).filter(
|
|
917
|
-
(key) => Object.prototype.propertyIsEnumerable.call(state, key)
|
|
918
|
-
);
|
|
919
|
-
}
|
|
920
|
-
function getChangedKeys(state, previousState) {
|
|
921
|
-
const keys = /* @__PURE__ */ new Set([...getEnumerableKeys(state), ...getEnumerableKeys(previousState)]);
|
|
922
|
-
return [...keys].filter((key) => !Object.is(state[key], previousState[key]));
|
|
923
|
-
}
|
|
924
|
-
function normalizeKeys(keys) {
|
|
925
|
-
return Array.from(new Set(keys));
|
|
926
|
-
}
|
|
927
|
-
function resolveValue(value, previousValue) {
|
|
928
|
-
return typeof value === "function" ? value(previousValue) : value;
|
|
929
|
-
}
|
|
930
|
-
function isStoreKey(value) {
|
|
931
|
-
return typeof value === "string" || typeof value === "number" || typeof value === "symbol";
|
|
932
|
-
}
|
|
933
|
-
function createStore(initialState, extend) {
|
|
934
|
-
const initialSnapshot = cloneState(initialState);
|
|
935
|
-
let state = cloneState(initialState);
|
|
936
|
-
const subscriptions = /* @__PURE__ */ new Set();
|
|
937
|
-
const addSubscription = (keys, notify) => {
|
|
938
|
-
const subscription = {
|
|
939
|
-
// Object property enumeration returns numeric keys as strings.
|
|
940
|
-
keys: _nullishCoalesce(_optionalChain([keys, 'optionalAccess', _32 => _32.map, 'call', _33 => _33((key) => typeof key === "number" ? String(key) : key)]), () => ( null)),
|
|
941
|
-
notify
|
|
942
|
-
};
|
|
943
|
-
subscriptions.add(subscription);
|
|
944
|
-
return () => {
|
|
945
|
-
subscriptions.delete(subscription);
|
|
946
|
-
};
|
|
947
|
-
};
|
|
948
|
-
const emit = (nextState, previousState) => {
|
|
949
|
-
const changedKeys = getChangedKeys(nextState, previousState);
|
|
950
|
-
if (changedKeys.length === 0) {
|
|
951
|
-
return;
|
|
952
|
-
}
|
|
953
|
-
const changedKeySet = new Set(changedKeys);
|
|
954
|
-
for (const subscription of subscriptions) {
|
|
955
|
-
if (subscription.keys === null || subscription.keys.some((key) => changedKeySet.has(key))) {
|
|
956
|
-
subscription.notify(nextState, previousState);
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
};
|
|
960
|
-
const getState = (key) => {
|
|
961
|
-
return key === void 0 ? state : state[key];
|
|
962
|
-
};
|
|
963
|
-
const replaceState2 = (nextState) => {
|
|
964
|
-
const previousState = state;
|
|
965
|
-
const resolvedState = typeof nextState === "function" ? nextState(previousState) : nextState;
|
|
966
|
-
state = resolvedState;
|
|
967
|
-
emit(state, previousState);
|
|
968
|
-
return state;
|
|
969
|
-
};
|
|
970
|
-
const setState = (keyOrPatch, value) => {
|
|
971
|
-
const previousState = state;
|
|
972
|
-
let nextState;
|
|
973
|
-
if (isStoreKey(keyOrPatch)) {
|
|
974
|
-
const key = keyOrPatch;
|
|
975
|
-
const nextValue = resolveValue(value, previousState[key]);
|
|
976
|
-
if (Object.is(previousState[key], nextValue)) {
|
|
977
|
-
return nextValue;
|
|
885
|
+
var bindReactUse = (store) => (keyOrKeys) => {
|
|
886
|
+
if (Array.isArray(keyOrKeys)) {
|
|
887
|
+
const keys = _chunkB7L24VPXcjs.normalizeStoreKeys.call(void 0, keyOrKeys);
|
|
888
|
+
let lastState = store.getSnapshot();
|
|
889
|
+
let lastSlice = _chunkB7L24VPXcjs.pickStoreState.call(void 0, lastState, keys);
|
|
890
|
+
const getSnapshot = () => {
|
|
891
|
+
const state = store.getSnapshot();
|
|
892
|
+
if (lastState !== state) {
|
|
893
|
+
lastState = state;
|
|
894
|
+
lastSlice = _chunkB7L24VPXcjs.pickStoreState.call(void 0, state, keys);
|
|
978
895
|
}
|
|
979
|
-
|
|
980
|
-
...previousState,
|
|
981
|
-
[key]: nextValue
|
|
982
|
-
};
|
|
983
|
-
state = nextState;
|
|
984
|
-
emit(nextState, previousState);
|
|
985
|
-
return nextValue;
|
|
986
|
-
}
|
|
987
|
-
const patch = typeof keyOrPatch === "function" ? keyOrPatch(previousState) : keyOrPatch;
|
|
988
|
-
nextState = {
|
|
989
|
-
...previousState,
|
|
990
|
-
...patch
|
|
896
|
+
return lastSlice;
|
|
991
897
|
};
|
|
992
|
-
state = nextState;
|
|
993
|
-
emit(nextState, previousState);
|
|
994
|
-
return nextState;
|
|
995
|
-
};
|
|
996
|
-
const subscribeState = (keyOrListener, listener) => {
|
|
997
|
-
if (typeof keyOrListener === "function") {
|
|
998
|
-
return addSubscription(null, (nextState, previousState) => {
|
|
999
|
-
keyOrListener(nextState, previousState);
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
if (Array.isArray(keyOrListener)) {
|
|
1003
|
-
const keys = normalizeKeys(keyOrListener);
|
|
1004
|
-
return addSubscription(keys, (nextState, previousState) => {
|
|
1005
|
-
listener(
|
|
1006
|
-
pickState(nextState, keys),
|
|
1007
|
-
pickState(previousState, keys)
|
|
1008
|
-
);
|
|
1009
|
-
});
|
|
1010
|
-
}
|
|
1011
|
-
const key = keyOrListener;
|
|
1012
|
-
return addSubscription([key], (nextState, previousState) => {
|
|
1013
|
-
listener(nextState[key], previousState[key]);
|
|
1014
|
-
});
|
|
1015
|
-
};
|
|
1016
|
-
const useStateValue = (keyOrKeys) => {
|
|
1017
|
-
if (Array.isArray(keyOrKeys)) {
|
|
1018
|
-
const keys = normalizeKeys(keyOrKeys);
|
|
1019
|
-
let lastState = state;
|
|
1020
|
-
let lastSlice = pickState(state, keys);
|
|
1021
|
-
const getSnapshot = () => {
|
|
1022
|
-
if (lastState !== state) {
|
|
1023
|
-
lastState = state;
|
|
1024
|
-
lastSlice = pickState(state, keys);
|
|
1025
|
-
}
|
|
1026
|
-
return lastSlice;
|
|
1027
|
-
};
|
|
1028
|
-
return _react.useSyncExternalStore.call(void 0,
|
|
1029
|
-
(notify) => addSubscription(keys, () => notify()),
|
|
1030
|
-
getSnapshot,
|
|
1031
|
-
getSnapshot
|
|
1032
|
-
);
|
|
1033
|
-
}
|
|
1034
|
-
if (isStoreKey(keyOrKeys)) {
|
|
1035
|
-
return _react.useSyncExternalStore.call(void 0,
|
|
1036
|
-
(notify) => addSubscription([keyOrKeys], () => notify()),
|
|
1037
|
-
() => state[keyOrKeys],
|
|
1038
|
-
() => state[keyOrKeys]
|
|
1039
|
-
);
|
|
1040
|
-
}
|
|
1041
898
|
return _react.useSyncExternalStore.call(void 0,
|
|
1042
|
-
(notify) =>
|
|
1043
|
-
|
|
1044
|
-
|
|
899
|
+
(notify) => store.subscribe(keys, () => notify()),
|
|
900
|
+
getSnapshot,
|
|
901
|
+
getSnapshot
|
|
1045
902
|
);
|
|
1046
|
-
};
|
|
1047
|
-
const store = {
|
|
1048
|
-
use: useStateValue,
|
|
1049
|
-
get: getState,
|
|
1050
|
-
set: setState,
|
|
1051
|
-
replace: replaceState2,
|
|
1052
|
-
reset: () => replaceState2(cloneState(initialSnapshot)),
|
|
1053
|
-
subscribe: subscribeState
|
|
1054
|
-
};
|
|
1055
|
-
for (const key of getEnumerableKeys(initialSnapshot)) {
|
|
1056
|
-
if (RESERVED_STORE_KEYS.has(key)) {
|
|
1057
|
-
throw new Error(
|
|
1058
|
-
`createStore does not allow the reserved key "${String(key)}" in the initial state.`
|
|
1059
|
-
);
|
|
1060
|
-
}
|
|
1061
|
-
const field = (() => useStateValue(key));
|
|
1062
|
-
field.get = () => state[key];
|
|
1063
|
-
field.set = (value) => setState(key, value);
|
|
1064
|
-
field.subscribe = (listener) => subscribeState(key, listener);
|
|
1065
|
-
Object.defineProperty(store, key, {
|
|
1066
|
-
configurable: false,
|
|
1067
|
-
enumerable: true,
|
|
1068
|
-
value: field,
|
|
1069
|
-
writable: false
|
|
1070
|
-
});
|
|
1071
903
|
}
|
|
1072
|
-
if (
|
|
1073
|
-
const
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
}
|
|
1080
|
-
Object.defineProperty(store, name, {
|
|
1081
|
-
configurable: false,
|
|
1082
|
-
enumerable: true,
|
|
1083
|
-
value: method,
|
|
1084
|
-
writable: false
|
|
1085
|
-
});
|
|
1086
|
-
}
|
|
904
|
+
if (_chunkB7L24VPXcjs.isStoreKey.call(void 0, keyOrKeys)) {
|
|
905
|
+
const key = keyOrKeys;
|
|
906
|
+
return _react.useSyncExternalStore.call(void 0,
|
|
907
|
+
(notify) => store.subscribe(key, () => notify()),
|
|
908
|
+
() => store.get(key),
|
|
909
|
+
() => store.get(key)
|
|
910
|
+
);
|
|
1087
911
|
}
|
|
1088
|
-
return
|
|
912
|
+
return _react.useSyncExternalStore.call(void 0,
|
|
913
|
+
(notify) => store.subscribe(() => notify()),
|
|
914
|
+
store.getSnapshot,
|
|
915
|
+
store.getSnapshot
|
|
916
|
+
);
|
|
917
|
+
};
|
|
918
|
+
function createStore(initialState, extend) {
|
|
919
|
+
return _chunkB7L24VPXcjs.createStoreInstance.call(void 0, initialState, extend, bindReactUse);
|
|
1089
920
|
}
|
|
1090
921
|
|
|
1091
922
|
// src/client/link.tsx
|
|
@@ -1115,51 +946,20 @@ function useOptionalFarm() {
|
|
|
1115
946
|
function isModifierEvent(e) {
|
|
1116
947
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1117
948
|
}
|
|
1118
|
-
function isExternalUrl(href) {
|
|
1119
|
-
return href.startsWith("//") || /^[a-zA-Z][a-zA-Z\d+.-]*:/.test(href);
|
|
1120
|
-
}
|
|
1121
949
|
function getRouter() {
|
|
1122
950
|
if (typeof window !== "undefined" && window.__FARM_SPA_ROUTER__) {
|
|
1123
951
|
return window.__FARM_SPA_ROUTER__;
|
|
1124
952
|
}
|
|
1125
953
|
return null;
|
|
1126
954
|
}
|
|
1127
|
-
function normalizePrefetch(prefetch2) {
|
|
1128
|
-
if (prefetch2 === false || prefetch2 === "none") {
|
|
1129
|
-
return { intent: false, viewport: false, render: false };
|
|
1130
|
-
}
|
|
1131
|
-
if (prefetch2 === true) {
|
|
1132
|
-
return { intent: true, viewport: true, render: false };
|
|
1133
|
-
}
|
|
1134
|
-
if (prefetch2 === "hover") {
|
|
1135
|
-
return { intent: true, viewport: false, render: false };
|
|
1136
|
-
}
|
|
1137
|
-
if (prefetch2 === "intent") {
|
|
1138
|
-
return { intent: true, viewport: false, render: false };
|
|
1139
|
-
}
|
|
1140
|
-
if (prefetch2 === "viewport") {
|
|
1141
|
-
return { intent: false, viewport: true, render: false };
|
|
1142
|
-
}
|
|
1143
|
-
if (prefetch2 === "render") {
|
|
1144
|
-
return { intent: false, viewport: false, render: true };
|
|
1145
|
-
}
|
|
1146
|
-
return { intent: false, viewport: false, render: false };
|
|
1147
|
-
}
|
|
1148
|
-
function prefetchAttribute(modes) {
|
|
1149
|
-
if (modes.intent && modes.viewport) return void 0;
|
|
1150
|
-
if (modes.render) return "render";
|
|
1151
|
-
if (modes.viewport) return "viewport";
|
|
1152
|
-
if (modes.intent) return "intent";
|
|
1153
|
-
return "none";
|
|
1154
|
-
}
|
|
1155
955
|
function LinkInner({
|
|
1156
956
|
href,
|
|
1157
957
|
params,
|
|
1158
958
|
query,
|
|
1159
959
|
hash,
|
|
1160
960
|
trailingSlash,
|
|
1161
|
-
prefetch: prefetch2
|
|
1162
|
-
prefetchDelay
|
|
961
|
+
prefetch: prefetch2,
|
|
962
|
+
prefetchDelay: prefetchDelayOption,
|
|
1163
963
|
replace = false,
|
|
1164
964
|
scroll = true,
|
|
1165
965
|
viewTransition = false,
|
|
@@ -1177,21 +977,27 @@ function LinkInner({
|
|
|
1177
977
|
const intentTimeoutRef = _react.useRef.call(void 0, null);
|
|
1178
978
|
const activePrefetch = _react.useRef.call(void 0, null);
|
|
1179
979
|
const farm = useOptionalFarm();
|
|
1180
|
-
const
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
980
|
+
const link = _chunkB7L24VPXcjs.resolveFarmLink.call(void 0,
|
|
981
|
+
{
|
|
982
|
+
href,
|
|
983
|
+
params,
|
|
984
|
+
query,
|
|
985
|
+
hash,
|
|
986
|
+
trailingSlash,
|
|
987
|
+
prefetch: prefetch2,
|
|
988
|
+
prefetchDelay: prefetchDelayOption,
|
|
989
|
+
replace,
|
|
990
|
+
scroll,
|
|
991
|
+
viewTransition,
|
|
992
|
+
locale
|
|
993
|
+
},
|
|
994
|
+
_optionalChain([farm, 'optionalAccess', _32 => _32.basePath])
|
|
1191
995
|
);
|
|
1192
|
-
const
|
|
1193
|
-
const
|
|
1194
|
-
const
|
|
996
|
+
const { intent, viewport, render } = link.prefetch;
|
|
997
|
+
const { prefetchDelay, localizedHref } = link;
|
|
998
|
+
const resolvedHref = link.href;
|
|
999
|
+
const isExternal = link.external;
|
|
1000
|
+
const isScriptHref = link.script;
|
|
1195
1001
|
const doPrefetch = _react.useCallback.call(void 0, () => {
|
|
1196
1002
|
if (isExternal || activePrefetch.current) return;
|
|
1197
1003
|
const router = getRouter();
|
|
@@ -1265,42 +1071,42 @@ function LinkInner({
|
|
|
1265
1071
|
}, [intent, isExternal, prefetchDelay, doPrefetch, cancelIntent]);
|
|
1266
1072
|
const handleMouseEnter = _react.useCallback.call(void 0,
|
|
1267
1073
|
(event) => {
|
|
1268
|
-
_optionalChain([onMouseEnter, 'optionalCall',
|
|
1074
|
+
_optionalChain([onMouseEnter, 'optionalCall', _33 => _33(event)]);
|
|
1269
1075
|
scheduleIntentPrefetch();
|
|
1270
1076
|
},
|
|
1271
1077
|
[onMouseEnter, scheduleIntentPrefetch]
|
|
1272
1078
|
);
|
|
1273
1079
|
const handleMouseLeave = _react.useCallback.call(void 0,
|
|
1274
1080
|
(event) => {
|
|
1275
|
-
_optionalChain([onMouseLeave, 'optionalCall',
|
|
1081
|
+
_optionalChain([onMouseLeave, 'optionalCall', _34 => _34(event)]);
|
|
1276
1082
|
cancelIntent();
|
|
1277
1083
|
},
|
|
1278
1084
|
[onMouseLeave, cancelIntent]
|
|
1279
1085
|
);
|
|
1280
1086
|
const handleTouchStart = _react.useCallback.call(void 0,
|
|
1281
1087
|
(event) => {
|
|
1282
|
-
_optionalChain([onTouchStart, 'optionalCall',
|
|
1088
|
+
_optionalChain([onTouchStart, 'optionalCall', _35 => _35(event)]);
|
|
1283
1089
|
scheduleIntentPrefetch();
|
|
1284
1090
|
},
|
|
1285
1091
|
[onTouchStart, scheduleIntentPrefetch]
|
|
1286
1092
|
);
|
|
1287
1093
|
const handleFocus = _react.useCallback.call(void 0,
|
|
1288
1094
|
(event) => {
|
|
1289
|
-
_optionalChain([onFocus, 'optionalCall',
|
|
1095
|
+
_optionalChain([onFocus, 'optionalCall', _36 => _36(event)]);
|
|
1290
1096
|
scheduleIntentPrefetch();
|
|
1291
1097
|
},
|
|
1292
1098
|
[onFocus, scheduleIntentPrefetch]
|
|
1293
1099
|
);
|
|
1294
1100
|
const handleBlur = _react.useCallback.call(void 0,
|
|
1295
1101
|
(event) => {
|
|
1296
|
-
_optionalChain([onBlur, 'optionalCall',
|
|
1102
|
+
_optionalChain([onBlur, 'optionalCall', _37 => _37(event)]);
|
|
1297
1103
|
cancelIntent();
|
|
1298
1104
|
},
|
|
1299
1105
|
[onBlur, cancelIntent]
|
|
1300
1106
|
);
|
|
1301
1107
|
const handleClick = _react.useCallback.call(void 0,
|
|
1302
1108
|
(event) => {
|
|
1303
|
-
_optionalChain([onClick, 'optionalCall',
|
|
1109
|
+
_optionalChain([onClick, 'optionalCall', _38 => _38(event)]);
|
|
1304
1110
|
if (isScriptHref) {
|
|
1305
1111
|
event.preventDefault();
|
|
1306
1112
|
_chunk2PJVEL56cjs.isFarmBlockedNavigationURL.call(void 0, _chunk2PJVEL56cjs.resolveFarmNavigationURL.call(void 0, resolvedHref, window.location.href));
|
|
@@ -1352,7 +1158,6 @@ function LinkInner({
|
|
|
1352
1158
|
"a",
|
|
1353
1159
|
{
|
|
1354
1160
|
ref: setRefs,
|
|
1355
|
-
href: isScriptHref ? void 0 : resolvedHref,
|
|
1356
1161
|
target,
|
|
1357
1162
|
onClick: handleClick,
|
|
1358
1163
|
onMouseEnter: handleMouseEnter,
|
|
@@ -1361,118 +1166,13 @@ function LinkInner({
|
|
|
1361
1166
|
onBlur: handleBlur,
|
|
1362
1167
|
onTouchStart: handleTouchStart,
|
|
1363
1168
|
...props,
|
|
1364
|
-
|
|
1365
|
-
"data-farm-locale": locale,
|
|
1366
|
-
"data-farm-prefetch": prefetchAttribute(prefetchModes),
|
|
1367
|
-
"data-farm-prefetch-delay": intent && prefetchDelay !== _chunkRK3YYUX6cjs.FARM_LINK_PREFETCH_DELAY ? String(prefetchDelay) : void 0,
|
|
1368
|
-
"data-replace": replace ? "" : void 0,
|
|
1369
|
-
"data-no-scroll": !scroll ? "" : void 0,
|
|
1370
|
-
"data-view-transition": viewTransition === "auto" ? "auto" : viewTransition ? "true" : void 0
|
|
1169
|
+
...link.attributes
|
|
1371
1170
|
}
|
|
1372
1171
|
);
|
|
1373
1172
|
}
|
|
1374
1173
|
var LinkWithRef = _react.forwardRef.call(void 0, LinkInner);
|
|
1375
1174
|
LinkWithRef.displayName = "Link";
|
|
1376
1175
|
var Link = LinkWithRef;
|
|
1377
|
-
function resolveLinkHref(href, params, options) {
|
|
1378
|
-
if (isExternalUrl(href)) return href;
|
|
1379
|
-
if (href.startsWith("#") && !params && !options.query && options.hash === void 0) return href;
|
|
1380
|
-
const { pathname, query, hash } = splitInternalHref(href);
|
|
1381
|
-
const resolvedHref = _chunkO4JYMU5Ncjs.buildFarmRoutePath.call(void 0, pathname, params, {
|
|
1382
|
-
query: mergeQueryParams(query, options.query),
|
|
1383
|
-
hash: _nullishCoalesce(options.hash, () => ( hash)),
|
|
1384
|
-
trailingSlash: options.trailingSlash
|
|
1385
|
-
});
|
|
1386
|
-
return applyPreservedSearchParams(resolvedHref);
|
|
1387
|
-
}
|
|
1388
|
-
function withLinkTrailingSlash(href, trailingSlash) {
|
|
1389
|
-
if (!trailingSlash || !href.startsWith("/") || href.startsWith("//")) return href;
|
|
1390
|
-
const end = href.search(/[?#]/);
|
|
1391
|
-
const pathname = end === -1 ? href : href.slice(0, end);
|
|
1392
|
-
if (pathname === "/" || pathname.endsWith("/")) return href;
|
|
1393
|
-
return `${pathname}/${end === -1 ? "" : href.slice(end)}`;
|
|
1394
|
-
}
|
|
1395
|
-
function splitInternalHref(href) {
|
|
1396
|
-
try {
|
|
1397
|
-
const url = new URL(href, "http://farm.local");
|
|
1398
|
-
return {
|
|
1399
|
-
pathname: url.pathname || "/",
|
|
1400
|
-
query: url.searchParams,
|
|
1401
|
-
hash: url.hash ? url.hash.slice(1) : void 0
|
|
1402
|
-
};
|
|
1403
|
-
} catch (e4) {
|
|
1404
|
-
const [withoutHash, rawHash] = href.split("#", 2);
|
|
1405
|
-
const [pathname, rawQuery] = withoutHash.split("?", 2);
|
|
1406
|
-
return {
|
|
1407
|
-
pathname: pathname || "/",
|
|
1408
|
-
query: new URLSearchParams(rawQuery || ""),
|
|
1409
|
-
hash: rawHash
|
|
1410
|
-
};
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
function mergeQueryParams(current, next) {
|
|
1414
|
-
const merged = new URLSearchParams(current);
|
|
1415
|
-
if (next instanceof URLSearchParams) {
|
|
1416
|
-
for (const [key, value] of next.entries()) {
|
|
1417
|
-
merged.append(key, value);
|
|
1418
|
-
}
|
|
1419
|
-
} else if (next) {
|
|
1420
|
-
for (const [key, value] of Object.entries(next)) {
|
|
1421
|
-
const values = Array.isArray(value) ? value : [value];
|
|
1422
|
-
for (const item of values) {
|
|
1423
|
-
if (item == null) continue;
|
|
1424
|
-
merged.append(key, String(item));
|
|
1425
|
-
}
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
return merged.toString() ? merged : void 0;
|
|
1429
|
-
}
|
|
1430
|
-
function applyPreservedSearchParams(href) {
|
|
1431
|
-
const routes = _chunkWKVYF2B5cjs.getFarmSearchPreserveRoutes.call(void 0, );
|
|
1432
|
-
if (routes.length === 0) return href;
|
|
1433
|
-
const documentUrl = typeof window === "undefined" ? _optionalChain([_chunk3BIASUGRcjs._peekCurrentRequest.call(void 0, ), 'optionalAccess', _41 => _41.url]) : window.location.href;
|
|
1434
|
-
if (!documentUrl) return href;
|
|
1435
|
-
const url = _chunk2PJVEL56cjs.resolveFarmNavigationURL.call(void 0, href, documentUrl);
|
|
1436
|
-
const route = routes.find((candidate) => matchManifestRoute(url.pathname, candidate));
|
|
1437
|
-
const preserve = Array.isArray(_optionalChain([route, 'optionalAccess', _42 => _42.search, 'optionalAccess', _43 => _43.preserve])) ? route.search.preserve : [];
|
|
1438
|
-
if (preserve.length === 0) return href;
|
|
1439
|
-
const current = new URL(documentUrl).searchParams;
|
|
1440
|
-
let changed = false;
|
|
1441
|
-
for (const key of preserve) {
|
|
1442
|
-
if (url.searchParams.has(key) || !current.has(key)) continue;
|
|
1443
|
-
for (const value of current.getAll(key)) {
|
|
1444
|
-
url.searchParams.append(key, value);
|
|
1445
|
-
changed = true;
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
if (!changed) return href;
|
|
1449
|
-
return `${url.pathname}${url.search}${url.hash}`;
|
|
1450
|
-
}
|
|
1451
|
-
function matchManifestRoute(pathname, route) {
|
|
1452
|
-
if (!route || !Array.isArray(route.segments)) return false;
|
|
1453
|
-
const routeSegments = route.segments;
|
|
1454
|
-
const normalized = pathname === "/" ? "" : pathname.replace(/^\/+/, "").replace(/\/+$/, "");
|
|
1455
|
-
const pathSegments = normalized ? normalized.split("/") : [];
|
|
1456
|
-
const hasCatchAll = routeSegments.some((segment) => segment.isCatchAll);
|
|
1457
|
-
if (!hasCatchAll && pathSegments.length !== routeSegments.length) {
|
|
1458
|
-
return false;
|
|
1459
|
-
}
|
|
1460
|
-
for (let index = 0; index < routeSegments.length; index++) {
|
|
1461
|
-
const routeSegment = routeSegments[index];
|
|
1462
|
-
const pathSegment = pathSegments[index];
|
|
1463
|
-
if (routeSegment.isCatchAll) {
|
|
1464
|
-
return true;
|
|
1465
|
-
}
|
|
1466
|
-
if (pathSegment === void 0) {
|
|
1467
|
-
if (routeSegment.isOptional) continue;
|
|
1468
|
-
return false;
|
|
1469
|
-
}
|
|
1470
|
-
if (!routeSegment.isDynamic && routeSegment.segment !== pathSegment) {
|
|
1471
|
-
return false;
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
return pathSegments.length === routeSegments.length || hasCatchAll;
|
|
1475
|
-
}
|
|
1476
1176
|
|
|
1477
1177
|
|
|
1478
1178
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkW53Z4WDIcjs = require('./chunk-W53Z4WDI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkADQ2LATRcjs = require('./chunk-ADQ2LATR.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkBTVDYS4Bcjs = require('./chunk-BTVDYS4B.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2NOHVIJ3cjs = require('./chunk-2NOHVIJ3.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk2KMIJDY6cjs = require('./chunk-2KMIJDY6.cjs');
|
|
@@ -29,7 +29,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
|
29
29
|
var _chunk7Q7UB4TLcjs = require('./chunk-7Q7UB4TL.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkNSLRK5DKcjs = require('./chunk-NSLRK5DK.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
@@ -165,7 +165,7 @@ function createFarmAiCatalogResponse(request, input = {}, requestUrl) {
|
|
|
165
165
|
if (_chunk7Q7UB4TLcjs.matchesFarmIfNoneMatch.call(void 0, request.headers.get("if-none-match"), etag)) {
|
|
166
166
|
return new Response(null, { status: 304, headers });
|
|
167
167
|
}
|
|
168
|
-
|
|
168
|
+
_chunk2NOHVIJ3cjs.emitFarmAgentRead.call(void 0, request, card ? "mcp-server-card" : "ai-catalog", 200);
|
|
169
169
|
return new Response(method === "HEAD" ? null : body, { status: 200, headers });
|
|
170
170
|
}
|
|
171
171
|
function corsHeaders() {
|
|
@@ -233,7 +233,7 @@ function createFarmApiCatalogResponse(method, input, request) {
|
|
|
233
233
|
headers: { Allow: "GET, HEAD", "Content-Type": "text/plain; charset=utf-8" }
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
-
if (request)
|
|
236
|
+
if (request) _chunk2NOHVIJ3cjs.emitFarmAgentRead.call(void 0, request, "api-catalog", 200);
|
|
237
237
|
const catalog = createFarmApiCatalog(input);
|
|
238
238
|
return new Response(upperMethod === "HEAD" ? null : JSON.stringify(catalog), {
|
|
239
239
|
status: 200,
|
|
@@ -288,7 +288,7 @@ function createFarmAppManifest(input, registered = []) {
|
|
|
288
288
|
return {
|
|
289
289
|
schemaVersion: 1,
|
|
290
290
|
app: app ? {
|
|
291
|
-
...app.version ? { farm:
|
|
291
|
+
...app.version ? { farm: _chunkNSLRK5DKcjs.FARM_VERSION } : {},
|
|
292
292
|
...app.renderer ? { renderer: input.renderer } : {},
|
|
293
293
|
basePath: input.basePath,
|
|
294
294
|
...app.build ? { build: input.build } : {}
|
|
@@ -319,7 +319,7 @@ function resolveFarmSiteUrl() {
|
|
|
319
319
|
asUrl(read("RAILWAY_PUBLIC_DOMAIN"))
|
|
320
320
|
];
|
|
321
321
|
for (const candidate of candidates) {
|
|
322
|
-
const origin = candidate ?
|
|
322
|
+
const origin = candidate ? _chunkADQ2LATRcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
|
|
323
323
|
if (origin) return origin;
|
|
324
324
|
}
|
|
325
325
|
return null;
|
|
@@ -379,7 +379,7 @@ function listDefaultServer(input) {
|
|
|
379
379
|
authorization: "none",
|
|
380
380
|
resources: [],
|
|
381
381
|
prompts: [],
|
|
382
|
-
tools:
|
|
382
|
+
tools: _chunkW53Z4WDIcjs.FARM_DEFAULT_MCP_TOOLS.map((tool) => ({
|
|
383
383
|
name: tool.name,
|
|
384
384
|
title: tool.title,
|
|
385
385
|
description: tool.description,
|
|
@@ -441,7 +441,7 @@ function listFarmBuiltInRoutePaths(input) {
|
|
|
441
441
|
...agent.manifest !== false ? [FARM_APP_MANIFEST_PATH, FARM_APP_MANIFEST_LEGACY_PATH] : [],
|
|
442
442
|
...agent.apiCatalog ? [FARM_API_CATALOG_PATH] : [],
|
|
443
443
|
...agent.aiCatalog !== false ? [FARM_AI_CATALOG_PATH, FARM_ARD_PATH] : [],
|
|
444
|
-
...agent.mcp === true ? [
|
|
444
|
+
...agent.mcp === true ? [_chunkW53Z4WDIcjs.FARM_DEFAULT_MCP_PATH, `${_chunkW53Z4WDIcjs.FARM_DEFAULT_MCP_PATH}${FARM_MCP_SERVER_CARD_SUFFIX}`] : [],
|
|
445
445
|
..._optionalChain([agent, 'access', _43 => _43.llmsTxt, 'optionalAccess', _44 => _44.enabled]) ? ["/llms.txt"] : [],
|
|
446
446
|
..._optionalChain([agent, 'access', _45 => _45.llmsTxt, 'optionalAccess', _46 => _46.enabled]) && agent.llmsTxt.full ? ["/llms-full.txt"] : [],
|
|
447
447
|
..._optionalChain([agent, 'access', _47 => _47.sitemap, 'optionalAccess', _48 => _48.enabled]) ? ["/sitemap.xml"] : [],
|
|
@@ -481,7 +481,7 @@ function resolveFarmDocsRouteLabel(routePathname, docs) {
|
|
|
481
481
|
for (const entry of entries) {
|
|
482
482
|
const base = entry === "/" ? "" : entry;
|
|
483
483
|
if (page === entry || entry === "/" && page === "/index") {
|
|
484
|
-
return markdown ?
|
|
484
|
+
return markdown ? _chunk2NOHVIJ3cjs.getFarmMarkdownMirrorPath.call(void 0, entry) : entry;
|
|
485
485
|
}
|
|
486
486
|
if (page.startsWith(`${base}/`)) {
|
|
487
487
|
const label = _optionalChain([docs, 'access', _55 => _55.pages, 'optionalAccess', _56 => _56.has, 'call', _57 => _57(page)]) && PUBLISHED_PAGE_PATH.test(page) ? page : `${base}/[...slug]`;
|
|
@@ -504,7 +504,7 @@ function resolveFarmMarkdownRouteLabel(routePathname, matchPagePattern) {
|
|
|
504
504
|
if (!routePathname.toLowerCase().endsWith(".md")) return null;
|
|
505
505
|
const page = routePathname === "/index.md" ? "/" : routePathname.slice(0, -".md".length) || "/";
|
|
506
506
|
const pattern = matchPagePattern(page);
|
|
507
|
-
return pattern ?
|
|
507
|
+
return pattern ? _chunk2NOHVIJ3cjs.getFarmMarkdownMirrorPath.call(void 0, pattern) : null;
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
|