@sleep2agi/agent-network-dashboard 0.4.5-preview.55 → 0.4.5-preview.57
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 +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/index.segments/_full.segment.rsc +1 -1
- 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/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 +1 -1
- package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/nodes.segments/nodes.segment.rsc +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/[root-of-the-server]__0o8yj3c._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0o8yj3c._.js.map +1 -1
- package/.next/server/chunks/ssr/app_0aum_g5._.js +1 -1
- package/.next/server/chunks/ssr/app_0aum_g5._.js.map +1 -1
- package/.next/server/chunks/ssr/app_0esuljp._.js +1 -1
- package/.next/server/chunks/ssr/app_0esuljp._.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/{12t1_mg2g~qr~.js → 01ya_.ed5aohd.js} +1 -1
- package/.next/static/chunks/{14gcp0d-_bf-n.js → 0w67krteu7f-b.js} +1 -1
- package/.next/static/chunks/{02oje7pf-g1v5.js → 0zax.-67r-uuj.js} +1 -1
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/app/nodes/page.tsx +22 -6
- package/package.json +1 -1
- package/scripts/loop-review.mjs +20 -11
- /package/.next/static/{TgtbxBEQuLKKI4SW96OrQ → PS2rV0Jq8n-NmVqVtr8XY}/_buildManifest.js +0 -0
- /package/.next/static/{TgtbxBEQuLKKI4SW96OrQ → PS2rV0Jq8n-NmVqVtr8XY}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{TgtbxBEQuLKKI4SW96OrQ → PS2rV0Jq8n-NmVqVtr8XY}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18150,e=>{"use strict";e.s(["formatUptime",0,function(e){let t=Math.floor(e/3600),s=Math.floor(e%3600/60);return t>0?`${t}h ${s}m`:`${s}m`},"timeAgo",0,function(e){if(!e)return"--";let t=Math.floor((Date.now()-new Date(e.replace(" ","T")+"Z").getTime())/1e3);return t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:`${Math.floor(t/86400)}d ago`}])},69874,e=>{"use strict";var t=e.i(18050);let s=[180,200,220,270,300,330,30,90];e.s(["AliasAvatar",0,function({alias:e,size:a=28,className:r=""}){let n=function(e){let t=0;for(let s=0;s<e.length;s++)t=31*t+e.charCodeAt(s)>>>0;let a=s[t%s.length];return{bg:`hsl(${a} 55% 22%)`,ring:`hsl(${a} 60% 45%)`,text:`hsl(${a} 80% 78%)`}}(e),l=Math.max(9,Math.round(.42*a));return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${r}`,style:{width:a,height:a,fontSize:l,backgroundColor:n.bg,borderColor:n.ring,color:n.text},title:e,"aria-hidden":!0,children:e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"})}])},95356,e=>{"use strict";var t=e.i(18050),s=e.i(71645),a=e.i(22016);let r={nodes:{title:"No agents in this network",sub:"Agent sessions will appear here once they connect to the CommHub."},tasks:{title:"No tasks yet",sub:"Tasks will appear here when agents send them via CommHub."},messages:{title:"No messages",sub:"Messages between agents will appear here."},logs:{title:"No audit logs",sub:"Events will appear here when users register, login, or perform actions."},tokens:{title:"No API tokens",sub:"Create one to authenticate CLI tools and external integrations."},networks:{title:"No networks found",sub:"Create one or sign in with V3 auth to see your networks."},generic:{title:"Nothing here yet",sub:"Data will appear here once available."}};function n({variant:e,size:s}){let a={width:s,height:s},r={fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"};switch(e){case"nodes":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"14",r:"4"}),(0,t.jsx)("circle",{cx:"14",cy:"44",r:"4"}),(0,t.jsx)("circle",{cx:"50",cy:"44",r:"4"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"14",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"50",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"18",y1:"44",x2:"46",y2:"44",strokeDasharray:"3 3",opacity:"0.6"})]})});case"tasks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("rect",{x:"14",y:"14",width:"36",height:"6",rx:"1.5"}),(0,t.jsx)("rect",{x:"14",y:"26",width:"36",height:"6",rx:"1.5",opacity:"0.6"}),(0,t.jsx)("rect",{x:"14",y:"38",width:"36",height:"6",rx:"1.5",opacity:"0.35"})]})});case"messages":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("path",{d:"M14 18 h36 a3 3 0 0 1 3 3 v18 a3 3 0 0 1 -3 3 h-18 l-8 6 v-6 h-10 a3 3 0 0 1 -3 -3 v-18 a3 3 0 0 1 3 -3 z"}),(0,t.jsx)("line",{x1:"22",y1:"28",x2:"42",y2:"28",opacity:"0.5"}),(0,t.jsx)("line",{x1:"22",y1:"34",x2:"36",y2:"34",opacity:"0.5"})]})});case"logs":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("path",{d:"M18 12 h22 l8 8 v32 a2 2 0 0 1 -2 2 h-28 a2 2 0 0 1 -2 -2 v-38 a2 2 0 0 1 2 -2 z"}),(0,t.jsx)("path",{d:"M40 12 v8 h8",opacity:"0.6"}),(0,t.jsx)("line",{x1:"24",y1:"32",x2:"40",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"24",y1:"38",x2:"40",y2:"38",opacity:"0.4"}),(0,t.jsx)("line",{x1:"24",y1:"44",x2:"34",y2:"44",opacity:"0.25"})]})});case"tokens":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"22",cy:"32",r:"8"}),(0,t.jsx)("line",{x1:"30",y1:"32",x2:"54",y2:"32"}),(0,t.jsx)("line",{x1:"44",y1:"32",x2:"44",y2:"38"}),(0,t.jsx)("line",{x1:"50",y1:"32",x2:"50",y2:"40"})]})});case"networks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"18"}),(0,t.jsx)("ellipse",{cx:"32",cy:"32",rx:"18",ry:"9",opacity:"0.55"}),(0,t.jsx)("line",{x1:"14",y1:"32",x2:"50",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"32",y1:"14",x2:"32",y2:"50",opacity:"0.55"})]})});default:return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"14",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("circle",{cx:"32",cy:"32",r:"3"})]})})}}function l({variant:e="generic",title:s,sub:i,cta:o,compact:c=!1}){let d=r[e],x=s??d.title,h=i??d.sub;return(0,t.jsxs)("div",{className:`text-center ${c?"py-8":"py-16"} px-4`,role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)(n,{variant:e,size:c?40:56})}),(0,t.jsx)("h3",{className:`font-medium text-gray-300 ${c?"text-sm":"text-base"}`,children:x}),h&&(0,t.jsx)("p",{className:`text-gray-500 ${c?"text-xs mt-1.5":"text-sm mt-2"} max-w-md mx-auto leading-relaxed`,children:h}),o&&(0,t.jsx)("div",{className:"mt-4",children:o.href?(0,t.jsxs)(a.default,{href:o.href,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]}):(0,t.jsxs)("button",{onClick:o.onClick,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})}function i({cmd:e}){let[a,r]=(0,s.useState)(!1),n=async()=>{try{await navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),1800)}catch{}};return(0,t.jsxs)("div",{className:"anet-empty-cmd flex items-center gap-2 bg-[#0a0a15] border border-[#2a2a4a] rounded-lg pl-4 pr-1.5 py-1.5 text-xs sm:text-sm",children:[(0,t.jsx)("code",{className:"text-cyan-300 font-mono select-all",children:e}),(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":a?"Copied":"Copy command",className:"shrink-0 rounded-md px-2 py-1.5 text-[11px] text-gray-500 hover:text-gray-200 hover:bg-[#1a1a2a] transition-colors",children:a?(0,t.jsxs)("span",{className:"flex items-center gap-1 text-green-400",children:[(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})}),"Copied"]}):(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),"Copy"]})})]})}e.s(["EmptyState",0,l,"NodesEmptyState",0,function({hint:e}){return e?.global_count?(0,t.jsx)(l,{variant:"nodes",title:"No agents in this network",sub:`Server has ${e.global_count} nodes globally, but none are registered to the current network. Switch network or contact admin.`}):(0,t.jsxs)("div",{className:"text-center py-16 px-4",role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)("svg",{viewBox:"0 0 64 64",width:56,height:56,children:(0,t.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",children:[(0,t.jsx)("rect",{x:"10",y:"20",width:"44",height:"28",rx:"2"}),(0,t.jsx)("rect",{x:"20",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"32",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"44",y:"32",width:"4",height:"8",opacity:"0.5"}),(0,t.jsx)("line",{x1:"10",y1:"26",x2:"54",y2:"26",opacity:"0.4"}),(0,t.jsx)("circle",{cx:"14",cy:"23",r:"0.8",fill:"currentColor"})]})})}),(0,t.jsx)("h3",{className:"font-medium text-gray-300 text-base",children:"Spin up your first agent"}),(0,t.jsx)("p",{className:"text-gray-500 text-sm mt-2 max-w-md mx-auto leading-relaxed",children:"Run this in a fresh terminal to register an agent with this CommHub:"}),(0,t.jsx)("div",{className:"mt-4 inline-block",children:(0,t.jsx)(i,{cmd:"npx --yes @sleep2agi/agent-network init"})}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsxs)("a",{href:"https://anet.sh",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-xs font-medium text-gray-500 hover:text-cyan-300",children:["Full quickstart guide",(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})}])},65822,e=>{"use strict";var t=e.i(83599),s=e.i(58963);let a=async e=>{let t=await fetch(e);if(401===t.status)throw window.location.assign("/login"),Error("unauthorized");return t.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,t){if(!t)return e;let s=e.includes("?")?"&":"?";return`${e}${s}network_id=${encodeURIComponent(t)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,t.default)("/api/anet/config",a,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:s}=(0,t.default)("/api/hub/health",a,r);return{health:e||null,error:s}},"useLicense",0,function(){let{data:e,error:s}=(0,t.default)("/api/hub/license",a,{refreshInterval:6e4});return{license:e?.ok?e:null,error:s}},"useMessages",0,function(e=100){let{networkId:l}=(0,s.useNetworkId)(),{data:i,error:o,isLoading:c}=(0,t.default)(n(`/api/hub/messages?limit=${e}`,l),a,r);return{messages:i?.messages||[],error:o,isLoading:c}},"useSessions",0,function(){let{networkId:e}=(0,s.useNetworkId)(),{data:l,error:i,isLoading:o}=(0,t.default)(n("/api/hub/status",e),a,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:o}},"useStats",0,function(){let{networkId:e}=(0,s.useNetworkId)(),{data:l,error:i}=(0,t.default)(n("/api/hub/stats",e),a,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,s.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:o,error:c,isLoading:d}=(0,t.default)(n(`/api/hub/tasks?${i}`,l),a,r);return{tasks:o?.tasks||[],count:o?.count??0,source:o?.source,error:c,isLoading:d}}])},86688,e=>{"use strict";var t=e.i(18050),s=e.i(71645),a=e.i(22016),r=e.i(18150),n=e.i(65822),l=e.i(58442),i=e.i(95356),o=e.i(69874);let c={working:"bg-green-500/10 text-green-300 border-green-500/20",idle:"bg-blue-500/10 text-blue-300 border-blue-500/20",blocked:"bg-yellow-500/10 text-yellow-300 border-yellow-500/20",error:"bg-red-500/10 text-red-300 border-red-500/20",offline:"bg-gray-500/10 text-gray-500 border-gray-500/20"};e.s(["default",0,function(){let e,d,x,h,{sessions:u,isLoading:g}=(0,n.useSessions)(),{health:p}=(0,n.useHealth)(),m=p?.sse_sessions||{},y=e=>(e.network_id?m[`${e.network_id}:${e.alias}`]:void 0)??m[e.alias],[b,j]=(0,s.useState)(""),[f,v]=(0,s.useState)(""),[N,w]=(0,s.useState)("list"),[k,C]=(0,s.useState)({}),[$,S]=(0,s.useState)(null),[A,T]=(0,s.useState)({}),[_,L]=(0,s.useState)(null),I=u.map(e=>({...e,online:!!y(e)})).filter(e=>"online"===b?e.online:"offline"===b?!e.online:!b||b===e.status).filter(e=>!f||e.alias.toLowerCase().includes(f.toLowerCase())||(e.agent||"").toLowerCase().includes(f.toLowerCase())).sort((e,t)=>!!t.online-!!e.online||("working"===t.status)-("working"===e.status)),M=u.filter(e=>y(e)).length,B=e=>{S(t=>t===e?null:e),T(t=>({...t,[e]:{}}))},E=(e,t)=>{C(s=>({...s,[e]:t}))},U=async e=>{let t=k[e]?.trim()||"";if(t){T(t=>({...t,[e]:{sending:!0}}));try{let s=await fetch("/api/hub/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({alias:e,task:t})}),a=await s.json();if(!s.ok||a?.ok===!1)throw Error(a?.error||"Send failed");C(t=>({...t,[e]:""})),T(t=>({...t,[e]:{success:"Task sent"}})),S(null)}catch(t){T(s=>({...s,[e]:{error:t instanceof Error?t.message:"Send failed"}}))}}};return(0,t.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-white lg:ml-0 ml-10",children:"Nodes"}),(0,t.jsxs)("span",{className:"text-xs bg-green-900/30 text-green-400 px-2 py-0.5 rounded-full border border-green-800/30",children:[M," online"]}),(0,t.jsxs)("span",{className:"text-xs bg-gray-900/30 text-gray-400 px-2 py-0.5 rounded-full border border-gray-800/30",children:[u.length," total"]})]}),u.length>0&&(e=I.filter(e=>e.online&&"working"===e.status).length,d=I.filter(e=>e.online&&"idle"===e.status).length,x=I.filter(e=>!e.online).length,h=I.length||1,(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)("div",{className:"flex h-2 rounded-full overflow-hidden bg-gray-800",children:[e>0&&(0,t.jsx)("div",{className:"bg-green-500",style:{width:`${e/h*100}%`}}),d>0&&(0,t.jsx)("div",{className:"bg-cyan-500",style:{width:`${d/h*100}%`}}),x>0&&(0,t.jsx)("div",{className:"bg-gray-600",style:{width:`${x/h*100}%`}})]}),(0,t.jsxs)("div",{className:"flex gap-4 mt-1.5 text-[10px] text-gray-500",children:[e>0&&(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-green-500 mr-1"}),e," working"]}),d>0&&(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-cyan-500 mr-1"}),d," idle"]}),x>0&&(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-gray-600 mr-1"}),x," offline"]})]})]})),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3 mb-6",children:[(0,t.jsx)("input",{type:"text",value:f,onChange:e=>v(e.target.value),placeholder:"Search nodes...",className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-blue-500/50 focus:outline-none w-48"}),(0,t.jsxs)("select",{value:b,onChange:e=>j(e.target.value),className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white focus:border-blue-500/50 focus:outline-none",children:[(0,t.jsx)("option",{value:"",children:"All"}),(0,t.jsx)("option",{value:"online",children:"Online"}),(0,t.jsx)("option",{value:"offline",children:"Offline"}),(0,t.jsx)("option",{value:"working",children:"Working"}),(0,t.jsx)("option",{value:"idle",children:"Idle"}),(0,t.jsx)("option",{value:"blocked",children:"Blocked"}),(0,t.jsx)("option",{value:"error",children:"Error"})]}),(0,t.jsx)("div",{className:"ml-auto flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 text-sm",children:["list","grid"].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>w(e),className:`rounded-md px-3 py-1.5 transition-colors ${N===e?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"list"===e?"List":"Grid"},e))})]}),g?(0,t.jsx)("div",{className:"animate-pulse space-y-2",children:[1,2,3,4].map(e=>(0,t.jsx)("div",{className:"h-16 bg-gray-800/20 rounded-lg"},e))}):0===I.length?(0,t.jsx)(i.EmptyState,{variant:"nodes",title:"No nodes match your filters",sub:"Try clearing search or status filters, or wait for an agent to register."}):"grid"===N?(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:I.map(e=>{let s=e.online?e.status:"offline",n=A[e.alias]||{},l="number"==typeof e.progress?e.progress:0;return(0,t.jsxs)("div",{className:`relative overflow-hidden rounded-xl border border-[#2a2a4a] bg-[#111128] p-4 transition-colors ${!e.online?"opacity-60":""}`,children:[!e.online&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("span",{className:"rotate-[-20deg] rounded-xl border border-white/10 bg-black/20 px-5 py-2 text-xl font-bold uppercase tracking-[0.35em] text-white/10",children:"Offline"})}),(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(o.AliasAvatar,{alias:e.alias,size:36}),(0,t.jsxs)(a.default,{href:`/node?alias=${encodeURIComponent(e.alias)}`,className:"min-w-0 flex-1 hover:text-cyan-300",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-base font-semibold text-white",children:e.alias}),(0,t.jsx)("span",{className:`shrink-0 rounded-md border px-2 py-0.5 text-[10px] uppercase tracking-wide ${c[s]||c.offline}`,children:s})]}),(0,t.jsxs)("div",{className:"mt-0.5 truncate text-xs text-gray-500",children:[e.agent||"—",(0,t.jsx)("span",{className:"text-gray-700 mx-1.5",children:"·"}),e.server||"—"]})]}),(0,t.jsxs)("div",{className:"flex gap-1.5 shrink-0",children:[(0,t.jsx)("button",{type:"button",onClick:()=>L(e.alias),className:"rounded-lg border border-green-500/20 bg-green-500/10 px-3 py-1.5 text-xs text-green-300 transition-colors hover:bg-green-500/20",children:"Chat"}),(0,t.jsx)("button",{type:"button",onClick:()=>B(e.alias),className:"rounded-lg border border-cyan-500/20 bg-cyan-500/10 px-3 py-1.5 text-xs text-cyan-300 transition-colors hover:bg-cyan-500/20",children:"Task"})]})]}),(0,t.jsxs)("div",{className:"mt-3 rounded-lg border border-[#1a1a2a] bg-[#0a0a15] px-3 py-2 text-xs",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-wide text-gray-600",children:"Current task"}),(0,t.jsx)("span",{className:"text-[10px] text-gray-600",children:(0,r.timeAgo)(e.last_seen_at||e.updated_at)})]}),(0,t.jsx)("div",{className:`mt-1 line-clamp-2 ${e.task?"text-gray-300":"text-gray-600 italic"}`,children:e.task||"No current task"})]}),l>0&&l<100&&(0,t.jsx)("div",{className:"mt-3 h-1.5 overflow-hidden rounded-full bg-gray-800",children:(0,t.jsx)("div",{className:"h-1.5 rounded-full bg-cyan-400 transition-all",style:{width:`${l}%`}})}),$===e.alias&&(0,t.jsxs)("div",{className:"mt-4 space-y-2 rounded-lg border border-[#2a2a4a] bg-[#0a0a15] p-3",children:[(0,t.jsx)("input",{type:"text",value:k[e.alias]||"",onChange:t=>E(e.alias,t.target.value),onKeyDown:t=>"Enter"===t.key&&U(e.alias),placeholder:`Send task to ${e.alias}...`,className:"w-full rounded-lg border border-[#2a2a4a] bg-[#050510] px-3 py-2 text-xs text-white placeholder-gray-600 focus:border-cyan-500 focus:outline-none"}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>S(null),className:"rounded-lg border border-gray-700 px-3 py-1.5 text-xs text-gray-400 hover:text-gray-200",children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:()=>U(e.alias),disabled:n.sending||!(k[e.alias]||"").trim(),className:"rounded-lg bg-cyan-600 px-3 py-1.5 text-xs text-white hover:bg-cyan-500 disabled:cursor-not-allowed disabled:bg-gray-700",children:n.sending?"Sending...":"Send"})]})]}),n.error&&(0,t.jsx)("div",{className:"mt-2 text-xs text-red-400",children:n.error}),n.success&&$!==e.alias&&(0,t.jsx)("div",{className:"mt-2 text-xs text-green-400",children:n.success})]},e.alias)})}):(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"hidden sm:grid sm:grid-cols-12 gap-2 px-4 py-2 text-xs text-gray-600 uppercase",children:[(0,t.jsx)("div",{className:"col-span-1",children:"Status"}),(0,t.jsx)("div",{className:"col-span-2",children:"Alias"}),(0,t.jsx)("div",{className:"col-span-2",children:"Agent"}),(0,t.jsx)("div",{className:"col-span-2",children:"Server"}),(0,t.jsx)("div",{className:"col-span-2",children:"Current Task"}),(0,t.jsx)("div",{className:"col-span-1",children:"Updated"}),(0,t.jsx)("div",{className:"col-span-2 text-right",children:"Actions"})]}),I.map(e=>{let s=e.online?e.status:"offline",n=A[e.alias]||{};return(0,t.jsxs)("div",{className:`rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 transition-colors hover:border-[#3a3a5a] ${!e.online?"opacity-50":""}`,children:[(0,t.jsxs)("div",{className:"hidden sm:grid sm:grid-cols-12 gap-2 items-center",children:[(0,t.jsx)("div",{className:"col-span-1",children:(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded-md border ${c[s]||c.offline}`,children:s})}),(0,t.jsx)("div",{className:"col-span-2 min-w-0",children:(0,t.jsxs)(a.default,{href:`/node?alias=${encodeURIComponent(e.alias)}`,className:"flex items-center gap-2 min-w-0 hover:text-cyan-300",children:[(0,t.jsx)(o.AliasAvatar,{alias:e.alias,size:20}),(0,t.jsx)("span",{className:"truncate text-sm font-medium text-white",children:e.alias})]})}),(0,t.jsx)("div",{className:"col-span-2 truncate text-xs text-gray-400",children:e.agent||"--"}),(0,t.jsx)("div",{className:"col-span-2 truncate text-xs text-gray-400",children:e.server||"--"}),(0,t.jsx)("div",{className:"col-span-2 truncate text-xs text-gray-500",children:e.task||"--"}),(0,t.jsx)("div",{className:"col-span-1 text-xs text-gray-500",children:(0,r.timeAgo)(e.last_seen_at||e.updated_at)}),(0,t.jsxs)("div",{className:"col-span-2 flex justify-end gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>L(e.alias),className:"rounded-lg border border-green-500/20 bg-green-500/10 px-2 py-1 text-xs text-green-300 hover:bg-green-500/20",children:"Chat"}),(0,t.jsx)("button",{type:"button",onClick:()=>B(e.alias),className:"rounded-lg border border-cyan-500/20 bg-cyan-500/10 px-2 py-1 text-xs text-cyan-300 hover:bg-cyan-500/20",children:"Task"})]})]}),(0,t.jsxs)("div",{className:"sm:hidden space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(o.AliasAvatar,{alias:e.alias,size:28}),(0,t.jsxs)(a.default,{href:`/node?alias=${encodeURIComponent(e.alias)}`,className:"min-w-0 flex-1 hover:text-cyan-300",children:[(0,t.jsx)("div",{className:"truncate text-sm font-medium text-white",children:e.alias}),(0,t.jsxs)("div",{className:"truncate text-[10px] text-gray-500",children:[e.agent||"—"," · ",(0,r.timeAgo)(e.last_seen_at||e.updated_at)]})]}),(0,t.jsx)("span",{className:`shrink-0 text-xs px-2 py-0.5 rounded-md border ${c[s]||c.offline}`,children:s})]}),e.task&&(0,t.jsx)("div",{className:"truncate text-xs text-gray-500",children:e.task}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>L(e.alias),className:"flex-1 rounded-lg border border-green-500/20 bg-green-500/10 px-3 py-2 text-xs text-green-300 hover:bg-green-500/20",children:"Chat"}),(0,t.jsx)("button",{type:"button",onClick:()=>B(e.alias),className:"flex-1 rounded-lg border border-cyan-500/20 bg-cyan-500/10 px-3 py-2 text-xs text-cyan-300 hover:bg-cyan-500/20",children:"Send Task"})]})]}),$===e.alias&&(0,t.jsxs)("div",{className:"mt-3 space-y-2 border-t border-[#2a2a4a] pt-3",children:[(0,t.jsx)("input",{type:"text",value:k[e.alias]||"",onChange:t=>E(e.alias,t.target.value),onKeyDown:t=>"Enter"===t.key&&U(e.alias),placeholder:`Send task to ${e.alias}...`,className:"w-full rounded-lg border border-[#2a2a4a] bg-[#0a0a15] px-3 py-2 text-xs text-white placeholder-gray-600 focus:border-cyan-500 focus:outline-none"}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>S(null),className:"rounded-lg border border-gray-700 px-3 py-1.5 text-xs text-gray-400 hover:text-gray-200",children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:()=>U(e.alias),disabled:n.sending||!(k[e.alias]||"").trim(),className:"rounded-lg bg-cyan-600 px-3 py-1.5 text-xs text-white hover:bg-cyan-500 disabled:cursor-not-allowed disabled:bg-gray-700",children:n.sending?"Sending...":"Send"})]})]}),n.error&&(0,t.jsx)("div",{className:"mt-2 text-xs text-red-400",children:n.error}),n.success&&$!==e.alias&&(0,t.jsx)("div",{className:"mt-2 text-xs text-green-400",children:n.success})]},e.alias)})]}),_&&(0,t.jsx)(l.TaskChatPanel,{alias:_,onClose:()=>L(null)})]})}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18150,e=>{"use strict";e.s(["formatUptime",0,function(e){let t=Math.floor(e/3600),s=Math.floor(e%3600/60);return t>0?`${t}h ${s}m`:`${s}m`},"timeAgo",0,function(e){if(!e)return"--";let t=Math.floor((Date.now()-new Date(e.replace(" ","T")+"Z").getTime())/1e3);return t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:`${Math.floor(t/86400)}d ago`}])},69874,e=>{"use strict";var t=e.i(18050);let s=[180,200,220,270,300,330,30,90];e.s(["AliasAvatar",0,function({alias:e,size:a=28,className:r=""}){let n=function(e){let t=0;for(let s=0;s<e.length;s++)t=31*t+e.charCodeAt(s)>>>0;let a=s[t%s.length];return{bg:`hsl(${a} 55% 22%)`,ring:`hsl(${a} 60% 45%)`,text:`hsl(${a} 80% 78%)`}}(e),l=Math.max(9,Math.round(.42*a));return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${r}`,style:{width:a,height:a,fontSize:l,backgroundColor:n.bg,borderColor:n.ring,color:n.text},title:e,"aria-hidden":!0,children:e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"})}])},95356,e=>{"use strict";var t=e.i(18050),s=e.i(71645),a=e.i(22016);let r={nodes:{title:"No agents in this network",sub:"Agent sessions will appear here once they connect to the CommHub."},tasks:{title:"No tasks yet",sub:"Tasks will appear here when agents send them via CommHub."},messages:{title:"No messages",sub:"Messages between agents will appear here."},logs:{title:"No audit logs",sub:"Events will appear here when users register, login, or perform actions."},tokens:{title:"No API tokens",sub:"Create one to authenticate CLI tools and external integrations."},networks:{title:"No networks found",sub:"Create one or sign in with V3 auth to see your networks."},generic:{title:"Nothing here yet",sub:"Data will appear here once available."}};function n({variant:e,size:s}){let a={width:s,height:s},r={fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"};switch(e){case"nodes":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"14",r:"4"}),(0,t.jsx)("circle",{cx:"14",cy:"44",r:"4"}),(0,t.jsx)("circle",{cx:"50",cy:"44",r:"4"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"14",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"50",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"18",y1:"44",x2:"46",y2:"44",strokeDasharray:"3 3",opacity:"0.6"})]})});case"tasks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("rect",{x:"14",y:"14",width:"36",height:"6",rx:"1.5"}),(0,t.jsx)("rect",{x:"14",y:"26",width:"36",height:"6",rx:"1.5",opacity:"0.6"}),(0,t.jsx)("rect",{x:"14",y:"38",width:"36",height:"6",rx:"1.5",opacity:"0.35"})]})});case"messages":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("path",{d:"M14 18 h36 a3 3 0 0 1 3 3 v18 a3 3 0 0 1 -3 3 h-18 l-8 6 v-6 h-10 a3 3 0 0 1 -3 -3 v-18 a3 3 0 0 1 3 -3 z"}),(0,t.jsx)("line",{x1:"22",y1:"28",x2:"42",y2:"28",opacity:"0.5"}),(0,t.jsx)("line",{x1:"22",y1:"34",x2:"36",y2:"34",opacity:"0.5"})]})});case"logs":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("path",{d:"M18 12 h22 l8 8 v32 a2 2 0 0 1 -2 2 h-28 a2 2 0 0 1 -2 -2 v-38 a2 2 0 0 1 2 -2 z"}),(0,t.jsx)("path",{d:"M40 12 v8 h8",opacity:"0.6"}),(0,t.jsx)("line",{x1:"24",y1:"32",x2:"40",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"24",y1:"38",x2:"40",y2:"38",opacity:"0.4"}),(0,t.jsx)("line",{x1:"24",y1:"44",x2:"34",y2:"44",opacity:"0.25"})]})});case"tokens":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"22",cy:"32",r:"8"}),(0,t.jsx)("line",{x1:"30",y1:"32",x2:"54",y2:"32"}),(0,t.jsx)("line",{x1:"44",y1:"32",x2:"44",y2:"38"}),(0,t.jsx)("line",{x1:"50",y1:"32",x2:"50",y2:"40"})]})});case"networks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"18"}),(0,t.jsx)("ellipse",{cx:"32",cy:"32",rx:"18",ry:"9",opacity:"0.55"}),(0,t.jsx)("line",{x1:"14",y1:"32",x2:"50",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"32",y1:"14",x2:"32",y2:"50",opacity:"0.55"})]})});default:return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"14",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("circle",{cx:"32",cy:"32",r:"3"})]})})}}function l({variant:e="generic",title:s,sub:i,cta:o,compact:c=!1}){let d=r[e],x=s??d.title,h=i??d.sub;return(0,t.jsxs)("div",{className:`text-center ${c?"py-8":"py-16"} px-4`,role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)(n,{variant:e,size:c?40:56})}),(0,t.jsx)("h3",{className:`font-medium text-gray-300 ${c?"text-sm":"text-base"}`,children:x}),h&&(0,t.jsx)("p",{className:`text-gray-500 ${c?"text-xs mt-1.5":"text-sm mt-2"} max-w-md mx-auto leading-relaxed`,children:h}),o&&(0,t.jsx)("div",{className:"mt-4",children:o.href?(0,t.jsxs)(a.default,{href:o.href,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]}):(0,t.jsxs)("button",{onClick:o.onClick,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})}function i({cmd:e}){let[a,r]=(0,s.useState)(!1),n=async()=>{try{await navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),1800)}catch{}};return(0,t.jsxs)("div",{className:"anet-empty-cmd flex items-center gap-2 bg-[#0a0a15] border border-[#2a2a4a] rounded-lg pl-4 pr-1.5 py-1.5 text-xs sm:text-sm",children:[(0,t.jsx)("code",{className:"text-cyan-300 font-mono select-all",children:e}),(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":a?"Copied":"Copy command",className:"shrink-0 rounded-md px-2 py-1.5 text-[11px] text-gray-500 hover:text-gray-200 hover:bg-[#1a1a2a] transition-colors",children:a?(0,t.jsxs)("span",{className:"flex items-center gap-1 text-green-400",children:[(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})}),"Copied"]}):(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),"Copy"]})})]})}e.s(["EmptyState",0,l,"NodesEmptyState",0,function({hint:e}){return e?.global_count?(0,t.jsx)(l,{variant:"nodes",title:"No agents in this network",sub:`Server has ${e.global_count} nodes globally, but none are registered to the current network. Switch network or contact admin.`}):(0,t.jsxs)("div",{className:"text-center py-16 px-4",role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)("svg",{viewBox:"0 0 64 64",width:56,height:56,children:(0,t.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",children:[(0,t.jsx)("rect",{x:"10",y:"20",width:"44",height:"28",rx:"2"}),(0,t.jsx)("rect",{x:"20",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"32",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"44",y:"32",width:"4",height:"8",opacity:"0.5"}),(0,t.jsx)("line",{x1:"10",y1:"26",x2:"54",y2:"26",opacity:"0.4"}),(0,t.jsx)("circle",{cx:"14",cy:"23",r:"0.8",fill:"currentColor"})]})})}),(0,t.jsx)("h3",{className:"font-medium text-gray-300 text-base",children:"Spin up your first agent"}),(0,t.jsx)("p",{className:"text-gray-500 text-sm mt-2 max-w-md mx-auto leading-relaxed",children:"Run this in a fresh terminal to register an agent with this CommHub:"}),(0,t.jsx)("div",{className:"mt-4 inline-block",children:(0,t.jsx)(i,{cmd:"npx --yes @sleep2agi/agent-network init"})}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsxs)("a",{href:"https://anet.sh",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-xs font-medium text-gray-500 hover:text-cyan-300",children:["Full quickstart guide",(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})}])},65822,e=>{"use strict";var t=e.i(83599),s=e.i(58963);let a=async e=>{let t=await fetch(e);if(401===t.status)throw window.location.assign("/login"),Error("unauthorized");return t.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,t){if(!t)return e;let s=e.includes("?")?"&":"?";return`${e}${s}network_id=${encodeURIComponent(t)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,t.default)("/api/anet/config",a,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:s}=(0,t.default)("/api/hub/health",a,r);return{health:e||null,error:s}},"useLicense",0,function(){let{data:e,error:s}=(0,t.default)("/api/hub/license",a,{refreshInterval:6e4});return{license:e?.ok?e:null,error:s}},"useMessages",0,function(e=100){let{networkId:l}=(0,s.useNetworkId)(),{data:i,error:o,isLoading:c}=(0,t.default)(n(`/api/hub/messages?limit=${e}`,l),a,r);return{messages:i?.messages||[],error:o,isLoading:c}},"useSessions",0,function(){let{networkId:e}=(0,s.useNetworkId)(),{data:l,error:i,isLoading:o}=(0,t.default)(n("/api/hub/status",e),a,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:o}},"useStats",0,function(){let{networkId:e}=(0,s.useNetworkId)(),{data:l,error:i}=(0,t.default)(n("/api/hub/stats",e),a,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,s.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:o,error:c,isLoading:d}=(0,t.default)(n(`/api/hub/tasks?${i}`,l),a,r);return{tasks:o?.tasks||[],count:o?.count??0,source:o?.source,error:c,isLoading:d}}])},86688,e=>{"use strict";var t=e.i(18050),s=e.i(71645),a=e.i(22016),r=e.i(18150),n=e.i(65822),l=e.i(58442),i=e.i(95356),o=e.i(69874);let c={working:"bg-green-500/10 text-green-300 border-green-500/20",idle:"bg-blue-500/10 text-blue-300 border-blue-500/20",blocked:"bg-yellow-500/10 text-yellow-300 border-yellow-500/20",error:"bg-red-500/10 text-red-300 border-red-500/20",offline:"bg-gray-500/10 text-gray-500 border-gray-500/20"};e.s(["default",0,function(){let e,d,x,h,{sessions:u,isLoading:g}=(0,n.useSessions)(),{health:p}=(0,n.useHealth)(),m=p?.sse_sessions||{},y=e=>(e.network_id?m[`${e.network_id}:${e.alias}`]:void 0)??m[e.alias],[b,j]=(0,s.useState)(""),[f,v]=(0,s.useState)(""),[N,w]=(0,s.useState)("list"),[k,C]=(0,s.useState)({}),[$,S]=(0,s.useState)(null),[A,T]=(0,s.useState)({}),[_,L]=(0,s.useState)(null),I=u.map(e=>({...e,online:!!y(e)})).filter(e=>"online"===b?e.online:"offline"===b?!e.online:!b||b===e.status).filter(e=>!f||e.alias.toLowerCase().includes(f.toLowerCase())||(e.agent||"").toLowerCase().includes(f.toLowerCase())).sort((e,t)=>!!t.online-!!e.online||("working"===t.status)-("working"===e.status)),M=u.filter(e=>y(e)).length,B=e=>{S(t=>t===e?null:e),T(t=>({...t,[e]:{}}))},E=(e,t)=>{C(s=>({...s,[e]:t}))},U=async e=>{let t=k[e]?.trim()||"";if(t){T(t=>({...t,[e]:{sending:!0}}));try{let s=await fetch("/api/hub/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({alias:e,task:t})}),a=await s.json();if(!s.ok||a?.ok===!1)throw Error(a?.error||"Send failed");C(t=>({...t,[e]:""})),T(t=>({...t,[e]:{success:"Task sent"}})),S(null)}catch(t){T(s=>({...s,[e]:{error:t instanceof Error?t.message:"Send failed"}}))}}};return(0,t.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-white lg:ml-0 ml-10",children:"Nodes"}),(0,t.jsxs)("span",{className:"text-xs bg-green-900/30 text-green-400 px-2 py-0.5 rounded-full border border-green-800/30",children:[M," online"]}),(0,t.jsxs)("span",{className:"text-xs bg-gray-900/30 text-gray-400 px-2 py-0.5 rounded-full border border-gray-800/30",children:[u.length," total"]})]}),u.length>0&&(e=I.filter(e=>e.online&&"working"===e.status).length,d=I.filter(e=>e.online&&"idle"===e.status).length,x=I.filter(e=>!e.online).length,h=I.length||1,(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)("div",{className:"flex h-2 rounded-full overflow-hidden bg-gray-800",children:[e>0&&(0,t.jsx)("div",{className:"bg-green-500",style:{width:`${e/h*100}%`}}),d>0&&(0,t.jsx)("div",{className:"bg-cyan-500",style:{width:`${d/h*100}%`}}),x>0&&(0,t.jsx)("div",{className:"bg-gray-600",style:{width:`${x/h*100}%`}})]}),(0,t.jsxs)("div",{className:"flex gap-4 mt-1.5 text-[10px] text-gray-500",children:[e>0&&(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-green-500 mr-1"}),e," working"]}),d>0&&(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-cyan-500 mr-1"}),d," idle"]}),x>0&&(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-gray-600 mr-1"}),x," offline"]})]})]})),u.length>0&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-3 mb-6",children:[(0,t.jsx)("input",{type:"text",value:f,onChange:e=>v(e.target.value),placeholder:"Search nodes...",className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-blue-500/50 focus:outline-none w-48"}),(0,t.jsxs)("select",{value:b,onChange:e=>j(e.target.value),className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white focus:border-blue-500/50 focus:outline-none",children:[(0,t.jsx)("option",{value:"",children:"All"}),(0,t.jsx)("option",{value:"online",children:"Online"}),(0,t.jsx)("option",{value:"offline",children:"Offline"}),(0,t.jsx)("option",{value:"working",children:"Working"}),(0,t.jsx)("option",{value:"idle",children:"Idle"}),(0,t.jsx)("option",{value:"blocked",children:"Blocked"}),(0,t.jsx)("option",{value:"error",children:"Error"})]}),(0,t.jsx)("div",{className:"ml-auto flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 text-sm",children:["list","grid"].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>w(e),className:`rounded-md px-3 py-1.5 transition-colors ${N===e?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"list"===e?"List":"Grid"},e))})]}),g?(0,t.jsx)("div",{className:"animate-pulse space-y-2",children:[1,2,3,4].map(e=>(0,t.jsx)("div",{className:"h-16 bg-gray-800/20 rounded-lg"},e))}):0===I.length?0===u.length?(0,t.jsx)(i.NodesEmptyState,{}):(0,t.jsx)(i.EmptyState,{variant:"nodes",title:"No nodes match your filters",sub:"Try clearing search or status filters, or wait for an agent to register."}):"grid"===N?(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:I.map(e=>{let s=e.online?e.status:"offline",n=A[e.alias]||{},l="number"==typeof e.progress?e.progress:0;return(0,t.jsxs)("div",{className:`relative overflow-hidden rounded-xl border border-[#2a2a4a] bg-[#111128] p-4 transition-colors ${!e.online?"opacity-60":""}`,children:[!e.online&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("span",{className:"rotate-[-20deg] rounded-xl border border-white/10 bg-black/20 px-5 py-2 text-xl font-bold uppercase tracking-[0.35em] text-white/10",children:"Offline"})}),(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(o.AliasAvatar,{alias:e.alias,size:36}),(0,t.jsxs)(a.default,{href:`/node?alias=${encodeURIComponent(e.alias)}`,className:"min-w-0 flex-1 hover:text-cyan-300",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-base font-semibold text-white",children:e.alias}),(0,t.jsx)("span",{className:`shrink-0 rounded-md border px-2 py-0.5 text-[10px] uppercase tracking-wide ${c[s]||c.offline}`,children:s})]}),(0,t.jsxs)("div",{className:"mt-0.5 truncate text-xs text-gray-500",children:[e.agent||"—",(0,t.jsx)("span",{className:"text-gray-700 mx-1.5",children:"·"}),e.server||"—"]})]}),(0,t.jsxs)("div",{className:"flex gap-1.5 shrink-0",children:[(0,t.jsx)("button",{type:"button",onClick:()=>L(e.alias),className:"rounded-lg border border-green-500/20 bg-green-500/10 px-3 py-1.5 text-xs text-green-300 transition-colors hover:bg-green-500/20",children:"Chat"}),(0,t.jsx)("button",{type:"button",onClick:()=>B(e.alias),className:"rounded-lg border border-cyan-500/20 bg-cyan-500/10 px-3 py-1.5 text-xs text-cyan-300 transition-colors hover:bg-cyan-500/20",children:"Task"})]})]}),(0,t.jsxs)("div",{className:"mt-3 rounded-lg border border-[#1a1a2a] bg-[#0a0a15] px-3 py-2 text-xs",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-wide text-gray-600",children:"Current task"}),(0,t.jsx)("span",{className:"text-[10px] text-gray-600",children:(0,r.timeAgo)(e.last_seen_at||e.updated_at)})]}),(0,t.jsx)("div",{className:`mt-1 line-clamp-2 ${e.task?"text-gray-300":"text-gray-600 italic"}`,children:e.task||"No current task"})]}),l>0&&l<100&&(0,t.jsx)("div",{className:"mt-3 h-1.5 overflow-hidden rounded-full bg-gray-800",children:(0,t.jsx)("div",{className:"h-1.5 rounded-full bg-cyan-400 transition-all",style:{width:`${l}%`}})}),$===e.alias&&(0,t.jsxs)("div",{className:"mt-4 space-y-2 rounded-lg border border-[#2a2a4a] bg-[#0a0a15] p-3",children:[(0,t.jsx)("input",{type:"text",value:k[e.alias]||"",onChange:t=>E(e.alias,t.target.value),onKeyDown:t=>"Enter"===t.key&&U(e.alias),placeholder:`Send task to ${e.alias}...`,className:"w-full rounded-lg border border-[#2a2a4a] bg-[#050510] px-3 py-2 text-xs text-white placeholder-gray-600 focus:border-cyan-500 focus:outline-none"}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>S(null),className:"rounded-lg border border-gray-700 px-3 py-1.5 text-xs text-gray-400 hover:text-gray-200",children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:()=>U(e.alias),disabled:n.sending||!(k[e.alias]||"").trim(),className:"rounded-lg bg-cyan-600 px-3 py-1.5 text-xs text-white hover:bg-cyan-500 disabled:cursor-not-allowed disabled:bg-gray-700",children:n.sending?"Sending...":"Send"})]})]}),n.error&&(0,t.jsx)("div",{className:"mt-2 text-xs text-red-400",children:n.error}),n.success&&$!==e.alias&&(0,t.jsx)("div",{className:"mt-2 text-xs text-green-400",children:n.success})]},e.alias)})}):(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"hidden sm:grid sm:grid-cols-12 gap-2 px-4 py-2 text-xs text-gray-600 uppercase",children:[(0,t.jsx)("div",{className:"col-span-1",children:"Status"}),(0,t.jsx)("div",{className:"col-span-2",children:"Alias"}),(0,t.jsx)("div",{className:"col-span-2",children:"Agent"}),(0,t.jsx)("div",{className:"col-span-2",children:"Server"}),(0,t.jsx)("div",{className:"col-span-2",children:"Current Task"}),(0,t.jsx)("div",{className:"col-span-1",children:"Updated"}),(0,t.jsx)("div",{className:"col-span-2 text-right",children:"Actions"})]}),I.map(e=>{let s=e.online?e.status:"offline",n=A[e.alias]||{};return(0,t.jsxs)("div",{className:`rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 transition-colors hover:border-[#3a3a5a] ${!e.online?"opacity-50":""}`,children:[(0,t.jsxs)("div",{className:"hidden sm:grid sm:grid-cols-12 gap-2 items-center",children:[(0,t.jsx)("div",{className:"col-span-1",children:(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded-md border ${c[s]||c.offline}`,children:s})}),(0,t.jsx)("div",{className:"col-span-2 min-w-0",children:(0,t.jsxs)(a.default,{href:`/node?alias=${encodeURIComponent(e.alias)}`,className:"flex items-center gap-2 min-w-0 hover:text-cyan-300",children:[(0,t.jsx)(o.AliasAvatar,{alias:e.alias,size:20}),(0,t.jsx)("span",{className:"truncate text-sm font-medium text-white",children:e.alias})]})}),(0,t.jsx)("div",{className:"col-span-2 truncate text-xs text-gray-400",children:e.agent||"--"}),(0,t.jsx)("div",{className:"col-span-2 truncate text-xs text-gray-400",children:e.server||"--"}),(0,t.jsx)("div",{className:"col-span-2 truncate text-xs text-gray-500",children:e.task||"--"}),(0,t.jsx)("div",{className:"col-span-1 text-xs text-gray-500",children:(0,r.timeAgo)(e.last_seen_at||e.updated_at)}),(0,t.jsxs)("div",{className:"col-span-2 flex justify-end gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>L(e.alias),className:"rounded-lg border border-green-500/20 bg-green-500/10 px-2 py-1 text-xs text-green-300 hover:bg-green-500/20",children:"Chat"}),(0,t.jsx)("button",{type:"button",onClick:()=>B(e.alias),className:"rounded-lg border border-cyan-500/20 bg-cyan-500/10 px-2 py-1 text-xs text-cyan-300 hover:bg-cyan-500/20",children:"Task"})]})]}),(0,t.jsxs)("div",{className:"sm:hidden space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(o.AliasAvatar,{alias:e.alias,size:28}),(0,t.jsxs)(a.default,{href:`/node?alias=${encodeURIComponent(e.alias)}`,className:"min-w-0 flex-1 hover:text-cyan-300",children:[(0,t.jsx)("div",{className:"truncate text-sm font-medium text-white",children:e.alias}),(0,t.jsxs)("div",{className:"truncate text-[10px] text-gray-500",children:[e.agent||"—"," · ",(0,r.timeAgo)(e.last_seen_at||e.updated_at)]})]}),(0,t.jsx)("span",{className:`shrink-0 text-xs px-2 py-0.5 rounded-md border ${c[s]||c.offline}`,children:s})]}),e.task&&(0,t.jsx)("div",{className:"truncate text-xs text-gray-500",children:e.task}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>L(e.alias),className:"flex-1 rounded-lg border border-green-500/20 bg-green-500/10 px-3 py-2 text-xs text-green-300 hover:bg-green-500/20",children:"Chat"}),(0,t.jsx)("button",{type:"button",onClick:()=>B(e.alias),className:"flex-1 rounded-lg border border-cyan-500/20 bg-cyan-500/10 px-3 py-2 text-xs text-cyan-300 hover:bg-cyan-500/20",children:"Send Task"})]})]}),$===e.alias&&(0,t.jsxs)("div",{className:"mt-3 space-y-2 border-t border-[#2a2a4a] pt-3",children:[(0,t.jsx)("input",{type:"text",value:k[e.alias]||"",onChange:t=>E(e.alias,t.target.value),onKeyDown:t=>"Enter"===t.key&&U(e.alias),placeholder:`Send task to ${e.alias}...`,className:"w-full rounded-lg border border-[#2a2a4a] bg-[#0a0a15] px-3 py-2 text-xs text-white placeholder-gray-600 focus:border-cyan-500 focus:outline-none"}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>S(null),className:"rounded-lg border border-gray-700 px-3 py-1.5 text-xs text-gray-400 hover:text-gray-200",children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:()=>U(e.alias),disabled:n.sending||!(k[e.alias]||"").trim(),className:"rounded-lg bg-cyan-600 px-3 py-1.5 text-xs text-white hover:bg-cyan-500 disabled:cursor-not-allowed disabled:bg-gray-700",children:n.sending?"Sending...":"Send"})]})]}),n.error&&(0,t.jsx)("div",{className:"mt-2 text-xs text-red-400",children:n.error}),n.success&&$!==e.alias&&(0,t.jsx)("div",{className:"mt-2 text-xs text-green-400",children:n.success})]},e.alias)})]}),_&&(0,t.jsx)(l.TaskChatPanel,{alias:_,onClose:()=>L(null)})]})}])}]);
|
package/.next/trace
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":348,"timestamp":218781526955,"id":4,"parentId":1,"tags":{},"startTime":1778590267352,"traceId":"1737638a0bd95782"},{"name":"load-custom-routes","duration":664,"timestamp":218781527470,"id":5,"parentId":1,"tags":{},"startTime":1778590267352,"traceId":"1737638a0bd95782"},{"name":"create-dist-dir","duration":370,"timestamp":218781528184,"id":6,"parentId":1,"tags":{},"startTime":1778590267353,"traceId":"1737638a0bd95782"},{"name":"clean","duration":579,"timestamp":218781529305,"id":7,"parentId":1,"tags":{},"startTime":1778590267354,"traceId":"1737638a0bd95782"},{"name":"discover-routes","duration":9630,"timestamp":218781620787,"id":8,"parentId":1,"tags":{},"startTime":1778590267445,"traceId":"1737638a0bd95782"},{"name":"create-root-mapping","duration":161,"timestamp":218781630490,"id":9,"parentId":1,"tags":{},"startTime":1778590267455,"traceId":"1737638a0bd95782"},{"name":"generate-route-types","duration":36275,"timestamp":218781633081,"id":10,"parentId":1,"tags":{},"startTime":1778590267458,"traceId":"1737638a0bd95782"},{"name":"public-dir-conflict-check","duration":121,"timestamp":218781669535,"id":11,"parentId":1,"tags":{},"startTime":1778590267494,"traceId":"1737638a0bd95782"},{"name":"generate-routes-manifest","duration":4334,"timestamp":218781669783,"id":12,"parentId":1,"tags":{},"startTime":1778590267494,"traceId":"1737638a0bd95782"},{"name":"run-turbopack","duration":9211007,"timestamp":218781681477,"id":14,"parentId":1,"tags":{},"startTime":1778590267506,"traceId":"1737638a0bd95782"},{"name":"turbopack-build-events","duration":96,"timestamp":218782004219,"id":15,"parentId":1,"tags":{},"startTime":1778590267829,"traceId":"1737638a0bd95782"},{"name":"run-typescript","duration":8729277,"timestamp":218790905415,"id":16,"parentId":1,"tags":{},"startTime":1778590276730,"traceId":"1737638a0bd95782"},{"name":"generate-required-server-files","duration":2710,"timestamp":218799636054,"id":18,"parentId":1,"tags":{},"startTime":1778590285461,"traceId":"1737638a0bd95782"},{"name":"check-static-error-page","duration":23261,"timestamp":218799721642,"id":20,"parentId":19,"tags":{},"startTime":1778590285546,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":337307,"timestamp":218799749211,"id":62,"parentId":22,"tags":{},"startTime":1778590285574,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":360272,"timestamp":218799726383,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778590285551,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":423690,"timestamp":218799749326,"id":63,"parentId":25,"tags":{},"startTime":1778590285574,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":443742,"timestamp":218799729379,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778590285554,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":440620,"timestamp":218799749572,"id":65,"parentId":27,"tags":{},"startTime":1778590285574,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":459830,"timestamp":218799730431,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778590285555,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":449051,"timestamp":218799749511,"id":64,"parentId":26,"tags":{},"startTime":1778590285574,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":468331,"timestamp":218799730300,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778590285555,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":455209,"timestamp":218799749620,"id":66,"parentId":28,"tags":{},"startTime":1778590285574,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":472778,"timestamp":218799732119,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778590285557,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":457641,"timestamp":218799749657,"id":67,"parentId":29,"tags":{},"startTime":1778590285574,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":475031,"timestamp":218799732330,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778590285557,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":462158,"timestamp":218799749743,"id":69,"parentId":32,"tags":{},"startTime":1778590285574,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":478769,"timestamp":218799733200,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778590285558,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":466605,"timestamp":218799749849,"id":70,"parentId":33,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":483200,"timestamp":218799733310,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778590285558,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":472055,"timestamp":218799749696,"id":68,"parentId":30,"tags":{},"startTime":1778590285574,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":489220,"timestamp":218799732605,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778590285557,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":475565,"timestamp":218799749912,"id":72,"parentId":35,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":492031,"timestamp":218799733497,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778590285558,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":480131,"timestamp":218799749972,"id":73,"parentId":36,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":495561,"timestamp":218799734604,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778590285559,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":481648,"timestamp":218799748801,"id":61,"parentId":21,"tags":{},"startTime":1778590285573,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":505658,"timestamp":218799724831,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778590285550,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":482177,"timestamp":218799749896,"id":71,"parentId":34,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":498720,"timestamp":218799733399,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778590285558,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":482521,"timestamp":218799749991,"id":74,"parentId":37,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":497707,"timestamp":218799734855,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778590285560,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":487157,"timestamp":218799750020,"id":76,"parentId":39,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":502040,"timestamp":218799735184,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778590285560,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":487331,"timestamp":218799750027,"id":77,"parentId":40,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":502069,"timestamp":218799735318,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778590285560,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":490667,"timestamp":218799750034,"id":78,"parentId":41,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":505325,"timestamp":218799735436,"id":41,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778590285560,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":490863,"timestamp":218799750040,"id":79,"parentId":42,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":505393,"timestamp":218799735531,"id":42,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778590285560,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":493643,"timestamp":218799750046,"id":80,"parentId":43,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":508106,"timestamp":218799735628,"id":43,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778590285560,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":494989,"timestamp":218799750052,"id":81,"parentId":44,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":509379,"timestamp":218799735715,"id":44,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778590285560,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":497567,"timestamp":218799750057,"id":82,"parentId":45,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":511866,"timestamp":218799735797,"id":45,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778590285560,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":498388,"timestamp":218799750062,"id":83,"parentId":46,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":512458,"timestamp":218799736028,"id":46,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778590285561,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":501190,"timestamp":218799750074,"id":85,"parentId":48,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":514999,"timestamp":218799736302,"id":48,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778590285561,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":501330,"timestamp":218799750068,"id":84,"parentId":47,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":515250,"timestamp":218799736171,"id":47,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778590285561,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":498520,"timestamp":218799756221,"id":87,"parentId":31,"tags":{},"startTime":1778590285581,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":521937,"timestamp":218799732844,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778590285558,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":502208,"timestamp":218799753400,"id":86,"parentId":24,"tags":{},"startTime":1778590285578,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":528751,"timestamp":218799726937,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778590285552,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":529595,"timestamp":218799749999,"id":75,"parentId":38,"tags":{},"startTime":1778590285575,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":544610,"timestamp":218799735046,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778590285560,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":530506,"timestamp":218799760145,"id":90,"parentId":50,"tags":{},"startTime":1778590285585,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":553743,"timestamp":218799736965,"id":50,"parentId":19,"tags":{"page":"/logs"},"startTime":1778590285562,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":536475,"timestamp":218799760151,"id":91,"parentId":51,"tags":{},"startTime":1778590285585,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":559516,"timestamp":218799737188,"id":51,"parentId":19,"tags":{"page":"/messages"},"startTime":1778590285562,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":543157,"timestamp":218799760157,"id":92,"parentId":52,"tags":{},"startTime":1778590285585,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":565975,"timestamp":218799737405,"id":52,"parentId":19,"tags":{"page":"/node"},"startTime":1778590285562,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":547987,"timestamp":218799760163,"id":93,"parentId":53,"tags":{},"startTime":1778590285585,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":570578,"timestamp":218799737642,"id":53,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778590285562,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":554459,"timestamp":218799760169,"id":94,"parentId":55,"tags":{},"startTime":1778590285585,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":576195,"timestamp":218799738494,"id":55,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778590285563,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":556178,"timestamp":218799760108,"id":88,"parentId":23,"tags":{},"startTime":1778590285585,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":589641,"timestamp":218799726717,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778590285551,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":560288,"timestamp":218799760138,"id":89,"parentId":49,"tags":{},"startTime":1778590285585,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":583751,"timestamp":218799736733,"id":49,"parentId":19,"tags":{"page":"/login"},"startTime":1778590285561,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":560469,"timestamp":218799760175,"id":95,"parentId":56,"tags":{},"startTime":1778590285585,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":581051,"timestamp":218799739618,"id":56,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778590285564,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":562979,"timestamp":218799760180,"id":96,"parentId":58,"tags":{},"startTime":1778590285585,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":579751,"timestamp":218799743451,"id":58,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778590285568,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":566068,"timestamp":218799760194,"id":98,"parentId":60,"tags":{},"startTime":1778590285585,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":581639,"timestamp":218799744668,"id":60,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778590285569,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":556723,"timestamp":218799775945,"id":99,"parentId":57,"tags":{},"startTime":1778590285601,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":589882,"timestamp":218799742845,"id":57,"parentId":19,"tags":{"page":"/settings"},"startTime":1778590285568,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":545515,"timestamp":218799787519,"id":100,"parentId":54,"tags":{},"startTime":1778590285612,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":595167,"timestamp":218799737909,"id":54,"parentId":19,"tags":{"page":"/"},"startTime":1778590285563,"traceId":"1737638a0bd95782"},{"name":"is-page-static","duration":576136,"timestamp":218799760185,"id":97,"parentId":59,"tags":{},"startTime":1778590285585,"traceId":"1737638a0bd95782"},{"name":"check-page","duration":591931,"timestamp":218799744451,"id":59,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778590285569,"traceId":"1737638a0bd95782"},{"name":"static-check","duration":615670,"timestamp":218799720746,"id":19,"parentId":1,"tags":{},"startTime":1778590285545,"traceId":"1737638a0bd95782"},{"name":"write-routes-manifest","duration":446,"timestamp":218800342709,"id":102,"parentId":1,"tags":{},"startTime":1778590286167,"traceId":"1737638a0bd95782"},{"name":"load-dotenv","duration":52,"timestamp":218800355673,"id":105,"parentId":104,"tags":{},"startTime":1778590286180,"traceId":"1737638a0bd95782"},{"name":"run-export-path-map","duration":742,"timestamp":218800359151,"id":106,"parentId":104,"tags":{},"startTime":1778590286184,"traceId":"1737638a0bd95782"},{"name":"next-export","duration":656487,"timestamp":218800354411,"id":104,"parentId":1,"tags":{},"startTime":1778590286179,"traceId":"1737638a0bd95782"},{"name":"move-exported-app-not-found-","duration":669,"timestamp":218801017900,"id":107,"parentId":103,"tags":{},"startTime":1778590286843,"traceId":"1737638a0bd95782"},{"name":"move-exported-app-global-error-","duration":426,"timestamp":218801018702,"id":108,"parentId":103,"tags":{},"startTime":1778590286843,"traceId":"1737638a0bd95782"}]
|
|
2
|
-
[{"name":"static-generation","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":3842,"timestamp":219349728222,"id":4,"parentId":1,"tags":{},"startTime":1778590835556,"traceId":"38049788fbbc0b9e"},{"name":"load-custom-routes","duration":512,"timestamp":219349732281,"id":5,"parentId":1,"tags":{},"startTime":1778590835557,"traceId":"38049788fbbc0b9e"},{"name":"create-dist-dir","duration":1582,"timestamp":219349732847,"id":6,"parentId":1,"tags":{},"startTime":1778590835558,"traceId":"38049788fbbc0b9e"},{"name":"clean","duration":869,"timestamp":219349739898,"id":7,"parentId":1,"tags":{},"startTime":1778590835565,"traceId":"38049788fbbc0b9e"},{"name":"discover-routes","duration":9136,"timestamp":219349855779,"id":8,"parentId":1,"tags":{},"startTime":1778590835680,"traceId":"38049788fbbc0b9e"},{"name":"create-root-mapping","duration":153,"timestamp":219349864982,"id":9,"parentId":1,"tags":{},"startTime":1778590835690,"traceId":"38049788fbbc0b9e"},{"name":"generate-route-types","duration":34803,"timestamp":219349867541,"id":10,"parentId":1,"tags":{},"startTime":1778590835692,"traceId":"38049788fbbc0b9e"},{"name":"public-dir-conflict-check","duration":110,"timestamp":219349902544,"id":11,"parentId":1,"tags":{},"startTime":1778590835727,"traceId":"38049788fbbc0b9e"},{"name":"generate-routes-manifest","duration":4517,"timestamp":219349902797,"id":12,"parentId":1,"tags":{},"startTime":1778590835727,"traceId":"38049788fbbc0b9e"},{"name":"run-turbopack","duration":9609990,"timestamp":219349912721,"id":14,"parentId":1,"tags":{},"startTime":1778590835737,"traceId":"38049788fbbc0b9e"},{"name":"turbopack-build-events","duration":81,"timestamp":219350213270,"id":15,"parentId":1,"tags":{},"startTime":1778590836038,"traceId":"38049788fbbc0b9e"},{"name":"run-typescript","duration":8528153,"timestamp":219359529468,"id":16,"parentId":1,"tags":{},"startTime":1778590845354,"traceId":"38049788fbbc0b9e"},{"name":"generate-required-server-files","duration":2897,"timestamp":219368058573,"id":18,"parentId":1,"tags":{},"startTime":1778590853883,"traceId":"38049788fbbc0b9e"},{"name":"check-static-error-page","duration":16650,"timestamp":219368141573,"id":20,"parentId":19,"tags":{},"startTime":1778590853966,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":436359,"timestamp":219368160375,"id":61,"parentId":21,"tags":{},"startTime":1778590853985,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":454114,"timestamp":219368142747,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778590853967,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":470770,"timestamp":219368160714,"id":62,"parentId":22,"tags":{},"startTime":1778590853985,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":487608,"timestamp":219368143973,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778590853969,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":505578,"timestamp":219368160948,"id":64,"parentId":26,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":518377,"timestamp":219368148221,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778590853973,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":509666,"timestamp":219368161049,"id":66,"parentId":28,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":522383,"timestamp":219368148395,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778590853973,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":514510,"timestamp":219368161085,"id":67,"parentId":29,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":527212,"timestamp":219368148472,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778590853973,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":520988,"timestamp":219368161120,"id":68,"parentId":30,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":533496,"timestamp":219368148691,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778590853973,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":522076,"timestamp":219368161154,"id":69,"parentId":32,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":534290,"timestamp":219368148998,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778590853974,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":525789,"timestamp":219368161260,"id":70,"parentId":33,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":537998,"timestamp":219368149110,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778590853974,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":530772,"timestamp":219368161306,"id":71,"parentId":34,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":542902,"timestamp":219368149248,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778590853974,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":535555,"timestamp":219368161324,"id":72,"parentId":35,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":547564,"timestamp":219368149374,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778590853974,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":539598,"timestamp":219368161380,"id":73,"parentId":36,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":551308,"timestamp":219368149746,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778590853974,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":543469,"timestamp":219368161398,"id":74,"parentId":37,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":555020,"timestamp":219368149909,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778590853975,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":547079,"timestamp":219368161406,"id":75,"parentId":38,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":558497,"timestamp":219368150055,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778590853975,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":550651,"timestamp":219368161412,"id":76,"parentId":39,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":561969,"timestamp":219368150149,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778590853975,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":554821,"timestamp":219368161419,"id":77,"parentId":40,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":566053,"timestamp":219368150259,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778590853975,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":559297,"timestamp":219368161424,"id":78,"parentId":41,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":570424,"timestamp":219368150356,"id":41,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778590853975,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":566106,"timestamp":219368161430,"id":79,"parentId":42,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":578419,"timestamp":219368150441,"id":42,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778590853975,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":568359,"timestamp":219368160798,"id":63,"parentId":25,"tags":{},"startTime":1778590853985,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":582615,"timestamp":219368146586,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778590853971,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":579513,"timestamp":219368161436,"id":80,"parentId":43,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":590508,"timestamp":219368150524,"id":43,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778590853975,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":586418,"timestamp":219368161447,"id":82,"parentId":45,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":597218,"timestamp":219368150711,"id":45,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778590853975,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":593307,"timestamp":219368161453,"id":83,"parentId":46,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":604020,"timestamp":219368150832,"id":46,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778590853976,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":598678,"timestamp":219368161458,"id":84,"parentId":47,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":609274,"timestamp":219368150919,"id":47,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778590853976,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":602270,"timestamp":219368161464,"id":85,"parentId":48,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":612778,"timestamp":219368151020,"id":48,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778590853976,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":603841,"timestamp":219368161442,"id":81,"parentId":44,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":614705,"timestamp":219368150627,"id":44,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778590853975,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":604173,"timestamp":219368163591,"id":86,"parentId":24,"tags":{},"startTime":1778590853988,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":623414,"timestamp":219368144400,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778590853969,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":606704,"timestamp":219368164378,"id":87,"parentId":31,"tags":{},"startTime":1778590853989,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":622349,"timestamp":219368148783,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778590853973,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":611244,"timestamp":219368160988,"id":65,"parentId":27,"tags":{},"startTime":1778590853986,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":623971,"timestamp":219368148313,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778590853973,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":601487,"timestamp":219368171764,"id":88,"parentId":23,"tags":{},"startTime":1778590853996,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":629081,"timestamp":219368144205,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778590853969,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":607011,"timestamp":219368171817,"id":91,"parentId":51,"tags":{},"startTime":1778590853997,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":627034,"timestamp":219368151844,"id":51,"parentId":19,"tags":{"page":"/messages"},"startTime":1778590853977,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":613330,"timestamp":219368171825,"id":92,"parentId":52,"tags":{},"startTime":1778590853997,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":633135,"timestamp":219368152070,"id":52,"parentId":19,"tags":{"page":"/node"},"startTime":1778590853977,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":618981,"timestamp":219368171831,"id":93,"parentId":53,"tags":{},"startTime":1778590853997,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":638577,"timestamp":219368152288,"id":53,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778590853977,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":635700,"timestamp":219368171840,"id":94,"parentId":55,"tags":{},"startTime":1778590853997,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":654615,"timestamp":219368152993,"id":55,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778590853978,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":642094,"timestamp":219368171848,"id":95,"parentId":56,"tags":{},"startTime":1778590853997,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":660001,"timestamp":219368154051,"id":56,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778590853979,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":643143,"timestamp":219368171808,"id":90,"parentId":50,"tags":{},"startTime":1778590853996,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":663443,"timestamp":219368151549,"id":50,"parentId":19,"tags":{"page":"/logs"},"startTime":1778590853976,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":646566,"timestamp":219368171853,"id":96,"parentId":58,"tags":{},"startTime":1778590853997,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":662068,"timestamp":219368156405,"id":58,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778590853981,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":648153,"timestamp":219368171800,"id":89,"parentId":49,"tags":{},"startTime":1778590853996,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":668605,"timestamp":219368151391,"id":49,"parentId":19,"tags":{"page":"/login"},"startTime":1778590853976,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":652790,"timestamp":219368171868,"id":98,"parentId":60,"tags":{},"startTime":1778590853997,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":668042,"timestamp":219368156665,"id":60,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778590853981,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":652942,"timestamp":219368171861,"id":97,"parentId":59,"tags":{},"startTime":1778590853997,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":668297,"timestamp":219368156535,"id":59,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778590853981,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":653536,"timestamp":219368171879,"id":99,"parentId":57,"tags":{},"startTime":1778590853997,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":671187,"timestamp":219368154257,"id":57,"parentId":19,"tags":{"page":"/settings"},"startTime":1778590853979,"traceId":"38049788fbbc0b9e"},{"name":"is-page-static","duration":650112,"timestamp":219368179865,"id":100,"parentId":54,"tags":{},"startTime":1778590854005,"traceId":"38049788fbbc0b9e"},{"name":"check-page","duration":677534,"timestamp":219368152506,"id":54,"parentId":19,"tags":{"page":"/"},"startTime":1778590853977,"traceId":"38049788fbbc0b9e"},{"name":"static-check","duration":689436,"timestamp":219368140647,"id":19,"parentId":1,"tags":{},"startTime":1778590853965,"traceId":"38049788fbbc0b9e"},{"name":"write-routes-manifest","duration":450,"timestamp":219368836825,"id":102,"parentId":1,"tags":{},"startTime":1778590854662,"traceId":"38049788fbbc0b9e"},{"name":"load-dotenv","duration":63,"timestamp":219368851182,"id":105,"parentId":104,"tags":{},"startTime":1778590854676,"traceId":"38049788fbbc0b9e"},{"name":"run-export-path-map","duration":789,"timestamp":219368854369,"id":106,"parentId":104,"tags":{},"startTime":1778590854679,"traceId":"38049788fbbc0b9e"},{"name":"next-export","duration":717125,"timestamp":219368849711,"id":104,"parentId":1,"tags":{},"startTime":1778590854674,"traceId":"38049788fbbc0b9e"},{"name":"move-exported-app-not-found-","duration":639,"timestamp":219369570080,"id":107,"parentId":103,"tags":{},"startTime":1778590855395,"traceId":"38049788fbbc0b9e"},{"name":"move-exported-app-global-error-","duration":473,"timestamp":219369570814,"id":108,"parentId":103,"tags":{},"startTime":1778590855396,"traceId":"38049788fbbc0b9e"}]
|
|
2
|
+
[{"name":"static-generation","duration":731341,"timestamp":219368844135,"id":103,"parentId":1,"tags":{},"startTime":1778590854669,"traceId":"38049788fbbc0b9e"},{"name":"write-routes-manifest","duration":2097,"timestamp":219369575667,"id":109,"parentId":1,"tags":{},"startTime":1778590855400,"traceId":"38049788fbbc0b9e"},{"name":"print-tree-view","duration":4006,"timestamp":219369585976,"id":110,"parentId":1,"tags":{},"startTime":1778590855411,"traceId":"38049788fbbc0b9e"},{"name":"write-route-bundle-stats","duration":13692,"timestamp":219369590044,"id":111,"parentId":1,"tags":{},"startTime":1778590855415,"traceId":"38049788fbbc0b9e"},{"name":"telemetry-flush","duration":42388,"timestamp":219369603774,"id":112,"parentId":1,"tags":{},"startTime":1778590855428,"traceId":"38049788fbbc0b9e"},{"name":"next-build","duration":19982795,"timestamp":219349663416,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778590835488,"traceId":"38049788fbbc0b9e"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":9609990,"timestamp":219349912721,"id":14,"parentId":1,"tags":{},"startTime":1778590835737,"traceId":"38049788fbbc0b9e"},{"name":"turbopack-build-events","duration":81,"timestamp":219350213270,"id":15,"parentId":1,"tags":{},"startTime":1778590836038,"traceId":"38049788fbbc0b9e"},{"name":"run-typescript","duration":8528153,"timestamp":219359529468,"id":16,"parentId":1,"tags":{},"startTime":1778590845354,"traceId":"38049788fbbc0b9e"},{"name":"static-check","duration":689436,"timestamp":219368140647,"id":19,"parentId":1,"tags":{},"startTime":1778590853965,"traceId":"38049788fbbc0b9e"},{"name":"static-generation","duration":731341,"timestamp":219368844135,"id":103,"parentId":1,"tags":{},"startTime":1778590854669,"traceId":"38049788fbbc0b9e"},{"name":"telemetry-flush","duration":42388,"timestamp":219369603774,"id":112,"parentId":1,"tags":{},"startTime":1778590855428,"traceId":"38049788fbbc0b9e"},{"name":"next-build","duration":19982795,"timestamp":219349663416,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778590835488,"traceId":"38049788fbbc0b9e"}]
|
package/app/nodes/page.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import Link from 'next/link';
|
|
|
5
5
|
import { timeAgo } from '../components/utils';
|
|
6
6
|
import { useSessions, useHealth } from '../lib/hooks';
|
|
7
7
|
import { TaskChatPanel } from '../components/TaskChatPanel';
|
|
8
|
-
import { EmptyState } from '../components/EmptyState';
|
|
8
|
+
import { EmptyState, NodesEmptyState } from '../components/EmptyState';
|
|
9
9
|
import { AliasAvatar } from '../components/AliasAvatar';
|
|
10
10
|
import type { Session } from '../components/types';
|
|
11
11
|
|
|
@@ -121,6 +121,12 @@ export default function NodesPage() {
|
|
|
121
121
|
);
|
|
122
122
|
})()}
|
|
123
123
|
|
|
124
|
+
{/* Round 74: hide the filter+view chrome when there are no nodes
|
|
125
|
+
anywhere — these controls have nothing to act on, and they only
|
|
126
|
+
push the onboarding CTA further down. When at least one session
|
|
127
|
+
exists, the chrome is back even if the current filter happens
|
|
128
|
+
to hide everything (so users can clear filters). */}
|
|
129
|
+
{sessions.length > 0 && (
|
|
124
130
|
<div className="flex flex-wrap gap-3 mb-6">
|
|
125
131
|
<input
|
|
126
132
|
type="text"
|
|
@@ -159,17 +165,27 @@ export default function NodesPage() {
|
|
|
159
165
|
))}
|
|
160
166
|
</div>
|
|
161
167
|
</div>
|
|
168
|
+
)}
|
|
162
169
|
|
|
163
170
|
{loading ? (
|
|
164
171
|
<div className="animate-pulse space-y-2">
|
|
165
172
|
{[1,2,3,4].map(i => <div key={i} className="h-16 bg-gray-800/20 rounded-lg" />)}
|
|
166
173
|
</div>
|
|
167
174
|
) : filtered.length === 0 ? (
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
175
|
+
sessions.length === 0 ? (
|
|
176
|
+
/* Round 73: first-run case — no agents anywhere. Use the same
|
|
177
|
+
onboarding empty state as the Overview (NodesEmptyState
|
|
178
|
+
includes the `npx … init` quickstart command). Previously this
|
|
179
|
+
was the "No nodes match your filters" copy, which was wrong
|
|
180
|
+
for new users who have no filters applied. */
|
|
181
|
+
<NodesEmptyState />
|
|
182
|
+
) : (
|
|
183
|
+
<EmptyState
|
|
184
|
+
variant="nodes"
|
|
185
|
+
title="No nodes match your filters"
|
|
186
|
+
sub="Try clearing search or status filters, or wait for an agent to register."
|
|
187
|
+
/>
|
|
188
|
+
)
|
|
173
189
|
) : viewMode === 'grid' ? (
|
|
174
190
|
<div className="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4">
|
|
175
191
|
{filtered.map(s => {
|
package/package.json
CHANGED
package/scripts/loop-review.mjs
CHANGED
|
@@ -32,12 +32,22 @@ if (!TOKEN) {
|
|
|
32
32
|
process.exit(1);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
const
|
|
36
|
-
{
|
|
37
|
-
{
|
|
38
|
-
{ theme: 'light', viewport: { width: 1440, height: 900 }, tag: 'desktop' },
|
|
39
|
-
{ theme: 'light', viewport: { width: 390, height: 844 }, tag: 'mobile' },
|
|
35
|
+
const viewports = [
|
|
36
|
+
{ tag: 'desktop', width: 1440, height: 900 },
|
|
37
|
+
{ tag: 'mobile', width: 390, height: 844 },
|
|
40
38
|
];
|
|
39
|
+
const themes = ['cyber', 'light'];
|
|
40
|
+
const pages = [
|
|
41
|
+
{ name: 'overview', path: '/' },
|
|
42
|
+
{ name: 'nodes', path: '/nodes' },
|
|
43
|
+
{ name: 'tasks', path: '/tasks' },
|
|
44
|
+
{ name: 'messages', path: '/messages' },
|
|
45
|
+
];
|
|
46
|
+
|
|
47
|
+
const matrix = [];
|
|
48
|
+
for (const t of themes) for (const v of viewports) for (const p of pages) {
|
|
49
|
+
matrix.push({ theme: t, viewport: { width: v.width, height: v.height }, tag: v.tag, pageName: p.name, pagePath: p.path });
|
|
50
|
+
}
|
|
41
51
|
|
|
42
52
|
const browser = await chromium.launch({ headless: true });
|
|
43
53
|
|
|
@@ -62,13 +72,13 @@ for (const m of matrix) {
|
|
|
62
72
|
}, m.theme);
|
|
63
73
|
|
|
64
74
|
const page = await ctx.newPage();
|
|
65
|
-
await page.goto(`${BASE}
|
|
75
|
+
await page.goto(`${BASE}${m.pagePath}`, { waitUntil: 'domcontentloaded', timeout: 15000 });
|
|
66
76
|
await page.waitForTimeout(1200);
|
|
67
77
|
|
|
68
78
|
await page.evaluate((t) => document.documentElement.setAttribute('data-theme', t), m.theme);
|
|
69
79
|
await page.waitForTimeout(300);
|
|
70
80
|
|
|
71
|
-
const file = path.join(OUT,
|
|
81
|
+
const file = path.join(OUT, `${m.pageName}-${m.theme}-${m.tag}.png`);
|
|
72
82
|
await page.screenshot({ path: file, fullPage: true });
|
|
73
83
|
|
|
74
84
|
const checks = await page.evaluate(() => {
|
|
@@ -200,12 +210,11 @@ for (const m of matrix) {
|
|
|
200
210
|
|
|
201
211
|
await browser.close();
|
|
202
212
|
|
|
203
|
-
console.log('\n=== Loop self-review (harness
|
|
213
|
+
console.log('\n=== Loop self-review (harness r73) ===\n');
|
|
204
214
|
for (const r of report) {
|
|
205
|
-
console.log(`${r.theme}/${r.tag}
|
|
215
|
+
console.log(`${r.pageName.padEnd(8)} ${r.theme}/${r.tag.padEnd(7)} score=${r.score}/10`);
|
|
206
216
|
console.log(` cta_top=${r.checks.ctaTop !== null ? Math.round(r.checks.ctaTop) : '--'} zero_cards=${r.checks.zeroCardCount} max_gap=${r.checks.maxGap}px fleet_empty=${r.checks.fleetEmpty}`);
|
|
207
217
|
if (r.notes.length) console.log(` notes: ${r.notes.join(' · ')}`);
|
|
208
|
-
console.log(` ${path.relative(process.cwd(), r.file)}`);
|
|
209
218
|
}
|
|
210
219
|
const avg = report.reduce((s, r) => s + r.score, 0) / report.length;
|
|
211
|
-
console.log(`\noverall avg = ${avg.toFixed(1)}/10`);
|
|
220
|
+
console.log(`\noverall avg = ${avg.toFixed(1)}/10 across ${report.length} captures`);
|
|
File without changes
|
/package/.next/static/{TgtbxBEQuLKKI4SW96OrQ → PS2rV0Jq8n-NmVqVtr8XY}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|