@farm.js/core 0.1.43 → 0.1.45

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 (139) hide show
  1. package/dist/{agent-mcp-3KDz4hr9.d.mts → agent-mcp-CWI-awqd.d.mts} +1 -1
  2. package/dist/{agent-mcp-6yRebHk7.d.ts → agent-mcp-EnzWYv_X.d.ts} +1 -1
  3. package/dist/agent-runtime.cjs +3 -2
  4. package/dist/agent-runtime.d.mts +1 -1
  5. package/dist/agent-runtime.d.ts +1 -1
  6. package/dist/agent-runtime.mjs +2 -1
  7. package/dist/api/route-manager.d.mts +3 -3
  8. package/dist/api/route-manager.d.ts +3 -3
  9. package/dist/api/runtime.d.mts +2 -2
  10. package/dist/api/runtime.d.ts +2 -2
  11. package/dist/api.d.mts +3 -3
  12. package/dist/api.d.ts +3 -3
  13. package/dist/{app-8Db1zR-2.d.ts → app-CAN_2Cqo.d.ts} +4 -4
  14. package/dist/{app-DlTWv4cn.d.mts → app-DG3dE8v5.d.mts} +4 -4
  15. package/dist/{app-manifest-TRzS7ZZ9.d.mts → app-manifest-8x5VjZ0L.d.mts} +1 -1
  16. package/dist/{app-manifest-cO2jkG1F.d.ts → app-manifest-DazjgQya.d.ts} +1 -1
  17. package/dist/app-markdown.d.mts +2 -2
  18. package/dist/app-markdown.d.ts +2 -2
  19. package/dist/{chunk-YBDSTNMH.cjs → chunk-2DZOABRK.cjs} +1 -1
  20. package/dist/{chunk-OYSGGV6O.mjs → chunk-2NCY6O6Q.mjs} +5 -5
  21. package/dist/{chunk-AX7S67YV.mjs → chunk-37VKVISD.mjs} +9 -173
  22. package/dist/chunk-3SAWHWDH.cjs +186 -0
  23. package/dist/{chunk-RHGK2JEN.cjs → chunk-B6XAA7V6.cjs} +18 -182
  24. package/dist/{chunk-RQYTOFQM.cjs → chunk-CW6SNEN2.cjs} +2 -2
  25. package/dist/{chunk-T7J7E63D.cjs → chunk-E22SWCXB.cjs} +2 -2
  26. package/dist/{chunk-ZYWJIPKQ.mjs → chunk-FDCV5OCT.mjs} +1 -1
  27. package/dist/{chunk-YGZH4T2X.mjs → chunk-FHQZJJQR.mjs} +1 -1
  28. package/dist/chunk-GZWHCWLB.mjs +186 -0
  29. package/dist/{chunk-JDJAPCR2.cjs → chunk-I5IO3ASU.cjs} +92 -90
  30. package/dist/{chunk-XARSG2TG.mjs → chunk-IOMVXBLZ.mjs} +1 -1
  31. package/dist/{chunk-VLXNGUKO.mjs → chunk-JVXW76I7.mjs} +1 -1
  32. package/dist/{chunk-7SCCY6SI.mjs → chunk-K5DHVEXC.mjs} +3 -3
  33. package/dist/{chunk-BKPXWRTT.cjs → chunk-KVN3YEFF.cjs} +6 -6
  34. package/dist/{chunk-LVABUXLA.cjs → chunk-LPE3ED4R.cjs} +2 -2
  35. package/dist/{chunk-NXO75WY4.mjs → chunk-OYZGFRPA.mjs} +1 -1
  36. package/dist/{chunk-RACQTC7K.cjs → chunk-SIVK2SRR.cjs} +52 -52
  37. package/dist/{chunk-GVNCWSQV.cjs → chunk-UN4B2TXC.cjs} +4 -4
  38. package/dist/{chunk-4OCEMK72.mjs → chunk-VR64PHNT.mjs} +10 -8
  39. package/dist/{chunk-4MRQ5OKQ.mjs → chunk-WWYXIECF.mjs} +1 -1
  40. package/dist/{chunk-TESO7EFU.mjs → chunk-X6YOWNDZ.mjs} +2 -2
  41. package/dist/{chunk-VIVQERJ5.cjs → chunk-YAD64RWI.cjs} +57 -57
  42. package/dist/{chunk-HUMEHX24.cjs → chunk-YN2QEMMO.cjs} +2 -2
  43. package/dist/{client-plugins-kwQuZcWq.d.ts → client-plugins-BGS0wqzc.d.ts} +16 -15
  44. package/dist/{client-plugins-Cv0OJtnM.d.mts → client-plugins-nQ0tYt4l.d.mts} +16 -15
  45. package/dist/client-plugins.d.mts +1 -1
  46. package/dist/client-plugins.d.ts +1 -1
  47. package/dist/client.d.mts +5 -5
  48. package/dist/client.d.ts +5 -5
  49. package/dist/config.d.mts +1 -1
  50. package/dist/config.d.ts +1 -1
  51. package/dist/{devtools-MLB3JJMC.cjs → devtools-5Q7VRKVH.cjs} +4 -3
  52. package/dist/{devtools-M22FEFPK.mjs → devtools-LJ4IGYGW.mjs} +3 -2
  53. package/dist/docs.cjs +5 -4
  54. package/dist/docs.d.mts +2 -2
  55. package/dist/docs.d.ts +2 -2
  56. package/dist/docs.mjs +4 -3
  57. package/dist/{index-DAl0QTZS.d.ts → index-Cy26isrh.d.ts} +1 -1
  58. package/dist/{index-CQOp8EmB.d.mts → index-y1jgR74U.d.mts} +1 -1
  59. package/dist/index.cjs +13 -11
  60. package/dist/index.d.mts +15 -15
  61. package/dist/index.d.ts +15 -15
  62. package/dist/index.mjs +14 -12
  63. package/dist/integrations.cjs +5 -3
  64. package/dist/integrations.d.mts +1 -1
  65. package/dist/integrations.d.ts +1 -1
  66. package/dist/integrations.mjs +6 -4
  67. package/dist/internal/app-markdown-runtime.d.mts +2 -2
  68. package/dist/internal/app-markdown-runtime.d.ts +2 -2
  69. package/dist/internal/build-runtime.cjs +11 -10
  70. package/dist/internal/build-runtime.d.mts +3 -3
  71. package/dist/internal/build-runtime.d.ts +3 -3
  72. package/dist/internal/build-runtime.mjs +10 -9
  73. package/dist/internal/cli-runtime.cjs +5 -4
  74. package/dist/internal/cli-runtime.mjs +4 -3
  75. package/dist/internal/client-error-overlay.cjs +4 -4
  76. package/dist/internal/client-error-overlay.mjs +1 -1
  77. package/dist/internal/compression-runtime.d.mts +1 -1
  78. package/dist/internal/compression-runtime.d.ts +1 -1
  79. package/dist/internal/config-runtime.cjs +4 -3
  80. package/dist/internal/config-runtime.d.mts +2 -2
  81. package/dist/internal/config-runtime.d.ts +2 -2
  82. package/dist/internal/config-runtime.mjs +3 -2
  83. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  84. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  85. package/dist/internal/production-runtime.cjs +5 -11
  86. package/dist/internal/production-runtime.d.mts +10 -10
  87. package/dist/internal/production-runtime.d.ts +10 -10
  88. package/dist/internal/production-runtime.mjs +4 -10
  89. package/dist/markdown.d.mts +1 -1
  90. package/dist/markdown.d.ts +1 -1
  91. package/dist/middleware.d.mts +3 -3
  92. package/dist/middleware.d.ts +3 -3
  93. package/dist/navigation.d.mts +4 -4
  94. package/dist/navigation.d.ts +4 -4
  95. package/dist/plugin.cjs +7 -6
  96. package/dist/plugin.d.mts +3 -3
  97. package/dist/plugin.d.ts +3 -3
  98. package/dist/plugin.mjs +6 -5
  99. package/dist/{production-runtime-5nArjFpn.d.ts → production-runtime-BVMDgHrA.d.ts} +1 -1
  100. package/dist/{production-runtime-BzsF2z5F.d.mts → production-runtime-ClFA_1KQ.d.mts} +1 -1
  101. package/dist/{render-plan-B9yQorV4.d.mts → render-plan-CoSovy_O.d.mts} +1 -1
  102. package/dist/{render-plan-fg6E_HvL.d.ts → render-plan-y2DefWf8.d.ts} +1 -1
  103. package/dist/renderer-client.d.mts +3 -3
  104. package/dist/renderer-client.d.ts +3 -3
  105. package/dist/{request-gz8vFK0n.d.ts → request-aG5Wovm5.d.ts} +1 -1
  106. package/dist/{request-C4j_g-BH.d.mts → request-cNM09Q7e.d.mts} +1 -1
  107. package/dist/request.d.mts +2 -2
  108. package/dist/request.d.ts +2 -2
  109. package/dist/{route-rendering-DamyKVi3.d.ts → route-rendering-B3uQmCWX.d.ts} +1 -1
  110. package/dist/{route-rendering-iTTOwz1f.d.mts → route-rendering-EyInfsjI.d.mts} +1 -1
  111. package/dist/{router-OVjDqVo8.d.ts → router-DNUf-Bg1.d.ts} +1 -1
  112. package/dist/{router-EoSzHlos.d.mts → router-Devibh4r.d.mts} +1 -1
  113. package/dist/routes.d.mts +1 -1
  114. package/dist/routes.d.ts +1 -1
  115. package/dist/{rsc-pipeline-YCDRJME4.cjs → rsc-pipeline-4ZJ6GUVQ.cjs} +5 -4
  116. package/dist/{rsc-pipeline-LK4K5JFK.mjs → rsc-pipeline-KK6GFDET.mjs} +4 -3
  117. package/dist/{runtime-DDH4tiuF.d.mts → runtime-9KZb8AI5.d.mts} +1 -1
  118. package/dist/{runtime-CwiuozLd.d.ts → runtime-CLr9P5kn.d.ts} +1 -1
  119. package/dist/server-plugins.d.mts +2 -2
  120. package/dist/server-plugins.d.ts +2 -2
  121. package/dist/server.cjs +22 -21
  122. package/dist/server.d.mts +9 -9
  123. package/dist/server.d.ts +9 -9
  124. package/dist/server.mjs +8 -7
  125. package/dist/{spa-router-Br4qFCWf.d.mts → spa-router-BIxh4IY-.d.mts} +2 -2
  126. package/dist/{spa-router-BsWUKH73.d.ts → spa-router-Ds6R_oe-.d.ts} +2 -2
  127. package/dist/{ssg-Donyfcxy.d.mts → ssg-ByrOVYdM.d.mts} +2 -2
  128. package/dist/{ssg-Csy2vwpi.d.ts → ssg-XnMHCyEc.d.ts} +2 -2
  129. package/dist/testing.d.mts +1 -1
  130. package/dist/testing.d.ts +1 -1
  131. package/dist/{utils-Luk72LXC.d.ts → utils-BN70ueSN.d.ts} +1 -1
  132. package/dist/{utils-d_k1ZZw0.d.mts → utils-BrjR5xRs.d.mts} +1 -1
  133. package/dist/version.cjs +2 -2
  134. package/dist/version.mjs +1 -1
  135. package/dist/vite.cjs +7 -6
  136. package/dist/vite.d.mts +4 -4
  137. package/dist/vite.d.ts +4 -4
  138. package/dist/vite.mjs +6 -5
  139. package/package.json +1 -1
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QGH2RQVF.mjs";
5
5
  import {
6
6
  resolveDeployOutputPath
7
- } from "./chunk-4MRQ5OKQ.mjs";
7
+ } from "./chunk-WWYXIECF.mjs";
8
8
  import {
9
9
  loadFarmReactPlugin
10
10
  } from "./chunk-5NIWBWDD.mjs";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-WDMIW6Q6.mjs";
