@sleep2agi/agent-network-dashboard 0.4.5-preview.59 → 0.4.5-preview.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/diagnostics/route-bundle-stats.json +4 -4
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/prerender-manifest.json +3 -3
  6. package/.next/server/app/_global-error.html +1 -1
  7. package/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/.next/server/app/_not-found.html +1 -1
  14. package/.next/server/app/_not-found.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  20. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  21. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  22. package/.next/server/app/admin.html +2 -2
  23. package/.next/server/app/admin.rsc +2 -2
  24. package/.next/server/app/admin.segments/_full.segment.rsc +2 -2
  25. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  26. package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
  27. package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
  28. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +2 -2
  29. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  30. package/.next/server/app/index.html +1 -1
  31. package/.next/server/app/index.rsc +1 -1
  32. package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  33. package/.next/server/app/index.segments/_full.segment.rsc +1 -1
  34. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  35. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  36. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  37. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  38. package/.next/server/app/login.html +2 -2
  39. package/.next/server/app/login.rsc +2 -2
  40. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  41. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  42. package/.next/server/app/login.segments/_index.segment.rsc +1 -1
  43. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  44. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  45. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  46. package/.next/server/app/logs.html +1 -1
  47. package/.next/server/app/logs.rsc +1 -1
  48. package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
  49. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  50. package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
  51. package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
  52. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  53. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  54. package/.next/server/app/messages.html +1 -1
  55. package/.next/server/app/messages.rsc +1 -1
  56. package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
  57. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  58. package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
  59. package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
  60. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
  61. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  62. package/.next/server/app/node.html +1 -1
  63. package/.next/server/app/node.rsc +1 -1
  64. package/.next/server/app/node.segments/_full.segment.rsc +1 -1
  65. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  66. package/.next/server/app/node.segments/_index.segment.rsc +1 -1
  67. package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
  68. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
  69. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  70. package/.next/server/app/nodes.html +1 -1
  71. package/.next/server/app/nodes.rsc +1 -1
  72. package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
  73. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  74. package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
  75. package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
  76. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
  77. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  78. package/.next/server/app/server-logs.html +1 -1
  79. package/.next/server/app/server-logs.rsc +1 -1
  80. package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
  81. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  82. package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
  83. package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
  84. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  85. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  86. package/.next/server/app/settings/networks.html +1 -1
  87. package/.next/server/app/settings/networks.rsc +1 -1
  88. package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
  89. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  90. package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
  91. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
  92. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  93. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  94. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  95. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  96. package/.next/server/app/settings/tokens.html +1 -1
  97. package/.next/server/app/settings/tokens.rsc +1 -1
  98. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
  99. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  100. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
  101. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
  102. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  103. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  104. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  105. package/.next/server/app/settings.html +2 -2
  106. package/.next/server/app/settings.rsc +2 -2
  107. package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  108. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  109. package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  110. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  111. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  112. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  113. package/.next/server/app/tasks.html +1 -1
  114. package/.next/server/app/tasks.rsc +1 -1
  115. package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
  116. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  117. package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
  118. package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
  119. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  120. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  121. package/.next/server/chunks/ssr/app_0aum_g5._.js +1 -1
  122. package/.next/server/chunks/ssr/app_0aum_g5._.js.map +1 -1
  123. package/.next/server/chunks/ssr/app_0esuljp._.js +1 -1
  124. package/.next/server/chunks/ssr/app_0esuljp._.js.map +1 -1
  125. package/.next/server/chunks/ssr/app_0tncr1_._.js +1 -1
  126. package/.next/server/chunks/ssr/app_0tncr1_._.js.map +1 -1
  127. package/.next/server/middleware-build-manifest.js +3 -3
  128. package/.next/server/pages/404.html +1 -1
  129. package/.next/server/pages/500.html +1 -1
  130. package/.next/server/server-reference-manifest.js +1 -1
  131. package/.next/server/server-reference-manifest.json +1 -1
  132. package/.next/static/chunks/{1899jx7amcabc.js → 0w0~sdfoyxt2j.js} +1 -1
  133. package/.next/static/chunks/{0fbouyle525cp.js → 12s6glgou1lwn.js} +1 -1
  134. package/.next/static/chunks/{06x7w8nwggx~~.js → 15h37--evm.gj.js} +1 -1
  135. package/.next/trace +2 -2
  136. package/.next/trace-build +1 -1
  137. package/app/admin/page.tsx +10 -0
  138. package/package.json +1 -1
  139. package/scripts/loop-review.mjs +4 -0
  140. /package/.next/static/{r4oEegjWgJMUGLScbvV_E → xK1B9liPJQf2PJVojNY7L}/_buildManifest.js +0 -0
  141. /package/.next/static/{r4oEegjWgJMUGLScbvV_E → xK1B9liPJQf2PJVojNY7L}/_clientMiddlewareManifest.js +0 -0
  142. /package/.next/static/{r4oEegjWgJMUGLScbvV_E → xK1B9liPJQf2PJVojNY7L}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0e-.zgw81gela.js"/><script src="/_next/static/chunks/0pqt~8bl3ukh4.js" async=""></script><script src="/_next/static/chunks/0u359llqm1_01.js" async=""></script><script src="/_next/static/chunks/0257pdz1-imal.js" async=""></script><script src="/_next/static/chunks/turbopack-01f1xs~cq_~si.js" async=""></script><script src="/_next/static/chunks/01xlw8hd842-c.js" async=""></script><script src="/_next/static/chunks/14bsg3_-taiw4.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0e-.zgw81gela.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"r4oEegjWgJMUGLScbvV_E\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[27201,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"1\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0e-.zgw81gela.js"/><script src="/_next/static/chunks/0pqt~8bl3ukh4.js" async=""></script><script src="/_next/static/chunks/0u359llqm1_01.js" async=""></script><script src="/_next/static/chunks/0257pdz1-imal.js" async=""></script><script src="/_next/static/chunks/turbopack-01f1xs~cq_~si.js" async=""></script><script src="/_next/static/chunks/01xlw8hd842-c.js" async=""></script><script src="/_next/static/chunks/14bsg3_-taiw4.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0e-.zgw81gela.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"xK1B9liPJQf2PJVojNY7L\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[27201,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/14bsg3_-taiw4.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"1\",{}]]\n"])</script></body></html>
@@ -1 +1 @@
1
- self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"RJEd2bozm3MWfWycT5Ci39LIkDSG2j2xi3db2U61dhc=\"\n}"
1
+ self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"eVqPTnwUqZbxuA04G76bwan6wRelYKLpES+S8EwToHc=\"\n}"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "node": {},
3
3
  "edge": {},
