@farm.js/core 0.1.76 → 0.1.78

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 (444) 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-EDJNU224.mjs} +1 -1
  4. package/dist/{agent-mcp-handler-73SGWVZT.cjs → agent-mcp-handler-LNBYLRTZ.cjs} +1 -1
  5. package/dist/{agent-mcp.d-Cftp2kFv.d.ts → agent-mcp.d-BErtnhV2.d.ts} +1 -1
  6. package/dist/{agent-mcp.d-D0FMmqi0.d.mts → agent-mcp.d-CYHfcjur.d.mts} +1 -1
  7. package/dist/agent-runtime.cjs +3 -3
  8. package/dist/agent-runtime.d.mts +2 -2
  9. package/dist/agent-runtime.d.ts +2 -2
  10. package/dist/agent-runtime.mjs +2 -2
  11. package/dist/analyzer-KVTUYGTT.cjs +16 -0
  12. package/dist/{analyzer-NLQKPN74.mjs → analyzer-M2BG6QYU.mjs} +3 -3
  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 +1 -1
  18. package/dist/api/node.d.mts +4 -4
  19. package/dist/api/node.d.ts +4 -4
  20. package/dist/api/node.mjs +1 -1
  21. package/dist/api/route-manager.cjs +5 -5
  22. package/dist/api/route-manager.d.mts +4 -4
  23. package/dist/api/route-manager.d.ts +4 -4
  24. package/dist/api/route-manager.mjs +4 -4
  25. package/dist/api/runtime.cjs +1 -1
  26. package/dist/api/runtime.d.mts +3 -3
  27. package/dist/api/runtime.d.ts +3 -3
  28. package/dist/api/runtime.mjs +1 -1
  29. package/dist/api.cjs +6 -6
  30. package/dist/api.d.mts +5 -5
  31. package/dist/api.d.ts +5 -5
  32. package/dist/api.mjs +5 -5
  33. package/dist/{app-manifest.d-cpOw_sV5.d.mts → app-manifest.d-6NCkLQ1y.d.mts} +1 -1
  34. package/dist/{app-manifest.d-7PmA_9hm.d.ts → app-manifest.d-DuqLBcmi.d.ts} +1 -1
  35. package/dist/app-markdown.cjs +1 -1
  36. package/dist/app-markdown.d.mts +3 -3
  37. package/dist/app-markdown.d.ts +3 -3
  38. package/dist/app-markdown.mjs +1 -1
  39. package/dist/{app.d-wOkxXre8.d.ts → app.d-Bz6vYBFF.d.ts} +4 -4
  40. package/dist/{app.d-DUZvwnFF.d.mts → app.d-Dk2HkvPh.d.mts} +4 -4
  41. package/dist/cache.cjs +1 -1
  42. package/dist/cache.mjs +1 -1
  43. package/dist/{chunk-DVW6SKHA.cjs → chunk-26CNCIFI.cjs} +2 -2
  44. package/dist/{chunk-CCQZDOQR.cjs → chunk-2G6JPLSL.cjs} +19 -19
  45. package/dist/{chunk-CL2ONP73.cjs → chunk-2PE5STAR.cjs} +36 -27
  46. package/dist/{chunk-E7VF3LQ5.mjs → chunk-4STJ6LGR.mjs} +13 -1
  47. package/dist/{chunk-HFJLMALC.cjs → chunk-5DREJN4G.cjs} +4 -4
  48. package/dist/{chunk-WILPJVQE.cjs → chunk-5KISFWD2.cjs} +4 -4
  49. package/dist/{chunk-5WFPZG7K.mjs → chunk-5REIO5DT.mjs} +4 -4
  50. package/dist/{chunk-SYPEMXW2.mjs → chunk-6MZSTPD2.mjs} +1 -1
  51. package/dist/{chunk-63EFR2WF.cjs → chunk-6XDDE7M6.cjs} +3 -3
  52. package/dist/{chunk-A2VFKOQL.mjs → chunk-7JTVN6IJ.mjs} +1 -1
  53. package/dist/{chunk-2GZZVIXY.mjs → chunk-7RQ5KAK6.mjs} +2 -2
  54. package/dist/{chunk-QVBXTSIZ.mjs → chunk-7V5M43ND.mjs} +1 -1
  55. package/dist/{chunk-SGQXJVFX.mjs → chunk-A37D6LOS.mjs} +1 -1
  56. package/dist/{chunk-7EOSFIPN.cjs → chunk-A4WWKG2B.cjs} +2 -2
  57. package/dist/{chunk-LQBV2Y37.mjs → chunk-A7EJATEW.mjs} +40 -4
  58. package/dist/{chunk-CKBBKRBO.mjs → chunk-AHGOHPRN.mjs} +14 -14
  59. package/dist/{chunk-JRBWBMP2.mjs → chunk-B3IRRANH.mjs} +1 -1
  60. package/dist/{chunk-7564NP5Z.cjs → chunk-BZJYPIFZ.cjs} +46 -10
  61. package/dist/{chunk-3OYFMOBY.mjs → chunk-CBP7AKZH.mjs} +1 -1
  62. package/dist/{chunk-QUEYL2WM.cjs → chunk-CKNZJFK5.cjs} +1 -1
  63. package/dist/{chunk-2WKGQCAV.cjs → chunk-DD2ANOEF.cjs} +265 -178
  64. package/dist/{chunk-XX6ZA2IO.cjs → chunk-DPBQRDWW.cjs} +1 -1
  65. package/dist/chunk-DS2KZ5BT.mjs +16 -0
  66. package/dist/{chunk-VDJ3CLBR.mjs → chunk-E7V2GYBP.mjs} +1 -1
  67. package/dist/{chunk-YHE7HH2I.mjs → chunk-EBFTAVGD.mjs} +134 -47
  68. package/dist/{chunk-UBXNTZCY.cjs → chunk-EVVV2XZ2.cjs} +115 -108
  69. package/dist/{chunk-PSNYVBWC.cjs → chunk-F7PKUP6P.cjs} +12 -12
  70. package/dist/{chunk-75XSZIRE.mjs → chunk-FD6BMUA3.mjs} +35 -26
  71. package/dist/{chunk-TMVVBK5S.cjs → chunk-FOULIN4S.cjs} +2 -2
  72. package/dist/{chunk-WJDMH3E7.cjs → chunk-H5OVJHXY.cjs} +4 -4
  73. package/dist/{chunk-DTNWLRRF.cjs → chunk-HVMQAVZK.cjs} +85 -85
  74. package/dist/{chunk-Q4X3MX4J.mjs → chunk-IGE5BAWK.mjs} +112 -105
  75. package/dist/{chunk-2JEXQAIR.cjs → chunk-IWGGRXD2.cjs} +2 -2
  76. package/dist/{chunk-SFSTZ7TB.cjs → chunk-K3ZELA6U.cjs} +2 -2
  77. package/dist/{chunk-DZ3AZ7UK.cjs → chunk-KZ5BOWJS.cjs} +9 -9
  78. package/dist/{chunk-GP5BWTO7.mjs → chunk-LIC6CMLB.mjs} +6 -6
  79. package/dist/{chunk-BYJPBJ4E.cjs → chunk-LJKTJNOF.cjs} +3 -3
  80. package/dist/{chunk-XLOORES5.cjs → chunk-LMXGCFAM.cjs} +1 -1
  81. package/dist/{chunk-QTDIOZV6.cjs → chunk-MBD34AS5.cjs} +2 -2
  82. package/dist/{chunk-BBRSPKFI.cjs → chunk-NB2ZEBIS.cjs} +196 -173
  83. package/dist/{chunk-PXXG5BID.cjs → chunk-NNGBTJCX.cjs} +3 -3
  84. package/dist/{chunk-QDHR54S6.cjs → chunk-OBVBII5K.cjs} +5 -5
  85. package/dist/{chunk-QP4GYVRR.cjs → chunk-ODYKCC6W.cjs} +8 -8
  86. package/dist/{chunk-3AJQFVWW.mjs → chunk-OGVOKAQU.mjs} +1 -1
  87. package/dist/{chunk-5EEQNZLU.mjs → chunk-PNWRH6TR.mjs} +2 -2
  88. package/dist/{chunk-3GMD2E4Q.mjs → chunk-QES76U42.mjs} +1 -1
  89. package/dist/{chunk-MTBDJ326.cjs → chunk-QMR2TUVZ.cjs} +13 -1
  90. package/dist/{chunk-JL6XHQZF.mjs → chunk-R77D7TCZ.mjs} +6 -6
  91. package/dist/{chunk-O225GNEU.mjs → chunk-RIMEFQYO.mjs} +44 -21
  92. package/dist/{chunk-MOS2N377.mjs → chunk-S6RUJRWI.mjs} +1 -1
  93. package/dist/chunk-TIZJYHB7.mjs +42 -0
  94. package/dist/chunk-UZM3PDKK.cjs +46 -0
  95. package/dist/{chunk-YQXJY7E7.mjs → chunk-VCW6BR6U.mjs} +1 -1
  96. package/dist/{chunk-E77ZKNPN.mjs → chunk-VO5XDZHK.mjs} +1 -1
  97. package/dist/{chunk-YONTMPZ6.mjs → chunk-VRI43FDN.mjs} +1 -1
  98. package/dist/{chunk-X3HUT4JU.mjs → chunk-VRJAMU34.mjs} +1 -1
  99. package/dist/{chunk-CF74ABRI.mjs → chunk-WJ4NUY2H.mjs} +2 -2
  100. package/dist/{chunk-Q7JMHO5U.mjs → chunk-X2SEYK7I.mjs} +2 -2
  101. package/dist/{chunk-WMJQNVKX.cjs → chunk-XGS76V7L.cjs} +2 -2
  102. package/dist/chunk-XRRHPBG2.cjs +16 -0
  103. package/dist/{chunk-3QM74STY.cjs → chunk-Y2FEFQAY.cjs} +3 -3
  104. package/dist/{chunk-HKGU2X4I.cjs → chunk-ZCYGYIC2.cjs} +2 -2
  105. package/dist/{chunk-OCLCA3X3.mjs → chunk-ZEWIWAS2.mjs} +1 -1
  106. package/dist/{cli-runtime.d-D84CwyPI.d.ts → cli-runtime.d-BG9q2_vC.d.ts} +8 -6
  107. package/dist/{cli-runtime.d-OQY2pgwK.d.mts → cli-runtime.d-CGMGs1Zz.d.mts} +8 -6
  108. package/dist/client/lifecycle.cjs +1 -1
  109. package/dist/client/lifecycle.mjs +1 -1
  110. package/dist/{client-component.d-Bf8jZqW7.d.ts → client-component.d-B84GPb_u.d.ts} +1 -1
  111. package/dist/{client-component.d-Bh6CfC5z.d.mts → client-component.d-CdsG1E7p.d.mts} +1 -1
  112. package/dist/client-plugins.cjs +1 -1
  113. package/dist/{client-plugins.d-r3K2oQ6w.d.mts → client-plugins.d-DX-iCJWE.d.mts} +1 -1
  114. package/dist/{client-plugins.d-DuujrC8d.d.ts → client-plugins.d-FptsHgls.d.ts} +1 -1
  115. package/dist/client-plugins.d.mts +2 -2
  116. package/dist/client-plugins.d.ts +2 -2
  117. package/dist/client-plugins.mjs +1 -1
  118. package/dist/client.cjs +1 -1
  119. package/dist/client.d.mts +7 -7
  120. package/dist/client.d.ts +7 -7
  121. package/dist/client.mjs +1 -1
  122. package/dist/config.cjs +1 -1
  123. package/dist/config.d.mts +2 -2
  124. package/dist/config.d.ts +2 -2
  125. package/dist/config.mjs +1 -1
  126. package/dist/cron.cjs +1 -1
  127. package/dist/cron.mjs +1 -1
  128. package/dist/deferred.cjs +1 -1
  129. package/dist/deferred.mjs +1 -1
  130. package/dist/deployment.cjs +1 -1
  131. package/dist/deployment.mjs +1 -1
  132. package/dist/desktop.cjs +1 -1
  133. package/dist/desktop.d.mts +3 -3
  134. package/dist/desktop.d.ts +3 -3
  135. package/dist/desktop.mjs +1 -1
  136. package/dist/{dev-guard-ZDIELV6Q.mjs → dev-guard-K3GJDPEQ.mjs} +1 -1
  137. package/dist/{dev-guard-ZLLKVO5T.cjs → dev-guard-VIEEA4LS.cjs} +1 -1
  138. package/dist/{devtools-MBZPUH3U.mjs → devtools-7P3OUNLV.mjs} +6 -5
  139. package/dist/{devtools-3WZIZ7KK.cjs → devtools-TMATFNUY.cjs} +7 -6
  140. package/dist/{devtools-client-X5OQCXDF.cjs → devtools-client-BKBCCORT.cjs} +1 -1
  141. package/dist/{devtools-client-SU4XH46J.mjs → devtools-client-L4MUWD6K.mjs} +1 -1
  142. package/dist/{devtools-ui-CYBVFLPH.mjs → devtools-ui-BOG33MT5.mjs} +1 -1
  143. package/dist/{devtools-ui-SYRUXUA7.cjs → devtools-ui-C2EMF2SO.cjs} +1 -1
  144. package/dist/docs.cjs +8 -7
  145. package/dist/docs.d.mts +4 -4
  146. package/dist/docs.d.ts +4 -4
  147. package/dist/docs.mjs +7 -6
  148. package/dist/env-types.cjs +1 -1
  149. package/dist/env-types.mjs +1 -1
  150. package/dist/env.cjs +1 -1
  151. package/dist/env.mjs +1 -1
  152. package/dist/environment/vite.cjs +6 -5
  153. package/dist/environment/vite.mjs +5 -4
  154. package/dist/environment.cjs +1 -1
  155. package/dist/environment.mjs +1 -1
  156. package/dist/font.cjs +1 -1
  157. package/dist/font.mjs +1 -1
  158. package/dist/{handler.d-Bd5lRSvb.d.ts → handler.d-Cy3XbY_W.d.ts} +1 -1
  159. package/dist/{handler.d-SRH-AKzf.d.mts → handler.d-DSwLTpa5.d.mts} +1 -1
  160. package/dist/headers.cjs +1 -1
  161. package/dist/{headers.d-CHHvyaIG.d.mts → headers.d-DiL9YTH3.d.mts} +1 -1
  162. package/dist/{headers.d-D-OvGikv.d.ts → headers.d-Qbjo38a0.d.ts} +1 -1
  163. package/dist/headers.mjs +1 -1
  164. package/dist/i18n/client.cjs +1 -1
  165. package/dist/i18n/client.mjs +1 -1
  166. package/dist/i18n/index.cjs +1 -1
  167. package/dist/i18n/index.mjs +1 -1
  168. package/dist/i18n/server.cjs +1 -1
  169. package/dist/i18n/server.mjs +1 -1
  170. package/dist/image/server.cjs +1 -1
  171. package/dist/image/server.mjs +1 -1
  172. package/dist/image/sharp.cjs +1 -1
  173. package/dist/image/sharp.mjs +1 -1
  174. package/dist/image.cjs +1 -1
  175. package/dist/image.mjs +1 -1
  176. package/dist/index.cjs +44 -39
  177. package/dist/{index.d-BOPsgMlI.d.mts → index.d-CqQKX3s6.d.mts} +1 -1
  178. package/dist/{index.d-BiUtYJUG.d.ts → index.d-OccJoC6I.d.ts} +1 -1
  179. package/dist/index.d.mts +23 -23
  180. package/dist/index.d.ts +23 -23
  181. package/dist/index.mjs +40 -35
  182. package/dist/instrumentation.cjs +1 -1
  183. package/dist/instrumentation.mjs +1 -1
  184. package/dist/integrations/orm.cjs +5 -4
  185. package/dist/integrations/orm.d.mts +2 -2
  186. package/dist/integrations/orm.d.ts +2 -2
  187. package/dist/integrations/orm.mjs +4 -3
  188. package/dist/integrations.cjs +3 -3
  189. package/dist/integrations.d.mts +2 -2
  190. package/dist/integrations.d.ts +2 -2
  191. package/dist/integrations.mjs +2 -2
  192. package/dist/internal/app-markdown-runtime.cjs +1 -1
  193. package/dist/internal/app-markdown-runtime.d.mts +3 -3
  194. package/dist/internal/app-markdown-runtime.d.ts +3 -3
  195. package/dist/internal/app-markdown-runtime.mjs +1 -1
  196. package/dist/internal/build-runtime.cjs +30 -29
  197. package/dist/internal/build-runtime.d.mts +5 -5
  198. package/dist/internal/build-runtime.d.ts +5 -5
  199. package/dist/internal/build-runtime.mjs +29 -28
  200. package/dist/internal/cli-runtime.cjs +17 -14
  201. package/dist/internal/cli-runtime.d.mts +9 -8
  202. package/dist/internal/cli-runtime.d.ts +9 -8
  203. package/dist/internal/cli-runtime.mjs +17 -14
  204. package/dist/internal/client-error-overlay.cjs +5 -5
  205. package/dist/internal/client-error-overlay.mjs +2 -2
  206. package/dist/internal/client-runtime.cjs +1 -1
  207. package/dist/internal/client-runtime.d.mts +5 -5
  208. package/dist/internal/client-runtime.d.ts +5 -5
  209. package/dist/internal/client-runtime.mjs +1 -1
  210. package/dist/internal/compression-runtime.cjs +3 -3
  211. package/dist/internal/compression-runtime.d.mts +6 -3
  212. package/dist/internal/compression-runtime.d.ts +6 -3
  213. package/dist/internal/compression-runtime.mjs +2 -2
  214. package/dist/internal/config-runtime.cjs +8 -7
  215. package/dist/internal/config-runtime.d.mts +4 -4
  216. package/dist/internal/config-runtime.d.ts +4 -4
  217. package/dist/internal/config-runtime.mjs +7 -6
  218. package/dist/internal/desktop-guard.cjs +1 -1
  219. package/dist/internal/desktop-guard.mjs +1 -1
  220. package/dist/internal/docs-precompiled-runtime.cjs +1 -1
  221. package/dist/internal/docs-precompiled-runtime.mjs +1 -1
  222. package/dist/internal/form-actions-client.cjs +1 -1
  223. package/dist/internal/form-actions-client.mjs +1 -1
  224. package/dist/internal/form-actions.cjs +1 -1
  225. package/dist/internal/form-actions.mjs +1 -1
  226. package/dist/internal/infra-analytics-runtime.cjs +7 -7
  227. package/dist/internal/infra-analytics-runtime.mjs +5 -5
  228. package/dist/internal/island-codec.cjs +1 -1
  229. package/dist/internal/island-codec.mjs +1 -1
  230. package/dist/internal/island-value-store.cjs +1 -1
  231. package/dist/internal/island-value-store.mjs +1 -1
  232. package/dist/internal/islands-boot.cjs +27 -6
  233. package/dist/internal/islands-boot.mjs +24 -3
  234. package/dist/internal/islands-runtime.cjs +1 -1
  235. package/dist/internal/islands-runtime.mjs +1 -1
  236. package/dist/internal/islands-server.cjs +1 -1
  237. package/dist/internal/islands-server.mjs +1 -1
  238. package/dist/internal/islx-client.cjs +1 -1
  239. package/dist/internal/islx-react.cjs +1 -1
  240. package/dist/internal/islx-server.cjs +1 -1
  241. package/dist/internal/isolated-boundary.cjs +1 -1
  242. package/dist/internal/isolated-boundary.mjs +1 -1
  243. package/dist/internal/metadata-image-runtime.cjs +1 -1
  244. package/dist/internal/metadata-image-runtime.mjs +1 -1
  245. package/dist/internal/native-server-fns.cjs +5 -5
  246. package/dist/internal/native-server-fns.mjs +4 -4
  247. package/dist/internal/product-telemetry-runtime.cjs +4 -4
  248. package/dist/internal/product-telemetry-runtime.mjs +3 -3
  249. package/dist/internal/production-node-env.cjs +1 -1
  250. package/dist/internal/production-node-env.mjs +1 -1
  251. package/dist/internal/production-runtime.cjs +8 -7
  252. package/dist/internal/production-runtime.d.mts +11 -11
  253. package/dist/internal/production-runtime.d.ts +11 -11
  254. package/dist/internal/production-runtime.mjs +7 -6
  255. package/dist/internal/react-cache.cjs +1 -1
  256. package/dist/internal/react-cache.mjs +1 -1
  257. package/dist/internal/request-cookies.cjs +1 -1
  258. package/dist/internal/request-cookies.mjs +1 -1
  259. package/dist/internal/server-fn-transform.cjs +1 -1
  260. package/dist/internal/server-fn-transform.mjs +1 -1
  261. package/dist/internal/server-tree.cjs +1 -1
  262. package/dist/internal/server-tree.mjs +1 -1
  263. package/dist/internal/start-manifest.cjs +1 -1
  264. package/dist/internal/start-manifest.d.mts +2 -2
  265. package/dist/internal/start-manifest.d.ts +2 -2
  266. package/dist/internal/start-manifest.mjs +1 -1
  267. package/dist/internal/vercel-edge-middleware.cjs +1 -1
  268. package/dist/internal/vercel-edge-middleware.mjs +1 -1
  269. package/dist/json-ld.cjs +1 -1
  270. package/dist/json-ld.mjs +1 -1
  271. package/dist/{layers-XQ7VFMWO.mjs → layers-5ZD4764G.mjs} +3 -2
  272. package/dist/layers-HMEGUEXM.cjs +21 -0
  273. package/dist/libsql-http-2QD224YS.mjs +600 -0
  274. package/dist/libsql-http-M6LMNXCN.cjs +600 -0
  275. package/dist/{manager-YO2RHDYU.mjs → manager-OMTC5FOJ.mjs} +2 -2
  276. package/dist/{manager-R7FV4A56.cjs → manager-PX4QN4HK.cjs} +4 -4
  277. package/dist/markdown.cjs +1 -1
  278. package/dist/markdown.d.mts +2 -2
  279. package/dist/markdown.d.ts +2 -2
  280. package/dist/markdown.mjs +1 -1
  281. package/dist/middleware.cjs +5 -5
  282. package/dist/middleware.d.mts +2 -2
  283. package/dist/middleware.d.ts +2 -2
  284. package/dist/middleware.mjs +4 -4
  285. package/dist/mobile.cjs +1 -1
  286. package/dist/mobile.mjs +1 -1
  287. package/dist/{modules-KOKD4XS6.mjs → modules-3Q2ZCY4Q.mjs} +1 -1
  288. package/dist/{modules-QTP7WJPD.cjs → modules-KDHFBQ6L.cjs} +1 -1
  289. package/dist/{mount.d-vq1HTq5u.d.mts → mount.d-AcJaUtHF.d.mts} +1 -1
  290. package/dist/{mount.d-C2yq0Zzz.d.ts → mount.d-CPzqOm-a.d.ts} +1 -1
  291. package/dist/{native-server-fn-handler-LII4MDRR.mjs → native-server-fn-handler-WYYY4YBN.mjs} +1 -1
  292. package/dist/{native-server-fn-handler-IWNKQEXK.cjs → native-server-fn-handler-XRTZR7SZ.cjs} +1 -1
  293. package/dist/{native-specs-LDV6IZ4N.mjs → native-specs-A7YOL463.mjs} +1 -1
  294. package/dist/{native-specs-5OLED4MM.cjs → native-specs-JDPH26AO.cjs} +1 -1
  295. package/dist/{native-tree-G6ZWS7IR.mjs → native-tree-JDI3LJSH.mjs} +1 -1
  296. package/dist/{native-tree-D3PW64ZL.cjs → native-tree-MNUFN5G6.cjs} +1 -1
  297. package/dist/native.cjs +1 -1
  298. package/dist/native.mjs +1 -1
  299. package/dist/{navigation-delegate.d-DS2Sqm7E.d.mts → navigation-delegate.d-C4i5Y39E.d.mts} +1 -1
  300. package/dist/{navigation-delegate.d-D7xIin3i.d.ts → navigation-delegate.d-_Df9DnPY.d.ts} +1 -1
  301. package/dist/navigation.cjs +1 -1
  302. package/dist/navigation.d.mts +5 -5
  303. package/dist/navigation.d.ts +5 -5
  304. package/dist/navigation.mjs +1 -1
  305. package/dist/{nitro-HKMVYIXY.cjs → nitro-NUCTYEKJ.cjs} +3 -3
  306. package/dist/{nitro-RHLKLYXH.mjs → nitro-VCJ6QQSI.mjs} +2 -2
  307. package/dist/{node-module-bundle-LIZ2KMVW.cjs → node-module-bundle-M6BISE2P.cjs} +1 -1
  308. package/dist/{node-module-bundle-VR6NV6AI.mjs → node-module-bundle-XPLBMXRD.mjs} +1 -1
  309. package/dist/observability.cjs +1 -1
  310. package/dist/observability.mjs +1 -1
  311. package/dist/og.cjs +1 -1
  312. package/dist/og.mjs +1 -1
  313. package/dist/platform.cjs +1 -1
  314. package/dist/platform.mjs +1 -1
  315. package/dist/{plugin-YXPIS3XX.cjs → plugin-AGEFSU7K.cjs} +3 -3
  316. package/dist/{plugin-6CHZBFJD.mjs → plugin-TV6W7YNK.mjs} +2 -2
  317. package/dist/plugin.cjs +23 -22
  318. package/dist/plugin.d.mts +6 -6
  319. package/dist/plugin.d.ts +6 -6
  320. package/dist/plugin.mjs +22 -21
  321. package/dist/{port-CLL4BC4O.mjs → port-CEZTV776.mjs} +1 -1
  322. package/dist/{port-HASZTQGY.cjs → port-STMSGUVU.cjs} +1 -1
  323. package/dist/query/client.cjs +1 -1
  324. package/dist/query/client.mjs +1 -1
  325. package/dist/query/index.cjs +1 -1
  326. package/dist/query/index.mjs +1 -1
  327. package/dist/query/parsers.cjs +1 -1
  328. package/dist/query/parsers.mjs +1 -1
  329. package/dist/query/server.cjs +1 -1
  330. package/dist/query/server.mjs +1 -1
  331. package/dist/{render-plan.d-X6KqerAM.d.mts → render-plan.d-4V_NmaA6.d.mts} +1 -1
  332. package/dist/{render-plan.d-BCq0nfdw.d.ts → render-plan.d-CslZE7o7.d.ts} +1 -1
  333. package/dist/renderer/none/server.cjs +1 -1
  334. package/dist/renderer/none/server.mjs +1 -1
  335. package/dist/renderer/react/client.cjs +1 -1
  336. package/dist/renderer/react/client.mjs +1 -1
  337. package/dist/renderer/react/server.cjs +1 -1
  338. package/dist/renderer/react/server.mjs +1 -1
  339. package/dist/renderer/react/vite.cjs +1 -1
  340. package/dist/renderer/react/vite.mjs +1 -1
  341. package/dist/renderer-client.cjs +1 -1
  342. package/dist/renderer-client.d.mts +5 -5
  343. package/dist/renderer-client.d.ts +5 -5
  344. package/dist/renderer-client.mjs +1 -1
  345. package/dist/renderer.cjs +1 -1
  346. package/dist/renderer.mjs +1 -1
  347. package/dist/request.cjs +1 -1
  348. package/dist/{request.d-CPdq2_kC.d.ts → request.d-CbV3y7j3.d.ts} +1 -1
  349. package/dist/{request.d-Be9rWboC.d.mts → request.d-CmLTxEgS.d.mts} +1 -1
  350. package/dist/request.d.mts +3 -3
  351. package/dist/request.d.ts +3 -3
  352. package/dist/request.mjs +1 -1
  353. package/dist/{route-rendering.d-CKB5GhQr.d.ts → route-rendering.d-CETnXNez.d.ts} +1 -1
  354. package/dist/{route-rendering.d-CIPli7Ve.d.mts → route-rendering.d-CmoqfOmj.d.mts} +1 -1
  355. package/dist/router.cjs +1 -1
  356. package/dist/{router.d-CvrbOXzF.d.ts → router.d-Dga3N5YO.d.ts} +1 -1
  357. package/dist/{router.d-VxTgLGxN.d.mts → router.d-ktz7pwYm.d.mts} +1 -1
  358. package/dist/router.mjs +1 -1
  359. package/dist/routes.cjs +1 -1
  360. package/dist/routes.d.mts +2 -2
  361. package/dist/routes.d.ts +2 -2
  362. package/dist/routes.mjs +1 -1
  363. package/dist/{rsc-pipeline-TPHK74VE.cjs → rsc-pipeline-JLYD26AR.cjs} +11 -10
  364. package/dist/{rsc-pipeline-FPE4OL57.mjs → rsc-pipeline-N7CWJW7T.mjs} +10 -9
  365. package/dist/{runtime-UBG657UC.cjs → runtime-F5NSS4DD.cjs} +14 -13
  366. package/dist/{runtime-45BD33OJ.mjs → runtime-QXX2A4TS.mjs} +10 -9
  367. package/dist/{runtime.d-Ps54JWpo.d.ts → runtime.d-BWLZUOfA.d.ts} +1 -1
  368. package/dist/{runtime.d-Cn1jiDNI.d.mts → runtime.d-DuaXEM0p.d.mts} +1 -1
  369. package/dist/safe-fetch.cjs +1 -1
  370. package/dist/safe-fetch.mjs +1 -1
  371. package/dist/{schema-dev-notice-CA55V57L.mjs → schema-dev-notice-2GN5V7Y2.mjs} +1 -1
  372. package/dist/{schema-dev-notice-RWA2UTR6.cjs → schema-dev-notice-6VCOZGG2.cjs} +1 -1
  373. package/dist/schema.cjs +1 -1
  374. package/dist/schema.mjs +1 -1
  375. package/dist/{search-client-ZZLKVO5R.cjs → search-client-6NVC6HM2.cjs} +1 -1
  376. package/dist/{search-client-OXH6GBNO.mjs → search-client-W4PEFAQB.mjs} +1 -1
  377. package/dist/server-action-security.cjs +1 -1
  378. package/dist/server-action-security.mjs +1 -1
  379. package/dist/{server-components-status.d-Dhtbs5lC.d.ts → server-components-status.d-C5JpC7_Y.d.ts} +1 -1
  380. package/dist/{server-components-status.d-DnmipSb3.d.mts → server-components-status.d-CqxtJmqP.d.mts} +1 -1
  381. package/dist/server-fn-client.cjs +1 -1
  382. package/dist/server-fn-client.mjs +1 -1
  383. package/dist/server-fn.cjs +1 -1
  384. package/dist/server-fn.mjs +1 -1
  385. package/dist/server-plugins.cjs +3 -3
  386. package/dist/server-plugins.d.mts +4 -4
  387. package/dist/server-plugins.d.ts +4 -4
  388. package/dist/server-plugins.mjs +2 -2
  389. package/dist/server-query-client.cjs +1 -1
  390. package/dist/server-query-client.mjs +1 -1
  391. package/dist/server-query.cjs +1 -1
  392. package/dist/server-query.mjs +1 -1
  393. package/dist/server.cjs +99 -72
  394. package/dist/server.d.mts +13 -13
  395. package/dist/server.d.ts +13 -13
  396. package/dist/server.mjs +57 -30
  397. package/dist/{session-ASQTJNBK.mjs → session-AK2OA5UZ.mjs} +4 -3
  398. package/dist/session-H4TWP73H.cjs +24 -0
  399. package/dist/{spa-router.d-DXm5J9rM.d.mts → spa-router.d-BLE188EL.d.mts} +2 -2
  400. package/dist/{spa-router.d-cppVufl2.d.ts → spa-router.d-C3LzwTlY.d.ts} +2 -2
  401. package/dist/{ssg.d-CI5OFl8H.d.ts → ssg.d-DisOfj0I.d.ts} +2 -2
  402. package/dist/{ssg.d-Duzy1wQc.d.mts → ssg.d-QrFyU6T4.d.mts} +2 -2
  403. package/dist/storage.cjs +8 -3
  404. package/dist/storage.d.mts +260 -38
  405. package/dist/storage.d.ts +260 -38
  406. package/dist/storage.mjs +7 -2
  407. package/dist/testing.cjs +4 -4
  408. package/dist/testing.d.mts +2 -2
  409. package/dist/testing.d.ts +2 -2
  410. package/dist/testing.mjs +4 -4
  411. package/dist/theme/client.cjs +1 -1
  412. package/dist/theme/client.mjs +1 -1
  413. package/dist/theme/index.cjs +1 -1
  414. package/dist/theme/index.mjs +1 -1
  415. package/dist/theme/runtime.cjs +1 -1
  416. package/dist/theme/runtime.mjs +1 -1
  417. package/dist/theme/server.cjs +1 -1
  418. package/dist/theme/server.mjs +1 -1
  419. package/dist/{types.d-D5cY6XjK.d.mts → types.d-DW2vyaUq.d.mts} +26 -4
  420. package/dist/{types.d-D5cY6XjK.d.ts → types.d-DW2vyaUq.d.ts} +26 -4
  421. package/dist/{utils.d-D3dfy8zh.d.ts → utils.d-7YcgfTCK.d.ts} +1 -1
  422. package/dist/{utils.d-CNI-I8ZV.d.mts → utils.d-BlWZFgdL.d.mts} +1 -1
  423. package/dist/version.cjs +3 -3
  424. package/dist/version.mjs +2 -2
  425. package/dist/vite.cjs +23 -22
  426. package/dist/vite.d.mts +7 -7
  427. package/dist/vite.d.ts +7 -7
  428. package/dist/vite.mjs +22 -21
  429. package/dist/workflows.cjs +3 -3
  430. package/dist/workflows.mjs +2 -2
  431. package/package.json +4 -6
  432. package/dist/analyzer-KFJGYJS7.cjs +0 -16
  433. package/dist/chunk-BTZ5O6VM.cjs +0 -14
  434. package/dist/chunk-Y6FXYEAI.mjs +0 -10
  435. package/dist/layers-7P4RLKVX.cjs +0 -20
  436. package/dist/session-ACVUJ5XV.cjs +0 -23
  437. package/dist/{chunk-WW62HKA2.cjs → chunk-4SLHSODZ.cjs} +2 -2
  438. package/dist/{chunk-LSHUCNIF.mjs → chunk-522K362I.mjs} +0 -0
  439. package/dist/{chunk-OWO7KDZ3.cjs → chunk-AOTD2N5P.cjs} +0 -0
  440. package/dist/{chunk-22T75EML.cjs → chunk-CUZT7474.cjs} +0 -0
  441. package/dist/{chunk-6MNDFNZW.mjs → chunk-JKFN3YVG.mjs} +0 -0
  442. package/dist/{chunk-YTNE4KGC.cjs → chunk-MALGIHIC.cjs} +0 -0
  443. package/dist/{chunk-UOE6ZZZP.mjs → chunk-Q3DO7MVK.mjs} +0 -0
  444. package/dist/{chunk-GAAK3HDZ.mjs → chunk-XT2CHTDN.mjs} +3 -3
