@farm.js/core 0.2.0-beta.0 → 0.2.0-beta.2

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 (262) hide show
  1. package/dist/{agent-mcp-handler-IUL6OPC3.cjs → agent-mcp-handler-EXOG55M4.cjs} +5 -5
  2. package/dist/{agent-mcp-handler-GDY5CPPW.mjs → agent-mcp-handler-VX4NDDHR.mjs} +4 -4
  3. package/dist/{agent-mcp.d-BdM0pIrD.d.ts → agent-mcp.d-DBaonhLg.d.ts} +1 -1
  4. package/dist/{agent-mcp.d-CMGqpUbk.d.mts → agent-mcp.d-DhCEzIfu.d.mts} +1 -1
  5. package/dist/agent-runtime.cjs +2 -2
  6. package/dist/agent-runtime.d.mts +1 -1
  7. package/dist/agent-runtime.d.ts +1 -1
  8. package/dist/agent-runtime.mjs +1 -1
  9. package/dist/analyzer-OWIHFO5M.cjs +17 -0
  10. package/dist/{analyzer-PWHYGER6.mjs → analyzer-T2U345WL.mjs} +2 -2
  11. package/dist/api/node.d.mts +3 -3
  12. package/dist/api/node.d.ts +3 -3
  13. package/dist/api/route-manager.cjs +3 -3
  14. package/dist/api/route-manager.d.mts +3 -3
  15. package/dist/api/route-manager.d.ts +3 -3
  16. package/dist/api/route-manager.mjs +2 -2
  17. package/dist/api/runtime.d.mts +2 -2
  18. package/dist/api/runtime.d.ts +2 -2
  19. package/dist/api.cjs +4 -4
  20. package/dist/api.d.mts +4 -4
  21. package/dist/api.d.ts +4 -4
  22. package/dist/api.mjs +3 -3
  23. package/dist/{app-manifest.d-COhjPgHn.d.ts → app-manifest.d-nLVFFd7N.d.ts} +1 -1
  24. package/dist/{app-manifest.d-BeDB2OVm.d.mts → app-manifest.d-uE0JGZKN.d.mts} +1 -1
  25. package/dist/app-markdown.cjs +6 -4
  26. package/dist/app-markdown.d.mts +3 -3
  27. package/dist/app-markdown.d.ts +3 -3
  28. package/dist/app-markdown.mjs +7 -5
  29. package/dist/{app.d-b3A4cca5.d.ts → app.d-CwVkAUEU.d.ts} +14 -8
  30. package/dist/{app.d-AVZXCfcO.d.mts → app.d-DGGcNXV7.d.mts} +14 -8
  31. package/dist/{chunk-AG27TI6Q.mjs → chunk-23NBOP43.mjs} +3 -0
  32. package/dist/{chunk-BGEA4K7C.mjs → chunk-26ZTI2ZO.mjs} +4 -4
  33. package/dist/{chunk-L6ZL35ZJ.mjs → chunk-4A6A6P4T.mjs} +2 -2
  34. package/dist/{chunk-ZOD6EYWE.mjs → chunk-4Q263EQI.mjs} +2 -2
  35. package/dist/{chunk-2NOHVIJ3.cjs → chunk-5LJF4KUZ.cjs} +17 -4
  36. package/dist/{chunk-5AL2GXAU.mjs → chunk-7MMDEIVC.mjs} +1 -1
  37. package/dist/{chunk-GV5D5EM6.mjs → chunk-ANKMAGFJ.mjs} +1 -1
  38. package/dist/{chunk-QBXS4TNG.mjs → chunk-BL54BTVJ.mjs} +1 -1
  39. package/dist/{chunk-YCHIR3X6.mjs → chunk-BW563VZZ.mjs} +34 -2
  40. package/dist/{chunk-XRYLMTYF.cjs → chunk-CBB7I6HW.cjs} +3 -3
  41. package/dist/{chunk-KMGHXIDA.cjs → chunk-CHOOBTDD.cjs} +2 -2
  42. package/dist/{chunk-MRULVIH3.mjs → chunk-COK4IXOO.mjs} +35 -18
  43. package/dist/{chunk-YU2MNIIY.mjs → chunk-CRF5MOLO.mjs} +17 -4
  44. package/dist/{chunk-NQ3Y6E2T.mjs → chunk-CV4MOEMO.mjs} +2 -2
  45. package/dist/{chunk-OLKYHTLN.cjs → chunk-DA432P2F.cjs} +5 -5
  46. package/dist/{chunk-B3HQTGXS.cjs → chunk-DVAZ53X6.cjs} +6 -1
  47. package/dist/{chunk-XRSNW4IU.mjs → chunk-E72GG355.mjs} +5 -0
  48. package/dist/{chunk-CNGGEHXY.cjs → chunk-EA5HVG45.cjs} +2 -2
  49. package/dist/{chunk-NG2EZ6QS.cjs → chunk-EODGIFI7.cjs} +4 -2
  50. package/dist/{chunk-Y3DO7BIJ.cjs → chunk-EUZFBHPP.cjs} +3 -0
  51. package/dist/{chunk-ERV422FO.cjs → chunk-EXPVSFAG.cjs} +16 -13
  52. package/dist/{chunk-EACD6ND7.cjs → chunk-EZUTDTFM.cjs} +7 -7
  53. package/dist/{chunk-PTAGDZ7I.mjs → chunk-GTHBWZUK.mjs} +5 -1
  54. package/dist/{chunk-KCJBIWBM.mjs → chunk-GVORDLLV.mjs} +1 -1
  55. package/dist/{chunk-XGL42MQ7.mjs → chunk-HIDZM23B.mjs} +1 -1
  56. package/dist/{chunk-W3ZBLFLU.mjs → chunk-HNB5JHBO.mjs} +6 -3
  57. package/dist/{chunk-MM4U2NNI.mjs → chunk-HVGINJTO.mjs} +101 -42
  58. package/dist/{chunk-XJJQAFZX.mjs → chunk-I5KPOXUE.mjs} +1 -1
  59. package/dist/{chunk-HR5GU4UU.cjs → chunk-ILQSRLKK.cjs} +4 -4
  60. package/dist/{chunk-TQFIZRON.cjs → chunk-J2EKGR6E.cjs} +1030 -485
  61. package/dist/{chunk-26WP75W5.cjs → chunk-JDT733EW.cjs} +41 -27
  62. package/dist/{chunk-W53Z4WDI.cjs → chunk-JH4CDG4G.cjs} +8 -8
  63. package/dist/{chunk-KQ6TYQU7.cjs → chunk-KDQKTX3Q.cjs} +4 -4
  64. package/dist/{chunk-PEQJ4UUT.mjs → chunk-LP6DIYGA.mjs} +2 -2
  65. package/dist/{chunk-M4CNAZMS.mjs → chunk-LQ3FISSD.mjs} +61 -40
  66. package/dist/{chunk-PQ6DBVJ2.cjs → chunk-M4YXD6MD.cjs} +291 -232
  67. package/dist/{chunk-CFLRUCN7.cjs → chunk-MWAWMFG3.cjs} +415 -394
  68. package/dist/{chunk-ECVSRE4Y.mjs → chunk-N2BRIN7I.mjs} +1 -1
  69. package/dist/{chunk-SUACCCZG.cjs → chunk-N2ZMSSPP.cjs} +11 -11
  70. package/dist/{chunk-MO4UTDQ6.mjs → chunk-NNNMFSXG.mjs} +1 -1
  71. package/dist/{chunk-6266WH6X.cjs → chunk-NOSLIDSG.cjs} +1 -1
  72. package/dist/{chunk-ICOJ2BC6.mjs → chunk-NWF2FTFV.mjs} +24 -10
  73. package/dist/{chunk-HU4R2PPW.cjs → chunk-NZRAUCUL.cjs} +2 -2
  74. package/dist/{chunk-VMGQOP7X.cjs → chunk-OLIWLN4I.cjs} +2 -2
  75. package/dist/{chunk-H47EH24T.mjs → chunk-OQOII62L.mjs} +1 -1
  76. package/dist/{chunk-BJHXFEAF.mjs → chunk-P2TGLGRR.mjs} +4 -4
  77. package/dist/{chunk-THGSPDFD.cjs → chunk-PAKB6JHX.cjs} +7 -7
  78. package/dist/{chunk-WOTAU3BN.mjs → chunk-Q637AXGZ.mjs} +218 -74
  79. package/dist/{chunk-ZZGQD3LL.mjs → chunk-QO24II6C.mjs} +4 -2
  80. package/dist/{chunk-SG5RFGV6.cjs → chunk-RBSGFS5X.cjs} +66 -34
  81. package/dist/{chunk-IJPRCQHW.cjs → chunk-RGMUS3HO.cjs} +10 -10
  82. package/dist/{chunk-PA3VZNWU.cjs → chunk-RTAWQXME.cjs} +324 -180
  83. package/dist/{chunk-DMSXZNQR.cjs → chunk-RZI6436F.cjs} +2 -2
  84. package/dist/{chunk-HZY63K5C.mjs → chunk-S6MGFULY.mjs} +2 -2
  85. package/dist/{chunk-5GFTMTX3.cjs → chunk-SAUGKNCF.cjs} +2 -2
  86. package/dist/{chunk-JGUMFTZT.cjs → chunk-SCE7VWPN.cjs} +12 -12
  87. package/dist/{chunk-BQHIJOZM.cjs → chunk-SIECKBNK.cjs} +6 -2
  88. package/dist/{chunk-JDO3X7RB.mjs → chunk-SPKZCFPH.mjs} +1 -1
  89. package/dist/{chunk-LUGQUU4S.mjs → chunk-SSFAPTRD.mjs} +1 -1
  90. package/dist/{chunk-7LBNWL3L.cjs → chunk-SWPLGPYF.cjs} +7 -7
  91. package/dist/{chunk-3MY6TNNE.cjs → chunk-TWFJJPE7.cjs} +3 -3
  92. package/dist/{chunk-WP77JDKI.cjs → chunk-UCJCU2IL.cjs} +14 -14
  93. package/dist/{chunk-WX752VMN.mjs → chunk-UCRNNDNS.mjs} +1 -1
  94. package/dist/{chunk-FEWCWBOF.cjs → chunk-UGWKNZ4U.cjs} +44 -27
  95. package/dist/{chunk-IRPXOTEN.cjs → chunk-UOMSGJHK.cjs} +11 -11
  96. package/dist/{chunk-WPB6HJC7.mjs → chunk-UWDFH3ZV.mjs} +1 -1
  97. package/dist/{chunk-MZPPT5NA.mjs → chunk-V5FEFFHV.mjs} +1 -1
  98. package/dist/{chunk-HR4N2K4V.mjs → chunk-WABOJXAA.mjs} +2 -2
  99. package/dist/{chunk-LTXKRIST.mjs → chunk-WANLI3ZC.mjs} +2 -2
  100. package/dist/{chunk-5ZWXTIGE.cjs → chunk-WEZTGM7N.cjs} +2 -2
  101. package/dist/{chunk-HQEYZSF3.cjs → chunk-WPURVYXT.cjs} +2 -2
  102. package/dist/{chunk-TE7AX6HB.mjs → chunk-WV63R4GE.mjs} +1 -1
  103. package/dist/{chunk-SCOKBXHS.mjs → chunk-XOLYZZDX.mjs} +696 -151
  104. package/dist/{chunk-4ZVKDHS6.cjs → chunk-YSRZSKQB.cjs} +4 -4
  105. package/dist/{cli-runtime.d-jqZ7YCsm.d.ts → cli-runtime.d-Dbl-gIoz.d.ts} +5 -5
  106. package/dist/{cli-runtime.d-qL44rqYO.d.mts → cli-runtime.d-oUiNuspW.d.mts} +5 -5
  107. package/dist/{client-component.d-BDD5aiUb.d.ts → client-component.d-CT4q7tmy.d.ts} +1 -1
  108. package/dist/{client-component.d-B2L2LyAr.d.mts → client-component.d-DaUqOhZT.d.mts} +1 -1
  109. package/dist/{client-plugins.d-Crct3m_r.d.ts → client-plugins.d-24qhjX8c.d.ts} +30 -4
  110. package/dist/{client-plugins.d-Dzc3vOw_.d.mts → client-plugins.d-BfGTqbAH.d.mts} +30 -4
  111. package/dist/client-plugins.d.mts +1 -1
  112. package/dist/client-plugins.d.ts +1 -1
  113. package/dist/client.cjs +4 -4
  114. package/dist/client.d.mts +7 -7
  115. package/dist/client.d.ts +7 -7
  116. package/dist/client.mjs +3 -3
  117. package/dist/config.d.mts +1 -1
  118. package/dist/config.d.ts +1 -1
  119. package/dist/desktop.d.mts +2 -2
  120. package/dist/desktop.d.ts +2 -2
  121. package/dist/{devtools-RL4AU5KD.cjs → devtools-5WDQQDTA.cjs} +6 -6
  122. package/dist/{devtools-2CRVXV7E.mjs → devtools-DPYIYHTI.mjs} +5 -5
  123. package/dist/docs.cjs +8 -8
  124. package/dist/docs.d.mts +3 -3
  125. package/dist/docs.d.ts +3 -3
  126. package/dist/docs.mjs +7 -7
  127. package/dist/environment/vite.cjs +3 -3
  128. package/dist/environment/vite.mjs +2 -2
  129. package/dist/{handler.d-B1S1ZBqS.d.mts → handler.d-GfNuz57p.d.mts} +1 -1
  130. package/dist/{handler.d-ZweCBJD4.d.ts → handler.d-Oca5kNSz.d.ts} +1 -1
  131. package/dist/{headers.d-C-yGl_f6.d.mts → headers.d-C_lsQIWA.d.mts} +1 -1
  132. package/dist/{headers.d-BgBdQN8x.d.ts → headers.d-b8gHJDvu.d.ts} +1 -1
  133. package/dist/index.cjs +42 -38
  134. package/dist/{index.d-13h3oDu7.d.mts → index.d-BLtjh1aS.d.mts} +1 -1
  135. package/dist/{index.d-CtoniAXT.d.ts → index.d-Ckv6kHFm.d.ts} +1 -1
  136. package/dist/index.d.mts +23 -23
  137. package/dist/index.d.ts +23 -23
  138. package/dist/index.mjs +39 -35
  139. package/dist/integrations/orm.d.mts +1 -1
  140. package/dist/integrations/orm.d.ts +1 -1
  141. package/dist/integrations.cjs +4 -2
  142. package/dist/integrations.d.mts +1 -1
  143. package/dist/integrations.d.ts +1 -1
  144. package/dist/integrations.mjs +3 -1
  145. package/dist/internal/app-markdown-runtime.cjs +5 -3
  146. package/dist/internal/app-markdown-runtime.d.mts +10 -5
  147. package/dist/internal/app-markdown-runtime.d.ts +10 -5
  148. package/dist/internal/app-markdown-runtime.mjs +6 -4
  149. package/dist/internal/build-runtime.cjs +29 -29
  150. package/dist/internal/build-runtime.d.mts +4 -4
  151. package/dist/internal/build-runtime.d.ts +4 -4
  152. package/dist/internal/build-runtime.mjs +28 -28
  153. package/dist/internal/cli-runtime.cjs +12 -12
  154. package/dist/internal/cli-runtime.d.mts +7 -7
  155. package/dist/internal/cli-runtime.d.ts +7 -7
  156. package/dist/internal/cli-runtime.mjs +11 -11
  157. package/dist/internal/client-error-overlay.cjs +4 -4
  158. package/dist/internal/client-error-overlay.mjs +1 -1
  159. package/dist/internal/client-runtime.d.mts +5 -5
  160. package/dist/internal/client-runtime.d.ts +5 -5
  161. package/dist/internal/compression-runtime.d.mts +1 -1
  162. package/dist/internal/compression-runtime.d.ts +1 -1
  163. package/dist/internal/config-runtime.cjs +7 -7
  164. package/dist/internal/config-runtime.d.mts +3 -3
  165. package/dist/internal/config-runtime.d.ts +3 -3
  166. package/dist/internal/config-runtime.mjs +6 -6
  167. package/dist/internal/infra-analytics-runtime.cjs +9 -9
  168. package/dist/internal/infra-analytics-runtime.mjs +7 -7
  169. package/dist/internal/metadata-image-runtime.d.mts +2 -2
  170. package/dist/internal/metadata-image-runtime.d.ts +2 -2
  171. package/dist/internal/native-server-fns.cjs +4 -4
  172. package/dist/internal/native-server-fns.mjs +3 -3
  173. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  174. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  175. package/dist/internal/production-node-env.cjs +2 -2
  176. package/dist/internal/production-node-env.mjs +1 -1
  177. package/dist/internal/production-runtime.cjs +12 -12
  178. package/dist/internal/production-runtime.d.mts +10 -10
  179. package/dist/internal/production-runtime.d.ts +10 -10
  180. package/dist/internal/production-runtime.mjs +11 -11
  181. package/dist/internal/spa-router.cjs +3 -3
  182. package/dist/internal/spa-router.d.mts +3 -3
  183. package/dist/internal/spa-router.d.ts +3 -3
  184. package/dist/internal/spa-router.mjs +2 -2
  185. package/dist/internal/start-manifest.d.mts +1 -1
  186. package/dist/internal/start-manifest.d.ts +1 -1
  187. package/dist/{manager-D4DZRBRS.cjs → manager-37UJPUN4.cjs} +4 -4
  188. package/dist/{manager-PKPQGBAE.mjs → manager-7BNSJKME.mjs} +3 -3
  189. package/dist/markdown.cjs +2 -2
  190. package/dist/markdown.d.mts +1 -1
  191. package/dist/markdown.d.ts +1 -1
  192. package/dist/markdown.mjs +1 -1
  193. package/dist/middleware.d.mts +1 -1
  194. package/dist/middleware.d.ts +1 -1
  195. package/dist/{mount.d-_6Un9wdK.d.mts → mount.d-BCS8mD4E.d.mts} +1 -1
  196. package/dist/{mount.d-DyKlRR6z.d.ts → mount.d-DEX8eref.d.ts} +1 -1
  197. package/dist/{native-tree-5TENEQ7Y.cjs → native-tree-52CUAP3N.cjs} +3 -3
  198. package/dist/{native-tree-LNO7K6JR.mjs → native-tree-AO7PQ7FR.mjs} +2 -2
  199. package/dist/{navigation-delegate.d-BbW1_pf_.d.ts → navigation-delegate.d-Cgi28e5Q.d.ts} +1 -1
  200. package/dist/{navigation-delegate.d-B9GjWbov.d.mts → navigation-delegate.d-F83ugsZW.d.mts} +1 -1
  201. package/dist/navigation.cjs +5 -5
  202. package/dist/navigation.d.mts +4 -4
  203. package/dist/navigation.d.ts +4 -4
  204. package/dist/navigation.mjs +4 -4
  205. package/dist/plugin.cjs +22 -22
  206. package/dist/plugin.d.mts +5 -5
  207. package/dist/plugin.d.ts +5 -5
  208. package/dist/plugin.mjs +21 -21
  209. package/dist/query/client.cjs +7 -7
  210. package/dist/query/client.mjs +2 -2
  211. package/dist/{render-plan.d-DaM1NPnm.d.mts → render-plan.d-BkVY4aFb.d.mts} +1 -1
  212. package/dist/{render-plan.d-D0FV9lDT.d.ts → render-plan.d-DCF2GZdD.d.ts} +1 -1
  213. package/dist/renderer-client.cjs +5 -5
  214. package/dist/renderer-client.d.mts +5 -5
  215. package/dist/renderer-client.d.ts +5 -5
  216. package/dist/renderer-client.mjs +2 -2
  217. package/dist/renderer.d.mts +22 -11
  218. package/dist/renderer.d.ts +22 -11
  219. package/dist/{request.d-CrXC7voZ.d.ts → request.d-C5o-4dU2.d.ts} +1 -1
  220. package/dist/{request.d-DVSLilGx.d.mts → request.d-DMPB53-i.d.mts} +1 -1
  221. package/dist/request.d.mts +2 -2
  222. package/dist/request.d.ts +2 -2
  223. package/dist/{route-rendering.d-CWi3UYtR.d.mts → route-rendering.d-DDvArvik.d.mts} +1 -1
  224. package/dist/{route-rendering.d-OfbM_rj8.d.ts → route-rendering.d-DfP6zRP7.d.ts} +1 -1
  225. package/dist/{router.d-YKVirmj4.d.mts → router.d-1Skf2XCO.d.mts} +1 -1
  226. package/dist/{router.d-Bm9FNSu3.d.ts → router.d-s40h7aoS.d.ts} +1 -1
  227. package/dist/routes.d.mts +3 -3
  228. package/dist/routes.d.ts +3 -3
  229. package/dist/{rsc-pipeline-LRB4ZG6I.mjs → rsc-pipeline-O2YMVHUF.mjs} +7 -7
  230. package/dist/{rsc-pipeline-3DYC5ZXW.cjs → rsc-pipeline-SFQSMVI7.cjs} +8 -8
  231. package/dist/{runtime-3WJNNAAR.mjs → runtime-K2X3IZAF.mjs} +6 -6
  232. package/dist/{runtime-CRFF32H6.cjs → runtime-WOTVFYQY.cjs} +8 -8
  233. package/dist/{runtime.d-BVj6apd0.d.mts → runtime.d-Bykc5Qfg.d.mts} +1 -1
  234. package/dist/{runtime.d-D7QYVJGO.d.ts → runtime.d-k-9kFUsM.d.ts} +1 -1
  235. package/dist/{server-components-status.d-BDVcxi0z.d.mts → server-components-status.d-D-HixBe0.d.mts} +1 -1
  236. package/dist/{server-components-status.d-CfKDpmCH.d.ts → server-components-status.d-DLNd1C5j.d.ts} +1 -1
  237. package/dist/server-plugins.d.mts +3 -3
  238. package/dist/server-plugins.d.ts +3 -3
  239. package/dist/server.cjs +47 -46
  240. package/dist/server.d.mts +11 -11
  241. package/dist/server.d.ts +11 -11
  242. package/dist/server.mjs +26 -25
  243. package/dist/{spa-router.d-DGmropfK.d.mts → spa-router.d-DIlXwm00.d.mts} +2 -2
  244. package/dist/{spa-router.d-nE1jHNGt.d.ts → spa-router.d-Dl-EJeJT.d.ts} +2 -2
  245. package/dist/{ssg.d-DS-gXUbf.d.mts → ssg.d-D2ZV0bhs.d.mts} +2 -2
  246. package/dist/{ssg.d-jXlUAKzg.d.ts → ssg.d-bE-ylg0e.d.ts} +2 -2
  247. package/dist/{store-core.d-B5cwOd8g.d.ts → store-core.d-BmdnMopD.d.ts} +2 -2
  248. package/dist/{store-core.d-C-gATBwd.d.mts → store-core.d-DPsCYzV7.d.mts} +2 -2
  249. package/dist/testing.cjs +2 -2
  250. package/dist/testing.d.mts +1 -1
  251. package/dist/testing.d.ts +1 -1
  252. package/dist/testing.mjs +2 -2
  253. package/dist/{utils.d-BODwBtkz.d.ts → utils.d-BFZQcBZV.d.ts} +1 -1
  254. package/dist/{utils.d-Cmj-fzds.d.mts → utils.d-nM3OHKq5.d.mts} +1 -1
  255. package/dist/version.cjs +2 -2
  256. package/dist/version.mjs +1 -1
  257. package/dist/vite.cjs +22 -22
  258. package/dist/vite.d.mts +6 -6
  259. package/dist/vite.d.ts +6 -6
  260. package/dist/vite.mjs +21 -21
  261. package/package.json +1 -1
  262. package/dist/analyzer-B2TRJT3B.cjs +0 -17
