@farm.js/core 0.1.0-beta.4 → 0.1.0-beta.6

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 (441) hide show
  1. package/dist/internal/build-runtime.cjs +1 -1
  2. package/dist/internal/build-runtime.cjs.map +1 -1
  3. package/dist/internal/build-runtime.mjs +5 -5
  4. package/dist/plugin.cjs.map +1 -1
  5. package/dist/plugin.mjs +4 -4
  6. package/dist/server-query-client.cjs +1 -1
  7. package/dist/server-query-client.cjs.map +1 -1
  8. package/dist/server-query-client.mjs +1 -1
  9. package/dist/server.cjs +1 -1
  10. package/dist/server.cjs.map +1 -1
  11. package/dist/server.mjs +4 -4
  12. package/dist/version.cjs +1 -1
  13. package/dist/version.cjs.map +1 -1
  14. package/dist/version.mjs +1 -1
  15. package/dist/vite.cjs +1 -1
  16. package/dist/vite.cjs.map +1 -1
  17. package/dist/vite.mjs +4 -4
  18. package/package.json +1 -1
  19. package/dist/after.cjs +0 -227
  20. package/dist/after.cjs.map +0 -1
  21. package/dist/after.d.mts +0 -25
  22. package/dist/after.d.ts +0 -25
  23. package/dist/after.mjs +0 -14
  24. package/dist/after.mjs.map +0 -1
  25. package/dist/agent-runtime.cjs +0 -2379
  26. package/dist/agent-runtime.cjs.map +0 -1
  27. package/dist/agent-runtime.d.mts +0 -94
  28. package/dist/agent-runtime.d.ts +0 -94
  29. package/dist/agent-runtime.mjs +0 -479
  30. package/dist/agent-runtime.mjs.map +0 -1
  31. package/dist/api/route-manager.d.mts +0 -66
  32. package/dist/api/route-manager.d.ts +0 -66
  33. package/dist/api/runtime.d.mts +0 -3
  34. package/dist/api/runtime.d.ts +0 -3
  35. package/dist/api.cjs +0 -4100
  36. package/dist/api.cjs.map +0 -1
  37. package/dist/api.d.mts +0 -48
  38. package/dist/api.d.ts +0 -48
  39. package/dist/api.mjs +0 -93
  40. package/dist/api.mjs.map +0 -1
  41. package/dist/app-BjN-da13.d.ts +0 -300
  42. package/dist/app-CakAr8Be.d.mts +0 -300
  43. package/dist/app-markdown.cjs +0 -220
  44. package/dist/app-markdown.cjs.map +0 -1
  45. package/dist/app-markdown.d.mts +0 -22
  46. package/dist/app-markdown.d.ts +0 -22
  47. package/dist/app-markdown.mjs +0 -26
  48. package/dist/app-markdown.mjs.map +0 -1
  49. package/dist/cache.cjs +0 -945
  50. package/dist/cache.cjs.map +0 -1
  51. package/dist/cache.d.mts +0 -192
  52. package/dist/cache.d.ts +0 -192
  53. package/dist/cache.mjs +0 -46
  54. package/dist/cache.mjs.map +0 -1
  55. package/dist/chunk-2CUKEMVR.mjs +0 -872
  56. package/dist/chunk-2CUKEMVR.mjs.map +0 -1
  57. package/dist/chunk-2ED5Q2GH.mjs +0 -422
  58. package/dist/chunk-2ED5Q2GH.mjs.map +0 -1
  59. package/dist/chunk-32W4QEJP.mjs +0 -158
  60. package/dist/chunk-32W4QEJP.mjs.map +0 -1
  61. package/dist/chunk-3U3ZUQAQ.mjs +0 -41
  62. package/dist/chunk-3U3ZUQAQ.mjs.map +0 -1
  63. package/dist/chunk-3XNTL3FQ.mjs +0 -452
  64. package/dist/chunk-3XNTL3FQ.mjs.map +0 -1
  65. package/dist/chunk-44ZCFSKE.mjs +0 -84
  66. package/dist/chunk-44ZCFSKE.mjs.map +0 -1
  67. package/dist/chunk-4S3ORGFA.mjs +0 -44
  68. package/dist/chunk-4S3ORGFA.mjs.map +0 -1
  69. package/dist/chunk-5BY76U2M.mjs +0 -1
  70. package/dist/chunk-5BY76U2M.mjs.map +0 -1
  71. package/dist/chunk-5ZGPRGWV.mjs +0 -136
  72. package/dist/chunk-5ZGPRGWV.mjs.map +0 -1
  73. package/dist/chunk-65A7QIKI.mjs +0 -142
  74. package/dist/chunk-65A7QIKI.mjs.map +0 -1
  75. package/dist/chunk-74YTBPTY.mjs +0 -450
  76. package/dist/chunk-74YTBPTY.mjs.map +0 -1
  77. package/dist/chunk-7HO6AEOP.mjs +0 -74
  78. package/dist/chunk-7HO6AEOP.mjs.map +0 -1
  79. package/dist/chunk-7MABZJIM.mjs +0 -29
  80. package/dist/chunk-7MABZJIM.mjs.map +0 -1
  81. package/dist/chunk-7ZY5AIJO.mjs +0 -161
  82. package/dist/chunk-7ZY5AIJO.mjs.map +0 -1
  83. package/dist/chunk-AJWRO5WE.mjs +0 -6241
  84. package/dist/chunk-AJWRO5WE.mjs.map +0 -1
  85. package/dist/chunk-ALCLXXTY.mjs +0 -187
  86. package/dist/chunk-ALCLXXTY.mjs.map +0 -1
  87. package/dist/chunk-AOBXKNS5.mjs +0 -7631
  88. package/dist/chunk-AOBXKNS5.mjs.map +0 -1
  89. package/dist/chunk-AZ7YUVNR.mjs +0 -65
  90. package/dist/chunk-AZ7YUVNR.mjs.map +0 -1
  91. package/dist/chunk-B232I2GP.mjs +0 -163
  92. package/dist/chunk-B232I2GP.mjs.map +0 -1
  93. package/dist/chunk-BHG3LVHH.mjs +0 -176
  94. package/dist/chunk-BHG3LVHH.mjs.map +0 -1
  95. package/dist/chunk-C2ROET2V.mjs +0 -718
  96. package/dist/chunk-C2ROET2V.mjs.map +0 -1
  97. package/dist/chunk-C3DLZMBU.mjs +0 -597
  98. package/dist/chunk-C3DLZMBU.mjs.map +0 -1
  99. package/dist/chunk-CGILA3WO.mjs +0 -14
  100. package/dist/chunk-CGILA3WO.mjs.map +0 -1
  101. package/dist/chunk-E2MPIBRE.mjs +0 -149
  102. package/dist/chunk-E2MPIBRE.mjs.map +0 -1
  103. package/dist/chunk-E6EPN5BT.mjs +0 -203
  104. package/dist/chunk-E6EPN5BT.mjs.map +0 -1
  105. package/dist/chunk-EJ7T4TPB.mjs +0 -622
  106. package/dist/chunk-EJ7T4TPB.mjs.map +0 -1
  107. package/dist/chunk-FQYDHKKU.mjs +0 -128
  108. package/dist/chunk-FQYDHKKU.mjs.map +0 -1
  109. package/dist/chunk-FRPWCMMG.mjs +0 -299
  110. package/dist/chunk-FRPWCMMG.mjs.map +0 -1
  111. package/dist/chunk-GN72QAIH.mjs +0 -146
  112. package/dist/chunk-GN72QAIH.mjs.map +0 -1
  113. package/dist/chunk-GQVGIUSN.mjs +0 -149
  114. package/dist/chunk-GQVGIUSN.mjs.map +0 -1
  115. package/dist/chunk-GS6K5OCM.mjs +0 -407
  116. package/dist/chunk-GS6K5OCM.mjs.map +0 -1
  117. package/dist/chunk-GXASWWJU.mjs +0 -364
  118. package/dist/chunk-GXASWWJU.mjs.map +0 -1
  119. package/dist/chunk-GY2STC2S.mjs +0 -180
  120. package/dist/chunk-GY2STC2S.mjs.map +0 -1
  121. package/dist/chunk-H2FA2SBS.mjs +0 -51
  122. package/dist/chunk-H2FA2SBS.mjs.map +0 -1
  123. package/dist/chunk-HNIQFZKB.mjs +0 -3550
  124. package/dist/chunk-HNIQFZKB.mjs.map +0 -1
  125. package/dist/chunk-ITN462YM.mjs +0 -98
  126. package/dist/chunk-ITN462YM.mjs.map +0 -1
  127. package/dist/chunk-J23HNLFY.mjs +0 -72
  128. package/dist/chunk-J23HNLFY.mjs.map +0 -1
  129. package/dist/chunk-J4FNJ5IU.mjs +0 -179
  130. package/dist/chunk-J4FNJ5IU.mjs.map +0 -1
  131. package/dist/chunk-JDEOUK5V.mjs +0 -427
  132. package/dist/chunk-JDEOUK5V.mjs.map +0 -1
  133. package/dist/chunk-JK25YEN6.mjs +0 -219
  134. package/dist/chunk-JK25YEN6.mjs.map +0 -1
  135. package/dist/chunk-K4667E2Q.mjs +0 -1916
  136. package/dist/chunk-K4667E2Q.mjs.map +0 -1
  137. package/dist/chunk-LGHEOHBU.mjs +0 -218
  138. package/dist/chunk-LGHEOHBU.mjs.map +0 -1
  139. package/dist/chunk-LLC7BNXW.mjs +0 -275
  140. package/dist/chunk-LLC7BNXW.mjs.map +0 -1
  141. package/dist/chunk-LM2YNO4U.mjs +0 -24
  142. package/dist/chunk-LM2YNO4U.mjs.map +0 -1
  143. package/dist/chunk-MIUW47JX.mjs +0 -639
  144. package/dist/chunk-MIUW47JX.mjs.map +0 -1
  145. package/dist/chunk-NM3CRAAL.mjs +0 -467
  146. package/dist/chunk-NM3CRAAL.mjs.map +0 -1
  147. package/dist/chunk-NNLCAVB6.mjs +0 -391
  148. package/dist/chunk-NNLCAVB6.mjs.map +0 -1
  149. package/dist/chunk-P7QDS5AT.mjs +0 -191
  150. package/dist/chunk-P7QDS5AT.mjs.map +0 -1
  151. package/dist/chunk-PFE6GMNE.mjs +0 -603
  152. package/dist/chunk-PFE6GMNE.mjs.map +0 -1
  153. package/dist/chunk-QGOHVJ6J.mjs +0 -63
  154. package/dist/chunk-QGOHVJ6J.mjs.map +0 -1
  155. package/dist/chunk-QGQX7SFC.mjs +0 -180
  156. package/dist/chunk-QGQX7SFC.mjs.map +0 -1
  157. package/dist/chunk-QKVUNGAH.mjs +0 -39
  158. package/dist/chunk-QKVUNGAH.mjs.map +0 -1
  159. package/dist/chunk-QM746KUO.mjs +0 -56
  160. package/dist/chunk-QM746KUO.mjs.map +0 -1
  161. package/dist/chunk-RBRLLZL5.mjs +0 -81
  162. package/dist/chunk-RBRLLZL5.mjs.map +0 -1
  163. package/dist/chunk-RHIFZZUI.mjs +0 -69
  164. package/dist/chunk-RHIFZZUI.mjs.map +0 -1
  165. package/dist/chunk-RSKVYESE.mjs +0 -187
  166. package/dist/chunk-RSKVYESE.mjs.map +0 -1
  167. package/dist/chunk-SADGIRS2.mjs +0 -211
  168. package/dist/chunk-SADGIRS2.mjs.map +0 -1
  169. package/dist/chunk-SCFX4UTD.mjs +0 -28
  170. package/dist/chunk-SCFX4UTD.mjs.map +0 -1
  171. package/dist/chunk-SL6HTIOK.mjs +0 -66
  172. package/dist/chunk-SL6HTIOK.mjs.map +0 -1
  173. package/dist/chunk-SPBBQLXI.mjs +0 -207
  174. package/dist/chunk-SPBBQLXI.mjs.map +0 -1
  175. package/dist/chunk-T4QJQK76.mjs +0 -459
  176. package/dist/chunk-T4QJQK76.mjs.map +0 -1
  177. package/dist/chunk-TQAEEJB4.mjs +0 -157
  178. package/dist/chunk-TQAEEJB4.mjs.map +0 -1
  179. package/dist/chunk-UB5UOSHB.mjs +0 -458
  180. package/dist/chunk-UB5UOSHB.mjs.map +0 -1
  181. package/dist/chunk-USWZZUEH.mjs +0 -25
  182. package/dist/chunk-USWZZUEH.mjs.map +0 -1
  183. package/dist/chunk-UVCIEUJC.mjs +0 -16
  184. package/dist/chunk-UVCIEUJC.mjs.map +0 -1
  185. package/dist/chunk-UXUAWNO5.mjs +0 -396
  186. package/dist/chunk-UXUAWNO5.mjs.map +0 -1
  187. package/dist/chunk-V3XURYJO.mjs +0 -756
  188. package/dist/chunk-V3XURYJO.mjs.map +0 -1
  189. package/dist/chunk-V6WE6JSZ.mjs +0 -352
  190. package/dist/chunk-V6WE6JSZ.mjs.map +0 -1
  191. package/dist/chunk-V7RBCSDJ.mjs +0 -170
  192. package/dist/chunk-V7RBCSDJ.mjs.map +0 -1
  193. package/dist/chunk-VCANOYFI.mjs +0 -588
  194. package/dist/chunk-VCANOYFI.mjs.map +0 -1
  195. package/dist/chunk-VVKWFZAH.mjs +0 -753
  196. package/dist/chunk-VVKWFZAH.mjs.map +0 -1
  197. package/dist/chunk-VY2UYN5R.mjs +0 -224
  198. package/dist/chunk-VY2UYN5R.mjs.map +0 -1
  199. package/dist/chunk-W2CRQFF6.mjs +0 -1352
  200. package/dist/chunk-W2CRQFF6.mjs.map +0 -1
  201. package/dist/chunk-W4UIVMVI.mjs +0 -10
  202. package/dist/chunk-W4UIVMVI.mjs.map +0 -1
  203. package/dist/chunk-WZ5QFROO.mjs +0 -23
  204. package/dist/chunk-WZ5QFROO.mjs.map +0 -1
  205. package/dist/chunk-XIVV5IWN.mjs +0 -541
  206. package/dist/chunk-XIVV5IWN.mjs.map +0 -1
  207. package/dist/chunk-YW7OBE6Q.mjs +0 -119
  208. package/dist/chunk-YW7OBE6Q.mjs.map +0 -1
  209. package/dist/chunk-Z5CQMP54.mjs +0 -365
  210. package/dist/chunk-Z5CQMP54.mjs.map +0 -1
  211. package/dist/chunk-ZBE6MLHL.mjs +0 -230
  212. package/dist/chunk-ZBE6MLHL.mjs.map +0 -1
  213. package/dist/chunk-ZZ57EH5Z.mjs +0 -173
  214. package/dist/chunk-ZZ57EH5Z.mjs.map +0 -1
  215. package/dist/client-BT1mFQas.d.mts +0 -447
  216. package/dist/client-Nn0q4eO4.d.ts +0 -447
  217. package/dist/client-cache-CIlyBlmx.d.ts +0 -6
  218. package/dist/client-cache-D-EZ7XVW.d.mts +0 -6
  219. package/dist/client-plugins-Cw4qUGsw.d.ts +0 -1855
  220. package/dist/client-plugins-DQQ1adXM.d.mts +0 -1855
  221. package/dist/client-plugins.cjs +0 -415
  222. package/dist/client-plugins.cjs.map +0 -1
  223. package/dist/client-plugins.d.mts +0 -22
  224. package/dist/client-plugins.d.ts +0 -22
  225. package/dist/client-plugins.mjs +0 -10
  226. package/dist/client-plugins.mjs.map +0 -1
  227. package/dist/client.cjs +0 -5402
  228. package/dist/client.cjs.map +0 -1
  229. package/dist/client.d.mts +0 -447
  230. package/dist/client.d.ts +0 -447
  231. package/dist/client.mjs +0 -110
  232. package/dist/client.mjs.map +0 -1
  233. package/dist/config.cjs +0 -38
  234. package/dist/config.cjs.map +0 -1
  235. package/dist/config.d.mts +0 -29
  236. package/dist/config.d.ts +0 -29
  237. package/dist/config.mjs +0 -10
  238. package/dist/config.mjs.map +0 -1
  239. package/dist/cron.cjs +0 -406
  240. package/dist/cron.cjs.map +0 -1
  241. package/dist/cron.d.mts +0 -78
  242. package/dist/cron.d.ts +0 -78
  243. package/dist/cron.mjs +0 -30
  244. package/dist/cron.mjs.map +0 -1
  245. package/dist/deferred.cjs +0 -438
  246. package/dist/deferred.cjs.map +0 -1
  247. package/dist/deferred.d.mts +0 -42
  248. package/dist/deferred.d.ts +0 -42
  249. package/dist/deferred.mjs +0 -28
  250. package/dist/deferred.mjs.map +0 -1
  251. package/dist/deployment.cjs +0 -199
  252. package/dist/deployment.cjs.map +0 -1
  253. package/dist/deployment.d.mts +0 -34
  254. package/dist/deployment.d.ts +0 -34
  255. package/dist/deployment.mjs +0 -38
  256. package/dist/deployment.mjs.map +0 -1
  257. package/dist/devtools-LVC3VB5P.mjs +0 -370
  258. package/dist/devtools-LVC3VB5P.mjs.map +0 -1
  259. package/dist/devtools-client-3XRTBND5.mjs +0 -216
  260. package/dist/devtools-client-3XRTBND5.mjs.map +0 -1
  261. package/dist/devtools-ui-NJKFORTG.mjs +0 -1349
  262. package/dist/devtools-ui-NJKFORTG.mjs.map +0 -1
  263. package/dist/docs.cjs +0 -5553
  264. package/dist/docs.cjs.map +0 -1
  265. package/dist/docs.d.mts +0 -69
  266. package/dist/docs.d.ts +0 -69
  267. package/dist/docs.mjs +0 -46
  268. package/dist/docs.mjs.map +0 -1
  269. package/dist/env-types.cjs +0 -223
  270. package/dist/env-types.cjs.map +0 -1
  271. package/dist/env-types.d.mts +0 -11
  272. package/dist/env-types.d.ts +0 -11
  273. package/dist/env-types.mjs +0 -9
  274. package/dist/env-types.mjs.map +0 -1
  275. package/dist/env.cjs +0 -215
  276. package/dist/env.cjs.map +0 -1
  277. package/dist/env.d.mts +0 -45
  278. package/dist/env.d.ts +0 -45
  279. package/dist/env.mjs +0 -22
  280. package/dist/env.mjs.map +0 -1
  281. package/dist/environment/vite.d.mts +0 -22
  282. package/dist/environment/vite.d.ts +0 -22
  283. package/dist/environment.cjs +0 -96
  284. package/dist/environment.cjs.map +0 -1
  285. package/dist/environment.d.mts +0 -18
  286. package/dist/environment.d.ts +0 -18
  287. package/dist/environment.mjs +0 -14
  288. package/dist/environment.mjs.map +0 -1
  289. package/dist/headers.cjs +0 -126
  290. package/dist/headers.cjs.map +0 -1
  291. package/dist/headers.d.mts +0 -22
  292. package/dist/headers.d.ts +0 -22
  293. package/dist/headers.mjs +0 -12
  294. package/dist/headers.mjs.map +0 -1
  295. package/dist/i18n/client.d.mts +0 -32
  296. package/dist/i18n/client.d.ts +0 -32
  297. package/dist/i18n/index.d.mts +0 -20
  298. package/dist/i18n/index.d.ts +0 -20
  299. package/dist/i18n/server.d.mts +0 -30
  300. package/dist/i18n/server.d.ts +0 -30
  301. package/dist/image/server.d.mts +0 -37
  302. package/dist/image/server.d.ts +0 -37
  303. package/dist/image/sharp.d.mts +0 -7
  304. package/dist/image/sharp.d.ts +0 -7
  305. package/dist/image-config-Duob7wER.d.mts +0 -50
  306. package/dist/image-config-Duob7wER.d.ts +0 -50
  307. package/dist/image.cjs +0 -209
  308. package/dist/image.cjs.map +0 -1
  309. package/dist/image.d.mts +0 -39
  310. package/dist/image.d.ts +0 -39
  311. package/dist/image.mjs +0 -165
  312. package/dist/image.mjs.map +0 -1
  313. package/dist/index.cjs +0 -41822
  314. package/dist/index.cjs.map +0 -1
  315. package/dist/index.d.mts +0 -452
  316. package/dist/index.d.ts +0 -452
  317. package/dist/index.mjs +0 -973
  318. package/dist/index.mjs.map +0 -1
  319. package/dist/integration-api-CHT2OKAf.d.mts +0 -93
  320. package/dist/integration-api-CHT2OKAf.d.ts +0 -93
  321. package/dist/integration-orm-GQLGU66X.mjs +0 -13
  322. package/dist/integration-orm-GQLGU66X.mjs.map +0 -1
  323. package/dist/integrations.cjs +0 -2820
  324. package/dist/integrations.cjs.map +0 -1
  325. package/dist/integrations.d.mts +0 -22
  326. package/dist/integrations.d.ts +0 -22
  327. package/dist/integrations.mjs +0 -51
  328. package/dist/integrations.mjs.map +0 -1
  329. package/dist/internal/build-runtime.d.mts +0 -39
  330. package/dist/internal/build-runtime.d.ts +0 -39
  331. package/dist/internal/client-runtime.d.mts +0 -2
  332. package/dist/internal/client-runtime.d.ts +0 -2
  333. package/dist/internal/config-runtime.d.mts +0 -39
  334. package/dist/internal/config-runtime.d.ts +0 -39
  335. package/dist/internal/production-node-env.d.mts +0 -12
  336. package/dist/internal/production-node-env.d.ts +0 -12
  337. package/dist/internal/production-runtime.d.mts +0 -39
  338. package/dist/internal/production-runtime.d.ts +0 -39
  339. package/dist/layers-VWVDTPUZ.mjs +0 -16
  340. package/dist/layers-VWVDTPUZ.mjs.map +0 -1
  341. package/dist/manager-THKFTOFE.mjs +0 -10
  342. package/dist/manager-THKFTOFE.mjs.map +0 -1
  343. package/dist/markdown.cjs +0 -299
  344. package/dist/markdown.cjs.map +0 -1
  345. package/dist/markdown.d.mts +0 -43
  346. package/dist/markdown.d.ts +0 -43
  347. package/dist/markdown.mjs +0 -14
  348. package/dist/markdown.mjs.map +0 -1
  349. package/dist/metadata-BAPg_Nmo.d.ts +0 -22
  350. package/dist/metadata-_6i9oFG3.d.mts +0 -22
  351. package/dist/middleware.cjs +0 -2148
  352. package/dist/middleware.cjs.map +0 -1
  353. package/dist/middleware.d.mts +0 -164
  354. package/dist/middleware.d.ts +0 -164
  355. package/dist/middleware.mjs +0 -49
  356. package/dist/middleware.mjs.map +0 -1
  357. package/dist/navigation-errors-Dvwpzaer.d.mts +0 -13
  358. package/dist/navigation-errors-Dvwpzaer.d.ts +0 -13
  359. package/dist/navigation.cjs +0 -1329
  360. package/dist/navigation.cjs.map +0 -1
  361. package/dist/navigation.d.mts +0 -14
  362. package/dist/navigation.d.ts +0 -14
  363. package/dist/navigation.mjs +0 -33
  364. package/dist/navigation.mjs.map +0 -1
  365. package/dist/nitro-QO5LV6QK.mjs +0 -689
  366. package/dist/nitro-QO5LV6QK.mjs.map +0 -1
  367. package/dist/observability.cjs +0 -186
  368. package/dist/observability.cjs.map +0 -1
  369. package/dist/observability.d.mts +0 -335
  370. package/dist/observability.d.ts +0 -335
  371. package/dist/observability.mjs +0 -16
  372. package/dist/observability.mjs.map +0 -1
  373. package/dist/params-BALtrRim.d.ts +0 -15
  374. package/dist/params-ry-lxqmy.d.mts +0 -15
  375. package/dist/plugin-BJDf43dc.d.mts +0 -165
  376. package/dist/plugin-BJDf43dc.d.ts +0 -165
  377. package/dist/plugin.cjs +0 -23225
  378. package/dist/plugin.d.mts +0 -22
  379. package/dist/plugin.d.ts +0 -22
  380. package/dist/production-runtime-BoJDc5mc.d.ts +0 -79
  381. package/dist/production-runtime-C_B79w2P.d.mts +0 -28
  382. package/dist/production-runtime-DDEM1D2q.d.ts +0 -28
  383. package/dist/production-runtime-DPfgMV9Y.d.mts +0 -79
  384. package/dist/query/client.d.mts +0 -61
  385. package/dist/query/client.d.ts +0 -61
  386. package/dist/query/index.d.mts +0 -90
  387. package/dist/query/index.d.ts +0 -90
  388. package/dist/query/parsers.d.mts +0 -25
  389. package/dist/query/parsers.d.ts +0 -25
  390. package/dist/query/server.d.mts +0 -55
  391. package/dist/query/server.d.ts +0 -55
  392. package/dist/request-BrFBuc8G.d.mts +0 -6
  393. package/dist/request-BslSZIRz.d.ts +0 -6
  394. package/dist/request.d.mts +0 -2
  395. package/dist/request.d.ts +0 -2
  396. package/dist/resolver-C6iecsDV.d.ts +0 -14
  397. package/dist/resolver-DlOPpjkB.d.mts +0 -14
  398. package/dist/route-runtime-DoOHzCAD.d.mts +0 -38
  399. package/dist/route-runtime-DoOHzCAD.d.ts +0 -38
  400. package/dist/router.d.mts +0 -36
  401. package/dist/router.d.ts +0 -36
  402. package/dist/routes.d.mts +0 -224
  403. package/dist/routes.d.ts +0 -224
  404. package/dist/runtime-9nQjVM7X.d.mts +0 -206
  405. package/dist/runtime-B6GvwDS1.d.ts +0 -27
  406. package/dist/runtime-DeAAZ6gO.d.mts +0 -27
  407. package/dist/runtime-DgeS2skB.d.ts +0 -206
  408. package/dist/server-action-security.d.mts +0 -43
  409. package/dist/server-action-security.d.ts +0 -43
  410. package/dist/server-fn-client.d.mts +0 -32
  411. package/dist/server-fn-client.d.ts +0 -32
  412. package/dist/server-fn.d.mts +0 -93
  413. package/dist/server-fn.d.ts +0 -93
  414. package/dist/server-plugins.d.mts +0 -55
  415. package/dist/server-plugins.d.ts +0 -55
  416. package/dist/server-query-client.d.mts +0 -50
  417. package/dist/server-query-client.d.ts +0 -50
  418. package/dist/server-query.d.mts +0 -36
  419. package/dist/server-query.d.ts +0 -36
  420. package/dist/server.d.mts +0 -48
  421. package/dist/server.d.ts +0 -48
  422. package/dist/storage.d.mts +0 -52
  423. package/dist/storage.d.ts +0 -52
  424. package/dist/testing.d.mts +0 -101
  425. package/dist/testing.d.ts +0 -101
  426. package/dist/transport-BmbGTXA5.d.mts +0 -49
  427. package/dist/transport-BmbGTXA5.d.ts +0 -49
  428. package/dist/types-BH1lhg5G.d.mts +0 -81
  429. package/dist/types-BH1lhg5G.d.ts +0 -81
  430. package/dist/types-C9N-nk5R.d.mts +0 -53
  431. package/dist/types-C9N-nk5R.d.ts +0 -53
  432. package/dist/types-D1A6-XvH.d.mts +0 -73
  433. package/dist/types-D1A6-XvH.d.ts +0 -73
  434. package/dist/utils-CHXlMDkg.d.mts +0 -23
  435. package/dist/utils-Drsyz1Vj.d.ts +0 -23
  436. package/dist/version.d.mts +0 -3
  437. package/dist/version.d.ts +0 -3
  438. package/dist/vite.d.mts +0 -22
  439. package/dist/vite.d.ts +0 -22
  440. package/dist/workflows.d.mts +0 -110
  441. package/dist/workflows.d.ts +0 -110
