@farm.js/core 0.1.51-beta.1 → 0.1.51-beta.3

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 (187) hide show
  1. package/dist/{agent-mcp-handler-WWCC4GLG.mjs → agent-mcp-handler-7JSKGSOW.mjs} +4 -4
  2. package/dist/{agent-mcp-handler-RT3COCEL.cjs → agent-mcp-handler-YE4AGWHN.cjs} +5 -5
  3. package/dist/{agent-mcp.d-ZuuNgrkQ.d.ts → agent-mcp.d-BAR9njbJ.d.ts} +1 -1
  4. package/dist/{agent-mcp.d-BPzpKBHQ.d.mts → agent-mcp.d-BJKChOrO.d.mts} +1 -1
  5. package/dist/agent-runtime.d.mts +2 -2
  6. package/dist/agent-runtime.d.ts +2 -2
  7. package/dist/{analyzer-V74FTD2F.mjs → analyzer-OTPEWH5W.mjs} +82 -22
  8. package/dist/{analyzer-AZULAOPL.cjs → analyzer-TSQXZCZN.cjs} +82 -22
  9. package/dist/api/route-manager.d.mts +4 -4
  10. package/dist/api/route-manager.d.ts +4 -4
  11. package/dist/api/runtime.d.mts +3 -3
  12. package/dist/api/runtime.d.ts +3 -3
  13. package/dist/api.d.mts +4 -4
  14. package/dist/api.d.ts +4 -4
  15. package/dist/{app-manifest.d-HWhqbP2X.d.ts → app-manifest.d-BLFbaqx8.d.ts} +1 -1
  16. package/dist/{app-manifest.d-BJDcZn3W.d.mts → app-manifest.d-DEQNnNhV.d.mts} +1 -1
  17. package/dist/app-markdown.cjs +4 -4
  18. package/dist/app-markdown.d.mts +3 -3
  19. package/dist/app-markdown.d.ts +3 -3
  20. package/dist/app-markdown.mjs +3 -3
  21. package/dist/{app.d-B5EWdob-.d.ts → app.d-CNPaUYaa.d.ts} +4 -4
  22. package/dist/{app.d-DOGW1KI8.d.mts → app.d-CT7xDkj2.d.mts} +4 -4
  23. package/dist/{chunk-YVJV7Q2X.mjs → chunk-3BLEXUGE.mjs} +1 -1
  24. package/dist/chunk-3HLQTOVU.cjs +6 -0
  25. package/dist/{chunk-KU7MBLDZ.mjs → chunk-3SMXQNFD.mjs} +2 -2
  26. package/dist/{chunk-EWC76P5D.mjs → chunk-3TLKUBXG.mjs} +411 -166
  27. package/dist/{chunk-BSEKNTMS.mjs → chunk-3WSIYBMG.mjs} +41 -19
  28. package/dist/{chunk-JVBNKWLV.cjs → chunk-3XQ57EFI.cjs} +16 -16
  29. package/dist/{chunk-GW4YUIHW.mjs → chunk-3Z63X45F.mjs} +1 -1
  30. package/dist/{chunk-SCRC5AMM.mjs → chunk-4353ZRE5.mjs} +1 -1
  31. package/dist/{chunk-SBABQKPT.cjs → chunk-46KXZBOG.cjs} +5 -5
  32. package/dist/{chunk-2756SHCI.cjs → chunk-4CGOMZP3.cjs} +221 -199
  33. package/dist/{chunk-RMPNYUGT.cjs → chunk-4SEHMBL4.cjs} +10 -10
  34. package/dist/{chunk-QAIAFCRZ.mjs → chunk-4TKAIO2F.mjs} +3 -3
  35. package/dist/{chunk-NJLTQR5P.cjs → chunk-53SACYBY.cjs} +7 -7
  36. package/dist/{chunk-I3EFXUAR.mjs → chunk-5FXPJIOT.mjs} +2 -2
  37. package/dist/chunk-7FVVQEVL.cjs +541 -0
  38. package/dist/{chunk-IFBINMI4.cjs → chunk-7MD37P5V.cjs} +5 -5
  39. package/dist/{chunk-JATTVAHA.cjs → chunk-B3GM5I6N.cjs} +4 -4
  40. package/dist/chunk-C3BOESDW.mjs +541 -0
  41. package/dist/{chunk-WJFFPXCV.cjs → chunk-D7UQC4O6.cjs} +10 -8
  42. package/dist/{chunk-KRRZJ77U.mjs → chunk-E5DXF5GE.mjs} +2 -2
  43. package/dist/chunk-EFZGB7JC.cjs +114 -0
  44. package/dist/{chunk-NYQSC4DX.cjs → chunk-FFE2EMF7.cjs} +5 -5
  45. package/dist/{chunk-KMB5BMFX.mjs → chunk-GAO7MS5O.mjs} +9 -3
  46. package/dist/{chunk-HIFIG6HL.cjs → chunk-H33PJEXN.cjs} +5 -5
  47. package/dist/{chunk-TT66CP3P.cjs → chunk-HLWOWZFX.cjs} +2 -2
  48. package/dist/chunk-JXEPLIXD.cjs +389 -0
  49. package/dist/{chunk-VITZRYW3.cjs → chunk-KLNFJDFM.cjs} +15 -9
  50. package/dist/{chunk-KBRZAYI7.mjs → chunk-LDNSSHEG.mjs} +2 -2
  51. package/dist/chunk-LLZSYFOM.mjs +6 -0
  52. package/dist/{chunk-N77JBPLC.mjs → chunk-LPDKG6RA.mjs} +9 -7
  53. package/dist/chunk-MIGFX2FN.mjs +758 -0
  54. package/dist/{chunk-72D2NX77.mjs → chunk-MRNDAJEV.mjs} +1 -1
  55. package/dist/{chunk-5A5GAZ75.mjs → chunk-NOTSHVRN.mjs} +406 -234
  56. package/dist/{chunk-AGR7VJH2.cjs → chunk-OAMUSC7H.cjs} +1 -1
  57. package/dist/chunk-P6MHI5O2.cjs +758 -0
  58. package/dist/{chunk-EOSFVNXZ.mjs → chunk-R4PHCZ3G.mjs} +1 -1
  59. package/dist/{chunk-X2M4XN4V.cjs → chunk-TQMI6BYO.cjs} +675 -430
  60. package/dist/{chunk-76GHW3WI.cjs → chunk-TSFMFPRU.cjs} +4 -4
  61. package/dist/{chunk-5N7QAGEA.cjs → chunk-TWHXBMLJ.cjs} +37 -7
  62. package/dist/{chunk-BOVGCUDZ.cjs → chunk-UJL4JOXV.cjs} +2 -2
  63. package/dist/chunk-UQF3OJVE.mjs +389 -0
  64. package/dist/{chunk-XY4DYGSU.cjs → chunk-WGUHDWT5.cjs} +607 -435
  65. package/dist/{chunk-LAZK6UV7.mjs → chunk-YAJTD3ZG.mjs} +1 -1
  66. package/dist/{chunk-7UPCJDB5.mjs → chunk-YUEYBL35.mjs} +2 -2
  67. package/dist/{chunk-EIMK7D2D.mjs → chunk-ZD2VKAUI.mjs} +34 -4
  68. package/dist/chunk-ZNXTU4YH.mjs +114 -0
  69. package/dist/{client-plugins.d-C_3CdALC.d.mts → client-plugins.d-DllmH8eM.d.mts} +31 -5
  70. package/dist/{client-plugins.d-C0n8Yhh-.d.ts → client-plugins.d-n3iWY1EJ.d.ts} +31 -5
  71. package/dist/client-plugins.d.mts +2 -2
  72. package/dist/client-plugins.d.ts +2 -2
  73. package/dist/client.d.mts +7 -7
  74. package/dist/client.d.ts +7 -7
  75. package/dist/{config.d-CnhyvvmT.d.ts → config.d-DqKaCr1r.d.mts} +14 -3
  76. package/dist/{config.d-CnhyvvmT.d.mts → config.d-DqKaCr1r.d.ts} +14 -3
  77. package/dist/config.d.mts +2 -2
  78. package/dist/config.d.ts +2 -2
  79. package/dist/desktop.d.mts +3 -3
  80. package/dist/desktop.d.ts +3 -3
  81. package/dist/{devtools-KJFUE5FO.cjs → devtools-TO6TAO32.cjs} +5 -5
  82. package/dist/{devtools-BU5IT2PD.mjs → devtools-UESYARTF.mjs} +4 -4
  83. package/dist/docs.cjs +7 -7
  84. package/dist/docs.d.mts +3 -3
  85. package/dist/docs.d.ts +3 -3
  86. package/dist/docs.mjs +6 -6
  87. package/dist/index.cjs +23 -18
  88. package/dist/{index.d-CsGxS-hZ.d.mts → index.d-BL7KKiwa.d.mts} +1 -1
  89. package/dist/{index.d-B6M_8kmo.d.ts → index.d-BXsAXm1U.d.ts} +1 -1
  90. package/dist/index.d.mts +17 -17
  91. package/dist/index.d.ts +17 -17
  92. package/dist/index.mjs +23 -18
  93. package/dist/integrations.d.mts +2 -2
  94. package/dist/integrations.d.ts +2 -2
  95. package/dist/internal/app-markdown-runtime.cjs +3 -3
  96. package/dist/internal/app-markdown-runtime.d.mts +3 -3
  97. package/dist/internal/app-markdown-runtime.d.ts +3 -3
  98. package/dist/internal/app-markdown-runtime.mjs +2 -2
  99. package/dist/internal/build-runtime.cjs +21 -18
  100. package/dist/internal/build-runtime.d.mts +4 -4
  101. package/dist/internal/build-runtime.d.ts +4 -4
  102. package/dist/internal/build-runtime.mjs +20 -17
  103. package/dist/internal/cli-runtime.cjs +7 -7
  104. package/dist/internal/cli-runtime.mjs +6 -6
  105. package/dist/internal/client-error-overlay.cjs +4 -4
  106. package/dist/internal/client-error-overlay.mjs +1 -1
  107. package/dist/internal/client-runtime.d.mts +5 -5
  108. package/dist/internal/client-runtime.d.ts +5 -5
  109. package/dist/internal/compression-runtime.d.mts +2 -2
  110. package/dist/internal/compression-runtime.d.ts +2 -2
  111. package/dist/internal/config-runtime.cjs +6 -6
  112. package/dist/internal/config-runtime.d.mts +41 -80
  113. package/dist/internal/config-runtime.d.ts +41 -80
  114. package/dist/internal/config-runtime.mjs +5 -5
  115. package/dist/internal/infra-analytics-runtime.cjs +8 -8
  116. package/dist/internal/infra-analytics-runtime.mjs +6 -6
  117. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  118. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  119. package/dist/internal/production-runtime.cjs +91 -9
  120. package/dist/internal/production-runtime.d.mts +67 -12
  121. package/dist/internal/production-runtime.d.ts +67 -12
  122. package/dist/internal/production-runtime.mjs +90 -8
  123. package/dist/markdown.cjs +4 -2
  124. package/dist/markdown.d.mts +2 -2
  125. package/dist/markdown.d.ts +2 -2
  126. package/dist/markdown.mjs +3 -1
  127. package/dist/middleware.d.mts +4 -4
  128. package/dist/middleware.d.ts +4 -4
  129. package/dist/mobile.d.mts +21 -5
  130. package/dist/mobile.d.ts +21 -5
  131. package/dist/native-tree-EBPDFTRW.mjs +25 -0
  132. package/dist/native-tree-MMZS7S6W.cjs +25 -0
  133. package/dist/{navigation-delegate.d-C0BbdUgN.d.mts → navigation-delegate.d-C76gXTmO.d.mts} +1 -1
  134. package/dist/{navigation-delegate.d-jArRF0ZP.d.ts → navigation-delegate.d-DIyDslxt.d.ts} +1 -1
  135. package/dist/navigation.d.mts +5 -5
  136. package/dist/navigation.d.ts +5 -5
  137. package/dist/plugin.cjs +14 -13
  138. package/dist/plugin.d.mts +5 -4
  139. package/dist/plugin.d.ts +5 -4
  140. package/dist/plugin.mjs +13 -12
  141. package/dist/{production-runtime.d-DFaQ1qaV.d.mts → production-runtime.d-CDHztggO.d.mts} +1 -1
  142. package/dist/{production-runtime.d-UnXmSS_S.d.ts → production-runtime.d-tyaGdbk6.d.ts} +1 -1
  143. package/dist/{programmatic-routes-client.d-VZ0qcbH4.d.ts → programmatic-routes-client.d-XfmIrCK1.d.ts} +2 -2
  144. package/dist/{programmatic-routes-client.d-BIowUXQC.d.mts → programmatic-routes-client.d-aAWiDd64.d.mts} +2 -2
  145. package/dist/{render-plan.d-BNeqyPyJ.d.mts → render-plan.d-Diwybxo8.d.mts} +1 -1
  146. package/dist/{render-plan.d-BB6KrYjP.d.ts → render-plan.d-Dr5WRjoV.d.ts} +1 -1
  147. package/dist/renderer-client.d.mts +5 -5
  148. package/dist/renderer-client.d.ts +5 -5
  149. package/dist/{request.d-Bxhghm76.d.ts → request.d-D01fRn--.d.ts} +1 -1
  150. package/dist/{request.d-BV1munmx.d.mts → request.d-Dd3AFR79.d.mts} +1 -1
  151. package/dist/request.d.mts +3 -3
  152. package/dist/request.d.ts +3 -3
  153. package/dist/{route-rendering.d-DShqKlgK.d.mts → route-rendering.d-BQ53lJ_D.d.mts} +1 -1
  154. package/dist/{route-rendering.d-BIf7zE9d.d.ts → route-rendering.d-Bhx4QoJt.d.ts} +1 -1
  155. package/dist/{router.d-BE7i84fb.d.mts → router.d-Bi23a6Xc.d.mts} +1 -1
  156. package/dist/{router.d-Bw3K3b0a.d.ts → router.d-DQ3k7EYn.d.ts} +1 -1
  157. package/dist/{routes.d-_5tBQexL.d.mts → routes.d-BgTd7vI4.d.mts} +91 -4
  158. package/dist/{routes.d-DVZQL0-H.d.ts → routes.d-C7jMJFvP.d.ts} +91 -4
  159. package/dist/routes.d.mts +2 -2
  160. package/dist/routes.d.ts +2 -2
  161. package/dist/{rsc-pipeline-FBM6NFYY.mjs → rsc-pipeline-K3ER3Q4N.mjs} +5 -5
  162. package/dist/{rsc-pipeline-IQI5XQLS.cjs → rsc-pipeline-OCZIT5OF.cjs} +6 -6
  163. package/dist/{runtime-DXEVFYLE.cjs → runtime-DKNSIH7V.cjs} +85 -29
  164. package/dist/{runtime-2JYIDUON.mjs → runtime-MKYDEUZT.mjs} +75 -19
  165. package/dist/{runtime.d-CQgoYR0Q.d.mts → runtime.d-B2Js6qZ2.d.mts} +1 -1
  166. package/dist/{runtime.d-CfhaLPl-.d.ts → runtime.d-BL-CGwoi.d.ts} +1 -1
  167. package/dist/server-plugins.d.mts +3 -3
  168. package/dist/server-plugins.d.ts +3 -3
  169. package/dist/server.cjs +31 -30
  170. package/dist/server.d.mts +11 -10
  171. package/dist/server.d.ts +11 -10
  172. package/dist/server.mjs +16 -15
  173. package/dist/session-AAU7RNRO.cjs +23 -0
  174. package/dist/session-IGEDQ5PY.mjs +23 -0
  175. package/dist/{spa-router.d-D63jb6nX.d.mts → spa-router.d-B2rIFGs0.d.mts} +2 -2
  176. package/dist/{spa-router.d-C5opIgXg.d.ts → spa-router.d-DqZ6Lfs0.d.ts} +2 -2
  177. package/dist/testing.d.mts +2 -2
  178. package/dist/testing.d.ts +2 -2
  179. package/dist/{utils.d-CkpTqTsC.d.ts → utils.d-Bv2MPeLR.d.ts} +1 -1
  180. package/dist/{utils.d-CO-U4OVZ.d.mts → utils.d-fqXe8lNc.d.mts} +1 -1
  181. package/dist/version.cjs +2 -2
  182. package/dist/version.mjs +1 -1
  183. package/dist/vite.cjs +14 -13
  184. package/dist/vite.d.mts +12 -6
  185. package/dist/vite.d.ts +12 -6
  186. package/dist/vite.mjs +13 -12
  187. package/package.json +3 -3
