@farm.js/core 0.1.41 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp-D0eZKfci.d.ts → agent-mcp-SSD6L3VZ.d.ts} +1 -1
- package/dist/{agent-mcp-BOqIxJLI.d.mts → agent-mcp-ssVy_tea.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api.d.mts +3 -3
- package/dist/api.d.ts +3 -3
- package/dist/{app-CzTSMJaf.d.mts → app-1h3lVT4a.d.mts} +4 -4
- package/dist/{app-DM8e1z3G.d.ts → app-KjFzdCqy.d.ts} +4 -4
- package/dist/app-manifest-D3RkVNuS.d.mts +120 -0
- package/dist/app-manifest-DaW8-tvX.d.ts +120 -0
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{chunk-PYHPXPSW.mjs → chunk-2JZHQDUY.mjs} +1 -1
- package/dist/{chunk-R65GCA6A.mjs → chunk-375K2ZVU.mjs} +7 -7
- package/dist/{chunk-L6HYACBE.cjs → chunk-7YHSD3Z6.cjs} +77 -113
- package/dist/{chunk-EH3464KF.cjs → chunk-AHFRQMRX.cjs} +1 -1
- package/dist/{chunk-EX4MKHXN.cjs → chunk-BXJ5HJTJ.cjs} +7 -6
- package/dist/{chunk-BYQVROIP.mjs → chunk-DMRPN25V.mjs} +69 -0
- package/dist/{chunk-4C7KTKX7.mjs → chunk-IVQY6UTY.mjs} +1 -1
- package/dist/{chunk-3TB5QGUW.cjs → chunk-JAXDRRRC.cjs} +70 -1
- package/dist/{chunk-32TZ3QTP.cjs → chunk-JG3MEQUH.cjs} +85 -85
- package/dist/{chunk-ENOBPDKZ.mjs → chunk-NU25TRIO.mjs} +3 -2
- package/dist/{chunk-SVPGWJZF.mjs → chunk-PIZXONIS.mjs} +71 -107
- package/dist/{chunk-JOTUZIM4.cjs → chunk-QKZMB7LY.cjs} +2 -2
- package/dist/{chunk-FJGIVDA5.mjs → chunk-QTEJGB5A.mjs} +3 -3
- package/dist/{chunk-OQ4YXWH4.cjs → chunk-TCJ4A4A2.cjs} +57 -62
- package/dist/{chunk-BGGWKZ2V.mjs → chunk-TUL355PH.mjs} +6 -11
- package/dist/{chunk-VLPII2JJ.mjs → chunk-U2UC7UGP.mjs} +1 -1
- package/dist/{chunk-ROQ4C4LJ.cjs → chunk-ZATTDMBW.cjs} +48 -48
- package/dist/{chunk-PN676AZF.cjs → chunk-ZS6HDNOM.cjs} +6 -6
- package/dist/{client-plugins-CkYwvDJ0.d.mts → client-plugins-C9Py_50W.d.mts} +78 -6
- package/dist/{client-plugins-DfeKd0sD.d.ts → client-plugins-DIem0I0W.d.ts} +78 -6
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{devtools-2YHAJYH6.cjs → devtools-2RY3EKHL.cjs} +3 -3
- package/dist/{devtools-N3QLRIQU.mjs → devtools-Q3LBNUJ7.mjs} +2 -2
- package/dist/docs.cjs +4 -4
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +3 -3
- package/dist/index.cjs +9 -9
- package/dist/index.d.mts +14 -13
- package/dist/index.d.ts +14 -13
- package/dist/index.mjs +8 -8
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/build-runtime.cjs +9 -9
- package/dist/internal/build-runtime.d.mts +3 -3
- package/dist/internal/build-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.mjs +8 -8
- package/dist/internal/cli-runtime.cjs +3 -3
- package/dist/internal/cli-runtime.mjs +2 -2
- 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 +3 -3
- package/dist/internal/config-runtime.d.mts +2 -2
- package/dist/internal/config-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.mjs +2 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +5 -5
- package/dist/internal/production-runtime.d.mts +10 -127
- package/dist/internal/production-runtime.d.ts +10 -127
- package/dist/internal/production-runtime.mjs +4 -4
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.d.mts +3 -3
- package/dist/middleware.d.ts +3 -3
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/plugin.cjs +6 -6
- package/dist/plugin.d.mts +3 -3
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.mjs +5 -5
- package/dist/{production-runtime-BTkXQdYy.d.mts → production-runtime-CHFKIgpW.d.mts} +1 -1
- package/dist/{production-runtime-DFC7pgbp.d.ts → production-runtime-bjjWq-DA.d.ts} +1 -1
- package/dist/{render-plan-BoAK9xFC.d.ts → render-plan-B2UndB4x.d.ts} +1 -1
- package/dist/{render-plan-5rFeWmk7.d.mts → render-plan-DOHg6wdO.d.mts} +1 -1
- package/dist/renderer-client.d.mts +3 -3
- package/dist/renderer-client.d.ts +3 -3
- package/dist/{request-BxBWigtl.d.mts → request-DQcGfdgQ.d.mts} +1 -1
- package/dist/{request-fciwmd3n.d.ts → request-DVNXRQrI.d.ts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering-BLZT0IP0.d.ts → route-rendering-B_6fj-GG.d.ts} +1 -1
- package/dist/{route-rendering-BCM1QzEf.d.mts → route-rendering-CEX4mFn-.d.mts} +1 -1
- package/dist/{router-CkheNX3-.d.ts → router-CHEMHm1P.d.ts} +1 -1
- package/dist/{router-DyZJWc1_.d.mts → router-CKHPBKXX.d.mts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/{runtime-DfU4sKa5.d.ts → runtime-Br2ZDTAv.d.ts} +1 -1
- package/dist/{runtime-wexvUN5J.d.mts → runtime-jj8TKNsy.d.mts} +1 -1
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server.cjs +22 -22
- package/dist/server.d.mts +9 -9
- package/dist/server.d.ts +9 -9
- package/dist/server.mjs +6 -6
- package/dist/{spa-router-DgsMXqfX.d.mts → spa-router-BEvS9Erj.d.mts} +2 -2
- package/dist/{spa-router-CcejECnG.d.ts → spa-router-DmCuH5B7.d.ts} +2 -2
- package/dist/{ssg-Bg4bMMhM.d.mts → ssg-57v6cZcW.d.mts} +2 -2
- package/dist/{ssg-1FGaFISl.d.ts → ssg-gT093ETk.d.ts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils-Dxbh6Hgj.d.ts → utils-CCTKvR-P.d.ts} +1 -1
- package/dist/{utils-8wtTYiH4.d.mts → utils-raHHQVyL.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.mts +4 -4
- package/dist/vite.d.ts +4 -4
- package/dist/vite.mjs +5 -5
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ var _chunkQEILRWVVcjs = require('./chunk-QEILRWVV.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk7YHSD3Z6cjs = require('./chunk-7YHSD3Z6.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
@@ -81,7 +81,7 @@ var _chunkPSV6XKPOcjs = require('./chunk-PSV6XKPO.cjs');
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
var
|
|
84
|
+
var _chunkJAXDRRRCcjs = require('./chunk-JAXDRRRC.cjs');
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
@@ -237,7 +237,7 @@ var _chunk5NAVKJCZcjs = require('./chunk-5NAVKJCZ.cjs');
|
|
|
237
237
|
var _chunk4TLUFAIPcjs = require('./chunk-4TLUFAIP.cjs');
|
|
238
238
|
|
|
239
239
|
|
|
240
|
-
var
|
|
240
|
+
var _chunkAHFRQMRXcjs = require('./chunk-AHFRQMRX.cjs');
|
|
241
241
|
|
|
242
242
|
|
|
243
243
|
|
|
@@ -1956,8 +1956,8 @@ var _RouteManager = class _RouteManager {
|
|
|
1956
1956
|
)
|
|
1957
1957
|
);
|
|
1958
1958
|
this.orderedLayouts = Array.from(this.layouts.values()).sort(
|
|
1959
|
-
(left, right) =>
|
|
1960
|
-
).map((entry) => ({ entry, groupScope:
|
|
1959
|
+
(left, right) => _chunk7YHSD3Z6cjs.getRouteDirectoryDepth.call(void 0, left.pattern) - _chunk7YHSD3Z6cjs.getRouteDirectoryDepth.call(void 0, right.pattern)
|
|
1960
|
+
).map((entry) => ({ entry, groupScope: _chunk7YHSD3Z6cjs.getRouteGroupScope.call(void 0, entry.pattern) }));
|
|
1961
1961
|
for (const slot of this.routeSlots.values()) {
|
|
1962
1962
|
if (!this.routeSlotOwnerSegments.has(slot.ownerPattern)) {
|
|
1963
1963
|
this.routeSlotOwnerSegments.set(
|
|
@@ -2270,15 +2270,15 @@ var _RouteManager = class _RouteManager {
|
|
|
2270
2270
|
enforceFarmIsolatedHydrationRouteBudget(
|
|
2271
2271
|
layoutEntries.map(({ entry, metadata }) => ({
|
|
2272
2272
|
pattern: entry.pattern,
|
|
2273
|
-
depth:
|
|
2273
|
+
depth: _chunk7YHSD3Z6cjs.getRouteDirectoryDepth.call(void 0, entry.pattern),
|
|
2274
2274
|
metadata
|
|
2275
2275
|
})),
|
|
2276
2276
|
routeEntries.map(({ entry, metadata }) => ({
|
|
2277
2277
|
pattern: getRouteEntryDirectory(entry),
|
|
2278
|
-
depth:
|
|
2278
|
+
depth: _chunk7YHSD3Z6cjs.getRouteDirectoryDepth.call(void 0, getRouteEntryDirectory(entry)),
|
|
2279
2279
|
metadata
|
|
2280
2280
|
})),
|
|
2281
|
-
|
|
2281
|
+
_chunk7YHSD3Z6cjs.routeBoundaryCoversDirectory
|
|
2282
2282
|
);
|
|
2283
2283
|
for (const { entry, metadata } of [...layoutEntries, ...routeEntries]) {
|
|
2284
2284
|
if (!metadata.costGuardExceeded) continue;
|
|
@@ -2297,7 +2297,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2297
2297
|
const routes = routeEntries.map(({ entry, metadata }) => {
|
|
2298
2298
|
const programmaticPage = this.programmaticPages.get(entry.modulePath);
|
|
2299
2299
|
const layoutShouldHydrate = layoutEntries.some(
|
|
2300
|
-
({ entry: layout, metadata: layoutMetadata }) => layoutMetadata.shouldHydrate &&
|
|
2300
|
+
({ entry: layout, metadata: layoutMetadata }) => layoutMetadata.shouldHydrate && _chunk7YHSD3Z6cjs.routeBoundaryCoversDirectory.call(void 0, layout.pattern, getRouteEntryDirectory(entry))
|
|
2301
2301
|
);
|
|
2302
2302
|
return {
|
|
2303
2303
|
pattern: entry.pattern,
|
|
@@ -2479,7 +2479,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2479
2479
|
*/
|
|
2480
2480
|
createRoutePattern(route) {
|
|
2481
2481
|
if (route.segments.length === 0) return "/";
|
|
2482
|
-
return "/" + route.segments.map(
|
|
2482
|
+
return "/" + route.segments.map(_chunk7YHSD3Z6cjs.formatRouteSegment).join("/");
|
|
2483
2483
|
}
|
|
2484
2484
|
registerPageRoute(entry) {
|
|
2485
2485
|
_chunkNO3WWW3Ncjs.assertUniqueRouteParameters.call(void 0, entry.pattern);
|
|
@@ -2573,7 +2573,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2573
2573
|
for (const file of files) {
|
|
2574
2574
|
const route = _chunk5QIKR7RRcjs.parseRoutePath.call(void 0, file);
|
|
2575
2575
|
const modulePath = path4.default.join(appDir, file);
|
|
2576
|
-
const pattern =
|
|
2576
|
+
const pattern = _chunk7YHSD3Z6cjs.createRouteDirectoryPattern.call(void 0, route);
|
|
2577
2577
|
const existing = target.get(pattern);
|
|
2578
2578
|
if (_optionalChain([existing, 'optionalAccess', _129 => _129.sourceRoot]) === source.root) {
|
|
2579
2579
|
throw new Error(
|
|
@@ -2595,7 +2595,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2595
2595
|
const modulePath = path4.default.join(appDir, file);
|
|
2596
2596
|
const pattern = this.createRoutePattern(slot.route);
|
|
2597
2597
|
const ownerPattern = this.createRoutePattern(slot.ownerRoute);
|
|
2598
|
-
const ownerDirectory =
|
|
2598
|
+
const ownerDirectory = _chunk7YHSD3Z6cjs.createRouteDirectoryPattern.call(void 0, slot.ownerRoute);
|
|
2599
2599
|
const key = `${ownerPattern}:${slot.name}:${slot.interception ? "intercept" : "slot"}:${slot.fallback ? "default" : pattern}`;
|
|
2600
2600
|
const existing = this.routeSlots.get(key);
|
|
2601
2601
|
if (_optionalChain([existing, 'optionalAccess', _130 => _130.sourceRoot]) === source.root) {
|
|
@@ -2712,7 +2712,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2712
2712
|
}
|
|
2713
2713
|
if (definition.kind === "layout") {
|
|
2714
2714
|
const route = _chunkCGVPXIRNcjs.parseProgrammaticRoutePath.call(void 0, definition.path, "layout");
|
|
2715
|
-
const pattern =
|
|
2715
|
+
const pattern = _chunk7YHSD3Z6cjs.createRouteDirectoryPattern.call(void 0, route);
|
|
2716
2716
|
const existing = this.layouts.get(pattern);
|
|
2717
2717
|
if (_optionalChain([existing, 'optionalAccess', _134 => _134.sourceRoot]) === source.root) {
|
|
2718
2718
|
throw new Error(
|
|
@@ -2759,7 +2759,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2759
2759
|
const matchingLayouts = [];
|
|
2760
2760
|
for (const { entry, groupScope } of this.orderedLayouts) {
|
|
2761
2761
|
if (!_chunk5QIKR7RRcjs.matchRoutePrefixParts.call(void 0, pathnameParts, entry.route.segments)) continue;
|
|
2762
|
-
if (groupScope !== null && !
|
|
2762
|
+
if (groupScope !== null && !_chunk7YHSD3Z6cjs.isInRouteGroupScope.call(void 0, route && getRouteEntryDirectory(route), groupScope)) {
|
|
2763
2763
|
continue;
|
|
2764
2764
|
}
|
|
2765
2765
|
matchingLayouts.push(entry);
|
|
@@ -2840,14 +2840,14 @@ var _RouteManager = class _RouteManager {
|
|
|
2840
2840
|
let page = route;
|
|
2841
2841
|
for (const boundaryEntry of boundaries.values()) {
|
|
2842
2842
|
if (!_chunk5QIKR7RRcjs.matchRoutePrefix.call(void 0, normalizedPath, boundaryEntry.route.segments)) continue;
|
|
2843
|
-
const groupScope =
|
|
2843
|
+
const groupScope = _chunk7YHSD3Z6cjs.getRouteGroupScope.call(void 0, boundaryEntry.pattern);
|
|
2844
2844
|
if (groupScope !== null) {
|
|
2845
2845
|
if (page === void 0) page = this.matchPageRoute(_chunk5QIKR7RRcjs.splitRoutePath.call(void 0, normalizedPath));
|
|
2846
|
-
if (!
|
|
2846
|
+
if (!_chunk7YHSD3Z6cjs.isInRouteGroupScope.call(void 0, page && getRouteEntryDirectory(page), groupScope)) continue;
|
|
2847
2847
|
}
|
|
2848
2848
|
const depth = boundaryEntry.route.segments.length;
|
|
2849
2849
|
const bestDepth = _nullishCoalesce(_optionalChain([bestMatch, 'optionalAccess', _138 => _138.route, 'access', _139 => _139.segments, 'access', _140 => _140.length]), () => ( -1));
|
|
2850
|
-
if (!bestMatch || depth > bestDepth || depth === bestDepth &&
|
|
2850
|
+
if (!bestMatch || depth > bestDepth || depth === bestDepth && _chunk7YHSD3Z6cjs.getRouteDirectoryDepth.call(void 0, boundaryEntry.pattern) > _chunk7YHSD3Z6cjs.getRouteDirectoryDepth.call(void 0, bestMatch.pattern)) {
|
|
2851
2851
|
bestMatch = boundaryEntry;
|
|
2852
2852
|
}
|
|
2853
2853
|
}
|
|
@@ -2963,7 +2963,7 @@ var _RouteManager = class _RouteManager {
|
|
|
2963
2963
|
_chunkS3JO3N4Hcjs.__name.call(void 0, _RouteManager, "RouteManager");
|
|
2964
2964
|
var RouteManager = _RouteManager;
|
|
2965
2965
|
function getPageDirectoryField(route, pattern) {
|
|
2966
|
-
const directory =
|
|
2966
|
+
const directory = _chunk7YHSD3Z6cjs.createRouteDirectoryPattern.call(void 0, route);
|
|
2967
2967
|
return directory === pattern ? {} : { directory };
|
|
2968
2968
|
}
|
|
2969
2969
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getPageDirectoryField, "getPageDirectoryField");
|
|
@@ -4631,7 +4631,7 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, appendResponseVary, "appendResponseVary");
|
|
|
4631
4631
|
function renderI18nAlternateLinks(requestPath, snapshot, options) {
|
|
4632
4632
|
if (snapshot.routing === "none") return "";
|
|
4633
4633
|
const url = new URL(requestPath, "http://farm.local");
|
|
4634
|
-
return
|
|
4634
|
+
return _chunk7YHSD3Z6cjs.renderFarmLocaleAlternateLinks.call(void 0, url.pathname, snapshot, options);
|
|
4635
4635
|
}
|
|
4636
4636
|
_chunkS3JO3N4Hcjs.__name.call(void 0, renderI18nAlternateLinks, "renderI18nAlternateLinks");
|
|
4637
4637
|
var PPR_REFRESH_MAX_ATTEMPTS = 3;
|
|
@@ -5920,7 +5920,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
5920
5920
|
}
|
|
5921
5921
|
}
|
|
5922
5922
|
_chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, { type: "render.error", route: pathname, error });
|
|
5923
|
-
const errorStatus =
|
|
5923
|
+
const errorStatus = _chunk7YHSD3Z6cjs.resolveDefaultErrorStatus.call(void 0, error);
|
|
5924
5924
|
if (pprRefreshRoute) {
|
|
5925
5925
|
_chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, {
|
|
5926
5926
|
type: "ppr.refresh.error",
|
|
@@ -6148,7 +6148,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6148
6148
|
origin: url.origin,
|
|
6149
6149
|
readMarkdown: llmsContext.markdown
|
|
6150
6150
|
}) : value;
|
|
6151
|
-
const response =
|
|
6151
|
+
const response = _chunk7YHSD3Z6cjs.createFarmMetadataRouteResponse.call(void 0, match.metadata.kind, body, routeModule, {
|
|
6152
6152
|
method,
|
|
6153
6153
|
request: request2
|
|
6154
6154
|
});
|
|
@@ -6184,7 +6184,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6184
6184
|
}) : context.defaults;
|
|
6185
6185
|
await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0,
|
|
6186
6186
|
res,
|
|
6187
|
-
|
|
6187
|
+
_chunk7YHSD3Z6cjs.createFarmMetadataRouteResponse.call(void 0,
|
|
6188
6188
|
kind,
|
|
6189
6189
|
body,
|
|
6190
6190
|
{ revalidate: config.revalidate },
|
|
@@ -6203,7 +6203,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6203
6203
|
}
|
|
6204
6204
|
}
|
|
6205
6205
|
getAgentCrawlers() {
|
|
6206
|
-
return
|
|
6206
|
+
return _chunkJAXDRRRCcjs.resolveFarmAgentCrawlers.call(void 0, _optionalChain([this, 'access', _214 => _214.config, 'access', _215 => _215.agent, 'optionalAccess', _216 => _216.crawlers]));
|
|
6207
6207
|
}
|
|
6208
6208
|
/** `/robots.txt` from `agent.crawlers` when no robots.ts owns it. */
|
|
6209
6209
|
async renderGeneratedRobotsTxt(req, res) {
|
|
@@ -6211,7 +6211,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6211
6211
|
const sitemapPath = _optionalChain([this, 'access', _217 => _217.routeManager, 'access', _218 => _218.matchMetadataRoute, 'call', _219 => _219("/sitemap.xml"), 'optionalAccess', _220 => _220.metadata, 'access', _221 => _221.kind]) === "sitemap" || this.getAgentSitemap().enabled ? "/sitemap.xml" : void 0;
|
|
6212
6212
|
const rootLayout = this.routeManager.getLayouts().get("/");
|
|
6213
6213
|
const rootMetadata = sitemapPath && rootLayout ? (await this.routeManager.loadLayoutModule(rootLayout.modulePath)).metadata : void 0;
|
|
6214
|
-
const robots =
|
|
6214
|
+
const robots = _chunkJAXDRRRCcjs.createFarmAgentRobots.call(void 0, {
|
|
6215
6215
|
crawlers: this.getAgentCrawlers(),
|
|
6216
6216
|
sitemapPath,
|
|
6217
6217
|
metadataBase: _optionalChain([rootMetadata, 'optionalAccess', _222 => _222.metadataBase]),
|
|
@@ -6219,7 +6219,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6219
6219
|
});
|
|
6220
6220
|
await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0,
|
|
6221
6221
|
res,
|
|
6222
|
-
|
|
6222
|
+
_chunk7YHSD3Z6cjs.createFarmMetadataRouteResponse.call(void 0, "robots", robots, {}, { method: req.method })
|
|
6223
6223
|
);
|
|
6224
6224
|
} catch (error) {
|
|
6225
6225
|
_chunk5QIKR7RRcjs.logger.error(`Generated robots.txt failed: ${error}`);
|
|
@@ -6233,7 +6233,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6233
6233
|
}
|
|
6234
6234
|
}
|
|
6235
6235
|
getAgentSitemap() {
|
|
6236
|
-
return
|
|
6236
|
+
return _chunkJAXDRRRCcjs.resolveFarmAgentSitemap.call(void 0, _optionalChain([this, 'access', _223 => _223.config, 'access', _224 => _224.agent, 'optionalAccess', _225 => _225.sitemap]));
|
|
6237
6237
|
}
|
|
6238
6238
|
/** `/sitemap.xml` from `agent.sitemap` when no sitemap.ts owns it. */
|
|
6239
6239
|
async renderGeneratedSitemap(req, res) {
|
|
@@ -6255,7 +6255,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6255
6255
|
);
|
|
6256
6256
|
const rootLayout = this.routeManager.getLayouts().get("/");
|
|
6257
6257
|
const rootMetadata = rootLayout ? (await this.routeManager.loadLayoutModule(rootLayout.modulePath)).metadata : void 0;
|
|
6258
|
-
const sitemap =
|
|
6258
|
+
const sitemap = _chunkJAXDRRRCcjs.createFarmDefaultSitemap.call(void 0, sources, {
|
|
6259
6259
|
origin: new URL(request2.url).origin,
|
|
6260
6260
|
config: this.getAgentSitemap(),
|
|
6261
6261
|
metadataBase: _optionalChain([rootMetadata, 'optionalAccess', _232 => _232.metadataBase]),
|
|
@@ -6263,7 +6263,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6263
6263
|
});
|
|
6264
6264
|
await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0,
|
|
6265
6265
|
res,
|
|
6266
|
-
|
|
6266
|
+
_chunk7YHSD3Z6cjs.createFarmMetadataRouteResponse.call(void 0, "sitemap", sitemap, {}, { method: req.method })
|
|
6267
6267
|
);
|
|
6268
6268
|
} catch (error) {
|
|
6269
6269
|
_chunk5QIKR7RRcjs.logger.error(`Generated sitemap.xml failed: ${error}`);
|
|
@@ -6292,7 +6292,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6292
6292
|
getAgentListedRoutes() {
|
|
6293
6293
|
const guards = { config: this.config, middlewareRoutes: _nullishCoalesce(_optionalChain([this, 'access', _233 => _233.middlewareRoutes, 'optionalCall', _234 => _234()]), () => ( [])) };
|
|
6294
6294
|
return [...this.routeManager.getRoutes()].filter(
|
|
6295
|
-
([pattern]) => !pattern.includes("[") && !
|
|
6295
|
+
([pattern]) => !pattern.includes("[") && !_chunk7YHSD3Z6cjs.farmPathGuardCoversPage.call(void 0, guards, pattern)
|
|
6296
6296
|
);
|
|
6297
6297
|
}
|
|
6298
6298
|
/**
|
|
@@ -6306,7 +6306,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6306
6306
|
if (this.routeManager.matchRoute(_chunkBMOBTMDRcjs.FARM_DEFAULT_MCP_PATH).route) return void 0;
|
|
6307
6307
|
_nullishCoalesce(this.defaultMCPServer, () => ( (this.defaultMCPServer = _chunkBMOBTMDRcjs.createFarmDefaultMCPServer.call(void 0,
|
|
6308
6308
|
readAppPackageIdentity(this.config.root),
|
|
6309
|
-
|
|
6309
|
+
_chunkAHFRQMRXcjs.FARM_VERSION
|
|
6310
6310
|
))));
|
|
6311
6311
|
return _chunkBMOBTMDRcjs.resolveFarmDefaultMCPServer.call(void 0, this.defaultMCPServer);
|
|
6312
6312
|
}
|
|
@@ -6388,7 +6388,7 @@ var _ServerRenderer = class _ServerRenderer {
|
|
|
6388
6388
|
pages,
|
|
6389
6389
|
config,
|
|
6390
6390
|
rootMetadata,
|
|
6391
|
-
mcp: _optionalChain([this, 'access', _246 => _246.config, 'access', _247 => _247.agent, 'optionalAccess', _248 => _248.aiCatalog]) === false ? [] :
|
|
6391
|
+
mcp: _optionalChain([this, 'access', _246 => _246.config, 'access', _247 => _247.agent, 'optionalAccess', _248 => _248.aiCatalog]) === false ? [] : _chunk7YHSD3Z6cjs.listFarmMCPLlmsTxtLinks.call(void 0, origin, {
|
|
6392
6392
|
basePath: this.config.basePath,
|
|
6393
6393
|
apiServerBasePath: _chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath.call(void 0,
|
|
6394
6394
|
_chunkS3A45T7Fcjs.normalizeFarmAPIConfig.call(void 0,
|
|
@@ -6687,19 +6687,19 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
6687
6687
|
i18nSnapshot,
|
|
6688
6688
|
this.getI18nAlternateOptions(req, req.__FARM_METADATA__)
|
|
6689
6689
|
) : "";
|
|
6690
|
-
const themeDocument =
|
|
6690
|
+
const themeDocument = _chunk7YHSD3Z6cjs.createFarmThemeDocumentParts.call(void 0,
|
|
6691
6691
|
this.config.theme,
|
|
6692
6692
|
this.config.basePath,
|
|
6693
6693
|
_chunk2FUIT2G2cjs.getTheme.call(void 0, )
|
|
6694
6694
|
);
|
|
6695
6695
|
themeDocument.head = farmScripts(themeDocument.head);
|
|
6696
|
-
const fullDocument =
|
|
6696
|
+
const fullDocument = _chunk7YHSD3Z6cjs.extractFarmFullDocument.call(void 0, content);
|
|
6697
6697
|
let html;
|
|
6698
6698
|
if (fullDocument) {
|
|
6699
6699
|
const shouldReplaceLayoutTitle = hasExplicitTitle || rendererHasTitle;
|
|
6700
|
-
const documentHtml = shouldReplaceLayoutTitle ?
|
|
6701
|
-
const effectiveRendererHead = hasExplicitTitle ?
|
|
6702
|
-
html =
|
|
6700
|
+
const documentHtml = shouldReplaceLayoutTitle ? _chunk7YHSD3Z6cjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument;
|
|
6701
|
+
const effectiveRendererHead = hasExplicitTitle ? _chunk7YHSD3Z6cjs.removeFarmDocumentTitles.call(void 0, rendererHead) : rendererHead;
|
|
6702
|
+
html = _chunk7YHSD3Z6cjs.composeFarmFullDocument.call(void 0, documentHtml, {
|
|
6703
6703
|
fallbackIcon: !hasFavicon,
|
|
6704
6704
|
viewport: viewportTags,
|
|
6705
6705
|
htmlAttributes: `${i18nSnapshot ? ` lang="${escapeHtmlAttribute2(i18nSnapshot.locale)}" dir="${escapeHtmlAttribute2(i18nSnapshot.direction)}"` : ""}${themeDocument.attributes}`,
|
|
@@ -6927,7 +6927,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
6927
6927
|
this.getI18nAlternateOptions(req, req.__FARM_METADATA__)
|
|
6928
6928
|
) : "";
|
|
6929
6929
|
const fontHead = renderFarmFontDevHead(this.config.root || process.cwd());
|
|
6930
|
-
const themeDocument =
|
|
6930
|
+
const themeDocument = _chunk7YHSD3Z6cjs.createFarmThemeDocumentParts.call(void 0,
|
|
6931
6931
|
this.config.theme,
|
|
6932
6932
|
this.config.basePath,
|
|
6933
6933
|
_chunk2FUIT2G2cjs.getTheme.call(void 0, )
|
|
@@ -6990,7 +6990,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
6990
6990
|
if (!chunkText) return;
|
|
6991
6991
|
if (!checkedFullDocument) {
|
|
6992
6992
|
documentPrefix += chunkText;
|
|
6993
|
-
const prefix =
|
|
6993
|
+
const prefix = _chunk7YHSD3Z6cjs.classifyFarmDocumentPrefix.call(void 0, documentPrefix);
|
|
6994
6994
|
if (prefix !== "pending") {
|
|
6995
6995
|
checkedFullDocument = true;
|
|
6996
6996
|
documentPrefix = "";
|
|
@@ -7187,7 +7187,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7187
7187
|
*/
|
|
7188
7188
|
async createLateNavigationRecoveryHTML(req, error) {
|
|
7189
7189
|
if (_chunkOX6O6WVAcjs.isFarmRedirectError.call(void 0, error)) {
|
|
7190
|
-
return
|
|
7190
|
+
return _chunk7YHSD3Z6cjs.createLateRedirectRecovery.call(void 0,
|
|
7191
7191
|
this.localizeRedirectUrl(_chunkOX6O6WVAcjs.getFarmRedirectError.call(void 0, error).url),
|
|
7192
7192
|
this.getCspNonce(req) || ""
|
|
7193
7193
|
);
|
|
@@ -7209,7 +7209,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7209
7209
|
_chunk5QIKR7RRcjs.logger.warn(`not-found page could not render outside its layout, using Farm's: ${error2}`);
|
|
7210
7210
|
}
|
|
7211
7211
|
}
|
|
7212
|
-
return
|
|
7212
|
+
return _chunk7YHSD3Z6cjs.createLateNotFoundRecovery.call(void 0, content, this.getCspNonce(req) || "");
|
|
7213
7213
|
}
|
|
7214
7214
|
async render404(req, res) {
|
|
7215
7215
|
res.statusCode = 404;
|
|
@@ -7287,10 +7287,10 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7287
7287
|
trustProxy: _optionalChain([this, 'access', _293 => _293.config, 'access', _294 => _294.server, 'optionalAccess', _295 => _295.trustProxy])
|
|
7288
7288
|
});
|
|
7289
7289
|
const diagnostics = isDev ? createDefaultErrorDiagnostics(error, this.config.root || process.cwd()) : void 0;
|
|
7290
|
-
const statusText =
|
|
7290
|
+
const statusText = _chunk7YHSD3Z6cjs.getDefaultErrorStatusText.call(void 0, statusCode);
|
|
7291
7291
|
const content = this.stampFarmScripts(
|
|
7292
7292
|
req,
|
|
7293
|
-
|
|
7293
|
+
_chunk7YHSD3Z6cjs.createDefaultErrorMarkup.call(void 0, {
|
|
7294
7294
|
statusCode,
|
|
7295
7295
|
statusText,
|
|
7296
7296
|
requestPath: requestUrl.pathname,
|
|
@@ -7300,7 +7300,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7300
7300
|
stack: _optionalChain([diagnostics, 'optionalAccess', _298 => _298.stack]),
|
|
7301
7301
|
sourceFrame: _optionalChain([diagnostics, 'optionalAccess', _299 => _299.sourceFrame]),
|
|
7302
7302
|
development: isDev,
|
|
7303
|
-
farmVersion:
|
|
7303
|
+
farmVersion: _chunkAHFRQMRXcjs.FARM_VERSION,
|
|
7304
7304
|
nodeVersion: process.version,
|
|
7305
7305
|
mode: isDev ? "development" : "production"
|
|
7306
7306
|
})
|
|
@@ -7346,7 +7346,7 @@ ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};`
|
|
|
7346
7346
|
this.getI18nAlternateOptions(alternates.req, alternates.metadata)
|
|
7347
7347
|
) : "";
|
|
7348
7348
|
const fontHead = renderFarmFontDevHead(this.config.root || process.cwd());
|
|
7349
|
-
const themeDocument =
|
|
7349
|
+
const themeDocument = _chunk7YHSD3Z6cjs.createFarmThemeDocumentParts.call(void 0,
|
|
7350
7350
|
this.config.theme,
|
|
7351
7351
|
this.config.basePath,
|
|
7352
7352
|
_chunk2FUIT2G2cjs.getTheme.call(void 0, )
|
|
@@ -7356,10 +7356,10 @@ ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};`
|
|
|
7356
7356
|
_optionalChain([this, 'access', _304 => _304.rendererRuntime, 'access', _305 => _305.generateHydrationScript, 'optionalCall', _306 => _306()]) || ""
|
|
7357
7357
|
);
|
|
7358
7358
|
const viewportTags = _chunkLZESP4IRcjs.renderViewportHead.call(void 0, _optionalChain([alternates, 'access', _307 => _307.metadata, 'optionalAccess', _308 => _308.viewport]));
|
|
7359
|
-
const fullDocument =
|
|
7359
|
+
const fullDocument = _chunk7YHSD3Z6cjs.extractFarmFullDocument.call(void 0, content);
|
|
7360
7360
|
if (fullDocument) {
|
|
7361
|
-
return
|
|
7362
|
-
metadataHead ?
|
|
7361
|
+
return _chunk7YHSD3Z6cjs.composeFarmFullDocument.call(void 0,
|
|
7362
|
+
metadataHead ? _chunk7YHSD3Z6cjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument,
|
|
7363
7363
|
{
|
|
7364
7364
|
fallbackIcon: !metadataHead,
|
|
7365
7365
|
viewport: viewportTags,
|
|
@@ -7530,7 +7530,7 @@ var _FarmApp = class _FarmApp {
|
|
|
7530
7530
|
serverActions: _chunkP4TYB4SFcjs.resolveServerActionsConfig.call(void 0, config.serverActions),
|
|
7531
7531
|
security: _chunk25LPIZSXcjs.resolveFarmSecurityConfig.call(void 0, config.security),
|
|
7532
7532
|
images: _chunkYFPGHF5Fcjs.resolveFarmImageConfig.call(void 0, config.images),
|
|
7533
|
-
performance:
|
|
7533
|
+
performance: _chunkJAXDRRRCcjs.resolveFarmPerformanceConfig.call(void 0, config.performance),
|
|
7534
7534
|
theme: _chunkOI6CMLWXcjs.resolveFarmThemeConfig.call(void 0, config.theme, basePath),
|
|
7535
7535
|
i18n: isResolvedI18nConfig(config.i18n) ? config.i18n : _chunkHLJ6MBUZcjs.resolveFarmI18nConfig.call(void 0, config.i18n, {
|
|
7536
7536
|
root,
|
|
@@ -7,7 +7,7 @@ var _chunkPCOTGFSMcjs = require('./chunk-PCOTGFSM.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk7YHSD3Z6cjs = require('./chunk-7YHSD3Z6.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -59,7 +59,7 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
|
|
|
59
59
|
return {
|
|
60
60
|
layout,
|
|
61
61
|
segments: segments.length === 0 ? null : segments,
|
|
62
|
-
groupScope:
|
|
62
|
+
groupScope: _chunk7YHSD3Z6cjs.getRouteGroupScope.call(void 0, layout.pattern)
|
|
63
63
|
};
|
|
64
64
|
});
|
|
65
65
|
return (pathname, routeDirectory) => {
|
|
@@ -73,7 +73,7 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
|
|
|
73
73
|
}
|
|
74
74
|
if (groupScope !== null) {
|
|
75
75
|
if (directory === void 0) directory = _nullishCoalesce(_optionalChain([resolveRouteDirectory, 'optionalCall', _2 => _2(pathname)]), () => ( null));
|
|
76
|
-
if (!
|
|
76
|
+
if (!_chunk7YHSD3Z6cjs.isInRouteGroupScope.call(void 0, directory, groupScope)) continue;
|
|
77
77
|
}
|
|
78
78
|
applicable.push(layout);
|
|
79
79
|
}
|
|
@@ -82,9 +82,9 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
|
|
|
82
82
|
}
|
|
83
83
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createFarmLayoutSelector, "createFarmLayoutSelector");
|
|
84
84
|
function layoutsCanCoverSamePage(a, b) {
|
|
85
|
-
const scopeA =
|
|
86
|
-
const scopeB =
|
|
87
|
-
if (scopeA !== null && scopeB !== null && !
|
|
85
|
+
const scopeA = _chunk7YHSD3Z6cjs.getRouteGroupScope.call(void 0, a);
|
|
86
|
+
const scopeB = _chunk7YHSD3Z6cjs.getRouteGroupScope.call(void 0, b);
|
|
87
|
+
if (scopeA !== null && scopeB !== null && !_chunk7YHSD3Z6cjs.isInRouteGroupScope.call(void 0, scopeA, scopeB) && !_chunk7YHSD3Z6cjs.isInRouteGroupScope.call(void 0, scopeB, scopeA)) {
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
90
|
const segmentsA = a === "/" ? [] : _chunkPCOTGFSMcjs.parseRoutePattern.call(void 0, a);
|
|
@@ -24,6 +24,76 @@ import { FarmCacheUserConfig } from './cache.mjs';
|
|
|
24
24
|
import { R as ResolvedFarmThemeConfig, d as FarmThemeConfig } from './types-DQnyD3VD.mjs';
|
|
25
25
|
import { FarmLayoutFonts } from './font.mjs';
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* `agent.manifest`: which sections `/.well-known/farmjs.json` shows. Every section is shown by
|
|
29
|
+
* default; a section set to `false` is served as `null` (hidden by the app), unlike an empty
|
|
30
|
+
* list, which means there is nothing to show.
|
|
31
|
+
*/
|
|
32
|
+
/** Per-section options for `/.well-known/farmjs.json`. Every section is shown by default. */
|
|
33
|
+
interface FarmAppManifestConfig {
|
|
34
|
+
/**
|
|
35
|
+
* The `app` section. `false` serves `app: null`; an object leaves out the Farm version
|
|
36
|
+
* (`version`), the `renderer` or the `build` ID. `basePath` is always kept.
|
|
37
|
+
*
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
app?: boolean | {
|
|
41
|
+
version?: boolean;
|
|
42
|
+
renderer?: boolean;
|
|
43
|
+
build?: boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Installed `@farm.js/*` and `@farming-labs/*` packages. `"names"` lists them with `null`
|
|
47
|
+
* versions; `false` serves `packages: null`.
|
|
48
|
+
*
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
51
|
+
packages?: boolean | "names";
|
|
52
|
+
/**
|
|
53
|
+
* MCP servers and their tools. `schemas: false` drops tools' `inputSchema` and
|
|
54
|
+
* `outputSchema`; `hide` leaves out a server (`"store"`) or one of its tools
|
|
55
|
+
* (`"store/list_orders"`). `false` serves `mcp: null`.
|
|
56
|
+
*
|
|
57
|
+
* @default true
|
|
58
|
+
*/
|
|
59
|
+
mcp?: boolean | {
|
|
60
|
+
schemas?: boolean;
|
|
61
|
+
hide?: string[];
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* WebMCP browser tools. `hide` leaves out tools by name; `false` serves `webmcp: null`.
|
|
65
|
+
*
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
webmcp?: boolean | {
|
|
69
|
+
hide?: string[];
|
|
70
|
+
};
|
|
71
|
+
/** Integration keys, categories and providers. `false` serves `integrations: null`. */
|
|
72
|
+
integrations?: boolean;
|
|
73
|
+
/** The app's agent surfaces (API catalog, llms.txt, OpenAPI). `false` serves `agent: null`. */
|
|
74
|
+
agent?: boolean;
|
|
75
|
+
/** Plugin names. `false` serves `plugins: null`. */
|
|
76
|
+
plugins?: boolean;
|
|
77
|
+
}
|
|
78
|
+
interface ResolvedFarmAppManifestConfig {
|
|
79
|
+
app: false | {
|
|
80
|
+
version: boolean;
|
|
81
|
+
renderer: boolean;
|
|
82
|
+
build: boolean;
|
|
83
|
+
};
|
|
84
|
+
packages: boolean | "names";
|
|
85
|
+
mcp: false | {
|
|
86
|
+
schemas: boolean;
|
|
87
|
+
hide: string[];
|
|
88
|
+
};
|
|
89
|
+
webmcp: false | {
|
|
90
|
+
hide: string[];
|
|
91
|
+
};
|
|
92
|
+
integrations: boolean;
|
|
93
|
+
agent: boolean;
|
|
94
|
+
plugins: boolean;
|
|
95
|
+
}
|
|
96
|
+
|
|
27
97
|
declare const DEFAULT_FARM_DEVTOOLS_SHORTCUT = "mod+shift+.";
|
|
28
98
|
declare const FARM_DEVTOOLS_PATH = "/__farm/devtools";
|
|
29
99
|
declare const FARM_DEVTOOLS_LAUNCH_PARAM = "__farm_devtools";
|
|
@@ -1546,13 +1616,15 @@ interface FarmAgentUserConfig {
|
|
|
1546
1616
|
aiCatalog?: boolean;
|
|
1547
1617
|
/**
|
|
1548
1618
|
* Serve `/.well-known/farmjs.json`: Farm's version and packages, the app's MCP tools and
|
|
1549
|
-
* their schemas, WebMCP browser tools, integration providers and plugin names,
|
|
1550
|
-
*
|
|
1551
|
-
*
|
|
1619
|
+
* their schemas, WebMCP browser tools, integration providers and plugin names. Everyone,
|
|
1620
|
+
* Farm Infra included, gets the same public document; an MCP server that requires
|
|
1621
|
+
* `authorize` or sits behind a guard is listed by identity only. An object hides sections
|
|
1622
|
+
* (served as `null`), package versions, schemas or single servers and tools. `false` turns
|
|
1623
|
+
* it off; Farm Infra then can't discover the app's tools either.
|
|
1552
1624
|
*
|
|
1553
1625
|
* @default true
|
|
1554
1626
|
*/
|
|
1555
|
-
manifest?: boolean;
|
|
1627
|
+
manifest?: boolean | FarmAppManifestConfig;
|
|
1556
1628
|
/**
|
|
1557
1629
|
* Serve a read-only MCP server (Streamable HTTP) at `/mcp` with tools that list,
|
|
1558
1630
|
* search, and read the app's public pages as Markdown: the static pages llms.txt and
|
|
@@ -1575,7 +1647,7 @@ interface ResolvedFarmAgentConfig {
|
|
|
1575
1647
|
crawlers: ResolvedFarmAgentCrawlers;
|
|
1576
1648
|
apiCatalog: boolean;
|
|
1577
1649
|
aiCatalog: boolean;
|
|
1578
|
-
manifest:
|
|
1650
|
+
manifest: false | ResolvedFarmAppManifestConfig;
|
|
1579
1651
|
mcp: boolean;
|
|
1580
1652
|
}
|
|
1581
1653
|
|
|
@@ -3706,4 +3778,4 @@ interface MetadataRobots extends MetadataRobotsDirectives {
|
|
|
3706
3778
|
googleBot?: string | MetadataRobotsDirectives;
|
|
3707
3779
|
}
|
|
3708
3780
|
|
|
3709
|
-
export { type FarmDevtoolsUserConfig as $, type APIRouteDiscoveredPayload as A, type BundleLifecyclePayload as B, type FarmPluginRuntimeCloseEvent as C, type FarmPluginRuntimeHooks as D, type ErrorLifecyclePayload as E, type FarmRouteRuntimeConfig as F, type FarmPluginRuntimeRequestOptions as G, type HMRUpdatePayload as H, type FarmPluginRuntimeRequestHandler as I, type FarmPluginRuntimeSession as J, type FarmPluginDiscoveredRoute as K, type FarmPluginRouterHooks as L, type MiddlewareDiscoveredPayload as M, type NitroBuildLifecyclePayload as N, type FarmPluginRenderHooks as O, type PluginRequestContext as P, type FarmPluginBuildHooks as Q, type RouteDiscoveredPayload as R, type ShutdownPayload as S, type FarmPluginDevHooks as T, type FarmPluginClientConfig as U, PluginManager as V, type FarmPluginDefinition as W, definePlugin as X, type FarmPluginDatabase as Y, resolveFarmDevtoolsConfig as Z, type ResolvedFarmDevtoolsConfig as _, type FarmPlugin as a, type ThemeColorDescriptor as a$, getFarmRedirectError as a0, isFarmNotFoundError as a1, isFarmRedirectError as a2, notFound as a3, permanentRedirect as a4, redirect as a5, type FarmRedirectSignal as a6, type FarmRedirectStatus as a7, type ParsedRoute as a8, type RouteSegment as a9, resolveFarmMCPPlugin as aA, type FarmMCPUserConfig as aB, type FarmComponentType as aC, type AppRoutePattern as aD, type PageRouteParams as aE, type NitroPreset as aF, type FarmMigrationCommand as aG, type FarmMigrationsConfig as aH, type FarmMigrationsUserConfig as aI, type ResolvedFarmMigrationsConfig as aJ, type FarmContextFactoryInput as aK, type FarmIsolatedClientHydrationMode as aL, type LoadingProps as aM, type ErrorProps as aN, type PagePropsWithMiddleware as aO, type MetadataProps as aP, type LayoutMetadataProps as aQ, type Page as aR, type Layout as aS, type Loading as aT, type ErrorBoundary as aU, type StaticPathPrimitive as aV, type StaticPathParams as aW, type StaticRouteParams as aX, type GenerateStaticParams as aY, type LayoutModule as aZ, type MetadataJsonLd as a_, type FarmRequest as aa, type FarmResponse as ab, type LayoutProps as ac, type Metadata as ad, type FarmRouteRuntime as ae, type FarmRouteRegions as af, type FarmRouteMaxDuration as ag, type FarmAppContext as ah, type PageProps as ai, type PluginContextProps as aj, type RouteModule as ak, type FarmMdxComponents as al, type FarmMdxResolvedConfig as am, resolveFarmMdxComponentsModulePath as an, resolveMdxConfig as ao, type FarmMdxComponent as ap, type FarmMdxUserConfig as aq, FARM_MARKDOWN_CONTENT_TYPE as ar, createFarmMarkdownErrorBody as as, farmRequestWantsMarkdown as at, type FarmUserConfig as au, type FarmContextFactory as av, type MiddlewareProps as aw, type FarmIntegration as ax, type FarmConfig as ay, resolveFarmMCPConfig as az, FARM_NODE_RESPONSE_END_PENDING as b, type FarmMCPEndpointTool as b$, type Viewport as b0, type ServerAction as b1, type BuildOptions as b2, type SSGPage as b3, type SSGCollectionResult as b4, type MetadataRobotsDirectives as b5, type MetadataRobots as b6, type ReadonlyMiddlewareStore as b7, type FarmMiddlewareConfig as b8, type MiddlewareModule as b9, FarmPluginOptionsError as bA, type FarmPluginFactory as bB, type FarmPluginOptionsIssue as bC, type FarmPluginOptionsSchema as bD, type InferPluginOptionsInput as bE, type InferPluginOptionsOutput as bF, resolveConfig as bG, loadConfig as bH, resolveDeployConfig as bI, resolveMigrationsConfig as bJ, resolveDeployOutputPath as bK, normalizeDeployTarget as bL, getDeployTargetForPreset as bM, getPresetForDeployTarget as bN, type FarmLayerConfig as bO, type FarmPerformanceConfig as bP, type FarmPreloadMode as bQ, type FarmPreloadUserConfig as bR, type ResolvedFarmPreloadConfig as bS, type FarmCspConfig as bT, type FarmCspDirectives as bU, type FarmCspDirectiveValue as bV, type FarmCspOptions as bW, type FarmSecurityConfig as bX, type ResolvedFarmCspConfig as bY, MetadataRoute as bZ, type MetadataRouteContext as b_, type MiddlewareConfig$1 as ba, type MiddlewareContext as bb, type FarmAgentJsonLd as bc, type FarmMCPServerRegistration as bd, type FarmMarkdownResolvedConfig as be, _findFarmMCPEndpointTool as bf, _publishFarmMCPCatalog as bg, registerFarmMCPServer as bh, type FarmMCPCatalogDetails as bi, type ResolvedFarmRouteRuntimeConfig as bj, type ApplicationMetadataRouteKind as bk, type ResolvedFarmAPIConfig as bl, type FarmDocsResolvedConfig as bm, type ResolvedFarmDevIndicatorsConfig as bn, type ResolvedFarmAuthConfig as bo, type ResolvedFarmPerformanceConfig as bp, type ResolvedFarmSecurityConfig as bq, type ResolvedSchemaField as br, type FarmSqlDialect as bs, type FarmSqlStatement as bt, type CollectedSchemaModel as bu, type FarmSchemaMigrationStep as bv, type OpenAPIConfig as bw, type FarmAgentUserConfig as bx, type FarmAgentCrawlers as by, type FarmCrawlerPolicy as bz, type FarmPluginIntegrationContext as c, type FarmIntegrationRequestContextStore as c$, type FarmAuthConfig as c0, type FarmAuthDatabaseConfig as c1, type FarmAuthEmailAndPasswordConfig as c2, type FarmAuthSessionConfig as c3, type FarmAuthUserConfig as c4, type FarmMCPAuthorization as c5, type FarmMCPEndpoint as c6, type FarmMCPServerFunction as c7, type FarmMCPToolDefinition as c8, type FarmMCPStandaloneTool as c9, collectSchemaModels as cA, generateSqlStatements as cB, renderSqlSchemaFile as cC, getSqlColumnType as cD, getSqlDefaultExpression as cE, isNullableField as cF, quoteSqlIdentifier as cG, toSnakeCase as cH, toPascalCase as cI, toCamelCase as cJ, escapeSqlString as cK, resolveSchemaModels as cL, type ResolvedSchemaModel as cM, type FarmIntegrationCategory as cN, type FarmIntegrationSlot as cO, type FarmIntegrationRouteParamValue as cP, type FarmIntegrationRouteParams as cQ, type FarmIntegrationRouteMethod as cR, type FarmIntegrationRouteInputSource as cS, type FarmIntegrationValidationPathSegment as cT, type FarmIntegrationRouteInput as cU, type FarmIntegrationValidationIssue as cV, type FarmIntegrationValidationErrorLike as cW, type FarmIntegrationValidationResult as cX, type FarmIntegrationStandardValidationResult as cY, type FarmIntegrationInputSchema as cZ, type FarmIntegrationRouteInputSchemas as c_, type FarmMCPExecuteContext as ca, type FarmMCPTool as cb, type FarmMCPServer as cc, type FarmMCPAuthorizeContext as cd, type FarmMCPConfig as ce, type FarmMCPOAuthConfig as cf, type FarmMCPPrompt as cg, type FarmMCPPromptMessage as ch, type FarmMCPResource as ci, type FarmMCPResourceContent as cj, type FarmMCPResourceContext as ck, type FarmMCPResourceListing as cl, type ResolvedFarmMCPConfig as cm, type ResolvedFarmConfig as cn, type RedirectConfig as co, type HeaderConfig as cp, type RewriteConfig as cq, type ImageConfig as cr, type I18nConfig as cs, type MiddlewareConfig as ct, type FarmDeployConfig as cu, type ResolvedFarmDeployConfig as cv, type FarmDeployTarget as cw, type FarmDocsUserConfig as cx, type FarmMarkdownUserConfig as cy, describeSchemaReference as cz, FarmRuntimeShutdownError as d, matchIntegrationRoute as d$, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as d0, FARM_INTEGRATION_SET_COOKIES_KEY as d1, forwardIntegrationSetCookies as d2, type FarmIntegrationRouteDb as d3, type FarmIntegrationRouteStorageArgs as d4, type FarmIntegrationRouteArgs as d5, type FarmIntegrationConfigContext as d6, type FarmIntegrationConfigDefinition as d7, type FarmIntegrationConfigInput as d8, type FarmIntegrationLifecycleLogLevel as d9, type FarmIntegrationLogEvent as dA, type FarmIntegrationLogger as dB, type FarmIntegrationPluginOwner as dC, type FarmIntegrationContributedPlugin as dD, type FarmIntegrationsUserConfig as dE, getFarmIntegrationPluginServerRuntime as dF, getFarmIntegrationPluginOwner as dG, type FarmIntegrationRouteFactory as dH, type FarmIntegrationRoutesFactoryContext as dI, type FarmIntegrationRoutesFactory as dJ, type FarmIntegrationEndpointValue as dK, type FarmIntegrationEndpoints as dL, type FarmIntegrationEndpointsFactoryContext as dM, type FarmIntegrationEndpointsFactory as dN, createIntegrationRoute as dO, integrationRoute as dP, type DefinedIntegration as dQ, defineIntegration as dR, isFarmIntegration as dS, resolveIntegrationPlugins as dT, getIntegrationProviders as dU, isFarmIntegrationProviderComponentReference as dV, getIntegrationDocumentNavigationMatchers as dW, getIntegrationSchemas as dX, getRegisteredIntegrationRuntime as dY, getRegisteredIntegrations as dZ, getRegisteredIntegrationSchemas as d_, type FarmIntegrationLifecycleLogger as da, type FarmIntegrationLifecycleContext as db, type FarmIntegrationLifecycleHook as dc, type FarmIntegrationData as dd, type FarmIntegrationHandlerContext as de, type FarmIntegrationRouteHookContext as df, type FarmIntegrationRouteHook as dg, type FarmIntegrationRoute as dh, type FarmTypedIntegrationRoute as di, type FarmIntegrationRouteMiddleware as dj, type FarmIntegrationMiddleware as dk, type FarmIntegrationProviderProps as dl, type FarmIntegrationProviderComponentReference as dm, type FarmIntegrationProvider as dn, type FarmIntegrationDocumentNavigation as dp, type FarmIntegrationSchemaFieldType as dq, type FarmIntegrationSchemaReference as dr, type FarmIntegrationSchemaField as ds, type FarmIntegrationSchemaConstraint as dt, type FarmIntegrationSchemaModel as du, type FarmIntegrationSchemaModelExtension as dv, type FarmIntegrationSchemaModelOverride as dw, type FarmIntegrationSchema as dx, defineIntegrationSchema as dy, type FarmIntegrationLogPhase as dz, type FarmRequestStore as e, getFarmRouteRuntimeConfig as e$, matchRegisteredIntegrationRoute as e0, getRegisteredIntegrationAPIManifest as e1, dispatchIntegrationRequest as e2, dispatchIntegrationRequests as e3, integrationMiddlewareMayHandlePath as e4, FARM_INTEGRATION_API_BASE_PATH_KEY as e5, describeIntegrationOriginRejection as e6, resolveIntegrationAllowedOrigins as e7, validateIntegrationRequestOrigin as e8, type IntegrationOriginPolicy as e9, type MiddlewareChain as eA, type CookieJar as eB, type CookieOptions as eC, type RateLimitConfig as eD, type RateLimitIncrementResult as eE, type RateLimitStorage as eF, type RateLimitStatus as eG, type MemoryRateLimitStorageOptions as eH, type NextFunction as eI, type MiddlewareResult as eJ, type FarmRouteRuleRenderMode as eK, type FarmRouteRuleRedirect as eL, type FarmRouteRuleCors as eM, type FarmRouteRule as eN, type FarmRouteRules as eO, normalizeRouteRules as eP, routeRulesToRedirects as eQ, routeRulesToHeaders as eR, routeRulesToNitroRouteRules as eS, type FarmRouteRuntimeEntryKind as eT, type FarmRouteRenderingMode as eU, type FarmRouteRuntimeManifestEntry as eV, type FarmRouteRuntimeManifest as eW, normalizeFarmRouteRuntimeConfig as eX, mergeFarmRouteRuntimeConfigs as eY, resolveFarmRouteRuntimeConfig as eZ, hasFarmRouteRuntimeControls as e_, type IntegrationOriginRejection as ea, type IntegrationOriginResult as eb, type FarmIntegrationOrmSchema as ec, type FarmIntegrationOrmClient as ed, type InferFarmIntegrationOrmField as ee, type InferFarmIntegrationOrmFields as ef, type InferFarmIntegrationOrmSchema as eg, type InferFarmIntegrationOrmClient as eh, type CreateIntegrationOrmOptions as ei, createIntegrationOrm as ej, resolveIntegrationOrmRuntimeClient as ek, farmIntegrationSchemaToOrmSchema as el, type IntegrationOrmModelNames as em, DEFAULT_FARM_API_BASE_PATH as en, type FarmAPIConfigResolverContext as eo, type FarmAPIConfigValue as ep, type FarmAPIConfig as eq, resolveFarmAPIConfig as er, normalizeFarmAPIConfig as es, normalizeFarmAPIBasePath as et, getFarmAPIBaseURL as eu, resolveFarmAPIRequestURL as ev, type MiddlewareFunction as ew, type RequestMiddleware as ex, type RequestMiddlewareContext as ey, type MiddlewareStore as ez, type FarmPluginContext as f, createFarmRouteRuntimeKey as f0, resolveFarmRouteRuleRuntimeConfig as f1, farmRouteRuleMatches as f2, type FarmDocsConfigInput as f3, type FarmDocsNavigationConfig as f4, type FarmDocsSocialImageConfig as f5, type FarmDocsSocialImageFonts as f6, type FarmDocsSidebarItem as f7, FARM_MARKDOWN_PAGE_CHECK_HEADER as f8, _getFarmMarkdownPageCheckToken as f9, type FarmDevtoolsConfig as fA, type FarmBuildActivityPosition as fB, type FarmDevIndicatorsConfig as fC, resolveFarmDevIndicatorsConfig as fD, generateFarmDevIndicatorsClientRuntime as fE, type FarmLlmsTxtLink as fF, createFarmMetadataRouteResponse as fG, createFarmAgentRobots as fH, createFarmDefaultSitemap as fI, collectFarmLlmsTxtPages as fJ, createFarmDefaultLlmsTxt as fK, createFarmLlmsMarkdownReader as fL, renderFarmLlmsFullTxt as fM, createFarmLlmsFullRenderer as fN, resolveFarmLlmsTxtConfig as fO, type FarmLlmsTxtUserConfig as fP, type ResolvedFarmLlmsTxtConfig as fQ, manageFarmDocumentPreloads as fR, manageFarmHtmlPreloads as fS, manageFarmLinkHeaderPreloads as fT, reportFarmPreloadWarnings as fU, applyFarmCspNonceToResponse as fV, createFarmCspNonce as fW, resolveFarmSecurityConfig as fX, stampFarmCspNonce as fY, _isFarmMarkdownPageCheck as fa, type FarmMarkdownRouteInput as fb, type FarmMarkdownResolvedRoute as fc, type FarmMarkdownMirrorTarget as fd, type ResolveMarkdownMirrorTargetOptions as fe, type CreateMarkdownMirrorResponseOptions as ff, type ApplyMarkdownNegotiationHeadersOptions as fg, resolveMarkdownConfig as fh, resolveMarkdownMirrorTarget as fi, createMarkdownMirrorResponse as fj, applyMarkdownNegotiationHeaders as fk, htmlToMarkdown as fl, farmAcceptQuality as fm, requestAcceptsMarkdown as fn, getFarmMarkdownMirrorPath as fo, getFarmMarkdownAlternatePath as fp, isFarmMarkdownMirrorExposed as fq, matchesFarmMarkdownRoutePattern as fr, type FarmPageFormOption as fs, type FarmPageFormField as ft, type FarmPageFormSubmit as fu, type FarmPageFormAction as fv, extractFarmPageActions as fw, DEFAULT_FARM_DEVTOOLS_SHORTCUT as fx, FARM_DEVTOOLS_PATH as fy, FARM_DEVTOOLS_LAUNCH_PARAM as fz, type FarmPluginLifecycle as g, type FarmRequestPluginContext as h, type RoutesGeneratedPayload as i, type RouteMatchPayload as j, type RouteMatchResultPayload as k, type RenderLifecyclePayload as l, type APIHandlerLifecyclePayload as m, type BundleResultPayload as n, type FarmPluginRuntimeKind as o, type FarmPluginRouteRuntimePayload as p, type FarmPluginSetupContext as q, type FarmPluginStateContext as r, type FarmPluginRuntimeBaseEvent as s, type FarmPluginRuntimeContextEvent as t, type FarmPluginRuntimeEndpointEvent as u, type FarmPluginRuntimeEndpoint as v, type FarmPluginRuntimeBeforeEvent as w, type FarmPluginRuntimeAfterEvent as x, type FarmPluginRuntimeErrorEvent as y, type FarmPluginRuntimeStartEvent as z };
|
|
3781
|
+
export { type FarmDevtoolsUserConfig as $, type APIRouteDiscoveredPayload as A, type BundleLifecyclePayload as B, type FarmPluginRuntimeCloseEvent as C, type FarmPluginRuntimeHooks as D, type ErrorLifecyclePayload as E, type FarmRouteRuntimeConfig as F, type FarmPluginRuntimeRequestOptions as G, type HMRUpdatePayload as H, type FarmPluginRuntimeRequestHandler as I, type FarmPluginRuntimeSession as J, type FarmPluginDiscoveredRoute as K, type FarmPluginRouterHooks as L, type MiddlewareDiscoveredPayload as M, type NitroBuildLifecyclePayload as N, type FarmPluginRenderHooks as O, type PluginRequestContext as P, type FarmPluginBuildHooks as Q, type RouteDiscoveredPayload as R, type ShutdownPayload as S, type FarmPluginDevHooks as T, type FarmPluginClientConfig as U, PluginManager as V, type FarmPluginDefinition as W, definePlugin as X, type FarmPluginDatabase as Y, resolveFarmDevtoolsConfig as Z, type ResolvedFarmDevtoolsConfig as _, type FarmPlugin as a, type ThemeColorDescriptor as a$, getFarmRedirectError as a0, isFarmNotFoundError as a1, isFarmRedirectError as a2, notFound as a3, permanentRedirect as a4, redirect as a5, type FarmRedirectSignal as a6, type FarmRedirectStatus as a7, type ParsedRoute as a8, type RouteSegment as a9, resolveFarmMCPPlugin as aA, type FarmMCPUserConfig as aB, type FarmComponentType as aC, type AppRoutePattern as aD, type PageRouteParams as aE, type NitroPreset as aF, type FarmMigrationCommand as aG, type FarmMigrationsConfig as aH, type FarmMigrationsUserConfig as aI, type ResolvedFarmMigrationsConfig as aJ, type FarmContextFactoryInput as aK, type FarmIsolatedClientHydrationMode as aL, type LoadingProps as aM, type ErrorProps as aN, type PagePropsWithMiddleware as aO, type MetadataProps as aP, type LayoutMetadataProps as aQ, type Page as aR, type Layout as aS, type Loading as aT, type ErrorBoundary as aU, type StaticPathPrimitive as aV, type StaticPathParams as aW, type StaticRouteParams as aX, type GenerateStaticParams as aY, type LayoutModule as aZ, type MetadataJsonLd as a_, type FarmRequest as aa, type FarmResponse as ab, type LayoutProps as ac, type Metadata as ad, type FarmRouteRuntime as ae, type FarmRouteRegions as af, type FarmRouteMaxDuration as ag, type FarmAppContext as ah, type PageProps as ai, type PluginContextProps as aj, type RouteModule as ak, type FarmMdxComponents as al, type FarmMdxResolvedConfig as am, resolveFarmMdxComponentsModulePath as an, resolveMdxConfig as ao, type FarmMdxComponent as ap, type FarmMdxUserConfig as aq, FARM_MARKDOWN_CONTENT_TYPE as ar, createFarmMarkdownErrorBody as as, farmRequestWantsMarkdown as at, type FarmUserConfig as au, type FarmContextFactory as av, type MiddlewareProps as aw, type FarmIntegration as ax, type FarmConfig as ay, resolveFarmMCPConfig as az, FARM_NODE_RESPONSE_END_PENDING as b, MetadataRoute as b$, type Viewport as b0, type ServerAction as b1, type BuildOptions as b2, type SSGPage as b3, type SSGCollectionResult as b4, type MetadataRobotsDirectives as b5, type MetadataRobots as b6, type FarmMCPCatalogDetails as b7, type ResolvedFarmAppManifestConfig as b8, type ReadonlyMiddlewareStore as b9, type FarmCrawlerPolicy as bA, type FarmAppManifestConfig as bB, FarmPluginOptionsError as bC, type FarmPluginFactory as bD, type FarmPluginOptionsIssue as bE, type FarmPluginOptionsSchema as bF, type InferPluginOptionsInput as bG, type InferPluginOptionsOutput as bH, resolveConfig as bI, loadConfig as bJ, resolveDeployConfig as bK, resolveMigrationsConfig as bL, resolveDeployOutputPath as bM, normalizeDeployTarget as bN, getDeployTargetForPreset as bO, getPresetForDeployTarget as bP, type FarmLayerConfig as bQ, type FarmPerformanceConfig as bR, type FarmPreloadMode as bS, type FarmPreloadUserConfig as bT, type ResolvedFarmPreloadConfig as bU, type FarmCspConfig as bV, type FarmCspDirectives as bW, type FarmCspDirectiveValue as bX, type FarmCspOptions as bY, type FarmSecurityConfig as bZ, type ResolvedFarmCspConfig as b_, type FarmMiddlewareConfig as ba, type MiddlewareModule as bb, type MiddlewareConfig$1 as bc, type MiddlewareContext as bd, type FarmAgentJsonLd as be, type FarmMCPServerRegistration as bf, type FarmMarkdownResolvedConfig as bg, _findFarmMCPEndpointTool as bh, _publishFarmMCPCatalog as bi, registerFarmMCPServer as bj, type ResolvedFarmRouteRuntimeConfig as bk, type ApplicationMetadataRouteKind as bl, type ResolvedFarmAPIConfig as bm, type FarmDocsResolvedConfig as bn, type ResolvedFarmDevIndicatorsConfig as bo, type ResolvedFarmAuthConfig as bp, type ResolvedFarmPerformanceConfig as bq, type ResolvedFarmSecurityConfig as br, type ResolvedSchemaField as bs, type FarmSqlDialect as bt, type FarmSqlStatement as bu, type CollectedSchemaModel as bv, type FarmSchemaMigrationStep as bw, type OpenAPIConfig as bx, type FarmAgentUserConfig as by, type FarmAgentCrawlers as bz, type FarmPluginIntegrationContext as c, type FarmIntegrationInputSchema as c$, type MetadataRouteContext as c0, type FarmMCPEndpointTool as c1, type FarmAuthConfig as c2, type FarmAuthDatabaseConfig as c3, type FarmAuthEmailAndPasswordConfig as c4, type FarmAuthSessionConfig as c5, type FarmAuthUserConfig as c6, type FarmMCPAuthorization as c7, type FarmMCPEndpoint as c8, type FarmMCPServerFunction as c9, type FarmMarkdownUserConfig as cA, describeSchemaReference as cB, collectSchemaModels as cC, generateSqlStatements as cD, renderSqlSchemaFile as cE, getSqlColumnType as cF, getSqlDefaultExpression as cG, isNullableField as cH, quoteSqlIdentifier as cI, toSnakeCase as cJ, toPascalCase as cK, toCamelCase as cL, escapeSqlString as cM, resolveSchemaModels as cN, type ResolvedSchemaModel as cO, type FarmIntegrationCategory as cP, type FarmIntegrationSlot as cQ, type FarmIntegrationRouteParamValue as cR, type FarmIntegrationRouteParams as cS, type FarmIntegrationRouteMethod as cT, type FarmIntegrationRouteInputSource as cU, type FarmIntegrationValidationPathSegment as cV, type FarmIntegrationRouteInput as cW, type FarmIntegrationValidationIssue as cX, type FarmIntegrationValidationErrorLike as cY, type FarmIntegrationValidationResult as cZ, type FarmIntegrationStandardValidationResult as c_, type FarmMCPToolDefinition as ca, type FarmMCPStandaloneTool as cb, type FarmMCPExecuteContext as cc, type FarmMCPTool as cd, type FarmMCPServer as ce, type FarmMCPAuthorizeContext as cf, type FarmMCPConfig as cg, type FarmMCPOAuthConfig as ch, type FarmMCPPrompt as ci, type FarmMCPPromptMessage as cj, type FarmMCPResource as ck, type FarmMCPResourceContent as cl, type FarmMCPResourceContext as cm, type FarmMCPResourceListing as cn, type ResolvedFarmMCPConfig as co, type ResolvedFarmConfig as cp, type RedirectConfig as cq, type HeaderConfig as cr, type RewriteConfig as cs, type ImageConfig as ct, type I18nConfig as cu, type MiddlewareConfig as cv, type FarmDeployConfig as cw, type ResolvedFarmDeployConfig as cx, type FarmDeployTarget as cy, type FarmDocsUserConfig as cz, FarmRuntimeShutdownError as d, getRegisteredIntegrations as d$, type FarmIntegrationRouteInputSchemas as d0, type FarmIntegrationRequestContextStore as d1, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as d2, FARM_INTEGRATION_SET_COOKIES_KEY as d3, forwardIntegrationSetCookies as d4, type FarmIntegrationRouteDb as d5, type FarmIntegrationRouteStorageArgs as d6, type FarmIntegrationRouteArgs as d7, type FarmIntegrationConfigContext as d8, type FarmIntegrationConfigDefinition as d9, defineIntegrationSchema as dA, type FarmIntegrationLogPhase as dB, type FarmIntegrationLogEvent as dC, type FarmIntegrationLogger as dD, type FarmIntegrationPluginOwner as dE, type FarmIntegrationContributedPlugin as dF, type FarmIntegrationsUserConfig as dG, getFarmIntegrationPluginServerRuntime as dH, getFarmIntegrationPluginOwner as dI, type FarmIntegrationRouteFactory as dJ, type FarmIntegrationRoutesFactoryContext as dK, type FarmIntegrationRoutesFactory as dL, type FarmIntegrationEndpointValue as dM, type FarmIntegrationEndpoints as dN, type FarmIntegrationEndpointsFactoryContext as dO, type FarmIntegrationEndpointsFactory as dP, createIntegrationRoute as dQ, integrationRoute as dR, type DefinedIntegration as dS, defineIntegration as dT, isFarmIntegration as dU, resolveIntegrationPlugins as dV, getIntegrationProviders as dW, isFarmIntegrationProviderComponentReference as dX, getIntegrationDocumentNavigationMatchers as dY, getIntegrationSchemas as dZ, getRegisteredIntegrationRuntime as d_, type FarmIntegrationConfigInput as da, type FarmIntegrationLifecycleLogLevel as db, type FarmIntegrationLifecycleLogger as dc, type FarmIntegrationLifecycleContext as dd, type FarmIntegrationLifecycleHook as de, type FarmIntegrationData as df, type FarmIntegrationHandlerContext as dg, type FarmIntegrationRouteHookContext as dh, type FarmIntegrationRouteHook as di, type FarmIntegrationRoute as dj, type FarmTypedIntegrationRoute as dk, type FarmIntegrationRouteMiddleware as dl, type FarmIntegrationMiddleware as dm, type FarmIntegrationProviderProps as dn, type FarmIntegrationProviderComponentReference as dp, type FarmIntegrationProvider as dq, type FarmIntegrationDocumentNavigation as dr, type FarmIntegrationSchemaFieldType as ds, type FarmIntegrationSchemaReference as dt, type FarmIntegrationSchemaField as du, type FarmIntegrationSchemaConstraint as dv, type FarmIntegrationSchemaModel as dw, type FarmIntegrationSchemaModelExtension as dx, type FarmIntegrationSchemaModelOverride as dy, type FarmIntegrationSchema as dz, type FarmRequestStore as e, resolveFarmRouteRuntimeConfig as e$, getRegisteredIntegrationSchemas as e0, matchIntegrationRoute as e1, matchRegisteredIntegrationRoute as e2, getRegisteredIntegrationAPIManifest as e3, dispatchIntegrationRequest as e4, dispatchIntegrationRequests as e5, integrationMiddlewareMayHandlePath as e6, FARM_INTEGRATION_API_BASE_PATH_KEY as e7, describeIntegrationOriginRejection as e8, resolveIntegrationAllowedOrigins as e9, type RequestMiddlewareContext as eA, type MiddlewareStore as eB, type MiddlewareChain as eC, type CookieJar as eD, type CookieOptions as eE, type RateLimitConfig as eF, type RateLimitIncrementResult as eG, type RateLimitStorage as eH, type RateLimitStatus as eI, type MemoryRateLimitStorageOptions as eJ, type NextFunction as eK, type MiddlewareResult as eL, type FarmRouteRuleRenderMode as eM, type FarmRouteRuleRedirect as eN, type FarmRouteRuleCors as eO, type FarmRouteRule as eP, type FarmRouteRules as eQ, normalizeRouteRules as eR, routeRulesToRedirects as eS, routeRulesToHeaders as eT, routeRulesToNitroRouteRules as eU, type FarmRouteRuntimeEntryKind as eV, type FarmRouteRenderingMode as eW, type FarmRouteRuntimeManifestEntry as eX, type FarmRouteRuntimeManifest as eY, normalizeFarmRouteRuntimeConfig as eZ, mergeFarmRouteRuntimeConfigs as e_, validateIntegrationRequestOrigin as ea, type IntegrationOriginPolicy as eb, type IntegrationOriginRejection as ec, type IntegrationOriginResult as ed, type FarmIntegrationOrmSchema as ee, type FarmIntegrationOrmClient as ef, type InferFarmIntegrationOrmField as eg, type InferFarmIntegrationOrmFields as eh, type InferFarmIntegrationOrmSchema as ei, type InferFarmIntegrationOrmClient as ej, type CreateIntegrationOrmOptions as ek, createIntegrationOrm as el, resolveIntegrationOrmRuntimeClient as em, farmIntegrationSchemaToOrmSchema as en, type IntegrationOrmModelNames as eo, DEFAULT_FARM_API_BASE_PATH as ep, type FarmAPIConfigResolverContext as eq, type FarmAPIConfigValue as er, type FarmAPIConfig as es, resolveFarmAPIConfig as et, normalizeFarmAPIConfig as eu, normalizeFarmAPIBasePath as ev, getFarmAPIBaseURL as ew, resolveFarmAPIRequestURL as ex, type MiddlewareFunction as ey, type RequestMiddleware as ez, type FarmPluginContext as f, hasFarmRouteRuntimeControls as f0, getFarmRouteRuntimeConfig as f1, createFarmRouteRuntimeKey as f2, resolveFarmRouteRuleRuntimeConfig as f3, farmRouteRuleMatches as f4, type FarmDocsConfigInput as f5, type FarmDocsNavigationConfig as f6, type FarmDocsSocialImageConfig as f7, type FarmDocsSocialImageFonts as f8, type FarmDocsSidebarItem as f9, FARM_DEVTOOLS_PATH as fA, FARM_DEVTOOLS_LAUNCH_PARAM as fB, type FarmDevtoolsConfig as fC, type FarmBuildActivityPosition as fD, type FarmDevIndicatorsConfig as fE, resolveFarmDevIndicatorsConfig as fF, generateFarmDevIndicatorsClientRuntime as fG, type FarmLlmsTxtLink as fH, createFarmMetadataRouteResponse as fI, createFarmAgentRobots as fJ, createFarmDefaultSitemap as fK, collectFarmLlmsTxtPages as fL, createFarmDefaultLlmsTxt as fM, createFarmLlmsMarkdownReader as fN, renderFarmLlmsFullTxt as fO, createFarmLlmsFullRenderer as fP, resolveFarmLlmsTxtConfig as fQ, type FarmLlmsTxtUserConfig as fR, type ResolvedFarmLlmsTxtConfig as fS, manageFarmDocumentPreloads as fT, manageFarmHtmlPreloads as fU, manageFarmLinkHeaderPreloads as fV, reportFarmPreloadWarnings as fW, applyFarmCspNonceToResponse as fX, createFarmCspNonce as fY, resolveFarmSecurityConfig as fZ, stampFarmCspNonce as f_, FARM_MARKDOWN_PAGE_CHECK_HEADER as fa, _getFarmMarkdownPageCheckToken as fb, _isFarmMarkdownPageCheck as fc, type FarmMarkdownRouteInput as fd, type FarmMarkdownResolvedRoute as fe, type FarmMarkdownMirrorTarget as ff, type ResolveMarkdownMirrorTargetOptions as fg, type CreateMarkdownMirrorResponseOptions as fh, type ApplyMarkdownNegotiationHeadersOptions as fi, resolveMarkdownConfig as fj, resolveMarkdownMirrorTarget as fk, createMarkdownMirrorResponse as fl, applyMarkdownNegotiationHeaders as fm, htmlToMarkdown as fn, farmAcceptQuality as fo, requestAcceptsMarkdown as fp, getFarmMarkdownMirrorPath as fq, getFarmMarkdownAlternatePath as fr, isFarmMarkdownMirrorExposed as fs, matchesFarmMarkdownRoutePattern as ft, type FarmPageFormOption as fu, type FarmPageFormField as fv, type FarmPageFormSubmit as fw, type FarmPageFormAction as fx, extractFarmPageActions as fy, DEFAULT_FARM_DEVTOOLS_SHORTCUT as fz, type FarmPluginLifecycle as g, type FarmRequestPluginContext as h, type RoutesGeneratedPayload as i, type RouteMatchPayload as j, type RouteMatchResultPayload as k, type RenderLifecyclePayload as l, type APIHandlerLifecyclePayload as m, type BundleResultPayload as n, type FarmPluginRuntimeKind as o, type FarmPluginRouteRuntimePayload as p, type FarmPluginSetupContext as q, type FarmPluginStateContext as r, type FarmPluginRuntimeBaseEvent as s, type FarmPluginRuntimeContextEvent as t, type FarmPluginRuntimeEndpointEvent as u, type FarmPluginRuntimeEndpoint as v, type FarmPluginRuntimeBeforeEvent as w, type FarmPluginRuntimeAfterEvent as x, type FarmPluginRuntimeErrorEvent as y, type FarmPluginRuntimeStartEvent as z };
|