4
- "encryptionKey": "RJEd2bozm3MWfWycT5Ci39LIkDSG2j2xi3db2U61dhc="
4
+ "encryptionKey": "eVqPTnwUqZbxuA04G76bwan6wRelYKLpES+S8EwToHc="
5
5
  }
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94867,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.5-preview.59"],94867)},89954,e=>{"use strict";var t=e.i(18050),r=e.i(71645),a=e.i(94867);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#111128] border border-[#2a2a4a] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#2a2a4a] bg-[#111128]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:h||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[h&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:h?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",a.DASHBOARD_VERSION]})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94867,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.5-preview.60"],94867)},89954,e=>{"use strict";var t=e.i(18050),r=e.i(71645),a=e.i(94867);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#111128] border border-[#2a2a4a] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#2a2a4a] bg-[#111128]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:h||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[h&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:h?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",a.DASHBOARD_VERSION]})]})]})]})}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65822,e=>{"use strict";var s=e.i(83599),a=e.i(58963);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:o}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:o}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:o,isLoading:d}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:o,isLoading:d}}])},94867,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.5-preview.59"],94867)},32545,e=>{"use strict";var s=e.i(18050),a=e.i(71645),t=e.i(22016),r=e.i(65822),n=e.i(94867);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,o]=(0,a.useState)(""),[d,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,b]=(0,a.useState)(""),N="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"SSE Connections"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>o(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&o(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),d&&(0,s.jsx)("div",{className:`mt-2 text-xs ${d.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:d})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void b("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(b(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>b(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65822,e=>{"use strict";var s=e.i(83599),a=e.i(58963);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:o}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:o}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:o,isLoading:d}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:o,isLoading:d}}])},94867,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.5-preview.60"],94867)},32545,e=>{"use strict";var s=e.i(18050),a=e.i(71645),t=e.i(22016),r=e.i(65822),n=e.i(94867);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,o]=(0,a.useState)(""),[d,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,b]=(0,a.useState)(""),N="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"SSE Connections"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:N,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>o(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&o(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),d&&(0,s.jsx)("div",{className:`mt-2 text-xs ${d.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:d})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void b("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(b(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>b(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18150,e=>{"use strict";e.s(["formatUptime",0,function(e){let s=Math.floor(e/3600),t=Math.floor(e%3600/60);return s>0?`${s}h ${t}m`:`${t}m`},"timeAgo",0,function(e){if(!e)return"--";let s=Math.floor((Date.now()-new Date(e.replace(" ","T")+"Z").getTime())/1e3);return s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}])},69874,e=>{"use strict";var s=e.i(18050);let t=[180,200,220,270,300,330,30,90];e.s(["AliasAvatar",0,function({alias:e,size:a=28,className:r=""}){let l=function(e){let s=0;for(let t=0;t<e.length;t++)s=31*s+e.charCodeAt(t)>>>0;let a=t[s%t.length];return{bg:`hsl(${a} 55% 22%)`,ring:`hsl(${a} 60% 45%)`,text:`hsl(${a} 80% 78%)`}}(e),i=Math.max(9,Math.round(.42*a));return(0,s.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${r}`,style:{width:a,height:a,fontSize:i,backgroundColor:l.bg,borderColor:l.ring,color:l.text},title:e,"aria-hidden":!0,children:e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"})}])},65822,e=>{"use strict";var s=e.i(83599),t=e.i(58963);let a=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function l(e,s){if(!s)return e;let t=e.includes("?")?"&":"?";return`${e}${t}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",a,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:t}=(0,s.default)("/api/hub/health",a,r);return{health:e||null,error:t}},"useLicense",0,function(){let{data:e,error:t}=(0,s.default)("/api/hub/license",a,{refreshInterval:6e4});return{license:e?.ok?e:null,error:t}},"useMessages",0,function(e=100){let{networkId:i}=(0,t.useNetworkId)(),{data:n,error:o,isLoading:d}=(0,s.default)(l(`/api/hub/messages?limit=${e}`,i),a,r);return{messages:n?.messages||[],error:o,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,t.useNetworkId)(),{data:i,error:n,isLoading:o}=(0,s.default)(l("/api/hub/status",e),a,r);return{sessions:i?.sessions||[],hint:i?._hint,error:n,isLoading:o}},"useStats",0,function(){let{networkId:e}=(0,t.useNetworkId)(),{data:i,error:n}=(0,s.default)(l("/api/hub/stats",e),a,r);return{stats:i?.ok?i:null,error:n}},"useTasks",0,function(e){let{networkId:i}=(0,t.useNetworkId)(),n=new URLSearchParams({limit:"100",...e}).toString(),{data:o,error:d,isLoading:c}=(0,s.default)(l(`/api/hub/tasks?${n}`,i),a,r);return{tasks:o?.tasks||[],count:o?.count??0,source:o?.source,error:d,isLoading:c}}])},23261,e=>{"use strict";var s=e.i(18050),t=e.i(71645),a=e.i(65822),r=e.i(18150),l=e.i(69874);e.s(["default",0,function(){let{sessions:e}=(0,a.useSessions)(),{health:i}=(0,a.useHealth)(),{stats:n}=(0,a.useStats)(),o=i?.sse_sessions||{},d=e=>(e.network_id?o[`${e.network_id}:${e.alias}`]:void 0)??o[e.alias],[c,x]=(0,t.useState)(""),[u,h]=(0,t.useState)(""),[m,g]=(0,t.useState)(""),[p,b]=(0,t.useState)(""),[f,j]=(0,t.useState)(""),[y,v]=(0,t.useState)(""),[N,w]=(0,t.useState)(""),[k,S]=(0,t.useState)(""),$=async()=>{if(c.trim()&&u.trim()){try{let e=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"register",username:c,password:u})}),s=await e.json();g(s.ok?`Created: ${s.user.username} (${s.user.user_id})`:`Failed: ${s.error}`),s.ok&&(x(""),h(""))}catch{g("Failed")}setTimeout(()=>g(""),8e3)}},T=async()=>{if(p.trim()){try{let e=await fetch("/api/hub/broadcast",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:p})}),s=await e.json();j(s.ok?`Sent to ${s.recipients} nodes`:`Failed: ${s.error}`),s.ok&&b("")}catch{j("Failed")}setTimeout(()=>j(""),5e3)}},C=async()=>{if(y&&N.trim()){try{let e=await fetch("/api/hub/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({alias:y,task:N})}),s=await e.json();S(s.ok?"Task sent":`Failed: ${s.error}`),s.ok&&w("")}catch{S("Failed")}setTimeout(()=>S(""),5e3)}},A=e.filter(e=>d(e)),O=e.filter(e=>!d(e));return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Admin"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#status",label:"Status"},{href:"#actions",label:"Actions"},{href:"#users",label:"Users"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-6xl space-y-10",children:[(0,s.jsxs)("div",{id:"status",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Status"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Overview"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-3xl font-bold text-green-400 tabular-nums",children:A.length}),(0,s.jsx)("div",{className:"text-xs text-gray-500",children:"Online"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-3xl font-bold text-gray-500 tabular-nums",children:O.length}),(0,s.jsx)("div",{className:"text-xs text-gray-500",children:"Offline"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-3xl font-bold text-cyan-400 tabular-nums",children:i?.sse_connections??"--"}),(0,s.jsx)("div",{className:"text-xs text-gray-500",children:"SSE Connections"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-3xl font-bold text-white tabular-nums",children:n?.tasks?.total??"--"}),(0,s.jsx)("div",{className:"text-xs text-gray-500",children:"Total Tasks"})]})]}),n?.tasks?.by_status&&n.tasks.by_status.length>0&&(0,s.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:n.tasks.by_status.map(e=>(0,s.jsxs)("span",{className:"text-xs px-2 py-1 rounded bg-[#0a0a15] border border-[#1a1a2a] text-gray-400",children:[e.status,": ",e.count]},e.status))})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:["Online Sessions ",(0,s.jsxs)("span",{className:"text-gray-600",children:["(",A.length,")"]})]}),(0,s.jsx)("div",{className:"space-y-2 max-h-80 overflow-y-auto",children:0===A.length?(0,s.jsx)("div",{className:"text-xs text-gray-600 text-center py-4",children:"No online sessions"}):A.map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-3 bg-[#0a0a15] rounded-lg px-3 py-2 border border-[#1a1a2a]",children:[(0,s.jsx)(l.AliasAvatar,{alias:e.alias,size:20}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("div",{className:"text-sm text-white font-medium truncate",children:e.alias}),(0,s.jsxs)("div",{className:"text-xs text-gray-500 truncate",children:[e.agent||"--"," · ",e.task||"idle"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,s.jsx)("span",{className:`text-xs px-2 py-0.5 rounded border ${"working"===e.status?"bg-green-900/30 text-green-300 border-green-800/30":"bg-blue-900/30 text-blue-300 border-blue-800/30"}`,children:e.status}),(0,s.jsx)("span",{className:"text-[10px] text-gray-600",children:(0,r.timeAgo)(e.updated_at)})]})]},e.alias))})]})]})]}),(0,s.jsxs)("div",{id:"actions",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Actions"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Broadcast"}),(0,s.jsx)("textarea",{value:p,onChange:e=>b(e.target.value),placeholder:"Message to all online nodes...",rows:3,className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none resize-none"}),(0,s.jsxs)("div",{className:"flex justify-between items-center mt-3",children:[(0,s.jsxs)("span",{className:"text-xs text-gray-600",children:[p.length,"/500"]}),(0,s.jsx)("button",{onClick:T,disabled:!p.trim(),className:"px-4 py-2 bg-purple-600 hover:bg-purple-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Broadcast"})]}),f&&(0,s.jsx)("div",{className:`mt-2 text-xs ${f.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:f})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Send Task"}),(0,s.jsxs)("select",{value:y,onChange:e=>v(e.target.value),className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white focus:border-cyan-500/50 focus:outline-none mb-3",children:[(0,s.jsx)("option",{value:"",children:"Select target node..."}),A.map(e=>(0,s.jsxs)("option",{value:e.alias,children:[e.alias," (",e.status,")"]},e.alias)),(0,s.jsx)("optgroup",{label:"Offline",children:O.map(e=>(0,s.jsxs)("option",{value:e.alias,children:[e.alias," (offline)"]},e.alias))})]}),(0,s.jsx)("textarea",{value:N,onChange:e=>w(e.target.value),placeholder:"Task content...",rows:3,className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none resize-none"}),(0,s.jsx)("div",{className:"flex justify-end mt-3",children:(0,s.jsx)("button",{onClick:C,disabled:!y||!N.trim(),className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Send Task"})}),k&&(0,s.jsx)("div",{className:`mt-2 text-xs ${k.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:k})]})]})]}),(0,s.jsxs)("div",{id:"users",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Users"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Register User (V3)"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>x(e.target.value),placeholder:"Username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:u,onChange:e=>h(e.target.value),placeholder:"Password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:$,disabled:!c.trim()||!u.trim(),className:"w-full px-4 py-2 bg-green-600 hover:bg-green-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Register"})]}),m&&(0,s.jsx)("div",{className:`mt-2 text-xs ${m.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:m})]})})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18150,e=>{"use strict";e.s(["formatUptime",0,function(e){let s=Math.floor(e/3600),t=Math.floor(e%3600/60);return s>0?`${s}h ${t}m`:`${t}m`},"timeAgo",0,function(e){if(!e)return"--";let s=Math.floor((Date.now()-new Date(e.replace(" ","T")+"Z").getTime())/1e3);return s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}])},69874,e=>{"use strict";var s=e.i(18050);let t=[180,200,220,270,300,330,30,90];e.s(["AliasAvatar",0,function({alias:e,size:a=28,className:r=""}){let l=function(e){let s=0;for(let t=0;t<e.length;t++)s=31*s+e.charCodeAt(t)>>>0;let a=t[s%t.length];return{bg:`hsl(${a} 55% 22%)`,ring:`hsl(${a} 60% 45%)`,text:`hsl(${a} 80% 78%)`}}(e),i=Math.max(9,Math.round(.42*a));return(0,s.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${r}`,style:{width:a,height:a,fontSize:i,backgroundColor:l.bg,borderColor:l.ring,color:l.text},title:e,"aria-hidden":!0,children:e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"})}])},65822,e=>{"use strict";var s=e.i(83599),t=e.i(58963);let a=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function l(e,s){if(!s)return e;let t=e.includes("?")?"&":"?";return`${e}${t}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",a,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:t}=(0,s.default)("/api/hub/health",a,r);return{health:e||null,error:t}},"useLicense",0,function(){let{data:e,error:t}=(0,s.default)("/api/hub/license",a,{refreshInterval:6e4});return{license:e?.ok?e:null,error:t}},"useMessages",0,function(e=100){let{networkId:i}=(0,t.useNetworkId)(),{data:n,error:o,isLoading:d}=(0,s.default)(l(`/api/hub/messages?limit=${e}`,i),a,r);return{messages:n?.messages||[],error:o,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,t.useNetworkId)(),{data:i,error:n,isLoading:o}=(0,s.default)(l("/api/hub/status",e),a,r);return{sessions:i?.sessions||[],hint:i?._hint,error:n,isLoading:o}},"useStats",0,function(){let{networkId:e}=(0,t.useNetworkId)(),{data:i,error:n}=(0,s.default)(l("/api/hub/stats",e),a,r);return{stats:i?.ok?i:null,error:n}},"useTasks",0,function(e){let{networkId:i}=(0,t.useNetworkId)(),n=new URLSearchParams({limit:"100",...e}).toString(),{data:o,error:d,isLoading:c}=(0,s.default)(l(`/api/hub/tasks?${n}`,i),a,r);return{tasks:o?.tasks||[],count:o?.count??0,source:o?.source,error:d,isLoading:c}}])},23261,e=>{"use strict";var s=e.i(18050),t=e.i(71645),a=e.i(65822),r=e.i(18150),l=e.i(69874);e.s(["default",0,function(){let{sessions:e}=(0,a.useSessions)(),{health:i}=(0,a.useHealth)(),{stats:n}=(0,a.useStats)(),o=i?.sse_sessions||{},d=e=>(e.network_id?o[`${e.network_id}:${e.alias}`]:void 0)??o[e.alias],[c,x]=(0,t.useState)(""),[u,h]=(0,t.useState)(""),[m,g]=(0,t.useState)(""),[b,p]=(0,t.useState)(""),[f,y]=(0,t.useState)(""),[j,v]=(0,t.useState)(""),[N,w]=(0,t.useState)(""),[k,S]=(0,t.useState)(""),$=async()=>{if(c.trim()&&u.trim()){try{let e=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"register",username:c,password:u})}),s=await e.json();g(s.ok?`Created: ${s.user.username} (${s.user.user_id})`:`Failed: ${s.error}`),s.ok&&(x(""),h(""))}catch{g("Failed")}setTimeout(()=>g(""),8e3)}},T=async()=>{if(b.trim()){try{let e=await fetch("/api/hub/broadcast",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:b})}),s=await e.json();y(s.ok?`Sent to ${s.recipients} nodes`:`Failed: ${s.error}`),s.ok&&p("")}catch{y("Failed")}setTimeout(()=>y(""),5e3)}},C=async()=>{if(j&&N.trim()){try{let e=await fetch("/api/hub/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({alias:j,task:N})}),s=await e.json();S(s.ok?"Task sent":`Failed: ${s.error}`),s.ok&&w("")}catch{S("Failed")}setTimeout(()=>S(""),5e3)}},A=e.filter(e=>d(e)),O=e.filter(e=>!d(e));return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Admin"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#status",label:"Status"},{href:"#actions",label:"Actions"},{href:"#users",label:"Users"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-6xl space-y-10",children:[(0,s.jsxs)("div",{id:"status",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Status"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Overview"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-3xl font-bold text-green-400 tabular-nums",children:A.length}),(0,s.jsx)("div",{className:"text-xs text-gray-500",children:"Online"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-3xl font-bold text-gray-500 tabular-nums",children:O.length}),(0,s.jsx)("div",{className:"text-xs text-gray-500",children:"Offline"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-3xl font-bold text-cyan-400 tabular-nums",children:i?.sse_connections??"--"}),(0,s.jsx)("div",{className:"text-xs text-gray-500",children:"SSE Connections"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-3xl font-bold text-white tabular-nums",children:n?.tasks?.total??"--"}),(0,s.jsx)("div",{className:"text-xs text-gray-500",children:"Total Tasks"})]})]}),n?.tasks?.by_status&&n.tasks.by_status.length>0&&(0,s.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:n.tasks.by_status.map(e=>(0,s.jsxs)("span",{className:"text-xs px-2 py-1 rounded bg-[#0a0a15] border border-[#1a1a2a] text-gray-400",children:[e.status,": ",e.count]},e.status))})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:["Online Sessions ",(0,s.jsxs)("span",{className:"text-gray-600",children:["(",A.length,")"]})]}),(0,s.jsx)("div",{className:"space-y-2 max-h-80 overflow-y-auto",children:0===A.length?(0,s.jsx)("div",{className:"text-xs text-gray-600 text-center py-4",children:"No online sessions"}):A.map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-3 bg-[#0a0a15] rounded-lg px-3 py-2 border border-[#1a1a2a]",children:[(0,s.jsx)(l.AliasAvatar,{alias:e.alias,size:20}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("div",{className:"text-sm text-white font-medium truncate",children:e.alias}),(0,s.jsxs)("div",{className:"text-xs text-gray-500 truncate",children:[e.agent||"--"," · ",e.task||"idle"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,s.jsx)("span",{className:`text-xs px-2 py-0.5 rounded border ${"working"===e.status?"bg-green-900/30 text-green-300 border-green-800/30":"bg-blue-900/30 text-blue-300 border-blue-800/30"}`,children:e.status}),(0,s.jsx)("span",{className:"text-[10px] text-gray-600",children:(0,r.timeAgo)(e.updated_at)})]})]},e.alias))})]})]})]}),(0,s.jsxs)("div",{id:"actions",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Actions"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),0===e.length?(0,s.jsx)("div",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl px-5 py-4 text-sm text-gray-500",children:"Broadcast and Send Task become available after the first agent registers."}):(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Broadcast"}),(0,s.jsx)("textarea",{value:b,onChange:e=>p(e.target.value),placeholder:"Message to all online nodes...",rows:3,className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none resize-none"}),(0,s.jsxs)("div",{className:"flex justify-between items-center mt-3",children:[(0,s.jsxs)("span",{className:"text-xs text-gray-600",children:[b.length,"/500"]}),(0,s.jsx)("button",{onClick:T,disabled:!b.trim(),className:"px-4 py-2 bg-purple-600 hover:bg-purple-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Broadcast"})]}),f&&(0,s.jsx)("div",{className:`mt-2 text-xs ${f.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:f})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Send Task"}),(0,s.jsxs)("select",{value:j,onChange:e=>v(e.target.value),className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white focus:border-cyan-500/50 focus:outline-none mb-3",children:[(0,s.jsx)("option",{value:"",children:"Select target node..."}),A.map(e=>(0,s.jsxs)("option",{value:e.alias,children:[e.alias," (",e.status,")"]},e.alias)),(0,s.jsx)("optgroup",{label:"Offline",children:O.map(e=>(0,s.jsxs)("option",{value:e.alias,children:[e.alias," (offline)"]},e.alias))})]}),(0,s.jsx)("textarea",{value:N,onChange:e=>w(e.target.value),placeholder:"Task content...",rows:3,className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none resize-none"}),(0,s.jsx)("div",{className:"flex justify-end mt-3",children:(0,s.jsx)("button",{onClick:C,disabled:!j||!N.trim(),className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Send Task"})}),k&&(0,s.jsx)("div",{className:`mt-2 text-xs ${k.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:k})]})]})]}),(0,s.jsxs)("div",{id:"users",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Users"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Register User (V3)"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>x(e.target.value),placeholder:"Username",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:u,onChange:e=>h(e.target.value),placeholder:"Password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:$,disabled:!c.trim()||!u.trim(),className:"w-full px-4 py-2 bg-green-600 hover:bg-green-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Register"})]}),m&&(0,s.jsx)("div",{className:`mt-2 text-xs ${m.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:m})]})})]})]})]})}])}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":365,"timestamp":219928474061,"id":4,"parentId":1,"tags":{},"startTime":1778591414299,"traceId":"918d1422b05f7f00"},{"name":"load-custom-routes","duration":500,"timestamp":219928474624,"id":5,"parentId":1,"tags":{},"startTime":1778591414299,"traceId":"918d1422b05f7f00"},{"name":"create-dist-dir","duration":498,"timestamp":219928475170,"id":6,"parentId":1,"tags":{},"startTime":1778591414300,"traceId":"918d1422b05f7f00"},{"name":"clean","duration":782,"timestamp":219928476628,"id":7,"parentId":1,"tags":{},"startTime":1778591414301,"traceId":"918d1422b05f7f00"},{"name":"discover-routes","duration":9239,"timestamp":219928588720,"id":8,"parentId":1,"tags":{},"startTime":1778591414413,"traceId":"918d1422b05f7f00"},{"name":"create-root-mapping","duration":139,"timestamp":219928598048,"id":9,"parentId":1,"tags":{},"startTime":1778591414423,"traceId":"918d1422b05f7f00"},{"name":"generate-route-types","duration":31627,"timestamp":219928600739,"id":10,"parentId":1,"tags":{},"startTime":1778591414425,"traceId":"918d1422b05f7f00"},{"name":"public-dir-conflict-check","duration":106,"timestamp":219928632475,"id":11,"parentId":1,"tags":{},"startTime":1778591414457,"traceId":"918d1422b05f7f00"},{"name":"generate-routes-manifest","duration":4384,"timestamp":219928632727,"id":12,"parentId":1,"tags":{},"startTime":1778591414457,"traceId":"918d1422b05f7f00"},{"name":"run-turbopack","duration":9372933,"timestamp":219928646665,"id":14,"parentId":1,"tags":{},"startTime":1778591414471,"traceId":"918d1422b05f7f00"},{"name":"turbopack-build-events","duration":81,"timestamp":219928964382,"id":15,"parentId":1,"tags":{},"startTime":1778591414789,"traceId":"918d1422b05f7f00"},{"name":"run-typescript","duration":9432808,"timestamp":219938029779,"id":16,"parentId":1,"tags":{},"startTime":1778591423854,"traceId":"918d1422b05f7f00"},{"name":"generate-required-server-files","duration":2619,"timestamp":219947463719,"id":18,"parentId":1,"tags":{},"startTime":1778591433288,"traceId":"918d1422b05f7f00"},{"name":"check-static-error-page","duration":17478,"timestamp":219947543497,"id":20,"parentId":19,"tags":{},"startTime":1778591433368,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":571868,"timestamp":219947565635,"id":62,"parentId":22,"tags":{},"startTime":1778591433390,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":590414,"timestamp":219947547212,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778591433372,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":703652,"timestamp":219947565276,"id":61,"parentId":21,"tags":{},"startTime":1778591433390,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":723664,"timestamp":219947545436,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778591433370,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":742526,"timestamp":219947565875,"id":64,"parentId":26,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":755158,"timestamp":219947553320,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778591433378,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":756824,"timestamp":219947565954,"id":66,"parentId":28,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":769333,"timestamp":219947553522,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778591433378,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":804548,"timestamp":219947565990,"id":67,"parentId":29,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":817111,"timestamp":219947553603,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778591433378,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":819349,"timestamp":219947566041,"id":68,"parentId":30,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":831639,"timestamp":219947553823,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778591433379,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":819730,"timestamp":219947565918,"id":65,"parentId":27,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":832252,"timestamp":219947553429,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778591433378,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":823698,"timestamp":219947566075,"id":69,"parentId":32,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":835614,"timestamp":219947554217,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778591433379,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":824682,"timestamp":219947566179,"id":70,"parentId":33,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":837679,"timestamp":219947554353,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778591433379,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":828432,"timestamp":219947566226,"id":71,"parentId":34,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":840261,"timestamp":219947554443,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778591433379,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":828696,"timestamp":219947566243,"id":72,"parentId":35,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":840447,"timestamp":219947554528,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778591433379,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":832290,"timestamp":219947566325,"id":74,"parentId":37,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":843609,"timestamp":219947555051,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778591433380,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":833249,"timestamp":219947566304,"id":73,"parentId":36,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":844996,"timestamp":219947554866,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778591433380,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":836687,"timestamp":219947566333,"id":75,"parentId":38,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":847882,"timestamp":219947555185,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778591433380,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":837322,"timestamp":219947566339,"id":76,"parentId":39,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":848275,"timestamp":219947555427,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778591433380,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":840045,"timestamp":219947566345,"id":77,"parentId":40,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":850893,"timestamp":219947555540,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778591433380,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":840942,"timestamp":219947566350,"id":78,"parentId":41,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":851699,"timestamp":219947555644,"id":41,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778591433380,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":843409,"timestamp":219947566356,"id":79,"parentId":42,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":854031,"timestamp":219947555768,"id":42,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778591433380,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":847184,"timestamp":219947566361,"id":80,"parentId":43,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":857669,"timestamp":219947555924,"id":43,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778591433381,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":847354,"timestamp":219947566366,"id":81,"parentId":44,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":857634,"timestamp":219947556108,"id":44,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778591433381,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":849353,"timestamp":219947566371,"id":82,"parentId":45,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":859481,"timestamp":219947556281,"id":45,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778591433381,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":850469,"timestamp":219947565723,"id":63,"parentId":25,"tags":{},"startTime":1778591433390,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":863110,"timestamp":219947553113,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778591433378,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":851230,"timestamp":219947566381,"id":84,"parentId":47,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":861011,"timestamp":219947556635,"id":47,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778591433381,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":851377,"timestamp":219947566376,"id":83,"parentId":46,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":861293,"timestamp":219947556479,"id":46,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778591433381,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":847328,"timestamp":219947575130,"id":87,"parentId":31,"tags":{},"startTime":1778591433400,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":868977,"timestamp":219947553935,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778591433379,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":837766,"timestamp":219947590977,"id":88,"parentId":23,"tags":{},"startTime":1778591433416,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":881189,"timestamp":219947547602,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778591433372,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":863372,"timestamp":219947571406,"id":86,"parentId":24,"tags":{},"startTime":1778591433396,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":886921,"timestamp":219947547913,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778591433373,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":845363,"timestamp":219947591032,"id":89,"parentId":49,"tags":{},"startTime":1778591433416,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":879223,"timestamp":219947557217,"id":49,"parentId":19,"tags":{"page":"/login"},"startTime":1778591433382,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":870195,"timestamp":219947566386,"id":85,"parentId":48,"tags":{},"startTime":1778591433391,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":879844,"timestamp":219947556763,"id":48,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778591433381,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":861401,"timestamp":219947591050,"id":91,"parentId":51,"tags":{},"startTime":1778591433416,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":894942,"timestamp":219947557582,"id":51,"parentId":19,"tags":{"page":"/messages"},"startTime":1778591433382,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":869986,"timestamp":219947591067,"id":93,"parentId":53,"tags":{},"startTime":1778591433416,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":903093,"timestamp":219947558021,"id":53,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778591433383,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":894622,"timestamp":219947591072,"id":94,"parentId":55,"tags":{},"startTime":1778591433416,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":925964,"timestamp":219947559793,"id":55,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778591433384,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":905954,"timestamp":219947591080,"id":95,"parentId":56,"tags":{},"startTime":1778591433416,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":937844,"timestamp":219947559968,"id":56,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778591433385,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":915182,"timestamp":219947591088,"id":96,"parentId":58,"tags":{},"startTime":1778591433416,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":945854,"timestamp":219947560482,"id":58,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778591433385,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":919566,"timestamp":219947591044,"id":90,"parentId":50,"tags":{},"startTime":1778591433416,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":953276,"timestamp":219947557400,"id":50,"parentId":19,"tags":{"page":"/logs"},"startTime":1778591433382,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":925625,"timestamp":219947591093,"id":97,"parentId":59,"tags":{},"startTime":1778591433416,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":956199,"timestamp":219947560591,"id":59,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778591433385,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":928611,"timestamp":219947591103,"id":98,"parentId":60,"tags":{},"startTime":1778591433416,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":959040,"timestamp":219947560726,"id":60,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778591433385,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":931757,"timestamp":219947591114,"id":99,"parentId":57,"tags":{},"startTime":1778591433416,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":962833,"timestamp":219947560163,"id":57,"parentId":19,"tags":{"page":"/settings"},"startTime":1778591433385,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":924067,"timestamp":219947599309,"id":100,"parentId":54,"tags":{},"startTime":1778591433424,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":965145,"timestamp":219947558265,"id":54,"parentId":19,"tags":{"page":"/"},"startTime":1778591433383,"traceId":"918d1422b05f7f00"},{"name":"is-page-static","duration":937684,"timestamp":219947591059,"id":92,"parentId":52,"tags":{},"startTime":1778591433416,"traceId":"918d1422b05f7f00"},{"name":"check-page","duration":970994,"timestamp":219947557788,"id":52,"parentId":19,"tags":{"page":"/node"},"startTime":1778591433382,"traceId":"918d1422b05f7f00"},{"name":"static-check","duration":986390,"timestamp":219947542423,"id":19,"parentId":1,"tags":{},"startTime":1778591433367,"traceId":"918d1422b05f7f00"},{"name":"write-routes-manifest","duration":375,"timestamp":219948537289,"id":102,"parentId":1,"tags":{},"startTime":1778591434362,"traceId":"918d1422b05f7f00"},{"name":"load-dotenv","duration":68,"timestamp":219948549147,"id":105,"parentId":104,"tags":{},"startTime":1778591434374,"traceId":"918d1422b05f7f00"},{"name":"run-export-path-map","duration":678,"timestamp":219948551736,"id":106,"parentId":104,"tags":{},"startTime":1778591434376,"traceId":"918d1422b05f7f00"},{"name":"next-export","duration":576310,"timestamp":219948547786,"id":104,"parentId":1,"tags":{},"startTime":1778591434372,"traceId":"918d1422b05f7f00"},{"name":"move-exported-app-not-found-","duration":640,"timestamp":219949127404,"id":107,"parentId":103,"tags":{},"startTime":1778591434952,"traceId":"918d1422b05f7f00"},{"name":"move-exported-app-global-error-","duration":396,"timestamp":219949128157,"id":108,"parentId":103,"tags":{},"startTime":1778591434953,"traceId":"918d1422b05f7f00"}]
2
- [{"name":"static-generation","duration":590239,"timestamp":219948542146,"id":103,"parentId":1,"tags":{},"startTime":1778591434367,"traceId":"918d1422b05f7f00"},{"name":"write-routes-manifest","duration":411,"timestamp":219949132560,"id":109,"parentId":1,"tags":{},"startTime":1778591434957,"traceId":"918d1422b05f7f00"},{"name":"print-tree-view","duration":3872,"timestamp":219949142468,"id":110,"parentId":1,"tags":{},"startTime":1778591434967,"traceId":"918d1422b05f7f00"},{"name":"write-route-bundle-stats","duration":16231,"timestamp":219949146380,"id":111,"parentId":1,"tags":{},"startTime":1778591434971,"traceId":"918d1422b05f7f00"},{"name":"telemetry-flush","duration":25060,"timestamp":219949162652,"id":112,"parentId":1,"tags":{},"startTime":1778591434987,"traceId":"918d1422b05f7f00"},{"name":"next-build","duration":20776635,"timestamp":219928411133,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778591414236,"traceId":"918d1422b05f7f00"}]
1
+ [{"name":"generate-buildid","duration":315,"timestamp":220354758882,"id":4,"parentId":1,"tags":{},"startTime":1778591840584,"traceId":"2a2594cf7fd08e8c"},{"name":"load-custom-routes","duration":474,"timestamp":220354759344,"id":5,"parentId":1,"tags":{},"startTime":1778591840584,"traceId":"2a2594cf7fd08e8c"},{"name":"create-dist-dir","duration":1049,"timestamp":220354759859,"id":6,"parentId":1,"tags":{},"startTime":1778591840585,"traceId":"2a2594cf7fd08e8c"},{"name":"clean","duration":531,"timestamp":220354762271,"id":7,"parentId":1,"tags":{},"startTime":1778591840587,"traceId":"2a2594cf7fd08e8c"},{"name":"discover-routes","duration":8554,"timestamp":220354856846,"id":8,"parentId":1,"tags":{},"startTime":1778591840682,"traceId":"2a2594cf7fd08e8c"},{"name":"create-root-mapping","duration":138,"timestamp":220354865475,"id":9,"parentId":1,"tags":{},"startTime":1778591840690,"traceId":"2a2594cf7fd08e8c"},{"name":"generate-route-types","duration":32395,"timestamp":220354867954,"id":10,"parentId":1,"tags":{},"startTime":1778591840693,"traceId":"2a2594cf7fd08e8c"},{"name":"public-dir-conflict-check","duration":106,"timestamp":220354900544,"id":11,"parentId":1,"tags":{},"startTime":1778591840725,"traceId":"2a2594cf7fd08e8c"},{"name":"generate-routes-manifest","duration":4193,"timestamp":220354900771,"id":12,"parentId":1,"tags":{},"startTime":1778591840725,"traceId":"2a2594cf7fd08e8c"},{"name":"run-turbopack","duration":9326101,"timestamp":220354916834,"id":14,"parentId":1,"tags":{},"startTime":1778591840742,"traceId":"2a2594cf7fd08e8c"},{"name":"turbopack-build-events","duration":85,"timestamp":220355215854,"id":15,"parentId":1,"tags":{},"startTime":1778591841041,"traceId":"2a2594cf7fd08e8c"},{"name":"run-typescript","duration":8463920,"timestamp":220364259103,"id":16,"parentId":1,"tags":{},"startTime":1778591850084,"traceId":"2a2594cf7fd08e8c"},{"name":"generate-required-server-files","duration":2756,"timestamp":220372723929,"id":18,"parentId":1,"tags":{},"startTime":1778591858549,"traceId":"2a2594cf7fd08e8c"},{"name":"check-static-error-page","duration":22714,"timestamp":220372812486,"id":20,"parentId":19,"tags":{},"startTime":1778591858637,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":429254,"timestamp":220372837881,"id":62,"parentId":22,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":446960,"timestamp":220372820308,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778591858645,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":489243,"timestamp":220372837586,"id":61,"parentId":21,"tags":{},"startTime":1778591858662,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":509530,"timestamp":220372817375,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778591858642,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":600304,"timestamp":220372838161,"id":65,"parentId":27,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":612779,"timestamp":220372825754,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778591858650,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":610493,"timestamp":220372838200,"id":66,"parentId":28,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":622906,"timestamp":220372825852,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778591858651,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":619501,"timestamp":220372838239,"id":67,"parentId":29,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":630491,"timestamp":220372827315,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778591858652,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":623864,"timestamp":220372838273,"id":68,"parentId":30,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":634649,"timestamp":220372827550,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778591858652,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":627448,"timestamp":220372838308,"id":69,"parentId":32,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":637218,"timestamp":220372828596,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778591858653,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":631025,"timestamp":220372838423,"id":70,"parentId":33,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":640741,"timestamp":220372828760,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778591858653,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":634359,"timestamp":220372838469,"id":71,"parentId":34,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":643968,"timestamp":220372828921,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778591858654,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":637945,"timestamp":220372838487,"id":72,"parentId":35,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":647281,"timestamp":220372829201,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778591858654,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":642814,"timestamp":220372838538,"id":73,"parentId":36,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":651815,"timestamp":220372829610,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778591858654,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":646246,"timestamp":220372838556,"id":74,"parentId":37,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":655105,"timestamp":220372829748,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778591858654,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":650343,"timestamp":220372838564,"id":75,"parentId":38,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":659106,"timestamp":220372829861,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778591858655,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":653609,"timestamp":220372838569,"id":76,"parentId":39,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":662290,"timestamp":220372829938,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778591858655,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":658239,"timestamp":220372838575,"id":77,"parentId":40,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":666822,"timestamp":220372830044,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778591858655,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":663690,"timestamp":220372838581,"id":78,"parentId":41,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":672200,"timestamp":220372830126,"id":41,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778591858655,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":664903,"timestamp":220372838586,"id":79,"parentId":42,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":673338,"timestamp":220372830208,"id":42,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778591858655,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":668044,"timestamp":220372838592,"id":80,"parentId":43,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":676402,"timestamp":220372830279,"id":43,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778591858655,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":670979,"timestamp":220372838598,"id":81,"parentId":44,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":679250,"timestamp":220372830369,"id":44,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778591858655,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":675341,"timestamp":220372838118,"id":64,"parentId":26,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":687890,"timestamp":220372825612,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778591858650,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":679491,"timestamp":220372838603,"id":82,"parentId":45,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":687683,"timestamp":220372830459,"id":45,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778591858655,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":681683,"timestamp":220372838613,"id":84,"parentId":47,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":689702,"timestamp":220372830643,"id":47,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778591858655,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":684550,"timestamp":220372838618,"id":85,"parentId":48,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":692491,"timestamp":220372830724,"id":48,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778591858655,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":682853,"timestamp":220372844349,"id":86,"parentId":24,"tags":{},"startTime":1778591858669,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":705015,"timestamp":220372822231,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778591858647,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":685817,"timestamp":220372845111,"id":87,"parentId":31,"tags":{},"startTime":1778591858670,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":703322,"timestamp":220372827650,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778591858652,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":664631,"timestamp":220372872435,"id":88,"parentId":23,"tags":{},"startTime":1778591858697,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":715226,"timestamp":220372821890,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778591858647,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":704128,"timestamp":220372838608,"id":83,"parentId":46,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":712225,"timestamp":220372830561,"id":46,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778591858655,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":670942,"timestamp":220372872481,"id":89,"parentId":49,"tags":{},"startTime":1778591858697,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":712378,"timestamp":220372831082,"id":49,"parentId":19,"tags":{"page":"/login"},"startTime":1778591858656,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":676525,"timestamp":220372872498,"id":91,"parentId":51,"tags":{},"startTime":1778591858697,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":717671,"timestamp":220372831400,"id":51,"parentId":19,"tags":{"page":"/messages"},"startTime":1778591858656,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":683440,"timestamp":220372872503,"id":92,"parentId":52,"tags":{},"startTime":1778591858697,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":724416,"timestamp":220372831579,"id":52,"parentId":19,"tags":{"page":"/node"},"startTime":1778591858656,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":689701,"timestamp":220372872512,"id":93,"parentId":53,"tags":{},"startTime":1778591858697,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":731311,"timestamp":220372831777,"id":53,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778591858656,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":728221,"timestamp":220372837960,"id":63,"parentId":25,"tags":{},"startTime":1778591858663,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":741362,"timestamp":220372824865,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778591858650,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":696013,"timestamp":220372872521,"id":94,"parentId":55,"tags":{},"startTime":1778591858697,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":736077,"timestamp":220372832517,"id":55,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778591858657,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":702655,"timestamp":220372872537,"id":96,"parentId":58,"tags":{},"startTime":1778591858697,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":740518,"timestamp":220372834731,"id":58,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778591858659,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":713791,"timestamp":220372872545,"id":97,"parentId":59,"tags":{},"startTime":1778591858697,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":751544,"timestamp":220372834870,"id":59,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778591858660,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":719427,"timestamp":220372872553,"id":98,"parentId":60,"tags":{},"startTime":1778591858697,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":757066,"timestamp":220372834988,"id":60,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778591858660,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":728025,"timestamp":220372872564,"id":99,"parentId":54,"tags":{},"startTime":1778591858697,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":768613,"timestamp":220372832040,"id":54,"parentId":19,"tags":{"page":"/"},"startTime":1778591858657,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":724517,"timestamp":220372880155,"id":100,"parentId":57,"tags":{},"startTime":1778591858705,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":771875,"timestamp":220372832851,"id":57,"parentId":19,"tags":{"page":"/settings"},"startTime":1778591858658,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":752161,"timestamp":220372872526,"id":95,"parentId":56,"tags":{},"startTime":1778591858697,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":792049,"timestamp":220372832699,"id":56,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778591858657,"traceId":"2a2594cf7fd08e8c"},{"name":"is-page-static","duration":759068,"timestamp":220372872489,"id":90,"parentId":50,"tags":{},"startTime":1778591858697,"traceId":"2a2594cf7fd08e8c"},{"name":"check-page","duration":800390,"timestamp":220372831226,"id":50,"parentId":19,"tags":{"page":"/logs"},"startTime":1778591858656,"traceId":"2a2594cf7fd08e8c"},{"name":"static-check","duration":820082,"timestamp":220372811575,"id":19,"parentId":1,"tags":{},"startTime":1778591858636,"traceId":"2a2594cf7fd08e8c"},{"name":"write-routes-manifest","duration":406,"timestamp":220373638841,"id":102,"parentId":1,"tags":{},"startTime":1778591859464,"traceId":"2a2594cf7fd08e8c"},{"name":"load-dotenv","duration":892,"timestamp":220373657079,"id":105,"parentId":104,"tags":{},"startTime":1778591859482,"traceId":"2a2594cf7fd08e8c"},{"name":"run-export-path-map","duration":754,"timestamp":220373663309,"id":106,"parentId":104,"tags":{},"startTime":1778591859488,"traceId":"2a2594cf7fd08e8c"},{"name":"next-export","duration":763295,"timestamp":220373653266,"id":104,"parentId":1,"tags":{},"startTime":1778591859478,"traceId":"2a2594cf7fd08e8c"},{"name":"move-exported-app-not-found-","duration":1102,"timestamp":220374421716,"id":107,"parentId":103,"tags":{},"startTime":1778591860246,"traceId":"2a2594cf7fd08e8c"},{"name":"move-exported-app-global-error-","duration":348,"timestamp":220374422935,"id":108,"parentId":103,"tags":{},"startTime":1778591860248,"traceId":"2a2594cf7fd08e8c"}]
2
+ [{"name":"static-generation","duration":785372,"timestamp":220373643054,"id":103,"parentId":1,"tags":{},"startTime":1778591859468,"traceId":"2a2594cf7fd08e8c"},{"name":"write-routes-manifest","duration":451,"timestamp":220374428615,"id":109,"parentId":1,"tags":{},"startTime":1778591860253,"traceId":"2a2594cf7fd08e8c"},{"name":"print-tree-view","duration":5360,"timestamp":220374441311,"id":110,"parentId":1,"tags":{},"startTime":1778591860266,"traceId":"2a2594cf7fd08e8c"},{"name":"write-route-bundle-stats","duration":19158,"timestamp":220374446713,"id":111,"parentId":1,"tags":{},"startTime":1778591860271,"traceId":"2a2594cf7fd08e8c"},{"name":"telemetry-flush","duration":33351,"timestamp":220374465909,"id":112,"parentId":1,"tags":{},"startTime":1778591860291,"traceId":"2a2594cf7fd08e8c"},{"name":"next-build","duration":19790696,"timestamp":220354708623,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778591840533,"traceId":"2a2594cf7fd08e8c"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":9372933,"timestamp":219928646665,"id":14,"parentId":1,"tags":{},"startTime":1778591414471,"traceId":"918d1422b05f7f00"},{"name":"turbopack-build-events","duration":81,"timestamp":219928964382,"id":15,"parentId":1,"tags":{},"startTime":1778591414789,"traceId":"918d1422b05f7f00"},{"name":"run-typescript","duration":9432808,"timestamp":219938029779,"id":16,"parentId":1,"tags":{},"startTime":1778591423854,"traceId":"918d1422b05f7f00"},{"name":"static-check","duration":986390,"timestamp":219947542423,"id":19,"parentId":1,"tags":{},"startTime":1778591433367,"traceId":"918d1422b05f7f00"},{"name":"static-generation","duration":590239,"timestamp":219948542146,"id":103,"parentId":1,"tags":{},"startTime":1778591434367,"traceId":"918d1422b05f7f00"},{"name":"telemetry-flush","duration":25060,"timestamp":219949162652,"id":112,"parentId":1,"tags":{},"startTime":1778591434987,"traceId":"918d1422b05f7f00"},{"name":"next-build","duration":20776635,"timestamp":219928411133,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778591414236,"traceId":"918d1422b05f7f00"}]
1
+ [{"name":"run-turbopack","duration":9326101,"timestamp":220354916834,"id":14,"parentId":1,"tags":{},"startTime":1778591840742,"traceId":"2a2594cf7fd08e8c"},{"name":"turbopack-build-events","duration":85,"timestamp":220355215854,"id":15,"parentId":1,"tags":{},"startTime":1778591841041,"traceId":"2a2594cf7fd08e8c"},{"name":"run-typescript","duration":8463920,"timestamp":220364259103,"id":16,"parentId":1,"tags":{},"startTime":1778591850084,"traceId":"2a2594cf7fd08e8c"},{"name":"static-check","duration":820082,"timestamp":220372811575,"id":19,"parentId":1,"tags":{},"startTime":1778591858636,"traceId":"2a2594cf7fd08e8c"},{"name":"static-generation","duration":785372,"timestamp":220373643054,"id":103,"parentId":1,"tags":{},"startTime":1778591859468,"traceId":"2a2594cf7fd08e8c"},{"name":"telemetry-flush","duration":33351,"timestamp":220374465909,"id":112,"parentId":1,"tags":{},"startTime":1778591860291,"traceId":"2a2594cf7fd08e8c"},{"name":"next-build","duration":19790696,"timestamp":220354708623,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778591840533,"traceId":"2a2594cf7fd08e8c"}]
@@ -166,6 +166,15 @@ export default function AdminPage() {
166
166
  <div className="text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold">Actions</div>
167
167
  <div className="flex-1 h-px bg-[#2a2a4a]" />
168
168
  </div>
169
+ {sessions.length === 0 ? (
170
+ /* Round 77: Broadcast and Send Task both require at least one
171
+ registered agent. Surfacing the empty cards above an empty
172
+ fleet is the same dead-control class as the Overview
173
+ Dispatch button (r70). Replace with a single inline hint. */
174
+ <div className="bg-[#111128] border border-[#2a2a4a] rounded-xl px-5 py-4 text-sm text-gray-500">
175
+ Broadcast and Send Task become available after the first agent registers.
176
+ </div>
177
+ ) : (
169
178
  <div className="grid grid-cols-1 lg:grid-cols-2 gap-4">
170
179
 
171
180
  {/* Broadcast */}
@@ -229,6 +238,7 @@ export default function AdminPage() {
229
238
  </section>
230
239
 
231
240
  </div>
241
+ )}
232
242
  </div>
233
243
 
234
244
  {/* ── Group: Users ──────────────────────────────────────── */}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network-dashboard",
3
- "version": "0.4.5-preview.59",
3
+ "version": "0.4.5-preview.60",
4
4
  "description": "Agent Network Dashboard — Web UI for managing AI Agent networks",
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -42,6 +42,10 @@ const pages = [
42
42
  { name: 'nodes', path: '/nodes' },
43
43
  { name: 'tasks', path: '/tasks' },
44
44
  { name: 'messages', path: '/messages' },
45
+ { name: 'admin', path: '/admin' },
46
+ { name: 'settings', path: '/settings' },
47
+ { name: 'networks', path: '/settings/networks' },
48
+ { name: 'logs', path: '/logs' },
45
49
  ];
46
50
 
47
51
  const matrix = [];