@@ -1,10 +1,10 @@
1
- import { bo as ResolvedFarmConfig, p as FarmUserConfig } from '../client-plugins.d-C0n8Yhh-.js';
2
- export { bv as FarmDesktopDevSession, bw as FarmDesktopSetupOptions, bx as createFarmDesktopContext, by as getFarmDesktopOutputDirs, bz as installFarmDesktopSetup, O as loadConfig, Q as resolveConfig, S as resolveDeployConfig, bA as resolveFarmDesktopBlock, bB as resolveFarmDesktopConfig, bC as setFarmDesktopDevSession, bD as validateFarmDesktopConfig } from '../client-plugins.d-C0n8Yhh-.js';
1
+ import { bo as ResolvedFarmConfig, p as FarmUserConfig } from '../client-plugins.d-n3iWY1EJ.js';
2
+ export { bv as FarmDesktopDevSession, bw as FarmDesktopSetupOptions, bx as createFarmDesktopContext, by as getFarmDesktopOutputDirs, bz as installFarmDesktopSetup, O as loadConfig, Q as resolveConfig, S as resolveDeployConfig, bA as resolveFarmDesktopBlock, bB as resolveFarmDesktopConfig, bC as setFarmDesktopDevSession, bD as validateFarmDesktopConfig } from '../client-plugins.d-n3iWY1EJ.js';
3
3
  import { P as PlatformRouteFiles } from '../generate-route-types.d-BL2pq6xC.js';
4
- import { F as FarmMobileOS, f as FarmMobileNativeEngine, d as FarmMobileNativeAuto, l as FarmMobileScreen, c as FarmMobileContext, R as ResolvedFarmMobileConfig, o as FarmMobileBlockCache, a as FarmMobileBudgets, b as FarmMobileConfigInput, p as FarmMobileContextOptions, e as FarmMobileNativeConfig, g as FarmMobileNativeRouteConfig, h as FarmMobilePageConfig, i as FarmMobilePrefetch, j as FarmMobilePresentation, q as FarmMobileResolveOptions, k as FarmMobileRouteConfig, m as FarmMobileTab, n as FarmMobileUserConfig, r as ResolvedFarmMobileNativeConfig, s as createFarmMobileContext, t as resolveFarmMobileBlock, u as resolveFarmMobileConfig, v as resolveFarmMobileServer, w as validateFarmMobileConfig, x as validateFarmMobilePageConfig } from '../config.d-CnhyvvmT.js';
5
- import { b as FarmMobileScreenSource, c as FarmMobileScreenDecision, F as FarmMobileRouteManifest, d as FarmMobilePageExport, e as FarmMobileRouteManifestOptions, a as FarmMobileRouteRule, f as FarmMobileScreens, g as FarmMobileScreensOptions, h as createFarmMobileModuleId, i as createFarmMobileRouteManifest, j as createFarmMobileRoutePattern, r as readFarmMobilePageExport, k as resolveFarmMobileScreens } from '../routes.d-DVZQL0-H.js';
4
+ import { F as FarmMobileOS, f as FarmMobileNativeEngine, d as FarmMobileNativeAuto, l as FarmMobileRouteScreen, m as FarmMobileScreen, c as FarmMobileContext, R as ResolvedFarmMobileConfig, p as FarmMobileBlockCache, a as FarmMobileBudgets, b as FarmMobileConfigInput, q as FarmMobileContextOptions, e as FarmMobileNativeConfig, g as FarmMobileNativeRouteConfig, h as FarmMobilePageConfig, i as FarmMobilePrefetch, j as FarmMobilePresentation, r as FarmMobileResolveOptions, k as FarmMobileRouteConfig, n as FarmMobileTab, o as FarmMobileUserConfig, s as ResolvedFarmMobileNativeConfig, t as createFarmMobileContext, u as resolveFarmMobileBlock, v as resolveFarmMobileConfig, w as resolveFarmMobileServer, x as validateFarmMobileConfig, y as validateFarmMobilePageConfig } from '../config.d-DqKaCr1r.js';
5
+ import { b as FarmMobileTier, c as FarmMobileScreenSource, d as FarmMobileRouteAnalysis, e as FarmMobileScreenDecision, f as FarmMobileAnalyzerStats, F as FarmMobileRouteManifest, g as FarmMobileBlocker, h as FarmMobileBlockerRule, i as FarmMobilePageExport, j as FarmMobileRouteManifestOptions, a as FarmMobileRouteRule, k as FarmMobileScreens, l as FarmMobileScreensOptions, m as FarmUiNode, n as createFarmMobileModuleId, o as createFarmMobileRouteManifest, p as createFarmMobileRoutePattern, r as readFarmMobilePageExport, q as resolveFarmMobileScreens } from '../routes.d-C7jMJFvP.js';
6
6
  export { F as FarmProductionViteRuntime, l as loadFarmProductionVite } from '../production-vite.d-BQFAlG7n.js';
7
- export { l as logger } from '../utils.d-CkpTqTsC.js';
7
+ export { l as logger } from '../utils.d-Bv2MPeLR.js';
8
8
  import '../lifecycle.d-C2aLBOwu.js';
9
9
  import '../route.d-DBTEqifW.js';
10
10
  import '../endpoint.d-BgHn0lhl.js';
@@ -37,73 +37,6 @@ import '../types.d-C41ePjvP.js';
37
37
  import '../types.d-DQnyD3VD.js';
