@sleep2agi/agent-network-dashboard 0.3.4-preview.0 → 0.4.1-preview.0

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 (174) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/diagnostics/route-bundle-stats.json +4 -4
  5. package/.next/fallback-build-manifest.json +3 -3
  6. package/.next/server/app/_global-error.html +1 -1
  7. package/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/.next/server/app/_not-found.html +1 -1
  14. package/.next/server/app/_not-found.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  20. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  21. package/.next/server/app/admin.html +1 -1
  22. package/.next/server/app/admin.rsc +1 -1
  23. package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
  24. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  25. package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
  26. package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
  27. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
  28. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  29. package/.next/server/app/api/hub/auth/route.js +2 -1
  30. package/.next/server/app/api/hub/auth/route.js.nft.json +1 -1
  31. package/.next/server/app/index.html +2 -2
  32. package/.next/server/app/index.rsc +2 -2
  33. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  34. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  35. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  36. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  37. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  38. package/.next/server/app/login.html +1 -1
  39. package/.next/server/app/login.rsc +1 -1
  40. package/.next/server/app/login.segments/_full.segment.rsc +1 -1
  41. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  42. package/.next/server/app/login.segments/_index.segment.rsc +1 -1
  43. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  44. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
  45. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  46. package/.next/server/app/logs.html +1 -1
  47. package/.next/server/app/logs.rsc +1 -1
  48. package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
  49. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  50. package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
  51. package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
  52. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  53. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  54. package/.next/server/app/messages.html +1 -1
  55. package/.next/server/app/messages.rsc +1 -1
  56. package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
  57. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  58. package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
  59. package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
  60. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
  61. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  62. package/.next/server/app/node.html +1 -1
  63. package/.next/server/app/node.rsc +1 -1
  64. package/.next/server/app/node.segments/_full.segment.rsc +1 -1
  65. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  66. package/.next/server/app/node.segments/_index.segment.rsc +1 -1
  67. package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
  68. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
  69. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  70. package/.next/server/app/nodes.html +1 -1
  71. package/.next/server/app/nodes.rsc +1 -1
  72. package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
  73. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  74. package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
  75. package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
  76. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
  77. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  78. package/.next/server/app/page_client-reference-manifest.js +1 -1
  79. package/.next/server/app/server-logs.html +1 -1
  80. package/.next/server/app/server-logs.rsc +1 -1
  81. package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
  82. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  83. package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
  84. package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
  85. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  86. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  87. package/.next/server/app/settings/networks.html +1 -1
  88. package/.next/server/app/settings/networks.rsc +1 -1
  89. package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
  90. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  91. package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
  92. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
  93. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  94. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  95. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  96. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  97. package/.next/server/app/settings/tokens.html +1 -1
  98. package/.next/server/app/settings/tokens.rsc +1 -1
  99. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
  100. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  101. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
  102. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
  103. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  104. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  105. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  106. package/.next/server/app/settings.html +2 -2
  107. package/.next/server/app/settings.rsc +2 -2
  108. package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  109. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  110. package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  111. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  112. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  113. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  114. package/.next/server/app/tasks.html +1 -1
  115. package/.next/server/app/tasks.rsc +1 -1
  116. package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
  117. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  118. package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
  119. package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
  120. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  121. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  122. package/.next/server/chunks/[root-of-the-server]__0-mykaf._.js.map +1 -1
  123. package/.next/server/chunks/[root-of-the-server]__0.d_kqy._.js +1 -1
  124. package/.next/server/chunks/[root-of-the-server]__0.d_kqy._.js.map +1 -1
  125. package/.next/server/chunks/[root-of-the-server]__02pocyg._.js.map +1 -1
  126. package/.next/server/chunks/[root-of-the-server]__03ueci3._.js.map +1 -1
  127. package/.next/server/chunks/[root-of-the-server]__04aud7x._.js +1 -1
  128. package/.next/server/chunks/[root-of-the-server]__04aud7x._.js.map +1 -1
  129. package/.next/server/chunks/[root-of-the-server]__05fnt3n._.js.map +1 -1
  130. package/.next/server/chunks/[root-of-the-server]__0adhu1m._.js.map +1 -1
  131. package/.next/server/chunks/[root-of-the-server]__0aqv02v._.js +1 -1
  132. package/.next/server/chunks/[root-of-the-server]__0aqv02v._.js.map +1 -1
  133. package/.next/server/chunks/[root-of-the-server]__0cawhfq._.js.map +1 -1
  134. package/.next/server/chunks/[root-of-the-server]__0d_-_k.._.js.map +1 -1
  135. package/.next/server/chunks/[root-of-the-server]__0f6bxfl._.js.map +1 -1
  136. package/.next/server/chunks/[root-of-the-server]__0h15edq._.js.map +1 -1
  137. package/.next/server/chunks/[root-of-the-server]__0kltbce._.js.map +1 -1
  138. package/.next/server/chunks/[root-of-the-server]__0mn04fw._.js.map +1 -1
  139. package/.next/server/chunks/[root-of-the-server]__0o29v8c._.js.map +1 -1
  140. package/.next/server/chunks/[root-of-the-server]__0o4qfn9._.js.map +1 -1
  141. package/.next/server/chunks/[root-of-the-server]__0o7ya7r._.js.map +1 -1
  142. package/.next/server/chunks/[root-of-the-server]__0p6tutt._.js +1 -1
  143. package/.next/server/chunks/[root-of-the-server]__0p6tutt._.js.map +1 -1
  144. package/.next/server/chunks/[root-of-the-server]__0pn3wsx._.js +1 -1
  145. package/.next/server/chunks/[root-of-the-server]__0pn3wsx._.js.map +1 -1
  146. package/.next/server/chunks/[root-of-the-server]__0x.a_yh._.js.map +1 -1
  147. package/.next/server/chunks/[root-of-the-server]__139~d6a._.js +1 -1
  148. package/.next/server/chunks/[root-of-the-server]__139~d6a._.js.map +1 -1
  149. package/.next/server/chunks/ssr/app_0dk5wao._.js +1 -1
  150. package/.next/server/chunks/ssr/app_0dk5wao._.js.map +1 -1
  151. package/.next/server/chunks/ssr/app_page_tsx_0es_sk2._.js +1 -1
  152. package/.next/server/chunks/ssr/app_page_tsx_0es_sk2._.js.map +1 -1
  153. package/.next/server/middleware-build-manifest.js +3 -3
  154. package/.next/server/pages/404.html +1 -1
  155. package/.next/server/pages/500.html +1 -1
  156. package/.next/static/chunks/{0vlojka~d~9h4.js → 0y_po~f~fk~ap.js} +1 -1
  157. package/.next/static/chunks/15zvpw79~w1am.js +1 -0
  158. package/.next/trace +2 -2
  159. package/.next/trace-build +1 -1
  160. package/app/api/hub/events/route.ts +2 -5
  161. package/app/api/hub/nodes/route.ts +1 -3
  162. package/app/api/hub/send/route.ts +1 -6
  163. package/app/api/hub/server-logs/route.ts +1 -3
  164. package/app/api/hub/tasks/route.ts +1 -3
  165. package/app/components/TopoGraph.tsx +7 -4
  166. package/app/components/types.ts +1 -0
  167. package/app/lib/hub.ts +1 -8
  168. package/app/page.tsx +6 -2
  169. package/package.json +1 -1
  170. package/tsconfig.tsbuildinfo +1 -0
  171. package/.next/static/chunks/0wkxts8wri2er.js +0 -1
  172. /package/.next/static/{cDL0lLOkoUg3hMg9wv7XO → 4lSAkVKXbMCoUv_JTdht5}/_buildManifest.js +0 -0
  173. /package/.next/static/{cDL0lLOkoUg3hMg9wv7XO → 4lSAkVKXbMCoUv_JTdht5}/_clientMiddlewareManifest.js +0 -0
  174. /package/.next/static/{cDL0lLOkoUg3hMg9wv7XO → 4lSAkVKXbMCoUv_JTdht5}/_ssgManifest.js +0 -0
