@farm.js/core 0.1.34 → 0.1.35
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-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +4 -5
- package/dist/agent-runtime.d.ts +4 -5
- package/dist/agent-runtime.mjs +2 -2
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +6 -7
- package/dist/api/route-manager.d.ts +6 -7
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.cjs +6 -4
- package/dist/api/runtime.d.mts +4 -5
- package/dist/api/runtime.d.ts +4 -5
- package/dist/api/runtime.mjs +6 -4
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +7 -8
- package/dist/api.d.ts +7 -8
- package/dist/api.mjs +5 -5
- package/dist/{app-DgotYGbq.d.ts → app-BXB3JZYc.d.ts} +38 -12
- package/dist/{app-q4rmZlXK.d.mts → app-D_j9AAVL.d.mts} +38 -12
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +5 -6
- package/dist/app-markdown.d.ts +5 -6
- package/dist/app-markdown.mjs +4 -4
- package/dist/{chunk-LMJ7VRHZ.mjs → chunk-22LTEMGQ.mjs} +1 -1
- package/dist/{chunk-AQZFOP7S.mjs → chunk-2G2NNLE2.mjs} +1 -1
- package/dist/{chunk-QJ3J6MZT.cjs → chunk-3BHT4WMP.cjs} +2 -2
- package/dist/{chunk-X242HVD5.mjs → chunk-3PXS2MHU.mjs} +1 -1
- package/dist/{chunk-A5FGU2WU.cjs → chunk-3UH7MRCP.cjs} +19 -23
- package/dist/{chunk-AGC75XAE.mjs → chunk-4JHOT46A.mjs} +1 -1
- package/dist/{chunk-XV5DJTBX.mjs → chunk-4KU5Q7C2.mjs} +424 -230
- package/dist/{chunk-TA5G2HWD.cjs → chunk-4MMGO7YW.cjs} +21 -21
- package/dist/{chunk-7BT4H4P7.cjs → chunk-62XKI4Z3.cjs} +2 -2
- package/dist/{chunk-ZKP7C2B6.mjs → chunk-6DU6UFUE.mjs} +12 -11
- package/dist/{chunk-GOABMOX3.mjs → chunk-6ETPZTJI.mjs} +366 -4
- package/dist/{chunk-7Y6ZNFPX.mjs → chunk-6TJOML4E.mjs} +13 -3
- package/dist/{chunk-3ATMYLLJ.mjs → chunk-6WCPV6G2.mjs} +1 -1
- package/dist/{chunk-BTAG7LI7.cjs → chunk-73MC7ZL6.cjs} +2 -2
- package/dist/chunk-75RZHGLS.cjs +135 -0
- package/dist/{chunk-VKNHTSAP.cjs → chunk-7GLPRTTF.cjs} +2 -2
- package/dist/{chunk-7M52YUMY.cjs → chunk-7L5V3KQO.cjs} +2 -2
- package/dist/{chunk-LI2LMOLR.mjs → chunk-C35ZBVRD.mjs} +12 -3
- package/dist/{chunk-YQVSHTMR.mjs → chunk-CP6X4AEU.mjs} +1 -1
- package/dist/{chunk-QZCT2CQ4.mjs → chunk-CXEN47J3.mjs} +64 -2
- package/dist/{chunk-ATK2R4CH.cjs → chunk-D227TIEN.cjs} +14 -4
- package/dist/{chunk-ROUTX2E5.cjs → chunk-DBNKI4NF.cjs} +12 -3
- package/dist/{chunk-UX5S4JEO.cjs → chunk-EFCQPQMG.cjs} +3 -3
- package/dist/{chunk-K3F2E6GS.cjs → chunk-EJQT6KZN.cjs} +2 -2
- package/dist/{chunk-3LUF2PE2.cjs → chunk-EK4QAEFZ.cjs} +67 -5
- package/dist/{chunk-VVBO3QH7.mjs → chunk-ENLZ4R3Y.mjs} +10 -1
- package/dist/{chunk-XXJU7FCC.cjs → chunk-EUV4YR3V.cjs} +2 -2
- package/dist/{chunk-WNNYOOIB.mjs → chunk-F6Z3Y5KL.mjs} +1 -1
- package/dist/{chunk-PQDFUSXD.cjs → chunk-F7JZENPF.cjs} +33 -32
- package/dist/{chunk-TDFPACVX.cjs → chunk-FTFYRMQQ.cjs} +18 -18
- package/dist/{chunk-657WJNRY.mjs → chunk-G5RT7EXW.mjs} +1 -1
- package/dist/{chunk-MOKLYNHV.cjs → chunk-GFHLGIYC.cjs} +6 -6
- package/dist/{chunk-AWC4VUZL.cjs → chunk-GQ3Z3IZI.cjs} +14 -14
- package/dist/{chunk-75WGQVQA.cjs → chunk-HITLGIAO.cjs} +10 -1
- package/dist/{chunk-GNSDTTWZ.mjs → chunk-HMIJDL7S.mjs} +1 -1
- package/dist/{chunk-PXKIEXZD.mjs → chunk-HUMR6LSU.mjs} +1 -1
- package/dist/{chunk-SJVKK4JE.cjs → chunk-ICUQICNC.cjs} +912 -718
- package/dist/{chunk-P64MIF5B.cjs → chunk-IPXLADVO.cjs} +387 -25
- package/dist/{chunk-KROWKCUH.cjs → chunk-JGLC4TO3.cjs} +8 -1
- package/dist/{chunk-2NQQ5H5G.cjs → chunk-M7MKQXAF.cjs} +2 -1
- package/dist/chunk-NRDBW4MP.mjs +45 -0
- package/dist/chunk-OFZUJMCU.mjs +601 -0
- package/dist/{chunk-VCCUOMQN.mjs → chunk-OKZUAXHF.mjs} +1 -1
- package/dist/{chunk-EM6SBQKM.cjs → chunk-OMVAU7NT.cjs} +27 -2
- package/dist/{chunk-O27L4YAA.mjs → chunk-PDOCJ6RY.mjs} +2 -2
- package/dist/{chunk-36MK5YCW.cjs → chunk-PFQKNERH.cjs} +346 -206
- package/dist/{chunk-HR5KPHC2.mjs → chunk-Q3VLETLE.mjs} +1 -1
- package/dist/{chunk-LR5QSC2P.mjs → chunk-QAU5JD57.mjs} +211 -71
- package/dist/{chunk-LHODW25H.mjs → chunk-QORUJDIV.mjs} +2 -2
- package/dist/{chunk-UBO4SGH4.mjs → chunk-RHAZ22ZN.mjs} +2 -1
- package/dist/{chunk-ZHPHJPQP.cjs → chunk-RU3M2FIK.cjs} +18 -14
- package/dist/{chunk-JDPAKVS4.mjs → chunk-SAZVVAJH.mjs} +3 -3
- package/dist/{chunk-6VVL3MHY.mjs → chunk-SC2WYWPF.mjs} +1 -1
- package/dist/{chunk-QCFFHV5H.mjs → chunk-SMHH4VDG.mjs} +1 -1
- package/dist/{chunk-U4PTAHW3.mjs → chunk-SOMHP6GF.mjs} +7 -11
- package/dist/{chunk-VHANUNEG.mjs → chunk-UAORZ7QA.mjs} +2 -2
- package/dist/{chunk-NGVORZVZ.mjs → chunk-UJD4PHYB.mjs} +15 -11
- package/dist/{chunk-U74I55WB.cjs → chunk-ULAWS2PA.cjs} +13 -3
- package/dist/{chunk-MPEYMSCF.cjs → chunk-VFQT3LAO.cjs} +5 -5
- package/dist/{chunk-Z2YLTERK.cjs → chunk-VZJR7UTG.cjs} +6 -6
- package/dist/chunk-WWFTAUFG.cjs +45 -0
- package/dist/{chunk-ZUSJDQ2Q.mjs → chunk-WWIKMBRN.mjs} +1 -1
- package/dist/{chunk-QGYRXFU2.cjs → chunk-X6W5FFH6.cjs} +8 -8
- package/dist/{chunk-MIDIZJZC.cjs → chunk-XBML5KMG.cjs} +8 -8
- package/dist/{chunk-G26MUMKL.cjs → chunk-XCACDAZZ.cjs} +4 -4
- package/dist/{chunk-CLJYVZAD.mjs → chunk-XCMCS4DA.mjs} +11 -1
- package/dist/{chunk-XF7Q24PF.mjs → chunk-Y7RKTKYI.mjs} +25 -0
- package/dist/{chunk-ODBZYBAB.cjs → chunk-YC6V7PWE.cjs} +1 -1
- package/dist/{chunk-F6OHXPWR.mjs → chunk-YFILVET3.mjs} +8 -1
- package/dist/{chunk-DZ4DTRJ5.cjs → chunk-YKX5BK66.cjs} +7 -7
- package/dist/chunk-YSLWRWWP.cjs +601 -0
- package/dist/{chunk-3VSKDFAT.mjs → chunk-YULD7ICZ.mjs} +1 -1
- package/dist/chunk-ZLAT2CWY.mjs +135 -0
- package/dist/{chunk-T5CERMEH.cjs → chunk-ZXGAFZDO.cjs} +2 -2
- package/dist/{client-plugins-CLObcuCq.d.mts → client-plugins-CvIslxWi.d.mts} +207 -7
- package/dist/{client-plugins-DZjHC4Mi.d.ts → client-plugins-HIyulDym.d.ts} +207 -7
- package/dist/client-plugins.d.mts +4 -5
- package/dist/client-plugins.d.ts +4 -5
- package/dist/client.cjs +5 -5
- package/dist/client.d.mts +8 -9
- package/dist/client.d.ts +8 -9
- package/dist/client.mjs +4 -4
- package/dist/config.d.mts +4 -5
- package/dist/config.d.ts +4 -5
- package/dist/{devtools-HU6Y2MNV.cjs → devtools-EAUY43BS.cjs} +9 -9
- package/dist/{devtools-RNXCTS4R.mjs → devtools-EE5RIBTH.mjs} +8 -8
- package/dist/docs.cjs +12 -12
- package/dist/docs.d.mts +41 -4
- package/dist/docs.d.ts +41 -4
- package/dist/docs.mjs +11 -11
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/image/server.cjs +3 -3
- package/dist/image/server.mjs +2 -2
- package/dist/image/sharp.cjs +10 -10
- package/dist/image/sharp.mjs +2 -2
- package/dist/{index-a-8Z5kZU.d.mts → index-BJJfLxJo.d.mts} +2 -2
- package/dist/{index-BWVfxIsO.d.ts → index-CwoOP-MW.d.ts} +2 -2
- package/dist/index.cjs +38 -35
- package/dist/index.d.mts +19 -20
- package/dist/index.d.ts +19 -20
- package/dist/index.mjs +37 -34
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +4 -5
- package/dist/integrations.d.ts +4 -5
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +5 -6
- package/dist/internal/app-markdown-runtime.d.ts +5 -6
- package/dist/internal/app-markdown-runtime.mjs +3 -3
- package/dist/internal/build-runtime.cjs +26 -26
- package/dist/internal/build-runtime.d.mts +6 -7
- package/dist/internal/build-runtime.d.ts +6 -7
- package/dist/internal/build-runtime.mjs +25 -25
- package/dist/internal/cli-runtime.cjs +13 -13
- package/dist/internal/cli-runtime.mjs +12 -12
- package/dist/internal/client-error-overlay.cjs +6 -6
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +2 -2
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +4 -5
- package/dist/internal/compression-runtime.d.ts +4 -5
- package/dist/internal/config-runtime.cjs +9 -9
- package/dist/internal/config-runtime.d.mts +5 -6
- package/dist/internal/config-runtime.d.ts +5 -6
- package/dist/internal/config-runtime.mjs +8 -8
- package/dist/internal/isolated-boundary.cjs +3 -2
- package/dist/internal/isolated-boundary.d.mts +1 -0
- package/dist/internal/isolated-boundary.d.ts +1 -0
- package/dist/internal/isolated-boundary.mjs +2 -1
- package/dist/internal/metadata-image-runtime.cjs +3 -3
- package/dist/internal/metadata-image-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 +47 -23
- package/dist/internal/production-runtime.d.mts +58 -18
- package/dist/internal/production-runtime.d.ts +58 -18
- package/dist/internal/production-runtime.mjs +43 -19
- package/dist/internal/server-tree.cjs +12 -0
- package/dist/internal/server-tree.d.mts +27 -0
- package/dist/internal/server-tree.d.ts +27 -0
- package/dist/internal/server-tree.mjs +12 -0
- package/dist/markdown.cjs +3 -3
- package/dist/markdown.d.mts +4 -5
- package/dist/markdown.d.ts +4 -5
- package/dist/markdown.mjs +2 -2
- package/dist/{metadata-Cjs8JMRM.d.ts → metadata-BnLDsUOS.d.ts} +16 -2
- package/dist/{metadata-2HSU2i_w.d.mts → metadata-WGpBYcGn.d.mts} +16 -2
- package/dist/middleware.cjs +4 -4
- package/dist/middleware.d.mts +6 -7
- package/dist/middleware.d.ts +6 -7
- package/dist/middleware.mjs +3 -3
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +7 -8
- package/dist/navigation.d.ts +7 -8
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-4XGPNIK4.mjs → nitro-MXRDCXWZ.mjs} +2 -2
- package/dist/{nitro-HSAQFXSS.cjs → nitro-OVPLKPE2.cjs} +3 -3
- package/dist/{observability-BupkiN0m.d.mts → observability-CoXunYhS.d.mts} +4 -3
- package/dist/{observability-BupkiN0m.d.ts → observability-CoXunYhS.d.ts} +4 -3
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/plugin.cjs +22 -22
- package/dist/plugin.d.mts +4 -5
- package/dist/plugin.d.ts +4 -5
- package/dist/plugin.mjs +21 -21
- package/dist/{production-runtime-CysZl3EV.d.mts → production-runtime-0sRnuYc-.d.mts} +4 -4
- package/dist/{production-runtime-BU5ETAK9.d.ts → production-runtime-Crq6CJ-2.d.ts} +4 -4
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-D72O1qm4.d.ts → render-plan-8ozZh2Qv.d.ts} +1 -1
- package/dist/{render-plan-CKr4ltOd.d.mts → render-plan-gs9GGPzw.d.mts} +1 -1
- package/dist/renderer/react/server.cjs +10 -4
- package/dist/renderer/react/server.d.mts +2 -1
- package/dist/renderer/react/server.d.ts +2 -1
- package/dist/renderer/react/server.mjs +7 -1
- package/dist/renderer-client.cjs +5 -5
- package/dist/renderer-client.d.mts +6 -7
- package/dist/renderer-client.d.ts +6 -7
- package/dist/renderer-client.mjs +2 -2
- package/dist/renderer.d.mts +2 -0
- package/dist/renderer.d.ts +2 -0
- package/dist/{request-DbyOYI2j.d.ts → request-B5G8rLBH.d.ts} +1 -1
- package/dist/{request-Be83WafN.d.mts → request-fkhiynXe.d.mts} +1 -1
- package/dist/request.d.mts +5 -6
- package/dist/request.d.ts +5 -6
- package/dist/{resolver-PPEeiJ6M.d.ts → resolver-DadfRL6F.d.ts} +1 -1
- package/dist/{resolver-DhW0CqZN.d.mts → resolver-khasx3fU.d.mts} +1 -1
- package/dist/{route-rendering-BG56SzvJ.d.mts → route-rendering-CLnS7AZj.d.mts} +1 -1
- package/dist/{route-rendering-CtVMpV-k.d.ts → route-rendering-lS5nUMua.d.ts} +1 -1
- package/dist/{router-D94-SDlW.d.ts → router-4iuiYnOW.d.ts} +1 -1
- package/dist/{router-ALUvm8gC.d.mts → router-ifU8Dui1.d.mts} +1 -1
- package/dist/routes.d.mts +4 -5
- package/dist/routes.d.ts +4 -5
- package/dist/{runtime-BirxPwbZ.d.ts → runtime-BgDQzBiu.d.ts} +2 -2
- package/dist/{runtime-AOJge4vQ.d.mts → runtime-CV2UCV-5.d.mts} +2 -2
- package/dist/server-action-security.cjs +3 -3
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.d.mts +5 -6
- package/dist/server-plugins.d.ts +5 -6
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +41 -41
- package/dist/server.d.mts +13 -14
- package/dist/server.d.ts +13 -14
- package/dist/server.mjs +24 -24
- package/dist/{spa-router-DbxNRKOB.d.mts → spa-router-Bq7VCOwx.d.mts} +3 -3
- package/dist/{spa-router-CxK3USIz.d.ts → spa-router-DaJk5Re4.d.ts} +3 -3
- package/dist/testing.cjs +7 -7
- package/dist/testing.d.mts +4 -5
- package/dist/testing.d.ts +4 -5
- package/dist/testing.mjs +5 -5
- package/dist/{types-Z0aotQ8w.d.mts → types-CnH8DOqo.d.mts} +1 -1
- package/dist/{types-Z0aotQ8w.d.ts → types-CnH8DOqo.d.ts} +1 -1
- package/dist/{utils-311Y8eoK.d.ts → utils-BXLmFsVR.d.ts} +1 -1
- package/dist/{utils-4wVRcpOw.d.mts → utils-XJn0c9bj.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +22 -22
- package/dist/vite.d.mts +4 -5
- package/dist/vite.d.ts +4 -5
- package/dist/vite.mjs +21 -21
- package/dist/{workflows-CR9ex-gz.d.ts → workflows-jZ4BcdoZ.d.mts} +1 -1
- package/dist/{workflows-CR9ex-gz.d.mts → workflows-jZ4BcdoZ.d.ts} +1 -1
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +2 -2
- package/package.json +9 -1
- package/dist/chunk-M64YUMA4.cjs +0 -58
- package/dist/chunk-QLQ32WC4.mjs +0 -58
- package/dist/types-DFbjpjXX.d.mts +0 -105
- package/dist/types-DFbjpjXX.d.ts +0 -105
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export { _runWithAfterRequest } from '../after.mjs';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
export { m as mergeRouteRenderingDirectiveConfig } from '../route-rendering-
|
|
5
|
-
import { R as ResolvedFarmServerConfig } from '../workflows-
|
|
6
|
-
export { a as FarmServerConfig,
|
|
7
|
-
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request-
|
|
2
|
+
import { aH as FarmMCPCatalogDetails, fM as APIRequestRuntime, bT as ResolvedFarmMCPConfig, fN as FarmLlmsTxtLink, J as FarmConfig, $ as FarmContextFactoryInput } from '../client-plugins-CvIslxWi.mjs';
|
|
3
|
+
export { fW as FarmLlmsTxtUserConfig, fX as ResolvedFarmLlmsTxtConfig, g0 as applyFarmCspNonceToResponse, fQ as collectFarmLlmsTxtPages, fP as createFarmAgentRobots, fR as createFarmDefaultLlmsTxt, fU as createFarmLlmsFullRenderer, fS as createFarmLlmsMarkdownReader, fO as createFarmMetadataRouteResponse, g as getFarmRedirectError, i as isFarmNotFoundError, b as isFarmRedirectError, fY as manageFarmDocumentPreloads, fZ as manageFarmHtmlPreloads, f_ as manageFarmLinkHeaderPreloads, aG as registerFarmMCPServer, fT as renderFarmLlmsFullTxt, f$ as reportFarmPreloadWarnings, fV as resolveFarmLlmsTxtConfig, g1 as resolveFarmSecurityConfig } from '../client-plugins-CvIslxWi.mjs';
|
|
4
|
+
export { m as mergeRouteRenderingDirectiveConfig } from '../route-rendering-CLnS7AZj.mjs';
|
|
5
|
+
import { R as ResolvedFarmServerConfig } from '../workflows-jZ4BcdoZ.mjs';
|
|
6
|
+
export { a as FarmServerConfig, y as bufferFarmRequestBody, z as cloneFarmRequestWithContext, A as createFarmNodeRequestAbortSignal, B as createFarmRequestBodyErrorResponse, C as matchesFarmIfNoneMatch, E as readFarmRequestBody, G as readNodeRequestBody, H as resolveFarmServerConfig } from '../workflows-jZ4BcdoZ.mjs';
|
|
7
|
+
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request-fkhiynXe.mjs';
|
|
8
8
|
export { configureFarmCache, createFarmCacheKey, getFarmDataCache, normalizeRevalidatePath } from '../cache.mjs';
|
|
9
|
-
import {
|
|
10
|
-
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders } from '../resolver-
|
|
11
|
-
import { F as FarmLocalePathConfig } from '../index-
|
|
12
|
-
export { l as localizeFarmHref, a as localizeFarmPathname, s as stripFarmLocaleFromPathname } from '../index-
|
|
13
|
-
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, m as mergeMetadata, r as renderMetadataHead,
|
|
14
|
-
export { _ as _runWithMiddlewareContext,
|
|
15
|
-
export {
|
|
9
|
+
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from '../types-CnH8DOqo.mjs';
|
|
10
|
+
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders } from '../resolver-khasx3fU.mjs';
|
|
11
|
+
import { F as FarmLocalePathConfig } from '../index-BJJfLxJo.mjs';
|
|
12
|
+
export { l as localizeFarmHref, a as localizeFarmPathname, s as stripFarmLocaleFromPathname } from '../index-BJJfLxJo.mjs';
|
|
13
|
+
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, m as mergeMetadata, c as mergeModuleViewport, r as renderMetadataHead, d as renderViewportHead, e as resolveFarmNotFoundMetadata } from '../metadata-WGpBYcGn.mjs';
|
|
14
|
+
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner } from '../production-runtime-0sRnuYc-.mjs';
|
|
15
|
+
export { L as configureFarmObservability, P as emitFarmEvent, Q as runWithFarmRequestSpan } from '../observability-CoXunYhS.mjs';
|
|
16
16
|
export { f as createFarmInstrumentationLifecycle, r as resolveFarmInstrumentationRuntime } from '../instrumentation-runtime-CE06JLHZ.mjs';
|
|
17
17
|
export { _setDefaultFarmThemeConfig, getTheme } from '../theme/server.mjs';
|
|
18
18
|
import { c as FarmThemeRuntime, d as FarmThemeConfig, R as ResolvedFarmThemeConfig, a as FarmThemePreference } from '../types-DQnyD3VD.mjs';
|
|
19
19
|
export { d as applyFarmBasePath, r as resolveFarmTrailingSlashRedirect, s as searchParamsToObject, b as setFarmBasePath, a as setFarmTrailingSlashPreference, c as stripFarmBasePath } from '../base-path-BU16ETmo.mjs';
|
|
20
|
-
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils-
|
|
20
|
+
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils-XJn0c9bj.mjs';
|
|
21
21
|
import 'node:http';
|
|
22
22
|
import '../lifecycle-DK06VuKP.mjs';
|
|
23
23
|
import '../integration-api-0y4FXJpC.mjs';
|
|
@@ -35,7 +35,6 @@ import 'unstorage';
|
|
|
35
35
|
import '../schema.mjs';
|
|
36
36
|
import 'react';
|
|
37
37
|
import '@farming-labs/orm';
|
|
38
|
-
import '../types-DFbjpjXX.mjs';
|
|
39
38
|
import '@farming-labs/docs';
|
|
40
39
|
import 'vite';
|
|
41
40
|
import '../cron.mjs';
|
|
@@ -170,10 +169,23 @@ declare function createFarmAppManifestResponse(request: Request, input: FarmAppM
|
|
|
170
169
|
*/
|
|
171
170
|
declare function farmSecretsMatch(provided: string, expected: string): boolean;
|
|
172
171
|
|
|
173
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* Internal: the production builder owns these immutable, depth-ordered descriptors.
|
|
174
|
+
*
|
|
175
|
+
* A layout's pattern is its directory, so a route group stays in it (`/(auth)`).
|
|
176
|
+
* The URL decides whether a layout covers a pathname; a layout inside a group also
|
|
177
|
+
* needs the selected page to sit in that group. `resolveRouteDirectory` finds that
|
|
178
|
+
* page's directory, and runs only when such a layout's URL matches.
|
|
179
|
+
*/
|
|
174
180
|
declare function createFarmLayoutSelector<T extends {
|
|
175
181
|
pattern: string;
|
|
176
|
-
}>(layouts: readonly T[]): (pathname: string) => T[];
|
|
182
|
+
}>(layouts: readonly T[], resolveRouteDirectory?: (pathname: string) => string | null | undefined): (pathname: string, routeDirectory?: string | null) => T[];
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Whether a page directory sits inside a group scope. A null scope covers every page;
|
|
186
|
+
* a missing directory (no page matched) is inside no group.
|
|
187
|
+
*/
|
|
188
|
+
declare function isInRouteGroupScope(directory: string | null | undefined, scope: string | null): boolean;
|
|
177
189
|
|
|
178
190
|
type FarmProductionLifecycleState = "starting" | "ready" | "draining" | "failed" | "closed";
|
|
179
191
|
interface FarmProductionLifecycleOptions {
|
|
@@ -259,6 +271,14 @@ interface FarmLocaleAlternateLinkOptions {
|
|
|
259
271
|
*/
|
|
260
272
|
declare function renderFarmLocaleAlternateLinks(pathname: string, config: FarmLocalePathConfig, options?: FarmLocaleAlternateLinkOptions): string;
|
|
261
273
|
|
|
274
|
+
/**
|
|
275
|
+
* Start the head with `<meta charset>` and the viewport tags, as Next.js always renders both,
|
|
276
|
+
* skipping each one the layout's document already writes (a viewport, theme-color, or
|
|
277
|
+
* color-scheme tag of its own). The charset comes first because browsers only look for it in the
|
|
278
|
+
* document's first 1024 bytes. The production server uses this same function.
|
|
279
|
+
*/
|
|
280
|
+
declare function ensureFarmDocumentMeta(markup: string, viewport?: string): string;
|
|
281
|
+
|
|
262
282
|
/**
|
|
263
283
|
* Runtime source that remounts the top-level `mcp` configuration in a built server.
|
|
264
284
|
*
|
|
@@ -286,6 +306,26 @@ declare function _isFarmOwnedResponse(response: Response): boolean;
|
|
|
286
306
|
*/
|
|
287
307
|
declare function _withFarmResponseHeaders(response: Response, edit: (headers: Headers) => void): Response;
|
|
288
308
|
|
|
309
|
+
interface FarmAiCatalogInput {
|
|
310
|
+
/** The app's basePath; the catalog lives beneath it, like the API catalog. */
|
|
311
|
+
basePath?: string;
|
|
312
|
+
/** The app's public API path, which maps to Farm's canonical `/api`. */
|
|
313
|
+
apiServerBasePath?: string;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* The llms.txt links for the app's MCP servers: each endpoint, then the catalog
|
|
317
|
+
* that lists their cards. Empty when the app mounts no MCP server.
|
|
318
|
+
*/
|
|
319
|
+
declare function listFarmMCPLlmsTxtLinks(origin: string, input?: FarmAiCatalogInput): FarmLlmsTxtLink[];
|
|
320
|
+
/**
|
|
321
|
+
* Answers `/.well-known/ai-catalog.json`, `/.well-known/ard.json`, and each
|
|
322
|
+
* `<endpoint>/server-card`, or returns `null` for any other request and when
|
|
323
|
+
* the app mounts no MCP server, so the request goes on as if Farm served nothing.
|
|
324
|
+
* Every request passes through here; `requestUrl`, the caller's parse of
|
|
325
|
+
* `request.url`, saves parsing it again.
|
|
326
|
+
*/
|
|
327
|
+
declare function createFarmAiCatalogResponse(request: Request, input?: FarmAiCatalogInput, requestUrl?: URL): Response | null;
|
|
328
|
+
|
|
289
329
|
/**
|
|
290
330
|
* `/.well-known/api-catalog` (RFC 9727): a Linkset listing the APIs an app
|
|
291
331
|
* publishes, so an agent that knows only the origin can find the OpenAPI
|
|
@@ -384,4 +424,4 @@ declare function appendFarmRedirectQuery(destination: string, search: string): s
|
|
|
384
424
|
|
|
385
425
|
declare function appendFarmLinkHeader(headers: Headers, value: string): void;
|
|
386
426
|
|
|
387
|
-
export { _isFarmOwnedResponse, _markFarmOwnedResponse, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, createDefaultErrorMarkup, createFarmApiCatalogResponse, createFarmAppManifestResponse, createFarmLayoutSelector, createFarmLegacyRequest, createFarmProductionLifecycle, createFarmThemeDocumentParts, createLateNotFoundRecovery, createLateRedirectRecovery, farmSecretsMatch, generateNativeMCPPluginSource, getDefaultErrorStatusText, getRoutePatternSpecificity, renderFarmLegacyErrorHtml, renderFarmLegacyHtml, renderFarmLocaleAlternateLinks, resolveDefaultErrorStatus, resolveFarmI18nConfig, resolveFarmPreviewDeployment, resolveFarmRouteContext, serializeFarmInlineValue, withFarmRouteContext };
|
|
427
|
+
export { _isFarmOwnedResponse, _markFarmOwnedResponse, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse, createFarmAppManifestResponse, createFarmLayoutSelector, createFarmLegacyRequest, createFarmProductionLifecycle, createFarmThemeDocumentParts, createLateNotFoundRecovery, createLateRedirectRecovery, ensureFarmDocumentMeta, farmSecretsMatch, generateNativeMCPPluginSource, getDefaultErrorStatusText, getRoutePatternSpecificity, isInRouteGroupScope as isInFarmRouteGroupScope, listFarmMCPLlmsTxtLinks, renderFarmLegacyErrorHtml, renderFarmLegacyHtml, renderFarmLocaleAlternateLinks, resolveDefaultErrorStatus, resolveFarmI18nConfig, resolveFarmPreviewDeployment, resolveFarmRouteContext, serializeFarmInlineValue, withFarmRouteContext };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export { _runWithAfterRequest } from '../after.js';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
export { m as mergeRouteRenderingDirectiveConfig } from '../route-rendering-
|
|
5
|
-
import { R as ResolvedFarmServerConfig } from '../workflows-
|
|
6
|
-
export { a as FarmServerConfig,
|
|
7
|
-
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request-
|
|
2
|
+
import { aH as FarmMCPCatalogDetails, fM as APIRequestRuntime, bT as ResolvedFarmMCPConfig, fN as FarmLlmsTxtLink, J as FarmConfig, $ as FarmContextFactoryInput } from '../client-plugins-HIyulDym.js';
|
|
3
|
+
export { fW as FarmLlmsTxtUserConfig, fX as ResolvedFarmLlmsTxtConfig, g0 as applyFarmCspNonceToResponse, fQ as collectFarmLlmsTxtPages, fP as createFarmAgentRobots, fR as createFarmDefaultLlmsTxt, fU as createFarmLlmsFullRenderer, fS as createFarmLlmsMarkdownReader, fO as createFarmMetadataRouteResponse, g as getFarmRedirectError, i as isFarmNotFoundError, b as isFarmRedirectError, fY as manageFarmDocumentPreloads, fZ as manageFarmHtmlPreloads, f_ as manageFarmLinkHeaderPreloads, aG as registerFarmMCPServer, fT as renderFarmLlmsFullTxt, f$ as reportFarmPreloadWarnings, fV as resolveFarmLlmsTxtConfig, g1 as resolveFarmSecurityConfig } from '../client-plugins-HIyulDym.js';
|
|
4
|
+
export { m as mergeRouteRenderingDirectiveConfig } from '../route-rendering-lS5nUMua.js';
|
|
5
|
+
import { R as ResolvedFarmServerConfig } from '../workflows-jZ4BcdoZ.js';
|
|
6
|
+
export { a as FarmServerConfig, y as bufferFarmRequestBody, z as cloneFarmRequestWithContext, A as createFarmNodeRequestAbortSignal, B as createFarmRequestBodyErrorResponse, C as matchesFarmIfNoneMatch, E as readFarmRequestBody, G as readNodeRequestBody, H as resolveFarmServerConfig } from '../workflows-jZ4BcdoZ.js';
|
|
7
|
+
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request-B5G8rLBH.js';
|
|
8
8
|
export { configureFarmCache, createFarmCacheKey, getFarmDataCache, normalizeRevalidatePath } from '../cache.js';
|
|
9
|
-
import {
|
|
10
|
-
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders } from '../resolver-
|
|
11
|
-
import { F as FarmLocalePathConfig } from '../index-
|
|
12
|
-
export { l as localizeFarmHref, a as localizeFarmPathname, s as stripFarmLocaleFromPathname } from '../index-
|
|
13
|
-
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, m as mergeMetadata, r as renderMetadataHead,
|
|
14
|
-
export { _ as _runWithMiddlewareContext,
|
|
15
|
-
export {
|
|
9
|
+
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from '../types-CnH8DOqo.js';
|
|
10
|
+
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders } from '../resolver-DadfRL6F.js';
|
|
11
|
+
import { F as FarmLocalePathConfig } from '../index-CwoOP-MW.js';
|
|
12
|
+
export { l as localizeFarmHref, a as localizeFarmPathname, s as stripFarmLocaleFromPathname } from '../index-CwoOP-MW.js';
|
|
13
|
+
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, m as mergeMetadata, c as mergeModuleViewport, r as renderMetadataHead, d as renderViewportHead, e as resolveFarmNotFoundMetadata } from '../metadata-BnLDsUOS.js';
|
|
14
|
+
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner } from '../production-runtime-Crq6CJ-2.js';
|
|
15
|
+
export { L as configureFarmObservability, P as emitFarmEvent, Q as runWithFarmRequestSpan } from '../observability-CoXunYhS.js';
|
|
16
16
|
export { f as createFarmInstrumentationLifecycle, r as resolveFarmInstrumentationRuntime } from '../instrumentation-runtime-CE06JLHZ.js';
|
|
17
17
|
export { _setDefaultFarmThemeConfig, getTheme } from '../theme/server.js';
|
|
18
18
|
import { c as FarmThemeRuntime, d as FarmThemeConfig, R as ResolvedFarmThemeConfig, a as FarmThemePreference } from '../types-DQnyD3VD.js';
|
|
19
19
|
export { d as applyFarmBasePath, r as resolveFarmTrailingSlashRedirect, s as searchParamsToObject, b as setFarmBasePath, a as setFarmTrailingSlashPreference, c as stripFarmBasePath } from '../base-path-BU16ETmo.js';
|
|
20
|
-
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils-
|
|
20
|
+
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils-BXLmFsVR.js';
|
|
21
21
|
import 'node:http';
|
|
22
22
|
import '../lifecycle-DK06VuKP.js';
|
|
23
23
|
import '../integration-api-BPJo5oXb.js';
|
|
@@ -35,7 +35,6 @@ import 'unstorage';
|
|
|
35
35
|
import '../schema.js';
|
|
36
36
|
import 'react';
|
|
37
37
|
import '@farming-labs/orm';
|
|
38
|
-
import '../types-DFbjpjXX.js';
|
|
39
38
|
import '@farming-labs/docs';
|
|
40
39
|
import 'vite';
|
|
41
40
|
import '../cron.js';
|
|
@@ -170,10 +169,23 @@ declare function createFarmAppManifestResponse(request: Request, input: FarmAppM
|
|
|
170
169
|
*/
|
|
171
170
|
declare function farmSecretsMatch(provided: string, expected: string): boolean;
|
|
172
171
|
|
|
173
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* Internal: the production builder owns these immutable, depth-ordered descriptors.
|
|
174
|
+
*
|
|
175
|
+
* A layout's pattern is its directory, so a route group stays in it (`/(auth)`).
|
|
176
|
+
* The URL decides whether a layout covers a pathname; a layout inside a group also
|
|
177
|
+
* needs the selected page to sit in that group. `resolveRouteDirectory` finds that
|
|
178
|
+
* page's directory, and runs only when such a layout's URL matches.
|
|
179
|
+
*/
|
|
174
180
|
declare function createFarmLayoutSelector<T extends {
|
|
175
181
|
pattern: string;
|
|
176
|
-
}>(layouts: readonly T[]): (pathname: string) => T[];
|
|
182
|
+
}>(layouts: readonly T[], resolveRouteDirectory?: (pathname: string) => string | null | undefined): (pathname: string, routeDirectory?: string | null) => T[];
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Whether a page directory sits inside a group scope. A null scope covers every page;
|
|
186
|
+
* a missing directory (no page matched) is inside no group.
|
|
187
|
+
*/
|
|
188
|
+
declare function isInRouteGroupScope(directory: string | null | undefined, scope: string | null): boolean;
|
|
177
189
|
|
|
178
190
|
type FarmProductionLifecycleState = "starting" | "ready" | "draining" | "failed" | "closed";
|
|
179
191
|
interface FarmProductionLifecycleOptions {
|
|
@@ -259,6 +271,14 @@ interface FarmLocaleAlternateLinkOptions {
|
|
|
259
271
|
*/
|
|
260
272
|
declare function renderFarmLocaleAlternateLinks(pathname: string, config: FarmLocalePathConfig, options?: FarmLocaleAlternateLinkOptions): string;
|
|
261
273
|
|
|
274
|
+
/**
|
|
275
|
+
* Start the head with `<meta charset>` and the viewport tags, as Next.js always renders both,
|
|
276
|
+
* skipping each one the layout's document already writes (a viewport, theme-color, or
|
|
277
|
+
* color-scheme tag of its own). The charset comes first because browsers only look for it in the
|
|
278
|
+
* document's first 1024 bytes. The production server uses this same function.
|
|
279
|
+
*/
|
|
280
|
+
declare function ensureFarmDocumentMeta(markup: string, viewport?: string): string;
|
|
281
|
+
|
|
262
282
|
/**
|
|
263
283
|
* Runtime source that remounts the top-level `mcp` configuration in a built server.
|
|
264
284
|
*
|
|
@@ -286,6 +306,26 @@ declare function _isFarmOwnedResponse(response: Response): boolean;
|
|
|
286
306
|
*/
|
|
287
307
|
declare function _withFarmResponseHeaders(response: Response, edit: (headers: Headers) => void): Response;
|
|
288
308
|
|
|
309
|
+
interface FarmAiCatalogInput {
|
|
310
|
+
/** The app's basePath; the catalog lives beneath it, like the API catalog. */
|
|
311
|
+
basePath?: string;
|
|
312
|
+
/** The app's public API path, which maps to Farm's canonical `/api`. */
|
|
313
|
+
apiServerBasePath?: string;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* The llms.txt links for the app's MCP servers: each endpoint, then the catalog
|
|
317
|
+
* that lists their cards. Empty when the app mounts no MCP server.
|
|
318
|
+
*/
|
|
319
|
+
declare function listFarmMCPLlmsTxtLinks(origin: string, input?: FarmAiCatalogInput): FarmLlmsTxtLink[];
|
|
320
|
+
/**
|
|
321
|
+
* Answers `/.well-known/ai-catalog.json`, `/.well-known/ard.json`, and each
|
|
322
|
+
* `<endpoint>/server-card`, or returns `null` for any other request and when
|
|
323
|
+
* the app mounts no MCP server, so the request goes on as if Farm served nothing.
|
|
324
|
+
* Every request passes through here; `requestUrl`, the caller's parse of
|
|
325
|
+
* `request.url`, saves parsing it again.
|
|
326
|
+
*/
|
|
327
|
+
declare function createFarmAiCatalogResponse(request: Request, input?: FarmAiCatalogInput, requestUrl?: URL): Response | null;
|
|
328
|
+
|
|
289
329
|
/**
|
|
290
330
|
* `/.well-known/api-catalog` (RFC 9727): a Linkset listing the APIs an app
|
|
291
331
|
* publishes, so an agent that knows only the origin can find the OpenAPI
|
|
@@ -384,4 +424,4 @@ declare function appendFarmRedirectQuery(destination: string, search: string): s
|
|
|
384
424
|
|
|
385
425
|
declare function appendFarmLinkHeader(headers: Headers, value: string): void;
|
|
386
426
|
|
|
387
|
-
export { _isFarmOwnedResponse, _markFarmOwnedResponse, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, createDefaultErrorMarkup, createFarmApiCatalogResponse, createFarmAppManifestResponse, createFarmLayoutSelector, createFarmLegacyRequest, createFarmProductionLifecycle, createFarmThemeDocumentParts, createLateNotFoundRecovery, createLateRedirectRecovery, farmSecretsMatch, generateNativeMCPPluginSource, getDefaultErrorStatusText, getRoutePatternSpecificity, renderFarmLegacyErrorHtml, renderFarmLegacyHtml, renderFarmLocaleAlternateLinks, resolveDefaultErrorStatus, resolveFarmI18nConfig, resolveFarmPreviewDeployment, resolveFarmRouteContext, serializeFarmInlineValue, withFarmRouteContext };
|
|
427
|
+
export { _isFarmOwnedResponse, _markFarmOwnedResponse, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse, createFarmAppManifestResponse, createFarmLayoutSelector, createFarmLegacyRequest, createFarmProductionLifecycle, createFarmThemeDocumentParts, createLateNotFoundRecovery, createLateRedirectRecovery, ensureFarmDocumentMeta, farmSecretsMatch, generateNativeMCPPluginSource, getDefaultErrorStatusText, getRoutePatternSpecificity, isInRouteGroupScope as isInFarmRouteGroupScope, listFarmMCPLlmsTxtLinks, renderFarmLegacyErrorHtml, renderFarmLegacyHtml, renderFarmLocaleAlternateLinks, resolveDefaultErrorStatus, resolveFarmI18nConfig, resolveFarmPreviewDeployment, resolveFarmRouteContext, serializeFarmInlineValue, withFarmRouteContext };
|
|
@@ -18,16 +18,21 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
applyFarmThemeDocument,
|
|
20
20
|
createDefaultErrorMarkup,
|
|
21
|
+
createFarmAiCatalogResponse,
|
|
21
22
|
createFarmApiCatalogResponse,
|
|
22
23
|
createFarmAppManifestResponse,
|
|
23
24
|
createFarmMetadataRouteResponse,
|
|
24
25
|
createFarmThemeDocumentParts,
|
|
25
26
|
createLateNotFoundRecovery,
|
|
26
27
|
createLateRedirectRecovery,
|
|
28
|
+
ensureFarmDocumentMeta,
|
|
27
29
|
getDefaultErrorStatusText,
|
|
30
|
+
getRouteGroupScope,
|
|
31
|
+
isInRouteGroupScope,
|
|
32
|
+
listFarmMCPLlmsTxtLinks,
|
|
28
33
|
renderFarmLocaleAlternateLinks,
|
|
29
34
|
resolveDefaultErrorStatus
|
|
30
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-6ETPZTJI.mjs";
|
|
31
36
|
import {
|
|
32
37
|
mergeRouteRenderingDirectiveConfig
|
|
33
38
|
} from "../chunk-DAO7JGTS.mjs";
|
|
@@ -54,8 +59,8 @@ import {
|
|
|
54
59
|
reportFarmPreloadWarnings,
|
|
55
60
|
resolveFarmLlmsTxtConfig,
|
|
56
61
|
resolveFarmSecurityConfig
|
|
57
|
-
} from "../chunk-
|
|
58
|
-
import "../chunk-
|
|
62
|
+
} from "../chunk-UJD4PHYB.mjs";
|
|
63
|
+
import "../chunk-WWIKMBRN.mjs";
|
|
59
64
|
import "../chunk-MVL2RAJW.mjs";
|
|
60
65
|
import {
|
|
61
66
|
farmSecretsMatch
|
|
@@ -77,7 +82,9 @@ import {
|
|
|
77
82
|
_runWithAfterRequest
|
|
78
83
|
} from "../chunk-IOEH4VWN.mjs";
|
|
79
84
|
import "../chunk-5WI2S4CO.mjs";
|
|
80
|
-
import
|
|
85
|
+
import {
|
|
86
|
+
registerFarmMCPServer
|
|
87
|
+
} from "../chunk-ZLAT2CWY.mjs";
|
|
81
88
|
import {
|
|
82
89
|
configureFarmCache,
|
|
83
90
|
getFarmDataCache,
|
|
@@ -92,7 +99,7 @@ import {
|
|
|
92
99
|
readFarmRequestBody,
|
|
93
100
|
readNodeRequestBody,
|
|
94
101
|
resolveFarmServerConfig
|
|
95
|
-
} from "../chunk-
|
|
102
|
+
} from "../chunk-Y7RKTKYI.mjs";
|
|
96
103
|
import {
|
|
97
104
|
resolveFarmI18nConfig
|
|
98
105
|
} from "../chunk-BCMSYSN2.mjs";
|
|
@@ -109,7 +116,7 @@ import {
|
|
|
109
116
|
emitFarmEvent,
|
|
110
117
|
runWithFarmRequestSpan
|
|
111
118
|
} from "../chunk-FUZEBRP3.mjs";
|
|
112
|
-
import "../chunk-
|
|
119
|
+
import "../chunk-3PXS2MHU.mjs";
|
|
113
120
|
import {
|
|
114
121
|
resolveFarmTrailingSlashRedirect,
|
|
115
122
|
setFarmTrailingSlashPreference
|
|
@@ -127,9 +134,11 @@ import {
|
|
|
127
134
|
addMetadataImageReference,
|
|
128
135
|
addMetadataMarkdownAlternate,
|
|
129
136
|
mergeMetadata,
|
|
137
|
+
mergeModuleViewport,
|
|
130
138
|
renderMetadataHead,
|
|
139
|
+
renderViewportHead,
|
|
131
140
|
resolveFarmNotFoundMetadata
|
|
132
|
-
} from "../chunk-
|
|
141
|
+
} from "../chunk-CXEN47J3.mjs";
|
|
133
142
|
import "../chunk-SKNL7VA2.mjs";
|
|
134
143
|
import "../chunk-C4NCTZLM.mjs";
|
|
135
144
|
import {
|
|
@@ -176,21 +185,29 @@ import {
|
|
|
176
185
|
} from "../chunk-LPEX4YW6.mjs";
|
|
177
186
|
|
|
178
187
|
// src/routing/layout-selector.ts
|
|
179
|
-
function createFarmLayoutSelector(layouts) {
|
|
180
|
-
const prepared = layouts.map((layout) =>
|
|
181
|
-
layout
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
188
|
+
function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
|
|
189
|
+
const prepared = layouts.map((layout) => {
|
|
190
|
+
const segments = layout.pattern === "/" ? [] : parseRoutePattern(layout.pattern);
|
|
191
|
+
return {
|
|
192
|
+
layout,
|
|
193
|
+
segments: segments.length === 0 ? null : segments,
|
|
194
|
+
groupScope: getRouteGroupScope(layout.pattern)
|
|
195
|
+
};
|
|
196
|
+
});
|
|
197
|
+
return (pathname, routeDirectory) => {
|
|
185
198
|
const applicable = [];
|
|
186
199
|
let parts;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
200
|
+
let directory = routeDirectory;
|
|
201
|
+
for (const { layout, segments, groupScope } of prepared) {
|
|
202
|
+
if (segments !== null) {
|
|
203
|
+
parts ?? (parts = splitNormalizedPathname(normalizePathname(pathname.replace(/\/$/, "") || "/")));
|
|
204
|
+
if (matchSegmentParts(segments, parts, true) === null) continue;
|
|
205
|
+
}
|
|
206
|
+
if (groupScope !== null) {
|
|
207
|
+
if (directory === void 0) directory = resolveRouteDirectory?.(pathname) ?? null;
|
|
208
|
+
if (!isInRouteGroupScope(directory, groupScope)) continue;
|
|
191
209
|
}
|
|
192
|
-
|
|
193
|
-
if (matchSegmentParts(segments, parts, true) !== null) applicable.push(layout);
|
|
210
|
+
applicable.push(layout);
|
|
194
211
|
}
|
|
195
212
|
return applicable;
|
|
196
213
|
};
|
|
@@ -523,6 +540,7 @@ export {
|
|
|
523
540
|
configureFarmObservability,
|
|
524
541
|
createDefaultErrorMarkup,
|
|
525
542
|
createFarmAgentRobots,
|
|
543
|
+
createFarmAiCatalogResponse,
|
|
526
544
|
createFarmApiCatalogResponse,
|
|
527
545
|
createFarmAppManifestResponse,
|
|
528
546
|
createFarmCacheKey,
|
|
@@ -542,6 +560,7 @@ export {
|
|
|
542
560
|
createLateRedirectRecovery,
|
|
543
561
|
createProductionMiddlewareRunner,
|
|
544
562
|
emitFarmEvent,
|
|
563
|
+
ensureFarmDocumentMeta,
|
|
545
564
|
farmSecretsMatch,
|
|
546
565
|
generateNativeMCPPluginSource,
|
|
547
566
|
getCurrentRequest,
|
|
@@ -553,6 +572,8 @@ export {
|
|
|
553
572
|
getTheme,
|
|
554
573
|
isFarmNotFoundError,
|
|
555
574
|
isFarmRedirectError,
|
|
575
|
+
isInRouteGroupScope as isInFarmRouteGroupScope,
|
|
576
|
+
listFarmMCPLlmsTxtLinks,
|
|
556
577
|
localizeFarmHref,
|
|
557
578
|
localizeFarmPathname,
|
|
558
579
|
manageFarmDocumentPreloads,
|
|
@@ -561,16 +582,19 @@ export {
|
|
|
561
582
|
matchRoute as matchFarmPageRoute,
|
|
562
583
|
matchesFarmIfNoneMatch,
|
|
563
584
|
mergeMetadata,
|
|
585
|
+
mergeModuleViewport,
|
|
564
586
|
mergeRouteRenderingDirectiveConfig,
|
|
565
587
|
normalizeRevalidatePath,
|
|
566
588
|
parseRoutePath,
|
|
567
589
|
readFarmRequestBody,
|
|
568
590
|
readNodeRequestBody,
|
|
591
|
+
registerFarmMCPServer,
|
|
569
592
|
renderFarmLegacyErrorHtml,
|
|
570
593
|
renderFarmLegacyHtml,
|
|
571
594
|
renderFarmLlmsFullTxt,
|
|
572
595
|
renderFarmLocaleAlternateLinks,
|
|
573
596
|
renderMetadataHead,
|
|
597
|
+
renderViewportHead,
|
|
574
598
|
reportFarmPreloadWarnings,
|
|
575
599
|
resolveDefaultErrorStatus,
|
|
576
600
|
resolveFarmI18nConfig,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkYSLWRWWPcjs = require('../chunk-YSLWRWWP.cjs');
|
|
6
|
+
require('../chunk-WWFTAUFG.cjs');
|
|
7
|
+
require('../chunk-S3JO3N4H.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.FARM_SERVER_TREE_ATTRIBUTE = _chunkYSLWRWWPcjs.FARM_SERVER_TREE_ATTRIBUTE; exports.createFarmServerTreeElement = _chunkYSLWRWWPcjs.createFarmServerTreeElement; exports.renderFarmServerTreePage = _chunkYSLWRWWPcjs.renderFarmServerTreePage;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
declare const FARM_SERVER_TREE_ATTRIBUTE = "data-farm-server-tree";
|
|
4
|
+
interface FarmServerTreeRenderOptions {
|
|
5
|
+
/** Renders a subtree the resolver could not represent with its client components as islands. */
|
|
6
|
+
isolate(element: React__default.ReactNode): React__default.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @internal Resolves a server page and returns the page boundary's children: the resolved tree
|
|
10
|
+
* and its payload. Errors from the page's own code, including redirect and notFound controls,
|
|
11
|
+
* propagate unchanged. Suspense children resolve concurrently and stream as React renders them.
|
|
12
|
+
*/
|
|
13
|
+
declare function renderFarmServerTreePage(ReactRuntime: typeof React__default, element: React__default.ReactNode, options: FarmServerTreeRenderOptions): Promise<React__default.ReactElement>;
|
|
14
|
+
interface FarmServerTreeElementOptions {
|
|
15
|
+
load(reference: string): Promise<Record<string, unknown>>;
|
|
16
|
+
/** Renders a `<farm-server-html>` subtree from its server HTML and hydrates its islands. */
|
|
17
|
+
ServerHtml: React__default.ComponentType<any>;
|
|
18
|
+
/** Remounts the page's client components when it changes, as a navigation does. */
|
|
19
|
+
key?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @internal Rebuilds a server-tree page in the browser from its server HTML, an element or the
|
|
23
|
+
* HTML of a navigation, after loading its client modules. Returns null for a page without a tree.
|
|
24
|
+
*/
|
|
25
|
+
declare function createFarmServerTreeElement(ReactRuntime: typeof React__default, source: ParentNode | string, options: FarmServerTreeElementOptions): Promise<React__default.ReactElement | null>;
|
|
26
|
+
|
|
27
|
+
export { FARM_SERVER_TREE_ATTRIBUTE, type FarmServerTreeElementOptions, type FarmServerTreeRenderOptions, createFarmServerTreeElement, renderFarmServerTreePage };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
declare const FARM_SERVER_TREE_ATTRIBUTE = "data-farm-server-tree";
|
|
4
|
+
interface FarmServerTreeRenderOptions {
|
|
5
|
+
/** Renders a subtree the resolver could not represent with its client components as islands. */
|
|
6
|
+
isolate(element: React__default.ReactNode): React__default.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @internal Resolves a server page and returns the page boundary's children: the resolved tree
|
|
10
|
+
* and its payload. Errors from the page's own code, including redirect and notFound controls,
|
|
11
|
+
* propagate unchanged. Suspense children resolve concurrently and stream as React renders them.
|
|
12
|
+
*/
|
|
13
|
+
declare function renderFarmServerTreePage(ReactRuntime: typeof React__default, element: React__default.ReactNode, options: FarmServerTreeRenderOptions): Promise<React__default.ReactElement>;
|
|
14
|
+
interface FarmServerTreeElementOptions {
|
|
15
|
+
load(reference: string): Promise<Record<string, unknown>>;
|
|
16
|
+
/** Renders a `<farm-server-html>` subtree from its server HTML and hydrates its islands. */
|
|
17
|
+
ServerHtml: React__default.ComponentType<any>;
|
|
18
|
+
/** Remounts the page's client components when it changes, as a navigation does. */
|
|
19
|
+
key?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @internal Rebuilds a server-tree page in the browser from its server HTML, an element or the
|
|
23
|
+
* HTML of a navigation, after loading its client modules. Returns null for a page without a tree.
|
|
24
|
+
*/
|
|
25
|
+
declare function createFarmServerTreeElement(ReactRuntime: typeof React__default, source: ParentNode | string, options: FarmServerTreeElementOptions): Promise<React__default.ReactElement | null>;
|
|
26
|
+
|
|
27
|
+
export { FARM_SERVER_TREE_ATTRIBUTE, type FarmServerTreeElementOptions, type FarmServerTreeRenderOptions, createFarmServerTreeElement, renderFarmServerTreePage };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FARM_SERVER_TREE_ATTRIBUTE,
|
|
3
|
+
createFarmServerTreeElement,
|
|
4
|
+
renderFarmServerTreePage
|
|
5
|
+
} from "../chunk-OFZUJMCU.mjs";
|
|
6
|
+
import "../chunk-NRDBW4MP.mjs";
|
|
7
|
+
import "../chunk-LPEX4YW6.mjs";
|
|
8
|
+
export {
|
|
9
|
+
FARM_SERVER_TREE_ATTRIBUTE,
|
|
10
|
+
createFarmServerTreeElement,
|
|
11
|
+
renderFarmServerTreePage
|
|
12
|
+
};
|
package/dist/markdown.cjs
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkEUV4YR3Vcjs = require('./chunk-EUV4YR3V.cjs');
|
|
18
18
|
require('./chunk-J63ZH5OQ.cjs');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-75RZHGLS.cjs');
|
|
20
20
|
require('./chunk-KNBBQHO2.cjs');
|
|
21
21
|
require('./chunk-E3UK5IIB.cjs');
|
|
22
22
|
require('./chunk-G7HXGLEC.cjs');
|
|
@@ -41,4 +41,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
exports.FARM_MARKDOWN_CONTENT_TYPE =
|
|
44
|
+
exports.FARM_MARKDOWN_CONTENT_TYPE = _chunkEUV4YR3Vcjs.FARM_MARKDOWN_CONTENT_TYPE; exports.applyMarkdownNegotiationHeaders = _chunkEUV4YR3Vcjs.applyMarkdownNegotiationHeaders; exports.createFarmMarkdownErrorBody = _chunkEUV4YR3Vcjs.createFarmMarkdownErrorBody; exports.createMarkdownMirrorResponse = _chunkEUV4YR3Vcjs.createMarkdownMirrorResponse; exports.extractFarmPageActions = _chunkEUV4YR3Vcjs.extractFarmPageActions; exports.farmAcceptQuality = _chunkEUV4YR3Vcjs.farmAcceptQuality; exports.farmRequestWantsMarkdown = _chunkEUV4YR3Vcjs.farmRequestWantsMarkdown; exports.getFarmMarkdownAlternatePath = _chunkEUV4YR3Vcjs.getFarmMarkdownAlternatePath; exports.getFarmMarkdownMirrorPath = _chunkEUV4YR3Vcjs.getFarmMarkdownMirrorPath; exports.htmlToMarkdown = _chunkEUV4YR3Vcjs.htmlToMarkdown; exports.isFarmMarkdownMirrorExposed = _chunkEUV4YR3Vcjs.isFarmMarkdownMirrorExposed; exports.matchesFarmMarkdownRoutePattern = _chunkEUV4YR3Vcjs.matchesFarmMarkdownRoutePattern; exports.requestAcceptsMarkdown = _chunkEUV4YR3Vcjs.requestAcceptsMarkdown; exports.resolveMarkdownConfig = _chunkEUV4YR3Vcjs.resolveMarkdownConfig; exports.resolveMarkdownMirrorTarget = _chunkEUV4YR3Vcjs.resolveMarkdownMirrorTarget;
|
package/dist/markdown.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { fl as ApplyMarkdownNegotiationHeadersOptions, fk as CreateMarkdownMirrorResponseOptions, z as FARM_MARKDOWN_CONTENT_TYPE, fi as FarmMarkdownMirrorTarget, aN as FarmMarkdownResolvedConfig, fh as FarmMarkdownResolvedRoute, fg as FarmMarkdownRouteInput, cI as FarmMarkdownUserConfig, fA as FarmPageFormAction, fy as FarmPageFormField, fx as FarmPageFormOption, fz as FarmPageFormSubmit, fj as ResolveMarkdownMirrorTargetOptions, fp as applyMarkdownNegotiationHeaders, A as createFarmMarkdownErrorBody, fo as createMarkdownMirrorResponse, fB as extractFarmPageActions, fr as farmAcceptQuality, B as farmRequestWantsMarkdown, fu as getFarmMarkdownAlternatePath, ft as getFarmMarkdownMirrorPath, fq as htmlToMarkdown, fv as isFarmMarkdownMirrorExposed, fw as matchesFarmMarkdownRoutePattern, fs as requestAcceptsMarkdown, fm as resolveMarkdownConfig, fn as resolveMarkdownMirrorTarget } from './client-plugins-CvIslxWi.mjs';
|
|
2
2
|
import './lifecycle-DK06VuKP.mjs';
|
|
3
3
|
import './integration-api-0y4FXJpC.mjs';
|
|
4
4
|
import './endpoint-CCHFqyTE.mjs';
|
|
@@ -16,19 +16,18 @@ import 'unstorage';
|
|
|
16
16
|
import './schema.mjs';
|
|
17
17
|
import 'react';
|
|
18
18
|
import '@farming-labs/orm';
|
|
19
|
-
import './types-DFbjpjXX.mjs';
|
|
20
19
|
import '@farming-labs/docs';
|
|
21
|
-
import './observability-
|
|
20
|
+
import './observability-CoXunYhS.mjs';
|
|
22
21
|
import '@opentelemetry/api';
|
|
23
22
|
import 'vite';
|
|
24
|
-
import './workflows-
|
|
23
|
+
import './workflows-jZ4BcdoZ.mjs';
|
|
25
24
|
import './cron.mjs';
|
|
26
25
|
import './env.mjs';
|
|
27
26
|
import './server-action-security.mjs';
|
|
28
27
|
import 'rolldown/utils';
|
|
29
28
|
import 'rolldown';
|
|
30
29
|
import './image-config-Duob7wER.mjs';
|
|
31
|
-
import './types-
|
|
30
|
+
import './types-CnH8DOqo.mjs';
|
|
32
31
|
import './types-DQnyD3VD.mjs';
|
|
33
32
|
import './font.mjs';
|
|
34
33
|
import './after.mjs';
|
package/dist/markdown.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { fl as ApplyMarkdownNegotiationHeadersOptions, fk as CreateMarkdownMirrorResponseOptions, z as FARM_MARKDOWN_CONTENT_TYPE, fi as FarmMarkdownMirrorTarget, aN as FarmMarkdownResolvedConfig, fh as FarmMarkdownResolvedRoute, fg as FarmMarkdownRouteInput, cI as FarmMarkdownUserConfig, fA as FarmPageFormAction, fy as FarmPageFormField, fx as FarmPageFormOption, fz as FarmPageFormSubmit, fj as ResolveMarkdownMirrorTargetOptions, fp as applyMarkdownNegotiationHeaders, A as createFarmMarkdownErrorBody, fo as createMarkdownMirrorResponse, fB as extractFarmPageActions, fr as farmAcceptQuality, B as farmRequestWantsMarkdown, fu as getFarmMarkdownAlternatePath, ft as getFarmMarkdownMirrorPath, fq as htmlToMarkdown, fv as isFarmMarkdownMirrorExposed, fw as matchesFarmMarkdownRoutePattern, fs as requestAcceptsMarkdown, fm as resolveMarkdownConfig, fn as resolveMarkdownMirrorTarget } from './client-plugins-HIyulDym.js';
|
|
2
2
|
import './lifecycle-DK06VuKP.js';
|
|
3
3
|
import './integration-api-BPJo5oXb.js';
|
|
4
4
|
import './endpoint-CA-TNX60.js';
|
|
@@ -16,19 +16,18 @@ import 'unstorage';
|
|
|
16
16
|
import './schema.js';
|
|
17
17
|
import 'react';
|
|
18
18
|
import '@farming-labs/orm';
|
|
19
|
-
import './types-DFbjpjXX.js';
|
|
20
19
|
import '@farming-labs/docs';
|
|
21
|
-
import './observability-
|
|
20
|
+
import './observability-CoXunYhS.js';
|
|
22
21
|
import '@opentelemetry/api';
|
|
23
22
|
import 'vite';
|
|
24
|
-
import './workflows-
|
|
23
|
+
import './workflows-jZ4BcdoZ.js';
|
|
25
24
|
import './cron.js';
|
|
26
25
|
import './env.js';
|
|
27
26
|
import './server-action-security.js';
|
|
28
27
|
import 'rolldown/utils';
|
|
29
28
|
import 'rolldown';
|
|
30
29
|
import './image-config-Duob7wER.js';
|
|
31
|
-
import './types-
|
|
30
|
+
import './types-CnH8DOqo.js';
|
|
32
31
|
import './types-DQnyD3VD.js';
|
|
33
32
|
import './font.js';
|
|
34
33
|
import './after.js';
|
package/dist/markdown.mjs
CHANGED
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
requestAcceptsMarkdown,
|
|
15
15
|
resolveMarkdownConfig,
|
|
16
16
|
resolveMarkdownMirrorTarget
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WWIKMBRN.mjs";
|
|
18
18
|
import "./chunk-MVL2RAJW.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-ZLAT2CWY.mjs";
|
|
20
20
|
import "./chunk-BTHHUD7Q.mjs";
|
|
21
21
|
import "./chunk-FUZEBRP3.mjs";
|
|
22
22
|
import "./chunk-O7BH5O46.mjs";
|