@farm.js/core 0.2.0-beta.0 → 0.2.0-beta.1

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.
Files changed (92) hide show
  1. package/dist/analyzer-IIWSUXSQ.cjs +17 -0
  2. package/dist/{analyzer-PWHYGER6.mjs → analyzer-RYSF2BM3.mjs} +2 -2
  3. package/dist/api/route-manager.cjs +3 -3
  4. package/dist/api/route-manager.mjs +2 -2
  5. package/dist/api.cjs +4 -4
  6. package/dist/api.mjs +3 -3
  7. package/dist/{app.d-b3A4cca5.d.ts → app.d-CoY-zsJt.d.ts} +1 -1
  8. package/dist/{app.d-AVZXCfcO.d.mts → app.d-DE5KNbmf.d.mts} +1 -1
  9. package/dist/{chunk-W3ZBLFLU.mjs → chunk-23BZ7ZH6.mjs} +1 -1
  10. package/dist/{chunk-FEWCWBOF.cjs → chunk-27ESPHQA.cjs} +4 -4
  11. package/dist/{chunk-WPB6HJC7.mjs → chunk-2U2GRXP5.mjs} +1 -1
  12. package/dist/{chunk-L6ZL35ZJ.mjs → chunk-4A6A6P4T.mjs} +2 -2
  13. package/dist/{chunk-JGUMFTZT.cjs → chunk-6BMAGVDI.cjs} +4 -4
  14. package/dist/{chunk-CFLRUCN7.cjs → chunk-6ETHVRFO.cjs} +135 -135
  15. package/dist/{chunk-MZPPT5NA.mjs → chunk-AMMFRXFW.mjs} +1 -1
  16. package/dist/{chunk-GV5D5EM6.mjs → chunk-ANKMAGFJ.mjs} +1 -1
  17. package/dist/{chunk-SCOKBXHS.mjs → chunk-CIQCJ72N.mjs} +13 -13
  18. package/dist/{chunk-ZOD6EYWE.mjs → chunk-CPMK7EFR.mjs} +1 -1
  19. package/dist/{chunk-MM4U2NNI.mjs → chunk-DZC2XGK4.mjs} +24 -18
  20. package/dist/{chunk-XJJQAFZX.mjs → chunk-EBKYRP2P.mjs} +1 -1
  21. package/dist/{chunk-CNGGEHXY.cjs → chunk-FJGA3XWL.cjs} +2 -2
  22. package/dist/{chunk-PTAGDZ7I.mjs → chunk-GTHBWZUK.mjs} +5 -1
  23. package/dist/{chunk-SG5RFGV6.cjs → chunk-HENPVGZC.cjs} +2 -2
  24. package/dist/{chunk-MRULVIH3.mjs → chunk-ISSFWEPY.mjs} +1 -1
  25. package/dist/{chunk-PQ6DBVJ2.cjs → chunk-KBIM7PFQ.cjs} +73 -67
  26. package/dist/{chunk-ERV422FO.cjs → chunk-KRU3XPOW.cjs} +2 -2
  27. package/dist/{chunk-TQFIZRON.cjs → chunk-L4B7PB3H.cjs} +126 -126
  28. package/dist/{chunk-VMGQOP7X.cjs → chunk-M3JYBZO2.cjs} +2 -2
  29. package/dist/{chunk-SUACCCZG.cjs → chunk-N2ZMSSPP.cjs} +11 -11
  30. package/dist/{chunk-7LBNWL3L.cjs → chunk-ND65INFS.cjs} +2 -2
  31. package/dist/{chunk-WOTAU3BN.mjs → chunk-NVXU5BEG.mjs} +47 -28
  32. package/dist/{chunk-HU4R2PPW.cjs → chunk-NZRAUCUL.cjs} +2 -2
  33. package/dist/{chunk-PA3VZNWU.cjs → chunk-OIPPISQ6.cjs} +81 -62
  34. package/dist/{chunk-H47EH24T.mjs → chunk-OQOII62L.mjs} +1 -1
  35. package/dist/{chunk-LUGQUU4S.mjs → chunk-PKV3JGMS.mjs} +1 -1
  36. package/dist/{chunk-BQHIJOZM.cjs → chunk-SIECKBNK.cjs} +6 -2
  37. package/dist/{chunk-JDO3X7RB.mjs → chunk-SPKZCFPH.mjs} +1 -1
  38. package/dist/{chunk-3MY6TNNE.cjs → chunk-TWFJJPE7.cjs} +3 -3
  39. package/dist/{chunk-6266WH6X.cjs → chunk-V3Y3R3JJ.cjs} +1 -1
  40. package/dist/{chunk-YCHIR3X6.mjs → chunk-VZWAXQME.mjs} +1 -1
  41. package/dist/{chunk-5ZWXTIGE.cjs → chunk-WEZTGM7N.cjs} +2 -2
  42. package/dist/{chunk-BJHXFEAF.mjs → chunk-YPAOC3FO.mjs} +2 -2
  43. package/dist/{chunk-M4CNAZMS.mjs → chunk-Z7ZRBCAB.mjs} +11 -11
  44. package/dist/{chunk-XRYLMTYF.cjs → chunk-ZPQY7O64.cjs} +3 -3
  45. package/dist/{devtools-2CRVXV7E.mjs → devtools-5DBTT2DI.mjs} +1 -1
  46. package/dist/{devtools-RL4AU5KD.cjs → devtools-JTJA2KIZ.cjs} +2 -2
  47. package/dist/docs.cjs +3 -3
  48. package/dist/docs.mjs +2 -2
  49. package/dist/environment/vite.cjs +3 -3
  50. package/dist/environment/vite.mjs +2 -2
  51. package/dist/index.cjs +22 -22
  52. package/dist/index.d.mts +1 -1
  53. package/dist/index.d.ts +1 -1
  54. package/dist/index.mjs +17 -17
  55. package/dist/internal/build-runtime.cjs +17 -17
  56. package/dist/internal/build-runtime.mjs +16 -16
  57. package/dist/internal/cli-runtime.cjs +5 -5
  58. package/dist/internal/cli-runtime.mjs +4 -4
  59. package/dist/internal/client-error-overlay.cjs +4 -4
  60. package/dist/internal/client-error-overlay.mjs +1 -1
  61. package/dist/internal/config-runtime.cjs +3 -3
  62. package/dist/internal/config-runtime.mjs +2 -2
  63. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  64. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  65. package/dist/internal/native-server-fns.cjs +4 -4
  66. package/dist/internal/native-server-fns.mjs +3 -3
  67. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  68. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  69. package/dist/internal/production-runtime.cjs +4 -4
  70. package/dist/internal/production-runtime.mjs +3 -3
  71. package/dist/{manager-D4DZRBRS.cjs → manager-37UJPUN4.cjs} +4 -4
  72. package/dist/{manager-PKPQGBAE.mjs → manager-7BNSJKME.mjs} +3 -3
  73. package/dist/plugin.cjs +12 -12
  74. package/dist/plugin.mjs +11 -11
  75. package/dist/{rsc-pipeline-3DYC5ZXW.cjs → rsc-pipeline-LGXJGGMW.cjs} +3 -3
  76. package/dist/{rsc-pipeline-LRB4ZG6I.mjs → rsc-pipeline-W5DSWDHD.mjs} +2 -2
  77. package/dist/{runtime-3WJNNAAR.mjs → runtime-UOZKSM5S.mjs} +2 -2
  78. package/dist/{runtime-CRFF32H6.cjs → runtime-YV4X5FAK.cjs} +4 -4
  79. package/dist/server.cjs +36 -35
  80. package/dist/server.d.mts +1 -1
  81. package/dist/server.d.ts +1 -1
  82. package/dist/server.mjs +16 -15
  83. package/dist/testing.cjs +2 -2
  84. package/dist/testing.mjs +2 -2
  85. package/dist/version.cjs +2 -2
  86. package/dist/version.mjs +1 -1
  87. package/dist/vite.cjs +12 -12
  88. package/dist/vite.mjs +11 -11
  89. package/package.json +1 -1
  90. package/dist/analyzer-B2TRJT3B.cjs +0 -17
  91. /package/dist/{chunk-IRPXOTEN.cjs → chunk-FLKG2PYH.cjs} +0 -0
  92. /package/dist/{chunk-BGEA4K7C.mjs → chunk-OOOUYA6L.mjs} +0 -0
@@ -32,7 +32,7 @@ var _chunkMHKPXX3Jcjs = require('./chunk-MHKPXX3J.cjs');
32
32
 
33
33
 
34
34
 
35
- var _chunkXRYLMTYFcjs = require('./chunk-XRYLMTYF.cjs');
35
+ var _chunkZPQY7O64cjs = require('./chunk-ZPQY7O64.cjs');
36
36
 
37
37
 
38
38
 
@@ -40,7 +40,7 @@ var _chunkXRYLMTYFcjs = require('./chunk-XRYLMTYF.cjs');
40
40
 
41
41
 
42
42
 
43
- var _chunkSG5RFGV6cjs = require('./chunk-SG5RFGV6.cjs');
43
+ var _chunkHENPVGZCcjs = require('./chunk-HENPVGZC.cjs');
44
44
 
