@sleep2agi/agent-network-dashboard 0.5.1-preview.21 → 0.5.1-preview.23
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 +3 -3
- 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/021pfdl84rh8d.js +4 -0
- package/.next/static/chunks/{0lh3wu1zlx_a5.js → 0rb42ctow6kpv.js} +1 -1
- package/.next/static/chunks/{0tvbbhnjh61u8.js → 10y~6_ao4t7kh.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +44 -4
- package/package.json +1 -1
- package/scripts/topo-chip-digit-fontweight-test.mjs +105 -0
- package/scripts/topo-edge-badge-fontsize-test.mjs +90 -0
- package/.next/static/chunks/0mjn4oij3zu6y.js +0 -4
- /package/.next/static/{OLsgiMVJR1MAtUHtDD9yq → rTFBnnY7X9v91bJcg_EE7}/_buildManifest.js +0 -0
- /package/.next/static/{OLsgiMVJR1MAtUHtDD9yq → rTFBnnY7X9v91bJcg_EE7}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{OLsgiMVJR1MAtUHtDD9yq → rTFBnnY7X9v91bJcg_EE7}/_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.20"],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.22"],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":379,"timestamp":136425675456,"id":4,"parentId":1,"tags":{},"startTime":1778944397922,"traceId":"cb46d435194a4485"},{"name":"load-custom-routes","duration":581,"timestamp":136425675998,"id":5,"parentId":1,"tags":{},"startTime":1778944397922,"traceId":"cb46d435194a4485"},{"name":"create-dist-dir","duration":902,"timestamp":136425676621,"id":6,"parentId":1,"tags":{},"startTime":1778944397923,"traceId":"cb46d435194a4485"},{"name":"clean","duration":29108,"timestamp":136425678267,"id":7,"parentId":1,"tags":{},"startTime":1778944397925,"traceId":"cb46d435194a4485"},{"name":"discover-routes","duration":26689,"timestamp":136425792190,"id":8,"parentId":1,"tags":{},"startTime":1778944398038,"traceId":"cb46d435194a4485"},{"name":"create-root-mapping","duration":148,"timestamp":136425818957,"id":9,"parentId":1,"tags":{},"startTime":1778944398065,"traceId":"cb46d435194a4485"},{"name":"generate-route-types","duration":21482,"timestamp":136425821514,"id":10,"parentId":1,"tags":{},"startTime":1778944398068,"traceId":"cb46d435194a4485"},{"name":"public-dir-conflict-check","duration":98,"timestamp":136425843109,"id":11,"parentId":1,"tags":{},"startTime":1778944398089,"traceId":"cb46d435194a4485"},{"name":"generate-routes-manifest","duration":4376,"timestamp":136425843315,"id":12,"parentId":1,"tags":{},"startTime":1778944398090,"traceId":"cb46d435194a4485"},{"name":"run-turbopack","duration":5878171,"timestamp":136425853403,"id":14,"parentId":1,"tags":{},"startTime":1778944398100,"traceId":"cb46d435194a4485"},{"name":"turbopack-build-events","duration":111,"timestamp":136426136577,"id":15,"parentId":1,"tags":{},"startTime":1778944398383,"traceId":"cb46d435194a4485"},{"name":"run-typescript","duration":9138381,"timestamp":136431741063,"id":16,"parentId":1,"tags":{},"startTime":1778944403987,"traceId":"cb46d435194a4485"},{"name":"generate-required-server-files","duration":2947,"timestamp":136440880737,"id":18,"parentId":1,"tags":{},"startTime":1778944413127,"traceId":"cb46d435194a4485"},{"name":"check-static-error-page","duration":13819,"timestamp":136441056782,"id":20,"parentId":19,"tags":{},"startTime":1778944413303,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":463645,"timestamp":136441073624,"id":65,"parentId":22,"tags":{},"startTime":1778944413320,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":477514,"timestamp":136441059958,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778944413306,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":575229,"timestamp":136441073961,"id":69,"parentId":28,"tags":{},"startTime":1778944413320,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":586027,"timestamp":136441063273,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778944413310,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":609127,"timestamp":136441074460,"id":72,"parentId":32,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":619962,"timestamp":136441063710,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778944413310,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":624243,"timestamp":136441074392,"id":71,"parentId":30,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":635270,"timestamp":136441063441,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778944413310,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":627375,"timestamp":136441073803,"id":67,"parentId":26,"tags":{},"startTime":1778944413320,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":638153,"timestamp":136441063102,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778944413309,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":629854,"timestamp":136441074704,"id":74,"parentId":34,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":640740,"timestamp":136441063881,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778944413310,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":632490,"timestamp":136441074618,"id":73,"parentId":33,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":643371,"timestamp":136441063800,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778944413310,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":632618,"timestamp":136441074740,"id":75,"parentId":35,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":643433,"timestamp":136441063968,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778944413310,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":637008,"timestamp":136441073339,"id":64,"parentId":21,"tags":{},"startTime":1778944413320,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":652051,"timestamp":136441058350,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778944413305,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":635836,"timestamp":136441074764,"id":76,"parentId":36,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":646318,"timestamp":136441064320,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778944413311,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":635986,"timestamp":136441074797,"id":77,"parentId":37,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":646387,"timestamp":136441064439,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778944413311,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":642301,"timestamp":136441073727,"id":66,"parentId":25,"tags":{},"startTime":1778944413320,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":653128,"timestamp":136441062944,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778944413309,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":643186,"timestamp":136441074839,"id":80,"parentId":40,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":653419,"timestamp":136441064658,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778944413311,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":648279,"timestamp":136441074879,"id":83,"parentId":45,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":656995,"timestamp":136441066212,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778944413312,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":653116,"timestamp":136441074852,"id":81,"parentId":42,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":663122,"timestamp":136441064943,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778944413311,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":653348,"timestamp":136441074894,"id":84,"parentId":46,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":661951,"timestamp":136441066334,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778944413313,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":659384,"timestamp":136441074815,"id":78,"parentId":38,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":669718,"timestamp":136441064536,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778944413311,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":659480,"timestamp":136441074909,"id":85,"parentId":47,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":667961,"timestamp":136441066458,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778944413313,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":659596,"timestamp":136441074923,"id":86,"parentId":48,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":666554,"timestamp":136441067989,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778944413314,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":661930,"timestamp":136441074867,"id":82,"parentId":44,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":670992,"timestamp":136441065848,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778944413312,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":666330,"timestamp":136441073874,"id":68,"parentId":27,"tags":{},"startTime":1778944413320,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":677053,"timestamp":136441063193,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778944413309,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":665867,"timestamp":136441078227,"id":90,"parentId":24,"tags":{},"startTime":1778944413325,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":683624,"timestamp":136441060513,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778944413307,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":666225,"timestamp":136441079409,"id":91,"parentId":31,"tags":{},"startTime":1778944413326,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":682159,"timestamp":136441063516,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778944413310,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":671659,"timestamp":136441074960,"id":88,"parentId":50,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":678386,"timestamp":136441068276,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778944413315,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":675240,"timestamp":136441074948,"id":87,"parentId":49,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":682033,"timestamp":136441068201,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778944413314,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":681235,"timestamp":136441074972,"id":89,"parentId":51,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":687929,"timestamp":136441068328,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778944413315,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":691488,"timestamp":136441080677,"id":92,"parentId":41,"tags":{},"startTime":1778944413327,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":707508,"timestamp":136441064720,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778944413311,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":699167,"timestamp":136441074229,"id":70,"parentId":29,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":710098,"timestamp":136441063345,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778944413310,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":711329,"timestamp":136441082159,"id":93,"parentId":43,"tags":{},"startTime":1778944413328,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":728370,"timestamp":136441065180,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778944413311,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":735546,"timestamp":136441084556,"id":96,"parentId":53,"tags":{},"startTime":1778944413331,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":751477,"timestamp":136441068696,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778944413315,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":748422,"timestamp":136441074829,"id":79,"parentId":39,"tags":{},"startTime":1778944413321,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":758721,"timestamp":136441064596,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778944413311,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":741047,"timestamp":136441084605,"id":100,"parentId":58,"tags":{},"startTime":1778944413331,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":756030,"timestamp":136441069673,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778944413316,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":747688,"timestamp":136441084540,"id":95,"parentId":52,"tags":{},"startTime":1778944413331,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":763697,"timestamp":136441068601,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778944413315,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":748466,"timestamp":136441084740,"id":102,"parentId":61,"tags":{},"startTime":1778944413331,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":763011,"timestamp":136441070241,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778944413317,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":750930,"timestamp":136441084718,"id":101,"parentId":59,"tags":{},"startTime":1778944413331,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":765885,"timestamp":136441069812,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778944413316,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":753768,"timestamp":136441084512,"id":94,"parentId":23,"tags":{},"startTime":1778944413331,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":778073,"timestamp":136441060244,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778944413307,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":755509,"timestamp":136441084763,"id":104,"parentId":63,"tags":{},"startTime":1778944413331,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":769877,"timestamp":136441070433,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778944413317,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":747123,"timestamp":136441096035,"id":105,"parentId":57,"tags":{},"startTime":1778944413342,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":773902,"timestamp":136441069297,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778944413316,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":761213,"timestamp":136441084565,"id":97,"parentId":54,"tags":{},"startTime":1778944413331,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":777032,"timestamp":136441068792,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778944413315,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":761768,"timestamp":136441084753,"id":103,"parentId":62,"tags":{},"startTime":1778944413331,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":776228,"timestamp":136441070344,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778944413317,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":740370,"timestamp":136441107132,"id":106,"parentId":60,"tags":{},"startTime":1778944413353,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":777595,"timestamp":136441069936,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778944413316,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":764714,"timestamp":136441084592,"id":99,"parentId":56,"tags":{},"startTime":1778944413331,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":780203,"timestamp":136441069126,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778944413315,"traceId":"cb46d435194a4485"},{"name":"is-page-static","duration":772038,"timestamp":136441084578,"id":98,"parentId":55,"tags":{},"startTime":1778944413331,"traceId":"cb46d435194a4485"},{"name":"check-page","duration":787697,"timestamp":136441068940,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778944413315,"traceId":"cb46d435194a4485"},{"name":"static-check","duration":801063,"timestamp":136441055614,"id":19,"parentId":1,"tags":{},"startTime":1778944413302,"traceId":"cb46d435194a4485"}]
|
|
2
|
-
[{"name":"write-routes-manifest","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":341,"timestamp":137116328650,"id":4,"parentId":1,"tags":{},"startTime":1778945088575,"traceId":"76e61025e2d3db4d"},{"name":"load-custom-routes","duration":739,"timestamp":137116329189,"id":5,"parentId":1,"tags":{},"startTime":1778945088575,"traceId":"76e61025e2d3db4d"},{"name":"create-dist-dir","duration":870,"timestamp":137116329992,"id":6,"parentId":1,"tags":{},"startTime":1778945088576,"traceId":"76e61025e2d3db4d"},{"name":"clean","duration":33633,"timestamp":137116331663,"id":7,"parentId":1,"tags":{},"startTime":1778945088578,"traceId":"76e61025e2d3db4d"},{"name":"discover-routes","duration":10058,"timestamp":137116445919,"id":8,"parentId":1,"tags":{},"startTime":1778945088692,"traceId":"76e61025e2d3db4d"},{"name":"create-root-mapping","duration":130,"timestamp":137116456098,"id":9,"parentId":1,"tags":{},"startTime":1778945088702,"traceId":"76e61025e2d3db4d"},{"name":"generate-route-types","duration":33875,"timestamp":137116458721,"id":10,"parentId":1,"tags":{},"startTime":1778945088705,"traceId":"76e61025e2d3db4d"},{"name":"public-dir-conflict-check","duration":98,"timestamp":137116492683,"id":11,"parentId":1,"tags":{},"startTime":1778945088739,"traceId":"76e61025e2d3db4d"},{"name":"generate-routes-manifest","duration":5086,"timestamp":137116492903,"id":12,"parentId":1,"tags":{},"startTime":1778945088739,"traceId":"76e61025e2d3db4d"},{"name":"run-turbopack","duration":7153029,"timestamp":137116503279,"id":14,"parentId":1,"tags":{},"startTime":1778945088750,"traceId":"76e61025e2d3db4d"},{"name":"turbopack-build-events","duration":117,"timestamp":137116825395,"id":15,"parentId":1,"tags":{},"startTime":1778945089072,"traceId":"76e61025e2d3db4d"},{"name":"run-typescript","duration":10009862,"timestamp":137123668230,"id":16,"parentId":1,"tags":{},"startTime":1778945095915,"traceId":"76e61025e2d3db4d"},{"name":"generate-required-server-files","duration":2605,"timestamp":137133679648,"id":18,"parentId":1,"tags":{},"startTime":1778945105926,"traceId":"76e61025e2d3db4d"},{"name":"check-static-error-page","duration":18737,"timestamp":137133829247,"id":20,"parentId":19,"tags":{},"startTime":1778945106076,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":519547,"timestamp":137133852481,"id":65,"parentId":22,"tags":{},"startTime":1778945106099,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":540205,"timestamp":137133831976,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778945106078,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":563469,"timestamp":137133852938,"id":67,"parentId":26,"tags":{},"startTime":1778945106099,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":581647,"timestamp":137133834865,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778945106081,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":581017,"timestamp":137133857341,"id":72,"parentId":32,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":602622,"timestamp":137133835817,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778945106082,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":587951,"timestamp":137133857490,"id":73,"parentId":33,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":609591,"timestamp":137133835931,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778945106082,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":597567,"timestamp":137133853189,"id":69,"parentId":28,"tags":{},"startTime":1778945106099,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":615662,"timestamp":137133835162,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778945106081,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":607269,"timestamp":137133857579,"id":75,"parentId":35,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":628738,"timestamp":137133836212,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778945106082,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":609762,"timestamp":137133857558,"id":74,"parentId":34,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":631336,"timestamp":137133836045,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778945106082,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":615960,"timestamp":137133857621,"id":77,"parentId":37,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":636454,"timestamp":137133837186,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778945106083,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":623353,"timestamp":137133857633,"id":78,"parentId":38,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":643655,"timestamp":137133837418,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778945106084,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":630722,"timestamp":137133852090,"id":64,"parentId":21,"tags":{},"startTime":1778945106098,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":652311,"timestamp":137133830548,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778945106077,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":627922,"timestamp":137133857645,"id":79,"parentId":39,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":648000,"timestamp":137133837612,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778945106084,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":635180,"timestamp":137133857596,"id":76,"parentId":36,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":655963,"timestamp":137133836867,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778945106083,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":642376,"timestamp":137133857669,"id":81,"parentId":42,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":661678,"timestamp":137133838432,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778945106085,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":645306,"timestamp":137133857690,"id":83,"parentId":45,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":663650,"timestamp":137133839407,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778945106089,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":651163,"timestamp":137133857701,"id":84,"parentId":46,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":665935,"timestamp":137133842990,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778945106089,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":656436,"timestamp":137133857710,"id":85,"parentId":47,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":671012,"timestamp":137133843182,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778945106089,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":656958,"timestamp":137133857678,"id":82,"parentId":44,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":675497,"timestamp":137133839192,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778945106085,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":661251,"timestamp":137133857721,"id":86,"parentId":48,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":675730,"timestamp":137133843315,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778945106090,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":661464,"timestamp":137133857734,"id":87,"parentId":49,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":675794,"timestamp":137133843435,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778945106090,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":672578,"timestamp":137133857746,"id":88,"parentId":50,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":686837,"timestamp":137133843545,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778945106090,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":677920,"timestamp":137133852649,"id":66,"parentId":25,"tags":{},"startTime":1778945106099,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":695906,"timestamp":137133834700,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778945106081,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":673302,"timestamp":137133864755,"id":90,"parentId":24,"tags":{},"startTime":1778945106111,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":705517,"timestamp":137133832590,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778945106079,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":686819,"timestamp":137133853090,"id":68,"parentId":27,"tags":{},"startTime":1778945106099,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":704939,"timestamp":137133835018,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778945106081,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":683771,"timestamp":137133857754,"id":89,"parentId":51,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":697929,"timestamp":137133843643,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778945106090,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":673356,"timestamp":137133870424,"id":92,"parentId":41,"tags":{},"startTime":1778945106117,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":705816,"timestamp":137133838012,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778945106084,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":671393,"timestamp":137133874844,"id":93,"parentId":43,"tags":{},"startTime":1778945106121,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":707642,"timestamp":137133838632,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778945106085,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":683502,"timestamp":137133869653,"id":91,"parentId":31,"tags":{},"startTime":1778945106116,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":717629,"timestamp":137133835567,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778945106082,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":705103,"timestamp":137133857657,"id":80,"parentId":40,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":725002,"timestamp":137133837804,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778945106084,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":693728,"timestamp":137133877021,"id":98,"parentId":55,"tags":{},"startTime":1778945106123,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":725854,"timestamp":137133844957,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778945106091,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":718839,"timestamp":137133857281,"id":71,"parentId":30,"tags":{},"startTime":1778945106104,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":740741,"timestamp":137133835442,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778945106082,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":719807,"timestamp":137133857113,"id":70,"parentId":29,"tags":{},"startTime":1778945106103,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":741685,"timestamp":137133835285,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778945106082,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":703258,"timestamp":137133877034,"id":99,"parentId":56,"tags":{},"startTime":1778945106123,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":735050,"timestamp":137133845289,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778945106092,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":710156,"timestamp":137133877167,"id":102,"parentId":61,"tags":{},"startTime":1778945106123,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":739996,"timestamp":137133847387,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778945106094,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":724081,"timestamp":137133877179,"id":103,"parentId":62,"tags":{},"startTime":1778945106123,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":753736,"timestamp":137133847576,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778945106094,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":732000,"timestamp":137133877188,"id":104,"parentId":63,"tags":{},"startTime":1778945106123,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":761546,"timestamp":137133847731,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778945106094,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":732641,"timestamp":137133876937,"id":94,"parentId":23,"tags":{},"startTime":1778945106123,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":777333,"timestamp":137133832330,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778945106079,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":729355,"timestamp":137133887231,"id":105,"parentId":60,"tags":{},"startTime":1778945106134,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":769729,"timestamp":137133846902,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778945106093,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":720255,"timestamp":137133898515,"id":106,"parentId":57,"tags":{},"startTime":1778945106145,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":773172,"timestamp":137133845637,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778945106092,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":750689,"timestamp":137133876993,"id":97,"parentId":54,"tags":{},"startTime":1778945106123,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":783081,"timestamp":137133844641,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778945106091,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":753265,"timestamp":137133876983,"id":96,"parentId":53,"tags":{},"startTime":1778945106123,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":785891,"timestamp":137133844401,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778945106091,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":765294,"timestamp":137133876967,"id":95,"parentId":52,"tags":{},"startTime":1778945106123,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":798196,"timestamp":137133844120,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778945106090,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":777102,"timestamp":137133877042,"id":100,"parentId":58,"tags":{},"startTime":1778945106123,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":807754,"timestamp":137133846446,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778945106093,"traceId":"76e61025e2d3db4d"},{"name":"is-page-static","duration":778407,"timestamp":137133877149,"id":101,"parentId":59,"tags":{},"startTime":1778945106123,"traceId":"76e61025e2d3db4d"},{"name":"check-page","duration":808930,"timestamp":137133846674,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778945106093,"traceId":"76e61025e2d3db4d"},{"name":"static-check","duration":827325,"timestamp":137133828331,"id":19,"parentId":1,"tags":{},"startTime":1778945106075,"traceId":"76e61025e2d3db4d"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":506,"timestamp":137134666152,"id":108,"parentId":1,"tags":{},"startTime":1778945106912,"traceId":"76e61025e2d3db4d"},{"name":"load-dotenv","duration":75,"timestamp":137134678379,"id":111,"parentId":110,"tags":{},"startTime":1778945106925,"traceId":"76e61025e2d3db4d"},{"name":"run-export-path-map","duration":606,"timestamp":137134681390,"id":112,"parentId":110,"tags":{},"startTime":1778945106928,"traceId":"76e61025e2d3db4d"},{"name":"next-export","duration":607840,"timestamp":137134676907,"id":110,"parentId":1,"tags":{},"startTime":1778945106923,"traceId":"76e61025e2d3db4d"},{"name":"move-exported-app-not-found-","duration":744,"timestamp":137135288413,"id":113,"parentId":109,"tags":{},"startTime":1778945107535,"traceId":"76e61025e2d3db4d"},{"name":"move-exported-app-global-error-","duration":450,"timestamp":137135289289,"id":114,"parentId":109,"tags":{},"startTime":1778945107536,"traceId":"76e61025e2d3db4d"},{"name":"static-generation","duration":621361,"timestamp":137134670894,"id":109,"parentId":1,"tags":{},"startTime":1778945106917,"traceId":"76e61025e2d3db4d"},{"name":"write-routes-manifest","duration":597,"timestamp":137135292567,"id":115,"parentId":1,"tags":{},"startTime":1778945107539,"traceId":"76e61025e2d3db4d"},{"name":"print-tree-view","duration":6016,"timestamp":137135312190,"id":116,"parentId":1,"tags":{},"startTime":1778945107558,"traceId":"76e61025e2d3db4d"},{"name":"write-route-bundle-stats","duration":14495,"timestamp":137135318255,"id":117,"parentId":1,"tags":{},"startTime":1778945107565,"traceId":"76e61025e2d3db4d"},{"name":"telemetry-flush","duration":15017,"timestamp":137135332788,"id":118,"parentId":1,"tags":{},"startTime":1778945107579,"traceId":"76e61025e2d3db4d"},{"name":"next-build","duration":19073869,"timestamp":137116273967,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778945088520,"traceId":"76e61025e2d3db4d"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":7153029,"timestamp":137116503279,"id":14,"parentId":1,"tags":{},"startTime":1778945088750,"traceId":"76e61025e2d3db4d"},{"name":"turbopack-build-events","duration":117,"timestamp":137116825395,"id":15,"parentId":1,"tags":{},"startTime":1778945089072,"traceId":"76e61025e2d3db4d"},{"name":"run-typescript","duration":10009862,"timestamp":137123668230,"id":16,"parentId":1,"tags":{},"startTime":1778945095915,"traceId":"76e61025e2d3db4d"},{"name":"static-check","duration":827325,"timestamp":137133828331,"id":19,"parentId":1,"tags":{},"startTime":1778945106075,"traceId":"76e61025e2d3db4d"},{"name":"static-generation","duration":621361,"timestamp":137134670894,"id":109,"parentId":1,"tags":{},"startTime":1778945106917,"traceId":"76e61025e2d3db4d"},{"name":"telemetry-flush","duration":15017,"timestamp":137135332788,"id":118,"parentId":1,"tags":{},"startTime":1778945107579,"traceId":"76e61025e2d3db4d"},{"name":"next-build","duration":19073869,"timestamp":137116273967,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778945088520,"traceId":"76e61025e2d3db4d"}]
|
|
@@ -2063,7 +2063,17 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2063
2063
|
pattern: small label spans demote, value stays
|
|
2064
2064
|
prominent. data-working-chip-unit exposes the
|
|
2065
2065
|
span for tests. */}
|
|
2066
|
-
{
|
|
2066
|
+
{/* Round 362 / Loop: digit picks up font-semibold
|
|
2067
|
+
(fw 500 → 600) for within-chip weight tier. The
|
|
2068
|
+
chip's outer className stays at font-medium (R313
|
|
2069
|
+
data-weight baseline); the digit overrides to
|
|
2070
|
+
semibold so it reads heavier than its " working"
|
|
2071
|
+
unit (which keeps fw 500 + R338 opacity-70).
|
|
2072
|
+
Joins the R333-R341 chip-internal-hierarchy arc
|
|
2073
|
+
at the chip-count scope. Sibling edits on the
|
|
2074
|
+
online + active-links chip digits below. data-
|
|
2075
|
+
working-chip-digit attr exposes the digit span. */}
|
|
2076
|
+
<span className="font-semibold" data-working-chip-digit>{workingCount}</span><span className="opacity-70" data-working-chip-unit> working</span>
|
|
2067
2077
|
</span>
|
|
2068
2078
|
<span
|
|
2069
2079
|
// Round 201 / Loop: online chip — mirror of the working
|
|
@@ -2126,7 +2136,8 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2126
2136
|
}}
|
|
2127
2137
|
>
|
|
2128
2138
|
{/* R337 sibling — online chip unit demotion. */}
|
|
2129
|
-
{
|
|
2139
|
+
{/* R362 sibling — online-chip digit gains font-semibold. */}
|
|
2140
|
+
<span className="font-semibold" data-online-chip-digit>{onlineNodes.length}</span><span className="opacity-70" data-online-chip-unit> online</span>
|
|
2130
2141
|
</span>
|
|
2131
2142
|
</>
|
|
2132
2143
|
);
|
|
@@ -3030,7 +3041,8 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3030
3041
|
the 5th chip surface in the R333/R335/R336/R337
|
|
3031
3042
|
chip-internal-hierarchy arc. data-active-links-
|
|
3032
3043
|
chip-unit exposes the unit span for tests. */}
|
|
3033
|
-
{
|
|
3044
|
+
{/* R362 sibling — active-links chip digit gains font-semibold. */}
|
|
3045
|
+
<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>
|
|
3034
3046
|
{rel ? (() => {
|
|
3035
3047
|
// Round 161 / Loop: extend R160's recency-pip
|
|
3036
3048
|
// vocabulary up one scope — from per-flow row to
|
|
@@ -4789,11 +4801,39 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4789
4801
|
x={badgeX} y={badgeY + 3}
|
|
4790
4802
|
textAnchor="middle"
|
|
4791
4803
|
fill={pal.legendHeadline}
|
|
4792
|
-
|
|
4804
|
+
/* Round 361 / Loop: edge midpoint badge text
|
|
4805
|
+
fontSize 10 → 11. Sibling visual-weight bump
|
|
4806
|
+
to R360 hub digit 11 → 12. The badge digit
|
|
4807
|
+
is the per-edge equivalent of the hub digit
|
|
4808
|
+
— a high-information scalar (link.count) at
|
|
4809
|
+
a stable canvas position. Pre-R361 fontSize=
|
|
4810
|
+
10 + R220 letter-spacing 0.4 + R224 tabular-
|
|
4811
|
+
nums made the digit READABLE but small
|
|
4812
|
+
against the r=9 / 18-px badge envelope;
|
|
4813
|
+
fontSize=11 nudges the glyph ~10 % bigger
|
|
4814
|
+
(bbox ~7×10 px from ~6×9 px) so the count
|
|
4815
|
+
reads more cleanly at glance — still well
|
|
4816
|
+
inside the r=9 idle circle and the r=10.5
|
|
4817
|
+
hover/pin lift (R164). y=badgeY+3 empirical
|
|
4818
|
+
vertical centring kept (1px drift at the
|
|
4819
|
+
bumped size is below the noise floor in
|
|
4820
|
+
the on-curve flow path).
|
|
4821
|
+
Visual-weight bump family:
|
|
4822
|
+
R287 minimap viewport stroke 1 → 1.5
|
|
4823
|
+
R295 legend swatch base radius 5.5 → 6
|
|
4824
|
+
R359 recent-row pip base radius 1.6 → 1.8
|
|
4825
|
+
R360 hub digit fontSize 11 → 12
|
|
4826
|
+
R361 edge-badge digit fontSize 10 → 11 (this round)
|
|
4827
|
+
data-edge-badge-text-font-size attr exposes
|
|
4828
|
+
the value for tests. R220 pin/hot letter-
|
|
4829
|
+
spacing tween + R224 tabular-nums + R188
|
|
4830
|
+
stroke-width pin/hot transitions all preserved. */
|
|
4831
|
+
fontSize="11"
|
|
4793
4832
|
fontFamily="monospace"
|
|
4794
4833
|
fontWeight="700"
|
|
4795
4834
|
data-edge-badge-text={link.key}
|
|
4796
4835
|
data-edge-badge-text-pin={(isPinned || isHot) ? 'true' : 'false'}
|
|
4836
|
+
data-edge-badge-text-font-size="11"
|
|
4797
4837
|
style={{
|
|
4798
4838
|
pointerEvents: 'none',
|
|
4799
4839
|
fontVariantNumeric: 'tabular-nums',
|
package/package.json
CHANGED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* Round 362 verification: 3 chip-row chip digits (working / online /
|
|
2
|
+
* active-links) wrap their digit in a font-semibold span, lifting it
|
|
3
|
+
* fw 500 (chip-row R313 baseline) → fw 600 within each chip. The
|
|
4
|
+
* outer chip className keeps font-medium so the chip's overall data-
|
|
5
|
+
* weight stays consistent with the R313 family; the digit override
|
|
6
|
+
* adds a within-chip tier:
|
|
7
|
+
* digit fw 600 + full opacity
|
|
8
|
+
* unit fw 500 + R338 opacity-70
|
|
9
|
+
*
|
|
10
|
+
* Joins the R333-R341 chip-internal-hierarchy arc at the chip-count
|
|
11
|
+
* scope (8th surface family).
|
|
12
|
+
*
|
|
13
|
+
* Contract (cyber, fresh fixture):
|
|
14
|
+
* - Each of the 3 chip digit spans has data-{name}-chip-digit attr.
|
|
15
|
+
* - Computed fontWeight of the digit span === '600'.
|
|
16
|
+
* - The unit sibling span still has opacity 0.7 + data-{name}-chip-
|
|
17
|
+
* unit attr (R338 invariants).
|
|
18
|
+
* - Parent chip retains font-medium (R313 baseline).
|
|
19
|
+
*/
|
|
20
|
+
import { chromium } from 'playwright';
|
|
21
|
+
import { readFileSync } from 'node:fs';
|
|
22
|
+
|
|
23
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
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
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
31
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
32
|
+
const r = await route.fetch();
|
|
33
|
+
const b = await r.json();
|
|
34
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
35
|
+
const mk = (alias) => ({
|
|
36
|
+
alias, status: 'working', model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
37
|
+
network_id: nid, project_dir: null,
|
|
38
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
39
|
+
});
|
|
40
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [ mk('a'), mk('b'), mk('c') ] } });
|
|
41
|
+
});
|
|
42
|
+
const now = Date.now();
|
|
43
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [
|
|
44
|
+
{ id: 'm1', from_alias: 'a', to_alias: 'b', content: 'ping',
|
|
45
|
+
network_id: 'default', created_at: new Date(now - 5000).toISOString() },
|
|
46
|
+
] } }));
|
|
47
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
48
|
+
|
|
49
|
+
const page = await ctx.newPage();
|
|
50
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
51
|
+
await page.waitForSelector('[data-working-chip-digit]', { timeout: 15000 });
|
|
52
|
+
await page.waitForSelector('[data-online-chip-digit]', { timeout: 5000 });
|
|
53
|
+
await page.waitForSelector('[data-active-links-chip-digit]', { timeout: 5000 });
|
|
54
|
+
await page.waitForTimeout(300);
|
|
55
|
+
|
|
56
|
+
const probe = await page.evaluate(() => {
|
|
57
|
+
function readChip(digitSel, unitSel, parentSel) {
|
|
58
|
+
const digit = document.querySelector(digitSel);
|
|
59
|
+
const unit = document.querySelector(unitSel);
|
|
60
|
+
const parent = document.querySelector(parentSel);
|
|
61
|
+
return {
|
|
62
|
+
digitFw: digit ? getComputedStyle(digit).fontWeight : null,
|
|
63
|
+
digitText: digit?.textContent ?? null,
|
|
64
|
+
unitOp: unit ? getComputedStyle(unit).opacity : null,
|
|
65
|
+
unitPresent: !!unit,
|
|
66
|
+
parentCls: parent?.getAttribute('class') ?? null,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
working: readChip('[data-working-chip-digit]', '[data-working-chip-unit]', '[data-working-chip]'),
|
|
71
|
+
online: readChip('[data-online-chip-digit]', '[data-online-chip-unit]', '[data-online-chip]'),
|
|
72
|
+
activeLinks: readChip('[data-active-links-chip-digit]', '[data-active-links-chip-unit]', '[data-active-links-chip]'),
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
await browser.close();
|
|
77
|
+
|
|
78
|
+
const isFw600 = (v) => v === '600' || v === 'bold'; // Tailwind font-semibold === 600
|
|
79
|
+
const approxEq = (a, b, tol = 0.02) => {
|
|
80
|
+
const x = parseFloat(a); const y = parseFloat(b);
|
|
81
|
+
return Number.isFinite(x) && Number.isFinite(y) && Math.abs(x - y) <= tol;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const checkChip = (chip) => ({
|
|
85
|
+
digit_fw_600: isFw600(chip.digitFw),
|
|
86
|
+
unit_op_0_7: approxEq(chip.unitOp, 0.7), // R338
|
|
87
|
+
unit_present: chip.unitPresent,
|
|
88
|
+
parent_medium: /font-medium/.test(chip.parentCls || ''), // R313
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
const results = {
|
|
92
|
+
working_digit_fw_600: checkChip(probe.working).digit_fw_600,
|
|
93
|
+
working_unit_op_0_7: checkChip(probe.working).unit_op_0_7,
|
|
94
|
+
working_parent_medium: checkChip(probe.working).parent_medium,
|
|
95
|
+
online_digit_fw_600: checkChip(probe.online).digit_fw_600,
|
|
96
|
+
online_unit_op_0_7: checkChip(probe.online).unit_op_0_7,
|
|
97
|
+
online_parent_medium: checkChip(probe.online).parent_medium,
|
|
98
|
+
active_digit_fw_600: checkChip(probe.activeLinks).digit_fw_600,
|
|
99
|
+
active_unit_op_0_7: checkChip(probe.activeLinks).unit_op_0_7,
|
|
100
|
+
active_parent_medium: checkChip(probe.activeLinks).parent_medium,
|
|
101
|
+
};
|
|
102
|
+
const ok = Object.values(results).every(Boolean);
|
|
103
|
+
console.log(`${ok ? '✅' : '❌'} chip-row digit fontWeight 500 → 600:`, JSON.stringify(results),
|
|
104
|
+
'\n probe:', JSON.stringify(probe, null, 2));
|
|
105
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* Round 361 verification: edge midpoint badge text fontSize 10 → 11.
|
|
2
|
+
* Sibling visual-weight bump to R360 hub digit 11 → 12. The badge
|
|
3
|
+
* digit is the per-edge equivalent of the hub digit — a high-info
|
|
4
|
+
* scalar (link.count) at a stable canvas position. Pre-R361 the
|
|
5
|
+
* digit at fontSize=10 was readable but small against the r=9 /
|
|
6
|
+
* 18-px badge envelope; fontSize=11 nudges the glyph ~10 % bigger
|
|
7
|
+
* (bbox ~7×10 px from ~6×9 px). Still well inside the r=9 idle +
|
|
8
|
+
* r=10.5 hover/pin (R164) envelope.
|
|
9
|
+
*
|
|
10
|
+
* Contract:
|
|
11
|
+
* - Edge badge text font-size attr === '11'.
|
|
12
|
+
* - data-edge-badge-text-font-size === '11'.
|
|
13
|
+
* - Pre-R361 invariants preserved:
|
|
14
|
+
* * R224 tabular-nums fontVariantNumeric
|
|
15
|
+
* * R220 letter-spacing 0px → 0.4px on pin/hot
|
|
16
|
+
* * fontWeight=700 + fontFamily=monospace
|
|
17
|
+
* * textAnchor="middle"
|
|
18
|
+
* * data-edge-badge-text={link.key} surface attr
|
|
19
|
+
*
|
|
20
|
+
* Test mounts the dashboard with 1 message → 1 flow link → 1 badge.
|
|
21
|
+
*/
|
|
22
|
+
import { chromium } from 'playwright';
|
|
23
|
+
import { readFileSync } from 'node:fs';
|
|
24
|
+
|
|
25
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
26
|
+
const browser = await chromium.launch({ headless: true });
|
|
27
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
28
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
29
|
+
await ctx.addInitScript(() => {
|
|
30
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
31
|
+
});
|
|
32
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
33
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
34
|
+
const r = await route.fetch();
|
|
35
|
+
const b = await r.json();
|
|
36
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
37
|
+
const mk = (alias) => ({
|
|
38
|
+
alias, status: 'working', model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
39
|
+
network_id: nid, project_dir: null,
|
|
40
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
41
|
+
});
|
|
42
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [ mk('a'), mk('b') ] } });
|
|
43
|
+
});
|
|
44
|
+
const now = Date.now();
|
|
45
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [
|
|
46
|
+
{ id: 'm1', from_alias: 'a', to_alias: 'b', content: 'ping',
|
|
47
|
+
network_id: 'default', created_at: new Date(now - 5000).toISOString() },
|
|
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-edge-badge-text]', { timeout: 15000 });
|
|
54
|
+
await page.waitForTimeout(300);
|
|
55
|
+
|
|
56
|
+
const probe = await page.evaluate(() => {
|
|
57
|
+
const t = document.querySelector('[data-edge-badge-text]');
|
|
58
|
+
const cs = t ? getComputedStyle(t) : null;
|
|
59
|
+
return {
|
|
60
|
+
fontSizeAttr: t?.getAttribute('font-size') ?? null,
|
|
61
|
+
fontSizeData: t?.getAttribute('data-edge-badge-text-font-size') ?? null,
|
|
62
|
+
fontWeight: t?.getAttribute('font-weight') ?? null,
|
|
63
|
+
fontFamily: t?.getAttribute('font-family') ?? null,
|
|
64
|
+
textAnchor: t?.getAttribute('text-anchor') ?? null,
|
|
65
|
+
linkKey: t?.getAttribute('data-edge-badge-text') ?? null,
|
|
66
|
+
pinAttr: t?.getAttribute('data-edge-badge-text-pin') ?? null,
|
|
67
|
+
fontVariant: cs?.fontVariantNumeric ?? null,
|
|
68
|
+
letterSpacing: cs?.letterSpacing ?? null,
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
await browser.close();
|
|
73
|
+
|
|
74
|
+
const isRestLs = (v) => v === 'normal' || v === '0px' || v === '0' || v === null;
|
|
75
|
+
|
|
76
|
+
const results = {
|
|
77
|
+
font_size_attr_11: probe.fontSizeAttr === '11',
|
|
78
|
+
data_font_size_11: probe.fontSizeData === '11',
|
|
79
|
+
font_weight_700: probe.fontWeight === '700',
|
|
80
|
+
font_family_mono: /monospace/i.test(probe.fontFamily || ''),
|
|
81
|
+
text_anchor_middle: probe.textAnchor === 'middle',
|
|
82
|
+
link_key_present: (probe.linkKey || '').length > 0,
|
|
83
|
+
pin_attr_false: probe.pinAttr === 'false', // single-flow, not isHot
|
|
84
|
+
tabular_nums: /tabular-nums/.test(probe.fontVariant || ''), // R224
|
|
85
|
+
rest_letter_spacing: isRestLs(probe.letterSpacing), // R220 rest = 0
|
|
86
|
+
};
|
|
87
|
+
const ok = Object.values(results).every(Boolean);
|
|
88
|
+
console.log(`${ok ? '✅' : '❌'} edge badge fontSize 10 → 11:`, JSON.stringify(results),
|
|
89
|
+
'\n probe:', probe);
|
|
90
|
+
process.exit(ok ? 0 : 1);
|