@sleep2agi/agent-network-dashboard 0.4.6-preview.286 → 0.4.6-preview.287

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 (141) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/diagnostics/route-bundle-stats.json +4 -4
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/server/app/_global-error.html +1 -1
  6. package/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found.html +1 -1
  13. package/.next/server/app/_not-found.rsc +1 -1
  14. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  20. package/.next/server/app/admin.html +1 -1
  21. package/.next/server/app/admin.rsc +1 -1
  22. package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
  23. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  24. package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
  25. package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
  26. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
  27. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  28. package/.next/server/app/index.html +2 -2
  29. package/.next/server/app/index.rsc +2 -2
  30. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  31. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  32. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  33. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  34. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  35. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/login.html +2 -2
  37. package/.next/server/app/login.rsc +2 -2
  38. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  39. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  40. package/.next/server/app/login.segments/_index.segment.rsc +1 -1
  41. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  42. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  43. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  44. package/.next/server/app/logs.html +1 -1
  45. package/.next/server/app/logs.rsc +1 -1
  46. package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
  47. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  48. package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
  49. package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
  50. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  51. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  52. package/.next/server/app/messages.html +1 -1
  53. package/.next/server/app/messages.rsc +1 -1
  54. package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
  55. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  56. package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
  57. package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
  58. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
  59. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  60. package/.next/server/app/node.html +1 -1
  61. package/.next/server/app/node.rsc +1 -1
  62. package/.next/server/app/node.segments/_full.segment.rsc +1 -1
  63. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  64. package/.next/server/app/node.segments/_index.segment.rsc +1 -1
  65. package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
  66. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
  67. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  68. package/.next/server/app/nodes.html +1 -1
  69. package/.next/server/app/nodes.rsc +1 -1
  70. package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
  71. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  72. package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
  73. package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
  74. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
  75. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  76. package/.next/server/app/page_client-reference-manifest.js +1 -1
  77. package/.next/server/app/server-logs.html +1 -1
  78. package/.next/server/app/server-logs.rsc +1 -1
  79. package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
  80. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  81. package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
  82. package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
  83. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  84. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  85. package/.next/server/app/settings/networks.html +1 -1
  86. package/.next/server/app/settings/networks.rsc +1 -1
  87. package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
  88. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  89. package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
  90. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
  91. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  92. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  93. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  94. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  95. package/.next/server/app/settings/tokens.html +1 -1
  96. package/.next/server/app/settings/tokens.rsc +1 -1
  97. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
  98. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  99. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
  100. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
  101. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  102. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  103. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  104. package/.next/server/app/settings.html +2 -2
  105. package/.next/server/app/settings.rsc +2 -2
  106. package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  107. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  108. package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  109. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  110. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  111. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  112. package/.next/server/app/tasks.html +1 -1
  113. package/.next/server/app/tasks.rsc +1 -1
  114. package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
  115. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  116. package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
  117. package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
  118. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  119. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  120. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +3 -3
  121. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  122. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  123. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  124. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  125. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  126. package/.next/server/middleware-build-manifest.js +3 -3
  127. package/.next/server/pages/404.html +1 -1
  128. package/.next/server/pages/500.html +1 -1
  129. package/.next/static/chunks/{15skg9phnatf9.js → 0ekjn6t9ysdjv.js} +3 -3
  130. package/.next/static/chunks/{0t54qp~-i8qa7.js → 0urgynasq-ypz.js} +1 -1
  131. package/.next/static/chunks/{0ds6li~5xrp~p.js → 17wqzvdgxok57.js} +1 -1
  132. package/.next/trace +2 -2
  133. package/.next/trace-build +1 -1
  134. package/app/components/TopoGraph.tsx +14 -1
  135. package/package.json +1 -1
  136. package/scripts/topo-spokes-retired-test.mjs +93 -0
  137. package/scripts/topo-spoke-busyness-test.mjs +0 -110
  138. package/scripts/topo-spoke-tint-test.mjs +0 -96
  139. /package/.next/static/{PuVOWYzSKlsQA5ibHgHfO → HBbB3A7-O2LxL9zMNYHXa}/_buildManifest.js +0 -0
  140. /package/.next/static/{PuVOWYzSKlsQA5ibHgHfO → HBbB3A7-O2LxL9zMNYHXa}/_clientMiddlewareManifest.js +0 -0
  141. /package/.next/static/{PuVOWYzSKlsQA5ibHgHfO → HBbB3A7-O2LxL9zMNYHXa}/_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.4.6-preview.286"],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.4.6-preview.287"],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.4.6-preview.286"],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.4.6-preview.287"],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":343,"timestamp":104548810440,"id":4,"parentId":1,"tags":{},"startTime":1778912521057,"traceId":"86b2f089bf940363"},{"name":"load-custom-routes","duration":601,"timestamp":104548810983,"id":5,"parentId":1,"tags":{},"startTime":1778912521057,"traceId":"86b2f089bf940363"},{"name":"create-dist-dir","duration":892,"timestamp":104548811641,"id":6,"parentId":1,"tags":{},"startTime":1778912521058,"traceId":"86b2f089bf940363"},{"name":"clean","duration":40686,"timestamp":104548813360,"id":7,"parentId":1,"tags":{},"startTime":1778912521060,"traceId":"86b2f089bf940363"},{"name":"discover-routes","duration":10337,"timestamp":104548943371,"id":8,"parentId":1,"tags":{},"startTime":1778912521190,"traceId":"86b2f089bf940363"},{"name":"create-root-mapping","duration":116,"timestamp":104548953778,"id":9,"parentId":1,"tags":{},"startTime":1778912521200,"traceId":"86b2f089bf940363"},{"name":"generate-route-types","duration":33451,"timestamp":104548956363,"id":10,"parentId":1,"tags":{},"startTime":1778912521203,"traceId":"86b2f089bf940363"},{"name":"public-dir-conflict-check","duration":124,"timestamp":104548989909,"id":11,"parentId":1,"tags":{},"startTime":1778912521236,"traceId":"86b2f089bf940363"},{"name":"generate-routes-manifest","duration":4297,"timestamp":104548990148,"id":12,"parentId":1,"tags":{},"startTime":1778912521236,"traceId":"86b2f089bf940363"},{"name":"run-turbopack","duration":5589670,"timestamp":104549006275,"id":14,"parentId":1,"tags":{},"startTime":1778912521253,"traceId":"86b2f089bf940363"},{"name":"turbopack-build-events","duration":90,"timestamp":104549305862,"id":15,"parentId":1,"tags":{},"startTime":1778912521552,"traceId":"86b2f089bf940363"},{"name":"run-typescript","duration":8896030,"timestamp":104554604879,"id":16,"parentId":1,"tags":{},"startTime":1778912526851,"traceId":"86b2f089bf940363"},{"name":"generate-required-server-files","duration":2086,"timestamp":104563501852,"id":18,"parentId":1,"tags":{},"startTime":1778912535748,"traceId":"86b2f089bf940363"},{"name":"check-static-error-page","duration":11582,"timestamp":104563673766,"id":20,"parentId":19,"tags":{},"startTime":1778912535920,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":465310,"timestamp":104563688469,"id":63,"parentId":22,"tags":{},"startTime":1778912535935,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":477154,"timestamp":104563676807,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778912535923,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":542492,"timestamp":104563688866,"id":66,"parentId":27,"tags":{},"startTime":1778912535935,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":551822,"timestamp":104563679640,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778912535926,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":548854,"timestamp":104563689645,"id":70,"parentId":32,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":558123,"timestamp":104563680453,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778912535927,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":571866,"timestamp":104563688623,"id":64,"parentId":25,"tags":{},"startTime":1778912535935,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":581256,"timestamp":104563679315,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778912535926,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":577553,"timestamp":104563689713,"id":71,"parentId":33,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":586792,"timestamp":104563680546,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778912535927,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":577723,"timestamp":104563689794,"id":72,"parentId":34,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":586928,"timestamp":104563680630,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778912535927,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":579778,"timestamp":104563688088,"id":62,"parentId":21,"tags":{},"startTime":1778912535934,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":592715,"timestamp":104563675380,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778912535922,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":586403,"timestamp":104563689328,"id":68,"parentId":29,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":595899,"timestamp":104563679876,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778912535926,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":589148,"timestamp":104563689472,"id":69,"parentId":30,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":598594,"timestamp":104563680075,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778912535926,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":593111,"timestamp":104563688746,"id":65,"parentId":26,"tags":{},"startTime":1778912535935,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":602395,"timestamp":104563679504,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778912535926,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":592060,"timestamp":104563690019,"id":76,"parentId":38,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":600774,"timestamp":104563681337,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":598997,"timestamp":104563689163,"id":67,"parentId":28,"tags":{},"startTime":1778912535935,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":608446,"timestamp":104563679758,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778912535926,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":603168,"timestamp":104563689824,"id":73,"parentId":35,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":612332,"timestamp":104563680717,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778912535927,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":604762,"timestamp":104563690073,"id":80,"parentId":42,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":613263,"timestamp":104563681617,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":607946,"timestamp":104563690087,"id":81,"parentId":43,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":616392,"timestamp":104563681685,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":612651,"timestamp":104563690113,"id":83,"parentId":45,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":620989,"timestamp":104563681818,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":615713,"timestamp":104563689947,"id":74,"parentId":36,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":624609,"timestamp":104563681097,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778912535927,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":619964,"timestamp":104563690128,"id":84,"parentId":46,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":628266,"timestamp":104563681870,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":620468,"timestamp":104563690063,"id":79,"parentId":41,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":629026,"timestamp":104563681544,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":628078,"timestamp":104563690034,"id":77,"parentId":39,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":636978,"timestamp":104563681407,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":629256,"timestamp":104563690167,"id":87,"parentId":49,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":637326,"timestamp":104563682143,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":630723,"timestamp":104563690156,"id":86,"parentId":48,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":638847,"timestamp":104563682070,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":626997,"timestamp":104563698681,"id":89,"parentId":31,"tags":{},"startTime":1778912535945,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":645499,"timestamp":104563680221,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778912535926,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":639707,"timestamp":104563690142,"id":85,"parentId":47,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":647916,"timestamp":104563681979,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":641125,"timestamp":104563690049,"id":78,"parentId":40,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":649745,"timestamp":104563681477,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":651971,"timestamp":104563690102,"id":82,"parentId":44,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":660368,"timestamp":104563681758,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":649104,"timestamp":104563697492,"id":88,"parentId":24,"tags":{},"startTime":1778912535944,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":669364,"timestamp":104563677282,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778912535924,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":672631,"timestamp":104563689988,"id":75,"parentId":37,"tags":{},"startTime":1778912535936,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":681442,"timestamp":104563681242,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778912535928,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":662928,"timestamp":104563708523,"id":96,"parentId":56,"tags":{},"startTime":1778912535955,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":687587,"timestamp":104563683924,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778912535930,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":668289,"timestamp":104563708451,"id":91,"parentId":50,"tags":{},"startTime":1778912535955,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":694321,"timestamp":104563682465,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778912535929,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":670863,"timestamp":104563708538,"id":97,"parentId":57,"tags":{},"startTime":1778912535955,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":695317,"timestamp":104563684143,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778912535930,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":674866,"timestamp":104563708412,"id":90,"parentId":23,"tags":{},"startTime":1778912535955,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":706259,"timestamp":104563677068,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778912535923,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":681616,"timestamp":104563708555,"id":98,"parentId":59,"tags":{},"startTime":1778912535955,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":705607,"timestamp":104563684635,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778912535931,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":682703,"timestamp":104563708465,"id":92,"parentId":51,"tags":{},"startTime":1778912535955,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":708621,"timestamp":104563682591,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778912535929,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":683351,"timestamp":104563708593,"id":100,"parentId":61,"tags":{},"startTime":1778912535955,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":707001,"timestamp":104563684994,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778912535931,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":678252,"timestamp":104563718822,"id":101,"parentId":55,"tags":{},"startTime":1778912535965,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":713696,"timestamp":104563683414,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778912535930,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":689103,"timestamp":104563708572,"id":99,"parentId":60,"tags":{},"startTime":1778912535955,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":712928,"timestamp":104563684803,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778912535931,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":673778,"timestamp":104563725120,"id":102,"parentId":58,"tags":{},"startTime":1778912535971,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":714640,"timestamp":104563684309,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778912535931,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":691383,"timestamp":104563708480,"id":93,"parentId":52,"tags":{},"startTime":1778912535955,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":717166,"timestamp":104563682733,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778912535929,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":694604,"timestamp":104563708511,"id":95,"parentId":54,"tags":{},"startTime":1778912535955,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":719961,"timestamp":104563683200,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778912535929,"traceId":"86b2f089bf940363"},{"name":"is-page-static","duration":695631,"timestamp":104563708496,"id":94,"parentId":53,"tags":{},"startTime":1778912535955,"traceId":"86b2f089bf940363"},{"name":"check-page","duration":721193,"timestamp":104563682980,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778912535929,"traceId":"86b2f089bf940363"},{"name":"static-check","duration":731275,"timestamp":104563672941,"id":19,"parentId":1,"tags":{},"startTime":1778912535919,"traceId":"86b2f089bf940363"},{"name":"write-routes-manifest","duration":419,"timestamp":104564411132,"id":104,"parentId":1,"tags":{},"startTime":1778912536657,"traceId":"86b2f089bf940363"},{"name":"load-dotenv","duration":37,"timestamp":104564422189,"id":107,"parentId":106,"tags":{},"startTime":1778912536668,"traceId":"86b2f089bf940363"},{"name":"run-export-path-map","duration":729,"timestamp":104564425917,"id":108,"parentId":106,"tags":{},"startTime":1778912536672,"traceId":"86b2f089bf940363"},{"name":"next-export","duration":621414,"timestamp":104564420936,"id":106,"parentId":1,"tags":{},"startTime":1778912536667,"traceId":"86b2f089bf940363"}]