@@ -24,13 +24,13 @@ import {
24
24
  resolveFarmAgentSitemap,
25
25
  resolveFarmNoindexPreviews,
26
26
  resolveFarmPerformanceConfig
27
- } from "./chunk-NQ3Y6E2T.mjs";
27
+ } from "./chunk-CV4MOEMO.mjs";
28
28
  import {
29
29
  resolveFarmAppManifestConfig
30
30
  } from "./chunk-SQ5O7I3L.mjs";
31
31
  import {
32
32
  resolveFarmLlmsTxtConfig
33
- } from "./chunk-XGL42MQ7.mjs";
33
+ } from "./chunk-HIDZM23B.mjs";
34
34
  import {
35
35
  farmCspBlocksFrameworkInlineScripts,
36
36
  getFarmSecurityHeader,
@@ -66,7 +66,7 @@ import {
66
66
  } from "./chunk-UIJOLBUL.mjs";
67
67
  import {
68
68
  resolveMarkdownConfig
69
- } from "./chunk-YU2MNIIY.mjs";
69
+ } from "./chunk-CRF5MOLO.mjs";
70
70
  import {
71
71
  bundleNodeModule
72
72
  } from "./chunk-AYDVUCXD.mjs";
@@ -78,7 +78,7 @@ import {
78
78
  } from "./chunk-YWPNIYUP.mjs";
