@sleep2agi/agent-network-dashboard 0.6.3-preview.51 → 0.6.3-preview.52

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 (230) hide show
  1. package/.next/BUILD_COMMIT +1 -1
  2. package/.next/BUILD_ID +1 -1
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/diagnostics/route-bundle-stats.json +46 -46
  5. package/.next/fallback-build-manifest.json +3 -3
  6. package/.next/prerender-manifest.json +3 -3
  7. package/.next/server/app/_global-error.html +1 -1
  8. package/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  15. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next/server/app/_not-found.html +2 -2
  17. package/.next/server/app/_not-found.rsc +13 -13
  18. package/.next/server/app/_not-found.segments/_full.segment.rsc +13 -13
  19. package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  20. package/.next/server/app/_not-found.segments/_index.segment.rsc +8 -8
  21. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  22. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  23. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  24. package/.next/server/app/admin/page.js.nft.json +1 -1
  25. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  26. package/.next/server/app/admin.html +2 -2
  27. package/.next/server/app/admin.rsc +15 -15
  28. package/.next/server/app/admin.segments/_full.segment.rsc +15 -15
  29. package/.next/server/app/admin.segments/_head.segment.rsc +4 -4
  30. package/.next/server/app/admin.segments/_index.segment.rsc +8 -8
  31. package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
  32. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +4 -4
  33. package/.next/server/app/admin.segments/admin.segment.rsc +3 -3
  34. package/.next/server/app/index.html +2 -2
  35. package/.next/server/app/index.rsc +15 -15
  36. package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  37. package/.next/server/app/index.segments/_full.segment.rsc +15 -15
  38. package/.next/server/app/index.segments/_head.segment.rsc +4 -4
  39. package/.next/server/app/index.segments/_index.segment.rsc +8 -8
  40. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  41. package/.next/server/app/login/page.js.nft.json +1 -1
  42. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  43. package/.next/server/app/login.html +2 -2
  44. package/.next/server/app/login.rsc +15 -15
  45. package/.next/server/app/login.segments/_full.segment.rsc +15 -15
  46. package/.next/server/app/login.segments/_head.segment.rsc +4 -4
  47. package/.next/server/app/login.segments/_index.segment.rsc +8 -8
  48. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  49. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  50. package/.next/server/app/login.segments/login.segment.rsc +3 -3
  51. package/.next/server/app/logs/page.js.nft.json +1 -1
  52. package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  53. package/.next/server/app/logs.html +2 -2
  54. package/.next/server/app/logs.rsc +15 -15
  55. package/.next/server/app/logs.segments/_full.segment.rsc +15 -15
  56. package/.next/server/app/logs.segments/_head.segment.rsc +4 -4
  57. package/.next/server/app/logs.segments/_index.segment.rsc +8 -8
  58. package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
  59. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +4 -4
  60. package/.next/server/app/logs.segments/logs.segment.rsc +3 -3
  61. package/.next/server/app/messages/page.js.nft.json +1 -1
  62. package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
  63. package/.next/server/app/messages.html +2 -2
  64. package/.next/server/app/messages.rsc +15 -15
  65. package/.next/server/app/messages.segments/_full.segment.rsc +15 -15
  66. package/.next/server/app/messages.segments/_head.segment.rsc +4 -4
  67. package/.next/server/app/messages.segments/_index.segment.rsc +8 -8
  68. package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
  69. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +4 -4
  70. package/.next/server/app/messages.segments/messages.segment.rsc +3 -3
  71. package/.next/server/app/node/page.js.nft.json +1 -1
  72. package/.next/server/app/node/page_client-reference-manifest.js +1 -1
  73. package/.next/server/app/node.html +2 -2
  74. package/.next/server/app/node.rsc +15 -15
  75. package/.next/server/app/node.segments/_full.segment.rsc +15 -15
  76. package/.next/server/app/node.segments/_head.segment.rsc +4 -4
  77. package/.next/server/app/node.segments/_index.segment.rsc +8 -8
  78. package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
  79. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +4 -4
  80. package/.next/server/app/node.segments/node.segment.rsc +3 -3
  81. package/.next/server/app/nodes/[alias]/page.js.nft.json +1 -1
  82. package/.next/server/app/nodes/[alias]/page_client-reference-manifest.js +1 -1
  83. package/.next/server/app/nodes/page.js.nft.json +1 -1
  84. package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  85. package/.next/server/app/nodes.html +2 -2
  86. package/.next/server/app/nodes.rsc +15 -15
  87. package/.next/server/app/nodes.segments/_full.segment.rsc +15 -15
  88. package/.next/server/app/nodes.segments/_head.segment.rsc +4 -4
  89. package/.next/server/app/nodes.segments/_index.segment.rsc +8 -8
  90. package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
  91. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +4 -4
  92. package/.next/server/app/nodes.segments/nodes.segment.rsc +3 -3
  93. package/.next/server/app/page.js.nft.json +1 -1
  94. package/.next/server/app/page_client-reference-manifest.js +1 -1
  95. package/.next/server/app/providers/page.js.nft.json +1 -1
  96. package/.next/server/app/providers/page_client-reference-manifest.js +1 -1
  97. package/.next/server/app/providers.html +2 -2
  98. package/.next/server/app/providers.rsc +15 -15
  99. package/.next/server/app/providers.segments/_full.segment.rsc +15 -15
  100. package/.next/server/app/providers.segments/_head.segment.rsc +4 -4
  101. package/.next/server/app/providers.segments/_index.segment.rsc +8 -8
  102. package/.next/server/app/providers.segments/_tree.segment.rsc +2 -2
  103. package/.next/server/app/providers.segments/providers/__PAGE__.segment.rsc +4 -4
  104. package/.next/server/app/providers.segments/providers.segment.rsc +3 -3
  105. package/.next/server/app/server-logs/page.js.nft.json +1 -1
  106. package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
  107. package/.next/server/app/server-logs.html +2 -2
  108. package/.next/server/app/server-logs.rsc +15 -15
  109. package/.next/server/app/server-logs.segments/_full.segment.rsc +15 -15
  110. package/.next/server/app/server-logs.segments/_head.segment.rsc +4 -4
  111. package/.next/server/app/server-logs.segments/_index.segment.rsc +8 -8
  112. package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
  113. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +4 -4
  114. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +3 -3
  115. package/.next/server/app/servers/page.js.nft.json +1 -1
  116. package/.next/server/app/servers/page_client-reference-manifest.js +1 -1
  117. package/.next/server/app/servers.html +2 -2
  118. package/.next/server/app/servers.rsc +15 -15
  119. package/.next/server/app/servers.segments/_full.segment.rsc +15 -15
  120. package/.next/server/app/servers.segments/_head.segment.rsc +4 -4
  121. package/.next/server/app/servers.segments/_index.segment.rsc +8 -8
  122. package/.next/server/app/servers.segments/_tree.segment.rsc +2 -2
  123. package/.next/server/app/servers.segments/servers/__PAGE__.segment.rsc +4 -4
  124. package/.next/server/app/servers.segments/servers.segment.rsc +3 -3
  125. package/.next/server/app/settings/networks/page.js.nft.json +1 -1
  126. package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
  127. package/.next/server/app/settings/networks.html +2 -2
  128. package/.next/server/app/settings/networks.rsc +15 -15
  129. package/.next/server/app/settings/networks.segments/_full.segment.rsc +15 -15
  130. package/.next/server/app/settings/networks.segments/_head.segment.rsc +4 -4
  131. package/.next/server/app/settings/networks.segments/_index.segment.rsc +8 -8
  132. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
  133. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +4 -4
  134. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +3 -3
  135. package/.next/server/app/settings/networks.segments/settings.segment.rsc +3 -3
  136. package/.next/server/app/settings/page.js.nft.json +1 -1
  137. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  138. package/.next/server/app/settings/tokens/page.js.nft.json +1 -1
  139. package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
  140. package/.next/server/app/settings/tokens.html +2 -2
  141. package/.next/server/app/settings/tokens.rsc +15 -15
  142. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +15 -15
  143. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +4 -4
  144. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +8 -8
  145. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
  146. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +4 -4
  147. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +3 -3
  148. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +3 -3
  149. package/.next/server/app/settings.html +2 -2
  150. package/.next/server/app/settings.rsc +15 -15
  151. package/.next/server/app/settings.segments/_full.segment.rsc +15 -15
  152. package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  153. package/.next/server/app/settings.segments/_index.segment.rsc +8 -8
  154. package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  155. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  156. package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  157. package/.next/server/app/tasks/[id]/page.js.nft.json +1 -1
  158. package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  159. package/.next/server/app/tasks/page.js.nft.json +1 -1
  160. package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  161. package/.next/server/app/tasks.html +2 -2
  162. package/.next/server/app/tasks.rsc +15 -15
  163. package/.next/server/app/tasks.segments/_full.segment.rsc +15 -15
  164. package/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
  165. package/.next/server/app/tasks.segments/_index.segment.rsc +8 -8
  166. package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
  167. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
  168. package/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
  169. package/.next/server/chunks/ssr/[root-of-the-server]__06w5i08._.js +1 -1
  170. package/.next/server/chunks/ssr/[root-of-the-server]__06w5i08._.js.map +1 -1
  171. package/.next/server/chunks/ssr/[root-of-the-server]__0dcez4x._.js +11 -0
  172. package/.next/server/chunks/ssr/[root-of-the-server]__0dcez4x._.js.map +1 -0
  173. package/.next/server/chunks/ssr/{[root-of-the-server]__0jgqpfv._.js → [root-of-the-server]__0gyqilt._.js} +2 -2
  174. package/.next/server/chunks/ssr/[root-of-the-server]__0gyqilt._.js.map +1 -0
  175. package/.next/server/chunks/ssr/[root-of-the-server]__0j-def.._.js +11 -0
  176. package/.next/server/chunks/ssr/[root-of-the-server]__0j-def.._.js.map +1 -0
  177. package/.next/server/chunks/ssr/{[root-of-the-server]__11wln8.._.js → [root-of-the-server]__0oavw6j._.js} +2 -2
  178. package/.next/server/chunks/ssr/[root-of-the-server]__0oavw6j._.js.map +1 -0
  179. package/.next/server/chunks/ssr/[root-of-the-server]__0rct4.k._.js +3 -0
  180. package/.next/server/chunks/ssr/{[root-of-the-server]__02o~-py._.js.map → [root-of-the-server]__0rct4.k._.js.map} +1 -1
  181. package/.next/server/chunks/ssr/dash-stageb-wt_app_05u4_h~._.js +2 -2
  182. package/.next/server/chunks/ssr/dash-stageb-wt_app_05u4_h~._.js.map +1 -1
  183. package/.next/server/chunks/ssr/dash-stageb-wt_app_0qn7hvc._.js +1 -1
  184. package/.next/server/chunks/ssr/dash-stageb-wt_app_0qn7hvc._.js.map +1 -1
  185. package/.next/server/chunks/ssr/dash-stageb-wt_app_0ss0pj-._.js +1 -1
  186. package/.next/server/chunks/ssr/dash-stageb-wt_app_0ss0pj-._.js.map +1 -1
  187. package/.next/server/chunks/ssr/dash-stageb-wt_app_nodes_NodesView_tsx_0patjj7._.js +2 -2
  188. package/.next/server/chunks/ssr/dash-stageb-wt_app_nodes_NodesView_tsx_0patjj7._.js.map +1 -1
  189. package/.next/server/middleware-build-manifest.js +3 -3
  190. package/.next/server/pages/404.html +2 -2
  191. package/.next/server/pages/500.html +1 -1
  192. package/.next/server/server-reference-manifest.js +1 -1
  193. package/.next/server/server-reference-manifest.json +1 -1
  194. package/.next/static/chunks/0-ot~88nectgp.js +2 -0
  195. package/.next/static/chunks/00adqh_rd04uf.js +9 -0
  196. package/.next/static/chunks/{0advoo2tzdcyi.js → 051p0pw4z~6ag.js} +1 -1
  197. package/.next/static/chunks/{0uk67ty_0h_36.js → 0lf8e-h91s10h.js} +1 -1
  198. package/.next/static/chunks/{0dkk_l872ocgm.js → 0ohx4jpm9~61..js} +1 -1
  199. package/.next/static/chunks/0pg4pce.q5ne_.js +9 -0
  200. package/.next/static/chunks/{0fz7zk.ek.154.js → 0u5y.gmi~jkw6.js} +1 -1
  201. package/.next/static/chunks/0wf03_efeii.w.css +1 -0
  202. package/.next/static/chunks/0ws0p1n62l~ub.js +1 -0
  203. package/.next/static/chunks/{06q7-vhy~1-y3.js → 0~rx9_~1wupcp.js} +2 -2
  204. package/.next/static/chunks/{0z_4d13crd_af.js → 14x094g58kg61.js} +1 -1
  205. package/.next/trace +2 -2
  206. package/.next/trace-build +1 -1
  207. package/app/components/ChatPane.tsx +26 -2
  208. package/app/components/NodeList.tsx +14 -4
  209. package/app/components/TaskChatPanel.tsx +156 -31
  210. package/app/messages/page.tsx +22 -22
  211. package/app/nodes/NodesView.tsx +52 -11
  212. package/package.json +1 -1
  213. package/tests/e2e-9-nodes-team-tag-filter.spec.ts +14 -7
  214. package/tests/e2e-messages-spec-visual-align.spec.ts +244 -0
  215. package/tests/e2e-pin-mute-attr-always-present.spec.ts +171 -0
  216. package/tests/e2e-stage-a-node-list.spec.ts +14 -7
  217. package/tests/e2e-stage-b-chat-pane.spec.ts +74 -10
  218. package/tests/e2e-status-labels.spec.ts +218 -0
  219. package/.next/server/chunks/ssr/[root-of-the-server]__02o~-py._.js +0 -3
  220. package/.next/server/chunks/ssr/[root-of-the-server]__0jgqpfv._.js.map +0 -1
  221. package/.next/server/chunks/ssr/[root-of-the-server]__0w7k~3f._.js +0 -9
  222. package/.next/server/chunks/ssr/[root-of-the-server]__0w7k~3f._.js.map +0 -1
  223. package/.next/server/chunks/ssr/[root-of-the-server]__11wln8.._.js.map +0 -1
  224. package/.next/static/chunks/05~lgfzsv.p~p.js +0 -2
  225. package/.next/static/chunks/092zqb~4un32l.css +0 -1
  226. package/.next/static/chunks/11zz15q37~bz5.js +0 -7
  227. package/.next/static/chunks/17qkc714xy04..js +0 -1
  228. /package/.next/static/{JL_QjNKv1KhsCF68ZK28x → RiXBfeE2zY5tzXRmF7kBD}/_buildManifest.js +0 -0
  229. /package/.next/static/{JL_QjNKv1KhsCF68ZK28x → RiXBfeE2zY5tzXRmF7kBD}/_clientMiddlewareManifest.js +0 -0
  230. /package/.next/static/{JL_QjNKv1KhsCF68ZK28x → RiXBfeE2zY5tzXRmF7kBD}/_ssgManifest.js +0 -0
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
7
7
  "static/chunks/03~yq9q893hmn.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/JL_QjNKv1KhsCF68ZK28x/_buildManifest.js",
