@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
|
@@ -42,7 +42,7 @@ var _chunk5IQ2ERQAcjs = require('./chunk-5IQ2ERQA.cjs');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkFAP7CX7Ccjs = require('./chunk-FAP7CX7C.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
var _chunkR53QDV6Tcjs = require('./chunk-R53QDV6T.cjs');
|
|
@@ -66,7 +66,7 @@ var _chunkX4K7TYN6cjs = require('./chunk-X4K7TYN6.cjs');
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkUJ3R2AH2cjs = require('./chunk-UJ3R2AH2.cjs');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
|
|
@@ -84,13 +84,13 @@ var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
|
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
var
|
|
87
|
+
var _chunkNXFA7G3Ycjs = require('./chunk-NXFA7G3Y.cjs');
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
var
|
|
90
|
+
var _chunkY5TOT5F6cjs = require('./chunk-Y5TOT5F6.cjs');
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
var
|
|
93
|
+
var _chunkS7ZW72JHcjs = require('./chunk-S7ZW72JH.cjs');
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
|
|
@@ -137,10 +137,10 @@ var _chunkRD623KW4cjs = require('./chunk-RD623KW4.cjs');
|
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
var
|
|
140
|
+
var _chunkO6L3YYPMcjs = require('./chunk-O6L3YYPM.cjs');
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
var
|
|
143
|
+
var _chunkFJWN7RV4cjs = require('./chunk-FJWN7RV4.cjs');
|
|
144
144
|
|
|
145
145
|
|
|
146
146
|
|
|
@@ -157,7 +157,7 @@ var _chunk3EIPOTZVcjs = require('./chunk-3EIPOTZV.cjs');
|
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
|
|
160
|
-
var
|
|
160
|
+
var _chunk7XGWBPQQcjs = require('./chunk-7XGWBPQQ.cjs');
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
|
|
@@ -166,7 +166,7 @@ var _chunkPRFNLQSPcjs = require('./chunk-PRFNLQSP.cjs');
|
|
|
166
166
|
|
|
167
167
|
|
|
168
168
|
|
|
169
|
-
var
|
|
169
|
+
var _chunk2C5L5RPMcjs = require('./chunk-2C5L5RPM.cjs');
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
|
|
@@ -257,7 +257,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
|
257
257
|
var _chunkCFG4QERRcjs = require('./chunk-CFG4QERR.cjs');
|
|
258
258
|
|
|
259
259
|
|
|
260
|
-
var
|
|
260
|
+
var _chunkO2XFIPNLcjs = require('./chunk-O2XFIPNL.cjs');
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
var _chunkPMJSG4JScjs = require('./chunk-PMJSG4JS.cjs');
|
|
@@ -829,13 +829,13 @@ function reportOpenAPIDevGenerationResult(spec, output = _chunkQMNWKQL4cjs.logge
|
|
|
829
829
|
// src/vite.ts
|
|
830
830
|
var SERVER_FN_TRANSFORM_PLUGIN = "@farm.js/plugin/rsc:server-fn-actions";
|
|
831
831
|
function farmLlmsTxtGeneratedPaths(config) {
|
|
832
|
-
const llms =
|
|
832
|
+
const llms = _chunkFJWN7RV4cjs.resolveFarmLlmsTxtConfig.call(void 0, _optionalChain([config, 'access', _53 => _53.agent, 'optionalAccess', _54 => _54.llmsTxt]));
|
|
833
833
|
if (!llms.enabled) return [];
|
|
834
834
|
return llms.full ? ["/llms.txt", "/llms-full.txt"] : ["/llms.txt"];
|
|
835
835
|
}
|
|
836
836
|
function farmAgentGeneratedPaths(config) {
|
|
837
|
-
const crawlers =
|
|
838
|
-
const sitemap =
|
|
837
|
+
const crawlers = _chunkO6L3YYPMcjs.resolveFarmAgentCrawlers.call(void 0, _optionalChain([config, 'access', _55 => _55.agent, 'optionalAccess', _56 => _56.crawlers]));
|
|
838
|
+
const sitemap = _chunkO6L3YYPMcjs.resolveFarmAgentSitemap.call(void 0, _optionalChain([config, 'access', _57 => _57.agent, 'optionalAccess', _58 => _58.sitemap]));
|
|
839
839
|
return [
|
|
840
840
|
...farmLlmsTxtGeneratedPaths(config),
|
|
841
841
|
...sitemap.enabled ? ["/sitemap.xml"] : [],
|
|
@@ -880,7 +880,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
880
880
|
return import("./workflows.cjs");
|
|
881
881
|
}
|
|
882
882
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
883
|
-
return import("./devtools-
|
|
883
|
+
return import("./devtools-WET5NAKO.cjs");
|
|
884
884
|
}
|
|
885
885
|
function loadFarmDevtoolsUIRuntime() {
|
|
886
886
|
return import("./devtools-ui-SYRUXUA7.cjs");
|
|
@@ -998,7 +998,7 @@ function renderFarmI18nStaticHead(requestPath, snapshot) {
|
|
|
998
998
|
if (!snapshot) return "";
|
|
999
999
|
const runtime = `<script>window.__FARM_I18N__ = ${serializeFarmInlineValue(snapshot)};</script>`;
|
|
1000
1000
|
if (snapshot.routing === "none") return runtime;
|
|
1001
|
-
return `${
|
|
1001
|
+
return `${_chunkUJ3R2AH2cjs.renderFarmLocaleAlternateLinks.call(void 0, requestPath, snapshot)}${runtime}`;
|
|
1002
1002
|
}
|
|
1003
1003
|
function getPublicEnvDefine(config) {
|
|
1004
1004
|
const publicEnv = _optionalChain([config, 'access', _65 => _65.env, 'optionalAccess', _66 => _66.public]);
|
|
@@ -1545,7 +1545,7 @@ function hasViteAlias(alias, find) {
|
|
|
1545
1545
|
}
|
|
1546
1546
|
function farmPlugin(options = {}, initialPluginManager) {
|
|
1547
1547
|
const imageImports = farmImageImportsPlugin();
|
|
1548
|
-
const fontImports =
|
|
1548
|
+
const fontImports = _chunkFAP7CX7Ccjs.farmFontImportsPlugin.call(void 0, {
|
|
1549
1549
|
root: options.root,
|
|
1550
1550
|
basePath: options.basePath,
|
|
1551
1551
|
publicDir: options.publicDir
|
|
@@ -1586,7 +1586,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1586
1586
|
config(userConfig, configEnv) {
|
|
1587
1587
|
isBuild = configEnv.command === "build";
|
|
1588
1588
|
const layerAliases = _chunk5Y2P454Ocjs.getFarmLayerAliases.call(void 0, options.layers);
|
|
1589
|
-
const sourceAlias = hasViteAlias(_optionalChain([userConfig, 'access', _99 => _99.resolve, 'optionalAccess', _100 => _100.alias]), "@") ? {} :
|
|
1589
|
+
const sourceAlias = hasViteAlias(_optionalChain([userConfig, 'access', _99 => _99.resolve, 'optionalAccess', _100 => _100.alias]), "@") ? {} : _chunkFAP7CX7Ccjs.createFarmSourceAlias.call(void 0, options.root || process.cwd(), options.srcDir);
|
|
1590
1590
|
const layerRoots = (_nullishCoalesce(options.layers, () => ( []))).map((layer) => layer.root);
|
|
1591
1591
|
return {
|
|
1592
1592
|
// Honor Farm's publicDir so the dev server serves the same static
|
|
@@ -1639,7 +1639,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1639
1639
|
} catch (e14) {
|
|
1640
1640
|
}
|
|
1641
1641
|
};
|
|
1642
|
-
farmApp = new (0,
|
|
1642
|
+
farmApp = new (0, _chunkFAP7CX7Ccjs.FarmApp)(
|
|
1643
1643
|
{
|
|
1644
1644
|
...options,
|
|
1645
1645
|
root: resolveDevelopmentRoot(options.root, server.config.root)
|
|
@@ -1651,15 +1651,15 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1651
1651
|
let farmAppPackages;
|
|
1652
1652
|
if (_optionalChain([farmConfig, 'access', _108 => _108.agent, 'optionalAccess', _109 => _109.noindexPreviews])) {
|
|
1653
1653
|
server.middlewares.use((_req, res, next) => {
|
|
1654
|
-
if (
|
|
1655
|
-
res.setHeader("X-Robots-Tag",
|
|
1654
|
+
if (_chunkS7ZW72JHcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env)) {
|
|
1655
|
+
res.setHeader("X-Robots-Tag", _chunkO6L3YYPMcjs.FARM_PREVIEW_ROBOTS_TAG);
|
|
1656
1656
|
}
|
|
1657
1657
|
next();
|
|
1658
1658
|
});
|
|
1659
1659
|
}
|
|
1660
1660
|
const apiServerBasePath = _chunk2OF5RPVUcjs.resolveFarmAPIServerBasePath.call(void 0, farmConfig.api);
|
|
1661
1661
|
const devBuiltInRoutePaths = new Set(
|
|
1662
|
-
|
|
1662
|
+
_chunkNXFA7G3Ycjs.listFarmBuiltInRoutePaths.call(void 0, {
|
|
1663
1663
|
agent: {
|
|
1664
1664
|
apiCatalog: true,
|
|
1665
1665
|
mcp: true,
|
|
@@ -1988,7 +1988,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1988
1988
|
return _chunk7EPYN7GWcjs.resolveFarmLayoutFonts.call(void 0, layoutModules);
|
|
1989
1989
|
};
|
|
1990
1990
|
releaseDocsMCPServers();
|
|
1991
|
-
const isFarmDocsPathGuarded = (href) =>
|
|
1991
|
+
const isFarmDocsPathGuarded = (href) => _chunkUJ3R2AH2cjs.farmPathGuardCoversPage.call(void 0,
|
|
1992
1992
|
{
|
|
1993
1993
|
config: farmConfig,
|
|
1994
1994
|
middlewareRoutes: middlewareManager.getMiddlewares().filter((entry) => entry.source !== "config")
|
|
@@ -2001,7 +2001,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
2001
2001
|
clientEntry: "/@farm/client.js",
|
|
2002
2002
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2003
2003
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2004
|
-
globalStylesheetHref:
|
|
2004
|
+
globalStylesheetHref: _chunkFAP7CX7Ccjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2005
2005
|
farmConfig.root,
|
|
2006
2006
|
farmConfig.srcDir
|
|
2007
2007
|
),
|
|
@@ -2031,7 +2031,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
2031
2031
|
fontAssets: _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, farmDocsFontAssetList),
|
|
2032
2032
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2033
2033
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2034
|
-
globalStylesheetHref:
|
|
2034
|
+
globalStylesheetHref: _chunkFAP7CX7Ccjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2035
2035
|
farmConfig.root,
|
|
2036
2036
|
farmConfig.srcDir
|
|
2037
2037
|
),
|
|
@@ -2045,7 +2045,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
2045
2045
|
const matchedRoute = routeManager.matchRoute(pathname);
|
|
2046
2046
|
const layoutEntries = matchedRoute.layouts.map((layout) => ({
|
|
2047
2047
|
...layout,
|
|
2048
|
-
metadata:
|
|
2048
|
+
metadata: _chunkFAP7CX7Ccjs.getClientModuleMetadata.call(void 0, layout.modulePath, farmConfig.root)
|
|
2049
2049
|
}));
|
|
2050
2050
|
if (!layoutEntries.some((layout) => layout.metadata.shouldHydrate)) {
|
|
2051
2051
|
return response;
|
|
@@ -2309,9 +2309,9 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2309
2309
|
if (_optionalChain([pm, 'optionalAccess', _167 => _167.hasRuntimeRequestHooks, 'call', _168 => _168()])) {
|
|
2310
2310
|
try {
|
|
2311
2311
|
const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath);
|
|
2312
|
-
const route =
|
|
2312
|
+
const route = _chunkNXFA7G3Ycjs.setFarmRouteLabel.call(void 0,
|
|
2313
2313
|
{ pathname: requestPathname },
|
|
2314
|
-
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname :
|
|
2314
|
+
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname : _chunkNXFA7G3Ycjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath)
|
|
2315
2315
|
);
|
|
2316
2316
|
runtimeSession2 = await pm.beginRuntimeRequest(
|
|
2317
2317
|
createRequestFromNodeRequest(req, new URL(fullUrl)),
|
|
@@ -2387,24 +2387,24 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2387
2387
|
);
|
|
2388
2388
|
return;
|
|
2389
2389
|
}
|
|
2390
|
-
if (_optionalChain([options, 'access', _174 => _174.agent, 'optionalAccess', _175 => _175.manifest]) !== false &&
|
|
2390
|
+
if (_optionalChain([options, 'access', _174 => _174.agent, 'optionalAccess', _175 => _175.manifest]) !== false && _chunkNXFA7G3Ycjs.isFarmAppManifestPath.call(void 0, _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath))) {
|
|
2391
2391
|
await serveBuiltInRoute(async () => {
|
|
2392
|
-
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages =
|
|
2393
|
-
const manifest = await
|
|
2392
|
+
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages = _chunkFAP7CX7Ccjs.resolveFarmAppPackages.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd()))))));
|
|
2393
|
+
const manifest = await _chunkNXFA7G3Ycjs.createFarmAppManifestResponse.call(void 0,
|
|
2394
2394
|
new Request(parsedRequestUrl, {
|
|
2395
2395
|
method: requestMethod,
|
|
2396
2396
|
headers: { "if-none-match": String(_nullishCoalesce(req.headers["if-none-match"], () => ( ""))) }
|
|
2397
2397
|
}),
|
|
2398
2398
|
{
|
|
2399
|
-
...
|
|
2399
|
+
..._chunkNXFA7G3Ycjs.resolveFarmAppManifestInput.call(void 0, farmConfig, {
|
|
2400
2400
|
build: "development",
|
|
2401
2401
|
packages: farmAppPackages,
|
|
2402
2402
|
// Read again on each request; unchanged files come from a cache.
|
|
2403
|
-
webmcpTools: _optionalChain([farmConfig, 'access', _176 => _176.plugins, 'optionalAccess', _177 => _177.some, 'call', _178 => _178(({ name }) => name === "farm:webmcp")]) ?
|
|
2403
|
+
webmcpTools: _optionalChain([farmConfig, 'access', _176 => _176.plugins, 'optionalAccess', _177 => _177.some, 'call', _178 => _178(({ name }) => name === "farm:webmcp")]) ? _chunkFAP7CX7Ccjs.collectFarmWebMCPTools.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd())), farmConfig.srcDir) : []
|
|
2404
2404
|
}),
|
|
2405
2405
|
defaultMCP: () => farmApp.getServerRenderer().getDefaultMCPServer(),
|
|
2406
2406
|
// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
2407
|
-
guardCoversPath: (path7) =>
|
|
2407
|
+
guardCoversPath: (path7) => _chunkUJ3R2AH2cjs.farmPathGuardCoversEndpoint.call(void 0,
|
|
2408
2408
|
{
|
|
2409
2409
|
config: farmConfig,
|
|
2410
2410
|
middlewareRoutes: middlewareManager.getMiddlewares().filter((entry) => entry.source !== "config")
|
|
@@ -2418,11 +2418,11 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2418
2418
|
});
|
|
2419
2419
|
return;
|
|
2420
2420
|
}
|
|
2421
|
-
if (_optionalChain([options, 'access', _179 => _179.agent, 'optionalAccess', _180 => _180.apiCatalog]) && _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) ===
|
|
2421
|
+
if (_optionalChain([options, 'access', _179 => _179.agent, 'optionalAccess', _180 => _180.apiCatalog]) && _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) === _chunkNXFA7G3Ycjs.FARM_API_CATALOG_PATH) {
|
|
2422
2422
|
await serveBuiltInRoute(
|
|
2423
|
-
() =>
|
|
2423
|
+
() => _chunkNXFA7G3Ycjs.createFarmApiCatalogResponse.call(void 0,
|
|
2424
2424
|
requestMethod,
|
|
2425
|
-
|
|
2425
|
+
_chunkNXFA7G3Ycjs.resolveFarmApiCatalogInput.call(void 0, { ...options, api: farmConfig.api }),
|
|
2426
2426
|
new Request(parsedRequestUrl, {
|
|
2427
2427
|
headers: { "user-agent": String(_nullishCoalesce(req.headers["user-agent"], () => ( ""))) }
|
|
2428
2428
|
})
|
|
@@ -2431,7 +2431,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2431
2431
|
return;
|
|
2432
2432
|
}
|
|
2433
2433
|
if (_optionalChain([options, 'access', _181 => _181.agent, 'optionalAccess', _182 => _182.aiCatalog]) !== false) {
|
|
2434
|
-
const aiCatalog =
|
|
2434
|
+
const aiCatalog = _chunkNXFA7G3Ycjs.createFarmAiCatalogResponse.call(void 0,
|
|
2435
2435
|
new Request(parsedRequestUrl, {
|
|
2436
2436
|
method: requestMethod,
|
|
2437
2437
|
headers: {
|
|
@@ -2475,7 +2475,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2475
2475
|
{
|
|
2476
2476
|
kind: "docs",
|
|
2477
2477
|
computed: docsResponse,
|
|
2478
|
-
label:
|
|
2478
|
+
label: _chunkNXFA7G3Ycjs.resolveFarmDocsEngineRouteLabel.call(void 0,
|
|
2479
2479
|
_chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath),
|
|
2480
2480
|
{
|
|
2481
2481
|
path: _optionalChain([farmConfig, 'access', _183 => _183.docs, 'optionalAccess', _184 => _184.entry]) || "/docs",
|
|
@@ -2487,10 +2487,15 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2487
2487
|
return;
|
|
2488
2488
|
}
|
|
2489
2489
|
}
|
|
2490
|
-
if (options.mobileClient && !viteModuleRequest && (requestMethod === "GET" || requestMethod === "HEAD") && _optionalChain([req, 'access', _189 => _189.headers, 'access', _190 => _190.accept, 'optionalAccess', _191 => _191.includes, 'call', _192 => _192(_chunk3HLQTOVUcjs.FARM_NATIVE_TREE_CONTENT_TYPE)])) {
|
|
2491
|
-
const { createFarmNativeTreeResponse } = await import("./native-tree-
|
|
2490
|
+
if (options.mobileClient && !viteModuleRequest && (requestMethod === "GET" || requestMethod === "HEAD" || requestMethod === "POST") && _optionalChain([req, 'access', _189 => _189.headers, 'access', _190 => _190.accept, 'optionalAccess', _191 => _191.includes, 'call', _192 => _192(_chunk3HLQTOVUcjs.FARM_NATIVE_TREE_CONTENT_TYPE)])) {
|
|
2491
|
+
const { createFarmNativeTreeResponse } = await import("./native-tree-WOX3JMBG.cjs");
|
|
2492
|
+
const treeBodyInit = requestMethod === "POST" ? { body: _chunkCFG4QERRcjs.createFarmNodeRequestBodyStream.call(void 0, req), duplex: "half" } : {};
|
|
2492
2493
|
const treeResponse = await createFarmNativeTreeResponse({
|
|
2493
|
-
request: new Request(fullUrl, {
|
|
2494
|
+
request: new Request(fullUrl, {
|
|
2495
|
+
method: requestMethod,
|
|
2496
|
+
headers: docsHeaders,
|
|
2497
|
+
...treeBodyInit
|
|
2498
|
+
}),
|
|
2494
2499
|
// As for the Markdown mirror: this server's own listener, redirects not followed.
|
|
2495
2500
|
renderPage: (request) => _chunkBNH53KOTcjs.createFarmDevServerDispatch.call(void 0, server)(
|
|
2496
2501
|
new Request(request, {
|
|
@@ -2504,11 +2509,11 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2504
2509
|
});
|
|
2505
2510
|
return;
|
|
2506
2511
|
}
|
|
2507
|
-
const markdownRouteLabel = () =>
|
|
2512
|
+
const markdownRouteLabel = () => _chunkNXFA7G3Ycjs.resolveFarmMarkdownRouteLabel.call(void 0,
|
|
2508
2513
|
_chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath),
|
|
2509
2514
|
(page) => _optionalChain([farmApp, 'access', _199 => _199.getRouteManager, 'call', _200 => _200(), 'access', _201 => _201.matchRoute, 'call', _202 => _202(page), 'access', _203 => _203.route, 'optionalAccess', _204 => _204.pattern])
|
|
2510
2515
|
);
|
|
2511
|
-
const markdownSourceResponse = viteModuleRequest ? null : await
|
|
2516
|
+
const markdownSourceResponse = viteModuleRequest ? null : await _chunk7XGWBPQQcjs.createFarmMarkdownSourceResponse.call(void 0, {
|
|
2512
2517
|
request: new Request(fullUrl, {
|
|
2513
2518
|
method: requestMethod,
|
|
2514
2519
|
headers: docsHeaders
|
|
@@ -2516,7 +2521,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2516
2521
|
config: farmApp.getConfig().mdx,
|
|
2517
2522
|
resolveSource: async (pathname2) => {
|
|
2518
2523
|
const match = farmApp.getRouteManager().matchRoute(pathname2);
|
|
2519
|
-
const sourcePath = _optionalChain([match, 'access', _205 => _205.route, 'optionalAccess', _206 => _206.markdownSourcePath]) || (match.route &&
|
|
2524
|
+
const sourcePath = _optionalChain([match, 'access', _205 => _205.route, 'optionalAccess', _206 => _206.markdownSourcePath]) || (match.route && _chunk7XGWBPQQcjs.isFarmMarkdownPageFile.call(void 0, match.route.modulePath) ? match.route.modulePath : null);
|
|
2520
2525
|
if (!sourcePath) {
|
|
2521
2526
|
return null;
|
|
2522
2527
|
}
|
|
@@ -2541,7 +2546,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2541
2546
|
});
|
|
2542
2547
|
return;
|
|
2543
2548
|
}
|
|
2544
|
-
const markdownResponse = viteModuleRequest ? null : await
|
|
2549
|
+
const markdownResponse = viteModuleRequest ? null : await _chunk2C5L5RPMcjs.createMarkdownMirrorResponse.call(void 0, {
|
|
2545
2550
|
request: new Request(fullUrl, {
|
|
2546
2551
|
method: requestMethod,
|
|
2547
2552
|
headers: docsHeaders
|
|
@@ -2572,16 +2577,16 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2572
2577
|
});
|
|
2573
2578
|
return;
|
|
2574
2579
|
}
|
|
2575
|
-
if (!viteModuleRequest &&
|
|
2576
|
-
const markdownRoute = farmApp.getRouteManager().matchRoute(
|
|
2580
|
+
if (!viteModuleRequest && _chunk2C5L5RPMcjs.farmRequestWantsMarkdown.call(void 0, requestPathname, req.headers.accept)) {
|
|
2581
|
+
const markdownRoute = farmApp.getRouteManager().matchRoute(_chunk7XGWBPQQcjs.normalizeFarmMarkdownRoutePath.call(void 0, requestPathname));
|
|
2577
2582
|
if (!markdownRoute.route) {
|
|
2578
2583
|
await serveBuiltInRoute(
|
|
2579
2584
|
() => new Response(
|
|
2580
|
-
|
|
2585
|
+
_chunk2C5L5RPMcjs.createFarmMarkdownErrorBody.call(void 0, 404, requestPathname, farmConfig.basePath || "/"),
|
|
2581
2586
|
{
|
|
2582
2587
|
status: 404,
|
|
2583
2588
|
headers: {
|
|
2584
|
-
"Content-Type":
|
|
2589
|
+
"Content-Type": _chunk2C5L5RPMcjs.FARM_MARKDOWN_CONTENT_TYPE,
|
|
2585
2590
|
"X-Farm-Markdown-Error": "404",
|
|
2586
2591
|
"Cache-Control": "no-store"
|
|
2587
2592
|
}
|
|
@@ -2591,7 +2596,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2591
2596
|
return;
|
|
2592
2597
|
}
|
|
2593
2598
|
}
|
|
2594
|
-
const markdownPageTarget =
|
|
2599
|
+
const markdownPageTarget = _chunk2C5L5RPMcjs.resolveMarkdownMirrorTarget.call(void 0,
|
|
2595
2600
|
farmApp.getConfig().md,
|
|
2596
2601
|
requestPathname,
|
|
2597
2602
|
{
|
|
@@ -2604,7 +2609,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2604
2609
|
if (!varyValues.some((value) => value.toLowerCase() === "accept")) {
|
|
2605
2610
|
res.setHeader("Vary", [...varyValues, "Accept"].join(", "));
|
|
2606
2611
|
}
|
|
2607
|
-
const alternatePath =
|
|
2612
|
+
const alternatePath = _chunk2C5L5RPMcjs.getFarmMarkdownMirrorPath.call(void 0, markdownPageTarget.pathname);
|
|
2608
2613
|
const alternateLink = `<${alternatePath}>; rel="alternate"; type="text/markdown"`;
|
|
2609
2614
|
const currentLink = res.getHeader("Link");
|
|
2610
2615
|
res.setHeader(
|
|
@@ -2928,9 +2933,9 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2928
2933
|
};
|
|
2929
2934
|
const docsResponse = pm ? await pm.runRuntimeRequest(request, invokeDocsAPIHandler, {
|
|
2930
2935
|
kind: "docs",
|
|
2931
|
-
route:
|
|
2936
|
+
route: _chunkNXFA7G3Ycjs.setFarmRouteLabel.call(void 0,
|
|
2932
2937
|
{ pathname: pathname2, pattern: apiLifecyclePayload.routePath },
|
|
2933
|
-
|
|
2938
|
+
_chunkNXFA7G3Ycjs.resolveFarmDocsRouteLabel.call(void 0, pathname2, {
|
|
2934
2939
|
path: _optionalChain([farmConfig, 'access', _216 => _216.docs, 'optionalAccess', _217 => _217.entry]) || "/docs",
|
|
2935
2940
|
roots: _optionalChain([farmConfig, 'access', _218 => _218.docs, 'optionalAccess', _219 => _219.roots, 'optionalAccess', _220 => _220.map, 'call', _221 => _221((root) => root.entry)])
|
|
2936
2941
|
})
|
|
@@ -3059,7 +3064,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3059
3064
|
);
|
|
3060
3065
|
const loadingModule = loadingBoundary ? await routeManager3.loadRouteModule(loadingBoundary.modulePath) : null;
|
|
3061
3066
|
const navigationManifest = routeManager3.generateClientManifest(server.config.root);
|
|
3062
|
-
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => (
|
|
3067
|
+
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => ( _chunkFAP7CX7Ccjs.getClientModuleMetadata.call(void 0, route.modulePath, server.config.root)));
|
|
3063
3068
|
const isClientComponent = moduleMetadata.isClientComponent;
|
|
3064
3069
|
const shouldHydrate = moduleMetadata.shouldHydrate;
|
|
3065
3070
|
let mergedMetadata = {};
|
|
@@ -3067,7 +3072,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3067
3072
|
layouts.map((layout) => routeManager3.loadLayoutModule(layout.modulePath))
|
|
3068
3073
|
);
|
|
3069
3074
|
const layoutHydrationMetadata = layouts.map(
|
|
3070
|
-
(layout) => _nullishCoalesce(navigationManifest.layouts.find((entry) => entry.pattern === layout.pattern), () => (
|
|
3075
|
+
(layout) => _nullishCoalesce(navigationManifest.layouts.find((entry) => entry.pattern === layout.pattern), () => ( _chunkFAP7CX7Ccjs.getClientModuleMetadata.call(void 0, layout.modulePath, server.config.root)))
|
|
3071
3076
|
);
|
|
3072
3077
|
const shouldHydrateLayout = layoutHydrationMetadata.some(
|
|
3073
3078
|
(metadata) => metadata.shouldHydrate
|
|
@@ -3080,7 +3085,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3080
3085
|
];
|
|
3081
3086
|
const hydrationIslandStrategy = _chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0,
|
|
3082
3087
|
_optionalChain([(_nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _240 => _240.getConfig, 'call', _241 => _241()]), () => ( options))), 'access', _242 => _242.experimental, 'optionalAccess', _243 => _243.serverComponents])
|
|
3083
|
-
) === "islands" ?
|
|
3088
|
+
) === "islands" ? _chunkFAP7CX7Ccjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
3084
3089
|
route,
|
|
3085
3090
|
{ shouldHydrate, islandStrategy: _nullishCoalesce(moduleMetadata.islandStrategy, () => ( null)) },
|
|
3086
3091
|
layouts.map((layout, index) => ({
|
|
@@ -3137,14 +3142,14 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3137
3142
|
mergedMetadata = await _chunk6IOZPJ3Icjs.mergeModuleViewport.call(void 0, mergedMetadata, routeModule, routeProps);
|
|
3138
3143
|
mergedMetadata = _chunk6IOZPJ3Icjs.addMetadataMarkdownAlternate.call(void 0,
|
|
3139
3144
|
mergedMetadata,
|
|
3140
|
-
|
|
3145
|
+
_chunk2C5L5RPMcjs.getFarmMarkdownAlternatePath.call(void 0, farmApp.getConfig().md, targetRequestUrl.pathname)
|
|
3141
3146
|
);
|
|
3142
3147
|
const routeSlots = await Promise.all(
|
|
3143
3148
|
slots.map(async (slot) => {
|
|
3144
3149
|
const slotModule = await routeManager3.loadRouteModule(slot.route.modulePath);
|
|
3145
3150
|
const slotMetadata = _nullishCoalesce(navigationManifest.slots.find(
|
|
3146
3151
|
(entry) => entry.name === slot.name && entry.ownerPattern === slot.ownerPattern && entry.pattern === slot.route.pattern
|
|
3147
|
-
), () => (
|
|
3152
|
+
), () => ( _chunkFAP7CX7Ccjs.getClientModuleMetadata.call(void 0, slot.route.modulePath, server.config.root)));
|
|
3148
3153
|
const slotContext = await _chunkX333W5KVcjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
|
|
3149
3154
|
request: targetRequest,
|
|
3150
3155
|
params: slot.params,
|
|
@@ -3190,15 +3195,15 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3190
3195
|
);
|
|
3191
3196
|
const projectRoot = server.config.root;
|
|
3192
3197
|
const toUrlPath = (absolutePath) => _chunkQMNWKQL4cjs.toViteModuleId.call(void 0, absolutePath, projectRoot);
|
|
3193
|
-
const renderPlan =
|
|
3198
|
+
const renderPlan = _chunkUJ3R2AH2cjs.createFarmRouteRenderPlan.call(void 0, {
|
|
3194
3199
|
pageShouldHydrate: shouldHydrate,
|
|
3195
3200
|
layoutShouldHydrate: shouldHydrateLayout,
|
|
3196
3201
|
islandStrategy: hydrationIslandStrategy,
|
|
3197
3202
|
rendering: _chunkX4K7TYN6cjs.resolveRouteRenderingConfig.call(void 0, routeModule)
|
|
3198
3203
|
});
|
|
3199
3204
|
const destinationLayoutPatterns = layouts.map((layout) => layout.pattern);
|
|
3200
|
-
const layoutStartIndex =
|
|
3201
|
-
|
|
3205
|
+
const layoutStartIndex = _chunkUJ3R2AH2cjs.getSharedLayoutPrefixLength.call(void 0,
|
|
3206
|
+
_chunkUJ3R2AH2cjs.parseFarmLayoutChainHeader.call(void 0, request.headers.get("x-farm-layout-chain")),
|
|
3202
3207
|
destinationLayoutPatterns
|
|
3203
3208
|
);
|
|
3204
3209
|
const renderer = farmApp.getServerRenderer();
|
|
@@ -3279,7 +3284,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3279
3284
|
{
|
|
3280
3285
|
status: 200,
|
|
3281
3286
|
headers: {
|
|
3282
|
-
"Cache-Control":
|
|
3287
|
+
"Cache-Control": _chunkUJ3R2AH2cjs.getFarmFragmentCacheControl.call(void 0, renderPlan),
|
|
3283
3288
|
"X-Farm-Navigation": "html-fragment",
|
|
3284
3289
|
Vary: "X-Farm-Layout-Chain",
|
|
3285
3290
|
[_chunkE552H232cjs.FARM_DEPLOYMENT_ID_HEADER]: farmConfig.deploymentId
|
|
@@ -3327,10 +3332,10 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3327
3332
|
const requestedMatch = routeManager2.matchRoute(requestedPathname);
|
|
3328
3333
|
const pageBuiltInRouteLabel = (pathname2) => {
|
|
3329
3334
|
const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, pathname2, farmConfig.basePath);
|
|
3330
|
-
const mcpLabel =
|
|
3335
|
+
const mcpLabel = _chunkNXFA7G3Ycjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath);
|
|
3331
3336
|
if (mcpLabel) return mcpLabel;
|
|
3332
3337
|
if (farmAgentGeneratedPaths(farmConfig).includes(routePathname)) return routePathname;
|
|
3333
|
-
return routePathname ===
|
|
3338
|
+
return routePathname === _chunkY5TOT5F6cjs.FARM_DEFAULT_MCP_PATH && farmApp.getServerRenderer().getDefaultMCPServer() ? _chunkY5TOT5F6cjs.FARM_DEFAULT_MCP_PATH : null;
|
|
3334
3339
|
};
|
|
3335
3340
|
let runtimeSession;
|
|
3336
3341
|
if (pm && hasRuntimeRequestHooks) {
|
|
@@ -3339,7 +3344,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3339
3344
|
createRequestFromNodeRequest(req, new URL(fullUrl)),
|
|
3340
3345
|
{
|
|
3341
3346
|
kind: "page",
|
|
3342
|
-
route:
|
|
3347
|
+
route: _chunkNXFA7G3Ycjs.setFarmRouteLabel.call(void 0,
|
|
3343
3348
|
{
|
|
3344
3349
|
pathname: requestedPathname,
|
|
3345
3350
|
pattern: _optionalChain([requestedMatch, 'optionalAccess', _269 => _269.route, 'optionalAccess', _270 => _270.pattern]) || null,
|
|
@@ -3567,7 +3572,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3567
3572
|
const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
|
|
3568
3573
|
const generatedDevIndicatorsClientRuntime = farmApp ? _chunkBPNOYILCcjs.generateFarmDevIndicatorsClientRuntime.call(void 0, farmApp.getConfig().devIndicators) : "";
|
|
3569
3574
|
const integrationProviders = _chunkRD623KW4cjs.isReactRenderer.call(void 0, renderer) ? _chunkI32V5CZLcjs.getIntegrationProviders.call(void 0, integrations) : [];
|
|
3570
|
-
const isolatedHydrationMode =
|
|
3575
|
+
const isolatedHydrationMode = _chunkFAP7CX7Ccjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
3571
3576
|
_optionalChain([resolvedConfig, 'optionalAccess', _318 => _318.experimental, 'optionalAccess', _319 => _319.isolatedClientHydration]),
|
|
3572
3577
|
{
|
|
3573
3578
|
serverComponents: _chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _320 => _320.experimental, 'optionalAccess', _321 => _321.serverComponents])) === "rsc",
|
|
@@ -3592,8 +3597,8 @@ ${generatedDevIndicatorsClientRuntime}`,
|
|
|
3592
3597
|
isolatedHydrationMode === "enabled" || _chunkRD623KW4cjs.isReactRenderer.call(void 0, renderer) && _optionalChain([(_nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _329 => _329.getRouteManager, 'call', _330 => _330(), 'access', _331 => _331.getIsolatedClientBoundaryModules, 'call', _332 => _332(root)])))), 'optionalAccess', _333 => _333.size]) > 0,
|
|
3593
3598
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _334 => _334.trailingSlash]), () => ( false)),
|
|
3594
3599
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _335 => _335.basePath]), () => ( "/")),
|
|
3595
|
-
|
|
3596
|
-
|
|
3600
|
+
_chunkFAP7CX7Ccjs.generateClientCachePersistenceCode.call(void 0,
|
|
3601
|
+
_chunkFAP7CX7Ccjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, _optionalChain([resolvedConfig, 'optionalAccess', _336 => _336.cache]))
|
|
3597
3602
|
),
|
|
3598
3603
|
_chunkRD623KW4cjs.isReactRenderer.call(void 0, renderer) ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, docs) : void 0,
|
|
3599
3604
|
_chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _337 => _337.experimental, 'optionalAccess', _338 => _338.serverComponents])) === "islands"
|
|
@@ -3616,7 +3621,7 @@ export const getManifest = () => ({
|
|
|
3616
3621
|
`;
|
|
3617
3622
|
}
|
|
3618
3623
|
const manifest = routeManager.generateClientManifest(server.config.root);
|
|
3619
|
-
const globalStylesheetHref =
|
|
3624
|
+
const globalStylesheetHref = _chunkFAP7CX7Ccjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
3620
3625
|
server.config.root,
|
|
3621
3626
|
_optionalChain([farmApp, 'optionalAccess', _341 => _341.getConfig, 'call', _342 => _342(), 'access', _343 => _343.srcDir])
|
|
3622
3627
|
);
|
|
@@ -3644,11 +3649,11 @@ export const getManifest = () => ({
|
|
|
3644
3649
|
};
|
|
3645
3650
|
}
|
|
3646
3651
|
for (const layout of manifest.layouts) {
|
|
3647
|
-
const groupScope =
|
|
3652
|
+
const groupScope = _chunkUJ3R2AH2cjs.getRouteGroupScope.call(void 0, layout.pattern);
|
|
3648
3653
|
fullManifest.layouts[layout.pattern] = {
|
|
3649
3654
|
modulePath: layout.modulePath,
|
|
3650
3655
|
pattern: layout.pattern,
|
|
3651
|
-
...groupScope ? { urlPattern:
|
|
3656
|
+
...groupScope ? { urlPattern: _chunkUJ3R2AH2cjs.stripRouteGroups.call(void 0, layout.pattern), groupScope } : {},
|
|
3652
3657
|
shouldHydrate: layout.shouldHydrate,
|
|
3653
3658
|
islandStrategy: layout.islandStrategy,
|
|
3654
3659
|
// Islands mode: rebuilt from its server tree, so its module is never preloaded.
|
|
@@ -3676,22 +3681,22 @@ export const manifest = getManifest();
|
|
|
3676
3681
|
async transform(code, id, transformOptions) {
|
|
3677
3682
|
const actionConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _344 => _344.getConfig, 'call', _345 => _345()]), () => ( options));
|
|
3678
3683
|
let rewrotePackageImports = false;
|
|
3679
|
-
if (_chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([actionConfig, 'access', _346 => _346.experimental, 'optionalAccess', _347 => _347.serverComponents])) === "islands" && (!id.includes("/node_modules/") || _optionalChain([transformOptions, 'optionalAccess', _348 => _348.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !
|
|
3684
|
+
if (_chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([actionConfig, 'access', _346 => _346.experimental, 'optionalAccess', _347 => _347.serverComponents])) === "islands" && (!id.includes("/node_modules/") || _optionalChain([transformOptions, 'optionalAccess', _348 => _348.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !_chunkFAP7CX7Ccjs.hasUseClientDirective.call(void 0, code)) {
|
|
3680
3685
|
const file = id.split("?", 1)[0];
|
|
3681
3686
|
const projectRoot = actionConfig.root || _optionalChain([server, 'optionalAccess', _349 => _349.config, 'access', _350 => _350.root]) || process.cwd();
|
|
3682
3687
|
if (_optionalChain([transformOptions, 'optionalAccess', _351 => _351.ssr]) === true) {
|
|
3683
3688
|
if (farmReactServerFiles.has(file)) {
|
|
3684
|
-
for (const child of
|
|
3689
|
+
for (const child of _chunkFAP7CX7Ccjs.farmRelativeImportFiles.call(void 0, code, file))
|
|
3685
3690
|
farmReactServerFiles.add(child);
|
|
3686
3691
|
}
|
|
3687
|
-
const serverModule = farmReactServerFiles.has(file) || !
|
|
3692
|
+
const serverModule = farmReactServerFiles.has(file) || !_chunkFAP7CX7Ccjs.getFarmClientReachableModules.call(void 0,
|
|
3688
3693
|
path6.resolve(projectRoot, actionConfig.srcDir || "src"),
|
|
3689
3694
|
projectRoot
|
|
3690
3695
|
).has(path6.resolve(file));
|
|
3691
|
-
const reactServer = !serverModule ? null :
|
|
3696
|
+
const reactServer = !serverModule ? null : _chunkFAP7CX7Ccjs.rewriteFarmReactServerImports.call(void 0, {
|
|
3692
3697
|
code,
|
|
3693
3698
|
file,
|
|
3694
|
-
reference: (specifier, exportName) =>
|
|
3699
|
+
reference: (specifier, exportName) => _chunkFAP7CX7Ccjs.ensureFarmPackageClientReference.call(void 0, projectRoot, specifier, exportName),
|
|
3695
3700
|
onServerFile: (serverFile) => farmReactServerFiles.add(serverFile)
|
|
3696
3701
|
});
|
|
3697
3702
|
if (reactServer !== null) {
|
|
@@ -3699,11 +3704,11 @@ export const manifest = getManifest();
|
|
|
3699
3704
|
rewrotePackageImports = true;
|
|
3700
3705
|
}
|
|
3701
3706
|
}
|
|
3702
|
-
const referenced =
|
|
3707
|
+
const referenced = _chunkFAP7CX7Ccjs.rewriteFarmPackageClientImports.call(void 0, {
|
|
3703
3708
|
code,
|
|
3704
3709
|
file,
|
|
3705
3710
|
root: projectRoot,
|
|
3706
|
-
isClientPackage: (specifier) =>
|
|
3711
|
+
isClientPackage: (specifier) => _chunkFAP7CX7Ccjs.isFarmPackageClientBoundary.call(void 0, file, specifier, projectRoot)
|
|
3707
3712
|
});
|
|
3708
3713
|
if (referenced !== null) {
|
|
3709
3714
|
code = referenced;
|
|
@@ -3740,8 +3745,8 @@ export const manifest = getManifest();
|
|
|
3740
3745
|
}
|
|
3741
3746
|
if (!_optionalChain([transformOptions, 'optionalAccess', _359 => _359.ssr])) {
|
|
3742
3747
|
const docsConfigModule = _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, _optionalChain([farmApp, 'optionalAccess', _360 => _360.getConfig, 'call', _361 => _361(), 'optionalAccess', _362 => _362.docs]));
|
|
3743
|
-
if (
|
|
3744
|
-
const redacted =
|
|
3748
|
+
if (_chunkFAP7CX7Ccjs.isFarmDocsClientConfigModule.call(void 0, id, docsConfigModule)) {
|
|
3749
|
+
const redacted = _chunkFAP7CX7Ccjs.redactFarmDocsClientConfig.call(void 0, code, id.split("?")[0]);
|
|
3745
3750
|
if (redacted !== null) return { code: redacted, map: null };
|
|
3746
3751
|
}
|
|
3747
3752
|
}
|
|
@@ -3788,13 +3793,13 @@ export const manifest = getManifest();
|
|
|
3788
3793
|
transformed = true;
|
|
3789
3794
|
}
|
|
3790
3795
|
}
|
|
3791
|
-
if (
|
|
3796
|
+
if (_chunkFAP7CX7Ccjs.hasUseClientDirective.call(void 0, transformedCode)) {
|
|
3792
3797
|
const clientBoundarySource = transformedCode;
|
|
3793
3798
|
const moduleInfo = this.getModuleInfo(id);
|
|
3794
3799
|
if (moduleInfo) {
|
|
3795
3800
|
moduleInfo.isClientComponent = true;
|
|
3796
3801
|
}
|
|
3797
|
-
transformedCode =
|
|
3802
|
+
transformedCode = _chunkFAP7CX7Ccjs.stripUseClientDirective.call(void 0, transformedCode);
|
|
3798
3803
|
transformed = true;
|
|
3799
3804
|
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _375 => _375.getConfig, 'call', _376 => _376()]), () => ( options));
|
|
3800
3805
|
let isolatedModuleReference = null;
|
|
@@ -3802,11 +3807,11 @@ export const manifest = getManifest();
|
|
|
3802
3807
|
const cleanId = id.split("?", 1)[0];
|
|
3803
3808
|
const selectedIsolatedModules = _nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _379 => _379.getRouteManager, 'call', _380 => _380(), 'access', _381 => _381.getIsolatedClientBoundaryModules, 'call', _382 => _382(root)])));
|
|
3804
3809
|
const selectedForIsolatedHydration = _optionalChain([selectedIsolatedModules, 'optionalAccess', _383 => _383.has, 'call', _384 => _384(path6.resolve(cleanId))]) === true;
|
|
3805
|
-
if (_chunkRD623KW4cjs.isReactRenderer.call(void 0, _chunkRD623KW4cjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration &&
|
|
3810
|
+
if (_chunkRD623KW4cjs.isReactRenderer.call(void 0, _chunkRD623KW4cjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && _chunkFAP7CX7Ccjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource)) {
|
|
3806
3811
|
isolatedModuleReference = _chunkQMNWKQL4cjs.toViteModuleId.call(void 0, cleanId, root);
|
|
3807
3812
|
const islandsMode = _chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([currentConfig, 'access', _385 => _385.experimental, 'optionalAccess', _386 => _386.serverComponents])) === "islands";
|
|
3808
|
-
const explicitStrategy =
|
|
3809
|
-
const inference = islandsMode && explicitStrategy === null ?
|
|
3813
|
+
const explicitStrategy = _chunkFAP7CX7Ccjs.getIslandStrategyExport.call(void 0, clientBoundarySource);
|
|
3814
|
+
const inference = islandsMode && explicitStrategy === null ? _chunkFAP7CX7Ccjs.inferFarmIslandStrategy.call(void 0, cleanId, root) : null;
|
|
3810
3815
|
if (inference) {
|
|
3811
3816
|
for (const file of inference.files) {
|
|
3812
3817
|
if (file !== path6.resolve(cleanId)) this.addWatchFile(file);
|
|
@@ -3986,7 +3991,7 @@ if (import.meta.hot) {
|
|
|
3986
3991
|
}
|
|
3987
3992
|
},
|
|
3988
3993
|
watchChange() {
|
|
3989
|
-
|
|
3994
|
+
_chunkFAP7CX7Ccjs.invalidateFarmClientReachableModules.call(void 0, );
|
|
3990
3995
|
},
|
|
3991
3996
|
async handleHotUpdate(ctx) {
|
|
3992
3997
|
const { file, server: server2, modules } = ctx;
|
|
@@ -4204,7 +4209,7 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
4204
4209
|
});
|
|
4205
4210
|
}
|
|
4206
4211
|
function resolveRealModuleFile(filePath, root) {
|
|
4207
|
-
const resolved = _nullishCoalesce(
|
|
4212
|
+
const resolved = _nullishCoalesce(_chunkFAP7CX7Ccjs.resolveModuleSourcePath.call(void 0, filePath, root), () => ( filePath));
|
|
4208
4213
|
try {
|
|
4209
4214
|
return _chunkQMNWKQL4cjs.toPosixPath.call(void 0, fs2.realpathSync(resolved));
|
|
4210
4215
|
} catch (e17) {
|
|
@@ -4543,12 +4548,12 @@ function parseRouteModuleSchema(schema, value, label, routePath) {
|
|
|
4543
4548
|
}
|
|
4544
4549
|
}
|
|
4545
4550
|
function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterReact, renderer = _chunkRD623KW4cjs.REACT_RENDERER, isolatedHydrationEnabled = false, trailingSlash = false, basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
|
|
4546
|
-
const providerClientCode =
|
|
4551
|
+
const providerClientCode = _chunkFAP7CX7Ccjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
4547
4552
|
integrationProviders,
|
|
4548
4553
|
root,
|
|
4549
4554
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
4550
4555
|
);
|
|
4551
|
-
const clientPluginEntry =
|
|
4556
|
+
const clientPluginEntry = _chunkFAP7CX7Ccjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
4552
4557
|
plugins,
|
|
4553
4558
|
root,
|
|
4554
4559
|
srcDir,
|
|
@@ -4596,7 +4601,7 @@ async function createFarmServerTreePageElement(source, pathname) {
|
|
|
4596
4601
|
return null;
|
|
4597
4602
|
}
|
|
4598
4603
|
}
|
|
4599
|
-
${islandValues ? `${
|
|
4604
|
+
${islandValues ? `${_chunkFAP7CX7Ccjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
4600
4605
|
let farmLastRouteState = null;
|
|
4601
4606
|
|
|
4602
4607
|
// A hot update to a layout tree's client module renders the route again.
|
|
@@ -5407,7 +5412,7 @@ async function loadLayoutComponents(layouts = [], params = {}, source) {
|
|
|
5407
5412
|
return loadedLayouts;
|
|
5408
5413
|
}
|
|
5409
5414
|
|
|
5410
|
-
${
|
|
5415
|
+
${_chunkFAP7CX7Ccjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
5411
5416
|
function wrapWithLoadedLayouts(element, loadedLayouts, params) {
|
|
5412
5417
|
let wrapped = element;
|
|
5413
5418
|
for (let index = loadedLayouts.length - 1; index >= 0; index--) {
|
|
@@ -5764,7 +5769,7 @@ function replaceNavigationBoundary(
|
|
|
5764
5769
|
return nextTarget;
|
|
5765
5770
|
}
|
|
5766
5771
|
|
|
5767
|
-
${islandValues ? `${
|
|
5772
|
+
${islandValues ? `${_chunkFAP7CX7Ccjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
|
|
5768
5773
|
|
|
5769
5774
|
// Islands mode navigates as the production client does: it fetches the page itself, names the
|
|
5770
5775
|
// layouts it shows by key (F-Layouts), and asks for flush markers (F-Stream), so the shell arrives
|
|
@@ -6458,7 +6463,7 @@ async function defineConfig(config = {}) {
|
|
|
6458
6463
|
config = layeredConfig;
|
|
6459
6464
|
}
|
|
6460
6465
|
config.renderer = _chunkRD623KW4cjs.resolveFarmRenderer.call(void 0, config.renderer);
|
|
6461
|
-
config.images =
|
|
6466
|
+
config.images = _chunkFAP7CX7Ccjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, { root: appRoot, dev: true });
|
|
6462
6467
|
const rendererVitePlugins = await _chunkRD623KW4cjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, appRoot, {
|
|
6463
6468
|
ssr: true
|
|
6464
6469
|
});
|
|
@@ -6556,7 +6561,7 @@ async function defineConfig(config = {}) {
|
|
|
6556
6561
|
const isExposed = hostConfig === true || hostConfig === "0.0.0.0";
|
|
6557
6562
|
console.log("");
|
|
6558
6563
|
console.log(
|
|
6559
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
6564
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkO2XFIPNLcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
6560
6565
|
);
|
|
6561
6566
|
console.log("");
|
|
6562
6567
|
console.log(
|
|
@@ -6590,7 +6595,7 @@ async function defineConfig(config = {}) {
|
|
|
6590
6595
|
plugins: [
|
|
6591
6596
|
// `farm dev --desktop`: only the desktop window gets an answer, as in the packaged app.
|
|
6592
6597
|
_chunk65Y5SIBHcjs.farmDesktopDevGuardPlugin.call(void 0, config.basePath),
|
|
6593
|
-
|
|
6598
|
+
_chunkFAP7CX7Ccjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
6594
6599
|
tailwindVitePlugin,
|
|
6595
6600
|
...rendererVitePlugins,
|
|
6596
6601
|
...reactRefreshPlugins,
|
|
@@ -6604,8 +6609,8 @@ async function defineConfig(config = {}) {
|
|
|
6604
6609
|
customLogger: farmLogger,
|
|
6605
6610
|
clearScreen: false,
|
|
6606
6611
|
optimizeDeps: {
|
|
6607
|
-
...
|
|
6608
|
-
|
|
6612
|
+
..._chunkFAP7CX7Ccjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
6613
|
+
_chunkFAP7CX7Ccjs.createFarmClientOptimizeDepsEntries.call(void 0,
|
|
6609
6614
|
appRoot,
|
|
6610
6615
|
_chunk5Y2P454Ocjs.getFarmAppDirectories.call(void 0, { ...config, root: appRoot })
|
|
6611
6616
|
),
|
|
@@ -6648,7 +6653,7 @@ async function defineConfig(config = {}) {
|
|
|
6648
6653
|
// Stub out problematic server-only modules during dev mode
|
|
6649
6654
|
alias: {
|
|
6650
6655
|
..._chunk5Y2P454Ocjs.getFarmLayerAliases.call(void 0, config.layers),
|
|
6651
|
-
...
|
|
6656
|
+
..._chunkFAP7CX7Ccjs.createFarmSourceAlias.call(void 0, appRoot, config.srcDir),
|
|
6652
6657
|
// Nitro internals that should not be resolved in browser
|
|
6653
6658
|
"supports-color": "data:text/javascript,export default false; export const supportsColor = false; export const stdout = false; export const stderr = false;",
|
|
6654
6659
|
"@poppinss/dumper": "data:text/javascript,export default {};",
|