@farm.js/core 0.1.31 → 0.1.34
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/README.md +1 -1
- package/dist/agent-runtime.cjs +69 -14
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/agent-runtime.mjs +58 -3
- package/dist/api/route-manager.cjs +16 -13
- package/dist/api/route-manager.d.mts +1 -1
- package/dist/api/route-manager.d.ts +1 -1
- package/dist/api/route-manager.mjs +15 -12
- package/dist/api/runtime.cjs +9 -7
- package/dist/api/runtime.d.mts +1 -1
- package/dist/api/runtime.d.ts +1 -1
- package/dist/api/runtime.mjs +8 -6
- package/dist/api.cjs +19 -16
- package/dist/api.d.mts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.mjs +18 -15
- package/dist/{app-sUJ3jnTZ.d.ts → app-DgotYGbq.d.ts} +3 -3
- package/dist/app-markdown.cjs +8 -6
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/app-markdown.mjs +7 -5
- package/dist/{app-DAuUTIZf.d.mts → app-q4rmZlXK.d.mts} +3 -3
- package/dist/cache.cjs +2 -2
- package/dist/cache.d.mts +10 -1
- package/dist/cache.d.ts +10 -1
- package/dist/cache.mjs +1 -1
- package/dist/{chunk-YZTASLPQ.cjs → chunk-27ZWSI3W.cjs} +2 -2
- package/dist/{chunk-WBIH66JK.mjs → chunk-2ELDTQRN.mjs} +5 -2
- package/dist/{chunk-K7CELQLK.cjs → chunk-2F2ER724.cjs} +54 -29
- package/dist/{chunk-NRVGEI5I.mjs → chunk-2NNMOPDN.mjs} +4 -210
- package/dist/chunk-2NQQ5H5G.cjs +86 -0
- package/dist/{chunk-IFI5FXEZ.cjs → chunk-36MK5YCW.cjs} +334 -163
- package/dist/chunk-3BU22U3M.cjs +237 -0
- package/dist/{chunk-MM5D6VLP.mjs → chunk-3KZS4SUS.mjs} +33 -14
- package/dist/chunk-3SDFA7UF.cjs +701 -0
- package/dist/{chunk-4IEPYMHF.mjs → chunk-3UEVPCGW.mjs} +1 -1
- package/dist/{chunk-5LJCOSKT.mjs → chunk-3VSKDFAT.mjs} +1 -1
- package/dist/{chunk-5HGR3W6O.mjs → chunk-5SJWVY6R.mjs} +8 -0
- package/dist/{chunk-X7WVQMIB.mjs → chunk-657WJNRY.mjs} +10 -4
- package/dist/{chunk-MKMBQSNQ.mjs → chunk-6VVL3MHY.mjs} +3 -3
- package/dist/{chunk-QZRVZSPN.cjs → chunk-77GNHH2Z.cjs} +3 -3
- package/dist/{chunk-KZLND3D2.cjs → chunk-7BT4H4P7.cjs} +7 -5
- package/dist/{chunk-A777V5WU.cjs → chunk-7M52YUMY.cjs} +2 -2
- package/dist/{chunk-VUMAE7NC.mjs → chunk-7Y6ZNFPX.mjs} +81 -30
- package/dist/{chunk-MXDTKXO6.cjs → chunk-A5FGU2WU.cjs} +74 -23
- package/dist/{chunk-7QOCTYBS.mjs → chunk-AGC75XAE.mjs} +37 -1
- package/dist/{chunk-4ZQQL4IU.mjs → chunk-AHGECQEW.mjs} +1 -1
- package/dist/{chunk-RG3ZOTG5.cjs → chunk-AI7QMY7O.cjs} +10 -3
- package/dist/{chunk-O3DTUAX2.mjs → chunk-AQZFOP7S.mjs} +6 -77
- package/dist/{chunk-WNLBF77X.cjs → chunk-ATK2R4CH.cjs} +14 -12
- package/dist/{chunk-SORB3MAR.cjs → chunk-AWC4VUZL.cjs} +17 -17
- package/dist/{chunk-YMCXWPWK.mjs → chunk-BCMSYSN2.mjs} +4 -1
- package/dist/{chunk-FYRBX5IY.cjs → chunk-BTAG7LI7.cjs} +2 -2
- package/dist/{chunk-I6XDAKWQ.mjs → chunk-BTHHUD7Q.mjs} +14 -0
- package/dist/chunk-C4SPBWFM.cjs +26 -0
- package/dist/{chunk-JATSG2ZO.mjs → chunk-CLJYVZAD.mjs} +4 -2
- package/dist/{chunk-J3LOGE4T.cjs → chunk-DQQOKWYA.cjs} +5 -5
- package/dist/{chunk-JLRDISQL.cjs → chunk-DZ4DTRJ5.cjs} +7 -7
- package/dist/chunk-E5GNDG5F.mjs +701 -0
- package/dist/{chunk-E76XC6ZG.mjs → chunk-EZDQRNQ7.mjs} +2 -2
- package/dist/{chunk-TOVMYGYW.mjs → chunk-F2SE2VDO.mjs} +1 -1
- package/dist/{chunk-BSPQVJ4A.mjs → chunk-FDR64H6B.mjs} +13 -0
- package/dist/{chunk-5OVTOKGH.cjs → chunk-FFFW3OQ7.cjs} +2 -2
- package/dist/{chunk-D4JE5NNV.cjs → chunk-FNO7A7CM.cjs} +5 -5
- package/dist/chunk-FZ6YYU2W.mjs +65 -0
- package/dist/{chunk-PZNCMPJF.cjs → chunk-G26MUMKL.cjs} +14 -8
- package/dist/{chunk-IXUY2F5U.mjs → chunk-GCXWJJKH.mjs} +4 -7
- package/dist/{chunk-JLCQGPXE.mjs → chunk-GNSDTTWZ.mjs} +50 -61
- package/dist/{chunk-TEN4FIZU.mjs → chunk-GOABMOX3.mjs} +151 -3
- package/dist/{chunk-HBTUGXHS.cjs → chunk-HLJ6MBUZ.cjs} +7 -4
- package/dist/{chunk-GZYH4OER.mjs → chunk-HR5KPHC2.mjs} +1 -1
- package/dist/{chunk-ZCU4NZ3M.cjs → chunk-IE7XCHH3.cjs} +4 -4
- package/dist/{chunk-I26CZYPV.cjs → chunk-IHNIDL6H.cjs} +50 -7
- package/dist/{chunk-2FQHH5SC.mjs → chunk-IHNMMXHV.mjs} +49 -24
- package/dist/{chunk-VHJGDMCG.cjs → chunk-IWZKTWHZ.cjs} +2 -2
- package/dist/{chunk-DGXN3L4D.mjs → chunk-JDPAKVS4.mjs} +4 -4
- package/dist/chunk-JG6DJF5A.mjs +238 -0
- package/dist/{chunk-5TISYEQF.mjs → chunk-JM5XPKWH.mjs} +10 -3
- package/dist/{chunk-BJJATPEC.mjs → chunk-KN7K4VQN.mjs} +1 -1
- package/dist/{chunk-WPYFSQKK.cjs → chunk-KNBBQHO2.cjs} +15 -1
- package/dist/{chunk-XWAWFQFS.cjs → chunk-KXWRO25S.cjs} +7 -4
- package/dist/{chunk-QG5HNS7P.mjs → chunk-LHODW25H.mjs} +2 -2
- package/dist/{chunk-BXFWA23T.mjs → chunk-LMJ7VRHZ.mjs} +3 -3
- package/dist/{chunk-WG2KHOMN.mjs → chunk-LR5QSC2P.mjs} +380 -209
- package/dist/chunk-LSKZMJMP.cjs +65 -0
- package/dist/{chunk-2N5PX3LS.mjs → chunk-LYV44OIR.mjs} +7 -1
- package/dist/{chunk-5MKEDGLD.cjs → chunk-M64YUMA4.cjs} +11 -6
- package/dist/{chunk-EXLKRR4U.cjs → chunk-MIDIZJZC.cjs} +12 -12
- package/dist/{chunk-ES4B2IXW.cjs → chunk-MOKLYNHV.cjs} +2 -2
- package/dist/{chunk-IV6CQY7O.mjs → chunk-MSSFIQGM.mjs} +63 -13
- package/dist/{chunk-KH7BN726.cjs → chunk-N4UOK6ZI.cjs} +8 -2
- package/dist/{chunk-6VYZOPOT.mjs → chunk-NGVORZVZ.mjs} +1 -1
- package/dist/{chunk-JNGIWIY6.mjs → chunk-NPC7VWJE.mjs} +2 -2
- package/dist/{chunk-ILWLPEVO.mjs → chunk-NRSN7G7E.mjs} +2 -2
- package/dist/{chunk-AHAJGAYD.mjs → chunk-O27L4YAA.mjs} +1 -1
- package/dist/{chunk-VYZSOYR4.cjs → chunk-ODBZYBAB.cjs} +1 -1
- package/dist/{chunk-YVGAEAA5.cjs → chunk-P64MIF5B.cjs} +154 -6
- package/dist/{chunk-DFLLARUK.cjs → chunk-PQDFUSXD.cjs} +14 -14
- package/dist/{chunk-F6XEGFHO.mjs → chunk-PXKIEXZD.mjs} +10 -0
- package/dist/{chunk-S5GDHOE4.mjs → chunk-PZNL3WEG.mjs} +48 -5
- package/dist/{chunk-FV45CKBC.mjs → chunk-QCFBDFRS.mjs} +1 -1
- package/dist/{chunk-75BRBIFP.cjs → chunk-QCVE2OCI.cjs} +5 -8
- package/dist/{chunk-6ZCMSZ5U.mjs → chunk-QE6VAKLT.mjs} +1 -1
- package/dist/{chunk-75DYEVXI.cjs → chunk-QGYRXFU2.cjs} +9 -9
- package/dist/{chunk-CTV2TTNP.cjs → chunk-QJ3J6MZT.cjs} +16 -87
- package/dist/{chunk-O6XNAMBV.mjs → chunk-QLQ32WC4.mjs} +8 -3
- package/dist/{chunk-IMB4PIAR.cjs → chunk-SJVKK4JE.cjs} +839 -420
- package/dist/{chunk-3FCFQP5V.cjs → chunk-TA5G2HWD.cjs} +21 -21
- package/dist/{chunk-Z5HIWVDP.cjs → chunk-TDFPACVX.cjs} +62 -73
- package/dist/{chunk-ND224OE2.cjs → chunk-TKSCR644.cjs} +34 -15
- package/dist/{chunk-UAFSBWNT.mjs → chunk-U4PTAHW3.mjs} +64 -13
- package/dist/{chunk-ZHVYQL3H.cjs → chunk-U74I55WB.cjs} +86 -35
- package/dist/chunk-UBO4SGH4.mjs +86 -0
- package/dist/{chunk-IQXFRNY2.cjs → chunk-UFDAAQFX.cjs} +2 -2
- package/dist/{chunk-X7KZBF63.cjs → chunk-UX5S4JEO.cjs} +40 -4
- package/dist/{chunk-5ZSWG4UX.cjs → chunk-UXFQ3UDA.cjs} +14 -1
- package/dist/{chunk-L4DVIHOC.mjs → chunk-VCCUOMQN.mjs} +1 -1
- package/dist/{chunk-4V7GIE2U.mjs → chunk-VHANUNEG.mjs} +2 -2
- package/dist/{chunk-FXUUWYAX.cjs → chunk-VKNHTSAP.cjs} +10 -0
- package/dist/{chunk-2AKFKCHA.mjs → chunk-W7LF2J2S.mjs} +1 -1
- package/dist/{chunk-MNUGPHLN.mjs → chunk-WNNYOOIB.mjs} +5 -3
- package/dist/{chunk-VA62MHFV.mjs → chunk-X242HVD5.mjs} +1 -1
- package/dist/{chunk-UJ2C4ICS.cjs → chunk-XJXBIP67.cjs} +4 -4
- package/dist/{chunk-6L6DQR5W.mjs → chunk-XV5DJTBX.mjs} +539 -121
- package/dist/{chunk-KJ2TIHZZ.cjs → chunk-XXJU7FCC.cjs} +3 -2
- package/dist/{chunk-DYEJQTDN.cjs → chunk-YSCV4SJF.cjs} +4 -4
- package/dist/{chunk-2SDO73HK.cjs → chunk-YWN746US.cjs} +64 -14
- package/dist/chunk-Z2HLU4IX.cjs +238 -0
- package/dist/{chunk-2FXWWUE5.cjs → chunk-Z2YLTERK.cjs} +4 -4
- package/dist/{chunk-CUMINO7Z.cjs → chunk-ZHPHJPQP.cjs} +4 -4
- package/dist/{chunk-FJZ3DQLK.mjs → chunk-ZKP7C2B6.mjs} +4 -4
- package/dist/{chunk-JBC2FKRW.mjs → chunk-ZUSJDQ2Q.mjs} +2 -1
- package/dist/{client-plugins-BX2ptm4H.d.mts → client-plugins-CLObcuCq.d.mts} +26 -2
- package/dist/{client-plugins-BmxM5KW_.d.ts → client-plugins-DZjHC4Mi.d.ts} +26 -2
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.cjs +8 -8
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +7 -7
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{devtools-EWRDHCD5.cjs → devtools-HU6Y2MNV.cjs} +11 -9
- package/dist/{devtools-BPBCYOU6.mjs → devtools-RNXCTS4R.mjs} +10 -8
- package/dist/docs.cjs +13 -11
- package/dist/docs.d.mts +5 -0
- package/dist/docs.d.ts +5 -0
- package/dist/docs.mjs +12 -10
- package/dist/environment/vite.cjs +2 -2
- package/dist/environment/vite.mjs +1 -1
- package/dist/headers.cjs +4 -4
- package/dist/headers.mjs +3 -3
- package/dist/i18n/client.cjs +14 -13
- package/dist/i18n/client.mjs +5 -4
- package/dist/i18n/index.cjs +3 -2
- package/dist/i18n/index.mjs +2 -1
- package/dist/i18n/server.cjs +6 -5
- package/dist/i18n/server.mjs +5 -4
- package/dist/image/server.cjs +2 -2
- package/dist/image/server.mjs +1 -1
- package/dist/image/sharp.cjs +9 -9
- package/dist/image/sharp.mjs +1 -1
- package/dist/index.cjs +67 -55
- package/dist/index.d.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.mjs +70 -58
- package/dist/integrations.cjs +6 -3
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/integrations.mjs +7 -4
- package/dist/internal/app-markdown-runtime.cjs +7 -5
- package/dist/internal/app-markdown-runtime.d.mts +14 -3
- package/dist/internal/app-markdown-runtime.d.ts +14 -3
- package/dist/internal/app-markdown-runtime.mjs +6 -4
- package/dist/internal/build-runtime.cjs +38 -35
- package/dist/internal/build-runtime.d.mts +3 -3
- package/dist/internal/build-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.mjs +37 -34
- package/dist/internal/cli-runtime.cjs +20 -17
- package/dist/internal/cli-runtime.mjs +19 -16
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +4 -2
- package/dist/internal/client-runtime.d.mts +9 -1
- package/dist/internal/client-runtime.d.ts +9 -1
- package/dist/internal/client-runtime.mjs +3 -1
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +11 -9
- package/dist/internal/config-runtime.d.mts +2 -2
- package/dist/internal/config-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.mjs +10 -8
- package/dist/internal/infra-analytics-runtime.cjs +4 -4
- package/dist/internal/infra-analytics-runtime.mjs +2 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +20 -14
- package/dist/internal/production-runtime.d.mts +115 -8
- package/dist/internal/production-runtime.d.ts +115 -8
- package/dist/internal/production-runtime.mjs +19 -13
- package/dist/internal/request-cookies.cjs +4 -2
- package/dist/internal/request-cookies.d.mts +9 -1
- package/dist/internal/request-cookies.d.ts +9 -1
- package/dist/internal/request-cookies.mjs +3 -1
- package/dist/markdown.cjs +4 -4
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.mjs +3 -3
- package/dist/{metadata-DsEaK7mQ.d.mts → metadata-2HSU2i_w.d.mts} +1 -1
- package/dist/{metadata-fwZ3gfG6.d.ts → metadata-Cjs8JMRM.d.ts} +1 -1
- package/dist/middleware.cjs +18 -8
- package/dist/middleware.d.mts +24 -5
- package/dist/middleware.d.ts +24 -5
- package/dist/middleware.mjs +18 -8
- package/dist/navigation.cjs +6 -6
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.mjs +5 -5
- package/dist/{nitro-NAKCRVHX.mjs → nitro-4XGPNIK4.mjs} +3 -3
- package/dist/{nitro-VYDZGYFY.cjs → nitro-HSAQFXSS.cjs} +4 -4
- package/dist/plugin.cjs +33 -30
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.mjs +32 -29
- package/dist/{production-runtime-DNkpFnmg.d.ts → production-runtime-BU5ETAK9.d.ts} +8 -1
- package/dist/{production-runtime-Baqgwtvc.d.mts → production-runtime-CysZl3EV.d.mts} +8 -1
- package/dist/query/client.cjs +7 -7
- package/dist/query/client.mjs +3 -3
- package/dist/{render-plan-DhwQnmmX.d.mts → render-plan-CKr4ltOd.d.mts} +1 -1
- package/dist/{render-plan-rkIK9wd9.d.ts → render-plan-D72O1qm4.d.ts} +1 -1
- package/dist/renderer-client.cjs +39 -19
- package/dist/renderer-client.d.mts +3 -3
- package/dist/renderer-client.d.ts +3 -3
- package/dist/renderer-client.mjs +28 -8
- package/dist/{request-CFy1BltJ.d.mts → request-Be83WafN.d.mts} +7 -2
- package/dist/{request-BcY4RYPC.d.ts → request-DbyOYI2j.d.ts} +7 -2
- package/dist/request.cjs +2 -2
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/request.mjs +1 -1
- package/dist/{route-rendering-BkS0TBlB.d.mts → route-rendering-BG56SzvJ.d.mts} +1 -1
- package/dist/{route-rendering-D4XpMjam.d.ts → route-rendering-CtVMpV-k.d.ts} +1 -1
- package/dist/{router-C4zPlC3V.d.mts → router-ALUvm8gC.d.mts} +1 -1
- package/dist/{router-Cq7BcZxg.d.ts → router-D94-SDlW.d.ts} +1 -1
- package/dist/routes.cjs +3 -3
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.mjs +2 -2
- package/dist/server-fn.cjs +3 -3
- package/dist/server-fn.mjs +2 -2
- package/dist/server-plugins.cjs +4 -4
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server-plugins.mjs +3 -3
- package/dist/server-query-client.cjs +3 -3
- package/dist/server-query-client.mjs +2 -2
- package/dist/server-query.cjs +4 -4
- package/dist/server-query.mjs +3 -3
- package/dist/server.cjs +60 -57
- package/dist/server.d.mts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.mjs +37 -34
- package/dist/{spa-router-B1HI3X9k.d.ts → spa-router-CxK3USIz.d.ts} +2 -2
- package/dist/{spa-router-DzPZH-AO.d.mts → spa-router-DbxNRKOB.d.mts} +2 -2
- package/dist/testing.cjs +19 -17
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.mjs +16 -14
- package/dist/theme/server.cjs +4 -3
- package/dist/theme/server.mjs +3 -2
- package/dist/{utils-DMD1Hzta.d.ts → utils-311Y8eoK.d.ts} +1 -1
- package/dist/{utils-CEBktlBG.d.mts → utils-4wVRcpOw.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +33 -30
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.mjs +32 -29
- package/package.json +2 -2
- package/dist/chunk-22GUSVNJ.cjs +0 -351
- package/dist/chunk-SWN467MP.cjs +0 -18
- package/dist/chunk-XGC343EY.cjs +0 -443
- package/dist/chunk-ZSH2Y4LN.mjs +0 -351
- /package/dist/{chunk-SUIBNSNO.cjs → chunk-SJNMVDDF.cjs} +0 -0
- /package/dist/{chunk-LNZ7JZUS.mjs → chunk-UDNPLXW7.mjs} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkJ63ZH5OQcjs = require('./chunk-J63ZH5OQ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkM64YUMA4cjs = require('./chunk-M64YUMA4.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkFJ3M4CUXcjs = require('./chunk-FJ3M4CUX.cjs');
|
|
@@ -442,7 +442,7 @@ async function createMarkdownMirrorResponse(options) {
|
|
|
442
442
|
for (const form of actions) {
|
|
443
443
|
if (!_optionalChain([form, 'access', _16 => _16.action, 'optionalAccess', _17 => _17.startsWith, 'call', _18 => _18("/")])) continue;
|
|
444
444
|
const pathname = new URL(form.action, pageUrl.origin).pathname;
|
|
445
|
-
const tool = _nullishCoalesce(
|
|
445
|
+
const tool = _nullishCoalesce(_chunkM64YUMA4cjs._findFarmMCPEndpointTool.call(void 0, form.method, pathname, options.apiServerBasePath), () => ( _chunkM64YUMA4cjs._findFarmMCPEndpointTool.call(void 0, form.method, _chunkI57LW5VZcjs.stripFarmBasePath.call(void 0, pathname), options.apiServerBasePath)));
|
|
446
446
|
if (tool) form.tool = tool;
|
|
447
447
|
}
|
|
448
448
|
const markdown = pageResponse.status < 400 && requestUrl.searchParams.has("actions") ? "" : convertHtmlToMarkdown(
|
|
@@ -832,6 +832,7 @@ function routeMatches(pattern, pathname) {
|
|
|
832
832
|
if (pattern === pathname) {
|
|
833
833
|
return true;
|
|
834
834
|
}
|
|
835
|
+
if (!pattern.includes("[")) return false;
|
|
835
836
|
let source = "";
|
|
836
837
|
pattern.split("/").forEach((segment, index) => {
|
|
837
838
|
if (/^\[\[\.\.\.[^\]]+\]\]$/.test(segment)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkFFFW3OQ7cjs = require('./chunk-FFFW3OQ7.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -14,10 +14,10 @@ var translate = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (key, valu
|
|
|
14
14
|
const message = readOwnMessage(snapshot.messages, key);
|
|
15
15
|
if (message === void 0) return key;
|
|
16
16
|
const cacheKey = `${snapshot.locale}\0${key}\0${message}`;
|
|
17
|
-
let formatter =
|
|
17
|
+
let formatter = _chunkFFFW3OQ7cjs.compiledFarmI18nMessages.get(cacheKey);
|
|
18
18
|
if (!formatter) {
|
|
19
19
|
formatter = new (0, _intlmessageformat2.default)(message, snapshot.locale);
|
|
20
|
-
|
|
20
|
+
_chunkFFFW3OQ7cjs.compiledFarmI18nMessages.set(cacheKey, formatter);
|
|
21
21
|
}
|
|
22
22
|
const result = formatter.format(values);
|
|
23
23
|
if (rich) return Array.isArray(result) && result.length === 1 ? result[0] : result;
|
|
@@ -35,7 +35,7 @@ function createFarmClientTranslator() {
|
|
|
35
35
|
}
|
|
36
36
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createFarmClientTranslator, "createFarmClientTranslator");
|
|
37
37
|
function requireSnapshot() {
|
|
38
|
-
const snapshot =
|
|
38
|
+
const snapshot = _chunkFFFW3OQ7cjs.getFarmI18nClientState.call(void 0, );
|
|
39
39
|
if (!snapshot) {
|
|
40
40
|
throw new Error("Farm i18n is not configured or has not been hydrated.");
|
|
41
41
|
}
|
|
@@ -150,16 +150,21 @@ function storageCacheAdapter(storage, options = {}) {
|
|
|
150
150
|
throw new TypeError("storageCacheAdapter expects a compatible storage client.");
|
|
151
151
|
}
|
|
152
152
|
const base = normalizeCacheNamespace(options.base || "farm-cache");
|
|
153
|
-
const entryKey = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (key) => `${base}:entry:${key}`, "entryKey");
|
|
154
|
-
const tagKey = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (tag) => `${base}:tag:${tag}`, "tagKey");
|
|
153
|
+
const entryKey = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async (key) => `${base}:entry:${await encodeStorageKeySegment(key)}`, "entryKey");
|
|
154
|
+
const tagKey = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async (tag) => `${base}:tag:${await encodeStorageKeySegment(tag)}`, "tagKey");
|
|
155
155
|
return {
|
|
156
156
|
name: "storage",
|
|
157
|
-
get: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (key) => storage.getItem(entryKey(key)), "get"),
|
|
157
|
+
get: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async (key) => storage.getItem(await entryKey(key)), "get"),
|
|
158
158
|
set: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async (key, entry) => {
|
|
159
|
-
|
|
159
|
+
const ttlMs = getFarmCacheEntryTtlMs(entry);
|
|
160
|
+
if (ttlMs === void 0) {
|
|
161
|
+
await storage.setItem(await entryKey(key), entry);
|
|
162
|
+
} else {
|
|
163
|
+
await storage.setItem(await entryKey(key), entry, { ttl: Math.ceil(ttlMs / 1e3) });
|
|
164
|
+
}
|
|
160
165
|
}, "set"),
|
|
161
166
|
delete: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async (key) => {
|
|
162
|
-
await storage.removeItem(entryKey(key));
|
|
167
|
+
await storage.removeItem(await entryKey(key));
|
|
163
168
|
}, "delete"),
|
|
164
169
|
clear: storage.clear ? async () => {
|
|
165
170
|
await storage.clear(base);
|
|
@@ -167,7 +172,7 @@ function storageCacheAdapter(storage, options = {}) {
|
|
|
167
172
|
getTagVersions: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async (tags) => {
|
|
168
173
|
const versions = await Promise.all(
|
|
169
174
|
tags.map(async (tag) => {
|
|
170
|
-
const value = await storage.getItem(tagKey(tag));
|
|
175
|
+
const value = await storage.getItem(await tagKey(tag));
|
|
171
176
|
return [tag, normalizeAdapterVersion(value)];
|
|
172
177
|
})
|
|
173
178
|
);
|
|
@@ -176,7 +181,7 @@ function storageCacheAdapter(storage, options = {}) {
|
|
|
176
181
|
invalidateTags: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async (tags) => {
|
|
177
182
|
await Promise.all(
|
|
178
183
|
tags.map(async (tag) => {
|
|
179
|
-
const key = tagKey(tag);
|
|
184
|
+
const key = await tagKey(tag);
|
|
180
185
|
const current = normalizeAdapterVersion(await storage.getItem(key));
|
|
181
186
|
await storage.setItem(key, Math.max(Date.now(), current + 1));
|
|
182
187
|
})
|
|
@@ -185,6 +190,35 @@ function storageCacheAdapter(storage, options = {}) {
|
|
|
185
190
|
};
|
|
186
191
|
}
|
|
187
192
|
_chunkS3JO3N4Hcjs.__name.call(void 0, storageCacheAdapter, "storageCacheAdapter");
|
|
193
|
+
var MAX_STORAGE_KEY_SEGMENT_LENGTH = 200;
|
|
194
|
+
async function encodeStorageKeySegment(value) {
|
|
195
|
+
let encoded;
|
|
196
|
+
try {
|
|
197
|
+
encoded = encodeURIComponent(value);
|
|
198
|
+
} catch (e) {
|
|
199
|
+
}
|
|
200
|
+
if (encoded !== void 0 && encoded.length <= MAX_STORAGE_KEY_SEGMENT_LENGTH) return encoded;
|
|
201
|
+
const digest = await crypto.subtle.digest(
|
|
202
|
+
"SHA-256",
|
|
203
|
+
new TextEncoder().encode(JSON.stringify(value))
|
|
204
|
+
);
|
|
205
|
+
let hex = "";
|
|
206
|
+
for (const byte of new Uint8Array(digest)) hex += byte.toString(16).padStart(2, "0");
|
|
207
|
+
return `sha256:${hex}`;
|
|
208
|
+
}
|
|
209
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, encodeStorageKeySegment, "encodeStorageKeySegment");
|
|
210
|
+
var MIN_STALE_RETENTION_MS = 6e4;
|
|
211
|
+
function getFarmCacheEntryExpiresAt(createdAt, revalidate, now = Date.now()) {
|
|
212
|
+
if (typeof revalidate !== "number") return void 0;
|
|
213
|
+
const revalidateMs = revalidate * 1e3;
|
|
214
|
+
return Math.max(createdAt + revalidateMs, now) + Math.max(revalidateMs, MIN_STALE_RETENTION_MS);
|
|
215
|
+
}
|
|
216
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, getFarmCacheEntryExpiresAt, "getFarmCacheEntryExpiresAt");
|
|
217
|
+
function getFarmCacheEntryTtlMs(entry, now = Date.now()) {
|
|
218
|
+
if (typeof entry.expiresAt !== "number" || !Number.isFinite(entry.expiresAt)) return void 0;
|
|
219
|
+
return Math.max(1, Math.ceil(entry.expiresAt - now));
|
|
220
|
+
}
|
|
221
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, getFarmCacheEntryTtlMs, "getFarmCacheEntryTtlMs");
|
|
188
222
|
var _FarmDataCache = class _FarmDataCache {
|
|
189
223
|
constructor(config = {}) {
|
|
190
224
|
this.entries = /* @__PURE__ */ new Map();
|
|
@@ -287,11 +321,20 @@ var _FarmDataCache = class _FarmDataCache {
|
|
|
287
321
|
const namespace = this.namespace;
|
|
288
322
|
const entry = await adapter.get(`${namespace}:entry:${key}`);
|
|
289
323
|
if (generation !== this.generation) return void 0;
|
|
290
|
-
if (!entry) {
|
|
291
|
-
_chunkE3UK5IIBcjs.emitFarmEvent.call(void 0, { type: "cache.miss", key });
|
|
324
|
+
if (!entry || isForeignAdapterEntry(entry, key)) {
|
|
325
|
+
_chunkE3UK5IIBcjs.emitFarmEvent.call(void 0, { type: "cache.miss", key, ...entry ? { reason: "key-mismatch" } : {} });
|
|
292
326
|
return void 0;
|
|
293
327
|
}
|
|
294
328
|
assertFarmCacheEntry(entry, key);
|
|
329
|
+
if (typeof entry.expiresAt === "number" && entry.expiresAt <= (_nullishCoalesce(options.now, () => ( Date.now())))) {
|
|
330
|
+
_chunkE3UK5IIBcjs.emitFarmEvent.call(void 0, { type: "cache.miss", key, reason: "expired" });
|
|
331
|
+
try {
|
|
332
|
+
await adapter.delete(`${namespace}:entry:${key}`);
|
|
333
|
+
} catch (error) {
|
|
334
|
+
_chunkE3UK5IIBcjs.emitFarmEvent.call(void 0, { type: "cache.error", key, operation: "delete", error });
|
|
335
|
+
}
|
|
336
|
+
return void 0;
|
|
337
|
+
}
|
|
295
338
|
const stale = await this.isAdapterEntryStale(entry, options.now, adapter, namespace);
|
|
296
339
|
if (generation !== this.generation) return void 0;
|
|
297
340
|
if (stale) {
|
|
@@ -352,14 +395,17 @@ var _FarmDataCache = class _FarmDataCache {
|
|
|
352
395
|
const revalidate = normalizeRevalidate(options.revalidate);
|
|
353
396
|
const tags = normalizeCacheOptionsTags(options);
|
|
354
397
|
const capturedVersions = await _asyncNullishCoalesce(tagVersions, async () => ( await this.getAdapterTagVersions(Array.from(tags.values()))));
|
|
398
|
+
const createdAt = _nullishCoalesce(options.createdAt, () => ( Date.now()));
|
|
399
|
+
const expiresAt = getFarmCacheEntryExpiresAt(createdAt, revalidate);
|
|
355
400
|
const entry = {
|
|
356
401
|
key,
|
|
357
402
|
value,
|
|
358
403
|
tags: Array.from(tags),
|
|
359
404
|
tagVersions: capturedVersions,
|
|
360
|
-
createdAt
|
|
405
|
+
createdAt,
|
|
361
406
|
createdVersion: _nullishCoalesce(createdVersion, () => ( ++this.version)),
|
|
362
|
-
revalidate
|
|
407
|
+
revalidate,
|
|
408
|
+
...expiresAt === void 0 ? {} : { expiresAt }
|
|
363
409
|
};
|
|
364
410
|
if (this.local) {
|
|
365
411
|
this.hydrateLocalEntry(entry);
|
|
@@ -561,8 +607,8 @@ var _FarmDataCache = class _FarmDataCache {
|
|
|
561
607
|
if (generation !== this.generation) return void 0;
|
|
562
608
|
const entry = await adapter.get(`${namespace}:entry:${key}`);
|
|
563
609
|
if (generation !== this.generation) return void 0;
|
|
564
|
-
if (!entry) {
|
|
565
|
-
_chunkE3UK5IIBcjs.emitFarmEvent.call(void 0, { type: "cache.miss", key });
|
|
610
|
+
if (!entry || isForeignAdapterEntry(entry, key)) {
|
|
611
|
+
_chunkE3UK5IIBcjs.emitFarmEvent.call(void 0, { type: "cache.miss", key, ...entry ? { reason: "key-mismatch" } : {} });
|
|
566
612
|
continue;
|
|
567
613
|
}
|
|
568
614
|
assertFarmCacheEntry(entry, key);
|
|
@@ -829,7 +875,7 @@ function normalizeRevalidatePath(routePath) {
|
|
|
829
875
|
if (/^https?:\/\//i.test(normalized)) {
|
|
830
876
|
normalized = new URL(normalized).pathname;
|
|
831
877
|
}
|
|
832
|
-
} catch (
|
|
878
|
+
} catch (e2) {
|
|
833
879
|
}
|
|
834
880
|
normalized = _nullishCoalesce(normalized.split(/[?#]/, 1)[0], () => ( normalized));
|
|
835
881
|
normalized = normalized.startsWith("/") ? normalized : `/${normalized}`;
|
|
@@ -908,6 +954,10 @@ function normalizeCacheOptionsTags(options) {
|
|
|
908
954
|
return tags;
|
|
909
955
|
}
|
|
910
956
|
_chunkS3JO3N4Hcjs.__name.call(void 0, normalizeCacheOptionsTags, "normalizeCacheOptionsTags");
|
|
957
|
+
function isForeignAdapterEntry(entry, expectedKey) {
|
|
958
|
+
return typeof entry === "object" && entry !== null && typeof entry.key === "string" && entry.key !== expectedKey;
|
|
959
|
+
}
|
|
960
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, isForeignAdapterEntry, "isForeignAdapterEntry");
|
|
911
961
|
function assertFarmCacheEntry(entry, expectedKey) {
|
|
912
962
|
if (!entry || typeof entry !== "object" || entry.key !== expectedKey || !Array.isArray(entry.tags) || typeof entry.createdAt !== "number") {
|
|
913
963
|
throw new TypeError(
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkUS2QVW3Ecjs = require('./chunk-US2QVW3E.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
7
|
+
|
|
8
|
+
// src/middleware/matcher.ts
|
|
9
|
+
var compiledConfigCache = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
var compiledRouteCache = /* @__PURE__ */ new WeakMap();
|
|
11
|
+
function compileMiddlewareRoute(entry) {
|
|
12
|
+
const path = entry.path;
|
|
13
|
+
if (path === "/") return void 0;
|
|
14
|
+
const cached = compiledRouteCache.get(entry);
|
|
15
|
+
if (_optionalChain([cached, 'optionalAccess', _ => _.path]) === path) return cached;
|
|
16
|
+
const compiled = {
|
|
17
|
+
path,
|
|
18
|
+
exact: compilePattern(path),
|
|
19
|
+
nested: compilePattern(`${path}/:__farmRest*`)
|
|
20
|
+
};
|
|
21
|
+
compiledRouteCache.set(entry, compiled);
|
|
22
|
+
return compiled;
|
|
23
|
+
}
|
|
24
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, compileMiddlewareRoute, "compileMiddlewareRoute");
|
|
25
|
+
function matchesMiddlewareRoute(pathname, entry) {
|
|
26
|
+
const compiled = compileMiddlewareRoute(entry);
|
|
27
|
+
if (!compiled) return { matched: true };
|
|
28
|
+
const canonicalPathname = _chunkUS2QVW3Ecjs.canonicalizeRequestPathname.call(void 0, pathname);
|
|
29
|
+
const exactMatch = matchPattern(compiled.exact, canonicalPathname);
|
|
30
|
+
if (exactMatch.matched) return exactMatch;
|
|
31
|
+
const nestedMatch = matchPattern(compiled.nested, canonicalPathname);
|
|
32
|
+
if (!nestedMatch.matched) return { matched: false };
|
|
33
|
+
const params = { ...nestedMatch.params };
|
|
34
|
+
delete params.__farmRest;
|
|
35
|
+
return { matched: true, params: Object.keys(params).length > 0 ? params : void 0 };
|
|
36
|
+
}
|
|
37
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, matchesMiddlewareRoute, "matchesMiddlewareRoute");
|
|
38
|
+
function matchesMiddlewareRouteAt(pathnames, entry) {
|
|
39
|
+
for (const pathname of pathnames) {
|
|
40
|
+
const match = matchesMiddlewareRoute(pathname, entry);
|
|
41
|
+
if (match.matched) return match;
|
|
42
|
+
}
|
|
43
|
+
return { matched: false };
|
|
44
|
+
}
|
|
45
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, matchesMiddlewareRouteAt, "matchesMiddlewareRouteAt");
|
|
46
|
+
function sameEntries(current, previous) {
|
|
47
|
+
return current === void 0 || previous === void 0 ? current === previous : current.length === previous.length && current.every((entry, index) => entry === previous[index]);
|
|
48
|
+
}
|
|
49
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, sameEntries, "sameEntries");
|
|
50
|
+
function toMatcherList(matcher) {
|
|
51
|
+
if (!matcher) return [];
|
|
52
|
+
return Array.isArray(matcher) ? matcher : [matcher];
|
|
53
|
+
}
|
|
54
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, toMatcherList, "toMatcherList");
|
|
55
|
+
function escapeRegex(value) {
|
|
56
|
+
return value.replace(/[|\\{}()[\]^$*+?.]/g, "\\$&");
|
|
57
|
+
}
|
|
58
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, escapeRegex, "escapeRegex");
|
|
59
|
+
function parseColonParam(segment) {
|
|
60
|
+
const raw = segment.slice(1);
|
|
61
|
+
const last = raw[raw.length - 1];
|
|
62
|
+
const modifier = last === "*" || last === "+" || last === "?" ? last : void 0;
|
|
63
|
+
return {
|
|
64
|
+
name: modifier ? raw.slice(0, -1) : raw,
|
|
65
|
+
modifier
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, parseColonParam, "parseColonParam");
|
|
69
|
+
function compilePathPattern(pattern, trailingSlash = false) {
|
|
70
|
+
const params = [];
|
|
71
|
+
const segments = pattern.split("/").filter(Boolean);
|
|
72
|
+
if (segments.length === 0) {
|
|
73
|
+
return { kind: "path", regex: /^\/$/, params };
|
|
74
|
+
}
|
|
75
|
+
const parts = segments.map((segment) => {
|
|
76
|
+
if (segment === "**") {
|
|
77
|
+
return "(?:/.*)?";
|
|
78
|
+
}
|
|
79
|
+
if (segment === "*") {
|
|
80
|
+
return "/[^/]+";
|
|
81
|
+
}
|
|
82
|
+
if (segment.startsWith(":")) {
|
|
83
|
+
const { name, modifier } = parseColonParam(segment);
|
|
84
|
+
params.push(name);
|
|
85
|
+
if (modifier === "*") {
|
|
86
|
+
return "(?:/(.*))?";
|
|
87
|
+
}
|
|
88
|
+
if (modifier === "+") {
|
|
89
|
+
return "/(.+)";
|
|
90
|
+
}
|
|
91
|
+
if (modifier === "?") {
|
|
92
|
+
return "(?:/([^/]+))?";
|
|
93
|
+
}
|
|
94
|
+
return "/([^/]+)";
|
|
95
|
+
}
|
|
96
|
+
if (segment.startsWith("[[...") && segment.endsWith("]]")) {
|
|
97
|
+
params.push(segment.slice(5, -2));
|
|
98
|
+
return "(?:/(.*))?";
|
|
99
|
+
}
|
|
100
|
+
if (segment.startsWith("[...") && segment.endsWith("]")) {
|
|
101
|
+
params.push(segment.slice(4, -1));
|
|
102
|
+
return "(?:/(.*))?";
|
|
103
|
+
}
|
|
104
|
+
if (segment.startsWith("[") && segment.endsWith("]")) {
|
|
105
|
+
params.push(segment.slice(1, -1));
|
|
106
|
+
return "/([^/]+)";
|
|
107
|
+
}
|
|
108
|
+
return `/${escapeRegex(segment).replace(/\\\*/g, "[^/]*")}`;
|
|
109
|
+
});
|
|
110
|
+
return {
|
|
111
|
+
kind: "path",
|
|
112
|
+
regex: new RegExp(`^${parts.join("")}${trailingSlash ? "/?" : ""}$`),
|
|
113
|
+
params
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, compilePathPattern, "compilePathPattern");
|
|
117
|
+
function compileMatcherPattern(pattern) {
|
|
118
|
+
if (typeof pattern === "string" && pattern !== "*" && !pattern.endsWith("(.*)")) {
|
|
119
|
+
return compilePathPattern(pattern, true);
|
|
120
|
+
}
|
|
121
|
+
return compilePattern(pattern);
|
|
122
|
+
}
|
|
123
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, compileMatcherPattern, "compileMatcherPattern");
|
|
124
|
+
function compilePattern(pattern) {
|
|
125
|
+
if (pattern instanceof RegExp) {
|
|
126
|
+
return { kind: "regexp", regex: pattern };
|
|
127
|
+
}
|
|
128
|
+
if (pattern === "*" || pattern === "/(.*)") {
|
|
129
|
+
return { kind: "all" };
|
|
130
|
+
}
|
|
131
|
+
if (pattern.endsWith("(.*)")) {
|
|
132
|
+
return {
|
|
133
|
+
kind: "subtree",
|
|
134
|
+
prefix: pattern.slice(0, -4).replace(/\/$/, "")
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
return compilePathPattern(pattern);
|
|
138
|
+
}
|
|
139
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, compilePattern, "compilePattern");
|
|
140
|
+
function compileMiddlewareConfig(config) {
|
|
141
|
+
const compiled = {
|
|
142
|
+
matcher: config.matcher ? toMatcherList(config.matcher).map(
|
|
143
|
+
(matcher) => typeof matcher === "function" ? matcher : compileMatcherPattern(matcher)
|
|
144
|
+
) : void 0,
|
|
145
|
+
exclude: _optionalChain([config, 'access', _2 => _2.exclude, 'optionalAccess', _3 => _3.map, 'call', _4 => _4(compilePattern)])
|
|
146
|
+
};
|
|
147
|
+
compiledConfigCache.set(config, {
|
|
148
|
+
compiled,
|
|
149
|
+
matcher: config.matcher,
|
|
150
|
+
matcherEntries: Array.isArray(config.matcher) ? config.matcher.slice() : void 0,
|
|
151
|
+
excludeEntries: _optionalChain([config, 'access', _5 => _5.exclude, 'optionalAccess', _6 => _6.slice, 'call', _7 => _7()])
|
|
152
|
+
});
|
|
153
|
+
return compiled;
|
|
154
|
+
}
|
|
155
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, compileMiddlewareConfig, "compileMiddlewareConfig");
|
|
156
|
+
function matchPattern(pattern, pathname) {
|
|
157
|
+
if (pattern.kind === "all") {
|
|
158
|
+
return { matched: true };
|
|
159
|
+
}
|
|
160
|
+
if (pattern.kind === "subtree") {
|
|
161
|
+
return {
|
|
162
|
+
matched: pathname === pattern.prefix || pathname.startsWith(`${pattern.prefix}/`)
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
pattern.regex.lastIndex = 0;
|
|
166
|
+
const match = pattern.regex.exec(pathname);
|
|
167
|
+
if (!match) {
|
|
168
|
+
return { matched: false };
|
|
169
|
+
}
|
|
170
|
+
if (pattern.kind === "regexp") {
|
|
171
|
+
return {
|
|
172
|
+
matched: true,
|
|
173
|
+
params: match.groups ? { ...match.groups } : void 0
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
const values = {};
|
|
177
|
+
pattern.params.forEach((param, index) => {
|
|
178
|
+
values[param] = match[index + 1] || "";
|
|
179
|
+
});
|
|
180
|
+
return {
|
|
181
|
+
matched: true,
|
|
182
|
+
params: Object.keys(values).length > 0 ? values : void 0
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, matchPattern, "matchPattern");
|
|
186
|
+
function matchesCompiledMiddlewareConfig(pathname, config, ctx) {
|
|
187
|
+
let canonicalPathname;
|
|
188
|
+
const getCanonicalPathname = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => _nullishCoalesce(canonicalPathname, () => ( (canonicalPathname = _chunkUS2QVW3Ecjs.canonicalizeRequestPathname.call(void 0, pathname)))), "getCanonicalPathname");
|
|
189
|
+
if (config.exclude) {
|
|
190
|
+
for (const pattern of config.exclude) {
|
|
191
|
+
if (matchPattern(pattern, getCanonicalPathname()).matched) {
|
|
192
|
+
return { matched: false };
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
if (config.matcher) {
|
|
197
|
+
for (const matcher of config.matcher) {
|
|
198
|
+
if (typeof matcher === "function") {
|
|
199
|
+
if (matcher(ctx)) {
|
|
200
|
+
return { matched: true };
|
|
201
|
+
}
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
const result = matchPattern(matcher, getCanonicalPathname());
|
|
205
|
+
if (result.matched) {
|
|
206
|
+
return result;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
return { matched: false };
|
|
210
|
+
}
|
|
211
|
+
return { matched: true };
|
|
212
|
+
}
|
|
213
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, matchesCompiledMiddlewareConfig, "matchesCompiledMiddlewareConfig");
|
|
214
|
+
function matchesMiddlewareConfig(pathname, config, ctx) {
|
|
215
|
+
const cached = compiledConfigCache.get(config);
|
|
216
|
+
const unchanged = cached && (Array.isArray(config.matcher) ? sameEntries(config.matcher, cached.matcherEntries) : config.matcher === cached.matcher) && sameEntries(config.exclude, cached.excludeEntries);
|
|
217
|
+
const compiled = unchanged ? cached.compiled : compileMiddlewareConfig(config);
|
|
218
|
+
return matchesCompiledMiddlewareConfig(pathname, compiled, ctx);
|
|
219
|
+
}
|
|
220
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, matchesMiddlewareConfig, "matchesMiddlewareConfig");
|
|
221
|
+
function matchesMiddlewareConfigAt(pathnames, config, ctx) {
|
|
222
|
+
for (const pathname of pathnames) {
|
|
223
|
+
const match = matchesMiddlewareConfig(pathname, config, ctx);
|
|
224
|
+
if (match.matched) return match;
|
|
225
|
+
}
|
|
226
|
+
return { matched: false };
|
|
227
|
+
}
|
|
228
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, matchesMiddlewareConfigAt, "matchesMiddlewareConfigAt");
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
exports.compileMiddlewareRoute = compileMiddlewareRoute; exports.matchesMiddlewareRoute = matchesMiddlewareRoute; exports.matchesMiddlewareRouteAt = matchesMiddlewareRouteAt; exports.compileMiddlewareConfig = compileMiddlewareConfig; exports.matchesCompiledMiddlewareConfig = matchesCompiledMiddlewareConfig; exports.matchesMiddlewareConfig = matchesMiddlewareConfig; exports.matchesMiddlewareConfigAt = matchesMiddlewareConfigAt;
|
|
@@ -15,7 +15,7 @@ var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
|
|
|
15
15
|
var _chunkHREOKQWTcjs = require('./chunk-HREOKQWT.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkXXJU7FCCcjs = require('./chunk-XXJU7FCC.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkEM6SBQKMcjs = require('./chunk-EM6SBQKM.cjs');
|
|
@@ -1181,11 +1181,11 @@ function shouldReturnMarkdown(request) {
|
|
|
1181
1181
|
if (url.pathname.endsWith(".md")) return true;
|
|
1182
1182
|
const accept = request.headers.get("accept");
|
|
1183
1183
|
const markdown = Math.max(
|
|
1184
|
-
|
|
1185
|
-
|
|
1184
|
+
_chunkXXJU7FCCcjs.farmAcceptQuality.call(void 0, accept, "text/markdown"),
|
|
1185
|
+
_chunkXXJU7FCCcjs.farmAcceptQuality.call(void 0, accept, "text/plain")
|
|
1186
1186
|
);
|
|
1187
1187
|
if (markdown <= 0) return false;
|
|
1188
|
-
return markdown >=
|
|
1188
|
+
return markdown >= _chunkXXJU7FCCcjs.farmAcceptQuality.call(void 0, accept, "text/html", { wildcards: true });
|
|
1189
1189
|
}
|
|
1190
1190
|
_chunkS3JO3N4Hcjs.__name.call(void 0, shouldReturnMarkdown, "shouldReturnMarkdown");
|
|
1191
1191
|
function escapeAttribute(value) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXXJU7FCCcjs = require('./chunk-XXJU7FCC.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkJ63ZH5OQcjs = require('./chunk-J63ZH5OQ.cjs');
|
|
@@ -70,12 +70,12 @@ function collectFarmLlmsTxtPages(sources, options) {
|
|
|
70
70
|
for (const source of sources) {
|
|
71
71
|
const path = source.pattern;
|
|
72
72
|
if (path.includes("[") || pages.has(path)) continue;
|
|
73
|
-
if (include.length && !include.some((pattern) =>
|
|
73
|
+
if (include.length && !include.some((pattern) => _chunkXXJU7FCCcjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) {
|
|
74
74
|
continue;
|
|
75
75
|
}
|
|
76
|
-
if (exclude.some((pattern) =>
|
|
76
|
+
if (exclude.some((pattern) => _chunkXXJU7FCCcjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) continue;
|
|
77
77
|
if (isMetadataNoIndex(source.metadata)) continue;
|
|
78
|
-
const target =
|
|
78
|
+
const target = _chunkXXJU7FCCcjs.isFarmMarkdownMirrorExposed.call(void 0, options.markdown, path) ? _chunkXXJU7FCCcjs.getFarmMarkdownMirrorPath.call(void 0, path) : path;
|
|
79
79
|
const description = readMetadataString(source.metadata, "description");
|
|
80
80
|
pages.set(path, {
|
|
81
81
|
path,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
resolveFarmNoindexPreviews,
|
|
30
30
|
resolveFarmPerformanceConfig,
|
|
31
31
|
resolveFarmSecurityConfig
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NGVORZVZ.mjs";
|
|
33
33
|
import {
|
|
34
34
|
resolveFarmImageConfig
|
|
35
35
|
} from "./chunk-G2KY33I6.mjs";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
} from "./chunk-FA2W42OV.mjs";
|
|
49
49
|
import {
|
|
50
50
|
resolveMarkdownConfig
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZUSJDQ2Q.mjs";
|
|
52
52
|
import {
|
|
53
53
|
bundleNodeModule
|
|
54
54
|
} from "./chunk-SFGWNC43.mjs";
|
|
@@ -60,13 +60,13 @@ import {
|
|
|
60
60
|
} from "./chunk-AELACLOB.mjs";
|
|
61
61
|
import {
|
|
62
62
|
resolveIntegrationPlugins
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-GNSDTTWZ.mjs";
|
|
64
64
|
import {
|
|
65
65
|
resolveFarmServerConfig
|
|
66
66
|
} from "./chunk-XF7Q24PF.mjs";
|
|
67
67
|
import {
|
|
68
68
|
resolveFarmI18nConfig
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-BCMSYSN2.mjs";
|
|
70
70
|
import {
|
|
71
71
|
logger
|
|
72
72
|
} from "./chunk-KI3MESHB.mjs";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MVL2RAJW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
_findFarmMCPEndpointTool
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QLQ32WC4.mjs";
|
|
7
7
|
import {
|
|
8
8
|
_withFarmResponseHeaders
|
|
9
9
|
} from "./chunk-Z3HATSKO.mjs";
|
|
@@ -832,6 +832,7 @@ function routeMatches(pattern, pathname) {
|
|
|
832
832
|
if (pattern === pathname) {
|
|
833
833
|
return true;
|
|
834
834
|
}
|
|
835
|
+
if (!pattern.includes("[")) return false;
|
|
835
836
|
let source = "";
|
|
836
837
|
pattern.split("/").forEach((segment, index) => {
|
|
837
838
|
if (/^\[\[\.\.\.[^\]]+\]\]$/.test(segment)) {
|
|
@@ -2272,11 +2272,35 @@ declare function resolveFarmMCPPlugin(config: ResolvedFarmMCPConfig, options: {
|
|
|
2272
2272
|
root: string;
|
|
2273
2273
|
}): Promise<FarmPlugin | undefined>;
|
|
2274
2274
|
|
|
2275
|
+
type JSONSchema = Readonly<Record<string, unknown>>;
|
|
2276
|
+
/** What a server can say beyond its tool list, for the app manifest. All optional. */
|
|
2277
|
+
interface FarmMCPCatalogDetails {
|
|
2278
|
+
/** Each tool's input and output JSON Schemas, by tool name. */
|
|
2279
|
+
schemas?: Readonly<Record<string, {
|
|
2280
|
+
input: JSONSchema;
|
|
2281
|
+
output?: JSONSchema;
|
|
2282
|
+
}>>;
|
|
2283
|
+
resources?: readonly {
|
|
2284
|
+
name: string;
|
|
2285
|
+
title?: string;
|
|
2286
|
+
description?: string;
|
|
2287
|
+
mimeType?: string;
|
|
2288
|
+
uri?: string;
|
|
2289
|
+
uriTemplate?: string;
|
|
2290
|
+
}[];
|
|
2291
|
+
prompts?: readonly {
|
|
2292
|
+
name: string;
|
|
2293
|
+
title?: string;
|
|
2294
|
+
description?: string;
|
|
2295
|
+
/** The arguments' JSON Schema. */
|
|
2296
|
+
arguments?: JSONSchema;
|
|
2297
|
+
}[];
|
|
2298
|
+
}
|
|
2275
2299
|
/**
|
|
2276
2300
|
* @internal Publishes one MCP server's tools, replacing an earlier catalog for
|
|
2277
2301
|
* the same endpoint. Returns a function that removes it.
|
|
2278
2302
|
*/
|
|
2279
|
-
declare function _publishFarmMCPCatalog(server: FarmMCPServer, tools: readonly FarmMCPTool[]): () => void;
|
|
2303
|
+
declare function _publishFarmMCPCatalog(server: FarmMCPServer, tools: readonly FarmMCPTool[], details?: FarmMCPCatalogDetails): () => void;
|
|
2280
2304
|
interface FarmMCPEndpointTool {
|
|
2281
2305
|
/** The MCP tool name. */
|
|
2282
2306
|
name: string;
|
|
@@ -3444,4 +3468,4 @@ interface MetadataRobots extends MetadataRobotsDirectives {
|
|
|
3444
3468
|
googleBot?: string | MetadataRobotsDirectives;
|
|
3445
3469
|
}
|
|
3446
3470
|
|
|
3447
|
-
export { type FarmContextFactoryInput as $, createFarmMarkdownErrorBody as A, farmRequestWantsMarkdown as B, type FarmUserConfig as C, type FarmAgentJsonLd as D, type FarmContextFactory as E, type FarmRouteRuntimeConfig as F, type MiddlewareProps as G, type BundleResultPayload as H, type FarmIntegration as I, type FarmConfig as J, farmPlugin as K, type LayoutProps as L, type Metadata as M, defineConfig as N, resolveFarmMCPConfig as O, type ParsedRoute as P, resolveFarmMCPPlugin as Q, type RouteSegment as R, type FarmMCPUserConfig as S, type FarmComponentType as T, type AppRoutePattern as U, type PageRouteParams as V, type NitroPreset as W, type FarmMigrationCommand as X, type FarmMigrationsConfig as Y, type FarmMigrationsUserConfig as Z, type ResolvedFarmMigrationsConfig as _, type FarmPlugin as a, manageFarmLinkHeaderPreloads as a$, type FarmIsolatedClientHydrationMode as a0, type LoadingProps as a1, type ErrorProps as a2, type PagePropsWithMiddleware as a3, type MetadataProps as a4, type LayoutMetadataProps as a5, type Page as a6, type Layout as a7, type Loading as a8, type ErrorBoundary as a9, type MiddlewareConfig$1 as aA, type MiddlewareContext as aB, _findFarmMCPEndpointTool as aC, _publishFarmMCPCatalog as aD, type ResolvedFarmRouteRuntimeConfig as aE, type ApplicationMetadataRouteKind as aF, type ResolvedFarmAPIConfig as aG, type FarmMarkdownResolvedConfig as aH, type ResolvedFarmDevtoolsConfig as aI, type ResolvedFarmDevIndicatorsConfig as aJ, type ResolvedFarmAuthConfig as aK, type ResolvedFarmPerformanceConfig as aL, type ResolvedFarmSecurityConfig as aM, type APIRequestRuntime as aN, type ResolvedFarmMCPConfig as aO, createFarmMetadataRouteResponse as aP, createFarmAgentRobots as aQ, collectFarmLlmsTxtPages as aR, createFarmDefaultLlmsTxt as aS, createFarmLlmsMarkdownReader as aT, renderFarmLlmsFullTxt as aU, createFarmLlmsFullRenderer as aV, resolveFarmLlmsTxtConfig as aW, type FarmLlmsTxtUserConfig as aX, type ResolvedFarmLlmsTxtConfig as aY, manageFarmDocumentPreloads as aZ, manageFarmHtmlPreloads as a_, type StaticPathPrimitive as aa, type StaticPathParams as ab, type StaticRouteParams as ac, type GenerateStaticParams as ad, type LayoutModule as ae, type MetadataJsonLd as af, type ServerAction as ag, type BuildOptions as ah, type SSGPage as ai, type SSGCollectionResult as aj, type MetadataRobotsDirectives as ak, type MetadataRobots as al, type FarmLayerEntry as am, type ResolvedFarmLayer as an, type FarmSourceRoot as ao, type ResolveFarmLayersOptions as ap, type FarmLayerResolution as aq, resolveFarmLayers as ar, getFarmSourceRoots as as, getFarmAppDirectories as at, getFarmLayerAliases as au, createFarmConfigResolutionPlugin as av, loadFarmConfigFile as aw, type ReadonlyMiddlewareStore as ax, type FarmMiddlewareConfig as ay, type MiddlewareModule as az, isFarmRedirectError as b, type FarmMCPResource as b$, reportFarmPreloadWarnings as b0, applyFarmCspNonceToResponse as b1, resolveFarmSecurityConfig as b2, type ResolvedSchemaField as b3, type FarmSqlDialect as b4, type FarmSqlStatement as b5, type CollectedSchemaModel as b6, type FarmSchemaMigrationStep as b7, type OpenAPIConfig as b8, type FarmAgentUserConfig as b9, type FarmCspConfig as bA, type FarmCspDirectives as bB, type FarmCspDirectiveValue as bC, type FarmCspOptions as bD, type FarmSecurityConfig as bE, type ResolvedFarmCspConfig as bF, MetadataRoute as bG, type MetadataRouteContext as bH, type FarmMCPEndpointTool as bI, type FarmAuthConfig as bJ, type FarmAuthDatabaseConfig as bK, type FarmAuthEmailAndPasswordConfig as bL, type FarmAuthSessionConfig as bM, type FarmAuthUserConfig as bN, type FarmMCPAuthorization as bO, type FarmMCPEndpoint as bP, type FarmMCPServerFunction as bQ, type FarmMCPToolDefinition as bR, type FarmMCPStandaloneTool as bS, type FarmMCPExecuteContext as bT, type FarmMCPTool as bU, type FarmMCPServer as bV, type FarmMCPAuthorizeContext as bW, type FarmMCPConfig as bX, type FarmMCPOAuthConfig as bY, type FarmMCPPrompt as bZ, type FarmMCPPromptMessage as b_, type FarmAgentCrawlers as ba, type FarmCrawlerPolicy as bb, definePlugin as bc, FarmRuntimeShutdownError as bd, PluginManager as be, type FarmPluginDatabase as bf, type FarmPluginDefinition as bg, FarmPluginOptionsError as bh, type FarmPluginFactory as bi, type FarmPluginOptionsIssue as bj, type FarmPluginOptionsSchema as bk, type InferPluginOptionsInput as bl, type InferPluginOptionsOutput as bm, resolveConfig as bn, loadConfig as bo, resolveDeployConfig as bp, resolveMigrationsConfig as bq, resolveDeployOutputPath as br, normalizeDeployTarget as bs, getDeployTargetForPreset as bt, getPresetForDeployTarget as bu, type FarmLayerConfig as bv, type FarmPerformanceConfig as bw, type FarmPreloadMode as bx, type FarmPreloadUserConfig as by, type ResolvedFarmPreloadConfig as bz, type FarmRedirectSignal as c, toSnakeCase as c$, type FarmMCPResourceContent as c0, type FarmMCPResourceContext as c1, type FarmMCPResourceListing as c2, type PluginRequestContext as c3, type FarmPluginIntegrationContext as c4, type FarmPluginLifecycle as c5, type FarmRequestPluginContext as c6, type FarmRequestStore as c7, type FarmPluginRuntimeKind as c8, type FarmPluginRouteRuntimePayload as c9, type RouteMatchResultPayload as cA, type RenderLifecyclePayload as cB, type APIHandlerLifecyclePayload as cC, type ErrorLifecyclePayload as cD, type HMRUpdatePayload as cE, type BundleLifecyclePayload as cF, type NitroBuildLifecyclePayload as cG, type ShutdownPayload as cH, type ResolvedFarmConfig as cI, type RedirectConfig as cJ, type HeaderConfig as cK, type RewriteConfig as cL, type ImageConfig as cM, type I18nConfig as cN, type MiddlewareConfig as cO, type FarmDeployConfig as cP, type ResolvedFarmDeployConfig as cQ, type FarmDeployTarget as cR, type FarmMarkdownUserConfig as cS, describeSchemaReference as cT, collectSchemaModels as cU, generateSqlStatements as cV, renderSqlSchemaFile as cW, getSqlColumnType as cX, getSqlDefaultExpression as cY, isNullableField as cZ, quoteSqlIdentifier as c_, type FarmPluginSetupContext as ca, type FarmPluginStateContext as cb, type FarmPluginRuntimeBaseEvent as cc, type FarmPluginRuntimeContextEvent as cd, type FarmPluginRuntimeEndpoint as ce, type FarmPluginRuntimeEndpointEvent as cf, type FarmPluginRuntimeBeforeEvent as cg, type FarmPluginRuntimeAfterEvent as ch, type FarmPluginRuntimeErrorEvent as ci, type FarmPluginRuntimeStartEvent as cj, type FarmPluginRuntimeCloseEvent as ck, type FarmPluginRuntimeHooks as cl, type FarmPluginRuntimeRequestOptions as cm, type FarmPluginRuntimeRequestHandler as cn, type FarmPluginRuntimeSession as co, type FarmPluginDiscoveredRoute as cp, type FarmPluginRouterHooks as cq, type FarmPluginRenderHooks as cr, type FarmPluginBuildHooks as cs, type FarmPluginDevHooks as ct, type FarmPluginClientConfig as cu, type RouteDiscoveredPayload as cv, type RoutesGeneratedPayload as cw, type MiddlewareDiscoveredPayload as cx, type APIRouteDiscoveredPayload as cy, type RouteMatchPayload as cz, type FarmRedirectStatus as d, type FarmIntegrationRouteFactory as d$, toPascalCase as d0, toCamelCase as d1, escapeSqlString as d2, resolveSchemaModels as d3, type ResolvedSchemaModel as d4, type FarmIntegrationCategory as d5, type FarmIntegrationSlot as d6, type FarmIntegrationRouteParamValue as d7, type FarmIntegrationRouteParams as d8, type FarmIntegrationRouteMethod as d9, type FarmIntegrationRouteHookContext as dA, type FarmIntegrationRouteHook as dB, type FarmIntegrationRoute as dC, type FarmTypedIntegrationRoute as dD, type FarmIntegrationRouteMiddleware as dE, type FarmIntegrationMiddleware as dF, type FarmIntegrationProviderProps as dG, type FarmIntegrationProviderComponentReference as dH, type FarmIntegrationProvider as dI, type FarmIntegrationDocumentNavigation as dJ, type FarmIntegrationSchemaFieldType as dK, type FarmIntegrationSchemaReference as dL, type FarmIntegrationSchemaField as dM, type FarmIntegrationSchemaConstraint as dN, type FarmIntegrationSchemaModel as dO, type FarmIntegrationSchemaModelExtension as dP, type FarmIntegrationSchemaModelOverride as dQ, type FarmIntegrationSchema as dR, defineIntegrationSchema as dS, type FarmIntegrationLogPhase as dT, type FarmIntegrationLogEvent as dU, type FarmIntegrationLogger as dV, type FarmIntegrationPluginOwner as dW, type FarmIntegrationContributedPlugin as dX, type FarmIntegrationsUserConfig as dY, getFarmIntegrationPluginServerRuntime as dZ, getFarmIntegrationPluginOwner as d_, type FarmIntegrationRouteInputSource as da, type FarmIntegrationValidationPathSegment as db, type FarmIntegrationRouteInput as dc, type FarmIntegrationValidationIssue as dd, type FarmIntegrationValidationErrorLike as de, type FarmIntegrationValidationResult as df, type FarmIntegrationStandardValidationResult as dg, type FarmIntegrationInputSchema as dh, type FarmIntegrationRouteInputSchemas as di, type FarmIntegrationRequestContextStore as dj, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as dk, FARM_INTEGRATION_SET_COOKIES_KEY as dl, forwardIntegrationSetCookies as dm, type FarmIntegrationRouteDb as dn, type FarmIntegrationRouteStorageArgs as dp, type FarmIntegrationRouteArgs as dq, type FarmIntegrationConfigContext as dr, type FarmIntegrationConfigDefinition as ds, type FarmIntegrationConfigInput as dt, type FarmIntegrationLifecycleLogLevel as du, type FarmIntegrationLifecycleLogger as dv, type FarmIntegrationLifecycleContext as dw, type FarmIntegrationLifecycleHook as dx, type FarmIntegrationData as dy, type FarmIntegrationHandlerContext as dz, type FarmRequest as e, type MiddlewareResult as e$, type FarmIntegrationRoutesFactoryContext as e0, type FarmIntegrationRoutesFactory as e1, type FarmIntegrationEndpointValue as e2, type FarmIntegrationEndpoints as e3, type FarmIntegrationEndpointsFactoryContext as e4, type FarmIntegrationEndpointsFactory as e5, createIntegrationRoute as e6, integrationRoute as e7, type DefinedIntegration as e8, defineIntegration as e9, type CreateIntegrationOrmOptions as eA, createIntegrationOrm as eB, resolveIntegrationOrmRuntimeClient as eC, farmIntegrationSchemaToOrmSchema as eD, type IntegrationOrmModelNames as eE, DEFAULT_FARM_API_BASE_PATH as eF, type FarmAPIConfigResolverContext as eG, type FarmAPIConfigValue as eH, type FarmAPIConfig as eI, resolveFarmAPIConfig as eJ, normalizeFarmAPIConfig as eK, normalizeFarmAPIBasePath as eL, getFarmAPIBaseURL as eM, resolveFarmAPIRequestURL as eN, type MiddlewareFunction as eO, type RequestMiddleware as eP, type RequestMiddlewareContext as eQ, type MiddlewareStore as eR, type MiddlewareChain as eS, type CookieJar as eT, type CookieOptions as eU, type RateLimitConfig as eV, type RateLimitIncrementResult as eW, type RateLimitStorage as eX, type RateLimitStatus as eY, type MemoryRateLimitStorageOptions as eZ, type NextFunction as e_, isFarmIntegration as ea, resolveIntegrationPlugins as eb, getIntegrationProviders as ec, isFarmIntegrationProviderComponentReference as ed, getIntegrationDocumentNavigationMatchers as ee, getIntegrationSchemas as ef, getRegisteredIntegrationRuntime as eg, getRegisteredIntegrations as eh, getRegisteredIntegrationSchemas as ei, matchIntegrationRoute as ej, matchRegisteredIntegrationRoute as ek, getRegisteredIntegrationAPIManifest as el, dispatchIntegrationRequest as em, dispatchIntegrationRequests as en, describeIntegrationOriginRejection as eo, resolveIntegrationAllowedOrigins as ep, validateIntegrationRequestOrigin as eq, type IntegrationOriginPolicy as er, type IntegrationOriginRejection as es, type IntegrationOriginResult as et, type FarmIntegrationOrmSchema as eu, type FarmIntegrationOrmClient as ev, type InferFarmIntegrationOrmField as ew, type InferFarmIntegrationOrmFields as ex, type InferFarmIntegrationOrmSchema as ey, type InferFarmIntegrationOrmClient as ez, type FarmResponse as f, loadFarmDevModule as f$, type FarmRouteRuleRenderMode as f0, type FarmRouteRuleRedirect as f1, type FarmRouteRuleCors as f2, type FarmRouteRule as f3, type FarmRouteRules as f4, normalizeRouteRules as f5, routeRulesToRedirects as f6, routeRulesToHeaders as f7, routeRulesToNitroRouteRules as f8, type FarmRouteRuntimeEntryKind as f9, isFarmMarkdownMirrorExposed as fA, matchesFarmMarkdownRoutePattern as fB, type FarmPageFormOption as fC, type FarmPageFormField as fD, type FarmPageFormSubmit as fE, type FarmPageFormAction as fF, extractFarmPageActions as fG, DEFAULT_FARM_DEVTOOLS_SHORTCUT as fH, FARM_DEVTOOLS_PATH as fI, FARM_DEVTOOLS_LAUNCH_PARAM as fJ, type FarmDevtoolsConfig as fK, type FarmDevtoolsUserConfig as fL, resolveFarmDevtoolsConfig as fM, type FarmBuildActivityPosition as fN, type FarmDevIndicatorsConfig as fO, resolveFarmDevIndicatorsConfig as fP, generateFarmDevIndicatorsClientRuntime as fQ, farmI18nClientBridgePlugin as fR, farmServerOnlyEntriesPlugin as fS, withFarmRequestTracing as fT, rewriteEarlySsrRelativeImports as fU, transformIsolatedClientBoundaryModule as fV, shouldEmitFarmClientRootHmr as fW, generateClientCachePersistenceCode as fX, resolveFarmClientCacheAdapterEntry as fY, type ClientCachePersistenceEntryCode as fZ, FARM_NODE_RESPONSE_END_PENDING as f_, type FarmRouteRenderingMode as fa, type FarmRouteRuntimeManifestEntry as fb, type FarmRouteRuntimeManifest as fc, normalizeFarmRouteRuntimeConfig as fd, mergeFarmRouteRuntimeConfigs as fe, resolveFarmRouteRuntimeConfig as ff, hasFarmRouteRuntimeControls as fg, getFarmRouteRuntimeConfig as fh, createFarmRouteRuntimeKey as fi, resolveFarmRouteRuleRuntimeConfig as fj, farmRouteRuleMatches as fk, type FarmMarkdownRouteInput as fl, type FarmMarkdownResolvedRoute as fm, type FarmMarkdownMirrorTarget as fn, type ResolveMarkdownMirrorTargetOptions as fo, type CreateMarkdownMirrorResponseOptions as fp, type ApplyMarkdownNegotiationHeadersOptions as fq, resolveMarkdownConfig as fr, resolveMarkdownMirrorTarget as fs, createMarkdownMirrorResponse as ft, applyMarkdownNegotiationHeaders as fu, htmlToMarkdown as fv, farmAcceptQuality as fw, requestAcceptsMarkdown as fx, getFarmMarkdownMirrorPath as fy, getFarmMarkdownAlternatePath as fz, getFarmRedirectError as g, FarmDevEnvironmentError as g0, type FarmDevModuleServer as g1, type FarmPluginContext as h, isFarmNotFoundError as i, type FarmRouteRuntime as j, type FarmRouteRegions as k, type FarmRouteMaxDuration as l, type FarmAppContext as m, notFound as n, type PageProps as o, permanentRedirect as p, type PluginContextProps as q, redirect as r, type RouteModule as s, type FarmMdxComponents as t, type FarmMdxResolvedConfig as u, resolveFarmMdxComponentsModulePath as v, resolveMdxConfig as w, type FarmMdxComponent as x, type FarmMdxUserConfig as y, FARM_MARKDOWN_CONTENT_TYPE as z };
|
|
3471
|
+
export { type FarmContextFactoryInput as $, createFarmMarkdownErrorBody as A, farmRequestWantsMarkdown as B, type FarmUserConfig as C, type FarmAgentJsonLd as D, type FarmContextFactory as E, type FarmRouteRuntimeConfig as F, type MiddlewareProps as G, type BundleResultPayload as H, type FarmIntegration as I, type FarmConfig as J, farmPlugin as K, type LayoutProps as L, type Metadata as M, defineConfig as N, resolveFarmMCPConfig as O, type ParsedRoute as P, resolveFarmMCPPlugin as Q, type RouteSegment as R, type FarmMCPUserConfig as S, type FarmComponentType as T, type AppRoutePattern as U, type PageRouteParams as V, type NitroPreset as W, type FarmMigrationCommand as X, type FarmMigrationsConfig as Y, type FarmMigrationsUserConfig as Z, type ResolvedFarmMigrationsConfig as _, type FarmPlugin as a, manageFarmHtmlPreloads as a$, type FarmIsolatedClientHydrationMode as a0, type LoadingProps as a1, type ErrorProps as a2, type PagePropsWithMiddleware as a3, type MetadataProps as a4, type LayoutMetadataProps as a5, type Page as a6, type Layout as a7, type Loading as a8, type ErrorBoundary as a9, type MiddlewareConfig$1 as aA, type MiddlewareContext as aB, _findFarmMCPEndpointTool as aC, _publishFarmMCPCatalog as aD, type FarmMCPCatalogDetails as aE, type ResolvedFarmRouteRuntimeConfig as aF, type ApplicationMetadataRouteKind as aG, type ResolvedFarmAPIConfig as aH, type FarmMarkdownResolvedConfig as aI, type ResolvedFarmDevtoolsConfig as aJ, type ResolvedFarmDevIndicatorsConfig as aK, type ResolvedFarmAuthConfig as aL, type ResolvedFarmPerformanceConfig as aM, type ResolvedFarmSecurityConfig as aN, type APIRequestRuntime as aO, type ResolvedFarmMCPConfig as aP, createFarmMetadataRouteResponse as aQ, createFarmAgentRobots as aR, collectFarmLlmsTxtPages as aS, createFarmDefaultLlmsTxt as aT, createFarmLlmsMarkdownReader as aU, renderFarmLlmsFullTxt as aV, createFarmLlmsFullRenderer as aW, resolveFarmLlmsTxtConfig as aX, type FarmLlmsTxtUserConfig as aY, type ResolvedFarmLlmsTxtConfig as aZ, manageFarmDocumentPreloads as a_, type StaticPathPrimitive as aa, type StaticPathParams as ab, type StaticRouteParams as ac, type GenerateStaticParams as ad, type LayoutModule as ae, type MetadataJsonLd as af, type ServerAction as ag, type BuildOptions as ah, type SSGPage as ai, type SSGCollectionResult as aj, type MetadataRobotsDirectives as ak, type MetadataRobots as al, type FarmLayerEntry as am, type ResolvedFarmLayer as an, type FarmSourceRoot as ao, type ResolveFarmLayersOptions as ap, type FarmLayerResolution as aq, resolveFarmLayers as ar, getFarmSourceRoots as as, getFarmAppDirectories as at, getFarmLayerAliases as au, createFarmConfigResolutionPlugin as av, loadFarmConfigFile as aw, type ReadonlyMiddlewareStore as ax, type FarmMiddlewareConfig as ay, type MiddlewareModule as az, isFarmRedirectError as b, type FarmMCPPromptMessage as b$, manageFarmLinkHeaderPreloads as b0, reportFarmPreloadWarnings as b1, applyFarmCspNonceToResponse as b2, resolveFarmSecurityConfig as b3, type ResolvedSchemaField as b4, type FarmSqlDialect as b5, type FarmSqlStatement as b6, type CollectedSchemaModel as b7, type FarmSchemaMigrationStep as b8, type OpenAPIConfig as b9, type ResolvedFarmPreloadConfig as bA, type FarmCspConfig as bB, type FarmCspDirectives as bC, type FarmCspDirectiveValue as bD, type FarmCspOptions as bE, type FarmSecurityConfig as bF, type ResolvedFarmCspConfig as bG, MetadataRoute as bH, type MetadataRouteContext as bI, type FarmMCPEndpointTool as bJ, type FarmAuthConfig as bK, type FarmAuthDatabaseConfig as bL, type FarmAuthEmailAndPasswordConfig as bM, type FarmAuthSessionConfig as bN, type FarmAuthUserConfig as bO, type FarmMCPAuthorization as bP, type FarmMCPEndpoint as bQ, type FarmMCPServerFunction as bR, type FarmMCPToolDefinition as bS, type FarmMCPStandaloneTool as bT, type FarmMCPExecuteContext as bU, type FarmMCPTool as bV, type FarmMCPServer as bW, type FarmMCPAuthorizeContext as bX, type FarmMCPConfig as bY, type FarmMCPOAuthConfig as bZ, type FarmMCPPrompt as b_, type FarmAgentUserConfig as ba, type FarmAgentCrawlers as bb, type FarmCrawlerPolicy as bc, definePlugin as bd, FarmRuntimeShutdownError as be, PluginManager as bf, type FarmPluginDatabase as bg, type FarmPluginDefinition as bh, FarmPluginOptionsError as bi, type FarmPluginFactory as bj, type FarmPluginOptionsIssue as bk, type FarmPluginOptionsSchema as bl, type InferPluginOptionsInput as bm, type InferPluginOptionsOutput as bn, resolveConfig as bo, loadConfig as bp, resolveDeployConfig as bq, resolveMigrationsConfig as br, resolveDeployOutputPath as bs, normalizeDeployTarget as bt, getDeployTargetForPreset as bu, getPresetForDeployTarget as bv, type FarmLayerConfig as bw, type FarmPerformanceConfig as bx, type FarmPreloadMode as by, type FarmPreloadUserConfig as bz, type FarmRedirectSignal as c, quoteSqlIdentifier as c$, type FarmMCPResource as c0, type FarmMCPResourceContent as c1, type FarmMCPResourceContext as c2, type FarmMCPResourceListing as c3, type PluginRequestContext as c4, type FarmPluginIntegrationContext as c5, type FarmPluginLifecycle as c6, type FarmRequestPluginContext as c7, type FarmRequestStore as c8, type FarmPluginRuntimeKind as c9, type RouteMatchPayload as cA, type RouteMatchResultPayload as cB, type RenderLifecyclePayload as cC, type APIHandlerLifecyclePayload as cD, type ErrorLifecyclePayload as cE, type HMRUpdatePayload as cF, type BundleLifecyclePayload as cG, type NitroBuildLifecyclePayload as cH, type ShutdownPayload as cI, type ResolvedFarmConfig as cJ, type RedirectConfig as cK, type HeaderConfig as cL, type RewriteConfig as cM, type ImageConfig as cN, type I18nConfig as cO, type MiddlewareConfig as cP, type FarmDeployConfig as cQ, type ResolvedFarmDeployConfig as cR, type FarmDeployTarget as cS, type FarmMarkdownUserConfig as cT, describeSchemaReference as cU, collectSchemaModels as cV, generateSqlStatements as cW, renderSqlSchemaFile as cX, getSqlColumnType as cY, getSqlDefaultExpression as cZ, isNullableField as c_, type FarmPluginRouteRuntimePayload as ca, type FarmPluginSetupContext as cb, type FarmPluginStateContext as cc, type FarmPluginRuntimeBaseEvent as cd, type FarmPluginRuntimeContextEvent as ce, type FarmPluginRuntimeEndpoint as cf, type FarmPluginRuntimeEndpointEvent as cg, type FarmPluginRuntimeBeforeEvent as ch, type FarmPluginRuntimeAfterEvent as ci, type FarmPluginRuntimeErrorEvent as cj, type FarmPluginRuntimeStartEvent as ck, type FarmPluginRuntimeCloseEvent as cl, type FarmPluginRuntimeHooks as cm, type FarmPluginRuntimeRequestOptions as cn, type FarmPluginRuntimeRequestHandler as co, type FarmPluginRuntimeSession as cp, type FarmPluginDiscoveredRoute as cq, type FarmPluginRouterHooks as cr, type FarmPluginRenderHooks as cs, type FarmPluginBuildHooks as ct, type FarmPluginDevHooks as cu, type FarmPluginClientConfig as cv, type RouteDiscoveredPayload as cw, type RoutesGeneratedPayload as cx, type MiddlewareDiscoveredPayload as cy, type APIRouteDiscoveredPayload as cz, type FarmRedirectStatus as d, getFarmIntegrationPluginOwner as d$, toSnakeCase as d0, toPascalCase as d1, toCamelCase as d2, escapeSqlString as d3, resolveSchemaModels as d4, type ResolvedSchemaModel as d5, type FarmIntegrationCategory as d6, type FarmIntegrationSlot as d7, type FarmIntegrationRouteParamValue as d8, type FarmIntegrationRouteParams as d9, type FarmIntegrationHandlerContext as dA, type FarmIntegrationRouteHookContext as dB, type FarmIntegrationRouteHook as dC, type FarmIntegrationRoute as dD, type FarmTypedIntegrationRoute as dE, type FarmIntegrationRouteMiddleware as dF, type FarmIntegrationMiddleware as dG, type FarmIntegrationProviderProps as dH, type FarmIntegrationProviderComponentReference as dI, type FarmIntegrationProvider as dJ, type FarmIntegrationDocumentNavigation as dK, type FarmIntegrationSchemaFieldType as dL, type FarmIntegrationSchemaReference as dM, type FarmIntegrationSchemaField as dN, type FarmIntegrationSchemaConstraint as dO, type FarmIntegrationSchemaModel as dP, type FarmIntegrationSchemaModelExtension as dQ, type FarmIntegrationSchemaModelOverride as dR, type FarmIntegrationSchema as dS, defineIntegrationSchema as dT, type FarmIntegrationLogPhase as dU, type FarmIntegrationLogEvent as dV, type FarmIntegrationLogger as dW, type FarmIntegrationPluginOwner as dX, type FarmIntegrationContributedPlugin as dY, type FarmIntegrationsUserConfig as dZ, getFarmIntegrationPluginServerRuntime as d_, type FarmIntegrationRouteMethod as da, type FarmIntegrationRouteInputSource as db, type FarmIntegrationValidationPathSegment as dc, type FarmIntegrationRouteInput as dd, type FarmIntegrationValidationIssue as de, type FarmIntegrationValidationErrorLike as df, type FarmIntegrationValidationResult as dg, type FarmIntegrationStandardValidationResult as dh, type FarmIntegrationInputSchema as di, type FarmIntegrationRouteInputSchemas as dj, type FarmIntegrationRequestContextStore as dk, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as dl, FARM_INTEGRATION_SET_COOKIES_KEY as dm, forwardIntegrationSetCookies as dn, type FarmIntegrationRouteDb as dp, type FarmIntegrationRouteStorageArgs as dq, type FarmIntegrationRouteArgs as dr, type FarmIntegrationConfigContext as ds, type FarmIntegrationConfigDefinition as dt, type FarmIntegrationConfigInput as du, type FarmIntegrationLifecycleLogLevel as dv, type FarmIntegrationLifecycleLogger as dw, type FarmIntegrationLifecycleContext as dx, type FarmIntegrationLifecycleHook as dy, type FarmIntegrationData as dz, type FarmRequest as e, type NextFunction as e$, type FarmIntegrationRouteFactory as e0, type FarmIntegrationRoutesFactoryContext as e1, type FarmIntegrationRoutesFactory as e2, type FarmIntegrationEndpointValue as e3, type FarmIntegrationEndpoints as e4, type FarmIntegrationEndpointsFactoryContext as e5, type FarmIntegrationEndpointsFactory as e6, createIntegrationRoute as e7, integrationRoute as e8, type DefinedIntegration as e9, type InferFarmIntegrationOrmClient as eA, type CreateIntegrationOrmOptions as eB, createIntegrationOrm as eC, resolveIntegrationOrmRuntimeClient as eD, farmIntegrationSchemaToOrmSchema as eE, type IntegrationOrmModelNames as eF, DEFAULT_FARM_API_BASE_PATH as eG, type FarmAPIConfigResolverContext as eH, type FarmAPIConfigValue as eI, type FarmAPIConfig as eJ, resolveFarmAPIConfig as eK, normalizeFarmAPIConfig as eL, normalizeFarmAPIBasePath as eM, getFarmAPIBaseURL as eN, resolveFarmAPIRequestURL as eO, type MiddlewareFunction as eP, type RequestMiddleware as eQ, type RequestMiddlewareContext as eR, type MiddlewareStore as eS, type MiddlewareChain as eT, type CookieJar as eU, type CookieOptions as eV, type RateLimitConfig as eW, type RateLimitIncrementResult as eX, type RateLimitStorage as eY, type RateLimitStatus as eZ, type MemoryRateLimitStorageOptions as e_, defineIntegration as ea, isFarmIntegration as eb, resolveIntegrationPlugins as ec, getIntegrationProviders as ed, isFarmIntegrationProviderComponentReference as ee, getIntegrationDocumentNavigationMatchers as ef, getIntegrationSchemas as eg, getRegisteredIntegrationRuntime as eh, getRegisteredIntegrations as ei, getRegisteredIntegrationSchemas as ej, matchIntegrationRoute as ek, matchRegisteredIntegrationRoute as el, getRegisteredIntegrationAPIManifest as em, dispatchIntegrationRequest as en, dispatchIntegrationRequests as eo, describeIntegrationOriginRejection as ep, resolveIntegrationAllowedOrigins as eq, validateIntegrationRequestOrigin as er, type IntegrationOriginPolicy as es, type IntegrationOriginRejection as et, type IntegrationOriginResult as eu, type FarmIntegrationOrmSchema as ev, type FarmIntegrationOrmClient as ew, type InferFarmIntegrationOrmField as ex, type InferFarmIntegrationOrmFields as ey, type InferFarmIntegrationOrmSchema as ez, type FarmResponse as f, FARM_NODE_RESPONSE_END_PENDING as f$, type MiddlewareResult as f0, type FarmRouteRuleRenderMode as f1, type FarmRouteRuleRedirect as f2, type FarmRouteRuleCors as f3, type FarmRouteRule as f4, type FarmRouteRules as f5, normalizeRouteRules as f6, routeRulesToRedirects as f7, routeRulesToHeaders as f8, routeRulesToNitroRouteRules as f9, getFarmMarkdownAlternatePath as fA, isFarmMarkdownMirrorExposed as fB, matchesFarmMarkdownRoutePattern as fC, type FarmPageFormOption as fD, type FarmPageFormField as fE, type FarmPageFormSubmit as fF, type FarmPageFormAction as fG, extractFarmPageActions as fH, DEFAULT_FARM_DEVTOOLS_SHORTCUT as fI, FARM_DEVTOOLS_PATH as fJ, FARM_DEVTOOLS_LAUNCH_PARAM as fK, type FarmDevtoolsConfig as fL, type FarmDevtoolsUserConfig as fM, resolveFarmDevtoolsConfig as fN, type FarmBuildActivityPosition as fO, type FarmDevIndicatorsConfig as fP, resolveFarmDevIndicatorsConfig as fQ, generateFarmDevIndicatorsClientRuntime as fR, farmI18nClientBridgePlugin as fS, farmServerOnlyEntriesPlugin as fT, withFarmRequestTracing as fU, rewriteEarlySsrRelativeImports as fV, transformIsolatedClientBoundaryModule as fW, shouldEmitFarmClientRootHmr as fX, generateClientCachePersistenceCode as fY, resolveFarmClientCacheAdapterEntry as fZ, type ClientCachePersistenceEntryCode as f_, type FarmRouteRuntimeEntryKind as fa, type FarmRouteRenderingMode as fb, type FarmRouteRuntimeManifestEntry as fc, type FarmRouteRuntimeManifest as fd, normalizeFarmRouteRuntimeConfig as fe, mergeFarmRouteRuntimeConfigs as ff, resolveFarmRouteRuntimeConfig as fg, hasFarmRouteRuntimeControls as fh, getFarmRouteRuntimeConfig as fi, createFarmRouteRuntimeKey as fj, resolveFarmRouteRuleRuntimeConfig as fk, farmRouteRuleMatches as fl, type FarmMarkdownRouteInput as fm, type FarmMarkdownResolvedRoute as fn, type FarmMarkdownMirrorTarget as fo, type ResolveMarkdownMirrorTargetOptions as fp, type CreateMarkdownMirrorResponseOptions as fq, type ApplyMarkdownNegotiationHeadersOptions as fr, resolveMarkdownConfig as fs, resolveMarkdownMirrorTarget as ft, createMarkdownMirrorResponse as fu, applyMarkdownNegotiationHeaders as fv, htmlToMarkdown as fw, farmAcceptQuality as fx, requestAcceptsMarkdown as fy, getFarmMarkdownMirrorPath as fz, getFarmRedirectError as g, loadFarmDevModule as g0, FarmDevEnvironmentError as g1, type FarmDevModuleServer as g2, type FarmPluginContext as h, isFarmNotFoundError as i, type FarmRouteRuntime as j, type FarmRouteRegions as k, type FarmRouteMaxDuration as l, type FarmAppContext as m, notFound as n, type PageProps as o, permanentRedirect as p, type PluginContextProps as q, redirect as r, type RouteModule as s, type FarmMdxComponents as t, type FarmMdxResolvedConfig as u, resolveFarmMdxComponentsModulePath as v, resolveMdxConfig as w, type FarmMdxComponent as x, type FarmMdxUserConfig as y, FARM_MARKDOWN_CONTENT_TYPE as z };
|