package/dist/testing.d.ts DELETED
@@ -1,101 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import './types-BH1lhg5G.js';
3
- import { b as APIRouteParams } from './runtime-DgeS2skB.js';
4
- import { ProgrammaticPageRoute, InferProgrammaticRouteData, ProgrammaticRouteComponentProps, ProgrammaticApiRoute } from './routes.js';
5
- import { FarmRouterQueryValue, FarmRouterPathParams } from './router.js';
6
- import { ServerFn } from './server-fn.js';
7
- import { g as FarmContextFactory, M as MiddlewareProps, P as PluginContextProps, p as RouteModule } from './client-plugins-Cw4qUGsw.js';
8
- import './cache.js';
9
- import './transport-BmbGTXA5.js';
10
- import './route-runtime-DoOHzCAD.js';
11
- import './plugin-BJDf43dc.js';
12
- import 'http';
13
- import './types-D1A6-XvH.js';
14
- import 'db0';
15
- import 'unstorage';
16
- import './integration-api-CHT2OKAf.js';
17
- import '@farming-labs/orm';
18
- import './types-C9N-nk5R.js';
19
- import '@farming-labs/docs';
20
- import './markdown.js';
21
- import './observability.js';
22
- import 'vite';
23
- import './workflows.js';
24
- import './cron.js';
25
- import './env.js';
26
- import './server-action-security.js';
27
- import './image-config-Duob7wER.js';
28
-
29
- type FarmTestQuery = URLSearchParams | Record<string, FarmRouterQueryValue>;
30
- type FarmTestPathParams = FarmRouterPathParams;
31
- type FarmTestFormValues = Record<string, FormDataEntryValue | readonly FormDataEntryValue[]>;
32
- interface FarmTestRequestOptions extends Omit<RequestInit, "body" | "headers"> {
33
- origin?: string;
34
- headers?: HeadersInit;
35
- query?: FarmTestQuery;
36
- cookies?: Record<string, string>;
37
- json?: unknown;
38
- form?: FormData | FarmTestFormValues;
39
- body?: BodyInit | null;
40
- }
41
- interface FarmTestHarnessOptions<TContext = unknown> {
42
- origin?: string;
43
- headers?: HeadersInit;
44
- cookies?: Record<string, string>;
45
- context?: FarmContextFactory<TContext>;
46
- }
47
- type AnyProgrammaticPageRoute = ProgrammaticPageRoute<any, any, any, any>;
48
- type InferFarmTestRouteParams<TRoute> = TRoute extends ProgrammaticPageRoute<infer TParams, any, any, any> ? TParams : never;
49
- type InferFarmTestRouteSearch<TRoute> = TRoute extends ProgrammaticPageRoute<any, infer TSearch, any, any> ? TSearch : never;
50
- type InferFarmTestRouteData<TRoute> = TRoute extends ProgrammaticPageRoute<any, any, infer TDataHooks, any> ? InferProgrammaticRouteData<TDataHooks> : never;
51
- type FarmTestRouteProps<TRoute extends AnyProgrammaticPageRoute> = ProgrammaticRouteComponentProps<InferFarmTestRouteParams<TRoute>, InferFarmTestRouteSearch<TRoute>, InferFarmTestRouteData<TRoute>>;
52
- type FarmTestRouteParamsInput<TRoute> = InferFarmTestRouteParams<TRoute> extends Record<string, unknown> ? Partial<InferFarmTestRouteParams<TRoute>> : FarmTestPathParams;
53
- type FarmTestRouteSearchInput<TRoute> = InferFarmTestRouteSearch<TRoute> extends Record<string, unknown> ? Partial<InferFarmTestRouteSearch<TRoute>> | URLSearchParams : FarmTestQuery;
54
- interface FarmTestRouteOptions<TRoute extends AnyProgrammaticPageRoute, TContext = unknown> extends Pick<FarmTestRequestOptions, "origin" | "headers" | "cookies" | "signal"> {
55
- path?: string | URL;
56
- params?: FarmTestRouteParamsInput<TRoute>;
57
- search?: FarmTestRouteSearchInput<TRoute>;
58
- context?: TContext;
59
- middleware?: MiddlewareProps;
60
- pluginContext?: PluginContextProps;
61
- }
62
- interface FarmTestRouteResult<TRoute extends AnyProgrammaticPageRoute> {
63
- route: TRoute;
64
- module: RouteModule;
65
- request: Request;
66
- props: FarmTestRouteProps<TRoute>;
67
- element: ReactElement;
68
- canonicalPath?: string;
69
- }
70
- interface FarmTestApiOptions extends FarmTestRequestOptions {
71
- path?: string | URL;
72
- params?: FarmTestPathParams;
73
- throwOnError?: boolean;
74
- }
75
- interface FarmTestEndpointOptions extends FarmTestRequestOptions {
76
- path?: string | URL;
77
- params?: APIRouteParams;
78
- throwOnError?: boolean;
79
- }
80
- interface FarmTestServerFnOptions extends Pick<FarmTestRequestOptions, "origin" | "headers" | "cookies" | "signal"> {
81
- path?: string | URL;
82
- request?: Request;
83
- }
84
- type FarmTestServerFnArguments<TInput> = [unknown] extends [TInput] ? [input?: TInput | FormData, options?: FarmTestServerFnOptions] : [input: TInput | FormData, options?: FarmTestServerFnOptions];
85
- interface FarmTestHarness<TContext = unknown> {
86
- request(path?: string | URL, options?: FarmTestRequestOptions): Request;
87
- route<TRoute extends AnyProgrammaticPageRoute>(route: TRoute, options?: FarmTestRouteOptions<TRoute, TContext>): Promise<FarmTestRouteResult<TRoute>>;
88
- api(route: ProgrammaticApiRoute, options?: FarmTestApiOptions): Promise<Response>;
89
- endpoint(endpoint: unknown, options?: FarmTestEndpointOptions): Promise<Response>;
90
- serverFn<TInput, TResult>(serverFn: ServerFn<TInput, TResult>, ...args: FarmTestServerFnArguments<TInput>): Promise<TResult>;
91
- clearCache(): void;
92
- }
93
- /** Create a deterministic Web Request without depending on a test runner. */
94
- declare function createTestRequest(path?: string | URL, options?: FarmTestRequestOptions): Request;
95
- /**
96
- * Create test helpers that exercise Farm's real route, API, and server-function runtimes.
97
- * The harness has no dependency on Vitest, Jest, or a DOM environment.
98
- */
99
- declare function createFarmTestHarness<TContext = unknown>(options?: FarmTestHarnessOptions<TContext>): FarmTestHarness<TContext>;
100
-
101
- export { type FarmTestApiOptions, type FarmTestEndpointOptions, type FarmTestFormValues, type FarmTestHarness, type FarmTestHarnessOptions, type FarmTestPathParams, type FarmTestQuery, type FarmTestRequestOptions, type FarmTestRouteOptions, type FarmTestRouteProps, type FarmTestRouteResult, type FarmTestServerFnArguments, type FarmTestServerFnOptions, type InferFarmTestRouteData, type InferFarmTestRouteParams, type InferFarmTestRouteSearch, createFarmTestHarness, createTestRequest };
@@ -1,49 +0,0 @@
1
- type MultipartField = string | number | boolean | bigint | Blob | Date | null | undefined;
2
- type MultipartValues = Record<string, MultipartField | readonly MultipartField[]>;
3
- /**
4
- * A real FormData value that retains the submitted value shape for generated
5
- * API-client inference.
6
- */
7
- type TypedFormData<TValues> = FormData & {
8
- readonly __farmMultipartInput: TValues;
9
- };
10
- type MultipartSchema<TSchema> = TSchema & {
11
- readonly __farmMultipartSchema: true;
12
- };
13
- type FarmStreamResponse<TItem> = Response & {
14
- readonly __farmStreamItem: TItem;
15
- };
16
- interface FarmAPIStream<TItem> extends AsyncIterable<TItem> {
17
- readonly response: Response;
18
- cancel(reason?: unknown): Promise<void>;
19
- }
20
- type SchemaLike = {
21
- parse(data: unknown): unknown;
22
- };
23
- /**
24
- * Mark a body schema as multipart. The handler still receives the schema's
25
- * parsed object; generated clients require `toFormData(...)` for the request.
26
- */
27
- declare function multipart<TSchema extends SchemaLike>(schema: TSchema): MultipartSchema<TSchema>;
28
- declare function isMultipartSchema(value: unknown): value is MultipartSchema<SchemaLike>;
29
- /**
30
- * Encode a typed object as multipart FormData without converting File or Blob
31
- * values to JSON or base64.
32
- */
33
- declare function toFormData<TValues extends MultipartValues>(values: TValues): TypedFormData<TValues>;
34
- /**
35
- * Stream JSON values as newline-delimited JSON. Each source value becomes one
36
- * independently decodable item instead of buffering the whole response.
37
- */
38
- declare function jsonStream<TItem>(source: AsyncIterable<TItem> | Iterable<TItem>, init?: ResponseInit): FarmStreamResponse<TItem>;
39
- declare function isJSONStreamResponse(response: {
40
- headers?: Pick<Headers, "get"> | null;
41
- }): boolean;
42
- /**
43
- * Decode a Farm JSON stream lazily. The response body is read only as the
44
- * consumer advances the async iterator, preserving fetch backpressure.
45
- */
46
- declare function readJSONStream<TItem>(response: Response): FarmAPIStream<TItem>;
47
- declare function isFarmAPIStream(value: unknown): value is FarmAPIStream<unknown>;
48
-
49
- export { type FarmAPIStream as F, type MultipartSchema as M, type TypedFormData as T, type MultipartField as a, type MultipartValues as b, type FarmStreamResponse as c, isJSONStreamResponse as d, isFarmAPIStream as e, isMultipartSchema as i, jsonStream as j, multipart as m, readJSONStream as r, toFormData as t };
@@ -1,49 +0,0 @@
1
- type MultipartField = string | number | boolean | bigint | Blob | Date | null | undefined;
2
- type MultipartValues = Record<string, MultipartField | readonly MultipartField[]>;
3
- /**
4
- * A real FormData value that retains the submitted value shape for generated
5
- * API-client inference.
6
- */
7
- type TypedFormData<TValues> = FormData & {
8
- readonly __farmMultipartInput: TValues;
9
- };
10
- type MultipartSchema<TSchema> = TSchema & {
11
- readonly __farmMultipartSchema: true;
12
- };
13
- type FarmStreamResponse<TItem> = Response & {
14
- readonly __farmStreamItem: TItem;
15
- };
16
- interface FarmAPIStream<TItem> extends AsyncIterable<TItem> {
17
- readonly response: Response;
18
- cancel(reason?: unknown): Promise<void>;
19
- }
20
- type SchemaLike = {
21
- parse(data: unknown): unknown;
22
- };
23
- /**
24
- * Mark a body schema as multipart. The handler still receives the schema's
25
- * parsed object; generated clients require `toFormData(...)` for the request.
26
- */
27
- declare function multipart<TSchema extends SchemaLike>(schema: TSchema): MultipartSchema<TSchema>;
28
- declare function isMultipartSchema(value: unknown): value is MultipartSchema<SchemaLike>;
29
- /**
30
- * Encode a typed object as multipart FormData without converting File or Blob
31
- * values to JSON or base64.
32
- */
33
- declare function toFormData<TValues extends MultipartValues>(values: TValues): TypedFormData<TValues>;
34
- /**
35
- * Stream JSON values as newline-delimited JSON. Each source value becomes one
36
- * independently decodable item instead of buffering the whole response.
37
- */
38
- declare function jsonStream<TItem>(source: AsyncIterable<TItem> | Iterable<TItem>, init?: ResponseInit): FarmStreamResponse<TItem>;
39
- declare function isJSONStreamResponse(response: {
40
- headers?: Pick<Headers, "get"> | null;
41
- }): boolean;
42
- /**
43
- * Decode a Farm JSON stream lazily. The response body is read only as the
44
- * consumer advances the async iterator, preserving fetch backpressure.
45
- */
46
- declare function readJSONStream<TItem>(response: Response): FarmAPIStream<TItem>;
47
- declare function isFarmAPIStream(value: unknown): value is FarmAPIStream<unknown>;
48
-
49
- export { type FarmAPIStream as F, type MultipartSchema as M, type TypedFormData as T, type MultipartField as a, type MultipartValues as b, type FarmStreamResponse as c, isJSONStreamResponse as d, isFarmAPIStream as e, isMultipartSchema as i, jsonStream as j, multipart as m, readJSONStream as r, toFormData as t };
@@ -1,81 +0,0 @@
1
- type FarmI18nRouting = "prefix-always" | "prefix-except-default" | "none";
2
- type FarmI18nDetectionSignal = "url" | "cookie" | "accept-language";
3
- type FarmI18nLocaleSource = FarmI18nDetectionSignal | "default" | "explicit";
4
- type FarmI18nDirection = "ltr" | "rtl";
5
- interface FarmI18nCookieConfig {
6
- name?: string;
7
- maxAge?: number;
8
- path?: string;
9
- sameSite?: "lax" | "strict" | "none";
10
- secure?: boolean;
11
- }
12
- interface FarmI18nUserConfig {
13
- locales: readonly string[];
14
- defaultLocale: string;
15
- /** Directory containing `<locale>.json`, or a path containing `{locale}`. */
16
- messages?: string;
17
- routing?: FarmI18nRouting;
18
- detection?: false | readonly FarmI18nDetectionSignal[];
19
- fallbackLocale?: string;
20
- strict?: boolean;
21
- cookie?: FarmI18nCookieConfig;
22
- direction?: Partial<Record<string, FarmI18nDirection>>;
23
- /** @deprecated Use `detection: false` to disable automatic detection. */
24
- localeDetection?: boolean;
25
- }
26
- interface ResolvedFarmI18nCookieConfig {
27
- name: string;
28
- maxAge: number;
29
- path: string;
30
- sameSite: "lax" | "strict" | "none";
31
- secure: boolean;
32
- }
33
- interface ResolvedFarmI18nConfig {
34
- enabled: boolean;
35
- locales: readonly string[];
36
- defaultLocale: string;
37
- messages: string;
38
- routing: FarmI18nRouting;
39
- detection: readonly FarmI18nDetectionSignal[];
40
- fallbackLocale: string;
41
- strict: boolean;
42
- cookie: ResolvedFarmI18nCookieConfig;
43
- direction: Readonly<Record<string, FarmI18nDirection>>;
44
- }
45
- type FarmI18nCatalog = Record<string, string>;
46
- type FarmI18nCatalogs = Record<string, FarmI18nCatalog>;
47
- interface FarmI18nClientSnapshot {
48
- locale: string;
49
- source: FarmI18nLocaleSource;
50
- locales: readonly string[];
51
- defaultLocale: string;
52
- routing: FarmI18nRouting;
53
- cookie: ResolvedFarmI18nCookieConfig;
54
- direction: FarmI18nDirection;
55
- messages: FarmI18nCatalog;
56
- }
57
- /** Generated `farm-i18n.d.ts` files augment this interface. */
58
- interface FarmI18nMessageRegistry {
59
- }
60
- /** Generated `farm-i18n.d.ts` files augment this interface. */
61
- interface FarmI18nLocaleRegistry {
62
- }
63
- type RegisteredMessageKey = Extract<keyof FarmI18nMessageRegistry, string>;
64
- type RegisteredLocale = Extract<keyof FarmI18nLocaleRegistry, string>;
65
- type FarmI18nMessageKey = [RegisteredMessageKey] extends [never] ? string : RegisteredMessageKey;
66
- type FarmI18nLocale = [RegisteredLocale] extends [never] ? string : RegisteredLocale;
67
- type FarmI18nMessageValues<TKey extends FarmI18nMessageKey> = TKey extends RegisteredMessageKey ? FarmI18nMessageRegistry[TKey] : Record<string, unknown>;
68
- type FarmI18nMessageArgs<TKey extends FarmI18nMessageKey> = TKey extends RegisteredMessageKey ? keyof FarmI18nMessageRegistry[TKey] extends never ? [values?: FarmI18nMessageRegistry[TKey]] : [values: FarmI18nMessageRegistry[TKey]] : [values?: Record<string, unknown>];
69
- interface FarmTranslator {
70
- <TKey extends FarmI18nMessageKey>(key: TKey, ...args: FarmI18nMessageArgs<TKey>): string;
71
- rich<TKey extends FarmI18nMessageKey>(key: TKey, ...args: FarmI18nMessageArgs<TKey>): unknown;
72
- raw<TKey extends FarmI18nMessageKey>(key: TKey): string;
73
- has(key: string): boolean;
74
- }
75
- declare global {
76
- interface Window {
77
- __FARM_I18N__?: FarmI18nClientSnapshot;
78
- }
79
- }
80
-
81
- export type { FarmI18nCatalogs as F, ResolvedFarmI18nConfig as R, FarmI18nClientSnapshot as a, FarmI18nLocaleSource as b, FarmI18nLocale as c, FarmTranslator as d, FarmI18nMessageArgs as e, FarmI18nMessageKey as f, FarmI18nCookieConfig as g, FarmI18nDetectionSignal as h, FarmI18nDirection as i, FarmI18nRouting as j, FarmI18nUserConfig as k, FarmI18nCatalog as l, FarmI18nLocaleRegistry as m, FarmI18nMessageRegistry as n, FarmI18nMessageValues as o };
@@ -1,81 +0,0 @@
1
- type FarmI18nRouting = "prefix-always" | "prefix-except-default" | "none";
2
- type FarmI18nDetectionSignal = "url" | "cookie" | "accept-language";
3
- type FarmI18nLocaleSource = FarmI18nDetectionSignal | "default" | "explicit";
4
- type FarmI18nDirection = "ltr" | "rtl";
5
- interface FarmI18nCookieConfig {
6
- name?: string;
7
- maxAge?: number;
8
- path?: string;
9
- sameSite?: "lax" | "strict" | "none";
10
- secure?: boolean;
11
- }
12
- interface FarmI18nUserConfig {
13
- locales: readonly string[];
14
- defaultLocale: string;
15
- /** Directory containing `<locale>.json`, or a path containing `{locale}`. */
16
- messages?: string;
17
- routing?: FarmI18nRouting;
18
- detection?: false | readonly FarmI18nDetectionSignal[];
19
- fallbackLocale?: string;
20
- strict?: boolean;
21
- cookie?: FarmI18nCookieConfig;
22
- direction?: Partial<Record<string, FarmI18nDirection>>;
23
- /** @deprecated Use `detection: false` to disable automatic detection. */
24
- localeDetection?: boolean;
25
- }
26
- interface ResolvedFarmI18nCookieConfig {
27
- name: string;
28
- maxAge: number;
29
- path: string;
30
- sameSite: "lax" | "strict" | "none";
31
- secure: boolean;
32
- }
33
- interface ResolvedFarmI18nConfig {
34
- enabled: boolean;
35
- locales: readonly string[];
36
- defaultLocale: string;
37
- messages: string;
38
- routing: FarmI18nRouting;
39
- detection: readonly FarmI18nDetectionSignal[];
40
- fallbackLocale: string;
41
- strict: boolean;
42
- cookie: ResolvedFarmI18nCookieConfig;
43
- direction: Readonly<Record<string, FarmI18nDirection>>;
44
- }
45
- type FarmI18nCatalog = Record<string, string>;
46
- type FarmI18nCatalogs = Record<string, FarmI18nCatalog>;
47
- interface FarmI18nClientSnapshot {
48
- locale: string;
49
- source: FarmI18nLocaleSource;
50
- locales: readonly string[];
51
- defaultLocale: string;
52
- routing: FarmI18nRouting;
53
- cookie: ResolvedFarmI18nCookieConfig;
54
- direction: FarmI18nDirection;
55
- messages: FarmI18nCatalog;
56
- }
57
- /** Generated `farm-i18n.d.ts` files augment this interface. */
58
- interface FarmI18nMessageRegistry {
59
- }
60
- /** Generated `farm-i18n.d.ts` files augment this interface. */
61
- interface FarmI18nLocaleRegistry {
62
- }
63
- type RegisteredMessageKey = Extract<keyof FarmI18nMessageRegistry, string>;
64
- type RegisteredLocale = Extract<keyof FarmI18nLocaleRegistry, string>;
65
- type FarmI18nMessageKey = [RegisteredMessageKey] extends [never] ? string : RegisteredMessageKey;
66
- type FarmI18nLocale = [RegisteredLocale] extends [never] ? string : RegisteredLocale;
67
- type FarmI18nMessageValues<TKey extends FarmI18nMessageKey> = TKey extends RegisteredMessageKey ? FarmI18nMessageRegistry[TKey] : Record<string, unknown>;
68
- type FarmI18nMessageArgs<TKey extends FarmI18nMessageKey> = TKey extends RegisteredMessageKey ? keyof FarmI18nMessageRegistry[TKey] extends never ? [values?: FarmI18nMessageRegistry[TKey]] : [values: FarmI18nMessageRegistry[TKey]] : [values?: Record<string, unknown>];
69
- interface FarmTranslator {
70
- <TKey extends FarmI18nMessageKey>(key: TKey, ...args: FarmI18nMessageArgs<TKey>): string;
71
- rich<TKey extends FarmI18nMessageKey>(key: TKey, ...args: FarmI18nMessageArgs<TKey>): unknown;
72
- raw<TKey extends FarmI18nMessageKey>(key: TKey): string;
73
- has(key: string): boolean;
74
- }
75
- declare global {
76
- interface Window {
77
- __FARM_I18N__?: FarmI18nClientSnapshot;
78
- }
79
- }
80
-
81
- export type { FarmI18nCatalogs as F, ResolvedFarmI18nConfig as R, FarmI18nClientSnapshot as a, FarmI18nLocaleSource as b, FarmI18nLocale as c, FarmTranslator as d, FarmI18nMessageArgs as e, FarmI18nMessageKey as f, FarmI18nCookieConfig as g, FarmI18nDetectionSignal as h, FarmI18nDirection as i, FarmI18nRouting as j, FarmI18nUserConfig as k, FarmI18nCatalog as l, FarmI18nLocaleRegistry as m, FarmI18nMessageRegistry as n, FarmI18nMessageValues as o };
@@ -1,53 +0,0 @@
1
- import { DocsConfig } from '@farming-labs/docs';
2
-
3
- interface FarmDocsSidebarItem {
4
- label?: string;
5
- title?: string;
6
- slug?: string;
7
- href?: string;
8
- icon?: string;
9
- children?: FarmDocsSidebarItem[];
10
- items?: FarmDocsSidebarItem[];
11
- }
12
- interface FarmDocsNavigationConfig {
13
- sidebar?: FarmDocsSidebarItem[];
14
- }
15
- type FarmDocsRuntimeConfig = Partial<DocsConfig> & {
16
- /**
17
- * Public favicon URL used by the standalone docs renderer.
18
- * Set this explicitly when docs should share the host application's icon.
19
- */
20
- favicon?: string;
21
- /**
22
- * Optional serializable navigation tree used by Farm's docs runtime.
23
- * Icon values reference keys from `icons`.
24
- */
25
- navigation?: FarmDocsNavigationConfig;
26
- };
27
- type FarmDocsConfigInput = FarmDocsRuntimeConfig & {
28
- /**
29
- * Farm public route for docs, e.g. "/docs". When passed through
30
- * `config`, this is converted to the docs package's folder-style `entry`.
31
- */
32
- entry?: string;
33
- /** Explicit public route prefix. Defaults to `entry`. */
34
- docsPath?: string;
35
- /** Source content directory, relative to the project root. */
36
- contentDir?: string;
37
- /** Set to false to opt out even when a docs config file exists. */
38
- enabled?: boolean;
39
- /** Inline @farming-labs/docs config object. */
40
- config?: FarmDocsRuntimeConfig;
41
- /** Path to docs.config.* or docs.json. */
42
- configPath?: string;
43
- };
44
- type FarmDocsUserConfig = boolean | FarmDocsConfigInput;
45
- interface FarmDocsResolvedConfig {
46
- enabled: boolean;
47
- entry: string;
48
- contentDir?: string;
49
- configPath?: string;
50
- config: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
51
- }
52
-
53
- export type { FarmDocsResolvedConfig as F, FarmDocsUserConfig as a, FarmDocsConfigInput as b, FarmDocsNavigationConfig as c, FarmDocsSidebarItem as d };
@@ -1,53 +0,0 @@
1
- import { DocsConfig } from '@farming-labs/docs';
2
-
3
- interface FarmDocsSidebarItem {
4
- label?: string;
5
- title?: string;
6
- slug?: string;
7
- href?: string;
8
- icon?: string;
9
- children?: FarmDocsSidebarItem[];
10
- items?: FarmDocsSidebarItem[];
11
- }
12
- interface FarmDocsNavigationConfig {
13
- sidebar?: FarmDocsSidebarItem[];
14
- }
15
- type FarmDocsRuntimeConfig = Partial<DocsConfig> & {
16
- /**
17
- * Public favicon URL used by the standalone docs renderer.
18
- * Set this explicitly when docs should share the host application's icon.
19
- */
20
- favicon?: string;
21
- /**
22
- * Optional serializable navigation tree used by Farm's docs runtime.
23
- * Icon values reference keys from `icons`.
24
- */
25
- navigation?: FarmDocsNavigationConfig;
26
- };
27
- type FarmDocsConfigInput = FarmDocsRuntimeConfig & {
28
- /**
29
- * Farm public route for docs, e.g. "/docs". When passed through
30
- * `config`, this is converted to the docs package's folder-style `entry`.
31
- */
32
- entry?: string;
33
- /** Explicit public route prefix. Defaults to `entry`. */
34
- docsPath?: string;
35
- /** Source content directory, relative to the project root. */
36
- contentDir?: string;
37
- /** Set to false to opt out even when a docs config file exists. */
38
- enabled?: boolean;
39
- /** Inline @farming-labs/docs config object. */
40
- config?: FarmDocsRuntimeConfig;
41
- /** Path to docs.config.* or docs.json. */
42
- configPath?: string;
43
- };
44
- type FarmDocsUserConfig = boolean | FarmDocsConfigInput;
45
- interface FarmDocsResolvedConfig {
46
- enabled: boolean;
47
- entry: string;
48
- contentDir?: string;
49
- configPath?: string;
50
- config: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
51
- }
52
-
53
- export type { FarmDocsResolvedConfig as F, FarmDocsUserConfig as a, FarmDocsConfigInput as b, FarmDocsNavigationConfig as c, FarmDocsSidebarItem as d };
@@ -1,73 +0,0 @@
1
- import { ConnectorOptions } from 'db0';
2
- import { BuiltinDriverOptions, BuiltinDriverName, Driver, Storage } from 'unstorage';
3
-
4
- type ObjectShape<T> = T extends object ? T : Record<string, never>;
5
- type FarmStorageBuiltinDriverWithoutDB0 = Exclude<Extract<BuiltinDriverName, keyof BuiltinDriverOptions>, "db0">;
6
- type FarmStorageBuiltinDriverConfigMap = {
7
- [K in FarmStorageBuiltinDriverWithoutDB0]: {
8
- driver: K;
9
- options?: BuiltinDriverOptions[K];
10
- } & Partial<ObjectShape<BuiltinDriverOptions[K]>>;
11
- };
12
- type FarmStorageDatabaseDriverMap = {
13
- sqlite: "node-sqlite";
14
- "node-sqlite": "node-sqlite";
15
- sqlite3: "sqlite3";
16
- "better-sqlite3": "better-sqlite3";
17
- postgres: "postgresql";
18
- postgresql: "postgresql";
19
- pg: "postgresql";
20
- mysql: "mysql2";
21
- mysql2: "mysql2";
22
- pglite: "pglite";
23
- planetscale: "planetscale";
24
- libsql: "libsql";
25
- "libsql-node": "libsql-node";
26
- "libsql-http": "libsql-http";
27
- };
28
- type FarmStorageDatabaseDriverName = keyof FarmStorageDatabaseDriverMap;
29
- type FarmStorageDatabaseConfigMap = {
30
- [K in FarmStorageDatabaseDriverName]: {
31
- driver: K;
32
- options?: ConnectorOptions[FarmStorageDatabaseDriverMap[K]];
33
- tableName?: string;
34
- } & Partial<ObjectShape<ConnectorOptions[FarmStorageDatabaseDriverMap[K]]>>;
35
- };
36
- type FarmStorageMemoryDriverConfig = {
37
- driver?: "memory";
38
- };
39
- type FarmStorageLocalDriverConfig = {
40
- driver: "local";
41
- options?: BuiltinDriverOptions["fs-lite"];
42
- } & Partial<ObjectShape<BuiltinDriverOptions["fs-lite"]>>;
43
- type FarmStorageDB0DriverConfig = {
44
- driver: "db0";
45
- options: BuiltinDriverOptions["db0"];
46
- };
47
- type FarmStorageBuiltinDriverConfig = FarmStorageMemoryDriverConfig | FarmStorageLocalDriverConfig | FarmStorageDB0DriverConfig | FarmStorageBuiltinDriverConfigMap[FarmStorageBuiltinDriverWithoutDB0];
48
- interface FarmStorageClient extends Storage {
49
- readonly kind: "farm-storage-client";
50
- ready(): Promise<Storage>;
51
- createStorage(): Promise<Storage>;
52
- resolveDriver(): Promise<Driver>;
53
- }
54
- type FarmStorageRuntimeClient = object | (() => unknown | Promise<unknown>);
55
- interface FarmStorageCustomDriverConfig {
56
- driver: Driver | (() => Driver | Promise<Driver>);
57
- }
58
- type FarmStorageDatabaseConfig = FarmStorageDatabaseConfigMap[FarmStorageDatabaseDriverName];
59
- type FarmStorageClientConfig = FarmStorageBuiltinDriverConfig | FarmStorageDatabaseConfig | FarmStorageCustomDriverConfig;
60
- type FarmStorageMountConfig = FarmStorageClientConfig | FarmStorageClient;
61
- type FarmStorageMounts = Record<string, FarmStorageMountConfig>;
62
- type FarmStorageConfigObject = FarmStorageClientConfig & {
63
- /**
64
- * Existing FarmStorageClient instances still drive Farm's key/value storage.
65
- * Other objects/functions are treated as application runtime clients for
66
- * schema-backed integration persistence via @farming-labs/orm.
67
- */
68
- client?: FarmStorageClient | FarmStorageRuntimeClient;
69
- mounts?: FarmStorageMounts;
70
- };
71
- type FarmStorageUserConfig = FarmStorageConfigObject | FarmStorageClient;
72
-
73
- export type { FarmStorageBuiltinDriverConfig as F, FarmStorageClient as a, FarmStorageClientConfig as b, FarmStorageConfigObject as c, FarmStorageCustomDriverConfig as d, FarmStorageDatabaseConfig as e, FarmStorageDatabaseDriverName as f, FarmStorageLocalDriverConfig as g, FarmStorageRuntimeClient as h, FarmStorageMountConfig as i, FarmStorageMounts as j, FarmStorageUserConfig as k };
@@ -1,73 +0,0 @@
1
- import { ConnectorOptions } from 'db0';
2
- import { BuiltinDriverOptions, BuiltinDriverName, Driver, Storage } from 'unstorage';
3
-
4
- type ObjectShape<T> = T extends object ? T : Record<string, never>;
5
- type FarmStorageBuiltinDriverWithoutDB0 = Exclude<Extract<BuiltinDriverName, keyof BuiltinDriverOptions>, "db0">;
6
- type FarmStorageBuiltinDriverConfigMap = {
7
- [K in FarmStorageBuiltinDriverWithoutDB0]: {
8
- driver: K;
9
- options?: BuiltinDriverOptions[K];
10
- } & Partial<ObjectShape<BuiltinDriverOptions[K]>>;
11
- };
12
- type FarmStorageDatabaseDriverMap = {
13
- sqlite: "node-sqlite";
14
- "node-sqlite": "node-sqlite";
15
- sqlite3: "sqlite3";
16
- "better-sqlite3": "better-sqlite3";
17
- postgres: "postgresql";
18
- postgresql: "postgresql";
19
- pg: "postgresql";
20
- mysql: "mysql2";
21
- mysql2: "mysql2";
22
- pglite: "pglite";
23
- planetscale: "planetscale";
24
- libsql: "libsql";
25
- "libsql-node": "libsql-node";
26
- "libsql-http": "libsql-http";
27
- };
28
- type FarmStorageDatabaseDriverName = keyof FarmStorageDatabaseDriverMap;
29
- type FarmStorageDatabaseConfigMap = {
30
- [K in FarmStorageDatabaseDriverName]: {
31
- driver: K;
32
- options?: ConnectorOptions[FarmStorageDatabaseDriverMap[K]];
33
- tableName?: string;
34
- } & Partial<ObjectShape<ConnectorOptions[FarmStorageDatabaseDriverMap[K]]>>;
35
- };
36
- type FarmStorageMemoryDriverConfig = {
37
- driver?: "memory";
38
- };
39
- type FarmStorageLocalDriverConfig = {
40
- driver: "local";
41
- options?: BuiltinDriverOptions["fs-lite"];
42
- } & Partial<ObjectShape<BuiltinDriverOptions["fs-lite"]>>;
43
- type FarmStorageDB0DriverConfig = {
44
- driver: "db0";
45
- options: BuiltinDriverOptions["db0"];
46
- };
47
- type FarmStorageBuiltinDriverConfig = FarmStorageMemoryDriverConfig | FarmStorageLocalDriverConfig | FarmStorageDB0DriverConfig | FarmStorageBuiltinDriverConfigMap[FarmStorageBuiltinDriverWithoutDB0];
48
- interface FarmStorageClient extends Storage {
49
- readonly kind: "farm-storage-client";
50
- ready(): Promise<Storage>;
51
- createStorage(): Promise<Storage>;
52
- resolveDriver(): Promise<Driver>;
53
- }
54
- type FarmStorageRuntimeClient = object | (() => unknown | Promise<unknown>);
55
- interface FarmStorageCustomDriverConfig {
56
- driver: Driver | (() => Driver | Promise<Driver>);
57
- }
58
- type FarmStorageDatabaseConfig = FarmStorageDatabaseConfigMap[FarmStorageDatabaseDriverName];
59
- type FarmStorageClientConfig = FarmStorageBuiltinDriverConfig | FarmStorageDatabaseConfig | FarmStorageCustomDriverConfig;
60
- type FarmStorageMountConfig = FarmStorageClientConfig | FarmStorageClient;
61
- type FarmStorageMounts = Record<string, FarmStorageMountConfig>;
62
- type FarmStorageConfigObject = FarmStorageClientConfig & {
63
- /**
64
- * Existing FarmStorageClient instances still drive Farm's key/value storage.
65
- * Other objects/functions are treated as application runtime clients for
66
- * schema-backed integration persistence via @farming-labs/orm.
67
- */
68
- client?: FarmStorageClient | FarmStorageRuntimeClient;
69
- mounts?: FarmStorageMounts;
70
- };
71
- type FarmStorageUserConfig = FarmStorageConfigObject | FarmStorageClient;
72
-
73
- export type { FarmStorageBuiltinDriverConfig as F, FarmStorageClient as a, FarmStorageClientConfig as b, FarmStorageConfigObject as c, FarmStorageCustomDriverConfig as d, FarmStorageDatabaseConfig as e, FarmStorageDatabaseDriverName as f, FarmStorageLocalDriverConfig as g, FarmStorageRuntimeClient as h, FarmStorageMountConfig as i, FarmStorageMounts as j, FarmStorageUserConfig as k };
@@ -1,23 +0,0 @@
1
- import { x as ParsedRoute, w as RouteSegment } from './client-plugins-DQQ1adXM.mjs';
2
-
3
- declare function parseRoutePath(filePath: string): ParsedRoute;
4
- declare function segmentsToPattern(segments: RouteSegment[]): string;
5
- declare function matchRoute(url: string, segments: RouteSegment[]): {
6
- params: Record<string, string>;
7
- matches: boolean;
8
- };
9
- declare function resolveAppPath(root: string, ...paths: string[]): string;
10
- declare function toViteModuleId(filePath: string, root: string): string;
11
- declare function fileExists(filePath: string): Promise<boolean>;
12
- declare function globFiles(pattern: string, cwd: string): Promise<string[]>;
13
- declare function parseSearchParams(searchParams: URLSearchParams): Record<string, string | string[]>;
14
- declare const logger: {
15
- info: (message: string) => void;
16
- success: (message: string) => void;
17
- warn: (message: string) => void;
18
- error: (message: string) => void;
19
- ready: (message: string) => void;
20
- event: (message: string) => void;
21
- };
22
-
23
- export { parseSearchParams as a, fileExists as f, globFiles as g, logger as l, matchRoute as m, parseRoutePath as p, resolveAppPath as r, segmentsToPattern as s, toViteModuleId as t };
@@ -1,23 +0,0 @@
1
- import { x as ParsedRoute, w as RouteSegment } from './client-plugins-Cw4qUGsw.js';
2
-
3
- declare function parseRoutePath(filePath: string): ParsedRoute;
4
- declare function segmentsToPattern(segments: RouteSegment[]): string;
5
- declare function matchRoute(url: string, segments: RouteSegment[]): {
6
- params: Record<string, string>;
7
- matches: boolean;
8
- };
9
- declare function resolveAppPath(root: string, ...paths: string[]): string;
10
- declare function toViteModuleId(filePath: string, root: string): string;
11
- declare function fileExists(filePath: string): Promise<boolean>;
12
- declare function globFiles(pattern: string, cwd: string): Promise<string[]>;
13
- declare function parseSearchParams(searchParams: URLSearchParams): Record<string, string | string[]>;
14
- declare const logger: {
15
- info: (message: string) => void;
16
- success: (message: string) => void;
17
- warn: (message: string) => void;
18
- error: (message: string) => void;
19
- ready: (message: string) => void;
20
- event: (message: string) => void;
21
- };
22
-
23
- export { parseSearchParams as a, fileExists as f, globFiles as g, logger as l, matchRoute as m, parseRoutePath as p, resolveAppPath as r, segmentsToPattern as s, toViteModuleId as t };