@sleep2agi/agent-network-dashboard 0.5.3-preview.87 → 0.5.3-preview.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/diagnostics/route-bundle-stats.json +5 -5
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/server/app/_global-error.html +1 -1
  6. package/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found.html +1 -1
  13. package/.next/server/app/_not-found.rsc +1 -1
  14. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  20. package/.next/server/app/admin.html +1 -1
  21. package/.next/server/app/admin.rsc +1 -1
  22. package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
  23. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  24. package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
  25. package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
  26. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
  27. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  28. package/.next/server/app/index.html +2 -2
  29. package/.next/server/app/index.rsc +2 -2
  30. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  31. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  32. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  33. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  34. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  35. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/login.html +2 -2
  37. package/.next/server/app/login.rsc +2 -2
  38. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  39. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  40. package/.next/server/app/login.segments/_index.segment.rsc +1 -1
  41. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  42. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  43. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  44. package/.next/server/app/logs.html +1 -1
  45. package/.next/server/app/logs.rsc +1 -1
  46. package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
  47. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  48. package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
  49. package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
  50. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  51. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  52. package/.next/server/app/messages.html +1 -1
  53. package/.next/server/app/messages.rsc +1 -1
  54. package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
  55. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  56. package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
  57. package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
  58. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
  59. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  60. package/.next/server/app/node.html +1 -1
  61. package/.next/server/app/node.rsc +1 -1
  62. package/.next/server/app/node.segments/_full.segment.rsc +1 -1
  63. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  64. package/.next/server/app/node.segments/_index.segment.rsc +1 -1
  65. package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
  66. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
  67. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  68. package/.next/server/app/nodes.html +1 -1
  69. package/.next/server/app/nodes.rsc +1 -1
  70. package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
  71. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  72. package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
  73. package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
  74. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
  75. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  76. package/.next/server/app/page_client-reference-manifest.js +1 -1
  77. package/.next/server/app/server-logs.html +1 -1
  78. package/.next/server/app/server-logs.rsc +1 -1
  79. package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
  80. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  81. package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
  82. package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
  83. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  84. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  85. package/.next/server/app/settings/networks.html +1 -1
  86. package/.next/server/app/settings/networks.rsc +1 -1
  87. package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
  88. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  89. package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
  90. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
  91. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  92. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  93. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  94. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  95. package/.next/server/app/settings/tokens.html +1 -1
  96. package/.next/server/app/settings/tokens.rsc +1 -1
  97. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
  98. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  99. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
  100. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
  101. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  102. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  103. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  104. package/.next/server/app/settings.html +2 -2
  105. package/.next/server/app/settings.rsc +2 -2
  106. package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  107. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  108. package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  109. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  110. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  111. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  112. package/.next/server/app/tasks.html +1 -1
  113. package/.next/server/app/tasks.rsc +1 -1
  114. package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
  115. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  116. package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
  117. package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
  118. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  119. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  120. package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js +1 -1
  121. package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js.map +1 -1
  122. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +1 -1
  123. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  124. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  125. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  126. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  127. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  128. package/.next/server/middleware-build-manifest.js +3 -3
  129. package/.next/server/pages/404.html +1 -1
  130. package/.next/server/pages/500.html +1 -1
  131. package/.next/static/chunks/{0-ween0_tzl6i.js → 073xn6q8k49pc.js} +1 -1
  132. package/.next/static/chunks/{05vc~5ivzhpgc.js → 0_u~8hd3~amsg.js} +1 -1
  133. package/.next/static/chunks/{15k~jc44-8zkk.js → 0f50gto~3sfac.js} +1 -1
  134. package/.next/static/chunks/{0.ls.f6hi2_to.js → 0~h74akj4540l.js} +1 -1
  135. package/.next/trace +2 -2
  136. package/.next/trace-build +1 -1
  137. package/app/components/TopoGraph.tsx +11 -2
  138. package/package.json +1 -1
  139. package/scripts/topo-hub-highlight-brightness-test.mjs +84 -0
  140. /package/.next/static/{YpKoYUzqHMas_GjJMzAI6 → Sp9em4VJYXgsTxq4ymR2D}/_buildManifest.js +0 -0
  141. /package/.next/static/{YpKoYUzqHMas_GjJMzAI6 → Sp9em4VJYXgsTxq4ymR2D}/_clientMiddlewareManifest.js +0 -0
  142. /package/.next/static/{YpKoYUzqHMas_GjJMzAI6 → Sp9em4VJYXgsTxq4ymR2D}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.3-preview.87"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.3-preview.88"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.3-preview.87"],70286)},48941,e=>{"use strict";var t=e.i(22381),r=e.i(23910),a=e.i(70286);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#111128] border border-[#2a2a4a] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#2a2a4a] bg-[#111128]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:h||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 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-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[h&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:h?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",a.DASHBOARD_VERSION]})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.3-preview.88"],70286)},48941,e=>{"use strict";var t=e.i(22381),r=e.i(23910),a=e.i(70286);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#111128] border border-[#2a2a4a] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#2a2a4a] bg-[#111128]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:h||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 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-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[h&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:h?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",a.DASHBOARD_VERSION]})]})]})]})}])}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":312,"timestamp":227195331347,"id":4,"parentId":1,"tags":{},"startTime":1779035167578,"traceId":"b5ccd79e9d355ed4"},{"name":"load-custom-routes","duration":517,"timestamp":227195331847,"id":5,"parentId":1,"tags":{},"startTime":1779035167578,"traceId":"b5ccd79e9d355ed4"},{"name":"create-dist-dir","duration":806,"timestamp":227195332412,"id":6,"parentId":1,"tags":{},"startTime":1779035167579,"traceId":"b5ccd79e9d355ed4"},{"name":"clean","duration":39036,"timestamp":227195334123,"id":7,"parentId":1,"tags":{},"startTime":1779035167580,"traceId":"b5ccd79e9d355ed4"},{"name":"discover-routes","duration":12943,"timestamp":227195459523,"id":8,"parentId":1,"tags":{},"startTime":1779035167706,"traceId":"b5ccd79e9d355ed4"},{"name":"create-root-mapping","duration":162,"timestamp":227195472541,"id":9,"parentId":1,"tags":{},"startTime":1779035167719,"traceId":"b5ccd79e9d355ed4"},{"name":"generate-route-types","duration":22798,"timestamp":227195476708,"id":10,"parentId":1,"tags":{},"startTime":1779035167723,"traceId":"b5ccd79e9d355ed4"},{"name":"public-dir-conflict-check","duration":105,"timestamp":227195499600,"id":11,"parentId":1,"tags":{},"startTime":1779035167746,"traceId":"b5ccd79e9d355ed4"},{"name":"generate-routes-manifest","duration":5340,"timestamp":227195499831,"id":12,"parentId":1,"tags":{},"startTime":1779035167746,"traceId":"b5ccd79e9d355ed4"},{"name":"run-turbopack","duration":7950085,"timestamp":227195529871,"id":14,"parentId":1,"tags":{},"startTime":1779035167776,"traceId":"b5ccd79e9d355ed4"},{"name":"turbopack-build-events","duration":75,"timestamp":227195900832,"id":15,"parentId":1,"tags":{},"startTime":1779035168147,"traceId":"b5ccd79e9d355ed4"},{"name":"run-typescript","duration":11096551,"timestamp":227203488764,"id":16,"parentId":1,"tags":{},"startTime":1779035175735,"traceId":"b5ccd79e9d355ed4"},{"name":"generate-required-server-files","duration":3470,"timestamp":227214586781,"id":18,"parentId":1,"tags":{},"startTime":1779035186833,"traceId":"b5ccd79e9d355ed4"},{"name":"check-static-error-page","duration":21260,"timestamp":227214804368,"id":20,"parentId":19,"tags":{},"startTime":1779035187051,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":617487,"timestamp":227214829775,"id":65,"parentId":22,"tags":{},"startTime":1779035187076,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":642136,"timestamp":227214808447,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1779035187055,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":668849,"timestamp":227214830048,"id":67,"parentId":26,"tags":{},"startTime":1779035187076,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":684679,"timestamp":227214814343,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1779035187061,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":685584,"timestamp":227214830716,"id":72,"parentId":32,"tags":{},"startTime":1779035187077,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":700060,"timestamp":227214816329,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1779035187063,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":691606,"timestamp":227214833687,"id":73,"parentId":33,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":708900,"timestamp":227214816470,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1779035187063,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":710271,"timestamp":227214833785,"id":74,"parentId":34,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":727555,"timestamp":227214816588,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1779035187063,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":722014,"timestamp":227214833822,"id":75,"parentId":35,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":739206,"timestamp":227214816710,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1779035187063,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":743713,"timestamp":227214830655,"id":71,"parentId":30,"tags":{},"startTime":1779035187077,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":758614,"timestamp":227214815847,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1779035187062,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":767279,"timestamp":227214830517,"id":70,"parentId":29,"tags":{},"startTime":1779035187077,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":782182,"timestamp":227214815687,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1779035187062,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":764308,"timestamp":227214833845,"id":76,"parentId":36,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":780929,"timestamp":227214817268,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1779035187064,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":772268,"timestamp":227214833893,"id":78,"parentId":38,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":788569,"timestamp":227214817641,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1779035187064,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":786423,"timestamp":227214833877,"id":77,"parentId":37,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":802910,"timestamp":227214817457,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1779035187064,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":787154,"timestamp":227214833911,"id":79,"parentId":39,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":803368,"timestamp":227214817753,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1779035187064,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":787486,"timestamp":227214834028,"id":80,"parentId":40,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":803709,"timestamp":227214817850,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1779035187064,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":791685,"timestamp":227214834073,"id":83,"parentId":45,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":806980,"timestamp":227214818822,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1779035187065,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":798129,"timestamp":227214830158,"id":68,"parentId":27,"tags":{},"startTime":1779035187076,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":813894,"timestamp":227214814487,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1779035187061,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":796085,"timestamp":227214834086,"id":84,"parentId":46,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":811292,"timestamp":227214818918,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1779035187065,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":799504,"timestamp":227214834095,"id":85,"parentId":47,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":812187,"timestamp":227214821467,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1779035187068,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":800627,"timestamp":227214834059,"id":82,"parentId":44,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":816039,"timestamp":227214818691,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1779035187065,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":805532,"timestamp":227214829367,"id":64,"parentId":21,"tags":{},"startTime":1779035187076,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":828232,"timestamp":227214806702,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1779035187053,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":801020,"timestamp":227214834108,"id":86,"parentId":48,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":813564,"timestamp":227214821600,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1779035187068,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":808582,"timestamp":227214830255,"id":69,"parentId":28,"tags":{},"startTime":1779035187077,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":823369,"timestamp":227214815513,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1779035187062,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":796414,"timestamp":227214845728,"id":90,"parentId":24,"tags":{},"startTime":1779035187092,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":832882,"timestamp":227214809305,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1779035187056,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":810442,"timestamp":227214834128,"id":88,"parentId":50,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":822618,"timestamp":227214821997,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1779035187068,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":793062,"timestamp":227214856664,"id":93,"parentId":43,"tags":{},"startTime":1779035187103,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":831361,"timestamp":227214818406,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1779035187065,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":804337,"timestamp":227214847846,"id":92,"parentId":41,"tags":{},"startTime":1779035187094,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":834285,"timestamp":227214817953,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1779035187064,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":835209,"timestamp":227214829911,"id":66,"parentId":25,"tags":{},"startTime":1779035187076,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":853247,"timestamp":227214811922,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1779035187058,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":837179,"timestamp":227214834120,"id":87,"parentId":49,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":849623,"timestamp":227214821724,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1779035187068,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":835708,"timestamp":227214846972,"id":91,"parentId":31,"tags":{},"startTime":1779035187093,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":866743,"timestamp":227214815985,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1779035187062,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":850745,"timestamp":227214834044,"id":81,"parentId":42,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":866617,"timestamp":227214818229,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1779035187065,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":880941,"timestamp":227214834141,"id":89,"parentId":51,"tags":{},"startTime":1779035187080,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":892956,"timestamp":227214822210,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1779035187068,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":861332,"timestamp":227214862906,"id":95,"parentId":52,"tags":{},"startTime":1779035187109,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":901677,"timestamp":227214822623,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1779035187069,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":861477,"timestamp":227214862986,"id":100,"parentId":58,"tags":{},"startTime":1779035187109,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":900235,"timestamp":227214824256,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1779035187071,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":870755,"timestamp":227214867153,"id":101,"parentId":59,"tags":{},"startTime":1779035187113,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":913532,"timestamp":227214824466,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1779035187071,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":871981,"timestamp":227214867193,"id":102,"parentId":61,"tags":{},"startTime":1779035187113,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":914138,"timestamp":227214825084,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1779035187071,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":890146,"timestamp":227214862869,"id":94,"parentId":23,"tags":{},"startTime":1779035187109,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":944364,"timestamp":227214808736,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1779035187055,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":889213,"timestamp":227214867222,"id":104,"parentId":63,"tags":{},"startTime":1779035187113,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":931118,"timestamp":227214825380,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1779035187072,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":889551,"timestamp":227214867205,"id":103,"parentId":62,"tags":{},"startTime":1779035187113,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":931561,"timestamp":227214825240,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1779035187072,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":863685,"timestamp":227214904950,"id":105,"parentId":60,"tags":{},"startTime":1779035187151,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":944061,"timestamp":227214824640,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1779035187071,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":906837,"timestamp":227214862960,"id":98,"parentId":55,"tags":{},"startTime":1779035187109,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":946644,"timestamp":227214823211,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1779035187069,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":823183,"timestamp":227214946792,"id":106,"parentId":57,"tags":{},"startTime":1779035187193,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":946377,"timestamp":227214823654,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1779035187070,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":907623,"timestamp":227214862976,"id":99,"parentId":56,"tags":{},"startTime":1779035187109,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":947219,"timestamp":227214823410,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1779035187070,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":919447,"timestamp":227214862922,"id":96,"parentId":53,"tags":{},"startTime":1779035187109,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":959632,"timestamp":227214822791,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1779035187069,"traceId":"b5ccd79e9d355ed4"},{"name":"is-page-static","duration":920254,"timestamp":227214862933,"id":97,"parentId":54,"tags":{},"startTime":1779035187109,"traceId":"b5ccd79e9d355ed4"},{"name":"check-page","duration":960272,"timestamp":227214822958,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1779035187069,"traceId":"b5ccd79e9d355ed4"},{"name":"static-check","duration":980509,"timestamp":227214802772,"id":19,"parentId":1,"tags":{},"startTime":1779035187049,"traceId":"b5ccd79e9d355ed4"}]
