@farm.js/core 0.1.77 → 0.1.80

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 (521) hide show
  1. package/dist/after.cjs +1 -1
  2. package/dist/after.mjs +1 -1
  3. package/dist/{agent-mcp-handler-PJKZHYSA.mjs → agent-mcp-handler-GDY5CPPW.mjs} +6 -6
  4. package/dist/{agent-mcp-handler-73SGWVZT.cjs → agent-mcp-handler-IUL6OPC3.cjs} +7 -7
  5. package/dist/{agent-mcp.d-B1h3RznZ.d.ts → agent-mcp.d-BPa5n0ld.d.ts} +1 -1
  6. package/dist/{agent-mcp.d-WFQotg8M.d.mts → agent-mcp.d-DOP95Jxm.d.mts} +1 -1
  7. package/dist/agent-runtime.cjs +3 -3
  8. package/dist/agent-runtime.d.mts +4 -4
  9. package/dist/agent-runtime.d.ts +4 -4
  10. package/dist/agent-runtime.mjs +2 -2
  11. package/dist/{analyzer-64YS2OXQ.mjs → analyzer-F7CWE5VA.mjs} +3 -3
  12. package/dist/analyzer-I7RBBQ65.cjs +16 -0
  13. package/dist/api/client.cjs +1 -1
  14. package/dist/api/client.mjs +1 -1
  15. package/dist/api/client.native.cjs +1 -1
  16. package/dist/api/client.native.mjs +1 -1
  17. package/dist/api/node.cjs +7 -7
  18. package/dist/api/node.d.mts +6 -6
  19. package/dist/api/node.d.ts +6 -6
  20. package/dist/api/node.mjs +6 -6
  21. package/dist/api/route-manager.cjs +10 -10
  22. package/dist/api/route-manager.d.mts +6 -6
  23. package/dist/api/route-manager.d.ts +6 -6
  24. package/dist/api/route-manager.mjs +9 -9
  25. package/dist/api/runtime.cjs +6 -6
  26. package/dist/api/runtime.d.mts +5 -5
  27. package/dist/api/runtime.d.ts +5 -5
  28. package/dist/api/runtime.mjs +5 -5
  29. package/dist/api.cjs +12 -12
  30. package/dist/api.d.mts +7 -7
  31. package/dist/api.d.ts +7 -7
  32. package/dist/api.mjs +11 -11
  33. package/dist/{app-manifest.d-EZEYG-tD.d.mts → app-manifest.d-9UD6BznX.d.mts} +1 -1
  34. package/dist/{app-manifest.d-Ktsqsuk9.d.ts → app-manifest.d-CO6Iu0Hx.d.ts} +1 -1
  35. package/dist/app-markdown.cjs +6 -6
  36. package/dist/app-markdown.d.mts +5 -5
  37. package/dist/app-markdown.d.ts +5 -5
  38. package/dist/app-markdown.mjs +5 -5
  39. package/dist/{app.d-DTkqYcIr.d.mts → app.d-DXeRWZK7.d.mts} +4 -4
  40. package/dist/{app.d-CSh3y8w8.d.ts → app.d-DwX1ePhs.d.ts} +4 -4
  41. package/dist/cache.cjs +4 -4
  42. package/dist/cache.mjs +3 -3
  43. package/dist/{chunk-QYOAGT3E.cjs → chunk-2BEGVSDF.cjs} +6 -5
  44. package/dist/{chunk-WW62HKA2.cjs → chunk-2FK47RRZ.cjs} +15 -15
  45. package/dist/{chunk-2YJ4DHTD.cjs → chunk-2NOHVIJ3.cjs} +2 -2
  46. package/dist/{chunk-GDM3ZD2O.cjs → chunk-2OFP3IVA.cjs} +5 -1
  47. package/dist/{chunk-JRBWBMP2.mjs → chunk-2RRTOKRZ.mjs} +1 -1
  48. package/dist/{chunk-BTHNOAOF.mjs → chunk-3JQBQG7K.mjs} +4 -4
  49. package/dist/{chunk-H76C5AOU.mjs → chunk-3K2E55BJ.mjs} +2 -2
  50. package/dist/{chunk-VJ6L7TII.cjs → chunk-3SPECQXI.cjs} +31 -20
  51. package/dist/{chunk-FNVGK72M.mjs → chunk-44G4XHEL.mjs} +15 -8
  52. package/dist/{chunk-63EFR2WF.cjs → chunk-4H4ZXUNB.cjs} +3 -3
  53. package/dist/{chunk-ZBE5EHVJ.mjs → chunk-4MIDUSIX.mjs} +14 -14
  54. package/dist/{chunk-F4ID7BGO.cjs → chunk-4OFWG4IK.cjs} +7 -7
  55. package/dist/{chunk-WXMR3OHY.mjs → chunk-4WXNTAOM.mjs} +1 -1
  56. package/dist/{chunk-LTDMJD2F.cjs → chunk-5OAN7BG5.cjs} +12 -12
  57. package/dist/{chunk-MQW4LHJR.cjs → chunk-5VDJEKGK.cjs} +4 -4
  58. package/dist/{chunk-CYNQPKA4.cjs → chunk-5ZHC6QGD.cjs} +2 -2
  59. package/dist/{chunk-ALEUMLJN.mjs → chunk-67JTJCAS.mjs} +3 -2
  60. package/dist/{chunk-WHNNDFCJ.mjs → chunk-6GJZJAED.mjs} +1 -1
  61. package/dist/{chunk-SYPEMXW2.mjs → chunk-6MZSTPD2.mjs} +1 -1
  62. package/dist/{chunk-SFSTZ7TB.cjs → chunk-7DD5TNPS.cjs} +8 -8
  63. package/dist/{chunk-GC5ROI3A.cjs → chunk-7U4XF76R.cjs} +1 -1
  64. package/dist/{chunk-QVBXTSIZ.mjs → chunk-7V5M43ND.mjs} +1 -1
  65. package/dist/{chunk-62DZHPDK.cjs → chunk-7YLDUB4R.cjs} +10 -10
  66. package/dist/{chunk-7EOSFIPN.cjs → chunk-A4WWKG2B.cjs} +2 -2
  67. package/dist/{chunk-OCKQ3YOH.mjs → chunk-A5D3UMLJ.mjs} +2 -2
  68. package/dist/{chunk-DSRWQ4SJ.cjs → chunk-ANZLZNNX.cjs} +83 -25
  69. package/dist/{chunk-CSAIIMY3.mjs → chunk-ATISIC6G.mjs} +1 -1
  70. package/dist/{chunk-FVVGEGQ2.cjs → chunk-AXA2BSX3.cjs} +2 -2
  71. package/dist/{chunk-BNCKXPCU.cjs → chunk-BIAGSYIZ.cjs} +30 -30
  72. package/dist/{chunk-FPGSIOWS.mjs → chunk-BPWTSPK6.mjs} +3 -3
  73. package/dist/{chunk-UYACD4SH.cjs → chunk-CCMP4JD2.cjs} +1 -1
  74. package/dist/{chunk-JHZ6HULQ.cjs → chunk-CGIVCGH5.cjs} +2 -2
  75. package/dist/{chunk-ERT6HQAI.mjs → chunk-CNDBLUKI.mjs} +2 -2
  76. package/dist/{chunk-3AJQFVWW.mjs → chunk-COTFX4GT.mjs} +2 -2
  77. package/dist/{chunk-RK4MGL6Q.mjs → chunk-CYRO3WP4.mjs} +4 -3
  78. package/dist/{chunk-PUEPDMWY.cjs → chunk-DVHFIETW.cjs} +29 -22
  79. package/dist/{chunk-F35C3TJZ.mjs → chunk-E4E4Y5FD.mjs} +1 -1
  80. package/dist/{chunk-TQOYIPMQ.mjs → chunk-EG5YBYHO.mjs} +2 -2
  81. package/dist/{chunk-2DA7CLY7.mjs → chunk-EILUVBKS.mjs} +14 -0
  82. package/dist/{chunk-GAAK3HDZ.mjs → chunk-EY7ED5UW.mjs} +6 -6
  83. package/dist/{chunk-ZO6TOLHL.mjs → chunk-FS55CNTC.mjs} +1 -1
  84. package/dist/{chunk-YRQ44JTF.cjs → chunk-G4SZC2WH.cjs} +649 -446
  85. package/dist/{chunk-OQZF6H6G.cjs → chunk-GAWSWJJ2.cjs} +27 -27
  86. package/dist/{chunk-QUEYL2WM.cjs → chunk-GBESKA76.cjs} +4 -4
  87. package/dist/{chunk-NTHAZLVS.mjs → chunk-GBW5DU7V.mjs} +385 -182
  88. package/dist/{chunk-OVUU2RCQ.mjs → chunk-HD5FLXP2.mjs} +1 -1
  89. package/dist/{chunk-Q2EKSSEG.cjs → chunk-HEDGTXXB.cjs} +14 -14
  90. package/dist/{chunk-5QZT2EQN.cjs → chunk-HNUBRUFQ.cjs} +2 -2
  91. package/dist/{chunk-JA6RML7C.mjs → chunk-HR4N2K4V.mjs} +2 -2
  92. package/dist/{chunk-6D3CJFNU.cjs → chunk-HR5GU4UU.cjs} +7 -7
  93. package/dist/{chunk-SX535SU5.cjs → chunk-IJPRCQHW.cjs} +10 -10
  94. package/dist/{chunk-SMYDCZBW.mjs → chunk-JGEN2FIT.mjs} +1 -1
  95. package/dist/{chunk-3GMD2E4Q.mjs → chunk-K3XKEZR6.mjs} +3 -3
  96. package/dist/{chunk-LPXJEZJK.mjs → chunk-KCJBIWBM.mjs} +2 -2
  97. package/dist/{chunk-IXC6WDMT.mjs → chunk-KEU55O2D.mjs} +1 -1
  98. package/dist/{chunk-5WFPZG7K.mjs → chunk-KKVRWNDH.mjs} +6 -6
  99. package/dist/{chunk-NSNQLBHR.cjs → chunk-KMGHXIDA.cjs} +2 -2
  100. package/dist/{chunk-Z2FFLTF5.mjs → chunk-LTXKRIST.mjs} +2 -2
  101. package/dist/{chunk-YROK6CJC.cjs → chunk-LVGB5PYK.cjs} +30 -30
  102. package/dist/{chunk-QODXWUGQ.mjs → chunk-MDEFTF63.mjs} +69 -14
  103. package/dist/{chunk-FTQUNBRN.cjs → chunk-MHKPXX3J.cjs} +2 -2
  104. package/dist/{chunk-HFJLMALC.cjs → chunk-MQOHYV6L.cjs} +17 -17
  105. package/dist/{chunk-BGUTIQII.mjs → chunk-MUZHULW2.mjs} +1 -1
  106. package/dist/{chunk-WGNGM6MJ.mjs → chunk-MZ5QGWRW.mjs} +2 -2
  107. package/dist/{chunk-DZZHTMWM.cjs → chunk-N3H7UPBM.cjs} +3 -2
  108. package/dist/{chunk-CF74ABRI.mjs → chunk-NJ4OASLP.mjs} +4 -4
  109. package/dist/{chunk-RFXEQYPH.cjs → chunk-NW3DL2PM.cjs} +83 -24
  110. package/dist/{chunk-QDHR54S6.cjs → chunk-OBVBII5K.cjs} +5 -5
  111. package/dist/{chunk-WRWJ7IWT.cjs → chunk-OLKYHTLN.cjs} +5 -5
  112. package/dist/{chunk-EVIWKPJV.cjs → chunk-PLJMEUAN.cjs} +15 -1
  113. package/dist/{chunk-EMTN5ABC.mjs → chunk-POVHO46S.mjs} +1 -1
  114. package/dist/{chunk-X3Y6JWJG.cjs → chunk-PWMJBCAN.cjs} +3 -3
  115. package/dist/{chunk-PG7J7XYT.cjs → chunk-Q4TRGTO7.cjs} +6 -6
  116. package/dist/{chunk-KUXEII7V.mjs → chunk-Q4YEAWUK.mjs} +1 -1
  117. package/dist/{chunk-D2RLADWN.mjs → chunk-QBJ6N5MT.mjs} +83 -24
  118. package/dist/{chunk-PKXGFQZS.mjs → chunk-QD34VE4N.mjs} +1 -1
  119. package/dist/{chunk-2QPTZMGK.mjs → chunk-QHAISITM.mjs} +1 -1
  120. package/dist/{chunk-VJI2LWTL.cjs → chunk-RFNQTQ44.cjs} +2 -2
  121. package/dist/{chunk-TZ2YPXLB.cjs → chunk-RLCOWWE5.cjs} +7 -7
  122. package/dist/{chunk-IG2JE6WJ.mjs → chunk-RLEAVG6G.mjs} +1 -1
  123. package/dist/{chunk-SL2BSPDJ.mjs → chunk-RPA45OQS.mjs} +2 -2
  124. package/dist/{chunk-ORWXJDUN.mjs → chunk-RQBGHHOQ.mjs} +1 -1
  125. package/dist/{chunk-GC2BSXQS.cjs → chunk-SDICLSQU.cjs} +11 -11
  126. package/dist/{chunk-FE6KYDHC.cjs → chunk-SHDCKRP4.cjs} +3 -3
  127. package/dist/{chunk-DUSTJ6A5.mjs → chunk-SLEHAGGV.mjs} +2 -2
  128. package/dist/{chunk-IIVZTGGP.cjs → chunk-T3SMMLSB.cjs} +2 -2
  129. package/dist/{chunk-K6DXKHFE.mjs → chunk-TE7AX6HB.mjs} +1 -1
  130. package/dist/chunk-TIZJYHB7.mjs +42 -0
  131. package/dist/{chunk-NQZWLIPT.cjs → chunk-TS3ZHJN5.cjs} +3 -3
  132. package/dist/{chunk-KHS3T3E5.mjs → chunk-TYHWZOA2.mjs} +1 -1
  133. package/dist/{chunk-Z3QXQN4U.mjs → chunk-U6GMCDRS.mjs} +1 -1
  134. package/dist/{chunk-URQW27KO.mjs → chunk-UBLKPREL.mjs} +1 -1
  135. package/dist/{chunk-DD22NQFX.cjs → chunk-UGLTOLTJ.cjs} +2 -2
  136. package/dist/{chunk-PE2LEWXA.mjs → chunk-UJPE75GF.mjs} +1 -1
  137. package/dist/{chunk-6ZFGWB75.cjs → chunk-UWOCYINY.cjs} +4 -4
  138. package/dist/chunk-UZM3PDKK.cjs +46 -0
  139. package/dist/{chunk-YTGNMKRA.mjs → chunk-V73Y4UBL.mjs} +67 -9
  140. package/dist/{chunk-G7B6NU4X.cjs → chunk-VFMHE5D3.cjs} +3 -3
  141. package/dist/{chunk-IXO6O2EL.cjs → chunk-VGVRGGP4.cjs} +2 -2
  142. package/dist/{chunk-YRXPDKMM.cjs → chunk-W53Z4WDI.cjs} +8 -8
  143. package/dist/{chunk-47R7CX4A.mjs → chunk-WBPVLCNE.mjs} +1 -1
  144. package/dist/{chunk-4VLXQ55O.cjs → chunk-WIZRYFB2.cjs} +3 -3
  145. package/dist/{chunk-WZVESREI.cjs → chunk-WJ2O2MPP.cjs} +312 -291
  146. package/dist/{chunk-SIYELCIX.cjs → chunk-X4TSMQWF.cjs} +339 -309
  147. package/dist/{chunk-DASQJ5UD.mjs → chunk-XF7MJSUS.mjs} +1 -1
  148. package/dist/{chunk-S7QEQCVV.mjs → chunk-XGL42MQ7.mjs} +1 -1
  149. package/dist/{chunk-YN7G22MP.cjs → chunk-XKUKWMGX.cjs} +3 -3
  150. package/dist/{chunk-JD42G6BN.cjs → chunk-XY5OZQF6.cjs} +2 -2
  151. package/dist/{chunk-7EXFAJST.mjs → chunk-XZBBKZGW.mjs} +80 -59
  152. package/dist/{chunk-3QM74STY.cjs → chunk-Y2FEFQAY.cjs} +3 -3
  153. package/dist/{chunk-ZJGFAW5U.mjs → chunk-YHHOTKUT.mjs} +5 -1
  154. package/dist/{chunk-65XXHTVJ.mjs → chunk-YN3YMSKD.mjs} +4 -4
  155. package/dist/{chunk-PDACTAVX.mjs → chunk-YOVSWY2E.mjs} +1 -1
  156. package/dist/{chunk-R5X7FDOG.mjs → chunk-YU2MNIIY.mjs} +1 -1
  157. package/dist/{chunk-42EUEYW6.cjs → chunk-YUQUGVSV.cjs} +8 -8
  158. package/dist/{chunk-DZ3AZ7UK.cjs → chunk-Z4SMFUZ7.cjs} +28 -28
  159. package/dist/{chunk-7SAGHWWU.cjs → chunk-Z5BANEQD.cjs} +6 -6
  160. package/dist/{chunk-IHMSLS2O.mjs → chunk-ZDYYZX73.mjs} +63 -33
  161. package/dist/{chunk-4PWGLPL6.mjs → chunk-ZIEO3DQ3.mjs} +26 -15
  162. package/dist/{chunk-FCHEO3LG.cjs → chunk-ZPEZXQTM.cjs} +22 -22
  163. package/dist/{chunk-PMKUTZGR.cjs → chunk-ZVSQN7NC.cjs} +135 -80
  164. package/dist/{cli-runtime.d-DljFfr8T.d.ts → cli-runtime.d-8BhZy_wr.d.ts} +7 -6
  165. package/dist/{cli-runtime.d-HSkdfvoq.d.mts → cli-runtime.d-DPNTN-JV.d.mts} +7 -6
  166. package/dist/client/lifecycle.cjs +1 -1
  167. package/dist/client/lifecycle.d.mts +1 -1
  168. package/dist/client/lifecycle.d.ts +1 -1
  169. package/dist/client/lifecycle.mjs +1 -1
  170. package/dist/{client-component.d-B-1dIlsw.d.mts → client-component.d-CMCdyAr8.d.mts} +1 -1
  171. package/dist/{client-component.d-_otXB__v.d.ts → client-component.d-CkDcob6D.d.ts} +1 -1
  172. package/dist/client-plugins.cjs +1 -1
  173. package/dist/{client-plugins.d-MjxlvbCK.d.ts → client-plugins.d-BYIovYqX.d.ts} +4 -4
  174. package/dist/{client-plugins.d-BmBzvfSP.d.mts → client-plugins.d-WcMwOZGZ.d.mts} +4 -4
  175. package/dist/client-plugins.d.mts +4 -4
  176. package/dist/client-plugins.d.ts +4 -4
  177. package/dist/client-plugins.mjs +1 -1
  178. package/dist/client.cjs +4 -4
  179. package/dist/client.d.mts +9 -9
  180. package/dist/client.d.ts +9 -9
  181. package/dist/client.mjs +3 -3
  182. package/dist/config.cjs +1 -1
  183. package/dist/config.d.mts +4 -4
  184. package/dist/config.d.ts +4 -4
  185. package/dist/config.mjs +1 -1
  186. package/dist/cron.cjs +4 -4
  187. package/dist/cron.mjs +3 -3
  188. package/dist/deferred.cjs +1 -1
  189. package/dist/deferred.mjs +1 -1
  190. package/dist/deployment.cjs +1 -1
  191. package/dist/deployment.mjs +1 -1
  192. package/dist/desktop.cjs +1 -1
  193. package/dist/desktop.d.mts +5 -5
  194. package/dist/desktop.d.ts +5 -5
  195. package/dist/desktop.mjs +1 -1
  196. package/dist/{dev-guard-ZDIELV6Q.mjs → dev-guard-K3GJDPEQ.mjs} +1 -1
  197. package/dist/{dev-guard-ZLLKVO5T.cjs → dev-guard-VIEEA4LS.cjs} +1 -1
  198. package/dist/{devtools-7LHXG2VS.mjs → devtools-F3FDFV26.mjs} +11 -11
  199. package/dist/{devtools-NNQN66EZ.cjs → devtools-JJOYTIMS.cjs} +13 -13
  200. package/dist/{devtools-client-X5OQCXDF.cjs → devtools-client-BKBCCORT.cjs} +1 -1
  201. package/dist/{devtools-client-SU4XH46J.mjs → devtools-client-L4MUWD6K.mjs} +1 -1
  202. package/dist/{devtools-ui-CYBVFLPH.mjs → devtools-ui-BOG33MT5.mjs} +1 -1
  203. package/dist/{devtools-ui-SYRUXUA7.cjs → devtools-ui-C2EMF2SO.cjs} +1 -1
  204. package/dist/docs.cjs +15 -15
  205. package/dist/docs.d.mts +6 -6
  206. package/dist/docs.d.ts +6 -6
  207. package/dist/docs.mjs +14 -14
  208. package/dist/env-types.cjs +1 -1
  209. package/dist/env-types.mjs +1 -1
  210. package/dist/env.cjs +1 -1
  211. package/dist/env.mjs +1 -1
  212. package/dist/environment/vite.cjs +6 -6
  213. package/dist/environment/vite.d.mts +9 -0
  214. package/dist/environment/vite.d.ts +9 -0
  215. package/dist/environment/vite.mjs +5 -5
  216. package/dist/environment.cjs +1 -1
  217. package/dist/environment.mjs +1 -1
  218. package/dist/font.cjs +1 -1
  219. package/dist/font.mjs +1 -1
  220. package/dist/{handler.d-C53zFDmp.d.ts → handler.d-BwdOyc9x.d.ts} +1 -1
  221. package/dist/{handler.d-CaYopqaD.d.mts → handler.d-s3IM6pbJ.d.mts} +1 -1
  222. package/dist/headers.cjs +1 -1
  223. package/dist/{headers.d-MBkD9ZLf.d.mts → headers.d-BR-OXrqQ.d.mts} +1 -1
  224. package/dist/{headers.d-BvtpC90T.d.ts → headers.d-CAW4wPey.d.ts} +1 -1
  225. package/dist/headers.mjs +1 -1
  226. package/dist/i18n/client.cjs +1 -1
  227. package/dist/i18n/client.mjs +1 -1
  228. package/dist/i18n/index.cjs +1 -1
  229. package/dist/i18n/index.mjs +1 -1
  230. package/dist/i18n/server.cjs +1 -1
  231. package/dist/i18n/server.mjs +1 -1
  232. package/dist/image/server.cjs +1 -1
  233. package/dist/image/server.mjs +1 -1
  234. package/dist/image/sharp.cjs +1 -1
  235. package/dist/image/sharp.mjs +1 -1
  236. package/dist/image.cjs +1 -1
  237. package/dist/image.mjs +1 -1
  238. package/dist/index.cjs +74 -68
  239. package/dist/{index.d-Mikf-tdP.d.mts → index.d-BEVK61zS.d.mts} +1 -1
  240. package/dist/{index.d-2hQpPZ-P.d.ts → index.d-ah2c89Wu.d.ts} +1 -1
  241. package/dist/index.d.mts +25 -25
  242. package/dist/index.d.ts +25 -25
  243. package/dist/index.mjs +72 -66
  244. package/dist/instrumentation.cjs +1 -1
  245. package/dist/instrumentation.mjs +1 -1
  246. package/dist/integrations/orm.cjs +4 -4
  247. package/dist/integrations/orm.d.mts +4 -4
  248. package/dist/integrations/orm.d.ts +4 -4
  249. package/dist/integrations/orm.mjs +3 -3
  250. package/dist/integrations.cjs +3 -3
  251. package/dist/integrations.d.mts +4 -4
  252. package/dist/integrations.d.ts +4 -4
  253. package/dist/integrations.mjs +2 -2
  254. package/dist/internal/app-markdown-runtime.cjs +5 -5
  255. package/dist/internal/app-markdown-runtime.d.mts +5 -5
  256. package/dist/internal/app-markdown-runtime.d.ts +5 -5
  257. package/dist/internal/app-markdown-runtime.mjs +4 -4
  258. package/dist/internal/build-runtime.cjs +51 -51
  259. package/dist/internal/build-runtime.d.mts +7 -7
  260. package/dist/internal/build-runtime.d.ts +7 -7
  261. package/dist/internal/build-runtime.mjs +50 -50
  262. package/dist/internal/cli-runtime.cjs +31 -28
  263. package/dist/internal/cli-runtime.d.mts +11 -11
  264. package/dist/internal/cli-runtime.d.ts +11 -11
  265. package/dist/internal/cli-runtime.mjs +30 -27
  266. package/dist/internal/client-error-overlay.cjs +5 -5
  267. package/dist/internal/client-error-overlay.mjs +2 -2
  268. package/dist/internal/client-runtime.cjs +49 -12
  269. package/dist/internal/client-runtime.d.mts +17 -21
  270. package/dist/internal/client-runtime.d.ts +17 -21
  271. package/dist/internal/client-runtime.mjs +38 -1
  272. package/dist/internal/compression-runtime.cjs +1 -1
  273. package/dist/internal/compression-runtime.d.mts +4 -4
  274. package/dist/internal/compression-runtime.d.ts +4 -4
  275. package/dist/internal/compression-runtime.mjs +1 -1
  276. package/dist/internal/config-runtime.cjs +13 -13
  277. package/dist/internal/config-runtime.d.mts +6 -6
  278. package/dist/internal/config-runtime.d.ts +6 -6
  279. package/dist/internal/config-runtime.mjs +12 -12
  280. package/dist/internal/desktop-guard.cjs +1 -1
  281. package/dist/internal/desktop-guard.mjs +1 -1
  282. package/dist/internal/docs-precompiled-runtime.cjs +1 -1
  283. package/dist/internal/docs-precompiled-runtime.mjs +1 -1
  284. package/dist/internal/form-actions-client.cjs +1 -1
  285. package/dist/internal/form-actions-client.mjs +1 -1
  286. package/dist/internal/form-actions.cjs +1 -1
  287. package/dist/internal/form-actions.mjs +1 -1
  288. package/dist/internal/infra-analytics-runtime.cjs +11 -11
  289. package/dist/internal/infra-analytics-runtime.mjs +9 -9
  290. package/dist/internal/island-codec.cjs +1 -1
  291. package/dist/internal/island-codec.mjs +1 -1
  292. package/dist/internal/island-value-store.cjs +1 -1
  293. package/dist/internal/island-value-store.mjs +1 -1
  294. package/dist/internal/islands-boot.cjs +59 -10
  295. package/dist/internal/islands-boot.d.mts +19 -1
  296. package/dist/internal/islands-boot.d.ts +19 -1
  297. package/dist/internal/islands-boot.mjs +55 -6
  298. package/dist/internal/islands-runtime.cjs +1 -1
  299. package/dist/internal/islands-runtime.mjs +1 -1
  300. package/dist/internal/islands-server.cjs +1 -1
  301. package/dist/internal/islands-server.mjs +1 -1
  302. package/dist/internal/islx-client.cjs +1 -1
  303. package/dist/internal/islx-react.cjs +1 -1
  304. package/dist/internal/islx-server.cjs +1 -1
  305. package/dist/internal/isolated-boundary.cjs +1 -1
  306. package/dist/internal/isolated-boundary.mjs +1 -1
  307. package/dist/internal/metadata-image-runtime.cjs +1 -1
  308. package/dist/internal/metadata-image-runtime.mjs +1 -1
  309. package/dist/internal/native-server-fns.cjs +5 -5
  310. package/dist/internal/native-server-fns.mjs +4 -4
  311. package/dist/internal/product-telemetry-runtime.cjs +4 -4
  312. package/dist/internal/product-telemetry-runtime.mjs +3 -3
  313. package/dist/internal/production-node-env.cjs +1 -1
  314. package/dist/internal/production-node-env.mjs +1 -1
  315. package/dist/internal/production-runtime.cjs +27 -27
  316. package/dist/internal/production-runtime.d.mts +14 -13
  317. package/dist/internal/production-runtime.d.ts +14 -13
  318. package/dist/internal/production-runtime.mjs +28 -28
  319. package/dist/internal/react-cache.cjs +1 -1
  320. package/dist/internal/react-cache.mjs +1 -1
  321. package/dist/internal/request-cookies.cjs +1 -1
  322. package/dist/internal/request-cookies.mjs +1 -1
  323. package/dist/internal/server-fn-transform.cjs +1 -1
  324. package/dist/internal/server-fn-transform.mjs +1 -1
  325. package/dist/internal/server-tree.cjs +1 -1
  326. package/dist/internal/server-tree.mjs +1 -1
  327. package/dist/internal/spa-router.cjs +44 -0
  328. package/dist/internal/spa-router.d.mts +41 -0
  329. package/dist/internal/spa-router.d.ts +41 -0
  330. package/dist/internal/spa-router.mjs +44 -0
  331. package/dist/internal/start-manifest.cjs +1 -1
  332. package/dist/internal/start-manifest.d.mts +4 -4
  333. package/dist/internal/start-manifest.d.ts +4 -4
  334. package/dist/internal/start-manifest.mjs +1 -1
  335. package/dist/internal/vercel-edge-middleware.cjs +4 -4
  336. package/dist/internal/vercel-edge-middleware.mjs +3 -3
  337. package/dist/json-ld.cjs +1 -1
  338. package/dist/json-ld.mjs +1 -1
  339. package/dist/{layers-I7VE5Q2Y.mjs → layers-5ZD4764G.mjs} +1 -1
  340. package/dist/{layers-WP5K5F7W.cjs → layers-HMEGUEXM.cjs} +1 -1
  341. package/dist/libsql-http-2QD224YS.mjs +600 -0
  342. package/dist/libsql-http-M6LMNXCN.cjs +600 -0
  343. package/dist/{lifecycle.d-VzcXyEyn.d.ts → lifecycle.d-OtGWAvJT.d.mts} +1 -1
  344. package/dist/{lifecycle.d-VzcXyEyn.d.mts → lifecycle.d-OtGWAvJT.d.ts} +1 -1
  345. package/dist/{manager-YO2RHDYU.mjs → manager-OMTC5FOJ.mjs} +2 -2
  346. package/dist/{manager-R7FV4A56.cjs → manager-PX4QN4HK.cjs} +4 -4
  347. package/dist/markdown.cjs +4 -4
  348. package/dist/markdown.d.mts +4 -4
  349. package/dist/markdown.d.ts +4 -4
  350. package/dist/markdown.mjs +3 -3
  351. package/dist/middleware.cjs +10 -10
  352. package/dist/middleware.d.mts +4 -4
  353. package/dist/middleware.d.ts +4 -4
  354. package/dist/middleware.mjs +9 -9
  355. package/dist/mobile.cjs +1 -1
  356. package/dist/mobile.mjs +1 -1
  357. package/dist/{modules-KOKD4XS6.mjs → modules-3Q2ZCY4Q.mjs} +1 -1
  358. package/dist/{modules-QTP7WJPD.cjs → modules-KDHFBQ6L.cjs} +1 -1
  359. package/dist/{mount.d-GU-tNxbE.d.ts → mount.d-DcoPFqv5.d.ts} +1 -1
  360. package/dist/{mount.d-DsP46XCy.d.mts → mount.d-Ylo-CmzK.d.mts} +1 -1
  361. package/dist/{native-server-fn-handler-LII4MDRR.mjs → native-server-fn-handler-OXFTI6V5.mjs} +5 -5
  362. package/dist/{native-server-fn-handler-IWNKQEXK.cjs → native-server-fn-handler-TNVFEQW3.cjs} +6 -6
  363. package/dist/{native-specs-LDV6IZ4N.mjs → native-specs-A7YOL463.mjs} +1 -1
  364. package/dist/{native-specs-5OLED4MM.cjs → native-specs-JDPH26AO.cjs} +1 -1
  365. package/dist/{native-tree-D3PW64ZL.cjs → native-tree-5TENEQ7Y.cjs} +5 -5
  366. package/dist/{native-tree-G6ZWS7IR.mjs → native-tree-LNO7K6JR.mjs} +4 -4
  367. package/dist/native.cjs +1 -1
  368. package/dist/native.mjs +1 -1
  369. package/dist/{navigation-delegate.d-DsxNPrLT.d.ts → navigation-delegate.d-2MK4YSlL.d.ts} +1 -1
  370. package/dist/{navigation-delegate.d-CUtNOYLi.d.mts → navigation-delegate.d-BA5h0fbE.d.mts} +1 -1
  371. package/dist/navigation.cjs +5 -5
  372. package/dist/navigation.d.mts +7 -7
  373. package/dist/navigation.d.ts +7 -7
  374. package/dist/navigation.mjs +4 -4
  375. package/dist/{nitro-HKMVYIXY.cjs → nitro-6UOJXJZ6.cjs} +8 -8
  376. package/dist/{nitro-RHLKLYXH.mjs → nitro-C3MYDX7V.mjs} +4 -4
  377. package/dist/{node-module-bundle-LIZ2KMVW.cjs → node-module-bundle-M6BISE2P.cjs} +1 -1
  378. package/dist/{node-module-bundle-VR6NV6AI.mjs → node-module-bundle-XPLBMXRD.mjs} +1 -1
  379. package/dist/observability.cjs +9 -3
  380. package/dist/{observability.d-DdJRiaIX.d.ts → observability.d-mXSbp4jc.d.mts} +17 -1
  381. package/dist/{observability.d-DdJRiaIX.d.mts → observability.d-mXSbp4jc.d.ts} +17 -1
  382. package/dist/observability.d.mts +1 -1
  383. package/dist/observability.d.ts +1 -1
  384. package/dist/observability.mjs +8 -2
  385. package/dist/og.cjs +1 -1
  386. package/dist/og.mjs +1 -1
  387. package/dist/platform.cjs +1 -1
  388. package/dist/platform.mjs +1 -1
  389. package/dist/{plugin-2KWR2X4B.mjs → plugin-33I3V42N.mjs} +2 -2
  390. package/dist/{plugin-MW7IDV76.cjs → plugin-LN3JBZRR.cjs} +3 -3
  391. package/dist/plugin.cjs +41 -41
  392. package/dist/plugin.d.mts +8 -8
  393. package/dist/plugin.d.ts +8 -8
  394. package/dist/plugin.mjs +40 -40
  395. package/dist/{port-CLL4BC4O.mjs → port-CEZTV776.mjs} +1 -1
  396. package/dist/{port-HASZTQGY.cjs → port-STMSGUVU.cjs} +1 -1
  397. package/dist/query/client.cjs +7 -7
  398. package/dist/query/client.mjs +2 -2
  399. package/dist/query/index.cjs +1 -1
  400. package/dist/query/index.mjs +1 -1
  401. package/dist/query/parsers.cjs +1 -1
  402. package/dist/query/parsers.mjs +1 -1
  403. package/dist/query/server.cjs +1 -1
  404. package/dist/query/server.mjs +1 -1
  405. package/dist/{render-plan.d-8K6S0h0L.d.ts → render-plan.d-2o-AG-ot.d.ts} +1 -1
  406. package/dist/{render-plan.d-B7Xp-PPW.d.mts → render-plan.d-ChYBMhLu.d.mts} +1 -1
  407. package/dist/renderer/none/server.cjs +1 -1
  408. package/dist/renderer/none/server.mjs +1 -1
  409. package/dist/renderer/react/client.cjs +1 -1
  410. package/dist/renderer/react/client.mjs +1 -1
  411. package/dist/renderer/react/server.cjs +1 -1
  412. package/dist/renderer/react/server.mjs +1 -1
  413. package/dist/renderer/react/vite.cjs +1 -1
  414. package/dist/renderer/react/vite.mjs +1 -1
  415. package/dist/renderer-client.cjs +5 -5
  416. package/dist/renderer-client.d.mts +7 -7
  417. package/dist/renderer-client.d.ts +7 -7
  418. package/dist/renderer-client.mjs +2 -2
  419. package/dist/renderer.cjs +1 -1
  420. package/dist/renderer.d.mts +16 -1
  421. package/dist/renderer.d.ts +16 -1
  422. package/dist/renderer.mjs +1 -1
  423. package/dist/request.cjs +1 -1
  424. package/dist/{request.d-CuQxmOqX.d.ts → request.d-CE0FIkiM.d.ts} +1 -1
  425. package/dist/{request.d-nhqciCAz.d.mts → request.d-RCnCBuWq.d.mts} +1 -1
  426. package/dist/request.d.mts +5 -5
  427. package/dist/request.d.ts +5 -5
  428. package/dist/request.mjs +1 -1
  429. package/dist/{route-rendering.d-BSsdDYC1.d.ts → route-rendering.d-BTPOM2nU.d.ts} +1 -1
  430. package/dist/{route-rendering.d-CeF1FOnl.d.mts → route-rendering.d-BZJnfKsp.d.mts} +1 -1
  431. package/dist/router.cjs +1 -1
  432. package/dist/{router.d-C7yGlhDL.d.ts → router.d-BU_WE6Ol.d.ts} +1 -1
  433. package/dist/{router.d-D462OX24.d.mts → router.d-D8Vvwl4i.d.mts} +1 -1
  434. package/dist/router.mjs +1 -1
  435. package/dist/routes.cjs +5 -5
  436. package/dist/routes.d.mts +4 -4
  437. package/dist/routes.d.ts +4 -4
  438. package/dist/routes.mjs +4 -4
  439. package/dist/{rsc-pipeline-7PV6ARDS.cjs → rsc-pipeline-A3R4U26C.cjs} +17 -17
  440. package/dist/{rsc-pipeline-EZU4W4RL.mjs → rsc-pipeline-JZWVSHOR.mjs} +16 -16
  441. package/dist/{runtime-RWLFEPS3.mjs → runtime-SQFRHRGJ.mjs} +20 -20
  442. package/dist/{runtime-QOE3NRXF.cjs → runtime-WZ3CHHGJ.cjs} +28 -28
  443. package/dist/{runtime.d-C-BHQMy5.d.mts → runtime.d-BnmuOXVD.d.mts} +1 -1
  444. package/dist/{runtime.d-CORDJQMy.d.ts → runtime.d-DJ6IIKcF.d.ts} +1 -1
  445. package/dist/safe-fetch.cjs +1 -1
  446. package/dist/safe-fetch.mjs +1 -1
  447. package/dist/{schema-dev-notice-CA55V57L.mjs → schema-dev-notice-EUPAUJVN.mjs} +3 -3
  448. package/dist/{schema-dev-notice-RWA2UTR6.cjs → schema-dev-notice-ZSCL47CT.cjs} +6 -6
  449. package/dist/schema.cjs +1 -1
  450. package/dist/schema.mjs +1 -1
  451. package/dist/search-client-A7YJT7JZ.cjs +15 -0
  452. package/dist/{search-client-OXH6GBNO.mjs → search-client-GIXIEU75.mjs} +2 -2
  453. package/dist/server-action-security.cjs +1 -1
  454. package/dist/server-action-security.mjs +1 -1
  455. package/dist/{server-components-status.d-BbADqqjq.d.ts → server-components-status.d-BeqSXcjM.d.ts} +1 -1
  456. package/dist/{server-components-status.d-BJ6huueH.d.mts → server-components-status.d-BzOg9M8g.d.mts} +1 -1
  457. package/dist/server-fn-client.cjs +1 -1
  458. package/dist/server-fn-client.mjs +1 -1
  459. package/dist/server-fn.cjs +5 -5
  460. package/dist/server-fn.mjs +4 -4
  461. package/dist/server-plugins.cjs +1 -1
  462. package/dist/server-plugins.d.mts +6 -6
  463. package/dist/server-plugins.d.ts +6 -6
  464. package/dist/server-plugins.mjs +1 -1
  465. package/dist/server-query-client.cjs +1 -1
  466. package/dist/server-query-client.mjs +1 -1
  467. package/dist/server-query.cjs +6 -6
  468. package/dist/server-query.mjs +5 -5
  469. package/dist/server.cjs +122 -100
  470. package/dist/server.d.mts +15 -15
  471. package/dist/server.d.ts +15 -15
  472. package/dist/server.mjs +77 -55
  473. package/dist/{session-WPAT6H76.mjs → session-4IB34X35.mjs} +3 -3
  474. package/dist/session-MOYQJ7E6.cjs +24 -0
  475. package/dist/{spa-router.d-DyGJLQc_.d.ts → spa-router.d-BOwuVkMl.d.ts} +20 -4
  476. package/dist/{spa-router.d-DfjafHyX.d.mts → spa-router.d-CDpftSsk.d.mts} +20 -4
  477. package/dist/{ssg.d-D11lz_wr.d.ts → ssg.d-BTVqyq8T.d.ts} +2 -2
  478. package/dist/{ssg.d-iiLTyLAO.d.mts → ssg.d-Bx_WFuwg.d.mts} +2 -2
  479. package/dist/storage.cjs +3 -3
  480. package/dist/storage.d.mts +112 -96
  481. package/dist/storage.d.ts +112 -96
  482. package/dist/storage.mjs +2 -2
  483. package/dist/testing.cjs +13 -13
  484. package/dist/testing.d.mts +4 -4
  485. package/dist/testing.d.ts +4 -4
  486. package/dist/testing.mjs +10 -10
  487. package/dist/theme/client.cjs +1 -1
  488. package/dist/theme/client.mjs +1 -1
  489. package/dist/theme/index.cjs +1 -1
  490. package/dist/theme/index.mjs +1 -1
  491. package/dist/theme/runtime.cjs +1 -1
  492. package/dist/theme/runtime.mjs +1 -1
  493. package/dist/theme/server.cjs +1 -1
  494. package/dist/theme/server.mjs +1 -1
  495. package/dist/{types.d-DC97bnjj.d.mts → types.d-C5hlNbHa.d.mts} +14 -2
  496. package/dist/{types.d-DC97bnjj.d.ts → types.d-C5hlNbHa.d.ts} +14 -2
  497. package/dist/{utils.d-fW-95yEh.d.mts → utils.d-JkrpS-NJ.d.mts} +1 -1
  498. package/dist/{utils.d-D-GQeEfa.d.ts → utils.d-_dvevm5s.d.ts} +1 -1
  499. package/dist/version.cjs +3 -3
  500. package/dist/version.mjs +2 -2
  501. package/dist/vite.cjs +43 -41
  502. package/dist/vite.d.mts +15 -10
  503. package/dist/vite.d.ts +15 -10
  504. package/dist/vite.mjs +42 -40
  505. package/dist/workflows.cjs +4 -4
  506. package/dist/workflows.mjs +3 -3
  507. package/package.json +9 -5
  508. package/types/images.d.ts +9 -0
  509. package/dist/analyzer-HTNXLX6N.cjs +0 -16
  510. package/dist/chunk-BTZ5O6VM.cjs +0 -14
  511. package/dist/chunk-Y6FXYEAI.mjs +0 -10
  512. package/dist/search-client-ZZLKVO5R.cjs +0 -15
  513. package/dist/session-OU7M4CIF.cjs +0 -24
  514. package/dist/{chunk-GFXKO4UW.mjs → chunk-3XTRT3MB.mjs} +48 -48
  515. package/dist/{chunk-BEXH6BGH.mjs → chunk-6JWXHPVR.mjs} +0 -0
  516. package/dist/{chunk-RL47VZ6J.mjs → chunk-C2OLXVUC.mjs} +0 -0
  517. package/dist/{chunk-YTNE4KGC.cjs → chunk-HS4JPIGR.cjs} +0 -0
  518. package/dist/{chunk-PC5OZ4YR.cjs → chunk-TCMRLW3K.cjs} +0 -0
  519. package/dist/{chunk-UOE6ZZZP.mjs → chunk-URBP6DLH.mjs} +0 -0
  520. package/dist/{chunk-AF3PNVVF.cjs → chunk-WGWWRV2M.cjs} +0 -0
  521. package/dist/{chunk-L7Y65BQU.cjs → chunk-WHEQJN4G.cjs} +48 -48
