@sleep2agi/agent-network-dashboard 0.5.1-preview.13 → 0.5.1-preview.15
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/{1090s4vyw-jrc.js → 0mvhcqc3mpr4o.js} +1 -1
- package/.next/static/chunks/{0is7s1ik8dy24.js → 130iyp.vosnu3.js} +2 -2
- package/.next/static/chunks/{0yl__lz0pv5_7.js → 13i-p3vjlvsvq.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +50 -4
- package/package.json +1 -1
- package/scripts/topo-fullscreen-icon-hover-scale-test.mjs +91 -0
- package/scripts/topo-vendor-letter-hover-scale-test.mjs +129 -0
- /package/.next/static/{Fa8EZgmgYGwvcoaGKpSmo → CoEq5Ugcm3YcJCYZANWlX}/_buildManifest.js +0 -0
- /package/.next/static/{Fa8EZgmgYGwvcoaGKpSmo → CoEq5Ugcm3YcJCYZANWlX}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{Fa8EZgmgYGwvcoaGKpSmo → CoEq5Ugcm3YcJCYZANWlX}/_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.12"],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.14"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
|
package/.next/trace
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":285,"timestamp":133769142316,"id":4,"parentId":1,"tags":{},"startTime":1778941741389,"traceId":"cf3efa39db27adbd"},{"name":"load-custom-routes","duration":536,"timestamp":133769142762,"id":5,"parentId":1,"tags":{},"startTime":1778941741389,"traceId":"cf3efa39db27adbd"},{"name":"create-dist-dir","duration":682,"timestamp":133769143339,"id":6,"parentId":1,"tags":{},"startTime":1778941741390,"traceId":"cf3efa39db27adbd"},{"name":"clean","duration":38104,"timestamp":133769144716,"id":7,"parentId":1,"tags":{},"startTime":1778941741391,"traceId":"cf3efa39db27adbd"},{"name":"discover-routes","duration":9865,"timestamp":133769270861,"id":8,"parentId":1,"tags":{},"startTime":1778941741517,"traceId":"cf3efa39db27adbd"},{"name":"create-root-mapping","duration":114,"timestamp":133769280793,"id":9,"parentId":1,"tags":{},"startTime":1778941741527,"traceId":"cf3efa39db27adbd"},{"name":"generate-route-types","duration":36016,"timestamp":133769284065,"id":10,"parentId":1,"tags":{},"startTime":1778941741530,"traceId":"cf3efa39db27adbd"},{"name":"public-dir-conflict-check","duration":104,"timestamp":133769320184,"id":11,"parentId":1,"tags":{},"startTime":1778941741566,"traceId":"cf3efa39db27adbd"},{"name":"generate-routes-manifest","duration":4710,"timestamp":133769320407,"id":12,"parentId":1,"tags":{},"startTime":1778941741567,"traceId":"cf3efa39db27adbd"},{"name":"run-turbopack","duration":5848837,"timestamp":133769330549,"id":14,"parentId":1,"tags":{},"startTime":1778941741577,"traceId":"cf3efa39db27adbd"},{"name":"turbopack-build-events","duration":77,"timestamp":133769623335,"id":15,"parentId":1,"tags":{},"startTime":1778941741870,"traceId":"cf3efa39db27adbd"},{"name":"run-typescript","duration":9339084,"timestamp":133775188798,"id":16,"parentId":1,"tags":{},"startTime":1778941747435,"traceId":"cf3efa39db27adbd"},{"name":"generate-required-server-files","duration":3604,"timestamp":133784529528,"id":18,"parentId":1,"tags":{},"startTime":1778941756776,"traceId":"cf3efa39db27adbd"},{"name":"check-static-error-page","duration":13316,"timestamp":133784704634,"id":20,"parentId":19,"tags":{},"startTime":1778941756951,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":424185,"timestamp":133784722460,"id":65,"parentId":22,"tags":{},"startTime":1778941756969,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":439592,"timestamp":133784707244,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778941756954,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":548886,"timestamp":133784722859,"id":69,"parentId":28,"tags":{},"startTime":1778941756969,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":561285,"timestamp":133784710576,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778941756957,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":567540,"timestamp":133784723180,"id":70,"parentId":29,"tags":{},"startTime":1778941756969,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":580204,"timestamp":133784710675,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778941756957,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":568813,"timestamp":133784722640,"id":67,"parentId":26,"tags":{},"startTime":1778941756969,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":581106,"timestamp":133784710404,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778941756957,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":573222,"timestamp":133784722156,"id":64,"parentId":21,"tags":{},"startTime":1778941756968,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":589332,"timestamp":133784706103,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778941756952,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":574701,"timestamp":133784723757,"id":74,"parentId":34,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":587097,"timestamp":133784711414,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778941756958,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":597881,"timestamp":133784723455,"id":72,"parentId":32,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":610231,"timestamp":133784711178,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778941756957,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":598983,"timestamp":133784722725,"id":68,"parentId":27,"tags":{},"startTime":1778941756969,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":611280,"timestamp":133784710488,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778941756957,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":600792,"timestamp":133784723864,"id":76,"parentId":36,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":612630,"timestamp":133784712090,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778941756958,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":601355,"timestamp":133784723643,"id":73,"parentId":33,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":613779,"timestamp":133784711288,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778941756958,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":602987,"timestamp":133784723378,"id":71,"parentId":30,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":615609,"timestamp":133784710806,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778941756957,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":615300,"timestamp":133784723970,"id":81,"parentId":42,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":626574,"timestamp":133784712768,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778941756959,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":622322,"timestamp":133784723955,"id":80,"parentId":40,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":633831,"timestamp":133784712493,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778941756959,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":622518,"timestamp":133784723989,"id":82,"parentId":44,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":633442,"timestamp":133784713094,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778941756959,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":628290,"timestamp":133784723926,"id":78,"parentId":38,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":639907,"timestamp":133784712354,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778941756959,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":628377,"timestamp":133784724038,"id":83,"parentId":45,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":639265,"timestamp":133784713190,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778941756959,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":636684,"timestamp":133784724062,"id":84,"parentId":46,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":647569,"timestamp":133784713258,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778941756960,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":638471,"timestamp":133784723906,"id":77,"parentId":37,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":650184,"timestamp":133784712248,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778941756959,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":639020,"timestamp":133784724076,"id":85,"parentId":47,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":648527,"timestamp":133784714615,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778941756961,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":642038,"timestamp":133784724102,"id":87,"parentId":49,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":651277,"timestamp":133784714901,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778941756961,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":642783,"timestamp":133784724117,"id":88,"parentId":50,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":651949,"timestamp":133784714991,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778941756961,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":643010,"timestamp":133784724131,"id":89,"parentId":51,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":652080,"timestamp":133784715104,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778941756961,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":648462,"timestamp":133784723940,"id":79,"parentId":39,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":660025,"timestamp":133784712422,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778941756959,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":643461,"timestamp":133784729154,"id":91,"parentId":31,"tags":{},"startTime":1778941756975,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":661755,"timestamp":133784710892,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778941756957,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":650276,"timestamp":133784724087,"id":86,"parentId":48,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":659625,"timestamp":133784714778,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778941756961,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":646607,"timestamp":133784727914,"id":90,"parentId":24,"tags":{},"startTime":1778941756974,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":666906,"timestamp":133784707643,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778941756954,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":653028,"timestamp":133784722564,"id":66,"parentId":25,"tags":{},"startTime":1778941756969,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":665367,"timestamp":133784710266,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778941756957,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":646488,"timestamp":133784731388,"id":93,"parentId":43,"tags":{},"startTime":1778941756978,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":665045,"timestamp":133784712868,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778941756959,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":648051,"timestamp":133784730033,"id":92,"parentId":41,"tags":{},"startTime":1778941756976,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":665562,"timestamp":133784712559,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778941756959,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":688966,"timestamp":133784764149,"id":98,"parentId":55,"tags":{},"startTime":1778941757010,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":737438,"timestamp":133784715751,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778941756962,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":689316,"timestamp":133784764117,"id":96,"parentId":53,"tags":{},"startTime":1778941757010,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":737981,"timestamp":133784715496,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778941756962,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":689474,"timestamp":133784764164,"id":99,"parentId":56,"tags":{},"startTime":1778941757010,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":737775,"timestamp":133784715898,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778941756962,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":690034,"timestamp":133784764095,"id":95,"parentId":52,"tags":{},"startTime":1778941757010,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":738795,"timestamp":133784715392,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778941756962,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":690554,"timestamp":133784764039,"id":94,"parentId":23,"tags":{},"startTime":1778941757010,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":747176,"timestamp":133784707457,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778941756954,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":694060,"timestamp":133784764183,"id":100,"parentId":58,"tags":{},"startTime":1778941757010,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":741768,"timestamp":133784716519,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778941756963,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":696226,"timestamp":133784764351,"id":101,"parentId":59,"tags":{},"startTime":1778941757011,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":743782,"timestamp":133784716840,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778941756963,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":699727,"timestamp":133784764380,"id":102,"parentId":61,"tags":{},"startTime":1778941757011,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":746765,"timestamp":133784717509,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778941756964,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":700656,"timestamp":133784764441,"id":105,"parentId":57,"tags":{},"startTime":1778941757011,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":749037,"timestamp":133784716097,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778941756962,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":701525,"timestamp":133784764423,"id":104,"parentId":63,"tags":{},"startTime":1778941757011,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":748221,"timestamp":133784717765,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778941756964,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":698798,"timestamp":133784770419,"id":106,"parentId":60,"tags":{},"startTime":1778941757017,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":752201,"timestamp":133784717068,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778941756963,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":705346,"timestamp":133784764398,"id":103,"parentId":62,"tags":{},"startTime":1778941757011,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":752146,"timestamp":133784717635,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778941756964,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":752439,"timestamp":133784723795,"id":75,"parentId":35,"tags":{},"startTime":1778941756970,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":764733,"timestamp":133784711541,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778941756958,"traceId":"cf3efa39db27adbd"},{"name":"is-page-static","duration":739730,"timestamp":133784764136,"id":97,"parentId":54,"tags":{},"startTime":1778941757010,"traceId":"cf3efa39db27adbd"},{"name":"check-page","duration":788307,"timestamp":133784715602,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778941756962,"traceId":"cf3efa39db27adbd"},{"name":"static-check","duration":800353,"timestamp":133784703595,"id":19,"parentId":1,"tags":{},"startTime":1778941756950,"traceId":"cf3efa39db27adbd"}]
|
|
2
|
-
[{"name":"write-routes-manifest","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":327,"timestamp":134396732139,"id":4,"parentId":1,"tags":{},"startTime":1778942368978,"traceId":"7dc15f402b78b3c2"},{"name":"load-custom-routes","duration":602,"timestamp":134396732622,"id":5,"parentId":1,"tags":{},"startTime":1778942368979,"traceId":"7dc15f402b78b3c2"},{"name":"create-dist-dir","duration":774,"timestamp":134396733280,"id":6,"parentId":1,"tags":{},"startTime":1778942368980,"traceId":"7dc15f402b78b3c2"},{"name":"clean","duration":35235,"timestamp":134396734748,"id":7,"parentId":1,"tags":{},"startTime":1778942368981,"traceId":"7dc15f402b78b3c2"},{"name":"discover-routes","duration":16485,"timestamp":134396854535,"id":8,"parentId":1,"tags":{},"startTime":1778942369101,"traceId":"7dc15f402b78b3c2"},{"name":"create-root-mapping","duration":182,"timestamp":134396871104,"id":9,"parentId":1,"tags":{},"startTime":1778942369117,"traceId":"7dc15f402b78b3c2"},{"name":"generate-route-types","duration":36706,"timestamp":134396873850,"id":10,"parentId":1,"tags":{},"startTime":1778942369120,"traceId":"7dc15f402b78b3c2"},{"name":"public-dir-conflict-check","duration":100,"timestamp":134396910636,"id":11,"parentId":1,"tags":{},"startTime":1778942369157,"traceId":"7dc15f402b78b3c2"},{"name":"generate-routes-manifest","duration":4846,"timestamp":134396910848,"id":12,"parentId":1,"tags":{},"startTime":1778942369157,"traceId":"7dc15f402b78b3c2"},{"name":"run-turbopack","duration":6203170,"timestamp":134396920770,"id":14,"parentId":1,"tags":{},"startTime":1778942369167,"traceId":"7dc15f402b78b3c2"},{"name":"turbopack-build-events","duration":92,"timestamp":134397220211,"id":15,"parentId":1,"tags":{},"startTime":1778942369466,"traceId":"7dc15f402b78b3c2"},{"name":"run-typescript","duration":9827858,"timestamp":134403143507,"id":16,"parentId":1,"tags":{},"startTime":1778942375390,"traceId":"7dc15f402b78b3c2"},{"name":"generate-required-server-files","duration":2700,"timestamp":134412972660,"id":18,"parentId":1,"tags":{},"startTime":1778942385219,"traceId":"7dc15f402b78b3c2"},{"name":"check-static-error-page","duration":12636,"timestamp":134413137124,"id":20,"parentId":19,"tags":{},"startTime":1778942385383,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":484171,"timestamp":134413153149,"id":65,"parentId":22,"tags":{},"startTime":1778942385399,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":497965,"timestamp":134413139522,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778942385386,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":554555,"timestamp":134413153633,"id":69,"parentId":28,"tags":{},"startTime":1778942385400,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":566011,"timestamp":134413142310,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778942385389,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":557929,"timestamp":134413153936,"id":70,"parentId":29,"tags":{},"startTime":1778942385400,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":569546,"timestamp":134413142398,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778942385389,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":562927,"timestamp":134413154423,"id":73,"parentId":33,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":574213,"timestamp":134413143205,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778942385389,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":567771,"timestamp":134413154210,"id":72,"parentId":32,"tags":{},"startTime":1778942385400,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":579020,"timestamp":134413143045,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778942385389,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":583752,"timestamp":134413154541,"id":75,"parentId":35,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":594878,"timestamp":134413143493,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778942385390,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":589239,"timestamp":134413154132,"id":71,"parentId":30,"tags":{},"startTime":1778942385400,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":600873,"timestamp":134413142568,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778942385389,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":604205,"timestamp":134413154568,"id":76,"parentId":36,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":614854,"timestamp":134413143980,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778942385390,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":608672,"timestamp":134413152766,"id":64,"parentId":21,"tags":{},"startTime":1778942385399,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":623182,"timestamp":134413138329,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778942385385,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":611600,"timestamp":134413154618,"id":78,"parentId":38,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":621912,"timestamp":134413144376,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778942385391,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":611940,"timestamp":134413154513,"id":74,"parentId":34,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":623126,"timestamp":134413143356,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778942385390,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":613212,"timestamp":134413153513,"id":68,"parentId":27,"tags":{},"startTime":1778942385400,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":624545,"timestamp":134413142212,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778942385388,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":612443,"timestamp":134413154602,"id":77,"parentId":37,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":622880,"timestamp":134413144212,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778942385390,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":613323,"timestamp":134413154650,"id":80,"parentId":40,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":623456,"timestamp":134413144574,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778942385391,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":618228,"timestamp":134413154711,"id":84,"parentId":46,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":627470,"timestamp":134413145511,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778942385392,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":618432,"timestamp":134413154693,"id":83,"parentId":45,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":627721,"timestamp":134413145437,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778942385392,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":622141,"timestamp":134413154723,"id":85,"parentId":47,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":629892,"timestamp":134413147029,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778942385393,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":624475,"timestamp":134413153399,"id":67,"parentId":26,"tags":{},"startTime":1778942385400,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":635799,"timestamp":134413142120,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778942385388,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":623871,"timestamp":134413154739,"id":86,"parentId":48,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":631497,"timestamp":134413147152,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778942385393,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":626427,"timestamp":134413154754,"id":87,"parentId":49,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":633962,"timestamp":134413147256,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778942385394,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":629616,"timestamp":134413154765,"id":88,"parentId":50,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":637103,"timestamp":134413147319,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778942385394,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":631941,"timestamp":134413154662,"id":81,"parentId":42,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":641727,"timestamp":134413144931,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778942385391,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":628238,"timestamp":134413158778,"id":90,"parentId":24,"tags":{},"startTime":1778942385405,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":647129,"timestamp":134413139927,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778942385386,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":633946,"timestamp":134413153281,"id":66,"parentId":25,"tags":{},"startTime":1778942385400,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":645317,"timestamp":134413141959,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778942385388,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":635249,"timestamp":134413160827,"id":92,"parentId":41,"tags":{},"startTime":1778942385407,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":651472,"timestamp":134413144666,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778942385391,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":633949,"timestamp":134413162364,"id":93,"parentId":43,"tags":{},"startTime":1778942385409,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":651257,"timestamp":134413145090,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778942385391,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":641676,"timestamp":134413154781,"id":89,"parentId":51,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":649110,"timestamp":134413147375,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778942385394,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":676666,"timestamp":134413154677,"id":82,"parentId":44,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":686085,"timestamp":134413145336,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778942385392,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":674892,"timestamp":134413159955,"id":91,"parentId":31,"tags":{},"startTime":1778942385406,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":692196,"timestamp":134413142724,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778942385389,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":703429,"timestamp":134413164736,"id":94,"parentId":23,"tags":{},"startTime":1778942385411,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":728512,"timestamp":134413139744,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778942385386,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":718072,"timestamp":134413154635,"id":79,"parentId":39,"tags":{},"startTime":1778942385401,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":728350,"timestamp":134413144474,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778942385391,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":711120,"timestamp":134413164847,"id":100,"parentId":58,"tags":{},"startTime":1778942385411,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":727281,"timestamp":134413148762,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778942385395,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":718715,"timestamp":134413164787,"id":96,"parentId":53,"tags":{},"startTime":1778942385411,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":735872,"timestamp":134413147774,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778942385394,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":719351,"timestamp":134413165038,"id":102,"parentId":61,"tags":{},"startTime":1778942385411,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":735061,"timestamp":134413149376,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778942385396,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":719678,"timestamp":134413164984,"id":101,"parentId":59,"tags":{},"startTime":1778942385411,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":735778,"timestamp":134413148920,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778942385395,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":725293,"timestamp":134413164799,"id":97,"parentId":54,"tags":{},"startTime":1778942385411,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":742253,"timestamp":134413147879,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778942385394,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":727853,"timestamp":134413165068,"id":104,"parentId":63,"tags":{},"startTime":1778942385411,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":743372,"timestamp":134413149587,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778942385396,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":717092,"timestamp":134413176292,"id":105,"parentId":60,"tags":{},"startTime":1778942385423,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":744368,"timestamp":134413149060,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778942385395,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":734024,"timestamp":134413164769,"id":95,"parentId":52,"tags":{},"startTime":1778942385411,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":751171,"timestamp":134413147669,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778942385394,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":734374,"timestamp":134413165056,"id":103,"parentId":62,"tags":{},"startTime":1778942385411,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":749995,"timestamp":134413149484,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778942385396,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":707928,"timestamp":134413191635,"id":106,"parentId":57,"tags":{},"startTime":1778942385438,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":751230,"timestamp":134413148357,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778942385395,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":744867,"timestamp":134413164831,"id":99,"parentId":56,"tags":{},"startTime":1778942385411,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":761564,"timestamp":134413148183,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778942385394,"traceId":"7dc15f402b78b3c2"},{"name":"is-page-static","duration":748266,"timestamp":134413164815,"id":98,"parentId":55,"tags":{},"startTime":1778942385411,"traceId":"7dc15f402b78b3c2"},{"name":"check-page","duration":765087,"timestamp":134413148033,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778942385394,"traceId":"7dc15f402b78b3c2"},{"name":"static-check","duration":776838,"timestamp":134413136320,"id":19,"parentId":1,"tags":{},"startTime":1778942385383,"traceId":"7dc15f402b78b3c2"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":510,"timestamp":134413922932,"id":108,"parentId":1,"tags":{},"startTime":1778942386169,"traceId":"7dc15f402b78b3c2"},{"name":"load-dotenv","duration":80,"timestamp":134413937217,"id":111,"parentId":110,"tags":{},"startTime":1778942386183,"traceId":"7dc15f402b78b3c2"},{"name":"run-export-path-map","duration":897,"timestamp":134413940546,"id":112,"parentId":110,"tags":{},"startTime":1778942386187,"traceId":"7dc15f402b78b3c2"},{"name":"next-export","duration":668737,"timestamp":134413935317,"id":110,"parentId":1,"tags":{},"startTime":1778942386182,"traceId":"7dc15f402b78b3c2"},{"name":"move-exported-app-not-found-","duration":512,"timestamp":134414607281,"id":113,"parentId":109,"tags":{},"startTime":1778942386854,"traceId":"7dc15f402b78b3c2"},{"name":"move-exported-app-global-error-","duration":487,"timestamp":134414607880,"id":114,"parentId":109,"tags":{},"startTime":1778942386854,"traceId":"7dc15f402b78b3c2"},{"name":"static-generation","duration":682535,"timestamp":134413927831,"id":109,"parentId":1,"tags":{},"startTime":1778942386174,"traceId":"7dc15f402b78b3c2"},{"name":"write-routes-manifest","duration":486,"timestamp":134414610618,"id":115,"parentId":1,"tags":{},"startTime":1778942386857,"traceId":"7dc15f402b78b3c2"},{"name":"print-tree-view","duration":3862,"timestamp":134414625644,"id":116,"parentId":1,"tags":{},"startTime":1778942386872,"traceId":"7dc15f402b78b3c2"},{"name":"write-route-bundle-stats","duration":13017,"timestamp":134414629542,"id":117,"parentId":1,"tags":{},"startTime":1778942386876,"traceId":"7dc15f402b78b3c2"},{"name":"telemetry-flush","duration":30596,"timestamp":134414642590,"id":118,"parentId":1,"tags":{},"startTime":1778942386889,"traceId":"7dc15f402b78b3c2"},{"name":"next-build","duration":17993271,"timestamp":134396679967,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778942368926,"traceId":"7dc15f402b78b3c2"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":6203170,"timestamp":134396920770,"id":14,"parentId":1,"tags":{},"startTime":1778942369167,"traceId":"7dc15f402b78b3c2"},{"name":"turbopack-build-events","duration":92,"timestamp":134397220211,"id":15,"parentId":1,"tags":{},"startTime":1778942369466,"traceId":"7dc15f402b78b3c2"},{"name":"run-typescript","duration":9827858,"timestamp":134403143507,"id":16,"parentId":1,"tags":{},"startTime":1778942375390,"traceId":"7dc15f402b78b3c2"},{"name":"static-check","duration":776838,"timestamp":134413136320,"id":19,"parentId":1,"tags":{},"startTime":1778942385383,"traceId":"7dc15f402b78b3c2"},{"name":"static-generation","duration":682535,"timestamp":134413927831,"id":109,"parentId":1,"tags":{},"startTime":1778942386174,"traceId":"7dc15f402b78b3c2"},{"name":"telemetry-flush","duration":30596,"timestamp":134414642590,"id":118,"parentId":1,"tags":{},"startTime":1778942386889,"traceId":"7dc15f402b78b3c2"},{"name":"next-build","duration":17993271,"timestamp":134396679967,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778942368926,"traceId":"7dc15f402b78b3c2"}]
|
|
@@ -2802,7 +2802,40 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2802
2802
|
}
|
|
2803
2803
|
}}
|
|
2804
2804
|
>
|
|
2805
|
-
|
|
2805
|
+
{/* Round 354 / Loop: vendor letter glyph scales
|
|
2806
|
+
1.0 → 1.1 on hover. R88 already dims OTHER
|
|
2807
|
+
vendors on hover via canvas-wide opacity
|
|
2808
|
+
masking; R202 added a chip-level bg tint
|
|
2809
|
+
(color-mix 12 % alpha) so the chip itself
|
|
2810
|
+
responds. R354 closes the trio with a glyph-
|
|
2811
|
+
level lift: the focused vendor LETTER actively
|
|
2812
|
+
rises (transform scale) rather than the chip
|
|
2813
|
+
merely changing colour. Three layers of positive
|
|
2814
|
+
feedback on the hovered vendor + canvas-wide
|
|
2815
|
+
negative feedback on the others — a clean
|
|
2816
|
+
figure/ground separation.
|
|
2817
|
+
|
|
2818
|
+
display: inline-block is required for transform
|
|
2819
|
+
to apply (inline elements ignore transform).
|
|
2820
|
+
transformOrigin: 'center' so the glyph pivots
|
|
2821
|
+
around its centre instead of arcing from the
|
|
2822
|
+
baseline anchor. transition rides the existing
|
|
2823
|
+
Tailwind 4 transform/scale list (no new
|
|
2824
|
+
property — Tailwind already lists transform in
|
|
2825
|
+
the default transition-property set). 200ms
|
|
2826
|
+
matches the R202 chip bg-tint timing so the
|
|
2827
|
+
glyph lift and chip background ease in concert. */}
|
|
2828
|
+
<span
|
|
2829
|
+
data-vendor-letter-glyph={v.initial}
|
|
2830
|
+
data-vendor-letter-glyph-hover={hoveredVendor === v.initial ? 'true' : 'false'}
|
|
2831
|
+
style={{
|
|
2832
|
+
color: v.color,
|
|
2833
|
+
display: 'inline-block',
|
|
2834
|
+
transform: hoveredVendor === v.initial ? 'scale(1.1)' : 'scale(1)',
|
|
2835
|
+
transformOrigin: 'center',
|
|
2836
|
+
transition: 'transform 200ms ease-out',
|
|
2837
|
+
}}
|
|
2838
|
+
>{v.initial}</span>
|
|
2806
2839
|
{/* Round 333 / Loop: vendor count suffix `:{N}` joins
|
|
2807
2840
|
the R317 subordinate-text-lift family (gray-500 →
|
|
2808
2841
|
gray-400) plus picks up tabular-nums for digit
|
|
@@ -8370,7 +8403,12 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
8370
8403
|
its inactive state benefits from the same "hover previews
|
|
8371
8404
|
active state" idiom R163 designed. Sibling treatment to
|
|
8372
8405
|
the nodeSize buttons at line ~6711. */
|
|
8373
|
-
|
|
8406
|
+
// R353: `group` lets the inner svg respond via group-hover —
|
|
8407
|
+
// sibling to R352 zoom buttons. Closes the chrome-strip per-
|
|
8408
|
+
// icon hover-affordance arc (zoom-out / zoom-in / reset /
|
|
8409
|
+
// fullscreen now all carry an icon-level hover gesture in
|
|
8410
|
+
// addition to the bg hover).
|
|
8411
|
+
className={`group p-1.5 rounded-md border transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 ${
|
|
8374
8412
|
isFullscreen
|
|
8375
8413
|
? 'bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25'
|
|
8376
8414
|
: 'hover:bg-cyan-500/5 active:bg-cyan-500/15'
|
|
@@ -8389,12 +8427,20 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
8389
8427
|
at the reset icon above. data-topo-chrome-fullscreen-
|
|
8390
8428
|
icon attribute exposes BOTH variants (entered / exited)
|
|
8391
8429
|
for the round's stroke-width regression probe. */}
|
|
8430
|
+
{/* Round 353 / Loop: fullscreen icon (both enter + exit
|
|
8431
|
+
variants) picks up the R352 family group-hover:scale-110.
|
|
8432
|
+
Pre-R353 hovering the button only changed the bg; the
|
|
8433
|
+
icon stayed still. R353 lifts the icon 10 % on hover —
|
|
8434
|
+
same gesture vocabulary as the zoom buttons. transform-
|
|
8435
|
+
gpu hint promotes the svg to its own compositor layer
|
|
8436
|
+
for crisper edges during the scale tween. Closes the
|
|
8437
|
+
chrome-strip per-icon hover-affordance arc. */}
|
|
8392
8438
|
{isFullscreen ? (
|
|
8393
|
-
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden data-topo-chrome-fullscreen-icon="exit">
|
|
8439
|
+
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden className="transition-transform duration-200 ease-out group-hover:scale-110 transform-gpu" data-topo-chrome-fullscreen-icon="exit">
|
|
8394
8440
|
<path d="M8 3v4a1 1 0 0 1-1 1H3M21 8h-4a1 1 0 0 1-1-1V3M3 16h4a1 1 0 0 1 1 1v4M16 21v-4a1 1 0 0 1 1-1h4" />
|
|
8395
8441
|
</svg>
|
|
8396
8442
|
) : (
|
|
8397
|
-
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden data-topo-chrome-fullscreen-icon="enter">
|
|
8443
|
+
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden className="transition-transform duration-200 ease-out group-hover:scale-110 transform-gpu" data-topo-chrome-fullscreen-icon="enter">
|
|
8398
8444
|
<path d="M3 8V5a2 2 0 0 1 2-2h3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M21 16v3a2 2 0 0 1-2 2h-3" />
|
|
8399
8445
|
</svg>
|
|
8400
8446
|
)}
|
package/package.json
CHANGED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* Round 353 verification: fullscreen icon (enter + exit variants)
|
|
2
|
+
* picks up group-hover:scale-110 — sibling to R352 zoom icons + R350
|
|
3
|
+
* reset hover-rotate. Closes the chrome-strip per-icon hover-
|
|
4
|
+
* affordance arc:
|
|
5
|
+
* zoom-out R352 scale 1 → 1.1
|
|
6
|
+
* zoom-in R352 scale 1 → 1.1
|
|
7
|
+
* reset R350 rotate 0 → -8°
|
|
8
|
+
* fullscreen R353 scale 1 → 1.1 (this round, both enter+exit svgs)
|
|
9
|
+
*
|
|
10
|
+
* Tailwind 4 compiles scale-110 to the modern CSS `scale` property
|
|
11
|
+
* (verified during R352 — getComputedStyle(el).scale carries the
|
|
12
|
+
* value, not transform).
|
|
13
|
+
*
|
|
14
|
+
* Contract (cyber, non-fullscreen):
|
|
15
|
+
* - Rest: enter-icon computed scale 'none' (no scale applied).
|
|
16
|
+
* - Hover button: enter-icon scale='1.1'.
|
|
17
|
+
* - Inline transition contains scale (or transform — Tailwind 4
|
|
18
|
+
* emits both transition-property entries on transition-transform).
|
|
19
|
+
* - Pre-R353 invariants: R288 strokeWidth=2.5 preserved, anet-
|
|
20
|
+
* chrome-pop class absent at rest, data-topo-chrome-fullscreen-
|
|
21
|
+
* icon="enter" attr intact.
|
|
22
|
+
*/
|
|
23
|
+
import { chromium } from 'playwright';
|
|
24
|
+
import { readFileSync } from 'node:fs';
|
|
25
|
+
|
|
26
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
27
|
+
const browser = await chromium.launch({ headless: true });
|
|
28
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
29
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
30
|
+
await ctx.addInitScript(() => {
|
|
31
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
32
|
+
});
|
|
33
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
34
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
35
|
+
const r = await route.fetch();
|
|
36
|
+
const b = await r.json();
|
|
37
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
38
|
+
const mk = (alias) => ({
|
|
39
|
+
alias, status: 'working', model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
40
|
+
network_id: nid, project_dir: null,
|
|
41
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
42
|
+
});
|
|
43
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [ mk('a'), mk('b'), mk('c') ] } });
|
|
44
|
+
});
|
|
45
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
46
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
47
|
+
|
|
48
|
+
const page = await ctx.newPage();
|
|
49
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
50
|
+
await page.waitForSelector('[data-topo-chrome-fullscreen-icon="enter"]', { timeout: 15000 });
|
|
51
|
+
await page.waitForTimeout(300);
|
|
52
|
+
|
|
53
|
+
const restProbe = await page.evaluate(() => {
|
|
54
|
+
const ico = document.querySelector('[data-topo-chrome-fullscreen-icon="enter"]');
|
|
55
|
+
const cs = ico ? getComputedStyle(ico) : null;
|
|
56
|
+
return {
|
|
57
|
+
scale: cs?.scale ?? null,
|
|
58
|
+
transition: cs?.transition ?? null,
|
|
59
|
+
strokeW: ico?.getAttribute('stroke-width') ?? null,
|
|
60
|
+
className: ico?.getAttribute('class') ?? null,
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// Hover the fullscreen button.
|
|
65
|
+
await page.hover('[data-topo-chrome-fullscreen]');
|
|
66
|
+
await page.waitForTimeout(300);
|
|
67
|
+
const hoverProbe = await page.evaluate(() => {
|
|
68
|
+
const ico = document.querySelector('[data-topo-chrome-fullscreen-icon="enter"]');
|
|
69
|
+
return { scale: ico ? getComputedStyle(ico).scale : null };
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
await browser.close();
|
|
73
|
+
|
|
74
|
+
const isRestScale = (s) => s === 'none' || s === '1' || s === '1 1' || s === null;
|
|
75
|
+
const isHoverScale110 = (s) => s === '1.1' || s === '1.1 1.1';
|
|
76
|
+
const hasTrans = (s, prop) =>
|
|
77
|
+
new RegExp(`${prop}\\s+\\d*\\.?\\d*s|${prop}\\s+\\d+ms`, 'i').test(s || '');
|
|
78
|
+
|
|
79
|
+
const results = {
|
|
80
|
+
rest_scale_1: isRestScale(restProbe.scale),
|
|
81
|
+
trans_has_scale: hasTrans(restProbe.transition, 'scale') || hasTrans(restProbe.transition, 'transform'),
|
|
82
|
+
strokew_2_5: restProbe.strokeW === '2.5', // R288
|
|
83
|
+
no_chrome_pop_rest: !/anet-chrome-pop/.test(restProbe.className || ''),
|
|
84
|
+
has_group_hover_cls: /group-hover:scale-110/.test(restProbe.className || ''),
|
|
85
|
+
hover_scale_110: isHoverScale110(hoverProbe.scale),
|
|
86
|
+
};
|
|
87
|
+
const ok = Object.values(results).every(Boolean);
|
|
88
|
+
console.log(`${ok ? '✅' : '❌'} fullscreen icon hover-scale:`, JSON.stringify(results),
|
|
89
|
+
'\n rest: ', restProbe,
|
|
90
|
+
'\n hover:', hoverProbe);
|
|
91
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* Round 354 verification: vendor letter glyph scales 1.0 → 1.1 on
|
|
2
|
+
* hover. R88 already dims OTHER vendors via canvas-wide opacity
|
|
3
|
+
* masking; R202 added a chip-level bg tint (color-mix 12 % alpha) so
|
|
4
|
+
* the chip itself responds. R354 closes the trio with a glyph-level
|
|
5
|
+
* lift: the focused vendor LETTER actively rises (transform scale)
|
|
6
|
+
* rather than the chip merely changing colour.
|
|
7
|
+
*
|
|
8
|
+
* Three layers of positive feedback on the hovered vendor + canvas-
|
|
9
|
+
* wide negative feedback on the others — a clean figure/ground
|
|
10
|
+
* separation.
|
|
11
|
+
*
|
|
12
|
+
* Contract (cyber, fixture with 3 distinct vendors so R281's > 2
|
|
13
|
+
* threshold mounts the chip):
|
|
14
|
+
* - Rest: vendor letter glyph transform === matrix(1, 0, 0, 1, 0, 0)
|
|
15
|
+
* (identity).
|
|
16
|
+
* - Hover one vendor chip: that glyph transform === matrix(1.1, 0,
|
|
17
|
+
* 0, 1.1, 0, 0).
|
|
18
|
+
* - data-vendor-letter-glyph-hover toggles false → true on
|
|
19
|
+
* hovered chip only; sibling glyphs stay 'false'.
|
|
20
|
+
* - Inline transition contains 'transform'.
|
|
21
|
+
* - Pre-R354 invariants: R202 bg color-mix on hover still applies,
|
|
22
|
+
* data-vendor-letter-count-suffix span (R333) still present.
|
|
23
|
+
*/
|
|
24
|
+
import { chromium } from 'playwright';
|
|
25
|
+
import { readFileSync } from 'node:fs';
|
|
26
|
+
|
|
27
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
28
|
+
const browser = await chromium.launch({ headless: true });
|
|
29
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
30
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
31
|
+
await ctx.addInitScript(() => {
|
|
32
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
33
|
+
});
|
|
34
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
35
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
36
|
+
const r = await route.fetch();
|
|
37
|
+
const b = await r.json();
|
|
38
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
39
|
+
// R281 vendor-dist threshold is > 2 distinct vendors — provide 3.
|
|
40
|
+
const mk = (alias, model) => ({
|
|
41
|
+
alias, status: 'working', model, runtime: 'claude-code-cli',
|
|
42
|
+
network_id: nid, project_dir: null,
|
|
43
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
44
|
+
});
|
|
45
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
46
|
+
mk('a1', 'claude-opus-4'),
|
|
47
|
+
mk('a2', 'claude-opus-4'),
|
|
48
|
+
mk('b1', 'gpt-4o'),
|
|
49
|
+
mk('b2', 'gpt-4o'),
|
|
50
|
+
mk('c1', 'internlm/internlm2'),
|
|
51
|
+
] } });
|
|
52
|
+
});
|
|
53
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
54
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
55
|
+
|
|
56
|
+
const page = await ctx.newPage();
|
|
57
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
58
|
+
await page.waitForSelector('[data-vendor-letter-glyph]', { timeout: 15000 });
|
|
59
|
+
await page.waitForTimeout(300);
|
|
60
|
+
|
|
61
|
+
// Read all vendor letters present.
|
|
62
|
+
const inventory = await page.evaluate(() => {
|
|
63
|
+
const glyphs = Array.from(document.querySelectorAll('[data-vendor-letter-glyph]'));
|
|
64
|
+
return glyphs.map(el => el.getAttribute('data-vendor-letter-glyph'));
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
// Pick the first vendor letter for the hover test.
|
|
68
|
+
const target = inventory[0];
|
|
69
|
+
|
|
70
|
+
const restProbe = await page.evaluate((tgt) => {
|
|
71
|
+
const glyph = document.querySelector(`[data-vendor-letter-glyph="${tgt}"]`);
|
|
72
|
+
const cs = glyph ? getComputedStyle(glyph) : null;
|
|
73
|
+
const chip = glyph ? glyph.closest('[data-vendor-letter]') : null;
|
|
74
|
+
const suffix = chip ? chip.querySelector('[data-vendor-letter-count-suffix]') : null;
|
|
75
|
+
return {
|
|
76
|
+
transform: cs?.transform ?? null,
|
|
77
|
+
transition: cs?.transition ?? null,
|
|
78
|
+
hoverAttr: glyph?.getAttribute('data-vendor-letter-glyph-hover') ?? null,
|
|
79
|
+
display: cs?.display ?? null,
|
|
80
|
+
suffixPresent: !!suffix,
|
|
81
|
+
};
|
|
82
|
+
}, target);
|
|
83
|
+
|
|
84
|
+
// Hover the target vendor letter's chip.
|
|
85
|
+
await page.hover(`[data-vendor-letter="${target}"]`);
|
|
86
|
+
await page.waitForTimeout(300);
|
|
87
|
+
const hoverProbe = await page.evaluate((tgt) => {
|
|
88
|
+
const glyph = document.querySelector(`[data-vendor-letter-glyph="${tgt}"]`);
|
|
89
|
+
const cs = glyph ? getComputedStyle(glyph) : null;
|
|
90
|
+
// Read all sibling hover attrs to confirm only one is active.
|
|
91
|
+
const all = Array.from(document.querySelectorAll('[data-vendor-letter-glyph]'))
|
|
92
|
+
.map(el => ({ key: el.getAttribute('data-vendor-letter-glyph'),
|
|
93
|
+
hover: el.getAttribute('data-vendor-letter-glyph-hover') }));
|
|
94
|
+
return {
|
|
95
|
+
transform: cs?.transform ?? null,
|
|
96
|
+
hoverAttr: glyph?.getAttribute('data-vendor-letter-glyph-hover') ?? null,
|
|
97
|
+
siblings: all,
|
|
98
|
+
};
|
|
99
|
+
}, target);
|
|
100
|
+
|
|
101
|
+
await browser.close();
|
|
102
|
+
|
|
103
|
+
const isIdentity = (t) => t === 'none' || /matrix\(1, 0, 0, 1, 0, 0\)/.test(t || '');
|
|
104
|
+
const isScale110 = (t) => /matrix\(1\.1, 0, 0, 1\.1, 0, 0\)/.test(t || '');
|
|
105
|
+
const hasTrans = (s, prop) =>
|
|
106
|
+
new RegExp(`${prop}\\s+\\d*\\.?\\d*s|${prop}\\s+\\d+ms`, 'i').test(s || '');
|
|
107
|
+
|
|
108
|
+
const siblingsOnlyOneTrue = hoverProbe.siblings.filter(s => s.hover === 'true').length === 1
|
|
109
|
+
&& hoverProbe.siblings.find(s => s.key === target)?.hover === 'true';
|
|
110
|
+
|
|
111
|
+
const results = {
|
|
112
|
+
inventory_has_glyphs: inventory.length >= 3,
|
|
113
|
+
rest_identity: isIdentity(restProbe.transform),
|
|
114
|
+
rest_hover_false: restProbe.hoverAttr === 'false',
|
|
115
|
+
// Flex children get display: block computed (spec blockification),
|
|
116
|
+
// even when declared inline-block — accept either for safety.
|
|
117
|
+
rest_display_block: restProbe.display === 'inline-block' || restProbe.display === 'block',
|
|
118
|
+
trans_has_transform: hasTrans(restProbe.transition, 'transform'),
|
|
119
|
+
suffix_present: restProbe.suffixPresent, // R333 preserved
|
|
120
|
+
hover_scale_110: isScale110(hoverProbe.transform),
|
|
121
|
+
hover_attr_true: hoverProbe.hoverAttr === 'true',
|
|
122
|
+
hover_isolates_target: siblingsOnlyOneTrue,
|
|
123
|
+
};
|
|
124
|
+
const ok = Object.values(results).every(Boolean);
|
|
125
|
+
console.log(`${ok ? '✅' : '❌'} vendor letter glyph hover-scale:`, JSON.stringify(results),
|
|
126
|
+
'\n inventory:', inventory,
|
|
127
|
+
'\n rest: ', restProbe,
|
|
128
|
+
'\n hover: ', hoverProbe);
|
|
129
|
+
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{Fa8EZgmgYGwvcoaGKpSmo → CoEq5Ugcm3YcJCYZANWlX}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|