@farm.js/core 0.1.65 → 0.1.66
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/{analyzer-PE33SK5W.mjs → analyzer-4UFP4HVP.mjs} +3 -3
- package/dist/analyzer-H7SIX6BJ.cjs +16 -0
- package/dist/{chunk-IP2KHSGF.mjs → chunk-27FPUFWR.mjs} +56 -3
- package/dist/{chunk-JCEFKP5M.mjs → chunk-423SSBYQ.mjs} +6 -0
- package/dist/{chunk-E2TSYUHV.mjs → chunk-435QJNC2.mjs} +2 -2
- package/dist/{chunk-YD4J37RN.cjs → chunk-4OSOLDPL.cjs} +30 -19
- package/dist/{chunk-OSFIUSYK.cjs → chunk-4TVPYN32.cjs} +3 -3
- package/dist/{chunk-ZAUOOGER.mjs → chunk-672ISQIG.mjs} +1 -1
- package/dist/{chunk-C7DCMGC4.cjs → chunk-752IHQTD.cjs} +4 -4
- package/dist/{chunk-7QVRWGBL.cjs → chunk-7ONGIFYX.cjs} +4 -4
- package/dist/{chunk-VHHLKIDZ.mjs → chunk-AZUUKA66.mjs} +7 -7
- package/dist/{chunk-A3G5IY2W.cjs → chunk-BIF5MLTH.cjs} +1 -1
- package/dist/{chunk-HKNYNSOK.mjs → chunk-BYRZ5VTH.mjs} +1 -1
- package/dist/{chunk-V727H3RI.cjs → chunk-CCAUIBIS.cjs} +6 -0
- package/dist/{chunk-32RPJAAS.cjs → chunk-DVKH2RVN.cjs} +2 -2
- package/dist/{chunk-3KJPIO5D.cjs → chunk-E4UDLFWR.cjs} +24 -24
- package/dist/{chunk-EFZGB7JC.cjs → chunk-E5UN4OWX.cjs} +1 -0
- package/dist/{chunk-7GYCZRTH.mjs → chunk-EMNKZGF4.mjs} +4 -4
- package/dist/{chunk-ZQQK4U66.cjs → chunk-HZPKJRYA.cjs} +70 -17
- package/dist/{chunk-TZOGZKI7.cjs → chunk-IT6WRNGB.cjs} +77 -77
- package/dist/{chunk-72JSHQQQ.mjs → chunk-MPIGW42F.mjs} +1 -1
- package/dist/{chunk-WNXVWXG3.cjs → chunk-MPJEIHW2.cjs} +2 -2
- package/dist/{chunk-53ZCZ46B.cjs → chunk-NHQM2Q4I.cjs} +2 -1
- package/dist/{chunk-UYRI6U3P.mjs → chunk-O75GQVUK.mjs} +2 -1
- package/dist/{chunk-6X5NKNBE.mjs → chunk-OB7VKCUZ.mjs} +11 -10
- package/dist/{chunk-T4M52BA5.cjs → chunk-OP7LHY4Y.cjs} +103 -102
- package/dist/{chunk-CZF4XIRZ.cjs → chunk-RY4ABNPE.cjs} +3 -3
- package/dist/{chunk-GRBJ7VKH.mjs → chunk-SK7QSNWE.mjs} +1 -1
- package/dist/{chunk-YUW7F6SK.mjs → chunk-TKK5QHKZ.mjs} +1 -1
- package/dist/{chunk-ZNXTU4YH.mjs → chunk-TM2E623I.mjs} +1 -0
- package/dist/{chunk-ZX2JHEWW.mjs → chunk-UBMHQVWN.mjs} +20 -9
- package/dist/{chunk-TRIDJQ6A.cjs → chunk-VBCQ5WOI.cjs} +2 -2
- package/dist/{chunk-QHRCR44V.mjs → chunk-WFWFECDW.mjs} +1 -1
- package/dist/{chunk-Q75QPLBA.mjs → chunk-WVYRLP5E.mjs} +1 -1
- package/dist/{devtools-SGYOG36E.cjs → devtools-N2JQCMXB.cjs} +2 -2
- package/dist/{devtools-PUVZB3F2.mjs → devtools-NZUVNUP3.mjs} +1 -1
- package/dist/docs.cjs +3 -3
- package/dist/docs.mjs +2 -2
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.mjs +2 -2
- package/dist/index.cjs +14 -14
- package/dist/index.mjs +13 -13
- package/dist/internal/build-runtime.cjs +15 -15
- package/dist/internal/build-runtime.mjs +14 -14
- package/dist/internal/cli-runtime.cjs +2 -2
- package/dist/internal/cli-runtime.mjs +1 -1
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/config-runtime.cjs +3 -3
- package/dist/internal/config-runtime.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/native-server-fns.cjs +5 -5
- package/dist/internal/native-server-fns.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +7 -7
- package/dist/internal/production-runtime.d.mts +7 -0
- package/dist/internal/production-runtime.d.ts +7 -0
- package/dist/internal/production-runtime.mjs +6 -6
- package/dist/{native-tree-HE2FLS72.cjs → native-tree-7LPH57Z4.cjs} +3 -3
- package/dist/{native-tree-YF2DSPKM.mjs → native-tree-VV6WN3GX.mjs} +2 -2
- package/dist/plugin.cjs +7 -7
- package/dist/plugin.mjs +6 -6
- package/dist/{port-UFUZL6RI.mjs → port-CLL4BC4O.mjs} +1 -1
- package/dist/{port-VTLHPZOI.cjs → port-HASZTQGY.cjs} +9 -9
- package/dist/{rsc-pipeline-T3PWURLJ.mjs → rsc-pipeline-7PNVJSTR.mjs} +2 -2
- package/dist/{rsc-pipeline-V4ANLRAA.cjs → rsc-pipeline-Z7QBZOIJ.cjs} +3 -3
- package/dist/{runtime-5AROV2C3.cjs → runtime-FKFCUHSK.cjs} +13 -13
- package/dist/{runtime-LRIQ3XH7.mjs → runtime-QQHX4BP3.mjs} +5 -5
- package/dist/server.cjs +25 -25
- package/dist/server.mjs +9 -9
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +7 -7
- package/dist/vite.mjs +6 -6
- package/package.json +1 -1
- package/dist/analyzer-GHWK46LX.cjs +0 -16
- /package/dist/{chunk-IMK32ERL.cjs → chunk-CHYTADNK.cjs} +0 -0
- /package/dist/{chunk-2L54YV25.mjs → chunk-XBSLKXBL.mjs} +0 -0
|
@@ -28,7 +28,7 @@ var _chunk5IQ2ERQAcjs = require('./chunk-5IQ2ERQA.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkE4UDLFWRcjs = require('./chunk-E4UDLFWR.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkR53QDV6Tcjs = require('./chunk-R53QDV6T.cjs');
|
|
@@ -70,13 +70,13 @@ var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _chunk752IHQTDcjs = require('./chunk-752IHQTD.cjs');
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
var _chunkY5TOT5F6cjs = require('./chunk-Y5TOT5F6.cjs');
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkMPJEIHW2cjs = require('./chunk-MPJEIHW2.cjs');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
@@ -110,7 +110,7 @@ var _chunk7EPYN7GWcjs = require('./chunk-7EPYN7GW.cjs');
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
var
|
|
113
|
+
var _chunk7ONGIFYXcjs = require('./chunk-7ONGIFYX.cjs');
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
@@ -263,7 +263,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
|
263
263
|
var _chunkCFG4QERRcjs = require('./chunk-CFG4QERR.cjs');
|
|
264
264
|
|
|
265
265
|
|
|
266
|
-
var
|
|
266
|
+
var _chunkBIF5MLTHcjs = require('./chunk-BIF5MLTH.cjs');
|
|
267
267
|
|
|
268
268
|
|
|
269
269
|
var _chunkPMJSG4JScjs = require('./chunk-PMJSG4JS.cjs');
|
|
@@ -886,7 +886,7 @@ function loadFarmWorkflowsDevRuntime() {
|
|
|
886
886
|
return import("./workflows.cjs");
|
|
887
887
|
}
|
|
888
888
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
889
|
-
return import("./devtools-
|
|
889
|
+
return import("./devtools-N2JQCMXB.cjs");
|
|
890
890
|
}
|
|
891
891
|
function loadFarmDevtoolsUIRuntime() {
|
|
892
892
|
return import("./devtools-ui-SYRUXUA7.cjs");
|
|
@@ -931,13 +931,13 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
931
931
|
enforce: "pre",
|
|
932
932
|
config(config) {
|
|
933
933
|
return {
|
|
934
|
-
optimizeDeps: { rolldownOptions: { plugins: [
|
|
934
|
+
optimizeDeps: { rolldownOptions: { plugins: [_chunk7ONGIFYXcjs.farmBrowserBuiltinsOptimizerPlugin.call(void 0, )] } },
|
|
935
935
|
ssr: {
|
|
936
936
|
noExternal: [
|
|
937
937
|
// Resolve `server-only` here rather than in Node, which would load its throwing build.
|
|
938
938
|
SERVER_ONLY_PACKAGE,
|
|
939
939
|
// Packages Node cannot load as a bundler does (stylesheet imports, `module`-only ESM).
|
|
940
|
-
...
|
|
940
|
+
..._chunk7ONGIFYXcjs.collectFarmServerBundledPackages.call(void 0, path6.resolve(_nullishCoalesce(config.root, () => ( process.cwd()))))
|
|
941
941
|
]
|
|
942
942
|
}
|
|
943
943
|
};
|
|
@@ -956,7 +956,7 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
956
956
|
);
|
|
957
957
|
}
|
|
958
958
|
if (!_optionalChain([options2, 'optionalAccess', _63 => _63.ssr]) && _module.isBuiltin.call(void 0, id)) {
|
|
959
|
-
return
|
|
959
|
+
return _chunk7ONGIFYXcjs.resolveFarmBrowserBuiltin.call(void 0, this, id, importer, options2);
|
|
960
960
|
}
|
|
961
961
|
if (!FARM_SERVER_ONLY_ENTRIES.has(id)) return null;
|
|
962
962
|
const importedBy = importer ? ` (imported by ${importer})` : "";
|
|
@@ -978,7 +978,7 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
978
978
|
if (id === FARM_PLATFORM_CLIENT_ID) {
|
|
979
979
|
return createFarmPlatformClientModule(_nullishCoalesce(options.platform, () => ( _chunkAQLHD6HZcjs.resolveFarmPlatform.call(void 0, ))));
|
|
980
980
|
}
|
|
981
|
-
return _nullishCoalesce(
|
|
981
|
+
return _nullishCoalesce(_chunk7ONGIFYXcjs.loadFarmBrowserBuiltin.call(void 0, id), () => ( null));
|
|
982
982
|
}
|
|
983
983
|
};
|
|
984
984
|
}
|
|
@@ -1493,7 +1493,7 @@ function transformIsolatedClientBoundaryModule(options) {
|
|
|
1493
1493
|
return null;
|
|
1494
1494
|
}
|
|
1495
1495
|
const body = Array.isArray(ast.body) ? ast.body : [];
|
|
1496
|
-
const everyExportIsComponent = options.code.includes(
|
|
1496
|
+
const everyExportIsComponent = options.code.includes(_chunk7ONGIFYXcjs.FARM_CLIENT_REFERENCE_PRAGMA) || options.moduleReference.includes(_chunk7ONGIFYXcjs.FARM_CLIENT_REFERENCE_DIRECTORY);
|
|
1497
1497
|
const replacements = [];
|
|
1498
1498
|
const wrapperStatements = [];
|
|
1499
1499
|
const originalEntries = [];
|
|
@@ -1654,7 +1654,7 @@ function hasViteAlias(alias, find) {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
function farmPlugin(options = {}, initialPluginManager) {
|
|
1656
1656
|
const imageImports = farmImageImportsPlugin();
|
|
1657
|
-
const fontImports =
|
|
1657
|
+
const fontImports = _chunkE4UDLFWRcjs.farmFontImportsPlugin.call(void 0, {
|
|
1658
1658
|
root: options.root,
|
|
1659
1659
|
basePath: options.basePath,
|
|
1660
1660
|
publicDir: options.publicDir
|
|
@@ -1695,7 +1695,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1695
1695
|
config(userConfig, configEnv) {
|
|
1696
1696
|
isBuild = configEnv.command === "build";
|
|
1697
1697
|
const layerAliases = _chunk5Y2P454Ocjs.getFarmLayerAliases.call(void 0, options.layers);
|
|
1698
|
-
const sourceAlias = hasViteAlias(_optionalChain([userConfig, 'access', _101 => _101.resolve, 'optionalAccess', _102 => _102.alias]), "@") ? {} :
|
|
1698
|
+
const sourceAlias = hasViteAlias(_optionalChain([userConfig, 'access', _101 => _101.resolve, 'optionalAccess', _102 => _102.alias]), "@") ? {} : _chunkE4UDLFWRcjs.createFarmSourceAlias.call(void 0, options.root || process.cwd(), options.srcDir);
|
|
1699
1699
|
const layerRoots = (_nullishCoalesce(options.layers, () => ( []))).map((layer) => layer.root);
|
|
1700
1700
|
return {
|
|
1701
1701
|
// Honor Farm's publicDir so the dev server serves the same static
|
|
@@ -1748,7 +1748,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1748
1748
|
} catch (e16) {
|
|
1749
1749
|
}
|
|
1750
1750
|
};
|
|
1751
|
-
farmApp = new (0,
|
|
1751
|
+
farmApp = new (0, _chunkE4UDLFWRcjs.FarmApp)(
|
|
1752
1752
|
{
|
|
1753
1753
|
...options,
|
|
1754
1754
|
root: resolveDevelopmentRoot(options.root, server.config.root)
|
|
@@ -1760,7 +1760,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1760
1760
|
let farmAppPackages;
|
|
1761
1761
|
if (_optionalChain([farmConfig, 'access', _110 => _110.agent, 'optionalAccess', _111 => _111.noindexPreviews])) {
|
|
1762
1762
|
server.middlewares.use((_req, res, next) => {
|
|
1763
|
-
if (
|
|
1763
|
+
if (_chunkMPJEIHW2cjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env)) {
|
|
1764
1764
|
res.setHeader("X-Robots-Tag", _chunkO6L3YYPMcjs.FARM_PREVIEW_ROBOTS_TAG);
|
|
1765
1765
|
}
|
|
1766
1766
|
next();
|
|
@@ -1768,7 +1768,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
const apiServerBasePath = _chunk2OF5RPVUcjs.resolveFarmAPIServerBasePath.call(void 0, farmConfig.api);
|
|
1770
1770
|
const devBuiltInRoutePaths = new Set(
|
|
1771
|
-
|
|
1771
|
+
_chunk752IHQTDcjs.listFarmBuiltInRoutePaths.call(void 0, {
|
|
1772
1772
|
agent: {
|
|
1773
1773
|
apiCatalog: true,
|
|
1774
1774
|
mcp: true,
|
|
@@ -2110,7 +2110,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
2110
2110
|
clientEntry: "/@farm/client.js",
|
|
2111
2111
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2112
2112
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2113
|
-
globalStylesheetHref:
|
|
2113
|
+
globalStylesheetHref: _chunkE4UDLFWRcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2114
2114
|
farmConfig.root,
|
|
2115
2115
|
farmConfig.srcDir
|
|
2116
2116
|
),
|
|
@@ -2140,7 +2140,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
2140
2140
|
fontAssets: _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, farmDocsFontAssetList),
|
|
2141
2141
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2142
2142
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2143
|
-
globalStylesheetHref:
|
|
2143
|
+
globalStylesheetHref: _chunkE4UDLFWRcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2144
2144
|
farmConfig.root,
|
|
2145
2145
|
farmConfig.srcDir
|
|
2146
2146
|
),
|
|
@@ -2154,7 +2154,7 @@ function farmPlugin(options = {}, initialPluginManager) {
|
|
|
2154
2154
|
const matchedRoute = routeManager.matchRoute(pathname);
|
|
2155
2155
|
const layoutEntries = matchedRoute.layouts.map((layout) => ({
|
|
2156
2156
|
...layout,
|
|
2157
|
-
metadata:
|
|
2157
|
+
metadata: _chunk7ONGIFYXcjs.getClientModuleMetadata.call(void 0, layout.modulePath, farmConfig.root)
|
|
2158
2158
|
}));
|
|
2159
2159
|
if (!layoutEntries.some((layout) => layout.metadata.shouldHydrate)) {
|
|
2160
2160
|
return response;
|
|
@@ -2418,9 +2418,9 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2418
2418
|
if (_optionalChain([pm, 'optionalAccess', _169 => _169.hasRuntimeRequestHooks, 'call', _170 => _170()])) {
|
|
2419
2419
|
try {
|
|
2420
2420
|
const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath);
|
|
2421
|
-
const route =
|
|
2421
|
+
const route = _chunk752IHQTDcjs.setFarmRouteLabel.call(void 0,
|
|
2422
2422
|
{ pathname: requestPathname },
|
|
2423
|
-
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname :
|
|
2423
|
+
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname : _chunk752IHQTDcjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath)
|
|
2424
2424
|
);
|
|
2425
2425
|
runtimeSession2 = await pm.beginRuntimeRequest(
|
|
2426
2426
|
createRequestFromNodeRequest(req, new URL(fullUrl)),
|
|
@@ -2496,20 +2496,20 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2496
2496
|
);
|
|
2497
2497
|
return;
|
|
2498
2498
|
}
|
|
2499
|
-
if (_optionalChain([options, 'access', _176 => _176.agent, 'optionalAccess', _177 => _177.manifest]) !== false &&
|
|
2499
|
+
if (_optionalChain([options, 'access', _176 => _176.agent, 'optionalAccess', _177 => _177.manifest]) !== false && _chunk752IHQTDcjs.isFarmAppManifestPath.call(void 0, _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath))) {
|
|
2500
2500
|
await serveBuiltInRoute(async () => {
|
|
2501
|
-
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages =
|
|
2502
|
-
const manifest = await
|
|
2501
|
+
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages = _chunkE4UDLFWRcjs.resolveFarmAppPackages.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd()))))));
|
|
2502
|
+
const manifest = await _chunk752IHQTDcjs.createFarmAppManifestResponse.call(void 0,
|
|
2503
2503
|
new Request(parsedRequestUrl, {
|
|
2504
2504
|
method: requestMethod,
|
|
2505
2505
|
headers: { "if-none-match": String(_nullishCoalesce(req.headers["if-none-match"], () => ( ""))) }
|
|
2506
2506
|
}),
|
|
2507
2507
|
{
|
|
2508
|
-
...
|
|
2508
|
+
..._chunk752IHQTDcjs.resolveFarmAppManifestInput.call(void 0, farmConfig, {
|
|
2509
2509
|
build: "development",
|
|
2510
2510
|
packages: farmAppPackages,
|
|
2511
2511
|
// Read again on each request; unchanged files come from a cache.
|
|
2512
|
-
webmcpTools: _optionalChain([farmConfig, 'access', _178 => _178.plugins, 'optionalAccess', _179 => _179.some, 'call', _180 => _180(({ name }) => name === "farm:webmcp")]) ?
|
|
2512
|
+
webmcpTools: _optionalChain([farmConfig, 'access', _178 => _178.plugins, 'optionalAccess', _179 => _179.some, 'call', _180 => _180(({ name }) => name === "farm:webmcp")]) ? _chunkE4UDLFWRcjs.collectFarmWebMCPTools.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd())), farmConfig.srcDir) : []
|
|
2513
2513
|
}),
|
|
2514
2514
|
defaultMCP: () => farmApp.getServerRenderer().getDefaultMCPServer(),
|
|
2515
2515
|
// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -2527,11 +2527,11 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2527
2527
|
});
|
|
2528
2528
|
return;
|
|
2529
2529
|
}
|
|
2530
|
-
if (_optionalChain([options, 'access', _181 => _181.agent, 'optionalAccess', _182 => _182.apiCatalog]) && _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) ===
|
|
2530
|
+
if (_optionalChain([options, 'access', _181 => _181.agent, 'optionalAccess', _182 => _182.apiCatalog]) && _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) === _chunk752IHQTDcjs.FARM_API_CATALOG_PATH) {
|
|
2531
2531
|
await serveBuiltInRoute(
|
|
2532
|
-
() =>
|
|
2532
|
+
() => _chunk752IHQTDcjs.createFarmApiCatalogResponse.call(void 0,
|
|
2533
2533
|
requestMethod,
|
|
2534
|
-
|
|
2534
|
+
_chunk752IHQTDcjs.resolveFarmApiCatalogInput.call(void 0, { ...options, api: farmConfig.api }),
|
|
2535
2535
|
new Request(parsedRequestUrl, {
|
|
2536
2536
|
headers: { "user-agent": String(_nullishCoalesce(req.headers["user-agent"], () => ( ""))) }
|
|
2537
2537
|
})
|
|
@@ -2540,7 +2540,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2540
2540
|
return;
|
|
2541
2541
|
}
|
|
2542
2542
|
if (_optionalChain([options, 'access', _183 => _183.agent, 'optionalAccess', _184 => _184.aiCatalog]) !== false) {
|
|
2543
|
-
const aiCatalog =
|
|
2543
|
+
const aiCatalog = _chunk752IHQTDcjs.createFarmAiCatalogResponse.call(void 0,
|
|
2544
2544
|
new Request(parsedRequestUrl, {
|
|
2545
2545
|
method: requestMethod,
|
|
2546
2546
|
headers: {
|
|
@@ -2584,7 +2584,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2584
2584
|
{
|
|
2585
2585
|
kind: "docs",
|
|
2586
2586
|
computed: docsResponse,
|
|
2587
|
-
label:
|
|
2587
|
+
label: _chunk752IHQTDcjs.resolveFarmDocsEngineRouteLabel.call(void 0,
|
|
2588
2588
|
_chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath),
|
|
2589
2589
|
{
|
|
2590
2590
|
path: _optionalChain([farmConfig, 'access', _185 => _185.docs, 'optionalAccess', _186 => _186.entry]) || "/docs",
|
|
@@ -2597,7 +2597,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2597
2597
|
}
|
|
2598
2598
|
}
|
|
2599
2599
|
if (options.mobileClient && !viteModuleRequest && (requestMethod === "GET" || requestMethod === "HEAD" || requestMethod === "POST") && _optionalChain([req, 'access', _191 => _191.headers, 'access', _192 => _192.accept, 'optionalAccess', _193 => _193.includes, 'call', _194 => _194(_chunk3HLQTOVUcjs.FARM_NATIVE_TREE_CONTENT_TYPE)])) {
|
|
2600
|
-
const { createFarmNativeTreeResponse } = await import("./native-tree-
|
|
2600
|
+
const { createFarmNativeTreeResponse } = await import("./native-tree-7LPH57Z4.cjs");
|
|
2601
2601
|
const treeBodyInit = requestMethod === "POST" ? { body: _chunkCFG4QERRcjs.createFarmNodeRequestBodyStream.call(void 0, req), duplex: "half" } : {};
|
|
2602
2602
|
const treeResponse = await createFarmNativeTreeResponse({
|
|
2603
2603
|
request: new Request(fullUrl, {
|
|
@@ -2618,7 +2618,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
2618
2618
|
});
|
|
2619
2619
|
return;
|
|
2620
2620
|
}
|
|
2621
|
-
const markdownRouteLabel = () =>
|
|
2621
|
+
const markdownRouteLabel = () => _chunk752IHQTDcjs.resolveFarmMarkdownRouteLabel.call(void 0,
|
|
2622
2622
|
_chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath),
|
|
2623
2623
|
(page) => _optionalChain([farmApp, 'access', _201 => _201.getRouteManager, 'call', _202 => _202(), 'access', _203 => _203.matchRoute, 'call', _204 => _204(page), 'access', _205 => _205.route, 'optionalAccess', _206 => _206.pattern])
|
|
2624
2624
|
);
|
|
@@ -3042,9 +3042,9 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3042
3042
|
};
|
|
3043
3043
|
const docsResponse = pm ? await pm.runRuntimeRequest(request, invokeDocsAPIHandler, {
|
|
3044
3044
|
kind: "docs",
|
|
3045
|
-
route:
|
|
3045
|
+
route: _chunk752IHQTDcjs.setFarmRouteLabel.call(void 0,
|
|
3046
3046
|
{ pathname: pathname2, pattern: apiLifecyclePayload.routePath },
|
|
3047
|
-
|
|
3047
|
+
_chunk752IHQTDcjs.resolveFarmDocsRouteLabel.call(void 0, pathname2, {
|
|
3048
3048
|
path: _optionalChain([farmConfig, 'access', _218 => _218.docs, 'optionalAccess', _219 => _219.entry]) || "/docs",
|
|
3049
3049
|
roots: _optionalChain([farmConfig, 'access', _220 => _220.docs, 'optionalAccess', _221 => _221.roots, 'optionalAccess', _222 => _222.map, 'call', _223 => _223((root) => root.entry)])
|
|
3050
3050
|
})
|
|
@@ -3173,7 +3173,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3173
3173
|
);
|
|
3174
3174
|
const loadingModule = loadingBoundary ? await routeManager3.loadRouteModule(loadingBoundary.modulePath) : null;
|
|
3175
3175
|
const navigationManifest = routeManager3.generateClientManifest(server.config.root);
|
|
3176
|
-
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => (
|
|
3176
|
+
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => ( _chunk7ONGIFYXcjs.getClientModuleMetadata.call(void 0, route.modulePath, server.config.root)));
|
|
3177
3177
|
const isClientComponent = moduleMetadata.isClientComponent;
|
|
3178
3178
|
const shouldHydrate = moduleMetadata.shouldHydrate;
|
|
3179
3179
|
let mergedMetadata = {};
|
|
@@ -3181,7 +3181,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3181
3181
|
layouts.map((layout) => routeManager3.loadLayoutModule(layout.modulePath))
|
|
3182
3182
|
);
|
|
3183
3183
|
const layoutHydrationMetadata = layouts.map(
|
|
3184
|
-
(layout) => _nullishCoalesce(navigationManifest.layouts.find((entry) => entry.pattern === layout.pattern), () => (
|
|
3184
|
+
(layout) => _nullishCoalesce(navigationManifest.layouts.find((entry) => entry.pattern === layout.pattern), () => ( _chunk7ONGIFYXcjs.getClientModuleMetadata.call(void 0, layout.modulePath, server.config.root)))
|
|
3185
3185
|
);
|
|
3186
3186
|
const shouldHydrateLayout = layoutHydrationMetadata.some(
|
|
3187
3187
|
(metadata) => metadata.shouldHydrate
|
|
@@ -3194,7 +3194,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3194
3194
|
];
|
|
3195
3195
|
const hydrationIslandStrategy = _chunkZIHWAN55cjs.resolveFarmServerComponentsMode.call(void 0,
|
|
3196
3196
|
_optionalChain([(_nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _242 => _242.getConfig, 'call', _243 => _243()]), () => ( options))), 'access', _244 => _244.experimental, 'optionalAccess', _245 => _245.serverComponents])
|
|
3197
|
-
) === "islands" ?
|
|
3197
|
+
) === "islands" ? _chunkE4UDLFWRcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
3198
3198
|
route,
|
|
3199
3199
|
{ shouldHydrate, islandStrategy: _nullishCoalesce(moduleMetadata.islandStrategy, () => ( null)) },
|
|
3200
3200
|
layouts.map((layout, index) => ({
|
|
@@ -3258,7 +3258,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3258
3258
|
const slotModule = await routeManager3.loadRouteModule(slot.route.modulePath);
|
|
3259
3259
|
const slotMetadata = _nullishCoalesce(navigationManifest.slots.find(
|
|
3260
3260
|
(entry) => entry.name === slot.name && entry.ownerPattern === slot.ownerPattern && entry.pattern === slot.route.pattern
|
|
3261
|
-
), () => (
|
|
3261
|
+
), () => ( _chunk7ONGIFYXcjs.getClientModuleMetadata.call(void 0, slot.route.modulePath, server.config.root)));
|
|
3262
3262
|
const slotContext = await _chunkX333W5KVcjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
|
|
3263
3263
|
request: targetRequest,
|
|
3264
3264
|
params: slot.params,
|
|
@@ -3441,7 +3441,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3441
3441
|
const requestedMatch = routeManager2.matchRoute(requestedPathname);
|
|
3442
3442
|
const pageBuiltInRouteLabel = (pathname2) => {
|
|
3443
3443
|
const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, pathname2, farmConfig.basePath);
|
|
3444
|
-
const mcpLabel =
|
|
3444
|
+
const mcpLabel = _chunk752IHQTDcjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath);
|
|
3445
3445
|
if (mcpLabel) return mcpLabel;
|
|
3446
3446
|
if (farmAgentGeneratedPaths(farmConfig).includes(routePathname)) return routePathname;
|
|
3447
3447
|
return routePathname === _chunkY5TOT5F6cjs.FARM_DEFAULT_MCP_PATH && farmApp.getServerRenderer().getDefaultMCPServer() ? _chunkY5TOT5F6cjs.FARM_DEFAULT_MCP_PATH : null;
|
|
@@ -3453,7 +3453,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3453
3453
|
createRequestFromNodeRequest(req, new URL(fullUrl)),
|
|
3454
3454
|
{
|
|
3455
3455
|
kind: "page",
|
|
3456
|
-
route:
|
|
3456
|
+
route: _chunk752IHQTDcjs.setFarmRouteLabel.call(void 0,
|
|
3457
3457
|
{
|
|
3458
3458
|
pathname: requestedPathname,
|
|
3459
3459
|
pattern: _optionalChain([requestedMatch, 'optionalAccess', _271 => _271.route, 'optionalAccess', _272 => _272.pattern]) || null,
|
|
@@ -3681,7 +3681,7 @@ window.__FARM_MANIFEST__ = ${inlineValue({
|
|
|
3681
3681
|
const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
|
|
3682
3682
|
const generatedDevIndicatorsClientRuntime = farmApp ? _chunkUVV3I5QAcjs.generateFarmDevIndicatorsClientRuntime.call(void 0, farmApp.getConfig().devIndicators) : "";
|
|
3683
3683
|
const integrationProviders = _chunkRD623KW4cjs.isReactRenderer.call(void 0, renderer) ? _chunkI32V5CZLcjs.getIntegrationProviders.call(void 0, integrations) : [];
|
|
3684
|
-
const isolatedHydrationMode =
|
|
3684
|
+
const isolatedHydrationMode = _chunk7ONGIFYXcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
3685
3685
|
_optionalChain([resolvedConfig, 'optionalAccess', _320 => _320.experimental, 'optionalAccess', _321 => _321.isolatedClientHydration]),
|
|
3686
3686
|
{
|
|
3687
3687
|
serverComponents: _chunkZIHWAN55cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _322 => _322.experimental, 'optionalAccess', _323 => _323.serverComponents])) === "rsc",
|
|
@@ -3706,8 +3706,8 @@ ${generatedDevIndicatorsClientRuntime}`,
|
|
|
3706
3706
|
isolatedHydrationMode === "enabled" || _chunkRD623KW4cjs.isReactRenderer.call(void 0, renderer) && _optionalChain([(_nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _331 => _331.getRouteManager, 'call', _332 => _332(), 'access', _333 => _333.getIsolatedClientBoundaryModules, 'call', _334 => _334(root)])))), 'optionalAccess', _335 => _335.size]) > 0,
|
|
3707
3707
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _336 => _336.trailingSlash]), () => ( false)),
|
|
3708
3708
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _337 => _337.basePath]), () => ( "/")),
|
|
3709
|
-
|
|
3710
|
-
|
|
3709
|
+
_chunkE4UDLFWRcjs.generateClientCachePersistenceCode.call(void 0,
|
|
3710
|
+
_chunkE4UDLFWRcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, _optionalChain([resolvedConfig, 'optionalAccess', _338 => _338.cache]))
|
|
3711
3711
|
),
|
|
3712
3712
|
_chunkRD623KW4cjs.isReactRenderer.call(void 0, renderer) ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, docs) : void 0,
|
|
3713
3713
|
_chunkZIHWAN55cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _339 => _339.experimental, 'optionalAccess', _340 => _340.serverComponents])) === "islands"
|
|
@@ -3730,7 +3730,7 @@ export const getManifest = () => ({
|
|
|
3730
3730
|
`;
|
|
3731
3731
|
}
|
|
3732
3732
|
const manifest = routeManager.generateClientManifest(server.config.root);
|
|
3733
|
-
const globalStylesheetHref =
|
|
3733
|
+
const globalStylesheetHref = _chunkE4UDLFWRcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
3734
3734
|
server.config.root,
|
|
3735
3735
|
_optionalChain([farmApp, 'optionalAccess', _343 => _343.getConfig, 'call', _344 => _344(), 'access', _345 => _345.srcDir])
|
|
3736
3736
|
);
|
|
@@ -3790,22 +3790,22 @@ export const manifest = getManifest();
|
|
|
3790
3790
|
async transform(code, id, transformOptions) {
|
|
3791
3791
|
const actionConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _346 => _346.getConfig, 'call', _347 => _347()]), () => ( options));
|
|
3792
3792
|
let rewrotePackageImports = false;
|
|
3793
|
-
if (_chunkZIHWAN55cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([actionConfig, 'access', _348 => _348.experimental, 'optionalAccess', _349 => _349.serverComponents])) === "islands" && (!id.includes("/node_modules/") || _optionalChain([transformOptions, 'optionalAccess', _350 => _350.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !
|
|
3793
|
+
if (_chunkZIHWAN55cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([actionConfig, 'access', _348 => _348.experimental, 'optionalAccess', _349 => _349.serverComponents])) === "islands" && (!id.includes("/node_modules/") || _optionalChain([transformOptions, 'optionalAccess', _350 => _350.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !_chunk7ONGIFYXcjs.hasUseClientDirective.call(void 0, code)) {
|
|
3794
3794
|
const file = id.split("?", 1)[0];
|
|
3795
3795
|
const projectRoot = actionConfig.root || _optionalChain([server, 'optionalAccess', _351 => _351.config, 'access', _352 => _352.root]) || process.cwd();
|
|
3796
3796
|
if (_optionalChain([transformOptions, 'optionalAccess', _353 => _353.ssr]) === true) {
|
|
3797
3797
|
if (farmReactServerFiles.has(file)) {
|
|
3798
|
-
for (const child of
|
|
3798
|
+
for (const child of _chunk7ONGIFYXcjs.farmRelativeImportFiles.call(void 0, code, file))
|
|
3799
3799
|
farmReactServerFiles.add(child);
|
|
3800
3800
|
}
|
|
3801
|
-
const serverModule = farmReactServerFiles.has(file) || !
|
|
3801
|
+
const serverModule = farmReactServerFiles.has(file) || !_chunk7ONGIFYXcjs.getFarmClientReachableModules.call(void 0,
|
|
3802
3802
|
path6.resolve(projectRoot, actionConfig.srcDir || "src"),
|
|
3803
3803
|
projectRoot
|
|
3804
3804
|
).has(path6.resolve(file));
|
|
3805
|
-
const reactServer = !serverModule ? null :
|
|
3805
|
+
const reactServer = !serverModule ? null : _chunk7ONGIFYXcjs.rewriteFarmReactServerImports.call(void 0, {
|
|
3806
3806
|
code,
|
|
3807
3807
|
file,
|
|
3808
|
-
reference: (specifier, exportName) =>
|
|
3808
|
+
reference: (specifier, exportName) => _chunk7ONGIFYXcjs.ensureFarmPackageClientReference.call(void 0, projectRoot, specifier, exportName),
|
|
3809
3809
|
onServerFile: (serverFile) => farmReactServerFiles.add(serverFile)
|
|
3810
3810
|
});
|
|
3811
3811
|
if (reactServer !== null) {
|
|
@@ -3813,11 +3813,11 @@ export const manifest = getManifest();
|
|
|
3813
3813
|
rewrotePackageImports = true;
|
|
3814
3814
|
}
|
|
3815
3815
|
}
|
|
3816
|
-
const referenced =
|
|
3816
|
+
const referenced = _chunk7ONGIFYXcjs.rewriteFarmPackageClientImports.call(void 0, {
|
|
3817
3817
|
code,
|
|
3818
3818
|
file,
|
|
3819
3819
|
root: projectRoot,
|
|
3820
|
-
isClientPackage: (specifier) =>
|
|
3820
|
+
isClientPackage: (specifier) => _chunk7ONGIFYXcjs.isFarmPackageClientBoundary.call(void 0, file, specifier, projectRoot)
|
|
3821
3821
|
});
|
|
3822
3822
|
if (referenced !== null) {
|
|
3823
3823
|
code = referenced;
|
|
@@ -3854,8 +3854,8 @@ export const manifest = getManifest();
|
|
|
3854
3854
|
}
|
|
3855
3855
|
if (!_optionalChain([transformOptions, 'optionalAccess', _361 => _361.ssr])) {
|
|
3856
3856
|
const docsConfigModule = _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, _optionalChain([farmApp, 'optionalAccess', _362 => _362.getConfig, 'call', _363 => _363(), 'optionalAccess', _364 => _364.docs]));
|
|
3857
|
-
if (
|
|
3858
|
-
const redacted =
|
|
3857
|
+
if (_chunkE4UDLFWRcjs.isFarmDocsClientConfigModule.call(void 0, id, docsConfigModule)) {
|
|
3858
|
+
const redacted = _chunkE4UDLFWRcjs.redactFarmDocsClientConfig.call(void 0, code, id.split("?")[0]);
|
|
3859
3859
|
if (redacted !== null) return { code: redacted, map: null };
|
|
3860
3860
|
}
|
|
3861
3861
|
}
|
|
@@ -3902,13 +3902,13 @@ export const manifest = getManifest();
|
|
|
3902
3902
|
transformed = true;
|
|
3903
3903
|
}
|
|
3904
3904
|
}
|
|
3905
|
-
if (
|
|
3905
|
+
if (_chunk7ONGIFYXcjs.hasUseClientDirective.call(void 0, transformedCode)) {
|
|
3906
3906
|
const clientBoundarySource = transformedCode;
|
|
3907
3907
|
const moduleInfo = this.getModuleInfo(id);
|
|
3908
3908
|
if (moduleInfo) {
|
|
3909
3909
|
moduleInfo.isClientComponent = true;
|
|
3910
3910
|
}
|
|
3911
|
-
transformedCode =
|
|
3911
|
+
transformedCode = _chunk7ONGIFYXcjs.stripUseClientDirective.call(void 0, transformedCode);
|
|
3912
3912
|
transformed = true;
|
|
3913
3913
|
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _377 => _377.getConfig, 'call', _378 => _378()]), () => ( options));
|
|
3914
3914
|
let isolatedModuleReference = null;
|
|
@@ -3916,12 +3916,12 @@ export const manifest = getManifest();
|
|
|
3916
3916
|
const cleanId = id.split("?", 1)[0];
|
|
3917
3917
|
const selectedIsolatedModules = _nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _381 => _381.getRouteManager, 'call', _382 => _382(), 'access', _383 => _383.getIsolatedClientBoundaryModules, 'call', _384 => _384(root)])));
|
|
3918
3918
|
const selectedForIsolatedHydration = _optionalChain([selectedIsolatedModules, 'optionalAccess', _385 => _385.has, 'call', _386 => _386(path6.resolve(cleanId))]) === true;
|
|
3919
|
-
if (_chunkRD623KW4cjs.isReactRenderer.call(void 0, _chunkRD623KW4cjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (
|
|
3920
|
-
cleanId.replace(/\\/g, "/").includes(
|
|
3919
|
+
if (_chunkRD623KW4cjs.isReactRenderer.call(void 0, _chunkRD623KW4cjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (_chunk7ONGIFYXcjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || // A generated client reference, whose marker comment compiled TSX no longer has.
|
|
3920
|
+
cleanId.replace(/\\/g, "/").includes(_chunk7ONGIFYXcjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
|
|
3921
3921
|
isolatedModuleReference = _chunkQMNWKQL4cjs.toViteModuleId.call(void 0, cleanId, root);
|
|
3922
3922
|
const islandsMode = _chunkZIHWAN55cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([currentConfig, 'access', _387 => _387.experimental, 'optionalAccess', _388 => _388.serverComponents])) === "islands";
|
|
3923
|
-
const explicitStrategy =
|
|
3924
|
-
const inference = islandsMode && explicitStrategy === null ?
|
|
3923
|
+
const explicitStrategy = _chunk7ONGIFYXcjs.getIslandStrategyExport.call(void 0, clientBoundarySource);
|
|
3924
|
+
const inference = islandsMode && explicitStrategy === null ? _chunkE4UDLFWRcjs.inferFarmIslandStrategy.call(void 0, cleanId, root) : null;
|
|
3925
3925
|
if (inference) {
|
|
3926
3926
|
for (const file of inference.files) {
|
|
3927
3927
|
if (file !== path6.resolve(cleanId)) this.addWatchFile(file);
|
|
@@ -4101,8 +4101,8 @@ if (import.meta.hot) {
|
|
|
4101
4101
|
}
|
|
4102
4102
|
},
|
|
4103
4103
|
watchChange() {
|
|
4104
|
-
|
|
4105
|
-
|
|
4104
|
+
_chunk7ONGIFYXcjs.invalidateFarmClientReachableModules.call(void 0, );
|
|
4105
|
+
_chunk7ONGIFYXcjs.invalidateFarmClientOnlyScan.call(void 0, );
|
|
4106
4106
|
},
|
|
4107
4107
|
async handleHotUpdate(ctx) {
|
|
4108
4108
|
const { file, server: server2, modules } = ctx;
|
|
@@ -4308,19 +4308,19 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
4308
4308
|
const parsed = _chunkE7QOEV5Zcjs.parseProgrammaticRouteModuleId.call(void 0, moduleId);
|
|
4309
4309
|
const routesFile = resolveRealModuleFile(parsed.filePath, root);
|
|
4310
4310
|
watchFile(routesFile);
|
|
4311
|
-
return
|
|
4311
|
+
return _chunk7ONGIFYXcjs.generateProgrammaticClientRouteModule.call(void 0, {
|
|
4312
4312
|
kind: parsed.kind,
|
|
4313
4313
|
routePath: parsed.routePath,
|
|
4314
4314
|
routesFile,
|
|
4315
4315
|
route: parsed.kind === "api" ? void 0 : _optionalChain([clientRoutes, 'optionalAccess', _417 => _417.routes, 'access', _418 => _418.get, 'call', _419 => _419(
|
|
4316
|
-
|
|
4316
|
+
_chunk7ONGIFYXcjs.programmaticClientRouteKey.call(void 0, routesFile, parsed.kind, parsed.routePath)
|
|
4317
4317
|
)]),
|
|
4318
4318
|
rendererServer: renderer.server,
|
|
4319
4319
|
toImportSpecifier: (file) => toProgrammaticRouteImportSpecifier(file, root)
|
|
4320
4320
|
});
|
|
4321
4321
|
}
|
|
4322
4322
|
function resolveRealModuleFile(filePath, root) {
|
|
4323
|
-
const resolved = _nullishCoalesce(
|
|
4323
|
+
const resolved = _nullishCoalesce(_chunk7ONGIFYXcjs.resolveModuleSourcePath.call(void 0, filePath, root), () => ( filePath));
|
|
4324
4324
|
try {
|
|
4325
4325
|
return _chunkQMNWKQL4cjs.toPosixPath.call(void 0, fs2.realpathSync(resolved));
|
|
4326
4326
|
} catch (e19) {
|
|
@@ -4659,12 +4659,12 @@ function parseRouteModuleSchema(schema, value, label, routePath) {
|
|
|
4659
4659
|
}
|
|
4660
4660
|
}
|
|
4661
4661
|
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) {
|
|
4662
|
-
const providerClientCode =
|
|
4662
|
+
const providerClientCode = _chunkE4UDLFWRcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
4663
4663
|
integrationProviders,
|
|
4664
4664
|
root,
|
|
4665
4665
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
4666
4666
|
);
|
|
4667
|
-
const clientPluginEntry =
|
|
4667
|
+
const clientPluginEntry = _chunkE4UDLFWRcjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
4668
4668
|
plugins,
|
|
4669
4669
|
root,
|
|
4670
4670
|
srcDir,
|
|
@@ -4712,7 +4712,7 @@ async function createFarmServerTreePageElement(source, pathname) {
|
|
|
4712
4712
|
return null;
|
|
4713
4713
|
}
|
|
4714
4714
|
}
|
|
4715
|
-
${islandValues ? `${
|
|
4715
|
+
${islandValues ? `${_chunkE4UDLFWRcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
4716
4716
|
let farmLastRouteState = null;
|
|
4717
4717
|
|
|
4718
4718
|
// A hot update to a layout tree's client module renders the route again.
|
|
@@ -5523,7 +5523,7 @@ async function loadLayoutComponents(layouts = [], params = {}, source) {
|
|
|
5523
5523
|
return loadedLayouts;
|
|
5524
5524
|
}
|
|
5525
5525
|
|
|
5526
|
-
${
|
|
5526
|
+
${_chunkE4UDLFWRcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
5527
5527
|
function wrapWithLoadedLayouts(element, loadedLayouts, params) {
|
|
5528
5528
|
let wrapped = element;
|
|
5529
5529
|
for (let index = loadedLayouts.length - 1; index >= 0; index--) {
|
|
@@ -5880,7 +5880,7 @@ function replaceNavigationBoundary(
|
|
|
5880
5880
|
return nextTarget;
|
|
5881
5881
|
}
|
|
5882
5882
|
|
|
5883
|
-
${islandValues ? `${
|
|
5883
|
+
${islandValues ? `${_chunkE4UDLFWRcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
|
|
5884
5884
|
|
|
5885
5885
|
// Islands mode navigates as the production client does: it fetches the page itself, names the
|
|
5886
5886
|
// layouts it shows by key (F-Layouts), and asks for flush markers (F-Stream), so the shell arrives
|
|
@@ -6574,7 +6574,7 @@ async function defineConfig(config = {}) {
|
|
|
6574
6574
|
config = layeredConfig;
|
|
6575
6575
|
}
|
|
6576
6576
|
config.renderer = _chunkRD623KW4cjs.resolveFarmRenderer.call(void 0, config.renderer);
|
|
6577
|
-
config.images =
|
|
6577
|
+
config.images = _chunkE4UDLFWRcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, { root: appRoot, dev: true });
|
|
6578
6578
|
const rendererVitePlugins = await _chunkRD623KW4cjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, appRoot, {
|
|
6579
6579
|
ssr: true
|
|
6580
6580
|
});
|
|
@@ -6672,7 +6672,7 @@ async function defineConfig(config = {}) {
|
|
|
6672
6672
|
const isExposed = hostConfig === true || hostConfig === "0.0.0.0";
|
|
6673
6673
|
console.log("");
|
|
6674
6674
|
console.log(
|
|
6675
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
6675
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkBIF5MLTHcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
6676
6676
|
);
|
|
6677
6677
|
console.log("");
|
|
6678
6678
|
console.log(
|
|
@@ -6706,7 +6706,7 @@ async function defineConfig(config = {}) {
|
|
|
6706
6706
|
plugins: [
|
|
6707
6707
|
// `farm dev --desktop`: only the desktop window gets an answer, as in the packaged app.
|
|
6708
6708
|
_chunk65Y5SIBHcjs.farmDesktopDevGuardPlugin.call(void 0, config.basePath),
|
|
6709
|
-
|
|
6709
|
+
_chunkE4UDLFWRcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
6710
6710
|
tailwindVitePlugin,
|
|
6711
6711
|
...rendererVitePlugins,
|
|
6712
6712
|
...reactRefreshPlugins,
|
|
@@ -6714,14 +6714,14 @@ async function defineConfig(config = {}) {
|
|
|
6714
6714
|
farmI18nClientBridgePlugin(),
|
|
6715
6715
|
farmServerOnlyEntriesPlugin(),
|
|
6716
6716
|
farmPlugin(config),
|
|
6717
|
-
|
|
6717
|
+
_chunk7ONGIFYXcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
|
|
6718
6718
|
farmBrandingPlugin
|
|
6719
6719
|
],
|
|
6720
6720
|
customLogger: farmLogger,
|
|
6721
6721
|
clearScreen: false,
|
|
6722
6722
|
optimizeDeps: {
|
|
6723
|
-
...
|
|
6724
|
-
|
|
6723
|
+
..._chunkE4UDLFWRcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
6724
|
+
_chunkE4UDLFWRcjs.createFarmClientOptimizeDepsEntries.call(void 0,
|
|
6725
6725
|
appRoot,
|
|
6726
6726
|
_chunk5Y2P454Ocjs.getFarmAppDirectories.call(void 0, { ...config, root: appRoot })
|
|
6727
6727
|
),
|
|
@@ -6764,7 +6764,7 @@ async function defineConfig(config = {}) {
|
|
|
6764
6764
|
// Stub out problematic server-only modules during dev mode
|
|
6765
6765
|
alias: {
|
|
6766
6766
|
..._chunk5Y2P454Ocjs.getFarmLayerAliases.call(void 0, config.layers),
|
|
6767
|
-
...
|
|
6767
|
+
..._chunkE4UDLFWRcjs.createFarmSourceAlias.call(void 0, appRoot, config.srcDir),
|
|
6768
6768
|
// Nitro internals that should not be resolved in browser
|
|
6769
6769
|
"supports-color": "data:text/javascript,export default false; export const supportsColor = false; export const stdout = false; export const stderr = false;",
|
|
6770
6770
|
"@poppinss/dumper": "data:text/javascript,export default {};",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBIF5MLTHcjs = require('./chunk-BIF5MLTH.cjs');
|
|
4
4
|
|
|
5
5
|
// src/deployment-environment.ts
|
|
6
6
|
function isFarmProductionDeploymentEnvironment(env = process.env) {
|
|
@@ -90,7 +90,7 @@ function createFarmProductionSiteReporter(options) {
|
|
|
90
90
|
schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
|
|
91
91
|
eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
|
|
92
92
|
packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
|
|
93
|
-
packageVersion: sanitizeDetail(
|
|
93
|
+
packageVersion: sanitizeDetail(_chunkBIF5MLTHcjs.FARM_VERSION, "unknown"),
|
|
94
94
|
renderer: sanitizeDetail(options.renderer, "custom"),
|
|
95
95
|
deployTarget: sanitizeDetail(options.deployTarget, "custom")
|
|
96
96
|
};
|
|
@@ -30,7 +30,8 @@ function escapeRegExp(value) {
|
|
|
30
30
|
}
|
|
31
31
|
var MAX_HELD_TAG = 4096;
|
|
32
32
|
function createFarmMobileShellRewriter(client) {
|
|
33
|
-
const
|
|
33
|
+
const entries = [client.webEntry, ...client.webBoot ? [client.webBoot] : []];
|
|
34
|
+
const entry = new RegExp(`(["'])(?:${entries.map(escapeRegExp).join("|")})\\1`, "g");
|
|
34
35
|
const webOnly = new Set(client.webOnly);
|
|
35
36
|
const preload = /<link rel="modulepreload" href="\/([^"]+)"[^>]*>/g;
|
|
36
37
|
let held = "";
|
|
@@ -30,7 +30,8 @@ function escapeRegExp(value) {
|
|
|
30
30
|
}
|
|
31
31
|
var MAX_HELD_TAG = 4096;
|
|
32
32
|
function createFarmMobileShellRewriter(client) {
|
|
33
|
-
const
|
|
33
|
+
const entries = [client.webEntry, ...client.webBoot ? [client.webBoot] : []];
|
|
34
|
+
const entry = new RegExp(`(["'])(?:${entries.map(escapeRegExp).join("|")})\\1`, "g");
|
|
34
35
|
const webOnly = new Set(client.webOnly);
|
|
35
36
|
const preload = /<link rel="modulepreload" href="\/([^"]+)"[^>]*>/g;
|
|
36
37
|
let held = "";
|