@sleep2agi/agent-network-dashboard 0.5.1-preview.91 → 0.5.1-preview.93

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 (141) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/diagnostics/route-bundle-stats.json +4 -4
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/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.html +1 -1
  13. package/.next/server/app/_not-found.rsc +1 -1
  14. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  20. package/.next/server/app/admin.html +1 -1
  21. package/.next/server/app/admin.rsc +1 -1
  22. package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
  23. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  24. package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
  25. package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
  26. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
  27. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  28. package/.next/server/app/index.html +2 -2
  29. package/.next/server/app/index.rsc +2 -2
  30. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  31. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  32. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  33. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  34. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  35. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/login.html +2 -2
  37. package/.next/server/app/login.rsc +2 -2
  38. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  39. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  40. package/.next/server/app/login.segments/_index.segment.rsc +1 -1
  41. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  42. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  43. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  44. package/.next/server/app/logs.html +1 -1
  45. package/.next/server/app/logs.rsc +1 -1
  46. package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
  47. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  48. package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
  49. package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
  50. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  51. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  52. package/.next/server/app/messages.html +1 -1
  53. package/.next/server/app/messages.rsc +1 -1
  54. package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
  55. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  56. package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
  57. package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
  58. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
  59. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  60. package/.next/server/app/node.html +1 -1
  61. package/.next/server/app/node.rsc +1 -1
  62. package/.next/server/app/node.segments/_full.segment.rsc +1 -1
  63. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  64. package/.next/server/app/node.segments/_index.segment.rsc +1 -1
  65. package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
  66. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
  67. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  68. package/.next/server/app/nodes.html +1 -1
  69. package/.next/server/app/nodes.rsc +1 -1
  70. package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
  71. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  72. package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
  73. package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
  74. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
  75. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  76. package/.next/server/app/page_client-reference-manifest.js +1 -1
  77. package/.next/server/app/server-logs.html +1 -1
  78. package/.next/server/app/server-logs.rsc +1 -1
  79. package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
  80. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  81. package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
  82. package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
  83. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  84. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  85. package/.next/server/app/settings/networks.html +1 -1
  86. package/.next/server/app/settings/networks.rsc +1 -1
  87. package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
  88. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  89. package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
  90. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
  91. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  92. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  93. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  94. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  95. package/.next/server/app/settings/tokens.html +1 -1
  96. package/.next/server/app/settings/tokens.rsc +1 -1
  97. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
  98. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  99. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
  100. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
  101. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  102. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  103. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  104. package/.next/server/app/settings.html +2 -2
  105. package/.next/server/app/settings.rsc +2 -2
  106. package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  107. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  108. package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  109. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  110. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  111. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  112. package/.next/server/app/tasks.html +1 -1
  113. package/.next/server/app/tasks.rsc +1 -1
  114. package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
  115. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  116. package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
  117. package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
  118. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  119. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  120. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +2 -2
  121. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  122. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  123. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  124. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  125. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  126. package/.next/server/middleware-build-manifest.js +3 -3
  127. package/.next/server/pages/404.html +1 -1
  128. package/.next/server/pages/500.html +1 -1
  129. package/.next/static/chunks/{07t9_p5h7da1u.js → 041ttud2lil23.js} +1 -1
  130. package/.next/static/chunks/{10qa7z9iocn6t.js → 05op0gznd9-l~.js} +1 -1
  131. package/.next/static/chunks/0nra4xa8ew8dz.js +4 -0
  132. package/.next/trace +2 -2
  133. package/.next/trace-build +1 -1
  134. package/app/components/TopoGraph.tsx +44 -2
  135. package/package.json +1 -1
  136. package/scripts/topo-edge-badge-letter-spacing-test.mjs +86 -0
  137. package/scripts/topo-group-label-letter-spacing-test.mjs +113 -0
  138. package/.next/static/chunks/0ahff_xzbgbg4.js +0 -4
  139. /package/.next/static/{i0drwZtW8h-M1ML2C5VZF → GX6--A50f5YLDtRqrY8Mi}/_buildManifest.js +0 -0
  140. /package/.next/static/{i0drwZtW8h-M1ML2C5VZF → GX6--A50f5YLDtRqrY8Mi}/_clientMiddlewareManifest.js +0 -0
  141. /package/.next/static/{i0drwZtW8h-M1ML2C5VZF → GX6--A50f5YLDtRqrY8Mi}/_ssgManifest.js +0 -0
