@sleep2agi/agent-network-dashboard 0.5.1-preview.17 → 0.5.1-preview.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/diagnostics/route-bundle-stats.json +4 -4
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/server/app/_global-error.html +1 -1
  6. package/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found.html +1 -1
  13. package/.next/server/app/_not-found.rsc +1 -1
  14. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  20. package/.next/server/app/admin.html +1 -1
  21. package/.next/server/app/admin.rsc +1 -1
  22. package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
  23. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  24. package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
  25. package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
  26. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
  27. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  28. package/.next/server/app/index.html +2 -2
  29. package/.next/server/app/index.rsc +2 -2
  30. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  31. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  32. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  33. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  34. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  35. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/login.html +2 -2
  37. package/.next/server/app/login.rsc +2 -2
  38. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  39. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  40. package/.next/server/app/login.segments/_index.segment.rsc +1 -1
  41. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  42. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  43. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  44. package/.next/server/app/logs.html +1 -1
  45. package/.next/server/app/logs.rsc +1 -1
  46. package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
  47. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  48. package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
  49. package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
  50. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  51. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  52. package/.next/server/app/messages.html +1 -1
  53. package/.next/server/app/messages.rsc +1 -1
  54. package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
  55. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  56. package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
  57. package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
  58. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
  59. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  60. package/.next/server/app/node.html +1 -1
  61. package/.next/server/app/node.rsc +1 -1
  62. package/.next/server/app/node.segments/_full.segment.rsc +1 -1
  63. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  64. package/.next/server/app/node.segments/_index.segment.rsc +1 -1
  65. package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
  66. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
  67. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  68. package/.next/server/app/nodes.html +1 -1
  69. package/.next/server/app/nodes.rsc +1 -1
  70. package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
  71. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  72. package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
  73. package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
  74. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
  75. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  76. package/.next/server/app/page_client-reference-manifest.js +1 -1
  77. package/.next/server/app/server-logs.html +1 -1
  78. package/.next/server/app/server-logs.rsc +1 -1
  79. package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
  80. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  81. package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
  82. package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
  83. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  84. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  85. package/.next/server/app/settings/networks.html +1 -1
  86. package/.next/server/app/settings/networks.rsc +1 -1
  87. package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
  88. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  89. package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
  90. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
  91. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  92. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  93. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  94. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  95. package/.next/server/app/settings/tokens.html +1 -1
  96. package/.next/server/app/settings/tokens.rsc +1 -1
  97. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
  98. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  99. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
  100. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
  101. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  102. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  103. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  104. package/.next/server/app/settings.html +2 -2
  105. package/.next/server/app/settings.rsc +2 -2
  106. package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  107. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  108. package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  109. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  110. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  111. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  112. package/.next/server/app/tasks.html +1 -1
  113. package/.next/server/app/tasks.rsc +1 -1
  114. package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
  115. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  116. package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
  117. package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
  118. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  119. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  120. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +2 -2
  121. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  122. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  123. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  124. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  125. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  126. package/.next/server/middleware-build-manifest.js +3 -3
  127. package/.next/server/pages/404.html +1 -1
  128. package/.next/server/pages/500.html +1 -1
  129. package/.next/static/chunks/{07d5swyhr-chy.js → 05og7gk6_o1cl.js} +2 -2
  130. package/.next/static/chunks/{0yt1-sd29n.lm.js → 0cjvapsp4ui7z.js} +1 -1
  131. package/.next/static/chunks/{0ld8uqoyycqx9.js → 13ajd8esw2ck..js} +1 -1
  132. package/.next/trace +2 -2
  133. package/.next/trace-build +1 -1
  134. package/app/components/TopoGraph.tsx +28 -7
  135. package/package.json +1 -1
  136. package/scripts/topo-freshness-floor-lift-test.mjs +92 -0
  137. package/scripts/topo-freshness-suffix-tabular-test.mjs +88 -0
  138. /package/.next/static/{bQRst1hNhHBetxfJd8icb → Vw56qtOSA9BmniOBooFHt}/_buildManifest.js +0 -0
  139. /package/.next/static/{bQRst1hNhHBetxfJd8icb → Vw56qtOSA9BmniOBooFHt}/_clientMiddlewareManifest.js +0 -0
  140. /package/.next/static/{bQRst1hNhHBetxfJd8icb → Vw56qtOSA9BmniOBooFHt}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.16"],70286)},48941,e=>{"use strict";var t=e.i(22381),r=e.i(23910),a=e.i(70286);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#111128] border border-[#2a2a4a] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#2a2a4a] bg-[#111128]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:h||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[h&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:h?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",a.DASHBOARD_VERSION]})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.18"],70286)},48941,e=>{"use strict";var t=e.i(22381),r=e.i(23910),a=e.i(70286);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#111128] border border-[#2a2a4a] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#2a2a4a] bg-[#111128]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:h||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[h&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:h?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",a.DASHBOARD_VERSION]})]})]})]})}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.16"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.18"],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":373,"timestamp":135026548368,"id":4,"parentId":1,"tags":{},"startTime":1778942998795,"traceId":"c1d59d2b94fd225a"},{"name":"load-custom-routes","duration":753,"timestamp":135026548947,"id":5,"parentId":1,"tags":{},"startTime":1778942998795,"traceId":"c1d59d2b94fd225a"},{"name":"create-dist-dir","duration":946,"timestamp":135026549792,"id":6,"parentId":1,"tags":{},"startTime":1778942998796,"traceId":"c1d59d2b94fd225a"},{"name":"clean","duration":32834,"timestamp":135026551643,"id":7,"parentId":1,"tags":{},"startTime":1778942998798,"traceId":"c1d59d2b94fd225a"},{"name":"discover-routes","duration":24656,"timestamp":135026673960,"id":8,"parentId":1,"tags":{},"startTime":1778942998920,"traceId":"c1d59d2b94fd225a"},{"name":"create-root-mapping","duration":140,"timestamp":135026698697,"id":9,"parentId":1,"tags":{},"startTime":1778942998945,"traceId":"c1d59d2b94fd225a"},{"name":"generate-route-types","duration":21962,"timestamp":135026701504,"id":10,"parentId":1,"tags":{},"startTime":1778942998948,"traceId":"c1d59d2b94fd225a"},{"name":"public-dir-conflict-check","duration":120,"timestamp":135026723580,"id":11,"parentId":1,"tags":{},"startTime":1778942998970,"traceId":"c1d59d2b94fd225a"},{"name":"generate-routes-manifest","duration":5476,"timestamp":135026723860,"id":12,"parentId":1,"tags":{},"startTime":1778942998970,"traceId":"c1d59d2b94fd225a"},{"name":"run-turbopack","duration":6491619,"timestamp":135026734919,"id":14,"parentId":1,"tags":{},"startTime":1778942998981,"traceId":"c1d59d2b94fd225a"},{"name":"turbopack-build-events","duration":108,"timestamp":135027029440,"id":15,"parentId":1,"tags":{},"startTime":1778942999276,"traceId":"c1d59d2b94fd225a"},{"name":"run-typescript","duration":9645520,"timestamp":135033237840,"id":16,"parentId":1,"tags":{},"startTime":1778943005484,"traceId":"c1d59d2b94fd225a"},{"name":"generate-required-server-files","duration":2229,"timestamp":135042884713,"id":18,"parentId":1,"tags":{},"startTime":1778943015131,"traceId":"c1d59d2b94fd225a"},{"name":"check-static-error-page","duration":14648,"timestamp":135043040231,"id":20,"parentId":19,"tags":{},"startTime":1778943015287,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":553649,"timestamp":135043057986,"id":65,"parentId":22,"tags":{},"startTime":1778943015304,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":569274,"timestamp":135043042575,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778943015289,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":586907,"timestamp":135043059648,"id":68,"parentId":27,"tags":{},"startTime":1778943015306,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":601296,"timestamp":135043045357,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778943015292,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":588645,"timestamp":135043058273,"id":67,"parentId":26,"tags":{},"startTime":1778943015305,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":601703,"timestamp":135043045260,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778943015292,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":607711,"timestamp":135043058166,"id":66,"parentId":25,"tags":{},"startTime":1778943015304,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":620854,"timestamp":135043045087,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778943015291,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":611093,"timestamp":135043059822,"id":69,"parentId":28,"tags":{},"startTime":1778943015306,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":625559,"timestamp":135043045439,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778943015292,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":610875,"timestamp":135043060824,"id":74,"parentId":34,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":625623,"timestamp":135043046137,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778943015292,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":614239,"timestamp":135043060551,"id":72,"parentId":32,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":628943,"timestamp":135043045903,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778943015292,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":622069,"timestamp":135043060902,"id":77,"parentId":37,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":636097,"timestamp":135043046942,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778943015293,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":625420,"timestamp":135043060856,"id":75,"parentId":35,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":640064,"timestamp":135043046264,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778943015293,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":627457,"timestamp":135043060736,"id":73,"parentId":33,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":642212,"timestamp":135043046028,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778943015292,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":627465,"timestamp":135043060918,"id":78,"parentId":38,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":641287,"timestamp":135043047127,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778943015293,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":636397,"timestamp":135043060940,"id":80,"parentId":40,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":650031,"timestamp":135043047355,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778943015294,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":637397,"timestamp":135043060300,"id":70,"parentId":29,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":652218,"timestamp":135043045517,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778943015292,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":639272,"timestamp":135043060952,"id":81,"parentId":42,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":652573,"timestamp":135043047715,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778943015294,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":641966,"timestamp":135043060976,"id":83,"parentId":45,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":654734,"timestamp":135043048260,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778943015295,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":649453,"timestamp":135043060877,"id":76,"parentId":36,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":663714,"timestamp":135043046660,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778943015293,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":655248,"timestamp":135043060964,"id":82,"parentId":44,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":668265,"timestamp":135043048144,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778943015294,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":661153,"timestamp":135043061045,"id":87,"parentId":49,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":673603,"timestamp":135043048644,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778943015295,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":661396,"timestamp":135043060984,"id":84,"parentId":46,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":674056,"timestamp":135043048348,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778943015295,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":664872,"timestamp":135043060931,"id":79,"parentId":39,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":678638,"timestamp":135043047240,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778943015294,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":665098,"timestamp":135043061030,"id":86,"parentId":48,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":677638,"timestamp":135043048531,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778943015295,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":666314,"timestamp":135043061070,"id":89,"parentId":51,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":677053,"timestamp":135043050385,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778943015297,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":671194,"timestamp":135043061055,"id":88,"parentId":50,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":682066,"timestamp":135043050225,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778943015297,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":646089,"timestamp":135043086372,"id":92,"parentId":41,"tags":{},"startTime":1778943015333,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":685041,"timestamp":135043047451,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778943015294,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":649055,"timestamp":135043085271,"id":91,"parentId":31,"tags":{},"startTime":1778943015332,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":688668,"timestamp":135043045699,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778943015292,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":640447,"timestamp":135043095939,"id":93,"parentId":43,"tags":{},"startTime":1778943015342,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":688570,"timestamp":135043047857,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778943015294,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":658758,"timestamp":135043080092,"id":90,"parentId":24,"tags":{},"startTime":1778943015326,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":695828,"timestamp":135043043059,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778943015289,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":683793,"timestamp":135043060996,"id":85,"parentId":47,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":696398,"timestamp":135043048444,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778943015295,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":732512,"timestamp":135043060479,"id":71,"parentId":30,"tags":{},"startTime":1778943015307,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":747496,"timestamp":135043045612,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778943015292,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":686616,"timestamp":135043107105,"id":94,"parentId":23,"tags":{},"startTime":1778943015353,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":750956,"timestamp":135043042822,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778943015289,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":736912,"timestamp":135043057562,"id":64,"parentId":21,"tags":{},"startTime":1778943015304,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":753115,"timestamp":135043041416,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778943015288,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":691743,"timestamp":135043107140,"id":95,"parentId":52,"tags":{},"startTime":1778943015353,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":748042,"timestamp":135043050894,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778943015297,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":695913,"timestamp":135043107341,"id":101,"parentId":59,"tags":{},"startTime":1778943015354,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":750376,"timestamp":135043052948,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778943015299,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":696258,"timestamp":135043107223,"id":100,"parentId":58,"tags":{},"startTime":1778943015353,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":750833,"timestamp":135043052689,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778943015299,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":696713,"timestamp":135043107160,"id":96,"parentId":53,"tags":{},"startTime":1778943015353,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":752823,"timestamp":135043051110,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778943015297,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":701469,"timestamp":135043107357,"id":102,"parentId":61,"tags":{},"startTime":1778943015354,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":755258,"timestamp":135043053622,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778943015300,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":706865,"timestamp":135043107386,"id":104,"parentId":63,"tags":{},"startTime":1778943015354,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":759748,"timestamp":135043054552,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778943015301,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":659284,"timestamp":135043156644,"id":106,"parentId":60,"tags":{},"startTime":1778943015403,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":762805,"timestamp":135043053165,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778943015299,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":687999,"timestamp":135043128551,"id":105,"parentId":57,"tags":{},"startTime":1778943015375,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":764509,"timestamp":135043052075,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778943015298,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":710113,"timestamp":135043107183,"id":98,"parentId":55,"tags":{},"startTime":1778943015353,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":765857,"timestamp":135043051491,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778943015298,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":713512,"timestamp":135043107173,"id":97,"parentId":54,"tags":{},"startTime":1778943015353,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":769441,"timestamp":135043051288,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778943015298,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":729722,"timestamp":135043107372,"id":103,"parentId":62,"tags":{},"startTime":1778943015354,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":782810,"timestamp":135043054347,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778943015301,"traceId":"c1d59d2b94fd225a"},{"name":"is-page-static","duration":751076,"timestamp":135043107207,"id":99,"parentId":56,"tags":{},"startTime":1778943015353,"traceId":"c1d59d2b94fd225a"},{"name":"check-page","duration":806574,"timestamp":135043051767,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778943015298,"traceId":"c1d59d2b94fd225a"},{"name":"static-check","duration":818979,"timestamp":135043039404,"id":19,"parentId":1,"tags":{},"startTime":1778943015286,"traceId":"c1d59d2b94fd225a"}]