@@ -9,4 +9,4 @@ try {
9
9
  w-52
10
10
  -translate-x-full
11
11
  lg:translate-x-0 lg:static lg:shrink-0
12
- "><div class="px-4 py-5 border-b border-[#2a2a4a] "><div><div class="text-white font-bold text-sm">Agent Network</div><div class="text-gray-600 text-xs">Dashboard</div></div></div><div class="pb-20"><nav class="flex flex-col gap-1 px-2 py-4"><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/"><svg class="w-5 h-5 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>Overview</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/tasks"><svg class="w-5 h-5 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>Tasks</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/nodes"><svg class="w-5 h-5 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>Nodes</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/messages"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"></path></svg><span>Messages</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/settings/networks"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path></svg><span>Networks</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/logs"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg><span>Audit Log</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/server-logs"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg><span>Server Logs</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/admin"><svg class="w-5 h-5 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>Admin</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/settings"><svg class="w-5 h-5 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>Settings</span></a></nav></div><div class="absolute bottom-0 left-0 right-0 border-t border-[#2a2a4a] bg-[#0d0d1a]"><button class="w-full flex items-center gap-3 px-5 py-3 text-xs text-gray-500 hover:text-red-400 hover:bg-red-500/5 transition-colors"><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>Sign out</button><div class="flex items-center gap-2 px-3 py-2 justify-between"><div class="relative"><button aria-label="切换主题" class="px-2.5 py-1.5 rounded-md text-xs flex items-center gap-1.5 hover:opacity-80 transition-opacity" style="background:var(--bg-elevated);color:var(--fg);border:1px solid var(--border)"><span aria-hidden="true">🌃</span><span>Cyber</span></button></div><button class="hidden lg:flex p-1.5 rounded text-gray-600 hover:text-gray-400 transition-colors" aria-label="Collapse sidebar"><svg class="w-4 h-4 transition-transform " 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"><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><!--$--><!--/$--></main></div><script src="/_next/static/chunks/0xrnwfefpke-g.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[84128,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"ThemeProvider\"]\n3:I[58963,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"NetworkProvider\"]\n4:I[25045,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"AppShell\"]\n5:I[39756,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\"]\n6:I[37457,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\"]\n7:I[97367,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\nb:I[97367,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"ViewportBoundary\"]\nd:I[97367,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"MetadataBoundary\"]\nf:I[68027,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/0_b22ht_r8.-s.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/0_b22ht_r8.-s.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/14bsg3_-taiw4.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"data-theme\":\"cyber\",\"className\":\"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,{\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",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,[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",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: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: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: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:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],{},null,false,null]},null,false,\"$@a\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Le\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$f\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0_b22ht_r8.-s.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"cDL0lLOkoUg3hMg9wv7XO\"}\n"])</script><script>self.__next_f.push([1,"10:[]\na:\"$W10\"\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#0a0a1a\"}]]\n"])</script><script>self.__next_f.push([1,"11:I[27201,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"IconMark\"]\n9:null\ne:[[\"$\",\"title\",\"0\",{\"children\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes via CommHub\"}],[\"$\",\"meta\",\"2\",{\"property\":\"og:title\",\"content\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"3\",{\"property\":\"og:description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes\"}],[\"$\",\"meta\",\"4\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"5\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"6\",{\"name\":\"twitter:title\",\"content\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"7\",{\"name\":\"twitter:description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes\"}],[\"$\",\"link\",\"8\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"9\",{\"rel\":\"icon\",\"href\":\"/favicon.svg\"}],[\"$\",\"$L11\",\"10\",{}]]\n"])</script></body></html>
12
+ "><div class="px-4 py-5 border-b border-[#2a2a4a] "><div><div class="text-white font-bold text-sm">Agent Network</div><div class="text-gray-600 text-xs">Dashboard</div></div></div><div class="pb-20"><nav class="flex flex-col gap-1 px-2 py-4"><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/"><svg class="w-5 h-5 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>Overview</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/tasks"><svg class="w-5 h-5 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>Tasks</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/nodes"><svg class="w-5 h-5 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>Nodes</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/messages"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"></path></svg><span>Messages</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/settings/networks"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path></svg><span>Networks</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/logs"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg><span>Audit Log</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/server-logs"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg><span>Server Logs</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/admin"><svg class="w-5 h-5 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>Admin</span></a><a class="flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#1a1a3a] text-gray-400 hover:text-gray-200 hover:bg-[#1a1a2a] " href="/settings"><svg class="w-5 h-5 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>Settings</span></a></nav></div><div class="absolute bottom-0 left-0 right-0 border-t border-[#2a2a4a] bg-[#0d0d1a]"><button class="w-full flex items-center gap-3 px-5 py-3 text-xs text-gray-500 hover:text-red-400 hover:bg-red-500/5 transition-colors"><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>Sign out</button><div class="flex items-center gap-2 px-3 py-2 justify-between"><div class="relative"><button aria-label="切换主题" class="px-2.5 py-1.5 rounded-md text-xs flex items-center gap-1.5 hover:opacity-80 transition-opacity" style="background:var(--bg-elevated);color:var(--fg);border:1px solid var(--border)"><span aria-hidden="true">🌃</span><span>Cyber</span></button></div><button class="hidden lg:flex p-1.5 rounded text-gray-600 hover:text-gray-400 transition-colors" aria-label="Collapse sidebar"><svg class="w-4 h-4 transition-transform " 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"><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><!--$--><!--/$--></main></div><script src="/_next/static/chunks/0xrnwfefpke-g.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[84128,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"ThemeProvider\"]\n3:I[58963,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"NetworkProvider\"]\n4:I[25045,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"AppShell\"]\n5:I[39756,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\"]\n6:I[37457,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\"]\n7:I[97367,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\nb:I[97367,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"ViewportBoundary\"]\nd:I[97367,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"MetadataBoundary\"]\nf:I[68027,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/0_b22ht_r8.-s.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/0_b22ht_r8.-s.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/14bsg3_-taiw4.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"data-theme\":\"cyber\",\"className\":\"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,{\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",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,[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",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: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: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: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:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],{},null,false,null]},null,false,\"$@a\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Le\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$f\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0_b22ht_r8.-s.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"4lSAkVKXbMCoUv_JTdht5\"}\n"])</script><script>self.__next_f.push([1,"10:[]\na:\"$W10\"\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#0a0a1a\"}]]\n"])</script><script>self.__next_f.push([1,"11:I[27201,[\"/_next/static/chunks/0gjbwb8u5wd72.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"IconMark\"]\n9:null\ne:[[\"$\",\"title\",\"0\",{\"children\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes via CommHub\"}],[\"$\",\"meta\",\"2\",{\"property\":\"og:title\",\"content\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"3\",{\"property\":\"og:description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes\"}],[\"$\",\"meta\",\"4\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"5\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"6\",{\"name\":\"twitter:title\",\"content\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"7\",{\"name\":\"twitter:description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes\"}],[\"$\",\"link\",\"8\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"9\",{\"rel\":\"icon\",\"href\":\"/favicon.svg\"}],[\"$\",\"$L11\",\"10\",{}]]\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/0xrnwfefpke-g.js"/><script src="/_next/static/chunks/0pqt~8bl3ukh4.js" async=""></script><script src="/_next/static/chunks/0u359llqm1_01.js" async=""></script><script src="/_next/static/chunks/0e-wrhqh4h3r5.js" async=""></script><script src="/_next/static/chunks/turbopack-0vsvjs02l449s.js" async=""></script><script src="/_next/static/chunks/01xlw8hd842-c.js" async=""></script><script src="/_next/static/chunks/14bsg3_-taiw4.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><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/0xrnwfefpke-g.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[39756,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.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\":\"cDL0lLOkoUg3hMg9wv7XO\"}\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[27201,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"1\",{}]]\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/0xrnwfefpke-g.js"/><script src="/_next/static/chunks/0pqt~8bl3ukh4.js" async=""></script><script src="/_next/static/chunks/0u359llqm1_01.js" async=""></script><script src="/_next/static/chunks/0e-wrhqh4h3r5.js" async=""></script><script src="/_next/static/chunks/turbopack-0vsvjs02l449s.js" async=""></script><script src="/_next/static/chunks/01xlw8hd842-c.js" async=""></script><script src="/_next/static/chunks/14bsg3_-taiw4.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><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/0xrnwfefpke-g.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[39756,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.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\":\"4lSAkVKXbMCoUv_JTdht5\"}\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[27201,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"1\",{}]]\n"])</script></body></html>
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65822,e=>{"use strict";var s=e.i(83599),a=e.i(58963);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},32545,e=>{"use strict";var s=e.i(18050),a=e.i(71645),t=e.i(22016),r=e.i(65822);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:n}=(0,r.useHealth)(),{license:l}=(0,r.useLicense)(),[i,c]=(0,a.useState)(""),[d,o]=(0,a.useState)(""),[x,h]=(0,a.useState)(""),[m,u]=(0,a.useState)(""),[g,p]=(0,a.useState)(""),N="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-6 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-6",children:[(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${n?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:n?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:n?.version||"--"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:n?.sessions??"--"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"SSE Connections"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:n?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:n?.uptime?`${Math.floor(n.uptime/3600)}h ${Math.floor(n.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"V2.1"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Settings"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"License"}),l?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Type"}),(0,s.jsx)("span",{className:`font-medium ${"pro"===l.license.type?"text-green-400":"text-yellow-400"}`,children:l.license.type})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Days Left"}),(0,s.jsxs)("span",{className:`${l.license.days_left<=7?"text-red-400":"text-gray-300"}`,children:[l.license.days_left," days",l.license.days_left<=7&&" — expiring soon!"]})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l.license.expires_at})]}),l.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l.limits.max_agents})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l.limits.max_networks})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:i,onChange:e=>c(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!i.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:i})}),s=await e.json();o(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&c(""),setTimeout(()=>o(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),d&&(0,s.jsx)("div",{className:`mt-2 text-xs ${d.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:d})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:x,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:m,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!x||!m)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void p("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:x,new_password:m})}),t=await a.json();p(t.ok?"Password changed":`Failed: ${t.error}`),t.ok&&(h(""),u("")),setTimeout(()=>p(""),5e3)},disabled:!x||!m,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),g&&(0,s.jsx)("div",{className:`mt-2 text-xs ${g.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:g})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-red-900/30 rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-red-400 mb-4",children:"Session"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Sign out will clear your dashboard session cookie."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-red-600/20 hover:bg-red-600/30 text-red-300 text-sm rounded-lg border border-red-800/30 transition-colors",children:"Sign out"})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65822,e=>{"use strict";var s=e.i(83599),a=e.i(58963);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},32545,e=>{"use strict";var s=e.i(18050),a=e.i(71645),t=e.i(22016),r=e.i(65822);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:n}=(0,r.useHealth)(),{license:l}=(0,r.useLicense)(),[i,c]=(0,a.useState)(""),[d,o]=(0,a.useState)(""),[x,h]=(0,a.useState)(""),[m,u]=(0,a.useState)(""),[g,p]=(0,a.useState)(""),N="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",y="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-6 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-6",children:[(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${y}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${y}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${y}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${n?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:n?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${y}`,children:n?.version||"--"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${y}`,children:n?.sessions??"--"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"SSE Connections"}),(0,s.jsx)("span",{className:`text-gray-300 ${y}`,children:n?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${y}`,children:n?.uptime?`${Math.floor(n.uptime/3600)}h ${Math.floor(n.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${y}`,children:"V2.1"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${y}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${y}`,children:"Overview, Tasks, Nodes, Messages, Settings"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"License"}),l?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Type"}),(0,s.jsx)("span",{className:`font-medium ${"pro"===l.license.type?"text-green-400":"text-yellow-400"}`,children:l.license.type})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Days Left"}),(0,s.jsxs)("span",{className:`${l.license.days_left<=7?"text-red-400":"text-gray-300"}`,children:[l.license.days_left," days",l.license.days_left<=7&&" — expiring soon!"]})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${y}`,children:l.license.expires_at})]}),l.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${y}`,children:l.limits.max_agents})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${y}`,children:l.limits.max_networks})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${y}`,children:l.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:i,onChange:e=>c(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!i.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:i})}),s=await e.json();o(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&c(""),setTimeout(()=>o(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),d&&(0,s.jsx)("div",{className:`mt-2 text-xs ${d.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:d})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:x,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:m,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!x||!m)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void p("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:x,new_password:m})}),t=await a.json();if(p(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>p(""),5e3)},disabled:!x||!m,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),g&&(0,s.jsx)("div",{className:`mt-2 text-xs ${g.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:g})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-red-900/30 rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-red-400 mb-4",children:"Session"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Sign out will clear your dashboard session cookie."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-red-600/20 hover:bg-red-600/30 text-red-300 text-sm rounded-lg border border-red-800/30 transition-colors",children:"Sign out"})]})]})]})}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31713,e=>{"use strict";var t=e.i(47167),s=e.i(18050),a=e.i(71645),r=e.i(22016),l=e.i(18150);function n({online:e,working:t,total:a,version:r,uptime:l}){let o=a>0?Math.round(e/a*100):0;return(0,s.jsxs)("div",{className:"mb-8",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Agent Network"}),(0,s.jsxs)("span",{className:"text-xs text-gray-500",children:["CommHub ",r," · ",l]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[(0,s.jsx)(i,{value:e,label:"Online",sub:`${o}% of fleet`,color:"text-green-400",accent:"from-green-500/20 to-green-500/0",border:"border-green-500/15"}),(0,s.jsx)(i,{value:t,label:"Working",sub:e>0?`${Math.round(t/e*100)}% utilization`:"--",color:"text-cyan-400",accent:"from-cyan-500/20 to-cyan-500/0",border:"border-cyan-500/15"}),(0,s.jsx)(i,{value:a-e,label:"Offline",sub:a-e==0?"All systems go":`${a-e} disconnected`,color:"text-gray-400",accent:"from-gray-500/10 to-gray-500/0",border:"border-gray-500/15"}),(0,s.jsx)(i,{value:a,label:"Total",sub:"Registered nodes",color:"text-white",accent:"from-blue-500/15 to-blue-500/0",border:"border-blue-500/15"})]})]})}function i({value:e,label:t,sub:a,color:r,accent:l,border:n}){return(0,s.jsxs)("div",{className:`relative overflow-hidden rounded-xl border ${n} bg-[#111128] px-4 py-3`,children:[(0,s.jsx)("div",{className:`absolute inset-0 bg-gradient-to-br ${l} pointer-events-none`}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:`text-3xl font-bold ${r} tabular-nums leading-tight`,children:e}),(0,s.jsx)("div",{className:"text-sm text-gray-300 mt-0.5",children:t}),(0,s.jsx)("div",{className:"text-xs text-gray-600 mt-1",children:a})]})]})}function o(){let[e,t]=(0,a.useState)(""),[r,l]=(0,a.useState)(!1),[n,i]=(0,a.useState)(""),o=async()=>{if(e.trim()){l(!0),i("");try{let s=await fetch("/api/hub/broadcast",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e})}),a=await s.json();a.ok?(i(`Broadcast sent to ${a.recipients} node(s)`),t("")):i(`Failed: ${a.error||"Send error"}`)}catch(e){i(`Failed: ${e instanceof Error?e.message:"Send error"}`)}l(!1),setTimeout(()=>i(""),5e3)}};return(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:e,onChange:e=>t(e.target.value),onKeyDown:e=>"Enter"===e.key&&o(),placeholder:"Broadcast message to all online agents...",maxLength:500,"aria-label":"Broadcast message",className:"flex-1 bg-[#111128] border border-[#2a2a4a] rounded-lg px-4 py-2.5 text-sm text-white placeholder-gray-600 focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/20 focus:outline-none transition-colors"}),(0,s.jsx)("button",{onClick:o,disabled:r||!e.trim(),"aria-label":"Send broadcast",className:"px-5 py-2.5 bg-blue-600 hover:bg-blue-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-all font-medium cursor-pointer disabled:cursor-not-allowed",children:r?"Sending...":"Broadcast"})]}),e.length>0&&(0,s.jsxs)("div",{className:"text-right text-xs text-gray-600 mt-1",children:[e.length,"/500"]}),n&&(0,s.jsx)("div",{className:`mt-3 text-sm text-center ${n.startsWith("Failed")?"text-red-400":"text-green-400/80"} animate-fade-in`,children:n})]})}function d(e,t,s){let a=t<=2?Math.PI:1.78*Math.PI,r=-Math.PI/2-a/2,l=t<=1?-Math.PI/2:r+a*e/(t-1);return{x:500+s*Math.cos(l),y:330+s*Math.sin(l)}}function c(e,t,s=0){let a=(e.x+t.x)/2,r=(e.y+t.y)/2,l=t.x-e.x,n=t.y-e.y,i=Math.hypot(l,n)||1,o={x:a+-n/i*s,y:r+l/i*s};return`M${e.x},${e.y} Q${o.x},${o.y} ${t.x},${t.y}`}function x(e,t){return e.length>t?`${e.slice(0,t-1)}...`:e}function h({sessions:e,sseSessions:t}){let[r,l]=(0,a.useState)([]);(0,a.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/hub/messages?limit=50");if(401===e.status)return void window.location.assign("/login");let t=await e.json();l(t.messages||[])}catch{}};e();let t=setInterval(e,5e3);return()=>clearInterval(t)},[]);let{onlineNodes:n,offlineNodes:i,nodePositions:o,flowLinks:m,activeAliases:u}=(0,a.useMemo)(()=>{let s,a=e=>(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],l=e.filter(e=>"offline"!==e.status||a(e)),n=e.filter(e=>"offline"===e.status&&!a(e)),i={};l.forEach((e,t)=>{i[e.alias]=d(t,Math.max(l.length,1),220)}),n.forEach((e,t)=>{i[e.alias]=d(t,Math.max(n.length,1),315)});let o=(s=new Map,r.forEach(e=>{if(!i[e.from_alias]||!i[e.to_alias]||e.from_alias===e.to_alias)return;let t=`${e.from_alias}->${e.to_alias}`,a=s.get(t);s.set(t,{key:t,from:e.from_alias,to:e.to_alias,count:(a?.count||0)+1,content:a?.content||e.content})}),[...s.values()].slice(0,18)),c=new Set;return o.forEach(e=>{c.add(e.from),c.add(e.to)}),{onlineNodes:l,offlineNodes:n,nodePositions:i,flowLinks:o,activeAliases:c}},[r,e,t]),g=n.filter(e=>"working"===e.status).length;return(0,s.jsxs)("section",{className:"w-full max-w-6xl mx-auto mb-8",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between mb-3 px-1",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-xs uppercase text-gray-600 tracking-wider",children:"Network Topology"}),(0,s.jsx)("h2",{className:"text-lg text-white font-semibold",children:"Command mesh"})]}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-2 text-xs",children:[(0,s.jsxs)("span",{className:"px-2.5 py-1 rounded-md bg-green-500/10 text-green-300 border border-green-500/20",children:[g," working"]}),(0,s.jsxs)("span",{className:"px-2.5 py-1 rounded-md bg-cyan-500/10 text-cyan-300 border border-cyan-500/20",children:[n.length," online"]}),(0,s.jsxs)("span",{className:"px-2.5 py-1 rounded-md bg-gray-500/10 text-gray-400 border border-gray-500/20",children:[m.length," active links"]})]})]}),(0,s.jsxs)("div",{className:"relative overflow-hidden rounded-lg border border-[#2a2a4a] bg-[#080814] shadow-2xl shadow-cyan-950/30",children:[(0,s.jsx)("div",{className:"absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-cyan-400/70 to-transparent"}),(0,s.jsxs)("svg",{viewBox:"0 0 1000 680",className:"w-full h-auto block",preserveAspectRatio:"xMidYMid meet",children:[(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:"topo-panel",x1:"0",x2:"1",y1:"0",y2:"1",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:"#0b1220"}),(0,s.jsx)("stop",{offset:"48%",stopColor:"#080814"}),(0,s.jsx)("stop",{offset:"100%",stopColor:"#101018"})]}),(0,s.jsxs)("radialGradient",{id:"topo-radar",cx:"50%",cy:"50%",r:"55%",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:"#22d3ee",stopOpacity:"0.18"}),(0,s.jsx)("stop",{offset:"45%",stopColor:"#22c55e",stopOpacity:"0.045"}),(0,s.jsx)("stop",{offset:"100%",stopColor:"#020617",stopOpacity:"0"})]}),(0,s.jsxs)("filter",{id:"topo-glow",children:[(0,s.jsx)("feGaussianBlur",{stdDeviation:"4",result:"blur"}),(0,s.jsxs)("feMerge",{children:[(0,s.jsx)("feMergeNode",{in:"blur"}),(0,s.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,s.jsx)("marker",{id:"topo-arrow",viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"5",markerHeight:"5",orient:"auto-start-reverse",children:(0,s.jsx)("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#67e8f9"})})]}),(0,s.jsx)("rect",{width:"1000",height:"680",fill:"url(#topo-panel)"}),(0,s.jsx)("circle",{cx:500,cy:330,r:"330",fill:"url(#topo-radar)"}),[90,170,250,330].map(e=>(0,s.jsx)("circle",{cx:500,cy:330,r:e,fill:"none",stroke:"#164e63",strokeWidth:"1",opacity:"0.35"},e)),[0,30,60,90,120,150].map(e=>(0,s.jsx)("line",{x1:500-360*Math.cos(e*Math.PI/180),y1:330-360*Math.sin(e*Math.PI/180),x2:500+360*Math.cos(e*Math.PI/180),y2:330+360*Math.sin(e*Math.PI/180),stroke:"#164e63",strokeWidth:"1",opacity:"0.18"},e)),n.map(e=>{let t=o[e.alias];if(!t)return null;let a=c({x:500,y:330},t,0);return(0,s.jsx)("path",{d:a,fill:"none",stroke:u.has(e.alias)?"#22d3ee":"#155e75",strokeWidth:u.has(e.alias)?2:1,strokeDasharray:u.has(e.alias)?"none":"8 10",opacity:u.has(e.alias)?.65:.35},`hub-${e.alias}`)}),m.map((e,t)=>{let a=o[e.from],r=o[e.to];if(!a||!r)return null;let l=c(a,r,t%2==0?36:-36),n=Math.min(2+e.count,7);return(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:l,fill:"none",stroke:"#67e8f9",strokeWidth:n,opacity:"0.28",filter:"url(#topo-glow)",markerEnd:"url(#topo-arrow)"}),(0,s.jsx)("path",{id:`flow-path-${t}`,d:l,fill:"none",stroke:"#e0f2fe",strokeWidth:"1",strokeDasharray:"2 12",opacity:"0.75"}),(0,s.jsx)("circle",{r:"4",fill:"#fef08a",filter:"url(#topo-glow)",children:(0,s.jsx)("animateMotion",{dur:`${2.2+t%5*.32}s`,repeatCount:"indefinite",path:l})})]},e.key)}),(0,s.jsxs)("g",{filter:"url(#topo-glow)",children:[(0,s.jsx)("circle",{cx:500,cy:330,r:"56",fill:"#020617",stroke:"#67e8f9",strokeWidth:"2"}),(0,s.jsxs)("circle",{cx:500,cy:330,r:"42",fill:"none",stroke:"#22c55e",strokeWidth:"1.5",opacity:"0.8",children:[(0,s.jsx)("animate",{attributeName:"r",values:"42;52;42",dur:"3s",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"opacity",values:"0.8;0.2;0.8",dur:"3s",repeatCount:"indefinite"})]}),(0,s.jsx)("path",{d:"M470 330 h60 M500 300 v60",stroke:"#e0f2fe",strokeWidth:"5",strokeLinecap:"round",opacity:"0.9"}),(0,s.jsx)("text",{x:500,y:408,textAnchor:"middle",fill:"#e5e7eb",fontSize:"16",fontFamily:"monospace",fontWeight:"700",children:"DASHBOARD"}),(0,s.jsx)("text",{x:500,y:426,textAnchor:"middle",fill:"#64748b",fontSize:"10",fontFamily:"monospace",children:"command relay"})]}),[...n,...i].map(e=>{let a=o[e.alias];if(!a)return null;let r=(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],l="offline"!==e.status||!!r,n=l?"working"===e.status?{label:"working",primary:"#22c55e",halo:"#14532d",text:"#dcfce7"}:"idle"===e.status?{label:"idle",primary:"#2dd4bf",halo:"#134e4a",text:"#ccfbf1"}:{label:e.status||"online",primary:"#38bdf8",halo:"#0c4a6e",text:"#e0f2fe"}:{label:"offline",primary:"#6b7280",halo:"#111827",text:"#9ca3af"},i=u.has(e.alias),d=l?26:18;return(0,s.jsxs)("g",{className:"transition-opacity",children:[i&&(0,s.jsxs)("circle",{cx:a.x,cy:a.y,r:d+14,fill:n.primary,opacity:"0.12",children:[(0,s.jsx)("animate",{attributeName:"r",values:`${d+8};${d+22};${d+8}`,dur:"2.4s",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"opacity",values:"0.18;0.04;0.18",dur:"2.4s",repeatCount:"indefinite"})]}),(0,s.jsx)("circle",{cx:a.x,cy:a.y,r:d+8,fill:n.halo,opacity:l?.55:.25}),(0,s.jsx)("circle",{cx:a.x,cy:a.y,r:d,fill:l?"#020617":"#080814",stroke:n.primary,strokeWidth:l?3:1.5,strokeDasharray:l?"none":"5 5",filter:l?"url(#topo-glow)":void 0}),(0,s.jsx)("circle",{cx:a.x,cy:a.y,r:l?8:5,fill:n.primary}),"working"===e.status&&(0,s.jsx)("path",{d:`M${a.x-9},${a.y+11} h18`,stroke:"#fef08a",strokeWidth:"3",strokeLinecap:"round",children:(0,s.jsx)("animate",{attributeName:"opacity",values:"1;0.25;1",dur:"1.1s",repeatCount:"indefinite"})}),(0,s.jsxs)("g",{transform:`translate(${a.x}, ${a.y+d+22})`,children:[(0,s.jsx)("rect",{x:"-62",y:"-14",width:"124",height:"42",rx:"6",fill:"#020617",stroke:"#1f2937",opacity:"0.94"}),(0,s.jsx)("text",{x:"0",y:"1",textAnchor:"middle",fill:n.text,fontSize:"12",fontFamily:"monospace",fontWeight:"700",children:x(e.alias,14)}),(0,s.jsxs)("text",{x:"0",y:"17",textAnchor:"middle",fill:n.primary,fontSize:"9",fontFamily:"monospace",children:[n.label,l&&null!=r?` sse:${r}`:""]})]})]},e.alias)}),(0,s.jsxs)("g",{transform:"translate(28, 34)",children:[(0,s.jsx)("rect",{x:"0",y:"0",width:"285",height:60+20*Math.min(m.length,4),rx:"8",fill:"#020617",stroke:"#1f2937",opacity:"0.94"}),(0,s.jsx)("text",{x:"16",y:"26",fill:"#e5e7eb",fontSize:"13",fontFamily:"monospace",fontWeight:"700",children:"recent signal"}),(0,s.jsxs)("text",{x:"178",y:"26",fill:"#67e8f9",fontSize:"11",fontFamily:"monospace",children:[r.length," messages"]}),m.slice(0,4).map((e,t)=>(0,s.jsxs)("text",{x:"16",y:54+20*t,fill:"#94a3b8",fontSize:"10",fontFamily:"monospace",children:[x(e.from,8)," ","->"," ",x(e.to,8)," / ",e.count," / ",x(e.content,18)]},e.key))]}),(0,s.jsxs)("g",{transform:"translate(720, 34)",children:[(0,s.jsx)("rect",{x:"0",y:"0",width:"250",height:"112",rx:"8",fill:"#020617",stroke:"#1f2937",opacity:"0.94"}),(0,s.jsx)("circle",{cx:"18",cy:"26",r:"6",fill:"#22c55e"}),(0,s.jsx)("text",{x:"34",y:"30",fill:"#94a3b8",fontSize:"11",fontFamily:"monospace",children:"working node"}),(0,s.jsx)("circle",{cx:"18",cy:"52",r:"6",fill:"#2dd4bf"}),(0,s.jsx)("text",{x:"34",y:"56",fill:"#94a3b8",fontSize:"11",fontFamily:"monospace",children:"online idle"}),(0,s.jsx)("circle",{cx:"18",cy:"78",r:"6",fill:"#6b7280"}),(0,s.jsx)("text",{x:"34",y:"82",fill:"#94a3b8",fontSize:"11",fontFamily:"monospace",children:"offline / no SSE"}),(0,s.jsx)("path",{d:"M150,78 Q176,52 210,78",fill:"none",stroke:"#67e8f9",strokeWidth:"3",markerEnd:"url(#topo-arrow)"})]})]})]})]})}let m={working:{bg:"bg-green-900/30 border-green-800/30",text:"text-green-300",dot:"bg-green-500",glow:"shadow-green-500/10"},idle:{bg:"bg-cyan-900/30 border-cyan-800/30",text:"text-cyan-300",dot:"bg-cyan-400",glow:"shadow-cyan-500/5"},blocked:{bg:"bg-yellow-900/30 border-yellow-800/30",text:"text-yellow-300",dot:"bg-yellow-500",glow:""},error:{bg:"bg-red-900/30 border-red-800/30",text:"text-red-300",dot:"bg-red-500",glow:""}},u={bg:"bg-gray-800/50 border-gray-700/30",text:"text-gray-500",dot:"bg-gray-500",glow:""};function g({session:e,hasSse:t,sseCount:a,onChat:n}){let i=t&&m[e.status]||u;return(0,s.jsxs)(r.default,{href:`/node?alias=${encodeURIComponent(e.alias)}`,prefetch:!1,className:`block rounded-xl border p-4 transition-all duration-300 cursor-pointer ${t?`bg-[#111128] border-[#2a2a4a] hover:border-cyan-500/30 hover:shadow-lg ${i.glow}`:"bg-[#0d0d1a] border-[#1a1a2a] opacity-40"}`,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,s.jsx)("span",{className:`inline-block w-2 h-2 rounded-full shrink-0 ${i.dot} ${t&&"working"===e.status?"animate-pulse":""}`}),(0,s.jsx)("span",{className:"font-semibold text-white truncate text-sm",title:e.alias,children:e.alias})]}),(0,s.jsx)("span",{className:`text-[11px] px-2 py-0.5 rounded-md border shrink-0 ${i.bg} ${i.text}`,children:t?e.status:"offline"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,s.jsx)("span",{className:"text-xs text-gray-600 bg-[#0a0a15] px-2 py-0.5 rounded border border-[#1a1a2a]",children:e.agent||"unknown"}),t&&(0,s.jsxs)("span",{className:"text-[10px] text-green-500",children:["SSE:",a]})]}),e.task?(0,s.jsx)("div",{className:"text-xs text-gray-400 bg-[#0a0a15] rounded-lg px-3 py-2 border border-[#1a1a2a] line-clamp-2",title:e.task,children:e.task}):(0,s.jsx)("div",{className:"text-xs text-gray-700 italic",children:"No active task"}),e.progress>0&&(0,s.jsxs)("div",{className:"mt-3",children:[(0,s.jsxs)("div",{className:"flex justify-between text-[10px] mb-1",children:[(0,s.jsx)("span",{className:"text-gray-600",children:"Progress"}),(0,s.jsxs)("span",{className:i.text,children:[e.progress,"%"]})]}),(0,s.jsx)("div",{className:"w-full bg-gray-800 rounded-full h-1.5 overflow-hidden",children:(0,s.jsx)("div",{className:`h-1.5 rounded-full transition-all duration-700 ${"working"===e.status?"bg-green-500":"bg-cyan-500"}`,style:{width:`${Math.min(e.progress,100)}%`}})})]}),(0,s.jsxs)("div",{className:"mt-3 flex justify-between items-center text-[10px] text-gray-600",children:[(0,s.jsx)("span",{children:e.server||"--"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[n&&t&&(0,s.jsx)("button",{onClick:t=>{t.preventDefault(),t.stopPropagation(),n(e.alias)},className:"text-cyan-400 hover:text-cyan-300 px-1.5 py-0.5 rounded border border-cyan-500/20 hover:bg-cyan-500/10 transition-colors",children:"Chat"}),(0,s.jsx)("span",{children:(0,l.timeAgo)(e.updated_at)})]})]})]})}function f({messages:e}){return 0===e.length?null:(0,s.jsxs)("div",{className:"mt-8",children:[(0,s.jsxs)("h2",{className:"text-lg font-semibold text-white mb-3 flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Inbox"}),(0,s.jsx)("span",{className:"text-xs bg-blue-900/30 text-blue-400 px-2 py-0.5 rounded-full border border-blue-800/30",children:e.length})]}),(0,s.jsx)("div",{className:"space-y-2 max-h-96 overflow-y-auto pr-1 scrollbar-thin",children:e.map(e=>(0,s.jsxs)("div",{className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm transition-colors hover:border-[#3a3a5a]",children:[(0,s.jsxs)("div",{className:"flex justify-between text-xs text-gray-500 mb-1.5",children:[(0,s.jsx)("span",{className:"text-blue-400 font-medium",children:e.from_session}),(0,s.jsx)("span",{children:e.created_at})]}),(0,s.jsx)("div",{className:"text-gray-300 leading-relaxed",children:e.content})]},e.id))})]})}function p(){return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-6 font-mono animate-pulse",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"h-7 w-48 bg-gray-800 rounded mb-2"}),(0,s.jsx)("div",{className:"h-4 w-64 bg-gray-800/60 rounded"})]}),(0,s.jsx)("div",{className:"flex gap-3",children:[1,2,3].map(e=>(0,s.jsx)("div",{className:"w-[72px] h-[60px] bg-gray-800/40 rounded-lg border border-gray-800"},e))})]}),(0,s.jsxs)("div",{className:"mb-6 flex gap-2",children:[(0,s.jsx)("div",{className:"flex-1 h-10 bg-gray-800/40 rounded-lg"}),(0,s.jsx)("div",{className:"w-28 h-10 bg-gray-800/40 rounded-lg"})]}),(0,s.jsx)("div",{className:"w-full max-w-4xl mx-auto mb-8 h-64 bg-gray-800/20 rounded-xl"}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:[1,2,3,4].map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-gray-800/40 p-4 bg-gray-800/20",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,s.jsx)("div",{className:"w-2.5 h-2.5 rounded-full bg-gray-700"}),(0,s.jsx)("div",{className:"h-4 w-24 bg-gray-700 rounded"})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("div",{className:"h-3 w-full bg-gray-800/60 rounded"}),(0,s.jsx)("div",{className:"h-3 w-3/4 bg-gray-800/60 rounded"}),(0,s.jsx)("div",{className:"h-3 w-1/2 bg-gray-800/60 rounded"})]})]},e))})]})}function b({hint:e}){return(0,s.jsxs)("div",{className:"text-center py-16",children:[(0,s.jsx)("div",{className:"text-gray-600 text-4xl mb-4",children:"--"}),(0,s.jsx)("h3",{className:"text-gray-400 text-lg font-medium mb-2",children:"No agents in this network"}),e?.global_count?(0,s.jsxs)("p",{className:"text-gray-500 text-sm max-w-md mx-auto",children:["Server has ",(0,s.jsx)("span",{className:"text-cyan-400 font-medium",children:e.global_count})," nodes globally, but none are registered to the current network. Switch network or contact admin."]}):(0,s.jsx)("p",{className:"text-gray-600 text-sm max-w-md mx-auto",children:"Agent sessions will appear here once they connect to the CommHub."})]})}var y=e.i(58963);function j(){let{setNetworkId:e}=(0,y.useNetworkId)(),[t,r]=(0,a.useState)({user:null,networks:[],currentNetwork:"",token:""}),[l,n]=(0,a.useState)(!1),[i,o]=(0,a.useState)(""),[d,c]=(0,a.useState)(""),[x,h]=(0,a.useState)(""),[m,u]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=sessionStorage.getItem("anet_v3_auth");if(e)try{r(JSON.parse(e))}catch{}},[]);let[g,f]=(0,a.useState)(!1),[p,b]=(0,a.useState)(""),[j,v]=(0,a.useState)(""),w=async()=>{try{await fetch(`/api/hub/auth?token=${t.token}&endpoint=/api/auth/me`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update_profile",token:t.token,display_name:p,email:j})});let e=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update_profile",token:t.token,display_name:p,email:j})}),s=await e.json();if(s.ok&&s.user){let e={...t,user:s.user};r(e),sessionStorage.setItem("anet_v3_auth",JSON.stringify(e)),f(!1)}}catch{}};if(!t.user)return null;let N=(t.user.display_name||t.user.username).slice(0,2).toUpperCase();return(0,s.jsxs)("div",{className:"flex items-center justify-between bg-[#111128] border border-[#2a2a4a] rounded-lg px-4 py-2.5 mb-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-cyan-500 to-blue-600 flex items-center justify-center text-xs font-bold text-white",children:N}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm text-white font-medium",children:t.user.display_name||t.user.username}),(0,s.jsxs)("div",{className:"text-[10px] text-gray-500",children:[t.user.role," · ",t.user.user_id]})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[t.networks.length>0&&(0,s.jsx)("select",{value:t.currentNetwork,onChange:s=>{let a={...t,currentNetwork:s.target.value};r(a),e(s.target.value),sessionStorage.setItem("anet_v3_auth",JSON.stringify(a))},className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white focus:outline-none",children:t.networks.map(e=>(0,s.jsx)("option",{value:e.network_id,children:e.network_name},e.network_id))}),(0,s.jsx)("button",{onClick:()=>{b(t.user?.display_name||""),v(""),f(!g)},className:"text-xs text-gray-500 hover:text-gray-300",children:"Edit"}),(0,s.jsx)("button",{onClick:()=>{r({user:null,networks:[],currentNetwork:"",token:""}),sessionStorage.removeItem("anet_v3_auth")},className:"text-xs text-gray-500 hover:text-gray-300",children:"Sign out"})]}),g&&(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-2 pt-2 border-t border-[#2a2a4a]",children:[(0,s.jsx)("input",{type:"text",value:p,onChange:e=>b(e.target.value),placeholder:"Display name",className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white placeholder-gray-600 focus:outline-none w-32"}),(0,s.jsx)("input",{type:"email",value:j,onChange:e=>v(e.target.value),placeholder:"Email",className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white placeholder-gray-600 focus:outline-none w-40"}),(0,s.jsx)("button",{onClick:w,className:"px-2 py-1 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded",children:"Save"})]})]})}var v=e.i(21373),w=e.i(58442);function N({tabs:e,activeTab:t,onOpenTab:a,onCloseTab:r,onSetActive:l,onClose:n}){return 0===e.length?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{onClick:n,className:"jsx-f7cf3d1a6fdfc074 fixed inset-0 bg-black/30 z-40 lg:hidden"}),(0,s.jsxs)("div",{className:"jsx-f7cf3d1a6fdfc074 fixed top-0 right-0 h-full w-full lg:w-[500px] bg-[#0a0a1a] border-l border-[#2a2a4a] z-50 flex flex-col shadow-2xl shadow-black/60 animate-slide-in",children:[(0,s.jsxs)("div",{className:"jsx-f7cf3d1a6fdfc074 flex items-center border-b border-[#2a2a4a] bg-[#0d0d1a] overflow-x-auto",children:[(0,s.jsx)("div",{className:"jsx-f7cf3d1a6fdfc074 flex-1 flex min-w-0",children:e.map(e=>(0,s.jsxs)("button",{onClick:()=>l(e),className:`jsx-f7cf3d1a6fdfc074 flex items-center gap-1.5 px-3 py-2.5 text-xs border-b-2 transition-colors shrink-0 ${t===e?"border-cyan-400 text-cyan-300 bg-cyan-500/5":"border-transparent text-gray-500 hover:text-gray-300"}`,children:[(0,s.jsx)("div",{className:`jsx-f7cf3d1a6fdfc074 w-2 h-2 rounded-full ${t===e?"bg-cyan-400":"bg-gray-600"}`}),(0,s.jsx)("span",{className:"jsx-f7cf3d1a6fdfc074 max-w-[80px] truncate",children:e}),(0,s.jsx)("button",{onClick:t=>{t.stopPropagation(),r(e)},className:"jsx-f7cf3d1a6fdfc074 ml-1 text-gray-600 hover:text-gray-300 p-0.5",children:"×"})]},e))}),(0,s.jsx)("button",{onClick:n,className:"jsx-f7cf3d1a6fdfc074 text-gray-500 hover:text-white px-3 py-2.5 shrink-0 border-l border-[#2a2a4a]",children:(0,s.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,className:"jsx-f7cf3d1a6fdfc074 w-4 h-4",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12",className:"jsx-f7cf3d1a6fdfc074"})})})]}),(0,s.jsx)("div",{className:"jsx-f7cf3d1a6fdfc074 flex-1 relative overflow-hidden",children:e.map(e=>(0,s.jsx)("div",{className:`jsx-f7cf3d1a6fdfc074 absolute inset-0 ${t===e?"block":"hidden"}`,children:(0,s.jsx)(k,{alias:e})},e))})]}),(0,s.jsx)(v.default,{id:"f7cf3d1a6fdfc074",children:"@keyframes slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}.animate-slide-in{animation:.2s ease-out slide-in}"})]})}function k({alias:e}){return(0,s.jsx)(w.TaskChatPanel,{alias:e,onClose:()=>{},inline:!0})}function S({sessions:e,onClose:t}){let[r,l]=(0,a.useState)(new Set),[n,i]=(0,a.useState)(""),[o,d]=(0,a.useState)("normal"),[c,x]=(0,a.useState)(!1),[h,m]=(0,a.useState)([]),[u,g]=(0,a.useState)(""),f=e.filter(e=>"offline"!==e.status).filter(e=>!u||e.alias.toLowerCase().includes(u.toLowerCase())||(e.agent||"").toLowerCase().includes(u.toLowerCase())),p=async()=>{if(!n.trim()||0===r.size||c)return;x(!0),m([]);let e=[...r].map(async e=>{try{let t=await fetch("/api/hub/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({alias:e,task:n,priority:o})}),s=await t.json();return{alias:e,ok:!!s.ok,error:s.error}}catch(t){return{alias:e,ok:!1,error:"send failed"}}});m(await Promise.all(e)),x(!1)},b=h.filter(e=>e.ok).length;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-black/50 z-40",onClick:t}),(0,s.jsxs)("div",{className:"fixed inset-4 lg:inset-x-[15%] lg:inset-y-[5%] bg-[#0a0a1a] border border-[#2a2a4a] rounded-2xl z-50 flex flex-col shadow-2xl shadow-black/70 overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 border-b border-[#2a2a4a] bg-[#0d0d1a]",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-lg font-bold text-white",children:"Dispatch Task"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-0.5",children:"Send a task to one or more agents"})]}),(0,s.jsx)("button",{onClick:t,className:"text-gray-500 hover:text-white p-1.5 rounded-lg hover:bg-[#1a1a2a]",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,s.jsxs)("div",{className:"flex-1 flex flex-col lg:flex-row overflow-hidden",children:[(0,s.jsxs)("div",{className:"lg:w-[280px] border-b lg:border-b-0 lg:border-r border-[#2a2a4a] flex flex-col",children:[(0,s.jsxs)("div",{className:"px-4 py-3 border-b border-[#2a2a4a]",children:[(0,s.jsx)("input",{type:"text",value:u,onChange:e=>g(e.target.value),placeholder:"Filter agents...",className:"w-full bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-xs text-white placeholder-gray-600 focus:border-cyan-500/40 focus:outline-none"}),(0,s.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,s.jsx)("button",{onClick:()=>{r.size===f.length?l(new Set):l(new Set(f.map(e=>e.alias)))},className:"text-[10px] text-cyan-400 hover:text-cyan-300",children:r.size===f.length?"Deselect all":`Select all (${f.length})`}),(0,s.jsxs)("span",{className:"text-[10px] text-gray-600",children:[r.size," selected"]})]})]}),(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto px-2 py-2 space-y-0.5 max-h-[200px] lg:max-h-none",children:[f.map(e=>(0,s.jsxs)("button",{onClick:()=>{var t;return t=e.alias,void l(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},className:`w-full flex items-center gap-2 px-3 py-2 rounded-lg text-xs text-left transition-colors ${r.has(e.alias)?"bg-cyan-500/10 text-cyan-300 border border-cyan-500/20":"text-gray-400 hover:bg-[#1a1a2a]"}`,children:[(0,s.jsx)("div",{className:`w-2 h-2 rounded-full shrink-0 ${"working"===e.status?"bg-green-400":"idle"===e.status?"bg-cyan-400":"bg-gray-500"}`}),(0,s.jsx)("span",{className:"truncate flex-1",children:e.alias}),(0,s.jsx)("span",{className:"text-[9px] text-gray-600",children:e.agent||"--"})]},e.alias)),0===f.length&&(0,s.jsx)("div",{className:"text-center text-xs text-gray-600 py-4",children:"No online agents"})]})]}),(0,s.jsxs)("div",{className:"flex-1 flex flex-col",children:[(0,s.jsxs)("div",{className:"flex-1 px-6 py-4 flex flex-col",children:[(0,s.jsx)("label",{className:"text-xs text-gray-500 uppercase mb-2",children:"Task Prompt"}),(0,s.jsx)("textarea",{value:n,onChange:e=>i(e.target.value),placeholder:"Enter the task you want to dispatch...",className:"flex-1 min-h-[120px] bg-[#111128] border border-[#2a2a4a] rounded-xl px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/40 focus:outline-none resize-none"}),(0,s.jsxs)("div",{className:"flex items-center gap-3 mt-4",children:[(0,s.jsxs)("select",{value:o,onChange:e=>d(e.target.value),className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-xs text-white focus:outline-none",children:[(0,s.jsx)("option",{value:"normal",children:"Normal priority"}),(0,s.jsx)("option",{value:"high",children:"High priority"}),(0,s.jsx)("option",{value:"low",children:"Low priority"})]}),(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsx)("button",{onClick:p,disabled:c||!n.trim()||0===r.size,className:"px-6 py-2.5 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-xl transition-all shadow-lg shadow-cyan-500/10 disabled:shadow-none active:scale-95",children:c?(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Sending..."]}):`Dispatch to ${r.size} agent${r.size>1?"s":""}`})]})]}),h.length>0&&(0,s.jsxs)("div",{className:"px-6 py-3 border-t border-[#2a2a4a] bg-[#0d0d1a]",children:[(0,s.jsxs)("div",{className:"text-xs text-gray-500 mb-2",children:[b,"/",h.length," dispatched successfully"]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:h.map(e=>(0,s.jsxs)("span",{className:`text-[10px] px-2 py-0.5 rounded-full border ${e.ok?"text-green-300 border-green-500/20 bg-green-500/5":"text-red-300 border-red-500/20 bg-red-500/5"}`,children:[e.alias,": ",e.ok?"✓":e.error||"✗"]},e.alias))})]})]})]})]})]})}var C=e.i(65822),$=e.i(51280),_=e.i(71235);e.s(["default",0,function(){(0,a.useEffect)(()=>{sessionStorage.getItem("anet_v3_auth")||(fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login"))},[]);let{sessions:e,hint:i,error:d,isLoading:c}=(0,C.useSessions)(),{health:x}=(0,C.useHealth)(),{config:m}=(0,C.useAnetConfig)(),{tasks:u}=(0,C.useTasks)({limit:"500"}),{stats:y}=(0,C.useStats)(),{license:v}=(0,C.useLicense)(),[w,k]=(0,a.useState)(window.innerWidth>=1024),[M,T]=(0,a.useState)(!1),z=function(){let[e,t]=(0,a.useState)([]),[s,r]=(0,a.useState)("");return{tabs:e,activeTab:s,openTab:e=>{t(t=>t.includes(e)?t:[...t,e]),r(e)},closeTab:e=>{t(t=>{let a=t.filter(t=>t!==e);return s===e&&r(a[a.length-1]||""),a})},closeAll:()=>{t([]),r("")},setActiveTab:r}}(),[L,P]=(0,a.useState)(!1),[W,A]=(0,a.useState)([]),{mutate:E}=(0,_.useSWRConfig)(),O="1"!==t.default.env.NEXT_PUBLIC_DISABLE_SSE,{connected:I,supported:F}=(0,$.useSSE)({url:"/api/hub/events",enabled:O,onEvent:e=>{["new_task","new_message","new_reply","node_status_changed","broadcast"].includes(e.type)&&(E("/api/hub/status"),E(e=>"string"==typeof e&&e.startsWith("/api/hub/tasks"),void 0,{revalidate:!0}))}});if((0,a.useEffect)(()=>{let e=()=>{fetch("/api/hub/inbox").then(e=>e.json()).then(e=>{e.messages?.length&&A(t=>{let s=new Set(t.map(e=>e.id));return[...e.messages.filter(e=>!s.has(e.id)),...t].slice(0,100)})}).catch(()=>{})};e();let t=setInterval(e,1e4);return()=>clearInterval(t)},[]),c)return(0,s.jsx)(p,{});let B=x?.sse_sessions||{},D=e=>(e.network_id?B[`${e.network_id}:${e.alias}`]:void 0)??B[e.alias],R=e=>"offline"!==e.status||!!D(e),H=e.filter(R).length,J=e.length,U=e.filter(e=>"working"===e.status).length,G=x?(0,l.formatUptime)(x.uptime):"--",K=x?.version||"--",Q=!!(m?.hub&&m.tokenConfigured),X=m?.source==="file"?"Local config":m?.source==="runtime-env"?"Runtime env":"Config missing",Y={};if(y?.tasks?.by_status?.length)for(let e of y.tasks.by_status)Y[e.status]=e.count;else for(let e of u)Y[e.status]=(Y[e.status]||0)+1;let V=[...e].sort((e,t)=>{let s=+!!R(e),a=+!!R(t);if(s!==a)return a-s;let r=+("working"===e.status);return("working"===t.status)-r});return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("div",{className:"lg:ml-0 ml-10",children:(0,s.jsx)(n,{online:H,working:U,total:J,version:K,uptime:G})}),(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,s.jsx)("button",{onClick:()=>P(!0),className:"px-4 py-2 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 text-white text-sm font-medium rounded-xl shadow-lg shadow-cyan-500/10 transition-all active:scale-95 shrink-0",children:"⚡ Dispatch"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(j,{})})]}),(0,s.jsxs)("section",{className:"mb-6 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 shadow-lg shadow-black/20",children:[(0,s.jsxs)("button",{onClick:()=>T(!M),className:"w-full flex items-center justify-between text-left",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,s.jsx)("span",{className:"uppercase text-gray-600",children:"Config"}),(0,s.jsx)("span",{className:`w-2 h-2 rounded-full ${Q?"bg-green-400":"bg-red-400"}`}),(0,s.jsx)("span",{className:"text-gray-500",children:X})]}),(0,s.jsx)("svg",{className:`w-4 h-4 text-gray-600 transition-transform ${M?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),M&&(0,s.jsxs)("div",{className:"mt-3 pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("div",{className:"min-w-0",children:(0,s.jsxs)("div",{className:"text-gray-100 truncate text-sm",title:m?.hub||void 0,children:["Hub: ",(0,s.jsx)("span",{className:m?.hub?"text-cyan-300":"text-red-300",children:m?.hub?.trim()||"not configured"})]})}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2 text-xs",children:(0,s.jsxs)("span",{className:`px-2.5 py-1 rounded-md border ${m?.tokenConfigured?"bg-blue-500/5 text-blue-300 border-blue-500/20":"bg-gray-500/5 text-gray-400 border-gray-500/20"}`,children:["Token: ",m?.tokenPreview||"not configured"]})})]}),m?.error&&(0,s.jsx)("div",{className:"mt-2 text-xs text-gray-600",children:m.error})]})]}),Object.keys(Y).length>0&&(0,s.jsxs)("section",{className:"mb-6 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 shadow-lg shadow-black/20",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.jsx)("div",{className:"text-xs uppercase text-gray-600",children:"Task Status"}),(0,s.jsx)(r.default,{href:"/tasks",prefetch:!1,className:"text-xs text-cyan-400 hover:text-cyan-300",children:"View all →"})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:[{key:"running",color:"bg-green-500/10 text-green-300 border-green-500/20"},{key:"delivered",color:"bg-blue-500/10 text-blue-300 border-blue-500/20"},{key:"acked",color:"bg-cyan-500/10 text-cyan-300 border-cyan-500/20"},{key:"replied",color:"bg-purple-500/10 text-purple-300 border-purple-500/20"},{key:"failed",color:"bg-red-500/10 text-red-300 border-red-500/20"},{key:"cancelled",color:"bg-yellow-500/10 text-yellow-300 border-yellow-500/20"},{key:"expired",color:"bg-orange-500/10 text-orange-300 border-orange-500/20"},{key:"closed",color:"bg-gray-500/10 text-gray-500 border-gray-500/20"}].filter(({key:e})=>Y[e]).map(({key:e,color:t})=>(0,s.jsxs)(r.default,{href:`/tasks?status=${e}`,prefetch:!1,className:`px-2.5 py-1 rounded-md border text-xs ${t} hover:opacity-80 transition-opacity`,children:[e,": ",Y[e]]},e))})]}),(0,s.jsx)("section",{className:"mb-6 grid grid-cols-3 sm:grid-cols-6 gap-2",children:[{href:"/nodes",label:"Nodes",value:`${H}/${J}`,color:"text-green-400 border-green-500/15"},{href:"/tasks",label:"Tasks",value:String(Object.values(Y).reduce((e,t)=>e+t,0)||"--"),color:"text-cyan-400 border-cyan-500/15"},{href:"/tasks?status=failed",label:"Failed",value:String(Y.failed||0),color:Y.failed?"text-red-400 border-red-500/20":"text-gray-600 border-gray-700/30"},{href:"/messages",label:"Messages",value:"→",color:"text-blue-400 border-blue-500/15"},{href:"/logs",label:"Logs",value:"→",color:"text-purple-400 border-purple-500/15"},{href:"/admin",label:"Admin",value:"→",color:"text-gray-400 border-gray-500/15"}].map(e=>(0,s.jsxs)(r.default,{href:e.href,prefetch:!1,className:`text-center rounded-xl border ${e.color} bg-[#111128] px-3 py-2.5 hover:bg-[#161630] transition-colors`,children:[(0,s.jsx)("div",{className:`text-lg font-bold tabular-nums ${e.color.split(" ")[0]}`,children:e.value}),(0,s.jsx)("div",{className:"text-[10px] text-gray-500",children:e.label})]},e.href))}),(0,s.jsx)(o,{}),u.length>0&&(0,s.jsxs)("section",{className:"mb-6 bg-[#111128] border border-[#2a2a4a] rounded-xl p-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Recent Activity"}),(0,s.jsx)(r.default,{href:"/tasks",className:"text-xs text-cyan-400 hover:text-cyan-300",children:"All tasks →"})]}),(0,s.jsx)("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:u.slice(0,5).map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,s.jsx)("span",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${"replied"===e.status?"bg-purple-400":"running"===e.status?"bg-green-400":"failed"===e.status?"bg-red-400":"bg-blue-400"}`}),(0,s.jsx)("span",{className:"text-blue-400 shrink-0",children:e.from_name||"?"}),(0,s.jsx)("span",{className:"text-gray-600",children:"→"}),(0,s.jsx)("span",{className:"text-cyan-400 shrink-0",children:e.to_name||"?"}),(0,s.jsx)("span",{className:"text-gray-500 truncate flex-1",children:e.content?.slice(0,40)||"--"}),(0,s.jsx)("span",{className:`shrink-0 px-1.5 py-0.5 rounded text-[10px] border ${"replied"===e.status?"text-purple-300 border-purple-500/20":"failed"===e.status?"text-red-300 border-red-500/20":"text-gray-500 border-gray-700/30"}`,children:e.status})]},e.task_id))})]}),d&&(0,s.jsxs)("div",{className:"bg-red-900/20 border border-red-800/40 text-red-300 px-4 py-3 rounded-lg mb-6 text-sm flex items-center justify-between",role:"alert",children:[(0,s.jsx)("span",{children:String(d)}),(0,s.jsx)("span",{className:"text-gray-500 text-xs",children:"Check CommHub connection"})]}),e.length>0&&(0,s.jsx)("div",{className:"flex justify-center mb-4",children:(0,s.jsx)("button",{onClick:()=>k(!w),className:"text-xs text-gray-500 hover:text-gray-300 border border-gray-700/50 px-4 py-1.5 rounded-lg transition-colors hover:border-gray-600 cursor-pointer",children:w?"Hide Topology":"Show Topology"})}),!w&&e.length>0&&(0,s.jsx)("div",{className:"lg:hidden text-center text-xs text-gray-600 mb-4",children:"Topology hidden on mobile for better readability"}),w&&e.length>0&&(0,s.jsx)(h,{sessions:e,sseSessions:B}),0!==e.length||d?(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-3 sm:gap-4",children:V.map(e=>(0,s.jsx)(g,{session:e,hasSse:R(e),sseCount:D(e)||0,onChat:z.openTab},e.alias))}):(0,s.jsx)(b,{hint:i}),(0,s.jsx)(f,{messages:W}),(0,s.jsxs)("div",{className:"mt-8 text-center text-xs text-gray-600 flex items-center justify-center gap-2 flex-wrap",children:[F&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:`w-1.5 h-1.5 rounded-full ${I?"bg-green-400":"bg-gray-600"}`}),I?"SSE live":"SWR polling"]}),v?.license&&(0,s.jsxs)(s.Fragment,{children:[F&&(0,s.jsx)(s.Fragment,{children:"·"}),(0,s.jsxs)("span",{className:v.license.days_left<=7?"text-red-400":"pro"===v.license.type?"text-green-400":"text-yellow-400",children:[v.license.type," (",v.license.days_left,"d left)"]})]})]}),L&&(0,s.jsx)(S,{sessions:e,onClose:()=>P(!1)}),z.tabs.length>0&&(0,s.jsx)(N,{tabs:z.tabs,activeTab:z.activeTab,onOpenTab:z.openTab,onCloseTab:z.closeTab,onSetActive:z.setActiveTab,onClose:z.closeAll})]})}],31713)}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":278,"timestamp":123913028438,"id":4,"parentId":1,"tags":{},"startTime":1778495398853,"traceId":"b5ca04c512bd9fc2"},{"name":"load-custom-routes","duration":525,"timestamp":123913028864,"id":5,"parentId":1,"tags":{},"startTime":1778495398854,"traceId":"b5ca04c512bd9fc2"},{"name":"create-dist-dir","duration":361,"timestamp":123913029437,"id":6,"parentId":1,"tags":{},"startTime":1778495398854,"traceId":"b5ca04c512bd9fc2"},{"name":"clean","duration":573,"timestamp":123913030578,"id":7,"parentId":1,"tags":{},"startTime":1778495398855,"traceId":"b5ca04c512bd9fc2"},{"name":"discover-routes","duration":9162,"timestamp":123913114299,"id":8,"parentId":1,"tags":{},"startTime":1778495398939,"traceId":"b5ca04c512bd9fc2"},{"name":"create-root-mapping","duration":107,"timestamp":123913123527,"id":9,"parentId":1,"tags":{},"startTime":1778495398948,"traceId":"b5ca04c512bd9fc2"},{"name":"generate-route-types","duration":31267,"timestamp":123913125954,"id":10,"parentId":1,"tags":{},"startTime":1778495398951,"traceId":"b5ca04c512bd9fc2"},{"name":"public-dir-conflict-check","duration":111,"timestamp":123913157414,"id":11,"parentId":1,"tags":{},"startTime":1778495398982,"traceId":"b5ca04c512bd9fc2"},{"name":"generate-routes-manifest","duration":4239,"timestamp":123913157646,"id":12,"parentId":1,"tags":{},"startTime":1778495398982,"traceId":"b5ca04c512bd9fc2"},{"name":"run-turbopack","duration":8258064,"timestamp":123913167629,"id":14,"parentId":1,"tags":{},"startTime":1778495398992,"traceId":"b5ca04c512bd9fc2"},{"name":"turbopack-build-events","duration":77,"timestamp":123913452528,"id":15,"parentId":1,"tags":{},"startTime":1778495399277,"traceId":"b5ca04c512bd9fc2"},{"name":"run-typescript","duration":7315407,"timestamp":123921434560,"id":16,"parentId":1,"tags":{},"startTime":1778495407259,"traceId":"b5ca04c512bd9fc2"},{"name":"generate-required-server-files","duration":2646,"timestamp":123928750832,"id":18,"parentId":1,"tags":{},"startTime":1778495414576,"traceId":"b5ca04c512bd9fc2"},{"name":"check-static-error-page","duration":16537,"timestamp":123928838532,"id":20,"parentId":19,"tags":{},"startTime":1778495414663,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":333919,"timestamp":123928857999,"id":62,"parentId":22,"tags":{},"startTime":1778495414683,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":350673,"timestamp":123928841385,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778495414666,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":405439,"timestamp":123928857615,"id":61,"parentId":21,"tags":{},"startTime":1778495414682,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":423247,"timestamp":123928839880,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778495414665,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":423029,"timestamp":123928858326,"id":64,"parentId":26,"tags":{},"startTime":1778495414683,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":436580,"timestamp":123928844839,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778495414670,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":434365,"timestamp":123928858454,"id":66,"parentId":28,"tags":{},"startTime":1778495414683,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":447784,"timestamp":123928845107,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778495414670,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":441517,"timestamp":123928858508,"id":67,"parentId":29,"tags":{},"startTime":1778495414683,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":454835,"timestamp":123928845265,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778495414670,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":447074,"timestamp":123928858140,"id":63,"parentId":25,"tags":{},"startTime":1778495414683,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":460645,"timestamp":123928844641,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778495414669,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":446925,"timestamp":123928858557,"id":68,"parentId":30,"tags":{},"startTime":1778495414683,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":459958,"timestamp":123928845560,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778495414670,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":452701,"timestamp":123928858604,"id":69,"parentId":32,"tags":{},"startTime":1778495414683,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":464120,"timestamp":123928847257,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778495414672,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":474708,"timestamp":123928858814,"id":71,"parentId":34,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":486060,"timestamp":123928847534,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778495414672,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":475008,"timestamp":123928858748,"id":70,"parentId":33,"tags":{},"startTime":1778495414683,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":486365,"timestamp":123928847414,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778495414672,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":484033,"timestamp":123928858916,"id":73,"parentId":36,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":494826,"timestamp":123928848201,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778495414673,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":484380,"timestamp":123928858838,"id":72,"parentId":35,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":495598,"timestamp":123928847652,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778495414672,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":485608,"timestamp":123928858940,"id":74,"parentId":37,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":496174,"timestamp":123928848417,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778495414673,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":487760,"timestamp":123928858951,"id":75,"parentId":38,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":498196,"timestamp":123928848556,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778495414673,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":488754,"timestamp":123928858396,"id":65,"parentId":27,"tags":{},"startTime":1778495414683,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":502215,"timestamp":123928844966,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778495414670,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":489532,"timestamp":123928858959,"id":76,"parentId":39,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":499873,"timestamp":123928848655,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778495414673,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":491706,"timestamp":123928858967,"id":77,"parentId":40,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":501979,"timestamp":123928848750,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778495414673,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":492743,"timestamp":123928858976,"id":78,"parentId":41,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":502917,"timestamp":123928848838,"id":41,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778495414674,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":495588,"timestamp":123928858985,"id":79,"parentId":42,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":505701,"timestamp":123928848924,"id":42,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778495414674,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":495772,"timestamp":123928858993,"id":80,"parentId":43,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":505765,"timestamp":123928849026,"id":43,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778495414674,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":496576,"timestamp":123928859022,"id":81,"parentId":44,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":506514,"timestamp":123928849118,"id":44,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778495414674,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":498079,"timestamp":123928859031,"id":82,"parentId":45,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":507943,"timestamp":123928849209,"id":45,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778495414674,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":499444,"timestamp":123928859040,"id":83,"parentId":46,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":509202,"timestamp":123928849324,"id":46,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778495414674,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":500008,"timestamp":123928859047,"id":84,"parentId":47,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":509656,"timestamp":123928849434,"id":47,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778495414674,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":501451,"timestamp":123928859056,"id":85,"parentId":48,"tags":{},"startTime":1778495414684,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":508166,"timestamp":123928852373,"id":48,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778495414677,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":495453,"timestamp":123928867353,"id":87,"parentId":31,"tags":{},"startTime":1778495414692,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":515959,"timestamp":123928846891,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778495414672,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":496813,"timestamp":123928866160,"id":86,"parentId":24,"tags":{},"startTime":1778495414691,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":521133,"timestamp":123928841860,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778495414667,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":495352,"timestamp":123928875209,"id":89,"parentId":49,"tags":{},"startTime":1778495414700,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":517807,"timestamp":123928852815,"id":49,"parentId":19,"tags":{"page":"/login"},"startTime":1778495414678,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":499172,"timestamp":123928875235,"id":91,"parentId":51,"tags":{},"startTime":1778495414700,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":521400,"timestamp":123928853056,"id":51,"parentId":19,"tags":{"page":"/messages"},"startTime":1778495414678,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":505171,"timestamp":123928875242,"id":92,"parentId":52,"tags":{},"startTime":1778495414700,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":527236,"timestamp":123928853228,"id":52,"parentId":19,"tags":{"page":"/node"},"startTime":1778495414678,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":511231,"timestamp":123928875253,"id":93,"parentId":53,"tags":{},"startTime":1778495414700,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":533135,"timestamp":123928853405,"id":53,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778495414678,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":517270,"timestamp":123928875264,"id":94,"parentId":55,"tags":{},"startTime":1778495414700,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":538594,"timestamp":123928854013,"id":55,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778495414679,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":523669,"timestamp":123928875272,"id":95,"parentId":56,"tags":{},"startTime":1778495414700,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":544873,"timestamp":123928854157,"id":56,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778495414679,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":529330,"timestamp":123928875283,"id":96,"parentId":58,"tags":{},"startTime":1778495414700,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":550012,"timestamp":123928854657,"id":58,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778495414679,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":540463,"timestamp":123928875166,"id":88,"parentId":23,"tags":{},"startTime":1778495414700,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":574024,"timestamp":123928841675,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778495414666,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":540645,"timestamp":123928875223,"id":90,"parentId":50,"tags":{},"startTime":1778495414700,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":562953,"timestamp":123928852940,"id":50,"parentId":19,"tags":{"page":"/logs"},"startTime":1778495414678,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":543980,"timestamp":123928875297,"id":97,"parentId":59,"tags":{},"startTime":1778495414700,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":564584,"timestamp":123928854780,"id":59,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778495414679,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":544877,"timestamp":123928875307,"id":98,"parentId":60,"tags":{},"startTime":1778495414700,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":565329,"timestamp":123928854905,"id":60,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778495414680,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":546894,"timestamp":123928875322,"id":99,"parentId":54,"tags":{},"startTime":1778495414700,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":568693,"timestamp":123928853567,"id":54,"parentId":19,"tags":{"page":"/"},"startTime":1778495414678,"traceId":"b5ca04c512bd9fc2"},{"name":"is-page-static","duration":541668,"timestamp":123928883119,"id":100,"parentId":57,"tags":{},"startTime":1778495414708,"traceId":"b5ca04c512bd9fc2"},{"name":"check-page","duration":570525,"timestamp":123928854305,"id":57,"parentId":19,"tags":{"page":"/settings"},"startTime":1778495414679,"traceId":"b5ca04c512bd9fc2"},{"name":"static-check","duration":587460,"timestamp":123928837410,"id":19,"parentId":1,"tags":{},"startTime":1778495414662,"traceId":"b5ca04c512bd9fc2"},{"name":"write-routes-manifest","duration":481,"timestamp":123929431962,"id":102,"parentId":1,"tags":{},"startTime":1778495415257,"traceId":"b5ca04c512bd9fc2"},{"name":"load-dotenv","duration":60,"timestamp":123929445093,"id":105,"parentId":104,"tags":{},"startTime":1778495415270,"traceId":"b5ca04c512bd9fc2"},{"name":"run-export-path-map","duration":872,"timestamp":123929448088,"id":106,"parentId":104,"tags":{},"startTime":1778495415273,"traceId":"b5ca04c512bd9fc2"},{"name":"next-export","duration":560672,"timestamp":123929443729,"id":104,"parentId":1,"tags":{},"startTime":1778495415268,"traceId":"b5ca04c512bd9fc2"},{"name":"move-exported-app-not-found-","duration":1163,"timestamp":123930007662,"id":107,"parentId":103,"tags":{},"startTime":1778495415832,"traceId":"b5ca04c512bd9fc2"},{"name":"move-exported-app-global-error-","duration":532,"timestamp":123930008951,"id":108,"parentId":103,"tags":{},"startTime":1778495415834,"traceId":"b5ca04c512bd9fc2"}]
2
- [{"name":"static-generation","duration":575898,"timestamp":123929437816,"id":103,"parentId":1,"tags":{},"startTime":1778495415263,"traceId":"b5ca04c512bd9fc2"},{"name":"write-routes-manifest","duration":457,"timestamp":123930013878,"id":109,"parentId":1,"tags":{},"startTime":1778495415839,"traceId":"b5ca04c512bd9fc2"},{"name":"print-tree-view","duration":5024,"timestamp":123930022851,"id":110,"parentId":1,"tags":{},"startTime":1778495415848,"traceId":"b5ca04c512bd9fc2"},{"name":"write-route-bundle-stats","duration":14146,"timestamp":123930027919,"id":111,"parentId":1,"tags":{},"startTime":1778495415853,"traceId":"b5ca04c512bd9fc2"},{"name":"telemetry-flush","duration":26761,"timestamp":123930042100,"id":112,"parentId":1,"tags":{},"startTime":1778495415867,"traceId":"b5ca04c512bd9fc2"},{"name":"next-build","duration":17089036,"timestamp":123912979868,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778495398805,"traceId":"b5ca04c512bd9fc2"}]
1
+ [{"name":"generate-buildid","duration":289,"timestamp":129923618407,"id":4,"parentId":1,"tags":{},"startTime":1778501409443,"traceId":"e4d7f7a854d58f64"},{"name":"load-custom-routes","duration":493,"timestamp":129923618864,"id":5,"parentId":1,"tags":{},"startTime":1778501409444,"traceId":"e4d7f7a854d58f64"},{"name":"create-dist-dir","duration":4011,"timestamp":129923619418,"id":6,"parentId":1,"tags":{},"startTime":1778501409444,"traceId":"e4d7f7a854d58f64"},{"name":"clean","duration":52118,"timestamp":129923624184,"id":7,"parentId":1,"tags":{},"startTime":1778501409449,"traceId":"e4d7f7a854d58f64"},{"name":"discover-routes","duration":7896,"timestamp":129923758766,"id":8,"parentId":1,"tags":{},"startTime":1778501409583,"traceId":"e4d7f7a854d58f64"},{"name":"create-root-mapping","duration":116,"timestamp":129923766730,"id":9,"parentId":1,"tags":{},"startTime":1778501409591,"traceId":"e4d7f7a854d58f64"},{"name":"generate-route-types","duration":23494,"timestamp":129923769156,"id":10,"parentId":1,"tags":{},"startTime":1778501409594,"traceId":"e4d7f7a854d58f64"},{"name":"public-dir-conflict-check","duration":103,"timestamp":129923792747,"id":11,"parentId":1,"tags":{},"startTime":1778501409617,"traceId":"e4d7f7a854d58f64"},{"name":"generate-routes-manifest","duration":4536,"timestamp":129923792977,"id":12,"parentId":1,"tags":{},"startTime":1778501409618,"traceId":"e4d7f7a854d58f64"},{"name":"run-turbopack","duration":9205148,"timestamp":129923822959,"id":14,"parentId":1,"tags":{},"startTime":1778501409648,"traceId":"e4d7f7a854d58f64"},{"name":"turbopack-build-events","duration":79,"timestamp":129924124420,"id":15,"parentId":1,"tags":{},"startTime":1778501409949,"traceId":"e4d7f7a854d58f64"},{"name":"run-typescript","duration":12882350,"timestamp":129933035324,"id":16,"parentId":1,"tags":{},"startTime":1778501418860,"traceId":"e4d7f7a854d58f64"},{"name":"generate-required-server-files","duration":2777,"timestamp":129945918751,"id":18,"parentId":1,"tags":{},"startTime":1778501431743,"traceId":"e4d7f7a854d58f64"},{"name":"check-static-error-page","duration":19685,"timestamp":129946013986,"id":20,"parentId":19,"tags":{},"startTime":1778501431839,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":309175,"timestamp":129946035903,"id":62,"parentId":22,"tags":{},"startTime":1778501431861,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":328827,"timestamp":129946016371,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778501431841,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":402504,"timestamp":129946037688,"id":64,"parentId":26,"tags":{},"startTime":1778501431862,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":415078,"timestamp":129946025201,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778501431850,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":418764,"timestamp":129946037465,"id":63,"parentId":25,"tags":{},"startTime":1778501431862,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":433369,"timestamp":129946022947,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778501431848,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":422712,"timestamp":129946037738,"id":65,"parentId":27,"tags":{},"startTime":1778501431862,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":435203,"timestamp":129946025315,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778501431850,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":431209,"timestamp":129946037776,"id":66,"parentId":28,"tags":{},"startTime":1778501431862,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":443658,"timestamp":129946025414,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778501431850,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":431393,"timestamp":129946037813,"id":67,"parentId":29,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":443737,"timestamp":129946025495,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778501431850,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":436535,"timestamp":129946035574,"id":61,"parentId":21,"tags":{},"startTime":1778501431860,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":457011,"timestamp":129946015154,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778501431840,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":441671,"timestamp":129946037848,"id":68,"parentId":30,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":454012,"timestamp":129946025696,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778501431850,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":442811,"timestamp":129946037881,"id":69,"parentId":32,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":454693,"timestamp":129946026046,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778501431851,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":447238,"timestamp":129946038112,"id":72,"parentId":35,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":457395,"timestamp":129946028024,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778501431853,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":449615,"timestamp":129946038173,"id":73,"parentId":36,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":459376,"timestamp":129946028460,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778501431853,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":450664,"timestamp":129946038091,"id":71,"parentId":34,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":462571,"timestamp":129946026228,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778501431851,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":453930,"timestamp":129946038191,"id":74,"parentId":37,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":463579,"timestamp":129946028601,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778501431853,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":454843,"timestamp":129946038199,"id":75,"parentId":38,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":464383,"timestamp":129946028701,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778501431853,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":455821,"timestamp":129946038205,"id":76,"parentId":39,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":465294,"timestamp":129946028769,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778501431853,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":460893,"timestamp":129946038212,"id":77,"parentId":40,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":470325,"timestamp":129946028841,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778501431854,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":463555,"timestamp":129946038217,"id":78,"parentId":41,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":472970,"timestamp":129946028906,"id":41,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778501431854,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":463814,"timestamp":129946038223,"id":79,"parentId":42,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":473099,"timestamp":129946028966,"id":42,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778501431854,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":465943,"timestamp":129946038229,"id":80,"parentId":43,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":475129,"timestamp":129946029082,"id":43,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778501431854,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":472494,"timestamp":129946038239,"id":82,"parentId":45,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":481559,"timestamp":129946029225,"id":45,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778501431854,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":472760,"timestamp":129946038234,"id":81,"parentId":44,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":481870,"timestamp":129946029166,"id":44,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778501431854,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":477106,"timestamp":129946038249,"id":84,"parentId":47,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":485974,"timestamp":129946029444,"id":47,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778501431854,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":479361,"timestamp":129946038244,"id":83,"parentId":46,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":488301,"timestamp":129946029345,"id":46,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778501431854,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":481918,"timestamp":129946038280,"id":85,"parentId":48,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":490733,"timestamp":129946029515,"id":48,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778501431854,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":482393,"timestamp":129946037982,"id":70,"parentId":33,"tags":{},"startTime":1778501431863,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":494262,"timestamp":129946026147,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778501431851,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":480096,"timestamp":129946041953,"id":87,"parentId":31,"tags":{},"startTime":1778501431867,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":496289,"timestamp":129946025796,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778501431850,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":482118,"timestamp":129946040441,"id":86,"parentId":24,"tags":{},"startTime":1778501431865,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":504272,"timestamp":129946018318,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778501431843,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":491202,"timestamp":129946050792,"id":88,"parentId":23,"tags":{},"startTime":1778501431875,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":523958,"timestamp":129946018107,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778501431843,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":496615,"timestamp":129946050843,"id":91,"parentId":51,"tags":{},"startTime":1778501431876,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":517398,"timestamp":129946030117,"id":51,"parentId":19,"tags":{"page":"/messages"},"startTime":1778501431855,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":503394,"timestamp":129946050854,"id":92,"parentId":52,"tags":{},"startTime":1778501431876,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":524031,"timestamp":129946030286,"id":52,"parentId":19,"tags":{"page":"/node"},"startTime":1778501431855,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":509106,"timestamp":129946050860,"id":93,"parentId":53,"tags":{},"startTime":1778501431876,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":529572,"timestamp":129946030471,"id":53,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778501431855,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":514969,"timestamp":129946050868,"id":94,"parentId":55,"tags":{},"startTime":1778501431876,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":534833,"timestamp":129946031070,"id":55,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778501431856,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":516248,"timestamp":129946050827,"id":89,"parentId":49,"tags":{},"startTime":1778501431876,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":537293,"timestamp":129946029841,"id":49,"parentId":19,"tags":{"page":"/login"},"startTime":1778501431855,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":516429,"timestamp":129946050837,"id":90,"parentId":50,"tags":{},"startTime":1778501431876,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":537351,"timestamp":129946029969,"id":50,"parentId":19,"tags":{"page":"/logs"},"startTime":1778501431855,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":520613,"timestamp":129946050877,"id":95,"parentId":56,"tags":{},"startTime":1778501431876,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":540267,"timestamp":129946031269,"id":56,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778501431856,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":521698,"timestamp":129946050883,"id":96,"parentId":58,"tags":{},"startTime":1778501431876,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":540864,"timestamp":129946031761,"id":58,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778501431856,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":527007,"timestamp":129946050908,"id":99,"parentId":57,"tags":{},"startTime":1778501431876,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":546517,"timestamp":129946031452,"id":57,"parentId":19,"tags":{"page":"/settings"},"startTime":1778501431856,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":530231,"timestamp":129946050900,"id":98,"parentId":60,"tags":{},"startTime":1778501431876,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":547838,"timestamp":129946033344,"id":60,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778501431858,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":532876,"timestamp":129946050891,"id":97,"parentId":59,"tags":{},"startTime":1778501431876,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":551950,"timestamp":129946031886,"id":59,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778501431857,"traceId":"e4d7f7a854d58f64"},{"name":"is-page-static","duration":521244,"timestamp":129946062680,"id":100,"parentId":54,"tags":{},"startTime":1778501431887,"traceId":"e4d7f7a854d58f64"},{"name":"check-page","duration":553332,"timestamp":129946030616,"id":54,"parentId":19,"tags":{"page":"/"},"startTime":1778501431855,"traceId":"e4d7f7a854d58f64"},{"name":"static-check","duration":570816,"timestamp":129946013163,"id":19,"parentId":1,"tags":{},"startTime":1778501431838,"traceId":"e4d7f7a854d58f64"},{"name":"write-routes-manifest","duration":401,"timestamp":129946594294,"id":102,"parentId":1,"tags":{},"startTime":1778501432419,"traceId":"e4d7f7a854d58f64"},{"name":"load-dotenv","duration":53,"timestamp":129946605102,"id":105,"parentId":104,"tags":{},"startTime":1778501432430,"traceId":"e4d7f7a854d58f64"},{"name":"run-export-path-map","duration":574,"timestamp":129946608834,"id":106,"parentId":104,"tags":{},"startTime":1778501432434,"traceId":"e4d7f7a854d58f64"},{"name":"next-export","duration":570198,"timestamp":129946603880,"id":104,"parentId":1,"tags":{},"startTime":1778501432429,"traceId":"e4d7f7a854d58f64"},{"name":"move-exported-app-not-found-","duration":918,"timestamp":129947177373,"id":107,"parentId":103,"tags":{},"startTime":1778501433002,"traceId":"e4d7f7a854d58f64"},{"name":"move-exported-app-global-error-","duration":744,"timestamp":129947178420,"id":108,"parentId":103,"tags":{},"startTime":1778501433003,"traceId":"e4d7f7a854d58f64"}]
2
+ [{"name":"static-generation","duration":585768,"timestamp":129946598430,"id":103,"parentId":1,"tags":{},"startTime":1778501432423,"traceId":"e4d7f7a854d58f64"},{"name":"write-routes-manifest","duration":563,"timestamp":129947184381,"id":109,"parentId":1,"tags":{},"startTime":1778501433009,"traceId":"e4d7f7a854d58f64"},{"name":"print-tree-view","duration":4198,"timestamp":129947193920,"id":110,"parentId":1,"tags":{},"startTime":1778501433019,"traceId":"e4d7f7a854d58f64"},{"name":"write-route-bundle-stats","duration":13559,"timestamp":129947198171,"id":111,"parentId":1,"tags":{},"startTime":1778501433023,"traceId":"e4d7f7a854d58f64"},{"name":"telemetry-flush","duration":39979,"timestamp":129947211770,"id":112,"parentId":1,"tags":{},"startTime":1778501433036,"traceId":"e4d7f7a854d58f64"},{"name":"next-build","duration":23681185,"timestamp":129923570603,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778501409395,"traceId":"e4d7f7a854d58f64"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":8258064,"timestamp":123913167629,"id":14,"parentId":1,"tags":{},"startTime":1778495398992,"traceId":"b5ca04c512bd9fc2"},{"name":"turbopack-build-events","duration":77,"timestamp":123913452528,"id":15,"parentId":1,"tags":{},"startTime":1778495399277,"traceId":"b5ca04c512bd9fc2"},{"name":"run-typescript","duration":7315407,"timestamp":123921434560,"id":16,"parentId":1,"tags":{},"startTime":1778495407259,"traceId":"b5ca04c512bd9fc2"},{"name":"static-check","duration":587460,"timestamp":123928837410,"id":19,"parentId":1,"tags":{},"startTime":1778495414662,"traceId":"b5ca04c512bd9fc2"},{"name":"static-generation","duration":575898,"timestamp":123929437816,"id":103,"parentId":1,"tags":{},"startTime":1778495415263,"traceId":"b5ca04c512bd9fc2"},{"name":"telemetry-flush","duration":26761,"timestamp":123930042100,"id":112,"parentId":1,"tags":{},"startTime":1778495415867,"traceId":"b5ca04c512bd9fc2"},{"name":"next-build","duration":17089036,"timestamp":123912979868,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778495398805,"traceId":"b5ca04c512bd9fc2"}]
1
+ [{"name":"run-turbopack","duration":9205148,"timestamp":129923822959,"id":14,"parentId":1,"tags":{},"startTime":1778501409648,"traceId":"e4d7f7a854d58f64"},{"name":"turbopack-build-events","duration":79,"timestamp":129924124420,"id":15,"parentId":1,"tags":{},"startTime":1778501409949,"traceId":"e4d7f7a854d58f64"},{"name":"run-typescript","duration":12882350,"timestamp":129933035324,"id":16,"parentId":1,"tags":{},"startTime":1778501418860,"traceId":"e4d7f7a854d58f64"},{"name":"static-check","duration":570816,"timestamp":129946013163,"id":19,"parentId":1,"tags":{},"startTime":1778501431838,"traceId":"e4d7f7a854d58f64"},{"name":"static-generation","duration":585768,"timestamp":129946598430,"id":103,"parentId":1,"tags":{},"startTime":1778501432423,"traceId":"e4d7f7a854d58f64"},{"name":"telemetry-flush","duration":39979,"timestamp":129947211770,"id":112,"parentId":1,"tags":{},"startTime":1778501433036,"traceId":"e4d7f7a854d58f64"},{"name":"next-build","duration":23681185,"timestamp":129923570603,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778501409395,"traceId":"e4d7f7a854d58f64"}]
@@ -1,7 +1,6 @@
1
1
  import { requireDashboardAuth, getV3UserToken } from '@/app/lib/dashboard-auth';
2
2
 
3
3
  const HUB_URL = process.env.COMMHUB_URL || 'http://127.0.0.1:9200';
4
- const AUTH_TOKEN = process.env.COMMHUB_AUTH_TOKEN || '';
5
4
 
6
5
  /**
7
6
  * SSE proxy: forwards CommHub /events/<alias> to the browser.
@@ -18,9 +17,8 @@ export async function GET(req: Request) {
18
17
  if (authFailure) return authFailure;
19
18
 
20
19
  const userToken = await getV3UserToken();
21
- const bearer = userToken || AUTH_TOKEN;
22
20
  const headers: Record<string, string> = {};
23
- if (bearer) headers['Authorization'] = `Bearer ${bearer}`;
21
+ if (userToken) headers['Authorization'] = `Bearer ${userToken}`;
24
22
 
25
23
  // Resolve the SSE channel name: explicit ?alias= wins; otherwise look up
26
24
  // the user's username from /api/auth/me so we subscribe to the channel
@@ -77,9 +75,8 @@ export async function HEAD(req: Request) {
77
75
  // Opening /events/:session keeps an upstream connection hanging, which
78
76
  // exhausts the browser's HTTP/1.1 connection pool and blocks RSC fetches.
79
77
  const userToken = await getV3UserToken();
80
- const bearer = userToken || AUTH_TOKEN;
81
78
  const headers: Record<string, string> = {};
82
- if (bearer) headers['Authorization'] = `Bearer ${bearer}`;
79
+ if (userToken) headers['Authorization'] = `Bearer ${userToken}`;
83
80
 
84
81
  const controller = new AbortController();
85
82
  const timeout = setTimeout(() => controller.abort(), 3000);
@@ -1,13 +1,11 @@
1
1
  import { requireDashboardAuth, getV3UserToken } from '@/app/lib/dashboard-auth';
2
2
 
3
3
  const HUB_URL = process.env.COMMHUB_URL || 'http://127.0.0.1:9200';
4
- const AUTH_TOKEN = process.env.COMMHUB_AUTH_TOKEN || '';
5
4
 
6
5
  async function hubHeaders(): Promise<Record<string, string>> {
7
6
  const userToken = await getV3UserToken();
8
- const bearer = userToken || AUTH_TOKEN;
9
7
  const h: Record<string, string> = {};
10
- if (bearer) h['Authorization'] = `Bearer ${bearer}`;
8
+ if (userToken) h['Authorization'] = `Bearer ${userToken}`;
11
9
  return h;
12
10
  }
13
11
 
@@ -2,7 +2,6 @@ import { requireDashboardAuth, getV3UserToken } from '@/app/lib/dashboard-auth';
2
2
  import { hubFetch } from '@/app/lib/hub';
3
3
 
4
4
  const HUB_URL = process.env.COMMHUB_URL || 'http://127.0.0.1:9200';
5
- const AUTH_TOKEN = process.env.COMMHUB_AUTH_TOKEN || '';
6
5
 
7
6
  export async function POST(req: Request) {
8
7
  const authFailure = await requireDashboardAuth();
@@ -24,13 +23,9 @@ export async function POST(req: Request) {
24
23
  }
25
24
  } catch {}
26
25
 
27
- // Prefer logged-in user's utok_ (V3); fall back to global AUTH_TOKEN.
28
- // The server now accepts utok_ on /mcp (preview.34+) so Dashboard tasks
29
- // route through the user's own auth without needing a global token env.
30
26
  const userToken = await getV3UserToken();
31
- const bearer = userToken || AUTH_TOKEN;
32
27
  const headers: Record<string, string> = { 'Content-Type': 'application/json', 'Accept': 'application/json, text/event-stream' };
33
- if (bearer) headers['Authorization'] = `Bearer ${bearer}`;
28
+ if (userToken) headers['Authorization'] = `Bearer ${userToken}`;
34
29
  const res = await fetch(`${HUB_URL}/mcp`, {
35
30
  method: 'POST',
36
31
  headers,