38
38
  import '../font.js';
39
39
 
40
- type FarmUiNodeKind = "View" | "Text" | "Image" | "Pressable" | "TextInput" | "List";
41
- /** A minimal, platform-neutral UI tree for a portable component. No emitter reads it yet. */
42
- interface FarmUiNode {
43
- kind: FarmUiNodeKind | "Component" | "Fragment";
44
- /** The JSX tag it came from, such as `"button"` or `"Card"`. */
45
- tag: string;
46
- /** Static props, such as `href`, `src`, `alt`, `placeholder`. Expressions are `"{expr}"`. */
47
- props?: Record<string, string | number | boolean>;
48
- /** Tailwind classes and inline style keys that map to native style. */
49
- style?: string[];
50
- /** Event props, such as `["onClick"]`. */
51
- events?: string[];
52
- /** Static text children. */
53
- text?: string;
54
- children?: FarmUiNode[];
55
- }
56
- interface FarmMobileBlocker {
57
- /** App-root-relative POSIX path. */
58
- file: string;
59
- line: number;
60
- column: number;
61
- rule: FarmMobileBlockerRule;
62
- message: string;
63
- }
64
- type FarmMobileBlockerRule = "parse-error" | "markdown-page" | "programmatic-route" | "server-component" | "async-component" | "unmapped-element" | "dangerously-set-inner-html" | "content-editable" | "dom-ref" | "dom-event" | "spread-props" | "form-action" | "dynamic-component" | "runtime-class-name" | "class-name" | "runtime-style" | "style" | "browser-global" | "layout-effect" | "create-element" | "css-import" | "dom-package" | "unknown-package" | "unmapped-import" | "unresolved-import" | "dynamic-import" | "node-builtin";
65
- type FarmMobileWin = "list" | "input" | "timer";
66
- interface FarmMobileElementCounts {
67
- /** JSX elements in the route's modules, intrinsic and imported components. */
68
- total: number;
69
- /** Elements with a native mapping. */
70
- mapped: number;
71
- byKind: Partial<Record<FarmUiNodeKind, number>>;
72
- }
73
- interface FarmMobileRouteAnalysis {
74
- route: string;
75
- /**
76
- * `"port"`: portable and native would help (lists, input, timers). `"web"`: blocked, or
77
- * portable with no win. Any doubt is web.
78
- */
79
- decision: "port" | "web";
80
- portable: boolean;
81
- /** Every blocker, the page's module graph first, then its layouts'. */
82
- blockers: FarmMobileBlocker[];
83
- wins: FarmMobileWin[];
84
- elements: FarmMobileElementCounts;
85
- /** `mapped / total`, rounded, 100 for a route with no elements. */
86
- portablePercent: number;
87
- /** App modules in the route's graph, page and layouts. */
88
- modules: number;
89
- /** Byte size of `ir` as JSON. Portable routes only. */
90
- irBytes?: number;
91
- ir?: FarmMobileRouteIR;
92
- }
93
- interface FarmMobileRouteIR {
94
- /** The page component, as `"<file>#default"`. */
95
- root: string;
96
- components: Record<string, FarmUiNode>;
97
- }
98
- interface FarmMobileAnalyzerStats {
99
- /** Distinct app modules read. */
100
- modules: number;
101
- /** Modules parsed in this run; the rest came from the content-hash cache. */
102
- parsed: number;
103
- cached: number;
104
- ms: number;
105
- }
106
-
107
40
  /**
108
41
  * `.farm/output/mobile/native-report.json` and its terminal table: what each route shows, and
109
42
  * for routes the analyzer looked at, whether it could become a native screen and why not.
@@ -112,7 +45,7 @@ interface FarmMobileAnalyzerStats {
112
45
  interface FarmMobileNativeReportRoute {
113
46
  route: string;
114
47
  /** What `farm-routes.json` shows for the route. */
115
- screen: FarmMobileScreen;
48
+ screen: FarmMobileRouteScreen;
116
49
  source: FarmMobileScreenSource;
117
50
  requested?: Exclude<FarmMobileScreen, "web">;
118
51
  /** The page export or screen file that decided, app-root-relative. */
@@ -136,6 +69,8 @@ interface FarmMobileNativeReport {
136
69
  blocked: number;
137
70
  /** Native or platform screens from files or config. */
138
71
  native: number;
72
+ /** Analyzed routes per tier: what each could become. */
73
+ tiers: Record<FarmMobileTier, number>;
139
74
  };
140
75
  routes: FarmMobileNativeReportRoute[];
141
76
  }
@@ -153,6 +88,25 @@ declare function formatFarmMobileNativeReport(report: FarmMobileNativeReport, op
153
88
  file?: string;
154
89
  }): string;
155
90
 
91
+ /** `.farm/mobile-client.json` once the build has finished. */
92
+ interface FarmMobileClientManifest {
93
+ version: 1;
94
+ /** The web client entry documents reference, such as `/farm-client-h1a2b3c4d.js`. */
95
+ webEntry: string;
96
+ /** The mobile client entry a shell's documents load instead. */
97
+ entry: string;
98
+ /** The stylesheet both clients use. */
99
+ stylesheet: string;
100
+ /**
101
+ * Every content-hashed file a shell's document loads, as URL paths: the mobile client's
102
+ * chunks and assets, the stylesheet, and the files the stylesheet references. A shell may
103
+ * answer exactly these paths from its bundle; a hashed name only ever has these bytes.
104
+ */
105
+ files: string[];
106
+ }
107
+ /** Read the finished manifest, or null when the last build had no mobile client. */
108
+ declare function readFarmMobileClientManifest(buildDir: string): Promise<FarmMobileClientManifest | null>;
109
+
156
110
  /** An expected failure with its own fix; the CLI prints it without a stack. */
