@sleep2agi/agent-network-dashboard 0.5.3-preview.20 → 0.5.3-preview.22

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 (145) 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 +3 -3
  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/0g2t4ytep_laz.js +4 -0
  132. package/.next/static/chunks/{0bh3bd_k4cou9.js → 0l440-mv.tqcj.js} +1 -1
  133. package/.next/static/chunks/{06f643qjk~ayp.js → 0zm6yg97ubkp5.js} +1 -1
  134. package/.next/static/chunks/{0m-5_1vuw.lxb.js → 1867gm.v~vka2.js} +1 -1
  135. package/.next/trace +2 -2
  136. package/.next/trace-build +1 -1
  137. package/app/components/TopoGraph.tsx +84 -16
  138. package/package.json +1 -1
  139. package/scripts/topo-hub-highlight-recede-test.mjs +140 -0
  140. package/scripts/topo-hub-idle-breath-test.mjs +8 -2
  141. package/scripts/topo-hub-recede-test.mjs +124 -0
  142. package/.next/static/chunks/0.s1q59.w46yn.js +0 -4
  143. /package/.next/static/{D60rGoeOKUed7uGrc-7wS → oGQapRVlgbDN-Wxb5B4gq}/_buildManifest.js +0 -0
  144. /package/.next/static/{D60rGoeOKUed7uGrc-7wS → oGQapRVlgbDN-Wxb5B4gq}/_clientMiddlewareManifest.js +0 -0
  145. /package/.next/static/{D60rGoeOKUed7uGrc-7wS → oGQapRVlgbDN-Wxb5B4gq}/_ssgManifest.js +0 -0
