@farm.js/core 0.1.34 → 0.1.36

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 (282) hide show
  1. package/dist/agent-mcp-BVExL8rZ.d.mts +109 -0
  2. package/dist/agent-mcp-handler-LPJ2CADR.mjs +19 -0
  3. package/dist/agent-mcp-handler-SJAHFSPI.cjs +19 -0
  4. package/dist/agent-mcp-luzfXK-P.d.ts +109 -0
  5. package/dist/agent-runtime.cjs +5 -3
  6. package/dist/agent-runtime.d.mts +4 -5
  7. package/dist/agent-runtime.d.ts +4 -5
  8. package/dist/agent-runtime.mjs +4 -2
  9. package/dist/api/route-manager.cjs +7 -7
  10. package/dist/api/route-manager.d.mts +15 -10
  11. package/dist/api/route-manager.d.ts +15 -10
  12. package/dist/api/route-manager.mjs +6 -6
  13. package/dist/api/runtime.cjs +7 -5
  14. package/dist/api/runtime.d.mts +7 -66
  15. package/dist/api/runtime.d.ts +7 -66
  16. package/dist/api/runtime.mjs +7 -5
  17. package/dist/api.cjs +9 -9
  18. package/dist/api.d.mts +8 -9
  19. package/dist/api.d.ts +8 -9
  20. package/dist/api.mjs +8 -8
  21. package/dist/{app-q4rmZlXK.d.mts → app-BukwkFIu.d.mts} +52 -12
  22. package/dist/{app-DgotYGbq.d.ts → app-Yfa2dsFy.d.ts} +52 -12
  23. package/dist/app-markdown.cjs +6 -6
  24. package/dist/app-markdown.d.mts +5 -6
  25. package/dist/app-markdown.d.ts +5 -6
  26. package/dist/app-markdown.mjs +5 -5
  27. package/dist/{chunk-XV5DJTBX.mjs → chunk-276VJSM6.mjs} +627 -260
  28. package/dist/{chunk-36MK5YCW.cjs → chunk-2YTDKNH3.cjs} +547 -240
  29. package/dist/{chunk-VHANUNEG.mjs → chunk-35GKZR22.mjs} +2 -2
  30. package/dist/{chunk-LR5QSC2P.mjs → chunk-35WV46VL.mjs} +399 -92
  31. package/dist/{chunk-UX5S4JEO.cjs → chunk-42NHY7HW.cjs} +57 -7
  32. package/dist/{chunk-U4PTAHW3.mjs → chunk-4E5AEDKY.mjs} +7 -11
  33. package/dist/{chunk-NGVORZVZ.mjs → chunk-4E5WBPEG.mjs} +73 -351
  34. package/dist/{chunk-AQZFOP7S.mjs → chunk-4GLOOWKE.mjs} +5 -5
  35. package/dist/{chunk-7BT4H4P7.cjs → chunk-4NU4GGTC.cjs} +2 -2
  36. package/dist/{chunk-AGC75XAE.mjs → chunk-4WCZJQUO.mjs} +55 -5
  37. package/dist/chunk-4WQ6PGSJ.cjs +367 -0
  38. package/dist/{chunk-QCFFHV5H.mjs → chunk-4WVJLURN.mjs} +1 -1
  39. package/dist/chunk-6SJ2KJTA.mjs +314 -0
  40. package/dist/chunk-75RZHGLS.cjs +135 -0
  41. package/dist/{chunk-P64MIF5B.cjs → chunk-ADEA7PN3.cjs} +483 -60
  42. package/dist/{chunk-YQVSHTMR.mjs → chunk-AJQTP4OO.mjs} +1 -1
  43. package/dist/{chunk-TA5G2HWD.cjs → chunk-AO6RYU5N.cjs} +31 -28
  44. package/dist/{chunk-MOKLYNHV.cjs → chunk-BO36SELV.cjs} +6 -6
  45. package/dist/{chunk-7Y6ZNFPX.mjs → chunk-BPOF5U4N.mjs} +17 -7
  46. package/dist/{chunk-JHWOVJ3M.mjs → chunk-BUGNQIHC.mjs} +5 -0
  47. package/dist/{chunk-TDFPACVX.cjs → chunk-CBJJH36A.cjs} +50 -25
  48. package/dist/{chunk-VKNHTSAP.cjs → chunk-CGBDNNSM.cjs} +2 -2
  49. package/dist/chunk-CI6E3UOH.cjs +314 -0
  50. package/dist/{chunk-QZCT2CQ4.mjs → chunk-CXEN47J3.mjs} +64 -2
  51. package/dist/{chunk-ATK2R4CH.cjs → chunk-D227TIEN.cjs} +14 -4
  52. package/dist/{chunk-QGYRXFU2.cjs → chunk-D2BB47NB.cjs} +8 -8
  53. package/dist/chunk-DTSROJ5J.mjs +367 -0
  54. package/dist/{chunk-ODBZYBAB.cjs → chunk-DZ5ZVB2K.cjs} +1 -1
  55. package/dist/{chunk-ROUTX2E5.cjs → chunk-ECKF2BAM.cjs} +18 -5
  56. package/dist/{chunk-3LUF2PE2.cjs → chunk-EK4QAEFZ.cjs} +67 -5
  57. package/dist/{chunk-VVBO3QH7.mjs → chunk-ENLZ4R3Y.mjs} +10 -1
  58. package/dist/{chunk-XXJU7FCC.cjs → chunk-EUV4YR3V.cjs} +2 -2
  59. package/dist/{chunk-HR5KPHC2.mjs → chunk-EWET4D2Y.mjs} +1 -1
  60. package/dist/{chunk-PXKIEXZD.mjs → chunk-F5QO4FNE.mjs} +1 -1
  61. package/dist/{chunk-MIDIZJZC.cjs → chunk-FO427P6I.cjs} +22 -12
  62. package/dist/{chunk-AWC4VUZL.cjs → chunk-GQ3Z3IZI.cjs} +14 -14
  63. package/dist/{chunk-JDPAKVS4.mjs → chunk-GQRWBCWK.mjs} +8 -5
  64. package/dist/{chunk-75WGQVQA.cjs → chunk-HITLGIAO.cjs} +10 -1
  65. package/dist/{chunk-WNNYOOIB.mjs → chunk-HOXTWRGB.mjs} +1 -1
  66. package/dist/{chunk-KROWKCUH.cjs → chunk-JGLC4TO3.cjs} +8 -1
  67. package/dist/{chunk-QJ3J6MZT.cjs → chunk-JNUWCDTF.cjs} +8 -8
  68. package/dist/{chunk-BTAG7LI7.cjs → chunk-JZVADIOD.cjs} +2 -2
  69. package/dist/{chunk-EM6SBQKM.cjs → chunk-KIIMAWOJ.cjs} +37 -2
  70. package/dist/{chunk-43FMW62B.mjs → chunk-KMTGADN3.mjs} +28 -0
  71. package/dist/{chunk-GOABMOX3.mjs → chunk-LSZAVSGY.mjs} +468 -45
  72. package/dist/{chunk-2NQQ5H5G.cjs → chunk-M7MKQXAF.cjs} +2 -1
  73. package/dist/{chunk-GNSDTTWZ.mjs → chunk-MKYBIIAQ.mjs} +30 -5
  74. package/dist/{chunk-ZHPHJPQP.cjs → chunk-MRMI32SN.cjs} +88 -366
  75. package/dist/{chunk-7M52YUMY.cjs → chunk-N2NAS2AM.cjs} +2 -2
  76. package/dist/{chunk-SJVKK4JE.cjs → chunk-NMHWYWDR.cjs} +1144 -777
  77. package/dist/chunk-NRDBW4MP.mjs +45 -0
  78. package/dist/{chunk-657WJNRY.mjs → chunk-O6I6VWKK.mjs} +20 -5
  79. package/dist/{chunk-O27L4YAA.mjs → chunk-O6WAEAX3.mjs} +2 -2
  80. package/dist/chunk-OFZUJMCU.mjs +601 -0
  81. package/dist/{chunk-ZKP7C2B6.mjs → chunk-OHLSEQ57.mjs} +22 -13
  82. package/dist/{chunk-X242HVD5.mjs → chunk-OO7GXVSR.mjs} +1 -1
  83. package/dist/chunk-PTZ2TVNE.cjs +178 -0
  84. package/dist/{chunk-3ATMYLLJ.mjs → chunk-Q2KB32T4.mjs} +1 -1
  85. package/dist/{chunk-LHODW25H.mjs → chunk-QORUJDIV.mjs} +2 -2
  86. package/dist/{chunk-UBO4SGH4.mjs → chunk-RHAZ22ZN.mjs} +2 -1
  87. package/dist/{chunk-G26MUMKL.cjs → chunk-S6VYG6XU.cjs} +23 -8
  88. package/dist/{chunk-6VVL3MHY.mjs → chunk-SC2WYWPF.mjs} +1 -1
  89. package/dist/{chunk-MPEYMSCF.cjs → chunk-SDOTRX3V.cjs} +5 -5
  90. package/dist/{chunk-BMWDEBXO.cjs → chunk-SHLXACIO.cjs} +31 -3
  91. package/dist/{chunk-LMJ7VRHZ.mjs → chunk-T4OGRVNS.mjs} +13 -3
  92. package/dist/{chunk-T5CERMEH.cjs → chunk-T5OJPTVN.cjs} +2 -2
  93. package/dist/{chunk-Z2YLTERK.cjs → chunk-TE2G5ION.cjs} +6 -6
  94. package/dist/chunk-UH6QN5NL.mjs +178 -0
  95. package/dist/{chunk-PQDFUSXD.cjs → chunk-UVW64BCB.cjs} +44 -35
  96. package/dist/{chunk-VCCUOMQN.mjs → chunk-VILIPRS6.mjs} +1 -1
  97. package/dist/{chunk-A5FGU2WU.cjs → chunk-VQLJWDVW.cjs} +19 -23
  98. package/dist/{chunk-VPTDD5XF.cjs → chunk-WBKEZXWE.cjs} +5 -0
  99. package/dist/{chunk-K3F2E6GS.cjs → chunk-WC5UV2HQ.cjs} +2 -2
  100. package/dist/chunk-WWFTAUFG.cjs +45 -0
  101. package/dist/{chunk-ZUSJDQ2Q.mjs → chunk-WWIKMBRN.mjs} +1 -1
  102. package/dist/{chunk-3VSKDFAT.mjs → chunk-WZ77PUAM.mjs} +1 -1
  103. package/dist/{chunk-CLJYVZAD.mjs → chunk-XCMCS4DA.mjs} +11 -1
  104. package/dist/{chunk-F6OHXPWR.mjs → chunk-YFILVET3.mjs} +8 -1
  105. package/dist/{chunk-DZ4DTRJ5.cjs → chunk-YKX5BK66.cjs} +7 -7
  106. package/dist/chunk-YSLWRWWP.cjs +601 -0
  107. package/dist/{chunk-LI2LMOLR.mjs → chunk-YWMZUGIS.mjs} +18 -5
  108. package/dist/chunk-ZLAT2CWY.mjs +135 -0
  109. package/dist/{chunk-XF7Q24PF.mjs → chunk-ZMMBIVQM.mjs} +35 -0
  110. package/dist/{chunk-U74I55WB.cjs → chunk-ZWM5KGAA.cjs} +19 -9
  111. package/dist/{client-plugins-CLObcuCq.d.mts → client-plugins-C3mK9Pol.d.mts} +300 -7
  112. package/dist/{client-plugins-DZjHC4Mi.d.ts → client-plugins-r1mOtSC1.d.ts} +300 -7
  113. package/dist/client-plugins.d.mts +4 -5
  114. package/dist/client-plugins.d.ts +4 -5
  115. package/dist/client.cjs +5 -5
  116. package/dist/client.d.mts +8 -9
  117. package/dist/client.d.ts +8 -9
  118. package/dist/client.mjs +4 -4
  119. package/dist/config.d.mts +4 -5
  120. package/dist/config.d.ts +4 -5
  121. package/dist/{devtools-RNXCTS4R.mjs → devtools-ERIKFEXX.mjs} +11 -10
  122. package/dist/{devtools-HU6Y2MNV.cjs → devtools-JZJJY5CK.cjs} +12 -11
  123. package/dist/docs.cjs +15 -14
  124. package/dist/docs.d.mts +41 -4
  125. package/dist/docs.d.ts +41 -4
  126. package/dist/docs.mjs +14 -13
  127. package/dist/i18n/client.d.mts +2 -2
  128. package/dist/i18n/client.d.ts +2 -2
  129. package/dist/i18n/index.d.mts +3 -3
  130. package/dist/i18n/index.d.ts +3 -3
  131. package/dist/i18n/server.d.mts +5 -5
  132. package/dist/i18n/server.d.ts +5 -5
  133. package/dist/image/server.cjs +3 -3
  134. package/dist/image/server.mjs +2 -2
  135. package/dist/image/sharp.cjs +10 -10
  136. package/dist/image/sharp.mjs +2 -2
  137. package/dist/{index-a-8Z5kZU.d.mts → index-BJJfLxJo.d.mts} +2 -2
  138. package/dist/{index-BWVfxIsO.d.ts → index-CwoOP-MW.d.ts} +2 -2
  139. package/dist/index.cjs +51 -44
  140. package/dist/index.d.mts +20 -21
  141. package/dist/index.d.ts +20 -21
  142. package/dist/index.mjs +50 -43
  143. package/dist/integrations.cjs +7 -3
  144. package/dist/integrations.d.mts +4 -5
  145. package/dist/integrations.d.ts +4 -5
  146. package/dist/integrations.mjs +6 -2
  147. package/dist/internal/app-markdown-runtime.cjs +5 -5
  148. package/dist/internal/app-markdown-runtime.d.mts +5 -6
  149. package/dist/internal/app-markdown-runtime.d.ts +5 -6
  150. package/dist/internal/app-markdown-runtime.mjs +4 -4
  151. package/dist/internal/build-runtime.cjs +32 -30
  152. package/dist/internal/build-runtime.d.mts +6 -7
  153. package/dist/internal/build-runtime.d.ts +6 -7
  154. package/dist/internal/build-runtime.mjs +31 -29
  155. package/dist/internal/cli-runtime.cjs +17 -16
  156. package/dist/internal/cli-runtime.mjs +16 -15
  157. package/dist/internal/client-error-overlay.cjs +6 -6
  158. package/dist/internal/client-error-overlay.mjs +2 -2
  159. package/dist/internal/client-runtime.cjs +2 -2
  160. package/dist/internal/client-runtime.mjs +1 -1
  161. package/dist/internal/compression-runtime.d.mts +4 -5
  162. package/dist/internal/compression-runtime.d.ts +4 -5
  163. package/dist/internal/config-runtime.cjs +12 -11
  164. package/dist/internal/config-runtime.d.mts +5 -6
  165. package/dist/internal/config-runtime.d.ts +5 -6
  166. package/dist/internal/config-runtime.mjs +11 -10
  167. package/dist/internal/isolated-boundary.cjs +3 -2
  168. package/dist/internal/isolated-boundary.d.mts +1 -1
  169. package/dist/internal/isolated-boundary.d.ts +1 -1
  170. package/dist/internal/isolated-boundary.mjs +2 -1
  171. package/dist/internal/metadata-image-runtime.cjs +3 -3
  172. package/dist/internal/metadata-image-runtime.mjs +2 -2
  173. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  174. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  175. package/dist/internal/production-runtime.cjs +63 -25
  176. package/dist/internal/production-runtime.d.mts +117 -37
  177. package/dist/internal/production-runtime.d.ts +117 -37
  178. package/dist/internal/production-runtime.mjs +65 -27
  179. package/dist/internal/server-tree.cjs +12 -0
  180. package/dist/internal/server-tree.d.mts +27 -0
  181. package/dist/internal/server-tree.d.ts +27 -0
  182. package/dist/internal/server-tree.mjs +12 -0
  183. package/dist/{layers-BRQF5ETU.mjs → layers-UTB43B7A.mjs} +1 -1
  184. package/dist/layers-VUWIOFEO.cjs +18 -0
  185. package/dist/markdown.cjs +4 -4
  186. package/dist/markdown.d.mts +4 -5
  187. package/dist/markdown.d.ts +4 -5
  188. package/dist/markdown.mjs +3 -3
  189. package/dist/middleware.cjs +7 -7
  190. package/dist/middleware.d.mts +6 -7
  191. package/dist/middleware.d.ts +6 -7
  192. package/dist/middleware.mjs +6 -6
  193. package/dist/navigation.cjs +5 -5
  194. package/dist/navigation.d.mts +7 -8
  195. package/dist/navigation.d.ts +7 -8
  196. package/dist/navigation.mjs +4 -4
  197. package/dist/{nitro-HSAQFXSS.cjs → nitro-7F65EZZS.cjs} +3 -3
  198. package/dist/{nitro-4XGPNIK4.mjs → nitro-MPZJGPXK.mjs} +2 -2
  199. package/dist/{observability-BupkiN0m.d.mts → observability-CoXunYhS.d.mts} +4 -3
  200. package/dist/{observability-BupkiN0m.d.ts → observability-CoXunYhS.d.ts} +4 -3
  201. package/dist/observability.d.mts +1 -1
  202. package/dist/observability.d.ts +1 -1
  203. package/dist/plugin.cjs +28 -26
  204. package/dist/plugin.d.mts +4 -5
  205. package/dist/plugin.d.ts +4 -5
  206. package/dist/plugin.mjs +27 -25
  207. package/dist/{production-runtime-CysZl3EV.d.mts → production-runtime-CCeVZXst.d.mts} +4 -4
  208. package/dist/{production-runtime-BU5ETAK9.d.ts → production-runtime-DPnsggY3.d.ts} +4 -4
  209. package/dist/query/client.cjs +6 -6
  210. package/dist/query/client.mjs +2 -2
  211. package/dist/{render-plan-CKr4ltOd.d.mts → render-plan-BuGaPFe6.d.mts} +1 -1
  212. package/dist/{render-plan-D72O1qm4.d.ts → render-plan-Cw4f5E_R.d.ts} +1 -1
  213. package/dist/renderer/react/server.cjs +10 -4
  214. package/dist/renderer/react/server.d.mts +2 -1
  215. package/dist/renderer/react/server.d.ts +2 -1
  216. package/dist/renderer/react/server.mjs +7 -1
  217. package/dist/renderer-client.cjs +5 -5
  218. package/dist/renderer-client.d.mts +6 -7
  219. package/dist/renderer-client.d.ts +6 -7
  220. package/dist/renderer-client.mjs +2 -2
  221. package/dist/renderer.d.mts +2 -0
  222. package/dist/renderer.d.ts +2 -0
  223. package/dist/{request-DbyOYI2j.d.ts → request-Bkg-hERy.d.ts} +1 -1
  224. package/dist/{request-Be83WafN.d.mts → request-CsGARcAw.d.mts} +1 -1
  225. package/dist/request.d.mts +5 -6
  226. package/dist/request.d.ts +5 -6
  227. package/dist/{resolver-PPEeiJ6M.d.ts → resolver-DadfRL6F.d.ts} +1 -1
  228. package/dist/{resolver-DhW0CqZN.d.mts → resolver-khasx3fU.d.mts} +1 -1
  229. package/dist/{route-rendering-CtVMpV-k.d.ts → route-rendering-BUZMH_64.d.ts} +1 -1
  230. package/dist/{route-rendering-BG56SzvJ.d.mts → route-rendering-f11yh5dp.d.mts} +1 -1
  231. package/dist/{router-D94-SDlW.d.ts → router-B8CR9GbD.d.ts} +1 -1
  232. package/dist/{router-ALUvm8gC.d.mts → router-Cp6yRE8A.d.mts} +1 -1
  233. package/dist/routes.d.mts +4 -5
  234. package/dist/routes.d.ts +4 -5
  235. package/dist/{runtime-BirxPwbZ.d.ts → runtime-BgDQzBiu.d.ts} +2 -2
  236. package/dist/runtime-CAEv36S_.d.mts +69 -0
  237. package/dist/runtime-CQVsT330.d.ts +69 -0
  238. package/dist/{runtime-AOJge4vQ.d.mts → runtime-CV2UCV-5.d.mts} +2 -2
  239. package/dist/server-action-security.cjs +3 -3
  240. package/dist/server-action-security.mjs +2 -2
  241. package/dist/server-fn.cjs +4 -4
  242. package/dist/server-fn.mjs +3 -3
  243. package/dist/server-plugins.d.mts +5 -6
  244. package/dist/server-plugins.d.ts +5 -6
  245. package/dist/server-query.cjs +5 -5
  246. package/dist/server-query.mjs +4 -4
  247. package/dist/server.cjs +47 -45
  248. package/dist/server.d.mts +13 -14
  249. package/dist/server.d.ts +13 -14
  250. package/dist/server.mjs +30 -28
  251. package/dist/{spa-router-CxK3USIz.d.ts → spa-router-BuciWGCZ.d.ts} +3 -3
  252. package/dist/{spa-router-DbxNRKOB.d.mts → spa-router-DwbqGkGj.d.mts} +3 -3
  253. package/dist/testing.cjs +9 -9
  254. package/dist/testing.d.mts +4 -5
  255. package/dist/testing.d.ts +4 -5
  256. package/dist/testing.mjs +7 -7
  257. package/dist/{types-Z0aotQ8w.d.mts → types-CnH8DOqo.d.mts} +1 -1
  258. package/dist/{types-Z0aotQ8w.d.ts → types-CnH8DOqo.d.ts} +1 -1
  259. package/dist/{utils-4wVRcpOw.d.mts → utils-B9V0S_yL.d.mts} +1 -1
  260. package/dist/{utils-311Y8eoK.d.ts → utils-CaoWKtYM.d.ts} +1 -1
  261. package/dist/version.cjs +2 -2
  262. package/dist/version.mjs +1 -1
  263. package/dist/vite.cjs +28 -26
  264. package/dist/vite.d.mts +4 -5
  265. package/dist/vite.d.ts +4 -5
  266. package/dist/vite.mjs +27 -25
  267. package/dist/{workflows-CR9ex-gz.d.ts → workflows-jZ4BcdoZ.d.mts} +1 -1
  268. package/dist/{workflows-CR9ex-gz.d.mts → workflows-jZ4BcdoZ.d.ts} +1 -1
  269. package/dist/workflows.cjs +3 -3
  270. package/dist/workflows.d.mts +1 -1
  271. package/dist/workflows.d.ts +1 -1
  272. package/dist/workflows.mjs +2 -2
  273. package/package.json +9 -1
  274. package/dist/chunk-M64YUMA4.cjs +0 -58
  275. package/dist/chunk-QLQ32WC4.mjs +0 -58
  276. package/dist/layers-4PNE2HOY.cjs +0 -18
  277. package/dist/metadata-2HSU2i_w.d.mts +0 -52
  278. package/dist/metadata-Cjs8JMRM.d.ts +0 -52
  279. package/dist/types-DFbjpjXX.d.mts +0 -105
  280. package/dist/types-DFbjpjXX.d.ts +0 -105
  281. package/dist/{chunk-2F2ER724.cjs → chunk-BPMATOP2.cjs} +2 -2
  282. package/dist/{chunk-IHNMMXHV.mjs → chunk-OTC5BDGO.mjs} +3 -3
