@sleep2agi/agent-network-dashboard 0.5.1-preview.92 → 0.5.1-preview.94
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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +4 -4
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/admin.html +1 -1
- package/.next/server/app/admin.rsc +1 -1
- package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +2 -2
- package/.next/server/app/login.rsc +2 -2
- package/.next/server/app/login.segments/_full.segment.rsc +2 -2
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +1 -1
- package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/.next/server/app/logs.html +1 -1
- package/.next/server/app/logs.rsc +1 -1
- package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
- package/.next/server/app/messages.html +1 -1
- package/.next/server/app/messages.rsc +1 -1
- package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
- package/.next/server/app/node.html +1 -1
- package/.next/server/app/node.rsc +1 -1
- package/.next/server/app/node.segments/_full.segment.rsc +1 -1
- package/.next/server/app/node.segments/_head.segment.rsc +1 -1
- package/.next/server/app/node.segments/_index.segment.rsc +1 -1
- package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/node.segments/node.segment.rsc +1 -1
- package/.next/server/app/nodes.html +1 -1
- package/.next/server/app/nodes.rsc +1 -1
- package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs.html +1 -1
- package/.next/server/app/server-logs.rsc +1 -1
- package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
- package/.next/server/app/settings/networks.html +1 -1
- package/.next/server/app/settings/networks.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens.html +1 -1
- package/.next/server/app/settings/tokens.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings.html +2 -2
- package/.next/server/app/settings.rsc +2 -2
- package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
- package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/.next/server/app/tasks.html +1 -1
- package/.next/server/app/tasks.rsc +1 -1
- package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +2 -2
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/{0wto4oae3igw_.js → 02cmi8c_5iuaa.js} +1 -1
- package/.next/static/chunks/{0zo0s7323ac4p.js → 07uaaj9nys586.js} +2 -2
- package/.next/static/chunks/{0k0.is5zod_ab.js → 0versp~8u.gix.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +57 -2
- package/package.json +1 -1
- package/scripts/topo-group-label-letter-spacing-test.mjs +113 -0
- package/scripts/topo-legend-row-letter-spacing-test.mjs +101 -0
- /package/.next/static/{B2VJCBlP2wQICyJWSJlVX → sB4vKuT99_M_9_ieDR-jA}/_buildManifest.js +0 -0
- /package/.next/static/{B2VJCBlP2wQICyJWSJlVX → sB4vKuT99_M_9_ieDR-jA}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{B2VJCBlP2wQICyJWSJlVX → sB4vKuT99_M_9_ieDR-jA}/_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.91"],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.93"],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":320,"timestamp":160205035489,"id":4,"parentId":1,"tags":{},"startTime":1778968177282,"traceId":"2fd8cefc85758fc5"},{"name":"load-custom-routes","duration":543,"timestamp":160205035967,"id":5,"parentId":1,"tags":{},"startTime":1778968177282,"traceId":"2fd8cefc85758fc5"},{"name":"create-dist-dir","duration":889,"timestamp":160205036558,"id":6,"parentId":1,"tags":{},"startTime":1778968177283,"traceId":"2fd8cefc85758fc5"},{"name":"clean","duration":33330,"timestamp":160205038382,"id":7,"parentId":1,"tags":{},"startTime":1778968177285,"traceId":"2fd8cefc85758fc5"},{"name":"discover-routes","duration":15991,"timestamp":160205155918,"id":8,"parentId":1,"tags":{},"startTime":1778968177402,"traceId":"2fd8cefc85758fc5"},{"name":"create-root-mapping","duration":189,"timestamp":160205172024,"id":9,"parentId":1,"tags":{},"startTime":1778968177418,"traceId":"2fd8cefc85758fc5"},{"name":"generate-route-types","duration":36587,"timestamp":160205175044,"id":10,"parentId":1,"tags":{},"startTime":1778968177421,"traceId":"2fd8cefc85758fc5"},{"name":"public-dir-conflict-check","duration":140,"timestamp":160205211735,"id":11,"parentId":1,"tags":{},"startTime":1778968177458,"traceId":"2fd8cefc85758fc5"},{"name":"generate-routes-manifest","duration":6369,"timestamp":160205212082,"id":12,"parentId":1,"tags":{},"startTime":1778968177458,"traceId":"2fd8cefc85758fc5"},{"name":"run-turbopack","duration":6044247,"timestamp":160205224064,"id":14,"parentId":1,"tags":{},"startTime":1778968177470,"traceId":"2fd8cefc85758fc5"},{"name":"turbopack-build-events","duration":73,"timestamp":160205525319,"id":15,"parentId":1,"tags":{},"startTime":1778968177772,"traceId":"2fd8cefc85758fc5"},{"name":"run-typescript","duration":9379116,"timestamp":160211280279,"id":16,"parentId":1,"tags":{},"startTime":1778968183527,"traceId":"2fd8cefc85758fc5"},{"name":"generate-required-server-files","duration":3168,"timestamp":160220660594,"id":18,"parentId":1,"tags":{},"startTime":1778968192907,"traceId":"2fd8cefc85758fc5"},{"name":"check-static-error-page","duration":17317,"timestamp":160220879191,"id":20,"parentId":19,"tags":{},"startTime":1778968193125,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":501949,"timestamp":160220900491,"id":65,"parentId":22,"tags":{},"startTime":1778968193147,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":520013,"timestamp":160220882601,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778968193129,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":554457,"timestamp":160220900718,"id":67,"parentId":26,"tags":{},"startTime":1778968193147,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":568133,"timestamp":160220887166,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778968193133,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":563709,"timestamp":160220901419,"id":72,"parentId":32,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":577129,"timestamp":160220888102,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778968193134,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":596529,"timestamp":160220900100,"id":64,"parentId":21,"tags":{},"startTime":1778968193146,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":615811,"timestamp":160220880905,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778968193127,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":613091,"timestamp":160220901584,"id":73,"parentId":33,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":626529,"timestamp":160220888230,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778968193135,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":621496,"timestamp":160220900936,"id":69,"parentId":28,"tags":{},"startTime":1778968193147,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":635151,"timestamp":160220887407,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778968193134,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":623733,"timestamp":160220900610,"id":66,"parentId":25,"tags":{},"startTime":1778968193147,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":637444,"timestamp":160220886957,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778968193133,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":630870,"timestamp":160220901361,"id":71,"parentId":30,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":644756,"timestamp":160220887689,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778968193134,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":635209,"timestamp":160220901213,"id":70,"parentId":29,"tags":{},"startTime":1778968193147,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":648952,"timestamp":160220887531,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778968193134,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":642656,"timestamp":160220901687,"id":75,"parentId":35,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":655921,"timestamp":160220888471,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778968193135,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":652908,"timestamp":160220901782,"id":80,"parentId":40,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":665207,"timestamp":160220889534,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778968193136,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":653149,"timestamp":160220901748,"id":78,"parentId":38,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":665589,"timestamp":160220889336,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778968193136,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":656437,"timestamp":160220901757,"id":79,"parentId":39,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":668804,"timestamp":160220889432,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778968193136,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":659272,"timestamp":160220901806,"id":82,"parentId":44,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":670574,"timestamp":160220890553,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778968193137,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":661685,"timestamp":160220901707,"id":76,"parentId":36,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":674440,"timestamp":160220888992,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778968193135,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":663354,"timestamp":160220901819,"id":83,"parentId":45,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":672851,"timestamp":160220892363,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778968193139,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":664395,"timestamp":160220901796,"id":81,"parentId":42,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":676319,"timestamp":160220889938,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778968193136,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":665321,"timestamp":160220901831,"id":84,"parentId":46,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":674703,"timestamp":160220892494,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778968193139,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":666202,"timestamp":160220901840,"id":85,"parentId":47,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":675467,"timestamp":160220892614,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778968193139,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":669524,"timestamp":160220901864,"id":87,"parentId":49,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":678628,"timestamp":160220892837,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778968193139,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":671068,"timestamp":160220901876,"id":88,"parentId":50,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":680061,"timestamp":160220892921,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778968193139,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":671488,"timestamp":160220905104,"id":90,"parentId":24,"tags":{},"startTime":1778968193151,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":693439,"timestamp":160220883192,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778968193129,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":680098,"timestamp":160220901852,"id":86,"parentId":48,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":689282,"timestamp":160220892712,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778968193139,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":680447,"timestamp":160220901732,"id":77,"parentId":37,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":693026,"timestamp":160220889188,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778968193135,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":684260,"timestamp":160220901884,"id":89,"parentId":51,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":693148,"timestamp":160220893043,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778968193139,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":680093,"timestamp":160220906282,"id":91,"parentId":31,"tags":{},"startTime":1778968193153,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":698581,"timestamp":160220887827,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778968193134,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":678663,"timestamp":160220907858,"id":92,"parentId":43,"tags":{},"startTime":1778968193154,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":696347,"timestamp":160220890237,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778968193137,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":688640,"timestamp":160220901663,"id":74,"parentId":34,"tags":{},"startTime":1778968193148,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":701994,"timestamp":160220888355,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778968193135,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":691101,"timestamp":160220900840,"id":68,"parentId":27,"tags":{},"startTime":1778968193147,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":704708,"timestamp":160220887287,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778968193134,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":685446,"timestamp":160220908600,"id":93,"parentId":41,"tags":{},"startTime":1778968193155,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":704466,"timestamp":160220889629,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778968193136,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":692771,"timestamp":160220911052,"id":98,"parentId":55,"tags":{},"startTime":1778968193157,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":709901,"timestamp":160220893977,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778968193140,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":700358,"timestamp":160220911189,"id":101,"parentId":59,"tags":{},"startTime":1778968193157,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":716276,"timestamp":160220895319,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778968193142,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":707877,"timestamp":160220911209,"id":102,"parentId":61,"tags":{},"startTime":1778968193157,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":723214,"timestamp":160220895952,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778968193142,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":718873,"timestamp":160220911218,"id":103,"parentId":62,"tags":{},"startTime":1778968193157,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":734018,"timestamp":160220896117,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778968193142,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":732271,"timestamp":160220911231,"id":104,"parentId":63,"tags":{},"startTime":1778968193158,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":747293,"timestamp":160220896266,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778968193143,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":735348,"timestamp":160220911039,"id":97,"parentId":54,"tags":{},"startTime":1778968193157,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":752687,"timestamp":160220893759,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778968193140,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":740208,"timestamp":160220911075,"id":100,"parentId":58,"tags":{},"startTime":1778968193157,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":756253,"timestamp":160220895078,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778968193141,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":741169,"timestamp":160220910995,"id":95,"parentId":52,"tags":{},"startTime":1778968193157,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":758777,"timestamp":160220893434,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778968193140,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":724713,"timestamp":160220927583,"id":105,"parentId":60,"tags":{},"startTime":1778968193174,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":756812,"timestamp":160220895508,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778968193142,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":712213,"timestamp":160220942192,"id":106,"parentId":57,"tags":{},"startTime":1778968193188,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":759998,"timestamp":160220894452,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778968193141,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":751678,"timestamp":160220910963,"id":94,"parentId":23,"tags":{},"startTime":1778968193157,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":779788,"timestamp":160220882899,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778968193129,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":754146,"timestamp":160220911024,"id":96,"parentId":53,"tags":{},"startTime":1778968193157,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":771628,"timestamp":160220893586,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778968193140,"traceId":"2fd8cefc85758fc5"},{"name":"is-page-static","duration":774224,"timestamp":160220911066,"id":99,"parentId":56,"tags":{},"startTime":1778968193157,"traceId":"2fd8cefc85758fc5"},{"name":"check-page","duration":791150,"timestamp":160220894198,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778968193140,"traceId":"2fd8cefc85758fc5"},{"name":"static-check","duration":807414,"timestamp":160220877986,"id":19,"parentId":1,"tags":{},"startTime":1778968193124,"traceId":"2fd8cefc85758fc5"}]
|
|
2
|
-
[{"name":"write-routes-manifest","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":369,"timestamp":160835409928,"id":4,"parentId":1,"tags":{},"startTime":1778968807656,"traceId":"11898ff1d2f3c219"},{"name":"load-custom-routes","duration":468,"timestamp":160835410445,"id":5,"parentId":1,"tags":{},"startTime":1778968807657,"traceId":"11898ff1d2f3c219"},{"name":"create-dist-dir","duration":703,"timestamp":160835410953,"id":6,"parentId":1,"tags":{},"startTime":1778968807657,"traceId":"11898ff1d2f3c219"},{"name":"clean","duration":32857,"timestamp":160835412338,"id":7,"parentId":1,"tags":{},"startTime":1778968807659,"traceId":"11898ff1d2f3c219"},{"name":"discover-routes","duration":14724,"timestamp":160835526542,"id":8,"parentId":1,"tags":{},"startTime":1778968807773,"traceId":"11898ff1d2f3c219"},{"name":"create-root-mapping","duration":178,"timestamp":160835541354,"id":9,"parentId":1,"tags":{},"startTime":1778968807788,"traceId":"11898ff1d2f3c219"},{"name":"generate-route-types","duration":36453,"timestamp":160835544463,"id":10,"parentId":1,"tags":{},"startTime":1778968807791,"traceId":"11898ff1d2f3c219"},{"name":"public-dir-conflict-check","duration":128,"timestamp":160835581040,"id":11,"parentId":1,"tags":{},"startTime":1778968807827,"traceId":"11898ff1d2f3c219"},{"name":"generate-routes-manifest","duration":5965,"timestamp":160835581297,"id":12,"parentId":1,"tags":{},"startTime":1778968807828,"traceId":"11898ff1d2f3c219"},{"name":"run-turbopack","duration":6162234,"timestamp":160835592909,"id":14,"parentId":1,"tags":{},"startTime":1778968807839,"traceId":"11898ff1d2f3c219"},{"name":"turbopack-build-events","duration":71,"timestamp":160835954475,"id":15,"parentId":1,"tags":{},"startTime":1778968808201,"traceId":"11898ff1d2f3c219"},{"name":"run-typescript","duration":9454115,"timestamp":160841770937,"id":16,"parentId":1,"tags":{},"startTime":1778968814017,"traceId":"11898ff1d2f3c219"},{"name":"generate-required-server-files","duration":3366,"timestamp":160851226661,"id":18,"parentId":1,"tags":{},"startTime":1778968823473,"traceId":"11898ff1d2f3c219"},{"name":"check-static-error-page","duration":16579,"timestamp":160851418158,"id":20,"parentId":19,"tags":{},"startTime":1778968823664,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":491208,"timestamp":160851439257,"id":65,"parentId":22,"tags":{},"startTime":1778968823686,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":509108,"timestamp":160851421516,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778968823668,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":561833,"timestamp":160851439657,"id":68,"parentId":27,"tags":{},"startTime":1778968823686,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":576316,"timestamp":160851425281,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778968823672,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":562269,"timestamp":160851439547,"id":67,"parentId":26,"tags":{},"startTime":1778968823686,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":576723,"timestamp":160851425139,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778968823671,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":572706,"timestamp":160851439427,"id":66,"parentId":25,"tags":{},"startTime":1778968823686,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":587280,"timestamp":160851424915,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778968823671,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":573117,"timestamp":160851440520,"id":73,"parentId":33,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":587398,"timestamp":160851426298,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778968823673,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":577908,"timestamp":160851440328,"id":72,"parentId":32,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":592148,"timestamp":160851426148,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778968823672,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":579666,"timestamp":160851440639,"id":75,"parentId":35,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":593778,"timestamp":160851426578,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778968823673,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":585776,"timestamp":160851440663,"id":76,"parentId":36,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":599340,"timestamp":160851427148,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778968823673,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":586003,"timestamp":160851440696,"id":77,"parentId":37,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":599386,"timestamp":160851427354,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778968823674,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":591429,"timestamp":160851440713,"id":78,"parentId":38,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":604677,"timestamp":160851427508,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778968823674,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":592692,"timestamp":160851440731,"id":79,"parentId":39,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":605821,"timestamp":160851427642,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778968823674,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":597270,"timestamp":160851440746,"id":80,"parentId":40,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":610287,"timestamp":160851427774,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778968823674,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":602940,"timestamp":160851440790,"id":82,"parentId":44,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":615136,"timestamp":160851428653,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778968823675,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":609446,"timestamp":160851440777,"id":81,"parentId":42,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":622089,"timestamp":160851428195,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778968823674,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":609599,"timestamp":160851440805,"id":83,"parentId":45,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":621626,"timestamp":160851428804,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778968823675,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":613324,"timestamp":160851439778,"id":69,"parentId":28,"tags":{},"startTime":1778968823686,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":627738,"timestamp":160851425409,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778968823672,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":615032,"timestamp":160851440833,"id":85,"parentId":47,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":626875,"timestamp":160851429046,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778968823675,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":624335,"timestamp":160851440609,"id":74,"parentId":34,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":638547,"timestamp":160851426444,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778968823673,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":624304,"timestamp":160851440850,"id":86,"parentId":48,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":636043,"timestamp":160851429162,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778968823675,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":624529,"timestamp":160851440867,"id":87,"parentId":49,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":634596,"timestamp":160851430842,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778968823677,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":624747,"timestamp":160851440821,"id":84,"parentId":46,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":636693,"timestamp":160851428911,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778968823675,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":627188,"timestamp":160851438585,"id":64,"parentId":21,"tags":{},"startTime":1778968823685,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":645932,"timestamp":160851419873,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778968823666,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":625807,"timestamp":160851445567,"id":91,"parentId":31,"tags":{},"startTime":1778968823692,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":645572,"timestamp":160851425848,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778968823672,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":641141,"timestamp":160851440256,"id":71,"parentId":30,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":655753,"timestamp":160851425699,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778968823672,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":644079,"timestamp":160851440883,"id":88,"parentId":50,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":654045,"timestamp":160851430996,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778968823677,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":645128,"timestamp":160851440093,"id":70,"parentId":29,"tags":{},"startTime":1778968823686,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":659735,"timestamp":160851425526,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778968823672,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":643117,"timestamp":160851449991,"id":93,"parentId":43,"tags":{},"startTime":1778968823696,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":664802,"timestamp":160851428350,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778968823675,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":657544,"timestamp":160851444405,"id":90,"parentId":24,"tags":{},"startTime":1778968823691,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":679916,"timestamp":160851422103,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778968823668,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":673412,"timestamp":160851440895,"id":89,"parentId":51,"tags":{},"startTime":1778968823687,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":683249,"timestamp":160851431124,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778968823677,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":701322,"timestamp":160851452554,"id":94,"parentId":23,"tags":{},"startTime":1778968823699,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":732130,"timestamp":160851421821,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778968823668,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":709155,"timestamp":160851452674,"id":100,"parentId":58,"tags":{},"startTime":1778968823699,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":728643,"timestamp":160851433251,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778968823680,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":713711,"timestamp":160851452630,"id":97,"parentId":54,"tags":{},"startTime":1778968823699,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":734481,"timestamp":160851431914,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778968823678,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":716353,"timestamp":160851452828,"id":101,"parentId":59,"tags":{},"startTime":1778968823699,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":735770,"timestamp":160851433481,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778968823680,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":720335,"timestamp":160851452642,"id":98,"parentId":55,"tags":{},"startTime":1778968823699,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":740904,"timestamp":160851432143,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778968823678,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":726551,"timestamp":160851447515,"id":92,"parentId":41,"tags":{},"startTime":1778968823694,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":746228,"timestamp":160851427884,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778968823674,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":722438,"timestamp":160851452850,"id":102,"parentId":61,"tags":{},"startTime":1778968823699,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":741153,"timestamp":160851434178,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778968823680,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":727366,"timestamp":160851452595,"id":95,"parentId":52,"tags":{},"startTime":1778968823699,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":748506,"timestamp":160851431546,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778968823678,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":727702,"timestamp":160851452881,"id":104,"parentId":63,"tags":{},"startTime":1778968823699,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":746131,"timestamp":160851434490,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778968823681,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":712217,"timestamp":160851469801,"id":105,"parentId":60,"tags":{},"startTime":1778968823716,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":748370,"timestamp":160851433690,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778968823680,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":696062,"timestamp":160851486457,"id":106,"parentId":57,"tags":{},"startTime":1778968823733,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":749945,"timestamp":160851432620,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778968823679,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":730488,"timestamp":160851452866,"id":103,"parentId":62,"tags":{},"startTime":1778968823699,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":749044,"timestamp":160851434339,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778968823681,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":732220,"timestamp":160851452658,"id":99,"parentId":56,"tags":{},"startTime":1778968823699,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":752544,"timestamp":160851432372,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778968823679,"traceId":"11898ff1d2f3c219"},{"name":"is-page-static","duration":739450,"timestamp":160851452614,"id":96,"parentId":53,"tags":{},"startTime":1778968823699,"traceId":"11898ff1d2f3c219"},{"name":"check-page","duration":760386,"timestamp":160851431711,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778968823678,"traceId":"11898ff1d2f3c219"},{"name":"static-check","duration":775156,"timestamp":160851416976,"id":19,"parentId":1,"tags":{},"startTime":1778968823663,"traceId":"11898ff1d2f3c219"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":528,"timestamp":160852201545,"id":108,"parentId":1,"tags":{},"startTime":1778968824448,"traceId":"11898ff1d2f3c219"},{"name":"load-dotenv","duration":63,"timestamp":160852215118,"id":111,"parentId":110,"tags":{},"startTime":1778968824461,"traceId":"11898ff1d2f3c219"},{"name":"run-export-path-map","duration":518,"timestamp":160852218166,"id":112,"parentId":110,"tags":{},"startTime":1778968824464,"traceId":"11898ff1d2f3c219"},{"name":"next-export","duration":570418,"timestamp":160852213265,"id":110,"parentId":1,"tags":{},"startTime":1778968824460,"traceId":"11898ff1d2f3c219"},{"name":"move-exported-app-not-found-","duration":541,"timestamp":160852787031,"id":113,"parentId":109,"tags":{},"startTime":1778968825033,"traceId":"11898ff1d2f3c219"},{"name":"move-exported-app-global-error-","duration":436,"timestamp":160852787658,"id":114,"parentId":109,"tags":{},"startTime":1778968825034,"traceId":"11898ff1d2f3c219"},{"name":"static-generation","duration":583051,"timestamp":160852206845,"id":109,"parentId":1,"tags":{},"startTime":1778968824453,"traceId":"11898ff1d2f3c219"},{"name":"write-routes-manifest","duration":371,"timestamp":160852790145,"id":115,"parentId":1,"tags":{},"startTime":1778968825036,"traceId":"11898ff1d2f3c219"},{"name":"print-tree-view","duration":4124,"timestamp":160852810997,"id":116,"parentId":1,"tags":{},"startTime":1778968825057,"traceId":"11898ff1d2f3c219"},{"name":"write-route-bundle-stats","duration":12571,"timestamp":160852815155,"id":117,"parentId":1,"tags":{},"startTime":1778968825061,"traceId":"11898ff1d2f3c219"},{"name":"telemetry-flush","duration":15508,"timestamp":160852827763,"id":118,"parentId":1,"tags":{},"startTime":1778968825074,"traceId":"11898ff1d2f3c219"},{"name":"next-build","duration":17484194,"timestamp":160835359110,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778968807605,"traceId":"11898ff1d2f3c219"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":6162234,"timestamp":160835592909,"id":14,"parentId":1,"tags":{},"startTime":1778968807839,"traceId":"11898ff1d2f3c219"},{"name":"turbopack-build-events","duration":71,"timestamp":160835954475,"id":15,"parentId":1,"tags":{},"startTime":1778968808201,"traceId":"11898ff1d2f3c219"},{"name":"run-typescript","duration":9454115,"timestamp":160841770937,"id":16,"parentId":1,"tags":{},"startTime":1778968814017,"traceId":"11898ff1d2f3c219"},{"name":"static-check","duration":775156,"timestamp":160851416976,"id":19,"parentId":1,"tags":{},"startTime":1778968823663,"traceId":"11898ff1d2f3c219"},{"name":"static-generation","duration":583051,"timestamp":160852206845,"id":109,"parentId":1,"tags":{},"startTime":1778968824453,"traceId":"11898ff1d2f3c219"},{"name":"telemetry-flush","duration":15508,"timestamp":160852827763,"id":118,"parentId":1,"tags":{},"startTime":1778968825074,"traceId":"11898ff1d2f3c219"},{"name":"next-build","duration":17484194,"timestamp":160835359110,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778968807605,"traceId":"11898ff1d2f3c219"}]
|
|
@@ -4416,6 +4416,32 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4416
4416
|
matches R142 fill timing so all the group-label
|
|
4417
4417
|
state-flip channels (fill colour, rect stroke,
|
|
4418
4418
|
rect drop-shadow, label tracking) ease as one. */}
|
|
4419
|
+
{/* Round 432 / Loop: extend the group-label letter-
|
|
4420
|
+
spacing tween from 2-tier (rest/pin) to 3-tier
|
|
4421
|
+
(rest/hover/pin → 0/0.25/0.5). Pre-R432 R218
|
|
4422
|
+
spread the text only on pin; hover got an
|
|
4423
|
+
R63 fill brighten (legendText → legendHeadline)
|
|
4424
|
+
but no typographic axis of its own. R432 adds
|
|
4425
|
+
the missing mid tier so hover telegraphs through
|
|
4426
|
+
BOTH the fill brighten AND a subtle kerning
|
|
4427
|
+
spread — sibling pattern to R427 node-alias
|
|
4428
|
+
(0/0.3/0.5) and R431 edge-badge (0/0.2/0.4) at
|
|
4429
|
+
group-label scope. Pin tier (0.5) still wins.
|
|
4430
|
+
Subtler mid tier (0.25 vs alias 0.3) because the
|
|
4431
|
+
group label is a structural anchor — too much
|
|
4432
|
+
spread would steal weight from the per-node
|
|
4433
|
+
alias identity it groups. Hover-letter-spacing
|
|
4434
|
+
family extension (8 anchors now):
|
|
4435
|
+
R344 chip count digit
|
|
4436
|
+
R345 panel title
|
|
4437
|
+
R347 active-links chip
|
|
4438
|
+
R351 vendor chip
|
|
4439
|
+
R420 zoom-level chip
|
|
4440
|
+
R427 node alias text
|
|
4441
|
+
R431 edge-badge digit
|
|
4442
|
+
R432 group label text (this round)
|
|
4443
|
+
R218 transition list ('fill 200ms, letter-spacing
|
|
4444
|
+
200ms') untouched — additive conditional case. */}
|
|
4419
4445
|
<text
|
|
4420
4446
|
x={box.x + 12}
|
|
4421
4447
|
y={box.y + 14}
|
|
@@ -4423,9 +4449,11 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4423
4449
|
fontSize="13"
|
|
4424
4450
|
fontFamily="monospace"
|
|
4425
4451
|
fontWeight="700"
|
|
4452
|
+
data-group-label-hovered={isHovered && !isPinned ? 'true' : 'false'}
|
|
4426
4453
|
style={{
|
|
4427
4454
|
transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out',
|
|
4428
|
-
letterSpacing: isPinned ? '0.5px' :
|
|
4455
|
+
letterSpacing: isPinned ? '0.5px' :
|
|
4456
|
+
isHovered ? '0.25px' : '0px',
|
|
4429
4457
|
}}
|
|
4430
4458
|
data-group-label={box.key}
|
|
4431
4459
|
data-group-label-pinned={isPinned ? 'true' : 'false'}
|
|
@@ -9043,10 +9071,37 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
9043
9071
|
fontWeight="500"
|
|
9044
9072
|
data-legend-row-label={row.key}
|
|
9045
9073
|
data-legend-row-label-pinned={isPinned ? 'true' : 'false'}
|
|
9074
|
+
data-legend-row-label-hovered={!isPinned && hoveredStatus === row.key ? 'true' : 'false'}
|
|
9046
9075
|
data-legend-row-label-font-weight="500"
|
|
9076
|
+
/* Round 433 / Loop: legend-row text extends from
|
|
9077
|
+
R219's pin-only letter-spacing (0px → 0.5px on
|
|
9078
|
+
isPinned) to a 3-tier scale matching the R432
|
|
9079
|
+
group-label pattern:
|
|
9080
|
+
rest → 0px
|
|
9081
|
+
hoveredStatus → 0.25px ← this round
|
|
9082
|
+
isPinned → 0.5px (R219 preserved)
|
|
9083
|
+
Pre-R433 hover already brightened the fill
|
|
9084
|
+
(hoveredStatus===row.key || isPinned matches the
|
|
9085
|
+
legendHeadline branch) but the letter-form
|
|
9086
|
+
stayed dead-typographic on transient hover —
|
|
9087
|
+
only the pin tier carried a kerning signature.
|
|
9088
|
+
R433 adds the missing mid tier so hover
|
|
9089
|
+
telegraphs through BOTH fill brighten AND a
|
|
9090
|
+
subtle 0.25-px kerning spread, mirroring
|
|
9091
|
+
R427/R431/R432 at legend-row scope. Pin tier
|
|
9092
|
+
still wins so the locked vs preview distinction
|
|
9093
|
+
at the type level stays intact.
|
|
9094
|
+
Hover-letter-spacing family extension (9 anchors
|
|
9095
|
+
now): R344/R345/R347/R351/R420/R427/R431/R432/
|
|
9096
|
+
R433. 3-tier letter-spacing pattern now spans 4
|
|
9097
|
+
surfaces (node-alias R427, edge-badge R431,
|
|
9098
|
+
group-label R432, legend-row R433). R55 fill
|
|
9099
|
+
150ms + R219 letter-spacing 150ms transition
|
|
9100
|
+
untouched — additive conditional case. */
|
|
9047
9101
|
style={{
|
|
9048
9102
|
transition: 'fill 150ms ease-out, letter-spacing 150ms ease-out',
|
|
9049
|
-
letterSpacing: isPinned ? '0.5px' :
|
|
9103
|
+
letterSpacing: isPinned ? '0.5px' :
|
|
9104
|
+
hoveredStatus === row.key ? '0.25px' : '0px',
|
|
9050
9105
|
}}
|
|
9051
9106
|
>{row.label}</text>
|
|
9052
9107
|
{/* R95: live count anchored to the right edge of the
|
package/package.json
CHANGED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/* Round 432 verification: group label text 3-tier letter-spacing —
|
|
2
|
+
* rest 0 / hover 0.25 / pinned 0.5. Extends R427 alias 3-tier and
|
|
3
|
+
* R431 edge-badge 3-tier to group-label scope. Hover-letter-spacing
|
|
4
|
+
* family now 8 anchors.
|
|
5
|
+
*
|
|
6
|
+
* Contract:
|
|
7
|
+
* - need >1 alias prefix group to mount group boxes (grid layout)
|
|
8
|
+
* - rest: every group-label reports letter-spacing '0px' (or
|
|
9
|
+
* 'normal' computed), pinned=false, hovered=false
|
|
10
|
+
* - hover one label-hit: that group-label reports letter-spacing
|
|
11
|
+
* '0.25px' + hovered=true (R432 mid tier)
|
|
12
|
+
* - source-file probe confirms 3-tier conditional
|
|
13
|
+
*/
|
|
14
|
+
import { chromium } from 'playwright';
|
|
15
|
+
import { readFileSync } from 'node:fs';
|
|
16
|
+
|
|
17
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
18
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
19
|
+
|
|
20
|
+
const browser = await chromium.launch({ headless: true });
|
|
21
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
22
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
23
|
+
await ctx.addInitScript(() => {
|
|
24
|
+
// Force grid layout (the layout toggle persists in localStorage)
|
|
25
|
+
try {
|
|
26
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
27
|
+
localStorage.setItem('anet-topo-layout', 'grid');
|
|
28
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
29
|
+
} catch {}
|
|
30
|
+
});
|
|
31
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
32
|
+
const r = await route.fetch();
|
|
33
|
+
const b = await r.json();
|
|
34
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
35
|
+
const mk = (alias, status) => ({
|
|
36
|
+
alias, status, 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
|
+
// Sessions with alias prefix groups: alpha·X / beta·X / gamma·X
|
|
41
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
42
|
+
mk('alpha·1', 'working'),
|
|
43
|
+
mk('alpha·2', 'idle'),
|
|
44
|
+
mk('beta·1', 'working'),
|
|
45
|
+
mk('beta·2', 'idle'),
|
|
46
|
+
mk('gamma·1', 'working'),
|
|
47
|
+
mk('gamma·2', 'idle'),
|
|
48
|
+
] } });
|
|
49
|
+
});
|
|
50
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
51
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
52
|
+
|
|
53
|
+
const page = await ctx.newPage();
|
|
54
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
55
|
+
await page.waitForSelector('[data-group-label]', { timeout: 15000 });
|
|
56
|
+
await page.waitForTimeout(400);
|
|
57
|
+
|
|
58
|
+
const readAll = () => page.evaluate(() => {
|
|
59
|
+
const ts = [...document.querySelectorAll('[data-group-label]')];
|
|
60
|
+
return ts.map(t => ({
|
|
61
|
+
key: t.getAttribute('data-group-label'),
|
|
62
|
+
ls: t.style.letterSpacing,
|
|
63
|
+
pinned: t.getAttribute('data-group-label-pinned'),
|
|
64
|
+
hovered: t.getAttribute('data-group-label-hovered'),
|
|
65
|
+
}));
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const rest = await readAll();
|
|
69
|
+
const firstKey = rest[0]?.key;
|
|
70
|
+
let hover = null;
|
|
71
|
+
if (firstKey) {
|
|
72
|
+
const box = await page.evaluate((key) => {
|
|
73
|
+
// Hover the label-hit <g> wrapper which dispatches onPointerEnter →
|
|
74
|
+
// setHoveredGroupLabel(key). The associated <text> shares the same
|
|
75
|
+
// box.key as data-group-label.
|
|
76
|
+
const hit = document.querySelector(`[data-group-label-hit="${key}"]`);
|
|
77
|
+
if (!hit) return null;
|
|
78
|
+
const b = hit.getBoundingClientRect();
|
|
79
|
+
return { x: b.x + b.width / 2, y: b.y + b.height / 2 };
|
|
80
|
+
}, firstKey);
|
|
81
|
+
if (box) {
|
|
82
|
+
await page.mouse.move(box.x, box.y);
|
|
83
|
+
await page.waitForTimeout(300);
|
|
84
|
+
hover = await readAll();
|
|
85
|
+
await page.mouse.move(0, 0);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const fileText = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
90
|
+
const sourceWired = /letterSpacing:\s*isPinned\s*\?\s*'0\.5px'\s*:\s*\n?\s*isHovered\s*\?\s*'0\.25px'\s*:\s*'0px'/.test(fileText);
|
|
91
|
+
|
|
92
|
+
await browser.close();
|
|
93
|
+
|
|
94
|
+
const isRest = (ls) => ls === '0px' || ls === '' || ls === 'normal';
|
|
95
|
+
|
|
96
|
+
const hoveredEntry = hover?.find(r => r.key === firstKey);
|
|
97
|
+
const othersRest = hover ? hover.filter(r => r.key !== firstKey).every(r => isRest(r.ls)) : false;
|
|
98
|
+
|
|
99
|
+
const results = {
|
|
100
|
+
rest_count_gte_2: rest.length >= 2,
|
|
101
|
+
rest_all_zero: rest.every(r => isRest(r.ls)),
|
|
102
|
+
rest_all_pinned_false: rest.every(r => r.pinned === 'false'),
|
|
103
|
+
rest_all_hovered_false: rest.every(r => r.hovered === 'false'),
|
|
104
|
+
hover_target_ls_0_25: hoveredEntry?.ls === '0.25px',
|
|
105
|
+
hover_target_hovered_attr: hoveredEntry?.hovered === 'true',
|
|
106
|
+
hover_others_stay_rest: othersRest,
|
|
107
|
+
source_three_tier_wired: sourceWired,
|
|
108
|
+
};
|
|
109
|
+
const ok = Object.values(results).every(Boolean);
|
|
110
|
+
console.log(`${ok ? '✅' : '❌'} group label 3-tier letter-spacing:`, JSON.stringify(results),
|
|
111
|
+
'\n rest count:', rest.length,
|
|
112
|
+
'\n hover target:', JSON.stringify(hoveredEntry));
|
|
113
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* Round 433 verification: legend-row text 3-tier letter-spacing —
|
|
2
|
+
* rest 0 / hover 0.25 / pinned 0.5. Mirror of R432 group-label pattern
|
|
3
|
+
* at legend-row scope. Hover-letter-spacing family extension (9 anchors).
|
|
4
|
+
*
|
|
5
|
+
* Contract:
|
|
6
|
+
* - 3 legend rows mount (working / idle / offline)
|
|
7
|
+
* - rest: every legend-row-label reports letter-spacing '0px' +
|
|
8
|
+
* hovered='false' + pinned='false'
|
|
9
|
+
* - hover one legend-status group: that row's label letter-spacing
|
|
10
|
+
* '0.25px' + hovered='true'
|
|
11
|
+
* - siblings stay rest
|
|
12
|
+
* - source-file probe confirms 3-tier conditional + transition kept
|
|
13
|
+
*/
|
|
14
|
+
import { chromium } from 'playwright';
|
|
15
|
+
import { readFileSync } from 'node:fs';
|
|
16
|
+
|
|
17
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
18
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
19
|
+
|
|
20
|
+
const browser = await chromium.launch({ headless: true });
|
|
21
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
22
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
23
|
+
await ctx.addInitScript(() => {
|
|
24
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
25
|
+
});
|
|
26
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
27
|
+
const r = await route.fetch();
|
|
28
|
+
const b = await r.json();
|
|
29
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
30
|
+
const mk = (alias, status) => ({
|
|
31
|
+
alias, status, model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
32
|
+
network_id: nid, project_dir: null,
|
|
33
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
34
|
+
});
|
|
35
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
36
|
+
mk('alpha', 'working'),
|
|
37
|
+
mk('beta', 'working'),
|
|
38
|
+
mk('gamma', 'idle'),
|
|
39
|
+
] } });
|
|
40
|
+
});
|
|
41
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
42
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
43
|
+
|
|
44
|
+
const page = await ctx.newPage();
|
|
45
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
46
|
+
await page.waitForSelector('[data-legend-row-label]', { timeout: 15000 });
|
|
47
|
+
await page.waitForTimeout(400);
|
|
48
|
+
|
|
49
|
+
const readAll = () => page.evaluate(() => {
|
|
50
|
+
const ts = [...document.querySelectorAll('[data-legend-row-label]')];
|
|
51
|
+
return ts.map(t => ({
|
|
52
|
+
key: t.getAttribute('data-legend-row-label'),
|
|
53
|
+
ls: t.style.letterSpacing,
|
|
54
|
+
pinned: t.getAttribute('data-legend-row-label-pinned'),
|
|
55
|
+
hovered: t.getAttribute('data-legend-row-label-hovered'),
|
|
56
|
+
}));
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
const rest = await readAll();
|
|
60
|
+
|
|
61
|
+
// Hover the 'working' legend-status group wrapper (its onMouseEnter
|
|
62
|
+
// triggers setHoveredStatus('working') which flips the label tween).
|
|
63
|
+
let hover = null;
|
|
64
|
+
const box = await page.evaluate(() => {
|
|
65
|
+
const g = document.querySelector('[data-legend-status="working"]');
|
|
66
|
+
if (!g) return null;
|
|
67
|
+
const b = g.getBoundingClientRect();
|
|
68
|
+
return { x: b.x + b.width / 2, y: b.y + b.height / 2 };
|
|
69
|
+
});
|
|
70
|
+
if (box) {
|
|
71
|
+
await page.mouse.move(box.x, box.y);
|
|
72
|
+
await page.waitForTimeout(300);
|
|
73
|
+
hover = await readAll();
|
|
74
|
+
await page.mouse.move(0, 0);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const fileText = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
78
|
+
const sourceWired = /letterSpacing:\s*isPinned\s*\?\s*'0\.5px'\s*:\s*\n?\s*hoveredStatus\s*===\s*row\.key\s*\?\s*'0\.25px'\s*:\s*'0px'/.test(fileText);
|
|
79
|
+
|
|
80
|
+
await browser.close();
|
|
81
|
+
|
|
82
|
+
const isRest = (ls) => ls === '0px' || ls === '' || ls === 'normal';
|
|
83
|
+
|
|
84
|
+
const hoveredEntry = hover?.find(r => r.key === 'working');
|
|
85
|
+
const othersStayRest = hover ? hover.filter(r => r.key !== 'working').every(r => isRest(r.ls) && r.hovered === 'false') : false;
|
|
86
|
+
|
|
87
|
+
const results = {
|
|
88
|
+
rest_three_rows: rest.length === 3,
|
|
89
|
+
rest_all_zero: rest.every(r => isRest(r.ls)),
|
|
90
|
+
rest_all_pinned_false: rest.every(r => r.pinned === 'false'),
|
|
91
|
+
rest_all_hovered_false: rest.every(r => r.hovered === 'false'),
|
|
92
|
+
hover_target_ls_0_25: hoveredEntry?.ls === '0.25px',
|
|
93
|
+
hover_target_hovered_true: hoveredEntry?.hovered === 'true',
|
|
94
|
+
hover_others_stay_rest: othersStayRest,
|
|
95
|
+
source_three_tier_wired: sourceWired,
|
|
96
|
+
};
|
|
97
|
+
const ok = Object.values(results).every(Boolean);
|
|
98
|
+
console.log(`${ok ? '✅' : '❌'} legend-row 3-tier letter-spacing:`, JSON.stringify(results),
|
|
99
|
+
'\n rest:', JSON.stringify(rest),
|
|
100
|
+
'\n hover target:', JSON.stringify(hoveredEntry));
|
|
101
|
+
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{B2VJCBlP2wQICyJWSJlVX → sB4vKuT99_M_9_ieDR-jA}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|