@farm.js/core 0.1.34 → 0.1.35

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 (261) hide show
  1. package/dist/agent-runtime.cjs +3 -3
  2. package/dist/agent-runtime.d.mts +4 -5
  3. package/dist/agent-runtime.d.ts +4 -5
  4. package/dist/agent-runtime.mjs +2 -2
  5. package/dist/api/route-manager.cjs +5 -5
  6. package/dist/api/route-manager.d.mts +6 -7
  7. package/dist/api/route-manager.d.ts +6 -7
  8. package/dist/api/route-manager.mjs +4 -4
  9. package/dist/api/runtime.cjs +6 -4
  10. package/dist/api/runtime.d.mts +4 -5
  11. package/dist/api/runtime.d.ts +4 -5
  12. package/dist/api/runtime.mjs +6 -4
  13. package/dist/api.cjs +6 -6
  14. package/dist/api.d.mts +7 -8
  15. package/dist/api.d.ts +7 -8
  16. package/dist/api.mjs +5 -5
  17. package/dist/{app-DgotYGbq.d.ts → app-BXB3JZYc.d.ts} +38 -12
  18. package/dist/{app-q4rmZlXK.d.mts → app-D_j9AAVL.d.mts} +38 -12
  19. package/dist/app-markdown.cjs +5 -5
  20. package/dist/app-markdown.d.mts +5 -6
  21. package/dist/app-markdown.d.ts +5 -6
  22. package/dist/app-markdown.mjs +4 -4
  23. package/dist/{chunk-LMJ7VRHZ.mjs → chunk-22LTEMGQ.mjs} +1 -1
  24. package/dist/{chunk-AQZFOP7S.mjs → chunk-2G2NNLE2.mjs} +1 -1
  25. package/dist/{chunk-QJ3J6MZT.cjs → chunk-3BHT4WMP.cjs} +2 -2
  26. package/dist/{chunk-X242HVD5.mjs → chunk-3PXS2MHU.mjs} +1 -1
  27. package/dist/{chunk-A5FGU2WU.cjs → chunk-3UH7MRCP.cjs} +19 -23
  28. package/dist/{chunk-AGC75XAE.mjs → chunk-4JHOT46A.mjs} +1 -1
  29. package/dist/{chunk-XV5DJTBX.mjs → chunk-4KU5Q7C2.mjs} +424 -230
  30. package/dist/{chunk-TA5G2HWD.cjs → chunk-4MMGO7YW.cjs} +21 -21
  31. package/dist/{chunk-7BT4H4P7.cjs → chunk-62XKI4Z3.cjs} +2 -2
  32. package/dist/{chunk-ZKP7C2B6.mjs → chunk-6DU6UFUE.mjs} +12 -11
  33. package/dist/{chunk-GOABMOX3.mjs → chunk-6ETPZTJI.mjs} +366 -4
  34. package/dist/{chunk-7Y6ZNFPX.mjs → chunk-6TJOML4E.mjs} +13 -3
  35. package/dist/{chunk-3ATMYLLJ.mjs → chunk-6WCPV6G2.mjs} +1 -1
  36. package/dist/{chunk-BTAG7LI7.cjs → chunk-73MC7ZL6.cjs} +2 -2
  37. package/dist/chunk-75RZHGLS.cjs +135 -0
  38. package/dist/{chunk-VKNHTSAP.cjs → chunk-7GLPRTTF.cjs} +2 -2
  39. package/dist/{chunk-7M52YUMY.cjs → chunk-7L5V3KQO.cjs} +2 -2
  40. package/dist/{chunk-LI2LMOLR.mjs → chunk-C35ZBVRD.mjs} +12 -3
  41. package/dist/{chunk-YQVSHTMR.mjs → chunk-CP6X4AEU.mjs} +1 -1
  42. package/dist/{chunk-QZCT2CQ4.mjs → chunk-CXEN47J3.mjs} +64 -2
  43. package/dist/{chunk-ATK2R4CH.cjs → chunk-D227TIEN.cjs} +14 -4
  44. package/dist/{chunk-ROUTX2E5.cjs → chunk-DBNKI4NF.cjs} +12 -3
  45. package/dist/{chunk-UX5S4JEO.cjs → chunk-EFCQPQMG.cjs} +3 -3
  46. package/dist/{chunk-K3F2E6GS.cjs → chunk-EJQT6KZN.cjs} +2 -2
  47. package/dist/{chunk-3LUF2PE2.cjs → chunk-EK4QAEFZ.cjs} +67 -5
  48. package/dist/{chunk-VVBO3QH7.mjs → chunk-ENLZ4R3Y.mjs} +10 -1
  49. package/dist/{chunk-XXJU7FCC.cjs → chunk-EUV4YR3V.cjs} +2 -2
  50. package/dist/{chunk-WNNYOOIB.mjs → chunk-F6Z3Y5KL.mjs} +1 -1
  51. package/dist/{chunk-PQDFUSXD.cjs → chunk-F7JZENPF.cjs} +33 -32
  52. package/dist/{chunk-TDFPACVX.cjs → chunk-FTFYRMQQ.cjs} +18 -18
  53. package/dist/{chunk-657WJNRY.mjs → chunk-G5RT7EXW.mjs} +1 -1
  54. package/dist/{chunk-MOKLYNHV.cjs → chunk-GFHLGIYC.cjs} +6 -6
  55. package/dist/{chunk-AWC4VUZL.cjs → chunk-GQ3Z3IZI.cjs} +14 -14
  56. package/dist/{chunk-75WGQVQA.cjs → chunk-HITLGIAO.cjs} +10 -1
  57. package/dist/{chunk-GNSDTTWZ.mjs → chunk-HMIJDL7S.mjs} +1 -1
  58. package/dist/{chunk-PXKIEXZD.mjs → chunk-HUMR6LSU.mjs} +1 -1
  59. package/dist/{chunk-SJVKK4JE.cjs → chunk-ICUQICNC.cjs} +912 -718
  60. package/dist/{chunk-P64MIF5B.cjs → chunk-IPXLADVO.cjs} +387 -25
  61. package/dist/{chunk-KROWKCUH.cjs → chunk-JGLC4TO3.cjs} +8 -1
  62. package/dist/{chunk-2NQQ5H5G.cjs → chunk-M7MKQXAF.cjs} +2 -1
  63. package/dist/chunk-NRDBW4MP.mjs +45 -0
  64. package/dist/chunk-OFZUJMCU.mjs +601 -0
  65. package/dist/{chunk-VCCUOMQN.mjs → chunk-OKZUAXHF.mjs} +1 -1
  66. package/dist/{chunk-EM6SBQKM.cjs → chunk-OMVAU7NT.cjs} +27 -2
  67. package/dist/{chunk-O27L4YAA.mjs → chunk-PDOCJ6RY.mjs} +2 -2
  68. package/dist/{chunk-36MK5YCW.cjs → chunk-PFQKNERH.cjs} +346 -206
  69. package/dist/{chunk-HR5KPHC2.mjs → chunk-Q3VLETLE.mjs} +1 -1
  70. package/dist/{chunk-LR5QSC2P.mjs → chunk-QAU5JD57.mjs} +211 -71
  71. package/dist/{chunk-LHODW25H.mjs → chunk-QORUJDIV.mjs} +2 -2
  72. package/dist/{chunk-UBO4SGH4.mjs → chunk-RHAZ22ZN.mjs} +2 -1
  73. package/dist/{chunk-ZHPHJPQP.cjs → chunk-RU3M2FIK.cjs} +18 -14
  74. package/dist/{chunk-JDPAKVS4.mjs → chunk-SAZVVAJH.mjs} +3 -3
  75. package/dist/{chunk-6VVL3MHY.mjs → chunk-SC2WYWPF.mjs} +1 -1
  76. package/dist/{chunk-QCFFHV5H.mjs → chunk-SMHH4VDG.mjs} +1 -1
  77. package/dist/{chunk-U4PTAHW3.mjs → chunk-SOMHP6GF.mjs} +7 -11
  78. package/dist/{chunk-VHANUNEG.mjs → chunk-UAORZ7QA.mjs} +2 -2
  79. package/dist/{chunk-NGVORZVZ.mjs → chunk-UJD4PHYB.mjs} +15 -11
  80. package/dist/{chunk-U74I55WB.cjs → chunk-ULAWS2PA.cjs} +13 -3
  81. package/dist/{chunk-MPEYMSCF.cjs → chunk-VFQT3LAO.cjs} +5 -5
  82. package/dist/{chunk-Z2YLTERK.cjs → chunk-VZJR7UTG.cjs} +6 -6
  83. package/dist/chunk-WWFTAUFG.cjs +45 -0
  84. package/dist/{chunk-ZUSJDQ2Q.mjs → chunk-WWIKMBRN.mjs} +1 -1
  85. package/dist/{chunk-QGYRXFU2.cjs → chunk-X6W5FFH6.cjs} +8 -8
  86. package/dist/{chunk-MIDIZJZC.cjs → chunk-XBML5KMG.cjs} +8 -8
  87. package/dist/{chunk-G26MUMKL.cjs → chunk-XCACDAZZ.cjs} +4 -4
  88. package/dist/{chunk-CLJYVZAD.mjs → chunk-XCMCS4DA.mjs} +11 -1
  89. package/dist/{chunk-XF7Q24PF.mjs → chunk-Y7RKTKYI.mjs} +25 -0
  90. package/dist/{chunk-ODBZYBAB.cjs → chunk-YC6V7PWE.cjs} +1 -1
  91. package/dist/{chunk-F6OHXPWR.mjs → chunk-YFILVET3.mjs} +8 -1
  92. package/dist/{chunk-DZ4DTRJ5.cjs → chunk-YKX5BK66.cjs} +7 -7
  93. package/dist/chunk-YSLWRWWP.cjs +601 -0
  94. package/dist/{chunk-3VSKDFAT.mjs → chunk-YULD7ICZ.mjs} +1 -1
  95. package/dist/chunk-ZLAT2CWY.mjs +135 -0
  96. package/dist/{chunk-T5CERMEH.cjs → chunk-ZXGAFZDO.cjs} +2 -2
  97. package/dist/{client-plugins-CLObcuCq.d.mts → client-plugins-CvIslxWi.d.mts} +207 -7
  98. package/dist/{client-plugins-DZjHC4Mi.d.ts → client-plugins-HIyulDym.d.ts} +207 -7
  99. package/dist/client-plugins.d.mts +4 -5
  100. package/dist/client-plugins.d.ts +4 -5
  101. package/dist/client.cjs +5 -5
  102. package/dist/client.d.mts +8 -9
  103. package/dist/client.d.ts +8 -9
  104. package/dist/client.mjs +4 -4
  105. package/dist/config.d.mts +4 -5
  106. package/dist/config.d.ts +4 -5
  107. package/dist/{devtools-HU6Y2MNV.cjs → devtools-EAUY43BS.cjs} +9 -9
  108. package/dist/{devtools-RNXCTS4R.mjs → devtools-EE5RIBTH.mjs} +8 -8
  109. package/dist/docs.cjs +12 -12
  110. package/dist/docs.d.mts +41 -4
  111. package/dist/docs.d.ts +41 -4
  112. package/dist/docs.mjs +11 -11
  113. package/dist/i18n/client.d.mts +2 -2
  114. package/dist/i18n/client.d.ts +2 -2
  115. package/dist/i18n/index.d.mts +3 -3
  116. package/dist/i18n/index.d.ts +3 -3
  117. package/dist/i18n/server.d.mts +5 -5
  118. package/dist/i18n/server.d.ts +5 -5
  119. package/dist/image/server.cjs +3 -3
  120. package/dist/image/server.mjs +2 -2
  121. package/dist/image/sharp.cjs +10 -10
  122. package/dist/image/sharp.mjs +2 -2
  123. package/dist/{index-a-8Z5kZU.d.mts → index-BJJfLxJo.d.mts} +2 -2
  124. package/dist/{index-BWVfxIsO.d.ts → index-CwoOP-MW.d.ts} +2 -2
  125. package/dist/index.cjs +38 -35
  126. package/dist/index.d.mts +19 -20
  127. package/dist/index.d.ts +19 -20
  128. package/dist/index.mjs +37 -34
  129. package/dist/integrations.cjs +3 -3
  130. package/dist/integrations.d.mts +4 -5
  131. package/dist/integrations.d.ts +4 -5
  132. package/dist/integrations.mjs +2 -2
  133. package/dist/internal/app-markdown-runtime.cjs +4 -4
  134. package/dist/internal/app-markdown-runtime.d.mts +5 -6
  135. package/dist/internal/app-markdown-runtime.d.ts +5 -6
  136. package/dist/internal/app-markdown-runtime.mjs +3 -3
  137. package/dist/internal/build-runtime.cjs +26 -26
  138. package/dist/internal/build-runtime.d.mts +6 -7
  139. package/dist/internal/build-runtime.d.ts +6 -7
  140. package/dist/internal/build-runtime.mjs +25 -25
  141. package/dist/internal/cli-runtime.cjs +13 -13
  142. package/dist/internal/cli-runtime.mjs +12 -12
  143. package/dist/internal/client-error-overlay.cjs +6 -6
  144. package/dist/internal/client-error-overlay.mjs +2 -2
  145. package/dist/internal/client-runtime.cjs +2 -2
  146. package/dist/internal/client-runtime.mjs +1 -1
  147. package/dist/internal/compression-runtime.d.mts +4 -5
  148. package/dist/internal/compression-runtime.d.ts +4 -5
  149. package/dist/internal/config-runtime.cjs +9 -9
  150. package/dist/internal/config-runtime.d.mts +5 -6
  151. package/dist/internal/config-runtime.d.ts +5 -6
  152. package/dist/internal/config-runtime.mjs +8 -8
  153. package/dist/internal/isolated-boundary.cjs +3 -2
  154. package/dist/internal/isolated-boundary.d.mts +1 -0
  155. package/dist/internal/isolated-boundary.d.ts +1 -0
  156. package/dist/internal/isolated-boundary.mjs +2 -1
  157. package/dist/internal/metadata-image-runtime.cjs +3 -3
  158. package/dist/internal/metadata-image-runtime.mjs +2 -2
  159. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  160. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  161. package/dist/internal/production-runtime.cjs +47 -23
  162. package/dist/internal/production-runtime.d.mts +58 -18
  163. package/dist/internal/production-runtime.d.ts +58 -18
  164. package/dist/internal/production-runtime.mjs +43 -19
  165. package/dist/internal/server-tree.cjs +12 -0
  166. package/dist/internal/server-tree.d.mts +27 -0
  167. package/dist/internal/server-tree.d.ts +27 -0
  168. package/dist/internal/server-tree.mjs +12 -0
  169. package/dist/markdown.cjs +3 -3
  170. package/dist/markdown.d.mts +4 -5
  171. package/dist/markdown.d.ts +4 -5
  172. package/dist/markdown.mjs +2 -2
  173. package/dist/{metadata-Cjs8JMRM.d.ts → metadata-BnLDsUOS.d.ts} +16 -2
  174. package/dist/{metadata-2HSU2i_w.d.mts → metadata-WGpBYcGn.d.mts} +16 -2
  175. package/dist/middleware.cjs +4 -4
  176. package/dist/middleware.d.mts +6 -7
  177. package/dist/middleware.d.ts +6 -7
  178. package/dist/middleware.mjs +3 -3
  179. package/dist/navigation.cjs +5 -5
  180. package/dist/navigation.d.mts +7 -8
  181. package/dist/navigation.d.ts +7 -8
  182. package/dist/navigation.mjs +4 -4
  183. package/dist/{nitro-4XGPNIK4.mjs → nitro-MXRDCXWZ.mjs} +2 -2
  184. package/dist/{nitro-HSAQFXSS.cjs → nitro-OVPLKPE2.cjs} +3 -3
  185. package/dist/{observability-BupkiN0m.d.mts → observability-CoXunYhS.d.mts} +4 -3
  186. package/dist/{observability-BupkiN0m.d.ts → observability-CoXunYhS.d.ts} +4 -3
  187. package/dist/observability.d.mts +1 -1
  188. package/dist/observability.d.ts +1 -1
  189. package/dist/plugin.cjs +22 -22
  190. package/dist/plugin.d.mts +4 -5
  191. package/dist/plugin.d.ts +4 -5
  192. package/dist/plugin.mjs +21 -21
  193. package/dist/{production-runtime-CysZl3EV.d.mts → production-runtime-0sRnuYc-.d.mts} +4 -4
  194. package/dist/{production-runtime-BU5ETAK9.d.ts → production-runtime-Crq6CJ-2.d.ts} +4 -4
  195. package/dist/query/client.cjs +6 -6
  196. package/dist/query/client.mjs +2 -2
  197. package/dist/{render-plan-D72O1qm4.d.ts → render-plan-8ozZh2Qv.d.ts} +1 -1
  198. package/dist/{render-plan-CKr4ltOd.d.mts → render-plan-gs9GGPzw.d.mts} +1 -1
  199. package/dist/renderer/react/server.cjs +10 -4
  200. package/dist/renderer/react/server.d.mts +2 -1
  201. package/dist/renderer/react/server.d.ts +2 -1
  202. package/dist/renderer/react/server.mjs +7 -1
  203. package/dist/renderer-client.cjs +5 -5
  204. package/dist/renderer-client.d.mts +6 -7
  205. package/dist/renderer-client.d.ts +6 -7
  206. package/dist/renderer-client.mjs +2 -2
  207. package/dist/renderer.d.mts +2 -0
  208. package/dist/renderer.d.ts +2 -0
  209. package/dist/{request-DbyOYI2j.d.ts → request-B5G8rLBH.d.ts} +1 -1
  210. package/dist/{request-Be83WafN.d.mts → request-fkhiynXe.d.mts} +1 -1
  211. package/dist/request.d.mts +5 -6
  212. package/dist/request.d.ts +5 -6
  213. package/dist/{resolver-PPEeiJ6M.d.ts → resolver-DadfRL6F.d.ts} +1 -1
  214. package/dist/{resolver-DhW0CqZN.d.mts → resolver-khasx3fU.d.mts} +1 -1
  215. package/dist/{route-rendering-BG56SzvJ.d.mts → route-rendering-CLnS7AZj.d.mts} +1 -1
  216. package/dist/{route-rendering-CtVMpV-k.d.ts → route-rendering-lS5nUMua.d.ts} +1 -1
  217. package/dist/{router-D94-SDlW.d.ts → router-4iuiYnOW.d.ts} +1 -1
  218. package/dist/{router-ALUvm8gC.d.mts → router-ifU8Dui1.d.mts} +1 -1
  219. package/dist/routes.d.mts +4 -5
  220. package/dist/routes.d.ts +4 -5
  221. package/dist/{runtime-BirxPwbZ.d.ts → runtime-BgDQzBiu.d.ts} +2 -2
  222. package/dist/{runtime-AOJge4vQ.d.mts → runtime-CV2UCV-5.d.mts} +2 -2
  223. package/dist/server-action-security.cjs +3 -3
  224. package/dist/server-action-security.mjs +2 -2
  225. package/dist/server-fn.cjs +4 -4
  226. package/dist/server-fn.mjs +3 -3
  227. package/dist/server-plugins.d.mts +5 -6
  228. package/dist/server-plugins.d.ts +5 -6
  229. package/dist/server-query.cjs +5 -5
  230. package/dist/server-query.mjs +4 -4
  231. package/dist/server.cjs +41 -41
  232. package/dist/server.d.mts +13 -14
  233. package/dist/server.d.ts +13 -14
  234. package/dist/server.mjs +24 -24
  235. package/dist/{spa-router-DbxNRKOB.d.mts → spa-router-Bq7VCOwx.d.mts} +3 -3
  236. package/dist/{spa-router-CxK3USIz.d.ts → spa-router-DaJk5Re4.d.ts} +3 -3
  237. package/dist/testing.cjs +7 -7
  238. package/dist/testing.d.mts +4 -5
  239. package/dist/testing.d.ts +4 -5
  240. package/dist/testing.mjs +5 -5
  241. package/dist/{types-Z0aotQ8w.d.mts → types-CnH8DOqo.d.mts} +1 -1
  242. package/dist/{types-Z0aotQ8w.d.ts → types-CnH8DOqo.d.ts} +1 -1
  243. package/dist/{utils-311Y8eoK.d.ts → utils-BXLmFsVR.d.ts} +1 -1
  244. package/dist/{utils-4wVRcpOw.d.mts → utils-XJn0c9bj.d.mts} +1 -1
  245. package/dist/version.cjs +2 -2
  246. package/dist/version.mjs +1 -1
  247. package/dist/vite.cjs +22 -22
  248. package/dist/vite.d.mts +4 -5
  249. package/dist/vite.d.ts +4 -5
  250. package/dist/vite.mjs +21 -21
  251. package/dist/{workflows-CR9ex-gz.d.ts → workflows-jZ4BcdoZ.d.mts} +1 -1
  252. package/dist/{workflows-CR9ex-gz.d.mts → workflows-jZ4BcdoZ.d.ts} +1 -1
  253. package/dist/workflows.cjs +3 -3
  254. package/dist/workflows.d.mts +1 -1
  255. package/dist/workflows.d.ts +1 -1
  256. package/dist/workflows.mjs +2 -2
  257. package/package.json +9 -1
  258. package/dist/chunk-M64YUMA4.cjs +0 -58
  259. package/dist/chunk-QLQ32WC4.mjs +0 -58
  260. package/dist/types-DFbjpjXX.d.mts +0 -105
  261. package/dist/types-DFbjpjXX.d.ts +0 -105
