@sleep2agi/agent-network-dashboard 0.5.1-preview.74 → 0.5.1-preview.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +4 -4
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/admin.html +1 -1
- package/.next/server/app/admin.rsc +1 -1
- package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +2 -2
- package/.next/server/app/login.rsc +2 -2
- package/.next/server/app/login.segments/_full.segment.rsc +2 -2
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +1 -1
- package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/.next/server/app/logs.html +1 -1
- package/.next/server/app/logs.rsc +1 -1
- package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
- package/.next/server/app/messages.html +1 -1
- package/.next/server/app/messages.rsc +1 -1
- package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
- package/.next/server/app/node.html +1 -1
- package/.next/server/app/node.rsc +1 -1
- package/.next/server/app/node.segments/_full.segment.rsc +1 -1
- package/.next/server/app/node.segments/_head.segment.rsc +1 -1
- package/.next/server/app/node.segments/_index.segment.rsc +1 -1
- package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/node.segments/node.segment.rsc +1 -1
- package/.next/server/app/nodes.html +1 -1
- package/.next/server/app/nodes.rsc +1 -1
- package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs.html +1 -1
- package/.next/server/app/server-logs.rsc +1 -1
- package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
- package/.next/server/app/settings/networks.html +1 -1
- package/.next/server/app/settings/networks.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens.html +1 -1
- package/.next/server/app/settings/tokens.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings.html +2 -2
- package/.next/server/app/settings.rsc +2 -2
- package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
- package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/.next/server/app/tasks.html +1 -1
- package/.next/server/app/tasks.rsc +1 -1
- package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +2 -2
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/{0rlbsnd.3i9tb.js → 09nf8lytkoal0.js} +2 -2
- package/.next/static/chunks/{0tl7s9ol8vxbv.js → 0_v5hfvrdl_hp.js} +1 -1
- package/.next/static/chunks/{0bc3f9szg8nan.js → 14q1j54w_b86d.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +16 -6
- package/package.json +1 -1
- package/scripts/topo-chip-row-group-hover-brighten-test.mjs +107 -0
- /package/.next/static/{sVYp4gk_v1K_sryTNii7l → Bkp9rIIim6cChdv1GNvxW}/_buildManifest.js +0 -0
- /package/.next/static/{sVYp4gk_v1K_sryTNii7l → Bkp9rIIim6cChdv1GNvxW}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{sVYp4gk_v1K_sryTNii7l → Bkp9rIIim6cChdv1GNvxW}/_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.73"],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.74"],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.74"],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":368,"timestamp":153632067069,"id":4,"parentId":1,"tags":{},"startTime":1778961604313,"traceId":"81dbb853f175c45f"},{"name":"load-custom-routes","duration":580,"timestamp":153632067614,"id":5,"parentId":1,"tags":{},"startTime":1778961604314,"traceId":"81dbb853f175c45f"},{"name":"create-dist-dir","duration":682,"timestamp":153632068239,"id":6,"parentId":1,"tags":{},"startTime":1778961604315,"traceId":"81dbb853f175c45f"},{"name":"clean","duration":33094,"timestamp":153632069621,"id":7,"parentId":1,"tags":{},"startTime":1778961604316,"traceId":"81dbb853f175c45f"},{"name":"discover-routes","duration":24872,"timestamp":153632187726,"id":8,"parentId":1,"tags":{},"startTime":1778961604434,"traceId":"81dbb853f175c45f"},{"name":"create-root-mapping","duration":162,"timestamp":153632212673,"id":9,"parentId":1,"tags":{},"startTime":1778961604459,"traceId":"81dbb853f175c45f"},{"name":"generate-route-types","duration":20193,"timestamp":153632216187,"id":10,"parentId":1,"tags":{},"startTime":1778961604462,"traceId":"81dbb853f175c45f"},{"name":"public-dir-conflict-check","duration":126,"timestamp":153632236491,"id":11,"parentId":1,"tags":{},"startTime":1778961604483,"traceId":"81dbb853f175c45f"},{"name":"generate-routes-manifest","duration":6058,"timestamp":153632236822,"id":12,"parentId":1,"tags":{},"startTime":1778961604483,"traceId":"81dbb853f175c45f"},{"name":"run-turbopack","duration":6271647,"timestamp":153632248879,"id":14,"parentId":1,"tags":{},"startTime":1778961604495,"traceId":"81dbb853f175c45f"},{"name":"turbopack-build-events","duration":78,"timestamp":153632546886,"id":15,"parentId":1,"tags":{},"startTime":1778961604793,"traceId":"81dbb853f175c45f"},{"name":"run-typescript","duration":9638868,"timestamp":153638534243,"id":16,"parentId":1,"tags":{},"startTime":1778961610781,"traceId":"81dbb853f175c45f"},{"name":"generate-required-server-files","duration":2221,"timestamp":153648174180,"id":18,"parentId":1,"tags":{},"startTime":1778961620420,"traceId":"81dbb853f175c45f"},{"name":"check-static-error-page","duration":13831,"timestamp":153648352301,"id":20,"parentId":19,"tags":{},"startTime":1778961620599,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":447694,"timestamp":153648369416,"id":65,"parentId":22,"tags":{},"startTime":1778961620616,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":468049,"timestamp":153648354981,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778961620601,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":541389,"timestamp":153648369985,"id":69,"parentId":28,"tags":{},"startTime":1778961620616,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":554438,"timestamp":153648358670,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778961620605,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":567071,"timestamp":153648370582,"id":72,"parentId":32,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":578250,"timestamp":153648359498,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778961620606,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":575410,"timestamp":153648370511,"id":71,"parentId":30,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":586971,"timestamp":153648359059,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778961620605,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":582199,"timestamp":153648369101,"id":64,"parentId":21,"tags":{},"startTime":1778961620615,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":597657,"timestamp":153648353825,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778961620600,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":589725,"timestamp":153648370862,"id":73,"parentId":33,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":601006,"timestamp":153648359656,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778961620606,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":593593,"timestamp":153648371030,"id":76,"parentId":36,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":604217,"timestamp":153648360472,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778961620607,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":598532,"timestamp":153648371066,"id":77,"parentId":37,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":608992,"timestamp":153648360656,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778961620607,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":604478,"timestamp":153648371087,"id":78,"parentId":38,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":614813,"timestamp":153648360812,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778961620607,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":609872,"timestamp":153648371103,"id":79,"parentId":39,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":620150,"timestamp":153648360887,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778961620607,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":610229,"timestamp":153648370958,"id":74,"parentId":34,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":621409,"timestamp":153648359805,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778961620606,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":612923,"timestamp":153648371120,"id":80,"parentId":40,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":623156,"timestamp":153648360960,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778961620607,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":616662,"timestamp":153648369850,"id":68,"parentId":27,"tags":{},"startTime":1778961620616,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":628283,"timestamp":153648358274,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778961620605,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":617666,"timestamp":153648371150,"id":82,"parentId":44,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":627298,"timestamp":153648361559,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778961620608,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":622022,"timestamp":153648371167,"id":83,"parentId":45,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":631579,"timestamp":153648361650,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778961620608,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":622813,"timestamp":153648371183,"id":84,"parentId":46,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":632376,"timestamp":153648361718,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778961620608,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":627905,"timestamp":153648371214,"id":86,"parentId":48,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":637292,"timestamp":153648361890,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778961620608,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":633221,"timestamp":153648371230,"id":87,"parentId":49,"tags":{},"startTime":1778961620618,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":640895,"timestamp":153648363610,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778961620610,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":636594,"timestamp":153648371246,"id":88,"parentId":50,"tags":{},"startTime":1778961620618,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":644176,"timestamp":153648363705,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778961620610,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":640365,"timestamp":153648371137,"id":81,"parentId":42,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":650314,"timestamp":153648361262,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778961620608,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":642259,"timestamp":153648369687,"id":67,"parentId":26,"tags":{},"startTime":1778961620616,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":653859,"timestamp":153648358136,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778961620604,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":646990,"timestamp":153648371201,"id":85,"parentId":47,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":656422,"timestamp":153648361814,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778961620608,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":642326,"timestamp":153648376155,"id":91,"parentId":31,"tags":{},"startTime":1778961620622,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":659320,"timestamp":153648359197,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778961620605,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":644518,"timestamp":153648374973,"id":90,"parentId":24,"tags":{},"startTime":1778961620621,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":664106,"timestamp":153648355434,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778961620602,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":652694,"timestamp":153648371258,"id":89,"parentId":51,"tags":{},"startTime":1778961620618,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":660238,"timestamp":153648363778,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778961620610,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":658697,"timestamp":153648369566,"id":66,"parentId":25,"tags":{},"startTime":1778961620616,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":670383,"timestamp":153648357923,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778961620604,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":660952,"timestamp":153648370321,"id":70,"parentId":29,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":672455,"timestamp":153648358860,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778961620605,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":658217,"timestamp":153648377027,"id":92,"parentId":41,"tags":{},"startTime":1778961620623,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":674239,"timestamp":153648361050,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778961620607,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":674943,"timestamp":153648378326,"id":93,"parentId":43,"tags":{},"startTime":1778961620625,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":692093,"timestamp":153648361366,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778961620608,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":700002,"timestamp":153648370991,"id":75,"parentId":35,"tags":{},"startTime":1778961620617,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":711149,"timestamp":153648359946,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778961620606,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":701071,"timestamp":153648383999,"id":100,"parentId":58,"tags":{},"startTime":1778961620630,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":719987,"timestamp":153648365160,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778961620611,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":707675,"timestamp":153648383929,"id":95,"parentId":52,"tags":{},"startTime":1778961620630,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":727593,"timestamp":153648364078,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778961620610,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":708756,"timestamp":153648384134,"id":101,"parentId":59,"tags":{},"startTime":1778961620630,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":727658,"timestamp":153648365315,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778961620612,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":711003,"timestamp":153648383899,"id":94,"parentId":23,"tags":{},"startTime":1778961620630,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":741841,"timestamp":153648355239,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778961620602,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":715470,"timestamp":153648384157,"id":102,"parentId":61,"tags":{},"startTime":1778961620630,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":733957,"timestamp":153648365725,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778961620612,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":714532,"timestamp":153648395664,"id":105,"parentId":60,"tags":{},"startTime":1778961620642,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":744835,"timestamp":153648365440,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778961620612,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":726752,"timestamp":153648384172,"id":103,"parentId":62,"tags":{},"startTime":1778961620630,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":745129,"timestamp":153648365842,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778961620612,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":727889,"timestamp":153648384184,"id":104,"parentId":63,"tags":{},"startTime":1778961620630,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":746174,"timestamp":153648365943,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778961620612,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":728240,"timestamp":153648383970,"id":98,"parentId":55,"tags":{},"startTime":1778961620630,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":747804,"timestamp":153648364434,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778961620611,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":693075,"timestamp":153648423549,"id":106,"parentId":57,"tags":{},"startTime":1778961620670,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":751908,"timestamp":153648364752,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778961620611,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":749374,"timestamp":153648383956,"id":97,"parentId":54,"tags":{},"startTime":1778961620630,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":769089,"timestamp":153648364295,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778961620611,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":749508,"timestamp":153648383985,"id":99,"parentId":56,"tags":{},"startTime":1778961620630,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":768950,"timestamp":153648364575,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778961620611,"traceId":"81dbb853f175c45f"},{"name":"is-page-static","duration":749664,"timestamp":153648383945,"id":96,"parentId":53,"tags":{},"startTime":1778961620630,"traceId":"81dbb853f175c45f"},{"name":"check-page","duration":769448,"timestamp":153648364188,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778961620610,"traceId":"81dbb853f175c45f"},{"name":"static-check","duration":782612,"timestamp":153648351092,"id":19,"parentId":1,"tags":{},"startTime":1778961620597,"traceId":"81dbb853f175c45f"}]
|
|
2
|
-
[{"name":"write-routes-manifest","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":282,"timestamp":154027310210,"id":4,"parentId":1,"tags":{},"startTime":1778961999556,"traceId":"1b41b9eb05b85e87"},{"name":"load-custom-routes","duration":512,"timestamp":154027310635,"id":5,"parentId":1,"tags":{},"startTime":1778961999557,"traceId":"1b41b9eb05b85e87"},{"name":"create-dist-dir","duration":701,"timestamp":154027311190,"id":6,"parentId":1,"tags":{},"startTime":1778961999557,"traceId":"1b41b9eb05b85e87"},{"name":"clean","duration":32810,"timestamp":154027312613,"id":7,"parentId":1,"tags":{},"startTime":1778961999559,"traceId":"1b41b9eb05b85e87"},{"name":"discover-routes","duration":10669,"timestamp":154027434401,"id":8,"parentId":1,"tags":{},"startTime":1778961999681,"traceId":"1b41b9eb05b85e87"},{"name":"create-root-mapping","duration":138,"timestamp":154027445156,"id":9,"parentId":1,"tags":{},"startTime":1778961999691,"traceId":"1b41b9eb05b85e87"},{"name":"generate-route-types","duration":25157,"timestamp":154027447963,"id":10,"parentId":1,"tags":{},"startTime":1778961999694,"traceId":"1b41b9eb05b85e87"},{"name":"public-dir-conflict-check","duration":99,"timestamp":154027473229,"id":11,"parentId":1,"tags":{},"startTime":1778961999720,"traceId":"1b41b9eb05b85e87"},{"name":"generate-routes-manifest","duration":5920,"timestamp":154027473447,"id":12,"parentId":1,"tags":{},"startTime":1778961999720,"traceId":"1b41b9eb05b85e87"},{"name":"run-turbopack","duration":5661020,"timestamp":154027499564,"id":14,"parentId":1,"tags":{},"startTime":1778961999746,"traceId":"1b41b9eb05b85e87"},{"name":"turbopack-build-events","duration":72,"timestamp":154027788854,"id":15,"parentId":1,"tags":{},"startTime":1778962000035,"traceId":"1b41b9eb05b85e87"},{"name":"run-typescript","duration":9386957,"timestamp":154033169233,"id":16,"parentId":1,"tags":{},"startTime":1778962005416,"traceId":"1b41b9eb05b85e87"},{"name":"generate-required-server-files","duration":3672,"timestamp":154042557837,"id":18,"parentId":1,"tags":{},"startTime":1778962014804,"traceId":"1b41b9eb05b85e87"},{"name":"check-static-error-page","duration":13701,"timestamp":154042728508,"id":20,"parentId":19,"tags":{},"startTime":1778962014975,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":464847,"timestamp":154042745411,"id":65,"parentId":22,"tags":{},"startTime":1778962014992,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":478708,"timestamp":154042731723,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778962014978,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":526919,"timestamp":154042745110,"id":64,"parentId":21,"tags":{},"startTime":1778962014991,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":541995,"timestamp":154042730123,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778962014976,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":558871,"timestamp":154042745580,"id":67,"parentId":26,"tags":{},"startTime":1778962014992,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":569583,"timestamp":154042734953,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778962014981,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":558587,"timestamp":154042746444,"id":69,"parentId":28,"tags":{},"startTime":1778962014993,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":569939,"timestamp":154042735151,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778962014981,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":564008,"timestamp":154042746767,"id":70,"parentId":29,"tags":{},"startTime":1778962014993,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":575619,"timestamp":154042735226,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778962014981,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":565418,"timestamp":154042745653,"id":68,"parentId":27,"tags":{},"startTime":1778962014992,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":576064,"timestamp":154042735058,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778962014981,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":572656,"timestamp":154042745505,"id":66,"parentId":25,"tags":{},"startTime":1778962014992,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":583410,"timestamp":154042734816,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778962014981,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":576707,"timestamp":154042746923,"id":71,"parentId":30,"tags":{},"startTime":1778962014993,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":588326,"timestamp":154042735354,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778962014982,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":587232,"timestamp":154042747266,"id":74,"parentId":34,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":598706,"timestamp":154042735854,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778962014982,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":592311,"timestamp":154042747298,"id":75,"parentId":35,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":603720,"timestamp":154042735937,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778962014982,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":600011,"timestamp":154042747178,"id":73,"parentId":33,"tags":{},"startTime":1778962014993,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":611451,"timestamp":154042735782,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778962014982,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":606734,"timestamp":154042747367,"id":78,"parentId":38,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":617654,"timestamp":154042736494,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778962014983,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":612581,"timestamp":154042747390,"id":80,"parentId":40,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":623450,"timestamp":154042736622,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778962014983,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":616863,"timestamp":154042746983,"id":72,"parentId":32,"tags":{},"startTime":1778962014993,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":628207,"timestamp":154042735680,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778962014982,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":618003,"timestamp":154042747349,"id":77,"parentId":37,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":628987,"timestamp":154042736404,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778962014983,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":622825,"timestamp":154042747315,"id":76,"parentId":36,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":633901,"timestamp":154042736281,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778962014983,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":622880,"timestamp":154042747440,"id":84,"parentId":46,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":633020,"timestamp":154042737347,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778962014984,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":623586,"timestamp":154042747454,"id":85,"parentId":47,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":633661,"timestamp":154042737419,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778962014984,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":624303,"timestamp":154042747377,"id":79,"parentId":39,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":635164,"timestamp":154042736559,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778962014983,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":632737,"timestamp":154042747477,"id":87,"parentId":49,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":641225,"timestamp":154042739057,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778962014985,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":627933,"timestamp":154042752585,"id":90,"parentId":24,"tags":{},"startTime":1778962014999,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":648296,"timestamp":154042732271,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778962014979,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":633292,"timestamp":154042747491,"id":88,"parentId":50,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":641692,"timestamp":154042739141,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778962014985,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":635377,"timestamp":154042747464,"id":86,"parentId":48,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":644000,"timestamp":154042738885,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778962014985,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":638218,"timestamp":154042747404,"id":81,"parentId":42,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":648835,"timestamp":154042736878,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778962014983,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":631783,"timestamp":154042754165,"id":91,"parentId":31,"tags":{},"startTime":1778962015000,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":650519,"timestamp":154042735465,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778962014982,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":626886,"timestamp":154042759285,"id":93,"parentId":43,"tags":{},"startTime":1778962015006,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":649239,"timestamp":154042736967,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778962014983,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":639674,"timestamp":154042747417,"id":82,"parentId":44,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":649934,"timestamp":154042737197,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778962014983,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":640136,"timestamp":154042747504,"id":89,"parentId":51,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":648484,"timestamp":154042739196,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778962014985,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":643622,"timestamp":154042747426,"id":83,"parentId":45,"tags":{},"startTime":1778962014994,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":653802,"timestamp":154042737285,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778962014984,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":638214,"timestamp":154042755054,"id":92,"parentId":41,"tags":{},"startTime":1778962015001,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":656630,"timestamp":154042736679,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778962014983,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":631096,"timestamp":154042762350,"id":95,"parentId":52,"tags":{},"startTime":1778962015009,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":654003,"timestamp":154042739473,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778962014986,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":638560,"timestamp":154042762554,"id":101,"parentId":59,"tags":{},"startTime":1778962015009,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":660018,"timestamp":154042741142,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778962014987,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":646932,"timestamp":154042762578,"id":102,"parentId":61,"tags":{},"startTime":1778962015009,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":667873,"timestamp":154042741699,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778962014988,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":662710,"timestamp":154042762594,"id":103,"parentId":62,"tags":{},"startTime":1778962015009,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":683512,"timestamp":154042741844,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778962014988,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":668268,"timestamp":154042762612,"id":104,"parentId":63,"tags":{},"startTime":1778962015009,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":688949,"timestamp":154042741984,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778962014988,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":663387,"timestamp":154042774739,"id":105,"parentId":60,"tags":{},"startTime":1778962015021,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":696858,"timestamp":154042741321,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778962014988,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":681069,"timestamp":154042762319,"id":94,"parentId":23,"tags":{},"startTime":1778962015009,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":711399,"timestamp":154042732032,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778962014978,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":661159,"timestamp":154042785729,"id":106,"parentId":57,"tags":{},"startTime":1778962015032,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":706604,"timestamp":154042740318,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778962014987,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":686995,"timestamp":154042762383,"id":97,"parentId":54,"tags":{},"startTime":1778962015009,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":709724,"timestamp":154042739694,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778962014986,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":689520,"timestamp":154042762395,"id":98,"parentId":55,"tags":{},"startTime":1778962015009,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":712124,"timestamp":154042739835,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778962014986,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":689652,"timestamp":154042762412,"id":99,"parentId":56,"tags":{},"startTime":1778962015009,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":712027,"timestamp":154042740066,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778962014986,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":691858,"timestamp":154042762427,"id":100,"parentId":58,"tags":{},"startTime":1778962015009,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":713398,"timestamp":154042740925,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778962014987,"traceId":"1b41b9eb05b85e87"},{"name":"is-page-static","duration":692774,"timestamp":154042762367,"id":96,"parentId":53,"tags":{},"startTime":1778962015009,"traceId":"1b41b9eb05b85e87"},{"name":"check-page","duration":715576,"timestamp":154042739589,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778962014986,"traceId":"1b41b9eb05b85e87"},{"name":"static-check","duration":727802,"timestamp":154042727397,"id":19,"parentId":1,"tags":{},"startTime":1778962014974,"traceId":"1b41b9eb05b85e87"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":568,"timestamp":154043465638,"id":108,"parentId":1,"tags":{},"startTime":1778962015712,"traceId":"1b41b9eb05b85e87"},{"name":"load-dotenv","duration":108,"timestamp":154043479957,"id":111,"parentId":110,"tags":{},"startTime":1778962015726,"traceId":"1b41b9eb05b85e87"},{"name":"run-export-path-map","duration":523,"timestamp":154043482863,"id":112,"parentId":110,"tags":{},"startTime":1778962015729,"traceId":"1b41b9eb05b85e87"},{"name":"next-export","duration":564175,"timestamp":154043478144,"id":110,"parentId":1,"tags":{},"startTime":1778962015724,"traceId":"1b41b9eb05b85e87"},{"name":"move-exported-app-not-found-","duration":576,"timestamp":154044045525,"id":113,"parentId":109,"tags":{},"startTime":1778962016292,"traceId":"1b41b9eb05b85e87"},{"name":"move-exported-app-global-error-","duration":334,"timestamp":154044046194,"id":114,"parentId":109,"tags":{},"startTime":1778962016292,"traceId":"1b41b9eb05b85e87"},{"name":"static-generation","duration":577150,"timestamp":154043471078,"id":109,"parentId":1,"tags":{},"startTime":1778962015717,"traceId":"1b41b9eb05b85e87"},{"name":"write-routes-manifest","duration":368,"timestamp":154044048461,"id":115,"parentId":1,"tags":{},"startTime":1778962016295,"traceId":"1b41b9eb05b85e87"},{"name":"print-tree-view","duration":5626,"timestamp":154044066365,"id":116,"parentId":1,"tags":{},"startTime":1778962016313,"traceId":"1b41b9eb05b85e87"},{"name":"write-route-bundle-stats","duration":13463,"timestamp":154044072056,"id":117,"parentId":1,"tags":{},"startTime":1778962016318,"traceId":"1b41b9eb05b85e87"},{"name":"telemetry-flush","duration":17014,"timestamp":154044085558,"id":118,"parentId":1,"tags":{},"startTime":1778962016332,"traceId":"1b41b9eb05b85e87"},{"name":"next-build","duration":16844117,"timestamp":154027258492,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778961999505,"traceId":"1b41b9eb05b85e87"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":5661020,"timestamp":154027499564,"id":14,"parentId":1,"tags":{},"startTime":1778961999746,"traceId":"1b41b9eb05b85e87"},{"name":"turbopack-build-events","duration":72,"timestamp":154027788854,"id":15,"parentId":1,"tags":{},"startTime":1778962000035,"traceId":"1b41b9eb05b85e87"},{"name":"run-typescript","duration":9386957,"timestamp":154033169233,"id":16,"parentId":1,"tags":{},"startTime":1778962005416,"traceId":"1b41b9eb05b85e87"},{"name":"static-check","duration":727802,"timestamp":154042727397,"id":19,"parentId":1,"tags":{},"startTime":1778962014974,"traceId":"1b41b9eb05b85e87"},{"name":"static-generation","duration":577150,"timestamp":154043471078,"id":109,"parentId":1,"tags":{},"startTime":1778962015717,"traceId":"1b41b9eb05b85e87"},{"name":"telemetry-flush","duration":17014,"timestamp":154044085558,"id":118,"parentId":1,"tags":{},"startTime":1778962016332,"traceId":"1b41b9eb05b85e87"},{"name":"next-build","duration":16844117,"timestamp":154027258492,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778961999505,"traceId":"1b41b9eb05b85e87"}]
|
|
@@ -2066,12 +2066,18 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2066
2066
|
conflict (R180 inset double-ring is a box-shadow
|
|
2067
2067
|
not a transform). new data-chip-hover-lift attr
|
|
2068
2068
|
surfaces the lift surface for tests. */
|
|
2069
|
-
|
|
2069
|
+
// R414: chip-row chips gain `group` so inner unit
|
|
2070
|
+
// span brightens via group-hover:opacity-100 — sibling
|
|
2071
|
+
// to R355 filter pin pill inner-span hover-brighten.
|
|
2072
|
+
// Hover-brighten family extends from filter pills to
|
|
2073
|
+
// chip-row chips at the inner-span scope.
|
|
2074
|
+
className={`group tabular-nums font-medium px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-colors transition-transform duration-200 ease-out transform-gpu ${
|
|
2070
2075
|
workingCount > 0
|
|
2071
2076
|
? 'bg-green-500/10 text-green-300 border-green-500/20 hover:bg-green-500/15 hover:border-green-500/30 hover:-translate-y-px'
|
|
2072
2077
|
: 'bg-green-500/10 text-green-300 border-green-500/20'
|
|
2073
2078
|
}`}
|
|
2074
2079
|
data-chip-hover-lift={workingCount > 0 ? 'true' : 'false'}
|
|
2080
|
+
data-chip-group-hover-brighten="true"
|
|
2075
2081
|
data-working-chip
|
|
2076
2082
|
data-working-chip-aliases={workingAliases.join(',')}
|
|
2077
2083
|
data-pin-mirror={pinnedStatus === 'working' ? 'true' : 'false'}
|
|
@@ -2151,7 +2157,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2151
2157
|
at the chip-count scope. Sibling edits on the
|
|
2152
2158
|
online + active-links chip digits below. data-
|
|
2153
2159
|
working-chip-digit attr exposes the digit span. */}
|
|
2154
|
-
<span className="font-semibold" data-working-chip-digit>{workingCount}</span><span className="opacity-70" data-working-chip-unit> working</span>
|
|
2160
|
+
<span className="font-semibold" data-working-chip-digit>{workingCount}</span><span className="opacity-70 transition-opacity duration-200 group-hover:opacity-100" data-working-chip-unit> working</span>
|
|
2155
2161
|
</span>
|
|
2156
2162
|
<span
|
|
2157
2163
|
// Round 201 / Loop: online chip — mirror of the working
|
|
@@ -2166,12 +2172,14 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2166
2172
|
(sibling treatment to working chip — same row,
|
|
2167
2173
|
same digit-jitter physics on count crossings). */
|
|
2168
2174
|
// R398: hover translate-y lift on clickable variant — see working chip above.
|
|
2169
|
-
|
|
2175
|
+
// R414: `group` parent + inner unit span group-hover-brighten — see working chip above.
|
|
2176
|
+
className={`group tabular-nums font-medium px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-colors transition-transform duration-200 ease-out transform-gpu ${
|
|
2170
2177
|
onlineNodes.length > 0
|
|
2171
2178
|
? 'bg-cyan-500/10 text-cyan-300 border-cyan-500/20 hover:bg-cyan-500/15 hover:border-cyan-500/30 hover:-translate-y-px'
|
|
2172
2179
|
: 'bg-cyan-500/10 text-cyan-300 border-cyan-500/20'
|
|
2173
2180
|
}`}
|
|
2174
2181
|
data-chip-hover-lift={onlineNodes.length > 0 ? 'true' : 'false'}
|
|
2182
|
+
data-chip-group-hover-brighten="true"
|
|
2175
2183
|
data-online-chip
|
|
2176
2184
|
data-online-chip-aliases={onlineAliases.join(',')}
|
|
2177
2185
|
data-pin-mirror={pinnedStatus === 'idle' ? 'true' : 'false'}
|
|
@@ -2217,7 +2225,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2217
2225
|
>
|
|
2218
2226
|
{/* R337 sibling — online chip unit demotion. */}
|
|
2219
2227
|
{/* R362 sibling — online-chip digit gains font-semibold. */}
|
|
2220
|
-
<span className="font-semibold" data-online-chip-digit>{onlineNodes.length}</span><span className="opacity-70" data-online-chip-unit> online</span>
|
|
2228
|
+
<span className="font-semibold" data-online-chip-digit>{onlineNodes.length}</span><span className="opacity-70 transition-opacity duration-200 group-hover:opacity-100" data-online-chip-unit> online</span>
|
|
2221
2229
|
</span>
|
|
2222
2230
|
</>
|
|
2223
2231
|
);
|
|
@@ -3208,12 +3216,14 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3208
3216
|
Every interactive chip in TopoGraph lifts on hover.
|
|
3209
3217
|
data-chip-hover-lift attr exposes the lift surface
|
|
3210
3218
|
state ('true' clickable, 'false' empty) for tests. */
|
|
3211
|
-
|
|
3219
|
+
// R414: `group` parent + inner unit span group-hover-brighten — see working chip above.
|
|
3220
|
+
className={`group tabular-nums font-medium hidden sm:inline px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-transform duration-200 ease-out transform-gpu ${
|
|
3212
3221
|
isInteractive
|
|
3213
3222
|
? 'bg-gray-500/10 text-gray-400 border-gray-500/20 hover:bg-cyan-500/10 hover:text-cyan-200 hover:border-cyan-500/30 hover:-translate-y-px'
|
|
3214
3223
|
: 'bg-gray-500/10 text-gray-400 border-gray-500/20'
|
|
3215
3224
|
}`}
|
|
3216
3225
|
data-chip-hover-lift={isInteractive ? 'true' : 'false'}
|
|
3226
|
+
data-chip-group-hover-brighten="true"
|
|
3217
3227
|
data-active-links-chip
|
|
3218
3228
|
data-active-links-flow-count={flowLinks.length}
|
|
3219
3229
|
data-active-links-clickable={isInteractive ? 'true' : 'false'}
|
|
@@ -3242,7 +3252,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3242
3252
|
chip-internal-hierarchy arc. data-active-links-
|
|
3243
3253
|
chip-unit exposes the unit span for tests. */}
|
|
3244
3254
|
{/* R362 sibling — active-links chip digit gains font-semibold. */}
|
|
3245
|
-
<span className="font-semibold" data-active-links-chip-digit>{flowLinks.length}</span><span className="opacity-70" data-active-links-chip-unit> active link{flowLinks.length === 1 ? '' : 's'}</span>
|
|
3255
|
+
<span className="font-semibold" data-active-links-chip-digit>{flowLinks.length}</span><span className="opacity-70 transition-opacity duration-200 group-hover:opacity-100" data-active-links-chip-unit> active link{flowLinks.length === 1 ? '' : 's'}</span>
|
|
3246
3256
|
{rel ? (() => {
|
|
3247
3257
|
// Round 161 / Loop: extend R160's recency-pip
|
|
3248
3258
|
// vocabulary up one scope — from per-flow row to
|
package/package.json
CHANGED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* Round 414 verification: chip-row chip unit spans gain group-hover-
|
|
2
|
+
* brighten — sibling to R355 filter pill inner-span hover-brighten.
|
|
3
|
+
* Chip-row 3 chips (working / online / active-links) get `group`
|
|
4
|
+
* parent + inner unit span `group-hover:opacity-100`.
|
|
5
|
+
*
|
|
6
|
+
* Contract:
|
|
7
|
+
* - 3 chips with data-chip-group-hover-brighten="true"
|
|
8
|
+
* - Each chip className includes `group`
|
|
9
|
+
* - Each chip's unit span (data-*-chip-unit) className includes:
|
|
10
|
+
* * opacity-70
|
|
11
|
+
* * transition-opacity
|
|
12
|
+
* * group-hover:opacity-100
|
|
13
|
+
* - Pre-R414 invariants preserved:
|
|
14
|
+
* * R398/R399 hover:-translate-y-px on clickable variant
|
|
15
|
+
* * R232 tabular-nums, font-medium
|
|
16
|
+
* * R266 anet-topo-chip-focus
|
|
17
|
+
*/
|
|
18
|
+
import { chromium } from 'playwright';
|
|
19
|
+
import { readFileSync } from 'node:fs';
|
|
20
|
+
|
|
21
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
22
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
23
|
+
|
|
24
|
+
const browser = await chromium.launch({ headless: true });
|
|
25
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
26
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
27
|
+
await ctx.addInitScript(() => {
|
|
28
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
29
|
+
});
|
|
30
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
31
|
+
const r = await route.fetch();
|
|
32
|
+
const b = await r.json();
|
|
33
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
34
|
+
const mk = (alias, status) => ({
|
|
35
|
+
alias, status, model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
36
|
+
network_id: nid, project_dir: null,
|
|
37
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
38
|
+
});
|
|
39
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
40
|
+
mk('alpha', 'working'),
|
|
41
|
+
mk('beta', 'idle'),
|
|
42
|
+
] } });
|
|
43
|
+
});
|
|
44
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({
|
|
45
|
+
json: { messages: [
|
|
46
|
+
{ id: 'm1', from_alias: 'alpha', to_alias: 'beta', content: 'ping', created_at: fresh, network_id: 'default' },
|
|
47
|
+
] },
|
|
48
|
+
}));
|
|
49
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
50
|
+
|
|
51
|
+
const page = await ctx.newPage();
|
|
52
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
53
|
+
await page.waitForSelector('[data-chip-group-hover-brighten="true"]', { timeout: 15000 });
|
|
54
|
+
await page.waitForTimeout(400);
|
|
55
|
+
|
|
56
|
+
const probe = await page.evaluate(() => {
|
|
57
|
+
const chips = Array.from(document.querySelectorAll('[data-chip-group-hover-brighten="true"]'));
|
|
58
|
+
const read = (chip) => {
|
|
59
|
+
const unit = chip.querySelector('[data-working-chip-unit], [data-online-chip-unit], [data-active-links-chip-unit]');
|
|
60
|
+
return {
|
|
61
|
+
chipClass: chip.className,
|
|
62
|
+
unitClass: unit?.className ?? null,
|
|
63
|
+
chipAttr: chip.getAttribute('data-working-chip') !== null ? 'working'
|
|
64
|
+
: chip.getAttribute('data-online-chip') !== null ? 'online'
|
|
65
|
+
: chip.getAttribute('data-active-links-chip') !== null ? 'active-links'
|
|
66
|
+
: 'unknown',
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
count: chips.length,
|
|
71
|
+
chips: chips.map(read),
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
await browser.close();
|
|
76
|
+
|
|
77
|
+
const wc = probe.chips.find((c) => c.chipAttr === 'working');
|
|
78
|
+
const oc = probe.chips.find((c) => c.chipAttr === 'online');
|
|
79
|
+
const ac = probe.chips.find((c) => c.chipAttr === 'active-links');
|
|
80
|
+
|
|
81
|
+
const results = {
|
|
82
|
+
// 3 chips mounted
|
|
83
|
+
three_chips: probe.count === 3,
|
|
84
|
+
// working chip
|
|
85
|
+
working_has_group: wc?.chipClass.includes('group') === true,
|
|
86
|
+
working_unit_brighten: wc?.unitClass?.includes('group-hover:opacity-100') === true,
|
|
87
|
+
working_unit_transition: wc?.unitClass?.includes('transition-opacity') === true,
|
|
88
|
+
working_unit_opacity_70: wc?.unitClass?.includes('opacity-70') === true,
|
|
89
|
+
// online chip
|
|
90
|
+
online_has_group: oc?.chipClass.includes('group') === true,
|
|
91
|
+
online_unit_brighten: oc?.unitClass?.includes('group-hover:opacity-100') === true,
|
|
92
|
+
online_unit_transition: oc?.unitClass?.includes('transition-opacity') === true,
|
|
93
|
+
// active-links chip
|
|
94
|
+
active_has_group: ac?.chipClass.includes('group') === true,
|
|
95
|
+
active_unit_brighten: ac?.unitClass?.includes('group-hover:opacity-100') === true,
|
|
96
|
+
active_unit_transition: ac?.unitClass?.includes('transition-opacity') === true,
|
|
97
|
+
// Pre-R414 invariants
|
|
98
|
+
working_chip_focus: wc?.chipClass.includes('anet-topo-chip-focus') === true,
|
|
99
|
+
online_tabular_nums: oc?.chipClass.includes('tabular-nums') === true,
|
|
100
|
+
active_font_medium: ac?.chipClass.includes('font-medium') === true,
|
|
101
|
+
};
|
|
102
|
+
const ok = Object.values(results).every(Boolean);
|
|
103
|
+
console.log(`${ok ? '✅' : '❌'} chip-row chip group-hover-brighten:`, JSON.stringify(results),
|
|
104
|
+
'\n working:', wc,
|
|
105
|
+
'\n online: ', oc,
|
|
106
|
+
'\n active: ', ac);
|
|
107
|
+
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{sVYp4gk_v1K_sryTNii7l → Bkp9rIIim6cChdv1GNvxW}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|