@sleep2agi/agent-network-dashboard 0.4.6-preview.243 → 0.4.6-preview.245
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/{081n9ddv6dtxd.js → 0i79q~nw7etdd.js} +1 -1
- package/.next/static/chunks/{0xc7xilzarj1l.js → 0qm9inlym47r~.js} +1 -1
- package/.next/static/chunks/{0q.8kfj4x.v.r.js → 0wdtmya8a9pr-.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/components/TopoGraph.tsx +33 -1
- package/package.json +2 -2
- package/scripts/topo-pin-intersection-warning-crossfade-test.mjs +107 -0
- package/scripts/topo-prepublish-guard-test.mjs +95 -0
- /package/.next/static/{Lak89Yx_yYYmp3PZkH4rQ → pvNR5ZwWluPpEFxiqbHxs}/_buildManifest.js +0 -0
- /package/.next/static/{Lak89Yx_yYYmp3PZkH4rQ → pvNR5ZwWluPpEFxiqbHxs}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{Lak89Yx_yYYmp3PZkH4rQ → pvNR5ZwWluPpEFxiqbHxs}/_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.243"],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.245"],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":475,"timestamp":87994712218,"id":4,"parentId":1,"tags":{},"startTime":1778895966959,"traceId":"dafbe8921f55b51b"},{"name":"load-custom-routes","duration":695,"timestamp":87994712908,"id":5,"parentId":1,"tags":{},"startTime":1778895966959,"traceId":"dafbe8921f55b51b"},{"name":"create-dist-dir","duration":1136,"timestamp":87994713671,"id":6,"parentId":1,"tags":{},"startTime":1778895966960,"traceId":"dafbe8921f55b51b"},{"name":"clean","duration":675,"timestamp":87994715655,"id":7,"parentId":1,"tags":{},"startTime":1778895966962,"traceId":"dafbe8921f55b51b"},{"name":"discover-routes","duration":31479,"timestamp":87994845920,"id":8,"parentId":1,"tags":{},"startTime":1778895967092,"traceId":"dafbe8921f55b51b"},{"name":"create-root-mapping","duration":180,"timestamp":87994877481,"id":9,"parentId":1,"tags":{},"startTime":1778895967124,"traceId":"dafbe8921f55b51b"},{"name":"generate-route-types","duration":32869,"timestamp":87994880561,"id":10,"parentId":1,"tags":{},"startTime":1778895967127,"traceId":"dafbe8921f55b51b"},{"name":"public-dir-conflict-check","duration":142,"timestamp":87994913662,"id":11,"parentId":1,"tags":{},"startTime":1778895967160,"traceId":"dafbe8921f55b51b"},{"name":"generate-routes-manifest","duration":6980,"timestamp":87994913991,"id":12,"parentId":1,"tags":{},"startTime":1778895967160,"traceId":"dafbe8921f55b51b"},{"name":"run-turbopack","duration":11532654,"timestamp":87994941087,"id":14,"parentId":1,"tags":{},"startTime":1778895967187,"traceId":"dafbe8921f55b51b"},{"name":"turbopack-build-events","duration":111,"timestamp":87995323289,"id":15,"parentId":1,"tags":{},"startTime":1778895967570,"traceId":"dafbe8921f55b51b"},{"name":"run-typescript","duration":14086399,"timestamp":88006483791,"id":16,"parentId":1,"tags":{},"startTime":1778895978730,"traceId":"dafbe8921f55b51b"},{"name":"generate-required-server-files","duration":2447,"timestamp":88020571294,"id":18,"parentId":1,"tags":{},"startTime":1778895992818,"traceId":"dafbe8921f55b51b"},{"name":"check-static-error-page","duration":17151,"timestamp":88020821634,"id":20,"parentId":19,"tags":{},"startTime":1778895993068,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":824138,"timestamp":88020846582,"id":63,"parentId":22,"tags":{},"startTime":1778895993093,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":845961,"timestamp":88020824934,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778895993071,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":865670,"timestamp":88020846721,"id":64,"parentId":25,"tags":{},"startTime":1778895993093,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":884090,"timestamp":88020828398,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778895993075,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":904067,"timestamp":88020850298,"id":70,"parentId":32,"tags":{},"startTime":1778895993097,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":924599,"timestamp":88020829853,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778895993076,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":929925,"timestamp":88020850375,"id":71,"parentId":33,"tags":{},"startTime":1778895993097,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":950351,"timestamp":88020830033,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778895993076,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":936155,"timestamp":88020853086,"id":72,"parentId":34,"tags":{},"startTime":1778895993099,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":959143,"timestamp":88020830184,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778895993076,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":940829,"timestamp":88020853131,"id":73,"parentId":35,"tags":{},"startTime":1778895993099,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":963718,"timestamp":88020830340,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778895993077,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":946592,"timestamp":88020853253,"id":74,"parentId":36,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":969024,"timestamp":88020830887,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778895993077,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":951720,"timestamp":88020849718,"id":67,"parentId":28,"tags":{},"startTime":1778895993096,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":972598,"timestamp":88020828890,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778895993075,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":953637,"timestamp":88020853283,"id":75,"parentId":37,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":975870,"timestamp":88020831105,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778895993077,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":955135,"timestamp":88020853318,"id":77,"parentId":39,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":977091,"timestamp":88020831400,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778895993078,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":959729,"timestamp":88020853331,"id":78,"parentId":40,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":981580,"timestamp":88020831522,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778895993078,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":964900,"timestamp":88020853341,"id":79,"parentId":41,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":986646,"timestamp":88020831636,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778895993078,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":968888,"timestamp":88020853353,"id":80,"parentId":42,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":990503,"timestamp":88020831786,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778895993078,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":972983,"timestamp":88020853366,"id":81,"parentId":43,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":994483,"timestamp":88020831910,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778895993078,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":989268,"timestamp":88020853376,"id":82,"parentId":44,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1010593,"timestamp":88020832129,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778895993078,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":993571,"timestamp":88020853390,"id":83,"parentId":45,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1014768,"timestamp":88020832267,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778895993079,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":998354,"timestamp":88020853404,"id":84,"parentId":46,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1019399,"timestamp":88020832417,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778895993079,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1003903,"timestamp":88020853417,"id":85,"parentId":47,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1024789,"timestamp":88020832579,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778895993079,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1005010,"timestamp":88020853303,"id":76,"parentId":38,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1027092,"timestamp":88020831274,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778895993078,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1008330,"timestamp":88020853427,"id":86,"parentId":48,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1029074,"timestamp":88020832726,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778895993079,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1004582,"timestamp":88020862061,"id":88,"parentId":24,"tags":{},"startTime":1778895993108,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1041159,"timestamp":88020825538,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778895993072,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1003425,"timestamp":88020867908,"id":89,"parentId":31,"tags":{},"startTime":1778895993114,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1041954,"timestamp":88020829421,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778895993076,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1072649,"timestamp":88020849919,"id":68,"parentId":29,"tags":{},"startTime":1778895993096,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1093560,"timestamp":88020829084,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778895993075,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1077595,"timestamp":88020850104,"id":69,"parentId":30,"tags":{},"startTime":1778895993096,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1098499,"timestamp":88020829269,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778895993076,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1076633,"timestamp":88020853440,"id":87,"parentId":49,"tags":{},"startTime":1778895993100,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1095287,"timestamp":88020834845,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778895993081,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1062504,"timestamp":88020870118,"id":90,"parentId":23,"tags":{},"startTime":1778895993116,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1107415,"timestamp":88020825266,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778895993072,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1069350,"timestamp":88020870179,"id":94,"parentId":53,"tags":{},"startTime":1778895993116,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1103419,"timestamp":88020836155,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778895993082,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1076403,"timestamp":88020870190,"id":95,"parentId":54,"tags":{},"startTime":1778895993116,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1110249,"timestamp":88020836393,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778895993083,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1083994,"timestamp":88020870203,"id":96,"parentId":56,"tags":{},"startTime":1778895993116,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1116958,"timestamp":88020837289,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778895993084,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1093828,"timestamp":88020870211,"id":97,"parentId":57,"tags":{},"startTime":1778895993116,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1126587,"timestamp":88020837511,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778895993084,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1098101,"timestamp":88020870224,"id":98,"parentId":59,"tags":{},"startTime":1778895993116,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1130182,"timestamp":88020838185,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778895993084,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1110591,"timestamp":88020870239,"id":99,"parentId":60,"tags":{},"startTime":1778895993117,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1142555,"timestamp":88020838349,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778895993085,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1118090,"timestamp":88020870253,"id":100,"parentId":61,"tags":{},"startTime":1778895993117,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1149906,"timestamp":88020838508,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778895993085,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1095015,"timestamp":88020901148,"id":101,"parentId":55,"tags":{},"startTime":1778895993147,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1159543,"timestamp":88020836678,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778895993083,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1070594,"timestamp":88020932714,"id":102,"parentId":58,"tags":{},"startTime":1778895993179,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1165640,"timestamp":88020837725,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778895993084,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1165408,"timestamp":88020870171,"id":93,"parentId":52,"tags":{},"startTime":1778895993116,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1199757,"timestamp":88020835888,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778895993082,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1232066,"timestamp":88020849173,"id":66,"parentId":27,"tags":{},"startTime":1778895993095,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1252591,"timestamp":88020828737,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778895993075,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1258388,"timestamp":88020848955,"id":65,"parentId":26,"tags":{},"startTime":1778895993095,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1278843,"timestamp":88020828577,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778895993075,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1237356,"timestamp":88020870159,"id":92,"parentId":51,"tags":{},"startTime":1778895993116,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1272005,"timestamp":88020835534,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778895993082,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1268437,"timestamp":88020870145,"id":91,"parentId":50,"tags":{},"startTime":1778895993116,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1303311,"timestamp":88020835344,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778895993082,"traceId":"dafbe8921f55b51b"},{"name":"is-page-static","duration":1338107,"timestamp":88020845494,"id":62,"parentId":21,"tags":{},"startTime":1778895993092,"traceId":"dafbe8921f55b51b"},{"name":"check-page","duration":1360375,"timestamp":88020823316,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778895993070,"traceId":"dafbe8921f55b51b"},{"name":"static-check","duration":1363264,"timestamp":88020820474,"id":19,"parentId":1,"tags":{},"startTime":1778895993067,"traceId":"dafbe8921f55b51b"},{"name":"write-routes-manifest","duration":485,"timestamp":88022192235,"id":104,"parentId":1,"tags":{},"startTime":1778895994439,"traceId":"dafbe8921f55b51b"},{"name":"load-dotenv","duration":65,"timestamp":88022208042,"id":107,"parentId":106,"tags":{},"startTime":1778895994454,"traceId":"dafbe8921f55b51b"},{"name":"run-export-path-map","duration":941,"timestamp":88022214559,"id":108,"parentId":106,"tags":{},"startTime":1778895994461,"traceId":"dafbe8921f55b51b"},{"name":"next-export","duration":891943,"timestamp":88022206382,"id":106,"parentId":1,"tags":{},"startTime":1778895994453,"traceId":"dafbe8921f55b51b"}]
|
|
2
|
-
[{"name":"move-exported-app-not-found-","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":421,"timestamp":88666141914,"id":4,"parentId":1,"tags":{},"startTime":1778896638388,"traceId":"98563d23dc174699"},{"name":"load-custom-routes","duration":698,"timestamp":88666142576,"id":5,"parentId":1,"tags":{},"startTime":1778896638389,"traceId":"98563d23dc174699"},{"name":"create-dist-dir","duration":1902,"timestamp":88666143338,"id":6,"parentId":1,"tags":{},"startTime":1778896638390,"traceId":"98563d23dc174699"},{"name":"clean","duration":52897,"timestamp":88666146876,"id":7,"parentId":1,"tags":{},"startTime":1778896638393,"traceId":"98563d23dc174699"},{"name":"discover-routes","duration":32885,"timestamp":88666324925,"id":8,"parentId":1,"tags":{},"startTime":1778896638571,"traceId":"98563d23dc174699"},{"name":"create-root-mapping","duration":276,"timestamp":88666357887,"id":9,"parentId":1,"tags":{},"startTime":1778896638604,"traceId":"98563d23dc174699"},{"name":"generate-route-types","duration":25551,"timestamp":88666361425,"id":10,"parentId":1,"tags":{},"startTime":1778896638608,"traceId":"98563d23dc174699"},{"name":"public-dir-conflict-check","duration":135,"timestamp":88666387121,"id":11,"parentId":1,"tags":{},"startTime":1778896638633,"traceId":"98563d23dc174699"},{"name":"generate-routes-manifest","duration":6821,"timestamp":88666387426,"id":12,"parentId":1,"tags":{},"startTime":1778896638634,"traceId":"98563d23dc174699"},{"name":"run-turbopack","duration":13076792,"timestamp":88666401204,"id":14,"parentId":1,"tags":{},"startTime":1778896638647,"traceId":"98563d23dc174699"},{"name":"turbopack-build-events","duration":131,"timestamp":88666794992,"id":15,"parentId":1,"tags":{},"startTime":1778896639041,"traceId":"98563d23dc174699"},{"name":"run-typescript","duration":18826522,"timestamp":88679548028,"id":16,"parentId":1,"tags":{},"startTime":1778896651794,"traceId":"98563d23dc174699"},{"name":"generate-required-server-files","duration":8464,"timestamp":88698375898,"id":18,"parentId":1,"tags":{},"startTime":1778896670622,"traceId":"98563d23dc174699"},{"name":"check-static-error-page","duration":31981,"timestamp":88698700361,"id":20,"parentId":19,"tags":{},"startTime":1778896670947,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":778455,"timestamp":88698735106,"id":62,"parentId":21,"tags":{},"startTime":1778896670981,"traceId":"98563d23dc174699"},{"name":"check-page","duration":806764,"timestamp":88698706963,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778896670953,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":875974,"timestamp":88698735551,"id":63,"parentId":22,"tags":{},"startTime":1778896670982,"traceId":"98563d23dc174699"},{"name":"check-page","duration":898692,"timestamp":88698712936,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778896670959,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":912463,"timestamp":88698736616,"id":69,"parentId":30,"tags":{},"startTime":1778896670983,"traceId":"98563d23dc174699"},{"name":"check-page","duration":932527,"timestamp":88698716636,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778896670963,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":917296,"timestamp":88698736879,"id":71,"parentId":33,"tags":{},"startTime":1778896670983,"traceId":"98563d23dc174699"},{"name":"check-page","duration":936280,"timestamp":88698717961,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778896670964,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":905736,"timestamp":88698753210,"id":72,"parentId":34,"tags":{},"startTime":1778896670999,"traceId":"98563d23dc174699"},{"name":"check-page","duration":940967,"timestamp":88698718089,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778896670964,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":918795,"timestamp":88698753296,"id":73,"parentId":35,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":953977,"timestamp":88698718186,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778896670964,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":939650,"timestamp":88698735971,"id":66,"parentId":27,"tags":{},"startTime":1778896670982,"traceId":"98563d23dc174699"},{"name":"check-page","duration":959439,"timestamp":88698716247,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778896670963,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":926632,"timestamp":88698753484,"id":74,"parentId":36,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":961588,"timestamp":88698718581,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778896670965,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":930769,"timestamp":88698753551,"id":76,"parentId":38,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":965565,"timestamp":88698718807,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778896670965,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":935251,"timestamp":88698753565,"id":77,"parentId":39,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":969985,"timestamp":88698718871,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778896670965,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":940177,"timestamp":88698753578,"id":78,"parentId":40,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":974853,"timestamp":88698718945,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778896670965,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":945038,"timestamp":88698753591,"id":79,"parentId":41,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":979639,"timestamp":88698719033,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778896670965,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":949897,"timestamp":88698753600,"id":80,"parentId":42,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":984418,"timestamp":88698719133,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778896670965,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":954234,"timestamp":88698753536,"id":75,"parentId":37,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":989097,"timestamp":88698718717,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778896670965,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":959669,"timestamp":88698753612,"id":81,"parentId":43,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":994100,"timestamp":88698719231,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778896670966,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":960203,"timestamp":88698753625,"id":82,"parentId":44,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":994541,"timestamp":88698719334,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778896670966,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":968424,"timestamp":88698753634,"id":83,"parentId":45,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1002658,"timestamp":88698719457,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778896670966,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":968600,"timestamp":88698753647,"id":84,"parentId":46,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1002706,"timestamp":88698719566,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778896670966,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":972295,"timestamp":88698753661,"id":85,"parentId":47,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1006288,"timestamp":88698719704,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778896670966,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1002461,"timestamp":88698753672,"id":86,"parentId":48,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1036405,"timestamp":88698719815,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778896670966,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1010106,"timestamp":88698771365,"id":88,"parentId":24,"tags":{},"startTime":1778896671018,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1068054,"timestamp":88698713495,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778896670960,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1028056,"timestamp":88698753682,"id":87,"parentId":49,"tags":{},"startTime":1778896671000,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1061837,"timestamp":88698719942,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778896670966,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1046958,"timestamp":88698772641,"id":89,"parentId":31,"tags":{},"startTime":1778896671019,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1102941,"timestamp":88698716766,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778896670963,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":893061,"timestamp":88698932378,"id":90,"parentId":23,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1112257,"timestamp":88698713246,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778896670960,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":921480,"timestamp":88698932464,"id":92,"parentId":51,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1130810,"timestamp":88698723226,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778896670970,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":959345,"timestamp":88698932478,"id":93,"parentId":52,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1168441,"timestamp":88698723460,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778896670970,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1160418,"timestamp":88698736809,"id":70,"parentId":32,"tags":{},"startTime":1778896670983,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1179516,"timestamp":88698717776,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778896670964,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":984234,"timestamp":88698932449,"id":91,"parentId":50,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1194673,"timestamp":88698722082,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778896670968,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1003779,"timestamp":88698932492,"id":94,"parentId":53,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1212640,"timestamp":88698723709,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778896670970,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1010773,"timestamp":88698932516,"id":96,"parentId":56,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1218469,"timestamp":88698724885,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778896670971,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1018264,"timestamp":88698932548,"id":98,"parentId":59,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1221885,"timestamp":88698728979,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778896670975,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1031878,"timestamp":88698932665,"id":99,"parentId":60,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1232782,"timestamp":88698731849,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778896670978,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1039278,"timestamp":88698932690,"id":100,"parentId":61,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1240000,"timestamp":88698732056,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778896670978,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1055590,"timestamp":88698932531,"id":97,"parentId":57,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1259943,"timestamp":88698728263,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778896670975,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1058128,"timestamp":88698932704,"id":101,"parentId":58,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1262378,"timestamp":88698728502,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778896670975,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1268874,"timestamp":88698735707,"id":64,"parentId":25,"tags":{},"startTime":1778896670982,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1288660,"timestamp":88698715986,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778896670962,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1076545,"timestamp":88698932717,"id":102,"parentId":55,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1285071,"timestamp":88698724242,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778896670971,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1333599,"timestamp":88698736440,"id":68,"parentId":29,"tags":{},"startTime":1778896670983,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1353627,"timestamp":88698716490,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778896670963,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1179746,"timestamp":88698932506,"id":95,"parentId":54,"tags":{},"startTime":1778896671179,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1388387,"timestamp":88698723945,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778896670970,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1422387,"timestamp":88698735839,"id":65,"parentId":26,"tags":{},"startTime":1778896670982,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1442172,"timestamp":88698716148,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778896670962,"traceId":"98563d23dc174699"},{"name":"is-page-static","duration":1484485,"timestamp":88698736259,"id":67,"parentId":28,"tags":{},"startTime":1778896670983,"traceId":"98563d23dc174699"},{"name":"check-page","duration":1504467,"timestamp":88698716354,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778896670963,"traceId":"98563d23dc174699"},{"name":"static-check","duration":1521928,"timestamp":88698698934,"id":19,"parentId":1,"tags":{},"startTime":1778896670945,"traceId":"98563d23dc174699"},{"name":"write-routes-manifest","duration":484,"timestamp":88700229398,"id":104,"parentId":1,"tags":{},"startTime":1778896672476,"traceId":"98563d23dc174699"},{"name":"load-dotenv","duration":75,"timestamp":88700242621,"id":107,"parentId":106,"tags":{},"startTime":1778896672489,"traceId":"98563d23dc174699"},{"name":"run-export-path-map","duration":792,"timestamp":88700247642,"id":108,"parentId":106,"tags":{},"startTime":1778896672494,"traceId":"98563d23dc174699"},{"name":"next-export","duration":879435,"timestamp":88700240841,"id":106,"parentId":1,"tags":{},"startTime":1778896672487,"traceId":"98563d23dc174699"}]
|
|
2
|
+
[{"name":"move-exported-app-not-found-","duration":15866,"timestamp":88701130759,"id":109,"parentId":105,"tags":{},"startTime":1778896673377,"traceId":"98563d23dc174699"},{"name":"move-exported-app-global-error-","duration":508,"timestamp":88701146806,"id":110,"parentId":105,"tags":{},"startTime":1778896673393,"traceId":"98563d23dc174699"},{"name":"static-generation","duration":925636,"timestamp":88700234350,"id":105,"parentId":1,"tags":{},"startTime":1778896672481,"traceId":"98563d23dc174699"},{"name":"write-routes-manifest","duration":488,"timestamp":88701160220,"id":111,"parentId":1,"tags":{},"startTime":1778896673407,"traceId":"98563d23dc174699"},{"name":"print-tree-view","duration":6870,"timestamp":88701198581,"id":112,"parentId":1,"tags":{},"startTime":1778896673445,"traceId":"98563d23dc174699"},{"name":"write-route-bundle-stats","duration":20446,"timestamp":88701205494,"id":113,"parentId":1,"tags":{},"startTime":1778896673452,"traceId":"98563d23dc174699"},{"name":"telemetry-flush","duration":26533,"timestamp":88701225986,"id":114,"parentId":1,"tags":{},"startTime":1778896673472,"traceId":"98563d23dc174699"},{"name":"next-build","duration":35194147,"timestamp":88666058412,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778896638305,"traceId":"98563d23dc174699"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":13076792,"timestamp":88666401204,"id":14,"parentId":1,"tags":{},"startTime":1778896638647,"traceId":"98563d23dc174699"},{"name":"turbopack-build-events","duration":131,"timestamp":88666794992,"id":15,"parentId":1,"tags":{},"startTime":1778896639041,"traceId":"98563d23dc174699"},{"name":"run-typescript","duration":18826522,"timestamp":88679548028,"id":16,"parentId":1,"tags":{},"startTime":1778896651794,"traceId":"98563d23dc174699"},{"name":"static-check","duration":1521928,"timestamp":88698698934,"id":19,"parentId":1,"tags":{},"startTime":1778896670945,"traceId":"98563d23dc174699"},{"name":"static-generation","duration":925636,"timestamp":88700234350,"id":105,"parentId":1,"tags":{},"startTime":1778896672481,"traceId":"98563d23dc174699"},{"name":"telemetry-flush","duration":26533,"timestamp":88701225986,"id":114,"parentId":1,"tags":{},"startTime":1778896673472,"traceId":"98563d23dc174699"},{"name":"next-build","duration":35194147,"timestamp":88666058412,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778896638305,"traceId":"98563d23dc174699"}]
|
|
@@ -2138,7 +2138,39 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
|
|
|
2138
2138
|
<span>
|
|
2139
2139
|
<span className="hidden sm:inline" data-pin-intersection-prefix>match: </span>
|
|
2140
2140
|
{pinDimCount} pins<span className="opacity-70"> · {matchAliases.length}</span>
|
|
2141
|
-
{
|
|
2141
|
+
{/* Round 237 / Loop: ⚠ warning glyph picks up the
|
|
2142
|
+
always-mount-opacity-gate idiom. Pre-R237 the
|
|
2143
|
+
glyph was conditionally rendered on isEmpty,
|
|
2144
|
+
snap-mounting when filter intersection
|
|
2145
|
+
narrowed to 0 AND introducing a layout shift
|
|
2146
|
+
(ml-1 margin appears alongside the glyph,
|
|
2147
|
+
widening the chip by ~16px). The R236 color
|
|
2148
|
+
easing made the colour crossing smooth but
|
|
2149
|
+
the glyph still pop-jumped, breaking the
|
|
2150
|
+
polish that R236 just installed at this
|
|
2151
|
+
same chip.
|
|
2152
|
+
|
|
2153
|
+
Always-mount the glyph with opacity gated by
|
|
2154
|
+
isEmpty + the same 200ms ease-out that R236
|
|
2155
|
+
uses on the chip's colour transition. Now the
|
|
2156
|
+
whole isEmpty crossing — bg, color, border,
|
|
2157
|
+
AND glyph visibility — eases as one
|
|
2158
|
+
coordinated 200ms event. ml-1 margin is
|
|
2159
|
+
reserved permanently, so the chip width
|
|
2160
|
+
stays stable through the crossing (no
|
|
2161
|
+
layout-shift jank against neighbouring
|
|
2162
|
+
chips). data-pin-intersection-warning attr
|
|
2163
|
+
surfaces the visibility state for test
|
|
2164
|
+
introspection. 11th surface in the always-
|
|
2165
|
+
mount-opacity-gate family (R181 / R182 /
|
|
2166
|
+
R183 / R213 ×2 / R214 / R215 / R221 / R222 /
|
|
2167
|
+
R223 / R237). */}
|
|
2168
|
+
<span
|
|
2169
|
+
className="ml-1"
|
|
2170
|
+
aria-hidden
|
|
2171
|
+
data-pin-intersection-warning={isEmpty ? 'true' : 'false'}
|
|
2172
|
+
style={{ opacity: isEmpty ? 1 : 0, transition: 'opacity 200ms ease-out' }}
|
|
2173
|
+
>⚠</span>
|
|
2142
2174
|
</span>
|
|
2143
2175
|
</span>
|
|
2144
2176
|
);
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleep2agi/agent-network-dashboard",
|
|
3
|
-
"version": "0.4.6-preview.
|
|
3
|
+
"version": "0.4.6-preview.245",
|
|
4
4
|
"description": "Agent Network Dashboard — Web UI for managing AI Agent networks",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "next dev",
|
|
7
7
|
"build": "next build",
|
|
8
8
|
"start": "next start",
|
|
9
9
|
"lint": "eslint",
|
|
10
|
-
"prepublishOnly": "
|
|
10
|
+
"prepublishOnly": "[ -f .next/BUILD_ID ] || (echo 'prepublishOnly: .next/BUILD_ID missing — run npm run build first (see commit 05c1ebf body for R224 chunk-500 root cause)' >&2 && exit 1)"
|
|
11
11
|
},
|
|
12
12
|
"bin": {
|
|
13
13
|
"agent-network-dashboard": "./bin/start.js"
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* Round 237 verification: pin-intersection chip's ⚠ warning glyph
|
|
2
|
+
* always-mounts with opacity gated on isEmpty, instead of
|
|
3
|
+
* conditional render on isEmpty. Closes the snap-mount + layout-
|
|
4
|
+
* shift jank that survived R236's color easing.
|
|
5
|
+
*
|
|
6
|
+
* Test scope:
|
|
7
|
+
* - non-empty state: glyph in DOM, data-pin-intersection-warning
|
|
8
|
+
* ='false', opacity=0, transition includes 'opacity 200ms'
|
|
9
|
+
* - empty state: glyph in DOM, data-pin-intersection-warning
|
|
10
|
+
* ='true', opacity=1, transition still present
|
|
11
|
+
* - chip width: stable across the crossing (no layout-shift)
|
|
12
|
+
*
|
|
13
|
+
* Reuses the R236 scenario tuning — alpha is the only working
|
|
14
|
+
* anthropic, gpt sessions all idle; pin working+A (non-empty)
|
|
15
|
+
* then re-pin vendor to O (empty).
|
|
16
|
+
*/
|
|
17
|
+
import { chromium } from 'playwright';
|
|
18
|
+
import { readFileSync } from 'node:fs';
|
|
19
|
+
|
|
20
|
+
const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
|
|
21
|
+
const browser = await chromium.launch({ headless: true });
|
|
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
|
+
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, model, status) => ({
|
|
33
|
+
alias, status, model, runtime: 'claude-code-cli',
|
|
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: [
|
|
38
|
+
mk('alpha', 'claude-opus-4', 'working'),
|
|
39
|
+
mk('beta', 'claude-opus-4', 'idle'),
|
|
40
|
+
mk('gamma', 'gpt-4', 'idle'),
|
|
41
|
+
mk('delta', 'gpt-4', 'idle'),
|
|
42
|
+
] } });
|
|
43
|
+
});
|
|
44
|
+
await ctx.route('**/api/hub/messages*', (r2) => r2.fulfill({ json: { messages: [] } }));
|
|
45
|
+
await ctx.route('**/api/hub/tasks*', (r2) => r2.fulfill({ json: { tasks: [] } }));
|
|
46
|
+
|
|
47
|
+
const page = await ctx.newPage();
|
|
48
|
+
await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
|
|
49
|
+
await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 4, { timeout: 30000 });
|
|
50
|
+
|
|
51
|
+
await page.locator('[data-pressure-seg="working"]').first().click();
|
|
52
|
+
await page.locator('[data-vendor-letter="A"]').first().click();
|
|
53
|
+
await page.waitForSelector('[data-pin-intersection-warning]', { timeout: 5000, state: 'attached' });
|
|
54
|
+
await page.waitForTimeout(300);
|
|
55
|
+
|
|
56
|
+
const probe = (page) => page.evaluate(() => {
|
|
57
|
+
const glyph = document.querySelector('[data-pin-intersection-warning]');
|
|
58
|
+
const chip = document.querySelector('[data-pin-intersection]');
|
|
59
|
+
if (!glyph || !chip) return null;
|
|
60
|
+
return {
|
|
61
|
+
present: true,
|
|
62
|
+
warning: glyph.getAttribute('data-pin-intersection-warning'),
|
|
63
|
+
opacity: parseFloat(glyph.style.opacity || '1'),
|
|
64
|
+
transition: glyph.style.transition,
|
|
65
|
+
text: glyph.textContent,
|
|
66
|
+
chipWidthPx: Math.round(chip.getBoundingClientRect().width * 100) / 100,
|
|
67
|
+
chipEmpty: chip.getAttribute('data-pin-intersection-empty'),
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
const nonEmpty = await probe(page);
|
|
72
|
+
|
|
73
|
+
// Flip vendor pin to 'O' — working ∩ openai = 0 (gpt all idle) → empty
|
|
74
|
+
await page.locator('[data-vendor-letter="O"]').first().click();
|
|
75
|
+
await page.waitForTimeout(300);
|
|
76
|
+
const empty = await probe(page);
|
|
77
|
+
|
|
78
|
+
await browser.close();
|
|
79
|
+
|
|
80
|
+
const widthDelta = nonEmpty && empty
|
|
81
|
+
? Math.abs(nonEmpty.chipWidthPx - empty.chipWidthPx)
|
|
82
|
+
: Infinity;
|
|
83
|
+
|
|
84
|
+
const results = {
|
|
85
|
+
nonempty_in_dom: nonEmpty?.present === true,
|
|
86
|
+
nonempty_warning_false: nonEmpty?.warning === 'false',
|
|
87
|
+
nonempty_opacity_0: nonEmpty?.opacity === 0,
|
|
88
|
+
nonempty_has_transition: /opacity\s+200ms/.test(nonEmpty?.transition || ''),
|
|
89
|
+
nonempty_text_is_warning: nonEmpty?.text === '⚠',
|
|
90
|
+
nonempty_chip_empty_false: nonEmpty?.chipEmpty === 'false',
|
|
91
|
+
|
|
92
|
+
empty_in_dom: empty?.present === true,
|
|
93
|
+
empty_warning_true: empty?.warning === 'true',
|
|
94
|
+
empty_opacity_1: empty?.opacity === 1,
|
|
95
|
+
empty_has_transition: /opacity\s+200ms/.test(empty?.transition || ''),
|
|
96
|
+
empty_chip_empty_true: empty?.chipEmpty === 'true',
|
|
97
|
+
|
|
98
|
+
// Chip width stable across the crossing (no layout-shift jank).
|
|
99
|
+
// 1px tolerance for fractional rounding only.
|
|
100
|
+
chip_width_stable: widthDelta <= 1,
|
|
101
|
+
};
|
|
102
|
+
const ok = Object.values(results).every(Boolean);
|
|
103
|
+
console.log(`${ok ? '✅' : '❌'} pin-intersection warning crossfade:`, JSON.stringify(results),
|
|
104
|
+
'\n nonEmpty:', nonEmpty,
|
|
105
|
+
'\n empty: ', empty,
|
|
106
|
+
'\n widthDelta:', widthDelta);
|
|
107
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* Round 238 verification: prepublishOnly is now a guard-only check
|
|
2
|
+
* instead of a destructive rebuild. This closes the chunk-500 root
|
|
3
|
+
* cause documented since R224.
|
|
4
|
+
*
|
|
5
|
+
* Pre-R238 prepublishOnly was 'rm -rf .next && npm run build', which:
|
|
6
|
+
* 1. Deleted .next/ on disk during npm publish.
|
|
7
|
+
* 2. Rebuilt with fresh content-hashed chunk filenames.
|
|
8
|
+
* 3. Left the already-running next-server process with a stale
|
|
9
|
+
* in-memory manifest pointing at chunks that no longer existed
|
|
10
|
+
* on disk → ENOENT → 500 on lazy chunk fetch.
|
|
11
|
+
* 4. Required a manual 'restart dash AFTER publish' step every
|
|
12
|
+
* round as a workaround.
|
|
13
|
+
*
|
|
14
|
+
* Post-R238 prepublishOnly is a guard:
|
|
15
|
+
* '[ -f .next/BUILD_ID ] || (echo ... && exit 1)'
|
|
16
|
+
*
|
|
17
|
+
* - If .next/BUILD_ID exists, succeed silently — publish proceeds
|
|
18
|
+
* with whatever .next/ is on disk (intentional: pipeline order
|
|
19
|
+
* is now bump → build → restart → test → publish, so the build
|
|
20
|
+
* already embeds the new version BEFORE publish).
|
|
21
|
+
* - If .next/BUILD_ID is missing, fail loudly with the R224
|
|
22
|
+
* reference so the developer knows what to do.
|
|
23
|
+
*
|
|
24
|
+
* No rm-rf-rebuild = running server's manifest stays consistent
|
|
25
|
+
* with disk chunks through the publish step. No post-publish
|
|
26
|
+
* restart needed.
|
|
27
|
+
*
|
|
28
|
+
* Test verifies:
|
|
29
|
+
* 1. package.json scripts.prepublishOnly contains no 'rm' command
|
|
30
|
+
* (destructive form removed)
|
|
31
|
+
* 2. package.json scripts.prepublishOnly contains no 'npm run
|
|
32
|
+
* build' (rebuild on publish removed)
|
|
33
|
+
* 3. The guard form is present (BUILD_ID check)
|
|
34
|
+
* 4. Running `npm run prepublishOnly` exits 0 when .next/BUILD_ID
|
|
35
|
+
* exists, leaving .next/ untouched (mtime + content hash stable)
|
|
36
|
+
*/
|
|
37
|
+
import { readFileSync, statSync } from 'node:fs';
|
|
38
|
+
import { execSync } from 'node:child_process';
|
|
39
|
+
import { createHash } from 'node:crypto';
|
|
40
|
+
|
|
41
|
+
const pkg = JSON.parse(readFileSync('/home/vansin/agent-network-dashboard/package.json', 'utf8'));
|
|
42
|
+
const hookSrc = pkg.scripts?.prepublishOnly || '';
|
|
43
|
+
|
|
44
|
+
// Hash + mtime of .next/BUILD_ID before running the hook
|
|
45
|
+
const buildIdPath = '/home/vansin/agent-network-dashboard/.next/BUILD_ID';
|
|
46
|
+
const before = (() => {
|
|
47
|
+
try {
|
|
48
|
+
return {
|
|
49
|
+
mtime: statSync(buildIdPath).mtimeMs,
|
|
50
|
+
hash: createHash('sha256').update(readFileSync(buildIdPath)).digest('hex'),
|
|
51
|
+
};
|
|
52
|
+
} catch {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
})();
|
|
56
|
+
|
|
57
|
+
// Run the prepublishOnly hook explicitly via npm run
|
|
58
|
+
let exitCode = -1;
|
|
59
|
+
try {
|
|
60
|
+
execSync('npm run prepublishOnly', {
|
|
61
|
+
cwd: '/home/vansin/agent-network-dashboard',
|
|
62
|
+
stdio: 'pipe',
|
|
63
|
+
});
|
|
64
|
+
exitCode = 0;
|
|
65
|
+
} catch (e) {
|
|
66
|
+
exitCode = e.status ?? -1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const after = (() => {
|
|
70
|
+
try {
|
|
71
|
+
return {
|
|
72
|
+
mtime: statSync(buildIdPath).mtimeMs,
|
|
73
|
+
hash: createHash('sha256').update(readFileSync(buildIdPath)).digest('hex'),
|
|
74
|
+
};
|
|
75
|
+
} catch {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
})();
|
|
79
|
+
|
|
80
|
+
const results = {
|
|
81
|
+
hook_present: typeof hookSrc === 'string' && hookSrc.length > 0,
|
|
82
|
+
no_rm_command: !/\brm\b/.test(hookSrc),
|
|
83
|
+
has_build_id_check: /\.next\/BUILD_ID/.test(hookSrc),
|
|
84
|
+
has_exit_path: /exit\s+1/.test(hookSrc),
|
|
85
|
+
hook_exits_zero: exitCode === 0,
|
|
86
|
+
build_id_mtime_stable: before !== null && after !== null && before.mtime === after.mtime,
|
|
87
|
+
build_id_hash_stable: before !== null && after !== null && before.hash === after.hash,
|
|
88
|
+
};
|
|
89
|
+
const ok = Object.values(results).every(Boolean);
|
|
90
|
+
console.log(`${ok ? '✅' : '❌'} prepublishOnly guard:`, JSON.stringify(results),
|
|
91
|
+
'\n hookSrc:', hookSrc,
|
|
92
|
+
'\n exitCode:', exitCode,
|
|
93
|
+
'\n before:', before,
|
|
94
|
+
'\n after: ', after);
|
|
95
|
+
process.exit(ok ? 0 : 1);
|
|
File without changes
|
/package/.next/static/{Lak89Yx_yYYmp3PZkH4rQ → pvNR5ZwWluPpEFxiqbHxs}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|