package/dist/vite.mjs CHANGED
@@ -9,16 +9,16 @@ import {
9
9
  shouldEmitFarmClientRootHmr,
10
10
  transformIsolatedClientBoundaryModule,
11
11
  withFarmRequestTracing
12
- } from "./chunk-XV5DJTBX.mjs";
13
- import "./chunk-AQZFOP7S.mjs";
12
+ } from "./chunk-4KU5Q7C2.mjs";
13
+ import "./chunk-2G2NNLE2.mjs";
14
14
  import "./chunk-HALDNTIV.mjs";
15
15
  import "./chunk-ZMSZZXOR.mjs";
16
16
  import "./chunk-F3VB7ONA.mjs";
17
- import "./chunk-GOABMOX3.mjs";
17
+ import "./chunk-6ETPZTJI.mjs";
18
18
  import "./chunk-DAO7JGTS.mjs";
19
19
  import "./chunk-BOYNDCZL.mjs";
20
- import "./chunk-YQVSHTMR.mjs";
21
- import "./chunk-PXKIEXZD.mjs";
20
+ import "./chunk-CP6X4AEU.mjs";
21
+ import "./chunk-HUMR6LSU.mjs";
22
22
  import "./chunk-SLQCDJSO.mjs";
23
23
  import "./chunk-XAXTTBUT.mjs";