79
79
  import {
80
80
  resolveIntegrationPlugins
81
- } from "./chunk-XRSNW4IU.mjs";
81
+ } from "./chunk-E72GG355.mjs";
82
82
  import {
83
83
  compileMiddlewareConfig
84
84
  } from "./chunk-EDPENAVO.mjs";
@@ -9,14 +9,14 @@ import {
9
9
  } from "./chunk-IYEY3JWJ.mjs";
10
10
  import {
11
11
  APIRouteConflictError
12
- } from "./chunk-JDO3X7RB.mjs";
12
+ } from "./chunk-SPKZCFPH.mjs";
13
13
  import {
14
14
  findProgrammaticRouteFilesInDir
15
15
  } from "./chunk-URBP6DLH.mjs";
16
16
  import {
17
17
  hasPolyroutePlugin,
18
18
  isFarmAPIRouteFileName
19
- } from "./chunk-PTAGDZ7I.mjs";
19
+ } from "./chunk-GTHBWZUK.mjs";
20
20
  import {
21
21
  API_ROUTE_METHODS,
22
22
  FARM_INTERNAL_SERVER_ERROR_BODY,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RLEAVG6G.mjs";
4
4
  import {
5
5
  resolveDeployOutputPath
6
- } from "./chunk-BGEA4K7C.mjs";
6
+ } from "./chunk-26ZTI2ZO.mjs";
7
7
  import {
8
8
  farmDesktopDevGuardPlugin,
9
9
  loadFarmReactPlugin
@@ -12,7 +12,7 @@ import {
12
12
  generateFarmClientPluginEntryCode,
13
13
  hasFarmServerRuntimePlugins,
14
14
  loadTailwindVitePlugin
15
- } from "./chunk-MO4UTDQ6.mjs";
15
+ } from "./chunk-NNNMFSXG.mjs";
16
16
  import {
17
17
  resolveFarmPlatform
18
18
  } from "./chunk-SMUW7UST.mjs";
