@geminilight/mindos 0.6.55 → 0.6.57

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 (377) hide show
  1. package/_standalone/.mindos-build-version +1 -1
  2. package/_standalone/.next/BUILD_ID +1 -1
  3. package/_standalone/.next/app-path-routes-manifest.json +24 -22
  4. package/_standalone/.next/build-manifest.json +3 -3
  5. package/_standalone/.next/cache/.previewinfo +1 -1
  6. package/_standalone/.next/cache/.rscinfo +1 -1
  7. package/_standalone/.next/cache/config.json +3 -3
  8. package/_standalone/.next/prerender-manifest.json +3 -3
  9. package/_standalone/.next/react-loadable-manifest.json +7 -7
  10. package/_standalone/.next/routes-manifest.json +12 -0
  11. package/_standalone/.next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +1 -1
  12. package/_standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  13. package/_standalone/.next/server/app/_global-error.html +2 -2
  14. package/_standalone/.next/server/app/_global-error.rsc +1 -1
  15. package/_standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  16. package/_standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  17. package/_standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  18. package/_standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  19. package/_standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  20. package/_standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  21. package/_standalone/.next/server/app/_not-found/page.js +1 -1
  22. package/_standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  23. package/_standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  24. package/_standalone/.next/server/app/agents/[agentKey]/page.js +1 -1
  25. package/_standalone/.next/server/app/agents/[agentKey]/page.js.nft.json +1 -1
  26. package/_standalone/.next/server/app/agents/[agentKey]/page_client-reference-manifest.js +1 -1
  27. package/_standalone/.next/server/app/agents/page.js +2 -6
  28. package/_standalone/.next/server/app/agents/page.js.nft.json +1 -1
  29. package/_standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
  30. package/_standalone/.next/server/app/api/a2a/agents/route_client-reference-manifest.js +1 -1
  31. package/_standalone/.next/server/app/api/a2a/delegations/route_client-reference-manifest.js +1 -1
  32. package/_standalone/.next/server/app/api/a2a/discover/route_client-reference-manifest.js +1 -1
  33. package/_standalone/.next/server/app/api/a2a/route_client-reference-manifest.js +1 -1
  34. package/_standalone/.next/server/app/api/acp/config/route_client-reference-manifest.js +1 -1
  35. package/_standalone/.next/server/app/api/acp/detect/route_client-reference-manifest.js +1 -1
  36. package/_standalone/.next/server/app/api/acp/install/route_client-reference-manifest.js +1 -1
  37. package/_standalone/.next/server/app/api/acp/registry/route_client-reference-manifest.js +1 -1
  38. package/_standalone/.next/server/app/api/acp/session/route_client-reference-manifest.js +1 -1
  39. package/_standalone/.next/server/app/api/agent-activity/route_client-reference-manifest.js +1 -1
  40. package/_standalone/.next/server/app/api/agents/custom/detect/route.js +1 -0
  41. package/_standalone/.next/server/app/api/agents/custom/detect/route.js.nft.json +1 -0
  42. package/_standalone/.next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +1 -0
  43. package/_standalone/.next/server/app/api/agents/custom/route.js +1 -0
  44. package/_standalone/.next/server/app/api/agents/custom/route.js.nft.json +1 -0
  45. package/_standalone/.next/server/app/api/agents/custom/route_client-reference-manifest.js +1 -0
  46. package/_standalone/.next/server/app/api/ask/route.js +3 -3
  47. package/_standalone/.next/server/app/api/ask/route.js.nft.json +1 -1
  48. package/_standalone/.next/server/app/api/ask/route_client-reference-manifest.js +1 -1
  49. package/_standalone/.next/server/app/api/ask-sessions/route_client-reference-manifest.js +1 -1
  50. package/_standalone/.next/server/app/api/auth/route_client-reference-manifest.js +1 -1
  51. package/_standalone/.next/server/app/api/backlinks/route.js.nft.json +1 -1
  52. package/_standalone/.next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
  53. package/_standalone/.next/server/app/api/bootstrap/route.js.nft.json +1 -1
  54. package/_standalone/.next/server/app/api/bootstrap/route_client-reference-manifest.js +1 -1
  55. package/_standalone/.next/server/app/api/changes/route.js.nft.json +1 -1
  56. package/_standalone/.next/server/app/api/changes/route_client-reference-manifest.js +1 -1
  57. package/_standalone/.next/server/app/api/export/route.js.nft.json +1 -1
  58. package/_standalone/.next/server/app/api/export/route_client-reference-manifest.js +1 -1
  59. package/_standalone/.next/server/app/api/extract-pdf/route_client-reference-manifest.js +1 -1
  60. package/_standalone/.next/server/app/api/file/import/route.js +1 -1
  61. package/_standalone/.next/server/app/api/file/import/route.js.nft.json +1 -1
  62. package/_standalone/.next/server/app/api/file/import/route_client-reference-manifest.js +1 -1
  63. package/_standalone/.next/server/app/api/file/raw/route.js.nft.json +1 -1
  64. package/_standalone/.next/server/app/api/file/raw/route_client-reference-manifest.js +1 -1
  65. package/_standalone/.next/server/app/api/file/route.js.nft.json +1 -1
  66. package/_standalone/.next/server/app/api/file/route_client-reference-manifest.js +1 -1
  67. package/_standalone/.next/server/app/api/files/route.js.nft.json +1 -1
  68. package/_standalone/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
  69. package/_standalone/.next/server/app/api/git/route.js.nft.json +1 -1
  70. package/_standalone/.next/server/app/api/git/route_client-reference-manifest.js +1 -1
  71. package/_standalone/.next/server/app/api/graph/route.js.nft.json +1 -1
  72. package/_standalone/.next/server/app/api/graph/route_client-reference-manifest.js +1 -1
  73. package/_standalone/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  74. package/_standalone/.next/server/app/api/inbox/route.js.nft.json +1 -1
  75. package/_standalone/.next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
  76. package/_standalone/.next/server/app/api/init/route.js.nft.json +1 -1
  77. package/_standalone/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
  78. package/_standalone/.next/server/app/api/mcp/agents/route.js +1 -1
  79. package/_standalone/.next/server/app/api/mcp/agents/route.js.nft.json +1 -1
  80. package/_standalone/.next/server/app/api/mcp/agents/route_client-reference-manifest.js +1 -1
  81. package/_standalone/.next/server/app/api/mcp/install/route_client-reference-manifest.js +1 -1
  82. package/_standalone/.next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +1 -1
  83. package/_standalone/.next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
  84. package/_standalone/.next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
  85. package/_standalone/.next/server/app/api/mcp/uninstall/route_client-reference-manifest.js +1 -1
  86. package/_standalone/.next/server/app/api/monitoring/route.js.nft.json +1 -1
  87. package/_standalone/.next/server/app/api/monitoring/route_client-reference-manifest.js +1 -1
  88. package/_standalone/.next/server/app/api/recent-files/route.js.nft.json +1 -1
  89. package/_standalone/.next/server/app/api/recent-files/route_client-reference-manifest.js +1 -1
  90. package/_standalone/.next/server/app/api/restart/route_client-reference-manifest.js +1 -1
  91. package/_standalone/.next/server/app/api/search/route.js.nft.json +1 -1
  92. package/_standalone/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  93. package/_standalone/.next/server/app/api/settings/list-models/route.js +1 -1
  94. package/_standalone/.next/server/app/api/settings/list-models/route_client-reference-manifest.js +1 -1
  95. package/_standalone/.next/server/app/api/settings/reset-token/route_client-reference-manifest.js +1 -1
  96. package/_standalone/.next/server/app/api/settings/route.js.nft.json +1 -1
  97. package/_standalone/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  98. package/_standalone/.next/server/app/api/settings/test-key/route.js +1 -1
  99. package/_standalone/.next/server/app/api/settings/test-key/route_client-reference-manifest.js +1 -1
  100. package/_standalone/.next/server/app/api/setup/check-path/route_client-reference-manifest.js +1 -1
  101. package/_standalone/.next/server/app/api/setup/check-port/route_client-reference-manifest.js +1 -1
  102. package/_standalone/.next/server/app/api/setup/generate-token/route_client-reference-manifest.js +1 -1
  103. package/_standalone/.next/server/app/api/setup/ls/route_client-reference-manifest.js +1 -1
  104. package/_standalone/.next/server/app/api/setup/route_client-reference-manifest.js +1 -1
  105. package/_standalone/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  106. package/_standalone/.next/server/app/api/sync/route_client-reference-manifest.js +1 -1
  107. package/_standalone/.next/server/app/api/tree-version/route.js.nft.json +1 -1
  108. package/_standalone/.next/server/app/api/tree-version/route_client-reference-manifest.js +1 -1
  109. package/_standalone/.next/server/app/api/uninstall/route_client-reference-manifest.js +1 -1
  110. package/_standalone/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
  111. package/_standalone/.next/server/app/api/update-check/route_client-reference-manifest.js +1 -1
  112. package/_standalone/.next/server/app/api/update-status/route_client-reference-manifest.js +1 -1
  113. package/_standalone/.next/server/app/api/workflows/route.js.nft.json +1 -1
  114. package/_standalone/.next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
  115. package/_standalone/.next/server/app/changes/page.js +1 -1
  116. package/_standalone/.next/server/app/changes/page.js.nft.json +1 -1
  117. package/_standalone/.next/server/app/changes/page_client-reference-manifest.js +1 -1
  118. package/_standalone/.next/server/app/echo/[segment]/page.js +1 -1
  119. package/_standalone/.next/server/app/echo/[segment]/page.js.nft.json +1 -1
  120. package/_standalone/.next/server/app/echo/[segment]/page_client-reference-manifest.js +1 -1
  121. package/_standalone/.next/server/app/echo/page.js +1 -1
  122. package/_standalone/.next/server/app/echo/page.js.nft.json +1 -1
  123. package/_standalone/.next/server/app/echo/page_client-reference-manifest.js +1 -1
  124. package/_standalone/.next/server/app/explore/page.js +1 -1
  125. package/_standalone/.next/server/app/explore/page.js.nft.json +1 -1
  126. package/_standalone/.next/server/app/explore/page_client-reference-manifest.js +1 -1
  127. package/_standalone/.next/server/app/help/page.js +1 -1
  128. package/_standalone/.next/server/app/help/page.js.nft.json +1 -1
  129. package/_standalone/.next/server/app/help/page_client-reference-manifest.js +1 -1
  130. package/_standalone/.next/server/app/inbox/history/page.js +1 -1
  131. package/_standalone/.next/server/app/inbox/history/page.js.nft.json +1 -1
  132. package/_standalone/.next/server/app/inbox/history/page_client-reference-manifest.js +1 -1
  133. package/_standalone/.next/server/app/login/page.js +1 -1
  134. package/_standalone/.next/server/app/login/page.js.nft.json +1 -1
  135. package/_standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  136. package/_standalone/.next/server/app/page.js +1 -1
  137. package/_standalone/.next/server/app/page.js.nft.json +1 -1
  138. package/_standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  139. package/_standalone/.next/server/app/setup/page.js +1 -1
  140. package/_standalone/.next/server/app/setup/page.js.nft.json +1 -1
  141. package/_standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  142. package/_standalone/.next/server/app/trash/page.js +3 -3
  143. package/_standalone/.next/server/app/trash/page.js.nft.json +1 -1
  144. package/_standalone/.next/server/app/trash/page_client-reference-manifest.js +1 -1
  145. package/_standalone/.next/server/app/view/[...path]/page.js +3 -3
  146. package/_standalone/.next/server/app/view/[...path]/page.js.nft.json +1 -1
  147. package/_standalone/.next/server/app/view/[...path]/page_client-reference-manifest.js +1 -1
  148. package/_standalone/.next/server/app/wiki/page.js +1 -1
  149. package/_standalone/.next/server/app/wiki/page.js.nft.json +1 -1
  150. package/_standalone/.next/server/app/wiki/page_client-reference-manifest.js +1 -1
  151. package/_standalone/.next/server/app-paths-manifest.json +24 -22
  152. package/_standalone/.next/server/chunks/2159.js +52 -0
  153. package/_standalone/.next/server/chunks/{2190.js → 3484.js} +1 -1
  154. package/_standalone/.next/server/chunks/530.js +31 -31
  155. package/_standalone/.next/server/chunks/6539.js +1 -1
  156. package/_standalone/.next/server/chunks/8388.js +3 -3
  157. package/_standalone/.next/server/chunks/953.js +2 -2
  158. package/_standalone/.next/server/middleware-build-manifest.js +1 -1
  159. package/_standalone/.next/server/middleware-react-loadable-manifest.js +1 -1
  160. package/_standalone/.next/server/pages/500.html +2 -2
  161. package/_standalone/.next/server/server-reference-manifest.js +1 -1
  162. package/_standalone/.next/server/server-reference-manifest.json +1 -1
  163. package/_standalone/.next/static/chunks/1053-5cb008a24930e271.js +29 -0
  164. package/_standalone/.next/static/chunks/1477.33df3cce509578c2.js +1 -0
  165. package/_standalone/.next/static/chunks/{1814.b08e9fb85dd3b13c.js → 1814.a7c127b2c73d1f70.js} +1 -1
  166. package/_standalone/.next/static/chunks/2549-e63cf57fa927a41d.js +1 -0
  167. package/_standalone/.next/static/chunks/{1007.c11404e50b39d165.js → 2647.e0b67d0c432ad7e7.js} +10 -10
  168. package/_standalone/.next/static/chunks/362.3978790a2e636c3c.js +2 -0
  169. package/_standalone/.next/static/chunks/3637.38c4f28d8f698e0e.js +1 -0
  170. package/_standalone/.next/static/chunks/54a60aa6.7a74f547ec1bdd5a.js +79 -0
  171. package/_standalone/.next/static/chunks/6087.4b6102dc0bcd07a7.js +1 -0
  172. package/_standalone/.next/static/chunks/6878-e2c5459e1c608f89.js +1 -0
  173. package/_standalone/.next/static/chunks/7249-8cd568ad23656622.js +11 -0
  174. package/_standalone/.next/static/chunks/8252-e5ae7ced3a41e0ed.js +1 -0
  175. package/_standalone/.next/static/chunks/{8753-ea9db680b0f70f25.js → 8658-16ff58b75ae37fbb.js} +1 -1
  176. package/_standalone/.next/static/chunks/{7322-d67d05067544864c.js → 9274-296ab35f9f09e42e.js} +1 -1
  177. package/_standalone/.next/static/chunks/app/.well-known/agent-card.json/route-2f4705aa66819b86.js +1 -0
  178. package/_standalone/.next/static/chunks/app/_global-error/page-2f4705aa66819b86.js +1 -0
  179. package/_standalone/.next/static/chunks/app/agents/[agentKey]/page-7bdeab5af8e4f5f2.js +1 -0
  180. package/_standalone/.next/static/chunks/app/agents/page-5d1446665ddb3801.js +1 -0
  181. package/_standalone/.next/static/chunks/app/api/a2a/agents/route-2f4705aa66819b86.js +1 -0
  182. package/_standalone/.next/static/chunks/app/api/a2a/delegations/route-2f4705aa66819b86.js +1 -0
  183. package/_standalone/.next/static/chunks/app/api/a2a/discover/route-2f4705aa66819b86.js +1 -0
  184. package/_standalone/.next/static/chunks/app/api/a2a/route-2f4705aa66819b86.js +1 -0
  185. package/_standalone/.next/static/chunks/app/api/acp/config/route-2f4705aa66819b86.js +1 -0
  186. package/_standalone/.next/static/chunks/app/api/acp/detect/route-2f4705aa66819b86.js +1 -0
  187. package/_standalone/.next/static/chunks/app/api/acp/install/route-2f4705aa66819b86.js +1 -0
  188. package/_standalone/.next/static/chunks/app/api/acp/registry/route-2f4705aa66819b86.js +1 -0
  189. package/_standalone/.next/static/chunks/app/api/acp/session/route-2f4705aa66819b86.js +1 -0
  190. package/_standalone/.next/static/chunks/app/api/agent-activity/route-2f4705aa66819b86.js +1 -0
  191. package/_standalone/.next/static/chunks/app/api/agents/custom/detect/route-2f4705aa66819b86.js +1 -0
  192. package/_standalone/.next/static/chunks/app/api/agents/custom/route-2f4705aa66819b86.js +1 -0
  193. package/_standalone/.next/static/chunks/app/api/ask/route-2f4705aa66819b86.js +1 -0
  194. package/_standalone/.next/static/chunks/app/api/ask-sessions/route-2f4705aa66819b86.js +1 -0
  195. package/_standalone/.next/static/chunks/app/api/auth/route-2f4705aa66819b86.js +1 -0
  196. package/_standalone/.next/static/chunks/app/api/backlinks/route-2f4705aa66819b86.js +1 -0
  197. package/_standalone/.next/static/chunks/app/api/bootstrap/route-2f4705aa66819b86.js +1 -0
  198. package/_standalone/.next/static/chunks/app/api/changes/route-2f4705aa66819b86.js +1 -0
  199. package/_standalone/.next/static/chunks/app/api/export/route-2f4705aa66819b86.js +1 -0
  200. package/_standalone/.next/static/chunks/app/api/extract-pdf/route-2f4705aa66819b86.js +1 -0
  201. package/_standalone/.next/static/chunks/app/api/file/import/route-2f4705aa66819b86.js +1 -0
  202. package/_standalone/.next/static/chunks/app/api/file/raw/route-2f4705aa66819b86.js +1 -0
  203. package/_standalone/.next/static/chunks/app/api/file/route-2f4705aa66819b86.js +1 -0
  204. package/_standalone/.next/static/chunks/app/api/files/route-2f4705aa66819b86.js +1 -0
  205. package/_standalone/.next/static/chunks/app/api/git/route-2f4705aa66819b86.js +1 -0
  206. package/_standalone/.next/static/chunks/app/api/graph/route-2f4705aa66819b86.js +1 -0
  207. package/_standalone/.next/static/chunks/app/api/health/route-2f4705aa66819b86.js +1 -0
  208. package/_standalone/.next/static/chunks/app/api/inbox/route-2f4705aa66819b86.js +1 -0
  209. package/_standalone/.next/static/chunks/app/api/init/route-2f4705aa66819b86.js +1 -0
  210. package/_standalone/.next/static/chunks/app/api/mcp/agents/route-2f4705aa66819b86.js +1 -0
  211. package/_standalone/.next/static/chunks/app/api/mcp/install/route-2f4705aa66819b86.js +1 -0
  212. package/_standalone/.next/static/chunks/app/api/mcp/install-skill/route-2f4705aa66819b86.js +1 -0
  213. package/_standalone/.next/static/chunks/app/api/mcp/restart/route-2f4705aa66819b86.js +1 -0
  214. package/_standalone/.next/static/chunks/app/api/mcp/status/route-2f4705aa66819b86.js +1 -0
  215. package/_standalone/.next/static/chunks/app/api/mcp/uninstall/route-2f4705aa66819b86.js +1 -0
  216. package/_standalone/.next/static/chunks/app/api/monitoring/route-2f4705aa66819b86.js +1 -0
  217. package/_standalone/.next/static/chunks/app/api/recent-files/route-2f4705aa66819b86.js +1 -0
  218. package/_standalone/.next/static/chunks/app/api/restart/route-2f4705aa66819b86.js +1 -0
  219. package/_standalone/.next/static/chunks/app/api/search/route-2f4705aa66819b86.js +1 -0
  220. package/_standalone/.next/static/chunks/app/api/settings/list-models/route-2f4705aa66819b86.js +1 -0
  221. package/_standalone/.next/static/chunks/app/api/settings/reset-token/route-2f4705aa66819b86.js +1 -0
  222. package/_standalone/.next/static/chunks/app/api/settings/route-2f4705aa66819b86.js +1 -0
  223. package/_standalone/.next/static/chunks/app/api/settings/test-key/route-2f4705aa66819b86.js +1 -0
  224. package/_standalone/.next/static/chunks/app/api/setup/check-path/route-2f4705aa66819b86.js +1 -0
  225. package/_standalone/.next/static/chunks/app/api/setup/check-port/route-2f4705aa66819b86.js +1 -0
  226. package/_standalone/.next/static/chunks/app/api/setup/generate-token/route-2f4705aa66819b86.js +1 -0
  227. package/_standalone/.next/static/chunks/app/api/setup/ls/route-2f4705aa66819b86.js +1 -0
  228. package/_standalone/.next/static/chunks/app/api/setup/route-2f4705aa66819b86.js +1 -0
  229. package/_standalone/.next/static/chunks/app/api/skills/route-2f4705aa66819b86.js +1 -0
  230. package/_standalone/.next/static/chunks/app/api/sync/route-2f4705aa66819b86.js +1 -0
  231. package/_standalone/.next/static/chunks/app/api/tree-version/route-2f4705aa66819b86.js +1 -0
  232. package/_standalone/.next/static/chunks/app/api/uninstall/route-2f4705aa66819b86.js +1 -0
  233. package/_standalone/.next/static/chunks/app/api/update/route-2f4705aa66819b86.js +1 -0
  234. package/_standalone/.next/static/chunks/app/api/update-check/route-2f4705aa66819b86.js +1 -0
  235. package/_standalone/.next/static/chunks/app/api/update-status/route-2f4705aa66819b86.js +1 -0
  236. package/_standalone/.next/static/chunks/app/api/workflows/route-2f4705aa66819b86.js +1 -0
  237. package/_standalone/.next/static/chunks/app/echo/[segment]/{page-6710da1f581b2854.js → page-b0103509ce34444b.js} +4 -4
  238. package/_standalone/.next/static/chunks/app/echo/page-2f4705aa66819b86.js +1 -0
  239. package/_standalone/.next/static/chunks/app/{layout-45e66033ba1bdb05.js → layout-b3919384ec2eb979.js} +45 -45
  240. package/_standalone/.next/static/chunks/app/loading-2f4705aa66819b86.js +1 -0
  241. package/_standalone/.next/static/chunks/app/{page-71bd113f66bd7617.js → page-6436a99cda35132b.js} +2 -2
  242. package/_standalone/.next/static/chunks/app/setup/{page-9a81fa4d82c6351b.js → page-99fcfc460fa29733.js} +1 -1
  243. package/_standalone/.next/static/chunks/app/trash/page-8dc388695344fdd4.js +1 -0
  244. package/_standalone/.next/static/chunks/app/view/[...path]/loading-2f4705aa66819b86.js +1 -0
  245. package/_standalone/.next/static/chunks/app/view/[...path]/page-b292b55305ecc021.js +12 -0
  246. package/_standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-2f4705aa66819b86.js +1 -0
  247. package/_standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-2f4705aa66819b86.js +1 -0
  248. package/_standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-2f4705aa66819b86.js +1 -0
  249. package/_standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-2f4705aa66819b86.js +1 -0
  250. package/_standalone/.next/static/chunks/webpack-2c19436659aa657b.js +1 -0
  251. package/_standalone/.next/static/css/fd84c8316ead16eb.css +1 -0
  252. package/_standalone/.next/static/zOaEtgJbdRMncnCBucULp/_buildManifest.js +1 -0
  253. package/_standalone/.next/trace +64 -64
  254. package/_standalone/.next/types/routes.d.ts +3 -1
  255. package/_standalone/.next/types/validator.ts +18 -0
  256. package/_standalone/components/Breadcrumb.tsx +10 -6
  257. package/_standalone/components/Editor.tsx +124 -6
  258. package/_standalone/components/MarkdownView.tsx +3 -1
  259. package/_standalone/components/WysiwygEditor.tsx +90 -0
  260. package/_standalone/components/agents/AgentsOverviewSection.tsx +100 -8
  261. package/_standalone/components/agents/CustomAgentModal.tsx +613 -0
  262. package/_standalone/components/settings/types.ts +4 -0
  263. package/_standalone/hooks/useEditorImageUpload.ts +113 -0
  264. package/_standalone/lib/image.ts +47 -0
  265. package/_standalone/tsconfig.tsbuildinfo +1 -1
  266. package/app/app/api/agents/custom/detect/route.ts +31 -0
  267. package/app/app/api/agents/custom/route.ts +150 -0
  268. package/app/app/api/file/import/route.ts +42 -0
  269. package/app/app/api/mcp/agents/route.ts +59 -7
  270. package/app/app/api/settings/list-models/route.ts +16 -2
  271. package/app/components/Breadcrumb.tsx +10 -6
  272. package/app/components/Editor.tsx +124 -6
  273. package/app/components/MarkdownView.tsx +3 -1
  274. package/app/components/WysiwygEditor.tsx +90 -0
  275. package/app/components/agents/AgentDetailContent.tsx +74 -1
  276. package/app/components/agents/AgentsContentPage.tsx +76 -1
  277. package/app/components/agents/AgentsOverviewSection.tsx +100 -8
  278. package/app/components/agents/CustomAgentModal.tsx +613 -0
  279. package/app/components/settings/types.ts +4 -0
  280. package/app/hooks/useEditorImageUpload.ts +113 -0
  281. package/app/lib/agent/model.ts +7 -1
  282. package/app/lib/agent/providers.ts +31 -6
  283. package/app/lib/core/organize.ts +1 -1
  284. package/app/lib/core/tree.ts +1 -1
  285. package/app/lib/custom-agents.ts +279 -0
  286. package/app/lib/fs.ts +1 -1
  287. package/app/lib/i18n/modules/panels.ts +96 -0
  288. package/app/lib/image.ts +47 -0
  289. package/app/lib/settings.ts +4 -0
  290. package/bin/commands/start.js +5 -4
  291. package/bin/commands/update.js +6 -2
  292. package/bin/lib/clean-env.js +1 -1
  293. package/bin/lib/gateway.js +6 -2
  294. package/mcp/dist/index.cjs +1 -1
  295. package/mcp/src/index.ts +6 -1
  296. package/package.json +1 -1
  297. package/_standalone/.next/server/chunks/1981.js +0 -52
  298. package/_standalone/.next/static/QXZErVsiRQxfqUnWMUsH6/_buildManifest.js +0 -1
  299. package/_standalone/.next/static/chunks/1053-2874859f7caefa0f.js +0 -29
  300. package/_standalone/.next/static/chunks/1880-7abf971bcfd2389b.js +0 -11
  301. package/_standalone/.next/static/chunks/254-32719a9bea2e74f0.js +0 -1
  302. package/_standalone/.next/static/chunks/362.a77be2f206db7b19.js +0 -1
  303. package/_standalone/.next/static/chunks/3637.0541ac2d0ea7de1f.js +0 -1
  304. package/_standalone/.next/static/chunks/54a60aa6.b97ba5e6900c089b.js +0 -79
  305. package/_standalone/.next/static/chunks/6087.0c32d26d0262c8e7.js +0 -1
  306. package/_standalone/.next/static/chunks/7035-2af69391c7b1ad95.js +0 -1
  307. package/_standalone/.next/static/chunks/8131.5e0bdb36bb91f212.js +0 -1
  308. package/_standalone/.next/static/chunks/app/.well-known/agent-card.json/route-e240db6d5049d336.js +0 -1
  309. package/_standalone/.next/static/chunks/app/_global-error/page-e240db6d5049d336.js +0 -1
  310. package/_standalone/.next/static/chunks/app/agents/[agentKey]/page-f006a70f6889eb56.js +0 -1
  311. package/_standalone/.next/static/chunks/app/agents/page-bd522e428e3acb78.js +0 -5
  312. package/_standalone/.next/static/chunks/app/api/a2a/agents/route-e240db6d5049d336.js +0 -1
  313. package/_standalone/.next/static/chunks/app/api/a2a/delegations/route-e240db6d5049d336.js +0 -1
  314. package/_standalone/.next/static/chunks/app/api/a2a/discover/route-e240db6d5049d336.js +0 -1
  315. package/_standalone/.next/static/chunks/app/api/a2a/route-e240db6d5049d336.js +0 -1
  316. package/_standalone/.next/static/chunks/app/api/acp/config/route-e240db6d5049d336.js +0 -1
  317. package/_standalone/.next/static/chunks/app/api/acp/detect/route-e240db6d5049d336.js +0 -1
  318. package/_standalone/.next/static/chunks/app/api/acp/install/route-e240db6d5049d336.js +0 -1
  319. package/_standalone/.next/static/chunks/app/api/acp/registry/route-e240db6d5049d336.js +0 -1
  320. package/_standalone/.next/static/chunks/app/api/acp/session/route-e240db6d5049d336.js +0 -1
  321. package/_standalone/.next/static/chunks/app/api/agent-activity/route-e240db6d5049d336.js +0 -1
  322. package/_standalone/.next/static/chunks/app/api/ask/route-e240db6d5049d336.js +0 -1
  323. package/_standalone/.next/static/chunks/app/api/ask-sessions/route-e240db6d5049d336.js +0 -1
  324. package/_standalone/.next/static/chunks/app/api/auth/route-e240db6d5049d336.js +0 -1
  325. package/_standalone/.next/static/chunks/app/api/backlinks/route-e240db6d5049d336.js +0 -1
  326. package/_standalone/.next/static/chunks/app/api/bootstrap/route-e240db6d5049d336.js +0 -1
  327. package/_standalone/.next/static/chunks/app/api/changes/route-e240db6d5049d336.js +0 -1
  328. package/_standalone/.next/static/chunks/app/api/export/route-e240db6d5049d336.js +0 -1
  329. package/_standalone/.next/static/chunks/app/api/extract-pdf/route-e240db6d5049d336.js +0 -1
  330. package/_standalone/.next/static/chunks/app/api/file/import/route-e240db6d5049d336.js +0 -1
  331. package/_standalone/.next/static/chunks/app/api/file/raw/route-e240db6d5049d336.js +0 -1
  332. package/_standalone/.next/static/chunks/app/api/file/route-e240db6d5049d336.js +0 -1
  333. package/_standalone/.next/static/chunks/app/api/files/route-e240db6d5049d336.js +0 -1
  334. package/_standalone/.next/static/chunks/app/api/git/route-e240db6d5049d336.js +0 -1
  335. package/_standalone/.next/static/chunks/app/api/graph/route-e240db6d5049d336.js +0 -1
  336. package/_standalone/.next/static/chunks/app/api/health/route-e240db6d5049d336.js +0 -1
  337. package/_standalone/.next/static/chunks/app/api/inbox/route-e240db6d5049d336.js +0 -1
  338. package/_standalone/.next/static/chunks/app/api/init/route-e240db6d5049d336.js +0 -1
  339. package/_standalone/.next/static/chunks/app/api/mcp/agents/route-e240db6d5049d336.js +0 -1
  340. package/_standalone/.next/static/chunks/app/api/mcp/install/route-e240db6d5049d336.js +0 -1
  341. package/_standalone/.next/static/chunks/app/api/mcp/install-skill/route-e240db6d5049d336.js +0 -1
  342. package/_standalone/.next/static/chunks/app/api/mcp/restart/route-e240db6d5049d336.js +0 -1
  343. package/_standalone/.next/static/chunks/app/api/mcp/status/route-e240db6d5049d336.js +0 -1
  344. package/_standalone/.next/static/chunks/app/api/mcp/uninstall/route-e240db6d5049d336.js +0 -1
  345. package/_standalone/.next/static/chunks/app/api/monitoring/route-e240db6d5049d336.js +0 -1
  346. package/_standalone/.next/static/chunks/app/api/recent-files/route-e240db6d5049d336.js +0 -1
  347. package/_standalone/.next/static/chunks/app/api/restart/route-e240db6d5049d336.js +0 -1
  348. package/_standalone/.next/static/chunks/app/api/search/route-e240db6d5049d336.js +0 -1
  349. package/_standalone/.next/static/chunks/app/api/settings/list-models/route-e240db6d5049d336.js +0 -1
  350. package/_standalone/.next/static/chunks/app/api/settings/reset-token/route-e240db6d5049d336.js +0 -1
  351. package/_standalone/.next/static/chunks/app/api/settings/route-e240db6d5049d336.js +0 -1
  352. package/_standalone/.next/static/chunks/app/api/settings/test-key/route-e240db6d5049d336.js +0 -1
  353. package/_standalone/.next/static/chunks/app/api/setup/check-path/route-e240db6d5049d336.js +0 -1
  354. package/_standalone/.next/static/chunks/app/api/setup/check-port/route-e240db6d5049d336.js +0 -1
  355. package/_standalone/.next/static/chunks/app/api/setup/generate-token/route-e240db6d5049d336.js +0 -1
  356. package/_standalone/.next/static/chunks/app/api/setup/ls/route-e240db6d5049d336.js +0 -1
  357. package/_standalone/.next/static/chunks/app/api/setup/route-e240db6d5049d336.js +0 -1
  358. package/_standalone/.next/static/chunks/app/api/skills/route-e240db6d5049d336.js +0 -1
  359. package/_standalone/.next/static/chunks/app/api/sync/route-e240db6d5049d336.js +0 -1
  360. package/_standalone/.next/static/chunks/app/api/tree-version/route-e240db6d5049d336.js +0 -1
  361. package/_standalone/.next/static/chunks/app/api/uninstall/route-e240db6d5049d336.js +0 -1
  362. package/_standalone/.next/static/chunks/app/api/update/route-e240db6d5049d336.js +0 -1
  363. package/_standalone/.next/static/chunks/app/api/update-check/route-e240db6d5049d336.js +0 -1
  364. package/_standalone/.next/static/chunks/app/api/update-status/route-e240db6d5049d336.js +0 -1
  365. package/_standalone/.next/static/chunks/app/api/workflows/route-e240db6d5049d336.js +0 -1
  366. package/_standalone/.next/static/chunks/app/echo/page-e240db6d5049d336.js +0 -1
  367. package/_standalone/.next/static/chunks/app/loading-e240db6d5049d336.js +0 -1
  368. package/_standalone/.next/static/chunks/app/trash/page-ba3802cf675d029a.js +0 -1
  369. package/_standalone/.next/static/chunks/app/view/[...path]/loading-e240db6d5049d336.js +0 -1
  370. package/_standalone/.next/static/chunks/app/view/[...path]/page-35da7f9f5a009292.js +0 -12
  371. package/_standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-e240db6d5049d336.js +0 -1
  372. package/_standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-e240db6d5049d336.js +0 -1
  373. package/_standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-e240db6d5049d336.js +0 -1
  374. package/_standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-e240db6d5049d336.js +0 -1
  375. package/_standalone/.next/static/chunks/webpack-73c9da80c6c1ebfe.js +0 -1
  376. package/_standalone/.next/static/css/66f8a81e4eda06d4.css +0 -1
  377. /package/_standalone/.next/static/{QXZErVsiRQxfqUnWMUsH6 → zOaEtgJbdRMncnCBucULp}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2114],{74009:(e,t,s)=>{Promise.resolve().then(s.bind(s,96485))},96485:(e,t,s)=>{"use strict";s.d(t,{default:()=>_});var r=s(95155),n=s(98500),a=s.n(n),l=s(12115),i=s(80723),o=s(49387),d=s(68459),c=s(15573),u=s(53961),m=s(61878),x=s(92451),p=s(73035),g=s(84755),f=s(93219),h=s(6296),b=s(52905),v=s(44478),j=s(439),N=s(84980),y=s(3926),k=s(93631),w=s(10762),S=s(97810),A=s(12651),C=s(13545),M=s(66088),z=s(91053),R=s(4235),T=s(91337),F=s(70617),E=s(2857),P=s(22356),O=s(7834),$=s(13845),D=s(3590),L=s(39498),I=s(85641),U=s(90777);function _({agentKey:e}){let{t}=(0,z.Y)(),s=t.agentsContent,n=t.panels.agents,f=(0,F.kr)(),h=(0,E.V)(),b=(0,l.useMemo)(()=>f.agents.find(t=>t.key===e),[f.agents,e]),[v,j]=(0,l.useState)(""),[N,y]=(0,l.useState)("all"),[k,w]=(0,l.useState)(null),[S,A]=(0,l.useState)(null),[C,M]=(0,l.useState)(""),[T,_]=(0,l.useState)(null),[Y,W]=(0,l.useState)(!1),[G,Q]=(0,l.useState)(!1),[X,Z]=(0,l.useState)(null),[ee,et]=(0,l.useState)(null),[es,er]=(0,l.useState)(null),[en,ea]=(0,l.useState)(null),[el,ei]=(0,l.useState)(null),[eo,ed]=(0,l.useState)(null),[ec,eu]=(0,l.useState)(!1),[em,ex]=(0,l.useState)(!1),ep=(0,l.useCallback)(async()=>{if(b?.isCustom)try{let e=await fetch("/api/agents/custom",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:b.key})});if(e.ok)R.oR.success(s.overview.customAgentRemoved(b.name)),f.refresh(),window.location.href="/agents";else{let t=await e.json();R.oR.error(t.error||s.overview.customAgentFailedRemove)}}catch{R.oR.error(s.overview.customAgentNetworkError)}finally{ex(!1)}},[b,s.overview,f]),eg=(0,l.useMemo)(()=>(0,D.qC)(f.skills,{query:v,source:N}),[f.skills,v,N]),ef=(0,l.useMemo)(()=>({total:f.skills.length,enabled:f.skills.filter(e=>e.enabled).length,builtin:f.skills.filter(e=>"builtin"===e.source).length,user:f.skills.filter(e=>"user"===e.source).length}),[f.skills]),eh=(0,l.useMemo)(()=>{let e=(0,D.HL)(f.agents),t=new Map;for(let s of e)t.set(s.serverName,s.agents);return t},[f.agents]),eb=(0,l.useMemo)(()=>{let e=(0,D.x3)(f.agents),t=new Map;for(let s of e)t.set(s.skillName,s.agents);return t},[f.agents]),ev="mindos"===e,ej=b?(0,D.yv)(b):"notFound",eN=b?.scope==="project"?"project":"global",ey=b?.transport==="http"?"http":"stdio",ek=(0,l.useMemo)(()=>b?(0,$.$k)(b,f.status,ey):{snippet:"",path:""},[b,f.status,ey]),ew=(0,l.useMemo)(()=>new Set(f.skills.map(e=>e.name)),[f.skills]),eS=(0,l.useMemo)(()=>(b?.installedSkillNames??[]).filter(e=>!ew.has(e)),[b?.installedSkillNames,ew]),eA=b?.configuredMcpServers??[],eC=(0,l.useCallback)(async(e,t)=>{w(e),_(null);try{await f.toggleSkill(e,t),await f.refresh()}finally{w(null)}},[f]),eM=(0,l.useCallback)(async e=>{_(null),w(e);try{let t=await (0,P.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"read",name:e})});A(e),M(t.content)}catch(e){_(e instanceof Error?e.message:s.detail.skillReadFailed)}finally{w(null)}},[s.detail.skillReadFailed]),ez=(0,l.useCallback)(async()=>{if(S){W(!0),_(null);try{await (0,P.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update",name:S,content:C})}),A(null),M(""),window.dispatchEvent(new Event("mindos:skills-changed")),await f.refresh()}catch(e){_(e instanceof Error?e.message:s.detail.skillSaveFailed)}finally{W(!1)}}},[S,C,s.detail.skillSaveFailed,f]),eR=(0,l.useCallback)(async e=>{et(null),w(e);try{await (0,P.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",name:e})}),er(s.detail.skillDeleteSuccess),window.dispatchEvent(new Event("mindos:skills-changed")),await f.refresh()}catch{er(s.detail.skillDeleteFailed)}finally{w(null),setTimeout(()=>er(null),3e3)}},[s.detail.skillDeleteSuccess,s.detail.skillDeleteFailed,f]),eT=(0,l.useCallback)(async()=>{await (0,O.l)(ek.snippet)&&R.oR.copy()},[ek.snippet]),eF=(0,l.useCallback)(async(e,t)=>{if(b){Q(!0),Z(s.detail.mcpApplying);try{let r=await f.installAgent(b.key,{scope:e,transport:t});await f.refresh(),Z(r?s.detail.mcpApplySuccess:s.detail.mcpApplyFailed)}finally{Q(!1)}}},[s.detail.mcpApplying,s.detail.mcpApplySuccess,s.detail.mcpApplyFailed,f,b]),eE=(0,l.useCallback)(async e=>{await (0,P.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",name:e})}),window.dispatchEvent(new Event("mindos:skills-changed")),await f.refresh()},[f]),eP=(0,l.useCallback)(()=>{ea(null),ei(s.detail.mcpServerHint),setTimeout(()=>ei(null),4e3)},[s.detail.mcpServerHint]);if(!b){let t=f.agents.filter(t=>t.key!==e&&"connected"===(0,D.yv)(t)).slice(0,3);return(0,r.jsxs)("div",{className:"content-width px-4 md:px-6 py-8 md:py-10",children:[(0,r.jsxs)(a(),{href:"/agents",className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground mb-4",children:[(0,r.jsx)(i.A,{size:14}),s.backToOverview]}),(0,r.jsxs)("div",{className:"rounded-lg border border-border bg-card p-6 space-y-4",children:[(0,r.jsx)("p",{className:"text-sm text-foreground font-medium",children:s.detailNotFound}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:s.detailNotFoundHint}),t.length>0&&(0,r.jsxs)("div",{className:"pt-2 border-t border-border",children:[(0,r.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:s.detailNotFoundSuggestion}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map(e=>(0,r.jsx)(a(),{href:`/agents/${encodeURIComponent(e.key)}`,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium bg-muted text-foreground hover:bg-muted/80 transition-colors",children:e.name},e.key))})]})]})]})}return(0,r.jsxs)("div",{className:"content-width px-4 md:px-6 py-8 md:py-10 space-y-4",children:[(0,r.jsxs)(a(),{href:"/agents",className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground",children:[(0,r.jsx)(i.A,{size:14}),s.backToOverview]}),(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3.5 px-5 py-4",children:[(0,r.jsx)(L.lx,{name:b.name,status:ej,size:"md"}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("h1",{className:"text-lg font-semibold tracking-tight text-foreground truncate",children:b.name}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5 mt-0.5 text-2xs text-muted-foreground/60",children:[(0,r.jsx)("span",{className:`font-medium px-1.5 py-px rounded-full ${"connected"===ej?"bg-muted text-muted-foreground":"detected"===ej?"bg-[var(--amber-subtle)] text-[var(--amber-text)]":"bg-error/10 text-error"}`,children:ej}),(0,r.jsx)("span",{className:"font-mono",children:b.transport??b.preferredTransport}),(0,r.jsx)("span",{className:"text-muted-foreground/25","aria-hidden":"true",children:"\xb7"}),(0,r.jsx)("span",{children:b.skillMode??s.na})]})]}),b.isCustom&&(0,r.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,r.jsx)("button",{type:"button",onClick:()=>eu(!0),className:"w-8 h-8 rounded-lg flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted transition-colors duration-150 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":s.overview.customAgentEdit,title:s.overview.customAgentEdit,children:(0,r.jsx)(o.A,{size:14})}),(0,r.jsx)("button",{type:"button",onClick:()=>ex(!0),className:"w-8 h-8 rounded-lg flex items-center justify-center text-muted-foreground hover:text-destructive hover:bg-destructive/10 transition-colors duration-150 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":s.overview.customAgentRemove,title:s.overview.customAgentRemove,children:(0,r.jsx)(d.A,{size:14})})]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-2xs text-muted-foreground/50 px-5 py-2 border-t border-border/40",children:[(0,r.jsxs)("span",{children:[b.format," ",(0,r.jsx)("span",{className:"text-muted-foreground/30",children:"\xb7"})," ",V(b.runtimeLastActivityAt)]}),(0,r.jsxs)("span",{className:"tabular-nums",children:[eA.length," MCP ",(0,r.jsx)("span",{className:"text-muted-foreground/30",children:"\xb7"})," ",eS.length," skills"]})]})]}),(0,r.jsx)(q,{}),(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-card p-4 space-y-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,r.jsxs)("h2",{className:"text-xs font-semibold text-foreground flex items-center gap-2 shrink-0",children:[(0,r.jsx)(c.A,{size:12,className:"text-muted-foreground/50"}),s.detail.mcpManagement]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[!ev&&(0,r.jsx)(L.rA,{onClick:()=>void eT(),disabled:!1,busy:!1,label:s.detail.mcpCopySnippet}),(0,r.jsx)(L.rA,{onClick:()=>void f.refresh(),disabled:!1,busy:!1,label:s.detail.mcpRefresh}),!ev&&(0,r.jsx)(L.rA,{onClick:()=>void eF(eN,ey),disabled:G,busy:G,label:s.detail.mcpReconnect})]})]}),X&&(0,r.jsx)("p",{className:"text-2xs text-muted-foreground animate-in fade-in duration-200",children:X}),(0,r.jsx)("div",{className:"flex flex-wrap gap-x-6 gap-y-1 py-2 border-y border-border/30",children:ev?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(H,{label:"Status",value:f.status?.running?"Running":"Stopped"}),(0,r.jsx)(H,{label:"Endpoint",value:f.status?.endpoint??s.na}),(0,r.jsx)(H,{label:"Tools",value:f.status?.toolCount!=null?String(f.status.toolCount):s.na})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(H,{label:s.detail.mcpInstalled,value:b.installed?s.detail.yes:s.detail.no}),(0,r.jsx)(H,{label:s.detail.mcpScope,value:b.scope??s.na}),(0,r.jsx)(H,{label:s.detail.mcpConfigPath,value:b.configPath??s.na})]})}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("p",{className:"text-2xs font-medium text-muted-foreground/60 uppercase tracking-wider",children:s.detail.configuredMcpServers}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/40 tabular-nums",children:eA.length})]}),el&&(0,r.jsx)("div",{role:"status","aria-live":"polite",className:"rounded-md border border-border bg-muted/50 px-3 py-2 text-xs text-muted-foreground animate-in fade-in duration-200",children:el}),0===eA.length?(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50",children:s.detail.configuredMcpServersEmpty}):(0,r.jsx)("div",{className:"space-y-1 max-h-[240px] overflow-y-auto",children:eA.map(e=>{let t=(eh.get(e)??[]).filter(e=>e!==b.name);return(0,r.jsxs)("div",{className:"flex items-center gap-2 rounded-md px-2 py-1.5 group/mcp hover:bg-muted/30 transition-colors duration-100",children:[(0,r.jsx)(c.A,{size:11,className:"text-muted-foreground/40 shrink-0"}),(0,r.jsx)("span",{className:"text-xs text-foreground flex-1 min-w-0 truncate",children:e}),t.length>0&&(0,r.jsxs)("div",{className:"flex items-center gap-0.5",children:[t.slice(0,3).map(e=>(0,r.jsx)(L.lx,{name:e,size:"sm"},e)),t.length>3&&(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground/50",children:["+",t.length-3]})]}),(0,r.jsx)("button",{type:"button",onClick:()=>ea(e),className:"text-muted-foreground/40 hover:text-destructive cursor-pointer opacity-0 group-hover/mcp:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded p-0.5 transition-all duration-150","aria-label":`${s.detail.mcpServerRemove} ${e}`,children:(0,r.jsx)(d.A,{size:11})})]},e)})})]})]}),(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-card p-4 space-y-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,r.jsxs)("h2",{className:"text-xs font-semibold text-foreground flex items-center gap-2 shrink-0",children:[(0,r.jsx)(u.A,{size:12,className:"text-muted-foreground/50"}),s.detail.skillAssignments]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 text-2xs text-muted-foreground/50 tabular-nums",children:[(0,r.jsxs)("span",{children:[ef.enabled,"/",ef.total," enabled"]}),(0,r.jsx)("span",{className:"text-muted-foreground/25",children:"\xb7"}),(0,r.jsxs)("span",{children:[eS.length," native"]})]})]}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row gap-2",children:[(0,r.jsxs)("label",{className:"relative flex-1",children:[(0,r.jsx)(m.A,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none"}),(0,r.jsx)("input",{value:v,onChange:e=>j(e.target.value),placeholder:s.detail.skillsSearchPlaceholder,className:"w-full h-9 rounded-md border border-border bg-background pl-8 pr-3 text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring transition-colors duration-150"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,r.jsx)(L.KF,{active:"all"===N,label:s.detail.skillsFilterAll,onClick:()=>y("all")}),(0,r.jsx)(L.KF,{active:"builtin"===N,label:s.detail.skillsFilterBuiltin,onClick:()=>y("builtin")}),(0,r.jsx)(L.KF,{active:"user"===N,label:s.detail.skillsFilterUser,onClick:()=>y("user")})]})]}),es&&(0,r.jsx)("div",{role:"status","aria-live":"polite",className:"rounded-md border border-border bg-muted/50 px-3 py-2 text-xs text-muted-foreground animate-in fade-in duration-200",children:es}),eg.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider mb-1.5",children:["MindOS Skills ",(0,r.jsxs)("span",{className:"tabular-nums",children:["(",eg.filter(e=>e.enabled).length,"/",eg.length,")"]})]}),(0,r.jsx)("ul",{className:"space-y-0.5",children:eg.map(e=>{let t=S===e.name;return(0,r.jsxs)("li",{className:"rounded-md hover:bg-muted/30 transition-colors duration-100",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 py-1.5 px-1.5 group/skill",children:[(0,r.jsx)(u.A,{size:13,className:`shrink-0 ${e.enabled?"text-[var(--amber)]":"text-muted-foreground/50"}`,"aria-hidden":"true"}),(0,r.jsx)("button",{type:"button",onClick:()=>ed(e.name),className:"text-xs text-foreground flex-1 min-w-0 truncate hover:text-[var(--amber)] cursor-pointer transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded text-left",children:e.name}),(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${"builtin"===e.source?"bg-muted text-muted-foreground":"bg-[var(--amber-dim)] text-[var(--amber-text)]"}`,children:"builtin"===e.source?s.detail.skillsSourceBuiltin:s.detail.skillsSourceUser}),(0,r.jsxs)("div",{className:"flex items-center gap-1 shrink-0 md:opacity-0 md:group-hover/skill:opacity-100 md:focus-within:opacity-100 transition-opacity duration-150",children:[(0,r.jsx)(L.rA,{onClick:()=>void eC(e.name,!e.enabled),disabled:k===e.name,busy:k===e.name,label:e.enabled?s.detail.skillDisable:s.detail.skillEnable}),e.editable&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(L.rA,{onClick:()=>void eM(e.name),disabled:k===e.name||Y,busy:!1,label:s.detail.skillEdit}),(0,r.jsx)("button",{type:"button",onClick:()=>et(e.name),disabled:k===e.name,className:"inline-flex items-center justify-center min-h-[28px] px-1.5 rounded-md text-muted-foreground hover:text-destructive cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50 disabled:cursor-not-allowed transition-colors duration-150","aria-label":`${s.detail.skillDelete} ${e.name}`,children:(0,r.jsx)(d.A,{size:13})})]})]})]}),t&&(0,r.jsxs)("div",{className:"px-3 pb-3 pt-0 space-y-2",children:[(0,r.jsx)("textarea",{value:C,onChange:e=>M(e.target.value),className:"mt-2 w-full h-40 rounded-md border border-border bg-background px-3 py-2 text-xs font-mono text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring resize-y"}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(L.rA,{onClick:()=>void ez(),disabled:Y,busy:Y,label:s.detail.skillSave,variant:"primary"}),(0,r.jsx)(L.rA,{onClick:()=>A(null),disabled:!1,busy:!1,label:s.detail.skillCancel})]})]})]},e.name)})})]}),0===eg.length&&0===eS.length&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:s.detail.noSkills}),eS.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider mb-1.5",children:[s.detail.nativeInstalledSkills," ",(0,r.jsxs)("span",{className:"tabular-nums",children:["(",eS.length,")"]})]}),(0,r.jsx)("div",{className:"space-y-0.5 max-h-[280px] overflow-y-auto",children:eS.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>ed(e),className:"w-full flex items-center gap-2 py-1.5 px-1.5 rounded-md hover:bg-muted/30 transition-colors duration-100 cursor-pointer text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(u.A,{size:13,className:"shrink-0 text-muted-foreground/50","aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-xs text-foreground flex-1 min-w-0 truncate hover:text-[var(--amber)] transition-colors duration-150",children:e})]},e))})]}),T&&(0,r.jsx)("p",{className:"text-xs text-error",children:T})]}),(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-card p-4 space-y-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,r.jsxs)("h2",{className:"text-xs font-semibold text-foreground flex items-center gap-2 shrink-0",children:[(0,r.jsx)(x.A,{size:12,className:"text-muted-foreground/50"}),n.a2aCapabilities]}),(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 ${"connected"===ej?"bg-[var(--success)]/15 text-[var(--success)]":"bg-muted text-muted-foreground/60"}`,children:"connected"===ej?n.a2aConnected:n.a2aUnavailable})]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-x-6 gap-y-1 py-2 border-y border-border/30",children:[(0,r.jsx)(H,{label:n.a2aStatus,value:"connected"===ej?n.a2aConnected:n.a2aUnavailable}),(0,r.jsx)(H,{label:s.detail.transport,value:b.transport??b.preferredTransport}),h.agents.length>0&&(0,r.jsx)(H,{label:"Remote agents",value:String(h.agents.length)})]}),h.agents.length>0?(0,r.jsx)("div",{className:"space-y-1",children:h.agents.map(e=>(0,r.jsxs)("div",{className:"flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/30 transition-colors duration-100",children:[(0,r.jsx)("div",{className:"w-6 h-6 rounded-md bg-muted/40 flex items-center justify-center shrink-0",children:(0,r.jsx)(x.A,{size:11,className:"text-muted-foreground/60"})}),(0,r.jsx)("span",{className:"text-xs text-foreground flex-1 min-w-0 truncate",children:e.card.name}),e.reachable?(0,r.jsx)(p.A,{size:11,className:"text-[var(--success)] shrink-0"}):(0,r.jsx)(g.A,{size:11,className:"text-muted-foreground/50 shrink-0"}),(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground/50 tabular-nums shrink-0",children:[e.card.skills.length," skills"]})]},e.id))}):(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50",children:n.a2aNoRemoteHint})]}),(0,r.jsx)(J,{agent:b,status:ej,isMindOS:ev,mcpStatus:f.status}),(0,r.jsx)(K,{agent:b,isMindOS:ev}),(0,r.jsx)(B,{agent:b}),(0,r.jsx)(L.TM,{open:null!==ee,title:s.detail.skillDelete,message:ee?s.detail.skillDeleteConfirm(ee):"",confirmLabel:s.detail.skillDelete,cancelLabel:s.detail.skillCancel,onConfirm:()=>ee&&void eR(ee),onCancel:()=>et(null),variant:"destructive"}),(0,r.jsx)(L.TM,{open:null!==en,title:s.detail.mcpServerRemove,message:en?s.detail.mcpServerRemoveConfirm(en):"",confirmLabel:s.detail.mcpServerRemove,cancelLabel:s.detail.skillCancel,onConfirm:eP,onCancel:()=>ea(null),variant:"destructive"}),(0,r.jsx)(I.A,{open:null!==eo,skillName:eo,skill:eo?f.skills.find(e=>e.name===eo)??null:null,agentNames:eo?eb.get(eo)??[]:[],isNative:!!eo&&!f.skills.some(e=>e.name===eo),nativeSourcePath:b?.installedSkillSourcePath,copy:s.skills.skillPopover,onClose:()=>ed(null),onToggle:f.toggleSkill,onDelete:eE,onRefresh:f.refresh}),b?.isCustom&&(0,r.jsx)(U.A,{open:ec,onClose:()=>eu(!1),onSuccess:()=>{f.refresh(),eu(!1)},existingAgents:f.agents,editAgent:b}),(0,r.jsx)(L.TM,{open:em,title:b?s.overview.customAgentRemoveTitle(b.name):"",message:s.overview.customAgentRemoveMessage,confirmLabel:s.overview.customAgentRemoveConfirm,cancelLabel:s.detail.skillCancel,onConfirm:ep,onCancel:()=>ex(!1),variant:"destructive"})]})}function H({label:e,value:t}){return(0,r.jsxs)("div",{className:"flex items-baseline gap-2 px-0.5 min-w-0",children:[(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/50 uppercase tracking-wider shrink-0 min-w-[60px]",children:e}),(0,r.jsx)("span",{className:"text-xs text-foreground/80 font-mono truncate min-w-0",children:t})]})}function V(e){if(!e)return"—";try{let t=Date.now()-new Date(e).getTime();if(t<0)return"just now";let s=Math.floor(t/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;let r=Math.floor(s/60);if(r<24)return`${r}h ago`;let n=Math.floor(r/24);return`${n}d ago`}catch{return e}}function J({agent:e,status:t,isMindOS:s,mcpStatus:n}){let{t:a}=(0,z.Y)(),i=a.agentsContent.detail,[o,d]=(0,l.useState)("idle"),[c,u]=(0,l.useState)(0),m=(0,l.useCallback)(async()=>{d("pinging");let e=performance.now();try{let t=await fetch("/api/mcp/status",{method:"GET",signal:AbortSignal.timeout(5e3)}),s=Math.round(performance.now()-e);u(s),d(t.ok?"ok":"fail")}catch{d("fail")}},[]);return(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-card p-4 space-y-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,r.jsxs)("h2",{className:"text-xs font-semibold text-foreground flex items-center gap-2 shrink-0",children:[(0,r.jsx)(f.A,{size:12,className:"text-muted-foreground/50"}),i.runtimeDiagTitle]}),(0,r.jsx)("button",{type:"button",onClick:()=>void m(),disabled:"pinging"===o,className:"inline-flex items-center gap-1 px-2.5 py-1 text-2xs font-medium rounded-md border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:"pinging"===o?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.A,{size:10,className:"animate-spin"})," ",i.runtimePinging]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.A,{size:10})," ",i.runtimePing]})})]}),"ok"===o&&(0,r.jsx)("div",{role:"status",className:"rounded-md bg-[var(--success)]/10 border border-[var(--success)]/20 px-3 py-1.5 text-2xs text-[var(--success)] font-medium animate-in fade-in duration-200",children:i.runtimePingOk(c)}),"fail"===o&&(0,r.jsx)("div",{role:"status",className:"rounded-md bg-error/10 border border-error/20 px-3 py-1.5 text-2xs text-error font-medium animate-in fade-in duration-200",children:i.runtimePingFail}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-x-6 gap-y-1 py-2 border-y border-border/30",children:[(0,r.jsx)(H,{label:i.status,value:t}),(0,r.jsx)(H,{label:i.transport,value:e.transport??e.preferredTransport}),s&&n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(H,{label:i.runtimeVersion,value:n.endpoint}),(0,r.jsx)(H,{label:i.port,value:String(n.port)})]}),(0,r.jsx)(H,{label:i.lastActivityAt,value:V(e.runtimeLastActivityAt)}),void 0!==e.runtimeConversationSignal&&(0,r.jsx)(H,{label:i.conversationSignal,value:e.runtimeConversationSignal?"Active":"Inactive"}),void 0!==e.runtimeUsageSignal&&(0,r.jsx)(H,{label:i.usageSignal,value:e.runtimeUsageSignal?"Active":"Inactive"})]}),!e.runtimeLastActivityAt&&"idle"===o&&(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50",children:i.runtimeNoData})]})}function K({agent:e,isMindOS:t}){let{t:s}=(0,z.Y)(),n=s.agentsContent.detail,a=e.scope??(e.hasProjectScope?"project":e.hasGlobalScope?"global":"—");e.hiddenRootPresent;let l=[{label:n.envFileAccess,allowed:!0},{label:n.envNetworkAccess,allowed:"http"===e.transport||t},{label:n.envWriteAccess,allowed:!0},{label:n.envReadOnly,allowed:!1}];return(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-card p-4 space-y-3",children:[(0,r.jsxs)("h2",{className:"text-xs font-semibold text-foreground flex items-center gap-2 shrink-0",children:[(0,r.jsx)(b.A,{size:12,className:"text-muted-foreground/50"}),n.envPermTitle]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-x-6 gap-y-1 py-2 border-y border-border/30",children:[(0,r.jsx)(H,{label:n.envScope,value:a}),(0,r.jsx)(H,{label:n.format,value:e.format}),e.hiddenRootPath&&(0,r.jsx)(H,{label:n.hiddenRoot,value:e.hiddenRootPath}),(0,r.jsx)(H,{label:n.skillMode,value:e.skillMode??"—"})]}),(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("p",{className:"text-2xs font-medium text-muted-foreground/60 uppercase tracking-wider mb-1.5",children:n.envVars}),e.configuredMcpServers&&e.configuredMcpServers.length>0?(0,r.jsx)("p",{className:"text-2xs text-muted-foreground",children:n.envVarsCount(e.configuredMcpServers.length)}):(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50",children:n.envVarsEmpty})]}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsx)("p",{className:"text-2xs font-medium text-muted-foreground/60 uppercase tracking-wider",children:"Permissions"}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-1.5",children:l.map(({label:e,allowed:t})=>(0,r.jsxs)("div",{className:"flex items-center gap-1.5 rounded-md px-2 py-1.5 bg-muted/20",children:[t?(0,r.jsx)(v.A,{size:12,className:"text-[var(--success)] shrink-0"}):(0,r.jsx)(j.A,{size:12,className:"text-muted-foreground/40 shrink-0"}),(0,r.jsx)("span",{className:"text-2xs text-foreground/80",children:e}),(0,r.jsx)("span",{className:`ml-auto text-2xs font-medium ${t?"text-[var(--success)]":"text-muted-foreground/50"}`,children:t?n.envAllowed:n.envRestricted})]},e))})]})]})}function Y(e){return/search/.test(e)?"search":/read|list|get/.test(e)?"read":/create|batch_create/.test(e)?"create":/delete/.test(e)?"delete":/write|update|insert|append|edit|rename|move/.test(e)?"write":"other"}let W={read:{icon:N.A,color:"text-blue-400"},write:{icon:y.A,color:"text-[var(--amber)]"},create:{icon:k.A,color:"text-[var(--success)]"},delete:{icon:d.A,color:"text-[var(--error)]"},search:{icon:m.A,color:"text-purple-400"},other:{icon:w.A,color:"text-muted-foreground"}};function q(){let{t:e}=(0,z.Y)(),t=e.agentsContent?.detail,[s,n]=(0,l.useState)([]),[i,o]=(0,l.useState)(!0),[d,c]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=!1,t=()=>{fetch("/api/agent-activity?limit=50").then(e=>e.json()).then(t=>{e||n(t.events??[])}).catch(()=>{}).finally(()=>{e||o(!1)})};t();let s=()=>{"visible"===document.visibilityState&&t()};return document.addEventListener("visibilitychange",s),()=>{e=!0,document.removeEventListener("visibilitychange",s)}},[]);let u=(0,l.useMemo)(()=>{if(0===s.length)return null;let e=s.filter(e=>"read"===Y(e.tool)).length,t=s.filter(e=>["write","create","delete"].includes(Y(e.tool))).length,r=s.filter(e=>"error"===e.result).length,n=s.filter(e=>"number"==typeof e.durationMs).map(e=>e.durationMs),a=n.length>0?Math.round(n.reduce((e,t)=>e+t,0)/n.length):null,l=new Set;for(let e of s){let t=e.params.path;"string"==typeof t&&l.add(t)}let i=s.length>0?Math.round(r/s.length*100):0;return{total:s.length,reads:e,writes:t,errors:r,errorRate:i,avgMs:a,filesCount:l.size}},[s]),m=(0,l.useMemo)(()=>{let e=s.filter(e=>{let t=Y(e.tool);return"write"===t||"create"===t||"delete"===t});return e.length>=3?e:s},[s]),x=d?m:m.slice(0,5),p=m.length-5;return i?(0,r.jsx)("section",{className:"rounded-xl border border-border bg-card p-4",children:(0,r.jsx)("div",{className:"flex justify-center py-6",children:(0,r.jsx)(h.A,{size:16,className:"animate-spin text-muted-foreground"})})}):0===s.length?(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-card p-4 space-y-3",children:[(0,r.jsxs)("h2",{className:"text-xs font-semibold text-foreground flex items-center gap-2 shrink-0",children:[(0,r.jsx)(S.A,{size:12,className:"text-muted-foreground/50"}),t?.knowledgeInteraction??"Knowledge Interaction"]}),(0,r.jsxs)("div",{className:"rounded-lg border border-border/40 bg-card/30 px-4 py-6 text-center",children:[(0,r.jsx)(S.A,{size:20,className:"text-muted-foreground/30 mx-auto mb-2"}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50",children:t?.knowledgeNoData??"No interactions yet. Agents will show activity here once they start working with your knowledge base."})]})]}):(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-4 pt-4 pb-2",children:[(0,r.jsxs)("h2",{className:"text-xs font-semibold text-foreground flex items-center gap-2 shrink-0",children:[(0,r.jsx)(S.A,{size:12,className:"text-muted-foreground/50"}),t?.knowledgeInteraction??"Knowledge Interaction"]}),(0,r.jsxs)(a(),{href:`/view/${(0,T.O0)(".mindos/agent-audit-log.json")}`,className:"text-2xs font-medium text-[var(--amber)] hover:opacity-80 transition-opacity",children:[t?.viewFullLog??"View log"," →"]})]}),u&&(0,r.jsxs)("div",{className:"flex items-center gap-px mx-4 mb-3 rounded-lg overflow-hidden border border-border/40",children:[(0,r.jsxs)("div",{className:"flex-1 px-3 py-2 bg-muted/20",children:[(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50 leading-none mb-1",children:t?.statTotalCalls??"Calls"}),(0,r.jsx)("p",{className:"text-sm font-semibold text-foreground font-mono tabular-nums leading-none",children:u.total})]}),(0,r.jsxs)("div",{className:"flex-1 px-3 py-2 bg-muted/20 border-l border-border/30",children:[(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50 leading-none mb-1",children:t?.statFilesTouched??"Files"}),(0,r.jsx)("p",{className:"text-sm font-semibold text-foreground font-mono tabular-nums leading-none",children:u.filesCount})]}),(0,r.jsxs)("div",{className:"flex-1 px-3 py-2 bg-muted/20 border-l border-border/30",children:[(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50 leading-none mb-1",children:t?.statReadWrite??"R / W"}),(0,r.jsxs)("p",{className:"text-sm font-semibold text-foreground font-mono tabular-nums leading-none",children:[(0,r.jsx)("span",{className:"text-blue-400",children:u.reads}),(0,r.jsx)("span",{className:"text-muted-foreground/30 mx-0.5",children:"/"}),(0,r.jsx)("span",{className:"text-[var(--amber)]",children:u.writes})]})]}),(0,r.jsxs)("div",{className:"flex-1 px-3 py-2 bg-muted/20 border-l border-border/30",children:[(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50 leading-none mb-1",children:t?.statHealth??"Health"}),(0,r.jsx)("p",{className:"text-sm font-semibold font-mono tabular-nums leading-none",children:u.errors>0?(0,r.jsxs)("span",{className:"text-[var(--error)]",children:[u.errorRate,"% err"]}):(0,r.jsx)("span",{className:"text-[var(--success)]",children:"100%"})})]})]}),(0,r.jsxs)("div",{className:"border-t border-border/40",children:[(0,r.jsx)("div",{className:"px-4 py-2 flex items-center justify-between",children:(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/40 uppercase tracking-wider",children:t?.recentOps??"Recent operations"})}),x.map((e,t)=>{let{icon:s,color:n}=W[Y(e.tool)],l="string"==typeof e.params.path?e.params.path:null,i=e.tool.replace(/^mindos_/,"");return(0,r.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2 border-t border-border/20 hover:bg-muted/20 transition-colors",children:[(0,r.jsx)("div",{className:"w-5 h-5 rounded-md bg-muted/40 flex items-center justify-center shrink-0",children:(0,r.jsx)(s,{size:11,className:n})}),(0,r.jsx)("span",{className:"text-xs font-medium text-foreground/80 font-mono shrink-0 min-w-[90px]",children:i}),l?(0,r.jsx)(a(),{href:`/view/${(0,T.O0)(l)}`,className:"text-xs text-muted-foreground hover:text-[var(--amber)] truncate min-w-0 flex-1 font-mono transition-colors",title:l,children:l}):(0,r.jsx)("span",{className:"flex-1"}),"ok"===e.result?(0,r.jsx)(A.A,{size:10,className:"shrink-0 text-[var(--success)]/40"}):(0,r.jsx)(C.A,{size:10,className:"shrink-0 text-[var(--error)]/60"}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/30 tabular-nums shrink-0 font-mono w-[28px] text-right",title:e.ts,children:function(e){let t=Date.now()-new Date(e).getTime(),s=Math.floor(t/6e4);if(s<1)return"<1m";if(s<60)return`${s}m`;let r=Math.floor(t/36e5);return r<24?`${r}h`:`${Math.floor(t/864e5)}d`}(e.ts)})]},e.id??t)})]}),p>0&&(0,r.jsx)("div",{className:"px-4 py-2 border-t border-border/20",children:(0,r.jsxs)("button",{onClick:()=>c(e=>!e),className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] hover:opacity-80 transition-opacity cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded",children:[(0,r.jsx)(M.A,{size:12,className:`transition-transform duration-200 ${d?"rotate-180":""}`}),(0,r.jsx)("span",{children:d?t?.showLess??"Show less":`${p} more`})]})})]})}function B({agent:e}){let{t}=(0,z.Y)(),s=t.agentsContent.detail,n=!!e.runtimeLastActivityAt;return(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-card p-4 space-y-3",children:[(0,r.jsxs)("h2",{className:"text-xs font-semibold text-foreground flex items-center gap-2 shrink-0",children:[(0,r.jsx)(f.A,{size:12,className:"text-muted-foreground/50"}),s.activityTitle]}),n?(0,r.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:[(0,r.jsx)(G,{label:s.activityLastInvocation,value:V(e.runtimeLastActivityAt)}),(0,r.jsx)(G,{label:s.activityTotal,value:e.runtimeConversationSignal?"Active":"—"}),(0,r.jsx)(G,{label:s.activityLast7d,value:e.runtimeUsageSignal?"Active":"—"})]}):(0,r.jsxs)("div",{className:"rounded-lg border border-border/40 bg-card/30 px-4 py-6 text-center",children:[(0,r.jsx)(f.A,{size:20,className:"text-muted-foreground/30 mx-auto mb-2"}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50",children:s.activityNoData})]})]})}function G({label:e,value:t}){return(0,r.jsxs)("div",{className:"rounded-lg border border-border/40 bg-muted/10 px-3 py-2.5",children:[(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50 uppercase tracking-wider mb-0.5",children:e}),(0,r.jsx)("p",{className:"text-sm font-medium text-foreground font-mono tabular-nums",children:t})]})}}},e=>{e.O(0,[4237,8409,6878,1053,8252,6636,7249,8441,3794,7358],()=>e(e.s=74009)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7165],{2431:(e,t,s)=>{"use strict";s.d(t,{z:()=>a});var r=s(12115);let n="mindos:acp-detection";function a(){let e=(0,r.useRef)(function(){try{let e=sessionStorage.getItem(n);if(!e)return null;let t=JSON.parse(e);if("number"!=typeof t.ts||Date.now()-t.ts>18e5)return null;return t}catch{return null}}()),[t,s]=(0,r.useState)(e.current?.installed??[]),[a,l]=(0,r.useState)(e.current?.notInstalled??[]),[i,o]=(0,r.useState)(!e.current),[d,c]=(0,r.useState)(null),[u,m]=(0,r.useState)(0),x=(0,r.useRef)(!1),g=(0,r.useRef)(!1),p=(0,r.useCallback)(()=>{try{sessionStorage.removeItem(n)}catch{}e.current=null,g.current=!0,m(e=>e+1)},[]);return(0,r.useEffect)(()=>{let e=()=>p();return window.addEventListener("mindos:settings-changed",e),()=>window.removeEventListener("mindos:settings-changed",e)},[p]),(0,r.useEffect)(()=>{let r=g.current;if(g.current=!1,e.current&&Date.now()-e.current.ts<18e5&&0===u||x.current)return;x.current=!0;let i=t.length>0||a.length>0;i||o(!0),c(null);let d=!1;return fetch(`/api/acp/detect${r?"?force=1":""}`).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}).then(t=>{if(d)return;let r=t.installed??[],a=t.notInstalled??[];try{sessionStorage.setItem(n,JSON.stringify({installed:r,notInstalled:a,ts:Date.now()}))}catch{}e.current={installed:r,notInstalled:a,ts:Date.now()},s(r),l(a)}).catch(e=>{!d&&(i||c(e.message))}).finally(()=>{x.current=!1,d||o(!1)}),()=>{d=!0}},[u]),{installedAgents:t,notInstalledAgents:a,loading:i,error:d,refresh:p}}},6296:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(90425).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},6496:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});var r=s(95155),n=s(12115),a=s(98500),l=s.n(a),i=s(93219),o=s(21628),d=s(12651),c=s(13545),u=s(66088),m=s(91337),x=s(91053),g=s(42833);function p(){let{t:e,locale:t}=(0,x.Y)(),[s,a]=(0,n.useState)([]),[p,b]=(0,n.useState)(!0),[h,f]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=!1,t=()=>{fetch("/api/agent-activity?limit=20").then(e=>e.json()).then(t=>{e||a(t.events??[])}).catch(()=>{}).finally(()=>{e||b(!1)})};t();let s=()=>{"visible"===document.visibilityState&&t()};return document.addEventListener("visibilitychange",s),()=>{e=!0,document.removeEventListener("visibilitychange",s)}},[]);let v=(0,n.useMemo)(()=>{let e=s.filter(e=>{let t=(0,g.wT)(e.tool);return"write"===t||"create"===t||"delete"===t});return e.length>=3?e:s},[s]),j=h?v:v.slice(0,5),y=v.length-5;if(p)return(0,r.jsxs)("section",{className:"animate-pulse","aria-label":"Recent Activity",children:[(0,r.jsx)("div",{className:"h-4 w-36 bg-muted rounded mb-3"}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("div",{className:"h-10 bg-muted/50 rounded-lg"}),(0,r.jsx)("div",{className:"h-10 bg-muted/50 rounded-lg"})]})]});if(0===s.length)return null;let N=e.agentsContent?.overview;return(0,r.jsxs)("section",{"aria-label":"Recent Activity",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 mb-5",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded-md bg-[var(--amber-subtle)] text-[var(--amber)]",children:(0,r.jsx)(i.A,{size:13})}),(0,r.jsx)("h2",{className:"text-[13px] font-semibold text-foreground tracking-wide",children:N?.recentActivity??"Recent Activity"}),(0,r.jsx)("div",{className:"ml-auto",children:(0,r.jsxs)(l(),{href:"/agents?tab=activity",className:"flex items-center gap-1.5 text-xs font-medium text-[var(--amber)] hover:opacity-80 transition-colors",children:[(0,r.jsx)(o.A,{size:12}),(0,r.jsx)("span",{children:N?.viewAll??"View all"})]})})]}),(0,r.jsx)("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:j.map((e,s)=>{let n=(0,g.wT)(e.tool),a=(0,g.oK)(e.params);return(0,r.jsxs)("div",{className:`flex items-center gap-3 px-3.5 py-2.5 ${s>0?"border-t border-border/30":""} hover:bg-muted/30 transition-colors`,children:[(0,r.jsx)(g.g,{kind:n,locale:t,size:"sm"}),a?(0,r.jsx)(l(),{href:`/view/${(0,m.O0)(a)}`,className:"text-xs text-[var(--amber)]/80 hover:text-[var(--amber)] truncate min-w-0 flex-1 font-display transition-colors",title:a,children:a}):(0,r.jsx)("span",{className:"flex-1"}),e.agentName&&(0,r.jsx)("span",{className:"text-[0.6rem] font-medium text-muted-foreground/70 bg-muted/60 px-1.5 py-0.5 rounded-full shrink-0",title:e.agentName,children:e.agentName.length>20?e.agentName.slice(0,20)+"...":e.agentName}),"ok"===e.result?(0,r.jsx)(d.A,{size:11,className:"shrink-0 text-[var(--success)]/60"}):(0,r.jsx)(c.A,{size:11,className:"shrink-0 text-[var(--error)]/60"}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/40 tabular-nums shrink-0",title:e.ts,children:(0,g.MZ)(e.ts)})]},e.id??s)})}),y>0&&(0,r.jsxs)("button",{onClick:()=>f(e=>!e),className:"flex items-center gap-1.5 mt-2 text-xs font-medium text-[var(--amber)] hover:opacity-80 transition-opacity cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded",children:[(0,r.jsx)(u.A,{size:12,className:`transition-transform duration-200 ${h?"rotate-180":""}`}),(0,r.jsx)("span",{children:h?N?.showLess??"Show less":`${y} more`})]})]})}},12651:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(90425).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},27318:(e,t,s)=>{"use strict";s.d(t,{KT:()=>c,NH:()=>d});var r=s(12115);let n={open:!1,initialMessage:"",source:"user",acpAgent:null},a=new Set;function l(){a.forEach(e=>e())}function i(e){return a.add(e),()=>{a.delete(e)}}function o(){return n}function d(e="",t="user",s=null){n={open:!0,initialMessage:e,source:t,acpAgent:s},l()}function c(){let e=(0,r.useSyncExternalStore)(i,o,o);return{open:e.open,initialMessage:e.initialMessage,source:e.source,acpAgent:e.acpAgent,openWith:(0,r.useCallback)((e,t="user",s=null)=>d(e,t,s),[]),close:(0,r.useCallback)(()=>void(n={open:!1,initialMessage:"",source:"user",acpAgent:null},l()),[])}}},33591:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(90425).A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},42833:(e,t,s)=>{"use strict";s.d(t,{$2:()=>g,CF:()=>u,MZ:()=>p,g:()=>h,hf:()=>x,oK:()=>b,wT:()=>c,zR:()=>m});var r=s(95155),n=s(84980),a=s(3926),l=s(93631),i=s(68459),o=s(61878),d=s(10762);function c(e){return/search/.test(e)?"search":/read|list|get/.test(e)?"read":/create/.test(e)?"create":/delete/.test(e)?"delete":/write|update|insert|append/.test(e)?"write":"other"}let u={en:{read:"Read",write:"Write",create:"Create",delete:"Delete",search:"Search",other:"Other"},zh:{read:"读取",write:"写入",create:"创建",delete:"删除",search:"搜索",other:"其他"}},m={read:{bg:"rgba(138,180,216,0.10)",text:"#8ab4d8",border:"rgba(138,180,216,0.25)"},write:{bg:"rgba(200,135,58,0.10)",text:"var(--amber)",border:"rgba(200,135,58,0.25)"},create:{bg:"rgba(122,173,128,0.10)",text:"var(--success)",border:"rgba(122,173,128,0.25)"},delete:{bg:"rgba(200,80,80,0.10)",text:"var(--error)",border:"rgba(200,80,80,0.25)"},search:{bg:"rgba(200,160,216,0.10)",text:"#c8a0d8",border:"rgba(200,160,216,0.25)"},other:{bg:"var(--muted)",text:"var(--muted-foreground)",border:"var(--border)"}};function x({kind:e,size:t=13}){return"read"===e?(0,r.jsx)(n.A,{size:t}):"write"===e?(0,r.jsx)(a.A,{size:t}):"create"===e?(0,r.jsx)(l.A,{size:t}):"delete"===e?(0,r.jsx)(i.A,{size:t}):"search"===e?(0,r.jsx)(o.A,{size:t}):(0,r.jsx)(d.A,{size:t})}function g(e){try{return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return e}}function p(e){let t=Date.now()-new Date(e).getTime(),s=Math.floor(t/6e4),r=Math.floor(t/36e5),n=Math.floor(t/864e5);return s<1?"<1m":s<60?`${s}m`:r<24?`${r}h`:`${n}d`}function b(e){return"string"==typeof e.path?e.path:null}function h({kind:e,locale:t,size:s="md"}){let n=m[e],a=u[t?.startsWith("zh")?"zh":"en"][e];return(0,r.jsxs)("span",{className:"font-display",style:{display:"inline-flex",alignItems:"center",gap:3,padding:"sm"===s?"1px 6px":"2px 8px",borderRadius:999,fontSize:"sm"===s?"0.6rem":"0.68rem",fontWeight:600,background:n.bg,color:n.text,border:`1px solid ${n.border}`,flexShrink:0,whiteSpace:"nowrap"},children:[(0,r.jsx)(x,{kind:e,size:"sm"===s?9:10}),a]})}},48368:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(90425).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},64435:(e,t,s)=>{"use strict";s.d(t,{default:()=>eR});var r=s(95155),n=s(12115),a=s(4235),l=s(91053),i=s(70617),o=s(2857),d=s(7834),c=s(13845),u=s(3590),m=s(98500),x=s.n(m),g=s(53961),p=s(90425);let b=(0,p.A)("cable",[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]]);var h=s(15573),f=s(92451),v=s(41585),j=s(66088),y=s(51914),N=s(60285),k=s(91337),w=s(39498),S=s(6496);function C({copy:e,buckets:t,riskQueue:s,mcpRunning:a,mcpPort:l,mcpToolCount:i,mcpEnabled:o=!0,enabledSkillCount:d,allAgents:c,pulseCopy:u,a2aCount:m,onAddCustomAgent:x,onEditCustomAgent:p,onRemoveCustomAgent:N}){s.length;let[w,C]=(0,n.useState)(!1),M=(0,n.useMemo)(()=>[...c].filter(e=>e.present||e.isCustom).sort((e,t)=>!e.installed-!t.installed||e.name.localeCompare(t.name)),[c]);return(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsx)("section",{className:"rounded-xl border border-border bg-gradient-to-b from-card to-card/80 overflow-hidden","aria-label":u.connected,children:(0,r.jsxs)("div",{className:"flex divide-x divide-border/50 [&>*]:flex-1",children:[(0,r.jsx)(A,{icon:(0,r.jsx)(g.A,{size:14,"aria-hidden":"true"}),label:u.connected,value:t.connected.length,total:M.length,tone:"ok"}),(0,r.jsx)(A,{icon:(0,r.jsx)(b,{size:14,"aria-hidden":"true"}),label:u.detected,value:t.detected.length,tone:t.detected.length>0?"warn":"muted"}),(0,r.jsx)(A,{icon:(0,r.jsx)(g.A,{size:14,"aria-hidden":"true"}),label:u.enabledSkills,value:d,tone:"ok"}),o&&(0,r.jsx)(A,{icon:(0,r.jsx)(h.A,{size:14,"aria-hidden":"true"}),label:e.pulseMcp,value:a?`:${l}`:"—",tone:a?"ok":"warn"}),null!=m&&(0,r.jsx)(A,{icon:(0,r.jsx)(f.A,{size:14,"aria-hidden":"true"}),label:e.a2aLabel??"A2A",value:m,tone:m>0?"ok":"muted"})]})}),s.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("button",{type:"button",onClick:()=>C(!w),className:"inline-flex items-center gap-1.5 rounded-full border border-amber-500/25 bg-amber-500/[0.06] px-3 py-1.5 text-sm font-medium text-[var(--amber)] transition-colors duration-150 hover:bg-amber-500/[0.12] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-expanded":w,children:[(0,r.jsx)(v.A,{size:13,className:"shrink-0","aria-hidden":"true"}),e.riskQueue,(0,r.jsx)("span",{className:"tabular-nums text-2xs bg-[var(--amber-dim)] px-1.5 py-0.5 rounded-full select-none",children:s.length}),(0,r.jsx)(j.A,{size:13,className:(0,k.cn)("shrink-0 transition-transform duration-200",w&&"rotate-180"),"aria-hidden":"true"})]}),(0,r.jsx)("div",{className:(0,k.cn)("grid transition-[grid-template-rows] duration-250 ease-out",w?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,r.jsx)("div",{className:"overflow-hidden",...!w&&{inert:!0},children:(0,r.jsx)("ul",{className:"mt-3 space-y-2",role:"list",children:s.map((t,s)=>(0,r.jsxs)("li",{className:`flex items-center gap-3 px-3 py-2.5 rounded-lg border text-sm ${"error"===t.severity?"border-destructive/20 bg-destructive/[0.03]":"border-amber-500/15 bg-background"}`,style:{animationDelay:`${50*s}ms`},children:[(0,r.jsx)("span",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${"error"===t.severity?"bg-destructive":"bg-[var(--amber)]"}`,"aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-foreground flex-1 min-w-0",children:t.title}),(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 select-none ${"error"===t.severity?"bg-destructive/10 text-destructive":"bg-[var(--amber-dim)] text-[var(--amber-text)]"}`,children:"error"===t.severity?e.riskLevelError:e.riskLevelWarn})]},t.id))})})})]}),(0,r.jsx)(S.A,{}),M.length>0?(0,r.jsxs)("section",{"aria-label":e.usagePulse,children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsx)("h2",{className:"text-sm font-medium text-foreground",children:e.usagePulse}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground tabular-nums select-none",children:e.agentCount(M.length)})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:[M.map((t,s)=>(0,r.jsx)(z,{agent:t,copy:e,index:s,mcpEnabled:o,onEdit:t.isCustom?p:void 0,onRemove:t.isCustom?N:void 0},t.key)),x&&(0,r.jsxs)("button",{type:"button",onClick:x,className:"group rounded-xl border-2 border-dashed border-border/60 bg-transparent p-3.5 hover:border-[var(--amber)]/30 hover:bg-muted/20 active:scale-[0.98] transition-all duration-150 flex flex-col items-center justify-center gap-2 min-h-[100px] cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":e.addCustomAgent,children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-full border-2 border-dashed border-muted-foreground/30 flex items-center justify-center group-hover:border-[var(--amber)]/50 transition-colors duration-150",children:(0,r.jsx)(y.A,{size:16,className:"text-muted-foreground/50 group-hover:text-[var(--amber)] transition-colors duration-150"})}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground/60 group-hover:text-muted-foreground transition-colors duration-150",children:e.addCustomAgent})]})]})]}):(0,r.jsxs)("section",{className:"rounded-xl border border-border/40 bg-card/30 p-12 text-center","aria-label":e.usagePulse,children:[(0,r.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-muted/40 flex items-center justify-center mx-auto mb-4",children:(0,r.jsx)(b,{size:22,className:"text-muted-foreground/50","aria-hidden":"true"})}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground/70 leading-relaxed max-w-xs mx-auto",children:e.nextActionHint})]})]})}function A({icon:e,label:t,value:s,total:n,tone:a}){return(0,r.jsxs)("div",{className:`px-3 py-4 text-center ${"ok"===a?"hover:bg-muted/20":"warn"===a?"hover:bg-[var(--amber)]/[0.04]":"hover:bg-muted/20"} transition-colors duration-150 group/stat`,role:"group","aria-label":`${t}: ${s}${void 0!==n?`/${n}`:""}`,children:[(0,r.jsx)("div",{className:`flex items-center justify-center gap-1.5 mb-2 ${"ok"===a?"text-[var(--success)]/70":"warn"===a?"text-[var(--amber)]/70":"text-muted-foreground/40"} group-hover/stat:opacity-100 transition-all duration-150`,children:e}),(0,r.jsxs)("p",{className:`text-xl font-semibold tabular-nums leading-none mb-1.5 ${"ok"===a?"text-foreground":"warn"===a?"text-amber-600 dark:text-amber-400":"text-muted-foreground"}`,children:[s,void 0!==n&&(0,r.jsxs)("span",{className:"text-xs font-normal text-muted-foreground ml-0.5",children:["/",n]})]}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/70 truncate block",children:t})]})}function z({agent:e,copy:t,index:s,mcpEnabled:a=!0,onEdit:l,onRemove:i}){let[o,d]=(0,n.useState)(!1),c=(0,n.useRef)(null),m=(0,u.yv)(e),p=e.configuredMcpServerCount??e.configuredMcpServers?.length??0,b=e.installedSkillCount??e.installedSkillNames?.length??0,f=e.runtimeConversationSignal||e.runtimeUsageSignal,v=e.isCustom,j="connected"===m?t.connected:"detected"===m?t.detected:t.notFound,y="connected"===m?"bg-muted text-muted-foreground":"detected"===m?"bg-[var(--amber-dim)] text-[var(--amber-text)]":"bg-error/10 text-error";return(0,n.useEffect)(()=>{if(!o)return;let e=e=>{c.current&&!c.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[o]),(0,r.jsxs)(x(),{href:`/agents/${encodeURIComponent(e.key)}`,className:(0,k.cn)("group relative rounded-xl border border-border bg-card p-3.5","hover:border-[var(--amber)]/30 hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)]","active:scale-[0.98]","transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",v&&"border-l-2 border-l-[var(--amber)]/40"),children:[v&&(l||i)&&(0,r.jsxs)("div",{ref:c,className:"absolute top-2.5 right-2.5 z-10",children:[(0,r.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),d(!o)},className:"w-6 h-6 rounded-md flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted opacity-0 group-hover:opacity-100 transition-all duration-150 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:opacity-100","aria-label":"Agent options",children:(0,r.jsx)(N.A,{size:14})}),o&&(0,r.jsxs)("div",{className:"absolute right-0 top-full mt-1 w-32 bg-card border border-border rounded-lg shadow-lg py-1 animate-in fade-in-0 zoom-in-95 duration-100",children:[l&&(0,r.jsx)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),d(!1),l(e)},className:"w-full text-left px-3 py-1.5 text-sm text-foreground hover:bg-muted transition-colors duration-100 cursor-pointer",children:t.customAgentEdit}),i&&(0,r.jsx)("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),d(!1),i(e)},className:"w-full text-left px-3 py-1.5 text-sm text-destructive hover:bg-muted transition-colors duration-100 cursor-pointer",children:t.customAgentRemove})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2.5 mb-3",children:[(0,r.jsx)(w.lx,{name:e.name,status:m,size:"sm"}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("span",{className:"text-sm font-medium text-foreground block truncate group-hover:text-[var(--amber)] transition-colors duration-150",children:e.name}),e.transport&&"connected"===m&&(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/60 font-mono",children:e.transport})]}),(0,r.jsx)("span",{className:`text-2xs px-2 py-0.5 rounded-full font-medium shrink-0 select-none ${y}`,children:j})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 pt-2.5 border-t border-border/40",children:[a&&(0,r.jsx)(M,{icon:(0,r.jsx)(h.A,{size:11,"aria-hidden":"true"}),value:p,label:t.colMcp}),(0,r.jsx)(M,{icon:(0,r.jsx)(g.A,{size:11,"aria-hidden":"true"}),value:b,label:t.colSkills}),(0,r.jsx)("span",{className:"flex-1 min-w-[4px]"}),f&&(0,r.jsxs)("span",{className:"flex items-center gap-1 text-[var(--success)]",title:t.runtimeActive,children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--success)] animate-pulse","aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-2xs font-medium",children:t.runtimeActive})]})]})]})}function M({icon:e,value:t,label:s}){return(0,r.jsxs)("span",{className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded-md ${t>0?"bg-muted/40":""}`,title:s,"aria-label":`${s}: ${t}`,children:[(0,r.jsx)("span",{className:t>0?"text-muted-foreground":"text-muted-foreground/30",children:e}),(0,r.jsx)("span",{className:`tabular-nums text-xs ${t>0?"text-foreground font-medium":"text-muted-foreground/40"}`,children:t})]})}var T=s(91958),F=s(61878),R=s(22356);function D({copy:e,mcp:t,buckets:s,copyState:a,onCopySnippet:l}){let[i,o]=(0,n.useState)("byServer"),[d,c]=(0,n.useState)(""),[m,x]=(0,n.useState)("all"),[g,p]=(0,n.useState)("all"),[b,f]=(0,n.useState)(null),[v,j]=(0,n.useState)(null),y=(0,n.useMemo)(()=>(0,u.gJ)(t.agents),[t.agents]),N=(0,n.useMemo)(()=>(0,u.gJ)((0,u.fH)(t.agents,{query:d,status:m,transport:g})),[t.agents,d,m,g]),k=(0,n.useMemo)(()=>(0,u.HL)(t.agents),[t.agents]),S=(0,n.useMemo)(()=>{let e=d.trim().toLowerCase();return e?k.filter(t=>t.serverName.toLowerCase().includes(e)):k},[k,d]);async function C(e){f(`reconnect:${e.key}`);try{let s="project"===e.scope?"project":"global",r="http"===e.transport?"http":"stdio";await t.installAgent(e.key,{scope:s,transport:r}),await t.refresh()}catch(e){console.error("[mcp] reconnect failed",e)}finally{f(null)}}async function A(e){f(`install:${e}`);try{await t.installAgent(e,{scope:"global",transport:"stdio"}),await t.refresh()}catch(e){console.error("[mcp] install mindos failed",e)}finally{f(null)}}async function z(){if(null!==b||0===N.length)return;f("bulk"),j(e.bulkRunning);let s=[];for(let e of N){let r="project"===e.scope?"project":"global",n="http"===e.transport?"http":"stdio",a=await t.installAgent(e.key,{scope:r,transport:n});s.push({agentKey:e.key,ok:a})}await t.refresh();let r=(0,u.xJ)(s);j(e.bulkSummary(r.succeeded,r.failed)),f(null)}let M="refresh"===b;return(0,r.jsxs)("section",{className:"space-y-4 overflow-hidden","aria-label":e.title,children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsxs)("h2",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-6 h-6 rounded-md bg-muted/50 flex items-center justify-center",children:(0,r.jsx)(h.A,{size:13,className:"text-muted-foreground/70","aria-hidden":"true"})}),e.title]}),(0,r.jsxs)("button",{type:"button",onClick:()=>{f("refresh"),t.refresh().finally(()=>f(null))},disabled:M,"aria-label":e.refresh,className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-md px-1.5 py-1 hover:bg-muted disabled:opacity-50 transition-colors duration-150",children:[(0,r.jsx)(T.A,{size:13,className:M?"animate-spin":""}),e.refresh]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-border p-0.5 bg-background",role:"tablist","aria-label":e.title,children:[(0,r.jsx)(w.KF,{active:"byServer"===i,label:e.tabs.byServer,onClick:()=>o("byServer")}),(0,r.jsx)(w.KF,{active:"byAgent"===i,label:e.tabs.byAgent,onClick:()=>o("byAgent")})]})]}),(0,r.jsxs)("div",{className:"rounded-xl border border-border/60 bg-gradient-to-r from-card to-card/80 p-3.5",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 text-xs",children:[(0,r.jsx)(w.md,{tone:"ok",label:e.filters.connected,count:s.connected.length}),(0,r.jsx)(w.md,{tone:"warn",label:e.filters.detected,count:s.detected.length}),s.notFound.length>0&&(0,r.jsx)(w.md,{tone:"neutral",label:e.filters.notFound,count:s.notFound.length}),(0,r.jsx)("span",{className:"text-muted-foreground/40","aria-hidden":"true",children:"|"}),(0,r.jsx)(w.md,{tone:t.status?.running?"ok":"neutral",label:e.mcpServerLabel,count:+!!t.status?.running})]}),!t.status?.running&&(0,r.jsx)("div",{className:"mt-2 pt-2 border-t border-border/60",role:"alert",children:(0,r.jsxs)("p",{className:"text-xs text-destructive flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-destructive shrink-0","aria-hidden":"true"}),e.riskMcpStopped]})})]}),(0,r.jsx)(w.DO,{value:d,onChange:c,placeholder:"byAgent"===i?e.searchPlaceholder:e.searchServersPlaceholder,ariaLabel:e.searchPlaceholder,icon:F.A}),"byAgent"===i?(0,r.jsx)($,{copy:e,agents:N,busyAction:b,copyState:a,bulkMessage:v,statusFilter:m,transportFilter:g,onStatusFilter:x,onTransportFilter:p,onCopySnippet:l,onReconnect:C,onInstallMindos:A,onBulkReconnect:z}):(0,r.jsx)(E,{copy:e,servers:S,allAgents:y,busyAction:b,onInstallMindos:A,onReconnect:C})]})}function $({copy:e,agents:t,busyAction:s,copyState:n,bulkMessage:a,statusFilter:l,transportFilter:i,onStatusFilter:o,onTransportFilter:d,onCopySnippet:c,onReconnect:m,onInstallMindos:g,onBulkReconnect:p}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,r.jsxs)("div",{role:"group","aria-label":e.table.status,className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,r.jsx)(w.KF,{active:"all"===l,label:e.filters.all,onClick:()=>o("all")}),(0,r.jsx)(w.KF,{active:"connected"===l,label:e.filters.connected,onClick:()=>o("connected")}),(0,r.jsx)(w.KF,{active:"detected"===l,label:e.filters.detected,onClick:()=>o("detected")}),(0,r.jsx)(w.KF,{active:"notFound"===l,label:e.filters.notFound,onClick:()=>o("notFound")})]}),(0,r.jsxs)("div",{role:"group","aria-label":e.table.transport,className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,r.jsx)(w.KF,{active:"all"===i,label:e.transportFilters.all,onClick:()=>d("all")}),(0,r.jsx)(w.KF,{active:"stdio"===i,label:e.transportFilters.stdio,onClick:()=>d("stdio")}),(0,r.jsx)(w.KF,{active:"http"===i,label:e.transportFilters.http,onClick:()=>d("http")}),(0,r.jsx)(w.KF,{active:"other"===i,label:e.transportFilters.other,onClick:()=>d("other")})]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)(w.rA,{onClick:()=>void p(),disabled:null!==s||0===t.length,busy:"bulk"===s,label:e.bulkReconnectFiltered}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground tabular-nums",children:e.resultCount(t.length)}),(0,r.jsx)(w.Mv,{message:a})]}),0===t.length?(0,r.jsx)(w.pp,{message:e.emptyState}):(0,r.jsx)("div",{className:"space-y-2",children:t.map(t=>{let a=(0,u.yv)(t),l=t.configuredMcpServers??[],i=(t.installedSkillNames??[]).length;return(0,r.jsxs)("div",{className:`rounded-xl border bg-card group hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-150 ${"detected"===a?"border-l-2 border-l-[var(--amber)] border-border":"notFound"===a?"border-l-2 border-l-error border-border":"border-border"}`,children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 p-3",children:[(0,r.jsx)(w.lx,{name:t.name,status:a}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(x(),{href:`/agents/${encodeURIComponent(t.key)}`,className:"text-sm font-medium text-foreground hover:underline cursor-pointer truncate",children:t.name}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground font-mono shrink-0",children:t.transport??t.preferredTransport}),(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${"connected"===a?"bg-muted text-muted-foreground":"detected"===a?"bg-[var(--amber-dim)] text-[var(--amber-text)]":"bg-error/10 text-error"}`,children:e.status[a]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 text-2xs text-muted-foreground",children:[(0,r.jsxs)("span",{className:"tabular-nums",children:[l.length," MCP"]}),(0,r.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,r.jsxs)("span",{className:"tabular-nums",children:[i," skills"]})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0 md:opacity-0 md:group-hover:opacity-100 md:focus-within:opacity-100 transition-opacity duration-150",children:[(0,r.jsx)(w.rA,{onClick:()=>void c(t.key),disabled:!1,busy:!1,label:n===t.key?e.actions.copied:e.actions.copySnippet}),t.installed?(0,r.jsx)(w.rA,{onClick:()=>void m(t),disabled:null!==s,busy:s===`reconnect:${t.key}`,label:e.actions.reconnect}):(0,r.jsx)(w.rA,{onClick:()=>void g(t.key),disabled:null!==s,busy:s===`install:${t.key}`,label:e.installMindos,variant:"primary"}),!t.installed&&(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/60",children:"or CLI Skill"})]})]}),l.length>0&&(0,r.jsx)("div",{className:"flex flex-wrap gap-1 px-3 pb-3 ml-12",children:l.map(e=>(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-muted/40 border border-border/30 px-2.5 py-0.5 text-2xs text-muted-foreground hover:bg-muted/60 transition-colors duration-100",children:[(0,r.jsx)("span",{className:"w-1 h-1 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),e]},e))})]},t.key)})})]})}function E({copy:e,servers:t,allAgents:s,busyAction:a,onInstallMindos:l,onReconnect:i}){let[o,d]=(0,n.useState)(null),[c,m]=(0,n.useState)(null),[g,p]=(0,n.useState)(null),[b,f]=(0,n.useState)(null),[v,j]=(0,n.useState)({}),y=(0,n.useCallback)(async(e,t)=>{d(null),await l(e)},[l]),N=(0,n.useCallback)(async()=>{if(!c)return;let{agentKey:t}=c;m(null);let r=s.find(e=>e.key===t),n=r?.scope==="project"?"project":"global";try{await (0,R.n)("/api/mcp/uninstall",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agents:[{key:t,scope:n}]})}),p(e.removeSuccess??"Removed. Restart your agent to apply.")}catch{p(e.removeFailed??"Failed to remove. Try editing the config file manually.")}setTimeout(()=>p(null),4e3)},[c,s,e]),k=(0,n.useCallback)(async(t,s)=>{f(t),j(s=>({...s,[t]:e.reconnectAllRunning}));let r=0,n=0;for(let e of s)try{await i(e),r++}catch{n++}j(s=>({...s,[t]:e.reconnectAllDone(r,n)})),f(null),setTimeout(()=>j(e=>{let s={...e};return delete s[t],s}),4e3)},[e,i]);return 0===t.length?(0,r.jsx)(w.pp,{message:e.crossAgentServersEmpty}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("p",{className:"text-2xs text-muted-foreground tabular-nums",children:e.resultCount(t.length)}),g&&(0,r.jsx)("div",{role:"status","aria-live":"polite",className:"rounded-md border border-border bg-muted/50 px-3 py-2 text-xs text-muted-foreground animate-in fade-in duration-200",children:g}),t.map(t=>{let n=t.agents.map(e=>s.find(t=>t.name===e)).filter(Boolean),l=t.agents.filter(e=>!n.some(t=>t.name===e)),i=s.filter(e=>!t.agents.includes(e.name)),c=n.filter(e=>"connected"===(0,u.yv)(e)).length,g=n.filter(e=>"detected"===(0,u.yv)(e)).length,p=n.length-c-g+l.length;return(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-200",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 min-w-0",children:[(0,r.jsx)("div",{className:"w-7 h-7 rounded-lg bg-[var(--amber)]/[0.08] flex items-center justify-center shrink-0",children:(0,r.jsx)(h.A,{size:13,className:"text-[var(--amber)]","aria-hidden":"true"})}),(0,r.jsx)("span",{className:"text-sm font-semibold text-foreground truncate",children:t.serverName})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[n.length>0&&(0,r.jsx)(w.rA,{onClick:()=>void k(t.serverName,n),disabled:null!==b||null!==a,busy:b===t.serverName,label:e.reconnectAllInServer,busyLabel:e.reconnectAllRunning}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(w.ZC,{onClick:()=>d(o===t.serverName?null:t.serverName),label:e.addAgent,size:"sm"}),(0,r.jsx)(w.BK,{open:o===t.serverName,agents:i.map(e=>({key:e.key,name:e.name})),emptyLabel:e.noAvailableAgents,onSelect:e=>void y(e,t.serverName),onClose:()=>d(null)})]})]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-2xs text-muted-foreground mb-3",children:[(0,r.jsx)("span",{className:"tabular-nums",children:e.serverAgentCount(t.agents.length)}),c>0&&(0,r.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--success)]","aria-hidden":"true"}),c]}),g>0&&(0,r.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),g]}),p>0&&(0,r.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-muted-foreground","aria-hidden":"true"}),p]})]}),v[t.serverName]&&(0,r.jsx)("p",{role:"status",className:"text-2xs text-muted-foreground mb-2 animate-in fade-in duration-200",children:v[t.serverName]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[n.map(e=>{let s=(0,u.yv)(e);return(0,r.jsx)(x(),{href:`/agents/${encodeURIComponent(e.key)}`,className:"cursor-pointer",children:(0,r.jsx)(w.lx,{name:e.name,status:s,onRemove:()=>m({agentKey:e.key,agentName:e.name,serverName:t.serverName})})},e.key)}),l.map(e=>(0,r.jsx)(w.lx,{name:e,status:"notFound"},e))]})]},t.serverName)})]}),(0,r.jsx)(w.TM,{open:null!==c,title:e.confirmRemoveTitle,message:c?e.confirmRemoveMessage(c.agentName,c.serverName):"",confirmLabel:e.removeFromServer,cancelLabel:e.cancel,onConfirm:N,onCancel:()=>m(null),variant:"destructive"})]})}var L=s(14871),K=s(68459),P=s(21362),O=s(20171),I=s(85641);function H({copy:e,mcp:t,buckets:s}){let[a,l]=(0,n.useState)("bySkill"),[i,o]=(0,n.useState)(""),[d,c]=(0,n.useState)("all"),[m,x]=(0,n.useState)("all"),[p,b]=(0,n.useState)("all"),[h,f]=(0,n.useState)(!1),[v,j]=(0,n.useState)(null),[y,N]=(0,n.useState)(null),k=(0,n.useMemo)(()=>(0,u.x3)(t.agents),[t.agents]),S=(0,n.useMemo)(()=>(0,u.gJ)(t.agents),[t.agents]),C=(0,n.useMemo)(()=>(0,u.ag)(t.skills,k),[t.skills,k]),A=(0,n.useMemo)(()=>t.skills.filter(e=>e.enabled).length,[t.skills]),z=(0,n.useMemo)(()=>t.skills.filter(e=>!e.enabled).length,[t.skills]),M=(0,n.useMemo)(()=>(0,u.IK)(t.skills).size,[t.skills]),T=(0,n.useMemo)(()=>C.filter(e=>"native"===e.kind).length,[C]),D=(0,n.useMemo)(()=>(0,u.Ri)(C,{query:i,source:d,status:m,capability:p}),[C,i,d,m,p]),$=(0,n.useMemo)(()=>(0,u.GU)(D),[D]),E=(0,n.useMemo)(()=>["research","coding","docs","ops","memory"].map(t=>({key:t,label:e.groupLabels[t]})),[e.groupLabels]),L=(0,n.useMemo)(()=>y?C.find(e=>e.name===y)??null:null,[y,C]),K=(0,n.useMemo)(()=>y?t.skills.find(e=>e.name===y)??null:null,[y,t.skills]),P=(0,n.useCallback)(async e=>{await (0,R.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",name:e})}),window.dispatchEvent(new Event("mindos:skills-changed")),await t.refresh()},[t]),O=async s=>{if(h)return;let r=(0,u.G9)(D,s);if(0===r.length)return void j(e.bulkNoChanges);f(!0),j(e.bulkRunning);let n=[];for(let e of r){let r=await t.toggleSkill(e,s);n.push({skillName:e,ok:r})}let a=(0,u.xR)(n);j(0===a.failed?e.bulkAllSucceeded(a.succeeded):e.bulkPartialFailed(a.succeeded,a.failed)),f(!1)};return(0,r.jsxs)("section",{className:"space-y-4 overflow-hidden","aria-label":e.title,children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsxs)("h2",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-6 h-6 rounded-md bg-muted/50 flex items-center justify-center",children:(0,r.jsx)(g.A,{size:13,className:"text-muted-foreground/70","aria-hidden":"true"})}),e.title]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-border p-0.5 bg-background",role:"tablist","aria-label":e.title,children:[(0,r.jsx)(w.KF,{active:"bySkill"===a,label:e.tabs.bySkill,onClick:()=>l("bySkill")}),(0,r.jsx)(w.KF,{active:"byAgent"===a,label:e.tabs.byAgent,onClick:()=>l("byAgent")})]})]}),(0,r.jsx)("div",{className:"rounded-xl border border-border/60 bg-gradient-to-r from-card to-card/80 p-3.5",children:(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 text-xs",children:[(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--success)]","aria-hidden":"true"}),e.summaryEnabled(A)]}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-muted-foreground","aria-hidden":"true"}),e.summaryDisabled(z)]}),M>0&&(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[var(--amber)]",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),e.summaryAttention(M)]}),T>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-muted-foreground/40","aria-hidden":"true",children:"|"}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-muted-foreground",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--amber)]","aria-hidden":"true"}),e.summaryNative(T)]})]})]})}),(0,r.jsx)(w.DO,{value:i,onChange:o,placeholder:e.searchPlaceholder,ariaLabel:e.searchPlaceholder,icon:F.A}),"bySkill"===a?(0,r.jsx)(_,{copy:e,filtered:D,grouped:$,allAgents:S,source:d,status:m,capability:p,capabilityOptions:E,bulkRunning:h,bulkMessage:v,onSourceChange:c,onStatusChange:x,onCapabilityChange:b,onBulkToggle:O,onToggleSkill:t.toggleSkill,onRefresh:t.refresh,onOpenDetail:N}):(0,r.jsx)(J,{copy:e,agents:S,skills:t.skills,crossAgentSkills:k,query:i,onToggleSkill:t.toggleSkill,onOpenDetail:N}),(0,r.jsx)(I.A,{open:null!==y,skillName:y,skill:K,agentNames:L?.agents??[],isNative:L?.kind==="native",nativeSourcePath:L?.kind==="native"&&L.agents.length>0?t.agents.find(e=>e.name===L.agents[0])?.installedSkillSourcePath:void 0,copy:e.skillPopover,onClose:()=>N(null),onToggle:t.toggleSkill,onDelete:P,onRefresh:t.refresh,allAgentNames:t.agents.filter(e=>e.present&&e.installed).map(e=>e.name)})]})}function _({copy:e,filtered:t,grouped:s,allAgents:a,source:l,status:i,capability:o,capabilityOptions:d,bulkRunning:c,bulkMessage:u,onSourceChange:m,onStatusChange:x,onCapabilityChange:g,onBulkToggle:p,onToggleSkill:b,onRefresh:h,onOpenDetail:f}){let[v,j]=(0,n.useState)(null),[y,N]=(0,n.useState)(null),[k,S]=(0,n.useState)(null),[C,A]=(0,n.useState)(null),[z,M]=(0,n.useState)(null),T=(0,n.useCallback)(()=>{j(null),A(e.manualSkillHint),setTimeout(()=>A(null),4e3)},[e.manualSkillHint]),F=(0,n.useCallback)(async t=>{N(null),M(t);try{await (0,R.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",name:t})}),A(e.skillDeleted),window.dispatchEvent(new Event("mindos:skills-changed")),await h()}catch{A(e.skillDeleteFailed)}finally{M(null),setTimeout(()=>A(null),3e3)}},[e.skillDeleted,e.skillDeleteFailed,h]),D=(0,n.useMemo)(()=>{let e=[];for(let[t,r]of Object.entries(s)){if(0===r.length)continue;let s=[...r].sort((e,t)=>e.kind!==t.kind?"mindos"===e.kind?-1:1:e.enabled!==t.enabled?e.enabled?-1:1:e.name.localeCompare(t.name));e.push([t,s])}return e},[s]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,r.jsxs)("div",{role:"group","aria-label":"Source",className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,r.jsx)(w.KF,{active:"all"===l,label:e.sourceAll,onClick:()=>m("all")}),(0,r.jsx)(w.KF,{active:"builtin"===l,label:e.sourceBuiltin,onClick:()=>m("builtin")}),(0,r.jsx)(w.KF,{active:"user"===l,label:e.sourceUser,onClick:()=>m("user")}),(0,r.jsx)(w.KF,{active:"native"===l,label:e.sourceNative,onClick:()=>m("native")})]}),(0,r.jsxs)("div",{role:"group","aria-label":"Status",className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,r.jsx)(w.KF,{active:"all"===i,label:e.statusAll,onClick:()=>x("all")}),(0,r.jsx)(w.KF,{active:"enabled"===i,label:e.statusEnabled,onClick:()=>x("enabled")}),(0,r.jsx)(w.KF,{active:"disabled"===i,label:e.statusDisabled,onClick:()=>x("disabled")}),(0,r.jsx)(w.KF,{active:"attention"===i,label:e.statusAttention,onClick:()=>x("attention")})]}),(0,r.jsxs)("div",{role:"group","aria-label":"Capability",className:"flex items-center gap-0.5 rounded-md border border-border p-0.5 bg-background",children:[(0,r.jsx)(w.KF,{active:"all"===o,label:e.capabilityAll,onClick:()=>g("all")}),d.map(e=>(0,r.jsx)(w.KF,{active:o===e.key,label:e.label,onClick:()=>g(e.key)},e.key))]})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)(w.rA,{onClick:()=>void p(!0),disabled:c,busy:c,label:e.bulkEnableFiltered}),(0,r.jsx)(w.rA,{onClick:()=>void p(!1),disabled:c,busy:!1,label:e.bulkDisableFiltered}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground tabular-nums",children:e.resultCount(t.length)}),(0,r.jsx)(w.Mv,{message:u})]}),C&&(0,r.jsx)("div",{role:"status","aria-live":"polite",className:"rounded-md border border-border bg-muted/50 px-3 py-2 text-xs text-muted-foreground animate-in fade-in duration-200",children:C}),0===D.length?(0,r.jsx)(w.pp,{message:e.noSkillsMatchFilter}):(0,r.jsx)(B,{sortedGrouped:D,allAgents:a,copy:e,pickerSkill:k,deleteBusy:z,onOpenDetail:f,onToggleSkill:b,setPickerSkill:S,setHintMessage:A,setConfirmSkillDelete:N,setConfirmAgentRemove:j}),(0,r.jsx)(w.TM,{open:null!==v,title:e.confirmRemoveAgentTitle,message:v?e.confirmRemoveAgentMessage(v.agentName,v.skillName):"",confirmLabel:e.removeAgentFromSkill,cancelLabel:e.cancelSkillAction,onConfirm:T,onCancel:()=>j(null),variant:"destructive"}),(0,r.jsx)(w.TM,{open:null!==y,title:e.confirmDeleteSkillTitle,message:y?e.confirmDeleteSkillMessage(y):"",confirmLabel:e.skillDeleteAction,cancelLabel:e.cancelSkillAction,onConfirm:()=>y&&void F(y),onCancel:()=>N(null),variant:"destructive"})]})}function B({sortedGrouped:e,allAgents:t,copy:s,pickerSkill:a,deleteBusy:l,onOpenDetail:i,onToggleSkill:o,setPickerSkill:d,setHintMessage:c,setConfirmSkillDelete:u,setConfirmAgentRemove:m}){let x=(0,n.useRef)(null),p=(0,n.useMemo)(()=>{let t=[];for(let[s,r]of e)t.push({type:"header",groupKey:s,count:r.length}),r.forEach((e,s)=>{t.push({type:"card",skill:e,isLast:s===r.length-1})});return t},[e]),b=(0,n.useCallback)((e,n)=>{if("header"===n.type)return(0,r.jsxs)("div",{className:"flex items-center gap-2 pt-3 pb-2.5",children:[(0,r.jsx)("span",{className:"w-1 h-4 rounded-full bg-[var(--amber)]/40","aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:s.groupLabels[n.groupKey]}),(0,r.jsxs)("span",{className:"text-2xs tabular-nums text-muted-foreground/50 font-medium",children:["(",n.count,")"]})]});let{skill:x}=n,p=t.filter(e=>!x.agents.includes(e.name)).map(e=>({key:e.key,name:e.name})),b="mindos"===x.kind&&"user"===x.source;return(0,r.jsx)("div",{className:n.isLast?"pb-0":"pb-3",children:(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-200",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,r.jsx)(g.A,{size:14,className:`shrink-0 ${x.enabled?"text-[var(--amber)]":"text-muted-foreground/50"}`,"aria-hidden":"true"}),(0,r.jsx)("button",{type:"button",onClick:()=>i(x.name),className:"text-sm font-medium text-foreground truncate hover:text-[var(--amber)] cursor-pointer transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded text-left",children:x.name}),(0,r.jsx)("span",{className:`text-2xs shrink-0 px-1.5 py-0.5 rounded ${"native"===x.kind||"builtin"===x.source?"bg-muted text-muted-foreground":"bg-[var(--amber-dim)] text-[var(--amber-text)]"}`,children:"native"===x.kind?s.sourceNative:"builtin"===x.source?s.sourceBuiltin:s.sourceUser})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[b&&(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),u(x.name)},disabled:l===x.name,className:"text-muted-foreground hover:text-destructive cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded p-1 disabled:opacity-50 transition-colors duration-150","aria-label":`${s.skillDeleteAction} ${x.name}`,children:(0,r.jsx)(K.A,{size:14})}),"mindos"===x.kind?(0,r.jsx)(O.lM,{size:"sm",checked:x.enabled,onChange:e=>void o(x.name,e)}):(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/60 select-none","aria-label":"read-only",children:"—"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(w.ZC,{onClick:()=>d(a===x.name?null:x.name),label:s.addAgentToSkill,size:"sm"}),(0,r.jsx)(w.BK,{open:a===x.name,agents:p,emptyLabel:s.noAvailableAgentsForSkill,onSelect:()=>{d(null),c(s.manualSkillHint),setTimeout(()=>c(null),4e3)},onClose:()=>d(null)})]})]})]}),(0,r.jsx)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-2xs text-muted-foreground mb-3",children:(0,r.jsx)("span",{className:"tabular-nums",children:s.skillAgentCount(x.agents.length)})}),(0,r.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:x.agents.map(e=>(0,r.jsx)(w.lx,{name:e,onRemove:()=>m({agentName:e,skillName:x.name})},e))})]})})},[t,s,a,l,i,o,d,c,u,m]);return(0,r.jsx)(L.aY,{ref:x,style:{height:"calc(100vh - 340px)",minHeight:200},data:p,itemContent:b,overscan:200,increaseViewportBy:{top:100,bottom:100}})}function J({copy:e,agents:t,skills:s,crossAgentSkills:a,query:l,onToggleSkill:i,onOpenDetail:o}){let d=l.trim().toLowerCase(),c=(0,n.useMemo)(()=>d?t.filter(e=>!!`${e.name} ${e.key}`.toLowerCase().includes(d)||(e.installedSkillNames??[]).some(e=>e.toLowerCase().includes(d))):t,[t,d]),m=(0,n.useMemo)(()=>d?s.filter(e=>e.name.toLowerCase().includes(d)||e.description.toLowerCase().includes(d)):s,[s,d]);return 0===c.length?(0,r.jsx)(w.pp,{message:e.noAgentsYet}):(0,r.jsx)("div",{className:"space-y-3",children:c.map(t=>{let s=(0,u.yv)(t),n=(t.installedSkillNames??[]).sort(),a=t.configuredMcpServers??[],l=(t.present?m:[]).slice().sort((e,t)=>e.enabled!==t.enabled?e.enabled?-1:1:e.name.localeCompare(t.name)),d=n.length+l.length;return(0,r.jsx)(W,{agentKey:t.key,name:t.name,status:s,skillMode:t.skillMode,mcpCount:a.length,totalSkills:d,nativeSkills:n,mindosSkills:l,copy:e,onToggleSkill:i,onOpenDetail:o},t.key)})})}function W({agentKey:e,name:t,status:s,skillMode:a,mcpCount:l,totalSkills:i,nativeSkills:o,mindosSkills:d,copy:c,onToggleSkill:m,onOpenDetail:p}){let[b,h]=(0,n.useState)(!1),f=o.length>6,v=b?o:o.slice(0,6);return(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-card hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-200 overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 p-4 pb-0",children:[(0,r.jsx)(w.lx,{name:t,status:s}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(x(),{href:`/agents/${encodeURIComponent(e)}`,className:"text-sm font-medium text-foreground hover:underline cursor-pointer truncate",children:t}),a&&(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded shrink-0 ${"universal"===a?"bg-muted text-muted-foreground":"additional"===a?"bg-[var(--amber-dim)] text-[var(--amber-text)]":"bg-muted text-muted-foreground"}`,children:a})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 text-2xs text-muted-foreground",children:[(0,r.jsx)("span",{className:"tabular-nums",children:c.quickStatsMcp(l)}),(0,r.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,r.jsx)("span",{className:"tabular-nums",children:c.quickStatsSkills(i)})]})]})]}),(0,r.jsxs)("div",{className:"p-4 pt-3 space-y-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsxs)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider",children:[c.agentNativeSkills," ",(0,r.jsxs)("span",{className:"tabular-nums",children:["(",o.length,")"]})]}),f&&(0,r.jsx)("button",{type:"button",onClick:()=>h(!b),className:"text-2xs text-muted-foreground hover:text-foreground cursor-pointer flex items-center gap-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded transition-colors duration-150",children:b?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.A,{size:12}),c.collapseNative]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(P.A,{size:12}),c.showAllNative(o.length)]})})]}),0===o.length?(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/60",children:"—"}):(0,r.jsxs)("div",{className:"space-y-0.5 max-h-[200px] overflow-y-auto",children:[v.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>p(e),className:"w-full flex items-center gap-1.5 py-1 min-h-[28px] hover:bg-muted/30 -mx-1.5 px-1.5 rounded transition-colors duration-100 cursor-pointer text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(g.A,{size:12,className:"shrink-0 text-muted-foreground/50","aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-xs text-foreground truncate hover:text-[var(--amber)] transition-colors duration-150",children:e})]},e)),!b&&o.length>6&&(0,r.jsxs)("button",{type:"button",onClick:()=>h(!0),className:"w-full text-left text-2xs text-muted-foreground hover:text-foreground py-1 px-1.5 -mx-1.5 cursor-pointer transition-colors duration-150",children:["+",o.length-6]})]})]}),d.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wider mb-1.5",children:[c.agentMindosSkills," ",(0,r.jsxs)("span",{className:"tabular-nums",children:["(",d.filter(e=>e.enabled).length,"/",d.length,")"]})]}),(0,r.jsx)("div",{className:"space-y-0.5 max-h-[240px] overflow-y-auto",children:d.map(e=>(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 py-1 min-h-[32px] hover:bg-muted/30 -mx-1.5 px-1.5 rounded transition-colors duration-100",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,r.jsx)(g.A,{size:12,className:`shrink-0 ${e.enabled?"text-[var(--amber)]":"text-muted-foreground/50"}`,"aria-hidden":"true"}),(0,r.jsx)("button",{type:"button",onClick:()=>p(e.name),className:"text-xs text-foreground truncate hover:text-[var(--amber)] cursor-pointer transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded text-left",children:e.name}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground shrink-0",children:c.groupLabels[(0,u.$2)(e)]})]}),(0,r.jsx)(O.lM,{size:"sm",checked:e.enabled,onChange:t=>void m(e.name,t)})]},e.name))})]})]})]})}let Y=(0,p.A)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);var U=s(33591),V=s(32967),q=s(96035),G=s(6296),Q=s(9921),Z=s(1164),X=s(9199),ee=s(94514),et=s(55243),es=s(84980),er=s(73035),en=s(84755);let ea="mindos:acp-registry";function el(){let e=(0,n.useRef)(function(){try{let e=sessionStorage.getItem(ea);if(!e)return null;let t=JSON.parse(e);if(!Array.isArray(t.agents)||"number"!=typeof t.ts||Date.now()-t.ts>18e5)return null;return t}catch{return null}}()),[t,s]=(0,n.useState)(e.current?.agents??[]),[r,a]=(0,n.useState)(!e.current),[l,i]=(0,n.useState)(null),[o,d]=(0,n.useState)(0),c=(0,n.useRef)(!1),u=(0,n.useCallback)(()=>{d(e=>e+1)},[]);return(0,n.useEffect)(()=>{if(e.current&&Date.now()-e.current.ts<6e5&&0===o||c.current)return;c.current=!0;let r=t.length>0;r||a(!0),i(null);let n=!1;return fetch("/api/acp/registry").then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}).then(t=>{if(n)return;let r=t.registry?.agents??[];try{sessionStorage.setItem(ea,JSON.stringify({agents:r,ts:Date.now()}))}catch{}e.current={agents:r,ts:Date.now()},s(r)}).catch(e=>{!n&&(r||i(e.message))}).finally(()=>{c.current=!1,n||a(!1)}),()=>{n=!0}},[o]),{agents:t,loading:r,error:l,retry:u}}var ei=s(2431),eo=s(27318),ed=s(66709);function ec({agents:e,discovering:t,error:s,onDiscover:a,onRemove:i}){let{t:o}=(0,l.Y)(),d=o.panels.agents,[c,u]=(0,n.useState)(!1),{delegations:m}=function(e){let[t,s]=(0,n.useState)([]),[r,a]=(0,n.useState)(!1),l=(0,n.useRef)(!0),i=(0,n.useCallback)(async()=>{a(!0);try{let e=await fetch("/api/a2a/delegations");if(!e.ok)return;let t=await e.json();l.current&&s(t.delegations??[])}catch{}finally{l.current&&a(!1)}},[]);return(0,n.useEffect)(()=>(l.current=!0,()=>{l.current=!1}),[]),(0,n.useEffect)(()=>{if(!e)return;i();let t=setInterval(i,5e3);return()=>clearInterval(t)},[e,i]),{delegations:t,loading:r,refresh:i}}(!0),x=el(),g=0===e.length&&!x.loading&&0===x.agents.length;return(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h2",{className:"text-sm font-medium text-foreground",children:d.a2aTabTitle}),(0,r.jsxs)("button",{type:"button",onClick:()=>u(!0),className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg bg-foreground text-background hover:bg-foreground/90 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(f.A,{size:12}),d.a2aDiscover]})]}),g?(0,r.jsx)(eu,{onDiscover:()=>u(!0),onBrowseRegistry:x.retry}):(0,r.jsxs)(r.Fragment,{children:[0===e.length?(0,r.jsxs)("div",{className:"rounded-xl border border-border/40 bg-card/30 p-8 text-center",children:[(0,r.jsx)("div",{className:"w-12 h-12 rounded-2xl bg-muted/40 flex items-center justify-center mx-auto mb-3",children:(0,r.jsx)(f.A,{size:20,className:"text-muted-foreground/50","aria-hidden":"true"})}),(0,r.jsx)("p",{className:"text-sm font-medium text-muted-foreground mb-1",children:d.a2aTabEmpty}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/70 leading-relaxed max-w-xs mx-auto",children:d.a2aTabEmptyHint})]}):(0,r.jsx)("div",{className:"space-y-2",children:e.map(e=>(0,r.jsx)(ej,{agent:e,onRemove:i,removeCopy:d.a2aRemoveAgent,skillsCopy:d.a2aSkills},e.id))}),(0,r.jsx)(ex,{}),(0,r.jsx)(eh,{delegations:m})]}),(0,r.jsx)(ed.A,{open:c,onClose:()=>u(!1),onDiscover:a,discovering:t,error:s})]})}function eu({onDiscover:e,onBrowseRegistry:t}){let{t:s}=(0,l.Y)(),n=s.panels.agents;return(0,r.jsxs)("div",{className:"rounded-xl border border-border/40 bg-card/30 p-12 text-center",children:[(0,r.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-muted/40 flex items-center justify-center mx-auto mb-4",children:(0,r.jsx)(Y,{size:22,className:"text-muted-foreground/50","aria-hidden":"true"})}),(0,r.jsx)("p",{className:"text-sm font-medium text-foreground mb-1",children:n.networkEmptyTitle}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/70 leading-relaxed max-w-sm mx-auto mb-5",children:n.networkEmptyDesc}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2.5",children:[(0,r.jsxs)("button",{type:"button",onClick:e,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg bg-foreground text-background hover:bg-foreground/90 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(f.A,{size:12}),n.networkDiscoverBtn]}),(0,r.jsxs)("button",{type:"button",onClick:t,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg border border-border text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(Y,{size:12}),n.networkBrowseBtn]})]})]})}let em=[{labelKey:"acpQuickReview",icon:U.A,promptSuffix:"review the code in this project"},{labelKey:"acpQuickFix",icon:V.A,promptSuffix:"find and fix bugs in this project"},{labelKey:"acpQuickExplain",icon:q.A,promptSuffix:"explain the structure of this project"}];function ex(){let{t:e}=(0,l.Y)(),t=e.panels.agents,s=el(),a=(0,ei.z)(),i=function(){let[e,t]=(0,n.useState)({}),[s,r]=(0,n.useState)(!0),[a,l]=(0,n.useState)(!1),[i,o]=(0,n.useState)(null),[d,c]=(0,n.useState)(0),u=(0,n.useCallback)(()=>c(e=>e+1),[]);return(0,n.useEffect)(()=>{let e=!1;return r(!0),o(null),fetch("/api/acp/config").then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}).then(s=>{e||t(s.agents??{})}).catch(t=>{e||o(t.message)}).finally(()=>{e||r(!1)}),()=>{e=!0}},[d]),{configs:e,loading:s,saving:a,error:i,save:(0,n.useCallback)(async(e,s)=>{l(!0),o(null);try{let r=await fetch("/api/acp/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:e,config:s})});if(!r.ok)throw Error(`HTTP ${r.status}`);let n=await r.json();return t(n.agents??{}),!0}catch(e){return o(e.message),!1}finally{l(!1)}},[]),reset:(0,n.useCallback)(async e=>{l(!0),o(null);try{let s=await fetch("/api/acp/config",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentId:e})});if(!s.ok)throw Error(`HTTP ${s.status}`);let r=await s.json();return t(r.agents??{}),!0}catch(e){return o(e.message),!1}finally{l(!1)}},[]),refresh:u}}(),[o,d]=(0,n.useState)(!1);if(s.loading)return(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:t.acpSectionTitle}),(0,r.jsxs)("div",{className:"flex items-center justify-center py-6 gap-2",children:[(0,r.jsx)(G.A,{size:14,className:"animate-spin text-muted-foreground"}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:t.acpLoading})]})]});if(s.error)return(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:t.acpSectionTitle}),(0,r.jsxs)("div",{className:"rounded-lg border border-border/60 bg-card/80 p-4 text-center",children:[(0,r.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:t.acpLoadFailed}),(0,r.jsx)("button",{type:"button",onClick:s.retry,className:"text-xs font-medium text-foreground hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm",children:t.acpRetry})]})]});if(0===s.agents.length)return null;let c=[],u=[];for(let e of s.agents){let t=a.installedAgents.find(t=>t.id===e.id);if(t)c.push({agent:e,info:t});else{let t=a.notInstalledAgents.find(t=>t.id===e.id);u.push({agent:e,installCmd:t?.installCmd??null,packageName:t?.packageName??e.packageName??null})}}return(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:t.acpSectionTitle}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>a.refresh(),disabled:a.loading,className:"inline-flex items-center gap-1 px-2 py-1 text-2xs font-medium rounded-md border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",children:[(0,r.jsx)(T.A,{size:10,className:a.loading?"animate-spin":""}),t.acpScan]}),c.length>0&&(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/60",children:t.acpSectionDesc(c.length)})]})]}),c.length>0?(0,r.jsx)("div",{className:"space-y-2",children:c.map(({agent:e,info:t})=>(0,r.jsx)(ep,{agent:e,installed:t,detectionDone:!a.loading,acpConfig:i},e.id))}):a.loading?null:(0,r.jsx)("div",{className:"rounded-lg border border-border/40 bg-card/30 p-5 text-center",children:(0,r.jsx)("p",{className:"text-xs text-muted-foreground/70 leading-relaxed max-w-xs mx-auto",children:t.acpNoInstalled})}),!a.loading&&u.length>0&&(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>d(e=>!e),className:"flex items-center gap-1.5 text-xs text-muted-foreground/70 hover:text-muted-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm",children:[o?(0,r.jsx)(Q.A,{size:12}):(0,r.jsx)(j.A,{size:12}),(0,r.jsx)("span",{className:"font-medium",children:t.acpAvailableTitle}),(0,r.jsxs)("span",{className:"text-2xs",children:["(",t.acpAvailableDesc(u.length),")"]})]}),o&&(0,r.jsx)("div",{className:"space-y-1 animate-in fade-in slide-in-from-top-1 duration-150",children:u.map(({agent:e,installCmd:t,packageName:s})=>(0,r.jsx)(eb,{agent:e,installCmd:t,packageName:s,detectionDone:!a.loading,onInstalled:a.refresh},e.id))})]})]})}let eg={npx:"bg-[var(--amber)]/15 text-[var(--amber)]",binary:"bg-muted text-muted-foreground",uvx:"bg-[var(--success)]/15 text-[var(--success)]",stdio:"bg-muted text-muted-foreground"};function ep({agent:e,installed:t,detectionDone:s,acpConfig:a}){let{t:i}=(0,l.Y)(),o=i.panels.agents,[d,c]=(0,n.useState)(!1),[u,m]=(0,n.useState)(""),[x,p]=(0,n.useState)(""),[b,h]=(0,n.useState)("idle"),f={npx:o.acpTransportNpx,binary:o.acpTransportBinary,uvx:o.acpTransportUvx,stdio:o.acpTransportStdio},v=!!t,j=t?.resolvedCommand,y=j?.source==="user-override"?o.acpConfigSourceUser:j?.source==="descriptor"?o.acpConfigSourceBuiltin:o.acpConfigSourceRegistry,N=(0,n.useCallback)(()=>{!d&&j&&(m(j.cmd),p(j.args.join(" "))),c(e=>!e),h("idle")},[d,j]),k=(0,n.useCallback)(async()=>{let t=x.trim()?x.trim().split(/\s+/):[];await a.save(e.id,{command:u.trim()||void 0,args:t.length>0?t:void 0})&&(h("saved"),setTimeout(()=>h("idle"),2e3))},[a,e.id,u,x]),w=(0,n.useCallback)(async()=>{await a.reset(e.id),h("idle"),c(!1)},[a,e.id]);return(0,r.jsxs)("div",{className:"rounded-xl border border-[var(--amber)]/20 bg-card p-3 hover:border-[var(--amber)]/40 transition-all duration-150",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-lg bg-[var(--amber)]/10 flex items-center justify-center shrink-0",children:(0,r.jsx)(Y,{size:14,className:"text-[var(--amber)]"})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground truncate",children:e.name}),e.version&&(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground/60 shrink-0",children:["v",e.version]})]}),e.description&&(0,r.jsx)("p",{className:"text-2xs text-muted-foreground truncate",children:e.description})]}),(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 ${eg[e.transport]??eg.stdio}`,children:f[e.transport]??e.transport}),s&&(0,r.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 bg-[var(--success)]/15 text-[var(--success)]",children:o.acpReady}),(0,r.jsx)("button",{type:"button",onClick:N,className:"p-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:o.acpConfigToggle,"aria-expanded":d,children:(0,r.jsx)(Z.A,{size:13})}),(0,r.jsxs)("button",{type:"button",onClick:()=>{(0,eo.NH)("","user",{id:e.id,name:e.name})},className:"inline-flex items-center gap-1 px-2.5 py-1 text-2xs font-medium rounded-md border border-[var(--amber)] text-[var(--amber)] hover:bg-[var(--amber)]/10 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-pointer",children:[(0,r.jsx)(g.A,{size:10}),o.acpUseAgent]})]}),d&&j&&(0,r.jsxs)("div",{className:"mt-2.5 pt-2.5 border-t border-border/40 space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("label",{className:"text-2xs text-muted-foreground w-12 shrink-0",children:o.acpConfigCommand}),(0,r.jsx)("input",{type:"text",value:u,onChange:e=>{m(e.target.value),h("idle")},className:"flex-1 rounded-md border border-border bg-background text-foreground text-xs font-mono px-2 py-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",placeholder:j.cmd})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("label",{className:"text-2xs text-muted-foreground w-12 shrink-0",children:o.acpConfigArgs}),(0,r.jsx)("input",{type:"text",value:x,onChange:e=>{p(e.target.value),h("idle")},className:"flex-1 rounded-md border border-border bg-background text-foreground text-xs font-mono px-2 py-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",placeholder:j.args.join(" ")})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 text-2xs text-muted-foreground",children:[(0,r.jsxs)("span",{children:[o.acpConfigSource,":"]}),(0,r.jsx)("span",{className:`px-1.5 py-0.5 rounded font-medium ${"user-override"===j.source?"bg-[var(--amber)]/15 text-[var(--amber)]":"bg-muted text-muted-foreground"}`,children:y}),(0,r.jsx)("span",{className:"text-muted-foreground/50",children:"|"}),(0,r.jsxs)("span",{children:[o.acpConfigPath,": ",(0,r.jsx)("span",{className:"font-mono",children:t?.binaryPath})]})]}),(0,r.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-1",children:[a.configs[e.id]&&(0,r.jsxs)("button",{type:"button",onClick:w,className:"inline-flex items-center gap-1 px-2 py-1 text-2xs font-medium rounded-md border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(X.A,{size:10}),o.acpConfigReset]}),(0,r.jsx)("button",{type:"button",onClick:k,disabled:a.saving,className:"inline-flex items-center gap-1 px-2.5 py-1 text-2xs font-medium rounded-md bg-[var(--amber)] text-[var(--amber-foreground)] hover:bg-[var(--amber)]/90 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",children:"saved"===b?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ee.A,{size:10})," ",o.acpConfigSaved]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(et.A,{size:10})," ",o.acpConfigSave]})})]})]}),v&&!d&&(0,r.jsx)("div",{className:"mt-2.5 pt-2 border-t border-border/40 flex items-center gap-1.5 flex-wrap",children:em.map(t=>{let s=t.icon;return(0,r.jsxs)("button",{type:"button",onClick:()=>{(0,eo.NH)(t.promptSuffix,"user",{id:e.id,name:e.name})},className:"inline-flex items-center gap-1 px-2 py-0.5 text-2xs font-medium rounded-md bg-muted/60 text-muted-foreground hover:bg-muted hover:text-foreground border border-border/50 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,r.jsx)(s,{size:10}),o[t.labelKey]]},t.labelKey)})})]})}function eb({agent:e,installCmd:t}){let{t:s}=(0,l.Y)(),a=s.panels.agents,[i,o]=(0,n.useState)(!1),d=t||(e.packageName?`npm install -g ${e.packageName}`:null),c=(0,n.useCallback)(()=>{d&&navigator.clipboard.writeText(d).then(()=>{o(!0),setTimeout(()=>o(!1),2e3)}).catch(()=>{})},[d]);return(0,r.jsx)("div",{className:"group rounded-lg border border-border/60 bg-card/60 px-3 py-2 hover:border-border transition-all duration-150",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-6 h-6 rounded-md bg-muted/40 flex items-center justify-center shrink-0",children:(0,r.jsx)(Y,{size:11,className:"text-muted-foreground/60"})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:e.name}),e.description&&(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50 truncate",children:e.description})]}),d&&(0,r.jsx)("button",{type:"button",onClick:c,className:"inline-flex items-center gap-1 px-2 py-0.5 text-2xs font-medium rounded-md border border-border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring shrink-0",title:d,children:i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ee.A,{size:10})," ",a.acpCopied]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(U.A,{size:10})," ",a.acpCopyCmd]})})]})})}function eh({delegations:e}){let{t}=(0,l.Y)(),s=t.panels.agents;return(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:s.a2aDelegations}),0===e.length?(0,r.jsx)("p",{className:"text-xs text-muted-foreground/70 py-3",children:s.a2aDelegationsEmpty}):(0,r.jsx)("div",{className:"space-y-1.5",children:e.map(e=>(0,r.jsx)(ev,{record:e},e.id))})]})}let ef={pending:"bg-muted text-muted-foreground",completed:"bg-[var(--success)]/15 text-[var(--success)]",failed:"bg-[var(--error)]/15 text-[var(--error)]"};function ev({record:e}){let{t}=(0,l.Y)(),s=t.panels.agents,n={pending:s.a2aDelegationPending,completed:s.a2aDelegationCompleted,failed:s.a2aDelegationFailed},a=e.completedAt?function(e,t){let s=t.getTime()-e.getTime();if(s<1e3)return`${s}ms`;let r=Math.round(s/1e3);if(r<60)return`${r}s`;let n=Math.floor(r/60),a=r%60;return a>0?`${n}m ${a}s`:`${n}m`}(new Date(e.startedAt),new Date(e.completedAt)):null;return(0,r.jsxs)("div",{className:"rounded-lg border border-border/60 bg-card/80 px-3 py-2.5 flex items-center gap-2.5",children:[(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"text-xs font-medium text-foreground truncate",children:e.agentName}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground truncate",title:e.message,children:e.message.length>60?e.message.slice(0,60)+"...":e.message})]}),(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 ${ef[e.status]}`,children:n[e.status]}),a&&(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground/60 shrink-0 flex items-center gap-0.5",children:[(0,r.jsx)(es.A,{size:10,"aria-hidden":"true"}),a]})]})}function ej({agent:e,onRemove:t,removeCopy:s,skillsCopy:n}){let a=e.reachable?er.A:en.A,l=e.reachable?"text-[var(--success)]":"text-muted-foreground/50";return(0,r.jsxs)("div",{className:"group rounded-xl border border-border bg-card p-3.5 hover:border-[var(--amber)]/30 transition-all duration-150",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-lg bg-muted/50 flex items-center justify-center shrink-0",children:(0,r.jsx)(f.A,{size:14,className:"text-muted-foreground"})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-foreground truncate",children:e.card.name}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground truncate",children:e.card.description})]}),(0,r.jsx)(a,{size:13,className:l,"aria-hidden":"true"}),(0,r.jsx)("button",{type:"button",onClick:()=>t(e.id),className:"p-1.5 rounded-md text-muted-foreground/50 hover:text-error hover:bg-error/10 transition-colors opacity-0 group-hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:opacity-100","aria-label":s,title:s,children:(0,r.jsx)(K.A,{size:12})})]}),e.card.skills.length>0&&(0,r.jsxs)("div",{className:"mt-2.5 pt-2 border-t border-border/40 flex items-center gap-1.5",children:[(0,r.jsx)(g.A,{size:11,className:"text-muted-foreground/60 shrink-0","aria-hidden":"true"}),(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground",children:[n,": ",e.card.skills.length]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-1 ml-1",children:[e.card.skills.slice(0,3).map(e=>(0,r.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-muted/80 text-muted-foreground border border-border/50",title:e.description,children:e.name},e.id)),e.card.skills.length>3&&(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground/60",children:["+",e.card.skills.length-3]})]})]})]})}var ey=s(50538);function eN(){let[e,t]=(0,n.useState)([]),[s,a]=(0,n.useState)(!0),[l,i]=(0,n.useState)(null),o=(0,n.useCallback)(async()=>{try{a(!0);let e=await fetch("/api/acp/session");if(!e.ok)throw Error(`Failed to fetch sessions: ${e.status}`);let s=await e.json();t(s.sessions??[]),i(null)}catch(e){i(e.message)}finally{a(!1)}},[]);(0,n.useEffect)(()=>{o();let e=()=>{"visible"===document.visibilityState&&o()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[o]);let d=(0,n.useCallback)(async e=>{try{await fetch("/api/acp/session",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})}),t(t=>t.filter(t=>t.id!==e))}catch(e){console.error("Failed to close session:",e)}},[]);return s?(0,r.jsx)("div",{className:"space-y-3 animate-pulse",children:Array.from({length:3}).map((e,t)=>(0,r.jsx)("div",{className:"rounded-lg border border-border bg-card p-4",children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-full bg-muted"}),(0,r.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,r.jsx)("div",{className:"h-4 w-32 bg-muted rounded"}),(0,r.jsx)("div",{className:"h-3 w-48 bg-muted rounded"})]})]})},t))}):l?(0,r.jsxs)("div",{className:"rounded-lg border border-border bg-card p-6 text-center",children:[(0,r.jsx)("p",{className:"text-sm text-muted-foreground mb-3",children:l}),(0,r.jsx)("button",{onClick:o,className:"text-sm text-[var(--amber)] hover:underline",children:"Retry"})]}):0===e.length?(0,r.jsxs)("div",{className:"rounded-lg border border-border bg-card p-8 text-center",children:[(0,r.jsx)(ey.A,{size:32,className:"mx-auto mb-3 text-muted-foreground/40"}),(0,r.jsx)("p",{className:"text-sm font-medium text-foreground mb-1",children:"No active sessions"}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Sessions appear here when you chat with ACP agents.",(0,r.jsx)("br",{}),"Select an agent from the Network tab and send a message to start."]})]}):(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsxs)("p",{className:"text-xs text-muted-foreground font-medium uppercase tracking-wider",children:["Active Sessions (",e.length,")"]}),(0,r.jsx)("button",{onClick:o,className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Refresh"})]}),e.map(e=>{var t;let s;return(0,r.jsx)("div",{className:"group rounded-lg border border-border bg-card hover:border-[var(--amber)]/30 transition-colors p-3.5",children:(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,r.jsx)("span",{className:`inline-block w-2 h-2 rounded-full ${"active"===e.state?"bg-[var(--success)]":"error"===e.state?"bg-[var(--error)]":"bg-muted-foreground/40"}`}),(0,r.jsx)("span",{className:"text-sm font-medium text-foreground truncate",children:e.agentId}),(0,r.jsx)("span",{className:"text-2xs text-muted-foreground/60 px-1.5 py-0.5 rounded bg-muted/40",children:e.state})]}),e.cwd&&(0,r.jsx)("p",{className:"text-xs text-muted-foreground truncate font-mono",children:e.cwd}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/60 mt-1",children:(t=e.lastActivityAt,(s=Date.now()-new Date(t).getTime())<6e4?"just now":s<36e5?`${Math.floor(s/6e4)}m ago`:s<864e5?`${Math.floor(s/36e5)}h ago`:`${Math.floor(s/864e5)}d ago`)})]}),(0,r.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,r.jsx)("button",{onClick:()=>d(e.id),className:"p-1.5 rounded-md hover:bg-muted/60 text-muted-foreground hover:text-[var(--error)] transition-colors",title:"Close session",children:(0,r.jsx)(K.A,{size:14})})})]})},e.id)})]})}var ek=s(73321),ew=s(12651),eS=s(13545),eC=s(10762),eA=s(42833);function ez({op:e,copy:t}){let s=(0,ek.useRouter)(),{locale:a}=(0,l.Y)(),[i,o]=(0,n.useState)(!1),d=(0,eA.wT)(e.tool);eA.zR[d];let c=(0,eA.oK)(e.params);return(0,r.jsxs)("div",{style:{background:"var(--card)",border:"1px solid var(--border)",borderRadius:10,overflow:"hidden",marginBottom:8},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"10px 14px",cursor:"pointer",userSelect:"none"},onClick:()=>o(e=>!e),children:[(0,r.jsx)(eA.g,{kind:d,locale:a}),c&&(0,r.jsx)("span",{style:{fontSize:"0.72rem",color:"var(--amber)",flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"pointer"},onClick:e=>{e.stopPropagation(),s.push("/view/"+c.split("/").map(encodeURIComponent).join("/"))},title:c,className:"font-display",children:c}),(0,r.jsxs)("div",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:8,flexShrink:0},children:[e.agentName&&(0,r.jsx)("span",{className:"font-display",style:{fontSize:"0.62rem",fontWeight:500,padding:"1px 6px",borderRadius:999,background:"var(--muted)",color:"var(--muted-foreground)",whiteSpace:"nowrap",maxWidth:120,overflow:"hidden",textOverflow:"ellipsis"},title:e.agentName,children:e.agentName.length>30?e.agentName.slice(0,30)+"...":e.agentName}),"ok"===e.result?(0,r.jsx)(ew.A,{size:13,style:{color:"var(--success)"}}):(0,r.jsx)(eS.A,{size:13,style:{color:"var(--error)"}}),(0,r.jsx)("span",{className:"font-display",style:{fontSize:"0.68rem",color:"var(--muted-foreground)",opacity:.6},title:(0,eA.$2)(e.ts),children:(0,eA.MZ)(e.ts)}),(0,r.jsx)(j.A,{size:12,style:{color:"var(--muted-foreground)",transform:i?"rotate(180deg)":"none",transition:"transform .15s"}})]})]}),i&&(0,r.jsxs)("div",{style:{borderTop:"1px solid var(--border)",padding:"10px 14px",background:"var(--background)"},children:[(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4,marginBottom:8*!!e.message},children:Object.entries(e.params).map(([e,t])=>(0,r.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"flex-start"},children:[(0,r.jsx)("span",{className:"font-display",style:{fontSize:"0.68rem",color:"var(--muted-foreground)",opacity:.7,flexShrink:0,minWidth:80},children:e}),(0,r.jsx)("span",{className:"font-display",style:{fontSize:"0.72rem",color:"var(--foreground)",wordBreak:"break-all",lineHeight:1.5},children:function(e,t=120){let s="string"==typeof e?e:JSON.stringify(e);return s.length>t?s.slice(0,t)+"…":s}(t)})]},e))}),e.message&&(0,r.jsx)("div",{className:"font-display",style:{marginTop:6,padding:"5px 9px",borderRadius:5,fontSize:"0.72rem",background:"error"===e.result?"rgba(200,80,80,0.08)":"rgba(122,173,128,0.08)",color:"error"===e.result?"var(--error)":"var(--success)",border:`1px solid ${"error"===e.result?"rgba(200,80,80,0.2)":"rgba(122,173,128,0.2)"}`},children:e.message}),e.agentName&&(0,r.jsxs)("div",{className:"font-display",style:{marginTop:6,fontSize:"0.68rem",color:"var(--muted-foreground)"},children:[t?.agentLabel??"Agent",": ",(0,r.jsx)("span",{style:{color:"var(--foreground)",fontWeight:500},children:e.agentName})]}),(0,r.jsx)("div",{className:"font-display",style:{marginTop:6,fontSize:"0.65rem",color:"var(--muted-foreground)",opacity:.5},children:(0,eA.$2)(e.ts)})]})]})}let eM=["all","write","create","delete","read","search"];function eT(){let{t:e,locale:t}=(0,l.Y)(),[s,a]=(0,n.useState)([]),[i,o]=(0,n.useState)(!0),[d,c]=(0,n.useState)("all");(0,n.useEffect)(()=>{let e=!1,t=()=>{fetch("/api/agent-activity?limit=200").then(e=>e.json()).then(t=>{e||a(t.events??[])}).catch(()=>{}).finally(()=>{e||o(!1)})};t();let s=()=>{"visible"===document.visibilityState&&t()};return document.addEventListener("visibilitychange",s),()=>{e=!0,document.removeEventListener("visibilitychange",s)}},[]);let u=(0,n.useMemo)(()=>"all"===d?s:s.filter(e=>(0,eA.wT)(e.tool)===d),[s,d]),m=(0,n.useMemo)(()=>{let e={all:s.length};for(let t of s){let s=(0,eA.wT)(t.tool);e[s]=(e[s]??0)+1}return e},[s]),x=e.agentsContent?.activity;return i?(0,r.jsx)("div",{className:"flex items-center justify-center py-16 text-muted-foreground/50",children:(0,r.jsx)("div",{className:"animate-pulse text-sm font-display",children:x?.loading??"Loading activity..."})}):0===s.length?(0,r.jsxs)("div",{className:"font-display",style:{padding:"3rem 1rem",textAlign:"center",color:"var(--muted-foreground)",fontSize:12},children:[(0,r.jsx)(eC.A,{size:28,style:{margin:"0 auto 10px",opacity:.3}}),(0,r.jsx)("p",{children:x?.empty??"No agent operations logged yet."}),(0,r.jsx)("p",{style:{marginTop:6,opacity:.6,fontSize:11},children:x?.emptyHint??"Operations from connected agents will appear here."})]}):(0,r.jsxs)("div",{style:{maxWidth:760,margin:"0 auto",padding:"1.5rem 1rem"},children:[(0,r.jsx)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:"1.2rem",flexWrap:"wrap"},children:eM.map(e=>{let s=m[e]??0;if("all"!==e&&!s)return null;let n="all"!==e?eA.zR[e]:void 0,a=d===e;return(0,r.jsxs)("button",{onClick:()=>c(e),className:"font-display",style:{display:"inline-flex",alignItems:"center",gap:4,padding:"3px 10px",borderRadius:999,fontSize:"0.7rem",cursor:"pointer",border:"none",background:a?n?.bg??"var(--accent)":"var(--muted)",color:a?n?.text??"var(--foreground)":"var(--muted-foreground)",outline:a?`1px solid ${n?.border??"var(--border)"}`:"none",transition:"all .1s"},children:["all"!==e&&(0,r.jsx)(eA.hf,{kind:e,size:10}),"all"===e?t?.startsWith("zh")?"全部":"All":eA.CF[t?.startsWith("zh")?"zh":"en"][e]," ",(0,r.jsxs)("span",{style:{opacity:.6},children:["(",s,")"]})]},e)})}),(0,r.jsx)("div",{children:u.map((e,t)=>(0,r.jsx)(ez,{op:e,copy:x},e.id??t))})]})}var eF=s(90777);function eR({tab:e}){let{t}=(0,l.Y)(),s=t.agentsContent,m=(0,i.kr)(),x=(0,o.V)(),g=(0,n.useMemo)(()=>"activity"===e?{title:s.navActivity??"Activity",subtitle:s.activitySubtitle??"Agent operations audit log."}:"sessions"===e?{title:"Sessions",subtitle:"Active ACP agent sessions."}:"a2a"===e?{title:s.navNetwork,subtitle:s.a2aTabEmptyHint}:"skills"===e?{title:s.navSkills,subtitle:s.skills.capabilityGroups}:"mcp"===e?{title:s.navMcp,subtitle:s.mcp.connectionGraph}:{title:s.title,subtitle:s.subtitle},[s,e]),p=(0,n.useMemo)(()=>(0,u.$t)(m.agents),[m.agents]),b=m.status?.connectionMode?.mcp??!1,h=(0,n.useMemo)(()=>(0,u.zK)({mcpRunning:!!m.status?.running,mcpEnabled:b,detectedCount:p.detected.length,notFoundCount:p.notFound.length,allSkillsDisabled:m.skills.length>0&&m.skills.every(e=>!e.enabled),copy:s.overview}),[m.skills,m.status?.running,b,p.detected.length,p.notFound.length,s.overview]),f=(0,n.useMemo)(()=>m.skills.filter(e=>e.enabled).length,[m.skills]),[v,j]=(0,n.useState)(!1),[y,N]=(0,n.useState)(null),[k,S]=(0,n.useState)(null),[A,z]=(0,n.useState)(!1),M=(0,n.useCallback)(()=>{N(null),j(!0)},[]),T=(0,n.useCallback)(e=>{N(e),j(!0)},[]),F=(0,n.useCallback)(e=>{S(e)},[]),R=(0,n.useCallback)(async()=>{if(k){z(!0);try{let e=await fetch("/api/agents/custom",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:k.key})});if(e.ok)a.oR.success(s.overview.customAgentRemoved(k.name)),m.refresh();else{let t=await e.json();a.oR.error(t.error||s.overview.customAgentFailedRemove)}}catch{a.oR.error(s.overview.customAgentNetworkError)}finally{z(!1),S(null)}}},[k,m,s.overview]),$=(0,n.useCallback)(()=>{m.refresh()},[m]),E=async e=>{let t=m.agents.find(t=>t.key===e);if(!t)return;let s=(0,c.$k)(t,m.status,t.preferredTransport);await (0,d.l)(s.snippet)&&a.oR.copy()};return(0,r.jsxs)("div",{className:"content-width px-4 md:px-6 py-8 md:py-10",children:[(0,r.jsxs)("header",{className:"mb-6",children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold tracking-tight text-foreground",children:g.title}),(0,r.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:g.subtitle})]}),m.loading&&"overview"===e&&(0,r.jsx)(eD,{}),!m.loading&&"overview"===e&&(0,r.jsx)(C,{copy:s.overview,buckets:p,riskQueue:h,mcpRunning:!!m.status?.running,mcpPort:m.status?.port??null,mcpToolCount:m.status?.toolCount??0,mcpEnabled:b,enabledSkillCount:f,allAgents:m.agents,pulseCopy:s.workspacePulse,a2aCount:x.agents.length,onAddCustomAgent:M,onEditCustomAgent:T,onRemoveCustomAgent:F}),"mcp"===e&&b&&(0,r.jsx)(D,{copy:{...s.mcp,status:s.status},mcp:m,buckets:p,copyState:null,onCopySnippet:E}),"mcp"===e&&!b&&!m.loading&&(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:s.mcp?.mcpDisabledMessage??"MCP mode is not enabled."}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/60 mt-1",children:s.mcp?.mcpDisabledHint??"Enable it in Settings → Connections to use MCP agents."})]}),"skills"===e&&(0,r.jsx)(H,{copy:s.skills,mcp:m,buckets:p}),"a2a"===e&&(0,r.jsx)(ec,{agents:x.agents,discovering:x.discovering,error:x.error,onDiscover:x.discover,onRemove:x.remove}),"sessions"===e&&(0,r.jsx)(eN,{}),"activity"===e&&(0,r.jsx)(eT,{}),(0,r.jsx)(eF.A,{open:v,onClose:()=>{j(!1),N(null)},onSuccess:$,existingAgents:m.agents,editAgent:y}),(0,r.jsx)(w.TM,{open:!!k,title:k?s.overview.customAgentRemoveTitle(k.name):"",message:s.overview.customAgentRemoveMessage,confirmLabel:s.overview.customAgentRemoveConfirm,cancelLabel:s.overview.customAgentCancel,onConfirm:R,onCancel:()=>S(null),variant:"destructive"})]})}function eD(){return(0,r.jsxs)("div",{className:"space-y-5 animate-pulse","aria-busy":"true","aria-label":"Loading",children:[(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[(0,r.jsx)("div",{className:"px-4 py-2.5 border-b border-border bg-muted/10",children:(0,r.jsx)("div",{className:"h-4 w-32 bg-muted rounded"})}),(0,r.jsx)("div",{className:"grid grid-cols-3 md:grid-cols-6 divide-x divide-border",children:Array.from({length:6}).map((e,t)=>(0,r.jsxs)("div",{className:"px-3 py-3.5 flex flex-col items-center gap-2",children:[(0,r.jsx)("div",{className:"h-3 w-16 bg-muted rounded"}),(0,r.jsx)("div",{className:"h-5 w-8 bg-muted rounded"})]},t))})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:Array.from({length:2}).map((e,t)=>(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 flex items-start gap-3.5",children:[(0,r.jsx)("div",{className:"w-10 h-10 rounded-lg bg-muted"}),(0,r.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,r.jsx)("div",{className:"h-4 w-20 bg-muted rounded"}),(0,r.jsx)("div",{className:"h-3 w-full bg-muted rounded"})]})]},t))}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsx)("div",{className:"h-4 w-24 bg-muted rounded"}),(0,r.jsx)("div",{className:"h-3 w-16 bg-muted rounded"})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:Array.from({length:6}).map((e,t)=>(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-card p-3.5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 mb-3",children:[(0,r.jsx)("div",{className:"w-7 h-7 rounded-full bg-muted"}),(0,r.jsx)("div",{className:"flex-1 h-4 bg-muted rounded"}),(0,r.jsx)("div",{className:"h-4 w-16 bg-muted rounded"})]}),(0,r.jsx)("div",{className:"h-3 w-2/3 bg-muted rounded"})]},t))})]})]})}},64616:(e,t,s)=>{Promise.resolve().then(s.bind(s,64435))},66709:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var r=s(95155),n=s(12115),a=s(92451),l=s(33210),i=s(6296),o=s(13545),d=s(12651),c=s(91053);function u({open:e,onClose:t,onDiscover:s,discovering:u,error:m}){let{t:x}=(0,c.Y)(),g=x.panels.agents,[p,b]=(0,n.useState)(""),[h,f]=(0,n.useState)(null);if(!e)return null;let v=async()=>{if(!p.trim()||u)return;f(null);let e=await s(p.trim());e&&f(e)},j=()=>{b(""),f(null),t()};return(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",onClick:j,children:(0,r.jsxs)("div",{className:"bg-popover border border-border rounded-xl shadow-lg w-full max-w-md mx-4 p-5",onClick:e=>e.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":g.a2aDiscover,children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsxs)("h3",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,r.jsx)(a.A,{size:15,className:"text-muted-foreground"}),g.a2aDiscover]}),(0,r.jsx)("button",{type:"button",onClick:j,className:"p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":"Close",children:(0,r.jsx)(l.A,{size:14})})]}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground mb-3",children:g.a2aDiscoverHint}),(0,r.jsxs)("div",{className:"flex gap-2 mb-4",children:[(0,r.jsx)("input",{type:"url",value:p,onChange:e=>b(e.target.value),onKeyDown:e=>{"Enter"===e.key&&v(),"Escape"===e.key&&t()},placeholder:g.a2aDiscoverPlaceholder,disabled:u,className:"flex-1 px-3 py-2 text-xs rounded-lg border border-border bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring disabled:opacity-50",autoFocus:!0}),(0,r.jsxs)("button",{type:"button",onClick:v,disabled:u||!p.trim(),className:"px-3 py-2 text-xs font-medium rounded-lg bg-foreground text-background hover:bg-foreground/90 disabled:opacity-50 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring flex items-center gap-1.5 shrink-0",children:[u&&(0,r.jsx)(i.A,{size:12,className:"animate-spin"}),u?g.a2aDiscovering:g.a2aDiscover]})]}),m&&!h&&(0,r.jsx)("div",{className:"rounded-lg border border-error/30 bg-error/5 px-3 py-2.5 mb-3",children:(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)(o.A,{size:14,className:"text-error mt-0.5 shrink-0"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-xs font-medium text-error",children:g.a2aDiscoverFailed}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground mt-0.5",children:g.a2aDiscoverFailedHint})]})]})}),h&&(0,r.jsx)("div",{className:"rounded-lg border border-success/30 bg-success/5 px-3 py-2.5",children:(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)(d.A,{size:14,className:"text-success mt-0.5 shrink-0"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"text-xs font-medium text-success mb-1.5",children:g.a2aDiscoverSuccess}),(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsxs)("p",{className:"text-xs font-medium text-foreground truncate",title:h.card.name,children:[h.card.name,(0,r.jsxs)("span",{className:"text-2xs text-muted-foreground ml-1.5",children:["v",h.card.version]})]}),(0,r.jsx)("p",{className:"text-2xs text-muted-foreground truncate",title:h.card.description,children:h.card.description}),h.card.skills.length>0&&(0,r.jsxs)("div",{className:"mt-1.5",children:[(0,r.jsxs)("p",{className:"text-2xs text-muted-foreground mb-1",children:[g.a2aSkills,":"]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1",children:h.card.skills.map(e=>(0,r.jsx)("span",{className:"text-2xs px-1.5 py-0.5 rounded bg-muted/80 text-muted-foreground border border-border/50",title:e.description,children:e.name},e.id))})]}),(0,r.jsxs)("p",{className:"text-2xs text-muted-foreground mt-1 truncate",title:h.endpoint,children:[g.a2aEndpoint,": ",h.endpoint]})]})]})]})})]})})}},73035:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(90425).A)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]])},77800:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(90425).A)("toggle-left",[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]])},93219:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(90425).A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])}},e=>{e.O(0,[4237,8409,8658,1053,8252,6636,7249,8441,3794,7358],()=>e(e.s=64616)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,160,165,635,706,910,1124,1131,1165,1212,1288,2036,2287,2437,2522,2772,2920,2950,3358,3390,3757,3896,3945,4048,4209,4230,4473,4503,4558,4888,4896,5177,5245,5411,5620,5684,5704,5931,6202,6306,6819,6828,6988,7330,7538,7581,7607,7646,7711,7822,7839,7851,8167,8181,8232,8616,8641,9120,9188,9303,9491,9596,9725,9861,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);