@@ -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.20"],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.22"],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 +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.20"],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.22"],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":318,"timestamp":198847291523,"id":4,"parentId":1,"tags":{},"startTime":1779006819538,"traceId":"51406daa976aec9e"},{"name":"load-custom-routes","duration":511,"timestamp":198847292028,"id":5,"parentId":1,"tags":{},"startTime":1779006819538,"traceId":"51406daa976aec9e"},{"name":"create-dist-dir","duration":989,"timestamp":198847292589,"id":6,"parentId":1,"tags":{},"startTime":1779006819539,"traceId":"51406daa976aec9e"},{"name":"clean","duration":34156,"timestamp":198847294555,"id":7,"parentId":1,"tags":{},"startTime":1779006819541,"traceId":"51406daa976aec9e"},{"name":"discover-routes","duration":25312,"timestamp":198847421729,"id":8,"parentId":1,"tags":{},"startTime":1779006819668,"traceId":"51406daa976aec9e"},{"name":"create-root-mapping","duration":165,"timestamp":198847447129,"id":9,"parentId":1,"tags":{},"startTime":1779006819693,"traceId":"51406daa976aec9e"},{"name":"generate-route-types","duration":22120,"timestamp":198847450111,"id":10,"parentId":1,"tags":{},"startTime":1779006819696,"traceId":"51406daa976aec9e"},{"name":"public-dir-conflict-check","duration":96,"timestamp":198847472320,"id":11,"parentId":1,"tags":{},"startTime":1779006819719,"traceId":"51406daa976aec9e"},{"name":"generate-routes-manifest","duration":5152,"timestamp":198847472532,"id":12,"parentId":1,"tags":{},"startTime":1779006819719,"traceId":"51406daa976aec9e"},{"name":"run-turbopack","duration":8798060,"timestamp":198847484126,"id":14,"parentId":1,"tags":{},"startTime":1779006819730,"traceId":"51406daa976aec9e"},{"name":"turbopack-build-events","duration":104,"timestamp":198847799482,"id":15,"parentId":1,"tags":{},"startTime":1779006820046,"traceId":"51406daa976aec9e"},{"name":"run-typescript","duration":15547694,"timestamp":198856300397,"id":16,"parentId":1,"tags":{},"startTime":1779006828547,"traceId":"51406daa976aec9e"},{"name":"generate-required-server-files","duration":8797,"timestamp":198871849432,"id":18,"parentId":1,"tags":{},"startTime":1779006844096,"traceId":"51406daa976aec9e"},{"name":"check-static-error-page","duration":15620,"timestamp":198872126627,"id":20,"parentId":19,"tags":{},"startTime":1779006844373,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":527901,"timestamp":198872145797,"id":65,"parentId":22,"tags":{},"startTime":1779006844392,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":544016,"timestamp":198872129866,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1779006844376,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":668846,"timestamp":198872146734,"id":71,"parentId":30,"tags":{},"startTime":1779006844393,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":682166,"timestamp":198872133507,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1779006844380,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":692726,"timestamp":198872146304,"id":69,"parentId":28,"tags":{},"startTime":1779006844393,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":705896,"timestamp":198872133236,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1779006844380,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":692562,"timestamp":198872146815,"id":72,"parentId":32,"tags":{},"startTime":1779006844393,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":705509,"timestamp":198872133928,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1779006844380,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":711984,"timestamp":198872146971,"id":73,"parentId":33,"tags":{},"startTime":1779006844393,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":724581,"timestamp":198872134471,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1779006844381,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":720082,"timestamp":198872151108,"id":74,"parentId":34,"tags":{},"startTime":1779006844397,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":736630,"timestamp":198872134631,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1779006844381,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":729930,"timestamp":198872151165,"id":76,"parentId":36,"tags":{},"startTime":1779006844397,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":745982,"timestamp":198872135202,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1779006844381,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":733433,"timestamp":198872151191,"id":77,"parentId":37,"tags":{},"startTime":1779006844397,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":749309,"timestamp":198872135368,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1779006844382,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":741600,"timestamp":198872151205,"id":78,"parentId":38,"tags":{},"startTime":1779006844397,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":757400,"timestamp":198872135466,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1779006844382,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":746088,"timestamp":198872151140,"id":75,"parentId":35,"tags":{},"startTime":1779006844397,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":762490,"timestamp":198872134785,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1779006844381,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":748078,"timestamp":198872151215,"id":79,"parentId":39,"tags":{},"startTime":1779006844397,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":764690,"timestamp":198872135535,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1779006844382,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":760233,"timestamp":198872151236,"id":81,"parentId":42,"tags":{},"startTime":1779006844398,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":775664,"timestamp":198872135884,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1779006844382,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":770083,"timestamp":198872152836,"id":82,"parentId":44,"tags":{},"startTime":1779006844399,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":786624,"timestamp":198872136354,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1779006844383,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":775707,"timestamp":198872152861,"id":83,"parentId":45,"tags":{},"startTime":1779006844399,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":792134,"timestamp":198872136488,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1779006844383,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":785860,"timestamp":198872146101,"id":67,"parentId":26,"tags":{},"startTime":1779006844392,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":799076,"timestamp":198872132951,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1779006844379,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":780513,"timestamp":198872152877,"id":84,"parentId":46,"tags":{},"startTime":1779006844399,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":796836,"timestamp":198872136596,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1779006844383,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":783768,"timestamp":198872151226,"id":80,"parentId":40,"tags":{},"startTime":1779006844397,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":799453,"timestamp":198872135600,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1779006844382,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":784200,"timestamp":198872152892,"id":85,"parentId":47,"tags":{},"startTime":1779006844399,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":800430,"timestamp":198872136710,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1779006844383,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":788300,"timestamp":198872152905,"id":86,"parentId":48,"tags":{},"startTime":1779006844399,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":804418,"timestamp":198872136839,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1779006844383,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":795231,"timestamp":198872146201,"id":68,"parentId":27,"tags":{},"startTime":1779006844392,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":808359,"timestamp":198872133112,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1779006844379,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":792577,"timestamp":198872152914,"id":87,"parentId":49,"tags":{},"startTime":1779006844399,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":808557,"timestamp":198872136979,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1779006844383,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":787515,"timestamp":198872166399,"id":91,"parentId":31,"tags":{},"startTime":1779006844413,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":820343,"timestamp":198872133626,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1779006844380,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":806899,"timestamp":198872152940,"id":89,"parentId":51,"tags":{},"startTime":1779006844399,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":822688,"timestamp":198872137206,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1779006844383,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":788630,"timestamp":198872175299,"id":92,"parentId":41,"tags":{},"startTime":1779006844422,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":828317,"timestamp":198872135665,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1779006844382,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":788132,"timestamp":198872176575,"id":93,"parentId":43,"tags":{},"startTime":1779006844423,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":828725,"timestamp":198872136032,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1779006844382,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":835560,"timestamp":198872152928,"id":88,"parentId":50,"tags":{},"startTime":1779006844399,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":851449,"timestamp":198872137105,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1779006844383,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":839178,"timestamp":198872165304,"id":90,"parentId":24,"tags":{},"startTime":1779006844412,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":874184,"timestamp":198872130377,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1779006844377,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":850264,"timestamp":198872178875,"id":95,"parentId":52,"tags":{},"startTime":1779006844425,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":889661,"timestamp":198872139547,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1779006844386,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":850558,"timestamp":198872178844,"id":94,"parentId":23,"tags":{},"startTime":1779006844425,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":899286,"timestamp":198872130154,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1779006844376,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":875691,"timestamp":198872178911,"id":98,"parentId":55,"tags":{},"startTime":1779006844425,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":914557,"timestamp":198872140118,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1779006844386,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":875946,"timestamp":198872178924,"id":99,"parentId":56,"tags":{},"startTime":1779006844425,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":914640,"timestamp":198872140267,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1779006844387,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":893372,"timestamp":198872178932,"id":100,"parentId":58,"tags":{},"startTime":1779006844425,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":931548,"timestamp":198872140820,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1779006844387,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":884880,"timestamp":198872189215,"id":101,"parentId":59,"tags":{},"startTime":1779006844435,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":933136,"timestamp":198872141034,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1779006844387,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":892493,"timestamp":198872189262,"id":102,"parentId":61,"tags":{},"startTime":1779006844436,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":940181,"timestamp":198872141633,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1779006844388,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":905711,"timestamp":198872178899,"id":97,"parentId":54,"tags":{},"startTime":1779006844425,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":944724,"timestamp":198872139945,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1779006844386,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":898449,"timestamp":198872189279,"id":103,"parentId":62,"tags":{},"startTime":1779006844436,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":945982,"timestamp":198872141803,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1779006844388,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":899665,"timestamp":198872189290,"id":104,"parentId":63,"tags":{},"startTime":1779006844436,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":947042,"timestamp":198872141949,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1779006844388,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":910737,"timestamp":198872178889,"id":96,"parentId":53,"tags":{},"startTime":1779006844425,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":949876,"timestamp":198872139791,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1779006844386,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":945523,"timestamp":198872145970,"id":66,"parentId":25,"tags":{},"startTime":1779006844392,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":958755,"timestamp":198872132783,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1779006844379,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":876227,"timestamp":198872219534,"id":106,"parentId":57,"tags":{},"startTime":1779006844466,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":955397,"timestamp":198872140426,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1779006844387,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":896230,"timestamp":198872202524,"id":105,"parentId":60,"tags":{},"startTime":1779006844449,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":957588,"timestamp":198872141220,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1779006844387,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":988235,"timestamp":198872145374,"id":64,"parentId":21,"tags":{},"startTime":1779006844392,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":1005428,"timestamp":198872128249,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1779006844375,"traceId":"51406daa976aec9e"},{"name":"is-page-static","duration":1009450,"timestamp":198872146584,"id":70,"parentId":29,"tags":{},"startTime":1779006844393,"traceId":"51406daa976aec9e"},{"name":"check-page","duration":1022749,"timestamp":198872133351,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1779006844380,"traceId":"51406daa976aec9e"},{"name":"static-check","duration":1030681,"timestamp":198872125469,"id":19,"parentId":1,"tags":{},"startTime":1779006844372,"traceId":"51406daa976aec9e"}]
2
- [{"name":"write-routes-manifest","duration":1161,"timestamp":198873167825,"id":108,"parentId":1,"tags":{},"startTime":1779006845414,"traceId":"51406daa976aec9e"},{"name":"load-dotenv","duration":51,"timestamp":198873182197,"id":111,"parentId":110,"tags":{},"startTime":1779006845428,"traceId":"51406daa976aec9e"},{"name":"run-export-path-map","duration":797,"timestamp":198873184927,"id":112,"parentId":110,"tags":{},"startTime":1779006845431,"traceId":"51406daa976aec9e"},{"name":"next-export","duration":858844,"timestamp":198873180895,"id":110,"parentId":1,"tags":{},"startTime":1779006845427,"traceId":"51406daa976aec9e"},{"name":"move-exported-app-not-found-","duration":553,"timestamp":198874043165,"id":113,"parentId":109,"tags":{},"startTime":1779006846289,"traceId":"51406daa976aec9e"},{"name":"move-exported-app-global-error-","duration":407,"timestamp":198874043816,"id":114,"parentId":109,"tags":{},"startTime":1779006846290,"traceId":"51406daa976aec9e"},{"name":"static-generation","duration":872394,"timestamp":198873174794,"id":109,"parentId":1,"tags":{},"startTime":1779006845421,"traceId":"51406daa976aec9e"},{"name":"write-routes-manifest","duration":531,"timestamp":198874047510,"id":115,"parentId":1,"tags":{},"startTime":1779006846294,"traceId":"51406daa976aec9e"},{"name":"print-tree-view","duration":7432,"timestamp":198874070182,"id":116,"parentId":1,"tags":{},"startTime":1779006846316,"traceId":"51406daa976aec9e"},{"name":"write-route-bundle-stats","duration":15967,"timestamp":198874077660,"id":117,"parentId":1,"tags":{},"startTime":1779006846324,"traceId":"51406daa976aec9e"},{"name":"telemetry-flush","duration":35271,"timestamp":198874093668,"id":118,"parentId":1,"tags":{},"startTime":1779006846340,"traceId":"51406daa976aec9e"},{"name":"next-build","duration":26905912,"timestamp":198847223070,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779006819469,"traceId":"51406daa976aec9e"}]
1
+ [{"name":"generate-buildid","duration":292,"timestamp":199756801735,"id":4,"parentId":1,"tags":{},"startTime":1779007729048,"traceId":"fc666996687b23af"},{"name":"load-custom-routes","duration":688,"timestamp":199756802195,"id":5,"parentId":1,"tags":{},"startTime":1779007729048,"traceId":"fc666996687b23af"},{"name":"create-dist-dir","duration":915,"timestamp":199756802934,"id":6,"parentId":1,"tags":{},"startTime":1779007729049,"traceId":"fc666996687b23af"},{"name":"clean","duration":30956,"timestamp":199756804672,"id":7,"parentId":1,"tags":{},"startTime":1779007729051,"traceId":"fc666996687b23af"},{"name":"discover-routes","duration":11752,"timestamp":199756923830,"id":8,"parentId":1,"tags":{},"startTime":1779007729170,"traceId":"fc666996687b23af"},{"name":"create-root-mapping","duration":122,"timestamp":199756935643,"id":9,"parentId":1,"tags":{},"startTime":1779007729182,"traceId":"fc666996687b23af"},{"name":"generate-route-types","duration":34408,"timestamp":199756938893,"id":10,"parentId":1,"tags":{},"startTime":1779007729185,"traceId":"fc666996687b23af"},{"name":"public-dir-conflict-check","duration":101,"timestamp":199756973393,"id":11,"parentId":1,"tags":{},"startTime":1779007729220,"traceId":"fc666996687b23af"},{"name":"generate-routes-manifest","duration":4910,"timestamp":199756973619,"id":12,"parentId":1,"tags":{},"startTime":1779007729220,"traceId":"fc666996687b23af"},{"name":"run-turbopack","duration":6127290,"timestamp":199756983955,"id":14,"parentId":1,"tags":{},"startTime":1779007729230,"traceId":"fc666996687b23af"},{"name":"turbopack-build-events","duration":73,"timestamp":199757317159,"id":15,"parentId":1,"tags":{},"startTime":1779007729563,"traceId":"fc666996687b23af"},{"name":"run-typescript","duration":9979621,"timestamp":199763122758,"id":16,"parentId":1,"tags":{},"startTime":1779007735369,"traceId":"fc666996687b23af"},{"name":"generate-required-server-files","duration":3335,"timestamp":199773103846,"id":18,"parentId":1,"tags":{},"startTime":1779007745350,"traceId":"fc666996687b23af"},{"name":"check-static-error-page","duration":12897,"timestamp":199773300854,"id":20,"parentId":19,"tags":{},"startTime":1779007745547,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":513323,"timestamp":199773317669,"id":65,"parentId":22,"tags":{},"startTime":1779007745564,"traceId":"fc666996687b23af"},{"name":"check-page","duration":527902,"timestamp":199773303309,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1779007745550,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":632253,"timestamp":199773317833,"id":66,"parentId":25,"tags":{},"startTime":1779007745564,"traceId":"fc666996687b23af"},{"name":"check-page","duration":643794,"timestamp":199773306422,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1779007745553,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":638124,"timestamp":199773317194,"id":64,"parentId":21,"tags":{},"startTime":1779007745563,"traceId":"fc666996687b23af"},{"name":"check-page","duration":653264,"timestamp":199773302137,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1779007745548,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":651706,"timestamp":199773317942,"id":67,"parentId":26,"tags":{},"startTime":1779007745564,"traceId":"fc666996687b23af"},{"name":"check-page","duration":663159,"timestamp":199773306566,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1779007745553,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":661378,"timestamp":199773318976,"id":74,"parentId":34,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":672938,"timestamp":199773307494,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1779007745554,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":674875,"timestamp":199773318071,"id":68,"parentId":27,"tags":{},"startTime":1779007745564,"traceId":"fc666996687b23af"},{"name":"check-page","duration":686497,"timestamp":199773306670,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1779007745553,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":685740,"timestamp":199773319045,"id":76,"parentId":36,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":696919,"timestamp":199773307948,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1779007745554,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":703595,"timestamp":199773318691,"id":72,"parentId":32,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":715050,"timestamp":199773307318,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1779007745554,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":703668,"timestamp":199773319024,"id":75,"parentId":35,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":715159,"timestamp":199773307579,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1779007745554,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":713528,"timestamp":199773318626,"id":71,"parentId":30,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":725247,"timestamp":199773306964,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1779007745553,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":717419,"timestamp":199773319078,"id":77,"parentId":37,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":728436,"timestamp":199773308114,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1779007745554,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":719778,"timestamp":199773319108,"id":79,"parentId":39,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":730648,"timestamp":199773308286,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1779007745555,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":747031,"timestamp":199773319097,"id":78,"parentId":38,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":757992,"timestamp":199773308219,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1779007745554,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":747427,"timestamp":199773319153,"id":82,"parentId":44,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":757680,"timestamp":199773308948,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1779007745555,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":752407,"timestamp":199773319164,"id":83,"parentId":45,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":762526,"timestamp":199773309107,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1779007745555,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":753903,"timestamp":199773319179,"id":84,"parentId":46,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":763910,"timestamp":199773309219,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1779007745555,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":754153,"timestamp":199773319124,"id":80,"parentId":40,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":764964,"timestamp":199773308356,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1779007745555,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":757903,"timestamp":199773319194,"id":85,"parentId":47,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":766270,"timestamp":199773310882,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1779007745557,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":758125,"timestamp":199773319205,"id":86,"parentId":48,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":766311,"timestamp":199773311062,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1779007745557,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":763830,"timestamp":199773319252,"id":89,"parentId":51,"tags":{},"startTime":1779007745566,"traceId":"fc666996687b23af"},{"name":"check-page","duration":771838,"timestamp":199773311303,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1779007745558,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":764212,"timestamp":199773319238,"id":88,"parentId":50,"tags":{},"startTime":1779007745566,"traceId":"fc666996687b23af"},{"name":"check-page","duration":772247,"timestamp":199773311243,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1779007745558,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":769552,"timestamp":199773318444,"id":70,"parentId":29,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":781208,"timestamp":199773306860,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1779007745553,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":762294,"timestamp":199773326270,"id":91,"parentId":31,"tags":{},"startTime":1779007745573,"traceId":"fc666996687b23af"},{"name":"check-page","duration":781529,"timestamp":199773307085,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1779007745553,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":774533,"timestamp":199773319138,"id":81,"parentId":42,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":785105,"timestamp":199773308625,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1779007745555,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":769054,"timestamp":199773324855,"id":90,"parentId":24,"tags":{},"startTime":1779007745571,"traceId":"fc666996687b23af"},{"name":"check-page","duration":790112,"timestamp":199773303834,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1779007745550,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":765364,"timestamp":199773328771,"id":93,"parentId":43,"tags":{},"startTime":1779007745575,"traceId":"fc666996687b23af"},{"name":"check-page","duration":785442,"timestamp":199773308726,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1779007745555,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":779849,"timestamp":199773319220,"id":87,"parentId":49,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":787939,"timestamp":199773311177,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1779007745557,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":772067,"timestamp":199773327198,"id":92,"parentId":41,"tags":{},"startTime":1779007745573,"traceId":"fc666996687b23af"},{"name":"check-page","duration":790879,"timestamp":199773308421,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1779007745555,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":786568,"timestamp":199773318889,"id":73,"parentId":33,"tags":{},"startTime":1779007745565,"traceId":"fc666996687b23af"},{"name":"check-page","duration":798094,"timestamp":199773307411,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1779007745554,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":788974,"timestamp":199773331434,"id":99,"parentId":56,"tags":{},"startTime":1779007745578,"traceId":"fc666996687b23af"},{"name":"check-page","duration":808359,"timestamp":199773312109,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1779007745558,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":804479,"timestamp":199773318171,"id":69,"parentId":28,"tags":{},"startTime":1779007745564,"traceId":"fc666996687b23af"},{"name":"check-page","duration":815945,"timestamp":199773306761,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1779007745553,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":798784,"timestamp":199773331445,"id":100,"parentId":58,"tags":{},"startTime":1779007745578,"traceId":"fc666996687b23af"},{"name":"check-page","duration":817529,"timestamp":199773312748,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1779007745559,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":827289,"timestamp":199773331404,"id":97,"parentId":54,"tags":{},"startTime":1779007745578,"traceId":"fc666996687b23af"},{"name":"check-page","duration":846992,"timestamp":199773311789,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1779007745558,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":830133,"timestamp":199773331647,"id":102,"parentId":61,"tags":{},"startTime":1779007745578,"traceId":"fc666996687b23af"},{"name":"check-page","duration":848471,"timestamp":199773313377,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1779007745560,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":831963,"timestamp":199773331338,"id":94,"parentId":23,"tags":{},"startTime":1779007745578,"traceId":"fc666996687b23af"},{"name":"check-page","duration":859822,"timestamp":199773303550,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1779007745550,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":839463,"timestamp":199773331693,"id":104,"parentId":63,"tags":{},"startTime":1779007745578,"traceId":"fc666996687b23af"},{"name":"check-page","duration":857626,"timestamp":199773313579,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1779007745560,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":816492,"timestamp":199773355204,"id":105,"parentId":60,"tags":{},"startTime":1779007745601,"traceId":"fc666996687b23af"},{"name":"check-page","duration":858677,"timestamp":199773313067,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1779007745559,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":843632,"timestamp":199773331680,"id":103,"parentId":62,"tags":{},"startTime":1779007745578,"traceId":"fc666996687b23af"},{"name":"check-page","duration":861869,"timestamp":199773313484,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1779007745560,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":809852,"timestamp":199773370038,"id":106,"parentId":57,"tags":{},"startTime":1779007745616,"traceId":"fc666996687b23af"},{"name":"check-page","duration":867639,"timestamp":199773312313,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1779007745559,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":860928,"timestamp":199773331374,"id":95,"parentId":52,"tags":{},"startTime":1779007745578,"traceId":"fc666996687b23af"},{"name":"check-page","duration":880782,"timestamp":199773311582,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1779007745558,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":865570,"timestamp":199773331581,"id":101,"parentId":59,"tags":{},"startTime":1779007745578,"traceId":"fc666996687b23af"},{"name":"check-page","duration":884288,"timestamp":199773312914,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1779007745559,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":870284,"timestamp":199773331392,"id":96,"parentId":53,"tags":{},"startTime":1779007745578,"traceId":"fc666996687b23af"},{"name":"check-page","duration":890034,"timestamp":199773311684,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1779007745558,"traceId":"fc666996687b23af"},{"name":"is-page-static","duration":876997,"timestamp":199773331419,"id":98,"parentId":55,"tags":{},"startTime":1779007745578,"traceId":"fc666996687b23af"},{"name":"check-page","duration":896506,"timestamp":199773311945,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1779007745558,"traceId":"fc666996687b23af"},{"name":"static-check","duration":908777,"timestamp":199773299704,"id":19,"parentId":1,"tags":{},"startTime":1779007745546,"traceId":"fc666996687b23af"}]
2
+ [{"name":"write-routes-manifest","duration":537,"timestamp":199774219918,"id":108,"parentId":1,"tags":{},"startTime":1779007746466,"traceId":"fc666996687b23af"},{"name":"load-dotenv","duration":43,"timestamp":199774231870,"id":111,"parentId":110,"tags":{},"startTime":1779007746478,"traceId":"fc666996687b23af"},{"name":"run-export-path-map","duration":726,"timestamp":199774234781,"id":112,"parentId":110,"tags":{},"startTime":1779007746481,"traceId":"fc666996687b23af"},{"name":"next-export","duration":594985,"timestamp":199774230662,"id":110,"parentId":1,"tags":{},"startTime":1779007746477,"traceId":"fc666996687b23af"},{"name":"move-exported-app-not-found-","duration":555,"timestamp":199774829330,"id":113,"parentId":109,"tags":{},"startTime":1779007747076,"traceId":"fc666996687b23af"},{"name":"move-exported-app-global-error-","duration":396,"timestamp":199774829979,"id":114,"parentId":109,"tags":{},"startTime":1779007747076,"traceId":"fc666996687b23af"},{"name":"static-generation","duration":608055,"timestamp":199774224151,"id":109,"parentId":1,"tags":{},"startTime":1779007746470,"traceId":"fc666996687b23af"},{"name":"write-routes-manifest","duration":414,"timestamp":199774832426,"id":115,"parentId":1,"tags":{},"startTime":1779007747079,"traceId":"fc666996687b23af"},{"name":"print-tree-view","duration":4315,"timestamp":199774850636,"id":116,"parentId":1,"tags":{},"startTime":1779007747097,"traceId":"fc666996687b23af"},{"name":"write-route-bundle-stats","duration":12089,"timestamp":199774854979,"id":117,"parentId":1,"tags":{},"startTime":1779007747101,"traceId":"fc666996687b23af"},{"name":"telemetry-flush","duration":27960,"timestamp":199774867099,"id":118,"parentId":1,"tags":{},"startTime":1779007747113,"traceId":"fc666996687b23af"},{"name":"next-build","duration":18143879,"timestamp":199756751209,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779007728997,"traceId":"fc666996687b23af"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":8798060,"timestamp":198847484126,"id":14,"parentId":1,"tags":{},"startTime":1779006819730,"traceId":"51406daa976aec9e"},{"name":"turbopack-build-events","duration":104,"timestamp":198847799482,"id":15,"parentId":1,"tags":{},"startTime":1779006820046,"traceId":"51406daa976aec9e"},{"name":"run-typescript","duration":15547694,"timestamp":198856300397,"id":16,"parentId":1,"tags":{},"startTime":1779006828547,"traceId":"51406daa976aec9e"},{"name":"static-check","duration":1030681,"timestamp":198872125469,"id":19,"parentId":1,"tags":{},"startTime":1779006844372,"traceId":"51406daa976aec9e"},{"name":"static-generation","duration":872394,"timestamp":198873174794,"id":109,"parentId":1,"tags":{},"startTime":1779006845421,"traceId":"51406daa976aec9e"},{"name":"telemetry-flush","duration":35271,"timestamp":198874093668,"id":118,"parentId":1,"tags":{},"startTime":1779006846340,"traceId":"51406daa976aec9e"},{"name":"next-build","duration":26905912,"timestamp":198847223070,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779006819469,"traceId":"51406daa976aec9e"}]
1
+ [{"name":"run-turbopack","duration":6127290,"timestamp":199756983955,"id":14,"parentId":1,"tags":{},"startTime":1779007729230,"traceId":"fc666996687b23af"},{"name":"turbopack-build-events","duration":73,"timestamp":199757317159,"id":15,"parentId":1,"tags":{},"startTime":1779007729563,"traceId":"fc666996687b23af"},{"name":"run-typescript","duration":9979621,"timestamp":199763122758,"id":16,"parentId":1,"tags":{},"startTime":1779007735369,"traceId":"fc666996687b23af"},{"name":"static-check","duration":908777,"timestamp":199773299704,"id":19,"parentId":1,"tags":{},"startTime":1779007745546,"traceId":"fc666996687b23af"},{"name":"static-generation","duration":608055,"timestamp":199774224151,"id":109,"parentId":1,"tags":{},"startTime":1779007746470,"traceId":"fc666996687b23af"},{"name":"telemetry-flush","duration":27960,"timestamp":199774867099,"id":118,"parentId":1,"tags":{},"startTime":1779007747113,"traceId":"fc666996687b23af"},{"name":"next-build","duration":18143879,"timestamp":199756751209,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779007728997,"traceId":"fc666996687b23af"}]
@@ -6707,11 +6707,45 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
6707
6707
  so the glow eases under the same cadence as the
6708
6708
  scale + fw + fill axes. */
6709
6709
  data-topo-hub-working-count-glow={!reducedMotion && hoveredHub ? 'true' : 'false'}
6710
+ /* Round 507 / Loop — focal recede. When ANY non-hub
6711
+ canvas surface is hovered (a node / an edge / a
6712
+ group label / a legend row / a vendor chip), the
6713
+ hub-center workingCount digit fades to 0.85 opacity,
6714
+ signaling "you're inspecting elsewhere, hub recedes
6715
+ to background." When the user un-hovers (or hovers
6716
+ the hub itself), opacity returns to 1.0. Pure paint
6717
+ polish at the canvas's most prominent focal point.
6718
+ Hits 信息密度 + 动效 themes — the hub digit gives
6719
+ way visually to the surface under inspection,
6720
+ reinforcing the "this is the focal point right now"
6721
+ gesture without requiring users to track which
6722
+ surface holds attention.
6723
+ Gate excludes hoveredHub specifically: hovering the
6724
+ hub itself should LIFT the digit (R425 fw bump +
6725
+ R476 glow + R209 scale 1.08) — the existing hover-
6726
+ on-hub signature is intact; only inspection
6727
+ ELSEWHERE recedes the hub.
6728
+ Composed from existing hoveredAlias / hoveredEdge-
6729
+ Key / hoveredGroupLabel / hoveredStatus / hovered-
6730
+ Vendor — no new state. 300ms ease-out opacity
6731
+ transition already in the style list (existing R213
6732
+ transition spec), so the fade rides on existing
6733
+ infrastructure.
6734
+ data-topo-hub-recede attr surfaces the gate state
6735
+ for tests. */
6736
+ data-topo-hub-recede={
6737
+ (hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
6738
+ hoveredStatus || hoveredVendor) && !hoveredHub ? 'true' : 'false'
6739
+ }
6710
6740
  style={{
6711
6741
  pointerEvents: 'none',
6712
6742
  transform: !reducedMotion && hoveredHub ? 'scale(1.08)' : 'scale(1)',
6713
6743
  transformBox: 'fill-box',
6714
6744
  transformOrigin: 'center',
6745
+ opacity: (hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
6746
+ hoveredStatus || hoveredVendor) && !hoveredHub
6747
+ ? 0.85
6748
+ : 1,
6715
6749
  filter: !reducedMotion && hoveredHub
6716
6750
  ? (isLight
6717
6751
  ? 'drop-shadow(0 0 2px rgba(16, 185, 129, 0.6))'
@@ -6721,7 +6755,9 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
6721
6755
  bump 700 → 800 eases under the same cadence as
6722
6756
  R209 scale + R253 fill + R213 opacity.
6723
6757
  R476: filter 200ms appended so the new drop-
6724
- shadow glow eases at the same cadence. */
6758
+ shadow glow eases at the same cadence.
6759
+ R507: opacity 300ms (existing in list) covers
6760
+ the new focal-recede fade. */
6725
6761
  transition: 'transform 200ms ease-out, opacity 300ms ease-out, fill 200ms ease-out, font-weight 200ms ease-out, filter 200ms ease-out',
6726
6762
  fontVariantNumeric: 'tabular-nums',
6727
6763
  }}
@@ -6768,20 +6804,50 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
6768
6804
  + R213 always-mount opacity-gate + pointerEvents:none
6769
6805
  + R365 r=5.5 all preserved. data-topo-hub-highlight-
6770
6806
  opacity attr exposes the resolved value for tests. */}
6771
- <circle
6772
- cx={cx} cy={cy} r="5.5"
6773
- fill="#d1fae5"
6774
- opacity={workingCount > 0 ? 0 : 0.95}
6775
- data-topo-hub-highlight
6776
- data-topo-hub-highlight-visible={workingCount > 0 ? 'false' : 'true'}
6777
- data-topo-hub-highlight-radius="5.5"
6778
- data-topo-hub-highlight-opacity={workingCount > 0 ? 0 : 0.95}
6779
- data-topo-hub-highlight-breath={!reducedMotion && workingCount === 0 ? 'true' : 'false'}
6780
- style={{
6781
- pointerEvents: 'none',
6782
- transition: 'opacity 300ms ease-out',
6783
- }}
6784
- >
6807
+ {/* Round 508 / Loop — focal-recede pattern 2nd anchor.
6808
+ Extends R507's hub-digit recede to the hub-highlight
6809
+ circle so the hub focal CLUSTER (digit at z-top + this
6810
+ idle-state highlight beneath) recedes as a unit when
6811
+ canvas attention is elsewhere. Computed once: a single
6812
+ non-hub-hover gate drives BOTH the digit (R507) AND
6813
+ this highlight (R508) so they always co-move.
6814
+ Recede multiplies the visible opacity by 0.85 — when
6815
+ workingCount===0 the rest opacity 0.95 becomes 0.81
6816
+ during external-hover; when workingCount>0 the
6817
+ opacity stays 0 (invisible) regardless of recede.
6818
+ Additionally, when recede is active the SMIL breath
6819
+ animation halts (animate node un-mounts) so the
6820
+ receded state reads as quietly static, not pulsing
6821
+ at 0.85↔1.0 against the recede multiplier (which
6822
+ would visually conflict — competing 15% drops). On
6823
+ un-hover the animate re-mounts and breath resumes.
6824
+ data-topo-hub-recede on both digit AND highlight
6825
+ provides a stable test handle for the unified-recede
6826
+ gate.
6827
+ Composed from existing hover state vars — no new
6828
+ state. Pure paint axis. */}
6829
+ {(() => {
6830
+ const hubRecede = !!((hoveredAlias || hoveredEdgeKey || hoveredGroupLabel ||
6831
+ hoveredStatus || hoveredVendor) && !hoveredHub);
6832
+ const baseOpacity = workingCount > 0 ? 0 : 0.95;
6833
+ const resolvedOpacity = hubRecede ? baseOpacity * 0.85 : baseOpacity;
6834
+ const breathActive = !reducedMotion && workingCount === 0 && !hubRecede;
6835
+ return (
6836
+ <circle
6837
+ cx={cx} cy={cy} r="5.5"
6838
+ fill="#d1fae5"
6839
+ opacity={resolvedOpacity}
6840
+ data-topo-hub-highlight
6841
+ data-topo-hub-highlight-visible={workingCount > 0 ? 'false' : 'true'}
6842
+ data-topo-hub-highlight-radius="5.5"
6843
+ data-topo-hub-highlight-opacity={resolvedOpacity}
6844
+ data-topo-hub-highlight-breath={breathActive ? 'true' : 'false'}
6845
+ data-topo-hub-highlight-recede={hubRecede ? 'true' : 'false'}
6846
+ style={{
6847
+ pointerEvents: 'none',
6848
+ transition: 'opacity 300ms ease-out',
6849
+ }}
6850
+ >
6785
6851
  {/* Round 497 / Loop — idle-state breath (呼吸感 theme pivot
6786
6852
  from the R492-R496 press-family arc). Pre-R497 the hub
6787
6853
  idle highlight read as a static dim disc — present but
@@ -6802,10 +6868,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
6802
6868
  rather than a pulse, matching the "quiet" semantic.
6803
6869
  data-topo-hub-highlight-breath attr exposes the
6804
6870
  resolved gate state for tests. */}
6805
- {!reducedMotion && workingCount === 0 && (
6871
+ {breathActive && (
6806
6872
  <animate attributeName="opacity" values="0.85;1;0.85" dur="4s" repeatCount="indefinite" />
6807
6873
  )}
6808
6874
  </circle>
6875
+ );
6876
+ })()}
6809
6877
  {/* R115 / Loop: hover hint ring. Stroke-only circle at r=14
6810
6878
  that fades in when the hub is hovered — the same idea
6811
6879
  R44 used for node avatars (group-hover stroke). r=14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network-dashboard",
3
- "version": "0.5.3-preview.20",
3
+ "version": "0.5.3-preview.22",
4
4
  "description": "Agent Network Dashboard — Web UI for managing AI Agent networks",
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -0,0 +1,140 @@
1
+ /* Round 508 verification: hub-highlight circle joins the focal-recede
2
+ * pattern (2nd anchor after R507's hub digit). When canvas attention
3
+ * is elsewhere, the hub focal cluster (digit + highlight) recedes as
4
+ * a unit:
5
+ * - hub-digit opacity: 1 → 0.85 (R507)
6
+ * - hub-highlight opacity: 0.95 → 0.81 (R508, 0.95 × 0.85)
7
+ * - hub-highlight SMIL breath: active → halted (R508)
8
+ *
9
+ * Also verifies R497 idle-breath still works in the un-receded state
10
+ * — refactor regression check.
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, status) => ({
33
+ alias, status, 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
+ // workingCount === 0 (all idle) so hub-highlight is visible
38
+ await route.fulfill({ response: r, json: { ...b, sessions: [
39
+ mk('alpha·a1', 'idle'),
40
+ mk('alpha·a2', 'idle'),
41
+ ] } });
42
+ });
43
+ await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
44
+ await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
45
+ const page = await ctx.newPage();
46
+ await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
47
+ await page.waitForSelector('[data-topo-hub-highlight]', { timeout: 15000 });
48
+ await page.waitForTimeout(1500);
49
+
50
+ // Phase 1: rest state — idle fleet, no external hover
51
+ // expected: opacity 0.95, breath='true', recede='false', animate present
52
+ const rest = await page.evaluate(() => {
53
+ const circle = document.querySelector('[data-topo-hub-highlight]');
54
+ if (!circle) return null;
55
+ return {
56
+ opacity_attr: circle.getAttribute('data-topo-hub-highlight-opacity'),
57
+ breath_attr: circle.getAttribute('data-topo-hub-highlight-breath'),
58
+ recede_attr: circle.getAttribute('data-topo-hub-highlight-recede'),
59
+ has_animate: !!circle.querySelector('animate[attributeName="opacity"]'),
60
+ };
61
+ });
62
+
63
+ // Phase 2: external hover via R488 synthetic dispatch on a node
64
+ // expected: opacity 0.81 (0.95 * 0.85), breath='false', recede='true',
65
+ // animate ABSENT (halted)
66
+ await page.evaluate(() => {
67
+ const g = document.querySelector('g[data-node]');
68
+ if (!g) return;
69
+ const target = g.querySelector('circle, image, rect') || g;
70
+ ['pointerenter', 'pointerover', 'mouseenter', 'mouseover'].forEach((t) => {
71
+ target.dispatchEvent(new Event(t, { bubbles: true, cancelable: true }));
72
+ });
73
+ });
74
+ await page.waitForTimeout(500);
75
+ const hover = await page.evaluate(() => {
76
+ const circle = document.querySelector('[data-topo-hub-highlight]');
77
+ if (!circle) return null;
78
+ return {
79
+ opacity_attr: circle.getAttribute('data-topo-hub-highlight-opacity'),
80
+ breath_attr: circle.getAttribute('data-topo-hub-highlight-breath'),
81
+ recede_attr: circle.getAttribute('data-topo-hub-highlight-recede'),
82
+ has_animate: !!circle.querySelector('animate[attributeName="opacity"]'),
83
+ };
84
+ });
85
+
86
+ // Phase 3: release hover
87
+ await page.evaluate(() => {
88
+ const g = document.querySelector('g[data-node]');
89
+ if (!g) return;
90
+ const target = g.querySelector('circle, image, rect') || g;
91
+ ['pointerleave', 'pointerout', 'mouseleave', 'mouseout'].forEach((t) => {
92
+ target.dispatchEvent(new Event(t, { bubbles: true, cancelable: true }));
93
+ });
94
+ });
95
+ await page.waitForTimeout(500);
96
+ const release = await page.evaluate(() => {
97
+ const circle = document.querySelector('[data-topo-hub-highlight]');
98
+ if (!circle) return null;
99
+ return {
100
+ opacity_attr: circle.getAttribute('data-topo-hub-highlight-opacity'),
101
+ breath_attr: circle.getAttribute('data-topo-hub-highlight-breath'),
102
+ recede_attr: circle.getAttribute('data-topo-hub-highlight-recede'),
103
+ has_animate: !!circle.querySelector('animate[attributeName="opacity"]'),
104
+ };
105
+ });
106
+
107
+ await browser.close();
108
+
109
+ const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
110
+ const sourceIIFE = /const hubRecede = !!\(\(hoveredAlias \|\| hoveredEdgeKey \|\| hoveredGroupLabel/.test(src);
111
+ const sourceOpacityMultiplier = /const resolvedOpacity = hubRecede \? baseOpacity \* 0\.85 : baseOpacity;/.test(src);
112
+ const sourceBreathGate = /const breathActive = !reducedMotion && workingCount === 0 && !hubRecede;/.test(src);
113
+ const sourceAnimateGate = /\{breathActive && \(\s*<animate/.test(src);
114
+
115
+ const approxEq = (a, b) => Math.abs(parseFloat(a) - b) < 0.01;
116
+
117
+ const results = {
118
+ rest_opacity_095: rest && approxEq(rest.opacity_attr, 0.95),
119
+ rest_breath_true: rest && rest.breath_attr === 'true',
120
+ rest_recede_false: rest && rest.recede_attr === 'false',
121
+ rest_has_animate: rest && rest.has_animate,
122
+ hover_opacity_081: hover && approxEq(hover.opacity_attr, 0.81),
123
+ hover_breath_false: hover && hover.breath_attr === 'false',
124
+ hover_recede_true: hover && hover.recede_attr === 'true',
125
+ hover_no_animate: hover && !hover.has_animate,
126
+ release_opacity_095: release && approxEq(release.opacity_attr, 0.95),
127
+ release_breath_true: release && release.breath_attr === 'true',
128
+ release_recede_false:release && release.recede_attr === 'false',
129
+ release_has_animate: release && release.has_animate,
130
+ source_iife_wired: sourceIIFE,
131
+ source_multiplier_wired: sourceOpacityMultiplier,
132
+ source_breath_gate_wired: sourceBreathGate,
133
+ source_animate_gate_wired:sourceAnimateGate,
134
+ };
135
+ const ok = Object.values(results).every(Boolean);
136
+ console.log(`${ok ? '✅' : '❌'} R508 hub-highlight recede:`, JSON.stringify(results),
137
+ '\n rest:', JSON.stringify(rest),
138
+ '\n hover:', JSON.stringify(hover),
139
+ '\n release:', JSON.stringify(release));
140
+ process.exit(ok ? 0 : 1);
@@ -74,8 +74,14 @@ const idleA11y = await probe({ sessions: [{ alias: 'a·1', status: 'idle' }], re
74
74
  const busy = await probe({ sessions: [{ alias: 'a·1', status: 'working' }], reducedMotion: false });
75
75
 
76
76
  const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
77
- const sourceWired = /!reducedMotion && workingCount === 0 &&\s*\(\s*<animate attributeName="opacity" values="0\.85;1;0\.85" dur="4s" repeatCount="indefinite"/.test(src);
78
- const breathAttrWired = /data-topo-hub-highlight-breath=\{!reducedMotion && workingCount === 0 \? 'true' : 'false'\}/.test(src);
77
+ // R508 refactor: the hub-highlight rendering was hoisted into an IIFE
78
+ // so digit + highlight share a single `hubRecede` gate. The R497 source
79
+ // formula now lives inside the IIFE: `breathActive = !reducedMotion &&
80
+ // workingCount === 0 && !hubRecede` AND `breath_attr` uses `breathActive`.
81
+ // Update regex anchors to match the new structure. Runtime DOM contract
82
+ // (idle visible, busy invisible, a11y no-animate) unchanged.
83
+ const sourceWired = /const breathActive = !reducedMotion && workingCount === 0 && !hubRecede;[\s\S]*?\{breathActive && \(\s*<animate attributeName="opacity" values="0\.85;1;0\.85" dur="4s" repeatCount="indefinite"/.test(src);
84
+ const breathAttrWired = /data-topo-hub-highlight-breath=\{breathActive \? 'true' : 'false'\}/.test(src);
79
85
 
80
86
  const results = {
81
87
  // Idle + motion: visible + animate present + breath='true'