@@ -129,11 +129,20 @@ var MCP_CLIENTS = [
129
129
  [["arcade"], "arcade", "Arcade", "other"],
130
130
  [["Alpic"], "alpic", "Alpic", "other"],
131
131
  [["Postman-Client"], "postman", "Postman", "other"],
132
- [["gitguardian"], "gitguardian", "GitGuardian", "other"]
132
+ [["gitguardian"], "gitguardian", "GitGuardian", "other"],
133
+ [["inspector-cli", "mcp-inspector"], "inspector", "MCP Inspector", "other"],
134
+ [["mcp-remote-fallback-test"], "mcp-remote", "mcp-remote", "other"]
133
135
  ];
134
136
  var MCP_CLIENT_BY_NAME = new Map(
135
137
  MCP_CLIENTS.flatMap(([names, slug]) => names.map((name) => [name.toLowerCase(), slug]))
136
138
  );
139
+ var MCP_REMOTE_SUFFIX = " (via mcp-remote";
140
+ function mcpClientSlug(clientInfoName) {
141
+ if (typeof clientInfoName !== "string") return void 0;
142
+ const bridged = clientInfoName.endsWith(")") ? clientInfoName.lastIndexOf(MCP_REMOTE_SUFFIX) : -1;
143
+ const name = bridged < 0 ? clientInfoName : clientInfoName.slice(0, bridged);
144
+ return _nullishCoalesce(MCP_CLIENT_BY_NAME.get(name.toLowerCase()), () => ( (bridged < 0 ? void 0 : "mcp-remote")));
145
+ }
137
146
  var MCP_CLIENT_BY_SLUG = new Map(
138
147
  MCP_CLIENTS.map(([, slug, name, family]) => [slug, { name, family, category: "harness" }])
139
148
  );
@@ -214,8 +223,7 @@ function declared({ name, family, category }) {
214
223
  return { family, category, identity: "self-reported", ...name ? { name } : {} };
215
224
  }
