@farm.js/core 0.1.76 → 0.1.77

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 (220) hide show
  1. package/dist/{agent-mcp.d-Cftp2kFv.d.ts → agent-mcp.d-B1h3RznZ.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-D0FMmqi0.d.mts → agent-mcp.d-WFQotg8M.d.mts} +1 -1
  3. package/dist/agent-runtime.cjs +2 -2
  4. package/dist/agent-runtime.d.mts +2 -2
  5. package/dist/agent-runtime.d.ts +2 -2
  6. package/dist/agent-runtime.mjs +1 -1
  7. package/dist/{analyzer-NLQKPN74.mjs → analyzer-64YS2OXQ.mjs} +2 -2
  8. package/dist/analyzer-HTNXLX6N.cjs +16 -0
  9. package/dist/api/node.d.mts +4 -4
  10. package/dist/api/node.d.ts +4 -4
  11. package/dist/api/route-manager.d.mts +4 -4
  12. package/dist/api/route-manager.d.ts +4 -4
  13. package/dist/api/runtime.d.mts +3 -3
  14. package/dist/api/runtime.d.ts +3 -3
  15. package/dist/api.d.mts +5 -5
  16. package/dist/api.d.ts +5 -5
  17. package/dist/{app-manifest.d-cpOw_sV5.d.mts → app-manifest.d-EZEYG-tD.d.mts} +1 -1
  18. package/dist/{app-manifest.d-7PmA_9hm.d.ts → app-manifest.d-Ktsqsuk9.d.ts} +1 -1
  19. package/dist/app-markdown.d.mts +3 -3
  20. package/dist/app-markdown.d.ts +3 -3
  21. package/dist/{app.d-wOkxXre8.d.ts → app.d-CSh3y8w8.d.ts} +4 -4
  22. package/dist/{app.d-DUZvwnFF.d.mts → app.d-DTkqYcIr.d.mts} +4 -4
  23. package/dist/{chunk-CL2ONP73.cjs → chunk-2PE5STAR.cjs} +36 -27
  24. package/dist/{chunk-MOS2N377.mjs → chunk-2QPTZMGK.mjs} +1 -1
  25. package/dist/{chunk-E7VF3LQ5.mjs → chunk-4STJ6LGR.mjs} +13 -1
  26. package/dist/{chunk-LQBV2Y37.mjs → chunk-65XXHTVJ.mjs} +38 -2
  27. package/dist/{chunk-O225GNEU.mjs → chunk-7EXFAJST.mjs} +13 -12
  28. package/dist/{chunk-QTDIOZV6.cjs → chunk-7SAGHWWU.cjs} +2 -2
  29. package/dist/{chunk-5EEQNZLU.mjs → chunk-BTHNOAOF.mjs} +2 -2
  30. package/dist/{chunk-Q4X3MX4J.mjs → chunk-D2RLADWN.mjs} +95 -101
  31. package/dist/chunk-DS2KZ5BT.mjs +16 -0
  32. package/dist/{chunk-PXXG5BID.cjs → chunk-DSRWQ4SJ.cjs} +3 -3
  33. package/dist/{chunk-WMJQNVKX.cjs → chunk-FCHEO3LG.cjs} +2 -2
  34. package/dist/{chunk-75XSZIRE.mjs → chunk-FD6BMUA3.mjs} +35 -26
  35. package/dist/{chunk-JL6XHQZF.mjs → chunk-FNVGK72M.mjs} +5 -5
  36. package/dist/{chunk-Q7JMHO5U.mjs → chunk-FPGSIOWS.mjs} +2 -2
  37. package/dist/{chunk-2JEXQAIR.cjs → chunk-FTQUNBRN.cjs} +2 -2
  38. package/dist/{chunk-HKGU2X4I.cjs → chunk-FVVGEGQ2.cjs} +2 -2
  39. package/dist/{chunk-7564NP5Z.cjs → chunk-GC2BSXQS.cjs} +39 -3
  40. package/dist/{chunk-CKBBKRBO.mjs → chunk-IHMSLS2O.mjs} +8 -8
  41. package/dist/{chunk-DVW6SKHA.cjs → chunk-IIVZTGGP.cjs} +2 -2
  42. package/dist/{chunk-A2VFKOQL.mjs → chunk-IXC6WDMT.mjs} +1 -1
  43. package/dist/{chunk-TMVVBK5S.cjs → chunk-JD42G6BN.cjs} +2 -2
  44. package/dist/{chunk-WILPJVQE.cjs → chunk-LTDMJD2F.cjs} +4 -4
  45. package/dist/{chunk-XX6ZA2IO.cjs → chunk-MQW4LHJR.cjs} +1 -1
  46. package/dist/{chunk-BYJPBJ4E.cjs → chunk-NQZWLIPT.cjs} +3 -3
  47. package/dist/{chunk-YHE7HH2I.mjs → chunk-NTHAZLVS.mjs} +27 -26
  48. package/dist/{chunk-OCLCA3X3.mjs → chunk-OCKQ3YOH.mjs} +1 -1
  49. package/dist/{chunk-WJDMH3E7.cjs → chunk-OQZF6H6G.cjs} +4 -4
  50. package/dist/{chunk-SGQXJVFX.mjs → chunk-ORWXJDUN.mjs} +1 -1
  51. package/dist/{chunk-QP4GYVRR.cjs → chunk-PMKUTZGR.cjs} +8 -8
  52. package/dist/{chunk-CCQZDOQR.cjs → chunk-PUEPDMWY.cjs} +16 -16
  53. package/dist/{chunk-MTBDJ326.cjs → chunk-QMR2TUVZ.cjs} +13 -1
  54. package/dist/{chunk-2GZZVIXY.mjs → chunk-QODXWUGQ.mjs} +2 -2
  55. package/dist/{chunk-UBXNTZCY.cjs → chunk-RFXEQYPH.cjs} +98 -104
  56. package/dist/{chunk-DTNWLRRF.cjs → chunk-SIYELCIX.cjs} +73 -73
  57. package/dist/{chunk-E77ZKNPN.mjs → chunk-SL2BSPDJ.mjs} +1 -1
  58. package/dist/{chunk-X3HUT4JU.mjs → chunk-SMYDCZBW.mjs} +1 -1
  59. package/dist/{chunk-YQXJY7E7.mjs → chunk-TQOYIPMQ.mjs} +1 -1
  60. package/dist/{chunk-XLOORES5.cjs → chunk-UYACD4SH.cjs} +1 -1
  61. package/dist/{chunk-3OYFMOBY.mjs → chunk-WHNNDFCJ.mjs} +1 -1
  62. package/dist/{chunk-YONTMPZ6.mjs → chunk-WXMR3OHY.mjs} +1 -1
  63. package/dist/{chunk-BBRSPKFI.cjs → chunk-WZVESREI.cjs} +145 -144
  64. package/dist/chunk-XRRHPBG2.cjs +16 -0
  65. package/dist/{chunk-PSNYVBWC.cjs → chunk-YROK6CJC.cjs} +7 -7
  66. package/dist/{chunk-2WKGQCAV.cjs → chunk-YRQ44JTF.cjs} +153 -152
  67. package/dist/{chunk-VDJ3CLBR.mjs → chunk-YTGNMKRA.mjs} +1 -1
  68. package/dist/{chunk-GP5BWTO7.mjs → chunk-ZBE5EHVJ.mjs} +4 -4
  69. package/dist/{cli-runtime.d-D84CwyPI.d.ts → cli-runtime.d-DljFfr8T.d.ts} +8 -6
  70. package/dist/{cli-runtime.d-OQY2pgwK.d.mts → cli-runtime.d-HSkdfvoq.d.mts} +8 -6
  71. package/dist/{client-component.d-Bh6CfC5z.d.mts → client-component.d-B-1dIlsw.d.mts} +1 -1
  72. package/dist/{client-component.d-Bf8jZqW7.d.ts → client-component.d-_otXB__v.d.ts} +1 -1
  73. package/dist/{client-plugins.d-r3K2oQ6w.d.mts → client-plugins.d-BmBzvfSP.d.mts} +1 -1
  74. package/dist/{client-plugins.d-DuujrC8d.d.ts → client-plugins.d-MjxlvbCK.d.ts} +1 -1
  75. package/dist/client-plugins.d.mts +2 -2
  76. package/dist/client-plugins.d.ts +2 -2
  77. package/dist/client.d.mts +7 -7
  78. package/dist/client.d.ts +7 -7
  79. package/dist/config.d.mts +2 -2
  80. package/dist/config.d.ts +2 -2
  81. package/dist/desktop.d.mts +3 -3
  82. package/dist/desktop.d.ts +3 -3
  83. package/dist/{devtools-MBZPUH3U.mjs → devtools-7LHXG2VS.mjs} +4 -3
  84. package/dist/{devtools-3WZIZ7KK.cjs → devtools-NNQN66EZ.cjs} +5 -4
  85. package/dist/docs.cjs +6 -5
  86. package/dist/docs.d.mts +4 -4
  87. package/dist/docs.d.ts +4 -4
  88. package/dist/docs.mjs +5 -4
  89. package/dist/environment/vite.cjs +5 -4
  90. package/dist/environment/vite.mjs +4 -3
  91. package/dist/{handler.d-Bd5lRSvb.d.ts → handler.d-C53zFDmp.d.ts} +1 -1
  92. package/dist/{handler.d-SRH-AKzf.d.mts → handler.d-CaYopqaD.d.mts} +1 -1
  93. package/dist/{headers.d-D-OvGikv.d.ts → headers.d-BvtpC90T.d.ts} +1 -1
  94. package/dist/{headers.d-CHHvyaIG.d.mts → headers.d-MBkD9ZLf.d.mts} +1 -1
  95. package/dist/index.cjs +28 -23
  96. package/dist/{index.d-BiUtYJUG.d.ts → index.d-2hQpPZ-P.d.ts} +1 -1
  97. package/dist/{index.d-BOPsgMlI.d.mts → index.d-Mikf-tdP.d.mts} +1 -1
  98. package/dist/index.d.mts +23 -23
  99. package/dist/index.d.ts +23 -23
  100. package/dist/index.mjs +27 -22
  101. package/dist/integrations/orm.cjs +4 -3
  102. package/dist/integrations/orm.d.mts +2 -2
  103. package/dist/integrations/orm.d.ts +2 -2
  104. package/dist/integrations/orm.mjs +3 -2
  105. package/dist/integrations.cjs +2 -2
  106. package/dist/integrations.d.mts +2 -2
  107. package/dist/integrations.d.ts +2 -2
  108. package/dist/integrations.mjs +1 -1
  109. package/dist/internal/app-markdown-runtime.d.mts +3 -3
  110. package/dist/internal/app-markdown-runtime.d.ts +3 -3
  111. package/dist/internal/build-runtime.cjs +22 -21
  112. package/dist/internal/build-runtime.d.mts +5 -5
  113. package/dist/internal/build-runtime.d.ts +5 -5
  114. package/dist/internal/build-runtime.mjs +21 -20
  115. package/dist/internal/cli-runtime.cjs +12 -9
  116. package/dist/internal/cli-runtime.d.mts +9 -8
  117. package/dist/internal/cli-runtime.d.ts +9 -8
  118. package/dist/internal/cli-runtime.mjs +12 -9
  119. package/dist/internal/client-error-overlay.cjs +4 -4
  120. package/dist/internal/client-error-overlay.mjs +1 -1
  121. package/dist/internal/client-runtime.d.mts +5 -5
  122. package/dist/internal/client-runtime.d.ts +5 -5
  123. package/dist/internal/compression-runtime.cjs +2 -2
  124. package/dist/internal/compression-runtime.d.mts +6 -3
  125. package/dist/internal/compression-runtime.d.ts +6 -3
  126. package/dist/internal/compression-runtime.mjs +1 -1
  127. package/dist/internal/config-runtime.cjs +6 -5
  128. package/dist/internal/config-runtime.d.mts +4 -4
  129. package/dist/internal/config-runtime.d.ts +4 -4
  130. package/dist/internal/config-runtime.mjs +5 -4
  131. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  132. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  133. package/dist/internal/native-server-fns.cjs +4 -4
  134. package/dist/internal/native-server-fns.mjs +3 -3
  135. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  136. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  137. package/dist/internal/production-runtime.cjs +7 -6
  138. package/dist/internal/production-runtime.d.mts +11 -11
  139. package/dist/internal/production-runtime.d.ts +11 -11
  140. package/dist/internal/production-runtime.mjs +6 -5
  141. package/dist/internal/start-manifest.d.mts +2 -2
  142. package/dist/internal/start-manifest.d.ts +2 -2
  143. package/dist/{layers-XQ7VFMWO.mjs → layers-I7VE5Q2Y.mjs} +2 -1
  144. package/dist/layers-WP5K5F7W.cjs +21 -0
  145. package/dist/markdown.d.mts +2 -2
  146. package/dist/markdown.d.ts +2 -2
  147. package/dist/middleware.d.mts +2 -2
  148. package/dist/middleware.d.ts +2 -2
  149. package/dist/{mount.d-vq1HTq5u.d.mts → mount.d-DsP46XCy.d.mts} +1 -1
  150. package/dist/{mount.d-C2yq0Zzz.d.ts → mount.d-GU-tNxbE.d.ts} +1 -1
  151. package/dist/{navigation-delegate.d-DS2Sqm7E.d.mts → navigation-delegate.d-CUtNOYLi.d.mts} +1 -1
  152. package/dist/{navigation-delegate.d-D7xIin3i.d.ts → navigation-delegate.d-DsxNPrLT.d.ts} +1 -1
  153. package/dist/navigation.d.mts +5 -5
  154. package/dist/navigation.d.ts +5 -5
  155. package/dist/{plugin-6CHZBFJD.mjs → plugin-2KWR2X4B.mjs} +1 -1
  156. package/dist/{plugin-YXPIS3XX.cjs → plugin-MW7IDV76.cjs} +2 -2
  157. package/dist/plugin.cjs +14 -13
  158. package/dist/plugin.d.mts +6 -6
  159. package/dist/plugin.d.ts +6 -6
  160. package/dist/plugin.mjs +13 -12
  161. package/dist/{render-plan.d-BCq0nfdw.d.ts → render-plan.d-8K6S0h0L.d.ts} +1 -1
  162. package/dist/{render-plan.d-X6KqerAM.d.mts → render-plan.d-B7Xp-PPW.d.mts} +1 -1
  163. package/dist/renderer-client.d.mts +5 -5
  164. package/dist/renderer-client.d.ts +5 -5
  165. package/dist/{request.d-CPdq2_kC.d.ts → request.d-CuQxmOqX.d.ts} +1 -1
  166. package/dist/{request.d-Be9rWboC.d.mts → request.d-nhqciCAz.d.mts} +1 -1
  167. package/dist/request.d.mts +3 -3
  168. package/dist/request.d.ts +3 -3
  169. package/dist/{route-rendering.d-CKB5GhQr.d.ts → route-rendering.d-BSsdDYC1.d.ts} +1 -1
  170. package/dist/{route-rendering.d-CIPli7Ve.d.mts → route-rendering.d-CeF1FOnl.d.mts} +1 -1
  171. package/dist/{router.d-CvrbOXzF.d.ts → router.d-C7yGlhDL.d.ts} +1 -1
  172. package/dist/{router.d-VxTgLGxN.d.mts → router.d-D462OX24.d.mts} +1 -1
  173. package/dist/routes.d.mts +2 -2
  174. package/dist/routes.d.ts +2 -2
  175. package/dist/{rsc-pipeline-TPHK74VE.cjs → rsc-pipeline-7PV6ARDS.cjs} +8 -7
  176. package/dist/{rsc-pipeline-FPE4OL57.mjs → rsc-pipeline-EZU4W4RL.mjs} +7 -6
  177. package/dist/{runtime-UBG657UC.cjs → runtime-QOE3NRXF.cjs} +8 -7
  178. package/dist/{runtime-45BD33OJ.mjs → runtime-RWLFEPS3.mjs} +5 -4
  179. package/dist/{runtime.d-Cn1jiDNI.d.mts → runtime.d-C-BHQMy5.d.mts} +1 -1
  180. package/dist/{runtime.d-Ps54JWpo.d.ts → runtime.d-CORDJQMy.d.ts} +1 -1
  181. package/dist/{server-components-status.d-DnmipSb3.d.mts → server-components-status.d-BJ6huueH.d.mts} +1 -1
  182. package/dist/{server-components-status.d-Dhtbs5lC.d.ts → server-components-status.d-BbADqqjq.d.ts} +1 -1
  183. package/dist/server-plugins.cjs +2 -2
  184. package/dist/server-plugins.d.mts +4 -4
  185. package/dist/server-plugins.d.ts +4 -4
  186. package/dist/server-plugins.mjs +1 -1
  187. package/dist/server.cjs +43 -38
  188. package/dist/server.d.mts +13 -13
  189. package/dist/server.d.ts +13 -13
  190. package/dist/server.mjs +21 -16
  191. package/dist/session-OU7M4CIF.cjs +24 -0
  192. package/dist/{session-ASQTJNBK.mjs → session-WPAT6H76.mjs} +3 -2
  193. package/dist/{spa-router.d-DXm5J9rM.d.mts → spa-router.d-DfjafHyX.d.mts} +2 -2
  194. package/dist/{spa-router.d-cppVufl2.d.ts → spa-router.d-DyGJLQc_.d.ts} +2 -2
  195. package/dist/{ssg.d-CI5OFl8H.d.ts → ssg.d-D11lz_wr.d.ts} +2 -2
  196. package/dist/{ssg.d-Duzy1wQc.d.mts → ssg.d-iiLTyLAO.d.mts} +2 -2
  197. package/dist/storage.cjs +7 -2
  198. package/dist/storage.d.mts +260 -38
  199. package/dist/storage.d.ts +260 -38
  200. package/dist/storage.mjs +6 -1
  201. package/dist/testing.d.mts +2 -2
  202. package/dist/testing.d.ts +2 -2
  203. package/dist/{types.d-D5cY6XjK.d.mts → types.d-DC97bnjj.d.mts} +20 -3
  204. package/dist/{types.d-D5cY6XjK.d.ts → types.d-DC97bnjj.d.ts} +20 -3
  205. package/dist/{utils.d-D3dfy8zh.d.ts → utils.d-D-GQeEfa.d.ts} +1 -1
  206. package/dist/{utils.d-CNI-I8ZV.d.mts → utils.d-fW-95yEh.d.mts} +1 -1
  207. package/dist/version.cjs +2 -2
  208. package/dist/version.mjs +1 -1
  209. package/dist/vite.cjs +14 -13
  210. package/dist/vite.d.mts +7 -7
  211. package/dist/vite.d.ts +7 -7
  212. package/dist/vite.mjs +13 -12
  213. package/package.json +2 -2
  214. package/dist/analyzer-KFJGYJS7.cjs +0 -16
  215. package/dist/layers-7P4RLKVX.cjs +0 -20
  216. package/dist/session-ACVUJ5XV.cjs +0 -23
  217. /package/dist/{chunk-OWO7KDZ3.cjs → chunk-AF3PNVVF.cjs} +0 -0
  218. /package/dist/{chunk-6MNDFNZW.mjs → chunk-BEXH6BGH.mjs} +0 -0
  219. /package/dist/{chunk-22T75EML.cjs → chunk-PC5OZ4YR.cjs} +0 -0
  220. /package/dist/{chunk-LSHUCNIF.mjs → chunk-RL47VZ6J.mjs} +0 -0
