@sleep2agi/agent-network-dashboard 0.5.7-preview.36 → 0.5.7-preview.38

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 (167) 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 +7 -7
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/server/app/_global-error.html +1 -1
  6. package/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/.next/server/app/_not-found.html +2 -2
  14. package/.next/server/app/_not-found.rsc +2 -2
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  16. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  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 +2 -2
  21. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  22. package/.next/server/app/admin.html +2 -2
  23. package/.next/server/app/admin.rsc +2 -2
  24. package/.next/server/app/admin.segments/_full.segment.rsc +2 -2
  25. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  26. package/.next/server/app/admin.segments/_index.segment.rsc +2 -2
  27. package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
  28. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
  29. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  30. package/.next/server/app/index.html +2 -2
  31. package/.next/server/app/index.rsc +3 -3
  32. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  33. package/.next/server/app/index.segments/_full.segment.rsc +3 -3
  34. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  35. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  36. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  37. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  38. package/.next/server/app/login.html +2 -2
  39. package/.next/server/app/login.rsc +3 -3
  40. package/.next/server/app/login.segments/_full.segment.rsc +3 -3
  41. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  42. package/.next/server/app/login.segments/_index.segment.rsc +2 -2
  43. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  44. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  45. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  46. package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  47. package/.next/server/app/logs.html +2 -2
  48. package/.next/server/app/logs.rsc +2 -2
  49. package/.next/server/app/logs.segments/_full.segment.rsc +2 -2
  50. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  51. package/.next/server/app/logs.segments/_index.segment.rsc +2 -2
  52. package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
  53. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  54. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  55. package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
  56. package/.next/server/app/messages.html +2 -2
  57. package/.next/server/app/messages.rsc +3 -3
  58. package/.next/server/app/messages.segments/_full.segment.rsc +3 -3
  59. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  60. package/.next/server/app/messages.segments/_index.segment.rsc +2 -2
  61. package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
  62. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +2 -2
  63. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  64. package/.next/server/app/node/page_client-reference-manifest.js +1 -1
  65. package/.next/server/app/node.html +2 -2
  66. package/.next/server/app/node.rsc +2 -2
  67. package/.next/server/app/node.segments/_full.segment.rsc +2 -2
  68. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  69. package/.next/server/app/node.segments/_index.segment.rsc +2 -2
  70. package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
  71. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
  72. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  73. package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  74. package/.next/server/app/nodes.html +2 -2
  75. package/.next/server/app/nodes.rsc +3 -3
  76. package/.next/server/app/nodes.segments/_full.segment.rsc +3 -3
  77. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  78. package/.next/server/app/nodes.segments/_index.segment.rsc +2 -2
  79. package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
  80. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +2 -2
  81. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  82. package/.next/server/app/page_client-reference-manifest.js +1 -1
  83. package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
  84. package/.next/server/app/server-logs.html +2 -2
  85. package/.next/server/app/server-logs.rsc +2 -2
  86. package/.next/server/app/server-logs.segments/_full.segment.rsc +2 -2
  87. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  88. package/.next/server/app/server-logs.segments/_index.segment.rsc +2 -2
  89. package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
  90. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  91. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  92. package/.next/server/app/servers/page_client-reference-manifest.js +1 -1
  93. package/.next/server/app/servers.html +2 -2
  94. package/.next/server/app/servers.rsc +2 -2
  95. package/.next/server/app/servers.segments/_full.segment.rsc +2 -2
  96. package/.next/server/app/servers.segments/_head.segment.rsc +1 -1
  97. package/.next/server/app/servers.segments/_index.segment.rsc +2 -2
  98. package/.next/server/app/servers.segments/_tree.segment.rsc +2 -2
  99. package/.next/server/app/servers.segments/servers/__PAGE__.segment.rsc +1 -1
  100. package/.next/server/app/servers.segments/servers.segment.rsc +1 -1
  101. package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
  102. package/.next/server/app/settings/networks.html +2 -2
  103. package/.next/server/app/settings/networks.rsc +2 -2
  104. package/.next/server/app/settings/networks.segments/_full.segment.rsc +2 -2
  105. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  106. package/.next/server/app/settings/networks.segments/_index.segment.rsc +2 -2
  107. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
  108. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  109. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  110. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  111. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  112. package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
  113. package/.next/server/app/settings/tokens.html +2 -2
  114. package/.next/server/app/settings/tokens.rsc +2 -2
  115. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +2 -2
  116. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  117. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +2 -2
  118. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
  119. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  120. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  121. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  122. package/.next/server/app/settings.html +2 -2
  123. package/.next/server/app/settings.rsc +3 -3
  124. package/.next/server/app/settings.segments/_full.segment.rsc +3 -3
  125. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  126. package/.next/server/app/settings.segments/_index.segment.rsc +2 -2
  127. package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  128. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  129. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  130. package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  131. package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  132. package/.next/server/app/tasks.html +2 -2
  133. package/.next/server/app/tasks.rsc +2 -2
  134. package/.next/server/app/tasks.segments/_full.segment.rsc +2 -2
  135. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  136. package/.next/server/app/tasks.segments/_index.segment.rsc +2 -2
  137. package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
  138. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  139. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  140. package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js +1 -1
  141. package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js.map +1 -1
  142. package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js +1 -1
  143. package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js.map +1 -1
  144. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  145. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  146. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  147. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  148. package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js +2 -2
  149. package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js.map +1 -1
  150. package/.next/server/middleware-build-manifest.js +3 -3
  151. package/.next/server/pages/404.html +2 -2
  152. package/.next/server/pages/500.html +1 -1
  153. package/.next/static/chunks/{02.ev9q2lzlz_.js → 09aqa0t3~kdv-.js} +1 -1
  154. package/.next/static/chunks/0b9yoa_xlcdj7.css +1 -0
  155. package/.next/static/chunks/{115bj1dnqje2x.js → 0q0ngzf2wy2uu.js} +1 -1
  156. package/.next/static/chunks/{0ne6udqoknyrc.js → 0t.g5hwhwocea.js} +1 -1
  157. package/.next/static/chunks/{07lk087gchb7~.js → 0xyds0k-llh6y.js} +2 -2
  158. package/.next/static/chunks/{038qqfgpqqpst.js → 16xdsfhu7lg04.js} +1 -1
  159. package/.next/trace +2 -2
  160. package/.next/trace-build +1 -1
  161. package/app/messages/page.tsx +89 -33
  162. package/app/nodes/page.tsx +78 -15
  163. package/package.json +1 -1
  164. package/.next/static/chunks/0wgwr28esitz~.css +0 -1
  165. /package/.next/static/{xj8hi3hD8gSL1oD_XTWUL → RSm_bZeU9qWHnykS1m6iu}/_buildManifest.js +0 -0
  166. /package/.next/static/{xj8hi3hD8gSL1oD_XTWUL → RSm_bZeU9qWHnykS1m6iu}/_clientMiddlewareManifest.js +0 -0
  167. /package/.next/static/{xj8hi3hD8gSL1oD_XTWUL → RSm_bZeU9qWHnykS1m6iu}/_ssgManifest.js +0 -0