216
225
  function _farmMCPClientSession(clientInfoName) {
217
- if (typeof clientInfoName !== "string") return void 0;
218
- const slug = MCP_CLIENT_BY_NAME.get(clientInfoName.toLowerCase());
226
+ const slug = mcpClientSlug(clientInfoName);
219
227
  if (!slug) return void 0;
220
228
  const random = crypto.getRandomValues(new Uint8Array(16));
221
229
  return `farm.${slug}.${Array.from(random, (byte) => byte.toString(16).padStart(2, "0")).join("")}`;
@@ -225,6 +233,11 @@ function _classifyFarmMCPSession(sessionId) {
225
233
  const client = slug === void 0 ? void 0 : MCP_CLIENT_BY_SLUG.get(slug);
226
234
  return client && declared(client);
227
235
  }
236
+ function _classifyFarmMCPClient(clientInfoName) {
237
+ const slug = mcpClientSlug(clientInfoName);
238
+ const client = slug === void 0 ? void 0 : MCP_CLIENT_BY_SLUG.get(slug);
239
+ return client && declared(client);
240
+ }
228
241
  function _isFarmMCPRequest(request) {
229
242
  return isMcpRequest(request);
230
243
  }
@@ -1592,4 +1605,4 @@ function decodeHtml(input) {
1592
1605
 
1593
1606
 
1594
1607
 
1595
- exports.classifyFarmAgent = classifyFarmAgent; exports.classifyFarmClient = classifyFarmClient; exports._farmMCPClientSession = _farmMCPClientSession; exports._classifyFarmMCPSession = _classifyFarmMCPSession; exports._isFarmMCPRequest = _isFarmMCPRequest; exports.FARM_INTERNAL_READ_HEADER = FARM_INTERNAL_READ_HEADER; exports.emitFarmAgentRead = emitFarmAgentRead; exports.createFarmMarkdownViewResponse = createFarmMarkdownViewResponse; exports.FARM_MARKDOWN_CONTENT_TYPE = FARM_MARKDOWN_CONTENT_TYPE; exports.FARM_MARKDOWN_PAGE_CHECK_HEADER = FARM_MARKDOWN_PAGE_CHECK_HEADER; exports._getFarmMarkdownPageCheckToken = _getFarmMarkdownPageCheckToken; exports._isFarmMarkdownPageCheck = _isFarmMarkdownPageCheck; exports.farmRequestWantsMarkdown = farmRequestWantsMarkdown; exports.createFarmMarkdownErrorBody = createFarmMarkdownErrorBody; exports.resolveMarkdownConfig = resolveMarkdownConfig; exports.resolveMarkdownMirrorTarget = resolveMarkdownMirrorTarget; exports.createMarkdownMirrorResponse = createMarkdownMirrorResponse; exports.applyMarkdownNegotiationHeaders = applyMarkdownNegotiationHeaders; exports.htmlToMarkdown = htmlToMarkdown; exports._resolveFarmMarkdownIndexAlias = _resolveFarmMarkdownIndexAlias; exports._getFarmMarkdownPath = _getFarmMarkdownPath; exports.farmAcceptQuality = farmAcceptQuality; exports.requestAcceptsMarkdown = requestAcceptsMarkdown; exports.getFarmMarkdownMirrorPath = getFarmMarkdownMirrorPath; exports.getFarmMarkdownAlternatePath = getFarmMarkdownAlternatePath; exports.isFarmMarkdownMirrorExposed = isFarmMarkdownMirrorExposed; exports.matchesFarmMarkdownRoutePattern = matchesFarmMarkdownRoutePattern; exports._readFarmRenderedHtml = _readFarmRenderedHtml; exports.extractFarmPageActions = extractFarmPageActions;
1608
+ exports.classifyFarmAgent = classifyFarmAgent; exports.classifyFarmClient = classifyFarmClient; exports._farmMCPClientSession = _farmMCPClientSession; exports._classifyFarmMCPClient = _classifyFarmMCPClient; exports._isFarmMCPRequest = _isFarmMCPRequest; exports.FARM_INTERNAL_READ_HEADER = FARM_INTERNAL_READ_HEADER; exports.emitFarmAgentRead = emitFarmAgentRead; exports.createFarmMarkdownViewResponse = createFarmMarkdownViewResponse; exports.FARM_MARKDOWN_CONTENT_TYPE = FARM_MARKDOWN_CONTENT_TYPE; exports.FARM_MARKDOWN_PAGE_CHECK_HEADER = FARM_MARKDOWN_PAGE_CHECK_HEADER; exports._getFarmMarkdownPageCheckToken = _getFarmMarkdownPageCheckToken; exports._isFarmMarkdownPageCheck = _isFarmMarkdownPageCheck; exports.farmRequestWantsMarkdown = farmRequestWantsMarkdown; exports.createFarmMarkdownErrorBody = createFarmMarkdownErrorBody; exports.resolveMarkdownConfig = resolveMarkdownConfig; exports.resolveMarkdownMirrorTarget = resolveMarkdownMirrorTarget; exports.createMarkdownMirrorResponse = createMarkdownMirrorResponse; exports.applyMarkdownNegotiationHeaders = applyMarkdownNegotiationHeaders; exports.htmlToMarkdown = htmlToMarkdown; exports._resolveFarmMarkdownIndexAlias = _resolveFarmMarkdownIndexAlias; exports._getFarmMarkdownPath = _getFarmMarkdownPath; exports.farmAcceptQuality = farmAcceptQuality; exports.requestAcceptsMarkdown = requestAcceptsMarkdown; exports.getFarmMarkdownMirrorPath = getFarmMarkdownMirrorPath; exports.getFarmMarkdownAlternatePath = getFarmMarkdownAlternatePath; exports.isFarmMarkdownMirrorExposed = isFarmMarkdownMirrorExposed; exports.matchesFarmMarkdownRoutePattern = matchesFarmMarkdownRoutePattern; exports._readFarmRenderedHtml = _readFarmRenderedHtml; exports.extractFarmPageActions = extractFarmPageActions;
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-UTUS6JUH.mjs";
26
26
  import {
27
27
  getIntegrationSchemas
28
- } from "./chunk-XRSNW4IU.mjs";
28
+ } from "./chunk-E72GG355.mjs";
29
29
  import {
30
30
  resolveSchemaModels
31
31
  } from "./chunk-F3N52U7S.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-YFTGIHNC.mjs";
4
4
  import {
5
5
  isFarmAPIRouteFileName
6
- } from "./chunk-PTAGDZ7I.mjs";
6
+ } from "./chunk-GTHBWZUK.mjs";
7
7
  import {
8
8
  registerAPIRouteShape
9
9
  } from "./chunk-2LKUR5QJ.mjs";
@@ -22,7 +22,7 @@ import {
22
22
  FARM_METADATA_ATTRIBUTE,
23
23
  renderMetadataHead,
24
24
  resolveMetadataTitle
25
- } from "./chunk-AG27TI6Q.mjs";
25
+ } from "./chunk-23NBOP43.mjs";
26
26
  import {
27
27
  getFarmIslandValueHeaders
28
28
  } from "./chunk-UDMBUTJD.mjs";
@@ -10,7 +10,7 @@ import {
10
10
  resolveFarmDocsContentDir,
11
11
  toFarmDocsMarkdownPage,
12
12
  toFarmDocsPublicSitemapConfig
13
- } from "./chunk-KCJBIWBM.mjs";
13
+ } from "./chunk-GVORDLLV.mjs";
14
14
  import {
15
15
  docsEngine,
16
16
  loadFarmDocsEngine,
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-LRPPXKCX.mjs";
19
19
  import {
20
20
  resolveDocsConfig
21
- } from "./chunk-BGEA4K7C.mjs";
21
+ } from "./chunk-26ZTI2ZO.mjs";
22
22
  import {
23
23
  getFarmDocsAdapterConfigModule,
24
24
  isSecretDocsConfigKey
@@ -158,6 +158,37 @@ async function listFarmDocsAdapterPages(docs, options) {
158
158
  }
159
159
  return [...new Set(pages)];
160
160
  }