157
111
  declare class FarmMobileError extends Error {
158
112
  name: string;
@@ -170,6 +124,8 @@ declare function getFarmMobileOutputDirs(distDir: string): {
170
124
  dist: string;
171
125
  report: string;
172
126
  analyzerCache: string;
127
+ /** The production build's client output, which holds the mobile client a shell bundles. */
128
+ client: string;
173
129
  };
174
130
  interface FarmMobileAppOptions {
175
131
  root?: string;
@@ -189,7 +145,8 @@ interface FarmMobileAppOptions {
189
145
  cache?: FarmMobileBlockCache;
190
146
  /**
191
147
  * Run the build-time analyzer: `true` when `mobile.native.auto` is not `"off"` (what
192
- * `farm build --mobile` passes), `"always"` for an explicit `--report`. Never in dev.
148
+ * `farm build --mobile` passes), `"always"` for an explicit `--report`. Not in dev, except
149
+ * that a page with `export const mobile = { native: true }` is always checked.
193
150
  */
194
151
  analyze?: boolean | "always";
195
152
  }
@@ -222,13 +179,14 @@ declare function generateFarmMobileRoutes(options?: FarmMobileAppOptions): Promi
222
179
  table?: string;
223
180
  }>;
224
181
 
225
- type __mobile_runtime_FarmMobileAnalyzerStats = FarmMobileAnalyzerStats;
182
+ declare const __mobile_runtime_FarmMobileAnalyzerStats: typeof FarmMobileAnalyzerStats;
226
183
  type __mobile_runtime_FarmMobileApp = FarmMobileApp;
227
184
  type __mobile_runtime_FarmMobileAppOptions = FarmMobileAppOptions;
228
185
  declare const __mobile_runtime_FarmMobileBlockCache: typeof FarmMobileBlockCache;
229
- type __mobile_runtime_FarmMobileBlocker = FarmMobileBlocker;
230
- type __mobile_runtime_FarmMobileBlockerRule = FarmMobileBlockerRule;
186
+ declare const __mobile_runtime_FarmMobileBlocker: typeof FarmMobileBlocker;
187
+ declare const __mobile_runtime_FarmMobileBlockerRule: typeof FarmMobileBlockerRule;
231
188
  declare const __mobile_runtime_FarmMobileBudgets: typeof FarmMobileBudgets;
189
+ type __mobile_runtime_FarmMobileClientManifest = FarmMobileClientManifest;
232
190
  declare const __mobile_runtime_FarmMobileConfigInput: typeof FarmMobileConfigInput;
233
191
  declare const __mobile_runtime_FarmMobileContext: typeof FarmMobileContext;
234
192
  declare const __mobile_runtime_FarmMobileContextOptions: typeof FarmMobileContextOptions;
@@ -246,19 +204,21 @@ declare const __mobile_runtime_FarmMobilePageExport: typeof FarmMobilePageExport
246
204
  declare const __mobile_runtime_FarmMobilePrefetch: typeof FarmMobilePrefetch;
247
205
  declare const __mobile_runtime_FarmMobilePresentation: typeof FarmMobilePresentation;
248
206
  declare const __mobile_runtime_FarmMobileResolveOptions: typeof FarmMobileResolveOptions;
249
- type __mobile_runtime_FarmMobileRouteAnalysis = FarmMobileRouteAnalysis;
207
+ declare const __mobile_runtime_FarmMobileRouteAnalysis: typeof FarmMobileRouteAnalysis;
250
208
  declare const __mobile_runtime_FarmMobileRouteConfig: typeof FarmMobileRouteConfig;
251
209
  declare const __mobile_runtime_FarmMobileRouteManifest: typeof FarmMobileRouteManifest;
252
210
  declare const __mobile_runtime_FarmMobileRouteManifestOptions: typeof FarmMobileRouteManifestOptions;
253
211
  declare const __mobile_runtime_FarmMobileRouteRule: typeof FarmMobileRouteRule;
212
+ declare const __mobile_runtime_FarmMobileRouteScreen: typeof FarmMobileRouteScreen;
254
213
  declare const __mobile_runtime_FarmMobileScreen: typeof FarmMobileScreen;
255
214
  declare const __mobile_runtime_FarmMobileScreenDecision: typeof FarmMobileScreenDecision;
256
215
  declare const __mobile_runtime_FarmMobileScreenSource: typeof FarmMobileScreenSource;
257
216
  declare const __mobile_runtime_FarmMobileScreens: typeof FarmMobileScreens;
258
217
  declare const __mobile_runtime_FarmMobileScreensOptions: typeof FarmMobileScreensOptions;
259
218
  declare const __mobile_runtime_FarmMobileTab: typeof FarmMobileTab;
219
+ declare const __mobile_runtime_FarmMobileTier: typeof FarmMobileTier;
260
220
  declare const __mobile_runtime_FarmMobileUserConfig: typeof FarmMobileUserConfig;
261
- type __mobile_runtime_FarmUiNode = FarmUiNode;
221
+ declare const __mobile_runtime_FarmUiNode: typeof FarmUiNode;
262
222
  declare const __mobile_runtime_ResolvedFarmMobileConfig: typeof ResolvedFarmMobileConfig;
263
223
  declare const __mobile_runtime_ResolvedFarmMobileNativeConfig: typeof ResolvedFarmMobileNativeConfig;
264
224
  declare const __mobile_runtime_createFarmMobileContext: typeof createFarmMobileContext;
@@ -269,6 +229,7 @@ declare const __mobile_runtime_createFarmMobileRoutePattern: typeof createFarmMo
269
229
  declare const __mobile_runtime_formatFarmMobileNativeReport: typeof formatFarmMobileNativeReport;
270
230
  declare const __mobile_runtime_generateFarmMobileRoutes: typeof generateFarmMobileRoutes;
271
231
  declare const __mobile_runtime_getFarmMobileOutputDirs: typeof getFarmMobileOutputDirs;
232
+ declare const __mobile_runtime_readFarmMobileClientManifest: typeof readFarmMobileClientManifest;
272
233
  declare const __mobile_runtime_readFarmMobilePageExport: typeof readFarmMobilePageExport;
273
234
  declare const __mobile_runtime_resolveFarmMobileApp: typeof resolveFarmMobileApp;
274
235
  declare const __mobile_runtime_resolveFarmMobileBlock: typeof resolveFarmMobileBlock;
@@ -278,7 +239,7 @@ declare const __mobile_runtime_resolveFarmMobileServer: typeof resolveFarmMobile
278
239
  declare const __mobile_runtime_validateFarmMobileConfig: typeof validateFarmMobileConfig;
279
240
  declare const __mobile_runtime_validateFarmMobilePageConfig: typeof validateFarmMobilePageConfig;
280
241
  declare namespace __mobile_runtime {
281
- export { type __mobile_runtime_FarmMobileAnalyzerStats as FarmMobileAnalyzerStats, type __mobile_runtime_FarmMobileApp as FarmMobileApp, type __mobile_runtime_FarmMobileAppOptions as FarmMobileAppOptions, __mobile_runtime_FarmMobileBlockCache as FarmMobileBlockCache, type __mobile_runtime_FarmMobileBlocker as FarmMobileBlocker, type __mobile_runtime_FarmMobileBlockerRule as FarmMobileBlockerRule, __mobile_runtime_FarmMobileBudgets as FarmMobileBudgets, __mobile_runtime_FarmMobileConfigInput as FarmMobileConfigInput, __mobile_runtime_FarmMobileContext as FarmMobileContext, __mobile_runtime_FarmMobileContextOptions as FarmMobileContextOptions, __mobile_runtime_FarmMobileError as FarmMobileError, __mobile_runtime_FarmMobileNativeAuto as FarmMobileNativeAuto, __mobile_runtime_FarmMobileNativeConfig as FarmMobileNativeConfig, __mobile_runtime_FarmMobileNativeEngine as FarmMobileNativeEngine, type __mobile_runtime_FarmMobileNativeReport as FarmMobileNativeReport, type __mobile_runtime_FarmMobileNativeReportRoute as FarmMobileNativeReportRoute, __mobile_runtime_FarmMobileNativeRouteConfig as FarmMobileNativeRouteConfig, __mobile_runtime_FarmMobileOS as FarmMobileOS, __mobile_runtime_FarmMobilePageConfig as FarmMobilePageConfig, __mobile_runtime_FarmMobilePageExport as FarmMobilePageExport, __mobile_runtime_FarmMobilePrefetch as FarmMobilePrefetch, __mobile_runtime_FarmMobilePresentation as FarmMobilePresentation, __mobile_runtime_FarmMobileResolveOptions as FarmMobileResolveOptions, type __mobile_runtime_FarmMobileRouteAnalysis as FarmMobileRouteAnalysis, __mobile_runtime_FarmMobileRouteConfig as FarmMobileRouteConfig, __mobile_runtime_FarmMobileRouteManifest as FarmMobileRouteManifest, __mobile_runtime_FarmMobileRouteManifestOptions as FarmMobileRouteManifestOptions, __mobile_runtime_FarmMobileRouteRule as FarmMobileRouteRule, __mobile_runtime_FarmMobileScreen as FarmMobileScreen, __mobile_runtime_FarmMobileScreenDecision as FarmMobileScreenDecision, __mobile_runtime_FarmMobileScreenSource as FarmMobileScreenSource, __mobile_runtime_FarmMobileScreens as FarmMobileScreens, __mobile_runtime_FarmMobileScreensOptions as FarmMobileScreensOptions, __mobile_runtime_FarmMobileTab as FarmMobileTab, __mobile_runtime_FarmMobileUserConfig as FarmMobileUserConfig, type __mobile_runtime_FarmUiNode as FarmUiNode, __mobile_runtime_ResolvedFarmMobileConfig as ResolvedFarmMobileConfig, __mobile_runtime_ResolvedFarmMobileNativeConfig as ResolvedFarmMobileNativeConfig, __mobile_runtime_createFarmMobileContext as createFarmMobileContext, __mobile_runtime_createFarmMobileModuleId as createFarmMobileModuleId, __mobile_runtime_createFarmMobileNativeReport as createFarmMobileNativeReport, __mobile_runtime_createFarmMobileRouteManifest as createFarmMobileRouteManifest, __mobile_runtime_createFarmMobileRoutePattern as createFarmMobileRoutePattern, __mobile_runtime_formatFarmMobileNativeReport as formatFarmMobileNativeReport, __mobile_runtime_generateFarmMobileRoutes as generateFarmMobileRoutes, __mobile_runtime_getFarmMobileOutputDirs as getFarmMobileOutputDirs, __mobile_runtime_readFarmMobilePageExport as readFarmMobilePageExport, __mobile_runtime_resolveFarmMobileApp as resolveFarmMobileApp, __mobile_runtime_resolveFarmMobileBlock as resolveFarmMobileBlock, __mobile_runtime_resolveFarmMobileConfig as resolveFarmMobileConfig, __mobile_runtime_resolveFarmMobileScreens as resolveFarmMobileScreens, __mobile_runtime_resolveFarmMobileServer as resolveFarmMobileServer, __mobile_runtime_validateFarmMobileConfig as validateFarmMobileConfig, __mobile_runtime_validateFarmMobilePageConfig as validateFarmMobilePageConfig };
242
+ export { __mobile_runtime_FarmMobileAnalyzerStats as FarmMobileAnalyzerStats, type __mobile_runtime_FarmMobileApp as FarmMobileApp, type __mobile_runtime_FarmMobileAppOptions as FarmMobileAppOptions, __mobile_runtime_FarmMobileBlockCache as FarmMobileBlockCache, __mobile_runtime_FarmMobileBlocker as FarmMobileBlocker, __mobile_runtime_FarmMobileBlockerRule as FarmMobileBlockerRule, __mobile_runtime_FarmMobileBudgets as FarmMobileBudgets, type __mobile_runtime_FarmMobileClientManifest as FarmMobileClientManifest, __mobile_runtime_FarmMobileConfigInput as FarmMobileConfigInput, __mobile_runtime_FarmMobileContext as FarmMobileContext, __mobile_runtime_FarmMobileContextOptions as FarmMobileContextOptions, __mobile_runtime_FarmMobileError as FarmMobileError, __mobile_runtime_FarmMobileNativeAuto as FarmMobileNativeAuto, __mobile_runtime_FarmMobileNativeConfig as FarmMobileNativeConfig, __mobile_runtime_FarmMobileNativeEngine as FarmMobileNativeEngine, type __mobile_runtime_FarmMobileNativeReport as FarmMobileNativeReport, type __mobile_runtime_FarmMobileNativeReportRoute as FarmMobileNativeReportRoute, __mobile_runtime_FarmMobileNativeRouteConfig as FarmMobileNativeRouteConfig, __mobile_runtime_FarmMobileOS as FarmMobileOS, __mobile_runtime_FarmMobilePageConfig as FarmMobilePageConfig, __mobile_runtime_FarmMobilePageExport as FarmMobilePageExport, __mobile_runtime_FarmMobilePrefetch as FarmMobilePrefetch, __mobile_runtime_FarmMobilePresentation as FarmMobilePresentation, __mobile_runtime_FarmMobileResolveOptions as FarmMobileResolveOptions, __mobile_runtime_FarmMobileRouteAnalysis as FarmMobileRouteAnalysis, __mobile_runtime_FarmMobileRouteConfig as FarmMobileRouteConfig, __mobile_runtime_FarmMobileRouteManifest as FarmMobileRouteManifest, __mobile_runtime_FarmMobileRouteManifestOptions as FarmMobileRouteManifestOptions, __mobile_runtime_FarmMobileRouteRule as FarmMobileRouteRule, __mobile_runtime_FarmMobileRouteScreen as FarmMobileRouteScreen, __mobile_runtime_FarmMobileScreen as FarmMobileScreen, __mobile_runtime_FarmMobileScreenDecision as FarmMobileScreenDecision, __mobile_runtime_FarmMobileScreenSource as FarmMobileScreenSource, __mobile_runtime_FarmMobileScreens as FarmMobileScreens, __mobile_runtime_FarmMobileScreensOptions as FarmMobileScreensOptions, __mobile_runtime_FarmMobileTab as FarmMobileTab, __mobile_runtime_FarmMobileTier as FarmMobileTier, __mobile_runtime_FarmMobileUserConfig as FarmMobileUserConfig, __mobile_runtime_FarmUiNode as FarmUiNode, __mobile_runtime_ResolvedFarmMobileConfig as ResolvedFarmMobileConfig, __mobile_runtime_ResolvedFarmMobileNativeConfig as ResolvedFarmMobileNativeConfig, __mobile_runtime_createFarmMobileContext as createFarmMobileContext, __mobile_runtime_createFarmMobileModuleId as createFarmMobileModuleId, __mobile_runtime_createFarmMobileNativeReport as createFarmMobileNativeReport, __mobile_runtime_createFarmMobileRouteManifest as createFarmMobileRouteManifest, __mobile_runtime_createFarmMobileRoutePattern as createFarmMobileRoutePattern, __mobile_runtime_formatFarmMobileNativeReport as formatFarmMobileNativeReport, __mobile_runtime_generateFarmMobileRoutes as generateFarmMobileRoutes, __mobile_runtime_getFarmMobileOutputDirs as getFarmMobileOutputDirs, __mobile_runtime_readFarmMobileClientManifest as readFarmMobileClientManifest, __mobile_runtime_readFarmMobilePageExport as readFarmMobilePageExport, __mobile_runtime_resolveFarmMobileApp as resolveFarmMobileApp, __mobile_runtime_resolveFarmMobileBlock as resolveFarmMobileBlock, __mobile_runtime_resolveFarmMobileConfig as resolveFarmMobileConfig, __mobile_runtime_resolveFarmMobileScreens as resolveFarmMobileScreens, __mobile_runtime_resolveFarmMobileServer as resolveFarmMobileServer, __mobile_runtime_validateFarmMobileConfig as validateFarmMobileConfig, __mobile_runtime_validateFarmMobilePageConfig as validateFarmMobilePageConfig };
282
243
  }
283
244
 
284
245
  /** The `mobile` block and its route manifest, loaded only by mobile commands. */
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  resolveConfig,
7
7
  resolveDeployConfig
8
- } from "../chunk-KMB5BMFX.mjs";
8
+ } from "../chunk-GAO7MS5O.mjs";
9
9
  import "../chunk-VISQDC6W.mjs";
