@farm.js/core 0.1.78 → 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 (363) hide show
  1. package/dist/{agent-mcp-handler-EDJNU224.mjs → agent-mcp-handler-GDY5CPPW.mjs} +5 -5
  2. package/dist/{agent-mcp-handler-LNBYLRTZ.cjs → agent-mcp-handler-IUL6OPC3.cjs} +6 -6
  3. package/dist/{agent-mcp.d-BErtnhV2.d.ts → agent-mcp.d-BPa5n0ld.d.ts} +1 -1
  4. package/dist/{agent-mcp.d-CYHfcjur.d.mts → agent-mcp.d-DOP95Jxm.d.mts} +1 -1
  5. package/dist/agent-runtime.cjs +2 -2
  6. package/dist/agent-runtime.d.mts +4 -4
  7. package/dist/agent-runtime.d.ts +4 -4
  8. package/dist/agent-runtime.mjs +1 -1
  9. package/dist/{analyzer-M2BG6QYU.mjs → analyzer-F7CWE5VA.mjs} +2 -2
  10. package/dist/analyzer-I7RBBQ65.cjs +16 -0
  11. package/dist/api/node.cjs +6 -6
  12. package/dist/api/node.d.mts +6 -6
  13. package/dist/api/node.d.ts +6 -6
  14. package/dist/api/node.mjs +5 -5
  15. package/dist/api/route-manager.cjs +8 -8
  16. package/dist/api/route-manager.d.mts +6 -6
  17. package/dist/api/route-manager.d.ts +6 -6
  18. package/dist/api/route-manager.mjs +7 -7
  19. package/dist/api/runtime.cjs +5 -5
  20. package/dist/api/runtime.d.mts +5 -5
  21. package/dist/api/runtime.d.ts +5 -5
  22. package/dist/api/runtime.mjs +4 -4
  23. package/dist/api.cjs +10 -10
  24. package/dist/api.d.mts +7 -7
  25. package/dist/api.d.ts +7 -7
  26. package/dist/api.mjs +9 -9
  27. package/dist/{app-manifest.d-6NCkLQ1y.d.mts → app-manifest.d-9UD6BznX.d.mts} +1 -1
  28. package/dist/{app-manifest.d-DuqLBcmi.d.ts → app-manifest.d-CO6Iu0Hx.d.ts} +1 -1
  29. package/dist/app-markdown.cjs +5 -5
  30. package/dist/app-markdown.d.mts +5 -5
  31. package/dist/app-markdown.d.ts +5 -5
  32. package/dist/app-markdown.mjs +4 -4
  33. package/dist/{app.d-Dk2HkvPh.d.mts → app.d-DXeRWZK7.d.mts} +4 -4
  34. package/dist/{app.d-Bz6vYBFF.d.ts → app.d-DwX1ePhs.d.ts} +4 -4
  35. package/dist/cache.cjs +3 -3
  36. package/dist/cache.mjs +2 -2
  37. package/dist/{chunk-QYOAGT3E.cjs → chunk-2BEGVSDF.cjs} +6 -5
  38. package/dist/{chunk-4SLHSODZ.cjs → chunk-2FK47RRZ.cjs} +13 -13
  39. package/dist/{chunk-2YJ4DHTD.cjs → chunk-2NOHVIJ3.cjs} +2 -2
  40. package/dist/{chunk-GDM3ZD2O.cjs → chunk-2OFP3IVA.cjs} +5 -1
  41. package/dist/{chunk-B3IRRANH.mjs → chunk-2RRTOKRZ.mjs} +1 -1
  42. package/dist/{chunk-PNWRH6TR.mjs → chunk-3JQBQG7K.mjs} +4 -4
  43. package/dist/{chunk-H76C5AOU.mjs → chunk-3K2E55BJ.mjs} +2 -2
  44. package/dist/{chunk-VJ6L7TII.cjs → chunk-3SPECQXI.cjs} +31 -20
  45. package/dist/{chunk-R77D7TCZ.mjs → chunk-44G4XHEL.mjs} +13 -6
  46. package/dist/{chunk-6XDDE7M6.cjs → chunk-4H4ZXUNB.cjs} +3 -3
  47. package/dist/{chunk-LIC6CMLB.mjs → chunk-4MIDUSIX.mjs} +13 -13
  48. package/dist/{chunk-F4ID7BGO.cjs → chunk-4OFWG4IK.cjs} +7 -7
  49. package/dist/{chunk-VRI43FDN.mjs → chunk-4WXNTAOM.mjs} +1 -1
  50. package/dist/{chunk-5KISFWD2.cjs → chunk-5OAN7BG5.cjs} +12 -12
  51. package/dist/{chunk-DPBQRDWW.cjs → chunk-5VDJEKGK.cjs} +3 -3
  52. package/dist/{chunk-CYNQPKA4.cjs → chunk-5ZHC6QGD.cjs} +2 -2
  53. package/dist/{chunk-ALEUMLJN.mjs → chunk-67JTJCAS.mjs} +3 -2
  54. package/dist/{chunk-CBP7AKZH.mjs → chunk-6GJZJAED.mjs} +1 -1
  55. package/dist/{chunk-K3ZELA6U.cjs → chunk-7DD5TNPS.cjs} +8 -8
  56. package/dist/{chunk-GC5ROI3A.cjs → chunk-7U4XF76R.cjs} +1 -1
  57. package/dist/{chunk-62DZHPDK.cjs → chunk-7YLDUB4R.cjs} +10 -10
  58. package/dist/{chunk-ZEWIWAS2.mjs → chunk-A5D3UMLJ.mjs} +1 -1
  59. package/dist/{chunk-NNGBTJCX.cjs → chunk-ANZLZNNX.cjs} +83 -25
  60. package/dist/{chunk-CSAIIMY3.mjs → chunk-ATISIC6G.mjs} +1 -1
  61. package/dist/{chunk-ZCYGYIC2.cjs → chunk-AXA2BSX3.cjs} +2 -2
  62. package/dist/{chunk-BNCKXPCU.cjs → chunk-BIAGSYIZ.cjs} +30 -30
  63. package/dist/{chunk-X2SEYK7I.mjs → chunk-BPWTSPK6.mjs} +3 -3
  64. package/dist/{chunk-LMXGCFAM.cjs → chunk-CCMP4JD2.cjs} +1 -1
  65. package/dist/{chunk-JHZ6HULQ.cjs → chunk-CGIVCGH5.cjs} +2 -2
  66. package/dist/{chunk-ERT6HQAI.mjs → chunk-CNDBLUKI.mjs} +2 -2
  67. package/dist/{chunk-OGVOKAQU.mjs → chunk-COTFX4GT.mjs} +1 -1
  68. package/dist/{chunk-RK4MGL6Q.mjs → chunk-CYRO3WP4.mjs} +4 -3
  69. package/dist/{chunk-2G6JPLSL.cjs → chunk-DVHFIETW.cjs} +25 -18
  70. package/dist/{chunk-F35C3TJZ.mjs → chunk-E4E4Y5FD.mjs} +1 -1
  71. package/dist/{chunk-VCW6BR6U.mjs → chunk-EG5YBYHO.mjs} +2 -2
  72. package/dist/{chunk-2DA7CLY7.mjs → chunk-EILUVBKS.mjs} +14 -0
  73. package/dist/{chunk-XT2CHTDN.mjs → chunk-EY7ED5UW.mjs} +3 -3
  74. package/dist/{chunk-ZO6TOLHL.mjs → chunk-FS55CNTC.mjs} +1 -1
  75. package/dist/{chunk-DD2ANOEF.cjs → chunk-G4SZC2WH.cjs} +589 -472
  76. package/dist/{chunk-H5OVJHXY.cjs → chunk-GAWSWJJ2.cjs} +27 -27
  77. package/dist/{chunk-CKNZJFK5.cjs → chunk-GBESKA76.cjs} +3 -3
  78. package/dist/{chunk-EBFTAVGD.mjs → chunk-GBW5DU7V.mjs} +327 -210
  79. package/dist/{chunk-OVUU2RCQ.mjs → chunk-HD5FLXP2.mjs} +1 -1
  80. package/dist/{chunk-Q2EKSSEG.cjs → chunk-HEDGTXXB.cjs} +14 -14
  81. package/dist/{chunk-5QZT2EQN.cjs → chunk-HNUBRUFQ.cjs} +2 -2
  82. package/dist/{chunk-JA6RML7C.mjs → chunk-HR4N2K4V.mjs} +2 -2
  83. package/dist/{chunk-6D3CJFNU.cjs → chunk-HR5GU4UU.cjs} +7 -7
  84. package/dist/{chunk-SX535SU5.cjs → chunk-IJPRCQHW.cjs} +10 -10
  85. package/dist/{chunk-VRJAMU34.mjs → chunk-JGEN2FIT.mjs} +1 -1
  86. package/dist/{chunk-QES76U42.mjs → chunk-K3XKEZR6.mjs} +3 -3
  87. package/dist/{chunk-LPXJEZJK.mjs → chunk-KCJBIWBM.mjs} +2 -2
  88. package/dist/{chunk-7JTVN6IJ.mjs → chunk-KEU55O2D.mjs} +1 -1
  89. package/dist/{chunk-5REIO5DT.mjs → chunk-KKVRWNDH.mjs} +3 -3
  90. package/dist/{chunk-NSNQLBHR.cjs → chunk-KMGHXIDA.cjs} +2 -2
  91. package/dist/{chunk-Z2FFLTF5.mjs → chunk-LTXKRIST.mjs} +2 -2
  92. package/dist/{chunk-F7PKUP6P.cjs → chunk-LVGB5PYK.cjs} +27 -27
  93. package/dist/{chunk-7RQ5KAK6.mjs → chunk-MDEFTF63.mjs} +69 -14
  94. package/dist/{chunk-IWGGRXD2.cjs → chunk-MHKPXX3J.cjs} +2 -2
  95. package/dist/{chunk-5DREJN4G.cjs → chunk-MQOHYV6L.cjs} +15 -15
  96. package/dist/{chunk-BGUTIQII.mjs → chunk-MUZHULW2.mjs} +1 -1
  97. package/dist/{chunk-WGNGM6MJ.mjs → chunk-MZ5QGWRW.mjs} +2 -2
  98. package/dist/{chunk-DZZHTMWM.cjs → chunk-N3H7UPBM.cjs} +3 -2
  99. package/dist/{chunk-WJ4NUY2H.mjs → chunk-NJ4OASLP.mjs} +4 -4
  100. package/dist/{chunk-EVVV2XZ2.cjs → chunk-NW3DL2PM.cjs} +53 -7
  101. package/dist/{chunk-WRWJ7IWT.cjs → chunk-OLKYHTLN.cjs} +5 -5
  102. package/dist/{chunk-EVIWKPJV.cjs → chunk-PLJMEUAN.cjs} +15 -1
  103. package/dist/{chunk-EMTN5ABC.mjs → chunk-POVHO46S.mjs} +1 -1
  104. package/dist/{chunk-X3Y6JWJG.cjs → chunk-PWMJBCAN.cjs} +3 -3
  105. package/dist/{chunk-PG7J7XYT.cjs → chunk-Q4TRGTO7.cjs} +6 -6
  106. package/dist/{chunk-KUXEII7V.mjs → chunk-Q4YEAWUK.mjs} +1 -1
  107. package/dist/{chunk-IGE5BAWK.mjs → chunk-QBJ6N5MT.mjs} +53 -7
  108. package/dist/{chunk-PKXGFQZS.mjs → chunk-QD34VE4N.mjs} +1 -1
  109. package/dist/{chunk-S6RUJRWI.mjs → chunk-QHAISITM.mjs} +1 -1
  110. package/dist/{chunk-VJI2LWTL.cjs → chunk-RFNQTQ44.cjs} +2 -2
  111. package/dist/{chunk-TZ2YPXLB.cjs → chunk-RLCOWWE5.cjs} +7 -7
  112. package/dist/{chunk-IG2JE6WJ.mjs → chunk-RLEAVG6G.mjs} +1 -1
  113. package/dist/{chunk-VO5XDZHK.mjs → chunk-RPA45OQS.mjs} +2 -2
  114. package/dist/{chunk-A37D6LOS.mjs → chunk-RQBGHHOQ.mjs} +1 -1
  115. package/dist/{chunk-BZJYPIFZ.cjs → chunk-SDICLSQU.cjs} +8 -8
  116. package/dist/{chunk-FE6KYDHC.cjs → chunk-SHDCKRP4.cjs} +3 -3
  117. package/dist/{chunk-DUSTJ6A5.mjs → chunk-SLEHAGGV.mjs} +2 -2
  118. package/dist/{chunk-26CNCIFI.cjs → chunk-T3SMMLSB.cjs} +2 -2
  119. package/dist/{chunk-K6DXKHFE.mjs → chunk-TE7AX6HB.mjs} +1 -1
  120. package/dist/{chunk-LJKTJNOF.cjs → chunk-TS3ZHJN5.cjs} +3 -3
  121. package/dist/{chunk-KHS3T3E5.mjs → chunk-TYHWZOA2.mjs} +1 -1
  122. package/dist/{chunk-Z3QXQN4U.mjs → chunk-U6GMCDRS.mjs} +1 -1
  123. package/dist/{chunk-URQW27KO.mjs → chunk-UBLKPREL.mjs} +1 -1
  124. package/dist/{chunk-DD22NQFX.cjs → chunk-UGLTOLTJ.cjs} +2 -2
  125. package/dist/{chunk-PE2LEWXA.mjs → chunk-UJPE75GF.mjs} +1 -1
  126. package/dist/{chunk-6ZFGWB75.cjs → chunk-UWOCYINY.cjs} +4 -4
  127. package/dist/{chunk-E7V2GYBP.mjs → chunk-V73Y4UBL.mjs} +67 -9
  128. package/dist/{chunk-G7B6NU4X.cjs → chunk-VFMHE5D3.cjs} +3 -3
  129. package/dist/{chunk-IXO6O2EL.cjs → chunk-VGVRGGP4.cjs} +2 -2
  130. package/dist/{chunk-YRXPDKMM.cjs → chunk-W53Z4WDI.cjs} +8 -8
  131. package/dist/{chunk-47R7CX4A.mjs → chunk-WBPVLCNE.mjs} +1 -1
  132. package/dist/{chunk-4VLXQ55O.cjs → chunk-WIZRYFB2.cjs} +3 -3
  133. package/dist/{chunk-NB2ZEBIS.cjs → chunk-WJ2O2MPP.cjs} +287 -288
  134. package/dist/{chunk-HVMQAVZK.cjs → chunk-X4TSMQWF.cjs} +333 -303
  135. package/dist/{chunk-DASQJ5UD.mjs → chunk-XF7MJSUS.mjs} +1 -1
  136. package/dist/{chunk-S7QEQCVV.mjs → chunk-XGL42MQ7.mjs} +1 -1
  137. package/dist/{chunk-YN7G22MP.cjs → chunk-XKUKWMGX.cjs} +3 -3
  138. package/dist/{chunk-FOULIN4S.cjs → chunk-XY5OZQF6.cjs} +2 -2
  139. package/dist/{chunk-RIMEFQYO.mjs → chunk-XZBBKZGW.mjs} +73 -74
  140. package/dist/{chunk-ZJGFAW5U.mjs → chunk-YHHOTKUT.mjs} +5 -1
  141. package/dist/{chunk-A7EJATEW.mjs → chunk-YN3YMSKD.mjs} +3 -3
  142. package/dist/{chunk-PDACTAVX.mjs → chunk-YOVSWY2E.mjs} +1 -1
  143. package/dist/{chunk-R5X7FDOG.mjs → chunk-YU2MNIIY.mjs} +1 -1
  144. package/dist/{chunk-42EUEYW6.cjs → chunk-YUQUGVSV.cjs} +8 -8
  145. package/dist/{chunk-KZ5BOWJS.cjs → chunk-Z4SMFUZ7.cjs} +28 -28
  146. package/dist/{chunk-MBD34AS5.cjs → chunk-Z5BANEQD.cjs} +6 -6
  147. package/dist/{chunk-AHGOHPRN.mjs → chunk-ZDYYZX73.mjs} +60 -30
  148. package/dist/{chunk-4PWGLPL6.mjs → chunk-ZIEO3DQ3.mjs} +26 -15
  149. package/dist/{chunk-XGS76V7L.cjs → chunk-ZPEZXQTM.cjs} +22 -22
  150. package/dist/{chunk-ODYKCC6W.cjs → chunk-ZVSQN7NC.cjs} +135 -80
  151. package/dist/{cli-runtime.d-BG9q2_vC.d.ts → cli-runtime.d-8BhZy_wr.d.ts} +7 -6
  152. package/dist/{cli-runtime.d-CGMGs1Zz.d.mts → cli-runtime.d-DPNTN-JV.d.mts} +7 -6
  153. package/dist/client/lifecycle.d.mts +1 -1
  154. package/dist/client/lifecycle.d.ts +1 -1
  155. package/dist/{client-component.d-CdsG1E7p.d.mts → client-component.d-CMCdyAr8.d.mts} +1 -1
  156. package/dist/{client-component.d-B84GPb_u.d.ts → client-component.d-CkDcob6D.d.ts} +1 -1
  157. package/dist/{client-plugins.d-FptsHgls.d.ts → client-plugins.d-BYIovYqX.d.ts} +4 -4
  158. package/dist/{client-plugins.d-DX-iCJWE.d.mts → client-plugins.d-WcMwOZGZ.d.mts} +4 -4
  159. package/dist/client-plugins.d.mts +4 -4
  160. package/dist/client-plugins.d.ts +4 -4
  161. package/dist/client.cjs +3 -3
  162. package/dist/client.d.mts +9 -9
  163. package/dist/client.d.ts +9 -9
  164. package/dist/client.mjs +2 -2
  165. package/dist/config.d.mts +4 -4
  166. package/dist/config.d.ts +4 -4
  167. package/dist/cron.cjs +3 -3
  168. package/dist/cron.mjs +2 -2
  169. package/dist/desktop.d.mts +5 -5
  170. package/dist/desktop.d.ts +5 -5
  171. package/dist/{devtools-7P3OUNLV.mjs → devtools-F3FDFV26.mjs} +10 -10
  172. package/dist/{devtools-TMATFNUY.cjs → devtools-JJOYTIMS.cjs} +12 -12
  173. package/dist/docs.cjs +14 -14
  174. package/dist/docs.d.mts +6 -6
  175. package/dist/docs.d.ts +6 -6
  176. package/dist/docs.mjs +13 -13
  177. package/dist/environment/vite.cjs +5 -5
  178. package/dist/environment/vite.d.mts +9 -0
  179. package/dist/environment/vite.d.ts +9 -0
  180. package/dist/environment/vite.mjs +4 -4
  181. package/dist/{handler.d-Cy3XbY_W.d.ts → handler.d-BwdOyc9x.d.ts} +1 -1
  182. package/dist/{handler.d-DSwLTpa5.d.mts → handler.d-s3IM6pbJ.d.mts} +1 -1
  183. package/dist/{headers.d-DiL9YTH3.d.mts → headers.d-BR-OXrqQ.d.mts} +1 -1
  184. package/dist/{headers.d-Qbjo38a0.d.ts → headers.d-CAW4wPey.d.ts} +1 -1
  185. package/dist/index.cjs +65 -59
  186. package/dist/{index.d-CqQKX3s6.d.mts → index.d-BEVK61zS.d.mts} +1 -1
  187. package/dist/{index.d-OccJoC6I.d.ts → index.d-ah2c89Wu.d.ts} +1 -1
  188. package/dist/index.d.mts +25 -25
  189. package/dist/index.d.ts +25 -25
  190. package/dist/index.mjs +67 -61
  191. package/dist/integrations/orm.cjs +3 -3
  192. package/dist/integrations/orm.d.mts +4 -4
  193. package/dist/integrations/orm.d.ts +4 -4
  194. package/dist/integrations/orm.mjs +2 -2
  195. package/dist/integrations.cjs +2 -2
  196. package/dist/integrations.d.mts +4 -4
  197. package/dist/integrations.d.ts +4 -4
  198. package/dist/integrations.mjs +1 -1
  199. package/dist/internal/app-markdown-runtime.cjs +4 -4
  200. package/dist/internal/app-markdown-runtime.d.mts +5 -5
  201. package/dist/internal/app-markdown-runtime.d.ts +5 -5
  202. package/dist/internal/app-markdown-runtime.mjs +3 -3
  203. package/dist/internal/build-runtime.cjs +47 -47
  204. package/dist/internal/build-runtime.d.mts +7 -7
  205. package/dist/internal/build-runtime.d.ts +7 -7
  206. package/dist/internal/build-runtime.mjs +46 -46
  207. package/dist/internal/cli-runtime.cjs +29 -26
  208. package/dist/internal/cli-runtime.d.mts +11 -11
  209. package/dist/internal/cli-runtime.d.ts +11 -11
  210. package/dist/internal/cli-runtime.mjs +28 -25
  211. package/dist/internal/client-error-overlay.cjs +4 -4
  212. package/dist/internal/client-error-overlay.mjs +1 -1
  213. package/dist/internal/client-runtime.cjs +48 -11
  214. package/dist/internal/client-runtime.d.mts +17 -21
  215. package/dist/internal/client-runtime.d.ts +17 -21
  216. package/dist/internal/client-runtime.mjs +37 -0
  217. package/dist/internal/compression-runtime.d.mts +4 -4
  218. package/dist/internal/compression-runtime.d.ts +4 -4
  219. package/dist/internal/config-runtime.cjs +12 -12
  220. package/dist/internal/config-runtime.d.mts +6 -6
  221. package/dist/internal/config-runtime.d.ts +6 -6
  222. package/dist/internal/config-runtime.mjs +11 -11
  223. package/dist/internal/infra-analytics-runtime.cjs +10 -10
  224. package/dist/internal/infra-analytics-runtime.mjs +8 -8
  225. package/dist/internal/islands-boot.cjs +33 -5
  226. package/dist/internal/islands-boot.d.mts +19 -1
  227. package/dist/internal/islands-boot.d.ts +19 -1
  228. package/dist/internal/islands-boot.mjs +32 -4
  229. package/dist/internal/native-server-fns.cjs +4 -4
  230. package/dist/internal/native-server-fns.mjs +3 -3
  231. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  232. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  233. package/dist/internal/production-runtime.cjs +26 -26
  234. package/dist/internal/production-runtime.d.mts +14 -13
  235. package/dist/internal/production-runtime.d.ts +14 -13
  236. package/dist/internal/production-runtime.mjs +27 -27
  237. package/dist/internal/spa-router.cjs +44 -0
  238. package/dist/internal/spa-router.d.mts +41 -0
  239. package/dist/internal/spa-router.d.ts +41 -0
  240. package/dist/internal/spa-router.mjs +44 -0
  241. package/dist/internal/start-manifest.d.mts +4 -4
  242. package/dist/internal/start-manifest.d.ts +4 -4
  243. package/dist/internal/vercel-edge-middleware.cjs +3 -3
  244. package/dist/internal/vercel-edge-middleware.mjs +2 -2
  245. package/dist/{lifecycle.d-VzcXyEyn.d.ts → lifecycle.d-OtGWAvJT.d.mts} +1 -1
  246. package/dist/{lifecycle.d-VzcXyEyn.d.mts → lifecycle.d-OtGWAvJT.d.ts} +1 -1
  247. package/dist/markdown.cjs +3 -3
  248. package/dist/markdown.d.mts +4 -4
  249. package/dist/markdown.d.ts +4 -4
  250. package/dist/markdown.mjs +2 -2
  251. package/dist/middleware.cjs +8 -8
  252. package/dist/middleware.d.mts +4 -4
  253. package/dist/middleware.d.ts +4 -4
  254. package/dist/middleware.mjs +7 -7
  255. package/dist/{mount.d-CPzqOm-a.d.ts → mount.d-DcoPFqv5.d.ts} +1 -1
  256. package/dist/{mount.d-AcJaUtHF.d.mts → mount.d-Ylo-CmzK.d.mts} +1 -1
  257. package/dist/{native-server-fn-handler-WYYY4YBN.mjs → native-server-fn-handler-OXFTI6V5.mjs} +4 -4
  258. package/dist/{native-server-fn-handler-XRTZR7SZ.cjs → native-server-fn-handler-TNVFEQW3.cjs} +5 -5
  259. package/dist/{native-tree-MNUFN5G6.cjs → native-tree-5TENEQ7Y.cjs} +4 -4
  260. package/dist/{native-tree-JDI3LJSH.mjs → native-tree-LNO7K6JR.mjs} +3 -3
  261. package/dist/{navigation-delegate.d-_Df9DnPY.d.ts → navigation-delegate.d-2MK4YSlL.d.ts} +1 -1
  262. package/dist/{navigation-delegate.d-C4i5Y39E.d.mts → navigation-delegate.d-BA5h0fbE.d.mts} +1 -1
  263. package/dist/navigation.cjs +4 -4
  264. package/dist/navigation.d.mts +7 -7
  265. package/dist/navigation.d.ts +7 -7
  266. package/dist/navigation.mjs +3 -3
  267. package/dist/{nitro-NUCTYEKJ.cjs → nitro-6UOJXJZ6.cjs} +7 -7
  268. package/dist/{nitro-VCJ6QQSI.mjs → nitro-C3MYDX7V.mjs} +3 -3
  269. package/dist/observability.cjs +8 -2
  270. package/dist/{observability.d-DdJRiaIX.d.mts → observability.d-mXSbp4jc.d.mts} +17 -1
  271. package/dist/{observability.d-DdJRiaIX.d.ts → observability.d-mXSbp4jc.d.ts} +17 -1
  272. package/dist/observability.d.mts +1 -1
  273. package/dist/observability.d.ts +1 -1
  274. package/dist/observability.mjs +7 -1
  275. package/dist/{plugin-TV6W7YNK.mjs → plugin-33I3V42N.mjs} +1 -1
  276. package/dist/{plugin-AGEFSU7K.cjs → plugin-LN3JBZRR.cjs} +2 -2
  277. package/dist/plugin.cjs +37 -37
  278. package/dist/plugin.d.mts +8 -8
  279. package/dist/plugin.d.ts +8 -8
  280. package/dist/plugin.mjs +36 -36
  281. package/dist/query/client.cjs +6 -6
  282. package/dist/query/client.mjs +1 -1
  283. package/dist/{render-plan.d-CslZE7o7.d.ts → render-plan.d-2o-AG-ot.d.ts} +1 -1
  284. package/dist/{render-plan.d-4V_NmaA6.d.mts → render-plan.d-ChYBMhLu.d.mts} +1 -1
  285. package/dist/renderer-client.cjs +4 -4
  286. package/dist/renderer-client.d.mts +7 -7
  287. package/dist/renderer-client.d.ts +7 -7
  288. package/dist/renderer-client.mjs +1 -1
  289. package/dist/renderer.d.mts +16 -1
  290. package/dist/renderer.d.ts +16 -1
  291. package/dist/{request.d-CbV3y7j3.d.ts → request.d-CE0FIkiM.d.ts} +1 -1
  292. package/dist/{request.d-CmLTxEgS.d.mts → request.d-RCnCBuWq.d.mts} +1 -1
  293. package/dist/request.d.mts +5 -5
  294. package/dist/request.d.ts +5 -5
  295. package/dist/{route-rendering.d-CETnXNez.d.ts → route-rendering.d-BTPOM2nU.d.ts} +1 -1
  296. package/dist/{route-rendering.d-CmoqfOmj.d.mts → route-rendering.d-BZJnfKsp.d.mts} +1 -1
  297. package/dist/{router.d-Dga3N5YO.d.ts → router.d-BU_WE6Ol.d.ts} +1 -1
  298. package/dist/{router.d-ktz7pwYm.d.mts → router.d-D8Vvwl4i.d.mts} +1 -1
  299. package/dist/routes.cjs +4 -4
  300. package/dist/routes.d.mts +4 -4
  301. package/dist/routes.d.ts +4 -4
  302. package/dist/routes.mjs +3 -3
  303. package/dist/{rsc-pipeline-JLYD26AR.cjs → rsc-pipeline-A3R4U26C.cjs} +15 -15
  304. package/dist/{rsc-pipeline-N7CWJW7T.mjs → rsc-pipeline-JZWVSHOR.mjs} +14 -14
  305. package/dist/{runtime-QXX2A4TS.mjs → runtime-SQFRHRGJ.mjs} +18 -18
  306. package/dist/{runtime-F5NSS4DD.cjs → runtime-WZ3CHHGJ.cjs} +26 -26
  307. package/dist/{runtime.d-DuaXEM0p.d.mts → runtime.d-BnmuOXVD.d.mts} +1 -1
  308. package/dist/{runtime.d-BWLZUOfA.d.ts → runtime.d-DJ6IIKcF.d.ts} +1 -1
  309. package/dist/{schema-dev-notice-2GN5V7Y2.mjs → schema-dev-notice-EUPAUJVN.mjs} +2 -2
  310. package/dist/{schema-dev-notice-6VCOZGG2.cjs → schema-dev-notice-ZSCL47CT.cjs} +5 -5
  311. package/dist/search-client-A7YJT7JZ.cjs +15 -0
  312. package/dist/{search-client-W4PEFAQB.mjs → search-client-GIXIEU75.mjs} +1 -1
  313. package/dist/{server-components-status.d-C5JpC7_Y.d.ts → server-components-status.d-BeqSXcjM.d.ts} +1 -1
  314. package/dist/{server-components-status.d-CqxtJmqP.d.mts → server-components-status.d-BzOg9M8g.d.mts} +1 -1
  315. package/dist/server-fn.cjs +4 -4
  316. package/dist/server-fn.mjs +3 -3
  317. package/dist/server-plugins.d.mts +6 -6
  318. package/dist/server-plugins.d.ts +6 -6
  319. package/dist/server-query.cjs +5 -5
  320. package/dist/server-query.mjs +4 -4
  321. package/dist/server.cjs +73 -73
  322. package/dist/server.d.mts +15 -15
  323. package/dist/server.d.ts +15 -15
  324. package/dist/server.mjs +47 -47
  325. package/dist/{session-AK2OA5UZ.mjs → session-4IB34X35.mjs} +2 -2
  326. package/dist/session-MOYQJ7E6.cjs +24 -0
  327. package/dist/{spa-router.d-C3LzwTlY.d.ts → spa-router.d-BOwuVkMl.d.ts} +20 -4
  328. package/dist/{spa-router.d-BLE188EL.d.mts → spa-router.d-CDpftSsk.d.mts} +20 -4
  329. package/dist/{ssg.d-DisOfj0I.d.ts → ssg.d-BTVqyq8T.d.ts} +2 -2
  330. package/dist/{ssg.d-QrFyU6T4.d.mts → ssg.d-Bx_WFuwg.d.mts} +2 -2
  331. package/dist/storage.cjs +2 -2
  332. package/dist/storage.d.mts +112 -96
  333. package/dist/storage.d.ts +112 -96
  334. package/dist/storage.mjs +1 -1
  335. package/dist/testing.cjs +11 -11
  336. package/dist/testing.d.mts +4 -4
  337. package/dist/testing.d.ts +4 -4
  338. package/dist/testing.mjs +8 -8
  339. package/dist/{types.d-DW2vyaUq.d.mts → types.d-C5hlNbHa.d.mts} +8 -1
  340. package/dist/{types.d-DW2vyaUq.d.ts → types.d-C5hlNbHa.d.ts} +8 -1
  341. package/dist/{utils.d-BlWZFgdL.d.mts → utils.d-JkrpS-NJ.d.mts} +1 -1
  342. package/dist/{utils.d-7YcgfTCK.d.ts → utils.d-_dvevm5s.d.ts} +1 -1
  343. package/dist/version.cjs +2 -2
  344. package/dist/version.mjs +1 -1
  345. package/dist/vite.cjs +39 -37
  346. package/dist/vite.d.mts +15 -10
  347. package/dist/vite.d.ts +15 -10
  348. package/dist/vite.mjs +38 -36
  349. package/dist/workflows.cjs +3 -3
  350. package/dist/workflows.mjs +2 -2
  351. package/package.json +7 -1
  352. package/types/images.d.ts +9 -0
  353. package/dist/analyzer-KVTUYGTT.cjs +0 -16
  354. package/dist/search-client-6NVC6HM2.cjs +0 -15
  355. package/dist/session-H4TWP73H.cjs +0 -24
  356. package/dist/{chunk-GFXKO4UW.mjs → chunk-3XTRT3MB.mjs} +48 -48
  357. package/dist/{chunk-JKFN3YVG.mjs → chunk-6JWXHPVR.mjs} +0 -0
  358. package/dist/{chunk-522K362I.mjs → chunk-C2OLXVUC.mjs} +0 -0
  359. package/dist/{chunk-MALGIHIC.cjs → chunk-HS4JPIGR.cjs} +0 -0
  360. package/dist/{chunk-CUZT7474.cjs → chunk-TCMRLW3K.cjs} +0 -0
  361. package/dist/{chunk-Q3DO7MVK.mjs → chunk-URBP6DLH.mjs} +0 -0
  362. package/dist/{chunk-AOTD2N5P.cjs → chunk-WGWWRV2M.cjs} +0 -0
  363. package/dist/{chunk-L7Y65BQU.cjs → chunk-WHEQJN4G.cjs} +48 -48