30
30
  import {
31
31
  getIntegrationSchemas
32
- } from "./chunk-AX7S67YV.mjs";
32
+ } from "./chunk-37VKVISD.mjs";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-LPEX4YW6.mjs";
@@ -25,7 +25,7 @@ import {
25
25
  renderFarmLocaleAlternateLinks,
26
26
  resolveDefaultErrorStatus,
27
27
  routeBoundaryCoversDirectory
28
- } from "./chunk-TESO7EFU.mjs";
28
+ } from "./chunk-X6YOWNDZ.mjs";
29
29
  import {
30
30
  FARM_DEFAULT_MCP_PATH,
31
31
  collectFarmDefaultMCPPages,
@@ -155,7 +155,7 @@ import {
155
155
  getIntegrationProviders,
156
156
  getRegisteredIntegrationAPIManifest,
157
157
  isFarmIntegrationProviderComponentReference
158
- } from "./chunk-AX7S67YV.mjs";
158
+ } from "./chunk-37VKVISD.mjs";
159
159
  import {
160
160
  createRouteSlotContainerId,
161
161
  parseRouteSlotFile
@@ -244,7 +244,7 @@ import {
244
244
  } from "./chunk-P7XDC7UJ.mjs";
245
245
  import {
246
246
  FARM_VERSION
247
- } from "./chunk-YGZH4T2X.mjs";
247
+ } from "./chunk-FHQZJJQR.mjs";
248
248
  import {
249
249
  resolveFarmTrailingSlashRedirect,
250
250
  setFarmTrailingSlashPreference
@@ -7,7 +7,7 @@ var _chunkPCOTGFSMcjs = require('./chunk-PCOTGFSM.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkGVNCWSQVcjs = require('./chunk-GVNCWSQV.cjs');
10
+ var _chunkUN4B2TXCcjs = require('./chunk-UN4B2TXC.cjs');
11
11
 
12
12
 
13
13
  var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
@@ -59,7 +59,7 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
59
59
  return {
60
60
  layout,
61
61
  segments: segments.length === 0 ? null : segments,
62
- groupScope: _chunkGVNCWSQVcjs.getRouteGroupScope.call(void 0, layout.pattern)
62
+ groupScope: _chunkUN4B2TXCcjs.getRouteGroupScope.call(void 0, layout.pattern)
63
63
  };
64
64
  });
65
65
  return (pathname, routeDirectory) => {
@@ -73,7 +73,7 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
73
73
  }