24
24
  import "./chunk-45ZSJLDT.mjs";
@@ -26,49 +26,49 @@ import "./chunk-4JCQDWPX.mjs";
26
26
  import "./chunk-PNGWZFUQ.mjs";
27
27
  import "./chunk-E5GNDG5F.mjs";
28
28
  import "./chunk-2ELDTQRN.mjs";
29
- import "./chunk-VVBO3QH7.mjs";
29
+ import "./chunk-ENLZ4R3Y.mjs";
30
30
  import "./chunk-TVGP4BBZ.mjs";
31
31
  import "./chunk-RSOJ7DRT.mjs";
32
32
  import "./chunk-JBSVKMC5.mjs";
33
33
  import "./chunk-GHFS7RUB.mjs";
34
34
  import "./chunk-JHWOVJ3M.mjs";
35
35
  import "./chunk-DAATZTKJ.mjs";
36
- import "./chunk-NGVORZVZ.mjs";
36
+ import "./chunk-UJD4PHYB.mjs";
37
37
  import "./chunk-G2KY33I6.mjs";
38
38
  import "./chunk-YHOCRI4H.mjs";
39
- import "./chunk-QCFFHV5H.mjs";
39
+ import "./chunk-SMHH4VDG.mjs";
40
40
  import "./chunk-4OOBRCJX.mjs";
