@sleep2agi/agent-network-dashboard 0.4.6-preview.235 → 0.4.6-preview.237

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 (143) 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/prerender-manifest.json +3 -3
  6. package/.next/server/app/_global-error.html +1 -1
  7. package/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/.next/server/app/_not-found.html +1 -1
  14. package/.next/server/app/_not-found.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  20. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  21. package/.next/server/app/admin.html +1 -1
  22. package/.next/server/app/admin.rsc +1 -1
  23. package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
  24. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  25. package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
  26. package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
  27. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
  28. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  29. package/.next/server/app/index.html +2 -2
  30. package/.next/server/app/index.rsc +2 -2
  31. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  32. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  33. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  34. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  35. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  36. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  37. package/.next/server/app/login.html +2 -2
  38. package/.next/server/app/login.rsc +2 -2
  39. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  40. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  41. package/.next/server/app/login.segments/_index.segment.rsc +1 -1
  42. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  43. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  44. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  45. package/.next/server/app/logs.html +1 -1
  46. package/.next/server/app/logs.rsc +1 -1
  47. package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
  48. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  49. package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
  50. package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
  51. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  52. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  53. package/.next/server/app/messages.html +1 -1
  54. package/.next/server/app/messages.rsc +1 -1
  55. package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
  56. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  57. package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
  58. package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
  59. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
  60. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  61. package/.next/server/app/node.html +1 -1
  62. package/.next/server/app/node.rsc +1 -1
  63. package/.next/server/app/node.segments/_full.segment.rsc +1 -1
  64. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  65. package/.next/server/app/node.segments/_index.segment.rsc +1 -1
  66. package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
  67. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
  68. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  69. package/.next/server/app/nodes.html +1 -1
  70. package/.next/server/app/nodes.rsc +1 -1
  71. package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
  72. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  73. package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
  74. package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
  75. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
  76. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  77. package/.next/server/app/page_client-reference-manifest.js +1 -1
  78. package/.next/server/app/server-logs.html +1 -1
  79. package/.next/server/app/server-logs.rsc +1 -1
  80. package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
  81. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  82. package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
  83. package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
  84. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  85. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  86. package/.next/server/app/settings/networks.html +1 -1
  87. package/.next/server/app/settings/networks.rsc +1 -1
  88. package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
  89. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  90. package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
  91. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
  92. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  93. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  94. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  95. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  96. package/.next/server/app/settings/tokens.html +1 -1
  97. package/.next/server/app/settings/tokens.rsc +1 -1
  98. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
  99. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  100. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
  101. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
  102. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  103. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  104. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  105. package/.next/server/app/settings.html +2 -2
  106. package/.next/server/app/settings.rsc +2 -2
  107. package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  108. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  109. package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  110. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  111. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  112. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  113. package/.next/server/app/tasks.html +1 -1
  114. package/.next/server/app/tasks.rsc +1 -1
  115. package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
  116. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  117. package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
  118. package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
  119. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  120. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  121. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +1 -1
  122. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  123. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  124. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  125. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  126. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  127. package/.next/server/middleware-build-manifest.js +3 -3
  128. package/.next/server/pages/404.html +1 -1
  129. package/.next/server/pages/500.html +1 -1
  130. package/.next/server/server-reference-manifest.js +1 -1
  131. package/.next/server/server-reference-manifest.json +1 -1
  132. package/.next/static/chunks/{17n.nh8o-el5i.js → 0e4mkpy3dl~zm.js} +3 -3
  133. package/.next/static/chunks/{0nrd1v3u~gp37.js → 0id2xbrhif.kv.js} +1 -1
  134. package/.next/static/chunks/{00c54imq11d5q.js → 0n42f9nmie57y.js} +1 -1
  135. package/.next/trace +2 -2
  136. package/.next/trace-build +1 -1
  137. package/app/components/TopoGraph.tsx +72 -4
  138. package/package.json +1 -1
  139. package/scripts/topo-group-label-count-inherit-test.mjs +99 -0
  140. package/scripts/topo-group-pip-tabular-test.mjs +95 -0
  141. /package/.next/static/{tC700Ol17OqAhkfDq-Fdf → 5Hm18afbTSHGNYCF5p0Bc}/_buildManifest.js +0 -0
  142. /package/.next/static/{tC700Ol17OqAhkfDq-Fdf → 5Hm18afbTSHGNYCF5p0Bc}/_clientMiddlewareManifest.js +0 -0
  143. /package/.next/static/{tC700Ol17OqAhkfDq-Fdf → 5Hm18afbTSHGNYCF5p0Bc}/_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.235"],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.237"],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.235"],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.237"],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":444,"timestamp":85044333467,"id":4,"parentId":1,"tags":{},"startTime":1778893016580,"traceId":"e4eeeff7152a84e0"},{"name":"load-custom-routes","duration":508,"timestamp":85044334138,"id":5,"parentId":1,"tags":{},"startTime":1778893016580,"traceId":"e4eeeff7152a84e0"},{"name":"create-dist-dir","duration":638,"timestamp":85044334691,"id":6,"parentId":1,"tags":{},"startTime":1778893016581,"traceId":"e4eeeff7152a84e0"},{"name":"clean","duration":484,"timestamp":85044335934,"id":7,"parentId":1,"tags":{},"startTime":1778893016582,"traceId":"e4eeeff7152a84e0"},{"name":"discover-routes","duration":9655,"timestamp":85044419979,"id":8,"parentId":1,"tags":{},"startTime":1778893016666,"traceId":"e4eeeff7152a84e0"},{"name":"create-root-mapping","duration":165,"timestamp":85044429721,"id":9,"parentId":1,"tags":{},"startTime":1778893016676,"traceId":"e4eeeff7152a84e0"},{"name":"generate-route-types","duration":35004,"timestamp":85044433056,"id":10,"parentId":1,"tags":{},"startTime":1778893016679,"traceId":"e4eeeff7152a84e0"},{"name":"public-dir-conflict-check","duration":143,"timestamp":85044468283,"id":11,"parentId":1,"tags":{},"startTime":1778893016715,"traceId":"e4eeeff7152a84e0"},{"name":"generate-routes-manifest","duration":4711,"timestamp":85044468592,"id":12,"parentId":1,"tags":{},"startTime":1778893016715,"traceId":"e4eeeff7152a84e0"},{"name":"run-turbopack","duration":5955103,"timestamp":85044479615,"id":14,"parentId":1,"tags":{},"startTime":1778893016726,"traceId":"e4eeeff7152a84e0"},{"name":"turbopack-build-events","duration":84,"timestamp":85044786389,"id":15,"parentId":1,"tags":{},"startTime":1778893017033,"traceId":"e4eeeff7152a84e0"},{"name":"run-typescript","duration":9210179,"timestamp":85050447791,"id":16,"parentId":1,"tags":{},"startTime":1778893022694,"traceId":"e4eeeff7152a84e0"},{"name":"generate-required-server-files","duration":2190,"timestamp":85059659062,"id":18,"parentId":1,"tags":{},"startTime":1778893031905,"traceId":"e4eeeff7152a84e0"},{"name":"check-static-error-page","duration":17726,"timestamp":85059833245,"id":20,"parentId":19,"tags":{},"startTime":1778893032080,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":465966,"timestamp":85059854026,"id":63,"parentId":22,"tags":{},"startTime":1778893032100,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":482502,"timestamp":85059837693,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778893032084,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":558987,"timestamp":85059854612,"id":67,"parentId":28,"tags":{},"startTime":1778893032101,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":571802,"timestamp":85059841897,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778893032088,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":575503,"timestamp":85059855063,"id":70,"parentId":32,"tags":{},"startTime":1778893032101,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":596951,"timestamp":85059842598,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778893032089,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":586678,"timestamp":85059854375,"id":66,"parentId":27,"tags":{},"startTime":1778893032101,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":599349,"timestamp":85059841767,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778893032088,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":586514,"timestamp":85059854752,"id":68,"parentId":29,"tags":{},"startTime":1778893032101,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":599244,"timestamp":85059842052,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778893032088,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":596155,"timestamp":85059855128,"id":71,"parentId":33,"tags":{},"startTime":1778893032101,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":609184,"timestamp":85059842737,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778893032089,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":608954,"timestamp":85059855222,"id":73,"parentId":35,"tags":{},"startTime":1778893032101,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":621110,"timestamp":85059843130,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778893032089,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":609203,"timestamp":85059855195,"id":72,"parentId":34,"tags":{},"startTime":1778893032101,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":621472,"timestamp":85059842960,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778893032089,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":609277,"timestamp":85059855329,"id":74,"parentId":36,"tags":{},"startTime":1778893032102,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":621025,"timestamp":85059843626,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778893032090,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":613133,"timestamp":85059854156,"id":64,"parentId":25,"tags":{},"startTime":1778893032100,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":625843,"timestamp":85059841488,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778893032088,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":613724,"timestamp":85059855387,"id":77,"parentId":39,"tags":{},"startTime":1778893032102,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":625068,"timestamp":85059844092,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778893032090,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":616210,"timestamp":85059854272,"id":65,"parentId":26,"tags":{},"startTime":1778893032101,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":628878,"timestamp":85059841646,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778893032088,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":615825,"timestamp":85059854867,"id":69,"parentId":30,"tags":{},"startTime":1778893032101,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":628527,"timestamp":85059842200,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778893032088,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":618946,"timestamp":85059857017,"id":79,"parentId":41,"tags":{},"startTime":1778893032103,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":631752,"timestamp":85059844283,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778893032091,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":619170,"timestamp":85059857055,"id":81,"parentId":43,"tags":{},"startTime":1778893032103,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":631794,"timestamp":85059844468,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778893032091,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":622108,"timestamp":85059857039,"id":80,"parentId":42,"tags":{},"startTime":1778893032103,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":634809,"timestamp":85059844377,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778893032091,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":624046,"timestamp":85059855376,"id":76,"parentId":38,"tags":{},"startTime":1778893032102,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":635497,"timestamp":85059843982,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778893032090,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":622562,"timestamp":85059857066,"id":82,"parentId":44,"tags":{},"startTime":1778893032103,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":635115,"timestamp":85059844548,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778893032091,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":624419,"timestamp":85059855360,"id":75,"parentId":37,"tags":{},"startTime":1778893032102,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":635993,"timestamp":85059843820,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778893032090,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":626010,"timestamp":85059857081,"id":83,"parentId":45,"tags":{},"startTime":1778893032103,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":638454,"timestamp":85059844690,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778893032091,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":626697,"timestamp":85059857107,"id":85,"parentId":47,"tags":{},"startTime":1778893032103,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":638919,"timestamp":85059844928,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778893032091,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":627598,"timestamp":85059860568,"id":88,"parentId":24,"tags":{},"startTime":1778893032107,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":649166,"timestamp":85059839047,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778893032085,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":626800,"timestamp":85059861716,"id":89,"parentId":31,"tags":{},"startTime":1778893032108,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":646237,"timestamp":85059842322,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778893032089,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":634527,"timestamp":85059857122,"id":86,"parentId":48,"tags":{},"startTime":1778893032103,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":646654,"timestamp":85059845041,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778893032091,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":641807,"timestamp":85059855396,"id":78,"parentId":40,"tags":{},"startTime":1778893032102,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":653050,"timestamp":85059844196,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778893032090,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":651555,"timestamp":85059857136,"id":87,"parentId":49,"tags":{},"startTime":1778893032103,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":663627,"timestamp":85059845135,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778893032091,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":658378,"timestamp":85059857096,"id":84,"parentId":46,"tags":{},"startTime":1778893032103,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":670750,"timestamp":85059844784,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778893032091,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":672588,"timestamp":85059853598,"id":62,"parentId":21,"tags":{},"startTime":1778893032100,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":690752,"timestamp":85059835487,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778893032082,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":667561,"timestamp":85059868177,"id":96,"parentId":56,"tags":{},"startTime":1778893032114,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":687469,"timestamp":85059848316,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778893032095,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":678344,"timestamp":85059868085,"id":90,"parentId":23,"tags":{},"startTime":1778893032114,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":707725,"timestamp":85059838759,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778893032085,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":685004,"timestamp":85059868111,"id":91,"parentId":50,"tags":{},"startTime":1778893032114,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":706331,"timestamp":85059846834,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778893032093,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":686071,"timestamp":85059868198,"id":98,"parentId":59,"tags":{},"startTime":1778893032114,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":703916,"timestamp":85059850405,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778893032097,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":694936,"timestamp":85059868237,"id":100,"parentId":61,"tags":{},"startTime":1778893032115,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":712543,"timestamp":85059850706,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778893032097,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":699374,"timestamp":85059868127,"id":92,"parentId":51,"tags":{},"startTime":1778893032114,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":720459,"timestamp":85059847088,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778893032093,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":700045,"timestamp":85059868140,"id":93,"parentId":52,"tags":{},"startTime":1778893032114,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":720978,"timestamp":85059847246,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778893032094,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":700558,"timestamp":85059868215,"id":99,"parentId":60,"tags":{},"startTime":1778893032114,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":718277,"timestamp":85059850559,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778893032097,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":691407,"timestamp":85059877744,"id":101,"parentId":58,"tags":{},"startTime":1778893032124,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":719719,"timestamp":85059849458,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778893032096,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":677516,"timestamp":85059897751,"id":102,"parentId":55,"tags":{},"startTime":1778893032144,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":727500,"timestamp":85059847799,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778893032094,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":709298,"timestamp":85059868189,"id":97,"parentId":57,"tags":{},"startTime":1778893032114,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":728270,"timestamp":85059849261,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778893032096,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":709443,"timestamp":85059868153,"id":94,"parentId":53,"tags":{},"startTime":1778893032114,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":730203,"timestamp":85059847422,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778893032094,"traceId":"e4eeeff7152a84e0"},{"name":"is-page-static","duration":721206,"timestamp":85059868162,"id":95,"parentId":54,"tags":{},"startTime":1778893032114,"traceId":"e4eeeff7152a84e0"},{"name":"check-page","duration":741804,"timestamp":85059847597,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778893032094,"traceId":"e4eeeff7152a84e0"},{"name":"static-check","duration":757385,"timestamp":85059832056,"id":19,"parentId":1,"tags":{},"startTime":1778893032078,"traceId":"e4eeeff7152a84e0"},{"name":"write-routes-manifest","duration":413,"timestamp":85060597370,"id":104,"parentId":1,"tags":{},"startTime":1778893032844,"traceId":"e4eeeff7152a84e0"},{"name":"load-dotenv","duration":69,"timestamp":85060608740,"id":107,"parentId":106,"tags":{},"startTime":1778893032855,"traceId":"e4eeeff7152a84e0"},{"name":"run-export-path-map","duration":942,"timestamp":85060611600,"id":108,"parentId":106,"tags":{},"startTime":1778893032858,"traceId":"e4eeeff7152a84e0"},{"name":"next-export","duration":706526,"timestamp":85060607261,"id":106,"parentId":1,"tags":{},"startTime":1778893032854,"traceId":"e4eeeff7152a84e0"}]