@@ -18,12 +18,12 @@ import {
18
18
  notifyHistoryChange,
19
19
  subscribeHistoryChange,
20
20
  writeFarmURLSearchHistory
21
- } from "../chunk-CLJYVZAD.mjs";
21
+ } from "../chunk-XCMCS4DA.mjs";
22
22
  import "../chunk-F2SE2VDO.mjs";
23
23
  import "../chunk-2PQNJXFM.mjs";
24
24
  import "../chunk-5SJWVY6R.mjs";
25
25
  import "../chunk-QVYLBY73.mjs";
26
- import "../chunk-QZCT2CQ4.mjs";
26
+ import "../chunk-CXEN47J3.mjs";
27
27
  import "../chunk-SKNL7VA2.mjs";
28
28
  import "../chunk-2A3EQHXX.mjs";
29
29
  import "../chunk-JNZ4TDWM.mjs";
@@ -1,5 +1,5 @@
1
1
  import { F as FarmIslandStrategy } from './island-CfGru1MO.mjs';
2
- import './client-plugins-CLObcuCq.mjs';
2
+ import './client-plugins-C3mK9Pol.mjs';
3
3
 
4
4
  /**
5
5
  * A build-time rendering decision consumed by the browser router.
@@ -1,5 +1,5 @@
1
1
  import { F as FarmIslandStrategy } from './island-CfGru1MO.js';
2
- import './client-plugins-DZjHC4Mi.js';
2
+ import './client-plugins-r1mOtSC1.js';
3
3
 
4
4
  /**
5
5
  * A build-time rendering decision consumed by the browser router.
@@ -1,7 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
3
 
4
- var _chunkROUTX2E5cjs = require('../../chunk-ROUTX2E5.cjs');
4
+ var _chunkECKF2BAMcjs = require('../../chunk-ECKF2BAM.cjs');
5
+
6
+
7
+ var _chunkYSLWRWWPcjs = require('../../chunk-YSLWRWWP.cjs');
8
+ require('../../chunk-WWFTAUFG.cjs');
5
9
 
6
10
 
7
11
  var _chunkS3JO3N4Hcjs = require('../../chunk-S3JO3N4H.cjs');
@@ -42,8 +46,9 @@ var Fragment = _react2.default.Fragment;
42
46
  var Suspense = _react2.default.Suspense;
43
47
  var createElement = _react2.default.createElement;
44
48
  var isValidElement = _react2.default.isValidElement;
45
- var wrapClientGraph = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (element) => _chunkROUTX2E5cjs.wrapFarmIsolatedClientGraph.call(void 0, _react2.default, element), "wrapClientGraph");
46
- var isolateServerPageGraph = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (element) => _chunkROUTX2E5cjs.isolateFarmServerPageGraph.call(void 0, _react2.default, element), "isolateServerPageGraph");
49
+ var wrapClientGraph = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (element) => _chunkECKF2BAMcjs.wrapFarmIsolatedClientGraph.call(void 0, _react2.default, element), "wrapClientGraph");
50
+ var isolateServerPageGraph = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (element) => _chunkECKF2BAMcjs.isolateFarmServerPageGraph.call(void 0, _react2.default, element), "isolateServerPageGraph");
51
+ var renderServerTreePage = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (element) => _chunkYSLWRWWPcjs.renderFarmServerTreePage.call(void 0, _react2.default, element, { isolate: isolateServerPageGraph }), "renderServerTreePage");
47
52
  var renderToString = _server.renderToString;
48
53
  var renderToPipeableStream = _server.renderToPipeableStream;
49
54
  var server_default = _react2.default;
@@ -76,4 +81,5 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, findStaticShellBoundary, "findStaticShellB
76
81
 
77
82
 
78
83
 
79
- exports.ErrorBoundary = ErrorBoundary; exports.Fragment = Fragment; exports.Suspense = Suspense; exports.capabilities = capabilities; exports.createElement = createElement; exports.default = server_default; exports.findStaticShellBoundary = findStaticShellBoundary; exports.isValidElement = isValidElement; exports.isolateServerPageGraph = isolateServerPageGraph; exports.name = name; exports.renderToPipeableStream = renderToPipeableStream; exports.renderToString = renderToString; exports.wrapClientGraph = wrapClientGraph;
84
+
85
+ exports.ErrorBoundary = ErrorBoundary; exports.Fragment = Fragment; exports.Suspense = Suspense; exports.capabilities = capabilities; exports.createElement = createElement; exports.default = server_default; exports.findStaticShellBoundary = findStaticShellBoundary; exports.isValidElement = isValidElement; exports.isolateServerPageGraph = isolateServerPageGraph; exports.name = name; exports.renderServerTreePage = renderServerTreePage; exports.renderToPipeableStream = renderToPipeableStream; exports.renderToString = renderToString; exports.wrapClientGraph = wrapClientGraph;
@@ -32,6 +32,7 @@ declare const createElement: typeof React__default.createElement;
32
32
  declare const isValidElement: typeof React__default.isValidElement;
33
33
  declare const wrapClientGraph: (element: React__default.ReactNode) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
34
34
  declare const isolateServerPageGraph: (element: React__default.ReactNode) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
35
+ declare const renderServerTreePage: (element: React__default.ReactNode) => Promise<React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>>;
35
36
  declare const renderToString: typeof renderToString$1;
36
37
  declare const renderToPipeableStream: typeof renderToPipeableStream$1;
37
38
 
@@ -42,4 +43,4 @@ declare const renderToPipeableStream: typeof renderToPipeableStream$1;
42
43
  */