2
- [{"name":"move-exported-app-not-found-","duration":2160,"timestamp":104565046160,"id":109,"parentId":105,"tags":{},"startTime":1778912537292,"traceId":"86b2f089bf940363"},{"name":"move-exported-app-global-error-","duration":537,"timestamp":104565048402,"id":110,"parentId":105,"tags":{},"startTime":1778912537295,"traceId":"86b2f089bf940363"},{"name":"static-generation","duration":635437,"timestamp":104564415300,"id":105,"parentId":1,"tags":{},"startTime":1778912536662,"traceId":"86b2f089bf940363"},{"name":"write-routes-manifest","duration":583,"timestamp":104565050915,"id":111,"parentId":1,"tags":{},"startTime":1778912537297,"traceId":"86b2f089bf940363"},{"name":"print-tree-view","duration":4758,"timestamp":104565067228,"id":112,"parentId":1,"tags":{},"startTime":1778912537314,"traceId":"86b2f089bf940363"},{"name":"write-route-bundle-stats","duration":12711,"timestamp":104565072031,"id":113,"parentId":1,"tags":{},"startTime":1778912537318,"traceId":"86b2f089bf940363"},{"name":"telemetry-flush","duration":23201,"timestamp":104565084774,"id":114,"parentId":1,"tags":{},"startTime":1778912537331,"traceId":"86b2f089bf940363"},{"name":"next-build","duration":16352274,"timestamp":104548755725,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778912521002,"traceId":"86b2f089bf940363"}]
1
+ [{"name":"generate-buildid","duration":244,"timestamp":104844972623,"id":4,"parentId":1,"tags":{},"startTime":1778912817219,"traceId":"06458f5d43532412"},{"name":"load-custom-routes","duration":459,"timestamp":104844973053,"id":5,"parentId":1,"tags":{},"startTime":1778912817219,"traceId":"06458f5d43532412"},{"name":"create-dist-dir","duration":771,"timestamp":104844973555,"id":6,"parentId":1,"tags":{},"startTime":1778912817220,"traceId":"06458f5d43532412"},{"name":"clean","duration":27766,"timestamp":104844974972,"id":7,"parentId":1,"tags":{},"startTime":1778912817221,"traceId":"06458f5d43532412"},{"name":"discover-routes","duration":13018,"timestamp":104845080748,"id":8,"parentId":1,"tags":{},"startTime":1778912817327,"traceId":"06458f5d43532412"},{"name":"create-root-mapping","duration":121,"timestamp":104845093827,"id":9,"parentId":1,"tags":{},"startTime":1778912817340,"traceId":"06458f5d43532412"},{"name":"generate-route-types","duration":39844,"timestamp":104845096342,"id":10,"parentId":1,"tags":{},"startTime":1778912817343,"traceId":"06458f5d43532412"},{"name":"public-dir-conflict-check","duration":134,"timestamp":104845136298,"id":11,"parentId":1,"tags":{},"startTime":1778912817383,"traceId":"06458f5d43532412"},{"name":"generate-routes-manifest","duration":6249,"timestamp":104845136602,"id":12,"parentId":1,"tags":{},"startTime":1778912817383,"traceId":"06458f5d43532412"},{"name":"run-turbopack","duration":5523176,"timestamp":104845149507,"id":14,"parentId":1,"tags":{},"startTime":1778912817396,"traceId":"06458f5d43532412"},{"name":"turbopack-build-events","duration":71,"timestamp":104845438655,"id":15,"parentId":1,"tags":{},"startTime":1778912817685,"traceId":"06458f5d43532412"},{"name":"run-typescript","duration":8919611,"timestamp":104850681435,"id":16,"parentId":1,"tags":{},"startTime":1778912822928,"traceId":"06458f5d43532412"},{"name":"generate-required-server-files","duration":2787,"timestamp":104859602182,"id":18,"parentId":1,"tags":{},"startTime":1778912831848,"traceId":"06458f5d43532412"},{"name":"check-static-error-page","duration":10037,"timestamp":104859770980,"id":20,"parentId":19,"tags":{},"startTime":1778912832017,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":436170,"timestamp":104859783358,"id":63,"parentId":22,"tags":{},"startTime":1778912832030,"traceId":"06458f5d43532412"},{"name":"check-page","duration":446368,"timestamp":104859773318,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778912832020,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":497601,"timestamp":104859783531,"id":65,"parentId":26,"tags":{},"startTime":1778912832030,"traceId":"06458f5d43532412"},{"name":"check-page","duration":505338,"timestamp":104859775900,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778912832022,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":502462,"timestamp":104859784448,"id":70,"parentId":32,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":510357,"timestamp":104859776623,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778912832023,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":517668,"timestamp":104859783636,"id":66,"parentId":27,"tags":{},"startTime":1778912832030,"traceId":"06458f5d43532412"},{"name":"check-page","duration":525314,"timestamp":104859776061,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778912832022,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":521899,"timestamp":104859784600,"id":72,"parentId":34,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":529762,"timestamp":104859776802,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778912832023,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":545516,"timestamp":104859783896,"id":67,"parentId":28,"tags":{},"startTime":1778912832030,"traceId":"06458f5d43532412"},{"name":"check-page","duration":553342,"timestamp":104859776164,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778912832022,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":545275,"timestamp":104859784629,"id":73,"parentId":35,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":553062,"timestamp":104859776901,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778912832023,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":548729,"timestamp":104859784523,"id":71,"parentId":33,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":556580,"timestamp":104859776726,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778912832023,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":552649,"timestamp":104859783448,"id":64,"parentId":25,"tags":{},"startTime":1778912832030,"traceId":"06458f5d43532412"},{"name":"check-page","duration":560445,"timestamp":104859775705,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778912832022,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":556742,"timestamp":104859784794,"id":77,"parentId":39,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":564001,"timestamp":104859777582,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":558865,"timestamp":104859784767,"id":75,"parentId":37,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":566248,"timestamp":104859777431,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":564490,"timestamp":104859784732,"id":74,"parentId":36,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":571981,"timestamp":104859777295,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":565242,"timestamp":104859784208,"id":69,"parentId":30,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":573151,"timestamp":104859776341,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778912832023,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":565094,"timestamp":104859784780,"id":76,"parentId":38,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":572418,"timestamp":104859777518,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":570567,"timestamp":104859784806,"id":78,"parentId":40,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":577775,"timestamp":104859777641,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":575966,"timestamp":104859784864,"id":83,"parentId":45,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":582898,"timestamp":104859777974,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":577049,"timestamp":104859784822,"id":79,"parentId":41,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":584232,"timestamp":104859777704,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":580436,"timestamp":104859783089,"id":62,"parentId":21,"tags":{},"startTime":1778912832029,"traceId":"06458f5d43532412"},{"name":"check-page","duration":591401,"timestamp":104859772165,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778912832018,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":581296,"timestamp":104859784904,"id":85,"parentId":47,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":588078,"timestamp":104859778159,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":581471,"timestamp":104859784889,"id":84,"parentId":46,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":588321,"timestamp":104859778066,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":585028,"timestamp":104859784926,"id":87,"parentId":49,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":591736,"timestamp":104859778294,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778912832025,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":585009,"timestamp":104859788286,"id":88,"parentId":24,"tags":{},"startTime":1778912832035,"traceId":"06458f5d43532412"},{"name":"check-page","duration":599657,"timestamp":104859773704,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778912832020,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":584933,"timestamp":104859789485,"id":89,"parentId":31,"tags":{},"startTime":1778912832036,"traceId":"06458f5d43532412"},{"name":"check-page","duration":598040,"timestamp":104859776420,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778912832023,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":608546,"timestamp":104859784844,"id":81,"parentId":43,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":615631,"timestamp":104859777831,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":608783,"timestamp":104859784832,"id":80,"parentId":42,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":615878,"timestamp":104859777769,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":608907,"timestamp":104859784855,"id":82,"parentId":44,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":615883,"timestamp":104859777907,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":612310,"timestamp":104859784069,"id":68,"parentId":29,"tags":{},"startTime":1778912832030,"traceId":"06458f5d43532412"},{"name":"check-page","duration":620187,"timestamp":104859776246,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778912832023,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":640173,"timestamp":104859792146,"id":91,"parentId":50,"tags":{},"startTime":1778912832038,"traceId":"06458f5d43532412"},{"name":"check-page","duration":653780,"timestamp":104859778612,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778912832025,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":653168,"timestamp":104859784918,"id":86,"parentId":48,"tags":{},"startTime":1778912832031,"traceId":"06458f5d43532412"},{"name":"check-page","duration":659922,"timestamp":104859778226,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778912832024,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":649185,"timestamp":104859792123,"id":90,"parentId":23,"tags":{},"startTime":1778912832038,"traceId":"06458f5d43532412"},{"name":"check-page","duration":667841,"timestamp":104859773521,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778912832020,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":649795,"timestamp":104859792388,"id":96,"parentId":56,"tags":{},"startTime":1778912832039,"traceId":"06458f5d43532412"},{"name":"check-page","duration":662343,"timestamp":104859779887,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778912832026,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":656529,"timestamp":104859792409,"id":98,"parentId":59,"tags":{},"startTime":1778912832039,"traceId":"06458f5d43532412"},{"name":"check-page","duration":668437,"timestamp":104859780552,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778912832027,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":666325,"timestamp":104859792357,"id":94,"parentId":53,"tags":{},"startTime":1778912832039,"traceId":"06458f5d43532412"},{"name":"check-page","duration":679690,"timestamp":104859779065,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778912832025,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":666506,"timestamp":104859792447,"id":100,"parentId":61,"tags":{},"startTime":1778912832039,"traceId":"06458f5d43532412"},{"name":"check-page","duration":678220,"timestamp":104859780770,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778912832027,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":670733,"timestamp":104859792400,"id":97,"parentId":57,"tags":{},"startTime":1778912832039,"traceId":"06458f5d43532412"},{"name":"check-page","duration":683102,"timestamp":104859780085,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778912832026,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":668946,"timestamp":104859797813,"id":101,"parentId":58,"tags":{},"startTime":1778912832044,"traceId":"06458f5d43532412"},{"name":"check-page","duration":686556,"timestamp":104859780242,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778912832027,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":674458,"timestamp":104859792429,"id":99,"parentId":60,"tags":{},"startTime":1778912832039,"traceId":"06458f5d43532412"},{"name":"check-page","duration":686253,"timestamp":104859780661,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778912832027,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":660239,"timestamp":104859807787,"id":102,"parentId":55,"tags":{},"startTime":1778912832054,"traceId":"06458f5d43532412"},{"name":"check-page","duration":688604,"timestamp":104859779459,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778912832026,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":679274,"timestamp":104859792347,"id":93,"parentId":52,"tags":{},"startTime":1778912832039,"traceId":"06458f5d43532412"},{"name":"check-page","duration":692800,"timestamp":104859778860,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778912832025,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":685933,"timestamp":104859792371,"id":95,"parentId":54,"tags":{},"startTime":1778912832039,"traceId":"06458f5d43532412"},{"name":"check-page","duration":699083,"timestamp":104859779252,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778912832026,"traceId":"06458f5d43532412"},{"name":"is-page-static","duration":697709,"timestamp":104859792327,"id":92,"parentId":51,"tags":{},"startTime":1778912832039,"traceId":"06458f5d43532412"},{"name":"check-page","duration":711336,"timestamp":104859778733,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778912832025,"traceId":"06458f5d43532412"},{"name":"static-check","duration":719817,"timestamp":104859770295,"id":19,"parentId":1,"tags":{},"startTime":1778912832017,"traceId":"06458f5d43532412"},{"name":"write-routes-manifest","duration":495,"timestamp":104860496550,"id":104,"parentId":1,"tags":{},"startTime":1778912832743,"traceId":"06458f5d43532412"},{"name":"load-dotenv","duration":35,"timestamp":104860507203,"id":107,"parentId":106,"tags":{},"startTime":1778912832753,"traceId":"06458f5d43532412"},{"name":"run-export-path-map","duration":731,"timestamp":104860510032,"id":108,"parentId":106,"tags":{},"startTime":1778912832756,"traceId":"06458f5d43532412"},{"name":"next-export","duration":586192,"timestamp":104860505998,"id":106,"parentId":1,"tags":{},"startTime":1778912832752,"traceId":"06458f5d43532412"}]
2
+ [{"name":"move-exported-app-not-found-","duration":2056,"timestamp":104861095502,"id":109,"parentId":105,"tags":{},"startTime":1778912833342,"traceId":"06458f5d43532412"},{"name":"move-exported-app-global-error-","duration":523,"timestamp":104861097637,"id":110,"parentId":105,"tags":{},"startTime":1778912833344,"traceId":"06458f5d43532412"},{"name":"static-generation","duration":599404,"timestamp":104860500623,"id":105,"parentId":1,"tags":{},"startTime":1778912832747,"traceId":"06458f5d43532412"},{"name":"write-routes-manifest","duration":356,"timestamp":104861100191,"id":111,"parentId":1,"tags":{},"startTime":1778912833346,"traceId":"06458f5d43532412"},{"name":"print-tree-view","duration":5018,"timestamp":104861116666,"id":112,"parentId":1,"tags":{},"startTime":1778912833363,"traceId":"06458f5d43532412"},{"name":"write-route-bundle-stats","duration":12390,"timestamp":104861121722,"id":113,"parentId":1,"tags":{},"startTime":1778912833368,"traceId":"06458f5d43532412"},{"name":"telemetry-flush","duration":25004,"timestamp":104861134137,"id":114,"parentId":1,"tags":{},"startTime":1778912833380,"traceId":"06458f5d43532412"},{"name":"next-build","duration":16236105,"timestamp":104844923062,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778912817169,"traceId":"06458f5d43532412"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":5589670,"timestamp":104549006275,"id":14,"parentId":1,"tags":{},"startTime":1778912521253,"traceId":"86b2f089bf940363"},{"name":"turbopack-build-events","duration":90,"timestamp":104549305862,"id":15,"parentId":1,"tags":{},"startTime":1778912521552,"traceId":"86b2f089bf940363"},{"name":"run-typescript","duration":8896030,"timestamp":104554604879,"id":16,"parentId":1,"tags":{},"startTime":1778912526851,"traceId":"86b2f089bf940363"},{"name":"static-check","duration":731275,"timestamp":104563672941,"id":19,"parentId":1,"tags":{},"startTime":1778912535919,"traceId":"86b2f089bf940363"},{"name":"static-generation","duration":635437,"timestamp":104564415300,"id":105,"parentId":1,"tags":{},"startTime":1778912536662,"traceId":"86b2f089bf940363"},{"name":"telemetry-flush","duration":23201,"timestamp":104565084774,"id":114,"parentId":1,"tags":{},"startTime":1778912537331,"traceId":"86b2f089bf940363"},{"name":"next-build","duration":16352274,"timestamp":104548755725,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778912521002,"traceId":"86b2f089bf940363"}]
1
+ [{"name":"run-turbopack","duration":5523176,"timestamp":104845149507,"id":14,"parentId":1,"tags":{},"startTime":1778912817396,"traceId":"06458f5d43532412"},{"name":"turbopack-build-events","duration":71,"timestamp":104845438655,"id":15,"parentId":1,"tags":{},"startTime":1778912817685,"traceId":"06458f5d43532412"},{"name":"run-typescript","duration":8919611,"timestamp":104850681435,"id":16,"parentId":1,"tags":{},"startTime":1778912822928,"traceId":"06458f5d43532412"},{"name":"static-check","duration":719817,"timestamp":104859770295,"id":19,"parentId":1,"tags":{},"startTime":1778912832017,"traceId":"06458f5d43532412"},{"name":"static-generation","duration":599404,"timestamp":104860500623,"id":105,"parentId":1,"tags":{},"startTime":1778912832747,"traceId":"06458f5d43532412"},{"name":"telemetry-flush","duration":25004,"timestamp":104861134137,"id":114,"parentId":1,"tags":{},"startTime":1778912833380,"traceId":"06458f5d43532412"},{"name":"next-build","duration":16236105,"timestamp":104844923062,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778912817169,"traceId":"06458f5d43532412"}]
@@ -3038,7 +3038,20 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
3038
3038
  || pinnedVendor). Same legendAccent tint colour. Same
3039
3039
  200ms ease-out transition timing — pin a status, both
3040
3040
  tier-rings AND spokes ease to cyan together. */}