11
- "static/JL_QjNKv1KhsCF68ZK28x/_ssgManifest.js",
12
- "static/JL_QjNKv1KhsCF68ZK28x/_clientMiddlewareManifest.js"
10
+ "static/RiXBfeE2zY5tzXRmF7kBD/_buildManifest.js",
11
+ "static/RiXBfeE2zY5tzXRmF7kBD/_ssgManifest.js",
12
+ "static/RiXBfeE2zY5tzXRmF7kBD/_clientMiddlewareManifest.js"
13
13
  ],
14
14
  "rootMainFiles": [
15
15
  "static/chunks/0n-tdv3l8enbw.js",
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html lang="en" data-theme="cyber" class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable h-full antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, viewport-fit=cover"/><link rel="stylesheet" href="/_next/static/chunks/066jf0nk75nic.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/092zqb~4un32l.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0n-tdv3l8enbw.js"/><script src="/_next/static/chunks/11yi6~9pd0czc.js" async=""></script><script src="/_next/static/chunks/0j6.6znwa2~yo.js" async=""></script><script src="/_next/static/chunks/15epy-0ulylz6.js" async=""></script><script src="/_next/static/chunks/turbopack-0.m-qknku0twt.js" async=""></script><script src="/_next/static/chunks/17qkc714xy04..js" async=""></script><script src="/_next/static/chunks/0kncmrm2a_q43.js" async=""></script><script src="/_next/static/chunks/0xyu92zdvvghl.js" async=""></script><script src="/_next/static/chunks/05m-nd5i001-f.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><meta name="theme-color" content="#0b0b0d"/><title>Agent Network Dashboard</title><meta name="description" content="Real-time monitoring dashboard for Agent Network nodes via CommHub"/><link rel="manifest" href="/manifest.webmanifest"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="Agent Network"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><meta property="og:title" content="Agent Network Dashboard"/><meta property="og:description" content="Real-time monitoring dashboard for Agent Network nodes"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:title" content="Agent Network Dashboard"/><meta name="twitter:description" content="Real-time monitoring dashboard for Agent Network nodes"/><link rel="shortcut icon" href="/favicon.svg"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><link rel="icon" href="/favicon.svg" type="image/svg+xml"/><link rel="apple-touch-icon" href="/sleep2agi-logo.svg" type="image/svg+xml"/><script>
1
+ <!DOCTYPE html><html lang="en" data-theme="cyber" class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable h-full antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, viewport-fit=cover"/><link rel="stylesheet" href="/_next/static/chunks/066jf0nk75nic.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/0wf03_efeii.w.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0n-tdv3l8enbw.js"/><script src="/_next/static/chunks/11yi6~9pd0czc.js" async=""></script><script src="/_next/static/chunks/0j6.6znwa2~yo.js" async=""></script><script src="/_next/static/chunks/15epy-0ulylz6.js" async=""></script><script src="/_next/static/chunks/turbopack-0.m-qknku0twt.js" async=""></script><script src="/_next/static/chunks/0ws0p1n62l~ub.js" async=""></script><script src="/_next/static/chunks/0kncmrm2a_q43.js" async=""></script><script src="/_next/static/chunks/0xyu92zdvvghl.js" async=""></script><script src="/_next/static/chunks/05m-nd5i001-f.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><meta name="theme-color" content="#0b0b0d"/><title>Agent Network Dashboard</title><meta name="description" content="Real-time monitoring dashboard for Agent Network nodes via CommHub"/><link rel="manifest" href="/manifest.webmanifest"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="Agent Network"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><meta property="og:title" content="Agent Network Dashboard"/><meta property="og:description" content="Real-time monitoring dashboard for Agent Network nodes"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:title" content="Agent Network Dashboard"/><meta name="twitter:description" content="Real-time monitoring dashboard for Agent Network nodes"/><link rel="shortcut icon" href="/favicon.svg"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><link rel="icon" href="/favicon.svg" type="image/svg+xml"/><link rel="apple-touch-icon" href="/sleep2agi-logo.svg" type="image/svg+xml"/><script>
2
2
  try {
3
3
  var t = localStorage.getItem('anet-theme') || 'cyber';
4
4
  document.documentElement.setAttribute('data-theme', t);
@@ -9,4 +9,4 @@ try {
9
9
  w-14 bg-[#0A0C14]
10
10
  -translate-x-full
11
11
  lg:translate-x-0 lg:static lg:shrink-0 lg:shadow-none
12
- "><a class="block px-3 py-4 flex justify-center hover:opacity-80 transition-opacity" aria-label="Agent Network — home" href="/"><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true" class="shrink-0"><circle cx="16" cy="16" r="10" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.2" class="text-cyan-400"></circle><line x1="16" y1="10" x2="10" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><line x1="16" y1="10" x2="22" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><line x1="10" y1="20" x2="22" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><circle cx="16" cy="10" r="2.5" fill="currentColor" class="text-cyan-400"></circle><circle cx="10" cy="20" r="2.5" fill="currentColor" class="text-green-400"></circle><circle cx="22" cy="20" r="2.5" fill="currentColor" class="text-violet-400"></circle></svg></a><div class="border-b border-[#26262b]"></div><div class="pb-28"><nav class="flex flex-col gap-2 px-0 py-2 items-center" data-sidebar-nav="true"><a title="Overview" aria-label="Overview" data-nav-item="true" data-nav-href="/" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg></span></a><a title="Tasks" aria-label="Tasks" data-nav-item="true" data-nav-href="/tasks" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/tasks"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg></span></a><a title="Nodes" aria-label="Nodes" data-nav-item="true" data-nav-href="/nodes" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/nodes"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"></path></svg></span></a><a title="Servers" aria-label="Servers" data-nav-item="true" data-nav-href="/servers" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/servers"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M4 6.5A2.5 2.5 0 016.5 4h11A2.5 2.5 0 0120 6.5v1A2.5 2.5 0 0117.5 10h-11A2.5 2.5 0 014 7.5v-1zM4 16.5A2.5 2.5 0 016.5 14h11a2.5 2.5 0 012.5 2.5v1a2.5 2.5 0 01-2.5 2.5h-11A2.5 2.5 0 014 17.5v-1zM7 7h.01M7 17h.01"></path></svg></span></a><a title="Providers" aria-label="Providers" data-nav-item="true" data-nav-href="/providers" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/providers"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></span></a><a title="Admin" aria-label="Admin" data-nav-item="true" data-nav-href="/admin" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/admin"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"></path></svg></span></a><a title="Settings" aria-label="Settings" data-nav-item="true" data-nav-href="/settings" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/settings"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span></a></nav></div><div class="absolute bottom-0 left-0 right-0 border-t border-[#26262b] bg-[#111113]"><button title="主题:深色(点击切换)" class="w-full flex items-center text-[11px] text-gray-600 hover:text-gray-400 hover:bg-[#1c1c1f] transition-colors justify-center px-0 py-2.5" aria-label="切换主题(当前:深色)"><span class="flex items-center "><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M4.098 19.902a3.75 3.75 0 005.304 0l6.401-6.402M6.75 21A3.75 3.75 0 013 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 003.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88c.438-.439 1.15-.439 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88"></path></svg></span></button><button title="Quick search (⌘K)" class="w-full flex items-center text-[11px] text-gray-600 hover:text-gray-400 hover:bg-[#1c1c1f] transition-colors justify-center px-0 py-2.5" aria-label="Open command palette"><span class="flex items-center "><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg></span></button><button title="Sign out" class="w-full flex items-center text-xs text-gray-500 hover:text-red-400 hover:bg-red-500/5 transition-colors justify-center px-0 py-2.5"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"></path></svg></button><div class="flex items-center flex-col px-0 py-2"><button title="当前:图标 — 点击切换(展开 → 折叠 → 图标)" data-testid="sidebar-mode-cycle" class="hidden lg:flex p-1.5 rounded text-gray-600 hover:text-gray-400 transition-colors items-center gap-1" aria-label="Cycle sidebar mode (current: icon-rail)"><svg class="w-4 h-4 transition-transform rotate-180" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19l-7-7 7-7"></path></svg></button></div></div></aside><main class="flex-1 min-w-0 max-w-full overflow-x-hidden flex flex-col pt-[env(safe-area-inset-top)]"><div class="flex-1 min-w-0 max-w-full overflow-x-hidden pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-0"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></div></main><nav class="fixed inset-x-0 bottom-0 z-40 border-t border-[#26262b] bg-[#111113]/95 px-1 pb-[calc(env(safe-area-inset-bottom)+0.35rem)] pt-1.5 backdrop-blur lg:hidden"><div class="mx-auto grid max-w-md grid-cols-4 gap-1"><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/nodes"><span class="relative inline-flex"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"></path></svg></span><span class="max-w-full truncate">Agents</span></a><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/"><span class="relative inline-flex"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg></span><span class="max-w-full truncate">Overview</span></a><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/tasks"><span class="relative inline-flex"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg></span><span class="max-w-full truncate">Tasks</span></a><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/settings"><span class="relative inline-flex"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="max-w-full truncate">Settings</span></a></div></nav><aside class="fixed right-0 top-20 z-40 hidden lg:flex flex-col rounded-l-xl border border-r-0 shadow-xl shadow-black/30 anet-fade-in" style="background:var(--bg-secondary);border-color:var(--border);width:40px;max-height:calc(100vh - 6rem);transition:width 200ms ease-out" aria-label="Servers panel"><button aria-expanded="false" aria-label="Expand servers panel" class="flex items-center gap-2 px-2.5 py-2 border-b text-[11px] font-semibold tracking-wide select-none" style="color:var(--fg);border-color:var(--border)"><svg class="w-4 h-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="6" rx="1.5"></rect><rect x="3" y="14" width="18" height="6" rx="1.5"></rect><circle cx="7" cy="7" r="0.7" fill="currentColor"></circle><circle cx="7" cy="17" r="0.7" fill="currentColor"></circle></svg></button></aside></div><script src="/_next/static/chunks/0n-tdv3l8enbw.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[70563,[\"/_next/static/chunks/17qkc714xy04..js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"ThemeProvider\"]\n3:I[25879,[\"/_next/static/chunks/17qkc714xy04..js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"NetworkProvider\"]\n4:I[91960,[\"/_next/static/chunks/17qkc714xy04..js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"PwaInstaller\"]\n5:I[46178,[\"/_next/static/chunks/17qkc714xy04..js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"AppShell\"]\n6:I[30208,[\"/_next/static/chunks/17qkc714xy04..js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"default\"]\n7:I[85850,[\"/_next/static/chunks/17qkc714xy04..js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"default\"]\n8:I[46773,[\"/_next/static/chunks/17qkc714xy04..js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nc:I[46773,[\"/_next/static/chunks/17qkc714xy04..js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"ViewportBoundary\"]\ne:I[46773,[\"/_next/static/chunks/17qkc714xy04..js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"MetadataBoundary\"]\n10:I[52828,[\"/_next/static/chunks/17qkc714xy04..js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/066jf0nk75nic.css\",\"style\"]\n:HL[\"/_next/static/chunks/092zqb~4un32l.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/066jf0nk75nic.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/092zqb~4un32l.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/17qkc714xy04..js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0kncmrm2a_q43.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/0xyu92zdvvghl.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/05m-nd5i001-f.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"data-theme\":\"cyber\",\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable h-full antialiased\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\ntry {\\n var t = localStorage.getItem('anet-theme') || 'cyber';\\n document.documentElement.setAttribute('data-theme', t);\\n} catch (e) {}\\n\"}}]}],[\"$\",\"body\",null,{\"className\":\"min-h-full\",\"style\":{\"background\":\"var(--bg)\",\"color\":\"var(--fg)\"},\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[[\"$\",\"$L4\",null,{}],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,null]},null,false,\"$@b\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lc\",null,{\"children\":\"$Ld\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$10\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/066jf0nk75nic.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/092zqb~4un32l.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"JL_QjNKv1KhsCF68ZK28x\"}\n"])</script><script>self.__next_f.push([1,"11:[]\nb:\"$W11\"\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, viewport-fit=cover\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#0b0b0d\"}]]\n"])</script><script>self.__next_f.push([1,"12:I[90840,[\"/_next/static/chunks/17qkc714xy04..js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"IconMark\"]\na:null\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"title\",\"0\",{\"children\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes via CommHub\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"3\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"4\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"Agent Network\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"meta\",\"7\",{\"property\":\"og:title\",\"content\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"8\",{\"property\":\"og:description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes\"}],[\"$\",\"meta\",\"9\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"10\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"11\",{\"name\":\"twitter:title\",\"content\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"12\",{\"name\":\"twitter:description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes\"}],[\"$\",\"link\",\"13\",{\"rel\":\"shortcut icon\",\"href\":\"/favicon.svg\"}],[\"$\",\"link\",\"14\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"15\",{\"rel\":\"icon\",\"href\":\"/favicon.svg\",\"type\":\"image/svg+xml\"}],[\"$\",\"link\",\"16\",{\"rel\":\"apple-touch-icon\",\"href\":\"/sleep2agi-logo.svg\",\"type\":\"image/svg+xml\"}],[\"$\",\"$L12\",\"17\",{}]]\n"])</script></body></html>
12
+ "><a class="block px-3 py-4 flex justify-center hover:opacity-80 transition-opacity" aria-label="Agent Network — home" href="/"><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true" class="shrink-0"><circle cx="16" cy="16" r="10" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.2" class="text-cyan-400"></circle><line x1="16" y1="10" x2="10" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><line x1="16" y1="10" x2="22" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><line x1="10" y1="20" x2="22" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><circle cx="16" cy="10" r="2.5" fill="currentColor" class="text-cyan-400"></circle><circle cx="10" cy="20" r="2.5" fill="currentColor" class="text-green-400"></circle><circle cx="22" cy="20" r="2.5" fill="currentColor" class="text-violet-400"></circle></svg></a><div class="border-b border-[#26262b]"></div><div class="pb-28"><nav class="flex flex-col gap-2 px-0 py-2 items-center" data-sidebar-nav="true"><a title="Overview" aria-label="Overview" data-nav-item="true" data-nav-href="/" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg></span></a><a title="Tasks" aria-label="Tasks" data-nav-item="true" data-nav-href="/tasks" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/tasks"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg></span></a><a title="Nodes" aria-label="Nodes" data-nav-item="true" data-nav-href="/nodes" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/nodes"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"></path></svg></span></a><a title="Servers" aria-label="Servers" data-nav-item="true" data-nav-href="/servers" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/servers"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M4 6.5A2.5 2.5 0 016.5 4h11A2.5 2.5 0 0120 6.5v1A2.5 2.5 0 0117.5 10h-11A2.5 2.5 0 014 7.5v-1zM4 16.5A2.5 2.5 0 016.5 14h11a2.5 2.5 0 012.5 2.5v1a2.5 2.5 0 01-2.5 2.5h-11A2.5 2.5 0 014 17.5v-1zM7 7h.01M7 17h.01"></path></svg></span></a><a title="Providers" aria-label="Providers" data-nav-item="true" data-nav-href="/providers" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/providers"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></span></a><a title="Admin" aria-label="Admin" data-nav-item="true" data-nav-href="/admin" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/admin"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"></path></svg></span></a><a title="Settings" aria-label="Settings" data-nav-item="true" data-nav-href="/settings" class="relative flex items-center justify-center w-11 h-11 group anet-nav-item-rail" href="/settings"><span class="flex items-center justify-center w-10 h-10 rounded-lg transition-colors text-[#64748B] hover:text-[#E2E8F0] hover:bg-[rgba(255,255,255,0.04)]"><svg class="w-6 h-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span></a></nav></div><div class="absolute bottom-0 left-0 right-0 border-t border-[#26262b] bg-[#111113]"><button title="主题:深色(点击切换)" class="w-full flex items-center text-[11px] text-gray-600 hover:text-gray-400 hover:bg-[#1c1c1f] transition-colors justify-center px-0 py-2.5" aria-label="切换主题(当前:深色)"><span class="flex items-center "><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M4.098 19.902a3.75 3.75 0 005.304 0l6.401-6.402M6.75 21A3.75 3.75 0 013 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 003.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88c.438-.439 1.15-.439 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88"></path></svg></span></button><button title="Quick search (⌘K)" class="w-full flex items-center text-[11px] text-gray-600 hover:text-gray-400 hover:bg-[#1c1c1f] transition-colors justify-center px-0 py-2.5" aria-label="Open command palette"><span class="flex items-center "><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg></span></button><button title="Sign out" class="w-full flex items-center text-xs text-gray-500 hover:text-red-400 hover:bg-red-500/5 transition-colors justify-center px-0 py-2.5"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"></path></svg></button><div class="flex items-center flex-col px-0 py-2"><button title="当前:图标 — 点击切换(展开 → 折叠 → 图标)" data-testid="sidebar-mode-cycle" class="hidden lg:flex p-1.5 rounded text-gray-600 hover:text-gray-400 transition-colors items-center gap-1" aria-label="Cycle sidebar mode (current: icon-rail)"><svg class="w-4 h-4 transition-transform rotate-180" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19l-7-7 7-7"></path></svg></button></div></div></aside><main class="flex-1 min-w-0 max-w-full overflow-x-hidden flex flex-col pt-[env(safe-area-inset-top)]"><div class="flex-1 min-w-0 max-w-full overflow-x-hidden pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-0"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></div></main><nav class="fixed inset-x-0 bottom-0 z-40 border-t border-[#26262b] bg-[#111113]/95 px-1 pb-[calc(env(safe-area-inset-bottom)+0.35rem)] pt-1.5 backdrop-blur lg:hidden"><div class="mx-auto grid max-w-md grid-cols-4 gap-1"><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/nodes"><span class="relative inline-flex"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"></path></svg></span><span class="max-w-full truncate">Agents</span></a><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/"><span class="relative inline-flex"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg></span><span class="max-w-full truncate">Overview</span></a><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/tasks"><span class="relative inline-flex"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg></span><span class="max-w-full truncate">Tasks</span></a><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/settings"><span class="relative inline-flex"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg></span><span class="max-w-full truncate">Settings</span></a></div></nav><aside class="fixed right-0 top-20 z-40 hidden lg:flex flex-col rounded-l-xl border border-r-0 shadow-xl shadow-black/30 anet-fade-in" style="background:var(--bg-secondary);border-color:var(--border);width:40px;max-height:calc(100vh - 6rem);transition:width 200ms ease-out" aria-label="Servers panel"><button aria-expanded="false" aria-label="Expand servers panel" class="flex items-center gap-2 px-2.5 py-2 border-b text-[11px] font-semibold tracking-wide select-none" style="color:var(--fg);border-color:var(--border)"><svg class="w-4 h-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="6" rx="1.5"></rect><rect x="3" y="14" width="18" height="6" rx="1.5"></rect><circle cx="7" cy="7" r="0.7" fill="currentColor"></circle><circle cx="7" cy="17" r="0.7" fill="currentColor"></circle></svg></button></aside></div><script src="/_next/static/chunks/0n-tdv3l8enbw.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[70563,[\"/_next/static/chunks/0ws0p1n62l~ub.js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"ThemeProvider\"]\n3:I[25879,[\"/_next/static/chunks/0ws0p1n62l~ub.js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"NetworkProvider\"]\n4:I[91960,[\"/_next/static/chunks/0ws0p1n62l~ub.js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"PwaInstaller\"]\n5:I[46178,[\"/_next/static/chunks/0ws0p1n62l~ub.js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"AppShell\"]\n6:I[30208,[\"/_next/static/chunks/0ws0p1n62l~ub.js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"default\"]\n7:I[85850,[\"/_next/static/chunks/0ws0p1n62l~ub.js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"default\"]\n8:I[46773,[\"/_next/static/chunks/0ws0p1n62l~ub.js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nc:I[46773,[\"/_next/static/chunks/0ws0p1n62l~ub.js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"ViewportBoundary\"]\ne:I[46773,[\"/_next/static/chunks/0ws0p1n62l~ub.js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"MetadataBoundary\"]\n10:I[52828,[\"/_next/static/chunks/0ws0p1n62l~ub.js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/066jf0nk75nic.css\",\"style\"]\n:HL[\"/_next/static/chunks/0wf03_efeii.w.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/066jf0nk75nic.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0wf03_efeii.w.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0ws0p1n62l~ub.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0kncmrm2a_q43.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/0xyu92zdvvghl.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/05m-nd5i001-f.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"data-theme\":\"cyber\",\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable h-full antialiased\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\ntry {\\n var t = localStorage.getItem('anet-theme') || 'cyber';\\n document.documentElement.setAttribute('data-theme', t);\\n} catch (e) {}\\n\"}}]}],[\"$\",\"body\",null,{\"className\":\"min-h-full\",\"style\":{\"background\":\"var(--bg)\",\"color\":\"var(--fg)\"},\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[[\"$\",\"$L4\",null,{}],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,null]},null,false,\"$@b\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lc\",null,{\"children\":\"$Ld\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$10\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/066jf0nk75nic.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0wf03_efeii.w.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"RiXBfeE2zY5tzXRmF7kBD\"}\n"])</script><script>self.__next_f.push([1,"11:[]\nb:\"$W11\"\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, viewport-fit=cover\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#0b0b0d\"}]]\n"])</script><script>self.__next_f.push([1,"12:I[90840,[\"/_next/static/chunks/0ws0p1n62l~ub.js\",\"/_next/static/chunks/0kncmrm2a_q43.js\",\"/_next/static/chunks/0xyu92zdvvghl.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"IconMark\"]\na:null\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"title\",\"0\",{\"children\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes via CommHub\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"3\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"4\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"Agent Network\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"meta\",\"7\",{\"property\":\"og:title\",\"content\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"8\",{\"property\":\"og:description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes\"}],[\"$\",\"meta\",\"9\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"10\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"11\",{\"name\":\"twitter:title\",\"content\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"12\",{\"name\":\"twitter:description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes\"}],[\"$\",\"link\",\"13\",{\"rel\":\"shortcut icon\",\"href\":\"/favicon.svg\"}],[\"$\",\"link\",\"14\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"15\",{\"rel\":\"icon\",\"href\":\"/favicon.svg\",\"type\":\"image/svg+xml\"}],[\"$\",\"link\",\"16\",{\"rel\":\"apple-touch-icon\",\"href\":\"/sleep2agi-logo.svg\",\"type\":\"image/svg+xml\"}],[\"$\",\"$L12\",\"17\",{}]]\n"])</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0n-tdv3l8enbw.js"/><script src="/_next/static/chunks/11yi6~9pd0czc.js" async=""></script><script src="/_next/static/chunks/0j6.6znwa2~yo.js" async=""></script><script src="/_next/static/chunks/15epy-0ulylz6.js" async=""></script><script src="/_next/static/chunks/turbopack-0.m-qknku0twt.js" async=""></script><script src="/_next/static/chunks/0numreonuf5xw.js" async=""></script><script src="/_next/static/chunks/05m-nd5i001-f.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="manifest" href="/manifest.webmanifest"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0n-tdv3l8enbw.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[30208,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"default\"]\n3:I[85850,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"default\"]\n4:I[46773,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[46773,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"ViewportBoundary\"]\na:I[46773,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"MetadataBoundary\"]\nc:I[52828,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"JL_QjNKv1KhsCF68ZK28x\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[90840,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"2\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0n-tdv3l8enbw.js"/><script src="/_next/static/chunks/11yi6~9pd0czc.js" async=""></script><script src="/_next/static/chunks/0j6.6znwa2~yo.js" async=""></script><script src="/_next/static/chunks/15epy-0ulylz6.js" async=""></script><script src="/_next/static/chunks/turbopack-0.m-qknku0twt.js" async=""></script><script src="/_next/static/chunks/0numreonuf5xw.js" async=""></script><script src="/_next/static/chunks/05m-nd5i001-f.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="manifest" href="/manifest.webmanifest"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0n-tdv3l8enbw.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[30208,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"default\"]\n3:I[85850,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"default\"]\n4:I[46773,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[46773,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"ViewportBoundary\"]\na:I[46773,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"MetadataBoundary\"]\nc:I[52828,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"RiXBfeE2zY5tzXRmF7kBD\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[90840,[\"/_next/static/chunks/0numreonuf5xw.js\",\"/_next/static/chunks/05m-nd5i001-f.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"2\",{}]]\n"])</script></body></html>
@@ -1 +1 @@
1
- self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"R9fmiuhSbNq1GMZiVlavqqlIRuIDZpqBaxVw8pm7gJw=\"\n}"
1
+ self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"99FBVwD1lN5tnGbvujBFdDWx5TxjDXZQL6T7TOkpLZ8=\"\n}"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "node": {},
3
3
  "edge": {},
4
- "encryptionKey": "R9fmiuhSbNq1GMZiVlavqqlIRuIDZpqBaxVw8pm7gJw="
4
+ "encryptionKey": "99FBVwD1lN5tnGbvujBFdDWx5TxjDXZQL6T7TOkpLZ8="
5
5
  }
@@ -0,0 +1,2 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35599,e=>{"use strict";var t=e.i(90724),s=e.i(87854),a=e.i(91342),n=e.i(74069),r=e.i(55480),l=e.i(25879);function i({networkId:e,value:a,onChange:n}){let[r,l]=(0,s.useState)("loading"),[c,x]=(0,s.useState)([]),[u,m]=(0,s.useState)(""),[h,p]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{let t=!0;return l("loading"),m(""),fetch(e?`/api/anet/host-supervisors?network_id=${encodeURIComponent(e)}`:"/api/anet/host-supervisors",{cache:"no-store"}).then(e=>e.json().then(t=>({status:e.status,body:t}))).then(({status:e,body:s})=>{if(!t)return;if(501===e||s?.unconfirmed){l("unconfirmed"),m(s?.error||"hub /api/host-supervisors unavailable — upgrade to >=0.9.0-preview.8"),x([]);return}if(!s?.ok){l("error"),m(s?.error||`hub ${e}`),x([]);return}let r=Array.isArray(s.daemons)?s.daemons:[];x(r),l("ready"),1!==r.length||a||n(r[0].daemon_node_id,r[0])}).catch(e=>{t&&(l("error"),m(e instanceof Error?e.message:String(e)),x([]))}),()=>{t=!1}},[e]),"loading"===r)return(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-md border border-[#26262b] bg-[#0e0e10] px-3 py-3 text-xs text-gray-500",children:[(0,t.jsxs)("svg",{className:"h-3.5 w-3.5 animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),"正在查询可用的 host_supervisor 节点…"]});if("unconfirmed"===r)return(0,t.jsxs)("div",{className:"rounded-md border border-amber-700/40 bg-amber-900/10 px-3 py-3 text-xs text-amber-200",children:[(0,t.jsx)("div",{className:"font-semibold mb-1",children:"hub 暂未升级"}),(0,t.jsx)("div",{className:"text-amber-200/80",children:u}),(0,t.jsxs)("div",{className:"mt-1 text-[11px] text-amber-200/60",children:["升级到 ",(0,t.jsx)("code",{className:"rounded bg-black/40 px-1 py-0.5",children:"@sleep2agi/commhub-server@0.9.0-preview.8"})," 后选服务器功能才会出现。"]})]});if("error"===r)return(0,t.jsxs)("div",{className:"rounded-md border border-red-700/40 bg-red-900/10 px-3 py-3 text-xs text-red-200",children:["查询 host_supervisor 节点失败:",u]});if(0===c.length)return(0,t.jsxs)("div",{className:"rounded-md border border-[#26262b] bg-[#0e0e10] px-3 py-4 text-xs text-gray-300",children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-gray-200",children:"还没有可用的 host_supervisor 节点"}),(0,t.jsx)("p",{className:"mt-1 text-gray-500",children:"要在某台机器上创建节点,先在那台机器上跑一次 daemon 初始化命令:"}),(0,t.jsx)("pre",{className:"mt-2 overflow-x-auto rounded bg-black/40 p-2 text-[11px] text-cyan-300",children:`# 任选一台目标机器(你的笔记本 / 一台服务器都行)
2
+ anet daemon up my-daemon`}),(0,t.jsx)("p",{className:"mt-2 text-gray-500",children:"注册成功后这里会自动出现,无需刷新。"})]});if(1===c.length&&!h){let e=c[0];return(0,t.jsxs)("div",{className:"rounded-md border border-cyan-700/40 bg-cyan-900/10 px-3 py-3 text-xs text-cyan-100",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-cyan-400/80",children:"将在"})," ",(0,t.jsx)("span",{className:"font-semibold",children:e.alias}),(0,t.jsxs)("span",{className:"text-cyan-300/60",children:[" (",e.hostname||"—",") "]}),(0,t.jsx)("span",{className:"text-cyan-400/80",children:"上创建"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>p(!0),className:"text-[11px] text-cyan-400 hover:text-cyan-200 underline-offset-2 hover:underline",children:"详情 →"})]}),(0,t.jsx)(o,{runtimes:e.runtimes_supported,className:"mt-1"})]})}return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between text-xs text-gray-400",children:[(0,t.jsxs)("span",{children:["选择一台 host_supervisor 节点(",c.length," 台在线)"]}),h&&1===c.length&&(0,t.jsx)("button",{type:"button",onClick:()=>p(!1),className:"text-[11px] text-gray-500 hover:text-gray-300",children:"← 折叠"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-2 lg:grid-cols-3",children:c.map(e=>(0,t.jsx)(d,{daemon:e,selected:e.daemon_node_id===a,onClick:()=>n(e.daemon_node_id,e)},e.daemon_node_id))})]})}function d({daemon:e,selected:s,onClick:a}){let n=e.host_telemetry?.alert_level||"gray";return(0,t.jsxs)("button",{type:"button",onClick:a,"aria-pressed":s,className:`flex w-full flex-col gap-1.5 rounded-md border px-3 py-2.5 text-left text-xs transition-colors ${s?"border-cyan-600 bg-cyan-900/15 text-cyan-100":"border-[#26262b] bg-[#0e0e10] text-gray-300 hover:border-[#3a3a41]"}`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"truncate font-semibold",children:e.alias}),(0,t.jsx)(c,{level:n})]}),(0,t.jsx)("div",{className:"truncate text-[11px] text-gray-500",children:e.hostname||"—"}),(0,t.jsx)(o,{runtimes:e.runtimes_supported}),(e.host_telemetry?.cpu_cores!=null||e.host_telemetry?.mem_gb!=null)&&(0,t.jsxs)("div",{className:"flex gap-3 text-[10px] text-gray-500",children:[e.host_telemetry?.cpu_cores!=null&&(0,t.jsxs)("span",{children:[e.host_telemetry.cpu_cores," 核"]}),e.host_telemetry?.mem_gb!=null&&(0,t.jsxs)("span",{children:[e.host_telemetry.mem_gb," GB"]})]})]})}function o({runtimes:e,className:s=""}){return e&&0!==e.length?(0,t.jsx)("div",{className:`flex flex-wrap gap-1 ${s}`,children:e.map(e=>(0,t.jsx)("span",{className:"rounded bg-[#1c1c1f] px-1.5 py-0.5 text-[10px] text-gray-400",children:e},e))}):(0,t.jsx)("div",{className:`text-[10px] text-gray-600 ${s}`,children:"runtimes_supported: —"})}function c({level:e}){return(0,t.jsx)("span",{className:`rounded border px-1.5 py-0.5 text-[10px] ${{green:"bg-green-600/20 text-green-300 border-green-700/40",yellow:"bg-amber-600/20 text-amber-300 border-amber-700/40",red:"bg-red-600/20 text-red-300 border-red-700/40",gray:"bg-gray-600/20 text-gray-400 border-gray-700/40"}[e]}`,children:{green:"正常",yellow:"注意",red:"警报",gray:"离线"}[e]})}let x=[{id:"claude-agent-sdk",label:"Claude Agent SDK",models:["deepseek-v4-pro","MiniMax-M3","claude-sonnet-4-6","claude-opus-4-x"],defaultModel:"claude-sonnet-4-6"},{id:"codex-sdk",label:"Codex SDK",models:["gpt-5.5"],defaultModel:"gpt-5.5"},{id:"grok-build-acp",label:"Grok (build-acp)",models:["grok-build"],defaultModel:"grok-build"}],u=["default","acceptEdits","plan","bypassPermissions"],m=["服务器","名字","Runtime","模型","参数","确认"];function h({networkId:e,onClose:a,onCreated:n}){let[r,d]=(0,s.useState)(0),[o,c]=(0,s.useState)(null),[p,g]=(0,s.useState)(null),[b,f]=(0,s.useState)(""),[y,j]=(0,s.useState)(x[0].id),[v,N]=(0,s.useState)(""),[w,k]=(0,s.useState)("default"),[S,C]=(0,s.useState)(""),[_,M]=(0,s.useState)(""),[$,A]=(0,s.useState)(""),[E,L]=(0,s.useState)("form"),[T,I]=(0,s.useState)(""),[B,R]=(0,s.useState)(!1),{networkId:D}=(0,l.useNetworkId)(),U=e||D;(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&"creating"!==E&&a()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[a,E]),(0,s.useEffect)(()=>{if("done"!==E||B)return;let e=!0,t=0,s=b.trim(),a=async()=>{t+=1;try{let t=U?`/api/hub/status?network_id=${encodeURIComponent(U)}`:"/api/hub/status",a=await fetch(t,{cache:"no-store"}),n=await a.json().catch(()=>({})),r=Array.isArray(n?.sessions)?n.sessions:Array.isArray(n)?n:[];if(e&&r.some(e=>e?.alias===s))return void R(!0)}catch{}e&&t<16&&window.setTimeout(a,1500)},n=window.setTimeout(a,1200);return()=>{e=!1,window.clearTimeout(n)}},[E,B,U,b]);let P=x.find(e=>e.id===y)||x[0],O=b.trim().length>0,W=0===r&&!!o||1===r&&O||r>=2&&r<m.length,z="creating"===E;async function F(){L("creating"),I("");let t=e=>""===e.trim()?void 0:Number(e),s=v||P.defaultModel,a={name:b.trim(),runtime:y,model:s,flags:{permissionMode:w,maxTurns:t(S),budget:t(_),timeout:t($)}};try{let t=await fetch("/api/anet/node-create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({node_spec:a,...o?{daemon_node_id:o}:{},...e?{network_id:e}:{}})}),s=await t.json().catch(()=>({}));t.ok&&s?.ok?(L("done"),I("创建请求已下发,节点正在拉起…"),n?.(s.result)):s?.unconfirmed?(L("unconfirmed"),I(`后端 create_node 未就绪:${s?.error||"不可用"}(测试 hub 可能未含 #299)`)):(L("error"),I(s?.error?`创建失败:${s.error}`:"创建失败"))}catch(e){L("error"),I(`创建失败:${e instanceof Error?e.message:"网络错误"}`)}}let H="w-full rounded-md border border-[#26262b] bg-[#0e0e10] px-3 py-2 text-sm text-gray-200 focus:border-cyan-600 focus:outline-none";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-black/50 z-40",onClick:a,"aria-hidden":!0}),(0,t.jsxs)("div",{role:"dialog","aria-label":"新建节点",className:"fixed left-1/2 top-1/2 z-50 w-[min(94vw,440px)] md:w-[min(92vw,720px)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-[#26262b] bg-[#161618] shadow-2xl",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-[#26262b] px-4 py-3",children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-white",children:"新建节点"}),(0,t.jsx)("button",{onClick:a,"aria-label":"关闭",className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-gray-500 hover:bg-white/5 hover:text-white",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})})})]}),(0,t.jsx)("div",{className:"flex items-center gap-1.5 px-4 pt-3",children:m.map((e,s)=>(0,t.jsxs)("div",{className:"flex flex-1 flex-col items-center gap-1",children:[(0,t.jsx)("div",{className:`h-1 w-full rounded-full ${s<=r?"bg-cyan-500":"bg-[#26262b]"}`}),(0,t.jsx)("span",{className:`text-[10px] ${s===r?"text-cyan-300":"text-gray-600"}`,children:e})]},e))}),(0,t.jsx)("div",{className:"min-h-[180px] px-4 py-4",children:"form"!==E?(0,t.jsxs)("div",{className:"flex h-[180px] flex-col items-center justify-center gap-3 text-center",children:[z&&(0,t.jsxs)("svg",{className:"h-7 w-7 animate-spin text-cyan-400",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),(0,t.jsx)("div",{className:`text-sm ${"done"===E?"text-green-300":"error"===E?"text-red-300":"unconfirmed"===E?"text-amber-300":"text-gray-300"}`,children:z?"正在创建…":"done"===E&&B?`✓ ${b.trim()} 已上线`:T}),"done"===E&&(B?(0,t.jsx)("p",{className:"text-[11px] text-green-500/80",children:"节点已注册,已出现在节点列表。"}):(0,t.jsxs)("p",{className:"inline-flex items-center gap-1.5 text-[11px] text-gray-500",children:[(0,t.jsxs)("svg",{className:"h-3 w-3 animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),"正在监测 ",b.trim()," 注册…(最长 ~24s)"]}))]}):(0,t.jsxs)(t.Fragment,{children:[0===r&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-xs text-gray-400",children:"在哪台机器上创建"}),(0,t.jsx)(i,{networkId:U||void 0,value:o,onChange:(e,t)=>{c(e),g(t);let s=t?.runtimes_supported;s&&s.length>0&&!s.includes(y)&&(j(s[0]),N(""))}}),!o&&(0,t.jsxs)("p",{className:"text-[11px] text-gray-600",children:["没选服务器之前无法继续;如果列表是空的,按提示在目标机器上跑 ",(0,t.jsx)("code",{className:"rounded bg-black/40 px-1 py-0.5",children:"anet daemon up <name>"}),"。"]})]}),1===r&&(0,t.jsxs)("label",{className:"block space-y-1.5",children:[(0,t.jsx)("span",{className:"text-xs text-gray-400",children:"节点名字"}),(0,t.jsx)("input",{autoFocus:!0,value:b,onChange:e=>f(e.target.value),placeholder:"例如 my-agent-1",className:H}),!O&&(0,t.jsx)("span",{className:"text-[11px] text-gray-600",children:"名字不能为空"})]}),2===r&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("span",{className:"text-xs text-gray-400",children:["Runtime",p?`(${p.alias} 支持)`:""]}),x.map(e=>{let s=p?.runtimes_supported,a=Array.isArray(s)&&s.length>0&&!s.includes(e.id),n=y===e.id;return(0,t.jsxs)("button",{type:"button",disabled:a,onClick:()=>{a||(j(e.id),N(""))},title:a?`${p?.alias||"该 daemon"} 未声明支持此 runtime`:void 0,className:`flex w-full items-center justify-between rounded-md border px-3 py-2 text-sm transition-colors ${a?"border-[#1c1c1f] bg-[#0a0a0c] text-gray-600 cursor-not-allowed":n?"border-cyan-600 bg-cyan-900/15 text-cyan-200":"border-[#26262b] bg-[#0e0e10] text-gray-300 hover:border-[#3a3a41]"}`,children:[(0,t.jsxs)("span",{children:[e.label,a&&(0,t.jsx)("span",{className:"ml-2 text-[10px] text-gray-700",children:"该 daemon 不支持"})]}),n&&!a&&(0,t.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})})]},e.id)})]}),3===r&&(0,t.jsxs)("label",{className:"block space-y-1.5",children:[(0,t.jsxs)("span",{className:"text-xs text-gray-400",children:["模型(",P.label,")"]}),(0,t.jsxs)("select",{value:v,onChange:e=>N(e.target.value),className:H,children:[(0,t.jsxs)("option",{value:"",children:["默认(",P.defaultModel,")"]}),P.models.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})]}),4===r&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("label",{className:"block space-y-1.5",children:[(0,t.jsx)("span",{className:"text-xs text-gray-400",children:"permissionMode"}),(0,t.jsx)("select",{value:w,onChange:e=>k(e.target.value),className:H,children:u.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,t.jsxs)("label",{className:"space-y-1",children:[(0,t.jsx)("span",{className:"text-[11px] text-gray-500",children:"maxTurns"}),(0,t.jsx)("input",{inputMode:"numeric",value:S,onChange:e=>C(e.target.value),className:H})]}),(0,t.jsxs)("label",{className:"space-y-1",children:[(0,t.jsx)("span",{className:"text-[11px] text-gray-500",children:"budget"}),(0,t.jsx)("input",{inputMode:"numeric",value:_,onChange:e=>M(e.target.value),className:H})]}),(0,t.jsxs)("label",{className:"space-y-1",children:[(0,t.jsx)("span",{className:"text-[11px] text-gray-500",children:"timeout"}),(0,t.jsx)("input",{inputMode:"numeric",value:$,onChange:e=>A(e.target.value),className:H})]})]})]}),5===r&&(0,t.jsx)("div",{className:"space-y-2 text-sm",children:(0,t.jsx)("div",{className:"rounded-md border border-[#26262b] bg-[#0e0e10] divide-y divide-[#1c1c1f]",children:[["服务器",o?`${o.slice(0,24)}…`:"—"],["名字",b.trim()||"—"],["Runtime",P.label],["模型",v||`默认(${P.defaultModel})`],["permissionMode",w],["maxTurns / budget / timeout",`${S||"—"} / ${_||"—"} / ${$||"—"}`]].map(([e,s])=>(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 px-3 py-2",children:[(0,t.jsx)("span",{className:"shrink-0 text-gray-500 text-xs",children:e}),(0,t.jsx)("span",{className:"text-right text-gray-200 text-xs break-all",children:s})]},e))})})]})}),"form"===E?(0,t.jsxs)("div",{className:"flex items-center justify-between border-t border-[#26262b] px-4 py-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>0===r?a():d(r-1),className:"rounded-md px-3 py-1.5 text-sm text-gray-400 hover:text-gray-200",children:0===r?"取消":"上一步"}),r<m.length-1?(0,t.jsx)("button",{type:"button",disabled:!W,onClick:()=>d(r+1),className:`rounded-md px-4 py-1.5 text-sm font-medium ${W?"bg-cyan-600 text-white hover:bg-cyan-500":"bg-[#1c1c1f] text-gray-600 cursor-not-allowed"}`,children:"下一步"}):(0,t.jsx)("button",{type:"button",onClick:F,className:"rounded-md bg-green-600 px-4 py-1.5 text-sm font-medium text-white hover:bg-green-500",children:"创建节点"})]}):(0,t.jsxs)("div",{className:"flex items-center justify-end border-t border-[#26262b] px-4 py-3",children:[(0,t.jsx)("button",{type:"button",onClick:a,className:"rounded-md bg-[#1c1c1f] px-4 py-1.5 text-sm text-gray-200 hover:bg-[#26262b]",children:"done"===E?"完成":"关闭"}),("error"===E||"unconfirmed"===E)&&(0,t.jsx)("button",{type:"button",onClick:()=>L("form"),className:"ml-2 rounded-md bg-cyan-600 px-4 py-1.5 text-sm text-white hover:bg-cyan-500",children:"返回修改"})]})]})]})}var p=e.i(576),g=e.i(3068),b=e.i(57835),f=e.i(30842),y=e.i(56827),j=e.i(25371),v=e.i(99825),N=e.i(54258),w=e.i(32182),k=e.i(23996),S=e.i(519);function C({alias:e,x:a,y:n,onClose:r}){let i=(0,j.usePinned)(e),d=(0,y.useMuted)(e),{networkId:o}=(0,l.useNetworkId)(),{unreadCount:c}=(0,w.useChatUnread)(),x=c(e),u=(0,s.useRef)(null),[m,h]=(0,s.useState)({top:n,left:a,flippedY:!1,flippedX:!1});(0,s.useLayoutEffect)(()=>{let e=u.current;if(!e)return;let t=e.getBoundingClientRect().height||120,s=window.innerHeight,r=window.innerWidth,l=n,i=a,d=!1,o=!1;n+t+8>s&&(l=Math.max(8,n-t),d=!0),a+200+8>r&&(i=Math.max(8,a-200),o=!0),h({top:l=Math.max(8,Math.min(l,s-t-8)),left:i=Math.max(8,Math.min(i,r-200-8)),flippedY:d,flippedX:o})},[a,n]),(0,s.useEffect)(()=>{let e=e=>{u.current&&!u.current.contains(e.target)&&r()},t=e=>{"Escape"===e.key&&(e.stopPropagation(),r())};return document.addEventListener("mousedown",e,!0),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("keydown",t)}},[r]);let p=e=>()=>{e(),r()},g="group w-full text-left flex items-center gap-2.5 px-2.5 py-1.5 text-[13px] font-medium text-[#E2E8F0] hover:bg-[rgba(125,211,252,0.10)] hover:text-white active:bg-[rgba(125,211,252,0.18)] disabled:text-[#475569] disabled:cursor-not-allowed disabled:hover:bg-transparent",b=(0,t.jsxs)("div",{ref:u,role:"menu","aria-label":(0,S.t)(`节点 ${e} 操作菜单`,`Actions for node ${e}`),"data-testid":"node-context-menu","data-target-alias":e,"data-flipped-y":m.flippedY?"true":void 0,"data-flipped-x":m.flippedX?"true":void 0,style:{position:"fixed",top:m.top,left:m.left,width:200,zIndex:60},className:"rounded-lg border border-[rgba(255,255,255,0.10)] bg-[#1E293B] py-1",onContextMenu:e=>e.preventDefault(),children:[(0,t.jsxs)("button",{type:"button",role:"menuitem","data-testid":"ctx-pin",onClick:p(()=>(0,j.togglePin)(e)),className:g,children:[(0,t.jsx)(_,{className:"shrink-0 w-5 h-5 text-[#94A3B8] group-hover:text-[#7DD3FC]"}),i?(0,S.t)("取消置顶","Unpin"):(0,S.t)("置顶会话","Pin conversation")]}),(0,t.jsxs)("button",{type:"button",role:"menuitem","data-testid":"ctx-mute",onClick:p(()=>(0,y.toggleMute)(e)),className:g,children:[(0,t.jsx)(M,{muted:!0,className:"shrink-0 w-5 h-5 text-[#94A3B8] group-hover:text-[#7DD3FC]"}),d?(0,S.t)("取消免打扰","Unmute"):(0,S.t)("免打扰","Mute")]}),(0,t.jsxs)("button",{type:"button",role:"menuitem","data-testid":"ctx-mark-read",onClick:p(()=>(0,w.markChatRead)(e,o)),disabled:0===x,className:g,children:[(0,t.jsx)($,{className:"shrink-0 w-5 h-5 text-[#94A3B8] group-hover:text-[#7DD3FC] group-disabled:text-[#475569]"}),(0,S.t)(x>0?`标记已读 (${x})`:"标记已读",x>0?`Mark ${x} read`:"Mark read")]})]});return"u"<typeof document?null:(0,k.createPortal)(b,document.body)}function _({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M12 17v5"}),(0,t.jsx)("path",{d:"M5 10l7 7 7-7"}),(0,t.jsx)("path",{d:"M5 10l3-8h8l3 8z"})]})}function M({className:e,muted:s}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 00-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5"}),(0,t.jsx)("path",{d:"M13.7 21a2 2 0 01-3.4 0"}),s&&(0,t.jsx)("path",{d:"M3 3l18 18"})]})}function $({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M5 13l4 4L19 7"})})}function A({session:e,selected:s,unread:a,onSelect:n,onContextMenu:r}){let l=(0,j.usePinned)(e.alias),i=(0,y.useMuted)(e.alias);return(0,t.jsxs)("button",{type:"button","data-node-list-item":!0,"data-node-list-alias":e.alias,"data-selected":s?"true":"false","data-node-pinned":l?"true":"false","data-node-muted":i?"true":"false",onClick:()=>n(e.alias),onContextMenu:t=>r(e.alias,t),className:`w-full flex items-center gap-2.5 px-3 py-2.5 text-left transition-colors border-b border-[#1a1a1d] ${s?"bg-cyan-500/8":l?"bg-[rgba(125,211,252,0.04)] hover:bg-[rgba(125,211,252,0.08)]":"hover:bg-[#161618]"}`,children:[(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)(b.AliasAvatar,{alias:e.alias,size:32}),e.online&&(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute -bottom-0.5 -right-0.5 w-2.5 h-2.5 rounded-full bg-green-400 ring-2 ring-[#0F1320]"})]}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:`text-[13px] truncate flex items-center gap-1.5 min-w-0 ${s?"text-cyan-200 font-medium":"text-gray-200"}`,children:[(0,t.jsx)("span",{className:"truncate",children:e.alias}),i&&(0,t.jsxs)("svg",{"aria-label":(0,S.t)("已免打扰","Muted"),"data-mute-icon":!0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#64748B",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0",children:[(0,t.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 00-4-5.7"}),(0,t.jsx)("path",{d:"M6 8v3.2c0 .5-.2 1-.6 1.4L4 14h9"}),(0,t.jsx)("path",{d:"M13.7 21a2 2 0 01-3.4 0"}),(0,t.jsx)("path",{d:"M3 3l18 18"})]})]}),a>0&&(0,t.jsx)("span",{"aria-label":i?(0,S.t)(`已免打扰,未读 ${a}`,`Muted, ${a} unread`):(0,S.t)(`${a} 条未读`,`${a} unread`),"data-unread-badge":!0,"data-badge-variant":i?"muted":"default",className:`shrink-0 min-w-[16px] h-4 px-1 rounded-full text-[9px] font-semibold leading-4 text-center ${i?"bg-[#475569] text-[#CBD5E1]":"bg-[#EF4444] text-white"}`,children:a>99?"99+":a})]}),(0,t.jsx)("div",{className:"mt-0.5 flex items-center gap-1.5",children:(0,t.jsx)(E,{alias:e.alias,session:e})})]})]},e.alias)}function E({alias:e,session:s}){return(0,f.useHasDraft)(e)?(0,t.jsxs)("span",{className:"text-[11px] text-red-400/90 truncate","aria-label":(0,S.t)("有未发送草稿","Unsent draft"),children:[(0,S.t)("[草稿]","[draft]")," ",s.task?s.task.slice(0,40):""]}):s.task?(0,t.jsx)("span",{className:"text-[11px] text-gray-500 truncate",children:s.task}):s.online?(0,t.jsx)("span",{className:"text-[11px] text-gray-600",children:(0,S.t)("空闲","idle")}):(0,t.jsx)("span",{className:"text-[11px] text-gray-600 italic",children:(0,S.t)("离线","offline")})}function L({sessions:e,selectedAlias:a,onSelect:n,search:r,onSearchChange:l}){let{unreadCount:i}=(0,w.useChatUnread)(),[d,o]=(0,s.useState)(null),c=(0,s.useRef)(null),x=(0,s.useRef)({sessions:e,selectedAlias:a,onSelect:n});return(0,s.useEffect)(()=>{x.current={sessions:e,selectedAlias:a,onSelect:n}}),(0,s.useEffect)(()=>{let e=e=>{if("ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"Enter"!==e.key)return;let t=document.activeElement;if(t){let e=t.tagName;if("INPUT"===e||"TEXTAREA"===e||"SELECT"===e||t.isContentEditable)return}let{sessions:s,selectedAlias:a,onSelect:n}=x.current;if(0===s.length)return;let r=a?s.findIndex(e=>e.alias===a):-1;if("Enter"===e.key){-1===r&&(e.preventDefault(),n(s[0].alias));return}e.preventDefault();let l=-1===r?"ArrowDown"===e.key?0:s.length-1:"ArrowDown"===e.key?Math.min(s.length-1,r+1):Math.max(0,r-1);l!==r&&n(s[l].alias)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,s.useEffect)(()=>{if(!a)return;let e=c.current?.querySelector(`[data-node-list-alias="${CSS.escape(a)}"]`);e&&e.scrollIntoView({block:"nearest"})},[a]),(0,t.jsxs)("div",{"data-node-list-rail":!0,"data-node-list-count":e.length,className:"flex flex-col w-full overflow-hidden bg-[#0F1320] border-r border-[rgba(255,255,255,0.06)]","aria-label":(0,S.t)("节点列表","Node list"),children:[(0,t.jsx)("div",{className:"p-2 border-b border-[#1e1e22] shrink-0",children:(0,t.jsx)("input",{type:"search",value:r,onChange:e=>l(e.target.value),placeholder:(0,S.t)("搜索节点(拼音可)","Search nodes (pinyin ok)"),"aria-label":(0,S.t)("搜索节点","Search nodes"),"data-testid":"rail-search",className:"w-full rounded-md bg-[#0A0D18] border border-[rgba(255,255,255,0.08)] px-2.5 py-1.5 text-[12px] text-gray-200 placeholder:text-gray-600 focus:outline-none focus:border-cyan-500/40"})}),(0,t.jsx)("div",{className:"px-3 py-2 text-[11px] text-gray-500 tracking-wide uppercase border-b border-[#1e1e22] shrink-0",children:(0,S.t)(`节点 ${e.length}`,`Nodes \xb7 ${e.length}`)}),d&&(0,t.jsx)(C,{alias:d.alias,x:d.x,y:d.y,onClose:()=>o(null)}),(0,t.jsx)("div",{ref:c,"data-testid":"node-list-scroll",className:"flex-1 min-h-0 overflow-y-auto pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-0",children:0===e.length?r?(0,t.jsxs)("div",{className:"p-4 text-[11px] text-gray-500","data-testid":"rail-search-empty",children:[(0,S.t)(`没有节点匹配 “${r}”`,`No match — no nodes named "${r}"`),(0,t.jsx)("button",{type:"button",onClick:()=>l(""),className:"ml-2 text-cyan-400/80 hover:text-cyan-300 underline-offset-2 hover:underline",children:(0,S.t)("清除","Clear")})]}):(0,t.jsx)("div",{className:"p-4 text-[11px] text-gray-600",children:(0,S.t)("列表为空 —— 右侧的筛选控件或空态说明会告诉你原因。","Rail is empty — the filter controls or empty state on the right explain why.")}):e.map(e=>(0,t.jsx)(A,{session:e,selected:e.alias===a,unread:i(e.alias),onSelect:n,onContextMenu:(e,t)=>{t.preventDefault(),o({alias:e,x:t.clientX,y:t.clientY})}},e.alias))})]})}var T=e.i(96650),I=e.i(58895);function B({alias:e,onClose:a,variant:r="column",onBack:l}){let[i,d]=(0,s.useState)(!1),{sessions:o}=(0,n.useSessions)(),c=o.find(t=>t.alias===e);return(0,t.jsxs)("aside",{"data-testid":"chat-pane","data-chat-alias":e,className:"page"===r?"relative flex flex-col w-full min-w-0 h-full bg-[#141826] pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-0":"relative hidden md:flex md:flex-col flex-1 min-w-0 h-full bg-[#141826] pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-0",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2.5 border-b border-[rgba(255,255,255,0.06)] bg-[#141826] shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:["page"===r&&(0,t.jsx)("button",{type:"button",onClick:l??a,"aria-label":(0,S.t)("返回列表","Back to list"),"data-testid":"chat-back",className:"inline-flex h-8 w-8 -ml-1 items-center justify-center rounded-lg text-gray-400 hover:text-gray-100 hover:bg-[#1c1c1f] transition-colors shrink-0",children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"})})}),(0,t.jsx)(b.AliasAvatar,{alias:e,size:26}),(0,t.jsx)("span",{className:"truncate text-sm font-semibold text-white",children:e})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,t.jsx)("button",{type:"button",onClick:()=>d(!0),"aria-label":(0,S.t)("打开会话设置","Open conversation settings"),title:(0,S.t)("会话设置","Conversation settings"),"data-testid":"chat-pane-settings","data-chat-pane-more":!0,className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-gray-500 hover:text-gray-200 hover:bg-[#1c1c1f] transition-colors",children:(0,t.jsxs)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[(0,t.jsx)("circle",{cx:"12",cy:"5",r:"1.5",fill:"currentColor"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"}),(0,t.jsx)("circle",{cx:"12",cy:"19",r:"1.5",fill:"currentColor"})]})}),(0,t.jsx)("a",{href:`/tasks?alias=${encodeURIComponent(e)}`,"aria-label":(0,S.t)(`查看 ${e} 的任务`,`View ${e} tasks`),title:(0,S.t)("查看任务","View tasks"),"data-testid":"chat-pane-view-tasks",className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-gray-500 hover:text-gray-200 hover:bg-[#1c1c1f] transition-colors",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7V3M16 7V3M4 11h16M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),(0,t.jsx)("button",{type:"button",disabled:!0,"aria-label":(0,S.t)("会话内搜索(即将支持)","In-chat search (coming soon)"),title:(0,S.t)("即将支持","Coming soon"),"data-testid":"chat-pane-search",className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-gray-700 cursor-not-allowed",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),(0,t.jsx)("button",{type:"button",onClick:a,"aria-label":(0,S.t)("关闭会话","Close chat"),"data-testid":"chat-pane-close",className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-gray-500 hover:text-gray-200 hover:bg-[#1c1c1f] transition-colors",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(T.TaskChatPanel,{alias:e,onClose:a,inline:!0})}),i&&c&&(0,t.jsx)(I.NodeSettingsPanel,{session:c,onClose:()=>d(!1),positioning:"absolute"})]})}var R=e.i(90991);function D(e){return e?e.length>12?`${e.slice(0,8)}…`:e:"—"}function U(e){try{return decodeURIComponent(e)}catch{return e}}let P="(min-width: 768px)";function O(e){let t=window.matchMedia(P);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function W({alias:e}){return(0,f.useHasDraft)(e)?(0,t.jsx)("span",{className:"shrink-0 text-[9px] text-red-400/90","aria-label":(0,S.t)("有未发送草稿","Unsent draft"),children:(0,S.t)("[草稿]","[draft]")}):null}e.s(["NodesView",0,function({initialAlias:e=null}){let l,{sessions:i,isLoading:d}=(0,n.useSessions)(),{health:o}=(0,n.useHealth)(),{lifecycleByAlias:c,nodeIdByAlias:x,attrsByAlias:u}=(0,n.useNodeLifecycle)(),{hasUnread:m,unreadCount:f,lastActivityAt:k}=(0,w.useChatUnread)(),{mutate:C}=(0,r.useSWRConfig)(),_=()=>{C(e=>"string"==typeof e&&(e.startsWith("/api/hub/nodes")||e.startsWith("/api/hub/status")))},M=o?.sse_sessions||{},$=e=>(e.network_id?M[`${e.network_id}:${e.alias}`]:void 0)??M[e.alias],[A,E]=(0,s.useState)(""),[T,I]=(0,s.useState)(""),[z,F]=(0,s.useState)([]),[H,V]=(0,s.useState)(""),K=Array.from(new Set(i.map(e=>u[e.alias]?.team).filter(e=>!!e&&e.length>0))).sort(),q=Array.from(new Set(i.flatMap(e=>u[e.alias]?.tags??[]).filter(e=>e&&e.length>0))).sort(),X=K.length>0||q.length>0;(0,v.usePinyinReady)(),(0,y.useMuteVersion)(),(0,j.usePinVersion)();let[Y,G]=(0,s.useState)("list"),[J,Q]=(0,s.useState)(e),Z=(0,s.useSyncExternalStore)(O,()=>window.matchMedia(P).matches,()=>!0),ee=e=>{try{let e=document.querySelector('[data-testid="node-list-scroll"]');e&&(eN.current=e.scrollTop)}catch{}Q(e);try{window.history.pushState({},"",`/nodes/${encodeURIComponent(e)}`)}catch{}},et=()=>{el.current=!0,Q(null);try{window.history.pushState({},"","/nodes")}catch{}};(0,s.useEffect)(()=>{let e=()=>{let e=window.location.pathname.match(/^\/nodes\/([^/]+)\/?$/);Q(e?U(e[1]):null)};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let es=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=es.current;if(!e)return;let t=()=>{let t=e.getBoundingClientRect().top+window.scrollY;e.style.height=`${Math.max(240,window.innerHeight-t)}px`};t(),window.addEventListener("resize",t);let s=new ResizeObserver(t);return s.observe(document.body),()=>{window.removeEventListener("resize",t),s.disconnect()}},[]);let[ea,en]=(0,s.useState)(()=>"1"===window.localStorage.getItem("anet-nodes-manage-view")),er=(0,s.useRef)(!1),el=(0,s.useRef)(!1),ei=()=>{en(e=>{let t=!e;try{window.localStorage.setItem("anet-nodes-manage-view",t?"1":"0")}catch{}return t?(el.current=!0,J&&et()):(el.current=!1,er.current=!1),t})},[ed,eo]=(0,s.useState)(!1),[ec,ex]=(0,s.useState)(()=>{let e=window.localStorage.getItem("anet-nodes-rail");return null===e||"0"!==e}),eu=(0,N.useCollapsibleSearch)({value:H,onChange:V,placeholder:(0,S.t)("搜索节点(支持拼音/首字母)…","Search nodes (pinyin ok)…"),label:"Search nodes",enabled:i.length>0}),em=(0,s.useRef)(new Map),eh=Date.now(),ep=(e,t)=>(t&&em.current.set(e,eh),+(eh-(em.current.get(e)||0)<6e4)),eg=i.map(e=>({...e,online:!!$(e)})).filter(e=>"online"===A?e.online:"offline"===A?!e.online:!A||A===e.status).filter(e=>{if(!T)return!0;let t=u[e.alias]?.team??null;return"__NO_TEAM__"===T?null===t||""===t:t===T}).filter(e=>{if(0===z.length)return!0;let t=u[e.alias]?.tags??[];return z.every(e=>t.includes(e))}).filter(e=>!H||(0,v.pinyinMatch)(e.alias,H)||(0,v.pinyinMatch)(e.agent||"",H)).sort((e,t)=>!!(0,j.isPinned)(t.alias)-!!(0,j.isPinned)(e.alias)||ep(t.alias,t.online)-ep(e.alias,e.online)||k(t.alias)-k(e.alias)),eb=i.filter(e=>$(e)).length,ef=eg.length>0?eg[0].alias:null;(0,s.useEffect)(()=>{if(Z&&!ea&&!J&&!el.current&&!er.current&&ef){er.current=!0,Q(ef);try{window.history.replaceState({},"",`/nodes/${encodeURIComponent(ef)}`)}catch{}}},[Z,ea,J,ef]);let ey=!!J&&Z&&i.length>0,ej=!Z&&!J&&!ea&&i.length>0,ev=!Z&&!!J,eN=(0,s.useRef)(0);return(0,s.useEffect)(()=>{if(Z||J)return;let e=requestAnimationFrame(()=>{let e=document.querySelector('[data-testid="node-list-scroll"]');e&&(e.scrollTop=eN.current)});return()=>cancelAnimationFrame(e)},[Z,J]),(0,t.jsxs)("div",{ref:es,"data-testid":"nodes-layout","data-rail-visible":ec?"true":"false",className:"h-[100dvh] max-w-full overflow-hidden bg-[#0b0b0d] text-gray-100 flex",children:[(ej||Z&&(ec||ey)&&i.length>0)&&(0,t.jsxs)("aside",{"data-testid":"node-list-rail",className:"flex flex-col w-full md:w-[280px] shrink-0 h-full min-h-0 bg-[#0F1320]",children:[(0,t.jsx)(L,{sessions:eg,selectedAlias:J,onSelect:ee,search:H,onSearchChange:V}),(0,t.jsx)("button",{type:"button",onClick:ei,"data-testid":"manage-view-toggle",className:"shrink-0 border-t border-[rgba(255,255,255,0.06)] bg-[#0F1320] px-3 py-2 text-left text-[11px] text-gray-500 hover:text-gray-200 transition-colors",children:ea?(0,S.t)("≡ 对话视图","≡ Conversation view"):(0,S.t)("☷ 管理视图","☷ Manage view")})]}),(Z?!ey:ea&&!J)&&(0,t.jsxs)("div",{className:"flex-1 min-w-0 max-w-full h-full overflow-y-auto overflow-x-hidden p-4 sm:p-6 pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-6",children:[!Z&&ea&&(0,t.jsx)("button",{type:"button",onClick:ei,"data-testid":"manage-view-toggle-mobile",className:"md:hidden mb-3 rounded-lg border border-[rgba(255,255,255,0.08)] bg-[#0F1320] px-3 py-1.5 text-[12px] text-gray-400 hover:text-gray-200",children:(0,S.t)("≡ 返回对话视图","≡ Back to conversations")}),(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-4 sm:mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-white lg:ml-0 ml-10",children:"Nodes"}),(0,t.jsxs)("span",{className:"text-xs bg-green-900/30 text-green-400 px-2 py-0.5 rounded-full border border-green-800/30 shrink-0",children:[eb," online"]}),(0,t.jsxs)("span",{className:"text-xs bg-gray-900/30 text-gray-400 px-2 py-0.5 rounded-full border border-gray-800/30 shrink-0",children:[i.length," total"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{ex(e=>{let t=!e;try{window.localStorage.setItem("anet-nodes-rail",t?"1":"0")}catch{}return t})},"aria-pressed":ec,"data-testid":"toggle-rail",title:ec?(0,S.t)("隐藏节点列表","Hide node list"):(0,S.t)("显示节点列表","Show node list"),className:"hidden sm:inline-flex items-center gap-1 rounded-lg border border-[#26262b] bg-[#161618] px-2.5 py-1.5 text-xs text-gray-400 hover:text-gray-200 hover:border-[#3a3a40] transition-colors",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"text-sm leading-none",children:ec?"☷":"☰"}),(0,t.jsx)("span",{className:"hidden md:inline",children:ec?(0,S.t)("密视图","Dense"):(0,S.t)("分栏","Split")})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>eo(!0),"aria-label":"新建节点",className:"inline-flex items-center gap-1 rounded-lg border border-cyan-700/50 bg-cyan-900/15 px-3 py-1.5 text-sm font-medium text-cyan-300 hover:bg-cyan-900/25 transition-colors",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"text-base leading-none",children:"+"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"新建节点"})]}),(0,t.jsx)(eu.Button,{})]})]}),ed&&(0,t.jsx)(h,{onClose:()=>eo(!1)}),(0,t.jsx)(eu.Row,{}),i.length>0&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-3 mb-4 sm:mb-6",children:[(0,t.jsxs)("select",{value:A,onChange:e=>E(e.target.value),className:"bg-[#161618] border border-[#26262b] rounded-lg px-3 py-2 text-base sm:text-sm text-white focus:border-blue-500/50 focus:outline-none",children:[(0,t.jsx)("option",{value:"",children:"All"}),(0,t.jsx)("option",{value:"online",children:"Online"}),(0,t.jsx)("option",{value:"offline",children:"Offline"}),(0,t.jsx)("option",{value:"working",children:"Working"}),(0,t.jsx)("option",{value:"idle",children:"Idle"}),(0,t.jsx)("option",{value:"blocked",children:"Blocked"}),(0,t.jsx)("option",{value:"error",children:"Error"})]}),K.length>0&&(0,t.jsxs)("select",{value:T,onChange:e=>I(e.target.value),"aria-label":(0,S.t)("按 Team 过滤","Filter by team"),"data-testid":"filter-team",className:"bg-[#161618] border border-[#26262b] rounded-lg px-3 py-2 text-base sm:text-sm text-white focus:border-blue-500/50 focus:outline-none",children:[(0,t.jsx)("option",{value:"",children:(0,S.t)("全部 Team","All teams")}),(0,t.jsx)("option",{value:"__NO_TEAM__",children:(0,S.t)("未分组","(no team)")}),K.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)("div",{className:"hidden sm:flex ml-auto rounded-lg border border-[#26262b] bg-[#161618] p-1 text-sm",children:["list","grid"].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>G(e),className:`rounded-md px-3 py-1.5 transition-colors ${Y===e?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"list"===e?"List":"Grid"},e))})]}),i.length>0&&q.length>0&&(0,t.jsxs)("div",{className:"mb-4 sm:mb-6 flex flex-wrap items-center gap-1.5","data-testid":"filter-tags-row",children:[(0,t.jsx)("span",{className:"text-[11px] text-gray-500 mr-1",children:(0,S.t)("Tags:","Tags:")}),q.map((e,s)=>{let a=z.includes(e);return a&&z.slice(0,z.indexOf(e)).length,(0,t.jsx)("button",{type:"button",onClick:()=>F(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),"aria-pressed":a,"data-tag":e,"data-selected":a?"true":"false",className:`text-xs rounded-full px-2.5 py-1 border transition-colors ${a?"bg-cyan-500/15 text-cyan-200 border-cyan-500/40":"bg-[#161618] text-gray-400 border-[#26262b] hover:text-gray-200 hover:border-[#3a3a40]"}`,children:e},e)}),z.length>=2&&(0,t.jsx)("span",{className:"text-[10px] text-cyan-300/80 ml-1 tabular-nums","data-testid":"filter-tags-and-hint",children:(0,S.t)(`= 同时具有 ${z.length} 个标签`,`= AND of ${z.length} tags`)}),(z.length>0||T)&&(0,t.jsx)("button",{type:"button",onClick:()=>{F([]),I("")},className:"text-[11px] text-gray-500 hover:text-gray-200 underline-offset-2 hover:underline ml-2","data-testid":"clear-attr-filters",children:(0,S.t)("清除","Clear")})]}),d?(0,t.jsx)("div",{className:"animate-pulse space-y-2",children:[1,2,3,4].map(e=>(0,t.jsx)("div",{className:"h-16 bg-gray-800/20 rounded-lg"},e))}):0===eg.length?0===i.length?(0,t.jsx)(g.NodesEmptyState,{}):T||z.length>0?(0,t.jsx)(g.EmptyState,{variant:"nodes",title:(0,S.t)("没有节点符合当前属性筛选","No nodes match the current attribute filters"),sub:(l=[],"__NO_TEAM__"===T?l.push((0,S.t)("未分组","no-team")):T&&l.push((0,S.t)(`Team = ${T}`,`Team = ${T}`)),1===z.length?l.push((0,S.t)(`标签 ${z[0]}`,`tag ${z[0]}`)):z.length>=2&&l.push((0,S.t)(`同时具有标签 ${z.join(" 和 ")}`,`all of tags: ${z.join(" AND ")}`)),(0,S.t)(`没有节点满足:${l.join(" + ")}。清除筛选或减少标签。`,`No node satisfies: ${l.join(" + ")}. Clear filters or drop a tag.`))}):!X&&(A||H)?(0,t.jsx)(g.EmptyState,{variant:"nodes",title:(0,S.t)("还没有节点被打过标签","No nodes have been tagged yet"),sub:(0,S.t)("先在节点详情里给几个节点分配 team / tag,然后就可以按属性筛选。","Assign team / tag to a few nodes first, then attribute filters will show up.")}):(0,t.jsx)(g.EmptyState,{variant:"nodes",title:"No nodes match your filters",sub:"Try clearing search or status filters, or wait for an agent to register."}):"grid"===Y?(0,t.jsx)("div",{className:"grid min-w-0 grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:eg.map(e=>{let s=e.online?e.status:"offline",n="number"==typeof e.progress?e.progress:0,r=m(e.alias);return(0,t.jsxs)("div",{role:"button",tabIndex:0,"data-node-card":!0,"data-node-alias":e.alias,onClick:()=>ee(e.alias),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),ee(e.alias))},className:`relative min-w-0 max-w-full overflow-hidden rounded-xl border border-[#26262b] bg-[#161618] p-4 transition-colors hover:border-cyan-500/40 cursor-pointer ${!e.online?"opacity-60":""}`,children:[!e.online&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("span",{className:"rotate-[-20deg] rounded-xl border border-white/10 bg-black/20 px-5 py-2 text-xl font-bold uppercase tracking-[0.35em] text-white/10",children:"Offline"})}),(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsxs)("span",{className:"relative inline-flex shrink-0",children:[(0,t.jsx)(b.AliasAvatar,{alias:e.alias,size:36}),f(e.alias)>0&&(0,y.isMuted)(e.alias)&&(0,t.jsx)("span",{"aria-label":(0,S.t)("有未读(已静音)","Unread (muted)"),className:"absolute -top-0.5 -right-1 h-2.5 w-2.5 rounded-full bg-red-500/80 ring-2 ring-[#161618]"}),f(e.alias)>0&&!(0,y.isMuted)(e.alias)&&(0,t.jsx)("span",{"aria-label":(0,S.t)(`${f(e.alias)} 条未读`,`${f(e.alias)} unread`),className:"absolute -top-1 -right-1.5 min-w-[16px] h-4 px-1 rounded-full bg-red-500 text-white text-[9px] font-semibold leading-4 text-center ring-2 ring-[#161618]",children:f(e.alias)>99?"99+":f(e.alias)})]}),r&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 h-3 w-3 rounded-full border-2 border-[#161618] bg-red-500"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-base font-semibold text-white",children:e.alias}),(0,t.jsx)(W,{alias:e.alias}),r&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-red-500/15 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-red-300",children:"New"}),(0,t.jsx)("span",{className:`shrink-0 rounded-md border px-2 py-0.5 text-[10px] uppercase tracking-wide ${R.SESSION_STATUS_CHIP_CLASS[s]||R.SESSION_STATUS_CHIP_CLASS.offline}`,children:s})]}),(0,t.jsxs)("div",{className:"mt-0.5 truncate text-xs text-gray-500",children:[e.agent||"—",(0,t.jsx)("span",{className:"text-gray-700 mx-1.5",children:"·"}),(0,t.jsx)("span",{title:e.server||"",children:D(e.server)})]})]}),(0,t.jsx)("span",{className:"hidden shrink-0 rounded-lg border border-cyan-500/15 bg-cyan-500/5 px-2 py-1 text-[10px] text-cyan-300/70 sm:inline",children:"Tap to chat"}),(0,t.jsx)(p.NodeLifecycleMenu,{nodeId:x[e.alias]||e.node_id||e.alias,alias:e.alias,lifecycleState:c[e.alias],networkId:e.network_id||null,onCompleted:_,attrsSnapshot:u[e.alias]})]}),(0,t.jsxs)("div",{className:"mt-3 rounded-lg border border-[#1c1c1f] bg-[#0e0e10] px-3 py-2 text-xs",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-wide text-gray-600",children:"Current task"}),(0,t.jsx)("span",{className:"text-[10px] text-gray-600",children:(0,a.timeAgo)(e.last_seen_at||e.updated_at)})]}),(0,t.jsx)("div",{className:`mt-1 line-clamp-2 ${e.task?"text-gray-300":"text-gray-600 italic"}`,children:e.task||"No current task"})]}),n>0&&n<100&&(0,t.jsx)("div",{className:"mt-3 h-1.5 overflow-hidden rounded-full bg-gray-800",children:(0,t.jsx)("div",{className:"h-1.5 rounded-full bg-cyan-400 transition-all",style:{width:`${n}%`}})})]},e.alias)})}):(0,t.jsxs)("div",{className:"space-y-1 sm:space-y-2",children:[(0,t.jsxs)("div",{className:"hidden sm:grid sm:grid-cols-10 gap-2 px-4 py-2 text-xs text-gray-600 uppercase",children:[(0,t.jsx)("div",{className:"col-span-1",children:"Status"}),(0,t.jsx)("div",{className:"col-span-2",children:"Alias"}),(0,t.jsx)("div",{className:"col-span-2",children:"Agent · Server"}),(0,t.jsx)("div",{className:"col-span-4",children:"Current Task"}),(0,t.jsx)("div",{className:"col-span-1",children:"Updated"})]}),eg.map(e=>{let s=e.online?e.status:"offline",n=m(e.alias);return(0,t.jsxs)("div",{role:"button",tabIndex:0,"data-node-card":!0,"data-node-alias":e.alias,onClick:()=>ee(e.alias),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),ee(e.alias))},className:`rounded-lg border border-[#26262b] bg-[#161618] px-3 py-2 sm:px-4 sm:py-3 transition-colors hover:border-cyan-500/40 cursor-pointer ${!e.online?"opacity-50":""}`,children:[(0,t.jsxs)("div",{className:"hidden sm:grid sm:grid-cols-10 gap-2 items-center",children:[(0,t.jsx)("div",{className:"col-span-1",children:(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded-md border ${R.SESSION_STATUS_CHIP_CLASS[s]||R.SESSION_STATUS_CHIP_CLASS.offline}`,children:s})}),(0,t.jsx)("div",{className:"col-span-2 min-w-0",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsxs)("span",{className:"relative inline-flex shrink-0",children:[(0,t.jsx)(b.AliasAvatar,{alias:e.alias,size:20}),f(e.alias)>0&&(0,y.isMuted)(e.alias)&&(0,t.jsx)("span",{"aria-label":(0,S.t)("有未读(已静音)","Unread (muted)"),className:"absolute -top-1 -right-1 h-2 w-2 rounded-full bg-red-500/80"}),f(e.alias)>0&&!(0,y.isMuted)(e.alias)&&(0,t.jsx)("span",{"aria-label":(0,S.t)(`${f(e.alias)} 条未读`,`${f(e.alias)} unread`),className:"absolute -top-1.5 -right-2 min-w-[15px] h-[15px] px-1 rounded-full bg-red-500 text-white text-[9px] font-semibold leading-[15px] text-center",children:f(e.alias)>99?"99+":f(e.alias)})]}),n&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 h-2.5 w-2.5 rounded-full border border-[#161618] bg-red-500"})]}),(0,t.jsx)("span",{className:"truncate text-sm font-medium text-white",children:e.alias}),(0,t.jsx)(W,{alias:e.alias}),n&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-red-500/15 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-red-300",children:"New"})]})}),(0,t.jsx)("div",{className:"col-span-2 truncate text-xs text-gray-400",title:e.server||"",children:(0,t.jsxs)("span",{className:"truncate",children:[e.agent||"--",(0,t.jsx)("span",{className:"text-gray-700 mx-1.5",children:"·"}),D(e.server)]})}),(0,t.jsx)("div",{className:"col-span-4 truncate text-xs text-gray-500",title:e.task||"",children:e.task||"--"}),(0,t.jsxs)("div",{className:"col-span-1 flex items-center justify-between gap-2 text-xs text-gray-500",children:[(0,t.jsx)("span",{className:"truncate",children:(0,a.timeAgo)(e.last_seen_at||e.updated_at)}),(0,t.jsx)(p.NodeLifecycleMenu,{nodeId:x[e.alias]||e.node_id||e.alias,alias:e.alias,lifecycleState:c[e.alias],networkId:e.network_id||null,onCompleted:_,attrsSnapshot:u[e.alias]})]})]}),(0,t.jsxs)("div",{className:"sm:hidden space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)(b.AliasAvatar,{alias:e.alias,size:28}),n&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 h-3 w-3 rounded-full border-2 border-[#161618] bg-red-500"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)("div",{className:"truncate text-sm font-medium text-white",children:e.alias}),n&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-red-500/15 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-red-300",children:"New"})]}),(0,t.jsxs)("div",{className:"truncate text-[10px] text-gray-500",children:[e.agent||"—"," · ",(0,a.timeAgo)(e.last_seen_at||e.updated_at)]})]}),(0,t.jsx)("span",{className:`shrink-0 text-xs px-2 py-0.5 rounded-md border ${R.SESSION_STATUS_CHIP_CLASS[s]||R.SESSION_STATUS_CHIP_CLASS.offline}`,children:s}),(0,t.jsx)(p.NodeLifecycleMenu,{nodeId:x[e.alias]||e.node_id||e.alias,alias:e.alias,lifecycleState:c[e.alias],networkId:e.network_id||null,onCompleted:_,attrsSnapshot:u[e.alias]})]}),e.task&&(0,t.jsx)("div",{className:"truncate text-xs text-gray-500",children:e.task})]})]},e.alias)})]})]}),J&&Z&&(0,t.jsx)(B,{alias:J,onClose:et}),ev&&(0,t.jsx)(B,{alias:J,variant:"page",onBack:et,onClose:et})]})},"decodeAliasSegment",0,U],35599)}]);