@farm.js/core 0.1.0-beta.95 → 0.1.0-beta.97

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 (317) hide show
  1. package/dist/after.cjs +1 -1
  2. package/dist/after.mjs +1 -1
  3. package/dist/agent-runtime.d.mts +3 -2
  4. package/dist/agent-runtime.d.ts +3 -2
  5. package/dist/api/route-manager.cjs +43 -4
  6. package/dist/api/route-manager.d.mts +4 -3
  7. package/dist/api/route-manager.d.ts +4 -3
  8. package/dist/api/route-manager.mjs +7 -7
  9. package/dist/api/runtime.cjs +43 -4
  10. package/dist/api/runtime.d.mts +1 -1
  11. package/dist/api/runtime.d.ts +1 -1
  12. package/dist/api/runtime.mjs +5 -5
  13. package/dist/api.cjs +352 -109
  14. package/dist/api.d.mts +7 -6
  15. package/dist/api.d.ts +7 -6
  16. package/dist/api.mjs +19 -12
  17. package/dist/{app-CIIEvA4r.d.ts → app-CIOx3LvY.d.ts} +4 -4
  18. package/dist/{app-O4AEC1OH.d.mts → app-DBd6437H.d.mts} +4 -4
  19. package/dist/app-markdown.d.mts +4 -3
  20. package/dist/app-markdown.d.ts +4 -3
  21. package/dist/cache.cjs +42 -4
  22. package/dist/cache.d.mts +68 -1
  23. package/dist/cache.d.ts +68 -1
  24. package/dist/cache.mjs +3 -3
  25. package/dist/{chunk-AXVJCMVF.mjs → chunk-2HDOV47R.mjs} +3 -3
  26. package/dist/chunk-2HDOV47R.mjs.map +1 -0
  27. package/dist/{chunk-RBRLLZL5.mjs → chunk-34IAPZBG.mjs} +16 -3
  28. package/dist/chunk-34IAPZBG.mjs.map +1 -0
  29. package/dist/{chunk-VV24CC42.mjs → chunk-35NPLKQJ.mjs} +2 -2
  30. package/dist/{chunk-D7QH7MDU.mjs → chunk-3TWQERDE.mjs} +5 -4
  31. package/dist/chunk-3TWQERDE.mjs.map +1 -0
  32. package/dist/{chunk-RWYRFCLG.mjs → chunk-4X57GXQA.mjs} +2 -2
  33. package/dist/{chunk-KOTSX5JH.mjs → chunk-52BR7LTX.mjs} +30 -21
  34. package/dist/chunk-52BR7LTX.mjs.map +1 -0
  35. package/dist/{chunk-SALMKQXH.mjs → chunk-6EJHNHH4.mjs} +80 -27
  36. package/dist/chunk-6EJHNHH4.mjs.map +1 -0
  37. package/dist/{chunk-ZFNK77WN.mjs → chunk-6JNGOC37.mjs} +2 -2
  38. package/dist/{after.cjs.map → chunk-6JNGOC37.mjs.map} +1 -1
  39. package/dist/{chunk-MOW47IF5.mjs → chunk-6UYVU46O.mjs} +2 -2
  40. package/dist/{chunk-7MABZJIM.mjs → chunk-7PYVLJ4J.mjs} +1 -1
  41. package/dist/chunk-7PYVLJ4J.mjs.map +1 -0
  42. package/dist/{chunk-FLHLPB57.mjs → chunk-D7F7YZ7L.mjs} +93 -67
  43. package/dist/chunk-D7F7YZ7L.mjs.map +1 -0
  44. package/dist/chunk-DU3PKDVQ.mjs +35 -0
  45. package/dist/chunk-DU3PKDVQ.mjs.map +1 -0
  46. package/dist/{chunk-SCFX4UTD.mjs → chunk-EHTUKVSW.mjs} +1 -1
  47. package/dist/chunk-EHTUKVSW.mjs.map +1 -0
  48. package/dist/{chunk-KWCNQUH5.mjs → chunk-EPDIF432.mjs} +526 -50
  49. package/dist/chunk-EPDIF432.mjs.map +1 -0
  50. package/dist/{chunk-A3636IHN.mjs → chunk-FP5Q67FO.mjs} +167 -96
  51. package/dist/chunk-FP5Q67FO.mjs.map +1 -0
  52. package/dist/{chunk-HHZAOTQD.mjs → chunk-GJ7W6LNK.mjs} +7 -6
  53. package/dist/chunk-GJ7W6LNK.mjs.map +1 -0
  54. package/dist/{chunk-RLGUZ3HS.mjs → chunk-I3OOUWO5.mjs} +3 -3
  55. package/dist/{chunk-75CGAL6E.mjs → chunk-IZBX2TEU.mjs} +217 -105
  56. package/dist/chunk-IZBX2TEU.mjs.map +1 -0
  57. package/dist/{chunk-22VG4DFJ.mjs → chunk-J3MPQ4MQ.mjs} +2 -2
  58. package/dist/{chunk-22VG4DFJ.mjs.map → chunk-J3MPQ4MQ.mjs.map} +1 -1
  59. package/dist/{chunk-2LS3KKE7.mjs → chunk-JV7JUD7Q.mjs} +4 -4
  60. package/dist/{chunk-Q3OX763A.mjs → chunk-LXDASSTE.mjs} +2 -2
  61. package/dist/{chunk-ZRBCBOEX.mjs → chunk-N2FY2QZ7.mjs} +28 -3
  62. package/dist/chunk-N2FY2QZ7.mjs.map +1 -0
  63. package/dist/{chunk-MRVJCLYQ.mjs → chunk-PSQ7N4XP.mjs} +4 -2
  64. package/dist/chunk-PSQ7N4XP.mjs.map +1 -0
  65. package/dist/{chunk-HVG3HLQZ.mjs → chunk-Q7WGOOAI.mjs} +3 -3
  66. package/dist/{chunk-WTYAPO5I.mjs → chunk-RCNWMEBT.mjs} +3 -2
  67. package/dist/{chunk-WTYAPO5I.mjs.map → chunk-RCNWMEBT.mjs.map} +1 -1
  68. package/dist/{chunk-3INDBMUU.mjs → chunk-TGDIACZT.mjs} +2 -2
  69. package/dist/{chunk-WB75GIX2.mjs → chunk-TQTB33JS.mjs} +14 -3
  70. package/dist/chunk-TQTB33JS.mjs.map +1 -0
  71. package/dist/{chunk-MH27UH72.mjs → chunk-TT3E2JOF.mjs} +3 -3
  72. package/dist/{chunk-UWRGX3J3.mjs → chunk-UMUWR5XA.mjs} +2 -2
  73. package/dist/{chunk-XTLLHCWU.mjs → chunk-V4VRLVLW.mjs} +52 -31
  74. package/dist/chunk-V4VRLVLW.mjs.map +1 -0
  75. package/dist/{chunk-EXCGBERG.mjs → chunk-WD2EBM3I.mjs} +79 -17
  76. package/dist/chunk-WD2EBM3I.mjs.map +1 -0
  77. package/dist/{chunk-DLBUAJTK.mjs → chunk-WMJGA32P.mjs} +74 -5
  78. package/dist/chunk-WMJGA32P.mjs.map +1 -0
  79. package/dist/{chunk-TKQCJMY7.mjs → chunk-X4SFHKFH.mjs} +7 -4
  80. package/dist/{chunk-TKQCJMY7.mjs.map → chunk-X4SFHKFH.mjs.map} +1 -1
  81. package/dist/{chunk-Q7GPJZCO.mjs → chunk-YIBV77KZ.mjs} +26 -7
  82. package/dist/chunk-YIBV77KZ.mjs.map +1 -0
  83. package/dist/client/lifecycle.mjs +2 -2
  84. package/dist/{client-mcMC334J.d.mts → client-DWoLZ3QU.d.mts} +52 -5
  85. package/dist/{client-d5ONQ-Pd.d.ts → client-DuQuQC1h.d.ts} +52 -5
  86. package/dist/client-cache-BMxuFqwH.d.ts +18 -0
  87. package/dist/client-cache-CCK-fCe0.d.mts +18 -0
  88. package/dist/{client-plugins-BvClItiL.d.mts → client-plugins-B6-07YmP.d.mts} +52 -99
  89. package/dist/{client-plugins-B9Sq-iMg.d.ts → client-plugins-By6MVUX-.d.ts} +52 -99
  90. package/dist/client-plugins.cjs +1 -1
  91. package/dist/client-plugins.d.mts +3 -2
  92. package/dist/client-plugins.d.ts +3 -2
  93. package/dist/client-plugins.mjs +2 -2
  94. package/dist/client.cjs +1046 -211
  95. package/dist/client.d.mts +136 -18
  96. package/dist/client.d.ts +136 -18
  97. package/dist/client.mjs +32 -15
  98. package/dist/config.d.mts +3 -2
  99. package/dist/config.d.ts +3 -2
  100. package/dist/{devtools-S52RRRMN.mjs → devtools-XWZX6CCL.mjs} +5 -5
  101. package/dist/{devtools-client-3XRTBND5.mjs → devtools-client-Z7QQA3Q2.mjs} +56 -17
  102. package/dist/devtools-client-Z7QQA3Q2.mjs.map +1 -0
  103. package/dist/{devtools-ui-NJKFORTG.mjs → devtools-ui-2HG5M4EL.mjs} +3 -1
  104. package/dist/devtools-ui-2HG5M4EL.mjs.map +1 -0
  105. package/dist/docs.cjs +24 -5
  106. package/dist/docs.mjs +5 -5
  107. package/dist/i18n/server.cjs +13 -2
  108. package/dist/i18n/server.d.mts +2 -2
  109. package/dist/i18n/server.d.ts +2 -2
  110. package/dist/i18n/server.mjs +1 -1
  111. package/dist/index.cjs +1928 -894
  112. package/dist/index.d.mts +139 -21
  113. package/dist/index.d.ts +139 -21
  114. package/dist/index.mjs +57 -34
  115. package/dist/index.mjs.map +1 -1
  116. package/dist/integration-api-BT024nuJ.d.mts +97 -0
  117. package/dist/integration-api-BT024nuJ.d.ts +97 -0
  118. package/dist/integrations.d.mts +3 -2
  119. package/dist/integrations.d.ts +3 -2
  120. package/dist/internal/build-runtime.cjs +764 -547
  121. package/dist/internal/build-runtime.d.mts +5 -4
  122. package/dist/internal/build-runtime.d.ts +5 -4
  123. package/dist/internal/build-runtime.mjs +16 -16
  124. package/dist/internal/client-runtime.cjs +1 -1
  125. package/dist/internal/client-runtime.mjs +2 -2
  126. package/dist/internal/config-runtime.cjs +4 -1
  127. package/dist/internal/config-runtime.d.mts +4 -3
  128. package/dist/internal/config-runtime.d.ts +4 -3
  129. package/dist/internal/config-runtime.mjs +4 -4
  130. package/dist/internal/product-telemetry-runtime.cjs +1 -1
  131. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  132. package/dist/internal/production-runtime.cjs +29 -3
  133. package/dist/internal/production-runtime.d.mts +8 -7
  134. package/dist/internal/production-runtime.d.ts +8 -7
  135. package/dist/internal/production-runtime.mjs +5 -5
  136. package/dist/{metadata-route-yV4U6X8h.d.ts → metadata-route-8_V3UonT.d.ts} +1 -1
  137. package/dist/{metadata-route-p4K1l92V.d.mts → metadata-route-CWP_HjGU.d.mts} +1 -1
  138. package/dist/middleware.cjs +28 -2
  139. package/dist/middleware.d.mts +5 -4
  140. package/dist/middleware.d.ts +5 -4
  141. package/dist/middleware.mjs +4 -4
  142. package/dist/navigation.cjs +3 -1
  143. package/dist/navigation.mjs +3 -3
  144. package/dist/observability.cjs +27 -2
  145. package/dist/observability.mjs +1 -1
  146. package/dist/plugin.cjs +528 -349
  147. package/dist/plugin.d.mts +3 -2
  148. package/dist/plugin.d.ts +3 -2
  149. package/dist/plugin.mjs +13 -13
  150. package/dist/{production-runtime-IkB0Qj4i.d.mts → production-runtime-BGRH1dKG.d.mts} +1 -1
  151. package/dist/{production-runtime-0JTch4_d.d.ts → production-runtime-CdmzsDax.d.ts} +1 -1
  152. package/dist/query/client.cjs +68 -29
  153. package/dist/query/client.mjs +69 -30
  154. package/dist/query/client.mjs.map +1 -1
  155. package/dist/{render-plan-Dc8CjNI7.d.ts → render-plan-0GeHiGVZ.d.ts} +1 -1
  156. package/dist/{render-plan-CU31j-Jk.d.mts → render-plan-DLxJYAA5.d.mts} +1 -1
  157. package/dist/renderer-client.cjs +169 -26
  158. package/dist/renderer-client.d.mts +7 -6
  159. package/dist/renderer-client.d.ts +7 -6
  160. package/dist/renderer-client.mjs +16 -19
  161. package/dist/renderer-client.mjs.map +1 -1
  162. package/dist/{request-BXa1KY8i.d.mts → request-BCNXSXLh.d.mts} +1 -1
  163. package/dist/{request-CUUBujZt.d.ts → request-BstWbZ6O.d.ts} +1 -1
  164. package/dist/request.d.mts +4 -3
  165. package/dist/request.d.ts +4 -3
  166. package/dist/{route-Y8lfz1wF.d.ts → route-4pd-EVtw.d.ts} +45 -50
  167. package/dist/{route-Cq3aObmj.d.mts → route-CvEr4Uc9.d.mts} +45 -50
  168. package/dist/routes.cjs +27 -2
  169. package/dist/routes.d.mts +3 -2
  170. package/dist/routes.d.ts +3 -2
  171. package/dist/routes.mjs +4 -4
  172. package/dist/{runtime-j1S3sDTh.d.ts → runtime-BgDQzBiu.d.ts} +1 -0
  173. package/dist/{runtime-DDwvDtS4.d.mts → runtime-CV2UCV-5.d.mts} +1 -0
  174. package/dist/server-action-security.mjs +2 -2
  175. package/dist/server-fn-client.cjs +102 -26
  176. package/dist/server-fn-client.d.mts +6 -0
  177. package/dist/server-fn-client.d.ts +6 -0
  178. package/dist/server-fn-client.mjs +2 -1
  179. package/dist/server-fn.cjs +42 -4
  180. package/dist/server-fn.mjs +5 -5
  181. package/dist/server-plugins.d.mts +4 -3
  182. package/dist/server-plugins.d.ts +4 -3
  183. package/dist/server-query-client.cjs +195 -34
  184. package/dist/server-query-client.d.mts +3 -3
  185. package/dist/server-query-client.d.ts +3 -3
  186. package/dist/server-query-client.mjs +7 -7
  187. package/dist/{server-query-runtime-3zAj77yv.d.ts → server-query-runtime-DXRNhX_3.d.ts} +2 -0
  188. package/dist/{server-query-runtime-B50KAcj5.d.mts → server-query-runtime-aP52iuL5.d.mts} +2 -0
  189. package/dist/server-query.cjs +44 -5
  190. package/dist/server-query.d.mts +4 -0
  191. package/dist/server-query.d.ts +4 -0
  192. package/dist/server-query.mjs +7 -7
  193. package/dist/server.cjs +553 -370
  194. package/dist/server.d.mts +11 -10
  195. package/dist/server.d.ts +11 -10
  196. package/dist/server.mjs +17 -17
  197. package/dist/{spa-router-CyLkwst6.d.mts → spa-router-BeyAVSc6.d.mts} +1 -1
  198. package/dist/{spa-router-BkqGXaV_.d.ts → spa-router-COgu4txb.d.ts} +1 -1
  199. package/dist/testing.cjs +27 -2
  200. package/dist/testing.d.mts +3 -2
  201. package/dist/testing.d.ts +3 -2
  202. package/dist/testing.mjs +9 -9
  203. package/dist/{utils-NKR6SoNv.d.mts → utils-DL2VwDQl.d.mts} +1 -1
  204. package/dist/{utils-B2OHrb9F.d.ts → utils-DkU2c_1B.d.ts} +1 -1
  205. package/dist/version.cjs +1 -1
  206. package/dist/version.mjs +1 -1
  207. package/dist/vite.cjs +536 -353
  208. package/dist/vite.d.mts +3 -2
  209. package/dist/vite.d.ts +3 -2
  210. package/dist/vite.mjs +17 -13
  211. package/package.json +17 -17
  212. package/types/client.d.ts +115 -10
  213. package/dist/agent-runtime.cjs.map +0 -1
  214. package/dist/api/route-manager.cjs.map +0 -1
  215. package/dist/api/runtime.cjs.map +0 -1
  216. package/dist/api.cjs.map +0 -1
  217. package/dist/app-markdown.cjs.map +0 -1
  218. package/dist/cache.cjs.map +0 -1
  219. package/dist/chunk-75CGAL6E.mjs.map +0 -1
  220. package/dist/chunk-7MABZJIM.mjs.map +0 -1
  221. package/dist/chunk-A3636IHN.mjs.map +0 -1
  222. package/dist/chunk-AXVJCMVF.mjs.map +0 -1
  223. package/dist/chunk-D7QH7MDU.mjs.map +0 -1
  224. package/dist/chunk-DLBUAJTK.mjs.map +0 -1
  225. package/dist/chunk-EXCGBERG.mjs.map +0 -1
  226. package/dist/chunk-FLHLPB57.mjs.map +0 -1
  227. package/dist/chunk-HHZAOTQD.mjs.map +0 -1
  228. package/dist/chunk-KOTSX5JH.mjs.map +0 -1
  229. package/dist/chunk-KWCNQUH5.mjs.map +0 -1
  230. package/dist/chunk-MRVJCLYQ.mjs.map +0 -1
  231. package/dist/chunk-Q7GPJZCO.mjs.map +0 -1
  232. package/dist/chunk-RBRLLZL5.mjs.map +0 -1
  233. package/dist/chunk-SALMKQXH.mjs.map +0 -1
  234. package/dist/chunk-SCFX4UTD.mjs.map +0 -1
  235. package/dist/chunk-WB75GIX2.mjs.map +0 -1
  236. package/dist/chunk-XTLLHCWU.mjs.map +0 -1
  237. package/dist/chunk-ZFNK77WN.mjs.map +0 -1
  238. package/dist/chunk-ZRBCBOEX.mjs.map +0 -1
  239. package/dist/client/lifecycle.cjs.map +0 -1
  240. package/dist/client-cache-CopR_MaI.d.mts +0 -6
  241. package/dist/client-cache-Djy_TlE8.d.ts +0 -6
  242. package/dist/client-plugins.cjs.map +0 -1
  243. package/dist/client.cjs.map +0 -1
  244. package/dist/config.cjs.map +0 -1
  245. package/dist/cron.cjs.map +0 -1
  246. package/dist/deferred.cjs.map +0 -1
  247. package/dist/deployment.cjs.map +0 -1
  248. package/dist/devtools-client-3XRTBND5.mjs.map +0 -1
  249. package/dist/devtools-ui-NJKFORTG.mjs.map +0 -1
  250. package/dist/docs.cjs.map +0 -1
  251. package/dist/env-types.cjs.map +0 -1
  252. package/dist/env.cjs.map +0 -1
  253. package/dist/environment/vite.cjs.map +0 -1
  254. package/dist/environment.cjs.map +0 -1
  255. package/dist/font.cjs.map +0 -1
  256. package/dist/headers.cjs.map +0 -1
  257. package/dist/i18n/client.cjs.map +0 -1
  258. package/dist/i18n/index.cjs.map +0 -1
  259. package/dist/i18n/server.cjs.map +0 -1
  260. package/dist/image/server.cjs.map +0 -1
  261. package/dist/image/sharp.cjs.map +0 -1
  262. package/dist/image.cjs.map +0 -1
  263. package/dist/index.cjs.map +0 -1
  264. package/dist/instrumentation.cjs.map +0 -1
  265. package/dist/integrations.cjs.map +0 -1
  266. package/dist/internal/build-runtime.cjs.map +0 -1
  267. package/dist/internal/client-runtime.cjs.map +0 -1
  268. package/dist/internal/config-runtime.cjs.map +0 -1
  269. package/dist/internal/isolated-boundary.cjs.map +0 -1
  270. package/dist/internal/metadata-image-runtime.cjs.map +0 -1
  271. package/dist/internal/product-telemetry-runtime.cjs.map +0 -1
  272. package/dist/internal/production-node-env.cjs.map +0 -1
  273. package/dist/internal/production-runtime.cjs.map +0 -1
  274. package/dist/markdown.cjs.map +0 -1
  275. package/dist/middleware.cjs.map +0 -1
  276. package/dist/navigation.cjs.map +0 -1
  277. package/dist/observability.cjs.map +0 -1
  278. package/dist/plugin.cjs.map +0 -1
  279. package/dist/query/client.cjs.map +0 -1
  280. package/dist/query/index.cjs.map +0 -1
  281. package/dist/query/parsers.cjs.map +0 -1
  282. package/dist/query/server.cjs.map +0 -1
  283. package/dist/renderer/react/client.cjs.map +0 -1
  284. package/dist/renderer/react/server.cjs.map +0 -1
  285. package/dist/renderer/react/vite.cjs.map +0 -1
  286. package/dist/renderer-client.cjs.map +0 -1
  287. package/dist/renderer.cjs.map +0 -1
  288. package/dist/request.cjs.map +0 -1
  289. package/dist/router.cjs.map +0 -1
  290. package/dist/routes.cjs.map +0 -1
  291. package/dist/server-action-security.cjs.map +0 -1
  292. package/dist/server-fn-client.cjs.map +0 -1
  293. package/dist/server-fn.cjs.map +0 -1
  294. package/dist/server-plugins.cjs.map +0 -1
  295. package/dist/server-query-client.cjs.map +0 -1
  296. package/dist/server-query.cjs.map +0 -1
  297. package/dist/server.cjs.map +0 -1
  298. package/dist/storage.cjs.map +0 -1
  299. package/dist/testing.cjs.map +0 -1
  300. package/dist/theme/client.cjs.map +0 -1
  301. package/dist/theme/index.cjs.map +0 -1
  302. package/dist/theme/runtime.cjs.map +0 -1
  303. package/dist/theme/server.cjs.map +0 -1
  304. package/dist/version.cjs.map +0 -1
  305. package/dist/vite.cjs.map +0 -1
  306. package/dist/workflows.cjs.map +0 -1
  307. /package/dist/{chunk-VV24CC42.mjs.map → chunk-35NPLKQJ.mjs.map} +0 -0
  308. /package/dist/{chunk-RWYRFCLG.mjs.map → chunk-4X57GXQA.mjs.map} +0 -0
  309. /package/dist/{chunk-MOW47IF5.mjs.map → chunk-6UYVU46O.mjs.map} +0 -0
  310. /package/dist/{chunk-RLGUZ3HS.mjs.map → chunk-I3OOUWO5.mjs.map} +0 -0
  311. /package/dist/{chunk-2LS3KKE7.mjs.map → chunk-JV7JUD7Q.mjs.map} +0 -0
  312. /package/dist/{chunk-Q3OX763A.mjs.map → chunk-LXDASSTE.mjs.map} +0 -0
  313. /package/dist/{chunk-HVG3HLQZ.mjs.map → chunk-Q7WGOOAI.mjs.map} +0 -0
  314. /package/dist/{chunk-3INDBMUU.mjs.map → chunk-TGDIACZT.mjs.map} +0 -0
  315. /package/dist/{chunk-MH27UH72.mjs.map → chunk-TT3E2JOF.mjs.map} +0 -0
  316. /package/dist/{chunk-UWRGX3J3.mjs.map → chunk-UMUWR5XA.mjs.map} +0 -0
  317. /package/dist/{devtools-S52RRRMN.mjs.map → devtools-XWZX6CCL.mjs.map} +0 -0