@@ -25,7 +25,8 @@ var _chunkAQIRXBBYcjs = require('./chunk-AQIRXBBY.cjs');
25
25
 
26
26
 
27
27
 
28
- var _chunkMTBDJ326cjs = require('./chunk-MTBDJ326.cjs');
28
+
29
+ var _chunkQMR2TUVZcjs = require('./chunk-QMR2TUVZ.cjs');
29
30
 
30
31
 
31
32
  var _chunkPG7J7XYTcjs = require('./chunk-PG7J7XYT.cjs');
@@ -37,6 +38,9 @@ var _chunkGBMWLDCCcjs = require('./chunk-GBMWLDCC.cjs');
37
38
  var _chunkJ6TZRYCOcjs = require('./chunk-J6TZRYCO.cjs');
38
39
 
39
40
 
41
+ var _chunkXRRHPBG2cjs = require('./chunk-XRRHPBG2.cjs');
42
+
43
+
40
44
  var _chunkCYOTNHDFcjs = require('./chunk-CYOTNHDF.cjs');
41
45
 
42
46
 
@@ -792,8 +796,8 @@ async function generateFarmTypeArtifacts(options) {
792
796
  const shouldGenerateEnv = options.env !== false;
793
797
  const shouldGenerateImages = options.images !== false;
794
798
  const shouldGenerateI18n = options.i18n !== false && _optionalChain([options, 'access', _51 => _51.i18nConfig, 'optionalAccess', _52 => _52.enabled]);
795
- const sourceRoots = _chunkMTBDJ326cjs.getFarmSourceRoots.call(void 0, { root, srcDir, layers: options.layers });
796
- const appDirs = _chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, { root, srcDir, layers: options.layers });
799
+ const sourceRoots = _chunkQMR2TUVZcjs.getFarmSourceRoots.call(void 0, { root, srcDir, layers: options.layers });
800
+ const appDirs = _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, { root, srcDir, layers: options.layers });
797
801
  const result = {
798
802
  apiRoutes: [],
799
803
  stalePaths: []
@@ -937,6 +941,8 @@ async function generateFarmTypeArtifacts(options) {
937
941
  }
938
942
  }
