@farm.js/core 0.1.38 → 0.1.40
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-BwKlpnc7.d.mts → agent-mcp-DRlXq3lM.d.ts} +1 -1
- package/dist/{agent-mcp-De1imoMS.d.ts → agent-mcp-XNF4JqHw.d.mts} +1 -1
- package/dist/{agent-mcp-handler-OLRMZONF.mjs → agent-mcp-handler-HVV5LNXF.mjs} +6 -6
- package/dist/{agent-mcp-handler-MRGP3WJ3.cjs → agent-mcp-handler-YKG7KVCY.cjs} +7 -7
- package/dist/agent-runtime.cjs +10 -6
- package/dist/agent-runtime.d.mts +5 -7
- package/dist/agent-runtime.d.ts +5 -7
- package/dist/agent-runtime.mjs +9 -5
- package/dist/api/client.cjs +3 -3
- package/dist/api/client.d.mts +3 -3
- package/dist/api/client.d.ts +3 -3
- package/dist/api/client.mjs +2 -2
- package/dist/api/route-manager.cjs +15 -13
- package/dist/api/route-manager.d.mts +7 -9
- package/dist/api/route-manager.d.ts +7 -9
- package/dist/api/route-manager.mjs +14 -12
- package/dist/api/runtime.cjs +12 -10
- package/dist/api/runtime.d.mts +6 -8
- package/dist/api/runtime.d.ts +6 -8
- package/dist/api/runtime.mjs +11 -9
- package/dist/{api-client-CyFtZFJ4.d.ts → api-client-BJv9mTbO.d.ts} +2 -2
- package/dist/{api-client-BjMmY8OD.d.mts → api-client-Dk9QOLwr.d.mts} +2 -2
- package/dist/api.cjs +17 -15
- package/dist/api.d.mts +9 -11
- package/dist/api.d.ts +9 -11
- package/dist/api.mjs +16 -14
- package/dist/{app-kT_QXTdx.d.ts → app-CDJHPqZn.d.ts} +11 -4
- package/dist/{app-CFZt-srr.d.mts → app-CWjCklhF.d.mts} +11 -4
- package/dist/app-markdown.cjs +7 -6
- package/dist/app-markdown.d.mts +6 -8
- package/dist/app-markdown.d.ts +6 -8
- package/dist/app-markdown.mjs +6 -5
- package/dist/cache.cjs +6 -3
- package/dist/cache.d.mts +23 -2
- package/dist/cache.d.ts +23 -2
- package/dist/cache.mjs +5 -2
- package/dist/{chunk-3UEVPCGW.mjs → chunk-2DMWQWNJ.mjs} +6 -1
- package/dist/{chunk-ZXH4TS3F.cjs → chunk-2JG2LJDI.cjs} +3 -64
- package/dist/{chunk-QTXBII4Z.cjs → chunk-3TB5QGUW.cjs} +5 -5
- package/dist/chunk-45QJHGZM.cjs +1063 -0
- package/dist/{chunk-JCKYH4LG.mjs → chunk-45UZKX2J.mjs} +12 -44
- package/dist/{chunk-FUCSUGDM.cjs → chunk-4A3YUB4D.cjs} +3 -3
- package/dist/{chunk-FUZEBRP3.mjs → chunk-4GP3XZ4Z.mjs} +5 -3
- package/dist/chunk-4TLUFAIP.cjs +92 -0
- package/dist/chunk-4U5XZDLG.cjs +80 -0
- package/dist/{chunk-VXEEATVD.cjs → chunk-4XO5GSD6.cjs} +2 -2
- package/dist/{chunk-P664ZVTV.mjs → chunk-4ZZNPK25.mjs} +2 -2
- package/dist/{chunk-TGFQVLLF.cjs → chunk-54QWHSNR.cjs} +697 -422
- package/dist/{chunk-W36M2BQ4.mjs → chunk-5E65AL7P.mjs} +3 -3
- package/dist/{chunk-3LOLJTFV.cjs → chunk-5JEC43MQ.cjs} +11 -11
- package/dist/{chunk-INL3THCU.mjs → chunk-5LL6TKII.mjs} +1 -1
- package/dist/{chunk-KIIMAWOJ.cjs → chunk-5NAVKJCZ.cjs} +35 -105
- package/dist/{chunk-PGZDEPTM.cjs → chunk-5XS5NCVM.cjs} +10 -10
- package/dist/{chunk-HXRYZWTA.mjs → chunk-62DY5GKS.mjs} +3 -3
- package/dist/{chunk-LSKZMJMP.cjs → chunk-64SBBZDU.cjs} +38 -1
- package/dist/chunk-6BWKJ6QS.cjs +43 -0
- package/dist/{chunk-JSROZYYO.cjs → chunk-6D24SDKO.cjs} +1 -20
- package/dist/{chunk-EIPC3FDA.cjs → chunk-6ILGLCXF.cjs} +9 -5
- package/dist/chunk-6QOLZITB.cjs +22 -0
- package/dist/{chunk-CXEN47J3.mjs → chunk-73WX6PRY.mjs} +25 -0
- package/dist/{chunk-RW63BOV7.cjs → chunk-7FHZ3E6D.cjs} +2 -2
- package/dist/chunk-7GNWGLWB.mjs +14 -0
- package/dist/{chunk-34UCJRQO.cjs → chunk-7RNAKBWF.cjs} +2 -2
- package/dist/{chunk-MSSFIQGM.mjs → chunk-7VAJSSPG.mjs} +41 -10
- package/dist/{chunk-KHKLMNI5.mjs → chunk-ACLPN56I.mjs} +43 -25
- package/dist/{chunk-JCYYXBAJ.cjs → chunk-AGR7F3LA.cjs} +3 -3
- package/dist/{chunk-4GWRFP22.cjs → chunk-ALPWLT27.cjs} +35 -3
- package/dist/{chunk-IBUQWVYA.mjs → chunk-AX7S67YV.mjs} +43 -40
- package/dist/{chunk-CUM5NYL5.mjs → chunk-AXB5P7BK.mjs} +1 -1
- package/dist/{chunk-2ZYGC6SS.cjs → chunk-B6IMBBOS.cjs} +3 -3
- package/dist/{chunk-472NCAZ7.cjs → chunk-B77AUCBV.cjs} +3 -3
- package/dist/{chunk-FWE7LEQC.cjs → chunk-BD3D7EZV.cjs} +4 -4
- package/dist/{chunk-H5CLOUZS.cjs → chunk-BMOBTMDR.cjs} +5 -5
- package/dist/{chunk-CQMVIOYP.mjs → chunk-BPGO2IEP.mjs} +7 -7
- package/dist/{chunk-E2ROOWQC.cjs → chunk-BPOTSHDO.cjs} +24 -87
- package/dist/chunk-BRYPZIMB.mjs +6 -0
- package/dist/{chunk-WFRT7JPX.mjs → chunk-BYQVROIP.mjs} +2 -2
- package/dist/{chunk-HALDNTIV.mjs → chunk-BYR3RQPB.mjs} +10 -73
- package/dist/{chunk-IWZKTWHZ.cjs → chunk-CA62IQY3.cjs} +7 -2
- package/dist/chunk-CALY6QG6.mjs +963 -0
- package/dist/{chunk-WC5UV2HQ.cjs → chunk-CBXBGM72.cjs} +2 -2
- package/dist/{chunk-WW46B6HA.cjs → chunk-CGR525MJ.cjs} +84 -45
- package/dist/{chunk-6V4TDWEC.cjs → chunk-CGVPXIRN.cjs} +18 -1
- package/dist/{chunk-TYMMBFN2.mjs → chunk-CKFK3Z2V.mjs} +1 -1
- package/dist/chunk-CZS6OACQ.mjs +63 -0
- package/dist/{chunk-SGBJ247Q.cjs → chunk-D4ROBNTK.cjs} +2 -2
- package/dist/{chunk-WEW2JVA4.cjs → chunk-D5IHNDHI.cjs} +6 -6
- package/dist/{chunk-ULASELLA.cjs → chunk-DATEWH3W.cjs} +13 -1
- package/dist/{chunk-KKSTAEMY.cjs → chunk-DKU6NXRK.cjs} +1 -1
- package/dist/{chunk-NBBEQLOK.cjs → chunk-E55H6UKH.cjs} +9 -9
- package/dist/{chunk-YR2VBEMO.cjs → chunk-EGCT3AHF.cjs} +1455 -8187
- package/dist/{chunk-SDOTRX3V.cjs → chunk-EORXKFLR.cjs} +7 -7
- package/dist/{chunk-HD5CF3OE.mjs → chunk-ETPEZLS3.mjs} +2 -2
- package/dist/{chunk-2DD4JMQC.cjs → chunk-EW4MEVLE.cjs} +30 -30
- package/dist/{chunk-TUBTR2OP.mjs → chunk-FCOLU5P6.mjs} +1173 -7905
- package/dist/chunk-FGH3ZXTP.mjs +1063 -0
- package/dist/{chunk-Q3NXS4MU.cjs → chunk-FLZ4H25A.cjs} +44 -32
- package/dist/chunk-FVPXT2JR.cjs +63 -0
- package/dist/{chunk-D2ULAULS.cjs → chunk-FXFKIJDA.cjs} +9 -7
- package/dist/chunk-GC3EM6H4.mjs +80 -0
- package/dist/chunk-GKQL726H.cjs +6096 -0
- package/dist/{chunk-5PWXMJOH.cjs → chunk-GNVEJUT5.cjs} +36 -36
- package/dist/{chunk-E3UK5IIB.cjs → chunk-GS3WR5HX.cjs} +5 -3
- package/dist/{chunk-QFW2IH5E.mjs → chunk-GZTUT75U.mjs} +5 -2
- package/dist/chunk-H3EGVQE5.mjs +22 -0
- package/dist/{chunk-KCQBAKIY.cjs → chunk-H44XGLFU.cjs} +36 -68
- package/dist/{chunk-LI2F57NI.mjs → chunk-H56MQYEG.mjs} +1 -1
- package/dist/chunk-HANGSYMB.mjs +67 -0
- package/dist/{chunk-5BWWFHR2.mjs → chunk-HBEBV7OZ.mjs} +3 -3
- package/dist/{chunk-RSOJ7DRT.mjs → chunk-HCSVR4YZ.mjs} +1 -58
- package/dist/{chunk-HZFM2LWQ.mjs → chunk-HKFBMHCD.mjs} +34 -2
- package/dist/{chunk-MLY2RP5R.mjs → chunk-I63UCMXW.mjs} +6 -2
- package/dist/{chunk-TO4GJ56K.cjs → chunk-I64GEPOB.cjs} +58 -18
- package/dist/{chunk-VNGH5MLF.mjs → chunk-I6UVKUYK.mjs} +1 -1
- package/dist/{chunk-EPYU2EBL.mjs → chunk-IF4NU2NG.mjs} +1 -1
- package/dist/{chunk-IVLZZZEI.mjs → chunk-IM7DY3ED.mjs} +1 -1
- package/dist/{chunk-A3EAIURZ.mjs → chunk-IMQO6ZUU.mjs} +2 -2
- package/dist/{chunk-F5QO4FNE.mjs → chunk-INQ64HTJ.mjs} +43 -11
- package/dist/{chunk-XKVVMZP5.cjs → chunk-IRYK4Z5M.cjs} +4 -4
- package/dist/{chunk-UWPLULNK.mjs → chunk-JGHCKIRI.mjs} +84 -24
- package/dist/{chunk-7FPTZLKH.mjs → chunk-JIYYX7WU.mjs} +10 -8
- package/dist/{chunk-6MVFL3R5.cjs → chunk-JR4QCLJY.cjs} +1 -58
- package/dist/{chunk-Q2KB32T4.mjs → chunk-JXB6DVCO.mjs} +5 -5
- package/dist/{chunk-CGBDNNSM.cjs → chunk-KEXK442I.cjs} +44 -12
- package/dist/{chunk-5D2JIPLH.cjs → chunk-KK22JPQM.cjs} +10 -10
- package/dist/{chunk-EA5K5BKU.mjs → chunk-KNHBTJP6.mjs} +18 -1
- package/dist/{chunk-MVL2RAJW.mjs → chunk-KYN5ODF6.mjs} +1 -1
- package/dist/{chunk-TYJALEHQ.cjs → chunk-LDPKAYVS.cjs} +16 -16
- package/dist/chunk-LFHCG2DU.mjs +43 -0
- package/dist/{chunk-EK4QAEFZ.cjs → chunk-LZESP4IR.cjs} +25 -0
- package/dist/{chunk-FZ6YYU2W.mjs → chunk-MGMF4VP7.mjs} +38 -1
- package/dist/{chunk-EKF7KDFD.mjs → chunk-MNUSIXGS.mjs} +2 -2
- package/dist/{chunk-MYIZXDZA.mjs → chunk-MOSYH4CY.mjs} +1 -1
- package/dist/{chunk-4ZFL5GFN.cjs → chunk-OILHPMFX.cjs} +86 -26
- package/dist/{chunk-AJQTP4OO.mjs → chunk-OJ7JP7RJ.mjs} +1 -1
- package/dist/{chunk-7PEP3BUT.mjs → chunk-OLQ73ZO5.mjs} +2 -2
- package/dist/{chunk-5OKBARDN.cjs → chunk-OZN4XL6L.cjs} +10 -10
- package/dist/{chunk-T5OJPTVN.cjs → chunk-P4TYB4SF.cjs} +2 -2
- package/dist/chunk-P7XDC7UJ.mjs +92 -0
- package/dist/{chunk-4E5QXOCL.cjs → chunk-PGW7HZE2.cjs} +6 -6
- package/dist/{chunk-SHLXACIO.cjs → chunk-PJ42JESY.cjs} +1 -9
- package/dist/{chunk-U6QLDL3G.mjs → chunk-PNCM5MFD.mjs} +1 -1
- package/dist/{chunk-OAHTRMIC.mjs → chunk-PYQ3ZG4Z.mjs} +11 -11
- package/dist/{chunk-KMTGADN3.mjs → chunk-QCVIRVHE.mjs} +1 -9
- package/dist/{chunk-RWFLWR5J.cjs → chunk-QJM7A4CR.cjs} +17 -15
- package/dist/{chunk-VU6AAZVY.cjs → chunk-RHGK2JEN.cjs} +65 -62
- package/dist/{chunk-QV4VE2OW.mjs → chunk-S6ENKNNG.mjs} +5 -3
- package/dist/{chunk-EMO6K4YY.cjs → chunk-SHFXCE5A.cjs} +7 -7
- package/dist/{chunk-EKN7NSZO.cjs → chunk-SZLNU3GJ.cjs} +8 -5
- package/dist/{chunk-WLL43JMO.mjs → chunk-T36UJS3X.mjs} +7 -5
- package/dist/{chunk-CNNOLE4O.mjs → chunk-T4II4MMW.mjs} +1 -1
- package/dist/{chunk-B6G5CKMC.mjs → chunk-T6DLMX5V.mjs} +11 -11
- package/dist/{chunk-4IE345DM.cjs → chunk-TAKG7ZCD.cjs} +14 -14
- package/dist/{chunk-SKVTP5PR.mjs → chunk-TFX4RTH2.mjs} +1 -62
- package/dist/chunk-TI7UANHI.cjs +77 -0
- package/dist/{chunk-ND2CWPOD.mjs → chunk-TS4JHGUJ.mjs} +1 -1
- package/dist/{chunk-6BK3K2GB.mjs → chunk-UIDWEU7M.mjs} +83 -44
- package/dist/{chunk-DRLKAXDM.mjs → chunk-UM3ZV5EP.mjs} +2 -2
- package/dist/{chunk-YWN746US.cjs → chunk-UMQAK3KP.cjs} +85 -54
- package/dist/chunk-UNJZGVPU.cjs +6 -0
- package/dist/{chunk-XKG2BLFN.cjs → chunk-UXMIFB44.cjs} +18 -35
- package/dist/{chunk-DMEPTZTI.mjs → chunk-VBN3UAPQ.mjs} +47 -7
- package/dist/chunk-VDRM36QB.cjs +963 -0
- package/dist/{chunk-RG4A6LB2.cjs → chunk-VNPXKF3G.cjs} +7 -7
- package/dist/chunk-VQDBNVOO.cjs +14 -0
- package/dist/chunk-VQGKD7RV.mjs +25 -0
- package/dist/{chunk-6HB6V3R7.mjs → chunk-WCWV25PG.mjs} +10 -27
- package/dist/{chunk-ZMSZZXOR.mjs → chunk-WDMIW6Q6.mjs} +0 -19
- package/dist/{chunk-4WVJLURN.mjs → chunk-WMHG64DA.mjs} +1 -1
- package/dist/{chunk-L4DD7ODZ.cjs → chunk-WSOBCAYO.cjs} +37 -35
- package/dist/{chunk-ARC7I3O2.mjs → chunk-WW374SGU.mjs} +1 -1
- package/dist/{chunk-J63ZH5OQ.cjs → chunk-X3GMHKO3.cjs} +2 -2
- package/dist/{chunk-VT4WFRHA.mjs → chunk-XJAEZCT6.mjs} +1 -1
- package/dist/{chunk-OCIEZME4.mjs → chunk-XKIUHXHW.mjs} +618 -343
- package/dist/{chunk-6XWDE2P2.cjs → chunk-XVIEGKTT.cjs} +30 -5
- package/dist/{chunk-N32CC42M.cjs → chunk-Y2GNNXGV.cjs} +72 -54
- package/dist/{chunk-ZJD2PN6Z.mjs → chunk-Y4QVEU67.mjs} +30 -18
- package/dist/chunk-Y5RG6B7S.mjs +77 -0
- package/dist/{chunk-QRKIMN7T.mjs → chunk-Y6LRPO2K.mjs} +13 -1
- package/dist/{chunk-BZHXGVMA.mjs → chunk-YJBWB6GF.mjs} +5 -3
- package/dist/{chunk-WXJLNP33.cjs → chunk-YR2P74F7.cjs} +9 -7
- package/dist/chunk-YZAKIXRL.cjs +67 -0
- package/dist/chunk-ZKVJYQPO.mjs +6095 -0
- package/dist/{chunk-POSPE3IO.mjs → chunk-ZOABCQGT.mjs} +27 -2
- package/dist/chunk-ZQRCSUSB.cjs +25 -0
- package/dist/{chunk-ZMMBIVQM.mjs → chunk-ZZGQD7A4.mjs} +16 -86
- package/dist/{client-plugins-DUrIYX9B.d.mts → client-plugins-B_5QbNrp.d.mts} +2551 -2653
- package/dist/{client-plugins-BvlNhGEB.d.ts → client-plugins-DgSfIWIF.d.ts} +2551 -2653
- package/dist/client-plugins.d.mts +5 -7
- package/dist/client-plugins.d.ts +5 -7
- package/dist/client.cjs +7 -7
- package/dist/client.d.mts +11 -12
- package/dist/client.d.ts +11 -12
- package/dist/client.mjs +6 -6
- package/dist/config.d.mts +5 -7
- package/dist/config.d.ts +5 -7
- package/dist/{devtools-VQWJANJV.cjs → devtools-ANJ7JAPQ.cjs} +21 -18
- package/dist/{devtools-JYJNOLPQ.mjs → devtools-VEQQDVHE.mjs} +20 -17
- package/dist/docs.cjs +23 -20
- package/dist/docs.d.mts +6 -8
- package/dist/docs.d.ts +6 -8
- package/dist/docs.mjs +22 -19
- package/dist/{endpoint-CA-TNX60.d.ts → endpoint-BOE0IAaG.d.ts} +6 -3
- package/dist/{endpoint-CCHFqyTE.d.mts → endpoint-DGZRZHux.d.mts} +6 -3
- package/dist/environment/vite.cjs +6 -2
- package/dist/environment/vite.d.mts +11 -2
- package/dist/environment/vite.d.ts +11 -2
- package/dist/environment/vite.mjs +5 -1
- package/dist/headers.cjs +4 -4
- package/dist/headers.mjs +3 -3
- package/dist/image/server.cjs +7 -3
- package/dist/image/server.d.mts +9 -1
- package/dist/image/server.d.ts +9 -1
- package/dist/image/server.mjs +6 -2
- package/dist/image/sharp.cjs +12 -10
- package/dist/image/sharp.mjs +4 -2
- package/dist/index.cjs +89 -69
- package/dist/index.d.mts +27 -24
- package/dist/index.d.ts +27 -24
- package/dist/index.mjs +102 -82
- package/dist/{integration-api-BPJo5oXb.d.ts → integration-api-BuPHMeKz.d.ts} +2 -2
- package/dist/{integration-api-0y4FXJpC.d.mts → integration-api-DWyMmvrR.d.mts} +2 -2
- package/dist/integration-orm-P2II2EBK.cjs +14 -0
- package/dist/{integration-orm-KV5B3BGZ.mjs → integration-orm-RBKCIQYZ.mjs} +4 -3
- package/dist/integrations.cjs +7 -5
- package/dist/integrations.d.mts +7 -9
- package/dist/integrations.d.ts +7 -9
- package/dist/integrations.mjs +6 -4
- package/dist/internal/app-markdown-runtime.cjs +6 -5
- package/dist/internal/app-markdown-runtime.d.mts +6 -8
- package/dist/internal/app-markdown-runtime.d.ts +6 -8
- package/dist/internal/app-markdown-runtime.mjs +5 -4
- package/dist/internal/build-runtime.cjs +57 -56
- package/dist/internal/build-runtime.d.mts +7 -9
- package/dist/internal/build-runtime.d.ts +7 -9
- package/dist/internal/build-runtime.mjs +56 -55
- package/dist/internal/cli-runtime.cjs +36 -30
- package/dist/internal/cli-runtime.mjs +36 -30
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +5 -7
- package/dist/internal/compression-runtime.d.ts +5 -7
- package/dist/internal/config-runtime.cjs +21 -18
- package/dist/internal/config-runtime.d.mts +6 -8
- package/dist/internal/config-runtime.d.ts +6 -8
- package/dist/internal/config-runtime.mjs +20 -17
- package/dist/internal/docs-precompiled-runtime.cjs +3 -3
- package/dist/internal/docs-precompiled-runtime.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +7 -7
- package/dist/internal/infra-analytics-runtime.mjs +5 -5
- package/dist/internal/metadata-image-runtime.cjs +4 -3
- package/dist/internal/metadata-image-runtime.mjs +3 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-node-env.cjs +2 -2
- package/dist/internal/production-node-env.mjs +1 -1
- package/dist/internal/production-runtime.cjs +47 -28
- package/dist/internal/production-runtime.d.mts +25 -14
- package/dist/internal/production-runtime.d.ts +25 -14
- package/dist/internal/production-runtime.mjs +50 -31
- package/dist/layers-CM5i6T7z.d.mts +55 -0
- package/dist/layers-CM5i6T7z.d.ts +55 -0
- package/dist/markdown.cjs +4 -4
- package/dist/markdown.d.mts +5 -7
- package/dist/markdown.d.ts +5 -7
- package/dist/markdown.mjs +3 -3
- package/dist/middleware.cjs +16 -10
- package/dist/middleware.d.mts +7 -9
- package/dist/middleware.d.ts +7 -9
- package/dist/middleware.mjs +19 -13
- package/dist/navigation.cjs +6 -6
- package/dist/navigation.d.mts +8 -9
- package/dist/navigation.d.ts +8 -9
- package/dist/navigation.mjs +5 -5
- package/dist/{nitro-MPZJGPXK.mjs → nitro-NFG2LBRC.mjs} +3 -2
- package/dist/{nitro-7F65EZZS.cjs → nitro-S2QABUFA.cjs} +4 -3
- package/dist/observability.cjs +2 -2
- package/dist/observability.mjs +1 -1
- package/dist/plugin-DBBZ4JI2.cjs +32 -0
- package/dist/plugin-SYMK7PQ2.mjs +32 -0
- package/dist/plugin.cjs +56 -43
- package/dist/plugin.d.mts +23 -7
- package/dist/plugin.d.ts +23 -7
- package/dist/plugin.mjs +57 -44
- package/dist/{production-runtime-D2aMyzjr.d.ts → production-runtime-DfknD3g_.d.ts} +17 -3
- package/dist/{production-runtime-BQ4_WLwQ.d.mts → production-runtime-j_WCfuwB.d.mts} +17 -3
- package/dist/programmatic-routes-client-DcoxEaLe.d.mts +55 -0
- package/dist/programmatic-routes-client-DcoxEaLe.d.ts +55 -0
- package/dist/query/client.cjs +8 -8
- package/dist/query/client.mjs +3 -3
- package/dist/{render-plan-25p4hrj4.d.ts → render-plan-CFIhcYYS.d.ts} +1 -1
- package/dist/{render-plan-DtkXMN8D.d.mts → render-plan-ChUtsymc.d.mts} +1 -1
- package/dist/renderer-client.cjs +5 -5
- package/dist/renderer-client.d.mts +7 -8
- package/dist/renderer-client.d.ts +7 -8
- package/dist/renderer-client.mjs +2 -2
- package/dist/{request-DgCkIdcn.d.mts → request-F4HRwzSd.d.mts} +1 -1
- package/dist/{request-jF4jwx8f.d.ts → request-RJvelT8L.d.ts} +1 -1
- package/dist/request.cjs +3 -3
- package/dist/request.d.mts +6 -8
- package/dist/request.d.ts +6 -8
- package/dist/request.mjs +2 -2
- package/dist/{route-rendering-Bji6S6a_.d.ts → route-rendering-3a4fbNyC.d.mts} +1 -1
- package/dist/{route-rendering-CSBF78Ya.d.mts → route-rendering-D4coJ-kw.d.ts} +1 -1
- package/dist/{router-B09Ui3Qm.d.mts → router-DqIssGRO.d.mts} +1 -1
- package/dist/{router-CPB9cXtG.d.ts → router-WLEW3Te1.d.ts} +1 -1
- package/dist/routes.cjs +6 -5
- package/dist/routes.d.mts +5 -7
- package/dist/routes.d.ts +5 -7
- package/dist/routes.mjs +5 -4
- package/dist/{runtime-EDMwLdjv.d.ts → runtime-BrNdLOq9.d.ts} +3 -3
- package/dist/{runtime-CM6E6yuI.d.mts → runtime-CmE_j-js.d.mts} +3 -3
- package/dist/{schema-dev-notice-Y7MQEFGN.cjs → schema-dev-notice-5JPE67AI.cjs} +6 -4
- package/dist/{schema-dev-notice-O67CPXJ6.mjs → schema-dev-notice-WLPZ6WKU.mjs} +4 -2
- package/dist/server-action-security.cjs +4 -3
- package/dist/server-action-security.mjs +3 -2
- package/dist/server-client-bridge-DKWDl5NB.d.mts +7 -0
- package/dist/server-client-bridge-DKWDl5NB.d.ts +7 -0
- package/dist/server-fn-client.d.mts +3 -3
- package/dist/server-fn-client.d.ts +3 -3
- package/dist/server-fn.cjs +8 -7
- package/dist/server-fn.d.mts +1 -1
- package/dist/server-fn.d.ts +1 -1
- package/dist/server-fn.mjs +7 -6
- package/dist/server-plugins.cjs +5 -5
- package/dist/server-plugins.d.mts +6 -8
- package/dist/server-plugins.d.ts +6 -8
- package/dist/server-plugins.mjs +4 -4
- package/dist/server-query-client.d.mts +1 -1
- package/dist/server-query-client.d.ts +1 -1
- package/dist/server-query.cjs +9 -8
- package/dist/server-query.d.mts +1 -1
- package/dist/server-query.d.ts +1 -1
- package/dist/server-query.mjs +8 -7
- package/dist/server.cjs +97 -73
- package/dist/server.d.mts +16 -12
- package/dist/server.d.ts +16 -12
- package/dist/server.mjs +82 -58
- package/dist/{spa-router-Cgimzfbi.d.mts → spa-router-C41zjnFl.d.mts} +2 -2
- package/dist/{spa-router-B_N8XgVu.d.ts → spa-router-D_0VXqPC.d.ts} +2 -2
- package/dist/storage.cjs +6 -2
- package/dist/storage.d.mts +9 -1
- package/dist/storage.d.ts +9 -1
- package/dist/storage.mjs +5 -1
- package/dist/testing.cjs +20 -18
- package/dist/testing.d.mts +6 -8
- package/dist/testing.d.ts +6 -8
- package/dist/testing.mjs +16 -14
- package/dist/theme/server.cjs +4 -4
- package/dist/theme/server.mjs +3 -3
- package/dist/{utils-DZciYXYl.d.mts → utils-BKWSe3S7.d.mts} +1 -1
- package/dist/{utils-BNxAKAuT.d.ts → utils-YYcWsOJp.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +58 -45
- package/dist/vite.d.mts +92 -10
- package/dist/vite.d.ts +92 -10
- package/dist/vite.mjs +59 -46
- package/dist/{workflows-jZ4BcdoZ.d.ts → workflows-IWP1ddBm.d.mts} +5 -2
- package/dist/{workflows-jZ4BcdoZ.d.mts → workflows-IWP1ddBm.d.ts} +5 -2
- package/dist/workflows.cjs +4 -3
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +3 -2
- package/package.json +2 -1
- package/dist/chunk-3SDFA7UF.cjs +0 -701
- package/dist/chunk-E5GNDG5F.mjs +0 -701
- package/dist/integration-orm-55F7CII5.cjs +0 -13
|
@@ -1,30 +1,40 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
+
var _chunk6QOLZITBcjs = require('./chunk-6QOLZITB.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
var _chunkG643DQCHcjs = require('./chunk-G643DQCH.cjs');
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
|
|
7
|
-
var _chunk4GWRFP22cjs = require('./chunk-4GWRFP22.cjs');
|
|
8
10
|
|
|
11
|
+
var _chunkALPWLT27cjs = require('./chunk-ALPWLT27.cjs');
|
|
9
12
|
|
|
10
13
|
|
|
14
|
+
var _chunk64SBBZDUcjs = require('./chunk-64SBBZDU.cjs');
|
|
11
15
|
|
|
12
16
|
|
|
13
17
|
|
|
18
|
+
var _chunkUQZ4AYTHcjs = require('./chunk-UQZ4AYTH.cjs');
|
|
14
19
|
|
|
15
20
|
|
|
16
21
|
|
|
22
|
+
var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
|
|
17
23
|
|
|
18
24
|
|
|
19
|
-
var _chunkKIIMAWOJcjs = require('./chunk-KIIMAWOJ.cjs');
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
|
|
23
|
-
var _chunkUQZ4AYTHcjs = require('./chunk-UQZ4AYTH.cjs');
|
|
24
28
|
|
|
29
|
+
var _chunk5NAVKJCZcjs = require('./chunk-5NAVKJCZ.cjs');
|
|
25
30
|
|
|
26
31
|
|
|
27
|
-
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
var _chunk4TLUFAIPcjs = require('./chunk-4TLUFAIP.cjs');
|
|
28
38
|
|
|
29
39
|
|
|
30
40
|
|
|
@@ -52,20 +62,6 @@ var _chunkNO3WWW3Ncjs = require('./chunk-NO3WWW3N.cjs');
|
|
|
52
62
|
|
|
53
63
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
54
64
|
|
|
55
|
-
// src/plugin-integration-context.ts
|
|
56
|
-
var FARM_PLUGIN_INTEGRATION_CONTEXT = /* @__PURE__ */ Symbol.for("@farm.js/core/plugin-integration-context");
|
|
57
|
-
function setFarmPluginIntegrationContext(plugin, integration) {
|
|
58
|
-
Object.defineProperty(plugin, FARM_PLUGIN_INTEGRATION_CONTEXT, {
|
|
59
|
-
value: integration
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, setFarmPluginIntegrationContext, "setFarmPluginIntegrationContext");
|
|
63
|
-
function getFarmPluginIntegrationContext(plugin) {
|
|
64
|
-
const value = plugin[FARM_PLUGIN_INTEGRATION_CONTEXT];
|
|
65
|
-
return value && typeof value === "object" ? value : void 0;
|
|
66
|
-
}
|
|
67
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, getFarmPluginIntegrationContext, "getFarmPluginIntegrationContext");
|
|
68
|
-
|
|
69
65
|
// src/integrations.ts
|
|
70
66
|
var FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY = "farm.integration.internalDispatch";
|
|
71
67
|
var FARM_INTEGRATION_SET_COOKIES_KEY = "farm:integration:set-cookies";
|
|
@@ -285,6 +281,15 @@ function resolveIntegrationPlugins(integrations) {
|
|
|
285
281
|
if (!integration || !isFarmIntegration(integration)) {
|
|
286
282
|
continue;
|
|
287
283
|
}
|
|
284
|
+
for (const entry of integration.middleware || []) {
|
|
285
|
+
if (!entry.matcher) continue;
|
|
286
|
+
const matchers = Array.isArray(entry.matcher) ? entry.matcher : [entry.matcher];
|
|
287
|
+
try {
|
|
288
|
+
matchers.forEach(_chunkALPWLT27cjs.assertSupportedMiddlewareMatcher);
|
|
289
|
+
} catch (error) {
|
|
290
|
+
throw new Error(`Integration "${key}": ${error.message}`);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
288
293
|
const owner = createIntegrationPluginOwner(key, integration, "lifecycle");
|
|
289
294
|
plugins.push(withIntegrationPluginOwner(createIntegrationPlugin(key, integration), owner));
|
|
290
295
|
plugins.push(...resolveIntegrationPluginContributions(key, integration));
|
|
@@ -349,7 +354,7 @@ function withIntegrationPluginOwner(plugin, owner, integration) {
|
|
|
349
354
|
value: owner.serverRuntime
|
|
350
355
|
});
|
|
351
356
|
if (integration) {
|
|
352
|
-
setFarmPluginIntegrationContext(ownedPlugin, integration);
|
|
357
|
+
_chunk6QOLZITBcjs.setFarmPluginIntegrationContext.call(void 0, ownedPlugin, integration);
|
|
353
358
|
}
|
|
354
359
|
return ownedPlugin;
|
|
355
360
|
}
|
|
@@ -843,9 +848,9 @@ function createIntegrationPlugin(integrationKey, integration) {
|
|
|
843
848
|
if (!bodyLoaded) {
|
|
844
849
|
bodyLoaded = true;
|
|
845
850
|
if (req.method && req.method !== "GET" && req.method !== "HEAD") {
|
|
846
|
-
requestBody = await
|
|
851
|
+
requestBody = await _chunk5NAVKJCZcjs.readNodeRequestBody.call(void 0,
|
|
847
852
|
req,
|
|
848
|
-
|
|
853
|
+
_chunk5NAVKJCZcjs.resolveFarmServerConfig.call(void 0, context.config.server).bodySizeLimit
|
|
849
854
|
);
|
|
850
855
|
}
|
|
851
856
|
}
|
|
@@ -853,9 +858,13 @@ function createIntegrationPlugin(integrationKey, integration) {
|
|
|
853
858
|
}, "getRequestBody");
|
|
854
859
|
const createHandlerRequest = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async () => {
|
|
855
860
|
try {
|
|
856
|
-
return
|
|
861
|
+
return _chunk5NAVKJCZcjs.withFarmRequestClientAddress.call(void 0,
|
|
862
|
+
createWebRequest(req, fullUrl, await getRequestBody()),
|
|
863
|
+
_chunk5NAVKJCZcjs.resolveFarmServerConfig.call(void 0, context.config.server).trustProxy,
|
|
864
|
+
_optionalChain([req, 'access', _13 => _13.socket, 'optionalAccess', _14 => _14.remoteAddress])
|
|
865
|
+
);
|
|
857
866
|
} catch (error) {
|
|
858
|
-
const response =
|
|
867
|
+
const response = _chunk5NAVKJCZcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
|
|
859
868
|
if (!response) throw error;
|
|
860
869
|
await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0, res, response);
|
|
861
870
|
return null;
|
|
@@ -1224,7 +1233,7 @@ async function validateIntegrationRouteInput(route, request, url) {
|
|
|
1224
1233
|
};
|
|
1225
1234
|
}
|
|
1226
1235
|
const schemas = route.input;
|
|
1227
|
-
if (!_optionalChain([schemas, 'optionalAccess',
|
|
1236
|
+
if (!_optionalChain([schemas, 'optionalAccess', _15 => _15.body]) && !_optionalChain([schemas, 'optionalAccess', _16 => _16.query])) {
|
|
1228
1237
|
return {
|
|
1229
1238
|
success: true,
|
|
1230
1239
|
input: {}
|
|
@@ -1287,7 +1296,7 @@ async function parseIntegrationInputSchema(source, schema, value) {
|
|
|
1287
1296
|
issues: normalizeIntegrationValidationIssues(source, result.error)
|
|
1288
1297
|
};
|
|
1289
1298
|
}
|
|
1290
|
-
if (_optionalChain([schema, 'access',
|
|
1299
|
+
if (_optionalChain([schema, 'access', _17 => _17["~standard"], 'optionalAccess', _18 => _18.validate])) {
|
|
1291
1300
|
const result = await schema["~standard"].validate(value);
|
|
1292
1301
|
if ("value" in result) {
|
|
1293
1302
|
return {
|
|
@@ -1343,18 +1352,13 @@ function createIntegrationValidationResponse(issues) {
|
|
|
1343
1352
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createIntegrationValidationResponse, "createIntegrationValidationResponse");
|
|
1344
1353
|
function normalizeIntegrationValidationIssues(source, error) {
|
|
1345
1354
|
if (Array.isArray(error.issues) && error.issues.length > 0) {
|
|
1346
|
-
return error.
|
|
1347
|
-
source,
|
|
1348
|
-
path: normalizeIntegrationValidationPath(issue.path),
|
|
1349
|
-
code: issue.code,
|
|
1350
|
-
message: issue.message || "Invalid input"
|
|
1351
|
-
}));
|
|
1355
|
+
return _chunk64SBBZDUcjs.toPublicValidationIssues.call(void 0, error).map((issue) => ({ source, ...issue }));
|
|
1352
1356
|
}
|
|
1353
1357
|
return [
|
|
1354
1358
|
{
|
|
1355
1359
|
source,
|
|
1356
1360
|
path: [],
|
|
1357
|
-
message:
|
|
1361
|
+
message: "Invalid input"
|
|
1358
1362
|
}
|
|
1359
1363
|
];
|
|
1360
1364
|
}
|
|
@@ -1413,7 +1417,7 @@ async function readIntegrationValidationBody(request, format) {
|
|
|
1413
1417
|
}
|
|
1414
1418
|
_chunkS3JO3N4Hcjs.__name.call(void 0, readIntegrationValidationBody, "readIntegrationValidationBody");
|
|
1415
1419
|
function getIntegrationRouteBodyFormat(route) {
|
|
1416
|
-
return route.bodyFormat || _optionalChain([route, 'access',
|
|
1420
|
+
return route.bodyFormat || _optionalChain([route, 'access', _19 => _19.__operation, 'optionalAccess', _20 => _20.bodyFormat]) || "json";
|
|
1417
1421
|
}
|
|
1418
1422
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getIntegrationRouteBodyFormat, "getIntegrationRouteBodyFormat");
|
|
1419
1423
|
function createIntegrationRouteArgs(input) {
|
|
@@ -1431,7 +1435,7 @@ function createIntegrationRouteArgs(input) {
|
|
|
1431
1435
|
`Integration "${input.integration.type}" does not define a schema for ctx.args.db.`
|
|
1432
1436
|
);
|
|
1433
1437
|
}
|
|
1434
|
-
_nullishCoalesce(ormPromise, () => ( (ormPromise = import("./integration-orm-
|
|
1438
|
+
_nullishCoalesce(ormPromise, () => ( (ormPromise = import("./integration-orm-P2II2EBK.cjs").then(
|
|
1435
1439
|
({ createIntegrationOrm }) => createIntegrationOrm({
|
|
1436
1440
|
schema: input.integration.schema,
|
|
1437
1441
|
config: input.config
|
|
@@ -1491,7 +1495,7 @@ function createLazyIntegrationOrmModel(resolveOrm, modelName) {
|
|
|
1491
1495
|
return async (...args) => {
|
|
1492
1496
|
const orm = await resolveOrm();
|
|
1493
1497
|
const model = orm[modelName];
|
|
1494
|
-
const member = _optionalChain([model, 'optionalAccess',
|
|
1498
|
+
const member = _optionalChain([model, 'optionalAccess', _21 => _21[prop]]);
|
|
1495
1499
|
if (typeof member !== "function") {
|
|
1496
1500
|
throw new Error(
|
|
1497
1501
|
`Integration ORM model "${String(modelName)}" does not expose "${String(prop)}".`
|
|
@@ -1561,32 +1565,31 @@ function createFormInput(formData) {
|
|
|
1561
1565
|
}
|
|
1562
1566
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createFormInput, "createFormInput");
|
|
1563
1567
|
async function dispatchIntegrationRequest(runtime, request, options = {}) {
|
|
1568
|
+
const serverConfig = _chunk5NAVKJCZcjs.resolveFarmServerConfig.call(void 0, runtime.config.server);
|
|
1564
1569
|
try {
|
|
1565
|
-
request = await
|
|
1566
|
-
request,
|
|
1567
|
-
_chunkKIIMAWOJcjs.resolveFarmServerConfig.call(void 0, runtime.config.server).bodySizeLimit
|
|
1568
|
-
);
|
|
1570
|
+
request = await _chunk5NAVKJCZcjs.bufferFarmRequestBody.call(void 0, request, serverConfig.bodySizeLimit);
|
|
1569
1571
|
} catch (error) {
|
|
1570
|
-
const response =
|
|
1572
|
+
const response = _chunk5NAVKJCZcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
|
|
1571
1573
|
if (response) return response;
|
|
1572
1574
|
throw error;
|
|
1573
1575
|
}
|
|
1576
|
+
request = _chunk5NAVKJCZcjs.withFarmRequestClientAddress.call(void 0, request, serverConfig.trustProxy, options.clientAddress);
|
|
1574
1577
|
const integration = runtime.integration;
|
|
1575
1578
|
const url = new URL(request.url);
|
|
1576
1579
|
const pathname = url.pathname;
|
|
1577
|
-
const requestId = request.headers.get("x-request-id") || _optionalChain([options, 'access',
|
|
1580
|
+
const requestId = request.headers.get("x-request-id") || _optionalChain([options, 'access', _22 => _22.currentRequest, 'optionalAccess', _23 => _23.headers, 'access', _24 => _24.get, 'call', _25 => _25("x-request-id")]) || String(Date.now());
|
|
1578
1581
|
const routes = normalizeIntegrationRoutes(integration.routes || []);
|
|
1579
1582
|
const pathSegments = _chunkUS2QVW3Ecjs.canonicalizeRequestPathSegments.call(void 0, pathname);
|
|
1580
1583
|
const method = normalizeIntegrationRequestMethod(request.method);
|
|
1581
1584
|
const middleware = [...integration.middleware || []];
|
|
1582
1585
|
const forwardedSetCookies = [];
|
|
1583
1586
|
for (const entry of middleware) {
|
|
1584
|
-
if (_optionalChain([options, 'access',
|
|
1587
|
+
if (_optionalChain([options, 'access', _26 => _26.ranMiddleware, 'optionalAccess', _27 => _27.has, 'call', _28 => _28(entry)])) continue;
|
|
1585
1588
|
const params = resolveIntegrationMiddlewareParams(entry, pathname, runtime.config);
|
|
1586
1589
|
if (!params) {
|
|
1587
1590
|
continue;
|
|
1588
1591
|
}
|
|
1589
|
-
_optionalChain([options, 'access',
|
|
1592
|
+
_optionalChain([options, 'access', _29 => _29.ranMiddleware, 'optionalAccess', _30 => _30.add, 'call', _31 => _31(entry)]);
|
|
1590
1593
|
const handlerContext = createServerIntegrationHandlerContext({
|
|
1591
1594
|
runtime,
|
|
1592
1595
|
route: {
|
|
@@ -1825,7 +1828,7 @@ async function dispatchIntegrationRequest(runtime, request, options = {}) {
|
|
|
1825
1828
|
}
|
|
1826
1829
|
}
|
|
1827
1830
|
if (forwardedSetCookies.length > 0) {
|
|
1828
|
-
_optionalChain([options, 'access',
|
|
1831
|
+
_optionalChain([options, 'access', _32 => _32.onForwardedCookies, 'optionalCall', _33 => _33(forwardedSetCookies)]);
|
|
1829
1832
|
}
|
|
1830
1833
|
return null;
|
|
1831
1834
|
}
|
|
@@ -1852,6 +1855,7 @@ async function dispatchIntegrationRequests(integrations, runtime, request, optio
|
|
|
1852
1855
|
{
|
|
1853
1856
|
currentRequest: options.currentRequest,
|
|
1854
1857
|
ranMiddleware: options.ranMiddleware,
|
|
1858
|
+
clientAddress: options.clientAddress,
|
|
1855
1859
|
onForwardedCookies: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (cookies) => setCookies.push(...cookies), "onForwardedCookies")
|
|
1856
1860
|
}
|
|
1857
1861
|
);
|
|
@@ -1938,38 +1942,38 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, createServerIntegrationHandlerContext, "cr
|
|
|
1938
1942
|
function createServerIntegrationRequestContextStore(request, currentRequest) {
|
|
1939
1943
|
return {
|
|
1940
1944
|
get(key) {
|
|
1941
|
-
const requestValue =
|
|
1945
|
+
const requestValue = _chunk4TLUFAIPcjs.getRequestContext.call(void 0, request, key);
|
|
1942
1946
|
if (requestValue !== void 0) {
|
|
1943
1947
|
return requestValue;
|
|
1944
1948
|
}
|
|
1945
1949
|
if (currentRequest) {
|
|
1946
|
-
return
|
|
1950
|
+
return _chunk4TLUFAIPcjs.getRequestContext.call(void 0, currentRequest, key);
|
|
1947
1951
|
}
|
|
1948
1952
|
return void 0;
|
|
1949
1953
|
},
|
|
1950
1954
|
set(key, value, options) {
|
|
1951
|
-
|
|
1955
|
+
_chunk4TLUFAIPcjs.setRequestContext.call(void 0, request, key, value, options);
|
|
1952
1956
|
if (currentRequest) {
|
|
1953
|
-
|
|
1957
|
+
_chunk4TLUFAIPcjs.setRequestContext.call(void 0, currentRequest, key, value, options);
|
|
1954
1958
|
}
|
|
1955
1959
|
},
|
|
1956
1960
|
has(key) {
|
|
1957
|
-
return
|
|
1961
|
+
return _chunk4TLUFAIPcjs.hasRequestContext.call(void 0, request, key) || !!currentRequest && _chunk4TLUFAIPcjs.hasRequestContext.call(void 0, currentRequest, key);
|
|
1958
1962
|
},
|
|
1959
1963
|
delete(key) {
|
|
1960
|
-
const deletedRequest =
|
|
1961
|
-
const deletedCurrent = currentRequest ?
|
|
1964
|
+
const deletedRequest = _chunk4TLUFAIPcjs.deleteRequestContext.call(void 0, request, key);
|
|
1965
|
+
const deletedCurrent = currentRequest ? _chunk4TLUFAIPcjs.deleteRequestContext.call(void 0, currentRequest, key) : false;
|
|
1962
1966
|
return deletedRequest || deletedCurrent;
|
|
1963
1967
|
},
|
|
1964
1968
|
clear() {
|
|
1965
|
-
|
|
1969
|
+
_chunk4TLUFAIPcjs.clearRequestContext.call(void 0, request);
|
|
1966
1970
|
if (currentRequest) {
|
|
1967
|
-
|
|
1971
|
+
_chunk4TLUFAIPcjs.clearRequestContext.call(void 0, currentRequest);
|
|
1968
1972
|
}
|
|
1969
1973
|
},
|
|
1970
1974
|
snapshot(options) {
|
|
1971
|
-
const merged = currentRequest ?
|
|
1972
|
-
const requestSnapshot =
|
|
1975
|
+
const merged = currentRequest ? _chunk4TLUFAIPcjs.getRequestContextSnapshot.call(void 0, currentRequest, options) : /* @__PURE__ */ new Map();
|
|
1976
|
+
const requestSnapshot = _chunk4TLUFAIPcjs.getRequestContextSnapshot.call(void 0, request, options);
|
|
1973
1977
|
for (const [key, value] of requestSnapshot) {
|
|
1974
1978
|
merged.set(key, value);
|
|
1975
1979
|
}
|
|
@@ -2021,13 +2025,13 @@ function resolveIntegrationMiddlewareParams(entry, pathname, config) {
|
|
|
2021
2025
|
}
|
|
2022
2026
|
let compiled = compiledIntegrationGuards.get(entry);
|
|
2023
2027
|
if (!compiled) {
|
|
2024
|
-
compiled =
|
|
2028
|
+
compiled = _chunkALPWLT27cjs.compileMiddlewareConfig.call(void 0, {
|
|
2025
2029
|
matcher: typeof entry.matcher === "string" ? entry.matcher : [...entry.matcher]
|
|
2026
2030
|
});
|
|
2027
2031
|
compiledIntegrationGuards.set(entry, compiled);
|
|
2028
2032
|
}
|
|
2029
2033
|
for (const candidate of candidates) {
|
|
2030
|
-
const result =
|
|
2034
|
+
const result = _chunkALPWLT27cjs.matchesCompiledMiddlewareConfig.call(void 0, candidate, compiled, noMiddlewareContext);
|
|
2031
2035
|
if (result.matched) return _nullishCoalesce(result.params, () => ( {}));
|
|
2032
2036
|
}
|
|
2033
2037
|
return null;
|
|
@@ -2056,7 +2060,7 @@ function getIntegrationAPIPathnames(config) {
|
|
|
2056
2060
|
if (!toPathnames) {
|
|
2057
2061
|
const recorded = config[FARM_INTEGRATION_API_BASE_PATH_KEY];
|
|
2058
2062
|
const api2 = config.api;
|
|
2059
|
-
const serverBasePath = typeof recorded === "string" ? recorded : typeof _optionalChain([api2, 'optionalAccess',
|
|
2063
|
+
const serverBasePath = typeof recorded === "string" ? recorded : typeof _optionalChain([api2, 'optionalAccess', _34 => _34.baseURL]) === "string" && typeof api2.basePath === "string" ? _chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath.call(void 0, api2) : void 0;
|
|
2060
2064
|
toPathnames = _chunkKNBBQHO2cjs.createFarmAPIMiddlewarePathnames.call(void 0, serverBasePath);
|
|
2061
2065
|
integrationAPIPathnames.set(config, toPathnames);
|
|
2062
2066
|
}
|
|
@@ -2064,9 +2068,9 @@ function getIntegrationAPIPathnames(config) {
|
|
|
2064
2068
|
}
|
|
2065
2069
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getIntegrationAPIPathnames, "getIntegrationAPIPathnames");
|
|
2066
2070
|
function resolveIntegrationRoutePathname(pathname, config) {
|
|
2067
|
-
const basePath = typeof _optionalChain([config, 'optionalAccess',
|
|
2071
|
+
const basePath = typeof _optionalChain([config, 'optionalAccess', _35 => _35.basePath]) === "string" ? config.basePath : void 0;
|
|
2068
2072
|
let routePathname = basePath ? _chunkI57LW5VZcjs.stripFarmBasePath.call(void 0, pathname, basePath) : pathname;
|
|
2069
|
-
const i18n = _optionalChain([config, 'optionalAccess',
|
|
2073
|
+
const i18n = _optionalChain([config, 'optionalAccess', _36 => _36.i18n]);
|
|
2070
2074
|
if (i18n && Array.isArray(i18n.locales) && i18n.locales.length > 0) {
|
|
2071
2075
|
routePathname = _chunkBIDYX3SLcjs.resolveFarmLocalePath.call(void 0, routePathname, {
|
|
2072
2076
|
locales: i18n.locales,
|
|
@@ -2199,5 +2203,4 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, normalizeMatcher, "normalizeMatcher");
|
|
|
2199
2203
|
|
|
2200
2204
|
|
|
2201
2205
|
|
|
2202
|
-
|
|
2203
|
-
exports.getFarmPluginIntegrationContext = getFarmPluginIntegrationContext; exports.FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY = FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY; exports.FARM_INTEGRATION_SET_COOKIES_KEY = FARM_INTEGRATION_SET_COOKIES_KEY; exports.forwardIntegrationSetCookies = forwardIntegrationSetCookies; exports.defineIntegrationSchema = defineIntegrationSchema; exports.getFarmIntegrationPluginServerRuntime = getFarmIntegrationPluginServerRuntime; exports.getFarmIntegrationPluginOwner = getFarmIntegrationPluginOwner; exports.createIntegrationRoute = createIntegrationRoute; exports.integrationRoute = integrationRoute; exports.defineIntegration = defineIntegration; exports.isFarmIntegration = isFarmIntegration; exports.resolveIntegrationPlugins = resolveIntegrationPlugins; exports.getIntegrationProviders = getIntegrationProviders; exports.isFarmIntegrationProviderComponentReference = isFarmIntegrationProviderComponentReference; exports.getIntegrationDocumentNavigationMatchers = getIntegrationDocumentNavigationMatchers; exports.getIntegrationSchemas = getIntegrationSchemas; exports.getRegisteredIntegrationRuntime = getRegisteredIntegrationRuntime; exports.getRegisteredIntegrations = getRegisteredIntegrations; exports.getRegisteredIntegrationSchemas = getRegisteredIntegrationSchemas; exports.matchIntegrationRoute = matchIntegrationRoute; exports.matchRegisteredIntegrationRoute = matchRegisteredIntegrationRoute; exports.getRegisteredIntegrationAPIManifest = getRegisteredIntegrationAPIManifest; exports.dispatchIntegrationRequest = dispatchIntegrationRequest; exports.dispatchIntegrationRequests = dispatchIntegrationRequests; exports.integrationMiddlewareMayHandlePath = integrationMiddlewareMayHandlePath; exports.FARM_INTEGRATION_API_BASE_PATH_KEY = FARM_INTEGRATION_API_BASE_PATH_KEY;
|
|
2206
|
+
exports.FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY = FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY; exports.FARM_INTEGRATION_SET_COOKIES_KEY = FARM_INTEGRATION_SET_COOKIES_KEY; exports.forwardIntegrationSetCookies = forwardIntegrationSetCookies; exports.defineIntegrationSchema = defineIntegrationSchema; exports.getFarmIntegrationPluginServerRuntime = getFarmIntegrationPluginServerRuntime; exports.getFarmIntegrationPluginOwner = getFarmIntegrationPluginOwner; exports.createIntegrationRoute = createIntegrationRoute; exports.integrationRoute = integrationRoute; exports.defineIntegration = defineIntegration; exports.isFarmIntegration = isFarmIntegration; exports.resolveIntegrationPlugins = resolveIntegrationPlugins; exports.getIntegrationProviders = getIntegrationProviders; exports.isFarmIntegrationProviderComponentReference = isFarmIntegrationProviderComponentReference; exports.getIntegrationDocumentNavigationMatchers = getIntegrationDocumentNavigationMatchers; exports.getIntegrationSchemas = getIntegrationSchemas; exports.getRegisteredIntegrationRuntime = getRegisteredIntegrationRuntime; exports.getRegisteredIntegrations = getRegisteredIntegrations; exports.getRegisteredIntegrationSchemas = getRegisteredIntegrationSchemas; exports.matchIntegrationRoute = matchIntegrationRoute; exports.matchRegisteredIntegrationRoute = matchRegisteredIntegrationRoute; exports.getRegisteredIntegrationAPIManifest = getRegisteredIntegrationAPIManifest; exports.dispatchIntegrationRequest = dispatchIntegrationRequest; exports.dispatchIntegrationRequests = dispatchIntegrationRequests; exports.integrationMiddlewareMayHandlePath = integrationMiddlewareMayHandlePath; exports.FARM_INTEGRATION_API_BASE_PATH_KEY = FARM_INTEGRATION_API_BASE_PATH_KEY;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertNoSchemaListField,
|
|
3
|
+
isDatabaseEnforcedReference
|
|
4
|
+
} from "./chunk-VQGKD7RV.mjs";
|
|
5
|
+
import {
|
|
3
6
|
assertSupportedPrimaryKeyField,
|
|
4
|
-
isDatabaseEnforcedReference,
|
|
5
7
|
resolveSchemaModels
|
|
6
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WDMIW6Q6.mjs";
|
|
7
9
|
import {
|
|
8
10
|
resolveStorageRuntimeClient
|
|
9
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JGHCKIRI.mjs";
|
|
10
12
|
import {
|
|
11
13
|
__name
|
|
12
14
|
} from "./chunk-LPEX4YW6.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLDPKAYVScjs = require('./chunk-LDPKAYVS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBD3D7EZVcjs = require('./chunk-BD3D7EZV.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkI57LW5VZcjs = require('./chunk-I57LW5VZ.cjs');
|
|
@@ -13,7 +13,7 @@ var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
|
13
13
|
|
|
14
14
|
// src/navigation.ts
|
|
15
15
|
function useRouter2() {
|
|
16
|
-
const router =
|
|
16
|
+
const router = _chunkLDPKAYVScjs.useRouter.call(void 0, );
|
|
17
17
|
return {
|
|
18
18
|
push: router.push,
|
|
19
19
|
replace: router.replace,
|
|
@@ -21,21 +21,21 @@ function useRouter2() {
|
|
|
21
21
|
forward: router.forward,
|
|
22
22
|
refresh() {
|
|
23
23
|
if (typeof window === "undefined") return Promise.resolve();
|
|
24
|
-
return
|
|
24
|
+
return _chunkBD3D7EZVcjs.getRouter.call(void 0, ).refresh();
|
|
25
25
|
},
|
|
26
26
|
prefetch(href) {
|
|
27
27
|
if (typeof window === "undefined") return Promise.resolve();
|
|
28
|
-
return
|
|
28
|
+
return _chunkBD3D7EZVcjs.getRouter.call(void 0, ).prefetch(_chunkI57LW5VZcjs.applyFarmBasePath.call(void 0, href));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
_chunkS3JO3N4Hcjs.__name.call(void 0, useRouter2, "useRouter");
|
|
33
33
|
function usePathname() {
|
|
34
|
-
return
|
|
34
|
+
return _chunkLDPKAYVScjs.useRouter.call(void 0, ).pathname;
|
|
35
35
|
}
|
|
36
36
|
_chunkS3JO3N4Hcjs.__name.call(void 0, usePathname, "usePathname");
|
|
37
37
|
function useSearchParams() {
|
|
38
|
-
return
|
|
38
|
+
return _chunkLDPKAYVScjs.useRouter.call(void 0, ).searchParams;
|
|
39
39
|
}
|
|
40
40
|
_chunkS3JO3N4Hcjs.__name.call(void 0, useSearchParams, "useSearchParams");
|
|
41
41
|
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
+
var _chunkUNJZGVPUcjs = require('./chunk-UNJZGVPU.cjs');
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkD4ROBNTKcjs = require('./chunk-D4ROBNTK.cjs');
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -170,7 +173,7 @@ async function anonymousVisitorOpensPage(options, url, targetPathname) {
|
|
|
170
173
|
if (!PAGE_CHECK_DROPPED_HEADERS.has(name.toLowerCase())) headers.append(name, value);
|
|
171
174
|
}
|
|
172
175
|
headers.set("accept", "text/html");
|
|
173
|
-
headers.set(
|
|
176
|
+
headers.set(_chunkD4ROBNTKcjs.FARM_MARKDOWN_PAGE_CHECK_HEADER, _chunkD4ROBNTKcjs._getFarmMarkdownPageCheckToken.call(void 0, ));
|
|
174
177
|
const response = await options.renderPage(
|
|
175
178
|
new Request(pageUrl, {
|
|
176
179
|
method: "GET",
|
|
@@ -194,7 +197,7 @@ function hasOnlyAnonymousHeaders(headers) {
|
|
|
194
197
|
return true;
|
|
195
198
|
}
|
|
196
199
|
_chunkS3JO3N4Hcjs.__name.call(void 0, hasOnlyAnonymousHeaders, "hasOnlyAnonymousHeaders");
|
|
197
|
-
var FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS =
|
|
200
|
+
var FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS = _chunkUNJZGVPUcjs.FARM_ANONYMOUS_CLIENT_ADDRESS;
|
|
198
201
|
async function createFarmMarkdownSourceResponse(options) {
|
|
199
202
|
if (options.request.method !== "GET" && options.request.method !== "HEAD") {
|
|
200
203
|
return null;
|
|
@@ -204,7 +207,7 @@ async function createFarmMarkdownSourceResponse(options) {
|
|
|
204
207
|
}
|
|
205
208
|
const url = new URL(options.request.url);
|
|
206
209
|
const hasMarkdownExtension = url.pathname.toLowerCase().endsWith(".md");
|
|
207
|
-
if (!hasMarkdownExtension && !
|
|
210
|
+
if (!hasMarkdownExtension && !_chunkD4ROBNTKcjs.requestAcceptsMarkdown.call(void 0, options.request.headers.get("accept"))) {
|
|
208
211
|
return null;
|
|
209
212
|
}
|
|
210
213
|
const targetPathname = normalizeFarmMarkdownRoutePath(url.pathname);
|
|
@@ -266,7 +269,7 @@ async function createFarmMarkdownSourceResponse(options) {
|
|
|
266
269
|
if (!hasMarkdownExtension) {
|
|
267
270
|
headers.set("Vary", "Accept");
|
|
268
271
|
}
|
|
269
|
-
return
|
|
272
|
+
return _chunkD4ROBNTKcjs.createFarmMarkdownViewResponse.call(void 0, {
|
|
270
273
|
request: options.request,
|
|
271
274
|
requestUrl: url,
|
|
272
275
|
markdown: source.source,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findProgrammaticRouteFilesInDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MOSYH4CY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isFarmAPIRouteFileName
|
|
6
6
|
} from "./chunk-CU625VAY.mjs";
|
|
@@ -17,21 +17,23 @@ import {
|
|
|
17
17
|
matchAPIRouteAtBasePath,
|
|
18
18
|
mergePluginAPIRoutes,
|
|
19
19
|
resolveAPIRouteEndpoint
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WCWV25PG.mjs";
|
|
21
21
|
import {
|
|
22
22
|
registerAPIRouteShape
|
|
23
23
|
} from "./chunk-W3B4PKAW.mjs";
|
|
24
24
|
import {
|
|
25
25
|
createProgrammaticRouteModuleId
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KNHBTJP6.mjs";
|
|
27
27
|
import {
|
|
28
28
|
getFarmRouteRuntimeConfig,
|
|
29
29
|
normalizeFarmRouteRuntimeConfig
|
|
30
30
|
} from "./chunk-2J7W2WND.mjs";
|
|
31
31
|
import {
|
|
32
|
-
loadFarmDevModule,
|
|
33
32
|
toFileModuleUrl
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7GNWGLWB.mjs";
|
|
34
|
+
import {
|
|
35
|
+
loadFarmDevModule
|
|
36
|
+
} from "./chunk-QCVIRVHE.mjs";
|
|
35
37
|
import {
|
|
36
38
|
logger
|
|
37
39
|
} from "./chunk-KI3MESHB.mjs";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FARM_DEFAULT_MCP_TOOLS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4ZZNPK25.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_ERROR_STYLES
|
|
6
6
|
} from "./chunk-XAXTTBUT.mjs";
|
|
7
7
|
import {
|
|
8
8
|
serializeFarmLlmsTxt
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ETPEZLS3.mjs";
|
|
10
10
|
import {
|
|
11
11
|
stampFarmCspNonce
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PNCM5MFD.mjs";
|
|
13
13
|
import {
|
|
14
14
|
emitFarmAgentRead
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KYN5ODF6.mjs";
|
|
16
16
|
import {
|
|
17
17
|
resolveFarmThemeConfig
|
|
18
18
|
} from "./chunk-AELACLOB.mjs";
|
|
19
19
|
import {
|
|
20
20
|
integrationMiddlewareMayHandlePath
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AX7S67YV.mjs";
|
|
22
22
|
import {
|
|
23
23
|
compileMiddlewareConfig,
|
|
24
24
|
matchesCompiledMiddlewareConfig,
|
|
25
25
|
matchesMiddlewareRoute
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-HKFBMHCD.mjs";
|
|
27
27
|
import {
|
|
28
28
|
omitFarmResponseBody
|
|
29
29
|
} from "./chunk-5WI2S4CO.mjs";
|
|
@@ -31,18 +31,18 @@ import {
|
|
|
31
31
|
_listFarmMCPCatalogs,
|
|
32
32
|
_listFarmRegisteredMCPServers
|
|
33
33
|
} from "./chunk-ZLAT2CWY.mjs";
|
|
34
|
-
import {
|
|
35
|
-
createFarmWeakETag,
|
|
36
|
-
matchesFarmIfNoneMatch
|
|
37
|
-
} from "./chunk-ZMMBIVQM.mjs";
|
|
38
34
|
import {
|
|
39
35
|
createFarmAPIMiddlewarePathnames,
|
|
40
36
|
resolveFarmAPIServerBasePath,
|
|
41
37
|
resolveFarmAPIServerRoutePath
|
|
42
38
|
} from "./chunk-BTHHUD7Q.mjs";
|
|
39
|
+
import {
|
|
40
|
+
createFarmWeakETag,
|
|
41
|
+
matchesFarmIfNoneMatch
|
|
42
|
+
} from "./chunk-ZZGQD7A4.mjs";
|
|
43
43
|
import {
|
|
44
44
|
FARM_VERSION
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-H56MQYEG.mjs";
|
|
46
46
|
import {
|
|
47
47
|
localizeFarmPathname
|
|
48
48
|
} from "./chunk-L3KT7IXV.mjs";
|