@@ -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";
@@ -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() {
@@ -345,7 +355,9 @@ async function resolveDriver(config, mount) {
345
355
  return managedSqliteDriver(
346
356
  managedSqliteName(mount, hosted.managed),
347
357
  () => import("./libsql-http-2QD224YS.mjs"),
348
- hosted.schema
358
+ hosted.schema,
359
+ hosted.type,
360
+ mount
349
361
  );
350
362
  }
351
363
  const driverInput = config?.driver ?? "memory";
@@ -459,23 +471,35 @@ 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().");
486
+ if (options.type !== void 0 && options.type !== "kv" && options.type !== "sql")
487
+ throw new TypeError('Set `type` to "kv" or "sql" in farmStorage().');
469
488
  assertMountSchema(options.schema);
470
- return createManagedMount(options.namespace, options.schema, "farm");
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);
471
494
  }
472
- function createManagedMount(namespace, schema, declaredDriver) {
495
+ function createManagedMount(namespace, schema, declaredDriver, type) {
473
496
  const managed = namespace === void 0 ? true : { name: namespace };
474
497
  if (managed !== true) managedSqliteName("", managed);
475
498
  return {
476
499
  driver: "farm-managed-sqlite",
477
500
  managed,
478
501
  ...declaredDriver && { declaredDriver },
502
+ ...type && { type },
479
503
  ...schema && { schema }
480
504
  };
481
505
  }
@@ -496,16 +520,33 @@ function resolveManagedStorageMount(config) {
496
520
  if (driver !== "farm-managed-sqlite" && !isHostedDriver(driver))
497
521
  throw new TypeError("Select a built-in storage driver to use `managed: true`.");
498
522
  const declaredDriver = driver === "farm-managed-sqlite" ? options.declaredDriver : driver;
523
+ let type;
499
524
  if (driver === "farm-managed-sqlite") {
525
+ type = options.type;
500
526
  delete options.declaredDriver;
527
+ delete options.type;
501
528
  if (declaredDriver !== void 0 && declaredDriver !== "farm" && !isHostedDriver(declaredDriver))
502
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
+ );
503
540
  }
504
541
  if (Object.keys(options).some((key) => key !== "namespace" && key !== "schema"))
505
542
  throw new TypeError(
506
543
  "Remove provider connection settings and driver options when using `managed: true`."
507
544
  );
508
545
  assertMountSchema(options.schema);
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
+ );
509
550
  let namespace;
