@sleep2agi/agent-network-dashboard 0.5.1-preview.34 → 0.5.1-preview.36

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/{0.ts8ii8alr-1.js → 00byb1an1hvpa.js} +2 -2
  130. package/.next/static/chunks/{11c6.9m-ozmgt.js → 0g7hb2wtq8sw..js} +1 -1
  131. package/.next/static/chunks/{15jw2r~8eqpt6.js → 0lob4y8xn124t.js} +1 -1
  132. package/.next/trace +2 -2
  133. package/.next/trace-build +1 -1
  134. package/app/components/TopoGraph.tsx +45 -2
  135. package/package.json +1 -1
  136. package/scripts/topo-layout-toggle-radius-test.mjs +87 -0
  137. package/scripts/topo-pressure-bar-height-test.mjs +92 -0
  138. /package/.next/static/{Dd0r7WlqwB9Npj1kWYIAJ → NOYthCST7CRRj4DF_-DCk}/_buildManifest.js +0 -0
  139. /package/.next/static/{Dd0r7WlqwB9Npj1kWYIAJ → NOYthCST7CRRj4DF_-DCk}/_clientMiddlewareManifest.js +0 -0
  140. /package/.next/static/{Dd0r7WlqwB9Npj1kWYIAJ → NOYthCST7CRRj4DF_-DCk}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.33"],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.35"],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 +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.33"],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.35"],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]})]})]})]})}])}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":262,"timestamp":140406541195,"id":4,"parentId":1,"tags":{},"startTime":1778948378787,"traceId":"e91b96f321df6d44"},{"name":"load-custom-routes","duration":522,"timestamp":140406541625,"id":5,"parentId":1,"tags":{},"startTime":1778948378788,"traceId":"e91b96f321df6d44"},{"name":"create-dist-dir","duration":709,"timestamp":140406542190,"id":6,"parentId":1,"tags":{},"startTime":1778948378788,"traceId":"e91b96f321df6d44"},{"name":"clean","duration":36564,"timestamp":140406543582,"id":7,"parentId":1,"tags":{},"startTime":1778948378790,"traceId":"e91b96f321df6d44"},{"name":"discover-routes","duration":12422,"timestamp":140406668102,"id":8,"parentId":1,"tags":{},"startTime":1778948378914,"traceId":"e91b96f321df6d44"},{"name":"create-root-mapping","duration":126,"timestamp":140406680595,"id":9,"parentId":1,"tags":{},"startTime":1778948378927,"traceId":"e91b96f321df6d44"},{"name":"generate-route-types","duration":40077,"timestamp":140406683744,"id":10,"parentId":1,"tags":{},"startTime":1778948378930,"traceId":"e91b96f321df6d44"},{"name":"public-dir-conflict-check","duration":180,"timestamp":140406723963,"id":11,"parentId":1,"tags":{},"startTime":1778948378970,"traceId":"e91b96f321df6d44"},{"name":"generate-routes-manifest","duration":6741,"timestamp":140406724335,"id":12,"parentId":1,"tags":{},"startTime":1778948378971,"traceId":"e91b96f321df6d44"},{"name":"run-turbopack","duration":6066733,"timestamp":140406736535,"id":14,"parentId":1,"tags":{},"startTime":1778948378983,"traceId":"e91b96f321df6d44"},{"name":"turbopack-build-events","duration":147,"timestamp":140407062951,"id":15,"parentId":1,"tags":{},"startTime":1778948379309,"traceId":"e91b96f321df6d44"},{"name":"run-typescript","duration":9579325,"timestamp":140412816708,"id":16,"parentId":1,"tags":{},"startTime":1778948385063,"traceId":"e91b96f321df6d44"},{"name":"generate-required-server-files","duration":2885,"timestamp":140422397206,"id":18,"parentId":1,"tags":{},"startTime":1778948394643,"traceId":"e91b96f321df6d44"},{"name":"check-static-error-page","duration":16266,"timestamp":140422591159,"id":20,"parentId":19,"tags":{},"startTime":1778948394837,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":513787,"timestamp":140422611412,"id":65,"parentId":22,"tags":{},"startTime":1778948394858,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":530984,"timestamp":140422594373,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778948394841,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":542450,"timestamp":140422612161,"id":70,"parentId":29,"tags":{},"startTime":1778948394858,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":556483,"timestamp":140422598224,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778948394844,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":565118,"timestamp":140422611566,"id":66,"parentId":25,"tags":{},"startTime":1778948394858,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":579107,"timestamp":140422597655,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778948394844,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":570734,"timestamp":140422612549,"id":73,"parentId":33,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":584419,"timestamp":140422598928,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778948394845,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":597977,"timestamp":140422612369,"id":72,"parentId":32,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":611632,"timestamp":140422598797,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778948394845,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":613545,"timestamp":140422612655,"id":75,"parentId":35,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":627109,"timestamp":140422599179,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778948394845,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":619953,"timestamp":140422609846,"id":64,"parentId":21,"tags":{},"startTime":1778948394856,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":637151,"timestamp":140422592762,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778948394839,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":617945,"timestamp":140422612675,"id":76,"parentId":36,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":630987,"timestamp":140422599682,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778948394846,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":622154,"timestamp":140422612714,"id":78,"parentId":38,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":634890,"timestamp":140422600038,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778948394846,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":629858,"timestamp":140422612626,"id":74,"parentId":34,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":643485,"timestamp":140422599060,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778948394845,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":630347,"timestamp":140422612731,"id":79,"parentId":39,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":642932,"timestamp":140422600187,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778948394846,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":643169,"timestamp":140422612755,"id":81,"parentId":42,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":655363,"timestamp":140422600656,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778948394847,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":650088,"timestamp":140422611882,"id":69,"parentId":28,"tags":{},"startTime":1778948394858,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":663936,"timestamp":140422598107,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778948394844,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":649553,"timestamp":140422612767,"id":82,"parentId":44,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":661241,"timestamp":140422601119,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778948394847,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":650617,"timestamp":140422612745,"id":80,"parentId":40,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":663110,"timestamp":140422600294,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778948394847,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":655151,"timestamp":140422612802,"id":85,"parentId":47,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":666529,"timestamp":140422601464,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778948394848,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":658405,"timestamp":140422612789,"id":84,"parentId":46,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":669891,"timestamp":140422601350,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778948394848,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":663898,"timestamp":140422612818,"id":86,"parentId":48,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":675176,"timestamp":140422601591,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778948394848,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":664626,"timestamp":140422612830,"id":87,"parentId":49,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":673866,"timestamp":140422603643,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778948394850,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":673544,"timestamp":140422612853,"id":89,"parentId":51,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":682394,"timestamp":140422604050,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778948394850,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":673779,"timestamp":140422612840,"id":88,"parentId":50,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":682727,"timestamp":140422603923,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778948394850,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":672103,"timestamp":140422621378,"id":91,"parentId":31,"tags":{},"startTime":1778948394868,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":695047,"timestamp":140422598499,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778948394845,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":681120,"timestamp":140422612780,"id":83,"parentId":45,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":692688,"timestamp":140422601253,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778948394848,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":678518,"timestamp":140422620204,"id":90,"parentId":24,"tags":{},"startTime":1778948394866,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":703820,"timestamp":140422594942,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778948394841,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":689560,"timestamp":140422611671,"id":67,"parentId":26,"tags":{},"startTime":1778948394858,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":703445,"timestamp":140422597830,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778948394844,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":699065,"timestamp":140422612307,"id":71,"parentId":30,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":713053,"timestamp":140422598372,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778948394845,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":703719,"timestamp":140422612699,"id":77,"parentId":37,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":716603,"timestamp":140422599865,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778948394846,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":687970,"timestamp":140422628666,"id":93,"parentId":43,"tags":{},"startTime":1778948394875,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":715868,"timestamp":140422600805,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778948394847,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":693792,"timestamp":140422627298,"id":92,"parentId":41,"tags":{},"startTime":1778948394874,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":720750,"timestamp":140422600389,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778948394847,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":715354,"timestamp":140422630964,"id":97,"parentId":54,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":741589,"timestamp":140422604797,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778948394851,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":730191,"timestamp":140422630907,"id":94,"parentId":23,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":766481,"timestamp":140422594695,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778948394841,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":730397,"timestamp":140422630998,"id":100,"parentId":58,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":755386,"timestamp":140422606050,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778948394852,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":752051,"timestamp":140422611775,"id":68,"parentId":27,"tags":{},"startTime":1778948394858,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":765941,"timestamp":140422597961,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778948394844,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":734571,"timestamp":140422631145,"id":101,"parentId":59,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":759500,"timestamp":140422606258,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778948394853,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":747441,"timestamp":140422631168,"id":102,"parentId":61,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":771798,"timestamp":140422606879,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778948394853,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":747644,"timestamp":140422631192,"id":104,"parentId":63,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":771684,"timestamp":140422607186,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778948394853,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":750172,"timestamp":140422630950,"id":96,"parentId":53,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":776520,"timestamp":140422604644,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778948394851,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":755495,"timestamp":140422630938,"id":95,"parentId":52,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":782009,"timestamp":140422604467,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778948394851,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":746888,"timestamp":140422641633,"id":105,"parentId":60,"tags":{},"startTime":1778948394888,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":782126,"timestamp":140422606433,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778948394853,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":735515,"timestamp":140422654176,"id":106,"parentId":57,"tags":{},"startTime":1778948394900,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":784269,"timestamp":140422605463,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778948394852,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":762985,"timestamp":140422630976,"id":98,"parentId":55,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":789003,"timestamp":140422604993,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778948394851,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":763361,"timestamp":140422630989,"id":99,"parentId":56,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":789151,"timestamp":140422605219,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778948394851,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":793176,"timestamp":140422631178,"id":103,"parentId":62,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":817357,"timestamp":140422607044,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778948394853,"traceId":"e91b96f321df6d44"},{"name":"static-check","duration":834480,"timestamp":140422589965,"id":19,"parentId":1,"tags":{},"startTime":1778948394836,"traceId":"e91b96f321df6d44"}]
