@farm.js/core 0.1.67 → 0.1.68

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 (281) hide show
  1. package/dist/{agent-mcp.d-BFu9xHAi.d.ts → agent-mcp.d-Uh5xr7aX.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-DWyWkTSy.d.mts → agent-mcp.d-wkVPK1GA.d.mts} +1 -1
  3. package/dist/agent-runtime.d.mts +5 -3
  4. package/dist/agent-runtime.d.ts +5 -3
  5. package/dist/{analyzer-TTIIXXMQ.mjs → analyzer-CQDU7E3Y.mjs} +2 -2
  6. package/dist/analyzer-PPAHM4AW.cjs +16 -0
  7. package/dist/api/node.d.mts +7 -5
  8. package/dist/api/node.d.ts +7 -5
  9. package/dist/api/route-manager.d.mts +7 -5
  10. package/dist/api/route-manager.d.ts +7 -5
  11. package/dist/api/runtime.d.mts +6 -4
  12. package/dist/api/runtime.d.ts +6 -4
  13. package/dist/api.d.mts +8 -6
  14. package/dist/api.d.ts +8 -6
  15. package/dist/{app-manifest.d-CwfhGrVR.d.ts → app-manifest.d-BT5i2F-o.d.ts} +1 -1
  16. package/dist/{app-manifest.d-CRmjN5j9.d.mts → app-manifest.d-Dd4q5CFx.d.mts} +1 -1
  17. package/dist/app-markdown.cjs +3 -3
  18. package/dist/app-markdown.d.mts +10 -10
  19. package/dist/app-markdown.d.ts +10 -10
  20. package/dist/app-markdown.mjs +2 -2
  21. package/dist/{app.d-BX9LVTiP.d.ts → app.d-BVOpL_f2.d.ts} +6 -6
  22. package/dist/{app.d-uBBUxwyV.d.mts → app.d-BhiDXex_.d.mts} +6 -6
  23. package/dist/{chunk-23PVOIPT.cjs → chunk-225APHKC.cjs} +3 -3
  24. package/dist/{chunk-4JX3M4C6.cjs → chunk-23VJEGKC.cjs} +2 -1
  25. package/dist/{chunk-Q37INCXG.cjs → chunk-3EEINK7G.cjs} +11 -2
  26. package/dist/{chunk-BRWIVOV4.cjs → chunk-3GNHJ3RN.cjs} +10 -8
  27. package/dist/{chunk-QJVW76JG.mjs → chunk-3Y52TWYU.mjs} +2 -2
  28. package/dist/{chunk-OB3IFUK6.cjs → chunk-437QZIC2.cjs} +4 -4
  29. package/dist/{chunk-WGHY3OL5.mjs → chunk-4UAQB5LB.mjs} +232 -49
  30. package/dist/{chunk-JWSI5WO4.mjs → chunk-4ZXKYCYK.mjs} +1 -1
  31. package/dist/{chunk-N35YPV4N.mjs → chunk-57QAQU4F.mjs} +9 -7
  32. package/dist/{chunk-AQDLVHNF.mjs → chunk-5FBZJJGA.mjs} +17 -0
  33. package/dist/{chunk-PL6RTBDE.cjs → chunk-5JKDFRTK.cjs} +2 -2
  34. package/dist/{chunk-CO3YMZFD.mjs → chunk-6OFOIMNS.mjs} +1 -1
  35. package/dist/{chunk-556H7JCE.cjs → chunk-7LK5CTUM.cjs} +14 -14
  36. package/dist/{chunk-E6CD45JK.mjs → chunk-A3T445WK.mjs} +19 -5
  37. package/dist/{chunk-DQJ2CIH7.cjs → chunk-ASYOWPSR.cjs} +2 -1
  38. package/dist/{chunk-QGJ4FI2G.mjs → chunk-C6HGUTXB.mjs} +113 -29
  39. package/dist/{chunk-IRA2CZAY.mjs → chunk-CRVSYDHV.mjs} +2 -2
  40. package/dist/{chunk-XNZWMXCF.mjs → chunk-DIXFKAPM.mjs} +183 -76
  41. package/dist/{chunk-QGQP6QKO.cjs → chunk-DWLNLU55.cjs} +2 -2
  42. package/dist/{chunk-52Y3C3HG.mjs → chunk-E7VF3LQ5.mjs} +3 -2
  43. package/dist/{chunk-N5DQMOAG.cjs → chunk-F36LS2C7.cjs} +273 -90
  44. package/dist/{chunk-H37MDCPR.mjs → chunk-F6CMGWAL.mjs} +1 -1
  45. package/dist/{chunk-HNVAZGQD.cjs → chunk-FJMC24KG.cjs} +2 -2
  46. package/dist/{chunk-KCY52OUQ.cjs → chunk-FSODPZRT.cjs} +1 -1
  47. package/dist/{chunk-PPX7UOFY.cjs → chunk-FVYBEMOD.cjs} +55 -38
  48. package/dist/{chunk-6YBYX4K4.mjs → chunk-G7NBPP7H.mjs} +1 -1
  49. package/dist/{chunk-HFHJJXSV.mjs → chunk-GFPS7MNE.mjs} +1 -1
  50. package/dist/{chunk-3T5TLFCQ.mjs → chunk-HEJM46HQ.mjs} +11 -2
  51. package/dist/chunk-HHLEYA4B.cjs +17 -0
  52. package/dist/{chunk-F43OG25P.cjs → chunk-I7J5RLGO.cjs} +15 -1
  53. package/dist/chunk-ICFPTHXM.mjs +97 -0
  54. package/dist/{chunk-6V5YWI4W.cjs → chunk-IGDYL2IA.cjs} +2 -2
  55. package/dist/{chunk-TEG6HJVF.mjs → chunk-JL2YW5KX.mjs} +1 -0
  56. package/dist/{chunk-JVM3DKZE.mjs → chunk-KDO6T6OB.mjs} +1 -1
  57. package/dist/{chunk-QITSS4TD.cjs → chunk-KWCZKJYU.cjs} +352 -245
  58. package/dist/{chunk-DCXSIEFE.cjs → chunk-LDEXTX4I.cjs} +51 -37
  59. package/dist/{chunk-3T7ALZJF.cjs → chunk-LR4KP3I7.cjs} +2 -2
  60. package/dist/{chunk-VFXE6NWR.mjs → chunk-MGKWYPE3.mjs} +2 -1
  61. package/dist/{chunk-5TA63JD3.mjs → chunk-MGZVDX4R.mjs} +1 -1
  62. package/dist/{chunk-6SQZXRJ2.cjs → chunk-MMDKYJ5V.cjs} +7 -7
  63. package/dist/{chunk-HP2DQGQH.mjs → chunk-MNJDNTGO.mjs} +1 -1
  64. package/dist/{chunk-5Y2P454O.cjs → chunk-MTBDJ326.cjs} +6 -5
  65. package/dist/{chunk-XUES6OET.mjs → chunk-MV7NWU23.mjs} +1 -1
  66. package/dist/{chunk-4DRINDGN.cjs → chunk-MZ4CRSY7.cjs} +254 -125
  67. package/dist/{chunk-4IHMHFQB.cjs → chunk-NG2EZ6QS.cjs} +28 -1
  68. package/dist/{chunk-WDD5CTZW.mjs → chunk-NT4W4H52.mjs} +6 -6
  69. package/dist/{chunk-F7JKVHU2.mjs → chunk-NVOMQLI2.mjs} +15 -1
  70. package/dist/{chunk-22IWL4YD.cjs → chunk-OCNV4CI2.cjs} +21 -2
  71. package/dist/{chunk-72KCTHLV.cjs → chunk-PRL7FXG4.cjs} +113 -29
  72. package/dist/{chunk-YVTS3S3F.cjs → chunk-QOGIZKSO.cjs} +3 -3
  73. package/dist/{chunk-DB2HSHQA.cjs → chunk-QSUYB3RH.cjs} +14 -14
  74. package/dist/chunk-QYNZ3CTI.mjs +17 -0
  75. package/dist/{chunk-724MGMIL.mjs → chunk-R2ZHU37O.mjs} +19 -0
  76. package/dist/{chunk-YQYTQJZN.mjs → chunk-RLH5AH2M.mjs} +1 -1
  77. package/dist/{chunk-HM7AGSKU.cjs → chunk-SQ6IWJ3H.cjs} +1 -1
  78. package/dist/{chunk-V5MQMQ2P.mjs → chunk-T5XFZQCL.mjs} +1 -1
  79. package/dist/{chunk-Q5UX55YA.cjs → chunk-TNK2TVRS.cjs} +831 -470
  80. package/dist/{chunk-J7JHVCWA.cjs → chunk-UKZ6AWKZ.cjs} +2 -1
  81. package/dist/{chunk-V5RTHYJB.cjs → chunk-URN7VFO7.cjs} +91 -22
  82. package/dist/{chunk-HRPTMX5C.mjs → chunk-VFNAK6A5.mjs} +2 -2
  83. package/dist/{chunk-VK54PDQ6.mjs → chunk-VRGY3X2I.mjs} +86 -17
  84. package/dist/chunk-W44X6IC2.cjs +97 -0
  85. package/dist/{chunk-GTV2ABO7.mjs → chunk-WPB67LE5.mjs} +162 -33
  86. package/dist/{chunk-UHE5JUKB.mjs → chunk-XCAQTCGK.mjs} +1 -1
  87. package/dist/{chunk-DGOFR7D5.cjs → chunk-Y6KHPJDB.cjs} +2 -2
  88. package/dist/{chunk-LPIZMU7D.cjs → chunk-YTNBCXCW.cjs} +4 -4
  89. package/dist/{chunk-KWFNUODD.mjs → chunk-YVPX5PI5.mjs} +1 -0
  90. package/dist/{chunk-6R53ZWX2.cjs → chunk-Z3PW3DIR.cjs} +3 -3
  91. package/dist/{chunk-UHNSY2PQ.mjs → chunk-Z6SOXHAD.mjs} +772 -411
  92. package/dist/{chunk-5FE5YT2N.mjs → chunk-ZZGQD3LL.mjs} +28 -1
  93. package/dist/{client-component.d-CDRvRmbU.d.mts → client-component.d-BvQOxSqh.d.mts} +2 -2
  94. package/dist/{client-component.d-DWRKyAp5.d.ts → client-component.d-DNVSLEPi.d.ts} +2 -2
  95. package/dist/{client-plugins.d-BNILjfX3.d.mts → client-plugins.d-CE1lVK2R.d.mts} +23 -234
  96. package/dist/{client-plugins.d-CrKZiNSN.d.ts → client-plugins.d-CNDqcAuf.d.ts} +23 -234
  97. package/dist/client-plugins.d.mts +5 -3
  98. package/dist/client-plugins.d.ts +5 -3
  99. package/dist/client.cjs +6 -6
  100. package/dist/client.d.mts +10 -8
  101. package/dist/client.d.ts +10 -8
  102. package/dist/client.mjs +5 -5
  103. package/dist/config.d.mts +5 -3
  104. package/dist/config.d.ts +5 -3
  105. package/dist/deployment.cjs +4 -2
  106. package/dist/deployment.d.mts +15 -1
  107. package/dist/deployment.d.ts +15 -1
  108. package/dist/deployment.mjs +3 -1
  109. package/dist/desktop.d.mts +6 -4
  110. package/dist/desktop.d.ts +6 -4
  111. package/dist/{devtools-UFQYT3VA.mjs → devtools-2A2GPC7B.mjs} +6 -6
  112. package/dist/{devtools-RZVT4JVN.cjs → devtools-R27T3BRY.cjs} +7 -7
  113. package/dist/docs.cjs +9 -9
  114. package/dist/docs.d.mts +6 -4
  115. package/dist/docs.d.ts +6 -4
  116. package/dist/docs.mjs +8 -8
  117. package/dist/environment/vite.cjs +5 -5
  118. package/dist/environment/vite.d.mts +1 -1
  119. package/dist/environment/vite.d.ts +1 -1
  120. package/dist/environment/vite.mjs +4 -4
  121. package/dist/{generate-route-types.d-BL2pq6xC.d.ts → generate-route-types.d-B76M5R11.d.ts} +1 -1
  122. package/dist/{generate-route-types.d-BoVDU8qX.d.mts → generate-route-types.d-CaGMIaNI.d.mts} +1 -1
  123. package/dist/index.cjs +41 -36
  124. package/dist/{index.d-Bdm6866n.d.mts → index.d-Bt3kl19W.d.mts} +1 -1
  125. package/dist/{index.d-Dey5T14f.d.ts → index.d-Cx_-DaKV.d.ts} +1 -1
  126. package/dist/index.d.mts +25 -22
  127. package/dist/index.d.ts +25 -22
  128. package/dist/index.mjs +43 -38
  129. package/dist/instrumentation.cjs +3 -3
  130. package/dist/instrumentation.mjs +2 -2
  131. package/dist/integrations/orm.d.mts +5 -3
  132. package/dist/integrations/orm.d.ts +5 -3
  133. package/dist/integrations.d.mts +5 -3
  134. package/dist/integrations.d.ts +5 -3
  135. package/dist/internal/app-markdown-runtime.cjs +2 -2
  136. package/dist/internal/app-markdown-runtime.d.mts +12 -5
  137. package/dist/internal/app-markdown-runtime.d.ts +12 -5
  138. package/dist/internal/app-markdown-runtime.mjs +1 -1
  139. package/dist/internal/build-runtime.cjs +33 -30
  140. package/dist/internal/build-runtime.d.mts +7 -5
  141. package/dist/internal/build-runtime.d.ts +7 -5
  142. package/dist/internal/build-runtime.mjs +32 -29
  143. package/dist/internal/cli-runtime.cjs +10 -10
  144. package/dist/internal/cli-runtime.mjs +9 -9
  145. package/dist/internal/client-error-overlay.cjs +4 -4
  146. package/dist/internal/client-error-overlay.mjs +1 -1
  147. package/dist/internal/client-runtime.cjs +31 -36
  148. package/dist/internal/client-runtime.d.mts +8 -6
  149. package/dist/internal/client-runtime.d.ts +8 -6
  150. package/dist/internal/client-runtime.mjs +22 -27
  151. package/dist/internal/compression-runtime.d.mts +5 -3
  152. package/dist/internal/compression-runtime.d.ts +5 -3
  153. package/dist/internal/config-runtime.cjs +8 -8
  154. package/dist/internal/config-runtime.d.mts +9 -7
  155. package/dist/internal/config-runtime.d.ts +9 -7
  156. package/dist/internal/config-runtime.mjs +7 -7
  157. package/dist/internal/form-actions.cjs +7 -2
  158. package/dist/internal/form-actions.d.mts +10 -3
  159. package/dist/internal/form-actions.d.ts +10 -3
  160. package/dist/internal/form-actions.mjs +8 -3
  161. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  162. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  163. package/dist/internal/islands-boot.cjs +6 -1
  164. package/dist/internal/islands-boot.mjs +6 -1
  165. package/dist/internal/native-server-fns.cjs +4 -4
  166. package/dist/internal/native-server-fns.mjs +3 -3
  167. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  168. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  169. package/dist/internal/production-node-env.cjs +4 -2
  170. package/dist/internal/production-node-env.d.mts +22 -1
  171. package/dist/internal/production-node-env.d.ts +22 -1
  172. package/dist/internal/production-node-env.mjs +3 -1
  173. package/dist/internal/production-runtime.cjs +13 -9
  174. package/dist/internal/production-runtime.d.mts +21 -16
  175. package/dist/internal/production-runtime.d.ts +21 -16
  176. package/dist/internal/production-runtime.mjs +13 -9
  177. package/dist/internal/server-tree.cjs +2 -2
  178. package/dist/internal/server-tree.d.mts +0 -5
  179. package/dist/internal/server-tree.d.ts +0 -5
  180. package/dist/internal/server-tree.mjs +1 -1
  181. package/dist/internal/vercel-edge-middleware.cjs +87 -0
  182. package/dist/internal/vercel-edge-middleware.d.mts +39 -0
  183. package/dist/internal/vercel-edge-middleware.d.ts +39 -0
  184. package/dist/internal/vercel-edge-middleware.mjs +87 -0
  185. package/dist/layers-7P4RLKVX.cjs +20 -0
  186. package/dist/{layers-T55SA47E.mjs → layers-XQ7VFMWO.mjs} +4 -2
  187. package/dist/{layers.d-CcS42OGR.d.mts → layers.d-CH0bC4QL.d.mts} +2 -1
  188. package/dist/{layers.d-CcS42OGR.d.ts → layers.d-CH0bC4QL.d.ts} +2 -1
  189. package/dist/markdown.d.mts +5 -3
  190. package/dist/markdown.d.ts +5 -3
  191. package/dist/middleware.cjs +4 -4
  192. package/dist/middleware.d.mts +8 -5
  193. package/dist/middleware.d.ts +8 -5
  194. package/dist/middleware.mjs +6 -6
  195. package/dist/mobile.d.mts +4 -4
  196. package/dist/mobile.d.ts +4 -4
  197. package/dist/{mount.d-BP0nLYQO.d.mts → mount.d-Bki4pOaJ.d.mts} +1 -1
  198. package/dist/{mount.d-CkiPky_F.d.ts → mount.d-DjR5aerM.d.ts} +1 -1
  199. package/dist/{navigation-delegate.d-DchcGzAQ.d.ts → navigation-delegate.d-CtghaSP3.d.ts} +1 -1
  200. package/dist/{navigation-delegate.d-CdBP-hkZ.d.mts → navigation-delegate.d-VDkziXTK.d.mts} +1 -1
  201. package/dist/navigation.cjs +5 -5
  202. package/dist/navigation.d.mts +8 -6
  203. package/dist/navigation.d.ts +8 -6
  204. package/dist/navigation.mjs +4 -4
  205. package/dist/{nitro-55YOZWRA.mjs → nitro-NSTXT7LB.mjs} +2 -2
  206. package/dist/{nitro-EEX2J3KB.cjs → nitro-Y3LGITW3.cjs} +4 -4
  207. package/dist/node-module-bundle-LIZ2KMVW.cjs +13 -0
  208. package/dist/node-module-bundle-VR6NV6AI.mjs +13 -0
  209. package/dist/plugin.cjs +20 -20
  210. package/dist/plugin.d.mts +7 -5
  211. package/dist/plugin.d.ts +7 -5
  212. package/dist/plugin.mjs +19 -19
  213. package/dist/{production-runtime.d-Dou_Htas.d.ts → production-runtime.d-BMyyLGBB.d.ts} +3 -57
  214. package/dist/{production-runtime.d-VwsBzIee.d.mts → production-runtime.d-DMZY3OgV.d.mts} +3 -57
  215. package/dist/query/client.cjs +6 -6
  216. package/dist/query/client.mjs +2 -2
  217. package/dist/{render-plan.d-LKymStDJ.d.mts → render-plan.d-BSwV8PE4.d.mts} +1 -1
  218. package/dist/{render-plan.d-D8UakAIk.d.ts → render-plan.d-i9sI4tc9.d.ts} +1 -1
  219. package/dist/renderer/react/server.cjs +2 -2
  220. package/dist/renderer/react/server.mjs +1 -1
  221. package/dist/renderer-client.cjs +5 -5
  222. package/dist/renderer-client.d.mts +8 -6
  223. package/dist/renderer-client.d.ts +8 -6
  224. package/dist/renderer-client.mjs +2 -2
  225. package/dist/renderer.d.mts +5 -0
  226. package/dist/renderer.d.ts +5 -0
  227. package/dist/{request.d-KG-4d2eG.d.mts → request.d-C24FNQ_7.d.mts} +1 -1
  228. package/dist/{request.d-B928QjWy.d.ts → request.d-Dgln8tuI.d.ts} +1 -1
  229. package/dist/request.d.mts +6 -4
  230. package/dist/request.d.ts +6 -4
  231. package/dist/{route-rendering.d-DoEe_w9t.d.ts → route-rendering.d-CUylZKJA.d.ts} +1 -1
  232. package/dist/{route-rendering.d-NIHQeb4m.d.mts → route-rendering.d-Ds0BfwQi.d.mts} +1 -1
  233. package/dist/{router.d-DYnRHQwz.d.ts → router.d-B56rMOFm.d.ts} +1 -1
  234. package/dist/{router.d-B8PkJSGp.d.mts → router.d-CFPcbqzc.d.mts} +1 -1
  235. package/dist/{routes.d-uUBZyWoK.d.ts → routes.d-9GFFNioh.d.ts} +1 -1
  236. package/dist/{routes.d-DgZ_jgGG.d.mts → routes.d-CrEy0lJS.d.mts} +1 -1
  237. package/dist/routes.d.mts +5 -3
  238. package/dist/routes.d.ts +5 -3
  239. package/dist/{rsc-pipeline-7K5H2RPH.cjs → rsc-pipeline-3T7V6OUT.cjs} +10 -9
  240. package/dist/{rsc-pipeline-4OJ5ZQNZ.mjs → rsc-pipeline-GA4AQWZI.mjs} +9 -8
  241. package/dist/{runtime-X52Q7JFR.cjs → runtime-REUTNTI5.cjs} +20 -20
  242. package/dist/{runtime-U7O3HZOZ.mjs → runtime-ZYCKKY7L.mjs} +12 -12
  243. package/dist/{runtime.d-BxQIzwfy.d.mts → runtime.d-DLRO-ExG.d.mts} +1 -1
  244. package/dist/{runtime.d-DP7mEkEF.d.ts → runtime.d-H7k9hOQE.d.ts} +1 -1
  245. package/dist/server-http.d-rAe7lAQc.d.mts +70 -0
  246. package/dist/server-http.d-rAe7lAQc.d.ts +70 -0
  247. package/dist/server-plugins.d.mts +6 -4
  248. package/dist/server-plugins.d.ts +6 -4
  249. package/dist/server.cjs +46 -44
  250. package/dist/server.d-C5FFrZAo.d.ts +57 -0
  251. package/dist/server.d-DgC8xew5.d.mts +57 -0
  252. package/dist/server.d.mts +13 -11
  253. package/dist/server.d.ts +13 -11
  254. package/dist/server.mjs +28 -26
  255. package/dist/{spa-router.d-DsFDHTsv.d.ts → spa-router.d-Dr7oanhl.d.ts} +2 -2
  256. package/dist/{spa-router.d-BgHPVMhz.d.mts → spa-router.d-g4CzhEH1.d.mts} +2 -2
  257. package/dist/testing.d.mts +5 -3
  258. package/dist/testing.d.ts +5 -3
  259. package/dist/types.d-xCIhyjOq.d.mts +233 -0
  260. package/dist/types.d-xCIhyjOq.d.ts +233 -0
  261. package/dist/{utils.d-zxAVcf_V.d.ts → utils.d-BxxyDEb8.d.ts} +1 -1
  262. package/dist/{utils.d-BKyKDBR1.d.mts → utils.d-HIla3pD_.d.mts} +1 -1
  263. package/dist/version.cjs +2 -2
  264. package/dist/version.mjs +1 -1
  265. package/dist/vite.cjs +20 -20
  266. package/dist/vite.d.mts +10 -8
  267. package/dist/vite.d.ts +10 -8
  268. package/dist/vite.mjs +19 -19
  269. package/dist/workflows.cjs +2 -2
  270. package/dist/workflows.d.mts +121 -1
  271. package/dist/workflows.d.ts +121 -1
  272. package/dist/workflows.mjs +1 -1
  273. package/package.json +7 -2
  274. package/dist/analyzer-KVZGVY5Q.cjs +0 -16
  275. package/dist/chunk-CLFEQGET.cjs +0 -60
  276. package/dist/chunk-MK5E44WP.mjs +0 -60
  277. package/dist/layers-DMRXRL7F.cjs +0 -18
  278. package/dist/node-module-bundle-7JHPPF6B.mjs +0 -11
  279. package/dist/node-module-bundle-YJGYBOGK.cjs +0 -11
  280. package/dist/workflows.d-CRMzQZ3k.d.mts +0 -188
  281. package/dist/workflows.d-CRMzQZ3k.d.ts +0 -188
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-4QENVMG7.mjs";
8
8
  import {
9
9
  getFarmSourceRoots
10
- } from "./chunk-52Y3C3HG.mjs";
10
+ } from "./chunk-E7VF3LQ5.mjs";
11
11
  import {
12
12
  isReactRenderer
13
13
  } from "./chunk-GCRT6GJG.mjs";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-JSDV2NUN.mjs";
