@sleep2agi/agent-network-dashboard 0.5.1-preview.24 → 0.5.1-preview.26

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 (140) 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 +4 -4
  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/agent-network-dashboard_09kk21a._.js +1 -1
  121. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  122. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  123. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  124. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  125. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  126. package/.next/server/middleware-build-manifest.js +3 -3
  127. package/.next/server/pages/404.html +1 -1
  128. package/.next/server/pages/500.html +1 -1
  129. package/.next/static/chunks/{0_pwgks1ba5.2.js → 0j4g3r-r~p2gl.js} +1 -1
  130. package/.next/static/chunks/{13elwb2.~0dg~.js → 0mxvuhzwb7ub0.js} +3 -3
  131. package/.next/static/chunks/{0os5rr8.khdek.js → 0nv_gtlouhfcl.js} +1 -1
  132. package/.next/trace +2 -2
  133. package/.next/trace-build +1 -1
  134. package/app/components/TopoGraph.tsx +45 -1
  135. package/package.json +1 -1
  136. package/scripts/topo-hub-highlight-radius-test.mjs +90 -0
  137. package/scripts/topo-legend-label-fontweight-test.mjs +94 -0
  138. /package/.next/static/{FyD6uUTeO3NmWPtYDuSh1 → fap0O0hnLK07fqc6n_xLk}/_buildManifest.js +0 -0
  139. /package/.next/static/{FyD6uUTeO3NmWPtYDuSh1 → fap0O0hnLK07fqc6n_xLk}/_clientMiddlewareManifest.js +0 -0
  140. /package/.next/static/{FyD6uUTeO3NmWPtYDuSh1 → fap0O0hnLK07fqc6n_xLk}/_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.1-preview.23"],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.1-preview.25"],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 →"})]})]})]})]})]})}])}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":394,"timestamp":137413739936,"id":4,"parentId":1,"tags":{},"startTime":1778945385986,"traceId":"1e497de1492343f5"},{"name":"load-custom-routes","duration":828,"timestamp":137413740536,"id":5,"parentId":1,"tags":{},"startTime":1778945385987,"traceId":"1e497de1492343f5"},{"name":"create-dist-dir","duration":1117,"timestamp":137413741428,"id":6,"parentId":1,"tags":{},"startTime":1778945385988,"traceId":"1e497de1492343f5"},{"name":"clean","duration":38335,"timestamp":137413743403,"id":7,"parentId":1,"tags":{},"startTime":1778945385990,"traceId":"1e497de1492343f5"},{"name":"discover-routes","duration":11700,"timestamp":137413872867,"id":8,"parentId":1,"tags":{},"startTime":1778945386119,"traceId":"1e497de1492343f5"},{"name":"create-root-mapping","duration":124,"timestamp":137413884626,"id":9,"parentId":1,"tags":{},"startTime":1778945386131,"traceId":"1e497de1492343f5"},{"name":"generate-route-types","duration":32183,"timestamp":137413887198,"id":10,"parentId":1,"tags":{},"startTime":1778945386133,"traceId":"1e497de1492343f5"},{"name":"public-dir-conflict-check","duration":92,"timestamp":137413919458,"id":11,"parentId":1,"tags":{},"startTime":1778945386166,"traceId":"1e497de1492343f5"},{"name":"generate-routes-manifest","duration":4767,"timestamp":137413919663,"id":12,"parentId":1,"tags":{},"startTime":1778945386166,"traceId":"1e497de1492343f5"},{"name":"run-turbopack","duration":5975657,"timestamp":137413929814,"id":14,"parentId":1,"tags":{},"startTime":1778945386176,"traceId":"1e497de1492343f5"},{"name":"turbopack-build-events","duration":101,"timestamp":137414226030,"id":15,"parentId":1,"tags":{},"startTime":1778945386472,"traceId":"1e497de1492343f5"},{"name":"run-typescript","duration":9533343,"timestamp":137419913931,"id":16,"parentId":1,"tags":{},"startTime":1778945392160,"traceId":"1e497de1492343f5"},{"name":"generate-required-server-files","duration":2430,"timestamp":137429448165,"id":18,"parentId":1,"tags":{},"startTime":1778945401694,"traceId":"1e497de1492343f5"},{"name":"check-static-error-page","duration":13667,"timestamp":137429608162,"id":20,"parentId":19,"tags":{},"startTime":1778945401854,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":497181,"timestamp":137429624998,"id":65,"parentId":22,"tags":{},"startTime":1778945401871,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":510934,"timestamp":137429611403,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778945401858,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":572527,"timestamp":137429624617,"id":64,"parentId":21,"tags":{},"startTime":1778945401871,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":587513,"timestamp":137429609724,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778945401856,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":601372,"timestamp":137429625287,"id":67,"parentId":26,"tags":{},"startTime":1778945401872,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":611708,"timestamp":137429615050,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778945401861,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":601488,"timestamp":137429625502,"id":69,"parentId":28,"tags":{},"startTime":1778945401872,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":611732,"timestamp":137429615312,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778945401862,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":607191,"timestamp":137429626189,"id":73,"parentId":33,"tags":{},"startTime":1778945401872,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":617376,"timestamp":137429616061,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778945401862,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":617383,"timestamp":137429625176,"id":66,"parentId":25,"tags":{},"startTime":1778945401871,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":627789,"timestamp":137429614843,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778945401861,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":622304,"timestamp":137429626315,"id":76,"parentId":36,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":631848,"timestamp":137429616836,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778945401863,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":624369,"timestamp":137429625929,"id":71,"parentId":30,"tags":{},"startTime":1778945401872,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":634773,"timestamp":137429615573,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778945401862,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":638562,"timestamp":137429626267,"id":74,"parentId":34,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":648715,"timestamp":137429616185,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778945401862,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":649095,"timestamp":137429626296,"id":75,"parentId":35,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":659129,"timestamp":137429616315,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778945401863,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":665214,"timestamp":137429626341,"id":77,"parentId":37,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":674582,"timestamp":137429617045,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778945401863,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":666376,"timestamp":137429626025,"id":72,"parentId":32,"tags":{},"startTime":1778945401872,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":676521,"timestamp":137429615942,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778945401862,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":669356,"timestamp":137429626378,"id":80,"parentId":40,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":678460,"timestamp":137429617338,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778945401864,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":670805,"timestamp":137429626365,"id":79,"parentId":39,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":679947,"timestamp":137429617269,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778945401864,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":672699,"timestamp":137429626404,"id":82,"parentId":44,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":681259,"timestamp":137429617885,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778945401864,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":674190,"timestamp":137429626418,"id":83,"parentId":45,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":682681,"timestamp":137429617965,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778945401864,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":675456,"timestamp":137429626431,"id":84,"parentId":46,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":683881,"timestamp":137429618058,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778945401864,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":680313,"timestamp":137429626452,"id":86,"parentId":48,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":688576,"timestamp":137429618227,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778945401864,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":680490,"timestamp":137429626439,"id":85,"parentId":47,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":688799,"timestamp":137429618156,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778945401864,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":684600,"timestamp":137429626465,"id":87,"parentId":49,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":692767,"timestamp":137429618345,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778945401865,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":685576,"timestamp":137429626353,"id":78,"parentId":38,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":694797,"timestamp":137429617169,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778945401863,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":672969,"timestamp":137429640320,"id":90,"parentId":24,"tags":{},"startTime":1778945401887,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":701416,"timestamp":137429611929,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778945401858,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":687825,"timestamp":137429626474,"id":88,"parentId":50,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":695912,"timestamp":137429618432,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778945401865,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":691177,"timestamp":137429625394,"id":68,"parentId":27,"tags":{},"startTime":1778945401872,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":701425,"timestamp":137429615186,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778945401861,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":690390,"timestamp":137429626391,"id":81,"parentId":42,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":699243,"timestamp":137429617588,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778945401864,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":668664,"timestamp":137429649405,"id":91,"parentId":31,"tags":{},"startTime":1778945401896,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":702396,"timestamp":137429615712,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778945401862,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":665271,"timestamp":137429653236,"id":93,"parentId":43,"tags":{},"startTime":1778945401900,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":700873,"timestamp":137429617676,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778945401864,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":698307,"timestamp":137429625776,"id":70,"parentId":29,"tags":{},"startTime":1778945401872,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":708692,"timestamp":137429615433,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778945401862,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":698428,"timestamp":137429626489,"id":89,"parentId":51,"tags":{},"startTime":1778945401873,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":706465,"timestamp":137429618497,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778945401865,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":677871,"timestamp":137429650569,"id":92,"parentId":41,"tags":{},"startTime":1778945401897,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":711091,"timestamp":137429617395,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778945401864,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":670669,"timestamp":137429662278,"id":99,"parentId":56,"tags":{},"startTime":1778945401909,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":713543,"timestamp":137429619445,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778945401866,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":677903,"timestamp":137429662403,"id":101,"parentId":59,"tags":{},"startTime":1778945401909,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":719960,"timestamp":137429620387,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778945401867,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":685605,"timestamp":137429662424,"id":102,"parentId":61,"tags":{},"startTime":1778945401909,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":726961,"timestamp":137429621135,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778945401867,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":699891,"timestamp":137429662442,"id":103,"parentId":62,"tags":{},"startTime":1778945401909,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":741060,"timestamp":137429621323,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778945401868,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":709650,"timestamp":137429662453,"id":104,"parentId":63,"tags":{},"startTime":1778945401909,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":750657,"timestamp":137429621503,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778945401868,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":715026,"timestamp":137429662247,"id":97,"parentId":54,"tags":{},"startTime":1778945401909,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":758242,"timestamp":137429619096,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778945401865,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":634647,"timestamp":137429750846,"id":106,"parentId":57,"tags":{},"startTime":1778945401997,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":765879,"timestamp":137429619668,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778945401866,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":724763,"timestamp":137429662236,"id":96,"parentId":53,"tags":{},"startTime":1778945401909,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":768142,"timestamp":137429618947,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778945401865,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":648535,"timestamp":137429739977,"id":105,"parentId":60,"tags":{},"startTime":1778945401986,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":767940,"timestamp":137429620610,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778945401867,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":726915,"timestamp":137429662219,"id":95,"parentId":52,"tags":{},"startTime":1778945401908,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":770351,"timestamp":137429618830,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778945401865,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":741309,"timestamp":137429662293,"id":100,"parentId":58,"tags":{},"startTime":1778945401909,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":783516,"timestamp":137429620146,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778945401866,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":751025,"timestamp":137429662262,"id":98,"parentId":55,"tags":{},"startTime":1778945401909,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":794068,"timestamp":137429619270,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778945401866,"traceId":"1e497de1492343f5"},{"name":"is-page-static","duration":752136,"timestamp":137429662184,"id":94,"parentId":23,"tags":{},"startTime":1778945401908,"traceId":"1e497de1492343f5"},{"name":"check-page","duration":802699,"timestamp":137429611672,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778945401858,"traceId":"1e497de1492343f5"},{"name":"static-check","duration":807289,"timestamp":137429607138,"id":19,"parentId":1,"tags":{},"startTime":1778945401853,"traceId":"1e497de1492343f5"}]
