@sleep2agi/agent-network-dashboard 0.5.3-preview.171 → 0.5.3-preview.173
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +5 -5
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/admin.html +1 -1
- package/.next/server/app/admin.rsc +1 -1
- package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +2 -2
- package/.next/server/app/login.rsc +2 -2
- package/.next/server/app/login.segments/_full.segment.rsc +2 -2
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +1 -1
- package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/.next/server/app/logs.html +1 -1
- package/.next/server/app/logs.rsc +1 -1
- package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
- package/.next/server/app/messages.html +1 -1
- package/.next/server/app/messages.rsc +1 -1
- package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
- package/.next/server/app/node.html +1 -1
- package/.next/server/app/node.rsc +1 -1
- package/.next/server/app/node.segments/_full.segment.rsc +1 -1
- package/.next/server/app/node.segments/_head.segment.rsc +1 -1
- package/.next/server/app/node.segments/_index.segment.rsc +1 -1
- package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/node.segments/node.segment.rsc +1 -1
- package/.next/server/app/nodes.html +1 -1
- package/.next/server/app/nodes.rsc +1 -1
- package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs.html +1 -1
- package/.next/server/app/server-logs.rsc +1 -1
- package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
- package/.next/server/app/settings/networks.html +1 -1
- package/.next/server/app/settings/networks.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens.html +1 -1
- package/.next/server/app/settings/tokens.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings.html +2 -2
- package/.next/server/app/settings.rsc +2 -2
- package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
- package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/.next/server/app/tasks.html +1 -1
- package/.next/server/app/tasks.rsc +1 -1
- package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +1 -1
- 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/{0v9ruva902feb.js → 0-0tb5~uxnj_1.js} +1 -1
- package/.next/static/chunks/{0qprv_83ervj7.js → 03~otnra9jkiw.js} +4 -4
- package/.next/static/chunks/{0.bt153zu.xu3.js → 0s~gnouiaeook.js} +1 -1
- package/.next/static/chunks/{0r958sir8xouh.js → 11uu6_klpiy.e.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +12 -4
- package/package.json +1 -1
- package/scripts/topo-node-avatar-halo-layers-test.mjs +25 -0
- package/scripts/topo-recent-row-text-halo-layers-test.mjs +67 -0
- /package/.next/static/{hA6ox_Th7oyKFksYUIVNN → sXdIJFarOdEk3qaNiKRl2}/_buildManifest.js +0 -0
- /package/.next/static/{hA6ox_Th7oyKFksYUIVNN → sXdIJFarOdEk3qaNiKRl2}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{hA6ox_Th7oyKFksYUIVNN → sXdIJFarOdEk3qaNiKRl2}/_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.3-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.3-preview.173"],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.3-preview.171"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.3-preview.173"],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":333,"timestamp":253171304065,"id":4,"parentId":1,"tags":{},"startTime":1779061143550,"traceId":"7f289fca8d463214"},{"name":"load-custom-routes","duration":569,"timestamp":253171304561,"id":5,"parentId":1,"tags":{},"startTime":1779061143551,"traceId":"7f289fca8d463214"},{"name":"create-dist-dir","duration":2230,"timestamp":253171305179,"id":6,"parentId":1,"tags":{},"startTime":1779061143551,"traceId":"7f289fca8d463214"},{"name":"clean","duration":35181,"timestamp":253171308376,"id":7,"parentId":1,"tags":{},"startTime":1779061143555,"traceId":"7f289fca8d463214"},{"name":"discover-routes","duration":27005,"timestamp":253171435246,"id":8,"parentId":1,"tags":{},"startTime":1779061143682,"traceId":"7f289fca8d463214"},{"name":"create-root-mapping","duration":122,"timestamp":253171462320,"id":9,"parentId":1,"tags":{},"startTime":1779061143709,"traceId":"7f289fca8d463214"},{"name":"generate-route-types","duration":26101,"timestamp":253171465529,"id":10,"parentId":1,"tags":{},"startTime":1779061143712,"traceId":"7f289fca8d463214"},{"name":"public-dir-conflict-check","duration":101,"timestamp":253171491723,"id":11,"parentId":1,"tags":{},"startTime":1779061143738,"traceId":"7f289fca8d463214"},{"name":"generate-routes-manifest","duration":4616,"timestamp":253171491979,"id":12,"parentId":1,"tags":{},"startTime":1779061143738,"traceId":"7f289fca8d463214"},{"name":"run-turbopack","duration":6269389,"timestamp":253171501601,"id":14,"parentId":1,"tags":{},"startTime":1779061143748,"traceId":"7f289fca8d463214"},{"name":"turbopack-build-events","duration":84,"timestamp":253171782767,"id":15,"parentId":1,"tags":{},"startTime":1779061144029,"traceId":"7f289fca8d463214"},{"name":"run-typescript","duration":9390599,"timestamp":253177784721,"id":16,"parentId":1,"tags":{},"startTime":1779061150031,"traceId":"7f289fca8d463214"},{"name":"generate-required-server-files","duration":2500,"timestamp":253187176647,"id":18,"parentId":1,"tags":{},"startTime":1779061159423,"traceId":"7f289fca8d463214"},{"name":"check-static-error-page","duration":15015,"timestamp":253187345402,"id":20,"parentId":19,"tags":{},"startTime":1779061159592,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":453182,"timestamp":253187364405,"id":65,"parentId":22,"tags":{},"startTime":1779061159611,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":469141,"timestamp":253187348640,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1779061159595,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":538602,"timestamp":253187364801,"id":68,"parentId":27,"tags":{},"startTime":1779061159611,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":551297,"timestamp":253187352209,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1779061159598,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":544646,"timestamp":253187364548,"id":66,"parentId":25,"tags":{},"startTime":1779061159611,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":557366,"timestamp":253187351899,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1779061159598,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":567816,"timestamp":253187365504,"id":72,"parentId":32,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":580448,"timestamp":253187352948,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1779061159599,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":569917,"timestamp":253187365431,"id":71,"parentId":30,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":582861,"timestamp":253187352569,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1779061159599,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":573570,"timestamp":253187365678,"id":73,"parentId":33,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":586221,"timestamp":253187353091,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1779061159599,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":577998,"timestamp":253187365770,"id":74,"parentId":34,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":590629,"timestamp":253187353204,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1779061159599,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":579895,"timestamp":253187365824,"id":76,"parentId":36,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":591799,"timestamp":253187353967,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1779061159600,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":582610,"timestamp":253187364672,"id":67,"parentId":26,"tags":{},"startTime":1779061159611,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":595239,"timestamp":253187352091,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1779061159598,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":588291,"timestamp":253187365879,"id":78,"parentId":38,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":599855,"timestamp":253187354360,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1779061159601,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":591292,"timestamp":253187365896,"id":79,"parentId":39,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":602763,"timestamp":253187354469,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1779061159601,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":592272,"timestamp":253187365856,"id":77,"parentId":37,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":603981,"timestamp":253187354194,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1779061159600,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":601027,"timestamp":253187365803,"id":75,"parentId":35,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":613569,"timestamp":253187353313,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1779061159600,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":601144,"timestamp":253187365954,"id":82,"parentId":44,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":611693,"timestamp":253187355441,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1779061159602,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":602028,"timestamp":253187365264,"id":70,"parentId":29,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":614881,"timestamp":253187352438,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1779061159599,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":606599,"timestamp":253187365908,"id":80,"parentId":40,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":617978,"timestamp":253187354576,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1779061159601,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":607895,"timestamp":253187364935,"id":69,"parentId":28,"tags":{},"startTime":1779061159611,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":620553,"timestamp":253187352326,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1779061159599,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":609203,"timestamp":253187365987,"id":84,"parentId":46,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":619530,"timestamp":253187355701,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1779061159602,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":613031,"timestamp":253187366035,"id":86,"parentId":48,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":623129,"timestamp":253187355978,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1779061159602,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":617070,"timestamp":253187366078,"id":89,"parentId":51,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":625746,"timestamp":253187357452,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1779061159604,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":619279,"timestamp":253187364089,"id":64,"parentId":21,"tags":{},"startTime":1779061159610,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":636262,"timestamp":253187347136,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1779061159593,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":622537,"timestamp":253187369533,"id":90,"parentId":24,"tags":{},"startTime":1779061159616,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":642861,"timestamp":253187349266,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1779061159596,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":626664,"timestamp":253187366062,"id":88,"parentId":50,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":635378,"timestamp":253187357394,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1779061159604,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":628180,"timestamp":253187365939,"id":81,"parentId":42,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":639205,"timestamp":253187354969,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1779061159601,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":628783,"timestamp":253187366047,"id":87,"parentId":49,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":637589,"timestamp":253187357307,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1779061159604,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":626770,"timestamp":253187371553,"id":92,"parentId":41,"tags":{},"startTime":1779061159618,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":643684,"timestamp":253187354683,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1779061159601,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":625830,"timestamp":253187372722,"id":93,"parentId":43,"tags":{},"startTime":1779061159619,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":643477,"timestamp":253187355134,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1779061159601,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":643118,"timestamp":253187366018,"id":85,"parentId":47,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":653356,"timestamp":253187355837,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1779061159602,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":650165,"timestamp":253187365967,"id":83,"parentId":45,"tags":{},"startTime":1779061159612,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":660597,"timestamp":253187355586,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1779061159602,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":698169,"timestamp":253187375166,"id":97,"parentId":54,"tags":{},"startTime":1779061159621,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":715452,"timestamp":253187357953,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1779061159604,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":699378,"timestamp":253187375134,"id":95,"parentId":52,"tags":{},"startTime":1779061159621,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":716834,"timestamp":253187357734,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1779061159604,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":699619,"timestamp":253187375106,"id":94,"parentId":23,"tags":{},"startTime":1779061159621,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":725799,"timestamp":253187348964,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1779061159595,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":707875,"timestamp":253187375360,"id":102,"parentId":61,"tags":{},"startTime":1779061159622,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":723537,"timestamp":253187359774,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1779061159606,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":710060,"timestamp":253187375194,"id":99,"parentId":56,"tags":{},"startTime":1779061159621,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":727051,"timestamp":253187358252,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1779061159605,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":710246,"timestamp":253187375210,"id":100,"parentId":58,"tags":{},"startTime":1779061159621,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":726613,"timestamp":253187358875,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1779061159605,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":713904,"timestamp":253187375339,"id":101,"parentId":59,"tags":{},"startTime":1779061159622,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":730169,"timestamp":253187359121,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1779061159605,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":716416,"timestamp":253187375390,"id":104,"parentId":63,"tags":{},"startTime":1779061159622,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":731701,"timestamp":253187360146,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1779061159606,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":717720,"timestamp":253187375375,"id":103,"parentId":62,"tags":{},"startTime":1779061159622,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":733167,"timestamp":253187359959,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1779061159606,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":718956,"timestamp":253187375181,"id":98,"parentId":55,"tags":{},"startTime":1779061159621,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":736054,"timestamp":253187358109,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1779061159604,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":699594,"timestamp":253187395777,"id":106,"parentId":57,"tags":{},"startTime":1779061159642,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":736994,"timestamp":253187358416,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1779061159605,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":711278,"timestamp":253187384217,"id":105,"parentId":60,"tags":{},"startTime":1779061159630,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":736195,"timestamp":253187359320,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1779061159606,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":720707,"timestamp":253187375151,"id":96,"parentId":53,"tags":{},"startTime":1779061159621,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":738042,"timestamp":253187357835,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1779061159604,"traceId":"7f289fca8d463214"},{"name":"is-page-static","duration":731701,"timestamp":253187370714,"id":91,"parentId":31,"tags":{},"startTime":1779061159617,"traceId":"7f289fca8d463214"},{"name":"check-page","duration":749831,"timestamp":253187352677,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1779061159599,"traceId":"7f289fca8d463214"},{"name":"static-check","duration":758636,"timestamp":253187343937,"id":19,"parentId":1,"tags":{},"startTime":1779061159590,"traceId":"7f289fca8d463214"}]
|
|
2
|
-
[{"name":"write-routes-manifest","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":297,"timestamp":253739347577,"id":4,"parentId":1,"tags":{},"startTime":1779061711594,"traceId":"43a95da57a4515de"},{"name":"load-custom-routes","duration":460,"timestamp":253739348054,"id":5,"parentId":1,"tags":{},"startTime":1779061711594,"traceId":"43a95da57a4515de"},{"name":"create-dist-dir","duration":736,"timestamp":253739348556,"id":6,"parentId":1,"tags":{},"startTime":1779061711595,"traceId":"43a95da57a4515de"},{"name":"clean","duration":31406,"timestamp":253739349937,"id":7,"parentId":1,"tags":{},"startTime":1779061711596,"traceId":"43a95da57a4515de"},{"name":"discover-routes","duration":9681,"timestamp":253739472455,"id":8,"parentId":1,"tags":{},"startTime":1779061711719,"traceId":"43a95da57a4515de"},{"name":"create-root-mapping","duration":125,"timestamp":253739482212,"id":9,"parentId":1,"tags":{},"startTime":1779061711728,"traceId":"43a95da57a4515de"},{"name":"generate-route-types","duration":23996,"timestamp":253739484973,"id":10,"parentId":1,"tags":{},"startTime":1779061711731,"traceId":"43a95da57a4515de"},{"name":"public-dir-conflict-check","duration":148,"timestamp":253739509086,"id":11,"parentId":1,"tags":{},"startTime":1779061711755,"traceId":"43a95da57a4515de"},{"name":"generate-routes-manifest","duration":4794,"timestamp":253739509425,"id":12,"parentId":1,"tags":{},"startTime":1779061711756,"traceId":"43a95da57a4515de"},{"name":"run-turbopack","duration":5775228,"timestamp":253739534199,"id":14,"parentId":1,"tags":{},"startTime":1779061711780,"traceId":"43a95da57a4515de"},{"name":"turbopack-build-events","duration":101,"timestamp":253739816979,"id":15,"parentId":1,"tags":{},"startTime":1779061712063,"traceId":"43a95da57a4515de"},{"name":"run-typescript","duration":9510260,"timestamp":253745329714,"id":16,"parentId":1,"tags":{},"startTime":1779061717576,"traceId":"43a95da57a4515de"},{"name":"generate-required-server-files","duration":1930,"timestamp":253754840801,"id":18,"parentId":1,"tags":{},"startTime":1779061727087,"traceId":"43a95da57a4515de"},{"name":"check-static-error-page","duration":15728,"timestamp":253755015312,"id":20,"parentId":19,"tags":{},"startTime":1779061727262,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":589910,"timestamp":253755034473,"id":65,"parentId":22,"tags":{},"startTime":1779061727281,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":605986,"timestamp":253755018567,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1779061727265,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":691287,"timestamp":253755035308,"id":70,"parentId":29,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":704148,"timestamp":253755022554,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1779061727269,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":691979,"timestamp":253755034999,"id":69,"parentId":28,"tags":{},"startTime":1779061727281,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":704628,"timestamp":253755022428,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1779061727269,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":692616,"timestamp":253755034625,"id":66,"parentId":25,"tags":{},"startTime":1779061727281,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":705317,"timestamp":253755021961,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1779061727268,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":695941,"timestamp":253755034070,"id":64,"parentId":21,"tags":{},"startTime":1779061727280,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":713107,"timestamp":253755016952,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1779061727263,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":706474,"timestamp":253755034748,"id":67,"parentId":26,"tags":{},"startTime":1779061727281,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":719111,"timestamp":253755022161,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1779061727268,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":706040,"timestamp":253755035537,"id":72,"parentId":32,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":718431,"timestamp":253755023183,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1779061727269,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":706017,"timestamp":253755035717,"id":73,"parentId":33,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":718431,"timestamp":253755023326,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1779061727270,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":714435,"timestamp":253755034864,"id":68,"parentId":27,"tags":{},"startTime":1779061727281,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":727054,"timestamp":253755022299,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1779061727269,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":719583,"timestamp":253755035461,"id":71,"parentId":30,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":732364,"timestamp":253755022721,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1779061727269,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":726434,"timestamp":253755035927,"id":78,"parentId":38,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":737829,"timestamp":253755024571,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1779061727271,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":727295,"timestamp":253755035801,"id":74,"parentId":34,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":739676,"timestamp":253755023462,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1779061727270,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":745597,"timestamp":253755035861,"id":76,"parentId":36,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":757305,"timestamp":253755024207,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1779061727270,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":745744,"timestamp":253755035945,"id":79,"parentId":39,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":757019,"timestamp":253755024699,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1779061727271,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":745871,"timestamp":253755035961,"id":80,"parentId":40,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":756843,"timestamp":253755025065,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1779061727271,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":746137,"timestamp":253755035909,"id":77,"parentId":37,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":757646,"timestamp":253755024425,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1779061727271,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":750208,"timestamp":253755035978,"id":81,"parentId":42,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":760738,"timestamp":253755025519,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1779061727272,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":751618,"timestamp":253755036076,"id":86,"parentId":48,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":761267,"timestamp":253755026470,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1779061727273,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":752049,"timestamp":253755036047,"id":84,"parentId":46,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":761884,"timestamp":253755026248,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1779061727273,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":754779,"timestamp":253755036093,"id":87,"parentId":49,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":764338,"timestamp":253755026583,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1779061727273,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":760070,"timestamp":253755036136,"id":89,"parentId":51,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":769468,"timestamp":253755026778,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1779061727273,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":766636,"timestamp":253755039631,"id":90,"parentId":24,"tags":{},"startTime":1779061727286,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":787154,"timestamp":253755019159,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1779061727265,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":770591,"timestamp":253755036060,"id":85,"parentId":47,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":780327,"timestamp":253755026366,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1779061727273,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":770749,"timestamp":253755036106,"id":88,"parentId":50,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":780225,"timestamp":253755026672,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1779061727273,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":771450,"timestamp":253755035995,"id":82,"parentId":44,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":781490,"timestamp":253755025993,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1779061727272,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":774954,"timestamp":253755036028,"id":83,"parentId":45,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":784888,"timestamp":253755026145,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1779061727272,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":764988,"timestamp":253755046163,"id":92,"parentId":41,"tags":{},"startTime":1779061727292,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":785967,"timestamp":253755025211,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1779061727271,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":779089,"timestamp":253755035836,"id":75,"parentId":35,"tags":{},"startTime":1779061727282,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":791374,"timestamp":253755023588,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1779061727270,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":767642,"timestamp":253755047481,"id":93,"parentId":43,"tags":{},"startTime":1779061727294,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":789484,"timestamp":253755025670,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1779061727272,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":775106,"timestamp":253755043979,"id":91,"parentId":31,"tags":{},"startTime":1779061727290,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":796273,"timestamp":253755022848,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1779061727269,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":773705,"timestamp":253755049732,"id":98,"parentId":55,"tags":{},"startTime":1779061727296,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":795538,"timestamp":253755027938,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1779061727274,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":780987,"timestamp":253755049914,"id":101,"parentId":59,"tags":{},"startTime":1779061727296,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":801416,"timestamp":253755029526,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1779061727276,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":788237,"timestamp":253755049940,"id":102,"parentId":61,"tags":{},"startTime":1779061727296,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":807963,"timestamp":253755030272,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1779061727277,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":802616,"timestamp":253755049956,"id":103,"parentId":62,"tags":{},"startTime":1779061727296,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":822171,"timestamp":253755030445,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1779061727277,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":813101,"timestamp":253755049968,"id":104,"parentId":63,"tags":{},"startTime":1779061727296,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":832432,"timestamp":253755030688,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1779061727277,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":807569,"timestamp":253755059636,"id":105,"parentId":60,"tags":{},"startTime":1779061727306,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":837505,"timestamp":253755029753,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1779061727276,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":818700,"timestamp":253755049715,"id":97,"parentId":54,"tags":{},"startTime":1779061727296,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":840789,"timestamp":253755027665,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1779061727274,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":820004,"timestamp":253755049702,"id":96,"parentId":53,"tags":{},"startTime":1779061727296,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":842285,"timestamp":253755027459,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1779061727274,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":822045,"timestamp":253755049748,"id":99,"parentId":56,"tags":{},"startTime":1779061727296,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":843579,"timestamp":253755028255,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1779061727275,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":823727,"timestamp":253755049651,"id":94,"parentId":23,"tags":{},"startTime":1779061727296,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":854560,"timestamp":253755018855,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1779061727265,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":805078,"timestamp":253755070381,"id":106,"parentId":57,"tags":{},"startTime":1779061727317,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":846941,"timestamp":253755028552,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1779061727275,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":826964,"timestamp":253755049684,"id":95,"parentId":52,"tags":{},"startTime":1779061727296,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":849418,"timestamp":253755027257,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1779061727274,"traceId":"43a95da57a4515de"},{"name":"is-page-static","duration":831545,"timestamp":253755049761,"id":100,"parentId":58,"tags":{},"startTime":1779061727296,"traceId":"43a95da57a4515de"},{"name":"check-page","duration":852070,"timestamp":253755029265,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1779061727276,"traceId":"43a95da57a4515de"},{"name":"static-check","duration":867061,"timestamp":253755014309,"id":19,"parentId":1,"tags":{},"startTime":1779061727261,"traceId":"43a95da57a4515de"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":732,"timestamp":253755890303,"id":108,"parentId":1,"tags":{},"startTime":1779061728137,"traceId":"43a95da57a4515de"},{"name":"load-dotenv","duration":55,"timestamp":253755903931,"id":111,"parentId":110,"tags":{},"startTime":1779061728150,"traceId":"43a95da57a4515de"},{"name":"run-export-path-map","duration":667,"timestamp":253755907037,"id":112,"parentId":110,"tags":{},"startTime":1779061728153,"traceId":"43a95da57a4515de"},{"name":"next-export","duration":651784,"timestamp":253755902653,"id":110,"parentId":1,"tags":{},"startTime":1779061728149,"traceId":"43a95da57a4515de"},{"name":"move-exported-app-not-found-","duration":690,"timestamp":253756557705,"id":113,"parentId":109,"tags":{},"startTime":1779061728804,"traceId":"43a95da57a4515de"},{"name":"move-exported-app-global-error-","duration":549,"timestamp":253756558560,"id":114,"parentId":109,"tags":{},"startTime":1779061728805,"traceId":"43a95da57a4515de"},{"name":"static-generation","duration":665980,"timestamp":253755895467,"id":109,"parentId":1,"tags":{},"startTime":1779061728142,"traceId":"43a95da57a4515de"},{"name":"write-routes-manifest","duration":506,"timestamp":253756561720,"id":115,"parentId":1,"tags":{},"startTime":1779061728808,"traceId":"43a95da57a4515de"},{"name":"print-tree-view","duration":4944,"timestamp":253756570305,"id":116,"parentId":1,"tags":{},"startTime":1779061728817,"traceId":"43a95da57a4515de"},{"name":"write-route-bundle-stats","duration":21127,"timestamp":253756575279,"id":117,"parentId":1,"tags":{},"startTime":1779061728822,"traceId":"43a95da57a4515de"},{"name":"telemetry-flush","duration":19426,"timestamp":253756596431,"id":118,"parentId":1,"tags":{},"startTime":1779061728843,"traceId":"43a95da57a4515de"},{"name":"next-build","duration":17322199,"timestamp":253739293711,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779061711540,"traceId":"43a95da57a4515de"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":5775228,"timestamp":253739534199,"id":14,"parentId":1,"tags":{},"startTime":1779061711780,"traceId":"43a95da57a4515de"},{"name":"turbopack-build-events","duration":101,"timestamp":253739816979,"id":15,"parentId":1,"tags":{},"startTime":1779061712063,"traceId":"43a95da57a4515de"},{"name":"run-typescript","duration":9510260,"timestamp":253745329714,"id":16,"parentId":1,"tags":{},"startTime":1779061717576,"traceId":"43a95da57a4515de"},{"name":"static-check","duration":867061,"timestamp":253755014309,"id":19,"parentId":1,"tags":{},"startTime":1779061727261,"traceId":"43a95da57a4515de"},{"name":"static-generation","duration":665980,"timestamp":253755895467,"id":109,"parentId":1,"tags":{},"startTime":1779061728142,"traceId":"43a95da57a4515de"},{"name":"telemetry-flush","duration":19426,"timestamp":253756596431,"id":118,"parentId":1,"tags":{},"startTime":1779061728843,"traceId":"43a95da57a4515de"},{"name":"next-build","duration":17322199,"timestamp":253739293711,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779061711540,"traceId":"43a95da57a4515de"}]
|
|
@@ -10330,7 +10330,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10330
10330
|
R602 scale 1 → 1.05
|
|
10331
10331
|
R605 drop-shadow → pal.legendAccent ← this round */
|
|
10332
10332
|
filter: isAvatarHovered
|
|
10333
|
-
? `drop-shadow(0 0 4px ${pal.legendAccent}99) brightness(1.15)`
|
|
10333
|
+
? `drop-shadow(0 0 4px ${pal.legendAccent}99) drop-shadow(0 0 8px ${pal.legendAccent}4c) brightness(1.15)`
|
|
10334
10334
|
: undefined,
|
|
10335
10335
|
transition: 'filter 200ms ease-out, rotate 200ms ease-out, scale 200ms ease-out',
|
|
10336
10336
|
}}
|
|
@@ -10420,7 +10420,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10420
10420
|
stacked drop-shadow + brightness filter
|
|
10421
10421
|
on hover, mirroring the image branch above. */
|
|
10422
10422
|
filter: isAvatarFallbackHovered
|
|
10423
|
-
? `drop-shadow(0 0 4px ${pal.legendAccent}99) brightness(1.15)`
|
|
10423
|
+
? `drop-shadow(0 0 4px ${pal.legendAccent}99) drop-shadow(0 0 8px ${pal.legendAccent}4c) brightness(1.15)`
|
|
10424
10424
|
: undefined,
|
|
10425
10425
|
transition: 'filter 200ms ease-out, rotate 200ms ease-out, scale 200ms ease-out',
|
|
10426
10426
|
}}
|
|
@@ -10496,7 +10496,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10496
10496
|
coverage at 3/3 branches (image + monogram +
|
|
10497
10497
|
fallback all share the same stacked filter). */
|
|
10498
10498
|
filter: isAvatarFallbackHovered
|
|
10499
|
-
? `drop-shadow(0 0 4px ${pal.legendAccent}99) brightness(1.15)`
|
|
10499
|
+
? `drop-shadow(0 0 4px ${pal.legendAccent}99) drop-shadow(0 0 8px ${pal.legendAccent}4c) brightness(1.15)`
|
|
10500
10500
|
: undefined,
|
|
10501
10501
|
transition: 'filter 200ms ease-out, rotate 200ms ease-out, scale 200ms ease-out',
|
|
10502
10502
|
}}
|
|
@@ -12954,12 +12954,20 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
12954
12954
|
across alias / sub-text / edge-badge / group-
|
|
12955
12955
|
label / and now recent-row text. */
|
|
12956
12956
|
data-recent-row-text-brightness={(isRowHovered || isRowPinned) ? '1.15' : '1'}
|
|
12957
|
+
data-recent-row-text-halo-layers={(isRowHovered || isRowPinned) ? '2' : '0'}
|
|
12957
12958
|
style={{
|
|
12958
12959
|
transition: 'fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out, filter 200ms ease-out',
|
|
12959
12960
|
letterSpacing: isRowPinned ? '0.5px' :
|
|
12960
12961
|
isRowHovered ? '0.25px' : '0px',
|
|
12962
|
+
/* Round 659 / Loop — recent-row text filter gains a
|
|
12963
|
+
SECOND outer drop-shadow at 4px + 0x40 alpha
|
|
12964
|
+
(half R568 inner 0x80). 18th anchor in multi-
|
|
12965
|
+
layer halo family (1st recent-row-text anchor).
|
|
12966
|
+
Same R642-R658 0.5x falloff vocabulary + 2x
|
|
12967
|
+
blur stride (2 → 4). pal.legendAccent tint
|
|
12968
|
+
preserved across both layers. */
|
|
12961
12969
|
filter: (isRowHovered || isRowPinned)
|
|
12962
|
-
? `drop-shadow(0 0 2px ${pal.legendAccent}80) brightness(1.15)`
|
|
12970
|
+
? `drop-shadow(0 0 2px ${pal.legendAccent}80) drop-shadow(0 0 4px ${pal.legendAccent}40) brightness(1.15)`
|
|
12963
12971
|
: undefined,
|
|
12964
12972
|
}}
|
|
12965
12973
|
>
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* Round 658 — node avatar drop-shadow (3 variants: image + monogram
|
|
2
|
+
* + prefix-group fallback) gains a SECOND outer drop-shadow at 8px
|
|
3
|
+
* + 0x4c alpha (half R605 inner 0x99). 17th anchor in multi-layer
|
|
4
|
+
* halo family — first per-node-avatar anchor (extends across all
|
|
5
|
+
* 3 avatar variants in one sweep).
|
|
6
|
+
*
|
|
7
|
+
* Test: source-only verification — all 3 R605-family filter sites
|
|
8
|
+
* now stack 2 drop-shadows.
|
|
9
|
+
*/
|
|
10
|
+
import { readFileSync } from 'node:fs';
|
|
11
|
+
|
|
12
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
13
|
+
const pattern = /\? `drop-shadow\(0 0 4px \$\{pal\.legendAccent\}99\) drop-shadow\(0 0 8px \$\{pal\.legendAccent\}4c\) brightness\(1\.15\)`/g;
|
|
14
|
+
const matches = (src.match(pattern) || []).length;
|
|
15
|
+
|
|
16
|
+
const results = {
|
|
17
|
+
// 3 R605-family avatar branches (image, monogram, prefix-group fallback)
|
|
18
|
+
// all stack 2 drop-shadows now:
|
|
19
|
+
source_three_anchors: matches === 3,
|
|
20
|
+
};
|
|
21
|
+
const ok = Object.values(results).every(Boolean);
|
|
22
|
+
console.log(`${ok ? '✅' : '❌'} R658 node avatar multi-layer halo (3 variants in one sweep):`,
|
|
23
|
+
JSON.stringify(results, null, 2),
|
|
24
|
+
`\n matches: ${matches}`);
|
|
25
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* Round 659 — recent-row text drop-shadow gains a SECOND outer
|
|
2
|
+
* drop-shadow at 4px + 0x40 alpha (half R568 inner 0x80). 18th
|
|
3
|
+
* anchor in multi-layer halo family (1st recent-row-text anchor).
|
|
4
|
+
*/
|
|
5
|
+
import { chromium } from 'playwright';
|
|
6
|
+
import { readFileSync } from 'node:fs';
|
|
7
|
+
|
|
8
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
9
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
10
|
+
|
|
11
|
+
const browser = await chromium.launch({ headless: true });
|
|
12
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1200 } });
|
|
13
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
14
|
+
await ctx.addInitScript(() => {
|
|
15
|
+
try {
|
|
16
|
+
localStorage.setItem('anet-theme', 'cyber');
|
|
17
|
+
localStorage.setItem('anet-topo-layout', 'ring');
|
|
18
|
+
sessionStorage.setItem('anet_v3_auth', '1');
|
|
19
|
+
} catch {}
|
|
20
|
+
});
|
|
21
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
22
|
+
const r = await route.fetch();
|
|
23
|
+
const b = await r.json();
|
|
24
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
25
|
+
const mk = (alias) => ({
|
|
26
|
+
alias, status: 'idle', model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
27
|
+
network_id: nid, project_dir: null,
|
|
28
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
29
|
+
});
|
|
30
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [mk('a·1'), mk('a·2')] } });
|
|
31
|
+
});
|
|
32
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [
|
|
33
|
+
{ from_alias: 'a·1', to_alias: 'a·2', content: 'hello', created_at: fresh },
|
|
34
|
+
] } }));
|
|
35
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
36
|
+
const page = await ctx.newPage();
|
|
37
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'networkidle' });
|
|
38
|
+
await page.waitForSelector('[data-recent-row-text-halo-layers]', { timeout: 15000, state: 'attached' });
|
|
39
|
+
await page.waitForTimeout(500);
|
|
40
|
+
|
|
41
|
+
const rest = await page.evaluate(() => {
|
|
42
|
+
const el = document.querySelector('[data-recent-row-text-halo-layers]');
|
|
43
|
+
if (!el) return null;
|
|
44
|
+
return {
|
|
45
|
+
layers: el.getAttribute('data-recent-row-text-halo-layers'),
|
|
46
|
+
glow: el.getAttribute('data-recent-row-text-glow'),
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
await browser.close();
|
|
51
|
+
|
|
52
|
+
const src = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
53
|
+
const sourceFilter = /`drop-shadow\(0 0 2px \$\{pal\.legendAccent\}80\) drop-shadow\(0 0 4px \$\{pal\.legendAccent\}40\) brightness\(1\.15\)`/.test(src);
|
|
54
|
+
const sourceLayersAttr = /data-recent-row-text-halo-layers=\{\(isRowHovered \|\| isRowPinned\) \? '2' : '0'\}/.test(src);
|
|
55
|
+
|
|
56
|
+
const results = {
|
|
57
|
+
rest_present: !!rest,
|
|
58
|
+
rest_layers_0: rest?.layers === '0',
|
|
59
|
+
rest_glow_false: rest?.glow === 'false',
|
|
60
|
+
source_filter: sourceFilter,
|
|
61
|
+
source_layers_attr: sourceLayersAttr,
|
|
62
|
+
};
|
|
63
|
+
const ok = Object.values(results).every(Boolean);
|
|
64
|
+
console.log(`${ok ? '✅' : '❌'} R659 recent-row text multi-layer halo (1st recent-row-text anchor):`,
|
|
65
|
+
JSON.stringify(results, null, 2),
|
|
66
|
+
`\n rest: ${JSON.stringify(rest)}`);
|
|
67
|
+
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{hA6ox_Th7oyKFksYUIVNN → sXdIJFarOdEk3qaNiKRl2}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|