41
- import "./chunk-3VSKDFAT.mjs";
42
- import "./chunk-AGC75XAE.mjs";
41
+ import "./chunk-YULD7ICZ.mjs";
42
+ import "./chunk-4JHOT46A.mjs";
43
43
  import "./chunk-FA2W42OV.mjs";
44
- import "./chunk-ZUSJDQ2Q.mjs";
44
+ import "./chunk-WWIKMBRN.mjs";
45
45
  import "./chunk-MVL2RAJW.mjs";
46
46
  import "./chunk-SFGWNC43.mjs";
47
- import "./chunk-3ATMYLLJ.mjs";
47
+ import "./chunk-6WCPV6G2.mjs";
48
48
  import "./chunk-2UC36WAC.mjs";
49
49
  import "./chunk-ONUEYC6N.mjs";
50
50
  import "./chunk-UWPLULNK.mjs";
51
51
  import "./chunk-AELACLOB.mjs";
52
52
  import "./chunk-SEJ5N6SL.mjs";
53
- import "./chunk-GNSDTTWZ.mjs";
53
+ import "./chunk-HMIJDL7S.mjs";
54
54
  import "./chunk-44SYJEG3.mjs";
55
- import "./chunk-7Y6ZNFPX.mjs";
56
- import "./chunk-UBO4SGH4.mjs";
55
+ import "./chunk-6TJOML4E.mjs";
56
+ import "./chunk-RHAZ22ZN.mjs";
57
57
  import "./chunk-2NNMOPDN.mjs";
58
58
  import "./chunk-JG6DJF5A.mjs";
59
59
  import "./chunk-R3DS7A2T.mjs";
60
60
  import "./chunk-IOEH4VWN.mjs";
61
- import "./chunk-LMJ7VRHZ.mjs";
61
+ import "./chunk-22LTEMGQ.mjs";
62
62
  import "./chunk-UDNPLXW7.mjs";
63
63
  import "./chunk-CU625VAY.mjs";
64
64
  import "./chunk-NPC7VWJE.mjs";
65
65
  import "./chunk-QCFBDFRS.mjs";
66
66
  import "./chunk-YOZYCI6Z.mjs";
67
- import "./chunk-657WJNRY.mjs";
67
+ import "./chunk-G5RT7EXW.mjs";
68
68
  import "./chunk-3UEVPCGW.mjs";
69
69
  import "./chunk-W3B4PKAW.mjs";
70
70
  import "./chunk-5WI2S4CO.mjs";
71
- import "./chunk-QLQ32WC4.mjs";
71
+ import "./chunk-ZLAT2CWY.mjs";
72
72
  import "./chunk-EA5K5BKU.mjs";
73
73
  import "./chunk-2J7W2WND.mjs";
74
74
  import "./chunk-MSSFIQGM.mjs";
@@ -76,7 +76,7 @@ import "./chunk-FZ6YYU2W.mjs";
76
76
  import "./chunk-FP2INE7H.mjs";
77
77
  import {
78
78
  createFarmNodeRequestAbortSignal
79
- } from "./chunk-XF7Q24PF.mjs";
79
+ } from "./chunk-Y7RKTKYI.mjs";
80
80
  import "./chunk-I2BHUNBU.mjs";
81
81
  import "./chunk-43FMW62B.mjs";
82
82
  import "./chunk-BCMSYSN2.mjs";
@@ -85,7 +85,7 @@ import "./chunk-QVKYGNVM.mjs";
85
85
  import "./chunk-BTHHUD7Q.mjs";
86
86
  import "./chunk-FUZEBRP3.mjs";
87
87
  import "./chunk-Z2RZJZIZ.mjs";
88
- import "./chunk-X242HVD5.mjs";
88
+ import "./chunk-3PXS2MHU.mjs";
89
89
  import "./chunk-54UPOYFS.mjs";
90
90
  import "./chunk-WNSDDRNU.mjs";
91
91
  import "./chunk-JPLUGGRV.mjs";
@@ -95,7 +95,7 @@ import "./chunk-O7BH5O46.mjs";
95
95
  import "./chunk-7LTCDQRS.mjs";
96
96
  import "./chunk-GCXWJJKH.mjs";
97
97
  import "./chunk-JM5XPKWH.mjs";
98
- import "./chunk-QZCT2CQ4.mjs";
98
+ import "./chunk-CXEN47J3.mjs";
99
99
  import "./chunk-SKNL7VA2.mjs";
100
100
  import "./chunk-2A3EQHXX.mjs";
101
101
  import "./chunk-JNZ4TDWM.mjs";
@@ -181,4 +181,4 @@ declare function createFarmWorkflowVercelCrons(workflows: FarmDiscoveredWorkflow
181
181
  }>;
182
182
  declare function applyFarmWorkflowVercelCrons(vercelConfig: Record<string, any>, workflows: FarmDiscoveredWorkflow[]): Record<string, any>;
183
183
 
