@sleep2agi/agent-network-dashboard 0.4.6-preview.192 → 0.4.6-preview.194
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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- 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 +2 -2
- package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
- package/.next/server/app/admin.html +2 -2
- package/.next/server/app/admin.rsc +2 -2
- package/.next/server/app/admin.segments/_full.segment.rsc +2 -2
- package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
- package/.next/server/app/admin.segments/_index.segment.rsc +2 -2
- package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/.next/server/app/login.segments/_full.segment.rsc +3 -3
- package/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/server/app/login.segments/_index.segment.rsc +2 -2
- package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/logs.html +2 -2
- package/.next/server/app/logs.rsc +2 -2
- package/.next/server/app/logs.segments/_full.segment.rsc +2 -2
- package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/logs.segments/_index.segment.rsc +2 -2
- package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/messages.html +2 -2
- package/.next/server/app/messages.rsc +2 -2
- package/.next/server/app/messages.segments/_full.segment.rsc +2 -2
- package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
- package/.next/server/app/messages.segments/_index.segment.rsc +2 -2
- package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/node.html +2 -2
- package/.next/server/app/node.rsc +2 -2
- package/.next/server/app/node.segments/_full.segment.rsc +2 -2
- package/.next/server/app/node.segments/_head.segment.rsc +1 -1
- package/.next/server/app/node.segments/_index.segment.rsc +2 -2
- package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/nodes.html +2 -2
- package/.next/server/app/nodes.rsc +2 -2
- package/.next/server/app/nodes.segments/_full.segment.rsc +2 -2
- package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/_index.segment.rsc +2 -2
- package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs.html +2 -2
- package/.next/server/app/server-logs.rsc +2 -2
- package/.next/server/app/server-logs.segments/_full.segment.rsc +2 -2
- package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/server-logs.segments/_index.segment.rsc +2 -2
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/networks.html +2 -2
- package/.next/server/app/settings/networks.rsc +2 -2
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +2 -2
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +2 -2
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
- 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/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens.html +2 -2
- package/.next/server/app/settings/tokens.rsc +2 -2
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +2 -2
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +2 -2
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/.next/server/app/settings.segments/_full.segment.rsc +3 -3
- package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/server/app/settings.segments/_index.segment.rsc +2 -2
- package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- 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/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tasks.html +2 -2
- package/.next/server/app/tasks.rsc +2 -2
- package/.next/server/app/tasks.segments/_full.segment.rsc +2 -2
- package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/_index.segment.rsc +2 -2
- package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +3 -3
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +2 -2
- 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/{0agj1oq3ux9.a.css → 0sawyu8-~t._z.css} +1 -1
- package/.next/static/chunks/{0tzzu8s4fo-gh.js → 0xgptm--vm.c8.js} +1 -1
- package/.next/static/chunks/{0kcsv4nfvgo94.js → 0zg7wpl01th0y.js} +3 -3
- package/.next/static/chunks/{0qou_az51jxjv.js → 17kj7b5gue-jd.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +49 -7
- package/app/globals.css +18 -0
- package/package.json +1 -1
- package/scripts/topo-chrome-zoom-pop-test.mjs +130 -0
- package/scripts/topo-freshness-chip-transition-test.mjs +80 -0
- /package/.next/static/{YYQWV4xs3ykuROv0xY0zx → Zlney4n5lIB5xb2KaqfD0}/_buildManifest.js +0 -0
- /package/.next/static/{YYQWV4xs3ykuROv0xY0zx → Zlney4n5lIB5xb2KaqfD0}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{YYQWV4xs3ykuROv0xY0zx → Zlney4n5lIB5xb2KaqfD0}/_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.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
|
+
(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.194"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
|
package/.next/trace
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":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":
|
|
1
|
+
[{"name":"generate-buildid","duration":404,"timestamp":70192876750,"id":4,"parentId":1,"tags":{},"startTime":1778878165123,"traceId":"5a3f858aef768397"},{"name":"load-custom-routes","duration":609,"timestamp":70192877381,"id":5,"parentId":1,"tags":{},"startTime":1778878165124,"traceId":"5a3f858aef768397"},{"name":"create-dist-dir","duration":683,"timestamp":70192878054,"id":6,"parentId":1,"tags":{},"startTime":1778878165124,"traceId":"5a3f858aef768397"},{"name":"clean","duration":627,"timestamp":70192879603,"id":7,"parentId":1,"tags":{},"startTime":1778878165126,"traceId":"5a3f858aef768397"},{"name":"discover-routes","duration":10398,"timestamp":70192970240,"id":8,"parentId":1,"tags":{},"startTime":1778878165217,"traceId":"5a3f858aef768397"},{"name":"create-root-mapping","duration":142,"timestamp":70192980702,"id":9,"parentId":1,"tags":{},"startTime":1778878165227,"traceId":"5a3f858aef768397"},{"name":"generate-route-types","duration":34352,"timestamp":70192983144,"id":10,"parentId":1,"tags":{},"startTime":1778878165229,"traceId":"5a3f858aef768397"},{"name":"public-dir-conflict-check","duration":97,"timestamp":70193017658,"id":11,"parentId":1,"tags":{},"startTime":1778878165264,"traceId":"5a3f858aef768397"},{"name":"generate-routes-manifest","duration":4957,"timestamp":70193017895,"id":12,"parentId":1,"tags":{},"startTime":1778878165264,"traceId":"5a3f858aef768397"},{"name":"run-turbopack","duration":5426053,"timestamp":70193027915,"id":14,"parentId":1,"tags":{},"startTime":1778878165274,"traceId":"5a3f858aef768397"},{"name":"turbopack-build-events","duration":75,"timestamp":70193305510,"id":15,"parentId":1,"tags":{},"startTime":1778878165552,"traceId":"5a3f858aef768397"},{"name":"run-typescript","duration":8568062,"timestamp":70198463235,"id":16,"parentId":1,"tags":{},"startTime":1778878170710,"traceId":"5a3f858aef768397"},{"name":"generate-required-server-files","duration":2202,"timestamp":70207032233,"id":18,"parentId":1,"tags":{},"startTime":1778878179279,"traceId":"5a3f858aef768397"},{"name":"check-static-error-page","duration":13979,"timestamp":70207193307,"id":20,"parentId":19,"tags":{},"startTime":1778878179440,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":405150,"timestamp":70207210707,"id":63,"parentId":22,"tags":{},"startTime":1778878179457,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":419588,"timestamp":70207196466,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778878179443,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":506338,"timestamp":70207211570,"id":69,"parentId":30,"tags":{},"startTime":1778878179458,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":517573,"timestamp":70207200464,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778878179447,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":538563,"timestamp":70207211748,"id":70,"parentId":32,"tags":{},"startTime":1778878179458,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":549528,"timestamp":70207200863,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778878179447,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":539531,"timestamp":70207211075,"id":66,"parentId":27,"tags":{},"startTime":1778878179457,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":550574,"timestamp":70207200071,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778878179446,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":539470,"timestamp":70207211310,"id":67,"parentId":28,"tags":{},"startTime":1778878179458,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":550620,"timestamp":70207200197,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778878179446,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":549301,"timestamp":70207211818,"id":71,"parentId":33,"tags":{},"startTime":1778878179458,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":560204,"timestamp":70207200993,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778878179447,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":550178,"timestamp":70207211434,"id":68,"parentId":29,"tags":{},"startTime":1778878179458,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":561348,"timestamp":70207200315,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778878179447,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":551046,"timestamp":70207210826,"id":64,"parentId":25,"tags":{},"startTime":1778878179457,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":562163,"timestamp":70207199747,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778878179446,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":546714,"timestamp":70207216322,"id":74,"parentId":36,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":561352,"timestamp":70207201737,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778878179448,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":553740,"timestamp":70207211952,"id":73,"parentId":35,"tags":{},"startTime":1778878179458,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":564460,"timestamp":70207201271,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778878179448,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":551307,"timestamp":70207216428,"id":77,"parentId":39,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":565556,"timestamp":70207202208,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778878179448,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":558115,"timestamp":70207210339,"id":62,"parentId":21,"tags":{},"startTime":1778878179457,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":573816,"timestamp":70207194680,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778878179441,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":558160,"timestamp":70207216460,"id":79,"parentId":41,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":572257,"timestamp":70207202408,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778878179449,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":567288,"timestamp":70207210952,"id":65,"parentId":26,"tags":{},"startTime":1778878179457,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":578357,"timestamp":70207199928,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778878179446,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":566515,"timestamp":70207211918,"id":72,"parentId":34,"tags":{},"startTime":1778878179458,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":577333,"timestamp":70207201132,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778878179447,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":562928,"timestamp":70207216487,"id":81,"parentId":43,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":576789,"timestamp":70207202670,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778878179449,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":567207,"timestamp":70207216530,"id":84,"parentId":46,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":580728,"timestamp":70207203055,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778878179449,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":568463,"timestamp":70207216518,"id":83,"parentId":45,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":582109,"timestamp":70207202925,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778878179449,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":573373,"timestamp":70207216545,"id":85,"parentId":47,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":586752,"timestamp":70207203203,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778878179449,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":578854,"timestamp":70207216416,"id":76,"parentId":38,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":593207,"timestamp":70207202102,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778878179448,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":582815,"timestamp":70207216387,"id":75,"parentId":37,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":597291,"timestamp":70207201948,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778878179448,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":583324,"timestamp":70207216560,"id":86,"parentId":48,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":596604,"timestamp":70207203313,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778878179450,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":589346,"timestamp":70207216576,"id":87,"parentId":49,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":602560,"timestamp":70207203407,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778878179450,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":596540,"timestamp":70207219948,"id":88,"parentId":24,"tags":{},"startTime":1778878179466,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":619460,"timestamp":70207197065,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778878179443,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":600482,"timestamp":70207216444,"id":78,"parentId":40,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":614649,"timestamp":70207202308,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778878179449,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":602202,"timestamp":70207221168,"id":89,"parentId":31,"tags":{},"startTime":1778878179467,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":622829,"timestamp":70207200583,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778878179447,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":612216,"timestamp":70207216503,"id":82,"parentId":44,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":625974,"timestamp":70207202787,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778878179449,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":623811,"timestamp":70207216475,"id":80,"parentId":42,"tags":{},"startTime":1778878179463,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":637823,"timestamp":70207202518,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778878179449,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":623776,"timestamp":70207223851,"id":96,"parentId":56,"tags":{},"startTime":1778878179470,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":642075,"timestamp":70207205601,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778878179452,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":630789,"timestamp":70207223863,"id":97,"parentId":57,"tags":{},"startTime":1778878179470,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":648850,"timestamp":70207205854,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778878179452,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":634170,"timestamp":70207223728,"id":90,"parentId":23,"tags":{},"startTime":1778878179470,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":661186,"timestamp":70207196760,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778878179443,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":637530,"timestamp":70207223879,"id":98,"parentId":59,"tags":{},"startTime":1778878179470,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":654893,"timestamp":70207206556,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778878179453,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":643966,"timestamp":70207223917,"id":100,"parentId":61,"tags":{},"startTime":1778878179470,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":661004,"timestamp":70207206935,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778878179453,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":648916,"timestamp":70207223758,"id":91,"parentId":50,"tags":{},"startTime":1778878179470,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":668921,"timestamp":70207203796,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778878179450,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":648965,"timestamp":70207223899,"id":99,"parentId":60,"tags":{},"startTime":1778878179470,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":666184,"timestamp":70207206733,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778878179453,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":640619,"timestamp":70207233787,"id":101,"parentId":58,"tags":{},"startTime":1778878179480,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":668364,"timestamp":70207206075,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778878179452,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":630771,"timestamp":70207249111,"id":102,"parentId":55,"tags":{},"startTime":1778878179495,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":674945,"timestamp":70207204983,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778878179451,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":660608,"timestamp":70207223776,"id":92,"parentId":51,"tags":{},"startTime":1778878179470,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":680445,"timestamp":70207203984,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778878179450,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":662681,"timestamp":70207223788,"id":93,"parentId":52,"tags":{},"startTime":1778878179470,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":682316,"timestamp":70207204182,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778878179450,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":662750,"timestamp":70207223803,"id":94,"parentId":53,"tags":{},"startTime":1778878179470,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":682140,"timestamp":70207204426,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778878179451,"traceId":"5a3f858aef768397"},{"name":"is-page-static","duration":669991,"timestamp":70207223822,"id":95,"parentId":54,"tags":{},"startTime":1778878179470,"traceId":"5a3f858aef768397"},{"name":"check-page","duration":689187,"timestamp":70207204680,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778878179451,"traceId":"5a3f858aef768397"},{"name":"static-check","duration":701391,"timestamp":70207192515,"id":19,"parentId":1,"tags":{},"startTime":1778878179439,"traceId":"5a3f858aef768397"},{"name":"write-routes-manifest","duration":416,"timestamp":70207900678,"id":104,"parentId":1,"tags":{},"startTime":1778878180147,"traceId":"5a3f858aef768397"},{"name":"load-dotenv","duration":44,"timestamp":70207913512,"id":107,"parentId":106,"tags":{},"startTime":1778878180160,"traceId":"5a3f858aef768397"},{"name":"run-export-path-map","duration":638,"timestamp":70207916107,"id":108,"parentId":106,"tags":{},"startTime":1778878180162,"traceId":"5a3f858aef768397"},{"name":"next-export","duration":571382,"timestamp":70207912188,"id":106,"parentId":1,"tags":{},"startTime":1778878180158,"traceId":"5a3f858aef768397"}]
|
|
2
|
+
[{"name":"move-exported-app-not-found-","duration":2218,"timestamp":70208487261,"id":109,"parentId":105,"tags":{},"startTime":1778878180734,"traceId":"5a3f858aef768397"},{"name":"move-exported-app-global-error-","duration":613,"timestamp":70208489575,"id":110,"parentId":105,"tags":{},"startTime":1778878180736,"traceId":"5a3f858aef768397"},{"name":"static-generation","duration":587458,"timestamp":70207904991,"id":105,"parentId":1,"tags":{},"startTime":1778878180151,"traceId":"5a3f858aef768397"},{"name":"write-routes-manifest","duration":519,"timestamp":70208492616,"id":111,"parentId":1,"tags":{},"startTime":1778878180739,"traceId":"5a3f858aef768397"},{"name":"print-tree-view","duration":4472,"timestamp":70208509611,"id":112,"parentId":1,"tags":{},"startTime":1778878180756,"traceId":"5a3f858aef768397"},{"name":"write-route-bundle-stats","duration":12564,"timestamp":70208514111,"id":113,"parentId":1,"tags":{},"startTime":1778878180760,"traceId":"5a3f858aef768397"},{"name":"telemetry-flush","duration":22059,"timestamp":70208526703,"id":114,"parentId":1,"tags":{},"startTime":1778878180773,"traceId":"5a3f858aef768397"},{"name":"next-build","duration":15730946,"timestamp":70192817844,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778878165064,"traceId":"5a3f858aef768397"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":5426053,"timestamp":70193027915,"id":14,"parentId":1,"tags":{},"startTime":1778878165274,"traceId":"5a3f858aef768397"},{"name":"turbopack-build-events","duration":75,"timestamp":70193305510,"id":15,"parentId":1,"tags":{},"startTime":1778878165552,"traceId":"5a3f858aef768397"},{"name":"run-typescript","duration":8568062,"timestamp":70198463235,"id":16,"parentId":1,"tags":{},"startTime":1778878170710,"traceId":"5a3f858aef768397"},{"name":"static-check","duration":701391,"timestamp":70207192515,"id":19,"parentId":1,"tags":{},"startTime":1778878179439,"traceId":"5a3f858aef768397"},{"name":"static-generation","duration":587458,"timestamp":70207904991,"id":105,"parentId":1,"tags":{},"startTime":1778878180151,"traceId":"5a3f858aef768397"},{"name":"telemetry-flush","duration":22059,"timestamp":70208526703,"id":114,"parentId":1,"tags":{},"startTime":1778878180773,"traceId":"5a3f858aef768397"},{"name":"next-build","duration":15730946,"timestamp":70192817844,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778878165064,"traceId":"5a3f858aef768397"}]
|
|
@@ -119,13 +119,24 @@ function FreshnessChip({ sessions }: { sessions: unknown }) {
|
|
|
119
119
|
// SWR's default refreshInterval here is 5s, so anything past ~10s is
|
|
120
120
|
// either a poll miss or a network hiccup.
|
|
121
121
|
const stale = sec > 10;
|
|
122
|
+
// Round 187 / Loop: chip transitions between fresh (gray) and stale
|
|
123
|
+
// (amber) colour palettes smoothly. Pre-R187 the className swap
|
|
124
|
+
// snapped every time the stale boundary was crossed — could happen
|
|
125
|
+
// multiple times per minute on a flaky network. Adding
|
|
126
|
+
// transition-colors makes the stale-onset (gray → amber) and
|
|
127
|
+
// recovery (amber → gray) ease through the bg / text / border
|
|
128
|
+
// palette together. 300ms matches R161/R162 active-links chip
|
|
129
|
+
// freshness fade timing for visual consistency in the chip row.
|
|
130
|
+
const baseClass = "hidden sm:inline px-2.5 py-1 rounded-md font-mono border transition-colors duration-300";
|
|
131
|
+
const colorClass = stale
|
|
132
|
+
? "bg-amber-500/10 text-amber-300 border-amber-500/20"
|
|
133
|
+
: "bg-gray-500/10 text-gray-400 border-gray-500/20";
|
|
122
134
|
return (
|
|
123
135
|
<span
|
|
124
|
-
className={
|
|
125
|
-
? "hidden sm:inline px-2.5 py-1 rounded-md bg-amber-500/10 text-amber-300 border border-amber-500/20 font-mono"
|
|
126
|
-
: "hidden sm:inline px-2.5 py-1 rounded-md bg-gray-500/10 text-gray-400 border border-gray-500/20 font-mono"}
|
|
136
|
+
className={`${baseClass} ${colorClass}`}
|
|
127
137
|
title={stale ? `Last sync ${sec}s ago — SWR refresh may be lagging` : `Live data · refreshes every 5s · last sync ${sec}s ago`}
|
|
128
138
|
data-freshness-chip
|
|
139
|
+
data-freshness-chip-stale={stale ? 'true' : 'false'}
|
|
129
140
|
>
|
|
130
141
|
live · {sec}s
|
|
131
142
|
</span>
|
|
@@ -1051,6 +1062,18 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
1051
1062
|
setResetSpinning(true);
|
|
1052
1063
|
setTimeout(() => setResetSpinning(false), 460);
|
|
1053
1064
|
};
|
|
1065
|
+
// Round 186 / Loop: chrome zoom-in / zoom-out buttons get a brief
|
|
1066
|
+
// icon pop on click — same click-feel idiom R184 added for the
|
|
1067
|
+
// reset spin, but a scale pulse rather than a rotation since +/−
|
|
1068
|
+
// icons rotating wouldn't read semantically. Tracks which button
|
|
1069
|
+
// is currently popping so only that icon picks up the class.
|
|
1070
|
+
// Arms for 240ms (CSS animation 220ms + 20ms buffer) so a quick
|
|
1071
|
+
// re-click can replay cleanly.
|
|
1072
|
+
const [chromePopping, setChromePopping] = useState<'zoom-in' | 'zoom-out' | null>(null);
|
|
1073
|
+
const popChrome = (which: 'zoom-in' | 'zoom-out') => {
|
|
1074
|
+
setChromePopping(which);
|
|
1075
|
+
setTimeout(() => setChromePopping(prev => prev === which ? null : prev), 240);
|
|
1076
|
+
};
|
|
1054
1077
|
// Issue #100: singleton chat popover. One alias at a time — clicking
|
|
1055
1078
|
// another node swaps the target and the conversation switches in place.
|
|
1056
1079
|
const [chatAlias, setChatAlias] = useState<string | null>(null);
|
|
@@ -4941,14 +4964,24 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4941
4964
|
style={{ background: pal.legendBox.fill, borderColor: pal.containerBorder }}
|
|
4942
4965
|
>
|
|
4943
4966
|
<button
|
|
4944
|
-
onClick={() => zoomByDiscrete(1 / 1.2)}
|
|
4967
|
+
onClick={() => { popChrome('zoom-out'); zoomByDiscrete(1 / 1.2); }}
|
|
4945
4968
|
data-topo-chrome-zoom-out
|
|
4969
|
+
data-topo-chrome-zoom-out-popping={chromePopping === 'zoom-out' ? 'true' : 'false'}
|
|
4946
4970
|
className="px-2 py-1 hover:bg-white/5 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset"
|
|
4947
4971
|
style={{ color: pal.legendText }}
|
|
4948
4972
|
aria-label="Zoom out"
|
|
4949
4973
|
title="Zoom out (−)"
|
|
4950
4974
|
>
|
|
4951
|
-
|
|
4975
|
+
{/* R186: icon pop on click. CSS animation runs once;
|
|
4976
|
+
React removes the class after 240ms so a quick
|
|
4977
|
+
re-click can replay. */}
|
|
4978
|
+
<svg
|
|
4979
|
+
width="12" height="12" viewBox="0 0 24 24"
|
|
4980
|
+
fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round"
|
|
4981
|
+
aria-hidden
|
|
4982
|
+
className={chromePopping === 'zoom-out' ? 'anet-chrome-pop' : undefined}
|
|
4983
|
+
data-topo-chrome-zoom-out-icon
|
|
4984
|
+
><path d="M5 12h14" /></svg>
|
|
4952
4985
|
</button>
|
|
4953
4986
|
<span
|
|
4954
4987
|
className="px-2 py-1 tabular-nums border-x text-center"
|
|
@@ -4959,14 +4992,23 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
4959
4992
|
{Math.round(view.zoom * 100)}%
|
|
4960
4993
|
</span>
|
|
4961
4994
|
<button
|
|
4962
|
-
onClick={() => zoomByDiscrete(1.2)}
|
|
4995
|
+
onClick={() => { popChrome('zoom-in'); zoomByDiscrete(1.2); }}
|
|
4963
4996
|
data-topo-chrome-zoom-in
|
|
4997
|
+
data-topo-chrome-zoom-in-popping={chromePopping === 'zoom-in' ? 'true' : 'false'}
|
|
4964
4998
|
className="px-2 py-1 hover:bg-white/5 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset"
|
|
4965
4999
|
style={{ color: pal.legendText }}
|
|
4966
5000
|
aria-label="Zoom in"
|
|
4967
5001
|
title="Zoom in (+)"
|
|
4968
5002
|
>
|
|
4969
|
-
|
|
5003
|
+
{/* R186: icon pop on click. Same one-shot CSS animation
|
|
5004
|
+
as zoom-out; React removes the class after 240ms. */}
|
|
5005
|
+
<svg
|
|
5006
|
+
width="12" height="12" viewBox="0 0 24 24"
|
|
5007
|
+
fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round"
|
|
5008
|
+
aria-hidden
|
|
5009
|
+
className={chromePopping === 'zoom-in' ? 'anet-chrome-pop' : undefined}
|
|
5010
|
+
data-topo-chrome-zoom-in-icon
|
|
5011
|
+
><path d="M12 5v14M5 12h14" /></svg>
|
|
4970
5012
|
</button>
|
|
4971
5013
|
</div>
|
|
4972
5014
|
<button
|
package/app/globals.css
CHANGED
|
@@ -845,6 +845,24 @@ body {
|
|
|
845
845
|
transform-box: fill-box;
|
|
846
846
|
}
|
|
847
847
|
|
|
848
|
+
/* Round 186 — chrome zoom-in / zoom-out buttons get a brief icon pop
|
|
849
|
+
on click. Same click-feel idiom R184 added for the reset button —
|
|
850
|
+
the canvas already smoothes via R168/R169 smoothView, but the
|
|
851
|
+
chrome BUTTON itself needs its own confirmation. A quick scale
|
|
852
|
+
up-then-back (1 → 1.18 → 1 over 220ms) reads as "tapped". Same
|
|
853
|
+
transform-box: fill-box anchoring as R184 keeps the icon
|
|
854
|
+
centered in place. */
|
|
855
|
+
@keyframes anet-chrome-pop {
|
|
856
|
+
0% { transform: scale(1); }
|
|
857
|
+
50% { transform: scale(1.18); }
|
|
858
|
+
100% { transform: scale(1); }
|
|
859
|
+
}
|
|
860
|
+
.anet-chrome-pop {
|
|
861
|
+
animation: anet-chrome-pop 0.22s ease-out;
|
|
862
|
+
transform-origin: center;
|
|
863
|
+
transform-box: fill-box;
|
|
864
|
+
}
|
|
865
|
+
|
|
848
866
|
/* Round 36 — current-step ring pulse on TaskDrawer timeline. Halo gently
|
|
849
867
|
breathes around the active step's dot so users can spot "task is here". */
|
|
850
868
|
@keyframes anet-current-step-pulse-kf {
|
package/package.json
CHANGED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/* Round 186 verification: chrome zoom-in / zoom-out buttons get
|
|
2
|
+
* a one-shot icon "pop" on click — same click-feel idiom R184
|
|
3
|
+
* added for the reset spin, applied to the two zoom buttons.
|
|
4
|
+
*
|
|
5
|
+
* Test:
|
|
6
|
+
* 1. Idle: neither popping
|
|
7
|
+
* 2. Click chrome zoom-in → zoom-in icon gets 'anet-chrome-pop',
|
|
8
|
+
* attr 'true' within 50ms
|
|
9
|
+
* 3. Wait 280ms → class + attr cleared
|
|
10
|
+
* 4. Click chrome zoom-out → zoom-out icon gets the class, attr
|
|
11
|
+
* 'true'; zoom-in stays cleared
|
|
12
|
+
* 5. CSS keyframe 'anet-chrome-pop' exists in stylesheet and
|
|
13
|
+
* includes scale(1.18)
|
|
14
|
+
*/
|
|
15
|
+
import { chromium } from 'playwright';
|
|
16
|
+
import { readFileSync } from 'node:fs';
|
|
17
|
+
|
|
18
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
19
|
+
const browser = await chromium.launch({ headless: true });
|
|
20
|
+
|
|
21
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
22
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
23
|
+
await ctx.addInitScript(() => {
|
|
24
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
28
|
+
await ctx.route('**/api/hub/status*', async (route) => {
|
|
29
|
+
const r = await route.fetch();
|
|
30
|
+
const b = await r.json();
|
|
31
|
+
const nid = (b.sessions || [])[0]?.network_id || 'default';
|
|
32
|
+
const mk = (alias) => ({
|
|
33
|
+
alias, status: 'working', model: 'claude-opus-4', runtime: 'cli-claude-code',
|
|
34
|
+
network_id: nid, project_dir: null,
|
|
35
|
+
created_at: fresh, updated_at: fresh, last_seen_at: fresh,
|
|
36
|
+
});
|
|
37
|
+
await route.fulfill({ response: r, json: { ...b, sessions: [mk('alpha'), mk('beta'), mk('gamma')] } });
|
|
38
|
+
});
|
|
39
|
+
await ctx.route('**/api/hub/messages*', (route) => route.fulfill({ json: { messages: [] } }));
|
|
40
|
+
await ctx.route('**/api/hub/tasks*', (route) => route.fulfill({ json: { tasks: [] } }));
|
|
41
|
+
|
|
42
|
+
const page = await ctx.newPage();
|
|
43
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
44
|
+
await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 3, { timeout: 30000 });
|
|
45
|
+
await page.waitForSelector('[data-topo-chrome-zoom-in]', { timeout: 10000 });
|
|
46
|
+
await page.waitForTimeout(400);
|
|
47
|
+
|
|
48
|
+
const probe = () => page.evaluate(() => {
|
|
49
|
+
const inBtn = document.querySelector('[data-topo-chrome-zoom-in]');
|
|
50
|
+
const outBtn = document.querySelector('[data-topo-chrome-zoom-out]');
|
|
51
|
+
const inIcon = document.querySelector('[data-topo-chrome-zoom-in-icon]');
|
|
52
|
+
const outIcon = document.querySelector('[data-topo-chrome-zoom-out-icon]');
|
|
53
|
+
return {
|
|
54
|
+
inAttr: inBtn?.getAttribute('data-topo-chrome-zoom-in-popping'),
|
|
55
|
+
outAttr: outBtn?.getAttribute('data-topo-chrome-zoom-out-popping'),
|
|
56
|
+
inClass: inIcon?.getAttribute('class') || '',
|
|
57
|
+
outClass: outIcon?.getAttribute('class') || '',
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const idle = await probe();
|
|
62
|
+
|
|
63
|
+
await page.locator('[data-topo-chrome-zoom-in]').click();
|
|
64
|
+
await page.waitForTimeout(50);
|
|
65
|
+
const duringIn = await probe();
|
|
66
|
+
|
|
67
|
+
await page.waitForTimeout(280);
|
|
68
|
+
const afterIn = await probe();
|
|
69
|
+
|
|
70
|
+
await page.locator('[data-topo-chrome-zoom-out]').click();
|
|
71
|
+
await page.waitForTimeout(50);
|
|
72
|
+
const duringOut = await probe();
|
|
73
|
+
|
|
74
|
+
await page.waitForTimeout(280);
|
|
75
|
+
const afterOut = await probe();
|
|
76
|
+
|
|
77
|
+
const cssCheck = await page.evaluate(() => {
|
|
78
|
+
for (const sheet of document.styleSheets) {
|
|
79
|
+
let rules;
|
|
80
|
+
try { rules = sheet.cssRules; } catch { continue; }
|
|
81
|
+
if (!rules) continue;
|
|
82
|
+
for (const rule of rules) {
|
|
83
|
+
if (rule.type === 7 && rule.name === 'anet-chrome-pop') {
|
|
84
|
+
return { found: true, cssText: rule.cssText };
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return { found: false, cssText: '' };
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
await browser.close();
|
|
92
|
+
|
|
93
|
+
const results = {
|
|
94
|
+
idle_in_attr_false: idle.inAttr === 'false',
|
|
95
|
+
idle_out_attr_false: idle.outAttr === 'false',
|
|
96
|
+
idle_no_in_pop: !idle.inClass.includes('anet-chrome-pop'),
|
|
97
|
+
idle_no_out_pop: !idle.outClass.includes('anet-chrome-pop'),
|
|
98
|
+
|
|
99
|
+
// After zoom-in click: in popping, out static
|
|
100
|
+
in_attr_true: duringIn.inAttr === 'true',
|
|
101
|
+
in_has_pop_class: duringIn.inClass.includes('anet-chrome-pop'),
|
|
102
|
+
out_stays_false: duringIn.outAttr === 'false',
|
|
103
|
+
out_no_pop_class: !duringIn.outClass.includes('anet-chrome-pop'),
|
|
104
|
+
|
|
105
|
+
// After 280ms: in cleared
|
|
106
|
+
after_in_attr_false: afterIn.inAttr === 'false',
|
|
107
|
+
after_in_no_pop: !afterIn.inClass.includes('anet-chrome-pop'),
|
|
108
|
+
|
|
109
|
+
// After zoom-out click: out popping
|
|
110
|
+
out_attr_true: duringOut.outAttr === 'true',
|
|
111
|
+
out_has_pop_class: duringOut.outClass.includes('anet-chrome-pop'),
|
|
112
|
+
in_stays_false: duringOut.inAttr === 'false',
|
|
113
|
+
in_no_pop_after: !duringOut.inClass.includes('anet-chrome-pop'),
|
|
114
|
+
|
|
115
|
+
// After 280ms: out cleared
|
|
116
|
+
after_out_attr_false: afterOut.outAttr === 'false',
|
|
117
|
+
after_out_no_pop: !afterOut.outClass.includes('anet-chrome-pop'),
|
|
118
|
+
|
|
119
|
+
keyframe_found: cssCheck.found,
|
|
120
|
+
keyframe_has_scale_1p18: cssCheck.cssText.includes('scale(1.18)'),
|
|
121
|
+
};
|
|
122
|
+
const ok = Object.values(results).every(Boolean);
|
|
123
|
+
console.log(`${ok ? '✅' : '❌'} chrome zoom pop:`, JSON.stringify(results),
|
|
124
|
+
`\n idle:`, idle,
|
|
125
|
+
`\n duringIn:`, duringIn,
|
|
126
|
+
`\n afterIn:`, afterIn,
|
|
127
|
+
`\n duringOut:`, duringOut,
|
|
128
|
+
`\n afterOut:`, afterOut,
|
|
129
|
+
`\n keyframe found:`, cssCheck.found);
|
|
130
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* Round 187 verification: FreshnessChip color transition.
|
|
2
|
+
*
|
|
3
|
+
* Pre-R187 the chip swapped between fresh (gray) and stale
|
|
4
|
+
* (amber) Tailwind classes — bg/text/border snapped every
|
|
5
|
+
* time the >10s boundary was crossed. R187 adds
|
|
6
|
+
* transition-colors duration-300 so the palette eases
|
|
7
|
+
* smoothly through the stale-onset and recovery.
|
|
8
|
+
*
|
|
9
|
+
* Test:
|
|
10
|
+
* 1. Mount: data-freshness-chip-stale='false' (just synced)
|
|
11
|
+
* 2. className includes transition-colors + duration-300
|
|
12
|
+
* 3. className includes gray fresh palette
|
|
13
|
+
* 4. computed transition string includes background-color,
|
|
14
|
+
* border-*, color properties
|
|
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 browser = await chromium.launch({ headless: true });
|
|
21
|
+
|
|
22
|
+
const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
|
|
23
|
+
await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
|
|
24
|
+
await ctx.addInitScript(() => {
|
|
25
|
+
try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const fresh = new Date(Date.now() - 60 * 1000).toISOString();
|
|
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: 'working', model: 'claude-opus-4', runtime: 'cli-claude-code',
|
|
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*', (route) => route.fulfill({ json: { messages: [] } }));
|
|
41
|
+
await ctx.route('**/api/hub/tasks*', (route) => route.fulfill({ json: { tasks: [] } }));
|
|
42
|
+
|
|
43
|
+
const page = await ctx.newPage();
|
|
44
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
45
|
+
await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 2, { timeout: 30000 });
|
|
46
|
+
await page.waitForSelector('[data-freshness-chip]', { timeout: 10000 });
|
|
47
|
+
await page.waitForTimeout(400);
|
|
48
|
+
|
|
49
|
+
const probe = await page.evaluate(() => {
|
|
50
|
+
const chip = document.querySelector('[data-freshness-chip]');
|
|
51
|
+
if (!chip) return null;
|
|
52
|
+
const computed = getComputedStyle(chip);
|
|
53
|
+
return {
|
|
54
|
+
staleAttr: chip.getAttribute('data-freshness-chip-stale'),
|
|
55
|
+
className: chip.getAttribute('class') || '',
|
|
56
|
+
transition: computed.transitionProperty + ' / ' + computed.transitionDuration,
|
|
57
|
+
text: chip.textContent,
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
await browser.close();
|
|
62
|
+
|
|
63
|
+
const results = {
|
|
64
|
+
chip_found: probe !== null,
|
|
65
|
+
initial_stale_false: probe?.staleAttr === 'false',
|
|
66
|
+
has_transition_colors: probe?.className.includes('transition-colors'),
|
|
67
|
+
has_duration_300: probe?.className.includes('duration-300'),
|
|
68
|
+
has_fresh_palette_bg: probe?.className.includes('bg-gray-500/10'),
|
|
69
|
+
has_fresh_palette_text: probe?.className.includes('text-gray-400'),
|
|
70
|
+
has_fresh_palette_border: probe?.className.includes('border-gray-500/20'),
|
|
71
|
+
no_stale_palette: !probe?.className.includes('bg-amber-500/10'),
|
|
72
|
+
transition_covers_bg: (probe?.transition || '').includes('background-color'),
|
|
73
|
+
transition_covers_border: (probe?.transition || '').includes('border'),
|
|
74
|
+
transition_covers_color: (probe?.transition || '').match(/(^|[\s,/])color\b/),
|
|
75
|
+
text_shows_live: /^live ·/.test(probe?.text || ''),
|
|
76
|
+
};
|
|
77
|
+
const ok = Object.values(results).every(Boolean);
|
|
78
|
+
console.log(`${ok ? '✅' : '❌'} freshness chip transition:`, JSON.stringify(Object.fromEntries(Object.entries(results).map(([k,v]) => [k, !!v]))),
|
|
79
|
+
`\n probe:`, probe);
|
|
80
|
+
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{YYQWV4xs3ykuROv0xY0zx → Zlney4n5lIB5xb2KaqfD0}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|