45
45
 
46
46
 
@@ -70,7 +70,7 @@ var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
70
70
 
71
71
 
72
72
 
73
- var _chunkIRPXOTENcjs = require('./chunk-IRPXOTEN.cjs');
73
+ var _chunkFLKG2PYHcjs = require('./chunk-FLKG2PYH.cjs');
74
74
 
75
75
 
76
76
  var _chunk3BTN3NP7cjs = require('./chunk-3BTN3NP7.cjs');
@@ -116,7 +116,7 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
116
116
 
117
117
 
118
118
 
119
- var _chunkPQ6DBVJ2cjs = require('./chunk-PQ6DBVJ2.cjs');
119
+ var _chunkKBIM7PFQcjs = require('./chunk-KBIM7PFQ.cjs');
120
120
 
121
121
 
122
122
 
@@ -132,11 +132,11 @@ var _chunkVACYUMXWcjs = require('./chunk-VACYUMXW.cjs');
132
132
 
133
133
 
134
134
 
135
- var _chunkERV422FOcjs = require('./chunk-ERV422FO.cjs');
135
+ var _chunkKRU3XPOWcjs = require('./chunk-KRU3XPOW.cjs');
136
136
 
137
137
 
138
138
 
139
- var _chunkFEWCWBOFcjs = require('./chunk-FEWCWBOF.cjs');
139
+ var _chunk27ESPHQAcjs = require('./chunk-27ESPHQA.cjs');
140
140
 
141
141
 
142
142
 
@@ -163,7 +163,7 @@ var _chunk47JV57DAcjs = require('./chunk-47JV57DA.cjs');
163
163
 
164
164
 
165
165
 
166
- var _chunkJGUMFTZTcjs = require('./chunk-JGUMFTZT.cjs');
166
+ var _chunk6BMAGVDIcjs = require('./chunk-6BMAGVDI.cjs');
167
167
 
168
168
 
169
169
 
@@ -171,7 +171,7 @@ var _chunkJGUMFTZTcjs = require('./chunk-JGUMFTZT.cjs');
171
171
  var _chunkW53Z4WDIcjs = require('./chunk-W53Z4WDI.cjs');
172
172
 
173
173
 
174
- var _chunkCNGGEHXYcjs = require('./chunk-CNGGEHXY.cjs');
174
+ var _chunkFJGA3XWLcjs = require('./chunk-FJGA3XWL.cjs');
175
175
 
176
176
 
177
177
  var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
@@ -192,7 +192,7 @@ var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
192
192
 
193
193
 
194
194
 
195
- var _chunkPA3VZNWUcjs = require('./chunk-PA3VZNWU.cjs');
195
+ var _chunkOIPPISQ6cjs = require('./chunk-OIPPISQ6.cjs');
196
196
 
197
197
 
198
198
 
@@ -281,10 +281,10 @@ var _chunkNW3DL2PMcjs = require('./chunk-NW3DL2PM.cjs');
281
281
  var _chunkSHDCKRP4cjs = require('./chunk-SHDCKRP4.cjs');
282
282
 
283
283
 
284
- var _chunk3MY6TNNEcjs = require('./chunk-3MY6TNNE.cjs');
284
+ var _chunkTWFJJPE7cjs = require('./chunk-TWFJJPE7.cjs');
285
285
 
286
286
 
287
- var _chunkBQHIJOZMcjs = require('./chunk-BQHIJOZM.cjs');
287
+ var _chunkSIECKBNKcjs = require('./chunk-SIECKBNK.cjs');
288
288
 
289
289
 
290
290
  var _chunkCYOTNHDFcjs = require('./chunk-CYOTNHDF.cjs');
@@ -312,7 +312,7 @@ var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
312
312
  var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
313
313
 
314
314
 
315
- var _chunk6266WH6Xcjs = require('./chunk-6266WH6X.cjs');
315
+ var _chunkV3Y3R3JJcjs = require('./chunk-V3Y3R3JJ.cjs');
316
316
 
317
317
 
318
318
  var _chunkY3DO7BIJcjs = require('./chunk-Y3DO7BIJ.cjs');
@@ -665,7 +665,7 @@ async function compileFarmDocsManifest(docs, options) {
665
665
  isPathGuarded: options.isPathGuarded,
666
666
  basePath
667
667
  });