2
- [{"name":"write-routes-manifest","duration":610,"timestamp":140423434803,"id":108,"parentId":1,"tags":{},"startTime":1778948395681,"traceId":"e91b96f321df6d44"},{"name":"load-dotenv","duration":63,"timestamp":140423450042,"id":111,"parentId":110,"tags":{},"startTime":1778948395696,"traceId":"e91b96f321df6d44"},{"name":"run-export-path-map","duration":767,"timestamp":140423453108,"id":112,"parentId":110,"tags":{},"startTime":1778948395699,"traceId":"e91b96f321df6d44"},{"name":"next-export","duration":577483,"timestamp":140423448165,"id":110,"parentId":1,"tags":{},"startTime":1778948395694,"traceId":"e91b96f321df6d44"},{"name":"move-exported-app-not-found-","duration":605,"timestamp":140424028758,"id":113,"parentId":109,"tags":{},"startTime":1778948396275,"traceId":"e91b96f321df6d44"},{"name":"move-exported-app-global-error-","duration":613,"timestamp":140424029530,"id":114,"parentId":109,"tags":{},"startTime":1778948396276,"traceId":"e91b96f321df6d44"},{"name":"static-generation","duration":591107,"timestamp":140423441419,"id":109,"parentId":1,"tags":{},"startTime":1778948395688,"traceId":"e91b96f321df6d44"},{"name":"write-routes-manifest","duration":523,"timestamp":140424032829,"id":115,"parentId":1,"tags":{},"startTime":1778948396279,"traceId":"e91b96f321df6d44"},{"name":"print-tree-view","duration":5828,"timestamp":140424040559,"id":116,"parentId":1,"tags":{},"startTime":1778948396287,"traceId":"e91b96f321df6d44"},{"name":"write-route-bundle-stats","duration":16851,"timestamp":140424046427,"id":117,"parentId":1,"tags":{},"startTime":1778948396293,"traceId":"e91b96f321df6d44"},{"name":"telemetry-flush","duration":54043,"timestamp":140424063312,"id":118,"parentId":1,"tags":{},"startTime":1778948396310,"traceId":"e91b96f321df6d44"},{"name":"next-build","duration":17634639,"timestamp":140406482765,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778948378729,"traceId":"e91b96f321df6d44"}]
1
+ [{"name":"generate-buildid","duration":255,"timestamp":141043139018,"id":4,"parentId":1,"tags":{},"startTime":1778949015385,"traceId":"d4f57e6ddd4ce403"},{"name":"load-custom-routes","duration":441,"timestamp":141043139423,"id":5,"parentId":1,"tags":{},"startTime":1778949015386,"traceId":"d4f57e6ddd4ce403"},{"name":"create-dist-dir","duration":699,"timestamp":141043139903,"id":6,"parentId":1,"tags":{},"startTime":1778949015386,"traceId":"d4f57e6ddd4ce403"},{"name":"clean","duration":32011,"timestamp":141043141250,"id":7,"parentId":1,"tags":{},"startTime":1778949015388,"traceId":"d4f57e6ddd4ce403"},{"name":"discover-routes","duration":12940,"timestamp":141043255755,"id":8,"parentId":1,"tags":{},"startTime":1778949015502,"traceId":"d4f57e6ddd4ce403"},{"name":"create-root-mapping","duration":136,"timestamp":141043268774,"id":9,"parentId":1,"tags":{},"startTime":1778949015515,"traceId":"d4f57e6ddd4ce403"},{"name":"generate-route-types","duration":40804,"timestamp":141043271622,"id":10,"parentId":1,"tags":{},"startTime":1778949015518,"traceId":"d4f57e6ddd4ce403"},{"name":"public-dir-conflict-check","duration":139,"timestamp":141043312537,"id":11,"parentId":1,"tags":{},"startTime":1778949015559,"traceId":"d4f57e6ddd4ce403"},{"name":"generate-routes-manifest","duration":6088,"timestamp":141043312839,"id":12,"parentId":1,"tags":{},"startTime":1778949015559,"traceId":"d4f57e6ddd4ce403"},{"name":"run-turbopack","duration":5998377,"timestamp":141043324752,"id":14,"parentId":1,"tags":{},"startTime":1778949015571,"traceId":"d4f57e6ddd4ce403"},{"name":"turbopack-build-events","duration":106,"timestamp":141043618650,"id":15,"parentId":1,"tags":{},"startTime":1778949015865,"traceId":"d4f57e6ddd4ce403"},{"name":"run-typescript","duration":9657003,"timestamp":141049334102,"id":16,"parentId":1,"tags":{},"startTime":1778949021580,"traceId":"d4f57e6ddd4ce403"},{"name":"generate-required-server-files","duration":3246,"timestamp":141058992557,"id":18,"parentId":1,"tags":{},"startTime":1778949031239,"traceId":"d4f57e6ddd4ce403"},{"name":"check-static-error-page","duration":13834,"timestamp":141059178605,"id":20,"parentId":19,"tags":{},"startTime":1778949031425,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":508896,"timestamp":141059195899,"id":65,"parentId":22,"tags":{},"startTime":1778949031442,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":523504,"timestamp":141059181451,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778949031428,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":567782,"timestamp":141059196342,"id":69,"parentId":28,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":579253,"timestamp":141059184969,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778949031431,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":574715,"timestamp":141059196826,"id":72,"parentId":32,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":585950,"timestamp":141059185674,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778949031432,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":582314,"timestamp":141059195618,"id":64,"parentId":21,"tags":{},"startTime":1778949031442,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":597982,"timestamp":141059180039,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778949031426,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":609546,"timestamp":141059196988,"id":73,"parentId":33,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":620818,"timestamp":141059185803,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778949031432,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":610264,"timestamp":141059196601,"id":70,"parentId":29,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":621819,"timestamp":141059185092,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778949031431,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":611331,"timestamp":141059195991,"id":66,"parentId":25,"tags":{},"startTime":1778949031442,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":622801,"timestamp":141059184575,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778949031431,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":612489,"timestamp":141059196230,"id":68,"parentId":27,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":623911,"timestamp":141059184857,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778949031431,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":617174,"timestamp":141059197170,"id":78,"parentId":38,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":627668,"timestamp":141059186734,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778949031433,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":626345,"timestamp":141059197115,"id":75,"parentId":35,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":637554,"timestamp":141059185965,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778949031432,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":637101,"timestamp":141059197134,"id":76,"parentId":36,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":647843,"timestamp":141059186459,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778949031433,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":637277,"timestamp":141059197194,"id":80,"parentId":40,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":647622,"timestamp":141059186892,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778949031433,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":644476,"timestamp":141059197215,"id":82,"parentId":44,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":654263,"timestamp":141059187482,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778949031434,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":647742,"timestamp":141059197229,"id":83,"parentId":45,"tags":{},"startTime":1778949031444,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":657493,"timestamp":141059187562,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778949031434,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":653535,"timestamp":141059197183,"id":79,"parentId":39,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":663942,"timestamp":141059186825,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778949031433,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":653688,"timestamp":141059197237,"id":84,"parentId":46,"tags":{},"startTime":1778949031444,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":663335,"timestamp":141059187626,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778949031434,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":655555,"timestamp":141059196126,"id":67,"parentId":26,"tags":{},"startTime":1778949031442,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":666992,"timestamp":141059184745,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778949031431,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":659672,"timestamp":141059197287,"id":87,"parentId":49,"tags":{},"startTime":1778949031444,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":667655,"timestamp":141059189358,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778949031436,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":661540,"timestamp":141059197276,"id":86,"parentId":48,"tags":{},"startTime":1778949031444,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":669658,"timestamp":141059189196,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778949031435,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":662050,"timestamp":141059197263,"id":85,"parentId":47,"tags":{},"startTime":1778949031444,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":671668,"timestamp":141059187695,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778949031434,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":664655,"timestamp":141059196761,"id":71,"parentId":30,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":676170,"timestamp":141059185292,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778949031432,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":665957,"timestamp":141059197202,"id":81,"parentId":42,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":676035,"timestamp":141059187179,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778949031433,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":670509,"timestamp":141059197155,"id":77,"parentId":37,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":681084,"timestamp":141059186624,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778949031433,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":661422,"timestamp":141059208662,"id":92,"parentId":41,"tags":{},"startTime":1778949031455,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":683178,"timestamp":141059186953,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778949031433,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":680719,"timestamp":141059197086,"id":74,"parentId":34,"tags":{},"startTime":1778949031443,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":691957,"timestamp":141059185888,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778949031432,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":680768,"timestamp":141059197306,"id":89,"parentId":51,"tags":{},"startTime":1778949031444,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":688619,"timestamp":141059189491,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778949031436,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":673801,"timestamp":141059205329,"id":90,"parentId":24,"tags":{},"startTime":1778949031452,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":697215,"timestamp":141059181961,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778949031428,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":671992,"timestamp":141059214171,"id":95,"parentId":52,"tags":{},"startTime":1778949031460,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":696362,"timestamp":141059189845,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778949031436,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":676337,"timestamp":141059210026,"id":93,"parentId":43,"tags":{},"startTime":1778949031456,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":699104,"timestamp":141059187287,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778949031434,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":685009,"timestamp":141059214211,"id":98,"parentId":55,"tags":{},"startTime":1778949031460,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":708877,"timestamp":141059190405,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778949031437,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":704415,"timestamp":141059197295,"id":88,"parentId":50,"tags":{},"startTime":1778949031444,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":712331,"timestamp":141059189427,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778949031436,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":703701,"timestamp":141059206507,"id":91,"parentId":31,"tags":{},"startTime":1778949031453,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":724891,"timestamp":141059185401,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778949031432,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":699183,"timestamp":141059214234,"id":100,"parentId":58,"tags":{},"startTime":1778949031461,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":722113,"timestamp":141059191369,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778949031438,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":714586,"timestamp":141059214405,"id":103,"parentId":62,"tags":{},"startTime":1778949031461,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":736936,"timestamp":141059192153,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778949031438,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":717381,"timestamp":141059214140,"id":94,"parentId":23,"tags":{},"startTime":1778949031460,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":749842,"timestamp":141059181730,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778949031428,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":723524,"timestamp":141059214198,"id":97,"parentId":54,"tags":{},"startTime":1778949031460,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":747599,"timestamp":141059190174,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778949031436,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":724159,"timestamp":141059214421,"id":104,"parentId":63,"tags":{},"startTime":1778949031461,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":746359,"timestamp":141059192263,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778949031439,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":711288,"timestamp":141059227842,"id":105,"parentId":60,"tags":{},"startTime":1778949031474,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":747441,"timestamp":141059191728,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778949031438,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":726020,"timestamp":141059214183,"id":96,"parentId":53,"tags":{},"startTime":1778949031460,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":750241,"timestamp":141059189994,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778949031436,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":700598,"timestamp":141059247501,"id":106,"parentId":57,"tags":{},"startTime":1778949031494,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":757304,"timestamp":141059190843,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778949031437,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":746265,"timestamp":141059214224,"id":99,"parentId":56,"tags":{},"startTime":1778949031460,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":769924,"timestamp":141059190615,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778949031437,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":763492,"timestamp":141059214394,"id":102,"parentId":61,"tags":{},"startTime":1778949031461,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":785908,"timestamp":141059192048,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778949031438,"traceId":"d4f57e6ddd4ce403"},{"name":"is-page-static","duration":768921,"timestamp":141059214370,"id":101,"parentId":59,"tags":{},"startTime":1778949031461,"traceId":"d4f57e6ddd4ce403"},{"name":"check-page","duration":791795,"timestamp":141059191562,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778949031438,"traceId":"d4f57e6ddd4ce403"},{"name":"static-check","duration":805815,"timestamp":141059177583,"id":19,"parentId":1,"tags":{},"startTime":1778949031424,"traceId":"d4f57e6ddd4ce403"}]
2
+ [{"name":"write-routes-manifest","duration":828,"timestamp":141059995864,"id":108,"parentId":1,"tags":{},"startTime":1778949032242,"traceId":"d4f57e6ddd4ce403"},{"name":"load-dotenv","duration":59,"timestamp":141060010260,"id":111,"parentId":110,"tags":{},"startTime":1778949032257,"traceId":"d4f57e6ddd4ce403"},{"name":"run-export-path-map","duration":578,"timestamp":141060013946,"id":112,"parentId":110,"tags":{},"startTime":1778949032260,"traceId":"d4f57e6ddd4ce403"},{"name":"next-export","duration":609798,"timestamp":141060008448,"id":110,"parentId":1,"tags":{},"startTime":1778949032255,"traceId":"d4f57e6ddd4ce403"},{"name":"move-exported-app-not-found-","duration":478,"timestamp":141060621071,"id":113,"parentId":109,"tags":{},"startTime":1778949032867,"traceId":"d4f57e6ddd4ce403"},{"name":"move-exported-app-global-error-","duration":356,"timestamp":141060621631,"id":114,"parentId":109,"tags":{},"startTime":1778949032868,"traceId":"d4f57e6ddd4ce403"},{"name":"static-generation","duration":622805,"timestamp":141060000987,"id":109,"parentId":1,"tags":{},"startTime":1778949032247,"traceId":"d4f57e6ddd4ce403"},{"name":"write-routes-manifest","duration":551,"timestamp":141060624042,"id":115,"parentId":1,"tags":{},"startTime":1778949032870,"traceId":"d4f57e6ddd4ce403"},{"name":"print-tree-view","duration":4007,"timestamp":141060642966,"id":116,"parentId":1,"tags":{},"startTime":1778949032889,"traceId":"d4f57e6ddd4ce403"},{"name":"write-route-bundle-stats","duration":11603,"timestamp":141060647028,"id":117,"parentId":1,"tags":{},"startTime":1778949032893,"traceId":"d4f57e6ddd4ce403"},{"name":"telemetry-flush","duration":22527,"timestamp":141060658658,"id":118,"parentId":1,"tags":{},"startTime":1778949032905,"traceId":"d4f57e6ddd4ce403"},{"name":"next-build","duration":17595316,"timestamp":141043085895,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778949015332,"traceId":"d4f57e6ddd4ce403"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":6066733,"timestamp":140406736535,"id":14,"parentId":1,"tags":{},"startTime":1778948378983,"traceId":"e91b96f321df6d44"},{"name":"turbopack-build-events","duration":147,"timestamp":140407062951,"id":15,"parentId":1,"tags":{},"startTime":1778948379309,"traceId":"e91b96f321df6d44"},{"name":"run-typescript","duration":9579325,"timestamp":140412816708,"id":16,"parentId":1,"tags":{},"startTime":1778948385063,"traceId":"e91b96f321df6d44"},{"name":"static-check","duration":834480,"timestamp":140422589965,"id":19,"parentId":1,"tags":{},"startTime":1778948394836,"traceId":"e91b96f321df6d44"},{"name":"static-generation","duration":591107,"timestamp":140423441419,"id":109,"parentId":1,"tags":{},"startTime":1778948395688,"traceId":"e91b96f321df6d44"},{"name":"telemetry-flush","duration":54043,"timestamp":140424063312,"id":118,"parentId":1,"tags":{},"startTime":1778948396310,"traceId":"e91b96f321df6d44"},{"name":"next-build","duration":17634639,"timestamp":140406482765,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778948378729,"traceId":"e91b96f321df6d44"}]
1
+ [{"name":"run-turbopack","duration":5998377,"timestamp":141043324752,"id":14,"parentId":1,"tags":{},"startTime":1778949015571,"traceId":"d4f57e6ddd4ce403"},{"name":"turbopack-build-events","duration":106,"timestamp":141043618650,"id":15,"parentId":1,"tags":{},"startTime":1778949015865,"traceId":"d4f57e6ddd4ce403"},{"name":"run-typescript","duration":9657003,"timestamp":141049334102,"id":16,"parentId":1,"tags":{},"startTime":1778949021580,"traceId":"d4f57e6ddd4ce403"},{"name":"static-check","duration":805815,"timestamp":141059177583,"id":19,"parentId":1,"tags":{},"startTime":1778949031424,"traceId":"d4f57e6ddd4ce403"},{"name":"static-generation","duration":622805,"timestamp":141060000987,"id":109,"parentId":1,"tags":{},"startTime":1778949032247,"traceId":"d4f57e6ddd4ce403"},{"name":"telemetry-flush","duration":22527,"timestamp":141060658658,"id":118,"parentId":1,"tags":{},"startTime":1778949032905,"traceId":"d4f57e6ddd4ce403"},{"name":"next-build","duration":17595316,"timestamp":141043085895,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778949015332,"traceId":"d4f57e6ddd4ce403"}]
@@ -1823,12 +1823,30 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
1823
1823
  while honoring R328's wider baseline rhythm. data-topo-
1824
1824
  chrome-layout-trailer attr unchanged — it still marks
1825
1825
  the boundary surface for the gap probe. */}
1826
+ {/* Round 375 / Loop: Layout-toggle wrapper rounded-md → rounded-
1827
+ lg (6 → 8 px). Extends the corner-radius cascade family
1828
+ to the chrome-strip layout-toggle wrapper:
1829
+ R330 canvas wrapper rounded-xl 12 px
1830
+ R331 SVG panels rx=10 10 px
1831
+ R332 minimap container rounded-lg 8 px
1832
+ R375 Layout-toggle wrapper rounded-lg 8 px (this round)
1833
+ Pre-R375 the wrapper at rounded-md (6 px) was the only
1834
+ chrome-strip container still using the smaller corner
1835
+ radius — both R330 outer wrapper and R332 minimap sit at
1836
+ ≥ 8 px, so the Layout toggle's 6 px stood out as a
1837
+ tighter corner against the family. R375 brings it into
1838
+ the rounded-lg tier where the minimap already lives.
1839
+ Pure paint change — overflow-hidden still clips the
1840
+ inner buttons' bg-cyan-500/15 tints; no layout shift.
1841
+ R268 border-color + 200ms transition + R329 mr-0.5 +
1842
+ data-topo-chrome-layout-trailer all preserved. */}
1826
1843
  <div
1827
- className="mr-0.5 inline-flex rounded-md border overflow-hidden"
1844
+ className="mr-0.5 inline-flex rounded-lg border overflow-hidden"
1828
1845
  style={{ borderColor: pal.containerBorder, transition: 'border-color 200ms ease-out' }}
1829
1846
  role="group"
1830
1847
  aria-label="Topology layout"
1831
1848
  data-topo-chrome-layout-trailer
1849
+ data-topo-chrome-layout-radius="rounded-lg"
1832
1850
  >
1833
1851
  <button
1834
1852
  onClick={() => { popChrome('layout-ring'); if (layout !== 'ring') toggleLayout(); }}
@@ -2277,7 +2295,32 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
2277
2295
  spans (chip-level font-medium R313). data-fleet-
2278
2296
  pressure-kicker attr exposes the kicker for tests. */}