43
44
  declare function findStaticShellBoundary(chunk: string): number;
44
45
 
45
- export { ErrorBoundary, Fragment, Suspense, capabilities, createElement, findStaticShellBoundary, isValidElement, isolateServerPageGraph, name, renderToPipeableStream, renderToString, wrapClientGraph };
46
+ export { ErrorBoundary, Fragment, Suspense, capabilities, createElement, findStaticShellBoundary, isValidElement, isolateServerPageGraph, name, renderServerTreePage, renderToPipeableStream, renderToString, wrapClientGraph };
@@ -32,6 +32,7 @@ declare const createElement: typeof React__default.createElement;
32
32
  declare const isValidElement: typeof React__default.isValidElement;
33
33
  declare const wrapClientGraph: (element: React__default.ReactNode) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
34
34
  declare const isolateServerPageGraph: (element: React__default.ReactNode) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
35
+ declare const renderServerTreePage: (element: React__default.ReactNode) => Promise<React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>>;
35
36
  declare const renderToString: typeof renderToString$1;
36
37
  declare const renderToPipeableStream: typeof renderToPipeableStream$1;
37
38
 
@@ -42,4 +43,4 @@ declare const renderToPipeableStream: typeof renderToPipeableStream$1;
42
43
  */
43
44
  declare function findStaticShellBoundary(chunk: string): number;