10
10
  import {
11
11
  createFarmDesktopContext,
@@ -22,9 +22,9 @@ import "../chunk-X3XUZWRB.mjs";
22
22
  import "../chunk-XR2ZIBQK.mjs";
23
23
  import "../chunk-CU5SYTJG.mjs";
24
24
  import "../chunk-ES2LD2YD.mjs";
25
- import "../chunk-KBRZAYI7.mjs";
25
+ import "../chunk-LDNSSHEG.mjs";
26
26
  import "../chunk-2WZTGPK6.mjs";
27
- import "../chunk-LAZK6UV7.mjs";
27
+ import "../chunk-YAJTD3ZG.mjs";
28
28
  import "../chunk-22W4FNTG.mjs";
29
29
  import "../chunk-2NGZFOKG.mjs";
30
30
  import "../chunk-N33DLJBC.mjs";
@@ -36,7 +36,7 @@ import "../chunk-X3JNB2TB.mjs";
36
36
  import "../chunk-WXFY5JIY.mjs";
37
37
  import "../chunk-FSQMN2MQ.mjs";
38
38
  import "../chunk-YWPNIYUP.mjs";
39
- import "../chunk-N77JBPLC.mjs";
39
+ import "../chunk-LPDKG6RA.mjs";
40
40
  import "../chunk-YP7YO3S3.mjs";
41
41
  import "../chunk-Y2G5SJFB.mjs";
42
42
  import "../chunk-H4WUWLQR.mjs";
@@ -75,7 +75,7 @@ import "../chunk-Y6FXYEAI.mjs";
75
75
 
76
76
  // src/config-runtime.ts
77
77
  function loadFarmMobileRuntime() {
78
- return import("../runtime-2JYIDUON.mjs");
78
+ return import("../runtime-MKYDEUZT.mjs");
79
79
  }
80
80
  export {
81
81
  createFarmDesktopContext,
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkIFBINMI4cjs = require('../chunk-IFBINMI4.cjs');
5
- require('../chunk-RMPNYUGT.cjs');
6
- require('../chunk-SBABQKPT.cjs');
4
+ var _chunk7MD37P5Vcjs = require('../chunk-7MD37P5V.cjs');
5
+ require('../chunk-4SEHMBL4.cjs');
6
+ require('../chunk-46KXZBOG.cjs');
7
7
  require('../chunk-SG57PX7K.cjs');
8
- require('../chunk-HIFIG6HL.cjs');
9
- require('../chunk-WJFFPXCV.cjs');
8
+ require('../chunk-H33PJEXN.cjs');
9
+ require('../chunk-D7UQC4O6.cjs');
10
10
  require('../chunk-6ONBZGVH.cjs');
11
11
  require('../chunk-EVIWKPJV.cjs');
12
12
  require('../chunk-LIFUPCXW.cjs');
13
13
  require('../chunk-JYT7AN37.cjs');
14
14
  require('../chunk-B5BBTPJQ.cjs');
15
- require('../chunk-AGR7VJH2.cjs');
15
+ require('../chunk-OAMUSC7H.cjs');
16
16
  require('../chunk-CA7DNRHO.cjs');
17
17
  require('../chunk-IWFV5ZED.cjs');
18
18
  require('../chunk-A25FXJ7D.cjs');
@@ -23,8 +23,8 @@ require('../chunk-YTVSWXEZ.cjs');
23
23
  require('../chunk-BTZ5O6VM.cjs');
24
24
 
25
25
  // src/infra-analytics-runtime.ts
26
- var createFarmInfraAnalyticsPlugin2 = _chunkIFBINMI4cjs.createFarmInfraAnalyticsPlugin;
27
- var createFarmInfraAnalyticsRecorder2 = _chunkIFBINMI4cjs.createFarmInfraAnalyticsRecorder;
26
+ var createFarmInfraAnalyticsPlugin2 = _chunk7MD37P5Vcjs.createFarmInfraAnalyticsPlugin;
27
+ var createFarmInfraAnalyticsRecorder2 = _chunk7MD37P5Vcjs.createFarmInfraAnalyticsRecorder;
28
28
 
29
29
 
30
30
 
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  createFarmInfraAnalyticsPlugin,
3
3
  createFarmInfraAnalyticsRecorder
4
- } from "../chunk-KU7MBLDZ.mjs";
5
- import "../chunk-QAIAFCRZ.mjs";
6
- import "../chunk-KRRZJ77U.mjs";
4
+ } from "../chunk-3SMXQNFD.mjs";
5
+ import "../chunk-4TKAIO2F.mjs";
6
+ import "../chunk-E5DXF5GE.mjs";
7
7
  import "../chunk-2WZTGPK6.mjs";
8
- import "../chunk-LAZK6UV7.mjs";
9
- import "../chunk-N77JBPLC.mjs";
8
+ import "../chunk-YAJTD3ZG.mjs";
9
+ import "../chunk-LPDKG6RA.mjs";
10
10
  import "../chunk-KJMWAUKE.mjs";
11
11
  import "../chunk-2DA7CLY7.mjs";
12
12
  import "../chunk-GFT5AHAT.mjs";
13
13
  import "../chunk-D2LCAV6L.mjs";
14
14
  import "../chunk-LM2YOGDK.mjs";
15
- import "../chunk-EOSFVNXZ.mjs";
15
+ import "../chunk-R4PHCZ3G.mjs";
16
16
  import "../chunk-GUZC226X.mjs";
17
17
  import "../chunk-BLD5GVCG.mjs";
18
18
  import "../chunk-LM55GS4R.mjs";
@@ -3,7 +3,7 @@
3
3
  var _chunkSGBNF56Scjs = require('../chunk-SGBNF56S.cjs');
4
4
 
5
5
 
6
- var _chunkAGR7VJH2cjs = require('../chunk-AGR7VJH2.cjs');
6
+ var _chunkOAMUSC7Hcjs = require('../chunk-OAMUSC7H.cjs');
7
7
  require('../chunk-BTZ5O6VM.cjs');
8
8
 
9
9
  // src/product-telemetry.ts
@@ -55,7 +55,7 @@ function createFarmProductionSiteReporter(options) {
55
55
  schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
56
56
  eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
57
57
  packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
58
- packageVersion: sanitizeDetail(_chunkAGR7VJH2cjs.FARM_VERSION, "unknown"),
58
+ packageVersion: sanitizeDetail(_chunkOAMUSC7Hcjs.FARM_VERSION, "unknown"),
59
59
  renderer: sanitizeDetail(options.renderer, "custom"),
60
60
  deployTarget: sanitizeDetail(options.deployTarget, "custom")
61
61
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-CSLUBKGG.mjs";
4
4
  import {
5
5
  FARM_VERSION
6
- } from "../chunk-EOSFVNXZ.mjs";
6
+ } from "../chunk-R4PHCZ3G.mjs";
7
7
  import "../chunk-Y6FXYEAI.mjs";
8
8
 
9
9
  // src/product-telemetry.ts
@@ -1,11 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkNJLTQR5Pcjs = require('../chunk-NJLTQR5P.cjs');
3
+ var _chunkJXEPLIXDcjs = require('../chunk-JXEPLIXD.cjs');
4
+ require('../chunk-P6MHI5O2.cjs');
5
+
6
+
7
+ var _chunk53SACYBYcjs = require('../chunk-53SACYBY.cjs');
4
8
 
5
9
 
6
10
  var _chunkVM57CK74cjs = require('../chunk-VM57CK74.cjs');
7
11
 
8
12
 
13
+ var _chunk7FVVQEVLcjs = require('../chunk-7FVVQEVL.cjs');
14
+
15
+
9
16
 
10
17
 
11
18
  var _chunkSUV6YO4Qcjs = require('../chunk-SUV6YO4Q.cjs');
@@ -32,7 +39,8 @@ var _chunkOCS3PSYRcjs = require('../chunk-OCS3PSYR.cjs');
32
39
 
33
40
 
34
41
 
35
- var _chunk76GHW3WIcjs = require('../chunk-76GHW3WI.cjs');
42
+ var _chunkTSFMFPRUcjs = require('../chunk-TSFMFPRU.cjs');
43
+ require('../chunk-3HLQTOVU.cjs');
36
44
 
37
45
 
38
46
  var _chunk47JV57DAcjs = require('../chunk-47JV57DA.cjs');
@@ -53,11 +61,11 @@ var _chunkSGBNF56Scjs = require('../chunk-SGBNF56S.cjs');
53
61
 
54
62
 
55
63
 
56
- var _chunkRMPNYUGTcjs = require('../chunk-RMPNYUGT.cjs');
64
+ var _chunk4SEHMBL4cjs = require('../chunk-4SEHMBL4.cjs');
57
65
 
58
66
 
59
67
 
60
- var _chunkSBABQKPTcjs = require('../chunk-SBABQKPT.cjs');
68
+ var _chunk46KXZBOGcjs = require('../chunk-46KXZBOG.cjs');
61
69
 
62
70
 
63
71
 
@@ -80,7 +88,7 @@ var _chunk4ZJ5C7UJcjs = require('../chunk-4ZJ5C7UJ.cjs');
80
88
 
81
89
 
82
90
 
83
- var _chunkNYQSC4DXcjs = require('../chunk-NYQSC4DX.cjs');
91
+ var _chunkFFE2EMF7cjs = require('../chunk-FFE2EMF7.cjs');
84
92
  require('../chunk-SG57PX7K.cjs');
85
93
 
86
94
 
@@ -89,7 +97,7 @@ require('../chunk-SG57PX7K.cjs');
89
97
 
90
98
 
91
99
 
92
- var _chunkHIFIG6HLcjs = require('../chunk-HIFIG6HL.cjs');
100
+ var _chunkH33PJEXNcjs = require('../chunk-H33PJEXN.cjs');
93
101
 
94
102
 
95
103
 
@@ -98,7 +106,7 @@ var _chunkHIFIG6HLcjs = require('../chunk-HIFIG6HL.cjs');
98
106
  var _chunk6JHZPB52cjs = require('../chunk-6JHZPB52.cjs');
99
107
  require('../chunk-FK25QSVC.cjs');
100
108
  require('../chunk-WT6RAN2I.cjs');
101
- require('../chunk-WJFFPXCV.cjs');
109
+ require('../chunk-D7UQC4O6.cjs');
102
110
 
103
111
 
104
112
 
@@ -165,7 +173,7 @@ var _chunkYIHRZBD7cjs = require('../chunk-YIHRZBD7.cjs');
165
173
  var _chunkLIFUPCXWcjs = require('../chunk-LIFUPCXW.cjs');
166
174
  require('../chunk-JYT7AN37.cjs');
167
175
  require('../chunk-B5BBTPJQ.cjs');
168
- require('../chunk-AGR7VJH2.cjs');
176
+ require('../chunk-OAMUSC7H.cjs');
169
177
 
170
178
 
171
179
 
@@ -513,6 +521,77 @@ function renderFarmLegacyErrorHtml() {
513
521
  return FARM_LEGACY_ERROR_HTML;
514
522
  }