@@ -0,0 +1,4 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,136,(e,t,a)=>{},7454,(e,t,a)=>{var n=e.i(20888);e.r(136);var o=e.r(23910),r=o&&"object"==typeof o&&"default"in o?o:{default:o},s=void 0!==n.default&&n.default.env&&!0,i=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,a=t.name,n=void 0===a?"stylesheet":a,o=t.optimizeForSpeed,r=void 0===o?s:o;d(i(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",d("boolean"==typeof r,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=r,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,a=e.prototype;return a.setOptimizeForSpeed=function(e){d("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),d(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},a.isOptimizeForSpeed=function(){return this._optimizeForSpeed},a.inject=function(){var e=this;if(d(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,a){return"number"==typeof a?e._serverSheet.cssRules[a]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),a},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},a.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},a.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},a.insertRule=function(e,t){if(d(i(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var a=this.getSheet();"number"!=typeof t&&(t=a.cssRules.length);try{a.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},a.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var a="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!a.cssRules[e])return e;a.deleteRule(e);try{a.insertRule(t,e)}catch(n){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),a.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];d(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},a.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];d(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},a.flush=function(){this._injected=!1,this._rulesCount=0,"u">typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},a.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,a){return a?t=t.concat(Array.prototype.map.call(e.getSheetForTag(a).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},a.makeStyleTag=function(e,t,a){t&&d(i(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var o=document.head||document.getElementsByTagName("head")[0];return a?o.insertBefore(n,a):o.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function d(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,a=e.length;a;)t=33*t^e.charCodeAt(--a);return t>>>0},u={};function h(e,t){if(!t)return"jsx-"+e;var a=String(t),n=e+a;return u[n]||(u[n]="jsx-"+c(e+"-"+a)),u[n]}function p(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var a=e+t;return u[a]||(u[a]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[a]}var m=function(){function e(e){var t=void 0===e?{}:e,a=t.styleSheet,n=void 0===a?null:a,o=t.optimizeForSpeed,r=void 0!==o&&o;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:r}),this._sheet.inject(),n&&"boolean"==typeof r&&(this._sheet.setOptimizeForSpeed(r),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var a=this.getIdAndRules(e),n=a.styleId,o=a.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var r=o.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=r,this._instancesCounts[n]=1},t.remove=function(e){var t=this,a=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(a in this._instancesCounts,"styleId: `"+a+"` not found"),this._instancesCounts[a]-=1,this._instancesCounts[a]<1){var n=this._fromServer&&this._fromServer[a];n?(n.parentNode.removeChild(n),delete this._fromServer[a]):(this._indices[a].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[a]),delete this._instancesCounts[a]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],a=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return a[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,a;return t=this.cssRules(),void 0===(a=e)&&(a={}),t.map(function(e){var t=e[0],n=e[1];return r.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:a.nonce?a.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,a=e.dynamic,n=e.id;if(a){var o=h(n,a);return{styleId:o,rules:Array.isArray(t)?t.map(function(e){return p(o,e)}):[p(o,t)]}}return{styleId:h(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=o.createContext(null);function g(){return new m}function x(){return o.useContext(f)}f.displayName="StyleSheetContext";var y=r.default.useInsertionEffect||r.default.useLayoutEffect,b="u">typeof window?g():void 0;function v(e){var t=b||x();return t&&("u"<typeof window?t.add(e):y(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},a.StyleRegistry=function(e){var t=e.registry,a=e.children,n=o.useContext(f),s=o.useState(function(){return n||t||g()})[0];return r.default.createElement(f.Provider,{value:s},a)},a.createStyleRegistry=g,a.style=v,a.useStyleRegistry=x},6694,(e,t,a)=>{t.exports=e.r(7454).style},18722,e=>{"use strict";var t=e.i(20888),a=e.i(22381),n=e.i(23910),o=e.i(56839),r=e.i(3479);function s({online:e,working:t,total:n,version:o,uptime:r}){let l=n>0?Math.round(e/n*100):0,d=0===n;return(0,a.jsxs)("div",{className:d?"mb-4":"mb-8",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[(0,a.jsx)("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Agent Network"}),(0,a.jsxs)("span",{className:"text-xs text-gray-500",children:["CommHub ",o," · ",r]})]}),d?(0,a.jsxs)("div",{className:"anet-stat-strip flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs text-gray-500 border-t border-b border-[#2a2a4a] py-2",children:[(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,a.jsx)("span",{"aria-hidden":!0,className:"inline-block w-1.5 h-1.5 rounded-full bg-gray-600"}),(0,a.jsx)("span",{className:"text-gray-300 tabular-nums",children:"0"})," online"]}),(0,a.jsx)("span",{className:"text-gray-700",children:"·"}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,a.jsx)("span",{"aria-hidden":!0,className:"inline-block w-1.5 h-1.5 rounded-full bg-gray-600"}),(0,a.jsx)("span",{className:"text-gray-300 tabular-nums",children:"0"})," working"]}),(0,a.jsx)("span",{className:"text-gray-700",children:"·"}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,a.jsx)("span",{"aria-hidden":!0,className:"inline-block w-1.5 h-1.5 rounded-full bg-gray-600"}),(0,a.jsx)("span",{className:"text-gray-300 tabular-nums",children:"0"})," registered"]})]}):(0,a.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[(0,a.jsx)(i,{value:e,label:"Online",sub:`${l}% of fleet`,color:"text-green-400",accent:"from-green-500/20 to-green-500/0",border:"border-green-500/15"}),(0,a.jsx)(i,{value:t,label:"Working",sub:e>0?`${Math.round(t/e*100)}% utilization`:"--",color:"text-cyan-400",accent:"from-cyan-500/20 to-cyan-500/0",border:"border-cyan-500/15"}),(0,a.jsx)(i,{value:n-e,label:"Offline",sub:n-e==0?"All systems go":`${n-e} disconnected`,color:"text-gray-400",accent:"from-gray-500/10 to-gray-500/0",border:"border-gray-500/15"}),(0,a.jsx)(i,{value:n,label:"Total",sub:"Registered nodes",color:"text-white",accent:"from-blue-500/15 to-blue-500/0",border:"border-blue-500/15"})]})]})}function i({value:e,label:t,sub:n,color:o,accent:r,border:s}){let l=o.replace("text-","").split("-")[0];return(0,a.jsxs)("div",{"data-anet-stat-card":l,className:`anet-stat-card relative overflow-hidden rounded-xl border ${s} bg-[#111128] px-4 py-3 transition-all`,children:[(0,a.jsx)("div",{className:`absolute inset-0 bg-gradient-to-br ${r} pointer-events-none`}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:`text-3xl font-bold ${o} tabular-nums leading-tight`,children:e}),(0,a.jsx)("div",{className:"text-sm text-gray-300 mt-0.5",children:t}),(0,a.jsx)("div",{className:"text-xs text-gray-600 mt-1",children:n})]})]})}function l(){let[e,t]=(0,n.useState)(""),[o,r]=(0,n.useState)(!1),[s,i]=(0,n.useState)(""),l=async()=>{if(e.trim()){r(!0),i("");try{let a=await fetch("/api/hub/broadcast",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e})}),n=await a.json();n.ok?(i(`Broadcast sent to ${n.recipients} node(s)`),t("")):i(`Failed: ${n.error||"Send error"}`)}catch(e){i(`Failed: ${e instanceof Error?e.message:"Send error"}`)}r(!1),setTimeout(()=>i(""),5e3)}};return(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("input",{type:"text",value:e,onChange:e=>t(e.target.value),onKeyDown:e=>"Enter"===e.key&&l(),placeholder:"Broadcast message to all online agents...",maxLength:500,"aria-label":"Broadcast message",className:"flex-1 bg-[#111128] border border-[#2a2a4a] rounded-lg px-4 py-2.5 text-sm text-white placeholder-gray-600 focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/20 focus:outline-none transition-colors"}),(0,a.jsx)("button",{onClick:l,disabled:o||!e.trim(),"aria-label":"Send broadcast",className:"flex items-center gap-2 px-5 py-2.5 bg-blue-600 hover:bg-blue-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-all font-medium cursor-pointer disabled:cursor-not-allowed",children:o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,a.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,a.jsx)("span",{children:"Sending…"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M3 11v3a1 1 0 0 0 1 1h2l3.29 3.29a1 1 0 0 0 1.71-.71V7.42a1 1 0 0 0-1.71-.71L6 10H4a1 1 0 0 0-1 1Z"}),(0,a.jsx)("path",{d:"M16 8a5 5 0 0 1 0 6",opacity:"0.7"}),(0,a.jsx)("path",{d:"M19 5a9 9 0 0 1 0 12",opacity:"0.45"})]}),(0,a.jsx)("span",{children:"Broadcast"})]})})]}),e.length>0&&(0,a.jsxs)("div",{className:"text-right text-xs text-gray-600 mt-1 tabular-nums",children:[e.length,"/500"]}),s&&(0,a.jsx)("div",{className:`mt-3 text-sm text-center anet-fade-in ${s.startsWith("Failed")?"text-red-400":"text-green-400/80"}`,children:s})]})}var d=e.i(12629),c=e.i(56058),u=e.i(46228),h=e.i(43058),p=e.i(59276),m=e.i(59746);function f({alias:e,onClose:t}){let[o,r]=(0,n.useState)({x:0,y:0}),[s,i]=(0,n.useState)({w:380,h:520}),l=(0,n.useRef)({active:!1,startX:0,startY:0,baseX:0,baseY:0}),d=(0,n.useRef)({active:!1,startX:0,startY:0,baseW:0,baseH:0}),{sessions:c}=(0,p.useSessions)(),g=(0,n.useMemo)(()=>c.find(t=>t.alias===e),[c,e]),x=g&&"offline"!==g.status?null:(0,m.relativeAgo)(g?.last_seen_at),y=(0,n.useCallback)((e,t,a,n)=>({x:Math.min(Math.max(16,e),Math.max(16,window.innerWidth-a-16)),y:Math.min(Math.max(16,t),Math.max(16,window.innerHeight-n-16))}),[]);(0,n.useEffect)(()=>{let e=()=>{let e=window.innerWidth,t=window.innerHeight,a=Math.min(380,e-32),n=Math.min(520,t-96);i({w:a,h:n});let o=e<640;r(y(o?16:e-a-24,o?t-n-16:96,a,n))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[y]),(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t]);let b=e=>{if(l.current.active){l.current.active=!1;try{e.currentTarget.releasePointerCapture?.(e.pointerId)}catch{}}},v=e=>{if(d.current.active){d.current.active=!1,e.stopPropagation();try{e.currentTarget.releasePointerCapture?.(e.pointerId)}catch{}}};return(0,a.jsxs)("div",{className:"fixed z-50 flex flex-col overflow-hidden rounded-xl border border-[var(--border)] bg-[var(--bg)] shadow-2xl shadow-black/60 anet-fade-in",style:{left:o.x,top:o.y,width:s.w,height:s.h},role:"dialog","aria-label":`Chat with ${e}`,children:[(0,a.jsxs)("div",{onPointerDown:e=>{0===e.button&&(e.currentTarget.setPointerCapture?.(e.pointerId),l.current={active:!0,startX:e.clientX,startY:e.clientY,baseX:o.x,baseY:o.y})},onPointerMove:e=>{let t=l.current;t.active&&r(y(t.baseX+(e.clientX-t.startX),t.baseY+(e.clientY-t.startY),s.w,s.h))},onPointerUp:b,onPointerCancel:b,className:"flex items-center justify-between px-3 py-2.5 border-b border-[var(--border)] bg-[var(--bg-secondary)] rounded-t-xl cursor-grab active:cursor-grabbing select-none touch-none",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5 min-w-0",children:[(0,a.jsx)(u.AliasAvatar,{alias:e,size:28}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("div",{className:"text-sm font-semibold text-[var(--fg)] truncate",children:e}),g?.project_dir?(0,a.jsxs)("div",{className:"text-[10px] text-[var(--fg-muted)] truncate font-mono",title:g.project_dir,"data-popover-cwd":!0,children:["cwd: ",g.project_dir]}):null,x?(0,a.jsxs)("div",{className:"text-[10px] text-[var(--fg-muted)] truncate","data-popover-lastseen":!0,children:["last seen: ",x]}):null,g?.project_dir||x?null:(0,a.jsx)("div",{className:"text-[10px] text-[var(--fg-muted)]",children:"Drag to move · Esc to close"})]})]}),(0,a.jsx)("button",{onClick:t,onPointerDown:e=>e.stopPropagation(),"aria-label":"Close chat",className:"text-[var(--fg-muted)] hover:text-[var(--fg)] p-1.5 rounded-lg hover:bg-[var(--bg-elevated)] shrink-0",children:(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,a.jsx)("div",{className:"flex-1 min-h-0",children:(0,a.jsx)(h.TaskChatPanel,{alias:e,onClose:t,inline:!0})}),(0,a.jsx)("div",{onPointerDown:e=>{0===e.button&&(e.stopPropagation(),e.currentTarget.setPointerCapture?.(e.pointerId),d.current={active:!0,startX:e.clientX,startY:e.clientY,baseW:s.w,baseH:s.h})},onPointerMove:e=>{let t=d.current;if(!t.active)return;e.stopPropagation();let a=Math.max(300,window.innerWidth-o.x-16),n=Math.max(320,window.innerHeight-o.y-16);i({w:Math.min(a,Math.max(300,t.baseW+(e.clientX-t.startX))),h:Math.min(n,Math.max(320,t.baseH+(e.clientY-t.startY)))})},onPointerUp:v,onPointerCancel:v,"aria-label":"Resize chat",className:"absolute bottom-0 right-0 w-5 h-5 cursor-nwse-resize touch-none z-10",style:{touchAction:"none"},children:(0,a.jsx)("svg",{className:"absolute bottom-0.5 right-0.5 w-3 h-3 text-[var(--fg-dim)]",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":!0,children:(0,a.jsx)("path",{d:"M11 5L5 11M11 9L9 11"})})})]})}let g={id:"unknown",label:"Unknown vendor",mono:{bg:"hsl(220 10% 26%)",ring:"hsl(220 10% 46%)",text:"hsl(220 14% 82%)"},initial:"?",logo:null},x=[{test:e=>e.startsWith("intern"),vendor:{id:"intern",label:"书生 · 上海 AI 实验室",mono:{bg:"hsl(28 38% 24%)",ring:"hsl(32 45% 52%)",text:"hsl(34 60% 82%)"},initial:"书",logo:"/intern_avatar.png"}},{test:e=>e.startsWith("minimax"),vendor:{id:"minimax",label:"MiniMax",mono:{bg:"hsl(18 50% 26%)",ring:"hsl(18 65% 52%)",text:"hsl(20 80% 82%)"},initial:"M",logo:"/vendors/minimax.svg"}},{test:e=>e.startsWith("claude"),vendor:{id:"anthropic",label:"Anthropic",mono:{bg:"hsl(16 32% 26%)",ring:"hsl(16 48% 54%)",text:"hsl(18 60% 84%)"},initial:"A",logo:"/vendors/claude.svg"}},{test:e=>e.startsWith("gpt")||e.startsWith("codex")||e.startsWith("o1")||e.startsWith("o3")||e.startsWith("o4"),vendor:{id:"openai",label:"OpenAI",mono:{bg:"hsl(165 26% 22%)",ring:"hsl(165 40% 44%)",text:"hsl(165 45% 80%)"},initial:"O",logo:"/vendors/openai.svg"}}];function y(e){if(!e)return g;let t=e.toLowerCase();for(let e of x)if(e.test(t))return e.vendor;return g}let b={"claude-code-cli":{label:"Claude Code CLI",iconPath:"M4 5h16v14H4z M7 9l3 3-3 3 M13 15h4",color:"#a78bfa"},"codex-sdk":{label:"Codex SDK",iconPath:"M9 7l-5 5 5 5 M15 7l5 5-5 5",color:"#38bdf8"},"claude-agent-sdk":{label:"Claude Agent SDK",iconPath:"M4 7h16v10H4z M8 11h8 M8 14h5",color:"#34d399"},"http-api":{label:"HTTP API",iconPath:"M7 18a4 4 0 010-8 5 5 0 019.6-1.3A3.5 3.5 0 0118 18z",color:"#fbbf24"}};function v(e){return e?b[e]??null:null}let k=async e=>{let t=await fetch(e);return t.ok?t.json():null};function w(e,t,a,n=0){let o=t<=2?Math.PI:1.78*Math.PI,r=-Math.PI/2-o/2,s=t<=1?-Math.PI/2:r+o*e/(t-1)+n;return{x:500+a*Math.cos(s),y:330+a*Math.sin(s)}}function j(e,t,a=0){let n=(e.x+t.x)/2,o=(e.y+t.y)/2,r=t.x-e.x,s=t.y-e.y,i=Math.hypot(r,s)||1,l={x:n+-s/i*a,y:o+r/i*a};return`M${e.x},${e.y} Q${l.x},${l.y} ${t.x},${t.y}`}function N(e,t){return e.length>t?`${e.slice(0,t-1)}...`:e}function S({sessions:e}){let t=(0,n.useRef)(Date.now()),[o,r]=(0,n.useState)(()=>Date.now());(0,n.useEffect)(()=>{t.current=Date.now()},[e]),(0,n.useEffect)(()=>{let e=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(e)},[]);let s=Math.max(0,Math.floor((o-t.current)/1e3)),i=s>10;return i?(0,a.jsxs)("span",{className:`hidden sm:inline px-2.5 py-1 rounded-md font-mono font-medium tabular-nums border transition-colors duration-300 ${i?"bg-amber-500/10 text-amber-300 border-amber-500/20":"bg-gray-500/10 text-gray-400 border-gray-500/20"}`,title:i?`Last sync ${s}s ago — SWR refresh may be lagging`:`Live data \xb7 refreshes every 5s \xb7 last sync ${s}s ago`,"data-freshness-chip":!0,"data-freshness-chip-stale":i?"true":"false",children:[i?"lag":"live"," · ",(0,a.jsx)("span",{className:"font-semibold","data-freshness-chip-digit":!0,children:s}),(0,a.jsx)("span",{className:"opacity-70","data-freshness-chip-unit":!0,children:"s"})]}):null}function $(e,t,a){return t?"working"===e.status?{label:"working",primary:a?"#059669":"#22c55e",halo:a?"#d1fae5":"#14532d",text:a?"#065f46":"#dcfce7"}:"idle"===e.status?{label:"idle",primary:a?"#0d9488":"#2dd4bf",halo:a?"#ccfbf1":"#134e4a",text:a?"#115e59":"#ccfbf1"}:{label:e.status||"online",primary:a?"#0284c7":"#38bdf8",halo:a?"#e0f2fe":"#0c4a6e",text:a?"#0c4a6e":"#e0f2fe"}:{label:"offline",primary:a?"#94a3b8":"#6b7280",halo:a?"#e2e8f0":"#111827",text:a?"#475569":"#9ca3af"}}let _={panelStops:["#0b1220","#080814","#101018"],radarStops:[{color:"#22d3ee",opacity:.18},{color:"#22c55e",opacity:.045},{color:"#020617",opacity:0}],arrowFill:"#67e8f9",ringStroke:"#164e63",spokeStroke:{active:"#22d3ee",idle:"#155e75"},flowEdge:"#67e8f9",flowPath:"#e0f2fe",flowParticle:"#fef08a",nodeFill:{online:"#020617",offline:"#080814"},labelBox:{fill:"#020617",stroke:"#1f2937"},legendBox:{fill:"#020617",stroke:"#1f2937"},legendText:"#94a3b8",legendHeadline:"#e5e7eb",legendAccent:"#67e8f9",containerBg:"#080814",containerBorder:"#2a2a4a",topRailGradient:"from-transparent via-cyan-400/70 to-transparent"},M={panelStops:["#f8fafc","#ffffff","#f1f5f9"],radarStops:[{color:"#10b981",opacity:.06},{color:"#3b82f6",opacity:.03},{color:"#ffffff",opacity:0}],arrowFill:"#10b981",ringStroke:"#cbd5e1",spokeStroke:{active:"#10b981",idle:"#cbd5e1"},flowEdge:"#10b981",flowPath:"#475569",flowParticle:"#f59e0b",nodeFill:{online:"#ffffff",offline:"#f8fafc"},labelBox:{fill:"#ffffff",stroke:"#e2e8f0"},legendBox:{fill:"#ffffff",stroke:"#e2e8f0"},legendText:"#475569",legendHeadline:"#0f172a",legendAccent:"#0d9488",containerBg:"#ffffff",containerBorder:"#e3e6eb",topRailGradient:"from-transparent via-emerald-500/40 to-transparent"};function C(e,t){let a=0;for(;a<e.length&&a<t.length&&e[a]===t[a];)a++;return e.slice(0,a)}function E(e){let t=e.length,a=e.map((e,t)=>t),n=e=>{for(;a[e]!==e;)a[e]=a[a[e]],e=a[e];return e},o=(e,t)=>{let o=n(e),r=n(t);o!==r&&(a[o]=r)},r={};for(let t of(e.forEach((e,t)=>{let a=e.project_dir?.trim();a&&(r[a]||=[]).push(t)}),Object.values(r)))for(let e=1;e<t.length;e++)o(t[0],t[e]);let s=e.map((e,t)=>t).sort((t,a)=>e[t].alias.localeCompare(e[a].alias));for(let t=0;t+1<s.length;t++)C(e[s[t]].alias,e[s[t+1]].alias).length>=2&&o(s[t],s[t+1]);let i={};for(let e=0;e<t;e++)(i[n(e)]||=[]).push(e);let l={};for(let t of Object.values(i)){let a;if(1===t.length)a=e[t[0]].alias;else{let n=new Set(t.map(t=>e[t].project_dir?.trim()).filter(Boolean));if(1===n.size){let e=[...n][0];a=e.split("/").filter(Boolean).pop()||e}else(a=t.map(t=>e[t].alias).reduce((e,t)=>C(e,t))).length<2&&(a=e[t[0]].alias)}for(let n of t)l[e[n].alias]=a}return l}function z(e,t){let a=new Map;return e.forEach(e=>{if(!t[e.from_alias]||!t[e.to_alias]||e.from_alias===e.to_alias)return;let n=`${e.from_alias}->${e.to_alias}`,o=a.get(n),r=e.created_at||"",s=o?r>o.last_at?r:o.last_at:r;a.set(n,{key:n,from:e.from_alias,to:e.to_alias,count:(o?.count||0)+1,content:o?.content||e.content,last_at:s})}),[...a.values()].slice(0,18)}function T({sessions:e,sseSessions:t,renameSignal:o}){let r,s,i,l,h,p,g,x,b,C,A,L,F,P,D,W,I,B,R,O,H,Y,X,K,V,U,G,J,q,Z,Q,ee,et,ea,en,eo,er,es,ei,el,ed,ec,eu,eh,ep,em,ef,eg,ex,ey,eb,ev,ek,ew,ej,eN="light"===function(){let[e,t]=(0,n.useState)("dark");return(0,n.useEffect)(()=>{let e=()=>{let e=document.documentElement.getAttribute("data-theme")||"cyber";t("light"===e||"mint"===e?"light":"dark")};e();let a=new MutationObserver(e);return a.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>a.disconnect()},[]),e}(),eS=function(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!window.matchMedia)return;let e=window.matchMedia("(prefers-reduced-motion: reduce)");t(e.matches);let a=e=>t(e.matches);return e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[]),e}(),e$=eN?M:_,e_="intern"===function(){let[e,t]=(0,n.useState)(null);return(0,n.useEffect)(()=>{try{let e=new URL(window.location.href).searchParams.get("brand");null!==e?""===e||"none"===e?(localStorage.removeItem("anet-brand"),t(null)):(localStorage.setItem("anet-brand",e),t(e)):t(localStorage.getItem("anet-brand"))}catch{}},[]),e}(),eM=function(){let{data:e}=(0,d.default)("/api/hub/servers",k,{refreshInterval:15e3,dedupingInterval:5e3});return(0,n.useMemo)(()=>{let t=new Map;for(let a of e?.servers??[]){let e=function(e){if("offline"===e.status)return null;let t=[null!=e.cpu_load_1min&&e.cpu_cores>0?e.cpu_load_1min/e.cpu_cores*100:null,null!=e.mem_used_gb&&null!=e.mem_total_gb&&e.mem_total_gb>0?e.mem_used_gb/e.mem_total_gb*100:null,null!=e.disk_used_gb&&null!=e.disk_total_gb&&e.disk_total_gb>0?e.disk_used_gb/e.disk_total_gb*100:null].filter(e=>"number"==typeof e);if(0===t.length)return null;let a=Math.max(...t);return a>=85?"red":a>=60?"amber":"green"}(a);e&&t.set(a.hostname,e)}return t},[e])}(),eC=(0,c.useRouter)(),[eE,ez]=(0,n.useState)([]),[eT,eA]=(0,n.useState)("ring");(0,n.useEffect)(()=>{try{let t=localStorage.getItem("anet-topo-layout");"grid"===t||"ring"===t?eA(t):e.length>=20&&eA("grid")}catch{}},[]);let[eL,eF]=(0,n.useState)(!1),eP=()=>{eF(!0),setTimeout(()=>eF(!1),400),eA(e=>{let t="ring"===e?"grid":"ring";try{localStorage.setItem("anet-topo-layout",t)}catch{}return t})},[eD,eW]=(0,n.useState)(.84);(0,n.useEffect)(()=>{try{let e=parseFloat(localStorage.getItem("anet-topo-nodescale")||"");(.7===e||.84===e||1===e)&&eW(e)}catch{}},[]);let[eI,eB]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/hub/messages?limit=50");if(401===e.status)return void window.location.assign("/login");let t=await e.json();ez(t.messages||[])}catch{}};e();let t=setInterval(e,5e3);return()=>clearInterval(t)},[]);let{onlineNodes:eR,offlineNodes:eO,nodePositions:eH,flowLinks:eY,activeAliases:eX,groupKeys:eK,groupBoxes:eV,gridContentBottom:eU}=(0,n.useMemo)(()=>{let a=e=>(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],n=(e,t)=>e.alias.localeCompare(t.alias),o=Date.now(),r=e.filter(e=>"offline"!==e.status||a(e)).sort(n),s=e.filter(e=>"offline"===e.status&&!a(e)&&!(e=>{if("offline"!==e.status||a(e)||!e.last_seen_at)return!1;let t=(0,m.parseHubTime)(e.last_seen_at);return null!==t&&o-t>36e5})(e)).sort(n),i={};if("grid"===eT){let e=[...r,...s],t=E(e),n=Math.max(1,Math.ceil(Math.sqrt(e.length))),o=700/n,l=Math.round(26*eD),d=[];for(let a of e){let e=t[a.alias],n=d[d.length-1];n&&n.key===e?n.members.push(a):d.push({key:e,members:[a]})}let c=[],u=0,h=0;for(;h<d.length;)if(d[h].members.length>=2)c.push({members:d[h].members,startRow:u,centred:!1,isGroup:!0}),u+=Math.ceil(d[h].members.length/n),h++;else{let e=[];for(;h<d.length&&d[h].members.length<2;)e.push(d[h].members[0]),h++;c.push({members:e,startRow:u,centred:!0,isGroup:!1}),u+=Math.ceil(e.length/n)}let p=Math.max(1,u),m=l+20,f=Math.max(2*l+22,m+12,l+(eD<.8?12:14)+m+3,Math.min(100,526/p));for(let e of c)e.members.forEach((t,a)=>{let r=Math.floor(a/n),s=a%n,l=Math.min(n,e.members.length-r*n),d=e.centred?(n-l)*o/2:0;i[t.alias]={x:150+d+(s+.5)*o,y:126+(e.startRow+r+.5)*f}});let g=z(eE,i),x=new Set;g.forEach(e=>{x.add(e.from),x.add(e.to)});let y=Math.max(8,Math.min(26,f-m-8)),b=c.filter(e=>e.isGroup).map(e=>{let n=e.members.map(e=>i[e.alias]).filter(Boolean),o=n.map(e=>e.x),r=n.map(e=>e.y),s=Math.min(...o),l=Math.min(...r),d=0,c=0,u=0;for(let t of e.members){let e="offline"!==t.status||!!a(t);"working"===t.status?d++:e?c++:u++}return{key:e.members.length?t[e.members[0].alias]:"",count:e.members.length,statuses:{working:d,idle:c,offline:u},x:s-y,y:l-m,w:Math.max(...o)-s+2*y,h:Math.max(...r)-l+m+y}});return{onlineNodes:r,offlineNodes:s,nodePositions:i,flowLinks:g,activeAliases:x,groupKeys:t,groupBoxes:b,gridContentBottom:126+p*f+8}}let l=r.length>14,d=!l&&r.length>8,c=r.length;if(l){let e=Math.ceil(r.length/3),t=r.slice(0,e),a=r.slice(e,2*e),n=r.slice(2*e);t.forEach((e,a)=>{i[e.alias]=w(a,Math.max(t.length,1),145)});let o=t.length<=2?Math.PI:1.78*Math.PI,s=t.length>1?o/(t.length-1):0;a.forEach((e,t)=>{i[e.alias]=w(t,Math.max(a.length,1),215,s/2)}),n.forEach((e,t)=>{i[e.alias]=w(t,Math.max(n.length,1),285)}),c=n.length}else if(d){let e=Math.ceil(r.length/2),t=r.length-e,a=r.slice(0,e),n=r.slice(e);a.forEach((t,a)=>{i[t.alias]=w(a,Math.max(e,1),175)});let o=e<=2?Math.PI:1.78*Math.PI,s=e>1?o/(e-1):0;n.forEach((e,a)=>{i[e.alias]=w(a,Math.max(t,1),260,s/2)}),c=t}else r.forEach((e,t)=>{i[e.alias]=w(t,Math.max(r.length,1),220)});let u=c<=2?Math.PI:1.78*Math.PI,h=c>1?u/(c-1):0,p=c>0?h/2:0,f=325+6*Math.max(0,s.length-4);s.forEach((e,t)=>{i[e.alias]=w(t,Math.max(s.length,1),f,p)});let g=z(eE,i),x=new Set;g.forEach(e=>{x.add(e.from),x.add(e.to)});let y=E([...r,...s]);return{onlineNodes:r,offlineNodes:s,nodePositions:i,flowLinks:g,activeAliases:x,groupKeys:y,groupBoxes:[],gridContentBottom:0}},[eE,e,t,eT,eD]),eG=eR.filter(e=>"working"===e.status).length,eJ=(0,n.useMemo)(()=>{let e=new Map;for(let t of[...eR,...eO]){let a=y(t.model),n="unknown"===a.id?"?":a.initial,o=e.get(n);o?o.count++:e.set(n,{initial:n,count:1,color:a.mono.text})}return[...e.values()].sort((e,t)=>t.count-e.count)},[eR,eO]),eq=eR.length+eO.length>16,[eZ,eQ]=(0,n.useState)(null),[e0,e1]=(0,n.useState)(null),e2=e0??(eZ?eK[eZ]??eZ:null),[e5,e4]=(0,n.useState)(()=>{try{return sessionStorage.getItem("anet-topo-pinned-group")}catch{return null}}),e3=e2??e5;(0,n.useEffect)(()=>{try{e5?sessionStorage.setItem("anet-topo-pinned-group",e5):sessionStorage.removeItem("anet-topo-pinned-group")}catch{}},[e5]),(0,n.useEffect)(()=>{!e5||new Set(Object.values(eK)).has(e5)||e4(null)},[e5,eK]);let[e8,e6]=(0,n.useState)(null),[e7,e9]=(0,n.useState)(null),te=e8??e7,[tt,ta]=(0,n.useState)(!1),[tn,to]=(0,n.useState)(!1),[tr,ts]=(0,n.useState)(!1),[ti,tl]=(0,n.useState)(!1),[td,tc]=(0,n.useState)(!1),[tu,th]=(0,n.useState)(!1),[tp,tm]=(0,n.useState)(null),[tf,tg]=(0,n.useState)(null),[tx,ty]=(0,n.useState)(()=>{try{return sessionStorage.getItem("anet-topo-pinned-vendor")}catch{return null}}),tb=tf??tx;(0,n.useEffect)(()=>{try{tx?sessionStorage.setItem("anet-topo-pinned-vendor",tx):sessionStorage.removeItem("anet-topo-pinned-vendor")}catch{}},[tx]),(0,n.useEffect)(()=>{tx&&!eJ.some(e=>e.initial===tx)&&ty(null)},[tx,eJ]);let[tv,tk]=(0,n.useState)(null),[tw,tj]=(0,n.useState)(()=>{try{let e=sessionStorage.getItem("anet-topo-pinned-status");return"working"===e||"idle"===e||"offline"===e?e:null}catch{return null}}),tN=tv??tw;(0,n.useEffect)(()=>{try{tw?sessionStorage.setItem("anet-topo-pinned-status",tw):sessionStorage.removeItem("anet-topo-pinned-status")}catch{}},[tw]),(0,n.useEffect)(()=>{let e=e=>{let t=e.detail||{};if("clear"===t.kind)tj(null),e4(null),ty(null),e9(null);else if("clear-vendor"===t.kind)ty(null);else if("clear-edge"===t.kind)e9(null);else if("status"===t.kind){let e=t.value;("working"===e||"idle"===e||"offline"===e)&&tj(e)}else"group"===t.kind&&"string"==typeof t.value?e4(t.value):"vendor"===t.kind&&"string"==typeof t.value&&ty(t.value)};return window.addEventListener("anet:topo-pin",e),()=>window.removeEventListener("anet:topo-pin",e)},[]);let tS=(0,n.useMemo)(()=>{if(!te)return null;let e=eY.find(e=>e.key===te);return e?new Set([e.from,e.to]):null},[te,eY]),t$=(0,n.useRef)(null),t_=(0,n.useRef)(null),[tM,tC]=(0,n.useState)({zoom:1,x:0,y:0}),tE=(0,n.useRef)(tM),tz=(0,n.useRef)({active:!1,startX:0,startY:0,baseX:0,baseY:0}),[tT,tA]=(0,n.useState)(!1),[tL,tF]=(0,n.useState)(!1),[tP,tD]=(0,n.useState)(null),tW=e=>{tD(e),setTimeout(()=>tD(t=>t===e?null:t),240)},[tI,tB]=(0,n.useState)(null),[tR,tO]=(0,n.useState)(null);(0,n.useEffect)(()=>{o&&o.from===tI&&tB(o.to)},[o]),(0,n.useEffect)(()=>{tE.current=tM},[tM]),(0,n.useEffect)(()=>{try{let e=localStorage.getItem("anet-topo-view");if(e){let t=JSON.parse(e);"number"==typeof t?.zoom&&tC({zoom:Math.min(4,Math.max(.5,t.zoom)),x:"number"==typeof t.x?t.x:0,y:"number"==typeof t.y?t.y:0})}}catch{}},[]);let[tH]=(0,n.useState)(()=>!!localStorage.getItem("anet-topo-view")),tY=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!tY.current){if(tH){tY.current=!0;return}if("grid"===eT&&0!==e.length&&eU){if(eU<=680){tY.current=!0;return}tC({zoom:Math.max(.5,Math.min(1,680/eU)),x:0,y:0}),tY.current=!0}}},[eT,e.length,eU,tH]),(0,n.useEffect)(()=>{try{localStorage.setItem("anet-topo-view",JSON.stringify(tM))}catch{}},[tM]),(0,n.useEffect)(()=>{let e=()=>tA(document.fullscreenElement===t$.current);return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]),(0,n.useEffect)(()=>{let e=t_.current;if(!e)return;let t=t=>{if(!tT&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault();let a=e.getBoundingClientRect(),n=(t.clientX-a.left)/a.width*1e3,o=(t.clientY-a.top)/a.height*680;tC(e=>{let a=Math.min(1.08,Math.max(.926,Math.exp(-(6e-4*t.deltaY)))),r=Math.min(4,Math.max(.5,e.zoom*a)),s=r/e.zoom;return{zoom:r,x:n-(n-e.x)*s,y:o-(o-e.y)*s}})};return e.addEventListener("wheel",t,{passive:!1}),()=>e.removeEventListener("wheel",t)},[tT]);let[tX,tK]=(0,n.useState)(!1),tV=e=>{if(tz.current.active){tz.current.active=!1,tK(!1);try{e.currentTarget.releasePointerCapture?.(e.pointerId)}catch{}}},tU=e=>{tJ(!0),setTimeout(()=>tJ(!1),350),tC(t=>{let a=Math.min(4,Math.max(.5,t.zoom*e)),n=a/t.zoom;return{zoom:a,x:500-(500-t.x)*n,y:340-(340-t.y)*n}})},[tG,tJ]=(0,n.useState)(!1),tq=()=>{tJ(!0),setTimeout(()=>tJ(!1),350),tC({zoom:1,x:0,y:0})},tZ=(0,n.useCallback)(()=>{let e=!eU||eU<=680?1:Math.max(.5,Math.min(1,680/eU));tJ(!0),setTimeout(()=>tJ(!1),350),tC({zoom:e,x:0,y:0})},[eU]);return(0,n.useEffect)(()=>{let e=e=>{"toggle"===(e.detail||{}).kind&&eP()},t=e=>{"fit"===(e.detail||{}).kind&&tZ()};return window.addEventListener("anet:topo-layout",e),window.addEventListener("anet:topo-view",t),()=>{window.removeEventListener("anet:topo-layout",e),window.removeEventListener("anet:topo-view",t)}},[tZ]),(0,n.useEffect)(()=>{let e=e=>{if(e.ctrlKey||e.metaKey||e.altKey)return;let t=document.activeElement;if(t){let e=t.tagName;if("INPUT"===e||"TEXTAREA"===e||"SELECT"===e||t.isContentEditable)return}"+"===e.key||"="===e.key?(tU(1.2),e.preventDefault()):"-"===e.key||"_"===e.key?(tU(1/1.2),e.preventDefault()):"0"===e.key?(tq(),e.preventDefault()):"f"===e.key||"F"===e.key?(tZ(),e.preventDefault()):"l"===e.key||"L"===e.key?(eP(),e.preventDefault()):"Escape"===e.key&&!tI&&(tw||e5||tx||e7)&&(tw&&tj(null),e5&&e4(null),tx&&ty(null),e7&&e9(null),e.preventDefault())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[tZ,tI,tw,e5,tx,e7]),(0,a.jsxs)("section",{className:"w-full max-w-6xl mx-auto mb-8",children:[(0,a.jsxs)("div",{className:`flex flex-col gap-2.5 sm:flex-row sm:items-end sm:justify-between mb-4 px-1${tT?" hidden":""}`,"data-topo-header-row":!0,"data-topo-header-hidden":tT?"true":"false",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 32 32","aria-hidden":!0,className:"shrink-0","data-topo-brand-logo":!0,style:{color:eN?"#0d9488":"#67e8f9",transition:"color 200ms ease-out"},children:[(0,a.jsxs)("mask",{id:"s2a-titleblock-moon-mask",children:[(0,a.jsx)("rect",{width:"32",height:"32",fill:"black"}),(0,a.jsx)("circle",{cx:"16",cy:"16",r:"13",fill:"white"}),(0,a.jsx)("circle",{cx:"20.5",cy:"14.5",r:"11",fill:"black"})]}),(0,a.jsx)("rect",{width:"32",height:"32",fill:"currentColor",mask:"url(#s2a-titleblock-moon-mask)"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-xs uppercase text-gray-500 tracking-widest leading-tight font-medium","data-topo-section-kicker":!0,children:"Network Topology"}),(0,a.jsx)("h2",{className:"text-lg text-white font-semibold leading-tight tracking-tight","data-topo-section-title":!0,children:"Command mesh"})]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5 text-xs",children:[(0,a.jsxs)("div",{className:"mr-0.5 inline-flex rounded-lg border overflow-hidden",style:{borderColor:e$.containerBorder,transition:"border-color 200ms ease-out"},role:"group","aria-label":"Topology layout","data-topo-chrome-layout-trailer":!0,"data-topo-chrome-layout-radius":"rounded-lg",children:[(0,a.jsx)("button",{onClick:()=>{tW("layout-ring"),"ring"!==eT&&eP()},"aria-pressed":"ring"===eT,title:"Ring layout (l to toggle)","data-topo-chrome-layout":"ring","data-topo-chrome-layout-active":"ring"===eT?"true":"false","data-topo-chrome-layout-ring-popping":"layout-ring"===tP?"true":"false",className:`px-2.5 py-1 focus:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset hover:tracking-wide ${"ring"===eT?"bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25":"text-gray-400 hover:text-cyan-300 hover:bg-cyan-500/5 active:bg-cyan-500/15"} ${"layout-ring"===tP?" anet-chrome-pop":""}`,style:{transition:"background-color 150ms ease, color 150ms ease, letter-spacing 200ms ease-out"},children:"Ring"}),(0,a.jsx)("button",{onClick:()=>{tW("layout-grid"),"grid"!==eT&&eP()},"aria-pressed":"grid"===eT,title:"Grid layout (l to toggle)","data-topo-chrome-layout":"grid","data-topo-chrome-layout-active":"grid"===eT?"true":"false","data-topo-chrome-layout-grid-popping":"layout-grid"===tP?"true":"false",className:`px-2.5 py-1 border-l focus:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset hover:tracking-wide ${"grid"===eT?"bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25":"text-gray-400 hover:text-cyan-300 hover:bg-cyan-500/5 active:bg-cyan-500/15"} ${"layout-grid"===tP?" anet-chrome-pop":""}`,style:{borderColor:e$.containerBorder,transition:"background-color 150ms ease, color 150ms ease, border-color 200ms ease-out, letter-spacing 200ms ease-out"},children:"Grid"})]}),(r=eR.filter(e=>"working"===e.status).map(e=>e.alias),s=eR.map(e=>e.alias),i=e=>e.slice(0,8).join(", ")+(e.length>8?` + ${e.length-8} more`:""),l=0===eG?void 0:"working"===tw?`${i(r)} — pinned, Esc to clear`:`${i(r)} — hover highlights, click to pin`,h=0===eR.length?void 0:"idle"===tw?`${i(s)} — pinned, Esc to clear`:`${i(s)} — hover highlights \xb7 click to open /nodes`,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:`group tabular-nums font-medium px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-colors transition-transform duration-200 ease-out transform-gpu ${eG>0?"bg-green-500/10 text-green-300 border-green-500/20 hover:bg-green-500/15 hover:border-green-500/30 hover:-translate-y-px":"bg-green-500/10 text-green-300 border-green-500/20"}`,"data-chip-hover-lift":eG>0?"true":"false","data-chip-group-hover-brighten":"true","data-working-chip":!0,"data-working-chip-aliases":r.join(","),"data-pin-mirror":"working"===tw?"true":"false","data-working-chip-clickable":eG>0?"true":"false","data-working-chip-empty":0===eG?"true":"false",title:l,role:eG>0?"button":void 0,tabIndex:eG>0?0:void 0,"aria-pressed":eG>0?"working"===tw:void 0,style:{cursor:eG>0?"pointer":void 0,opacity:0===eG?.5:1,boxShadow:"working"===tw?"inset 0 0 0 1px #4ade80, inset 0 0 0 2px rgba(255,255,255,0.45)":void 0,transition:"box-shadow 150ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, opacity 200ms ease-out"},onMouseEnter:()=>{eG>0&&tk("working")},onMouseLeave:()=>tk(e=>"working"===e?null:e),onClick:()=>{eG>0&&tj(e=>"working"===e?null:"working")},onKeyDown:e=>{0!==eG&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),tj(e=>"working"===e?null:"working"))},children:[(0,a.jsx)("span",{className:"font-semibold transition-[font-weight] duration-200 group-hover:font-bold","data-working-chip-digit":!0,children:eG}),(0,a.jsx)("span",{className:"opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-working-chip-unit":!0,children:" working"})]}),(0,a.jsxs)("span",{className:`group tabular-nums font-medium px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-colors transition-transform duration-200 ease-out transform-gpu ${eR.length>0?"bg-cyan-500/10 text-cyan-300 border-cyan-500/20 hover:bg-cyan-500/15 hover:border-cyan-500/30 hover:-translate-y-px":"bg-cyan-500/10 text-cyan-300 border-cyan-500/20"}`,"data-chip-hover-lift":eR.length>0?"true":"false","data-chip-group-hover-brighten":"true","data-online-chip":!0,"data-online-chip-aliases":s.join(","),"data-pin-mirror":"idle"===tw?"true":"false","data-online-chip-clickable":eR.length>0?"true":"false","data-online-chip-empty":0===eR.length?"true":"false",title:h,role:eR.length>0?"link":void 0,tabIndex:eR.length>0?0:void 0,style:{cursor:eR.length>0?"pointer":void 0,opacity:0===eR.length?.5:1,boxShadow:"idle"===tw?"inset 0 0 0 1px #67e8f9, inset 0 0 0 2px rgba(255,255,255,0.45)":void 0,transition:"box-shadow 150ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, opacity 200ms ease-out"},onMouseEnter:()=>{let e=eR.length-eG;eG>0?tk("working"):e>0&&tk("idle")},onMouseLeave:()=>tk(e=>"working"===e||"idle"===e?null:e),onClick:()=>{eR.length>0&&eC.push("/nodes")},onKeyDown:e=>{0!==eR.length&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eC.push("/nodes"))},children:[(0,a.jsx)("span",{className:"font-semibold transition-[font-weight] duration-200 group-hover:font-bold","data-online-chip-digit":!0,children:eR.length}),(0,a.jsx)("span",{className:"opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-online-chip-unit":!0,children:" online"})]})]})),(()=>{let e=eR.length-eG,t=eO.length,n=eG+e+t;if(0===n)return null;let o=(e,t,o,r)=>{if(0===e)return null;let s=tw===o,i="working"===o?eR.filter(e=>"working"===e.status).map(e=>e.alias):"idle"===o?eR.filter(e=>"working"!==e.status).map(e=>e.alias):eO.map(e=>e.alias),l=i.slice(0,8).join(", "),d=i.length>8?` + ${i.length-8} more`:"",c=s?"click to release filter":"click to highlight";return(0,a.jsx)("span",{"data-pressure-seg":o,"data-pressure-seg-aliases":i.join(","),"data-pressure-seg-hovered":tv===o?"true":"false",role:"button",tabIndex:0,"aria-pressed":s,className:"anet-topo-chip-focus",title:`${e} ${r}
2
+ ${l}${d}
3
+ ${c}`,style:{width:`${e/n*100}%`,background:t,height:"100%",cursor:"pointer",boxShadow:s?`inset 0 0 0 1px ${t}, inset 0 0 0 2px rgba(255,255,255,0.6)`:void 0,filter:tv===o?"brightness(1.2)":void 0,transition:"width 220ms ease-out, box-shadow 150ms ease-out, filter 150ms ease-out"},onClick:e=>{e.stopPropagation(),tj(e=>e===o?null:o)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),tj(e=>e===o?null:o))},onMouseEnter:()=>tk(o),onMouseLeave:()=>tk(e=>e===o?null:e)},o)};return(0,a.jsxs)("span",{className:"hidden sm:inline-flex items-center gap-2 px-2.5 py-1 rounded-md bg-gray-500/10 text-gray-400 border border-gray-500/20 font-mono",title:`${eG} working \xb7 ${e} idle \xb7 ${t} offline`,"data-fleet-pressure":!0,children:[(0,a.jsx)("span",{className:"text-[10px] tracking-wide font-medium","data-fleet-pressure-kicker":!0,children:"pressure"}),(0,a.jsxs)("span",{className:"inline-flex h-2 w-16 rounded-full overflow-hidden",style:{background:"rgb(75 85 99 / 0.25)"},"data-fleet-pressure-bar-height":"h-2",children:[o(eG,eN?"#059669":"#22c55e","working","working"),o(e,eN?"#0d9488":"#2dd4bf","idle","idle"),o(t,eN?"#94a3b8":"#6b7280","offline","offline")]})]})})(),tw&&(p="working"===tw?eG:"idle"===tw?eR.length-eG:eO.length,x=(g="working"===tw?eR.filter(e=>"working"===e.status).map(e=>e.alias):"idle"===tw?eR.filter(e=>"working"!==e.status).map(e=>e.alias):eO.map(e=>e.alias)).slice(0,8).join(", "),b=g.length>8?` + ${g.length-8} more`:"",(0,a.jsxs)("span",{"data-active-filter":"status","data-filter-match-count":p,"data-filter-match-aliases":g.join(","),className:"group inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono font-medium text-xs border anet-fade-in anet-topo-chip-focus transition-transform duration-200 ease-out hover:-translate-y-px transform-gpu","data-topo-filter-pill-hover-lift":"true",title:p>0?`${x}${b} — click to clear`:"Click to clear filter",onClick:()=>tj(null),style:{background:"working"===tw?eN?"#05966914":"#22c55e1f":"idle"===tw?eN?"#0d948814":"#2dd4bf1f":eN?"#94a3b814":"#6b72801f",color:"working"===tw?eN?"#047857":"#86efac":"idle"===tw?eN?"#0f766e":"#5eead4":eN?"#475569":"#9ca3af",borderColor:"currentColor",cursor:"pointer"},children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"hidden sm:inline opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-filter-prefix":!0,children:"filter: "}),(0,a.jsx)("span",{className:"font-semibold","data-filter-value":!0,children:tw}),(0,a.jsxs)("span",{className:"opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100","data-filter-pill-count":!0,children:[" · ",p]})]}),(0,a.jsx)("button",{type:"button","aria-label":`Clear ${tw} filter`,onClick:e=>{e.stopPropagation(),tj(null)},className:"ml-0.5 leading-none hover:opacity-70 transition-transform duration-200 ease-out hover:scale-110 transform-gpu",style:{background:"transparent",color:"inherit",cursor:"pointer",padding:0},children:"×"})]})),e5&&(C=Object.values(eK).filter(e=>e===e5).length,L=(A=Object.entries(eK).filter(([,e])=>e===e5).map(([e])=>e)).slice(0,8).join(", "),F=A.length>8?` + ${A.length-8} more`:"",(0,a.jsxs)("span",{"data-active-filter":"group","data-filter-match-count":C,"data-filter-match-aliases":A.join(","),className:"group inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono font-medium text-xs border anet-fade-in anet-topo-chip-focus transition-transform duration-200 ease-out hover:-translate-y-px transform-gpu","data-topo-filter-pill-hover-lift":"true",title:C>0?`${L}${F} — click to clear`:"Click to clear filter",onClick:()=>e4(null),style:{background:eN?"#67e8f914":"#67e8f91f",color:e$.legendAccent,borderColor:"currentColor",cursor:"pointer"},children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"hidden sm:inline opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-filter-prefix":!0,children:"filter: "}),(0,a.jsx)("span",{className:"font-semibold","data-filter-value":!0,children:e5}),(0,a.jsxs)("span",{className:"opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100","data-filter-pill-count":!0,children:[" · ",C]})]}),(0,a.jsx)("button",{type:"button","aria-label":`Clear group filter ${e5}`,onClick:e=>{e.stopPropagation(),e4(null)},className:"ml-0.5 leading-none hover:opacity-70 transition-transform duration-200 ease-out hover:scale-110 transform-gpu",style:{background:"transparent",color:"inherit",cursor:"pointer",padding:0},children:"×"})]})),tx&&(P=eJ.find(e=>e.initial===tx),D=P?.count??0,W=P?.color??e$.legendText,B=(I=[...eR,...eO].filter(e=>{let t=y(e.model);return("unknown"===t.id?"?":t.initial)===tx}).map(e=>e.alias)).slice(0,8).join(", "),R=I.length>8?` + ${I.length-8} more`:"",(0,a.jsxs)("span",{"data-active-filter":"vendor","data-filter-match-count":D,"data-filter-match-aliases":I.join(","),className:"group inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono font-medium text-xs border anet-fade-in anet-topo-chip-focus transition-transform duration-200 ease-out hover:-translate-y-px transform-gpu","data-topo-filter-pill-hover-lift":"true",title:D>0?`${B}${R} — click to clear`:"Click to clear vendor filter",onClick:()=>ty(null),style:{background:`${W}1f`,color:W,borderColor:"currentColor",cursor:"pointer"},children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"hidden sm:inline opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-filter-prefix":!0,children:"filter: "}),(0,a.jsx)("span",{className:"font-semibold","data-filter-value":!0,children:tx}),(0,a.jsxs)("span",{className:"opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100","data-filter-pill-count":!0,children:[" · ",D]})]}),(0,a.jsx)("button",{type:"button","aria-label":`Clear vendor filter ${tx}`,onClick:e=>{e.stopPropagation(),ty(null)},className:"ml-0.5 leading-none hover:opacity-70 transition-transform duration-200 ease-out hover:scale-110 transform-gpu",style:{background:"transparent",color:"inherit",cursor:"pointer",padding:0},children:"×"})]})),e7&&(()=>{let e=eY.find(e=>e.key===e7);if(!e)return null;let t=e.count>=10;return(0,a.jsxs)("span",{"data-active-filter":"edge","data-filter-match-count":e.count,"data-filter-match-aliases":`${e.from},${e.to}`,"data-active-filter-edge-hot":t?"true":"false",className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono font-medium text-xs border anet-fade-in anet-topo-chip-focus transition-transform duration-200 ease-out hover:-translate-y-px transform-gpu","data-topo-filter-pill-hover-lift":"true",title:`${e.from} → ${e.to} (${e.count} msg${1===e.count?"":"s"}${t?", hot lane · ≥ 10":""}) — click to clear`,onClick:()=>e9(null),style:{background:eN?`${e$.flowEdge}14`:`${e$.flowEdge}1f`,color:e$.flowEdge,borderColor:"currentColor",cursor:"pointer"},children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"hidden sm:inline opacity-70","data-filter-prefix":!0,children:"filter: "}),(0,a.jsxs)("span",{className:"font-semibold","data-filter-value":!0,children:[e.from,"→",e.to]}),t?(0,a.jsxs)("span",{className:"opacity-90 tabular-nums",style:{color:eN?"#d97706":"#fbbf24",fontWeight:700},"data-active-filter-edge-count-hot":!0,children:[" · ",e.count]}):(0,a.jsxs)("span",{className:"opacity-70 tabular-nums","data-active-filter-edge-count":!0,children:[" · ",e.count]})]}),(0,a.jsx)("button",{type:"button","aria-label":`Clear edge filter ${e.from} → ${e.to}`,onClick:e=>{e.stopPropagation(),e9(null)},className:"ml-0.5 leading-none hover:opacity-70 transition-transform duration-200 ease-out hover:scale-110 transform-gpu",style:{background:"transparent",color:"inherit",cursor:"pointer",padding:0},children:"×"})]})})(),(()=>{let e=+!!tw+ +!!e5+ +!!tx+ +!!e7;if(e<2)return null;let t=e7?eY.find(e=>e.key===e7):null,n=t?new Set([t.from,t.to]):null,o=[...eR,...eO].filter(e=>{let t="offline"!==e.status;if("working"===tw&&"working"!==e.status||"idle"===tw&&!(t&&"working"!==e.status)||"offline"===tw&&t||e5&&(eK[e.alias]??e.alias)!==e5)return!1;if(tx){let t=y(e.model);if(("unknown"===t.id?"?":t.initial)!==tx)return!1}return!n||!!n.has(e.alias)}).map(e=>e.alias),r=o.slice(0,8).join(", "),s=o.length>8?` + ${o.length-8} more`:"",i=0===o.length,l=i?`No nodes pass all ${e} pinned filters — release one to widen (Esc clears all)`:`${r}${s} — nodes passing all ${e} pinned filters`;return(0,a.jsx)("span",{"data-pin-intersection":!0,"data-pin-dim-count":e,"data-pin-intersection-count":o.length,"data-pin-intersection-empty":i?"true":"false","data-pin-intersection-aliases":o.join(","),className:"hidden sm:inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono tabular-nums text-xs border anet-fade-in anet-topo-chip-focus",title:l,style:{background:i?eN?"#d9770614":"#fbbf241f":eN?"#94a3b814":"#94a3b81f",color:i?eN?"#d97706":"#fbbf24":eN?"#475569":"#9ca3af",borderColor:"currentColor",transition:"background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out"},children:(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"hidden sm:inline opacity-70","data-pin-intersection-prefix":!0,children:"match: "}),(0,a.jsx)("span",{className:"tabular-nums","data-pin-intersection-count-dims":!0,children:e}),(0,a.jsx)("span",{className:"opacity-70","data-pin-intersection-unit":!0,children:" pins"}),(0,a.jsxs)("span",{className:"opacity-70 tabular-nums","data-pin-intersection-count-matches":!0,children:[" · ",o.length]}),(0,a.jsx)("span",{className:"ml-1","aria-hidden":!0,"data-pin-intersection-warning":i?"true":"false",style:{opacity:+!!i,transition:"opacity 200ms ease-out"},children:"⚠"})]})})})(),eJ.length>2&&(0,a.jsx)("span",{className:"hidden sm:inline-flex items-center gap-2 px-2.5 py-1 rounded-md bg-gray-500/10 text-gray-400 border border-gray-500/20 font-mono",title:"Hover to highlight; click to pin",children:eJ.map(e=>{let t=tx===e.initial,n=[...eR,...eO].filter(t=>{let a=y(t.model);return("unknown"===a.id?"?":a.initial)===e.initial}).map(e=>e.alias),o=n.slice(0,8).join(", "),r=n.length>8?` + ${n.length-8} more`:"",s=t?`${o}${r} — click again or Esc to clear`:`${o}${r} — click to pin`;return(0,a.jsxs)("span",{role:"button",tabIndex:0,"aria-pressed":t,className:"group tabular-nums font-medium inline-flex items-baseline gap-0.5 px-1 rounded anet-topo-chip-focus transition-transform duration-200 ease-out transform-gpu hover:-translate-y-px","data-vendor-letter":e.initial,"data-vendor-letter-count":e.count,"data-vendor-letter-hover-lift":"true","data-vendor-pinned":t?"true":"false","data-vendor-hovered":tf===e.initial?"true":"false","data-vendor-aliases":n.join(","),title:s,style:{cursor:"pointer",backgroundColor:tf!==e.initial||t?"transparent":`color-mix(in srgb, ${e.color} 12%, transparent)`,boxShadow:t?`inset 0 0 0 1px ${e.color}, inset 0 0 0 2px rgba(255,255,255,0.45)`:void 0,transition:"box-shadow 150ms ease-out, background-color 200ms ease-out"},onMouseEnter:()=>tg(e.initial),onMouseLeave:()=>tg(t=>t===e.initial?null:t),onClick:()=>ty(t=>t===e.initial?null:e.initial),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),ty(t=>t===e.initial?null:e.initial))},children:[(0,a.jsx)("span",{"data-vendor-letter-glyph":e.initial,"data-vendor-letter-glyph-hover":tf===e.initial?"true":"false","data-vendor-letter-glyph-font-weight":"600",style:{color:e.color,display:"inline-block",fontWeight:600,transform:tf===e.initial?"scale(1.1)":"scale(1)",transformOrigin:"center",transition:"transform 200ms ease-out"},children:e.initial}),(0,a.jsxs)("span",{className:"text-gray-400 tabular-nums opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-vendor-letter-count-suffix":!0,children:[":",e.count]})]},e.initial)})}),(H=null!==(O=eY.reduce((e,t)=>{if(!t.last_at)return e;let a=(0,m.parseHubTime)(t.last_at);return null===a?e:null===e||a>e?a:e},null))?(0,m.relativeAgo)(new Date(O).toISOString()):null,Y=eY.slice(0,6).map(e=>`${e.from}→${e.to} (${e.count})`).join(", "),X=eY.length>6?` + ${eY.length-6} more`:"",V=(K=eY.length>0)?`${Y}${X} — hover brightens all \xb7 click to open /messages`:void 0,(0,a.jsxs)("span",{className:`group tabular-nums font-medium hidden sm:inline px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-transform duration-200 ease-out transform-gpu ${K?"bg-gray-500/10 text-gray-400 border-gray-500/20 hover:bg-cyan-500/10 hover:text-cyan-200 hover:border-cyan-500/30 hover:-translate-y-px":"bg-gray-500/10 text-gray-400 border-gray-500/20"}`,"data-chip-hover-lift":K?"true":"false","data-chip-group-hover-brighten":"true","data-active-links-chip":!0,"data-active-links-flow-count":eY.length,"data-active-links-clickable":K?"true":"false","data-active-links-empty":K?"false":"true",title:V,role:K?"link":void 0,tabIndex:K?0:void 0,style:{cursor:K?"pointer":void 0,opacity:K?1:.5,transition:"color 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, opacity 200ms ease-out"},onMouseEnter:()=>{K&&ta(!0)},onMouseLeave:()=>ta(!1),onClick:()=>{K&&eC.push("/messages")},onKeyDown:e=>{K&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eC.push("/messages"))},children:[(0,a.jsx)("span",{className:"font-semibold transition-[font-weight] duration-200 group-hover:font-bold","data-active-links-chip-digit":!0,children:eY.length}),(0,a.jsxs)("span",{className:"opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-active-links-chip-unit":!0,children:[" active link",1===eY.length?"":"s"]}),H?(G=(U=null!==O?Math.max(0,(Date.now()-O)/1e3):999)<=30?1:U<=300?1-(U-30)/270*.7:.3,J=eN?`rgba(13, 148, 136, ${G.toFixed(2)})`:`rgba(34, 211, 238, ${G.toFixed(2)})`,(0,a.jsxs)("span",{className:"text-gray-400 tabular-nums","data-active-links-freshness-wrapper":!0,children:[(0,a.jsx)("span",{"data-active-links-freshness-dot":!0,"data-active-links-freshness-alpha":G.toFixed(2),style:{color:J,fontWeight:G>.7?700:400,transition:"color 200ms ease-out"},children:" · "}),"last ",H]})):null]})),(0,a.jsx)(S,{sessions:e})]})]}),(0,a.jsxs)("div",{ref:t$,className:`relative overflow-hidden rounded-xl border shadow-2xl ${eN?"shadow-zinc-900/5":"shadow-cyan-950/30"} ${tT?"flex items-center justify-center":""}`,"data-topo-wrapper":!0,style:{background:e$.containerBg,borderColor:e$.containerBorder,transition:"background-color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out"},children:[(0,a.jsx)("div",{className:`absolute inset-x-0 top-0 h-px bg-gradient-to-r ${e$.topRailGradient}`,"data-topo-top-rail":!0,style:{transition:"background-image 200ms ease-out"}}),(0,a.jsxs)("svg",{ref:t_,viewBox:"0 0 1000 680",className:"w-full h-auto block",preserveAspectRatio:"xMidYMid meet","aria-roledescription":"agent network topology","aria-label":(q=eR.length,Z=eO.length,Q=eY.length,(ee=[]).push(`${q} agent${1===q?"":"s"} online`),eG>0&&ee.push(`${eG} working`),Z>0&&ee.push(`${Z} offline`),ee.push(`${Q} active link${1===Q?"":"s"}`),`Agent network topology — ${ee.join(" · ")}. Tab to navigate nodes, double-click canvas to reset view.`),"data-topo-canvas-aria":!0,onPointerDown:e=>{0===e.button&&(e.currentTarget.setPointerCapture?.(e.pointerId),tz.current={active:!0,startX:e.clientX,startY:e.clientY,baseX:tE.current.x,baseY:tE.current.y},tK(!0))},onPointerMove:e=>{let t=tz.current;if(!t.active)return;let a=t_.current;if(!a)return;let n=a.getBoundingClientRect(),o=(e.clientX-t.startX)/n.width*1e3,r=(e.clientY-t.startY)/n.height*680;tC(e=>({...e,x:t.baseX+o,y:t.baseY+r}))},onPointerUp:tV,onPointerLeave:tV,onDoubleClick:e=>{let t=e.target;t?.closest("g[data-node]")||tq()},style:{cursor:tX?"grabbing":"grab",touchAction:"none"},children:[(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:"topo-panel",x1:"0",x2:"1",y1:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:e$.panelStops[0]}),(0,a.jsx)("stop",{offset:"48%",stopColor:e$.panelStops[1]}),(0,a.jsx)("stop",{offset:"100%",stopColor:e$.panelStops[2]})]}),(0,a.jsxs)("radialGradient",{id:"topo-radar",cx:"50%",cy:"50%",r:"55%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:e$.radarStops[0].color,stopOpacity:e$.radarStops[0].opacity}),(0,a.jsx)("stop",{offset:"45%",stopColor:e$.radarStops[1].color,stopOpacity:e$.radarStops[1].opacity}),(0,a.jsx)("stop",{offset:"100%",stopColor:e$.radarStops[2].color,stopOpacity:e$.radarStops[2].opacity})]}),!eN&&(0,a.jsxs)("filter",{id:"topo-glow",children:[(0,a.jsx)("feGaussianBlur",{stdDeviation:"4",result:"blur"}),(0,a.jsxs)("feMerge",{children:[(0,a.jsx)("feMergeNode",{in:"blur"}),(0,a.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,a.jsx)("filter",{id:"topo-groupbox-lift",x:"-10%",y:"-10%",width:"120%",height:"120%",children:(0,a.jsx)("feDropShadow",{dx:"0",dy:"3",stdDeviation:"4",floodColor:eN?"#0f172a":"#000000",floodOpacity:eN?.18:.55})}),[{id:"topo-arrow-s",size:12},{id:"topo-arrow",size:16},{id:"topo-arrow-l",size:22}].map(e=>(0,a.jsx)("marker",{id:e.id,viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:e.size,markerHeight:e.size,markerUnits:"userSpaceOnUse",orient:"auto-start-reverse",children:(0,a.jsx)("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:e$.arrowFill})},e.id)),(0,a.jsxs)("radialGradient",{id:"topo-sweep",cx:"0%",cy:"50%",r:"100%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:eN?"#0d9488":"#22d3ee",stopOpacity:eN?.18:.32}),(0,a.jsx)("stop",{offset:"70%",stopColor:eN?"#0d9488":"#22d3ee",stopOpacity:eN?.1:.18}),(0,a.jsx)("stop",{offset:"100%",stopColor:eN?"#0d9488":"#22d3ee",stopOpacity:"0"})]})]}),(0,a.jsx)("rect",{width:"1000",height:"680",fill:"url(#topo-panel)"}),(0,a.jsxs)("g",{transform:`translate(${tM.x} ${tM.y}) scale(${tM.zoom})`,"data-topo-viewport":!0,"data-topo-viewport-smooth":tG?"true":"false","data-topo-viewport-layout-switching":eL?"true":"false","data-topo-viewport-nodesize-switching":eI?"true":"false",style:{transition:tG?"opacity 250ms ease-out, transform 300ms ease-out":"opacity 250ms ease-out",opacity:eL||eI?.45:1},children:["ring"===eT&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:500,cy:330,r:"330",fill:"url(#topo-radar)",style:{pointerEvents:"none"}}),!eN&&(0,a.jsx)("g",{opacity:"0.5",style:{pointerEvents:"none"},"data-topo-starfield":!0,children:Array.from({length:14}).map((e,t)=>{let n=9301*t+49297,o=t%3==0?1.2:.7;return(0,a.jsx)("circle",{cx:13*n%1e3,cy:7*n%680,r:o,fill:"#a5b4fc",opacity:.35+t%4*.05,"data-topo-starfield-dot":t},t)})}),!1,[170,250,330].map(e=>(0,a.jsx)("circle",{cx:500,cy:330,r:e,fill:"none",stroke:e$.ringStroke,strokeWidth:"1",opacity:eN?.6:.35,"data-topo-radar-ring":e},e)),(et=eR.length>14?[145,215,285]:eR.length>8?[175,260]:eR.length>0?[220]:[],en=(ea=!!(tw||e5||tx))?e$.legendAccent:e$.ringStroke,et.map((e,t)=>{let n=eR.reduce((t,a)=>{let n=eH[a.alias];return n&&15>Math.abs(Math.hypot(n.x-500,n.y-330)-e)?t+1:t},0);if(0===n)return null;let o=n<=2?0:n<=6?1:2,r=[.24,.36,.5][o],s=[.32,.46,.62][o],i=60*Math.min(t,8);return(0,a.jsx)("circle",{cx:500,cy:330,r:e,fill:"none",stroke:en,strokeWidth:"0.7",strokeDasharray:"2 6",opacity:eN?r:s,className:"anet-fade-in",style:{pointerEvents:"none",transition:"stroke 200ms ease-out, opacity 250ms ease-out",animationDelay:`${i}ms`},"data-tier-ring":e,"data-tier-occupancy":n,"data-tier-bucket":o,"data-tier-tinted":ea?"true":"false","data-tier-fade-delay":i},`tier-${e}`)})),!1,!1]}),"ring"===eT&&(er=[2.8,2.4,2,1.6][eo=0===eG?0:eG<=2?1:eG<=5?2:3],eR.map((e,t)=>{let n=eH[e.alias];if(!n)return null;let o=j({x:500,y:330},n,0),r=eX.has(e.alias),s=!eS&&eZ===e.alias,i=r?s?.95:.8:s?.7:.5;return(0,a.jsx)("path",{d:o,fill:"none",stroke:r?e$.spokeStroke.active:e$.spokeStroke.idle,strokeWidth:r?2.25:1,strokeDasharray:r?"none":"6 14",strokeLinecap:"round",opacity:i,className:r?void 0:"anet-topo-spoke-flow","data-topo-spoke-bucket":r?void 0:eo,"data-topo-spoke-dur":r?void 0:er,"data-topo-hub-spoke-active":r?"true":"false","data-topo-hub-spoke-hovered":s?"true":"false","data-topo-hub-spoke-opacity":i,"data-topo-hub-spoke-stroke-width-active":"2.25","data-topo-hub-spoke-linecap":"round",style:{transition:"stroke 250ms ease-out, stroke-width 250ms ease-out, opacity 250ms ease-out",...r?{}:{animationDelay:`${-(.25*t)}s`,...{"--spoke-dur":`${er}s`}}}},`hub-${e.alias}`)})),eV.map((e,t)=>{let n,o,r,s,i=e3===e.key,l=e5===e.key,d=e.statuses.working,c=d>=6?8:d>=4?10:d>=2?12:14;return(0,a.jsxs)("g",{"data-group":e.key,className:"transition-opacity anet-fade-in","data-group-fade-delay":60*Math.min(t,8),style:{opacity:!e3||i?1:.28,animationDelay:`${60*Math.min(t,8)}ms`},children:[(0,a.jsx)("rect",{x:e.x,y:e.y,width:e.w,height:e.h,rx:"14",fill:eN?"#0f172a":"#a5b4fc",fillOpacity:l?eN?.08:.13:i?eN?.05:.09:eN?.025:.045,stroke:l||i?e$.legendAccent:e$.ringStroke,strokeWidth:l?3:i?2:1.5,strokeDasharray:l||i?"none":"6 6",strokeLinecap:"round",strokeLinejoin:"round","data-group-box-pinned":l?"true":"false","data-group-box-linecap":"round","data-group-box-linejoin":"round","data-group-box-live":l||i||!(e.statuses.working>0)?"false":"true","data-group-box-march-dur":c,"data-group-box-lifted":l||i?"true":"false",className:l||i||!(e.statuses.working>0)?void 0:"anet-topo-groupbox-live",filter:l||i?"url(#topo-groupbox-lift)":void 0,style:{transition:"stroke 200ms ease-out, stroke-width 200ms ease-out, fill-opacity 200ms ease-out, filter 200ms ease-out, fill 200ms ease-out",pointerEvents:"none",...{"--march-dur":`${c}s`}}}),(0,a.jsxs)("g",{role:"button",tabIndex:0,"aria-pressed":e5===e.key,"data-group-label-hit":e.key,className:"anet-topo-svg-focus",style:{pointerEvents:"all",cursor:"pointer"},onPointerDown:e=>e.stopPropagation(),onClick:()=>e4(t=>t===e.key?null:e.key),onPointerEnter:()=>e1(e.key),onPointerLeave:()=>e1(t=>t===e.key?null:t),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e4(t=>t===e.key?null:e.key))},children:[(o=(n=Object.entries(eK).filter(([,t])=>t===e.key).map(([e])=>e)).slice(0,8).join(", "),r=n.length>8?` + ${n.length-8} more`:"",s=[e.statuses.working>0?`${e.statuses.working} working`:null,e.statuses.idle>0?`${e.statuses.idle} idle`:null,e.statuses.offline>0?`${e.statuses.offline} offline`:null].filter(Boolean).join(" · "),(0,a.jsx)("title",{children:[`${e.key} (${n.length} member${1===n.length?"":"s"})`,s||null,`${o}${r}`,e5===e.key?"click to release pin":"click to pin this group"].filter(Boolean).join("\n")})),(0,a.jsx)("rect",{x:e.x+6,y:e.y+2,width:Math.min(e.w-12,240),height:20,rx:"4",fill:e5===e.key||e0===e.key?e$.legendAccent:"transparent",opacity:e5===e.key?eN?.16:.2:e0===e.key?eN?.09:.13:1,"data-group-label-tinted":e5===e.key?"pinned":e0===e.key?"hover":"none",style:{transition:"fill 150ms ease-out, opacity 150ms ease-out"}}),(0,a.jsxs)("text",{x:e.x+12,y:e.y+14,fill:i?e$.legendHeadline:e$.legendText,fontSize:"13",fontFamily:"monospace",fontWeight:"700","data-group-label-hovered":i&&!l?"true":"false",style:{transition:"fill 200ms ease-out, letter-spacing 200ms ease-out",letterSpacing:l?"0.5px":i?"0.25px":"0px"},"data-group-label":e.key,"data-group-label-pinned":l?"true":"false",children:[e.key,(0,a.jsxs)("tspan",{dx:"6",fontSize:"11",fontWeight:"500","data-group-label-count":e.key,"data-group-label-count-value":e.count,"data-group-label-count-font-weight":"500",style:{fontVariantNumeric:"tabular-nums"},children:["· ",e.count]}),e.statuses.working>0&&e.statuses.working!==e.count&&(0,a.jsxs)("tspan",{dx:"8",fill:eN?"#059669":"#22c55e",fontSize:"11",fontWeight:"600",className:"anet-fade-in","data-group-pip":"working",style:{fontVariantNumeric:"tabular-nums",transition:"fill 200ms ease-out"},children:[e.statuses.working,"w"]}),e.statuses.idle>0&&e.statuses.idle!==e.count&&(0,a.jsxs)("tspan",{dx:"4",fill:eN?"#0d9488":"#2dd4bf",fontSize:"11",fontWeight:"600",className:"anet-fade-in","data-group-pip":"idle",style:{fontVariantNumeric:"tabular-nums",transition:"fill 200ms ease-out"},children:[e.statuses.idle,"i"]}),e.statuses.offline>0&&e.statuses.offline!==e.count&&(0,a.jsxs)("tspan",{dx:"4",fill:eN?"#94a3b8":"#6b7280",fontSize:"11",fontWeight:"600",className:"anet-fade-in","data-group-pip":"offline",style:{fontVariantNumeric:"tabular-nums",transition:"fill 200ms ease-out"},children:[e.statuses.offline,"o"]})]})]})]},`grp-${e.key}`)}),eY.map((e,t)=>{let n,o,r,s,i,l,d,c,u,h,p,f=eH[e.from],g=eH[e.to];if(!f||!g)return null;let x=(t%2==0?1:-1)*Math.min(36,.18*Math.hypot(g.x-f.x,g.y-f.y)),y=j(f,g,x),b=Math.min(2+e.count,7),v=Math.max(.9,2.6/Math.sqrt(e.count)),k=Math.max(.4,1-(e.last_at?Math.max(0,Date.now()-Date.parse(e.last_at)):0)/3e5),w=e.count<=2?"topo-arrow-s":e.count<=4?"topo-arrow":"topo-arrow-l",N=(0,m.relativeAgo)(e.last_at),S=`${e.from} → ${e.to}
4
+ ${e.count} message${1===e.count?"":"s"}${N?` \xb7 last ${N}`:""}`,$=te===e.key,_=eK[e.from]??e.from,M=eK[e.to]??e.to,C=$?2:te?.35:eZ||e3?e.from===eZ||e.to===eZ?1.7:e3&&_===e3&&M===e3?1.3:.35:tt?1.5:1,E=$?Math.min(1.4*b,10):b;return(0,a.jsxs)("g",{className:"anet-fade-in",style:{animationDelay:`${280+35*Math.min(t,20)}ms`},"data-edge-group":e.key,children:[(0,a.jsx)("path",{d:y,fill:"none",stroke:"transparent",strokeWidth:Math.max(b+10,16),style:{pointerEvents:"stroke"},"data-edge-hitbox":!0,onMouseEnter:()=>e6(e.key),onMouseLeave:()=>e6(t=>t===e.key?null:t),children:(0,a.jsx)("title",{children:S})}),(0,a.jsx)("path",{d:y,fill:"none",stroke:e$.flowEdge,strokeWidth:E,strokeLinecap:"round",opacity:Math.min(1,(eN?.22:.28)*k*C),filter:eN?void 0:"url(#topo-glow)",markerEnd:`url(#${w})`,"data-edge-visible":e.key,"data-edge-visible-linecap":"round",style:{pointerEvents:"none",transition:"opacity 300ms ease-out, stroke-width 300ms ease-out, stroke 300ms ease-out"}}),(0,a.jsx)("path",{id:`flow-path-${t}`,d:y,fill:"none",stroke:e$.flowPath,strokeWidth:"1",strokeDasharray:"2 12",strokeLinecap:"round",opacity:Math.min(1,(eN?.4:.75)*k*C),"data-edge-flow-rail":e.key,"data-edge-flow-rail-linecap":"round",style:{transition:"opacity 300ms ease-out, stroke 300ms ease-out"}}),!eS&&(0,a.jsx)("circle",{r:"4.5",fill:e$.flowParticle,filter:eN?void 0:"url(#topo-glow)",opacity:Math.min(1,k*C),"data-edge-particle":e.key,"data-edge-particle-radius":"4.5",style:{transition:"fill 200ms ease-out, opacity 200ms ease-out"},children:(0,a.jsx)("animateMotion",{dur:`${v}s`,begin:`-${(.37*t%v).toFixed(3)}s`,repeatCount:"indefinite",path:y})}),!1,!1,(n=e.count>=3,o=(f.x+g.x)/2,r=(f.y+g.y)/2,s=g.x-f.x,l=Math.hypot(s,i=g.y-f.y)||1,d=o+-i/l*x*.5,c=r+s/l*x*.5,u=n?Math.min(1,k*C):0,h=e7===e.key,p=e.count>=10,(0,a.jsxs)("g",{"data-edge-count-badge":e.key,"data-edge-count-badge-pinned":h?"true":"false","data-edge-count-badge-hot":p?"true":"false","data-edge-count-badge-visible":n?"true":"false",role:n?"button":void 0,tabIndex:n?0:-1,"aria-pressed":n?h:void 0,"aria-hidden":!n||void 0,className:"anet-topo-svg-focus",style:{pointerEvents:n?"all":"none",cursor:n?"pointer":void 0,transition:"opacity 300ms ease-out"},opacity:u,onPointerDown:e=>e.stopPropagation(),onMouseEnter:()=>e6(e.key),onMouseLeave:()=>e6(t=>t===e.key?null:t),onClick:t=>{t.stopPropagation(),e9(t=>t===e.key?null:e.key);let a=Date.now();tO({ts:a,x:d,y:c,r0:10.5,color:e$.flowEdge}),setTimeout(()=>tO(e=>e&&e.ts===a?null:e),600)},onKeyDown:t=>{if("Enter"===t.key||" "===t.key){t.preventDefault(),e9(t=>t===e.key?null:e.key);let a=Date.now();tO({ts:a,x:d,y:c,r0:10.5,color:e$.flowEdge}),setTimeout(()=>tO(e=>e&&e.ts===a?null:e),600)}},children:[(0,a.jsx)("title",{children:h?`${e.from} → ${e.to} (${e.count}) — click to release pin`:`${e.from} → ${e.to} (${e.count}) — click to pin`}),(0,a.jsx)("circle",{cx:d,cy:c,r:$||h?10.5:9,fill:e$.legendBox.fill,stroke:h?e$.legendHeadline:p?eN?"#d97706":"#fbbf24":e$.flowEdge,strokeWidth:h||p?2:$?1.5:1.25,opacity:$||h?1:eN?.95:.85,"data-edge-badge-lifted":$||h?"true":"false","data-edge-badge-stroke-width-rest":"1.25","data-edge-badge-stroke-width-hover":"1.5","data-edge-badge-opacity":$||h?1:eN?.95:.85,"data-edge-badge-opacity-rest":eN?.95:.85,"data-edge-badge-opacity-hover":"1","data-edge-badge-opacity-active":"1",style:{transition:"r 180ms ease-out, stroke 300ms ease-out, stroke-width 300ms ease-out, fill 200ms ease-out, opacity 200ms ease-out"}}),(0,a.jsx)("text",{x:d,y:c+3,textAnchor:"middle",fill:e$.legendHeadline,fontSize:"11",fontFamily:"monospace",fontWeight:h||p?"800":"700","data-edge-badge-text":e.key,"data-edge-badge-text-pin":h||p?"true":"false","data-edge-badge-text-font-size":"11",style:{pointerEvents:"none",fontVariantNumeric:"tabular-nums",letterSpacing:h||p?"0.4px":$?"0.2px":"0px",transition:"letter-spacing 300ms ease-out, font-weight 300ms ease-out"},children:e.count})]}))]},e.key)}),"ring"===eT&&(0,a.jsxs)("g",{"data-topo-hub":!0,"data-topo-hub-hovered":tn?"true":"false",role:"button",tabIndex:0,"aria-label":(es=["Network hub"],eR.length>0&&es.push(`${eR.length} online`),eG>0&&es.push(`${eG} working`),eY.length>0&&es.push(`${eY.length} active link${1===eY.length?"":"s"}`),es.join(" · ")+" — Enter to fit view"),className:"anet-topo-svg-focus anet-fade-in","data-topo-hub-fade-delay":0,style:{cursor:"pointer"},onPointerDown:e=>e.stopPropagation(),onMouseEnter:()=>to(!0),onMouseLeave:()=>to(!1),onClick:()=>{tZ(),tO({ts:Date.now(),x:500,y:330,r0:18,color:eN?"#059669":"#10b981"}),setTimeout(()=>tO(e=>e&&500===e.x&&330===e.y?null:e),600)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),tZ(),tO({ts:Date.now(),x:500,y:330,r0:18,color:eN?"#059669":"#10b981"}),setTimeout(()=>tO(e=>e&&500===e.x&&330===e.y?null:e),600))},children:[(0,a.jsx)("title",{children:(ei=e.length,el=["Network hub",`${ei} session${1===ei?"":"s"}`],eR.length>0&&el.push(`${eR.length} online`),eG>0&&el.push(`${eG} working`),eY.length>0&&el.push(`${eY.length} active link${1===eY.length?"":"s"}`),el.join(" · ")+"\nclick to fit view")}),(ec=[.52,.58,.65,.72][ed=0===eG?0:eG<=2?1:eG<=5?2:3],eu=[.16,.2,.26,.32][ed],eh=[4,3.2,2.7,2.4][ed],ep=`0.34;${ec};0.34`,em=`0.1;${eu};0.1`,(0,a.jsx)("circle",{cx:500,cy:330,r:"20",fill:eN?"#d1fae5":"#10b981",opacity:eN?.42:.12,"data-hub-busyness":ed,"data-topo-hub-halo-radius":"20","data-topo-hub-halo-trough":eN?.34:.1,"data-topo-hub-halo-peak":eN?ec:eu,style:{transition:"fill 200ms ease-out"},children:!eS&&(0,a.jsx)("animate",{attributeName:"opacity",values:eN?ep:em,dur:`${eh}s`,repeatCount:"indefinite",calcMode:"spline",keyTimes:"0;0.5;1",keySplines:"0.42 0 0.58 1;0.42 0 0.58 1"})})),(0,a.jsx)("circle",{cx:500,cy:330,r:"10",fill:eN?"#059669":"#10b981","data-topo-hub-core":!0,style:{transition:"fill 200ms ease-out"}}),(0,a.jsx)("text",{x:500,y:330,textAnchor:"middle",dy:"0.36em",fill:eN?"#d1fae5":"#ecfdf5",fontSize:"12",fontFamily:"monospace",fontWeight:tn?"800":"700",opacity:+(eG>0),"data-topo-hub-working-count":eG,"data-topo-hub-working-count-font-size":"12","data-topo-hub-working-count-hovered":tn?"true":"false","data-topo-hub-working-count-visible":eG>0?"true":"false",style:{pointerEvents:"none",transform:!eS&&tn?"scale(1.08)":"scale(1)",transformBox:"fill-box",transformOrigin:"center",transition:"transform 200ms ease-out, opacity 300ms ease-out, fill 200ms ease-out, font-weight 200ms ease-out",fontVariantNumeric:"tabular-nums"},children:eG}),(0,a.jsx)("circle",{cx:500,cy:330,r:"5.5",fill:"#d1fae5",opacity:eG>0?0:.95,"data-topo-hub-highlight":!0,"data-topo-hub-highlight-visible":eG>0?"false":"true","data-topo-hub-highlight-radius":"5.5","data-topo-hub-highlight-opacity":eG>0?0:.95,style:{pointerEvents:"none",transition:"opacity 300ms ease-out"}}),(0,a.jsx)("circle",{cx:500,cy:330,r:tn?17:14,fill:"none",stroke:eN?"#059669":"#10b981",strokeWidth:"1.75",opacity:tn?eN?.85:.8:0,"data-topo-hub-hover-ring":!0,"data-topo-hub-hover-ring-radius":tn?17:14,"data-topo-hub-hover-ring-stroke-width":"1.75","data-topo-hub-hover-ring-opacity":tn?eN?.85:.8:0,style:{pointerEvents:"none",transition:"opacity 180ms ease-out, r 180ms ease-out, stroke 200ms ease-out"}})]}),[...eR,...eO].map((e,n)=>{let o,r,s,i,l,d,c,h,p,f=eH[e.alias];if(!f)return null;let g=(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],x="offline"!==e.status||!!g,b=$(e,x,eN),k=eX.has(e.alias),w=Math.round((x?26:18)*eD),j=!eq||eZ===e.alias||tM.zoom>=1.4,S=!e3||(eK[e.alias]??e.alias)===e3,_=0;if("ring"===eT){let t=eH[e.alias];if(t){let e=Math.hypot(t.x-500,t.y-330);_=e<195?0:e<270?1:e<310?2:3}}return(0,a.jsxs)("g",{"data-node":e.alias,"data-tier-idx":"ring"===eT?_:-1,role:"button",tabIndex:0,"aria-pressed":tI===e.alias,"aria-label":`Chat with ${e.alias} (${e.status})`,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),tB(e.alias),tO({ts:Date.now(),x:f.x,y:f.y,r0:w,color:b.primary}),setTimeout(()=>tO(e=>e&&Date.now()-e.ts>=590?null:e),600))},className:"group transition-opacity anet-fade-in anet-topo-svg-focus",style:{cursor:"pointer",opacity:tS&&!tS.has(e.alias)&&tI!==e.alias||tb&&tI!==e.alias&&("unknown"===(o=y(e.model)).id?"?":o.initial)!==tb||tN&&tI!==e.alias&&!("working"===tN?"working"===e.status:"idle"===tN?x&&"working"!==e.status:!x)?.28:S?tI===e.alias||x?1:.6:.32,animationDelay:"ring"===eT?`${180*_+n%6*25}ms`:`${25*Math.min(n,24)}ms`,transform:eS||eZ!==e.alias?void 0:"translateY(-2px)",transition:"transform 180ms cubic-bezier(0.4,0,0.2,1)"},onPointerDown:e=>e.stopPropagation(),onPointerEnter:()=>eQ(e.alias),onPointerLeave:()=>eQ(t=>t===e.alias?null:t),onClick:()=>{tB(e.alias),tO({ts:Date.now(),x:f.x,y:f.y,r0:w,color:b.primary}),setTimeout(()=>tO(e=>e&&Date.now()-e.ts>=590?null:e),600)},children:[(()=>{var t,n;let o,r,s,i=!x&&e.last_seen_at?(0,m.relativeAgo)(e.last_seen_at):null,l=eK[e.alias],d=l?Object.values(eK).filter(e=>e===l).length:1,c=d>1?`group: ${l} \xb7 ${d}`:null,u=0,h=0,p=new Map,f=new Map;for(let t of eY)t.from===e.alias&&(h+=t.count,f.set(t.to,(f.get(t.to)??0)+t.count)),t.to===e.alias&&(u+=t.count,p.set(t.from,(p.get(t.from)??0)+t.count));let g=e=>{let t=[...e.entries()].sort((e,t)=>t[1]-e[1]);return t.slice(0,6).map(([e,t])=>`${e} (${t})`).join(", ")+(t.length>6?` + ${t.length-6} more`:"")},b=u+h>0?`flows: ${u} in / ${h} out`:null,k=p.size>0?`← from: ${g(p)}`:null,w=f.size>0?`→ to: ${g(f)}`:null;return(0,a.jsx)("title",{children:[`${e.alias} \xb7 ${e.status}`,(t=e.model,n=e.runtime,o=y(t),r=v(n),s=[],"unknown"!==o.id&&s.push(o.label),t&&s.push(t),r&&s.push(r.label),s.join(" · ")),c,e.project_dir?`cwd: ${e.project_dir}`:null,i?`last seen: ${i}`:null,b,k,w].filter(Boolean).join("\n")})})(),(0,a.jsx)("circle",{cx:f.x,cy:f.y,r:w+12,fill:"none",stroke:b.primary,strokeWidth:"2",className:"opacity-0 group-hover:opacity-70 transition-opacity duration-150",style:{pointerEvents:"none"}}),(r=tI===e.alias,(0,a.jsx)("circle",{cx:f.x,cy:f.y,r:w+14,fill:"none",stroke:b.primary,strokeWidth:"2.5",opacity:r?eN?.85:.95:0,filter:!eN&&r?"url(#topo-glow)":void 0,style:{pointerEvents:"none",transition:"opacity 200ms ease-out, stroke 200ms ease-out, filter 200ms ease-out"},"data-chat-target-ring":!0,"data-chat-target-active":r?"true":"false","data-chat-target-breath":!eS&&r?"on":"off",children:!eS&&r&&(0,a.jsx)("animate",{attributeName:"opacity",values:eN?"0.72;0.95;0.72":"0.82;1;0.82",dur:"3s",repeatCount:"indefinite"})})),!eS&&(0,a.jsx)("g",{opacity:+!!k,"data-node-pulse":e.alias,"data-node-pulse-active":k?"true":"false",style:{transition:"opacity 300ms ease-out"},children:(0,a.jsxs)("circle",{cx:f.x,cy:f.y,r:w+14,fill:b.primary,opacity:eN?.08:.12,children:[(0,a.jsx)("animate",{attributeName:"r",values:`${w+8};${w+22};${w+8}`,dur:"2.4s",repeatCount:"indefinite",calcMode:"spline",keyTimes:"0;0.5;1",keySplines:"0.42 0 0.58 1;0.42 0 0.58 1"}),(0,a.jsx)("animate",{attributeName:"opacity",values:eN?"0.14;0.03;0.14":"0.20;0.05;0.20",dur:"2.4s",repeatCount:"indefinite",calcMode:"spline",keyTimes:"0;0.5;1",keySplines:"0.42 0 0.58 1;0.42 0 0.58 1","data-node-pulse-peak":eN?"0.14":"0.20","data-node-pulse-trough":eN?"0.03":"0.05"})]})}),(0,a.jsx)("circle",{cx:f.x,cy:f.y,r:w+8,fill:b.halo,opacity:x?eN?.85:.65:eN?.45:.3,"data-node-halo-offline-opacity":x?void 0:eN?.45:.3,className:"transition-[fill,opacity] duration-300 ease-out","data-node-halo-breath":eS||"working"!==e.status?"off":"on","data-node-halo-breath-offset":eS||"working"!==e.status?void 0:(.37*n%3).toFixed(3),children:!1}),(s=tS&&tS.has(e.alias),(0,a.jsx)("circle",{cx:f.x,cy:f.y,r:w+7,fill:"none",stroke:e$.flowEdge,strokeWidth:s?2.4:1.6,opacity:s?eN?.9:.85:0,"data-edge-endpoint-ring":!0,"data-edge-endpoint-active":s?"true":"false","data-edge-endpoint-ring-stroke-width":s?2.4:1.6,style:{pointerEvents:"none",transition:"opacity 180ms ease-out, stroke-width 180ms ease-out"}})),(0,a.jsx)("circle",{cx:f.x,cy:f.y,r:w,fill:x?e$.nodeFill.online:e$.nodeFill.offline,stroke:b.primary,strokeWidth:x?3:1.5,strokeDasharray:x?"none":"5 5",filter:x&&!eN?"url(#topo-glow)":void 0,"data-node-status-ring":b.label,style:{transition:"fill 300ms ease-out, stroke 300ms ease-out, stroke-width 300ms ease-out"}}),"red"!==eM.get(e.server)?null:(0,a.jsx)("circle",{cx:f.x,cy:f.y,r:w+8,fill:"none",stroke:eN?"#d97706":"#fbbf24",strokeWidth:"2.5",opacity:"0.6","data-node-server-health":"red","data-node-server-host":e.server,style:{pointerEvents:"none",transition:"stroke 200ms ease-out, opacity 200ms ease-out"}}),(()=>{let t=Math.round((x?14:10)*eD),n=2*w,o=y(e.model),r=/书生|书小生|intern/i.test(e.alias);if(e_||r||o.logo)return(0,a.jsx)("image",{href:o.logo??"/intern_avatar.png",x:f.x-n/2,y:f.y-n/2,width:n,height:n,preserveAspectRatio:"xMidYMid meet"});if("unknown"!==o.id)return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:f.x,cy:f.y,r:t,fill:o.mono.bg,stroke:o.mono.ring,strokeWidth:"1.5"}),(0,a.jsx)("text",{x:f.x,y:f.y,dy:"0.34em",textAnchor:"middle",fill:o.mono.text,fontSize:t,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif",fontWeight:"700","data-monogram-letter":o.initial,children:o.initial})]});let s=(0,u.aliasAvatarColors)(eK[e.alias]||e.alias);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:f.x,cy:f.y,r:t,fill:s.bg,stroke:s.ring,strokeWidth:"1"}),(0,a.jsx)("text",{x:f.x,y:f.y,dy:"0.34em",textAnchor:"middle",fill:s.text,fontSize:t,fontFamily:"monospace",fontWeight:"700",children:(0,u.aliasInitial)(e.alias)})]})})(),(()=>{let t=v(e.runtime);if(!t)return null;let n=x?7:5.5,o=f.x+.72*w,r=f.y+.72*w,s=2*n*.62,i=!eS&&eZ===e.alias;return(0,a.jsxs)("g",{style:{pointerEvents:"none"},children:[(0,a.jsx)("circle",{cx:o,cy:r,r:n,fill:e$.containerBg,stroke:t.color,strokeWidth:"1.5","data-runtime-badge":e.alias,"data-runtime-badge-active":i?"true":"false",style:{r:i?`${n+1}px`:`${n}px`,strokeWidth:i?"2px":"1.5px",transition:"r 150ms ease-out, stroke-width 150ms ease-out"}}),(0,a.jsx)("g",{transform:`translate(${o-s/2} ${r-s/2}) scale(${s/24})`,children:(0,a.jsx)("path",{d:t.iconPath,fill:"none",stroke:t.color,strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})]})})(),!1,(l=(i=eD<.8)?88:100,j?(0,a.jsxs)("g",{transform:`translate(${f.x}, ${f.y+w+(i?18:22)})`,style:{pointerEvents:"none"},className:"transition-transform duration-200 group-hover:-translate-y-[1.5px]",children:[(0,a.jsx)("rect",{x:-l/2,y:i?-12:-14,width:l,height:i?36:42,rx:"8",fill:e$.labelBox.fill,stroke:eS||eZ!==e.alias?e$.labelBox.stroke:e$.legendAccent,opacity:eS||eZ!==e.alias?eN?1:.94:1,"data-node-label-card":e.alias,"data-node-label-card-rx":"8","data-node-label-card-elevation":eS||eZ!==e.alias?"idle":"hover",style:{filter:eS||eZ!==e.alias?eN?"drop-shadow(0 1px 2px rgba(15,23,42,0.08))":"drop-shadow(0 1px 2px rgba(0,0,0,0.30))":eN?"drop-shadow(0 3px 8px rgba(15,23,42,0.20))":"drop-shadow(0 4px 12px rgba(0,0,0,0.60))",transition:"filter 220ms ease-out, stroke 220ms ease-out, fill 220ms ease-out, opacity 220ms ease-out"}}),(0,a.jsx)("text",{x:"0",y:"1",textAnchor:"middle",fill:b.text,fontSize:i?11:12,fontFamily:"monospace",fontWeight:"700","data-node-alias-text":e.alias,"data-node-alias-chat-target":tI===e.alias?"true":"false","data-node-alias-hovered":eZ===e.alias?"true":"false",style:{transition:"fill 300ms ease-out, letter-spacing 200ms ease-out",letterSpacing:tI===e.alias?"0.5px":eZ===e.alias?"0.3px":"0px"},children:N(e.alias,i?11:12)}),(0,a.jsxs)("text",{x:"0",y:i?15:17,textAnchor:"middle",fill:b.primary,fontSize:i?8:9,fontFamily:"monospace","data-node-sub-text":e.alias,"data-node-sub-text-hovered":eZ===e.alias?"true":"false",style:{transition:"fill 300ms ease-out, letter-spacing 200ms ease-out",letterSpacing:eZ===e.alias?"0.2px":"0px"},children:[b.label,x&&null!=g?` sse:${g}`:""]})]}):(0,a.jsx)("text",{x:f.x,y:f.y+w+(i?12:14),textAnchor:"middle",fill:b.text,fontSize:i?9:10,fontFamily:"monospace",fontWeight:"700",opacity:.9,className:"group-hover:-translate-y-[1.5px]","data-node-dense-alias-text":e.alias,style:{pointerEvents:"none",paintOrder:"stroke",transition:"transform 200ms ease-out, fill 300ms ease-out"},stroke:e$.containerBg,strokeWidth:"3",children:N(e.alias,i?9:10)})),!eS&&eZ===e.alias&&!eq&&(d=y(e.model),c=v(e.runtime),h=f.x>650?f.x-w-18-192:f.x+w+18,p=f.y-44,(0,a.jsxs)("g",{transform:`translate(${h}, ${p})`,"data-topo-hover-detail":e.alias,style:{pointerEvents:"none"},children:[(0,a.jsx)("rect",{x:"0",y:"0",width:192,height:88,rx:"10",fill:e$.labelBox.fill,stroke:e$.legendAccent,opacity:eN?.98:.97,"data-topo-hover-detail-opacity":eN?.98:.97,"data-topo-hover-detail-rx":"10",style:{filter:eN?"drop-shadow(0 4px 12px rgba(15,23,42,0.16))":"drop-shadow(0 4px 12px rgba(0,0,0,0.6))"}}),(0,a.jsx)("text",{x:"10",y:"16",fontSize:"9",fontFamily:"monospace",fill:e$.legendAccent,fontWeight:"700",children:"unknown"!==d.id?d.label:"—"}),(0,a.jsx)("text",{x:"10",y:"32",fontSize:"10",fontFamily:"monospace",fontWeight:"600",fill:e$.legendHeadline,"data-topo-hover-detail-model-fw":"600",children:e.model||"model · pending"}),(0,a.jsx)("text",{x:"10",y:"48",fontSize:"9",fontFamily:"monospace",fontWeight:"500",fill:e$.legendText,"data-topo-hover-detail-body-fw":"500",children:c?c.label:"runtime · pending"}),(0,a.jsxs)("text",{x:"10",y:"64",fontSize:"9",fontFamily:"monospace",fontWeight:"500",fill:e$.legendText,"data-topo-hover-detail-body-fw":"500",children:["host · ",e.server||"unknown"]}),(0,a.jsx)("text",{x:"10",y:"80",fontSize:"9",fontFamily:"monospace",fontWeight:"500",fill:e$.legendText,opacity:"0.7","data-topo-hover-detail-body-fw":"500",children:e.task?N(e.task,28):"no recent task"})]}))]},e.alias)}),tR&&!eS&&(0,a.jsxs)("circle",{cx:tR.x,cy:tR.y,r:tR.r0+4,fill:"none",stroke:tR.color,strokeWidth:"2",opacity:"0","data-click-ripple":!0,style:{pointerEvents:"none"},children:[(0,a.jsx)("animate",{attributeName:"r",values:`${tR.r0+4};${tR.r0+30}`,dur:"0.5s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.25 0.1 0.25 1",fill:"freeze"}),(0,a.jsx)("animate",{attributeName:"opacity",values:"0.8;0",dur:"0.5s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.25 0.1 0.25 1",fill:"freeze","data-click-ripple-start-opacity":"0.8"})]},tR.ts)]}),eY.length>0&&(0,a.jsxs)("g",{transform:"translate(16, 16)","data-topo-panel":"recent","data-topo-panel-hovered":"recent"===tp?"true":"false",className:"anet-fade-in","data-topo-panel-fade-delay":700,style:{animationDelay:"700ms"},onMouseEnter:()=>tm("recent"),onMouseLeave:()=>tm(e=>"recent"===e?null:e),children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"230",height:"88",rx:"10",fill:e$.legendBox.fill,stroke:"recent"===tp?e$.legendAccent:e$.legendBox.stroke,opacity:"recent"===tp?eN?1:.97:eN?.97:.92,style:{filter:"recent"===tp?eN?"drop-shadow(0 4px 12px rgba(15,23,42,0.14))":"drop-shadow(0 4px 12px rgba(0,0,0,0.65))":eN?"drop-shadow(0 2px 6px rgba(15,23,42,0.08))":"drop-shadow(0 2px 6px rgba(0,0,0,0.45))",transition:"filter 200ms ease-out, fill 200ms ease-out, stroke 200ms ease-out, opacity 200ms ease-out"},"data-topo-panel-elevation":"recent"}),(0,a.jsx)("text",{x:"13",y:"21",fill:e$.legendHeadline,fontSize:"12",fontFamily:"monospace",fontWeight:"700",letterSpacing:"recent"===tp?"0.4":"0.3",style:{transition:"fill 200ms ease-out, letter-spacing 200ms ease-out"},"data-recent-panel-title":!0,children:"recent signal"}),(ef=eY.filter(e=>e.count>=10).length,ey=(ex=null!==(eg=eY.reduce((e,t)=>{if(!t.last_at)return e;let a=Date.parse(t.last_at);return Number.isNaN(a)?e:null===e||a>e?a:e},null))?Math.max(0,(Date.now()-eg)/1e3):999)<=30?1:ex<=300?1-(ex-30)/270*.7:.3,eb=eN?`rgba(13, 148, 136, ${ey.toFixed(2)})`:`rgba(34, 211, 238, ${ey.toFixed(2)})`,(0,a.jsxs)("text",{x:"217",y:"21",textAnchor:"end",fontSize:"10",fontFamily:"monospace",letterSpacing:"0.2","data-recent-panel-count-letter-spacing":"0.2",children:[(0,a.jsxs)("tspan",{fill:eb,fontWeight:"recent"===tp?"700":"600","data-recent-panel-count":!0,"data-recent-panel-count-freshness-alpha":ey.toFixed(2),style:{transition:"fill 200ms ease-out, font-weight 200ms ease-out",fontVariantNumeric:"tabular-nums"},children:[eY.length,(0,a.jsx)("tspan",{opacity:"0.7","data-recent-panel-count-unit":!0,children:" flows"})]}),(0,a.jsx)("tspan",{fill:eN?"#d97706":"#fbbf24",fontWeight:"700","data-recent-panel-hot-count":ef,"data-recent-panel-hot-visible":ef>0?"true":"false",className:"anet-fade-in",opacity:+(ef>0),style:{transition:"opacity 300ms ease-out",fontVariantNumeric:"tabular-nums"},children:ef>0?(0,a.jsxs)(a.Fragment,{children:[` \xb7 ${ef}`,(0,a.jsx)("tspan",{opacity:"0.7","data-recent-panel-hot-count-unit":!0,children:" hot"})]}):""})]})),(0,a.jsxs)("g",{"data-recent-signal-empty-wrapper":!0,"data-recent-signal-empty-visible":0===eY.length?"true":"false",style:{opacity:+(0===eY.length),transition:"opacity 300ms ease-out",pointerEvents:"none"},children:[(0,a.jsxs)("text",{x:"115",y:"56",textAnchor:"middle",fill:e$.legendText,fontSize:"10",fontFamily:"monospace",fontStyle:"italic",letterSpacing:"0.2",opacity:.65,"data-recent-signal-empty":!0,"data-recent-signal-empty-breathes":eS?"false":"true",children:["no flow yet",!eS&&(0,a.jsx)("animate",{attributeName:"opacity",values:"0.55;0.78;0.55",dur:"4.4s",repeatCount:"indefinite"})]}),(0,a.jsxs)("text",{x:"115",y:"70",textAnchor:"middle",fill:e$.legendText,fontSize:"9",fontFamily:"monospace",fontStyle:"italic",letterSpacing:"0.15",opacity:.45,"data-recent-signal-empty-hint":!0,"data-recent-signal-empty-hint-breathes":eS?"false":"true",children:["send a message between agents",!eS&&(0,a.jsx)("animate",{attributeName:"opacity",values:"0.36;0.58;0.36",dur:"4.4s",begin:"-1.5s",repeatCount:"indefinite"})]})]}),0===eY.length?null:eY.slice(0,3).map((e,t)=>{let n,o=e.last_at?(0,m.relativeAgo)(e.last_at):null,r=o?o.replace(/\s+ago$/,""):null,s=e8===e.key,i=e7===e.key,l=s||i,d=e.last_at?(n=Math.max(0,(Date.now()-Date.parse(e.last_at))/1e3))<=30?.85:n<=300?.85-(n-30)/270*.55:.3:.55,c=e.count>=10;return(0,a.jsxs)("g",{"data-recent-row":e.key,"data-recent-row-hovered":s?"true":"false","data-recent-row-pinned":i?"true":"false","data-recent-row-hot":c?"true":"false","data-recent-row-lifted":s||i?"true":"false",className:"anet-topo-svg-focus anet-fade-in",role:"button",tabIndex:0,"aria-pressed":i,style:{cursor:"pointer",transform:s||i?"translateY(-1px)":void 0,transition:"transform 150ms cubic-bezier(0.4, 0, 0.2, 1)"},onPointerDown:e=>e.stopPropagation(),onMouseEnter:()=>e6(e.key),onMouseLeave:()=>e6(t=>t===e.key?null:t),onClick:()=>e9(t=>t===e.key?null:e.key),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e9(t=>t===e.key?null:e.key))},children:[(0,a.jsx)("title",{children:[`${e.from} → ${e.to} \xb7 ${e.count} msg${1===e.count?"":"s"}${c?" (hot lane · ≥ 10)":""}`,e.last_at?`last: ${new Date(e.last_at).toLocaleString()}`:null,e.content?`"${e.content}"`:null,i?"click to release pin (Esc to clear)":"click to pin · hover to preview"].filter(Boolean).join("\n")}),(0,a.jsx)("rect",{x:"6",y:38+16*t-10,width:"218",height:"14",rx:"3",fill:l?e$.legendAccent:"transparent",opacity:i?eN?.18:.22:s?eN?.1:.14:1,style:{transition:"fill 150ms ease-out, opacity 150ms ease-out"}}),(()=>{if(!e.last_at)return null;let n=Math.max(0,(Date.now()-Date.parse(e.last_at))/1e3),o=n<=30?1:n<=300?1-(n-30)/270*.7:.3;return(0,a.jsx)("circle",{cx:10,cy:38+16*t-3,r:2,fill:e$.legendAccent,opacity:o,"data-recent-row-freshness":e.key,"data-recent-row-freshness-alpha":o.toFixed(2),"data-recent-row-freshness-radius":"2.0",style:{pointerEvents:"none",transition:"opacity 200ms ease-out"}})})(),(0,a.jsxs)("text",{x:"13",y:38+16*t,fill:l?e$.legendHeadline:e$.legendText,fontSize:"9",fontFamily:"monospace",fontWeight:"500","data-recent-row-text":e.key,"data-recent-row-text-pinned":i?"true":"false","data-recent-row-text-font-weight":"500",style:{transition:"fill 150ms ease-out, letter-spacing 150ms ease-out",letterSpacing:i?"0.5px":"0px"},children:[N(e.from,6)," ","→"," ",N(e.to,6)," "," · ",(0,a.jsx)("tspan",{fill:c?eN?"#d97706":"#fbbf24":void 0,fontWeight:c?"700":"600","data-recent-row-count":!0,...c?{"data-recent-row-count-hot":"true"}:{},style:{transition:"fill 300ms ease-out",fontVariantNumeric:"tabular-nums"},children:e.count})," · ",(0,a.jsx)("tspan",{opacity:"0.7","data-recent-row-content-tspan":!0,children:N(e.content,8)})]}),r?(0,a.jsx)("text",{x:"217",y:38+16*t,textAnchor:"end",fill:e$.legendText,fontSize:"8",fontFamily:"monospace",opacity:d,"data-recent-row-ts":e.key,"data-recent-row-ts-alpha":d.toFixed(2),style:{pointerEvents:"none",transition:"opacity 200ms ease-out",fontVariantNumeric:"tabular-nums"},children:r}):null]},e.key)}),(ev=eY.length>3,ek=Math.max(0,eY.length-3),ew=`+ ${ek} more flow${1===ek?"":"s"}`,(0,a.jsxs)("g",{"data-recent-panel-more-nav":!0,"data-recent-panel-more-visible":ev?"true":"false",role:ev?"link":void 0,tabIndex:ev?0:-1,"aria-hidden":!ev||void 0,className:"anet-topo-svg-focus",style:{cursor:ev?"pointer":void 0,pointerEvents:ev?"all":"none",opacity:+!!ev,transition:"opacity 300ms ease-out"},onPointerDown:e=>e.stopPropagation(),onMouseEnter:()=>{ev&&ts(!0)},onMouseLeave:()=>ts(!1),onClick:()=>{ev&&eC.push("/messages")},onKeyDown:e=>{ev&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eC.push("/messages"))},children:[(0,a.jsx)("title",{children:`${ew} — open /messages for the full list`}),(0,a.jsxs)("text",{x:"115",y:"82",textAnchor:"middle",fill:tr?e$.legendAccent:e$.legendText,fontSize:"9",fontFamily:"monospace",fontStyle:"italic",fontWeight:"500",letterSpacing:tr?"0.3":"0.2",opacity:tr?.85:.55,textDecoration:tr?"underline":"none","data-recent-panel-more":ek,"data-recent-panel-more-hovered":tr?"true":"false","data-recent-panel-more-font-weight":"500",style:{transition:"opacity 150ms ease-out, fill 200ms ease-out, letter-spacing 200ms ease-out"},children:[`+ ${ek}`,(0,a.jsx)("tspan",{opacity:"0.7","data-recent-panel-more-unit":!0,children:` more flow${1===ek?"":"s"}`})]})]}))]}),(0,a.jsxs)("g",{transform:"translate(760, 16)","data-topo-panel":"legend","data-topo-panel-hovered":"legend"===tp?"true":"false",className:"anet-fade-in","data-topo-panel-fade-delay":800,style:{animationDelay:"800ms"},onMouseEnter:()=>tm("legend"),onMouseLeave:()=>tm(e=>"legend"===e?null:e),children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"224",height:"88",rx:"10",fill:e$.legendBox.fill,stroke:"legend"===tp?e$.legendAccent:e$.legendBox.stroke,opacity:"legend"===tp?eN?1:.97:eN?.97:.92,style:{filter:"legend"===tp?eN?"drop-shadow(0 4px 12px rgba(15,23,42,0.14))":"drop-shadow(0 4px 12px rgba(0,0,0,0.65))":eN?"drop-shadow(0 2px 6px rgba(15,23,42,0.08))":"drop-shadow(0 2px 6px rgba(0,0,0,0.45))",transition:"filter 200ms ease-out, fill 200ms ease-out, stroke 200ms ease-out, opacity 200ms ease-out"},"data-topo-panel-elevation":"legend"}),(0,a.jsx)("text",{x:"13",y:"21",fill:e$.legendHeadline,fontSize:"12",fontFamily:"monospace",fontWeight:"700",letterSpacing:"legend"===tp?"0.4":"0.3",style:{transition:"fill 200ms ease-out, letter-spacing 200ms ease-out"},"data-legend-panel-title":!0,children:"legend"}),(0,a.jsxs)("text",{x:"211",y:"21",textAnchor:"end",fill:e$.legendAccent,fontSize:"10",fontFamily:"monospace",fontWeight:"legend"===tp?"700":"600",letterSpacing:"0.2","data-legend-panel-count":!0,"data-legend-panel-count-letter-spacing":"0.2",style:{transition:"fill 200ms ease-out, font-weight 200ms ease-out",fontVariantNumeric:"tabular-nums"},children:[e.length,(0,a.jsxs)("tspan",{opacity:"0.7","data-legend-panel-count-unit":!0,children:[" node",1===e.length?"":"s"]})]}),(ej=eR.length-eG,[{key:"working",y0:32,y1:36,fill:eN?"#059669":"#22c55e",label:"working",count:eG},{key:"idle",y0:50,y1:54,fill:eN?"#0d9488":"#2dd4bf",label:"idle",count:ej},{key:"offline",y0:68,y1:72,fill:eN?"#94a3b8":"#6b7280",label:"offline",count:eO.length}]).map(e=>{let t,n,o,r=tw===e.key,s=tv===e.key,i=s||r;return(0,a.jsxs)("g",{"data-legend-status":e.key,"data-legend-row-lifted":i?"true":"false",className:"anet-topo-svg-focus",role:"button",tabIndex:0,"aria-pressed":r,style:{cursor:"pointer",transform:i?"translateY(-1px)":void 0,transition:"transform 150ms cubic-bezier(0.4, 0, 0.2, 1)"},onPointerDown:e=>e.stopPropagation(),onMouseEnter:()=>tk(e.key),onMouseLeave:()=>tk(t=>t===e.key?null:t),onClick:()=>tj(t=>t===e.key?null:e.key),children:[(0,a.jsx)("title",{children:(n=(t="working"===e.key?eR.filter(e=>"working"===e.status).map(e=>e.alias):"idle"===e.key?eR.filter(e=>"working"!==e.status).map(e=>e.alias):eO.map(e=>e.alias)).slice(0,8).join(", "),o=t.length>8?` + ${t.length-8} more`:"",[`${e.label} \xb7 ${e.count}`,t.length>0?`${n}${o}`:null,r?"click to release pin (Esc to clear)":"click to pin · hover to preview"].filter(Boolean).join("\n"))}),(0,a.jsx)("rect",{x:"6",y:e.y0-11,width:"170",height:"22",rx:"3",fill:tv===e.key||r?e.fill:"transparent",opacity:r?eN?.14:.18:tv===e.key?eN?.08:.12:1,"data-legend-row-tinted":r?"pinned":tv===e.key?"hover":"none",style:{transition:"fill 150ms ease-out, opacity 150ms ease-out"}}),(0,a.jsx)("circle",{cx:"16",cy:e.y0,r:"6",fill:e.fill,"data-legend-swatch":e.key,"data-legend-swatch-state":r?"pinned":s?"hover":"idle",style:{r:s||r?"7px":"6px",transition:"r 150ms ease-out"}}),(0,a.jsx)("circle",{cx:"16",cy:e.y0,r:"8",fill:"none",stroke:e.fill,strokeWidth:"1.75",opacity:+!!r,"data-legend-pin-ring":e.key,"data-legend-pin-ring-pinned":r?"true":"false","data-legend-pin-ring-stroke-width":"1.75",style:{pointerEvents:"none",transition:"opacity 150ms ease-out"}}),(0,a.jsx)("text",{x:"30",y:e.y1,fill:tv===e.key||r?e$.legendHeadline:e$.legendText,fontSize:"11",fontFamily:"monospace",fontWeight:"500","data-legend-row-label":e.key,"data-legend-row-label-pinned":r?"true":"false","data-legend-row-label-font-weight":"500",style:{transition:"fill 150ms ease-out, letter-spacing 150ms ease-out",letterSpacing:r?"0.5px":"0px"},children:e.label}),(0,a.jsx)("text",{x:"215",y:e.y1,textAnchor:"end",fill:e.count>0&&(tv===e.key||r)?e.fill:e$.legendText,fontSize:"11",fontFamily:"monospace",fontWeight:"600",opacity:0===e.count?eN?.28:.3:tv===e.key||r?.95:.65,"data-legend-count":e.key,"data-legend-count-empty":0===e.count?"true":"false","data-legend-count-fill":e.count>0&&(tv===e.key||r)?"tier":"neutral",style:{pointerEvents:"none",transition:"opacity 150ms ease-out, fill 150ms ease-out",fontVariantNumeric:"tabular-nums"},children:e.count})]},e.key)}),(0,a.jsx)("path",{d:"M140,68 Q164,44 196,68",fill:"none",stroke:e$.flowEdge,strokeWidth:"3",markerEnd:"url(#topo-arrow)","data-legend-flow-arrow":!0,style:{pointerEvents:"none",transition:"stroke 200ms ease-out"}})]}),(0,a.jsx)("text",{x:"16",y:"672",fontSize:"11",fontFamily:"monospace",fontWeight:"600",letterSpacing:"0.5",fill:e$.legendText,opacity:"0.4","data-topo-brand-watermark":!0,style:{pointerEvents:"none",transition:"fill 200ms ease-out"},children:"sleep2agi"}),(0,a.jsxs)("g",{opacity:.35*(0===eY.length),"data-topo-brand-canvas-mark":!0,"data-topo-brand-canvas-mark-visible":0===eY.length?"true":"false",style:{pointerEvents:"none",transition:"opacity 300ms ease-out, fill 200ms ease-out"},children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("mask",{id:"s2a-canvas-corner-mask",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"28",height:"28",fill:"black"}),(0,a.jsx)("circle",{cx:"14",cy:"14",r:"12",fill:"white"}),(0,a.jsx)("circle",{cx:"17.5",cy:"13",r:"10",fill:"black"})]})}),(0,a.jsx)("rect",{x:"16",y:"16",width:"28",height:"28",fill:e$.legendText,mask:"url(#s2a-canvas-corner-mask)"})]})]}),(()=>{if(.01>Math.abs(tM.zoom-1)&&1>Math.abs(tM.x)&&1>Math.abs(tM.y)||eR.length+eO.length===0)return null;let e=-tM.x/tM.zoom*.12,n=-tM.y/tM.zoom*.12058823529411765,o=1e3/tM.zoom*.12,r=680/tM.zoom*.12058823529411765;return(0,a.jsx)("div",{className:"absolute right-4 rounded-lg border shadow-lg shadow-black/30 overflow-hidden anet-fade-in anet-topo-chip-focus",style:{bottom:56,background:e$.legendBox.fill,borderColor:e$.containerBorder,cursor:"crosshair",color:e$.legendAccent,transition:"background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out"},role:"button",tabIndex:0,"aria-label":"Topology minimap — click to recenter, Enter to reset view",title:"Minimap · click to recenter · Enter to reset view",onClick:e=>{let t=e.currentTarget.getBoundingClientRect(),a=(e.clientX-t.left)/t.width,n=(e.clientY-t.top)/t.height;tC(e=>({...e,x:500-1e3*a*e.zoom,y:340-680*n*e.zoom}))},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),tq())},onMouseEnter:()=>tl(!0),onMouseLeave:()=>tl(!1),onFocus:()=>tl(!0),onBlur:()=>tl(!1),"data-topo-minimap":!0,"data-topo-minimap-hovered":ti?"true":"false",children:(0,a.jsxs)("svg",{width:120,height:82,viewBox:"0 0 120 82",style:{display:"block"},children:[[...eR,...eO].map(e=>{let n=eH[e.alias];if(!n)return null;let o=(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],r="offline"!==e.status||!!o,s=$(e,r,eN);return(0,a.jsx)("circle",{cx:.12*n.x,cy:.12058823529411765*n.y,r:r?1.9:1.2,fill:s.primary,opacity:r?ti?1:.95:.6,"data-topo-minimap-dot":e.alias,"data-topo-minimap-dot-online":r?"true":"false","data-topo-minimap-dot-opacity":r?ti?1:.95:.6,"data-topo-minimap-dot-radius":r?1.9:1.2,style:{transition:"opacity 200ms ease-out, fill 200ms ease-out, r 200ms ease-out"}},e.alias)}),(0,a.jsx)("rect",{x:Math.max(0,e),y:Math.max(0,n),width:Math.max(0,Math.min(120-Math.max(0,e),o)),height:Math.max(0,Math.min(82-Math.max(0,n),r)),rx:"2",fill:"none",stroke:e$.legendAccent,strokeWidth:ti?"1.75":"1.5",strokeLinejoin:"round",opacity:ti?"1":"0.9","data-topo-minimap-viewport":!0,"data-topo-minimap-viewport-rx":"2","data-topo-minimap-viewport-smooth":tG?"true":"false","data-topo-minimap-viewport-hover":ti?"true":"false","data-topo-minimap-viewport-linejoin":"round",style:{transition:tG?"x 280ms ease-out, y 280ms ease-out, width 280ms ease-out, height 280ms ease-out, stroke-width 200ms ease-out, opacity 200ms ease-out":"stroke-width 200ms ease-out, opacity 200ms ease-out"}})]})})})(),(0,a.jsxs)("div",{className:"absolute bottom-4 right-4 flex items-center gap-2 text-xs select-none","data-topo-chrome":!0,children:[(0,a.jsx)("div",{className:"flex items-center rounded-lg border overflow-hidden","data-topo-chrome-nodesize-radius":"rounded-lg",style:{background:e$.legendBox.fill,borderColor:e$.containerBorder,transition:"background-color 200ms ease-out, border-color 200ms ease-out"},role:"group","aria-label":"Node size","data-topo-chrome-fleet-group-trailer":!0,children:[["S",.7],["M",.84],["L",1]].map(([e,t],n)=>{let o=`size-${e}`;return(0,a.jsx)("button",{onClick:()=>{tW(o);if(t!==eD){eB(!0),setTimeout(()=>eB(!1),400),eW(t);try{localStorage.setItem("anet-topo-nodescale",String(t))}catch{}}},"aria-pressed":eD===t,"data-topo-chrome-nodesize":e,"data-topo-chrome-nodesize-active":eD===t?"true":"false","data-topo-chrome-nodesize-popping":tP===o?"true":"false",title:`Node size: ${"S"===e?"small":"M"===e?"medium":"large"}`,className:`px-2 py-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset ${n>0?"border-l":""} ${eD===t?"bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25":"hover:bg-cyan-500/5 active:bg-cyan-500/15"}${tP===o?" anet-chrome-pop":""}`,style:{color:eD===t?void 0:e$.legendText,borderColor:e$.containerBorder},children:e},e)})}),(0,a.jsxs)("div",{className:"ml-1.5 flex items-center rounded-lg border overflow-hidden","data-topo-chrome-zoom-wrapper-radius":"rounded-lg",style:{background:e$.legendBox.fill,borderColor:e$.containerBorder,transition:"background-color 200ms ease-out, border-color 200ms ease-out"},"data-topo-chrome-view-group-leader":!0,"data-topo-chrome-zoom-wrapper":!0,children:[(0,a.jsx)("button",{onClick:()=>{tW("zoom-out"),tU(1/1.2)},"data-topo-chrome-zoom-out":!0,"data-topo-chrome-zoom-out-popping":"zoom-out"===tP?"true":"false",className:"group px-2 py-1 hover:bg-white/5 active:bg-white/10 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset",style:{color:e$.legendText},"aria-label":"Zoom out",title:"Zoom out (−)",children:(0,a.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round","aria-hidden":!0,className:`transition-transform duration-200 ease-out group-hover:scale-110 transform-gpu${"zoom-out"===tP?" anet-chrome-pop":""}`,"data-topo-chrome-zoom-out-icon":!0,children:(0,a.jsx)("path",{d:"M5 12h14"})})}),(0,a.jsxs)("span",{className:`px-2 py-1 tabular-nums font-medium border-x text-center${"zoom-in"===tP||"zoom-out"===tP?" anet-chrome-pop":""}`,"data-topo-chrome-zoom-level":!0,"data-topo-chrome-zoom-level-popping":"zoom-in"===tP||"zoom-out"===tP?"true":"false","data-topo-chrome-zoom-level-hover":td?"true":"false",onMouseEnter:()=>tc(!0),onMouseLeave:()=>tc(!1),style:{color:e$.legendText,borderColor:e$.containerBorder,minWidth:46,display:"inline-block",letterSpacing:td?"0.5px":"0",fontWeight:td?600:500,transition:"color 200ms ease-out, border-color 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out"},title:"Current zoom level",children:[Math.round(100*tM.zoom),"%"]}),(0,a.jsx)("button",{onClick:()=>{tW("zoom-in"),tU(1.2)},"data-topo-chrome-zoom-in":!0,"data-topo-chrome-zoom-in-popping":"zoom-in"===tP?"true":"false",className:"group px-2 py-1 hover:bg-white/5 active:bg-white/10 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset",style:{color:e$.legendText},"aria-label":"Zoom in",title:"Zoom in (+)",children:(0,a.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round","aria-hidden":!0,className:`transition-transform duration-200 ease-out group-hover:scale-110 transform-gpu${"zoom-in"===tP?" anet-chrome-pop":""}`,"data-topo-chrome-zoom-in-icon":!0,children:(0,a.jsx)("path",{d:"M12 5v14M5 12h14"})})})]}),(0,a.jsx)("button",{onClick:()=>{tF(!0),setTimeout(()=>tF(!1),460),tq()},"data-topo-chrome-reset":!0,"data-topo-chrome-reset-spinning":tL?"true":"false","data-topo-chrome-reset-hover":tu?"true":"false",onMouseEnter:()=>th(!0),onMouseLeave:()=>th(!1),onFocus:()=>th(!0),onBlur:()=>th(!1),className:"p-1.5 rounded-md border hover:bg-white/5 active:bg-white/10 hover:-translate-y-px transition-colors transition-transform duration-200 ease-out transform-gpu focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60","data-topo-chrome-reset-hover-lift":"true",style:{background:e$.legendBox.fill,borderColor:e$.containerBorder,color:e$.legendText},"aria-label":"Reset view",title:"Reset zoom + pan (0, or double-click the canvas)",children:(0,a.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:tL?"anet-reset-spin":void 0,"data-topo-chrome-reset-icon":!0,style:{transform:tu&&!tL?"rotate(-8deg)":"rotate(0deg)",transformOrigin:"center",transition:"transform 200ms ease-out"},"data-topo-chrome-reset-icon-hover":tu&&!tL?"true":"false",children:[(0,a.jsx)("path",{d:"M3 12a9 9 0 1 0 9-9 9 9 0 0 0-6.4 2.6L3 8"}),(0,a.jsx)("path",{d:"M3 3v5h5"})]})}),(0,a.jsx)("button",{onClick:()=>{tW("fullscreen");let e=t$.current;if(e)if(document.fullscreenElement)document.exitFullscreen?.();else{let t=e.requestFullscreen||e.webkitRequestFullscreen;t?.call(e)}},"data-topo-chrome-fullscreen":!0,"data-topo-chrome-fullscreen-active":tT?"true":"false","data-topo-chrome-fullscreen-popping":"fullscreen"===tP?"true":"false",className:`group p-1.5 rounded-md border hover:-translate-y-px transition-colors transition-transform duration-200 ease-out transform-gpu focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 ${tT?"bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25":"hover:bg-cyan-500/5 active:bg-cyan-500/15"}${"fullscreen"===tP?" anet-chrome-pop":""}`,"data-topo-chrome-fullscreen-hover-lift":"true",style:{borderColor:e$.containerBorder,...tT?{}:{background:e$.legendBox.fill,color:e$.legendText}},"aria-label":tT?"Exit fullscreen":"Enter fullscreen",title:tT?"Exit fullscreen":"Fullscreen",children:tT?(0,a.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"transition-transform duration-200 ease-out group-hover:scale-110 transform-gpu","data-topo-chrome-fullscreen-icon":"exit",children:(0,a.jsx)("path",{d:"M8 3v4a1 1 0 0 1-1 1H3M21 8h-4a1 1 0 0 1-1-1V3M3 16h4a1 1 0 0 1 1 1v4M16 21v-4a1 1 0 0 1 1-1h4"})}):(0,a.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"transition-transform duration-200 ease-out group-hover:scale-110 transform-gpu","data-topo-chrome-fullscreen-icon":"enter",children:(0,a.jsx)("path",{d:"M3 8V5a2 2 0 0 1 2-2h3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M21 16v3a2 2 0 0 1-2 2h-3"})})})]}),tI&&(0,a.jsx)(f,{alias:tI,onClose:()=>tB(null)})]})]})}let A={working:{bg:"bg-green-900/30 border-green-800/30",text:"text-green-300",dot:"bg-green-500",glow:"shadow-green-500/10"},idle:{bg:"bg-cyan-900/30 border-cyan-800/30",text:"text-cyan-300",dot:"bg-cyan-400",glow:"shadow-cyan-500/5"},blocked:{bg:"bg-yellow-900/30 border-yellow-800/30",text:"text-yellow-300",dot:"bg-yellow-500",glow:""},error:{bg:"bg-red-900/30 border-red-800/30",text:"text-red-300",dot:"bg-red-500",glow:""}},L={bg:"bg-gray-800/50 border-gray-700/30",text:"text-gray-500",dot:"bg-gray-500",glow:""};function F({session:e,hasSse:t,sseCount:n,onChat:s}){let i=t&&A[e.status]||L;return(0,a.jsxs)(o.default,{href:`/node?alias=${encodeURIComponent(e.alias)}`,prefetch:!1,className:`anet-agent-card group relative block rounded-xl border p-4 transition-all duration-300 cursor-pointer hover:-translate-y-0.5 ${t?`bg-[#111128] border-[#2a2a4a] hover:border-cyan-500/30 hover:shadow-lg ${i.glow}`:"bg-[#0d0d1a] border-[#1a1a2a] opacity-40"}`,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)(u.AliasAvatar,{alias:e.alias,size:22}),(0,a.jsx)("span",{className:"font-semibold text-white truncate text-sm",title:e.alias,children:e.alias}),(0,a.jsx)("span",{className:`inline-block w-1.5 h-1.5 rounded-full shrink-0 ${i.dot} ${t&&"working"===e.status?"animate-pulse":""}`})]}),(0,a.jsx)("span",{className:`text-[11px] px-2 py-0.5 rounded-md border shrink-0 ${i.bg} ${i.text}`,children:t?e.status:"offline"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("span",{className:"text-xs text-gray-600 bg-[#0a0a15] px-2 py-0.5 rounded border border-[#1a1a2a]",children:e.agent||"unknown"}),t&&(0,a.jsxs)("span",{className:"text-[10px] text-green-500",children:["SSE:",n]})]}),e.task?(0,a.jsx)("div",{className:"text-xs text-gray-400 bg-[#0a0a15] rounded-lg px-3 py-2 border border-[#1a1a2a] line-clamp-2",title:e.task,children:e.task}):(0,a.jsx)("div",{className:"text-xs text-gray-700 italic",children:"No active task"}),e.progress>0&&(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsxs)("div",{className:"flex justify-between text-[10px] mb-1",children:[(0,a.jsx)("span",{className:"text-gray-600",children:"Progress"}),(0,a.jsxs)("span",{className:i.text,children:[e.progress,"%"]})]}),(0,a.jsx)("div",{className:"w-full bg-gray-800 rounded-full h-1.5 overflow-hidden",children:(0,a.jsx)("div",{className:`h-1.5 rounded-full transition-all duration-700 ${"working"===e.status?"bg-green-500":"bg-cyan-500"}`,style:{width:`${Math.min(e.progress,100)}%`}})})]}),(0,a.jsxs)("div",{className:"mt-3 flex justify-between items-center text-[10px] text-gray-600",children:[(0,a.jsx)("span",{className:"truncate",title:e.server||"",children:e.server||"--"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[s&&t&&(0,a.jsx)("button",{onClick:t=>{t.preventDefault(),t.stopPropagation(),s(e.alias)},className:"text-cyan-400 hover:text-cyan-300 px-1.5 py-0.5 rounded border border-cyan-500/20 hover:bg-cyan-500/10 transition-colors",children:"Chat"}),(0,a.jsx)("span",{children:(0,r.timeAgo)(e.updated_at)}),(0,a.jsx)("svg",{"aria-hidden":!0,className:"w-3 h-3 text-gray-700 opacity-0 -translate-x-1 group-hover:opacity-100 group-hover:translate-x-0 transition-all duration-200",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M9 18l6-6-6-6"})})]})]})]})}function P({messages:e}){return 0===e.length?null:(0,a.jsxs)("div",{className:"mt-8",children:[(0,a.jsxs)("h2",{className:"text-lg font-semibold text-white mb-3 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-gray-500",children:"Inbox"}),(0,a.jsx)("span",{className:"text-xs bg-blue-900/30 text-blue-400 px-2 py-0.5 rounded-full border border-blue-800/30",children:e.length})]}),(0,a.jsx)("div",{className:"space-y-2 max-h-96 overflow-y-auto pr-1 scrollbar-thin",children:e.map(e=>(0,a.jsxs)("div",{className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm transition-colors hover:border-[#3a3a5a]",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs mb-1.5",children:[e.from_session&&(0,a.jsx)(u.AliasAvatar,{alias:e.from_session,size:16}),(0,a.jsx)("span",{className:"text-gray-200 font-medium truncate",children:e.from_session}),(0,a.jsx)("span",{className:"ml-auto text-gray-600 shrink-0",title:e.created_at,children:(0,r.timeAgo)(e.created_at)})]}),(0,a.jsx)("div",{className:"text-gray-300 leading-relaxed line-clamp-3",title:e.content||"",children:(0,r.previewContent)(e.content)})]},e.id))})]})}function D(){return(0,a.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 mb-8 anet-skeleton-pulse",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-[#2a2a4a] bg-[#111128] px-4 py-3",children:[(0,a.jsx)(W,{w:"2.5rem",h:"1.75rem"}),(0,a.jsx)(W,{w:"3.5rem",h:"0.75rem",className:"mt-2"}),(0,a.jsx)(W,{w:"5rem",h:"0.625rem",className:"mt-1"})]},e))}),(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-3 anet-skeleton-pulse",children:[(0,a.jsx)(W,{w:"6rem",h:"2.5rem",rounded:"0.75rem"}),(0,a.jsxs)("div",{className:"flex-1 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-2.5 flex items-center gap-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full anet-skeleton-bar"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)(W,{w:"6rem",h:"0.875rem"}),(0,a.jsx)(W,{w:"10rem",h:"0.625rem",className:"mt-1"})]})]})]}),(0,a.jsx)("div",{className:"mb-6 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 anet-skeleton-pulse",children:(0,a.jsx)(W,{w:"14rem",h:"0.875rem"})}),(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2 sm:gap-3 mb-3 anet-skeleton-pulse",children:[1,2,3].map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-[#2a2a4a] bg-[#111128] px-3 py-3",children:[(0,a.jsx)(W,{w:"2rem",h:"1.25rem"}),(0,a.jsx)(W,{w:"2.5rem",h:"0.75rem",className:"mt-1"}),(0,a.jsx)(W,{w:"3.5rem",h:"0.625rem",className:"mt-px"})]},e))}),(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2 sm:gap-3 mb-6 anet-skeleton-pulse",children:[1,2,3].map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-[#2a2a4a] bg-[#111128] px-3 py-2.5 flex items-center justify-center gap-2",children:[(0,a.jsx)("div",{className:"w-4 h-4 rounded anet-skeleton-bar"}),(0,a.jsx)(W,{w:"4rem",h:"0.75rem"})]},e))}),(0,a.jsxs)("div",{className:"mb-6 flex gap-2 anet-skeleton-pulse",children:[(0,a.jsx)("div",{className:"flex-1 h-10 rounded-lg border border-[#2a2a4a] bg-[#111128]"}),(0,a.jsx)("div",{className:"w-28 h-10 rounded-lg anet-skeleton-bar"})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-3 sm:gap-4 anet-skeleton-pulse",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-[#2a2a4a] bg-[#111128] p-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-2 h-2 rounded-full anet-skeleton-bar"}),(0,a.jsx)(W,{w:"6rem",h:"0.875rem"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(W,{w:"100%",h:"0.625rem"}),(0,a.jsx)(W,{w:"75%",h:"0.625rem"}),(0,a.jsx)(W,{w:"55%",h:"0.625rem"})]})]},e))})]})}function W({w:e,h:t,rounded:n,className:o}){return(0,a.jsx)("div",{className:`anet-skeleton-bar ${o||""}`,style:{width:e,height:t,borderRadius:n||"0.375rem"}})}var I=e.i(76161),B=e.i(98025),R=e.i(11449);function O(){let{setNetworkId:e}=(0,R.useNetworkId)(),[t,o]=(0,n.useState)({user:null,networks:[],currentNetwork:"",token:""}),[r,s]=(0,n.useState)(!1),[i,l]=(0,n.useState)(""),[d,c]=(0,n.useState)(""),[u,h]=(0,n.useState)(""),[p,m]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=sessionStorage.getItem("anet_v3_auth");if(e)try{o(JSON.parse(e))}catch{}},[]);let[f,g]=(0,n.useState)(!1),[x,y]=(0,n.useState)(""),[b,v]=(0,n.useState)(""),k=async()=>{try{await fetch(`/api/hub/auth?token=${t.token}&endpoint=/api/auth/me`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update_profile",token:t.token,display_name:x,email:b})});let e=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update_profile",token:t.token,display_name:x,email:b})}),a=await e.json();if(a.ok&&a.user){let e={...t,user:a.user};o(e),sessionStorage.setItem("anet_v3_auth",JSON.stringify(e)),g(!1)}}catch{}};if(!t.user)return null;let w=(t.user.display_name||t.user.username).slice(0,2).toUpperCase();return(0,a.jsxs)("div",{className:"flex items-center justify-between bg-[#111128] border border-[#2a2a4a] rounded-lg px-4 py-2.5 mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-cyan-500 to-blue-600 flex items-center justify-center text-xs font-bold text-white",children:w}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-sm text-white font-medium",children:t.user.display_name||t.user.username}),(0,a.jsxs)("div",{className:"text-[10px] text-gray-500",children:[t.user.role," · ",t.user.user_id]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[t.networks.length>0&&(0,a.jsx)("select",{value:t.currentNetwork,onChange:a=>{let n={...t,currentNetwork:a.target.value};o(n),e(a.target.value),sessionStorage.setItem("anet_v3_auth",JSON.stringify(n))},className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white focus:outline-none",children:t.networks.map(e=>(0,a.jsx)("option",{value:e.network_id,children:e.network_name},e.network_id))}),(0,a.jsxs)("button",{onClick:()=>{y(t.user?.display_name||""),v(""),g(!f)},className:"text-xs text-gray-500 hover:text-gray-300 whitespace-nowrap","aria-label":"Edit profile",children:[(0,a.jsx)("span",{className:"hidden sm:inline",children:"Edit"}),(0,a.jsx)("svg",{className:"sm:hidden w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.862 4.487z"})})]}),(0,a.jsxs)("button",{onClick:()=>{o({user:null,networks:[],currentNetwork:"",token:""}),sessionStorage.removeItem("anet_v3_auth")},className:"text-xs text-gray-500 hover:text-gray-300 whitespace-nowrap","aria-label":"Sign out",children:[(0,a.jsx)("span",{className:"hidden sm:inline",children:"Sign out"}),(0,a.jsx)("svg",{className:"sm:hidden w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"})})]})]}),f&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-2 pt-2 border-t border-[#2a2a4a]",children:[(0,a.jsx)("input",{type:"text",value:x,onChange:e=>y(e.target.value),placeholder:"Display name",className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white placeholder-gray-600 focus:outline-none w-32"}),(0,a.jsx)("input",{type:"email",value:b,onChange:e=>v(e.target.value),placeholder:"Email",className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white placeholder-gray-600 focus:outline-none w-40"}),(0,a.jsx)("button",{onClick:k,className:"px-2 py-1 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded",children:"Save"})]})]})}var H=e.i(6694);function Y({tabs:e,activeTab:t,onOpenTab:n,onCloseTab:o,onSetActive:r,onClose:s}){return 0===e.length?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{onClick:s,className:"jsx-f7cf3d1a6fdfc074 fixed inset-0 bg-black/30 z-40 lg:hidden"}),(0,a.jsxs)("div",{className:"jsx-f7cf3d1a6fdfc074 fixed top-0 right-0 h-full w-full lg:w-[500px] bg-[#0a0a1a] border-l border-[#2a2a4a] z-50 flex flex-col shadow-2xl shadow-black/60 animate-slide-in",children:[(0,a.jsxs)("div",{className:"jsx-f7cf3d1a6fdfc074 flex items-center border-b border-[#2a2a4a] bg-[#0d0d1a] overflow-x-auto",children:[(0,a.jsx)("div",{className:"jsx-f7cf3d1a6fdfc074 flex-1 flex min-w-0",children:e.map(e=>(0,a.jsxs)("button",{onClick:()=>r(e),className:`jsx-f7cf3d1a6fdfc074 flex items-center gap-1.5 px-3 py-2.5 text-xs border-b-2 transition-colors shrink-0 ${t===e?"border-cyan-400 text-cyan-300 bg-cyan-500/5":"border-transparent text-gray-500 hover:text-gray-300"}`,children:[(0,a.jsx)("div",{className:`jsx-f7cf3d1a6fdfc074 w-2 h-2 rounded-full ${t===e?"bg-cyan-400":"bg-gray-600"}`}),(0,a.jsx)("span",{className:"jsx-f7cf3d1a6fdfc074 max-w-[80px] truncate",children:e}),(0,a.jsx)("button",{onClick:t=>{t.stopPropagation(),o(e)},className:"jsx-f7cf3d1a6fdfc074 ml-1 text-gray-600 hover:text-gray-300 p-0.5",children:"×"})]},e))}),(0,a.jsx)("button",{onClick:s,className:"jsx-f7cf3d1a6fdfc074 text-gray-500 hover:text-white px-3 py-2.5 shrink-0 border-l border-[#2a2a4a]",children:(0,a.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,className:"jsx-f7cf3d1a6fdfc074 w-4 h-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12",className:"jsx-f7cf3d1a6fdfc074"})})})]}),(0,a.jsx)("div",{className:"jsx-f7cf3d1a6fdfc074 flex-1 relative overflow-hidden",children:e.map(e=>(0,a.jsx)("div",{className:`jsx-f7cf3d1a6fdfc074 absolute inset-0 ${t===e?"block":"hidden"}`,children:(0,a.jsx)(X,{alias:e})},e))})]}),(0,a.jsx)(H.default,{id:"f7cf3d1a6fdfc074",children:"@keyframes slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}.animate-slide-in{animation:.2s ease-out slide-in}"})]})}function X({alias:e}){return(0,a.jsx)(h.TaskChatPanel,{alias:e,onClose:()=>{},inline:!0})}function K({sessions:e,onClose:t}){let[o,r]=(0,n.useState)(new Set),[s,i]=(0,n.useState)(""),[l,d]=(0,n.useState)("normal"),[c,h]=(0,n.useState)(!1),[p,m]=(0,n.useState)([]),[f,g]=(0,n.useState)(""),x=e.filter(e=>"offline"!==e.status).filter(e=>!f||e.alias.toLowerCase().includes(f.toLowerCase())||(e.agent||"").toLowerCase().includes(f.toLowerCase())),y=async()=>{if(!s.trim()||0===o.size||c)return;h(!0),m([]);let e=[...o].map(async e=>{try{let t=await fetch("/api/hub/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({alias:e,task:s,priority:l})}),a=await t.json();return{alias:e,ok:!!a.ok,error:a.error}}catch(t){return{alias:e,ok:!1,error:"send failed"}}});m(await Promise.all(e)),h(!1)},b=p.filter(e=>e.ok).length;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black/50 z-40 anet-fade-in",onClick:t}),(0,a.jsxs)("div",{className:"fixed inset-4 lg:inset-x-[15%] lg:inset-y-[5%] bg-[#0a0a1a] border border-[#2a2a4a] rounded-2xl z-50 flex flex-col shadow-2xl shadow-black/70 overflow-hidden anet-fade-in",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 border-b border-[#2a2a4a] bg-[#0d0d1a]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg font-bold text-white",children:"Dispatch Task"}),(0,a.jsx)("p",{className:"text-xs text-gray-500 mt-0.5",children:"Send a task to one or more agents"})]}),(0,a.jsx)("button",{onClick:t,className:"text-gray-500 hover:text-white p-1.5 rounded-lg hover:bg-[#1a1a2a]",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,a.jsxs)("div",{className:"flex-1 flex flex-col lg:flex-row overflow-hidden",children:[(0,a.jsxs)("div",{className:"lg:w-[280px] border-b lg:border-b-0 lg:border-r border-[#2a2a4a] flex flex-col",children:[(0,a.jsxs)("div",{className:"px-4 py-3 border-b border-[#2a2a4a]",children:[(0,a.jsx)("input",{type:"text",value:f,onChange:e=>g(e.target.value),placeholder:"Filter agents...",className:"w-full bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-xs text-white placeholder-gray-600 focus:border-cyan-500/40 focus:outline-none"}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,a.jsx)("button",{onClick:()=>{o.size===x.length?r(new Set):r(new Set(x.map(e=>e.alias)))},className:"text-[10px] text-cyan-400 hover:text-cyan-300",children:o.size===x.length?"Deselect all":`Select all (${x.length})`}),(0,a.jsxs)("span",{className:"text-[10px] text-gray-600",children:[o.size," selected"]})]})]}),(0,a.jsxs)("div",{className:"flex-1 overflow-y-auto px-2 py-2 space-y-0.5 max-h-[200px] lg:max-h-none",children:[x.map(e=>(0,a.jsxs)("button",{onClick:()=>{var t;return t=e.alias,void r(e=>{let a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a})},className:`w-full flex items-center gap-2 px-3 py-2 rounded-lg text-xs text-left transition-colors ${o.has(e.alias)?"bg-cyan-500/10 text-cyan-300 border border-cyan-500/20":"text-gray-400 hover:bg-[#1a1a2a]"}`,children:[(0,a.jsx)(u.AliasAvatar,{alias:e.alias,size:16}),(0,a.jsx)("div",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${"working"===e.status?"bg-green-400":"idle"===e.status?"bg-cyan-400":"bg-gray-500"}`}),(0,a.jsx)("span",{className:"truncate flex-1",children:e.alias}),(0,a.jsx)("span",{className:"text-[9px] text-gray-600",children:e.agent||"--"})]},e.alias)),0===x.length&&(0,a.jsx)("div",{className:"text-center text-xs text-gray-600 py-4",children:"No online agents"})]})]}),(0,a.jsxs)("div",{className:"flex-1 flex flex-col",children:[(0,a.jsxs)("div",{className:"flex-1 px-6 py-4 flex flex-col",children:[(0,a.jsx)("label",{className:"text-xs text-gray-500 uppercase mb-2",children:"Task Prompt"}),(0,a.jsx)("textarea",{value:s,onChange:e=>i(e.target.value),placeholder:"Enter the task you want to dispatch...",className:"flex-1 min-h-[120px] bg-[#111128] border border-[#2a2a4a] rounded-xl px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/40 focus:outline-none resize-none"}),(0,a.jsxs)("div",{className:"flex items-center gap-3 mt-4",children:[(0,a.jsxs)("select",{value:l,onChange:e=>d(e.target.value),className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-xs text-white focus:outline-none",children:[(0,a.jsx)("option",{value:"normal",children:"Normal priority"}),(0,a.jsx)("option",{value:"high",children:"High priority"}),(0,a.jsx)("option",{value:"low",children:"Low priority"})]}),(0,a.jsx)("div",{className:"flex-1"}),(0,a.jsx)("button",{onClick:y,disabled:c||!s.trim()||0===o.size,className:"px-6 py-2.5 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-xl transition-all shadow-lg shadow-cyan-500/10 disabled:shadow-none active:scale-95",children:c?(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Sending..."]}):`Dispatch to ${o.size} agent${o.size>1?"s":""}`})]})]}),p.length>0&&(0,a.jsxs)("div",{className:"px-6 py-3 border-t border-[#2a2a4a] bg-[#0d0d1a]",children:[(0,a.jsxs)("div",{className:"text-xs text-gray-500 mb-2",children:[b,"/",p.length," dispatched successfully"]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:p.map(e=>(0,a.jsxs)("span",{className:`flex items-center gap-1.5 text-[10px] pl-1 pr-2 py-0.5 rounded-full border ${e.ok?"text-green-300 border-green-500/20 bg-green-500/5":"text-red-300 border-red-500/20 bg-red-500/5"}`,children:[(0,a.jsx)(u.AliasAvatar,{alias:e.alias,size:14}),(0,a.jsx)("span",{children:e.alias}),(0,a.jsx)("span",{"aria-hidden":!0,children:e.ok?"✓":e.error||"✗"})]},e.alias))})]})]})]})]})]})}var V=e.i(2684),U=e.i(50111);e.s(["default",0,function(){let e,i,d,c,h;(0,n.useEffect)(()=>{sessionStorage.getItem("anet_v3_auth")||(fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login"))},[]);let{sessions:m,hint:f,error:g,isLoading:x}=(0,p.useSessions)(),{health:y}=(0,p.useHealth)(),{config:b}=(0,p.useAnetConfig)(),{tasks:v}=(0,p.useTasks)({limit:"500"}),{stats:k}=(0,p.useStats)(),[w,j]=(0,n.useState)(window.innerWidth>=1024),[N,S]=(0,n.useState)(!1),$=function(){let[e,t]=(0,n.useState)([]),[a,o]=(0,n.useState)("");return{tabs:e,activeTab:a,openTab:e=>{t(t=>t.includes(e)?t:[...t,e]),o(e)},closeTab:e=>{t(t=>{let n=t.filter(t=>t!==e);return a===e&&o(n[n.length-1]||""),n})},closeAll:()=>{t([]),o("")},setActiveTab:o}}(),[_,M]=(0,n.useState)(!1),[C,E]=(0,n.useState)([]),[z,A]=(0,n.useState)("all"),[L,W]=(0,n.useState)(null),{mutate:R}=(0,U.useSWRConfig)(),H="1"!==t.default.env.NEXT_PUBLIC_DISABLE_SSE,{connected:X,supported:G}=(0,V.useSSE)({url:"/api/hub/events",enabled:H,onEvent:e=>{if("node.renamed"===e.type){R("/api/hub/status");let t=e.data;t?.old_alias&&t?.new_alias&&W({from:t.old_alias,to:t.new_alias,ts:Date.now()});return}["new_task","new_message","new_reply","node_status_changed","broadcast"].includes(e.type)&&(R("/api/hub/status"),R(e=>"string"==typeof e&&e.startsWith("/api/hub/tasks"),void 0,{revalidate:!0}))}});if((0,n.useEffect)(()=>{let e=()=>{fetch("/api/hub/inbox").then(e=>e.json()).then(e=>{e.messages?.length&&E(t=>{let a=new Set(t.map(e=>e.id));return[...e.messages.filter(e=>!a.has(e.id)),...t].slice(0,100)})}).catch(()=>{})};e();let t=setInterval(e,1e4);return()=>clearInterval(t)},[]),x)return(0,a.jsx)(D,{});let J=y?.sse_sessions||{},q=e=>(e.network_id?J[`${e.network_id}:${e.alias}`]:void 0)??J[e.alias],Z=e=>"offline"!==e.status||!!q(e),Q=m.filter(Z).length,ee=m.length,et=m.filter(e=>"working"===e.status).length,ea=y?(0,r.formatUptime)(y.uptime):"--",en=y?.version||"--",eo=!!(b?.hub&&b.tokenConfigured),er=b?.source==="file"?"Local config":b?.source==="runtime-env"?"Runtime env":"Config missing",es={};if(k?.tasks?.by_status?.length)for(let e of k.tasks.by_status)es[e.status]=e.count;else for(let e of v)es[e.status]=(es[e.status]||0)+1;let ei=[...m].sort((e,t)=>{let a=+!!Z(e),n=+!!Z(t);if(a!==n)return n-a;let o=+("working"===e.status);return("working"===t.status)-o}),el=0===m.length&&!g;return(0,a.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,a.jsx)("div",{className:"lg:ml-0 ml-10",children:(0,a.jsx)(s,{online:Q,working:et,total:ee,version:en,uptime:ea})}),(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[!el&&(0,a.jsx)("button",{onClick:()=>M(!0),className:"px-4 py-2 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 text-white text-sm font-medium rounded-xl shadow-lg shadow-cyan-500/10 transition-all active:scale-95 shrink-0",children:"⚡ Dispatch"}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(O,{})})]}),(0,a.jsxs)("section",{className:"mb-6 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 shadow-lg shadow-black/20",children:[(0,a.jsxs)("button",{onClick:()=>S(!N),className:"w-full flex items-center justify-between text-left",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,a.jsx)("span",{className:"uppercase text-gray-600",children:"Config"}),(0,a.jsx)("span",{className:`w-2 h-2 rounded-full ${eo?"bg-green-400":"bg-red-400"}`}),(0,a.jsx)("span",{className:"text-gray-500",children:er})]}),(0,a.jsx)("svg",{className:`w-4 h-4 text-gray-600 transition-transform ${N?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),N&&(0,a.jsxs)("div",{className:"mt-3 pt-3 border-t border-[#2a2a4a]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("div",{className:"min-w-0",children:(0,a.jsxs)("div",{className:"text-gray-100 truncate text-sm",title:b?.hub||void 0,children:["Hub: ",(0,a.jsx)("span",{className:b?.hub?"text-cyan-300":"text-red-300",children:b?.hub?.trim()||"not configured"})]})}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2 text-xs",children:(0,a.jsxs)("span",{className:`px-2.5 py-1 rounded-md border ${b?.tokenConfigured?"bg-blue-500/5 text-blue-300 border-blue-500/20":"bg-gray-500/5 text-gray-400 border-gray-500/20"}`,children:["Token: ",b?.tokenPreview||"not configured"]})})]}),b?.error&&(0,a.jsx)("div",{className:"mt-2 text-xs text-gray-600",children:b.error})]})]}),Object.keys(es).length>0&&(0,a.jsxs)("section",{className:"mb-6 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 shadow-lg shadow-black/20",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("div",{className:"text-xs uppercase text-gray-600",children:"Task Status"}),(0,a.jsx)(o.default,{href:"/tasks",prefetch:!1,className:"text-xs text-cyan-400 hover:text-cyan-300",children:"View all →"})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:["running","delivered","acked","replied","created","failed","cancelled","expired","closed"].filter(e=>es[e]).map(e=>(0,a.jsxs)(o.default,{href:`/tasks?status=${e}`,prefetch:!1,className:`px-2.5 py-1 rounded-md border text-xs ${B.STATUS_CHIP_CLASS[e]} hover:opacity-80 transition-opacity`,children:[e,": ",es[e]]},e))})]}),!el&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-[10px] uppercase tracking-[0.12em] text-gray-600 mb-2",children:"Quick navigation"}),(0,a.jsx)("section",{className:"mb-3 grid grid-cols-3 gap-2 sm:gap-3",children:(e=m.filter(e=>Z(e)&&"working"!==e.status).length,i=ee-Q,d=v.filter(e=>"failed"===e.status).length,[{href:"/nodes",label:"Nodes",value:`${Q}/${ee}`,sub:`${ee>0?Math.round(Q/ee*100):0}% online`,color:"text-green-400 border-green-500/20",popover:0===ee?null:[{k:"working",v:et,dot:"",color:"#4ade80"},{k:"idle",v:e,dot:"",color:"#22d3ee"},{k:"offline",v:i,dot:"",color:"#9ca3af"}]},{href:"/tasks",label:"Tasks",value:String(Object.values(es).reduce((e,t)=>e+t,0)||0),sub:"all-time",color:"text-cyan-400 border-cyan-500/20",popover:0===Object.keys(es).length?null:["running","replied","failed","cancelled","expired","closed","created","delivered","acked"].filter(e=>es[e]).map(e=>({k:e,v:es[e],dot:"",color:({running:"#4ade80",replied:"#a78bfa",failed:"#f87171",cancelled:"#facc15",expired:"#fb923c",closed:"#9ca3af",created:"#9ca3af",delivered:"#60a5fa",acked:"#22d3ee"})[e]||"#9ca3af"}))},{href:"/tasks?status=failed",label:"Failed",value:String(es.failed||0),sub:es.failed?"needs review":"none",color:es.failed?"text-red-400 border-red-500/25":"text-gray-500 border-gray-700/30",popover:d?[{k:`${d} in current view`,v:"",dot:"",color:"#f87171"}]:[{k:"no failures yet",v:"",dot:"",color:"#4b5563"}]}].map(e=>(0,a.jsxs)(o.default,{href:e.href,prefetch:!1,className:`anet-stat-link group relative rounded-xl border ${e.color} bg-[#111128] px-3 py-3 transition-all hover:-translate-y-px`,children:[(0,a.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,a.jsx)("div",{className:`text-xl font-semibold tabular-nums ${e.color.split(" ")[0]}`,children:e.value}),(0,a.jsx)("div",{className:"hidden sm:block text-[10px] text-gray-600 group-hover:text-gray-400 transition-colors",children:"View →"})]}),(0,a.jsx)("div",{className:"text-[11px] text-gray-400 mt-0.5",children:e.label}),(0,a.jsx)("div",{className:"text-[10px] text-gray-600 mt-px",children:e.sub}),e.popover&&e.popover.length>0&&(0,a.jsxs)("div",{className:"anet-stat-popover hidden md:block pointer-events-none absolute left-2 right-2 top-full mt-1 z-20 rounded-lg border border-[#2a2a4a] bg-[#0d0d1a] shadow-lg shadow-black/30 px-3 py-2 opacity-0 translate-y-[-2px] group-hover:opacity-100 group-hover:translate-y-0 transition-all duration-150 delay-100",children:[(0,a.jsx)("div",{className:"text-[10px] text-gray-600 uppercase tracking-wider mb-1.5",children:"Breakdown"}),(0,a.jsx)("ul",{className:"space-y-1",children:e.popover.map(e=>(0,a.jsxs)("li",{className:"flex items-center gap-2 text-[11px]",children:[(0,a.jsx)("span",{className:"inline-block w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:e.color},"aria-hidden":!0}),(0,a.jsx)("span",{className:"text-gray-400 capitalize",children:e.k}),""!==e.v&&(0,a.jsx)("span",{className:"ml-auto text-gray-300 tabular-nums font-medium",children:e.v})]},e.k))})]})]},e.href)))}),(0,a.jsx)("section",{className:"mb-6 grid grid-cols-3 gap-2 sm:gap-3",children:[{href:"/messages",label:"Messages",icon:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"},{href:"/logs",label:"Audit log",icon:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z M14 2v6h6 M16 13H8 M16 17H8 M10 9H8"},{href:"/admin",label:"Admin",icon:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4z M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2"}].map(e=>(0,a.jsxs)(o.default,{href:e.href,prefetch:!1,className:"anet-nav-tile flex items-center justify-center gap-2 rounded-xl border border-[#2a2a4a] bg-[#111128] px-3 py-2.5 text-[12px] text-gray-400 hover:text-gray-200 transition-colors",children:[(0,a.jsx)("svg",{className:"w-4 h-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:e.icon})}),(0,a.jsx)("span",{children:e.label})]},e.href))}),(0,a.jsx)(l,{}),v.length>0&&(0,a.jsxs)("section",{className:"mb-6 bg-[#111128] border border-[#2a2a4a] rounded-xl p-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,a.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Recent Activity"}),(0,a.jsx)(o.default,{href:"/tasks",className:"text-xs text-cyan-400 hover:text-cyan-300",children:"All tasks →"})]}),(0,a.jsx)("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:v.slice(0,5).map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:B.STATUS_DOT_HEX[e.status]||"#6b7280"}}),e.from_name&&(0,a.jsx)(u.AliasAvatar,{alias:e.from_name,size:14}),(0,a.jsx)("span",{className:"text-gray-300 shrink-0 max-w-[20%] truncate",children:e.from_name||"?"}),(0,a.jsx)("span",{className:"text-gray-600",children:"→"}),e.to_name&&(0,a.jsx)(u.AliasAvatar,{alias:e.to_name,size:14}),(0,a.jsx)("span",{className:"text-gray-300 shrink-0 max-w-[20%] truncate",children:e.to_name||"?"}),(0,a.jsx)("span",{className:"text-gray-500 truncate flex-1",title:e.content||"",children:(0,r.previewContent)(e.content).slice(0,60)}),(0,a.jsx)("span",{className:`shrink-0 px-1.5 py-0.5 rounded text-[10px] border ${B.STATUS_CHIP_CLASS[e.status]||"text-gray-500 border-gray-700/30"}`,children:e.status})]},e.task_id))})]})]}),g&&(0,a.jsxs)("div",{className:"bg-red-900/20 border border-red-800/40 text-red-300 px-4 py-3 rounded-lg mb-6 text-sm flex items-center justify-between",role:"alert",children:[(0,a.jsx)("span",{children:String(g)}),(0,a.jsx)("span",{className:"text-gray-500 text-xs",children:"Check CommHub connection"})]}),m.length>0&&(0,a.jsx)("div",{className:"flex justify-center mb-4",children:(0,a.jsx)("button",{onClick:()=>j(!w),className:"text-xs text-gray-500 hover:text-gray-300 border border-gray-700/50 px-4 py-1.5 rounded-lg transition-colors hover:border-gray-600 cursor-pointer",children:w?"Hide Topology":"Show Topology"})}),!w&&m.length>0&&(0,a.jsx)("div",{className:"lg:hidden text-center text-xs text-gray-600 mb-4",children:"Topology hidden on mobile for better readability"}),w&&m.length>0&&(0,a.jsx)(T,{sessions:m,sseSessions:J,renameSignal:L}),0!==m.length||g?(c={all:ei.length,working:ei.filter(e=>Z(e)&&"working"===e.status).length,idle:ei.filter(e=>Z(e)&&"working"!==e.status).length,offline:ei.filter(e=>!Z(e)).length},h=ei.filter(e=>"all"===z||("offline"===z?!Z(e):"working"===z?Z(e)&&"working"===e.status:"idle"!==z||Z(e)&&"working"!==e.status)),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb-3 flex flex-wrap items-center gap-1",children:[{key:"all",label:"All"},{key:"working",label:"Working",dot:"#4ade80"},{key:"idle",label:"Idle",dot:"#22d3ee"},{key:"offline",label:"Offline",dot:"#6b7280"}].map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>A(e.key),disabled:0===c[e.key]&&"all"!==e.key,className:`flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs transition-colors disabled:opacity-30 disabled:cursor-not-allowed ${z===e.key?"bg-cyan-500/10 text-cyan-300 border border-cyan-500/30":"text-gray-500 hover:text-gray-200 hover:bg-[#1a1a2a] border border-transparent"}`,children:[e.dot&&(0,a.jsx)("span",{"aria-hidden":!0,className:"inline-block w-1.5 h-1.5 rounded-full",style:{backgroundColor:e.dot}}),(0,a.jsx)("span",{children:e.label}),(0,a.jsx)("span",{className:`text-[10px] tabular-nums ${z===e.key?"text-cyan-400":"text-gray-600"}`,children:c[e.key]})]},e.key))}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 gap-3 sm:gap-4",children:h.map(e=>(0,a.jsx)(F,{session:e,hasSse:Z(e),sseCount:q(e)||0,onChat:$.openTab},e.alias))}),0===h.length&&(0,a.jsxs)("div",{className:"mt-4 text-center text-xs text-gray-600",children:['No agents match "',z,'" — ',(0,a.jsx)("button",{onClick:()=>A("all"),className:"underline hover:text-gray-400",children:"Show all"})]})]})):(0,a.jsx)(I.NodesEmptyState,{hint:f,taskHistoryCount:Object.values(es).reduce((e,t)=>e+t,0)}),(0,a.jsx)(P,{messages:C}),(0,a.jsx)("div",{className:"mt-8 text-center text-xs text-gray-600 flex items-center justify-center gap-2 flex-wrap",children:G&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:`w-1.5 h-1.5 rounded-full ${X?"bg-green-400":"bg-gray-600"}`}),X?"SSE live":"SWR polling"]})}),_&&(0,a.jsx)(K,{sessions:m,onClose:()=>M(!1)}),$.tabs.length>0&&(0,a.jsx)(Y,{tabs:$.tabs,activeTab:$.activeTab,onOpenTab:$.openTab,onCloseTab:$.closeTab,onSetActive:$.setActiveTab,onClose:$.closeAll})]})}],18722)}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":298,"timestamp":159942983191,"id":4,"parentId":1,"tags":{},"startTime":1778967915229,"traceId":"7ad317f4aa862705"},{"name":"load-custom-routes","duration":639,"timestamp":159942983691,"id":5,"parentId":1,"tags":{},"startTime":1778967915230,"traceId":"7ad317f4aa862705"},{"name":"create-dist-dir","duration":955,"timestamp":159942984390,"id":6,"parentId":1,"tags":{},"startTime":1778967915231,"traceId":"7ad317f4aa862705"},{"name":"clean","duration":36027,"timestamp":159942986098,"id":7,"parentId":1,"tags":{},"startTime":1778967915232,"traceId":"7ad317f4aa862705"},{"name":"discover-routes","duration":23983,"timestamp":159943107320,"id":8,"parentId":1,"tags":{},"startTime":1778967915354,"traceId":"7ad317f4aa862705"},{"name":"create-root-mapping","duration":113,"timestamp":159943131365,"id":9,"parentId":1,"tags":{},"startTime":1778967915378,"traceId":"7ad317f4aa862705"},{"name":"generate-route-types","duration":21327,"timestamp":159943133888,"id":10,"parentId":1,"tags":{},"startTime":1778967915380,"traceId":"7ad317f4aa862705"},{"name":"public-dir-conflict-check","duration":104,"timestamp":159943155323,"id":11,"parentId":1,"tags":{},"startTime":1778967915402,"traceId":"7ad317f4aa862705"},{"name":"generate-routes-manifest","duration":4887,"timestamp":159943155545,"id":12,"parentId":1,"tags":{},"startTime":1778967915402,"traceId":"7ad317f4aa862705"},{"name":"run-turbopack","duration":6112393,"timestamp":159943166418,"id":14,"parentId":1,"tags":{},"startTime":1778967915413,"traceId":"7ad317f4aa862705"},{"name":"turbopack-build-events","duration":99,"timestamp":159943472467,"id":15,"parentId":1,"tags":{},"startTime":1778967915719,"traceId":"7ad317f4aa862705"},{"name":"run-typescript","duration":9762145,"timestamp":159949286793,"id":16,"parentId":1,"tags":{},"startTime":1778967921533,"traceId":"7ad317f4aa862705"},{"name":"generate-required-server-files","duration":3037,"timestamp":159959050441,"id":18,"parentId":1,"tags":{},"startTime":1778967931297,"traceId":"7ad317f4aa862705"},{"name":"check-static-error-page","duration":15569,"timestamp":159959241982,"id":20,"parentId":19,"tags":{},"startTime":1778967931488,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":414508,"timestamp":159959261627,"id":65,"parentId":22,"tags":{},"startTime":1778967931508,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":431045,"timestamp":159959245250,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778967931492,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":556086,"timestamp":159959263503,"id":71,"parentId":30,"tags":{},"startTime":1778967931510,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":570635,"timestamp":159959249068,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778967931495,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":580099,"timestamp":159959264263,"id":72,"parentId":32,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":594996,"timestamp":159959249463,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778967931496,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":581642,"timestamp":159959263042,"id":69,"parentId":28,"tags":{},"startTime":1778967931509,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":595942,"timestamp":159959248784,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778967931495,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":582809,"timestamp":159959262095,"id":67,"parentId":26,"tags":{},"startTime":1778967931508,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":596426,"timestamp":159959248515,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778967931495,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":590394,"timestamp":159959262882,"id":68,"parentId":27,"tags":{},"startTime":1778967931509,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":604706,"timestamp":159959248639,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778967931495,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":598019,"timestamp":159959261766,"id":66,"parentId":25,"tags":{},"startTime":1778967931508,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":611517,"timestamp":159959248340,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778967931495,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":600869,"timestamp":159959264648,"id":76,"parentId":36,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":615247,"timestamp":159959250318,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778967931497,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":603280,"timestamp":159959264585,"id":74,"parentId":34,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":618225,"timestamp":159959249696,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778967931496,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":608728,"timestamp":159959264626,"id":75,"parentId":35,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":623579,"timestamp":159959249822,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778967931496,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":618017,"timestamp":159959264488,"id":73,"parentId":33,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":633202,"timestamp":159959249585,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778967931496,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":623643,"timestamp":159959264710,"id":78,"parentId":38,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":637762,"timestamp":159959250636,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778967931497,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":628449,"timestamp":159959264756,"id":81,"parentId":42,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":642025,"timestamp":159959251235,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778967931498,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":631915,"timestamp":159959264688,"id":77,"parentId":37,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":646145,"timestamp":159959250499,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778967931497,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":634241,"timestamp":159959264806,"id":83,"parentId":45,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":647263,"timestamp":159959251834,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778967931498,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":637642,"timestamp":159959264821,"id":84,"parentId":46,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":648874,"timestamp":159959253630,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778967931500,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":637852,"timestamp":159959264791,"id":82,"parentId":44,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":651000,"timestamp":159959251681,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778967931498,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":638569,"timestamp":159959264872,"id":85,"parentId":47,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":649698,"timestamp":159959253795,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778967931500,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":640041,"timestamp":159959264723,"id":79,"parentId":39,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":654083,"timestamp":159959250736,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778967931497,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":641653,"timestamp":159959263330,"id":70,"parentId":29,"tags":{},"startTime":1778967931510,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":656128,"timestamp":159959248903,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778967931495,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":642751,"timestamp":159959264917,"id":88,"parentId":50,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":653549,"timestamp":159959254158,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778967931500,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":642176,"timestamp":159959269752,"id":91,"parentId":31,"tags":{},"startTime":1778967931516,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":662770,"timestamp":159959249200,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778967931495,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":647719,"timestamp":159959270641,"id":92,"parentId":41,"tags":{},"startTime":1778967931517,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":667447,"timestamp":159959250962,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778967931497,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":653840,"timestamp":159959264739,"id":80,"parentId":40,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":667755,"timestamp":159959250859,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778967931497,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":660328,"timestamp":159959264884,"id":86,"parentId":48,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":671343,"timestamp":159959253913,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778967931500,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":660553,"timestamp":159959264900,"id":87,"parentId":49,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":671437,"timestamp":159959254064,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778967931500,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":656123,"timestamp":159959272434,"id":93,"parentId":43,"tags":{},"startTime":1778967931519,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":677214,"timestamp":159959251382,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778967931498,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":660995,"timestamp":159959268575,"id":90,"parentId":24,"tags":{},"startTime":1778967931515,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":683859,"timestamp":159959245751,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778967931492,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":671497,"timestamp":159959264932,"id":89,"parentId":51,"tags":{},"startTime":1778967931511,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":682240,"timestamp":159959254242,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778967931501,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":704209,"timestamp":159959261234,"id":64,"parentId":21,"tags":{},"startTime":1778967931508,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":721869,"timestamp":159959243645,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778967931490,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":703794,"timestamp":159959274833,"id":94,"parentId":23,"tags":{},"startTime":1778967931521,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":733388,"timestamp":159959245518,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778967931492,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":713904,"timestamp":159959274947,"id":100,"parentId":58,"tags":{},"startTime":1778967931521,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":732729,"timestamp":159959256182,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778967931502,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":715827,"timestamp":159959274869,"id":95,"parentId":52,"tags":{},"startTime":1778967931521,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":736141,"timestamp":159959254620,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778967931501,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":715826,"timestamp":159959275105,"id":101,"parentId":59,"tags":{},"startTime":1778967931521,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":734569,"timestamp":159959256392,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778967931503,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":716205,"timestamp":159959274886,"id":96,"parentId":53,"tags":{},"startTime":1778967931521,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":736353,"timestamp":159959254781,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778967931501,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":722942,"timestamp":159959274931,"id":99,"parentId":56,"tags":{},"startTime":1778967931521,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":742548,"timestamp":159959255373,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778967931502,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":723007,"timestamp":159959275161,"id":104,"parentId":63,"tags":{},"startTime":1778967931521,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":740902,"timestamp":159959257311,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778967931504,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":729981,"timestamp":159959274900,"id":97,"parentId":54,"tags":{},"startTime":1778967931521,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":749989,"timestamp":159959254942,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778967931501,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":721930,"timestamp":159959283124,"id":105,"parentId":60,"tags":{},"startTime":1778967931529,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":748519,"timestamp":159959256571,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778967931503,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":730670,"timestamp":159959274915,"id":98,"parentId":55,"tags":{},"startTime":1778967931521,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":750460,"timestamp":159959255169,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778967931501,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":709954,"timestamp":159959295911,"id":106,"parentId":57,"tags":{},"startTime":1778967931542,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":750299,"timestamp":159959255604,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778967931502,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":732438,"timestamp":159959275133,"id":102,"parentId":61,"tags":{},"startTime":1778967931521,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":750614,"timestamp":159959256995,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778967931503,"traceId":"7ad317f4aa862705"},{"name":"is-page-static","duration":734061,"timestamp":159959275149,"id":103,"parentId":62,"tags":{},"startTime":1778967931521,"traceId":"7ad317f4aa862705"},{"name":"check-page","duration":752089,"timestamp":159959257159,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778967931503,"traceId":"7ad317f4aa862705"},{"name":"static-check","duration":768479,"timestamp":159959240809,"id":19,"parentId":1,"tags":{},"startTime":1778967931487,"traceId":"7ad317f4aa862705"}]
2
- [{"name":"write-routes-manifest","duration":792,"timestamp":159960021376,"id":108,"parentId":1,"tags":{},"startTime":1778967932268,"traceId":"7ad317f4aa862705"},{"name":"load-dotenv","duration":45,"timestamp":159960033292,"id":111,"parentId":110,"tags":{},"startTime":1778967932280,"traceId":"7ad317f4aa862705"},{"name":"run-export-path-map","duration":548,"timestamp":159960036217,"id":112,"parentId":110,"tags":{},"startTime":1778967932282,"traceId":"7ad317f4aa862705"},{"name":"next-export","duration":679072,"timestamp":159960032045,"id":110,"parentId":1,"tags":{},"startTime":1778967932278,"traceId":"7ad317f4aa862705"},{"name":"move-exported-app-not-found-","duration":689,"timestamp":159960714629,"id":113,"parentId":109,"tags":{},"startTime":1778967932961,"traceId":"7ad317f4aa862705"},{"name":"move-exported-app-global-error-","duration":604,"timestamp":159960715462,"id":114,"parentId":109,"tags":{},"startTime":1778967932962,"traceId":"7ad317f4aa862705"},{"name":"static-generation","duration":692500,"timestamp":159960026141,"id":109,"parentId":1,"tags":{},"startTime":1778967932272,"traceId":"7ad317f4aa862705"},{"name":"write-routes-manifest","duration":556,"timestamp":159960718913,"id":115,"parentId":1,"tags":{},"startTime":1778967932965,"traceId":"7ad317f4aa862705"},{"name":"print-tree-view","duration":6113,"timestamp":159960727809,"id":116,"parentId":1,"tags":{},"startTime":1778967932974,"traceId":"7ad317f4aa862705"},{"name":"write-route-bundle-stats","duration":17602,"timestamp":159960733956,"id":117,"parentId":1,"tags":{},"startTime":1778967932980,"traceId":"7ad317f4aa862705"},{"name":"telemetry-flush","duration":25068,"timestamp":159960751583,"id":118,"parentId":1,"tags":{},"startTime":1778967932998,"traceId":"7ad317f4aa862705"},{"name":"next-build","duration":17843941,"timestamp":159942932735,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778967915179,"traceId":"7ad317f4aa862705"}]
1
+ [{"name":"generate-buildid","duration":253,"timestamp":160555447093,"id":4,"parentId":1,"tags":{},"startTime":1778968527693,"traceId":"6c61345f6cea7374"},{"name":"load-custom-routes","duration":455,"timestamp":160555447483,"id":5,"parentId":1,"tags":{},"startTime":1778968527694,"traceId":"6c61345f6cea7374"},{"name":"create-dist-dir","duration":668,"timestamp":160555447977,"id":6,"parentId":1,"tags":{},"startTime":1778968527694,"traceId":"6c61345f6cea7374"},{"name":"clean","duration":27632,"timestamp":160555449358,"id":7,"parentId":1,"tags":{},"startTime":1778968527696,"traceId":"6c61345f6cea7374"},{"name":"discover-routes","duration":9540,"timestamp":160555561660,"id":8,"parentId":1,"tags":{},"startTime":1778968527808,"traceId":"6c61345f6cea7374"},{"name":"create-root-mapping","duration":142,"timestamp":160555571269,"id":9,"parentId":1,"tags":{},"startTime":1778968527818,"traceId":"6c61345f6cea7374"},{"name":"generate-route-types","duration":35725,"timestamp":160555573790,"id":10,"parentId":1,"tags":{},"startTime":1778968527820,"traceId":"6c61345f6cea7374"},{"name":"public-dir-conflict-check","duration":95,"timestamp":160555609619,"id":11,"parentId":1,"tags":{},"startTime":1778968527856,"traceId":"6c61345f6cea7374"},{"name":"generate-routes-manifest","duration":4578,"timestamp":160555609844,"id":12,"parentId":1,"tags":{},"startTime":1778968527856,"traceId":"6c61345f6cea7374"},{"name":"run-turbopack","duration":5807920,"timestamp":160555619736,"id":14,"parentId":1,"tags":{},"startTime":1778968527866,"traceId":"6c61345f6cea7374"},{"name":"turbopack-build-events","duration":106,"timestamp":160555899089,"id":15,"parentId":1,"tags":{},"startTime":1778968528145,"traceId":"6c61345f6cea7374"},{"name":"run-typescript","duration":9318354,"timestamp":160561436064,"id":16,"parentId":1,"tags":{},"startTime":1778968533682,"traceId":"6c61345f6cea7374"},{"name":"generate-required-server-files","duration":2942,"timestamp":160570755792,"id":18,"parentId":1,"tags":{},"startTime":1778968543002,"traceId":"6c61345f6cea7374"},{"name":"check-static-error-page","duration":16456,"timestamp":160570963021,"id":20,"parentId":19,"tags":{},"startTime":1778968543209,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":462977,"timestamp":160570982608,"id":65,"parentId":22,"tags":{},"startTime":1778968543229,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":479389,"timestamp":160570966368,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778968543213,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":523697,"timestamp":160570983019,"id":68,"parentId":27,"tags":{},"startTime":1778968543229,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":536888,"timestamp":160570969930,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778968543216,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":529085,"timestamp":160570983645,"id":72,"parentId":32,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":541931,"timestamp":160570970891,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778968543217,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":540127,"timestamp":160570982303,"id":64,"parentId":21,"tags":{},"startTime":1778968543229,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":557924,"timestamp":160570964675,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778968543211,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":550673,"timestamp":160570983817,"id":73,"parentId":33,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":563501,"timestamp":160570971065,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778968543217,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":565003,"timestamp":160570982880,"id":67,"parentId":26,"tags":{},"startTime":1778968543229,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":578180,"timestamp":160570969785,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778968543216,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":568271,"timestamp":160570983924,"id":75,"parentId":35,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":580887,"timestamp":160570971376,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778968543218,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":569849,"timestamp":160570983939,"id":76,"parentId":36,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":581931,"timestamp":160570971916,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778968543218,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":574516,"timestamp":160570983967,"id":77,"parentId":37,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":586396,"timestamp":160570972141,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778968543218,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":578710,"timestamp":160570983145,"id":69,"parentId":28,"tags":{},"startTime":1778968543229,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":591801,"timestamp":160570970098,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778968543216,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":578842,"timestamp":160570984021,"id":79,"parentId":39,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":590484,"timestamp":160570972420,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778968543219,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":582695,"timestamp":160570983984,"id":78,"parentId":38,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":594420,"timestamp":160570972304,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778968543219,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":589546,"timestamp":160570984059,"id":82,"parentId":44,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":600205,"timestamp":160570973444,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778968543220,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":589819,"timestamp":160570984045,"id":81,"parentId":42,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":600972,"timestamp":160570972947,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778968543219,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":597980,"timestamp":160570984082,"id":84,"parentId":46,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":608393,"timestamp":160570973712,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778968543220,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":598175,"timestamp":160570984069,"id":83,"parentId":45,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":608683,"timestamp":160570973588,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778968543220,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":599468,"timestamp":160570984096,"id":85,"parentId":47,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":608256,"timestamp":160570975361,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778968543222,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":604515,"timestamp":160570984105,"id":86,"parentId":48,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":613158,"timestamp":160570975504,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778968543222,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":605319,"timestamp":160570984118,"id":87,"parentId":49,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":613829,"timestamp":160570975647,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778968543222,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":610389,"timestamp":160570984143,"id":89,"parentId":51,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":618696,"timestamp":160570975885,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778968543222,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":611991,"timestamp":160570982755,"id":66,"parentId":25,"tags":{},"startTime":1778968543229,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":625199,"timestamp":160570969590,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778968543216,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":613560,"timestamp":160570983423,"id":70,"parentId":29,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":626792,"timestamp":160570970248,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778968543217,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":613362,"timestamp":160570984033,"id":80,"parentId":40,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":624885,"timestamp":160570972546,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778968543219,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":607567,"timestamp":160570991316,"id":90,"parentId":24,"tags":{},"startTime":1778968543238,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":631981,"timestamp":160570966940,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778968543213,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":625024,"timestamp":160570984130,"id":88,"parentId":50,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":633444,"timestamp":160570975759,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778968543222,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":625727,"timestamp":160570983896,"id":74,"parentId":34,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":638441,"timestamp":160570971226,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778968543217,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":611647,"timestamp":160570998370,"id":92,"parentId":41,"tags":{},"startTime":1778968543245,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":637400,"timestamp":160570972661,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778968543219,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":617825,"timestamp":160570999697,"id":93,"parentId":43,"tags":{},"startTime":1778968543246,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":644437,"timestamp":160570973127,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778968543219,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":613350,"timestamp":160571005174,"id":96,"parentId":53,"tags":{},"startTime":1778968543251,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":642066,"timestamp":160570976496,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778968543223,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":620541,"timestamp":160571005210,"id":99,"parentId":56,"tags":{},"startTime":1778968543251,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":648650,"timestamp":160570977158,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778968543223,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":642392,"timestamp":160570983575,"id":71,"parentId":30,"tags":{},"startTime":1778968543230,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":655573,"timestamp":160570970426,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778968543217,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":629410,"timestamp":160571005224,"id":100,"parentId":58,"tags":{},"startTime":1778968543251,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":656668,"timestamp":160570978025,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778968543224,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":638611,"timestamp":160570997537,"id":91,"parentId":31,"tags":{},"startTime":1778968543244,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":665632,"timestamp":160570970573,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778968543217,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":637467,"timestamp":160571005356,"id":102,"parentId":61,"tags":{},"startTime":1778968543252,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":663971,"timestamp":160570978920,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778968543225,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":645718,"timestamp":160571005383,"id":104,"parentId":63,"tags":{},"startTime":1778968543252,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":671916,"timestamp":160570979288,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778968543226,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":633611,"timestamp":160571023834,"id":105,"parentId":60,"tags":{},"startTime":1778968543270,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":679044,"timestamp":160570978446,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778968543225,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":656832,"timestamp":160571005126,"id":94,"parentId":23,"tags":{},"startTime":1778968543251,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":695372,"timestamp":160570966660,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778968543213,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":628615,"timestamp":160571036676,"id":106,"parentId":57,"tags":{},"startTime":1778968543283,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":687913,"timestamp":160570977421,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778968543224,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":675419,"timestamp":160571005337,"id":101,"parentId":59,"tags":{},"startTime":1778968543252,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":702562,"timestamp":160570978249,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778968543225,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":680298,"timestamp":160571005197,"id":98,"parentId":55,"tags":{},"startTime":1778968543251,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":708630,"timestamp":160570976907,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778968543223,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":681906,"timestamp":160571005158,"id":95,"parentId":52,"tags":{},"startTime":1778968543251,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":710790,"timestamp":160570976311,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778968543223,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":700791,"timestamp":160571005369,"id":103,"parentId":62,"tags":{},"startTime":1778968543252,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":727110,"timestamp":160570979099,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778968543225,"traceId":"6c61345f6cea7374"},{"name":"is-page-static","duration":703437,"timestamp":160571005188,"id":97,"parentId":54,"tags":{},"startTime":1778968543251,"traceId":"6c61345f6cea7374"},{"name":"check-page","duration":732024,"timestamp":160570976673,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778968543223,"traceId":"6c61345f6cea7374"},{"name":"static-check","duration":746969,"timestamp":160570961834,"id":19,"parentId":1,"tags":{},"startTime":1778968543208,"traceId":"6c61345f6cea7374"}]
2
+ [{"name":"write-routes-manifest","duration":476,"timestamp":160571719745,"id":108,"parentId":1,"tags":{},"startTime":1778968543966,"traceId":"6c61345f6cea7374"},{"name":"load-dotenv","duration":72,"timestamp":160571730720,"id":111,"parentId":110,"tags":{},"startTime":1778968543977,"traceId":"6c61345f6cea7374"},{"name":"run-export-path-map","duration":568,"timestamp":160571733632,"id":112,"parentId":110,"tags":{},"startTime":1778968543980,"traceId":"6c61345f6cea7374"},{"name":"next-export","duration":585041,"timestamp":160571729387,"id":110,"parentId":1,"tags":{},"startTime":1778968543976,"traceId":"6c61345f6cea7374"},{"name":"move-exported-app-not-found-","duration":670,"timestamp":160572317365,"id":113,"parentId":109,"tags":{},"startTime":1778968544564,"traceId":"6c61345f6cea7374"},{"name":"move-exported-app-global-error-","duration":522,"timestamp":160572318167,"id":114,"parentId":109,"tags":{},"startTime":1778968544564,"traceId":"6c61345f6cea7374"},{"name":"static-generation","duration":597293,"timestamp":160571723507,"id":109,"parentId":1,"tags":{},"startTime":1778968543970,"traceId":"6c61345f6cea7374"},{"name":"write-routes-manifest","duration":424,"timestamp":160572321091,"id":115,"parentId":1,"tags":{},"startTime":1778968544567,"traceId":"6c61345f6cea7374"},{"name":"print-tree-view","duration":5049,"timestamp":160572341345,"id":116,"parentId":1,"tags":{},"startTime":1778968544588,"traceId":"6c61345f6cea7374"},{"name":"write-route-bundle-stats","duration":12701,"timestamp":160572346431,"id":117,"parentId":1,"tags":{},"startTime":1778968544593,"traceId":"6c61345f6cea7374"},{"name":"telemetry-flush","duration":21653,"timestamp":160572359168,"id":118,"parentId":1,"tags":{},"startTime":1778968544605,"traceId":"6c61345f6cea7374"},{"name":"next-build","duration":16986633,"timestamp":160555394221,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778968527640,"traceId":"6c61345f6cea7374"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":6112393,"timestamp":159943166418,"id":14,"parentId":1,"tags":{},"startTime":1778967915413,"traceId":"7ad317f4aa862705"},{"name":"turbopack-build-events","duration":99,"timestamp":159943472467,"id":15,"parentId":1,"tags":{},"startTime":1778967915719,"traceId":"7ad317f4aa862705"},{"name":"run-typescript","duration":9762145,"timestamp":159949286793,"id":16,"parentId":1,"tags":{},"startTime":1778967921533,"traceId":"7ad317f4aa862705"},{"name":"static-check","duration":768479,"timestamp":159959240809,"id":19,"parentId":1,"tags":{},"startTime":1778967931487,"traceId":"7ad317f4aa862705"},{"name":"static-generation","duration":692500,"timestamp":159960026141,"id":109,"parentId":1,"tags":{},"startTime":1778967932272,"traceId":"7ad317f4aa862705"},{"name":"telemetry-flush","duration":25068,"timestamp":159960751583,"id":118,"parentId":1,"tags":{},"startTime":1778967932998,"traceId":"7ad317f4aa862705"},{"name":"next-build","duration":17843941,"timestamp":159942932735,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778967915179,"traceId":"7ad317f4aa862705"}]
1
+ [{"name":"run-turbopack","duration":5807920,"timestamp":160555619736,"id":14,"parentId":1,"tags":{},"startTime":1778968527866,"traceId":"6c61345f6cea7374"},{"name":"turbopack-build-events","duration":106,"timestamp":160555899089,"id":15,"parentId":1,"tags":{},"startTime":1778968528145,"traceId":"6c61345f6cea7374"},{"name":"run-typescript","duration":9318354,"timestamp":160561436064,"id":16,"parentId":1,"tags":{},"startTime":1778968533682,"traceId":"6c61345f6cea7374"},{"name":"static-check","duration":746969,"timestamp":160570961834,"id":19,"parentId":1,"tags":{},"startTime":1778968543208,"traceId":"6c61345f6cea7374"},{"name":"static-generation","duration":597293,"timestamp":160571723507,"id":109,"parentId":1,"tags":{},"startTime":1778968543970,"traceId":"6c61345f6cea7374"},{"name":"telemetry-flush","duration":21653,"timestamp":160572359168,"id":118,"parentId":1,"tags":{},"startTime":1778968544605,"traceId":"6c61345f6cea7374"},{"name":"next-build","duration":16986633,"timestamp":160555394221,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778968527640,"traceId":"6c61345f6cea7374"}]