44
45
 
45
- export { ErrorBoundary, Fragment, Suspense, capabilities, createElement, findStaticShellBoundary, isValidElement, isolateServerPageGraph, name, renderToPipeableStream, renderToString, wrapClientGraph };
46
+ export { ErrorBoundary, Fragment, Suspense, capabilities, createElement, findStaticShellBoundary, isValidElement, isolateServerPageGraph, name, renderServerTreePage, renderToPipeableStream, renderToString, wrapClientGraph };
@@ -1,7 +1,11 @@
1
1
  import {
2
2
  isolateFarmServerPageGraph,
3
3
  wrapFarmIsolatedClientGraph
4
- } from "../../chunk-LI2LMOLR.mjs";
4
+ } from "../../chunk-YWMZUGIS.mjs";
5
+ import {
6
+ renderFarmServerTreePage
7
+ } from "../../chunk-OFZUJMCU.mjs";
8
+ import "../../chunk-NRDBW4MP.mjs";
5
9
  import {
6
10
  __name
7
11
  } from "../../chunk-LPEX4YW6.mjs";
@@ -44,6 +48,7 @@ var createElement = React.createElement;
44
48
  var isValidElement = React.isValidElement;
45
49
  var wrapClientGraph = /* @__PURE__ */ __name((element) => wrapFarmIsolatedClientGraph(React, element), "wrapClientGraph");
