@farm.js/core 0.1.25 → 0.1.26
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 +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/api/route-manager.d.mts +2 -2
- package/dist/api/route-manager.d.ts +2 -2
- package/dist/api.d.mts +3 -3
- package/dist/api.d.ts +3 -3
- package/dist/{app-ZuWrAMc_.d.mts → app-29vG5tmY.d.mts} +3 -3
- package/dist/{app-BF-ctoxh.d.ts → app-Cx71s_PT.d.ts} +3 -3
- package/dist/app-markdown.cjs +6 -4
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/app-markdown.mjs +5 -3
- package/dist/{chunk-E3RDL2DA.cjs → chunk-2CT6XUNO.cjs} +61 -31
- package/dist/{chunk-R7LCG3BT.cjs → chunk-3TQG7CGC.cjs} +84 -77
- package/dist/{chunk-AXYTGLF3.cjs → chunk-3WSWXPYM.cjs} +4 -4
- package/dist/{chunk-2BIJGZR3.mjs → chunk-74RZNRY6.mjs} +1 -1
- package/dist/{chunk-TTVHACQV.cjs → chunk-ALIFMS4A.cjs} +1 -1
- package/dist/{chunk-T2OPSH6S.mjs → chunk-ARXCHQLX.mjs} +9 -2
- package/dist/{chunk-2KI3CL3N.mjs → chunk-DU2CASV6.mjs} +1 -1
- package/dist/chunk-J63ZH5OQ.cjs +62 -0
- package/dist/{chunk-XM4ZDVD7.mjs → chunk-JM5GQL4H.mjs} +1 -1
- package/dist/{chunk-6VEHUKZ2.mjs → chunk-MM5D6VLP.mjs} +4 -20
- package/dist/chunk-MVL2RAJW.mjs +62 -0
- package/dist/{chunk-YA6LLTIJ.cjs → chunk-ND224OE2.cjs} +4 -20
- package/dist/{chunk-XME4TCLB.mjs → chunk-OFKG57MZ.mjs} +2 -2
- package/dist/{chunk-U4MP7XTD.mjs → chunk-OOIL3BWR.mjs} +168 -16
- package/dist/{chunk-WOI2HOGA.mjs → chunk-PPIW3MH6.mjs} +1 -1
- package/dist/{chunk-2ITKVAIF.cjs → chunk-QIH2HD6H.cjs} +191 -39
- package/dist/{chunk-65P6OGYN.cjs → chunk-QJ4D3UKJ.cjs} +10 -3
- package/dist/{chunk-RYDW7GPR.cjs → chunk-QLXEYIAW.cjs} +13 -13
- package/dist/{chunk-WJYCI56T.mjs → chunk-QPPQHB6X.mjs} +43 -30
- package/dist/{chunk-RR6UGYUT.mjs → chunk-RAI7NULA.mjs} +39 -9
- package/dist/{chunk-6K4SPQWL.cjs → chunk-RCYINC4A.cjs} +3 -3
- package/dist/{chunk-QYMRIVG6.cjs → chunk-SZ4LYNUX.cjs} +110 -97
- package/dist/{chunk-N2Z4ZFDE.mjs → chunk-UXQXGB5A.mjs} +19 -12
- package/dist/{chunk-CFNOGDUS.cjs → chunk-W2HZKYES.cjs} +2 -2
- package/dist/{chunk-O5DVPF3R.cjs → chunk-WFPRVVF2.cjs} +10 -10
- package/dist/{chunk-5YYJ6Q2L.mjs → chunk-YMUH2BLR.mjs} +2 -2
- package/dist/{client-plugins-DPG0NeZN.d.mts → client-plugins-B8RPJnot.d.mts} +90 -3
- package/dist/{client-plugins-Fgni-_25.d.ts → client-plugins-bPBf4haK.d.ts} +90 -3
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client.d.mts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/{devtools-I7TBFOKD.mjs → devtools-5D4ZDRPR.mjs} +5 -3
- package/dist/{devtools-6OA7FEF6.cjs → devtools-QZJEUOJW.cjs} +6 -4
- package/dist/docs.cjs +8 -6
- package/dist/docs.mjs +7 -5
- package/dist/index.cjs +17 -13
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.mjs +16 -12
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/internal/app-markdown-runtime.cjs +5 -3
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/app-markdown-runtime.mjs +4 -2
- package/dist/internal/build-runtime.cjs +14 -13
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +13 -12
- package/dist/internal/cli-runtime.cjs +6 -5
- package/dist/internal/cli-runtime.mjs +5 -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 +2 -2
- package/dist/internal/compression-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.cjs +6 -4
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +5 -3
- package/dist/internal/infra-analytics-runtime.cjs +4 -3
- package/dist/internal/infra-analytics-runtime.mjs +2 -1
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +5 -4
- package/dist/internal/production-runtime.d.mts +11 -9
- package/dist/internal/production-runtime.d.ts +11 -9
- package/dist/internal/production-runtime.mjs +4 -3
- package/dist/markdown.cjs +4 -2
- package/dist/markdown.mjs +3 -1
- package/dist/{metadata-D0EF7esB.d.mts → metadata-C3na4CBj.d.mts} +1 -1
- package/dist/{metadata-CDnRHKVq.d.ts → metadata-CzBP4Mfp.d.ts} +1 -1
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/observability-BupkiN0m.d.mts +447 -0
- package/dist/observability-BupkiN0m.d.ts +447 -0
- package/dist/observability.d.mts +2 -417
- package/dist/observability.d.ts +2 -417
- package/dist/plugin.cjs +9 -8
- package/dist/plugin.d.mts +2 -2
- package/dist/plugin.d.ts +2 -2
- package/dist/plugin.mjs +8 -7
- package/dist/{production-runtime-DpCt0opU.d.ts → production-runtime-CYg4wM4E.d.ts} +1 -1
- package/dist/{production-runtime-x3W4wVqx.d.mts → production-runtime-DP94hPGe.d.mts} +1 -1
- package/dist/{render-plan-D5oFRVBV.d.ts → render-plan-Bl6Fzg5z.d.ts} +1 -1
- package/dist/{render-plan-tazUJalK.d.mts → render-plan-CKAJg0jC.d.mts} +1 -1
- package/dist/renderer-client.d.mts +4 -4
- package/dist/renderer-client.d.ts +4 -4
- package/dist/{request-CzZX0Aew.d.ts → request-CR-Bp1Px.d.ts} +1 -1
- package/dist/{request-CXmQy5ks.d.mts → request-CrBCcPZZ.d.mts} +1 -1
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/{route-rendering-B-qpe32B.d.mts → route-rendering-C1NAHo-C.d.mts} +1 -1
- package/dist/{route-rendering-Dw3C362T.d.ts → route-rendering-CZH5FegB.d.ts} +1 -1
- package/dist/{router-CafM2jlw.d.mts → router-B57eDJ3u.d.mts} +1 -1
- package/dist/{router-CLl3xHwl.d.ts → router-Cg_kD3Bd.d.ts} +1 -1
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server.cjs +159 -102
- package/dist/server.d.mts +8 -8
- package/dist/server.d.ts +8 -8
- package/dist/server.mjs +140 -83
- package/dist/{spa-router-DePr2aZ6.d.ts → spa-router-BstQUO6Q.d.ts} +2 -2
- package/dist/{spa-router-6sJfsMlQ.d.mts → spa-router-DTdbuinx.d.mts} +2 -2
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/{utils-BPHr-1mP.d.mts → utils-CS3ZLnEJ.d.mts} +1 -1
- package/dist/{utils-BBKC3cf3.d.ts → utils-D3rdsIvM.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +9 -8
- package/dist/vite.d.mts +2 -2
- package/dist/vite.d.ts +2 -2
- package/dist/vite.mjs +8 -7
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
renderFarmLocaleAlternateLinks,
|
|
28
28
|
resolveDefaultErrorStatus,
|
|
29
29
|
resolveFarmApiCatalogInput
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ARXCHQLX.mjs";
|
|
31
31
|
import {
|
|
32
32
|
isFarmPreviewDeploymentEnvironment
|
|
33
33
|
} from "./chunk-BOYNDCZL.mjs";
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
resolveFarmLlmsTxtConfig,
|
|
108
108
|
resolveFarmPerformanceConfig,
|
|
109
109
|
resolveFarmSecurityConfig
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-RAI7NULA.mjs";
|
|
111
111
|
import {
|
|
112
112
|
getPublicFarmImageConfig,
|
|
113
113
|
resolveFarmImageConfig
|
|
@@ -125,12 +125,12 @@ import {
|
|
|
125
125
|
import {
|
|
126
126
|
createFarmMarkdownRouteModuleFromFile,
|
|
127
127
|
loadFarmMdxComponents
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-74RZNRY6.mjs";
|
|
129
129
|
import {
|
|
130
130
|
createFarmMarkdownSourceResponse,
|
|
131
131
|
isFarmMarkdownPageFile,
|
|
132
132
|
normalizeFarmMarkdownRoutePath
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-JM5GQL4H.mjs";
|
|
134
134
|
import {
|
|
135
135
|
resolveFarmMdxComponentsModulePath,
|
|
136
136
|
resolveMdxConfig
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
getFarmMarkdownMirrorPath,
|
|
145
145
|
resolveMarkdownConfig,
|
|
146
146
|
resolveMarkdownMirrorTarget
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-OOIL3BWR.mjs";
|
|
148
148
|
import {
|
|
149
149
|
resolveWorkflowsConfig
|
|
150
150
|
} from "./chunk-3ATMYLLJ.mjs";
|
|
@@ -274,7 +274,7 @@ import {
|
|
|
274
274
|
} from "./chunk-Z2RZJZIZ.mjs";
|
|
275
275
|
import {
|
|
276
276
|
FARM_VERSION
|
|
277
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-PPIW3MH6.mjs";
|
|
278
278
|
import {
|
|
279
279
|
resolveFarmTrailingSlashRedirect,
|
|
280
280
|
setFarmTrailingSlashPreference
|
|
@@ -3042,7 +3042,7 @@ __name(collectDevStylesheetUrls, "collectDevStylesheetUrls");
|
|
|
3042
3042
|
|
|
3043
3043
|
// src/server/full-document.ts
|
|
3044
3044
|
var CONTENTS_WRAPPER = /^<div\b[^>]*style="display\s*:\s*contents"[^>]*>/i;
|
|
3045
|
-
var HOISTED_HEAD_ELEMENT = /^(?:<(?:meta|link|base)\b[^>]*>|<title\b[^>]*>[\s\S]*?<\/title>)/i;
|
|
3045
|
+
var HOISTED_HEAD_ELEMENT = /^(?:<(?:meta|link|base)\b[^>]*>|<title\b[^>]*>[\s\S]*?<\/title>|<script\b[^>]*\basync\b[^>]*><\/script>|<style\b[^>]*\bdata-precedence\b[^>]*>[\s\S]*?<\/style>)/i;
|
|
3046
3046
|
function peelDocumentPrefix(markup) {
|
|
3047
3047
|
let inner = markup.replace(/^\s+/, "");
|
|
3048
3048
|
let hoisted = "";
|
|
@@ -6131,7 +6131,8 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6131
6131
|
readMarkdown: llmsContext.markdown
|
|
6132
6132
|
}) : value;
|
|
6133
6133
|
const response = createFarmMetadataRouteResponse(match.metadata.kind, body, routeModule, {
|
|
6134
|
-
method
|
|
6134
|
+
method,
|
|
6135
|
+
request: request2
|
|
6135
6136
|
});
|
|
6136
6137
|
await sendWebResponse(res, response);
|
|
6137
6138
|
} catch (error) {
|
|
@@ -6169,7 +6170,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6169
6170
|
kind,
|
|
6170
6171
|
body,
|
|
6171
6172
|
{ revalidate: config.revalidate },
|
|
6172
|
-
{ method: req.method }
|
|
6173
|
+
{ method: req.method, request: request2 }
|
|
6173
6174
|
)
|
|
6174
6175
|
);
|
|
6175
6176
|
} catch (error) {
|
|
@@ -9517,7 +9518,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
9517
9518
|
}
|
|
9518
9519
|
__name(loadFarmWorkflowsDevRuntime, "loadFarmWorkflowsDevRuntime");
|
|
9519
9520
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
9520
|
-
return import("./devtools-
|
|
9521
|
+
return import("./devtools-5D4ZDRPR.mjs");
|
|
9521
9522
|
}
|
|
9522
9523
|
__name(loadFarmDevtoolsSnapshotRuntime, "loadFarmDevtoolsSnapshotRuntime");
|
|
9523
9524
|
function loadFarmDevtoolsUIRuntime() {
|
|
@@ -10818,7 +10819,10 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
10818
10819
|
res,
|
|
10819
10820
|
createFarmApiCatalogResponse(
|
|
10820
10821
|
requestMethod,
|
|
10821
|
-
resolveFarmApiCatalogInput({ ...options, api: farmConfig.api })
|
|
10822
|
+
resolveFarmApiCatalogInput({ ...options, api: farmConfig.api }),
|
|
10823
|
+
new Request(parsedRequestUrl, {
|
|
10824
|
+
headers: { "user-agent": String(req.headers["user-agent"] ?? "") }
|
|
10825
|
+
})
|
|
10822
10826
|
)
|
|
10823
10827
|
);
|
|
10824
10828
|
return;
|
|
@@ -10880,7 +10884,9 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
10880
10884
|
}),
|
|
10881
10885
|
config: farmApp.getConfig().md,
|
|
10882
10886
|
routeExists: /* @__PURE__ */ __name((pathname2) => Boolean(farmApp.getRouteManager().matchRoute(pathname2).route), "routeExists"),
|
|
10883
|
-
|
|
10887
|
+
// Keep the page's own redirect (a sign-in gate, say) so the mirror
|
|
10888
|
+
// answers with it, as production does, instead of the target page.
|
|
10889
|
+
renderPage: /* @__PURE__ */ __name(async (request2) => fetch(request2, { redirect: "manual" }), "renderPage")
|
|
10884
10890
|
});
|
|
10885
10891
|
if (markdownResponse) {
|
|
10886
10892
|
if (await runAppMiddlewareForContentRoute()) return;
|
|
@@ -14424,6 +14430,7 @@ export {
|
|
|
14424
14430
|
createMarkdownPageHydrationPlanner,
|
|
14425
14431
|
enforceFarmIsolatedHydrationRouteBudget,
|
|
14426
14432
|
RouteManager,
|
|
14433
|
+
HOISTED_HEAD_ELEMENT,
|
|
14427
14434
|
resolveFarmNotFoundComponentPath,
|
|
14428
14435
|
farmFontImportsPlugin,
|
|
14429
14436
|
mergeFarmFontCss,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRCYINC4Acjs = require('./chunk-RCYINC4A.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -11,7 +11,7 @@ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
|
11
11
|
var _url = require('url');
|
|
12
12
|
async function createFarmMarkdownRouteModuleFromFile(filePath, options = {}) {
|
|
13
13
|
const source = await _promises.readFile.call(void 0, filePath, "utf8");
|
|
14
|
-
return
|
|
14
|
+
return _chunkRCYINC4Acjs.createFarmMarkdownRouteModule.call(void 0, {
|
|
15
15
|
source,
|
|
16
16
|
filePath,
|
|
17
17
|
components: options.components,
|
|
@@ -28,7 +28,7 @@ var _chunkPSV6XKPOcjs = require('./chunk-PSV6XKPO.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk2CT6XUNOcjs = require('./chunk-2CT6XUNO.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkYFPGHF5Fcjs = require('./chunk-YFPGHF5F.cjs');
|
|
@@ -47,7 +47,7 @@ var _chunkVEKFLAQMcjs = require('./chunk-VEKFLAQM.cjs');
|
|
|
47
47
|
var _chunkOHY2ZWUGcjs = require('./chunk-OHY2ZWUG.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkQIH2HD6Hcjs = require('./chunk-QIH2HD6H.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
var _chunkUYIHRDE4cjs = require('./chunk-UYIHRDE4.cjs');
|
|
@@ -133,9 +133,9 @@ function resolveFarmAgentConfig(input) {
|
|
|
133
133
|
const jsonLd = _optionalChain([input, 'optionalAccess', _ => _.jsonLd]);
|
|
134
134
|
return {
|
|
135
135
|
jsonLd: !jsonLd ? false : jsonLd === true ? {} : jsonLd,
|
|
136
|
-
noindexPreviews:
|
|
137
|
-
llmsTxt:
|
|
138
|
-
crawlers:
|
|
136
|
+
noindexPreviews: _chunk2CT6XUNOcjs.resolveFarmNoindexPreviews.call(void 0, _optionalChain([input, 'optionalAccess', _2 => _2.noindexPreviews])),
|
|
137
|
+
llmsTxt: _chunk2CT6XUNOcjs.resolveFarmLlmsTxtConfig.call(void 0, _optionalChain([input, 'optionalAccess', _3 => _3.llmsTxt])),
|
|
138
|
+
crawlers: _chunk2CT6XUNOcjs.resolveFarmAgentCrawlers.call(void 0, _optionalChain([input, 'optionalAccess', _4 => _4.crawlers])),
|
|
139
139
|
apiCatalog: resolveFarmApiCatalogEnabled(_optionalChain([input, 'optionalAccess', _5 => _5.apiCatalog]))
|
|
140
140
|
};
|
|
141
141
|
}
|
|
@@ -680,9 +680,9 @@ async function resolveConfig(userConfig, mode) {
|
|
|
680
680
|
const routeRules = _chunkQ5B3KJBPcjs.normalizeRouteRules.call(void 0, userConfig.routeRules);
|
|
681
681
|
const routeRuleRedirects = _chunkQ5B3KJBPcjs.routeRulesToRedirects.call(void 0, routeRules);
|
|
682
682
|
const routeRuleHeaders = _chunkQ5B3KJBPcjs.routeRulesToHeaders.call(void 0, routeRules);
|
|
683
|
-
const security =
|
|
684
|
-
const securityHeader =
|
|
685
|
-
if (
|
|
683
|
+
const security = _chunk2CT6XUNOcjs.resolveFarmSecurityConfig.call(void 0, userConfig.security);
|
|
684
|
+
const securityHeader = _chunk2CT6XUNOcjs.getFarmSecurityHeader.call(void 0, security);
|
|
685
|
+
if (_chunk2CT6XUNOcjs.farmCspBlocksFrameworkInlineScripts.call(void 0, security)) {
|
|
686
686
|
_chunk5QIKR7RRcjs.logger.warn(
|
|
687
687
|
"security.csp blocks the inline scripts Farm injects for theming and hydration. Set security.csp.nonce to true for managed dynamic nonces and prerendered hashes, or make the governing script directive allow 'unsafe-inline' without a nonce, hash, or 'strict-dynamic' source."
|
|
688
688
|
);
|
|
@@ -691,7 +691,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
691
691
|
const root = userConfig.root || process.cwd();
|
|
692
692
|
const srcDir = userConfig.srcDir || "src";
|
|
693
693
|
const docs = await resolveDocsConfig(userConfig.docs, { root, srcDir });
|
|
694
|
-
const md =
|
|
694
|
+
const md = _chunkQIH2HD6Hcjs.resolveMarkdownConfig.call(void 0, userConfig.md);
|
|
695
695
|
const mdx = _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, userConfig.mdx);
|
|
696
696
|
const env = _chunkVEKFLAQMcjs.resolveEnv.call(void 0, userConfig.env, process.env);
|
|
697
697
|
_chunkVEKFLAQMcjs.setEnv.call(void 0, env);
|
|
@@ -782,7 +782,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
782
782
|
], "headers"),
|
|
783
783
|
routeRules,
|
|
784
784
|
images: _chunkYFPGHF5Fcjs.resolveFarmImageConfig.call(void 0, userConfig.images),
|
|
785
|
-
performance:
|
|
785
|
+
performance: _chunk2CT6XUNOcjs.resolveFarmPerformanceConfig.call(void 0, userConfig.performance),
|
|
786
786
|
theme: _chunkOI6CMLWXcjs.resolveFarmThemeConfig.call(void 0, userConfig.theme, basePath),
|
|
787
787
|
publicDir: userConfig.publicDir || "public",
|
|
788
788
|
i18n: _chunkHBTUGXHScjs.resolveFarmI18nConfig.call(void 0, userConfig.i18n, { root, mode, basePath }),
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
resolveFarmNoindexPreviews,
|
|
29
29
|
resolveFarmPerformanceConfig,
|
|
30
30
|
resolveFarmSecurityConfig
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RAI7NULA.mjs";
|
|
32
32
|
import {
|
|
33
33
|
resolveFarmImageConfig
|
|
34
34
|
} from "./chunk-G2KY33I6.mjs";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-FA2W42OV.mjs";
|
|
48
48
|
import {
|
|
49
49
|
resolveMarkdownConfig
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-OOIL3BWR.mjs";
|
|
51
51
|
import {
|
|
52
52
|
bundleNodeModule
|
|
53
53
|
} from "./chunk-SFGWNC43.mjs";
|
|
@@ -10,7 +10,7 @@ import React__default, { ComponentType, ReactNode } from 'react';
|
|
|
10
10
|
import { F as FarmIntegrationAPI, e as FarmIntegrationAPIMethod, c as FarmIntegrationAPIBodyFormat, f as FarmIntegrationAPIOperation, g as FarmIntegrationAPIResponseFormat, h as FarmIntegrationRouteOperationCarrier, I as InferIntegrationAPIFromRoutes } from './integration-api-BbaiokCC.mjs';
|
|
11
11
|
import { OrmClient, SchemaDefinition, ModelDefinition, FieldBuilder, JsonValue, AnyModelDefinition, SchemaModels } from '@farming-labs/orm';
|
|
12
12
|
import { a as FarmDocsUserConfig, F as FarmDocsResolvedConfig } from './types-DFbjpjXX.mjs';
|
|
13
|
-
import { FarmObservabilityUserConfig } from './observability.mjs';
|
|
13
|
+
import { L as FarmObservabilityUserConfig } from './observability-BupkiN0m.mjs';
|
|
14
14
|
import * as vite from 'vite';
|
|
15
15
|
import { ViteDevServer, UserConfig, Plugin as Plugin$1, Connect } from 'vite';
|
|
16
16
|
import { k as FarmWorkflowsUserConfig, a as FarmServerConfig, F as FarmWorkflowsResolvedConfig, R as ResolvedFarmServerConfig } from './workflows-CR9ex-gz.mjs';
|
|
@@ -124,6 +124,10 @@ declare function renderFarmLlmsFullTxt(value: unknown, options: {
|
|
|
124
124
|
origin: string;
|
|
125
125
|
readMarkdown: (url: string) => Promise<string | null>;
|
|
126
126
|
concurrency?: number;
|
|
127
|
+
/** Milliseconds to wait for one page's Markdown before leaving it out. */
|
|
128
|
+
pageTimeout?: number;
|
|
129
|
+
/** Called when a page is left out because it did not answer in time. */
|
|
130
|
+
onIncomplete?: () => void;
|
|
127
131
|
}): Promise<string>;
|
|
128
132
|
/**
|
|
129
133
|
* Shares llms-full.txt renders, which read every listed page. Requests for the
|
|
@@ -131,12 +135,16 @@ declare function renderFarmLlmsFullTxt(value: unknown, options: {
|
|
|
131
135
|
* that result; renders run one at a time, so a burst of requests, even with
|
|
132
136
|
* varied Host headers, cannot multiply page renders. The content is the same for
|
|
133
137
|
* every caller: pages are read with fresh requests that carry no credentials.
|
|
138
|
+
* A render that calls `incomplete()`, because a page timed out, is answered but
|
|
139
|
+
* not reused, so the next request tries that page again.
|
|
134
140
|
*/
|
|
135
141
|
declare function createFarmLlmsFullRenderer(options?: {
|
|
136
142
|
revalidate?: number;
|
|
137
143
|
now?: () => number;
|
|
138
144
|
maxEntries?: number;
|
|
139
|
-
}): (origin: string, render: (
|
|
145
|
+
}): (origin: string, render: (shared: {
|
|
146
|
+
incomplete: () => void;
|
|
147
|
+
}) => Promise<string>, onSettled?: (complete: boolean) => void) => Promise<string>;
|
|
140
148
|
|
|
141
149
|
type ApplicationMetadataRouteKind = "sitemap" | "robots" | "manifest" | "llms" | "llms-full";
|
|
142
150
|
declare namespace MetadataRoute {
|
|
@@ -223,6 +231,8 @@ interface FarmMetadataRouteModule {
|
|
|
223
231
|
}
|
|
224
232
|
interface FarmMetadataRouteResponseOptions {
|
|
225
233
|
method?: string;
|
|
234
|
+
/** The request being answered, so llms.txt reads can be reported as agent traffic. */
|
|
235
|
+
request?: Request;
|
|
226
236
|
}
|
|
227
237
|
/** @internal */
|
|
228
238
|
declare function createFarmMetadataRouteResponse(kind: ApplicationMetadataRouteKind, value: unknown, routeModule?: FarmMetadataRouteModule, options?: FarmMetadataRouteResponseOptions): Response;
|
|
@@ -1165,6 +1175,71 @@ type FarmMCPTool = Readonly<EndpointMCPMetadata> & {
|
|
|
1165
1175
|
readonly method?: never;
|
|
1166
1176
|
readonly path?: never;
|
|
1167
1177
|
});
|
|
1178
|
+
/** What a resource's `read` receives: the URI asked for, its template variables, and the caller. */
|
|
1179
|
+
interface FarmMCPResourceContext extends FarmMCPExecuteContext {
|
|
1180
|
+
readonly uri: URL;
|
|
1181
|
+
/** Values matched by `uriTemplate`; empty for a fixed `uri`. */
|
|
1182
|
+
readonly variables: Readonly<Record<string, string | string[]>>;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* One piece of resource content: a string (sent as `mimeType`, or text/plain),
|
|
1186
|
+
* text with its own type, JSON data, or binary data.
|
|
1187
|
+
*/
|
|
1188
|
+
type FarmMCPResourceContent = string | {
|
|
1189
|
+
text: string;
|
|
1190
|
+
mimeType?: string;
|
|
1191
|
+
} | {
|
|
1192
|
+
json: unknown;
|
|
1193
|
+
} | {
|
|
1194
|
+
blob: Uint8Array | ArrayBuffer;
|
|
1195
|
+
mimeType?: string;
|
|
1196
|
+
};
|
|
1197
|
+
/** One concrete URI a templated resource lists. */
|
|
1198
|
+
interface FarmMCPResourceListing {
|
|
1199
|
+
uri: string;
|
|
1200
|
+
name?: string;
|
|
1201
|
+
title?: string;
|
|
1202
|
+
description?: string;
|
|
1203
|
+
mimeType?: string;
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* A server-only MCP resource: read-only context an agent can load, at a fixed
|
|
1207
|
+
* `uri` or at every URI matching an RFC 6570 `uriTemplate`.
|
|
1208
|
+
*/
|
|
1209
|
+
interface FarmMCPResource {
|
|
1210
|
+
/** Stable name, used in authorization and in `authorize`'s `resources` allowlist. */
|
|
1211
|
+
name: string;
|
|
1212
|
+
title?: string;
|
|
1213
|
+
description?: string;
|
|
1214
|
+
mimeType?: string;
|
|
1215
|
+
/** A fixed absolute URI, such as `docs://handbook`. Set this or `uriTemplate`. */
|
|
1216
|
+
uri?: string;
|
|
1217
|
+
/** An RFC 6570 template, such as `notes://{id}`. Set this or `uri`. */
|
|
1218
|
+
uriTemplate?: string;
|
|
1219
|
+
/** For a template: the concrete resources to list. Omit to list none. */
|
|
1220
|
+
list?(context: FarmMCPExecuteContext): readonly FarmMCPResourceListing[] | Promise<readonly FarmMCPResourceListing[]>;
|
|
1221
|
+
/** Return the content, or null when the URI names nothing. */
|
|
1222
|
+
read(context: FarmMCPResourceContext): FarmMCPResourceContent | readonly FarmMCPResourceContent[] | null | Promise<FarmMCPResourceContent | readonly FarmMCPResourceContent[] | null>;
|
|
1223
|
+
}
|
|
1224
|
+
interface FarmMCPPromptMessage {
|
|
1225
|
+
role: "user" | "assistant";
|
|
1226
|
+
text: string;
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
* A server-only MCP prompt: a reusable message template a client offers its
|
|
1230
|
+
* user. Arguments arrive as strings, as MCP sends them, and are validated by
|
|
1231
|
+
* `arguments` before `render` runs.
|
|
1232
|
+
*/
|
|
1233
|
+
interface FarmMCPPrompt<Schema extends RouteSchema | undefined = RouteSchema | undefined> {
|
|
1234
|
+
/** Stable name: 1-128 letters, numbers, dots, underscores, or hyphens. */
|
|
1235
|
+
name: string;
|
|
1236
|
+
title?: string;
|
|
1237
|
+
description?: string;
|
|
1238
|
+
/** An object schema of string arguments. */
|
|
1239
|
+
arguments?: Schema;
|
|
1240
|
+
/** Return the prompt text, sent as one user message, or a list of messages. */
|
|
1241
|
+
render(args: Schema extends RouteSchema ? RouteSchemaOutput<Schema> : Record<string, never>, context: FarmMCPExecuteContext): string | readonly FarmMCPPromptMessage[] | Promise<string | readonly FarmMCPPromptMessage[]>;
|
|
1242
|
+
}
|
|
1168
1243
|
interface FarmMCPServer {
|
|
1169
1244
|
readonly name: string;
|
|
1170
1245
|
readonly version: string;
|
|
@@ -1176,11 +1251,19 @@ interface FarmMCPAuthorization extends Record<string, unknown> {
|
|
|
1176
1251
|
scopes?: string[];
|
|
1177
1252
|
/** Allowed tool names for this request. Omit for all configured tools; [] denies all tools. */
|
|
1178
1253
|
tools?: readonly string[];
|
|
1254
|
+
/** Allowed resource names. Omit for all configured resources; [] denies all resources. */
|
|
1255
|
+
resources?: readonly string[];
|
|
1256
|
+
/** Allowed prompt names. Omit for all configured prompts; [] denies all prompts. */
|
|
1257
|
+
prompts?: readonly string[];
|
|
1179
1258
|
}
|
|
1180
1259
|
interface FarmMCPAuthorizeContext {
|
|
1181
1260
|
request: Request;
|
|
1182
1261
|
/** Untrusted requested name for a tools/call; authorization runs separately for every JSON-RPC batch item. */
|
|
1183
1262
|
tool?: string;
|
|
1263
|
+
/** Untrusted requested URI for a resources/read. */
|
|
1264
|
+
resource?: string;
|
|
1265
|
+
/** Untrusted requested name for a prompts/get. */
|
|
1266
|
+
prompt?: string;
|
|
1184
1267
|
/** Complete configured catalog, before applying this caller's permissions. */
|
|
1185
1268
|
tools: readonly FarmMCPTool[];
|
|
1186
1269
|
/** Resolved transport identity, for policies shared by multiple MCP endpoints. */
|
|
@@ -1197,6 +1280,10 @@ interface FarmMCPConfig {
|
|
|
1197
1280
|
version?: string;
|
|
1198
1281
|
/** Explicit endpoint/standalone tool allowlist. Omit to discover route-owned MCP metadata. */
|
|
1199
1282
|
tools?: readonly FarmMCPToolDefinition[];
|
|
1283
|
+
/** Read-only context for agents, from `defineResource()`. */
|
|
1284
|
+
resources?: readonly FarmMCPResource[];
|
|
1285
|
+
/** Reusable prompt templates, from `definePrompt()`. */
|
|
1286
|
+
prompts?: readonly FarmMCPPrompt<any>[];
|
|
1200
1287
|
/** Authorize every MCP request. Returning false responds with 401 before protocol handling. */
|
|
1201
1288
|
authorize?: (context: FarmMCPAuthorizeContext) => FarmMCPAuthorization | false | Promise<FarmMCPAuthorization | false>;
|
|
1202
1289
|
/** Deliberate escape hatch for public servers. Authentication is required by default. */
|
|
@@ -3173,4 +3260,4 @@ interface MetadataRobots extends MetadataRobotsDirectives {
|
|
|
3173
3260
|
googleBot?: string | MetadataRobotsDirectives;
|
|
3174
3261
|
}
|
|
3175
3262
|
|
|
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 };
|
|
3263
|
+
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 FarmPluginStateContext 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 FarmMCPPrompt as bL, type FarmMCPPromptMessage as bM, type FarmMCPResource as bN, type FarmMCPResourceContent as bO, type FarmMCPResourceContext as bP, type FarmMCPResourceListing as bQ, type FarmMCPUserConfig as bR, type ResolvedFarmMCPConfig as bS, type PluginRequestContext as bT, type FarmPluginIntegrationContext as bU, type FarmPluginLifecycle as bV, type FarmRequestPluginContext as bW, type FarmRequestStore as bX, type FarmPluginRuntimeKind as bY, type FarmPluginRouteRuntimePayload as bZ, type FarmPluginSetupContext 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 FarmIntegrationRouteInput as c$, type FarmPluginRuntimeBaseEvent as c0, type FarmPluginRuntimeContextEvent as c1, type FarmPluginRuntimeEndpoint as c2, type FarmPluginRuntimeEndpointEvent as c3, type FarmPluginRuntimeBeforeEvent as c4, type FarmPluginRuntimeAfterEvent as c5, type FarmPluginRuntimeErrorEvent as c6, type FarmPluginRuntimeStartEvent as c7, type FarmPluginRuntimeCloseEvent as c8, type FarmPluginRuntimeHooks as c9, type ImageConfig as cA, type I18nConfig as cB, type MiddlewareConfig as cC, type FarmDeployConfig as cD, type ResolvedFarmDeployConfig as cE, type FarmDeployTarget as cF, describeSchemaReference as cG, collectSchemaModels as cH, generateSqlStatements as cI, renderSqlSchemaFile as cJ, getSqlColumnType as cK, getSqlDefaultExpression as cL, isNullableField as cM, quoteSqlIdentifier as cN, toSnakeCase as cO, toPascalCase as cP, toCamelCase as cQ, escapeSqlString as cR, resolveSchemaModels as cS, type ResolvedSchemaModel as cT, type FarmIntegrationCategory as cU, type FarmIntegrationSlot as cV, type FarmIntegrationRouteParamValue as cW, type FarmIntegrationRouteParams as cX, type FarmIntegrationRouteMethod as cY, type FarmIntegrationRouteInputSource as cZ, type FarmIntegrationValidationPathSegment as c_, type FarmPluginRuntimeRequestOptions as ca, type FarmPluginRuntimeRequestHandler as cb, type FarmPluginRuntimeSession as cc, type FarmPluginDiscoveredRoute as cd, type FarmPluginRouterHooks as ce, type FarmPluginRenderHooks as cf, type FarmPluginBuildHooks as cg, type FarmPluginDevHooks as ch, type FarmPluginClientConfig as ci, type RouteDiscoveredPayload as cj, type RoutesGeneratedPayload as ck, type MiddlewareDiscoveredPayload as cl, type APIRouteDiscoveredPayload as cm, type RouteMatchPayload as cn, type RouteMatchResultPayload as co, type RenderLifecyclePayload as cp, type APIHandlerLifecyclePayload as cq, type ErrorLifecyclePayload as cr, type HMRUpdatePayload as cs, type BundleLifecyclePayload as ct, type NitroBuildLifecyclePayload as cu, type ShutdownPayload as cv, type ResolvedFarmConfig as cw, type RedirectConfig as cx, type HeaderConfig as cy, type RewriteConfig as cz, type FarmRedirectStatus as d, getIntegrationProviders as d$, type FarmIntegrationValidationIssue as d0, type FarmIntegrationValidationErrorLike as d1, type FarmIntegrationValidationResult as d2, type FarmIntegrationStandardValidationResult as d3, type FarmIntegrationInputSchema as d4, type FarmIntegrationRouteInputSchemas as d5, type FarmIntegrationRequestContextStore as d6, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as d7, FARM_INTEGRATION_SET_COOKIES_KEY as d8, forwardIntegrationSetCookies as d9, type FarmIntegrationSchemaConstraint as dA, type FarmIntegrationSchemaModel as dB, type FarmIntegrationSchemaModelExtension as dC, type FarmIntegrationSchemaModelOverride as dD, type FarmIntegrationSchema as dE, defineIntegrationSchema as dF, type FarmIntegrationLogPhase as dG, type FarmIntegrationLogEvent as dH, type FarmIntegrationLogger as dI, type FarmIntegrationPluginOwner as dJ, type FarmIntegrationContributedPlugin as dK, type FarmIntegrationsUserConfig as dL, getFarmIntegrationPluginServerRuntime as dM, getFarmIntegrationPluginOwner as dN, type FarmIntegrationRouteFactory as dO, type FarmIntegrationRoutesFactoryContext as dP, type FarmIntegrationRoutesFactory as dQ, type FarmIntegrationEndpointValue as dR, type FarmIntegrationEndpoints as dS, type FarmIntegrationEndpointsFactoryContext as dT, type FarmIntegrationEndpointsFactory as dU, createIntegrationRoute as dV, integrationRoute as dW, type DefinedIntegration as dX, defineIntegration as dY, isFarmIntegration as dZ, resolveIntegrationPlugins as d_, type FarmIntegrationRouteDb as da, type FarmIntegrationRouteStorageArgs as db, type FarmIntegrationRouteArgs as dc, type FarmIntegrationConfigContext as dd, type FarmIntegrationConfigDefinition as de, type FarmIntegrationConfigInput as df, type FarmIntegrationLifecycleLogLevel as dg, type FarmIntegrationLifecycleLogger as dh, type FarmIntegrationLifecycleContext as di, type FarmIntegrationLifecycleHook as dj, type FarmIntegrationData as dk, type FarmIntegrationHandlerContext as dl, type FarmIntegrationRouteHookContext as dm, type FarmIntegrationRouteHook as dn, type FarmIntegrationRoute as dp, type FarmTypedIntegrationRoute as dq, type FarmIntegrationRouteMiddleware as dr, type FarmIntegrationMiddleware as ds, type FarmIntegrationProviderProps as dt, type FarmIntegrationProviderComponentReference as du, type FarmIntegrationProvider as dv, type FarmIntegrationDocumentNavigation as dw, type FarmIntegrationSchemaFieldType as dx, type FarmIntegrationSchemaReference as dy, type FarmIntegrationSchemaField as dz, type FarmRequest as e, type FarmRouteRuntimeManifest as e$, isFarmIntegrationProviderComponentReference as e0, getIntegrationDocumentNavigationMatchers as e1, getIntegrationSchemas as e2, getRegisteredIntegrationRuntime as e3, getRegisteredIntegrations as e4, getRegisteredIntegrationSchemas as e5, matchIntegrationRoute as e6, matchRegisteredIntegrationRoute as e7, getRegisteredIntegrationAPIManifest as e8, dispatchIntegrationRequest as e9, resolveFarmAPIRequestURL as eA, type MiddlewareFunction as eB, type RequestMiddleware as eC, type RequestMiddlewareContext as eD, type MiddlewareStore as eE, type MiddlewareChain as eF, type CookieJar as eG, type CookieOptions as eH, type RateLimitConfig as eI, type RateLimitIncrementResult as eJ, type RateLimitStorage as eK, type RateLimitStatus as eL, type MemoryRateLimitStorageOptions as eM, type NextFunction as eN, type MiddlewareResult as eO, type FarmRouteRuleRenderMode as eP, type FarmRouteRuleRedirect as eQ, type FarmRouteRuleCors as eR, type FarmRouteRule as eS, type FarmRouteRules as eT, normalizeRouteRules as eU, routeRulesToRedirects as eV, routeRulesToHeaders as eW, routeRulesToNitroRouteRules as eX, type FarmRouteRuntimeEntryKind as eY, type FarmRouteRenderingMode as eZ, type FarmRouteRuntimeManifestEntry as e_, dispatchIntegrationRequests as ea, describeIntegrationOriginRejection as eb, resolveIntegrationAllowedOrigins as ec, validateIntegrationRequestOrigin as ed, type IntegrationOriginPolicy as ee, type IntegrationOriginRejection as ef, type IntegrationOriginResult as eg, type FarmIntegrationOrmSchema as eh, type FarmIntegrationOrmClient as ei, type InferFarmIntegrationOrmField as ej, type InferFarmIntegrationOrmFields as ek, type InferFarmIntegrationOrmSchema as el, type InferFarmIntegrationOrmClient as em, type CreateIntegrationOrmOptions as en, createIntegrationOrm as eo, resolveIntegrationOrmRuntimeClient as ep, farmIntegrationSchemaToOrmSchema as eq, type IntegrationOrmModelNames as er, DEFAULT_FARM_API_BASE_PATH as es, type FarmAPIConfigResolverContext as et, type FarmAPIConfigValue as eu, type FarmAPIConfig as ev, resolveFarmAPIConfig as ew, normalizeFarmAPIConfig as ex, normalizeFarmAPIBasePath as ey, getFarmAPIBaseURL as ez, type FarmResponse as f, normalizeFarmRouteRuntimeConfig as f0, mergeFarmRouteRuntimeConfigs as f1, resolveFarmRouteRuntimeConfig as f2, hasFarmRouteRuntimeControls as f3, getFarmRouteRuntimeConfig as f4, createFarmRouteRuntimeKey as f5, resolveFarmRouteRuleRuntimeConfig as f6, farmRouteRuleMatches as f7, DEFAULT_FARM_DEVTOOLS_SHORTCUT as f8, FARM_DEVTOOLS_PATH as f9, FARM_DEVTOOLS_LAUNCH_PARAM as fa, type FarmDevtoolsConfig as fb, type FarmDevtoolsUserConfig as fc, resolveFarmDevtoolsConfig as fd, type FarmBuildActivityPosition as fe, type FarmDevIndicatorsConfig as ff, resolveFarmDevIndicatorsConfig as fg, generateFarmDevIndicatorsClientRuntime as fh, farmI18nClientBridgePlugin as fi, farmServerOnlyEntriesPlugin as fj, withFarmRequestTracing as fk, rewriteEarlySsrRelativeImports as fl, transformIsolatedClientBoundaryModule as fm, shouldEmitFarmClientRootHmr as fn, generateClientCachePersistenceCode as fo, resolveFarmClientCacheAdapterEntry as fp, type ClientCachePersistenceEntryCode as fq, FARM_NODE_RESPONSE_END_PENDING as fr, loadFarmDevModule as fs, FarmDevEnvironmentError as ft, type FarmDevModuleServer as fu, 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 };
|
|
@@ -10,7 +10,7 @@ import React__default, { ComponentType, ReactNode } from 'react';
|
|
|
10
10
|
import { F as FarmIntegrationAPI, e as FarmIntegrationAPIMethod, c as FarmIntegrationAPIBodyFormat, f as FarmIntegrationAPIOperation, g as FarmIntegrationAPIResponseFormat, h as FarmIntegrationRouteOperationCarrier, I as InferIntegrationAPIFromRoutes } from './integration-api-BbaiokCC.js';
|
|
11
11
|
import { OrmClient, SchemaDefinition, ModelDefinition, FieldBuilder, JsonValue, AnyModelDefinition, SchemaModels } from '@farming-labs/orm';
|
|
12
12
|
import { a as FarmDocsUserConfig, F as FarmDocsResolvedConfig } from './types-DFbjpjXX.js';
|
|
13
|
-
import { FarmObservabilityUserConfig } from './observability.js';
|
|
13
|
+
import { L as FarmObservabilityUserConfig } from './observability-BupkiN0m.js';
|
|
14
14
|
import * as vite from 'vite';
|
|
15
15
|
import { ViteDevServer, UserConfig, Plugin as Plugin$1, Connect } from 'vite';
|
|
16
16
|
import { k as FarmWorkflowsUserConfig, a as FarmServerConfig, F as FarmWorkflowsResolvedConfig, R as ResolvedFarmServerConfig } from './workflows-CR9ex-gz.js';
|
|
@@ -124,6 +124,10 @@ declare function renderFarmLlmsFullTxt(value: unknown, options: {
|
|
|
124
124
|
origin: string;
|
|
125
125
|
readMarkdown: (url: string) => Promise<string | null>;
|
|
126
126
|
concurrency?: number;
|
|
127
|
+
/** Milliseconds to wait for one page's Markdown before leaving it out. */
|
|
128
|
+
pageTimeout?: number;
|
|
129
|
+
/** Called when a page is left out because it did not answer in time. */
|
|
130
|
+
onIncomplete?: () => void;
|
|
127
131
|
}): Promise<string>;
|
|
128
132
|
/**
|
|
129
133
|
* Shares llms-full.txt renders, which read every listed page. Requests for the
|
|
@@ -131,12 +135,16 @@ declare function renderFarmLlmsFullTxt(value: unknown, options: {
|
|
|
131
135
|
* that result; renders run one at a time, so a burst of requests, even with
|
|
132
136
|
* varied Host headers, cannot multiply page renders. The content is the same for
|
|
133
137
|
* every caller: pages are read with fresh requests that carry no credentials.
|
|
138
|
+
* A render that calls `incomplete()`, because a page timed out, is answered but
|
|
139
|
+
* not reused, so the next request tries that page again.
|
|
134
140
|
*/
|
|
135
141
|
declare function createFarmLlmsFullRenderer(options?: {
|
|
136
142
|
revalidate?: number;
|
|
137
143
|
now?: () => number;
|
|
138
144
|
maxEntries?: number;
|
|
139
|
-
}): (origin: string, render: (
|
|
145
|
+
}): (origin: string, render: (shared: {
|
|
146
|
+
incomplete: () => void;
|
|
147
|
+
}) => Promise<string>, onSettled?: (complete: boolean) => void) => Promise<string>;
|
|
140
148
|
|
|
141
149
|
type ApplicationMetadataRouteKind = "sitemap" | "robots" | "manifest" | "llms" | "llms-full";
|
|
142
150
|
declare namespace MetadataRoute {
|
|
@@ -223,6 +231,8 @@ interface FarmMetadataRouteModule {
|
|
|
223
231
|
}
|
|
224
232
|
interface FarmMetadataRouteResponseOptions {
|
|
225
233
|
method?: string;
|
|
234
|
+
/** The request being answered, so llms.txt reads can be reported as agent traffic. */
|
|
235
|
+
request?: Request;
|
|
226
236
|
}
|
|
227
237
|
/** @internal */
|
|
228
238
|
declare function createFarmMetadataRouteResponse(kind: ApplicationMetadataRouteKind, value: unknown, routeModule?: FarmMetadataRouteModule, options?: FarmMetadataRouteResponseOptions): Response;
|
|
@@ -1165,6 +1175,71 @@ type FarmMCPTool = Readonly<EndpointMCPMetadata> & {
|
|
|
1165
1175
|
readonly method?: never;
|
|
1166
1176
|
readonly path?: never;
|
|
1167
1177
|
});
|
|
1178
|
+
/** What a resource's `read` receives: the URI asked for, its template variables, and the caller. */
|
|
1179
|
+
interface FarmMCPResourceContext extends FarmMCPExecuteContext {
|
|
1180
|
+
readonly uri: URL;
|
|
1181
|
+
/** Values matched by `uriTemplate`; empty for a fixed `uri`. */
|
|
1182
|
+
readonly variables: Readonly<Record<string, string | string[]>>;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* One piece of resource content: a string (sent as `mimeType`, or text/plain),
|
|
1186
|
+
* text with its own type, JSON data, or binary data.
|
|
1187
|
+
*/
|
|
1188
|
+
type FarmMCPResourceContent = string | {
|
|
1189
|
+
text: string;
|
|
1190
|
+
mimeType?: string;
|
|
1191
|
+
} | {
|
|
1192
|
+
json: unknown;
|
|
1193
|
+
} | {
|
|
1194
|
+
blob: Uint8Array | ArrayBuffer;
|
|
1195
|
+
mimeType?: string;
|
|
1196
|
+
};
|
|
1197
|
+
/** One concrete URI a templated resource lists. */
|
|
1198
|
+
interface FarmMCPResourceListing {
|
|
1199
|
+
uri: string;
|
|
1200
|
+
name?: string;
|
|
1201
|
+
title?: string;
|
|
1202
|
+
description?: string;
|
|
1203
|
+
mimeType?: string;
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* A server-only MCP resource: read-only context an agent can load, at a fixed
|
|
1207
|
+
* `uri` or at every URI matching an RFC 6570 `uriTemplate`.
|
|
1208
|
+
*/
|
|
1209
|
+
interface FarmMCPResource {
|
|
1210
|
+
/** Stable name, used in authorization and in `authorize`'s `resources` allowlist. */
|
|
1211
|
+
name: string;
|
|
1212
|
+
title?: string;
|
|
1213
|
+
description?: string;
|
|
1214
|
+
mimeType?: string;
|
|
1215
|
+
/** A fixed absolute URI, such as `docs://handbook`. Set this or `uriTemplate`. */
|
|
1216
|
+
uri?: string;
|
|
1217
|
+
/** An RFC 6570 template, such as `notes://{id}`. Set this or `uri`. */
|
|
1218
|
+
uriTemplate?: string;
|
|
1219
|
+
/** For a template: the concrete resources to list. Omit to list none. */
|
|
1220
|
+
list?(context: FarmMCPExecuteContext): readonly FarmMCPResourceListing[] | Promise<readonly FarmMCPResourceListing[]>;
|
|
1221
|
+
/** Return the content, or null when the URI names nothing. */
|
|
1222
|
+
read(context: FarmMCPResourceContext): FarmMCPResourceContent | readonly FarmMCPResourceContent[] | null | Promise<FarmMCPResourceContent | readonly FarmMCPResourceContent[] | null>;
|
|
1223
|
+
}
|
|
1224
|
+
interface FarmMCPPromptMessage {
|
|
1225
|
+
role: "user" | "assistant";
|
|
1226
|
+
text: string;
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
* A server-only MCP prompt: a reusable message template a client offers its
|
|
1230
|
+
* user. Arguments arrive as strings, as MCP sends them, and are validated by
|
|
1231
|
+
* `arguments` before `render` runs.
|
|
1232
|
+
*/
|
|
1233
|
+
interface FarmMCPPrompt<Schema extends RouteSchema | undefined = RouteSchema | undefined> {
|
|
1234
|
+
/** Stable name: 1-128 letters, numbers, dots, underscores, or hyphens. */
|
|
1235
|
+
name: string;
|
|
1236
|
+
title?: string;
|
|
1237
|
+
description?: string;
|
|
1238
|
+
/** An object schema of string arguments. */
|
|
1239
|
+
arguments?: Schema;
|
|
1240
|
+
/** Return the prompt text, sent as one user message, or a list of messages. */
|
|
1241
|
+
render(args: Schema extends RouteSchema ? RouteSchemaOutput<Schema> : Record<string, never>, context: FarmMCPExecuteContext): string | readonly FarmMCPPromptMessage[] | Promise<string | readonly FarmMCPPromptMessage[]>;
|
|
1242
|
+
}
|
|
1168
1243
|
interface FarmMCPServer {
|
|
1169
1244
|
readonly name: string;
|
|
1170
1245
|
readonly version: string;
|
|
@@ -1176,11 +1251,19 @@ interface FarmMCPAuthorization extends Record<string, unknown> {
|
|
|
1176
1251
|
scopes?: string[];
|
|
1177
1252
|
/** Allowed tool names for this request. Omit for all configured tools; [] denies all tools. */
|
|
1178
1253
|
tools?: readonly string[];
|
|
1254
|
+
/** Allowed resource names. Omit for all configured resources; [] denies all resources. */
|
|
1255
|
+
resources?: readonly string[];
|
|
1256
|
+
/** Allowed prompt names. Omit for all configured prompts; [] denies all prompts. */
|
|
1257
|
+
prompts?: readonly string[];
|
|
1179
1258
|
}
|
|
1180
1259
|
interface FarmMCPAuthorizeContext {
|
|
1181
1260
|
request: Request;
|
|
1182
1261
|
/** Untrusted requested name for a tools/call; authorization runs separately for every JSON-RPC batch item. */
|
|
1183
1262
|
tool?: string;
|
|
1263
|
+
/** Untrusted requested URI for a resources/read. */
|
|
1264
|
+
resource?: string;
|
|
1265
|
+
/** Untrusted requested name for a prompts/get. */
|
|
1266
|
+
prompt?: string;
|
|
1184
1267
|
/** Complete configured catalog, before applying this caller's permissions. */
|
|
1185
1268
|
tools: readonly FarmMCPTool[];
|
|
1186
1269
|
/** Resolved transport identity, for policies shared by multiple MCP endpoints. */
|
|
@@ -1197,6 +1280,10 @@ interface FarmMCPConfig {
|
|
|
1197
1280
|
version?: string;
|
|
1198
1281
|
/** Explicit endpoint/standalone tool allowlist. Omit to discover route-owned MCP metadata. */
|
|
1199
1282
|
tools?: readonly FarmMCPToolDefinition[];
|
|
1283
|
+
/** Read-only context for agents, from `defineResource()`. */
|
|
1284
|
+
resources?: readonly FarmMCPResource[];
|
|
1285
|
+
/** Reusable prompt templates, from `definePrompt()`. */
|
|
1286
|
+
prompts?: readonly FarmMCPPrompt<any>[];
|
|
1200
1287
|
/** Authorize every MCP request. Returning false responds with 401 before protocol handling. */
|
|
1201
1288
|
authorize?: (context: FarmMCPAuthorizeContext) => FarmMCPAuthorization | false | Promise<FarmMCPAuthorization | false>;
|
|
1202
1289
|
/** Deliberate escape hatch for public servers. Authentication is required by default. */
|
|
@@ -3173,4 +3260,4 @@ interface MetadataRobots extends MetadataRobotsDirectives {
|
|
|
3173
3260
|
googleBot?: string | MetadataRobotsDirectives;
|
|
3174
3261
|
}
|
|
3175
3262
|
|
|
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 };
|
|
3263
|
+
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 FarmPluginStateContext 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 FarmMCPPrompt as bL, type FarmMCPPromptMessage as bM, type FarmMCPResource as bN, type FarmMCPResourceContent as bO, type FarmMCPResourceContext as bP, type FarmMCPResourceListing as bQ, type FarmMCPUserConfig as bR, type ResolvedFarmMCPConfig as bS, type PluginRequestContext as bT, type FarmPluginIntegrationContext as bU, type FarmPluginLifecycle as bV, type FarmRequestPluginContext as bW, type FarmRequestStore as bX, type FarmPluginRuntimeKind as bY, type FarmPluginRouteRuntimePayload as bZ, type FarmPluginSetupContext 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 FarmIntegrationRouteInput as c$, type FarmPluginRuntimeBaseEvent as c0, type FarmPluginRuntimeContextEvent as c1, type FarmPluginRuntimeEndpoint as c2, type FarmPluginRuntimeEndpointEvent as c3, type FarmPluginRuntimeBeforeEvent as c4, type FarmPluginRuntimeAfterEvent as c5, type FarmPluginRuntimeErrorEvent as c6, type FarmPluginRuntimeStartEvent as c7, type FarmPluginRuntimeCloseEvent as c8, type FarmPluginRuntimeHooks as c9, type ImageConfig as cA, type I18nConfig as cB, type MiddlewareConfig as cC, type FarmDeployConfig as cD, type ResolvedFarmDeployConfig as cE, type FarmDeployTarget as cF, describeSchemaReference as cG, collectSchemaModels as cH, generateSqlStatements as cI, renderSqlSchemaFile as cJ, getSqlColumnType as cK, getSqlDefaultExpression as cL, isNullableField as cM, quoteSqlIdentifier as cN, toSnakeCase as cO, toPascalCase as cP, toCamelCase as cQ, escapeSqlString as cR, resolveSchemaModels as cS, type ResolvedSchemaModel as cT, type FarmIntegrationCategory as cU, type FarmIntegrationSlot as cV, type FarmIntegrationRouteParamValue as cW, type FarmIntegrationRouteParams as cX, type FarmIntegrationRouteMethod as cY, type FarmIntegrationRouteInputSource as cZ, type FarmIntegrationValidationPathSegment as c_, type FarmPluginRuntimeRequestOptions as ca, type FarmPluginRuntimeRequestHandler as cb, type FarmPluginRuntimeSession as cc, type FarmPluginDiscoveredRoute as cd, type FarmPluginRouterHooks as ce, type FarmPluginRenderHooks as cf, type FarmPluginBuildHooks as cg, type FarmPluginDevHooks as ch, type FarmPluginClientConfig as ci, type RouteDiscoveredPayload as cj, type RoutesGeneratedPayload as ck, type MiddlewareDiscoveredPayload as cl, type APIRouteDiscoveredPayload as cm, type RouteMatchPayload as cn, type RouteMatchResultPayload as co, type RenderLifecyclePayload as cp, type APIHandlerLifecyclePayload as cq, type ErrorLifecyclePayload as cr, type HMRUpdatePayload as cs, type BundleLifecyclePayload as ct, type NitroBuildLifecyclePayload as cu, type ShutdownPayload as cv, type ResolvedFarmConfig as cw, type RedirectConfig as cx, type HeaderConfig as cy, type RewriteConfig as cz, type FarmRedirectStatus as d, getIntegrationProviders as d$, type FarmIntegrationValidationIssue as d0, type FarmIntegrationValidationErrorLike as d1, type FarmIntegrationValidationResult as d2, type FarmIntegrationStandardValidationResult as d3, type FarmIntegrationInputSchema as d4, type FarmIntegrationRouteInputSchemas as d5, type FarmIntegrationRequestContextStore as d6, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as d7, FARM_INTEGRATION_SET_COOKIES_KEY as d8, forwardIntegrationSetCookies as d9, type FarmIntegrationSchemaConstraint as dA, type FarmIntegrationSchemaModel as dB, type FarmIntegrationSchemaModelExtension as dC, type FarmIntegrationSchemaModelOverride as dD, type FarmIntegrationSchema as dE, defineIntegrationSchema as dF, type FarmIntegrationLogPhase as dG, type FarmIntegrationLogEvent as dH, type FarmIntegrationLogger as dI, type FarmIntegrationPluginOwner as dJ, type FarmIntegrationContributedPlugin as dK, type FarmIntegrationsUserConfig as dL, getFarmIntegrationPluginServerRuntime as dM, getFarmIntegrationPluginOwner as dN, type FarmIntegrationRouteFactory as dO, type FarmIntegrationRoutesFactoryContext as dP, type FarmIntegrationRoutesFactory as dQ, type FarmIntegrationEndpointValue as dR, type FarmIntegrationEndpoints as dS, type FarmIntegrationEndpointsFactoryContext as dT, type FarmIntegrationEndpointsFactory as dU, createIntegrationRoute as dV, integrationRoute as dW, type DefinedIntegration as dX, defineIntegration as dY, isFarmIntegration as dZ, resolveIntegrationPlugins as d_, type FarmIntegrationRouteDb as da, type FarmIntegrationRouteStorageArgs as db, type FarmIntegrationRouteArgs as dc, type FarmIntegrationConfigContext as dd, type FarmIntegrationConfigDefinition as de, type FarmIntegrationConfigInput as df, type FarmIntegrationLifecycleLogLevel as dg, type FarmIntegrationLifecycleLogger as dh, type FarmIntegrationLifecycleContext as di, type FarmIntegrationLifecycleHook as dj, type FarmIntegrationData as dk, type FarmIntegrationHandlerContext as dl, type FarmIntegrationRouteHookContext as dm, type FarmIntegrationRouteHook as dn, type FarmIntegrationRoute as dp, type FarmTypedIntegrationRoute as dq, type FarmIntegrationRouteMiddleware as dr, type FarmIntegrationMiddleware as ds, type FarmIntegrationProviderProps as dt, type FarmIntegrationProviderComponentReference as du, type FarmIntegrationProvider as dv, type FarmIntegrationDocumentNavigation as dw, type FarmIntegrationSchemaFieldType as dx, type FarmIntegrationSchemaReference as dy, type FarmIntegrationSchemaField as dz, type FarmRequest as e, type FarmRouteRuntimeManifest as e$, isFarmIntegrationProviderComponentReference as e0, getIntegrationDocumentNavigationMatchers as e1, getIntegrationSchemas as e2, getRegisteredIntegrationRuntime as e3, getRegisteredIntegrations as e4, getRegisteredIntegrationSchemas as e5, matchIntegrationRoute as e6, matchRegisteredIntegrationRoute as e7, getRegisteredIntegrationAPIManifest as e8, dispatchIntegrationRequest as e9, resolveFarmAPIRequestURL as eA, type MiddlewareFunction as eB, type RequestMiddleware as eC, type RequestMiddlewareContext as eD, type MiddlewareStore as eE, type MiddlewareChain as eF, type CookieJar as eG, type CookieOptions as eH, type RateLimitConfig as eI, type RateLimitIncrementResult as eJ, type RateLimitStorage as eK, type RateLimitStatus as eL, type MemoryRateLimitStorageOptions as eM, type NextFunction as eN, type MiddlewareResult as eO, type FarmRouteRuleRenderMode as eP, type FarmRouteRuleRedirect as eQ, type FarmRouteRuleCors as eR, type FarmRouteRule as eS, type FarmRouteRules as eT, normalizeRouteRules as eU, routeRulesToRedirects as eV, routeRulesToHeaders as eW, routeRulesToNitroRouteRules as eX, type FarmRouteRuntimeEntryKind as eY, type FarmRouteRenderingMode as eZ, type FarmRouteRuntimeManifestEntry as e_, dispatchIntegrationRequests as ea, describeIntegrationOriginRejection as eb, resolveIntegrationAllowedOrigins as ec, validateIntegrationRequestOrigin as ed, type IntegrationOriginPolicy as ee, type IntegrationOriginRejection as ef, type IntegrationOriginResult as eg, type FarmIntegrationOrmSchema as eh, type FarmIntegrationOrmClient as ei, type InferFarmIntegrationOrmField as ej, type InferFarmIntegrationOrmFields as ek, type InferFarmIntegrationOrmSchema as el, type InferFarmIntegrationOrmClient as em, type CreateIntegrationOrmOptions as en, createIntegrationOrm as eo, resolveIntegrationOrmRuntimeClient as ep, farmIntegrationSchemaToOrmSchema as eq, type IntegrationOrmModelNames as er, DEFAULT_FARM_API_BASE_PATH as es, type FarmAPIConfigResolverContext as et, type FarmAPIConfigValue as eu, type FarmAPIConfig as ev, resolveFarmAPIConfig as ew, normalizeFarmAPIConfig as ex, normalizeFarmAPIBasePath as ey, getFarmAPIBaseURL as ez, type FarmResponse as f, normalizeFarmRouteRuntimeConfig as f0, mergeFarmRouteRuntimeConfigs as f1, resolveFarmRouteRuntimeConfig as f2, hasFarmRouteRuntimeControls as f3, getFarmRouteRuntimeConfig as f4, createFarmRouteRuntimeKey as f5, resolveFarmRouteRuleRuntimeConfig as f6, farmRouteRuleMatches as f7, DEFAULT_FARM_DEVTOOLS_SHORTCUT as f8, FARM_DEVTOOLS_PATH as f9, FARM_DEVTOOLS_LAUNCH_PARAM as fa, type FarmDevtoolsConfig as fb, type FarmDevtoolsUserConfig as fc, resolveFarmDevtoolsConfig as fd, type FarmBuildActivityPosition as fe, type FarmDevIndicatorsConfig as ff, resolveFarmDevIndicatorsConfig as fg, generateFarmDevIndicatorsClientRuntime as fh, farmI18nClientBridgePlugin as fi, farmServerOnlyEntriesPlugin as fj, withFarmRequestTracing as fk, rewriteEarlySsrRelativeImports as fl, transformIsolatedClientBoundaryModule as fm, shouldEmitFarmClientRootHmr as fn, generateClientCachePersistenceCode as fo, resolveFarmClientCacheAdapterEntry as fp, type ClientCachePersistenceEntryCode as fq, FARM_NODE_RESPONSE_END_PENDING as fr, loadFarmDevModule as fs, FarmDevEnvironmentError as ft, type FarmDevModuleServer as fu, 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 };
|