939
943
  if (shouldRefreshUnifiedTypes) {
944
+ const storageTypes = createStorageMountDeclarations(options, unifiedTypesPath);
945
+ if (storageTypes) unifiedSections.push(storageTypes);
940
946
  const syncModelTypes = createSyncModelTypeDeclarations(options.plugins);
941
947
  if (syncModelTypes) unifiedSections.push(syncModelTypes);
942
948
  }
@@ -983,6 +989,36 @@ ${unifiedSections.map(normalizeUnifiedTypeSection).join("\n\n")}
983
989
  }
984
990
  return result;
985
991
  }
992
+ function createStorageMountDeclarations(options, outPath) {
993
+ const storage = options.storage;
994
+ if (!storage || !("mounts" in storage) || !Object.values(_nullishCoalesce(storage.mounts, () => ( {}))).some(_chunkXRRHPBG2cjs.isManagedMount))
995
+ return;
996
+ const project = _chunkQMR2TUVZcjs.findFarmConfigFile.call(void 0,
997
+ options.root,
998
+ options.configPath && _path.resolve.call(void 0, options.root, options.configPath)
999
+ );
1000
+ const configs = [...(_nullishCoalesce(options.layers, () => ( []))).map((layer) => layer.configFile), project].filter(
1001
+ (file) => Boolean(file)
1002
+ );
1003
+ if (!configs.length) return;
1004
+ const lines = ["type FarmMountsOf<C> = C extends { storage: { mounts: infer M } } ? M : {};"];
1005
+ let mounts = "{}";
1006
+ for (const [index, file] of configs.entries()) {
1007
+ const path3 = _path.relative.call(void 0, _path.dirname.call(void 0, outPath), file).replace(/\\/g, "/").replace(/\.([cm]?)tsx?$/, ".$1js");
1008
+ const specifier = JSON.stringify(path3.startsWith(".") ? path3 : "./" + path3);
1009
+ const next = `FarmStorageMounts${index}`;
1010
+ lines.push(`type ${next} = FarmMountsOf<typeof import(${specifier}).default>;`);
1011
+ mounts = index === 0 ? next : `Omit<${mounts}, keyof ${next}> & ${next}`;
1012
+ }
1013
+ lines.push(`declare global {
1014
+ namespace FarmJS {
1015
+ interface StorageRegistry {
1016
+ mounts: ${mounts};
1017
+ }
1018
+ }
1019
+ }`);
1020
+ return lines.join("\n");
1021
+ }
986
1022
  function normalizeUnifiedTypeSection(section) {
987
1023
  return section.trimEnd().replace(/\n+export \{\};$/, "");
988
1024
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveFarmAppClientEntry,
3
3
  resolveFarmClientPlugins
4
- } from "./chunk-E77ZKNPN.mjs";
4
+ } from "./chunk-SL2BSPDJ.mjs";
5
5
  import {
6
6
  resolveFarmPlatform
7
7
  } from "./chunk-SMUW7UST.mjs";