2279
2297
  <span className="text-[10px] tracking-wide font-medium" data-fleet-pressure-kicker>pressure</span>
2280
- <span className="inline-flex h-1.5 w-16 rounded-full overflow-hidden" style={{ background: 'rgb(75 85 99 / 0.25)' }}>
2298
+ {/* Round 374 / Loop: pressure-bar height h-1.5 h-2
2299
+ (6 → 8 px) — sibling visual-weight bump (8th anchor
2300
+ in the family):
2301
+ R287 minimap viewport stroke 1 → 1.5
2302
+ R295 legend swatch base radius 5.5 → 6
2303
+ R359 recent-row pip base radius 1.6 → 1.8
2304
+ R360 hub digit fontSize 11 → 12
2305
+ R361 edge-badge digit fontSize 10 → 11
2306
+ R365 hub-highlight base radius 5 → 5.5
2307
+ R367 edge-badge rest stroke 1 → 1.25
2308
+ R374 pressure-bar height 1.5 → 2 (this round)
2309
+ +33 % bar height gives the working/idle/offline
2310
+ segments more visibility — at h-1.5 the 3-segment
2311
+ proportion bar was readable but slim; at h-2 the
2312
+ segments parse cleanly even when one tier is
2313
+ < 10 % share. Geometry-safe: items-center flex
2314
+ centers the bar inside the chip's py-1 (4 px top +
2315
+ 4 px bottom) — bar at 8 px stays comfortably
2316
+ inside the 10-px text-row height. R165 segment
2317
+ width transitions + R210 brightness hover + R83
2318
+ pin-mirror box-shadow on segments all preserved
2319
+ (segments inherit width from parent so the height
2320
+ bump propagates without segment-side edits).
2321
+ data-fleet-pressure-bar-height attr exposes the
2322
+ height token for tests. */}
2323
+ <span className="inline-flex h-2 w-16 rounded-full overflow-hidden" style={{ background: 'rgb(75 85 99 / 0.25)' }} data-fleet-pressure-bar-height="h-2">
2281
2324
  {seg(w, isLight ? '#059669' : '#22c55e', 'working', 'working')}
