@sleep2agi/agent-network-dashboard 0.4.5-preview.8 → 0.4.5-preview.9
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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +2 -2
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/admin.html +1 -1
- package/.next/server/app/admin.rsc +1 -1
- package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +1 -1
- package/.next/server/app/login.segments/_full.segment.rsc +1 -1
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +1 -1
- package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/.next/server/app/logs.html +1 -1
- package/.next/server/app/logs.rsc +1 -1
- package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
- package/.next/server/app/messages.html +1 -1
- package/.next/server/app/messages.rsc +1 -1
- package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
- package/.next/server/app/node.html +1 -1
- package/.next/server/app/node.rsc +1 -1
- package/.next/server/app/node.segments/_full.segment.rsc +1 -1
- package/.next/server/app/node.segments/_head.segment.rsc +1 -1
- package/.next/server/app/node.segments/_index.segment.rsc +1 -1
- package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/node.segments/node.segment.rsc +1 -1
- package/.next/server/app/nodes.html +1 -1
- package/.next/server/app/nodes.rsc +1 -1
- package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs.html +1 -1
- package/.next/server/app/server-logs.rsc +1 -1
- package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
- package/.next/server/app/settings/networks.html +1 -1
- package/.next/server/app/settings/networks.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.html +1 -1
- package/.next/server/app/settings/tokens.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings.html +1 -1
- package/.next/server/app/settings.rsc +1 -1
- package/.next/server/app/settings.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/.next/server/app/tasks.html +1 -1
- package/.next/server/app/tasks.rsc +1 -1
- package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
- package/.next/server/chunks/ssr/app_page_tsx_0es_sk2._.js +1 -1
- package/.next/server/chunks/ssr/app_page_tsx_0es_sk2._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/0-.hjh--kcdiy.js +1 -0
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +16 -3
- package/package.json +1 -1
- package/.next/static/chunks/0sgvs~8hw4df0.js +0 -1
- /package/.next/static/{LQ5MjOWd5QM3a72laNr_D → stSZtBF9uGYc3L399m0h1}/_buildManifest.js +0 -0
- /package/.next/static/{LQ5MjOWd5QM3a72laNr_D → stSZtBF9uGYc3L399m0h1}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{LQ5MjOWd5QM3a72laNr_D → stSZtBF9uGYc3L399m0h1}/_ssgManifest.js +0 -0
|
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
|
|
|
7
7
|
"static/chunks/03~yq9q893hmn.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
10
|
+
"static/stSZtBF9uGYc3L399m0h1/_buildManifest.js",
|
|
11
|
+
"static/stSZtBF9uGYc3L399m0h1/_ssgManifest.js",
|
|
12
|
+
"static/stSZtBF9uGYc3L399m0h1/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/0e-.zgw81gela.js",
|
|
@@ -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
|
-
"><a class="block px-4 py-4 flex items-center gap-3 hover:bg-[#11112a]/40 transition-colors rounded-r-xl" aria-label="Agent Network — home" href="/"><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true" class="shrink-0"><circle cx="16" cy="16" r="10" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.2" class="text-cyan-400"></circle><line x1="16" y1="10" x2="10" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><line x1="16" y1="10" x2="22" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><line x1="10" y1="20" x2="22" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><circle cx="16" cy="10" r="2.5" fill="currentColor" class="text-cyan-400"></circle><circle cx="10" cy="20" r="2.5" fill="currentColor" class="text-green-400"></circle><circle cx="22" cy="20" r="2.5" fill="currentColor" class="text-violet-400"></circle></svg><div class="min-w-0"><div class="text-white text-[13px] font-semibold leading-tight">Agent Network</div><div class="text-[10px] text-gray-500 flex items-center gap-1.5 mt-0.5"><span class="inline-block w-1.5 h-1.5 rounded-full bg-gray-600" aria-hidden="true"></span><span>waiting for agents</span></div></div></a><div class="border-b border-[#2a2a4a]"></div><div class="pb-20"><nav class="flex flex-col gap-1 px-2 py-4"><a class="relative 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="relative 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="relative 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="relative 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="relative 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="relative 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="relative 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="relative 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="relative 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><button class="w-full flex items-center justify-between gap-2 px-5 py-2 text-[11px] text-gray-600 hover:text-gray-400 hover:bg-[#1a1a2a] transition-colors" aria-label="Open command palette"><span class="flex items-center gap-2"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>Quick search</span><kbd class="text-[10px] border border-current rounded px-1 py-0.5 opacity-60 font-mono">⌘K</kbd></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 flex flex-col"><div class="flex-1 min-w-0"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></div></main></div><script src="/_next/static/chunks/0e-.zgw81gela.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/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"ThemeProvider\"]\n3:I[58963,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"NetworkProvider\"]\n4:I[25045,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"AppShell\"]\n5:I[39756,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"default\"]\n6:I[37457,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"default\"]\n7:I[97367,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\nb:I[97367,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"ViewportBoundary\"]\nd:I[97367,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"MetadataBoundary\"]\nf:I[68027,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/0msa~bub38ytf.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/0msa~bub38ytf.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/10ir.g.n~hre0.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/14bsg3_-taiw4.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/0w1zwt8kq_7nb.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/0msa~bub38ytf.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"LQ5MjOWd5QM3a72laNr_D\"}\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/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.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
|
+
"><a class="block px-4 py-4 flex items-center gap-3 hover:bg-[#11112a]/40 transition-colors rounded-r-xl" aria-label="Agent Network — home" href="/"><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true" class="shrink-0"><circle cx="16" cy="16" r="10" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.2" class="text-cyan-400"></circle><line x1="16" y1="10" x2="10" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><line x1="16" y1="10" x2="22" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><line x1="10" y1="20" x2="22" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><circle cx="16" cy="10" r="2.5" fill="currentColor" class="text-cyan-400"></circle><circle cx="10" cy="20" r="2.5" fill="currentColor" class="text-green-400"></circle><circle cx="22" cy="20" r="2.5" fill="currentColor" class="text-violet-400"></circle></svg><div class="min-w-0"><div class="text-white text-[13px] font-semibold leading-tight">Agent Network</div><div class="text-[10px] text-gray-500 flex items-center gap-1.5 mt-0.5"><span class="inline-block w-1.5 h-1.5 rounded-full bg-gray-600" aria-hidden="true"></span><span>waiting for agents</span></div></div></a><div class="border-b border-[#2a2a4a]"></div><div class="pb-20"><nav class="flex flex-col gap-1 px-2 py-4"><a class="relative 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="relative 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="relative 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="relative 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="relative 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="relative 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="relative 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="relative 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="relative 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><button class="w-full flex items-center justify-between gap-2 px-5 py-2 text-[11px] text-gray-600 hover:text-gray-400 hover:bg-[#1a1a2a] transition-colors" aria-label="Open command palette"><span class="flex items-center gap-2"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>Quick search</span><kbd class="text-[10px] border border-current rounded px-1 py-0.5 opacity-60 font-mono">⌘K</kbd></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 flex flex-col"><div class="flex-1 min-w-0"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></div></main></div><script src="/_next/static/chunks/0e-.zgw81gela.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/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"ThemeProvider\"]\n3:I[58963,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"NetworkProvider\"]\n4:I[25045,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"AppShell\"]\n5:I[39756,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"default\"]\n6:I[37457,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"default\"]\n7:I[97367,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\nb:I[97367,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"ViewportBoundary\"]\nd:I[97367,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"MetadataBoundary\"]\nf:I[68027,[\"/_next/static/chunks/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/0msa~bub38ytf.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/0msa~bub38ytf.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/10ir.g.n~hre0.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/14bsg3_-taiw4.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/0w1zwt8kq_7nb.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/0msa~bub38ytf.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"stSZtBF9uGYc3L399m0h1\"}\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/10ir.g.n~hre0.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\",\"/_next/static/chunks/0w1zwt8kq_7nb.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/0e-.zgw81gela.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/0257pdz1-imal.js" async=""></script><script src="/_next/static/chunks/turbopack-01f1xs~cq_~si.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,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";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/0e-.zgw81gela.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\":\"
|
|
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/0e-.zgw81gela.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/0257pdz1-imal.js" async=""></script><script src="/_next/static/chunks/turbopack-01f1xs~cq_~si.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,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";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/0e-.zgw81gela.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\":\"stSZtBF9uGYc3L399m0h1\"}\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
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"goX3hhpm3v3AYKwB3qNXLnKDmoYaiakh0c6+6TKjFGU=\"\n}"
|
|
@@ -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),a=e.i(18050),s=e.i(71645),r=e.i(22016),l=e.i(18150);function n({online:e,working:t,total:s,version:r,uptime:l}){let i=s>0?Math.round(e/s*100):0;return(0,a.jsxs)("div",{className:"mb-8",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[(0,a.jsx)("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Agent Network"}),(0,a.jsxs)("span",{className:"text-xs text-gray-500",children:["CommHub ",r," · ",l]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[(0,a.jsx)(o,{value:e,label:"Online",sub:`${i}% of fleet`,color:"text-green-400",accent:"from-green-500/20 to-green-500/0",border:"border-green-500/15"}),(0,a.jsx)(o,{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,a.jsx)(o,{value:s-e,label:"Offline",sub:s-e==0?"All systems go":`${s-e} disconnected`,color:"text-gray-400",accent:"from-gray-500/10 to-gray-500/0",border:"border-gray-500/15"}),(0,a.jsx)(o,{value:s,label:"Total",sub:"Registered nodes",color:"text-white",accent:"from-blue-500/15 to-blue-500/0",border:"border-blue-500/15"})]})]})}function o({value:e,label:t,sub:s,color:r,accent:l,border:n}){let i=r.replace("text-","").split("-")[0];return(0,a.jsxs)("div",{"data-anet-stat-card":i,className:`anet-stat-card relative overflow-hidden rounded-xl border ${n} bg-[#111128] px-4 py-3 transition-all`,children:[(0,a.jsx)("div",{className:`absolute inset-0 bg-gradient-to-br ${l} pointer-events-none`}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:`text-3xl font-bold ${r} tabular-nums leading-tight`,children:e}),(0,a.jsx)("div",{className:"text-sm text-gray-300 mt-0.5",children:t}),(0,a.jsx)("div",{className:"text-xs text-gray-600 mt-1",children:s})]})]})}function i(){let[e,t]=(0,s.useState)(""),[r,l]=(0,s.useState)(!1),[n,o]=(0,s.useState)(""),i=async()=>{if(e.trim()){l(!0),o("");try{let a=await fetch("/api/hub/broadcast",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e})}),s=await a.json();s.ok?(o(`Broadcast sent to ${s.recipients} node(s)`),t("")):o(`Failed: ${s.error||"Send error"}`)}catch(e){o(`Failed: ${e instanceof Error?e.message:"Send error"}`)}l(!1),setTimeout(()=>o(""),5e3)}};return(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("input",{type:"text",value:e,onChange:e=>t(e.target.value),onKeyDown:e=>"Enter"===e.key&&i(),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,a.jsx)("button",{onClick:i,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,a.jsxs)("div",{className:"text-right text-xs text-gray-600 mt-1",children:[e.length,"/500"]}),n&&(0,a.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,a,s=0){let r=t<=2?Math.PI:1.78*Math.PI,l=-Math.PI/2-r/2,n=t<=1?-Math.PI/2:l+r*e/(t-1)+s;return{x:500+a*Math.cos(n),y:330+a*Math.sin(n)}}function c(e,t,a=0){let s=(e.x+t.x)/2,r=(e.y+t.y)/2,l=t.x-e.x,n=t.y-e.y,o=Math.hypot(l,n)||1,i={x:s+-n/o*a,y:r+l/o*a};return`M${e.x},${e.y} Q${i.x},${i.y} ${t.x},${t.y}`}function x(e,t){return e.length>t?`${e.slice(0,t-1)}...`:e}let h={panelStops:["#0b1220","#080814","#101018"],radarStops:[{color:"#22d3ee",opacity:.18},{color:"#22c55e",opacity:.045},{color:"#020617",opacity:0}],arrowFill:"#67e8f9",ringStroke:"#164e63",spokeStroke:{active:"#22d3ee",idle:"#155e75"},flowEdge:"#67e8f9",flowPath:"#e0f2fe",flowParticle:"#fef08a",nodeFill:{online:"#020617",offline:"#080814"},labelBox:{fill:"#020617",stroke:"#1f2937"},legendBox:{fill:"#020617",stroke:"#1f2937"},legendText:"#94a3b8",legendHeadline:"#e5e7eb",legendAccent:"#67e8f9",containerBg:"#080814",containerBorder:"#2a2a4a",topRailGradient:"from-transparent via-cyan-400/70 to-transparent"},m={panelStops:["#f8fafc","#ffffff","#f1f5f9"],radarStops:[{color:"#10b981",opacity:.06},{color:"#3b82f6",opacity:.03},{color:"#ffffff",opacity:0}],arrowFill:"#10b981",ringStroke:"#cbd5e1",spokeStroke:{active:"#10b981",idle:"#cbd5e1"},flowEdge:"#10b981",flowPath:"#475569",flowParticle:"#f59e0b",nodeFill:{online:"#ffffff",offline:"#f8fafc"},labelBox:{fill:"#ffffff",stroke:"#e2e8f0"},legendBox:{fill:"#ffffff",stroke:"#e2e8f0"},legendText:"#475569",legendHeadline:"#0f172a",legendAccent:"#0d9488",containerBg:"#ffffff",containerBorder:"#e3e6eb",topRailGradient:"from-transparent via-emerald-500/40 to-transparent"};function f({sessions:e,sseSessions:t}){let r="light"===function(){let[e,t]=(0,s.useState)("dark");return(0,s.useEffect)(()=>{let e=()=>{let e=document.documentElement.getAttribute("data-theme")||"cyber";t("light"===e||"mint"===e?"light":"dark")};e();let a=new MutationObserver(e);return a.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>a.disconnect()},[]),e}(),l=r?m:h,[n,o]=(0,s.useState)([]);(0,s.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();o(t.messages||[])}catch{}};e();let t=setInterval(e,5e3);return()=>clearInterval(t)},[]);let{onlineNodes:i,offlineNodes:g,nodePositions:u,flowLinks:p,activeAliases:b}=(0,s.useMemo)(()=>{let a,s=e=>(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],r=e.filter(e=>"offline"!==e.status||s(e)),l=e.filter(e=>"offline"===e.status&&!s(e)),o={};r.forEach((e,t)=>{o[e.alias]=d(t,Math.max(r.length,1),220)});let i=r.length<=2?Math.PI:1.78*Math.PI,c=r.length>1?i/(r.length-1):0,x=r.length>0?c/2:0,h=315+6*Math.max(0,l.length-4);l.forEach((e,t)=>{o[e.alias]=d(t,Math.max(l.length,1),h,x)});let m=(a=new Map,n.forEach(e=>{if(!o[e.from_alias]||!o[e.to_alias]||e.from_alias===e.to_alias)return;let t=`${e.from_alias}->${e.to_alias}`,s=a.get(t);a.set(t,{key:t,from:e.from_alias,to:e.to_alias,count:(s?.count||0)+1,content:s?.content||e.content})}),[...a.values()].slice(0,18)),f=new Set;return m.forEach(e=>{f.add(e.from),f.add(e.to)}),{onlineNodes:r,offlineNodes:l,nodePositions:o,flowLinks:m,activeAliases:f}},[n,e,t]),y=i.filter(e=>"working"===e.status).length;return(0,a.jsxs)("section",{className:"w-full max-w-6xl mx-auto mb-8",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between mb-3 px-1",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-xs uppercase text-gray-600 tracking-wider",children:"Network Topology"}),(0,a.jsx)("h2",{className:"text-lg text-white font-semibold",children:"Command mesh"})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2 text-xs",children:[(0,a.jsxs)("span",{className:"px-2.5 py-1 rounded-md bg-green-500/10 text-green-300 border border-green-500/20",children:[y," working"]}),(0,a.jsxs)("span",{className:"px-2.5 py-1 rounded-md bg-cyan-500/10 text-cyan-300 border border-cyan-500/20",children:[i.length," online"]}),(0,a.jsxs)("span",{className:"px-2.5 py-1 rounded-md bg-gray-500/10 text-gray-400 border border-gray-500/20",children:[p.length," active links"]})]})]}),(0,a.jsxs)("div",{className:`relative overflow-hidden rounded-lg border shadow-2xl ${r?"shadow-zinc-900/5":"shadow-cyan-950/30"}`,style:{background:l.containerBg,borderColor:l.containerBorder},children:[(0,a.jsx)("div",{className:`absolute inset-x-0 top-0 h-px bg-gradient-to-r ${l.topRailGradient}`}),(0,a.jsxs)("svg",{viewBox:"0 0 1000 680",className:"w-full h-auto block",preserveAspectRatio:"xMidYMid meet",children:[(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:"topo-panel",x1:"0",x2:"1",y1:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:l.panelStops[0]}),(0,a.jsx)("stop",{offset:"48%",stopColor:l.panelStops[1]}),(0,a.jsx)("stop",{offset:"100%",stopColor:l.panelStops[2]})]}),(0,a.jsxs)("radialGradient",{id:"topo-radar",cx:"50%",cy:"50%",r:"55%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:l.radarStops[0].color,stopOpacity:l.radarStops[0].opacity}),(0,a.jsx)("stop",{offset:"45%",stopColor:l.radarStops[1].color,stopOpacity:l.radarStops[1].opacity}),(0,a.jsx)("stop",{offset:"100%",stopColor:l.radarStops[2].color,stopOpacity:l.radarStops[2].opacity})]}),!r&&(0,a.jsxs)("filter",{id:"topo-glow",children:[(0,a.jsx)("feGaussianBlur",{stdDeviation:"4",result:"blur"}),(0,a.jsxs)("feMerge",{children:[(0,a.jsx)("feMergeNode",{in:"blur"}),(0,a.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,a.jsx)("marker",{id:"topo-arrow",viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"5",markerHeight:"5",orient:"auto-start-reverse",children:(0,a.jsx)("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:l.arrowFill})})]}),(0,a.jsx)("rect",{width:"1000",height:"680",fill:"url(#topo-panel)"}),(0,a.jsx)("circle",{cx:500,cy:330,r:"330",fill:"url(#topo-radar)"}),[90,170,250,330].map(e=>(0,a.jsx)("circle",{cx:500,cy:330,r:e,fill:"none",stroke:l.ringStroke,strokeWidth:"1",opacity:r?.6:.35},e)),[0,30,60,90,120,150].map(e=>(0,a.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:l.ringStroke,strokeWidth:"1",opacity:r?.35:.18},e)),i.map(e=>{let t=u[e.alias];if(!t)return null;let s=c({x:500,y:330},t,0);return(0,a.jsx)("path",{d:s,fill:"none",stroke:b.has(e.alias)?l.spokeStroke.active:l.spokeStroke.idle,strokeWidth:b.has(e.alias)?2:1,strokeDasharray:b.has(e.alias)?"none":"8 10",opacity:b.has(e.alias)?.65:.35},`hub-${e.alias}`)}),p.map((e,t)=>{let s=u[e.from],n=u[e.to];if(!s||!n)return null;let o=c(s,n,t%2==0?36:-36),i=Math.min(2+e.count,7);return(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{d:o,fill:"none",stroke:l.flowEdge,strokeWidth:i,opacity:r?.22:.28,filter:r?void 0:"url(#topo-glow)",markerEnd:"url(#topo-arrow)"}),(0,a.jsx)("path",{id:`flow-path-${t}`,d:o,fill:"none",stroke:l.flowPath,strokeWidth:"1",strokeDasharray:"2 12",opacity:r?.4:.75}),(0,a.jsx)("circle",{r:"4",fill:l.flowParticle,filter:r?void 0:"url(#topo-glow)",children:(0,a.jsx)("animateMotion",{dur:`${2.2+t%5*.32}s`,repeatCount:"indefinite",path:o})})]},e.key)}),(0,a.jsxs)("g",{children:[(0,a.jsxs)("circle",{cx:500,cy:330,r:"6",fill:"none",stroke:"#10b981",strokeWidth:"1.5",children:[(0,a.jsx)("animate",{attributeName:"r",values:"6;28;6",dur:"2.4s",repeatCount:"indefinite"}),(0,a.jsx)("animate",{attributeName:"opacity",values:"0.55;0;0.55",dur:"2.4s",repeatCount:"indefinite"})]}),(0,a.jsxs)("circle",{cx:500,cy:330,r:"6",fill:"none",stroke:"#10b981",strokeWidth:"1.5",opacity:"0",children:[(0,a.jsx)("animate",{attributeName:"r",values:"6;28;6",dur:"2.4s",begin:"1.2s",repeatCount:"indefinite"}),(0,a.jsx)("animate",{attributeName:"opacity",values:"0.45;0;0.45",dur:"2.4s",begin:"1.2s",repeatCount:"indefinite"})]}),(0,a.jsx)("circle",{cx:500,cy:330,r:"6",fill:"#10b981"}),(0,a.jsx)("circle",{cx:500,cy:330,r:"3",fill:"#d1fae5",opacity:"0.9"})]}),[...i,...g].map(e=>{let s=u[e.alias];if(!s)return null;let n=(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],o="offline"!==e.status||!!n,i=o?"working"===e.status?{label:"working",primary:r?"#059669":"#22c55e",halo:r?"#d1fae5":"#14532d",text:r?"#065f46":"#dcfce7"}:"idle"===e.status?{label:"idle",primary:r?"#0d9488":"#2dd4bf",halo:r?"#ccfbf1":"#134e4a",text:r?"#115e59":"#ccfbf1"}:{label:e.status||"online",primary:r?"#0284c7":"#38bdf8",halo:r?"#dbeafe":"#0c4a6e",text:r?"#0c4a6e":"#e0f2fe"}:{label:"offline",primary:r?"#94a3b8":"#6b7280",halo:r?"#e2e8f0":"#111827",text:r?"#475569":"#9ca3af"},d=b.has(e.alias),c=o?26:18;return(0,a.jsxs)("g",{className:"transition-opacity",children:[d&&(0,a.jsxs)("circle",{cx:s.x,cy:s.y,r:c+14,fill:i.primary,opacity:r?.08:.12,children:[(0,a.jsx)("animate",{attributeName:"r",values:`${c+8};${c+22};${c+8}`,dur:"2.4s",repeatCount:"indefinite"}),(0,a.jsx)("animate",{attributeName:"opacity",values:r?"0.12;0.02;0.12":"0.18;0.04;0.18",dur:"2.4s",repeatCount:"indefinite"})]}),(0,a.jsx)("circle",{cx:s.x,cy:s.y,r:c+8,fill:i.halo,opacity:o?r?.85:.55:r?.4:.25}),(0,a.jsx)("circle",{cx:s.x,cy:s.y,r:c,fill:o?l.nodeFill.online:l.nodeFill.offline,stroke:i.primary,strokeWidth:o?3:1.5,strokeDasharray:o?"none":"5 5",filter:o&&!r?"url(#topo-glow)":void 0}),(0,a.jsx)("circle",{cx:s.x,cy:s.y,r:o?8:5,fill:i.primary}),"working"===e.status&&(0,a.jsx)("path",{d:`M${s.x-9},${s.y+11} h18`,stroke:l.flowParticle,strokeWidth:"3",strokeLinecap:"round",children:(0,a.jsx)("animate",{attributeName:"opacity",values:"1;0.25;1",dur:"1.1s",repeatCount:"indefinite"})}),(0,a.jsxs)("g",{transform:`translate(${s.x}, ${s.y+c+22})`,children:[(0,a.jsx)("rect",{x:"-62",y:"-14",width:"124",height:"42",rx:"6",fill:l.labelBox.fill,stroke:l.labelBox.stroke,opacity:r?1:.94}),(0,a.jsx)("text",{x:"0",y:"1",textAnchor:"middle",fill:i.text,fontSize:"12",fontFamily:"monospace",fontWeight:"700",children:x(e.alias,14)}),(0,a.jsxs)("text",{x:"0",y:"17",textAnchor:"middle",fill:i.primary,fontSize:"9",fontFamily:"monospace",children:[i.label,o&&null!=n?` sse:${n}`:""]})]})]},e.alias)}),(0,a.jsxs)("g",{transform:"translate(28, 34)",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"285",height:60+20*Math.min(p.length,4),rx:"8",fill:l.legendBox.fill,stroke:l.legendBox.stroke,opacity:r?1:.94}),(0,a.jsx)("text",{x:"16",y:"26",fill:l.legendHeadline,fontSize:"13",fontFamily:"monospace",fontWeight:"700",children:"recent signal"}),(0,a.jsxs)("text",{x:"178",y:"26",fill:l.legendAccent,fontSize:"11",fontFamily:"monospace",children:[n.length," messages"]}),p.slice(0,4).map((e,t)=>(0,a.jsxs)("text",{x:"16",y:54+20*t,fill:l.legendText,fontSize:"10",fontFamily:"monospace",children:[x(e.from,8)," ","->"," ",x(e.to,8)," / ",e.count," / ",x(e.content,18)]},e.key))]}),(0,a.jsxs)("g",{transform:"translate(720, 34)",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"250",height:"112",rx:"8",fill:l.legendBox.fill,stroke:l.legendBox.stroke,opacity:r?1:.94}),(0,a.jsx)("circle",{cx:"18",cy:"26",r:"6",fill:r?"#059669":"#22c55e"}),(0,a.jsx)("text",{x:"34",y:"30",fill:l.legendText,fontSize:"11",fontFamily:"monospace",children:"working node"}),(0,a.jsx)("circle",{cx:"18",cy:"52",r:"6",fill:r?"#0d9488":"#2dd4bf"}),(0,a.jsx)("text",{x:"34",y:"56",fill:l.legendText,fontSize:"11",fontFamily:"monospace",children:"online idle"}),(0,a.jsx)("circle",{cx:"18",cy:"78",r:"6",fill:r?"#94a3b8":"#6b7280"}),(0,a.jsx)("text",{x:"34",y:"82",fill:l.legendText,fontSize:"11",fontFamily:"monospace",children:"offline / no SSE"}),(0,a.jsx)("path",{d:"M150,78 Q176,52 210,78",fill:"none",stroke:l.flowEdge,strokeWidth:"3",markerEnd:"url(#topo-arrow)"})]})]})]})]})}let g={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 p({session:e,hasSse:t,sseCount:s,onChat:n}){let o=t&&g[e.status]||u;return(0,a.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 ${o.glow}`:"bg-[#0d0d1a] border-[#1a1a2a] opacity-40"}`,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)("span",{className:`inline-block w-2 h-2 rounded-full shrink-0 ${o.dot} ${t&&"working"===e.status?"animate-pulse":""}`}),(0,a.jsx)("span",{className:"font-semibold text-white truncate text-sm",title:e.alias,children:e.alias})]}),(0,a.jsx)("span",{className:`text-[11px] px-2 py-0.5 rounded-md border shrink-0 ${o.bg} ${o.text}`,children:t?e.status:"offline"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.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,a.jsxs)("span",{className:"text-[10px] text-green-500",children:["SSE:",s]})]}),e.task?(0,a.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,a.jsx)("div",{className:"text-xs text-gray-700 italic",children:"No active task"}),e.progress>0&&(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsxs)("div",{className:"flex justify-between text-[10px] mb-1",children:[(0,a.jsx)("span",{className:"text-gray-600",children:"Progress"}),(0,a.jsxs)("span",{className:o.text,children:[e.progress,"%"]})]}),(0,a.jsx)("div",{className:"w-full bg-gray-800 rounded-full h-1.5 overflow-hidden",children:(0,a.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,a.jsxs)("div",{className:"mt-3 flex justify-between items-center text-[10px] text-gray-600",children:[(0,a.jsx)("span",{children:e.server||"--"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[n&&t&&(0,a.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,a.jsx)("span",{children:(0,l.timeAgo)(e.updated_at)})]})]})]})}function b({messages:e}){return 0===e.length?null:(0,a.jsxs)("div",{className:"mt-8",children:[(0,a.jsxs)("h2",{className:"text-lg font-semibold text-white mb-3 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-gray-500",children:"Inbox"}),(0,a.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,a.jsx)("div",{className:"space-y-2 max-h-96 overflow-y-auto pr-1 scrollbar-thin",children:e.map(e=>(0,a.jsxs)("div",{className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm transition-colors hover:border-[#3a3a5a]",children:[(0,a.jsxs)("div",{className:"flex justify-between text-xs text-gray-500 mb-1.5",children:[(0,a.jsx)("span",{className:"text-blue-400 font-medium",children:e.from_session}),(0,a.jsx)("span",{children:e.created_at})]}),(0,a.jsx)("div",{className:"text-gray-300 leading-relaxed",children:e.content})]},e.id))})]})}function y(){return(0,a.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 mb-8 anet-skeleton-pulse",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-[#2a2a4a] bg-[#111128] px-4 py-3",children:[(0,a.jsx)(j,{w:"2.5rem",h:"1.75rem"}),(0,a.jsx)(j,{w:"3.5rem",h:"0.75rem",className:"mt-2"}),(0,a.jsx)(j,{w:"5rem",h:"0.625rem",className:"mt-1"})]},e))}),(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-3 anet-skeleton-pulse",children:[(0,a.jsx)(j,{w:"6rem",h:"2.5rem",rounded:"0.75rem"}),(0,a.jsxs)("div",{className:"flex-1 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-2.5 flex items-center gap-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full anet-skeleton-bar"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)(j,{w:"6rem",h:"0.875rem"}),(0,a.jsx)(j,{w:"10rem",h:"0.625rem",className:"mt-1"})]})]})]}),(0,a.jsx)("div",{className:"mb-6 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 anet-skeleton-pulse",children:(0,a.jsx)(j,{w:"14rem",h:"0.875rem"})}),(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2 sm:gap-3 mb-3 anet-skeleton-pulse",children:[1,2,3].map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-[#2a2a4a] bg-[#111128] px-3 py-3",children:[(0,a.jsx)(j,{w:"2rem",h:"1.25rem"}),(0,a.jsx)(j,{w:"2.5rem",h:"0.75rem",className:"mt-1"}),(0,a.jsx)(j,{w:"3.5rem",h:"0.625rem",className:"mt-px"})]},e))}),(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2 sm:gap-3 mb-6 anet-skeleton-pulse",children:[1,2,3].map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-[#2a2a4a] bg-[#111128] px-3 py-2.5 flex items-center justify-center gap-2",children:[(0,a.jsx)("div",{className:"w-4 h-4 rounded anet-skeleton-bar"}),(0,a.jsx)(j,{w:"4rem",h:"0.75rem"})]},e))}),(0,a.jsxs)("div",{className:"mb-6 flex gap-2 anet-skeleton-pulse",children:[(0,a.jsx)("div",{className:"flex-1 h-10 rounded-lg border border-[#2a2a4a] bg-[#111128]"}),(0,a.jsx)("div",{className:"w-28 h-10 rounded-lg anet-skeleton-bar"})]}),(0,a.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 anet-skeleton-pulse",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-[#2a2a4a] bg-[#111128] p-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-2 h-2 rounded-full anet-skeleton-bar"}),(0,a.jsx)(j,{w:"6rem",h:"0.875rem"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(j,{w:"100%",h:"0.625rem"}),(0,a.jsx)(j,{w:"75%",h:"0.625rem"}),(0,a.jsx)(j,{w:"55%",h:"0.625rem"})]})]},e))})]})}function j({w:e,h:t,rounded:s,className:r}){return(0,a.jsx)("div",{className:`anet-skeleton-bar ${r||""}`,style:{width:e,height:t,borderRadius:s||"0.375rem"}})}var v=e.i(95356),w=e.i(69874),k=e.i(58963);function N(){let{setNetworkId:e}=(0,k.useNetworkId)(),[t,r]=(0,s.useState)({user:null,networks:[],currentNetwork:"",token:""}),[l,n]=(0,s.useState)(!1),[o,i]=(0,s.useState)(""),[d,c]=(0,s.useState)(""),[x,h]=(0,s.useState)(""),[m,f]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=sessionStorage.getItem("anet_v3_auth");if(e)try{r(JSON.parse(e))}catch{}},[]);let[g,u]=(0,s.useState)(!1),[p,b]=(0,s.useState)(""),[y,j]=(0,s.useState)(""),v=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:y})});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:y})}),a=await e.json();if(a.ok&&a.user){let e={...t,user:a.user};r(e),sessionStorage.setItem("anet_v3_auth",JSON.stringify(e)),u(!1)}}catch{}};if(!t.user)return null;let w=(t.user.display_name||t.user.username).slice(0,2).toUpperCase();return(0,a.jsxs)("div",{className:"flex items-center justify-between bg-[#111128] border border-[#2a2a4a] rounded-lg px-4 py-2.5 mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.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:w}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-sm text-white font-medium",children:t.user.display_name||t.user.username}),(0,a.jsxs)("div",{className:"text-[10px] text-gray-500",children:[t.user.role," · ",t.user.user_id]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[t.networks.length>0&&(0,a.jsx)("select",{value:t.currentNetwork,onChange:a=>{let s={...t,currentNetwork:a.target.value};r(s),e(a.target.value),sessionStorage.setItem("anet_v3_auth",JSON.stringify(s))},className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white focus:outline-none",children:t.networks.map(e=>(0,a.jsx)("option",{value:e.network_id,children:e.network_name},e.network_id))}),(0,a.jsxs)("button",{onClick:()=>{b(t.user?.display_name||""),j(""),u(!g)},className:"text-xs text-gray-500 hover:text-gray-300 whitespace-nowrap","aria-label":"Edit profile",children:[(0,a.jsx)("span",{className:"hidden sm:inline",children:"Edit"}),(0,a.jsx)("svg",{className:"sm:hidden w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.862 4.487z"})})]}),(0,a.jsxs)("button",{onClick:()=>{r({user:null,networks:[],currentNetwork:"",token:""}),sessionStorage.removeItem("anet_v3_auth")},className:"text-xs text-gray-500 hover:text-gray-300 whitespace-nowrap","aria-label":"Sign out",children:[(0,a.jsx)("span",{className:"hidden sm:inline",children:"Sign out"}),(0,a.jsx)("svg",{className:"sm:hidden w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"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"})})]})]}),g&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-2 pt-2 border-t border-[#2a2a4a]",children:[(0,a.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,a.jsx)("input",{type:"email",value:y,onChange:e=>j(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,a.jsx)("button",{onClick:v,className:"px-2 py-1 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded",children:"Save"})]})]})}var S=e.i(21373),C=e.i(58442);function $({tabs:e,activeTab:t,onOpenTab:s,onCloseTab:r,onSetActive:l,onClose:n}){return 0===e.length?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{onClick:n,className:"jsx-f7cf3d1a6fdfc074 fixed inset-0 bg-black/30 z-40 lg:hidden"}),(0,a.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,a.jsxs)("div",{className:"jsx-f7cf3d1a6fdfc074 flex items-center border-b border-[#2a2a4a] bg-[#0d0d1a] overflow-x-auto",children:[(0,a.jsx)("div",{className:"jsx-f7cf3d1a6fdfc074 flex-1 flex min-w-0",children:e.map(e=>(0,a.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,a.jsx)("div",{className:`jsx-f7cf3d1a6fdfc074 w-2 h-2 rounded-full ${t===e?"bg-cyan-400":"bg-gray-600"}`}),(0,a.jsx)("span",{className:"jsx-f7cf3d1a6fdfc074 max-w-[80px] truncate",children:e}),(0,a.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,a.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,a.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,className:"jsx-f7cf3d1a6fdfc074 w-4 h-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12",className:"jsx-f7cf3d1a6fdfc074"})})})]}),(0,a.jsx)("div",{className:"jsx-f7cf3d1a6fdfc074 flex-1 relative overflow-hidden",children:e.map(e=>(0,a.jsx)("div",{className:`jsx-f7cf3d1a6fdfc074 absolute inset-0 ${t===e?"block":"hidden"}`,children:(0,a.jsx)(_,{alias:e})},e))})]}),(0,a.jsx)(S.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 _({alias:e}){return(0,a.jsx)(C.TaskChatPanel,{alias:e,onClose:()=>{},inline:!0})}function M({sessions:e,onClose:t}){let[r,l]=(0,s.useState)(new Set),[n,o]=(0,s.useState)(""),[i,d]=(0,s.useState)("normal"),[c,x]=(0,s.useState)(!1),[h,m]=(0,s.useState)([]),[f,g]=(0,s.useState)(""),u=e.filter(e=>"offline"!==e.status).filter(e=>!f||e.alias.toLowerCase().includes(f.toLowerCase())||(e.agent||"").toLowerCase().includes(f.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:i})}),a=await t.json();return{alias:e,ok:!!a.ok,error:a.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,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black/50 z-40",onClick:t}),(0,a.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,a.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 border-b border-[#2a2a4a] bg-[#0d0d1a]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg font-bold text-white",children:"Dispatch Task"}),(0,a.jsx)("p",{className:"text-xs text-gray-500 mt-0.5",children:"Send a task to one or more agents"})]}),(0,a.jsx)("button",{onClick:t,className:"text-gray-500 hover:text-white p-1.5 rounded-lg hover:bg-[#1a1a2a]",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,a.jsxs)("div",{className:"flex-1 flex flex-col lg:flex-row overflow-hidden",children:[(0,a.jsxs)("div",{className:"lg:w-[280px] border-b lg:border-b-0 lg:border-r border-[#2a2a4a] flex flex-col",children:[(0,a.jsxs)("div",{className:"px-4 py-3 border-b border-[#2a2a4a]",children:[(0,a.jsx)("input",{type:"text",value:f,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,a.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,a.jsx)("button",{onClick:()=>{r.size===u.length?l(new Set):l(new Set(u.map(e=>e.alias)))},className:"text-[10px] text-cyan-400 hover:text-cyan-300",children:r.size===u.length?"Deselect all":`Select all (${u.length})`}),(0,a.jsxs)("span",{className:"text-[10px] text-gray-600",children:[r.size," selected"]})]})]}),(0,a.jsxs)("div",{className:"flex-1 overflow-y-auto px-2 py-2 space-y-0.5 max-h-[200px] lg:max-h-none",children:[u.map(e=>(0,a.jsxs)("button",{onClick:()=>{var t;return t=e.alias,void l(e=>{let a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a})},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,a.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,a.jsx)("span",{className:"truncate flex-1",children:e.alias}),(0,a.jsx)("span",{className:"text-[9px] text-gray-600",children:e.agent||"--"})]},e.alias)),0===u.length&&(0,a.jsx)("div",{className:"text-center text-xs text-gray-600 py-4",children:"No online agents"})]})]}),(0,a.jsxs)("div",{className:"flex-1 flex flex-col",children:[(0,a.jsxs)("div",{className:"flex-1 px-6 py-4 flex flex-col",children:[(0,a.jsx)("label",{className:"text-xs text-gray-500 uppercase mb-2",children:"Task Prompt"}),(0,a.jsx)("textarea",{value:n,onChange:e=>o(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,a.jsxs)("div",{className:"flex items-center gap-3 mt-4",children:[(0,a.jsxs)("select",{value:i,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,a.jsx)("option",{value:"normal",children:"Normal priority"}),(0,a.jsx)("option",{value:"high",children:"High priority"}),(0,a.jsx)("option",{value:"low",children:"Low priority"})]}),(0,a.jsx)("div",{className:"flex-1"}),(0,a.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,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.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,a.jsxs)("div",{className:"px-6 py-3 border-t border-[#2a2a4a] bg-[#0d0d1a]",children:[(0,a.jsxs)("div",{className:"text-xs text-gray-500 mb-2",children:[b,"/",h.length," dispatched successfully"]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:h.map(e=>(0,a.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 T=e.i(65822),B=e.i(51280),P=e.i(71235);e.s(["default",0,function(){let e,o,d;(0,s.useEffect)(()=>{sessionStorage.getItem("anet_v3_auth")||(fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login"))},[]);let{sessions:c,hint:x,error:h,isLoading:m}=(0,T.useSessions)(),{health:g}=(0,T.useHealth)(),{config:u}=(0,T.useAnetConfig)(),{tasks:j}=(0,T.useTasks)({limit:"500"}),{stats:k}=(0,T.useStats)(),{license:S}=(0,T.useLicense)(),[C,_]=(0,s.useState)(window.innerWidth>=1024),[E,z]=(0,s.useState)(!1),L=function(){let[e,t]=(0,s.useState)([]),[a,r]=(0,s.useState)("");return{tabs:e,activeTab:a,openTab:e=>{t(t=>t.includes(e)?t:[...t,e]),r(e)},closeTab:e=>{t(t=>{let s=t.filter(t=>t!==e);return a===e&&r(s[s.length-1]||""),s})},closeAll:()=>{t([]),r("")},setActiveTab:r}}(),[A,F]=(0,s.useState)(!1),[W,I]=(0,s.useState)([]),{mutate:O}=(0,P.useSWRConfig)(),H="1"!==t.default.env.NEXT_PUBLIC_DISABLE_SSE,{connected:R,supported:D}=(0,B.useSSE)({url:"/api/hub/events",enabled:H,onEvent:e=>{["new_task","new_message","new_reply","node_status_changed","broadcast"].includes(e.type)&&(O("/api/hub/status"),O(e=>"string"==typeof e&&e.startsWith("/api/hub/tasks"),void 0,{revalidate:!0}))}});if((0,s.useEffect)(()=>{let e=()=>{fetch("/api/hub/inbox").then(e=>e.json()).then(e=>{e.messages?.length&&I(t=>{let a=new Set(t.map(e=>e.id));return[...e.messages.filter(e=>!a.has(e.id)),...t].slice(0,100)})}).catch(()=>{})};e();let t=setInterval(e,1e4);return()=>clearInterval(t)},[]),m)return(0,a.jsx)(y,{});let G=g?.sse_sessions||{},J=e=>(e.network_id?G[`${e.network_id}:${e.alias}`]:void 0)??G[e.alias],U=e=>"offline"!==e.status||!!J(e),V=c.filter(U).length,K=c.length,Q=c.filter(e=>"working"===e.status).length,X=g?(0,l.formatUptime)(g.uptime):"--",Y=g?.version||"--",q=!!(u?.hub&&u.tokenConfigured),Z=u?.source==="file"?"Local config":u?.source==="runtime-env"?"Runtime env":"Config missing",ee={};if(k?.tasks?.by_status?.length)for(let e of k.tasks.by_status)ee[e.status]=e.count;else for(let e of j)ee[e.status]=(ee[e.status]||0)+1;let et=[...c].sort((e,t)=>{let a=+!!U(e),s=+!!U(t);if(a!==s)return s-a;let r=+("working"===e.status);return("working"===t.status)-r});return(0,a.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,a.jsx)("div",{className:"lg:ml-0 ml-10",children:(0,a.jsx)(n,{online:V,working:Q,total:K,version:Y,uptime:X})}),(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("button",{onClick:()=>F(!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,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(N,{})})]}),(0,a.jsxs)("section",{className:"mb-6 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 shadow-lg shadow-black/20",children:[(0,a.jsxs)("button",{onClick:()=>z(!E),className:"w-full flex items-center justify-between text-left",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,a.jsx)("span",{className:"uppercase text-gray-600",children:"Config"}),(0,a.jsx)("span",{className:`w-2 h-2 rounded-full ${q?"bg-green-400":"bg-red-400"}`}),(0,a.jsx)("span",{className:"text-gray-500",children:Z})]}),(0,a.jsx)("svg",{className:`w-4 h-4 text-gray-600 transition-transform ${E?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),E&&(0,a.jsxs)("div",{className:"mt-3 pt-3 border-t border-[#2a2a4a]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("div",{className:"min-w-0",children:(0,a.jsxs)("div",{className:"text-gray-100 truncate text-sm",title:u?.hub||void 0,children:["Hub: ",(0,a.jsx)("span",{className:u?.hub?"text-cyan-300":"text-red-300",children:u?.hub?.trim()||"not configured"})]})}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2 text-xs",children:(0,a.jsxs)("span",{className:`px-2.5 py-1 rounded-md border ${u?.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: ",u?.tokenPreview||"not configured"]})})]}),u?.error&&(0,a.jsx)("div",{className:"mt-2 text-xs text-gray-600",children:u.error})]})]}),Object.keys(ee).length>0&&(0,a.jsxs)("section",{className:"mb-6 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 shadow-lg shadow-black/20",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("div",{className:"text-xs uppercase text-gray-600",children:"Task Status"}),(0,a.jsx)(r.default,{href:"/tasks",prefetch:!1,className:"text-xs text-cyan-400 hover:text-cyan-300",children:"View all →"})]}),(0,a.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})=>ee[e]).map(({key:e,color:t})=>(0,a.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,": ",ee[e]]},e))})]}),(0,a.jsx)("div",{className:"text-[10px] uppercase tracking-[0.12em] text-gray-600 mb-2",children:"Quick navigation"}),(0,a.jsx)("section",{className:"mb-3 grid grid-cols-3 gap-2 sm:gap-3",children:(e=c.filter(e=>U(e)&&"working"!==e.status).length,o=K-V,d=j.filter(e=>"failed"===e.status).length,[{href:"/nodes",label:"Nodes",value:`${V}/${K}`,sub:`${K>0?Math.round(V/K*100):0}% online`,color:"text-green-400 border-green-500/20",popover:0===K?null:[{k:"working",v:Q,dot:"",color:"#4ade80"},{k:"idle",v:e,dot:"",color:"#22d3ee"},{k:"offline",v:o,dot:"",color:"#9ca3af"}]},{href:"/tasks",label:"Tasks",value:String(Object.values(ee).reduce((e,t)=>e+t,0)||0),sub:"all-time",color:"text-cyan-400 border-cyan-500/20",popover:0===Object.keys(ee).length?null:["running","replied","failed","cancelled","expired","closed","created","delivered","acked"].filter(e=>ee[e]).map(e=>({k:e,v:ee[e],dot:"",color:({running:"#4ade80",replied:"#a78bfa",failed:"#f87171",cancelled:"#facc15",expired:"#fb923c",closed:"#9ca3af",created:"#9ca3af",delivered:"#60a5fa",acked:"#22d3ee"})[e]||"#9ca3af"}))},{href:"/tasks?status=failed",label:"Failed",value:String(ee.failed||0),sub:ee.failed?"needs review":"none",color:ee.failed?"text-red-400 border-red-500/25":"text-gray-500 border-gray-700/30",popover:d?[{k:`${d} in current view`,v:"",dot:"",color:"#f87171"}]:[{k:"no failures yet",v:"",dot:"",color:"#4b5563"}]}].map(e=>(0,a.jsxs)(r.default,{href:e.href,prefetch:!1,className:`anet-stat-link group relative rounded-xl border ${e.color} bg-[#111128] px-3 py-3 transition-all hover:-translate-y-px`,children:[(0,a.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,a.jsx)("div",{className:`text-xl font-semibold tabular-nums ${e.color.split(" ")[0]}`,children:e.value}),(0,a.jsx)("div",{className:"hidden sm:block text-[10px] text-gray-600 group-hover:text-gray-400 transition-colors",children:"View →"})]}),(0,a.jsx)("div",{className:"text-[11px] text-gray-400 mt-0.5",children:e.label}),(0,a.jsx)("div",{className:"text-[10px] text-gray-600 mt-px",children:e.sub}),e.popover&&e.popover.length>0&&(0,a.jsxs)("div",{className:"anet-stat-popover hidden md:block pointer-events-none absolute left-2 right-2 top-full mt-1 z-20 rounded-lg border border-[#2a2a4a] bg-[#0d0d1a] shadow-lg shadow-black/30 px-3 py-2 opacity-0 translate-y-[-2px] group-hover:opacity-100 group-hover:translate-y-0 transition-all duration-150 delay-100",children:[(0,a.jsx)("div",{className:"text-[10px] text-gray-600 uppercase tracking-wider mb-1.5",children:"Breakdown"}),(0,a.jsx)("ul",{className:"space-y-1",children:e.popover.map(e=>(0,a.jsxs)("li",{className:"flex items-center gap-2 text-[11px]",children:[(0,a.jsx)("span",{className:"inline-block w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:e.color},"aria-hidden":!0}),(0,a.jsx)("span",{className:"text-gray-400 capitalize",children:e.k}),""!==e.v&&(0,a.jsx)("span",{className:"ml-auto text-gray-300 tabular-nums font-medium",children:e.v})]},e.k))})]})]},e.href)))}),(0,a.jsx)("section",{className:"mb-6 grid grid-cols-3 gap-2 sm:gap-3",children:[{href:"/messages",label:"Messages",icon:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"},{href:"/logs",label:"Audit log",icon:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z M14 2v6h6 M16 13H8 M16 17H8 M10 9H8"},{href:"/admin",label:"Admin",icon:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4z M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2"}].map(e=>(0,a.jsxs)(r.default,{href:e.href,prefetch:!1,className:"anet-nav-tile flex items-center justify-center gap-2 rounded-xl border border-[#2a2a4a] bg-[#111128] px-3 py-2.5 text-[12px] text-gray-400 hover:text-gray-200 transition-colors",children:[(0,a.jsx)("svg",{className:"w-4 h-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:e.icon})}),(0,a.jsx)("span",{children:e.label})]},e.href))}),(0,a.jsx)(i,{}),j.length>0&&(0,a.jsxs)("section",{className:"mb-6 bg-[#111128] border border-[#2a2a4a] rounded-xl p-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,a.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Recent Activity"}),(0,a.jsx)(r.default,{href:"/tasks",className:"text-xs text-cyan-400 hover:text-cyan-300",children:"All tasks →"})]}),(0,a.jsx)("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:j.slice(0,5).map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,a.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"}`}),e.from_name&&(0,a.jsx)(w.AliasAvatar,{alias:e.from_name,size:14}),(0,a.jsx)("span",{className:"text-gray-300 shrink-0 max-w-[20%] truncate",children:e.from_name||"?"}),(0,a.jsx)("span",{className:"text-gray-600",children:"→"}),e.to_name&&(0,a.jsx)(w.AliasAvatar,{alias:e.to_name,size:14}),(0,a.jsx)("span",{className:"text-gray-300 shrink-0 max-w-[20%] truncate",children:e.to_name||"?"}),(0,a.jsx)("span",{className:"text-gray-500 truncate flex-1",children:e.content?.slice(0,40)||"--"}),(0,a.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))})]}),h&&(0,a.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,a.jsx)("span",{children:String(h)}),(0,a.jsx)("span",{className:"text-gray-500 text-xs",children:"Check CommHub connection"})]}),c.length>0&&(0,a.jsx)("div",{className:"flex justify-center mb-4",children:(0,a.jsx)("button",{onClick:()=>_(!C),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:C?"Hide Topology":"Show Topology"})}),!C&&c.length>0&&(0,a.jsx)("div",{className:"lg:hidden text-center text-xs text-gray-600 mb-4",children:"Topology hidden on mobile for better readability"}),C&&c.length>0&&(0,a.jsx)(f,{sessions:c,sseSessions:G}),0!==c.length||h?(0,a.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:et.map(e=>(0,a.jsx)(p,{session:e,hasSse:U(e),sseCount:J(e)||0,onChat:L.openTab},e.alias))}):(0,a.jsx)(v.NodesEmptyState,{hint:x}),(0,a.jsx)(b,{messages:W}),(0,a.jsxs)("div",{className:"mt-8 text-center text-xs text-gray-600 flex items-center justify-center gap-2 flex-wrap",children:[D&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:`w-1.5 h-1.5 rounded-full ${R?"bg-green-400":"bg-gray-600"}`}),R?"SSE live":"SWR polling"]}),S?.license&&(0,a.jsxs)(a.Fragment,{children:[D&&(0,a.jsx)(a.Fragment,{children:"·"}),(0,a.jsxs)("span",{className:S.license.days_left<=7?"text-red-400":"pro"===S.license.type?"text-green-400":"text-yellow-400",children:[S.license.type," (",S.license.days_left,"d left)"]})]})]}),A&&(0,a.jsx)(M,{sessions:c,onClose:()=>F(!1)}),L.tabs.length>0&&(0,a.jsx)($,{tabs:L.tabs,activeTab:L.activeTab,onOpenTab:L.openTab,onCloseTab:L.closeTab,onSetActive:L.setActiveTab,onClose:L.closeAll})]})}],31713)}]);
|
package/.next/trace
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":311,"timestamp":189031853852,"id":4,"parentId":1,"tags":{},"startTime":1778560517679,"traceId":"1ed6ff4b0dfff32f"},{"name":"load-custom-routes","duration":451,"timestamp":189031854309,"id":5,"parentId":1,"tags":{},"startTime":1778560517679,"traceId":"1ed6ff4b0dfff32f"},{"name":"create-dist-dir","duration":439,"timestamp":189031854803,"id":6,"parentId":1,"tags":{},"startTime":1778560517680,"traceId":"1ed6ff4b0dfff32f"},{"name":"clean","duration":522,"timestamp":189031856042,"id":7,"parentId":1,"tags":{},"startTime":1778560517681,"traceId":"1ed6ff4b0dfff32f"},{"name":"discover-routes","duration":9391,"timestamp":189031944442,"id":8,"parentId":1,"tags":{},"startTime":1778560517769,"traceId":"1ed6ff4b0dfff32f"},{"name":"create-root-mapping","duration":135,"timestamp":189031953899,"id":9,"parentId":1,"tags":{},"startTime":1778560517779,"traceId":"1ed6ff4b0dfff32f"},{"name":"generate-route-types","duration":32889,"timestamp":189031956373,"id":10,"parentId":1,"tags":{},"startTime":1778560517781,"traceId":"1ed6ff4b0dfff32f"},{"name":"public-dir-conflict-check","duration":116,"timestamp":189031989447,"id":11,"parentId":1,"tags":{},"startTime":1778560517814,"traceId":"1ed6ff4b0dfff32f"},{"name":"generate-routes-manifest","duration":4307,"timestamp":189031989728,"id":12,"parentId":1,"tags":{},"startTime":1778560517814,"traceId":"1ed6ff4b0dfff32f"},{"name":"run-turbopack","duration":8048244,"timestamp":189031999500,"id":14,"parentId":1,"tags":{},"startTime":1778560517824,"traceId":"1ed6ff4b0dfff32f"},{"name":"turbopack-build-events","duration":77,"timestamp":189032285408,"id":15,"parentId":1,"tags":{},"startTime":1778560518110,"traceId":"1ed6ff4b0dfff32f"},{"name":"run-typescript","duration":7741449,"timestamp":189040069263,"id":16,"parentId":1,"tags":{},"startTime":1778560525894,"traceId":"1ed6ff4b0dfff32f"},{"name":"generate-required-server-files","duration":1971,"timestamp":189047811451,"id":18,"parentId":1,"tags":{},"startTime":1778560533636,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-static-error-page","duration":15507,"timestamp":189047889066,"id":20,"parentId":19,"tags":{},"startTime":1778560533714,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":346785,"timestamp":189047906886,"id":62,"parentId":22,"tags":{},"startTime":1778560533732,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":362367,"timestamp":189047891421,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778560533716,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":393318,"timestamp":189047906578,"id":61,"parentId":21,"tags":{},"startTime":1778560533731,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":409818,"timestamp":189047890156,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778560533715,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":434822,"timestamp":189047909527,"id":64,"parentId":26,"tags":{},"startTime":1778560533734,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":450182,"timestamp":189047894228,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778560533719,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":437204,"timestamp":189047909160,"id":63,"parentId":25,"tags":{},"startTime":1778560533734,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":452368,"timestamp":189047894050,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778560533719,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":441613,"timestamp":189047909658,"id":67,"parentId":29,"tags":{},"startTime":1778560533734,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":456776,"timestamp":189047894551,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778560533719,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":448729,"timestamp":189047909621,"id":66,"parentId":28,"tags":{},"startTime":1778560533734,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":463965,"timestamp":189047894441,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778560533719,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":453016,"timestamp":189047909727,"id":69,"parentId":32,"tags":{},"startTime":1778560533734,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":467487,"timestamp":189047895315,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778560533720,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":456908,"timestamp":189047909581,"id":65,"parentId":27,"tags":{},"startTime":1778560533734,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":472212,"timestamp":189047894337,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778560533719,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":456797,"timestamp":189047909907,"id":70,"parentId":33,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":471313,"timestamp":189047895428,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778560533720,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":461345,"timestamp":189047909978,"id":72,"parentId":35,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":475758,"timestamp":189047895623,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778560533720,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":480523,"timestamp":189047909692,"id":68,"parentId":30,"tags":{},"startTime":1778560533734,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":495365,"timestamp":189047894915,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778560533720,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":480548,"timestamp":189047909961,"id":71,"parentId":34,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":495015,"timestamp":189047895521,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778560533720,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":481509,"timestamp":189047910066,"id":73,"parentId":36,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":494589,"timestamp":189047897035,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778560533722,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":484391,"timestamp":189047910094,"id":75,"parentId":38,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":497086,"timestamp":189047897446,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778560533722,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":486745,"timestamp":189047910100,"id":76,"parentId":39,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":499300,"timestamp":189047897588,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778560533722,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":488116,"timestamp":189047910086,"id":74,"parentId":37,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":500963,"timestamp":189047897283,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778560533722,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":488281,"timestamp":189047910111,"id":78,"parentId":41,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":500682,"timestamp":189047897750,"id":41,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778560533722,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":488449,"timestamp":189047910106,"id":77,"parentId":40,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":500901,"timestamp":189047897675,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778560533722,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":492084,"timestamp":189047910123,"id":80,"parentId":43,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":504352,"timestamp":189047897896,"id":43,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778560533723,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":492275,"timestamp":189047910117,"id":79,"parentId":42,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":504599,"timestamp":189047897827,"id":42,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778560533723,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":492379,"timestamp":189047910183,"id":81,"parentId":44,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":504614,"timestamp":189047897973,"id":44,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778560533723,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":495935,"timestamp":189047910197,"id":83,"parentId":46,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":507979,"timestamp":189047898209,"id":46,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778560533723,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":496109,"timestamp":189047910192,"id":82,"parentId":45,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":508237,"timestamp":189047898087,"id":45,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778560533723,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":496596,"timestamp":189047910204,"id":84,"parentId":47,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":508586,"timestamp":189047898286,"id":47,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778560533723,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":499231,"timestamp":189047910210,"id":85,"parentId":48,"tags":{},"startTime":1778560533735,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":509266,"timestamp":189047900222,"id":48,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778560533725,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":494840,"timestamp":189047915557,"id":86,"parentId":24,"tags":{},"startTime":1778560533741,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":518527,"timestamp":189047891911,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778560533717,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":493320,"timestamp":189047917216,"id":87,"parentId":31,"tags":{},"startTime":1778560533742,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":515491,"timestamp":189047895066,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778560533720,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":486289,"timestamp":189047932853,"id":90,"parentId":50,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":518435,"timestamp":189047900788,"id":50,"parentId":19,"tags":{"page":"/logs"},"startTime":1778560533725,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":490324,"timestamp":189047932862,"id":91,"parentId":51,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":522338,"timestamp":189047900908,"id":51,"parentId":19,"tags":{"page":"/messages"},"startTime":1778560533726,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":496310,"timestamp":189047932870,"id":92,"parentId":52,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":528170,"timestamp":189047901070,"id":52,"parentId":19,"tags":{"page":"/node"},"startTime":1778560533726,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":502150,"timestamp":189047932875,"id":93,"parentId":53,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":533867,"timestamp":189047901225,"id":53,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778560533726,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":509302,"timestamp":189047932884,"id":94,"parentId":55,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":540485,"timestamp":189047901761,"id":55,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778560533726,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":520255,"timestamp":189047932846,"id":89,"parentId":49,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":552598,"timestamp":189047900601,"id":49,"parentId":19,"tags":{"page":"/login"},"startTime":1778560533725,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":522947,"timestamp":189047932892,"id":95,"parentId":56,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":553998,"timestamp":189047901896,"id":56,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778560533727,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":525202,"timestamp":189047932897,"id":96,"parentId":58,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":555811,"timestamp":189047902349,"id":58,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778560533727,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":529000,"timestamp":189047932808,"id":88,"parentId":23,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":570129,"timestamp":189047891726,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778560533716,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":530633,"timestamp":189047932915,"id":98,"parentId":60,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":559365,"timestamp":189047904324,"id":60,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778560533729,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":534582,"timestamp":189047932924,"id":99,"parentId":57,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":565511,"timestamp":189047902035,"id":57,"parentId":19,"tags":{"page":"/settings"},"startTime":1778560533727,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":536824,"timestamp":189047932932,"id":100,"parentId":54,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":568431,"timestamp":189047901374,"id":54,"parentId":19,"tags":{"page":"/"},"startTime":1778560533726,"traceId":"1ed6ff4b0dfff32f"},{"name":"is-page-static","duration":539515,"timestamp":189047932905,"id":97,"parentId":59,"tags":{},"startTime":1778560533758,"traceId":"1ed6ff4b0dfff32f"},{"name":"check-page","duration":570018,"timestamp":189047902461,"id":59,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778560533727,"traceId":"1ed6ff4b0dfff32f"},{"name":"static-check","duration":584325,"timestamp":189047888230,"id":19,"parentId":1,"tags":{},"startTime":1778560533713,"traceId":"1ed6ff4b0dfff32f"},{"name":"write-routes-manifest","duration":438,"timestamp":189048480590,"id":102,"parentId":1,"tags":{},"startTime":1778560534305,"traceId":"1ed6ff4b0dfff32f"},{"name":"load-dotenv","duration":58,"timestamp":189048493876,"id":105,"parentId":104,"tags":{},"startTime":1778560534319,"traceId":"1ed6ff4b0dfff32f"},{"name":"run-export-path-map","duration":713,"timestamp":189048497185,"id":106,"parentId":104,"tags":{},"startTime":1778560534322,"traceId":"1ed6ff4b0dfff32f"},{"name":"next-export","duration":592236,"timestamp":189048492402,"id":104,"parentId":1,"tags":{},"startTime":1778560534317,"traceId":"1ed6ff4b0dfff32f"},{"name":"move-exported-app-not-found-","duration":673,"timestamp":189049087965,"id":107,"parentId":103,"tags":{},"startTime":1778560534913,"traceId":"1ed6ff4b0dfff32f"},{"name":"move-exported-app-global-error-","duration":444,"timestamp":189049088737,"id":108,"parentId":103,"tags":{},"startTime":1778560534913,"traceId":"1ed6ff4b0dfff32f"}]
|
|
2
|
-
[{"name":"static-generation","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":291,"timestamp":189544248464,"id":4,"parentId":1,"tags":{},"startTime":1778561030073,"traceId":"b5d073a7b88a4702"},{"name":"load-custom-routes","duration":504,"timestamp":189544248905,"id":5,"parentId":1,"tags":{},"startTime":1778561030074,"traceId":"b5d073a7b88a4702"},{"name":"create-dist-dir","duration":843,"timestamp":189544249465,"id":6,"parentId":1,"tags":{},"startTime":1778561030074,"traceId":"b5d073a7b88a4702"},{"name":"clean","duration":553,"timestamp":189544250969,"id":7,"parentId":1,"tags":{},"startTime":1778561030076,"traceId":"b5d073a7b88a4702"},{"name":"discover-routes","duration":9931,"timestamp":189544338311,"id":8,"parentId":1,"tags":{},"startTime":1778561030163,"traceId":"b5d073a7b88a4702"},{"name":"create-root-mapping","duration":122,"timestamp":189544348307,"id":9,"parentId":1,"tags":{},"startTime":1778561030173,"traceId":"b5d073a7b88a4702"},{"name":"generate-route-types","duration":33048,"timestamp":189544350746,"id":10,"parentId":1,"tags":{},"startTime":1778561030175,"traceId":"b5d073a7b88a4702"},{"name":"public-dir-conflict-check","duration":142,"timestamp":189544383993,"id":11,"parentId":1,"tags":{},"startTime":1778561030209,"traceId":"b5d073a7b88a4702"},{"name":"generate-routes-manifest","duration":4416,"timestamp":189544384265,"id":12,"parentId":1,"tags":{},"startTime":1778561030209,"traceId":"b5d073a7b88a4702"},{"name":"run-turbopack","duration":9149595,"timestamp":189544394336,"id":14,"parentId":1,"tags":{},"startTime":1778561030219,"traceId":"b5d073a7b88a4702"},{"name":"turbopack-build-events","duration":80,"timestamp":189544696698,"id":15,"parentId":1,"tags":{},"startTime":1778561030521,"traceId":"b5d073a7b88a4702"},{"name":"run-typescript","duration":10026635,"timestamp":189553561218,"id":16,"parentId":1,"tags":{},"startTime":1778561039386,"traceId":"b5d073a7b88a4702"},{"name":"generate-required-server-files","duration":2860,"timestamp":189563590475,"id":18,"parentId":1,"tags":{},"startTime":1778561049415,"traceId":"b5d073a7b88a4702"},{"name":"check-static-error-page","duration":20016,"timestamp":189563678388,"id":20,"parentId":19,"tags":{},"startTime":1778561049503,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":514810,"timestamp":189563700590,"id":62,"parentId":22,"tags":{},"startTime":1778561049525,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":533728,"timestamp":189563681811,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778561049507,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":639284,"timestamp":189563700811,"id":64,"parentId":26,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":648667,"timestamp":189563691506,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778561049516,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":644241,"timestamp":189563700852,"id":65,"parentId":27,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":653553,"timestamp":189563691604,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778561049516,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":647039,"timestamp":189563700887,"id":66,"parentId":28,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":656288,"timestamp":189563691692,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778561049516,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":650653,"timestamp":189563700923,"id":67,"parentId":29,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":659861,"timestamp":189563691775,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778561049516,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":654500,"timestamp":189563700957,"id":68,"parentId":30,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":663623,"timestamp":189563691977,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778561049517,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":660103,"timestamp":189563700990,"id":69,"parentId":32,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":668835,"timestamp":189563692336,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778561049517,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":661634,"timestamp":189563701109,"id":70,"parentId":33,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":670354,"timestamp":189563692437,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778561049517,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":668334,"timestamp":189563701172,"id":71,"parentId":34,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":676996,"timestamp":189563692570,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778561049517,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":672296,"timestamp":189563701195,"id":72,"parentId":35,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":680881,"timestamp":189563692659,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778561049517,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":676021,"timestamp":189563701250,"id":73,"parentId":36,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":684290,"timestamp":189563693026,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778561049518,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":682948,"timestamp":189563701268,"id":74,"parentId":37,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":691126,"timestamp":189563693149,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778561049518,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":685698,"timestamp":189563701280,"id":75,"parentId":38,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":693787,"timestamp":189563693253,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778561049518,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":689446,"timestamp":189563701286,"id":76,"parentId":39,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":697449,"timestamp":189563693330,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778561049518,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":694796,"timestamp":189563701292,"id":77,"parentId":40,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":702715,"timestamp":189563693428,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778561049518,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":696441,"timestamp":189563701298,"id":78,"parentId":41,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":704278,"timestamp":189563693513,"id":41,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778561049518,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":702680,"timestamp":189563701304,"id":79,"parentId":42,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":710486,"timestamp":189563693582,"id":42,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778561049518,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":707370,"timestamp":189563701310,"id":80,"parentId":43,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":715090,"timestamp":189563693646,"id":43,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778561049518,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":713471,"timestamp":189563701315,"id":81,"parentId":44,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":721131,"timestamp":189563693713,"id":44,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778561049518,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":718593,"timestamp":189563701321,"id":82,"parentId":45,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":726199,"timestamp":189563693776,"id":45,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778561049518,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":722048,"timestamp":189563701326,"id":83,"parentId":46,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":729561,"timestamp":189563693865,"id":46,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778561049519,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":727050,"timestamp":189563701332,"id":84,"parentId":47,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":734527,"timestamp":189563693933,"id":47,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778561049519,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":727980,"timestamp":189563700667,"id":63,"parentId":25,"tags":{},"startTime":1778561049525,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":737409,"timestamp":189563691262,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778561049516,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":733590,"timestamp":189563701336,"id":85,"parentId":48,"tags":{},"startTime":1778561049526,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":740983,"timestamp":189563693997,"id":48,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778561049519,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":731950,"timestamp":189563710396,"id":87,"parentId":24,"tags":{},"startTime":1778561049535,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":760160,"timestamp":189563682240,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778561049507,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":751378,"timestamp":189563700267,"id":61,"parentId":21,"tags":{},"startTime":1778561049525,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":772248,"timestamp":189563679452,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778561049504,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":751776,"timestamp":189563709728,"id":86,"parentId":31,"tags":{},"startTime":1778561049534,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":769489,"timestamp":189563692087,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778561049517,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":754507,"timestamp":189563720794,"id":89,"parentId":49,"tags":{},"startTime":1778561049545,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":781024,"timestamp":189563694337,"id":49,"parentId":19,"tags":{"page":"/login"},"startTime":1778561049519,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":789542,"timestamp":189563720807,"id":91,"parentId":51,"tags":{},"startTime":1778561049545,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":815276,"timestamp":189563695141,"id":51,"parentId":19,"tags":{"page":"/messages"},"startTime":1778561049520,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":792329,"timestamp":189563720757,"id":88,"parentId":23,"tags":{},"startTime":1778561049545,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":831043,"timestamp":189563682094,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778561049507,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":815888,"timestamp":189563720818,"id":93,"parentId":53,"tags":{},"startTime":1778561049546,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":841265,"timestamp":189563695505,"id":53,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778561049520,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":823278,"timestamp":189563720823,"id":94,"parentId":55,"tags":{},"startTime":1778561049546,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":848026,"timestamp":189563696137,"id":55,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778561049521,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":828132,"timestamp":189563720828,"id":95,"parentId":56,"tags":{},"startTime":1778561049546,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":852756,"timestamp":189563696295,"id":56,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778561049521,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":828659,"timestamp":189563720813,"id":92,"parentId":52,"tags":{},"startTime":1778561049546,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":854181,"timestamp":189563695329,"id":52,"parentId":19,"tags":{"page":"/node"},"startTime":1778561049520,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":834898,"timestamp":189563720833,"id":96,"parentId":58,"tags":{},"startTime":1778561049546,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":857821,"timestamp":189563697965,"id":58,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778561049523,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":843141,"timestamp":189563720846,"id":98,"parentId":60,"tags":{},"startTime":1778561049546,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":865846,"timestamp":189563698219,"id":60,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778561049523,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":847504,"timestamp":189563720838,"id":97,"parentId":59,"tags":{},"startTime":1778561049546,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":870315,"timestamp":189563698095,"id":59,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778561049523,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":822782,"timestamp":189563750991,"id":99,"parentId":57,"tags":{},"startTime":1778561049576,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":876262,"timestamp":189563697565,"id":57,"parentId":19,"tags":{"page":"/settings"},"startTime":1778561049522,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":854467,"timestamp":189563720801,"id":90,"parentId":50,"tags":{},"startTime":1778561049545,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":880370,"timestamp":189563694963,"id":50,"parentId":19,"tags":{"page":"/logs"},"startTime":1778561049520,"traceId":"b5d073a7b88a4702"},{"name":"is-page-static","duration":807301,"timestamp":189563769616,"id":100,"parentId":54,"tags":{},"startTime":1778561049594,"traceId":"b5d073a7b88a4702"},{"name":"check-page","duration":881275,"timestamp":189563695682,"id":54,"parentId":19,"tags":{"page":"/"},"startTime":1778561049520,"traceId":"b5d073a7b88a4702"},{"name":"static-check","duration":899383,"timestamp":189563677609,"id":19,"parentId":1,"tags":{},"startTime":1778561049502,"traceId":"b5d073a7b88a4702"},{"name":"write-routes-manifest","duration":446,"timestamp":189564584842,"id":102,"parentId":1,"tags":{},"startTime":1778561050410,"traceId":"b5d073a7b88a4702"},{"name":"load-dotenv","duration":57,"timestamp":189564600843,"id":105,"parentId":104,"tags":{},"startTime":1778561050426,"traceId":"b5d073a7b88a4702"},{"name":"run-export-path-map","duration":632,"timestamp":189564603619,"id":106,"parentId":104,"tags":{},"startTime":1778561050428,"traceId":"b5d073a7b88a4702"},{"name":"next-export","duration":707120,"timestamp":189564599507,"id":104,"parentId":1,"tags":{},"startTime":1778561050424,"traceId":"b5d073a7b88a4702"},{"name":"move-exported-app-not-found-","duration":2104,"timestamp":189565310139,"id":107,"parentId":103,"tags":{},"startTime":1778561051135,"traceId":"b5d073a7b88a4702"},{"name":"move-exported-app-global-error-","duration":388,"timestamp":189565312367,"id":108,"parentId":103,"tags":{},"startTime":1778561051137,"traceId":"b5d073a7b88a4702"}]
|
|
2
|
+
[{"name":"static-generation","duration":726237,"timestamp":189564590475,"id":103,"parentId":1,"tags":{},"startTime":1778561050415,"traceId":"b5d073a7b88a4702"},{"name":"write-routes-manifest","duration":410,"timestamp":189565316889,"id":109,"parentId":1,"tags":{},"startTime":1778561051142,"traceId":"b5d073a7b88a4702"},{"name":"print-tree-view","duration":3711,"timestamp":189565323674,"id":110,"parentId":1,"tags":{},"startTime":1778561051148,"traceId":"b5d073a7b88a4702"},{"name":"write-route-bundle-stats","duration":14827,"timestamp":189565327423,"id":111,"parentId":1,"tags":{},"startTime":1778561051152,"traceId":"b5d073a7b88a4702"},{"name":"telemetry-flush","duration":41675,"timestamp":189565342291,"id":112,"parentId":1,"tags":{},"startTime":1778561051167,"traceId":"b5d073a7b88a4702"},{"name":"next-build","duration":21183592,"timestamp":189544200431,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778561030025,"traceId":"b5d073a7b88a4702"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":9149595,"timestamp":189544394336,"id":14,"parentId":1,"tags":{},"startTime":1778561030219,"traceId":"b5d073a7b88a4702"},{"name":"turbopack-build-events","duration":80,"timestamp":189544696698,"id":15,"parentId":1,"tags":{},"startTime":1778561030521,"traceId":"b5d073a7b88a4702"},{"name":"run-typescript","duration":10026635,"timestamp":189553561218,"id":16,"parentId":1,"tags":{},"startTime":1778561039386,"traceId":"b5d073a7b88a4702"},{"name":"static-check","duration":899383,"timestamp":189563677609,"id":19,"parentId":1,"tags":{},"startTime":1778561049502,"traceId":"b5d073a7b88a4702"},{"name":"static-generation","duration":726237,"timestamp":189564590475,"id":103,"parentId":1,"tags":{},"startTime":1778561050415,"traceId":"b5d073a7b88a4702"},{"name":"telemetry-flush","duration":41675,"timestamp":189565342291,"id":112,"parentId":1,"tags":{},"startTime":1778561051167,"traceId":"b5d073a7b88a4702"},{"name":"next-build","duration":21183592,"timestamp":189544200431,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778561030025,"traceId":"b5d073a7b88a4702"}]
|
|
@@ -33,10 +33,14 @@ const cy = 330;
|
|
|
33
33
|
const onlineRadius = 220;
|
|
34
34
|
const offlineRadius = 315;
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
/** Polar coordinate for a node on a ring. `rotateBy` lets the caller offset
|
|
37
|
+
* the whole ring so two stacked rings don't align radially (round 25: the
|
|
38
|
+
* offline ring gets a half-step rotation so its nodes sit in the gaps
|
|
39
|
+
* between online ones). */
|
|
40
|
+
function polarPoint(index: number, total: number, radius: number, rotateBy = 0) {
|
|
37
41
|
const spread = total <= 2 ? Math.PI : Math.PI * 1.78;
|
|
38
42
|
const start = -Math.PI / 2 - spread / 2;
|
|
39
|
-
const angle = total <= 1 ? -Math.PI / 2 : start + (spread * index) / (total - 1);
|
|
43
|
+
const angle = total <= 1 ? -Math.PI / 2 : start + (spread * index) / (total - 1) + rotateBy;
|
|
40
44
|
return {
|
|
41
45
|
x: cx + radius * Math.cos(angle),
|
|
42
46
|
y: cy + radius * Math.sin(angle),
|
|
@@ -248,8 +252,17 @@ export function TopoGraph({ sessions, sseSessions }: TopoGraphProps) {
|
|
|
248
252
|
positions[s.alias] = polarPoint(index, Math.max(online.length, 1), onlineRadius);
|
|
249
253
|
});
|
|
250
254
|
|
|
255
|
+
// Offset the offline ring radially by half the online step so offline
|
|
256
|
+
// bubbles sit in the angular gaps between online bubbles instead of
|
|
257
|
+
// stacking directly behind them. Also push the outer ring further when
|
|
258
|
+
// there are many offline nodes so labels don't crowd the legend.
|
|
259
|
+
const spread = online.length <= 2 ? Math.PI : Math.PI * 1.78;
|
|
260
|
+
const onlineStep = online.length > 1 ? spread / (online.length - 1) : 0;
|
|
261
|
+
const offlineRotation = online.length > 0 ? onlineStep / 2 : 0;
|
|
262
|
+
const offlineR = offlineRadius + Math.max(0, offline.length - 4) * 6;
|
|
263
|
+
|
|
251
264
|
offline.forEach((s, index) => {
|
|
252
|
-
positions[s.alias] = polarPoint(index, Math.max(offline.length, 1),
|
|
265
|
+
positions[s.alias] = polarPoint(index, Math.max(offline.length, 1), offlineR, offlineRotation);
|
|
253
266
|
});
|
|
254
267
|
|
|
255
268
|
const links = buildFlowLinks(messages, positions);
|