@sleep2agi/agent-network-dashboard 0.5.3-preview.16 → 0.5.3-preview.18
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 +5 -5
- 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/[root-of-the-server]__0sv~g.o._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +3 -3
- 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/{07xzde-9s36-x.js → 0ha~3ah2r1rb1.js} +1 -1
- package/.next/static/chunks/{0fbjebg75.xaa.js → 0r19pt1ihol7g.js} +1 -1
- package/.next/static/chunks/{0rov_~mp_s.55.js → 0u4p3l2hq_1kj.js} +3 -3
- package/.next/static/chunks/{0c5oi2xfb5f-v.js → 0z6a3b81h8btk.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +65 -1
- package/package.json +1 -1
- package/scripts/topo-orphan-box-dash-test.mjs +89 -0
- package/scripts/topo-pinned-aspect-test.mjs +89 -0
- /package/.next/static/{RmgW0P1IsJVjZHejw0-fy → dLzRHfUo59WgRQX9Mbfuk}/_buildManifest.js +0 -0
- /package/.next/static/{RmgW0P1IsJVjZHejw0-fy → dLzRHfUo59WgRQX9Mbfuk}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{RmgW0P1IsJVjZHejw0-fy → dLzRHfUo59WgRQX9Mbfuk}/_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.3-preview.16"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.3-preview.18"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
|
package/.next/trace
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":288,"timestamp":196565613541,"id":4,"parentId":1,"tags":{},"startTime":1779004537860,"traceId":"4694117cf6390c16"},{"name":"load-custom-routes","duration":646,"timestamp":196565614058,"id":5,"parentId":1,"tags":{},"startTime":1779004537860,"traceId":"4694117cf6390c16"},{"name":"create-dist-dir","duration":1047,"timestamp":196565614769,"id":6,"parentId":1,"tags":{},"startTime":1779004537861,"traceId":"4694117cf6390c16"},{"name":"clean","duration":36322,"timestamp":196565616796,"id":7,"parentId":1,"tags":{},"startTime":1779004537863,"traceId":"4694117cf6390c16"},{"name":"discover-routes","duration":11611,"timestamp":196565746326,"id":8,"parentId":1,"tags":{},"startTime":1779004537993,"traceId":"4694117cf6390c16"},{"name":"create-root-mapping","duration":150,"timestamp":196565758034,"id":9,"parentId":1,"tags":{},"startTime":1779004538004,"traceId":"4694117cf6390c16"},{"name":"generate-route-types","duration":33150,"timestamp":196565761499,"id":10,"parentId":1,"tags":{},"startTime":1779004538008,"traceId":"4694117cf6390c16"},{"name":"public-dir-conflict-check","duration":158,"timestamp":196565794772,"id":11,"parentId":1,"tags":{},"startTime":1779004538041,"traceId":"4694117cf6390c16"},{"name":"generate-routes-manifest","duration":5714,"timestamp":196565795134,"id":12,"parentId":1,"tags":{},"startTime":1779004538041,"traceId":"4694117cf6390c16"},{"name":"run-turbopack","duration":8402926,"timestamp":196565828361,"id":14,"parentId":1,"tags":{},"startTime":1779004538075,"traceId":"4694117cf6390c16"},{"name":"turbopack-build-events","duration":117,"timestamp":196566154930,"id":15,"parentId":1,"tags":{},"startTime":1779004538401,"traceId":"4694117cf6390c16"},{"name":"run-typescript","duration":10719571,"timestamp":196574239985,"id":16,"parentId":1,"tags":{},"startTime":1779004546486,"traceId":"4694117cf6390c16"},{"name":"generate-required-server-files","duration":3183,"timestamp":196584960959,"id":18,"parentId":1,"tags":{},"startTime":1779004557207,"traceId":"4694117cf6390c16"},{"name":"check-static-error-page","duration":23480,"timestamp":196585161043,"id":20,"parentId":19,"tags":{},"startTime":1779004557407,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":494213,"timestamp":196585190920,"id":65,"parentId":22,"tags":{},"startTime":1779004557437,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":516709,"timestamp":196585168585,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1779004557415,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":591572,"timestamp":196585191564,"id":70,"parentId":29,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":610485,"timestamp":196585172762,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1779004557419,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":603419,"timestamp":196585191699,"id":71,"parentId":30,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":622239,"timestamp":196585172969,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1779004557419,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":623681,"timestamp":196585191757,"id":72,"parentId":32,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":640292,"timestamp":196585175233,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1779004557422,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":627480,"timestamp":196585191910,"id":73,"parentId":33,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":644103,"timestamp":196585175383,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1779004557422,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":675582,"timestamp":196585191977,"id":74,"parentId":34,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":692124,"timestamp":196585175528,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1779004557422,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":678066,"timestamp":196585192034,"id":75,"parentId":35,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":694501,"timestamp":196585175671,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1779004557422,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":681081,"timestamp":196585192049,"id":76,"parentId":36,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":696947,"timestamp":196585176232,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1779004557423,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":684334,"timestamp":196585192074,"id":77,"parentId":37,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":700020,"timestamp":196585176443,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1779004557423,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":690989,"timestamp":196585192098,"id":79,"parentId":39,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":706431,"timestamp":196585176708,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1779004557423,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":693107,"timestamp":196585191154,"id":67,"parentId":26,"tags":{},"startTime":1779004557437,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":711949,"timestamp":196585172356,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1779004557419,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":695216,"timestamp":196585192110,"id":80,"parentId":40,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":710541,"timestamp":196585176833,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1779004557423,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":695489,"timestamp":196585192089,"id":78,"parentId":38,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":711019,"timestamp":196585176598,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1779004557423,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":700731,"timestamp":196585192133,"id":82,"parentId":44,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":715243,"timestamp":196585177674,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1779004557424,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":704923,"timestamp":196585192142,"id":83,"parentId":45,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":719286,"timestamp":196585177836,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1779004557427,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":705188,"timestamp":196585192122,"id":81,"parentId":42,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":720162,"timestamp":196585177194,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1779004557423,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":705447,"timestamp":196585192153,"id":84,"parentId":46,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":717228,"timestamp":196585180417,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1779004557427,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":706537,"timestamp":196585192169,"id":85,"parentId":47,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":718159,"timestamp":196585180588,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1779004557427,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":710534,"timestamp":196585192188,"id":87,"parentId":49,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":722488,"timestamp":196585180846,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1779004557427,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":711326,"timestamp":196585192200,"id":88,"parentId":50,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":722622,"timestamp":196585180941,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1779004557427,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":721500,"timestamp":196585191331,"id":69,"parentId":28,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":740259,"timestamp":196585172623,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1779004557419,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":723785,"timestamp":196585191058,"id":66,"parentId":25,"tags":{},"startTime":1779004557437,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":742733,"timestamp":196585172168,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1779004557418,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":711380,"timestamp":196585204182,"id":90,"parentId":24,"tags":{},"startTime":1779004557450,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":746590,"timestamp":196585169025,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1779004557415,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":724732,"timestamp":196585191250,"id":68,"parentId":27,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":743564,"timestamp":196585172486,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1779004557419,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":712114,"timestamp":196585205590,"id":91,"parentId":31,"tags":{},"startTime":1779004557452,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":742903,"timestamp":196585174845,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1779004557421,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":739119,"timestamp":196585192176,"id":86,"parentId":48,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":750654,"timestamp":196585180699,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1779004557427,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":721477,"timestamp":196585210406,"id":93,"parentId":43,"tags":{},"startTime":1779004557457,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":754582,"timestamp":196585177351,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1779004557424,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":726224,"timestamp":196585209072,"id":92,"parentId":41,"tags":{},"startTime":1779004557455,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":758428,"timestamp":196585176911,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1779004557423,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":751055,"timestamp":196585192211,"id":89,"parentId":51,"tags":{},"startTime":1779004557438,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":762268,"timestamp":196585181056,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1779004557427,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":795063,"timestamp":196585190506,"id":64,"parentId":21,"tags":{},"startTime":1779004557437,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":820864,"timestamp":196585164780,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1779004557411,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":733563,"timestamp":196585260781,"id":100,"parentId":58,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":811524,"timestamp":196585182893,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1779004557429,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":749032,"timestamp":196585260704,"id":95,"parentId":52,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":828353,"timestamp":196585181465,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1779004557428,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":753092,"timestamp":196585260798,"id":101,"parentId":59,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":830834,"timestamp":196585183146,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1779004557429,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":757827,"timestamp":196585260833,"id":102,"parentId":61,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":834724,"timestamp":196585183990,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1779004557430,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":765213,"timestamp":196585260860,"id":104,"parentId":63,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":841880,"timestamp":196585184294,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1779004557431,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":765688,"timestamp":196585260645,"id":94,"parentId":23,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":857540,"timestamp":196585168821,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1779004557415,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":768745,"timestamp":196585260849,"id":103,"parentId":62,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":845487,"timestamp":196585184158,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1779004557430,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":786129,"timestamp":196585260750,"id":98,"parentId":55,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":865024,"timestamp":196585181926,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1779004557428,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":790590,"timestamp":196585260879,"id":105,"parentId":60,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":868205,"timestamp":196585183322,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1779004557430,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":790889,"timestamp":196585260895,"id":106,"parentId":57,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":869491,"timestamp":196585182342,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1779004557429,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":791369,"timestamp":196585260722,"id":96,"parentId":53,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":870503,"timestamp":196585181616,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1779004557428,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":794309,"timestamp":196585260735,"id":97,"parentId":54,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":873336,"timestamp":196585181748,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1779004557428,"traceId":"4694117cf6390c16"},{"name":"is-page-static","duration":800986,"timestamp":196585260766,"id":99,"parentId":56,"tags":{},"startTime":1779004557507,"traceId":"4694117cf6390c16"},{"name":"check-page","duration":879672,"timestamp":196585182122,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1779004557428,"traceId":"4694117cf6390c16"},{"name":"static-check","duration":905407,"timestamp":196585156441,"id":19,"parentId":1,"tags":{},"startTime":1779004557403,"traceId":"4694117cf6390c16"}]
|
|
2
|
-
[{"name":"write-routes-manifest","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":418,"timestamp":197493349519,"id":4,"parentId":1,"tags":{},"startTime":1779005465596,"traceId":"bbe12d27192638d6"},{"name":"load-custom-routes","duration":646,"timestamp":197493351969,"id":5,"parentId":1,"tags":{},"startTime":1779005465598,"traceId":"bbe12d27192638d6"},{"name":"create-dist-dir","duration":3384,"timestamp":197493352673,"id":6,"parentId":1,"tags":{},"startTime":1779005465599,"traceId":"bbe12d27192638d6"},{"name":"clean","duration":63179,"timestamp":197493356990,"id":7,"parentId":1,"tags":{},"startTime":1779005465603,"traceId":"bbe12d27192638d6"},{"name":"discover-routes","duration":38579,"timestamp":197493550986,"id":8,"parentId":1,"tags":{},"startTime":1779005465797,"traceId":"bbe12d27192638d6"},{"name":"create-root-mapping","duration":168,"timestamp":197493589652,"id":9,"parentId":1,"tags":{},"startTime":1779005465836,"traceId":"bbe12d27192638d6"},{"name":"generate-route-types","duration":62821,"timestamp":197493593145,"id":10,"parentId":1,"tags":{},"startTime":1779005465839,"traceId":"bbe12d27192638d6"},{"name":"public-dir-conflict-check","duration":208,"timestamp":197493675505,"id":11,"parentId":1,"tags":{},"startTime":1779005465922,"traceId":"bbe12d27192638d6"},{"name":"generate-routes-manifest","duration":12492,"timestamp":197493675938,"id":12,"parentId":1,"tags":{},"startTime":1779005465922,"traceId":"bbe12d27192638d6"},{"name":"run-turbopack","duration":9144670,"timestamp":197493711379,"id":14,"parentId":1,"tags":{},"startTime":1779005465958,"traceId":"bbe12d27192638d6"},{"name":"turbopack-build-events","duration":101,"timestamp":197494079485,"id":15,"parentId":1,"tags":{},"startTime":1779005466326,"traceId":"bbe12d27192638d6"},{"name":"run-typescript","duration":12873263,"timestamp":197502874388,"id":16,"parentId":1,"tags":{},"startTime":1779005475121,"traceId":"bbe12d27192638d6"},{"name":"generate-required-server-files","duration":3067,"timestamp":197515749073,"id":18,"parentId":1,"tags":{},"startTime":1779005487995,"traceId":"bbe12d27192638d6"},{"name":"check-static-error-page","duration":19002,"timestamp":197515989553,"id":20,"parentId":19,"tags":{},"startTime":1779005488236,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":744693,"timestamp":197516013512,"id":65,"parentId":22,"tags":{},"startTime":1779005488260,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":764744,"timestamp":197515993633,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1779005488240,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":819906,"timestamp":197516017493,"id":69,"parentId":28,"tags":{},"startTime":1779005488264,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":840238,"timestamp":197515997262,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1779005488244,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":833353,"timestamp":197516017996,"id":72,"parentId":32,"tags":{},"startTime":1779005488264,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":853449,"timestamp":197515997977,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1779005488244,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":907994,"timestamp":197516018181,"id":73,"parentId":33,"tags":{},"startTime":1779005488264,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":928112,"timestamp":197515998145,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1779005488244,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":934104,"timestamp":197516018257,"id":74,"parentId":34,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":954162,"timestamp":197515998283,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1779005488245,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":945016,"timestamp":197516018287,"id":75,"parentId":35,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":964972,"timestamp":197515998408,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1779005488245,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":954464,"timestamp":197516018306,"id":76,"parentId":36,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":973937,"timestamp":197515998925,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1779005488245,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":964026,"timestamp":197516018330,"id":77,"parentId":37,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":983294,"timestamp":197515999131,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1779005488245,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":973803,"timestamp":197516018348,"id":78,"parentId":38,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":992946,"timestamp":197515999280,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1779005488246,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":983704,"timestamp":197516018362,"id":79,"parentId":39,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1002760,"timestamp":197515999375,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1779005488246,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":989186,"timestamp":197516017378,"id":68,"parentId":27,"tags":{},"startTime":1779005488264,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1009510,"timestamp":197515997113,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1779005488243,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":998684,"timestamp":197516013049,"id":64,"parentId":21,"tags":{},"startTime":1779005488259,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1021633,"timestamp":197515991130,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1779005488237,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":995424,"timestamp":197516018376,"id":80,"parentId":40,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1014383,"timestamp":197515999474,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1779005488246,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1003790,"timestamp":197516018385,"id":81,"parentId":42,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1022412,"timestamp":197515999836,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1779005488246,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1026093,"timestamp":197516017758,"id":70,"parentId":29,"tags":{},"startTime":1779005488264,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1046548,"timestamp":197515997385,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1779005488244,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1033760,"timestamp":197516018414,"id":83,"parentId":45,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1050248,"timestamp":197516001997,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1779005488250,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1037277,"timestamp":197516017057,"id":66,"parentId":25,"tags":{},"startTime":1779005488263,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1057663,"timestamp":197515996734,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1779005488243,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1039330,"timestamp":197516018441,"id":85,"parentId":47,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1053645,"timestamp":197516004200,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1779005488251,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1041018,"timestamp":197516018469,"id":87,"parentId":49,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1055066,"timestamp":197516004461,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1779005488251,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1042464,"timestamp":197516018428,"id":84,"parentId":46,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1056903,"timestamp":197516004028,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1779005488250,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1061999,"timestamp":197516018455,"id":86,"parentId":48,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1076169,"timestamp":197516004345,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1779005488251,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1053720,"timestamp":197516036575,"id":90,"parentId":24,"tags":{},"startTime":1779005488283,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1096160,"timestamp":197515994191,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1779005488240,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1055562,"timestamp":197516037832,"id":91,"parentId":31,"tags":{},"startTime":1779005488284,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1095775,"timestamp":197515997675,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1779005488244,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1065896,"timestamp":197516047582,"id":93,"parentId":43,"tags":{},"startTime":1779005488294,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1113574,"timestamp":197515999974,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1779005488246,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1102602,"timestamp":197516018493,"id":89,"parentId":51,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1116534,"timestamp":197516004635,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1779005488251,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1083840,"timestamp":197516038722,"id":92,"parentId":41,"tags":{},"startTime":1779005488285,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1123054,"timestamp":197515999571,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1779005488246,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1117245,"timestamp":197516018478,"id":88,"parentId":50,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1131231,"timestamp":197516004550,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1779005488251,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1139212,"timestamp":197516017250,"id":67,"parentId":26,"tags":{},"startTime":1779005488264,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1159591,"timestamp":197515996936,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1779005488243,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1158492,"timestamp":197516017926,"id":71,"parentId":30,"tags":{},"startTime":1779005488264,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1178934,"timestamp":197515997551,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1779005488244,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1182216,"timestamp":197516018400,"id":82,"parentId":44,"tags":{},"startTime":1779005488265,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1198831,"timestamp":197516001856,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1779005488248,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1143899,"timestamp":197516062523,"id":97,"parentId":54,"tags":{},"startTime":1779005488309,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1200945,"timestamp":197516005541,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1779005488252,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1145715,"timestamp":197516062513,"id":96,"parentId":53,"tags":{},"startTime":1779005488309,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1202916,"timestamp":197516005364,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1779005488252,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1152093,"timestamp":197516062950,"id":101,"parentId":59,"tags":{},"startTime":1779005488309,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1207775,"timestamp":197516007343,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1779005488254,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1158776,"timestamp":197516063038,"id":102,"parentId":61,"tags":{},"startTime":1779005488309,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1213871,"timestamp":197516007995,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1779005488254,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1168683,"timestamp":197516063107,"id":103,"parentId":62,"tags":{},"startTime":1779005488309,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1223696,"timestamp":197516008171,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1779005488254,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1168934,"timestamp":197516063141,"id":104,"parentId":63,"tags":{},"startTime":1779005488309,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1223810,"timestamp":197516008315,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1779005488255,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1170137,"timestamp":197516062631,"id":100,"parentId":58,"tags":{},"startTime":1779005488309,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1225707,"timestamp":197516007116,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1779005488253,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1170290,"timestamp":197516075199,"id":106,"parentId":57,"tags":{},"startTime":1779005488321,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1239121,"timestamp":197516006416,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1779005488253,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1183960,"timestamp":197516063158,"id":105,"parentId":60,"tags":{},"startTime":1779005488309,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1239641,"timestamp":197516007525,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1779005488254,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1194714,"timestamp":197516062460,"id":94,"parentId":23,"tags":{},"startTime":1779005488309,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1263309,"timestamp":197515993922,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1779005488240,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1196807,"timestamp":197516062497,"id":95,"parentId":52,"tags":{},"startTime":1779005488309,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1254201,"timestamp":197516005154,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1779005488251,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1200646,"timestamp":197516062613,"id":99,"parentId":56,"tags":{},"startTime":1779005488309,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1257185,"timestamp":197516006114,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1779005488252,"traceId":"bbe12d27192638d6"},{"name":"is-page-static","duration":1217741,"timestamp":197516062537,"id":98,"parentId":55,"tags":{},"startTime":1779005488309,"traceId":"bbe12d27192638d6"},{"name":"check-page","duration":1274507,"timestamp":197516005835,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1779005488252,"traceId":"bbe12d27192638d6"},{"name":"static-check","duration":1292027,"timestamp":197515988360,"id":19,"parentId":1,"tags":{},"startTime":1779005488235,"traceId":"bbe12d27192638d6"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":555,"timestamp":197517294070,"id":108,"parentId":1,"tags":{},"startTime":1779005489540,"traceId":"bbe12d27192638d6"},{"name":"load-dotenv","duration":91,"timestamp":197517313955,"id":111,"parentId":110,"tags":{},"startTime":1779005489560,"traceId":"bbe12d27192638d6"},{"name":"run-export-path-map","duration":951,"timestamp":197517317915,"id":112,"parentId":110,"tags":{},"startTime":1779005489564,"traceId":"bbe12d27192638d6"},{"name":"next-export","duration":634286,"timestamp":197517311958,"id":110,"parentId":1,"tags":{},"startTime":1779005489558,"traceId":"bbe12d27192638d6"},{"name":"move-exported-app-not-found-","duration":736,"timestamp":197517951289,"id":113,"parentId":109,"tags":{},"startTime":1779005490198,"traceId":"bbe12d27192638d6"},{"name":"move-exported-app-global-error-","duration":522,"timestamp":197517952171,"id":114,"parentId":109,"tags":{},"startTime":1779005490198,"traceId":"bbe12d27192638d6"},{"name":"static-generation","duration":654526,"timestamp":197517300312,"id":109,"parentId":1,"tags":{},"startTime":1779005489547,"traceId":"bbe12d27192638d6"},{"name":"write-routes-manifest","duration":394,"timestamp":197517955105,"id":115,"parentId":1,"tags":{},"startTime":1779005490201,"traceId":"bbe12d27192638d6"},{"name":"print-tree-view","duration":3909,"timestamp":197517970474,"id":116,"parentId":1,"tags":{},"startTime":1779005490217,"traceId":"bbe12d27192638d6"},{"name":"write-route-bundle-stats","duration":13561,"timestamp":197517974413,"id":117,"parentId":1,"tags":{},"startTime":1779005490221,"traceId":"bbe12d27192638d6"},{"name":"telemetry-flush","duration":20062,"timestamp":197517987999,"id":118,"parentId":1,"tags":{},"startTime":1779005490234,"traceId":"bbe12d27192638d6"},{"name":"next-build","duration":24752777,"timestamp":197493255311,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779005465502,"traceId":"bbe12d27192638d6"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":9144670,"timestamp":197493711379,"id":14,"parentId":1,"tags":{},"startTime":1779005465958,"traceId":"bbe12d27192638d6"},{"name":"turbopack-build-events","duration":101,"timestamp":197494079485,"id":15,"parentId":1,"tags":{},"startTime":1779005466326,"traceId":"bbe12d27192638d6"},{"name":"run-typescript","duration":12873263,"timestamp":197502874388,"id":16,"parentId":1,"tags":{},"startTime":1779005475121,"traceId":"bbe12d27192638d6"},{"name":"static-check","duration":1292027,"timestamp":197515988360,"id":19,"parentId":1,"tags":{},"startTime":1779005488235,"traceId":"bbe12d27192638d6"},{"name":"static-generation","duration":654526,"timestamp":197517300312,"id":109,"parentId":1,"tags":{},"startTime":1779005489547,"traceId":"bbe12d27192638d6"},{"name":"telemetry-flush","duration":20062,"timestamp":197517987999,"id":118,"parentId":1,"tags":{},"startTime":1779005490234,"traceId":"bbe12d27192638d6"},{"name":"next-build","duration":24752777,"timestamp":197493255311,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779005465502,"traceId":"bbe12d27192638d6"}]
|
|
@@ -3664,6 +3664,41 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3664
3664
|
categorical) — separate dedicated attrs if/when needed.
|
|
3665
3665
|
Root svg attribute set now 11 attrs total. */
|
|
3666
3666
|
data-topo-hovered-alias={hoveredAlias ?? ''}
|
|
3667
|
+
/* Round 504 / Loop — categorical pin-aspect attr paired with
|
|
3668
|
+
R467 any-pinned boolean and R488 hovered-alias identity.
|
|
3669
|
+
Pre-R504 the canvas state surface set told tests WHETHER
|
|
3670
|
+
any pin was active (R467 boolean) but tests had to enumerate
|
|
3671
|
+
4 individual state vars to determine WHICH pin axis fired:
|
|
3672
|
+
pinnedStatus legend-row status filter
|
|
3673
|
+
pinnedGroup prefix-cluster lock
|
|
3674
|
+
pinnedVendor vendor-chip filter
|
|
3675
|
+
pinnedEdgeKey edge-focus
|
|
3676
|
+
R504 surfaces the active aspect as a single categorical
|
|
3677
|
+
attribute: data-topo-pinned-aspect ∈
|
|
3678
|
+
'none' no pin active
|
|
3679
|
+
'status' pinnedStatus only
|
|
3680
|
+
'group' pinnedGroup only
|
|
3681
|
+
'vendor' pinnedVendor only
|
|
3682
|
+
'edge' pinnedEdgeKey only
|
|
3683
|
+
'multi' 2 or more pins active simultaneously
|
|
3684
|
+
('multi' covers cross-cutting filters — e.g. user pins
|
|
3685
|
+
status='working' AND vendor='claude' simultaneously to
|
|
3686
|
+
narrow the canvas. Each pin axis is independently
|
|
3687
|
+
dismissable via Esc / individual chip click, so multi
|
|
3688
|
+
states are reachable and worth surfacing as a distinct
|
|
3689
|
+
tier.)
|
|
3690
|
+
13th attr in the canvas state surface set after R502.
|
|
3691
|
+
Composed from 4 existing state vars — no new state. */
|
|
3692
|
+
data-topo-pinned-aspect={(() => {
|
|
3693
|
+
const aspects: string[] = [];
|
|
3694
|
+
if (pinnedStatus) aspects.push('status');
|
|
3695
|
+
if (pinnedGroup) aspects.push('group');
|
|
3696
|
+
if (pinnedVendor) aspects.push('vendor');
|
|
3697
|
+
if (pinnedEdgeKey) aspects.push('edge');
|
|
3698
|
+
if (aspects.length === 0) return 'none';
|
|
3699
|
+
if (aspects.length === 1) return aspects[0];
|
|
3700
|
+
return 'multi';
|
|
3701
|
+
})()}
|
|
3667
3702
|
/* Round 466 / Loop — aggregate hover signal on the root SVG.
|
|
3668
3703
|
Exposes a single boolean `data-topo-any-hover` that
|
|
3669
3704
|
reflects whether ANY hover state in the topology is
|
|
@@ -4598,7 +4633,36 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4598
4633
|
: (isLight ? 0.025 : 0.045)}
|
|
4599
4634
|
stroke={(isPinned || isHovered) ? pal.legendAccent : pal.ringStroke}
|
|
4600
4635
|
strokeWidth={isPinned ? 3 : isHovered ? 2 : 1.5}
|
|
4601
|
-
|
|
4636
|
+
/* Round 503 / Loop — category-differentiation family
|
|
4637
|
+
2nd anchor (R499 = orphan label italic, 1st anchor).
|
|
4638
|
+
Orphan band rest-state strokeDasharray switches from
|
|
4639
|
+
'6 6' (prefix-group default) to '3 6' (tighter
|
|
4640
|
+
dashes). Pre-R503 the rect dash pattern was uniform
|
|
4641
|
+
across all bands; combined with R499's italic label,
|
|
4642
|
+
the orphan box now has TWO independent paint/
|
|
4643
|
+
typography differentiators at rest:
|
|
4644
|
+
R499 fontStyle: italic (label text)
|
|
4645
|
+
R503 '3 6' dash pattern (rect stroke) ← this round
|
|
4646
|
+
The R85 marching-ants animation continues to work
|
|
4647
|
+
with the new dash size (uses --march-dur custom
|
|
4648
|
+
property, dash-length-agnostic) — orphan's ants
|
|
4649
|
+
just have a different visual rhythm than prefix-
|
|
4650
|
+
group ants, reinforcing the catchall semantic.
|
|
4651
|
+
Pinned/hovered orphan still gets 'none' (solid
|
|
4652
|
+
stroke) so the hover/pin affordance is preserved
|
|
4653
|
+
— the differentiation lives ONLY in the rest
|
|
4654
|
+
state, never blocking inspection.
|
|
4655
|
+
Pure paint axis; no geometry change; bbox unchanged
|
|
4656
|
+
(strokeDasharray is paint-only). R51 SVG sentinel
|
|
4657
|
+
safety untouched (overlap-test gates to g[data-
|
|
4658
|
+
node], this cluster rect is invisible to it).
|
|
4659
|
+
data-group-box-orphan attr surfaces the gate for
|
|
4660
|
+
tests + future polish references. */
|
|
4661
|
+
strokeDasharray={
|
|
4662
|
+
(isPinned || isHovered) ? 'none' :
|
|
4663
|
+
box.isOrphan ? '3 6' : '6 6'
|
|
4664
|
+
}
|
|
4665
|
+
data-group-box-orphan={box.isOrphan ? 'true' : 'false'}
|
|
4602
4666
|
/* Round 380 / Loop: cluster box stroke gets round
|
|
4603
4667
|
linecap + round linejoin. Sibling SVG stroke-
|
|
4604
4668
|
softening polish to R378 flow-rail linecap + R379
|
package/package.json
CHANGED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* Round 503 verification: orphan band rect (data-group-box-orphan="true")
|
|
2
|
+
* uses strokeDasharray='3 6' at rest, while prefix-group bands keep
|
|
3
|
+
* '6 6'. Pinned/hovered orphan still gets 'none' (solid stroke) — the
|
|
4
|
+
* differentiation lives ONLY in the rest state.
|
|
5
|
+
*
|
|
6
|
+
* Category-differentiation family 2nd anchor:
|
|
7
|
+
* R499 orphan label fontStyle: italic (1st anchor, R499)
|
|
8
|
+
* R503 orphan rect '3 6' dash pattern (2nd anchor, this round)
|
|
9
|
+
*
|
|
10
|
+
* Fixture: 2 prefix groups (alpha×3, beta×2) + 3 orphans (zeta/omega/lonely)
|
|
11
|
+
* — same shape as R499 test. Drives #150 orphan-band creation with
|
|
12
|
+
* prefix groups for differential assertion.
|
|
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: 1200 } });
|
|
22
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
23
|
+
await ctx.addInitScript(() => {
|
|
24
|
+
try {
|
|
25
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
26
|
+
localStorage.setItem('anet-topo-layout', 'grid');
|
|
27
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
28
|
+
} catch {}
|
|
29
|
+
});
|
|
30
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
31
|
+
const r = await route.fetch();
|
|
32
|
+
const b = await r.json();
|
|
33
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
34
|
+
const mk = (alias, status) => ({
|
|
35
|
+
alias, status, model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
36
|
+
network_id: nid, project_dir: null,
|
|
37
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
38
|
+
});
|
|
39
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
40
|
+
mk('alpha·1', 'working'), mk('alpha·2', 'idle'), mk('alpha·3', 'idle'),
|
|
41
|
+
mk('beta·1', 'working'), mk('beta·2', 'idle'),
|
|
42
|
+
mk('zeta', 'idle'),
|
|
43
|
+
mk('omega', 'idle'),
|
|
44
|
+
mk('lonely', 'idle'),
|
|
45
|
+
] } });
|
|
46
|
+
});
|
|
47
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
48
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
49
|
+
const page = await ctx.newPage();
|
|
50
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
51
|
+
await page.waitForSelector('[data-group-box-orphan]', { timeout: 15000 });
|
|
52
|
+
await page.waitForTimeout(1500);
|
|
53
|
+
|
|
54
|
+
const rects = await page.evaluate(() => {
|
|
55
|
+
const els = Array.from(document.querySelectorAll('[data-group-box-orphan]'));
|
|
56
|
+
return els.map((el) => {
|
|
57
|
+
const cs = window.getComputedStyle(el);
|
|
58
|
+
return {
|
|
59
|
+
orphan_attr: el.getAttribute('data-group-box-orphan'),
|
|
60
|
+
dasharray: el.getAttribute('stroke-dasharray') || cs.strokeDasharray || '',
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
await browser.close();
|
|
66
|
+
|
|
67
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
68
|
+
const sourceTernary = /\(isPinned \|\| isHovered\) \? 'none' :\s*box\.isOrphan \? '3 6' : '6 6'/.test(src);
|
|
69
|
+
const sourceAttr = /data-group-box-orphan=\{box\.isOrphan \? 'true' : 'false'\}/.test(src);
|
|
70
|
+
|
|
71
|
+
const orphanRect = rects.find((r) => r.orphan_attr === 'true');
|
|
72
|
+
const prefixRects = rects.filter((r) => r.orphan_attr === 'false');
|
|
73
|
+
|
|
74
|
+
// Computed strokeDasharray comes back as 'px-suffixed' or raw — normalize
|
|
75
|
+
const normalize = (s) => (s || '').replace(/px/g, '').replace(/,\s*/g, ' ').trim();
|
|
76
|
+
|
|
77
|
+
const results = {
|
|
78
|
+
rects_found: rects.length >= 2,
|
|
79
|
+
orphan_rect_present: !!orphanRect,
|
|
80
|
+
orphan_dash_3_6: orphanRect && (normalize(orphanRect.dasharray) === '3 6' || normalize(orphanRect.dasharray) === '3 6'),
|
|
81
|
+
prefix_rects_present: prefixRects.length >= 1,
|
|
82
|
+
prefix_dash_6_6: prefixRects.length > 0 && prefixRects.every((r) => normalize(r.dasharray) === '6 6'),
|
|
83
|
+
source_ternary_wired: sourceTernary,
|
|
84
|
+
source_attr_wired: sourceAttr,
|
|
85
|
+
};
|
|
86
|
+
const ok = Object.values(results).every(Boolean);
|
|
87
|
+
console.log(`${ok ? '✅' : '❌'} R503 orphan box dash:`, JSON.stringify(results),
|
|
88
|
+
'\n rects:', JSON.stringify(rects));
|
|
89
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* Round 504 verification: root svg surfaces `data-topo-pinned-aspect`
|
|
2
|
+
* categorical attribute. Sibling to R488's `data-topo-hovered-alias`
|
|
3
|
+
* (hover identity); R504 is the pin axis identity. Reflects WHICH
|
|
4
|
+
* pin state is active — paired with R467's any-pinned boolean.
|
|
5
|
+
*
|
|
6
|
+
* Tier values:
|
|
7
|
+
* none, status, group, vendor, edge, multi
|
|
8
|
+
*
|
|
9
|
+
* Test scenarios — seed pins via localStorage to reach each tier
|
|
10
|
+
* deterministically.
|
|
11
|
+
*/
|
|
12
|
+
import { chromium } from 'playwright';
|
|
13
|
+
import { readFileSync } from 'node:fs';
|
|
14
|
+
|
|
15
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
16
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
17
|
+
|
|
18
|
+
async function probe({ pins }) {
|
|
19
|
+
const browser = await chromium.launch({ headless: true });
|
|
20
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1200 } });
|
|
21
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
22
|
+
await ctx.addInitScript((p) => {
|
|
23
|
+
try {
|
|
24
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
25
|
+
localStorage.setItem('anet-topo-layout', 'ring');
|
|
26
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
27
|
+
// Pins persist via sessionStorage (not localStorage) — verified
|
|
28
|
+
// by grep of TopoGraph.tsx useState initializers at lines
|
|
29
|
+
// 1033/1148/1187. pinnedEdgeKey starts null (no persistence;
|
|
30
|
+
// edge pin only reachable via click, skipped in this test).
|
|
31
|
+
if (p.status) sessionStorage.setItem('anet-topo-pinned-status', p.status);
|
|
32
|
+
if (p.group) sessionStorage.setItem('anet-topo-pinned-group', p.group);
|
|
33
|
+
if (p.vendor) sessionStorage.setItem('anet-topo-pinned-vendor', p.vendor);
|
|
34
|
+
} catch {}
|
|
35
|
+
}, pins);
|
|
36
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
37
|
+
const r = await route.fetch();
|
|
38
|
+
const b = await r.json();
|
|
39
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
40
|
+
const mk = (alias, status) => ({
|
|
41
|
+
alias, status, model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
42
|
+
network_id: nid, project_dir: null,
|
|
43
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
44
|
+
});
|
|
45
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
46
|
+
mk('alpha·1', 'working'),
|
|
47
|
+
mk('alpha·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
|
+
const page = await ctx.newPage();
|
|
53
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
54
|
+
await page.waitForSelector('svg[data-topo-pinned-aspect]', { timeout: 15000 });
|
|
55
|
+
await page.waitForTimeout(2800); // settle for localStorage-restore useEffect
|
|
56
|
+
const aspect = await page.evaluate(() => {
|
|
57
|
+
return document.querySelector('svg[viewBox="0 0 1000 680"]')?.getAttribute('data-topo-pinned-aspect');
|
|
58
|
+
});
|
|
59
|
+
await browser.close();
|
|
60
|
+
return aspect;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const none = await probe({ pins: {} });
|
|
64
|
+
const status = await probe({ pins: { status: 'working' } });
|
|
65
|
+
// Note: 'alpha' for group depends on actual alias-prefix derivation; valid
|
|
66
|
+
// because we seeded alpha·1 + alpha·2 (both have prefix 'alpha·')
|
|
67
|
+
const group = await probe({ pins: { group: 'alpha·' } });
|
|
68
|
+
// vendor uses initial letter — Anthropic = 'A' (from vendorIdentity.ts line 69)
|
|
69
|
+
// claude-opus-4 model resolves to Anthropic vendor; stale-purge keeps 'A' valid
|
|
70
|
+
const vendor = await probe({ pins: { vendor: 'A' } });
|
|
71
|
+
// edge needs from→to format; skip — edge pin keys are complex
|
|
72
|
+
// Multi: status + group together
|
|
73
|
+
const multi = await probe({ pins: { status: 'working', group: 'alpha·' } });
|
|
74
|
+
|
|
75
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
76
|
+
const sourceWired = /data-topo-pinned-aspect=\{\(\(\) => \{[\s\S]*?aspects\.push\('status'\)[\s\S]*?aspects\.push\('group'\)[\s\S]*?aspects\.push\('vendor'\)[\s\S]*?aspects\.push\('edge'\)/.test(src);
|
|
77
|
+
|
|
78
|
+
const results = {
|
|
79
|
+
none_resolves: none === 'none',
|
|
80
|
+
status_resolves: status === 'status',
|
|
81
|
+
group_resolves: group === 'group',
|
|
82
|
+
vendor_resolves: vendor === 'vendor',
|
|
83
|
+
multi_resolves: multi === 'multi',
|
|
84
|
+
source_wired: sourceWired,
|
|
85
|
+
};
|
|
86
|
+
const ok = Object.values(results).every(Boolean);
|
|
87
|
+
console.log(`${ok ? '✅' : '❌'} R504 pinned-aspect:`, JSON.stringify(results),
|
|
88
|
+
'\n raw:', { none, status, group, vendor, multi });
|
|
89
|
+
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{RmgW0P1IsJVjZHejw0-fy → dLzRHfUo59WgRQX9Mbfuk}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|