@farm.js/core 0.1.63 → 0.1.64
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-handler-OV4WRFBL.cjs → agent-mcp-handler-OXT73ZBY.cjs} +5 -5
- package/dist/{agent-mcp-handler-7QMX2LUY.mjs → agent-mcp-handler-QLFDDTYN.mjs} +4 -4
- package/dist/{agent-mcp.d-CCQ-wKwg.d.mts → agent-mcp.d-CO_ABmNK.d.mts} +1 -1
- package/dist/{agent-mcp.d-DOJCBSh9.d.ts → agent-mcp.d-QD2WZ9BS.d.ts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/analyzer-ODLF2Z6O.cjs +16 -0
- package/dist/{analyzer-WNPQPWFR.mjs → analyzer-Q3QXC6PD.mjs} +3 -2
- 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-manifest.d-BaA0omsv.d.mts → app-manifest.d-BpKxiU_E.d.mts} +1 -1
- package/dist/{app-manifest.d-poayV4lq.d.ts → app-manifest.d-DDmNkYQQ.d.ts} +1 -1
- package/dist/app-markdown.cjs +4 -4
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/app-markdown.mjs +3 -3
- package/dist/{app.d-DdWxeIGU.d.mts → app.d-kuoVWhWM.d.mts} +4 -4
- package/dist/{app.d-D4Dn03E3.d.ts → app.d-x68Cwr0_.d.ts} +4 -4
- package/dist/{chunk-LT4VAF5Z.cjs → chunk-2C5L5RPM.cjs} +7 -6
- package/dist/{chunk-PVJX4UPA.cjs → chunk-3EBHJET2.cjs} +103 -98
- package/dist/{chunk-4DIKLG56.mjs → chunk-6NHSGVVA.mjs} +1 -1
- package/dist/{chunk-S2NUYHRY.mjs → chunk-6NNYPY5W.mjs} +327 -13
- package/dist/{chunk-PRFNLQSP.cjs → chunk-7XGWBPQQ.cjs} +4 -4
- package/dist/{chunk-U6WCUVSV.cjs → chunk-DUSHDZQL.cjs} +9 -9
- package/dist/{chunk-GVOMPU3Y.cjs → chunk-EL4364S2.cjs} +209 -32
- package/dist/{chunk-QN5WRQSQ.cjs → chunk-FAP7CX7C.cjs} +101 -101
- package/dist/{chunk-GPKBUME5.mjs → chunk-FH45OB37.mjs} +2 -2
- package/dist/{chunk-55U5QIXQ.mjs → chunk-FIR62CR3.mjs} +1 -1
- package/dist/{chunk-MEQN6DDA.cjs → chunk-FJWN7RV4.cjs} +5 -5
- package/dist/chunk-IOEXXZK3.mjs +88 -0
- package/dist/{chunk-Z74NNER4.cjs → chunk-JCPSA4X5.cjs} +135 -134
- package/dist/{chunk-YSXTNSXS.mjs → chunk-K7OZAVOI.mjs} +7 -6
- package/dist/{chunk-KVW2M6PI.mjs → chunk-KL7SHLQB.mjs} +1 -1
- package/dist/{chunk-RFYL5OLP.mjs → chunk-LQDLEWPO.mjs} +1 -1
- package/dist/{chunk-UZZ6IEQP.mjs → chunk-MESQF2JC.mjs} +2 -2
- package/dist/{chunk-5L7I6AMY.cjs → chunk-MG356ROI.cjs} +5 -5
- package/dist/{chunk-Y2YBNQ3D.cjs → chunk-N3Z3PLHC.cjs} +2 -2
- package/dist/{chunk-XICXQXYE.mjs → chunk-NNLFW3P4.mjs} +2 -2
- package/dist/{chunk-EYLC6GD6.cjs → chunk-NXFA7G3Y.cjs} +12 -12
- package/dist/{chunk-FNHN3RBD.cjs → chunk-O2XFIPNL.cjs} +1 -1
- package/dist/{chunk-BA2IA32Q.mjs → chunk-O4FWNLQK.mjs} +3 -3
- package/dist/{chunk-DZPR2W6U.cjs → chunk-O6L3YYPM.cjs} +5 -5
- package/dist/{chunk-LFFSDZ4Y.cjs → chunk-O7IEMY55.cjs} +3 -3
- package/dist/{chunk-6BJJYOFL.cjs → chunk-OLIGNTWU.cjs} +7 -7
- package/dist/{chunk-EENTT56C.mjs → chunk-OYF23QLG.mjs} +15 -14
- package/dist/{chunk-CBDRR3J3.mjs → chunk-RAH5MT53.mjs} +19 -14
- package/dist/{chunk-E72UD6ME.mjs → chunk-RVGSVQWT.mjs} +1 -1
- package/dist/{chunk-5IKQ7BIR.cjs → chunk-S25BQIFW.cjs} +16 -16
- package/dist/{chunk-LWWDTBGL.cjs → chunk-S7ZW72JH.cjs} +2 -2
- package/dist/{chunk-7FFW7DC4.mjs → chunk-SLYDIHLW.mjs} +4 -4
- package/dist/{chunk-LA6O5EL2.mjs → chunk-SNFTMSHX.mjs} +1 -1
- package/dist/{chunk-PCXIJKPM.mjs → chunk-TNBJ4LZG.mjs} +2 -2
- package/dist/{chunk-O27PLNQZ.cjs → chunk-UJ3R2AH2.cjs} +4 -4
- package/dist/{chunk-T4TBK5NY.mjs → chunk-VQ4NWOWO.mjs} +2 -2
- package/dist/{chunk-ZZ2QKCKW.mjs → chunk-WAY6LOQH.mjs} +1 -1
- package/dist/chunk-WBTHHTBO.cjs +88 -0
- package/dist/{chunk-O5FCWI6O.mjs → chunk-WFNAOWH4.mjs} +1 -1
- package/dist/{chunk-IWRLV46X.cjs → chunk-WMTBBQHY.cjs} +4 -4
- package/dist/{chunk-LA45FN37.mjs → chunk-WNYRYI4D.mjs} +10 -10
- package/dist/{chunk-CI4UNQHO.cjs → chunk-XBSKPLHF.cjs} +2 -2
- package/dist/{chunk-IOF4KXMP.mjs → chunk-XVWSDSUM.mjs} +201 -24
- package/dist/{chunk-ANXU3D32.cjs → chunk-XZLZ6YPP.cjs} +346 -32
- package/dist/{chunk-QAS7KE7J.cjs → chunk-Y5TOT5F6.cjs} +5 -5
- package/dist/{chunk-DPE53XWL.mjs → chunk-ZEXE4TGY.mjs} +1 -1
- package/dist/{client-component.d-CSEFlHfG.d.mts → client-component.d-D74pqdea.d.mts} +2 -2
- package/dist/{client-component.d-CQLvqLAJ.d.ts → client-component.d-D8VcypQA.d.ts} +2 -2
- package/dist/{client-plugins.d-BgPUYPc9.d.ts → client-plugins.d-CXElzotB.d.ts} +8 -1
- package/dist/{client-plugins.d-BTF0gZm4.d.mts → client-plugins.d-D4-6hNx7.d.mts} +8 -1
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.d.mts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/desktop.d.mts +2 -2
- package/dist/desktop.d.ts +2 -2
- package/dist/{devtools-HDKTYIZF.mjs → devtools-MX3FE733.mjs} +4 -4
- package/dist/{devtools-ZHN5JLVI.cjs → devtools-WET5NAKO.cjs} +5 -5
- package/dist/docs.cjs +7 -7
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +6 -6
- package/dist/index.cjs +20 -19
- package/dist/{index.d-Coow7bD4.d.ts → index.d-A_x10zGS.d.ts} +1 -1
- package/dist/{index.d-Dbjx0ku7.d.mts → index.d-SSgYDv4D.d.mts} +1 -1
- package/dist/index.d.mts +16 -16
- package/dist/index.d.ts +16 -16
- package/dist/index.mjs +19 -18
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/internal/app-markdown-runtime.cjs +3 -3
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/app-markdown-runtime.mjs +2 -2
- package/dist/internal/build-runtime.cjs +21 -20
- package/dist/internal/build-runtime.d.mts +3 -3
- package/dist/internal/build-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.mjs +20 -19
- package/dist/internal/cli-runtime.cjs +6 -6
- package/dist/internal/cli-runtime.mjs +5 -5
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +4 -4
- package/dist/internal/client-runtime.d.ts +4 -4
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +6 -6
- package/dist/internal/config-runtime.d.mts +4 -4
- package/dist/internal/config-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.mjs +5 -5
- package/dist/internal/infra-analytics-runtime.cjs +9 -9
- package/dist/internal/infra-analytics-runtime.mjs +7 -7
- package/dist/internal/native-server-fns.cjs +5 -4
- package/dist/internal/native-server-fns.mjs +4 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +11 -11
- package/dist/internal/production-runtime.d.mts +13 -12
- package/dist/internal/production-runtime.d.ts +13 -12
- package/dist/internal/production-runtime.mjs +10 -10
- package/dist/markdown.cjs +2 -2
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/middleware.d.mts +3 -3
- package/dist/middleware.d.ts +3 -3
- package/dist/mobile.d.mts +2 -2
- package/dist/mobile.d.ts +2 -2
- package/dist/{native-tree-AS5L3ID3.mjs → native-tree-BPEE2LAL.mjs} +2 -2
- package/dist/{native-tree-Z2WYUJEV.cjs → native-tree-WOX3JMBG.cjs} +3 -3
- package/dist/{navigation-delegate.d-Ca_BV0Wu.d.mts → navigation-delegate.d-DQVYKoaZ.d.mts} +1 -1
- package/dist/{navigation-delegate.d-aHiPI6GL.d.ts → navigation-delegate.d-GghbHJuK.d.ts} +1 -1
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/plugin.cjs +13 -13
- package/dist/plugin.d.mts +3 -3
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.mjs +12 -12
- package/dist/{production-runtime.d-C0rF7a10.d.ts → production-runtime.d-Bzns3NW9.d.ts} +1 -1
- package/dist/{production-runtime.d-CnAsSWgF.d.mts → production-runtime.d-DiFa5vHW.d.mts} +1 -1
- package/dist/{render-plan.d-BxeITFT1.d.ts → render-plan.d-CL_Ikfg_.d.ts} +1 -1
- package/dist/{render-plan.d-Z-93m5GZ.d.mts → render-plan.d-CcF0MeCf.d.mts} +1 -1
- package/dist/renderer-client.d.mts +4 -4
- package/dist/renderer-client.d.ts +4 -4
- package/dist/{request.d-X7Q1vmGF.d.ts → request.d-B1RnTLri.d.ts} +1 -1
- package/dist/{request.d-8_fMFNEb.d.mts → request.d-DarDOCk9.d.mts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering.d-BUr3Jp8S.d.ts → route-rendering.d-BTUYCIj4.d.ts} +1 -1
- package/dist/{route-rendering.d-BInmBmul.d.mts → route-rendering.d-D_2Ual0-.d.mts} +1 -1
- package/dist/{router.d-crorSRiW.d.ts → router.d-CMANF6da.d.ts} +1 -1
- package/dist/{router.d-CZQmbpHx.d.mts → router.d-Cuv1jntg.d.mts} +1 -1
- package/dist/{routes.d-BknKQcTu.d.ts → routes.d-B6yFe6jm.d.ts} +1 -1
- package/dist/{routes.d-D1IrO9KK.d.mts → routes.d-c2HKfrfL.d.mts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/{rsc-pipeline-3MPRULGA.mjs → rsc-pipeline-3LNVP2OO.mjs} +5 -5
- package/dist/{rsc-pipeline-RHEZNBFQ.cjs → rsc-pipeline-G5WELVW3.cjs} +6 -6
- package/dist/{runtime-OZKFZQCU.cjs → runtime-DMEULPE7.cjs} +21 -10
- package/dist/{runtime-X5UR7VHP.mjs → runtime-HQJ2LLQL.mjs} +19 -8
- package/dist/{runtime.d-CCsjTZJW.d.ts → runtime.d-C3RQUj6_.d.ts} +1 -1
- package/dist/{runtime.d-CETtpLb-.d.mts → runtime.d-wvh4ngU0.d.mts} +1 -1
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server.cjs +30 -30
- package/dist/server.d.mts +9 -9
- package/dist/server.d.ts +9 -9
- package/dist/server.mjs +15 -15
- package/dist/{spa-router.d-CtSHzXlC.d.mts → spa-router.d-WU_qS5gJ.d.mts} +2 -2
- package/dist/{spa-router.d-CCADbSqJ.d.ts → spa-router.d-m8H_Kl_B.d.ts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils.d-CjyE-npA.d.ts → utils.d-C9dQD5Zg.d.ts} +1 -1
- package/dist/{utils.d-zFPHKFFJ.d.mts → utils.d-W9IiEqmW.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +13 -13
- package/dist/vite.d.mts +4 -4
- package/dist/vite.d.ts +4 -4
- package/dist/vite.mjs +12 -12
- package/package.json +1 -1
- package/dist/analyzer-KEA5JVDR.cjs +0 -15
|
@@ -35,13 +35,13 @@ var _chunkX4K7TYN6cjs = require('./chunk-X4K7TYN6.cjs');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkUJ3R2AH2cjs = require('./chunk-UJ3R2AH2.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
var _chunkCLFEQGETcjs = require('./chunk-CLFEQGET.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkNXFA7G3Ycjs = require('./chunk-NXFA7G3Y.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
@@ -49,7 +49,7 @@ var _chunkEYLC6GD6cjs = require('./chunk-EYLC6GD6.cjs');
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkY5TOT5F6cjs = require('./chunk-Y5TOT5F6.cjs');
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
@@ -96,7 +96,7 @@ var _chunkRD623KW4cjs = require('./chunk-RD623KW4.cjs');
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
var
|
|
99
|
+
var _chunkO6L3YYPMcjs = require('./chunk-O6L3YYPM.cjs');
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
|
|
@@ -111,7 +111,7 @@ var _chunk6JHZPB52cjs = require('./chunk-6JHZPB52.cjs');
|
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
var
|
|
114
|
+
var _chunkFJWN7RV4cjs = require('./chunk-FJWN7RV4.cjs');
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
|
|
@@ -122,10 +122,10 @@ var _chunkHEPJIKKQcjs = require('./chunk-HEPJIKKQ.cjs');
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
var
|
|
125
|
+
var _chunkXBSKPLHFcjs = require('./chunk-XBSKPLHF.cjs');
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
var
|
|
128
|
+
var _chunk7XGWBPQQcjs = require('./chunk-7XGWBPQQ.cjs');
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
|
|
@@ -138,7 +138,7 @@ var _chunk2HW5LWAHcjs = require('./chunk-2HW5LWAH.cjs');
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
var
|
|
141
|
+
var _chunk2C5L5RPMcjs = require('./chunk-2C5L5RPM.cjs');
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
var _chunk3CCAICF7cjs = require('./chunk-3CCAICF7.cjs');
|
|
@@ -256,7 +256,7 @@ var _chunkCFG4QERRcjs = require('./chunk-CFG4QERR.cjs');
|
|
|
256
256
|
var _chunkJYT7AN37cjs = require('./chunk-JYT7AN37.cjs');
|
|
257
257
|
|
|
258
258
|
|
|
259
|
-
var
|
|
259
|
+
var _chunkO2XFIPNLcjs = require('./chunk-O2XFIPNL.cjs');
|
|
260
260
|
|
|
261
261
|
|
|
262
262
|
|
|
@@ -1044,7 +1044,7 @@ var PackageClientBoundaryCache = class {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
const contents = JSON.stringify({
|
|
1046
1046
|
schema: SCHEMA_VERSION,
|
|
1047
|
-
farm:
|
|
1047
|
+
farm: _chunkO2XFIPNLcjs.FARM_VERSION,
|
|
1048
1048
|
paths,
|
|
1049
1049
|
entries
|
|
1050
1050
|
});
|
|
@@ -1092,7 +1092,7 @@ function readStoredCache(file) {
|
|
|
1092
1092
|
} catch (e12) {
|
|
1093
1093
|
return null;
|
|
1094
1094
|
}
|
|
1095
|
-
if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !==
|
|
1095
|
+
if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !== _chunkO2XFIPNLcjs.FARM_VERSION) {
|
|
1096
1096
|
return null;
|
|
1097
1097
|
}
|
|
1098
1098
|
const { paths, entries } = value;
|
|
@@ -1103,7 +1103,7 @@ function readStoredCache(file) {
|
|
|
1103
1103
|
const usable = variants.filter((entry) => isStoredEntry(entry, paths.length));
|
|
1104
1104
|
if (usable.length > 0) valid[key] = usable;
|
|
1105
1105
|
}
|
|
1106
|
-
return { schema: SCHEMA_VERSION, farm:
|
|
1106
|
+
return { schema: SCHEMA_VERSION, farm: _chunkO2XFIPNLcjs.FARM_VERSION, paths, entries: valid };
|
|
1107
1107
|
}
|
|
1108
1108
|
function isRecord(value) {
|
|
1109
1109
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -2960,8 +2960,8 @@ var RouteManager = class {
|
|
|
2960
2960
|
)
|
|
2961
2961
|
);
|
|
2962
2962
|
this.orderedLayouts = Array.from(this.layouts.values()).sort(
|
|
2963
|
-
(left, right) =>
|
|
2964
|
-
).map((entry) => ({ entry, groupScope:
|
|
2963
|
+
(left, right) => _chunkUJ3R2AH2cjs.getRouteDirectoryDepth.call(void 0, left.pattern) - _chunkUJ3R2AH2cjs.getRouteDirectoryDepth.call(void 0, right.pattern)
|
|
2964
|
+
).map((entry) => ({ entry, groupScope: _chunkUJ3R2AH2cjs.getRouteGroupScope.call(void 0, entry.pattern) }));
|
|
2965
2965
|
for (const slot of this.routeSlots.values()) {
|
|
2966
2966
|
if (!this.routeSlotOwnerSegments.has(slot.ownerPattern)) {
|
|
2967
2967
|
this.routeSlotOwnerSegments.set(
|
|
@@ -3243,13 +3243,13 @@ var RouteManager = class {
|
|
|
3243
3243
|
);
|
|
3244
3244
|
const routeEntries = Array.from(this.routes.values()).map((entry) => ({
|
|
3245
3245
|
entry,
|
|
3246
|
-
metadata:
|
|
3246
|
+
metadata: _chunk7XGWBPQQcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) ? markdownPagePlan() : getClientModuleHydrationPlan(entry.modulePath, normalizedProjectRoot, isolatedMode, {
|
|
3247
3247
|
...planOptions,
|
|
3248
3248
|
serverOwners: _chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([this, 'access', _180 => _180.config, 'access', _181 => _181.experimental, 'optionalAccess', _182 => _182.serverComponents])) === "islands"
|
|
3249
3249
|
})
|
|
3250
3250
|
}));
|
|
3251
3251
|
const markdownFallback = routeEntries.find(
|
|
3252
|
-
({ entry, metadata }) =>
|
|
3252
|
+
({ entry, metadata }) => _chunk7XGWBPQQcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) && metadata.fallbackReason
|
|
3253
3253
|
);
|
|
3254
3254
|
if (markdownFallback) {
|
|
3255
3255
|
_chunkQMNWKQL4cjs.logger.warn(
|
|
@@ -3257,7 +3257,7 @@ var RouteManager = class {
|
|
|
3257
3257
|
);
|
|
3258
3258
|
}
|
|
3259
3259
|
const markdownStaticPackages = _optionalChain([routeEntries, 'access', _183 => _183.find, 'call', _184 => _184(
|
|
3260
|
-
({ entry, metadata }) =>
|
|
3260
|
+
({ entry, metadata }) => _chunk7XGWBPQQcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) && metadata.staticPackageBoundaries
|
|
3261
3261
|
), 'optionalAccess', _185 => _185.metadata, 'access', _186 => _186.staticPackageBoundaries]);
|
|
3262
3262
|
if (markdownStaticPackages) {
|
|
3263
3263
|
_chunkQMNWKQL4cjs.logger.info(
|
|
@@ -3265,7 +3265,7 @@ var RouteManager = class {
|
|
|
3265
3265
|
);
|
|
3266
3266
|
}
|
|
3267
3267
|
for (const { entry, metadata } of [...layoutEntries, ...routeEntries]) {
|
|
3268
|
-
if (
|
|
3268
|
+
if (_chunk7XGWBPQQcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) || !metadata.staticPackageBoundaries) continue;
|
|
3269
3269
|
_chunkQMNWKQL4cjs.logger.info(
|
|
3270
3270
|
`[Farm.js] ${entry.pattern} renders client components from ${metadata.staticPackageBoundaries.join(", ")} as static HTML: package client components cannot be isolated yet.`
|
|
3271
3271
|
);
|
|
@@ -3273,15 +3273,15 @@ var RouteManager = class {
|
|
|
3273
3273
|
enforceFarmIsolatedHydrationRouteBudget(
|
|
3274
3274
|
layoutEntries.map(({ entry, metadata }) => ({
|
|
3275
3275
|
pattern: entry.pattern,
|
|
3276
|
-
depth:
|
|
3276
|
+
depth: _chunkUJ3R2AH2cjs.getRouteDirectoryDepth.call(void 0, entry.pattern),
|
|
3277
3277
|
metadata
|
|
3278
3278
|
})),
|
|
3279
3279
|
routeEntries.map(({ entry, metadata }) => ({
|
|
3280
3280
|
pattern: getRouteEntryDirectory(entry),
|
|
3281
|
-
depth:
|
|
3281
|
+
depth: _chunkUJ3R2AH2cjs.getRouteDirectoryDepth.call(void 0, getRouteEntryDirectory(entry)),
|
|
3282
3282
|
metadata
|
|
3283
3283
|
})),
|
|
3284
|
-
|
|
3284
|
+
_chunkUJ3R2AH2cjs.routeBoundaryCoversDirectory,
|
|
3285
3285
|
{ serverOwners: islandsMode }
|
|
3286
3286
|
);
|
|
3287
3287
|
for (const { entry, metadata } of [...layoutEntries, ...routeEntries]) {
|
|
@@ -3301,7 +3301,7 @@ var RouteManager = class {
|
|
|
3301
3301
|
const routes = routeEntries.map(({ entry, metadata }) => {
|
|
3302
3302
|
const programmaticPage = this.programmaticPages.get(entry.modulePath);
|
|
3303
3303
|
const layoutShouldHydrate = layoutEntries.some(
|
|
3304
|
-
({ entry: layout, metadata: layoutMetadata }) => layoutMetadata.shouldHydrate &&
|
|
3304
|
+
({ entry: layout, metadata: layoutMetadata }) => layoutMetadata.shouldHydrate && _chunkUJ3R2AH2cjs.routeBoundaryCoversDirectory.call(void 0, layout.pattern, getRouteEntryDirectory(entry))
|
|
3305
3305
|
);
|
|
3306
3306
|
return {
|
|
3307
3307
|
pattern: entry.pattern,
|
|
@@ -3318,7 +3318,7 @@ var RouteManager = class {
|
|
|
3318
3318
|
}))
|
|
3319
3319
|
} : {},
|
|
3320
3320
|
...usesFarmServerTree(metadata) ? { serverTree: true } : {},
|
|
3321
|
-
renderPlan:
|
|
3321
|
+
renderPlan: _chunkUJ3R2AH2cjs.createFarmRouteRenderPlan.call(void 0, {
|
|
3322
3322
|
pageShouldHydrate: metadata.shouldHydrate,
|
|
3323
3323
|
layoutShouldHydrate,
|
|
3324
3324
|
islandStrategy: metadata.islandStrategy
|
|
@@ -3334,7 +3334,7 @@ var RouteManager = class {
|
|
|
3334
3334
|
}))
|
|
3335
3335
|
};
|
|
3336
3336
|
});
|
|
3337
|
-
const treeLayoutPatterns = islandsMode ?
|
|
3337
|
+
const treeLayoutPatterns = islandsMode ? _chunkUJ3R2AH2cjs.getFarmServerTreeLayoutPatterns.call(void 0,
|
|
3338
3338
|
layoutEntries.map(({ entry, metadata }) => ({
|
|
3339
3339
|
pattern: entry.pattern,
|
|
3340
3340
|
shouldHydrate: metadata.shouldHydrate,
|
|
@@ -3457,13 +3457,13 @@ var RouteManager = class {
|
|
|
3457
3457
|
const { createRouteModuleFromProgrammaticPage } = await import("./routes.cjs");
|
|
3458
3458
|
return createRouteModuleFromProgrammaticPage(programmaticPage, this.rendererRuntime);
|
|
3459
3459
|
}
|
|
3460
|
-
if (
|
|
3460
|
+
if (_chunk7XGWBPQQcjs.isFarmMarkdownPageFile.call(void 0, modulePath)) {
|
|
3461
3461
|
const mdxConfig = _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, this.config.mdx);
|
|
3462
|
-
const components = await
|
|
3462
|
+
const components = await _chunkXBSKPLHFcjs.loadFarmMdxComponents.call(void 0, mdxConfig, {
|
|
3463
3463
|
root: this.config.root,
|
|
3464
3464
|
loadModule: this.viteServer ? (componentModulePath) => _chunkJYNNIGQOcjs.loadFarmDevModule.call(void 0, this.viteServer, componentModulePath) : void 0
|
|
3465
3465
|
});
|
|
3466
|
-
return await
|
|
3466
|
+
return await _chunkXBSKPLHFcjs.createFarmMarkdownRouteModuleFromFile.call(void 0, modulePath, {
|
|
3467
3467
|
components,
|
|
3468
3468
|
config: mdxConfig
|
|
3469
3469
|
});
|
|
@@ -3513,7 +3513,7 @@ var RouteManager = class {
|
|
|
3513
3513
|
*/
|
|
3514
3514
|
createRoutePattern(route) {
|
|
3515
3515
|
if (route.segments.length === 0) return "/";
|
|
3516
|
-
return "/" + route.segments.map(
|
|
3516
|
+
return "/" + route.segments.map(_chunkUJ3R2AH2cjs.formatRouteSegment).join("/");
|
|
3517
3517
|
}
|
|
3518
3518
|
registerPageRoute(entry) {
|
|
3519
3519
|
_chunkYTVSWXEZcjs.assertUniqueRouteParameters.call(void 0, entry.pattern);
|
|
@@ -3564,8 +3564,8 @@ var RouteManager = class {
|
|
|
3564
3564
|
}
|
|
3565
3565
|
}
|
|
3566
3566
|
for (const [pattern, group] of canonicalPageGroups) {
|
|
3567
|
-
const componentFiles = group.files.filter((file) => !
|
|
3568
|
-
const markdownFiles = group.files.filter(
|
|
3567
|
+
const componentFiles = group.files.filter((file) => !_chunk7XGWBPQQcjs.isFarmMarkdownPageFile.call(void 0, file));
|
|
3568
|
+
const markdownFiles = group.files.filter(_chunk7XGWBPQQcjs.isFarmMarkdownPageFile);
|
|
3569
3569
|
if (componentFiles.length > 1) {
|
|
3570
3570
|
throw new Error(
|
|
3571
3571
|
`Duplicate page route "${pattern}". Found ${componentFiles.map((file) => path7.default.join(appDir, file)).join(" and ")}.`
|
|
@@ -3607,7 +3607,7 @@ var RouteManager = class {
|
|
|
3607
3607
|
for (const file of files) {
|
|
3608
3608
|
const route = _chunkQMNWKQL4cjs.parseRoutePath.call(void 0, file);
|
|
3609
3609
|
const modulePath = path7.default.join(appDir, file);
|
|
3610
|
-
const pattern =
|
|
3610
|
+
const pattern = _chunkUJ3R2AH2cjs.createRouteDirectoryPattern.call(void 0, route);
|
|
3611
3611
|
const existing = target.get(pattern);
|
|
3612
3612
|
if (_optionalChain([existing, 'optionalAccess', _193 => _193.sourceRoot]) === source.root) {
|
|
3613
3613
|
throw new Error(
|
|
@@ -3629,7 +3629,7 @@ var RouteManager = class {
|
|
|
3629
3629
|
const modulePath = path7.default.join(appDir, file);
|
|
3630
3630
|
const pattern = this.createRoutePattern(slot.route);
|
|
3631
3631
|
const ownerPattern = this.createRoutePattern(slot.ownerRoute);
|
|
3632
|
-
const ownerDirectory =
|
|
3632
|
+
const ownerDirectory = _chunkUJ3R2AH2cjs.createRouteDirectoryPattern.call(void 0, slot.ownerRoute);
|
|
3633
3633
|
const key = `${ownerPattern}:${slot.name}:${slot.interception ? "intercept" : "slot"}:${slot.fallback ? "default" : pattern}`;
|
|
3634
3634
|
const existing = this.routeSlots.get(key);
|
|
3635
3635
|
if (_optionalChain([existing, 'optionalAccess', _194 => _194.sourceRoot]) === source.root) {
|
|
@@ -3746,7 +3746,7 @@ var RouteManager = class {
|
|
|
3746
3746
|
}
|
|
3747
3747
|
if (definition.kind === "layout") {
|
|
3748
3748
|
const route = _chunkE7QOEV5Zcjs.parseProgrammaticRoutePath.call(void 0, definition.path, "layout");
|
|
3749
|
-
const pattern =
|
|
3749
|
+
const pattern = _chunkUJ3R2AH2cjs.createRouteDirectoryPattern.call(void 0, route);
|
|
3750
3750
|
const existing = this.layouts.get(pattern);
|
|
3751
3751
|
if (_optionalChain([existing, 'optionalAccess', _198 => _198.sourceRoot]) === source.root) {
|
|
3752
3752
|
throw new Error(
|
|
@@ -3793,7 +3793,7 @@ var RouteManager = class {
|
|
|
3793
3793
|
const matchingLayouts = [];
|
|
3794
3794
|
for (const { entry, groupScope } of this.orderedLayouts) {
|
|
3795
3795
|
if (!_chunkQMNWKQL4cjs.matchRoutePrefixParts.call(void 0, pathnameParts, entry.route.segments)) continue;
|
|
3796
|
-
if (groupScope !== null && !
|
|
3796
|
+
if (groupScope !== null && !_chunkUJ3R2AH2cjs.isInRouteGroupScope.call(void 0, route && getRouteEntryDirectory(route), groupScope)) {
|
|
3797
3797
|
continue;
|
|
3798
3798
|
}
|
|
3799
3799
|
matchingLayouts.push(entry);
|
|
@@ -3874,14 +3874,14 @@ var RouteManager = class {
|
|
|
3874
3874
|
let page = route;
|
|
3875
3875
|
for (const boundaryEntry of boundaries.values()) {
|
|
3876
3876
|
if (!_chunkQMNWKQL4cjs.matchRoutePrefix.call(void 0, normalizedPath, boundaryEntry.route.segments)) continue;
|
|
3877
|
-
const groupScope =
|
|
3877
|
+
const groupScope = _chunkUJ3R2AH2cjs.getRouteGroupScope.call(void 0, boundaryEntry.pattern);
|
|
3878
3878
|
if (groupScope !== null) {
|
|
3879
3879
|
if (page === void 0) page = this.matchPageRoute(_chunkQMNWKQL4cjs.splitRoutePath.call(void 0, normalizedPath));
|
|
3880
|
-
if (!
|
|
3880
|
+
if (!_chunkUJ3R2AH2cjs.isInRouteGroupScope.call(void 0, page && getRouteEntryDirectory(page), groupScope)) continue;
|
|
3881
3881
|
}
|
|
3882
3882
|
const depth = boundaryEntry.route.segments.length;
|
|
3883
3883
|
const bestDepth = _nullishCoalesce(_optionalChain([bestMatch, 'optionalAccess', _202 => _202.route, 'access', _203 => _203.segments, 'access', _204 => _204.length]), () => ( -1));
|
|
3884
|
-
if (!bestMatch || depth > bestDepth || depth === bestDepth &&
|
|
3884
|
+
if (!bestMatch || depth > bestDepth || depth === bestDepth && _chunkUJ3R2AH2cjs.getRouteDirectoryDepth.call(void 0, boundaryEntry.pattern) > _chunkUJ3R2AH2cjs.getRouteDirectoryDepth.call(void 0, bestMatch.pattern)) {
|
|
3885
3885
|
bestMatch = boundaryEntry;
|
|
3886
3886
|
}
|
|
3887
3887
|
}
|
|
@@ -4009,7 +4009,7 @@ var RouteManager = class {
|
|
|
4009
4009
|
}
|
|
4010
4010
|
};
|
|
4011
4011
|
function getPageDirectoryField(route, pattern) {
|
|
4012
|
-
const directory =
|
|
4012
|
+
const directory = _chunkUJ3R2AH2cjs.createRouteDirectoryPattern.call(void 0, route);
|
|
4013
4013
|
return directory === pattern ? {} : { directory };
|
|
4014
4014
|
}
|
|
4015
4015
|
function interpolateRedirectDestination(destination, params) {
|
|
@@ -5302,7 +5302,7 @@ function inferFarmRouteRootStrategy(owners, root) {
|
|
|
5302
5302
|
function resolveFarmRouteRootStrategy(route, page, layouts, root, islandsMode) {
|
|
5303
5303
|
const directory = _nullishCoalesce(route.directory, () => ( route.pattern));
|
|
5304
5304
|
const onRoute = layouts.filter(
|
|
5305
|
-
(layout) =>
|
|
5305
|
+
(layout) => _chunkUJ3R2AH2cjs.routeBoundaryCoversDirectory.call(void 0, layout.pattern, directory)
|
|
5306
5306
|
);
|
|
5307
5307
|
const declared = [
|
|
5308
5308
|
...page.islandStrategy ? [page.islandStrategy] : [],
|
|
@@ -5639,11 +5639,11 @@ function getFarmLayoutKey(pattern, params) {
|
|
|
5639
5639
|
);
|
|
5640
5640
|
}
|
|
5641
5641
|
function countFarmKeptLayouts(layoutsHeader, layouts, params) {
|
|
5642
|
-
const chain =
|
|
5642
|
+
const chain = _chunkUJ3R2AH2cjs.parseFarmLayoutChainHeader.call(void 0, _nullishCoalesce(layoutsHeader, () => ( null)));
|
|
5643
5643
|
if (chain.length === 0) return 0;
|
|
5644
5644
|
const keys = layouts.map((layout) => getFarmLayoutKey(layout.pattern, params));
|
|
5645
|
-
if (chain[0] === keys[0]) return
|
|
5646
|
-
return keys.length > 1 ? 1 +
|
|
5645
|
+
if (chain[0] === keys[0]) return _chunkUJ3R2AH2cjs.getSharedLayoutPrefixLength.call(void 0, chain, keys);
|
|
5646
|
+
return keys.length > 1 ? 1 + _chunkUJ3R2AH2cjs.getSharedLayoutPrefixLength.call(void 0, chain, keys.slice(1)) : 0;
|
|
5647
5647
|
}
|
|
5648
5648
|
function createFarmFlushToken() {
|
|
5649
5649
|
const bytes = new Uint8Array(16);
|
|
@@ -6022,7 +6022,7 @@ function appendResponseVary(res, value) {
|
|
|
6022
6022
|
function renderI18nAlternateLinks(requestPath, snapshot, options) {
|
|
6023
6023
|
if (snapshot.routing === "none") return "";
|
|
6024
6024
|
const url = new URL(requestPath, "http://farm.local");
|
|
6025
|
-
return
|
|
6025
|
+
return _chunkUJ3R2AH2cjs.renderFarmLocaleAlternateLinks.call(void 0, url.pathname, snapshot, options);
|
|
6026
6026
|
}
|
|
6027
6027
|
var PPR_REFRESH_MAX_ATTEMPTS = 3;
|
|
6028
6028
|
function createPPRRefreshScript() {
|
|
@@ -6833,7 +6833,7 @@ var ServerRenderer = class {
|
|
|
6833
6833
|
layouts = match.layouts;
|
|
6834
6834
|
routeSlots = _nullishCoalesce(match.slots, () => ( []));
|
|
6835
6835
|
if (!route) {
|
|
6836
|
-
if (
|
|
6836
|
+
if (_chunkY5TOT5F6cjs.isFarmDefaultMCPPathname.call(void 0, pathname) && this.getDefaultMCPServer()) {
|
|
6837
6837
|
await this.renderDefaultMCP(req, res);
|
|
6838
6838
|
completeRender(res.statusCode || 200, pathname);
|
|
6839
6839
|
return;
|
|
@@ -7392,7 +7392,7 @@ var ServerRenderer = class {
|
|
|
7392
7392
|
}
|
|
7393
7393
|
}
|
|
7394
7394
|
_chunkEVIWKPJVcjs.emitFarmEvent.call(void 0, { type: "render.error", route: pathname, error });
|
|
7395
|
-
const errorStatus =
|
|
7395
|
+
const errorStatus = _chunkUJ3R2AH2cjs.resolveDefaultErrorStatus.call(void 0, error);
|
|
7396
7396
|
if (pprRefreshRoute) {
|
|
7397
7397
|
_chunkEVIWKPJVcjs.emitFarmEvent.call(void 0, {
|
|
7398
7398
|
type: "ppr.refresh.error",
|
|
@@ -7544,7 +7544,7 @@ var ServerRenderer = class {
|
|
|
7544
7544
|
);
|
|
7545
7545
|
metadata = _chunk6IOZPJ3Icjs.addMetadataMarkdownAlternate.call(void 0,
|
|
7546
7546
|
metadata,
|
|
7547
|
-
|
|
7547
|
+
_chunk2C5L5RPMcjs.getFarmMarkdownAlternatePath.call(void 0, _chunk2C5L5RPMcjs.resolveMarkdownConfig.call(void 0, this.config.md), publicPathname)
|
|
7548
7548
|
);
|
|
7549
7549
|
return metadata;
|
|
7550
7550
|
}
|
|
@@ -7616,11 +7616,11 @@ var ServerRenderer = class {
|
|
|
7616
7616
|
path: match.routePath,
|
|
7617
7617
|
...llmsContext
|
|
7618
7618
|
}) : routeModule.default;
|
|
7619
|
-
const body = match.metadata.kind === "llms-full" && !(value instanceof Response) ? await
|
|
7619
|
+
const body = match.metadata.kind === "llms-full" && !(value instanceof Response) ? await _chunkFJWN7RV4cjs.renderFarmLlmsFullTxt.call(void 0, value, {
|
|
7620
7620
|
origin: url.origin,
|
|
7621
7621
|
readMarkdown: llmsContext.markdown
|
|
7622
7622
|
}) : value;
|
|
7623
|
-
const response =
|
|
7623
|
+
const response = _chunkUJ3R2AH2cjs.createFarmMetadataRouteResponse.call(void 0, match.metadata.kind, body, routeModule, {
|
|
7624
7624
|
method,
|
|
7625
7625
|
request: request2
|
|
7626
7626
|
});
|
|
@@ -7638,7 +7638,7 @@ var ServerRenderer = class {
|
|
|
7638
7638
|
}
|
|
7639
7639
|
/** `/llms.txt` and `/llms-full.txt` from `agent.llmsTxt` when no file route owns them. */
|
|
7640
7640
|
getGeneratedLlmsKind(pathname) {
|
|
7641
|
-
const config =
|
|
7641
|
+
const config = _chunkFJWN7RV4cjs.resolveFarmLlmsTxtConfig.call(void 0, _optionalChain([this, 'access', _296 => _296.config, 'access', _297 => _297.agent, 'optionalAccess', _298 => _298.llmsTxt]));
|
|
7642
7642
|
if (!config.enabled) return null;
|
|
7643
7643
|
if (pathname === "/llms.txt") return "llms";
|
|
7644
7644
|
return pathname === "/llms-full.txt" && config.full ? "llms-full" : null;
|
|
@@ -7648,15 +7648,15 @@ var ServerRenderer = class {
|
|
|
7648
7648
|
const request2 = _chunkHNAISJFDcjs.createWebRequestFromFarmRequest.call(void 0, req, {
|
|
7649
7649
|
trustProxy: _optionalChain([this, 'access', _299 => _299.config, 'access', _300 => _300.server, 'optionalAccess', _301 => _301.trustProxy])
|
|
7650
7650
|
});
|
|
7651
|
-
const config =
|
|
7651
|
+
const config = _chunkFJWN7RV4cjs.resolveFarmLlmsTxtConfig.call(void 0, _optionalChain([this, 'access', _302 => _302.config, 'access', _303 => _303.agent, 'optionalAccess', _304 => _304.llmsTxt]));
|
|
7652
7652
|
const context = await this.createLlmsTxtContext(request2, { full: kind === "llms-full", req });
|
|
7653
|
-
const body = kind === "llms-full" ? await
|
|
7653
|
+
const body = kind === "llms-full" ? await _chunkFJWN7RV4cjs.renderFarmLlmsFullTxt.call(void 0, context.defaults, {
|
|
7654
7654
|
origin: new URL(request2.url).origin,
|
|
7655
7655
|
readMarkdown: context.markdown
|
|
7656
7656
|
}) : context.defaults;
|
|
7657
7657
|
await _chunkYIHRZBD7cjs.sendWebResponse.call(void 0,
|
|
7658
7658
|
res,
|
|
7659
|
-
|
|
7659
|
+
_chunkUJ3R2AH2cjs.createFarmMetadataRouteResponse.call(void 0,
|
|
7660
7660
|
kind,
|
|
7661
7661
|
body,
|
|
7662
7662
|
{ revalidate: config.revalidate },
|
|
@@ -7675,7 +7675,7 @@ var ServerRenderer = class {
|
|
|
7675
7675
|
}
|
|
7676
7676
|
}
|
|
7677
7677
|
getAgentCrawlers() {
|
|
7678
|
-
return
|
|
7678
|
+
return _chunkO6L3YYPMcjs.resolveFarmAgentCrawlers.call(void 0, _optionalChain([this, 'access', _305 => _305.config, 'access', _306 => _306.agent, 'optionalAccess', _307 => _307.crawlers]));
|
|
7679
7679
|
}
|
|
7680
7680
|
/** `/robots.txt` from `agent.crawlers` when no robots.ts owns it. */
|
|
7681
7681
|
async renderGeneratedRobotsTxt(req, res) {
|
|
@@ -7683,7 +7683,7 @@ var ServerRenderer = class {
|
|
|
7683
7683
|
const sitemapPath = _optionalChain([this, 'access', _308 => _308.routeManager, 'access', _309 => _309.matchMetadataRoute, 'call', _310 => _310("/sitemap.xml"), 'optionalAccess', _311 => _311.metadata, 'access', _312 => _312.kind]) === "sitemap" || this.getAgentSitemap().enabled ? "/sitemap.xml" : void 0;
|
|
7684
7684
|
const rootLayout = this.routeManager.getLayouts().get("/");
|
|
7685
7685
|
const rootMetadata = sitemapPath && rootLayout ? (await this.routeManager.loadLayoutModule(rootLayout.modulePath)).metadata : void 0;
|
|
7686
|
-
const robots =
|
|
7686
|
+
const robots = _chunkO6L3YYPMcjs.createFarmAgentRobots.call(void 0, {
|
|
7687
7687
|
crawlers: this.getAgentCrawlers(),
|
|
7688
7688
|
sitemapPath,
|
|
7689
7689
|
metadataBase: _optionalChain([rootMetadata, 'optionalAccess', _313 => _313.metadataBase]),
|
|
@@ -7691,7 +7691,7 @@ var ServerRenderer = class {
|
|
|
7691
7691
|
});
|
|
7692
7692
|
await _chunkYIHRZBD7cjs.sendWebResponse.call(void 0,
|
|
7693
7693
|
res,
|
|
7694
|
-
|
|
7694
|
+
_chunkUJ3R2AH2cjs.createFarmMetadataRouteResponse.call(void 0, "robots", robots, {}, { method: req.method })
|
|
7695
7695
|
);
|
|
7696
7696
|
} catch (error) {
|
|
7697
7697
|
_chunkQMNWKQL4cjs.logger.error(`Generated robots.txt failed: ${error}`);
|
|
@@ -7705,7 +7705,7 @@ var ServerRenderer = class {
|
|
|
7705
7705
|
}
|
|
7706
7706
|
}
|
|
7707
7707
|
getAgentSitemap() {
|
|
7708
|
-
return
|
|
7708
|
+
return _chunkO6L3YYPMcjs.resolveFarmAgentSitemap.call(void 0, _optionalChain([this, 'access', _314 => _314.config, 'access', _315 => _315.agent, 'optionalAccess', _316 => _316.sitemap]));
|
|
7709
7709
|
}
|
|
7710
7710
|
/** `/sitemap.xml` from `agent.sitemap` when no sitemap.ts owns it. */
|
|
7711
7711
|
async renderGeneratedSitemap(req, res) {
|
|
@@ -7727,7 +7727,7 @@ var ServerRenderer = class {
|
|
|
7727
7727
|
);
|
|
7728
7728
|
const rootLayout = this.routeManager.getLayouts().get("/");
|
|
7729
7729
|
const rootMetadata = rootLayout ? (await this.routeManager.loadLayoutModule(rootLayout.modulePath)).metadata : void 0;
|
|
7730
|
-
const sitemap =
|
|
7730
|
+
const sitemap = _chunkO6L3YYPMcjs.createFarmDefaultSitemap.call(void 0, sources, {
|
|
7731
7731
|
origin: new URL(request2.url).origin,
|
|
7732
7732
|
config: this.getAgentSitemap(),
|
|
7733
7733
|
metadataBase: _optionalChain([rootMetadata, 'optionalAccess', _323 => _323.metadataBase]),
|
|
@@ -7735,7 +7735,7 @@ var ServerRenderer = class {
|
|
|
7735
7735
|
});
|
|
7736
7736
|
await _chunkYIHRZBD7cjs.sendWebResponse.call(void 0,
|
|
7737
7737
|
res,
|
|
7738
|
-
|
|
7738
|
+
_chunkUJ3R2AH2cjs.createFarmMetadataRouteResponse.call(void 0, "sitemap", sitemap, {}, { method: req.method })
|
|
7739
7739
|
);
|
|
7740
7740
|
} catch (error) {
|
|
7741
7741
|
_chunkQMNWKQL4cjs.logger.error(`Generated sitemap.xml failed: ${error}`);
|
|
@@ -7764,7 +7764,7 @@ var ServerRenderer = class {
|
|
|
7764
7764
|
getAgentListedRoutes() {
|
|
7765
7765
|
const guards = { config: this.config, middlewareRoutes: _nullishCoalesce(_optionalChain([this, 'access', _324 => _324.middlewareRoutes, 'optionalCall', _325 => _325()]), () => ( [])) };
|
|
7766
7766
|
return [...this.routeManager.getRoutes()].filter(
|
|
7767
|
-
([pattern]) => !pattern.includes("[") && !
|
|
7767
|
+
([pattern]) => !pattern.includes("[") && !_chunkUJ3R2AH2cjs.farmPathGuardCoversPage.call(void 0, guards, pattern)
|
|
7768
7768
|
);
|
|
7769
7769
|
}
|
|
7770
7770
|
/**
|
|
@@ -7773,20 +7773,20 @@ var ServerRenderer = class {
|
|
|
7773
7773
|
* or a registered server such as the docs engine's. Production applies the same rules.
|
|
7774
7774
|
*/
|
|
7775
7775
|
getDefaultMCPServer() {
|
|
7776
|
-
if (_optionalChain([this, 'access', _326 => _326.config, 'access', _327 => _327.agent, 'optionalAccess', _328 => _328.mcp]) !== true ||
|
|
7776
|
+
if (_optionalChain([this, 'access', _326 => _326.config, 'access', _327 => _327.agent, 'optionalAccess', _328 => _328.mcp]) !== true || _chunkY5TOT5F6cjs.farmConfigMountsMCP.call(void 0, this.config)) return void 0;
|
|
7777
7777
|
if (_optionalChain([this, 'access', _329 => _329.apiRouteExists, 'optionalCall', _330 => _330("/api/mcp")])) return void 0;
|
|
7778
|
-
if (this.routeManager.matchRoute(
|
|
7779
|
-
_nullishCoalesce(this.defaultMCPServer, () => ( (this.defaultMCPServer =
|
|
7778
|
+
if (this.routeManager.matchRoute(_chunkY5TOT5F6cjs.FARM_DEFAULT_MCP_PATH).route) return void 0;
|
|
7779
|
+
_nullishCoalesce(this.defaultMCPServer, () => ( (this.defaultMCPServer = _chunkY5TOT5F6cjs.createFarmDefaultMCPServer.call(void 0,
|
|
7780
7780
|
readAppPackageIdentity(this.config.root),
|
|
7781
|
-
|
|
7781
|
+
_chunkO2XFIPNLcjs.FARM_VERSION
|
|
7782
7782
|
))));
|
|
7783
|
-
return
|
|
7783
|
+
return _chunkY5TOT5F6cjs.resolveFarmDefaultMCPServer.call(void 0, this.defaultMCPServer);
|
|
7784
7784
|
}
|
|
7785
7785
|
async renderDefaultMCP(req, res) {
|
|
7786
7786
|
const server = this.getDefaultMCPServer();
|
|
7787
7787
|
const request2 = _nullishCoalesce(_chunkHNAISJFDcjs.getCurrentRequestOrNull.call(void 0, ), () => ( _chunkHNAISJFDcjs.createWebRequestFromFarmRequest.call(void 0, req, { trustProxy: _optionalChain([this, 'access', _331 => _331.config, 'access', _332 => _332.server, 'optionalAccess', _333 => _333.trustProxy]) })));
|
|
7788
7788
|
try {
|
|
7789
|
-
const { handleFarmDefaultMCPRequest } = await import("./agent-mcp-handler-
|
|
7789
|
+
const { handleFarmDefaultMCPRequest } = await import("./agent-mcp-handler-OXT73ZBY.cjs");
|
|
7790
7790
|
const origin = new URL(request2.url).origin;
|
|
7791
7791
|
const response = await handleFarmDefaultMCPRequest(request2, {
|
|
7792
7792
|
server,
|
|
@@ -7800,10 +7800,10 @@ var ServerRenderer = class {
|
|
|
7800
7800
|
module: await this.routeManager.loadRouteModule(route.modulePath).catch(() => ({ __farmRouteGuard: true }))
|
|
7801
7801
|
}))
|
|
7802
7802
|
);
|
|
7803
|
-
return
|
|
7803
|
+
return _chunkY5TOT5F6cjs.collectFarmDefaultMCPPages.call(void 0, sources, {
|
|
7804
7804
|
origin,
|
|
7805
7805
|
basePath: this.config.basePath,
|
|
7806
|
-
markdown:
|
|
7806
|
+
markdown: _chunk2C5L5RPMcjs.resolveMarkdownConfig.call(void 0, this.config.md)
|
|
7807
7807
|
});
|
|
7808
7808
|
},
|
|
7809
7809
|
// Pages are read through this server's own socket, with no cookies, as llms-full.txt does.
|
|
@@ -7827,7 +7827,7 @@ var ServerRenderer = class {
|
|
|
7827
7827
|
}
|
|
7828
7828
|
/** Same inputs the production server gives llms.txt: static pages and root metadata. */
|
|
7829
7829
|
async createLlmsTxtContext(request2, options = {}) {
|
|
7830
|
-
const config =
|
|
7830
|
+
const config = _chunkFJWN7RV4cjs.resolveFarmLlmsTxtConfig.call(void 0, _optionalChain([this, 'access', _334 => _334.config, 'access', _335 => _335.agent, 'optionalAccess', _336 => _336.llmsTxt]));
|
|
7831
7831
|
const origin = new URL(request2.url).origin;
|
|
7832
7832
|
const sources = await Promise.all(
|
|
7833
7833
|
this.getAgentListedRoutes().map(async ([pattern, route]) => {
|
|
@@ -7843,24 +7843,24 @@ var ServerRenderer = class {
|
|
|
7843
7843
|
);
|
|
7844
7844
|
const rootLayout = this.routeManager.getLayouts().get("/");
|
|
7845
7845
|
const rootMetadata = rootLayout ? (await this.routeManager.loadLayoutModule(rootLayout.modulePath)).metadata : void 0;
|
|
7846
|
-
const pages =
|
|
7846
|
+
const pages = _chunkFJWN7RV4cjs.collectFarmLlmsTxtPages.call(void 0,
|
|
7847
7847
|
sources.filter((source) => source !== null),
|
|
7848
7848
|
{
|
|
7849
7849
|
origin,
|
|
7850
7850
|
basePath: this.config.basePath,
|
|
7851
|
-
markdown:
|
|
7851
|
+
markdown: _chunk2C5L5RPMcjs.resolveMarkdownConfig.call(void 0, this.config.md),
|
|
7852
7852
|
include: config.include,
|
|
7853
7853
|
exclude: config.exclude
|
|
7854
7854
|
}
|
|
7855
7855
|
);
|
|
7856
7856
|
return {
|
|
7857
7857
|
pages,
|
|
7858
|
-
defaults:
|
|
7858
|
+
defaults: _chunkFJWN7RV4cjs.createFarmDefaultLlmsTxt.call(void 0, {
|
|
7859
7859
|
origin,
|
|
7860
7860
|
pages,
|
|
7861
7861
|
config,
|
|
7862
7862
|
rootMetadata,
|
|
7863
|
-
mcp: _optionalChain([this, 'access', _337 => _337.config, 'access', _338 => _338.agent, 'optionalAccess', _339 => _339.aiCatalog]) === false ? [] :
|
|
7863
|
+
mcp: _optionalChain([this, 'access', _337 => _337.config, 'access', _338 => _338.agent, 'optionalAccess', _339 => _339.aiCatalog]) === false ? [] : _chunkNXFA7G3Ycjs.listFarmMCPLlmsTxtLinks.call(void 0, origin, {
|
|
7864
7864
|
basePath: this.config.basePath,
|
|
7865
7865
|
apiServerBasePath: _chunk2OF5RPVUcjs.resolveFarmAPIServerBasePath.call(void 0,
|
|
7866
7866
|
_chunkPMJSG4JScjs.normalizeFarmAPIConfig.call(void 0,
|
|
@@ -7889,11 +7889,11 @@ var ServerRenderer = class {
|
|
|
7889
7889
|
}
|
|
7890
7890
|
if (socket.encrypted) {
|
|
7891
7891
|
const address = { host: socket.localAddress, port: socket.localPort };
|
|
7892
|
-
return
|
|
7892
|
+
return _chunkFJWN7RV4cjs.createFarmLlmsMarkdownReader.call(void 0, (page) => requestOwnHttpsServer(page, address));
|
|
7893
7893
|
}
|
|
7894
7894
|
const host = socket.localAddress.includes(":") ? `[${socket.localAddress}]` : socket.localAddress;
|
|
7895
7895
|
const localOrigin = `http://${host}:${socket.localPort}`;
|
|
7896
|
-
const read =
|
|
7896
|
+
const read = _chunkFJWN7RV4cjs.createFarmLlmsMarkdownReader.call(void 0, (page) => fetch(page));
|
|
7897
7897
|
return (url) => {
|
|
7898
7898
|
const target = new URL(url);
|
|
7899
7899
|
return read(`${localOrigin}${target.pathname}${target.search}`);
|
|
@@ -8139,8 +8139,8 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
8139
8139
|
const { html: content, head: rendererHead } = await this.renderElementToDocumentParts(
|
|
8140
8140
|
element,
|
|
8141
8141
|
{
|
|
8142
|
-
rejectLateNavigation:
|
|
8143
|
-
_optionalChain([req, 'access', _351 => _351.headers, 'optionalAccess', _352 => _352[
|
|
8142
|
+
rejectLateNavigation: _chunk2C5L5RPMcjs._isFarmMarkdownPageCheck.call(void 0,
|
|
8143
|
+
_optionalChain([req, 'access', _351 => _351.headers, 'optionalAccess', _352 => _352[_chunk2C5L5RPMcjs.FARM_MARKDOWN_PAGE_CHECK_HEADER]])
|
|
8144
8144
|
)
|
|
8145
8145
|
}
|
|
8146
8146
|
);
|
|
@@ -8162,19 +8162,19 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
8162
8162
|
i18nSnapshot,
|
|
8163
8163
|
this.getI18nAlternateOptions(req, req.__FARM_METADATA__)
|
|
8164
8164
|
) : "";
|
|
8165
|
-
const themeDocument =
|
|
8165
|
+
const themeDocument = _chunkUJ3R2AH2cjs.createFarmThemeDocumentParts.call(void 0,
|
|
8166
8166
|
this.config.theme,
|
|
8167
8167
|
this.config.basePath,
|
|
8168
8168
|
_chunk4ZJ5C7UJcjs.getTheme.call(void 0, )
|
|
8169
8169
|
);
|
|
8170
8170
|
themeDocument.head = farmScripts(themeDocument.head);
|
|
8171
|
-
const fullDocument =
|
|
8171
|
+
const fullDocument = _chunkUJ3R2AH2cjs.extractFarmFullDocument.call(void 0, content);
|
|
8172
8172
|
let html;
|
|
8173
8173
|
if (fullDocument) {
|
|
8174
8174
|
const shouldReplaceLayoutTitle = hasExplicitTitle || rendererHasTitle;
|
|
8175
|
-
const documentHtml = shouldReplaceLayoutTitle ?
|
|
8176
|
-
const effectiveRendererHead = hasExplicitTitle ?
|
|
8177
|
-
html =
|
|
8175
|
+
const documentHtml = shouldReplaceLayoutTitle ? _chunkUJ3R2AH2cjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument;
|
|
8176
|
+
const effectiveRendererHead = hasExplicitTitle ? _chunkUJ3R2AH2cjs.removeFarmDocumentTitles.call(void 0, rendererHead) : rendererHead;
|
|
8177
|
+
html = _chunkUJ3R2AH2cjs.composeFarmFullDocument.call(void 0, documentHtml, {
|
|
8178
8178
|
fallbackIcon: !hasFavicon,
|
|
8179
8179
|
viewport: viewportTags,
|
|
8180
8180
|
htmlAttributes: `${i18nSnapshot ? ` lang="${escapeHtmlAttribute2(i18nSnapshot.locale)}" dir="${escapeHtmlAttribute2(i18nSnapshot.direction)}"` : ""}${themeDocument.attributes}`,
|
|
@@ -8281,7 +8281,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
8281
8281
|
const renderToPipeableStream = this.rendererRuntime.renderToPipeableStream;
|
|
8282
8282
|
const fullDocumentRouteKey = options.observabilityRoute || req.__FARM_ROUTE__ || req.url || "/";
|
|
8283
8283
|
const streamDocument = fullDocumentRoutes.has(fullDocumentRouteKey) || await this.rootLayoutRendersDocument();
|
|
8284
|
-
if (!renderToPipeableStream ||
|
|
8284
|
+
if (!renderToPipeableStream || _chunk2C5L5RPMcjs._isFarmMarkdownPageCheck.call(void 0, _optionalChain([req, 'access', _364 => _364.headers, 'optionalAccess', _365 => _365[_chunk2C5L5RPMcjs.FARM_MARKDOWN_PAGE_CHECK_HEADER]])) || streamDocument && (options.captureStaticShell || !_chunkRD623KW4cjs.isReactRenderer.call(void 0, this.config.renderer))) {
|
|
8285
8285
|
return this.renderBufferedSSR(element, req, res, clearMiddlewareData, options);
|
|
8286
8286
|
}
|
|
8287
8287
|
return new Promise((resolve3, reject) => {
|
|
@@ -8422,7 +8422,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
8422
8422
|
this.getI18nAlternateOptions(req, req.__FARM_METADATA__)
|
|
8423
8423
|
) : "";
|
|
8424
8424
|
const fontHead = renderFarmFontDevHead(this.config.root || process.cwd());
|
|
8425
|
-
const themeDocument =
|
|
8425
|
+
const themeDocument = _chunkUJ3R2AH2cjs.createFarmThemeDocumentParts.call(void 0,
|
|
8426
8426
|
this.config.theme,
|
|
8427
8427
|
this.config.basePath,
|
|
8428
8428
|
_chunk4ZJ5C7UJcjs.getTheme.call(void 0, )
|
|
@@ -8489,10 +8489,10 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
8489
8489
|
${stampDocumentHTML(earlyClientScript)}`
|
|
8490
8490
|
)
|
|
8491
8491
|
} : document;
|
|
8492
|
-
const documentTransform = streamDocument ?
|
|
8492
|
+
const documentTransform = streamDocument ? _chunkUJ3R2AH2cjs.createFarmStreamedDocumentTransform.call(void 0,
|
|
8493
8493
|
(opening) => withEarlyClient(
|
|
8494
|
-
|
|
8495
|
-
hasExplicitTitle ?
|
|
8494
|
+
_chunkUJ3R2AH2cjs.openFarmStreamedDocument.call(void 0,
|
|
8495
|
+
hasExplicitTitle ? _chunkUJ3R2AH2cjs.removeFarmDocumentTitles.call(void 0, opening) : opening,
|
|
8496
8496
|
{
|
|
8497
8497
|
fallbackIcon: !hasFavicon,
|
|
8498
8498
|
viewport: viewportTags,
|
|
@@ -8531,7 +8531,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
8531
8531
|
const recordRenderedChunk = (chunkText, renderedText = chunkText) => {
|
|
8532
8532
|
if (!checkedFullDocument && renderedText) {
|
|
8533
8533
|
documentPrefix += renderedText;
|
|
8534
|
-
const prefix =
|
|
8534
|
+
const prefix = _chunkUJ3R2AH2cjs.classifyFarmDocumentPrefix.call(void 0, documentPrefix);
|
|
8535
8535
|
if (prefix !== "pending") {
|
|
8536
8536
|
checkedFullDocument = true;
|
|
8537
8537
|
documentPrefix = "";
|
|
@@ -8754,7 +8754,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
8754
8754
|
*/
|
|
8755
8755
|
async createLateNavigationRecoveryHTML(req, error) {
|
|
8756
8756
|
if (_chunk7JUIK547cjs.isFarmRedirectError.call(void 0, error)) {
|
|
8757
|
-
return
|
|
8757
|
+
return _chunkUJ3R2AH2cjs.createLateRedirectRecovery.call(void 0,
|
|
8758
8758
|
this.localizeRedirectUrl(_chunk7JUIK547cjs.getFarmRedirectError.call(void 0, error).url),
|
|
8759
8759
|
this.getCspNonce(req) || ""
|
|
8760
8760
|
);
|
|
@@ -8776,7 +8776,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
8776
8776
|
_chunkQMNWKQL4cjs.logger.warn(`not-found page could not render outside its layout, using Farm's: ${error2}`);
|
|
8777
8777
|
}
|
|
8778
8778
|
}
|
|
8779
|
-
return
|
|
8779
|
+
return _chunkUJ3R2AH2cjs.createLateNotFoundRecovery.call(void 0, content, this.getCspNonce(req) || "");
|
|
8780
8780
|
}
|
|
8781
8781
|
async render404(req, res) {
|
|
8782
8782
|
res.statusCode = 404;
|
|
@@ -8785,11 +8785,11 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
8785
8785
|
}).pathname;
|
|
8786
8786
|
const acceptHeader = req.headers.accept;
|
|
8787
8787
|
const accept = Array.isArray(acceptHeader) ? acceptHeader.join(",") : acceptHeader;
|
|
8788
|
-
if (
|
|
8789
|
-
res.setHeader("Content-Type",
|
|
8788
|
+
if (_chunk2C5L5RPMcjs.farmRequestWantsMarkdown.call(void 0, pathname, accept)) {
|
|
8789
|
+
res.setHeader("Content-Type", _chunk2C5L5RPMcjs.FARM_MARKDOWN_CONTENT_TYPE);
|
|
8790
8790
|
res.setHeader("X-Farm-Markdown-Error", "404");
|
|
8791
8791
|
res.setHeader("Cache-Control", "no-store");
|
|
8792
|
-
res.end(
|
|
8792
|
+
res.end(_chunk2C5L5RPMcjs.createFarmMarkdownErrorBody.call(void 0, 404, pathname, this.config.basePath || "/"));
|
|
8793
8793
|
return;
|
|
8794
8794
|
}
|
|
8795
8795
|
const appDir = path14.join(this.config.root, this.config.srcDir, "app");
|
|
@@ -8854,10 +8854,10 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
8854
8854
|
trustProxy: _optionalChain([this, 'access', _388 => _388.config, 'access', _389 => _389.server, 'optionalAccess', _390 => _390.trustProxy])
|
|
8855
8855
|
});
|
|
8856
8856
|
const diagnostics = isDev ? createDefaultErrorDiagnostics(error, this.config.root || process.cwd()) : void 0;
|
|
8857
|
-
const statusText =
|
|
8857
|
+
const statusText = _chunkUJ3R2AH2cjs.getDefaultErrorStatusText.call(void 0, statusCode);
|
|
8858
8858
|
const content = this.stampFarmScripts(
|
|
8859
8859
|
req,
|
|
8860
|
-
|
|
8860
|
+
_chunkUJ3R2AH2cjs.createDefaultErrorMarkup.call(void 0, {
|
|
8861
8861
|
statusCode,
|
|
8862
8862
|
statusText,
|
|
8863
8863
|
requestPath: requestUrl.pathname,
|
|
@@ -8867,7 +8867,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
8867
8867
|
stack: _optionalChain([diagnostics, 'optionalAccess', _393 => _393.stack]),
|
|
8868
8868
|
sourceFrame: _optionalChain([diagnostics, 'optionalAccess', _394 => _394.sourceFrame]),
|
|
8869
8869
|
development: isDev,
|
|
8870
|
-
farmVersion:
|
|
8870
|
+
farmVersion: _chunkO2XFIPNLcjs.FARM_VERSION,
|
|
8871
8871
|
nodeVersion: process.version,
|
|
8872
8872
|
mode: isDev ? "development" : "production"
|
|
8873
8873
|
})
|
|
@@ -8913,7 +8913,7 @@ ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};`
|
|
|
8913
8913
|
this.getI18nAlternateOptions(alternates.req, alternates.metadata)
|
|
8914
8914
|
) : "";
|
|
8915
8915
|
const fontHead = renderFarmFontDevHead(this.config.root || process.cwd());
|
|
8916
|
-
const themeDocument =
|
|
8916
|
+
const themeDocument = _chunkUJ3R2AH2cjs.createFarmThemeDocumentParts.call(void 0,
|
|
8917
8917
|
this.config.theme,
|
|
8918
8918
|
this.config.basePath,
|
|
8919
8919
|
_chunk4ZJ5C7UJcjs.getTheme.call(void 0, )
|
|
@@ -8923,10 +8923,10 @@ ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};`
|
|
|
8923
8923
|
_optionalChain([this, 'access', _399 => _399.rendererRuntime, 'access', _400 => _400.generateHydrationScript, 'optionalCall', _401 => _401()]) || ""
|
|
8924
8924
|
);
|
|
8925
8925
|
const viewportTags = _chunk6IOZPJ3Icjs.renderViewportHead.call(void 0, _optionalChain([alternates, 'access', _402 => _402.metadata, 'optionalAccess', _403 => _403.viewport]));
|
|
8926
|
-
const fullDocument =
|
|
8926
|
+
const fullDocument = _chunkUJ3R2AH2cjs.extractFarmFullDocument.call(void 0, content);
|
|
8927
8927
|
if (fullDocument) {
|
|
8928
|
-
return
|
|
8929
|
-
metadataHead ?
|
|
8928
|
+
return _chunkUJ3R2AH2cjs.composeFarmFullDocument.call(void 0,
|
|
8929
|
+
metadataHead ? _chunkUJ3R2AH2cjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument,
|
|
8930
8930
|
{
|
|
8931
8931
|
fallbackIcon: !metadataHead,
|
|
8932
8932
|
viewport: viewportTags,
|
|
@@ -9094,7 +9094,7 @@ var FarmApp = class {
|
|
|
9094
9094
|
serverActions: _chunk4P5634G6cjs.resolveServerActionsConfig.call(void 0, config.serverActions),
|
|
9095
9095
|
security: _chunk6JHZPB52cjs.resolveFarmSecurityConfig.call(void 0, config.security),
|
|
9096
9096
|
images: _chunkHEPJIKKQcjs.resolveFarmImageConfig.call(void 0, config.images),
|
|
9097
|
-
performance:
|
|
9097
|
+
performance: _chunkO6L3YYPMcjs.resolveFarmPerformanceConfig.call(void 0, config.performance),
|
|
9098
9098
|
theme: _chunkWT6RAN2Icjs.resolveFarmThemeConfig.call(void 0, config.theme, basePath),
|
|
9099
9099
|
i18n: isResolvedI18nConfig(config.i18n) ? config.i18n : _chunkLNVGXUL3cjs.resolveFarmI18nConfig.call(void 0, config.i18n, {
|
|
9100
9100
|
root,
|
|
@@ -9106,7 +9106,7 @@ var FarmApp = class {
|
|
|
9106
9106
|
serverRuntimeConfig: config.serverRuntimeConfig || {},
|
|
9107
9107
|
publicRuntimeConfig: config.publicRuntimeConfig || {},
|
|
9108
9108
|
docs: isResolvedDocsConfig(config.docs) ? config.docs : defaultDocsConfig,
|
|
9109
|
-
md:
|
|
9109
|
+
md: _chunk2C5L5RPMcjs.resolveMarkdownConfig.call(void 0, config.md),
|
|
9110
9110
|
mdx: _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx),
|
|
9111
9111
|
observability: _nullishCoalesce(config.observability, () => ( false)),
|
|
9112
9112
|
telemetry: config.telemetry !== false,
|