@sleep2agi/agent-network-dashboard 0.5.1-preview.95 → 0.5.1-preview.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +4 -4
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/admin.html +1 -1
- package/.next/server/app/admin.rsc +1 -1
- package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +2 -2
- package/.next/server/app/login.rsc +2 -2
- package/.next/server/app/login.segments/_full.segment.rsc +2 -2
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +1 -1
- package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/.next/server/app/logs.html +1 -1
- package/.next/server/app/logs.rsc +1 -1
- package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
- package/.next/server/app/messages.html +1 -1
- package/.next/server/app/messages.rsc +1 -1
- package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
- package/.next/server/app/node.html +1 -1
- package/.next/server/app/node.rsc +1 -1
- package/.next/server/app/node.segments/_full.segment.rsc +1 -1
- package/.next/server/app/node.segments/_head.segment.rsc +1 -1
- package/.next/server/app/node.segments/_index.segment.rsc +1 -1
- package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/node.segments/node.segment.rsc +1 -1
- package/.next/server/app/nodes.html +1 -1
- package/.next/server/app/nodes.rsc +1 -1
- package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs.html +1 -1
- package/.next/server/app/server-logs.rsc +1 -1
- package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
- package/.next/server/app/settings/networks.html +1 -1
- package/.next/server/app/settings/networks.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens.html +1 -1
- package/.next/server/app/settings/tokens.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings.html +2 -2
- package/.next/server/app/settings.rsc +2 -2
- package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
- package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/.next/server/app/tasks.html +1 -1
- package/.next/server/app/tasks.rsc +1 -1
- package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/{0wecjbif70gvd.js → 00qo_we9z99it.js} +1 -1
- package/.next/static/chunks/{0d~gzizx7atsl.js → 0u2h-n3-1bls-.js} +1 -1
- package/.next/static/chunks/{0hduheo6~ui~q.js → 15~cziyy9lhg8.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +22 -1
- package/package.json +1 -1
- package/scripts/topo-hub-spoke-hover-sw-test.mjs +121 -0
- /package/.next/static/{G-QBT67axaIRmw0dasJKn → R-aU9zJxwHMwQ4zFYOHZD}/_buildManifest.js +0 -0
- /package/.next/static/{G-QBT67axaIRmw0dasJKn → R-aU9zJxwHMwQ4zFYOHZD}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{G-QBT67axaIRmw0dasJKn → R-aU9zJxwHMwQ4zFYOHZD}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.94"],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.95"],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 +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.95"],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]})]})]})]})}])}]);
|
package/.next/trace
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":284,"timestamp":161063712028,"id":4,"parentId":1,"tags":{},"startTime":1778969035958,"traceId":"2ea47dccd34dece3"},{"name":"load-custom-routes","duration":495,"timestamp":161063712468,"id":5,"parentId":1,"tags":{},"startTime":1778969035959,"traceId":"2ea47dccd34dece3"},{"name":"create-dist-dir","duration":879,"timestamp":161063713025,"id":6,"parentId":1,"tags":{},"startTime":1778969035959,"traceId":"2ea47dccd34dece3"},{"name":"clean","duration":33896,"timestamp":161063714835,"id":7,"parentId":1,"tags":{},"startTime":1778969035961,"traceId":"2ea47dccd34dece3"},{"name":"discover-routes","duration":11615,"timestamp":161063834881,"id":8,"parentId":1,"tags":{},"startTime":1778969036081,"traceId":"2ea47dccd34dece3"},{"name":"create-root-mapping","duration":116,"timestamp":161063846563,"id":9,"parentId":1,"tags":{},"startTime":1778969036093,"traceId":"2ea47dccd34dece3"},{"name":"generate-route-types","duration":34248,"timestamp":161063849333,"id":10,"parentId":1,"tags":{},"startTime":1778969036096,"traceId":"2ea47dccd34dece3"},{"name":"public-dir-conflict-check","duration":151,"timestamp":161063883689,"id":11,"parentId":1,"tags":{},"startTime":1778969036130,"traceId":"2ea47dccd34dece3"},{"name":"generate-routes-manifest","duration":4851,"timestamp":161063884030,"id":12,"parentId":1,"tags":{},"startTime":1778969036130,"traceId":"2ea47dccd34dece3"},{"name":"run-turbopack","duration":5969955,"timestamp":161063894329,"id":14,"parentId":1,"tags":{},"startTime":1778969036141,"traceId":"2ea47dccd34dece3"},{"name":"turbopack-build-events","duration":127,"timestamp":161064218949,"id":15,"parentId":1,"tags":{},"startTime":1778969036465,"traceId":"2ea47dccd34dece3"},{"name":"run-typescript","duration":9459630,"timestamp":161069872448,"id":16,"parentId":1,"tags":{},"startTime":1778969042119,"traceId":"2ea47dccd34dece3"},{"name":"generate-required-server-files","duration":2299,"timestamp":161079333136,"id":18,"parentId":1,"tags":{},"startTime":1778969051579,"traceId":"2ea47dccd34dece3"},{"name":"check-static-error-page","duration":15246,"timestamp":161079499664,"id":20,"parentId":19,"tags":{},"startTime":1778969051746,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":487353,"timestamp":161079518811,"id":65,"parentId":22,"tags":{},"startTime":1778969051765,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":505135,"timestamp":161079502901,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778969051749,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":550214,"timestamp":161079519293,"id":69,"parentId":28,"tags":{},"startTime":1778969051766,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":563221,"timestamp":161079506390,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778969051753,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":556513,"timestamp":161079519790,"id":72,"parentId":32,"tags":{},"startTime":1778969051766,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":569294,"timestamp":161079507091,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778969051753,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":589147,"timestamp":161079519946,"id":73,"parentId":33,"tags":{},"startTime":1778969051766,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":601964,"timestamp":161079507222,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778969051753,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":592187,"timestamp":161079519089,"id":67,"parentId":26,"tags":{},"startTime":1778969051765,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":605205,"timestamp":161079506138,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778969051752,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":596642,"timestamp":161079520129,"id":75,"parentId":35,"tags":{},"startTime":1778969051766,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":609485,"timestamp":161079507449,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778969051754,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":602830,"timestamp":161079518398,"id":64,"parentId":21,"tags":{},"startTime":1778969051765,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":619953,"timestamp":161079501329,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778969051748,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":605497,"timestamp":161079520092,"id":74,"parentId":34,"tags":{},"startTime":1778969051766,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":618296,"timestamp":161079507338,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778969051754,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":609769,"timestamp":161079520202,"id":78,"parentId":38,"tags":{},"startTime":1778969051766,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":621789,"timestamp":161079508247,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778969051755,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":618297,"timestamp":161079520211,"id":79,"parentId":39,"tags":{},"startTime":1778969051766,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":630215,"timestamp":161079508336,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778969051755,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":622405,"timestamp":161079520224,"id":80,"parentId":40,"tags":{},"startTime":1778969051766,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":634235,"timestamp":161079508437,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778969051755,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":632097,"timestamp":161079520238,"id":81,"parentId":42,"tags":{},"startTime":1778969051767,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":643590,"timestamp":161079508808,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778969051755,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":637290,"timestamp":161079519195,"id":68,"parentId":27,"tags":{},"startTime":1778969051765,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":650258,"timestamp":161079506273,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778969051753,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":637668,"timestamp":161079520252,"id":82,"parentId":44,"tags":{},"startTime":1778969051767,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":648725,"timestamp":161079509235,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778969051756,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":643204,"timestamp":161079520154,"id":76,"parentId":36,"tags":{},"startTime":1778969051766,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":655499,"timestamp":161079507901,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778969051754,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":643237,"timestamp":161079520274,"id":84,"parentId":46,"tags":{},"startTime":1778969051767,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":654045,"timestamp":161079509491,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778969051756,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":644952,"timestamp":161079518960,"id":66,"parentId":25,"tags":{},"startTime":1778969051765,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":658024,"timestamp":161079505953,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778969051752,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":653785,"timestamp":161079520312,"id":87,"parentId":49,"tags":{},"startTime":1778969051767,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":662824,"timestamp":161079511330,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778969051758,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":656795,"timestamp":161079519717,"id":71,"parentId":30,"tags":{},"startTime":1778969051766,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":669897,"timestamp":161079506660,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778969051753,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":657410,"timestamp":161079520298,"id":86,"parentId":48,"tags":{},"startTime":1778969051767,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":668053,"timestamp":161079509716,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778969051756,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":659763,"timestamp":161079524039,"id":90,"parentId":24,"tags":{},"startTime":1778969051770,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":680406,"timestamp":161079503441,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778969051750,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":665474,"timestamp":161079520288,"id":85,"parentId":47,"tags":{},"startTime":1778969051767,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":676200,"timestamp":161079509609,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778969051756,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":663506,"timestamp":161079525180,"id":91,"parentId":31,"tags":{},"startTime":1778969051771,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":681941,"timestamp":161079506793,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778969051753,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":668424,"timestamp":161079527336,"id":93,"parentId":43,"tags":{},"startTime":1778969051774,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":687281,"timestamp":161079508949,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778969051755,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":673503,"timestamp":161079525994,"id":92,"parentId":41,"tags":{},"startTime":1778969051772,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":691009,"timestamp":161079508541,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778969051755,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":682201,"timestamp":161079520337,"id":89,"parentId":51,"tags":{},"startTime":1778969051767,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":691064,"timestamp":161079511525,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778969051758,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":682457,"timestamp":161079520261,"id":83,"parentId":45,"tags":{},"startTime":1778969051767,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":693377,"timestamp":161079509380,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778969051756,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":683311,"timestamp":161079519569,"id":70,"parentId":29,"tags":{},"startTime":1778969051766,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":696385,"timestamp":161079506519,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778969051753,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":686616,"timestamp":161079520324,"id":88,"parentId":50,"tags":{},"startTime":1778969051767,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":695537,"timestamp":161079511443,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778969051758,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":727859,"timestamp":161079520184,"id":77,"parentId":37,"tags":{},"startTime":1778969051766,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":740038,"timestamp":161079508094,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778969051754,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":726844,"timestamp":161079529603,"id":95,"parentId":52,"tags":{},"startTime":1778969051776,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":744608,"timestamp":161079511916,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778969051758,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":730441,"timestamp":161079529667,"id":100,"parentId":58,"tags":{},"startTime":1778969051776,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":746652,"timestamp":161079513529,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778969051760,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":730753,"timestamp":161079529618,"id":96,"parentId":53,"tags":{},"startTime":1778969051776,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":748325,"timestamp":161079512106,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778969051758,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":737059,"timestamp":161079529802,"id":101,"parentId":59,"tags":{},"startTime":1778969051776,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":753189,"timestamp":161079513734,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778969051760,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":737498,"timestamp":161079529632,"id":97,"parentId":54,"tags":{},"startTime":1778969051776,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":754916,"timestamp":161079512264,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778969051759,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":737478,"timestamp":161079529825,"id":102,"parentId":61,"tags":{},"startTime":1778969051776,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":752966,"timestamp":161079514363,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778969051761,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":740539,"timestamp":161079529852,"id":104,"parentId":63,"tags":{},"startTime":1778969051776,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":755774,"timestamp":161079514652,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778969051761,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":744648,"timestamp":161079529840,"id":103,"parentId":62,"tags":{},"startTime":1778969051776,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":760010,"timestamp":161079514512,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778969051761,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":716915,"timestamp":161079557655,"id":106,"parentId":57,"tags":{},"startTime":1778969051804,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":761655,"timestamp":161079512928,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778969051759,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":729207,"timestamp":161079545414,"id":105,"parentId":60,"tags":{},"startTime":1778969051792,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":760717,"timestamp":161079513926,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778969051760,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":745561,"timestamp":161079529574,"id":94,"parentId":23,"tags":{},"startTime":1778969051776,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":771959,"timestamp":161079503196,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778969051749,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":750163,"timestamp":161079529654,"id":99,"parentId":56,"tags":{},"startTime":1778969051776,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":767168,"timestamp":161079512679,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778969051759,"traceId":"2ea47dccd34dece3"},{"name":"is-page-static","duration":770929,"timestamp":161079529641,"id":98,"parentId":55,"tags":{},"startTime":1778969051776,"traceId":"2ea47dccd34dece3"},{"name":"check-page","duration":788137,"timestamp":161079512472,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778969051759,"traceId":"2ea47dccd34dece3"},{"name":"static-check","duration":802129,"timestamp":161079498513,"id":19,"parentId":1,"tags":{},"startTime":1778969051745,"traceId":"2ea47dccd34dece3"}]
|
|
2
|
-
[{"name":"write-routes-manifest","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":308,"timestamp":161373245600,"id":4,"parentId":1,"tags":{},"startTime":1778969345492,"traceId":"5cd1a61bbdb3d6e3"},{"name":"load-custom-routes","duration":462,"timestamp":161373246080,"id":5,"parentId":1,"tags":{},"startTime":1778969345492,"traceId":"5cd1a61bbdb3d6e3"},{"name":"create-dist-dir","duration":829,"timestamp":161373246584,"id":6,"parentId":1,"tags":{},"startTime":1778969345493,"traceId":"5cd1a61bbdb3d6e3"},{"name":"clean","duration":29293,"timestamp":161373248298,"id":7,"parentId":1,"tags":{},"startTime":1778969345495,"traceId":"5cd1a61bbdb3d6e3"},{"name":"discover-routes","duration":25470,"timestamp":161373356074,"id":8,"parentId":1,"tags":{},"startTime":1778969345602,"traceId":"5cd1a61bbdb3d6e3"},{"name":"create-root-mapping","duration":115,"timestamp":161373381606,"id":9,"parentId":1,"tags":{},"startTime":1778969345628,"traceId":"5cd1a61bbdb3d6e3"},{"name":"generate-route-types","duration":22545,"timestamp":161373384298,"id":10,"parentId":1,"tags":{},"startTime":1778969345631,"traceId":"5cd1a61bbdb3d6e3"},{"name":"public-dir-conflict-check","duration":165,"timestamp":161373406955,"id":11,"parentId":1,"tags":{},"startTime":1778969345653,"traceId":"5cd1a61bbdb3d6e3"},{"name":"generate-routes-manifest","duration":6123,"timestamp":161373407286,"id":12,"parentId":1,"tags":{},"startTime":1778969345654,"traceId":"5cd1a61bbdb3d6e3"},{"name":"run-turbopack","duration":6354474,"timestamp":161373419686,"id":14,"parentId":1,"tags":{},"startTime":1778969345666,"traceId":"5cd1a61bbdb3d6e3"},{"name":"turbopack-build-events","duration":102,"timestamp":161373712211,"id":15,"parentId":1,"tags":{},"startTime":1778969345958,"traceId":"5cd1a61bbdb3d6e3"},{"name":"run-typescript","duration":9479116,"timestamp":161379783541,"id":16,"parentId":1,"tags":{},"startTime":1778969352030,"traceId":"5cd1a61bbdb3d6e3"},{"name":"generate-required-server-files","duration":3067,"timestamp":161389264531,"id":18,"parentId":1,"tags":{},"startTime":1778969361511,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-static-error-page","duration":15717,"timestamp":161389496647,"id":20,"parentId":19,"tags":{},"startTime":1778969361743,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":490848,"timestamp":161389516411,"id":65,"parentId":22,"tags":{},"startTime":1778969361763,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":507623,"timestamp":161389499805,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778969361746,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":555044,"timestamp":161389516888,"id":69,"parentId":28,"tags":{},"startTime":1778969361763,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":568693,"timestamp":161389503366,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778969361750,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":563724,"timestamp":161389517175,"id":70,"parentId":29,"tags":{},"startTime":1778969361763,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":577484,"timestamp":161389503482,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778969361750,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":563762,"timestamp":161389517382,"id":72,"parentId":32,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":577137,"timestamp":161389504039,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778969361750,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":587768,"timestamp":161389517545,"id":73,"parentId":33,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":601223,"timestamp":161389504171,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778969361750,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":587959,"timestamp":161389517619,"id":74,"parentId":34,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":601334,"timestamp":161389504283,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778969361751,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":595003,"timestamp":161389516661,"id":67,"parentId":26,"tags":{},"startTime":1778969361763,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":608608,"timestamp":161389503113,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778969361749,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":594283,"timestamp":161389517650,"id":75,"parentId":35,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":607575,"timestamp":161389504395,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778969361751,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":597002,"timestamp":161389516781,"id":68,"parentId":27,"tags":{},"startTime":1778969361763,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":610591,"timestamp":161389503239,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778969361750,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":603304,"timestamp":161389516548,"id":66,"parentId":25,"tags":{},"startTime":1778969361763,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":616977,"timestamp":161389502924,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778969361749,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":602385,"timestamp":161389517712,"id":78,"parentId":38,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":614921,"timestamp":161389505215,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778969361751,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":602575,"timestamp":161389517697,"id":77,"parentId":37,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":615231,"timestamp":161389505068,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778969361751,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":602764,"timestamp":161389517670,"id":76,"parentId":36,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":615585,"timestamp":161389504878,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778969361751,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":607736,"timestamp":161389517793,"id":83,"parentId":45,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":619215,"timestamp":161389506357,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778969361753,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":608530,"timestamp":161389517316,"id":71,"parentId":30,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":622263,"timestamp":161389503632,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778969361750,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":613353,"timestamp":161389517807,"id":84,"parentId":46,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":624752,"timestamp":161389506454,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778969361753,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":613637,"timestamp":161389517725,"id":79,"parentId":39,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":626095,"timestamp":161389505313,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778969361752,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":616644,"timestamp":161389517831,"id":86,"parentId":48,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":625971,"timestamp":161389508547,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778969361755,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":618661,"timestamp":161389516022,"id":64,"parentId":21,"tags":{},"startTime":1778969361762,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":636493,"timestamp":161389498220,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778969361744,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":618688,"timestamp":161389517844,"id":87,"parentId":49,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":627814,"timestamp":161389508757,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778969361755,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":619560,"timestamp":161389517762,"id":81,"parentId":42,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":631605,"timestamp":161389505775,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778969361752,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":622227,"timestamp":161389517853,"id":88,"parentId":50,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":631261,"timestamp":161389508864,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778969361755,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":620183,"timestamp":161389522296,"id":91,"parentId":31,"tags":{},"startTime":1778969361769,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":638767,"timestamp":161389503760,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778969361750,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":621487,"timestamp":161389521194,"id":90,"parentId":24,"tags":{},"startTime":1778969361767,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":642359,"timestamp":161389500352,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778969361747,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":622640,"timestamp":161389524477,"id":93,"parentId":43,"tags":{},"startTime":1778969361771,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":641243,"timestamp":161389505914,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778969361752,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":630559,"timestamp":161389517818,"id":85,"parentId":47,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":641851,"timestamp":161389506564,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778969361753,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":626753,"timestamp":161389523150,"id":92,"parentId":41,"tags":{},"startTime":1778969361769,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":644442,"timestamp":161389505507,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778969361752,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":632349,"timestamp":161389517780,"id":82,"parentId":44,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":643952,"timestamp":161389506214,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778969361752,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":654543,"timestamp":161389517752,"id":80,"parentId":40,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":666960,"timestamp":161389505410,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778969361752,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":694031,"timestamp":161389526673,"id":95,"parentId":52,"tags":{},"startTime":1778969361773,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":711428,"timestamp":161389509376,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778969361756,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":704436,"timestamp":161389526752,"id":100,"parentId":58,"tags":{},"startTime":1778969361773,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":720305,"timestamp":161389510956,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778969361757,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":707898,"timestamp":161389526699,"id":97,"parentId":54,"tags":{},"startTime":1778969361773,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":724967,"timestamp":161389509687,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778969361756,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":712749,"timestamp":161389526871,"id":101,"parentId":59,"tags":{},"startTime":1778969361773,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":728585,"timestamp":161389511183,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778969361757,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":714461,"timestamp":161389526716,"id":98,"parentId":55,"tags":{},"startTime":1778969361773,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":731462,"timestamp":161389509906,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778969361756,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":716388,"timestamp":161389526892,"id":102,"parentId":61,"tags":{},"startTime":1778969361773,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":731533,"timestamp":161389511803,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778969361758,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":717594,"timestamp":161389526643,"id":94,"parentId":23,"tags":{},"startTime":1778969361773,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":744170,"timestamp":161389500108,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778969361746,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":722511,"timestamp":161389526914,"id":104,"parentId":63,"tags":{},"startTime":1778969361773,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":737342,"timestamp":161389512123,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778969361758,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":722815,"timestamp":161389526901,"id":103,"parentId":62,"tags":{},"startTime":1778969361773,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":737822,"timestamp":161389511953,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778969361758,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":717073,"timestamp":161389535257,"id":105,"parentId":60,"tags":{},"startTime":1778969361782,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":741003,"timestamp":161389511368,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778969361758,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":726468,"timestamp":161389526729,"id":99,"parentId":56,"tags":{},"startTime":1778969361773,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":743106,"timestamp":161389510137,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778969361756,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":703344,"timestamp":161389551217,"id":106,"parentId":57,"tags":{},"startTime":1778969361797,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":744213,"timestamp":161389510384,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778969361757,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":730998,"timestamp":161389526685,"id":96,"parentId":53,"tags":{},"startTime":1778969361773,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":748187,"timestamp":161389509534,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778969361756,"traceId":"5cd1a61bbdb3d6e3"},{"name":"is-page-static","duration":750088,"timestamp":161389517866,"id":89,"parentId":51,"tags":{},"startTime":1778969361764,"traceId":"5cd1a61bbdb3d6e3"},{"name":"check-page","duration":759067,"timestamp":161389508954,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778969361755,"traceId":"5cd1a61bbdb3d6e3"},{"name":"static-check","duration":772555,"timestamp":161389495517,"id":19,"parentId":1,"tags":{},"startTime":1778969361742,"traceId":"5cd1a61bbdb3d6e3"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":546,"timestamp":161390277520,"id":108,"parentId":1,"tags":{},"startTime":1778969362524,"traceId":"5cd1a61bbdb3d6e3"},{"name":"load-dotenv","duration":45,"timestamp":161390290533,"id":111,"parentId":110,"tags":{},"startTime":1778969362537,"traceId":"5cd1a61bbdb3d6e3"},{"name":"run-export-path-map","duration":580,"timestamp":161390294029,"id":112,"parentId":110,"tags":{},"startTime":1778969362540,"traceId":"5cd1a61bbdb3d6e3"},{"name":"next-export","duration":623486,"timestamp":161390289190,"id":110,"parentId":1,"tags":{},"startTime":1778969362535,"traceId":"5cd1a61bbdb3d6e3"},{"name":"move-exported-app-not-found-","duration":538,"timestamp":161390915694,"id":113,"parentId":109,"tags":{},"startTime":1778969363162,"traceId":"5cd1a61bbdb3d6e3"},{"name":"move-exported-app-global-error-","duration":413,"timestamp":161390916317,"id":114,"parentId":109,"tags":{},"startTime":1778969363163,"traceId":"5cd1a61bbdb3d6e3"},{"name":"static-generation","duration":636984,"timestamp":161390281723,"id":109,"parentId":1,"tags":{},"startTime":1778969362528,"traceId":"5cd1a61bbdb3d6e3"},{"name":"write-routes-manifest","duration":593,"timestamp":161390918944,"id":115,"parentId":1,"tags":{},"startTime":1778969363165,"traceId":"5cd1a61bbdb3d6e3"},{"name":"print-tree-view","duration":5599,"timestamp":161390938552,"id":116,"parentId":1,"tags":{},"startTime":1778969363185,"traceId":"5cd1a61bbdb3d6e3"},{"name":"write-route-bundle-stats","duration":12267,"timestamp":161390944196,"id":117,"parentId":1,"tags":{},"startTime":1778969363190,"traceId":"5cd1a61bbdb3d6e3"},{"name":"telemetry-flush","duration":20058,"timestamp":161390956497,"id":118,"parentId":1,"tags":{},"startTime":1778969363203,"traceId":"5cd1a61bbdb3d6e3"},{"name":"next-build","duration":17782427,"timestamp":161373194161,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778969345440,"traceId":"5cd1a61bbdb3d6e3"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":6354474,"timestamp":161373419686,"id":14,"parentId":1,"tags":{},"startTime":1778969345666,"traceId":"5cd1a61bbdb3d6e3"},{"name":"turbopack-build-events","duration":102,"timestamp":161373712211,"id":15,"parentId":1,"tags":{},"startTime":1778969345958,"traceId":"5cd1a61bbdb3d6e3"},{"name":"run-typescript","duration":9479116,"timestamp":161379783541,"id":16,"parentId":1,"tags":{},"startTime":1778969352030,"traceId":"5cd1a61bbdb3d6e3"},{"name":"static-check","duration":772555,"timestamp":161389495517,"id":19,"parentId":1,"tags":{},"startTime":1778969361742,"traceId":"5cd1a61bbdb3d6e3"},{"name":"static-generation","duration":636984,"timestamp":161390281723,"id":109,"parentId":1,"tags":{},"startTime":1778969362528,"traceId":"5cd1a61bbdb3d6e3"},{"name":"telemetry-flush","duration":20058,"timestamp":161390956497,"id":118,"parentId":1,"tags":{},"startTime":1778969363203,"traceId":"5cd1a61bbdb3d6e3"},{"name":"next-build","duration":17782427,"timestamp":161373194161,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778969345440,"traceId":"5cd1a61bbdb3d6e3"}]
|
|
@@ -4123,13 +4123,33 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4123
4123
|
const spokeOpacity = isActiveSpoke
|
|
4124
4124
|
? (isHoveredSpoke ? 0.95 : 0.80)
|
|
4125
4125
|
: (isHoveredSpoke ? 0.70 : 0.50);
|
|
4126
|
+
/* Round 435 / Loop: hub-spoke stroke-width hover lift —
|
|
4127
|
+
sibling to R430 opacity hover at the same surface. When
|
|
4128
|
+
hoveredAlias matches, BOTH opacity AND stroke-width
|
|
4129
|
+
lift on the matched spoke so the eye registers a
|
|
4130
|
+
2-axis "this node's spoke" gesture (paint + geometry).
|
|
4131
|
+
idle 1.00 → 1.25 (Δ +0.25, +25%)
|
|
4132
|
+
active 2.25 → 2.50 (Δ +0.25, +11%)
|
|
4133
|
+
Same +0.25 absolute delta keeps the idle/active visual
|
|
4134
|
+
progression consistent — at rest sw ratio 2.25:1 = 2.25,
|
|
4135
|
+
on hover 2.50:1.25 = 2.0; both still clearly two-tier.
|
|
4136
|
+
R241 transition list already covers stroke-width 250ms
|
|
4137
|
+
so the lift eases for free.
|
|
4138
|
+
R51 sentinel-safe: spoke is canvas <path>, not
|
|
4139
|
+
data-node <circle> (the sentinel selector is gated to
|
|
4140
|
+
g[data-node] descendants). 1.25 and 2.5 are not in the
|
|
4141
|
+
reserved {1.5, 3} set so the overlap-test sentinel
|
|
4142
|
+
attribute selector wouldn't match either way. */
|
|
4143
|
+
const spokeStrokeWidth = isActiveSpoke
|
|
4144
|
+
? (isHoveredSpoke ? 2.5 : 2.25)
|
|
4145
|
+
: (isHoveredSpoke ? 1.25 : 1);
|
|
4126
4146
|
return (
|
|
4127
4147
|
<path
|
|
4128
4148
|
key={`hub-${session.alias}`}
|
|
4129
4149
|
d={path}
|
|
4130
4150
|
fill="none"
|
|
4131
4151
|
stroke={isActiveSpoke ? pal.spokeStroke.active : pal.spokeStroke.idle}
|
|
4132
|
-
strokeWidth={
|
|
4152
|
+
strokeWidth={spokeStrokeWidth}
|
|
4133
4153
|
strokeDasharray={isActiveSpoke ? 'none' : '6 14'}
|
|
4134
4154
|
strokeLinecap="round"
|
|
4135
4155
|
opacity={spokeOpacity}
|
|
@@ -4139,6 +4159,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4139
4159
|
data-topo-hub-spoke-active={isActiveSpoke ? 'true' : 'false'}
|
|
4140
4160
|
data-topo-hub-spoke-hovered={isHoveredSpoke ? 'true' : 'false'}
|
|
4141
4161
|
data-topo-hub-spoke-opacity={spokeOpacity}
|
|
4162
|
+
data-topo-hub-spoke-stroke-width={spokeStrokeWidth}
|
|
4142
4163
|
data-topo-hub-spoke-stroke-width-active="2.25"
|
|
4143
4164
|
data-topo-hub-spoke-linecap="round"
|
|
4144
4165
|
style={{
|
package/package.json
CHANGED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* Round 435 verification: hub-spoke stroke-width hover lift —
|
|
2
|
+
* sibling to R430 opacity hover at the same surface. 2-axis hover
|
|
3
|
+
* signature now: paint (opacity R430) + geometry (stroke-width R435).
|
|
4
|
+
*
|
|
5
|
+
* Rest tiers:
|
|
6
|
+
* idle sw 1.00 / α 0.50
|
|
7
|
+
* active sw 2.25 / α 0.80
|
|
8
|
+
* Hover tiers (hoveredAlias === session.alias):
|
|
9
|
+
* idle sw 1.25 / α 0.70
|
|
10
|
+
* active sw 2.50 / α 0.95
|
|
11
|
+
*
|
|
12
|
+
* Contract:
|
|
13
|
+
* - rest: all idle spokes report data-topo-hub-spoke-stroke-width '1'
|
|
14
|
+
* - hover one node: exactly one spoke flips to hover with sw '1.25'
|
|
15
|
+
* AND opacity '0.7' (both R430+R435 axes lift together)
|
|
16
|
+
* - siblings stay rest sw '1' / opacity '0.5'
|
|
17
|
+
* - source-file probe confirms wired stroke-width conditional
|
|
18
|
+
*/
|
|
19
|
+
import { chromium } from 'playwright';
|
|
20
|
+
import { readFileSync } from 'node:fs';
|
|
21
|
+
|
|
22
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
23
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
24
|
+
|
|
25
|
+
const browser = await chromium.launch({ headless: true });
|
|
26
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
27
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
28
|
+
await ctx.addInitScript(() => {
|
|
29
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
30
|
+
});
|
|
31
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
32
|
+
const r = await route.fetch();
|
|
33
|
+
const b = await r.json();
|
|
34
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
35
|
+
const mk = (alias, status) => ({
|
|
36
|
+
alias, status, model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
37
|
+
network_id: nid, project_dir: null,
|
|
38
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
39
|
+
});
|
|
40
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
41
|
+
mk('alpha', 'working'),
|
|
42
|
+
mk('beta', 'idle'),
|
|
43
|
+
mk('gamma', 'idle'),
|
|
44
|
+
] } });
|
|
45
|
+
});
|
|
46
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
47
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
48
|
+
|
|
49
|
+
const page = await ctx.newPage();
|
|
50
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
51
|
+
await page.waitForSelector('[data-topo-hub-spoke-active]', { timeout: 15000 });
|
|
52
|
+
await page.waitForTimeout(400);
|
|
53
|
+
|
|
54
|
+
const readAll = () => page.evaluate(() => {
|
|
55
|
+
const paths = [...document.querySelectorAll('[data-topo-hub-spoke-active]')];
|
|
56
|
+
return paths.map((p, i) => ({
|
|
57
|
+
idx: i,
|
|
58
|
+
active: p.getAttribute('data-topo-hub-spoke-active'),
|
|
59
|
+
hovered: p.getAttribute('data-topo-hub-spoke-hovered'),
|
|
60
|
+
opacity: p.getAttribute('data-topo-hub-spoke-opacity'),
|
|
61
|
+
sw: p.getAttribute('data-topo-hub-spoke-stroke-width'),
|
|
62
|
+
sw_a: p.getAttribute('stroke-width'),
|
|
63
|
+
}));
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const rest = await readAll();
|
|
67
|
+
|
|
68
|
+
// Hover the first node's <g> group
|
|
69
|
+
const firstAlias = await page.evaluate(() => {
|
|
70
|
+
const t = document.querySelector('[data-node-alias-text]');
|
|
71
|
+
return t?.getAttribute('data-node-alias-text');
|
|
72
|
+
});
|
|
73
|
+
let hover = null;
|
|
74
|
+
if (firstAlias) {
|
|
75
|
+
const box = await page.evaluate((alias) => {
|
|
76
|
+
const t = document.querySelector(`[data-node-alias-text="${alias}"]`);
|
|
77
|
+
if (!t) return null;
|
|
78
|
+
const node = t.closest('[data-node]');
|
|
79
|
+
const target = node || t;
|
|
80
|
+
const b = target.getBoundingClientRect();
|
|
81
|
+
return { x: b.x + b.width / 2, y: b.y + b.height / 2 };
|
|
82
|
+
}, firstAlias);
|
|
83
|
+
if (box) {
|
|
84
|
+
await page.mouse.move(box.x, box.y);
|
|
85
|
+
await page.waitForTimeout(300);
|
|
86
|
+
hover = await readAll();
|
|
87
|
+
await page.mouse.move(0, 0);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const fileText = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
92
|
+
const sourceWired = /const spokeStrokeWidth = isActiveSpoke\s*\n\s*\?\s*\(isHoveredSpoke\s*\?\s*2\.5\s*:\s*2\.25\)\s*\n\s*:\s*\(isHoveredSpoke\s*\?\s*1\.25\s*:\s*1\)/.test(fileText);
|
|
93
|
+
|
|
94
|
+
await browser.close();
|
|
95
|
+
|
|
96
|
+
const restAllIdle = rest.length > 0 && rest.every(r => r.active === 'false');
|
|
97
|
+
const restAllSw1 = rest.every(r => r.sw === '1');
|
|
98
|
+
const restAllOpacity = rest.every(r => r.opacity === '0.5');
|
|
99
|
+
const restNoHover = rest.every(r => r.hovered === 'false');
|
|
100
|
+
const hoveredCount = hover ? hover.filter(s => s.hovered === 'true').length : -1;
|
|
101
|
+
const hoveredEntry = hover?.find(s => s.hovered === 'true');
|
|
102
|
+
const hoverSw_1_25 = hoveredEntry?.sw === '1.25';
|
|
103
|
+
const hoverOpacity_0_7 = hoveredEntry?.opacity === '0.7';
|
|
104
|
+
const othersRestSw = hover ? hover.filter(s => s.hovered === 'false').every(s => s.sw === '1') : false;
|
|
105
|
+
|
|
106
|
+
const results = {
|
|
107
|
+
rest_spoke_count_ge_3: rest.length >= 3,
|
|
108
|
+
rest_all_idle: restAllIdle,
|
|
109
|
+
rest_all_sw_1: restAllSw1,
|
|
110
|
+
rest_all_opacity_0_5: restAllOpacity,
|
|
111
|
+
rest_no_hover: restNoHover,
|
|
112
|
+
hover_exactly_one_match: hoveredCount === 1,
|
|
113
|
+
hover_target_sw_1_25: hoverSw_1_25,
|
|
114
|
+
hover_target_opacity_0_7: hoverOpacity_0_7, /* R430 parity */
|
|
115
|
+
hover_others_stay_sw_1: othersRestSw,
|
|
116
|
+
source_strokeWidth_3tier: sourceWired,
|
|
117
|
+
};
|
|
118
|
+
const ok = Object.values(results).every(Boolean);
|
|
119
|
+
console.log(`${ok ? '✅' : '❌'} hub-spoke hover sw (R435):`, JSON.stringify(results),
|
|
120
|
+
'\n hover target:', JSON.stringify(hoveredEntry));
|
|
121
|
+
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{G-QBT67axaIRmw0dasJKn → R-aU9zJxwHMwQ4zFYOHZD}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|