184
- export { discoverFarmWorkflows as A, createFarmWorkflowRequestHandler as B, runFarmWorkflowModule as C, DEFAULT_FARM_WORKFLOW_DIRS as D, prepareFarmWorkflowsForNitro as E, type FarmWorkflowsResolvedConfig as F, createFarmWorkflowVercelCrons as G, applyFarmWorkflowVercelCrons as H, type PreparedFarmWorkflows as P, type ResolvedFarmServerConfig as R, type FarmServerConfig as a, bufferFarmRequestBody as b, cloneFarmRequestWithContext as c, createFarmNodeRequestAbortSignal as d, createFarmRequestBodyErrorResponse as e, readNodeRequestBody as f, resolveFarmServerConfig as g, type FarmServerDuration as h, type FarmServerHealthConfig as i, type ResolvedFarmServerHealthConfig as j, type FarmWorkflowsUserConfig as k, type FarmWorkflowSchedule as l, matchesFarmIfNoneMatch as m, type FarmWorkflowLogger as n, type FarmWorkflowRunContext as o, type FarmWorkflowDefinition as p, type FarmCronDefinition as q, readFarmRequestBody as r, type FarmDiscoveredWorkflow as s, type FarmWorkflowHTTPHandlerOptions as t, DEFAULT_FARM_WORKFLOW_ROUTE as u, DEFAULT_FARM_WORKFLOW_SECRET_ENV as v, defineWorkflow as w, defineTask as x, defineCron as y, resolveWorkflowsConfig as z };
184
+ export { createFarmNodeRequestAbortSignal as A, createFarmRequestBodyErrorResponse as B, matchesFarmIfNoneMatch as C, DEFAULT_FARM_WORKFLOW_DIRS as D, readFarmRequestBody as E, type FarmWorkflowsResolvedConfig as F, readNodeRequestBody as G, resolveFarmServerConfig as H, type PreparedFarmWorkflows as P, type ResolvedFarmServerConfig as R, type FarmServerConfig as a, type FarmServerDuration as b, type FarmServerHealthConfig as c, type ResolvedFarmServerHealthConfig as d, type FarmWorkflowsUserConfig as e, type FarmWorkflowSchedule as f, type FarmWorkflowLogger as g, type FarmWorkflowRunContext as h, type FarmWorkflowDefinition as i, type FarmCronDefinition as j, type FarmDiscoveredWorkflow as k, type FarmWorkflowHTTPHandlerOptions as l, DEFAULT_FARM_WORKFLOW_ROUTE as m, DEFAULT_FARM_WORKFLOW_SECRET_ENV as n, defineWorkflow as o, defineTask as p, defineCron as q, resolveWorkflowsConfig as r, discoverFarmWorkflows as s, createFarmWorkflowRequestHandler as t, runFarmWorkflowModule as u, prepareFarmWorkflowsForNitro as v, createFarmWorkflowVercelCrons as w, applyFarmWorkflowVercelCrons as x, bufferFarmRequestBody as y, cloneFarmRequestWithContext as z };
@@ -181,4 +181,4 @@ declare function createFarmWorkflowVercelCrons(workflows: FarmDiscoveredWorkflow
181
181
  }>;
182
182
  declare function applyFarmWorkflowVercelCrons(vercelConfig: Record<string, any>, workflows: FarmDiscoveredWorkflow[]): Record<string, any>;
183
183
 
184
- export { discoverFarmWorkflows as A, createFarmWorkflowRequestHandler as B, runFarmWorkflowModule as C, DEFAULT_FARM_WORKFLOW_DIRS as D, prepareFarmWorkflowsForNitro as E, type FarmWorkflowsResolvedConfig as F, createFarmWorkflowVercelCrons as G, applyFarmWorkflowVercelCrons as H, type PreparedFarmWorkflows as P, type ResolvedFarmServerConfig as R, type FarmServerConfig as a, bufferFarmRequestBody as b, cloneFarmRequestWithContext as c, createFarmNodeRequestAbortSignal as d, createFarmRequestBodyErrorResponse as e, readNodeRequestBody as f, resolveFarmServerConfig as g, type FarmServerDuration as h, type FarmServerHealthConfig as i, type ResolvedFarmServerHealthConfig as j, type FarmWorkflowsUserConfig as k, type FarmWorkflowSchedule as l, matchesFarmIfNoneMatch as m, type FarmWorkflowLogger as n, type FarmWorkflowRunContext as o, type FarmWorkflowDefinition as p, type FarmCronDefinition as q, readFarmRequestBody as r, type FarmDiscoveredWorkflow as s, type FarmWorkflowHTTPHandlerOptions as t, DEFAULT_FARM_WORKFLOW_ROUTE as u, DEFAULT_FARM_WORKFLOW_SECRET_ENV as v, defineWorkflow as w, defineTask as x, defineCron as y, resolveWorkflowsConfig as z };
184
+ export { createFarmNodeRequestAbortSignal as A, createFarmRequestBodyErrorResponse as B, matchesFarmIfNoneMatch as C, DEFAULT_FARM_WORKFLOW_DIRS as D, readFarmRequestBody as E, type FarmWorkflowsResolvedConfig as F, readNodeRequestBody as G, resolveFarmServerConfig as H, type PreparedFarmWorkflows as P, type ResolvedFarmServerConfig as R, type FarmServerConfig as a, type FarmServerDuration as b, type FarmServerHealthConfig as c, type ResolvedFarmServerHealthConfig as d, type FarmWorkflowsUserConfig as e, type FarmWorkflowSchedule as f, type FarmWorkflowLogger as g, type FarmWorkflowRunContext as h, type FarmWorkflowDefinition as i, type FarmCronDefinition as j, type FarmDiscoveredWorkflow as k, type FarmWorkflowHTTPHandlerOptions as l, DEFAULT_FARM_WORKFLOW_ROUTE as m, DEFAULT_FARM_WORKFLOW_SECRET_ENV as n, defineWorkflow as o, defineTask as p, defineCron as q, resolveWorkflowsConfig as r, discoverFarmWorkflows as s, createFarmWorkflowRequestHandler as t, runFarmWorkflowModule as u, prepareFarmWorkflowsForNitro as v, createFarmWorkflowVercelCrons as w, applyFarmWorkflowVercelCrons as x, bufferFarmRequestBody as y, cloneFarmRequestWithContext as z };
@@ -12,10 +12,10 @@
12
12
 
13
13
 
14
14
 
15
- var _chunkMPEYMSCFcjs = require('./chunk-MPEYMSCF.cjs');
15
+ var _chunkVFQT3LAOcjs = require('./chunk-VFQT3LAO.cjs');
16
16
  require('./chunk-JDNHKPTD.cjs');
17
17
  require('./chunk-CMGMGHUZ.cjs');
18
- require('./chunk-EM6SBQKM.cjs');
18
+ require('./chunk-OMVAU7NT.cjs');
19
19
  require('./chunk-5QIKR7RR.cjs');
20
20
  require('./chunk-QNPEUFHQ.cjs');
21
21
  require('./chunk-DVM4FKZL.cjs');
@@ -38,4 +38,4 @@ require('./chunk-S3JO3N4H.cjs');
38
38
 
39
39
 
40
40
 