2282
2325
  {seg(i, isLight ? '#0d9488' : '#2dd4bf', 'idle', 'idle')}
2283
2326
  {seg(o, isLight ? '#94a3b8' : '#6b7280', 'offline', 'offline')}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network-dashboard",
3
- "version": "0.5.1-preview.34",
3
+ "version": "0.5.1-preview.36",
4
4
  "description": "Agent Network Dashboard — Web UI for managing AI Agent networks",
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -0,0 +1,87 @@
1
+ /* Round 375 verification: Layout-toggle wrapper rounded-md → rounded-
2
+ * lg (6 → 8 px). Extends the R330/R331/R332 corner-radius cascade to
3
+ * the chrome-strip layout-toggle wrapper. Pre-R375 the wrapper at
4
+ * rounded-md (6 px) was the only chrome-strip container still using
5
+ * the smaller corner radius — both R330 outer wrapper and R332
6
+ * minimap sit at ≥ 8 px; R375 brings the toggle into the rounded-lg
7
+ * tier where minimap already lives.
8
+ *
9
+ * Contract:
10
+ * - data-topo-chrome-layout-trailer element computed border-radius
11
+ * === '8px' (rounded-lg).
12
+ * - data-topo-chrome-layout-radius === 'rounded-lg'.
13
+ * - Pre-R375 invariants:
14
+ * * border still present (1 px default Tailwind)
15
+ * * R268 inline borderColor + 200ms border-color transition
16
+ * * R329 mr-0.5 spacing preserved
17
+ * * inline-flex + overflow-hidden preserved
18
+ * * Inner buttons (Ring + Grid) still mounted as flex children
19
+ */
20
+ import { chromium } from 'playwright';
21
+ import { readFileSync } from 'node:fs';
22
+
23
+ const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
24
+ const browser = await chromium.launch({ headless: true });
25
+ const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
26
+ await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
27
+ await ctx.addInitScript(() => {
28
+ try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
29
+ });
30
+ const fresh = new Date(Date.now() - 60 * 1000).toISOString();
31
+ await ctx.route('**/api/hub/status*', async (route) => {
32
+ const r = await route.fetch();
33
+ const b = await r.json();
34
+ const nid = (b.sessions || [])[0]?.network_id || 'default';
35
+ const mk = (alias) => ({
36
+ alias, status: 'working', model: 'claude-opus-4', runtime: 'claude-code-cli',
37
+ network_id: nid, project_dir: null,
38
+ created_at: fresh, updated_at: fresh, last_seen_at: fresh,
39
+ });
40
+ await route.fulfill({ response: r, json: { ...b, sessions: [ mk('a'), mk('b'), mk('c') ] } });
41
+ });
42
+ await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
43
+ await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
44
+
45
+ const page = await ctx.newPage();
46
+ await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
47
+ await page.waitForSelector('[data-topo-chrome-layout-trailer]', { timeout: 15000 });
48
+ await page.waitForTimeout(300);
49
+
50
+ const probe = await page.evaluate(() => {
51
+ const w = document.querySelector('[data-topo-chrome-layout-trailer]');
52
+ const cs = w ? getComputedStyle(w) : null;
53
+ const ring = w?.querySelector('[data-topo-chrome-layout="ring"]');
54
+ const grid = w?.querySelector('[data-topo-chrome-layout="grid"]');
55
+ return {
56
+ borderRadius: cs?.borderRadius ?? null,
57
+ radiusData: w?.getAttribute('data-topo-chrome-layout-radius') ?? null,
58
+ borderWidth: cs?.borderWidth ?? null,
59
+ display: cs?.display ?? null,
60
+ overflow: cs?.overflow ?? null,
61
+ transition: cs?.transition ?? null,
62
+ cls: w?.getAttribute('class') ?? null,
63
+ ringPresent: !!ring,
64
+ gridPresent: !!grid,
65
+ };
66
+ });
67
+
68
+ await browser.close();
69
+
70
+ const hasTrans = (s, prop) =>
71
+ new RegExp(`${prop}\\s+\\d*\\.?\\d*s|${prop}\\s+\\d+ms`, 'i').test(s || '');
72
+
73
+ const results = {
74
+ border_radius_8px: probe.borderRadius === '8px', // rounded-lg
75
+ data_radius_lg: probe.radiusData === 'rounded-lg',
76
+ border_width_1px: probe.borderWidth === '1px',
77
+ display_inline_flex: probe.display === 'inline-flex' || probe.display === 'flex',
78
+ overflow_hidden: probe.overflow === 'hidden',
79
+ trans_has_border_color: hasTrans(probe.transition, 'border-color'), // R268
80
+ cls_has_mr_0_5: /mr-0\.5/.test(probe.cls || ''), // R329
81
+ ring_button_present: probe.ringPresent,
82
+ grid_button_present: probe.gridPresent,
83
+ };
84
+ const ok = Object.values(results).every(Boolean);
85
+ console.log(`${ok ? '✅' : '❌'} Layout-toggle wrapper rounded-md → rounded-lg:`, JSON.stringify(results),
86
+ '\n probe:', probe);
87
+ process.exit(ok ? 0 : 1);
@@ -0,0 +1,92 @@
1
+ /* Round 374 verification: pressure-bar height h-1.5 → h-2 (6 → 8 px).
2
+ * Sibling visual-weight bump (8th canvas/HTML anchor in the family).
3
+ * +33 % bar height gives working/idle/offline segments more visibility.
4
+ *
5
+ * Geometry-safe: items-center flex centers the bar inside the chip's
6
+ * py-1 — bar at 8 px stays comfortably inside the 10-px text-row.
7
+ *
8
+ * Contract (cyber, fixture with mix):
9
+ * - Pressure bar wrapper computed height === '8px' (h-2).
10
+ * - data-fleet-pressure-bar-height === 'h-2'.
11
+ * - Pre-R374 invariants:
12
+ * * width still w-16 (64 px)
13
+ * * inline-flex display + rounded-full + overflow-hidden
14
+ * * background rgb(75 85 99 / 0.25)
15
+ * * Parent [data-fleet-pressure] chip className unchanged
16
+ * (font-mono + chip structure)
17
+ */
18
+ import { chromium } from 'playwright';
19
+ import { readFileSync } from 'node:fs';
20
+
21
+ const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
22
+ const browser = await chromium.launch({ headless: true });
23
+ const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
24
+ await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
25
+ await ctx.addInitScript(() => {
26
+ try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
27
+ });
28
+ const fresh = new Date(Date.now() - 60 * 1000).toISOString();
29
+ await ctx.route('**/api/hub/status*', async (route) => {
30
+ const r = await route.fetch();
31
+ const b = await r.json();
32
+ const nid = (b.sessions || [])[0]?.network_id || 'default';
33
+ const mk = (alias, status = 'working') => ({
34
+ alias, status, model: 'claude-opus-4', runtime: 'claude-code-cli',
35
+ network_id: nid, project_dir: null,
36
+ created_at: fresh, updated_at: fresh, last_seen_at: fresh,
37
+ });
38
+ // Mix so all 3 segments render.
39
+ await route.fulfill({ response: r, json: { ...b, sessions: [
40
+ mk('w1'), mk('w2'),
41
+ mk('i1', 'idle'), mk('i2', 'idle'),
42
+ mk('o1', 'offline'),
43
+ ] } });
44
+ });
45
+ await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
46
+ await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
47
+
48
+ const page = await ctx.newPage();
49
+ await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
50
+ await page.waitForSelector('[data-fleet-pressure-bar-height]', { timeout: 15000 });
51
+ await page.waitForTimeout(300);
52
+
53
+ const probe = await page.evaluate(() => {
54
+ const bar = document.querySelector('[data-fleet-pressure-bar-height]');
55
+ const cs = bar ? getComputedStyle(bar) : null;
56
+ const parent = document.querySelector('[data-fleet-pressure]');
57
+ // Count visible segments inside the bar.
58
+ const segs = bar ? Array.from(bar.querySelectorAll('[data-pressure-seg]')) : [];
59
+ return {
60
+ height: cs?.height ?? null,
61
+ width: cs?.width ?? null,
62
+ barHeightData: bar?.getAttribute('data-fleet-pressure-bar-height') ?? null,
63
+ display: cs?.display ?? null,
64
+ borderRadius: cs?.borderRadius ?? null,
65
+ overflow: cs?.overflow ?? null,
66
+ bgColor: cs?.backgroundColor ?? null,
67
+ parentMono: /font-mono/.test(parent?.getAttribute('class') || ''),
68
+ segCount: segs.length,
69
+ };
70
+ });
71
+
72
+ await browser.close();
73
+
74
+ const results = {
75
+ height_8px: probe.height === '8px', // h-2
76
+ width_64px: probe.width === '64px', // w-16
77
+ data_height_h_2: probe.barHeightData === 'h-2',
78
+ // Flex items get display blockified: inline-flex → flex when nested
79
+ // in flex container. Accept either.
80
+ display_inline_flex: probe.display === 'inline-flex' || probe.display === 'flex',
81
+ // Tailwind rounded-full is border-radius: 9999px, which browsers
82
+ // sometimes render as 3.35544e+07px (huge approximation). Accept any
83
+ // value indicating fully-rounded.
84
+ has_rounded_full: /9999|3\.355|e\+/.test(probe.borderRadius || ''),
85
+ overflow_hidden: probe.overflow === 'hidden',
86
+ parent_font_mono: probe.parentMono,
87
+ three_segments: probe.segCount === 3,
88
+ };
89
+ const ok = Object.values(results).every(Boolean);
90
+ console.log(`${ok ? '✅' : '❌'} pressure-bar height 1.5 → 2:`, JSON.stringify(results),
91
+ '\n probe:', probe);
92
+ process.exit(ok ? 0 : 1);