161
+ async function listFarmDocsAdapterRoutes(docs, options) {
162
+ if (!hasFarmDocsRuntimeAdapter(docs)) return null;
163
+ const requireFromApp = createRequire(path.join(options.root, "package.json"));
164
+ const serverModule = await import(
165
+ /* @vite-ignore */
166
+ pathToFileURL(requireFromApp.resolve(docs.adapter.server)).href
167
+ );
168
+ if (typeof serverModule.listFarmDocsRoutes !== "function") return null;
169
+ const listRoutes = serverModule.listFarmDocsRoutes;
170
+ const lists = await Promise.all(
171
+ getFarmDocsRoots(docs).map(
172
+ (root) => listRoutes(createFarmDocsAdapterRuntimeConfig(root, options), { rootDir: options.root })
173
+ )
174
+ );
175
+ const paths = /* @__PURE__ */ new Set();
176
+ const prefixes = /* @__PURE__ */ new Set();
177
+ for (const list of lists) {
178
+ for (const [values, target] of [
179
+ [list?.paths ?? [], paths],
180
+ [list?.prefixes ?? [], prefixes]
181
+ ]) {
182
+ if (!list || typeof list !== "object" || !Array.isArray(values) || values.some((value) => typeof value !== "string" || !value.startsWith("/"))) {
183
+ throw new Error(
184
+ `Farm docs adapter ${JSON.stringify(docs.adapter.id)} listed routes that are not absolute paths.`
185
+ );
186
+ }
187
+ for (const value of values) target.add(value);
188
+ }
189
+ }
190
+ return { paths: [...paths], prefixes: [...prefixes] };
191
+ }
161
192
  async function listFarmDocsPagePaths(docs, options) {
162
193
  if (options.adapter) return await listFarmDocsAdapterPages(docs, options) ?? [];
163
194
  return getFarmDocsRoots(docs).flatMap(
@@ -744,6 +775,7 @@ export {
744
775
  getFarmDocsConfigModuleRoot,
745
776
  compileFarmDocsAdapterEdgeManifest,
746
777
  listFarmDocsAdapterPages,
778
+ listFarmDocsAdapterRoutes,
747
779
  listFarmDocsPagePaths,
748
780
  createFarmDocsAdapterHandler,
749
781
  isFarmDocsAPIRequest,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkVMGQOP7Xcjs = require('./chunk-VMGQOP7X.cjs');
4
+ var _chunkOLIWLN4Icjs = require('./chunk-OLIWLN4I.cjs');
5
5
 
6
6
 
7
7
  var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
@@ -64,7 +64,7 @@ function findFarmNativeScreenFiles(appDirs) {
64
64
  }
65
65
  function collectFarmNativeServerFns(options) {
66
66
  const { root, srcDir } = options;
67
- const aliases = _chunkVMGQOP7Xcjs.readAliases.call(void 0, root, srcDir);
67
+ const aliases = _chunkOLIWLN4Icjs.readAliases.call(void 0, root, srcDir);
68
68
  const seen = /* @__PURE__ */ new Set();
69
69
  const found = /* @__PURE__ */ new Map();
70
70
  const queue = [...options.entries];
@@ -98,7 +98,7 @@ function collectFarmNativeServerFns(options) {
98
98
  }
99
99
  }
100
100
  for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
101
- const resolved = _chunkVMGQOP7Xcjs.resolveFile.call(void 0, candidate);
101
+ const resolved = _chunkOLIWLN4Icjs.resolveFile.call(void 0, candidate);
102
102
  if (resolved && SCRIPT.test(resolved) && !resolved.includes(`${_path2.default.sep}node_modules${_path2.default.sep}`)) {
103
103
  queue.push(resolved);
104
104
  break;
@@ -10,7 +10,7 @@ var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
10
10
  var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
11
11
 
12
12
 
13
- var _chunk2NOHVIJ3cjs = require('./chunk-2NOHVIJ3.cjs');
13
+ var _chunk5LJF4KUZcjs = require('./chunk-5LJF4KUZ.cjs');
14
14
 
15
15
  // src/mobile/native-tree.ts
16
16
  var URLENCODED = "application/x-www-form-urlencoded";
@@ -639,7 +639,7 @@ function parsedStylesheet(css) {
639
639
  }
640
640
  function createFarmNativeTree(html, pageUrl, stylesheets) {
641
641
  const title = _optionalChain([/<title\b[^>]*>([\s\S]*?)<\/title>/i, 'access', _25 => _25.exec, 'call', _26 => _26(html), 'optionalAccess', _27 => _27[1]]);
642
- const document = parseHtml(_chunk2NOHVIJ3cjs._readFarmRenderedHtml.call(void 0, html, { keepAriaHidden: true }));
642
+ const document = parseHtml(_chunk5LJF4KUZcjs._readFarmRenderedHtml.call(void 0, html, { keepAriaHidden: true }));
643
643
  const page = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(find(document, (element) => element.attributes.id === "__farm_page__"), () => ( find(document, (element) => element.attributes.id === "root"))), () => ( find(document, (element) => element.tag === "body"))), () => ( document));
644
644
  const labels = /* @__PURE__ */ new Map();
645
645
  const collectLabels = (element) => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getFarmRouteLabel
3
- } from "./chunk-BJHXFEAF.mjs";
3
+ } from "./chunk-P2TGLGRR.mjs";
4
4
  import {
5
- _classifyFarmMCPSession,
5
+ _classifyFarmMCPClient,
6
6
  _farmMCPClientSession,
7
7
  _isFarmMCPRequest,
8
8
  classifyFarmClient
9
- } from "./chunk-YU2MNIIY.mjs";
9
+ } from "./chunk-CRF5MOLO.mjs";
10
10
  import {
11
11
  validateIntegrationRequestOrigin
12
12
  } from "./chunk-PNMAD3OS.mjs";
@@ -294,19 +294,28 @@ function createFarmInfraAnalyticsExporter(options, send = (input, init) => fetch
294
294
  }
295
295
  var CONTEXT_KEY = "farm.infra.analytics";