41
- exports.DEFAULT_FARM_WORKFLOW_DIRS = _chunkMPEYMSCFcjs.DEFAULT_FARM_WORKFLOW_DIRS; exports.DEFAULT_FARM_WORKFLOW_ROUTE = _chunkMPEYMSCFcjs.DEFAULT_FARM_WORKFLOW_ROUTE; exports.DEFAULT_FARM_WORKFLOW_SECRET_ENV = _chunkMPEYMSCFcjs.DEFAULT_FARM_WORKFLOW_SECRET_ENV; exports.applyFarmWorkflowVercelCrons = _chunkMPEYMSCFcjs.applyFarmWorkflowVercelCrons; exports.createFarmWorkflowRequestHandler = _chunkMPEYMSCFcjs.createFarmWorkflowRequestHandler; exports.createFarmWorkflowVercelCrons = _chunkMPEYMSCFcjs.createFarmWorkflowVercelCrons; exports.defineCron = _chunkMPEYMSCFcjs.defineCron; exports.defineTask = _chunkMPEYMSCFcjs.defineTask; exports.defineWorkflow = _chunkMPEYMSCFcjs.defineWorkflow; exports.discoverFarmWorkflows = _chunkMPEYMSCFcjs.discoverFarmWorkflows; exports.prepareFarmWorkflowsForNitro = _chunkMPEYMSCFcjs.prepareFarmWorkflowsForNitro; exports.resolveWorkflowsConfig = _chunkMPEYMSCFcjs.resolveWorkflowsConfig; exports.runFarmWorkflowModule = _chunkMPEYMSCFcjs.runFarmWorkflowModule;
41
+ exports.DEFAULT_FARM_WORKFLOW_DIRS = _chunkVFQT3LAOcjs.DEFAULT_FARM_WORKFLOW_DIRS; exports.DEFAULT_FARM_WORKFLOW_ROUTE = _chunkVFQT3LAOcjs.DEFAULT_FARM_WORKFLOW_ROUTE; exports.DEFAULT_FARM_WORKFLOW_SECRET_ENV = _chunkVFQT3LAOcjs.DEFAULT_FARM_WORKFLOW_SECRET_ENV; exports.applyFarmWorkflowVercelCrons = _chunkVFQT3LAOcjs.applyFarmWorkflowVercelCrons; exports.createFarmWorkflowRequestHandler = _chunkVFQT3LAOcjs.createFarmWorkflowRequestHandler; exports.createFarmWorkflowVercelCrons = _chunkVFQT3LAOcjs.createFarmWorkflowVercelCrons; exports.defineCron = _chunkVFQT3LAOcjs.defineCron; exports.defineTask = _chunkVFQT3LAOcjs.defineTask; exports.defineWorkflow = _chunkVFQT3LAOcjs.defineWorkflow; exports.discoverFarmWorkflows = _chunkVFQT3LAOcjs.discoverFarmWorkflows; exports.prepareFarmWorkflowsForNitro = _chunkVFQT3LAOcjs.prepareFarmWorkflowsForNitro; exports.resolveWorkflowsConfig = _chunkVFQT3LAOcjs.resolveWorkflowsConfig; exports.runFarmWorkflowModule = _chunkVFQT3LAOcjs.runFarmWorkflowModule;
@@ -1 +1 @@
1
- export { D as DEFAULT_FARM_WORKFLOW_DIRS, u as DEFAULT_FARM_WORKFLOW_ROUTE, v as DEFAULT_FARM_WORKFLOW_SECRET_ENV, q as FarmCronDefinition, s as FarmDiscoveredWorkflow, p as FarmWorkflowDefinition, t as FarmWorkflowHTTPHandlerOptions, n as FarmWorkflowLogger, o as FarmWorkflowRunContext, l as FarmWorkflowSchedule, F as FarmWorkflowsResolvedConfig, k as FarmWorkflowsUserConfig, P as PreparedFarmWorkflows, H as applyFarmWorkflowVercelCrons, B as createFarmWorkflowRequestHandler, G as createFarmWorkflowVercelCrons, y as defineCron, x as defineTask, w as defineWorkflow, A as discoverFarmWorkflows, E as prepareFarmWorkflowsForNitro, z as resolveWorkflowsConfig, C as runFarmWorkflowModule } from './workflows-CR9ex-gz.mjs';
1
+ export { D as DEFAULT_FARM_WORKFLOW_DIRS, m as DEFAULT_FARM_WORKFLOW_ROUTE, n as DEFAULT_FARM_WORKFLOW_SECRET_ENV, j as FarmCronDefinition, k as FarmDiscoveredWorkflow, i as FarmWorkflowDefinition, l as FarmWorkflowHTTPHandlerOptions, g as FarmWorkflowLogger, h as FarmWorkflowRunContext, f as FarmWorkflowSchedule, F as FarmWorkflowsResolvedConfig, e as FarmWorkflowsUserConfig, P as PreparedFarmWorkflows, x as applyFarmWorkflowVercelCrons, t as createFarmWorkflowRequestHandler, w as createFarmWorkflowVercelCrons, q as defineCron, p as defineTask, o as defineWorkflow, s as discoverFarmWorkflows, v as prepareFarmWorkflowsForNitro, r as resolveWorkflowsConfig, u as runFarmWorkflowModule } from './workflows-jZ4BcdoZ.mjs';
@@ -1 +1 @@
1
- export { D as DEFAULT_FARM_WORKFLOW_DIRS, u as DEFAULT_FARM_WORKFLOW_ROUTE, v as DEFAULT_FARM_WORKFLOW_SECRET_ENV, q as FarmCronDefinition, s as FarmDiscoveredWorkflow, p as FarmWorkflowDefinition, t as FarmWorkflowHTTPHandlerOptions, n as FarmWorkflowLogger, o as FarmWorkflowRunContext, l as FarmWorkflowSchedule, F as FarmWorkflowsResolvedConfig, k as FarmWorkflowsUserConfig, P as PreparedFarmWorkflows, H as applyFarmWorkflowVercelCrons, B as createFarmWorkflowRequestHandler, G as createFarmWorkflowVercelCrons, y as defineCron, x as defineTask, w as defineWorkflow, A as discoverFarmWorkflows, E as prepareFarmWorkflowsForNitro, z as resolveWorkflowsConfig, C as runFarmWorkflowModule } from './workflows-CR9ex-gz.js';
1
+ export { D as DEFAULT_FARM_WORKFLOW_DIRS, m as DEFAULT_FARM_WORKFLOW_ROUTE, n as DEFAULT_FARM_WORKFLOW_SECRET_ENV, j as FarmCronDefinition, k as FarmDiscoveredWorkflow, i as FarmWorkflowDefinition, l as FarmWorkflowHTTPHandlerOptions, g as FarmWorkflowLogger, h as FarmWorkflowRunContext, f as FarmWorkflowSchedule, F as FarmWorkflowsResolvedConfig, e as FarmWorkflowsUserConfig, P as PreparedFarmWorkflows, x as applyFarmWorkflowVercelCrons, t as createFarmWorkflowRequestHandler, w as createFarmWorkflowVercelCrons, q as defineCron, p as defineTask, o as defineWorkflow, s as discoverFarmWorkflows, v as prepareFarmWorkflowsForNitro, r as resolveWorkflowsConfig, u as runFarmWorkflowModule } from './workflows-jZ4BcdoZ.js';
@@ -12,10 +12,10 @@ import {
12
12
  prepareFarmWorkflowsForNitro,
13
13
  resolveWorkflowsConfig,
14
14
  runFarmWorkflowModule
15
- } from "./chunk-3ATMYLLJ.mjs";
15
+ } from "./chunk-6WCPV6G2.mjs";
16
16
  import "./chunk-2UC36WAC.mjs";
17
17
  import "./chunk-ONUEYC6N.mjs";
18
- import "./chunk-XF7Q24PF.mjs";
18
+ import "./chunk-Y7RKTKYI.mjs";
19
19
  import "./chunk-KI3MESHB.mjs";
20
20
  import "./chunk-QVKYGNVM.mjs";
21
21
  import "./chunk-SAXPH6G5.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farm.js/core",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "description": "The core of Farm.js, the framework for the web and agents",
5
5
  "keywords": [
6
6
  "@farm.js/core",
@@ -190,6 +190,9 @@
190
190
  "internal/isolated-boundary": [
191
191
  "./dist/internal/isolated-boundary.d.ts"
192
192
  ],
193
+ "internal/server-tree": [
194
+ "./dist/internal/server-tree.d.ts"
195
+ ],
193
196
  "internal/build-runtime": [
194
197
  "./dist/internal/build-runtime.d.ts"
195
198
  ],
@@ -644,6 +647,11 @@
644
647
  "import": "./dist/internal/isolated-boundary.mjs",
645
648
  "require": "./dist/internal/isolated-boundary.cjs"
646
649
  },