@@ -1,3 +1,7 @@
1
+ import {
2
+ isMountSchema
3
+ } from "./chunk-DS2KZ5BT.mjs";
4
+
1
5
  // src/storage/managed-sqlite.ts
2
6
  function managedSqliteName(mount, managed) {
3
7
  const name = managed === true ? mount : managed && typeof managed === "object" && "name" in managed ? managed.name : void 0;
@@ -14,7 +18,7 @@ function secureUrl(value) {
14
18
  throw new Error("Use HTTPS or a loopback URL for Farm managed SQLite.");
15
19
  return url;
16
20
  }
17
- async function requestSqliteResource(name, operation) {
21
+ async function requestSqliteResource(name, operation, declarations) {
18
22
  const key = process.env.FARMJS_API_KEY;
19
23
  if (!key) throw new Error("Set FARMJS_API_KEY on the server to access managed SQLite.");
20
24
  const base = secureUrl(process.env.FARMJS_API_URL || "https://app.farmjs.dev");
@@ -29,7 +33,7 @@ async function requestSqliteResource(name, operation) {
29
33
  const response = await fetch(new URL("/api/storage/sqlite/" + operation, base), {
30
34
  method: operation === "token" ? "POST" : "PUT",
31
35
  headers,
32
- body: JSON.stringify({ name }),
36
+ body: JSON.stringify(operation === "provision" ? { name, declarations } : { name }),
33
37
  redirect: "error",
34
38
  signal: AbortSignal.timeout(15e3)
35
39
  });
@@ -75,7 +79,8 @@ async function connect(name, loadClient) {
75
79
  });
76
80
  }
77
81
  var databaseAccessor = /* @__PURE__ */ Symbol.for("farmjs.storage.managedDatabase");
78
- function managedSqliteDriver(name, loadClient) {
82
+ var mountSchema = /* @__PURE__ */ Symbol.for("farmjs.storage.managedSchema");
83
+ function managedSqliteDriver(name, loadClient, schema) {
79
84
  let pending;
80
85
  let initialized;
81
86
  let closed = false;
@@ -100,6 +105,7 @@ function managedSqliteDriver(name, loadClient) {
100
105
  return {
101
106
  name: "farm-managed-sqlite",
102
107
  [databaseAccessor]: client,
108
+ [mountSchema]: schema,
103
109
  async hasItem(key) {
104
110
  return (await (await kv()).execute({ sql: "SELECT 1 FROM _farm_kv WHERE key=?", args: [key] })).rows.length > 0;
105
111
  },
@@ -287,6 +293,7 @@ function extractDriverOptions(config) {
287
293
  client: _client,
288
294
  driver: _driver,
289
295
  mounts: _mounts,
296
+ managed: _managed,
290
297
  options,
291
298
  tableName: _tableName,
292
299
  ...inlineOptions
@@ -332,11 +339,13 @@ async function resolveDriver(config, mount) {
332
339
  if (config && isStorageClient(config)) {
333
340
  return config.resolveDriver();
334
341
  }
335
- if (config?.driver === "farm-managed-sqlite") {
342
+ const hosted = resolveManagedStorageMount(config);
343
+ if (hosted) {
336
344
  if (!mount) throw new TypeError("Register managed SQLite in storage.mounts.");
337
345
  return managedSqliteDriver(
338
- managedSqliteName(mount, config.managed),
339
- () => loadModule("@libsql/client/http")
346
+ managedSqliteName(mount, hosted.managed),
347
+ () => import("./libsql-http-2QD224YS.mjs"),
348
+ hosted.schema
340
349
  );
341
350
  }
342
351
  const driverInput = config?.driver ?? "memory";
@@ -421,12 +430,17 @@ function createStorageClientFromResolver(resolveDriver2, modules = []) {
421
430
  function defineStorageClient(resolveDriver2) {
422
431
  return createStorageClientFromResolver(resolveDriver2);
423
432
  }
424
- function createStorageClient(config) {
433
+ function configuredStorageClient(config) {
434
+ const hosted = resolveManagedStorageMount(config);
435
+ if (hosted) return hosted;
425
436
  return createStorageClientFromResolver(
426
437
  () => resolveDriver(config),
427
438
  _collectFarmStorageModules(config)
428
439
  );
429
440
  }
441
+ function createStorageClient(config) {
442
+ return configuredStorageClient(config);
443
+ }
430
444
  function driverStorage(driver) {
431
445
  return defineStorageClient(() => typeof driver === "function" ? driver() : driver);
432
446
  }
@@ -440,105 +454,96 @@ function databaseStorage(database, options = {}) {
440
454
  return driver;
441
455
  }, ["unstorage/drivers/db0"]);
442
456
  }
443
- function memoryStorage() {
444
- return createStorageClient({ driver: "memory" });
445
- }
446
- function localStorage(options = {}) {
447
- return createStorageClient({
448
- driver: "local",
449
- ...options
450
- });
451
- }
452
- function sqliteStorage(options) {
453
- if ("managed" in options) {
454
- if (Object.keys(options).some((key) => key !== "managed"))
455
- throw new TypeError("Supply only managed when Farm provisions SQLite.");
456
- if (options.managed !== true) managedSqliteName("", options.managed);
457
- return { driver: "farm-managed-sqlite", managed: options.managed };
457
+ function assertMountSchema(schema) {
458
+ if (schema !== void 0 && !isMountSchema(schema)) {
459
+ throw new TypeError("Pass a schema created with defineSchema() from @farming-labs/orm.");
458
460
  }
459
- return createStorageClient({
460
- driver: "sqlite",
461
- ...options
462
- });
463
- }
464
- function mysqlStorage(options) {
465
- return createStorageClient({
466
- driver: "mysql",
467
- ...options
468
- });
469
- }
470
- function mysql2Storage(options) {
471
- return mysqlStorage(options);
472
- }
473
- function postgresStorage(options) {
474
- return createStorageClient({
475
- driver: "postgres",
476
- ...options
477
- });
478
- }
479
- function pgStorage(options) {
480
- return postgresStorage(options);
481
- }
482
- function pgliteStorage(options) {
483
- return createStorageClient({
484
- driver: "pglite",
485
- ...options
486
- });
487
- }
488
- function planetscaleStorage(options) {
489
- return createStorageClient({
490
- driver: "planetscale",
491
- ...options
492
- });
493
- }
494
- function libsqlStorage(options) {
495
- return createStorageClient({
496
- driver: "libsql",
497
- ...options
498
- });
499
- }
500
- function redisStorage(options) {
501
- return createStorageClient({
502
- driver: "redis",
503
- ...options
504
- });
505
- }
506
- function s3Storage(options) {
507
- return createStorageClient({
508
- driver: "s3",
509
- ...options
510
- });
511
- }
512
- function mongodbStorage(options) {
513
- return createStorageClient({
514
- driver: "mongodb",
515
- ...options
516
- });
517
461
  }
518
- function upstashStorage(options) {
519
- return createStorageClient({
520
- driver: "upstash",
521
- ...options
522
- });
462
+ function farmStorage(options = {}) {
463
+ if (!options || typeof options !== "object" || Array.isArray(options) || Object.keys(options).some((key) => key !== "namespace" && key !== "managed" && key !== "schema"))
464
+ throw new TypeError(
465
+ "Use farmStorage() or pass only the `managed`, `namespace`, and `schema` options."
466
+ );
467
+ if (options.managed !== void 0 && options.managed !== true)
468
+ throw new TypeError("Set `managed` to true or omit it when using farmStorage().");
469
+ assertMountSchema(options.schema);
470
+ return createManagedMount(options.namespace, options.schema, "farm");
471
+ }
472
+ function createManagedMount(namespace, schema, declaredDriver) {
473
+ const managed = namespace === void 0 ? true : { name: namespace };
474
+ if (managed !== true) managedSqliteName("", managed);
475
+ return {
476
+ driver: "farm-managed-sqlite",
477
+ managed,
478
+ ...declaredDriver && { declaredDriver },
479
+ ...schema && { schema }
480
+ };
523
481
  }
524
- function netlifyBlobsStorage(options) {
525
- return createStorageClient({
526
- driver: "netlify-blobs",
527
- ...options
528
- });
482
+ function resolveManagedStorageMount(config) {
483
+ if (!config || typeof config !== "object") return;
484
+ if ("schema" in config && isMountSchema(config.schema) && (!("managed" in config) || !config.managed)) {
485
+ throw new TypeError(
486
+ "Set `managed: true` or use farmStorage({ schema }) to bind an ORM schema."
487
+ );
488
+ }
489
+ if (!("managed" in config)) {
490
+ if ("driver" in config && config.driver === "farm-managed-sqlite")
491
+ throw new TypeError("Set `managed` to true on a hosted storage mount.");
492
+ return;
493
+ }
494
+ const { driver, managed, ...options } = config;
495
+ if ((managed === false || managed === void 0) && driver !== "farm-managed-sqlite") return;
496
+ if (driver !== "farm-managed-sqlite" && !isHostedDriver(driver))
497
+ throw new TypeError("Select a built-in storage driver to use `managed: true`.");
498
+ const declaredDriver = driver === "farm-managed-sqlite" ? options.declaredDriver : driver;
499
+ if (driver === "farm-managed-sqlite") {
500
+ delete options.declaredDriver;
501
+ if (declaredDriver !== void 0 && declaredDriver !== "farm" && !isHostedDriver(declaredDriver))
502
+ throw new TypeError("Use a known storage driver in the managed mount descriptor.");
503
+ }
504
+ if (Object.keys(options).some((key) => key !== "namespace" && key !== "schema"))
505
+ throw new TypeError(
506
+ "Remove provider connection settings and driver options when using `managed: true`."
507
+ );
508
+ assertMountSchema(options.schema);
509
+ let namespace;
510
+ if (managed === true) namespace = options.namespace;
511
+ else if ((driver === "sqlite" || driver === "farm-managed-sqlite") && !("namespace" in options))
512
+ namespace = managedSqliteName("", managed);
513
+ else
514
+ throw new TypeError("Set `managed` to true and use `namespace` to select a hosted resource.");
515
+ return createManagedMount(
516
+ namespace,
517
+ options.schema,
518
+ typeof declaredDriver === "string" ? declaredDriver : void 0
519
+ );
529
520
  }
530
- function vercelKVStorage(options) {
531
- return createStorageClient({
532
- driver: "vercel-kv",
533
- ...options
534
- });
521
+ function isHostedDriver(driver) {
522
+ return typeof driver === "string" && (driver === "local" || driver === "vercel-kv" || Object.prototype.hasOwnProperty.call(DATABASE_CONNECTORS, driver) || driver !== "db0" && Object.prototype.hasOwnProperty.call(builtinDrivers, driver));
535
523
  }
536
- function vercelBlobStorage(options) {
537
- return createStorageClient({
538
- driver: "vercel-blob",
539
- ...options
540
- });
524
+ function providerStorage(driver) {
525
+ function storage(options) {
526
+ return configuredStorageClient({ ...options, driver });
527
+ }
528
+ return storage;
541
529
  }
530
+ var memoryStorage = providerStorage("memory");
531
+ var localStorage = providerStorage("local");
532
+ var sqliteStorage = providerStorage("sqlite");
533
+ var mysqlStorage = providerStorage("mysql");
534
+ var mysql2Storage = mysqlStorage;
535
+ var postgresStorage = providerStorage("postgres");
536
+ var pgStorage = postgresStorage;
537
+ var pgliteStorage = providerStorage("pglite");
538
+ var planetscaleStorage = providerStorage("planetscale");
539
+ var libsqlStorage = providerStorage("libsql");
540
+ var redisStorage = providerStorage("redis");
541
+ var s3Storage = providerStorage("s3");
542
+ var mongodbStorage = providerStorage("mongodb");
543
+ var upstashStorage = providerStorage("upstash");
544
+ var netlifyBlobsStorage = providerStorage("netlify-blobs");
545
+ var vercelKVStorage = providerStorage("vercel-kv");
546
+ var vercelBlobStorage = providerStorage("vercel-blob");
542
547
  function collectDriverModules(config, modules) {
543
548
  if (!config || typeof config !== "object") return;
544
549
  if (isStorageClient(config)) {
@@ -549,10 +554,8 @@ function collectDriverModules(config, modules) {
549
554
  if (isStorageInstance(config)) return;
550
555
  const source = config;
551
556
  const driver = source.driver;
552
- if (typeof driver === "string") {
553
- if (driver === "farm-managed-sqlite") {
554
- modules.add("@libsql/client/http");
555
- } else if (isDatabaseDriverName(driver)) {
557
+ if (typeof driver === "string" && !resolveManagedStorageMount(config)) {
558
+ if (isDatabaseDriverName(driver)) {
556
559
  modules.add("db0");
557
560
  modules.add(DATABASE_CONNECTORS[driver].module);
558
561
  modules.add("unstorage/drivers/db0");
@@ -629,7 +632,9 @@ async function getDatabase(name, options) {
629
632
  "Configure a managed SQLite mount named " + JSON.stringify(name) + " before calling getDatabase()."
630
633
  );
631
634
  const client = await driver[databaseAccessor]();
632
- return options ? managedOrm(client, options.schema) : client;
635
+ if (options && "raw" in options) return client;
636
+ const schema = options?.schema ?? driver[mountSchema];
637
+ return schema ? managedOrm(client, schema) : client;
633
638
  }
634
639
  function getStorage(namespace) {
635
640
  globalStorage = getActiveGlobalStorage();
@@ -702,6 +707,8 @@ export {
702
707
  createStorageClient,
703
708
  driverStorage,
704
709
  databaseStorage,
710
+ farmStorage,
711
+ resolveManagedStorageMount,
705
712
  memoryStorage,
706
713
  localStorage,
707
714
  sqliteStorage,
@@ -3,7 +3,7 @@
3
3
  var _chunkSHIWRBFIcjs = require('./chunk-SHIWRBFI.cjs');
4
4
 
5
5
 
6
- var _chunkUBXNTZCYcjs = require('./chunk-UBXNTZCY.cjs');
6
+ var _chunkEVVV2XZ2cjs = require('./chunk-EVVV2XZ2.cjs');
7
7
 
8
8
  // src/mobile/session.ts
9
9
  var FARM_MOBILE_SESSION_PLUGIN = "farm:mobile-session";
@@ -176,7 +176,7 @@ function createFarmMobileSessionPlugin(options) {
176
176
  const refreshTtl = (_nullishCoalesce(options.refreshTokenTtl, () => ( 30 * 24 * 60 * 60))) * 1e3;
177
177
  const nonceTtl = (_nullishCoalesce(options.nonceTtl, () => ( 60))) * 1e3;
178
178
  const now = _nullishCoalesce(options.now, () => ( Date.now));
179
- const store = () => _nullishCoalesce(_optionalChain([options, 'access', _6 => _6.storage, 'optionalCall', _7 => _7()]), () => ( _chunkUBXNTZCYcjs.getStorage.call(void 0, STORAGE_NAMESPACE)));
179
+ const store = () => _nullishCoalesce(_optionalChain([options, 'access', _6 => _6.storage, 'optionalCall', _7 => _7()]), () => ( _chunkEVVV2XZ2cjs.getStorage.call(void 0, STORAGE_NAMESPACE)));
180
180
  let warnedNoReader = false;
181
181
  function sessionReader() {
182
182
  for (const integration of Object.values(_nullishCoalesce(options.integrations(), () => ( {})))) {
@@ -9,7 +9,7 @@ var _chunk67MZTLTFcjs = require('./chunk-67MZTLTF.cjs');
9
9
  var _chunkQYOAGT3Ecjs = require('./chunk-QYOAGT3E.cjs');
10
10
 
11
11
 
12
- var _chunkYTNE4KGCcjs = require('./chunk-YTNE4KGC.cjs');
12
+ var _chunkMALGIHICcjs = require('./chunk-MALGIHIC.cjs');
13
13
 
14
14
 
15
15
  var _chunkGC5ROI3Acjs = require('./chunk-GC5ROI3A.cjs');
@@ -174,7 +174,7 @@ async function scanRoutePatterns(options) {
174
174
  );
175
175
  }
176
176
  }
177
- for (const route of await _chunkYTNE4KGCcjs.discoverProgrammaticRoutePaths.call(void 0, source.root, source.srcDir)) {
177
+ for (const route of await _chunkMALGIHICcjs.discoverProgrammaticRoutePaths.call(void 0, source.root, source.srcDir)) {
178
178
  pages.add(route);
179
179
  modules.add(route);
180
180
  }
@@ -9,10 +9,10 @@ var _chunkKBGZ5FD6cjs = require('./chunk-KBGZ5FD6.cjs');
9
9
  var _chunkP2355C6Ecjs = require('./chunk-P2355C6E.cjs');
10
10
 
11
11
 
12
- var _chunkHFJLMALCcjs = require('./chunk-HFJLMALC.cjs');
12
+ var _chunk5DREJN4Gcjs = require('./chunk-5DREJN4G.cjs');
13
13
 
14
14
 
15
- var _chunkYTNE4KGCcjs = require('./chunk-YTNE4KGC.cjs');
15
+ var _chunkMALGIHICcjs = require('./chunk-MALGIHIC.cjs');
16
16
 
17
17
 
18
18
  var _chunkSBDWCDS6cjs = require('./chunk-SBDWCDS6.cjs');
@@ -148,7 +148,7 @@ function farmApiPlugin(options = {}) {
148
148
  const existing = apiRoutesCache.get(routePath);
149
149
  const existingFile = _optionalChain([endpointSources, 'access', _4 => _4.get, 'call', _5 => _5(routePath), 'optionalAccess', _6 => _6.get, 'call', _7 => _7(normalizedMethod)]);
150
150
  if (existingFile) {
151
- throw new (0, _chunkHFJLMALCcjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
151
+ throw new (0, _chunk5DREJN4Gcjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
152
152
  }
153
153
  if (existing) {
154
154
  if (!existing.methods.includes(normalizedMethod)) {
@@ -323,7 +323,7 @@ function farmApiPlugin(options = {}) {
323
323
  log(`API route discovered: ${availableMethods.join(", ")} ${routePath}`);
324
324
  }
325
325
  } catch (e) {
326
- if (e instanceof _chunkHFJLMALCcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
326
+ if (e instanceof _chunk5DREJN4Gcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
327
327
  log(`API route load failed at ${filePath}: ${e.message}`);
328
328
  }
329
329
  }
@@ -350,7 +350,7 @@ function farmApiPlugin(options = {}) {
350
350
  }
351
351
  }
352
352
  } catch (e) {
353
- if (e instanceof _chunkHFJLMALCcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
353
+ if (e instanceof _chunk5DREJN4Gcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
354
354
  log(`Root routes.ts load failed: ${e.message}`);
355
355
  }
356
356
  break;
@@ -360,7 +360,7 @@ function farmApiPlugin(options = {}) {
360
360
  const discoverProgrammaticRoutes = async () => {
361
361
  const path = await import("path");
362
362
  const srcRoot = path.join(server.config.root, srcDir);
363
- const routeFiles = _chunkYTNE4KGCcjs.findProgrammaticRouteFilesInDir.call(void 0, srcRoot);
363
+ const routeFiles = _chunkMALGIHICcjs.findProgrammaticRouteFilesInDir.call(void 0, srcRoot);
364
364
  if (routeFiles.length === 0) return;
365
365
  const { getProgrammaticRouteManifest } = await import("./routes.cjs");
366
366
  for (const routeFile of routeFiles) {
@@ -381,7 +381,7 @@ function farmApiPlugin(options = {}) {
381
381
  }
382
382
  }
383
383
  } catch (e) {
384
- if (e instanceof _chunkHFJLMALCcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
384
+ if (e instanceof _chunk5DREJN4Gcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
385
385
  log(`Programmatic routes file load failed at ${routeFile}: ${e.message}`);
386
386
  }
387
387
  }
@@ -606,7 +606,7 @@ function farmApiPlugin(options = {}) {
606
606
  log(`API router recreated`);
607
607
  } catch (e) {
608
608
  restoreRouteState(previousState);
609
- if (e instanceof _chunkHFJLMALCcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
609
+ if (e instanceof _chunk5DREJN4Gcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
610
610
  log(`Root routes.ts HMR failed: ${e.message}`);
611
611
  }
612
612
  return [];
@@ -644,7 +644,7 @@ function farmApiPlugin(options = {}) {
644
644
  log(`API router recreated`);
645
645
  } catch (e) {
646
646
  restoreRouteState(previousState);
647
- if (e instanceof _chunkHFJLMALCcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
647
+ if (e instanceof _chunk5DREJN4Gcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
648
648
  log(`API route HMR failed: ${e.message}`);
649
649
  }
650
650
  return [];
@@ -38,7 +38,7 @@ import {
38
38
  import {
39
39
  loadFarmConfigFile,
40
40
  resolveFarmLayers
41
- } from "./chunk-E7VF3LQ5.mjs";
41
+ } from "./chunk-4STJ6LGR.mjs";
42
42
  import {
43
43
  isFarmRendererDisabled,
44
44
  isReactRenderer,
@@ -70,13 +70,13 @@ import {
70
70
  } from "./chunk-MGKWYPE3.mjs";
71
71
  import {
72
72
  resolveWorkflowsConfig
73
- } from "./chunk-3AJQFVWW.mjs";
73
+ } from "./chunk-OGVOKAQU.mjs";
74
74
  import {
75
75
  resolveFarmThemeConfig
76
76
  } from "./chunk-YWPNIYUP.mjs";
77
77
  import {
78
78
  resolveIntegrationPlugins
79
- } from "./chunk-6MNDFNZW.mjs";
79
+ } from "./chunk-JKFN3YVG.mjs";
80
80
  import {
81
81
  compileMiddlewareConfig
82
82
  } from "./chunk-EDPENAVO.mjs";
@@ -1120,12 +1120,12 @@ async function resolveConfig(userConfig, mode) {
1120
1120
  userConfig.deploymentId || process.env.FARM_DEPLOYMENT_ID || process.env.VERCEL_GIT_COMMIT_SHA || process.env.CF_PAGES_COMMIT_SHA || (mode === "production" ? await generateBuildId() : "development")
1121
1121
  );
1122
1122
  const basePath = normalizeFarmConfigBasePath(userConfig.basePath);
1123
- const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-ASQTJNBK.mjs")).createFarmMobileSessionPlugin({
1123
+ const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-AK2OA5UZ.mjs")).createFarmMobileSessionPlugin({
1124
1124
  basePath,
1125
1125
  integrations: () => integrations
1126
1126
  }) : null;
1127
1127
  let nativeServerFnAppDirs = [];
1128
- const nativeServerFnPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./native-server-fn-handler-LII4MDRR.mjs")).createFarmNativeServerFnPlugin({
1128
+ const nativeServerFnPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./native-server-fn-handler-WYYY4YBN.mjs")).createFarmNativeServerFnPlugin({
1129
1129
  resolve: (await import("./internal/native-server-fns.mjs")).createFarmDevNativeServerFnResolver(
1130
1130
  { root, srcDir, appDirs: () => nativeServerFnAppDirs }
1131
1131
  )
@@ -1233,7 +1233,7 @@ async function resolveConfig(userConfig, mode) {
1233
1233
  };
1234
1234
  assertPluginDependencies(resolved.plugins, resolved.integrations);
1235
1235
  if (nativeServerFnPlugin) {
1236
- nativeServerFnAppDirs = (await import("./layers-XQ7VFMWO.mjs")).getFarmAppDirectories(resolved);
1236
+ nativeServerFnAppDirs = (await import("./layers-5ZD4764G.mjs")).getFarmAppDirectories(resolved);
1237
1237
  }
1238
1238
  return resolved;
1239
1239
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkHKGU2X4Icjs = require('./chunk-HKGU2X4I.cjs');
4
+ var _chunkZCYGYIC2cjs = require('./chunk-ZCYGYIC2.cjs');
5
5
 
6
6
 
7
7
  var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
@@ -64,7 +64,7 @@ function findFarmNativeScreenFiles(appDirs) {
64
64
  }
65
65
  function collectFarmNativeServerFns(options) {
66
66
  const { root, srcDir } = options;
67
- const aliases = _chunkHKGU2X4Icjs.readAliases.call(void 0, root, srcDir);
67
+ const aliases = _chunkZCYGYIC2cjs.readAliases.call(void 0, root, srcDir);
68
68
  const seen = /* @__PURE__ */ new Set();
69
69
  const found = /* @__PURE__ */ new Map();
70
70
  const queue = [...options.entries];
@@ -98,7 +98,7 @@ function collectFarmNativeServerFns(options) {
98
98
  }
99
99
  }
100
100
  for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
101
- const resolved = _chunkHKGU2X4Icjs.resolveFile.call(void 0, candidate);
101
+ const resolved = _chunkZCYGYIC2cjs.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,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// package.json
2
- var version = "0.1.76";
2
+ var version = "0.1.78";
3
3
 
4
4
  // src/version.ts
5
5
  var FARM_VERSION = version;
@@ -3,7 +3,7 @@
3
3
  var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
4
4
 
5
5
 
6
- var _chunkOWO7KDZ3cjs = require('./chunk-OWO7KDZ3.cjs');
6
+ var _chunkAOTD2N5Pcjs = require('./chunk-AOTD2N5P.cjs');
7
7
 
8
8
 
9
9
 
@@ -284,7 +284,7 @@ function isArrayIndex(key) {
284
284
  // src/plugin-server-runtime.ts
285
285
  function hasFarmServerRuntimePlugins(plugins) {
286
286
  return (plugins || []).some((plugin) => {
287
- if (_chunkOWO7KDZ3cjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) === false) return false;
287
+ if (_chunkAOTD2N5Pcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) === false) return false;
288
288
  return Boolean(
289
289
  plugin.setup || plugin.init || plugin.ready || plugin.shutdown || plugin.runtime || plugin.router || plugin.render || plugin.beforeRouteMatch || plugin.afterRouteMatch || plugin.beforeRender || plugin.afterRender || plugin.onError || plugin.transformHTML
290
290
  );