@farm.js/core 0.1.39 → 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-BhneNPb4.d.mts → agent-mcp-DRlXq3lM.d.ts} +1 -1
- package/dist/{agent-mcp-HcTYQmNX.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-CMkoghtp.d.ts → app-CDJHPqZn.d.ts} +11 -4
- package/dist/{app-DVzmmbNO.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-QYMZOOC5.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-YFYUYWL7.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-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-PVZE2JGJ.mjs → chunk-ACLPN56I.mjs} +43 -25
- package/dist/{chunk-JCYYXBAJ.cjs → chunk-AGR7F3LA.cjs} +3 -3
- package/dist/{chunk-UPJLHLJU.cjs → chunk-ALPWLT27.cjs} +4 -4
- package/dist/{chunk-ATSDUUFK.mjs → chunk-AX7S67YV.mjs} +33 -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-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-677THUVP.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-QUCXCDE2.cjs → chunk-DKU6NXRK.cjs} +1 -1
- package/dist/{chunk-NBBEQLOK.cjs → chunk-E55H6UKH.cjs} +9 -9
- package/dist/{chunk-AS2VPMEE.cjs → chunk-EGCT3AHF.cjs} +1440 -8172
- package/dist/{chunk-SDOTRX3V.cjs → chunk-EORXKFLR.cjs} +7 -7
- package/dist/{chunk-HD5CF3OE.mjs → chunk-ETPEZLS3.mjs} +2 -2
- package/dist/{chunk-RVXFINNS.cjs → chunk-EW4MEVLE.cjs} +30 -30
- package/dist/{chunk-HYTZYOW2.mjs → chunk-FCOLU5P6.mjs} +1172 -7904
- package/dist/chunk-FGH3ZXTP.mjs +1063 -0
- package/dist/{chunk-HRETEZ2Z.cjs → chunk-FLZ4H25A.cjs} +37 -35
- 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-LMPAPBUA.cjs → chunk-H44XGLFU.cjs} +36 -68
- package/dist/{chunk-SOP2EAA6.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-P3PLW4FR.mjs → chunk-HKFBMHCD.mjs} +4 -4
- 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-YKZRDB5Z.mjs → chunk-IMQO6ZUU.mjs} +2 -2
- package/dist/{chunk-F5QO4FNE.mjs → chunk-INQ64HTJ.mjs} +43 -11
- package/dist/{chunk-BXDJXFQG.cjs → chunk-IRYK4Z5M.cjs} +4 -4
- package/dist/{chunk-UWPLULNK.mjs → chunk-JGHCKIRI.mjs} +84 -24
- package/dist/{chunk-BFJTHYTN.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-B5J2YVG7.cjs → chunk-LDPKAYVS.cjs} +2 -2
- package/dist/chunk-LFHCG2DU.mjs +43 -0
- package/dist/{chunk-FZ6YYU2W.mjs → chunk-MGMF4VP7.mjs} +38 -1
- package/dist/{chunk-KTSUBU2E.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-VWBHM3F6.mjs → chunk-OLQ73ZO5.mjs} +1 -1
- 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-5ULKUBIA.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-BWIQR4DH.cjs → chunk-RHGK2JEN.cjs} +56 -63
- package/dist/{chunk-QV4VE2OW.mjs → chunk-S6ENKNNG.mjs} +5 -3
- package/dist/{chunk-HRSAQ23K.cjs → chunk-SHFXCE5A.cjs} +4 -4
- 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-GKBWWRBG.mjs → chunk-T6DLMX5V.mjs} +11 -11
- package/dist/{chunk-CIOT4HGT.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-6BK3K2GB.mjs → chunk-UIDWEU7M.mjs} +83 -44
- package/dist/{chunk-EGCTIS5F.mjs → chunk-UM3ZV5EP.mjs} +1 -1
- 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-A657YSP4.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-ZUPXLIGB.mjs → chunk-XKIUHXHW.mjs} +618 -343
- package/dist/{chunk-6XWDE2P2.cjs → chunk-XVIEGKTT.cjs} +30 -5
- package/dist/{chunk-QG775BRV.cjs → chunk-Y2GNNXGV.cjs} +72 -54
- package/dist/{chunk-75HN5IZ3.mjs → chunk-Y4QVEU67.mjs} +21 -19
- 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-CsCuCLBz.d.mts → client-plugins-B_5QbNrp.d.mts} +2544 -2664
- package/dist/{client-plugins-D0ke-Hc8.d.ts → client-plugins-DgSfIWIF.d.ts} +2544 -2664
- package/dist/client-plugins.d.mts +5 -7
- package/dist/client-plugins.d.ts +5 -7
- package/dist/client.cjs +5 -5
- package/dist/client.d.mts +11 -12
- package/dist/client.d.ts +11 -12
- package/dist/client.mjs +4 -4
- package/dist/config.d.mts +5 -7
- package/dist/config.d.ts +5 -7
- package/dist/{devtools-LW4QQ5J3.cjs → devtools-ANJ7JAPQ.cjs} +21 -18
- package/dist/{devtools-5AFIPVUJ.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 +87 -67
- package/dist/index.d.mts +27 -24
- package/dist/index.d.ts +27 -24
- package/dist/index.mjs +100 -80
- 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 +56 -55
- package/dist/internal/build-runtime.d.mts +7 -9
- package/dist/internal/build-runtime.d.ts +7 -9
- package/dist/internal/build-runtime.mjs +55 -54
- 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 +44 -27
- package/dist/internal/production-runtime.d.mts +25 -14
- package/dist/internal/production-runtime.d.ts +25 -14
- package/dist/internal/production-runtime.mjs +47 -30
- 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 +4 -4
- package/dist/navigation.d.mts +8 -9
- package/dist/navigation.d.ts +8 -9
- package/dist/navigation.mjs +3 -3
- 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 +55 -42
- package/dist/plugin.d.mts +23 -7
- package/dist/plugin.d.ts +23 -7
- package/dist/plugin.mjs +56 -43
- package/dist/{production-runtime-BaI3WHnV.d.ts → production-runtime-DfknD3g_.d.ts} +17 -3
- package/dist/{production-runtime-DfRP0cV0.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 +2 -2
- package/dist/query/client.mjs +1 -1
- package/dist/{render-plan-CfIdJKAf.d.ts → render-plan-CFIhcYYS.d.ts} +1 -1
- package/dist/{render-plan-Dg8RBYFa.d.mts → render-plan-ChUtsymc.d.mts} +1 -1
- package/dist/renderer-client.d.mts +7 -8
- package/dist/renderer-client.d.ts +7 -8
- package/dist/{request-DfE02G_A.d.mts → request-F4HRwzSd.d.mts} +1 -1
- package/dist/{request-CEbHIIl4.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-C4oHbv6C.d.ts → route-rendering-3a4fbNyC.d.mts} +1 -1
- package/dist/{route-rendering-BHyOfXjD.d.mts → route-rendering-D4coJ-kw.d.ts} +1 -1
- package/dist/{router-DwhA61SB.d.mts → router-DqIssGRO.d.mts} +1 -1
- package/dist/{router-uRN_29Em.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-COk03hmx.d.ts → runtime-BrNdLOq9.d.ts} +3 -3
- package/dist/{runtime-BEdHhN4C.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 +96 -72
- package/dist/server.d.mts +16 -12
- package/dist/server.d.ts +16 -12
- package/dist/server.mjs +81 -57
- package/dist/{spa-router-w4aFOuyn.d.mts → spa-router-C41zjnFl.d.mts} +2 -2
- package/dist/{spa-router-DrVOBVGg.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-Dhuqwmd2.d.ts → utils-BKWSe3S7.d.mts} +1 -1
- package/dist/{utils-BtYehqeU.d.mts → utils-YYcWsOJp.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +57 -44
- package/dist/vite.d.mts +92 -10
- package/dist/vite.d.ts +92 -10
- package/dist/vite.mjs +58 -45
- 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
package/dist/docs.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FarmLayoutFonts } from './font.mjs';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { bm as FarmDocsResolvedConfig, bd as FarmMCPServerRegistration, cx as FarmDocsUserConfig } from './client-plugins-B_5QbNrp.mjs';
|
|
3
|
+
export { f3 as FarmDocsConfigInput, f4 as FarmDocsNavigationConfig, f7 as FarmDocsSidebarItem, f5 as FarmDocsSocialImageConfig, f6 as FarmDocsSocialImageFonts } from './client-plugins-B_5QbNrp.mjs';
|
|
4
4
|
import { DocsConfig } from '@farming-labs/docs';
|
|
5
5
|
import './lifecycle-DK06VuKP.mjs';
|
|
6
|
-
import './integration-api-
|
|
7
|
-
import './endpoint-
|
|
6
|
+
import './integration-api-DWyMmvrR.mjs';
|
|
7
|
+
import './endpoint-DGZRZHux.mjs';
|
|
8
8
|
import './cache.mjs';
|
|
9
9
|
import './cache-invalidation-BD0z_lfu.mjs';
|
|
10
10
|
import './renderer.mjs';
|
|
@@ -22,18 +22,16 @@ import '@farming-labs/orm';
|
|
|
22
22
|
import './observability-CoXunYhS.mjs';
|
|
23
23
|
import '@opentelemetry/api';
|
|
24
24
|
import 'vite';
|
|
25
|
-
import './workflows-
|
|
25
|
+
import './workflows-IWP1ddBm.mjs';
|
|
26
26
|
import './cron.mjs';
|
|
27
27
|
import './env.mjs';
|
|
28
28
|
import './server-action-security.mjs';
|
|
29
|
+
import './layers-CM5i6T7z.mjs';
|
|
29
30
|
import 'rolldown/utils';
|
|
30
31
|
import 'rolldown';
|
|
31
32
|
import './image-config-Duob7wER.mjs';
|
|
32
33
|
import './types-CnH8DOqo.mjs';
|
|
33
34
|
import './types-DQnyD3VD.mjs';
|
|
34
|
-
import './after.mjs';
|
|
35
|
-
import 'node:http';
|
|
36
|
-
import './island-CfGru1MO.mjs';
|
|
37
35
|
|
|
38
36
|
interface FarmDocsPublicFontAsset {
|
|
39
37
|
family: "Geist Sans" | "Geist Mono";
|
package/dist/docs.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FarmLayoutFonts } from './font.js';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { bm as FarmDocsResolvedConfig, bd as FarmMCPServerRegistration, cx as FarmDocsUserConfig } from './client-plugins-DgSfIWIF.js';
|
|
3
|
+
export { f3 as FarmDocsConfigInput, f4 as FarmDocsNavigationConfig, f7 as FarmDocsSidebarItem, f5 as FarmDocsSocialImageConfig, f6 as FarmDocsSocialImageFonts } from './client-plugins-DgSfIWIF.js';
|
|
4
4
|
import { DocsConfig } from '@farming-labs/docs';
|
|
5
5
|
import './lifecycle-DK06VuKP.js';
|
|
6
|
-
import './integration-api-
|
|
7
|
-
import './endpoint-
|
|
6
|
+
import './integration-api-BuPHMeKz.js';
|
|
7
|
+
import './endpoint-BOE0IAaG.js';
|
|
8
8
|
import './cache.js';
|
|
9
9
|
import './cache-invalidation-BD0z_lfu.js';
|
|
10
10
|
import './renderer.js';
|
|
@@ -22,18 +22,16 @@ import '@farming-labs/orm';
|
|
|
22
22
|
import './observability-CoXunYhS.js';
|
|
23
23
|
import '@opentelemetry/api';
|
|
24
24
|
import 'vite';
|
|
25
|
-
import './workflows-
|
|
25
|
+
import './workflows-IWP1ddBm.js';
|
|
26
26
|
import './cron.js';
|
|
27
27
|
import './env.js';
|
|
28
28
|
import './server-action-security.js';
|
|
29
|
+
import './layers-CM5i6T7z.js';
|
|
29
30
|
import 'rolldown/utils';
|
|
30
31
|
import 'rolldown';
|
|
31
32
|
import './image-config-Duob7wER.js';
|
|
32
33
|
import './types-CnH8DOqo.js';
|
|
33
34
|
import './types-DQnyD3VD.js';
|
|
34
|
-
import './after.js';
|
|
35
|
-
import 'node:http';
|
|
36
|
-
import './island-CfGru1MO.js';
|
|
37
35
|
|
|
38
36
|
interface FarmDocsPublicFontAsset {
|
|
39
37
|
family: "Geist Sans" | "Geist Mono";
|
package/dist/docs.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
createFarmDocsAdapterHandler,
|
|
5
5
|
hasFarmDocsRuntimeAdapter,
|
|
6
6
|
isFarmDocsAPIRequest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IMQO6ZUU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
createFarmDocsHandler,
|
|
10
10
|
discoverFarmDocsPages,
|
|
@@ -13,49 +13,52 @@ import {
|
|
|
13
13
|
isFarmDocsRequest,
|
|
14
14
|
loadFarmDocsPage,
|
|
15
15
|
resolveFarmDocsContentDir
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HBEBV7OZ.mjs";
|
|
17
17
|
import "./chunk-UP4CW6WP.mjs";
|
|
18
18
|
import "./chunk-TFQG7TBC.mjs";
|
|
19
19
|
import "./chunk-2VQKKQ6D.mjs";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-Y4QVEU67.mjs";
|
|
21
21
|
import "./chunk-XZNTNMHT.mjs";
|
|
22
22
|
import "./chunk-J7K2NZD6.mjs";
|
|
23
23
|
import "./chunk-TVGP4BBZ.mjs";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-JBSVKMC5.mjs";
|
|
24
|
+
import "./chunk-HCSVR4YZ.mjs";
|
|
26
25
|
import "./chunk-GHFS7RUB.mjs";
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-CZS6OACQ.mjs";
|
|
27
|
+
import "./chunk-JBSVKMC5.mjs";
|
|
28
28
|
import "./chunk-DAATZTKJ.mjs";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-BYQVROIP.mjs";
|
|
30
|
+
import "./chunk-ETPEZLS3.mjs";
|
|
31
|
+
import "./chunk-PNCM5MFD.mjs";
|
|
32
|
+
import "./chunk-BUGNQIHC.mjs";
|
|
32
33
|
import "./chunk-G2KY33I6.mjs";
|
|
33
34
|
import "./chunk-YHOCRI4H.mjs";
|
|
34
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-WMHG64DA.mjs";
|
|
35
36
|
import "./chunk-4OOBRCJX.mjs";
|
|
36
37
|
import "./chunk-FA2W42OV.mjs";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-I6UVKUYK.mjs";
|
|
39
|
+
import "./chunk-KYN5ODF6.mjs";
|
|
39
40
|
import "./chunk-SFGWNC43.mjs";
|
|
40
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-JXB6DVCO.mjs";
|
|
41
42
|
import "./chunk-2UC36WAC.mjs";
|
|
42
43
|
import "./chunk-ONUEYC6N.mjs";
|
|
43
44
|
import "./chunk-AELACLOB.mjs";
|
|
44
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-AX7S67YV.mjs";
|
|
46
|
+
import "./chunk-H3EGVQE5.mjs";
|
|
45
47
|
import "./chunk-44SYJEG3.mjs";
|
|
46
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-HKFBMHCD.mjs";
|
|
47
49
|
import "./chunk-YOZYCI6Z.mjs";
|
|
48
50
|
import "./chunk-ZLAT2CWY.mjs";
|
|
49
51
|
import "./chunk-2J7W2WND.mjs";
|
|
50
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-MGMF4VP7.mjs";
|
|
51
53
|
import "./chunk-FP2INE7H.mjs";
|
|
52
|
-
import "./chunk-ZMMBIVQM.mjs";
|
|
53
54
|
import "./chunk-BCMSYSN2.mjs";
|
|
54
55
|
import "./chunk-KI3MESHB.mjs";
|
|
55
56
|
import "./chunk-QVKYGNVM.mjs";
|
|
56
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-4GP3XZ4Z.mjs";
|
|
57
58
|
import "./chunk-Z2RZJZIZ.mjs";
|
|
58
59
|
import "./chunk-BTHHUD7Q.mjs";
|
|
60
|
+
import "./chunk-ZZGQD7A4.mjs";
|
|
61
|
+
import "./chunk-P7XDC7UJ.mjs";
|
|
59
62
|
import "./chunk-JPLUGGRV.mjs";
|
|
60
63
|
import "./chunk-O7BH5O46.mjs";
|
|
61
64
|
import "./chunk-7LTCDQRS.mjs";
|
|
@@ -66,7 +69,7 @@ import "./chunk-SAXPH6G5.mjs";
|
|
|
66
69
|
import "./chunk-Z3HATSKO.mjs";
|
|
67
70
|
import "./chunk-CBBLJMR5.mjs";
|
|
68
71
|
import "./chunk-CQ6OSQ3K.mjs";
|
|
69
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-Y6LRPO2K.mjs";
|
|
70
73
|
import "./chunk-L3KT7IXV.mjs";
|
|
71
74
|
import "./chunk-4RB44K6Z.mjs";
|
|
72
75
|
import "./chunk-55YI3RRB.mjs";
|
|
@@ -242,8 +242,11 @@ type EndpointOptions<TBody extends AnySchema = never, TQuery extends AnySchema =
|
|
|
242
242
|
* transport and endpoint authorization remain required separately.
|
|
243
243
|
*/
|
|
244
244
|
mcp?: EndpointMCPOptions;
|
|
245
|
-
/**
|
|
246
|
-
|
|
245
|
+
/**
|
|
246
|
+
* @deprecated Not supported: Farm never ran `use` middleware, so `createEndpoint` throws
|
|
247
|
+
* when it is set. Put plain functions in `middleware` instead.
|
|
248
|
+
*/
|
|
249
|
+
use?: never;
|
|
247
250
|
};
|
|
248
251
|
type EndpointHandler<TBody extends AnySchema = never, TQuery extends AnySchema = never, THeaders extends AnySchema = never, TResponse = any, TContext extends object = {}, TErrors extends EndpointErrorDefinitions = {}> = (ctx: {
|
|
249
252
|
body: InferOutput<TBody>;
|
|
@@ -364,4 +367,4 @@ declare function OPTIONS<T = any>(handler: EndpointHandler<never, never, never,
|
|
|
364
367
|
declare function OPTIONS<const TOptions extends MethodlessEndpointOptions, TResponse = any>(options: TOptions, handler: ValidatedEndpointHandlerFromOptions<TOptions, TResponse>): CreatedEndpointFromOptions<TOptions, TResponse>;
|
|
365
368
|
declare function OPTIONS<TBody extends AnySchema = never, TQuery extends AnySchema = never, THeaders extends AnySchema = never, TResponse = any>(options: Omit<EndpointOptions<TBody, TQuery, THeaders, readonly []>, "method">, handler: EndpointHandler<TBody, TQuery, THeaders, TResponse>): CreatedEndpoint<TBody, TQuery, THeaders, TResponse>;
|
|
366
369
|
|
|
367
|
-
export { type AnyEndpointMiddleware as A, type MultipartValues as B, type TypedFormData as C, DELETE as D, type EndpointMCPMetadata as E, type MultipartSchema as F, GET as G, HEAD as H, type InferEndpointMiddlewareContext as I, type FarmStreamResponse as J, type FarmAPIStream as K, multipart as L, type MultipartField as M, isMultipartSchema as N, OPTIONS as O, POST as P, QUERY as Q, type RouteSchema as R, toFormData as S, type TypedEndpoint as T, jsonStream as U, isJSONStreamResponse as V, readJSONStream as W, isFarmAPIStream as X, type OpenAPISecurityMode as Y, type
|
|
370
|
+
export { type AnyEndpointMiddleware as A, type MultipartValues as B, type TypedFormData as C, DELETE as D, type EndpointMCPMetadata as E, type MultipartSchema as F, GET as G, HEAD as H, type InferEndpointMiddlewareContext as I, type FarmStreamResponse as J, type FarmAPIStream as K, multipart as L, type MultipartField as M, isMultipartSchema as N, OPTIONS as O, POST as P, QUERY as Q, type RouteSchema as R, toFormData as S, type TypedEndpoint as T, jsonStream as U, isJSONStreamResponse as V, readJSONStream as W, isFarmAPIStream as X, type OpenAPISecurityMode as Y, type EndpointMCPOptions as a, type EndpointOpenAPIMetadata as b, type EndpointMiddlewareResult as c, type RouteSchemaOutput as d, type RouteSchemaInput as e, EndpointFailure as f, type EndpointErrorSchema as g, type EndpointErrorDefinition as h, isEndpointFailure as i, type EndpointErrorDefinitions as j, type EndpointErrorContracts as k, type EndpointErrorHandler as l, type EndpointFail as m, type EndpointParamValue as n, type EndpointParams as o, parseRouteSchema as p, type EndpointMiddlewareContext as q, type EndpointMiddleware as r, type EndpointInvalidationTarget as s, type EndpointInvalidationContext as t, type EndpointInvalidations as u, type EndpointOptions as v, type EndpointHandler as w, createEndpoint as x, PUT as y, PATCH as z };
|
|
@@ -242,8 +242,11 @@ type EndpointOptions<TBody extends AnySchema = never, TQuery extends AnySchema =
|
|
|
242
242
|
* transport and endpoint authorization remain required separately.
|
|
243
243
|
*/
|
|
244
244
|
mcp?: EndpointMCPOptions;
|
|
245
|
-
/**
|
|
246
|
-
|
|
245
|
+
/**
|
|
246
|
+
* @deprecated Not supported: Farm never ran `use` middleware, so `createEndpoint` throws
|
|
247
|
+
* when it is set. Put plain functions in `middleware` instead.
|
|
248
|
+
*/
|
|
249
|
+
use?: never;
|
|
247
250
|
};
|
|
248
251
|
type EndpointHandler<TBody extends AnySchema = never, TQuery extends AnySchema = never, THeaders extends AnySchema = never, TResponse = any, TContext extends object = {}, TErrors extends EndpointErrorDefinitions = {}> = (ctx: {
|
|
249
252
|
body: InferOutput<TBody>;
|
|
@@ -364,4 +367,4 @@ declare function OPTIONS<T = any>(handler: EndpointHandler<never, never, never,
|
|
|
364
367
|
declare function OPTIONS<const TOptions extends MethodlessEndpointOptions, TResponse = any>(options: TOptions, handler: ValidatedEndpointHandlerFromOptions<TOptions, TResponse>): CreatedEndpointFromOptions<TOptions, TResponse>;
|
|
365
368
|
declare function OPTIONS<TBody extends AnySchema = never, TQuery extends AnySchema = never, THeaders extends AnySchema = never, TResponse = any>(options: Omit<EndpointOptions<TBody, TQuery, THeaders, readonly []>, "method">, handler: EndpointHandler<TBody, TQuery, THeaders, TResponse>): CreatedEndpoint<TBody, TQuery, THeaders, TResponse>;
|
|
366
369
|
|
|
367
|
-
export { type AnyEndpointMiddleware as A, type MultipartValues as B, type TypedFormData as C, DELETE as D, type EndpointMCPMetadata as E, type MultipartSchema as F, GET as G, HEAD as H, type InferEndpointMiddlewareContext as I, type FarmStreamResponse as J, type FarmAPIStream as K, multipart as L, type MultipartField as M, isMultipartSchema as N, OPTIONS as O, POST as P, QUERY as Q, type RouteSchema as R, toFormData as S, type TypedEndpoint as T, jsonStream as U, isJSONStreamResponse as V, readJSONStream as W, isFarmAPIStream as X, type OpenAPISecurityMode as Y, type
|
|
370
|
+
export { type AnyEndpointMiddleware as A, type MultipartValues as B, type TypedFormData as C, DELETE as D, type EndpointMCPMetadata as E, type MultipartSchema as F, GET as G, HEAD as H, type InferEndpointMiddlewareContext as I, type FarmStreamResponse as J, type FarmAPIStream as K, multipart as L, type MultipartField as M, isMultipartSchema as N, OPTIONS as O, POST as P, QUERY as Q, type RouteSchema as R, toFormData as S, type TypedEndpoint as T, jsonStream as U, isJSONStreamResponse as V, readJSONStream as W, isFarmAPIStream as X, type OpenAPISecurityMode as Y, type EndpointMCPOptions as a, type EndpointOpenAPIMetadata as b, type EndpointMiddlewareResult as c, type RouteSchemaOutput as d, type RouteSchemaInput as e, EndpointFailure as f, type EndpointErrorSchema as g, type EndpointErrorDefinition as h, isEndpointFailure as i, type EndpointErrorDefinitions as j, type EndpointErrorContracts as k, type EndpointErrorHandler as l, type EndpointFail as m, type EndpointParamValue as n, type EndpointParams as o, parseRouteSchema as p, type EndpointMiddlewareContext as q, type EndpointMiddleware as r, type EndpointInvalidationTarget as s, type EndpointInvalidationContext as t, type EndpointInvalidations as u, type EndpointOptions as v, type EndpointHandler as w, createEndpoint as x, PUT as y, PATCH as z };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVDRM36QBcjs = require('../chunk-VDRM36QB.cjs');
|
|
5
|
+
require('../chunk-WBKEZXWE.cjs');
|
|
6
|
+
require('../chunk-UYIHRDE4.cjs');
|
|
7
|
+
require('../chunk-CGVPXIRN.cjs');
|
|
8
|
+
require('../chunk-NO3WWW3N.cjs');
|
|
5
9
|
require('../chunk-S3JO3N4H.cjs');
|
|
6
10
|
|
|
7
11
|
|
|
8
12
|
|
|
9
|
-
exports.farmEnvironmentFunctionsPlugin =
|
|
13
|
+
exports.farmEnvironmentFunctionsPlugin = _chunkVDRM36QBcjs.farmEnvironmentFunctionsPlugin; exports.transformEnvironmentFunctions = _chunkVDRM36QBcjs.transformEnvironmentFunctions;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
import { FarmEnvironment } from '../environment.mjs';
|
|
3
|
+
import { R as ResolvedFarmLayer } from '../layers-CM5i6T7z.mjs';
|
|
4
|
+
import 'rolldown/utils';
|
|
5
|
+
import 'rolldown';
|
|
3
6
|
|
|
4
7
|
interface AstNode {
|
|
5
8
|
type: string;
|
|
@@ -17,6 +20,12 @@ interface TransformEnvironmentFunctionsResult {
|
|
|
17
20
|
code: string;
|
|
18
21
|
}
|
|
19
22
|
declare function transformEnvironmentFunctions(options: TransformEnvironmentFunctionsOptions): TransformEnvironmentFunctionsResult | null;
|
|
20
|
-
|
|
23
|
+
interface FarmEnvironmentFunctionsPluginOptions {
|
|
24
|
+
/** The app's root, srcDir, and layers: where Farm loads programmatic routes files from. */
|
|
25
|
+
root?: string;
|
|
26
|
+
srcDir?: string;
|
|
27
|
+
layers?: readonly ResolvedFarmLayer[];
|
|
28
|
+
}
|
|
29
|
+
declare function farmEnvironmentFunctionsPlugin(options?: FarmEnvironmentFunctionsPluginOptions): Plugin;
|
|
21
30
|
|
|
22
|
-
export { type TransformEnvironmentFunctionsOptions, type TransformEnvironmentFunctionsResult, farmEnvironmentFunctionsPlugin, transformEnvironmentFunctions };
|
|
31
|
+
export { type FarmEnvironmentFunctionsPluginOptions, type TransformEnvironmentFunctionsOptions, type TransformEnvironmentFunctionsResult, farmEnvironmentFunctionsPlugin, transformEnvironmentFunctions };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
import { FarmEnvironment } from '../environment.js';
|
|
3
|
+
import { R as ResolvedFarmLayer } from '../layers-CM5i6T7z.js';
|
|
4
|
+
import 'rolldown/utils';
|
|
5
|
+
import 'rolldown';
|
|
3
6
|
|
|
4
7
|
interface AstNode {
|
|
5
8
|
type: string;
|
|
@@ -17,6 +20,12 @@ interface TransformEnvironmentFunctionsResult {
|
|
|
17
20
|
code: string;
|
|
18
21
|
}
|
|
19
22
|
declare function transformEnvironmentFunctions(options: TransformEnvironmentFunctionsOptions): TransformEnvironmentFunctionsResult | null;
|
|
20
|
-
|
|
23
|
+
interface FarmEnvironmentFunctionsPluginOptions {
|
|
24
|
+
/** The app's root, srcDir, and layers: where Farm loads programmatic routes files from. */
|
|
25
|
+
root?: string;
|
|
26
|
+
srcDir?: string;
|
|
27
|
+
layers?: readonly ResolvedFarmLayer[];
|
|
28
|
+
}
|
|
29
|
+
declare function farmEnvironmentFunctionsPlugin(options?: FarmEnvironmentFunctionsPluginOptions): Plugin;
|
|
21
30
|
|
|
22
|
-
export { type TransformEnvironmentFunctionsOptions, type TransformEnvironmentFunctionsResult, farmEnvironmentFunctionsPlugin, transformEnvironmentFunctions };
|
|
31
|
+
export { type FarmEnvironmentFunctionsPluginOptions, type TransformEnvironmentFunctionsOptions, type TransformEnvironmentFunctionsResult, farmEnvironmentFunctionsPlugin, transformEnvironmentFunctions };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
farmEnvironmentFunctionsPlugin,
|
|
3
3
|
transformEnvironmentFunctions
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-CALY6QG6.mjs";
|
|
5
|
+
import "../chunk-BUGNQIHC.mjs";
|
|
6
|
+
import "../chunk-SFGWNC43.mjs";
|
|
7
|
+
import "../chunk-KNHBTJP6.mjs";
|
|
8
|
+
import "../chunk-55YI3RRB.mjs";
|
|
5
9
|
import "../chunk-LPEX4YW6.mjs";
|
|
6
10
|
export {
|
|
7
11
|
farmEnvironmentFunctionsPlugin,
|
package/dist/headers.cjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk6ILGLCXFcjs = require('./chunk-6ILGLCXF.cjs');
|
|
6
6
|
require('./chunk-AI7QMY7O.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-XVIEGKTT.cjs');
|
|
8
|
+
require('./chunk-DATEWH3W.cjs');
|
|
9
9
|
require('./chunk-S3JO3N4H.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.cookies =
|
|
14
|
+
exports.cookies = _chunk6ILGLCXFcjs.cookies; exports.getCspNonce = _chunk6ILGLCXFcjs.getCspNonce; exports.headers = _chunk6ILGLCXFcjs.headers;
|
package/dist/headers.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
cookies,
|
|
3
3
|
getCspNonce,
|
|
4
4
|
headers
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I63UCMXW.mjs";
|
|
6
6
|
import "./chunk-JM5XPKWH.mjs";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-ZOABCQGT.mjs";
|
|
8
|
+
import "./chunk-Y6LRPO2K.mjs";
|
|
9
9
|
import "./chunk-LPEX4YW6.mjs";
|
|
10
10
|
export {
|
|
11
11
|
cookies,
|
package/dist/image/server.cjs
CHANGED
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
require('../chunk-
|
|
7
|
+
|
|
8
|
+
var _chunkKEXK442Icjs = require('../chunk-KEXK442I.cjs');
|
|
9
|
+
require('../chunk-UNJZGVPU.cjs');
|
|
10
|
+
require('../chunk-5NAVKJCZ.cjs');
|
|
11
|
+
require('../chunk-4TLUFAIP.cjs');
|
|
9
12
|
require('../chunk-NO3WWW3N.cjs');
|
|
10
13
|
require('../chunk-S3JO3N4H.cjs');
|
|
11
14
|
|
|
@@ -14,4 +17,5 @@ require('../chunk-S3JO3N4H.cjs');
|
|
|
14
17
|
|
|
15
18
|
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
|
|
21
|
+
exports.FarmImageRequestError = _chunkKEXK442Icjs.FarmImageRequestError; exports._withFarmImageSourceClientAddress = _chunkKEXK442Icjs._withFarmImageSourceClientAddress; exports.createCloudflareImageTransformer = _chunkKEXK442Icjs.createCloudflareImageTransformer; exports.createFarmImageHandler = _chunkKEXK442Icjs.createFarmImageHandler; exports.isPrivateImageAddress = _chunkKEXK442Icjs.isPrivateImageAddress; exports.selectOutputFormat = _chunkKEXK442Icjs.selectOutputFormat;
|
package/dist/image/server.d.mts
CHANGED
|
@@ -47,5 +47,13 @@ declare function createFarmImageHandler(config: ResolvedFarmImageConfig, options
|
|
|
47
47
|
declare function createCloudflareImageTransformer(fetcher?: typeof globalThis.fetch): FarmImageTransformer;
|
|
48
48
|
declare function selectOutputFormat(accept: string, formats: readonly FarmImageFormat[]): FarmImageFormat | undefined;
|
|
49
49
|
declare function isPrivateImageAddress(address: string): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @internal The adapter context for an incoming request. The optimizer's own fetch of a local
|
|
52
|
+
* source acts for any visitor, and its cached result is served to all of them, so it reports
|
|
53
|
+
* an anonymous client address instead of the loopback address it connects from.
|
|
54
|
+
*/
|
|
55
|
+
declare function _withFarmImageSourceClientAddress<T extends {
|
|
56
|
+
clientAddress?: string;
|
|
57
|
+
}>(request: Request, context: T | undefined): T | undefined;
|
|
50
58
|
|
|
51
|
-
export { type CreateFarmImageHandlerOptions, type FarmImageHandler, type FarmImageHandlerContext, FarmImageRequestError, type FarmImageTransformInput, type FarmImageTransformResult, type FarmImageTransformer, createCloudflareImageTransformer, createFarmImageHandler, isPrivateImageAddress, selectOutputFormat };
|
|
59
|
+
export { type CreateFarmImageHandlerOptions, type FarmImageHandler, type FarmImageHandlerContext, FarmImageRequestError, type FarmImageTransformInput, type FarmImageTransformResult, type FarmImageTransformer, _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler, isPrivateImageAddress, selectOutputFormat };
|
package/dist/image/server.d.ts
CHANGED
|
@@ -47,5 +47,13 @@ declare function createFarmImageHandler(config: ResolvedFarmImageConfig, options
|
|
|
47
47
|
declare function createCloudflareImageTransformer(fetcher?: typeof globalThis.fetch): FarmImageTransformer;
|
|
48
48
|
declare function selectOutputFormat(accept: string, formats: readonly FarmImageFormat[]): FarmImageFormat | undefined;
|
|
49
49
|
declare function isPrivateImageAddress(address: string): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @internal The adapter context for an incoming request. The optimizer's own fetch of a local
|
|
52
|
+
* source acts for any visitor, and its cached result is served to all of them, so it reports
|
|
53
|
+
* an anonymous client address instead of the loopback address it connects from.
|
|
54
|
+
*/
|
|
55
|
+
declare function _withFarmImageSourceClientAddress<T extends {
|
|
56
|
+
clientAddress?: string;
|
|
57
|
+
}>(request: Request, context: T | undefined): T | undefined;
|
|
50
58
|
|
|
51
|
-
export { type CreateFarmImageHandlerOptions, type FarmImageHandler, type FarmImageHandlerContext, FarmImageRequestError, type FarmImageTransformInput, type FarmImageTransformResult, type FarmImageTransformer, createCloudflareImageTransformer, createFarmImageHandler, isPrivateImageAddress, selectOutputFormat };
|
|
59
|
+
export { type CreateFarmImageHandlerOptions, type FarmImageHandler, type FarmImageHandlerContext, FarmImageRequestError, type FarmImageTransformInput, type FarmImageTransformResult, type FarmImageTransformer, _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler, isPrivateImageAddress, selectOutputFormat };
|
package/dist/image/server.mjs
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FarmImageRequestError,
|
|
3
|
+
_withFarmImageSourceClientAddress,
|
|
3
4
|
createCloudflareImageTransformer,
|
|
4
5
|
createFarmImageHandler,
|
|
5
6
|
isPrivateImageAddress,
|
|
6
7
|
selectOutputFormat
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-INQ64HTJ.mjs";
|
|
9
|
+
import "../chunk-BRYPZIMB.mjs";
|
|
10
|
+
import "../chunk-ZZGQD7A4.mjs";
|
|
11
|
+
import "../chunk-P7XDC7UJ.mjs";
|
|
9
12
|
import "../chunk-55YI3RRB.mjs";
|
|
10
13
|
import "../chunk-LPEX4YW6.mjs";
|
|
11
14
|
export {
|
|
12
15
|
FarmImageRequestError,
|
|
16
|
+
_withFarmImageSourceClientAddress,
|
|
13
17
|
createCloudflareImageTransformer,
|
|
14
18
|
createFarmImageHandler,
|
|
15
19
|
isPrivateImageAddress,
|
package/dist/image/sharp.cjs
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
5
|
+
var _chunkKEXK442Icjs = require('../chunk-KEXK442I.cjs');
|
|
6
|
+
require('../chunk-UNJZGVPU.cjs');
|
|
7
|
+
require('../chunk-5NAVKJCZ.cjs');
|
|
8
|
+
require('../chunk-4TLUFAIP.cjs');
|
|
7
9
|
require('../chunk-NO3WWW3N.cjs');
|
|
8
10
|
|
|
9
11
|
|
|
@@ -14,7 +16,7 @@ function createSharpImageTransformer() {
|
|
|
14
16
|
return async ({ source, sourceType, width, quality, accept, formats, signal }) => {
|
|
15
17
|
const { default: sharp } = await import("sharp");
|
|
16
18
|
throwIfAborted(signal);
|
|
17
|
-
const outputFormat =
|
|
19
|
+
const outputFormat = _chunkKEXK442Icjs.selectOutputFormat.call(void 0, accept, formats);
|
|
18
20
|
let pipeline = sharp(source, {
|
|
19
21
|
animated: sourceType === "image/gif" || sourceType === "image/webp",
|
|
20
22
|
failOn: "warning",
|
|
@@ -60,14 +62,14 @@ function createNodeImageUrlValidator(config) {
|
|
|
60
62
|
const { lookup } = await import("dns/promises");
|
|
61
63
|
addresses = await lookup(url.hostname, { all: true, verbatim: true });
|
|
62
64
|
} catch (e) {
|
|
63
|
-
throw new (0,
|
|
65
|
+
throw new (0, _chunkKEXK442Icjs.FarmImageRequestError)(
|
|
64
66
|
"PRIVATE_SOURCE",
|
|
65
67
|
400,
|
|
66
68
|
"Could not safely resolve the image source"
|
|
67
69
|
);
|
|
68
70
|
}
|
|
69
|
-
if (addresses.length === 0 || addresses.some(({ address }) =>
|
|
70
|
-
throw new (0,
|
|
71
|
+
if (addresses.length === 0 || addresses.some(({ address }) => _chunkKEXK442Icjs.isPrivateImageAddress.call(void 0, address))) {
|
|
72
|
+
throw new (0, _chunkKEXK442Icjs.FarmImageRequestError)("PRIVATE_SOURCE", 400, "Private image source is not allowed");
|
|
71
73
|
}
|
|
72
74
|
}, "validateNodeImageUrl");
|
|
73
75
|
}
|
|
@@ -78,7 +80,7 @@ function createNodeImageFetcher(config, lookup) {
|
|
|
78
80
|
const inputRequest = input instanceof Request ? input : void 0;
|
|
79
81
|
const url = input instanceof URL ? input : new URL(_nullishCoalesce(_optionalChain([inputRequest, 'optionalAccess', _ => _.url]), () => ( String(input))));
|
|
80
82
|
if (url.protocol !== "http:" && url.protocol !== "https:") {
|
|
81
|
-
throw new (0,
|
|
83
|
+
throw new (0, _chunkKEXK442Icjs.FarmImageRequestError)("DISALLOWED_SOURCE", 400, "Unsupported image protocol");
|
|
82
84
|
}
|
|
83
85
|
const [{ request }, { Readable }, dns] = await Promise.all([
|
|
84
86
|
url.protocol === "https:" ? import("https") : import("http"),
|
|
@@ -102,9 +104,9 @@ function createNodeImageFetcher(config, lookup) {
|
|
|
102
104
|
callback(error, "", 4);
|
|
103
105
|
return;
|
|
104
106
|
}
|
|
105
|
-
if (addresses.length === 0 || addresses.some(({ address: address2 }) =>
|
|
107
|
+
if (addresses.length === 0 || addresses.some(({ address: address2 }) => _chunkKEXK442Icjs.isPrivateImageAddress.call(void 0, address2))) {
|
|
106
108
|
callback(
|
|
107
|
-
new (0,
|
|
109
|
+
new (0, _chunkKEXK442Icjs.FarmImageRequestError)(
|
|
108
110
|
"PRIVATE_SOURCE",
|
|
109
111
|
400,
|
|
110
112
|
"Private image source is not allowed"
|
|
@@ -128,7 +130,7 @@ function createNodeImageFetcher(config, lookup) {
|
|
|
128
130
|
if (status < 200 || status > 599) {
|
|
129
131
|
nodeResponse.resume();
|
|
130
132
|
reject(
|
|
131
|
-
new (0,
|
|
133
|
+
new (0, _chunkKEXK442Icjs.FarmImageRequestError)(
|
|
132
134
|
"UNSUPPORTED_IMAGE",
|
|
133
135
|
502,
|
|
134
136
|
"Image source returned an invalid HTTP status"
|
package/dist/image/sharp.mjs
CHANGED
|
@@ -2,8 +2,10 @@ import {
|
|
|
2
2
|
FarmImageRequestError,
|
|
3
3
|
isPrivateImageAddress,
|
|
4
4
|
selectOutputFormat
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-INQ64HTJ.mjs";
|
|
6
|
+
import "../chunk-BRYPZIMB.mjs";
|
|
7
|
+
import "../chunk-ZZGQD7A4.mjs";
|
|
8
|
+
import "../chunk-P7XDC7UJ.mjs";
|
|
7
9
|
import "../chunk-55YI3RRB.mjs";
|
|
8
10
|
import {
|
|
9
11
|
__name
|