2
- [{"name":"write-routes-manifest","duration":660,"timestamp":137430428548,"id":108,"parentId":1,"tags":{},"startTime":1778945402675,"traceId":"1e497de1492343f5"},{"name":"load-dotenv","duration":49,"timestamp":137430440915,"id":111,"parentId":110,"tags":{},"startTime":1778945402687,"traceId":"1e497de1492343f5"},{"name":"run-export-path-map","duration":831,"timestamp":137430443638,"id":112,"parentId":110,"tags":{},"startTime":1778945402690,"traceId":"1e497de1492343f5"},{"name":"next-export","duration":609643,"timestamp":137430439580,"id":110,"parentId":1,"tags":{},"startTime":1778945402686,"traceId":"1e497de1492343f5"},{"name":"move-exported-app-not-found-","duration":492,"timestamp":137431052436,"id":113,"parentId":109,"tags":{},"startTime":1778945403299,"traceId":"1e497de1492343f5"},{"name":"move-exported-app-global-error-","duration":365,"timestamp":137431053042,"id":114,"parentId":109,"tags":{},"startTime":1778945403299,"traceId":"1e497de1492343f5"},{"name":"static-generation","duration":621825,"timestamp":137430433529,"id":109,"parentId":1,"tags":{},"startTime":1778945402680,"traceId":"1e497de1492343f5"},{"name":"write-routes-manifest","duration":415,"timestamp":137431055579,"id":115,"parentId":1,"tags":{},"startTime":1778945403302,"traceId":"1e497de1492343f5"},{"name":"print-tree-view","duration":4516,"timestamp":137431073170,"id":116,"parentId":1,"tags":{},"startTime":1778945403319,"traceId":"1e497de1492343f5"},{"name":"write-route-bundle-stats","duration":13914,"timestamp":137431077727,"id":117,"parentId":1,"tags":{},"startTime":1778945403324,"traceId":"1e497de1492343f5"},{"name":"telemetry-flush","duration":34872,"timestamp":137431091683,"id":118,"parentId":1,"tags":{},"startTime":1778945403338,"traceId":"1e497de1492343f5"},{"name":"next-build","duration":17443541,"timestamp":137413683052,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778945385929,"traceId":"1e497de1492343f5"}]
1
+ [{"name":"generate-buildid","duration":345,"timestamp":138005103385,"id":4,"parentId":1,"tags":{},"startTime":1778945977350,"traceId":"8813b692b7cc8ea3"},{"name":"load-custom-routes","duration":680,"timestamp":138005103946,"id":5,"parentId":1,"tags":{},"startTime":1778945977350,"traceId":"8813b692b7cc8ea3"},{"name":"create-dist-dir","duration":979,"timestamp":138005104693,"id":6,"parentId":1,"tags":{},"startTime":1778945977351,"traceId":"8813b692b7cc8ea3"},{"name":"clean","duration":37935,"timestamp":138005106494,"id":7,"parentId":1,"tags":{},"startTime":1778945977353,"traceId":"8813b692b7cc8ea3"},{"name":"discover-routes","duration":22064,"timestamp":138005230791,"id":8,"parentId":1,"tags":{},"startTime":1778945977477,"traceId":"8813b692b7cc8ea3"},{"name":"create-root-mapping","duration":141,"timestamp":138005252914,"id":9,"parentId":1,"tags":{},"startTime":1778945977499,"traceId":"8813b692b7cc8ea3"},{"name":"generate-route-types","duration":26589,"timestamp":138005255476,"id":10,"parentId":1,"tags":{},"startTime":1778945977502,"traceId":"8813b692b7cc8ea3"},{"name":"public-dir-conflict-check","duration":103,"timestamp":138005282142,"id":11,"parentId":1,"tags":{},"startTime":1778945977528,"traceId":"8813b692b7cc8ea3"},{"name":"generate-routes-manifest","duration":4864,"timestamp":138005282352,"id":12,"parentId":1,"tags":{},"startTime":1778945977529,"traceId":"8813b692b7cc8ea3"},{"name":"run-turbopack","duration":6261638,"timestamp":138005299344,"id":14,"parentId":1,"tags":{},"startTime":1778945977546,"traceId":"8813b692b7cc8ea3"},{"name":"turbopack-build-events","duration":101,"timestamp":138005594356,"id":15,"parentId":1,"tags":{},"startTime":1778945977841,"traceId":"8813b692b7cc8ea3"},{"name":"run-typescript","duration":9603398,"timestamp":138011584274,"id":16,"parentId":1,"tags":{},"startTime":1778945983831,"traceId":"8813b692b7cc8ea3"},{"name":"generate-required-server-files","duration":2279,"timestamp":138021188849,"id":18,"parentId":1,"tags":{},"startTime":1778945993435,"traceId":"8813b692b7cc8ea3"},{"name":"check-static-error-page","duration":13455,"timestamp":138021359720,"id":20,"parentId":19,"tags":{},"startTime":1778945993606,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":491533,"timestamp":138021375259,"id":65,"parentId":22,"tags":{},"startTime":1778945993622,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":504960,"timestamp":138021362016,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778945993608,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":593408,"timestamp":138021376617,"id":69,"parentId":28,"tags":{},"startTime":1778945993623,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":604771,"timestamp":138021365358,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778945993612,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":609867,"timestamp":138021376471,"id":67,"parentId":26,"tags":{},"startTime":1778945993623,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":621296,"timestamp":138021365133,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778945993611,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":615247,"timestamp":138021377112,"id":72,"parentId":32,"tags":{},"startTime":1778945993623,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":626494,"timestamp":138021365932,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778945993612,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":630140,"timestamp":138021376553,"id":68,"parentId":27,"tags":{},"startTime":1778945993623,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":641528,"timestamp":138021365248,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778945993612,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":636556,"timestamp":138021376878,"id":70,"parentId":29,"tags":{},"startTime":1778945993623,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":648066,"timestamp":138021365457,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778945993612,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":636487,"timestamp":138021377397,"id":75,"parentId":35,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":647511,"timestamp":138021366425,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778945993613,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":644355,"timestamp":138021377286,"id":73,"parentId":33,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":655625,"timestamp":138021366067,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778945993612,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":654557,"timestamp":138021377368,"id":74,"parentId":34,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":665745,"timestamp":138021366243,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778945993613,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":654704,"timestamp":138021377460,"id":78,"parentId":38,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":664926,"timestamp":138021367269,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778945993614,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":656247,"timestamp":138021376348,"id":66,"parentId":25,"tags":{},"startTime":1778945993623,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":667774,"timestamp":138021364864,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778945993611,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":668290,"timestamp":138021377497,"id":81,"parentId":42,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":678180,"timestamp":138021367711,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778945993614,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":672446,"timestamp":138021374954,"id":64,"parentId":21,"tags":{},"startTime":1778945993621,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":686593,"timestamp":138021360862,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778945993607,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":670807,"timestamp":138021377484,"id":80,"parentId":40,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":680880,"timestamp":138021367457,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778945993614,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":672323,"timestamp":138021377470,"id":79,"parentId":39,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":682469,"timestamp":138021367382,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778945993614,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":675661,"timestamp":138021377534,"id":84,"parentId":46,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":684952,"timestamp":138021368282,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778945993615,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":679892,"timestamp":138021377441,"id":77,"parentId":37,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":690360,"timestamp":138021367132,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778945993613,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":680241,"timestamp":138021377413,"id":76,"parentId":36,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":690747,"timestamp":138021366940,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778945993613,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":680284,"timestamp":138021377547,"id":85,"parentId":47,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":689466,"timestamp":138021368397,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778945993615,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":680435,"timestamp":138021377558,"id":86,"parentId":48,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":689531,"timestamp":138021368512,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778945993615,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":690022,"timestamp":138021377049,"id":71,"parentId":30,"tags":{},"startTime":1778945993623,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":701560,"timestamp":138021365574,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778945993612,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":686489,"timestamp":138021382124,"id":91,"parentId":31,"tags":{},"startTime":1778945993628,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":702989,"timestamp":138021365672,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778945993612,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":688367,"timestamp":138021380917,"id":90,"parentId":24,"tags":{},"startTime":1778945993627,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":706909,"timestamp":138021362423,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778945993609,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":689177,"timestamp":138021384291,"id":93,"parentId":43,"tags":{},"startTime":1778945993631,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":705694,"timestamp":138021367816,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778945993614,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":699785,"timestamp":138021377570,"id":87,"parentId":49,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":707236,"timestamp":138021370164,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778945993616,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":701074,"timestamp":138021377511,"id":82,"parentId":44,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":710579,"timestamp":138021368048,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778945993614,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":704186,"timestamp":138021377596,"id":89,"parentId":51,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":711495,"timestamp":138021370353,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778945993617,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":699053,"timestamp":138021382973,"id":92,"parentId":41,"tags":{},"startTime":1778945993629,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":714548,"timestamp":138021367519,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778945993614,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":718528,"timestamp":138021377584,"id":88,"parentId":50,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":725887,"timestamp":138021370291,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778945993617,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":752257,"timestamp":138021386477,"id":94,"parentId":23,"tags":{},"startTime":1778945993633,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":776594,"timestamp":138021362231,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778945993609,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":756807,"timestamp":138021386501,"id":95,"parentId":52,"tags":{},"startTime":1778945993633,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":772723,"timestamp":138021370650,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778945993617,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":760267,"timestamp":138021386566,"id":100,"parentId":58,"tags":{},"startTime":1778945993633,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":774769,"timestamp":138021372119,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778945993618,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":763638,"timestamp":138021386516,"id":96,"parentId":53,"tags":{},"startTime":1778945993633,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":779479,"timestamp":138021370750,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778945993617,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":764598,"timestamp":138021386553,"id":99,"parentId":56,"tags":{},"startTime":1778945993633,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":780047,"timestamp":138021371152,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778945993617,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":774747,"timestamp":138021377521,"id":83,"parentId":45,"tags":{},"startTime":1778945993624,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":784365,"timestamp":138021368184,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778945993614,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":766376,"timestamp":138021386676,"id":101,"parentId":59,"tags":{},"startTime":1778945993633,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":780763,"timestamp":138021372339,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778945993619,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":767713,"timestamp":138021386690,"id":102,"parentId":61,"tags":{},"startTime":1778945993633,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":781677,"timestamp":138021372772,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778945993619,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":770908,"timestamp":138021386540,"id":98,"parentId":55,"tags":{},"startTime":1778945993633,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":786499,"timestamp":138021370995,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778945993617,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":770868,"timestamp":138021386713,"id":104,"parentId":63,"tags":{},"startTime":1778945993633,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":784629,"timestamp":138021372979,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778945993619,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":753231,"timestamp":138021406171,"id":106,"parentId":57,"tags":{},"startTime":1778945993652,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":787918,"timestamp":138021371528,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778945993618,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":773009,"timestamp":138021386703,"id":103,"parentId":62,"tags":{},"startTime":1778945993633,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":786867,"timestamp":138021372887,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778945993619,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":780507,"timestamp":138021386530,"id":97,"parentId":54,"tags":{},"startTime":1778945993633,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":796227,"timestamp":138021370863,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778945993617,"traceId":"8813b692b7cc8ea3"},{"name":"is-page-static","duration":773306,"timestamp":138021395116,"id":105,"parentId":60,"tags":{},"startTime":1778945993641,"traceId":"8813b692b7cc8ea3"},{"name":"check-page","duration":795972,"timestamp":138021372482,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778945993619,"traceId":"8813b692b7cc8ea3"},{"name":"static-check","duration":809553,"timestamp":138021358945,"id":19,"parentId":1,"tags":{},"startTime":1778945993605,"traceId":"8813b692b7cc8ea3"}]
2
+ [{"name":"write-routes-manifest","duration":489,"timestamp":138022177488,"id":108,"parentId":1,"tags":{},"startTime":1778945994424,"traceId":"8813b692b7cc8ea3"},{"name":"load-dotenv","duration":46,"timestamp":138022190744,"id":111,"parentId":110,"tags":{},"startTime":1778945994437,"traceId":"8813b692b7cc8ea3"},{"name":"run-export-path-map","duration":580,"timestamp":138022193600,"id":112,"parentId":110,"tags":{},"startTime":1778945994440,"traceId":"8813b692b7cc8ea3"},{"name":"next-export","duration":624717,"timestamp":138022189310,"id":110,"parentId":1,"tags":{},"startTime":1778945994436,"traceId":"8813b692b7cc8ea3"},{"name":"move-exported-app-not-found-","duration":617,"timestamp":138022817393,"id":113,"parentId":109,"tags":{},"startTime":1778945995064,"traceId":"8813b692b7cc8ea3"},{"name":"move-exported-app-global-error-","duration":481,"timestamp":138022818122,"id":114,"parentId":109,"tags":{},"startTime":1778945995064,"traceId":"8813b692b7cc8ea3"},{"name":"static-generation","duration":637706,"timestamp":138022183107,"id":109,"parentId":1,"tags":{},"startTime":1778945994429,"traceId":"8813b692b7cc8ea3"},{"name":"write-routes-manifest","duration":487,"timestamp":138022821133,"id":115,"parentId":1,"tags":{},"startTime":1778945995067,"traceId":"8813b692b7cc8ea3"},{"name":"print-tree-view","duration":5341,"timestamp":138022838389,"id":116,"parentId":1,"tags":{},"startTime":1778945995085,"traceId":"8813b692b7cc8ea3"},{"name":"write-route-bundle-stats","duration":15499,"timestamp":138022843781,"id":117,"parentId":1,"tags":{},"startTime":1778945995090,"traceId":"8813b692b7cc8ea3"},{"name":"telemetry-flush","duration":14025,"timestamp":138022859317,"id":118,"parentId":1,"tags":{},"startTime":1778945995106,"traceId":"8813b692b7cc8ea3"},{"name":"next-build","duration":17827701,"timestamp":138005045674,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778945977292,"traceId":"8813b692b7cc8ea3"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":5975657,"timestamp":137413929814,"id":14,"parentId":1,"tags":{},"startTime":1778945386176,"traceId":"1e497de1492343f5"},{"name":"turbopack-build-events","duration":101,"timestamp":137414226030,"id":15,"parentId":1,"tags":{},"startTime":1778945386472,"traceId":"1e497de1492343f5"},{"name":"run-typescript","duration":9533343,"timestamp":137419913931,"id":16,"parentId":1,"tags":{},"startTime":1778945392160,"traceId":"1e497de1492343f5"},{"name":"static-check","duration":807289,"timestamp":137429607138,"id":19,"parentId":1,"tags":{},"startTime":1778945401853,"traceId":"1e497de1492343f5"},{"name":"static-generation","duration":621825,"timestamp":137430433529,"id":109,"parentId":1,"tags":{},"startTime":1778945402680,"traceId":"1e497de1492343f5"},{"name":"telemetry-flush","duration":34872,"timestamp":137431091683,"id":118,"parentId":1,"tags":{},"startTime":1778945403338,"traceId":"1e497de1492343f5"},{"name":"next-build","duration":17443541,"timestamp":137413683052,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778945385929,"traceId":"1e497de1492343f5"}]
1
+ [{"name":"run-turbopack","duration":6261638,"timestamp":138005299344,"id":14,"parentId":1,"tags":{},"startTime":1778945977546,"traceId":"8813b692b7cc8ea3"},{"name":"turbopack-build-events","duration":101,"timestamp":138005594356,"id":15,"parentId":1,"tags":{},"startTime":1778945977841,"traceId":"8813b692b7cc8ea3"},{"name":"run-typescript","duration":9603398,"timestamp":138011584274,"id":16,"parentId":1,"tags":{},"startTime":1778945983831,"traceId":"8813b692b7cc8ea3"},{"name":"static-check","duration":809553,"timestamp":138021358945,"id":19,"parentId":1,"tags":{},"startTime":1778945993605,"traceId":"8813b692b7cc8ea3"},{"name":"static-generation","duration":637706,"timestamp":138022183107,"id":109,"parentId":1,"tags":{},"startTime":1778945994429,"traceId":"8813b692b7cc8ea3"},{"name":"telemetry-flush","duration":14025,"timestamp":138022859317,"id":118,"parentId":1,"tags":{},"startTime":1778945995106,"traceId":"8813b692b7cc8ea3"},{"name":"next-build","duration":17827701,"timestamp":138005045674,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778945977292,"traceId":"8813b692b7cc8ea3"}]
@@ -5121,12 +5121,33 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
5121
5121
  {workingCount}
5122
5122
  </text>
5123
5123
  {/* decorative highlight (visible when workingCount === 0) */}
5124
+ {/* Round 365 / Loop: hub-center 'lit-lamp' decorative highlight
5125
+ circle r 5 → 5.5. Sibling visual-weight bump family —
5126
+ each round lifts one canvas anchor's geometric presence
5127
+ without disturbing its bbox envelope:
5128
+ R287 minimap viewport stroke 1 → 1.5
5129
+ R295 legend swatch base radius 5.5 → 6
5130
+ R359 recent-row pip base radius 1.6 → 1.8
5131
+ R360 hub digit fontSize 11 → 12
5132
+ R361 edge-badge digit fontSize 10 → 11
5133
+ R365 hub-highlight base radius 5 → 5.5 (this round)
5134
+ The highlight only renders when workingCount === 0
5135
+ (decorative 'lamp lit but idle' state per R130 + R213
5136
+ always-mount opacity-gate). At idle, the 0.5-px radius
5137
+ bump (21 % area, π*5.5² / π*5² = 1.21) lifts the lamp's
5138
+ presence — still well inside the r=10 hub-core (R130).
5139
+ opacity=0 when working preserved so the hub-digit's R130
5140
+ takeover stays seamless. R213 always-mount opacity-gate
5141
+ + 300ms opacity transition + pointerEvents:none all
5142
+ preserved. data-topo-hub-highlight-radius attr exposes
5143
+ the value for tests. */}
5124
5144
  <circle
5125
- cx={cx} cy={cy} r="5"
5145
+ cx={cx} cy={cy} r="5.5"
5126
5146
  fill="#d1fae5"
5127
5147
  opacity={workingCount > 0 ? 0 : 0.9}
5128
5148
  data-topo-hub-highlight
5129
5149
  data-topo-hub-highlight-visible={workingCount > 0 ? 'false' : 'true'}
5150
+ data-topo-hub-highlight-radius="5.5"
5130
5151
  style={{
5131
5152
  pointerEvents: 'none',
5132
5153
  transition: 'opacity 300ms ease-out',
@@ -7841,8 +7862,31 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
7841
7862
  fill={hoveredStatus === row.key || isPinned ? pal.legendHeadline : pal.legendText}
7842
7863
  fontSize="11"
7843
7864
  fontFamily="monospace"
7865
+ /* Round 364 / Loop: legend-row label fontWeight 400
7866
+ → 500. Sibling typography lift to R363 recent-row
7867
+ text fw 400 → 500. Both surfaces render small
7868
+ monospace text against panel chrome at fontSize
7869
+ 9-11 where SVG-default fw 400 sits at the
7870
+ legibility floor. font-medium tier (500) gives
7871
+ the label a more deliberate-data register.
7872
+ The R309 per-row count text (separate element
7873
+ below at x=215 textAnchor=end) keeps its own
7874
+ fontWeight 600 inline override, so the count >
7875
+ label hierarchy stays intact at the legend
7876
+ scope same as R363 holds it at the recent-row
7877
+ scope:
7878
+ legend label fw 500 (R364, this round)
7879
+ legend count fw 600 (R309)
7880
+ recent alias fw 500 (R363)
7881
+ recent count fw 600/700 (R320)
7882
+ data-legend-row-label-font-weight attr exposes
7883
+ the value for tests. R219 letter-spacing pin
7884
+ tween + R55 fill transition + R181 always-mount
7885
+ pin ring all preserved. */
7886
+ fontWeight="500"
7844
7887
  data-legend-row-label={row.key}
7845
7888
  data-legend-row-label-pinned={isPinned ? 'true' : 'false'}
7889
+ data-legend-row-label-font-weight="500"
7846
7890
  style={{
7847
7891
  transition: 'fill 150ms ease-out, letter-spacing 150ms ease-out',
7848
7892
  letterSpacing: isPinned ? '0.5px' : '0px',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network-dashboard",
3
- "version": "0.5.1-preview.24",
3
+ "version": "0.5.1-preview.26",
4
4
  "description": "Agent Network Dashboard — Web UI for managing AI Agent networks",
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -0,0 +1,90 @@
1
+ /* Round 365 verification: hub-center 'lit-lamp' decorative highlight
2
+ * circle radius 5 → 5.5. Visible when workingCount === 0 (idle fleet
3
+ * decor per R130). Sibling visual-weight bump family — extends to
4
+ * 6 canvas anchors:
5
+ * R287 minimap viewport stroke 1 → 1.5
6
+ * R295 legend swatch base radius 5.5 → 6
7
+ * R359 recent-row pip base radius 1.6 → 1.8
8
+ * R360 hub digit fontSize 11 → 12
9
+ * R361 edge-badge digit fontSize 10 → 11
10
+ * R365 hub-highlight base radius 5 → 5.5 (this round)
11
+ *
12
+ * 21 % area bump (π·5.5² / π·5² = 1.21). Still well inside r=10 core.
13
+ *
14
+ * Test approach: feed an IDLE fleet (no working sessions) so the
15
+ * highlight is fully opaque.
16
+ *
17
+ * Contract:
18
+ * - data-topo-hub-highlight element r attr === '5.5'.
19
+ * - data-topo-hub-highlight-radius === '5.5'.
20
+ * - data-topo-hub-highlight-visible === 'true' (idle fleet).
21
+ * - opacity attr === '0.9' (workingCount === 0 branch).
22
+ * - Pre-R365 invariants:
23
+ * * cx + cy unchanged (visual center stable)
24
+ * * fill='#d1fae5' (R130 lamp color)
25
+ * * style.transition contains opacity (R213 always-mount gate)
26
+ * * pointerEvents: 'none' (R130)
27
+ */
28
+ import { chromium } from 'playwright';
29
+ import { readFileSync } from 'node:fs';
30
+
31
+ const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
32
+ const browser = await chromium.launch({ headless: true });
33
+ const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
34
+ await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
35
+ await ctx.addInitScript(() => {
36
+ try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
37
+ });
38
+ const fresh = new Date(Date.now() - 60 * 1000).toISOString();
39
+ await ctx.route('**/api/hub/status*', async (route) => {
40
+ const r = await route.fetch();
41
+ const b = await r.json();
42
+ const nid = (b.sessions || [])[0]?.network_id || 'default';
43
+ // IDLE: status !== 'working' so workingCount=0 and the highlight is opaque.
44
+ const mk = (alias) => ({
45
+ alias, status: 'idle', model: 'claude-opus-4', runtime: 'claude-code-cli',
46
+ network_id: nid, project_dir: null,
47
+ created_at: fresh, updated_at: fresh, last_seen_at: fresh,
48
+ });
49
+ await route.fulfill({ response: r, json: { ...b, sessions: [ mk('a'), mk('b'), mk('c') ] } });
50
+ });
51
+ await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
52
+ await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
53
+
54
+ const page = await ctx.newPage();
55
+ await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
56
+ await page.waitForSelector('[data-topo-hub-highlight]', { timeout: 15000 });
57
+ await page.waitForTimeout(300);
58
+
59
+ const probe = await page.evaluate(() => {
60
+ const h = document.querySelector('[data-topo-hub-highlight]');
61
+ const cs = h ? getComputedStyle(h) : null;
62
+ return {
63
+ rAttr: h?.getAttribute('r') ?? null,
64
+ rData: h?.getAttribute('data-topo-hub-highlight-radius') ?? null,
65
+ visibleAttr: h?.getAttribute('data-topo-hub-highlight-visible') ?? null,
66
+ opacityAttr: h?.getAttribute('opacity') ?? null,
67
+ fill: h?.getAttribute('fill') ?? null,
68
+ transition: cs?.transition ?? null,
69
+ pointerEv: cs?.pointerEvents ?? null,
70
+ };
71
+ });
72
+
73
+ await browser.close();
74
+
75
+ const hasTrans = (s, prop) =>
76
+ new RegExp(`${prop}\\s+\\d*\\.?\\d*s|${prop}\\s+\\d+ms`, 'i').test(s || '');
77
+
78
+ const results = {
79
+ r_attr_5_5: probe.rAttr === '5.5',
80
+ r_data_5_5: probe.rData === '5.5',
81
+ visible_true: probe.visibleAttr === 'true',
82
+ opacity_0_9: probe.opacityAttr === '0.9',
83
+ fill_d1fae5: probe.fill === '#d1fae5',
84
+ trans_has_opacity: hasTrans(probe.transition, 'opacity'),
85
+ pointer_events_none: probe.pointerEv === 'none',
86
+ };
87
+ const ok = Object.values(results).every(Boolean);
88
+ console.log(`${ok ? '✅' : '❌'} hub-highlight radius 5 → 5.5:`, JSON.stringify(results),
89
+ '\n probe:', probe);
90
+ process.exit(ok ? 0 : 1);
@@ -0,0 +1,94 @@
1
+ /* Round 364 verification: legend-row label fontWeight 400 → 500.
2
+ * Sibling typography lift to R363 recent-row text fw 400 → 500.
3
+ * Both surfaces render small monospace text against panel chrome
4
+ * at fontSize 9-11 where SVG-default fw 400 sits at the legibility
5
+ * floor.
6
+ *
7
+ * Family snapshot post-R364:
8
+ * legend label fw 500 (R364, this round)
9
+ * legend count fw 600 (R309)
10
+ * recent alias fw 500 (R363)
11
+ * recent count fw 600/700 (R320)
12
+ *
13
+ * Contract (cyber, fixture with active rows):
14
+ * - Each rendered [data-legend-row-label] has font-weight === '500'.
15
+ * - Each has data-legend-row-label-font-weight === '500'.
16
+ * - Pre-R364 invariants:
17
+ * * fontSize=11 + fontFamily=monospace
18
+ * * R219 letter-spacing 0 → 0.5px on pin (style.transition still
19
+ * lists letter-spacing)
20
+ * * R55 fill transition retained
21
+ * * data-legend-row-label key surfaces (working / idle / offline)
22
+ */
23
+ import { chromium } from 'playwright';
24
+ import { readFileSync } from 'node:fs';
25
+
26
+ const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
27
+ const browser = await chromium.launch({ headless: true });
28
+ const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
29
+ await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
30
+ await ctx.addInitScript(() => {
31
+ try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
32
+ });
33
+ const fresh = new Date(Date.now() - 60 * 1000).toISOString();
34
+ await ctx.route('**/api/hub/status*', async (route) => {
35
+ const r = await route.fetch();
36
+ const b = await r.json();
37
+ const nid = (b.sessions || [])[0]?.network_id || 'default';
38
+ const mk = (alias) => ({
39
+ alias, status: 'working', model: 'claude-opus-4', runtime: 'claude-code-cli',
40
+ network_id: nid, project_dir: null,
41
+ created_at: fresh, updated_at: fresh, last_seen_at: fresh,
42
+ });
43
+ await route.fulfill({ response: r, json: { ...b, sessions: [ mk('a'), mk('b'), mk('c') ] } });
44
+ });
45
+ await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
46
+ await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
47
+
48
+ const page = await ctx.newPage();
49
+ await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
50
+ await page.waitForSelector('[data-legend-row-label]', { timeout: 15000 });
51
+ await page.waitForTimeout(300);
52
+
53
+ const probe = await page.evaluate(() => {
54
+ const labels = Array.from(document.querySelectorAll('[data-legend-row-label]'));
55
+ return labels.map(el => {
56
+ const cs = getComputedStyle(el);
57
+ return {
58
+ key: el.getAttribute('data-legend-row-label'),
59
+ fontWeightAttr: el.getAttribute('font-weight'),
60
+ fontWeightData: el.getAttribute('data-legend-row-label-font-weight'),
61
+ fontSizeAttr: el.getAttribute('font-size'),
62
+ fontFamily: el.getAttribute('font-family'),
63
+ transition: cs.transition,
64
+ };
65
+ });
66
+ });
67
+
68
+ await browser.close();
69
+
70
+ const hasTrans = (s, prop) =>
71
+ new RegExp(`${prop}\\s+\\d*\\.?\\d*s|${prop}\\s+\\d+ms`, 'i').test(s || '');
72
+
73
+ const allRowsOk = probe.length > 0 && probe.every(r =>
74
+ r.fontWeightAttr === '500'
75
+ && r.fontWeightData === '500'
76
+ && r.fontSizeAttr === '11'
77
+ && /monospace/i.test(r.fontFamily || '')
78
+ && hasTrans(r.transition, 'letter-spacing')
79
+ && hasTrans(r.transition, 'fill')
80
+ );
81
+
82
+ const results = {
83
+ rows_rendered: probe.length >= 1,
84
+ all_rows_fw_500: probe.every(r => r.fontWeightAttr === '500'),
85
+ all_rows_data_500: probe.every(r => r.fontWeightData === '500'),
86
+ all_rows_fontsize_11: probe.every(r => r.fontSizeAttr === '11'),
87
+ all_rows_monospace: probe.every(r => /monospace/i.test(r.fontFamily || '')),
88
+ all_rows_have_ls_trans: probe.every(r => hasTrans(r.transition, 'letter-spacing')),
89
+ all_rows_have_fill_trans: probe.every(r => hasTrans(r.transition, 'fill')),
90
+ };
91
+ const ok = allRowsOk && Object.values(results).every(Boolean);
92
+ console.log(`${ok ? '✅' : '❌'} legend-row label fw 400 → 500:`, JSON.stringify(results),
93
+ '\n rows: ', probe.map(r => ({ key: r.key, fw: r.fontWeightAttr })));
94
+ process.exit(ok ? 0 : 1);