@sleep2agi/agent-network-dashboard 0.4.6-preview.224 → 0.4.6-preview.225

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 (142) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/diagnostics/route-bundle-stats.json +4 -4
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/prerender-manifest.json +3 -3
  6. package/.next/server/app/_global-error.html +1 -1
  7. package/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/.next/server/app/_not-found.html +1 -1
  14. package/.next/server/app/_not-found.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  20. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  21. package/.next/server/app/admin.html +1 -1
  22. package/.next/server/app/admin.rsc +1 -1
  23. package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
  24. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  25. package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
  26. package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
  27. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
  28. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  29. package/.next/server/app/index.html +2 -2
  30. package/.next/server/app/index.rsc +2 -2
  31. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  32. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  33. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  34. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  35. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  36. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  37. package/.next/server/app/login.html +2 -2
  38. package/.next/server/app/login.rsc +2 -2
  39. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  40. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  41. package/.next/server/app/login.segments/_index.segment.rsc +1 -1
  42. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  43. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  44. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  45. package/.next/server/app/logs.html +1 -1
  46. package/.next/server/app/logs.rsc +1 -1
  47. package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
  48. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  49. package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
  50. package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
  51. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  52. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  53. package/.next/server/app/messages.html +1 -1
  54. package/.next/server/app/messages.rsc +1 -1
  55. package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
  56. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  57. package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
  58. package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
  59. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
  60. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  61. package/.next/server/app/node.html +1 -1
  62. package/.next/server/app/node.rsc +1 -1
  63. package/.next/server/app/node.segments/_full.segment.rsc +1 -1
  64. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  65. package/.next/server/app/node.segments/_index.segment.rsc +1 -1
  66. package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
  67. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
  68. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  69. package/.next/server/app/nodes.html +1 -1
  70. package/.next/server/app/nodes.rsc +1 -1
  71. package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
  72. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  73. package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
  74. package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
  75. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
  76. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  77. package/.next/server/app/page_client-reference-manifest.js +1 -1
  78. package/.next/server/app/server-logs.html +1 -1
  79. package/.next/server/app/server-logs.rsc +1 -1
  80. package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
  81. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  82. package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
  83. package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
  84. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  85. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  86. package/.next/server/app/settings/networks.html +1 -1
  87. package/.next/server/app/settings/networks.rsc +1 -1
  88. package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
  89. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  90. package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
  91. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
  92. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  93. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  94. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  95. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  96. package/.next/server/app/settings/tokens.html +1 -1
  97. package/.next/server/app/settings/tokens.rsc +1 -1
  98. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
  99. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  100. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
  101. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
  102. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  103. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  104. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  105. package/.next/server/app/settings.html +2 -2
  106. package/.next/server/app/settings.rsc +2 -2
  107. package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  108. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  109. package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  110. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  111. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  112. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  113. package/.next/server/app/tasks.html +1 -1
  114. package/.next/server/app/tasks.rsc +1 -1
  115. package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
  116. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  117. package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
  118. package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
  119. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  120. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  121. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +1 -1
  122. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  123. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  124. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  125. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  126. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  127. package/.next/server/middleware-build-manifest.js +3 -3
  128. package/.next/server/pages/404.html +1 -1
  129. package/.next/server/pages/500.html +1 -1
  130. package/.next/server/server-reference-manifest.js +1 -1
  131. package/.next/server/server-reference-manifest.json +1 -1
  132. package/.next/static/chunks/{0~_50-h0v7ra1.js → 0-b_77iwk3bj~.js} +1 -1
  133. package/.next/static/chunks/{0q7hvzp9junvx.js → 0u85eg-k8d76u.js} +1 -1
  134. package/.next/static/chunks/{0rxb8pumv48ei.js → 0z.2gp7egi3st.js} +1 -1
  135. package/.next/trace +2 -2
  136. package/.next/trace-build +1 -1
  137. package/app/components/TopoGraph.tsx +23 -1
  138. package/package.json +1 -1
  139. package/scripts/topo-group-label-pin-spacing-test.mjs +136 -0
  140. /package/.next/static/{LF5PJWSnXfJBE6ptHAsyq → 2a-HdFagc-fVL8Qso1JWM}/_buildManifest.js +0 -0
  141. /package/.next/static/{LF5PJWSnXfJBE6ptHAsyq → 2a-HdFagc-fVL8Qso1JWM}/_clientMiddlewareManifest.js +0 -0
  142. /package/.next/static/{LF5PJWSnXfJBE6ptHAsyq → 2a-HdFagc-fVL8Qso1JWM}/_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.4.6-preview.224"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.6-preview.225"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":259,"timestamp":80731335131,"id":4,"parentId":1,"tags":{},"startTime":1778888703581,"traceId":"f3afcf4c3ea42392"},{"name":"load-custom-routes","duration":468,"timestamp":80731335524,"id":5,"parentId":1,"tags":{},"startTime":1778888703582,"traceId":"f3afcf4c3ea42392"},{"name":"create-dist-dir","duration":603,"timestamp":80731336050,"id":6,"parentId":1,"tags":{},"startTime":1778888703582,"traceId":"f3afcf4c3ea42392"},{"name":"clean","duration":447,"timestamp":80731337295,"id":7,"parentId":1,"tags":{},"startTime":1778888703584,"traceId":"f3afcf4c3ea42392"},{"name":"discover-routes","duration":8782,"timestamp":80731415332,"id":8,"parentId":1,"tags":{},"startTime":1778888703662,"traceId":"f3afcf4c3ea42392"},{"name":"create-root-mapping","duration":100,"timestamp":80731424167,"id":9,"parentId":1,"tags":{},"startTime":1778888703670,"traceId":"f3afcf4c3ea42392"},{"name":"generate-route-types","duration":29067,"timestamp":80731426496,"id":10,"parentId":1,"tags":{},"startTime":1778888703673,"traceId":"f3afcf4c3ea42392"},{"name":"public-dir-conflict-check","duration":95,"timestamp":80731455721,"id":11,"parentId":1,"tags":{},"startTime":1778888703702,"traceId":"f3afcf4c3ea42392"},{"name":"generate-routes-manifest","duration":4048,"timestamp":80731455931,"id":12,"parentId":1,"tags":{},"startTime":1778888703702,"traceId":"f3afcf4c3ea42392"},{"name":"run-turbopack","duration":5475386,"timestamp":80731465844,"id":14,"parentId":1,"tags":{},"startTime":1778888703712,"traceId":"f3afcf4c3ea42392"},{"name":"turbopack-build-events","duration":107,"timestamp":80731763757,"id":15,"parentId":1,"tags":{},"startTime":1778888704010,"traceId":"f3afcf4c3ea42392"},{"name":"run-typescript","duration":9074494,"timestamp":80736982970,"id":16,"parentId":1,"tags":{},"startTime":1778888709229,"traceId":"f3afcf4c3ea42392"},{"name":"generate-required-server-files","duration":2456,"timestamp":80746058978,"id":18,"parentId":1,"tags":{},"startTime":1778888718305,"traceId":"f3afcf4c3ea42392"},{"name":"check-static-error-page","duration":14703,"timestamp":80746231255,"id":20,"parentId":19,"tags":{},"startTime":1778888718478,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":461524,"timestamp":80746248897,"id":63,"parentId":22,"tags":{},"startTime":1778888718495,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":476161,"timestamp":80746234474,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778888718481,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":500432,"timestamp":80746251060,"id":68,"parentId":29,"tags":{},"startTime":1778888718497,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":513431,"timestamp":80746238141,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778888718484,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":520821,"timestamp":80746249035,"id":64,"parentId":25,"tags":{},"startTime":1778888718495,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":532361,"timestamp":80746237573,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778888718484,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":518776,"timestamp":80746251364,"id":70,"parentId":32,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":531535,"timestamp":80746238641,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778888718485,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":536731,"timestamp":80746251498,"id":72,"parentId":34,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":549431,"timestamp":80746238870,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778888718485,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":544566,"timestamp":80746251526,"id":73,"parentId":35,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":557175,"timestamp":80746238979,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778888718485,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":545690,"timestamp":80746251649,"id":74,"parentId":36,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":557904,"timestamp":80746239482,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778888718486,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":550682,"timestamp":80746249251,"id":66,"parentId":27,"tags":{},"startTime":1778888718496,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":562156,"timestamp":80746237881,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778888718484,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":550234,"timestamp":80746251678,"id":75,"parentId":37,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":562280,"timestamp":80746239677,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778888718486,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":554399,"timestamp":80746251709,"id":77,"parentId":39,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":566236,"timestamp":80746239913,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778888718486,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":554620,"timestamp":80746251692,"id":76,"parentId":38,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":566526,"timestamp":80746239817,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778888718486,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":559245,"timestamp":80746251719,"id":78,"parentId":40,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":570969,"timestamp":80746240057,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778888718486,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":562530,"timestamp":80746250864,"id":67,"parentId":28,"tags":{},"startTime":1778888718497,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":575421,"timestamp":80746238022,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778888718484,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":563909,"timestamp":80746251740,"id":80,"parentId":42,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":575426,"timestamp":80746240267,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778888718487,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":566495,"timestamp":80746251750,"id":81,"parentId":43,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":577916,"timestamp":80746240370,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778888718487,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":566992,"timestamp":80746251426,"id":71,"parentId":33,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":579684,"timestamp":80746238761,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778888718485,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":570765,"timestamp":80746248495,"id":62,"parentId":21,"tags":{},"startTime":1778888718495,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":586437,"timestamp":80746232874,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778888718479,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":570748,"timestamp":80746251760,"id":82,"parentId":44,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":582069,"timestamp":80746240472,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778888718487,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":569472,"timestamp":80746253197,"id":86,"parentId":48,"tags":{},"startTime":1778888718499,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":581784,"timestamp":80746240906,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778888718487,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":573142,"timestamp":80746251194,"id":69,"parentId":30,"tags":{},"startTime":1778888718497,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":586104,"timestamp":80746238277,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778888718485,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":572833,"timestamp":80746253207,"id":87,"parentId":49,"tags":{},"startTime":1778888718499,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":585081,"timestamp":80746240998,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778888718487,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":569449,"timestamp":80746259644,"id":89,"parentId":31,"tags":{},"startTime":1778888718506,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":590738,"timestamp":80746238388,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778888718485,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":583092,"timestamp":80746251781,"id":84,"parentId":46,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":594231,"timestamp":80746240680,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778888718487,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":601529,"timestamp":80746251730,"id":79,"parentId":41,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":613157,"timestamp":80746240156,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778888718486,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":604331,"timestamp":80746249151,"id":65,"parentId":26,"tags":{},"startTime":1778888718495,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":615752,"timestamp":80746237766,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778888718484,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":598278,"timestamp":80746256426,"id":88,"parentId":24,"tags":{},"startTime":1778888718503,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":619765,"timestamp":80746234992,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778888718481,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":604390,"timestamp":80746251771,"id":83,"parentId":45,"tags":{},"startTime":1778888718498,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":615633,"timestamp":80746240571,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778888718487,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":620787,"timestamp":80746261869,"id":90,"parentId":23,"tags":{},"startTime":1778888718508,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":647975,"timestamp":80746234761,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778888718481,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":635520,"timestamp":80746261894,"id":91,"parentId":50,"tags":{},"startTime":1778888718508,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":654527,"timestamp":80746242955,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778888718489,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":637938,"timestamp":80746261957,"id":96,"parentId":56,"tags":{},"startTime":1778888718508,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":655341,"timestamp":80746244626,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778888718491,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":642823,"timestamp":80746261968,"id":97,"parentId":57,"tags":{},"startTime":1778888718508,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":660014,"timestamp":80746244837,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778888718491,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":652258,"timestamp":80746261977,"id":98,"parentId":59,"tags":{},"startTime":1778888718508,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":668863,"timestamp":80746245440,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778888718492,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":657272,"timestamp":80746261993,"id":99,"parentId":60,"tags":{},"startTime":1778888718508,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":673775,"timestamp":80746245572,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778888718492,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":659617,"timestamp":80746262023,"id":100,"parentId":61,"tags":{},"startTime":1778888718508,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":675979,"timestamp":80746245721,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778888718492,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":648922,"timestamp":80746278143,"id":101,"parentId":58,"tags":{},"startTime":1778888718524,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":682075,"timestamp":80746245036,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778888718491,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":627024,"timestamp":80746301475,"id":102,"parentId":55,"tags":{},"startTime":1778888718548,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":684490,"timestamp":80746244054,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778888718490,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":677316,"timestamp":80746253160,"id":85,"parentId":47,"tags":{},"startTime":1778888718499,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":689720,"timestamp":80746240810,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778888718487,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":669921,"timestamp":80746261944,"id":95,"parentId":54,"tags":{},"startTime":1778888718508,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":688104,"timestamp":80746243795,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778888718490,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":673418,"timestamp":80746261932,"id":94,"parentId":53,"tags":{},"startTime":1778888718508,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":691805,"timestamp":80746243575,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778888718490,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":676764,"timestamp":80746261922,"id":93,"parentId":52,"tags":{},"startTime":1778888718508,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":695339,"timestamp":80746243384,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778888718490,"traceId":"f3afcf4c3ea42392"},{"name":"is-page-static","duration":686205,"timestamp":80746261909,"id":92,"parentId":51,"tags":{},"startTime":1778888718508,"traceId":"f3afcf4c3ea42392"},{"name":"check-page","duration":704943,"timestamp":80746243205,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778888718489,"traceId":"f3afcf4c3ea42392"},{"name":"static-check","duration":718088,"timestamp":80746230093,"id":19,"parentId":1,"tags":{},"startTime":1778888718476,"traceId":"f3afcf4c3ea42392"},{"name":"write-routes-manifest","duration":401,"timestamp":80746955512,"id":104,"parentId":1,"tags":{},"startTime":1778888719202,"traceId":"f3afcf4c3ea42392"},{"name":"load-dotenv","duration":65,"timestamp":80746965981,"id":107,"parentId":106,"tags":{},"startTime":1778888719212,"traceId":"f3afcf4c3ea42392"},{"name":"run-export-path-map","duration":569,"timestamp":80746969418,"id":108,"parentId":106,"tags":{},"startTime":1778888719216,"traceId":"f3afcf4c3ea42392"},{"name":"next-export","duration":604349,"timestamp":80746964810,"id":106,"parentId":1,"tags":{},"startTime":1778888719211,"traceId":"f3afcf4c3ea42392"}]