74
74
  if (groupScope !== null) {
75
75
  if (directory === void 0) directory = _nullishCoalesce(_optionalChain([resolveRouteDirectory, 'optionalCall', _2 => _2(pathname)]), () => ( null));
76
- if (!_chunkGVNCWSQVcjs.isInRouteGroupScope.call(void 0, directory, groupScope)) continue;
76
+ if (!_chunkUN4B2TXCcjs.isInRouteGroupScope.call(void 0, directory, groupScope)) continue;
77
77
  }
78
78
  applicable.push(layout);
79
79
  }
@@ -82,9 +82,9 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
82
82
  }
83
83
  _chunkS3JO3N4Hcjs.__name.call(void 0, createFarmLayoutSelector, "createFarmLayoutSelector");
84
84
  function layoutsCanCoverSamePage(a, b) {
85
- const scopeA = _chunkGVNCWSQVcjs.getRouteGroupScope.call(void 0, a);
86
- const scopeB = _chunkGVNCWSQVcjs.getRouteGroupScope.call(void 0, b);
87
- if (scopeA !== null && scopeB !== null && !_chunkGVNCWSQVcjs.isInRouteGroupScope.call(void 0, scopeA, scopeB) && !_chunkGVNCWSQVcjs.isInRouteGroupScope.call(void 0, scopeB, scopeA)) {
85
+ const scopeA = _chunkUN4B2TXCcjs.getRouteGroupScope.call(void 0, a);
86
+ const scopeB = _chunkUN4B2TXCcjs.getRouteGroupScope.call(void 0, b);
87
+ if (scopeA !== null && scopeB !== null && !_chunkUN4B2TXCcjs.isInRouteGroupScope.call(void 0, scopeA, scopeB) && !_chunkUN4B2TXCcjs.isInRouteGroupScope.call(void 0, scopeB, scopeA)) {
88
88
  return false;
89
89
  }
90
90
  const segmentsA = a === "/" ? [] : _chunkPCOTGFSMcjs.parseRoutePattern.call(void 0, a);
@@ -69,7 +69,7 @@ var _chunkJEIG3EWEcjs = require('./chunk-JEIG3EWE.cjs');
69
69
  var _chunkOI6CMLWXcjs = require('./chunk-OI6CMLWX.cjs');
70
70
 
71
71
 
72
- var _chunkRHGK2JENcjs = require('./chunk-RHGK2JEN.cjs');
72
+ var _chunkB6XAA7V6cjs = require('./chunk-B6XAA7V6.cjs');
73
73
 
74
74
 
75
75
  var _chunkALPWLT27cjs = require('./chunk-ALPWLT27.cjs');
@@ -804,7 +804,7 @@ async function resolveConfig(userConfig, mode) {
804
804
  },
805
805
  agent: resolveFarmAgentConfig(userConfig.agent, { docs: docs.enabled }),
806
806
  plugins: [
807
- ..._chunkRHGK2JENcjs.resolveIntegrationPlugins.call(void 0, integrations),
807
+ ..._chunkB6XAA7V6cjs.resolveIntegrationPlugins.call(void 0, integrations),
808
808
  ...nativeMCPPlugin ? [nativeMCPPlugin] : [],
809
809
  ...userConfig.plugins || []
810
810
  ],
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-2VQKKQ6D.mjs";
12
12
  import {
13
13
  resolveDocsConfig
14
- } from "./chunk-4MRQ5OKQ.mjs";
14
+ } from "./chunk-WWYXIECF.mjs";
15
15
  import {
16
16
  getFarmDocsAdapterConfigModule,
17
17
  isSecretDocsConfigKey
@@ -25,7 +25,7 @@ var _chunk3XEMGDBFcjs = require('./chunk-3XEMGDBF.cjs');
25
25
 
26
26
 
27
27
 
28
- var _chunkGVNCWSQVcjs = require('./chunk-GVNCWSQV.cjs');
28
+ var _chunkUN4B2TXCcjs = require('./chunk-UN4B2TXC.cjs');
29
29
 
30
30
 
31
31
 
@@ -155,7 +155,7 @@ var _chunk6QQDAAAZcjs = require('./chunk-6QQDAAAZ.cjs');
155
155
 
156
156
 
157
157
 
158
- var _chunkRHGK2JENcjs = require('./chunk-RHGK2JEN.cjs');
158
+ var _chunkB6XAA7V6cjs = require('./chunk-B6XAA7V6.cjs');
159
159
 
160
160
 
161
161
 
@@ -244,7 +244,7 @@ var _chunk5NAVKJCZcjs = require('./chunk-5NAVKJCZ.cjs');
244
244
  var _chunk4TLUFAIPcjs = require('./chunk-4TLUFAIP.cjs');
245
245
 
246
246
 
247
- var _chunkYBDSTNMHcjs = require('./chunk-YBDSTNMH.cjs');
247
+ var _chunk2DZOABRKcjs = require('./chunk-2DZOABRK.cjs');
248
248
 
249
249
 
250
250
 
@@ -1913,8 +1913,8 @@ var _RouteManager = class _RouteManager {
1913
1913
  )
1914
1914
  );
1915
1915
  this.orderedLayouts = Array.from(this.layouts.values()).sort(
1916
- (left, right) => _chunkGVNCWSQVcjs.getRouteDirectoryDepth.call(void 0, left.pattern) - _chunkGVNCWSQVcjs.getRouteDirectoryDepth.call(void 0, right.pattern)
1917
- ).map((entry) => ({ entry, groupScope: _chunkGVNCWSQVcjs.getRouteGroupScope.call(void 0, entry.pattern) }));
1916
+ (left, right) => _chunkUN4B2TXCcjs.getRouteDirectoryDepth.call(void 0, left.pattern) - _chunkUN4B2TXCcjs.getRouteDirectoryDepth.call(void 0, right.pattern)
1917
+ ).map((entry) => ({ entry, groupScope: _chunkUN4B2TXCcjs.getRouteGroupScope.call(void 0, entry.pattern) }));
1918
1918
  for (const slot of this.routeSlots.values()) {
1919
1919
  if (!this.routeSlotOwnerSegments.has(slot.ownerPattern)) {
1920
1920
  this.routeSlotOwnerSegments.set(
@@ -2156,7 +2156,7 @@ var _RouteManager = class _RouteManager {
2156
2156
  }
2157
2157
  return absolutePath;
2158
2158
  }, "toUrlPath");
2159
- const integrationProviders = _chunkRHGK2JENcjs.getIntegrationProviders.call(void 0, this.config.integrations).filter(
2159
+ const integrationProviders = _chunkB6XAA7V6cjs.getIntegrationProviders.call(void 0, this.config.integrations).filter(
2160
2160
  (provider) => provider.component || provider.type === "clerk"
2161
2161
  );
2162
2162
  const unsupportedIntegrationProvider = integrationProviders.find(
@@ -2225,15 +2225,15 @@ var _RouteManager = class _RouteManager {
2225
2225
  enforceFarmIsolatedHydrationRouteBudget(
2226
2226
  layoutEntries.map(({ entry, metadata }) => ({
2227
2227
  pattern: entry.pattern,
2228
- depth: _chunkGVNCWSQVcjs.getRouteDirectoryDepth.call(void 0, entry.pattern),
2228
+ depth: _chunkUN4B2TXCcjs.getRouteDirectoryDepth.call(void 0, entry.pattern),
2229
2229
  metadata
2230
2230
  })),
2231
2231
  routeEntries.map(({ entry, metadata }) => ({
2232
2232
  pattern: getRouteEntryDirectory(entry),
2233
- depth: _chunkGVNCWSQVcjs.getRouteDirectoryDepth.call(void 0, getRouteEntryDirectory(entry)),
2233
+ depth: _chunkUN4B2TXCcjs.getRouteDirectoryDepth.call(void 0, getRouteEntryDirectory(entry)),
2234
2234
  metadata
2235
2235
  })),
2236
- _chunkGVNCWSQVcjs.routeBoundaryCoversDirectory
2236
+ _chunkUN4B2TXCcjs.routeBoundaryCoversDirectory
2237
2237
  );
2238
2238
  for (const { entry, metadata } of [...layoutEntries, ...routeEntries]) {
2239
2239
  if (!metadata.costGuardExceeded) continue;
@@ -2252,7 +2252,7 @@ var _RouteManager = class _RouteManager {
2252
2252
  const routes = routeEntries.map(({ entry, metadata }) => {
2253
2253
  const programmaticPage = this.programmaticPages.get(entry.modulePath);
2254
2254
  const layoutShouldHydrate = layoutEntries.some(
2255
- ({ entry: layout, metadata: layoutMetadata }) => layoutMetadata.shouldHydrate && _chunkGVNCWSQVcjs.routeBoundaryCoversDirectory.call(void 0, layout.pattern, getRouteEntryDirectory(entry))
2255
+ ({ entry: layout, metadata: layoutMetadata }) => layoutMetadata.shouldHydrate && _chunkUN4B2TXCcjs.routeBoundaryCoversDirectory.call(void 0, layout.pattern, getRouteEntryDirectory(entry))
2256
2256
  );
2257
2257
  return {
2258
2258
  pattern: entry.pattern,
@@ -2269,7 +2269,7 @@ var _RouteManager = class _RouteManager {
2269
2269
  }))
2270
2270
  } : {},
2271
2271
  ...usesFarmServerTree(metadata) ? { serverTree: true } : {},
2272
- renderPlan: _chunkGVNCWSQVcjs.createFarmRouteRenderPlan.call(void 0, {
2272
+ renderPlan: _chunkUN4B2TXCcjs.createFarmRouteRenderPlan.call(void 0, {
2273
2273
  pageShouldHydrate: metadata.shouldHydrate,
2274
2274
  layoutShouldHydrate,
2275
2275
  islandStrategy: metadata.islandStrategy
@@ -2434,7 +2434,7 @@ var _RouteManager = class _RouteManager {
2434
2434
  */
2435
2435
  createRoutePattern(route) {
2436
2436
  if (route.segments.length === 0) return "/";
2437
- return "/" + route.segments.map(_chunkGVNCWSQVcjs.formatRouteSegment).join("/");
2437
+ return "/" + route.segments.map(_chunkUN4B2TXCcjs.formatRouteSegment).join("/");
2438
2438
  }
2439
2439
  registerPageRoute(entry) {
2440
2440
  _chunkNO3WWW3Ncjs.assertUniqueRouteParameters.call(void 0, entry.pattern);
@@ -2528,7 +2528,7 @@ var _RouteManager = class _RouteManager {
2528
2528
  for (const file of files) {
2529
2529
  const route = _chunk5QIKR7RRcjs.parseRoutePath.call(void 0, file);
2530
2530
  const modulePath = path4.default.join(appDir, file);
2531
- const pattern = _chunkGVNCWSQVcjs.createRouteDirectoryPattern.call(void 0, route);
2531
+ const pattern = _chunkUN4B2TXCcjs.createRouteDirectoryPattern.call(void 0, route);
2532
2532
  const existing = target.get(pattern);
2533
2533
  if (_optionalChain([existing, 'optionalAccess', _131 => _131.sourceRoot]) === source.root) {
2534
2534
  throw new Error(
@@ -2550,7 +2550,7 @@ var _RouteManager = class _RouteManager {
2550
2550
  const modulePath = path4.default.join(appDir, file);
2551
2551
  const pattern = this.createRoutePattern(slot.route);
2552
2552
  const ownerPattern = this.createRoutePattern(slot.ownerRoute);
2553
- const ownerDirectory = _chunkGVNCWSQVcjs.createRouteDirectoryPattern.call(void 0, slot.ownerRoute);
2553
+ const ownerDirectory = _chunkUN4B2TXCcjs.createRouteDirectoryPattern.call(void 0, slot.ownerRoute);
2554
2554
  const key = `${ownerPattern}:${slot.name}:${slot.interception ? "intercept" : "slot"}:${slot.fallback ? "default" : pattern}`;
2555
2555
  const existing = this.routeSlots.get(key);
2556
2556
  if (_optionalChain([existing, 'optionalAccess', _132 => _132.sourceRoot]) === source.root) {
@@ -2667,7 +2667,7 @@ var _RouteManager = class _RouteManager {
2667
2667
  }
2668
2668
  if (definition.kind === "layout") {
2669
2669
  const route = _chunkCGVPXIRNcjs.parseProgrammaticRoutePath.call(void 0, definition.path, "layout");
2670
- const pattern = _chunkGVNCWSQVcjs.createRouteDirectoryPattern.call(void 0, route);
2670
+ const pattern = _chunkUN4B2TXCcjs.createRouteDirectoryPattern.call(void 0, route);
2671
2671
  const existing = this.layouts.get(pattern);
2672
2672
  if (_optionalChain([existing, 'optionalAccess', _136 => _136.sourceRoot]) === source.root) {
2673
2673
  throw new Error(
@@ -2714,7 +2714,7 @@ var _RouteManager = class _RouteManager {
2714
2714
  const matchingLayouts = [];
2715
2715
  for (const { entry, groupScope } of this.orderedLayouts) {
2716
2716
  if (!_chunk5QIKR7RRcjs.matchRoutePrefixParts.call(void 0, pathnameParts, entry.route.segments)) continue;
2717
- if (groupScope !== null && !_chunkGVNCWSQVcjs.isInRouteGroupScope.call(void 0, route && getRouteEntryDirectory(route), groupScope)) {
2717
+ if (groupScope !== null && !_chunkUN4B2TXCcjs.isInRouteGroupScope.call(void 0, route && getRouteEntryDirectory(route), groupScope)) {
2718
2718
  continue;
2719
2719
  }
2720
2720
  matchingLayouts.push(entry);
@@ -2795,14 +2795,14 @@ var _RouteManager = class _RouteManager {
2795
2795
  let page = route;
2796
2796
  for (const boundaryEntry of boundaries.values()) {
2797
2797
  if (!_chunk5QIKR7RRcjs.matchRoutePrefix.call(void 0, normalizedPath, boundaryEntry.route.segments)) continue;
2798
- const groupScope = _chunkGVNCWSQVcjs.getRouteGroupScope.call(void 0, boundaryEntry.pattern);
2798
+ const groupScope = _chunkUN4B2TXCcjs.getRouteGroupScope.call(void 0, boundaryEntry.pattern);
2799
2799
  if (groupScope !== null) {
2800
2800
  if (page === void 0) page = this.matchPageRoute(_chunk5QIKR7RRcjs.splitRoutePath.call(void 0, normalizedPath));
2801
- if (!_chunkGVNCWSQVcjs.isInRouteGroupScope.call(void 0, page && getRouteEntryDirectory(page), groupScope)) continue;
2801
+ if (!_chunkUN4B2TXCcjs.isInRouteGroupScope.call(void 0, page && getRouteEntryDirectory(page), groupScope)) continue;
2802
2802
  }
2803
2803
  const depth = boundaryEntry.route.segments.length;
2804
2804
  const bestDepth = _nullishCoalesce(_optionalChain([bestMatch, 'optionalAccess', _140 => _140.route, 'access', _141 => _141.segments, 'access', _142 => _142.length]), () => ( -1));
2805
- if (!bestMatch || depth > bestDepth || depth === bestDepth && _chunkGVNCWSQVcjs.getRouteDirectoryDepth.call(void 0, boundaryEntry.pattern) > _chunkGVNCWSQVcjs.getRouteDirectoryDepth.call(void 0, bestMatch.pattern)) {
2805
+ if (!bestMatch || depth > bestDepth || depth === bestDepth && _chunkUN4B2TXCcjs.getRouteDirectoryDepth.call(void 0, boundaryEntry.pattern) > _chunkUN4B2TXCcjs.getRouteDirectoryDepth.call(void 0, bestMatch.pattern)) {
2806
2806
  bestMatch = boundaryEntry;
2807
2807
  }
2808
2808
  }
@@ -2918,7 +2918,7 @@ var _RouteManager = class _RouteManager {
2918
2918
  _chunkS3JO3N4Hcjs.__name.call(void 0, _RouteManager, "RouteManager");
2919
2919
  var RouteManager = _RouteManager;
2920
2920
  function getPageDirectoryField(route, pattern) {
2921
- const directory = _chunkGVNCWSQVcjs.createRouteDirectoryPattern.call(void 0, route);
2921
+ const directory = _chunkUN4B2TXCcjs.createRouteDirectoryPattern.call(void 0, route);
2922
2922
  return directory === pattern ? {} : { directory };
2923
2923
  }
2924
2924
  _chunkS3JO3N4Hcjs.__name.call(void 0, getPageDirectoryField, "getPageDirectoryField");
@@ -4111,7 +4111,7 @@ function generateFarmIntegrationProviderClientCode(providers, root, rendererComp
4111
4111
  let hasClerkProvider = false;
4112
4112
  renderedProviders.forEach((provider, index) => {
4113
4113
  let componentExpression = "null";
4114
- if (_chunkRHGK2JENcjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) {
4114
+ if (_chunkB6XAA7V6cjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) {
4115
4115
  const namespace = `FarmIntegrationProviderModule${index}`;
4116
4116
  imports.push(
4117
4117
  `import * as ${namespace} from ${JSON.stringify(resolveProviderModule(provider.component.module, root))};`
@@ -4170,7 +4170,7 @@ function generateFarmIntegrationProviderServerModules(providers, root, rendererC
4170
4170
  const entries = [];
4171
4171
  let needsMarkHelper = false;
4172
4172
  providers.forEach((provider, index) => {
4173
- if (!_chunkRHGK2JENcjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) return;
4173
+ if (!_chunkB6XAA7V6cjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) return;
4174
4174
  const namespace = `FarmServerIntegrationProviderModule${index}`;
4175
4175
  imports.push(
4176
4176
  `import * as ${namespace} from ${JSON.stringify(resolveProviderModule(provider.component.module, root))};`
@@ -4588,7 +4588,7 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, appendResponseVary, "appendResponseVary");
4588
4588
  function renderI18nAlternateLinks(requestPath, snapshot, options) {
4589
4589
  if (snapshot.routing === "none") return "";
4590
4590
  const url = new URL(requestPath, "http://farm.local");
4591
- return _chunkGVNCWSQVcjs.renderFarmLocaleAlternateLinks.call(void 0, url.pathname, snapshot, options);
4591
+ return _chunkUN4B2TXCcjs.renderFarmLocaleAlternateLinks.call(void 0, url.pathname, snapshot, options);
4592
4592
  }
4593
4593
  _chunkS3JO3N4Hcjs.__name.call(void 0, renderI18nAlternateLinks, "renderI18nAlternateLinks");
4594
4594
  var PPR_REFRESH_MAX_ATTEMPTS = 3;
@@ -5919,7 +5919,7 @@ var _ServerRenderer = class _ServerRenderer {
5919
5919
  }
5920
5920
  }
5921
5921
  _chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, { type: "render.error", route: pathname, error });
5922
- const errorStatus = _chunkGVNCWSQVcjs.resolveDefaultErrorStatus.call(void 0, error);
5922
+ const errorStatus = _chunkUN4B2TXCcjs.resolveDefaultErrorStatus.call(void 0, error);
5923
5923
  if (pprRefreshRoute) {
5924
5924
  _chunkGS3WR5HXcjs.emitFarmEvent.call(void 0, {
5925
5925
  type: "ppr.refresh.error",
@@ -5955,7 +5955,7 @@ var _ServerRenderer = class _ServerRenderer {
5955
5955
  }
5956
5956
  }
5957
5957
  async wrapWithIntegrationProviders(element) {
5958
- const providers = _chunkRHGK2JENcjs.getIntegrationProviders.call(void 0, this.config.integrations);
5958
+ const providers = _chunkB6XAA7V6cjs.getIntegrationProviders.call(void 0, this.config.integrations);
5959
5959
  let wrapped = element;
5960
5960
  for (let i = providers.length - 1; i >= 0; i--) {
5961
5961
  const provider = providers[i];
@@ -5973,7 +5973,7 @@ var _ServerRenderer = class _ServerRenderer {
5973
5973
  }
5974
5974
  let ProviderComponent;
5975
5975
  let providerSourceModule;
5976
- if (_chunkRHGK2JENcjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) {
5976
+ if (_chunkB6XAA7V6cjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) {
5977
5977
  providerSourceModule = provider.component.module;
5978
5978
  const providerModuleId = provider.component.module.startsWith(".") ? _chunk5QIKR7RRcjs.toViteModuleId.call(void 0,
5979
5979
  path9.resolve(this.config.root, provider.component.module),
@@ -6147,7 +6147,7 @@ var _ServerRenderer = class _ServerRenderer {
6147
6147
  origin: url.origin,
6148
6148
  readMarkdown: llmsContext.markdown
6149
6149
  }) : value;
6150
- const response = _chunkGVNCWSQVcjs.createFarmMetadataRouteResponse.call(void 0, match.metadata.kind, body, routeModule, {
6150
+ const response = _chunkUN4B2TXCcjs.createFarmMetadataRouteResponse.call(void 0, match.metadata.kind, body, routeModule, {
6151
6151
  method,
6152
6152
  request: request2
6153
6153
  });
@@ -6183,7 +6183,7 @@ var _ServerRenderer = class _ServerRenderer {
6183
6183
  }) : context.defaults;
6184
6184
  await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0,
6185
6185
  res,
6186
- _chunkGVNCWSQVcjs.createFarmMetadataRouteResponse.call(void 0,
6186
+ _chunkUN4B2TXCcjs.createFarmMetadataRouteResponse.call(void 0,
6187
6187
  kind,
6188
6188
  body,
6189
6189
  { revalidate: config.revalidate },
@@ -6218,7 +6218,7 @@ var _ServerRenderer = class _ServerRenderer {
6218
6218
  });
6219
6219
  await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0,
6220
6220
  res,
6221
- _chunkGVNCWSQVcjs.createFarmMetadataRouteResponse.call(void 0, "robots", robots, {}, { method: req.method })
6221
+ _chunkUN4B2TXCcjs.createFarmMetadataRouteResponse.call(void 0, "robots", robots, {}, { method: req.method })
6222
6222
  );
6223
6223
  } catch (error) {
6224
6224
  _chunk5QIKR7RRcjs.logger.error(`Generated robots.txt failed: ${error}`);
@@ -6262,7 +6262,7 @@ var _ServerRenderer = class _ServerRenderer {
6262
6262
  });
6263
6263
  await _chunkUQZ4AYTHcjs.sendWebResponse.call(void 0,
6264
6264
  res,
6265
- _chunkGVNCWSQVcjs.createFarmMetadataRouteResponse.call(void 0, "sitemap", sitemap, {}, { method: req.method })
6265
+ _chunkUN4B2TXCcjs.createFarmMetadataRouteResponse.call(void 0, "sitemap", sitemap, {}, { method: req.method })
6266
6266
  );
6267
6267
  } catch (error) {
6268
6268
  _chunk5QIKR7RRcjs.logger.error(`Generated sitemap.xml failed: ${error}`);
@@ -6291,7 +6291,7 @@ var _ServerRenderer = class _ServerRenderer {
6291
6291
  getAgentListedRoutes() {
6292
6292
  const guards = { config: this.config, middlewareRoutes: _nullishCoalesce(_optionalChain([this, 'access', _244 => _244.middlewareRoutes, 'optionalCall', _245 => _245()]), () => ( [])) };
6293
6293
  return [...this.routeManager.getRoutes()].filter(
6294
- ([pattern]) => !pattern.includes("[") && !_chunkGVNCWSQVcjs.farmPathGuardCoversPage.call(void 0, guards, pattern)
6294
+ ([pattern]) => !pattern.includes("[") && !_chunkUN4B2TXCcjs.farmPathGuardCoversPage.call(void 0, guards, pattern)
6295
6295
  );
6296
6296
  }
6297
6297
  /**
@@ -6305,7 +6305,7 @@ var _ServerRenderer = class _ServerRenderer {
6305
6305
  if (this.routeManager.matchRoute(_chunkBMOBTMDRcjs.FARM_DEFAULT_MCP_PATH).route) return void 0;
6306
6306
  _nullishCoalesce(this.defaultMCPServer, () => ( (this.defaultMCPServer = _chunkBMOBTMDRcjs.createFarmDefaultMCPServer.call(void 0,
6307
6307
  readAppPackageIdentity(this.config.root),
6308
- _chunkYBDSTNMHcjs.FARM_VERSION
6308
+ _chunk2DZOABRKcjs.FARM_VERSION
6309
6309
  ))));
6310
6310
  return _chunkBMOBTMDRcjs.resolveFarmDefaultMCPServer.call(void 0, this.defaultMCPServer);
6311
6311
  }
@@ -6387,7 +6387,7 @@ var _ServerRenderer = class _ServerRenderer {
6387
6387
  pages,
6388
6388
  config,
6389
6389
  rootMetadata,
6390
- mcp: _optionalChain([this, 'access', _257 => _257.config, 'access', _258 => _258.agent, 'optionalAccess', _259 => _259.aiCatalog]) === false ? [] : _chunkGVNCWSQVcjs.listFarmMCPLlmsTxtLinks.call(void 0, origin, {
6390
+ mcp: _optionalChain([this, 'access', _257 => _257.config, 'access', _258 => _258.agent, 'optionalAccess', _259 => _259.aiCatalog]) === false ? [] : _chunkUN4B2TXCcjs.listFarmMCPLlmsTxtLinks.call(void 0, origin, {
6391
6391
  basePath: this.config.basePath,
6392
6392
  apiServerBasePath: _chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath.call(void 0,
6393
6393
  _chunkS3A45T7Fcjs.normalizeFarmAPIConfig.call(void 0,
@@ -6649,7 +6649,7 @@ window.__FARM_ISLAND_STRATEGY__ = ${JSON.stringify(req.__FARM_ISLAND_STRATEGY__
6649
6649
  window.__FARM_PAGE_MODULE__ = ${JSON.stringify(relativePath)};
6650
6650
  window.__FARM_LOADING_MODULE__ = ${JSON.stringify(req.__FARM_LOADING_MODULE_PATH__ || null)};
6651
6651
  window.__FARM_MANIFEST__ = ${JSON.stringify(clientManifest)};
6652
- window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(_chunkRHGK2JENcjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
6652
+ window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(_chunkB6XAA7V6cjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
6653
6653
  window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0, ) ? serializeInlineValue(_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0, )) : "null"};
6654
6654
  </script>`);
6655
6655
  const deferredScript = farmScripts(createDeferredHydrationScript(deferredProps.records));
@@ -6686,19 +6686,19 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
6686
6686
  i18nSnapshot,
6687
6687
  this.getI18nAlternateOptions(req, req.__FARM_METADATA__)
6688
6688
  ) : "";
6689
- const themeDocument = _chunkGVNCWSQVcjs.createFarmThemeDocumentParts.call(void 0,
6689
+ const themeDocument = _chunkUN4B2TXCcjs.createFarmThemeDocumentParts.call(void 0,
6690
6690
  this.config.theme,
6691
6691
  this.config.basePath,
6692
6692
  _chunk2FUIT2G2cjs.getTheme.call(void 0, )
6693
6693
  );
6694
6694
  themeDocument.head = farmScripts(themeDocument.head);
6695
- const fullDocument = _chunkGVNCWSQVcjs.extractFarmFullDocument.call(void 0, content);
6695
+ const fullDocument = _chunkUN4B2TXCcjs.extractFarmFullDocument.call(void 0, content);
6696
6696
  let html;
6697
6697
  if (fullDocument) {
6698
6698
  const shouldReplaceLayoutTitle = hasExplicitTitle || rendererHasTitle;
6699
- const documentHtml = shouldReplaceLayoutTitle ? _chunkGVNCWSQVcjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument;
6700
- const effectiveRendererHead = hasExplicitTitle ? _chunkGVNCWSQVcjs.removeFarmDocumentTitles.call(void 0, rendererHead) : rendererHead;
6701
- html = _chunkGVNCWSQVcjs.composeFarmFullDocument.call(void 0, documentHtml, {
6699
+ const documentHtml = shouldReplaceLayoutTitle ? _chunkUN4B2TXCcjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument;
6700
+ const effectiveRendererHead = hasExplicitTitle ? _chunkUN4B2TXCcjs.removeFarmDocumentTitles.call(void 0, rendererHead) : rendererHead;
6701
+ html = _chunkUN4B2TXCcjs.composeFarmFullDocument.call(void 0, documentHtml, {
6702
6702
  fallbackIcon: !hasFavicon,
6703
6703
  viewport: viewportTags,
6704
6704
  htmlAttributes: `${i18nSnapshot ? ` lang="${escapeHtmlAttribute2(i18nSnapshot.locale)}" dir="${escapeHtmlAttribute2(i18nSnapshot.direction)}"` : ""}${themeDocument.attributes}`,
@@ -6906,7 +6906,7 @@ window.__FARM_LOADING_MODULE__ = ${JSON.stringify(
6906
6906
  req.__FARM_LOADING_MODULE_PATH__ || null
6907
6907
  )};
6908
6908
  window.__FARM_MANIFEST__ = ${JSON.stringify(clientManifest)};
6909
- window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(_chunkRHGK2JENcjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
6909
+ window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(_chunkB6XAA7V6cjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
6910
6910
  window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0, ) ? serializeInlineValue(_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0, )) : "null"};
6911
6911
  </script>`;
6912
6912
  const hydrationClickQueueScript = isClientComponent || req.__FARM_SHOULD_HYDRATE__ === true || req.__FARM_HAS_HYDRATABLE_ROUTE_SLOTS__ === true ? createPreHydrationClickQueueScript() : "";
@@ -6926,7 +6926,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
6926
6926
  this.getI18nAlternateOptions(req, req.__FARM_METADATA__)
6927
6927
  ) : "";
6928
6928
  const fontHead = renderFarmFontDevHead(this.config.root || process.cwd());
6929
- const themeDocument = _chunkGVNCWSQVcjs.createFarmThemeDocumentParts.call(void 0,
6929
+ const themeDocument = _chunkUN4B2TXCcjs.createFarmThemeDocumentParts.call(void 0,
6930
6930
  this.config.theme,
6931
6931
  this.config.basePath,
6932
6932
  _chunk2FUIT2G2cjs.getTheme.call(void 0, )
@@ -6989,7 +6989,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
6989
6989
  if (!chunkText) return;
6990
6990
  if (!checkedFullDocument) {
6991
6991
  documentPrefix += chunkText;
6992
- const prefix = _chunkGVNCWSQVcjs.classifyFarmDocumentPrefix.call(void 0, documentPrefix);
6992
+ const prefix = _chunkUN4B2TXCcjs.classifyFarmDocumentPrefix.call(void 0, documentPrefix);
6993
6993
  if (prefix !== "pending") {
6994
6994
  checkedFullDocument = true;
6995
6995
  documentPrefix = "";
@@ -7186,7 +7186,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
7186
7186
  */
7187
7187
  async createLateNavigationRecoveryHTML(req, error) {
7188
7188
  if (_chunkOX6O6WVAcjs.isFarmRedirectError.call(void 0, error)) {
7189
- return _chunkGVNCWSQVcjs.createLateRedirectRecovery.call(void 0,
7189
+ return _chunkUN4B2TXCcjs.createLateRedirectRecovery.call(void 0,
7190
7190
  this.localizeRedirectUrl(_chunkOX6O6WVAcjs.getFarmRedirectError.call(void 0, error).url),
7191
7191
  this.getCspNonce(req) || ""
7192
7192
  );
@@ -7208,7 +7208,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
7208
7208
  _chunk5QIKR7RRcjs.logger.warn(`not-found page could not render outside its layout, using Farm's: ${error2}`);
7209
7209
  }
7210
7210
  }
7211
- return _chunkGVNCWSQVcjs.createLateNotFoundRecovery.call(void 0, content, this.getCspNonce(req) || "");
7211
+ return _chunkUN4B2TXCcjs.createLateNotFoundRecovery.call(void 0, content, this.getCspNonce(req) || "");
7212
7212
  }
7213
7213
  async render404(req, res) {
7214
7214
  res.statusCode = 404;
@@ -7286,10 +7286,10 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
7286
7286
  trustProxy: _optionalChain([this, 'access', _304 => _304.config, 'access', _305 => _305.server, 'optionalAccess', _306 => _306.trustProxy])
7287
7287
  });
7288
7288
  const diagnostics = isDev ? createDefaultErrorDiagnostics(error, this.config.root || process.cwd()) : void 0;
7289
- const statusText = _chunkGVNCWSQVcjs.getDefaultErrorStatusText.call(void 0, statusCode);
7289
+ const statusText = _chunkUN4B2TXCcjs.getDefaultErrorStatusText.call(void 0, statusCode);
7290
7290
  const content = this.stampFarmScripts(
7291
7291
  req,
7292
- _chunkGVNCWSQVcjs.createDefaultErrorMarkup.call(void 0, {
7292
+ _chunkUN4B2TXCcjs.createDefaultErrorMarkup.call(void 0, {
7293
7293
  statusCode,
7294
7294
  statusText,
7295
7295
  requestPath: requestUrl.pathname,
@@ -7299,7 +7299,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
7299
7299
  stack: _optionalChain([diagnostics, 'optionalAccess', _309 => _309.stack]),
7300
7300
  sourceFrame: _optionalChain([diagnostics, 'optionalAccess', _310 => _310.sourceFrame]),
7301
7301
  development: isDev,
7302
- farmVersion: _chunkYBDSTNMHcjs.FARM_VERSION,
7302
+ farmVersion: _chunk2DZOABRKcjs.FARM_VERSION,
7303
7303
  nodeVersion: process.version,
7304
7304
  mode: isDev ? "development" : "production"
7305
7305
  })
@@ -7336,7 +7336,7 @@ window.__FARM_I18N__ = ${_chunkXJXBIP67cjs.getFarmI18nClientSnapshot.call(void 0
7336
7336
  const viteClientScript = farmScripts(`<script type="module" src="/@vite/client"></script>`);
7337
7337
  const integrationManifestScript = farmScripts(`<script>
7338
7338
  window.__FARM_DEPLOYMENT_ID__ = ${serializeInlineValue(this.getDeploymentId())};
7339
- window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(_chunkRHGK2JENcjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
7339
+ window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(_chunkB6XAA7V6cjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
7340
7340
  ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};` : ""}
7341
7341
  </script>`);
7342
7342
  const alternateLinks = i18nSnapshot ? renderI18nAlternateLinks(
@@ -7345,7 +7345,7 @@ ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};`
7345
7345
  this.getI18nAlternateOptions(alternates.req, alternates.metadata)
7346
7346
  ) : "";
7347
7347
  const fontHead = renderFarmFontDevHead(this.config.root || process.cwd());
7348
- const themeDocument = _chunkGVNCWSQVcjs.createFarmThemeDocumentParts.call(void 0,
7348
+ const themeDocument = _chunkUN4B2TXCcjs.createFarmThemeDocumentParts.call(void 0,
7349
7349
  this.config.theme,
7350
7350
  this.config.basePath,
7351
7351
  _chunk2FUIT2G2cjs.getTheme.call(void 0, )
@@ -7355,10 +7355,10 @@ ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};`
7355
7355
  _optionalChain([this, 'access', _315 => _315.rendererRuntime, 'access', _316 => _316.generateHydrationScript, 'optionalCall', _317 => _317()]) || ""
7356
7356
  );
7357
7357
  const viewportTags = _chunkLZESP4IRcjs.renderViewportHead.call(void 0, _optionalChain([alternates, 'access', _318 => _318.metadata, 'optionalAccess', _319 => _319.viewport]));
7358
- const fullDocument = _chunkGVNCWSQVcjs.extractFarmFullDocument.call(void 0, content);
7358
+ const fullDocument = _chunkUN4B2TXCcjs.extractFarmFullDocument.call(void 0, content);
7359
7359
  if (fullDocument) {
7360
- return _chunkGVNCWSQVcjs.composeFarmFullDocument.call(void 0,
7361
- metadataHead ? _chunkGVNCWSQVcjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument,
7360
+ return _chunkUN4B2TXCcjs.composeFarmFullDocument.call(void 0,
7361
+ metadataHead ? _chunkUN4B2TXCcjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument,
7362
7362
  {
7363
7363
  fallbackIcon: !metadataHead,
7364
7364
  viewport: viewportTags,
@@ -21,7 +21,7 @@ var _chunkX3GMHKO3cjs = require('./chunk-X3GMHKO3.cjs');
21
21
  var _chunkOI6CMLWXcjs = require('./chunk-OI6CMLWX.cjs');
22
22
 
23
23
 
24
- var _chunkRHGK2JENcjs = require('./chunk-RHGK2JEN.cjs');
24
+ var _chunk3SAWHWDHcjs = require('./chunk-3SAWHWDH.cjs');
25
25
 
26
26
 
27
27
 
@@ -45,7 +45,7 @@ var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
45
45
  var _chunk5NAVKJCZcjs = require('./chunk-5NAVKJCZ.cjs');
46
46
 
47
47
 
48
- var _chunkYBDSTNMHcjs = require('./chunk-YBDSTNMH.cjs');
48
+ var _chunk2DZOABRKcjs = require('./chunk-2DZOABRK.cjs');
49
49
 
50
50
 
51
51
  var _chunkBIDYX3SLcjs = require('./chunk-BIDYX3SL.cjs');
@@ -339,7 +339,7 @@ function farmPathGuardCoversPage(options, pathname) {
339
339
  return appMiddlewareMayHandlePath(
340
340
  options.middlewareRoutes.filter((route) => route.path !== "/"),
341
341
  pathname
342
- ) || pathSpecificConfigMiddlewareCovers(options.config.middleware, pathname) || _chunkRHGK2JENcjs.integrationMiddlewareMayHandlePath.call(void 0, options.config.integrations, pathname, CATCH_ALL_PROBE);
342
+ ) || pathSpecificConfigMiddlewareCovers(options.config.middleware, pathname) || _chunk3SAWHWDHcjs.integrationMiddlewareMayHandlePath.call(void 0, options.config.integrations, pathname, CATCH_ALL_PROBE);
343
343
  }
344
344
  _chunkS3JO3N4Hcjs.__name.call(void 0, farmPathGuardCoversPage, "farmPathGuardCoversPage");
345
345
  function farmPathGuardCoversEndpoint(options, path, apiServerBasePath) {
@@ -1051,7 +1051,7 @@ function createFarmAppManifest(input) {
1051
1051
  return {
1052
1052
  schemaVersion: 1,
1053
1053
  app: app ? {
1054
- ...app.version ? { farm: _chunkYBDSTNMHcjs.FARM_VERSION } : {},
1054
+ ...app.version ? { farm: _chunk2DZOABRKcjs.FARM_VERSION } : {},
1055
1055
  ...app.renderer ? { renderer: input.renderer } : {},
1056
1056
  basePath: input.basePath,
1057
1057
  ...app.build ? { build: input.build } : {}
@@ -11,13 +11,13 @@ import {
11
11
  import {
12
12
  generateNativeMCPPluginSource,
13
13
  layoutsCanCoverSamePage
14
- } from "./chunk-ZYWJIPKQ.mjs";
14
+ } from "./chunk-FDCV5OCT.mjs";
15
15
  import {
16
16
  assertFarmDocsAdapterServesNoGuardedPages,
17
17
  compileFarmDocsAdapterEdgeManifest,
18
18
  createFarmDocsAPIHandler,
19
19
  hasFarmDocsRuntimeAdapter
20
- } from "./chunk-NXO75WY4.mjs";
20
+ } from "./chunk-OYZGFRPA.mjs";
21
21
  import {
22
22
  FARM_DOCS_LAST_MODIFIED_MANIFEST,
23
23
  createFarmDocsHandler,
@@ -45,7 +45,7 @@ import {
45
45
  getDeployTargetForPreset,
46
46
  hasCustomFarmRouteContext,
47
47
  resolveDeployOutputPath
48
- } from "./chunk-4MRQ5OKQ.mjs";
48
+ } from "./chunk-WWYXIECF.mjs";
49
49
  import {
50
50
  resolveFarmInstrumentationFile
51
51
  } from "./chunk-ZZSRYEYU.mjs";
@@ -82,7 +82,7 @@ import {
82
82
  resolveFarmIsolatedClientHydrationMode,
83
83
  resolveFarmNotFoundComponentPath,
84
84
  usesFarmServerTree
85
- } from "./chunk-7SCCY6SI.mjs";
85
+ } from "./chunk-K5DHVEXC.mjs";
86
86
  import {
87
87
  PluginManager
88
88
  } from "./chunk-FGH3ZXTP.mjs";
@@ -109,7 +109,7 @@ import {
109
109
  resolveFarmAppManifestInput,
110
110
  routeBoundaryCoversDirectory,
111
111
  stripRouteGroups
112
- } from "./chunk-TESO7EFU.mjs";
112
+ } from "./chunk-X6YOWNDZ.mjs";
113
113
  import {
114
114
  farmPluginMayAffectRuntimePath
115
115
  } from "./chunk-Y5RG6B7S.mjs";
@@ -184,10 +184,12 @@ import {
184
184
  _collectFarmStorageModules
185
185
  } from "./chunk-JGHCKIRI.mjs";
186
186
  import {
187
- FARM_INTEGRATION_API_BASE_PATH_KEY,
188
187
  getFarmIntegrationPluginServerRuntime,
189
188
  getIntegrationProviders
190
- } from "./chunk-AX7S67YV.mjs";
189
+ } from "./chunk-37VKVISD.mjs";
190
+ import {
191
+ FARM_INTEGRATION_API_BASE_PATH_KEY
192
+ } from "./chunk-GZWHCWLB.mjs";
191
193
  import {
192
194
  appendMiddlewareDirectory,
193
195
  appendMiddlewareRoutePath,
@@ -222,7 +224,7 @@ import {
222
224
  } from "./chunk-BTHHUD7Q.mjs";
223
225
  import {
224
226
  FARM_VERSION
225
- } from "./chunk-YGZH4T2X.mjs";
227
+ } from "./chunk-FHQZJJQR.mjs";
226
228
  import {
227
229
  getFarmPresetRuntime
228
230
  } from "./chunk-2A3EQHXX.mjs";
@@ -69,7 +69,7 @@ import {
69
69
  } from "./chunk-AELACLOB.mjs";
70
70
  import {
71
71
  resolveIntegrationPlugins
72
- } from "./chunk-AX7S67YV.mjs";
72
+ } from "./chunk-37VKVISD.mjs";
73
73
  import {
74
74
  compileMiddlewareConfig
75
75
  } from "./chunk-HKFBMHCD.mjs";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-AELACLOB.mjs";
22
22
  import {
23
23
  integrationMiddlewareMayHandlePath
24
- } from "./chunk-AX7S67YV.mjs";
24
+ } from "./chunk-GZWHCWLB.mjs";
25
25
  import {
26
26
  compileMiddlewareConfig,
27
27
  matchesCompiledMiddlewareConfig,
@@ -45,7 +45,7 @@ import {
45
45
  } from "./chunk-ZZGQD7A4.mjs";
46
46
  import {
47
47
  FARM_VERSION
48
- } from "./chunk-YGZH4T2X.mjs";
48
+ } from "./chunk-FHQZJJQR.mjs";
49
49
  import {
50
50
  localizeFarmPathname
51
51
  } from "./chunk-L3KT7IXV.mjs";