650
+ "./internal/server-tree": {
651
+ "types": "./dist/internal/server-tree.d.ts",
652
+ "import": "./dist/internal/server-tree.mjs",
653
+ "require": "./dist/internal/server-tree.cjs"
654
+ },
647
655
  "./internal/build-runtime": {
648
656
  "types": "./dist/internal/build-runtime.d.ts",
649
657
  "import": "./dist/internal/build-runtime.mjs",
@@ -1,58 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
-
3
-
4
- var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
5
-
6
-
7
- var _chunkG7HXGLECcjs = require('./chunk-G7HXGLEC.cjs');
8
-
9
-
10
- var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
11
-
12
- // src/mcp-catalog.ts
13
- var CATALOGS = /* @__PURE__ */ Symbol.for("farm.mcp.catalogs");
14
- function catalogs() {
15
- const state = globalThis;
16
- return _nullishCoalesce(state[CATALOGS], () => ( (state[CATALOGS] = /* @__PURE__ */ new Map())));
17
- }
18
- _chunkS3JO3N4Hcjs.__name.call(void 0, catalogs, "catalogs");
19
- function _listFarmMCPCatalogs() {
20
- return [...catalogs().values()];
21
- }
22
- _chunkS3JO3N4Hcjs.__name.call(void 0, _listFarmMCPCatalogs, "_listFarmMCPCatalogs");
23
- function _publishFarmMCPCatalog(server, tools, details) {
24
- const entry = { server, tools, ...details ? { details } : {} };
25
- catalogs().set(server.path, entry);
26
- return () => {
27
- if (catalogs().get(server.path) === entry) catalogs().delete(server.path);
28
- };
29
- }
30
- _chunkS3JO3N4Hcjs.__name.call(void 0, _publishFarmMCPCatalog, "_publishFarmMCPCatalog");
31
- function _findFarmMCPEndpointTool(method, pathname, serverBasePath) {
32
- const upperMethod = method.toUpperCase();
33
- for (const { server, tools } of catalogs().values()) {
34
- const routes = /* @__PURE__ */ new Map();
35
- for (const tool of tools) {
36
- if (tool.kind === "endpoint" && tool.method === upperMethod) {
37
- routes.set(tool.path, { path: tool.path, name: tool.name });
38
- }
39
- }
40
- if (routes.size === 0) continue;
41
- const canonical = serverBasePath ? _chunkKNBBQHO2cjs.resolveFarmAPICanonicalPathname.call(void 0, pathname, serverBasePath) : pathname;
42
- const match = _chunkG7HXGLECcjs.matchAPIRoute.call(void 0, routes, canonical);
43
- if (match) {
44
- return {
45
- name: match.route.name,
46
- endpoint: _chunkKNBBQHO2cjs.resolveFarmAPIServerRoutePath.call(void 0, server.path, serverBasePath)
47
- };
48
- }
49
- }
50
- return void 0;
51
- }
52
- _chunkS3JO3N4Hcjs.__name.call(void 0, _findFarmMCPEndpointTool, "_findFarmMCPEndpointTool");
53
-
54
-
55
-
56
-
57
-
58
- exports._listFarmMCPCatalogs = _listFarmMCPCatalogs; exports._publishFarmMCPCatalog = _publishFarmMCPCatalog; exports._findFarmMCPEndpointTool = _findFarmMCPEndpointTool;
@@ -1,58 +0,0 @@
1
- import {
2
- resolveFarmAPICanonicalPathname,
3
- resolveFarmAPIServerRoutePath
4
- } from "./chunk-BTHHUD7Q.mjs";
5
- import {
6
- matchAPIRoute
7
- } from "./chunk-O7BH5O46.mjs";
8
- import {
9
- __name
10
- } from "./chunk-LPEX4YW6.mjs";
11
-
12
- // src/mcp-catalog.ts
13
- var CATALOGS = /* @__PURE__ */ Symbol.for("farm.mcp.catalogs");
14
- function catalogs() {
15
- const state = globalThis;
16
- return state[CATALOGS] ?? (state[CATALOGS] = /* @__PURE__ */ new Map());
17
- }
18
- __name(catalogs, "catalogs");
19
- function _listFarmMCPCatalogs() {
20
- return [...catalogs().values()];
21
- }
22
- __name(_listFarmMCPCatalogs, "_listFarmMCPCatalogs");
23
- function _publishFarmMCPCatalog(server, tools, details) {
24
- const entry = { server, tools, ...details ? { details } : {} };
25
- catalogs().set(server.path, entry);
26
- return () => {
27
- if (catalogs().get(server.path) === entry) catalogs().delete(server.path);
28
- };
29
- }
30
- __name(_publishFarmMCPCatalog, "_publishFarmMCPCatalog");
31
- function _findFarmMCPEndpointTool(method, pathname, serverBasePath) {
32
- const upperMethod = method.toUpperCase();
33
- for (const { server, tools } of catalogs().values()) {
34
- const routes = /* @__PURE__ */ new Map();
35
- for (const tool of tools) {
36
- if (tool.kind === "endpoint" && tool.method === upperMethod) {
37
- routes.set(tool.path, { path: tool.path, name: tool.name });
38
- }
39
- }
40
- if (routes.size === 0) continue;
41
- const canonical = serverBasePath ? resolveFarmAPICanonicalPathname(pathname, serverBasePath) : pathname;
42
- const match = matchAPIRoute(routes, canonical);
43
- if (match) {
44
- return {
45
- name: match.route.name,
46
- endpoint: resolveFarmAPIServerRoutePath(server.path, serverBasePath)
47
- };
48
- }
49
- }
50
- return void 0;
51
- }
52
- __name(_findFarmMCPEndpointTool, "_findFarmMCPEndpointTool");
53
-
54
- export {
55
- _listFarmMCPCatalogs,
56
- _publishFarmMCPCatalog,
57
- _findFarmMCPEndpointTool
58
- };
@@ -1,105 +0,0 @@
1
- import { DocsConfig } from '@farming-labs/docs';
2
-
3
- interface FarmDocsAdapterDescriptor {
4
- id: string;
5
- protocol: number;
6
- server: string;
7
- react?: string;
8
- vite?: string;
9
- /**
10
- * Build-time entry that compiles the adapter's docs runtime into Farm's
11
- * serializable edge manifest. Older Farm releases safely ignore it.
12
- */
13
- edgeCompiler?: string;
14
- }
15
- interface FarmDocsSidebarItem {
16
- label?: string;
17
- title?: string;
18
- slug?: string;
19
- href?: string;
20
- icon?: string;
21
- children?: FarmDocsSidebarItem[];
22
- items?: FarmDocsSidebarItem[];
23
- }
24
- interface FarmDocsNavigationConfig {
25
- sidebar?: FarmDocsSidebarItem[];
26
- }
27
- interface FarmDocsSocialImageConfig {
28
- /** Generate a page-specific 1200×630 social image. Defaults to true. */
29
- enabled?: boolean;
30
- /** Absolute public origin used in social metadata, e.g. https://example.com. */
31
- baseUrl?: string;
32
- /** Site name shown in Open Graph metadata. Defaults to the docs navigation title. */
33
- siteName?: string;
34
- /** Short brand label drawn in the image header. Defaults to siteName. */
35
- brand?: string;
36
- /** Optional WOFF2 URLs or data URLs embedded into the generated SVG. */
37
- fonts?: FarmDocsSocialImageFonts;
38
- }
39
- interface FarmDocsSocialImageFonts {
40
- /** Display face used for page titles. */
41
- display?: string;
42
- /** Sans-serif face used for descriptions. */
43
- sans?: string;
44
- /** Monospace face used for labels, routes, and diagrams. */
45
- mono?: string;
46
- }
47
- type FarmDocsRuntimeConfig = Partial<DocsConfig> & {
48
- /**
49
- * Public favicon URL used by the standalone docs renderer.
50
- * Set this explicitly when docs should share the host application's icon.
51
- */
52
- favicon?: string;
53
- /**
54
- * Optional serializable navigation tree used by Farm's docs runtime.
55
- * Icon values reference keys from `icons`.
56
- */
57
- navigation?: FarmDocsNavigationConfig;
58
- /**
59
- * Automatic page-specific Open Graph and X images for Markdown docs.
60
- * Enabled by default. Set false to opt out for the complete docs tree.
61
- */
62
- socialImage?: boolean | FarmDocsSocialImageConfig;
63
- };
64
- type FarmDocsConfigInput = FarmDocsRuntimeConfig & {
65
- /**
66
- * Versioned runtime descriptor supplied by an external docs adapter.
67
- * Set false to pin the embedded renderer and disable framework
68
- * auto-detection.
69
- */
70
- adapter?: FarmDocsAdapterDescriptor | false;
71
- /**
72
- * Farm public route for docs, e.g. "/docs". When passed through
73
- * `config`, this is converted to the docs package's folder-style `entry`.
74
- */
75
- entry?: string;
76
- /** Explicit public route prefix. Defaults to `entry`. */
77
- docsPath?: string;
78
- /** Source content directory, relative to the project root. */
79
- contentDir?: string;
80
- /** Set to false to opt out even when a docs config file exists. */
81
- enabled?: boolean;
82
- /** Inline @farming-labs/docs config object. */
83
- config?: FarmDocsRuntimeConfig;
84
- /** Path to docs.config.* or docs.json. */
85
- configPath?: string;
86
- };
87
- type FarmDocsUserConfig = boolean | FarmDocsConfigInput;
88
- interface FarmDocsResolvedConfig {
89
- enabled: boolean;
90
- entry: string;
91
- adapter?: FarmDocsAdapterDescriptor;
92
- contentDir?: string;
93
- configPath?: string;
94
- config: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
95
- /**
96
- * `config` before it was made serializable: icons and other React elements, MDX
97
- * components, and callbacks intact. Only the in-process adapter runtime reads it;
98
- * whatever Farm serializes uses `config`.
99
- */
100
- runtimeConfig?: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
101
- /** The serializable docs settings from `farm.config.ts`, applied over the config file. */
102
- configOverrides?: Partial<DocsConfig>;
103
- }
104
-
105
- export type { FarmDocsResolvedConfig as F, FarmDocsUserConfig as a, FarmDocsConfigInput as b, FarmDocsNavigationConfig as c, FarmDocsSocialImageConfig as d, FarmDocsSocialImageFonts as e, FarmDocsSidebarItem as f };
@@ -1,105 +0,0 @@
1
- import { DocsConfig } from '@farming-labs/docs';
2
-
3
- interface FarmDocsAdapterDescriptor {
4
- id: string;
5
- protocol: number;
6
- server: string;
7
- react?: string;
8
- vite?: string;
9
- /**
10
- * Build-time entry that compiles the adapter's docs runtime into Farm's
11
- * serializable edge manifest. Older Farm releases safely ignore it.
12
- */
13
- edgeCompiler?: string;
14
- }
15
- interface FarmDocsSidebarItem {
16
- label?: string;
17
- title?: string;
18
- slug?: string;
19
- href?: string;
20
- icon?: string;
21
- children?: FarmDocsSidebarItem[];
22
- items?: FarmDocsSidebarItem[];
23
- }
24
- interface FarmDocsNavigationConfig {
25
- sidebar?: FarmDocsSidebarItem[];
26
- }
27
- interface FarmDocsSocialImageConfig {
28
- /** Generate a page-specific 1200×630 social image. Defaults to true. */
29
- enabled?: boolean;
30
- /** Absolute public origin used in social metadata, e.g. https://example.com. */
31
- baseUrl?: string;
32
- /** Site name shown in Open Graph metadata. Defaults to the docs navigation title. */
33
- siteName?: string;
34
- /** Short brand label drawn in the image header. Defaults to siteName. */
35
- brand?: string;
36
- /** Optional WOFF2 URLs or data URLs embedded into the generated SVG. */
37
- fonts?: FarmDocsSocialImageFonts;
38
- }
39
- interface FarmDocsSocialImageFonts {
40
- /** Display face used for page titles. */
41
- display?: string;
42
- /** Sans-serif face used for descriptions. */
43
- sans?: string;
44
- /** Monospace face used for labels, routes, and diagrams. */
45
- mono?: string;
46
- }
47
- type FarmDocsRuntimeConfig = Partial<DocsConfig> & {
48
- /**
49
- * Public favicon URL used by the standalone docs renderer.
50
- * Set this explicitly when docs should share the host application's icon.
51
- */
52
- favicon?: string;
53
- /**
54
- * Optional serializable navigation tree used by Farm's docs runtime.
55
- * Icon values reference keys from `icons`.
56
- */
57
- navigation?: FarmDocsNavigationConfig;
58
- /**
59
- * Automatic page-specific Open Graph and X images for Markdown docs.
60
- * Enabled by default. Set false to opt out for the complete docs tree.
61
- */
62
- socialImage?: boolean | FarmDocsSocialImageConfig;
63
- };
64
- type FarmDocsConfigInput = FarmDocsRuntimeConfig & {
65
- /**
66
- * Versioned runtime descriptor supplied by an external docs adapter.
67
- * Set false to pin the embedded renderer and disable framework
68
- * auto-detection.
69
- */
70
- adapter?: FarmDocsAdapterDescriptor | false;
71
- /**
72
- * Farm public route for docs, e.g. "/docs". When passed through
73
- * `config`, this is converted to the docs package's folder-style `entry`.
74
- */
75
- entry?: string;
76
- /** Explicit public route prefix. Defaults to `entry`. */
77
- docsPath?: string;
78
- /** Source content directory, relative to the project root. */
79
- contentDir?: string;
80
- /** Set to false to opt out even when a docs config file exists. */
81
- enabled?: boolean;
82
- /** Inline @farming-labs/docs config object. */
83
- config?: FarmDocsRuntimeConfig;
84
- /** Path to docs.config.* or docs.json. */
85
- configPath?: string;
86
- };
87
- type FarmDocsUserConfig = boolean | FarmDocsConfigInput;
88
- interface FarmDocsResolvedConfig {
89
- enabled: boolean;
90
- entry: string;
91
- adapter?: FarmDocsAdapterDescriptor;
92
- contentDir?: string;
93
- configPath?: string;
94
- config: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
95
- /**
96
- * `config` before it was made serializable: icons and other React elements, MDX
97
- * components, and callbacks intact. Only the in-process adapter runtime reads it;
98
- * whatever Farm serializes uses `config`.
99
- */
100
- runtimeConfig?: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
101
- /** The serializable docs settings from `farm.config.ts`, applied over the config file. */
102
- configOverrides?: Partial<DocsConfig>;
103
- }
104
-
105
- export type { FarmDocsResolvedConfig as F, FarmDocsUserConfig as a, FarmDocsConfigInput as b, FarmDocsNavigationConfig as c, FarmDocsSocialImageConfig as d, FarmDocsSocialImageFonts as e, FarmDocsSidebarItem as f };