@@ -348,6 +348,15 @@ function getSpanTraceContext(span) {
348
348
  }
349
349
 
350
350
  // src/observability.ts
351
+ var FARM_TOOL_CALL_PAYLOAD = /* @__PURE__ */ Symbol.for("farm.mcp.toolCallPayload");
352
+ function _farmToolCallPayload(event) {
353
+ if (!event || typeof event !== "object") return void 0;
354
+ const payload = event[FARM_TOOL_CALL_PAYLOAD];
355
+ return payload && typeof payload === "object" ? payload : void 0;
356
+ }
357
+ function _withFarmToolCallPayload(input, payload) {
358
+ return Object.defineProperty(input, FARM_TOOL_CALL_PAYLOAD, { value: payload });
359
+ }
351
360
  var OBSERVABILITY_RUNTIME = /* @__PURE__ */ Symbol.for("@farm.js/core/observability-runtime/v1");
352
361
  var runtime2 = globalThis;
353
362
  var shared = _nullishCoalesce(runtime2[OBSERVABILITY_RUNTIME], () => ( (runtime2[OBSERVABILITY_RUNTIME] = {
@@ -406,6 +415,8 @@ function emitFarmEvent(input) {
406
415
  ...input
407
416
  };
408
417
  if (event.type === "route.redirect") event.to = event.to.replace(/[?#][\s\S]*$/, "");
418
+ const payload = _farmToolCallPayload(input);
419
+ if (payload) _withFarmToolCallPayload(event, payload);
409
420
  const traceContext = recordFarmEventTrace(event);
410
421
  if (traceContext) {
411
422
  event.traceId = traceContext.traceId;
@@ -557,4 +568,7 @@ function formatError(error) {
557
568
 
558
569
 
559
570
 
560
- exports.normalizeFarmTracingConfig = normalizeFarmTracingConfig; exports.configureFarmTracing = configureFarmTracing; exports.getFarmTraceContext = getFarmTraceContext; exports.runWithFarmSpan = runWithFarmSpan; exports.configureFarmObservability = configureFarmObservability; exports.normalizeFarmObservabilityConfig = normalizeFarmObservabilityConfig; exports.onFarmEvent = onFarmEvent; exports.resetFarmObservability = resetFarmObservability; exports.emitFarmEvent = emitFarmEvent; exports.runWithFarmRequestSpan = runWithFarmRequestSpan;
571
+
572
+
573
+
574
+ exports.normalizeFarmTracingConfig = normalizeFarmTracingConfig; exports.configureFarmTracing = configureFarmTracing; exports.getFarmTraceContext = getFarmTraceContext; exports.runWithFarmSpan = runWithFarmSpan; exports.FARM_TOOL_CALL_PAYLOAD = FARM_TOOL_CALL_PAYLOAD; exports._farmToolCallPayload = _farmToolCallPayload; exports._withFarmToolCallPayload = _withFarmToolCallPayload; exports.configureFarmObservability = configureFarmObservability; exports.normalizeFarmObservabilityConfig = normalizeFarmObservabilityConfig; exports.onFarmEvent = onFarmEvent; exports.resetFarmObservability = resetFarmObservability; exports.emitFarmEvent = emitFarmEvent; exports.runWithFarmRequestSpan = runWithFarmRequestSpan;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  API_ROUTE_METHODS
3
- } from "./chunk-KHS3T3E5.mjs";
3
+ } from "./chunk-TYHWZOA2.mjs";
4
4
 
5
5
  // src/api/mount.ts
6
6
  function mountFetchHandler(app, options = {}) {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkGC5ROI3Acjs = require('./chunk-GC5ROI3A.cjs');
3
+ var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
4
4
 
5
5
  // src/server/dev-loopback.ts
6
6
  var _net = require('net'); var _net2 = _interopRequireDefault(_net);
@@ -30,7 +30,7 @@ async function listenOnOtherLoopback(server) {
30
30
  const listening = await new Promise((resolve) => {
31
31
  const onError = (error) => {
32
32
  if (error.code === "EADDRINUSE") {
33
- _chunkGC5ROI3Acjs.logger.warn(
33
+ _chunk7U4XF76Rcjs.logger.warn(
34
34
  `Another process is listening on ${formatHost(other)}:${address.port}; the dev server answers on ${formatHost(address.address)}:${address.port} only.`
35
35
  );
36
36
  }
@@ -43,7 +43,7 @@ async function listenOnOtherLoopback(server) {
43
43
  });
44
44
  });
45
45
  if (!listening) return;
46
- loopback.on("error", (error) => _chunkGC5ROI3Acjs.logger.warn(`Dev loopback listener failed: ${String(error)}`));
46
+ loopback.on("error", (error) => _chunk7U4XF76Rcjs.logger.warn(`Dev loopback listener failed: ${String(error)}`));
47
47
  httpServer.once("close", () => loopback.close());
48
48
  }
49
49
  function formatHost(address) {
@@ -8,7 +8,7 @@ var _chunkUNJZGVPUcjs = require('./chunk-UNJZGVPU.cjs');
8
8
 
9
9
 
10
10
 
11
- var _chunk2YJ4DHTDcjs = require('./chunk-2YJ4DHTD.cjs');
11
+ var _chunk2NOHVIJ3cjs = require('./chunk-2NOHVIJ3.cjs');
12
12
 
13
13
 
14
14
  var _chunkNLBHLPEOcjs = require('./chunk-NLBHLPEO.cjs');
@@ -21,7 +21,7 @@ function isFarmMarkdownPageFile(filePath) {
21
21
  function normalizeFarmMarkdownRoutePath(pathname, routePathname) {
22
22
  const withoutExtension = pathname.replace(/\.md$/i, "");
23
23
  const normalized = withoutExtension.startsWith("/") ? withoutExtension : `/${withoutExtension}`;
24
- return _chunk2YJ4DHTDcjs._resolveFarmMarkdownIndexAlias.call(void 0, normalized.replace(/\/+$/g, "") || "/", routePathname);
24
+ return _chunk2NOHVIJ3cjs._resolveFarmMarkdownIndexAlias.call(void 0, normalized.replace(/\/+$/g, "") || "/", routePathname);
25
25
  }
26
26
  function parseMarkdownFrontmatter(source) {
27
27
  if (!source.startsWith("---")) {
@@ -209,7 +209,7 @@ async function anonymousVisitorOpensPage(options, url, targetPathname) {
209
209
  if (!PAGE_CHECK_DROPPED_HEADERS.has(name.toLowerCase())) headers.append(name, value);
210
210
  }
211
211
  headers.set("accept", "text/html");
212
- headers.set(_chunk2YJ4DHTDcjs.FARM_MARKDOWN_PAGE_CHECK_HEADER, _chunk2YJ4DHTDcjs._getFarmMarkdownPageCheckToken.call(void 0, ));
212
+ headers.set(_chunk2NOHVIJ3cjs.FARM_MARKDOWN_PAGE_CHECK_HEADER, _chunk2NOHVIJ3cjs._getFarmMarkdownPageCheckToken.call(void 0, ));
213
213
  const response = await options.renderPage(
214
214
  new Request(pageUrl, {
215
215
  method: "GET",
@@ -241,7 +241,7 @@ async function createFarmMarkdownSourceResponse(options) {
241
241
  }
242
242
  const url = new URL(options.request.url);
243
243
  const hasMarkdownExtension = url.pathname.toLowerCase().endsWith(".md");
244
- if (!hasMarkdownExtension && !_chunk2YJ4DHTDcjs.requestAcceptsMarkdown.call(void 0, options.request.headers.get("accept"))) {
244
+ if (!hasMarkdownExtension && !_chunk2NOHVIJ3cjs.requestAcceptsMarkdown.call(void 0, options.request.headers.get("accept"))) {
245
245
  return null;
246
246
  }
247
247
  const targetPathname = normalizeFarmMarkdownRoutePath(url.pathname, options.routePathname);
@@ -295,7 +295,7 @@ async function createFarmMarkdownSourceResponse(options) {
295
295
  }
296
296
  const headers = new Headers({
297
297
  "Content-Type": "text/markdown; charset=utf-8",
298
- "Content-Location": _chunk2YJ4DHTDcjs._getFarmMarkdownPath.call(void 0,
298
+ "Content-Location": _chunk2NOHVIJ3cjs._getFarmMarkdownPath.call(void 0,
299
299
  targetPathname,
300
300
  _optionalChain([options, 'access', _31 => _31.routePathname, 'optionalCall', _32 => _32(targetPathname)])
301
301
  ),
@@ -306,7 +306,7 @@ async function createFarmMarkdownSourceResponse(options) {
306
306
  if (!hasMarkdownExtension) {
307
307
  headers.set("Vary", "Accept");
308
308
  }
309
- return _chunk2YJ4DHTDcjs.createFarmMarkdownViewResponse.call(void 0, {
309
+ return _chunk2NOHVIJ3cjs.createFarmMarkdownViewResponse.call(void 0, {
310
310
  request: options.request,
311
311
  requestUrl: url,
312
312
  markdown: source.source,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createFarmMarkdownRouteModule
3
- } from "./chunk-BGUTIQII.mjs";
3
+ } from "./chunk-MUZHULW2.mjs";
4
4
 
5
5
  // src/app-markdown.ts
6
6
  import { readFile } from "fs/promises";
@@ -18,7 +18,7 @@ function secureUrl(value) {
18
18
  throw new Error("Use HTTPS or a loopback URL for Farm managed SQLite.");
19
19
  return url;
20
20
  }
21
- async function requestSqliteResource(name, operation) {
21
+ async function requestSqliteResource(name, operation, declarations) {
22
22
  const key = process.env.FARMJS_API_KEY;
23
23
  if (!key) throw new Error("Set FARMJS_API_KEY on the server to access managed SQLite.");
24
24
  const base = secureUrl(process.env.FARMJS_API_URL || "https://app.farmjs.dev");
@@ -33,7 +33,7 @@ async function requestSqliteResource(name, operation) {
33
33
  const response = await fetch(new URL("/api/storage/sqlite/" + operation, base), {
34
34
  method: operation === "token" ? "POST" : "PUT",
35
35
  headers,
36
- body: JSON.stringify({ name }),
36
+ body: JSON.stringify(operation === "provision" ? { name, declarations } : { name }),
37
37
  redirect: "error",
38
38
  signal: AbortSignal.timeout(15e3)
39
39
  });
@@ -80,7 +80,8 @@ async function connect(name, loadClient) {
80
80
  }
81
81
  var databaseAccessor = /* @__PURE__ */ Symbol.for("farmjs.storage.managedDatabase");
82
82
  var mountSchema = /* @__PURE__ */ Symbol.for("farmjs.storage.managedSchema");
83
- function managedSqliteDriver(name, loadClient, schema) {
83
+ var mountType = /* @__PURE__ */ Symbol.for("farmjs.storage.managedType");
84
+ function managedSqliteDriver(name, loadClient, schema, type, mount = name) {
84
85
  let pending;
85
86
  let initialized;
86
87
  let closed = false;
@@ -92,6 +93,12 @@ function managedSqliteDriver(name, loadClient, schema) {
92
93
  }));
93
94
  }
94
95
  function kv() {
96
+ if (type === "sql")
97
+ return Promise.reject(
98
+ new TypeError(
99
+ `Storage mount ${JSON.stringify(mount)} is a SQL mount. Use getDatabase(${JSON.stringify(mount)}) to read and write it, or add a mount with \`type: "kv"\` for key-value data.`
100
+ )
101
+ );
95
102
  return initialized ?? (initialized = client().then(async (db) => {
96
103
  await db.execute(
97
104
  "CREATE TABLE IF NOT EXISTS _farm_kv (key TEXT PRIMARY KEY, value TEXT NOT NULL)"
@@ -106,6 +113,7 @@ function managedSqliteDriver(name, loadClient, schema) {
106
113
  name: "farm-managed-sqlite",
107
114
  [databaseAccessor]: client,
108
115
  [mountSchema]: schema,
116
+ [mountType]: type,
109
117
  async hasItem(key) {
110
118
  return (await (await kv()).execute({ sql: "SELECT 1 FROM _farm_kv WHERE key=?", args: [key] })).rows.length > 0;
111
119
  },
@@ -114,6 +122,7 @@ function managedSqliteDriver(name, loadClient, schema) {
114
122
  return rows[0]?.value ?? null;
115
123
  },
116
124
  async getKeys(base = "") {
125
+ if (type === "sql") return [];
117
126
  const { rows } = await (await kv()).execute({
118
127
  sql: "SELECT key FROM _farm_kv WHERE instr(key,?)=1 ORDER BY key",
119
128
  args: [base]
@@ -130,6 +139,7 @@ function managedSqliteDriver(name, loadClient, schema) {
130
139
  await (await kv()).execute({ sql: "DELETE FROM _farm_kv WHERE key=?", args: [key] });
131
140
  },
132
141
  async clear(base = "") {
142
+ if (type === "sql") return;
133
143
  await (await kv()).execute({ sql: "DELETE FROM _farm_kv WHERE instr(key,?)=1", args: [base] });
134
144
  },
135
145
  async dispose() {
@@ -344,8 +354,10 @@ async function resolveDriver(config, mount) {
344
354
  if (!mount) throw new TypeError("Register managed SQLite in storage.mounts.");
345
355
  return managedSqliteDriver(
346
356
  managedSqliteName(mount, hosted.managed),
347
- () => loadModule("@libsql/client/http"),
348
- hosted.schema
357
+ () => import("./libsql-http-2QD224YS.mjs"),
358
+ hosted.schema,
359
+ hosted.type,
360
+ mount
349
361
  );
350
362
  }
351
363
  const driverInput = config?.driver ?? "memory";
@@ -459,20 +471,36 @@ function assertMountSchema(schema) {
459
471
  throw new TypeError("Pass a schema created with defineSchema() from @farming-labs/orm.");
460
472
  }
461
473
  }
474
+ function isSqlDriver(driver) {
475
+ return typeof driver === "string" && Object.prototype.hasOwnProperty.call(DATABASE_CONNECTORS, driver);
476
+ }
462
477
  function farmStorage(options = {}) {
463
- if (!options || typeof options !== "object" || Array.isArray(options) || Object.keys(options).some((key) => key !== "namespace" && key !== "managed" && key !== "schema"))
478
+ if (!options || typeof options !== "object" || Array.isArray(options) || Object.keys(options).some(
479
+ (key) => key !== "namespace" && key !== "managed" && key !== "schema" && key !== "type"
480
+ ))
464
481
  throw new TypeError(
465
- "Use farmStorage() or pass only the `managed`, `namespace`, and `schema` options."
482
+ 'Use farmStorage({ type: "kv" }) or farmStorage({ type: "sql" }), with optional `namespace` and `schema`.'
466
483
  );
467
484
  if (options.managed !== void 0 && options.managed !== true)
468
485
  throw new TypeError("Set `managed` to true or omit it when using farmStorage().");
469
- const managed = options.namespace === void 0 ? true : { name: options.namespace };
470
- if (managed !== true) managedSqliteName("", managed);
486
+ if (options.type !== void 0 && options.type !== "kv" && options.type !== "sql")
487
+ throw new TypeError('Set `type` to "kv" or "sql" in farmStorage().');
471
488
  assertMountSchema(options.schema);
489
+ if (options.type === "kv" && options.schema)
490
+ throw new TypeError(
491
+ 'A schema describes tables, so it needs a SQL mount. Use farmStorage({ type: "sql", schema }).'
492
+ );
493
+ return createManagedMount(options.namespace, options.schema, "farm", options.type);
494
+ }
495
+ function createManagedMount(namespace, schema, declaredDriver, type) {
496
+ const managed = namespace === void 0 ? true : { name: namespace };
497
+ if (managed !== true) managedSqliteName("", managed);
472
498
  return {
473
499
  driver: "farm-managed-sqlite",
474
500
  managed,
475
- ...options.schema && { schema: options.schema }
501
+ ...declaredDriver && { declaredDriver },
502
+ ...type && { type },
503
+ ...schema && { schema }
476
504
  };
477
505
  }
478
506
  function resolveManagedStorageMount(config) {
@@ -489,22 +517,51 @@ function resolveManagedStorageMount(config) {
489
517
  }
490
518
  const { driver, managed, ...options } = config;
491
519
  if ((managed === false || managed === void 0) && driver !== "farm-managed-sqlite") return;
492
- if (typeof driver !== "string" || !(driver === "farm-managed-sqlite" || driver === "local" || driver === "vercel-kv" || Object.prototype.hasOwnProperty.call(DATABASE_CONNECTORS, driver) || driver !== "db0" && Object.prototype.hasOwnProperty.call(builtinDrivers, driver)))
520
+ if (driver !== "farm-managed-sqlite" && !isHostedDriver(driver))
493
521
  throw new TypeError("Select a built-in storage driver to use `managed: true`.");
522
+ const declaredDriver = driver === "farm-managed-sqlite" ? options.declaredDriver : driver;
523
+ let type;
524
+ if (driver === "farm-managed-sqlite") {
525
+ type = options.type;
526
+ delete options.declaredDriver;
527
+ delete options.type;
528
+ if (declaredDriver !== void 0 && declaredDriver !== "farm" && !isHostedDriver(declaredDriver))
529
+ throw new TypeError("Use a known storage driver in the managed mount descriptor.");
530
+ if (type !== void 0 && type !== "kv" && type !== "sql")
531
+ throw new TypeError('Use `type: "kv"` or `type: "sql"` in the managed mount descriptor.');
532
+ if (type === void 0 && declaredDriver !== void 0 && declaredDriver !== "farm")
533
+ type = isSqlDriver(declaredDriver) ? "sql" : "kv";
534
+ } else {
535
+ type = isSqlDriver(driver) ? "sql" : "kv";
536
+ if ("type" in options)
537
+ throw new TypeError(
538
+ `Remove \`type\`: a managed ${String(driver)} mount always holds ${type === "sql" ? "tables" : "key-value data"}. Use farmStorage({ type }) to choose.`
539
+ );
540
+ }
494
541
  if (Object.keys(options).some((key) => key !== "namespace" && key !== "schema"))
495
542
  throw new TypeError(
496
543
  "Remove provider connection settings and driver options when using `managed: true`."
497
544
  );
498
545
  assertMountSchema(options.schema);
499
- if (managed === true)
500
- return farmStorage({
501
- namespace: options.namespace,
502
- schema: options.schema
503
- });
504
- if ((driver === "sqlite" || driver === "farm-managed-sqlite") && !("namespace" in options)) {
505
- return farmStorage({ namespace: managedSqliteName("", managed), schema: options.schema });
506
- }
507
- throw new TypeError("Set `managed` to true and use `namespace` to select a hosted resource.");
546
+ if (type === "kv" && options.schema)
547
+ throw new TypeError(
548
+ driver === "farm-managed-sqlite" ? 'A schema describes tables, so it needs a SQL mount. Use farmStorage({ type: "sql", schema }).' : `${String(driver)} stores key-value data, so its mount cannot take a schema. Use a SQL driver such as sqliteStorage({ managed: true, schema }), or farmStorage({ type: "sql", schema }).`
549
+ );
550
+ let namespace;
551
+ if (managed === true) namespace = options.namespace;
552
+ else if ((driver === "sqlite" || driver === "farm-managed-sqlite") && !("namespace" in options))
553
+ namespace = managedSqliteName("", managed);
554
+ else
555
+ throw new TypeError("Set `managed` to true and use `namespace` to select a hosted resource.");
556
+ return createManagedMount(
557
+ namespace,
558
+ options.schema,
559
+ typeof declaredDriver === "string" ? declaredDriver : void 0,
560
+ type
561
+ );
562
+ }
563
+ function isHostedDriver(driver) {
564
+ return typeof driver === "string" && (driver === "local" || driver === "vercel-kv" || Object.prototype.hasOwnProperty.call(DATABASE_CONNECTORS, driver) || driver !== "db0" && Object.prototype.hasOwnProperty.call(builtinDrivers, driver));
508
565
  }
509
566
  function providerStorage(driver) {
510
567
  function storage(options) {
@@ -539,10 +596,8 @@ function collectDriverModules(config, modules) {
539
596
  if (isStorageInstance(config)) return;
540
597
  const source = config;
541
598
  const driver = source.driver;
542
- if (typeof driver === "string") {
543
- if (resolveManagedStorageMount(config)) {
544
- modules.add("@libsql/client/http");
545
- } else if (isDatabaseDriverName(driver)) {
599
+ if (typeof driver === "string" && !resolveManagedStorageMount(config)) {
600
+ if (isDatabaseDriverName(driver)) {
546
601
  modules.add("db0");
547
602
  modules.add(DATABASE_CONNECTORS[driver].module);
548
603
  modules.add("unstorage/drivers/db0");
@@ -618,6 +673,10 @@ async function getDatabase(name, options) {
618
673
  throw new TypeError(
619
674
  "Configure a managed SQLite mount named " + JSON.stringify(name) + " before calling getDatabase()."
620
675
  );
676
+ if (driver[mountType] === "kv")
677
+ throw new TypeError(
678
+ `Storage mount ${JSON.stringify(name)} is a key-value mount. Use getStorage(${JSON.stringify(name)}) to read and write it, or add a mount with \`type: "sql"\` for tables.`
679
+ );
621
680
  const client = await driver[databaseAccessor]();
622
681
  if (options && "raw" in options) return client;
623
682
  const schema = options?.schema ?? driver[mountSchema];
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isRouteSlotSegment,
3
3
  parseInterceptionMarker
4
- } from "./chunk-RK4MGL6Q.mjs";
4
+ } from "./chunk-CYRO3WP4.mjs";
5
5
 
6
6
  // src/middleware/path.ts
7
7
  function appendMiddlewareRoutePath(routePath, directoryName) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readAliases,
3
3
  resolveFile
4
- } from "./chunk-IXC6WDMT.mjs";
4
+ } from "./chunk-KEU55O2D.mjs";
5
5
  import {
6
6
  transformFarmServerFns
7
7
  } from "./chunk-GNZIAJGB.mjs";
@@ -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 _chunk42EUEYW6cjs = require('./chunk-42EUEYW6.cjs');
3
+ var _chunkYUQUGVSVcjs = require('./chunk-YUQUGVSV.cjs');
4
4
 
5
5
 
6
6
 
@@ -54,7 +54,7 @@ function _applyFarmMobileShellClient(request, response, client, onPrivate) {
54
54
  return _chunkA25FXJ7Dcjs._withFarmResponseHeaders.call(void 0, response, (headers2) => appendVary(headers2, FARM_SHELL_HEADER));
55
55
  }
56
56
  _optionalChain([onPrivate, 'optionalCall', _8 => _8()]);
57
- const headers = new Headers(_chunk42EUEYW6cjs._withFarmGuardedResponseCache.call(void 0, response).headers);
57
+ const headers = new Headers(_chunkYUQUGVSVcjs._withFarmGuardedResponseCache.call(void 0, response).headers);
58
58
  appendVary(headers, FARM_SHELL_HEADER);
59
59
  headers.delete("content-length");
60
60
  headers.delete("etag");
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQ2EKSSEGcjs = require('./chunk-Q2EKSSEG.cjs');
3
+ var _chunkHEDGTXXBcjs = require('./chunk-HEDGTXXB.cjs');
4
4
 
5
5
 
6
- var _chunkL7Y65BQUcjs = require('./chunk-L7Y65BQU.cjs');
6
+ var _chunkWHEQJN4Gcjs = require('./chunk-WHEQJN4G.cjs');
7
7
 
8
8
 
9
9
  var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
10
10
 
11
11
  // src/navigation.ts
12
12
  function useRouter2() {
13
- const router = _chunkQ2EKSSEGcjs.useRouter.call(void 0, );
13
+ const router = _chunkHEDGTXXBcjs.useRouter.call(void 0, );
14
14
  return {
15
15
  push: router.push,
16
16
  replace: router.replace,
@@ -18,19 +18,19 @@ function useRouter2() {
18
18
  forward: router.forward,
19
19
  refresh() {
20
20
  if (typeof window === "undefined") return Promise.resolve();
21
- return _chunkL7Y65BQUcjs.getRouter.call(void 0, ).refresh();
21
+ return _chunkWHEQJN4Gcjs.getRouter.call(void 0, ).refresh();
22
22
  },
23
23
  prefetch(href) {
24
24
  if (typeof window === "undefined") return Promise.resolve();
25
- return _chunkL7Y65BQUcjs.getRouter.call(void 0, ).prefetch(_chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href));
25
+ return _chunkWHEQJN4Gcjs.getRouter.call(void 0, ).prefetch(_chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href));
26
26
  }
27
27
  };
28
28
  }
29
29
  function usePathname() {
30
- return _chunkQ2EKSSEGcjs.useRouter.call(void 0, ).pathname;
30
+ return _chunkHEDGTXXBcjs.useRouter.call(void 0, ).pathname;
31
31
  }
32
32
  function useSearchParams() {
33
- return _chunkQ2EKSSEGcjs.useRouter.call(void 0, ).searchParams;
33
+ return _chunkHEDGTXXBcjs.useRouter.call(void 0, ).searchParams;
34
34
  }
35
35
 
36
36
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-Z3QXQN4U.mjs";
3
+ } from "./chunk-U6GMCDRS.mjs";
4
4
 
5
5
  // src/server/dev-loopback.ts
6
6
  import net from "net";
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-SMUW7UST.mjs";
4
4
  import {
5
5
  getFarmIntegrationPluginServerRuntime
6
- } from "./chunk-BEXH6BGH.mjs";
6
+ } from "./chunk-6JWXHPVR.mjs";
7
7
  import {
8
8
  formatOptionalPeerInstallHint,
9
9
  isMissingPackageError
10
10
  } from "./chunk-NR63PD3P.mjs";
11
11
  import {
12
12
  logger
13
- } from "./chunk-Z3QXQN4U.mjs";
13
+ } from "./chunk-U6GMCDRS.mjs";
14
14
 
15
15
  // src/client-plugin-build.ts
16
16
  import fs from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FARM_VERSION
3
- } from "./chunk-SMYDCZBW.mjs";
3
+ } from "./chunk-JGEN2FIT.mjs";
4
4
 
5
5
  // src/deployment-environment.ts
6
6
  function isFarmProductionDeploymentEnvironment(env = process.env) {
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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
3
 
4
- var _chunkSFSTZ7TBcjs = require('./chunk-SFSTZ7TB.cjs');
4
+ var _chunk7DD5TNPScjs = require('./chunk-7DD5TNPS.cjs');
5
5
 
6
6
 
7
- var _chunk7EOSFIPNcjs = require('./chunk-7EOSFIPN.cjs');
7
+ var _chunkA4WWKG2Bcjs = require('./chunk-A4WWKG2B.cjs');
8
8
 
9
9
 
10
10
 
@@ -29,7 +29,7 @@ var _chunkAQIRXBBYcjs = require('./chunk-AQIRXBBY.cjs');
29
29
  var _chunkQMR2TUVZcjs = require('./chunk-QMR2TUVZ.cjs');
30
30
 
31
31
 
32
- var _chunkPG7J7XYTcjs = require('./chunk-PG7J7XYT.cjs');
32
+ var _chunkQ4TRGTO7cjs = require('./chunk-Q4TRGTO7.cjs');
33
33
 
34
34
 
35
35
  var _chunkGBMWLDCCcjs = require('./chunk-GBMWLDCC.cjs');
@@ -44,7 +44,7 @@ var _chunkXRRHPBG2cjs = require('./chunk-XRRHPBG2.cjs');
44
44
  var _chunkCYOTNHDFcjs = require('./chunk-CYOTNHDF.cjs');
45
45
 
46
46
 
47
- var _chunkIXO6O2ELcjs = require('./chunk-IXO6O2EL.cjs');
47
+ var _chunkVGVRGGP4cjs = require('./chunk-VGVRGGP4.cjs');
48
48
 
49
49
  // src/ssg.ts
50
50
  var _fs = require('fs'); var fs = _interopRequireWildcard(_fs);
@@ -424,7 +424,7 @@ async function collectSSGPages(routes, loadModule, options = {}) {
424
424
  continue;
425
425
  }
426
426
  const source = await _promises.readFile.call(void 0, route.filePath, "utf8").catch(() => void 0);
427
- if (_optionalChain([options, 'access', _41 => _41.docsAdapterRoutes, 'optionalAccess', _42 => _42.owns, 'call', _43 => _43(route.path)]) && _chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, route.filePath)) {
427
+ if (_optionalChain([options, 'access', _41 => _41.docsAdapterRoutes, 'optionalAccess', _42 => _42.owns, 'call', _43 => _43(route.path)]) && _chunkQ4TRGTO7cjs.isFarmMarkdownPageFile.call(void 0, route.filePath)) {
428
428
  ssrRoutes.push(route.path);
429
429
  if (options.suggestStaticRendering !== false && analyzeStaticRouteCandidate(null, source, { isDynamic: route.isDynamic }).candidate) {
430
430
  staticCandidateDocsPages += 1;
@@ -814,7 +814,7 @@ async function generateFarmTypeArtifacts(options) {
814
814
  componentExtensions: options.componentExtensions,
815
815
  sourceRoots
816
816
  };
817
- unifiedSections.push(await _chunkSFSTZ7TBcjs.createRouteTypeDeclarations.call(void 0, routeOptions, unifiedTypesPath));
817
+ unifiedSections.push(await _chunk7DD5TNPScjs.createRouteTypeDeclarations.call(void 0, routeOptions, unifiedTypesPath));
818
818
  result.routeTypesPath = unifiedTypesPath;
819
819
  } else if (shouldGenerateRoutes) {
820
820
  const routeOptions = {
@@ -828,18 +828,18 @@ async function generateFarmTypeArtifacts(options) {
828
828
  };
829
829
  if (options.check) {
830
830
  const routeTypesPath = resolveGeneratedPath(root, srcDir, options.routeTypesOutFile);
831
- const content = await _chunkSFSTZ7TBcjs.createRouteTypeDeclarations.call(void 0, routeOptions, routeTypesPath);
831
+ const content = await _chunk7DD5TNPScjs.createRouteTypeDeclarations.call(void 0, routeOptions, routeTypesPath);
832
832
  checkGeneratedFile(routeTypesPath, content, result.stalePaths);
833
833
  result.routeTypesPath = routeTypesPath;
834
834
  } else {
835
- result.routeTypesPath = await _chunkSFSTZ7TBcjs.generateRouteTypes.call(void 0, routeOptions);
835
+ result.routeTypesPath = await _chunk7DD5TNPScjs.generateRouteTypes.call(void 0, routeOptions);
836
836
  }
837
837
  }
838
838
  if (shouldGenerateApi) {
839
- const generator = new (0, _chunk7EOSFIPNcjs.APITypeGenerator)(appDirs);
839
+ const generator = new (0, _chunkA4WWKG2Bcjs.APITypeGenerator)(appDirs);
840
840
  const apiRoutes = generator.scanAPIRoutes();
841
841
  const apiTypesPath = options.apiTypesOutFile ? _path.resolve.call(void 0, root, options.apiTypesOutFile) : _path.join.call(void 0, root, srcDir, "lib", "api.generated.ts");
842
- const pluginRoutes = _chunkIXO6O2ELcjs.resolvePluginRoutes.call(void 0,
842
+ const pluginRoutes = _chunkVGVRGGP4cjs.resolvePluginRoutes.call(void 0,
843
843
  _optionalChain([options, 'access', _53 => _53.plugins, 'optionalAccess', _54 => _54.filter, 'call', _55 => _55((plugin) => plugin.name !== _chunk4EBC7EMWcjs.FARM_NATIVE_SERVER_FN_PLUGIN)])
844
844
  );
845
845
  const configFiles = [
@@ -947,7 +947,7 @@ async function generateFarmTypeArtifacts(options) {
947
947
  if (syncModelTypes) unifiedSections.push(syncModelTypes);
948
948
  }
949
949
  if (shouldRefreshUnifiedTypes && _fs.existsSync.call(void 0, _path.join.call(void 0, root, srcDir, "native"))) {
950
- const [{ scanFarmMobileAppModules }, { createFarmNativeModuleTypeDeclarations }] = await Promise.all([import("./modules-QTP7WJPD.cjs"), import("./native-specs-5OLED4MM.cjs")]);
950
+ const [{ scanFarmMobileAppModules }, { createFarmNativeModuleTypeDeclarations }] = await Promise.all([import("./modules-KDHFBQ6L.cjs"), import("./native-specs-JDPH26AO.cjs")]);
951
951
  const appModules = scanFarmMobileAppModules({ root, srcDir });
952
952
  const nativeTypes = appModules && createFarmNativeModuleTypeDeclarations(appModules.specs, { root });
953
953
  if (nativeTypes) unifiedSections.push(nativeTypes);
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkQYOAGT3Ecjs = require('./chunk-QYOAGT3E.cjs');
4
+ var _chunk2BEGVSDFcjs = require('./chunk-2BEGVSDF.cjs');
5
5
 
6
6
  // src/middleware/path.ts
7
7
  function appendMiddlewareRoutePath(routePath, directoryName) {
8
- const marker = _chunkQYOAGT3Ecjs.parseInterceptionMarker.call(void 0, directoryName);
8
+ const marker = _chunk2BEGVSDFcjs.parseInterceptionMarker.call(void 0, directoryName);
9
9
  if (marker) {
10
10
  const owner = routePath.split("/").filter(Boolean);
11
11
  const parts = [
@@ -14,7 +14,7 @@ function appendMiddlewareRoutePath(routePath, directoryName) {
14
14
  ];
15
15
  return `/${parts.join("/")}`;
16
16
  }
17
- if (directoryName.startsWith("(") && directoryName.endsWith(")") || _chunkQYOAGT3Ecjs.isRouteSlotSegment.call(void 0, directoryName)) {
17
+ if (directoryName.startsWith("(") && directoryName.endsWith(")") || _chunk2BEGVSDFcjs.isRouteSlotSegment.call(void 0, directoryName)) {
18
18
  return routePath;
19
19
  }
20
20
  return routePath === "/" ? `/${directoryName}` : `${routePath}/${directoryName}`;
@@ -2,10 +2,10 @@ import {
2
2
  getFarmAgentPagePublicPath,
3
3
  isFarmMetadataNoIndex,
4
4
  resolveFarmAgentOrigin
5
- } from "./chunk-S7QEQCVV.mjs";
5
+ } from "./chunk-XGL42MQ7.mjs";
6
6
  import {
7
7
  matchesFarmMarkdownRoutePattern
8
- } from "./chunk-R5X7FDOG.mjs";
8
+ } from "./chunk-YU2MNIIY.mjs";
9
9
  import {
10
10
  normalizeFarmTrailingSlashPathname
11
11
  } from "./chunk-4O26BPUY.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 _chunkRFXEQYPHcjs = require('./chunk-RFXEQYPH.cjs');
11
+ var _chunkNW3DL2PMcjs = require('./chunk-NW3DL2PM.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 _chunkRFXEQYPHcjs.resolveStorageRuntimeClient.call(void 0, _nullishCoalesce(options.storage, () => ( _optionalChain([options, 'access', _ => _.config, 'optionalAccess', _2 => _2.storage]))));
34
+ return _chunkNW3DL2PMcjs.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)) {
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-LLZSYFOM.mjs";
11
11
  import {
12
12
  _readFarmRenderedHtml
13
- } from "./chunk-R5X7FDOG.mjs";
13
+ } from "./chunk-YU2MNIIY.mjs";
14
14
 
15
15
  // src/mobile/native-tree.ts
16
16
  var URLENCODED = "application/x-www-form-urlencoded";