@sleep2agi/agent-network-dashboard 0.5.1-preview.103 → 0.5.1-preview.105
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/{0_cgb71xxqklr.js → 091~jz9644p9c.js} +2 -2
- package/.next/static/chunks/{0prr1ipde_876.js → 0q~32k6wta5_m.js} +1 -1
- package/.next/static/chunks/{0x3jnsldzpyro.js → 14e97-_men~2h.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +61 -4
- package/package.json +1 -1
- package/scripts/topo-group-label-count-fw-test.mjs +100 -0
- package/scripts/{topo-monogram-ring-hover-test.mjs → topo-runtime-icon-hover-test.mjs} +30 -41
- /package/.next/static/{C4S-pZLvaSQD1t5kAxh5m → yj2TdlKkmTIQGZLMLpDOb}/_buildManifest.js +0 -0
- /package/.next/static/{C4S-pZLvaSQD1t5kAxh5m → yj2TdlKkmTIQGZLMLpDOb}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{C4S-pZLvaSQD1t5kAxh5m → yj2TdlKkmTIQGZLMLpDOb}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.104"],70286)},48941,e=>{"use strict";var t=e.i(22381),r=e.i(23910),a=e.i(70286);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#111128] border border-[#2a2a4a] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#2a2a4a] bg-[#111128]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:h||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[h&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:h?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",a.DASHBOARD_VERSION]})]})]})]})}])}]);
|
|
@@ -1 +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.102"],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.104"],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":302,"timestamp":164245835939,"id":4,"parentId":1,"tags":{},"startTime":1778972218082,"traceId":"b0773dd8f1e7ac62"},{"name":"load-custom-routes","duration":459,"timestamp":164245836383,"id":5,"parentId":1,"tags":{},"startTime":1778972218083,"traceId":"b0773dd8f1e7ac62"},{"name":"create-dist-dir","duration":677,"timestamp":164245836880,"id":6,"parentId":1,"tags":{},"startTime":1778972218083,"traceId":"b0773dd8f1e7ac62"},{"name":"clean","duration":32091,"timestamp":164245838215,"id":7,"parentId":1,"tags":{},"startTime":1778972218084,"traceId":"b0773dd8f1e7ac62"},{"name":"discover-routes","duration":8871,"timestamp":164245957612,"id":8,"parentId":1,"tags":{},"startTime":1778972218204,"traceId":"b0773dd8f1e7ac62"},{"name":"create-root-mapping","duration":137,"timestamp":164245966538,"id":9,"parentId":1,"tags":{},"startTime":1778972218213,"traceId":"b0773dd8f1e7ac62"},{"name":"generate-route-types","duration":32628,"timestamp":164245969365,"id":10,"parentId":1,"tags":{},"startTime":1778972218216,"traceId":"b0773dd8f1e7ac62"},{"name":"public-dir-conflict-check","duration":98,"timestamp":164246002105,"id":11,"parentId":1,"tags":{},"startTime":1778972218248,"traceId":"b0773dd8f1e7ac62"},{"name":"generate-routes-manifest","duration":5888,"timestamp":164246002322,"id":12,"parentId":1,"tags":{},"startTime":1778972218249,"traceId":"b0773dd8f1e7ac62"},{"name":"run-turbopack","duration":5777668,"timestamp":164246013999,"id":14,"parentId":1,"tags":{},"startTime":1778972218260,"traceId":"b0773dd8f1e7ac62"},{"name":"turbopack-build-events","duration":109,"timestamp":164246307338,"id":15,"parentId":1,"tags":{},"startTime":1778972218554,"traceId":"b0773dd8f1e7ac62"},{"name":"run-typescript","duration":9869404,"timestamp":164251803564,"id":16,"parentId":1,"tags":{},"startTime":1778972224050,"traceId":"b0773dd8f1e7ac62"},{"name":"generate-required-server-files","duration":2386,"timestamp":164261674492,"id":18,"parentId":1,"tags":{},"startTime":1778972233921,"traceId":"b0773dd8f1e7ac62"},{"name":"check-static-error-page","duration":13362,"timestamp":164261850556,"id":20,"parentId":19,"tags":{},"startTime":1778972234097,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":557690,"timestamp":164261867644,"id":65,"parentId":22,"tags":{},"startTime":1778972234114,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":572428,"timestamp":164261853087,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778972234099,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":562539,"timestamp":164261868127,"id":69,"parentId":28,"tags":{},"startTime":1778972234114,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":574761,"timestamp":164261856056,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778972234102,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":582210,"timestamp":164261868614,"id":72,"parentId":32,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":594386,"timestamp":164261856521,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778972234103,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":610177,"timestamp":164261868819,"id":73,"parentId":33,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":622437,"timestamp":164261856650,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778972234103,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":618115,"timestamp":164261868916,"id":74,"parentId":34,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":630328,"timestamp":164261856788,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778972234103,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":628636,"timestamp":164261867274,"id":64,"parentId":21,"tags":{},"startTime":1778972234114,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":644192,"timestamp":164261851930,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778972234098,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":628461,"timestamp":164261867896,"id":67,"parentId":26,"tags":{},"startTime":1778972234114,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":640536,"timestamp":164261855867,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778972234102,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":627610,"timestamp":164261868947,"id":75,"parentId":35,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":639677,"timestamp":164261856919,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778972234103,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":636026,"timestamp":164261869055,"id":78,"parentId":38,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":647484,"timestamp":164261857659,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778972234104,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":636303,"timestamp":164261869075,"id":79,"parentId":39,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":647684,"timestamp":164261857732,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778972234104,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":637987,"timestamp":164261867989,"id":68,"parentId":27,"tags":{},"startTime":1778972234114,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":650100,"timestamp":164261855946,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778972234102,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":640105,"timestamp":164261869087,"id":80,"parentId":40,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":651420,"timestamp":164261857813,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778972234104,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":644667,"timestamp":164261869109,"id":82,"parentId":44,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":654999,"timestamp":164261858822,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778972234105,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":649145,"timestamp":164261869100,"id":81,"parentId":42,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":660226,"timestamp":164261858078,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778972234104,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":649417,"timestamp":164261869121,"id":83,"parentId":45,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":659619,"timestamp":164261858971,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778972234105,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":653636,"timestamp":164261869147,"id":85,"parentId":47,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":663603,"timestamp":164261859223,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778972234105,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":657817,"timestamp":164261869160,"id":86,"parentId":48,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":667731,"timestamp":164261859324,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778972234106,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":662069,"timestamp":164261869177,"id":87,"parentId":49,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":670446,"timestamp":164261860845,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778972234107,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":672247,"timestamp":164261869033,"id":77,"parentId":37,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":683781,"timestamp":164261857560,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778972234104,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":673746,"timestamp":164261867797,"id":66,"parentId":25,"tags":{},"startTime":1778972234114,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":685879,"timestamp":164261855720,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778972234102,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":672590,"timestamp":164261869188,"id":88,"parentId":50,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":680843,"timestamp":164261860977,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778972234107,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":676933,"timestamp":164261873994,"id":91,"parentId":31,"tags":{},"startTime":1778972234120,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":694659,"timestamp":164261856324,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778972234103,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":687743,"timestamp":164261869134,"id":84,"parentId":46,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":697823,"timestamp":164261859102,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778972234105,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":685130,"timestamp":164261872835,"id":90,"parentId":24,"tags":{},"startTime":1778972234119,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":704544,"timestamp":164261853481,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778972234100,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":687537,"timestamp":164261874847,"id":92,"parentId":41,"tags":{},"startTime":1778972234121,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":704559,"timestamp":164261857875,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778972234104,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":699781,"timestamp":164261869197,"id":89,"parentId":51,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":707963,"timestamp":164261861081,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778972234107,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":700103,"timestamp":164261876209,"id":93,"parentId":43,"tags":{},"startTime":1778972234122,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":717821,"timestamp":164261858535,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778972234105,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":724754,"timestamp":164261868385,"id":70,"parentId":29,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":737061,"timestamp":164261856146,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778972234102,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":764199,"timestamp":164261878566,"id":94,"parentId":23,"tags":{},"startTime":1778972234125,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":789541,"timestamp":164261853301,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778972234100,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":785383,"timestamp":164261868975,"id":76,"parentId":36,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":797001,"timestamp":164261857416,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778972234104,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":777704,"timestamp":164261878652,"id":99,"parentId":56,"tags":{},"startTime":1778972234125,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":794502,"timestamp":164261861906,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778972234108,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":790027,"timestamp":164261868535,"id":71,"parentId":30,"tags":{},"startTime":1778972234115,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":802365,"timestamp":164261856247,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778972234103,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":782426,"timestamp":164261878623,"id":97,"parentId":54,"tags":{},"startTime":1778972234125,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":799479,"timestamp":164261861625,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778972234108,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":784095,"timestamp":164261878666,"id":100,"parentId":58,"tags":{},"startTime":1778972234125,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":800235,"timestamp":164261862565,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778972234109,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":785049,"timestamp":164261878786,"id":101,"parentId":59,"tags":{},"startTime":1778972234125,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":801198,"timestamp":164261862780,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778972234109,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":785020,"timestamp":164261886596,"id":105,"parentId":60,"tags":{},"startTime":1778972234133,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":808700,"timestamp":164261862958,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778972234109,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":792926,"timestamp":164261878830,"id":104,"parentId":63,"tags":{},"startTime":1778972234125,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":808108,"timestamp":164261863671,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778972234110,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":793036,"timestamp":164261878821,"id":103,"parentId":62,"tags":{},"startTime":1778972234125,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":808341,"timestamp":164261863547,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778972234110,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":793331,"timestamp":164261878613,"id":96,"parentId":53,"tags":{},"startTime":1778972234125,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":810443,"timestamp":164261861523,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778972234108,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":775698,"timestamp":164261901254,"id":106,"parentId":57,"tags":{},"startTime":1778972234148,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":814893,"timestamp":164261862091,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778972234108,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":804127,"timestamp":164261878597,"id":95,"parentId":52,"tags":{},"startTime":1778972234125,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":821356,"timestamp":164261861408,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778972234108,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":810291,"timestamp":164261878637,"id":98,"parentId":55,"tags":{},"startTime":1778972234125,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":827201,"timestamp":164261861767,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778972234108,"traceId":"b0773dd8f1e7ac62"},{"name":"is-page-static","duration":824662,"timestamp":164261878808,"id":102,"parentId":61,"tags":{},"startTime":1778972234125,"traceId":"b0773dd8f1e7ac62"},{"name":"check-page","duration":840112,"timestamp":164261863406,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778972234110,"traceId":"b0773dd8f1e7ac62"},{"name":"static-check","duration":853968,"timestamp":164261849582,"id":19,"parentId":1,"tags":{},"startTime":1778972234096,"traceId":"b0773dd8f1e7ac62"}]
|
|
2
|
-
[{"name":"write-routes-manifest","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":254,"timestamp":164857290619,"id":4,"parentId":1,"tags":{},"startTime":1778972829537,"traceId":"1deca77ba9af94f4"},{"name":"load-custom-routes","duration":439,"timestamp":164857291049,"id":5,"parentId":1,"tags":{},"startTime":1778972829537,"traceId":"1deca77ba9af94f4"},{"name":"create-dist-dir","duration":670,"timestamp":164857291527,"id":6,"parentId":1,"tags":{},"startTime":1778972829538,"traceId":"1deca77ba9af94f4"},{"name":"clean","duration":33813,"timestamp":164857292830,"id":7,"parentId":1,"tags":{},"startTime":1778972829539,"traceId":"1deca77ba9af94f4"},{"name":"discover-routes","duration":26867,"timestamp":164857407125,"id":8,"parentId":1,"tags":{},"startTime":1778972829653,"traceId":"1deca77ba9af94f4"},{"name":"create-root-mapping","duration":176,"timestamp":164857434100,"id":9,"parentId":1,"tags":{},"startTime":1778972829680,"traceId":"1deca77ba9af94f4"},{"name":"generate-route-types","duration":23878,"timestamp":164857437821,"id":10,"parentId":1,"tags":{},"startTime":1778972829684,"traceId":"1deca77ba9af94f4"},{"name":"public-dir-conflict-check","duration":119,"timestamp":164857461808,"id":11,"parentId":1,"tags":{},"startTime":1778972829708,"traceId":"1deca77ba9af94f4"},{"name":"generate-routes-manifest","duration":5394,"timestamp":164857462106,"id":12,"parentId":1,"tags":{},"startTime":1778972829708,"traceId":"1deca77ba9af94f4"},{"name":"run-turbopack","duration":6347888,"timestamp":164857480807,"id":14,"parentId":1,"tags":{},"startTime":1778972829727,"traceId":"1deca77ba9af94f4"},{"name":"turbopack-build-events","duration":74,"timestamp":164857816382,"id":15,"parentId":1,"tags":{},"startTime":1778972830063,"traceId":"1deca77ba9af94f4"},{"name":"run-typescript","duration":9663423,"timestamp":164863837048,"id":16,"parentId":1,"tags":{},"startTime":1778972836083,"traceId":"1deca77ba9af94f4"},{"name":"generate-required-server-files","duration":2243,"timestamp":164873501547,"id":18,"parentId":1,"tags":{},"startTime":1778972845748,"traceId":"1deca77ba9af94f4"},{"name":"check-static-error-page","duration":15687,"timestamp":164873698803,"id":20,"parentId":19,"tags":{},"startTime":1778972845945,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":545188,"timestamp":164873718720,"id":67,"parentId":26,"tags":{},"startTime":1778972845965,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":558889,"timestamp":164873705242,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778972845952,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":551789,"timestamp":164873719372,"id":71,"parentId":30,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":565428,"timestamp":164873705816,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778972845952,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":556953,"timestamp":164873718444,"id":65,"parentId":22,"tags":{},"startTime":1778972845965,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":573522,"timestamp":164873701949,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778972845948,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":585610,"timestamp":164873718607,"id":66,"parentId":25,"tags":{},"startTime":1778972845965,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":599221,"timestamp":164873705080,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778972845951,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":593138,"timestamp":164873718952,"id":69,"parentId":28,"tags":{},"startTime":1778972845965,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":606658,"timestamp":164873705523,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778972845952,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":600255,"timestamp":164873719436,"id":72,"parentId":32,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":613555,"timestamp":164873706230,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778972845953,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":600483,"timestamp":164873719653,"id":74,"parentId":34,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":613693,"timestamp":164873706490,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778972845953,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":600663,"timestamp":164873719678,"id":75,"parentId":35,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":613763,"timestamp":164873706610,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778972845953,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":605545,"timestamp":164873719695,"id":76,"parentId":36,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":618183,"timestamp":164873707109,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778972845953,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":610509,"timestamp":164873719763,"id":79,"parentId":39,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":622827,"timestamp":164873707501,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778972845954,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":611471,"timestamp":164873719223,"id":70,"parentId":29,"tags":{},"startTime":1778972845965,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":625098,"timestamp":164873705651,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778972845952,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":615511,"timestamp":164873719776,"id":80,"parentId":40,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":627740,"timestamp":164873707596,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778972845954,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":620296,"timestamp":164873719797,"id":82,"parentId":44,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":631719,"timestamp":164873708422,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778972845955,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":624388,"timestamp":164873719809,"id":83,"parentId":45,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":635667,"timestamp":164873708575,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778972845955,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":631257,"timestamp":164873719824,"id":84,"parentId":46,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":642449,"timestamp":164873708678,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778972845955,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":633841,"timestamp":164873719834,"id":85,"parentId":47,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":644903,"timestamp":164873708816,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778972845955,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":638484,"timestamp":164873719848,"id":86,"parentId":48,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":649461,"timestamp":164873708929,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778972845955,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":642803,"timestamp":164873719861,"id":87,"parentId":49,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":652088,"timestamp":164873710630,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778972845957,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":643786,"timestamp":164873719722,"id":77,"parentId":37,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":656279,"timestamp":164873707279,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778972845954,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":647426,"timestamp":164873719872,"id":88,"parentId":50,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":656545,"timestamp":164873710807,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778972845957,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":649918,"timestamp":164873723149,"id":90,"parentId":24,"tags":{},"startTime":1778972845969,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":670587,"timestamp":164873702529,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778972845949,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":653507,"timestamp":164873719750,"id":78,"parentId":38,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":665887,"timestamp":164873707402,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778972845954,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":666849,"timestamp":164873719587,"id":73,"parentId":33,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":680130,"timestamp":164873706368,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778972845953,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":662599,"timestamp":164873725098,"id":92,"parentId":41,"tags":{},"startTime":1778972845971,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":680085,"timestamp":164873707695,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778972845954,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":666191,"timestamp":164873724250,"id":91,"parentId":31,"tags":{},"startTime":1778972845971,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":684554,"timestamp":164873705937,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778972845952,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":670956,"timestamp":164873719880,"id":89,"parentId":51,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":679979,"timestamp":164873710902,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778972845957,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":681885,"timestamp":164873719785,"id":81,"parentId":42,"tags":{},"startTime":1778972845966,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":693771,"timestamp":164873707956,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778972845954,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":697174,"timestamp":164873718849,"id":68,"parentId":27,"tags":{},"startTime":1778972845965,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":710702,"timestamp":164873705380,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778972845952,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":719222,"timestamp":164873718059,"id":64,"parentId":21,"tags":{},"startTime":1778972845964,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":736991,"timestamp":164873700358,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778972845947,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":718100,"timestamp":164873728648,"id":99,"parentId":56,"tags":{},"startTime":1778972845975,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":734670,"timestamp":164873712144,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778972845958,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":727987,"timestamp":164873728608,"id":96,"parentId":53,"tags":{},"startTime":1778972845975,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":745113,"timestamp":164873711540,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778972845958,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":732775,"timestamp":164873726454,"id":93,"parentId":43,"tags":{},"startTime":1778972845973,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":751352,"timestamp":164873708115,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778972845954,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":737760,"timestamp":164873728802,"id":101,"parentId":59,"tags":{},"startTime":1778972845975,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":753390,"timestamp":164873713243,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778972845960,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":740467,"timestamp":164873728594,"id":95,"parentId":52,"tags":{},"startTime":1778972845975,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":757744,"timestamp":164873711363,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778972845958,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":746260,"timestamp":164873728617,"id":97,"parentId":54,"tags":{},"startTime":1778972845975,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":763236,"timestamp":164873711696,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778972845958,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":754466,"timestamp":164873728837,"id":103,"parentId":62,"tags":{},"startTime":1778972845975,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":769311,"timestamp":164873714038,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778972845960,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":747921,"timestamp":164873736984,"id":105,"parentId":60,"tags":{},"startTime":1778972845983,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":771517,"timestamp":164873713428,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778972845960,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":760343,"timestamp":164873728567,"id":94,"parentId":23,"tags":{},"startTime":1778972845975,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":786702,"timestamp":164873702252,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778972845949,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":720442,"timestamp":164873770850,"id":106,"parentId":57,"tags":{},"startTime":1778972846017,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":778942,"timestamp":164873712385,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778972845959,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":767408,"timestamp":164873728846,"id":104,"parentId":63,"tags":{},"startTime":1778972845975,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":782119,"timestamp":164873714186,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778972845960,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":775471,"timestamp":164873728656,"id":100,"parentId":58,"tags":{},"startTime":1778972845975,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":791212,"timestamp":164873712960,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778972845959,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":788756,"timestamp":164873728628,"id":98,"parentId":55,"tags":{},"startTime":1778972845975,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":805518,"timestamp":164873711913,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778972845958,"traceId":"1deca77ba9af94f4"},{"name":"is-page-static","duration":808662,"timestamp":164873728824,"id":102,"parentId":61,"tags":{},"startTime":1778972845975,"traceId":"1deca77ba9af94f4"},{"name":"check-page","duration":823661,"timestamp":164873713868,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778972845960,"traceId":"1deca77ba9af94f4"},{"name":"static-check","duration":839915,"timestamp":164873697651,"id":19,"parentId":1,"tags":{},"startTime":1778972845944,"traceId":"1deca77ba9af94f4"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":529,"timestamp":164874547345,"id":108,"parentId":1,"tags":{},"startTime":1778972846794,"traceId":"1deca77ba9af94f4"},{"name":"load-dotenv","duration":44,"timestamp":164874559940,"id":111,"parentId":110,"tags":{},"startTime":1778972846806,"traceId":"1deca77ba9af94f4"},{"name":"run-export-path-map","duration":581,"timestamp":164874562591,"id":112,"parentId":110,"tags":{},"startTime":1778972846809,"traceId":"1deca77ba9af94f4"},{"name":"next-export","duration":589199,"timestamp":164874558622,"id":110,"parentId":1,"tags":{},"startTime":1778972846805,"traceId":"1deca77ba9af94f4"},{"name":"move-exported-app-not-found-","duration":599,"timestamp":164875151698,"id":113,"parentId":109,"tags":{},"startTime":1778972847398,"traceId":"1deca77ba9af94f4"},{"name":"move-exported-app-global-error-","duration":428,"timestamp":164875152406,"id":114,"parentId":109,"tags":{},"startTime":1778972847399,"traceId":"1deca77ba9af94f4"},{"name":"static-generation","duration":602115,"timestamp":164874553046,"id":109,"parentId":1,"tags":{},"startTime":1778972846799,"traceId":"1deca77ba9af94f4"},{"name":"write-routes-manifest","duration":427,"timestamp":164875155396,"id":115,"parentId":1,"tags":{},"startTime":1778972847402,"traceId":"1deca77ba9af94f4"},{"name":"print-tree-view","duration":5652,"timestamp":164875163128,"id":116,"parentId":1,"tags":{},"startTime":1778972847409,"traceId":"1deca77ba9af94f4"},{"name":"write-route-bundle-stats","duration":17248,"timestamp":164875168817,"id":117,"parentId":1,"tags":{},"startTime":1778972847415,"traceId":"1deca77ba9af94f4"},{"name":"telemetry-flush","duration":23612,"timestamp":164875186099,"id":118,"parentId":1,"tags":{},"startTime":1778972847432,"traceId":"1deca77ba9af94f4"},{"name":"next-build","duration":17973068,"timestamp":164857236694,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778972829483,"traceId":"1deca77ba9af94f4"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":6347888,"timestamp":164857480807,"id":14,"parentId":1,"tags":{},"startTime":1778972829727,"traceId":"1deca77ba9af94f4"},{"name":"turbopack-build-events","duration":74,"timestamp":164857816382,"id":15,"parentId":1,"tags":{},"startTime":1778972830063,"traceId":"1deca77ba9af94f4"},{"name":"run-typescript","duration":9663423,"timestamp":164863837048,"id":16,"parentId":1,"tags":{},"startTime":1778972836083,"traceId":"1deca77ba9af94f4"},{"name":"static-check","duration":839915,"timestamp":164873697651,"id":19,"parentId":1,"tags":{},"startTime":1778972845944,"traceId":"1deca77ba9af94f4"},{"name":"static-generation","duration":602115,"timestamp":164874553046,"id":109,"parentId":1,"tags":{},"startTime":1778972846799,"traceId":"1deca77ba9af94f4"},{"name":"telemetry-flush","duration":23612,"timestamp":164875186099,"id":118,"parentId":1,"tags":{},"startTime":1778972847432,"traceId":"1deca77ba9af94f4"},{"name":"next-build","duration":17973068,"timestamp":164857236694,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778972829483,"traceId":"1deca77ba9af94f4"}]
|
|
@@ -4528,14 +4528,42 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4528
4528
|
fill-inherit from parent label (hover-deepen-own-
|
|
4529
4529
|
hue family) preserved. data-group-label-count-
|
|
4530
4530
|
font-weight attr exposes the value for tests. */}
|
|
4531
|
+
{/* Round 444 / Loop: group label count tspan
|
|
4532
|
+
fontWeight 500 → 600 on isPinned. Extends the
|
|
4533
|
+
"data tightens under attention" typographic-
|
|
4534
|
+
weight pattern to a 5th anchor at the group-
|
|
4535
|
+
label-count scope:
|
|
4536
|
+
R416 chip-digit (chip hover)
|
|
4537
|
+
R424 panel-digit (panel hover)
|
|
4538
|
+
R425 hub-digit (hub hover)
|
|
4539
|
+
R426 edge-badge-digit (pin/hot)
|
|
4540
|
+
R444 group-label-count (pinned) ← this round
|
|
4541
|
+
Same idiom — when the group is locked, its
|
|
4542
|
+
member-count tightens typographically alongside
|
|
4543
|
+
the R432 letter-spacing spread (0 → 0.5px) on
|
|
4544
|
+
the parent label. Hover keeps rest fw (500) so
|
|
4545
|
+
the locked vs preview distinction at the type
|
|
4546
|
+
level stays intact — same gate R432 used.
|
|
4547
|
+
Monospace + R225 tabular-nums lock the digit
|
|
4548
|
+
width across fw changes; bbox unchanged; overlap-
|
|
4549
|
+
test invariants hold. transition list adds
|
|
4550
|
+
'font-weight 200ms ease-out' matching R432
|
|
4551
|
+
letter-spacing cadence. R229 fill-inherit
|
|
4552
|
+
preserved (parent text fill still drives the
|
|
4553
|
+
hover/pin color). data-group-label-count-font-
|
|
4554
|
+
weight + -pinned attrs exposed for tests. */}
|
|
4531
4555
|
<tspan
|
|
4532
4556
|
dx="6"
|
|
4533
4557
|
fontSize="11"
|
|
4534
|
-
fontWeight=
|
|
4558
|
+
fontWeight={isPinned ? '600' : '500'}
|
|
4535
4559
|
data-group-label-count={box.key}
|
|
4536
4560
|
data-group-label-count-value={box.count}
|
|
4537
|
-
data-group-label-count-
|
|
4538
|
-
|
|
4561
|
+
data-group-label-count-pinned={isPinned ? 'true' : 'false'}
|
|
4562
|
+
data-group-label-count-font-weight={isPinned ? '600' : '500'}
|
|
4563
|
+
style={{
|
|
4564
|
+
fontVariantNumeric: 'tabular-nums',
|
|
4565
|
+
transition: 'font-weight 200ms ease-out',
|
|
4566
|
+
}}
|
|
4539
4567
|
>· {box.count}</tspan>
|
|
4540
4568
|
{/* Round 58 / Loop: status mix pip strip. Compact text-
|
|
4541
4569
|
based chips (e.g. "2w 1i") so the strip stays inside
|
|
@@ -7068,8 +7096,37 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
7068
7096
|
transition: 'r 150ms ease-out, stroke-width 150ms ease-out',
|
|
7069
7097
|
} as React.CSSProperties}
|
|
7070
7098
|
/>
|
|
7099
|
+
{/* Round 443 / Loop: runtime badge inner-icon
|
|
7100
|
+
strokeWidth lift on node hover — 2.4 → 2.8 on
|
|
7101
|
+
isNodeActive. Pre-R443 the outer badge ring
|
|
7102
|
+
lifted (R208 r + sw both grow on hover) but
|
|
7103
|
+
the inner icon path stayed locked at sw=2.4.
|
|
7104
|
+
The two layers of the runtime badge were
|
|
7105
|
+
out of phase: ring thickened, icon stayed
|
|
7106
|
+
thin. R443 closes the 2-axis hover signature
|
|
7107
|
+
on the badge so both ring and icon lift
|
|
7108
|
+
together. +0.4 absolute delta matches the
|
|
7109
|
+
R208 ring's +0.5 sw delta (badge ring 1.5 →
|
|
7110
|
+
2.0 absolute), proportional to the icon's
|
|
7111
|
+
heavier base of 2.4. Pure paint axis;
|
|
7112
|
+
strokeLinecap='round' + strokeLinejoin='round'
|
|
7113
|
+
preserved. transition list extends to include
|
|
7114
|
+
'stroke-width 150ms ease-out' matching R208
|
|
7115
|
+
outer-ring cadence. data-runtime-badge-icon
|
|
7116
|
+
+ -active attrs exposed for tests. */}
|
|
7071
7117
|
<g transform={`translate(${bx - icon / 2} ${by - icon / 2}) scale(${icon / 24})`}>
|
|
7072
|
-
<path
|
|
7118
|
+
<path
|
|
7119
|
+
d={rt.iconPath}
|
|
7120
|
+
fill="none"
|
|
7121
|
+
stroke={rt.color}
|
|
7122
|
+
strokeWidth={isNodeActive ? '2.8' : '2.4'}
|
|
7123
|
+
strokeLinecap="round"
|
|
7124
|
+
strokeLinejoin="round"
|
|
7125
|
+
data-runtime-badge-icon={session.alias}
|
|
7126
|
+
data-runtime-badge-icon-active={isNodeActive ? 'true' : 'false'}
|
|
7127
|
+
data-runtime-badge-icon-stroke-width={isNodeActive ? '2.8' : '2.4'}
|
|
7128
|
+
style={{ transition: 'stroke-width 150ms ease-out' }}
|
|
7129
|
+
/>
|
|
7073
7130
|
</g>
|
|
7074
7131
|
</g>
|
|
7075
7132
|
);
|
package/package.json
CHANGED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* Round 444 verification: group label count tspan fontWeight lift —
|
|
2
|
+
* 500 → 600 on isPinned. Mirror of R416/R424/R425/R426 "data tightens
|
|
3
|
+
* under attention" pattern at group-label-count scope.
|
|
4
|
+
*
|
|
5
|
+
* Contract:
|
|
6
|
+
* - rest: every group-label-count reports font-weight '500' +
|
|
7
|
+
* pinned='false'
|
|
8
|
+
* - click a group-label-hit: that group's count flips to '600' +
|
|
9
|
+
* pinned='true'
|
|
10
|
+
* - siblings stay rest
|
|
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
|
+
const browser = await chromium.launch({ headless: true });
|
|
19
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
20
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
21
|
+
await ctx.addInitScript(() => {
|
|
22
|
+
try {
|
|
23
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
24
|
+
localStorage.setItem('anet-topo-layout', 'grid');
|
|
25
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
26
|
+
} catch {}
|
|
27
|
+
});
|
|
28
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
29
|
+
const r = await route.fetch();
|
|
30
|
+
const b = await r.json();
|
|
31
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
32
|
+
const mk = (alias, status) => ({
|
|
33
|
+
alias, status, model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
34
|
+
network_id: nid, project_dir: null,
|
|
35
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
36
|
+
});
|
|
37
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
38
|
+
mk('alpha·1', 'working'),
|
|
39
|
+
mk('alpha·2', 'idle'),
|
|
40
|
+
mk('beta·1', 'working'),
|
|
41
|
+
mk('beta·2', 'idle'),
|
|
42
|
+
] } });
|
|
43
|
+
});
|
|
44
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
45
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
46
|
+
|
|
47
|
+
const page = await ctx.newPage();
|
|
48
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
49
|
+
await page.waitForSelector('[data-group-label-count]', { timeout: 15000 });
|
|
50
|
+
await page.waitForTimeout(400);
|
|
51
|
+
|
|
52
|
+
const readAll = () => page.evaluate(() => {
|
|
53
|
+
const ts = [...document.querySelectorAll('[data-group-label-count]')];
|
|
54
|
+
return ts.map(t => ({
|
|
55
|
+
key: t.getAttribute('data-group-label-count'),
|
|
56
|
+
fw: t.getAttribute('font-weight'),
|
|
57
|
+
pinned: t.getAttribute('data-group-label-count-pinned'),
|
|
58
|
+
}));
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const rest = await readAll();
|
|
62
|
+
const firstKey = rest[0]?.key;
|
|
63
|
+
|
|
64
|
+
// Pin the first group by clicking its label-hit wrapper
|
|
65
|
+
let pinned = null;
|
|
66
|
+
if (firstKey) {
|
|
67
|
+
const hit = await page.$(`[data-group-label-hit="${firstKey}"]`);
|
|
68
|
+
if (hit) {
|
|
69
|
+
await hit.click();
|
|
70
|
+
await page.waitForTimeout(250);
|
|
71
|
+
pinned = await readAll();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const fileText = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
76
|
+
const sourceWired = /fontWeight=\{isPinned \? '600' : '500'\}/.test(fileText);
|
|
77
|
+
|
|
78
|
+
await browser.close();
|
|
79
|
+
|
|
80
|
+
const restAll500 = rest.every(r => r.fw === '500');
|
|
81
|
+
const restNoPin = rest.every(r => r.pinned === 'false');
|
|
82
|
+
const pinnedEntry = pinned?.find(r => r.key === firstKey);
|
|
83
|
+
const pinnedFw_600 = pinnedEntry?.fw === '600';
|
|
84
|
+
const pinnedFlag = pinnedEntry?.pinned === 'true';
|
|
85
|
+
const othersRest = pinned ? pinned.filter(r => r.key !== firstKey).every(r => r.fw === '500' && r.pinned === 'false') : false;
|
|
86
|
+
|
|
87
|
+
const results = {
|
|
88
|
+
rest_count_ge_2: rest.length >= 2,
|
|
89
|
+
rest_all_fw_500: restAll500,
|
|
90
|
+
rest_no_pin: restNoPin,
|
|
91
|
+
pinned_target_fw_600: pinnedFw_600,
|
|
92
|
+
pinned_target_flag: pinnedFlag,
|
|
93
|
+
pinned_others_stay: othersRest,
|
|
94
|
+
source_wired: sourceWired,
|
|
95
|
+
};
|
|
96
|
+
const ok = Object.values(results).every(Boolean);
|
|
97
|
+
console.log(`${ok ? '✅' : '❌'} group label count fw pin:`, JSON.stringify(results),
|
|
98
|
+
'\n rest:', JSON.stringify(rest),
|
|
99
|
+
'\n pinned target:', JSON.stringify(pinnedEntry));
|
|
100
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
/* Round
|
|
2
|
-
* lift —
|
|
3
|
-
* known-vendor models WITHOUT a packaged logo asset.
|
|
1
|
+
/* Round 443 verification: runtime badge inner-icon strokeWidth hover
|
|
2
|
+
* lift — 2.4 → 2.8 on node hover. Sibling to R208 outer ring sw lift.
|
|
4
3
|
*
|
|
5
4
|
* Contract:
|
|
6
|
-
* -
|
|
7
|
-
* '
|
|
8
|
-
* -
|
|
9
|
-
* hovered='false'
|
|
10
|
-
* - hover one node: that ring lifts to '1' + hovered='true'
|
|
5
|
+
* - rest: every runtime icon path reports stroke-width '2.4' +
|
|
6
|
+
* active='false'
|
|
7
|
+
* - hover one node: that icon path stroke-width '2.8' + active='true'
|
|
11
8
|
* - siblings stay rest
|
|
12
|
-
* - strokeWidth=1.5 unchanged across both states (R51 sentinel)
|
|
13
9
|
*/
|
|
14
10
|
import { chromium } from 'playwright';
|
|
15
11
|
import { readFileSync } from 'node:fs';
|
|
@@ -27,16 +23,15 @@ await ctx.route('**/api/hub/status*', async (route) => {
|
|
|
27
23
|
const r = await route.fetch();
|
|
28
24
|
const b = await r.json();
|
|
29
25
|
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
30
|
-
const mk = (alias, status,
|
|
31
|
-
alias, status, model
|
|
26
|
+
const mk = (alias, status, runtime) => ({
|
|
27
|
+
alias, status, model: 'claude-opus-4', runtime,
|
|
32
28
|
network_id: nid, project_dir: null,
|
|
33
29
|
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
34
30
|
});
|
|
35
|
-
// Use gpt-4 (OpenAI known vendor without a logo asset, falls through to monogram path)
|
|
36
31
|
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
37
|
-
mk('alpha', 'working', '
|
|
38
|
-
mk('beta', 'idle', '
|
|
39
|
-
mk('gamma', 'working', '
|
|
32
|
+
mk('alpha', 'working', 'claude-code-cli'),
|
|
33
|
+
mk('beta', 'idle', 'claude-code-cli'),
|
|
34
|
+
mk('gamma', 'working', 'claude-code-cli'),
|
|
40
35
|
] } });
|
|
41
36
|
});
|
|
42
37
|
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
@@ -44,17 +39,15 @@ await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }
|
|
|
44
39
|
|
|
45
40
|
const page = await ctx.newPage();
|
|
46
41
|
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
47
|
-
|
|
48
|
-
await page.waitForSelector('[data-node-monogram-ring]', { timeout: 15000 });
|
|
42
|
+
await page.waitForSelector('[data-runtime-badge-icon]', { timeout: 15000 });
|
|
49
43
|
await page.waitForTimeout(400);
|
|
50
44
|
|
|
51
45
|
const readAll = () => page.evaluate(() => {
|
|
52
|
-
const
|
|
53
|
-
return
|
|
54
|
-
alias:
|
|
55
|
-
sw:
|
|
56
|
-
|
|
57
|
-
hovered: c.getAttribute('data-node-monogram-ring-hovered'),
|
|
46
|
+
const ps = [...document.querySelectorAll('[data-runtime-badge-icon]')];
|
|
47
|
+
return ps.map(p => ({
|
|
48
|
+
alias: p.getAttribute('data-runtime-badge-icon'),
|
|
49
|
+
sw: p.getAttribute('stroke-width'),
|
|
50
|
+
active: p.getAttribute('data-runtime-badge-icon-active'),
|
|
58
51
|
}));
|
|
59
52
|
});
|
|
60
53
|
|
|
@@ -76,32 +69,28 @@ if (box) {
|
|
|
76
69
|
}
|
|
77
70
|
|
|
78
71
|
const fileText = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
79
|
-
const sourceWired = /
|
|
72
|
+
const sourceWired = /strokeWidth=\{isNodeActive \? '2\.8' : '2\.4'\}/.test(fileText);
|
|
80
73
|
|
|
81
74
|
await browser.close();
|
|
82
75
|
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
const restSw_1_5 = rest.every(r => r.sw === '1.5');
|
|
76
|
+
const restAll_2_4 = rest.every(r => r.sw === '2.4');
|
|
77
|
+
const restNoActive = rest.every(r => r.active === 'false');
|
|
86
78
|
const hoveredEntry = hover?.find(r => r.alias === 'alpha');
|
|
87
|
-
const
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
const othersRest = hover ? hover.filter(r => r.alias !== 'alpha').every(r => r.opacity === 0.85 && r.hovered === 'false') : false;
|
|
79
|
+
const hoverSw_2_8 = hoveredEntry?.sw === '2.8';
|
|
80
|
+
const hoverActive = hoveredEntry?.active === 'true';
|
|
81
|
+
const othersRest = hover ? hover.filter(r => r.alias !== 'alpha').every(r => r.sw === '2.4' && r.active === 'false') : false;
|
|
91
82
|
|
|
92
83
|
const results = {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
hover_others_stay_rest: othersRest,
|
|
101
|
-
source_wired: sourceWired,
|
|
84
|
+
rest_count_ge_3: rest.length >= 3,
|
|
85
|
+
rest_all_sw_2_4: restAll_2_4,
|
|
86
|
+
rest_all_active_false: restNoActive,
|
|
87
|
+
hover_target_sw_2_8: hoverSw_2_8,
|
|
88
|
+
hover_target_active: hoverActive,
|
|
89
|
+
hover_others_stay: othersRest,
|
|
90
|
+
source_wired: sourceWired,
|
|
102
91
|
};
|
|
103
92
|
const ok = Object.values(results).every(Boolean);
|
|
104
|
-
console.log(`${ok ? '✅' : '❌'}
|
|
93
|
+
console.log(`${ok ? '✅' : '❌'} runtime icon hover sw:`, JSON.stringify(results),
|
|
105
94
|
'\n rest:', JSON.stringify(rest),
|
|
106
95
|
'\n hover target:', JSON.stringify(hoveredEntry));
|
|
107
96
|
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{C4S-pZLvaSQD1t5kAxh5m → yj2TdlKkmTIQGZLMLpDOb}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|