package/dist/after.cjs CHANGED
@@ -186,7 +186,7 @@ async function _runWithAfterRequest(request, handler, context) {
186
186
  const response = await afterStorage.run(state, handler);
187
187
  return hasResponseHook ? response : wrapResponseBody(response, request, state);
188
188
  } catch (error) {
189
- if (!hasResponseHook) finishSoon(state);
189
+ finishSoon(state);
190
190
  throw error;
191
191
  }
192
192
  }
package/dist/after.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  _runWithAfterRequest,
4
4
  _withAfterNodeMiddleware,
5
5
  after
6
- } from "./chunk-ZFNK77WN.mjs";
6
+ } from "./chunk-6JNGOC37.mjs";
7
7
  import "./chunk-CGILA3WO.mjs";
8
8
  export {
9
9
  _runWithAfterNodeResponse,
@@ -1,7 +1,7 @@
1
1
  import { ChildProcess } from 'node:child_process';
2
- import { B as BundleResultPayload, a as FarmPlugin, p as FarmIntegration } from './client-plugins-BvClItiL.mjs';
2
+ import { B as BundleResultPayload, a as FarmPlugin, p as FarmIntegration } from './client-plugins-B6-07YmP.mjs';
3
3
  import './lifecycle-De0vQG45.mjs';
4
- import './route-Cq3aObmj.mjs';
4
+ import './route-CvEr4Uc9.mjs';
5
5
  import './cache.mjs';
6
6
  import './renderer.mjs';
7
7
  import 'http';
@@ -9,6 +9,7 @@ import './types-Cc8l9IqS.mjs';
9
9
  import 'db0';
10
10
  import 'unstorage';
11
11
  import 'react';
12
+ import './integration-api-BT024nuJ.mjs';
12
13
  import '@farming-labs/orm';
13
14
  import './types-CKwggz9n.mjs';
14
15
  import '@farming-labs/docs';
@@ -1,7 +1,7 @@
1
1
  import { ChildProcess } from 'node:child_process';
2
- import { B as BundleResultPayload, a as FarmPlugin, p as FarmIntegration } from './client-plugins-B9Sq-iMg.js';
2
+ import { B as BundleResultPayload, a as FarmPlugin, p as FarmIntegration } from './client-plugins-By6MVUX-.js';
3
3
  import './lifecycle-De0vQG45.js';
4
- import './route-Y8lfz1wF.js';
4
+ import './route-4pd-EVtw.js';
5
5
  import './cache.js';
6
6
  import './renderer.js';
7
7
  import 'http';
@@ -9,6 +9,7 @@ import './types-Cc8l9IqS.js';
9
9
  import 'db0';
10
10
  import 'unstorage';
11
11
  import 'react';
12
+ import './integration-api-BT024nuJ.js';
12
13
  import '@farming-labs/orm';
13
14
  import './types-CKwggz9n.js';
14
15
  import '@farming-labs/docs';
@@ -75,7 +75,13 @@ function recordFarmEventTrace(event) {
75
75
  activeSpan.addEvent(event.type, toEventAttributes(event), event.timestamp);
76
76
  }
77
77
  const error = event.type === "request.error" ? void 0 : getEventError(event);
78
- if (error !== void 0) recordSpanError(activeSpan, error);
78
+ if (error !== void 0) {
79
+ if (event.type === "render.error") {
80
+ recordSpanException(activeSpan, error);
81
+ } else {
82
+ recordSpanError(activeSpan, error);
83
+ }
84
+ }
79
85
  }