2
- [{"name":"write-routes-manifest","duration":676,"timestamp":227215796735,"id":108,"parentId":1,"tags":{},"startTime":1779035188043,"traceId":"b5ccd79e9d355ed4"},{"name":"load-dotenv","duration":64,"timestamp":227215810154,"id":111,"parentId":110,"tags":{},"startTime":1779035188056,"traceId":"b5ccd79e9d355ed4"},{"name":"run-export-path-map","duration":670,"timestamp":227215813618,"id":112,"parentId":110,"tags":{},"startTime":1779035188060,"traceId":"b5ccd79e9d355ed4"},{"name":"next-export","duration":864314,"timestamp":227215808559,"id":110,"parentId":1,"tags":{},"startTime":1779035188055,"traceId":"b5ccd79e9d355ed4"},{"name":"move-exported-app-not-found-","duration":691,"timestamp":227216678650,"id":113,"parentId":109,"tags":{},"startTime":1779035188925,"traceId":"b5ccd79e9d355ed4"},{"name":"move-exported-app-global-error-","duration":483,"timestamp":227216679466,"id":114,"parentId":109,"tags":{},"startTime":1779035188926,"traceId":"b5ccd79e9d355ed4"},{"name":"static-generation","duration":881994,"timestamp":227215802233,"id":109,"parentId":1,"tags":{},"startTime":1779035188049,"traceId":"b5ccd79e9d355ed4"},{"name":"write-routes-manifest","duration":528,"timestamp":227216684559,"id":115,"parentId":1,"tags":{},"startTime":1779035188931,"traceId":"b5ccd79e9d355ed4"},{"name":"print-tree-view","duration":5666,"timestamp":227216710723,"id":116,"parentId":1,"tags":{},"startTime":1779035188957,"traceId":"b5ccd79e9d355ed4"},{"name":"write-route-bundle-stats","duration":15157,"timestamp":227216716434,"id":117,"parentId":1,"tags":{},"startTime":1779035188963,"traceId":"b5ccd79e9d355ed4"},{"name":"telemetry-flush","duration":21615,"timestamp":227216731630,"id":118,"parentId":1,"tags":{},"startTime":1779035188978,"traceId":"b5ccd79e9d355ed4"},{"name":"next-build","duration":21483239,"timestamp":227195270048,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779035167516,"traceId":"b5ccd79e9d355ed4"}]
1
+ [{"name":"generate-buildid","duration":350,"timestamp":227480204533,"id":4,"parentId":1,"tags":{},"startTime":1779035452451,"traceId":"13ba273ff3c2930b"},{"name":"load-custom-routes","duration":647,"timestamp":227480205131,"id":5,"parentId":1,"tags":{},"startTime":1779035452451,"traceId":"13ba273ff3c2930b"},{"name":"create-dist-dir","duration":1027,"timestamp":227480205842,"id":6,"parentId":1,"tags":{},"startTime":1779035452452,"traceId":"13ba273ff3c2930b"},{"name":"clean","duration":44518,"timestamp":227480207778,"id":7,"parentId":1,"tags":{},"startTime":1779035452454,"traceId":"13ba273ff3c2930b"},{"name":"discover-routes","duration":29031,"timestamp":227480345829,"id":8,"parentId":1,"tags":{},"startTime":1779035452592,"traceId":"13ba273ff3c2930b"},{"name":"create-root-mapping","duration":210,"timestamp":227480374930,"id":9,"parentId":1,"tags":{},"startTime":1779035452621,"traceId":"13ba273ff3c2930b"},{"name":"generate-route-types","duration":22377,"timestamp":227480377911,"id":10,"parentId":1,"tags":{},"startTime":1779035452624,"traceId":"13ba273ff3c2930b"},{"name":"public-dir-conflict-check","duration":101,"timestamp":227480400390,"id":11,"parentId":1,"tags":{},"startTime":1779035452647,"traceId":"13ba273ff3c2930b"},{"name":"generate-routes-manifest","duration":6681,"timestamp":227480400613,"id":12,"parentId":1,"tags":{},"startTime":1779035452647,"traceId":"13ba273ff3c2930b"},{"name":"run-turbopack","duration":6236999,"timestamp":227480424300,"id":14,"parentId":1,"tags":{},"startTime":1779035452671,"traceId":"13ba273ff3c2930b"},{"name":"turbopack-build-events","duration":79,"timestamp":227480734543,"id":15,"parentId":1,"tags":{},"startTime":1779035452981,"traceId":"13ba273ff3c2930b"},{"name":"run-typescript","duration":9659185,"timestamp":227486673513,"id":16,"parentId":1,"tags":{},"startTime":1779035458920,"traceId":"13ba273ff3c2930b"},{"name":"generate-required-server-files","duration":2959,"timestamp":227496333838,"id":18,"parentId":1,"tags":{},"startTime":1779035468580,"traceId":"13ba273ff3c2930b"},{"name":"check-static-error-page","duration":12532,"timestamp":227496504607,"id":20,"parentId":19,"tags":{},"startTime":1779035468751,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":489239,"timestamp":227496520142,"id":65,"parentId":22,"tags":{},"startTime":1779035468766,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":502580,"timestamp":227496506963,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1779035468753,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":586339,"timestamp":227496519039,"id":64,"parentId":21,"tags":{},"startTime":1779035468765,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":600890,"timestamp":227496505804,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1779035468752,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":589845,"timestamp":227496520553,"id":69,"parentId":28,"tags":{},"startTime":1779035468767,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":600296,"timestamp":227496510174,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1779035468756,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":612747,"timestamp":227496525375,"id":73,"parentId":33,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":627256,"timestamp":227496510948,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1779035468757,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":621056,"timestamp":227496520247,"id":66,"parentId":25,"tags":{},"startTime":1779035468767,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":631587,"timestamp":227496509784,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1779035468756,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":623529,"timestamp":227496525493,"id":75,"parentId":35,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":637909,"timestamp":227496511190,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1779035468757,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":629276,"timestamp":227496525120,"id":71,"parentId":30,"tags":{},"startTime":1779035468771,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":644025,"timestamp":227496510441,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1779035468757,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":649645,"timestamp":227496525455,"id":74,"parentId":34,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":664087,"timestamp":227496511084,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1779035468757,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":650213,"timestamp":227496525212,"id":72,"parentId":32,"tags":{},"startTime":1779035468771,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":664647,"timestamp":227496510833,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1779035468757,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":650615,"timestamp":227496525566,"id":78,"parentId":38,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":664436,"timestamp":227496511786,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1779035468758,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":656945,"timestamp":227496525595,"id":80,"parentId":40,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":670632,"timestamp":227496511953,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1779035468758,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":659359,"timestamp":227496525519,"id":76,"parentId":36,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":673400,"timestamp":227496511543,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1779035468758,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":663231,"timestamp":227496525581,"id":79,"parentId":39,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":676986,"timestamp":227496511868,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1779035468758,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":666035,"timestamp":227496525547,"id":77,"parentId":37,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":679944,"timestamp":227496511690,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1779035468758,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":670167,"timestamp":227496525637,"id":83,"parentId":45,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":683105,"timestamp":227496512751,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1779035468759,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":670482,"timestamp":227496525621,"id":82,"parentId":44,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":683533,"timestamp":227496512617,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1779035468759,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":672756,"timestamp":227496525606,"id":81,"parentId":42,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":686162,"timestamp":227496512266,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1779035468759,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":673665,"timestamp":227496525664,"id":85,"parentId":47,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":686437,"timestamp":227496512947,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1779035468759,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":677653,"timestamp":227496525682,"id":86,"parentId":48,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":690333,"timestamp":227496513047,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1779035468759,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":677828,"timestamp":227496525698,"id":87,"parentId":49,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":689077,"timestamp":227496514480,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1779035468761,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":678431,"timestamp":227496525710,"id":88,"parentId":50,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":689586,"timestamp":227496514597,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1779035468761,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":679735,"timestamp":227496525726,"id":89,"parentId":51,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":690844,"timestamp":227496514663,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1779035468761,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":674205,"timestamp":227496534313,"id":91,"parentId":31,"tags":{},"startTime":1779035468781,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":697992,"timestamp":227496510569,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1779035468757,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":676086,"timestamp":227496533142,"id":90,"parentId":24,"tags":{},"startTime":1779035468779,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":701650,"timestamp":227496507618,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1779035468754,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":676556,"timestamp":227496536534,"id":93,"parentId":43,"tags":{},"startTime":1779035468783,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":700764,"timestamp":227496512368,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1779035468759,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":681470,"timestamp":227496535221,"id":92,"parentId":41,"tags":{},"startTime":1779035468781,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":704682,"timestamp":227496512050,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1779035468758,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":693923,"timestamp":227496525648,"id":84,"parentId":46,"tags":{},"startTime":1779035468772,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":706764,"timestamp":227496512851,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1779035468759,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":682623,"timestamp":227496538905,"id":95,"parentId":52,"tags":{},"startTime":1779035468785,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":706541,"timestamp":227496515028,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1779035468761,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":690976,"timestamp":227496538980,"id":98,"parentId":55,"tags":{},"startTime":1779035468785,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":714582,"timestamp":227496515417,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1779035468762,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":702073,"timestamp":227496538997,"id":99,"parentId":56,"tags":{},"startTime":1779035468785,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":725573,"timestamp":227496515557,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1779035468762,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":702572,"timestamp":227496542577,"id":100,"parentId":58,"tags":{},"startTime":1779035468789,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":729039,"timestamp":227496516153,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1779035468762,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":711403,"timestamp":227496542728,"id":101,"parentId":59,"tags":{},"startTime":1779035468789,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":737870,"timestamp":227496516310,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1779035468763,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":722832,"timestamp":227496542747,"id":102,"parentId":61,"tags":{},"startTime":1779035468789,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":748925,"timestamp":227496516723,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1779035468763,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":736006,"timestamp":227496538877,"id":94,"parentId":23,"tags":{},"startTime":1779035468785,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":767679,"timestamp":227496507269,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1779035468754,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":741968,"timestamp":227496542775,"id":104,"parentId":63,"tags":{},"startTime":1779035468789,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":767886,"timestamp":227496516924,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1779035468763,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":746025,"timestamp":227496538950,"id":96,"parentId":53,"tags":{},"startTime":1779035468785,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":769849,"timestamp":227496515169,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1779035468761,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":748259,"timestamp":227496538968,"id":97,"parentId":54,"tags":{},"startTime":1779035468785,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":771995,"timestamp":227496515278,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1779035468762,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":728222,"timestamp":227496564663,"id":105,"parentId":57,"tags":{},"startTime":1779035468811,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":777203,"timestamp":227496515722,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1779035468762,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":750583,"timestamp":227496542761,"id":103,"parentId":62,"tags":{},"startTime":1779035468789,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":776556,"timestamp":227496516829,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1779035468763,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":707516,"timestamp":227496589104,"id":106,"parentId":60,"tags":{},"startTime":1779035468835,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":780232,"timestamp":227496516435,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1779035468763,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":778107,"timestamp":227496520449,"id":68,"parentId":27,"tags":{},"startTime":1779035468767,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":788563,"timestamp":227496510041,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1779035468756,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":797091,"timestamp":227496520870,"id":70,"parentId":29,"tags":{},"startTime":1779035468767,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":807761,"timestamp":227496510295,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1779035468757,"traceId":"13ba273ff3c2930b"},{"name":"is-page-static","duration":837100,"timestamp":227496520361,"id":67,"parentId":26,"tags":{},"startTime":1779035468767,"traceId":"13ba273ff3c2930b"},{"name":"check-page","duration":847611,"timestamp":227496509915,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1779035468756,"traceId":"13ba273ff3c2930b"},{"name":"static-check","duration":853788,"timestamp":227496503790,"id":19,"parentId":1,"tags":{},"startTime":1779035468750,"traceId":"13ba273ff3c2930b"}]
2
+ [{"name":"write-routes-manifest","duration":1048,"timestamp":227497368151,"id":108,"parentId":1,"tags":{},"startTime":1779035469614,"traceId":"13ba273ff3c2930b"},{"name":"load-dotenv","duration":93,"timestamp":227497383962,"id":111,"parentId":110,"tags":{},"startTime":1779035469630,"traceId":"13ba273ff3c2930b"},{"name":"run-export-path-map","duration":619,"timestamp":227497387036,"id":112,"parentId":110,"tags":{},"startTime":1779035469633,"traceId":"13ba273ff3c2930b"},{"name":"next-export","duration":636817,"timestamp":227497382048,"id":110,"parentId":1,"tags":{},"startTime":1779035469628,"traceId":"13ba273ff3c2930b"},{"name":"move-exported-app-not-found-","duration":526,"timestamp":227498022269,"id":113,"parentId":109,"tags":{},"startTime":1779035470269,"traceId":"13ba273ff3c2930b"},{"name":"move-exported-app-global-error-","duration":600,"timestamp":227498022905,"id":114,"parentId":109,"tags":{},"startTime":1779035470269,"traceId":"13ba273ff3c2930b"},{"name":"static-generation","duration":651362,"timestamp":227497374805,"id":109,"parentId":1,"tags":{},"startTime":1779035469621,"traceId":"13ba273ff3c2930b"},{"name":"write-routes-manifest","duration":406,"timestamp":227498026424,"id":115,"parentId":1,"tags":{},"startTime":1779035470273,"traceId":"13ba273ff3c2930b"},{"name":"print-tree-view","duration":5105,"timestamp":227498047160,"id":116,"parentId":1,"tags":{},"startTime":1779035470293,"traceId":"13ba273ff3c2930b"},{"name":"write-route-bundle-stats","duration":15227,"timestamp":227498052307,"id":117,"parentId":1,"tags":{},"startTime":1779035470299,"traceId":"13ba273ff3c2930b"},{"name":"telemetry-flush","duration":38785,"timestamp":227498067573,"id":118,"parentId":1,"tags":{},"startTime":1779035470314,"traceId":"13ba273ff3c2930b"},{"name":"next-build","duration":17957850,"timestamp":227480148559,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779035452395,"traceId":"13ba273ff3c2930b"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":7950085,"timestamp":227195529871,"id":14,"parentId":1,"tags":{},"startTime":1779035167776,"traceId":"b5ccd79e9d355ed4"},{"name":"turbopack-build-events","duration":75,"timestamp":227195900832,"id":15,"parentId":1,"tags":{},"startTime":1779035168147,"traceId":"b5ccd79e9d355ed4"},{"name":"run-typescript","duration":11096551,"timestamp":227203488764,"id":16,"parentId":1,"tags":{},"startTime":1779035175735,"traceId":"b5ccd79e9d355ed4"},{"name":"static-check","duration":980509,"timestamp":227214802772,"id":19,"parentId":1,"tags":{},"startTime":1779035187049,"traceId":"b5ccd79e9d355ed4"},{"name":"static-generation","duration":881994,"timestamp":227215802233,"id":109,"parentId":1,"tags":{},"startTime":1779035188049,"traceId":"b5ccd79e9d355ed4"},{"name":"telemetry-flush","duration":21615,"timestamp":227216731630,"id":118,"parentId":1,"tags":{},"startTime":1779035188978,"traceId":"b5ccd79e9d355ed4"},{"name":"next-build","duration":21483239,"timestamp":227195270048,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779035167516,"traceId":"b5ccd79e9d355ed4"}]
1
+ [{"name":"run-turbopack","duration":6236999,"timestamp":227480424300,"id":14,"parentId":1,"tags":{},"startTime":1779035452671,"traceId":"13ba273ff3c2930b"},{"name":"turbopack-build-events","duration":79,"timestamp":227480734543,"id":15,"parentId":1,"tags":{},"startTime":1779035452981,"traceId":"13ba273ff3c2930b"},{"name":"run-typescript","duration":9659185,"timestamp":227486673513,"id":16,"parentId":1,"tags":{},"startTime":1779035458920,"traceId":"13ba273ff3c2930b"},{"name":"static-check","duration":853788,"timestamp":227496503790,"id":19,"parentId":1,"tags":{},"startTime":1779035468750,"traceId":"13ba273ff3c2930b"},{"name":"static-generation","duration":651362,"timestamp":227497374805,"id":109,"parentId":1,"tags":{},"startTime":1779035469621,"traceId":"13ba273ff3c2930b"},{"name":"telemetry-flush","duration":38785,"timestamp":227498067573,"id":118,"parentId":1,"tags":{},"startTime":1779035470314,"traceId":"13ba273ff3c2930b"},{"name":"next-build","duration":17957850,"timestamp":227480148559,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779035452395,"traceId":"13ba273ff3c2930b"}]
@@ -7978,6 +7978,15 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
7978
7978
  data-topo-hub-highlight-recede={hubRecede ? 'true' : 'false'}
7979
7979
  data-topo-hub-highlight-hovered={!reducedMotion && hoveredHub ? 'true' : 'false'}
7980
7980
  data-topo-hub-highlight-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
7981
+ /* Round 574 — hub-highlight joins per-element brightness
7982
+ family at 13th anchor. Stacks brightness(1.15) onto
7983
+ R532's drop-shadow filter — same R564/R570/R571/R572/
7984
+ R573 pattern (drop-shadow + brightness in one filter
7985
+ chain). Hub idle disc now has 3 active hub-hover
7986
+ axes: R511 opacity 0.95 → 1.0 + R529 r 5.5 → 6 +
7987
+ R574 brightness(1.15). data-topo-hub-highlight-
7988
+ brightness attr surfaces the lift. */
7989
+ data-topo-hub-highlight-brightness={!reducedMotion && hoveredHub ? '1.15' : '1'}
7981
7990
  /* Round 510 / Loop — R509 follow-on: theme-toggle fill
7982
7991
  ease. Pre-R510 the hub-highlight transition spec only
7983
7992
  listed `opacity 300ms ease-out`. When R509 introduced
@@ -8022,8 +8031,8 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
8022
8031
  r: `${highlightR}px`,
8023
8032
  filter: !reducedMotion && hoveredHub
8024
8033
  ? (isLight
8025
- ? 'drop-shadow(0 0 2px rgba(16, 185, 129, 0.6))'
8026
- : 'drop-shadow(0 0 3px rgba(52, 211, 153, 0.6))')
8034
+ ? 'drop-shadow(0 0 2px rgba(16, 185, 129, 0.6)) brightness(1.15)'
8035
+ : 'drop-shadow(0 0 3px rgba(52, 211, 153, 0.6)) brightness(1.15)')
8027
8036
  : undefined,
8028
8037
  transition: 'opacity 300ms ease-out, fill 200ms ease-out, r 200ms ease-out, filter 200ms ease-out',
8029
8038
  } as React.CSSProperties}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network-dashboard",
3
- "version": "0.5.3-preview.87",
3
+ "version": "0.5.3-preview.88",
4
4
  "description": "Agent Network Dashboard \u2014 Web UI for managing AI Agent networks",
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -0,0 +1,84 @@
1
+ /* Round 574 verification: hub-highlight disc stacks brightness(1.15)
2
+ * onto R532 drop-shadow on hub-hover. 13th anchor in per-element
3
+ * brightness family.
4
+ *
5
+ * Mock: 0 working sessions → hub-highlight is visible (idle state).
6
+ *
7
+ * Test phases:
8
+ * 1. rest: filter='none' (no hover), brightness-attr='1'
9
+ * 2. source-side regex confirms stacked filter with brightness +
10
+ * data-attr conditional
11
+ */
12
+ import { chromium } from 'playwright';
13
+ import { readFileSync } from 'node:fs';
14
+
15
+ const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
16
+ const fresh = new Date(Date.now() - 60 * 1000).toISOString();
17
+
18
+ const browser = await chromium.launch({ headless: true });
19
+ const ctx = await browser.newContext({ viewport: { width: 1500, height: 1200 } });
20
+ await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
21
+ await ctx.addInitScript(() => {
22
+ try {
23
+ localStorage.setItem('anet-theme', 'cyber');
24
+ localStorage.setItem('anet-topo-layout', 'ring');
25
+ sessionStorage.setItem('anet_v3_auth', '1');
26
+ } catch {}
27
+ });
28
+ await ctx.route('**/api/hub/status*', async (route) => {
29
+ const r = await route.fetch();
30
+ const b = await r.json();
31
+ const nid = (b.sessions || [])[0]?.network_id || 'default';
32
+ const mk = (alias) => ({
33
+ alias, status: 'idle', model: 'claude-opus-4', runtime: 'claude-code-cli',
34
+ network_id: nid, project_dir: null,
35
+ created_at: fresh, updated_at: fresh, last_seen_at: fresh,
36
+ });
37
+ // All idle → workingCount=0 → hub-highlight visible
38
+ await route.fulfill({ response: r, json: { ...b, sessions: [mk('a·1'), mk('a·2')] } });
39
+ });
40
+ await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
41
+ await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
42
+ const page = await ctx.newPage();
43
+ await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
44
+ await page.waitForSelector('[data-topo-hub-highlight]', { timeout: 15000 });
45
+ await page.waitForTimeout(500);
46
+
47
+ const rest = await page.evaluate(() => {
48
+ const el = document.querySelector('[data-topo-hub-highlight]');
49
+ if (!el) return null;
50
+ const cs = getComputedStyle(el);
51
+ return {
52
+ filter: cs.filter,
53
+ transitionProperty: cs.transitionProperty,
54
+ brightnessAttr: el.getAttribute('data-topo-hub-highlight-brightness'),
55
+ glowAttr: el.getAttribute('data-topo-hub-highlight-glow'),
56
+ hoveredAttr: el.getAttribute('data-topo-hub-highlight-hovered'),
57
+ visibleAttr: el.getAttribute('data-topo-hub-highlight-visible'),
58
+ };
59
+ });
60
+
61
+ await browser.close();
62
+
63
+ const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
64
+ // Both theme branches now include brightness(1.15)
65
+ const sourceLightFilter = /'drop-shadow\(0 0 2px rgba\(16, 185, 129, 0\.6\)\) brightness\(1\.15\)'/.test(src);
66
+ const sourceCyberFilter = /'drop-shadow\(0 0 3px rgba\(52, 211, 153, 0\.6\)\) brightness\(1\.15\)'/.test(src);
67
+ const sourceAttr = /data-topo-hub-highlight-brightness=\{!reducedMotion && hoveredHub \? '1\.15' : '1'\}/.test(src);
68
+
69
+ const results = {
70
+ visible_true: rest?.visibleAttr === 'true',
71
+ rest_filter_none: rest?.filter === 'none',
72
+ rest_brightness_1: rest?.brightnessAttr === '1',
73
+ rest_glow_false: rest?.glowAttr === 'false',
74
+ rest_hovered_false: rest?.hoveredAttr === 'false',
75
+ transition_has_filter: /filter/.test(rest?.transitionProperty || ''),
76
+ source_light_filter: sourceLightFilter,
77
+ source_cyber_filter: sourceCyberFilter,
78
+ source_attr: sourceAttr,
79
+ };
80
+ const ok = Object.values(results).every(Boolean);
81
+ console.log(`${ok ? '✅' : '❌'} R574 hub-highlight stacked brightness (13th anchor):`,
82
+ JSON.stringify(results, null, 2),
83
+ `\n rest: ${JSON.stringify(rest)}`);
84
+ process.exit(ok ? 0 : 1);