@@ -1,7 +1,7 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3479,59746,e=>{"use strict";function t(e){if(!e)return null;let t=Date.parse(e.includes("T")?e:e.replace(" ","T")+"Z");return Number.isFinite(t)?t:null}function s(e){let s=t(e);if(null===s)return null;let a=Math.floor((Date.now()-s)/1e3);return a<0?"just now":a<60?`${a}s ago`:a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:`${Math.floor(a/86400)}d ago`}e.s(["parseHubTime",0,t,"relativeAgo",0,s],59746),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`},"previewContent",0,function(e){return e&&e.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\s+/g," ").trim()||"--"},"timeAgo",0,function(e){return s(e)??"--"}],3479)},46228,e=>{"use strict";var t=e.i(22381);let s=[180,200,220,270,300,330,30,90];function a(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%)`}}function r(e){return e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"}e.s(["AliasAvatar",0,function({alias:e,size:s=28,className:n=""}){if(/\bgrok\b|grok-build|grok测试员|grok-demo/i.test(e))return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border border-emerald-500/45 bg-emerald-950/70 shrink-0 ${n}`,style:{width:s,height:s,backgroundImage:"url(/vendors/grok.svg)",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"68% 68%"},title:e,"aria-hidden":!0});let i=a(e),l=Math.max(9,Math.round(.42*s));return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${n}`,style:{width:s,height:s,fontSize:l,backgroundColor:i.bg,borderColor:i.ring,color:i.text},title:e,"aria-hidden":!0,children:r(e)})},"aliasAvatarColors",0,a,"aliasInitial",0,r])},76161,e=>{"use strict";var t=e.i(22381),s=e.i(23910),a=e.i(56839);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 i({variant:e="generic",title:s,sub:l,cta:o,compact:c=!1}){let x=r[e],d=s??x.title,h=l??x.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:d}),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 l({children:e}){return(0,t.jsx)("div",{className:"max-w-2xl mx-auto rounded-xl border border-[#2a2a4a] bg-[#111128] shadow-lg shadow-black/20",children:e})}function o({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,i,"NodesEmptyState",0,function({hint:e,taskHistoryCount:s=0}){return e?.global_count?(0,t.jsx)(l,{children:(0,t.jsx)(i,{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.`})}):s>0?(0,t.jsx)(l,{children:(0,t.jsx)(i,{variant:"nodes",title:"No agents online",sub:`Every agent in this network is currently offline. ${s.toLocaleString()} task${1===s?"":"s"} in history — they may have finished their work or disconnected.`,cta:{label:"View task history",href:"/tasks"}})}):(0,t.jsx)(l,{children:(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)(o,{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:"→"})]})})]})})}])},59276,e=>{"use strict";var t=e.i(12629),s=e.i(11449);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}},"useMessages",0,function(e=100){let{networkId:i}=(0,s.useNetworkId)(),{data:l,error:o,isLoading:c}=(0,t.default)(n(`/api/hub/messages?limit=${e}`,i),a,r);return{messages:l?.messages||[],error:o,isLoading:c}},"useSessions",0,function(){let{networkId:e}=(0,s.useNetworkId)(),{data:i,error:l,isLoading:o}=(0,t.default)(n("/api/hub/status",e),a,r);return{sessions:i?.sessions||[],hint:i?._hint,error:l,isLoading:o}},"useStats",0,function(){let{networkId:e}=(0,s.useNetworkId)(),{data:i,error:l}=(0,t.default)(n("/api/hub/stats",e),a,r);return{stats:i?.ok?i:null,error:l}},"useTasks",0,function(e){let{networkId:i}=(0,s.useNetworkId)(),l=new URLSearchParams({limit:"100",...e}).toString(),{data:o,error:c,isLoading:x}=(0,t.default)(n(`/api/hub/tasks?${l}`,i),a,r);return{tasks:o?.tasks||[],count:o?.count??0,source:o?.source,error:c,isLoading:x}}])},94108,e=>{"use strict";var t=e.i(22381),s=e.i(23910),a=e.i(59276),r=e.i(3479),n=e.i(76161),i=e.i(46228);let l={task:"bg-green-500/10 text-green-300 border-green-500/20",message:"bg-blue-500/10 text-blue-300 border-blue-500/20",broadcast:"bg-purple-500/10 text-purple-300 border-purple-500/20",reply:"bg-cyan-500/10 text-cyan-300 border-cyan-500/20"};function o(e){return e?new Date(e.replace(" ","T")+"Z").getTime():0}function c(e){return"broadcast"===e.type?"broadcast":"dashboard"===(e.from_alias||"").toLowerCase()?"outgoing":"incoming"}function x(e,s){let a=e||"--",r=s.trim();if(!r||r.startsWith("from:"))return a;let n=a.toLowerCase().indexOf(r.toLowerCase());return n<0?a:(0,t.jsxs)(t.Fragment,{children:[a.slice(0,n),(0,t.jsx)("mark",{className:"bg-yellow-500/30 text-yellow-200 rounded px-0.5",children:a.slice(n,n+r.length)}),a.slice(n+r.length)]})}e.s(["default",0,function(){let{messages:e,isLoading:d}=(0,a.useMessages)(200),[h,m]=(0,s.useState)(""),[u,g]=(0,s.useState)(""),[p,y]=(0,s.useState)(!1),[b,j]=(0,s.useState)("timeline"),f=(0,s.useMemo)(()=>{let t=new Set;return e.forEach(e=>{let s=e.from_alias?.trim();s&&"dashboard"!==s.toLowerCase()&&t.add(s)}),[...t].slice(0,8)},[e]),v=(0,s.useMemo)(()=>{let t=u.trim().toLowerCase(),s=t.startsWith("from:")?t.slice(5).trim():"";return[...e].filter(e=>(!h||e.type===h)&&(s?(e.from_alias||"").toLowerCase().includes(s):!t||(e.from_alias||"").toLowerCase().includes(t)||(e.to_alias||"").toLowerCase().includes(t)||(e.content||"").toLowerCase().includes(t))).sort((e,t)=>o(e.created_at)-o(t.created_at))},[h,e,u]),w=(0,s.useMemo)(()=>{let e=new Map;return v.forEach(t=>{let s=t.from_alias||"?",a=t.to_alias||"?",r=[s,a].sort().join("↔"),n=e.get(r)||{participants:[s,a].sort(),messages:[],lastTime:0};n.messages.push(t),n.lastTime=Math.max(n.lastTime,o(t.created_at)),e.set(r,n)}),[...e.values()].sort((e,t)=>t.lastTime-e.lastTime)},[v]);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-4 sm:mb-6",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-white lg:ml-0 ml-10",children:"Messages"}),(0,t.jsx)("span",{className:"text-xs bg-blue-900/30 text-blue-400 px-2 py-0.5 rounded-full border border-blue-800/30 tabular-nums",title:v.length<e.length?`Showing ${v.length} of ${e.length} messages`:void 0,children:v.length<e.length?`${v.length} / ${e.length}`:e.length}),v.length>0&&(0,t.jsx)("button",{onClick:()=>{let e=v.map(e=>`**${e.from_alias||"?"}** → ${e.to_alias||"?"} (${e.type||"?"}) — ${e.created_at||""}
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3479,59746,e=>{"use strict";function t(e){if(!e)return null;let t=Date.parse(e.includes("T")?e:e.replace(" ","T")+"Z");return Number.isFinite(t)?t:null}function s(e){let s=t(e);if(null===s)return null;let a=Math.floor((Date.now()-s)/1e3);return a<0?"just now":a<60?`${a}s ago`:a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:`${Math.floor(a/86400)}d ago`}e.s(["parseHubTime",0,t,"relativeAgo",0,s],59746),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`},"previewContent",0,function(e){return e&&e.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\s+/g," ").trim()||"--"},"timeAgo",0,function(e){return s(e)??"--"}],3479)},46228,e=>{"use strict";var t=e.i(22381);let s=[180,200,220,270,300,330,30,90];function a(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%)`}}function r(e){return e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"}e.s(["AliasAvatar",0,function({alias:e,size:s=28,className:n=""}){if(/\bgrok\b|grok-build|grok测试员|grok-demo/i.test(e))return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border border-emerald-500/45 bg-emerald-950/70 shrink-0 ${n}`,style:{width:s,height:s,backgroundImage:"url(/vendors/grok.svg)",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"68% 68%"},title:e,"aria-hidden":!0});let i=a(e),l=Math.max(9,Math.round(.42*s));return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${n}`,style:{width:s,height:s,fontSize:l,backgroundColor:i.bg,borderColor:i.ring,color:i.text},title:e,"aria-hidden":!0,children:r(e)})},"aliasAvatarColors",0,a,"aliasInitial",0,r])},76161,e=>{"use strict";var t=e.i(22381),s=e.i(23910),a=e.i(56839);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 i({variant:e="generic",title:s,sub:l,cta:o,compact:c=!1}){let x=r[e],d=s??x.title,h=l??x.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:d}),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 l({children:e}){return(0,t.jsx)("div",{className:"max-w-2xl mx-auto rounded-xl border border-[#2a2a4a] bg-[#111128] shadow-lg shadow-black/20",children:e})}function o({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,i,"NodesEmptyState",0,function({hint:e,taskHistoryCount:s=0}){return e?.global_count?(0,t.jsx)(l,{children:(0,t.jsx)(i,{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.`})}):s>0?(0,t.jsx)(l,{children:(0,t.jsx)(i,{variant:"nodes",title:"No agents online",sub:`Every agent in this network is currently offline. ${s.toLocaleString()} task${1===s?"":"s"} in history — they may have finished their work or disconnected.`,cta:{label:"View task history",href:"/tasks"}})}):(0,t.jsx)(l,{children:(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)(o,{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:"→"})]})})]})})}])},59276,e=>{"use strict";var t=e.i(12629),s=e.i(11449);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}},"useMessages",0,function(e=100){let{networkId:i}=(0,s.useNetworkId)(),{data:l,error:o,isLoading:c}=(0,t.default)(n(`/api/hub/messages?limit=${e}`,i),a,r);return{messages:l?.messages||[],error:o,isLoading:c}},"useSessions",0,function(){let{networkId:e}=(0,s.useNetworkId)(),{data:i,error:l,isLoading:o}=(0,t.default)(n("/api/hub/status",e),a,r);return{sessions:i?.sessions||[],hint:i?._hint,error:l,isLoading:o}},"useStats",0,function(){let{networkId:e}=(0,s.useNetworkId)(),{data:i,error:l}=(0,t.default)(n("/api/hub/stats",e),a,r);return{stats:i?.ok?i:null,error:l}},"useTasks",0,function(e){let{networkId:i}=(0,s.useNetworkId)(),l=new URLSearchParams({limit:"100",...e}).toString(),{data:o,error:c,isLoading:x}=(0,t.default)(n(`/api/hub/tasks?${l}`,i),a,r);return{tasks:o?.tasks||[],count:o?.count??0,source:o?.source,error:c,isLoading:x}}])},94108,e=>{"use strict";var t=e.i(22381),s=e.i(23910),a=e.i(59276),r=e.i(3479),n=e.i(76161),i=e.i(46228);let l={task:"bg-green-500/10 text-green-300 border-green-500/20",message:"bg-blue-500/10 text-blue-300 border-blue-500/20",broadcast:"bg-purple-500/10 text-purple-300 border-purple-500/20",reply:"bg-cyan-500/10 text-cyan-300 border-cyan-500/20"};function o(e){return e?new Date(e.replace(" ","T")+"Z").getTime():0}function c(e){return"broadcast"===e.type?"broadcast":"dashboard"===(e.from_alias||"").toLowerCase()?"outgoing":"incoming"}function x(e,s){let a=e||"--",r=s.trim();if(!r||r.startsWith("from:"))return a;let n=a.toLowerCase().indexOf(r.toLowerCase());return n<0?a:(0,t.jsxs)(t.Fragment,{children:[a.slice(0,n),(0,t.jsx)("mark",{className:"bg-yellow-500/30 text-yellow-200 rounded px-0.5",children:a.slice(n,n+r.length)}),a.slice(n+r.length)]})}e.s(["default",0,function(){let{messages:e,isLoading:d}=(0,a.useMessages)(200),[h,m]=(0,s.useState)(""),[u,g]=(0,s.useState)(""),[p,y]=(0,s.useState)(!1),[b,j]=(0,s.useState)("timeline"),[f,v]=(0,s.useState)(!1),w=(0,s.useMemo)(()=>{let t=new Set;return e.forEach(e=>{let s=e.from_alias?.trim();s&&"dashboard"!==s.toLowerCase()&&t.add(s)}),[...t].slice(0,8)},[e]),k=(0,s.useMemo)(()=>{let t=u.trim().toLowerCase(),s=t.startsWith("from:")?t.slice(5).trim():"";return[...e].filter(e=>(!h||e.type===h)&&(s?(e.from_alias||"").toLowerCase().includes(s):!t||(e.from_alias||"").toLowerCase().includes(t)||(e.to_alias||"").toLowerCase().includes(t)||(e.content||"").toLowerCase().includes(t))).sort((e,t)=>o(e.created_at)-o(t.created_at))},[h,e,u]),N=(0,s.useMemo)(()=>{let e=new Map;return k.forEach(t=>{let s=t.from_alias||"?",a=t.to_alias||"?",r=[s,a].sort().join("↔"),n=e.get(r)||{participants:[s,a].sort(),messages:[],lastTime:0};n.messages.push(t),n.lastTime=Math.max(n.lastTime,o(t.created_at)),e.set(r,n)}),[...e.values()].sort((e,t)=>t.lastTime-e.lastTime)},[k]);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-4 sm:mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-white lg:ml-0 ml-10",children:"Messages"}),(0,t.jsx)("span",{className:"text-xs bg-blue-900/30 text-blue-400 px-2 py-0.5 rounded-full border border-blue-800/30 tabular-nums shrink-0",title:k.length<e.length?`Showing ${k.length} of ${e.length} messages`:void 0,children:k.length<e.length?`${k.length} / ${e.length}`:e.length}),k.length>0&&(0,t.jsx)("button",{onClick:()=>{let e=k.map(e=>`**${e.from_alias||"?"}** → ${e.to_alias||"?"} (${e.type||"?"}) — ${e.created_at||""}
2
2
 
3
3
  ${e.content||"--"}
4
4
 
5
5
  ---`).join("\n\n"),t=new Blob([`# Messages Export
6
6
 
7
- ${e}`],{type:"text/markdown"}),s=URL.createObjectURL(t),a=document.createElement("a");a.href=s,a.download=`messages-${new Date().toISOString().slice(0,10)}.md`,a.click(),URL.revokeObjectURL(s)},className:"text-xs text-gray-500 hover:text-gray-300 border border-gray-700/50 px-2.5 py-1 rounded-lg transition-colors",children:"Export MD"})]}),e.length>0&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-3 mb-3",children:[(0,t.jsx)("input",{type:"text",value:u,onChange:e=>g(e.target.value),placeholder:"Search from/to/content or use from:alias",className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-base sm:text-sm text-white placeholder-gray-600 focus:border-blue-500/50 focus:outline-none w-full sm:w-72"}),(0,t.jsxs)("select",{value:h,onChange:e=>m(e.target.value),className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-base sm:text-sm text-white focus:border-blue-500/50 focus:outline-none",children:[(0,t.jsx)("option",{value:"",children:"All types"}),(0,t.jsx)("option",{value:"task",children:"task"}),(0,t.jsx)("option",{value:"message",children:"message"}),(0,t.jsx)("option",{value:"broadcast",children:"broadcast"}),(0,t.jsx)("option",{value:"reply",children:"reply"})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-0.5",children:["timeline","grouped"].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>j(e),className:`rounded-md px-2.5 py-1.5 text-xs transition-colors ${b===e?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"timeline"===e?"Timeline":"Grouped"},e))}),(0,t.jsx)("button",{onClick:()=>y(!p),className:`text-xs px-3 py-2 rounded-lg border transition-colors ${p?"bg-yellow-500/10 text-yellow-300 border-yellow-500/20":"text-gray-500 border-gray-700/50 hover:text-gray-300"}`,children:p?"Debug ON":"Debug"})]}),f.length>0&&(0,t.jsxs)("div",{className:"mb-4 sm:mb-6 flex flex-wrap gap-2",children:[f.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>g(`from:${e}`),className:`rounded-full border px-3 py-1 text-xs transition-colors ${u===`from:${e}`?"border-cyan-500/30 bg-cyan-500/10 text-cyan-300":"border-[#2a2a4a] bg-[#111128] text-gray-400 hover:text-gray-200"}`,children:["from:",e]},e)),u.startsWith("from:")&&(0,t.jsx)("button",{type:"button",onClick:()=>g(""),className:"rounded-full border border-gray-700 px-3 py-1 text-xs text-gray-500 hover:text-gray-200",children:"Clear"})]}),d?(0,t.jsx)("div",{className:"animate-pulse space-y-3",children:[1,2,3,4,5].map(e=>(0,t.jsx)("div",{className:"h-20 rounded-2xl bg-gray-800/20"},e))}):0===v.length?(0,t.jsx)(n.EmptyState,{variant:"messages"}):"grouped"===b?(0,t.jsx)("div",{className:"space-y-4",children:w.map((e,s)=>(0,t.jsxs)("div",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl overflow-hidden",children:[(0,t.jsxs)("div",{className:"px-4 py-2.5 border-b border-[#2a2a4a] flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.AliasAvatar,{alias:e.participants[0],size:16}),(0,t.jsx)("span",{className:"text-sm text-gray-200 font-medium",children:e.participants[0]}),(0,t.jsx)("span",{className:"text-gray-600 text-xs",children:"↔"}),(0,t.jsx)(i.AliasAvatar,{alias:e.participants[1],size:16}),(0,t.jsx)("span",{className:"text-sm text-gray-200 font-medium",children:e.participants[1]})]}),(0,t.jsxs)("span",{className:"text-[10px] text-gray-600",children:[e.messages.length," messages"]})]}),(0,t.jsx)("div",{className:"px-4 py-2 space-y-2 max-h-64 overflow-y-auto",children:e.messages.map(e=>(0,t.jsxs)("div",{className:"flex items-start gap-2 text-xs py-1",children:[e.from_alias&&(0,t.jsx)(i.AliasAvatar,{alias:e.from_alias,size:14}),(0,t.jsx)("span",{className:"shrink-0 font-medium text-gray-200",children:e.from_alias}),(0,t.jsx)("span",{className:"text-gray-400 flex-1 truncate",title:e.content||"",children:(0,r.previewContent)(e.content).slice(0,120)}),(0,t.jsx)("span",{className:"text-[9px] text-gray-600 shrink-0",children:(0,r.timeAgo)(e.created_at||"")})]},e.id))})]},s))}):(0,t.jsx)("div",{className:"space-y-1",children:v.map((e,s)=>{var a;let n=v[s-1],d=!!n&&o(e.created_at)-o(n.created_at)>3e5,h=c(e),m=!!n&&!d&&c(n)===h&&(n.from_alias||"")===(e.from_alias||"")&&(n.to_alias||"")===(e.to_alias||""),g=e.from_alias||"?";return(0,t.jsxs)("div",{children:[d&&(0,t.jsxs)("div",{className:"my-2 sm:my-4 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-[#2a2a4a]"}),(0,t.jsx)("div",{className:"text-[11px] text-gray-600",children:(a=e.created_at)?new Date(a.replace(" ","T")+"Z").toLocaleString():"Time gap"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-[#2a2a4a]"})]}),"broadcast"===h?(0,t.jsx)("div",{className:m?"mt-0.5 sm:mt-1":"mt-2 sm:mt-3",children:(0,t.jsxs)("div",{className:"rounded-2xl border border-purple-500/20 bg-purple-500/10 px-3 py-2 sm:px-4 sm:py-3 shadow-sm w-full",children:[(0,t.jsxs)("div",{className:"mb-1 sm:mb-2 flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded-md border ${l[e.type||""]||"bg-gray-500/10 text-gray-400 border-gray-500/20"}`,children:e.type||"unknown"}),(0,t.jsx)("span",{className:"text-sm font-medium text-purple-200",children:g}),e.to_alias&&(0,t.jsxs)("span",{className:"text-xs text-purple-200/80",children:["to ",e.to_alias]}),"high"===e.priority&&(0,t.jsx)("span",{className:"text-xs text-red-400",children:"HIGH"}),(0,t.jsx)("span",{className:"ml-auto text-xs text-gray-500",children:e.created_at?(0,r.timeAgo)(e.created_at):"--"})]}),(0,t.jsx)("div",{className:"whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-sm leading-snug sm:leading-relaxed text-gray-200",children:x(e.content,u)})]})}):(0,t.jsxs)("div",{className:`${m?"mt-0.5 sm:mt-1":"mt-2 sm:mt-3"} flex gap-2 ${"outgoing"===h?"flex-row-reverse":"flex-row"}`,children:[(0,t.jsx)("div",{className:"w-8 shrink-0 pt-1",children:!m&&(0,t.jsx)(i.AliasAvatar,{alias:g,size:32})}),(0,t.jsxs)("div",{className:`min-w-0 max-w-3xl rounded-2xl border px-3 py-2 sm:px-4 sm:py-3 shadow-sm ${"outgoing"===h?"border-green-500/20 bg-green-500/10":"border-blue-500/20 bg-blue-500/10"}`,children:[!m&&(0,t.jsxs)("div",{className:"mb-1 sm:mb-2 flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded-md border ${l[e.type||""]||"bg-gray-500/10 text-gray-400 border-gray-500/20"}`,children:e.type||"unknown"}),(0,t.jsx)("span",{className:`text-sm font-medium ${"outgoing"===h?"text-green-300":"text-blue-300"}`,children:g}),(0,t.jsx)("span",{className:"text-xs text-gray-600",children:"→"}),(0,t.jsx)("span",{className:"text-sm text-gray-300",children:e.to_alias||"--"}),"high"===e.priority&&(0,t.jsx)("span",{className:"text-xs text-red-400",children:"HIGH"}),(0,t.jsx)("span",{className:"ml-auto text-xs text-gray-500",children:e.created_at?(0,r.timeAgo)(e.created_at):"--"})]}),(0,t.jsx)("div",{className:"whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-sm leading-snug sm:leading-relaxed text-gray-200",children:x(e.content,u)}),m&&(0,t.jsx)("div",{className:"mt-1 text-[10px] text-gray-600 text-right",children:e.created_at?(0,r.timeAgo)(e.created_at):""}),p&&(0,t.jsxs)("div",{className:"mt-3 border-t border-white/10 pt-3 text-xs text-gray-500 space-y-1",children:[(0,t.jsxs)("div",{children:["ID: ",e.id]}),e.task_id&&(0,t.jsxs)("div",{children:["Task ID: ",e.task_id]}),(0,t.jsxs)("div",{children:["Created: ",e.created_at]})]})]})]})]},e.id)})})]})}])}]);
7
+ ${e}`],{type:"text/markdown"}),s=URL.createObjectURL(t),a=document.createElement("a");a.href=s,a.download=`messages-${new Date().toISOString().slice(0,10)}.md`,a.click(),URL.revokeObjectURL(s)},className:"text-xs text-gray-500 hover:text-gray-300 border border-gray-700/50 px-2.5 py-1 rounded-lg transition-colors shrink-0",children:"Export MD"})]}),e.length>0&&(0,t.jsxs)("button",{type:"button",onClick:()=>v(e=>!e),"aria-label":f?"Close search":"Open search","aria-pressed":f,title:f?"Close search":"Search messages",className:`relative shrink-0 inline-flex items-center justify-center rounded-full border w-9 h-9 transition-colors ${f||u?"border-cyan-500/40 bg-cyan-500/10 text-cyan-300":"border-[#2a2a4a] bg-[#111128] text-gray-400 hover:text-gray-200 hover:border-[#3a3a5a]"}`,children:[(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),u&&!f&&(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute -top-0.5 -right-0.5 w-2 h-2 rounded-full bg-cyan-400 ring-2 ring-[#0a0a1a]"})]})]}),e.length>0&&(f||u)&&(0,t.jsxs)("div",{className:"mb-3 sm:mb-4 flex items-center gap-2",children:[(0,t.jsx)("input",{type:"text",value:u,onChange:e=>g(e.target.value),onKeyDown:e=>{"Escape"===e.key&&(g(""),v(!1))},placeholder:"Search from/to/content or use from:alias",autoFocus:f,className:"flex-1 bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-base sm:text-sm text-white placeholder-gray-600 focus:border-cyan-500/40 focus:outline-none"}),(u||f)&&(0,t.jsx)("button",{type:"button",onClick:()=>{g(""),v(!1)},className:"shrink-0 text-xs text-gray-500 hover:text-gray-300 px-2 py-2","aria-label":"Clear and close search",children:"Cancel"})]}),e.length>0&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-3 mb-3",children:[(0,t.jsxs)("select",{value:h,onChange:e=>m(e.target.value),className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-base sm:text-sm text-white focus:border-blue-500/50 focus:outline-none",children:[(0,t.jsx)("option",{value:"",children:"All types"}),(0,t.jsx)("option",{value:"task",children:"task"}),(0,t.jsx)("option",{value:"message",children:"message"}),(0,t.jsx)("option",{value:"broadcast",children:"broadcast"}),(0,t.jsx)("option",{value:"reply",children:"reply"})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-0.5",children:["timeline","grouped"].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>j(e),className:`rounded-md px-2.5 py-1.5 text-xs transition-colors ${b===e?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"timeline"===e?"Timeline":"Grouped"},e))}),(0,t.jsx)("button",{onClick:()=>y(!p),className:`text-xs px-3 py-2 rounded-lg border transition-colors ${p?"bg-yellow-500/10 text-yellow-300 border-yellow-500/20":"text-gray-500 border-gray-700/50 hover:text-gray-300"}`,children:p?"Debug ON":"Debug"})]}),w.length>0&&(0,t.jsxs)("div",{className:"mb-4 sm:mb-6 flex flex-wrap gap-2",children:[w.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>g(`from:${e}`),className:`rounded-full border px-3 py-1 text-xs transition-colors ${u===`from:${e}`?"border-cyan-500/30 bg-cyan-500/10 text-cyan-300":"border-[#2a2a4a] bg-[#111128] text-gray-400 hover:text-gray-200"}`,children:["from:",e]},e)),u.startsWith("from:")&&(0,t.jsx)("button",{type:"button",onClick:()=>g(""),className:"rounded-full border border-gray-700 px-3 py-1 text-xs text-gray-500 hover:text-gray-200",children:"Clear"})]}),d?(0,t.jsx)("div",{className:"animate-pulse space-y-3",children:[1,2,3,4,5].map(e=>(0,t.jsx)("div",{className:"h-20 rounded-2xl bg-gray-800/20"},e))}):0===k.length?(0,t.jsx)(n.EmptyState,{variant:"messages"}):"grouped"===b?(0,t.jsx)("div",{className:"space-y-4",children:N.map((e,s)=>(0,t.jsxs)("div",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl overflow-hidden",children:[(0,t.jsxs)("div",{className:"px-4 py-2.5 border-b border-[#2a2a4a] flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.AliasAvatar,{alias:e.participants[0],size:16}),(0,t.jsx)("span",{className:"text-sm text-gray-200 font-medium",children:e.participants[0]}),(0,t.jsx)("span",{className:"text-gray-600 text-xs",children:"↔"}),(0,t.jsx)(i.AliasAvatar,{alias:e.participants[1],size:16}),(0,t.jsx)("span",{className:"text-sm text-gray-200 font-medium",children:e.participants[1]})]}),(0,t.jsxs)("span",{className:"text-[10px] text-gray-600",children:[e.messages.length," messages"]})]}),(0,t.jsx)("div",{className:"px-4 py-2 space-y-2 max-h-64 overflow-y-auto",children:e.messages.map(e=>(0,t.jsxs)("div",{className:"flex items-start gap-2 text-xs py-1",children:[e.from_alias&&(0,t.jsx)(i.AliasAvatar,{alias:e.from_alias,size:14}),(0,t.jsx)("span",{className:"shrink-0 font-medium text-gray-200",children:e.from_alias}),(0,t.jsx)("span",{className:"text-gray-400 flex-1 truncate",title:e.content||"",children:(0,r.previewContent)(e.content).slice(0,120)}),(0,t.jsx)("span",{className:"text-[9px] text-gray-600 shrink-0",children:(0,r.timeAgo)(e.created_at||"")})]},e.id))})]},s))}):(0,t.jsx)("div",{className:"space-y-1",children:k.map((e,s)=>{var a;let n=k[s-1],d=!!n&&o(e.created_at)-o(n.created_at)>3e5,h=c(e),m=!!n&&!d&&c(n)===h&&(n.from_alias||"")===(e.from_alias||"")&&(n.to_alias||"")===(e.to_alias||""),g=e.from_alias||"?";return(0,t.jsxs)("div",{children:[d&&(0,t.jsxs)("div",{className:"my-2 sm:my-4 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-[#2a2a4a]"}),(0,t.jsx)("div",{className:"text-[11px] text-gray-600",children:(a=e.created_at)?new Date(a.replace(" ","T")+"Z").toLocaleString():"Time gap"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-[#2a2a4a]"})]}),"broadcast"===h?(0,t.jsx)("div",{className:m?"mt-0.5 sm:mt-1":"mt-2 sm:mt-3",children:(0,t.jsxs)("div",{className:"rounded-2xl border border-purple-500/20 bg-purple-500/10 px-3 py-2 sm:px-4 sm:py-3 shadow-sm w-full",children:[(0,t.jsxs)("div",{className:"mb-1 sm:mb-2 flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded-md border ${l[e.type||""]||"bg-gray-500/10 text-gray-400 border-gray-500/20"}`,children:e.type||"unknown"}),(0,t.jsx)("span",{className:"text-sm font-medium text-purple-200",children:g}),e.to_alias&&(0,t.jsxs)("span",{className:"text-xs text-purple-200/80",children:["to ",e.to_alias]}),"high"===e.priority&&(0,t.jsx)("span",{className:"text-xs text-red-400",children:"HIGH"}),(0,t.jsx)("span",{className:"ml-auto text-xs text-gray-500",children:e.created_at?(0,r.timeAgo)(e.created_at):"--"})]}),(0,t.jsx)("div",{className:"whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-sm leading-snug sm:leading-relaxed text-gray-200",children:x(e.content,u)})]})}):(0,t.jsxs)("div",{className:`${m?"mt-0.5 sm:mt-1":"mt-2 sm:mt-3"} flex gap-2 ${"outgoing"===h?"flex-row-reverse":"flex-row"}`,children:[(0,t.jsx)("div",{className:"w-8 shrink-0 pt-1",children:!m&&(0,t.jsx)(i.AliasAvatar,{alias:g,size:32})}),(0,t.jsxs)("div",{className:`min-w-0 max-w-3xl rounded-2xl border px-3 py-2 sm:px-4 sm:py-3 shadow-sm ${"outgoing"===h?"border-green-500/20 bg-green-500/10":"border-blue-500/20 bg-blue-500/10"}`,children:[!m&&(0,t.jsxs)("div",{className:"mb-1 sm:mb-2 flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded-md border ${l[e.type||""]||"bg-gray-500/10 text-gray-400 border-gray-500/20"}`,children:e.type||"unknown"}),(0,t.jsx)("span",{className:`text-sm font-medium ${"outgoing"===h?"text-green-300":"text-blue-300"}`,children:g}),(0,t.jsx)("span",{className:"text-xs text-gray-600",children:"→"}),(0,t.jsx)("span",{className:"text-sm text-gray-300",children:e.to_alias||"--"}),"high"===e.priority&&(0,t.jsx)("span",{className:"text-xs text-red-400",children:"HIGH"}),(0,t.jsx)("span",{className:"ml-auto text-xs text-gray-500",children:e.created_at?(0,r.timeAgo)(e.created_at):"--"})]}),(0,t.jsx)("div",{className:"whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-sm leading-snug sm:leading-relaxed text-gray-200",children:x(e.content,u)}),m&&(0,t.jsx)("div",{className:"mt-1 text-[10px] text-gray-600 text-right",children:e.created_at?(0,r.timeAgo)(e.created_at):""}),p&&(0,t.jsxs)("div",{className:"mt-3 border-t border-white/10 pt-3 text-xs text-gray-500 space-y-1",children:[(0,t.jsxs)("div",{children:["ID: ",e.id]}),e.task_id&&(0,t.jsxs)("div",{children:["Task ID: ",e.task_id]}),(0,t.jsxs)("div",{children:["Created: ",e.created_at]})]})]})]})]},e.id)})})]})}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98025,e=>{"use strict";e.s(["SESSION_STATUS_CHIP_CLASS",0,{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"},"SESSION_STATUS_TEXT_CLASS",0,{working:"text-green-400",idle:"text-blue-400",blocked:"text-yellow-400",error:"text-red-400",offline:"text-gray-500"},"STATUS_BAR_CLASS",0,{created:"bg-gray-500",delivered:"bg-blue-500",acked:"bg-cyan-500",running:"bg-green-500",replied:"bg-purple-500",closed:"bg-gray-600",failed:"bg-red-500",cancelled:"bg-yellow-500",expired:"bg-orange-500"},"STATUS_CHIP_CLASS",0,{created:"bg-gray-500/10 text-gray-400 border-gray-500/20",delivered:"bg-blue-500/10 text-blue-300 border-blue-500/20",acked:"bg-cyan-500/10 text-cyan-300 border-cyan-500/20",running:"bg-green-500/10 text-green-300 border-green-500/20",replied:"bg-purple-500/10 text-purple-300 border-purple-500/20",closed:"bg-gray-500/10 text-gray-500 border-gray-500/20",failed:"bg-red-500/10 text-red-300 border-red-500/20",cancelled:"bg-yellow-500/10 text-yellow-300 border-yellow-500/20",expired:"bg-orange-500/10 text-orange-300 border-orange-500/20"},"STATUS_DOT_HEX",0,{created:"#9ca3af",delivered:"#60a5fa",acked:"#22d3ee",running:"#4ade80",replied:"#a78bfa",closed:"#6b7280",failed:"#f87171",cancelled:"#facc15",expired:"#fb923c"},"TASK_STATUSES",0,["created","delivered","acked","running","replied","closed","failed","cancelled","expired"]])},3479,59746,e=>{"use strict";function t(e){if(!e)return null;let t=Date.parse(e.includes("T")?e:e.replace(" ","T")+"Z");return Number.isFinite(t)?t:null}function s(e){let s=t(e);if(null===s)return null;let r=Math.floor((Date.now()-s)/1e3);return r<0?"just now":r<60?`${r}s ago`:r<3600?`${Math.floor(r/60)}m ago`:r<86400?`${Math.floor(r/3600)}h ago`:`${Math.floor(r/86400)}d ago`}e.s(["parseHubTime",0,t,"relativeAgo",0,s],59746),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`},"previewContent",0,function(e){return e&&e.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\s+/g," ").trim()||"--"},"timeAgo",0,function(e){return s(e)??"--"}],3479)},46228,e=>{"use strict";var t=e.i(22381);let s=[180,200,220,270,300,330,30,90];function r(e){let t=0;for(let s=0;s<e.length;s++)t=31*t+e.charCodeAt(s)>>>0;let r=s[t%s.length];return{bg:`hsl(${r} 55% 22%)`,ring:`hsl(${r} 60% 45%)`,text:`hsl(${r} 80% 78%)`}}function a(e){return e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"}e.s(["AliasAvatar",0,function({alias:e,size:s=28,className:n=""}){if(/\bgrok\b|grok-build|grok测试员|grok-demo/i.test(e))return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border border-emerald-500/45 bg-emerald-950/70 shrink-0 ${n}`,style:{width:s,height:s,backgroundImage:"url(/vendors/grok.svg)",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"68% 68%"},title:e,"aria-hidden":!0});let i=r(e),l=Math.max(9,Math.round(.42*s));return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${n}`,style:{width:s,height:s,fontSize:l,backgroundColor:i.bg,borderColor:i.ring,color:i.text},title:e,"aria-hidden":!0,children:a(e)})},"aliasAvatarColors",0,r,"aliasInitial",0,a])},76161,e=>{"use strict";var t=e.i(22381),s=e.i(23910),r=e.i(56839);let a={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 r={width:s,height:s},a={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",...r,children:(0,t.jsxs)("g",{...a,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",...r,children:(0,t.jsxs)("g",{...a,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",...r,children:(0,t.jsxs)("g",{...a,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",...r,children:(0,t.jsxs)("g",{...a,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",...r,children:(0,t.jsxs)("g",{...a,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",...r,children:(0,t.jsxs)("g",{...a,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",...r,children:(0,t.jsxs)("g",{...a,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 i({variant:e="generic",title:s,sub:l,cta:o,compact:d=!1}){let c=a[e],x=s??c.title,h=l??c.sub;return(0,t.jsxs)("div",{className:`text-center ${d?"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:d?40:56})}),(0,t.jsx)("h3",{className:`font-medium text-gray-300 ${d?"text-sm":"text-base"}`,children:x}),h&&(0,t.jsx)("p",{className:`text-gray-500 ${d?"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)(r.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 l({children:e}){return(0,t.jsx)("div",{className:"max-w-2xl mx-auto rounded-xl border border-[#2a2a4a] bg-[#111128] shadow-lg shadow-black/20",children:e})}function o({cmd:e}){let[r,a]=(0,s.useState)(!1),n=async()=>{try{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!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":r?"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:r?(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,i,"NodesEmptyState",0,function({hint:e,taskHistoryCount:s=0}){return e?.global_count?(0,t.jsx)(l,{children:(0,t.jsx)(i,{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.`})}):s>0?(0,t.jsx)(l,{children:(0,t.jsx)(i,{variant:"nodes",title:"No agents online",sub:`Every agent in this network is currently offline. ${s.toLocaleString()} task${1===s?"":"s"} in history — they may have finished their work or disconnected.`,cta:{label:"View task history",href:"/tasks"}})}):(0,t.jsx)(l,{children:(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)(o,{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:"→"})]})})]})})}])},59276,e=>{"use strict";var t=e.i(12629),s=e.i(11449);let r=async e=>{let t=await fetch(e);if(401===t.status)throw window.location.assign("/login"),Error("unauthorized");return t.json()},a={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",r,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:s}=(0,t.default)("/api/hub/health",r,a);return{health:e||null,error:s}},"useMessages",0,function(e=100){let{networkId:i}=(0,s.useNetworkId)(),{data:l,error:o,isLoading:d}=(0,t.default)(n(`/api/hub/messages?limit=${e}`,i),r,a);return{messages:l?.messages||[],error:o,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,s.useNetworkId)(),{data:i,error:l,isLoading:o}=(0,t.default)(n("/api/hub/status",e),r,a);return{sessions:i?.sessions||[],hint:i?._hint,error:l,isLoading:o}},"useStats",0,function(){let{networkId:e}=(0,s.useNetworkId)(),{data:i,error:l}=(0,t.default)(n("/api/hub/stats",e),r,a);return{stats:i?.ok?i:null,error:l}},"useTasks",0,function(e){let{networkId:i}=(0,s.useNetworkId)(),l=new URLSearchParams({limit:"100",...e}).toString(),{data:o,error:d,isLoading:c}=(0,t.default)(n(`/api/hub/tasks?${l}`,i),r,a);return{tasks:o?.tasks||[],count:o?.count??0,source:o?.source,error:d,isLoading:c}}])},70732,e=>{"use strict";var t=e.i(22381),s=e.i(23910),r=e.i(3479),a=e.i(59276),n=e.i(43058),i=e.i(76161),l=e.i(46228),o=e.i(98025),d=e.i(38263);function c(e){return e?e.length>12?`${e.slice(0,8)}…`:e:"—"}e.s(["default",0,function(){let e,x,h,u,{sessions:g,isLoading:m}=(0,a.useSessions)(),{health:p}=(0,a.useHealth)(),{hasUnread:y}=(0,d.useChatUnread)(),b=p?.sse_sessions||{},j=e=>(e.network_id?b[`${e.network_id}:${e.alias}`]:void 0)??b[e.alias],[f,v]=(0,s.useState)(""),[w,N]=(0,s.useState)(""),[k,S]=(0,s.useState)("list"),[C,_]=(0,s.useState)(null),A=g.map(e=>({...e,online:!!j(e)})).filter(e=>"online"===f?e.online:"offline"===f?!e.online:!f||f===e.status).filter(e=>!w||e.alias.toLowerCase().includes(w.toLowerCase())||(e.agent||"").toLowerCase().includes(w.toLowerCase())).sort((e,t)=>!!t.online-!!e.online||("working"===t.status)-("working"===e.status)),T=g.filter(e=>j(e)).length;return(0,t.jsxs)("div",{className:"min-h-screen max-w-full overflow-x-hidden bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-4 sm: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:[T," 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:[g.length," total"]})]}),g.length>0&&(e=A.filter(e=>e.online&&"working"===e.status).length,x=A.filter(e=>e.online&&"idle"===e.status).length,h=A.filter(e=>!e.online).length,u=A.length||1,(0,t.jsxs)("div",{className:"mb-4 sm: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/u*100}%`}}),x>0&&(0,t.jsx)("div",{className:"bg-cyan-500",style:{width:`${x/u*100}%`}}),h>0&&(0,t.jsx)("div",{className:"bg-gray-600",style:{width:`${h/u*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"]}),x>0&&(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-cyan-500 mr-1"}),x," idle"]}),h>0&&(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-gray-600 mr-1"}),h," offline"]})]})]})),g.length>0&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-3 mb-4 sm:mb-6",children:[(0,t.jsx)("input",{type:"text",value:w,onChange:e=>N(e.target.value),placeholder:"Search nodes...",className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-base sm:text-sm text-white placeholder-gray-600 focus:border-blue-500/50 focus:outline-none w-full sm:w-48"}),(0,t.jsxs)("select",{value:f,onChange:e=>v(e.target.value),className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-base sm: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:"hidden sm:flex ml-auto rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 text-sm",children:["list","grid"].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>S(e),className:`rounded-md px-3 py-1.5 transition-colors ${k===e?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"list"===e?"List":"Grid"},e))})]}),m?(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===A.length?0===g.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"===k?(0,t.jsx)("div",{className:"grid min-w-0 grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:A.map(e=>{let s=e.online?e.status:"offline",a="number"==typeof e.progress?e.progress:0,n=y(e.alias);return(0,t.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>_(e.alias),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),_(e.alias))},className:`relative min-w-0 max-w-full overflow-hidden rounded-xl border border-[#2a2a4a] bg-[#111128] p-4 transition-colors hover:border-cyan-500/40 cursor-pointer ${!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.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)(l.AliasAvatar,{alias:e.alias,size:36}),n&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 h-3 w-3 rounded-full border-2 border-[#111128] bg-red-500"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",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}),n&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-red-500/15 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-red-300",children:"New"}),(0,t.jsx)("span",{className:`shrink-0 rounded-md border px-2 py-0.5 text-[10px] uppercase tracking-wide ${o.SESSION_STATUS_CHIP_CLASS[s]||o.SESSION_STATUS_CHIP_CLASS.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:"·"}),(0,t.jsx)("span",{title:e.server||"",children:c(e.server)})]})]}),(0,t.jsx)("span",{className:"hidden shrink-0 rounded-lg border border-cyan-500/15 bg-cyan-500/5 px-2 py-1 text-[10px] text-cyan-300/70 sm:inline",children:"Tap to chat"})]}),(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"})]}),a>0&&a<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:`${a}%`}})})]},e.alias)})}):(0,t.jsxs)("div",{className:"space-y-1 sm:space-y-2",children:[(0,t.jsxs)("div",{className:"hidden sm:grid sm:grid-cols-10 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 · Server"}),(0,t.jsx)("div",{className:"col-span-4",children:"Current Task"}),(0,t.jsx)("div",{className:"col-span-1",children:"Updated"})]}),A.map(e=>{let s=e.online?e.status:"offline",a=y(e.alias);return(0,t.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>_(e.alias),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),_(e.alias))},className:`rounded-lg border border-[#2a2a4a] bg-[#111128] px-3 py-2 sm:px-4 sm:py-3 transition-colors hover:border-cyan-500/40 cursor-pointer ${!e.online?"opacity-50":""}`,children:[(0,t.jsxs)("div",{className:"hidden sm:grid sm:grid-cols-10 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 ${o.SESSION_STATUS_CHIP_CLASS[s]||o.SESSION_STATUS_CHIP_CLASS.offline}`,children:s})}),(0,t.jsx)("div",{className:"col-span-2 min-w-0",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)(l.AliasAvatar,{alias:e.alias,size:20}),a&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 h-2.5 w-2.5 rounded-full border border-[#111128] bg-red-500"})]}),(0,t.jsx)("span",{className:"truncate text-sm font-medium text-white",children:e.alias}),a&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-red-500/15 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-red-300",children:"New"})]})}),(0,t.jsx)("div",{className:"col-span-2 truncate text-xs text-gray-400",title:e.server||"",children:(0,t.jsxs)("span",{className:"truncate",children:[e.agent||"--",(0,t.jsx)("span",{className:"text-gray-700 mx-1.5",children:"·"}),c(e.server)]})}),(0,t.jsx)("div",{className:"col-span-4 truncate text-xs text-gray-500",title:e.task||"",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:"sm:hidden space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)(l.AliasAvatar,{alias:e.alias,size:28}),a&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 h-3 w-3 rounded-full border-2 border-[#111128] bg-red-500"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)("div",{className:"truncate text-sm font-medium text-white",children:e.alias}),a&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-red-500/15 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-red-300",children:"New"})]}),(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 ${o.SESSION_STATUS_CHIP_CLASS[s]||o.SESSION_STATUS_CHIP_CLASS.offline}`,children:s})]}),e.task&&(0,t.jsx)("div",{className:"truncate text-xs text-gray-500",children:e.task})]})]},e.alias)})]}),C&&(0,t.jsx)(n.TaskChatPanel,{alias:C,onClose:()=>_(null)})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98025,e=>{"use strict";e.s(["SESSION_STATUS_CHIP_CLASS",0,{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"},"SESSION_STATUS_TEXT_CLASS",0,{working:"text-green-400",idle:"text-blue-400",blocked:"text-yellow-400",error:"text-red-400",offline:"text-gray-500"},"STATUS_BAR_CLASS",0,{created:"bg-gray-500",delivered:"bg-blue-500",acked:"bg-cyan-500",running:"bg-green-500",replied:"bg-purple-500",closed:"bg-gray-600",failed:"bg-red-500",cancelled:"bg-yellow-500",expired:"bg-orange-500"},"STATUS_CHIP_CLASS",0,{created:"bg-gray-500/10 text-gray-400 border-gray-500/20",delivered:"bg-blue-500/10 text-blue-300 border-blue-500/20",acked:"bg-cyan-500/10 text-cyan-300 border-cyan-500/20",running:"bg-green-500/10 text-green-300 border-green-500/20",replied:"bg-purple-500/10 text-purple-300 border-purple-500/20",closed:"bg-gray-500/10 text-gray-500 border-gray-500/20",failed:"bg-red-500/10 text-red-300 border-red-500/20",cancelled:"bg-yellow-500/10 text-yellow-300 border-yellow-500/20",expired:"bg-orange-500/10 text-orange-300 border-orange-500/20"},"STATUS_DOT_HEX",0,{created:"#9ca3af",delivered:"#60a5fa",acked:"#22d3ee",running:"#4ade80",replied:"#a78bfa",closed:"#6b7280",failed:"#f87171",cancelled:"#facc15",expired:"#fb923c"},"TASK_STATUSES",0,["created","delivered","acked","running","replied","closed","failed","cancelled","expired"]])},3479,59746,e=>{"use strict";function t(e){if(!e)return null;let t=Date.parse(e.includes("T")?e:e.replace(" ","T")+"Z");return Number.isFinite(t)?t:null}function s(e){let s=t(e);if(null===s)return null;let r=Math.floor((Date.now()-s)/1e3);return r<0?"just now":r<60?`${r}s ago`:r<3600?`${Math.floor(r/60)}m ago`:r<86400?`${Math.floor(r/3600)}h ago`:`${Math.floor(r/86400)}d ago`}e.s(["parseHubTime",0,t,"relativeAgo",0,s],59746),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`},"previewContent",0,function(e){return e&&e.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\s+/g," ").trim()||"--"},"timeAgo",0,function(e){return s(e)??"--"}],3479)},46228,e=>{"use strict";var t=e.i(22381);let s=[180,200,220,270,300,330,30,90];function r(e){let t=0;for(let s=0;s<e.length;s++)t=31*t+e.charCodeAt(s)>>>0;let r=s[t%s.length];return{bg:`hsl(${r} 55% 22%)`,ring:`hsl(${r} 60% 45%)`,text:`hsl(${r} 80% 78%)`}}function a(e){return e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"}e.s(["AliasAvatar",0,function({alias:e,size:s=28,className:n=""}){if(/\bgrok\b|grok-build|grok测试员|grok-demo/i.test(e))return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border border-emerald-500/45 bg-emerald-950/70 shrink-0 ${n}`,style:{width:s,height:s,backgroundImage:"url(/vendors/grok.svg)",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"68% 68%"},title:e,"aria-hidden":!0});let i=r(e),l=Math.max(9,Math.round(.42*s));return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${n}`,style:{width:s,height:s,fontSize:l,backgroundColor:i.bg,borderColor:i.ring,color:i.text},title:e,"aria-hidden":!0,children:a(e)})},"aliasAvatarColors",0,r,"aliasInitial",0,a])},76161,e=>{"use strict";var t=e.i(22381),s=e.i(23910),r=e.i(56839);let a={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 r={width:s,height:s},a={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",...r,children:(0,t.jsxs)("g",{...a,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",...r,children:(0,t.jsxs)("g",{...a,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",...r,children:(0,t.jsxs)("g",{...a,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",...r,children:(0,t.jsxs)("g",{...a,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",...r,children:(0,t.jsxs)("g",{...a,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",...r,children:(0,t.jsxs)("g",{...a,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",...r,children:(0,t.jsxs)("g",{...a,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 i({variant:e="generic",title:s,sub:l,cta:o,compact:d=!1}){let c=a[e],x=s??c.title,h=l??c.sub;return(0,t.jsxs)("div",{className:`text-center ${d?"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:d?40:56})}),(0,t.jsx)("h3",{className:`font-medium text-gray-300 ${d?"text-sm":"text-base"}`,children:x}),h&&(0,t.jsx)("p",{className:`text-gray-500 ${d?"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)(r.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 l({children:e}){return(0,t.jsx)("div",{className:"max-w-2xl mx-auto rounded-xl border border-[#2a2a4a] bg-[#111128] shadow-lg shadow-black/20",children:e})}function o({cmd:e}){let[r,a]=(0,s.useState)(!1),n=async()=>{try{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!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":r?"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:r?(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,i,"NodesEmptyState",0,function({hint:e,taskHistoryCount:s=0}){return e?.global_count?(0,t.jsx)(l,{children:(0,t.jsx)(i,{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.`})}):s>0?(0,t.jsx)(l,{children:(0,t.jsx)(i,{variant:"nodes",title:"No agents online",sub:`Every agent in this network is currently offline. ${s.toLocaleString()} task${1===s?"":"s"} in history — they may have finished their work or disconnected.`,cta:{label:"View task history",href:"/tasks"}})}):(0,t.jsx)(l,{children:(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)(o,{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:"→"})]})})]})})}])},59276,e=>{"use strict";var t=e.i(12629),s=e.i(11449);let r=async e=>{let t=await fetch(e);if(401===t.status)throw window.location.assign("/login"),Error("unauthorized");return t.json()},a={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",r,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:s}=(0,t.default)("/api/hub/health",r,a);return{health:e||null,error:s}},"useMessages",0,function(e=100){let{networkId:i}=(0,s.useNetworkId)(),{data:l,error:o,isLoading:d}=(0,t.default)(n(`/api/hub/messages?limit=${e}`,i),r,a);return{messages:l?.messages||[],error:o,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,s.useNetworkId)(),{data:i,error:l,isLoading:o}=(0,t.default)(n("/api/hub/status",e),r,a);return{sessions:i?.sessions||[],hint:i?._hint,error:l,isLoading:o}},"useStats",0,function(){let{networkId:e}=(0,s.useNetworkId)(),{data:i,error:l}=(0,t.default)(n("/api/hub/stats",e),r,a);return{stats:i?.ok?i:null,error:l}},"useTasks",0,function(e){let{networkId:i}=(0,s.useNetworkId)(),l=new URLSearchParams({limit:"100",...e}).toString(),{data:o,error:d,isLoading:c}=(0,t.default)(n(`/api/hub/tasks?${l}`,i),r,a);return{tasks:o?.tasks||[],count:o?.count??0,source:o?.source,error:d,isLoading:c}}])},70732,e=>{"use strict";var t=e.i(22381),s=e.i(23910),r=e.i(3479),a=e.i(59276),n=e.i(43058),i=e.i(76161),l=e.i(46228),o=e.i(98025),d=e.i(38263);function c(e){return e?e.length>12?`${e.slice(0,8)}…`:e:"—"}e.s(["default",0,function(){let e,x,h,u,{sessions:g,isLoading:m}=(0,a.useSessions)(),{health:p}=(0,a.useHealth)(),{hasUnread:y}=(0,d.useChatUnread)(),b=p?.sse_sessions||{},j=e=>(e.network_id?b[`${e.network_id}:${e.alias}`]:void 0)??b[e.alias],[f,v]=(0,s.useState)(""),[w,N]=(0,s.useState)(""),[k,S]=(0,s.useState)("list"),[C,_]=(0,s.useState)(null),[A,T]=(0,s.useState)(!1),$=g.map(e=>({...e,online:!!j(e)})).filter(e=>"online"===f?e.online:"offline"===f?!e.online:!f||f===e.status).filter(e=>!w||e.alias.toLowerCase().includes(w.toLowerCase())||(e.agent||"").toLowerCase().includes(w.toLowerCase())).sort((e,t)=>!!t.online-!!e.online||("working"===t.status)-("working"===e.status)),I=g.filter(e=>j(e)).length;return(0,t.jsxs)("div",{className:"min-h-screen max-w-full overflow-x-hidden bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-4 sm:mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 min-w-0 flex-1",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 shrink-0",children:[I," 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 shrink-0",children:[g.length," total"]})]}),g.length>0&&(0,t.jsxs)("button",{type:"button",onClick:()=>T(e=>!e),"aria-label":A?"Close search":"Open search","aria-pressed":A,title:A?"Close search":"Search nodes",className:`relative shrink-0 inline-flex items-center justify-center rounded-full border w-9 h-9 transition-colors ${A||w?"border-cyan-500/40 bg-cyan-500/10 text-cyan-300":"border-[#2a2a4a] bg-[#111128] text-gray-400 hover:text-gray-200 hover:border-[#3a3a5a]"}`,children:[(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),w&&!A&&(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute -top-0.5 -right-0.5 w-2 h-2 rounded-full bg-cyan-400 ring-2 ring-[#0a0a1a]"})]})]}),g.length>0&&(A||w)&&(0,t.jsxs)("div",{className:"mb-3 sm:mb-4 flex items-center gap-2",children:[(0,t.jsx)("input",{type:"text",value:w,onChange:e=>N(e.target.value),onKeyDown:e=>{"Escape"===e.key&&(N(""),T(!1))},placeholder:"Search nodes…",autoFocus:A,className:"flex-1 bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-base sm:text-sm text-white placeholder-gray-600 focus:border-cyan-500/40 focus:outline-none"}),(w||A)&&(0,t.jsx)("button",{type:"button",onClick:()=>{N(""),T(!1)},className:"shrink-0 text-xs text-gray-500 hover:text-gray-300 px-2 py-2","aria-label":"Clear and close search",children:"Cancel"})]}),g.length>0&&(e=$.filter(e=>e.online&&"working"===e.status).length,x=$.filter(e=>e.online&&"idle"===e.status).length,h=$.filter(e=>!e.online).length,u=$.length||1,(0,t.jsxs)("div",{className:"mb-4 sm: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/u*100}%`}}),x>0&&(0,t.jsx)("div",{className:"bg-cyan-500",style:{width:`${x/u*100}%`}}),h>0&&(0,t.jsx)("div",{className:"bg-gray-600",style:{width:`${h/u*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"]}),x>0&&(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-cyan-500 mr-1"}),x," idle"]}),h>0&&(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-gray-600 mr-1"}),h," offline"]})]})]})),g.length>0&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-3 mb-4 sm:mb-6",children:[(0,t.jsxs)("select",{value:f,onChange:e=>v(e.target.value),className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-base sm: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:"hidden sm:flex ml-auto rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 text-sm",children:["list","grid"].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>S(e),className:`rounded-md px-3 py-1.5 transition-colors ${k===e?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"list"===e?"List":"Grid"},e))})]}),m?(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===$.length?0===g.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"===k?(0,t.jsx)("div",{className:"grid min-w-0 grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:$.map(e=>{let s=e.online?e.status:"offline",a="number"==typeof e.progress?e.progress:0,n=y(e.alias);return(0,t.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>_(e.alias),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),_(e.alias))},className:`relative min-w-0 max-w-full overflow-hidden rounded-xl border border-[#2a2a4a] bg-[#111128] p-4 transition-colors hover:border-cyan-500/40 cursor-pointer ${!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.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)(l.AliasAvatar,{alias:e.alias,size:36}),n&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 h-3 w-3 rounded-full border-2 border-[#111128] bg-red-500"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",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}),n&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-red-500/15 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-red-300",children:"New"}),(0,t.jsx)("span",{className:`shrink-0 rounded-md border px-2 py-0.5 text-[10px] uppercase tracking-wide ${o.SESSION_STATUS_CHIP_CLASS[s]||o.SESSION_STATUS_CHIP_CLASS.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:"·"}),(0,t.jsx)("span",{title:e.server||"",children:c(e.server)})]})]}),(0,t.jsx)("span",{className:"hidden shrink-0 rounded-lg border border-cyan-500/15 bg-cyan-500/5 px-2 py-1 text-[10px] text-cyan-300/70 sm:inline",children:"Tap to chat"})]}),(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"})]}),a>0&&a<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:`${a}%`}})})]},e.alias)})}):(0,t.jsxs)("div",{className:"space-y-1 sm:space-y-2",children:[(0,t.jsxs)("div",{className:"hidden sm:grid sm:grid-cols-10 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 · Server"}),(0,t.jsx)("div",{className:"col-span-4",children:"Current Task"}),(0,t.jsx)("div",{className:"col-span-1",children:"Updated"})]}),$.map(e=>{let s=e.online?e.status:"offline",a=y(e.alias);return(0,t.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>_(e.alias),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),_(e.alias))},className:`rounded-lg border border-[#2a2a4a] bg-[#111128] px-3 py-2 sm:px-4 sm:py-3 transition-colors hover:border-cyan-500/40 cursor-pointer ${!e.online?"opacity-50":""}`,children:[(0,t.jsxs)("div",{className:"hidden sm:grid sm:grid-cols-10 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 ${o.SESSION_STATUS_CHIP_CLASS[s]||o.SESSION_STATUS_CHIP_CLASS.offline}`,children:s})}),(0,t.jsx)("div",{className:"col-span-2 min-w-0",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)(l.AliasAvatar,{alias:e.alias,size:20}),a&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 h-2.5 w-2.5 rounded-full border border-[#111128] bg-red-500"})]}),(0,t.jsx)("span",{className:"truncate text-sm font-medium text-white",children:e.alias}),a&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-red-500/15 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-red-300",children:"New"})]})}),(0,t.jsx)("div",{className:"col-span-2 truncate text-xs text-gray-400",title:e.server||"",children:(0,t.jsxs)("span",{className:"truncate",children:[e.agent||"--",(0,t.jsx)("span",{className:"text-gray-700 mx-1.5",children:"·"}),c(e.server)]})}),(0,t.jsx)("div",{className:"col-span-4 truncate text-xs text-gray-500",title:e.task||"",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:"sm:hidden space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)(l.AliasAvatar,{alias:e.alias,size:28}),a&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 h-3 w-3 rounded-full border-2 border-[#111128] bg-red-500"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)("div",{className:"truncate text-sm font-medium text-white",children:e.alias}),a&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-red-500/15 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-red-300",children:"New"})]}),(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 ${o.SESSION_STATUS_CHIP_CLASS[s]||o.SESSION_STATUS_CHIP_CLASS.offline}`,children:s})]}),e.task&&(0,t.jsx)("div",{className:"truncate text-xs text-gray-500",children:e.task})]})]},e.alias)})]}),C&&(0,t.jsx)(n.TaskChatPanel,{alias:C,onClose:()=>_(null)})]})}])}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":475,"timestamp":2083214275457,"id":4,"parentId":1,"tags":{},"startTime":1780891186522,"traceId":"655ede3b179932df"},{"name":"load-custom-routes","duration":772,"timestamp":2083214277999,"id":5,"parentId":1,"tags":{},"startTime":1780891186524,"traceId":"655ede3b179932df"},{"name":"create-dist-dir","duration":71527,"timestamp":2083214279017,"id":6,"parentId":1,"tags":{},"startTime":1780891186525,"traceId":"655ede3b179932df"},{"name":"clean","duration":578406,"timestamp":2083214358230,"id":7,"parentId":1,"tags":{},"startTime":1780891186605,"traceId":"655ede3b179932df"},{"name":"discover-routes","duration":148525,"timestamp":2083216603799,"id":8,"parentId":1,"tags":{},"startTime":1780891188850,"traceId":"655ede3b179932df"},{"name":"create-root-mapping","duration":195,"timestamp":2083216752424,"id":9,"parentId":1,"tags":{},"startTime":1780891188999,"traceId":"655ede3b179932df"},{"name":"generate-route-types","duration":660261,"timestamp":2083216786736,"id":10,"parentId":1,"tags":{},"startTime":1780891189033,"traceId":"655ede3b179932df"},{"name":"public-dir-conflict-check","duration":250,"timestamp":2083217447227,"id":11,"parentId":1,"tags":{},"startTime":1780891189694,"traceId":"655ede3b179932df"},{"name":"generate-routes-manifest","duration":213605,"timestamp":2083217447696,"id":12,"parentId":1,"tags":{},"startTime":1780891189694,"traceId":"655ede3b179932df"},{"name":"run-turbopack","duration":247767310,"timestamp":2083217737458,"id":14,"parentId":1,"tags":{},"startTime":1780891189984,"traceId":"655ede3b179932df"},{"name":"turbopack-build-events","duration":119,"timestamp":2083221886197,"id":15,"parentId":1,"tags":{},"startTime":1780891194132,"traceId":"655ede3b179932df"},{"name":"run-typescript","duration":278540162,"timestamp":2083465925592,"id":16,"parentId":1,"tags":{},"startTime":1780891438172,"traceId":"655ede3b179932df"},{"name":"generate-required-server-files","duration":68571,"timestamp":2083744480119,"id":18,"parentId":1,"tags":{},"startTime":1780891716726,"traceId":"655ede3b179932df"},{"name":"check-static-error-page","duration":224539,"timestamp":2083749598720,"id":20,"parentId":19,"tags":{},"startTime":1780891721845,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":11414133,"timestamp":2083749882796,"id":71,"parentId":28,"tags":{},"startTime":1780891722129,"traceId":"655ede3b179932df"},{"name":"check-page","duration":11591110,"timestamp":2083749709565,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1780891721956,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":12096479,"timestamp":2083749886632,"id":73,"parentId":30,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":12273415,"timestamp":2083749709800,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1780891721956,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":12398202,"timestamp":2083749882136,"id":67,"parentId":22,"tags":{},"startTime":1780891722128,"traceId":"655ede3b179932df"},{"name":"check-page","duration":12627881,"timestamp":2083749652560,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1780891721899,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":12400083,"timestamp":2083749886705,"id":74,"parentId":32,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":12541079,"timestamp":2083749745778,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1780891721992,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":12646520,"timestamp":2083749886954,"id":76,"parentId":34,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":12787251,"timestamp":2083749746313,"id":34,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1780891721993,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":12961588,"timestamp":2083749886995,"id":77,"parentId":35,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":13102234,"timestamp":2083749746437,"id":35,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1780891721993,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":13025069,"timestamp":2083749886408,"id":72,"parentId":29,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":13201926,"timestamp":2083749709661,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1780891721956,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":13149669,"timestamp":2083749887030,"id":78,"parentId":36,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":13289753,"timestamp":2083749747035,"id":36,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1780891721993,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":13264609,"timestamp":2083749887060,"id":79,"parentId":37,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":13404497,"timestamp":2083749747274,"id":37,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1780891721994,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":13481445,"timestamp":2083749887073,"id":80,"parentId":38,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":13621213,"timestamp":2083749747405,"id":38,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1780891721994,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":13744170,"timestamp":2083749887088,"id":81,"parentId":39,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":13883834,"timestamp":2083749747508,"id":39,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1780891721994,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":14067449,"timestamp":2083749887118,"id":83,"parentId":43,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":14174794,"timestamp":2083749779855,"id":43,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1780891722026,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":14067991,"timestamp":2083749887103,"id":82,"parentId":41,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":14176030,"timestamp":2083749779136,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1780891722025,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":14316671,"timestamp":2083749887133,"id":84,"parentId":44,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":14423840,"timestamp":2083749780051,"id":44,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1780891722026,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":14478324,"timestamp":2083749887146,"id":85,"parentId":45,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":14585366,"timestamp":2083749780184,"id":45,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1780891722026,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":14599954,"timestamp":2083749887157,"id":86,"parentId":46,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":14707035,"timestamp":2083749780314,"id":46,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1780891722027,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":14640446,"timestamp":2083749887170,"id":87,"parentId":47,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":14747291,"timestamp":2083749780421,"id":47,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1780891722027,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":14722024,"timestamp":2083749887183,"id":88,"parentId":48,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":14828741,"timestamp":2083749780555,"id":48,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1780891722027,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":14782952,"timestamp":2083749887193,"id":89,"parentId":49,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":14889566,"timestamp":2083749780675,"id":49,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1780891722027,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":14994219,"timestamp":2083749887220,"id":91,"parentId":51,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":15100642,"timestamp":2083749780885,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1780891722027,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":15148131,"timestamp":2083749887207,"id":90,"parentId":50,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":15254672,"timestamp":2083749780767,"id":50,"parentId":19,"tags":{"page":"/api/hub/upload"},"startTime":1780891722027,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":15390396,"timestamp":2083749887231,"id":92,"parentId":54,"tags":{},"startTime":1780891722134,"traceId":"655ede3b179932df"},{"name":"check-page","duration":15497838,"timestamp":2083749781748,"id":54,"parentId":19,"tags":{"page":"/manifest.webmanifest"},"startTime":1780891722028,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":15547518,"timestamp":2083749991688,"id":93,"parentId":24,"tags":{},"startTime":1780891722238,"traceId":"655ede3b179932df"},{"name":"check-page","duration":15886045,"timestamp":2083749653253,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1780891721900,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":15656197,"timestamp":2083750051350,"id":94,"parentId":31,"tags":{},"startTime":1780891722298,"traceId":"655ede3b179932df"},{"name":"check-page","duration":15997733,"timestamp":2083749709901,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1780891721956,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":15653303,"timestamp":2083750249858,"id":96,"parentId":42,"tags":{},"startTime":1780891722496,"traceId":"655ede3b179932df"},{"name":"check-page","duration":16123815,"timestamp":2083749779430,"id":42,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1780891722026,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":15836946,"timestamp":2083750147954,"id":95,"parentId":40,"tags":{},"startTime":1780891722394,"traceId":"655ede3b179932df"},{"name":"check-page","duration":16237393,"timestamp":2083749747602,"id":40,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1780891721994,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":17369777,"timestamp":2083749886878,"id":75,"parentId":33,"tags":{},"startTime":1780891722133,"traceId":"655ede3b179932df"},{"name":"check-page","duration":17510610,"timestamp":2083749746129,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1780891721992,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":17526050,"timestamp":2083749864315,"id":66,"parentId":21,"tags":{},"startTime":1780891722111,"traceId":"655ede3b179932df"},{"name":"check-page","duration":17749977,"timestamp":2083749640475,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1780891721887,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":16841171,"timestamp":2083750573140,"id":100,"parentId":55,"tags":{},"startTime":1780891722819,"traceId":"655ede3b179932df"},{"name":"check-page","duration":17610747,"timestamp":2083749803643,"id":55,"parentId":19,"tags":{"page":"/messages"},"startTime":1780891722050,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":17470345,"timestamp":2083750573018,"id":97,"parentId":23,"tags":{},"startTime":1780891722819,"traceId":"655ede3b179932df"},{"name":"check-page","duration":18390498,"timestamp":2083749652943,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1780891721899,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":17677123,"timestamp":2083750573155,"id":101,"parentId":56,"tags":{},"startTime":1780891722819,"traceId":"655ede3b179932df"},{"name":"check-page","duration":18446358,"timestamp":2083749803996,"id":56,"parentId":19,"tags":{"page":"/node"},"startTime":1780891722050,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":18477887,"timestamp":2083749882682,"id":70,"parentId":27,"tags":{},"startTime":1780891722129,"traceId":"655ede3b179932df"},{"name":"check-page","duration":18651206,"timestamp":2083749709445,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1780891721956,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":17908804,"timestamp":2083750573327,"id":103,"parentId":59,"tags":{},"startTime":1780891722820,"traceId":"655ede3b179932df"},{"name":"check-page","duration":18669673,"timestamp":2083749812561,"id":59,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1780891722059,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":17921035,"timestamp":2083750573170,"id":102,"parentId":57,"tags":{},"startTime":1780891722819,"traceId":"655ede3b179932df"},{"name":"check-page","duration":18689991,"timestamp":2083749804311,"id":57,"parentId":19,"tags":{"page":"/nodes"},"startTime":1780891722051,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":17984354,"timestamp":2083750573086,"id":98,"parentId":52,"tags":{},"startTime":1780891722819,"traceId":"655ede3b179932df"},{"name":"check-page","duration":18776153,"timestamp":2083749781375,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1780891722028,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":18035157,"timestamp":2083750573386,"id":106,"parentId":63,"tags":{},"startTime":1780891722820,"traceId":"655ede3b179932df"},{"name":"check-page","duration":18786145,"timestamp":2083749822485,"id":63,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1780891722069,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":18189726,"timestamp":2083750573412,"id":108,"parentId":65,"tags":{},"startTime":1780891722820,"traceId":"655ede3b179932df"},{"name":"check-page","duration":18940321,"timestamp":2083749822893,"id":65,"parentId":19,"tags":{"page":"/tasks"},"startTime":1780891722069,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":18190047,"timestamp":2083750573371,"id":105,"parentId":61,"tags":{},"startTime":1780891722820,"traceId":"655ede3b179932df"},{"name":"check-page","duration":18950443,"timestamp":2083749813026,"id":61,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1780891722059,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":18402099,"timestamp":2083750573397,"id":107,"parentId":64,"tags":{},"startTime":1780891722820,"traceId":"655ede3b179932df"},{"name":"check-page","duration":19152875,"timestamp":2083749822714,"id":64,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1780891722069,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":18402289,"timestamp":2083750573429,"id":109,"parentId":62,"tags":{},"startTime":1780891722820,"traceId":"655ede3b179932df"},{"name":"check-page","duration":19162475,"timestamp":2083749813273,"id":62,"parentId":19,"tags":{"page":"/settings"},"startTime":1780891722060,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":18202185,"timestamp":2083750821577,"id":110,"parentId":58,"tags":{},"startTime":1780891723068,"traceId":"655ede3b179932df"},{"name":"check-page","duration":19215595,"timestamp":2083749808252,"id":58,"parentId":19,"tags":{"page":"/"},"startTime":1780891722055,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":19445868,"timestamp":2083749882405,"id":68,"parentId":25,"tags":{},"startTime":1780891722129,"traceId":"655ede3b179932df"},{"name":"check-page","duration":19619347,"timestamp":2083749709038,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1780891721955,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":19743971,"timestamp":2083749882552,"id":69,"parentId":26,"tags":{},"startTime":1780891722129,"traceId":"655ede3b179932df"},{"name":"check-page","duration":19917306,"timestamp":2083749709320,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1780891721956,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":19286579,"timestamp":2083750573128,"id":99,"parentId":53,"tags":{},"startTime":1780891722819,"traceId":"655ede3b179932df"}]
2
- [{"name":"check-page","duration":20078534,"timestamp":2083749781560,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1780891722028,"traceId":"655ede3b179932df"},{"name":"is-page-static","duration":19649962,"timestamp":2083750573355,"id":104,"parentId":60,"tags":{},"startTime":1780891722820,"traceId":"655ede3b179932df"},{"name":"check-page","duration":20410550,"timestamp":2083749812850,"id":60,"parentId":19,"tags":{"page":"/servers"},"startTime":1780891722059,"traceId":"655ede3b179932df"},{"name":"static-check","duration":20625971,"timestamp":2083749597490,"id":19,"parentId":1,"tags":{},"startTime":1780891721844,"traceId":"655ede3b179932df"},{"name":"write-routes-manifest","duration":3648,"timestamp":2083770307261,"id":112,"parentId":1,"tags":{},"startTime":1780891742554,"traceId":"655ede3b179932df"},{"name":"load-dotenv","duration":86,"timestamp":2083770435725,"id":115,"parentId":114,"tags":{},"startTime":1780891742682,"traceId":"655ede3b179932df"},{"name":"run-export-path-map","duration":10633,"timestamp":2083770469992,"id":116,"parentId":114,"tags":{},"startTime":1780891742721,"traceId":"655ede3b179932df"},{"name":"next-export","duration":16501592,"timestamp":2083770424627,"id":114,"parentId":1,"tags":{},"startTime":1780891742671,"traceId":"655ede3b179932df"},{"name":"move-exported-app-not-found-","duration":36586,"timestamp":2083786957137,"id":117,"parentId":113,"tags":{},"startTime":1780891759203,"traceId":"655ede3b179932df"},{"name":"move-exported-app-global-error-","duration":6152,"timestamp":2083786993932,"id":118,"parentId":113,"tags":{},"startTime":1780891759240,"traceId":"655ede3b179932df"},{"name":"static-generation","duration":16673653,"timestamp":2083770367859,"id":113,"parentId":1,"tags":{},"startTime":1780891742614,"traceId":"655ede3b179932df"},{"name":"write-routes-manifest","duration":4262,"timestamp":2083787041962,"id":119,"parentId":1,"tags":{},"startTime":1780891759288,"traceId":"655ede3b179932df"},{"name":"print-tree-view","duration":72426,"timestamp":2083787449636,"id":120,"parentId":1,"tags":{},"startTime":1780891759696,"traceId":"655ede3b179932df"},{"name":"write-route-bundle-stats","duration":248700,"timestamp":2083787522130,"id":121,"parentId":1,"tags":{},"startTime":1780891759768,"traceId":"655ede3b179932df"},{"name":"telemetry-flush","duration":207,"timestamp":2083787770898,"id":122,"parentId":1,"tags":{},"startTime":1780891760017,"traceId":"655ede3b179932df"},{"name":"next-build","duration":574219617,"timestamp":2083213551532,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1780891185798,"traceId":"655ede3b179932df"}]
1
+ [{"name":"generate-buildid","duration":401,"timestamp":2086467552554,"id":4,"parentId":1,"tags":{},"startTime":1780894439799,"traceId":"8ff6404efde47814"},{"name":"load-custom-routes","duration":11691,"timestamp":2086467553211,"id":5,"parentId":1,"tags":{},"startTime":1780894439799,"traceId":"8ff6404efde47814"},{"name":"create-dist-dir","duration":5926,"timestamp":2086467565153,"id":6,"parentId":1,"tags":{},"startTime":1780894439811,"traceId":"8ff6404efde47814"},{"name":"clean","duration":430912,"timestamp":2086467576529,"id":7,"parentId":1,"tags":{},"startTime":1780894439823,"traceId":"8ff6404efde47814"},{"name":"discover-routes","duration":200497,"timestamp":2086470154463,"id":8,"parentId":1,"tags":{},"startTime":1780894442401,"traceId":"8ff6404efde47814"},{"name":"create-root-mapping","duration":247,"timestamp":2086470355096,"id":9,"parentId":1,"tags":{},"startTime":1780894442601,"traceId":"8ff6404efde47814"},{"name":"generate-route-types","duration":295018,"timestamp":2086470395084,"id":10,"parentId":1,"tags":{},"startTime":1780894442641,"traceId":"8ff6404efde47814"},{"name":"public-dir-conflict-check","duration":161,"timestamp":2086470690254,"id":11,"parentId":1,"tags":{},"startTime":1780894442937,"traceId":"8ff6404efde47814"},{"name":"generate-routes-manifest","duration":149955,"timestamp":2086470690621,"id":12,"parentId":1,"tags":{},"startTime":1780894442937,"traceId":"8ff6404efde47814"},{"name":"run-turbopack","duration":326490727,"timestamp":2086470966240,"id":14,"parentId":1,"tags":{},"startTime":1780894443213,"traceId":"8ff6404efde47814"},{"name":"turbopack-build-events","duration":120,"timestamp":2086475648796,"id":15,"parentId":1,"tags":{},"startTime":1780894447895,"traceId":"8ff6404efde47814"},{"name":"run-typescript","duration":289986292,"timestamp":2086798583251,"id":16,"parentId":1,"tags":{},"startTime":1780894770830,"traceId":"8ff6404efde47814"},{"name":"generate-required-server-files","duration":78183,"timestamp":2087088570491,"id":18,"parentId":1,"tags":{},"startTime":1780895060817,"traceId":"8ff6404efde47814"},{"name":"check-static-error-page","duration":888562,"timestamp":2087093790029,"id":20,"parentId":19,"tags":{},"startTime":1780895066036,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":14171257,"timestamp":2087094686527,"id":67,"parentId":22,"tags":{},"startTime":1780895066933,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":14872711,"timestamp":2087093985234,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1780895066232,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":17648765,"timestamp":2087094686791,"id":69,"parentId":26,"tags":{},"startTime":1780895066933,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":18127548,"timestamp":2087094208117,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1780895066454,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":18023846,"timestamp":2087094763913,"id":74,"parentId":32,"tags":{},"startTime":1780895067010,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":18482698,"timestamp":2087094305146,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1780895066551,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":18615974,"timestamp":2087094767313,"id":75,"parentId":33,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":19077901,"timestamp":2087094305480,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1780895066552,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":18900760,"timestamp":2087094763813,"id":73,"parentId":30,"tags":{},"startTime":1780895067010,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":19455982,"timestamp":2087094208690,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1780895066455,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":19114914,"timestamp":2087094767436,"id":77,"parentId":35,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":19576655,"timestamp":2087094305788,"id":35,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1780895066552,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":19167830,"timestamp":2087094767407,"id":76,"parentId":34,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":19629677,"timestamp":2087094305656,"id":34,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1780895066552,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":19475252,"timestamp":2087094767454,"id":78,"parentId":36,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":19910522,"timestamp":2087094332273,"id":36,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1780895066579,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":19508362,"timestamp":2087094767486,"id":79,"parentId":37,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":19943300,"timestamp":2087094332644,"id":37,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1780895066579,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":19856265,"timestamp":2087094767505,"id":80,"parentId":38,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":20291068,"timestamp":2087094332782,"id":38,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1780895066579,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":19889529,"timestamp":2087094767516,"id":81,"parentId":39,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":20324247,"timestamp":2087094332891,"id":39,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1780895066579,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":20524077,"timestamp":2087094767548,"id":83,"parentId":43,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":20828018,"timestamp":2087094463693,"id":43,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1780895066710,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":20885886,"timestamp":2087094767563,"id":84,"parentId":44,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":21189659,"timestamp":2087094463879,"id":44,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1780895066710,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":20886310,"timestamp":2087094767531,"id":82,"parentId":41,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":21266763,"timestamp":2087094387131,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1780895066633,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":21308400,"timestamp":2087094767575,"id":85,"parentId":45,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":21612080,"timestamp":2087094463992,"id":45,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1780895066710,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":21308658,"timestamp":2087094767590,"id":86,"parentId":46,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":21612141,"timestamp":2087094464141,"id":46,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1780895066710,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":21475955,"timestamp":2087094767616,"id":88,"parentId":48,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":21779351,"timestamp":2087094464327,"id":48,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1780895066711,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":21476255,"timestamp":2087094767605,"id":87,"parentId":47,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":21779672,"timestamp":2087094464227,"id":47,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1780895066710,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":21729715,"timestamp":2087094767645,"id":90,"parentId":50,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":22032980,"timestamp":2087094464463,"id":50,"parentId":19,"tags":{"page":"/api/hub/upload"},"startTime":1780895066711,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":21945195,"timestamp":2087094767631,"id":89,"parentId":49,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":22248508,"timestamp":2087094464396,"id":49,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1780895066711,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":22057715,"timestamp":2087094767660,"id":91,"parentId":51,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":22360925,"timestamp":2087094464538,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1780895066711,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":22820149,"timestamp":2087094687179,"id":71,"parentId":28,"tags":{},"startTime":1780895066933,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":23299030,"timestamp":2087094208416,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1780895066455,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":22865074,"timestamp":2087094919653,"id":93,"parentId":24,"tags":{},"startTime":1780895067166,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":23767921,"timestamp":2087094016904,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1780895066263,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":23099051,"timestamp":2087094686067,"id":66,"parentId":21,"tags":{},"startTime":1780895066932,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":23926873,"timestamp":2087093858308,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1780895066105,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":23180352,"timestamp":2087094767671,"id":92,"parentId":54,"tags":{},"startTime":1780895067014,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":23487763,"timestamp":2087094465438,"id":54,"parentId":19,"tags":{"page":"/manifest.webmanifest"},"startTime":1780895066712,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":23283011,"timestamp":2087094763516,"id":72,"parentId":29,"tags":{},"startTime":1780895067010,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":23838078,"timestamp":2087094208532,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1780895066455,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":23457904,"timestamp":2087094686673,"id":68,"parentId":25,"tags":{},"startTime":1780895066933,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":23936889,"timestamp":2087094207771,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1780895066454,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":23740254,"timestamp":2087094920896,"id":94,"parentId":31,"tags":{},"startTime":1780895067167,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":24452436,"timestamp":2087094208810,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1780895066455,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":23711647,"timestamp":2087094968542,"id":95,"parentId":40,"tags":{},"startTime":1780895067215,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":24354951,"timestamp":2087094333018,"id":40,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1780895066579,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":24813338,"timestamp":2087094686910,"id":70,"parentId":27,"tags":{},"startTime":1780895066933,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":25292060,"timestamp":2087094208281,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1780895066455,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":24742998,"timestamp":2087095055954,"id":96,"parentId":42,"tags":{},"startTime":1780895067302,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":25340720,"timestamp":2087094458345,"id":42,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1780895066705,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":24467415,"timestamp":2087095764993,"id":103,"parentId":59,"tags":{},"startTime":1780895068011,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":25630225,"timestamp":2087094602267,"id":59,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1780895066849,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":24528211,"timestamp":2087095764711,"id":97,"parentId":23,"tags":{},"startTime":1780895068011,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":26358306,"timestamp":2087093985740,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1780895066232,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":24657879,"timestamp":2087095786454,"id":104,"parentId":60,"tags":{},"startTime":1780895068033,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":25841733,"timestamp":2087094602683,"id":60,"parentId":19,"tags":{"page":"/servers"},"startTime":1780895066849,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":24861931,"timestamp":2087095786496,"id":105,"parentId":61,"tags":{},"startTime":1780895068033,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":26045649,"timestamp":2087094602869,"id":61,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1780895066849,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":24949213,"timestamp":2087095764770,"id":98,"parentId":52,"tags":{},"startTime":1780895068011,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":26249130,"timestamp":2087094464955,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1780895066711,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":25049641,"timestamp":2087095786513,"id":106,"parentId":63,"tags":{},"startTime":1780895068033,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":26158674,"timestamp":2087094677585,"id":63,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1780895066924,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":25316675,"timestamp":2087095764790,"id":99,"parentId":53,"tags":{},"startTime":1780895068011,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":26616333,"timestamp":2087094465218,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1780895066711,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":25295105,"timestamp":2087095786553,"id":109,"parentId":62,"tags":{},"startTime":1780895068033,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":26478534,"timestamp":2087094603154,"id":62,"parentId":19,"tags":{"page":"/settings"},"startTime":1780895066849,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":25295226,"timestamp":2087095786537,"id":108,"parentId":65,"tags":{},"startTime":1780895068033,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":26403586,"timestamp":2087094678202,"id":65,"parentId":19,"tags":{"page":"/tasks"},"startTime":1780895066924,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":25518163,"timestamp":2087095786524,"id":107,"parentId":64,"tags":{},"startTime":1780895068033,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":26626836,"timestamp":2087094677951,"id":64,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1780895066924,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":25540102,"timestamp":2087095764816,"id":101,"parentId":56,"tags":{},"startTime":1780895068011,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":26747494,"timestamp":2087094557480,"id":56,"parentId":19,"tags":{"page":"/node"},"startTime":1780895066804,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":25574026,"timestamp":2087095764802,"id":100,"parentId":55,"tags":{},"startTime":1780895068011,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":26873356,"timestamp":2087094465557,"id":55,"parentId":19,"tags":{"page":"/messages"},"startTime":1780895066712,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":25295446,"timestamp":2087096181635,"id":110,"parentId":58,"tags":{},"startTime":1780895068428,"traceId":"8ff6404efde47814"}]
2
+ [{"name":"check-page","duration":26901709,"timestamp":2087094575755,"id":58,"parentId":19,"tags":{"page":"/"},"startTime":1780895066822,"traceId":"8ff6404efde47814"},{"name":"is-page-static","duration":26111568,"timestamp":2087095764831,"id":102,"parentId":57,"tags":{},"startTime":1780895068011,"traceId":"8ff6404efde47814"},{"name":"check-page","duration":27318512,"timestamp":2087094557974,"id":57,"parentId":19,"tags":{"page":"/nodes"},"startTime":1780895066804,"traceId":"8ff6404efde47814"},{"name":"static-check","duration":28087700,"timestamp":2087093788840,"id":19,"parentId":1,"tags":{},"startTime":1780895066035,"traceId":"8ff6404efde47814"},{"name":"write-routes-manifest","duration":6254,"timestamp":2087122024981,"id":112,"parentId":1,"tags":{},"startTime":1780895094271,"traceId":"8ff6404efde47814"},{"name":"load-dotenv","duration":93,"timestamp":2087122269669,"id":115,"parentId":114,"tags":{},"startTime":1780895094516,"traceId":"8ff6404efde47814"},{"name":"run-export-path-map","duration":920,"timestamp":2087122380729,"id":116,"parentId":114,"tags":{},"startTime":1780895094627,"traceId":"8ff6404efde47814"},{"name":"next-export","duration":13741150,"timestamp":2087122252845,"id":114,"parentId":1,"tags":{},"startTime":1780895094499,"traceId":"8ff6404efde47814"},{"name":"move-exported-app-not-found-","duration":7962,"timestamp":2087136053162,"id":117,"parentId":113,"tags":{},"startTime":1780895108299,"traceId":"8ff6404efde47814"},{"name":"move-exported-app-global-error-","duration":926,"timestamp":2087136071069,"id":118,"parentId":113,"tags":{},"startTime":1780895108317,"traceId":"8ff6404efde47814"},{"name":"static-generation","duration":14011759,"timestamp":2087122101902,"id":113,"parentId":1,"tags":{},"startTime":1780895094348,"traceId":"8ff6404efde47814"},{"name":"write-routes-manifest","duration":7591,"timestamp":2087136127297,"id":119,"parentId":1,"tags":{},"startTime":1780895108374,"traceId":"8ff6404efde47814"},{"name":"print-tree-view","duration":8947,"timestamp":2087136375618,"id":120,"parentId":1,"tags":{},"startTime":1780895108622,"traceId":"8ff6404efde47814"},{"name":"write-route-bundle-stats","duration":297197,"timestamp":2087136384619,"id":121,"parentId":1,"tags":{},"startTime":1780895108631,"traceId":"8ff6404efde47814"},{"name":"telemetry-flush","duration":196,"timestamp":2087136681869,"id":122,"parentId":1,"tags":{},"startTime":1780895108928,"traceId":"8ff6404efde47814"},{"name":"next-build","duration":669723127,"timestamp":2086466958975,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1780894439205,"traceId":"8ff6404efde47814"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":247767310,"timestamp":2083217737458,"id":14,"parentId":1,"tags":{},"startTime":1780891189984,"traceId":"655ede3b179932df"},{"name":"turbopack-build-events","duration":119,"timestamp":2083221886197,"id":15,"parentId":1,"tags":{},"startTime":1780891194132,"traceId":"655ede3b179932df"},{"name":"run-typescript","duration":278540162,"timestamp":2083465925592,"id":16,"parentId":1,"tags":{},"startTime":1780891438172,"traceId":"655ede3b179932df"},{"name":"static-check","duration":20625971,"timestamp":2083749597490,"id":19,"parentId":1,"tags":{},"startTime":1780891721844,"traceId":"655ede3b179932df"},{"name":"static-generation","duration":16673653,"timestamp":2083770367859,"id":113,"parentId":1,"tags":{},"startTime":1780891742614,"traceId":"655ede3b179932df"},{"name":"telemetry-flush","duration":207,"timestamp":2083787770898,"id":122,"parentId":1,"tags":{},"startTime":1780891760017,"traceId":"655ede3b179932df"},{"name":"next-build","duration":574219617,"timestamp":2083213551532,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1780891185798,"traceId":"655ede3b179932df"}]
1
+ [{"name":"run-turbopack","duration":326490727,"timestamp":2086470966240,"id":14,"parentId":1,"tags":{},"startTime":1780894443213,"traceId":"8ff6404efde47814"},{"name":"turbopack-build-events","duration":120,"timestamp":2086475648796,"id":15,"parentId":1,"tags":{},"startTime":1780894447895,"traceId":"8ff6404efde47814"},{"name":"run-typescript","duration":289986292,"timestamp":2086798583251,"id":16,"parentId":1,"tags":{},"startTime":1780894770830,"traceId":"8ff6404efde47814"},{"name":"static-check","duration":28087700,"timestamp":2087093788840,"id":19,"parentId":1,"tags":{},"startTime":1780895066035,"traceId":"8ff6404efde47814"},{"name":"static-generation","duration":14011759,"timestamp":2087122101902,"id":113,"parentId":1,"tags":{},"startTime":1780895094348,"traceId":"8ff6404efde47814"},{"name":"telemetry-flush","duration":196,"timestamp":2087136681869,"id":122,"parentId":1,"tags":{},"startTime":1780895108928,"traceId":"8ff6404efde47814"},{"name":"next-build","duration":669723127,"timestamp":2086466958975,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1780894439205,"traceId":"8ff6404efde47814"}]