515
523
 
524
+ // src/mobile/shell-response.ts
525
+ var FARM_SHELL_HEADER = "X-Farm-Shell";
526
+ function isFarmMobileShellRequest(request) {
527
+ const value = request.headers.get(FARM_SHELL_HEADER);
528
+ return value !== null && /^[a-z][a-z0-9-]{0,31}$/.test(value);
529
+ }
530
+ function isHtml(response) {
531
+ return _optionalChain([response, 'access', _7 => _7.headers, 'access', _8 => _8.get, 'call', _9 => _9("content-type"), 'optionalAccess', _10 => _10.toLowerCase, 'call', _11 => _11(), 'access', _12 => _12.includes, 'call', _13 => _13("text/html")]) === true;
532
+ }
533
+ function appendVary(headers, name) {
534
+ const current = headers.get("Vary");
535
+ if (!current) {
536
+ headers.set("Vary", name);
537
+ return;
538
+ }
539
+ const names = current.split(",").map((value) => value.trim().toLowerCase());
540
+ if (names.includes("*") || names.includes(name.toLowerCase())) return;
541
+ headers.set("Vary", `${current}, ${name}`);
542
+ }
543
+ function escapeRegExp(value) {
544
+ return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
545
+ }
546
+ var MAX_HELD_TAG = 4096;
547
+ function createFarmMobileShellRewriter(client) {
548
+ const entry = new RegExp(`(["'])${escapeRegExp(client.webEntry)}\\1`, "g");
549
+ const webOnly = new Set(client.webOnly);
550
+ const preload = /<link rel="modulepreload" href="\/([^"]+)"[^>]*>/g;
551
+ let held = "";
552
+ return (text, final = false) => {
553
+ let input = held + text;
554
+ held = "";
555
+ if (!final) {
556
+ const open = input.lastIndexOf("<");
557
+ if (open !== -1 && input.indexOf(">", open) === -1 && input.length - open <= MAX_HELD_TAG) {
558
+ held = input.slice(open);
559
+ input = input.slice(0, open);
560
+ }
561
+ }
562
+ return input.replace(entry, (_match, quote) => `${quote}${client.entry}${quote}`).replace(preload, (tag, file) => webOnly.has(file) ? "" : tag);
563
+ };
564
+ }
565
+ function _applyFarmMobileShellClient(request, response, client, onPrivate) {
566
+ if (!client || !isHtml(response)) return response;
567
+ if (!isFarmMobileShellRequest(request) || !response.body) {
568
+ return _chunkA25FXJ7Dcjs._withFarmResponseHeaders.call(void 0, response, (headers2) => appendVary(headers2, FARM_SHELL_HEADER));
569
+ }
570
+ _optionalChain([onPrivate, 'optionalCall', _14 => _14()]);
571
+ const headers = new Headers(_chunkSUV6YO4Qcjs._withFarmGuardedResponseCache.call(void 0, response).headers);
572
+ appendVary(headers, FARM_SHELL_HEADER);
573
+ headers.delete("content-length");
574
+ headers.delete("etag");
575
+ const rewrite = createFarmMobileShellRewriter(client);
576
+ const decoder = new TextDecoder();
577
+ const encoder = new TextEncoder();
578
+ const body = response.body.pipeThrough(
579
+ new TransformStream({
580
+ transform(chunk, controller) {
581
+ const output = rewrite(decoder.decode(chunk, { stream: true }));
582
+ if (output) controller.enqueue(encoder.encode(output));
583
+ },
584
+ flush(controller) {
585
+ const output = rewrite(decoder.decode(), true);
586
+ if (output) controller.enqueue(encoder.encode(output));
587
+ }
588
+ })
589
+ );
590
+ return _chunkA25FXJ7Dcjs._markFarmOwnedResponse.call(void 0,
591
+ new Response(body, { status: response.status, statusText: response.statusText, headers })
592
+ );
593
+ }
594
+
516
595
  // src/nitro/production-runtime.ts
