@sleep2agi/agent-network-dashboard 0.5.1-preview.113 → 0.5.1-preview.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +4 -4
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- 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 +2 -2
- package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
- package/.next/server/app/admin.html +2 -2
- package/.next/server/app/admin.rsc +2 -2
- package/.next/server/app/admin.segments/_full.segment.rsc +2 -2
- package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_index.segment.rsc +2 -2
- package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/.next/server/app/login.segments/_full.segment.rsc +3 -3
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +2 -2
- package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/logs.html +2 -2
- package/.next/server/app/logs.rsc +2 -2
- package/.next/server/app/logs.segments/_full.segment.rsc +2 -2
- package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_index.segment.rsc +2 -2
- package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/messages.html +2 -2
- package/.next/server/app/messages.rsc +2 -2
- package/.next/server/app/messages.segments/_full.segment.rsc +2 -2
- package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_index.segment.rsc +2 -2
- package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/node.html +2 -2
- package/.next/server/app/node.rsc +2 -2
- package/.next/server/app/node.segments/_full.segment.rsc +2 -2
- package/.next/server/app/node.segments/_head.segment.rsc +1 -1
- package/.next/server/app/node.segments/_index.segment.rsc +2 -2
- package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/nodes.html +2 -2
- package/.next/server/app/nodes.rsc +2 -2
- package/.next/server/app/nodes.segments/_full.segment.rsc +2 -2
- package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_index.segment.rsc +2 -2
- package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs.html +2 -2
- package/.next/server/app/server-logs.rsc +2 -2
- package/.next/server/app/server-logs.segments/_full.segment.rsc +2 -2
- package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_index.segment.rsc +2 -2
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/networks.html +2 -2
- package/.next/server/app/settings/networks.rsc +2 -2
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +2 -2
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +2 -2
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens.html +2 -2
- package/.next/server/app/settings/tokens.rsc +2 -2
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +2 -2
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +2 -2
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/.next/server/app/settings.segments/_full.segment.rsc +3 -3
- package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_index.segment.rsc +2 -2
- package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- 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/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tasks.html +2 -2
- package/.next/server/app/tasks.rsc +2 -2
- package/.next/server/app/tasks.segments/_full.segment.rsc +2 -2
- package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_index.segment.rsc +2 -2
- package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
- 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 +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 +2 -2
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/0a4hmfvj-81x5.css +2 -0
- package/.next/static/chunks/{1814~crcncitu.js → 0h0j62~.5_u~k.js} +1 -1
- package/.next/static/chunks/{0zlficjns17i1.js → 0im-~vrzzg3z1.js} +1 -1
- package/.next/static/chunks/{0.if~iq2kc9iv.js → 0rvtgs-vr~nk2.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +40 -4
- package/package.json +1 -1
- package/scripts/topo-chrome-reset-icon-sw-test.mjs +80 -0
- package/scripts/topo-chrome-zoom-icon-sw-test.mjs +90 -0
- package/.next/static/chunks/017hq2-5l~_98.css +0 -2
- /package/.next/static/{kw-JUn0GWFF6m6QLy9RUw → RWIoohCPY08S_sP1aMWtd}/_buildManifest.js +0 -0
- /package/.next/static/{kw-JUn0GWFF6m6QLy9RUw → RWIoohCPY08S_sP1aMWtd}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{kw-JUn0GWFF6m6QLy9RUw → RWIoohCPY08S_sP1aMWtd}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.114"],70286)},48941,e=>{"use strict";var t=e.i(22381),r=e.i(23910),a=e.i(70286);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#111128] border border-[#2a2a4a] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#2a2a4a] bg-[#111128]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:h||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[h&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:h?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",a.DASHBOARD_VERSION]})]})]})]})}])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.112"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.114"],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":417,"timestamp":168397654954,"id":4,"parentId":1,"tags":{},"startTime":1778976369901,"traceId":"9f1e36800796b6ae"},{"name":"load-custom-routes","duration":505,"timestamp":168397655543,"id":5,"parentId":1,"tags":{},"startTime":1778976369902,"traceId":"9f1e36800796b6ae"},{"name":"create-dist-dir","duration":766,"timestamp":168397656094,"id":6,"parentId":1,"tags":{},"startTime":1778976369902,"traceId":"9f1e36800796b6ae"},{"name":"clean","duration":35911,"timestamp":168397657548,"id":7,"parentId":1,"tags":{},"startTime":1778976369904,"traceId":"9f1e36800796b6ae"},{"name":"discover-routes","duration":14659,"timestamp":168397790223,"id":8,"parentId":1,"tags":{},"startTime":1778976370036,"traceId":"9f1e36800796b6ae"},{"name":"create-root-mapping","duration":322,"timestamp":168397804949,"id":9,"parentId":1,"tags":{},"startTime":1778976370051,"traceId":"9f1e36800796b6ae"},{"name":"generate-route-types","duration":41157,"timestamp":168397808831,"id":10,"parentId":1,"tags":{},"startTime":1778976370055,"traceId":"9f1e36800796b6ae"},{"name":"public-dir-conflict-check","duration":150,"timestamp":168397850157,"id":11,"parentId":1,"tags":{},"startTime":1778976370096,"traceId":"9f1e36800796b6ae"},{"name":"generate-routes-manifest","duration":5586,"timestamp":168397850504,"id":12,"parentId":1,"tags":{},"startTime":1778976370097,"traceId":"9f1e36800796b6ae"},{"name":"run-turbopack","duration":7108358,"timestamp":168397862205,"id":14,"parentId":1,"tags":{},"startTime":1778976370108,"traceId":"9f1e36800796b6ae"},{"name":"turbopack-build-events","duration":107,"timestamp":168398199820,"id":15,"parentId":1,"tags":{},"startTime":1778976370446,"traceId":"9f1e36800796b6ae"},{"name":"run-typescript","duration":10594179,"timestamp":168404979648,"id":16,"parentId":1,"tags":{},"startTime":1778976377226,"traceId":"9f1e36800796b6ae"},{"name":"generate-required-server-files","duration":3525,"timestamp":168415575272,"id":18,"parentId":1,"tags":{},"startTime":1778976387822,"traceId":"9f1e36800796b6ae"},{"name":"check-static-error-page","duration":18689,"timestamp":168415850065,"id":20,"parentId":19,"tags":{},"startTime":1778976388096,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":666130,"timestamp":168415873259,"id":65,"parentId":22,"tags":{},"startTime":1778976388120,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":685577,"timestamp":168415853996,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778976388100,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":734132,"timestamp":168415872826,"id":64,"parentId":21,"tags":{},"startTime":1778976388119,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":761489,"timestamp":168415852502,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778976388099,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":757026,"timestamp":168415873651,"id":68,"parentId":27,"tags":{},"startTime":1778976388120,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":773435,"timestamp":168415857356,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778976388104,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":764116,"timestamp":168415875958,"id":73,"parentId":33,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":781824,"timestamp":168415858621,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778976388105,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":801578,"timestamp":168415874064,"id":70,"parentId":29,"tags":{},"startTime":1778976388120,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":817851,"timestamp":168415857890,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778976388104,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":801683,"timestamp":168415874303,"id":72,"parentId":32,"tags":{},"startTime":1778976388121,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":817579,"timestamp":168415858480,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778976388105,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":820078,"timestamp":168415873753,"id":69,"parentId":28,"tags":{},"startTime":1778976388120,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":836186,"timestamp":168415857722,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778976388104,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":818123,"timestamp":168415876128,"id":75,"parentId":35,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":835403,"timestamp":168415858889,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778976388105,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":824077,"timestamp":168415876201,"id":78,"parentId":38,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":840517,"timestamp":168415859817,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778976388106,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":833292,"timestamp":168415876091,"id":74,"parentId":34,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":850697,"timestamp":168415858744,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778976388105,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":838330,"timestamp":168415874241,"id":71,"parentId":30,"tags":{},"startTime":1778976388121,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":854553,"timestamp":168415858064,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778976388104,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":836652,"timestamp":168415876148,"id":76,"parentId":36,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":853595,"timestamp":168415859447,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778976388106,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":841864,"timestamp":168415876256,"id":82,"parentId":44,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":857371,"timestamp":168415860796,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778976388107,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":845096,"timestamp":168415876228,"id":80,"parentId":40,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":861357,"timestamp":168415860025,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778976388106,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":846861,"timestamp":168415876265,"id":83,"parentId":45,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":862250,"timestamp":168415860926,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778976388107,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":849319,"timestamp":168415876284,"id":84,"parentId":46,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":864542,"timestamp":168415861120,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778976388107,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":851621,"timestamp":168415876179,"id":77,"parentId":37,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":868205,"timestamp":168415859658,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778976388106,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":853760,"timestamp":168415876308,"id":86,"parentId":48,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":866937,"timestamp":168415863178,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778976388109,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":857004,"timestamp":168415876213,"id":79,"parentId":39,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":873337,"timestamp":168415859923,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778976388106,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":860874,"timestamp":168415876298,"id":85,"parentId":47,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":875969,"timestamp":168415861251,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778976388108,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":863821,"timestamp":168415876335,"id":88,"parentId":50,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":876770,"timestamp":168415863442,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778976388110,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":871024,"timestamp":168415876322,"id":87,"parentId":49,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":884057,"timestamp":168415863334,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778976388110,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":871446,"timestamp":168415876348,"id":89,"parentId":51,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":884307,"timestamp":168415863534,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778976388110,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":867471,"timestamp":168415884735,"id":91,"parentId":31,"tags":{},"startTime":1778976388131,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":894069,"timestamp":168415858179,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778976388104,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":869957,"timestamp":168415882943,"id":90,"parentId":24,"tags":{},"startTime":1778976388129,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":898326,"timestamp":168415854622,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778976388101,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":866996,"timestamp":168415887357,"id":93,"parentId":43,"tags":{},"startTime":1778976388134,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":893890,"timestamp":168415860510,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778976388107,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":884301,"timestamp":168415873416,"id":66,"parentId":25,"tags":{},"startTime":1778976388120,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":900710,"timestamp":168415857060,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778976388103,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":850136,"timestamp":168415912321,"id":95,"parentId":52,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":898498,"timestamp":168415863999,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778976388111,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":881699,"timestamp":168415885728,"id":92,"parentId":41,"tags":{},"startTime":1778976388132,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":907355,"timestamp":168415860128,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778976388106,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":857538,"timestamp":168415912363,"id":98,"parentId":55,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":904956,"timestamp":168415864983,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778976388111,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":867738,"timestamp":168415912383,"id":100,"parentId":58,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":914076,"timestamp":168415866099,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778976388112,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":909475,"timestamp":168415876242,"id":81,"parentId":42,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":925411,"timestamp":168415860380,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778976388107,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":878243,"timestamp":168415912501,"id":101,"parentId":59,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":924539,"timestamp":168415866287,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778976388113,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":895542,"timestamp":168415912533,"id":103,"parentId":62,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":939796,"timestamp":168415868345,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778976388115,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":904426,"timestamp":168415912548,"id":104,"parentId":63,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":948561,"timestamp":168415868497,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778976388115,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":916367,"timestamp":168415912337,"id":96,"parentId":53,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":964212,"timestamp":168415864583,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778976388111,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":916345,"timestamp":168415912565,"id":105,"parentId":60,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":962503,"timestamp":168415866442,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778976388113,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":899469,"timestamp":168415937252,"id":106,"parentId":57,"tags":{},"startTime":1778976388184,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":971302,"timestamp":168415865490,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778976388112,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":965658,"timestamp":168415873533,"id":67,"parentId":26,"tags":{},"startTime":1778976388120,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":982016,"timestamp":168415857235,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778976388104,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":927384,"timestamp":168415912371,"id":99,"parentId":56,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":974590,"timestamp":168415865229,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778976388112,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":941968,"timestamp":168415912518,"id":102,"parentId":61,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":986380,"timestamp":168415868172,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778976388114,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":946448,"timestamp":168415912350,"id":97,"parentId":54,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":994103,"timestamp":168415864754,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778976388111,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":956774,"timestamp":168415912273,"id":94,"parentId":23,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":1014736,"timestamp":168415854372,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778976388101,"traceId":"9f1e36800796b6ae"},{"name":"static-check","duration":1020045,"timestamp":168415849112,"id":19,"parentId":1,"tags":{},"startTime":1778976388095,"traceId":"9f1e36800796b6ae"}]
|
|
2
|
-
[{"name":"write-routes-manifest","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":349,"timestamp":169140897889,"id":4,"parentId":1,"tags":{},"startTime":1778977113144,"traceId":"bffda92344ac4a47"},{"name":"load-custom-routes","duration":711,"timestamp":169140898448,"id":5,"parentId":1,"tags":{},"startTime":1778977113145,"traceId":"bffda92344ac4a47"},{"name":"create-dist-dir","duration":1018,"timestamp":169140899227,"id":6,"parentId":1,"tags":{},"startTime":1778977113146,"traceId":"bffda92344ac4a47"},{"name":"clean","duration":32599,"timestamp":169140901113,"id":7,"parentId":1,"tags":{},"startTime":1778977113147,"traceId":"bffda92344ac4a47"},{"name":"discover-routes","duration":26117,"timestamp":169141030462,"id":8,"parentId":1,"tags":{},"startTime":1778977113277,"traceId":"bffda92344ac4a47"},{"name":"create-root-mapping","duration":169,"timestamp":169141056662,"id":9,"parentId":1,"tags":{},"startTime":1778977113303,"traceId":"bffda92344ac4a47"},{"name":"generate-route-types","duration":22856,"timestamp":169141060159,"id":10,"parentId":1,"tags":{},"startTime":1778977113306,"traceId":"bffda92344ac4a47"},{"name":"public-dir-conflict-check","duration":148,"timestamp":169141083160,"id":11,"parentId":1,"tags":{},"startTime":1778977113329,"traceId":"bffda92344ac4a47"},{"name":"generate-routes-manifest","duration":7107,"timestamp":169141083468,"id":12,"parentId":1,"tags":{},"startTime":1778977113330,"traceId":"bffda92344ac4a47"},{"name":"run-turbopack","duration":6703528,"timestamp":169141108191,"id":14,"parentId":1,"tags":{},"startTime":1778977113354,"traceId":"bffda92344ac4a47"},{"name":"turbopack-build-events","duration":94,"timestamp":169141421314,"id":15,"parentId":1,"tags":{},"startTime":1778977113668,"traceId":"bffda92344ac4a47"},{"name":"run-typescript","duration":10465177,"timestamp":169147822020,"id":16,"parentId":1,"tags":{},"startTime":1778977120068,"traceId":"bffda92344ac4a47"},{"name":"generate-required-server-files","duration":2758,"timestamp":169158288325,"id":18,"parentId":1,"tags":{},"startTime":1778977130535,"traceId":"bffda92344ac4a47"},{"name":"check-static-error-page","duration":17348,"timestamp":169158491805,"id":20,"parentId":19,"tags":{},"startTime":1778977130738,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":524152,"timestamp":169158513623,"id":65,"parentId":22,"tags":{},"startTime":1778977130760,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":542929,"timestamp":169158495036,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778977130741,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":663233,"timestamp":169158513963,"id":69,"parentId":28,"tags":{},"startTime":1778977130760,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":678342,"timestamp":169158498951,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778977130745,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":675690,"timestamp":169158514443,"id":72,"parentId":32,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":690333,"timestamp":169158499878,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778977130746,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":676171,"timestamp":169158514225,"id":70,"parentId":29,"tags":{},"startTime":1778977130760,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":691300,"timestamp":169158499123,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778977130745,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":726161,"timestamp":169158514611,"id":73,"parentId":33,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":740831,"timestamp":169158500050,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778977130746,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":742982,"timestamp":169158514693,"id":74,"parentId":34,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":757691,"timestamp":169158500199,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778977130746,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":748557,"timestamp":169158514721,"id":75,"parentId":35,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":763013,"timestamp":169158500346,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778977130747,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":757586,"timestamp":169158514776,"id":77,"parentId":37,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":771357,"timestamp":169158501080,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778977130747,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":759490,"timestamp":169158514747,"id":76,"parentId":36,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":773449,"timestamp":169158500873,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778977130747,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":762445,"timestamp":169158514804,"id":78,"parentId":38,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":776075,"timestamp":169158501242,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778977130748,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":763796,"timestamp":169158513716,"id":66,"parentId":25,"tags":{},"startTime":1778977130760,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":779090,"timestamp":169158498455,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778977130745,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":765400,"timestamp":169158514819,"id":79,"parentId":39,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":778910,"timestamp":169158501358,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778977130748,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":768003,"timestamp":169158514374,"id":71,"parentId":30,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":783128,"timestamp":169158499298,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778977130746,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":773556,"timestamp":169158514831,"id":80,"parentId":40,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":786986,"timestamp":169158501452,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778977130748,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":773731,"timestamp":169158514853,"id":82,"parentId":44,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":786279,"timestamp":169158502335,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778977130749,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":783707,"timestamp":169158514866,"id":83,"parentId":45,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":796146,"timestamp":169158502485,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778977130749,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":784832,"timestamp":169158514879,"id":84,"parentId":46,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":797171,"timestamp":169158502604,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778977130749,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":786371,"timestamp":169158514888,"id":85,"parentId":47,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":798568,"timestamp":169158502737,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778977130749,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":790018,"timestamp":169158514932,"id":88,"parentId":50,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":799762,"timestamp":169158505234,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778977130752,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":792406,"timestamp":169158514916,"id":87,"parentId":49,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":802619,"timestamp":169158504753,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778977130751,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":792634,"timestamp":169158514903,"id":86,"parentId":48,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":803040,"timestamp":169158504526,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778977130751,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":794533,"timestamp":169158514942,"id":89,"parentId":51,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":804162,"timestamp":169158505364,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778977130752,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":799897,"timestamp":169158514845,"id":81,"parentId":42,"tags":{},"startTime":1778977130761,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":812986,"timestamp":169158501835,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778977130748,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":794866,"timestamp":169158522646,"id":90,"parentId":24,"tags":{},"startTime":1778977130769,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":821938,"timestamp":169158495625,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778977130742,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":795687,"timestamp":169158523827,"id":91,"parentId":31,"tags":{},"startTime":1778977130770,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":820019,"timestamp":169158499540,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778977130746,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":796664,"timestamp":169158524889,"id":92,"parentId":41,"tags":{},"startTime":1778977130771,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":820050,"timestamp":169158501552,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778977130748,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":806993,"timestamp":169158527265,"id":93,"parentId":43,"tags":{},"startTime":1778977130774,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":832343,"timestamp":169158501991,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778977130748,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":834561,"timestamp":169158513324,"id":64,"parentId":21,"tags":{},"startTime":1778977130760,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":855652,"timestamp":169158493427,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778977130740,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":836509,"timestamp":169158513873,"id":68,"parentId":27,"tags":{},"startTime":1778977130760,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":851684,"timestamp":169158498751,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778977130745,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":843000,"timestamp":169158529708,"id":98,"parentId":55,"tags":{},"startTime":1778977130776,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":866231,"timestamp":169158506563,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778977130753,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":850373,"timestamp":169158529667,"id":95,"parentId":52,"tags":{},"startTime":1778977130776,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":874148,"timestamp":169158505953,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778977130752,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":858202,"timestamp":169158529733,"id":100,"parentId":58,"tags":{},"startTime":1778977130776,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":880377,"timestamp":169158507642,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778977130754,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":876883,"timestamp":169158513803,"id":67,"parentId":26,"tags":{},"startTime":1778977130760,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":892132,"timestamp":169158498627,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778977130745,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":862240,"timestamp":169158529860,"id":101,"parentId":59,"tags":{},"startTime":1778977130776,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":884268,"timestamp":169158507878,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778977130754,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":867070,"timestamp":169158529684,"id":96,"parentId":53,"tags":{},"startTime":1778977130776,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":890663,"timestamp":169158506163,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778977130752,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":875171,"timestamp":169158529902,"id":104,"parentId":63,"tags":{},"startTime":1778977130776,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":896246,"timestamp":169158508873,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778977130755,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":863670,"timestamp":169158541707,"id":105,"parentId":57,"tags":{},"startTime":1778977130788,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":898341,"timestamp":169158507074,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778977130753,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":878442,"timestamp":169158529699,"id":97,"parentId":54,"tags":{},"startTime":1778977130776,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":901844,"timestamp":169158506346,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778977130753,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":854612,"timestamp":169158554331,"id":106,"parentId":60,"tags":{},"startTime":1778977130801,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":900879,"timestamp":169158508104,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778977130754,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":886247,"timestamp":169158529876,"id":102,"parentId":61,"tags":{},"startTime":1778977130776,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":907637,"timestamp":169158508549,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778977130755,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":887003,"timestamp":169158529624,"id":94,"parentId":23,"tags":{},"startTime":1778977130776,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":921329,"timestamp":169158495351,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778977130742,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":923515,"timestamp":169158529720,"id":99,"parentId":56,"tags":{},"startTime":1778977130776,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":946506,"timestamp":169158506808,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778977130753,"traceId":"bffda92344ac4a47"},{"name":"is-page-static","duration":942639,"timestamp":169158529889,"id":103,"parentId":62,"tags":{},"startTime":1778977130776,"traceId":"bffda92344ac4a47"},{"name":"check-page","duration":963884,"timestamp":169158508708,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778977130755,"traceId":"bffda92344ac4a47"},{"name":"static-check","duration":982287,"timestamp":169158490341,"id":19,"parentId":1,"tags":{},"startTime":1778977130737,"traceId":"bffda92344ac4a47"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":590,"timestamp":169159485829,"id":108,"parentId":1,"tags":{},"startTime":1778977131732,"traceId":"bffda92344ac4a47"},{"name":"load-dotenv","duration":62,"timestamp":169159499433,"id":111,"parentId":110,"tags":{},"startTime":1778977131746,"traceId":"bffda92344ac4a47"},{"name":"run-export-path-map","duration":1318,"timestamp":169159502610,"id":112,"parentId":110,"tags":{},"startTime":1778977131749,"traceId":"bffda92344ac4a47"},{"name":"next-export","duration":628828,"timestamp":169159497544,"id":110,"parentId":1,"tags":{},"startTime":1778977131744,"traceId":"bffda92344ac4a47"},{"name":"move-exported-app-not-found-","duration":708,"timestamp":169160129937,"id":113,"parentId":109,"tags":{},"startTime":1778977132376,"traceId":"bffda92344ac4a47"},{"name":"move-exported-app-global-error-","duration":439,"timestamp":169160130773,"id":114,"parentId":109,"tags":{},"startTime":1778977132377,"traceId":"bffda92344ac4a47"},{"name":"static-generation","duration":642940,"timestamp":169159491080,"id":109,"parentId":1,"tags":{},"startTime":1778977131737,"traceId":"bffda92344ac4a47"},{"name":"write-routes-manifest","duration":476,"timestamp":169160134266,"id":115,"parentId":1,"tags":{},"startTime":1778977132381,"traceId":"bffda92344ac4a47"},{"name":"print-tree-view","duration":5672,"timestamp":169160145442,"id":116,"parentId":1,"tags":{},"startTime":1778977132392,"traceId":"bffda92344ac4a47"},{"name":"write-route-bundle-stats","duration":17532,"timestamp":169160151156,"id":117,"parentId":1,"tags":{},"startTime":1778977132397,"traceId":"bffda92344ac4a47"},{"name":"telemetry-flush","duration":23629,"timestamp":169160168733,"id":118,"parentId":1,"tags":{},"startTime":1778977132415,"traceId":"bffda92344ac4a47"},{"name":"next-build","duration":19350685,"timestamp":169140841713,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778977113088,"traceId":"bffda92344ac4a47"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":6703528,"timestamp":169141108191,"id":14,"parentId":1,"tags":{},"startTime":1778977113354,"traceId":"bffda92344ac4a47"},{"name":"turbopack-build-events","duration":94,"timestamp":169141421314,"id":15,"parentId":1,"tags":{},"startTime":1778977113668,"traceId":"bffda92344ac4a47"},{"name":"run-typescript","duration":10465177,"timestamp":169147822020,"id":16,"parentId":1,"tags":{},"startTime":1778977120068,"traceId":"bffda92344ac4a47"},{"name":"static-check","duration":982287,"timestamp":169158490341,"id":19,"parentId":1,"tags":{},"startTime":1778977130737,"traceId":"bffda92344ac4a47"},{"name":"static-generation","duration":642940,"timestamp":169159491080,"id":109,"parentId":1,"tags":{},"startTime":1778977131737,"traceId":"bffda92344ac4a47"},{"name":"telemetry-flush","duration":23629,"timestamp":169160168733,"id":118,"parentId":1,"tags":{},"startTime":1778977132415,"traceId":"bffda92344ac4a47"},{"name":"next-build","duration":19350685,"timestamp":169140841713,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778977113088,"traceId":"bffda92344ac4a47"}]
|
|
@@ -10262,11 +10262,30 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10262
10262
|
its own compositor layer for crisper edges during
|
|
10263
10263
|
the scale tween. Sibling change on zoom-in icon
|
|
10264
10264
|
below. */}
|
|
10265
|
+
{/* Round 454 / Loop: extend R453 chrome reset icon hover
|
|
10266
|
+
sw lift to zoom +/− icons via Tailwind arbitrary class
|
|
10267
|
+
group-hover:[stroke-width:2.8]. Chrome icon hover sw
|
|
10268
|
+
lift family now 5 anchors:
|
|
10269
|
+
R208 runtime badge outer ring 1.5 → 2
|
|
10270
|
+
R443 runtime badge inner icon 2.4 → 2.8
|
|
10271
|
+
R453 chrome reset icon 2.5 → 2.8
|
|
10272
|
+
R454 chrome zoom-out icon 2.5 → 2.8 ← this round
|
|
10273
|
+
R454 chrome zoom-in icon 2.5 → 2.8 ← this round
|
|
10274
|
+
Tailwind v4 arbitrary-value group-hover variant
|
|
10275
|
+
resolves [stroke-width:2.8] as a CSS property which
|
|
10276
|
+
overrides the static strokeWidth='2.5' attribute on
|
|
10277
|
+
hover. transition-[stroke-width] appended to the
|
|
10278
|
+
existing transition-transform list so the sw tween
|
|
10279
|
+
eases under the same 200ms cadence as R352 group-
|
|
10280
|
+
hover:scale-110. R186 anet-chrome-pop keyframe still
|
|
10281
|
+
owns transform during click via CSS-animation
|
|
10282
|
+
precedence over transition-transform. Sibling change
|
|
10283
|
+
on zoom-in icon below. */}
|
|
10265
10284
|
<svg
|
|
10266
10285
|
width="12" height="12" viewBox="0 0 24 24"
|
|
10267
10286
|
fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round"
|
|
10268
10287
|
aria-hidden
|
|
10269
|
-
className={`transition-transform duration-200 ease-out group-hover:scale-110 transform-gpu${chromePopping === 'zoom-out' ? ' anet-chrome-pop' : ''}`}
|
|
10288
|
+
className={`transition-[transform,stroke-width] duration-200 ease-out group-hover:scale-110 group-hover:[stroke-width:2.8] transform-gpu${chromePopping === 'zoom-out' ? ' anet-chrome-pop' : ''}`}
|
|
10270
10289
|
data-topo-chrome-zoom-out-icon
|
|
10271
10290
|
><path d="M5 12h14" /></svg>
|
|
10272
10291
|
</button>
|
|
@@ -10371,11 +10390,13 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10371
10390
|
{/* R352 sibling — zoom-in icon picks up the same
|
|
10372
10391
|
group-hover:scale-110 family. Mirror change at
|
|
10373
10392
|
the zoom-out icon above. */}
|
|
10393
|
+
{/* R454 sibling — zoom-in icon picks up the same
|
|
10394
|
+
group-hover:[stroke-width:2.8] family lift. */}
|
|
10374
10395
|
<svg
|
|
10375
10396
|
width="12" height="12" viewBox="0 0 24 24"
|
|
10376
10397
|
fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round"
|
|
10377
10398
|
aria-hidden
|
|
10378
|
-
className={`transition-transform duration-200 ease-out group-hover:scale-110 transform-gpu${chromePopping === 'zoom-in' ? ' anet-chrome-pop' : ''}`}
|
|
10399
|
+
className={`transition-[transform,stroke-width] duration-200 ease-out group-hover:scale-110 group-hover:[stroke-width:2.8] transform-gpu${chromePopping === 'zoom-in' ? ' anet-chrome-pop' : ''}`}
|
|
10379
10400
|
data-topo-chrome-zoom-in-icon
|
|
10380
10401
|
><path d="M12 5v14M5 12h14" /></svg>
|
|
10381
10402
|
</button>
|
|
@@ -10432,13 +10453,28 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10432
10453
|
(2.5) all share one weight. View-box (24×24) and
|
|
10433
10454
|
display size (13×13) unchanged, so geometry stays
|
|
10434
10455
|
pixel-stable — only the stroke deepens. */}
|
|
10456
|
+
{/* Round 453 / Loop: chrome reset icon strokeWidth hover
|
|
10457
|
+
lift — 2.5 → 2.8 on hoveredReset && !resetSpinning.
|
|
10458
|
+
Sibling to R443 runtime badge inner-icon sw lift
|
|
10459
|
+
(2.4→2.8) — both chrome icons now thicken on hover
|
|
10460
|
+
for tactile feedback. Pre-R453 reset hover was a
|
|
10461
|
+
rotate-only cue (R350); R453 adds a stroke-weight
|
|
10462
|
+
axis so the affordance reads with both motion (R350
|
|
10463
|
+
rotate -8°) AND geometry (R453 sw +0.3). Gated on
|
|
10464
|
+
!resetSpinning so the R184 spin keyframe owns paint
|
|
10465
|
+
during its 450ms run. 200ms stroke-width transition
|
|
10466
|
+
appended to the style list matches R350 transform
|
|
10467
|
+
cadence. data-topo-chrome-reset-icon-stroke-width
|
|
10468
|
+
attr exposes the resolved value for tests. */}
|
|
10435
10469
|
<svg
|
|
10436
10470
|
width="13" height="13" viewBox="0 0 24 24"
|
|
10437
|
-
fill="none" stroke="currentColor"
|
|
10471
|
+
fill="none" stroke="currentColor"
|
|
10472
|
+
strokeWidth={hoveredReset && !resetSpinning ? '2.8' : '2.5'}
|
|
10438
10473
|
strokeLinecap="round" strokeLinejoin="round"
|
|
10439
10474
|
aria-hidden
|
|
10440
10475
|
className={resetSpinning ? 'anet-reset-spin' : undefined}
|
|
10441
10476
|
data-topo-chrome-reset-icon
|
|
10477
|
+
data-topo-chrome-reset-icon-stroke-width={hoveredReset && !resetSpinning ? '2.8' : '2.5'}
|
|
10442
10478
|
// R350: hover-rotate preview of the R184 click-spin.
|
|
10443
10479
|
// Gated on !resetSpinning so the anet-reset-spin keyframe
|
|
10444
10480
|
// owns transform during its 450ms run. transformOrigin
|
|
@@ -10447,7 +10483,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
10447
10483
|
style={{
|
|
10448
10484
|
transform: hoveredReset && !resetSpinning ? 'rotate(-8deg)' : 'rotate(0deg)',
|
|
10449
10485
|
transformOrigin: 'center',
|
|
10450
|
-
transition: 'transform 200ms ease-out',
|
|
10486
|
+
transition: 'transform 200ms ease-out, stroke-width 200ms ease-out',
|
|
10451
10487
|
}}
|
|
10452
10488
|
data-topo-chrome-reset-icon-hover={hoveredReset && !resetSpinning ? 'true' : 'false'}
|
|
10453
10489
|
>
|
package/package.json
CHANGED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* Round 453 verification: chrome reset icon strokeWidth hover lift —
|
|
2
|
+
* 2.5 → 2.8 on hoveredReset && !resetSpinning. Sibling to R443
|
|
3
|
+
* runtime badge inner-icon sw lift.
|
|
4
|
+
*
|
|
5
|
+
* Contract:
|
|
6
|
+
* - rest: reset icon reports stroke-width '2.5' + hover='false'
|
|
7
|
+
* - hover the reset button: icon stroke-width '2.8' + hover='true'
|
|
8
|
+
*/
|
|
9
|
+
import { chromium } from 'playwright';
|
|
10
|
+
import { readFileSync } from 'node:fs';
|
|
11
|
+
|
|
12
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
13
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
14
|
+
|
|
15
|
+
const browser = await chromium.launch({ headless: true });
|
|
16
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
17
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
18
|
+
await ctx.addInitScript(() => {
|
|
19
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } 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, status) => ({
|
|
26
|
+
alias, status, 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: [
|
|
31
|
+
mk('alpha', 'working'),
|
|
32
|
+
mk('beta', 'idle'),
|
|
33
|
+
] } });
|
|
34
|
+
});
|
|
35
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
36
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
37
|
+
|
|
38
|
+
const page = await ctx.newPage();
|
|
39
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
40
|
+
await page.waitForSelector('[data-topo-chrome-reset-icon]', { timeout: 15000 });
|
|
41
|
+
await page.waitForTimeout(400);
|
|
42
|
+
|
|
43
|
+
const readIcon = () => page.evaluate(() => {
|
|
44
|
+
const i = document.querySelector('[data-topo-chrome-reset-icon]');
|
|
45
|
+
return i ? {
|
|
46
|
+
sw: i.getAttribute('stroke-width'),
|
|
47
|
+
sw_d: i.getAttribute('data-topo-chrome-reset-icon-stroke-width'),
|
|
48
|
+
hover: i.getAttribute('data-topo-chrome-reset-icon-hover'),
|
|
49
|
+
} : null;
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
const rest = await readIcon();
|
|
53
|
+
|
|
54
|
+
let hover = null;
|
|
55
|
+
const btn = await page.$('[data-topo-chrome-reset]');
|
|
56
|
+
if (btn) {
|
|
57
|
+
await btn.hover({ force: true });
|
|
58
|
+
await page.waitForTimeout(250);
|
|
59
|
+
hover = await readIcon();
|
|
60
|
+
await page.mouse.move(0, 0);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const fileText = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
64
|
+
const sourceWired = /strokeWidth=\{hoveredReset && !resetSpinning \? '2\.8' : '2\.5'\}/.test(fileText);
|
|
65
|
+
|
|
66
|
+
await browser.close();
|
|
67
|
+
|
|
68
|
+
const results = {
|
|
69
|
+
rest_mounted: !!rest,
|
|
70
|
+
rest_sw_2_5: rest?.sw === '2.5',
|
|
71
|
+
rest_hover_false: rest?.hover === 'false',
|
|
72
|
+
hover_sw_2_8: hover?.sw === '2.8',
|
|
73
|
+
hover_sw_data_2_8: hover?.sw_d === '2.8',
|
|
74
|
+
hover_hover_true: hover?.hover === 'true',
|
|
75
|
+
source_wired: sourceWired,
|
|
76
|
+
};
|
|
77
|
+
const ok = Object.values(results).every(Boolean);
|
|
78
|
+
console.log(`${ok ? '✅' : '❌'} chrome reset icon sw hover:`, JSON.stringify(results),
|
|
79
|
+
'\n rest:', rest, '\n hover:', hover);
|
|
80
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* Round 454 verification: chrome zoom +/- icons strokeWidth hover lift
|
|
2
|
+
* via Tailwind arbitrary class group-hover:[stroke-width:2.8].
|
|
3
|
+
* The attribute strokeWidth='2.5' stays at rest; CSS hover overrides
|
|
4
|
+
* with stroke-width: 2.8.
|
|
5
|
+
*
|
|
6
|
+
* Contract:
|
|
7
|
+
* - rest: zoom-in/zoom-out icons report computed stroke-width '2.5px'
|
|
8
|
+
* - hover the zoom-in button: that icon computed stroke-width '2.8px'
|
|
9
|
+
* - source-file probe confirms group-hover:[stroke-width:2.8] in
|
|
10
|
+
* both icon className strings
|
|
11
|
+
*/
|
|
12
|
+
import { chromium } from 'playwright';
|
|
13
|
+
import { readFileSync } from 'node:fs';
|
|
14
|
+
|
|
15
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
16
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
17
|
+
|
|
18
|
+
const browser = await chromium.launch({ headless: true });
|
|
19
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
20
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
21
|
+
await ctx.addInitScript(() => {
|
|
22
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
23
|
+
});
|
|
24
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
25
|
+
const r = await route.fetch();
|
|
26
|
+
const b = await r.json();
|
|
27
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
28
|
+
const mk = (alias, status) => ({
|
|
29
|
+
alias, status, model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
30
|
+
network_id: nid, project_dir: null,
|
|
31
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
32
|
+
});
|
|
33
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
34
|
+
mk('alpha', 'working'),
|
|
35
|
+
mk('beta', 'idle'),
|
|
36
|
+
] } });
|
|
37
|
+
});
|
|
38
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
39
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
40
|
+
|
|
41
|
+
const page = await ctx.newPage();
|
|
42
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
43
|
+
await page.waitForSelector('[data-topo-chrome-zoom-in-icon]', { timeout: 15000 });
|
|
44
|
+
await page.waitForTimeout(400);
|
|
45
|
+
|
|
46
|
+
const readIcons = () => page.evaluate(() => {
|
|
47
|
+
const zi = document.querySelector('[data-topo-chrome-zoom-in-icon]');
|
|
48
|
+
const zo = document.querySelector('[data-topo-chrome-zoom-out-icon]');
|
|
49
|
+
return {
|
|
50
|
+
zoom_in: zi ? { sw: zi.getAttribute('stroke-width'), sw_computed: getComputedStyle(zi).strokeWidth } : null,
|
|
51
|
+
zoom_out: zo ? { sw: zo.getAttribute('stroke-width'), sw_computed: getComputedStyle(zo).strokeWidth } : null,
|
|
52
|
+
};
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const rest = await readIcons();
|
|
56
|
+
|
|
57
|
+
// Hover zoom-in button
|
|
58
|
+
let hover = null;
|
|
59
|
+
const btn = await page.$('[data-topo-chrome-zoom-in]');
|
|
60
|
+
if (btn) {
|
|
61
|
+
await btn.hover({ force: true });
|
|
62
|
+
await page.waitForTimeout(300);
|
|
63
|
+
hover = await readIcons();
|
|
64
|
+
await page.mouse.move(0, 0);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const fileText = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
68
|
+
// className appears BEFORE data-attr on the icon SVG, so check both
|
|
69
|
+
// orderings + count >= 2 to confirm both zoom icons have the class.
|
|
70
|
+
const sourceMatch = fileText.match(/group-hover:\[stroke-width:2\.8\]/g);
|
|
71
|
+
const sourceTwoMatches = sourceMatch && sourceMatch.length >= 2;
|
|
72
|
+
const sourceZoomOut = /group-hover:\[stroke-width:2\.8\][\s\S]{0,400}data-topo-chrome-zoom-out-icon/.test(fileText);
|
|
73
|
+
const sourceZoomIn = /group-hover:\[stroke-width:2\.8\][\s\S]{0,400}data-topo-chrome-zoom-in-icon/.test(fileText);
|
|
74
|
+
|
|
75
|
+
await browser.close();
|
|
76
|
+
|
|
77
|
+
const results = {
|
|
78
|
+
rest_zi_attr_2_5: rest.zoom_in?.sw === '2.5',
|
|
79
|
+
rest_zo_attr_2_5: rest.zoom_out?.sw === '2.5',
|
|
80
|
+
rest_zi_computed_2_5: rest.zoom_in?.sw_computed === '2.5px' || rest.zoom_in?.sw_computed === '2.5',
|
|
81
|
+
hover_zi_computed_2_8: hover?.zoom_in?.sw_computed === '2.8px' || hover?.zoom_in?.sw_computed === '2.8',
|
|
82
|
+
source_zoom_out_wired: sourceZoomOut,
|
|
83
|
+
source_zoom_in_wired: sourceZoomIn,
|
|
84
|
+
source_two_matches: sourceTwoMatches,
|
|
85
|
+
};
|
|
86
|
+
const ok = Object.values(results).every(Boolean);
|
|
87
|
+
console.log(`${ok ? '✅' : '❌'} chrome zoom icon sw hover:`, JSON.stringify(results),
|
|
88
|
+
'\n rest:', JSON.stringify(rest),
|
|
89
|
+
'\n hover:', JSON.stringify(hover));
|
|
90
|
+
process.exit(ok ? 0 : 1);
|