@sleep2agi/agent-network-dashboard 0.4.5-preview.55 → 0.4.5-preview.56

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.
Files changed (142) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/diagnostics/route-bundle-stats.json +4 -4
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/prerender-manifest.json +3 -3
  6. package/.next/server/app/_global-error.html +1 -1
  7. package/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/.next/server/app/_not-found.html +1 -1
  14. package/.next/server/app/_not-found.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  20. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  21. package/.next/server/app/admin.html +1 -1
  22. package/.next/server/app/admin.rsc +1 -1
  23. package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
  24. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  25. package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
  26. package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
  27. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
  28. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  29. package/.next/server/app/index.html +1 -1
  30. package/.next/server/app/index.rsc +1 -1
  31. package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  32. package/.next/server/app/index.segments/_full.segment.rsc +1 -1
  33. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  34. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  35. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  36. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  37. package/.next/server/app/login.html +2 -2
  38. package/.next/server/app/login.rsc +2 -2
  39. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  40. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  41. package/.next/server/app/login.segments/_index.segment.rsc +1 -1
  42. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  43. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  44. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  45. package/.next/server/app/logs.html +1 -1
  46. package/.next/server/app/logs.rsc +1 -1
  47. package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
  48. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  49. package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
  50. package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
  51. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  52. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  53. package/.next/server/app/messages.html +1 -1
  54. package/.next/server/app/messages.rsc +1 -1
  55. package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
  56. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  57. package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
  58. package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
  59. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
  60. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  61. package/.next/server/app/node.html +1 -1
  62. package/.next/server/app/node.rsc +1 -1
  63. package/.next/server/app/node.segments/_full.segment.rsc +1 -1
  64. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  65. package/.next/server/app/node.segments/_index.segment.rsc +1 -1
  66. package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
  67. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
  68. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  69. package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  70. package/.next/server/app/nodes.html +2 -2
  71. package/.next/server/app/nodes.rsc +2 -2
  72. package/.next/server/app/nodes.segments/_full.segment.rsc +2 -2
  73. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  74. package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
  75. package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
  76. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +2 -2
  77. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  78. package/.next/server/app/server-logs.html +1 -1
  79. package/.next/server/app/server-logs.rsc +1 -1
  80. package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
  81. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  82. package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
  83. package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
  84. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  85. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  86. package/.next/server/app/settings/networks.html +1 -1
  87. package/.next/server/app/settings/networks.rsc +1 -1
  88. package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
  89. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  90. package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
  91. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
  92. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  93. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  94. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  95. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  96. package/.next/server/app/settings/tokens.html +1 -1
  97. package/.next/server/app/settings/tokens.rsc +1 -1
  98. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
  99. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  100. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
  101. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
  102. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  103. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  104. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  105. package/.next/server/app/settings.html +2 -2
  106. package/.next/server/app/settings.rsc +2 -2
  107. package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  108. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  109. package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  110. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  111. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  112. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  113. package/.next/server/app/tasks.html +1 -1
  114. package/.next/server/app/tasks.rsc +1 -1
  115. package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
  116. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  117. package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
  118. package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
  119. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  120. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  121. package/.next/server/chunks/ssr/[root-of-the-server]__0o8yj3c._.js +1 -1
  122. package/.next/server/chunks/ssr/[root-of-the-server]__0o8yj3c._.js.map +1 -1
  123. package/.next/server/chunks/ssr/app_0aum_g5._.js +1 -1
  124. package/.next/server/chunks/ssr/app_0aum_g5._.js.map +1 -1
  125. package/.next/server/chunks/ssr/app_0esuljp._.js +1 -1
  126. package/.next/server/chunks/ssr/app_0esuljp._.js.map +1 -1
  127. package/.next/server/middleware-build-manifest.js +3 -3
  128. package/.next/server/pages/404.html +1 -1
  129. package/.next/server/pages/500.html +1 -1
  130. package/.next/server/server-reference-manifest.js +1 -1
  131. package/.next/server/server-reference-manifest.json +1 -1
  132. package/.next/static/chunks/{12t1_mg2g~qr~.js → 04732q--5j2d0.js} +1 -1
  133. package/.next/static/chunks/{02oje7pf-g1v5.js → 05a5s7o-0onr-.js} +1 -1
  134. package/.next/static/chunks/{14gcp0d-_bf-n.js → 0p~kb5946_7_d.js} +1 -1
  135. package/.next/trace +2 -2
  136. package/.next/trace-build +1 -1
  137. package/app/nodes/page.tsx +15 -6
  138. package/package.json +1 -1
  139. package/scripts/loop-review.mjs +20 -11
  140. /package/.next/static/{TgtbxBEQuLKKI4SW96OrQ → i1tdfwS-j7pR1c7IjGHs4}/_buildManifest.js +0 -0
  141. /package/.next/static/{TgtbxBEQuLKKI4SW96OrQ → i1tdfwS-j7pR1c7IjGHs4}/_clientMiddlewareManifest.js +0 -0
  142. /package/.next/static/{TgtbxBEQuLKKI4SW96OrQ → i1tdfwS-j7pR1c7IjGHs4}/_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"]})]})]})),(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)})]})}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94867,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.5-preview.55"],94867)},89954,e=>{"use strict";var t=e.i(18050),r=e.i(71645),a=e.i(94867);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#111128] border border-[#2a2a4a] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#2a2a4a] bg-[#111128]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:h||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[h&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:h?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",a.DASHBOARD_VERSION]})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94867,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.5-preview.56"],94867)},89954,e=>{"use strict";var t=e.i(18050),r=e.i(71645),a=e.i(94867);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#111128] border border-[#2a2a4a] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#2a2a4a] bg-[#111128]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:h||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[h&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:h?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",a.DASHBOARD_VERSION]})]})]})]})}])}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":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":676446,"timestamp":218800347322,"id":103,"parentId":1,"tags":{},"startTime":1778590286172,"traceId":"1737638a0bd95782"},{"name":"write-routes-manifest","duration":549,"timestamp":218801023981,"id":109,"parentId":1,"tags":{},"startTime":1778590286849,"traceId":"1737638a0bd95782"},{"name":"print-tree-view","duration":3970,"timestamp":218801040088,"id":110,"parentId":1,"tags":{},"startTime":1778590286865,"traceId":"1737638a0bd95782"},{"name":"write-route-bundle-stats","duration":15101,"timestamp":218801044098,"id":111,"parentId":1,"tags":{},"startTime":1778590286869,"traceId":"1737638a0bd95782"},{"name":"telemetry-flush","duration":18811,"timestamp":218801059235,"id":112,"parentId":1,"tags":{},"startTime":1778590286884,"traceId":"1737638a0bd95782"},{"name":"next-build","duration":19602922,"timestamp":218781475176,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778590267300,"traceId":"1737638a0bd95782"}]
1
+ [{"name":"generate-buildid","duration":354,"timestamp":219114522740,"id":4,"parentId":1,"tags":{},"startTime":1778590600347,"traceId":"bf4e23751facc5b6"},{"name":"load-custom-routes","duration":535,"timestamp":219114523264,"id":5,"parentId":1,"tags":{},"startTime":1778590600348,"traceId":"bf4e23751facc5b6"},{"name":"create-dist-dir","duration":437,"timestamp":219114523847,"id":6,"parentId":1,"tags":{},"startTime":1778590600349,"traceId":"bf4e23751facc5b6"},{"name":"clean","duration":599,"timestamp":219114525159,"id":7,"parentId":1,"tags":{},"startTime":1778590600350,"traceId":"bf4e23751facc5b6"},{"name":"discover-routes","duration":9407,"timestamp":219114622105,"id":8,"parentId":1,"tags":{},"startTime":1778590600447,"traceId":"bf4e23751facc5b6"},{"name":"create-root-mapping","duration":150,"timestamp":219114631581,"id":9,"parentId":1,"tags":{},"startTime":1778590600456,"traceId":"bf4e23751facc5b6"},{"name":"generate-route-types","duration":33048,"timestamp":219114634102,"id":10,"parentId":1,"tags":{},"startTime":1778590600459,"traceId":"bf4e23751facc5b6"},{"name":"public-dir-conflict-check","duration":168,"timestamp":219114667417,"id":11,"parentId":1,"tags":{},"startTime":1778590600492,"traceId":"bf4e23751facc5b6"},{"name":"generate-routes-manifest","duration":6048,"timestamp":219114667795,"id":12,"parentId":1,"tags":{},"startTime":1778590600492,"traceId":"bf4e23751facc5b6"},{"name":"run-turbopack","duration":8948322,"timestamp":219114680166,"id":14,"parentId":1,"tags":{},"startTime":1778590600505,"traceId":"bf4e23751facc5b6"},{"name":"turbopack-build-events","duration":79,"timestamp":219114985124,"id":15,"parentId":1,"tags":{},"startTime":1778590600810,"traceId":"bf4e23751facc5b6"},{"name":"run-typescript","duration":8644063,"timestamp":219123641282,"id":16,"parentId":1,"tags":{},"startTime":1778590609466,"traceId":"bf4e23751facc5b6"},{"name":"generate-required-server-files","duration":6155,"timestamp":219132286433,"id":18,"parentId":1,"tags":{},"startTime":1778590618111,"traceId":"bf4e23751facc5b6"},{"name":"check-static-error-page","duration":18251,"timestamp":219132381690,"id":20,"parentId":19,"tags":{},"startTime":1778590618206,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":406832,"timestamp":219132403544,"id":62,"parentId":22,"tags":{},"startTime":1778590618228,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":426275,"timestamp":219132384242,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778590618209,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":487490,"timestamp":219132403218,"id":61,"parentId":21,"tags":{},"startTime":1778590618228,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":507696,"timestamp":219132383084,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778590618208,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":489173,"timestamp":219132403646,"id":63,"parentId":25,"tags":{},"startTime":1778590618228,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":504594,"timestamp":219132388303,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778590618213,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":494162,"timestamp":219132403886,"id":66,"parentId":28,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":508129,"timestamp":219132389995,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778590618215,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":505532,"timestamp":219132403795,"id":64,"parentId":26,"tags":{},"startTime":1778590618228,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":520932,"timestamp":219132388477,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778590618213,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":525354,"timestamp":219132403957,"id":68,"parentId":30,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":539048,"timestamp":219132390334,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778590618215,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":538162,"timestamp":219132403991,"id":69,"parentId":32,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":551578,"timestamp":219132390670,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778590618215,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":538479,"timestamp":219132403923,"id":67,"parentId":29,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":552308,"timestamp":219132390120,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778590618215,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":548264,"timestamp":219132404171,"id":71,"parentId":34,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":560873,"timestamp":219132391652,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778590618216,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":548575,"timestamp":219132404125,"id":70,"parentId":33,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":561250,"timestamp":219132391488,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778590618216,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":552023,"timestamp":219132404188,"id":72,"parentId":35,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":564478,"timestamp":219132391782,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778590618216,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":552359,"timestamp":219132404239,"id":73,"parentId":36,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":564473,"timestamp":219132392162,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778590618217,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":555424,"timestamp":219132404258,"id":74,"parentId":37,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":567438,"timestamp":219132392282,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778590618217,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":555618,"timestamp":219132404266,"id":75,"parentId":38,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":567541,"timestamp":219132392374,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778590618217,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":559656,"timestamp":219132404273,"id":76,"parentId":39,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":571532,"timestamp":219132392437,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778590618217,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":559979,"timestamp":219132404279,"id":77,"parentId":40,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":571676,"timestamp":219132392610,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778590618217,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":563798,"timestamp":219132404284,"id":78,"parentId":41,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":575472,"timestamp":219132392684,"id":41,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778590618217,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":566690,"timestamp":219132404296,"id":80,"parentId":43,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":578237,"timestamp":219132392812,"id":43,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778590618218,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":568319,"timestamp":219132404290,"id":79,"parentId":42,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":579908,"timestamp":219132392750,"id":42,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778590618217,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":568950,"timestamp":219132403837,"id":65,"parentId":27,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":584246,"timestamp":219132388568,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778590618213,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":571756,"timestamp":219132404310,"id":82,"parentId":45,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":583053,"timestamp":219132393056,"id":45,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778590618218,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":573986,"timestamp":219132404305,"id":81,"parentId":44,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":585550,"timestamp":219132392923,"id":44,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778590618218,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":575411,"timestamp":219132404315,"id":83,"parentId":46,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":586610,"timestamp":219132393150,"id":46,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778590618218,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":575752,"timestamp":219132404321,"id":84,"parentId":47,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":586884,"timestamp":219132393216,"id":47,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778590618218,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":576891,"timestamp":219132404326,"id":85,"parentId":48,"tags":{},"startTime":1778590618229,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":587972,"timestamp":219132393281,"id":48,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778590618218,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":576362,"timestamp":219132407159,"id":87,"parentId":31,"tags":{},"startTime":1778590618232,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":593124,"timestamp":219132390434,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778590618215,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":577692,"timestamp":219132406445,"id":86,"parentId":24,"tags":{},"startTime":1778590618231,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":599485,"timestamp":219132384684,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778590618209,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":568237,"timestamp":219132421460,"id":90,"parentId":50,"tags":{},"startTime":1778590618246,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":596014,"timestamp":219132393723,"id":50,"parentId":19,"tags":{"page":"/logs"},"startTime":1778590618218,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":574061,"timestamp":219132421466,"id":91,"parentId":51,"tags":{},"startTime":1778590618246,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":601732,"timestamp":219132393849,"id":51,"parentId":19,"tags":{"page":"/messages"},"startTime":1778590618219,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":579198,"timestamp":219132421475,"id":92,"parentId":52,"tags":{},"startTime":1778590618246,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":606679,"timestamp":219132394038,"id":52,"parentId":19,"tags":{"page":"/node"},"startTime":1778590618219,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":584950,"timestamp":219132421484,"id":93,"parentId":53,"tags":{},"startTime":1778590618246,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":611830,"timestamp":219132394650,"id":53,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778590618219,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":590561,"timestamp":219132421489,"id":94,"parentId":55,"tags":{},"startTime":1778590618246,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":616594,"timestamp":219132395506,"id":55,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778590618220,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":596442,"timestamp":219132421498,"id":95,"parentId":56,"tags":{},"startTime":1778590618246,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":621540,"timestamp":219132397604,"id":56,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778590618222,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":602153,"timestamp":219132421506,"id":96,"parentId":58,"tags":{},"startTime":1778590618246,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":624200,"timestamp":219132399507,"id":58,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778590618224,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":604015,"timestamp":219132421450,"id":89,"parentId":49,"tags":{},"startTime":1778590618246,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":631905,"timestamp":219132393602,"id":49,"parentId":19,"tags":{"page":"/login"},"startTime":1778590618218,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":606008,"timestamp":219132421409,"id":88,"parentId":23,"tags":{},"startTime":1778590618246,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":642963,"timestamp":219132384493,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778590618209,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":611582,"timestamp":219132421522,"id":98,"parentId":60,"tags":{},"startTime":1778590618246,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":633466,"timestamp":219132399750,"id":60,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778590618224,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":611787,"timestamp":219132421534,"id":99,"parentId":54,"tags":{},"startTime":1778590618246,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":638554,"timestamp":219132394893,"id":54,"parentId":19,"tags":{"page":"/"},"startTime":1778590618220,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":612224,"timestamp":219132421512,"id":97,"parentId":59,"tags":{},"startTime":1778590618246,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":634126,"timestamp":219132399641,"id":59,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778590618224,"traceId":"bf4e23751facc5b6"},{"name":"is-page-static","duration":605881,"timestamp":219132431660,"id":100,"parentId":57,"tags":{},"startTime":1778590618256,"traceId":"bf4e23751facc5b6"},{"name":"check-page","duration":639765,"timestamp":219132397823,"id":57,"parentId":19,"tags":{"page":"/settings"},"startTime":1778590618223,"traceId":"bf4e23751facc5b6"},{"name":"static-check","duration":656830,"timestamp":219132380805,"id":19,"parentId":1,"tags":{},"startTime":1778590618206,"traceId":"bf4e23751facc5b6"},{"name":"write-routes-manifest","duration":540,"timestamp":219133044640,"id":102,"parentId":1,"tags":{},"startTime":1778590618869,"traceId":"bf4e23751facc5b6"},{"name":"load-dotenv","duration":71,"timestamp":219133057836,"id":105,"parentId":104,"tags":{},"startTime":1778590618883,"traceId":"bf4e23751facc5b6"},{"name":"run-export-path-map","duration":748,"timestamp":219133063318,"id":106,"parentId":104,"tags":{},"startTime":1778590618888,"traceId":"bf4e23751facc5b6"},{"name":"next-export","duration":617022,"timestamp":219133056406,"id":104,"parentId":1,"tags":{},"startTime":1778590618881,"traceId":"bf4e23751facc5b6"},{"name":"move-exported-app-not-found-","duration":687,"timestamp":219133676812,"id":107,"parentId":103,"tags":{},"startTime":1778590619502,"traceId":"bf4e23751facc5b6"},{"name":"move-exported-app-global-error-","duration":441,"timestamp":219133677611,"id":108,"parentId":103,"tags":{},"startTime":1778590619502,"traceId":"bf4e23751facc5b6"}]
2
+ [{"name":"static-generation","duration":632657,"timestamp":219133049671,"id":103,"parentId":1,"tags":{},"startTime":1778590618874,"traceId":"bf4e23751facc5b6"},{"name":"write-routes-manifest","duration":575,"timestamp":219133682544,"id":109,"parentId":1,"tags":{},"startTime":1778590619507,"traceId":"bf4e23751facc5b6"},{"name":"print-tree-view","duration":4012,"timestamp":219133689523,"id":110,"parentId":1,"tags":{},"startTime":1778590619514,"traceId":"bf4e23751facc5b6"},{"name":"write-route-bundle-stats","duration":14204,"timestamp":219133693571,"id":111,"parentId":1,"tags":{},"startTime":1778590619518,"traceId":"bf4e23751facc5b6"},{"name":"telemetry-flush","duration":39114,"timestamp":219133707810,"id":112,"parentId":1,"tags":{},"startTime":1778590619533,"traceId":"bf4e23751facc5b6"},{"name":"next-build","duration":19275153,"timestamp":219114471810,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778590600297,"traceId":"bf4e23751facc5b6"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"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":"static-check","duration":615670,"timestamp":218799720746,"id":19,"parentId":1,"tags":{},"startTime":1778590285545,"traceId":"1737638a0bd95782"},{"name":"static-generation","duration":676446,"timestamp":218800347322,"id":103,"parentId":1,"tags":{},"startTime":1778590286172,"traceId":"1737638a0bd95782"},{"name":"telemetry-flush","duration":18811,"timestamp":218801059235,"id":112,"parentId":1,"tags":{},"startTime":1778590286884,"traceId":"1737638a0bd95782"},{"name":"next-build","duration":19602922,"timestamp":218781475176,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778590267300,"traceId":"1737638a0bd95782"}]
1
+ [{"name":"run-turbopack","duration":8948322,"timestamp":219114680166,"id":14,"parentId":1,"tags":{},"startTime":1778590600505,"traceId":"bf4e23751facc5b6"},{"name":"turbopack-build-events","duration":79,"timestamp":219114985124,"id":15,"parentId":1,"tags":{},"startTime":1778590600810,"traceId":"bf4e23751facc5b6"},{"name":"run-typescript","duration":8644063,"timestamp":219123641282,"id":16,"parentId":1,"tags":{},"startTime":1778590609466,"traceId":"bf4e23751facc5b6"},{"name":"static-check","duration":656830,"timestamp":219132380805,"id":19,"parentId":1,"tags":{},"startTime":1778590618206,"traceId":"bf4e23751facc5b6"},{"name":"static-generation","duration":632657,"timestamp":219133049671,"id":103,"parentId":1,"tags":{},"startTime":1778590618874,"traceId":"bf4e23751facc5b6"},{"name":"telemetry-flush","duration":39114,"timestamp":219133707810,"id":112,"parentId":1,"tags":{},"startTime":1778590619533,"traceId":"bf4e23751facc5b6"},{"name":"next-build","duration":19275153,"timestamp":219114471810,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778590600297,"traceId":"bf4e23751facc5b6"}]
@@ -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
 
@@ -165,11 +165,20 @@ export default function NodesPage() {
165
165
  {[1,2,3,4].map(i => <div key={i} className="h-16 bg-gray-800/20 rounded-lg" />)}
166
166
  </div>
167
167
  ) : filtered.length === 0 ? (
168
- <EmptyState
169
- variant="nodes"
170
- title="No nodes match your filters"
171
- sub="Try clearing search or status filters, or wait for an agent to register."
172
- />
168
+ sessions.length === 0 ? (
169
+ /* Round 73: first-run case — no agents anywhere. Use the same
170
+ onboarding empty state as the Overview (NodesEmptyState
171
+ includes the `npx … init` quickstart command). Previously this
172
+ was the "No nodes match your filters" copy, which was wrong
173
+ for new users who have no filters applied. */
174
+ <NodesEmptyState />
175
+ ) : (
176
+ <EmptyState
177
+ variant="nodes"
178
+ title="No nodes match your filters"
179
+ sub="Try clearing search or status filters, or wait for an agent to register."
180
+ />
181
+ )
173
182
  ) : viewMode === 'grid' ? (
174
183
  <div className="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4">
175
184
  {filtered.map(s => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network-dashboard",
3
- "version": "0.4.5-preview.55",
3
+ "version": "0.4.5-preview.56",
4
4
  "description": "Agent Network Dashboard — Web UI for managing AI Agent networks",
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -32,12 +32,22 @@ if (!TOKEN) {
32
32
  process.exit(1);
33
33
  }
34
34
 
35
- const matrix = [
36
- { theme: 'cyber', viewport: { width: 1440, height: 900 }, tag: 'desktop' },
37
- { theme: 'cyber', viewport: { width: 390, height: 844 }, tag: 'mobile' },
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}/`, { waitUntil: 'domcontentloaded', timeout: 15000 });
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, `overview-${m.theme}-${m.tag}.png`);
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 r71) ===\n');
213
+ console.log('\n=== Loop self-review (harness r73) ===\n');
204
214
  for (const r of report) {
205
- console.log(`${r.theme}/${r.tag} score=${r.score}/10`);
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`);