46
50
  var isolateServerPageGraph = /* @__PURE__ */ __name((element) => isolateFarmServerPageGraph(React, element), "isolateServerPageGraph");
51
+ var renderServerTreePage = /* @__PURE__ */ __name((element) => renderFarmServerTreePage(React, element, { isolate: isolateServerPageGraph }), "renderServerTreePage");
47
52
  var renderToString = reactRenderToString;
48
53
  var renderToPipeableStream = reactRenderToPipeableStream;
49
54
  var server_default = React;
@@ -73,6 +78,7 @@ export {
73
78
  isValidElement,
74
79
  isolateServerPageGraph,
75
80
  name,
81
+ renderServerTreePage,
76
82
  renderToPipeableStream,
77
83
  renderToString,
78
84
  wrapClientGraph
@@ -22,7 +22,7 @@ require('./chunk-PCOTGFSM.cjs');
22
22
 
23
23
 
24
24
 
25
- var _chunkATK2R4CHcjs = require('./chunk-ATK2R4CH.cjs');
25
+ var _chunkD227TIENcjs = require('./chunk-D227TIEN.cjs');
26
26
 
27
27
 
28
28
 
@@ -38,7 +38,7 @@ require('./chunk-SK35NQKK.cjs');
38
38
 
39
39
  var _chunkQCVE2OCIcjs = require('./chunk-QCVE2OCI.cjs');
40
40
  require('./chunk-AI7QMY7O.cjs');
41
- require('./chunk-3LUF2PE2.cjs');
41
+ require('./chunk-EK4QAEFZ.cjs');
42
42
  require('./chunk-R5JIFR6B.cjs');
43
43
  require('./chunk-C5GUTBZK.cjs');
44
44
  require('./chunk-QBK2AA4U.cjs');
@@ -64,7 +64,7 @@ var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
64
64
  function createRendererRouter(options = {}) {
65
65
  const basePath = options.basePath === void 0 ? _chunkI57LW5VZcjs.getFarmBasePath.call(void 0, ) : _chunkI57LW5VZcjs.normalizeFarmBasePath.call(void 0, options.basePath);
66
66
  const matcher = _optionalChain([options, 'access', _ => _.routes, 'optionalAccess', _2 => _2.length]) ? _chunkSU7MH53Pcjs.createFarmRouter.call(void 0, [...options.routes]) : null;
67
- const router = _chunkATK2R4CHcjs.getRouter.call(void 0, );
67
+ const router = _chunkD227TIENcjs.getRouter.call(void 0, );
68
68
  let snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
69
69
  const read = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => {
70
70
  snapshot = readRendererRouterSnapshot(basePath, matcher, router.getNavigationState());
@@ -80,7 +80,7 @@ function createRendererRouter(options = {}) {
80
80
  listener();
81
81
  }, "notify");
82
82
  const unsubscribeNavigation = router.subscribeNavigation(notify);
83
- const unsubscribeHistory = _chunkATK2R4CHcjs.subscribeHistoryChange.call(void 0, notify);
83
+ const unsubscribeHistory = _chunkD227TIENcjs.subscribeHistoryChange.call(void 0, notify);
84
84
  read();
85
85
  return () => {
86
86
  unsubscribeNavigation();
@@ -316,7 +316,7 @@ function readRendererRouterSnapshot(basePath, matcher, navigation) {
316
316
  pathname,
317
317
  searchParams: url.searchParams,
318
318
  params: _optionalChain([matcher, 'optionalAccess', _20 => _20.match, 'call', _21 => _21(routePathname), 'optionalAccess', _22 => _22.params]) || {},
319
- pageState: _chunkATK2R4CHcjs.readPageState.call(void 0, ),
319
+ pageState: _chunkD227TIENcjs.readPageState.call(void 0, ),
320
320
  navigation
321
321
  };
322
322
  }
@@ -1,12 +1,12 @@
1
1
  import { FarmRouterRouteInput } from './router.mjs';
2
- import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-DbxNRKOB.mjs';
2
+ import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-DwbqGkGj.mjs';
3
3
  import { F as FarmClientCacheStatus } from './client-cache-di_Nasxa.mjs';
4
4
  import { ServerFn } from './server-fn.mjs';
5
5
  import { ServerQuery } from './server-query.mjs';
6
6
  import { S as ServerQueryFetchOptions } from './server-query-runtime-aP52iuL5.mjs';
7
7
  import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types-DQnyD3VD.mjs';
8
- import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-Z0aotQ8w.mjs';
9
- import './client-plugins-CLObcuCq.mjs';
8
+ import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-CnH8DOqo.mjs';
9
+ import './client-plugins-C3mK9Pol.mjs';
10
10
  import './lifecycle-DK06VuKP.mjs';
11
11
  import './integration-api-0y4FXJpC.mjs';
12
12
  import './endpoint-CCHFqyTE.mjs';
@@ -21,12 +21,11 @@ import 'unstorage';
21
21
  import './schema.mjs';
22
22
  import 'react';
23
23
  import '@farming-labs/orm';
24
- import './types-DFbjpjXX.mjs';
25
24
  import '@farming-labs/docs';
26
- import './observability-BupkiN0m.mjs';
25
+ import './observability-CoXunYhS.mjs';
27
26
  import '@opentelemetry/api';
28
27
  import 'vite';
29
- import './workflows-CR9ex-gz.mjs';
28
+ import './workflows-jZ4BcdoZ.mjs';
30
29
  import './cron.mjs';
31
30
  import './env.mjs';
32
31
  import './server-action-security.mjs';
@@ -38,7 +37,7 @@ import './font.mjs';
38
37
  import './after.mjs';
39
38
  import 'node:http';
40
39
  import './island-CfGru1MO.mjs';
41
- import './render-plan-CKr4ltOd.mjs';
40
+ import './render-plan-BuGaPFe6.mjs';
42
41
 
43
42
  interface FarmClientStore<TSnapshot> {
44
43
  getSnapshot(): TSnapshot;
@@ -1,12 +1,12 @@
1
1
  import { FarmRouterRouteInput } from './router.js';
2
- import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-CxK3USIz.js';
2
+ import { F as FarmNavigationState, a as FarmNavigateOptions } from './spa-router-BuciWGCZ.js';
3
3
  import { F as FarmClientCacheStatus } from './client-cache-Deoqq-nM.js';
4
4
  import { ServerFn } from './server-fn.js';
5
5
  import { ServerQuery } from './server-query.js';
6
6
  import { S as ServerQueryFetchOptions } from './server-query-runtime-DXRNhX_3.js';
7
7
  import { F as FarmThemeSnapshot, a as FarmThemePreference } from './types-DQnyD3VD.js';
8
- import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-Z0aotQ8w.js';
9
- import './client-plugins-DZjHC4Mi.js';
8
+ import { F as FarmI18nClientSnapshot, a as FarmTranslator, b as FarmI18nLocale } from './types-CnH8DOqo.js';
9
+ import './client-plugins-r1mOtSC1.js';
10
10
  import './lifecycle-DK06VuKP.js';
11
11
  import './integration-api-BPJo5oXb.js';
12
12
  import './endpoint-CA-TNX60.js';
@@ -21,12 +21,11 @@ import 'unstorage';
21
21
  import './schema.js';
22
22
  import 'react';
23
23
  import '@farming-labs/orm';
24
- import './types-DFbjpjXX.js';
25
24
  import '@farming-labs/docs';
26
- import './observability-BupkiN0m.js';
25
+ import './observability-CoXunYhS.js';
27
26
  import '@opentelemetry/api';
28
27
  import 'vite';
29
- import './workflows-CR9ex-gz.js';
28
+ import './workflows-jZ4BcdoZ.js';
30
29
  import './cron.js';
31
30
  import './env.js';
32
31
  import './server-action-security.js';
@@ -38,7 +37,7 @@ import './font.js';
38
37
  import './after.js';
39
38
  import 'node:http';
40
39
  import './island-CfGru1MO.js';
41
- import './render-plan-D72O1qm4.js';
40
+ import './render-plan-Cw4f5E_R.js';
42
41
 
43
42
  interface FarmClientStore<TSnapshot> {
44
43
  getSnapshot(): TSnapshot;
@@ -22,7 +22,7 @@ import {
22
22
  getRouter,
23
23
  readPageState,
24
24
  subscribeHistoryChange
25
- } from "./chunk-CLJYVZAD.mjs";
25
+ } from "./chunk-XCMCS4DA.mjs";
26
26
  import {
27
27
  getFarmI18nClientState,
28
28
  subscribeFarmI18n
@@ -38,7 +38,7 @@ import {
38
38
  createFarmLocaleCookie
39
39
  } from "./chunk-GCXWJJKH.mjs";
40
40
  import "./chunk-JM5XPKWH.mjs";
41
- import "./chunk-QZCT2CQ4.mjs";
41
+ import "./chunk-CXEN47J3.mjs";
42
42
  import "./chunk-SKNL7VA2.mjs";
43
43
  import "./chunk-2A3EQHXX.mjs";
44
44
  import "./chunk-JNZ4TDWM.mjs";
@@ -174,6 +174,8 @@ interface FarmServerRendererRuntime {
174
174
  wrapClientGraph?(element: unknown): unknown;
175
175
  /** Lets a server-only page under a route-owned client tree render its own isolated islands. */
176
176
  isolateServerPageGraph?(element: unknown): unknown;
177
+ /** Resolves an async page below a hydrating layout into a tree the browser rebuilds there. */
178
+ renderServerTreePage?(element: unknown): Promise<unknown>;
177
179
  /**
178
180
  * Optional: tag a plain function component so a renderer that compiles its
179
181
  * own components can tell the two apart. Renderers without the hook treat
@@ -174,6 +174,8 @@ interface FarmServerRendererRuntime {
174
174
  wrapClientGraph?(element: unknown): unknown;
175
175
  /** Lets a server-only page under a route-owned client tree render its own isolated islands. */
176
176
  isolateServerPageGraph?(element: unknown): unknown;
177
+ /** Resolves an async page below a hydrating layout into a tree the browser rebuilds there. */
178
+ renderServerTreePage?(element: unknown): Promise<unknown>;
177
179
  /**
178
180
  * Optional: tag a plain function component so a renderer that compiles its
179
181
  * own components can tell the two apart. Renderers without the hook treat
@@ -1,4 +1,4 @@
1
- import './client-plugins-DZjHC4Mi.js';
1
+ import './client-plugins-r1mOtSC1.js';
2
2
 
3
3
  interface FarmRequestURLOptions {
4
4
  origin?: string | URL;
@@ -1,4 +1,4 @@
1
- import './client-plugins-CLObcuCq.mjs';
1
+ import './client-plugins-C3mK9Pol.mjs';
2
2
 
3
3
  interface FarmRequestURLOptions {
4
4
  origin?: string | URL;
@@ -1,5 +1,5 @@
1
- export { g as getCurrentRequest } from './request-Be83WafN.mjs';
2
- import './client-plugins-CLObcuCq.mjs';
1
+ export { g as getCurrentRequest } from './request-CsGARcAw.mjs';
2
+ import './client-plugins-C3mK9Pol.mjs';
3
3
  import './lifecycle-DK06VuKP.mjs';
4
4
  import './integration-api-0y4FXJpC.mjs';
5
5
  import './endpoint-CCHFqyTE.mjs';
@@ -17,19 +17,18 @@ import 'unstorage';
17
17
  import './schema.mjs';
18
18
  import 'react';
19
19
  import '@farming-labs/orm';
20
- import './types-DFbjpjXX.mjs';
21
20
  import '@farming-labs/docs';
22
- import './observability-BupkiN0m.mjs';
21
+ import './observability-CoXunYhS.mjs';
23
22
  import '@opentelemetry/api';
24
23
  import 'vite';
25
- import './workflows-CR9ex-gz.mjs';
24
+ import './workflows-jZ4BcdoZ.mjs';
26
25
  import './cron.mjs';
27
26
  import './env.mjs';
28
27
  import './server-action-security.mjs';
29
28
  import 'rolldown/utils';
30
29
  import 'rolldown';
31
30
  import './image-config-Duob7wER.mjs';
32
- import './types-Z0aotQ8w.mjs';
31
+ import './types-CnH8DOqo.mjs';
33
32
  import './types-DQnyD3VD.mjs';
34
33
  import './font.mjs';
35
34
  import './after.mjs';
package/dist/request.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { g as getCurrentRequest } from './request-DbyOYI2j.js';
2
- import './client-plugins-DZjHC4Mi.js';
1
+ export { g as getCurrentRequest } from './request-Bkg-hERy.js';
2
+ import './client-plugins-r1mOtSC1.js';
3
3
  import './lifecycle-DK06VuKP.js';
4
4
  import './integration-api-BPJo5oXb.js';
5
5
  import './endpoint-CA-TNX60.js';
@@ -17,19 +17,18 @@ import 'unstorage';
17
17
  import './schema.js';
18
18
  import 'react';
19
19
  import '@farming-labs/orm';
20
- import './types-DFbjpjXX.js';
21
20
  import '@farming-labs/docs';
22
- import './observability-BupkiN0m.js';
21
+ import './observability-CoXunYhS.js';
23
22
  import '@opentelemetry/api';
24
23
  import 'vite';
25
- import './workflows-CR9ex-gz.js';
24
+ import './workflows-jZ4BcdoZ.js';
26
25
  import './cron.js';
27
26
  import './env.js';
28
27
  import './server-action-security.js';
29
28
  import 'rolldown/utils';
30
29
  import 'rolldown';
31
30
  import './image-config-Duob7wER.js';
32
- import './types-Z0aotQ8w.js';
31
+ import './types-CnH8DOqo.js';
33
32
  import './types-DQnyD3VD.js';
34
33
  import './font.js';
35
34
  import './after.js';
@@ -1,4 +1,4 @@
1
- import { d as FarmI18nLocaleSource, R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.js';
1
+ import { d as FarmI18nLocaleSource, R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.js';
2
2
 
3
3
  interface FarmLocaleResolution {
4
4
  locale: string;
@@ -1,4 +1,4 @@
1
- import { d as FarmI18nLocaleSource, R as ResolvedFarmI18nConfig } from './types-Z0aotQ8w.mjs';
1
+ import { d as FarmI18nLocaleSource, R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
2
2
 
3
3
  interface FarmLocaleResolution {
4
4
  locale: string;
@@ -1,4 +1,4 @@
1
- import { s as RouteModule } from './client-plugins-DZjHC4Mi.js';
1
+ import { s as RouteModule } from './client-plugins-r1mOtSC1.js';
2
2
 
3
3
  /**
4
4
  * The rendering-mode merge shared by every consumer of route directives.
@@ -1,4 +1,4 @@
1
- import { s as RouteModule } from './client-plugins-CLObcuCq.mjs';
1
+ import { s as RouteModule } from './client-plugins-C3mK9Pol.mjs';
2
2
 
3
3
  /**
4
4
  * The rendering-mode merge shared by every consumer of route directives.
@@ -1,6 +1,6 @@
1
1
  import { RefObject } from 'react';
2
2
  import { FarmRouterRouteInput } from './router.js';
3
- import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-CxK3USIz.js';
3
+ import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-BuciWGCZ.js';
4
4
 
5
5
  interface UseRouterOptions {
6
6
  basePath?: string;
@@ -1,6 +1,6 @@
1
1
  import { RefObject } from 'react';
2
2
  import { FarmRouterRouteInput } from './router.mjs';
3
- import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-DbxNRKOB.mjs';
3
+ import { b as FarmNavigationBlockerContext, F as FarmNavigationState } from './spa-router-DwbqGkGj.mjs';
4
4
 
5
5
  interface UseRouterOptions {
6
6
  basePath?: string;
package/dist/routes.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-CLObcuCq.mjs';
1
+ import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-C3mK9Pol.mjs';
2
2
  import { ComponentType } from 'react';
3
3
  import { RouteDataCacheKey } from './cache.mjs';
4
4
  import { ServerFn } from './server-fn.mjs';
@@ -13,12 +13,11 @@ import 'db0';
13
13
  import 'unstorage';
14
14
  import './schema.mjs';
15
15
  import '@farming-labs/orm';
16
- import './types-DFbjpjXX.mjs';
17
16
  import '@farming-labs/docs';
18
- import './observability-BupkiN0m.mjs';
17
+ import './observability-CoXunYhS.mjs';
19
18
  import '@opentelemetry/api';
20
19
  import 'vite';
21
- import './workflows-CR9ex-gz.mjs';
20
+ import './workflows-jZ4BcdoZ.mjs';
22
21
  import './cron.mjs';
23
22
  import './env.mjs';
24
23
  import './server-action-security.mjs';
@@ -26,7 +25,7 @@ import './server-fn-error-DDh14a0V.mjs';
26
25
  import 'rolldown/utils';
27
26
  import 'rolldown';
28
27
  import './image-config-Duob7wER.mjs';
29
- import './types-Z0aotQ8w.mjs';
28
+ import './types-CnH8DOqo.mjs';
30
29
  import './types-DQnyD3VD.mjs';
31
30
  import './font.mjs';
32
31
  import './after.mjs';
package/dist/routes.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-DZjHC4Mi.js';
1
+ import { F as FarmRouteRuntimeConfig, L as LayoutProps, M as Metadata, j as FarmRouteRuntime, k as FarmRouteRegions, l as FarmRouteMaxDuration, m as FarmAppContext, o as PageProps, q as PluginContextProps, s as RouteModule, P as ParsedRoute } from './client-plugins-r1mOtSC1.js';
2
2
  import { ComponentType } from 'react';
3
3
  import { RouteDataCacheKey } from './cache.js';
4
4
  import { ServerFn } from './server-fn.js';
@@ -13,12 +13,11 @@ import 'db0';
13
13
  import 'unstorage';
14
14
  import './schema.js';
15
15
  import '@farming-labs/orm';
16
- import './types-DFbjpjXX.js';
17
16
  import '@farming-labs/docs';
18
- import './observability-BupkiN0m.js';
17
+ import './observability-CoXunYhS.js';
19
18
  import '@opentelemetry/api';
20
19
  import 'vite';
21
- import './workflows-CR9ex-gz.js';
20
+ import './workflows-jZ4BcdoZ.js';
22
21
  import './cron.js';
23
22
  import './env.js';
24
23
  import './server-action-security.js';
@@ -26,7 +25,7 @@ import './server-fn-error-DDh14a0V.js';
26
25
  import 'rolldown/utils';
27
26
  import 'rolldown';
28
27
  import './image-config-Duob7wER.js';
29
- import './types-Z0aotQ8w.js';
28
+ import './types-CnH8DOqo.js';
30
29
  import './types-DQnyD3VD.js';
31
30
  import './font.js';
32
31
  import './after.js';
@@ -1,5 +1,5 @@
1
- import { F as FarmLocaleResolution } from './resolver-PPEeiJ6M.js';
2
- import { R as ResolvedFarmI18nConfig, c as FarmI18nCatalogs, F as FarmI18nClientSnapshot } from './types-Z0aotQ8w.js';
1
+ import { F as FarmLocaleResolution } from './resolver-DadfRL6F.js';
2
+ import { R as ResolvedFarmI18nConfig, c as FarmI18nCatalogs, F as FarmI18nClientSnapshot } from './types-CnH8DOqo.js';
3
3
 
4
4
  declare class FarmI18nRuntime {
5
5
  readonly config: ResolvedFarmI18nConfig;
@@ -0,0 +1,69 @@
1
+ import { e as EndpointFailure } from './endpoint-CCHFqyTE.mjs';
2
+ import { P as PluginRoutesFactory } from './integration-api-0y4FXJpC.mjs';
3
+ import { a as APIRouteParams, A as APIRouteMatch } from './route-pattern-W-SsJGSp.mjs';
4
+ import './client-plugins-C3mK9Pol.mjs';
5
+
6
+ interface MountedRoute {
7
+ path: string;
8
+ methods: string[];
9
+ endpoints: Record<string, any>;
10
+ filePath?: string;
11
+ pluginMethods?: string[];
12
+ }
13
+ /** The same registration step is used by dev discovery and the production bundle. */
14
+ declare function mergePluginAPIRoutes(existing: readonly MountedRoute[], plugins: readonly {
15
+ name: string;
16
+ routes?: PluginRoutesFactory;
17
+ }[], expected?: readonly {
18
+ path: string;
19
+ methods: readonly string[];
20
+ }[], options?: {
21
+ bodySizeLimit?: number;
22
+ /**
23
+ * Sends a plugin's `api.get(...).invoke()` call through the app's request pipeline, so the
24
+ * endpoint's middleware, integration guards and route rules run for its own path as they do
25
+ * for a direct request. Without it the endpoint is called directly.
26
+ */
27
+ dispatch?: PluginAPIDispatch;
28
+ }): Array<MountedRoute & {
29
+ filePath: string;
30
+ }>;
31
+ /** Runs a request for an app endpoint through the app's own request pipeline. */
32
+ type PluginAPIDispatch = (request: Request) => Response | Promise<Response>;
33
+
34
+ interface APIRouteShapeSource<TSource> {
35
+ routePath: string;
36
+ source: TSource;
37
+ filePath: string;
38
+ }
39
+ /** Validate API URL shapes and return the lower-priority route replaced by this source. */
40
+ declare function registerAPIRouteShape<TSource>(shapes: Map<string, APIRouteShapeSource<TSource>>, routePath: string, filePath: string, source: TSource): string | undefined;
41
+
42
+ /**
43
+ * Every method an API route module can export. Route discovery in core and in
44
+ * the plain-Vite plugin reads this list, so a handler exported under any of
45
+ * these names is served wherever the route is.
46
+ */
47
+ declare const API_ROUTE_METHODS: readonly ["GET", "HEAD", "QUERY", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"];
48
+ interface APIRouteMethodTable {
49
+ methods: string[];
50
+ endpoints: Record<string, any>;
51
+ }
52
+ declare function resolveAPIRouteEndpoint(route: APIRouteMethodTable, method: string): any | undefined;
53
+ declare function getAllowedAPIRouteMethods(route: APIRouteMethodTable): string[];
54
+ /** Match canonical routes through a configurable same-origin public API path. */
55
+ declare function matchAPIRouteAtBasePath<T extends {
56
+ path: string;
57
+ }>(routes: Map<string, T>, pathname: string, serverBasePath?: string): APIRouteMatch<T> | null;
58
+ /** @internal Prepare the fixed API table owned by a generated production bundle. */
59
+ declare function createStaticAPIRouteMatcherAtBasePath<T extends {
60
+ path: string;
61
+ }>(routes: readonly T[], serverBasePath?: string): (pathname: string) => APIRouteMatch<T> | null;
62
+ /** Test whether a pathname belongs to the configured local API surface. */
63
+ declare function isFarmAPIPathname(pathname: string, serverBasePath?: string): boolean;
64
+ declare function invokeAPIRouteEndpoint(endpoint: any, request: Request, params?: APIRouteParams, bodySizeLimit?: number): Promise<Response>;
65
+ declare function normalizeRouteResponse(result: unknown): Response;
66
+ declare function isWebResponse(value: unknown): value is Response;
67
+ declare function createEndpointFailureResponse(failure: EndpointFailure<string, unknown>): Response;
68
+
69
+ export { API_ROUTE_METHODS as A, type PluginAPIDispatch as P, isWebResponse as a, isFarmAPIPathname as b, createStaticAPIRouteMatcherAtBasePath as c, createEndpointFailureResponse as d, registerAPIRouteShape as e, type APIRouteShapeSource as f, getAllowedAPIRouteMethods as g, mergePluginAPIRoutes as h, invokeAPIRouteEndpoint as i, matchAPIRouteAtBasePath as m, normalizeRouteResponse as n, resolveAPIRouteEndpoint as r };
@@ -0,0 +1,69 @@
1
+ import { e as EndpointFailure } from './endpoint-CA-TNX60.js';
2
+ import { P as PluginRoutesFactory } from './integration-api-BPJo5oXb.js';
3
+ import { a as APIRouteParams, A as APIRouteMatch } from './route-pattern-W-SsJGSp.js';
4
+ import './client-plugins-r1mOtSC1.js';
5
+
6
+ interface MountedRoute {
7
+ path: string;
8
+ methods: string[];
9
+ endpoints: Record<string, any>;
10
+ filePath?: string;
11
+ pluginMethods?: string[];
12
+ }
13
+ /** The same registration step is used by dev discovery and the production bundle. */
14
+ declare function mergePluginAPIRoutes(existing: readonly MountedRoute[], plugins: readonly {
15
+ name: string;
16
+ routes?: PluginRoutesFactory;
17
+ }[], expected?: readonly {
18
+ path: string;
19
+ methods: readonly string[];
20
+ }[], options?: {
21
+ bodySizeLimit?: number;
22
+ /**
23
+ * Sends a plugin's `api.get(...).invoke()` call through the app's request pipeline, so the
24
+ * endpoint's middleware, integration guards and route rules run for its own path as they do
25
+ * for a direct request. Without it the endpoint is called directly.
26
+ */
27
+ dispatch?: PluginAPIDispatch;
28
+ }): Array<MountedRoute & {
29
+ filePath: string;
30
+ }>;
31
+ /** Runs a request for an app endpoint through the app's own request pipeline. */
32
+ type PluginAPIDispatch = (request: Request) => Response | Promise<Response>;
33
+
34
+ interface APIRouteShapeSource<TSource> {
35
+ routePath: string;
36
+ source: TSource;
37
+ filePath: string;
38
+ }
39
+ /** Validate API URL shapes and return the lower-priority route replaced by this source. */
40
+ declare function registerAPIRouteShape<TSource>(shapes: Map<string, APIRouteShapeSource<TSource>>, routePath: string, filePath: string, source: TSource): string | undefined;
41
+
42
+ /**
43
+ * Every method an API route module can export. Route discovery in core and in
44
+ * the plain-Vite plugin reads this list, so a handler exported under any of
45
+ * these names is served wherever the route is.
46
+ */
47
+ declare const API_ROUTE_METHODS: readonly ["GET", "HEAD", "QUERY", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"];
48
+ interface APIRouteMethodTable {
49
+ methods: string[];
50
+ endpoints: Record<string, any>;
51
+ }
52
+ declare function resolveAPIRouteEndpoint(route: APIRouteMethodTable, method: string): any | undefined;
53
+ declare function getAllowedAPIRouteMethods(route: APIRouteMethodTable): string[];
54
+ /** Match canonical routes through a configurable same-origin public API path. */
55
+ declare function matchAPIRouteAtBasePath<T extends {
56
+ path: string;
57
+ }>(routes: Map<string, T>, pathname: string, serverBasePath?: string): APIRouteMatch<T> | null;
58
+ /** @internal Prepare the fixed API table owned by a generated production bundle. */
59
+ declare function createStaticAPIRouteMatcherAtBasePath<T extends {
60
+ path: string;
61
+ }>(routes: readonly T[], serverBasePath?: string): (pathname: string) => APIRouteMatch<T> | null;
62
+ /** Test whether a pathname belongs to the configured local API surface. */
63
+ declare function isFarmAPIPathname(pathname: string, serverBasePath?: string): boolean;
64
+ declare function invokeAPIRouteEndpoint(endpoint: any, request: Request, params?: APIRouteParams, bodySizeLimit?: number): Promise<Response>;
65
+ declare function normalizeRouteResponse(result: unknown): Response;
66
+ declare function isWebResponse(value: unknown): value is Response;
67
+ declare function createEndpointFailureResponse(failure: EndpointFailure<string, unknown>): Response;
68
+
69
+ export { API_ROUTE_METHODS as A, type PluginAPIDispatch as P, isWebResponse as a, isFarmAPIPathname as b, createStaticAPIRouteMatcherAtBasePath as c, createEndpointFailureResponse as d, registerAPIRouteShape as e, type APIRouteShapeSource as f, getAllowedAPIRouteMethods as g, mergePluginAPIRoutes as h, invokeAPIRouteEndpoint as i, matchAPIRouteAtBasePath as m, normalizeRouteResponse as n, resolveAPIRouteEndpoint as r };
@@ -1,5 +1,5 @@
1
- import { F as FarmLocaleResolution } from './resolver-DhW0CqZN.mjs';
2
- import { R as ResolvedFarmI18nConfig, c as FarmI18nCatalogs, F as FarmI18nClientSnapshot } from './types-Z0aotQ8w.mjs';
1
+ import { F as FarmLocaleResolution } from './resolver-khasx3fU.mjs';
2
+ import { R as ResolvedFarmI18nConfig, c as FarmI18nCatalogs, F as FarmI18nClientSnapshot } from './types-CnH8DOqo.mjs';
3
3
 
4
4
  declare class FarmI18nRuntime {
5
5
  readonly config: ResolvedFarmI18nConfig;