517
596
  function appendFarmLinkHeader(headers, value) {
518
597
  const current = headers.get("Link");
@@ -658,4 +737,7 @@ function appendFarmLinkHeader(headers, value) {
658
737
 
659
738
 
660
739
 
661
- exports._farmPluginsKeepResponsesPrivate = _chunk47JV57DAcjs._farmPluginsKeepResponsesPrivate; exports._getRequestReadCount = _chunkHNAISJFDcjs._getRequestReadCount; exports._isFarmOwnedResponse = _chunkA25FXJ7Dcjs._isFarmOwnedResponse; exports._markFarmOwnedResponse = _chunkA25FXJ7Dcjs._markFarmOwnedResponse; exports._registerFarmStorageModules = _chunkJMYXO572cjs._registerFarmStorageModules; exports._resolveCurrentCspNonce = _chunk3BIASUGRcjs._resolveCurrentCspNonce; exports._runWithAPIRequestRuntime = _chunkKBGZ5FD6cjs._runWithAPIRequestRuntime; exports._runWithAfterRequest = _chunkP2355C6Ecjs._runWithAfterRequest; exports._runWithCurrentRequest = _chunkHNAISJFDcjs._runWithCurrentRequest; exports._runWithFarmCspNonce = _chunkHNAISJFDcjs._runWithFarmCspNonce; exports._runWithMiddlewareContext = _chunkYDXLC4DWcjs._runWithMiddlewareContext; exports._runWithMiddlewareData = _chunkYDXLC4DWcjs._runWithMiddlewareData; exports._setDefaultFarmThemeConfig = _chunk4ZJ5C7UJcjs._setDefaultFarmThemeConfig; exports._withFarmGuardedResponseCache = _chunkSUV6YO4Qcjs._withFarmGuardedResponseCache; exports._withFarmResponseHeaders = _chunkA25FXJ7Dcjs._withFarmResponseHeaders; exports.addMetadataImageReference = _chunk6IOZPJ3Icjs.addMetadataImageReference; exports.addMetadataMarkdownAlternate = _chunk6IOZPJ3Icjs.addMetadataMarkdownAlternate; exports.appMiddlewareMayHandlePath = _chunk76GHW3WIcjs.appMiddlewareMayHandlePath; exports.appendFarmLinkHeader = appendFarmLinkHeader; exports.appendFarmRedirectQuery = _chunkHXNLKCWHcjs.appendFarmRedirectQuery; exports.applyFarmBasePath = _chunkD22BUQKWcjs.applyFarmBasePath; exports.applyFarmCspNonceToResponse = _chunk6JHZPB52cjs.applyFarmCspNonceToResponse; exports.applyFarmPreviewRobotsTag = _chunkNYQSC4DXcjs.applyFarmPreviewRobotsTag; exports.applyFarmThemeDocument = _chunk76GHW3WIcjs.applyFarmThemeDocument; exports.applyProductionMiddlewareHeaders = _chunkSUV6YO4Qcjs.applyProductionMiddlewareHeaders; exports.bufferFarmRequestBody = _chunkLIFUPCXWcjs.bufferFarmRequestBody; exports.cloneFarmRequestWithContext = _chunkLIFUPCXWcjs.cloneFarmRequestWithContext; exports.collectFarmDefaultMCPPages = _chunkSBABQKPTcjs.collectFarmDefaultMCPPages; exports.collectFarmLlmsTxtPages = _chunkHIFIG6HLcjs.collectFarmLlmsTxtPages; exports.compareRouteSpecificity = _chunkYTVSWXEZcjs.compareRouteSpecificity; exports.configMiddlewareMayHandlePath = _chunk76GHW3WIcjs.configMiddlewareMayHandlePath; exports.configureFarmCache = _chunkDMAP4RNDcjs.configureFarmCache; exports.configureFarmObservability = _chunkEVIWKPJVcjs.configureFarmObservability; exports.createDefaultErrorMarkup = _chunk76GHW3WIcjs.createDefaultErrorMarkup; exports.createFarmAgentRobots = _chunkNYQSC4DXcjs.createFarmAgentRobots; exports.createFarmAiCatalogResponse = _chunkRMPNYUGTcjs.createFarmAiCatalogResponse; exports.createFarmApiCatalogResponse = _chunkRMPNYUGTcjs.createFarmApiCatalogResponse; exports.createFarmAppManifestResponse = _chunkRMPNYUGTcjs.createFarmAppManifestResponse; exports.createFarmCacheKey = _chunkDXUXQP2Tcjs.createFarmCacheKey; exports.createFarmCspNonce = _chunk6JHZPB52cjs.createFarmCspNonce; exports.createFarmDefaultLlmsTxt = _chunkHIFIG6HLcjs.createFarmDefaultLlmsTxt; exports.createFarmDefaultSitemap = _chunkNYQSC4DXcjs.createFarmDefaultSitemap; exports.createFarmInstrumentationLifecycle = _chunkOCS3PSYRcjs.createFarmInstrumentationLifecycle; exports.createFarmLayoutSelector = _chunk76GHW3WIcjs.createFarmLayoutSelector; exports.createFarmLegacyRequest = createFarmLegacyRequest; exports.createFarmLlmsFullRenderer = _chunkHIFIG6HLcjs.createFarmLlmsFullRenderer; exports.createFarmLlmsMarkdownReader = _chunkHIFIG6HLcjs.createFarmLlmsMarkdownReader; exports.createFarmLocaleCookie = _chunkVOQ7XZZTcjs.createFarmLocaleCookie; exports.createFarmMetadataRouteResponse = _chunk76GHW3WIcjs.createFarmMetadataRouteResponse; exports.createFarmNodeRequestAbortSignal = _chunkLIFUPCXWcjs.createFarmNodeRequestAbortSignal; exports.createFarmProductionLifecycle = createFarmProductionLifecycle; exports.createFarmRequestBodyErrorResponse = _chunkLIFUPCXWcjs.createFarmRequestBodyErrorResponse; exports.createFarmSearchParams = _chunkSUCDVKUBcjs.createFarmSearchParams; exports.createFarmThemeDocumentParts = _chunk76GHW3WIcjs.createFarmThemeDocumentParts; exports.createLateNotFoundRecovery = _chunk76GHW3WIcjs.createLateNotFoundRecovery; exports.createLateRedirectRecovery = _chunk76GHW3WIcjs.createLateRedirectRecovery; exports.createProductionMiddlewareRunner = _chunkSUV6YO4Qcjs.createProductionMiddlewareRunner; exports.disposeFarmStorage = _chunkJMYXO572cjs.disposeStorage; exports.emitFarmEvent = _chunkEVIWKPJVcjs.emitFarmEvent; exports.ensureFarmDocumentMeta = _chunk76GHW3WIcjs.ensureFarmDocumentMeta; exports.farmPathGuardCoversEndpoint = _chunk76GHW3WIcjs.farmPathGuardCoversEndpoint; exports.farmPathGuardCoversPage = _chunk76GHW3WIcjs.farmPathGuardCoversPage; exports.farmSecretsMatch = _chunkSHIWRBFIcjs.farmSecretsMatch; exports.fetchFarmExternalRewrite = _chunkYIHRZBD7cjs.fetchFarmExternalRewrite; exports.generateNativeMCPPluginSource = _chunkVM57CK74cjs.generateNativeMCPPluginSource; exports.getCurrentRequest = _chunkHNAISJFDcjs.getCurrentRequest; exports.getDefaultErrorStatusText = _chunk76GHW3WIcjs.getDefaultErrorStatusText; exports.getFarmDataCache = _chunkDMAP4RNDcjs.getFarmDataCache; exports.getFarmLocaleVaryHeaders = _chunkVOQ7XZZTcjs.getFarmLocaleVaryHeaders; exports.getFarmRedirectError = _chunk7JUIK547cjs.getFarmRedirectError; exports.getRoutePatternSpecificity = _chunkYTVSWXEZcjs.getRoutePatternSpecificity; exports.getSharedLayoutPrefixLength = _chunk76GHW3WIcjs.getSharedLayoutPrefixLength; exports.getTheme = _chunk4ZJ5C7UJcjs.getTheme; exports.handleFarmDefaultMCPRequest = _chunkNJLTQR5Pcjs.handleFarmDefaultMCPRequest; exports.handleFarmFormActionRequest = _chunk3OWVWZ6Rcjs.handleFarmFormActionRequest; exports.ignoreFarmHeldValues = _chunkXGJVRPYLcjs.ignoreFarmHeldValues; exports.initFarmStorage = _chunkJMYXO572cjs.initStorage; exports.installFarmIslandValues = _chunkXGJVRPYLcjs.installFarmIslandValues; exports.isFarmNotFoundError = _chunk7JUIK547cjs.isFarmNotFoundError; exports.isFarmRedirectError = _chunk7JUIK547cjs.isFarmRedirectError; exports.isInFarmRouteGroupScope = _chunk76GHW3WIcjs.isInRouteGroupScope; exports.listFarmMCPLlmsTxtLinks = _chunkRMPNYUGTcjs.listFarmMCPLlmsTxtLinks; exports.localizeFarmHref = _chunkOWQV6MLMcjs.localizeFarmHref; exports.localizeFarmPathname = _chunkOWQV6MLMcjs.localizeFarmPathname; exports.manageFarmDocumentPreloads = _chunkNYQSC4DXcjs.manageFarmDocumentPreloads; exports.manageFarmHtmlPreloads = _chunkNYQSC4DXcjs.manageFarmHtmlPreloads; exports.manageFarmLinkHeaderPreloads = _chunkNYQSC4DXcjs.manageFarmLinkHeaderPreloads; exports.matchFarmPageRoute = _chunkVQJYGZNXcjs.matchRoute; exports.matchesFarmIfNoneMatch = _chunkLIFUPCXWcjs.matchesFarmIfNoneMatch; exports.materializeSSGRoutePath = _chunkEZTKXD6Pcjs.materializeSSGRoutePath; exports.mergeMetadata = _chunk6IOZPJ3Icjs.mergeMetadata; exports.mergeModuleViewport = _chunk6IOZPJ3Icjs.mergeModuleViewport; exports.mergeRouteRenderingDirectiveConfig = _chunkEZTKXD6Pcjs.mergeRouteRenderingDirectiveConfig; exports.normalizeRevalidatePath = _chunkDMAP4RNDcjs.normalizeRevalidatePath; exports.parseFarmLayoutChainHeader = _chunk76GHW3WIcjs.parseFarmLayoutChainHeader; exports.parseRoutePath = _chunkVQJYGZNXcjs.parseRoutePath; exports.readFarmRequestBody = _chunkLIFUPCXWcjs.readFarmRequestBody; exports.readNodeRequestBody = _chunkLIFUPCXWcjs.readNodeRequestBody; exports.registerFarmMCPServer = _chunk6ONBZGVHcjs.registerFarmMCPServer; exports.renderFarmLegacyErrorHtml = renderFarmLegacyErrorHtml; exports.renderFarmLegacyHtml = renderFarmLegacyHtml; exports.renderFarmLlmsFullTxt = _chunkHIFIG6HLcjs.renderFarmLlmsFullTxt; exports.renderFarmLocaleAlternateLinks = _chunk76GHW3WIcjs.renderFarmLocaleAlternateLinks; exports.renderMetadataHead = _chunk6IOZPJ3Icjs.renderMetadataHead; exports.renderViewportHead = _chunk6IOZPJ3Icjs.renderViewportHead; exports.reportFarmPreloadWarnings = _chunkNYQSC4DXcjs.reportFarmPreloadWarnings; exports.resolveDefaultErrorStatus = _chunk76GHW3WIcjs.resolveDefaultErrorStatus; exports.resolveFarmDefaultMCPServer = _chunkSBABQKPTcjs.resolveFarmDefaultMCPServer; exports.resolveFarmDocsEngineRouteLabel = _chunkRMPNYUGTcjs.resolveFarmDocsEngineRouteLabel; exports.resolveFarmDocsRouteLabel = _chunkRMPNYUGTcjs.resolveFarmDocsRouteLabel; exports.resolveFarmI18nConfig = _chunkLNVGXUL3cjs.resolveFarmI18nConfig; exports.resolveFarmInstrumentationRuntime = _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime; exports.resolveFarmLlmsTxtConfig = _chunkHIFIG6HLcjs.resolveFarmLlmsTxtConfig; exports.resolveFarmMCPRouteLabel = _chunkRMPNYUGTcjs.resolveFarmMCPRouteLabel; exports.resolveFarmMarkdownRouteLabel = _chunkRMPNYUGTcjs.resolveFarmMarkdownRouteLabel; exports.resolveFarmNotFoundMetadata = _chunk6IOZPJ3Icjs.resolveFarmNotFoundMetadata; exports.resolveFarmPreviewDeployment = _chunkSGBNF56Scjs.resolveFarmPreviewDeployment; exports.resolveFarmRouteContext = _chunkX333W5KVcjs.resolveFarmRouteContext; exports.resolveFarmSecurityConfig = _chunk6JHZPB52cjs.resolveFarmSecurityConfig; exports.resolveFarmServerConfig = _chunkLIFUPCXWcjs.resolveFarmServerConfig; exports.resolveFarmTrailingSlashRedirect = _chunkJGAE5XPLcjs.resolveFarmTrailingSlashRedirect; exports.resolveFarmWebRequestOrigin = _chunkHNAISJFDcjs.resolveFarmWebRequestOrigin; exports.resolveMetadataTitle = _chunk6IOZPJ3Icjs.resolveMetadataTitle; exports.runWithFarmRequestSpan = _chunkEVIWKPJVcjs.runWithFarmRequestSpan; exports.searchParamsToObject = _chunkSUCDVKUBcjs.searchParamsToObject; exports.serializeFarmInlineValue = serializeFarmInlineValue; exports.setFarmBasePath = _chunkD22BUQKWcjs.setFarmBasePath; exports.setFarmRouteLabel = _chunkRMPNYUGTcjs.setFarmRouteLabel; exports.setFarmTrailingSlashPreference = _chunkJGAE5XPLcjs.setFarmTrailingSlashPreference; exports.stampFarmCspNonce = _chunk6JHZPB52cjs.stampFarmCspNonce; exports.stripFarmBasePath = _chunkD22BUQKWcjs.stripFarmBasePath; exports.stripFarmLocaleFromPathname = _chunkOWQV6MLMcjs.stripFarmLocaleFromPathname; exports.withFarmRouteContext = _chunkX333W5KVcjs.withFarmRouteContext;
740
+
741
+
742
+
743
+ exports._applyFarmMobileShellClient = _applyFarmMobileShellClient; exports._farmPluginsKeepResponsesPrivate = _chunk47JV57DAcjs._farmPluginsKeepResponsesPrivate; exports._getRequestReadCount = _chunkHNAISJFDcjs._getRequestReadCount; exports._isFarmOwnedResponse = _chunkA25FXJ7Dcjs._isFarmOwnedResponse; exports._markFarmOwnedResponse = _chunkA25FXJ7Dcjs._markFarmOwnedResponse; exports._registerFarmStorageModules = _chunkJMYXO572cjs._registerFarmStorageModules; exports._resolveCurrentCspNonce = _chunk3BIASUGRcjs._resolveCurrentCspNonce; exports._runWithAPIRequestRuntime = _chunkKBGZ5FD6cjs._runWithAPIRequestRuntime; exports._runWithAfterRequest = _chunkP2355C6Ecjs._runWithAfterRequest; exports._runWithCurrentRequest = _chunkHNAISJFDcjs._runWithCurrentRequest; exports._runWithFarmCspNonce = _chunkHNAISJFDcjs._runWithFarmCspNonce; exports._runWithMiddlewareContext = _chunkYDXLC4DWcjs._runWithMiddlewareContext; exports._runWithMiddlewareData = _chunkYDXLC4DWcjs._runWithMiddlewareData; exports._setDefaultFarmThemeConfig = _chunk4ZJ5C7UJcjs._setDefaultFarmThemeConfig; exports._withFarmGuardedResponseCache = _chunkSUV6YO4Qcjs._withFarmGuardedResponseCache; exports._withFarmResponseHeaders = _chunkA25FXJ7Dcjs._withFarmResponseHeaders; exports.addMetadataImageReference = _chunk6IOZPJ3Icjs.addMetadataImageReference; exports.addMetadataMarkdownAlternate = _chunk6IOZPJ3Icjs.addMetadataMarkdownAlternate; exports.appMiddlewareMayHandlePath = _chunkTSFMFPRUcjs.appMiddlewareMayHandlePath; exports.appendFarmLinkHeader = appendFarmLinkHeader; exports.appendFarmRedirectQuery = _chunkHXNLKCWHcjs.appendFarmRedirectQuery; exports.applyFarmBasePath = _chunkD22BUQKWcjs.applyFarmBasePath; exports.applyFarmCspNonceToResponse = _chunk6JHZPB52cjs.applyFarmCspNonceToResponse; exports.applyFarmPreviewRobotsTag = _chunkFFE2EMF7cjs.applyFarmPreviewRobotsTag; exports.applyFarmThemeDocument = _chunkTSFMFPRUcjs.applyFarmThemeDocument; exports.applyProductionMiddlewareHeaders = _chunkSUV6YO4Qcjs.applyProductionMiddlewareHeaders; exports.bufferFarmRequestBody = _chunkLIFUPCXWcjs.bufferFarmRequestBody; exports.cloneFarmRequestWithContext = _chunkLIFUPCXWcjs.cloneFarmRequestWithContext; exports.collectFarmDefaultMCPPages = _chunk46KXZBOGcjs.collectFarmDefaultMCPPages; exports.collectFarmLlmsTxtPages = _chunkH33PJEXNcjs.collectFarmLlmsTxtPages; exports.compareRouteSpecificity = _chunkYTVSWXEZcjs.compareRouteSpecificity; exports.configMiddlewareMayHandlePath = _chunkTSFMFPRUcjs.configMiddlewareMayHandlePath; exports.configureFarmCache = _chunkDMAP4RNDcjs.configureFarmCache; exports.configureFarmObservability = _chunkEVIWKPJVcjs.configureFarmObservability; exports.createDefaultErrorMarkup = _chunkTSFMFPRUcjs.createDefaultErrorMarkup; exports.createFarmAgentRobots = _chunkFFE2EMF7cjs.createFarmAgentRobots; exports.createFarmAiCatalogResponse = _chunk4SEHMBL4cjs.createFarmAiCatalogResponse; exports.createFarmApiCatalogResponse = _chunk4SEHMBL4cjs.createFarmApiCatalogResponse; exports.createFarmAppManifestResponse = _chunk4SEHMBL4cjs.createFarmAppManifestResponse; exports.createFarmCacheKey = _chunkDXUXQP2Tcjs.createFarmCacheKey; exports.createFarmCspNonce = _chunk6JHZPB52cjs.createFarmCspNonce; exports.createFarmDefaultLlmsTxt = _chunkH33PJEXNcjs.createFarmDefaultLlmsTxt; exports.createFarmDefaultSitemap = _chunkFFE2EMF7cjs.createFarmDefaultSitemap; exports.createFarmInstrumentationLifecycle = _chunkOCS3PSYRcjs.createFarmInstrumentationLifecycle; exports.createFarmLayoutSelector = _chunkTSFMFPRUcjs.createFarmLayoutSelector; exports.createFarmLegacyRequest = createFarmLegacyRequest; exports.createFarmLlmsFullRenderer = _chunkH33PJEXNcjs.createFarmLlmsFullRenderer; exports.createFarmLlmsMarkdownReader = _chunkH33PJEXNcjs.createFarmLlmsMarkdownReader; exports.createFarmLocaleCookie = _chunkVOQ7XZZTcjs.createFarmLocaleCookie; exports.createFarmMetadataRouteResponse = _chunkTSFMFPRUcjs.createFarmMetadataRouteResponse; exports.createFarmMobileSessionPlugin = _chunk7FVVQEVLcjs.createFarmMobileSessionPlugin; exports.createFarmNativeTreeResponse = _chunkJXEPLIXDcjs.createFarmNativeTreeResponse; exports.createFarmNodeRequestAbortSignal = _chunkLIFUPCXWcjs.createFarmNodeRequestAbortSignal; exports.createFarmProductionLifecycle = createFarmProductionLifecycle; exports.createFarmRequestBodyErrorResponse = _chunkLIFUPCXWcjs.createFarmRequestBodyErrorResponse; exports.createFarmSearchParams = _chunkSUCDVKUBcjs.createFarmSearchParams; exports.createFarmThemeDocumentParts = _chunkTSFMFPRUcjs.createFarmThemeDocumentParts; exports.createLateNotFoundRecovery = _chunkTSFMFPRUcjs.createLateNotFoundRecovery; exports.createLateRedirectRecovery = _chunkTSFMFPRUcjs.createLateRedirectRecovery; exports.createProductionMiddlewareRunner = _chunkSUV6YO4Qcjs.createProductionMiddlewareRunner; exports.disposeFarmStorage = _chunkJMYXO572cjs.disposeStorage; exports.emitFarmEvent = _chunkEVIWKPJVcjs.emitFarmEvent; exports.ensureFarmDocumentMeta = _chunkTSFMFPRUcjs.ensureFarmDocumentMeta; exports.farmPathGuardCoversEndpoint = _chunkTSFMFPRUcjs.farmPathGuardCoversEndpoint; exports.farmPathGuardCoversPage = _chunkTSFMFPRUcjs.farmPathGuardCoversPage; exports.farmSecretsMatch = _chunkSHIWRBFIcjs.farmSecretsMatch; exports.fetchFarmExternalRewrite = _chunkYIHRZBD7cjs.fetchFarmExternalRewrite; exports.generateNativeMCPPluginSource = _chunkVM57CK74cjs.generateNativeMCPPluginSource; exports.getCurrentRequest = _chunkHNAISJFDcjs.getCurrentRequest; exports.getDefaultErrorStatusText = _chunkTSFMFPRUcjs.getDefaultErrorStatusText; exports.getFarmDataCache = _chunkDMAP4RNDcjs.getFarmDataCache; exports.getFarmLocaleVaryHeaders = _chunkVOQ7XZZTcjs.getFarmLocaleVaryHeaders; exports.getFarmRedirectError = _chunk7JUIK547cjs.getFarmRedirectError; exports.getRoutePatternSpecificity = _chunkYTVSWXEZcjs.getRoutePatternSpecificity; exports.getSharedLayoutPrefixLength = _chunkTSFMFPRUcjs.getSharedLayoutPrefixLength; exports.getTheme = _chunk4ZJ5C7UJcjs.getTheme; exports.handleFarmDefaultMCPRequest = _chunk53SACYBYcjs.handleFarmDefaultMCPRequest; exports.handleFarmFormActionRequest = _chunk3OWVWZ6Rcjs.handleFarmFormActionRequest; exports.ignoreFarmHeldValues = _chunkXGJVRPYLcjs.ignoreFarmHeldValues; exports.initFarmStorage = _chunkJMYXO572cjs.initStorage; exports.installFarmIslandValues = _chunkXGJVRPYLcjs.installFarmIslandValues; exports.isFarmNotFoundError = _chunk7JUIK547cjs.isFarmNotFoundError; exports.isFarmRedirectError = _chunk7JUIK547cjs.isFarmRedirectError; exports.isInFarmRouteGroupScope = _chunkTSFMFPRUcjs.isInRouteGroupScope; exports.listFarmMCPLlmsTxtLinks = _chunk4SEHMBL4cjs.listFarmMCPLlmsTxtLinks; exports.localizeFarmHref = _chunkOWQV6MLMcjs.localizeFarmHref; exports.localizeFarmPathname = _chunkOWQV6MLMcjs.localizeFarmPathname; exports.manageFarmDocumentPreloads = _chunkFFE2EMF7cjs.manageFarmDocumentPreloads; exports.manageFarmHtmlPreloads = _chunkFFE2EMF7cjs.manageFarmHtmlPreloads; exports.manageFarmLinkHeaderPreloads = _chunkFFE2EMF7cjs.manageFarmLinkHeaderPreloads; exports.matchFarmPageRoute = _chunkVQJYGZNXcjs.matchRoute; exports.matchesFarmIfNoneMatch = _chunkLIFUPCXWcjs.matchesFarmIfNoneMatch; exports.materializeSSGRoutePath = _chunkEZTKXD6Pcjs.materializeSSGRoutePath; exports.mergeMetadata = _chunk6IOZPJ3Icjs.mergeMetadata; exports.mergeModuleViewport = _chunk6IOZPJ3Icjs.mergeModuleViewport; exports.mergeRouteRenderingDirectiveConfig = _chunkEZTKXD6Pcjs.mergeRouteRenderingDirectiveConfig; exports.normalizeRevalidatePath = _chunkDMAP4RNDcjs.normalizeRevalidatePath; exports.parseFarmLayoutChainHeader = _chunkTSFMFPRUcjs.parseFarmLayoutChainHeader; exports.parseRoutePath = _chunkVQJYGZNXcjs.parseRoutePath; exports.readFarmRequestBody = _chunkLIFUPCXWcjs.readFarmRequestBody; exports.readNodeRequestBody = _chunkLIFUPCXWcjs.readNodeRequestBody; exports.registerFarmMCPServer = _chunk6ONBZGVHcjs.registerFarmMCPServer; exports.renderFarmLegacyErrorHtml = renderFarmLegacyErrorHtml; exports.renderFarmLegacyHtml = renderFarmLegacyHtml; exports.renderFarmLlmsFullTxt = _chunkH33PJEXNcjs.renderFarmLlmsFullTxt; exports.renderFarmLocaleAlternateLinks = _chunkTSFMFPRUcjs.renderFarmLocaleAlternateLinks; exports.renderMetadataHead = _chunk6IOZPJ3Icjs.renderMetadataHead; exports.renderViewportHead = _chunk6IOZPJ3Icjs.renderViewportHead; exports.reportFarmPreloadWarnings = _chunkFFE2EMF7cjs.reportFarmPreloadWarnings; exports.resolveDefaultErrorStatus = _chunkTSFMFPRUcjs.resolveDefaultErrorStatus; exports.resolveFarmDefaultMCPServer = _chunk46KXZBOGcjs.resolveFarmDefaultMCPServer; exports.resolveFarmDocsEngineRouteLabel = _chunk4SEHMBL4cjs.resolveFarmDocsEngineRouteLabel; exports.resolveFarmDocsRouteLabel = _chunk4SEHMBL4cjs.resolveFarmDocsRouteLabel; exports.resolveFarmI18nConfig = _chunkLNVGXUL3cjs.resolveFarmI18nConfig; exports.resolveFarmInstrumentationRuntime = _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime; exports.resolveFarmLlmsTxtConfig = _chunkH33PJEXNcjs.resolveFarmLlmsTxtConfig; exports.resolveFarmMCPRouteLabel = _chunk4SEHMBL4cjs.resolveFarmMCPRouteLabel; exports.resolveFarmMarkdownRouteLabel = _chunk4SEHMBL4cjs.resolveFarmMarkdownRouteLabel; exports.resolveFarmNotFoundMetadata = _chunk6IOZPJ3Icjs.resolveFarmNotFoundMetadata; exports.resolveFarmPreviewDeployment = _chunkSGBNF56Scjs.resolveFarmPreviewDeployment; exports.resolveFarmRouteContext = _chunkX333W5KVcjs.resolveFarmRouteContext; exports.resolveFarmSecurityConfig = _chunk6JHZPB52cjs.resolveFarmSecurityConfig; exports.resolveFarmServerConfig = _chunkLIFUPCXWcjs.resolveFarmServerConfig; exports.resolveFarmTrailingSlashRedirect = _chunkJGAE5XPLcjs.resolveFarmTrailingSlashRedirect; exports.resolveFarmWebRequestOrigin = _chunkHNAISJFDcjs.resolveFarmWebRequestOrigin; exports.resolveMetadataTitle = _chunk6IOZPJ3Icjs.resolveMetadataTitle; exports.runWithFarmRequestSpan = _chunkEVIWKPJVcjs.runWithFarmRequestSpan; exports.searchParamsToObject = _chunkSUCDVKUBcjs.searchParamsToObject; exports.serializeFarmInlineValue = serializeFarmInlineValue; exports.setFarmBasePath = _chunkD22BUQKWcjs.setFarmBasePath; exports.setFarmRouteLabel = _chunk4SEHMBL4cjs.setFarmRouteLabel; exports.setFarmTrailingSlashPreference = _chunkJGAE5XPLcjs.setFarmTrailingSlashPreference; exports.stampFarmCspNonce = _chunk6JHZPB52cjs.stampFarmCspNonce; exports.stripFarmBasePath = _chunkD22BUQKWcjs.stripFarmBasePath; exports.stripFarmLocaleFromPathname = _chunkOWQV6MLMcjs.stripFarmLocaleFromPathname; exports.withFarmRouteContext = _chunkX333W5KVcjs.withFarmRouteContext;