2
- [{"name":"move-exported-app-not-found-","duration":2470,"timestamp":85061317068,"id":109,"parentId":105,"tags":{},"startTime":1778893033563,"traceId":"e4eeeff7152a84e0"},{"name":"move-exported-app-global-error-","duration":588,"timestamp":85061319621,"id":110,"parentId":105,"tags":{},"startTime":1778893033566,"traceId":"e4eeeff7152a84e0"},{"name":"static-generation","duration":720376,"timestamp":85060601603,"id":105,"parentId":1,"tags":{},"startTime":1778893032848,"traceId":"e4eeeff7152a84e0"},{"name":"write-routes-manifest","duration":371,"timestamp":85061322149,"id":111,"parentId":1,"tags":{},"startTime":1778893033568,"traceId":"e4eeeff7152a84e0"},{"name":"print-tree-view","duration":4300,"timestamp":85061333418,"id":112,"parentId":1,"tags":{},"startTime":1778893033580,"traceId":"e4eeeff7152a84e0"},{"name":"write-route-bundle-stats","duration":17746,"timestamp":85061337744,"id":113,"parentId":1,"tags":{},"startTime":1778893033584,"traceId":"e4eeeff7152a84e0"},{"name":"telemetry-flush","duration":21810,"timestamp":85061355513,"id":114,"parentId":1,"tags":{},"startTime":1778893033602,"traceId":"e4eeeff7152a84e0"},{"name":"next-build","duration":17094387,"timestamp":85044282967,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778893016529,"traceId":"e4eeeff7152a84e0"}]
1
+ [{"name":"generate-buildid","duration":252,"timestamp":85630754193,"id":4,"parentId":1,"tags":{},"startTime":1778893603000,"traceId":"8dc731dd57e9bff1"},{"name":"load-custom-routes","duration":488,"timestamp":85630754597,"id":5,"parentId":1,"tags":{},"startTime":1778893603001,"traceId":"8dc731dd57e9bff1"},{"name":"create-dist-dir","duration":676,"timestamp":85630755141,"id":6,"parentId":1,"tags":{},"startTime":1778893603001,"traceId":"8dc731dd57e9bff1"},{"name":"clean","duration":808,"timestamp":85630756671,"id":7,"parentId":1,"tags":{},"startTime":1778893603003,"traceId":"8dc731dd57e9bff1"},{"name":"discover-routes","duration":9742,"timestamp":85630843753,"id":8,"parentId":1,"tags":{},"startTime":1778893603090,"traceId":"8dc731dd57e9bff1"},{"name":"create-root-mapping","duration":108,"timestamp":85630853552,"id":9,"parentId":1,"tags":{},"startTime":1778893603100,"traceId":"8dc731dd57e9bff1"},{"name":"generate-route-types","duration":31836,"timestamp":85630855882,"id":10,"parentId":1,"tags":{},"startTime":1778893603102,"traceId":"8dc731dd57e9bff1"},{"name":"public-dir-conflict-check","duration":112,"timestamp":85630887873,"id":11,"parentId":1,"tags":{},"startTime":1778893603134,"traceId":"8dc731dd57e9bff1"},{"name":"generate-routes-manifest","duration":4413,"timestamp":85630888137,"id":12,"parentId":1,"tags":{},"startTime":1778893603134,"traceId":"8dc731dd57e9bff1"},{"name":"run-turbopack","duration":5640042,"timestamp":85630897949,"id":14,"parentId":1,"tags":{},"startTime":1778893603144,"traceId":"8dc731dd57e9bff1"},{"name":"turbopack-build-events","duration":72,"timestamp":85631177481,"id":15,"parentId":1,"tags":{},"startTime":1778893603424,"traceId":"8dc731dd57e9bff1"},{"name":"run-typescript","duration":9016647,"timestamp":85636547350,"id":16,"parentId":1,"tags":{},"startTime":1778893608794,"traceId":"8dc731dd57e9bff1"},{"name":"generate-required-server-files","duration":2243,"timestamp":85645565080,"id":18,"parentId":1,"tags":{},"startTime":1778893617811,"traceId":"8dc731dd57e9bff1"},{"name":"check-static-error-page","duration":11345,"timestamp":85645742740,"id":20,"parentId":19,"tags":{},"startTime":1778893617989,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":452707,"timestamp":85645757188,"id":63,"parentId":22,"tags":{},"startTime":1778893618003,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":465003,"timestamp":85645745098,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778893617991,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":511754,"timestamp":85645757563,"id":66,"parentId":27,"tags":{},"startTime":1778893618004,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":521737,"timestamp":85645747678,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778893617994,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":515799,"timestamp":85645759932,"id":70,"parentId":32,"tags":{},"startTime":1778893618006,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":527462,"timestamp":85645748340,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778893617995,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":535273,"timestamp":85645760036,"id":71,"parentId":33,"tags":{},"startTime":1778893618006,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":546948,"timestamp":85645748437,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778893617995,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":540726,"timestamp":85645757827,"id":67,"parentId":28,"tags":{},"startTime":1778893618004,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":550859,"timestamp":85645747764,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778893617994,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":544524,"timestamp":85645760143,"id":73,"parentId":35,"tags":{},"startTime":1778893618006,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":556142,"timestamp":85645748604,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778893617995,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":551597,"timestamp":85645757457,"id":65,"parentId":26,"tags":{},"startTime":1778893618004,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":561521,"timestamp":85645747588,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778893617994,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":552023,"timestamp":85645760112,"id":72,"parentId":34,"tags":{},"startTime":1778893618006,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":563663,"timestamp":85645748517,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778893617995,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":557325,"timestamp":85645760297,"id":75,"parentId":37,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":568484,"timestamp":85645749198,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778893617995,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":557574,"timestamp":85645760312,"id":76,"parentId":38,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":568636,"timestamp":85645749300,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778893617996,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":558410,"timestamp":85645759730,"id":69,"parentId":30,"tags":{},"startTime":1778893618006,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":570206,"timestamp":85645747964,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778893617994,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":569342,"timestamp":85645760343,"id":79,"parentId":41,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":580216,"timestamp":85645749514,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778893617996,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":572745,"timestamp":85645760334,"id":78,"parentId":40,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":583673,"timestamp":85645749449,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778893617996,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":576572,"timestamp":85645756766,"id":62,"parentId":21,"tags":{},"startTime":1778893618003,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":589466,"timestamp":85645743906,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778893617990,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":574167,"timestamp":85645760363,"id":81,"parentId":43,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":584943,"timestamp":85645749681,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778893617996,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":579555,"timestamp":85645757337,"id":64,"parentId":25,"tags":{},"startTime":1778893618004,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":589505,"timestamp":85645747454,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778893617994,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":578263,"timestamp":85645760263,"id":74,"parentId":36,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":589560,"timestamp":85645749021,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778893617995,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":578515,"timestamp":85645760382,"id":83,"parentId":45,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":589126,"timestamp":85645749820,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778893617996,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":583031,"timestamp":85645760409,"id":86,"parentId":48,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":593403,"timestamp":85645750076,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778893617996,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":586818,"timestamp":85645759541,"id":68,"parentId":29,"tags":{},"startTime":1778893618006,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":598554,"timestamp":85645747847,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778893617994,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":585705,"timestamp":85645761496,"id":87,"parentId":49,"tags":{},"startTime":1778893618008,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":597095,"timestamp":85645750145,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778893617996,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":588087,"timestamp":85645760391,"id":84,"parentId":46,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":598636,"timestamp":85645749883,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778893617996,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":585964,"timestamp":85645766231,"id":89,"parentId":31,"tags":{},"startTime":1778893618013,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":604124,"timestamp":85645748111,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778893617994,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":587779,"timestamp":85645765074,"id":88,"parentId":24,"tags":{},"startTime":1778893618011,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":607356,"timestamp":85645745532,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778893617992,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":596200,"timestamp":85645760400,"id":85,"parentId":47,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":606654,"timestamp":85645749986,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778893617996,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":598470,"timestamp":85645760323,"id":77,"parentId":39,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":609702,"timestamp":85645749379,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778893617996,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":603506,"timestamp":85645760352,"id":80,"parentId":42,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":614286,"timestamp":85645749611,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778893617996,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":656983,"timestamp":85645760372,"id":82,"parentId":44,"tags":{},"startTime":1778893618007,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":667692,"timestamp":85645749744,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778893617996,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":656695,"timestamp":85645768683,"id":96,"parentId":56,"tags":{},"startTime":1778893618015,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":672791,"timestamp":85645753116,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778893617999,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":666761,"timestamp":85645768645,"id":93,"parentId":52,"tags":{},"startTime":1778893618015,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":683339,"timestamp":85645752133,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778893617998,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":666972,"timestamp":85645768692,"id":97,"parentId":57,"tags":{},"startTime":1778893618015,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":682422,"timestamp":85645753285,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778893618000,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":667231,"timestamp":85645768619,"id":91,"parentId":50,"tags":{},"startTime":1778893618015,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":684078,"timestamp":85645751804,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778893617998,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":672818,"timestamp":85645768591,"id":90,"parentId":23,"tags":{},"startTime":1778893618015,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":696200,"timestamp":85645745337,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778893617992,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":673016,"timestamp":85645768705,"id":98,"parentId":59,"tags":{},"startTime":1778893618015,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":688075,"timestamp":85645753693,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778893618000,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":676834,"timestamp":85645768735,"id":100,"parentId":61,"tags":{},"startTime":1778893618015,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":691742,"timestamp":85645753885,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778893618000,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":662854,"timestamp":85645785801,"id":102,"parentId":55,"tags":{},"startTime":1778893618032,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":696018,"timestamp":85645752678,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778893617999,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":674466,"timestamp":85645774317,"id":101,"parentId":58,"tags":{},"startTime":1778893618021,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":695400,"timestamp":85645753410,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778893618000,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":681676,"timestamp":85645768659,"id":94,"parentId":53,"tags":{},"startTime":1778893618015,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":698068,"timestamp":85645752315,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778893617999,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":682539,"timestamp":85645768722,"id":99,"parentId":60,"tags":{},"startTime":1778893618015,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":697526,"timestamp":85645753790,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778893618000,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":684302,"timestamp":85645768671,"id":95,"parentId":54,"tags":{},"startTime":1778893618015,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":700535,"timestamp":85645752505,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778893617999,"traceId":"8dc731dd57e9bff1"},{"name":"is-page-static","duration":687033,"timestamp":85645768635,"id":92,"parentId":51,"tags":{},"startTime":1778893618015,"traceId":"8dc731dd57e9bff1"},{"name":"check-page","duration":703724,"timestamp":85645751982,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778893617998,"traceId":"8dc731dd57e9bff1"},{"name":"static-check","duration":713879,"timestamp":85645741870,"id":19,"parentId":1,"tags":{},"startTime":1778893617988,"traceId":"8dc731dd57e9bff1"},{"name":"write-routes-manifest","duration":390,"timestamp":85646462588,"id":104,"parentId":1,"tags":{},"startTime":1778893618709,"traceId":"8dc731dd57e9bff1"},{"name":"load-dotenv","duration":46,"timestamp":85646474149,"id":107,"parentId":106,"tags":{},"startTime":1778893618720,"traceId":"8dc731dd57e9bff1"},{"name":"run-export-path-map","duration":562,"timestamp":85646478169,"id":108,"parentId":106,"tags":{},"startTime":1778893618724,"traceId":"8dc731dd57e9bff1"},{"name":"next-export","duration":570203,"timestamp":85646472896,"id":106,"parentId":1,"tags":{},"startTime":1778893618719,"traceId":"8dc731dd57e9bff1"}]
2
+ [{"name":"move-exported-app-not-found-","duration":1710,"timestamp":85647046254,"id":109,"parentId":105,"tags":{},"startTime":1778893619293,"traceId":"8dc731dd57e9bff1"},{"name":"move-exported-app-global-error-","duration":1000,"timestamp":85647048074,"id":110,"parentId":105,"tags":{},"startTime":1778893619294,"traceId":"8dc731dd57e9bff1"},{"name":"static-generation","duration":584414,"timestamp":85646466635,"id":105,"parentId":1,"tags":{},"startTime":1778893618713,"traceId":"8dc731dd57e9bff1"},{"name":"write-routes-manifest","duration":543,"timestamp":85647051273,"id":111,"parentId":1,"tags":{},"startTime":1778893619298,"traceId":"8dc731dd57e9bff1"},{"name":"print-tree-view","duration":4871,"timestamp":85647059665,"id":112,"parentId":1,"tags":{},"startTime":1778893619306,"traceId":"8dc731dd57e9bff1"},{"name":"write-route-bundle-stats","duration":19175,"timestamp":85647064575,"id":113,"parentId":1,"tags":{},"startTime":1778893619311,"traceId":"8dc731dd57e9bff1"},{"name":"telemetry-flush","duration":34450,"timestamp":85647083781,"id":114,"parentId":1,"tags":{},"startTime":1778893619330,"traceId":"8dc731dd57e9bff1"},{"name":"next-build","duration":16415272,"timestamp":85630702999,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778893602949,"traceId":"8dc731dd57e9bff1"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":5955103,"timestamp":85044479615,"id":14,"parentId":1,"tags":{},"startTime":1778893016726,"traceId":"e4eeeff7152a84e0"},{"name":"turbopack-build-events","duration":84,"timestamp":85044786389,"id":15,"parentId":1,"tags":{},"startTime":1778893017033,"traceId":"e4eeeff7152a84e0"},{"name":"run-typescript","duration":9210179,"timestamp":85050447791,"id":16,"parentId":1,"tags":{},"startTime":1778893022694,"traceId":"e4eeeff7152a84e0"},{"name":"static-check","duration":757385,"timestamp":85059832056,"id":19,"parentId":1,"tags":{},"startTime":1778893032078,"traceId":"e4eeeff7152a84e0"},{"name":"static-generation","duration":720376,"timestamp":85060601603,"id":105,"parentId":1,"tags":{},"startTime":1778893032848,"traceId":"e4eeeff7152a84e0"},{"name":"telemetry-flush","duration":21810,"timestamp":85061355513,"id":114,"parentId":1,"tags":{},"startTime":1778893033602,"traceId":"e4eeeff7152a84e0"},{"name":"next-build","duration":17094387,"timestamp":85044282967,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778893016529,"traceId":"e4eeeff7152a84e0"}]
1
+ [{"name":"run-turbopack","duration":5640042,"timestamp":85630897949,"id":14,"parentId":1,"tags":{},"startTime":1778893603144,"traceId":"8dc731dd57e9bff1"},{"name":"turbopack-build-events","duration":72,"timestamp":85631177481,"id":15,"parentId":1,"tags":{},"startTime":1778893603424,"traceId":"8dc731dd57e9bff1"},{"name":"run-typescript","duration":9016647,"timestamp":85636547350,"id":16,"parentId":1,"tags":{},"startTime":1778893608794,"traceId":"8dc731dd57e9bff1"},{"name":"static-check","duration":713879,"timestamp":85645741870,"id":19,"parentId":1,"tags":{},"startTime":1778893617988,"traceId":"8dc731dd57e9bff1"},{"name":"static-generation","duration":584414,"timestamp":85646466635,"id":105,"parentId":1,"tags":{},"startTime":1778893618713,"traceId":"8dc731dd57e9bff1"},{"name":"telemetry-flush","duration":34450,"timestamp":85647083781,"id":114,"parentId":1,"tags":{},"startTime":1778893619330,"traceId":"8dc731dd57e9bff1"},{"name":"next-build","duration":16415272,"timestamp":85630702999,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778893602949,"traceId":"8dc731dd57e9bff1"}]
@@ -3055,7 +3055,37 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
3055
3055
  the node↔label guard still catches if the chip ever
3056
3056
  pushes the label far enough right to clip a node.
3057
3057
  Smaller + lighter weight reads as metadata, not name. */}
3058
- <tspan dx="6" fill={pal.legendText} fontSize="11" fontWeight="400">· {box.count}</tspan>
3058
+ {/* Round 229 / Loop: member-count chip drops its explicit
3059
+ fill so it inherits from the parent <text>, which means
3060
+ R142's hover-fill transition (legendText → legend-
3061
+ Headline, 200ms ease-out) NOW carries the count chip
3062
+ with it. Pre-R229 the parent name brightened on
3063
+ hover while the count tspan stayed at legendText —
3064
+ "name lit, count dimmer than at rest" inverted the
3065
+ tonal hierarchy. Inheriting matches the name's
3066
+ transition; both rest and hover keep the SAME
3067
+ tonal relationship between name and count.
3068
+ 7th surface in the hover-deepen-own-hue family
3069
+ (legend rows, chip-row counts, status pip, recent
3070
+ row text, pressure-bar segments, group-box fill +
3071
+ this round's group-label-count chip).
3072
+
3073
+ Also picks up tabular-nums (5th surface in the
3074
+ info-density tabular-nums sweep after R224 edge
3075
+ badge / R225 hub digit / R225 panel header /
3076
+ R225 recent row count). The member count rolls
3077
+ over often (4→5→…→9→10 as a group grows) and
3078
+ lives at a fixed dx=6 offset from the name, so a
3079
+ digit-width jitter at 9→10 used to shift the
3080
+ whole count visibly. Tabular locks it. */}
3081
+ <tspan
3082
+ dx="6"
3083
+ fontSize="11"
3084
+ fontWeight="400"
3085
+ data-group-label-count={box.key}
3086
+ data-group-label-count-value={box.count}
3087
+ style={{ fontVariantNumeric: 'tabular-nums' }}
3088
+ >· {box.count}</tspan>
3059
3089
  {/* Round 58 / Loop: status mix pip strip. Compact text-
3060
3090
  based chips (e.g. "2w 1i") so the strip stays inside
3061
3091
  the same <text> bbox the overlap-test reads — keeps
@@ -3078,14 +3108,52 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
3078
3108
  Exit remains snap — matches R190's "fade-IN
3079
3109
  smooth, accept exit snap" trade-off used for
3080
3110
  the R129 hot-tail. */}
3111
+ {/* Round 230 / Loop: tabular-nums on the 3 status pips
3112
+ so the count digit doesn't jitter the adjacent
3113
+ pip when a tier crosses 9 → 10. The pips render
3114
+ in sequence at dx=8/4/4 — width-shift on any
3115
+ tier propagates rightward through the strip,
3116
+ visibly compressing or stretching the gap
3117
+ between adjacent tier chips. Tabular locks the
3118
+ digit so the strip stays stable as tiers grow.
3119
+ 6th surface in the info-density tabular-nums
3120
+ sweep after R224 edge badge / R225 hub digit /
3121
+ R225 panel header / R225 recent row count /
3122
+ R229 group-label count. Tier-specific fill
3123
+ colours stay (semantic — working green /
3124
+ idle teal / offline slate). */}
3081
3125
  {box.statuses.working > 0 && (
3082
- <tspan dx="8" fill={isLight ? '#059669' : '#22c55e'} fontSize="11" fontWeight="600" className="anet-fade-in" data-group-pip="working">{box.statuses.working}w</tspan>
3126
+ <tspan
3127
+ dx="8"
3128
+ fill={isLight ? '#059669' : '#22c55e'}
3129
+ fontSize="11"
3130
+ fontWeight="600"
3131
+ className="anet-fade-in"
3132
+ data-group-pip="working"
3133
+ style={{ fontVariantNumeric: 'tabular-nums' }}
3134
+ >{box.statuses.working}w</tspan>
3083
3135
  )}
3084
3136
  {box.statuses.idle > 0 && (
3085
- <tspan dx="4" fill={isLight ? '#0d9488' : '#2dd4bf'} fontSize="11" fontWeight="600" className="anet-fade-in" data-group-pip="idle">{box.statuses.idle}i</tspan>
3137
+ <tspan
3138
+ dx="4"
3139
+ fill={isLight ? '#0d9488' : '#2dd4bf'}
3140
+ fontSize="11"
3141
+ fontWeight="600"
3142
+ className="anet-fade-in"
3143
+ data-group-pip="idle"
3144
+ style={{ fontVariantNumeric: 'tabular-nums' }}
3145
+ >{box.statuses.idle}i</tspan>
3086
3146
  )}
3087
3147
  {box.statuses.offline > 0 && (
3088
- <tspan dx="4" fill={isLight ? '#94a3b8' : '#6b7280'} fontSize="11" fontWeight="600" className="anet-fade-in" data-group-pip="offline">{box.statuses.offline}o</tspan>
3148
+ <tspan
3149
+ dx="4"
3150
+ fill={isLight ? '#94a3b8' : '#6b7280'}
3151
+ fontSize="11"
3152
+ fontWeight="600"
3153
+ className="anet-fade-in"
3154
+ data-group-pip="offline"
3155
+ style={{ fontVariantNumeric: 'tabular-nums' }}
3156
+ >{box.statuses.offline}o</tspan>
3089
3157
  )}
3090
3158
  </text>
3091
3159
  </g>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network-dashboard",
3
- "version": "0.4.6-preview.235",
3
+ "version": "0.4.6-preview.237",
4
4
  "description": "Agent Network Dashboard — Web UI for managing AI Agent networks",
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -0,0 +1,99 @@
1
+ /* Round 229 verification: group-label member-count tspan drops
2
+ * its explicit fill (now inherits from parent <text>) and picks up
3
+ * fontVariantNumeric: 'tabular-nums'.
4
+ *
5
+ * Two scopes:
6
+ * 1) Hover-deepen-own-hue family — count chip color now follows
7
+ * parent name's R142 hover transition (legendText → legend-
8
+ * Headline). Tonal hierarchy (count < name brightness) is
9
+ * preserved across both rest AND hover instead of inverting
10
+ * on hover.
11
+ * 2) Info-density tabular-nums — 5th surface after R224 edge
12
+ * badge / R225 hub + panel header + recent row.
13
+ *
14
+ * Scenario: 6 prefix-shared aliases (alpha-1..alpha-3, beta-1..
15
+ * beta-3) → R106 cluster-by-prefix forms two groups, each with
16
+ * count=3. Grid layout has explicit group label rendering (#111).
17
+ *
18
+ * Verifications:
19
+ * - data-group-label-count attr present (probe selector)
20
+ * - tspan has NO explicit fill attribute (inheriting)
21
+ * - getComputedStyle().fontVariantNumeric contains 'tabular-nums'
22
+ * - tspan computed fill matches PARENT <text> computed fill
23
+ * (R142 rest-state hierarchy preserved)
24
+ * - count text matches '· 3'
25
+ * - data-group-label-count-value reflects {box.count}
26
+ */
27
+ import { chromium } from 'playwright';
28
+ import { readFileSync } from 'node:fs';
29
+
30
+ const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
31
+ const browser = await chromium.launch({ headless: true });
32
+ const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
33
+ await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
34
+ await ctx.addInitScript(() => {
35
+ try {
36
+ localStorage.setItem('anet-theme', 'cyber');
37
+ sessionStorage.setItem('anet_v3_auth', '1');
38
+ // R226 grid layout — group labels render here. Storage key inferred
39
+ // from data-topo-layout-toggle persistence pattern.
40
+ localStorage.setItem('anet-topo-layout', 'grid');
41
+ } catch {}
42
+ });
43
+ const fresh = new Date(Date.now() - 60 * 1000).toISOString();
44
+ await ctx.route('**/api/hub/status*', async (route) => {
45
+ const r = await route.fetch();
46
+ const b = await r.json();
47
+ const nid = (b.sessions || [])[0]?.network_id || 'default';
48
+ const mk = (alias) => ({
49
+ alias, status: 'working', model: 'claude-opus-4', runtime: 'claude-code-cli',
50
+ network_id: nid, project_dir: null,
51
+ created_at: fresh, updated_at: fresh, last_seen_at: fresh,
52
+ });
53
+ await route.fulfill({ response: r, json: { ...b, sessions: [
54
+ mk('alpha-1'), mk('alpha-2'), mk('alpha-3'),
55
+ mk('beta-1'), mk('beta-2'), mk('beta-3'),
56
+ ] } });
57
+ });
58
+ await ctx.route('**/api/hub/messages*', (r2) => r2.fulfill({ json: { messages: [] } }));
59
+ await ctx.route('**/api/hub/tasks*', (r2) => r2.fulfill({ json: { tasks: [] } }));
60
+
61
+ const page = await ctx.newPage();
62
+ await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
63
+ await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 6, { timeout: 30000 });
64
+ await page.waitForSelector('[data-group-label-count]', { timeout: 10000, state: 'attached' });
65
+ await page.waitForTimeout(400);
66
+
67
+ const out = await page.evaluate(() => {
68
+ const counts = Array.from(document.querySelectorAll('[data-group-label-count]'));
69
+ return counts.map((tspan) => {
70
+ const parent = tspan.parentElement; // the <text data-group-label>
71
+ return {
72
+ key: tspan.getAttribute('data-group-label-count'),
73
+ countValue: tspan.getAttribute('data-group-label-count-value'),
74
+ hasFillAttr: tspan.hasAttribute('fill'),
75
+ text: tspan.textContent,
76
+ fontVarNumeric: getComputedStyle(tspan).fontVariantNumeric,
77
+ tspanFill: getComputedStyle(tspan).fill,
78
+ parentFill: parent ? getComputedStyle(parent).fill : null,
79
+ };
80
+ });
81
+ });
82
+ await browser.close();
83
+
84
+ const hasTab = (s) => /tabular-nums/.test(s || '');
85
+ const present = out.length > 0;
86
+
87
+ const results = {
88
+ groups_found: out.length === 2,
89
+ all_have_key: present && out.every(o => typeof o.key === 'string' && o.key.length > 0),
90
+ all_count_3: present && out.every(o => o.countValue === '3'),
91
+ all_text_dot_3: present && out.every(o => /·\s*3$/.test((o.text || '').trim())),
92
+ all_no_fill_attr: present && out.every(o => !o.hasFillAttr),
93
+ all_tabular_nums: present && out.every(o => hasTab(o.fontVarNumeric)),
94
+ fill_inherits_parent: present && out.every(o => o.tspanFill === o.parentFill),
95
+ };
96
+ const ok = Object.values(results).every(Boolean);
97
+ console.log(`${ok ? '✅' : '❌'} group-label count inherit + tabular:`, JSON.stringify(results),
98
+ '\n probed:', out);
99
+ process.exit(ok ? 0 : 1);
@@ -0,0 +1,95 @@
1
+ /* Round 230 verification: R58 status mix pip strip tspans
2
+ * ([data-group-pip='working|idle|offline']) get fontVariantNumeric:
3
+ * 'tabular-nums' so the digit doesn't jitter the dx-offset pip
4
+ * chain at the 9→10 boundary.
5
+ *
6
+ * Scenario: 1 group with mixed tiers — alpha-1/2 working, alpha-3
7
+ * idle, alpha-4 offline. R106 cluster forms one alpha- group with
8
+ * box.statuses.working=2, idle=1, offline=1 → all three pips
9
+ * present.
10
+ *
11
+ * Verifies each pip:
12
+ * getComputedStyle.fontVariantNumeric contains 'tabular-nums'
13
+ * text matches the expected '{N}{tier-letter}' shape
14
+ * fill is tier-specific (color check — sanity)
15
+ */
16
+ import { chromium } from 'playwright';
17
+ import { readFileSync } from 'node:fs';
18
+
19
+ const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
20
+ const browser = await chromium.launch({ headless: true });
21
+ const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
22
+ await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
23
+ await ctx.addInitScript(() => {
24
+ try {
25
+ localStorage.setItem('anet-theme', 'cyber');
26
+ sessionStorage.setItem('anet_v3_auth', '1');
27
+ localStorage.setItem('anet-topo-layout', 'grid');
28
+ } 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, status) => ({
36
+ alias, status,
37
+ model: 'claude-opus-4', runtime: 'claude-code-cli',
38
+ network_id: nid, project_dir: null,
39
+ created_at: fresh, updated_at: fresh, last_seen_at: fresh,
40
+ });
41
+ await route.fulfill({ response: r, json: { ...b, sessions: [
42
+ mk('alpha-1', 'working'),
43
+ mk('alpha-2', 'working'),
44
+ mk('alpha-3', 'idle'),
45
+ mk('alpha-4', 'offline'),
46
+ ] } });
47
+ });
48
+ await ctx.route('**/api/hub/messages*', (r2) => r2.fulfill({ json: { messages: [] } }));
49
+ await ctx.route('**/api/hub/tasks*', (r2) => r2.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-group-pip="working"]', { timeout: 10000, state: 'attached' });
55
+ await page.waitForTimeout(400);
56
+
57
+ const out = await page.evaluate(() => {
58
+ const grab = (tier) => {
59
+ const el = document.querySelector(`[data-group-pip="${tier}"]`);
60
+ if (!el) return null;
61
+ return {
62
+ tier,
63
+ text: el.textContent,
64
+ fontVarNumeric: getComputedStyle(el).fontVariantNumeric,
65
+ fill: getComputedStyle(el).fill,
66
+ };
67
+ };
68
+ return {
69
+ working: grab('working'),
70
+ idle: grab('idle'),
71
+ offline: grab('offline'),
72
+ };
73
+ });
74
+ await browser.close();
75
+
76
+ const hasTab = (s) => /tabular-nums/.test(s || '');
77
+
78
+ const results = {
79
+ working_present: out.working !== null,
80
+ working_text: out.working?.text === '2w',
81
+ working_tabular: hasTab(out.working?.fontVarNumeric),
82
+ idle_present: out.idle !== null,
83
+ idle_text: out.idle?.text === '1i',
84
+ idle_tabular: hasTab(out.idle?.fontVarNumeric),
85
+ offline_present: out.offline !== null,
86
+ offline_text: out.offline?.text === '1o',
87
+ offline_tabular: hasTab(out.offline?.fontVarNumeric),
88
+ // Sanity: tier-specific fills still distinct from each other
89
+ fills_distinct: out.working && out.idle && out.offline &&
90
+ new Set([out.working.fill, out.idle.fill, out.offline.fill]).size === 3,
91
+ };
92
+ const ok = Object.values(results).every(Boolean);
93
+ console.log(`${ok ? '✅' : '❌'} group-pip tabular:`, JSON.stringify(results),
94
+ '\n pips:', out);
95
+ process.exit(ok ? 0 : 1);