510
551
  if (managed === true) namespace = options.namespace;
511
552
  else if ((driver === "sqlite" || driver === "farm-managed-sqlite") && !("namespace" in options))
@@ -515,7 +556,8 @@ function resolveManagedStorageMount(config) {
515
556
  return createManagedMount(
516
557
  namespace,
517
558
  options.schema,
518
- typeof declaredDriver === "string" ? declaredDriver : void 0
559
+ typeof declaredDriver === "string" ? declaredDriver : void 0,
560
+ type
519
561
  );
520
562
  }
521
563
  function isHostedDriver(driver) {
@@ -631,6 +673,10 @@ async function getDatabase(name, options) {
631
673
  throw new TypeError(
632
674
  "Configure a managed SQLite mount named " + JSON.stringify(name) + " before calling getDatabase()."
633
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
+ );
634
680
  const client = await driver[databaseAccessor]();
635
681
  if (options && "raw" in options) return client;
636
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-7JTVN6IJ.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-JKFN3YVG.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-VRJAMU34.mjs";
3
+ } from "./chunk-JGEN2FIT.mjs";
4
4
 
5
5
  // src/deployment-environment.ts
6
6
  function isFarmProductionDeploymentEnvironment(env = process.env) {
@@ -1,7 +1,7 @@
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 _chunkK3ZELA6Ucjs = require('./chunk-K3ZELA6U.cjs');
4
+ var _chunk7DD5TNPScjs = require('./chunk-7DD5TNPS.cjs');
5
5
 
6
6
 
7
7
  var _chunkA4WWKG2Bcjs = require('./chunk-A4WWKG2B.cjs');
@@ -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 _chunkK3ZELA6Ucjs.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 _chunkK3ZELA6Ucjs.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 _chunkK3ZELA6Ucjs.generateRouteTypes.call(void 0, routeOptions);
835
+ result.routeTypesPath = await _chunk7DD5TNPScjs.generateRouteTypes.call(void 0, routeOptions);
836
836
  }
837
837
  }
