@farm.js/core 0.1.24 → 0.1.25
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.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/api/route-manager.cjs +4 -4
- package/dist/api/route-manager.d.mts +1 -1
- package/dist/api/route-manager.d.ts +1 -1
- package/dist/api/route-manager.mjs +3 -3
- package/dist/api/runtime.cjs +3 -3
- package/dist/api/runtime.mjs +2 -2
- package/dist/api.cjs +7 -7
- package/dist/api.d.mts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.mjs +6 -6
- package/dist/{app-BV-7wV5q.d.ts → app-BF-ctoxh.d.ts} +3 -3
- package/dist/{app-BZDWwwFa.d.mts → app-ZuWrAMc_.d.mts} +3 -3
- package/dist/app-markdown.cjs +4 -4
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/app-markdown.mjs +3 -3
- package/dist/{chunk-MVUREHPN.mjs → chunk-2BIJGZR3.mjs} +1 -1
- package/dist/chunk-2ITKVAIF.cjs +1077 -0
- package/dist/{chunk-47H7VENP.mjs → chunk-2KI3CL3N.mjs} +1 -1
- package/dist/{chunk-KNPRCKXK.cjs → chunk-3TQWUUNP.cjs} +9 -7
- package/dist/{chunk-GZ3ZPTQV.mjs → chunk-52SH7TKB.mjs} +2 -2
- package/dist/{chunk-BDJNP7AQ.mjs → chunk-5YYJ6Q2L.mjs} +10 -3
- package/dist/{chunk-OYDRPBBV.cjs → chunk-65P6OGYN.cjs} +73 -3
- package/dist/{chunk-JIKGGIOL.mjs → chunk-6D242YGO.mjs} +1 -1
- package/dist/{chunk-AH7HOAQ3.cjs → chunk-6K4SPQWL.cjs} +9 -4
- package/dist/{chunk-LYM7HY34.cjs → chunk-AXYTGLF3.cjs} +4 -4
- package/dist/{chunk-2QLBIPFT.cjs → chunk-B6ZCT36X.cjs} +4 -4
- package/dist/{chunk-IMBMOEWT.cjs → chunk-BD2U4ZL6.cjs} +8 -8
- package/dist/{chunk-2M435BUE.mjs → chunk-CEYUWDWA.mjs} +7 -5
- package/dist/{chunk-I5YBCWQ6.cjs → chunk-CFNOGDUS.cjs} +2 -2
- package/dist/{chunk-XI3GWPUS.cjs → chunk-CRQPYWLK.cjs} +14 -14
- package/dist/{chunk-ISTFC3MZ.cjs → chunk-E3RDL2DA.cjs} +48 -5
- package/dist/{chunk-QTBEAKCJ.cjs → chunk-H7CJRJ4L.cjs} +16 -16
- package/dist/{chunk-6YSEHN46.mjs → chunk-N2Z4ZFDE.mjs} +25 -11
- package/dist/{chunk-DNLQMFER.cjs → chunk-O5DVPF3R.cjs} +26 -19
- package/dist/{chunk-WNUBR4CA.mjs → chunk-QGG336NI.mjs} +1 -1
- package/dist/{chunk-SIQMTHCZ.cjs → chunk-QYMRIVG6.cjs} +183 -125
- package/dist/{chunk-G6GNNB44.cjs → chunk-R7LCG3BT.cjs} +189 -175
- package/dist/{chunk-7BC6GAL7.mjs → chunk-RR6UGYUT.mjs} +44 -1
- package/dist/{chunk-LQIRVSBY.cjs → chunk-RYDW7GPR.cjs} +13 -13
- package/dist/{chunk-PGQBL5DN.mjs → chunk-T2OPSH6S.mjs} +72 -2
- package/dist/{chunk-5UX4C5QI.mjs → chunk-TKDY6AJP.mjs} +1 -1
- package/dist/{chunk-BD7FZ63M.cjs → chunk-TTVHACQV.cjs} +1 -1
- package/dist/{chunk-OFEY6KHO.mjs → chunk-U4MP7XTD.mjs} +504 -27
- package/dist/{chunk-YJJLXIIS.cjs → chunk-U74A3P2P.cjs} +7 -7
- package/dist/{chunk-72VJRKJD.mjs → chunk-VZWO3XVL.mjs} +2 -2
- package/dist/{chunk-ARHWIOUZ.mjs → chunk-WJYCI56T.mjs} +86 -28
- package/dist/{chunk-BNSD3VDY.mjs → chunk-WOI2HOGA.mjs} +1 -1
- package/dist/{chunk-N255VYFP.mjs → chunk-XM4ZDVD7.mjs} +8 -3
- package/dist/{chunk-YGMK6ESJ.mjs → chunk-XME4TCLB.mjs} +2 -2
- package/dist/{client-plugins-B_XzCegf.d.mts → client-plugins-DPG0NeZN.d.mts} +41 -3
- package/dist/{client-plugins-CKsXQfXY.d.ts → client-plugins-Fgni-_25.d.ts} +41 -3
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.cjs +4 -4
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +3 -3
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{devtools-UHRSZ7VA.cjs → devtools-6OA7FEF6.cjs} +4 -4
- package/dist/{devtools-OY4SNU3P.mjs → devtools-I7TBFOKD.mjs} +3 -3
- package/dist/docs.cjs +6 -6
- package/dist/docs.mjs +5 -5
- package/dist/index.cjs +24 -22
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.mjs +23 -21
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/internal/app-markdown-runtime.cjs +3 -3
- package/dist/internal/app-markdown-runtime.d.mts +1 -1
- package/dist/internal/app-markdown-runtime.d.ts +1 -1
- package/dist/internal/app-markdown-runtime.mjs +2 -2
- package/dist/internal/build-runtime.cjs +16 -16
- package/dist/internal/build-runtime.d.mts +3 -3
- package/dist/internal/build-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.mjs +15 -15
- package/dist/internal/cli-runtime.cjs +5 -5
- package/dist/internal/cli-runtime.mjs +4 -4
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +4 -4
- package/dist/internal/config-runtime.d.mts +2 -2
- package/dist/internal/config-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +11 -5
- package/dist/internal/production-runtime.d.mts +30 -8
- package/dist/internal/production-runtime.d.ts +30 -8
- package/dist/internal/production-runtime.mjs +10 -4
- package/dist/markdown.cjs +4 -2
- package/dist/markdown.d.mts +63 -1
- package/dist/markdown.d.ts +63 -1
- package/dist/markdown.mjs +3 -1
- package/dist/{metadata-IQEblkZp.d.ts → metadata-CDnRHKVq.d.ts} +1 -1
- package/dist/{metadata-B08w4EYV.d.mts → metadata-D0EF7esB.d.mts} +1 -1
- package/dist/middleware.d.mts +3 -3
- package/dist/middleware.d.ts +3 -3
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.mjs +4 -4
- package/dist/plugin.cjs +12 -12
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.mjs +11 -11
- package/dist/{production-runtime-DRSOkc-d.d.ts → production-runtime-DpCt0opU.d.ts} +1 -1
- package/dist/{production-runtime-C3bGFEaM.d.mts → production-runtime-x3W4wVqx.d.mts} +1 -1
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-CCFuMLNS.d.ts → render-plan-D5oFRVBV.d.ts} +1 -1
- package/dist/{render-plan-B6CKNl4e.d.mts → render-plan-tazUJalK.d.mts} +1 -1
- package/dist/renderer-client.cjs +5 -5
- package/dist/renderer-client.d.mts +3 -3
- package/dist/renderer-client.d.ts +3 -3
- package/dist/renderer-client.mjs +2 -2
- package/dist/{request-DgD1XsTx.d.mts → request-CXmQy5ks.d.mts} +1 -1
- package/dist/{request-Dn6VURbE.d.ts → request-CzZX0Aew.d.ts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering-76A5I_kE.d.mts → route-rendering-B-qpe32B.d.mts} +1 -1
- package/dist/{route-rendering-LAmQEdyG.d.ts → route-rendering-Dw3C362T.d.ts} +1 -1
- package/dist/{router-BSOOGya2.d.ts → router-CLl3xHwl.d.ts} +1 -1
- package/dist/{router-CnrRSa9d.d.mts → router-CafM2jlw.d.mts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server.cjs +27 -27
- package/dist/server.d.mts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.mjs +12 -12
- package/dist/{spa-router-DnYhWCvI.d.mts → spa-router-6sJfsMlQ.d.mts} +2 -2
- package/dist/{spa-router-BMrSsG5b.d.ts → spa-router-DePr2aZ6.d.ts} +2 -2
- package/dist/testing.cjs +4 -4
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.mjs +3 -3
- package/dist/{utils-C3GguS-Q.d.ts → utils-BBKC3cf3.d.ts} +1 -1
- package/dist/{utils-ABkktwku.d.mts → utils-BPHr-1mP.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +12 -12
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.mjs +11 -11
- package/package.json +1 -1
- package/dist/chunk-BBVSJVBZ.cjs +0 -600
- package/dist/{chunk-XP777LRD.mjs → chunk-GDUYXFIS.mjs} +3 -3
- package/dist/{chunk-4PNUXIVU.cjs → chunk-YAOX43YI.cjs} +3 -3
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-IOEH4VWN.mjs";
|
|
7
7
|
import {
|
|
8
8
|
APIRouteConflictError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QGG336NI.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findProgrammaticRouteFilesInDir
|
|
12
12
|
} from "./chunk-YOYF2E4U.mjs";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
invokeAPIRouteEndpoint,
|
|
20
20
|
matchAPIRouteAtBasePath,
|
|
21
21
|
resolveAPIRouteEndpoint
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GDUYXFIS.mjs";
|
|
23
23
|
import {
|
|
24
24
|
isProgrammaticRoutesFileName
|
|
25
25
|
} from "./chunk-EA5K5BKU.mjs";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
compileFarmDocsAdapterEdgeManifest,
|
|
9
9
|
createFarmDocsAPIHandler
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XME4TCLB.mjs";
|
|
11
11
|
import {
|
|
12
12
|
FARM_DOCS_LAST_MODIFIED_MANIFEST,
|
|
13
13
|
createFarmDocsHandler,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
loadFarmDocsPage,
|
|
18
18
|
resolveFarmDocsContentDir,
|
|
19
19
|
toFarmDocsMarkdownPage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2KI3CL3N.mjs";
|
|
21
21
|
import {
|
|
22
22
|
generateFarmDocsSearchClientRuntime,
|
|
23
23
|
isFarmDocsSearchEnabled,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
getDeployTargetForPreset,
|
|
35
35
|
hasCustomFarmRouteContext,
|
|
36
36
|
resolveDeployOutputPath
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-5YYJ6Q2L.mjs";
|
|
38
38
|
import {
|
|
39
39
|
resolveFarmInstrumentationFile
|
|
40
40
|
} from "./chunk-ZZSRYEYU.mjs";
|
|
@@ -69,13 +69,17 @@ import {
|
|
|
69
69
|
resolveFarmImageProviderForRuntime,
|
|
70
70
|
resolveFarmIsolatedClientHydrationMode,
|
|
71
71
|
resolveFarmNotFoundComponentPath
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-N2Z4ZFDE.mjs";
|
|
73
73
|
import {
|
|
74
74
|
findRequestBoundSourceBlockers,
|
|
75
75
|
generateFarmTypeArtifacts,
|
|
76
76
|
parseRouteRenderingDirective,
|
|
77
77
|
resolveRouteRenderingConfigFromFile
|
|
78
78
|
} from "./chunk-VVJCWBIE.mjs";
|
|
79
|
+
import {
|
|
80
|
+
FARM_API_CATALOG_PATH,
|
|
81
|
+
resolveFarmApiCatalogInput
|
|
82
|
+
} from "./chunk-T2OPSH6S.mjs";
|
|
79
83
|
import {
|
|
80
84
|
isFarmPreviewDeploymentEnvironment
|
|
81
85
|
} from "./chunk-BOYNDCZL.mjs";
|
|
@@ -107,7 +111,7 @@ import {
|
|
|
107
111
|
} from "./chunk-DAATZTKJ.mjs";
|
|
108
112
|
import {
|
|
109
113
|
applyFarmCspHashesToHtml
|
|
110
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-RR6UGYUT.mjs";
|
|
111
115
|
import {
|
|
112
116
|
applyFarmCronVercelCrons,
|
|
113
117
|
createFarmCronCloudflareConfig,
|
|
@@ -119,11 +123,14 @@ import {
|
|
|
119
123
|
} from "./chunk-4OOBRCJX.mjs";
|
|
120
124
|
import {
|
|
121
125
|
isFarmMarkdownPageFile
|
|
122
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-XM4ZDVD7.mjs";
|
|
123
127
|
import {
|
|
124
128
|
resolveFarmMdxComponentsModulePath,
|
|
125
129
|
resolveMdxConfig
|
|
126
130
|
} from "./chunk-FA2W42OV.mjs";
|
|
131
|
+
import {
|
|
132
|
+
getFarmMarkdownAlternatePath
|
|
133
|
+
} from "./chunk-U4MP7XTD.mjs";
|
|
127
134
|
import {
|
|
128
135
|
applyFarmWorkflowVercelCrons,
|
|
129
136
|
prepareFarmWorkflowsForNitro
|
|
@@ -137,7 +144,7 @@ import {
|
|
|
137
144
|
} from "./chunk-TIKNUAU7.mjs";
|
|
138
145
|
import {
|
|
139
146
|
APIRouteManager
|
|
140
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-QGG336NI.mjs";
|
|
141
148
|
import {
|
|
142
149
|
readFarmI18nCatalogs
|
|
143
150
|
} from "./chunk-FV45CKBC.mjs";
|
|
@@ -5413,10 +5420,12 @@ function isolateFarmRouteServerPage(element) { return element; }`;
|
|
|
5413
5420
|
createFarmCacheKey,
|
|
5414
5421
|
createFarmMetadataRouteResponse,
|
|
5415
5422
|
createFarmAgentRobots,
|
|
5423
|
+
createFarmApiCatalogResponse,
|
|
5416
5424
|
collectFarmLlmsTxtPages,
|
|
5417
5425
|
createFarmDefaultLlmsTxt,
|
|
5418
5426
|
createFarmLlmsMarkdownReader,
|
|
5419
5427
|
renderFarmLlmsFullTxt,
|
|
5428
|
+
createFarmLlmsFullRenderer,
|
|
5420
5429
|
createFarmThemeDocumentParts,
|
|
5421
5430
|
createFarmLocaleCookie,
|
|
5422
5431
|
createFarmProductionLifecycle,
|
|
@@ -5815,7 +5824,7 @@ const farmImageHandler = ${imageRuntime === "none" ? "null" : imageRuntime === "
|
|
|
5815
5824
|
})`};
|
|
5816
5825
|
const farmMarkdownConfig = ${JSON.stringify(config.md)};
|
|
5817
5826
|
const farmLlmsTxtConfig = ${JSON.stringify(config.agent?.llmsTxt ?? { enabled: false, include: [], exclude: [] })};
|
|
5818
|
-
${servesAgentRobotsTxt ? `const farmAgentCrawlers = ${JSON.stringify(config.agent.crawlers)};` : ""}
|
|
5827
|
+
${config.agent?.llmsTxt?.enabled ? "const farmLlmsFullRenderer = createFarmLlmsFullRenderer({ revalidate: farmLlmsTxtConfig.revalidate });\n" : ""}${servesAgentRobotsTxt ? `const farmAgentCrawlers = ${JSON.stringify(config.agent.crawlers)};` : ""}
|
|
5819
5828
|
const farmMdxConfig = ${JSON.stringify({
|
|
5820
5829
|
...config.mdx,
|
|
5821
5830
|
components: typeof config.mdx?.components === "string" ? config.mdx.components : void 0
|
|
@@ -5925,7 +5934,8 @@ const apiRoutes = ${apiRoutes.length > 0 ? "mergePluginAPIRoutes(" : ""}[${apiRe
|
|
|
5925
5934
|
]${apiRoutes.length > 0 ? `, configuredPlugins, ${JSON.stringify(apiRoutes.map(({ path: path7, methods }) => ({ path: path7, methods })))}, { bodySizeLimit: ${JSON.stringify(config.server.bodySizeLimit)} })` : ""};
|
|
5926
5935
|
const farmLocalAPIBasePath = ${JSON.stringify(resolveFarmAPIServerBasePath(config.api))};
|
|
5927
5936
|
const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
|
|
5928
|
-
|
|
5937
|
+
${config.agent?.apiCatalog ? `const farmApiCatalogInput = ${JSON.stringify(resolveFarmApiCatalogInput(config))};
|
|
5938
|
+
` : ""}
|
|
5929
5939
|
function isFarmLocalAPIPathname(pathname) {
|
|
5930
5940
|
return farmLocalAPIBasePath !== "/" &&
|
|
5931
5941
|
(pathname === farmLocalAPIBasePath ||
|
|
@@ -7633,6 +7643,15 @@ async function handleFarmRequestInContext(
|
|
|
7633
7643
|
return applyProductionMiddlewareHeaders(applicationMetadataResponse, middlewareHeaders);
|
|
7634
7644
|
}
|
|
7635
7645
|
` : ""}
|
|
7646
|
+
${config.agent?.apiCatalog ? `
|
|
7647
|
+
// agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
|
|
7648
|
+
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(FARM_API_CATALOG_PATH)}) {
|
|
7649
|
+
return applyProductionMiddlewareHeaders(
|
|
7650
|
+
createFarmApiCatalogResponse(request.method, farmApiCatalogInput),
|
|
7651
|
+
middlewareHeaders,
|
|
7652
|
+
);
|
|
7653
|
+
}
|
|
7654
|
+
` : ""}
|
|
7636
7655
|
${servesAgentRobotsTxt ? `
|
|
7637
7656
|
// agent.crawlers with no robots.ts: serve the generated file.
|
|
7638
7657
|
if (normalizeRuntimePath(routePathname) === "/robots.txt") {
|
|
@@ -7649,12 +7668,18 @@ async function handleFarmRequestInContext(
|
|
|
7649
7668
|
: ${config.agent?.llmsTxt?.full ? `normalizeRuntimePath(routePathname) === "/llms-full.txt" ? "llms-full" : ` : ""}null;
|
|
7650
7669
|
if (farmGeneratedLlmsKind) {
|
|
7651
7670
|
const llmsContext = createFarmLlmsTxtContext(request, farmGeneratedLlmsKind === "llms-full");
|
|
7652
|
-
const
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7671
|
+
const llmsOrigin = new URL(request.url).origin;
|
|
7672
|
+
const renderLlmsFull = () =>
|
|
7673
|
+
renderFarmLlmsFullTxt(llmsContext.defaults, {
|
|
7674
|
+
origin: llmsOrigin,
|
|
7675
|
+
readMarkdown: llmsContext.markdown,
|
|
7676
|
+
});
|
|
7677
|
+
// HEAD reads no pages, so it neither waits for nor fills the shared render.
|
|
7678
|
+
const llmsBody = farmGeneratedLlmsKind !== "llms-full"
|
|
7679
|
+
? llmsContext.defaults
|
|
7680
|
+
: request.method.toUpperCase() === "HEAD"
|
|
7681
|
+
? await renderLlmsFull()
|
|
7682
|
+
: await farmLlmsFullRenderer(llmsOrigin, renderLlmsFull);
|
|
7658
7683
|
return applyProductionMiddlewareHeaders(
|
|
7659
7684
|
createFarmMetadataRouteResponse(
|
|
7660
7685
|
farmGeneratedLlmsKind,
|
|
@@ -9309,6 +9334,24 @@ export default async function farmNitroEventHandler(event) {
|
|
|
9309
9334
|
}
|
|
9310
9335
|
nitroConfig.minify = useFarmServerMinifier ? false : shouldMinify;
|
|
9311
9336
|
const nitroInstance = await nitroBuilder.createNitro(nitroConfig);
|
|
9337
|
+
if (config.md?.enabled) {
|
|
9338
|
+
nitroInstance.hooks.hook("prerender:generate", (route) => {
|
|
9339
|
+
if (!route.contents || !route.contentType?.toLowerCase().includes("html")) return;
|
|
9340
|
+
const alternatePath = getFarmMarkdownAlternatePath(config.md, route.route);
|
|
9341
|
+
if (!alternatePath) return;
|
|
9342
|
+
const routeRule = nitroInstance.options.routeRules[route.route] || {};
|
|
9343
|
+
nitroInstance.options.routeRules[route.route] = {
|
|
9344
|
+
...routeRule,
|
|
9345
|
+
headers: {
|
|
9346
|
+
...routeRule.headers,
|
|
9347
|
+
Link: `<${alternatePath}>; rel="alternate"; type="text/markdown"`
|
|
9348
|
+
}
|
|
9349
|
+
};
|
|
9350
|
+
});
|
|
9351
|
+
nitroInstance.hooks.hook("prerender:done", () => {
|
|
9352
|
+
nitroInstance.routing.sync();
|
|
9353
|
+
});
|
|
9354
|
+
}
|
|
9312
9355
|
if (config.security.csp && config.security.csp.nonce) {
|
|
9313
9356
|
nitroInstance.hooks.hook("prerender:generate", async (route) => {
|
|
9314
9357
|
if (!route.contents || !route.contentType?.toLowerCase().includes("html")) return;
|
|
@@ -9392,9 +9435,14 @@ export default async function farmNitroEventHandler(event) {
|
|
|
9392
9435
|
}
|
|
9393
9436
|
}
|
|
9394
9437
|
const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs, preset) : Promise.resolve(null);
|
|
9395
|
-
const
|
|
9438
|
+
const prebuiltSSRFilesPromise = canReusePrebuiltSSR ? prepareSSRBundleFiles(
|
|
9439
|
+
ssrBundle,
|
|
9440
|
+
shouldMinify ? { keepNames: keepServerNames, target: "node18" } : null
|
|
9441
|
+
) : Promise.resolve(null);
|
|
9442
|
+
const [nitroBuildResult, sharpRuntimeStageResult, prebuiltSSRFilesResult] = await Promise.allSettled([
|
|
9396
9443
|
nitroBuilder.build(nitroInstance),
|
|
9397
|
-
sharpRuntimeStagePromise
|
|
9444
|
+
sharpRuntimeStagePromise,
|
|
9445
|
+
prebuiltSSRFilesPromise
|
|
9398
9446
|
]);
|
|
9399
9447
|
await nitroInstance.close();
|
|
9400
9448
|
if (nitroBuildResult.status === "rejected") {
|
|
@@ -9409,6 +9457,9 @@ export default async function farmNitroEventHandler(event) {
|
|
|
9409
9457
|
if (sharpRuntimeStageResult.status === "rejected") {
|
|
9410
9458
|
throw sharpRuntimeStageResult.reason;
|
|
9411
9459
|
}
|
|
9460
|
+
if (prebuiltSSRFilesResult.status === "rejected") {
|
|
9461
|
+
throw prebuiltSSRFilesResult.reason;
|
|
9462
|
+
}
|
|
9412
9463
|
const stagedSharpRuntime = sharpRuntimeStageResult.value ?? (imageRuntime === "node" ? await stageSharpRuntime(config, root, distDir, fs, preset) : null);
|
|
9413
9464
|
const runtimeCopyPromise = (async () => {
|
|
9414
9465
|
if (stagedSharpRuntime) {
|
|
@@ -9419,10 +9470,9 @@ export default async function farmNitroEventHandler(event) {
|
|
|
9419
9470
|
}
|
|
9420
9471
|
})();
|
|
9421
9472
|
const copyResults = await Promise.allSettled([
|
|
9422
|
-
|
|
9423
|
-
|
|
9473
|
+
prebuiltSSRFilesResult.value ? writeSSRBundleFiles(
|
|
9474
|
+
prebuiltSSRFilesResult.value,
|
|
9424
9475
|
path5.join(outputDir, "server", FARM_SSR_OUTPUT_DIR),
|
|
9425
|
-
shouldMinify ? { keepNames: keepServerNames, target: "node18" } : null,
|
|
9426
9476
|
fs
|
|
9427
9477
|
) : Promise.resolve(),
|
|
9428
9478
|
runtimeCopyPromise
|
|
@@ -9466,21 +9516,29 @@ function resolveFarmNitroOutputConfig(preset, outputDir) {
|
|
|
9466
9516
|
};
|
|
9467
9517
|
}
|
|
9468
9518
|
__name(resolveFarmNitroOutputConfig, "resolveFarmNitroOutputConfig");
|
|
9469
|
-
|
|
9519
|
+
function prepareSSRBundleFiles(ssrBundle, minifyOptions) {
|
|
9520
|
+
return Promise.all(
|
|
9521
|
+
Object.entries(ssrBundle).map(async ([fileName, output]) => ({
|
|
9522
|
+
fileName,
|
|
9523
|
+
contents: output.type === "asset" ? output.source : minifyOptions ? await minifyFarmServerChunk(output.code, fileName, minifyOptions) : output.code
|
|
9524
|
+
}))
|
|
9525
|
+
);
|
|
9526
|
+
}
|
|
9527
|
+
__name(prepareSSRBundleFiles, "prepareSSRBundleFiles");
|
|
9528
|
+
async function writeSSRBundleFiles(files, targetDir, fs) {
|
|
9470
9529
|
await fs.rm(targetDir, { recursive: true, force: true });
|
|
9471
9530
|
await Promise.all(
|
|
9472
|
-
|
|
9531
|
+
files.map(async ({ fileName, contents }) => {
|
|
9473
9532
|
const targetPath = path5.join(targetDir, fileName);
|
|
9474
9533
|
await fs.mkdir(path5.dirname(targetPath), { recursive: true });
|
|
9475
|
-
|
|
9476
|
-
await fs.writeFile(targetPath, output.source);
|
|
9477
|
-
return;
|
|
9478
|
-
}
|
|
9479
|
-
const code = minifyOptions ? await minifyFarmServerChunk(output.code, fileName, minifyOptions) : output.code;
|
|
9480
|
-
await fs.writeFile(targetPath, code);
|
|
9534
|
+
await fs.writeFile(targetPath, contents);
|
|
9481
9535
|
})
|
|
9482
9536
|
);
|
|
9483
9537
|
}
|
|
9538
|
+
__name(writeSSRBundleFiles, "writeSSRBundleFiles");
|
|
9539
|
+
async function copyPrebuiltSSRBundle(ssrBundle, targetDir, minifyOptions, fs) {
|
|
9540
|
+
await writeSSRBundleFiles(await prepareSSRBundleFiles(ssrBundle, minifyOptions), targetDir, fs);
|
|
9541
|
+
}
|
|
9484
9542
|
__name(copyPrebuiltSSRBundle, "copyPrebuiltSSRBundle");
|
|
9485
9543
|
async function registerPrebuiltSSRPackageImport(serverDir, ssrEntryFile, fs) {
|
|
9486
9544
|
const packagePath = path5.join(serverDir, "package.json");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
createFarmMarkdownViewResponse,
|
|
2
3
|
requestAcceptsMarkdown
|
|
3
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-U4MP7XTD.mjs";
|
|
4
5
|
import {
|
|
5
6
|
__name
|
|
6
7
|
} from "./chunk-LPEX4YW6.mjs";
|
|
@@ -133,9 +134,13 @@ async function createFarmMarkdownSourceResponse(options) {
|
|
|
133
134
|
if (!hasMarkdownExtension) {
|
|
134
135
|
headers.set("Vary", "Accept");
|
|
135
136
|
}
|
|
136
|
-
return
|
|
137
|
+
return createFarmMarkdownViewResponse({
|
|
138
|
+
request: options.request,
|
|
139
|
+
requestUrl: url,
|
|
140
|
+
markdown: source.source,
|
|
137
141
|
status: 200,
|
|
138
|
-
headers
|
|
142
|
+
headers,
|
|
143
|
+
markdownPath: headers.get("Content-Location")
|
|
139
144
|
});
|
|
140
145
|
}
|
|
141
146
|
__name(createFarmMarkdownSourceResponse, "createFarmMarkdownSourceResponse");
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
loadFarmDocsPage,
|
|
4
4
|
resolveFarmDocsContentDir,
|
|
5
5
|
toFarmDocsMarkdownPage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2KI3CL3N.mjs";
|
|
7
7
|
import {
|
|
8
8
|
docsEngine,
|
|
9
9
|
loadFarmDocsEngine
|
|
10
10
|
} from "./chunk-2VQKKQ6D.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveDocsConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5YYJ6Q2L.mjs";
|
|
14
14
|
import {
|
|
15
15
|
getFarmDocsAdapterConfigModule
|
|
16
16
|
} from "./chunk-VVBO3QH7.mjs";
|
|
@@ -76,8 +76,9 @@ interface FarmLlmsTxtUserConfig {
|
|
|
76
76
|
*/
|
|
77
77
|
full?: boolean;
|
|
78
78
|
/**
|
|
79
|
-
* Seconds a CDN may cache the generated files
|
|
80
|
-
*
|
|
79
|
+
* Seconds a CDN may cache the generated files, and the production server may
|
|
80
|
+
* reuse an llms-full.txt render, which renders every listed page. Defaults to
|
|
81
|
+
* no caching; concurrent llms-full.txt requests still share one render.
|
|
81
82
|
*/
|
|
82
83
|
revalidate?: number;
|
|
83
84
|
}
|
|
@@ -124,6 +125,18 @@ declare function renderFarmLlmsFullTxt(value: unknown, options: {
|
|
|
124
125
|
readMarkdown: (url: string) => Promise<string | null>;
|
|
125
126
|
concurrency?: number;
|
|
126
127
|
}): Promise<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Shares llms-full.txt renders, which read every listed page. Requests for the
|
|
130
|
+
* same origin while a render runs, or within `revalidate` seconds after it, get
|
|
131
|
+
* that result; renders run one at a time, so a burst of requests, even with
|
|
132
|
+
* varied Host headers, cannot multiply page renders. The content is the same for
|
|
133
|
+
* every caller: pages are read with fresh requests that carry no credentials.
|
|
134
|
+
*/
|
|
135
|
+
declare function createFarmLlmsFullRenderer(options?: {
|
|
136
|
+
revalidate?: number;
|
|
137
|
+
now?: () => number;
|
|
138
|
+
maxEntries?: number;
|
|
139
|
+
}): (origin: string, render: () => Promise<string>) => Promise<string>;
|
|
127
140
|
|
|
128
141
|
type ApplicationMetadataRouteKind = "sitemap" | "robots" | "manifest" | "llms" | "llms-full";
|
|
129
142
|
declare namespace MetadataRoute {
|
|
@@ -323,12 +336,22 @@ interface FarmAgentUserConfig {
|
|
|
323
336
|
* @default false
|
|
324
337
|
*/
|
|
325
338
|
crawlers?: boolean | FarmAgentCrawlers;
|
|
339
|
+
/**
|
|
340
|
+
* Serve `/.well-known/api-catalog` (RFC 9727): a Linkset listing the app's
|
|
341
|
+
* OpenAPI description and reference (when `openapi` is enabled) and its MCP
|
|
342
|
+
* endpoint (when the top-level `mcp` is enabled), so agents can find them
|
|
343
|
+
* from the origin alone.
|
|
344
|
+
*
|
|
345
|
+
* @default false
|
|
346
|
+
*/
|
|
347
|
+
apiCatalog?: boolean;
|
|
326
348
|
}
|
|
327
349
|
interface ResolvedFarmAgentConfig {
|
|
328
350
|
jsonLd: FarmAgentJsonLd | false;
|
|
329
351
|
noindexPreviews: boolean;
|
|
330
352
|
llmsTxt: ResolvedFarmLlmsTxtConfig;
|
|
331
353
|
crawlers: ResolvedFarmAgentCrawlers;
|
|
354
|
+
apiCatalog: boolean;
|
|
332
355
|
}
|
|
333
356
|
|
|
334
357
|
/**
|
|
@@ -1178,6 +1201,21 @@ interface FarmMCPConfig {
|
|
|
1178
1201
|
authorize?: (context: FarmMCPAuthorizeContext) => FarmMCPAuthorization | false | Promise<FarmMCPAuthorization | false>;
|
|
1179
1202
|
/** Deliberate escape hatch for public servers. Authentication is required by default. */
|
|
1180
1203
|
allowUnauthenticated?: boolean;
|
|
1204
|
+
/**
|
|
1205
|
+
* OAuth discovery for MCP clients. When set, a rejected request's 401 points at
|
|
1206
|
+
* RFC 9728 Protected Resource Metadata naming these authorization servers, which
|
|
1207
|
+
* Farm serves at `/.well-known/oauth-protected-resource/<endpoint path>`.
|
|
1208
|
+
* Validating tokens stays in `authorize`.
|
|
1209
|
+
*/
|
|
1210
|
+
oauth?: FarmMCPOAuthConfig;
|
|
1211
|
+
}
|
|
1212
|
+
interface FarmMCPOAuthConfig {
|
|
1213
|
+
/** Issuer URLs of the OAuth authorization servers that issue tokens for this endpoint. */
|
|
1214
|
+
authorizationServers: readonly string[];
|
|
1215
|
+
/** Scopes clients may request, advertised as `scopes_supported` and in the 401 challenge. */
|
|
1216
|
+
scopes?: readonly string[];
|
|
1217
|
+
/** Human-readable name for consent screens. @default the MCP server name */
|
|
1218
|
+
resourceName?: string;
|
|
1181
1219
|
}
|
|
1182
1220
|
type FarmMCPUserConfig = FarmMCPConfig | false;
|
|
1183
1221
|
interface ResolvedFarmMCPConfig extends FarmMCPConfig {
|
|
@@ -3135,4 +3173,4 @@ interface MetadataRobots extends MetadataRobotsDirectives {
|
|
|
3135
3173
|
googleBot?: string | MetadataRobotsDirectives;
|
|
3136
3174
|
}
|
|
3137
3175
|
|
|
3138
|
-
export { type LayoutMetadataProps as $, type FarmAgentJsonLd as A, type FarmContextFactory as B, type MiddlewareProps as C, type BundleResultPayload as D, type FarmIntegration as E, type FarmRouteRuntimeConfig as F, type FarmConfig as G, farmPlugin as H, defineConfig as I, type FarmComponentType as J, type AppRoutePattern as K, type LayoutProps as L, type Metadata as M, type PageRouteParams as N, type NitroPreset as O, type ParsedRoute as P, type FarmMigrationCommand as Q, type RouteSegment as R, type FarmMigrationsConfig as S, type FarmMigrationsUserConfig as T, type ResolvedFarmMigrationsConfig as U, type FarmContextFactoryInput as V, type FarmIsolatedClientHydrationMode as W, type LoadingProps as X, type ErrorProps as Y, type PagePropsWithMiddleware as Z, type MetadataProps as _, type FarmPlugin as a, FarmRuntimeShutdownError as a$, type Page as a0, type Layout as a1, type Loading as a2, type ErrorBoundary as a3, type StaticPathPrimitive as a4, type StaticPathParams as a5, type StaticRouteParams as a6, type GenerateStaticParams as a7, type LayoutModule as a8, type MetadataJsonLd as a9, type ResolvedFarmDevIndicatorsConfig as aA, type ResolvedFarmAuthConfig as aB, type ResolvedFarmPerformanceConfig as aC, type ResolvedFarmSecurityConfig as aD, type APIRequestRuntime as aE, createFarmMetadataRouteResponse as aF, createFarmAgentRobots as aG, collectFarmLlmsTxtPages as aH, createFarmDefaultLlmsTxt as aI, createFarmLlmsMarkdownReader as aJ, renderFarmLlmsFullTxt as aK, manageFarmDocumentPreloads as aL, manageFarmHtmlPreloads as aM, manageFarmLinkHeaderPreloads as aN, reportFarmPreloadWarnings as aO, applyFarmCspNonceToResponse as aP, resolveFarmSecurityConfig as aQ, type ResolvedSchemaField as aR, type FarmSqlDialect as aS, type FarmSqlStatement as aT, type CollectedSchemaModel as aU, type FarmSchemaMigrationStep as aV, type OpenAPIConfig as aW, type FarmAgentUserConfig as aX, type FarmAgentCrawlers as aY, type FarmCrawlerPolicy as aZ, definePlugin as a_, type ServerAction as aa, type BuildOptions as ab, type SSGPage as ac, type SSGCollectionResult as ad, type MetadataRobotsDirectives as ae, type MetadataRobots as af, type FarmLayerEntry as ag, type ResolvedFarmLayer as ah, type FarmSourceRoot as ai, type ResolveFarmLayersOptions as aj, type FarmLayerResolution as ak, resolveFarmLayers as al, getFarmSourceRoots as am, getFarmAppDirectories as an, getFarmLayerAliases as ao, createFarmConfigResolutionPlugin as ap, loadFarmConfigFile as aq, type ReadonlyMiddlewareStore as ar, type FarmMiddlewareConfig as as, type MiddlewareModule as at, type MiddlewareConfig$1 as au, type MiddlewareContext as av, type ResolvedFarmRouteRuntimeConfig as aw, type ApplicationMetadataRouteKind as ax, type ResolvedFarmAPIConfig as ay, type ResolvedFarmDevtoolsConfig as az, isFarmRedirectError as b, type FarmPluginRuntimeStartEvent as b$, PluginManager as b0, type FarmPluginDatabase as b1, type FarmPluginDefinition as b2, FarmPluginOptionsError as b3, type FarmPluginFactory as b4, type FarmPluginOptionsIssue as b5, type FarmPluginOptionsSchema as b6, type InferPluginOptionsInput as b7, type InferPluginOptionsOutput as b8, resolveConfig as b9, type FarmMCPEndpoint as bA, type FarmMCPServerFunction as bB, type FarmMCPToolDefinition as bC, type FarmMCPStandaloneTool as bD, type FarmMCPExecuteContext as bE, type FarmMCPTool as bF, type FarmMCPServer as bG, type FarmMCPAuthorizeContext as bH, type FarmMCPConfig as bI, type FarmMCPUserConfig as bJ, type ResolvedFarmMCPConfig as bK, type PluginRequestContext as bL, type FarmPluginIntegrationContext as bM, type FarmPluginLifecycle as bN, type FarmRequestPluginContext as bO, type FarmRequestStore as bP, type FarmPluginRuntimeKind as bQ, type FarmPluginRouteRuntimePayload as bR, type FarmPluginSetupContext as bS, type FarmPluginStateContext as bT, type FarmPluginRuntimeBaseEvent as bU, type FarmPluginRuntimeContextEvent as bV, type FarmPluginRuntimeEndpoint as bW, type FarmPluginRuntimeEndpointEvent as bX, type FarmPluginRuntimeBeforeEvent as bY, type FarmPluginRuntimeAfterEvent as bZ, type FarmPluginRuntimeErrorEvent as b_, loadConfig as ba, resolveDeployConfig as bb, resolveMigrationsConfig as bc, resolveDeployOutputPath as bd, normalizeDeployTarget as be, getDeployTargetForPreset as bf, getPresetForDeployTarget as bg, type FarmLayerConfig as bh, type FarmPerformanceConfig as bi, type FarmPreloadMode as bj, type FarmPreloadUserConfig as bk, type ResolvedFarmPreloadConfig as bl, type FarmCspConfig as bm, type FarmCspDirectives as bn, type FarmCspDirectiveValue as bo, type FarmCspOptions as bp, type FarmSecurityConfig as bq, type ResolvedFarmCspConfig as br, MetadataRoute as bs, type MetadataRouteContext as bt, type FarmAuthConfig as bu, type FarmAuthDatabaseConfig as bv, type FarmAuthEmailAndPasswordConfig as bw, type FarmAuthSessionConfig as bx, type FarmAuthUserConfig as by, type FarmMCPAuthorization as bz, type FarmRedirectSignal as c, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as c$, type FarmPluginRuntimeCloseEvent as c0, type FarmPluginRuntimeHooks as c1, type FarmPluginRuntimeRequestOptions as c2, type FarmPluginRuntimeRequestHandler as c3, type FarmPluginRuntimeSession as c4, type FarmPluginDiscoveredRoute as c5, type FarmPluginRouterHooks as c6, type FarmPluginRenderHooks as c7, type FarmPluginBuildHooks as c8, type FarmPluginDevHooks as c9, generateSqlStatements as cA, renderSqlSchemaFile as cB, getSqlColumnType as cC, getSqlDefaultExpression as cD, isNullableField as cE, quoteSqlIdentifier as cF, toSnakeCase as cG, toPascalCase as cH, toCamelCase as cI, escapeSqlString as cJ, resolveSchemaModels as cK, type ResolvedSchemaModel as cL, type FarmIntegrationCategory as cM, type FarmIntegrationSlot as cN, type FarmIntegrationRouteParamValue as cO, type FarmIntegrationRouteParams as cP, type FarmIntegrationRouteMethod as cQ, type FarmIntegrationRouteInputSource as cR, type FarmIntegrationValidationPathSegment as cS, type FarmIntegrationRouteInput as cT, type FarmIntegrationValidationIssue as cU, type FarmIntegrationValidationErrorLike as cV, type FarmIntegrationValidationResult as cW, type FarmIntegrationStandardValidationResult as cX, type FarmIntegrationInputSchema as cY, type FarmIntegrationRouteInputSchemas as cZ, type FarmIntegrationRequestContextStore as c_, type FarmPluginClientConfig as ca, type RouteDiscoveredPayload as cb, type RoutesGeneratedPayload as cc, type MiddlewareDiscoveredPayload as cd, type APIRouteDiscoveredPayload as ce, type RouteMatchPayload as cf, type RouteMatchResultPayload as cg, type RenderLifecyclePayload as ch, type APIHandlerLifecyclePayload as ci, type ErrorLifecyclePayload as cj, type HMRUpdatePayload as ck, type BundleLifecyclePayload as cl, type NitroBuildLifecyclePayload as cm, type ShutdownPayload as cn, type ResolvedFarmConfig as co, type RedirectConfig as cp, type HeaderConfig as cq, type RewriteConfig as cr, type ImageConfig as cs, type I18nConfig as ct, type MiddlewareConfig as cu, type FarmDeployConfig as cv, type ResolvedFarmDeployConfig as cw, type FarmDeployTarget as cx, describeSchemaReference as cy, collectSchemaModels as cz, type FarmRedirectStatus as d, matchRegisteredIntegrationRoute as d$, FARM_INTEGRATION_SET_COOKIES_KEY as d0, forwardIntegrationSetCookies as d1, type FarmIntegrationRouteDb as d2, type FarmIntegrationRouteStorageArgs as d3, type FarmIntegrationRouteArgs as d4, type FarmIntegrationConfigContext as d5, type FarmIntegrationConfigDefinition as d6, type FarmIntegrationConfigInput as d7, type FarmIntegrationLifecycleLogLevel as d8, type FarmIntegrationLifecycleLogger as d9, type FarmIntegrationLogger as dA, type FarmIntegrationPluginOwner as dB, type FarmIntegrationContributedPlugin as dC, type FarmIntegrationsUserConfig as dD, getFarmIntegrationPluginServerRuntime as dE, getFarmIntegrationPluginOwner as dF, type FarmIntegrationRouteFactory as dG, type FarmIntegrationRoutesFactoryContext as dH, type FarmIntegrationRoutesFactory as dI, type FarmIntegrationEndpointValue as dJ, type FarmIntegrationEndpoints as dK, type FarmIntegrationEndpointsFactoryContext as dL, type FarmIntegrationEndpointsFactory as dM, createIntegrationRoute as dN, integrationRoute as dO, type DefinedIntegration as dP, defineIntegration as dQ, isFarmIntegration as dR, resolveIntegrationPlugins as dS, getIntegrationProviders as dT, isFarmIntegrationProviderComponentReference as dU, getIntegrationDocumentNavigationMatchers as dV, getIntegrationSchemas as dW, getRegisteredIntegrationRuntime as dX, getRegisteredIntegrations as dY, getRegisteredIntegrationSchemas as dZ, matchIntegrationRoute as d_, type FarmIntegrationLifecycleContext as da, type FarmIntegrationLifecycleHook as db, type FarmIntegrationData as dc, type FarmIntegrationHandlerContext as dd, type FarmIntegrationRouteHookContext as de, type FarmIntegrationRouteHook as df, type FarmIntegrationRoute as dg, type FarmTypedIntegrationRoute as dh, type FarmIntegrationRouteMiddleware as di, type FarmIntegrationMiddleware as dj, type FarmIntegrationProviderProps as dk, type FarmIntegrationProviderComponentReference as dl, type FarmIntegrationProvider as dm, type FarmIntegrationDocumentNavigation as dn, type FarmIntegrationSchemaFieldType as dp, type FarmIntegrationSchemaReference as dq, type FarmIntegrationSchemaField as dr, type FarmIntegrationSchemaConstraint as ds, type FarmIntegrationSchemaModel as dt, type FarmIntegrationSchemaModelExtension as du, type FarmIntegrationSchemaModelOverride as dv, type FarmIntegrationSchema as dw, defineIntegrationSchema as dx, type FarmIntegrationLogPhase as dy, type FarmIntegrationLogEvent as dz, type FarmRequest as e, farmRouteRuleMatches as e$, getRegisteredIntegrationAPIManifest as e0, dispatchIntegrationRequest as e1, dispatchIntegrationRequests as e2, describeIntegrationOriginRejection as e3, resolveIntegrationAllowedOrigins as e4, validateIntegrationRequestOrigin as e5, type IntegrationOriginPolicy as e6, type IntegrationOriginRejection as e7, type IntegrationOriginResult as e8, type FarmIntegrationOrmSchema as e9, type RateLimitConfig as eA, type RateLimitIncrementResult as eB, type RateLimitStorage as eC, type RateLimitStatus as eD, type MemoryRateLimitStorageOptions as eE, type NextFunction as eF, type MiddlewareResult as eG, type FarmRouteRuleRenderMode as eH, type FarmRouteRuleRedirect as eI, type FarmRouteRuleCors as eJ, type FarmRouteRule as eK, type FarmRouteRules as eL, normalizeRouteRules as eM, routeRulesToRedirects as eN, routeRulesToHeaders as eO, routeRulesToNitroRouteRules as eP, type FarmRouteRuntimeEntryKind as eQ, type FarmRouteRenderingMode as eR, type FarmRouteRuntimeManifestEntry as eS, type FarmRouteRuntimeManifest as eT, normalizeFarmRouteRuntimeConfig as eU, mergeFarmRouteRuntimeConfigs as eV, resolveFarmRouteRuntimeConfig as eW, hasFarmRouteRuntimeControls as eX, getFarmRouteRuntimeConfig as eY, createFarmRouteRuntimeKey as eZ, resolveFarmRouteRuleRuntimeConfig as e_, type FarmIntegrationOrmClient as ea, type InferFarmIntegrationOrmField as eb, type InferFarmIntegrationOrmFields as ec, type InferFarmIntegrationOrmSchema as ed, type InferFarmIntegrationOrmClient as ee, type CreateIntegrationOrmOptions as ef, createIntegrationOrm as eg, resolveIntegrationOrmRuntimeClient as eh, farmIntegrationSchemaToOrmSchema as ei, type IntegrationOrmModelNames as ej, DEFAULT_FARM_API_BASE_PATH as ek, type FarmAPIConfigResolverContext as el, type FarmAPIConfigValue as em, type FarmAPIConfig as en, resolveFarmAPIConfig as eo, normalizeFarmAPIConfig as ep, normalizeFarmAPIBasePath as eq, getFarmAPIBaseURL as er, resolveFarmAPIRequestURL as es, type MiddlewareFunction as et, type RequestMiddleware as eu, type RequestMiddlewareContext as ev, type MiddlewareStore as ew, type MiddlewareChain as ex, type CookieJar as ey, type CookieOptions as ez, type FarmResponse as f, DEFAULT_FARM_DEVTOOLS_SHORTCUT as f0, FARM_DEVTOOLS_PATH as f1, FARM_DEVTOOLS_LAUNCH_PARAM as f2, type FarmDevtoolsConfig as f3, type FarmDevtoolsUserConfig as f4, resolveFarmDevtoolsConfig as f5, type FarmBuildActivityPosition as f6, type FarmDevIndicatorsConfig as f7, resolveFarmDevIndicatorsConfig as f8, generateFarmDevIndicatorsClientRuntime as f9, farmI18nClientBridgePlugin as fa, farmServerOnlyEntriesPlugin as fb, withFarmRequestTracing as fc, rewriteEarlySsrRelativeImports as fd, transformIsolatedClientBoundaryModule as fe, shouldEmitFarmClientRootHmr as ff, generateClientCachePersistenceCode as fg, resolveFarmClientCacheAdapterEntry as fh, type ClientCachePersistenceEntryCode as fi, FARM_NODE_RESPONSE_END_PENDING as fj, loadFarmDevModule as fk, FarmDevEnvironmentError as fl, type FarmDevModuleServer as fm, getFarmRedirectError as g, 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, type FarmUserConfig as z };
|
|
3176
|
+
export { type LayoutMetadataProps as $, type FarmAgentJsonLd as A, type FarmContextFactory as B, type MiddlewareProps as C, type BundleResultPayload as D, type FarmIntegration as E, type FarmRouteRuntimeConfig as F, type FarmConfig as G, farmPlugin as H, defineConfig as I, type FarmComponentType as J, type AppRoutePattern as K, type LayoutProps as L, type Metadata as M, type PageRouteParams as N, type NitroPreset as O, type ParsedRoute as P, type FarmMigrationCommand as Q, type RouteSegment as R, type FarmMigrationsConfig as S, type FarmMigrationsUserConfig as T, type ResolvedFarmMigrationsConfig as U, type FarmContextFactoryInput as V, type FarmIsolatedClientHydrationMode as W, type LoadingProps as X, type ErrorProps as Y, type PagePropsWithMiddleware as Z, type MetadataProps as _, type FarmPlugin as a, definePlugin as a$, type Page as a0, type Layout as a1, type Loading as a2, type ErrorBoundary as a3, type StaticPathPrimitive as a4, type StaticPathParams as a5, type StaticRouteParams as a6, type GenerateStaticParams as a7, type LayoutModule as a8, type MetadataJsonLd as a9, type ResolvedFarmDevIndicatorsConfig as aA, type ResolvedFarmAuthConfig as aB, type ResolvedFarmPerformanceConfig as aC, type ResolvedFarmSecurityConfig as aD, type APIRequestRuntime as aE, createFarmMetadataRouteResponse as aF, createFarmAgentRobots as aG, collectFarmLlmsTxtPages as aH, createFarmDefaultLlmsTxt as aI, createFarmLlmsMarkdownReader as aJ, renderFarmLlmsFullTxt as aK, createFarmLlmsFullRenderer as aL, manageFarmDocumentPreloads as aM, manageFarmHtmlPreloads as aN, manageFarmLinkHeaderPreloads as aO, reportFarmPreloadWarnings as aP, applyFarmCspNonceToResponse as aQ, resolveFarmSecurityConfig as aR, type ResolvedSchemaField as aS, type FarmSqlDialect as aT, type FarmSqlStatement as aU, type CollectedSchemaModel as aV, type FarmSchemaMigrationStep as aW, type OpenAPIConfig as aX, type FarmAgentUserConfig as aY, type FarmAgentCrawlers as aZ, type FarmCrawlerPolicy as a_, type ServerAction as aa, type BuildOptions as ab, type SSGPage as ac, type SSGCollectionResult as ad, type MetadataRobotsDirectives as ae, type MetadataRobots as af, type FarmLayerEntry as ag, type ResolvedFarmLayer as ah, type FarmSourceRoot as ai, type ResolveFarmLayersOptions as aj, type FarmLayerResolution as ak, resolveFarmLayers as al, getFarmSourceRoots as am, getFarmAppDirectories as an, getFarmLayerAliases as ao, createFarmConfigResolutionPlugin as ap, loadFarmConfigFile as aq, type ReadonlyMiddlewareStore as ar, type FarmMiddlewareConfig as as, type MiddlewareModule as at, type MiddlewareConfig$1 as au, type MiddlewareContext as av, type ResolvedFarmRouteRuntimeConfig as aw, type ApplicationMetadataRouteKind as ax, type ResolvedFarmAPIConfig as ay, type ResolvedFarmDevtoolsConfig as az, isFarmRedirectError as b, type FarmPluginRuntimeAfterEvent as b$, FarmRuntimeShutdownError as b0, PluginManager as b1, type FarmPluginDatabase as b2, type FarmPluginDefinition as b3, FarmPluginOptionsError as b4, type FarmPluginFactory as b5, type FarmPluginOptionsIssue as b6, type FarmPluginOptionsSchema as b7, type InferPluginOptionsInput as b8, type InferPluginOptionsOutput as b9, type FarmMCPAuthorization as bA, type FarmMCPEndpoint as bB, type FarmMCPServerFunction as bC, type FarmMCPToolDefinition as bD, type FarmMCPStandaloneTool as bE, type FarmMCPExecuteContext as bF, type FarmMCPTool as bG, type FarmMCPServer as bH, type FarmMCPAuthorizeContext as bI, type FarmMCPConfig as bJ, type FarmMCPOAuthConfig as bK, type FarmMCPUserConfig as bL, type ResolvedFarmMCPConfig as bM, type PluginRequestContext as bN, type FarmPluginIntegrationContext as bO, type FarmPluginLifecycle as bP, type FarmRequestPluginContext as bQ, type FarmRequestStore as bR, type FarmPluginRuntimeKind as bS, type FarmPluginRouteRuntimePayload as bT, type FarmPluginSetupContext as bU, type FarmPluginStateContext as bV, type FarmPluginRuntimeBaseEvent as bW, type FarmPluginRuntimeContextEvent as bX, type FarmPluginRuntimeEndpoint as bY, type FarmPluginRuntimeEndpointEvent as bZ, type FarmPluginRuntimeBeforeEvent as b_, resolveConfig as ba, loadConfig as bb, resolveDeployConfig as bc, resolveMigrationsConfig as bd, resolveDeployOutputPath as be, normalizeDeployTarget as bf, getDeployTargetForPreset as bg, getPresetForDeployTarget as bh, type FarmLayerConfig as bi, type FarmPerformanceConfig as bj, type FarmPreloadMode as bk, type FarmPreloadUserConfig as bl, type ResolvedFarmPreloadConfig as bm, type FarmCspConfig as bn, type FarmCspDirectives as bo, type FarmCspDirectiveValue as bp, type FarmCspOptions as bq, type FarmSecurityConfig as br, type ResolvedFarmCspConfig as bs, MetadataRoute as bt, type MetadataRouteContext as bu, type FarmAuthConfig as bv, type FarmAuthDatabaseConfig as bw, type FarmAuthEmailAndPasswordConfig as bx, type FarmAuthSessionConfig as by, type FarmAuthUserConfig as bz, type FarmRedirectSignal as c, type FarmIntegrationRouteInputSchemas as c$, type FarmPluginRuntimeErrorEvent as c0, type FarmPluginRuntimeStartEvent as c1, type FarmPluginRuntimeCloseEvent as c2, type FarmPluginRuntimeHooks as c3, type FarmPluginRuntimeRequestOptions as c4, type FarmPluginRuntimeRequestHandler as c5, type FarmPluginRuntimeSession as c6, type FarmPluginDiscoveredRoute as c7, type FarmPluginRouterHooks as c8, type FarmPluginRenderHooks as c9, describeSchemaReference as cA, collectSchemaModels as cB, generateSqlStatements as cC, renderSqlSchemaFile as cD, getSqlColumnType as cE, getSqlDefaultExpression as cF, isNullableField as cG, quoteSqlIdentifier as cH, toSnakeCase as cI, toPascalCase as cJ, toCamelCase as cK, escapeSqlString as cL, resolveSchemaModels as cM, type ResolvedSchemaModel as cN, type FarmIntegrationCategory as cO, type FarmIntegrationSlot as cP, type FarmIntegrationRouteParamValue as cQ, type FarmIntegrationRouteParams as cR, type FarmIntegrationRouteMethod as cS, type FarmIntegrationRouteInputSource as cT, type FarmIntegrationValidationPathSegment as cU, type FarmIntegrationRouteInput as cV, type FarmIntegrationValidationIssue as cW, type FarmIntegrationValidationErrorLike as cX, type FarmIntegrationValidationResult as cY, type FarmIntegrationStandardValidationResult as cZ, type FarmIntegrationInputSchema as c_, type FarmPluginBuildHooks as ca, type FarmPluginDevHooks as cb, type FarmPluginClientConfig as cc, type RouteDiscoveredPayload as cd, type RoutesGeneratedPayload as ce, type MiddlewareDiscoveredPayload as cf, type APIRouteDiscoveredPayload as cg, type RouteMatchPayload as ch, type RouteMatchResultPayload as ci, type RenderLifecyclePayload as cj, type APIHandlerLifecyclePayload as ck, type ErrorLifecyclePayload as cl, type HMRUpdatePayload as cm, type BundleLifecyclePayload as cn, type NitroBuildLifecyclePayload as co, type ShutdownPayload as cp, type ResolvedFarmConfig as cq, type RedirectConfig as cr, type HeaderConfig as cs, type RewriteConfig as ct, type ImageConfig as cu, type I18nConfig as cv, type MiddlewareConfig as cw, type FarmDeployConfig as cx, type ResolvedFarmDeployConfig as cy, type FarmDeployTarget as cz, type FarmRedirectStatus as d, getRegisteredIntegrationSchemas as d$, type FarmIntegrationRequestContextStore as d0, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as d1, FARM_INTEGRATION_SET_COOKIES_KEY as d2, forwardIntegrationSetCookies as d3, type FarmIntegrationRouteDb as d4, type FarmIntegrationRouteStorageArgs as d5, type FarmIntegrationRouteArgs as d6, type FarmIntegrationConfigContext as d7, type FarmIntegrationConfigDefinition as d8, type FarmIntegrationConfigInput as d9, type FarmIntegrationLogPhase as dA, type FarmIntegrationLogEvent as dB, type FarmIntegrationLogger as dC, type FarmIntegrationPluginOwner as dD, type FarmIntegrationContributedPlugin as dE, type FarmIntegrationsUserConfig as dF, getFarmIntegrationPluginServerRuntime as dG, getFarmIntegrationPluginOwner as dH, type FarmIntegrationRouteFactory as dI, type FarmIntegrationRoutesFactoryContext as dJ, type FarmIntegrationRoutesFactory as dK, type FarmIntegrationEndpointValue as dL, type FarmIntegrationEndpoints as dM, type FarmIntegrationEndpointsFactoryContext as dN, type FarmIntegrationEndpointsFactory as dO, createIntegrationRoute as dP, integrationRoute as dQ, type DefinedIntegration as dR, defineIntegration as dS, isFarmIntegration as dT, resolveIntegrationPlugins as dU, getIntegrationProviders as dV, isFarmIntegrationProviderComponentReference as dW, getIntegrationDocumentNavigationMatchers as dX, getIntegrationSchemas as dY, getRegisteredIntegrationRuntime as dZ, getRegisteredIntegrations as d_, type FarmIntegrationLifecycleLogLevel as da, type FarmIntegrationLifecycleLogger as db, type FarmIntegrationLifecycleContext as dc, type FarmIntegrationLifecycleHook as dd, type FarmIntegrationData as de, type FarmIntegrationHandlerContext as df, type FarmIntegrationRouteHookContext as dg, type FarmIntegrationRouteHook as dh, type FarmIntegrationRoute as di, type FarmTypedIntegrationRoute as dj, type FarmIntegrationRouteMiddleware as dk, type FarmIntegrationMiddleware as dl, type FarmIntegrationProviderProps as dm, type FarmIntegrationProviderComponentReference as dn, type FarmIntegrationProvider as dp, type FarmIntegrationDocumentNavigation as dq, type FarmIntegrationSchemaFieldType as dr, type FarmIntegrationSchemaReference as ds, type FarmIntegrationSchemaField as dt, type FarmIntegrationSchemaConstraint as du, type FarmIntegrationSchemaModel as dv, type FarmIntegrationSchemaModelExtension as dw, type FarmIntegrationSchemaModelOverride as dx, type FarmIntegrationSchema as dy, defineIntegrationSchema as dz, type FarmRequest as e, createFarmRouteRuntimeKey as e$, matchIntegrationRoute as e0, matchRegisteredIntegrationRoute as e1, getRegisteredIntegrationAPIManifest as e2, dispatchIntegrationRequest as e3, dispatchIntegrationRequests as e4, describeIntegrationOriginRejection as e5, resolveIntegrationAllowedOrigins as e6, validateIntegrationRequestOrigin as e7, type IntegrationOriginPolicy as e8, type IntegrationOriginRejection as e9, type CookieJar as eA, type CookieOptions as eB, type RateLimitConfig as eC, type RateLimitIncrementResult as eD, type RateLimitStorage as eE, type RateLimitStatus as eF, type MemoryRateLimitStorageOptions as eG, type NextFunction as eH, type MiddlewareResult as eI, type FarmRouteRuleRenderMode as eJ, type FarmRouteRuleRedirect as eK, type FarmRouteRuleCors as eL, type FarmRouteRule as eM, type FarmRouteRules as eN, normalizeRouteRules as eO, routeRulesToRedirects as eP, routeRulesToHeaders as eQ, routeRulesToNitroRouteRules as eR, type FarmRouteRuntimeEntryKind as eS, type FarmRouteRenderingMode as eT, type FarmRouteRuntimeManifestEntry as eU, type FarmRouteRuntimeManifest as eV, normalizeFarmRouteRuntimeConfig as eW, mergeFarmRouteRuntimeConfigs as eX, resolveFarmRouteRuntimeConfig as eY, hasFarmRouteRuntimeControls as eZ, getFarmRouteRuntimeConfig as e_, type IntegrationOriginResult as ea, type FarmIntegrationOrmSchema as eb, type FarmIntegrationOrmClient as ec, type InferFarmIntegrationOrmField as ed, type InferFarmIntegrationOrmFields as ee, type InferFarmIntegrationOrmSchema as ef, type InferFarmIntegrationOrmClient as eg, type CreateIntegrationOrmOptions as eh, createIntegrationOrm as ei, resolveIntegrationOrmRuntimeClient as ej, farmIntegrationSchemaToOrmSchema as ek, type IntegrationOrmModelNames as el, DEFAULT_FARM_API_BASE_PATH as em, type FarmAPIConfigResolverContext as en, type FarmAPIConfigValue as eo, type FarmAPIConfig as ep, resolveFarmAPIConfig as eq, normalizeFarmAPIConfig as er, normalizeFarmAPIBasePath as es, getFarmAPIBaseURL as et, resolveFarmAPIRequestURL as eu, type MiddlewareFunction as ev, type RequestMiddleware as ew, type RequestMiddlewareContext as ex, type MiddlewareStore as ey, type MiddlewareChain as ez, type FarmResponse as f, resolveFarmRouteRuleRuntimeConfig as f0, farmRouteRuleMatches as f1, DEFAULT_FARM_DEVTOOLS_SHORTCUT as f2, FARM_DEVTOOLS_PATH as f3, FARM_DEVTOOLS_LAUNCH_PARAM as f4, type FarmDevtoolsConfig as f5, type FarmDevtoolsUserConfig as f6, resolveFarmDevtoolsConfig as f7, type FarmBuildActivityPosition as f8, type FarmDevIndicatorsConfig as f9, resolveFarmDevIndicatorsConfig as fa, generateFarmDevIndicatorsClientRuntime as fb, farmI18nClientBridgePlugin as fc, farmServerOnlyEntriesPlugin as fd, withFarmRequestTracing as fe, rewriteEarlySsrRelativeImports as ff, transformIsolatedClientBoundaryModule as fg, shouldEmitFarmClientRootHmr as fh, generateClientCachePersistenceCode as fi, resolveFarmClientCacheAdapterEntry as fj, type ClientCachePersistenceEntryCode as fk, FARM_NODE_RESPONSE_END_PENDING as fl, loadFarmDevModule as fm, FarmDevEnvironmentError as fn, type FarmDevModuleServer as fo, getFarmRedirectError as g, 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, type FarmUserConfig as z };
|
|
@@ -76,8 +76,9 @@ interface FarmLlmsTxtUserConfig {
|
|
|
76
76
|
*/
|
|
77
77
|
full?: boolean;
|
|
78
78
|
/**
|
|
79
|
-
* Seconds a CDN may cache the generated files
|
|
80
|
-
*
|
|
79
|
+
* Seconds a CDN may cache the generated files, and the production server may
|
|
80
|
+
* reuse an llms-full.txt render, which renders every listed page. Defaults to
|
|
81
|
+
* no caching; concurrent llms-full.txt requests still share one render.
|
|
81
82
|
*/
|
|
82
83
|
revalidate?: number;
|
|
83
84
|
}
|
|
@@ -124,6 +125,18 @@ declare function renderFarmLlmsFullTxt(value: unknown, options: {
|
|
|
124
125
|
readMarkdown: (url: string) => Promise<string | null>;
|
|
125
126
|
concurrency?: number;
|
|
126
127
|
}): Promise<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Shares llms-full.txt renders, which read every listed page. Requests for the
|
|
130
|
+
* same origin while a render runs, or within `revalidate` seconds after it, get
|
|
131
|
+
* that result; renders run one at a time, so a burst of requests, even with
|
|
132
|
+
* varied Host headers, cannot multiply page renders. The content is the same for
|
|
133
|
+
* every caller: pages are read with fresh requests that carry no credentials.
|
|
134
|
+
*/
|
|
135
|
+
declare function createFarmLlmsFullRenderer(options?: {
|
|
136
|
+
revalidate?: number;
|
|
137
|
+
now?: () => number;
|
|
138
|
+
maxEntries?: number;
|
|
139
|
+
}): (origin: string, render: () => Promise<string>) => Promise<string>;
|
|
127
140
|
|
|
128
141
|
type ApplicationMetadataRouteKind = "sitemap" | "robots" | "manifest" | "llms" | "llms-full";
|
|
129
142
|
declare namespace MetadataRoute {
|
|
@@ -323,12 +336,22 @@ interface FarmAgentUserConfig {
|
|
|
323
336
|
* @default false
|
|
324
337
|
*/
|
|
325
338
|
crawlers?: boolean | FarmAgentCrawlers;
|
|
339
|
+
/**
|
|
340
|
+
* Serve `/.well-known/api-catalog` (RFC 9727): a Linkset listing the app's
|
|
341
|
+
* OpenAPI description and reference (when `openapi` is enabled) and its MCP
|
|
342
|
+
* endpoint (when the top-level `mcp` is enabled), so agents can find them
|
|
343
|
+
* from the origin alone.
|
|
344
|
+
*
|
|
345
|
+
* @default false
|
|
346
|
+
*/
|
|
347
|
+
apiCatalog?: boolean;
|
|
326
348
|
}
|
|
327
349
|
interface ResolvedFarmAgentConfig {
|
|
328
350
|
jsonLd: FarmAgentJsonLd | false;
|
|
329
351
|
noindexPreviews: boolean;
|
|
330
352
|
llmsTxt: ResolvedFarmLlmsTxtConfig;
|
|
331
353
|
crawlers: ResolvedFarmAgentCrawlers;
|
|
354
|
+
apiCatalog: boolean;
|
|
332
355
|
}
|
|
333
356
|
|
|
334
357
|
/**
|
|
@@ -1178,6 +1201,21 @@ interface FarmMCPConfig {
|
|
|
1178
1201
|
authorize?: (context: FarmMCPAuthorizeContext) => FarmMCPAuthorization | false | Promise<FarmMCPAuthorization | false>;
|
|
1179
1202
|
/** Deliberate escape hatch for public servers. Authentication is required by default. */
|
|
1180
1203
|
allowUnauthenticated?: boolean;
|
|
1204
|
+
/**
|
|
1205
|
+
* OAuth discovery for MCP clients. When set, a rejected request's 401 points at
|
|
1206
|
+
* RFC 9728 Protected Resource Metadata naming these authorization servers, which
|
|
1207
|
+
* Farm serves at `/.well-known/oauth-protected-resource/<endpoint path>`.
|
|
1208
|
+
* Validating tokens stays in `authorize`.
|
|
1209
|
+
*/
|
|
1210
|
+
oauth?: FarmMCPOAuthConfig;
|
|
1211
|
+
}
|
|
1212
|
+
interface FarmMCPOAuthConfig {
|
|
1213
|
+
/** Issuer URLs of the OAuth authorization servers that issue tokens for this endpoint. */
|
|
1214
|
+
authorizationServers: readonly string[];
|
|
1215
|
+
/** Scopes clients may request, advertised as `scopes_supported` and in the 401 challenge. */
|
|
1216
|
+
scopes?: readonly string[];
|
|
1217
|
+
/** Human-readable name for consent screens. @default the MCP server name */
|
|
1218
|
+
resourceName?: string;
|
|
1181
1219
|
}
|
|
1182
1220
|
type FarmMCPUserConfig = FarmMCPConfig | false;
|
|
1183
1221
|
interface ResolvedFarmMCPConfig extends FarmMCPConfig {
|
|
@@ -3135,4 +3173,4 @@ interface MetadataRobots extends MetadataRobotsDirectives {
|
|
|
3135
3173
|
googleBot?: string | MetadataRobotsDirectives;
|
|
3136
3174
|
}
|
|
3137
3175
|
|
|
3138
|
-
export { type LayoutMetadataProps as $, type FarmAgentJsonLd as A, type FarmContextFactory as B, type MiddlewareProps as C, type BundleResultPayload as D, type FarmIntegration as E, type FarmRouteRuntimeConfig as F, type FarmConfig as G, farmPlugin as H, defineConfig as I, type FarmComponentType as J, type AppRoutePattern as K, type LayoutProps as L, type Metadata as M, type PageRouteParams as N, type NitroPreset as O, type ParsedRoute as P, type FarmMigrationCommand as Q, type RouteSegment as R, type FarmMigrationsConfig as S, type FarmMigrationsUserConfig as T, type ResolvedFarmMigrationsConfig as U, type FarmContextFactoryInput as V, type FarmIsolatedClientHydrationMode as W, type LoadingProps as X, type ErrorProps as Y, type PagePropsWithMiddleware as Z, type MetadataProps as _, type FarmPlugin as a, FarmRuntimeShutdownError as a$, type Page as a0, type Layout as a1, type Loading as a2, type ErrorBoundary as a3, type StaticPathPrimitive as a4, type StaticPathParams as a5, type StaticRouteParams as a6, type GenerateStaticParams as a7, type LayoutModule as a8, type MetadataJsonLd as a9, type ResolvedFarmDevIndicatorsConfig as aA, type ResolvedFarmAuthConfig as aB, type ResolvedFarmPerformanceConfig as aC, type ResolvedFarmSecurityConfig as aD, type APIRequestRuntime as aE, createFarmMetadataRouteResponse as aF, createFarmAgentRobots as aG, collectFarmLlmsTxtPages as aH, createFarmDefaultLlmsTxt as aI, createFarmLlmsMarkdownReader as aJ, renderFarmLlmsFullTxt as aK, manageFarmDocumentPreloads as aL, manageFarmHtmlPreloads as aM, manageFarmLinkHeaderPreloads as aN, reportFarmPreloadWarnings as aO, applyFarmCspNonceToResponse as aP, resolveFarmSecurityConfig as aQ, type ResolvedSchemaField as aR, type FarmSqlDialect as aS, type FarmSqlStatement as aT, type CollectedSchemaModel as aU, type FarmSchemaMigrationStep as aV, type OpenAPIConfig as aW, type FarmAgentUserConfig as aX, type FarmAgentCrawlers as aY, type FarmCrawlerPolicy as aZ, definePlugin as a_, type ServerAction as aa, type BuildOptions as ab, type SSGPage as ac, type SSGCollectionResult as ad, type MetadataRobotsDirectives as ae, type MetadataRobots as af, type FarmLayerEntry as ag, type ResolvedFarmLayer as ah, type FarmSourceRoot as ai, type ResolveFarmLayersOptions as aj, type FarmLayerResolution as ak, resolveFarmLayers as al, getFarmSourceRoots as am, getFarmAppDirectories as an, getFarmLayerAliases as ao, createFarmConfigResolutionPlugin as ap, loadFarmConfigFile as aq, type ReadonlyMiddlewareStore as ar, type FarmMiddlewareConfig as as, type MiddlewareModule as at, type MiddlewareConfig$1 as au, type MiddlewareContext as av, type ResolvedFarmRouteRuntimeConfig as aw, type ApplicationMetadataRouteKind as ax, type ResolvedFarmAPIConfig as ay, type ResolvedFarmDevtoolsConfig as az, isFarmRedirectError as b, type FarmPluginRuntimeStartEvent as b$, PluginManager as b0, type FarmPluginDatabase as b1, type FarmPluginDefinition as b2, FarmPluginOptionsError as b3, type FarmPluginFactory as b4, type FarmPluginOptionsIssue as b5, type FarmPluginOptionsSchema as b6, type InferPluginOptionsInput as b7, type InferPluginOptionsOutput as b8, resolveConfig as b9, type FarmMCPEndpoint as bA, type FarmMCPServerFunction as bB, type FarmMCPToolDefinition as bC, type FarmMCPStandaloneTool as bD, type FarmMCPExecuteContext as bE, type FarmMCPTool as bF, type FarmMCPServer as bG, type FarmMCPAuthorizeContext as bH, type FarmMCPConfig as bI, type FarmMCPUserConfig as bJ, type ResolvedFarmMCPConfig as bK, type PluginRequestContext as bL, type FarmPluginIntegrationContext as bM, type FarmPluginLifecycle as bN, type FarmRequestPluginContext as bO, type FarmRequestStore as bP, type FarmPluginRuntimeKind as bQ, type FarmPluginRouteRuntimePayload as bR, type FarmPluginSetupContext as bS, type FarmPluginStateContext as bT, type FarmPluginRuntimeBaseEvent as bU, type FarmPluginRuntimeContextEvent as bV, type FarmPluginRuntimeEndpoint as bW, type FarmPluginRuntimeEndpointEvent as bX, type FarmPluginRuntimeBeforeEvent as bY, type FarmPluginRuntimeAfterEvent as bZ, type FarmPluginRuntimeErrorEvent as b_, loadConfig as ba, resolveDeployConfig as bb, resolveMigrationsConfig as bc, resolveDeployOutputPath as bd, normalizeDeployTarget as be, getDeployTargetForPreset as bf, getPresetForDeployTarget as bg, type FarmLayerConfig as bh, type FarmPerformanceConfig as bi, type FarmPreloadMode as bj, type FarmPreloadUserConfig as bk, type ResolvedFarmPreloadConfig as bl, type FarmCspConfig as bm, type FarmCspDirectives as bn, type FarmCspDirectiveValue as bo, type FarmCspOptions as bp, type FarmSecurityConfig as bq, type ResolvedFarmCspConfig as br, MetadataRoute as bs, type MetadataRouteContext as bt, type FarmAuthConfig as bu, type FarmAuthDatabaseConfig as bv, type FarmAuthEmailAndPasswordConfig as bw, type FarmAuthSessionConfig as bx, type FarmAuthUserConfig as by, type FarmMCPAuthorization as bz, type FarmRedirectSignal as c, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as c$, type FarmPluginRuntimeCloseEvent as c0, type FarmPluginRuntimeHooks as c1, type FarmPluginRuntimeRequestOptions as c2, type FarmPluginRuntimeRequestHandler as c3, type FarmPluginRuntimeSession as c4, type FarmPluginDiscoveredRoute as c5, type FarmPluginRouterHooks as c6, type FarmPluginRenderHooks as c7, type FarmPluginBuildHooks as c8, type FarmPluginDevHooks as c9, generateSqlStatements as cA, renderSqlSchemaFile as cB, getSqlColumnType as cC, getSqlDefaultExpression as cD, isNullableField as cE, quoteSqlIdentifier as cF, toSnakeCase as cG, toPascalCase as cH, toCamelCase as cI, escapeSqlString as cJ, resolveSchemaModels as cK, type ResolvedSchemaModel as cL, type FarmIntegrationCategory as cM, type FarmIntegrationSlot as cN, type FarmIntegrationRouteParamValue as cO, type FarmIntegrationRouteParams as cP, type FarmIntegrationRouteMethod as cQ, type FarmIntegrationRouteInputSource as cR, type FarmIntegrationValidationPathSegment as cS, type FarmIntegrationRouteInput as cT, type FarmIntegrationValidationIssue as cU, type FarmIntegrationValidationErrorLike as cV, type FarmIntegrationValidationResult as cW, type FarmIntegrationStandardValidationResult as cX, type FarmIntegrationInputSchema as cY, type FarmIntegrationRouteInputSchemas as cZ, type FarmIntegrationRequestContextStore as c_, type FarmPluginClientConfig as ca, type RouteDiscoveredPayload as cb, type RoutesGeneratedPayload as cc, type MiddlewareDiscoveredPayload as cd, type APIRouteDiscoveredPayload as ce, type RouteMatchPayload as cf, type RouteMatchResultPayload as cg, type RenderLifecyclePayload as ch, type APIHandlerLifecyclePayload as ci, type ErrorLifecyclePayload as cj, type HMRUpdatePayload as ck, type BundleLifecyclePayload as cl, type NitroBuildLifecyclePayload as cm, type ShutdownPayload as cn, type ResolvedFarmConfig as co, type RedirectConfig as cp, type HeaderConfig as cq, type RewriteConfig as cr, type ImageConfig as cs, type I18nConfig as ct, type MiddlewareConfig as cu, type FarmDeployConfig as cv, type ResolvedFarmDeployConfig as cw, type FarmDeployTarget as cx, describeSchemaReference as cy, collectSchemaModels as cz, type FarmRedirectStatus as d, matchRegisteredIntegrationRoute as d$, FARM_INTEGRATION_SET_COOKIES_KEY as d0, forwardIntegrationSetCookies as d1, type FarmIntegrationRouteDb as d2, type FarmIntegrationRouteStorageArgs as d3, type FarmIntegrationRouteArgs as d4, type FarmIntegrationConfigContext as d5, type FarmIntegrationConfigDefinition as d6, type FarmIntegrationConfigInput as d7, type FarmIntegrationLifecycleLogLevel as d8, type FarmIntegrationLifecycleLogger as d9, type FarmIntegrationLogger as dA, type FarmIntegrationPluginOwner as dB, type FarmIntegrationContributedPlugin as dC, type FarmIntegrationsUserConfig as dD, getFarmIntegrationPluginServerRuntime as dE, getFarmIntegrationPluginOwner as dF, type FarmIntegrationRouteFactory as dG, type FarmIntegrationRoutesFactoryContext as dH, type FarmIntegrationRoutesFactory as dI, type FarmIntegrationEndpointValue as dJ, type FarmIntegrationEndpoints as dK, type FarmIntegrationEndpointsFactoryContext as dL, type FarmIntegrationEndpointsFactory as dM, createIntegrationRoute as dN, integrationRoute as dO, type DefinedIntegration as dP, defineIntegration as dQ, isFarmIntegration as dR, resolveIntegrationPlugins as dS, getIntegrationProviders as dT, isFarmIntegrationProviderComponentReference as dU, getIntegrationDocumentNavigationMatchers as dV, getIntegrationSchemas as dW, getRegisteredIntegrationRuntime as dX, getRegisteredIntegrations as dY, getRegisteredIntegrationSchemas as dZ, matchIntegrationRoute as d_, type FarmIntegrationLifecycleContext as da, type FarmIntegrationLifecycleHook as db, type FarmIntegrationData as dc, type FarmIntegrationHandlerContext as dd, type FarmIntegrationRouteHookContext as de, type FarmIntegrationRouteHook as df, type FarmIntegrationRoute as dg, type FarmTypedIntegrationRoute as dh, type FarmIntegrationRouteMiddleware as di, type FarmIntegrationMiddleware as dj, type FarmIntegrationProviderProps as dk, type FarmIntegrationProviderComponentReference as dl, type FarmIntegrationProvider as dm, type FarmIntegrationDocumentNavigation as dn, type FarmIntegrationSchemaFieldType as dp, type FarmIntegrationSchemaReference as dq, type FarmIntegrationSchemaField as dr, type FarmIntegrationSchemaConstraint as ds, type FarmIntegrationSchemaModel as dt, type FarmIntegrationSchemaModelExtension as du, type FarmIntegrationSchemaModelOverride as dv, type FarmIntegrationSchema as dw, defineIntegrationSchema as dx, type FarmIntegrationLogPhase as dy, type FarmIntegrationLogEvent as dz, type FarmRequest as e, farmRouteRuleMatches as e$, getRegisteredIntegrationAPIManifest as e0, dispatchIntegrationRequest as e1, dispatchIntegrationRequests as e2, describeIntegrationOriginRejection as e3, resolveIntegrationAllowedOrigins as e4, validateIntegrationRequestOrigin as e5, type IntegrationOriginPolicy as e6, type IntegrationOriginRejection as e7, type IntegrationOriginResult as e8, type FarmIntegrationOrmSchema as e9, type RateLimitConfig as eA, type RateLimitIncrementResult as eB, type RateLimitStorage as eC, type RateLimitStatus as eD, type MemoryRateLimitStorageOptions as eE, type NextFunction as eF, type MiddlewareResult as eG, type FarmRouteRuleRenderMode as eH, type FarmRouteRuleRedirect as eI, type FarmRouteRuleCors as eJ, type FarmRouteRule as eK, type FarmRouteRules as eL, normalizeRouteRules as eM, routeRulesToRedirects as eN, routeRulesToHeaders as eO, routeRulesToNitroRouteRules as eP, type FarmRouteRuntimeEntryKind as eQ, type FarmRouteRenderingMode as eR, type FarmRouteRuntimeManifestEntry as eS, type FarmRouteRuntimeManifest as eT, normalizeFarmRouteRuntimeConfig as eU, mergeFarmRouteRuntimeConfigs as eV, resolveFarmRouteRuntimeConfig as eW, hasFarmRouteRuntimeControls as eX, getFarmRouteRuntimeConfig as eY, createFarmRouteRuntimeKey as eZ, resolveFarmRouteRuleRuntimeConfig as e_, type FarmIntegrationOrmClient as ea, type InferFarmIntegrationOrmField as eb, type InferFarmIntegrationOrmFields as ec, type InferFarmIntegrationOrmSchema as ed, type InferFarmIntegrationOrmClient as ee, type CreateIntegrationOrmOptions as ef, createIntegrationOrm as eg, resolveIntegrationOrmRuntimeClient as eh, farmIntegrationSchemaToOrmSchema as ei, type IntegrationOrmModelNames as ej, DEFAULT_FARM_API_BASE_PATH as ek, type FarmAPIConfigResolverContext as el, type FarmAPIConfigValue as em, type FarmAPIConfig as en, resolveFarmAPIConfig as eo, normalizeFarmAPIConfig as ep, normalizeFarmAPIBasePath as eq, getFarmAPIBaseURL as er, resolveFarmAPIRequestURL as es, type MiddlewareFunction as et, type RequestMiddleware as eu, type RequestMiddlewareContext as ev, type MiddlewareStore as ew, type MiddlewareChain as ex, type CookieJar as ey, type CookieOptions as ez, type FarmResponse as f, DEFAULT_FARM_DEVTOOLS_SHORTCUT as f0, FARM_DEVTOOLS_PATH as f1, FARM_DEVTOOLS_LAUNCH_PARAM as f2, type FarmDevtoolsConfig as f3, type FarmDevtoolsUserConfig as f4, resolveFarmDevtoolsConfig as f5, type FarmBuildActivityPosition as f6, type FarmDevIndicatorsConfig as f7, resolveFarmDevIndicatorsConfig as f8, generateFarmDevIndicatorsClientRuntime as f9, farmI18nClientBridgePlugin as fa, farmServerOnlyEntriesPlugin as fb, withFarmRequestTracing as fc, rewriteEarlySsrRelativeImports as fd, transformIsolatedClientBoundaryModule as fe, shouldEmitFarmClientRootHmr as ff, generateClientCachePersistenceCode as fg, resolveFarmClientCacheAdapterEntry as fh, type ClientCachePersistenceEntryCode as fi, FARM_NODE_RESPONSE_END_PENDING as fj, loadFarmDevModule as fk, FarmDevEnvironmentError as fl, type FarmDevModuleServer as fm, getFarmRedirectError as g, 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, type FarmUserConfig as z };
|
|
3176
|
+
export { type LayoutMetadataProps as $, type FarmAgentJsonLd as A, type FarmContextFactory as B, type MiddlewareProps as C, type BundleResultPayload as D, type FarmIntegration as E, type FarmRouteRuntimeConfig as F, type FarmConfig as G, farmPlugin as H, defineConfig as I, type FarmComponentType as J, type AppRoutePattern as K, type LayoutProps as L, type Metadata as M, type PageRouteParams as N, type NitroPreset as O, type ParsedRoute as P, type FarmMigrationCommand as Q, type RouteSegment as R, type FarmMigrationsConfig as S, type FarmMigrationsUserConfig as T, type ResolvedFarmMigrationsConfig as U, type FarmContextFactoryInput as V, type FarmIsolatedClientHydrationMode as W, type LoadingProps as X, type ErrorProps as Y, type PagePropsWithMiddleware as Z, type MetadataProps as _, type FarmPlugin as a, definePlugin as a$, type Page as a0, type Layout as a1, type Loading as a2, type ErrorBoundary as a3, type StaticPathPrimitive as a4, type StaticPathParams as a5, type StaticRouteParams as a6, type GenerateStaticParams as a7, type LayoutModule as a8, type MetadataJsonLd as a9, type ResolvedFarmDevIndicatorsConfig as aA, type ResolvedFarmAuthConfig as aB, type ResolvedFarmPerformanceConfig as aC, type ResolvedFarmSecurityConfig as aD, type APIRequestRuntime as aE, createFarmMetadataRouteResponse as aF, createFarmAgentRobots as aG, collectFarmLlmsTxtPages as aH, createFarmDefaultLlmsTxt as aI, createFarmLlmsMarkdownReader as aJ, renderFarmLlmsFullTxt as aK, createFarmLlmsFullRenderer as aL, manageFarmDocumentPreloads as aM, manageFarmHtmlPreloads as aN, manageFarmLinkHeaderPreloads as aO, reportFarmPreloadWarnings as aP, applyFarmCspNonceToResponse as aQ, resolveFarmSecurityConfig as aR, type ResolvedSchemaField as aS, type FarmSqlDialect as aT, type FarmSqlStatement as aU, type CollectedSchemaModel as aV, type FarmSchemaMigrationStep as aW, type OpenAPIConfig as aX, type FarmAgentUserConfig as aY, type FarmAgentCrawlers as aZ, type FarmCrawlerPolicy as a_, type ServerAction as aa, type BuildOptions as ab, type SSGPage as ac, type SSGCollectionResult as ad, type MetadataRobotsDirectives as ae, type MetadataRobots as af, type FarmLayerEntry as ag, type ResolvedFarmLayer as ah, type FarmSourceRoot as ai, type ResolveFarmLayersOptions as aj, type FarmLayerResolution as ak, resolveFarmLayers as al, getFarmSourceRoots as am, getFarmAppDirectories as an, getFarmLayerAliases as ao, createFarmConfigResolutionPlugin as ap, loadFarmConfigFile as aq, type ReadonlyMiddlewareStore as ar, type FarmMiddlewareConfig as as, type MiddlewareModule as at, type MiddlewareConfig$1 as au, type MiddlewareContext as av, type ResolvedFarmRouteRuntimeConfig as aw, type ApplicationMetadataRouteKind as ax, type ResolvedFarmAPIConfig as ay, type ResolvedFarmDevtoolsConfig as az, isFarmRedirectError as b, type FarmPluginRuntimeAfterEvent as b$, FarmRuntimeShutdownError as b0, PluginManager as b1, type FarmPluginDatabase as b2, type FarmPluginDefinition as b3, FarmPluginOptionsError as b4, type FarmPluginFactory as b5, type FarmPluginOptionsIssue as b6, type FarmPluginOptionsSchema as b7, type InferPluginOptionsInput as b8, type InferPluginOptionsOutput as b9, type FarmMCPAuthorization as bA, type FarmMCPEndpoint as bB, type FarmMCPServerFunction as bC, type FarmMCPToolDefinition as bD, type FarmMCPStandaloneTool as bE, type FarmMCPExecuteContext as bF, type FarmMCPTool as bG, type FarmMCPServer as bH, type FarmMCPAuthorizeContext as bI, type FarmMCPConfig as bJ, type FarmMCPOAuthConfig as bK, type FarmMCPUserConfig as bL, type ResolvedFarmMCPConfig as bM, type PluginRequestContext as bN, type FarmPluginIntegrationContext as bO, type FarmPluginLifecycle as bP, type FarmRequestPluginContext as bQ, type FarmRequestStore as bR, type FarmPluginRuntimeKind as bS, type FarmPluginRouteRuntimePayload as bT, type FarmPluginSetupContext as bU, type FarmPluginStateContext as bV, type FarmPluginRuntimeBaseEvent as bW, type FarmPluginRuntimeContextEvent as bX, type FarmPluginRuntimeEndpoint as bY, type FarmPluginRuntimeEndpointEvent as bZ, type FarmPluginRuntimeBeforeEvent as b_, resolveConfig as ba, loadConfig as bb, resolveDeployConfig as bc, resolveMigrationsConfig as bd, resolveDeployOutputPath as be, normalizeDeployTarget as bf, getDeployTargetForPreset as bg, getPresetForDeployTarget as bh, type FarmLayerConfig as bi, type FarmPerformanceConfig as bj, type FarmPreloadMode as bk, type FarmPreloadUserConfig as bl, type ResolvedFarmPreloadConfig as bm, type FarmCspConfig as bn, type FarmCspDirectives as bo, type FarmCspDirectiveValue as bp, type FarmCspOptions as bq, type FarmSecurityConfig as br, type ResolvedFarmCspConfig as bs, MetadataRoute as bt, type MetadataRouteContext as bu, type FarmAuthConfig as bv, type FarmAuthDatabaseConfig as bw, type FarmAuthEmailAndPasswordConfig as bx, type FarmAuthSessionConfig as by, type FarmAuthUserConfig as bz, type FarmRedirectSignal as c, type FarmIntegrationRouteInputSchemas as c$, type FarmPluginRuntimeErrorEvent as c0, type FarmPluginRuntimeStartEvent as c1, type FarmPluginRuntimeCloseEvent as c2, type FarmPluginRuntimeHooks as c3, type FarmPluginRuntimeRequestOptions as c4, type FarmPluginRuntimeRequestHandler as c5, type FarmPluginRuntimeSession as c6, type FarmPluginDiscoveredRoute as c7, type FarmPluginRouterHooks as c8, type FarmPluginRenderHooks as c9, describeSchemaReference as cA, collectSchemaModels as cB, generateSqlStatements as cC, renderSqlSchemaFile as cD, getSqlColumnType as cE, getSqlDefaultExpression as cF, isNullableField as cG, quoteSqlIdentifier as cH, toSnakeCase as cI, toPascalCase as cJ, toCamelCase as cK, escapeSqlString as cL, resolveSchemaModels as cM, type ResolvedSchemaModel as cN, type FarmIntegrationCategory as cO, type FarmIntegrationSlot as cP, type FarmIntegrationRouteParamValue as cQ, type FarmIntegrationRouteParams as cR, type FarmIntegrationRouteMethod as cS, type FarmIntegrationRouteInputSource as cT, type FarmIntegrationValidationPathSegment as cU, type FarmIntegrationRouteInput as cV, type FarmIntegrationValidationIssue as cW, type FarmIntegrationValidationErrorLike as cX, type FarmIntegrationValidationResult as cY, type FarmIntegrationStandardValidationResult as cZ, type FarmIntegrationInputSchema as c_, type FarmPluginBuildHooks as ca, type FarmPluginDevHooks as cb, type FarmPluginClientConfig as cc, type RouteDiscoveredPayload as cd, type RoutesGeneratedPayload as ce, type MiddlewareDiscoveredPayload as cf, type APIRouteDiscoveredPayload as cg, type RouteMatchPayload as ch, type RouteMatchResultPayload as ci, type RenderLifecyclePayload as cj, type APIHandlerLifecyclePayload as ck, type ErrorLifecyclePayload as cl, type HMRUpdatePayload as cm, type BundleLifecyclePayload as cn, type NitroBuildLifecyclePayload as co, type ShutdownPayload as cp, type ResolvedFarmConfig as cq, type RedirectConfig as cr, type HeaderConfig as cs, type RewriteConfig as ct, type ImageConfig as cu, type I18nConfig as cv, type MiddlewareConfig as cw, type FarmDeployConfig as cx, type ResolvedFarmDeployConfig as cy, type FarmDeployTarget as cz, type FarmRedirectStatus as d, getRegisteredIntegrationSchemas as d$, type FarmIntegrationRequestContextStore as d0, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as d1, FARM_INTEGRATION_SET_COOKIES_KEY as d2, forwardIntegrationSetCookies as d3, type FarmIntegrationRouteDb as d4, type FarmIntegrationRouteStorageArgs as d5, type FarmIntegrationRouteArgs as d6, type FarmIntegrationConfigContext as d7, type FarmIntegrationConfigDefinition as d8, type FarmIntegrationConfigInput as d9, type FarmIntegrationLogPhase as dA, type FarmIntegrationLogEvent as dB, type FarmIntegrationLogger as dC, type FarmIntegrationPluginOwner as dD, type FarmIntegrationContributedPlugin as dE, type FarmIntegrationsUserConfig as dF, getFarmIntegrationPluginServerRuntime as dG, getFarmIntegrationPluginOwner as dH, type FarmIntegrationRouteFactory as dI, type FarmIntegrationRoutesFactoryContext as dJ, type FarmIntegrationRoutesFactory as dK, type FarmIntegrationEndpointValue as dL, type FarmIntegrationEndpoints as dM, type FarmIntegrationEndpointsFactoryContext as dN, type FarmIntegrationEndpointsFactory as dO, createIntegrationRoute as dP, integrationRoute as dQ, type DefinedIntegration as dR, defineIntegration as dS, isFarmIntegration as dT, resolveIntegrationPlugins as dU, getIntegrationProviders as dV, isFarmIntegrationProviderComponentReference as dW, getIntegrationDocumentNavigationMatchers as dX, getIntegrationSchemas as dY, getRegisteredIntegrationRuntime as dZ, getRegisteredIntegrations as d_, type FarmIntegrationLifecycleLogLevel as da, type FarmIntegrationLifecycleLogger as db, type FarmIntegrationLifecycleContext as dc, type FarmIntegrationLifecycleHook as dd, type FarmIntegrationData as de, type FarmIntegrationHandlerContext as df, type FarmIntegrationRouteHookContext as dg, type FarmIntegrationRouteHook as dh, type FarmIntegrationRoute as di, type FarmTypedIntegrationRoute as dj, type FarmIntegrationRouteMiddleware as dk, type FarmIntegrationMiddleware as dl, type FarmIntegrationProviderProps as dm, type FarmIntegrationProviderComponentReference as dn, type FarmIntegrationProvider as dp, type FarmIntegrationDocumentNavigation as dq, type FarmIntegrationSchemaFieldType as dr, type FarmIntegrationSchemaReference as ds, type FarmIntegrationSchemaField as dt, type FarmIntegrationSchemaConstraint as du, type FarmIntegrationSchemaModel as dv, type FarmIntegrationSchemaModelExtension as dw, type FarmIntegrationSchemaModelOverride as dx, type FarmIntegrationSchema as dy, defineIntegrationSchema as dz, type FarmRequest as e, createFarmRouteRuntimeKey as e$, matchIntegrationRoute as e0, matchRegisteredIntegrationRoute as e1, getRegisteredIntegrationAPIManifest as e2, dispatchIntegrationRequest as e3, dispatchIntegrationRequests as e4, describeIntegrationOriginRejection as e5, resolveIntegrationAllowedOrigins as e6, validateIntegrationRequestOrigin as e7, type IntegrationOriginPolicy as e8, type IntegrationOriginRejection as e9, type CookieJar as eA, type CookieOptions as eB, type RateLimitConfig as eC, type RateLimitIncrementResult as eD, type RateLimitStorage as eE, type RateLimitStatus as eF, type MemoryRateLimitStorageOptions as eG, type NextFunction as eH, type MiddlewareResult as eI, type FarmRouteRuleRenderMode as eJ, type FarmRouteRuleRedirect as eK, type FarmRouteRuleCors as eL, type FarmRouteRule as eM, type FarmRouteRules as eN, normalizeRouteRules as eO, routeRulesToRedirects as eP, routeRulesToHeaders as eQ, routeRulesToNitroRouteRules as eR, type FarmRouteRuntimeEntryKind as eS, type FarmRouteRenderingMode as eT, type FarmRouteRuntimeManifestEntry as eU, type FarmRouteRuntimeManifest as eV, normalizeFarmRouteRuntimeConfig as eW, mergeFarmRouteRuntimeConfigs as eX, resolveFarmRouteRuntimeConfig as eY, hasFarmRouteRuntimeControls as eZ, getFarmRouteRuntimeConfig as e_, type IntegrationOriginResult as ea, type FarmIntegrationOrmSchema as eb, type FarmIntegrationOrmClient as ec, type InferFarmIntegrationOrmField as ed, type InferFarmIntegrationOrmFields as ee, type InferFarmIntegrationOrmSchema as ef, type InferFarmIntegrationOrmClient as eg, type CreateIntegrationOrmOptions as eh, createIntegrationOrm as ei, resolveIntegrationOrmRuntimeClient as ej, farmIntegrationSchemaToOrmSchema as ek, type IntegrationOrmModelNames as el, DEFAULT_FARM_API_BASE_PATH as em, type FarmAPIConfigResolverContext as en, type FarmAPIConfigValue as eo, type FarmAPIConfig as ep, resolveFarmAPIConfig as eq, normalizeFarmAPIConfig as er, normalizeFarmAPIBasePath as es, getFarmAPIBaseURL as et, resolveFarmAPIRequestURL as eu, type MiddlewareFunction as ev, type RequestMiddleware as ew, type RequestMiddlewareContext as ex, type MiddlewareStore as ey, type MiddlewareChain as ez, type FarmResponse as f, resolveFarmRouteRuleRuntimeConfig as f0, farmRouteRuleMatches as f1, DEFAULT_FARM_DEVTOOLS_SHORTCUT as f2, FARM_DEVTOOLS_PATH as f3, FARM_DEVTOOLS_LAUNCH_PARAM as f4, type FarmDevtoolsConfig as f5, type FarmDevtoolsUserConfig as f6, resolveFarmDevtoolsConfig as f7, type FarmBuildActivityPosition as f8, type FarmDevIndicatorsConfig as f9, resolveFarmDevIndicatorsConfig as fa, generateFarmDevIndicatorsClientRuntime as fb, farmI18nClientBridgePlugin as fc, farmServerOnlyEntriesPlugin as fd, withFarmRequestTracing as fe, rewriteEarlySsrRelativeImports as ff, transformIsolatedClientBoundaryModule as fg, shouldEmitFarmClientRootHmr as fh, generateClientCachePersistenceCode as fi, resolveFarmClientCacheAdapterEntry as fj, type ClientCachePersistenceEntryCode as fk, FARM_NODE_RESPONSE_END_PENDING as fl, loadFarmDevModule as fm, FarmDevEnvironmentError as fn, type FarmDevModuleServer as fo, getFarmRedirectError as g, 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, type FarmUserConfig as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { a as FarmClientHydrationCompleteEvent, b as FarmClientHydrationEvent, d as FarmClientHydrationMode, e as FarmClientHydrationSession, f as FarmClientLocation, g as FarmClientNavigationAction, h as FarmClientNavigationErrorEvent, i as FarmClientNavigationEvent, j as FarmClientNavigationLoadedEvent, k as FarmClientNavigationResolvedEvent, l as FarmClientNavigationSession, m as FarmClientPerformanceEvent, n as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle-DK06VuKP.mjs';
|
|
2
|
-
export { a as FarmPlugin, h as FarmPluginContext,
|
|
2
|
+
export { a as FarmPlugin, h as FarmPluginContext, bQ as FarmRequestPluginContext, bR as FarmRequestStore } from './client-plugins-DPG0NeZN.mjs';
|
|
3
3
|
import './route-B0XrsrFk.mjs';
|
|
4
4
|
import './endpoint-DAc96i93.mjs';
|
|
5
5
|
import './cache.mjs';
|
package/dist/client-plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { a as FarmClientHydrationCompleteEvent, b as FarmClientHydrationEvent, d as FarmClientHydrationMode, e as FarmClientHydrationSession, f as FarmClientLocation, g as FarmClientNavigationAction, h as FarmClientNavigationErrorEvent, i as FarmClientNavigationEvent, j as FarmClientNavigationLoadedEvent, k as FarmClientNavigationResolvedEvent, l as FarmClientNavigationSession, m as FarmClientPerformanceEvent, n as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle-DK06VuKP.js';
|
|
2
|
-
export { a as FarmPlugin, h as FarmPluginContext,
|
|
2
|
+
export { a as FarmPlugin, h as FarmPluginContext, bQ as FarmRequestPluginContext, bR as FarmRequestStore } from './client-plugins-Fgni-_25.js';
|
|
3
3
|
import './route-DOEpbyWZ.js';
|
|
4
4
|
import './endpoint-1zA994xL.js';
|
|
5
5
|
import './cache.js';
|