22
22
  import {
23
23
  FARM_VERSION
24
- } from "./chunk-H37MDCPR.mjs";
24
+ } from "./chunk-F6CMGWAL.mjs";
25
25
 
26
26
  // src/environment-vite.ts
27
27
  import { existsSync, readFileSync, realpathSync } from "fs";
@@ -1217,6 +1217,10 @@ import fs2 from "fs";
1217
1217
  import path2 from "path";
1218
1218
  import { parseAst as parseAst2 } from "rolldown/parseAst";
1219
1219
  var IDENTIFIER = /^[A-Za-z_$][\w$]*$/;
1220
+ var moduleName = (node) => {
1221
+ const name = node?.type === "Identifier" ? node.name : node?.value;
1222
+ return typeof name === "string" ? name : null;
1223
+ };
1220
1224
  function parse(code, file) {
1221
1225
  const extension = path2.extname(file).slice(1);
1222
1226
  const lang = extension === "ts" || extension === "mts" || extension === "cts" ? "ts" : "tsx";
@@ -1256,17 +1260,19 @@ function namespaceMembers2(program, local, declaration) {
1256
1260
  return opaque ? null : [...members];
1257
1261
  }
1258
1262
  function findFarmPackageClientImports(code, file, isClientPackage) {
1259
- if (!code.includes("import")) return [];
1263
+ if (!code.includes("import") && !code.includes("export")) return [];
1260
1264
  const program = parse(code, file);
1261
1265
  if (!program) return [];
1262
1266
  const found = [];
1263
1267
  for (const node of program.body ?? []) {
1264
- if (node.type !== "ImportDeclaration" || node.importKind === "type") continue;
1268
+ const reexport = node.type === "ExportNamedDeclaration" && node.source != null;
1269
+ if (node.type !== "ImportDeclaration" && !reexport) continue;
1270
+ if (node.importKind === "type" || node.exportKind === "type") continue;
1265
1271
  const specifier = node.source?.value;
1266
1272
  if (typeof specifier !== "string" || specifier.startsWith(".") || specifier.startsWith("/"))
1267
1273
  continue;
1268
1274
  const specifiers = (node.specifiers ?? []).filter(
1269
- (entry2) => entry2.importKind !== "type"
1275
+ (entry2) => entry2.importKind !== "type" && entry2.exportKind !== "type"
1270
1276
  );
1271
1277
  if (specifiers.length === 0 || !isClientPackage(specifier)) continue;
1272
1278
  const entry = {
@@ -1274,12 +1280,20 @@ function findFarmPackageClientImports(code, file, isClientPackage) {
1274
1280
  end: node.end,
1275
1281
  specifier,
1276
1282
  named: [],
1277
- kept: []
1283
+ kept: [],
1284
+ ...reexport ? { reexport: true } : {}
1278
1285
  };
1279
1286
  const client = (name) => isFarmPackageClientExport(file, specifier, name);
1280
1287
  let supported = true;
1281
1288
  for (const binding of specifiers) {
1282
- if (binding.type === "ImportDefaultSpecifier") {
1289
+ if (binding.type === "ExportSpecifier") {
1290
+ const imported = moduleName(binding.local);
1291
+ const exported = moduleName(binding.exported);
1292
+ if (!imported || !exported || !IDENTIFIER.test(imported) || !IDENTIFIER.test(exported))
1293
+ supported = false;
1294
+ else if (client(imported)) entry.named.push({ imported, local: exported });
1295
+ else entry.kept.push({ imported, local: exported });
1296
+ } else if (binding.type === "ImportDefaultSpecifier") {
1283
1297
  if (client("default")) entry.defaultLocal = binding.local.name;
1284
1298
  else entry.kept.push({ imported: "default", local: binding.local.name });
1285
1299
  } else if (binding.type === "ImportNamespaceSpecifier") {
@@ -1297,8 +1311,8 @@ function findFarmPackageClientImports(code, file, isClientPackage) {
1297
1311
  ...values.length > 0 ? { values } : {}
1298
1312
  };
1299
1313
  } else {
1300
- const imported = binding.imported?.type === "Identifier" ? binding.imported.name : binding.imported?.value;
1301
- if (typeof imported !== "string" || !IDENTIFIER.test(imported)) supported = false;
1314
+ const imported = moduleName(binding.imported);
1315
+ if (!imported || !IDENTIFIER.test(imported)) supported = false;
1302
1316
  else if (client(imported)) entry.named.push({ imported, local: binding.local.name });
1303
1317
  else entry.kept.push({ imported, local: binding.local.name });
1304
1318
  }
@@ -1316,19 +1330,76 @@ function farmPackageClientImportExports(entry) {
1316
1330
  }
1317
1331
  var FARM_CLIENT_REFERENCE_PRAGMA = "// @farm-client-reference";
1318
1332
  var FARM_CLIENT_REFERENCE_DIRECTORY = "/.farm/client-references/";
1319
- function farmPackageClientReferencePath(root, specifier, exportName) {
1333
+ var FARM_RESOLVE_FROM_PREFIX = "farm:resolve-from:";
1334
+ function parseFarmResolveFrom(id, importer) {
1335
+ if (!id.startsWith(FARM_RESOLVE_FROM_PREFIX)) return null;
1336
+ const rest = id.slice(FARM_RESOLVE_FROM_PREFIX.length);
1337
+ const separator = rest.indexOf(":");
1338
+ if (separator <= 0) return null;
1339
+ const directory = path2.resolve(
1340
+ path2.dirname(importer),
1341
+ decodeURIComponent(rest.slice(0, separator))
1342
+ );
1343
+ return {
1344
+ specifier: rest.slice(separator + 1),
1345
+ importer: path2.join(directory, "__farm_client_reference__.js")
1346
+ };
1347
+ }
1348
+ function farmPackageClientReferencePath(root, specifier, exportName, scope) {
1320
1349
  const directory = specifier.replace(/^@/, "").replace(/[^A-Za-z0-9._-]/g, "+");
1321
- return path2.join(root, ".farm", "client-references", directory, `${exportName}.tsx`);
1350
+ return path2.join(
1351
+ root,
1352
+ ".farm",
1353
+ "client-references",
1354
+ directory,
1355
+ ...scope ? [scope] : [],
1356
+ `${exportName}.tsx`
1357
+ );
1358
+ }
1359
+ function specifierPackage(specifier) {
1360
+ const parts = specifier.split("/");
1361
+ return specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0];
1362
+ }
1363
+ function packageLookup(directory, packageName) {
1364
+ for (let current = directory; ; current = path2.dirname(current)) {
1365
+ if (path2.basename(current) !== "node_modules") {
1366
+ const candidate = path2.join(current, "node_modules", packageName);
1367
+ try {
1368
+ return { from: current, real: fs2.realpathSync(candidate) };
1369
+ } catch {
1370
+ }
1371
+ }
1372
+ if (path2.dirname(current) === current) return null;
1373
+ }
1322
1374
  }
1323
- function ensureFarmPackageClientReference(root, specifier, exportName) {
1324
- const file = farmPackageClientReferencePath(root, specifier, exportName);
1375
+ function referenceResolveFrom(root, specifier, importer) {
1376
+ const packageName = specifierPackage(specifier);
1377
+ const own = packageLookup(path2.dirname(importer), packageName);
1378
+ if (!own) return null;
1379
+ const app = packageLookup(path2.join(root, ".farm", "client-references"), packageName);
1380
+ if (app?.real === own.real) return null;
1381
+ try {
1382
+ return fs2.realpathSync(own.from);
1383
+ } catch {
1384
+ return own.from;
1385
+ }
1386
+ }
1387
+ function ensureFarmPackageClientReference(root, specifier, exportName, importer) {
1388
+ const resolveFrom = importer ? referenceResolveFrom(root, specifier, importer) : null;
1389
+ const scope = resolveFrom ? `__from__${createHash("sha256").update(path2.relative(root, resolveFrom).split(path2.sep).join("/")).digest("hex").slice(0, 8)}` : void 0;
1390
+ const file = farmPackageClientReferencePath(root, specifier, exportName, scope);
1391
+ const target = JSON.stringify(
1392
+ resolveFrom ? `${FARM_RESOLVE_FROM_PREFIX}${encodeURIComponent(
1393
+ path2.relative(path2.dirname(file), resolveFrom).split(path2.sep).join("/")
1394
+ )}:${specifier}` : specifier
1395
+ );
1325
1396
  const source = [
1326
1397
  `// Generated by Farm: ${specifier}'s ${exportName} export, as a client reference for server components.`,
1327
1398
  FARM_CLIENT_REFERENCE_PRAGMA,
1328
1399
  '"use client";',
1329
1400
  // An import, not `export { name } from`: a server graph applies CommonJS interop to imports
1330
1401
  // (react-wrap-balancer's `main` is CommonJS), not to re-exports.
1331
- exportName === "default" ? `import __farm_reference__ from ${JSON.stringify(specifier)};` : `import { ${exportName} as __farm_reference__ } from ${JSON.stringify(specifier)};`,
1402
+ exportName === "default" ? `import __farm_reference__ from ${target};` : `import { ${exportName} as __farm_reference__ } from ${target};`,
1332
1403
  `export { __farm_reference__ as ${exportName} };`,
1333
1404
  ""
1334
1405
  ].join("\n");
@@ -1400,24 +1471,27 @@ function ensureFarmInternalClientReference(root, clientFile) {
1400
1471
  function rewriteFarmPackageClientImports(options) {
1401
1472
  const imports = findFarmPackageClientImports(options.code, options.file, options.isClientPackage);
1402
1473
  if (imports.length === 0) return null;
1403
- const reference = (specifier, exportName) => JSON.stringify(ensureFarmPackageClientReference(options.root, specifier, exportName));
1474
+ const reference = (specifier, exportName) => JSON.stringify(
1475
+ ensureFarmPackageClientReference(options.root, specifier, exportName, options.file)
1476
+ );
1404
1477
  let output = options.code;
1405
1478
  let next = 0;
1406
1479
  let changed = false;
1407
1480
  for (const entry of [...imports].sort((left, right) => right.start - left.start)) {
1408
1481
  if (farmPackageClientImportExports(entry).length === 0) continue;
1409
1482
  changed = true;
1483
+ const keyword = entry.reexport ? "export" : "import";
1410
1484
  const lines = [];
1411
1485
  if (entry.kept.length > 0) {
1412
1486
  const bindings = entry.kept.map((binding) => `${binding.imported} as ${binding.local}`);
1413
- lines.push(`import { ${bindings.join(", ")} } from ${JSON.stringify(entry.specifier)};`);
1487
+ lines.push(`${keyword} { ${bindings.join(", ")} } from ${JSON.stringify(entry.specifier)};`);
1414
1488
  }
1415
1489
  if (entry.defaultLocal) {
1416
1490
  lines.push(`import ${entry.defaultLocal} from ${reference(entry.specifier, "default")};`);
1417
1491
  }
1418
1492
  for (const binding of entry.named) {
1419
1493
  lines.push(
1420
- `import { ${binding.imported} as ${binding.local} } from ${reference(entry.specifier, binding.imported)};`
1494
+ `${keyword} { ${binding.imported} as ${binding.local} } from ${reference(entry.specifier, binding.imported)};`
1421
1495
  );
1422
1496
  }
1423
1497
  if (entry.namespace) {
@@ -1886,13 +1960,35 @@ function skipRegularExpression(content, startIndex) {
1886
1960
  }
1887
1961
  return null;
1888
1962
  }
1963
+ var tokenizedModules = /* @__PURE__ */ new Map();
1964
+ var TOKENIZED_MODULE_CACHE_SIZE = 32;
1889
1965
  function tokenizeModuleSource(content) {
1966
+ const cached = tokenizedModules.get(content);
1967
+ if (cached) return cached;
1968
+ const tokens = scanModuleSourceTokens(content);
1969
+ if (tokenizedModules.size >= TOKENIZED_MODULE_CACHE_SIZE) {
1970
+ tokenizedModules.delete(tokenizedModules.keys().next().value);
1971
+ }
1972
+ tokenizedModules.set(content, tokens);
1973
+ return tokens;
1974
+ }
1975
+ function isWhitespaceCode(code) {
1976
+ if (code < 128) return code === 32 || code >= 9 && code <= 13;
1977
+ return /\s/.test(String.fromCharCode(code));
1978
+ }
1979
+ function isIdentifierStartCode(code) {
1980
+ return code >= 97 && code <= 122 || code >= 65 && code <= 90 || code === 95 || code === 36;
1981
+ }
1982
+ function isIdentifierPartCode(code) {
1983
+ return isIdentifierStartCode(code) || code >= 48 && code <= 57;
1984
+ }
1985
+ function scanModuleSourceTokens(content) {
1890
1986
  const tokens = [];
1891
1987
  let index = 0;
1892
1988
  let line = 1;
1893
1989
  while (index < content.length) {
1894
1990
  const character = content[index];
1895
- if (/\s/.test(character)) {
1991
+ if (isWhitespaceCode(content.charCodeAt(index))) {
1896
1992
  if (character === "\n") line++;
1897
1993
  index++;
1898
1994
  continue;
@@ -1962,9 +2058,9 @@ function tokenizeModuleSource(content) {
1962
2058
  }
1963
2059
  continue;
1964
2060
  }
1965
- if (/[A-Za-z_$]/.test(character)) {
2061
+ if (isIdentifierStartCode(content.charCodeAt(index))) {
1966
2062
  const start = index++;
1967
- while (index < content.length && /[\w$]/.test(content[index])) index++;
2063
+ while (index < content.length && isIdentifierPartCode(content.charCodeAt(index))) index++;
1968
2064
  tokens.push({ kind: "identifier", value: content.slice(start, index), line });
1969
2065
  continue;
1970
2066
  }
@@ -2673,11 +2769,6 @@ function collectIsolatedClientBoundaries(ownerPath, root, options = {}) {
2673
2769
  const content = readIfExists(moduleSourcePath);
2674
2770
  const parsed = parseClientModuleMetadata(content, false);
2675
2771
  if (parsed.isClientComponent) {
2676
- if (projectRoot && !path4.resolve(moduleSourcePath).startsWith(`${projectRoot}${path4.sep}`)) {
2677
- fallbackReason = `client boundary ${moduleSourcePath} is outside the application root`;
2678
- fallbackHint = "Move the component into the application, or publish it as a package (package client components render as static HTML)";
2679
- return 0;
2680
- }
2681
2772
  if (!isIsolatableClientBoundarySource(content)) {
2682
2773
  fallbackReason = `client boundary ${moduleSourcePath} uses an unsupported export shape`;
2683
2774
  fallbackHint = "Export each component by name (`export function Name`, `export { Name }`, or `export default`) instead of `export *`";
@@ -2703,15 +2794,23 @@ function collectIsolatedClientBoundaries(ownerPath, root, options = {}) {
2703
2794
  const importedPath = imported.path;
2704
2795
  if (!importedPath) continue;
2705
2796
  let importedBoundaryCount;
2797
+ const workspaceEntry = !imported.local && options.packageReferences ? farmWorkspaceServerEntry(importedPath) : null;
2706
2798
  if (imported.local) {
2707
2799
  importedBoundaryCount = visit(importedPath);
2800
+ } else if (workspaceEntry) {
2801
+ importedBoundaryCount = visit(workspaceEntry);
2708
2802
  } else {
2709
2803
  const reactServerClientNames = options.packageReferences && projectRoot ? findFarmReactServerClientNames(content ?? "", moduleSourcePath, specifier) : null;
2710
2804
  if (reactServerClientNames) {
2711
2805
  importedBoundaryCount = 0;
2712
2806
  for (const exportName of reactServerClientNames) {
2713
2807
  importedBoundaryCount += visit(
2714
- ensureFarmPackageClientReference(projectRoot, specifier, exportName)
2808
+ ensureFarmPackageClientReference(
2809
+ projectRoot,
2810
+ specifier,
2811
+ exportName,
2812
+ moduleSourcePath
2813
+ )
2715
2814
  );
2716
2815
  }
2717
2816
  for (const clientFile of findFarmReactServerClientModules(
@@ -2735,7 +2834,12 @@ function collectIsolatedClientBoundaries(ownerPath, root, options = {}) {
2735
2834
  for (const reference of references) {
2736
2835
  for (const exportName of farmPackageClientImportExports(reference)) {
2737
2836
  importedBoundaryCount += visit(
2738
- ensureFarmPackageClientReference(projectRoot, specifier, exportName)
2837
+ ensureFarmPackageClientReference(
2838
+ projectRoot,
2839
+ specifier,
2840
+ exportName,
2841
+ moduleSourcePath
2842
+ )
2739
2843
  );
2740
2844
  }
2741
2845
  }
@@ -2838,6 +2942,12 @@ function inspectClientModuleMetadata(resolvedPath, root, visited, inspectIslandE
2838
2942
  islandStrategy: shouldHydrate ? parsed.islandStrategy ?? importedIslandStrategy ?? "load" : null
2839
2943
  };
2840
2944
  }
2945
+ function farmWorkspaceServerEntry(entry) {
2946
+ const real = realpathOrSelf(entry);
2947
+ if (real.split(path4.sep).includes("node_modules")) return null;
2948
+ if (parseClientModuleMetadata(readIfExists(real), false).isClientComponent) return null;
2949
+ return real;
2950
+ }
2841
2951
  function realpathOrSelf(file) {
2842
2952
  try {
2843
2953
  return fs4.realpathSync(file);
@@ -2988,6 +3098,13 @@ function resolveImportedModule(importerPath, specifier, root) {
2988
3098
  if (specifier.startsWith(".") || specifier.startsWith("/")) {
2989
3099
  return { path: resolveImportedModuleSourcePath(importerPath, specifier, root), local: true };
2990
3100
  }
3101
+ const resolveFrom = parseFarmResolveFrom(specifier, importerPath);
3102
+ if (resolveFrom) {
3103
+ return {
3104
+ path: resolvePackageModuleSourcePath(resolveFrom.importer, resolveFrom.specifier),
3105
+ local: false
3106
+ };
3107
+ }
2991
3108
  const aliased = resolveProjectAliasSourcePath(specifier, root);
2992
3109
  if (aliased) return { path: aliased, local: true };
2993
3110
  const packagePath = resolvePackageModuleSourcePath(importerPath, specifier, root);
@@ -3292,7 +3409,18 @@ function isFarmPackageClientBoundary(importerPath, specifier, root) {
3292
3409
  return inspectPackageClientBoundary(imported.path, root, /* @__PURE__ */ new Set()).shouldHydrate;
3293
3410
  }
3294
3411
  var CLIENT_PACKAGE_SCAN_EXTENSIONS = /\.(?:[cm]?[jt]sx?)$/;
3295
- var CLIENT_PACKAGE_SCAN_SKIP = /* @__PURE__ */ new Set(["node_modules", ".farm", ".git", "dist", ".output"]);
3412
+ var CLIENT_PACKAGE_SCAN_SKIP = /* @__PURE__ */ new Set([
3413
+ "node_modules",
3414
+ ".farm",
3415
+ ".git",
3416
+ "dist",
3417
+ ".output",
3418
+ "__tests__"
3419
+ ]);
3420
+ var TEST_FILE = /\.(?:test|spec)\.[cm]?[jt]sx?$/;
3421
+ function isScannedSourceFile(name) {
3422
+ return CLIENT_PACKAGE_SCAN_EXTENSIONS.test(name) && !name.endsWith(".d.ts") && !TEST_FILE.test(name);
3423
+ }
3296
3424
  function bareSpecifierPackage(specifier) {
3297
3425
  if (specifier.startsWith(".") || specifier.startsWith("/") || specifier.startsWith("#") || specifier.startsWith("node:") || specifier.startsWith("virtual:") || specifier.includes("\0") || // A package's stylesheet or asset is not a module for the optimizer.
3298
3426
  /\.(?:css|scss|sass|less|styl|svg|png|jpe?g|gif|webp|avif|ico|woff2?|ttf|json|wasm)$/.test(
@@ -3322,8 +3450,7 @@ function scanFarmPackageImports(directory, root) {
3322
3450
  if (!CLIENT_PACKAGE_SCAN_SKIP.has(entry.name)) walk2(file);
3323
3451
  continue;
3324
3452
  }
3325
- if (!CLIENT_PACKAGE_SCAN_EXTENSIONS.test(entry.name) || entry.name.endsWith(".d.ts"))
3326
- continue;
3453
+ if (!isScannedSourceFile(entry.name)) continue;
3327
3454
  const content = readIfExists(file);
3328
3455
  if (!content) continue;
3329
3456
  const client = hasUseClientDirective(content);
@@ -3356,8 +3483,7 @@ function collectFarmServerBundledPackageInfo(directory) {
3356
3483
  if (!CLIENT_PACKAGE_SCAN_SKIP.has(entry.name)) walk2(file);
3357
3484
  continue;
3358
3485
  }
3359
- if (!CLIENT_PACKAGE_SCAN_EXTENSIONS.test(entry.name) || entry.name.endsWith(".d.ts"))
3360
- continue;
3486
+ if (!isScannedSourceFile(entry.name)) continue;
3361
3487
  const content = readIfExists(file);
3362
3488
  if (!content) continue;
3363
3489
  for (const specifier of new Set(getImportSpecifiers(content))) {
@@ -3393,7 +3519,7 @@ function getFarmClientReachableModules(directory, root) {
3393
3519
  const file = path4.join(current, entry.name);
3394
3520
  if (entry.isDirectory()) {
3395
3521
  if (!entry.name.startsWith(".") && !CLIENT_PACKAGE_SCAN_SKIP.has(entry.name)) walk2(file);
3396
- } else if (CLIENT_PACKAGE_SCAN_EXTENSIONS.test(entry.name) && !entry.name.endsWith(".d.ts")) {
3522
+ } else if (isScannedSourceFile(entry.name)) {
3397
3523
  const content = readIfExists(file);
3398
3524
  if (hasUseClientDirective(content) || hasHydrateExport(content)) queue.push(file);
3399
3525
  }
@@ -3837,6 +3963,7 @@ function transformError(id, message) {
3837
3963
  }
3838
3964
 
3839
3965
  export {
3966
+ FARM_BROWSER_BUILTIN_PREFIX,
3840
3967
  resolveFarmBrowserBuiltin,
3841
3968
  loadFarmBrowserBuiltin,
3842
3969
  farmBrowserBuiltinsOptimizerPlugin,
@@ -3851,6 +3978,8 @@ export {
3851
3978
  farmRelativeImportFiles,
3852
3979
  FARM_CLIENT_REFERENCE_PRAGMA,
3853
3980
  FARM_CLIENT_REFERENCE_DIRECTORY,
3981
+ FARM_RESOLVE_FROM_PREFIX,
3982
+ parseFarmResolveFrom,
3854
3983
  ensureFarmPackageClientReference,
3855
3984
  ensureFarmInternalClientReference,
3856
3985
  rewriteFarmPackageClientImports,
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-C64XOPBZ.mjs";
29
29
  import {
30
30
  getFarmTrailingSlashPreference
31
- } from "./chunk-KWFNUODD.mjs";
31
+ } from "./chunk-YVPX5PI5.mjs";
32
32
  import {
33
33
  applyFarmCacheInvalidations,
34
34
  decodeFarmCacheInvalidations,
@@ -28,7 +28,7 @@ var _chunkQQ44FYROcjs = require('./chunk-QQ44FYRO.cjs');
28
28
  var _chunkI2BYNELAcjs = require('./chunk-I2BYNELA.cjs');
29
29
 
30
30
 
31
- var _chunk4JX3M4C6cjs = require('./chunk-4JX3M4C6.cjs');
31
+ var _chunk23VJEGKCcjs = require('./chunk-23VJEGKC.cjs');
32
32
 
33
33
 
34
34
 
@@ -1166,7 +1166,7 @@ function LinkInner({
1166
1166
  const baseHref = resolveLinkHref(href, params, {
1167
1167
  query,
1168
1168
  hash,
1169
- trailingSlash: _nullishCoalesce(trailingSlash, () => ( _chunk4JX3M4C6cjs.getFarmTrailingSlashPreference.call(void 0, )))
1169
+ trailingSlash: _nullishCoalesce(trailingSlash, () => ( _chunk23VJEGKCcjs.getFarmTrailingSlashPreference.call(void 0, )))
1170
1170
  });
1171
1171
  const localizedHref = _chunkRI3EVPKDcjs.localizeActiveFarmHref.call(void 0, baseHref, locale);
1172
1172
  const resolvedHref = isExternalUrl(localizedHref) ? localizedHref : _chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, localizedHref, _nullishCoalesce(_optionalChain([farm, 'optionalAccess', _34 => _34.basePath]), () => ( _chunkD22BUQKWcjs.getFarmBasePath.call(void 0, ))));
@@ -4,7 +4,7 @@
4
4
  var _chunkX3MHKLCOcjs = require('./chunk-X3MHKLCO.cjs');
5
5
 
6
6
 
7
- var _chunk6V5YWI4Wcjs = require('./chunk-6V5YWI4W.cjs');
7
+ var _chunkIGDYL2IAcjs = require('./chunk-IGDYL2IA.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 _chunkCFG4QERRcjs = require('./chunk-CFG4QERR.cjs');
30
30
 
31
31
 
32
- var _chunkHM7AGSKUcjs = require('./chunk-HM7AGSKU.cjs');
32
+ var _chunkSQ6IWJ3Hcjs = require('./chunk-SQ6IWJ3H.cjs');
33
33
 
34
34
 
35
35
  var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
@@ -288,7 +288,7 @@ function createFarmAppManifest(input) {
288
288
  return {
289
289
  schemaVersion: 1,
290
290
  app: app ? {
291
- ...app.version ? { farm: _chunkHM7AGSKUcjs.FARM_VERSION } : {},
291
+ ...app.version ? { farm: _chunkSQ6IWJ3Hcjs.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 ? _chunk6V5YWI4Wcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
322
+ const origin = candidate ? _chunkIGDYL2IAcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
323
323
  if (origin) return origin;
324
324
  }
325
325
  return null;
@@ -23,5 +23,6 @@ function resolveFarmTrailingSlashRedirect(url, enabled) {
23
23
  export {
24
24
  setFarmTrailingSlashPreference,
25
25
  getFarmTrailingSlashPreference,
26
+ normalizeFarmTrailingSlashPathname,
26
27
  resolveFarmTrailingSlashRedirect
27
28
  };
@@ -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 _chunkLPIZMU7Dcjs = require('./chunk-LPIZMU7D.cjs');
3
+ var _chunkYTNBCXCWcjs = require('./chunk-YTNBCXCW.cjs');
4
4
 
5
5
 
6
6
  var _chunkFT6KJHS3cjs = require('./chunk-FT6KJHS3.cjs');
@@ -273,7 +273,7 @@ function requestEvent(metadata, method, status, durationMs) {
273
273
  id: uuid(),
274
274
  requestId: metadata.id,
275
275
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
276
- route: routeTemplate(_chunkLPIZMU7Dcjs.getFarmRouteLabel.call(void 0, metadata.route)),
276
+ route: routeTemplate(_chunkYTNBCXCWcjs.getFarmRouteLabel.call(void 0, metadata.route)),
277
277
  agent: metadata.agent,
278
278
  kind: "request",
279
279
  method,
@@ -286,7 +286,7 @@ function toolEvent(metadata, event) {
286
286
  id: uuid(),
287
287
  requestId: metadata.id,
288
288
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
289
- route: routeTemplate(_chunkLPIZMU7Dcjs.getFarmRouteLabel.call(void 0, metadata.route)),
289
+ route: routeTemplate(_chunkYTNBCXCWcjs.getFarmRouteLabel.call(void 0, metadata.route)),
290
290
  agent: metadata.agent,
291
291
  kind: "mcp.tool",
292
292
  tool: event.tool,