@sleep2agi/agent-network-dashboard 0.5.1-preview.61 → 0.5.1-preview.63
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/{05i2-ke2y~03w.js → 01h17tc00lm~2.js} +1 -1
- package/.next/static/chunks/{0631r~9usm4b3.js → 040y_1332zb5u.js} +2 -2
- package/.next/static/chunks/{0gaj_1o7ksxzg.js → 11s6p6bt~t0d_.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +54 -2
- package/package.json +1 -1
- package/scripts/topo-legend-pin-ring-stroke-test.mjs +101 -0
- package/scripts/topo-vendor-chip-hover-lift-test.mjs +87 -0
- /package/.next/static/{mm-hPP-6FaVwAWlMdepG9 → n5evSh-HX7oQ0tAtzMNf7}/_buildManifest.js +0 -0
- /package/.next/static/{mm-hPP-6FaVwAWlMdepG9 → n5evSh-HX7oQ0tAtzMNf7}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{mm-hPP-6FaVwAWlMdepG9 → n5evSh-HX7oQ0tAtzMNf7}/_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.60"],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.62"],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":257,"timestamp":149674421103,"id":4,"parentId":1,"tags":{},"startTime":1778957646667,"traceId":"192924ebd228a3ac"},{"name":"load-custom-routes","duration":452,"timestamp":149674421497,"id":5,"parentId":1,"tags":{},"startTime":1778957646668,"traceId":"192924ebd228a3ac"},{"name":"create-dist-dir","duration":676,"timestamp":149674421990,"id":6,"parentId":1,"tags":{},"startTime":1778957646668,"traceId":"192924ebd228a3ac"},{"name":"clean","duration":34496,"timestamp":149674423336,"id":7,"parentId":1,"tags":{},"startTime":1778957646670,"traceId":"192924ebd228a3ac"},{"name":"discover-routes","duration":10062,"timestamp":149674539616,"id":8,"parentId":1,"tags":{},"startTime":1778957646786,"traceId":"192924ebd228a3ac"},{"name":"create-root-mapping","duration":121,"timestamp":149674549737,"id":9,"parentId":1,"tags":{},"startTime":1778957646796,"traceId":"192924ebd228a3ac"},{"name":"generate-route-types","duration":37480,"timestamp":149674552111,"id":10,"parentId":1,"tags":{},"startTime":1778957646798,"traceId":"192924ebd228a3ac"},{"name":"public-dir-conflict-check","duration":94,"timestamp":149674589675,"id":11,"parentId":1,"tags":{},"startTime":1778957646836,"traceId":"192924ebd228a3ac"},{"name":"generate-routes-manifest","duration":4646,"timestamp":149674589894,"id":12,"parentId":1,"tags":{},"startTime":1778957646836,"traceId":"192924ebd228a3ac"},{"name":"run-turbopack","duration":6062121,"timestamp":149674601330,"id":14,"parentId":1,"tags":{},"startTime":1778957646848,"traceId":"192924ebd228a3ac"},{"name":"turbopack-build-events","duration":114,"timestamp":149674950073,"id":15,"parentId":1,"tags":{},"startTime":1778957647196,"traceId":"192924ebd228a3ac"},{"name":"run-typescript","duration":9369424,"timestamp":149680673695,"id":16,"parentId":1,"tags":{},"startTime":1778957652920,"traceId":"192924ebd228a3ac"},{"name":"generate-required-server-files","duration":2856,"timestamp":149690044353,"id":18,"parentId":1,"tags":{},"startTime":1778957662291,"traceId":"192924ebd228a3ac"},{"name":"check-static-error-page","duration":16007,"timestamp":149690237305,"id":20,"parentId":19,"tags":{},"startTime":1778957662484,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":463319,"timestamp":149690256773,"id":65,"parentId":22,"tags":{},"startTime":1778957662503,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":479728,"timestamp":149690240523,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778957662487,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":586525,"timestamp":149690257615,"id":71,"parentId":30,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":599726,"timestamp":149690244505,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778957662491,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":605442,"timestamp":149690257675,"id":72,"parentId":32,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":618266,"timestamp":149690244975,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778957662491,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":611055,"timestamp":149690257241,"id":69,"parentId":28,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":624167,"timestamp":149690244204,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778957662490,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":646312,"timestamp":149690257935,"id":74,"parentId":34,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":659039,"timestamp":149690245296,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778957662492,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":646692,"timestamp":149690257853,"id":73,"parentId":33,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":659440,"timestamp":149690245147,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778957662491,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":648480,"timestamp":149690256407,"id":64,"parentId":21,"tags":{},"startTime":1778957662503,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":666024,"timestamp":149690238905,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778957662485,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":652906,"timestamp":149690257983,"id":76,"parentId":36,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":664971,"timestamp":149690245964,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778957662492,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":662314,"timestamp":149690256917,"id":66,"parentId":25,"tags":{},"startTime":1778957662503,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":675566,"timestamp":149690243714,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778957662490,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":661478,"timestamp":149690257965,"id":75,"parentId":35,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":674032,"timestamp":149690245440,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778957662492,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":667027,"timestamp":149690258047,"id":78,"parentId":38,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":678784,"timestamp":149690246341,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778957662493,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":671349,"timestamp":149690258070,"id":80,"parentId":40,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":682882,"timestamp":149690246582,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778957662493,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":680197,"timestamp":149690258061,"id":79,"parentId":39,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":691847,"timestamp":149690246456,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778957662493,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":687103,"timestamp":149690258107,"id":83,"parentId":45,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":697644,"timestamp":149690247610,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778957662494,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":690356,"timestamp":149690258097,"id":82,"parentId":44,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":701032,"timestamp":149690247464,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778957662494,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":692563,"timestamp":149690258120,"id":84,"parentId":46,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":702992,"timestamp":149690247730,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778957662494,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":695289,"timestamp":149690258084,"id":81,"parentId":42,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":706469,"timestamp":149690246975,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778957662493,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":696115,"timestamp":149690257483,"id":70,"parentId":29,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":709292,"timestamp":149690244339,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778957662491,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":698422,"timestamp":149690258136,"id":85,"parentId":47,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":707418,"timestamp":149690249186,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778957662495,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":698835,"timestamp":149690258150,"id":86,"parentId":48,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":707712,"timestamp":149690249330,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778957662496,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":711088,"timestamp":149690258159,"id":87,"parentId":49,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":719833,"timestamp":149690249462,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778957662496,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":711264,"timestamp":149690258186,"id":89,"parentId":51,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":719835,"timestamp":149690249647,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778957662496,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":711332,"timestamp":149690265512,"id":90,"parentId":24,"tags":{},"startTime":1778957662512,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":735779,"timestamp":149690241120,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778957662487,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":720544,"timestamp":149690257039,"id":67,"parentId":26,"tags":{},"startTime":1778957662503,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":733721,"timestamp":149690243907,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778957662490,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":713545,"timestamp":149690266684,"id":91,"parentId":31,"tags":{},"startTime":1778957662513,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":735631,"timestamp":149690244655,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778957662491,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":729339,"timestamp":149690258029,"id":77,"parentId":37,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":741225,"timestamp":149690246183,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778957662492,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":723776,"timestamp":149690272958,"id":93,"parentId":43,"tags":{},"startTime":1778957662519,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":749633,"timestamp":149690247153,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778957662493,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":714312,"timestamp":149690283319,"id":96,"parentId":53,"tags":{},"startTime":1778957662530,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":747397,"timestamp":149690250276,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778957662497,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":727947,"timestamp":149690271626,"id":92,"parentId":41,"tags":{},"startTime":1778957662518,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":752926,"timestamp":149690246696,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778957662493,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":726086,"timestamp":149690283344,"id":98,"parentId":55,"tags":{},"startTime":1778957662530,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":758807,"timestamp":149690250675,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778957662497,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":752282,"timestamp":149690258172,"id":88,"parentId":50,"tags":{},"startTime":1778957662504,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":760943,"timestamp":149690249559,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778957662496,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":729907,"timestamp":149690283372,"id":100,"parentId":58,"tags":{},"startTime":1778957662530,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":761542,"timestamp":149690251784,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778957662498,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":736674,"timestamp":149690283503,"id":102,"parentId":61,"tags":{},"startTime":1778957662530,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":767554,"timestamp":149690252685,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778957662499,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":749402,"timestamp":149690283517,"id":103,"parentId":62,"tags":{},"startTime":1778957662530,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":780114,"timestamp":149690252862,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778957662499,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":757274,"timestamp":149690283531,"id":104,"parentId":63,"tags":{},"startTime":1778957662530,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":787814,"timestamp":149690253044,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778957662499,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":761223,"timestamp":149690283299,"id":95,"parentId":52,"tags":{},"startTime":1778957662530,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":794497,"timestamp":149690250090,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778957662496,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":746589,"timestamp":149690301955,"id":105,"parentId":60,"tags":{},"startTime":1778957662548,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":796354,"timestamp":149690252235,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778957662499,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":793982,"timestamp":149690257140,"id":68,"parentId":27,"tags":{},"startTime":1778957662503,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":807106,"timestamp":149690244063,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778957662490,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":737282,"timestamp":149690315377,"id":106,"parentId":57,"tags":{},"startTime":1778957662562,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":801495,"timestamp":149690251205,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778957662497,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":786791,"timestamp":149690283268,"id":94,"parentId":23,"tags":{},"startTime":1778957662530,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":829297,"timestamp":149690240835,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778957662487,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":787926,"timestamp":149690283334,"id":97,"parentId":54,"tags":{},"startTime":1778957662530,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":820863,"timestamp":149690250451,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778957662497,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":808383,"timestamp":149690283358,"id":99,"parentId":56,"tags":{},"startTime":1778957662530,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":840897,"timestamp":149690250923,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778957662497,"traceId":"192924ebd228a3ac"},{"name":"is-page-static","duration":812065,"timestamp":149690283488,"id":101,"parentId":59,"tags":{},"startTime":1778957662530,"traceId":"192924ebd228a3ac"},{"name":"check-page","duration":843581,"timestamp":149690252032,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778957662498,"traceId":"192924ebd228a3ac"},{"name":"static-check","duration":859507,"timestamp":149690236179,"id":19,"parentId":1,"tags":{},"startTime":1778957662482,"traceId":"192924ebd228a3ac"}]
|
|
2
|
-
[{"name":"write-routes-manifest","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":306,"timestamp":150263504505,"id":4,"parentId":1,"tags":{},"startTime":1778958235751,"traceId":"15b8d6dad721f241"},{"name":"load-custom-routes","duration":489,"timestamp":150263504966,"id":5,"parentId":1,"tags":{},"startTime":1778958235751,"traceId":"15b8d6dad721f241"},{"name":"create-dist-dir","duration":752,"timestamp":150263505501,"id":6,"parentId":1,"tags":{},"startTime":1778958235752,"traceId":"15b8d6dad721f241"},{"name":"clean","duration":31792,"timestamp":150263506956,"id":7,"parentId":1,"tags":{},"startTime":1778958235753,"traceId":"15b8d6dad721f241"},{"name":"discover-routes","duration":23031,"timestamp":150263623193,"id":8,"parentId":1,"tags":{},"startTime":1778958235869,"traceId":"15b8d6dad721f241"},{"name":"create-root-mapping","duration":110,"timestamp":150263646288,"id":9,"parentId":1,"tags":{},"startTime":1778958235893,"traceId":"15b8d6dad721f241"},{"name":"generate-route-types","duration":26859,"timestamp":150263648930,"id":10,"parentId":1,"tags":{},"startTime":1778958235895,"traceId":"15b8d6dad721f241"},{"name":"public-dir-conflict-check","duration":94,"timestamp":150263675884,"id":11,"parentId":1,"tags":{},"startTime":1778958235922,"traceId":"15b8d6dad721f241"},{"name":"generate-routes-manifest","duration":4659,"timestamp":150263676124,"id":12,"parentId":1,"tags":{},"startTime":1778958235922,"traceId":"15b8d6dad721f241"},{"name":"run-turbopack","duration":5751227,"timestamp":150263686176,"id":14,"parentId":1,"tags":{},"startTime":1778958235932,"traceId":"15b8d6dad721f241"},{"name":"turbopack-build-events","duration":103,"timestamp":150263982423,"id":15,"parentId":1,"tags":{},"startTime":1778958236229,"traceId":"15b8d6dad721f241"},{"name":"run-typescript","duration":9207190,"timestamp":150269447074,"id":16,"parentId":1,"tags":{},"startTime":1778958241693,"traceId":"15b8d6dad721f241"},{"name":"generate-required-server-files","duration":2611,"timestamp":150278655504,"id":18,"parentId":1,"tags":{},"startTime":1778958250902,"traceId":"15b8d6dad721f241"},{"name":"check-static-error-page","duration":14423,"timestamp":150278835455,"id":20,"parentId":19,"tags":{},"startTime":1778958251082,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":411024,"timestamp":150278854497,"id":65,"parentId":22,"tags":{},"startTime":1778958251101,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":427227,"timestamp":150278838474,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778958251085,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":508093,"timestamp":150278854975,"id":69,"parentId":28,"tags":{},"startTime":1778958251101,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":521779,"timestamp":150278841401,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778958251088,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":533306,"timestamp":150278855449,"id":72,"parentId":32,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":546780,"timestamp":150278842084,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778958251088,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":539923,"timestamp":150278855383,"id":71,"parentId":30,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":553712,"timestamp":150278841674,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778958251088,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":544648,"timestamp":150278855616,"id":73,"parentId":33,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":558108,"timestamp":150278842221,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778958251088,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":547982,"timestamp":150278855699,"id":74,"parentId":34,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":561410,"timestamp":150278842333,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778958251089,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":553163,"timestamp":150278855725,"id":75,"parentId":35,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":566504,"timestamp":150278842446,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778958251089,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":553431,"timestamp":150278855745,"id":76,"parentId":36,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":566296,"timestamp":150278842919,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778958251089,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":557295,"timestamp":150278855774,"id":77,"parentId":37,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":569986,"timestamp":150278843131,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778958251089,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":557680,"timestamp":150278855788,"id":78,"parentId":38,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":570246,"timestamp":150278843268,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778958251090,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":557909,"timestamp":150278855817,"id":79,"parentId":39,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":570398,"timestamp":150278843367,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778958251090,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":562232,"timestamp":150278855833,"id":80,"parentId":40,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":574638,"timestamp":150278843472,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778958251090,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":567017,"timestamp":150278854103,"id":64,"parentId":21,"tags":{},"startTime":1778958251100,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":584202,"timestamp":150278836958,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778958251083,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":566703,"timestamp":150278855858,"id":82,"parentId":44,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":578316,"timestamp":150278844286,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778958251091,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":568796,"timestamp":150278855848,"id":81,"parentId":42,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":580855,"timestamp":150278843846,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778958251090,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":571396,"timestamp":150278855885,"id":84,"parentId":46,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":582792,"timestamp":150278844534,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778958251091,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":573638,"timestamp":150278855241,"id":70,"parentId":29,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":587404,"timestamp":150278841531,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778958251088,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":574379,"timestamp":150278855895,"id":85,"parentId":47,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":585674,"timestamp":150278844644,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778958251091,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":576197,"timestamp":150278855909,"id":86,"parentId":48,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":586042,"timestamp":150278846110,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778958251092,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":578636,"timestamp":150278855922,"id":87,"parentId":49,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":588325,"timestamp":150278846278,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778958251093,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":579290,"timestamp":150278855935,"id":88,"parentId":50,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":588891,"timestamp":150278846372,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778958251093,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":575494,"timestamp":150278864445,"id":91,"parentId":31,"tags":{},"startTime":1778958251111,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":598196,"timestamp":150278841790,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778958251088,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":576446,"timestamp":150278870058,"id":92,"parentId":41,"tags":{},"startTime":1778958251116,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":602988,"timestamp":150278843568,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778958251090,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":591274,"timestamp":150278855944,"id":89,"parentId":51,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":600852,"timestamp":150278846452,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778958251093,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":579267,"timestamp":150278871413,"id":93,"parentId":43,"tags":{},"startTime":1778958251118,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":606740,"timestamp":150278843980,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778958251090,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":600314,"timestamp":150278854871,"id":68,"parentId":27,"tags":{},"startTime":1778958251101,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":613960,"timestamp":150278841266,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778958251088,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":592057,"timestamp":150278863273,"id":90,"parentId":24,"tags":{},"startTime":1778958251110,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":616490,"timestamp":150278838867,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778958251085,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":605658,"timestamp":150278854742,"id":67,"parentId":26,"tags":{},"startTime":1778958251101,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":619326,"timestamp":150278841125,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778958251087,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":629887,"timestamp":150278854634,"id":66,"parentId":25,"tags":{},"startTime":1778958251101,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":643918,"timestamp":150278840934,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778958251087,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":637355,"timestamp":150278855871,"id":83,"parentId":45,"tags":{},"startTime":1778958251102,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":648866,"timestamp":150278844421,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778958251091,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":632863,"timestamp":150278876222,"id":100,"parentId":58,"tags":{},"startTime":1778958251122,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":660634,"timestamp":150278848515,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778958251095,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":638721,"timestamp":150278876160,"id":95,"parentId":52,"tags":{},"startTime":1778958251122,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":668081,"timestamp":150278846862,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778958251093,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":641955,"timestamp":150278876337,"id":101,"parentId":59,"tags":{},"startTime":1778958251123,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":669649,"timestamp":150278848720,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778958251095,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":642935,"timestamp":150278876129,"id":94,"parentId":23,"tags":{},"startTime":1778958251122,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":680441,"timestamp":150278838672,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778958251085,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":646782,"timestamp":150278876360,"id":102,"parentId":61,"tags":{},"startTime":1778958251123,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":673845,"timestamp":150278849347,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778958251096,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":650321,"timestamp":150278876384,"id":104,"parentId":63,"tags":{},"startTime":1778958251123,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":677120,"timestamp":150278849626,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778958251096,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":656683,"timestamp":150278876375,"id":103,"parentId":62,"tags":{},"startTime":1778958251123,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":683607,"timestamp":150278849491,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778958251096,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":631547,"timestamp":150278901756,"id":105,"parentId":57,"tags":{},"startTime":1778958251148,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":685473,"timestamp":150278847871,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778958251094,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":615635,"timestamp":150278917969,"id":106,"parentId":60,"tags":{},"startTime":1778958251164,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":684726,"timestamp":150278848913,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778958251095,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":670067,"timestamp":150278876186,"id":97,"parentId":54,"tags":{},"startTime":1778958251122,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":699121,"timestamp":150278847202,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778958251093,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":684443,"timestamp":150278876176,"id":96,"parentId":53,"tags":{},"startTime":1778958251122,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":713624,"timestamp":150278847043,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778958251093,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":694530,"timestamp":150278876199,"id":98,"parentId":55,"tags":{},"startTime":1778958251122,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":723371,"timestamp":150278847416,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778958251094,"traceId":"15b8d6dad721f241"},{"name":"is-page-static","duration":711040,"timestamp":150278876213,"id":99,"parentId":56,"tags":{},"startTime":1778958251122,"traceId":"15b8d6dad721f241"},{"name":"check-page","duration":739693,"timestamp":150278847617,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778958251094,"traceId":"15b8d6dad721f241"},{"name":"static-check","duration":752810,"timestamp":150278834546,"id":19,"parentId":1,"tags":{},"startTime":1778958251081,"traceId":"15b8d6dad721f241"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":622,"timestamp":150279599458,"id":108,"parentId":1,"tags":{},"startTime":1778958251846,"traceId":"15b8d6dad721f241"},{"name":"load-dotenv","duration":68,"timestamp":150279613035,"id":111,"parentId":110,"tags":{},"startTime":1778958251859,"traceId":"15b8d6dad721f241"},{"name":"run-export-path-map","duration":724,"timestamp":150279616647,"id":112,"parentId":110,"tags":{},"startTime":1778958251863,"traceId":"15b8d6dad721f241"},{"name":"next-export","duration":575510,"timestamp":150279611248,"id":110,"parentId":1,"tags":{},"startTime":1778958251858,"traceId":"15b8d6dad721f241"},{"name":"move-exported-app-not-found-","duration":487,"timestamp":150280190269,"id":113,"parentId":109,"tags":{},"startTime":1778958252437,"traceId":"15b8d6dad721f241"},{"name":"move-exported-app-global-error-","duration":353,"timestamp":150280190853,"id":114,"parentId":109,"tags":{},"startTime":1778958252437,"traceId":"15b8d6dad721f241"},{"name":"static-generation","duration":588856,"timestamp":150279604222,"id":109,"parentId":1,"tags":{},"startTime":1778958251851,"traceId":"15b8d6dad721f241"},{"name":"write-routes-manifest","duration":374,"timestamp":150280193335,"id":115,"parentId":1,"tags":{},"startTime":1778958252440,"traceId":"15b8d6dad721f241"},{"name":"print-tree-view","duration":4104,"timestamp":150280211809,"id":116,"parentId":1,"tags":{},"startTime":1778958252458,"traceId":"15b8d6dad721f241"},{"name":"write-route-bundle-stats","duration":11220,"timestamp":150280215942,"id":117,"parentId":1,"tags":{},"startTime":1778958252462,"traceId":"15b8d6dad721f241"},{"name":"telemetry-flush","duration":19176,"timestamp":150280227188,"id":118,"parentId":1,"tags":{},"startTime":1778958252473,"traceId":"15b8d6dad721f241"},{"name":"next-build","duration":16798376,"timestamp":150263448013,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778958235694,"traceId":"15b8d6dad721f241"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":5751227,"timestamp":150263686176,"id":14,"parentId":1,"tags":{},"startTime":1778958235932,"traceId":"15b8d6dad721f241"},{"name":"turbopack-build-events","duration":103,"timestamp":150263982423,"id":15,"parentId":1,"tags":{},"startTime":1778958236229,"traceId":"15b8d6dad721f241"},{"name":"run-typescript","duration":9207190,"timestamp":150269447074,"id":16,"parentId":1,"tags":{},"startTime":1778958241693,"traceId":"15b8d6dad721f241"},{"name":"static-check","duration":752810,"timestamp":150278834546,"id":19,"parentId":1,"tags":{},"startTime":1778958251081,"traceId":"15b8d6dad721f241"},{"name":"static-generation","duration":588856,"timestamp":150279604222,"id":109,"parentId":1,"tags":{},"startTime":1778958251851,"traceId":"15b8d6dad721f241"},{"name":"telemetry-flush","duration":19176,"timestamp":150280227188,"id":118,"parentId":1,"tags":{},"startTime":1778958252473,"traceId":"15b8d6dad721f241"},{"name":"next-build","duration":16798376,"timestamp":150263448013,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778958235694,"traceId":"15b8d6dad721f241"}]
|
|
@@ -2931,9 +2931,30 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2931
2931
|
vendor letter chips ('A:N', 'O:N', '书:N',
|
|
2932
2932
|
'?:N'). They display vendor-distribution
|
|
2933
2933
|
data; same tier as the sibling data chips. */
|
|
2934
|
-
|
|
2934
|
+
/* Round 401 / Loop: vendor letter chip closes the
|
|
2935
|
+
hover-lift gesture family at its last unaddressed
|
|
2936
|
+
interactive HTML surface. R397/R398/R399 lifted
|
|
2937
|
+
filter pin pills + chip-row chips (working /
|
|
2938
|
+
online / active-links); R400 lifted standalone
|
|
2939
|
+
chrome buttons (reset / fullscreen). The vendor
|
|
2940
|
+
letter chips (A:N / O:N / 书:N / ?:N) are
|
|
2941
|
+
sibling interactive chips in the same chip-row
|
|
2942
|
+
— clickable to toggle the vendor filter pin —
|
|
2943
|
+
but were not yet on the hover-lift family.
|
|
2944
|
+
R401 closes the gap with hover:-translate-y-px
|
|
2945
|
+
+ transition-transform + transform-gpu added
|
|
2946
|
+
to the className. The inline transition list
|
|
2947
|
+
(box-shadow + background-color) keeps eaching
|
|
2948
|
+
independently — different property axes compose
|
|
2949
|
+
cleanly. Existing R354 glyph scale-1.1 (inner
|
|
2950
|
+
span) + R202 chip bg color-mix + R180 pin-mirror
|
|
2951
|
+
box-shadow + R354 glyph hover transform all
|
|
2952
|
+
preserved. data-vendor-letter-hover-lift attr
|
|
2953
|
+
surfaces the lift for tests. */
|
|
2954
|
+
className="tabular-nums font-medium inline-flex items-baseline gap-0.5 px-1 rounded anet-topo-chip-focus transition-transform duration-200 ease-out transform-gpu hover:-translate-y-px"
|
|
2935
2955
|
data-vendor-letter={v.initial}
|
|
2936
2956
|
data-vendor-letter-count={v.count}
|
|
2957
|
+
data-vendor-letter-hover-lift="true"
|
|
2937
2958
|
data-vendor-pinned={isPinned ? 'true' : 'false'}
|
|
2938
2959
|
data-vendor-hovered={hoveredVendor === v.initial ? 'true' : 'false'}
|
|
2939
2960
|
data-vendor-aliases={aliases.join(',')}
|
|
@@ -8415,14 +8436,45 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
8415
8436
|
so this legend-internal circle is invisible to
|
|
8416
8437
|
that probe. pointerEvents:none so the ring can't
|
|
8417
8438
|
intercept the row click that produced it. */}
|
|
8439
|
+
{/* Round 402 / Loop: legend pin-ring strokeWidth 1.5
|
|
8440
|
+
→ 1.75. Sibling visual-weight bump (12th anchor)
|
|
8441
|
+
to R385 hub hover-ring strokeWidth 1.5 → 1.75 —
|
|
8442
|
+
both are pin/hover state indicators painted as
|
|
8443
|
+
stroke-only circles outside their target swatch
|
|
8444
|
+
with the R51 sentinel value 1.5. R402 lifts to
|
|
8445
|
+
1.75 (matching R385's choice) so the pin signal
|
|
8446
|
+
reads slightly heavier without crossing the
|
|
8447
|
+
R51 sentinel band (3 reserved for offline node).
|
|
8448
|
+
The R51 selector is gated to g[data-node]
|
|
8449
|
+
ancestors so this legend-internal circle (lives
|
|
8450
|
+
under a <g data-legend-status>) is invisible
|
|
8451
|
+
to the probe — same lesson R177/R385 documented.
|
|
8452
|
+
Visual-weight bump family (12 anchors now):
|
|
8453
|
+
R287 minimap viewport stroke 1 → 1.5
|
|
8454
|
+
R295 legend swatch radius 5.5 → 6
|
|
8455
|
+
R359 recent-row pip radius 1.6 → 1.8
|
|
8456
|
+
R360 hub digit fontSize 11 → 12
|
|
8457
|
+
R361 edge-badge digit fontSize 10 → 11
|
|
8458
|
+
R365 hub-highlight radius 5 → 5.5
|
|
8459
|
+
R367 edge-badge rest stroke 1 → 1.25
|
|
8460
|
+
R374 pressure-bar height 1.5 → 2
|
|
8461
|
+
R383 recent-row pip radius 1.8 → 2.0
|
|
8462
|
+
R384 minimap online dot 1.7 → 1.9
|
|
8463
|
+
R385 hub hover-ring stroke 1.5 → 1.75
|
|
8464
|
+
R402 legend pin-ring stroke 1.5 → 1.75 (this round)
|
|
8465
|
+
R181 always-mount opacity gate + 150ms transition
|
|
8466
|
+
+ pointerEvents:none all preserved. data-legend-
|
|
8467
|
+
pin-ring-stroke-width attr exposes the value for
|
|
8468
|
+
tests. */}
|
|
8418
8469
|
<circle
|
|
8419
8470
|
cx="16" cy={row.y0} r="8"
|
|
8420
8471
|
fill="none"
|
|
8421
8472
|
stroke={row.fill}
|
|
8422
|
-
strokeWidth="1.
|
|
8473
|
+
strokeWidth="1.75"
|
|
8423
8474
|
opacity={isPinned ? 1 : 0}
|
|
8424
8475
|
data-legend-pin-ring={row.key}
|
|
8425
8476
|
data-legend-pin-ring-pinned={isPinned ? 'true' : 'false'}
|
|
8477
|
+
data-legend-pin-ring-stroke-width="1.75"
|
|
8426
8478
|
style={{
|
|
8427
8479
|
pointerEvents: 'none',
|
|
8428
8480
|
transition: 'opacity 150ms ease-out',
|
package/package.json
CHANGED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* Round 402 verification: legend pin-ring strokeWidth 1.5 → 1.75.
|
|
2
|
+
* Sibling visual-weight bump (12th anchor) to R385 hub hover-ring
|
|
3
|
+
* — both are stroke-only pin/hover indicators painted as r=8 / r=14
|
|
4
|
+
* circles outside their target. R51 sentinel concern: 1.5 reserved
|
|
5
|
+
* for offline-node detection, but selector gated to g[data-node]
|
|
6
|
+
* ancestors so this legend-internal circle is invisible to probe.
|
|
7
|
+
*
|
|
8
|
+
* Contract:
|
|
9
|
+
* - data-legend-pin-ring-stroke-width === '1.75' (idle state too,
|
|
10
|
+
* since the attr surfaces the resolved value regardless of pin)
|
|
11
|
+
* - <circle> stroke-width attr === '1.75'
|
|
12
|
+
* - Pre-R402 invariants preserved:
|
|
13
|
+
* * r='8', fill='none', cx='16'
|
|
14
|
+
* * opacity reflects isPinned state (0 idle, 1 pinned)
|
|
15
|
+
* * data-legend-pin-ring-pinned attr present
|
|
16
|
+
* - Idle ring: opacity='0' (R181 always-mount + transition)
|
|
17
|
+
* - Pinned ring (after click): opacity='1'
|
|
18
|
+
*/
|
|
19
|
+
import { chromium } from 'playwright';
|
|
20
|
+
import { readFileSync } from 'node:fs';
|
|
21
|
+
|
|
22
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
23
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
24
|
+
|
|
25
|
+
const browser = await chromium.launch({ headless: true });
|
|
26
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
27
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
28
|
+
await ctx.addInitScript(() => {
|
|
29
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
30
|
+
});
|
|
31
|
+
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
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
41
|
+
mk('alpha', 'working'),
|
|
42
|
+
mk('beta', 'idle'),
|
|
43
|
+
] } });
|
|
44
|
+
});
|
|
45
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
46
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
47
|
+
|
|
48
|
+
const page = await ctx.newPage();
|
|
49
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
50
|
+
await page.waitForSelector('[data-legend-pin-ring]', { timeout: 15000 });
|
|
51
|
+
await page.waitForTimeout(400);
|
|
52
|
+
|
|
53
|
+
const restProbe = await page.evaluate(() => {
|
|
54
|
+
const ring = document.querySelector('[data-legend-pin-ring]');
|
|
55
|
+
return ring ? {
|
|
56
|
+
strokeWidthAttr: ring.getAttribute('stroke-width'),
|
|
57
|
+
strokeWidthData: ring.getAttribute('data-legend-pin-ring-stroke-width'),
|
|
58
|
+
rAttr: ring.getAttribute('r'),
|
|
59
|
+
fillAttr: ring.getAttribute('fill'),
|
|
60
|
+
cxAttr: ring.getAttribute('cx'),
|
|
61
|
+
opacityAttr: ring.getAttribute('opacity'),
|
|
62
|
+
pinned: ring.getAttribute('data-legend-pin-ring-pinned'),
|
|
63
|
+
} : null;
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// Click a legend row to pin it
|
|
67
|
+
await page.click('[data-legend-status="working"]');
|
|
68
|
+
await page.waitForTimeout(300);
|
|
69
|
+
|
|
70
|
+
const pinnedProbe = await page.evaluate(() => {
|
|
71
|
+
const rings = Array.from(document.querySelectorAll('[data-legend-pin-ring]'));
|
|
72
|
+
const pinned = rings.find((r) => r.getAttribute('data-legend-pin-ring-pinned') === 'true');
|
|
73
|
+
return pinned ? {
|
|
74
|
+
strokeWidthAttr: pinned.getAttribute('stroke-width'),
|
|
75
|
+
opacityAttr: pinned.getAttribute('opacity'),
|
|
76
|
+
rAttr: pinned.getAttribute('r'),
|
|
77
|
+
} : null;
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
await browser.close();
|
|
81
|
+
|
|
82
|
+
const results = {
|
|
83
|
+
// R402 wire: stroke-width attr + data both 1.75
|
|
84
|
+
rest_strokeWidth_1_75: restProbe?.strokeWidthAttr === '1.75',
|
|
85
|
+
rest_data_1_75: restProbe?.strokeWidthData === '1.75',
|
|
86
|
+
// Pre-R402 invariants (R181 + base geometry)
|
|
87
|
+
rest_r_8: restProbe?.rAttr === '8',
|
|
88
|
+
rest_fill_none: restProbe?.fillAttr === 'none',
|
|
89
|
+
rest_cx_16: restProbe?.cxAttr === '16',
|
|
90
|
+
rest_opacity_0: restProbe?.opacityAttr === '0', // R181 idle invariant
|
|
91
|
+
rest_pinned_false: restProbe?.pinned === 'false',
|
|
92
|
+
// Pinned state preserves the bumped stroke
|
|
93
|
+
pinned_strokeWidth_1_75: pinnedProbe?.strokeWidthAttr === '1.75',
|
|
94
|
+
pinned_opacity_1: pinnedProbe?.opacityAttr === '1', // R181 pinned alpha
|
|
95
|
+
pinned_r_8: pinnedProbe?.rAttr === '8', // geometry preserved
|
|
96
|
+
};
|
|
97
|
+
const ok = Object.values(results).every(Boolean);
|
|
98
|
+
console.log(`${ok ? '✅' : '❌'} legend pin-ring strokeWidth 1.5 → 1.75:`, JSON.stringify(results),
|
|
99
|
+
'\n rest: ', restProbe,
|
|
100
|
+
'\n pinned: ', pinnedProbe);
|
|
101
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* Round 401 verification: vendor letter chips close the hover-lift
|
|
2
|
+
* gesture family at the last interactive HTML chip surface. Sibling
|
|
3
|
+
* to R397 filter pin pills + R398/R399 chip-row chips + R400 chrome
|
|
4
|
+
* standalone buttons.
|
|
5
|
+
*
|
|
6
|
+
* Contract:
|
|
7
|
+
* - Vendor letter chip mounted with at least one vendor present:
|
|
8
|
+
* * data-vendor-letter-hover-lift === 'true'
|
|
9
|
+
* * className includes 'hover:-translate-y-px'
|
|
10
|
+
* * className includes 'transition-transform' + 'transform-gpu'
|
|
11
|
+
* - Pre-R401 invariants preserved:
|
|
12
|
+
* * tabular-nums + font-medium + anet-topo-chip-focus
|
|
13
|
+
* * data-vendor-letter / -count / -pinned / -hovered attrs present
|
|
14
|
+
*/
|
|
15
|
+
import { chromium } from 'playwright';
|
|
16
|
+
import { readFileSync } from 'node:fs';
|
|
17
|
+
|
|
18
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
19
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
20
|
+
|
|
21
|
+
const browser = await chromium.launch({ headless: true });
|
|
22
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
23
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
24
|
+
await ctx.addInitScript(() => {
|
|
25
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
26
|
+
});
|
|
27
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
28
|
+
const r = await route.fetch();
|
|
29
|
+
const b = await r.json();
|
|
30
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
31
|
+
const mk = (alias, model) => ({
|
|
32
|
+
alias, status: 'idle', model, runtime: 'claude-code-cli',
|
|
33
|
+
network_id: nid, project_dir: null,
|
|
34
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
35
|
+
});
|
|
36
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
37
|
+
mk('alpha', 'claude-opus-4'),
|
|
38
|
+
mk('beta', 'gpt-5'),
|
|
39
|
+
mk('gamma', 'gemini-2.0-pro'),
|
|
40
|
+
] } });
|
|
41
|
+
});
|
|
42
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
43
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
44
|
+
|
|
45
|
+
const page = await ctx.newPage();
|
|
46
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
47
|
+
await page.waitForSelector('[data-vendor-letter-hover-lift="true"]', { timeout: 15000 });
|
|
48
|
+
await page.waitForTimeout(400);
|
|
49
|
+
|
|
50
|
+
const probe = await page.evaluate(() => {
|
|
51
|
+
const chips = Array.from(document.querySelectorAll('[data-vendor-letter-hover-lift="true"]'));
|
|
52
|
+
if (chips.length === 0) return null;
|
|
53
|
+
return {
|
|
54
|
+
count: chips.length,
|
|
55
|
+
sample: {
|
|
56
|
+
className: chips[0].className,
|
|
57
|
+
letter: chips[0].getAttribute('data-vendor-letter'),
|
|
58
|
+
vendorCount: chips[0].getAttribute('data-vendor-letter-count'),
|
|
59
|
+
lift: chips[0].getAttribute('data-vendor-letter-hover-lift'),
|
|
60
|
+
pinned: chips[0].getAttribute('data-vendor-pinned'),
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
await browser.close();
|
|
66
|
+
|
|
67
|
+
const cls = probe?.sample?.className || '';
|
|
68
|
+
const results = {
|
|
69
|
+
// At least one vendor chip rendered (3 vendors in fixture)
|
|
70
|
+
chips_count_ge_1: (probe?.count || 0) >= 1,
|
|
71
|
+
// R401 lift attrs + className tokens
|
|
72
|
+
lift_true: probe?.sample?.lift === 'true',
|
|
73
|
+
has_hover_translate: cls.includes('hover:-translate-y-px'),
|
|
74
|
+
has_transition_transform: cls.includes('transition-transform'),
|
|
75
|
+
has_transform_gpu: cls.includes('transform-gpu'),
|
|
76
|
+
// Pre-R401 invariants (R314 + R232 + R266)
|
|
77
|
+
has_tabular_nums: cls.includes('tabular-nums'),
|
|
78
|
+
has_font_medium: cls.includes('font-medium'),
|
|
79
|
+
has_chip_focus: cls.includes('anet-topo-chip-focus'),
|
|
80
|
+
has_inline_flex: cls.includes('inline-flex'),
|
|
81
|
+
has_letter_attr: !!probe?.sample?.letter,
|
|
82
|
+
has_count_attr: !!probe?.sample?.vendorCount,
|
|
83
|
+
};
|
|
84
|
+
const ok = Object.values(results).every(Boolean);
|
|
85
|
+
console.log(`${ok ? '✅' : '❌'} vendor letter chip hover lift translateY(-1px):`, JSON.stringify(results),
|
|
86
|
+
'\n chips:', probe?.count, '/ sample:', JSON.stringify(probe?.sample, null, 2));
|
|
87
|
+
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{mm-hPP-6FaVwAWlMdepG9 → n5evSh-HX7oQ0tAtzMNf7}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|