838
838
  if (shouldGenerateApi) {
839
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 = [
@@ -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 _chunkEVVV2XZ2cjs = require('./chunk-EVVV2XZ2.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 _chunkEVVV2XZ2cjs.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";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkZCYGYIC2cjs = require('./chunk-ZCYGYIC2.cjs');
4
+ var _chunkAXA2BSX3cjs = require('./chunk-AXA2BSX3.cjs');
5
5
 
6
6
 
7
7
  var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
@@ -64,7 +64,7 @@ function findFarmNativeScreenFiles(appDirs) {
64
64
  }
65
65
  function collectFarmNativeServerFns(options) {
66
66
  const { root, srcDir } = options;
67
- const aliases = _chunkZCYGYIC2cjs.readAliases.call(void 0, root, srcDir);
67
+ const aliases = _chunkAXA2BSX3cjs.readAliases.call(void 0, root, srcDir);
68
68
  const seen = /* @__PURE__ */ new Set();
69
69
  const found = /* @__PURE__ */ new Map();
70
70
  const queue = [...options.entries];
@@ -98,7 +98,7 @@ function collectFarmNativeServerFns(options) {
98
98
  }
99
99
  }
100
100
  for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
101
- const resolved = _chunkZCYGYIC2cjs.resolveFile.call(void 0, candidate);
101
+ const resolved = _chunkAXA2BSX3cjs.resolveFile.call(void 0, candidate);
102
102
  if (resolved && SCRIPT.test(resolved) && !resolved.includes(`${_path2.default.sep}node_modules${_path2.default.sep}`)) {
103
103
  queue.push(resolved);
104
104
  break;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isEndpointFailure,
3
3
  resolvePluginRoutes
4
- } from "./chunk-OVUU2RCQ.mjs";
4
+ } from "./chunk-HD5FLXP2.mjs";
5
5
  import {
6
6
  registerAPIRouteShape
7
7
  } from "./chunk-2LKUR5QJ.mjs";
@@ -57,7 +57,7 @@ function parseRoutePath(filePath) {
57
57
  };
58
58
  }
59
59
  function getRouteType(fileName) {
60
- const baseName = fileName.replace(/\.(tsx?|jsx?|vue|svelte|mdx?|markdown)$/, "");
60
+ const baseName = fileName.replace(/\.[^./]+$/, "");
61
61
  switch (baseName) {
62
62
  case "page":
63
63
  return "page";
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-YT2ZMLXK.mjs";
21
21
  import {
22
22
  emitFarmEvent
23
- } from "./chunk-2DA7CLY7.mjs";
23
+ } from "./chunk-EILUVBKS.mjs";
24
24
  import {
25
25
  FARM_DEPLOYMENT_ID_HEADER,
26
26
  createFarmDeploymentCookie,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunk4VLXQ55Ocjs = require('./chunk-4VLXQ55O.cjs');
3
+ var _chunkWIZRYFB2cjs = require('./chunk-WIZRYFB2.cjs');
4
4
 
5
5
  // src/api/mount.ts
6
6
  function mountFetchHandler(app, options = {}) {
@@ -9,7 +9,7 @@ function mountFetchHandler(app, options = {}) {
9
9
  options.stripMountPath ? await stripMountPath(request, await _optionalChain([context, 'optionalAccess', _ => _.params])) : request
10
10
  );
11
11
  return Object.fromEntries(
12
- _chunk4VLXQ55Ocjs.API_ROUTE_METHODS.map((method) => [method, handle])
12
+ _chunkWIZRYFB2cjs.API_ROUTE_METHODS.map((method) => [method, handle])
13
13
  );
14
14
  }
15
15
  async function stripMountPath(request, params) {
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-ZIAWO6BC.mjs";
11
11
  import {
12
12
  applyFarmCacheInvalidationTargets
13
- } from "./chunk-ZO6TOLHL.mjs";
13
+ } from "./chunk-FS55CNTC.mjs";
14
14
  import {
15
15
  _resolveCurrentRequestForApp,
16
16
  _toAppRequestView
@@ -3,13 +3,13 @@
3
3
  var _chunkOWOUTKIJcjs = require('./chunk-OWOUTKIJ.cjs');
4
4
 
5
5
 
6
- var _chunkWRWJ7IWTcjs = require('./chunk-WRWJ7IWT.cjs');
6
+ var _chunkOLKYHTLNcjs = require('./chunk-OLKYHTLN.cjs');
7
7
 
8
8
 
9
9
  var _chunk6JHZPB52cjs = require('./chunk-6JHZPB52.cjs');
10
10
 
11
11
 
12
- var _chunk2YJ4DHTDcjs = require('./chunk-2YJ4DHTD.cjs');
12
+ var _chunk2NOHVIJ3cjs = require('./chunk-2NOHVIJ3.cjs');
13
13
 
14
14
 
15
15
  var _chunkWT6RAN2Icjs = require('./chunk-WT6RAN2I.cjs');
@@ -738,12 +738,12 @@ function createFarmMetadataRouteResponse(kind, value, routeModule = {}, options
738
738
  return new Response(null, { status: 405, headers: { Allow: "GET, HEAD" } });
739
739
  }
740
740
  if ((kind === "llms" || kind === "llms-full") && options.request) {
741
- _chunk2YJ4DHTDcjs.emitFarmAgentRead.call(void 0, options.request, kind, isResponse(value) ? value.status : 200);
741
+ _chunk2NOHVIJ3cjs.emitFarmAgentRead.call(void 0, options.request, kind, isResponse(value) ? value.status : 200);
742
742
  }
743
743
  if (isResponse(value)) {
744
744
  return method === "HEAD" ? _chunk4DCWVSL2cjs.omitFarmResponseBody.call(void 0, value) : value;
745
745
  }
746
- const body = kind === "sitemap" ? serializeSitemap(value) : kind === "robots" ? serializeRobots(value) : kind === "llms" || kind === "llms-full" ? _chunkWRWJ7IWTcjs.serializeFarmLlmsTxt.call(void 0, value) : serializeManifest(value);
746
+ const body = kind === "sitemap" ? serializeSitemap(value) : kind === "robots" ? serializeRobots(value) : kind === "llms" || kind === "llms-full" ? _chunkOLKYHTLNcjs.serializeFarmLlmsTxt.call(void 0, value) : serializeManifest(value);
747
747
  const contentType = kind === "sitemap" ? "application/xml; charset=utf-8" : kind === "robots" || kind === "llms" || kind === "llms-full" ? "text/plain; charset=utf-8" : "application/manifest+json; charset=utf-8";
748
748
  return new Response(method === "HEAD" ? null : body, {
749
749
  headers: {