668
- const apiHandler = _chunkSG5RFGV6cjs.createFarmDocsAPIHandler.call(void 0, {
668
+ const apiHandler = _chunkHENPVGZCcjs.createFarmDocsAPIHandler.call(void 0, {
669
669
  rootDir: options.root,
670
670
  srcDir: options.srcDir,
671
671
  docs,
@@ -1131,7 +1131,7 @@ async function createFarmRouteRuntimeManifest(options) {
1131
1131
  const routes = [];
1132
1132
  for (const [pattern, entry] of options.routeManager.getRoutes()) {
1133
1133
  const routeModule = await options.routeManager.loadRouteModule(entry.modulePath);
1134
- const rendering = await _chunkERV422FOcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
1134
+ const rendering = await _chunkKRU3XPOWcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
1135
1135
  const runtimeConfig = await options.routeManager.resolveRouteRuntimeConfig(pattern);
1136
1136
  routes.push({
1137
1137
  kind: "page",
@@ -1745,7 +1745,7 @@ function farmStripPlatformConfigPlugin(configFiles) {
1745
1745
  // removed block used (`readFileSync` for a version, say).
1746
1746
  enforce: "pre",
1747
1747
  transform: {
1748
- filter: { id: _chunkPQ6DBVJ2cjs.fileNamePattern.call(void 0, configFiles) },
1748
+ filter: { id: _chunkKBIM7PFQcjs.fileNamePattern.call(void 0, configFiles) },
1749
1749
  async handler(code, id) {
1750
1750
  const file = id.split("?", 1)[0];
1751
1751
  if (!files.has(_path2.default.resolve(file)) && !files.has(realPath(file))) return null;
@@ -2064,7 +2064,7 @@ async function writeFarmVercelEdgeMiddlewareFunction(options) {
2064
2064
  logLevel: "silent",
2065
2065
  plugins: [edgeNodeModulesPlugin(coreDir, unsupported)],
2066
2066
  resolve: {
2067
- alias: _chunkPQ6DBVJ2cjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2067
+ alias: _chunkKBIM7PFQcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2068
2068
  conditionNames: ["edge-light", "worker", "browser", "import", "module", "default"]
2069
2069
  },
2070
2070
  transform: {
@@ -2466,7 +2466,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
2466
2466
  return {
2467
2467
  name: "farm-omitted-metadata-image-runtime",
2468
2468
  resolveId: {
2469
- filter: { id: _chunkPQ6DBVJ2cjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
2469
+ filter: { id: _chunkKBIM7PFQcjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
2470
2470
  handler(source, importer) {
2471
2471
  if (source !== "@vercel/og") return null;
2472
2472
  const fromCoreRuntime = importer !== void 0 && isFarmCoreModule(importer) && !/^og\.[cm]?[jt]sx?$/.test(_path2.default.basename(importer.split("?", 1)[0]));
@@ -2475,7 +2475,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
2475
2475
  }
2476
2476
  },
2477
2477
  load: {
2478
- filter: { id: _chunkPQ6DBVJ2cjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
2478
+ filter: { id: _chunkKBIM7PFQcjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
2479
2479
  handler(id) {
2480
2480
  if (id !== FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID) return null;
2481
2481
  return `
@@ -3095,7 +3095,7 @@ function collectFarmPrerenderedMarkdownBodies(pageRoutes) {
3095
3095
  for (const route of pageRoutes) {
3096
3096
  if (route.source === void 0 || !_chunk26WP75W5cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) continue;
3097
3097
  const { body } = _chunk26WP75W5cjs.parseMarkdownFrontmatter.call(void 0, route.source);
3098
- const rendering = _chunkERV422FOcjs.resolveRouteRenderingConfig.call(void 0,
3098
+ const rendering = _chunkKRU3XPOWcjs.resolveRouteRenderingConfig.call(void 0,
3099
3099
  _chunk26WP75W5cjs.readFarmMarkdownRouteConfig.call(void 0, body),
3100
3100
  route.source
3101
3101
  );
@@ -3139,7 +3139,7 @@ async function writeFarmVideoPlayerToClient(outputDir) {
3139
3139
  const filePath = _path2.default.join(outputDir, _chunkY3DO7BIJcjs.FARM_VIDEO_PLAYER_PATH.slice(1));
3140
3140
  await fs5.mkdir(_path2.default.dirname(filePath), { recursive: true });
3141
3141
  try {
3142
- await fs5.writeFile(filePath, _chunkPQ6DBVJ2cjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
3142
+ await fs5.writeFile(filePath, _chunkKBIM7PFQcjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
3143
3143
  } catch (error) {
3144
3144
  if (error.code !== "EEXIST") throw error;
3145
3145
  }
@@ -3173,7 +3173,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
3173
3173
  }
3174
3174
  const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
3175
3175
  await fs5.writeFile(fontCssPath, normalizedFontCss);
3176
- await fs5.writeFile(clientCssPath, _chunkPQ6DBVJ2cjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
3176
+ await fs5.writeFile(clientCssPath, _chunkKBIM7PFQcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
3177
3177
  }
3178
3178
  function importsFarmClientBlockedPackage(id, packageName) {
3179
3179
  return id === packageName || id.startsWith(`${packageName}/`);
@@ -3223,10 +3223,10 @@ async function validateClientBuildOutput(root, srcDir, outputDir) {
3223
3223
  }
3224
3224
  }
3225
3225
  function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, options = {}) {
3226
- const key = _chunkPA3VZNWUcjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
3226
+ const key = _chunkOIPPISQ6cjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
3227
3227
  let plan = cache.get(key);
3228
3228
  if (!plan) {
3229
- plan = _chunkPA3VZNWUcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
3229
+ plan = _chunkOIPPISQ6cjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
3230
3230
  cache.set(key, plan);
3231
3231
  }
3232
3232
  return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
@@ -3260,14 +3260,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3260
3260
  `[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
3261
3261
  );
3262
3262
  }
3263
- const isolatedMode = _chunkPA3VZNWUcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
3263
+ const isolatedMode = _chunkOIPPISQ6cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
3264
3264
  _optionalChain([config, 'access', _98 => _98.experimental, 'optionalAccess', _99 => _99.isolatedClientHydration]),
3265
3265
  {
3266
3266
  serverComponents: _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _100 => _100.experimental, 'optionalAccess', _101 => _101.serverComponents])) === "rsc",
3267
3267
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
3268
3268
  }
3269
3269
  );
3270
- const planOptions = _chunkPA3VZNWUcjs.getFarmClientHydrationPlanOptions.call(void 0,
3270
+ const planOptions = _chunkOIPPISQ6cjs.getFarmClientHydrationPlanOptions.call(void 0,
3271
3271
  config.renderer,
3272
3272
  Boolean(unsupportedIntegrationProvider)
3273
3273
  );
@@ -3292,7 +3292,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3292
3292
  );
3293
3293
  const syntheticDocsEntry = _optionalChain([config, 'access', _108 => _108.docs, 'optionalAccess', _109 => _109.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
3294
3294
  const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
3295
- const plan = (operation) => sourceSnapshot ? _chunkPA3VZNWUcjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkPA3VZNWUcjs.withFarmSourceSnapshot.call(void 0, operation);
3295
+ const plan = (operation) => sourceSnapshot ? _chunkOIPPISQ6cjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkOIPPISQ6cjs.withFarmSourceSnapshot.call(void 0, operation);
3296
3296
  const { clientLayouts, clientRouteSlots } = plan(() => {
3297
3297
  const clientLayouts2 = layoutRoutes.map((layout) => {
3298
3298
  try {
@@ -3339,7 +3339,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3339
3339
  };
3340
3340
  }
3341
3341
  });
3342
- const markdownPagePlan = _chunkPA3VZNWUcjs.createMarkdownPageHydrationPlanner.call(void 0,
3342
+ const markdownPagePlan = _chunkOIPPISQ6cjs.createMarkdownPageHydrationPlanner.call(void 0,
3343
3343
  _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), root),
3344
3344
  root,
3345
3345
  isolatedMode,
@@ -3355,7 +3355,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3355
3355
  pagePlanOptions
3356
3356
  )
3357
3357
  }));
3358
- _chunkPA3VZNWUcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
3358
+ _chunkOIPPISQ6cjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
3359
3359
  clientLayouts2.map((layout) => ({
3360
3360
  pattern: layout.pattern,
3361
3361
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -3389,7 +3389,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3389
3389
  const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || docsEntries.some((docsEntry) => layoutAppliesToRoute(layout.pattern, docsEntry));
3390
3390
  if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
3391
3391
  _chunk7U4XF76Rcjs.logger.warn(
3392
- `\u26A0\uFE0F ${_chunkPA3VZNWUcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
3392
+ `\u26A0\uFE0F ${_chunkOIPPISQ6cjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
3393
3393
  );
3394
3394
  }
3395
3395
  }
@@ -3424,7 +3424,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3424
3424
  );
3425
3425
  if (metadata.suppressedAsyncHydration) {
3426
3426
  _chunk7U4XF76Rcjs.logger.warn(
3427
- `\u26A0\uFE0F ${_chunkPA3VZNWUcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
3427
+ `\u26A0\uFE0F ${_chunkOIPPISQ6cjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
3428
3428
  );
3429
3429
  }
3430
3430
  const slotBoundaries = serverSlotPlans.filter(
@@ -3432,7 +3432,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3432
3432
  ).flatMap(({ plan: plan2 }) => plan2.isolatedBoundaries);
3433
3433
  if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0 || slotBoundaries.length > 0) {
3434
3434
  const relativePath = route.modulePath.replace(root, "").replace(/^\//, "");
3435
- const islandStrategy = _chunkPQ6DBVJ2cjs.resolveFarmRouteRootStrategy.call(void 0,
3435
+ const islandStrategy = _chunkKBIM7PFQcjs.resolveFarmRouteRootStrategy.call(void 0,
3436
3436
  route,
3437
3437
  metadata,
3438
3438
  clientLayouts2,
@@ -3451,7 +3451,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3451
3451
  ...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries || layout.serverTreeLayout).flatMap((layout) => layout.isolatedBoundaries)
3452
3452
  ],
3453
3453
  // The server renders a server tree only below a hydrating layout.
3454
- ..._chunkPA3VZNWUcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
3454
+ ..._chunkOIPPISQ6cjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
3455
3455
  });
3456
3456
  _chunk7U4XF76Rcjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
3457
3457
  }
@@ -3488,7 +3488,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3488
3488
  }
3489
3489
  const clientRouteSlots2 = routeSlots.filter((slot) => {
3490
3490
  try {
3491
- const metadata = _chunkPA3VZNWUcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
3491
+ const metadata = _chunkOIPPISQ6cjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
3492
3492
  return metadata.shouldHydrate && (!islandsMode || metadata.isClientComponent);
3493
3493
  } catch (error) {
3494
3494
  _chunk7U4XF76Rcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
@@ -3541,11 +3541,11 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3541
3541
  config.trailingSlash,
3542
3542
  _chunkB3HQTGXScjs.getIntegrationProviders.call(void 0, config.integrations),
3543
3543
  config.basePath,
3544
- _chunkPQ6DBVJ2cjs.generateClientCachePersistenceCode.call(void 0, _chunkPQ6DBVJ2cjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
3544
+ _chunkKBIM7PFQcjs.generateClientCachePersistenceCode.call(void 0, _chunkKBIM7PFQcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
3545
3545
  adapterOwnsDocsRuntime ? _chunkXJDB564Acjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
3546
3546
  _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _112 => _112.experimental, 'optionalAccess', _113 => _113.serverComponents])) === "islands",
3547
3547
  platform,
3548
- islandsMode ? _chunkPA3VZNWUcjs.collectFarmServerStylesheets.call(void 0,
3548
+ islandsMode ? _chunkOIPPISQ6cjs.collectFarmServerStylesheets.call(void 0,
3549
3549
  [
3550
3550
  ...layoutRoutes.map((layout) => layout.modulePath),
3551
3551
  ...pageRoutes.filter((route) => !isAdapterDocsRoute(route.pattern)).map((route) => route.modulePath)
@@ -3569,7 +3569,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3569
3569
  await fs5.writeFile(_path2.default.join(clientEntryDir, "farm-client-root.tsx"), clientEntry.root);
3570
3570
  }
3571
3571
  const clientInput = { [entryName]: clientEntryPath };
3572
- if (platform === "web" && _chunkPQ6DBVJ2cjs.canBootFarmIslandsClient.call(void 0, config)) {
3572
+ if (platform === "web" && _chunkKBIM7PFQcjs.canBootFarmIslandsClient.call(void 0, config)) {
3573
3573
  const clientBootPath = _path2.default.join(clientEntryDir, "farm-client-boot.tsx");
3574
3574
  await fs5.writeFile(
3575
3575
  clientBootPath,
@@ -3644,7 +3644,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3644
3644
  }
3645
3645
  },
3646
3646
  plugins: [
3647
- _chunkPQ6DBVJ2cjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
3647
+ _chunkKBIM7PFQcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
3648
3648
  createFarmPrivateClientSourcemapsPlugin({
3649
3649
  outDir: _path2.default.join(
3650
3650
  _path2.default.dirname(outputDir),
@@ -3698,7 +3698,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3698
3698
  ...islandsMode && _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, config.renderer) ? [createFarmIslandsReactChunkPlugin()] : [],
3699
3699
  farmServerOnlyEntriesPlugin({ platform, distDir: config.distDir || ".farm" }),
3700
3700
  farmNavigationPlugin(config.renderer),
3701
- _chunkPQ6DBVJ2cjs.farmDocsClientConfigPlugin.call(void 0,
3701
+ _chunkKBIM7PFQcjs.farmDocsClientConfigPlugin.call(void 0,
3702
3702
  adapterOwnsDocsRuntime ? _chunkXJDB564Acjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
3703
3703
  ),
3704
3704
  // Plugin to redirect @farm.js/core imports to client-only exports
@@ -3731,7 +3731,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3731
3731
  },
3732
3732
  load: {
3733
3733
  filter: {
3734
- id: _chunkPQ6DBVJ2cjs.exactIdPattern.call(void 0, [
3734
+ id: _chunkKBIM7PFQcjs.exactIdPattern.call(void 0, [
3735
3735
  "\0empty-module",
3736
3736
  "\0empty-api-route",
3737
3737
  "\0farm-i18n-client-bridge",
@@ -3769,7 +3769,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3769
3769
  { ...config, isolatedClientBoundaryModules, programmaticClientRoutes, sourceSnapshot },
3770
3770
  pluginManager
3771
3771
  ),
3772
- _chunkPA3VZNWUcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
3772
+ _chunkOIPPISQ6cjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
3773
3773
  ],
3774
3774
  mode: "production",
3775
3775
  css: postcssSearchPath ? {
@@ -3777,7 +3777,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3777
3777
  } : void 0,
3778
3778
  // Ensure React is bundled for client
3779
3779
  resolve: {
3780
- alias: _chunkPQ6DBVJ2cjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
3780
+ alias: _chunkKBIM7PFQcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
3781
3781
  dedupe: [...config.renderer.dedupe || []]
3782
3782
  },
3783
3783
  // Optimize dependencies - exclude server-side code from client bundle
@@ -3791,7 +3791,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3791
3791
  }
3792
3792
  };
3793
3793
  await viteBuild(
3794
- _chunkPQ6DBVJ2cjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
3794
+ _chunkKBIM7PFQcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
3795
3795
  );
3796
3796
  if (platform === "mobile") {
3797
3797
  await fs5.rm(_path2.default.join(outputDir, `${entryName}.css`), { force: true });
@@ -3885,9 +3885,9 @@ async function fetchFarmNavigationDocument(url, headers, recover = true, signal)
3885
3885
  return response;
3886
3886
  }
3887
3887
 
3888
- ${streamNavigations ? `${_chunkPQ6DBVJ2cjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
3888
+ ${streamNavigations ? `${_chunkKBIM7PFQcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
3889
3889
 
3890
- ${_chunkPQ6DBVJ2cjs.FARM_EARLY_NAVIGATION_SOURCE}` : ""}
3890
+ ${_chunkKBIM7PFQcjs.FARM_EARLY_NAVIGATION_SOURCE}` : ""}
3891
3891
 
3892
3892
  function clearFarmPrefetchCacheOnDeploymentMismatch(router, error) {
3893
3893
  if (error?.name === "FarmDeploymentMismatchError") {
@@ -5222,7 +5222,7 @@ import { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};
5222
5222
  const React = { ...__farmRendererClient };`
5223
5223
  );
5224
5224
  const hydrateFarmRouteCall = _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) ? "return hydrateRoot(container, route.element);" : "return route.layouts.length > 0 ? hydrateRoot(container, route.element, route) : hydrateRoot(container, route.element);";
5225
- const providerClientCode = _chunkPQ6DBVJ2cjs.generateFarmIntegrationProviderClientCode.call(void 0,
5225
+ const providerClientCode = _chunkKBIM7PFQcjs.generateFarmIntegrationProviderClientCode.call(void 0,
5226
5226
  integrationProviders,
5227
5227
  root,
5228
5228
  _nullishCoalesce(renderer.componentExtensions, () => ( []))
@@ -5356,7 +5356,7 @@ mountFarmDocsSearch();
5356
5356
 
5357
5357
  ${generateUniversalRouterStateRuntime()}
5358
5358
 
5359
- ${_chunkPQ6DBVJ2cjs.FARM_NAVIGATION_SCRIPT_SOURCE}
5359
+ ${_chunkKBIM7PFQcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
5360
5360
 
5361
5361
  // SPA Router for server-rendered pages (HTML swap)
5362
5362
  const spaRouter = {
@@ -5898,7 +5898,7 @@ ${layoutRegistrations.join(",\n")}
5898
5898
  ${generateFarmClientRouteMatchSource({ lazyMatcher })}
5899
5899
 
5900
5900
  ${layoutComponentsRuntime}/*farm-root-start*/
5901
- ${_chunkPQ6DBVJ2cjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
5901
+ ${_chunkKBIM7PFQcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
5902
5902
  // Wrap a page element with applicable layouts
5903
5903
  function wrapWithLayouts(pageElement, pathname, params) {
5904
5904
  const layouts = getApplicableLayouts(pathname);
@@ -5933,7 +5933,7 @@ function createLayoutPageBoundary(route, pageElement, serverHtml) {
5933
5933
  return React.createElement("div", props, pageElement);
5934
5934
  }
5935
5935
  let farmLastRouteState = null;
5936
- ${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkPQ6DBVJ2cjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
5936
+ ${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkKBIM7PFQcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
5937
5937
  function farmTreeLayoutsOf(pathname) {
5938
5938
  return getApplicableLayouts(pathname).filter(function(layout) {
5939
5939
  return layout.serverTree === true;
@@ -6567,7 +6567,7 @@ function fitsSegmentResponse(currentRoot, nextRoot) {
6567
6567
  return true;
6568
6568
  }` : ""}
6569
6569
 
6570
- ${_chunkPQ6DBVJ2cjs.FARM_NAVIGATION_SCRIPT_SOURCE}
6570
+ ${_chunkKBIM7PFQcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
6571
6571
 
6572
6572
  function activateNavigationScripts(root) {
6573
6573
  for (const script of Array.from(root?.querySelectorAll?.("script") || [])) {
@@ -6673,7 +6673,7 @@ function getLayoutShell(root, patterns, index) {
6673
6673
  return shell.innerHTML;
6674
6674
  }
6675
6675
 
6676
- ${islandValues ? _chunkPQ6DBVJ2cjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
6676
+ ${islandValues ? _chunkKBIM7PFQcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
6677
6677
  // A refresh keeps the islands still on the page: the ones in streamed Suspense content too.
6678
6678
  if (refresh) revealFarmStreamedContent(nextRoot);
6679
6679
  const currentPatterns = getLayoutPatterns(currentRoot);
@@ -7457,7 +7457,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7457
7457
  const appDirs = _chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, config);
7458
7458
  let openAPIReference = null;
7459
7459
  if (config.openapi.enabled && config.openapi.route) {
7460
- const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-D4DZRBRS.cjs");
7460
+ const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-37UJPUN4.cjs");
7461
7461
  const openAPIManager = new OpenAPIManager(appDirs, config.openapi, {
7462
7462
  mode: "production",
7463
7463
  apiBaseURL: config.api.baseURL,
@@ -7482,7 +7482,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7482
7482
  }))
7483
7483
  );
7484
7484
  const instrumentationPath = _chunk3BTN3NP7cjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
7485
- const notFoundPath = _chunkPQ6DBVJ2cjs.resolveFarmNotFoundComponentPath.call(void 0,
7485
+ const notFoundPath = _chunkKBIM7PFQcjs.resolveFarmNotFoundComponentPath.call(void 0,
7486
7486
  config,
7487
7487
  appDirs,
7488
7488
  routeManager.getRendererNotFoundPath()
@@ -7509,7 +7509,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7509
7509
  const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
7510
7510
  const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _131 => _131.mdx, 'optionalAccess', _132 => _132.components]));
7511
7511
  const hasMiddlewareConfig = _chunk4ZVKDHS6cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
7512
- const hasRouteContextConfig = _chunkIRPXOTENcjs.hasCustomFarmRouteContext.call(void 0, config);
7512
+ const hasRouteContextConfig = _chunkFLKG2PYHcjs.hasCustomFarmRouteContext.call(void 0, config);
7513
7513
  const hasServerRuntimePlugins = _chunkDMSXZNQRcjs.hasFarmServerRuntimePlugins.call(void 0, config.plugins);
7514
7514
  const hasPluginRoutes = hasFarmPluginRoutes(config);
7515
7515
  const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
@@ -7521,7 +7521,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7521
7521
  );
7522
7522
  if (_chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
7523
7523
  const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
7524
- _chunkSG5RFGV6cjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
7524
+ _chunkHENPVGZCcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
7525
7525
  config.docs,
7526
7526
  { root, srcDir: config.srcDir },
7527
7527
  (pathname) => adapterGuardedPaths.has(pathname),
@@ -7531,7 +7531,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7531
7531
  const farmDocsCspNonceMarker = _chunk6JHZPB52cjs.createFarmCspNonce.call(void 0, config.security);
7532
7532
  const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _133 => _133.docs, 'optionalAccess', _134 => _134.enabled]) && _chunkNLBHLPEOcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunk2RSVYJT6cjs._runWithFarmCspNonce.call(void 0,
7533
7533
  farmDocsCspNonceMarker,
7534
- async () => _optionalChain([config, 'access', _135 => _135.docs, 'access', _136 => _136.adapter, 'optionalAccess', _137 => _137.server]) ? await _chunkSG5RFGV6cjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
7534
+ async () => _optionalChain([config, 'access', _135 => _135.docs, 'access', _136 => _136.adapter, 'optionalAccess', _137 => _137.server]) ? await _chunkHENPVGZCcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
7535
7535
  root,
7536
7536
  srcDir: config.srcDir,
7537
7537
  clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
@@ -7698,7 +7698,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7698
7698
  __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _143 => _143.env, 'optionalAccess', _144 => _144.public]) || {})
7699
7699
  },
7700
7700
  plugins: [
7701
- _chunkPQ6DBVJ2cjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
7701
+ _chunkKBIM7PFQcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
7702
7702
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
7703
7703
  ...rendererVitePlugins,
7704
7704
  ...config.vite.plugins || [],
@@ -7730,7 +7730,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7730
7730
  },
7731
7731
  pluginManager
7732
7732
  ),
7733
- _chunkPA3VZNWUcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
7733
+ _chunkOIPPISQ6cjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
7734
7734
  ...hasRuntimeConfigModule ? [
7735
7735
  farmStripPlatformConfigPlugin(
7736
7736
  [
@@ -7742,7 +7742,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7742
7742
  {
7743
7743
  name: "farm-virtual-ssr-entry",
7744
7744
  resolveId: {
7745
- filter: { id: _chunkPQ6DBVJ2cjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
7745
+ filter: { id: _chunkKBIM7PFQcjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
7746
7746
  handler(id) {
7747
7747
  if (id === virtualEntryId || id === "\0virtual:farm-ssr-entry") {
7748
7748
  return virtualEntryId;
@@ -7751,7 +7751,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7751
7751
  }
7752
7752
  },
7753
7753
  load: {
7754
- filter: { id: _chunkPQ6DBVJ2cjs.exactIdPattern.call(void 0, [virtualEntryId]) },
7754
+ filter: { id: _chunkKBIM7PFQcjs.exactIdPattern.call(void 0, [virtualEntryId]) },
7755
7755
  handler(id) {
7756
7756
  if (id === virtualEntryId) {
7757
7757
  return virtualEntryCode;
@@ -7763,7 +7763,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7763
7763
  {
7764
7764
  name: "capture-ssr-bundle",
7765
7765
  configResolved(config2) {
7766
- polyroute = _chunkBQHIJOZMcjs.hasPolyroutePlugin.call(void 0, config2.plugins);
7766
+ polyroute = _chunkSIECKBNKcjs.hasPolyroutePlugin.call(void 0, config2.plugins);
7767
7767
  },
7768
7768
  enforce: "post",
7769
7769
  generateBundle: {
@@ -7791,7 +7791,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7791
7791
  resolve: {
7792
7792
  alias: [
7793
7793
  ...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
7794
- ...Object.entries(_chunkPQ6DBVJ2cjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
7794
+ ...Object.entries(_chunkKBIM7PFQcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
7795
7795
  ([find, replacement]) => ({ find, replacement })
7796
7796
  )
7797
7797
  ],
@@ -7799,7 +7799,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7799
7799
  dedupe: [...config.renderer.dedupe || []]
7800
7800
  }
7801
7801
  };
7802
- await viteBuild(_chunkPQ6DBVJ2cjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
7802
+ await viteBuild(_chunkKBIM7PFQcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
7803
7803
  } finally {
7804
7804
  if (postcssConfigDir) {
7805
7805
  try {
@@ -8250,8 +8250,8 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
8250
8250
  );
8251
8251
  const searchPreserveRoutesSource = searchPreserveRoutes.length > 0 ? JSON.stringify(searchPreserveRoutes) : "";
8252
8252
  const farmIslandsMode = _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _161 => _161.experimental, 'optionalAccess', _162 => _162.serverComponents])) === "islands";
8253
- const farmRendererActions = _chunkPQ6DBVJ2cjs.resolveFarmIslxActionsMode.call(void 0, config) === "renderer";
8254
- const farmClientBoot = _chunkPQ6DBVJ2cjs.canBootFarmIslandsClient.call(void 0, config);
8253
+ const farmRendererActions = _chunkKBIM7PFQcjs.resolveFarmIslxActionsMode.call(void 0, config) === "renderer";
8254
+ const farmClientBoot = _chunkKBIM7PFQcjs.canBootFarmIslandsClient.call(void 0, config);
8255
8255
  const farmMobileClient = shouldBuildFarmMobileClient(config);
8256
8256
  const farmMobileShells = farmMobileClient && config.mobileShells ? config.mobileShells : null;
8257
8257
  const hasCompressionRuntime = config.compress && _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) !== "edge";
@@ -8265,7 +8265,7 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
8265
8265
  const servesAiCatalog = _optionalChain([config, 'access', _171 => _171.agent, 'optionalAccess', _172 => _172.aiCatalog]) !== false;
8266
8266
  const hasPluginRuntime = hasRuntimeIntegrationConfig || hasServerRuntimePlugins;
8267
8267
  const hasInfraAnalyticsRuntime = config.analytics !== false && _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) === "nodejs";
8268
- const reportsWebMCPCalls = hasInfraAnalyticsRuntime && _chunkFEWCWBOFcjs._farmWebMCPReportsEnabled.call(void 0, config.plugins);
8268
+ const reportsWebMCPCalls = hasInfraAnalyticsRuntime && _chunk27ESPHQAcjs._farmWebMCPReportsEnabled.call(void 0, config.plugins);
8269
8269
  const hasPrecompiledDocs = Boolean(farmDocsPrecompiledManifest);
8270
8270
  const adapterOwnsDocsRuntime = _chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs);
8271
8271
  if (_optionalChain([config, 'access', _173 => _173.docs, 'optionalAccess', _174 => _174.enabled]) && _optionalChain([config, 'access', _175 => _175.docs, 'access', _176 => _176.roots, 'optionalAccess', _177 => _177.length]) && !adapterOwnsDocsRuntime) {
@@ -8351,7 +8351,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8351
8351
  `Integration provider components are not supported by the "${config.renderer.name}" renderer.`
8352
8352
  );
8353
8353
  }
8354
- const providerServerModules = _chunkPQ6DBVJ2cjs.generateFarmIntegrationProviderServerModules.call(void 0,
8354
+ const providerServerModules = _chunkKBIM7PFQcjs.generateFarmIntegrationProviderServerModules.call(void 0,
8355
8355
  renderedIntegrationProviders,
8356
8356
  config.root,
8357
8357
  _nullishCoalesce(config.renderer.componentExtensions, () => ( []))
@@ -8371,14 +8371,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8371
8371
  const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
8372
8372
  (provider) => provider.supportsIsolatedHydration !== true
8373
8373
  );
8374
- const isolatedHydrationMode = _chunkPA3VZNWUcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
8374
+ const isolatedHydrationMode = _chunkOIPPISQ6cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
8375
8375
  _optionalChain([config, 'access', _182 => _182.experimental, 'optionalAccess', _183 => _183.isolatedClientHydration]),
8376
8376
  {
8377
8377
  serverComponents: _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _184 => _184.experimental, 'optionalAccess', _185 => _185.serverComponents])) === "rsc",
8378
8378
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
8379
8379
  }
8380
8380
  );
8381
- const hydrationPlanOptions = _chunkPA3VZNWUcjs.getFarmClientHydrationPlanOptions.call(void 0,
8381
+ const hydrationPlanOptions = _chunkOIPPISQ6cjs.getFarmClientHydrationPlanOptions.call(void 0,
8382
8382
  config.renderer,
8383
8383
  Boolean(unsupportedIntegrationProvider)
8384
8384
  );
@@ -8386,7 +8386,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8386
8386
  ...hydrationPlanOptions,
8387
8387
  serverOwners: _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _186 => _186.experimental, 'optionalAccess', _187 => _187.serverComponents])) === "islands"
8388
8388
  };
8389
- const { layoutHydrationPlans, pageHydrationPlans } = _chunkPA3VZNWUcjs.withFarmSourceSnapshot.call(void 0, () => {
8389
+ const { layoutHydrationPlans, pageHydrationPlans } = _chunkOIPPISQ6cjs.withFarmSourceSnapshot.call(void 0, () => {
8390
8390
  const layoutHydrationPlans2 = layoutRoutes.map((layout) => ({
8391
8391
  ...layout,
8392
8392
  hydration: getCachedClientModuleHydrationPlan(
@@ -8397,7 +8397,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8397
8397
  { ...hydrationPlanOptions, serverTreeLayouts: pageHydrationPlanOptions.serverOwners }
8398
8398
  )
8399
8399
  }));
8400
- const markdownPagePlan = _chunkPA3VZNWUcjs.createMarkdownPageHydrationPlanner.call(void 0,
8400
+ const markdownPagePlan = _chunkOIPPISQ6cjs.createMarkdownPageHydrationPlanner.call(void 0,
8401
8401
  _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
8402
8402
  config.root,
8403
8403
  isolatedHydrationMode,
@@ -8417,7 +8417,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8417
8417
  );
8418
8418
  return { layoutHydrationPlans: layoutHydrationPlans2, pageHydrationPlans: pageHydrationPlans2 };
8419
8419
  });
8420
- _chunkPA3VZNWUcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
8420
+ _chunkOIPPISQ6cjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
8421
8421
  layoutHydrationPlans.map((layout) => ({
8422
8422
  pattern: layout.pattern,
8423
8423
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -8461,8 +8461,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8461
8461
  orderedPageRoutes.forEach((route, index) => {
8462
8462
  const varName = `pageRoute${index}`;
8463
8463
  if (_chunk26WP75W5cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
8464
- const renderingDirective2 = _chunkERV422FOcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8465
- const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkPA3VZNWUcjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
8464
+ const renderingDirective2 = _chunkKRU3XPOWcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8465
+ const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkOIPPISQ6cjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
8466
8466
  pageRegistrations.push(`
8467
8467
  {
8468
8468
  pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
@@ -8470,14 +8470,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8470
8470
  rendering: ${JSON.stringify(renderingDirective2)},` : ""}${markdownServerTree ? "\n serverTree: true," : ""}
8471
8471
  module: createFarmMarkdownRouteModule({
8472
8472
  source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
8473
- filePath: ${JSON.stringify(_chunkPQ6DBVJ2cjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
8473
+ filePath: ${JSON.stringify(_chunkKBIM7PFQcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
8474
8474
  components: farmMdxComponents,
8475
8475
  config: farmMdxConfig,${_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, config.renderer) ? "" : "\n renderer: React,"}
8476
8476
  }),
8477
8477
  markdownSource: {
8478
8478
  source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
8479
8479
  filePath: ${JSON.stringify(
8480
- _chunkPQ6DBVJ2cjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
8480
+ _chunkKBIM7PFQcjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
8481
8481
  )},
8482
8482
  },
8483
8483
  }`);
@@ -8487,7 +8487,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8487
8487
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(route.modulePath)};`
8488
8488
  );
8489
8489
  const clientMetadata = pageHydrationPlans.get(route.modulePath);
8490
- const renderingDirective = _chunkERV422FOcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8490
+ const renderingDirective = _chunkKRU3XPOWcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8491
8491
  pageRegistrations.push(`
8492
8492
  {
8493
8493
  pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
@@ -8495,8 +8495,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8495
8495
  module: ${varName},
8496
8496
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
8497
8497
  clientModule: ${JSON.stringify(_chunk7U4XF76Rcjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
8498
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkPA3VZNWUcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
8499
- const rootStrategy = _chunkPQ6DBVJ2cjs.resolveFarmRouteRootStrategy.call(void 0,
8498
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkOIPPISQ6cjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
8499
+ const rootStrategy = _chunkKBIM7PFQcjs.resolveFarmRouteRootStrategy.call(void 0,
8500
8500
  route,
8501
8501
  clientMetadata,
8502
8502
  layoutHydrationPlans.map((layout) => ({ ...layout, ...layout.hydration })),
@@ -8509,7 +8509,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8509
8509
  rendering: ${JSON.stringify(renderingDirective)},` : ""}
8510
8510
  ${route.source !== void 0 ? `markdownSource: {
8511
8511
  source: ${JSON.stringify(route.source)},
8512
- filePath: ${JSON.stringify(_chunkPQ6DBVJ2cjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
8512
+ filePath: ${JSON.stringify(_chunkKBIM7PFQcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
8513
8513
  },` : ""}
8514
8514
  }`);
8515
8515
  });
@@ -8533,7 +8533,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8533
8533
  pattern: ${JSON.stringify(layout.pattern)},
8534
8534
  module: ${varName},
8535
8535
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},
8536
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkPQ6DBVJ2cjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
8536
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkKBIM7PFQcjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
8537
8537
  // isolatedClientHydration, or an async layout): it wraps a docs page as an app page.
8538
8538
  clientMetadata.hasIsolatedClientBoundaries ? "\n islands: true," : ""}
8539
8539
  }`);
@@ -8561,7 +8561,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8561
8561
  containerId: ${JSON.stringify(slot.containerId)},
8562
8562
  interception: ${JSON.stringify(slot.interception)},
8563
8563
  fallback: ${JSON.stringify(slot.fallback)},
8564
- hydrates: ${!farmIslandsMode || _chunkPA3VZNWUcjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
8564
+ hydrates: ${!farmIslandsMode || _chunkOIPPISQ6cjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
8565
8565
  module: ${varName},
8566
8566
  }`);
8567
8567
  });
@@ -8607,7 +8607,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8607
8607
  metadataImageImports.push(
8608
8608
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(image.modulePath)};`
8609
8609
  );
8610
- const component = !_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, config.renderer) && _chunkPQ6DBVJ2cjs.isRendererCompiledComponent.call(void 0, image.modulePath, _nullishCoalesce(_optionalChain([config, 'access', _191 => _191.renderer, 'optionalAccess', _192 => _192.componentExtensions]), () => ( [])));
8610
+ const component = !_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, config.renderer) && _chunkKBIM7PFQcjs.isRendererCompiledComponent.call(void 0, image.modulePath, _nullishCoalesce(_optionalChain([config, 'access', _191 => _191.renderer, 'optionalAccess', _192 => _192.componentExtensions]), () => ( [])));
8611
8611
  metadataImageRegistrations.push(`
8612
8612
  {
8613
8613
  pattern: ${JSON.stringify(image.pattern)},
@@ -8881,10 +8881,10 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
8881
8881
  );
8882
8882
  const nativeServerFns = (config.plugins || []).some(
8883
8883
  (plugin) => _optionalChain([plugin, 'optionalAccess', _212 => _212.name]) === _chunk4EBC7EMWcjs.FARM_NATIVE_SERVER_FN_PLUGIN
8884
- ) ? _chunkXRYLMTYFcjs.collectFarmNativeServerFns.call(void 0, {
8884
+ ) ? _chunkZPQY7O64cjs.collectFarmNativeServerFns.call(void 0, {
8885
8885
  root: config.root,
8886
8886
  srcDir: config.srcDir,
8887
- entries: _chunkXRYLMTYFcjs.findFarmNativeScreenFiles.call(void 0, _chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, config))
8887
+ entries: _chunkZPQY7O64cjs.findFarmNativeScreenFiles.call(void 0, _chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, config))
8888
8888
  }) : void 0;
8889
8889
  const integrationImports = `
8890
8890
  ${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
@@ -8899,7 +8899,7 @@ ${nativeServerFns ? `const __farmNativeServerFnRegistry = Object.assign(Object.c
8899
8899
  ${nativeServerFns.flatMap((module, index) => module.exports.map((entry) => ` ${JSON.stringify(entry.id)}: __farmNativeServerFns${index}[${JSON.stringify(entry.name)}],`)).join("\n")}
8900
8900
  });` : ""}
8901
8901
  `;
8902
- const imageRuntime = _chunkPQ6DBVJ2cjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
8902
+ const imageRuntime = _chunkKBIM7PFQcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
8903
8903
  const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
8904
8904
  const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
8905
8905
  const apiHandlerCode = apiRoutes.length > 0 ? `
@@ -9081,7 +9081,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
9081
9081
 
9082
9082
  function renderFarmDefault404Page() {
9083
9083
  return React.createElement(React.Fragment, null,
9084
- React.createElement("style", null, ${JSON.stringify(_chunkPQ6DBVJ2cjs.DEFAULT_NOT_FOUND_STYLES)}),
9084
+ React.createElement("style", null, ${JSON.stringify(_chunkKBIM7PFQcjs.DEFAULT_NOT_FOUND_STYLES)}),
9085
9085
  React.createElement("main", {
9086
9086
  className: "farm-default-not-found",
9087
9087
  "aria-labelledby": "farm-default-not-found-title",
@@ -9254,7 +9254,7 @@ ${_optionalChain([config, 'access', _222 => _222.agent, 'optionalAccess', _223 =
9254
9254
  // to the build.
9255
9255
  const farmNoindexPreview = resolveFarmPreviewDeployment(
9256
9256
  globalThis.process?.env,
9257
- ${JSON.stringify(_chunkCNGGEHXYcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
9257
+ ${JSON.stringify(_chunkFJGA3XWLcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
9258
9258
  );` : ""}
9259
9259
  const farmMdxComponents = ${mdxComponentsPath ? `(FarmMdxComponentsModule.components || Reflect.get(FarmMdxComponentsModule, "default") || {})` : `(configuredFarmMdxComponents && typeof configuredFarmMdxComponents === "object" ? configuredFarmMdxComponents : {})`};
9260
9260
  const farmObservabilityConfig = farmUserConfig?.observability ?? ${JSON.stringify(
@@ -9390,7 +9390,7 @@ const farmDocsAppRenderer = ${_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, con
9390
9390
  registerMCPServer: registerFarmMCPServer,
9391
9391
  // A page built with this keeps its HTML string, so the preload budget and the response
9392
9392
  // writer use it instead of reading and re-encoding the body. Older adapters ignore it.
9393
- createHtmlResponse: farmOwnedHtmlResponse,${_chunkSG5RFGV6cjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
9393
+ createHtmlResponse: farmOwnedHtmlResponse,${_chunkHENPVGZCcjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
9394
9394
  // The adapter keeps pages a path guard covers off search, llms.txt, the sitemap and MCP. It
9395
9395
  // asks about any path its own content lists, so the guards decide here, not a page list.
9396
9396
  isPathGuarded: (pathname) =>
@@ -9451,12 +9451,12 @@ const farmDeploymentCookiePath = ${JSON.stringify(config.basePath || "/")};
9451
9451
  // runtime request.
9452
9452
  const farmRuntimeErrorSlot = Symbol("farm.runtime.error.slot");
9453
9453
  const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
9454
- ${_optionalChain([config, 'access', _235 => _235.agent, 'optionalAccess', _236 => _236.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkJGUMFTZTcjs.resolveFarmApiCatalogInput.call(void 0, config))};
9454
+ ${_optionalChain([config, 'access', _235 => _235.agent, 'optionalAccess', _236 => _236.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunk6BMAGVDIcjs.resolveFarmApiCatalogInput.call(void 0, config))};
9455
9455
  ` : ""}${_optionalChain([config, 'access', _237 => _237.agent, 'optionalAccess', _238 => _238.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
9456
- _chunkJGUMFTZTcjs.resolveFarmAppManifestInput.call(void 0, config, {
9456
+ _chunk6BMAGVDIcjs.resolveFarmAppManifestInput.call(void 0, config, {
9457
9457
  build: config.deploymentId,
9458
- packages: _chunkPQ6DBVJ2cjs.resolveFarmAppPackages.call(void 0, config.root),
9459
- webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkPQ6DBVJ2cjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
9458
+ packages: _chunkKBIM7PFQcjs.resolveFarmAppPackages.call(void 0, config.root),
9459
+ webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkKBIM7PFQcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
9460
9460
  })
9461
9461
  )};
9462
9462
  ${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
@@ -10964,7 +10964,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
10964
10964
  // aside for a page route that answers /mcp and for any MCP server published or
10965
10965
  // registered at runtime, such as the docs engine's.
10966
10966
  const farmDefaultMCPServer = ${JSON.stringify(
10967
- _chunkW53Z4WDIcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunk6266WH6Xcjs.FARM_VERSION)
10967
+ _chunkW53Z4WDIcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkV3Y3R3JJcjs.FARM_VERSION)
10968
10968
  )};
10969
10969
  let farmDefaultMCPRouteFree;
10970
10970
  function getFarmDefaultMCPServer() {
@@ -11158,7 +11158,7 @@ ${edgeMiddlewareFilePaths.length > 0 ? `
11158
11158
  // middleware guards is never prerendered. Read once: Nitro's prerender worker sets the variable.
11159
11159
  const farmEdgeMiddlewareFiles = new Set(${JSON.stringify(edgeMiddlewareFilePaths)});
11160
11160
  const farmPrerendering =
11161
- typeof process !== "undefined" && process.env?.${_chunkFEWCWBOFcjs.FARM_PRERENDER_ENV} === "1";
11161
+ typeof process !== "undefined" && process.env?.${_chunk27ESPHQAcjs.FARM_PRERENDER_ENV} === "1";
11162
11162
  ` : ""}
11163
11163
  const farmMiddlewareRunner = ${hasMiddlewareRuntime ? `createProductionMiddlewareRunner({
11164
11164
  config: farmMiddlewareConfig,
@@ -11414,7 +11414,7 @@ ${hasInfraAnalyticsRuntime ? `
11414
11414
  // endpoints, Markdown mirrors, and docs pages have no app route pattern, so they are
11415
11415
  // labeled here; route.pattern keeps meaning the matched app route for plugins.
11416
11416
  const farmBuiltInRoutePaths = new Set(${JSON.stringify(
11417
- _chunkJGUMFTZTcjs.listFarmBuiltInRoutePaths.call(void 0, {
11417
+ _chunk6BMAGVDIcjs.listFarmBuiltInRoutePaths.call(void 0, {
11418
11418
  agent: {
11419
11419
  ...config.agent,
11420
11420
  aiCatalog: servesAiCatalog,
@@ -12191,7 +12191,7 @@ ${hasServerRuntimeIntegrations ? `
12191
12191
  // agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
12192
12192
  // public manifest, the same document for every request.
12193
12193
  if (
12194
- [${JSON.stringify(_chunkJGUMFTZTcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkJGUMFTZTcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
12194
+ [${JSON.stringify(_chunk6BMAGVDIcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunk6BMAGVDIcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
12195
12195
  normalizeRuntimePath(routePathname),
12196
12196
  )
12197
12197
  ) {
@@ -12203,7 +12203,7 @@ ${hasServerRuntimeIntegrations ? `
12203
12203
  ` : ""}
12204
12204
  ${_optionalChain([config, 'access', _269 => _269.agent, 'optionalAccess', _270 => _270.apiCatalog]) ? `
12205
12205
  // agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
12206
- if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkJGUMFTZTcjs.FARM_API_CATALOG_PATH)}) {
12206
+ if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunk6BMAGVDIcjs.FARM_API_CATALOG_PATH)}) {
12207
12207
  return applyProductionMiddlewareHeaders(
12208
12208
  createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
12209
12209
  middlewareHeaders,
@@ -14035,7 +14035,7 @@ function getPhysicalPrerenderBypassReason(options) {
14035
14035
  }
14036
14036
  if (_chunk4ZVKDHS6cjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
14037
14037
  if (_chunk4ZVKDHS6cjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
14038
- if (_chunkIRPXOTENcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
14038
+ if (_chunkFLKG2PYHcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
14039
14039
  if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
14040
14040
  const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
14041
14041
  if (_optionalChain([manifestEntry, 'optionalAccess', _290 => _290.rendering]) === "dynamic") return "dynamic runtime manifest";
@@ -14071,7 +14071,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
14071
14071
  }
14072
14072
  return pages2;
14073
14073
  }
14074
- const pages = await _chunkSG5RFGV6cjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
14074
+ const pages = await _chunkHENPVGZCcjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
14075
14075
  if (!pages) {
14076
14076
  _chunk7U4XF76Rcjs.logger.warn(
14077
14077
  `The docs adapter ${JSON.stringify(config.docs.adapter.id)} does not list its pages for prerendering; upgrade it to prerender docs pages. They render on request until then.`
@@ -14085,7 +14085,7 @@ async function listFarmDocsAnalyticsPages(config, root, preset) {
14085
14085
  return [];
14086
14086
  }
14087
14087
  try {
14088
- return await _chunkSG5RFGV6cjs.listFarmDocsPagePaths.call(void 0, config.docs, {
14088
+ return await _chunkHENPVGZCcjs.listFarmDocsPagePaths.call(void 0, config.docs, {
14089
14089
  root,
14090
14090
  srcDir: config.srcDir,
14091
14091
  adapter: _chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)
@@ -14114,10 +14114,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
14114
14114
  const nitroBuilder = nitroBuilderResult.value;
14115
14115
  const isVercel = preset === "vercel";
14116
14116
  const isCloudflareWorker = preset === "cloudflare-module";
14117
- const outputDir = _chunkIRPXOTENcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
14117
+ const outputDir = _chunkFLKG2PYHcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
14118
14118
  const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
14119
14119
  const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
14120
- const imageRuntime = _chunkPQ6DBVJ2cjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
14120
+ const imageRuntime = _chunkKBIM7PFQcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
14121
14121
  const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
14122
14122
  (image) => image.sourceType === "module"
14123
14123
  );
@@ -14941,13 +14941,13 @@ function toFarmNodeResponse(request, response) {
14941
14941
  }
14942
14942
  if (prerenderRoutes.length > 0) {
14943
14943
  _chunk7U4XF76Rcjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
14944
- const previousPrerender = process.env[_chunkFEWCWBOFcjs.FARM_PRERENDER_ENV];
14945
- process.env[_chunkFEWCWBOFcjs.FARM_PRERENDER_ENV] = "1";
14944
+ const previousPrerender = process.env[_chunk27ESPHQAcjs.FARM_PRERENDER_ENV];
14945
+ process.env[_chunk27ESPHQAcjs.FARM_PRERENDER_ENV] = "1";
14946
14946
  try {
14947
14947
  await nitroBuilder.prerender(nitroInstance);
14948
14948
  } finally {
14949
- if (previousPrerender === void 0) delete process.env[_chunkFEWCWBOFcjs.FARM_PRERENDER_ENV];
14950
- else process.env[_chunkFEWCWBOFcjs.FARM_PRERENDER_ENV] = previousPrerender;
14949
+ if (previousPrerender === void 0) delete process.env[_chunk27ESPHQAcjs.FARM_PRERENDER_ENV];
14950
+ else process.env[_chunk27ESPHQAcjs.FARM_PRERENDER_ENV] = previousPrerender;
14951
14951
  }
14952
14952
  }
14953
14953
  const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs5, preset) : Promise.resolve(null);
@@ -15302,7 +15302,7 @@ async function stageSharpRuntime(config, root, distDir, fs5, preset) {
15302
15302
  try {
15303
15303
  await copyPackage("sharp", sharpRequire);
15304
15304
  if (!copiedPackages.has("sharp")) {
15305
- throw new Error(`Farm image optimization requires sharp. ${_chunkPQ6DBVJ2cjs.SHARP_INSTALL_HINT}`);
15305
+ throw new Error(`Farm image optimization requires sharp. ${_chunkKBIM7PFQcjs.SHARP_INSTALL_HINT}`);
15306
15306
  }
15307
15307
  } catch (error) {
15308
15308
  await fs5.rm(stageDir, { recursive: true, force: true });
@@ -15535,7 +15535,7 @@ async function createFarmProjectModuleSsrEnvironment() {
15535
15535
  // src/build/index.ts
15536
15536
  async function build(config, options = {}) {
15537
15537
  return _chunkNG2EZ6QScjs.withProductionNodeEnv.call(void 0,
15538
- () => _chunkPA3VZNWUcjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
15538
+ () => _chunkOIPPISQ6cjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
15539
15539
  );
15540
15540
  }
15541
15541
  function createBuildTargetBaseline(config) {
@@ -15546,7 +15546,7 @@ function createBuildTargetBaseline(config) {
15546
15546
  preset,
15547
15547
  distDir,
15548
15548
  outputDir,
15549
- outputWasDerived: outputDir === _chunkIRPXOTENcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
15549
+ outputWasDerived: outputDir === _chunkFLKG2PYHcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
15550
15550
  };
15551
15551
  }
15552
15552
  function resolveBuildTargets(config, options, baseline) {
@@ -15555,8 +15555,8 @@ function resolveBuildTargets(config, options, baseline) {
15555
15555
  const distDir = config.distDir || ".farm";
15556
15556
  const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
15557
15557
  const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
15558
- const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkIRPXOTENcjs.getDeployTargetForPreset.call(void 0, preset);
15559
- const outputDir = shouldRefreshDerivedOutput ? _chunkIRPXOTENcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
15558
+ const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkFLKG2PYHcjs.getDeployTargetForPreset.call(void 0, preset);
15559
+ const outputDir = shouldRefreshDerivedOutput ? _chunkFLKG2PYHcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
15560
15560
  return {
15561
15561
  root,
15562
15562
  preset,
@@ -15564,7 +15564,7 @@ function resolveBuildTargets(config, options, baseline) {
15564
15564
  distDir,
15565
15565
  deployTarget,
15566
15566
  outputDir,
15567
- deployOutputDir: _chunkIRPXOTENcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
15567
+ deployOutputDir: _chunkFLKG2PYHcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
15568
15568
  };
15569
15569
  }
15570
15570
  async function buildWithProductionNodeEnv(inputConfig, options) {
@@ -15601,7 +15601,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
15601
15601
  };
15602
15602
  config = {
15603
15603
  ...config,
15604
- images: _chunkPQ6DBVJ2cjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
15604
+ images: _chunkKBIM7PFQcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
15605
15605
  root: targets.root,
15606
15606
  preset: targets.preset
15607
15607
  })
@@ -15609,7 +15609,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
15609
15609
  if (_optionalChain([config, 'access', _345 => _345.docs, 'optionalAccess', _346 => _346.enabled])) await _chunkNDOE76QCcjs.loadFarmDocsEngine.call(void 0, );
15610
15610
  pluginManager.updateContext({ config });
15611
15611
  const { root, preset, srcDir, distDir, deployOutputDir } = targets;
15612
- _chunkPA3VZNWUcjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkPA3VZNWUcjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
15612
+ _chunkOIPPISQ6cjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkOIPPISQ6cjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
15613
15613
  _chunk7U4XF76Rcjs.logger.info(`\u{1F69C} Building Farm.js application with preset: ${preset}...`);
15614
15614
  await pluginManager.setupPlugins();
15615
15615
  await pluginManager.runHookParallel("beforeBundle", {
@@ -15630,12 +15630,12 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
15630
15630
  root,
15631
15631
  rendererBuild.signal
15632
15632
  );
15633
- const farmApp = _chunkPQ6DBVJ2cjs.createFarmApp.call(void 0, config, projectModuleServer);
15633
+ const farmApp = _chunkKBIM7PFQcjs.createFarmApp.call(void 0, config, projectModuleServer);
15634
15634
  if (options.universal !== false) farmApp.getRouteManager().keepBuildSourceSnapshot();
15635
15635
  await farmApp.initialize();
15636
15636
  const routeManager = farmApp.getRouteManager();
15637
15637
  const serverRenderer = farmApp.getServerRenderer();
15638
- const typeArtifacts = _chunkERV422FOcjs.generateFarmTypeArtifacts.call(void 0, {
15638
+ const typeArtifacts = _chunkKRU3XPOWcjs.generateFarmTypeArtifacts.call(void 0, {
15639
15639
  root,
15640
15640
  srcDir,
15641
15641
  layers: config.layers,
@@ -15653,7 +15653,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
15653
15653
  const message = error instanceof Error ? error.message : String(error);
15654
15654
  _chunk7U4XF76Rcjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
15655
15655
  });
15656
- const apiRouteManager = new (0, _chunk3MY6TNNEcjs.APIRouteManager)(
15656
+ const apiRouteManager = new (0, _chunkTWFJJPE7cjs.APIRouteManager)(
15657
15657
  _chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, config),
15658
15658
  projectModuleServer,
15659
15659
  {
@@ -15740,7 +15740,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
15740
15740
  ssr: true,
15741
15741
  buildLifetime
15742
15742
  });
15743
- const viteConfig = _chunkPQ6DBVJ2cjs.mergeFarmViteConfig.call(void 0,
15743
+ const viteConfig = _chunkKBIM7PFQcjs.mergeFarmViteConfig.call(void 0,
15744
15744
  {
15745
15745
  root,
15746
15746
  appType: "custom",
@@ -15752,13 +15752,13 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
15752
15752
  },
15753
15753
  plugins: [
15754
15754
  ...rendererVitePlugins,
15755
- _chunkPQ6DBVJ2cjs.farmFontImportsPlugin.call(void 0, {
15755
+ _chunkKBIM7PFQcjs.farmFontImportsPlugin.call(void 0, {
15756
15756
  root,
15757
15757
  basePath: config.basePath,
15758
15758
  publicDir: config.publicDir,
15759
- isLayoutModule: (id) => _chunkPQ6DBVJ2cjs.isFarmLayoutModule.call(void 0, id, _chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, config))
15759
+ isLayoutModule: (id) => _chunkKBIM7PFQcjs.isFarmLayoutModule.call(void 0, id, _chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, config))
15760
15760
  }),
15761
- _chunkPA3VZNWUcjs.farmEnvironmentFunctionsPlugin.call(void 0, { renderer: config.renderer }),
15761
+ _chunkOIPPISQ6cjs.farmEnvironmentFunctionsPlugin.call(void 0, { renderer: config.renderer }),
15762
15762
  // Route modules load here at build time (rendering config, prerendering): `server-only`
15763
15763
  // resolves as it does in the server build. Module-entry packages load pre-bundled, as in
15764
15764
  // `farm dev`: unbundled, lucide-react alone is ~1,750 modules through the module runner,
@@ -15774,7 +15774,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
15774
15774
  hmr: false
15775
15775
  },
15776
15776
  resolve: {
15777
- alias: _chunkPQ6DBVJ2cjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
15777
+ alias: _chunkKBIM7PFQcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
15778
15778
  dedupe: [...config.renderer.dedupe || []]
15779
15779
  },
15780
15780
  optimizeDeps: {
@@ -15852,7 +15852,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15852
15852
  farmNavigationPlugin(config.renderer),
15853
15853
  farmIslandContainersPlugin(config),
15854
15854
  farmPlugin(config, pluginManager),
15855
- _chunkPA3VZNWUcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15855
+ _chunkOIPPISQ6cjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15856
15856
  ],
15857
15857
  mode: "production"
15858
15858
  });
@@ -15886,7 +15886,7 @@ async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
15886
15886
  farmI18nClientBridgePlugin(),
15887
15887
  farmIslandContainersPlugin(config),
15888
15888
  farmPlugin(config, pluginManager),
15889
- _chunkPA3VZNWUcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15889
+ _chunkOIPPISQ6cjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15890
15890
  ],
15891
15891
  mode: "production"
15892
15892
  });
@@ -15914,7 +15914,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15914
15914
  if (pluginManager) {
15915
15915
  nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
15916
15916
  }
15917
- const outputDir = _chunkIRPXOTENcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
15917
+ const outputDir = _chunkFLKG2PYHcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
15918
15918
  const serverOutputDir = _path2.default.join(outputDir, "server");
15919
15919
  const publicOutputDir = _path2.default.join(outputDir, "public");
15920
15920
  const { mkdir, cp } = await import("fs/promises");
@@ -15985,7 +15985,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15985
15985
  root,
15986
15986
  preset,
15987
15987
  distDir,
15988
- outputDir: _chunkIRPXOTENcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
15988
+ outputDir: _chunkFLKG2PYHcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
15989
15989
  });
15990
15990
  }
15991
15991
  }