80
86
  const completedTraceContext = recordCompletedEventSpan(event, activeContext);
81
87
  return traceContext ?? completedTraceContext;
@@ -169,12 +175,25 @@ function getCompletedSpanDescriptor(event) {
169
175
  return void 0;
170
176
  }
171
177
  }
178
+ function hashFarmCacheKey(value) {
179
+ let hash = 2166136261;
180
+ for (let index = 0; index < value.length; index++) {
181
+ hash ^= value.charCodeAt(index);
182
+ hash = Math.imul(hash, 16777619);
183
+ }
184
+ return (hash >>> 0).toString(16).padStart(8, "0");
185
+ }
172
186
  function toEventAttributes(event) {
173
187
  const attributes = {};
188
+ const redactKey = typeof event.type === "string" && event.type.startsWith("cache.");
174
189
  for (const [key, value] of Object.entries(event)) {
175
190
  if (key === "timestamp" || key === "level" || key === "error" || key === "traceId" || key === "spanId" || key === "traceSampled" || value === void 0) {
176
191
  continue;
177
192
  }
193
+ if (redactKey && key === "key" && typeof value === "string") {
194
+ attributes["farm.key_hash"] = hashFarmCacheKey(value);
195
+ continue;
196
+ }
178
197
  if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
179
198
  attributes[`farm.${key}`] = value;
180
199
  } else if (Array.isArray(value)) {
@@ -192,9 +211,13 @@ function toEventAttributes(event) {
192
211
  function getEventError(event) {
193
212
  return "error" in event ? event.error : void 0;
194
213
  }
195
- function recordSpanError(span, error) {
214
+ function recordSpanException(span, error) {
196
215
  const normalized = error instanceof Error ? error : new Error(String(error));
197
216
  span.recordException(normalized);
217
+ return normalized;
218
+ }
219
+ function recordSpanError(span, error) {
220
+ const normalized = recordSpanException(span, error);
198
221
  span.setStatus({ code: import_api.SpanStatusCode.ERROR, message: normalized.message });
199
222
  }
200
223
  function setResponseStatus(span, status) {
@@ -245,8 +268,10 @@ var init_tracing = __esm({
245
268
  __name(recordFarmEventTrace, "recordFarmEventTrace");
246
269
  __name(recordCompletedEventSpan, "recordCompletedEventSpan");
247
270
  __name(getCompletedSpanDescriptor, "getCompletedSpanDescriptor");
271
+ __name(hashFarmCacheKey, "hashFarmCacheKey");
248
272
  __name(toEventAttributes, "toEventAttributes");
249
273
  __name(getEventError, "getEventError");
274
+ __name(recordSpanException, "recordSpanException");
250
275
  __name(recordSpanError, "recordSpanError");
251
276
  __name(setResponseStatus, "setResponseStatus");
252
277
  __name(getSpanTraceContext, "getSpanTraceContext");
@@ -393,15 +418,27 @@ function getFarmCacheInvalidationState() {
393
418
  taskListeners: /* @__PURE__ */ new Set()
394
419
  });
395
420
  }
421
+ function warnFarmCacheListenerError(scope, error) {
422
+ const detail = error instanceof Error ? error.stack ?? error.message : String(error);
423
+ console.warn(`[farm:cache] ${scope} listener failed: ${detail}`);
424
+ }
396
425
  function notifyFarmCacheInvalidation(key) {
397
426
  if (typeof key !== "string" || key.length === 0) return;
398
427
  for (const listener of getFarmCacheInvalidationState().listeners) {
399
- listener(key);
428
+ try {
429
+ listener(key);
430
+ } catch (error) {
431
+ warnFarmCacheListenerError("invalidation", error);
432
+ }
400
433
  }
401
434
  }
402
435
  function notifyFarmCacheTask(task) {
403
436
  for (const listener of getFarmCacheInvalidationState().taskListeners) {
404
- listener(task);
437
+ try {
438
+ listener(task);
439
+ } catch (error) {
440
+ warnFarmCacheListenerError("task", error);
441
+ }
405
442
  }
406
443
  }
407
444
  function encodeFarmCacheInvalidations(keys) {
@@ -430,6 +467,7 @@ var init_cache_invalidation = __esm({
430
467
  FARM_CACHE_INVALIDATION_STATE = /* @__PURE__ */ Symbol.for("farm.cacheInvalidationState");
431
468
  globalState = globalThis;
432
469
  __name(getFarmCacheInvalidationState, "getFarmCacheInvalidationState");
470
+ __name(warnFarmCacheListenerError, "warnFarmCacheListenerError");
433
471
  __name(notifyFarmCacheInvalidation, "notifyFarmCacheInvalidation");
434
472
  __name(notifyFarmCacheTask, "notifyFarmCacheTask");
435
473
  __name(encodeFarmCacheInvalidations, "encodeFarmCacheInvalidations");
@@ -2302,6 +2340,7 @@ function createEndpoint(pathOrOptions, optionsOrHandler, maybeHandler) {
2302
2340
  body: options.body,
2303
2341
  inputBody: isMultipartSchema(options.body) ? "form-data" : options.body,
2304
2342
  query: options.query,
2343
+ inputQuery: options.query,
2305
2344
  headers: options.headers,
2306
2345
  response: null,
2307
2346
  errors
@@ -1,12 +1,12 @@
1
- import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-BvClItiL.mjs';
1
+ import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-B6-07YmP.mjs';
2
2
  import { ViteDevServer } from 'vite';
3
3
  import '../types-CnH8DOqo.mjs';
4
- import { F as FarmI18nRuntime } from '../runtime-DDwvDtS4.mjs';
4
+ import { F as FarmI18nRuntime } from '../runtime-CV2UCV-5.mjs';
5
5
  export { getAllowedAPIRouteMethods, invokeAPIRouteEndpoint, isWebResponse, normalizeRouteResponse, resolveAPIRouteEndpoint } from './runtime.mjs';
6
6
  import { A as APIRouteMatch } from '../route-pattern-W-SsJGSp.mjs';
7
7
  export { b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.mjs';
8
8
  import '../lifecycle-De0vQG45.mjs';
9
- import '../route-Cq3aObmj.mjs';
9
+ import '../route-CvEr4Uc9.mjs';
10
10
  import '../cache.mjs';
11
11
  import '../renderer.mjs';
12
12
  import 'http';
@@ -14,6 +14,7 @@ import '../types-Cc8l9IqS.mjs';
14
14
  import 'db0';
15
15
  import 'unstorage';
16
16
  import 'react';
17
+ import '../integration-api-BT024nuJ.mjs';
17
18
  import '@farming-labs/orm';
18
19
  import '../types-CKwggz9n.mjs';
19
20
  import '@farming-labs/docs';
@@ -1,12 +1,12 @@
1
- import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-B9Sq-iMg.js';
1
+ import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-By6MVUX-.js';
2
2
  import { ViteDevServer } from 'vite';
3
3
  import '../types-CnH8DOqo.js';
4
- import { F as FarmI18nRuntime } from '../runtime-j1S3sDTh.js';
4
+ import { F as FarmI18nRuntime } from '../runtime-BgDQzBiu.js';
5
5
  export { getAllowedAPIRouteMethods, invokeAPIRouteEndpoint, isWebResponse, normalizeRouteResponse, resolveAPIRouteEndpoint } from './runtime.js';
6
6
  import { A as APIRouteMatch } from '../route-pattern-W-SsJGSp.js';
7
7
  export { b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.js';
8
8
  import '../lifecycle-De0vQG45.js';
9
- import '../route-Y8lfz1wF.js';
9
+ import '../route-4pd-EVtw.js';
10
10
  import '../cache.js';
11
11
  import '../renderer.js';
12
12
  import 'http';
@@ -14,6 +14,7 @@ import '../types-Cc8l9IqS.js';
14
14
  import 'db0';
15
15
  import 'unstorage';
16
16
  import 'react';
17
+ import '../integration-api-BT024nuJ.js';
17
18
  import '@farming-labs/orm';
18
19
  import '../types-CKwggz9n.js';
19
20
  import '@farming-labs/docs';
@@ -2,9 +2,9 @@ import {
2
2
  APIRouteConflictError,
3
3
  APIRouteManager,
4
4
  API_ROUTE_METHODS
5
- } from "../chunk-MH27UH72.mjs";
5
+ } from "../chunk-TT3E2JOF.mjs";
6
6
  import "../chunk-NXV52RNX.mjs";
7
- import "../chunk-WB75GIX2.mjs";
7
+ import "../chunk-TQTB33JS.mjs";
8
8
  import "../chunk-STV7A2LH.mjs";
9
9
  import "../chunk-XNWHZQ6A.mjs";
10
10
  import "../chunk-SXWF4QRU.mjs";
@@ -17,20 +17,20 @@ import {
17
17
  isWebResponse,
18
18
  normalizeRouteResponse,
19
19
  resolveAPIRouteEndpoint
20
- } from "../chunk-D7QH7MDU.mjs";
20
+ } from "../chunk-3TWQERDE.mjs";
21
21
  import "../chunk-4OAR7CTF.mjs";
22
22
  import "../chunk-O2IGROSM.mjs";
23
23
  import "../chunk-4N7DAFLY.mjs";
24
24
  import "../chunk-ZHQMHJAV.mjs";
25
25
  import {
26
26
  matchAPIRoute
27
- } from "../chunk-XTLLHCWU.mjs";
27
+ } from "../chunk-V4VRLVLW.mjs";
28
28
  import "../chunk-6YPPIPKR.mjs";
29
29
  import "../chunk-776TTMU3.mjs";
30
- import "../chunk-AXVJCMVF.mjs";
31
- import "../chunk-RBRLLZL5.mjs";
30
+ import "../chunk-2HDOV47R.mjs";
31
+ import "../chunk-34IAPZBG.mjs";
32
32
  import "../chunk-WZ5QFROO.mjs";
33
- import "../chunk-ZRBCBOEX.mjs";
33
+ import "../chunk-N2FY2QZ7.mjs";
34
34
  import "../chunk-EDWCT2JF.mjs";
35
35
  import "../chunk-LM2YNO4U.mjs";
36
36
  import "../chunk-W4ZNS76E.mjs";
@@ -81,16 +81,29 @@ function getFarmCacheInvalidationState() {
81
81
  });
82
82
  }
83
83
  __name(getFarmCacheInvalidationState, "getFarmCacheInvalidationState");
84
+ function warnFarmCacheListenerError(scope, error) {
85
+ const detail = error instanceof Error ? error.stack ?? error.message : String(error);
86
+ console.warn(`[farm:cache] ${scope} listener failed: ${detail}`);
87
+ }
88
+ __name(warnFarmCacheListenerError, "warnFarmCacheListenerError");
84
89
  function notifyFarmCacheInvalidation(key) {
85
90
  if (typeof key !== "string" || key.length === 0) return;
86
91
  for (const listener of getFarmCacheInvalidationState().listeners) {
87
- listener(key);
92
+ try {
93
+ listener(key);
94
+ } catch (error) {
95
+ warnFarmCacheListenerError("invalidation", error);
96
+ }
88
97
  }
89
98
  }
90
99
  __name(notifyFarmCacheInvalidation, "notifyFarmCacheInvalidation");
91
100
  function notifyFarmCacheTask(task) {
92
101
  for (const listener of getFarmCacheInvalidationState().taskListeners) {
93
- listener(task);
102
+ try {
103
+ listener(task);
104
+ } catch (error) {
105
+ warnFarmCacheListenerError("task", error);
106
+ }
94
107
  }
95
108
  }
96
109
  __name(notifyFarmCacheTask, "notifyFarmCacheTask");
@@ -187,7 +200,13 @@ function recordFarmEventTrace(event) {
187
200
  activeSpan.addEvent(event.type, toEventAttributes(event), event.timestamp);
188
201
  }
189
202
  const error = event.type === "request.error" ? void 0 : getEventError(event);
190
- if (error !== void 0) recordSpanError(activeSpan, error);
203
+ if (error !== void 0) {
204
+ if (event.type === "render.error") {
205
+ recordSpanException(activeSpan, error);
206
+ } else {
207
+ recordSpanError(activeSpan, error);
208
+ }
209
+ }
191
210
  }
192
211
  const completedTraceContext = recordCompletedEventSpan(event, activeContext);
193
212
  return traceContext ?? completedTraceContext;
@@ -284,12 +303,26 @@ function getCompletedSpanDescriptor(event) {
284
303
  }
285
304
  }
286
305
  __name(getCompletedSpanDescriptor, "getCompletedSpanDescriptor");
306
+ function hashFarmCacheKey(value) {
307
+ let hash = 2166136261;
308
+ for (let index = 0; index < value.length; index++) {
309
+ hash ^= value.charCodeAt(index);
310
+ hash = Math.imul(hash, 16777619);
311
+ }
312
+ return (hash >>> 0).toString(16).padStart(8, "0");
313
+ }
314
+ __name(hashFarmCacheKey, "hashFarmCacheKey");
287
315
  function toEventAttributes(event) {
288
316
  const attributes = {};
317
+ const redactKey = typeof event.type === "string" && event.type.startsWith("cache.");
289
318
  for (const [key, value] of Object.entries(event)) {
290
319
  if (key === "timestamp" || key === "level" || key === "error" || key === "traceId" || key === "spanId" || key === "traceSampled" || value === void 0) {
291
320
  continue;
292
321
  }
322
+ if (redactKey && key === "key" && typeof value === "string") {
323
+ attributes["farm.key_hash"] = hashFarmCacheKey(value);
324
+ continue;
325
+ }
293
326
  if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
294
327
  attributes[`farm.${key}`] = value;
295
328
  } else if (Array.isArray(value)) {
@@ -309,9 +342,14 @@ function getEventError(event) {
309
342
  return "error" in event ? event.error : void 0;
310
343
  }
311
344
  __name(getEventError, "getEventError");
312
- function recordSpanError(span, error) {
345
+ function recordSpanException(span, error) {
313
346
  const normalized = error instanceof Error ? error : new Error(String(error));
314
347
  span.recordException(normalized);
348
+ return normalized;
349
+ }
350
+ __name(recordSpanException, "recordSpanException");
351
+ function recordSpanError(span, error) {
352
+ const normalized = recordSpanException(span, error);
315
353
  span.setStatus({ code: import_api.SpanStatusCode.ERROR, message: normalized.message });
316
354
  }
317
355
  __name(recordSpanError, "recordSpanError");
@@ -1253,6 +1291,7 @@ function createEndpoint(pathOrOptions, optionsOrHandler, maybeHandler) {
1253
1291
  body: options.body,
1254
1292
  inputBody: isMultipartSchema(options.body) ? "form-data" : options.body,
1255
1293
  query: options.query,
1294
+ inputQuery: options.query,
1256
1295
  headers: options.headers,
1257
1296
  response: null,
1258
1297
  errors
@@ -1,4 +1,4 @@
1
- import { P as PluginRoutesFactory, E as EndpointFailure } from '../route-Cq3aObmj.mjs';
1
+ import { P as PluginRoutesFactory, E as EndpointFailure } from '../route-CvEr4Uc9.mjs';
2
2
  import { a as APIRouteParams, A as APIRouteMatch } from '../route-pattern-W-SsJGSp.mjs';
3
3
  export { b as APIRouteParamValue, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.mjs';
4
4
  import '../cache.mjs';
@@ -1,4 +1,4 @@
1
- import { P as PluginRoutesFactory, E as EndpointFailure } from '../route-Y8lfz1wF.js';
1
+ import { P as PluginRoutesFactory, E as EndpointFailure } from '../route-4pd-EVtw.js';
2
2
  import { a as APIRouteParams, A as APIRouteMatch } from '../route-pattern-W-SsJGSp.js';
3
3
  export { b as APIRouteParamValue, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.js';
4
4
  import '../cache.js';
@@ -8,7 +8,7 @@ import {
8
8
  mergePluginAPIRoutes,
9
9
  normalizeRouteResponse,
10
10
  resolveAPIRouteEndpoint
11
- } from "../chunk-D7QH7MDU.mjs";
11
+ } from "../chunk-3TWQERDE.mjs";
12
12
  import {
13
13
  registerAPIRouteShape
14
14
  } from "../chunk-4OAR7CTF.mjs";
@@ -17,12 +17,12 @@ import "../chunk-4N7DAFLY.mjs";
17
17
  import "../chunk-ZHQMHJAV.mjs";
18
18
  import {
19
19
  matchAPIRoute
20
- } from "../chunk-XTLLHCWU.mjs";
20
+ } from "../chunk-V4VRLVLW.mjs";
21
21
  import "../chunk-6YPPIPKR.mjs";
22
- import "../chunk-AXVJCMVF.mjs";
23
- import "../chunk-RBRLLZL5.mjs";
22
+ import "../chunk-2HDOV47R.mjs";
23
+ import "../chunk-34IAPZBG.mjs";
24
24
  import "../chunk-WZ5QFROO.mjs";
25
- import "../chunk-ZRBCBOEX.mjs";
25
+ import "../chunk-N2FY2QZ7.mjs";
26
26
  import "../chunk-EDWCT2JF.mjs";
27
27
  import "../chunk-LM2YNO4U.mjs";
28
28
  import "../chunk-DZU3EKQP.mjs";