@sleep2agi/agent-network-dashboard 0.5.1-preview.33 → 0.5.1-preview.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +4 -4
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/admin.html +1 -1
- package/.next/server/app/admin.rsc +1 -1
- package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +2 -2
- package/.next/server/app/login.rsc +2 -2
- package/.next/server/app/login.segments/_full.segment.rsc +2 -2
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +1 -1
- package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/.next/server/app/logs.html +1 -1
- package/.next/server/app/logs.rsc +1 -1
- package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
- package/.next/server/app/messages.html +1 -1
- package/.next/server/app/messages.rsc +1 -1
- package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
- package/.next/server/app/node.html +1 -1
- package/.next/server/app/node.rsc +1 -1
- package/.next/server/app/node.segments/_full.segment.rsc +1 -1
- package/.next/server/app/node.segments/_head.segment.rsc +1 -1
- package/.next/server/app/node.segments/_index.segment.rsc +1 -1
- package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/node.segments/node.segment.rsc +1 -1
- package/.next/server/app/nodes.html +1 -1
- package/.next/server/app/nodes.rsc +1 -1
- package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs.html +1 -1
- package/.next/server/app/server-logs.rsc +1 -1
- package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
- package/.next/server/app/settings/networks.html +1 -1
- package/.next/server/app/settings/networks.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens.html +1 -1
- package/.next/server/app/settings/tokens.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
- package/.next/server/app/settings.html +2 -2
- package/.next/server/app/settings.rsc +2 -2
- package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
- package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/.next/server/app/tasks.html +1 -1
- package/.next/server/app/tasks.rsc +1 -1
- package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/{075z-wm3uk7r0.js → 0.ts8ii8alr-1.js} +1 -1
- package/.next/static/chunks/{0.cyrlzd-fxwb.js → 11c6.9m-ozmgt.js} +1 -1
- package/.next/static/chunks/{05t_lcj3_0z4..js → 15jw2r~8eqpt6.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +13 -1
- package/package.json +1 -1
- package/scripts/topo-pressure-kicker-fontweight-test.mjs +76 -0
- /package/.next/static/{zm1r0H_nVzaIiyCgIJm0j → Dd0r7WlqwB9Npj1kWYIAJ}/_buildManifest.js +0 -0
- /package/.next/static/{zm1r0H_nVzaIiyCgIJm0j → Dd0r7WlqwB9Npj1kWYIAJ}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{zm1r0H_nVzaIiyCgIJm0j → Dd0r7WlqwB9Npj1kWYIAJ}/_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.32"],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.33"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.5.1-preview.33"],70286)},48941,e=>{"use strict";var t=e.i(22381),r=e.i(23910),a=e.i(70286);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#111128] border border-[#2a2a4a] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#2a2a4a] bg-[#111128]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:h||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[h&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:h?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",a.DASHBOARD_VERSION]})]})]})]})}])}]);
|
package/.next/trace
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":257,"timestamp":140059298603,"id":4,"parentId":1,"tags":{},"startTime":1778948031545,"traceId":"65caa213ce30b4cb"},{"name":"load-custom-routes","duration":478,"timestamp":140059298997,"id":5,"parentId":1,"tags":{},"startTime":1778948031545,"traceId":"65caa213ce30b4cb"},{"name":"create-dist-dir","duration":697,"timestamp":140059299513,"id":6,"parentId":1,"tags":{},"startTime":1778948031546,"traceId":"65caa213ce30b4cb"},{"name":"clean","duration":31967,"timestamp":140059301215,"id":7,"parentId":1,"tags":{},"startTime":1778948031547,"traceId":"65caa213ce30b4cb"},{"name":"discover-routes","duration":9074,"timestamp":140059418105,"id":8,"parentId":1,"tags":{},"startTime":1778948031664,"traceId":"65caa213ce30b4cb"},{"name":"create-root-mapping","duration":106,"timestamp":140059427235,"id":9,"parentId":1,"tags":{},"startTime":1778948031674,"traceId":"65caa213ce30b4cb"},{"name":"generate-route-types","duration":41507,"timestamp":140059429795,"id":10,"parentId":1,"tags":{},"startTime":1778948031676,"traceId":"65caa213ce30b4cb"},{"name":"public-dir-conflict-check","duration":144,"timestamp":140059471405,"id":11,"parentId":1,"tags":{},"startTime":1778948031718,"traceId":"65caa213ce30b4cb"},{"name":"generate-routes-manifest","duration":5068,"timestamp":140059471701,"id":12,"parentId":1,"tags":{},"startTime":1778948031718,"traceId":"65caa213ce30b4cb"},{"name":"run-turbopack","duration":5840644,"timestamp":140059483172,"id":14,"parentId":1,"tags":{},"startTime":1778948031729,"traceId":"65caa213ce30b4cb"},{"name":"turbopack-build-events","duration":72,"timestamp":140059773815,"id":15,"parentId":1,"tags":{},"startTime":1778948032020,"traceId":"65caa213ce30b4cb"},{"name":"run-typescript","duration":9243487,"timestamp":140065332405,"id":16,"parentId":1,"tags":{},"startTime":1778948037579,"traceId":"65caa213ce30b4cb"},{"name":"generate-required-server-files","duration":3042,"timestamp":140074577177,"id":18,"parentId":1,"tags":{},"startTime":1778948046823,"traceId":"65caa213ce30b4cb"},{"name":"check-static-error-page","duration":14077,"timestamp":140074806653,"id":20,"parentId":19,"tags":{},"startTime":1778948047053,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":408554,"timestamp":140074823793,"id":65,"parentId":22,"tags":{},"startTime":1778948047070,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":424435,"timestamp":140074809144,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778948047055,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":547018,"timestamp":140074824223,"id":68,"parentId":27,"tags":{},"startTime":1778948047070,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":559145,"timestamp":140074812189,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778948047058,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":554379,"timestamp":140074824344,"id":69,"parentId":28,"tags":{},"startTime":1778948047071,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":566488,"timestamp":140074812314,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778948047059,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":560477,"timestamp":140074825020,"id":73,"parentId":33,"tags":{},"startTime":1778948047071,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":572608,"timestamp":140074812953,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778948047059,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":573940,"timestamp":140074824605,"id":70,"parentId":29,"tags":{},"startTime":1778948047071,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":586227,"timestamp":140074812402,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778948047059,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":576937,"timestamp":140074824776,"id":71,"parentId":30,"tags":{},"startTime":1778948047071,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":589287,"timestamp":140074812499,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778948047059,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":577187,"timestamp":140074824845,"id":72,"parentId":32,"tags":{},"startTime":1778948047071,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":589274,"timestamp":140074812818,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778948047059,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":578841,"timestamp":140074825186,"id":75,"parentId":35,"tags":{},"startTime":1778948047071,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":590841,"timestamp":140074813238,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778948047060,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":584093,"timestamp":140074825212,"id":76,"parentId":36,"tags":{},"startTime":1778948047071,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":595590,"timestamp":140074813769,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778948047060,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":585457,"timestamp":140074824091,"id":67,"parentId":26,"tags":{},"startTime":1778948047070,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":597542,"timestamp":140074812045,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778948047058,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":586260,"timestamp":140074823488,"id":64,"parentId":21,"tags":{},"startTime":1778948047070,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":601877,"timestamp":140074807909,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778948047054,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":585998,"timestamp":140074823944,"id":66,"parentId":25,"tags":{},"startTime":1778948047070,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":598124,"timestamp":140074811850,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778948047058,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":609394,"timestamp":140074825149,"id":74,"parentId":34,"tags":{},"startTime":1778948047071,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":621507,"timestamp":140074813099,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778948047059,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":609531,"timestamp":140074825268,"id":79,"parentId":39,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":620583,"timestamp":140074814248,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778948047061,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":609708,"timestamp":140074825241,"id":77,"parentId":37,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":620997,"timestamp":140074813977,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778948047060,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":613320,"timestamp":140074825254,"id":78,"parentId":38,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":624473,"timestamp":140074814148,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778948047060,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":615505,"timestamp":140074825336,"id":85,"parentId":47,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":625382,"timestamp":140074815515,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778948047062,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":620051,"timestamp":140074825362,"id":87,"parentId":49,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":627966,"timestamp":140074817490,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778948047064,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":620817,"timestamp":140074825349,"id":86,"parentId":48,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":630596,"timestamp":140074815617,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778948047062,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":621091,"timestamp":140074825281,"id":80,"parentId":40,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":632060,"timestamp":140074814345,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778948047061,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":624864,"timestamp":140074825327,"id":84,"parentId":46,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":634845,"timestamp":140074815389,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778948047062,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":625063,"timestamp":140074825315,"id":83,"parentId":45,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":635117,"timestamp":140074815292,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778948047062,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":625311,"timestamp":140074825371,"id":88,"parentId":50,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":633125,"timestamp":140074817610,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778948047064,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":625503,"timestamp":140074825384,"id":89,"parentId":51,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":633230,"timestamp":140074817690,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778948047064,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":623739,"timestamp":140074828740,"id":90,"parentId":24,"tags":{},"startTime":1778948047075,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":642857,"timestamp":140074809664,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778948047056,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":623367,"timestamp":140074832134,"id":93,"parentId":43,"tags":{},"startTime":1778948047078,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":640708,"timestamp":140074814830,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778948047061,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":636312,"timestamp":140074825303,"id":82,"parentId":44,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":646499,"timestamp":140074815161,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778948047061,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":631905,"timestamp":140074829902,"id":91,"parentId":31,"tags":{},"startTime":1778948047076,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":649256,"timestamp":140074812582,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778948047059,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":637374,"timestamp":140074830753,"id":92,"parentId":41,"tags":{},"startTime":1778948047077,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":653830,"timestamp":140074814443,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778948047061,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":668448,"timestamp":140074825291,"id":81,"parentId":42,"tags":{},"startTime":1778948047072,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":679132,"timestamp":140074814686,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778948047061,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":668490,"timestamp":140074834408,"id":100,"parentId":58,"tags":{},"startTime":1778948047081,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":683462,"timestamp":140074819492,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778948047066,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":677516,"timestamp":140074834525,"id":101,"parentId":59,"tags":{},"startTime":1778948047081,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":692482,"timestamp":140074819683,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778948047066,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":681141,"timestamp":140074834354,"id":96,"parentId":53,"tags":{},"startTime":1778948047081,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":697357,"timestamp":140074818207,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778948047064,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":685557,"timestamp":140074834545,"id":102,"parentId":61,"tags":{},"startTime":1778948047081,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":699876,"timestamp":140074820275,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778948047067,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":689682,"timestamp":140074834383,"id":98,"parentId":55,"tags":{},"startTime":1778948047081,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":705617,"timestamp":140074818509,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778948047065,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":690310,"timestamp":140074834307,"id":94,"parentId":23,"tags":{},"startTime":1778948047081,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":715245,"timestamp":140074809412,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778948047056,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":691106,"timestamp":140074834342,"id":95,"parentId":52,"tags":{},"startTime":1778948047081,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":707425,"timestamp":140074818066,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778948047064,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":693026,"timestamp":140074834566,"id":104,"parentId":63,"tags":{},"startTime":1778948047081,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":707122,"timestamp":140074820513,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778948047067,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":685397,"timestamp":140074842799,"id":105,"parentId":60,"tags":{},"startTime":1778948047089,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":708378,"timestamp":140074819867,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778948047066,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":695013,"timestamp":140074834554,"id":103,"parentId":62,"tags":{},"startTime":1778948047081,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":709214,"timestamp":140074820401,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778948047067,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":677510,"timestamp":140074854778,"id":106,"parentId":57,"tags":{},"startTime":1778948047101,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":713370,"timestamp":140074818955,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778948047065,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":700500,"timestamp":140074834368,"id":97,"parentId":54,"tags":{},"startTime":1778948047081,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":716571,"timestamp":140074818338,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778948047065,"traceId":"65caa213ce30b4cb"},{"name":"is-page-static","duration":702880,"timestamp":140074834398,"id":99,"parentId":56,"tags":{},"startTime":1778948047081,"traceId":"65caa213ce30b4cb"},{"name":"check-page","duration":718595,"timestamp":140074818717,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778948047065,"traceId":"65caa213ce30b4cb"},{"name":"static-check","duration":731484,"timestamp":140074805868,"id":19,"parentId":1,"tags":{},"startTime":1778948047052,"traceId":"65caa213ce30b4cb"}]
|
|
2
|
-
[{"name":"write-routes-manifest","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":262,"timestamp":140406541195,"id":4,"parentId":1,"tags":{},"startTime":1778948378787,"traceId":"e91b96f321df6d44"},{"name":"load-custom-routes","duration":522,"timestamp":140406541625,"id":5,"parentId":1,"tags":{},"startTime":1778948378788,"traceId":"e91b96f321df6d44"},{"name":"create-dist-dir","duration":709,"timestamp":140406542190,"id":6,"parentId":1,"tags":{},"startTime":1778948378788,"traceId":"e91b96f321df6d44"},{"name":"clean","duration":36564,"timestamp":140406543582,"id":7,"parentId":1,"tags":{},"startTime":1778948378790,"traceId":"e91b96f321df6d44"},{"name":"discover-routes","duration":12422,"timestamp":140406668102,"id":8,"parentId":1,"tags":{},"startTime":1778948378914,"traceId":"e91b96f321df6d44"},{"name":"create-root-mapping","duration":126,"timestamp":140406680595,"id":9,"parentId":1,"tags":{},"startTime":1778948378927,"traceId":"e91b96f321df6d44"},{"name":"generate-route-types","duration":40077,"timestamp":140406683744,"id":10,"parentId":1,"tags":{},"startTime":1778948378930,"traceId":"e91b96f321df6d44"},{"name":"public-dir-conflict-check","duration":180,"timestamp":140406723963,"id":11,"parentId":1,"tags":{},"startTime":1778948378970,"traceId":"e91b96f321df6d44"},{"name":"generate-routes-manifest","duration":6741,"timestamp":140406724335,"id":12,"parentId":1,"tags":{},"startTime":1778948378971,"traceId":"e91b96f321df6d44"},{"name":"run-turbopack","duration":6066733,"timestamp":140406736535,"id":14,"parentId":1,"tags":{},"startTime":1778948378983,"traceId":"e91b96f321df6d44"},{"name":"turbopack-build-events","duration":147,"timestamp":140407062951,"id":15,"parentId":1,"tags":{},"startTime":1778948379309,"traceId":"e91b96f321df6d44"},{"name":"run-typescript","duration":9579325,"timestamp":140412816708,"id":16,"parentId":1,"tags":{},"startTime":1778948385063,"traceId":"e91b96f321df6d44"},{"name":"generate-required-server-files","duration":2885,"timestamp":140422397206,"id":18,"parentId":1,"tags":{},"startTime":1778948394643,"traceId":"e91b96f321df6d44"},{"name":"check-static-error-page","duration":16266,"timestamp":140422591159,"id":20,"parentId":19,"tags":{},"startTime":1778948394837,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":513787,"timestamp":140422611412,"id":65,"parentId":22,"tags":{},"startTime":1778948394858,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":530984,"timestamp":140422594373,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778948394841,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":542450,"timestamp":140422612161,"id":70,"parentId":29,"tags":{},"startTime":1778948394858,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":556483,"timestamp":140422598224,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778948394844,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":565118,"timestamp":140422611566,"id":66,"parentId":25,"tags":{},"startTime":1778948394858,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":579107,"timestamp":140422597655,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778948394844,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":570734,"timestamp":140422612549,"id":73,"parentId":33,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":584419,"timestamp":140422598928,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778948394845,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":597977,"timestamp":140422612369,"id":72,"parentId":32,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":611632,"timestamp":140422598797,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778948394845,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":613545,"timestamp":140422612655,"id":75,"parentId":35,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":627109,"timestamp":140422599179,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778948394845,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":619953,"timestamp":140422609846,"id":64,"parentId":21,"tags":{},"startTime":1778948394856,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":637151,"timestamp":140422592762,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778948394839,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":617945,"timestamp":140422612675,"id":76,"parentId":36,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":630987,"timestamp":140422599682,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778948394846,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":622154,"timestamp":140422612714,"id":78,"parentId":38,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":634890,"timestamp":140422600038,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778948394846,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":629858,"timestamp":140422612626,"id":74,"parentId":34,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":643485,"timestamp":140422599060,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778948394845,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":630347,"timestamp":140422612731,"id":79,"parentId":39,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":642932,"timestamp":140422600187,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778948394846,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":643169,"timestamp":140422612755,"id":81,"parentId":42,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":655363,"timestamp":140422600656,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778948394847,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":650088,"timestamp":140422611882,"id":69,"parentId":28,"tags":{},"startTime":1778948394858,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":663936,"timestamp":140422598107,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778948394844,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":649553,"timestamp":140422612767,"id":82,"parentId":44,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":661241,"timestamp":140422601119,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778948394847,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":650617,"timestamp":140422612745,"id":80,"parentId":40,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":663110,"timestamp":140422600294,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778948394847,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":655151,"timestamp":140422612802,"id":85,"parentId":47,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":666529,"timestamp":140422601464,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778948394848,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":658405,"timestamp":140422612789,"id":84,"parentId":46,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":669891,"timestamp":140422601350,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778948394848,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":663898,"timestamp":140422612818,"id":86,"parentId":48,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":675176,"timestamp":140422601591,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778948394848,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":664626,"timestamp":140422612830,"id":87,"parentId":49,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":673866,"timestamp":140422603643,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778948394850,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":673544,"timestamp":140422612853,"id":89,"parentId":51,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":682394,"timestamp":140422604050,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778948394850,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":673779,"timestamp":140422612840,"id":88,"parentId":50,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":682727,"timestamp":140422603923,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778948394850,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":672103,"timestamp":140422621378,"id":91,"parentId":31,"tags":{},"startTime":1778948394868,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":695047,"timestamp":140422598499,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778948394845,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":681120,"timestamp":140422612780,"id":83,"parentId":45,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":692688,"timestamp":140422601253,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778948394848,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":678518,"timestamp":140422620204,"id":90,"parentId":24,"tags":{},"startTime":1778948394866,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":703820,"timestamp":140422594942,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778948394841,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":689560,"timestamp":140422611671,"id":67,"parentId":26,"tags":{},"startTime":1778948394858,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":703445,"timestamp":140422597830,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778948394844,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":699065,"timestamp":140422612307,"id":71,"parentId":30,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":713053,"timestamp":140422598372,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778948394845,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":703719,"timestamp":140422612699,"id":77,"parentId":37,"tags":{},"startTime":1778948394859,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":716603,"timestamp":140422599865,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778948394846,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":687970,"timestamp":140422628666,"id":93,"parentId":43,"tags":{},"startTime":1778948394875,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":715868,"timestamp":140422600805,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778948394847,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":693792,"timestamp":140422627298,"id":92,"parentId":41,"tags":{},"startTime":1778948394874,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":720750,"timestamp":140422600389,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778948394847,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":715354,"timestamp":140422630964,"id":97,"parentId":54,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":741589,"timestamp":140422604797,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778948394851,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":730191,"timestamp":140422630907,"id":94,"parentId":23,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":766481,"timestamp":140422594695,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778948394841,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":730397,"timestamp":140422630998,"id":100,"parentId":58,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":755386,"timestamp":140422606050,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778948394852,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":752051,"timestamp":140422611775,"id":68,"parentId":27,"tags":{},"startTime":1778948394858,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":765941,"timestamp":140422597961,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778948394844,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":734571,"timestamp":140422631145,"id":101,"parentId":59,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":759500,"timestamp":140422606258,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778948394853,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":747441,"timestamp":140422631168,"id":102,"parentId":61,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":771798,"timestamp":140422606879,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778948394853,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":747644,"timestamp":140422631192,"id":104,"parentId":63,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":771684,"timestamp":140422607186,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778948394853,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":750172,"timestamp":140422630950,"id":96,"parentId":53,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":776520,"timestamp":140422604644,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778948394851,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":755495,"timestamp":140422630938,"id":95,"parentId":52,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":782009,"timestamp":140422604467,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778948394851,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":746888,"timestamp":140422641633,"id":105,"parentId":60,"tags":{},"startTime":1778948394888,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":782126,"timestamp":140422606433,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778948394853,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":735515,"timestamp":140422654176,"id":106,"parentId":57,"tags":{},"startTime":1778948394900,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":784269,"timestamp":140422605463,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778948394852,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":762985,"timestamp":140422630976,"id":98,"parentId":55,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":789003,"timestamp":140422604993,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778948394851,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":763361,"timestamp":140422630989,"id":99,"parentId":56,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":789151,"timestamp":140422605219,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778948394851,"traceId":"e91b96f321df6d44"},{"name":"is-page-static","duration":793176,"timestamp":140422631178,"id":103,"parentId":62,"tags":{},"startTime":1778948394877,"traceId":"e91b96f321df6d44"},{"name":"check-page","duration":817357,"timestamp":140422607044,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778948394853,"traceId":"e91b96f321df6d44"},{"name":"static-check","duration":834480,"timestamp":140422589965,"id":19,"parentId":1,"tags":{},"startTime":1778948394836,"traceId":"e91b96f321df6d44"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":610,"timestamp":140423434803,"id":108,"parentId":1,"tags":{},"startTime":1778948395681,"traceId":"e91b96f321df6d44"},{"name":"load-dotenv","duration":63,"timestamp":140423450042,"id":111,"parentId":110,"tags":{},"startTime":1778948395696,"traceId":"e91b96f321df6d44"},{"name":"run-export-path-map","duration":767,"timestamp":140423453108,"id":112,"parentId":110,"tags":{},"startTime":1778948395699,"traceId":"e91b96f321df6d44"},{"name":"next-export","duration":577483,"timestamp":140423448165,"id":110,"parentId":1,"tags":{},"startTime":1778948395694,"traceId":"e91b96f321df6d44"},{"name":"move-exported-app-not-found-","duration":605,"timestamp":140424028758,"id":113,"parentId":109,"tags":{},"startTime":1778948396275,"traceId":"e91b96f321df6d44"},{"name":"move-exported-app-global-error-","duration":613,"timestamp":140424029530,"id":114,"parentId":109,"tags":{},"startTime":1778948396276,"traceId":"e91b96f321df6d44"},{"name":"static-generation","duration":591107,"timestamp":140423441419,"id":109,"parentId":1,"tags":{},"startTime":1778948395688,"traceId":"e91b96f321df6d44"},{"name":"write-routes-manifest","duration":523,"timestamp":140424032829,"id":115,"parentId":1,"tags":{},"startTime":1778948396279,"traceId":"e91b96f321df6d44"},{"name":"print-tree-view","duration":5828,"timestamp":140424040559,"id":116,"parentId":1,"tags":{},"startTime":1778948396287,"traceId":"e91b96f321df6d44"},{"name":"write-route-bundle-stats","duration":16851,"timestamp":140424046427,"id":117,"parentId":1,"tags":{},"startTime":1778948396293,"traceId":"e91b96f321df6d44"},{"name":"telemetry-flush","duration":54043,"timestamp":140424063312,"id":118,"parentId":1,"tags":{},"startTime":1778948396310,"traceId":"e91b96f321df6d44"},{"name":"next-build","duration":17634639,"timestamp":140406482765,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778948378729,"traceId":"e91b96f321df6d44"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":6066733,"timestamp":140406736535,"id":14,"parentId":1,"tags":{},"startTime":1778948378983,"traceId":"e91b96f321df6d44"},{"name":"turbopack-build-events","duration":147,"timestamp":140407062951,"id":15,"parentId":1,"tags":{},"startTime":1778948379309,"traceId":"e91b96f321df6d44"},{"name":"run-typescript","duration":9579325,"timestamp":140412816708,"id":16,"parentId":1,"tags":{},"startTime":1778948385063,"traceId":"e91b96f321df6d44"},{"name":"static-check","duration":834480,"timestamp":140422589965,"id":19,"parentId":1,"tags":{},"startTime":1778948394836,"traceId":"e91b96f321df6d44"},{"name":"static-generation","duration":591107,"timestamp":140423441419,"id":109,"parentId":1,"tags":{},"startTime":1778948395688,"traceId":"e91b96f321df6d44"},{"name":"telemetry-flush","duration":54043,"timestamp":140424063312,"id":118,"parentId":1,"tags":{},"startTime":1778948396310,"traceId":"e91b96f321df6d44"},{"name":"next-build","duration":17634639,"timestamp":140406482765,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778948378729,"traceId":"e91b96f321df6d44"}]
|
|
@@ -2264,7 +2264,19 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2264
2264
|
title={`${w} working · ${i} idle · ${o} offline`}
|
|
2265
2265
|
data-fleet-pressure
|
|
2266
2266
|
>
|
|
2267
|
-
|
|
2267
|
+
{/* Round 373 / Loop: pressure-bar kicker label gains
|
|
2268
|
+
font-medium (fw 400 → 500). Sibling small-text fw
|
|
2269
|
+
lift family with R363 recent-row alias + R364
|
|
2270
|
+
legend-row label + R366 group-label count + R368
|
|
2271
|
+
+N more flows footer — extends to a 5th surface
|
|
2272
|
+
(the chip-row's 'pressure' label). At fontSize
|
|
2273
|
+
10 px tracking-wide against the chip's gray bg,
|
|
2274
|
+
the default fw 400 sat below the deliberate-data
|
|
2275
|
+
band; fw 500 brings it into parity with the
|
|
2276
|
+
chip-row 'working / online / active links' unit
|
|
2277
|
+
spans (chip-level font-medium R313). data-fleet-
|
|
2278
|
+
pressure-kicker attr exposes the kicker for tests. */}
|
|
2279
|
+
<span className="text-[10px] tracking-wide font-medium" data-fleet-pressure-kicker>pressure</span>
|
|
2268
2280
|
<span className="inline-flex h-1.5 w-16 rounded-full overflow-hidden" style={{ background: 'rgb(75 85 99 / 0.25)' }}>
|
|
2269
2281
|
{seg(w, isLight ? '#059669' : '#22c55e', 'working', 'working')}
|
|
2270
2282
|
{seg(i, isLight ? '#0d9488' : '#2dd4bf', 'idle', 'idle')}
|
package/package.json
CHANGED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* Round 373 verification: pressure-bar kicker label fontWeight 400 →
|
|
2
|
+
* 500. Sibling small-text fw lift family with R363/R364/R366/R368 —
|
|
3
|
+
* 5th surface in the family.
|
|
4
|
+
*
|
|
5
|
+
* Family snapshot post-R373:
|
|
6
|
+
* recent-row alias fw 500 (R363)
|
|
7
|
+
* legend-row label fw 500 (R364)
|
|
8
|
+
* group-label count fw 500 (R366)
|
|
9
|
+
* +N more flows footer fw 500 (R368)
|
|
10
|
+
* pressure-bar kicker fw 500 (R373, this round)
|
|
11
|
+
*
|
|
12
|
+
* Contract (cyber, fixture with mix so pressure bar renders):
|
|
13
|
+
* - [data-fleet-pressure-kicker] computed fontWeight === '500'.
|
|
14
|
+
* - Pre-R373 invariants:
|
|
15
|
+
* * text-[10px] (fontSize 10) preserved
|
|
16
|
+
* * tracking-wide (letter-spacing 0.025em) preserved
|
|
17
|
+
* * Parent [data-fleet-pressure] still has font-mono + chip
|
|
18
|
+
* structure
|
|
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
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
43
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
44
|
+
|
|
45
|
+
const page = await ctx.newPage();
|
|
46
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
47
|
+
await page.waitForSelector('[data-fleet-pressure-kicker]', { timeout: 15000 });
|
|
48
|
+
await page.waitForTimeout(300);
|
|
49
|
+
|
|
50
|
+
const probe = await page.evaluate(() => {
|
|
51
|
+
const kicker = document.querySelector('[data-fleet-pressure-kicker]');
|
|
52
|
+
const parent = document.querySelector('[data-fleet-pressure]');
|
|
53
|
+
const cs = kicker ? getComputedStyle(kicker) : null;
|
|
54
|
+
return {
|
|
55
|
+
fontWeight: cs?.fontWeight ?? null,
|
|
56
|
+
fontSize: cs?.fontSize ?? null,
|
|
57
|
+
letterSpacing: cs?.letterSpacing ?? null,
|
|
58
|
+
text: kicker?.textContent ?? null,
|
|
59
|
+
parentCls: parent?.getAttribute('class') ?? null,
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
await browser.close();
|
|
64
|
+
|
|
65
|
+
const results = {
|
|
66
|
+
font_weight_500: probe.fontWeight === '500',
|
|
67
|
+
font_size_10px: probe.fontSize === '10px',
|
|
68
|
+
// tracking-wide = 0.025em → at 10px font that's 0.25px computed.
|
|
69
|
+
letter_spacing_tracking_wide: /0\.25px|0\.025em/.test(probe.letterSpacing || ''),
|
|
70
|
+
text_is_pressure: probe.text === 'pressure',
|
|
71
|
+
parent_font_mono: /font-mono/.test(probe.parentCls || ''),
|
|
72
|
+
};
|
|
73
|
+
const ok = Object.values(results).every(Boolean);
|
|
74
|
+
console.log(`${ok ? '✅' : '❌'} pressure-bar kicker fw 400 → 500:`, JSON.stringify(results),
|
|
75
|
+
'\n probe:', probe);
|
|
76
|
+
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{zm1r0H_nVzaIiyCgIJm0j → Dd0r7WlqwB9Npj1kWYIAJ}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|