@sleep2agi/agent-network-dashboard 0.5.1-preview.65 → 0.5.1-preview.66
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 +3 -3
- 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/{0yyhrzn_pc~-q.js → 06xpgr~ljg-so.js} +1 -1
- package/.next/static/chunks/{0ol.8d~ydog6v.js → 0bmuo_~tnu3eu.js} +1 -1
- package/.next/static/chunks/{0ml.avu6isv88.js → 0oge56y7wyv07.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +21 -14
- package/package.json +1 -1
- package/scripts/topo-hub-halo-light-trough-test.mjs +88 -0
- /package/.next/static/{x6JL9Xw5E9WSyZFGUoJi7 → nZA6I2WlboppxV3ccft1K}/_buildManifest.js +0 -0
- /package/.next/static/{x6JL9Xw5E9WSyZFGUoJi7 → nZA6I2WlboppxV3ccft1K}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{x6JL9Xw5E9WSyZFGUoJi7 → nZA6I2WlboppxV3ccft1K}/_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.64"],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.65"],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.65"],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":370,"timestamp":150912912750,"id":4,"parentId":1,"tags":{},"startTime":1778958885159,"traceId":"e7b0c9a8d26bddf0"},{"name":"load-custom-routes","duration":646,"timestamp":150912913315,"id":5,"parentId":1,"tags":{},"startTime":1778958885160,"traceId":"e7b0c9a8d26bddf0"},{"name":"create-dist-dir","duration":981,"timestamp":150912914041,"id":6,"parentId":1,"tags":{},"startTime":1778958885160,"traceId":"e7b0c9a8d26bddf0"},{"name":"clean","duration":36912,"timestamp":150912915739,"id":7,"parentId":1,"tags":{},"startTime":1778958885162,"traceId":"e7b0c9a8d26bddf0"},{"name":"discover-routes","duration":25360,"timestamp":150913038717,"id":8,"parentId":1,"tags":{},"startTime":1778958885285,"traceId":"e7b0c9a8d26bddf0"},{"name":"create-root-mapping","duration":142,"timestamp":150913064141,"id":9,"parentId":1,"tags":{},"startTime":1778958885310,"traceId":"e7b0c9a8d26bddf0"},{"name":"generate-route-types","duration":20628,"timestamp":150913066687,"id":10,"parentId":1,"tags":{},"startTime":1778958885313,"traceId":"e7b0c9a8d26bddf0"},{"name":"public-dir-conflict-check","duration":100,"timestamp":150913087392,"id":11,"parentId":1,"tags":{},"startTime":1778958885334,"traceId":"e7b0c9a8d26bddf0"},{"name":"generate-routes-manifest","duration":4778,"timestamp":150913087606,"id":12,"parentId":1,"tags":{},"startTime":1778958885334,"traceId":"e7b0c9a8d26bddf0"},{"name":"run-turbopack","duration":6024413,"timestamp":150913097796,"id":14,"parentId":1,"tags":{},"startTime":1778958885344,"traceId":"e7b0c9a8d26bddf0"},{"name":"turbopack-build-events","duration":73,"timestamp":150913384490,"id":15,"parentId":1,"tags":{},"startTime":1778958885631,"traceId":"e7b0c9a8d26bddf0"},{"name":"run-typescript","duration":9334008,"timestamp":150919134175,"id":16,"parentId":1,"tags":{},"startTime":1778958891380,"traceId":"e7b0c9a8d26bddf0"},{"name":"generate-required-server-files","duration":2276,"timestamp":150928469241,"id":18,"parentId":1,"tags":{},"startTime":1778958900716,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-static-error-page","duration":14709,"timestamp":150928637217,"id":20,"parentId":19,"tags":{},"startTime":1778958900883,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":486448,"timestamp":150928654551,"id":65,"parentId":22,"tags":{},"startTime":1778958900901,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":500713,"timestamp":150928640469,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778958900887,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":600234,"timestamp":150928654653,"id":66,"parentId":25,"tags":{},"startTime":1778958900901,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":611398,"timestamp":150928643623,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778958900890,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":647577,"timestamp":150928654881,"id":69,"parentId":28,"tags":{},"startTime":1778958900901,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":658450,"timestamp":150928644098,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778958900890,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":659331,"timestamp":150928655360,"id":72,"parentId":32,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":671528,"timestamp":150928644883,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778958900891,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":661825,"timestamp":150928655114,"id":70,"parentId":29,"tags":{},"startTime":1778958900901,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":672770,"timestamp":150928644227,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778958900890,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":662534,"timestamp":150928654723,"id":67,"parentId":26,"tags":{},"startTime":1778958900901,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":673495,"timestamp":150928643809,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778958900890,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":686368,"timestamp":150928655610,"id":74,"parentId":34,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":696875,"timestamp":150928645209,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778958900891,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":691903,"timestamp":150928655704,"id":77,"parentId":37,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":701592,"timestamp":150928646084,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778958900892,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":695225,"timestamp":150928655282,"id":71,"parentId":30,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":706190,"timestamp":150928644394,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778958900891,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":697408,"timestamp":150928655719,"id":78,"parentId":38,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":706938,"timestamp":150928646244,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778958900893,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":703236,"timestamp":150928654810,"id":68,"parentId":27,"tags":{},"startTime":1778958900901,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":714185,"timestamp":150928643951,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778958900890,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":702890,"timestamp":150928655745,"id":80,"parentId":40,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":712223,"timestamp":150928646495,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778958900893,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":709277,"timestamp":150928655666,"id":76,"parentId":36,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":719156,"timestamp":150928645871,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778958900892,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":709815,"timestamp":150928655528,"id":73,"parentId":33,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":720340,"timestamp":150928645060,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778958900891,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":715319,"timestamp":150928655754,"id":81,"parentId":42,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":724290,"timestamp":150928646896,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778958900893,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":717477,"timestamp":150928655767,"id":82,"parentId":44,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":725905,"timestamp":150928647392,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778958900894,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":719505,"timestamp":150928655644,"id":75,"parentId":35,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":729864,"timestamp":150928645349,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778958900892,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":720920,"timestamp":150928655835,"id":86,"parentId":48,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":728873,"timestamp":150928647944,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778958900894,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":724789,"timestamp":150928655732,"id":79,"parentId":39,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":734200,"timestamp":150928646368,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778958900893,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":731713,"timestamp":150928655857,"id":88,"parentId":50,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":739377,"timestamp":150928648257,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778958900895,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":732260,"timestamp":150928655781,"id":83,"parentId":45,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":740550,"timestamp":150928647544,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778958900894,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":732470,"timestamp":150928655810,"id":84,"parentId":46,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":740647,"timestamp":150928647670,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778958900894,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":736915,"timestamp":150928655848,"id":87,"parentId":49,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":744703,"timestamp":150928648122,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778958900894,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":735595,"timestamp":150928662562,"id":93,"parentId":43,"tags":{},"startTime":1778958900909,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":751125,"timestamp":150928647077,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778958900893,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":739190,"timestamp":150928659186,"id":90,"parentId":24,"tags":{},"startTime":1778958900905,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":757367,"timestamp":150928641071,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778958900887,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":740846,"timestamp":150928660357,"id":91,"parentId":31,"tags":{},"startTime":1778958900907,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":756756,"timestamp":150928644543,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778958900891,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":745156,"timestamp":150928661214,"id":92,"parentId":41,"tags":{},"startTime":1778958900907,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":759814,"timestamp":150928646613,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778958900893,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":760297,"timestamp":150928655820,"id":85,"parentId":47,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":768367,"timestamp":150928647817,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778958900894,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":760524,"timestamp":150928655870,"id":89,"parentId":51,"tags":{},"startTime":1778958900902,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":768063,"timestamp":150928648376,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778958900895,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":799050,"timestamp":150928654277,"id":64,"parentId":21,"tags":{},"startTime":1778958900901,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":814571,"timestamp":150928638834,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778958900885,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":790175,"timestamp":150928666940,"id":94,"parentId":23,"tags":{},"startTime":1778958900913,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":816418,"timestamp":150928640766,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778958900887,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":801069,"timestamp":150928666969,"id":95,"parentId":52,"tags":{},"startTime":1778958900913,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":819240,"timestamp":150928648866,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778958900895,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":801076,"timestamp":150928667173,"id":101,"parentId":59,"tags":{},"startTime":1778958900913,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":817568,"timestamp":150928650730,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778958900897,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":814774,"timestamp":150928667043,"id":99,"parentId":56,"tags":{},"startTime":1778958900913,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":832129,"timestamp":150928649865,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778958900896,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":815340,"timestamp":150928667193,"id":102,"parentId":61,"tags":{},"startTime":1778958900913,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":831334,"timestamp":150928651249,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778958900898,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":825521,"timestamp":150928666984,"id":96,"parentId":53,"tags":{},"startTime":1778958900913,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":843459,"timestamp":150928649103,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778958900895,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":825462,"timestamp":150928667206,"id":103,"parentId":62,"tags":{},"startTime":1778958900913,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":841276,"timestamp":150928651416,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778958900898,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":825760,"timestamp":150928666995,"id":97,"parentId":54,"tags":{},"startTime":1778958900913,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":843452,"timestamp":150928649323,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778958900896,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":815566,"timestamp":150928677625,"id":105,"parentId":60,"tags":{},"startTime":1778958900924,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":842348,"timestamp":150928650890,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778958900897,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":826150,"timestamp":150928667216,"id":104,"parentId":63,"tags":{},"startTime":1778958900913,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":841805,"timestamp":150928651597,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778958900898,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":826821,"timestamp":150928667025,"id":98,"parentId":55,"tags":{},"startTime":1778958900913,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":844276,"timestamp":150928649600,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778958900896,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":811813,"timestamp":150928686534,"id":106,"parentId":57,"tags":{},"startTime":1778958900933,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":848266,"timestamp":150928650124,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778958900896,"traceId":"e7b0c9a8d26bddf0"},{"name":"is-page-static","duration":833591,"timestamp":150928667053,"id":100,"parentId":58,"tags":{},"startTime":1778958900913,"traceId":"e7b0c9a8d26bddf0"},{"name":"check-page","duration":850131,"timestamp":150928650555,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778958900897,"traceId":"e7b0c9a8d26bddf0"},{"name":"static-check","duration":864541,"timestamp":150928636200,"id":19,"parentId":1,"tags":{},"startTime":1778958900882,"traceId":"e7b0c9a8d26bddf0"}]
|
|
2
|
-
[{"name":"write-routes-manifest","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":315,"timestamp":151209515527,"id":4,"parentId":1,"tags":{},"startTime":1778959181762,"traceId":"8d720ab1517efe94"},{"name":"load-custom-routes","duration":470,"timestamp":151209516020,"id":5,"parentId":1,"tags":{},"startTime":1778959181762,"traceId":"8d720ab1517efe94"},{"name":"create-dist-dir","duration":787,"timestamp":151209516533,"id":6,"parentId":1,"tags":{},"startTime":1778959181763,"traceId":"8d720ab1517efe94"},{"name":"clean","duration":41431,"timestamp":151209518037,"id":7,"parentId":1,"tags":{},"startTime":1778959181764,"traceId":"8d720ab1517efe94"},{"name":"discover-routes","duration":28105,"timestamp":151209650577,"id":8,"parentId":1,"tags":{},"startTime":1778959181897,"traceId":"8d720ab1517efe94"},{"name":"create-root-mapping","duration":139,"timestamp":151209678747,"id":9,"parentId":1,"tags":{},"startTime":1778959181925,"traceId":"8d720ab1517efe94"},{"name":"generate-route-types","duration":19344,"timestamp":151209681780,"id":10,"parentId":1,"tags":{},"startTime":1778959181928,"traceId":"8d720ab1517efe94"},{"name":"public-dir-conflict-check","duration":101,"timestamp":151209701208,"id":11,"parentId":1,"tags":{},"startTime":1778959181947,"traceId":"8d720ab1517efe94"},{"name":"generate-routes-manifest","duration":5452,"timestamp":151209701428,"id":12,"parentId":1,"tags":{},"startTime":1778959181948,"traceId":"8d720ab1517efe94"},{"name":"run-turbopack","duration":5864622,"timestamp":151209713086,"id":14,"parentId":1,"tags":{},"startTime":1778959181959,"traceId":"8d720ab1517efe94"},{"name":"turbopack-build-events","duration":116,"timestamp":151210009716,"id":15,"parentId":1,"tags":{},"startTime":1778959182256,"traceId":"8d720ab1517efe94"},{"name":"run-typescript","duration":9212491,"timestamp":151215600224,"id":16,"parentId":1,"tags":{},"startTime":1778959187847,"traceId":"8d720ab1517efe94"},{"name":"generate-required-server-files","duration":2273,"timestamp":151224813829,"id":18,"parentId":1,"tags":{},"startTime":1778959197060,"traceId":"8d720ab1517efe94"},{"name":"check-static-error-page","duration":11033,"timestamp":151224965500,"id":20,"parentId":19,"tags":{},"startTime":1778959197212,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":465713,"timestamp":151224978741,"id":65,"parentId":22,"tags":{},"startTime":1778959197225,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":476914,"timestamp":151224967707,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778959197214,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":541071,"timestamp":151224978891,"id":66,"parentId":25,"tags":{},"startTime":1778959197225,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":550126,"timestamp":151224969991,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778959197216,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":546635,"timestamp":151224980236,"id":67,"parentId":26,"tags":{},"startTime":1778959197227,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":556765,"timestamp":151224970173,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778959197216,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":551100,"timestamp":151224980507,"id":69,"parentId":28,"tags":{},"startTime":1778959197227,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":561244,"timestamp":151224970415,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778959197217,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":550872,"timestamp":151224981237,"id":73,"parentId":33,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":560977,"timestamp":151224971182,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778959197217,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":563952,"timestamp":151224980388,"id":68,"parentId":27,"tags":{},"startTime":1778959197227,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":574297,"timestamp":151224970278,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778959197217,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":577451,"timestamp":151224981055,"id":72,"parentId":32,"tags":{},"startTime":1778959197227,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":587489,"timestamp":151224971084,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778959197217,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":577378,"timestamp":151224981351,"id":75,"parentId":35,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":587420,"timestamp":151224971342,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778959197218,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":582147,"timestamp":151224981323,"id":74,"parentId":34,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":592266,"timestamp":151224971263,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778959197218,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":586722,"timestamp":151224980970,"id":71,"parentId":30,"tags":{},"startTime":1778959197227,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":597049,"timestamp":151224970698,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778959197217,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":590180,"timestamp":151224981418,"id":78,"parentId":38,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":599781,"timestamp":151224971874,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778959197218,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":593941,"timestamp":151224981401,"id":77,"parentId":37,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":603622,"timestamp":151224971770,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778959197218,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":597359,"timestamp":151224981372,"id":76,"parentId":36,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":607113,"timestamp":151224971662,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778959197218,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":598109,"timestamp":151224981429,"id":79,"parentId":39,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":607639,"timestamp":151224971947,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778959197218,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":601390,"timestamp":151224981465,"id":82,"parentId":44,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":610366,"timestamp":151224972534,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778959197219,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":606745,"timestamp":151224980802,"id":70,"parentId":29,"tags":{},"startTime":1778959197227,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":617058,"timestamp":151224970542,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778959197217,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":610244,"timestamp":151224981503,"id":85,"parentId":47,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":619070,"timestamp":151224972749,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778959197219,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":613247,"timestamp":151224981456,"id":81,"parentId":42,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":622490,"timestamp":151224972267,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778959197219,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":614987,"timestamp":151224981475,"id":83,"parentId":45,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":623892,"timestamp":151224972617,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778959197219,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":615185,"timestamp":151224981489,"id":84,"parentId":46,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":624030,"timestamp":151224972678,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778959197219,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":615336,"timestamp":151224981527,"id":87,"parentId":49,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":622804,"timestamp":151224974094,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778959197220,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":620652,"timestamp":151224981513,"id":86,"parentId":48,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":629375,"timestamp":151224972830,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778959197219,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":620928,"timestamp":151224981549,"id":89,"parentId":51,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":628198,"timestamp":151224974314,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778959197221,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":621106,"timestamp":151224981540,"id":88,"parentId":50,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":628425,"timestamp":151224974246,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778959197221,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":621321,"timestamp":151224981443,"id":80,"parentId":40,"tags":{},"startTime":1778959197228,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":630774,"timestamp":151224972025,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778959197218,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":615147,"timestamp":151224987759,"id":90,"parentId":24,"tags":{},"startTime":1778959197234,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":634784,"timestamp":151224968144,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778959197214,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":615160,"timestamp":151224988779,"id":91,"parentId":31,"tags":{},"startTime":1778959197235,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":633138,"timestamp":151224970843,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778959197217,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":625023,"timestamp":151224990939,"id":93,"parentId":43,"tags":{},"startTime":1778959197237,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":643693,"timestamp":151224972356,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778959197219,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":626582,"timestamp":151224989632,"id":92,"parentId":41,"tags":{},"startTime":1778959197236,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":644157,"timestamp":151224972089,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778959197218,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":667195,"timestamp":151224978431,"id":64,"parentId":21,"tags":{},"startTime":1778959197225,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":679083,"timestamp":151224966618,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778959197213,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":659573,"timestamp":151224993362,"id":100,"parentId":58,"tags":{},"startTime":1778959197240,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":677369,"timestamp":151224975623,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778959197222,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":671117,"timestamp":151224993327,"id":97,"parentId":54,"tags":{},"startTime":1778959197240,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":689731,"timestamp":151224974814,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778959197221,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":679202,"timestamp":151224993336,"id":98,"parentId":55,"tags":{},"startTime":1778959197240,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":697662,"timestamp":151224974949,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778959197221,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":679496,"timestamp":151224993266,"id":94,"parentId":23,"tags":{},"startTime":1778959197240,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":704872,"timestamp":151224967936,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778959197214,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":681636,"timestamp":151224993487,"id":102,"parentId":61,"tags":{},"startTime":1778959197240,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":699000,"timestamp":151224976180,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778959197222,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":687816,"timestamp":151224993313,"id":96,"parentId":53,"tags":{},"startTime":1778959197240,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":706476,"timestamp":151224974704,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778959197221,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":677566,"timestamp":151225005079,"id":105,"parentId":57,"tags":{},"startTime":1778959197251,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":707421,"timestamp":151224975261,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778959197222,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":691173,"timestamp":151224993515,"id":104,"parentId":63,"tags":{},"startTime":1778959197240,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":708361,"timestamp":151224976367,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778959197223,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":692658,"timestamp":151224993503,"id":103,"parentId":62,"tags":{},"startTime":1778959197240,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":709921,"timestamp":151224976277,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778959197223,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":673572,"timestamp":151225013906,"id":106,"parentId":60,"tags":{},"startTime":1778959197260,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":711625,"timestamp":151224975894,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778959197222,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":696069,"timestamp":151224993471,"id":101,"parentId":59,"tags":{},"startTime":1778959197240,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":713814,"timestamp":151224975764,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778959197222,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":696722,"timestamp":151224993349,"id":99,"parentId":56,"tags":{},"startTime":1778959197240,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":714992,"timestamp":151224975099,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778959197221,"traceId":"8d720ab1517efe94"},{"name":"is-page-static","duration":699310,"timestamp":151224993290,"id":95,"parentId":52,"tags":{},"startTime":1778959197240,"traceId":"8d720ab1517efe94"},{"name":"check-page","duration":718027,"timestamp":151224974604,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778959197221,"traceId":"8d720ab1517efe94"},{"name":"static-check","duration":728002,"timestamp":151224964684,"id":19,"parentId":1,"tags":{},"startTime":1778959197211,"traceId":"8d720ab1517efe94"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":735,"timestamp":151225703898,"id":108,"parentId":1,"tags":{},"startTime":1778959197950,"traceId":"8d720ab1517efe94"},{"name":"load-dotenv","duration":46,"timestamp":151225716296,"id":111,"parentId":110,"tags":{},"startTime":1778959197963,"traceId":"8d720ab1517efe94"},{"name":"run-export-path-map","duration":492,"timestamp":151225719248,"id":112,"parentId":110,"tags":{},"startTime":1778959197966,"traceId":"8d720ab1517efe94"},{"name":"next-export","duration":612268,"timestamp":151225715076,"id":110,"parentId":1,"tags":{},"startTime":1778959197961,"traceId":"8d720ab1517efe94"},{"name":"move-exported-app-not-found-","duration":627,"timestamp":151226330497,"id":113,"parentId":109,"tags":{},"startTime":1778959198577,"traceId":"8d720ab1517efe94"},{"name":"move-exported-app-global-error-","duration":424,"timestamp":151226331246,"id":114,"parentId":109,"tags":{},"startTime":1778959198578,"traceId":"8d720ab1517efe94"},{"name":"static-generation","duration":625369,"timestamp":151225708778,"id":109,"parentId":1,"tags":{},"startTime":1778959197955,"traceId":"8d720ab1517efe94"},{"name":"write-routes-manifest","duration":451,"timestamp":151226334391,"id":115,"parentId":1,"tags":{},"startTime":1778959198581,"traceId":"8d720ab1517efe94"},{"name":"print-tree-view","duration":4077,"timestamp":151226353291,"id":116,"parentId":1,"tags":{},"startTime":1778959198600,"traceId":"8d720ab1517efe94"},{"name":"write-route-bundle-stats","duration":11307,"timestamp":151226357397,"id":117,"parentId":1,"tags":{},"startTime":1778959198604,"traceId":"8d720ab1517efe94"},{"name":"telemetry-flush","duration":23585,"timestamp":151226368731,"id":118,"parentId":1,"tags":{},"startTime":1778959198615,"traceId":"8d720ab1517efe94"},{"name":"next-build","duration":16934711,"timestamp":151209457627,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778959181704,"traceId":"8d720ab1517efe94"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":5864622,"timestamp":151209713086,"id":14,"parentId":1,"tags":{},"startTime":1778959181959,"traceId":"8d720ab1517efe94"},{"name":"turbopack-build-events","duration":116,"timestamp":151210009716,"id":15,"parentId":1,"tags":{},"startTime":1778959182256,"traceId":"8d720ab1517efe94"},{"name":"run-typescript","duration":9212491,"timestamp":151215600224,"id":16,"parentId":1,"tags":{},"startTime":1778959187847,"traceId":"8d720ab1517efe94"},{"name":"static-check","duration":728002,"timestamp":151224964684,"id":19,"parentId":1,"tags":{},"startTime":1778959197211,"traceId":"8d720ab1517efe94"},{"name":"static-generation","duration":625369,"timestamp":151225708778,"id":109,"parentId":1,"tags":{},"startTime":1778959197955,"traceId":"8d720ab1517efe94"},{"name":"telemetry-flush","duration":23585,"timestamp":151226368731,"id":118,"parentId":1,"tags":{},"startTime":1778959198615,"traceId":"8d720ab1517efe94"},{"name":"next-build","duration":16934711,"timestamp":151209457627,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778959181704,"traceId":"8d720ab1517efe94"}]
|
|
@@ -5374,28 +5374,35 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
5374
5374
|
// Round 404 / Loop: hub-halo cyber trough opacity 0.08 →
|
|
5375
5375
|
// 0.10. Pre-R404 the breath's low-point sat at α=0.08
|
|
5376
5376
|
// cyber (per R84 family tuning) — the halo nearly faded
|
|
5377
|
-
// out at trough on the dark canvas.
|
|
5378
|
-
//
|
|
5379
|
-
//
|
|
5380
|
-
//
|
|
5381
|
-
//
|
|
5382
|
-
//
|
|
5383
|
-
//
|
|
5384
|
-
//
|
|
5385
|
-
//
|
|
5386
|
-
//
|
|
5387
|
-
//
|
|
5377
|
+
// out at trough on the dark canvas. R404 lifts cyber
|
|
5378
|
+
// trough to 0.10. Per-bucket peak amplitudes [0.16/0.20/
|
|
5379
|
+
// 0.26/0.32] stay exactly tuned.
|
|
5380
|
+
//
|
|
5381
|
+
// Round 405 / Loop: hub-halo LIGHT trough 0.32 → 0.34 —
|
|
5382
|
+
// symmetric +0.02 lift to mirror R404's cyber treatment
|
|
5383
|
+
// across both themes. Pre-R405 only cyber got the lift
|
|
5384
|
+
// (R404 docstring noted "light already at the strong
|
|
5385
|
+
// end" as deliberate); but the cyber/light delta in
|
|
5386
|
+
// R404 was an inconsistency in the family pattern.
|
|
5387
|
+
// R405 closes the symmetry — both themes get +0.02
|
|
5388
|
+
// baseline lift, so the breath low-point reads with
|
|
5389
|
+
// matching confidence regardless of theme. Light peak
|
|
5390
|
+
// array [0.52/0.58/0.65/0.72] stays tuned.
|
|
5391
|
+
//
|
|
5392
|
+
// Stale-state legibility lift family (5 anchors now):
|
|
5388
5393
|
// R317 subordinate-text gray-500 → gray-400
|
|
5389
5394
|
// R358 freshness floor 0.25 → 0.30
|
|
5390
5395
|
// R372 minimap offline-dot opacity 0.5 → 0.6
|
|
5391
|
-
// R404 hub-halo cyber trough 0.08 → 0.10
|
|
5396
|
+
// R404 hub-halo cyber trough 0.08 → 0.10
|
|
5397
|
+
// R405 hub-halo light trough 0.32 → 0.34 (this round)
|
|
5398
|
+
//
|
|
5392
5399
|
// R84 per-bucket peak/dur + R245 ease-in-out spline
|
|
5393
5400
|
// keySplines all preserved. Test fixture probes the
|
|
5394
5401
|
// SMIL <animate> values via data-topo-hub-halo-trough
|
|
5395
|
-
// attr.
|
|
5402
|
+
// attr (now exposes both light + cyber resolved values).
|
|
5396
5403
|
const peakLight = [0.52, 0.58, 0.65, 0.72][busy];
|
|
5397
5404
|
const peakDark = [0.16, 0.20, 0.26, 0.32][busy];
|
|
5398
|
-
const troughLight = 0.
|
|
5405
|
+
const troughLight = 0.34;
|
|
5399
5406
|
const troughDark = 0.10;
|
|
5400
5407
|
const dur = [4.0, 3.2, 2.7, 2.4][busy];
|
|
5401
5408
|
const valuesLight = `${troughLight};${peakLight};${troughLight}`;
|
package/package.json
CHANGED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* Round 405 verification: hub-halo LIGHT trough 0.32 → 0.34 —
|
|
2
|
+
* symmetrizes R404 cyber treatment across both themes. Probes
|
|
3
|
+
* both cyber and light theme states via two browser contexts.
|
|
4
|
+
*
|
|
5
|
+
* Contract:
|
|
6
|
+
* - Idle fixture (workingCount=0, bucket=0):
|
|
7
|
+
* * cyber: data-topo-hub-halo-trough === '0.1' (R404 invariant)
|
|
8
|
+
* * light: data-topo-hub-halo-trough === '0.34' (R405 lift)
|
|
9
|
+
* * both: data-hub-busyness === '0'
|
|
10
|
+
* * both: data-topo-hub-halo-peak per-theme invariant
|
|
11
|
+
* (cyber 0.16, light 0.52)
|
|
12
|
+
* - Source-file verification:
|
|
13
|
+
* * const troughLight = 0.34;
|
|
14
|
+
* * const troughDark = 0.10;
|
|
15
|
+
*/
|
|
16
|
+
import { chromium } from 'playwright';
|
|
17
|
+
import { readFileSync } from 'node:fs';
|
|
18
|
+
|
|
19
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
20
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
21
|
+
|
|
22
|
+
async function probeTheme(theme) {
|
|
23
|
+
const browser = await chromium.launch({ headless: true });
|
|
24
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
25
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
26
|
+
await ctx.addInitScript((t) => {
|
|
27
|
+
try { localStorage.setItem('anet-theme', t); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
28
|
+
}, theme);
|
|
29
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
30
|
+
const r = await route.fetch();
|
|
31
|
+
const b = await r.json();
|
|
32
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
33
|
+
const mk = (alias) => ({
|
|
34
|
+
alias, status: 'idle', model: 'claude-opus-4', runtime: 'claude-code-cli',
|
|
35
|
+
network_id: nid, project_dir: null,
|
|
36
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
37
|
+
});
|
|
38
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [ mk('alpha'), mk('beta') ] } });
|
|
39
|
+
});
|
|
40
|
+
await ctx.route('**/api/hub/messages*', (r) => r.fulfill({ json: { messages: [] } }));
|
|
41
|
+
await ctx.route('**/api/hub/tasks*', (r) => r.fulfill({ json: { tasks: [] } }));
|
|
42
|
+
const page = await ctx.newPage();
|
|
43
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
44
|
+
await page.waitForSelector('[data-hub-busyness]', { timeout: 15000 });
|
|
45
|
+
await page.waitForTimeout(400);
|
|
46
|
+
const probe = await page.evaluate(() => {
|
|
47
|
+
const halo = document.querySelector('[data-hub-busyness]');
|
|
48
|
+
if (!halo) return null;
|
|
49
|
+
return {
|
|
50
|
+
busyness: halo.getAttribute('data-hub-busyness'),
|
|
51
|
+
trough: halo.getAttribute('data-topo-hub-halo-trough'),
|
|
52
|
+
peak: halo.getAttribute('data-topo-hub-halo-peak'),
|
|
53
|
+
fill: halo.getAttribute('fill'),
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
await browser.close();
|
|
57
|
+
return probe;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const cyber = await probeTheme('cyber');
|
|
61
|
+
const light = await probeTheme('light');
|
|
62
|
+
|
|
63
|
+
const fileText = readFileSync('/home/vansin/agent-network-dashboard/app/components/TopoGraph.tsx', 'utf8');
|
|
64
|
+
const sourceLight034 = /const troughLight\s*=\s*0\.34;/.test(fileText);
|
|
65
|
+
const sourceDark010 = /const troughDark\s*=\s*0\.10;/.test(fileText);
|
|
66
|
+
const sourceLightPeak = /const peakLight\s*=\s*\[0\.52, 0\.58, 0\.65, 0\.72\]\[busy\];/.test(fileText);
|
|
67
|
+
|
|
68
|
+
const results = {
|
|
69
|
+
// Cyber R404 invariant
|
|
70
|
+
cyber_busy_0: cyber?.busyness === '0',
|
|
71
|
+
cyber_trough_0_1: cyber?.trough === '0.1',
|
|
72
|
+
cyber_peak_0_16: cyber?.peak === '0.16',
|
|
73
|
+
cyber_fill_dark: cyber?.fill === '#10b981',
|
|
74
|
+
// Light R405 lift
|
|
75
|
+
light_busy_0: light?.busyness === '0',
|
|
76
|
+
light_trough_0_34: light?.trough === '0.34',
|
|
77
|
+
light_peak_0_52: light?.peak === '0.52',
|
|
78
|
+
light_fill_light: light?.fill === '#d1fae5',
|
|
79
|
+
// Source-file canonical wire
|
|
80
|
+
source_light_034: sourceLight034,
|
|
81
|
+
source_dark_010: sourceDark010,
|
|
82
|
+
source_light_peak: sourceLightPeak,
|
|
83
|
+
};
|
|
84
|
+
const ok = Object.values(results).every(Boolean);
|
|
85
|
+
console.log(`${ok ? '✅' : '❌'} hub-halo light trough 0.32 → 0.34:`, JSON.stringify(results),
|
|
86
|
+
'\n cyber:', cyber,
|
|
87
|
+
'\n light:', light);
|
|
88
|
+
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{x6JL9Xw5E9WSyZFGUoJi7 → nZA6I2WlboppxV3ccft1K}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|