296
296
  function beginRequest(request, route, waitUntil) {
297
- return {
297
+ const metadata = {
298
298
  id: uuid(),
299
299
  agent: classifyFarmClient(request),
300
- mcpSession: readMCPClientSession(request),
300
+ mcpSession: void 0,
301
301
  path: requestPath(request),
302
302
  route,
303
303
  completed: false,
304
304
  waitUntil
305
305
  };
306
+ metadata.mcpSession = readMCPClient(request)?.then((client) => {
307
+ if (!client) return void 0;
308
+ metadata.agent = client.agent;
309
+ return client.session;
310
+ });
311
+ return metadata;
306
312
  }
307
313
  var MAX_MCP_BODY = 64 * 1024;
308
- function readMCPClientSession(request) {
309
- if (request.headers.has("mcp-session-id") || !_isFarmMCPRequest(request) || !request.body || request.bodyUsed || !/json/i.test(request.headers.get("content-type") ?? "") || Number(request.headers.get("content-length")) > MAX_MCP_BODY)
314
+ var STATELESS_MCP_VERSION = "2026-07-28";
315
+ var CLIENT_INFO_META = "io.modelcontextprotocol/clientInfo";
316
+ function readMCPClient(request) {
317
+ const version = request.headers.get("mcp-protocol-version");
318
+ if (request.headers.has("mcp-session-id") || version !== null && version < STATELESS_MCP_VERSION || !_isFarmMCPRequest(request) || !request.body || request.bodyUsed || !/json/i.test(request.headers.get("content-type") ?? "") || Number(request.headers.get("content-length")) > MAX_MCP_BODY)
310
319
  return void 0;
311
320
  let body;
312
321
  try {
@@ -314,9 +323,9 @@ function readMCPClientSession(request) {
314
323
  } catch {
315
324
  return void 0;
316
325
  }
317
- return readMCPInitialize(body).catch(() => void 0);
326
+ return readMCPClientInfo(body).catch(() => void 0);
318
327
  }
319
- async function readMCPInitialize(body) {
328
+ async function readMCPClientInfo(body) {
320
329
  const reader = body.getReader();
321
330
  const decoder = new TextDecoder();
322
331
  let text = "";
@@ -332,15 +341,18 @@ async function readMCPInitialize(body) {
332
341
  });
333
342
  }
334
343
  const parsed = JSON.parse(text + decoder.decode());
335
- const initialize = (Array.isArray(parsed) ? parsed : [parsed]).find(
336
- (message) => message?.method === "initialize"
337
- );
338
- return _farmMCPClientSession(initialize?.params?.clientInfo?.name);
344
+ for (const message of Array.isArray(parsed) ? parsed : [parsed]) {
345
+ const { method, params } = message ?? {};
346
+ const name = method === "initialize" ? params?.clientInfo?.name : params?._meta?.[CLIENT_INFO_META]?.name;
347
+ const agent = _classifyFarmMCPClient(name);
348
+ if (!agent) continue;
349
+ return method === "initialize" ? { agent, session: _farmMCPClientSession(name) } : { agent };
350
+ }
351
+ return void 0;
339
352
  }
340
353
  async function withMCPClientSession(response, metadata) {
341
354
  const session = await metadata.mcpSession;
342
355
  if (!session || !response.ok || response.headers.has("mcp-session-id")) return void 0;
343
- metadata.agent = _classifyFarmMCPSession(session) ?? metadata.agent;
344
356
  const headers = new Headers(response.headers);
345
357
  headers.set("Mcp-Session-Id", session);
346
358
  return new Response(response.body, {
@@ -520,6 +532,13 @@ function _farmWebMCPReportsEnabled(plugins) {
520
532
  return candidate?.name === "farm:webmcp" && candidate.client?.public?.analytics !== false;
521
533
  });
522
534
  }
535
+ function reportToolCall(exporter, metadata, event, options) {
536
+ const report = () => {
537
+ exporter.enqueue(toolEvent(metadata, event, options.toolPayloads !== false));
538
+ return exporter.flush();
539
+ };
540
+ return metadata.mcpSession ? metadata.mcpSession.then(report) : report();
541
+ }
523
542
  function farmInfraAnalyticsPlugin(options, send, runtimeOptions = {}) {
524
543
  const contextKey = `${CONTEXT_KEY}.${uuid()}`;
525
544
  const webmcp = runtimeOptions.webmcp ? { ...runtimeOptions.webmcp } : void 0;
@@ -560,8 +579,7 @@ function farmInfraAnalyticsPlugin(options, send, runtimeOptions = {}) {
560
579
  if (!request) return;
561
580
  const metadata = context.requestContext.get(request, contextKey);
562
581
  if (!metadata) return;
563
- exporter.enqueue(toolEvent(metadata, event, options.toolPayloads !== false));
564
- metadata.waitUntil(exporter.flush());
582
+ metadata.waitUntil(reportToolCall(exporter, metadata, event, options));
565
583
  },
566
584
  { unfiltered: true }
567
585
  );
@@ -610,8 +628,7 @@ function farmInfraAnalyticsRecorder(options, send, runtimeOptions = {}) {
610
628
  if (!isToolEvent(event)) return;
611
629
  const metadata = requests.getStore();
612
630
  if (!metadata) return;
613
- exporter.enqueue(toolEvent(metadata, event, options.toolPayloads !== false));
614
- metadata.waitUntil(exporter.flush());
631
+ metadata.waitUntil(reportToolCall(exporter, metadata, event, options));
615
632
  },
616
633
  { unfiltered: true }
617
634
  );
@@ -129,11 +129,20 @@ var MCP_CLIENTS = [
129
129
  [["arcade"], "arcade", "Arcade", "other"],
130
130
  [["Alpic"], "alpic", "Alpic", "other"],
131
131
  [["Postman-Client"], "postman", "Postman", "other"],
132
- [["gitguardian"], "gitguardian", "GitGuardian", "other"]
132
+ [["gitguardian"], "gitguardian", "GitGuardian", "other"],
133
+ [["inspector-cli", "mcp-inspector"], "inspector", "MCP Inspector", "other"],
134
+ [["mcp-remote-fallback-test"], "mcp-remote", "mcp-remote", "other"]
133
135
  ];
134
136
  var MCP_CLIENT_BY_NAME = new Map(
135
137
  MCP_CLIENTS.flatMap(([names, slug]) => names.map((name) => [name.toLowerCase(), slug]))
136
138
  );
139
+ var MCP_REMOTE_SUFFIX = " (via mcp-remote";
140
+ function mcpClientSlug(clientInfoName) {
141
+ if (typeof clientInfoName !== "string") return void 0;
142
+ const bridged = clientInfoName.endsWith(")") ? clientInfoName.lastIndexOf(MCP_REMOTE_SUFFIX) : -1;
143
+ const name = bridged < 0 ? clientInfoName : clientInfoName.slice(0, bridged);
144
+ return MCP_CLIENT_BY_NAME.get(name.toLowerCase()) ?? (bridged < 0 ? void 0 : "mcp-remote");
145
+ }
137
146
  var MCP_CLIENT_BY_SLUG = new Map(
138
147
  MCP_CLIENTS.map(([, slug, name, family]) => [slug, { name, family, category: "harness" }])
139
148
  );
@@ -214,8 +223,7 @@ function declared({ name, family, category }) {
214
223
  return { family, category, identity: "self-reported", ...name ? { name } : {} };
215
224
  }
216
225
  function _farmMCPClientSession(clientInfoName) {
217
- if (typeof clientInfoName !== "string") return void 0;
218
- const slug = MCP_CLIENT_BY_NAME.get(clientInfoName.toLowerCase());
226
+ const slug = mcpClientSlug(clientInfoName);
219
227
  if (!slug) return void 0;
220
228
  const random = crypto.getRandomValues(new Uint8Array(16));
221
229
  return `farm.${slug}.${Array.from(random, (byte) => byte.toString(16).padStart(2, "0")).join("")}`;
@@ -225,6 +233,11 @@ function _classifyFarmMCPSession(sessionId) {
225
233
  const client = slug === void 0 ? void 0 : MCP_CLIENT_BY_SLUG.get(slug);
226
234
  return client && declared(client);
227
235
  }
236
+ function _classifyFarmMCPClient(clientInfoName) {
237
+ const slug = mcpClientSlug(clientInfoName);
238
+ const client = slug === void 0 ? void 0 : MCP_CLIENT_BY_SLUG.get(slug);
239
+ return client && declared(client);
240
+ }
228
241
  function _isFarmMCPRequest(request) {
229
242
  return isMcpRequest(request);
230
243
  }
@@ -1566,7 +1579,7 @@ export {
1566
1579
  classifyFarmAgent,
1567
1580
  classifyFarmClient,
1568
1581
  _farmMCPClientSession,
1569
- _classifyFarmMCPSession,
1582
+ _classifyFarmMCPClient,
1570
1583
  _isFarmMCPRequest,
1571
1584
  FARM_INTERNAL_READ_HEADER,
1572
1585
  emitFarmAgentRead,
@@ -2,10 +2,10 @@ import {
2
2
  getFarmAgentPagePublicPath,
3
3
  isFarmMetadataNoIndex,
4
4
  resolveFarmAgentOrigin
5
- } from "./chunk-XGL42MQ7.mjs";
5
+ } from "./chunk-HIDZM23B.mjs";
6
6
  import {
7
7
  matchesFarmMarkdownRoutePattern
8
- } from "./chunk-YU2MNIIY.mjs";
8
+ } from "./chunk-CRF5MOLO.mjs";
9
9
  import {
10
10
  normalizeFarmTrailingSlashPathname
11
11
  } from "./chunk-4O26BPUY.mjs";
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk2NOHVIJ3cjs = require('./chunk-2NOHVIJ3.cjs');
6
+ var _chunk5LJF4KUZcjs = require('./chunk-5LJF4KUZ.cjs');
7
7
 
8
8
 
9
9
  var _chunkDVJM55D2cjs = require('./chunk-DVJM55D2.cjs');
@@ -65,12 +65,12 @@ function collectFarmLlmsTxtPages(sources, options) {
65
65
  for (const source of sources) {
66
66
  const path = source.pattern;
67
67
  if (path.includes("[") || pages.has(path)) continue;
68
- if (include.length && !include.some((pattern) => _chunk2NOHVIJ3cjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) {
68
+ if (include.length && !include.some((pattern) => _chunk5LJF4KUZcjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) {
69
69
  continue;
70
70
  }
71
- if (exclude.some((pattern) => _chunk2NOHVIJ3cjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) continue;
71
+ if (exclude.some((pattern) => _chunk5LJF4KUZcjs.matchesFarmMarkdownRoutePattern.call(void 0, pattern, path))) continue;
72
72
  if (isFarmMetadataNoIndex(source.metadata)) continue;
73
- const target = _chunk2NOHVIJ3cjs.isFarmMarkdownMirrorExposed.call(void 0, options.markdown, path) ? getFarmAgentPagePublicPath(_chunk2NOHVIJ3cjs.getFarmMarkdownMirrorPath.call(void 0, path), options) : _chunkDVJM55D2cjs.normalizeFarmTrailingSlashPathname.call(void 0,
73
+ const target = _chunk5LJF4KUZcjs.isFarmMarkdownMirrorExposed.call(void 0, options.markdown, path) ? getFarmAgentPagePublicPath(_chunk5LJF4KUZcjs.getFarmMarkdownMirrorPath.call(void 0, path), options) : _chunkDVJM55D2cjs.normalizeFarmTrailingSlashPathname.call(void 0,
74
74
  getFarmAgentPagePublicPath(path, options),
75
75
  options.trailingSlash === true
76
76
  );
@@ -199,7 +199,7 @@ function createFarmLlmsMarkdownReader(fetchMarkdown) {
199
199
  try {
200
200
  const response = await fetchMarkdown(
201
201
  new Request(url, {
202
- headers: { accept: "text/markdown", [_chunk2NOHVIJ3cjs.FARM_INTERNAL_READ_HEADER]: "llms-full" }
202
+ headers: { accept: "text/markdown", [_chunk5LJF4KUZcjs.FARM_INTERNAL_READ_HEADER]: "llms-full" }
203
203
  })
204
204
  );
205
205
  const type = _nullishCoalesce(response.headers.get("content-type"), () => ( ""));
@@ -347,6 +347,7 @@ function getIntegrationProviders(integrations) {
347
347
  name: provider.name,
348
348
  type: provider.type,
349
349
  props: provider.props,
350
+ islands: provider.islands,
350
351
  supportsIsolatedHydration: provider.supportsIsolatedHydration,
351
352
  component: provider.component
352
353
  });
@@ -354,6 +355,9 @@ function getIntegrationProviders(integrations) {
354
355
  }
355
356
  return providers;
356
357
  }
358
+ function providerSupportsIslands(provider) {
359
+ return (_nullishCoalesce(provider.islands, () => ( provider.supportsIsolatedHydration))) === true;
360
+ }
357
361
  function isFarmIntegrationProviderComponentReference(value) {
358
362
  return Boolean(
359
363
  value && typeof value === "object" && "module" in value && typeof value.module === "string" && value.module.length > 0
@@ -1975,4 +1979,5 @@ function normalizeMatcher(matcher) {
1975
1979
 
1976
1980
 
1977
1981
 
1978
- exports.FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY = FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY; exports.FARM_INTEGRATION_SET_COOKIES_KEY = FARM_INTEGRATION_SET_COOKIES_KEY; exports.forwardIntegrationSetCookies = forwardIntegrationSetCookies; exports.defineIntegrationSchema = defineIntegrationSchema; exports.getFarmIntegrationPluginServerRuntime = getFarmIntegrationPluginServerRuntime; exports.getFarmIntegrationPluginOwner = getFarmIntegrationPluginOwner; exports.createIntegrationRoute = createIntegrationRoute; exports.integrationRoute = integrationRoute; exports.defineIntegration = defineIntegration; exports.resolveIntegrationPlugins = resolveIntegrationPlugins; exports.getIntegrationProviders = getIntegrationProviders; exports.isFarmIntegrationProviderComponentReference = isFarmIntegrationProviderComponentReference; exports.getIntegrationDocumentNavigationMatchers = getIntegrationDocumentNavigationMatchers; exports.getIntegrationSchemas = getIntegrationSchemas; exports.getRegisteredIntegrationRuntime = getRegisteredIntegrationRuntime; exports.getRegisteredIntegrations = getRegisteredIntegrations; exports.getRegisteredIntegrationSchemas = getRegisteredIntegrationSchemas; exports.matchIntegrationRoute = matchIntegrationRoute; exports.matchRegisteredIntegrationRoute = matchRegisteredIntegrationRoute; exports.getRegisteredIntegrationAPIManifest = getRegisteredIntegrationAPIManifest; exports.dispatchIntegrationRequest = dispatchIntegrationRequest; exports.dispatchIntegrationRequests = dispatchIntegrationRequests;
1982
+
1983
+ exports.FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY = FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY; exports.FARM_INTEGRATION_SET_COOKIES_KEY = FARM_INTEGRATION_SET_COOKIES_KEY; exports.forwardIntegrationSetCookies = forwardIntegrationSetCookies; exports.defineIntegrationSchema = defineIntegrationSchema; exports.getFarmIntegrationPluginServerRuntime = getFarmIntegrationPluginServerRuntime; exports.getFarmIntegrationPluginOwner = getFarmIntegrationPluginOwner; exports.createIntegrationRoute = createIntegrationRoute; exports.integrationRoute = integrationRoute; exports.defineIntegration = defineIntegration; exports.resolveIntegrationPlugins = resolveIntegrationPlugins; exports.getIntegrationProviders = getIntegrationProviders; exports.providerSupportsIslands = providerSupportsIslands; exports.isFarmIntegrationProviderComponentReference = isFarmIntegrationProviderComponentReference; exports.getIntegrationDocumentNavigationMatchers = getIntegrationDocumentNavigationMatchers; exports.getIntegrationSchemas = getIntegrationSchemas; exports.getRegisteredIntegrationRuntime = getRegisteredIntegrationRuntime; exports.getRegisteredIntegrations = getRegisteredIntegrations; exports.getRegisteredIntegrationSchemas = getRegisteredIntegrationSchemas; exports.matchIntegrationRoute = matchIntegrationRoute; exports.matchRegisteredIntegrationRoute = matchRegisteredIntegrationRoute; exports.getRegisteredIntegrationAPIManifest = getRegisteredIntegrationAPIManifest; exports.dispatchIntegrationRequest = dispatchIntegrationRequest; exports.dispatchIntegrationRequests = dispatchIntegrationRequests;
@@ -347,6 +347,7 @@ function getIntegrationProviders(integrations) {
347
347
  name: provider.name,
348
348
  type: provider.type,
349
349
  props: provider.props,
350
+ islands: provider.islands,
350
351
  supportsIsolatedHydration: provider.supportsIsolatedHydration,
351
352
  component: provider.component
352
353
  });
@@ -354,6 +355,9 @@ function getIntegrationProviders(integrations) {
354
355
  }
355
356
  return providers;
356
357
  }
358
+ function providerSupportsIslands(provider) {
359
+ return (provider.islands ?? provider.supportsIsolatedHydration) === true;
360
+ }
357
361
  function isFarmIntegrationProviderComponentReference(value) {
358
362
  return Boolean(
359
363
  value && typeof value === "object" && "module" in value && typeof value.module === "string" && value.module.length > 0
@@ -1964,6 +1968,7 @@ export {
1964
1968
  defineIntegration,
1965
1969
  resolveIntegrationPlugins,
1966
1970
  getIntegrationProviders,
1971
+ providerSupportsIslands,
1967
1972
  isFarmIntegrationProviderComponentReference,
1968
1973
  getIntegrationDocumentNavigationMatchers,
1969
1974
  getIntegrationSchemas,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk6266WH6Xcjs = require('./chunk-6266WH6X.cjs');
3
+ var _chunkNOSLIDSGcjs = require('./chunk-NOSLIDSG.cjs');
4
4
 
5
5
  // src/deployment-environment.ts
6
6
  function isFarmProductionDeploymentEnvironment(env = process.env) {
@@ -90,7 +90,7 @@ function createFarmProductionSiteReporter(options) {
90
90
  schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
91
91
  eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
92
92
  packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
93
- packageVersion: sanitizeDetail(_chunk6266WH6Xcjs.FARM_VERSION, "unknown"),
93
+ packageVersion: sanitizeDetail(_chunkNOSLIDSGcjs.FARM_VERSION, "unknown"),
94
94
  renderer: sanitizeDetail(options.renderer, "custom"),
95
95
  deployTarget: sanitizeDetail(options.deployTarget, "custom")
96
96
  };
@@ -132,7 +132,7 @@ import { trapUnhandledErrors } from "#nitro/runtime/error/hooks";
132
132
  import { setupCloseHooks } from "#nitro/runtime/shutdown";
133
133
  import { startScheduleRunner } from "#nitro/runtime/task";
134
134
  import { tracingSrvxPlugins } from "#nitro/virtual/tracing";
135
- import { farmProductionLifecycle } from ${JSON.stringify(nitroEntryImport)};${desktop ? `
135
+ import { farmPrepareNativeRoutes, farmProductionLifecycle } from ${JSON.stringify(nitroEntryImport)};${desktop ? `
136
136
  import { realpathSync } from "node:fs";
137
137
  import { pathToFileURL } from "node:url";
138
138
  import { createFarmDesktopGuard } from ${JSON.stringify(desktop.guardModule)};
@@ -196,7 +196,9 @@ if (!shutdownConfig.disabled) {
196
196
 
197
197
  try {
198
198
  await Promise.race([
199
- Promise.resolve().then(() => farmProductionLifecycle.start()),
199
+ Promise.resolve()
200
+ .then(() => farmProductionLifecycle.start())
201
+ .then(() => farmPrepareNativeRoutes()),
200
202
  startupSignalPromise,
201
203
  ]);
202
204
  } catch (error) {
@@ -467,6 +467,9 @@ function resolveTwitterPlayers(metadata, metadataBase) {
467
467
  )[0];
468
468
  const poster = image && toSameOriginPath(image.url, metadataBase);
469
469
  if (poster) query.set("poster", poster);
470
+ const pageUrl = normalizeContent(metadata.openGraph.url);
471
+ const page = pageUrl && toSameOriginPath(pageUrl, metadataBase);
472
+ if (page) query.set("page", page);
470
473
  const size = video.width && video.height ? { width: video.width, height: video.height } : DEFAULT_TWITTER_PLAYER_SIZE;
471
474
  const playerPath = `${FARM_VIDEO_PLAYER_PATH}?${query}`;
472
475
  return [