@@ -9,7 +9,7 @@ import {
9
9
  collectSSGPages,
10
10
  matchSSGPage,
11
11
  resolveRouteRenderingConfigFromFile
12
- } from "./chunk-LQBV2Y37.mjs";
12
+ } from "./chunk-65XXHTVJ.mjs";
13
13
  import {
14
14
  appendFarmHead,
15
15
  classifyFarmDocumentPrefix,
@@ -48,7 +48,7 @@ import {
48
48
  } from "./chunk-H76C5AOU.mjs";
49
49
  import {
50
50
  listFarmMCPLlmsTxtLinks
51
- } from "./chunk-5EEQNZLU.mjs";
51
+ } from "./chunk-BTHNOAOF.mjs";
52
52
  import {
53
53
  FARM_DEFAULT_MCP_PATH,
54
54
  collectFarmDefaultMCPPages,
@@ -95,7 +95,7 @@ import {
95
95
  traceFarmSourceReads,
96
96
  usesFarmServerTree,
97
97
  withFarmSourceSnapshot
98
- } from "./chunk-2GZZVIXY.mjs";
98
+ } from "./chunk-QODXWUGQ.mjs";
99
99
  import {
100
100
  FARM_ISLAND_REPLAYABLE_SELECTOR
101
101
  } from "./chunk-S32PDOLO.mjs";
@@ -147,7 +147,7 @@ import {
147
147
  import {
148
148
  getFarmAppDirectories,
149
149
  getFarmSourceRoots
150
- } from "./chunk-E7VF3LQ5.mjs";
150
+ } from "./chunk-4STJ6LGR.mjs";
151
151
  import {
152
152
  assertFarmRendererStreamingRuntime,
153
153
  getFarmRendererCapabilities,
@@ -200,10 +200,10 @@ import {
200
200
  getIntegrationProviders,
201
201
  getRegisteredIntegrationAPIManifest,
202
202
  isFarmIntegrationProviderComponentReference
203
- } from "./chunk-6MNDFNZW.mjs";
203
+ } from "./chunk-BEXH6BGH.mjs";
204
204
  import {
205
205
  initStorage
206
- } from "./chunk-Q4X3MX4J.mjs";
206
+ } from "./chunk-D2RLADWN.mjs";
207
207
  import {
208
208
  resolveFarmRouteContext,
209
209
  withFarmRouteContext
@@ -298,7 +298,7 @@ import {
298
298
  } from "./chunk-2DA7CLY7.mjs";
299
299
  import {
300
300
  FARM_VERSION
301
- } from "./chunk-X3HUT4JU.mjs";
301
+ } from "./chunk-SMYDCZBW.mjs";
302
302
  import {
303
303
  _setFarmSearchPreserveRoutes
304
304
  } from "./chunk-VDQZV6BX.mjs";
