@sleep2agi/agent-network-dashboard 0.4.6-preview.191 → 0.4.6-preview.192
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/prerender-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/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/{0k_ko8c_wcaa2.js → 0kcsv4nfvgo94.js} +3 -3
- package/.next/static/chunks/{0h3od5x-eekc_.js → 0qou_az51jxjv.js} +1 -1
- package/.next/static/chunks/{07r1dbd70cp.g.js → 0tzzu8s4fo-gh.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +17 -0
- package/package.json +1 -1
- package/scripts/topo-edge-badge-ripple-test.mjs +111 -0
- /package/.next/static/{73xpyKgxUshGvnn998bi4 → YYQWV4xs3ykuROv0xY0zx}/_buildManifest.js +0 -0
- /package/.next/static/{73xpyKgxUshGvnn998bi4 → YYQWV4xs3ykuROv0xY0zx}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{73xpyKgxUshGvnn998bi4 → YYQWV4xs3ykuROv0xY0zx}/_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.4.6-preview.191"],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.4.6-preview.192"],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.4.6-preview.
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.6-preview.192"],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":266,"timestamp":69160738521,"id":4,"parentId":1,"tags":{},"startTime":1778877132985,"traceId":"d0cbb9ed9e428933"},{"name":"load-custom-routes","duration":459,"timestamp":69160738940,"id":5,"parentId":1,"tags":{},"startTime":1778877132985,"traceId":"d0cbb9ed9e428933"},{"name":"create-dist-dir","duration":658,"timestamp":69160739439,"id":6,"parentId":1,"tags":{},"startTime":1778877132986,"traceId":"d0cbb9ed9e428933"},{"name":"clean","duration":484,"timestamp":69160740710,"id":7,"parentId":1,"tags":{},"startTime":1778877132987,"traceId":"d0cbb9ed9e428933"},{"name":"discover-routes","duration":8748,"timestamp":69160825146,"id":8,"parentId":1,"tags":{},"startTime":1778877133071,"traceId":"d0cbb9ed9e428933"},{"name":"create-root-mapping","duration":133,"timestamp":69160833949,"id":9,"parentId":1,"tags":{},"startTime":1778877133080,"traceId":"d0cbb9ed9e428933"},{"name":"generate-route-types","duration":32135,"timestamp":69160836302,"id":10,"parentId":1,"tags":{},"startTime":1778877133083,"traceId":"d0cbb9ed9e428933"},{"name":"public-dir-conflict-check","duration":95,"timestamp":69160868586,"id":11,"parentId":1,"tags":{},"startTime":1778877133115,"traceId":"d0cbb9ed9e428933"},{"name":"generate-routes-manifest","duration":4032,"timestamp":69160868799,"id":12,"parentId":1,"tags":{},"startTime":1778877133115,"traceId":"d0cbb9ed9e428933"},{"name":"run-turbopack","duration":5499298,"timestamp":69160877634,"id":14,"parentId":1,"tags":{},"startTime":1778877133124,"traceId":"d0cbb9ed9e428933"},{"name":"turbopack-build-events","duration":99,"timestamp":69161164346,"id":15,"parentId":1,"tags":{},"startTime":1778877133411,"traceId":"d0cbb9ed9e428933"},{"name":"run-typescript","duration":8946738,"timestamp":69166388903,"id":16,"parentId":1,"tags":{},"startTime":1778877138635,"traceId":"d0cbb9ed9e428933"},{"name":"generate-required-server-files","duration":2582,"timestamp":69175336710,"id":18,"parentId":1,"tags":{},"startTime":1778877147583,"traceId":"d0cbb9ed9e428933"},{"name":"check-static-error-page","duration":14569,"timestamp":69175507824,"id":20,"parentId":19,"tags":{},"startTime":1778877147754,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":389068,"timestamp":69175525335,"id":63,"parentId":22,"tags":{},"startTime":1778877147772,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":403530,"timestamp":69175511050,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778877147757,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":503584,"timestamp":69175527788,"id":69,"parentId":30,"tags":{},"startTime":1778877147774,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":516701,"timestamp":69175514781,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778877147761,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":540760,"timestamp":69175525459,"id":64,"parentId":25,"tags":{},"startTime":1778877147772,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":552538,"timestamp":69175514105,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778877147760,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":542897,"timestamp":69175528024,"id":70,"parentId":32,"tags":{},"startTime":1778877147774,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":555827,"timestamp":69175515171,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778877147761,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":547713,"timestamp":69175525575,"id":65,"parentId":26,"tags":{},"startTime":1778877147772,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":559076,"timestamp":69175514283,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778877147761,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":548508,"timestamp":69175528170,"id":72,"parentId":34,"tags":{},"startTime":1778877147774,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":561336,"timestamp":69175515408,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778877147762,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":554246,"timestamp":69175528305,"id":74,"parentId":36,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":566594,"timestamp":69175516027,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778877147762,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":564167,"timestamp":69175528095,"id":71,"parentId":33,"tags":{},"startTime":1778877147774,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":577013,"timestamp":69175515304,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778877147762,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":565726,"timestamp":69175528337,"id":75,"parentId":37,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":577910,"timestamp":69175516223,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778877147762,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":571159,"timestamp":69175528369,"id":77,"parentId":39,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":583111,"timestamp":69175516470,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778877147763,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":578052,"timestamp":69175525922,"id":67,"parentId":28,"tags":{},"startTime":1778877147772,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":589514,"timestamp":69175514525,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778877147761,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":578004,"timestamp":69175528355,"id":76,"parentId":38,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":590040,"timestamp":69175516369,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778877147763,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":584168,"timestamp":69175526079,"id":68,"parentId":29,"tags":{},"startTime":1778877147772,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":595658,"timestamp":69175514639,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778877147761,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":582120,"timestamp":69175528383,"id":78,"parentId":40,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":593971,"timestamp":69175516570,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778877147763,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":582824,"timestamp":69175528406,"id":80,"parentId":42,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":594519,"timestamp":69175516760,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778877147763,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":587202,"timestamp":69175528444,"id":83,"parentId":45,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":598581,"timestamp":69175517112,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778877147763,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":589379,"timestamp":69175528200,"id":73,"parentId":35,"tags":{},"startTime":1778877147774,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":602119,"timestamp":69175515517,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778877147762,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":593329,"timestamp":69175528430,"id":82,"parentId":44,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":604830,"timestamp":69175516980,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778877147763,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":597060,"timestamp":69175524933,"id":62,"parentId":21,"tags":{},"startTime":1778877147771,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":612592,"timestamp":69175509444,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778877147756,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":593696,"timestamp":69175528458,"id":84,"parentId":46,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":604970,"timestamp":69175517210,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778877147763,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":602318,"timestamp":69175525679,"id":66,"parentId":27,"tags":{},"startTime":1778877147772,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":613648,"timestamp":69175514406,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778877147761,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":603499,"timestamp":69175528481,"id":86,"parentId":48,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":614610,"timestamp":69175517438,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778877147764,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":601167,"timestamp":69175531934,"id":88,"parentId":24,"tags":{},"startTime":1778877147778,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":621592,"timestamp":69175511557,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778877147758,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":600260,"timestamp":69175533070,"id":89,"parentId":31,"tags":{},"startTime":1778877147779,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":618460,"timestamp":69175514904,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778877147761,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":616063,"timestamp":69175528393,"id":79,"parentId":41,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":627849,"timestamp":69175516662,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778877147763,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":616218,"timestamp":69175528421,"id":81,"parentId":43,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":627799,"timestamp":69175516865,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778877147763,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":616304,"timestamp":69175528471,"id":85,"parentId":47,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":627459,"timestamp":69175517341,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778877147764,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":663191,"timestamp":69175535404,"id":91,"parentId":50,"tags":{},"startTime":1778877147782,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":679205,"timestamp":69175519464,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778877147766,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":675138,"timestamp":69175528494,"id":87,"parentId":49,"tags":{},"startTime":1778877147775,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":684673,"timestamp":69175519035,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778877147765,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":670869,"timestamp":69175535374,"id":90,"parentId":23,"tags":{},"startTime":1778877147782,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":694978,"timestamp":69175511319,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778877147758,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":671905,"timestamp":69175535475,"id":96,"parentId":56,"tags":{},"startTime":1778877147782,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":686362,"timestamp":69175521065,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778877147767,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":676713,"timestamp":69175535484,"id":97,"parentId":57,"tags":{},"startTime":1778877147782,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":690963,"timestamp":69175521273,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778877147768,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":683248,"timestamp":69175535460,"id":95,"parentId":54,"tags":{},"startTime":1778877147782,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":698551,"timestamp":69175520232,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778877147767,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":683496,"timestamp":69175535497,"id":98,"parentId":59,"tags":{},"startTime":1778877147782,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":697200,"timestamp":69175521855,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778877147768,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":683997,"timestamp":69175535530,"id":100,"parentId":61,"tags":{},"startTime":1778877147782,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":697414,"timestamp":69175522162,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778877147768,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":686555,"timestamp":69175535513,"id":99,"parentId":60,"tags":{},"startTime":1778877147782,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":700098,"timestamp":69175522021,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778877147768,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":688794,"timestamp":69175535435,"id":93,"parentId":52,"tags":{},"startTime":1778877147782,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":704495,"timestamp":69175519779,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778877147766,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":689010,"timestamp":69175535446,"id":94,"parentId":53,"tags":{},"startTime":1778877147782,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":704495,"timestamp":69175520024,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778877147766,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":682986,"timestamp":69175542073,"id":101,"parentId":58,"tags":{},"startTime":1778877147788,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":703653,"timestamp":69175521449,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778877147768,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":666682,"timestamp":69175558642,"id":102,"parentId":55,"tags":{},"startTime":1778877147805,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":704877,"timestamp":69175520472,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778877147767,"traceId":"d0cbb9ed9e428933"},{"name":"is-page-static","duration":697959,"timestamp":69175535421,"id":92,"parentId":51,"tags":{},"startTime":1778877147782,"traceId":"d0cbb9ed9e428933"},{"name":"check-page","duration":713787,"timestamp":69175519624,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778877147766,"traceId":"d0cbb9ed9e428933"},{"name":"static-check","duration":726811,"timestamp":69175506643,"id":19,"parentId":1,"tags":{},"startTime":1778877147753,"traceId":"d0cbb9ed9e428933"},{"name":"write-routes-manifest","duration":458,"timestamp":69176242243,"id":104,"parentId":1,"tags":{},"startTime":1778877148489,"traceId":"d0cbb9ed9e428933"},{"name":"load-dotenv","duration":64,"timestamp":69176252769,"id":107,"parentId":106,"tags":{},"startTime":1778877148499,"traceId":"d0cbb9ed9e428933"},{"name":"run-export-path-map","duration":754,"timestamp":69176257058,"id":108,"parentId":106,"tags":{},"startTime":1778877148503,"traceId":"d0cbb9ed9e428933"},{"name":"next-export","duration":593716,"timestamp":69176251444,"id":106,"parentId":1,"tags":{},"startTime":1778877148498,"traceId":"d0cbb9ed9e428933"}]
|
|
2
|
-
[{"name":"move-exported-app-not-found-","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":262,"timestamp":69567731303,"id":4,"parentId":1,"tags":{},"startTime":1778877539978,"traceId":"96fe745cbf39be1e"},{"name":"load-custom-routes","duration":491,"timestamp":69567731705,"id":5,"parentId":1,"tags":{},"startTime":1778877539978,"traceId":"96fe745cbf39be1e"},{"name":"create-dist-dir","duration":607,"timestamp":69567732237,"id":6,"parentId":1,"tags":{},"startTime":1778877539979,"traceId":"96fe745cbf39be1e"},{"name":"clean","duration":448,"timestamp":69567733475,"id":7,"parentId":1,"tags":{},"startTime":1778877539980,"traceId":"96fe745cbf39be1e"},{"name":"discover-routes","duration":9015,"timestamp":69567818878,"id":8,"parentId":1,"tags":{},"startTime":1778877540065,"traceId":"96fe745cbf39be1e"},{"name":"create-root-mapping","duration":117,"timestamp":69567827950,"id":9,"parentId":1,"tags":{},"startTime":1778877540074,"traceId":"96fe745cbf39be1e"},{"name":"generate-route-types","duration":30871,"timestamp":69567830448,"id":10,"parentId":1,"tags":{},"startTime":1778877540077,"traceId":"96fe745cbf39be1e"},{"name":"public-dir-conflict-check","duration":120,"timestamp":69567861494,"id":11,"parentId":1,"tags":{},"startTime":1778877540108,"traceId":"96fe745cbf39be1e"},{"name":"generate-routes-manifest","duration":4629,"timestamp":69567861760,"id":12,"parentId":1,"tags":{},"startTime":1778877540108,"traceId":"96fe745cbf39be1e"},{"name":"run-turbopack","duration":5406373,"timestamp":69567871888,"id":14,"parentId":1,"tags":{},"startTime":1778877540118,"traceId":"96fe745cbf39be1e"},{"name":"turbopack-build-events","duration":76,"timestamp":69568146892,"id":15,"parentId":1,"tags":{},"startTime":1778877540393,"traceId":"96fe745cbf39be1e"},{"name":"run-typescript","duration":8533747,"timestamp":69573290710,"id":16,"parentId":1,"tags":{},"startTime":1778877545537,"traceId":"96fe745cbf39be1e"},{"name":"generate-required-server-files","duration":2587,"timestamp":69581825782,"id":18,"parentId":1,"tags":{},"startTime":1778877554072,"traceId":"96fe745cbf39be1e"},{"name":"check-static-error-page","duration":18556,"timestamp":69582009981,"id":20,"parentId":19,"tags":{},"startTime":1778877554256,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":405257,"timestamp":69582034212,"id":63,"parentId":22,"tags":{},"startTime":1778877554280,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":427053,"timestamp":69582012605,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778877554259,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":514704,"timestamp":69582035274,"id":69,"parentId":30,"tags":{},"startTime":1778877554282,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":533596,"timestamp":69582016505,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778877554263,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":533483,"timestamp":69582035138,"id":68,"parentId":29,"tags":{},"startTime":1778877554281,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":552295,"timestamp":69582016410,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778877554263,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":538826,"timestamp":69582035459,"id":70,"parentId":32,"tags":{},"startTime":1778877554282,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":556093,"timestamp":69582018272,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778877554265,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":544021,"timestamp":69582034944,"id":67,"parentId":28,"tags":{},"startTime":1778877554281,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":562708,"timestamp":69582016334,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778877554263,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":542713,"timestamp":69582037475,"id":72,"parentId":34,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":561341,"timestamp":69582018945,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778877554265,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":554727,"timestamp":69582037369,"id":71,"parentId":33,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":573507,"timestamp":69582018657,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778877554265,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":558511,"timestamp":69582034671,"id":66,"parentId":27,"tags":{},"startTime":1778877554281,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":576979,"timestamp":69582016252,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778877554263,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":556190,"timestamp":69582037512,"id":73,"parentId":35,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":574027,"timestamp":69582019719,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778877554266,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":560965,"timestamp":69582037703,"id":76,"parentId":38,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":577898,"timestamp":69582020810,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778877554267,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":564871,"timestamp":69582034531,"id":65,"parentId":26,"tags":{},"startTime":1778877554281,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":583272,"timestamp":69582016172,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778877554262,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":567938,"timestamp":69582037645,"id":74,"parentId":36,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":585189,"timestamp":69582020448,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778877554267,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":568386,"timestamp":69582037737,"id":79,"parentId":41,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":585003,"timestamp":69582021173,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778877554267,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":575630,"timestamp":69582037683,"id":75,"parentId":37,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":592716,"timestamp":69582020655,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778877554267,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":575791,"timestamp":69582037750,"id":80,"parentId":42,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":592303,"timestamp":69582021278,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778877554268,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":580772,"timestamp":69582037788,"id":83,"parentId":45,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":597041,"timestamp":69582021566,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778877554268,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":584580,"timestamp":69582037712,"id":77,"parentId":39,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":601408,"timestamp":69582020935,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778877554267,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":584714,"timestamp":69582037797,"id":84,"parentId":46,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":600891,"timestamp":69582021657,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778877554268,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":587478,"timestamp":69582037725,"id":78,"parentId":40,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":604173,"timestamp":69582021069,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778877554267,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":591037,"timestamp":69582034347,"id":64,"parentId":25,"tags":{},"startTime":1778877554281,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":609373,"timestamp":69582016038,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778877554262,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":587765,"timestamp":69582037776,"id":82,"parentId":44,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":604096,"timestamp":69582021472,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778877554268,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":590427,"timestamp":69582037822,"id":86,"parentId":48,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":606395,"timestamp":69582021893,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778877554268,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":594824,"timestamp":69582037759,"id":81,"parentId":43,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":611248,"timestamp":69582021379,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778877554268,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":591673,"timestamp":69582046531,"id":89,"parentId":31,"tags":{},"startTime":1778877554293,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":620869,"timestamp":69582017376,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778877554264,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":602739,"timestamp":69582037810,"id":85,"parentId":47,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":618799,"timestamp":69582021792,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778877554268,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":603195,"timestamp":69582037834,"id":87,"parentId":49,"tags":{},"startTime":1778877554284,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":616289,"timestamp":69582024786,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778877554271,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":607435,"timestamp":69582033794,"id":62,"parentId":21,"tags":{},"startTime":1778877554280,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":629859,"timestamp":69582011395,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778877554258,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":601077,"timestamp":69582041314,"id":88,"parentId":24,"tags":{},"startTime":1778877554288,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":628956,"timestamp":69582013480,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778877554260,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":637855,"timestamp":69582048943,"id":90,"parentId":23,"tags":{},"startTime":1778877554295,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":673672,"timestamp":69582013220,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778877554259,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":645845,"timestamp":69582049065,"id":97,"parentId":57,"tags":{},"startTime":1778877554295,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":667675,"timestamp":69582027309,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778877554274,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":647279,"timestamp":69582048984,"id":92,"parentId":51,"tags":{},"startTime":1778877554295,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":670717,"timestamp":69582025604,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778877554272,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":649261,"timestamp":69582048999,"id":93,"parentId":52,"tags":{},"startTime":1778877554295,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":672529,"timestamp":69582025790,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778877554272,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":649617,"timestamp":69582049029,"id":94,"parentId":53,"tags":{},"startTime":1778877554295,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":672701,"timestamp":69582026016,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778877554272,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":656693,"timestamp":69582049079,"id":98,"parentId":59,"tags":{},"startTime":1778877554295,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":677862,"timestamp":69582027968,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778877554274,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":656977,"timestamp":69582048972,"id":91,"parentId":50,"tags":{},"startTime":1778877554295,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":680723,"timestamp":69582025271,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778877554272,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":657236,"timestamp":69582049052,"id":96,"parentId":56,"tags":{},"startTime":1778877554295,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":679231,"timestamp":69582027100,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778877554273,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":657501,"timestamp":69582049111,"id":100,"parentId":61,"tags":{},"startTime":1778877554295,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":678378,"timestamp":69582028278,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778877554275,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":651410,"timestamp":69582055354,"id":101,"parentId":58,"tags":{},"startTime":1778877554302,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":679319,"timestamp":69582027481,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778877554274,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":659139,"timestamp":69582049038,"id":95,"parentId":54,"tags":{},"startTime":1778877554295,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":681991,"timestamp":69582026234,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778877554273,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":638378,"timestamp":69582070745,"id":102,"parentId":55,"tags":{},"startTime":1778877554317,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":682677,"timestamp":69582026482,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778877554273,"traceId":"96fe745cbf39be1e"},{"name":"is-page-static","duration":660998,"timestamp":69582049092,"id":99,"parentId":60,"tags":{},"startTime":1778877554295,"traceId":"96fe745cbf39be1e"},{"name":"check-page","duration":682025,"timestamp":69582028130,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778877554274,"traceId":"96fe745cbf39be1e"},{"name":"static-check","duration":701176,"timestamp":69582009029,"id":19,"parentId":1,"tags":{},"startTime":1778877554255,"traceId":"96fe745cbf39be1e"},{"name":"write-routes-manifest","duration":497,"timestamp":69582721068,"id":104,"parentId":1,"tags":{},"startTime":1778877554967,"traceId":"96fe745cbf39be1e"},{"name":"load-dotenv","duration":43,"timestamp":69582734343,"id":107,"parentId":106,"tags":{},"startTime":1778877554981,"traceId":"96fe745cbf39be1e"},{"name":"run-export-path-map","duration":574,"timestamp":69582738182,"id":108,"parentId":106,"tags":{},"startTime":1778877554984,"traceId":"96fe745cbf39be1e"},{"name":"next-export","duration":591208,"timestamp":69582733162,"id":106,"parentId":1,"tags":{},"startTime":1778877554979,"traceId":"96fe745cbf39be1e"}]
|
|
2
|
+
[{"name":"move-exported-app-not-found-","duration":1716,"timestamp":69583327598,"id":109,"parentId":105,"tags":{},"startTime":1778877555574,"traceId":"96fe745cbf39be1e"},{"name":"move-exported-app-global-error-","duration":1034,"timestamp":69583329415,"id":110,"parentId":105,"tags":{},"startTime":1778877555576,"traceId":"96fe745cbf39be1e"},{"name":"static-generation","duration":605501,"timestamp":69582726874,"id":105,"parentId":1,"tags":{},"startTime":1778877554973,"traceId":"96fe745cbf39be1e"},{"name":"write-routes-manifest","duration":402,"timestamp":69583332549,"id":111,"parentId":1,"tags":{},"startTime":1778877555579,"traceId":"96fe745cbf39be1e"},{"name":"print-tree-view","duration":5224,"timestamp":69583341622,"id":112,"parentId":1,"tags":{},"startTime":1778877555588,"traceId":"96fe745cbf39be1e"},{"name":"write-route-bundle-stats","duration":16406,"timestamp":69583346901,"id":113,"parentId":1,"tags":{},"startTime":1778877555593,"traceId":"96fe745cbf39be1e"},{"name":"telemetry-flush","duration":30597,"timestamp":69583363330,"id":114,"parentId":1,"tags":{},"startTime":1778877555610,"traceId":"96fe745cbf39be1e"},{"name":"next-build","duration":15712591,"timestamp":69567681359,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778877539928,"traceId":"96fe745cbf39be1e"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":5406373,"timestamp":69567871888,"id":14,"parentId":1,"tags":{},"startTime":1778877540118,"traceId":"96fe745cbf39be1e"},{"name":"turbopack-build-events","duration":76,"timestamp":69568146892,"id":15,"parentId":1,"tags":{},"startTime":1778877540393,"traceId":"96fe745cbf39be1e"},{"name":"run-typescript","duration":8533747,"timestamp":69573290710,"id":16,"parentId":1,"tags":{},"startTime":1778877545537,"traceId":"96fe745cbf39be1e"},{"name":"static-check","duration":701176,"timestamp":69582009029,"id":19,"parentId":1,"tags":{},"startTime":1778877554255,"traceId":"96fe745cbf39be1e"},{"name":"static-generation","duration":605501,"timestamp":69582726874,"id":105,"parentId":1,"tags":{},"startTime":1778877554973,"traceId":"96fe745cbf39be1e"},{"name":"telemetry-flush","duration":30597,"timestamp":69583363330,"id":114,"parentId":1,"tags":{},"startTime":1778877555610,"traceId":"96fe745cbf39be1e"},{"name":"next-build","duration":15712591,"timestamp":69567681359,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778877539928,"traceId":"96fe745cbf39be1e"}]
|
|
@@ -3193,14 +3193,31 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
3193
3193
|
// which felt like two surfaces rather than one.
|
|
3194
3194
|
onMouseEnter={() => setHoveredEdgeKey(link.key)}
|
|
3195
3195
|
onMouseLeave={() => setHoveredEdgeKey(prev => prev === link.key ? null : prev)}
|
|
3196
|
+
// Round 185 / Loop: edge badge click fires the same
|
|
3197
|
+
// one-shot expanding-ring ripple R14 uses for node
|
|
3198
|
+
// click and R52 uses for hub click — anchored at
|
|
3199
|
+
// the badge midpoint with the edge's own flowEdge
|
|
3200
|
+
// colour. Closes the click-feel idiom across all
|
|
3201
|
+
// three pinnable canvas surfaces (hub / node /
|
|
3202
|
+
// edge badge). Reused setClickRipple state machine
|
|
3203
|
+
// so only one ripple at a time; ts coordinate
|
|
3204
|
+
// guard in the setTimeout cleanup prevents an
|
|
3205
|
+
// older ripple from clobbering a newer one if
|
|
3206
|
+
// the user clicks two badges in quick succession.
|
|
3196
3207
|
onClick={(e) => {
|
|
3197
3208
|
e.stopPropagation();
|
|
3198
3209
|
setPinnedEdgeKey(prev => prev === link.key ? null : link.key);
|
|
3210
|
+
const ts = Date.now();
|
|
3211
|
+
setClickRipple({ ts, x: badgeX, y: badgeY, r0: 10.5, color: pal.flowEdge });
|
|
3212
|
+
setTimeout(() => setClickRipple(prev => prev && prev.ts === ts ? null : prev), 600);
|
|
3199
3213
|
}}
|
|
3200
3214
|
onKeyDown={(e) => {
|
|
3201
3215
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
3202
3216
|
e.preventDefault();
|
|
3203
3217
|
setPinnedEdgeKey(prev => prev === link.key ? null : link.key);
|
|
3218
|
+
const ts = Date.now();
|
|
3219
|
+
setClickRipple({ ts, x: badgeX, y: badgeY, r0: 10.5, color: pal.flowEdge });
|
|
3220
|
+
setTimeout(() => setClickRipple(prev => prev && prev.ts === ts ? null : prev), 600);
|
|
3204
3221
|
}
|
|
3205
3222
|
}}
|
|
3206
3223
|
>
|
package/package.json
CHANGED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* Round 185 verification: edge badge click fires a one-shot
|
|
2
|
+
* ripple at the badge midpoint — closes the click-feel idiom
|
|
3
|
+
* across hub (R52) / node (R14) / edge badge (R185).
|
|
4
|
+
*
|
|
5
|
+
* Test:
|
|
6
|
+
* 1. Mock 4 sessions + 4-msg alpha→beta flow (R100 threshold)
|
|
7
|
+
* 2. Idle: no ripple <circle> visible
|
|
8
|
+
* 3. Click edge midpoint badge → ripple circle appears with
|
|
9
|
+
* stroke=pal.flowEdge (#67e8f9 cyber), positioned at
|
|
10
|
+
* badge coords (close to alpha-beta midpoint with R164
|
|
11
|
+
* perpendicular lift offset)
|
|
12
|
+
* 4. Wait 700ms → ripple cleared (R14 600ms + buffer)
|
|
13
|
+
*/
|
|
14
|
+
import { chromium } from 'playwright';
|
|
15
|
+
import { readFileSync } from 'node:fs';
|
|
16
|
+
|
|
17
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
18
|
+
const browser = await chromium.launch({ headless: true });
|
|
19
|
+
|
|
20
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
21
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
22
|
+
await ctx.addInitScript(() => {
|
|
23
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
27
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
28
|
+
const r = await route.fetch();
|
|
29
|
+
const b = await r.json();
|
|
30
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
31
|
+
const mk = (alias) => ({
|
|
32
|
+
alias, status: 'working', model: 'claude-opus-4', runtime: 'cli-claude-code',
|
|
33
|
+
network_id: nid, project_dir: null,
|
|
34
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
35
|
+
});
|
|
36
|
+
// 4 sessions so alpha/beta sit 90° apart (avoid hub overlap)
|
|
37
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [
|
|
38
|
+
mk('alpha'), mk('beta'), mk('gamma'), mk('delta'),
|
|
39
|
+
] } });
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const now = Date.now();
|
|
43
|
+
const msgs = [];
|
|
44
|
+
for (let i = 0; i < 4; i++) {
|
|
45
|
+
msgs.push({ id: `m${i}`, from_alias: 'alpha', to_alias: 'beta', content: 'hi',
|
|
46
|
+
network_id: 'default', created_at: new Date(now - (10000 + i * 500)).toISOString() });
|
|
47
|
+
}
|
|
48
|
+
await ctx.route('**/api/hub/messages*', (route) => route.fulfill({ json: { messages: msgs } }));
|
|
49
|
+
await ctx.route('**/api/hub/tasks*', (route) => route.fulfill({ json: { tasks: [] } }));
|
|
50
|
+
|
|
51
|
+
const page = await ctx.newPage();
|
|
52
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
53
|
+
await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 4, { timeout: 30000 });
|
|
54
|
+
await page.waitForSelector('[data-edge-count-badge]', { timeout: 10000 });
|
|
55
|
+
await page.waitForTimeout(400);
|
|
56
|
+
|
|
57
|
+
// Idle: no click ripple anywhere. The ripple is identified by:
|
|
58
|
+
// <circle stroke="#67e8f9" stroke-width="2" opacity="0"> with an animate child
|
|
59
|
+
// Probe via "circles with stroke-width=2 and a child <animate>".
|
|
60
|
+
const probeRipple = () => page.evaluate(() => {
|
|
61
|
+
const circles = [...document.querySelectorAll('circle[stroke-width="2"]')];
|
|
62
|
+
const ripple = circles.find(c => {
|
|
63
|
+
const anim = c.querySelector('animate[attributeName="r"]');
|
|
64
|
+
return anim && anim.getAttribute('dur') === '0.5s';
|
|
65
|
+
});
|
|
66
|
+
if (!ripple) return null;
|
|
67
|
+
return {
|
|
68
|
+
cx: parseFloat(ripple.getAttribute('cx') || ''),
|
|
69
|
+
cy: parseFloat(ripple.getAttribute('cy') || ''),
|
|
70
|
+
stroke: ripple.getAttribute('stroke'),
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const idle = await probeRipple();
|
|
75
|
+
|
|
76
|
+
// Capture badge position first
|
|
77
|
+
const badgeBox = await page.locator('[data-edge-count-badge]').first().boundingBox();
|
|
78
|
+
|
|
79
|
+
// Click the edge midpoint badge → ripple should appear
|
|
80
|
+
await page.locator('[data-edge-count-badge]').click();
|
|
81
|
+
await page.waitForTimeout(50);
|
|
82
|
+
const duringRipple = await probeRipple();
|
|
83
|
+
|
|
84
|
+
// Wait past 600ms ripple lifetime + buffer
|
|
85
|
+
await page.waitForTimeout(700);
|
|
86
|
+
const afterRipple = await probeRipple();
|
|
87
|
+
|
|
88
|
+
await browser.close();
|
|
89
|
+
|
|
90
|
+
const results = {
|
|
91
|
+
idle_no_ripple: idle === null,
|
|
92
|
+
ripple_appears: duringRipple !== null,
|
|
93
|
+
ripple_stroke_cyan: duringRipple?.stroke === '#67e8f9',
|
|
94
|
+
ripple_has_position: duringRipple !== null
|
|
95
|
+
&& Number.isFinite(duringRipple.cx)
|
|
96
|
+
&& Number.isFinite(duringRipple.cy),
|
|
97
|
+
// The badge has bbox in screen coords; the ripple is in SVG viewBox
|
|
98
|
+
// coords. We can't compare directly. Just verify it's a sane number
|
|
99
|
+
// (not 0/NaN) — that's enough to know it's placed at the badge.
|
|
100
|
+
ripple_cx_nonzero: duringRipple !== null && duringRipple.cx > 0,
|
|
101
|
+
ripple_cy_nonzero: duringRipple !== null && duringRipple.cy > 0,
|
|
102
|
+
ripple_cleared_after_600: afterRipple === null,
|
|
103
|
+
badge_was_clickable: badgeBox !== null,
|
|
104
|
+
};
|
|
105
|
+
const ok = Object.values(results).every(Boolean);
|
|
106
|
+
console.log(`${ok ? '✅' : '❌'} edge badge ripple:`, JSON.stringify(results),
|
|
107
|
+
`\n idle:`, idle,
|
|
108
|
+
`\n duringRipple:`, duringRipple,
|
|
109
|
+
`\n afterRipple:`, afterRipple,
|
|
110
|
+
`\n badgeBox:`, badgeBox);
|
|
111
|
+
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{73xpyKgxUshGvnn998bi4 → YYQWV4xs3ykuROv0xY0zx}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|