@sleep2agi/agent-network-dashboard 0.4.6-preview.144 → 0.4.6-preview.146
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/prerender-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/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/{0lcyci-~n9~ys.js → 0d4z3q1gy~20j.js} +3 -3
- package/.next/static/chunks/{0t3utfv_wlq7g.js → 0i3exu93ycf_2.js} +1 -1
- package/.next/static/chunks/{0t3oj.nr3uxio.js → 0s5cmup~7mwqc.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +35 -2
- package/package.json +1 -1
- package/scripts/topo-recent-row-ts-test.mjs +4 -1
- package/scripts/topo-recent-row-typography-test.mjs +119 -0
- package/scripts/topo-working-chip-pin-test.mjs +148 -0
- /package/.next/static/{K7zxfqzjBPOwHPHOeuMiO → Qs_Dgfkeit4oVrYcuxt7t}/_buildManifest.js +0 -0
- /package/.next/static/{K7zxfqzjBPOwHPHOeuMiO → Qs_Dgfkeit4oVrYcuxt7t}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{K7zxfqzjBPOwHPHOeuMiO → Qs_Dgfkeit4oVrYcuxt7t}/_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.4.6-preview.
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.6-preview.146"],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.4.6-preview.144"],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.4.6-preview.146"],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":248,"timestamp":53257241295,"id":4,"parentId":1,"tags":{},"startTime":1778861229488,"traceId":"d33601f292b47f73"},{"name":"load-custom-routes","duration":477,"timestamp":53257241680,"id":5,"parentId":1,"tags":{},"startTime":1778861229488,"traceId":"d33601f292b47f73"},{"name":"create-dist-dir","duration":596,"timestamp":53257242200,"id":6,"parentId":1,"tags":{},"startTime":1778861229488,"traceId":"d33601f292b47f73"},{"name":"clean","duration":453,"timestamp":53257243432,"id":7,"parentId":1,"tags":{},"startTime":1778861229490,"traceId":"d33601f292b47f73"},{"name":"discover-routes","duration":8600,"timestamp":53257324579,"id":8,"parentId":1,"tags":{},"startTime":1778861229571,"traceId":"d33601f292b47f73"},{"name":"create-root-mapping","duration":109,"timestamp":53257333239,"id":9,"parentId":1,"tags":{},"startTime":1778861229580,"traceId":"d33601f292b47f73"},{"name":"generate-route-types","duration":30484,"timestamp":53257336094,"id":10,"parentId":1,"tags":{},"startTime":1778861229582,"traceId":"d33601f292b47f73"},{"name":"public-dir-conflict-check","duration":109,"timestamp":53257366735,"id":11,"parentId":1,"tags":{},"startTime":1778861229613,"traceId":"d33601f292b47f73"},{"name":"generate-routes-manifest","duration":4545,"timestamp":53257366963,"id":12,"parentId":1,"tags":{},"startTime":1778861229613,"traceId":"d33601f292b47f73"},{"name":"run-turbopack","duration":5519215,"timestamp":53257376422,"id":14,"parentId":1,"tags":{},"startTime":1778861229623,"traceId":"d33601f292b47f73"},{"name":"turbopack-build-events","duration":70,"timestamp":53257651477,"id":15,"parentId":1,"tags":{},"startTime":1778861229898,"traceId":"d33601f292b47f73"},{"name":"run-typescript","duration":8388993,"timestamp":53262903841,"id":16,"parentId":1,"tags":{},"startTime":1778861235150,"traceId":"d33601f292b47f73"},{"name":"generate-required-server-files","duration":2357,"timestamp":53271293936,"id":18,"parentId":1,"tags":{},"startTime":1778861243540,"traceId":"d33601f292b47f73"},{"name":"check-static-error-page","duration":14843,"timestamp":53271476038,"id":20,"parentId":19,"tags":{},"startTime":1778861243722,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":440207,"timestamp":53271493691,"id":63,"parentId":22,"tags":{},"startTime":1778861243740,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":454838,"timestamp":53271479256,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778861243726,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":533888,"timestamp":53271494281,"id":67,"parentId":28,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":545357,"timestamp":53271483076,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778861243729,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":551585,"timestamp":53271493793,"id":64,"parentId":25,"tags":{},"startTime":1778861243740,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":562880,"timestamp":53271482575,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778861243729,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":552558,"timestamp":53271493919,"id":65,"parentId":26,"tags":{},"startTime":1778861243740,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":563800,"timestamp":53271482745,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778861243729,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":556975,"timestamp":53271493414,"id":62,"parentId":21,"tags":{},"startTime":1778861243740,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":572825,"timestamp":53271477625,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778861243724,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":557054,"timestamp":53271494926,"id":72,"parentId":34,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":568015,"timestamp":53271484170,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778861243730,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":563494,"timestamp":53271494584,"id":69,"parentId":30,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":574748,"timestamp":53271483388,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778861243730,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":563499,"timestamp":53271494780,"id":70,"parentId":32,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":574462,"timestamp":53271483847,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778861243730,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":580005,"timestamp":53271494045,"id":66,"parentId":27,"tags":{},"startTime":1778861243740,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":591217,"timestamp":53271482902,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778861243729,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":579466,"timestamp":53271494856,"id":71,"parentId":33,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":590333,"timestamp":53271484021,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778861243730,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":584626,"timestamp":53271495135,"id":77,"parentId":39,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":594472,"timestamp":53271485359,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778861243732,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":586976,"timestamp":53271494450,"id":68,"parentId":29,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":598255,"timestamp":53271483218,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778861243729,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":595577,"timestamp":53271495105,"id":75,"parentId":37,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":605664,"timestamp":53271485074,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778861243731,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":595765,"timestamp":53271495173,"id":80,"parentId":42,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":605250,"timestamp":53271485719,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778861243732,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":596179,"timestamp":53271495123,"id":76,"parentId":38,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":606107,"timestamp":53271485234,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778861243732,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":596324,"timestamp":53271495151,"id":78,"parentId":40,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":606029,"timestamp":53271485476,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778861243732,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":596536,"timestamp":53271495075,"id":74,"parentId":36,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":606798,"timestamp":53271484856,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778861243731,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":601075,"timestamp":53271495220,"id":84,"parentId":46,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":610095,"timestamp":53271486253,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778861243733,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":601296,"timestamp":53271495206,"id":83,"parentId":45,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":610406,"timestamp":53271486134,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778861243732,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":603386,"timestamp":53271494955,"id":73,"parentId":35,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":614064,"timestamp":53271484321,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778861243731,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":608373,"timestamp":53271495234,"id":85,"parentId":47,"tags":{},"startTime":1778861243742,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":615626,"timestamp":53271488032,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778861243734,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":609467,"timestamp":53271495245,"id":86,"parentId":48,"tags":{},"startTime":1778861243742,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":616561,"timestamp":53271488197,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778861243734,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":609914,"timestamp":53271495185,"id":81,"parentId":43,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":619273,"timestamp":53271485869,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778861243732,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":606806,"timestamp":53271498491,"id":88,"parentId":24,"tags":{},"startTime":1778861243745,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":625460,"timestamp":53271479876,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778861243726,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":611758,"timestamp":53271499659,"id":89,"parentId":31,"tags":{},"startTime":1778861243746,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":627934,"timestamp":53271483535,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778861243730,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":616457,"timestamp":53271495161,"id":79,"parentId":41,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":626055,"timestamp":53271485591,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778861243732,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":610937,"timestamp":53271502175,"id":92,"parentId":51,"tags":{},"startTime":1778861243748,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":624190,"timestamp":53271488959,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778861243735,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":622760,"timestamp":53271495257,"id":87,"parentId":49,"tags":{},"startTime":1778861243742,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":629747,"timestamp":53271488320,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778861243735,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":618142,"timestamp":53271502219,"id":95,"parentId":54,"tags":{},"startTime":1778861243748,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":630991,"timestamp":53271489413,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778861243736,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":629103,"timestamp":53271495194,"id":82,"parentId":44,"tags":{},"startTime":1778861243741,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":638347,"timestamp":53271485990,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778861243732,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":626160,"timestamp":53271502240,"id":97,"parentId":57,"tags":{},"startTime":1778861243749,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":638306,"timestamp":53271490133,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778861243736,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":641304,"timestamp":53271502265,"id":99,"parentId":60,"tags":{},"startTime":1778861243749,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":653033,"timestamp":53271490616,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778861243737,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":646981,"timestamp":53271502282,"id":100,"parentId":61,"tags":{},"startTime":1778861243749,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":658625,"timestamp":53271490703,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778861243737,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":649087,"timestamp":53271508101,"id":101,"parentId":58,"tags":{},"startTime":1778861243754,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":666988,"timestamp":53271490255,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778861243737,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":641752,"timestamp":53271522708,"id":102,"parentId":55,"tags":{},"startTime":1778861243769,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":674940,"timestamp":53271489575,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778861243736,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":667686,"timestamp":53271502189,"id":93,"parentId":52,"tags":{},"startTime":1778861243748,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":680799,"timestamp":53271489126,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778861243735,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":668532,"timestamp":53271502164,"id":91,"parentId":50,"tags":{},"startTime":1778861243748,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":681983,"timestamp":53271488756,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778861243735,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":673174,"timestamp":53271502135,"id":90,"parentId":23,"tags":{},"startTime":1778861243748,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":695769,"timestamp":53271479585,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778861243726,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":680142,"timestamp":53271502228,"id":96,"parentId":56,"tags":{},"startTime":1778861243748,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":692446,"timestamp":53271489965,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778861243736,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":683871,"timestamp":53271502205,"id":94,"parentId":53,"tags":{},"startTime":1778861243748,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":696841,"timestamp":53271489274,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778861243736,"traceId":"d33601f292b47f73"},{"name":"is-page-static","duration":694318,"timestamp":53271502253,"id":98,"parentId":59,"tags":{},"startTime":1778861243749,"traceId":"d33601f292b47f73"},{"name":"check-page","duration":706092,"timestamp":53271490524,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778861243737,"traceId":"d33601f292b47f73"},{"name":"static-check","duration":721825,"timestamp":53271474847,"id":19,"parentId":1,"tags":{},"startTime":1778861243721,"traceId":"d33601f292b47f73"},{"name":"write-routes-manifest","duration":441,"timestamp":53272202962,"id":104,"parentId":1,"tags":{},"startTime":1778861244449,"traceId":"d33601f292b47f73"},{"name":"load-dotenv","duration":44,"timestamp":53272214274,"id":107,"parentId":106,"tags":{},"startTime":1778861244461,"traceId":"d33601f292b47f73"},{"name":"run-export-path-map","duration":588,"timestamp":53272218638,"id":108,"parentId":106,"tags":{},"startTime":1778861244465,"traceId":"d33601f292b47f73"},{"name":"next-export","duration":534572,"timestamp":53272212986,"id":106,"parentId":1,"tags":{},"startTime":1778861244459,"traceId":"d33601f292b47f73"}]
|
|
2
|
-
[{"name":"move-exported-app-not-found-","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":265,"timestamp":54007955902,"id":4,"parentId":1,"tags":{},"startTime":1778861980202,"traceId":"b8cdd64e6262c503"},{"name":"load-custom-routes","duration":485,"timestamp":54007956302,"id":5,"parentId":1,"tags":{},"startTime":1778861980203,"traceId":"b8cdd64e6262c503"},{"name":"create-dist-dir","duration":661,"timestamp":54007956828,"id":6,"parentId":1,"tags":{},"startTime":1778861980203,"traceId":"b8cdd64e6262c503"},{"name":"clean","duration":441,"timestamp":54007958126,"id":7,"parentId":1,"tags":{},"startTime":1778861980204,"traceId":"b8cdd64e6262c503"},{"name":"discover-routes","duration":8779,"timestamp":54008040388,"id":8,"parentId":1,"tags":{},"startTime":1778861980287,"traceId":"b8cdd64e6262c503"},{"name":"create-root-mapping","duration":103,"timestamp":54008049224,"id":9,"parentId":1,"tags":{},"startTime":1778861980296,"traceId":"b8cdd64e6262c503"},{"name":"generate-route-types","duration":31557,"timestamp":54008051899,"id":10,"parentId":1,"tags":{},"startTime":1778861980298,"traceId":"b8cdd64e6262c503"},{"name":"public-dir-conflict-check","duration":116,"timestamp":54008083629,"id":11,"parentId":1,"tags":{},"startTime":1778861980330,"traceId":"b8cdd64e6262c503"},{"name":"generate-routes-manifest","duration":4133,"timestamp":54008083860,"id":12,"parentId":1,"tags":{},"startTime":1778861980330,"traceId":"b8cdd64e6262c503"},{"name":"run-turbopack","duration":5499860,"timestamp":54008093191,"id":14,"parentId":1,"tags":{},"startTime":1778861980339,"traceId":"b8cdd64e6262c503"},{"name":"turbopack-build-events","duration":73,"timestamp":54008373244,"id":15,"parentId":1,"tags":{},"startTime":1778861980620,"traceId":"b8cdd64e6262c503"},{"name":"run-typescript","duration":8638450,"timestamp":54013601344,"id":16,"parentId":1,"tags":{},"startTime":1778861985848,"traceId":"b8cdd64e6262c503"},{"name":"generate-required-server-files","duration":2536,"timestamp":54022241323,"id":18,"parentId":1,"tags":{},"startTime":1778861994488,"traceId":"b8cdd64e6262c503"},{"name":"check-static-error-page","duration":15000,"timestamp":54022437748,"id":20,"parentId":19,"tags":{},"startTime":1778861994684,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":424045,"timestamp":54022455835,"id":63,"parentId":22,"tags":{},"startTime":1778861994702,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":439020,"timestamp":54022441096,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778861994687,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":518095,"timestamp":54022456445,"id":67,"parentId":28,"tags":{},"startTime":1778861994703,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":529998,"timestamp":54022444631,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778861994691,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":520257,"timestamp":54022456213,"id":66,"parentId":27,"tags":{},"startTime":1778861994702,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":532030,"timestamp":54022444505,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778861994691,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":520820,"timestamp":54022458577,"id":70,"parentId":32,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":534114,"timestamp":54022445336,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778861994692,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":524407,"timestamp":54022458644,"id":71,"parentId":33,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":537642,"timestamp":54022445468,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778861994692,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":535681,"timestamp":54022458736,"id":72,"parentId":34,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":548900,"timestamp":54022445580,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778861994692,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":540944,"timestamp":54022458874,"id":74,"parentId":36,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":553668,"timestamp":54022446208,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778861994692,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":543269,"timestamp":54022458394,"id":69,"parentId":30,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":556818,"timestamp":54022444915,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778861994691,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":552304,"timestamp":54022458764,"id":73,"parentId":35,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":565433,"timestamp":54022445707,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778861994692,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":552431,"timestamp":54022458907,"id":75,"parentId":37,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":564993,"timestamp":54022446388,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778861994693,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":560546,"timestamp":54022458949,"id":78,"parentId":40,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":572803,"timestamp":54022446743,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778861994693,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":564468,"timestamp":54022458935,"id":77,"parentId":39,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":576831,"timestamp":54022446623,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778861994693,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":570122,"timestamp":54022458975,"id":80,"parentId":42,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":582377,"timestamp":54022446952,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778861994693,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":570837,"timestamp":54022458921,"id":76,"parentId":38,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":583278,"timestamp":54022446523,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778861994693,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":574551,"timestamp":54022458965,"id":79,"parentId":41,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":586712,"timestamp":54022446842,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778861994693,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":574706,"timestamp":54022458988,"id":81,"parentId":43,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":586651,"timestamp":54022447072,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778861994693,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":580456,"timestamp":54022458224,"id":68,"parentId":29,"tags":{},"startTime":1778861994705,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":593964,"timestamp":54022444772,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778861994691,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":575829,"timestamp":54022463085,"id":84,"parentId":46,"tags":{},"startTime":1778861994709,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":591599,"timestamp":54022447357,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778861994694,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":577434,"timestamp":54022463069,"id":83,"parentId":45,"tags":{},"startTime":1778861994709,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":593286,"timestamp":54022447263,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778861994694,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":585801,"timestamp":54022456105,"id":65,"parentId":26,"tags":{},"startTime":1778861994702,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":597565,"timestamp":54022444383,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778861994691,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":580111,"timestamp":54022463112,"id":86,"parentId":48,"tags":{},"startTime":1778861994709,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":595666,"timestamp":54022447604,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778861994694,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":576726,"timestamp":54022470630,"id":89,"parentId":31,"tags":{},"startTime":1778861994717,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":602346,"timestamp":54022445055,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778861994691,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":593187,"timestamp":54022455383,"id":62,"parentId":21,"tags":{},"startTime":1778861994702,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":609236,"timestamp":54022439385,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778861994686,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":594622,"timestamp":54022455972,"id":64,"parentId":25,"tags":{},"startTime":1778861994702,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":606442,"timestamp":54022444200,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778861994690,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":584396,"timestamp":54022466410,"id":88,"parentId":24,"tags":{},"startTime":1778861994713,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":609417,"timestamp":54022441611,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778861994688,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":583327,"timestamp":54022473100,"id":91,"parentId":50,"tags":{},"startTime":1778861994719,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":606719,"timestamp":54022449749,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778861994696,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":611182,"timestamp":54022463098,"id":85,"parentId":47,"tags":{},"startTime":1778861994709,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":626855,"timestamp":54022447495,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778861994694,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":611396,"timestamp":54022463121,"id":87,"parentId":49,"tags":{},"startTime":1778861994709,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":625270,"timestamp":54022449282,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778861994696,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":611648,"timestamp":54022463039,"id":82,"parentId":44,"tags":{},"startTime":1778861994709,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":627552,"timestamp":54022447165,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778861994693,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":602981,"timestamp":54022473147,"id":94,"parentId":53,"tags":{},"startTime":1778861994719,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":625864,"timestamp":54022450306,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778861994697,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":622495,"timestamp":54022473194,"id":98,"parentId":59,"tags":{},"startTime":1778861994719,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":643576,"timestamp":54022452204,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778861994698,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":649243,"timestamp":54022473073,"id":90,"parentId":23,"tags":{},"startTime":1778861994719,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":681014,"timestamp":54022441374,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778861994688,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":649926,"timestamp":54022473212,"id":99,"parentId":60,"tags":{},"startTime":1778861994719,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":670880,"timestamp":54022452353,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778861994699,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":641864,"timestamp":54022490325,"id":101,"parentId":58,"tags":{},"startTime":1778861994737,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":680496,"timestamp":54022451771,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778861994698,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":660558,"timestamp":54022473232,"id":100,"parentId":61,"tags":{},"startTime":1778861994720,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":681356,"timestamp":54022452490,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778861994699,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":633118,"timestamp":54022505941,"id":102,"parentId":55,"tags":{},"startTime":1778861994752,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":688341,"timestamp":54022450759,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778861994697,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":671345,"timestamp":54022473171,"id":96,"parentId":56,"tags":{},"startTime":1778861994719,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":693177,"timestamp":54022451374,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778861994698,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":673013,"timestamp":54022473133,"id":93,"parentId":52,"tags":{},"startTime":1778861994719,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":696077,"timestamp":54022450107,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778861994696,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":674739,"timestamp":54022473185,"id":97,"parentId":57,"tags":{},"startTime":1778861994719,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":696373,"timestamp":54022451585,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778861994698,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":683810,"timestamp":54022473117,"id":92,"parentId":51,"tags":{},"startTime":1778861994719,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":707035,"timestamp":54022449927,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778861994696,"traceId":"b8cdd64e6262c503"},{"name":"is-page-static","duration":695991,"timestamp":54022473157,"id":95,"parentId":54,"tags":{},"startTime":1778861994719,"traceId":"b8cdd64e6262c503"},{"name":"check-page","duration":718685,"timestamp":54022450506,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778861994697,"traceId":"b8cdd64e6262c503"},{"name":"static-check","duration":732701,"timestamp":54022436528,"id":19,"parentId":1,"tags":{},"startTime":1778861994683,"traceId":"b8cdd64e6262c503"},{"name":"write-routes-manifest","duration":399,"timestamp":54023176064,"id":104,"parentId":1,"tags":{},"startTime":1778861995422,"traceId":"b8cdd64e6262c503"},{"name":"load-dotenv","duration":62,"timestamp":54023188490,"id":107,"parentId":106,"tags":{},"startTime":1778861995435,"traceId":"b8cdd64e6262c503"},{"name":"run-export-path-map","duration":617,"timestamp":54023192686,"id":108,"parentId":106,"tags":{},"startTime":1778861995439,"traceId":"b8cdd64e6262c503"},{"name":"next-export","duration":632984,"timestamp":54023187107,"id":106,"parentId":1,"tags":{},"startTime":1778861995433,"traceId":"b8cdd64e6262c503"}]
|
|
2
|
+
[{"name":"move-exported-app-not-found-","duration":2339,"timestamp":54023823394,"id":109,"parentId":105,"tags":{},"startTime":1778861996070,"traceId":"b8cdd64e6262c503"},{"name":"move-exported-app-global-error-","duration":510,"timestamp":54023825825,"id":110,"parentId":105,"tags":{},"startTime":1778861996072,"traceId":"b8cdd64e6262c503"},{"name":"static-generation","duration":647664,"timestamp":54023180628,"id":105,"parentId":1,"tags":{},"startTime":1778861995427,"traceId":"b8cdd64e6262c503"},{"name":"write-routes-manifest","duration":566,"timestamp":54023828447,"id":111,"parentId":1,"tags":{},"startTime":1778861996075,"traceId":"b8cdd64e6262c503"},{"name":"print-tree-view","duration":3890,"timestamp":54023844809,"id":112,"parentId":1,"tags":{},"startTime":1778861996091,"traceId":"b8cdd64e6262c503"},{"name":"write-route-bundle-stats","duration":13515,"timestamp":54023848733,"id":113,"parentId":1,"tags":{},"startTime":1778861996095,"traceId":"b8cdd64e6262c503"},{"name":"telemetry-flush","duration":21669,"timestamp":54023862275,"id":114,"parentId":1,"tags":{},"startTime":1778861996109,"traceId":"b8cdd64e6262c503"},{"name":"next-build","duration":15975620,"timestamp":54007908352,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778861980155,"traceId":"b8cdd64e6262c503"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":5499860,"timestamp":54008093191,"id":14,"parentId":1,"tags":{},"startTime":1778861980339,"traceId":"b8cdd64e6262c503"},{"name":"turbopack-build-events","duration":73,"timestamp":54008373244,"id":15,"parentId":1,"tags":{},"startTime":1778861980620,"traceId":"b8cdd64e6262c503"},{"name":"run-typescript","duration":8638450,"timestamp":54013601344,"id":16,"parentId":1,"tags":{},"startTime":1778861985848,"traceId":"b8cdd64e6262c503"},{"name":"static-check","duration":732701,"timestamp":54022436528,"id":19,"parentId":1,"tags":{},"startTime":1778861994683,"traceId":"b8cdd64e6262c503"},{"name":"static-generation","duration":647664,"timestamp":54023180628,"id":105,"parentId":1,"tags":{},"startTime":1778861995427,"traceId":"b8cdd64e6262c503"},{"name":"telemetry-flush","duration":21669,"timestamp":54023862275,"id":114,"parentId":1,"tags":{},"startTime":1778861996109,"traceId":"b8cdd64e6262c503"},{"name":"next-build","duration":15975620,"timestamp":54007908352,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778861980155,"traceId":"b8cdd64e6262c503"}]
|
|
@@ -1358,13 +1358,36 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
1358
1358
|
data-working-chip
|
|
1359
1359
|
data-working-chip-aliases={workingAliases.join(',')}
|
|
1360
1360
|
data-pin-mirror={pinnedStatus === 'working' ? 'true' : 'false'}
|
|
1361
|
+
data-working-chip-clickable={workingCount > 0 ? 'true' : 'false'}
|
|
1361
1362
|
title={workingTitle}
|
|
1363
|
+
role={workingCount > 0 ? 'button' : undefined}
|
|
1364
|
+
tabIndex={workingCount > 0 ? 0 : undefined}
|
|
1365
|
+
aria-pressed={workingCount > 0 ? (pinnedStatus === 'working') : undefined}
|
|
1362
1366
|
style={{
|
|
1363
1367
|
cursor: workingCount > 0 ? 'pointer' : undefined,
|
|
1364
1368
|
boxShadow: pinnedStatus === 'working' ? 'inset 0 0 0 1px #4ade80, inset 0 0 0 2px rgba(255,255,255,0.45)' : undefined,
|
|
1365
1369
|
}}
|
|
1366
1370
|
onMouseEnter={() => { if (workingCount > 0) setHoveredStatus('working'); }}
|
|
1367
1371
|
onMouseLeave={() => setHoveredStatus(prev => prev === 'working' ? null : prev)}
|
|
1372
|
+
// R139: the title hover-text has been promising "click to
|
|
1373
|
+
// pin" since R79 but no onClick was ever wired. The cursor:
|
|
1374
|
+
// pointer at line 1363 set up the same lie R136 fixed on
|
|
1375
|
+
// the active-links chip. Wire it now: click toggles the
|
|
1376
|
+
// status pin to 'working', composing with R60 (pressure-
|
|
1377
|
+
// bar segments) and R61 (legend rows) — three different
|
|
1378
|
+
// surfaces that all toggle the same pinnedStatus. boxShadow
|
|
1379
|
+
// pin-mirror at line 1364 already reflects the state; aria-
|
|
1380
|
+
// pressed now exposes it for screen readers too.
|
|
1381
|
+
onClick={() => {
|
|
1382
|
+
if (workingCount > 0) setPinnedStatus(prev => prev === 'working' ? null : 'working');
|
|
1383
|
+
}}
|
|
1384
|
+
onKeyDown={(e) => {
|
|
1385
|
+
if (workingCount === 0) return;
|
|
1386
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
1387
|
+
e.preventDefault();
|
|
1388
|
+
setPinnedStatus(prev => prev === 'working' ? null : 'working');
|
|
1389
|
+
}
|
|
1390
|
+
}}
|
|
1368
1391
|
>
|
|
1369
1392
|
{workingCount} working
|
|
1370
1393
|
</span>
|
|
@@ -3617,7 +3640,17 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3617
3640
|
fontFamily="monospace"
|
|
3618
3641
|
style={{ transition: 'fill 150ms ease-out' }}
|
|
3619
3642
|
>
|
|
3620
|
-
{
|
|
3643
|
+
{/* R138 / Loop: typography unification with the rest
|
|
3644
|
+
of the topology UI. Filter pills (R119) render
|
|
3645
|
+
"{from}→{to}", node tooltips (R98) use →, the
|
|
3646
|
+
active-links chip tooltip (R114) and edge-badge
|
|
3647
|
+
titles all use unicode →. The recent-signal row
|
|
3648
|
+
was the lone holdout still rendering "from -> to"
|
|
3649
|
+
in ASCII. The data delimiter likewise: filter
|
|
3650
|
+
pills use " · " ("status · 3"); the row was using
|
|
3651
|
+
" / ". Both swaps make the row read like every
|
|
3652
|
+
other surface — one less micro-style to remember. */}
|
|
3653
|
+
{truncate(link.from, 6)} {'→'} {truncate(link.to, 6)} {' · '}
|
|
3621
3654
|
{isHot ? (
|
|
3622
3655
|
<tspan fill={hotStroke} fontWeight="700" data-recent-row-count-hot>
|
|
3623
3656
|
{link.count}
|
|
@@ -3625,7 +3658,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3625
3658
|
) : (
|
|
3626
3659
|
<tspan data-recent-row-count>{link.count}</tspan>
|
|
3627
3660
|
)}
|
|
3628
|
-
{'
|
|
3661
|
+
{' · '}{truncate(link.content, 8)}
|
|
3629
3662
|
</text>
|
|
3630
3663
|
{lastAt ? (
|
|
3631
3664
|
<text
|
package/package.json
CHANGED
|
@@ -84,7 +84,10 @@ const results = {
|
|
|
84
84
|
// ts <text> must be non-interactive so it doesn't intercept the row hover.
|
|
85
85
|
ts_nonInteractive: rows.every(r => r.tsPointerEvents === 'none'),
|
|
86
86
|
// Row content shows from/to/count/content via the existing layout.
|
|
87
|
-
|
|
87
|
+
// R138: arrow notation unified to unicode `→` (was ASCII `->`),
|
|
88
|
+
// matching filter pills / tooltips / edge-badge titles. Assertion
|
|
89
|
+
// flipped to the new typography contract.
|
|
90
|
+
row0_hasArrow: rows[0]?.rowText.includes('→'),
|
|
88
91
|
};
|
|
89
92
|
const ok = Object.values(results).every(Boolean);
|
|
90
93
|
console.log(`${ok ? '✅' : '❌'} recent-row ts:`, JSON.stringify(results),
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/* Round 138 verification: recent-signal row typography unifies
|
|
2
|
+
* with the rest of the topology UI.
|
|
3
|
+
*
|
|
4
|
+
* Pre-R138 row text: "alpha -> beta / 12 / hi"
|
|
5
|
+
* Post-R138 row text: "alpha → beta · 12 · hi"
|
|
6
|
+
*
|
|
7
|
+
* Why: filter pills (R119), node tooltips (R98), active-links
|
|
8
|
+
* chip tooltip (R114), edge-badge titles all use the unicode
|
|
9
|
+
* arrow `→` and the data-delimiter ` · `. The recent-signal row
|
|
10
|
+
* was the lone holdout using ASCII `->` and ` / `. R138 brings
|
|
11
|
+
* it in line so the row reads like every other surface.
|
|
12
|
+
*
|
|
13
|
+
* Checks:
|
|
14
|
+
* - Row text contains "→" (unicode arrow)
|
|
15
|
+
* - Row text does NOT contain "->" (ASCII)
|
|
16
|
+
* - Row text uses " · " (middle dot) as separator
|
|
17
|
+
* - Row text does NOT contain " / " (forward slash)
|
|
18
|
+
* - Hot count tspan still works (R127 contract preserved)
|
|
19
|
+
* - Row pin still works (R116 contract preserved)
|
|
20
|
+
*/
|
|
21
|
+
import { chromium } from 'playwright';
|
|
22
|
+
import { readFileSync } from 'node:fs';
|
|
23
|
+
|
|
24
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
25
|
+
const browser = await chromium.launch({ headless: true });
|
|
26
|
+
|
|
27
|
+
const ctx = await browser.newContext({ viewport: { width: 1400, height: 1500 } });
|
|
28
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
29
|
+
await ctx.addInitScript(() => {
|
|
30
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
34
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
35
|
+
const r = await route.fetch();
|
|
36
|
+
const b = await r.json();
|
|
37
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
38
|
+
const mk = (alias, status) => ({
|
|
39
|
+
alias, status, model: 'claude-opus-4', runtime: 'cli-claude-code',
|
|
40
|
+
network_id: nid, project_dir: null,
|
|
41
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
42
|
+
});
|
|
43
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
44
|
+
mk('alpha', 'working'), mk('beta', 'working'), mk('gamma', 'idle'),
|
|
45
|
+
] } });
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const now = Date.now();
|
|
49
|
+
const mkMsg = (id, from, to, ageMs) => ({
|
|
50
|
+
id, from_alias: from, to_alias: to, content: 'hello',
|
|
51
|
+
network_id: 'default', created_at: new Date(now - ageMs).toISOString(),
|
|
52
|
+
});
|
|
53
|
+
const msgs = [];
|
|
54
|
+
// alpha→beta: 12 msgs (hot)
|
|
55
|
+
for (let i = 0; i < 12; i++) msgs.push(mkMsg(`a${i}`, 'alpha', 'beta', 20000 + i * 500));
|
|
56
|
+
// beta→gamma: 4 msgs (warm)
|
|
57
|
+
for (let i = 0; i < 4; i++) msgs.push(mkMsg(`b${i}`, 'beta', 'gamma', 30000 + i * 500));
|
|
58
|
+
await ctx.route('**/api/hub/messages*', (route) => route.fulfill({ json: { messages: msgs } }));
|
|
59
|
+
await ctx.route('**/api/hub/tasks*', (route) => route.fulfill({ json: { tasks: [] } }));
|
|
60
|
+
|
|
61
|
+
const page = await ctx.newPage();
|
|
62
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
63
|
+
await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 3, { timeout: 30000 });
|
|
64
|
+
await page.waitForSelector('[data-recent-row="alpha->beta"]', { timeout: 10000 });
|
|
65
|
+
await page.waitForTimeout(400);
|
|
66
|
+
|
|
67
|
+
const inspect = (key) => page.evaluate((k) => {
|
|
68
|
+
const row = document.querySelector(`[data-recent-row="${k}"]`);
|
|
69
|
+
const text = row?.querySelector('text');
|
|
70
|
+
return {
|
|
71
|
+
fullText: text?.textContent,
|
|
72
|
+
pinned: row?.getAttribute('data-recent-row-pinned'),
|
|
73
|
+
hot: row?.getAttribute('data-recent-row-hot'),
|
|
74
|
+
};
|
|
75
|
+
}, key);
|
|
76
|
+
|
|
77
|
+
const a2b = await inspect('alpha->beta');
|
|
78
|
+
const b2g = await inspect('beta->gamma');
|
|
79
|
+
|
|
80
|
+
// Verify pin still works (R116 invariant)
|
|
81
|
+
await page.locator('[data-recent-row="alpha->beta"]').click();
|
|
82
|
+
await page.waitForTimeout(200);
|
|
83
|
+
const a2bPinned = await inspect('alpha->beta');
|
|
84
|
+
await page.keyboard.press('Escape');
|
|
85
|
+
await page.waitForTimeout(200);
|
|
86
|
+
|
|
87
|
+
await browser.close();
|
|
88
|
+
|
|
89
|
+
// Note: data-recent-row attribute itself still uses "alpha->beta" as
|
|
90
|
+
// the link.key (computed from from + '->' + to upstream). That's
|
|
91
|
+
// internal data, not user-visible text — R138 only touches the
|
|
92
|
+
// rendered <text> content.
|
|
93
|
+
const hasUnicodeArrow = (s) => !!s && s.includes('→');
|
|
94
|
+
const lacksAsciiArrow = (s) => !!s && !s.includes('->');
|
|
95
|
+
const usesMiddleDot = (s) => !!s && s.includes('·');
|
|
96
|
+
const lacksSlash = (s) => !!s && !/\s\/\s/.test(s);
|
|
97
|
+
|
|
98
|
+
const results = {
|
|
99
|
+
a2b_hasUnicodeArrow: hasUnicodeArrow(a2b.fullText),
|
|
100
|
+
a2b_lacksAsciiArrow: lacksAsciiArrow(a2b.fullText),
|
|
101
|
+
a2b_usesMiddleDot: usesMiddleDot(a2b.fullText),
|
|
102
|
+
a2b_lacksSlash: lacksSlash(a2b.fullText),
|
|
103
|
+
|
|
104
|
+
b2g_hasUnicodeArrow: hasUnicodeArrow(b2g.fullText),
|
|
105
|
+
b2g_usesMiddleDot: usesMiddleDot(b2g.fullText),
|
|
106
|
+
|
|
107
|
+
// R127 hot preserved
|
|
108
|
+
a2b_hotAttr: a2b.hot === 'true',
|
|
109
|
+
b2g_notHot: b2g.hot === 'false',
|
|
110
|
+
|
|
111
|
+
// R116 pin preserved
|
|
112
|
+
pin_landed: a2bPinned.pinned === 'true',
|
|
113
|
+
};
|
|
114
|
+
const ok = Object.values(results).every(Boolean);
|
|
115
|
+
console.log(`${ok ? '✅' : '❌'} recent-row typography:`, JSON.stringify(results),
|
|
116
|
+
`\n a2b=`, a2b,
|
|
117
|
+
`\n b2g=`, b2g,
|
|
118
|
+
`\n a2bPinned=`, a2bPinned);
|
|
119
|
+
process.exit(ok ? 0 : 1);
|