2
- [{"name":"write-routes-manifest","duration":1471,"timestamp":135043870211,"id":108,"parentId":1,"tags":{},"startTime":1778943016116,"traceId":"c1d59d2b94fd225a"},{"name":"load-dotenv","duration":58,"timestamp":135043886908,"id":111,"parentId":110,"tags":{},"startTime":1778943016133,"traceId":"c1d59d2b94fd225a"},{"name":"run-export-path-map","duration":888,"timestamp":135043890636,"id":112,"parentId":110,"tags":{},"startTime":1778943016137,"traceId":"c1d59d2b94fd225a"},{"name":"next-export","duration":608713,"timestamp":135043884609,"id":110,"parentId":1,"tags":{},"startTime":1778943016131,"traceId":"c1d59d2b94fd225a"},{"name":"move-exported-app-not-found-","duration":635,"timestamp":135044497058,"id":113,"parentId":109,"tags":{},"startTime":1778943016743,"traceId":"c1d59d2b94fd225a"},{"name":"move-exported-app-global-error-","duration":455,"timestamp":135044497819,"id":114,"parentId":109,"tags":{},"startTime":1778943016744,"traceId":"c1d59d2b94fd225a"},{"name":"static-generation","duration":624089,"timestamp":135043876336,"id":109,"parentId":1,"tags":{},"startTime":1778943016123,"traceId":"c1d59d2b94fd225a"},{"name":"write-routes-manifest","duration":625,"timestamp":135044500762,"id":115,"parentId":1,"tags":{},"startTime":1778943016747,"traceId":"c1d59d2b94fd225a"},{"name":"print-tree-view","duration":4024,"timestamp":135044516629,"id":116,"parentId":1,"tags":{},"startTime":1778943016763,"traceId":"c1d59d2b94fd225a"},{"name":"write-route-bundle-stats","duration":13920,"timestamp":135044520697,"id":117,"parentId":1,"tags":{},"startTime":1778943016767,"traceId":"c1d59d2b94fd225a"},{"name":"telemetry-flush","duration":21518,"timestamp":135044534643,"id":118,"parentId":1,"tags":{},"startTime":1778943016781,"traceId":"c1d59d2b94fd225a"},{"name":"next-build","duration":18063258,"timestamp":135026492953,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778942998739,"traceId":"c1d59d2b94fd225a"}]
1
+ [{"name":"generate-buildid","duration":276,"timestamp":135859143277,"id":4,"parentId":1,"tags":{},"startTime":1778943831390,"traceId":"017e9669edf3c03f"},{"name":"load-custom-routes","duration":490,"timestamp":135859143699,"id":5,"parentId":1,"tags":{},"startTime":1778943831390,"traceId":"017e9669edf3c03f"},{"name":"create-dist-dir","duration":678,"timestamp":135859144234,"id":6,"parentId":1,"tags":{},"startTime":1778943831391,"traceId":"017e9669edf3c03f"},{"name":"clean","duration":33145,"timestamp":135859145629,"id":7,"parentId":1,"tags":{},"startTime":1778943831392,"traceId":"017e9669edf3c03f"},{"name":"discover-routes","duration":10410,"timestamp":135859260073,"id":8,"parentId":1,"tags":{},"startTime":1778943831506,"traceId":"017e9669edf3c03f"},{"name":"create-root-mapping","duration":111,"timestamp":135859270543,"id":9,"parentId":1,"tags":{},"startTime":1778943831517,"traceId":"017e9669edf3c03f"},{"name":"generate-route-types","duration":34038,"timestamp":135859273034,"id":10,"parentId":1,"tags":{},"startTime":1778943831519,"traceId":"017e9669edf3c03f"},{"name":"public-dir-conflict-check","duration":121,"timestamp":135859307162,"id":11,"parentId":1,"tags":{},"startTime":1778943831553,"traceId":"017e9669edf3c03f"},{"name":"generate-routes-manifest","duration":4890,"timestamp":135859307405,"id":12,"parentId":1,"tags":{},"startTime":1778943831554,"traceId":"017e9669edf3c03f"},{"name":"run-turbopack","duration":5447667,"timestamp":135859318561,"id":14,"parentId":1,"tags":{},"startTime":1778943831565,"traceId":"017e9669edf3c03f"},{"name":"turbopack-build-events","duration":110,"timestamp":135859616611,"id":15,"parentId":1,"tags":{},"startTime":1778943831863,"traceId":"017e9669edf3c03f"},{"name":"run-typescript","duration":9289695,"timestamp":135864774858,"id":16,"parentId":1,"tags":{},"startTime":1778943837021,"traceId":"017e9669edf3c03f"},{"name":"generate-required-server-files","duration":2376,"timestamp":135874065732,"id":18,"parentId":1,"tags":{},"startTime":1778943846312,"traceId":"017e9669edf3c03f"},{"name":"check-static-error-page","duration":16347,"timestamp":135874240473,"id":20,"parentId":19,"tags":{},"startTime":1778943846487,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":446783,"timestamp":135874261187,"id":65,"parentId":22,"tags":{},"startTime":1778943846507,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":464250,"timestamp":135874243938,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778943846490,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":539088,"timestamp":135874261349,"id":66,"parentId":25,"tags":{},"startTime":1778943846508,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":553265,"timestamp":135874247291,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778943846494,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":549145,"timestamp":135874261599,"id":68,"parentId":27,"tags":{},"startTime":1778943846508,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":563212,"timestamp":135874247618,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778943846494,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":555128,"timestamp":135874262253,"id":72,"parentId":32,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":568940,"timestamp":135874248505,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778943846495,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":561612,"timestamp":135874262547,"id":74,"parentId":34,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":575412,"timestamp":135874248811,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778943846495,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":566897,"timestamp":135874262581,"id":75,"parentId":35,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":580685,"timestamp":135874248954,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778943846495,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":573122,"timestamp":135874262180,"id":71,"parentId":30,"tags":{},"startTime":1778943846508,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":587330,"timestamp":135874248050,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778943846494,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":573121,"timestamp":135874262602,"id":76,"parentId":36,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":586258,"timestamp":135874249511,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778943846496,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":582740,"timestamp":135874262658,"id":78,"parentId":38,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":595582,"timestamp":135874249876,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778943846496,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":589953,"timestamp":135874262675,"id":79,"parentId":39,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":602690,"timestamp":135874249984,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778943846496,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":592222,"timestamp":135874262637,"id":77,"parentId":37,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":605176,"timestamp":135874249728,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778943846496,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":593821,"timestamp":135874262453,"id":73,"parentId":33,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":607672,"timestamp":135874248665,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778943846495,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":595763,"timestamp":135874261999,"id":70,"parentId":29,"tags":{},"startTime":1778943846508,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":609934,"timestamp":135874247868,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778943846494,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":595929,"timestamp":135874262688,"id":80,"parentId":40,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":608537,"timestamp":135874250118,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778943846496,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":603142,"timestamp":135874262721,"id":82,"parentId":44,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":614960,"timestamp":135874250952,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778943846497,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":604615,"timestamp":135874261483,"id":67,"parentId":26,"tags":{},"startTime":1778943846508,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":618648,"timestamp":135874247486,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778943846494,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":608443,"timestamp":135874262751,"id":84,"parentId":46,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":620024,"timestamp":135874251226,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778943846497,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":610665,"timestamp":135874260750,"id":64,"parentId":21,"tags":{},"startTime":1778943846507,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":629174,"timestamp":135874242276,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778943846489,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":614656,"timestamp":135874262816,"id":87,"parentId":49,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":628639,"timestamp":135874253088,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778943846499,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":619077,"timestamp":135874262847,"id":89,"parentId":51,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":628672,"timestamp":135874253293,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778943846500,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":619312,"timestamp":135874262788,"id":85,"parentId":47,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":630771,"timestamp":135874251361,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778943846498,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":628592,"timestamp":135874262734,"id":83,"parentId":45,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":640279,"timestamp":135874251106,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778943846497,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":615589,"timestamp":135874276345,"id":91,"parentId":31,"tags":{},"startTime":1778943846523,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":643787,"timestamp":135874248194,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778943846494,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":618363,"timestamp":135874275048,"id":90,"parentId":24,"tags":{},"startTime":1778943846521,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":648932,"timestamp":135874244523,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778943846491,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":634179,"timestamp":135874262804,"id":86,"parentId":48,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":644163,"timestamp":135874252883,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778943846499,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":623538,"timestamp":135874278593,"id":93,"parentId":43,"tags":{},"startTime":1778943846525,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":651514,"timestamp":135874250659,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778943846497,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":651811,"timestamp":135874261707,"id":69,"parentId":28,"tags":{},"startTime":1778943846508,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":665822,"timestamp":135874247744,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778943846494,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":653285,"timestamp":135874262704,"id":81,"parentId":42,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":665548,"timestamp":135874250520,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778943846497,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":643627,"timestamp":135874277240,"id":92,"parentId":41,"tags":{},"startTime":1778943846524,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":670690,"timestamp":135874250223,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778943846496,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":680534,"timestamp":135874262832,"id":88,"parentId":50,"tags":{},"startTime":1778943846509,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":690234,"timestamp":135874253200,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778943846499,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":667761,"timestamp":135874284384,"id":100,"parentId":58,"tags":{},"startTime":1778943846531,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":696890,"timestamp":135874255372,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778943846502,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":678552,"timestamp":135874284521,"id":101,"parentId":59,"tags":{},"startTime":1778943846531,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":707545,"timestamp":135874255593,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778943846502,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":680203,"timestamp":135874284262,"id":94,"parentId":23,"tags":{},"startTime":1778943846531,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":720279,"timestamp":135874244256,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778943846491,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":680409,"timestamp":135874284291,"id":95,"parentId":52,"tags":{},"startTime":1778943846531,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":711026,"timestamp":135874253713,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778943846500,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":682824,"timestamp":135874284542,"id":102,"parentId":61,"tags":{},"startTime":1778943846531,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":711183,"timestamp":135874256240,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778943846503,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":685801,"timestamp":135874284309,"id":96,"parentId":53,"tags":{},"startTime":1778943846531,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":716270,"timestamp":135874253878,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778943846500,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":687449,"timestamp":135874284575,"id":104,"parentId":63,"tags":{},"startTime":1778943846531,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":715500,"timestamp":135874256563,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778943846503,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":679182,"timestamp":135874295593,"id":105,"parentId":60,"tags":{},"startTime":1778943846542,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":719039,"timestamp":135874255777,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778943846502,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":691258,"timestamp":135874284355,"id":98,"parentId":55,"tags":{},"startTime":1778943846531,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":721365,"timestamp":135874254287,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778943846501,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":666315,"timestamp":135874310600,"id":106,"parentId":57,"tags":{},"startTime":1778943846557,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":722196,"timestamp":135874254760,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778943846501,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":695030,"timestamp":135874284368,"id":99,"parentId":56,"tags":{},"startTime":1778943846531,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":724922,"timestamp":135874254515,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778943846501,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":695815,"timestamp":135874284559,"id":103,"parentId":62,"tags":{},"startTime":1778943846531,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":724004,"timestamp":135874256409,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778943846503,"traceId":"017e9669edf3c03f"},{"name":"is-page-static","duration":706205,"timestamp":135874284339,"id":97,"parentId":54,"tags":{},"startTime":1778943846531,"traceId":"017e9669edf3c03f"},{"name":"check-page","duration":736508,"timestamp":135874254069,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778943846500,"traceId":"017e9669edf3c03f"},{"name":"static-check","duration":751399,"timestamp":135874239227,"id":19,"parentId":1,"tags":{},"startTime":1778943846486,"traceId":"017e9669edf3c03f"}]
2
+ [{"name":"write-routes-manifest","duration":599,"timestamp":135875001185,"id":108,"parentId":1,"tags":{},"startTime":1778943847247,"traceId":"017e9669edf3c03f"},{"name":"load-dotenv","duration":47,"timestamp":135875013742,"id":111,"parentId":110,"tags":{},"startTime":1778943847260,"traceId":"017e9669edf3c03f"},{"name":"run-export-path-map","duration":512,"timestamp":135875016417,"id":112,"parentId":110,"tags":{},"startTime":1778943847263,"traceId":"017e9669edf3c03f"},{"name":"next-export","duration":563734,"timestamp":135875011389,"id":110,"parentId":1,"tags":{},"startTime":1778943847258,"traceId":"017e9669edf3c03f"},{"name":"move-exported-app-not-found-","duration":574,"timestamp":135875578466,"id":113,"parentId":109,"tags":{},"startTime":1778943847825,"traceId":"017e9669edf3c03f"},{"name":"move-exported-app-global-error-","duration":456,"timestamp":135875579152,"id":114,"parentId":109,"tags":{},"startTime":1778943847825,"traceId":"017e9669edf3c03f"},{"name":"static-generation","duration":575806,"timestamp":135875005865,"id":109,"parentId":1,"tags":{},"startTime":1778943847252,"traceId":"017e9669edf3c03f"},{"name":"write-routes-manifest","duration":478,"timestamp":135875581930,"id":115,"parentId":1,"tags":{},"startTime":1778943847828,"traceId":"017e9669edf3c03f"},{"name":"print-tree-view","duration":3740,"timestamp":135875592960,"id":116,"parentId":1,"tags":{},"startTime":1778943847839,"traceId":"017e9669edf3c03f"},{"name":"write-route-bundle-stats","duration":15265,"timestamp":135875596726,"id":117,"parentId":1,"tags":{},"startTime":1778943847843,"traceId":"017e9669edf3c03f"},{"name":"telemetry-flush","duration":37808,"timestamp":135875612043,"id":118,"parentId":1,"tags":{},"startTime":1778943847858,"traceId":"017e9669edf3c03f"},{"name":"next-build","duration":16558278,"timestamp":135859091600,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778943831338,"traceId":"017e9669edf3c03f"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":6491619,"timestamp":135026734919,"id":14,"parentId":1,"tags":{},"startTime":1778942998981,"traceId":"c1d59d2b94fd225a"},{"name":"turbopack-build-events","duration":108,"timestamp":135027029440,"id":15,"parentId":1,"tags":{},"startTime":1778942999276,"traceId":"c1d59d2b94fd225a"},{"name":"run-typescript","duration":9645520,"timestamp":135033237840,"id":16,"parentId":1,"tags":{},"startTime":1778943005484,"traceId":"c1d59d2b94fd225a"},{"name":"static-check","duration":818979,"timestamp":135043039404,"id":19,"parentId":1,"tags":{},"startTime":1778943015286,"traceId":"c1d59d2b94fd225a"},{"name":"static-generation","duration":624089,"timestamp":135043876336,"id":109,"parentId":1,"tags":{},"startTime":1778943016123,"traceId":"c1d59d2b94fd225a"},{"name":"telemetry-flush","duration":21518,"timestamp":135044534643,"id":118,"parentId":1,"tags":{},"startTime":1778943016781,"traceId":"c1d59d2b94fd225a"},{"name":"next-build","duration":18063258,"timestamp":135026492953,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778942998739,"traceId":"c1d59d2b94fd225a"}]
1
+ [{"name":"run-turbopack","duration":5447667,"timestamp":135859318561,"id":14,"parentId":1,"tags":{},"startTime":1778943831565,"traceId":"017e9669edf3c03f"},{"name":"turbopack-build-events","duration":110,"timestamp":135859616611,"id":15,"parentId":1,"tags":{},"startTime":1778943831863,"traceId":"017e9669edf3c03f"},{"name":"run-typescript","duration":9289695,"timestamp":135864774858,"id":16,"parentId":1,"tags":{},"startTime":1778943837021,"traceId":"017e9669edf3c03f"},{"name":"static-check","duration":751399,"timestamp":135874239227,"id":19,"parentId":1,"tags":{},"startTime":1778943846486,"traceId":"017e9669edf3c03f"},{"name":"static-generation","duration":575806,"timestamp":135875005865,"id":109,"parentId":1,"tags":{},"startTime":1778943847252,"traceId":"017e9669edf3c03f"},{"name":"telemetry-flush","duration":37808,"timestamp":135875612043,"id":118,"parentId":1,"tags":{},"startTime":1778943847858,"traceId":"017e9669edf3c03f"},{"name":"next-build","duration":16558278,"timestamp":135859091600,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778943831338,"traceId":"017e9669edf3c03f"}]
@@ -3055,8 +3055,8 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
3055
3055
  const alpha = ageSec <= 30
3056
3056
  ? 1
3057
3057
  : ageSec <= 300
3058
- ? 1 - ((ageSec - 30) / 270) * 0.75
3059
- : 0.25;
3058
+ ? 1 - ((ageSec - 30) / 270) * 0.70 /* R358: floor 0.25 → 0.30 lift across 3 freshness scopes */
3059
+ : 0.30; /* R358: stale floor lifted 0.25 → 0.30 — 20% legibility bump while preserving fresh/stale ratio */
3060
3060
  // Cyan dark / teal light to match palette legendAccent.
3061
3061
  const dotColor = isLight
3062
3062
  ? `rgba(13, 148, 136, ${alpha.toFixed(2)})`
@@ -3073,7 +3073,28 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
3073
3073
  // color: dotColor — the lift only affects the trailing
3074
3074
  // literal "last {rel}" text.
3075
3075
  return (
3076
- <span className="text-gray-400">
3076
+ // Round 357 / Loop: active-links chip freshness
3077
+ // suffix wrapper picks up `tabular-nums` for digit
3078
+ // width-lock. Pre-R357 the literal "last {rel}"
3079
+ // text (e.g. "last 5s ago", "last 10s ago",
3080
+ // "last 1m ago") had natural-figure digits — the
3081
+ // freshness ticker updates every second, so the
3082
+ // 9→10 boundary on the seconds counter and the
3083
+ // 59→60s → 1m flip both jittered ~1-2 px of glyph
3084
+ // width which propagated through the chip-row's
3085
+ // inline-flex layout, nudging the freshness DOT
3086
+ // and the chip's left edge. Tabular-nums on the
3087
+ // wrapper applies to all descendant digits only
3088
+ // (letters render at natural widths) so the
3089
+ // ticker stays planted across every count cross.
3090
+ // Joins the R224-R232 info-density tabular-nums
3091
+ // sweep at the chip-row freshness scope. Pure
3092
+ // paint-level change, no geometry shift on rest.
3093
+ // The R342 text-gray-400 lift + R161 dot freshness
3094
+ // alpha ramp + R317 subordinate-text-lift family
3095
+ // all preserved. data-active-links-freshness-
3096
+ // wrapper attr exposes the wrapper for tests.
3097
+ <span className="text-gray-400 tabular-nums" data-active-links-freshness-wrapper>
3077
3098
  <span
3078
3099
  data-active-links-freshness-dot
3079
3100
  data-active-links-freshness-alpha={alpha.toFixed(2)}
@@ -6503,8 +6524,8 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
6503
6524
  const alpha = ageSec <= 30
6504
6525
  ? 1
6505
6526
  : ageSec <= 300
6506
- ? 1 - ((ageSec - 30) / 270) * 0.75
6507
- : 0.25;
6527
+ ? 1 - ((ageSec - 30) / 270) * 0.70 /* R358: floor 0.25 → 0.30 lift across 3 freshness scopes */
6528
+ : 0.30; /* R358: stale floor lifted 0.25 → 0.30 — 20% legibility bump while preserving fresh/stale ratio */
6508
6529
  // Dark cyan-400 / light teal-600 with alpha — same
6509
6530
  // palette as R161's chip bullet so the two scopes
6510
6531
  // visually align even side-by-side.
@@ -7000,8 +7021,8 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
7000
7021
  const alpha = ageSec <= 30
7001
7022
  ? 1
7002
7023
  : ageSec <= 300
7003
- ? 1 - ((ageSec - 30) / 270) * 0.75
7004
- : 0.25;
7024
+ ? 1 - ((ageSec - 30) / 270) * 0.70 /* R358: floor 0.25 → 0.30 lift across 3 freshness scopes */
7025
+ : 0.30; /* R358: stale floor lifted 0.25 → 0.30 — 20% legibility bump while preserving fresh/stale ratio */
7005
7026
  return (
7006
7027
  <circle
7007
7028
  cx={10}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network-dashboard",
3
- "version": "0.5.1-preview.17",
3
+ "version": "0.5.1-preview.19",
4
4
  "description": "Agent Network Dashboard — Web UI for managing AI Agent networks",
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -0,0 +1,92 @@
1
+ /* Round 358 verification: freshness-ramp stale floor lifted 0.25 →
2
+ * 0.30 across 3 coordinated scopes:
3
+ * - active-links chip dot (line ~3055)
4
+ * - recent-panel header count (line ~6524)
5
+ * - recent-row freshness pip (line ~7021)
6
+ *
7
+ * The ramp shape stays the same:
8
+ * 0-30s → 1.0 (fully fresh)
9
+ * 30-300s → smooth decay 1.0 → 0.30
10
+ * > 300s → 0.30 (stale floor)
11
+ *
12
+ * R358 polish: stale state becomes ~20 % more readable (0.30 / 0.25
13
+ * = 1.2x) while the fresh-vs-stale ratio stays strong (1.0 / 0.30 ≈
14
+ * 3.3× vs prior 4×). Joins the R317 subordinate-text-lift family
15
+ * at the freshness scope.
16
+ *
17
+ * Test approach: feed a STALE message (~ 600s ago, well past the 300s
18
+ * floor boundary) to the route mock, then read all 3 freshness-alpha
19
+ * data attrs. Each should be '0.30'.
20
+ *
21
+ * Contract:
22
+ * - Active-links chip dot data-active-links-freshness-alpha === '0.30'.
23
+ * - Recent-panel header count data-recent-panel-count-freshness-alpha
24
+ * === '0.30'.
25
+ * - Recent-row pip data-recent-row-freshness-alpha === '0.30'.
26
+ * - SVG fill colors include alpha 0.3 (rgba form).
27
+ */
28
+ import { chromium } from 'playwright';
29
+ import { readFileSync } from 'node:fs';
30
+
31
+ const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
32
+ const browser = await chromium.launch({ headless: true });
33
+ const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
34
+ await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
35
+ await ctx.addInitScript(() => {
36
+ try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
37
+ });
38
+ const fresh = new Date(Date.now() - 60 * 1000).toISOString();
39
+ await ctx.route('**/api/hub/status*', async (route) => {
40
+ const r = await route.fetch();
41
+ const b = await r.json();
42
+ const nid = (b.sessions || [])[0]?.network_id || 'default';
43
+ const mk = (alias) => ({
44
+ alias, status: 'working', model: 'claude-opus-4', runtime: 'claude-code-cli',
45
+ network_id: nid, project_dir: null,
46
+ created_at: fresh, updated_at: fresh, last_seen_at: fresh,
47
+ });
48
+ await route.fulfill({ response: r, json: { ...b, sessions: [ mk('a'), mk('b') ] } });
49
+ });
50
+
51
+ // STALE message: created_at ~ 600s ago + last_at ~ 600s ago.
52
+ const now = Date.now();
53
+ const staleIso = new Date(now - 600 * 1000).toISOString();
54
+ await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [
55
+ { id: 'm1', from_alias: 'a', to_alias: 'b', content: 'old ping',
56
+ network_id: 'default', created_at: staleIso, last_at: staleIso },
57
+ ] } }));
58
+ await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
59
+
60
+ const page = await ctx.newPage();
61
+ await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
62
+ await page.waitForSelector('[data-active-links-freshness-dot]', { timeout: 15000 });
63
+ await page.waitForSelector('[data-recent-panel-count-freshness-alpha]', { timeout: 5000 });
64
+ await page.waitForSelector('[data-recent-row-freshness-alpha]', { timeout: 5000 });
65
+ await page.waitForTimeout(400);
66
+
67
+ const probe = await page.evaluate(() => {
68
+ const dot = document.querySelector('[data-active-links-freshness-dot]');
69
+ const count = document.querySelector('[data-recent-panel-count-freshness-alpha]');
70
+ const pip = document.querySelector('[data-recent-row-freshness-alpha]');
71
+ return {
72
+ dotAlpha: dot?.getAttribute('data-active-links-freshness-alpha') ?? null,
73
+ countAlpha: count?.getAttribute('data-recent-panel-count-freshness-alpha') ?? null,
74
+ pipAlpha: pip?.getAttribute('data-recent-row-freshness-alpha') ?? null,
75
+ // The pip uses a static fill + a separate `opacity` SVG attr —
76
+ // probe that, not the fill colour.
77
+ pipOpacity: pip?.getAttribute('opacity') ?? null,
78
+ };
79
+ });
80
+
81
+ await browser.close();
82
+
83
+ const results = {
84
+ dot_alpha_0_30: probe.dotAlpha === '0.30',
85
+ count_alpha_0_30: probe.countAlpha === '0.30',
86
+ pip_alpha_0_30: probe.pipAlpha === '0.30',
87
+ pip_opacity_0_3: /^0\.3$|^0\.30$/.test(probe.pipOpacity || ''),
88
+ };
89
+ const ok = Object.values(results).every(Boolean);
90
+ console.log(`${ok ? '✅' : '❌'} freshness floor lift 0.25 → 0.30:`, JSON.stringify(results),
91
+ '\n probe:', probe);
92
+ process.exit(ok ? 0 : 1);
@@ -0,0 +1,88 @@
1
+ /* Round 357 verification: active-links chip freshness suffix wrapper
2
+ * picks up `tabular-nums` for digit width-lock. Pre-R357 the literal
3
+ * "last {rel}" text (e.g. "last 5s ago", "last 10s ago") had
4
+ * natural-figure digits — the ticker updates every second, so the
5
+ * 9→10 boundary on seconds and 59s→1m flip both jittered ~1-2 px of
6
+ * glyph width, propagating through the inline-flex chip row and
7
+ * nudging the freshness DOT + chip's left edge. Tabular-nums on the
8
+ * wrapper applies to all descendant digits (letters render at
9
+ * natural widths). Joins the R224-R232 info-density tabular-nums
10
+ * sweep at the chip-row freshness scope.
11
+ *
12
+ * Contract (cyber, fresh messages so the suffix renders):
13
+ * - Freshness wrapper element computed font-variant-numeric
14
+ * resolves to 'tabular-nums'.
15
+ * - data-active-links-freshness-wrapper attr present on the span.
16
+ * - The wrapper still carries text-gray-400 (R342) — invariant.
17
+ * - The freshness dot still has its color transition (R342) —
18
+ * invariant.
19
+ * - The active-links chip still mounts with the suffix child.
20
+ */
21
+ import { chromium } from 'playwright';
22
+ import { readFileSync } from 'node:fs';
23
+
24
+ const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
25
+ const browser = await chromium.launch({ headless: true });
26
+ const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
27
+ await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
28
+ await ctx.addInitScript(() => {
29
+ try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
30
+ });
31
+ const fresh = new Date(Date.now() - 60 * 1000).toISOString();
32
+ await ctx.route('**/api/hub/status*', async (route) => {
33
+ const r = await route.fetch();
34
+ const b = await r.json();
35
+ const nid = (b.sessions || [])[0]?.network_id || 'default';
36
+ const mk = (alias) => ({
37
+ alias, status: 'working', 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: [ mk('a'), mk('b'), mk('c') ] } });
42
+ });
43
+ // A fresh message so the active-links chip surfaces a suffix.
44
+ const now = Date.now();
45
+ await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [
46
+ { id: 'm1', from_alias: 'a', to_alias: 'b', content: 'ping',
47
+ network_id: 'default', created_at: new Date(now - 5000).toISOString() },
48
+ ] } }));
49
+ await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
50
+
51
+ const page = await ctx.newPage();
52
+ await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
53
+ await page.waitForSelector('[data-active-links-freshness-wrapper]', { timeout: 15000 });
54
+ await page.waitForTimeout(300);
55
+
56
+ const probe = await page.evaluate(() => {
57
+ const wrap = document.querySelector('[data-active-links-freshness-wrapper]');
58
+ const dot = wrap?.querySelector('[data-active-links-freshness-dot]');
59
+ const cs = wrap ? getComputedStyle(wrap) : null;
60
+ const dotCs = dot ? getComputedStyle(dot) : null;
61
+ return {
62
+ wrapperFontVariant: cs?.fontVariantNumeric ?? null,
63
+ wrapperColor: cs?.color ?? null,
64
+ wrapperCls: wrap?.getAttribute('class') ?? null,
65
+ wrapperText: wrap?.textContent ?? null,
66
+ dotPresent: !!dot,
67
+ dotTransition: dotCs?.transition ?? null,
68
+ dotColor: dotCs?.color ?? null,
69
+ };
70
+ });
71
+
72
+ await browser.close();
73
+
74
+ const hasTrans = (s, prop) =>
75
+ new RegExp(`${prop}\\s+\\d*\\.?\\d*s|${prop}\\s+\\d+ms`, 'i').test(s || '');
76
+
77
+ const results = {
78
+ tabular_nums: /tabular-nums/.test(probe.wrapperFontVariant || ''),
79
+ cls_has_text_gray: /text-gray-400/.test(probe.wrapperCls || ''), // R342
80
+ cls_has_tabular: /tabular-nums/.test(probe.wrapperCls || ''),
81
+ text_has_last: /last/.test(probe.wrapperText || ''),
82
+ dot_present: probe.dotPresent,
83
+ dot_has_color_trans: hasTrans(probe.dotTransition, 'color'), // R342
84
+ };
85
+ const ok = Object.values(results).every(Boolean);
86
+ console.log(`${ok ? '✅' : '❌'} freshness suffix tabular-nums:`, JSON.stringify(results),
87
+ '\n probe:', probe);
88
+ process.exit(ok ? 0 : 1);