2
- [{"name":"move-exported-app-not-found-","duration":2254,"timestamp":80747572463,"id":109,"parentId":105,"tags":{},"startTime":1778888719819,"traceId":"f3afcf4c3ea42392"},{"name":"move-exported-app-global-error-","duration":1058,"timestamp":80747574816,"id":110,"parentId":105,"tags":{},"startTime":1778888719821,"traceId":"f3afcf4c3ea42392"},{"name":"static-generation","duration":618059,"timestamp":80746959746,"id":105,"parentId":1,"tags":{},"startTime":1778888719206,"traceId":"f3afcf4c3ea42392"},{"name":"write-routes-manifest","duration":499,"timestamp":80747578080,"id":111,"parentId":1,"tags":{},"startTime":1778888719824,"traceId":"f3afcf4c3ea42392"},{"name":"print-tree-view","duration":4050,"timestamp":80747592609,"id":112,"parentId":1,"tags":{},"startTime":1778888719839,"traceId":"f3afcf4c3ea42392"},{"name":"write-route-bundle-stats","duration":13068,"timestamp":80747596686,"id":113,"parentId":1,"tags":{},"startTime":1778888719843,"traceId":"f3afcf4c3ea42392"},{"name":"telemetry-flush","duration":28657,"timestamp":80747609781,"id":114,"parentId":1,"tags":{},"startTime":1778888719856,"traceId":"f3afcf4c3ea42392"},{"name":"next-build","duration":16356779,"timestamp":80731281685,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778888703528,"traceId":"f3afcf4c3ea42392"}]
1
+ [{"name":"generate-buildid","duration":376,"timestamp":81088973800,"id":4,"parentId":1,"tags":{},"startTime":1778889061220,"traceId":"5261e710caf6ef2e"},{"name":"load-custom-routes","duration":612,"timestamp":81088974379,"id":5,"parentId":1,"tags":{},"startTime":1778889061221,"traceId":"5261e710caf6ef2e"},{"name":"create-dist-dir","duration":851,"timestamp":81088975071,"id":6,"parentId":1,"tags":{},"startTime":1778889061221,"traceId":"5261e710caf6ef2e"},{"name":"clean","duration":604,"timestamp":81088976754,"id":7,"parentId":1,"tags":{},"startTime":1778889061223,"traceId":"5261e710caf6ef2e"},{"name":"discover-routes","duration":8885,"timestamp":81089067942,"id":8,"parentId":1,"tags":{},"startTime":1778889061314,"traceId":"5261e710caf6ef2e"},{"name":"create-root-mapping","duration":103,"timestamp":81089076884,"id":9,"parentId":1,"tags":{},"startTime":1778889061323,"traceId":"5261e710caf6ef2e"},{"name":"generate-route-types","duration":39571,"timestamp":81089079224,"id":10,"parentId":1,"tags":{},"startTime":1778889061326,"traceId":"5261e710caf6ef2e"},{"name":"public-dir-conflict-check","duration":121,"timestamp":81089118955,"id":11,"parentId":1,"tags":{},"startTime":1778889061365,"traceId":"5261e710caf6ef2e"},{"name":"generate-routes-manifest","duration":5248,"timestamp":81089119195,"id":12,"parentId":1,"tags":{},"startTime":1778889061365,"traceId":"5261e710caf6ef2e"},{"name":"run-turbopack","duration":6357320,"timestamp":81089129871,"id":14,"parentId":1,"tags":{},"startTime":1778889061376,"traceId":"5261e710caf6ef2e"},{"name":"turbopack-build-events","duration":106,"timestamp":81089428641,"id":15,"parentId":1,"tags":{},"startTime":1778889061675,"traceId":"5261e710caf6ef2e"},{"name":"run-typescript","duration":9573461,"timestamp":81095500457,"id":16,"parentId":1,"tags":{},"startTime":1778889067747,"traceId":"5261e710caf6ef2e"},{"name":"generate-required-server-files","duration":2512,"timestamp":81105075102,"id":18,"parentId":1,"tags":{},"startTime":1778889077321,"traceId":"5261e710caf6ef2e"},{"name":"check-static-error-page","duration":13170,"timestamp":81105230270,"id":20,"parentId":19,"tags":{},"startTime":1778889077477,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":602721,"timestamp":81105246678,"id":65,"parentId":26,"tags":{},"startTime":1778889077493,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":614605,"timestamp":81105235420,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778889077482,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":607567,"timestamp":81105248383,"id":69,"parentId":30,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":620129,"timestamp":81105235909,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778889077482,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":625990,"timestamp":81105248572,"id":70,"parentId":32,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":638338,"timestamp":81105236295,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778889077483,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":632642,"timestamp":81105246049,"id":62,"parentId":21,"tags":{},"startTime":1778889077492,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":647400,"timestamp":81105231358,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778889077478,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":632168,"timestamp":81105248640,"id":71,"parentId":33,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":644453,"timestamp":81105236416,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778889077483,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":639968,"timestamp":81105247748,"id":66,"parentId":27,"tags":{},"startTime":1778889077494,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":652309,"timestamp":81105235548,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778889077482,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":641642,"timestamp":81105246434,"id":63,"parentId":22,"tags":{},"startTime":1778889077493,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":655636,"timestamp":81105232482,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778889077479,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":643472,"timestamp":81105248754,"id":73,"parentId":35,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":655579,"timestamp":81105236692,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778889077483,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":649097,"timestamp":81105248930,"id":76,"parentId":38,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":660527,"timestamp":81105237561,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778889077484,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":654873,"timestamp":81105248939,"id":77,"parentId":39,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":666196,"timestamp":81105237661,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778889077484,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":670419,"timestamp":81105248874,"id":74,"parentId":36,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":682124,"timestamp":81105237221,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778889077483,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":672941,"timestamp":81105248953,"id":78,"parentId":40,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":684196,"timestamp":81105237755,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778889077484,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":674917,"timestamp":81105248033,"id":67,"parentId":28,"tags":{},"startTime":1778889077494,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":687356,"timestamp":81105235667,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778889077482,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":678533,"timestamp":81105248979,"id":80,"parentId":42,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":689616,"timestamp":81105237951,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778889077484,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":679538,"timestamp":81105248216,"id":68,"parentId":29,"tags":{},"startTime":1778889077494,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":692016,"timestamp":81105235775,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778889077482,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":679173,"timestamp":81105248988,"id":81,"parentId":43,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":690122,"timestamp":81105238078,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778889077484,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":683326,"timestamp":81105248966,"id":79,"parentId":41,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":694491,"timestamp":81105237847,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778889077484,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":689373,"timestamp":81105249019,"id":82,"parentId":44,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":700270,"timestamp":81105238167,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778889077484,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":701268,"timestamp":81105249055,"id":85,"parentId":47,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":711931,"timestamp":81105238452,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778889077485,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":708136,"timestamp":81105249033,"id":83,"parentId":45,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":718970,"timestamp":81105238259,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778889077485,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":708349,"timestamp":81105249078,"id":87,"parentId":49,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":717147,"timestamp":81105240336,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778889077487,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":712133,"timestamp":81105249066,"id":86,"parentId":48,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":721005,"timestamp":81105240238,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778889077487,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":699056,"timestamp":81105263098,"id":89,"parentId":31,"tags":{},"startTime":1778889077509,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":726164,"timestamp":81105236038,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778889077482,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":713540,"timestamp":81105249042,"id":84,"parentId":46,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":724285,"timestamp":81105238340,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778889077485,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":725911,"timestamp":81105246596,"id":64,"parentId":25,"tags":{},"startTime":1778889077493,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":737300,"timestamp":81105235262,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778889077482,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":718360,"timestamp":81105257525,"id":88,"parentId":24,"tags":{},"startTime":1778889077504,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":743077,"timestamp":81105232867,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778889077479,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":776212,"timestamp":81105248721,"id":72,"parentId":34,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":788493,"timestamp":81105236557,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778889077483,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":756782,"timestamp":81105278913,"id":95,"parentId":54,"tags":{},"startTime":1778889077525,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":794431,"timestamp":81105241334,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778889077488,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":761867,"timestamp":81105278873,"id":92,"parentId":51,"tags":{},"startTime":1778889077525,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":799971,"timestamp":81105240833,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778889077487,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":765616,"timestamp":81105278926,"id":96,"parentId":56,"tags":{},"startTime":1778889077525,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":802567,"timestamp":81105242036,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778889077488,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":770557,"timestamp":81105278819,"id":90,"parentId":23,"tags":{},"startTime":1778889077525,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":816735,"timestamp":81105232688,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778889077479,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":770662,"timestamp":81105278900,"id":94,"parentId":53,"tags":{},"startTime":1778889077525,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":808441,"timestamp":81105241160,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778889077487,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":776996,"timestamp":81105278936,"id":97,"parentId":57,"tags":{},"startTime":1778889077525,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":813792,"timestamp":81105242234,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778889077489,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":783086,"timestamp":81105278983,"id":100,"parentId":61,"tags":{},"startTime":1778889077525,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":818954,"timestamp":81105243176,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778889077489,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":783292,"timestamp":81105278951,"id":98,"parentId":59,"tags":{},"startTime":1778889077525,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":819414,"timestamp":81105242853,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778889077489,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":785288,"timestamp":81105278992,"id":101,"parentId":55,"tags":{},"startTime":1778889077525,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":822774,"timestamp":81105241544,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778889077488,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":773256,"timestamp":81105292285,"id":102,"parentId":58,"tags":{},"startTime":1778889077539,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":823183,"timestamp":81105242405,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778889077489,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":819884,"timestamp":81105248910,"id":75,"parentId":37,"tags":{},"startTime":1778889077495,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":831421,"timestamp":81105237413,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778889077484,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":794944,"timestamp":81105278968,"id":99,"parentId":60,"tags":{},"startTime":1778889077525,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":830946,"timestamp":81105243019,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778889077489,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":797844,"timestamp":81105278858,"id":91,"parentId":50,"tags":{},"startTime":1778889077525,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":836054,"timestamp":81105240694,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778889077487,"traceId":"5261e710caf6ef2e"},{"name":"is-page-static","duration":803839,"timestamp":81105278890,"id":93,"parentId":52,"tags":{},"startTime":1778889077525,"traceId":"5261e710caf6ef2e"},{"name":"check-page","duration":841802,"timestamp":81105240964,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778889077487,"traceId":"5261e710caf6ef2e"},{"name":"static-check","duration":853343,"timestamp":81105229463,"id":19,"parentId":1,"tags":{},"startTime":1778889077476,"traceId":"5261e710caf6ef2e"},{"name":"write-routes-manifest","duration":480,"timestamp":81106090197,"id":104,"parentId":1,"tags":{},"startTime":1778889078336,"traceId":"5261e710caf6ef2e"},{"name":"load-dotenv","duration":64,"timestamp":81106105878,"id":107,"parentId":106,"tags":{},"startTime":1778889078352,"traceId":"5261e710caf6ef2e"},{"name":"run-export-path-map","duration":647,"timestamp":81106110403,"id":108,"parentId":106,"tags":{},"startTime":1778889078357,"traceId":"5261e710caf6ef2e"},{"name":"next-export","duration":605592,"timestamp":81106103957,"id":106,"parentId":1,"tags":{},"startTime":1778889078350,"traceId":"5261e710caf6ef2e"}]
2
+ [{"name":"move-exported-app-not-found-","duration":4202,"timestamp":81106713632,"id":109,"parentId":105,"tags":{},"startTime":1778889078960,"traceId":"5261e710caf6ef2e"},{"name":"move-exported-app-global-error-","duration":644,"timestamp":81106717933,"id":110,"parentId":105,"tags":{},"startTime":1778889078964,"traceId":"5261e710caf6ef2e"},{"name":"static-generation","duration":624886,"timestamp":81106095788,"id":105,"parentId":1,"tags":{},"startTime":1778889078342,"traceId":"5261e710caf6ef2e"},{"name":"write-routes-manifest","duration":409,"timestamp":81106720834,"id":111,"parentId":1,"tags":{},"startTime":1778889078967,"traceId":"5261e710caf6ef2e"},{"name":"print-tree-view","duration":3996,"timestamp":81106732078,"id":112,"parentId":1,"tags":{},"startTime":1778889078978,"traceId":"5261e710caf6ef2e"},{"name":"write-route-bundle-stats","duration":15753,"timestamp":81106736108,"id":113,"parentId":1,"tags":{},"startTime":1778889078982,"traceId":"5261e710caf6ef2e"},{"name":"telemetry-flush","duration":26626,"timestamp":81106751891,"id":114,"parentId":1,"tags":{},"startTime":1778889078998,"traceId":"5261e710caf6ef2e"},{"name":"next-build","duration":17865118,"timestamp":81088913431,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778889061160,"traceId":"5261e710caf6ef2e"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":5475386,"timestamp":80731465844,"id":14,"parentId":1,"tags":{},"startTime":1778888703712,"traceId":"f3afcf4c3ea42392"},{"name":"turbopack-build-events","duration":107,"timestamp":80731763757,"id":15,"parentId":1,"tags":{},"startTime":1778888704010,"traceId":"f3afcf4c3ea42392"},{"name":"run-typescript","duration":9074494,"timestamp":80736982970,"id":16,"parentId":1,"tags":{},"startTime":1778888709229,"traceId":"f3afcf4c3ea42392"},{"name":"static-check","duration":718088,"timestamp":80746230093,"id":19,"parentId":1,"tags":{},"startTime":1778888718476,"traceId":"f3afcf4c3ea42392"},{"name":"static-generation","duration":618059,"timestamp":80746959746,"id":105,"parentId":1,"tags":{},"startTime":1778888719206,"traceId":"f3afcf4c3ea42392"},{"name":"telemetry-flush","duration":28657,"timestamp":80747609781,"id":114,"parentId":1,"tags":{},"startTime":1778888719856,"traceId":"f3afcf4c3ea42392"},{"name":"next-build","duration":16356779,"timestamp":80731281685,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778888703528,"traceId":"f3afcf4c3ea42392"}]
1
+ [{"name":"run-turbopack","duration":6357320,"timestamp":81089129871,"id":14,"parentId":1,"tags":{},"startTime":1778889061376,"traceId":"5261e710caf6ef2e"},{"name":"turbopack-build-events","duration":106,"timestamp":81089428641,"id":15,"parentId":1,"tags":{},"startTime":1778889061675,"traceId":"5261e710caf6ef2e"},{"name":"run-typescript","duration":9573461,"timestamp":81095500457,"id":16,"parentId":1,"tags":{},"startTime":1778889067747,"traceId":"5261e710caf6ef2e"},{"name":"static-check","duration":853343,"timestamp":81105229463,"id":19,"parentId":1,"tags":{},"startTime":1778889077476,"traceId":"5261e710caf6ef2e"},{"name":"static-generation","duration":624886,"timestamp":81106095788,"id":105,"parentId":1,"tags":{},"startTime":1778889078342,"traceId":"5261e710caf6ef2e"},{"name":"telemetry-flush","duration":26626,"timestamp":81106751891,"id":114,"parentId":1,"tags":{},"startTime":1778889078998,"traceId":"5261e710caf6ef2e"},{"name":"next-build","duration":17865118,"timestamp":81088913431,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778889061160,"traceId":"5261e710caf6ef2e"}]
@@ -3017,6 +3017,24 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
3017
3017
  data-group-label-tinted={pinnedGroup === box.key ? 'pinned' : hoveredGroupLabel === box.key ? 'hover' : 'none'}
3018
3018
  style={{ transition: 'fill 150ms ease-out, opacity 150ms ease-out' }}
3019
3019
  />
3020
+ {/* Round 218 / Loop: group label gains a letter-spacing
3021
+ transition on pin — the text subtly spaces out
3022
+ (0px → 0.5px) when the group is locked, giving the
3023
+ pinned state its own typographic signature distinct
3024
+ from R63's transient hover fill brighten. Hover and
3025
+ pin share the same fill colour (legendHeadline), so
3026
+ pre-R218 the only thing distinguishing them was
3027
+ R142 drop-shadow + R68 rect stroke. R218 adds a
3028
+ type-level signal: pinned text spreads slightly,
3029
+ feels "locked in" / "open and held". Letter-
3030
+ spacing is one of the few SVG text properties that
3031
+ interpolates smoothly across the major browsers.
3032
+ Hover stays at default tracking — the spread is
3033
+ pin-exclusive so users can read pinned vs
3034
+ hovered at the text alone. transition 200ms
3035
+ matches R142 fill timing so all the group-label
3036
+ state-flip channels (fill colour, rect stroke,
3037
+ rect drop-shadow, label tracking) ease as one. */}
3020
3038
  <text
3021
3039
  x={box.x + 12}
3022
3040
  y={box.y + 14}
@@ -3024,8 +3042,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
3024
3042
  fontSize="13"
3025
3043
  fontFamily="monospace"
3026
3044
  fontWeight="700"
3027
- style={{ transition: 'fill 200ms ease-out' }}
3045
+ style={{
3046
+ transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out',
3047
+ letterSpacing: isPinned ? '0.5px' : '0px',
3048
+ }}
3028
3049
  data-group-label={box.key}
3050
+ data-group-label-pinned={isPinned ? 'true' : 'false'}
3029
3051
  >
3030
3052
  {box.key}
3031
3053
  {/* Round 19 / Loop: member-count chip. Inline tspan stays
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network-dashboard",
3
- "version": "0.4.6-preview.224",
3
+ "version": "0.4.6-preview.225",
4
4
  "description": "Agent Network Dashboard — Web UI for managing AI Agent networks",
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -0,0 +1,136 @@
1
+ /* Round 218 verification: group label text gains letter-spacing
2
+ * transition on pin — 0px → 0.5px when group is pinned. Hover and
3
+ * pin share fill colour (R63 legendHeadline) so pre-R218 they
4
+ * looked typographically identical. R218 spreads the pinned text
5
+ * to read "locked in" at the text level.
6
+ *
7
+ * Test (cyber dark, 17 sessions in 2 prefix groups → 'group-A' +
8
+ * 'group-B' groupBoxes after switch to grid layout):
9
+ * 1. Switch to grid layout to trigger groupBoxes rendering.
10
+ * 2. Both group labels render with data-group-label.
11
+ * 3. Idle: data-group-label-pinned='false', computed
12
+ * letter-spacing ~ 0px.
13
+ * 4. Inline transition includes 'letter-spacing 200ms'.
14
+ * 5. Click one group label → that group becomes pinned.
15
+ * 6. Pinned label: data-group-label-pinned='true', computed
16
+ * letter-spacing ~ 0.5px.
17
+ * 7. Other (un-pinned) group stays at 0px letter-spacing.
18
+ * 8. Click pinned again → unpin → back to 0px.
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
+
26
+ const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
27
+ await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
28
+ await ctx.addInitScript(() => {
29
+ try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
30
+ });
31
+
32
+ const fresh = new Date(Date.now() - 60 * 1000).toISOString();
33
+ await ctx.route('**/api/hub/status*', async (route) => {
34
+ const r = await route.fetch();
35
+ const b = await r.json();
36
+ const nid = (b.sessions || [])[0]?.network_id || 'default';
37
+ const mk = (alias) => ({
38
+ alias, status: 'working', model: 'claude-opus-4', runtime: 'claude-code-cli',
39
+ network_id: nid, project_dir: null,
40
+ created_at: fresh, updated_at: fresh, last_seen_at: fresh,
41
+ });
42
+ // Two prefix groups: 'alpha-*' and 'beta-*' (each ≥2 → forms a group)
43
+ await route.fulfill({ response: r, json: { ...b, sessions: [
44
+ mk('alpha-1'), mk('alpha-2'), mk('alpha-3'),
45
+ mk('beta-1'), mk('beta-2'), mk('beta-3'),
46
+ ] } });
47
+ });
48
+ await ctx.route('**/api/hub/messages*', (r2) => r2.fulfill({ json: { messages: [] } }));
49
+ await ctx.route('**/api/hub/tasks*', (r2) => r2.fulfill({ json: { tasks: [] } }));
50
+
51
+ const page = await ctx.newPage();
52
+ await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
53
+ await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 6, { timeout: 30000 });
54
+ await page.waitForSelector('[data-topo-chrome-layout="grid"]', { timeout: 10000 });
55
+ await page.waitForTimeout(200);
56
+
57
+ // Switch to grid layout to trigger groupBoxes
58
+ await page.click('[data-topo-chrome-layout="grid"]');
59
+ await page.waitForTimeout(600);
60
+ await page.waitForSelector('[data-group-label]', { timeout: 5000, state: 'attached' });
61
+ await page.waitForTimeout(300);
62
+
63
+ const probe = async () => page.evaluate(() => {
64
+ return [...document.querySelectorAll('[data-group-label]')].map(el => {
65
+ const cs = getComputedStyle(el);
66
+ return {
67
+ key: el.getAttribute('data-group-label'),
68
+ pinned: el.getAttribute('data-group-label-pinned'),
69
+ spacing: cs.letterSpacing,
70
+ transition: el.style.transition,
71
+ };
72
+ });
73
+ });
74
+
75
+ const idle = await probe();
76
+
77
+ // Click first group label to pin it. The label hit area is the
78
+ // invisible rect — but the <text> itself often gets the click via
79
+ // the wrapper <g> with onClick. Find the parent <g role='button'>
80
+ // (data-group-label-hit) and click it.
81
+ const firstKey = idle[0]?.key;
82
+ if (firstKey) {
83
+ await page.click(`[data-group-label-hit="${firstKey}"]`);
84
+ await page.waitForTimeout(260); // past 200ms transition
85
+ }
86
+ const pinned = await probe();
87
+
88
+ // Click again to unpin
89
+ if (firstKey) {
90
+ await page.click(`[data-group-label-hit="${firstKey}"]`);
91
+ await page.waitForTimeout(260);
92
+ }
93
+ const unpinned = await probe();
94
+
95
+ await browser.close();
96
+
97
+ // CSS resolves `letterSpacing: '0px'` to the keyword 'normal' in
98
+ // computed style — they're equivalent. Accept both forms as "zero
99
+ // spacing"; numeric values still parse cleanly via parseFloat.
100
+ const near = (s, want, tol = 0.15) => {
101
+ if (want === 0 && (s === 'normal' || s === '0px' || s === '0' || !s)) return true;
102
+ const got = parseFloat(s || '0');
103
+ return Math.abs(got - want) < tol;
104
+ };
105
+ const hasLetterSpacingT = (s) => /letter-spacing\s+(?:200ms|0\.2s)/.test(s || '');
106
+
107
+ const firstIdle = idle[0];
108
+ const firstPinned = pinned.find(p => p.key === firstKey);
109
+ const otherIdle = idle[1];
110
+ const otherPinned = pinned.find(p => p.key !== firstKey);
111
+ const firstUnpin = unpinned.find(p => p.key === firstKey);
112
+
113
+ const results = {
114
+ two_groups_present: idle.length >= 2,
115
+
116
+ // Idle: all unpinned, spacing 0, transition present
117
+ all_idle_unpinned: idle.every(p => p.pinned === 'false'),
118
+ all_idle_spacing_zero: idle.every(p => near(p.spacing, 0)),
119
+ all_have_transition: idle.every(p => hasLetterSpacingT(p.transition)),
120
+
121
+ // First pinned, second still idle
122
+ first_pinned_attr: firstPinned?.pinned === 'true',
123
+ first_pinned_spacing: near(firstPinned?.spacing, 0.5),
124
+ other_stays_unpinned: otherPinned?.pinned === 'false',
125
+ other_spacing_unchanged: near(otherPinned?.spacing, 0),
126
+
127
+ // After unpin: spacing back to 0
128
+ unpinned_attr_false: firstUnpin?.pinned === 'false',
129
+ unpinned_spacing_zero: near(firstUnpin?.spacing, 0),
130
+ };
131
+ const ok = Object.values(results).every(Boolean);
132
+ console.log(`${ok ? '✅' : '❌'} group-label pin spacing:`, JSON.stringify(results),
133
+ `\n idle:`, idle,
134
+ `\n pinned:`, pinned,
135
+ `\n unpinned:`, unpinned);
136
+ process.exit(ok ? 0 : 1);