3041
- {(() => {
3041
+ {/* Round 280 / Loop: backdrop spokes RETIRED (R93 family with
3042
+ R240 tinting) per 减法 cut #6. The 6 radial lines at
3043
+ every 30° formed 12 rays from canvas center — even at
3044
+ opacity 0.18 (cyber) / 0.35 (light) they added explicit
3045
+ radial-line clutter behind the hub-and-spoke topology.
3046
+ The radial-gradient backdrop (topo-radar) ALREADY
3047
+ provides soft hub-centered glow; explicit lines on top
3048
+ were decorative density without structural signal that
3049
+ the topology itself doesn't already convey (hub at
3050
+ center + nodes on rings = radial structure inherent).
3051
+ `false &&` gates the render; code preserved for
3052
+ rollback. Same idiom as R276 orbit / R278 working halo
3053
+ / R279 ping+pulse retirements. */}
3054
+ {false && (() => {
3042
3055
  const anyPin = !!(pinnedStatus || pinnedGroup || pinnedVendor);
3043
3056
  const spokeStroke = anyPin ? pal.legendAccent : pal.ringStroke;
3044
3057
  return [0, 30, 60, 90, 120, 150].map(angle => (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network-dashboard",
3
- "version": "0.4.6-preview.286",
3
+ "version": "0.4.6-preview.287",
4
4
  "description": "Agent Network Dashboard — Web UI for managing AI Agent networks",
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -0,0 +1,93 @@
1
+ /* Round 280 verification: backdrop spokes retired (R93 + R240 family)
2
+ * — 减法 cut #6.
3
+ *
4
+ * Pre-R280 the canvas rendered 6 <line> elements at angles 0, 30, 60,
5
+ * 90, 120, 150° through hub center — 12 rays of a "radar" star
6
+ * pattern, stroke opacity 0.18 (cyber) / 0.35 (light), tint shift to
7
+ * pal.legendAccent when any pin is active (R240).
8
+ *
9
+ * The radial-gradient backdrop (`topo-radar`) already provides soft
10
+ * hub-centered glow; the explicit line spokes were decorative density
11
+ * without structural signal — the topology IS hub-and-spoke, the
12
+ * actual hub-to-node connecting strokes already render the structure.
13
+ *
14
+ * Post-R280: spokes block gated with `false &&`. The 6 lines no
15
+ * longer render; radial-gradient backdrop remains.
16
+ *
17
+ * Test scope:
18
+ * 1. No element matches `[data-topo-spoke-angle]`.
19
+ * 2. R278 working halo <animate> count still 0 (regression).
20
+ * 3. R279 ping/pulse still absent (regression).
21
+ * 4. R277 legend height 88 (regression).
22
+ * 5. R275 freshness chip absent (regression).
23
+ */
24
+ import { chromium } from 'playwright';
25
+ import { readFileSync } from 'node:fs';
26
+
27
+ const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
28
+ const browser = await chromium.launch({ headless: true });
29
+ const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
30
+ await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
31
+ await ctx.addInitScript(() => {
32
+ try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
33
+ });
34
+ const fresh = new Date(Date.now() - 60 * 1000).toISOString();
35
+ await ctx.route('**/api/hub/status*', async (route) => {
36
+ const r = await route.fetch();
37
+ const b = await r.json();
38
+ const nid = (b.sessions || [])[0]?.network_id || 'default';
39
+ const mk = (alias) => ({
40
+ alias, status: 'working', model: 'claude-opus-4', runtime: 'claude-code-cli',
41
+ network_id: nid, project_dir: null,
42
+ created_at: fresh, updated_at: fresh, last_seen_at: fresh,
43
+ });
44
+ await route.fulfill({ response: r, json: { ...b, sessions: [
45
+ mk('alpha'), mk('beta'), mk('gamma'), mk('delta'),
46
+ ] } });
47
+ });
48
+ await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
49
+ await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
50
+
51
+ const page = await ctx.newPage();
52
+ await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
53
+ await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 4, { timeout: 30000 });
54
+ await page.waitForSelector('[data-topo-panel="legend"]', { timeout: 10000 });
55
+ await page.waitForTimeout(300);
56
+
57
+ const probe = await page.evaluate(() => {
58
+ const spokes = document.querySelectorAll('[data-topo-spoke-angle]');
59
+ const ping = document.querySelectorAll('[data-arrival-ping]');
60
+ const pulse = document.querySelectorAll('[data-dispatch-pulse]');
61
+ const freshnessChip = document.querySelector('[data-freshness-chip]');
62
+ const legendG = document.querySelector('[data-topo-panel="legend"]');
63
+ const legendH = legendG?.querySelector('rect')?.getAttribute('height') ?? null;
64
+ const halos = document.querySelectorAll('[data-node-halo-breath="on"]');
65
+ let haloAnimateCount = 0;
66
+ halos.forEach((h) => { haloAnimateCount += h.querySelectorAll('animate').length; });
67
+ return {
68
+ spokeCount: spokes.length,
69
+ pingCount: ping.length,
70
+ pulseCount: pulse.length,
71
+ freshnessPresent: freshnessChip !== null,
72
+ legendHeight: legendH,
73
+ haloAnimateCount,
74
+ };
75
+ });
76
+ await browser.close();
77
+
78
+ const results = {
79
+ spokes_absent: probe.spokeCount === 0,
80
+ r279_ping_absent: probe.pingCount === 0,
81
+ r279_pulse_absent: probe.pulseCount === 0,
82
+ r275_freshness_absent: probe.freshnessPresent === false,
83
+ r277_legend_height_88: probe.legendHeight === '88',
84
+ r278_halo_animate_count_zero: probe.haloAnimateCount === 0,
85
+ };
86
+ const ok = Object.values(results).every(Boolean);
87
+ console.log(`${ok ? '✅' : '❌'} backdrop spokes retired:`, JSON.stringify(results),
88
+ '\n spoke count (expect 0):', probe.spokeCount,
89
+ '\n ping/pulse:', probe.pingCount, probe.pulseCount,
90
+ '\n freshness absent:', !probe.freshnessPresent,
91
+ '\n legend height:', probe.legendHeight,
92
+ '\n halo animate count (expect 0):', probe.haloAnimateCount);
93
+ process.exit(ok ? 0 : 1);
@@ -1,110 +0,0 @@
1
- /* Round 145 verification: R46 idle-spoke flow rate buckets on
2
- * workingCount, completing the 4-layer busyness-driven motion
3
- * family:
4
- * R84 hub breath (centre)
5
- * R131 outer-ring orbit (periphery)
6
- * R132 groupbox march (per-team, grid layout)
7
- * R145 idle-spoke flow (ring layout, hub→nodes) — new
8
- *
9
- * Bucket ladder shared across the four layers (same R84
10
- * thresholds):
11
- * workingCount === 0 → bucket 0
12
- * workingCount in [1, 2] → bucket 1
13
- * workingCount in [3, 5] → bucket 2
14
- * workingCount >= 6 → bucket 3
15
- *
16
- * Idle-spoke durations per bucket: 2.8 / 2.4 / 2.0 / 1.6 seconds
17
- * (R46 baseline 2.4s is bucket 1).
18
- *
19
- * Spokes only render in ring layout. Active spokes (carrying flow
20
- * traffic) don't get the animation — they're solid bright strokes.
21
- * Only idle spokes carry the .anet-topo-spoke-flow class and the
22
- * --spoke-dur var. The test seeds 0 messages so all spokes are idle.
23
- */
24
- import { chromium } from 'playwright';
25
- import { readFileSync } from 'node:fs';
26
-
27
- const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
28
-
29
- async function probe(workingCount, totalCount) {
30
- const browser = await chromium.launch({ headless: true });
31
- const ctx = await browser.newContext({ viewport: { width: 1400, height: 1500 } });
32
- await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
33
- await ctx.addInitScript(() => {
34
- try {
35
- localStorage.setItem('anet-theme', 'cyber');
36
- sessionStorage.setItem('anet_v3_auth', '1');
37
- // ring layout is R145's target — it's also the default, but
38
- // pinning explicitly defends against future default flips.
39
- localStorage.setItem('anet-topo-layout', 'ring');
40
- } catch {}
41
- });
42
- const fresh = new Date(Date.now() - 60 * 1000).toISOString();
43
- await ctx.route('**/api/hub/status*', async (route) => {
44
- const r = await route.fetch();
45
- const b = await r.json();
46
- const nid = (b.sessions || [])[0]?.network_id || 'default';
47
- const sessions = [];
48
- for (let i = 0; i < totalCount; i++) {
49
- sessions.push({
50
- alias: `node${i}`,
51
- status: i < workingCount ? 'working' : 'idle',
52
- model: 'claude-opus-4', runtime: 'cli-claude-code',
53
- network_id: nid, project_dir: null,
54
- created_at: fresh, updated_at: fresh, last_seen_at: fresh,
55
- });
56
- }
57
- await route.fulfill({ response: r, json: { ...b, sessions } });
58
- });
59
- // 0 messages → no active spokes → every spoke is idle (.anet-topo-spoke-flow)
60
- await ctx.route('**/api/hub/messages*', (route) => route.fulfill({ json: { messages: [] } }));
61
- await ctx.route('**/api/hub/tasks*', (route) => route.fulfill({ json: { tasks: [] } }));
62
-
63
- const page = await ctx.newPage();
64
- await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
65
- await page.waitForFunction((n) => document.querySelectorAll('g[data-node]').length === n, totalCount, { timeout: 30000 });
66
- await page.waitForTimeout(400);
67
-
68
- const out = await page.evaluate(() => {
69
- const spokes = [...document.querySelectorAll('path.anet-topo-spoke-flow')];
70
- return spokes.map(p => ({
71
- bucket: p.getAttribute('data-topo-spoke-bucket'),
72
- dur: p.getAttribute('data-topo-spoke-dur'),
73
- // Resolved animation-duration from computed style — confirms
74
- // the CSS var bridge through to the cascade.
75
- cssDur: getComputedStyle(p).getPropertyValue('animation-duration').trim(),
76
- }));
77
- });
78
- await browser.close();
79
- return out;
80
- }
81
-
82
- // One probe per bucket
83
- const b0 = await probe(0, 4); // 0 working / 4 idle → bucket 0 (2.8s)
84
- const b1 = await probe(2, 4); // 2 working / 2 idle → bucket 1 (2.4s)
85
- const b2 = await probe(4, 5); // 4 working / 1 idle → bucket 2 (2.0s)
86
- const b3 = await probe(7, 8); // 7 working / 1 idle → bucket 3 (1.6s)
87
-
88
- const consistent = (spokes, bucket, dur) =>
89
- spokes.length > 0 &&
90
- spokes.every(s => s.bucket === String(bucket) && s.dur === String(dur) && s.cssDur === `${dur}s`);
91
-
92
- const results = {
93
- b0_someSpokes: b0.length > 0,
94
- b0_bucket0_2_8s: consistent(b0, 0, 2.8),
95
- b1_bucket1_2_4s: consistent(b1, 1, 2.4),
96
- b2_bucket2_2_0s: consistent(b2, 2, 2.0),
97
- b3_bucket3_1_6s: consistent(b3, 3, 1.6),
98
- // dur strictly decreases as busy climbs
99
- dur_monotonic:
100
- Number(b0[0]?.dur) > Number(b1[0]?.dur) &&
101
- Number(b1[0]?.dur) > Number(b2[0]?.dur) &&
102
- Number(b2[0]?.dur) > Number(b3[0]?.dur),
103
- };
104
- const ok = Object.values(results).every(Boolean);
105
- console.log(`${ok ? '✅' : '❌'} spoke busyness:`, JSON.stringify(results),
106
- `\n b0(0w/4)=`, b0.slice(0,1),
107
- `\n b1(2w/4)=`, b1.slice(0,1),
108
- `\n b2(4w/5)=`, b2.slice(0,1),
109
- `\n b3(7w/8)=`, b3.slice(0,1));
110
- process.exit(ok ? 0 : 1);
@@ -1,96 +0,0 @@
1
- /* Round 240 verification: backdrop spokes (6 radar-style lines)
2
- * tint to pal.legendAccent on any pinned filter, mirroring R93's
3
- * tier-ring treatment. Background scaffolding now signals
4
- * 'filtered mode' as a unified set instead of half-and-half.
5
- *
6
- * Cyber theme palette:
7
- * pal.ringStroke = #164e63 = rgb(22, 78, 99)
8
- * pal.legendAccent = #67e8f9 = rgb(103, 232, 249)
9
- *
10
- * Test scope:
11
- * - rest state (no pin): all 6 spokes stroke = ringStroke
12
- * - pinned state: all 6 spokes stroke = legendAccent
13
- * - transition wiring: style.transition contains 'stroke 200ms'
14
- * (browser may normalise to '0.2s' — accept either)
15
- * - data-topo-spoke-tinted attr flips false ↔ true
16
- *
17
- * Scenario: 4 working agents (single tier, simple geometry).
18
- * Click the working pressure-bar segment to pin status=working.
19
- */
20
- import { chromium } from 'playwright';
21
- import { readFileSync } from 'node:fs';
22
-
23
- const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
24
- const browser = await chromium.launch({ headless: true });
25
- const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
26
- await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
27
- await ctx.addInitScript(() => {
28
- try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
29
- });
30
- const fresh = new Date(Date.now() - 60 * 1000).toISOString();
31
- await ctx.route('**/api/hub/status*', async (route) => {
32
- const r = await route.fetch();
33
- const b = await r.json();
34
- const nid = (b.sessions || [])[0]?.network_id || 'default';
35
- const mk = (alias) => ({
36
- alias, status: 'working', model: 'claude-opus-4', runtime: 'claude-code-cli',
37
- network_id: nid, project_dir: null,
38
- created_at: fresh, updated_at: fresh, last_seen_at: fresh,
39
- });
40
- await route.fulfill({ response: r, json: { ...b, sessions: [
41
- mk('alpha'), mk('beta'), mk('gamma'), mk('delta'),
42
- ] } });
43
- });
44
- await ctx.route('**/api/hub/messages*', (r2) => r2.fulfill({ json: { messages: [] } }));
45
- await ctx.route('**/api/hub/tasks*', (r2) => r2.fulfill({ json: { tasks: [] } }));
46
-
47
- const page = await ctx.newPage();
48
- await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
49
- await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 4, { timeout: 30000 });
50
- await page.waitForSelector('[data-topo-spoke-angle]', { timeout: 10000, state: 'attached' });
51
- await page.waitForTimeout(400);
52
-
53
- const probeSpokes = (page) => page.evaluate(() => {
54
- const spokes = Array.from(document.querySelectorAll('[data-topo-spoke-angle]'));
55
- return spokes.map((s) => ({
56
- angle: s.getAttribute('data-topo-spoke-angle'),
57
- tinted: s.getAttribute('data-topo-spoke-tinted'),
58
- fill: getComputedStyle(s).stroke,
59
- transition: getComputedStyle(s).transition,
60
- }));
61
- });
62
-
63
- const rest = await probeSpokes(page);
64
-
65
- // Pin working status via pressure-bar segment click
66
- await page.locator('[data-pressure-seg="working"]').first().click();
67
- await page.waitForTimeout(400);
68
- const pinned = await probeSpokes(page);
69
-
70
- await browser.close();
71
-
72
- const RING_RGB = 'rgb(22, 78, 99)';
73
- const ACCENT_RGB = 'rgb(103, 232, 249)';
74
- // Browser normalises 200ms → 0.2s
75
- const hasTransition = (s) => /stroke\s+(?:200ms|0\.2s)/.test(s || '');
76
-
77
- const results = {
78
- six_spokes: rest.length === 6,
79
- rest_all_untinted: rest.every(s => s.tinted === 'false'),
80
- rest_all_ring_stroke: rest.every(s => s.fill === RING_RGB),
81
- rest_all_has_transition: rest.every(s => hasTransition(s.transition)),
82
-
83
- pinned_six_spokes: pinned.length === 6,
84
- pinned_all_tinted: pinned.every(s => s.tinted === 'true'),
85
- pinned_all_accent: pinned.every(s => s.fill === ACCENT_RGB),
86
- pinned_all_has_transition: pinned.every(s => hasTransition(s.transition)),
87
-
88
- // Angles match the original 0/30/60/90/120/150 pattern (sanity)
89
- angles_correct: JSON.stringify(rest.map(s => s.angle).sort())
90
- === JSON.stringify(['0','120','150','30','60','90']),
91
- };
92
- const ok = Object.values(results).every(Boolean);
93
- console.log(`${ok ? '✅' : '❌'} spoke tint:`, JSON.stringify(results),
94
- '\n rest: ', rest.map(s => ({ a: s.angle, t: s.tinted, fill: s.fill })),
95
- '\n pinned:', pinned.map(s => ({ a: s.angle, t: s.tinted, fill: s.fill })));
96
- process.exit(ok ? 0 : 1);