@geminilight/mindos-windows-arm64 1.0.6 → 1.0.7

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 (528) 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 +34 -34
  4. package/_standalone/__next/build-manifest.json +4 -4
  5. package/_standalone/__next/prerender-manifest.json +3 -3
  6. package/_standalone/__next/react-loadable-manifest.json +4 -4
  7. package/_standalone/__next/required-server-files.json +4 -4
  8. package/_standalone/__next/server/app/.well-known/agent-card.json/route.js +1 -1
  9. package/_standalone/__next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +1 -1
  10. package/_standalone/__next/server/app/_global-error/page.js +3 -3
  11. package/_standalone/__next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  12. package/_standalone/__next/server/app/_global-error.html +2 -2
  13. package/_standalone/__next/server/app/_global-error.rsc +3 -3
  14. package/_standalone/__next/server/app/_global-error.segments/_full.segment.rsc +3 -3
  15. package/_standalone/__next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  16. package/_standalone/__next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  17. package/_standalone/__next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  18. package/_standalone/__next/server/app/_global-error.segments/_index.segment.rsc +2 -2
  19. package/_standalone/__next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  20. package/_standalone/__next/server/app/_not-found/page.js +2 -2
  21. package/_standalone/__next/server/app/_not-found/page.js.nft.json +1 -1
  22. package/_standalone/__next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  23. package/_standalone/__next/server/app/agents/[agentKey]/page.js +2 -2
  24. package/_standalone/__next/server/app/agents/[agentKey]/page.js.nft.json +1 -1
  25. package/_standalone/__next/server/app/agents/[agentKey]/page_client-reference-manifest.js +1 -1
  26. package/_standalone/__next/server/app/agents/page.js +2 -2
  27. package/_standalone/__next/server/app/agents/page.js.nft.json +1 -1
  28. package/_standalone/__next/server/app/agents/page_client-reference-manifest.js +1 -1
  29. package/_standalone/__next/server/app/api/a2a/agents/route.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.js +1 -1
  32. package/_standalone/__next/server/app/api/a2a/delegations/route_client-reference-manifest.js +1 -1
  33. package/_standalone/__next/server/app/api/a2a/discover/route.js +1 -1
  34. package/_standalone/__next/server/app/api/a2a/discover/route_client-reference-manifest.js +1 -1
  35. package/_standalone/__next/server/app/api/a2a/route.js +1 -1
  36. package/_standalone/__next/server/app/api/a2a/route_client-reference-manifest.js +1 -1
  37. package/_standalone/__next/server/app/api/acp/config/route.js +1 -1
  38. package/_standalone/__next/server/app/api/acp/config/route_client-reference-manifest.js +1 -1
  39. package/_standalone/__next/server/app/api/acp/detect/route.js +1 -1
  40. package/_standalone/__next/server/app/api/acp/detect/route_client-reference-manifest.js +1 -1
  41. package/_standalone/__next/server/app/api/acp/install/route.js +1 -1
  42. package/_standalone/__next/server/app/api/acp/install/route_client-reference-manifest.js +1 -1
  43. package/_standalone/__next/server/app/api/acp/registry/route.js +1 -1
  44. package/_standalone/__next/server/app/api/acp/registry/route_client-reference-manifest.js +1 -1
  45. package/_standalone/__next/server/app/api/acp/session/route.js +1 -1
  46. package/_standalone/__next/server/app/api/acp/session/route_client-reference-manifest.js +1 -1
  47. package/_standalone/__next/server/app/api/agent-activity/route.js +1 -1
  48. package/_standalone/__next/server/app/api/agent-activity/route_client-reference-manifest.js +1 -1
  49. package/_standalone/__next/server/app/api/agents/copy-skill/route.js +1 -1
  50. package/_standalone/__next/server/app/api/agents/copy-skill/route_client-reference-manifest.js +1 -1
  51. package/_standalone/__next/server/app/api/agents/custom/detect/route.js +1 -1
  52. package/_standalone/__next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +1 -1
  53. package/_standalone/__next/server/app/api/agents/custom/route.js +1 -1
  54. package/_standalone/__next/server/app/api/agents/custom/route_client-reference-manifest.js +1 -1
  55. package/_standalone/__next/server/app/api/ask/route.js +2 -2
  56. package/_standalone/__next/server/app/api/ask/route_client-reference-manifest.js +1 -1
  57. package/_standalone/__next/server/app/api/ask-sessions/route.js +1 -1
  58. package/_standalone/__next/server/app/api/ask-sessions/route_client-reference-manifest.js +1 -1
  59. package/_standalone/__next/server/app/api/auth/route.js +1 -1
  60. package/_standalone/__next/server/app/api/auth/route_client-reference-manifest.js +1 -1
  61. package/_standalone/__next/server/app/api/backlinks/route.js +1 -1
  62. package/_standalone/__next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
  63. package/_standalone/__next/server/app/api/bootstrap/route.js +1 -1
  64. package/_standalone/__next/server/app/api/bootstrap/route_client-reference-manifest.js +1 -1
  65. package/_standalone/__next/server/app/api/changes/route.js +1 -1
  66. package/_standalone/__next/server/app/api/changes/route_client-reference-manifest.js +1 -1
  67. package/_standalone/__next/server/app/api/channels/verify/route.js +1 -1
  68. package/_standalone/__next/server/app/api/channels/verify/route_client-reference-manifest.js +1 -1
  69. package/_standalone/__next/server/app/api/connect/route.js +1 -1
  70. package/_standalone/__next/server/app/api/connect/route_client-reference-manifest.js +1 -1
  71. package/_standalone/__next/server/app/api/embedding/route.js +1 -1
  72. package/_standalone/__next/server/app/api/embedding/route_client-reference-manifest.js +1 -1
  73. package/_standalone/__next/server/app/api/export/route.js +1 -1
  74. package/_standalone/__next/server/app/api/export/route_client-reference-manifest.js +1 -1
  75. package/_standalone/__next/server/app/api/extract-docx/route.js +1 -1
  76. package/_standalone/__next/server/app/api/extract-docx/route_client-reference-manifest.js +1 -1
  77. package/_standalone/__next/server/app/api/extract-pdf/route.js +2 -2
  78. package/_standalone/__next/server/app/api/extract-pdf/route_client-reference-manifest.js +1 -1
  79. package/_standalone/__next/server/app/api/file/import/route.js +1 -1
  80. package/_standalone/__next/server/app/api/file/import/route_client-reference-manifest.js +1 -1
  81. package/_standalone/__next/server/app/api/file/raw/route.js +1 -1
  82. package/_standalone/__next/server/app/api/file/raw/route_client-reference-manifest.js +1 -1
  83. package/_standalone/__next/server/app/api/file/route.js +1 -1
  84. package/_standalone/__next/server/app/api/file/route_client-reference-manifest.js +1 -1
  85. package/_standalone/__next/server/app/api/files/route.js +1 -1
  86. package/_standalone/__next/server/app/api/files/route_client-reference-manifest.js +1 -1
  87. package/_standalone/__next/server/app/api/git/route.js +1 -1
  88. package/_standalone/__next/server/app/api/git/route_client-reference-manifest.js +1 -1
  89. package/_standalone/__next/server/app/api/graph/route.js +1 -1
  90. package/_standalone/__next/server/app/api/graph/route_client-reference-manifest.js +1 -1
  91. package/_standalone/__next/server/app/api/health/route.js +1 -1
  92. package/_standalone/__next/server/app/api/health/route_client-reference-manifest.js +1 -1
  93. package/_standalone/__next/server/app/api/im/activity/route.js +1 -1
  94. package/_standalone/__next/server/app/api/im/activity/route_client-reference-manifest.js +1 -1
  95. package/_standalone/__next/server/app/api/im/config/route.js +1 -1
  96. package/_standalone/__next/server/app/api/im/config/route_client-reference-manifest.js +1 -1
  97. package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route.js +1 -1
  98. package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route_client-reference-manifest.js +1 -1
  99. package/_standalone/__next/server/app/api/im/feishu/long-connection/route.js +1 -1
  100. package/_standalone/__next/server/app/api/im/feishu/long-connection/route_client-reference-manifest.js +1 -1
  101. package/_standalone/__next/server/app/api/im/status/route.js +1 -1
  102. package/_standalone/__next/server/app/api/im/status/route_client-reference-manifest.js +1 -1
  103. package/_standalone/__next/server/app/api/im/test/route.js +1 -1
  104. package/_standalone/__next/server/app/api/im/test/route_client-reference-manifest.js +1 -1
  105. package/_standalone/__next/server/app/api/im/webhook/feishu/route.js +1 -1
  106. package/_standalone/__next/server/app/api/im/webhook/feishu/route_client-reference-manifest.js +1 -1
  107. package/_standalone/__next/server/app/api/im/webhook-status/route.js +1 -1
  108. package/_standalone/__next/server/app/api/im/webhook-status/route_client-reference-manifest.js +1 -1
  109. package/_standalone/__next/server/app/api/inbox/clip/route.js +2 -2
  110. package/_standalone/__next/server/app/api/inbox/clip/route_client-reference-manifest.js +1 -1
  111. package/_standalone/__next/server/app/api/inbox/route.js +1 -1
  112. package/_standalone/__next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
  113. package/_standalone/__next/server/app/api/init/route.js +1 -1
  114. package/_standalone/__next/server/app/api/init/route_client-reference-manifest.js +1 -1
  115. package/_standalone/__next/server/app/api/lint/route.js +1 -1
  116. package/_standalone/__next/server/app/api/lint/route_client-reference-manifest.js +1 -1
  117. package/_standalone/__next/server/app/api/mcp/agents/route.js +1 -1
  118. package/_standalone/__next/server/app/api/mcp/agents/route_client-reference-manifest.js +1 -1
  119. package/_standalone/__next/server/app/api/mcp/direct-tools/route.js +1 -1
  120. package/_standalone/__next/server/app/api/mcp/direct-tools/route_client-reference-manifest.js +1 -1
  121. package/_standalone/__next/server/app/api/mcp/install/route.js +1 -1
  122. package/_standalone/__next/server/app/api/mcp/install/route_client-reference-manifest.js +1 -1
  123. package/_standalone/__next/server/app/api/mcp/install-skill/route.js +1 -1
  124. package/_standalone/__next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +1 -1
  125. package/_standalone/__next/server/app/api/mcp/restart/route.js +1 -1
  126. package/_standalone/__next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
  127. package/_standalone/__next/server/app/api/mcp/status/route.js +1 -1
  128. package/_standalone/__next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
  129. package/_standalone/__next/server/app/api/mcp/tools/route.js +1 -1
  130. package/_standalone/__next/server/app/api/mcp/tools/route_client-reference-manifest.js +1 -1
  131. package/_standalone/__next/server/app/api/mcp/uninstall/route.js +1 -1
  132. package/_standalone/__next/server/app/api/mcp/uninstall/route_client-reference-manifest.js +1 -1
  133. package/_standalone/__next/server/app/api/monitoring/route.js +1 -1
  134. package/_standalone/__next/server/app/api/monitoring/route_client-reference-manifest.js +1 -1
  135. package/_standalone/__next/server/app/api/obsidian/compat-report/route.js +1 -1
  136. package/_standalone/__next/server/app/api/obsidian/compat-report/route_client-reference-manifest.js +1 -1
  137. package/_standalone/__next/server/app/api/obsidian/import/route.js +1 -1
  138. package/_standalone/__next/server/app/api/obsidian/import/route_client-reference-manifest.js +1 -1
  139. package/_standalone/__next/server/app/api/obsidian-plugins/settings/route.js +2 -2
  140. package/_standalone/__next/server/app/api/obsidian-plugins/settings/route_client-reference-manifest.js +1 -1
  141. package/_standalone/__next/server/app/api/recent-files/route.js +1 -1
  142. package/_standalone/__next/server/app/api/recent-files/route_client-reference-manifest.js +1 -1
  143. package/_standalone/__next/server/app/api/restart/route.js +1 -1
  144. package/_standalone/__next/server/app/api/restart/route_client-reference-manifest.js +1 -1
  145. package/_standalone/__next/server/app/api/search/prewarm/route.js +1 -1
  146. package/_standalone/__next/server/app/api/search/prewarm/route_client-reference-manifest.js +1 -1
  147. package/_standalone/__next/server/app/api/search/route.js +1 -1
  148. package/_standalone/__next/server/app/api/search/route_client-reference-manifest.js +1 -1
  149. package/_standalone/__next/server/app/api/settings/list-models/route.js +1 -1
  150. package/_standalone/__next/server/app/api/settings/list-models/route_client-reference-manifest.js +1 -1
  151. package/_standalone/__next/server/app/api/settings/reset-token/route.js +1 -1
  152. package/_standalone/__next/server/app/api/settings/reset-token/route_client-reference-manifest.js +1 -1
  153. package/_standalone/__next/server/app/api/settings/route.js +1 -1
  154. package/_standalone/__next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  155. package/_standalone/__next/server/app/api/settings/test-key/route.js +1 -1
  156. package/_standalone/__next/server/app/api/settings/test-key/route_client-reference-manifest.js +1 -1
  157. package/_standalone/__next/server/app/api/setup/check-path/route.js +1 -1
  158. package/_standalone/__next/server/app/api/setup/check-path/route_client-reference-manifest.js +1 -1
  159. package/_standalone/__next/server/app/api/setup/check-port/route.js +1 -1
  160. package/_standalone/__next/server/app/api/setup/check-port/route_client-reference-manifest.js +1 -1
  161. package/_standalone/__next/server/app/api/setup/generate-token/route.js +1 -1
  162. package/_standalone/__next/server/app/api/setup/generate-token/route_client-reference-manifest.js +1 -1
  163. package/_standalone/__next/server/app/api/setup/ls/route.js +1 -1
  164. package/_standalone/__next/server/app/api/setup/ls/route_client-reference-manifest.js +1 -1
  165. package/_standalone/__next/server/app/api/setup/route.js +1 -1
  166. package/_standalone/__next/server/app/api/setup/route_client-reference-manifest.js +1 -1
  167. package/_standalone/__next/server/app/api/skills/route.js +1 -1
  168. package/_standalone/__next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  169. package/_standalone/__next/server/app/api/space-overview/route.js +1 -1
  170. package/_standalone/__next/server/app/api/space-overview/route_client-reference-manifest.js +1 -1
  171. package/_standalone/__next/server/app/api/sync/route.js +1 -1
  172. package/_standalone/__next/server/app/api/sync/route_client-reference-manifest.js +1 -1
  173. package/_standalone/__next/server/app/api/tree-version/route.js +1 -1
  174. package/_standalone/__next/server/app/api/tree-version/route_client-reference-manifest.js +1 -1
  175. package/_standalone/__next/server/app/api/uninstall/route.js +1 -1
  176. package/_standalone/__next/server/app/api/uninstall/route_client-reference-manifest.js +1 -1
  177. package/_standalone/__next/server/app/api/update/route.js +1 -1
  178. package/_standalone/__next/server/app/api/update/route_client-reference-manifest.js +1 -1
  179. package/_standalone/__next/server/app/api/update-check/route.js +1 -1
  180. package/_standalone/__next/server/app/api/update-check/route_client-reference-manifest.js +1 -1
  181. package/_standalone/__next/server/app/api/update-status/route.js +1 -1
  182. package/_standalone/__next/server/app/api/update-status/route_client-reference-manifest.js +1 -1
  183. package/_standalone/__next/server/app/api/workflows/route.js +1 -1
  184. package/_standalone/__next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
  185. package/_standalone/__next/server/app/capture/history/page.js +2 -2
  186. package/_standalone/__next/server/app/capture/history/page.js.nft.json +1 -1
  187. package/_standalone/__next/server/app/capture/history/page_client-reference-manifest.js +1 -1
  188. package/_standalone/__next/server/app/capture/page.js +2 -2
  189. package/_standalone/__next/server/app/capture/page.js.nft.json +1 -1
  190. package/_standalone/__next/server/app/capture/page_client-reference-manifest.js +1 -1
  191. package/_standalone/__next/server/app/changelog/page.js +2 -2
  192. package/_standalone/__next/server/app/changelog/page.js.nft.json +1 -1
  193. package/_standalone/__next/server/app/changelog/page_client-reference-manifest.js +1 -1
  194. package/_standalone/__next/server/app/changes/page.js +2 -2
  195. package/_standalone/__next/server/app/changes/page.js.nft.json +1 -1
  196. package/_standalone/__next/server/app/changes/page_client-reference-manifest.js +1 -1
  197. package/_standalone/__next/server/app/echo/[segment]/page.js +4 -4
  198. package/_standalone/__next/server/app/echo/[segment]/page.js.nft.json +1 -1
  199. package/_standalone/__next/server/app/echo/[segment]/page_client-reference-manifest.js +1 -1
  200. package/_standalone/__next/server/app/echo/page.js +2 -2
  201. package/_standalone/__next/server/app/echo/page.js.nft.json +1 -1
  202. package/_standalone/__next/server/app/echo/page_client-reference-manifest.js +1 -1
  203. package/_standalone/__next/server/app/explore/page.js +3 -3
  204. package/_standalone/__next/server/app/explore/page.js.nft.json +1 -1
  205. package/_standalone/__next/server/app/explore/page_client-reference-manifest.js +1 -1
  206. package/_standalone/__next/server/app/help/page.js +2 -2
  207. package/_standalone/__next/server/app/help/page.js.nft.json +1 -1
  208. package/_standalone/__next/server/app/help/page_client-reference-manifest.js +1 -1
  209. package/_standalone/__next/server/app/icon.svg/route.js +1 -1
  210. package/_standalone/__next/server/app/inbox/history/page.js +2 -2
  211. package/_standalone/__next/server/app/inbox/history/page.js.nft.json +1 -1
  212. package/_standalone/__next/server/app/inbox/history/page_client-reference-manifest.js +1 -1
  213. package/_standalone/__next/server/app/login/page.js +2 -2
  214. package/_standalone/__next/server/app/login/page.js.nft.json +1 -1
  215. package/_standalone/__next/server/app/login/page_client-reference-manifest.js +1 -1
  216. package/_standalone/__next/server/app/page.js +2 -2
  217. package/_standalone/__next/server/app/page.js.nft.json +1 -1
  218. package/_standalone/__next/server/app/page_client-reference-manifest.js +1 -1
  219. package/_standalone/__next/server/app/settings/page.js +2 -2
  220. package/_standalone/__next/server/app/settings/page.js.nft.json +1 -1
  221. package/_standalone/__next/server/app/settings/page_client-reference-manifest.js +1 -1
  222. package/_standalone/__next/server/app/setup/page.js +2 -2
  223. package/_standalone/__next/server/app/setup/page.js.nft.json +1 -1
  224. package/_standalone/__next/server/app/setup/page_client-reference-manifest.js +1 -1
  225. package/_standalone/__next/server/app/todo/page.js +2 -2
  226. package/_standalone/__next/server/app/todo/page.js.nft.json +1 -1
  227. package/_standalone/__next/server/app/todo/page_client-reference-manifest.js +1 -1
  228. package/_standalone/__next/server/app/trash/page.js +3 -3
  229. package/_standalone/__next/server/app/trash/page.js.nft.json +1 -1
  230. package/_standalone/__next/server/app/trash/page_client-reference-manifest.js +1 -1
  231. package/_standalone/__next/server/app/view/[...path]/page.js +3 -3
  232. package/_standalone/__next/server/app/view/[...path]/page.js.nft.json +1 -1
  233. package/_standalone/__next/server/app/view/[...path]/page_client-reference-manifest.js +1 -1
  234. package/_standalone/__next/server/app/wiki/page.js +2 -2
  235. package/_standalone/__next/server/app/wiki/page.js.nft.json +1 -1
  236. package/_standalone/__next/server/app/wiki/page_client-reference-manifest.js +1 -1
  237. package/_standalone/__next/server/app-paths-manifest.json +34 -34
  238. package/_standalone/__next/server/chunks/{6602.js → 1834.js} +21 -21
  239. package/_standalone/__next/server/chunks/3466.js +1 -1
  240. package/_standalone/__next/server/chunks/3727.js +1 -1
  241. package/_standalone/__next/server/chunks/4793.js +1 -1
  242. package/_standalone/__next/server/chunks/6377.js +3 -3
  243. package/_standalone/__next/server/chunks/9350.js +2 -2
  244. package/_standalone/__next/server/chunks/{3219.js → 9773.js} +3 -3
  245. package/_standalone/__next/server/middleware-build-manifest.js +1 -1
  246. package/_standalone/__next/server/middleware-react-loadable-manifest.js +1 -1
  247. package/_standalone/__next/server/middleware.js +2 -2
  248. package/_standalone/__next/server/pages/500.html +2 -2
  249. package/_standalone/__next/server/server-reference-manifest.js +1 -1
  250. package/_standalone/__next/server/server-reference-manifest.json +1 -1
  251. package/_standalone/__next/static/chunks/{2461-a1073a0bd04c228a.js → 1957-723ac4eb5200214c.js} +3 -3
  252. package/_standalone/__next/static/chunks/{47-41e1a06e6d389b69.js → 2737-f4970f0684c334d6.js} +1 -1
  253. package/_standalone/__next/static/chunks/{9216.d3339c27169b21bf.js → 6728.e1841cddb63308b0.js} +1 -1
  254. package/_standalone/__next/static/chunks/{6947.7e50e18da7dc4aef.js → 6947.fb89346ef2f6be17.js} +1 -1
  255. package/_standalone/__next/static/chunks/app/_not-found/{page-ec6fa498a07e6fd9.js → page-eaedcec1b693c03c.js} +1 -1
  256. package/{static-web/_next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js → _standalone/__next/static/chunks/app/agents/[agentKey]/page-1dac12945bfbaf35.js} +1 -1
  257. package/{static-web/_next/static/chunks/app/agents/page-6591b482a193e657.js → _standalone/__next/static/chunks/app/agents/page-7ff2e39ca12eb20a.js} +1 -1
  258. package/_standalone/__next/static/chunks/app/capture/history/page-51db96203209a441.js +1 -0
  259. package/_standalone/__next/static/chunks/app/capture/page-3bf09d1f5e1c379c.js +1 -0
  260. package/_standalone/__next/static/chunks/app/changelog/page-01dc22b6d2230c7f.js +1 -0
  261. package/_standalone/__next/static/chunks/app/changes/page-c9f8d5632a001849.js +1 -0
  262. package/{static-web/_next/static/chunks/app/echo/[segment]/page-c5ea40ac04f2dc29.js → _standalone/__next/static/chunks/app/echo/[segment]/page-44b6b8e7fd0bbe31.js} +2 -2
  263. package/_standalone/__next/static/chunks/app/echo/page-c9f8d5632a001849.js +1 -0
  264. package/_standalone/__next/static/chunks/app/{error-c46d1b03d5e3289c.js → error-1cfcd6abd93c3837.js} +1 -1
  265. package/_standalone/__next/static/chunks/app/explore/{page-5d6dd4af8d1bb468.js → page-117fcf54b8b9765c.js} +1 -1
  266. package/_standalone/__next/static/chunks/app/global-error-11b333dcf222bc09.js +1 -0
  267. package/_standalone/__next/static/chunks/app/help/{page-3f0a1a8e51249cb2.js → page-6efb8aa3a3c169fa.js} +1 -1
  268. package/_standalone/__next/static/chunks/app/inbox/history/page-913645bbd6161116.js +1 -0
  269. package/{static-web/_next/static/chunks/app/layout-5966cd317bbed698.js → _standalone/__next/static/chunks/app/layout-24a31ea28c556e82.js} +7 -7
  270. package/_standalone/__next/static/chunks/app/login/page-7f9aca3d51266bec.js +1 -0
  271. package/{static-web/_next/static/chunks/app/page-5c9489e28657376e.js → _standalone/__next/static/chunks/app/page-35662964020c0ea9.js} +1 -1
  272. package/_standalone/__next/static/chunks/app/settings/{page-c9f44b3447a41431.js → page-f816f13a34613538.js} +1 -1
  273. package/{static-web/_next/static/chunks/app/setup/page-f5de08d0d588c778.js → _standalone/__next/static/chunks/app/setup/page-a1027871dc33ffbd.js} +1 -1
  274. package/_standalone/__next/static/chunks/app/todo/page-54c3ec77f662ff73.js +1 -0
  275. package/_standalone/__next/static/chunks/app/trash/page-50622e3df2047204.js +1 -0
  276. package/_standalone/__next/static/chunks/app/view/[...path]/{error-f73092e638a4e999.js → error-c9a3f6de7c963c74.js} +1 -1
  277. package/_standalone/__next/static/chunks/app/view/[...path]/{not-found-80e5f4054819b372.js → not-found-5a4f2b4fbe28d617.js} +1 -1
  278. package/_standalone/__next/static/chunks/app/view/[...path]/page-b10d3819827da1c2.js +12 -0
  279. package/{static-web/_next/static/chunks/app/wiki/page-4c9bc816069b6f2a.js → _standalone/__next/static/chunks/app/wiki/page-7afd3b97c1ea1b8c.js} +2 -2
  280. package/_standalone/__next/static/chunks/{main-app-23adfdc06470abb6.js → main-app-8a6081b103b8f494.js} +1 -1
  281. package/_standalone/__next/static/chunks/webpack-7d8c24c6af17dd51.js +1 -0
  282. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  283. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  284. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  285. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  286. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  287. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  288. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  289. package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  290. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  291. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  292. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  293. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  294. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  295. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  296. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  297. package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  298. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  299. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  300. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  301. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  302. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  303. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  304. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  305. package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  306. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  307. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  308. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  309. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  310. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  311. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  312. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  313. package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  314. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  315. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  316. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  317. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  318. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  319. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  320. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  321. package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  322. package/_standalone/__node_modules/@aws-sdk/xml-builder/node_modules/.bin/fxparser +2 -2
  323. package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/.bin/pi-ai +2 -2
  324. package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
  325. package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
  326. package/_standalone/__node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
  327. package/_standalone/__node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
  328. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/extract-zip +2 -2
  329. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/highlight +2 -2
  330. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/jiti +2 -2
  331. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/marked +2 -2
  332. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/pi-ai +2 -2
  333. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/yaml +2 -2
  334. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
  335. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
  336. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/index.js +14 -0
  337. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
  338. package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/package.json +61 -0
  339. package/_standalone/__node_modules/@mariozechner/pi-tui/node_modules/.bin/marked +2 -2
  340. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  341. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  342. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  343. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  344. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  345. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  346. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  347. package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  348. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  349. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  350. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  351. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  352. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  353. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  354. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  355. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  356. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  357. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  358. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  359. package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  360. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  361. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  362. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  363. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  364. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  365. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  366. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  367. package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  368. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  369. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  370. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  371. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  372. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  373. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  374. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  375. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  376. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  377. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  378. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  379. package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  380. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  381. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  382. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  383. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  384. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
  385. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
  386. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
  387. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
  388. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
  389. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
  390. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
  391. package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
  392. package/_standalone/__node_modules/bignumber.js/doc/API.html +2249 -0
  393. package/_standalone/__node_modules/degenerator/node_modules/.bin/escodegen +2 -2
  394. package/_standalone/__node_modules/degenerator/node_modules/.bin/esgenerate +2 -2
  395. package/_standalone/__node_modules/degenerator/node_modules/.bin/esparse +2 -2
  396. package/_standalone/__node_modules/degenerator/node_modules/.bin/esvalidate +2 -2
  397. package/_standalone/__node_modules/entities/LICENSE +11 -0
  398. package/_standalone/__node_modules/entities/dist/decode-codepoint.js +46 -0
  399. package/_standalone/__node_modules/entities/dist/decode.js +544 -0
  400. package/_standalone/__node_modules/entities/dist/encode.js +90 -0
  401. package/_standalone/__node_modules/entities/dist/escape.js +132 -0
  402. package/_standalone/__node_modules/entities/dist/generated/decode-data-html.js +5 -0
  403. package/_standalone/__node_modules/entities/dist/generated/decode-data-xml.js +5 -0
  404. package/_standalone/__node_modules/entities/dist/generated/encode-html.js +12 -0
  405. package/_standalone/__node_modules/entities/dist/index.js +91 -0
  406. package/_standalone/__node_modules/entities/dist/internal/bin-trie-flags.js +18 -0
  407. package/_standalone/__node_modules/entities/dist/internal/decode-shared.js +17 -0
  408. package/_standalone/__node_modules/entities/dist/internal/encode-shared.js +93 -0
  409. package/_standalone/__node_modules/entities/package.json +83 -0
  410. package/_standalone/__node_modules/entities/src/decode-codepoint.ts +50 -0
  411. package/_standalone/__node_modules/entities/src/decode.ts +671 -0
  412. package/_standalone/__node_modules/entities/src/encode.ts +95 -0
  413. package/_standalone/__node_modules/entities/src/escape.ts +160 -0
  414. package/_standalone/__node_modules/entities/src/generated/decode-data-html.ts +7 -0
  415. package/_standalone/__node_modules/entities/src/generated/decode-data-xml.ts +7 -0
  416. package/_standalone/__node_modules/entities/src/generated/encode-html.ts +18 -0
  417. package/_standalone/__node_modules/entities/src/index.ts +162 -0
  418. package/_standalone/__node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
  419. package/_standalone/__node_modules/entities/src/internal/decode-shared.ts +18 -0
  420. package/_standalone/__node_modules/entities/src/internal/encode-shared.ts +123 -0
  421. package/_standalone/__node_modules/escodegen/node_modules/.bin/esparse +2 -2
  422. package/_standalone/__node_modules/escodegen/node_modules/.bin/esvalidate +2 -2
  423. package/_standalone/__node_modules/global-agent/node_modules/.bin/semver +2 -2
  424. package/_standalone/__node_modules/has-flag/index.js +8 -0
  425. package/_standalone/__node_modules/has-flag/license +9 -0
  426. package/_standalone/__node_modules/has-flag/package.json +46 -0
  427. package/_standalone/__node_modules/jsdom/node_modules/.bin/specificity +2 -2
  428. package/_standalone/__node_modules/koffi/doc/benchmarks.md +126 -0
  429. package/_standalone/__node_modules/koffi/doc/callbacks.md +210 -0
  430. package/_standalone/__node_modules/koffi/doc/contribute.md +148 -0
  431. package/_standalone/__node_modules/koffi/doc/functions.md +250 -0
  432. package/_standalone/__node_modules/koffi/doc/index.md +61 -0
  433. package/_standalone/__node_modules/koffi/doc/input.md +471 -0
  434. package/_standalone/__node_modules/koffi/doc/migration.md +159 -0
  435. package/_standalone/__node_modules/koffi/doc/misc.md +180 -0
  436. package/_standalone/__node_modules/koffi/doc/output.md +305 -0
  437. package/_standalone/__node_modules/koffi/doc/packaging.md +88 -0
  438. package/_standalone/__node_modules/koffi/doc/platforms.md +36 -0
  439. package/_standalone/__node_modules/koffi/doc/pointers.md +328 -0
  440. package/_standalone/__node_modules/koffi/doc/start.md +118 -0
  441. package/_standalone/__node_modules/koffi/doc/unions.md +186 -0
  442. package/_standalone/__node_modules/koffi/doc/variables.md +102 -0
  443. package/_standalone/__node_modules/postcss/node_modules/.bin/nanoid +2 -2
  444. package/_standalone/__node_modules/supports-color/browser.js +5 -0
  445. package/_standalone/__node_modules/supports-color/index.js +135 -0
  446. package/_standalone/__node_modules/supports-color/license +9 -0
  447. package/_standalone/__node_modules/supports-color/package.json +53 -0
  448. package/_standalone/__node_modules/tough-cookie/node_modules/.bin/tldts +2 -2
  449. package/_standalone/__node_modules/yaml/browser/dist/doc/Document.js +335 -0
  450. package/_standalone/__node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  451. package/_standalone/__node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  452. package/_standalone/__node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  453. package/_standalone/__node_modules/yaml/browser/dist/doc/directives.js +176 -0
  454. package/_standalone/__node_modules/yaml/dist/doc/Document.js +337 -0
  455. package/_standalone/__node_modules/yaml/dist/doc/anchors.js +76 -0
  456. package/_standalone/__node_modules/yaml/dist/doc/applyReviver.js +57 -0
  457. package/_standalone/__node_modules/yaml/dist/doc/createNode.js +90 -0
  458. package/_standalone/__node_modules/yaml/dist/doc/directives.js +178 -0
  459. package/_standalone/server.js +1 -1
  460. package/package.json +1 -1
  461. package/runtime-manifest.json +1 -1
  462. package/scripts/prepare-standalone.mjs +0 -1
  463. package/scripts/verify-standalone.mjs +12 -0
  464. package/static-web/.mindos-build-version +1 -1
  465. package/static-web/_next/static/chunks/{2461-a1073a0bd04c228a.js → 1957-723ac4eb5200214c.js} +3 -3
  466. package/static-web/_next/static/chunks/{47-41e1a06e6d389b69.js → 2737-f4970f0684c334d6.js} +1 -1
  467. package/static-web/_next/static/chunks/{9216.d3339c27169b21bf.js → 6728.e1841cddb63308b0.js} +1 -1
  468. package/static-web/_next/static/chunks/{6947.7e50e18da7dc4aef.js → 6947.fb89346ef2f6be17.js} +1 -1
  469. package/static-web/_next/static/chunks/app/_not-found/{page-ec6fa498a07e6fd9.js → page-eaedcec1b693c03c.js} +1 -1
  470. package/{_standalone/__next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js → static-web/_next/static/chunks/app/agents/[agentKey]/page-1dac12945bfbaf35.js} +1 -1
  471. package/{_standalone/__next/static/chunks/app/agents/page-6591b482a193e657.js → static-web/_next/static/chunks/app/agents/page-7ff2e39ca12eb20a.js} +1 -1
  472. package/static-web/_next/static/chunks/app/capture/history/page-51db96203209a441.js +1 -0
  473. package/static-web/_next/static/chunks/app/capture/page-3bf09d1f5e1c379c.js +1 -0
  474. package/static-web/_next/static/chunks/app/changelog/page-01dc22b6d2230c7f.js +1 -0
  475. package/static-web/_next/static/chunks/app/changes/page-c9f8d5632a001849.js +1 -0
  476. package/{_standalone/__next/static/chunks/app/echo/[segment]/page-c5ea40ac04f2dc29.js → static-web/_next/static/chunks/app/echo/[segment]/page-44b6b8e7fd0bbe31.js} +2 -2
  477. package/static-web/_next/static/chunks/app/echo/page-c9f8d5632a001849.js +1 -0
  478. package/static-web/_next/static/chunks/app/{error-c46d1b03d5e3289c.js → error-1cfcd6abd93c3837.js} +1 -1
  479. package/static-web/_next/static/chunks/app/explore/{page-5d6dd4af8d1bb468.js → page-117fcf54b8b9765c.js} +1 -1
  480. package/static-web/_next/static/chunks/app/global-error-11b333dcf222bc09.js +1 -0
  481. package/static-web/_next/static/chunks/app/help/{page-3f0a1a8e51249cb2.js → page-6efb8aa3a3c169fa.js} +1 -1
  482. package/static-web/_next/static/chunks/app/inbox/history/page-913645bbd6161116.js +1 -0
  483. package/{_standalone/__next/static/chunks/app/layout-5966cd317bbed698.js → static-web/_next/static/chunks/app/layout-24a31ea28c556e82.js} +7 -7
  484. package/static-web/_next/static/chunks/app/login/page-7f9aca3d51266bec.js +1 -0
  485. package/{_standalone/__next/static/chunks/app/page-5c9489e28657376e.js → static-web/_next/static/chunks/app/page-35662964020c0ea9.js} +1 -1
  486. package/static-web/_next/static/chunks/app/settings/{page-c9f44b3447a41431.js → page-f816f13a34613538.js} +1 -1
  487. package/{_standalone/__next/static/chunks/app/setup/page-f5de08d0d588c778.js → static-web/_next/static/chunks/app/setup/page-a1027871dc33ffbd.js} +1 -1
  488. package/static-web/_next/static/chunks/app/todo/page-54c3ec77f662ff73.js +1 -0
  489. package/static-web/_next/static/chunks/app/trash/page-50622e3df2047204.js +1 -0
  490. package/static-web/_next/static/chunks/app/view/[...path]/{error-f73092e638a4e999.js → error-c9a3f6de7c963c74.js} +1 -1
  491. package/static-web/_next/static/chunks/app/view/[...path]/{not-found-80e5f4054819b372.js → not-found-5a4f2b4fbe28d617.js} +1 -1
  492. package/static-web/_next/static/chunks/app/view/[...path]/page-b10d3819827da1c2.js +12 -0
  493. package/{_standalone/__next/static/chunks/app/wiki/page-4c9bc816069b6f2a.js → static-web/_next/static/chunks/app/wiki/page-7afd3b97c1ea1b8c.js} +2 -2
  494. package/static-web/_next/static/chunks/{main-app-23adfdc06470abb6.js → main-app-8a6081b103b8f494.js} +1 -1
  495. package/static-web/_next/static/chunks/webpack-7d8c24c6af17dd51.js +1 -0
  496. package/static-web/help/index.html +3 -3
  497. package/static-web/index.html +3 -3
  498. package/static-web/setup/index.html +3 -3
  499. package/static-web/static-web-manifest.json +1 -1
  500. package/static-web/wiki/index.html +3 -3
  501. package/_standalone/__next/static/chunks/app/capture/history/page-d157ce945ad84c23.js +0 -1
  502. package/_standalone/__next/static/chunks/app/capture/page-ae4d683afdc7a7b2.js +0 -1
  503. package/_standalone/__next/static/chunks/app/changelog/page-5a39d8fe531f4d45.js +0 -1
  504. package/_standalone/__next/static/chunks/app/changes/page-64cf8d751245eee9.js +0 -1
  505. package/_standalone/__next/static/chunks/app/echo/page-64cf8d751245eee9.js +0 -1
  506. package/_standalone/__next/static/chunks/app/global-error-d42727c6c6c48879.js +0 -1
  507. package/_standalone/__next/static/chunks/app/inbox/history/page-b2930c2ef04e00b0.js +0 -1
  508. package/_standalone/__next/static/chunks/app/login/page-a4f9f9053c75ae8d.js +0 -1
  509. package/_standalone/__next/static/chunks/app/todo/page-c7629a0c102c634f.js +0 -1
  510. package/_standalone/__next/static/chunks/app/trash/page-d87207a63591ee16.js +0 -1
  511. package/_standalone/__next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +0 -12
  512. package/_standalone/__next/static/chunks/webpack-75abef9cbb1ea912.js +0 -1
  513. package/static-web/_next/static/chunks/app/capture/history/page-d157ce945ad84c23.js +0 -1
  514. package/static-web/_next/static/chunks/app/capture/page-ae4d683afdc7a7b2.js +0 -1
  515. package/static-web/_next/static/chunks/app/changelog/page-5a39d8fe531f4d45.js +0 -1
  516. package/static-web/_next/static/chunks/app/changes/page-64cf8d751245eee9.js +0 -1
  517. package/static-web/_next/static/chunks/app/echo/page-64cf8d751245eee9.js +0 -1
  518. package/static-web/_next/static/chunks/app/global-error-d42727c6c6c48879.js +0 -1
  519. package/static-web/_next/static/chunks/app/inbox/history/page-b2930c2ef04e00b0.js +0 -1
  520. package/static-web/_next/static/chunks/app/login/page-a4f9f9053c75ae8d.js +0 -1
  521. package/static-web/_next/static/chunks/app/todo/page-c7629a0c102c634f.js +0 -1
  522. package/static-web/_next/static/chunks/app/trash/page-d87207a63591ee16.js +0 -1
  523. package/static-web/_next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +0 -12
  524. package/static-web/_next/static/chunks/webpack-75abef9cbb1ea912.js +0 -1
  525. /package/_standalone/__next/static/{J9M4pgRyRHH7Ofbxuuklh → 3FkuJxcda957EywJ5ZWWG}/_buildManifest.js +0 -0
  526. /package/_standalone/__next/static/{J9M4pgRyRHH7Ofbxuuklh → 3FkuJxcda957EywJ5ZWWG}/_ssgManifest.js +0 -0
  527. /package/static-web/_next/static/{J9M4pgRyRHH7Ofbxuuklh → 3FkuJxcda957EywJ5ZWWG}/_buildManifest.js +0 -0
  528. /package/static-web/_next/static/{J9M4pgRyRHH7Ofbxuuklh → 3FkuJxcda957EywJ5ZWWG}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2114],{26340:(e,t,s)=>{"use strict";s.d(t,{default:()=>X});var r=s(66839),a=s(18016),l=s.n(a),n=s(44223),i=s(71044),o=s(2408),d=s(31606),c=s(30626),u=s(29696),m=s(38325),x=s(5038),p=s(24336),g=s(31082),b=s(28284),f=s(72700),h=s(2073),v=s(79455),j=s(20677),y=s(51117),N=s(65264),k=s(46990),w=s(98641),S=s(20538),A=s(84734),C=s(45149),M=s(82829);function z({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 R({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})]})}function T(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 a=Math.floor(r/24);return`${a}d ago`}catch{return e}}var F=s(12240),P=s(44361);function E({agent:e,status:t,isMindOS:s,mcpStatus:a}){let{t:l}=(0,h.Y)(),i=l.agentsContent.detail,[o,d]=(0,n.useState)("idle"),[c,u]=(0,n.useState)(0),m=(0,n.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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(F.A,{size:13,className:"text-[var(--amber)]"})}),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)(P.A,{size:10,className:"animate-spin"})," ",i.runtimePinging]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.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)(z,{label:i.status,value:t}),(0,r.jsx)(z,{label:i.transport,value:e.transport??e.preferredTransport}),s&&a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(z,{label:i.runtimeVersion,value:a.endpoint}),(0,r.jsx)(z,{label:i.port,value:String(a.port)})]}),(0,r.jsx)(z,{label:i.lastActivityAt,value:T(e.runtimeLastActivityAt)}),void 0!==e.runtimeConversationSignal&&(0,r.jsx)(z,{label:i.conversationSignal,value:e.runtimeConversationSignal?"Active":"Inactive"}),void 0!==e.runtimeUsageSignal&&(0,r.jsx)(z,{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})]})}var $=s(48632),O=s(73033),D=s(98480);function L({agent:e,isMindOS:t}){let{t:s}=(0,h.Y)(),a=s.agentsContent.detail,l=e.scope??(e.hasProjectScope?"project":e.hasGlobalScope?"global":"—"),n=e.hiddenRootPresent??!1,i=[{label:a.envFileAccess,allowed:!0},{label:a.envNetworkAccess,allowed:"http"===e.transport||t},{label:a.envWriteAccess,allowed:!0},{label:a.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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)($.A,{size:13,className:"text-[var(--amber)]"})}),a.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)(z,{label:a.envScope,value:l}),(0,r.jsx)(z,{label:a.format,value:e.format}),e.hiddenRootPath&&(0,r.jsx)(z,{label:a.hiddenRoot,value:e.hiddenRootPath}),(0,r.jsx)(z,{label:a.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:a.envVars}),e.configuredMcpServers&&e.configuredMcpServers.length>0?(0,r.jsx)("p",{className:"text-2xs text-muted-foreground",children:a.envVarsCount(e.configuredMcpServers.length)}):(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50",children:a.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:"flex flex-wrap gap-2",children:i.map(e=>(0,r.jsxs)("div",{className:`inline-flex items-center gap-1 px-2 py-0.5 text-2xs rounded-md border ${e.allowed?"text-[var(--success)] bg-[var(--success)]/5 border-[var(--success)]/20":"text-muted-foreground/40 bg-muted/5 border-border/30 line-through"}`,children:[e.allowed?(0,r.jsx)(O.A,{size:10}):(0,r.jsx)(D.A,{size:10}),e.label]},e.label))})]}),n&&(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50 border-t border-border/20 pt-2",children:"Hidden root directory is active for this agent."})]})}var I=s(12361),H=s(75157),U=s(86386),_=s(19777),J=s(88283),V=s(38688),W=s(21082),K=s(72615),Y=s(58221);function q(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 B={read:{icon:I.A,color:"text-blue-400"},write:{icon:H.A,color:"text-[var(--amber)]"},create:{icon:U.A,color:"text-[var(--success)]"},delete:{icon:d.A,color:"text-[var(--error)]"},search:{icon:m.A,color:"text-purple-400"},other:{icon:_.A,color:"text-muted-foreground"}};function G(){let{t:e}=(0,h.Y)(),t=e.agentsContent?.detail,[s,a]=(0,n.useState)([]),[i,o]=(0,n.useState)(!0),[d,c]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=!1,t=()=>{fetch("/api/agent-activity?limit=50").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)(()=>{if(0===s.length)return null;let e=s.filter(e=>"read"===q(e.tool)).length,t=s.filter(e=>["write","create","delete"].includes(q(e.tool))).length,r=s.filter(e=>"error"===e.result).length,a=s.filter(e=>"number"==typeof e.durationMs).map(e=>e.durationMs),l=a.length>0?Math.round(a.reduce((e,t)=>e+t,0)/a.length):null,n=new Set;for(let e of s){let t=e.params.path;"string"==typeof t&&n.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:l,filesCount:n.size}},[s]),m=(0,n.useMemo)(()=>{let e=s.filter(e=>{let t=q(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)(P.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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(J.A,{size:13,className:"text-[var(--amber)]"})}),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)(J.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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(J.A,{size:13,className:"text-[var(--amber)]"})}),t?.knowledgeInteraction??"Knowledge Interaction"]}),(0,r.jsxs)(l(),{href:`/view/${(0,Y.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:a}=B[q(e.tool)],n="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:a})}),(0,r.jsx)("span",{className:"text-xs font-medium text-foreground/80 font-mono shrink-0 min-w-[90px]",children:i}),n?(0,r.jsx)(l(),{href:`/view/${(0,Y.O0)(n)}`,className:"text-xs text-muted-foreground hover:text-[var(--amber)] truncate min-w-0 flex-1 font-mono transition-colors",title:n,children:n}):(0,r.jsx)("span",{className:"flex-1"}),"ok"===e.result?(0,r.jsx)(V.A,{size:10,className:"shrink-0 text-[var(--success)]/40"}):(0,r.jsx)(W.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)(K.A,{size:12,className:`transition-transform duration-200 ${d?"rotate-180":""}`}),(0,r.jsx)("span",{children:d?t?.showLess??"Show less":`${p} more`})]})})]})}function Q({agent:e}){let{t}=(0,h.Y)(),s=t.agentsContent.detail,a=!!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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(F.A,{size:13,className:"text-[var(--amber)]"})}),s.activityTitle]}),a?(0,r.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:[(0,r.jsx)(R,{label:s.activityLastInvocation,value:T(e.runtimeLastActivityAt)}),(0,r.jsx)(R,{label:s.activityTotal,value:e.runtimeConversationSignal?"Active":"—"}),(0,r.jsx)(R,{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 X({agentKey:e}){let{t}=(0,h.Y)(),s=t.agentsContent,a=t.panels.agents,R=(0,j.kr)(),F=(0,y.V)(),P=(0,n.useMemo)(()=>R.agents.find(t=>t.key===e),[R.agents,e]),[$,O]=(0,n.useState)(""),[D,I]=(0,n.useState)("all"),[H,U]=(0,n.useState)(null),[_,J]=(0,n.useState)(null),[V,W]=(0,n.useState)(""),[K,Y]=(0,n.useState)(null),[q,B]=(0,n.useState)(!1),[X,Z]=(0,n.useState)(!1),[ee,et]=(0,n.useState)(null),[es,er]=(0,n.useState)(null),[ea,el]=(0,n.useState)(null),[en,ei]=(0,n.useState)(null),[eo,ed]=(0,n.useState)(null),[ec,eu]=(0,n.useState)(null),[em,ex]=(0,n.useState)(!1),[ep,eg]=(0,n.useState)(!1),eb=(0,n.useCallback)(async()=>{if(P?.isCustom)try{let e=await fetch("/api/agents/custom",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:P.key})});if(e.ok)v.oR.success(s.overview.customAgentRemoved(P.name)),R.refresh(),window.location.href="/agents";else{let t=await e.json();v.oR.error(t.error||s.overview.customAgentFailedRemove)}}catch{v.oR.error(s.overview.customAgentNetworkError)}finally{eg(!1)}},[P,s.overview,R]),ef=(0,n.useMemo)(()=>(0,S.qC)(R.skills,{query:$,source:D}),[R.skills,$,D]),eh=(0,n.useMemo)(()=>({total:R.skills.length,enabled:R.skills.filter(e=>e.enabled).length,builtin:R.skills.filter(e=>"builtin"===e.source).length,user:R.skills.filter(e=>"user"===e.source).length}),[R.skills]),ev=(0,n.useMemo)(()=>{let e=(0,S.HL)(R.agents),t=new Map;for(let s of e)t.set(s.serverName,s.agents);return t},[R.agents]),ej=(0,n.useMemo)(()=>{let e=(0,S.x3)(R.agents),t=new Map;for(let s of e)t.set(s.skillName,s.agents);return t},[R.agents]),ey="mindos"===e,eN=P?(0,S.yv)(P):"notFound",ek=P?.scope==="project"?"project":"global",ew=P?.transport==="http"?"http":"stdio",eS=(0,n.useMemo)(()=>P?(0,w.$k)(P,R.status,ew):{snippet:"",path:""},[P,R.status,ew]),eA=(0,n.useMemo)(()=>new Set(R.skills.map(e=>e.name)),[R.skills]),eC=(0,n.useMemo)(()=>(P?.installedSkillNames??[]).filter(e=>!eA.has(e)),[P?.installedSkillNames,eA]),eM=P?.configuredMcpServers??[],ez=(0,n.useCallback)(async(e,t)=>{U(e),Y(null);try{await R.toggleSkill(e,t),await R.refresh()}finally{U(null)}},[R]),eR=(0,n.useCallback)(async e=>{Y(null),U(e);try{let t=await (0,N.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"read",name:e})});J(e),W(t.content)}catch(e){Y(e instanceof Error?e.message:s.detail.skillReadFailed)}finally{U(null)}},[s.detail.skillReadFailed]),eT=(0,n.useCallback)(async()=>{if(_){B(!0),Y(null);try{await (0,N.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update",name:_,content:V})}),J(null),W(""),window.dispatchEvent(new Event("mindos:skills-changed")),await R.refresh()}catch(e){Y(e instanceof Error?e.message:s.detail.skillSaveFailed)}finally{B(!1)}}},[_,V,s.detail.skillSaveFailed,R]),eF=(0,n.useCallback)(async e=>{er(null),U(e);try{await (0,N.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",name:e})}),el(s.detail.skillDeleteSuccess),window.dispatchEvent(new Event("mindos:skills-changed")),await R.refresh()}catch{el(s.detail.skillDeleteFailed)}finally{U(null),setTimeout(()=>el(null),3e3)}},[s.detail.skillDeleteSuccess,s.detail.skillDeleteFailed,R]),eP=(0,n.useCallback)(async e=>{if(P?.skillWorkspacePath){U(e),Y(null);try{(await (0,N.n)("/api/agents/copy-skill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({skillName:e,targetPath:P.skillWorkspacePath})})).success&&(v.oR.success(`Skill "${e}" copied to ${P.name}`),await R.refresh())}catch(t){let e=t instanceof Error?t.message:"Failed to copy skill";Y(e),v.oR.error(e)}finally{U(null)}}},[P,R]),eE=(0,n.useCallback)(async()=>{await (0,k.l)(eS.snippet)&&v.oR.copy()},[eS.snippet]),e$=(0,n.useCallback)(async(e,t)=>{if(P){Z(!0),et(s.detail.mcpApplying);try{let r=await R.installAgent(P.key,{scope:e,transport:t});await R.refresh(),et(r?s.detail.mcpApplySuccess:s.detail.mcpApplyFailed)}finally{Z(!1)}}},[s.detail.mcpApplying,s.detail.mcpApplySuccess,s.detail.mcpApplyFailed,R,P]),eO=(0,n.useCallback)(async e=>{await (0,N.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 R.refresh()},[R]),eD=(0,n.useCallback)(()=>{ei(null),ed(s.detail.mcpServerHint),setTimeout(()=>ed(null),4e3)},[s.detail.mcpServerHint]);if(!P){let t=R.agents.filter(t=>t.key!==e&&"connected"===(0,S.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)(l(),{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)(l(),{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)(l(),{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)(A.lx,{name:P.name,status:eN,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:P.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"===eN?"bg-muted text-muted-foreground":"detected"===eN?"bg-[var(--amber-subtle)] text-[var(--amber-text)]":"bg-error/10 text-error"}`,children:eN}),(0,r.jsx)("span",{className:"font-mono",children:P.transport??P.preferredTransport}),(0,r.jsx)("span",{className:"text-muted-foreground/25","aria-hidden":"true",children:"\xb7"}),(0,r.jsx)("span",{children:P.skillMode??s.na})]})]}),P.isCustom&&(0,r.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(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-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:()=>eg(!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:[P.format," ",(0,r.jsx)("span",{className:"text-muted-foreground/30",children:"\xb7"})," ",T(P.runtimeLastActivityAt)]}),(0,r.jsxs)("span",{className:"tabular-nums",children:[eM.length," MCP ",(0,r.jsx)("span",{className:"text-muted-foreground/30",children:"\xb7"})," ",eC.length," skills"]})]})]}),(0,r.jsx)(G,{}),(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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(c.A,{size:13,className:"text-[var(--amber)]"})}),s.detail.mcpManagement]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[!ey&&(0,r.jsx)(A.rA,{onClick:()=>void eE(),disabled:!1,busy:!1,label:s.detail.mcpCopySnippet}),(0,r.jsx)(A.rA,{onClick:()=>void R.refresh(),disabled:!1,busy:!1,label:s.detail.mcpRefresh}),!ey&&(0,r.jsx)(A.rA,{onClick:()=>void e$(ek,ew),disabled:X,busy:X,label:s.detail.mcpReconnect})]})]}),ee&&(0,r.jsx)("p",{className:"text-2xs text-muted-foreground animate-in fade-in duration-200",children:ee}),(0,r.jsx)("div",{className:"flex flex-wrap gap-x-6 gap-y-1 py-2 border-y border-border/30",children:ey?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(z,{label:"Status",value:R.status?.running?"Running":"Stopped"}),(0,r.jsx)(z,{label:"Endpoint",value:R.status?.endpoint??s.na}),(0,r.jsx)(z,{label:"Tools",value:R.status?.toolCount!=null?String(R.status.toolCount):s.na})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(z,{label:s.detail.mcpInstalled,value:P.installed?s.detail.yes:s.detail.no}),(0,r.jsx)(z,{label:s.detail.mcpScope,value:P.scope??s.na}),(0,r.jsx)(z,{label:s.detail.mcpConfigPath,value:P.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:eM.length})]}),eo&&(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:eo}),0===eM.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:eM.map(e=>{let t=(ev.get(e)??[]).filter(e=>e!==P.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)(A.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:()=>ei(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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(u.A,{size:13,className:"text-[var(--amber)]"})}),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:[eh.enabled,"/",eh.total," enabled"]}),(0,r.jsx)("span",{className:"text-muted-foreground/25",children:"\xb7"}),(0,r.jsxs)("span",{children:[eC.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:$,onChange:e=>O(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)(A.KF,{active:"all"===D,label:s.detail.skillsFilterAll,onClick:()=>I("all")}),(0,r.jsx)(A.KF,{active:"builtin"===D,label:s.detail.skillsFilterBuiltin,onClick:()=>I("builtin")}),(0,r.jsx)(A.KF,{active:"user"===D,label:s.detail.skillsFilterUser,onClick:()=>I("user")})]})]}),ea&&(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:ea}),P?.skillMode==="unsupported"&&(0,r.jsxs)("div",{className:"rounded-lg border border-[var(--amber)]/20 bg-[var(--amber-dim)] p-3 mb-2",children:[(0,r.jsxs)("p",{className:"text-sm font-medium text-foreground mb-2 flex items-center gap-1.5",children:[(0,r.jsx)(x.A,{size:14,className:"text-[var(--amber)] shrink-0","aria-hidden":"true"}),"Manual Skill Installation"]}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground mb-3",children:["This agent doesn't support ",(0,r.jsx)("code",{className:"bg-background px-1 py-0.5 rounded text-xs font-mono",children:"npx skills"}),". Copy skills manually:"]}),(0,r.jsxs)("div",{className:"bg-background rounded-md px-3 py-2 font-mono text-xs overflow-x-auto border border-border/50 select-all",children:["cp -r ~/.mindos/skills/<skill-name> ",P.skillWorkspacePath||"~/.agent/skills/"]})]}),ef.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:["(",ef.filter(e=>e.enabled).length,"/",ef.length,")"]})]}),(0,r.jsx)("ul",{className:"space-y-0.5",children:ef.map(e=>{let t=_===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:()=>eu(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)(A.rA,{onClick:()=>void ez(e.name,!e.enabled),disabled:H===e.name,busy:H===e.name,label:e.enabled?s.detail.skillDisable:s.detail.skillEnable}),e.editable&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.rA,{onClick:()=>void eR(e.name),disabled:H===e.name||q,busy:!1,label:s.detail.skillEdit}),(0,r.jsx)("button",{type:"button",onClick:()=>er(e.name),disabled:H===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})})]}),P?.skillMode==="unsupported"&&(0,r.jsx)("button",{type:"button",onClick:()=>void eP(e.name),disabled:H===e.name,className:"inline-flex items-center justify-center min-h-[28px] px-1.5 rounded-md text-muted-foreground hover:text-[var(--amber)] 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",title:`Copy ${e.name} to ${P.name}`,"aria-label":`Copy ${e.name} to ${P.name}`,children:(0,r.jsx)(p.A,{size:13})})]})]}),t&&(0,r.jsxs)("div",{className:"px-3 pb-3 pt-0 space-y-2",children:[(0,r.jsx)("textarea",{value:V,onChange:e=>W(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)(A.rA,{onClick:()=>void eT(),disabled:q,busy:q,label:s.detail.skillSave,variant:"primary"}),(0,r.jsx)(A.rA,{onClick:()=>J(null),disabled:!1,busy:!1,label:s.detail.skillCancel})]})]})]},e.name)})})]}),0===ef.length&&0===eC.length&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:s.detail.noSkills}),eC.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:["(",eC.length,")"]})]}),(0,r.jsx)("div",{className:"space-y-0.5 max-h-[280px] overflow-y-auto",children:eC.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>eu(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))})]}),K&&(0,r.jsx)("p",{className:"text-xs text-error",children:K})]}),(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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(g.A,{size:13,className:"text-[var(--amber)]"})}),a.a2aCapabilities]}),(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 ${"connected"===eN?"bg-[var(--success)]/15 text-[var(--success)]":"bg-muted text-muted-foreground/60"}`,children:"connected"===eN?a.a2aConnected:a.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)(z,{label:a.a2aStatus,value:"connected"===eN?a.a2aConnected:a.a2aUnavailable}),(0,r.jsx)(z,{label:s.detail.transport,value:P.transport??P.preferredTransport}),F.agents.length>0&&(0,r.jsx)(z,{label:"Remote agents",value:String(F.agents.length)})]}),F.agents.length>0?(0,r.jsx)("div",{className:"space-y-1",children:F.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)(g.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)(b.A,{size:11,className:"text-[var(--success)] shrink-0"}):(0,r.jsx)(f.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:a.a2aNoRemoteHint})]}),(0,r.jsx)(E,{agent:P,status:eN,isMindOS:ey,mcpStatus:R.status}),(0,r.jsx)(L,{agent:P,isMindOS:ey}),(0,r.jsx)(Q,{agent:P}),(0,r.jsx)(A.TM,{open:null!==es,title:s.detail.skillDelete,message:es?s.detail.skillDeleteConfirm(es):"",confirmLabel:s.detail.skillDelete,cancelLabel:s.detail.skillCancel,onConfirm:()=>es&&void eF(es),onCancel:()=>er(null),variant:"destructive"}),(0,r.jsx)(A.TM,{open:null!==en,title:s.detail.mcpServerRemove,message:en?s.detail.mcpServerRemoveConfirm(en):"",confirmLabel:s.detail.mcpServerRemove,cancelLabel:s.detail.skillCancel,onConfirm:eD,onCancel:()=>ei(null),variant:"destructive"}),(0,r.jsx)(C.A,{open:null!==ec,skillName:ec,skill:ec?R.skills.find(e=>e.name===ec)??null:null,agentNames:ec?ej.get(ec)??[]:[],isNative:!!ec&&!R.skills.some(e=>e.name===ec),nativeSourcePath:P?.installedSkillSourcePath,copy:s.skills.skillPopover,onClose:()=>eu(null),onToggle:R.toggleSkill,onDelete:eO,onRefresh:R.refresh}),P?.isCustom&&(0,r.jsx)(M.A,{open:em,onClose:()=>ex(!1),onSuccess:()=>{R.refresh(),ex(!1)},existingAgents:R.agents,editAgent:P}),(0,r.jsx)(A.TM,{open:ep,title:P?s.overview.customAgentRemoveTitle(P.name):"",message:s.overview.customAgentRemoveMessage,confirmLabel:s.overview.customAgentRemoveConfirm,cancelLabel:s.detail.skillCancel,onConfirm:eb,onCancel:()=>eg(!1),variant:"destructive"})]})}},38684:(e,t,s)=>{Promise.resolve().then(s.bind(s,26340)),Promise.resolve().then(s.bind(s,23684))}},e=>{e.O(0,[3940,2130,3424,2073,5152,5200,1430,5018,2330,7358],()=>e(e.s=38684)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2114],{26340:(e,t,s)=>{"use strict";s.d(t,{default:()=>X});var r=s(66839),a=s(18016),l=s.n(a),n=s(44223),i=s(71044),o=s(2408),d=s(31606),c=s(30626),u=s(29696),m=s(38325),x=s(5038),p=s(24336),g=s(31082),b=s(28284),f=s(72700),h=s(2073),v=s(79455),j=s(20677),y=s(51117),N=s(65264),k=s(46990),w=s(98641),S=s(20538),A=s(84734),C=s(45149),M=s(82829);function z({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 R({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})]})}function T(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 a=Math.floor(r/24);return`${a}d ago`}catch{return e}}var F=s(12240),P=s(44361);function E({agent:e,status:t,isMindOS:s,mcpStatus:a}){let{t:l}=(0,h.Y)(),i=l.agentsContent.detail,[o,d]=(0,n.useState)("idle"),[c,u]=(0,n.useState)(0),m=(0,n.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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(F.A,{size:13,className:"text-[var(--amber)]"})}),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)(P.A,{size:10,className:"animate-spin"})," ",i.runtimePinging]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.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)(z,{label:i.status,value:t}),(0,r.jsx)(z,{label:i.transport,value:e.transport??e.preferredTransport}),s&&a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(z,{label:i.runtimeVersion,value:a.endpoint}),(0,r.jsx)(z,{label:i.port,value:String(a.port)})]}),(0,r.jsx)(z,{label:i.lastActivityAt,value:T(e.runtimeLastActivityAt)}),void 0!==e.runtimeConversationSignal&&(0,r.jsx)(z,{label:i.conversationSignal,value:e.runtimeConversationSignal?"Active":"Inactive"}),void 0!==e.runtimeUsageSignal&&(0,r.jsx)(z,{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})]})}var $=s(48632),O=s(73033),D=s(98480);function L({agent:e,isMindOS:t}){let{t:s}=(0,h.Y)(),a=s.agentsContent.detail,l=e.scope??(e.hasProjectScope?"project":e.hasGlobalScope?"global":"—"),n=e.hiddenRootPresent??!1,i=[{label:a.envFileAccess,allowed:!0},{label:a.envNetworkAccess,allowed:"http"===e.transport||t},{label:a.envWriteAccess,allowed:!0},{label:a.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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)($.A,{size:13,className:"text-[var(--amber)]"})}),a.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)(z,{label:a.envScope,value:l}),(0,r.jsx)(z,{label:a.format,value:e.format}),e.hiddenRootPath&&(0,r.jsx)(z,{label:a.hiddenRoot,value:e.hiddenRootPath}),(0,r.jsx)(z,{label:a.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:a.envVars}),e.configuredMcpServers&&e.configuredMcpServers.length>0?(0,r.jsx)("p",{className:"text-2xs text-muted-foreground",children:a.envVarsCount(e.configuredMcpServers.length)}):(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50",children:a.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:"flex flex-wrap gap-2",children:i.map(e=>(0,r.jsxs)("div",{className:`inline-flex items-center gap-1 px-2 py-0.5 text-2xs rounded-md border ${e.allowed?"text-[var(--success)] bg-[var(--success)]/5 border-[var(--success)]/20":"text-muted-foreground/40 bg-muted/5 border-border/30 line-through"}`,children:[e.allowed?(0,r.jsx)(O.A,{size:10}):(0,r.jsx)(D.A,{size:10}),e.label]},e.label))})]}),n&&(0,r.jsx)("p",{className:"text-2xs text-muted-foreground/50 border-t border-border/20 pt-2",children:"Hidden root directory is active for this agent."})]})}var I=s(12361),H=s(75157),U=s(86386),_=s(19777),J=s(88283),V=s(38688),W=s(21082),K=s(72615),Y=s(58221);function q(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 B={read:{icon:I.A,color:"text-blue-400"},write:{icon:H.A,color:"text-[var(--amber)]"},create:{icon:U.A,color:"text-[var(--success)]"},delete:{icon:d.A,color:"text-[var(--error)]"},search:{icon:m.A,color:"text-purple-400"},other:{icon:_.A,color:"text-muted-foreground"}};function G(){let{t:e}=(0,h.Y)(),t=e.agentsContent?.detail,[s,a]=(0,n.useState)([]),[i,o]=(0,n.useState)(!0),[d,c]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=!1,t=()=>{fetch("/api/agent-activity?limit=50").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)(()=>{if(0===s.length)return null;let e=s.filter(e=>"read"===q(e.tool)).length,t=s.filter(e=>["write","create","delete"].includes(q(e.tool))).length,r=s.filter(e=>"error"===e.result).length,a=s.filter(e=>"number"==typeof e.durationMs).map(e=>e.durationMs),l=a.length>0?Math.round(a.reduce((e,t)=>e+t,0)/a.length):null,n=new Set;for(let e of s){let t=e.params.path;"string"==typeof t&&n.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:l,filesCount:n.size}},[s]),m=(0,n.useMemo)(()=>{let e=s.filter(e=>{let t=q(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)(P.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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(J.A,{size:13,className:"text-[var(--amber)]"})}),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)(J.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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(J.A,{size:13,className:"text-[var(--amber)]"})}),t?.knowledgeInteraction??"Knowledge Interaction"]}),(0,r.jsxs)(l(),{href:`/view/${(0,Y.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:a}=B[q(e.tool)],n="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:a})}),(0,r.jsx)("span",{className:"text-xs font-medium text-foreground/80 font-mono shrink-0 min-w-[90px]",children:i}),n?(0,r.jsx)(l(),{href:`/view/${(0,Y.O0)(n)}`,className:"text-xs text-muted-foreground hover:text-[var(--amber)] truncate min-w-0 flex-1 font-mono transition-colors",title:n,children:n}):(0,r.jsx)("span",{className:"flex-1"}),"ok"===e.result?(0,r.jsx)(V.A,{size:10,className:"shrink-0 text-[var(--success)]/40"}):(0,r.jsx)(W.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)(K.A,{size:12,className:`transition-transform duration-200 ${d?"rotate-180":""}`}),(0,r.jsx)("span",{children:d?t?.showLess??"Show less":`${p} more`})]})})]})}function Q({agent:e}){let{t}=(0,h.Y)(),s=t.agentsContent.detail,a=!!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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(F.A,{size:13,className:"text-[var(--amber)]"})}),s.activityTitle]}),a?(0,r.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:[(0,r.jsx)(R,{label:s.activityLastInvocation,value:T(e.runtimeLastActivityAt)}),(0,r.jsx)(R,{label:s.activityTotal,value:e.runtimeConversationSignal?"Active":"—"}),(0,r.jsx)(R,{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 X({agentKey:e}){let{t}=(0,h.Y)(),s=t.agentsContent,a=t.panels.agents,R=(0,j.kr)(),F=(0,y.V)(),P=(0,n.useMemo)(()=>R.agents.find(t=>t.key===e),[R.agents,e]),[$,O]=(0,n.useState)(""),[D,I]=(0,n.useState)("all"),[H,U]=(0,n.useState)(null),[_,J]=(0,n.useState)(null),[V,W]=(0,n.useState)(""),[K,Y]=(0,n.useState)(null),[q,B]=(0,n.useState)(!1),[X,Z]=(0,n.useState)(!1),[ee,et]=(0,n.useState)(null),[es,er]=(0,n.useState)(null),[ea,el]=(0,n.useState)(null),[en,ei]=(0,n.useState)(null),[eo,ed]=(0,n.useState)(null),[ec,eu]=(0,n.useState)(null),[em,ex]=(0,n.useState)(!1),[ep,eg]=(0,n.useState)(!1),eb=(0,n.useCallback)(async()=>{if(P?.isCustom)try{let e=await fetch("/api/agents/custom",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:P.key})});if(e.ok)v.oR.success(s.overview.customAgentRemoved(P.name)),R.refresh(),window.location.href="/agents";else{let t=await e.json();v.oR.error(t.error||s.overview.customAgentFailedRemove)}}catch{v.oR.error(s.overview.customAgentNetworkError)}finally{eg(!1)}},[P,s.overview,R]),ef=(0,n.useMemo)(()=>(0,S.qC)(R.skills,{query:$,source:D}),[R.skills,$,D]),eh=(0,n.useMemo)(()=>({total:R.skills.length,enabled:R.skills.filter(e=>e.enabled).length,builtin:R.skills.filter(e=>"builtin"===e.source).length,user:R.skills.filter(e=>"user"===e.source).length}),[R.skills]),ev=(0,n.useMemo)(()=>{let e=(0,S.HL)(R.agents),t=new Map;for(let s of e)t.set(s.serverName,s.agents);return t},[R.agents]),ej=(0,n.useMemo)(()=>{let e=(0,S.x3)(R.agents),t=new Map;for(let s of e)t.set(s.skillName,s.agents);return t},[R.agents]),ey="mindos"===e,eN=P?(0,S.yv)(P):"notFound",ek=P?.scope==="project"?"project":"global",ew=P?.transport==="http"?"http":"stdio",eS=(0,n.useMemo)(()=>P?(0,w.$k)(P,R.status,ew):{snippet:"",path:""},[P,R.status,ew]),eA=(0,n.useMemo)(()=>new Set(R.skills.map(e=>e.name)),[R.skills]),eC=(0,n.useMemo)(()=>(P?.installedSkillNames??[]).filter(e=>!eA.has(e)),[P?.installedSkillNames,eA]),eM=P?.configuredMcpServers??[],ez=(0,n.useCallback)(async(e,t)=>{U(e),Y(null);try{await R.toggleSkill(e,t),await R.refresh()}finally{U(null)}},[R]),eR=(0,n.useCallback)(async e=>{Y(null),U(e);try{let t=await (0,N.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"read",name:e})});J(e),W(t.content)}catch(e){Y(e instanceof Error?e.message:s.detail.skillReadFailed)}finally{U(null)}},[s.detail.skillReadFailed]),eT=(0,n.useCallback)(async()=>{if(_){B(!0),Y(null);try{await (0,N.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update",name:_,content:V})}),J(null),W(""),window.dispatchEvent(new Event("mindos:skills-changed")),await R.refresh()}catch(e){Y(e instanceof Error?e.message:s.detail.skillSaveFailed)}finally{B(!1)}}},[_,V,s.detail.skillSaveFailed,R]),eF=(0,n.useCallback)(async e=>{er(null),U(e);try{await (0,N.n)("/api/skills",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",name:e})}),el(s.detail.skillDeleteSuccess),window.dispatchEvent(new Event("mindos:skills-changed")),await R.refresh()}catch{el(s.detail.skillDeleteFailed)}finally{U(null),setTimeout(()=>el(null),3e3)}},[s.detail.skillDeleteSuccess,s.detail.skillDeleteFailed,R]),eP=(0,n.useCallback)(async e=>{if(P?.skillWorkspacePath){U(e),Y(null);try{(await (0,N.n)("/api/agents/copy-skill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({skillName:e,targetPath:P.skillWorkspacePath})})).success&&(v.oR.success(`Skill "${e}" copied to ${P.name}`),await R.refresh())}catch(t){let e=t instanceof Error?t.message:"Failed to copy skill";Y(e),v.oR.error(e)}finally{U(null)}}},[P,R]),eE=(0,n.useCallback)(async()=>{await (0,k.l)(eS.snippet)&&v.oR.copy()},[eS.snippet]),e$=(0,n.useCallback)(async(e,t)=>{if(P){Z(!0),et(s.detail.mcpApplying);try{let r=await R.installAgent(P.key,{scope:e,transport:t});await R.refresh(),et(r?s.detail.mcpApplySuccess:s.detail.mcpApplyFailed)}finally{Z(!1)}}},[s.detail.mcpApplying,s.detail.mcpApplySuccess,s.detail.mcpApplyFailed,R,P]),eO=(0,n.useCallback)(async e=>{await (0,N.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 R.refresh()},[R]),eD=(0,n.useCallback)(()=>{ei(null),ed(s.detail.mcpServerHint),setTimeout(()=>ed(null),4e3)},[s.detail.mcpServerHint]);if(!P){let t=R.agents.filter(t=>t.key!==e&&"connected"===(0,S.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)(l(),{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)(l(),{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)(l(),{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)(A.lx,{name:P.name,status:eN,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:P.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"===eN?"bg-muted text-muted-foreground":"detected"===eN?"bg-[var(--amber-subtle)] text-[var(--amber-text)]":"bg-error/10 text-error"}`,children:eN}),(0,r.jsx)("span",{className:"font-mono",children:P.transport??P.preferredTransport}),(0,r.jsx)("span",{className:"text-muted-foreground/25","aria-hidden":"true",children:"\xb7"}),(0,r.jsx)("span",{children:P.skillMode??s.na})]})]}),P.isCustom&&(0,r.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(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-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:()=>eg(!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:[P.format," ",(0,r.jsx)("span",{className:"text-muted-foreground/30",children:"\xb7"})," ",T(P.runtimeLastActivityAt)]}),(0,r.jsxs)("span",{className:"tabular-nums",children:[eM.length," MCP ",(0,r.jsx)("span",{className:"text-muted-foreground/30",children:"\xb7"})," ",eC.length," skills"]})]})]}),(0,r.jsx)(G,{}),(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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(c.A,{size:13,className:"text-[var(--amber)]"})}),s.detail.mcpManagement]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[!ey&&(0,r.jsx)(A.rA,{onClick:()=>void eE(),disabled:!1,busy:!1,label:s.detail.mcpCopySnippet}),(0,r.jsx)(A.rA,{onClick:()=>void R.refresh(),disabled:!1,busy:!1,label:s.detail.mcpRefresh}),!ey&&(0,r.jsx)(A.rA,{onClick:()=>void e$(ek,ew),disabled:X,busy:X,label:s.detail.mcpReconnect})]})]}),ee&&(0,r.jsx)("p",{className:"text-2xs text-muted-foreground animate-in fade-in duration-200",children:ee}),(0,r.jsx)("div",{className:"flex flex-wrap gap-x-6 gap-y-1 py-2 border-y border-border/30",children:ey?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(z,{label:"Status",value:R.status?.running?"Running":"Stopped"}),(0,r.jsx)(z,{label:"Endpoint",value:R.status?.endpoint??s.na}),(0,r.jsx)(z,{label:"Tools",value:R.status?.toolCount!=null?String(R.status.toolCount):s.na})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(z,{label:s.detail.mcpInstalled,value:P.installed?s.detail.yes:s.detail.no}),(0,r.jsx)(z,{label:s.detail.mcpScope,value:P.scope??s.na}),(0,r.jsx)(z,{label:s.detail.mcpConfigPath,value:P.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:eM.length})]}),eo&&(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:eo}),0===eM.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:eM.map(e=>{let t=(ev.get(e)??[]).filter(e=>e!==P.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)(A.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:()=>ei(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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(u.A,{size:13,className:"text-[var(--amber)]"})}),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:[eh.enabled,"/",eh.total," enabled"]}),(0,r.jsx)("span",{className:"text-muted-foreground/25",children:"\xb7"}),(0,r.jsxs)("span",{children:[eC.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:$,onChange:e=>O(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)(A.KF,{active:"all"===D,label:s.detail.skillsFilterAll,onClick:()=>I("all")}),(0,r.jsx)(A.KF,{active:"builtin"===D,label:s.detail.skillsFilterBuiltin,onClick:()=>I("builtin")}),(0,r.jsx)(A.KF,{active:"user"===D,label:s.detail.skillsFilterUser,onClick:()=>I("user")})]})]}),ea&&(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:ea}),P?.skillMode==="unsupported"&&(0,r.jsxs)("div",{className:"rounded-lg border border-[var(--amber)]/20 bg-[var(--amber-dim)] p-3 mb-2",children:[(0,r.jsxs)("p",{className:"text-sm font-medium text-foreground mb-2 flex items-center gap-1.5",children:[(0,r.jsx)(x.A,{size:14,className:"text-[var(--amber)] shrink-0","aria-hidden":"true"}),"Manual Skill Installation"]}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground mb-3",children:["This agent doesn't support ",(0,r.jsx)("code",{className:"bg-background px-1 py-0.5 rounded text-xs font-mono",children:"npx skills"}),". Copy skills manually:"]}),(0,r.jsxs)("div",{className:"bg-background rounded-md px-3 py-2 font-mono text-xs overflow-x-auto border border-border/50 select-all",children:["cp -r ~/.mindos/skills/<skill-name> ",P.skillWorkspacePath||"~/.agent/skills/"]})]}),ef.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:["(",ef.filter(e=>e.enabled).length,"/",ef.length,")"]})]}),(0,r.jsx)("ul",{className:"space-y-0.5",children:ef.map(e=>{let t=_===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:()=>eu(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)(A.rA,{onClick:()=>void ez(e.name,!e.enabled),disabled:H===e.name,busy:H===e.name,label:e.enabled?s.detail.skillDisable:s.detail.skillEnable}),e.editable&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.rA,{onClick:()=>void eR(e.name),disabled:H===e.name||q,busy:!1,label:s.detail.skillEdit}),(0,r.jsx)("button",{type:"button",onClick:()=>er(e.name),disabled:H===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})})]}),P?.skillMode==="unsupported"&&(0,r.jsx)("button",{type:"button",onClick:()=>void eP(e.name),disabled:H===e.name,className:"inline-flex items-center justify-center min-h-[28px] px-1.5 rounded-md text-muted-foreground hover:text-[var(--amber)] 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",title:`Copy ${e.name} to ${P.name}`,"aria-label":`Copy ${e.name} to ${P.name}`,children:(0,r.jsx)(p.A,{size:13})})]})]}),t&&(0,r.jsxs)("div",{className:"px-3 pb-3 pt-0 space-y-2",children:[(0,r.jsx)("textarea",{value:V,onChange:e=>W(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)(A.rA,{onClick:()=>void eT(),disabled:q,busy:q,label:s.detail.skillSave,variant:"primary"}),(0,r.jsx)(A.rA,{onClick:()=>J(null),disabled:!1,busy:!1,label:s.detail.skillCancel})]})]})]},e.name)})})]}),0===ef.length&&0===eC.length&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:s.detail.noSkills}),eC.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:["(",eC.length,")"]})]}),(0,r.jsx)("div",{className:"space-y-0.5 max-h-[280px] overflow-y-auto",children:eC.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>eu(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))})]}),K&&(0,r.jsx)("p",{className:"text-xs text-error",children:K})]}),(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)("div",{className:"w-6 h-6 rounded-md bg-[var(--amber-subtle)] flex items-center justify-center",children:(0,r.jsx)(g.A,{size:13,className:"text-[var(--amber)]"})}),a.a2aCapabilities]}),(0,r.jsx)("span",{className:`text-2xs px-1.5 py-0.5 rounded font-medium shrink-0 ${"connected"===eN?"bg-[var(--success)]/15 text-[var(--success)]":"bg-muted text-muted-foreground/60"}`,children:"connected"===eN?a.a2aConnected:a.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)(z,{label:a.a2aStatus,value:"connected"===eN?a.a2aConnected:a.a2aUnavailable}),(0,r.jsx)(z,{label:s.detail.transport,value:P.transport??P.preferredTransport}),F.agents.length>0&&(0,r.jsx)(z,{label:"Remote agents",value:String(F.agents.length)})]}),F.agents.length>0?(0,r.jsx)("div",{className:"space-y-1",children:F.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)(g.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)(b.A,{size:11,className:"text-[var(--success)] shrink-0"}):(0,r.jsx)(f.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:a.a2aNoRemoteHint})]}),(0,r.jsx)(E,{agent:P,status:eN,isMindOS:ey,mcpStatus:R.status}),(0,r.jsx)(L,{agent:P,isMindOS:ey}),(0,r.jsx)(Q,{agent:P}),(0,r.jsx)(A.TM,{open:null!==es,title:s.detail.skillDelete,message:es?s.detail.skillDeleteConfirm(es):"",confirmLabel:s.detail.skillDelete,cancelLabel:s.detail.skillCancel,onConfirm:()=>es&&void eF(es),onCancel:()=>er(null),variant:"destructive"}),(0,r.jsx)(A.TM,{open:null!==en,title:s.detail.mcpServerRemove,message:en?s.detail.mcpServerRemoveConfirm(en):"",confirmLabel:s.detail.mcpServerRemove,cancelLabel:s.detail.skillCancel,onConfirm:eD,onCancel:()=>ei(null),variant:"destructive"}),(0,r.jsx)(C.A,{open:null!==ec,skillName:ec,skill:ec?R.skills.find(e=>e.name===ec)??null:null,agentNames:ec?ej.get(ec)??[]:[],isNative:!!ec&&!R.skills.some(e=>e.name===ec),nativeSourcePath:P?.installedSkillSourcePath,copy:s.skills.skillPopover,onClose:()=>eu(null),onToggle:R.toggleSkill,onDelete:eO,onRefresh:R.refresh}),P?.isCustom&&(0,r.jsx)(M.A,{open:em,onClose:()=>ex(!1),onSuccess:()=>{R.refresh(),ex(!1)},existingAgents:R.agents,editAgent:P}),(0,r.jsx)(A.TM,{open:ep,title:P?s.overview.customAgentRemoveTitle(P.name):"",message:s.overview.customAgentRemoveMessage,confirmLabel:s.overview.customAgentRemoveConfirm,cancelLabel:s.detail.skillCancel,onConfirm:eb,onCancel:()=>eg(!1),variant:"destructive"})]})}},43976:(e,t,s)=>{Promise.resolve().then(s.bind(s,26340)),Promise.resolve().then(s.bind(s,23684))}},e=>{e.O(0,[3940,2130,3424,2073,5152,5200,1430,5018,2330,7358],()=>e(e.s=43976)),_N_E=e.O()}]);