@@ -8,7 +8,7 @@ var _chunkSHD265HWcjs = require('./chunk-SHD265HW.cjs');
8
8
  var _chunkGBMWLDCCcjs = require('./chunk-GBMWLDCC.cjs');
9
9
 
10
10
 
11
- var _chunkUBXNTZCYcjs = require('./chunk-UBXNTZCY.cjs');
11
+ var _chunkRFXEQYPHcjs = require('./chunk-RFXEQYPH.cjs');
12
12
 
13
13
  // src/integration-orm.ts
14
14
  async function createIntegrationOrm(options) {
@@ -31,7 +31,7 @@ async function resolveIntegrationOrmRuntimeClient(options) {
31
31
  if (options.client !== void 0) {
32
32
  return typeof options.client === "function" ? await options.client() : options.client;
33
33
  }
34
- return _chunkUBXNTZCYcjs.resolveStorageRuntimeClient.call(void 0, _nullishCoalesce(options.storage, () => ( _optionalChain([options, 'access', _ => _.config, 'optionalAccess', _2 => _2.storage]))));
34
+ return _chunkRFXEQYPHcjs.resolveStorageRuntimeClient.call(void 0, _nullishCoalesce(options.storage, () => ( _optionalChain([options, 'access', _ => _.config, 'optionalAccess', _2 => _2.storage]))));
35
35
  }
36
36
  async function farmIntegrationSchemaToOrmSchema(schema) {
37
37
  for (const [modelKey, modelSchema] of Object.entries(schema.models)) {
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-423SSBYQ.mjs";
16
16
  import {
17
17
  FARM_VERSION
18
- } from "./chunk-X3HUT4JU.mjs";
18
+ } from "./chunk-SMYDCZBW.mjs";
19
19
 
20
20
  // src/mobile/analyzer.ts
21
21
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkXLOORES5cjs = require('./chunk-XLOORES5.cjs');
3
+ var _chunkUYACD4SHcjs = require('./chunk-UYACD4SH.cjs');
4
4
 
5
5
  // src/deployment-environment.ts
6
6
  function isFarmProductionDeploymentEnvironment(env = process.env) {
@@ -90,7 +90,7 @@ function createFarmProductionSiteReporter(options) {
90
90
  schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
91
91
  eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
92
92
  packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
93
- packageVersion: sanitizeDetail(_chunkXLOORES5cjs.FARM_VERSION, "unknown"),
93
+ packageVersion: sanitizeDetail(_chunkUYACD4SHcjs.FARM_VERSION, "unknown"),
94
94
  renderer: sanitizeDetail(options.renderer, "custom"),
95
95
  deployTarget: sanitizeDetail(options.deployTarget, "custom")
96
96
  };
@@ -4,7 +4,7 @@
4
4
  var _chunkYRXPDKMMcjs = require('./chunk-YRXPDKMM.cjs');
5
5
 
6
6
 
7
- var _chunkTMVVBK5Scjs = require('./chunk-TMVVBK5S.cjs');
7
+ var _chunkJD42G6BNcjs = require('./chunk-JD42G6BN.cjs');
8
8
 
9
9
 
10
10
  var _chunkBTVDYS4Bcjs = require('./chunk-BTVDYS4B.cjs');
@@ -29,7 +29,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
29
29
  var _chunk7Q7UB4TLcjs = require('./chunk-7Q7UB4TL.cjs');
30
30
 
31
31
 
32
- var _chunkXLOORES5cjs = require('./chunk-XLOORES5.cjs');
32
+ var _chunkUYACD4SHcjs = require('./chunk-UYACD4SH.cjs');
33
33
 
34
34
 
35
35
  var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
@@ -288,7 +288,7 @@ function createFarmAppManifest(input, registered = []) {
288
288
  return {
289
289
  schemaVersion: 1,
290
290
  app: app ? {
291
- ...app.version ? { farm: _chunkXLOORES5cjs.FARM_VERSION } : {},
291
+ ...app.version ? { farm: _chunkUYACD4SHcjs.FARM_VERSION } : {},
292
292
  ...app.renderer ? { renderer: input.renderer } : {},
293
293
  basePath: input.basePath,
294
294
  ...app.build ? { build: input.build } : {}
@@ -319,7 +319,7 @@ function resolveFarmSiteUrl() {
319
319
  asUrl(read("RAILWAY_PUBLIC_DOMAIN"))
320
320
  ];
321
321
  for (const candidate of candidates) {
322
- const origin = candidate ? _chunkTMVVBK5Scjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
322
+ const origin = candidate ? _chunkJD42G6BNcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
323
323
  if (origin) return origin;
324
324
  }
325
325
  return null;
@@ -90,7 +90,7 @@ function formatFarmRscBlockingMessage(blockingKeys) {
90
90
  var warnedFallback = false;
91
91
  async function resolveFarmRscCheckConfig(config, root, mode) {
92
92
  if (!_optionalChain([config, 'optionalAccess', _8 => _8.extends])) return config;
93
- const { resolveFarmLayers } = await import("./layers-7P4RLKVX.cjs");
93
+ const { resolveFarmLayers } = await import("./layers-WP5K5F7W.cjs");
94
94
  return (await resolveFarmLayers(config, { root, mode })).config;
95
95
  }
96
96
  function farmAppUsesRscPipeline(config, root) {
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkHKGU2X4Icjs = require('./chunk-HKGU2X4I.cjs');
4
+ var _chunkFVVGEGQ2cjs = require('./chunk-FVVGEGQ2.cjs');
5
5
 
6
6
 
7
7
  var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
@@ -64,7 +64,7 @@ function findFarmNativeScreenFiles(appDirs) {
64
64
  }
65
65
  function collectFarmNativeServerFns(options) {
66
66
  const { root, srcDir } = options;
67
- const aliases = _chunkHKGU2X4Icjs.readAliases.call(void 0, root, srcDir);
67
+ const aliases = _chunkFVVGEGQ2cjs.readAliases.call(void 0, root, srcDir);
68
68
  const seen = /* @__PURE__ */ new Set();
69
69
  const found = /* @__PURE__ */ new Map();
70
70
  const queue = [...options.entries];
@@ -98,7 +98,7 @@ function collectFarmNativeServerFns(options) {
98
98
  }
99
99
  }
100
100
  for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
101
- const resolved = _chunkHKGU2X4Icjs.resolveFile.call(void 0, candidate);
101
+ const resolved = _chunkFVVGEGQ2cjs.resolveFile.call(void 0, candidate);
102
102
  if (resolved && SCRIPT.test(resolved) && !resolved.includes(`${_path2.default.sep}node_modules${_path2.default.sep}`)) {
103
103
  queue.push(resolved);
104
104
  break;
@@ -28,11 +28,11 @@ import {
28
28
  } from "./chunk-KQH2COEJ.mjs";
29
29
  import {
30
30
  FARM_MOBILE_SESSION_PLUGIN
31
- } from "./chunk-3OYFMOBY.mjs";
31
+ } from "./chunk-WHNNDFCJ.mjs";
32
32
  import {
33
33
  collectFarmNativeServerFns,
34
34
  findFarmNativeScreenFiles
35
- } from "./chunk-MOS2N377.mjs";
35
+ } from "./chunk-2QPTZMGK.mjs";
36
36
  import {
37
37
  assertFarmDocsAdapterServesNoGuardedPages,
38
38
  compileFarmDocsAdapterEdgeManifest,
@@ -41,7 +41,7 @@ import {
41
41
  hasFarmDocsRuntimeAdapter,
42
42
  listFarmDocsAdapterPages,
43
43
  listFarmDocsPagePaths
44
- } from "./chunk-YQXJY7E7.mjs";
44
+ } from "./chunk-TQOYIPMQ.mjs";
45
45
  import {
46
46
  FARM_DOCS_LAST_MODIFIED_MANIFEST,
47
47
  createFarmDocsHandler,
@@ -65,7 +65,7 @@ import {
65
65
  } from "./chunk-URQW27KO.mjs";
66
66
  import {
67
67
  FARM_PRERENDER_ENV
68
- } from "./chunk-VDJ3CLBR.mjs";
68
+ } from "./chunk-YTGNMKRA.mjs";
69
69
  import {
70
70
  loadFarmDocsEngine
71
71
  } from "./chunk-LRPPXKCX.mjs";
@@ -74,7 +74,7 @@ import {
74
74
  getDeployTargetForPreset,
75
75
  hasCustomFarmRouteContext,
76
76
  resolveDeployOutputPath
77
- } from "./chunk-GP5BWTO7.mjs";
77
+ } from "./chunk-ZBE5EHVJ.mjs";
78
78
  import {
79
79
  resolveFarmInstrumentationFile
80
80
  } from "./chunk-57QAQU4F.mjs";
@@ -116,23 +116,23 @@ import {
116
116
  resolveFarmNotFoundComponentPath,
117
117
  resolveFarmRouteRootStrategy,
118
118
  toBakedMarkdownSourcePath
119
- } from "./chunk-CKBBKRBO.mjs";
119
+ } from "./chunk-IHMSLS2O.mjs";
120
120
  import {
121
121
  TAILWIND_CSS_BROWSER_TARGET,
122
122
  generateFarmClientPluginEntryCode,
123
123
  hasFarmServerRuntimePlugins,
124
124
  includesTailwindVitePlugin,
125
125
  loadTailwindVitePlugin
126
- } from "./chunk-E77ZKNPN.mjs";
126
+ } from "./chunk-SL2BSPDJ.mjs";
127
127
  import {
128
128
  PluginManager
129
- } from "./chunk-LSHUCNIF.mjs";
129
+ } from "./chunk-RL47VZ6J.mjs";
130
130
  import {
131
131
  generateFarmTypeArtifacts,
132
132
  readRouteRenderingDirectiveFromFile,
133
133
  resolveRouteRenderingConfig,
134
134
  resolveRouteRenderingConfigFromFile
135
- } from "./chunk-LQBV2Y37.mjs";
135
+ } from "./chunk-65XXHTVJ.mjs";
136
136
  import {
137
137
  HOISTED_HEAD_ELEMENT,
138
138
  appMiddlewareMayHandlePath,
@@ -159,7 +159,7 @@ import {
159
159
  listFarmBuiltInRoutePaths,
160
160
  resolveFarmApiCatalogInput,
161
161
  resolveFarmAppManifestInput
162
- } from "./chunk-5EEQNZLU.mjs";
162
+ } from "./chunk-BTHNOAOF.mjs";
163
163
  import {
164
164
  FARM_DEFAULT_MCP_PATH,
165
165
  createFarmDefaultMCPServer,
@@ -167,7 +167,7 @@ import {
167
167
  } from "./chunk-JA6RML7C.mjs";
168
168
  import {
169
169
  isFarmPreviewDeploymentEnvironment
170
- } from "./chunk-SGQXJVFX.mjs";
170
+ } from "./chunk-ORWXJDUN.mjs";
171
171
  import {
172
172
  FARM_NATIVE_SERVER_FN_PLUGIN
173
173
  } from "./chunk-L4RTTTVE.mjs";
@@ -188,7 +188,7 @@ import {
188
188
  withFarmSourceSnapshot,
189
189
  withFarmSourceSnapshotOf,
190
190
  withPackageClientBoundaryCache
191
- } from "./chunk-2GZZVIXY.mjs";
191
+ } from "./chunk-QODXWUGQ.mjs";
192
192
  import {
193
193
  generateFarmDocsAdapterClientRuntime,
194
194
  getFarmDocsAdapterConfigModule
@@ -210,7 +210,7 @@ import {
210
210
  } from "./chunk-4QENVMG7.mjs";
211
211
  import {
212
212
  getFarmAppDirectories
213
- } from "./chunk-E7VF3LQ5.mjs";
213
+ } from "./chunk-4STJ6LGR.mjs";
214
214
  import {
215
215
  REACT_RENDERER,
216
216
  getFarmRendererCapabilities,
@@ -257,13 +257,13 @@ import {
257
257
  import {
258
258
  getFarmIntegrationPluginServerRuntime,
259
259
  getIntegrationProviders
260
- } from "./chunk-6MNDFNZW.mjs";
260
+ } from "./chunk-BEXH6BGH.mjs";
261
261
  import {
262
262
  FARM_INTEGRATION_API_BASE_PATH_KEY
263
263
  } from "./chunk-CZOXZ6WQ.mjs";
264
264
  import {
265
265
  _collectFarmStorageModules
266
- } from "./chunk-Q4X3MX4J.mjs";
266
+ } from "./chunk-D2RLADWN.mjs";
267
267
  import {
268
268
  appendMiddlewareDirectory,
269
269
  appendMiddlewareRoutePath,
@@ -299,7 +299,7 @@ import {
299
299
  } from "./chunk-2I6PUKWJ.mjs";
300
300
  import {
301
301
  FARM_VERSION
302
- } from "./chunk-X3HUT4JU.mjs";
302
+ } from "./chunk-SMYDCZBW.mjs";
303
303
  import {
304
304
  FARM_VIDEO_PLAYER_PATH
305
305
  } from "./chunk-AG27TI6Q.mjs";
@@ -3054,7 +3054,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3054
3054
  if (!mobile) await removeFarmMobileClientManifest(path16.dirname(outputDir));
3055
3055
  const viteBuild = productionVite.build;
3056
3056
  const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
3057
- const { PluginManager: PluginManager2 } = await import("./plugin-6CHZBFJD.mjs");
3057
+ const { PluginManager: PluginManager2 } = await import("./plugin-2KWR2X4B.mjs");
3058
3058
  const fs5 = await import("fs/promises");
3059
3059
  const pluginManager = new PluginManager2({
3060
3060
  config,
@@ -6764,7 +6764,7 @@ void hydrate();
6764
6764
  async function buildSSRInMemory(productionVite, config, root, routeManager, apiRouteManager, serverRenderer, preset, collectedPageRoutes, collectedLayoutRoutes, collectedRouteSlots, isolatedClientBoundaryModules, hydrationPlanCache, rendererBuildLifetime, sourceSnapshot) {
6765
6765
  const viteBuild = productionVite.build;
6766
6766
  const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.mjs");
6767
- const { PluginManager: PluginManager2 } = await import("./plugin-6CHZBFJD.mjs");
6767
+ const { PluginManager: PluginManager2 } = await import("./plugin-2KWR2X4B.mjs");
6768
6768
  const fs5 = await import("fs/promises");
6769
6769
  const pluginManager = new PluginManager2({
6770
6770
  config,
@@ -7489,9 +7489,9 @@ function useFarmNodePageResponse(ResponseClass) {
7489
7489
  // Web body the way reading response.body would.
7490
7490
  const farmLazyBufferedHtml = new WeakMap();
7491
7491
 
7492
- // Bind the stored shell to the response Farm built from it. A body replacement
7493
- // gets a new response and takes the ordinary scan path.
7494
- const farmPreloadShells = new WeakMap();
7492
+ // Only the response built from a stored shell can reuse its preload scan and
7493
+ // compressed bytes. Replacing the body creates a new response.
7494
+ const farmResponseShells = new WeakMap();
7495
7495
 
7496
7496
  function hasFarmContentType(headers) {
7497
7497
  if (!headers) return false;
@@ -7601,7 +7601,7 @@ async function applyFarmPreloadBudget(response, pathname, request) {
7601
7601
  const ownedHtml = hasNoHtmlPreloads ? undefined : getFarmOwnedBufferedHtml(response);
7602
7602
  const html = hasNoHtmlPreloads ? "" : (ownedHtml ?? await response.text());
7603
7603
  const managed = manageFarmDocumentPreloads(html, linkHeader, farmPreloadConfig,
7604
- ownedHtml === undefined ? undefined : farmPreloadShells.get(response));
7604
+ ownedHtml === undefined ? undefined : farmResponseShells.get(response));
7605
7605
  // A remembered document the budget left unchanged keeps its unread body.
7606
7606
  const reusesBody = hasNoHtmlPreloads || (ownedHtml !== undefined && managed.html === html);
7607
7607
  if (ownedHtml !== undefined && !reusesBody && !isLazyPage) {
@@ -11662,7 +11662,7 @@ ${hasServerRuntimeIntegrations ? `
11662
11662
  : {}),
11663
11663
  },
11664
11664
  }), middlewareHeaders), cachedPPRShell);
11665
- farmPreloadShells.set(response, cachedPPRShellEntry);
11665
+ farmResponseShells.set(response, cachedPPRShellEntry);
11666
11666
  return response;
11667
11667
  }
11668
11668
  emitFarmEvent({ type: "ppr.shell.miss", route: pathname, key: pprCacheKey });
@@ -13115,7 +13115,7 @@ async function handleFarmFetch(request, context) {${config.server.trustProxy ? `
13115
13115
  );
13116
13116
  // A Nitro cache rule stores the response and strips its Content-Encoding, so a
13117
13117
  // response it caches is sent as it is, with no Vary on an encoding it never saw.
13118
- return ${hasCompressionRuntime && !hasPluginRuntime ? "context?.routeRuleCache ? response : compressFarmResponse(request, response, getFarmOwnedBufferedHtml(response), farmLazyBufferedHtml.has(response))" : "response"};
13118
+ return ${hasCompressionRuntime && !hasPluginRuntime ? "context?.routeRuleCache ? response : compressFarmResponse(request, response, getFarmOwnedBufferedHtml(response), farmLazyBufferedHtml.has(response), farmResponseShells.get(response))" : "response"};
13119
13119
  }),
13120
13120
  {
13121
13121
  onResponseFinished: typeof context?.onResponseFinished === "function"
@@ -14852,6 +14852,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14852
14852
  root,
14853
14853
  srcDir,
14854
14854
  layers: config.layers,
14855
+ storage: config.storage,
14855
14856
  plugins: config.plugins,
14856
14857
  extraRoutes: [
14857
14858
  ...config.openapi?.enabled && config.openapi.route ? [config.openapi.route] : [],
@@ -15038,7 +15039,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15038
15039
  farmPlugin,
15039
15040
  farmServerOnlyEntriesPlugin
15040
15041
  } = await import("./vite.mjs");
15041
- const { PluginManager: PluginManager2 } = await import("./plugin-6CHZBFJD.mjs");
15042
+ const { PluginManager: PluginManager2 } = await import("./plugin-2KWR2X4B.mjs");
15042
15043
  const pluginManager = new PluginManager2({
15043
15044
  config,
15044
15045
  isDev: false,
@@ -15066,7 +15067,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15066
15067
  }
15067
15068
  async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
15068
15069
  const { farmI18nClientBridgePlugin, farmIslandContainersPlugin, farmPlugin } = await import("./vite.mjs");
15069
- const { PluginManager: PluginManager2 } = await import("./plugin-6CHZBFJD.mjs");
15070
+ const { PluginManager: PluginManager2 } = await import("./plugin-2KWR2X4B.mjs");
15070
15071
  const pluginManager = new PluginManager2({
15071
15072
  config,
15072
15073
  isDev: false,
@@ -90,7 +90,7 @@ function formatFarmRscBlockingMessage(blockingKeys) {
90
90
  var warnedFallback = false;
91
91
  async function resolveFarmRscCheckConfig(config, root, mode) {
92
92
  if (!config?.extends) return config;
93
- const { resolveFarmLayers } = await import("./layers-XQ7VFMWO.mjs");
93
+ const { resolveFarmLayers } = await import("./layers-I7VE5Q2Y.mjs");
94
94
  return (await resolveFarmLayers(config, { root, mode })).config;
95
95
  }
96
96
  function farmAppUsesRscPipeline(config, root) {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkDVW6SKHAcjs = require('./chunk-DVW6SKHA.cjs');
3
+ var _chunkIIVZTGGPcjs = require('./chunk-IIVZTGGP.cjs');
4
4
 
5
5
 
6
6
 
@@ -25,7 +25,7 @@ var _chunkGDM3ZD2Ocjs = require('./chunk-GDM3ZD2O.cjs');
25
25
  var _chunk2LHZD3OPcjs = require('./chunk-2LHZD3OP.cjs');
26
26
 
27
27
 
28
- var _chunkOWO7KDZ3cjs = require('./chunk-OWO7KDZ3.cjs');
28
+ var _chunkAF3PNVVFcjs = require('./chunk-AF3PNVVF.cjs');
29
29
 
30
30
 
31
31
  var _chunkGBMWLDCCcjs = require('./chunk-GBMWLDCC.cjs');
@@ -117,14 +117,14 @@ async function withTimeout(work, timeoutMs) {
117
117
  var formatSeconds = (ms) => ms < 1e3 ? `${ms}ms` : `${Number((ms / 1e3).toFixed(1))}s`;
118
118
  function collectSchemaOwners(config) {
119
119
  const owners = [];
120
- const integrationSchemas = _chunkOWO7KDZ3cjs.getIntegrationSchemas.call(void 0, config.integrations);
120
+ const integrationSchemas = _chunkAF3PNVVFcjs.getIntegrationSchemas.call(void 0, config.integrations);
121
121
  let integrationClient;
122
122
  for (const [name, schema] of Object.entries(integrationSchemas)) {
123
123
  owners.push({
124
124
  name,
125
125
  kind: "integration",
126
126
  schema,
127
- resolveClient: (resolved) => _nullishCoalesce(integrationClient, () => ( (integrationClient = _chunkDVW6SKHAcjs.resolveIntegrationOrmRuntimeClient.call(void 0, { config: resolved }))))
127
+ resolveClient: (resolved) => _nullishCoalesce(integrationClient, () => ( (integrationClient = _chunkIIVZTGGPcjs.resolveIntegrationOrmRuntimeClient.call(void 0, { config: resolved }))))
128
128
  });
129
129
  }
130
130
  for (const declaration of _chunkGDM3ZD2Ocjs.findSchemaTableOwners.call(void 0, config)) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FARM_VERSION
3
- } from "./chunk-X3HUT4JU.mjs";
3
+ } from "./chunk-SMYDCZBW.mjs";
4
4
 
5
5
  // src/deployment-environment.ts
6
6
  function isFarmProductionDeploymentEnvironment(env = process.env) {
@@ -7,7 +7,7 @@ var _chunk7KJJ4SBScjs = require('./chunk-7KJJ4SBS.cjs');
7
7
  var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
8
8
 
9
9
 
10
- var _chunkMTBDJ326cjs = require('./chunk-MTBDJ326.cjs');
10
+ var _chunkQMR2TUVZcjs = require('./chunk-QMR2TUVZ.cjs');
11
11
 
12
12
 
13
13
  var _chunk67MZTLTFcjs = require('./chunk-67MZTLTF.cjs');
@@ -21,7 +21,7 @@ var _chunkYUCU6XB4cjs = require('./chunk-YUCU6XB4.cjs');
21
21
  var _chunkGC5ROI3Acjs = require('./chunk-GC5ROI3A.cjs');
22
22
 
23
23
 
24
- var _chunkXLOORES5cjs = require('./chunk-XLOORES5.cjs');
24
+ var _chunkUYACD4SHcjs = require('./chunk-UYACD4SH.cjs');
25
25
 
26
26
  // src/environment-vite.ts
27
27
  var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
@@ -878,7 +878,7 @@ function usePackageScanCacheFile(file) {
878
878
  const stored = /* @__PURE__ */ new Map();
879
879
  try {
880
880
  const value = JSON.parse(_fs2.default.readFileSync(file, "utf8"));
881
- if (_optionalChain([value, 'optionalAccess', _68 => _68.schema]) === PACKAGE_SCAN_CACHE_SCHEMA && value.farm === _chunkXLOORES5cjs.FARM_VERSION && value.scans && typeof value.scans === "object") {
881
+ if (_optionalChain([value, 'optionalAccess', _68 => _68.schema]) === PACKAGE_SCAN_CACHE_SCHEMA && value.farm === _chunkUYACD4SHcjs.FARM_VERSION && value.scans && typeof value.scans === "object") {
882
882
  for (const [directory, scan] of Object.entries(value.scans)) {
883
883
  if (isStoredPackageScan(scan)) stored.set(directory, scan);
884
884
  }
@@ -907,7 +907,7 @@ function persistPackageScanCache() {
907
907
  _fs2.default.mkdirSync(_path2.default.dirname(cache2.file), { recursive: true });
908
908
  _fs2.default.writeFileSync(
909
909
  temporary,
910
- JSON.stringify({ schema: PACKAGE_SCAN_CACHE_SCHEMA, farm: _chunkXLOORES5cjs.FARM_VERSION, scans })
910
+ JSON.stringify({ schema: PACKAGE_SCAN_CACHE_SCHEMA, farm: _chunkUYACD4SHcjs.FARM_VERSION, scans })
911
911
  );
912
912
  _fs2.default.renameSync(temporary, cache2.file);
913
913
  cache2.dirty = false;
@@ -2207,7 +2207,7 @@ var PackageClientBoundaryCache = class {
2207
2207
  }
2208
2208
  const contents = JSON.stringify({
2209
2209
  schema: SCHEMA_VERSION,
2210
- farm: _chunkXLOORES5cjs.FARM_VERSION,
2210
+ farm: _chunkUYACD4SHcjs.FARM_VERSION,
2211
2211
  paths,
2212
2212
  entries
2213
2213
  });
@@ -2247,7 +2247,7 @@ function readStoredCache(file) {
2247
2247
  } catch (e37) {
2248
2248
  return null;
2249
2249
  }
2250
- if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !== _chunkXLOORES5cjs.FARM_VERSION) {
2250
+ if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !== _chunkUYACD4SHcjs.FARM_VERSION) {
2251
2251
  return null;
2252
2252
  }
2253
2253
  const { paths, entries } = value;
@@ -2258,7 +2258,7 @@ function readStoredCache(file) {
2258
2258
  const usable = variants.filter((entry) => isStoredEntry(entry, paths.length));
2259
2259
  if (usable.length > 0) valid[key] = usable;
2260
2260
  }
2261
- return { schema: SCHEMA_VERSION, farm: _chunkXLOORES5cjs.FARM_VERSION, paths, entries: valid };
2261
+ return { schema: SCHEMA_VERSION, farm: _chunkUYACD4SHcjs.FARM_VERSION, paths, entries: valid };
2262
2262
  }
2263
2263
  function isRecord(value) {
2264
2264
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -4290,7 +4290,7 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
4290
4290
  farmApi = _optionalChain([config, 'access', _244 => _244.plugins, 'access', _245 => _245.find, 'call', _246 => _246((plugin) => plugin.name === "farm"), 'optionalAccess', _247 => _247.api]);
4291
4291
  sources = void 0;
4292
4292
  routesFiles = new Set(
4293
- _chunkMTBDJ326cjs.getFarmSourceRoots.call(void 0, { ...options, root: _nullishCoalesce(options.root, () => ( config.root)) }).flatMap(
4293
+ _chunkQMR2TUVZcjs.getFarmSourceRoots.call(void 0, { ...options, root: _nullishCoalesce(options.root, () => ( config.root)) }).flatMap(
4294
4294
  (source) => _chunkYUCU6XB4cjs.PROGRAMMATIC_ROUTE_FILE_NAMES.map(
4295
4295
  (name) => resolvedFile(_path2.default.resolve(source.root, source.srcDir, name))
4296
4296
  )