@sleep2agi/agent-network-dashboard 0.4.6-preview.32 → 0.4.6-preview.321

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 (487) 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 +41 -41
  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/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/_not-found.html +2 -2
  15. package/.next/server/app/_not-found.rsc +12 -12
  16. package/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
  17. package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  18. package/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
  19. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  20. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  21. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  22. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  23. package/.next/server/app/admin.html +2 -2
  24. package/.next/server/app/admin.rsc +14 -14
  25. package/.next/server/app/admin.segments/_full.segment.rsc +14 -14
  26. package/.next/server/app/admin.segments/_head.segment.rsc +4 -4
  27. package/.next/server/app/admin.segments/_index.segment.rsc +7 -7
  28. package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
  29. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +4 -4
  30. package/.next/server/app/admin.segments/admin.segment.rsc +3 -3
  31. package/.next/server/app/index.html +2 -2
  32. package/.next/server/app/index.rsc +14 -14
  33. package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  34. package/.next/server/app/index.segments/_full.segment.rsc +14 -14
  35. package/.next/server/app/index.segments/_head.segment.rsc +4 -4
  36. package/.next/server/app/index.segments/_index.segment.rsc +7 -7
  37. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  38. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  39. package/.next/server/app/login.html +2 -2
  40. package/.next/server/app/login.rsc +14 -14
  41. package/.next/server/app/login.segments/_full.segment.rsc +14 -14
  42. package/.next/server/app/login.segments/_head.segment.rsc +4 -4
  43. package/.next/server/app/login.segments/_index.segment.rsc +7 -7
  44. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  45. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  46. package/.next/server/app/login.segments/login.segment.rsc +3 -3
  47. package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  48. package/.next/server/app/logs.html +2 -2
  49. package/.next/server/app/logs.rsc +14 -14
  50. package/.next/server/app/logs.segments/_full.segment.rsc +14 -14
  51. package/.next/server/app/logs.segments/_head.segment.rsc +4 -4
  52. package/.next/server/app/logs.segments/_index.segment.rsc +7 -7
  53. package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
  54. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +4 -4
  55. package/.next/server/app/logs.segments/logs.segment.rsc +3 -3
  56. package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
  57. package/.next/server/app/messages.html +2 -2
  58. package/.next/server/app/messages.rsc +14 -14
  59. package/.next/server/app/messages.segments/_full.segment.rsc +14 -14
  60. package/.next/server/app/messages.segments/_head.segment.rsc +4 -4
  61. package/.next/server/app/messages.segments/_index.segment.rsc +7 -7
  62. package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
  63. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +4 -4
  64. package/.next/server/app/messages.segments/messages.segment.rsc +3 -3
  65. package/.next/server/app/node/page_client-reference-manifest.js +1 -1
  66. package/.next/server/app/node.html +2 -2
  67. package/.next/server/app/node.rsc +14 -14
  68. package/.next/server/app/node.segments/_full.segment.rsc +14 -14
  69. package/.next/server/app/node.segments/_head.segment.rsc +4 -4
  70. package/.next/server/app/node.segments/_index.segment.rsc +7 -7
  71. package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
  72. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +4 -4
  73. package/.next/server/app/node.segments/node.segment.rsc +3 -3
  74. package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  75. package/.next/server/app/nodes.html +2 -2
  76. package/.next/server/app/nodes.rsc +14 -14
  77. package/.next/server/app/nodes.segments/_full.segment.rsc +14 -14
  78. package/.next/server/app/nodes.segments/_head.segment.rsc +4 -4
  79. package/.next/server/app/nodes.segments/_index.segment.rsc +7 -7
  80. package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
  81. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +4 -4
  82. package/.next/server/app/nodes.segments/nodes.segment.rsc +3 -3
  83. package/.next/server/app/page_client-reference-manifest.js +1 -1
  84. package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
  85. package/.next/server/app/server-logs.html +2 -2
  86. package/.next/server/app/server-logs.rsc +14 -14
  87. package/.next/server/app/server-logs.segments/_full.segment.rsc +14 -14
  88. package/.next/server/app/server-logs.segments/_head.segment.rsc +4 -4
  89. package/.next/server/app/server-logs.segments/_index.segment.rsc +7 -7
  90. package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
  91. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +4 -4
  92. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +3 -3
  93. package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
  94. package/.next/server/app/settings/networks.html +2 -2
  95. package/.next/server/app/settings/networks.rsc +14 -14
  96. package/.next/server/app/settings/networks.segments/_full.segment.rsc +14 -14
  97. package/.next/server/app/settings/networks.segments/_head.segment.rsc +4 -4
  98. package/.next/server/app/settings/networks.segments/_index.segment.rsc +7 -7
  99. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
  100. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +4 -4
  101. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +3 -3
  102. package/.next/server/app/settings/networks.segments/settings.segment.rsc +3 -3
  103. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  104. package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
  105. package/.next/server/app/settings/tokens.html +2 -2
  106. package/.next/server/app/settings/tokens.rsc +14 -14
  107. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +14 -14
  108. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +4 -4
  109. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +7 -7
  110. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
  111. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +4 -4
  112. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +3 -3
  113. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +3 -3
  114. package/.next/server/app/settings.html +2 -2
  115. package/.next/server/app/settings.rsc +14 -14
  116. package/.next/server/app/settings.segments/_full.segment.rsc +14 -14
  117. package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  118. package/.next/server/app/settings.segments/_index.segment.rsc +7 -7
  119. package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  120. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  121. package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  122. package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  123. package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  124. package/.next/server/app/tasks.html +2 -2
  125. package/.next/server/app/tasks.rsc +14 -14
  126. package/.next/server/app/tasks.segments/_full.segment.rsc +14 -14
  127. package/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
  128. package/.next/server/app/tasks.segments/_index.segment.rsc +7 -7
  129. package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
  130. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
  131. package/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
  132. package/.next/server/chunks/ssr/[root-of-the-server]__03b.f76._.js +1 -1
  133. package/.next/server/chunks/ssr/[root-of-the-server]__03b.f76._.js.map +1 -1
  134. package/.next/server/chunks/ssr/[root-of-the-server]__0fhoq8i._.js +1 -1
  135. package/.next/server/chunks/ssr/[root-of-the-server]__0fhoq8i._.js.map +1 -1
  136. package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js +1 -1
  137. package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js.map +1 -1
  138. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +4 -1
  139. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  140. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  141. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  142. package/.next/server/chunks/ssr/agent-network-dashboard_app_057q.ne._.js +1 -1
  143. package/.next/server/chunks/ssr/agent-network-dashboard_app_057q.ne._.js.map +1 -1
  144. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  145. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  146. package/.next/server/chunks/ssr/agent-network-dashboard_app_0_d45-d._.js +1 -1
  147. package/.next/server/chunks/ssr/agent-network-dashboard_app_0_d45-d._.js.map +1 -1
  148. package/.next/server/chunks/ssr/agent-network-dashboard_app_0i3759l._.js +1 -1
  149. package/.next/server/chunks/ssr/agent-network-dashboard_app_0i3759l._.js.map +1 -1
  150. package/.next/server/chunks/ssr/agent-network-dashboard_app_0xgney8._.js +1 -1
  151. package/.next/server/chunks/ssr/agent-network-dashboard_app_0xgney8._.js.map +1 -1
  152. package/.next/server/chunks/ssr/agent-network-dashboard_app_10hjgv4._.js +1 -1
  153. package/.next/server/chunks/ssr/agent-network-dashboard_app_10hjgv4._.js.map +1 -1
  154. package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js +1 -1
  155. package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js.map +1 -1
  156. package/.next/server/chunks/ssr/agent-network-dashboard_app_12l4oto._.js +1 -1
  157. package/.next/server/chunks/ssr/agent-network-dashboard_app_12l4oto._.js.map +1 -1
  158. package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js +1 -1
  159. package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js.map +1 -1
  160. package/.next/server/middleware-build-manifest.js +3 -3
  161. package/.next/server/pages/404.html +2 -2
  162. package/.next/server/pages/500.html +1 -1
  163. package/.next/server/server-reference-manifest.js +1 -1
  164. package/.next/server/server-reference-manifest.json +1 -1
  165. package/.next/static/chunks/0-mpa_947ipeq.js +1 -0
  166. package/.next/static/chunks/01lmbsd37fybu.js +1 -0
  167. package/.next/static/chunks/03o.h6kvmw4l_.js +1 -0
  168. package/.next/static/chunks/03~~oirxz7~vc.js +1 -0
  169. package/.next/static/chunks/05uk96gc~9mni.js +1 -0
  170. package/.next/static/chunks/07lsi~s-c0wvh.css +2 -0
  171. package/.next/static/chunks/08kf-.bgs10ze.js +1 -0
  172. package/.next/static/chunks/08s10wueoqydl.js +1 -0
  173. package/.next/static/chunks/0_l-j6k-ic81v.js +4 -0
  174. package/.next/static/chunks/0ggj5ummw2a84.js +7 -0
  175. package/.next/static/chunks/0glmrdj9112tc.js +7 -0
  176. package/.next/static/chunks/0rxrez_cjn.eh.js +1 -0
  177. package/.next/static/chunks/0wlu_nyra0im0.js +1 -0
  178. package/.next/static/chunks/0x8x.29hkju5a.js +1 -0
  179. package/.next/static/chunks/174re5ar~kxne.js +1 -0
  180. package/.next/trace +2 -2
  181. package/.next/trace-build +1 -1
  182. package/app/components/ChatPopover.tsx +38 -2
  183. package/app/components/CommandPalette.tsx +107 -0
  184. package/app/components/HelpOverlay.tsx +126 -0
  185. package/app/components/TopoGraph.tsx +6091 -262
  186. package/app/components/utils.ts +8 -7
  187. package/app/globals.css +110 -5
  188. package/app/lib/time.ts +36 -0
  189. package/app/lib/vendorIdentity.ts +14 -3
  190. package/package.json +2 -2
  191. package/public/sleep2agi-logo.svg +11 -0
  192. package/public/vendors/claude.svg +11 -0
  193. package/public/vendors/minimax.svg +11 -0
  194. package/public/vendors/openai.svg +12 -0
  195. package/screenshots/r293-p0/after-full.png +0 -0
  196. package/screenshots/r293-p0/after-topo.png +0 -0
  197. package/screenshots/r293-p0/baseline-full.png +0 -0
  198. package/screenshots/r293-p0/baseline-topo.png +0 -0
  199. package/screenshots/r293-p0/logo-integrated-full.png +0 -0
  200. package/screenshots/r293-p0/logo-integrated-topo.png +0 -0
  201. package/scripts/help-overlay-topo-test.mjs +44 -0
  202. package/scripts/p0-topo-screenshot.mjs +82 -0
  203. package/scripts/topo-active-filter-pill-test.mjs +101 -0
  204. package/scripts/topo-active-links-chip-hover-test.mjs +103 -0
  205. package/scripts/topo-active-links-chip-nav-test.mjs +117 -0
  206. package/scripts/topo-active-links-chip-self-hover-test.mjs +171 -0
  207. package/scripts/topo-active-links-chip-test.mjs +73 -0
  208. package/scripts/topo-active-links-empty-recede-test.mjs +125 -0
  209. package/scripts/topo-active-links-freshness-test.mjs +113 -0
  210. package/scripts/topo-active-links-tooltip-test.mjs +79 -0
  211. package/scripts/topo-active-pulse-ease-test.mjs +120 -0
  212. package/scripts/topo-auto-fit-test.mjs +73 -0
  213. package/scripts/topo-brand-logo-transition-test.mjs +93 -0
  214. package/scripts/topo-brand-watermark-test.mjs +97 -0
  215. package/scripts/topo-canvas-aria-test.mjs +108 -0
  216. package/scripts/topo-chat-target-breath-test.mjs +84 -0
  217. package/scripts/topo-chat-target-ring-ease-test.mjs +82 -0
  218. package/scripts/topo-chat-target-ring-fade-test.mjs +124 -0
  219. package/scripts/topo-chip-empty-recede-test.mjs +116 -0
  220. package/scripts/topo-chip-focus-test.mjs +95 -0
  221. package/scripts/topo-chip-pin-mirror-test.mjs +113 -0
  222. package/scripts/topo-chip-row-semantic-gap-test.mjs +97 -0
  223. package/scripts/topo-chip-row-tabular-test.mjs +111 -0
  224. package/scripts/topo-chrome-a11y-test.mjs +107 -0
  225. package/scripts/topo-chrome-focus-ring-unify-test.mjs +100 -0
  226. package/scripts/topo-chrome-icon-stroke-test.mjs +95 -0
  227. package/scripts/topo-chrome-pop-extension-test.mjs +98 -0
  228. package/scripts/topo-chrome-pop-nodesize-test.mjs +88 -0
  229. package/scripts/topo-chrome-press-state-test.mjs +135 -0
  230. package/scripts/topo-chrome-strip-semantic-gap-test.mjs +99 -0
  231. package/scripts/topo-chrome-strip-theme-ease-test.mjs +99 -0
  232. package/scripts/topo-chrome-zoom-level-pop-test.mjs +122 -0
  233. package/scripts/topo-chrome-zoom-pop-test.mjs +130 -0
  234. package/scripts/topo-click-ripple-ease-test.mjs +94 -0
  235. package/scripts/topo-cmdk-edge-clear-test.mjs +109 -0
  236. package/scripts/topo-cmdk-layout-view-test.mjs +108 -0
  237. package/scripts/topo-cmdk-pin-test.mjs +123 -0
  238. package/scripts/topo-cmdk-vendor-clear-test.mjs +133 -0
  239. package/scripts/topo-cmdk-vendor-pin-test.mjs +103 -0
  240. package/scripts/topo-corner-radius-unify-test.mjs +103 -0
  241. package/scripts/topo-cwd-tooltip-test.mjs +64 -0
  242. package/scripts/topo-dblclick-reset-test.mjs +74 -0
  243. package/scripts/topo-dense-alias-fill-transition-test.mjs +133 -0
  244. package/scripts/topo-discrete-zoom-smooth-test.mjs +125 -0
  245. package/scripts/topo-edge-badge-click-pin-test.mjs +94 -0
  246. package/scripts/topo-edge-badge-crossfade-test.mjs +138 -0
  247. package/scripts/topo-edge-badge-hot-test.mjs +115 -0
  248. package/scripts/topo-edge-badge-hover-test.mjs +85 -0
  249. package/scripts/topo-edge-badge-lift-test.mjs +150 -0
  250. package/scripts/topo-edge-badge-ripple-test.mjs +111 -0
  251. package/scripts/topo-edge-badge-stroke-transition-test.mjs +118 -0
  252. package/scripts/topo-edge-badge-text-pin-test.mjs +121 -0
  253. package/scripts/topo-edge-badge-theme-ease-test.mjs +89 -0
  254. package/scripts/topo-edge-count-badge-test.mjs +86 -0
  255. package/scripts/topo-edge-endpoint-highlight-test.mjs +111 -0
  256. package/scripts/topo-edge-fadein-test.mjs +106 -0
  257. package/scripts/topo-edge-focus-test.mjs +113 -0
  258. package/scripts/topo-edge-hover-test.mjs +93 -0
  259. package/scripts/topo-edge-pill-hot-test.mjs +129 -0
  260. package/scripts/topo-edge-pill-test.mjs +105 -0
  261. package/scripts/topo-edge-ping-pulse-retired-test.mjs +119 -0
  262. package/scripts/topo-edge-stroke-ease-test.mjs +100 -0
  263. package/scripts/topo-edge-stroke-transition-test.mjs +132 -0
  264. package/scripts/topo-edge-tooltip-test.mjs +70 -0
  265. package/scripts/topo-empty-hint-tracking-test.mjs +84 -0
  266. package/scripts/topo-empty-state-breath-test.mjs +150 -0
  267. package/scripts/topo-empty-state-crossfade-test.mjs +130 -0
  268. package/scripts/topo-empty-state-recenter-test.mjs +107 -0
  269. package/scripts/topo-empty-subhint-tracking-test.mjs +87 -0
  270. package/scripts/topo-endpoint-ring-fade-test.mjs +132 -0
  271. package/scripts/topo-endpoint-ring-test.mjs +93 -0
  272. package/scripts/topo-endpoint-ring-thicken-test.mjs +112 -0
  273. package/scripts/topo-esc-clears-pin-test.mjs +98 -0
  274. package/scripts/topo-filter-pill-aliases-test.mjs +121 -0
  275. package/scripts/topo-filter-pill-body-click-test.mjs +112 -0
  276. package/scripts/topo-filter-pill-count-test.mjs +110 -0
  277. package/scripts/topo-filter-pill-mobile-test.mjs +90 -0
  278. package/scripts/topo-fit-key-test.mjs +106 -0
  279. package/scripts/topo-freshness-chip-test.mjs +74 -0
  280. package/scripts/topo-freshness-chip-transition-test.mjs +80 -0
  281. package/scripts/topo-freshness-conditional-render-test.mjs +92 -0
  282. package/scripts/topo-fullscreen-active-test.mjs +115 -0
  283. package/scripts/topo-group-box-pinned-state-test.mjs +95 -0
  284. package/scripts/topo-group-count-test.mjs +6 -1
  285. package/scripts/topo-group-label-a11y-test.mjs +113 -0
  286. package/scripts/topo-group-label-count-inherit-test.mjs +99 -0
  287. package/scripts/topo-group-label-hover-test.mjs +119 -0
  288. package/scripts/topo-group-label-pin-spacing-test.mjs +136 -0
  289. package/scripts/topo-group-label-tint-test.mjs +99 -0
  290. package/scripts/topo-group-label-title-test.mjs +83 -0
  291. package/scripts/topo-group-pin-test.mjs +119 -0
  292. package/scripts/topo-group-pip-fadein-test.mjs +100 -0
  293. package/scripts/topo-group-pip-tabular-test.mjs +95 -0
  294. package/scripts/topo-group-status-pips-test.mjs +103 -0
  295. package/scripts/topo-groupbox-fadein-test.mjs +95 -0
  296. package/scripts/topo-groupbox-hover-lift-test.mjs +127 -0
  297. package/scripts/topo-groupbox-hubcore-ease-test.mjs +106 -0
  298. package/scripts/topo-groupbox-live-test.mjs +100 -0
  299. package/scripts/topo-groupbox-march-busyness-test.mjs +155 -0
  300. package/scripts/topo-groupbox-test.mjs +4 -2
  301. package/scripts/topo-help-overlay-r109-test.mjs +67 -0
  302. package/scripts/topo-help-overlay-r118-test.mjs +69 -0
  303. package/scripts/topo-help-overlay-r123-test.mjs +69 -0
  304. package/scripts/topo-help-overlay-r134-test.mjs +74 -0
  305. package/scripts/topo-help-overlay-r137-test.mjs +81 -0
  306. package/scripts/topo-help-overlay-r141-test.mjs +86 -0
  307. package/scripts/topo-help-overlay-r153-test.mjs +85 -0
  308. package/scripts/topo-help-overlay-r59-test.mjs +67 -0
  309. package/scripts/topo-help-overlay-r65-test.mjs +64 -0
  310. package/scripts/topo-help-overlay-r70-test.mjs +63 -0
  311. package/scripts/topo-help-overlay-r78-test.mjs +59 -0
  312. package/scripts/topo-help-overlay-r81-test.mjs +58 -0
  313. package/scripts/topo-help-overlay-r87-test.mjs +64 -0
  314. package/scripts/topo-help-overlay-r91-test.mjs +65 -0
  315. package/scripts/topo-hot-tail-crossfade-test.mjs +117 -0
  316. package/scripts/topo-html-overlay-padding-unify-test.mjs +120 -0
  317. package/scripts/topo-hub-a11y-test.mjs +112 -0
  318. package/scripts/topo-hub-busyness-test.mjs +100 -0
  319. package/scripts/topo-hub-center-crossfade-test.mjs +124 -0
  320. package/scripts/topo-hub-click-fit-test.mjs +137 -0
  321. package/scripts/topo-hub-digit-scale-test.mjs +129 -0
  322. package/scripts/topo-hub-fadein-test.mjs +88 -0
  323. package/scripts/topo-hub-hover-lift-test.mjs +101 -0
  324. package/scripts/topo-hub-hover-ring-test.mjs +82 -0
  325. package/scripts/topo-hub-pip-theme-ease-test.mjs +116 -0
  326. package/scripts/topo-hub-spoke-ease-test.mjs +120 -0
  327. package/scripts/topo-hub-title-test.mjs +93 -0
  328. package/scripts/topo-hub-working-count-test.mjs +99 -0
  329. package/scripts/topo-ingroup-edge-test.mjs +103 -0
  330. package/scripts/topo-inner-radar-ring-retired-test.mjs +89 -0
  331. package/scripts/topo-kicker-color-test.mjs +93 -0
  332. package/scripts/topo-kicker-tracking-test.mjs +101 -0
  333. package/scripts/topo-kicker-weight-test.mjs +98 -0
  334. package/scripts/topo-label-card-theme-ease-test.mjs +85 -0
  335. package/scripts/topo-label-lift-test.mjs +119 -0
  336. package/scripts/topo-lastseen-tooltip-test.mjs +59 -0
  337. package/scripts/topo-layout-hover-text-preview-test.mjs +101 -0
  338. package/scripts/topo-layout-key-test.mjs +91 -0
  339. package/scripts/topo-layout-switch-crossfade-test.mjs +126 -0
  340. package/scripts/topo-layout-toggle-border-unify-test.mjs +104 -0
  341. package/scripts/topo-layout-toggle-test.mjs +131 -0
  342. package/scripts/topo-legend-compress-test.mjs +107 -0
  343. package/scripts/topo-legend-count-empty-test.mjs +126 -0
  344. package/scripts/topo-legend-count-tabular-parity-test.mjs +90 -0
  345. package/scripts/topo-legend-count-tabular-test.mjs +87 -0
  346. package/scripts/topo-legend-count-test.mjs +88 -0
  347. package/scripts/topo-legend-count-tier-fill-test.mjs +121 -0
  348. package/scripts/topo-legend-header-symmetric-inset-test.mjs +112 -0
  349. package/scripts/topo-legend-hitbox-swatch-center-test.mjs +93 -0
  350. package/scripts/topo-legend-hover-test.mjs +113 -0
  351. package/scripts/topo-legend-offline-delimiter-test.mjs +84 -0
  352. package/scripts/topo-legend-offline-label-simplify-test.mjs +85 -0
  353. package/scripts/topo-legend-panel-header-test.mjs +83 -0
  354. package/scripts/topo-legend-pin-ring-fade-test.mjs +112 -0
  355. package/scripts/topo-legend-pin-test.mjs +128 -0
  356. package/scripts/topo-legend-row-hover-lift-test.mjs +109 -0
  357. package/scripts/topo-legend-row-pin-spacing-test.mjs +124 -0
  358. package/scripts/topo-legend-row-tint-test.mjs +95 -0
  359. package/scripts/topo-legend-row-title-test.mjs +102 -0
  360. package/scripts/topo-legend-swatch-grow-test.mjs +116 -0
  361. package/scripts/topo-legend-swatch-radius-test.mjs +78 -0
  362. package/scripts/topo-minimap-a11y-test.mjs +101 -0
  363. package/scripts/topo-minimap-dot-transition-test.mjs +113 -0
  364. package/scripts/topo-minimap-rect-stroke-test.mjs +94 -0
  365. package/scripts/topo-minimap-test.mjs +68 -0
  366. package/scripts/topo-minimap-viewport-smooth-test.mjs +124 -0
  367. package/scripts/topo-mobile-chips-test.mjs +103 -0
  368. package/scripts/topo-monogram-font-test.mjs +112 -0
  369. package/scripts/topo-monogram-stroke-test.mjs +101 -0
  370. package/scripts/topo-node-a11y-test.mjs +107 -0
  371. package/scripts/topo-node-alias-chat-pin-test.mjs +95 -0
  372. package/scripts/topo-node-hover-lift-test.mjs +85 -0
  373. package/scripts/topo-node-label-card-elevation-test.mjs +157 -0
  374. package/scripts/topo-node-label-card-stroke-test.mjs +135 -0
  375. package/scripts/topo-node-stroke-transition-test.mjs +103 -0
  376. package/scripts/topo-node-text-fill-transition-test.mjs +119 -0
  377. package/scripts/topo-node-title-peers-test.mjs +107 -0
  378. package/scripts/topo-node-title-test.mjs +101 -0
  379. package/scripts/topo-nodesize-active-hover-test.mjs +109 -0
  380. package/scripts/topo-nodesize-crossfade-test.mjs +141 -0
  381. package/scripts/topo-online-chip-nav-test.mjs +143 -0
  382. package/scripts/topo-orbit-particles-retired-test.mjs +91 -0
  383. package/scripts/topo-overlap-test.mjs +32 -5
  384. package/scripts/topo-panel-elevation-test.mjs +76 -0
  385. package/scripts/topo-panel-fadein-test.mjs +102 -0
  386. package/scripts/topo-panel-hot-tail-fade-test.mjs +132 -0
  387. package/scripts/topo-panel-hover-elevation-test.mjs +118 -0
  388. package/scripts/topo-panel-theme-ease-test.mjs +85 -0
  389. package/scripts/topo-panel-title-fill-ease-test.mjs +91 -0
  390. package/scripts/topo-panel-title-tracking-test.mjs +78 -0
  391. package/scripts/topo-particle-stagger-test.mjs +82 -0
  392. package/scripts/topo-pin-intersection-color-ease-test.mjs +111 -0
  393. package/scripts/topo-pin-intersection-empty-test.mjs +129 -0
  394. package/scripts/topo-pin-intersection-tabular-test.mjs +96 -0
  395. package/scripts/topo-pin-intersection-test.mjs +121 -0
  396. package/scripts/topo-pin-intersection-warning-crossfade-test.mjs +107 -0
  397. package/scripts/topo-pin-mirror-transition-test.mjs +101 -0
  398. package/scripts/topo-pin-persistence-test.mjs +105 -0
  399. package/scripts/topo-popover-meta-test.mjs +78 -0
  400. package/scripts/topo-prepublish-guard-test.mjs +95 -0
  401. package/scripts/topo-pressure-bar-test.mjs +69 -0
  402. package/scripts/topo-pressure-hover-test.mjs +123 -0
  403. package/scripts/topo-pressure-pin-test.mjs +119 -0
  404. package/scripts/topo-pressure-seg-self-hover-test.mjs +126 -0
  405. package/scripts/topo-pressure-seg-tooltip-test.mjs +98 -0
  406. package/scripts/topo-pressure-seg-transition-test.mjs +107 -0
  407. package/scripts/topo-pulse-dot-crossfade-test.mjs +122 -0
  408. package/scripts/topo-pulse-dot-retired-test.mjs +86 -0
  409. package/scripts/topo-recent-panel-count-freshness-test.mjs +109 -0
  410. package/scripts/topo-recent-panel-count-test.mjs +72 -0
  411. package/scripts/topo-recent-panel-footer-breath-test.mjs +142 -0
  412. package/scripts/topo-recent-panel-hot-header-test.mjs +132 -0
  413. package/scripts/topo-recent-panel-more-crossfade-test.mjs +124 -0
  414. package/scripts/topo-recent-panel-more-cyan-hover-test.mjs +151 -0
  415. package/scripts/topo-recent-panel-more-nav-test.mjs +127 -0
  416. package/scripts/topo-recent-panel-more-test.mjs +106 -0
  417. package/scripts/topo-recent-panel-readability-bump-test.mjs +151 -0
  418. package/scripts/topo-recent-row-count-fill-test.mjs +129 -0
  419. package/scripts/topo-recent-row-fadein-test.mjs +107 -0
  420. package/scripts/topo-recent-row-freshness-test.mjs +102 -0
  421. package/scripts/topo-recent-row-hot-test.mjs +110 -0
  422. package/scripts/topo-recent-row-hover-lift-test.mjs +128 -0
  423. package/scripts/topo-recent-row-hover-test.mjs +122 -0
  424. package/scripts/topo-recent-row-pin-spacing-test.mjs +137 -0
  425. package/scripts/topo-recent-row-pin-test.mjs +126 -0
  426. package/scripts/topo-recent-row-tint-test.mjs +91 -0
  427. package/scripts/topo-recent-row-title-test.mjs +112 -0
  428. package/scripts/topo-recent-row-ts-alpha-test.mjs +100 -0
  429. package/scripts/topo-recent-row-ts-test.mjs +95 -0
  430. package/scripts/topo-recent-row-typography-test.mjs +119 -0
  431. package/scripts/topo-recent-signal-empty-hint-test.mjs +73 -0
  432. package/scripts/topo-recent-signal-empty-test.mjs +63 -0
  433. package/scripts/topo-reduced-motion-test.mjs +77 -0
  434. package/scripts/topo-reset-spin-test.mjs +120 -0
  435. package/scripts/topo-runtime-badge-grow-test.mjs +114 -0
  436. package/scripts/topo-spokes-retired-test.mjs +93 -0
  437. package/scripts/topo-starfield-density-test.mjs +89 -0
  438. package/scripts/topo-status-chip-hover-test.mjs +101 -0
  439. package/scripts/topo-status-chip-tooltip-test.mjs +95 -0
  440. package/scripts/topo-statusbar-chips-self-hover-test.mjs +177 -0
  441. package/scripts/topo-svg-focus-test.mjs +112 -0
  442. package/scripts/topo-sweep-busyness-test.mjs +94 -0
  443. package/scripts/topo-tabular-nums-sweep-test.mjs +93 -0
  444. package/scripts/topo-tier-guide-dashes-test.mjs +86 -0
  445. package/scripts/topo-tier-ring-fadein-test.mjs +107 -0
  446. package/scripts/topo-tier-ring-occupancy-test.mjs +87 -0
  447. package/scripts/topo-tier-ring-test.mjs +69 -0
  448. package/scripts/topo-tier-ring-tint-test.mjs +110 -0
  449. package/scripts/topo-tier-stagger-test.mjs +89 -0
  450. package/scripts/topo-title-block-tight-leading-test.mjs +95 -0
  451. package/scripts/topo-title-tracking-test.mjs +98 -0
  452. package/scripts/topo-titleblock-gap-test.mjs +86 -0
  453. package/scripts/topo-titleblock-margin-test.mjs +83 -0
  454. package/scripts/topo-toggle-inactive-cyan-hover-test.mjs +110 -0
  455. package/scripts/topo-top-rail-theme-ease-test.mjs +89 -0
  456. package/scripts/topo-tz-ghost-test.mjs +69 -0
  457. package/scripts/topo-vendor-chip-hover-test.mjs +111 -0
  458. package/scripts/topo-vendor-chip-self-hover-test.mjs +131 -0
  459. package/scripts/topo-vendor-chip-tabular-test.mjs +92 -0
  460. package/scripts/topo-vendor-chip-threshold-test.mjs +78 -0
  461. package/scripts/topo-vendor-letter-tooltip-test.mjs +92 -0
  462. package/scripts/topo-vendor-pill-test.mjs +125 -0
  463. package/scripts/topo-vendor-pin-test.mjs +125 -0
  464. package/scripts/topo-view-smooth-test.mjs +131 -0
  465. package/scripts/topo-watermark-tracking-test.mjs +99 -0
  466. package/scripts/topo-working-chip-pin-test.mjs +154 -0
  467. package/scripts/topo-working-halo-breath-retired-test.mjs +99 -0
  468. package/scripts/topo-wrapper-flow-arrow-theme-test.mjs +97 -0
  469. package/scripts/topo-wrapper-shadow-theme-ease-test.mjs +89 -0
  470. package/.next/static/chunks/0-7iowzu4.798.js +0 -1
  471. package/.next/static/chunks/02t5jr4shh.hy.js +0 -1
  472. package/.next/static/chunks/08b1xx89c0ts9.js +0 -1
  473. package/.next/static/chunks/09nd.t_hd.y6t.css +0 -2
  474. package/.next/static/chunks/0_8snedeata9k.js +0 -1
  475. package/.next/static/chunks/0_qfg5s5uzs7..js +0 -7
  476. package/.next/static/chunks/0elalb9n_.~di.js +0 -1
  477. package/.next/static/chunks/0h_~v6f9o~_in.js +0 -1
  478. package/.next/static/chunks/0j_q__o8p6g83.js +0 -1
  479. package/.next/static/chunks/0jl6_w50zh4l5.js +0 -1
  480. package/.next/static/chunks/0pl7l_.2im.j0.js +0 -7
  481. package/.next/static/chunks/0r4q73.-1bkyl.js +0 -1
  482. package/.next/static/chunks/0r_c8eccg3z2o.js +0 -1
  483. package/.next/static/chunks/10oi7l-tycgl9.js +0 -1
  484. package/.next/static/chunks/11uk1izuv3~0t.js +0 -1
  485. /package/.next/static/{QkCLPQNNPLHlzKVvmAInn → 95X2ICTd2SB5ohx7R2QN2}/_buildManifest.js +0 -0
  486. /package/.next/static/{QkCLPQNNPLHlzKVvmAInn → 95X2ICTd2SB5ohx7R2QN2}/_clientMiddlewareManifest.js +0 -0
  487. /package/.next/static/{QkCLPQNNPLHlzKVvmAInn → 95X2ICTd2SB5ohx7R2QN2}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var t=e.i(12629),a=e.i(11449);let s=async e=>{let t=await fetch(e);if(401===t.status)throw window.location.assign("/login"),Error("unauthorized");return t.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function l(e,t){if(!t)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(t)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,t.default)("/api/anet/config",s,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,t.default)("/api/hub/health",s,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,t.default)("/api/hub/license",s,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:n}=(0,a.useNetworkId)(),{data:i,error:d,isLoading:o}=(0,t.default)(l(`/api/hub/messages?limit=${e}`,n),s,r);return{messages:i?.messages||[],error:d,isLoading:o}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:n,error:i,isLoading:d}=(0,t.default)(l("/api/hub/status",e),s,r);return{sessions:n?.sessions||[],hint:n?._hint,error:i,isLoading:d}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:n,error:i}=(0,t.default)(l("/api/hub/stats",e),s,r);return{stats:n?.ok?n:null,error:i}},"useTasks",0,function(e){let{networkId:n}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:d,error:o,isLoading:c}=(0,t.default)(l(`/api/hub/tasks?${i}`,n),s,r);return{tasks:d?.tasks||[],count:d?.count??0,source:d?.source,error:o,isLoading:c}}])},3479,59746,e=>{"use strict";function t(e){if(!e)return null;let t=Date.parse(e.includes("T")?e:e.replace(" ","T")+"Z");return Number.isFinite(t)?t:null}function a(e){let a=t(e);if(null===a)return null;let s=Math.floor((Date.now()-a)/1e3);return s<0?"just now":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`}e.s(["parseHubTime",0,t,"relativeAgo",0,a],59746),e.s(["formatUptime",0,function(e){let t=Math.floor(e/3600),a=Math.floor(e%3600/60);return t>0?`${t}h ${a}m`:`${a}m`},"previewContent",0,function(e){return e&&e.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\s+/g," ").trim()||"--"},"timeAgo",0,function(e){return a(e)??"--"}],3479)},46228,e=>{"use strict";var t=e.i(22381);let a=[180,200,220,270,300,330,30,90];function s(e){let t=0;for(let a=0;a<e.length;a++)t=31*t+e.charCodeAt(a)>>>0;let s=a[t%a.length];return{bg:`hsl(${s} 55% 22%)`,ring:`hsl(${s} 60% 45%)`,text:`hsl(${s} 80% 78%)`}}function r(e){return e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"}e.s(["AliasAvatar",0,function({alias:e,size:a=28,className:l=""}){let n=s(e),i=Math.max(9,Math.round(.42*a));return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${l}`,style:{width:a,height:a,fontSize:i,backgroundColor:n.bg,borderColor:n.ring,color:n.text},title:e,"aria-hidden":!0,children:r(e)})},"aliasAvatarColors",0,s,"aliasInitial",0,r])},98025,e=>{"use strict";e.s(["SESSION_STATUS_CHIP_CLASS",0,{working:"bg-green-500/10 text-green-300 border-green-500/20",idle:"bg-blue-500/10 text-blue-300 border-blue-500/20",blocked:"bg-yellow-500/10 text-yellow-300 border-yellow-500/20",error:"bg-red-500/10 text-red-300 border-red-500/20",offline:"bg-gray-500/10 text-gray-500 border-gray-500/20"},"SESSION_STATUS_TEXT_CLASS",0,{working:"text-green-400",idle:"text-blue-400",blocked:"text-yellow-400",error:"text-red-400",offline:"text-gray-500"},"STATUS_BAR_CLASS",0,{created:"bg-gray-500",delivered:"bg-blue-500",acked:"bg-cyan-500",running:"bg-green-500",replied:"bg-purple-500",closed:"bg-gray-600",failed:"bg-red-500",cancelled:"bg-yellow-500",expired:"bg-orange-500"},"STATUS_CHIP_CLASS",0,{created:"bg-gray-500/10 text-gray-400 border-gray-500/20",delivered:"bg-blue-500/10 text-blue-300 border-blue-500/20",acked:"bg-cyan-500/10 text-cyan-300 border-cyan-500/20",running:"bg-green-500/10 text-green-300 border-green-500/20",replied:"bg-purple-500/10 text-purple-300 border-purple-500/20",closed:"bg-gray-500/10 text-gray-500 border-gray-500/20",failed:"bg-red-500/10 text-red-300 border-red-500/20",cancelled:"bg-yellow-500/10 text-yellow-300 border-yellow-500/20",expired:"bg-orange-500/10 text-orange-300 border-orange-500/20"},"STATUS_DOT_HEX",0,{created:"#9ca3af",delivered:"#60a5fa",acked:"#22d3ee",running:"#4ade80",replied:"#a78bfa",closed:"#6b7280",failed:"#f87171",cancelled:"#facc15",expired:"#fb923c"},"TASK_STATUSES",0,["created","delivered","acked","running","replied","closed","failed","cancelled","expired"]])},28729,e=>{"use strict";var t=e.i(22381),a=e.i(23910),s=e.i(59276),r=e.i(3479),l=e.i(46228),n=e.i(98025);e.s(["default",0,function(){let{sessions:e}=(0,s.useSessions)(),{health:i}=(0,s.useHealth)(),{stats:d}=(0,s.useStats)(),o=i?.sse_sessions||{},c=e=>(e.network_id?o[`${e.network_id}:${e.alias}`]:void 0)??o[e.alias],[x,u]=(0,a.useState)(""),[g,h]=(0,a.useState)(""),[m,b]=(0,a.useState)(""),[p,f]=(0,a.useState)(""),[y,j]=(0,a.useState)(""),[v,N]=(0,a.useState)(""),[S,w]=(0,a.useState)(""),[k,T]=(0,a.useState)(""),C=async()=>{if(x.trim()&&g.trim()){try{let e=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"register",username:x,password:g})}),t=await e.json();b(t.ok?`Created: ${t.user.username} (${t.user.user_id})`:`Failed: ${t.error}`),t.ok&&(u(""),h(""))}catch{b("Failed")}setTimeout(()=>b(""),8e3)}},A=async()=>{if(p.trim()){try{let e=await fetch("/api/hub/broadcast",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:p})}),t=await e.json();j(t.ok?`Sent to ${t.recipients} nodes`:`Failed: ${t.error}`),t.ok&&f("")}catch{j("Failed")}setTimeout(()=>j(""),5e3)}},$=async()=>{if(v&&S.trim()){try{let e=await fetch("/api/hub/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({alias:v,task:S})}),t=await e.json();T(t.ok?"Task sent":`Failed: ${t.error}`),t.ok&&w("")}catch{T("Failed")}setTimeout(()=>T(""),5e3)}},_=e.filter(e=>c(e)),I=e.filter(e=>!c(e));return(0,t.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Admin"}),(0,t.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,t.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,t.jsxs)("div",{className:"max-w-6xl space-y-10",children:[(0,t.jsxs)("div",{id:"status",className:"space-y-4 scroll-mt-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,t.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Status"}),(0,t.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[(0,t.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Overview"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-3xl font-bold text-green-400 tabular-nums",children:_.length}),(0,t.jsx)("div",{className:"text-xs text-gray-500",children:"Online"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-3xl font-bold text-gray-500 tabular-nums",children:I.length}),(0,t.jsx)("div",{className:"text-xs text-gray-500",children:"Offline"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-3xl font-bold text-cyan-400 tabular-nums",children:i?.sse_connections??"--"}),(0,t.jsxs)("div",{className:"text-xs text-gray-500",children:["SSE Streams ",(0,t.jsx)("span",{className:"text-gray-600",children:"· server"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-3xl font-bold text-white tabular-nums",children:d?.tasks?.total??"--"}),(0,t.jsx)("div",{className:"text-xs text-gray-500",children:"Total Tasks"})]})]}),d?.tasks?.by_status&&d.tasks.by_status.length>0&&(0,t.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:d.tasks.by_status.map(e=>(0,t.jsxs)("span",{className:`text-xs px-2 py-1 rounded border ${n.STATUS_CHIP_CLASS[e.status]||"bg-[#0a0a15] border-[#1a1a2a] text-gray-400"}`,children:[e.status,": ",e.count]},e.status))})]}),(0,t.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,t.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:["Online Sessions ",(0,t.jsxs)("span",{className:"text-gray-600",children:["(",_.length,")"]})]}),(0,t.jsx)("div",{className:"space-y-2 max-h-80 overflow-y-auto",children:0===_.length?(0,t.jsx)("div",{className:"text-xs text-gray-600 text-center py-4",children:"No online sessions"}):_.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-3 bg-[#0a0a15] rounded-lg px-3 py-2 border border-[#1a1a2a]",children:[(0,t.jsx)(l.AliasAvatar,{alias:e.alias,size:20}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"text-sm text-white font-medium truncate",children:e.alias}),(0,t.jsxs)("div",{className:"text-xs text-gray-500 truncate",children:[e.agent||"--"," · ",e.task||"idle"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded border ${n.SESSION_STATUS_CHIP_CLASS[e.status]||n.SESSION_STATUS_CHIP_CLASS.idle}`,children:e.status}),(0,t.jsx)("span",{className:"text-[10px] text-gray-600",children:(0,r.timeAgo)(e.updated_at)})]})]},e.alias))})]})]})]}),(0,t.jsxs)("div",{id:"actions",className:"space-y-4 scroll-mt-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,t.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Actions"}),(0,t.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),0===e.length?(0,t.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,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[(0,t.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Broadcast"}),(0,t.jsx)("textarea",{value:p,onChange:e=>f(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,t.jsxs)("div",{className:"flex justify-between items-center mt-3",children:[(0,t.jsxs)("span",{className:"text-xs text-gray-600",children:[p.length,"/500"]}),(0,t.jsx)("button",{onClick:A,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"})]}),y&&(0,t.jsx)("div",{className:`mt-2 text-xs ${y.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:y})]}),(0,t.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Send Task"}),(0,t.jsxs)("select",{value:v,onChange:e=>N(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,t.jsx)("option",{value:"",children:"Select target node..."}),_.map(e=>(0,t.jsxs)("option",{value:e.alias,children:[e.alias," (",e.status,")"]},e.alias)),(0,t.jsx)("optgroup",{label:"Offline",children:I.map(e=>(0,t.jsxs)("option",{value:e.alias,children:[e.alias," (offline)"]},e.alias))})]}),(0,t.jsx)("textarea",{value:S,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,t.jsx)("div",{className:"flex justify-end mt-3",children:(0,t.jsx)("button",{onClick:$,disabled:!v||!S.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,t.jsx)("div",{className:`mt-2 text-xs ${k.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:k})]})]})]}),(0,t.jsxs)("div",{id:"users",className:"space-y-4 scroll-mt-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,t.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Users"}),(0,t.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:(0,t.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Register User (V3)"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("input",{type:"text",value:x,onChange:e=>u(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,t.jsx)("input",{type:"password",value:g,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,t.jsx)("button",{onClick:C,disabled:!x.trim()||!g.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,t.jsx)("div",{className:`mt-2 text-xs ${m.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:m})]})})]})]})]})}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.6-preview.321"],70286)},48941,e=>{"use strict";var t=e.i(22381),r=e.i(23910),a=e.i(70286);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]})]})]})]})}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3479,59746,e=>{"use strict";function t(e){if(!e)return null;let t=Date.parse(e.includes("T")?e:e.replace(" ","T")+"Z");return Number.isFinite(t)?t:null}function r(e){let r=t(e);if(null===r)return null;let s=Math.floor((Date.now()-r)/1e3);return s<0?"just now":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`}e.s(["parseHubTime",0,t,"relativeAgo",0,r],59746),e.s(["formatUptime",0,function(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60);return t>0?`${t}h ${r}m`:`${r}m`},"previewContent",0,function(e){return e&&e.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\s+/g," ").trim()||"--"},"timeAgo",0,function(e){return r(e)??"--"}],3479)},46228,e=>{"use strict";var t=e.i(22381);let r=[180,200,220,270,300,330,30,90];function s(e){let t=0;for(let r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)>>>0;let s=r[t%r.length];return{bg:`hsl(${s} 55% 22%)`,ring:`hsl(${s} 60% 45%)`,text:`hsl(${s} 80% 78%)`}}function a(e){return e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"}e.s(["AliasAvatar",0,function({alias:e,size:r=28,className:n=""}){let i=s(e),l=Math.max(9,Math.round(.42*r));return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${n}`,style:{width:r,height:r,fontSize:l,backgroundColor:i.bg,borderColor:i.ring,color:i.text},title:e,"aria-hidden":!0,children:a(e)})},"aliasAvatarColors",0,s,"aliasInitial",0,a])},76161,e=>{"use strict";var t=e.i(22381),r=e.i(23910),s=e.i(56839);let a={nodes:{title:"No agents in this network",sub:"Agent sessions will appear here once they connect to the CommHub."},tasks:{title:"No tasks yet",sub:"Tasks will appear here when agents send them via CommHub."},messages:{title:"No messages",sub:"Messages between agents will appear here."},logs:{title:"No audit logs",sub:"Events will appear here when users register, login, or perform actions."},tokens:{title:"No API tokens",sub:"Create one to authenticate CLI tools and external integrations."},networks:{title:"No networks found",sub:"Create one or sign in with V3 auth to see your networks."},generic:{title:"Nothing here yet",sub:"Data will appear here once available."}};function n({variant:e,size:r}){let s={width:r,height:r},a={fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"};switch(e){case"nodes":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("circle",{cx:"32",cy:"14",r:"4"}),(0,t.jsx)("circle",{cx:"14",cy:"44",r:"4"}),(0,t.jsx)("circle",{cx:"50",cy:"44",r:"4"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"14",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"50",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"18",y1:"44",x2:"46",y2:"44",strokeDasharray:"3 3",opacity:"0.6"})]})});case"tasks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("rect",{x:"14",y:"14",width:"36",height:"6",rx:"1.5"}),(0,t.jsx)("rect",{x:"14",y:"26",width:"36",height:"6",rx:"1.5",opacity:"0.6"}),(0,t.jsx)("rect",{x:"14",y:"38",width:"36",height:"6",rx:"1.5",opacity:"0.35"})]})});case"messages":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("path",{d:"M14 18 h36 a3 3 0 0 1 3 3 v18 a3 3 0 0 1 -3 3 h-18 l-8 6 v-6 h-10 a3 3 0 0 1 -3 -3 v-18 a3 3 0 0 1 3 -3 z"}),(0,t.jsx)("line",{x1:"22",y1:"28",x2:"42",y2:"28",opacity:"0.5"}),(0,t.jsx)("line",{x1:"22",y1:"34",x2:"36",y2:"34",opacity:"0.5"})]})});case"logs":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("path",{d:"M18 12 h22 l8 8 v32 a2 2 0 0 1 -2 2 h-28 a2 2 0 0 1 -2 -2 v-38 a2 2 0 0 1 2 -2 z"}),(0,t.jsx)("path",{d:"M40 12 v8 h8",opacity:"0.6"}),(0,t.jsx)("line",{x1:"24",y1:"32",x2:"40",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"24",y1:"38",x2:"40",y2:"38",opacity:"0.4"}),(0,t.jsx)("line",{x1:"24",y1:"44",x2:"34",y2:"44",opacity:"0.25"})]})});case"tokens":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("circle",{cx:"22",cy:"32",r:"8"}),(0,t.jsx)("line",{x1:"30",y1:"32",x2:"54",y2:"32"}),(0,t.jsx)("line",{x1:"44",y1:"32",x2:"44",y2:"38"}),(0,t.jsx)("line",{x1:"50",y1:"32",x2:"50",y2:"40"})]})});case"networks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"18"}),(0,t.jsx)("ellipse",{cx:"32",cy:"32",rx:"18",ry:"9",opacity:"0.55"}),(0,t.jsx)("line",{x1:"14",y1:"32",x2:"50",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"32",y1:"14",x2:"32",y2:"50",opacity:"0.55"})]})});default:return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"14",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("circle",{cx:"32",cy:"32",r:"3"})]})})}}function i({variant:e="generic",title:r,sub:l,cta:o,compact:c=!1}){let d=a[e],x=r??d.title,h=l??d.sub;return(0,t.jsxs)("div",{className:`text-center ${c?"py-8":"py-16"} px-4`,role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)(n,{variant:e,size:c?40:56})}),(0,t.jsx)("h3",{className:`font-medium text-gray-300 ${c?"text-sm":"text-base"}`,children:x}),h&&(0,t.jsx)("p",{className:`text-gray-500 ${c?"text-xs mt-1.5":"text-sm mt-2"} max-w-md mx-auto leading-relaxed`,children:h}),o&&(0,t.jsx)("div",{className:"mt-4",children:o.href?(0,t.jsxs)(s.default,{href:o.href,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]}):(0,t.jsxs)("button",{onClick:o.onClick,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})}function l({children:e}){return(0,t.jsx)("div",{className:"max-w-2xl mx-auto rounded-xl border border-[#2a2a4a] bg-[#111128] shadow-lg shadow-black/20",children:e})}function o({cmd:e}){let[s,a]=(0,r.useState)(!1),n=async()=>{try{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!1),1800)}catch{}};return(0,t.jsxs)("div",{className:"anet-empty-cmd flex items-center gap-2 bg-[#0a0a15] border border-[#2a2a4a] rounded-lg pl-4 pr-1.5 py-1.5 text-xs sm:text-sm",children:[(0,t.jsx)("code",{className:"text-cyan-300 font-mono select-all",children:e}),(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":s?"Copied":"Copy command",className:"shrink-0 rounded-md px-2 py-1.5 text-[11px] text-gray-500 hover:text-gray-200 hover:bg-[#1a1a2a] transition-colors",children:s?(0,t.jsxs)("span",{className:"flex items-center gap-1 text-green-400",children:[(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})}),"Copied"]}):(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),"Copy"]})})]})}e.s(["EmptyState",0,i,"NodesEmptyState",0,function({hint:e,taskHistoryCount:r=0}){return e?.global_count?(0,t.jsx)(l,{children:(0,t.jsx)(i,{variant:"nodes",title:"No agents in this network",sub:`Server has ${e.global_count} nodes globally, but none are registered to the current network. Switch network or contact admin.`})}):r>0?(0,t.jsx)(l,{children:(0,t.jsx)(i,{variant:"nodes",title:"No agents online",sub:`Every agent in this network is currently offline. ${r.toLocaleString()} task${1===r?"":"s"} in history — they may have finished their work or disconnected.`,cta:{label:"View task history",href:"/tasks"}})}):(0,t.jsx)(l,{children:(0,t.jsxs)("div",{className:"text-center py-16 px-4",role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)("svg",{viewBox:"0 0 64 64",width:56,height:56,children:(0,t.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",children:[(0,t.jsx)("rect",{x:"10",y:"20",width:"44",height:"28",rx:"2"}),(0,t.jsx)("rect",{x:"20",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"32",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"44",y:"32",width:"4",height:"8",opacity:"0.5"}),(0,t.jsx)("line",{x1:"10",y1:"26",x2:"54",y2:"26",opacity:"0.4"}),(0,t.jsx)("circle",{cx:"14",cy:"23",r:"0.8",fill:"currentColor"})]})})}),(0,t.jsx)("h3",{className:"font-medium text-gray-300 text-base",children:"Spin up your first agent"}),(0,t.jsx)("p",{className:"text-gray-500 text-sm mt-2 max-w-md mx-auto leading-relaxed",children:"Run this in a fresh terminal to register an agent with this CommHub:"}),(0,t.jsx)("div",{className:"mt-4 inline-block",children:(0,t.jsx)(o,{cmd:"npx --yes @sleep2agi/agent-network init"})}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsxs)("a",{href:"https://anet.sh",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-xs font-medium text-gray-500 hover:text-cyan-300",children:["Full quickstart guide",(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})})}])},46660,e=>{"use strict";var t=e.i(22381),r=e.i(23910),s=e.i(56839),a=e.i(3479),n=e.i(76161),i=e.i(46228),l=e.i(12629);let o=e=>fetch(e).then(e=>e.json());e.s(["default",0,function(){let{data:e,mutate:c}=(0,l.default)("/api/hub/networks",o,{refreshInterval:1e4}),d=e?.networks||[],x=!e,[h,m]=(0,r.useState)(""),[u,g]=(0,r.useState)(""),[p,y]=(0,r.useState)(""),[j,b]=(0,r.useState)(null),[v,w]=(0,r.useState)(null),[f,k]=(0,r.useState)({}),[N,C]=(0,r.useState)("member"),[_,$]=(0,r.useState)(""),S=()=>{try{let e=sessionStorage.getItem("anet_v3_auth");if(e)return JSON.parse(e).token}catch{}return""},T=async()=>{if(!h.trim())return;let e=S();if(!e)return void y("V3 auth required — sign in via Agent Network login");let t=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"create_network",token:e,name:h,description:u})}),r=await t.json();y(r.ok?`Created: ${r.network_id}`:`Failed: ${r.error}`),r.ok&&(m(""),g(""),c()),setTimeout(()=>y(""),5e3)},M=async e=>{let t=S();if(!t)return;let r=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete_network",token:t,network_id:e})}),s=await r.json();y(s.ok?"Deleted":`Failed: ${s.error}`),b(null),s.ok&&c(),setTimeout(()=>y(""),5e3)},A=async e=>{let t=S();if(!t)return;let r=await fetch(`/api/hub/auth?endpoint=/api/networks/${e}/members&token=${t}`),s=await r.json();k(t=>({...t,[e]:s.members||[]}))},B=async e=>{let t=S();if(!t)return;let r=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"invite_member",token:t,network_id:e,role:N})}),s=await r.json();s.ok&&s.invite_code?$(s.invite_code):y(`Invite failed: ${s.error}`)};return(0,t.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,t.jsx)(s.default,{href:"/settings",className:"text-gray-500 hover:text-gray-300 text-sm lg:ml-0 ml-10",children:"← Settings"}),(0,t.jsx)("h1",{className:"text-2xl font-bold text-white",children:"Networks"})]}),(0,t.jsxs)("div",{className:"max-w-2xl space-y-6",children:[(0,t.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-3",children:"Create Network"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("input",{type:"text",value:h,onChange:e=>m(e.target.value),placeholder:"Network name",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,t.jsx)("input",{type:"text",value:u,onChange:e=>g(e.target.value),placeholder:"Description (optional)",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,t.jsx)("button",{onClick:T,disabled:!h.trim(),className:"px-4 py-2 bg-green-600 hover:bg-green-500 disabled:bg-gray-800 text-white text-sm rounded-lg transition-colors",children:"Create"})]}),p&&(0,t.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")||p.startsWith("V3")||p.startsWith("Invite")?"text-red-400":"text-green-400"}`,children:p})]}),(0,t.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"My Networks"}),d.length>0&&(0,t.jsxs)("span",{className:"text-[10px] text-gray-600 uppercase tracking-wide",children:[d.length," total"]})]}),x?(0,t.jsx)("div",{className:"animate-pulse space-y-2",children:[1,2].map(e=>(0,t.jsx)("div",{className:"h-14 bg-gray-800/20 rounded"},e))}):0===d.length?(0,t.jsx)(n.EmptyState,{variant:"networks",compact:!0,sub:"Create your first network above, or sign in with V3 auth to see existing ones."}):(0,t.jsx)("div",{className:"space-y-3",children:d.map(e=>(0,t.jsxs)("div",{className:"bg-[#0a0a15] rounded-lg px-4 py-3 border border-[#1a1a2a]",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 min-w-0",children:[(0,t.jsx)(i.AliasAvatar,{alias:e.network_name,size:28}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-sm text-white font-medium truncate",children:e.network_name}),(0,t.jsxs)("div",{className:"text-[10px] text-gray-500 font-mono truncate",title:e.network_id,children:[e.network_id," · ",(0,a.timeAgo)(e.created_at)]}),e.description&&(0,t.jsx)("div",{className:"text-xs text-gray-400 mt-1",children:e.description})]})]}),(0,t.jsxs)("div",{className:"flex gap-2 shrink-0",children:[(0,t.jsx)("button",{onClick:()=>{v===e.network_id?w(null):(w(e.network_id),A(e.network_id))},className:"text-xs text-cyan-400 hover:text-cyan-300 px-2 py-1 rounded border border-cyan-800/30 hover:bg-cyan-500/10",children:v===e.network_id?"Hide":"Members"}),j===e.network_id?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:()=>M(e.network_id),className:"text-xs text-red-400 px-2 py-1 rounded border border-red-800/30 bg-red-500/10",children:"Confirm"}),(0,t.jsx)("button",{onClick:()=>b(null),className:"text-xs text-gray-500",children:"Cancel"})]}):(0,t.jsx)("button",{onClick:()=>b(e.network_id),className:"text-xs text-red-400 hover:text-red-300 px-2 py-1 rounded border border-red-800/30 hover:bg-red-500/10",children:"Delete"})]})]}),v===e.network_id&&(0,t.jsxs)("div",{className:"mt-3 pt-3 border-t border-[#1a1a2a]",children:[(0,t.jsxs)("div",{className:"text-xs text-gray-500 mb-2",children:["Members (",(f[e.network_id]||[]).length,")"]}),0===(f[e.network_id]||[]).length?(0,t.jsx)("div",{className:"text-[10px] text-gray-600",children:"No members or V3 auth required"}):(f[e.network_id]||[]).map(e=>{let r=e.username||e.display_name||"?";return(0,t.jsxs)("div",{className:"flex items-center gap-2 justify-between text-xs py-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)(i.AliasAvatar,{alias:r,size:16}),(0,t.jsx)("span",{className:"text-gray-300 truncate",children:r})]}),(0,t.jsx)("span",{className:`px-1.5 py-0.5 rounded border text-[10px] shrink-0 ${"owner"===e.role?"text-yellow-300 border-yellow-500/20":"text-gray-400 border-gray-600/20"}`,children:e.role})]},e.user_id)}),(0,t.jsxs)("div",{className:"mt-3 pt-3 border-t border-[#1a1a2a]",children:[(0,t.jsx)("div",{className:"text-xs text-gray-500 mb-2",children:"Invite"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("select",{value:N,onChange:e=>C(e.target.value),className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white focus:outline-none",children:[(0,t.jsx)("option",{value:"member",children:"member"}),(0,t.jsx)("option",{value:"admin",children:"admin"}),(0,t.jsx)("option",{value:"viewer",children:"viewer"})]}),(0,t.jsx)("button",{onClick:()=>B(e.network_id),className:"px-2 py-1 bg-green-600 hover:bg-green-500 text-white text-xs rounded",children:"Generate Code"})]}),_&&(0,t.jsxs)("div",{className:"mt-2 bg-green-500/5 border border-green-500/20 rounded px-3 py-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,t.jsx)("div",{className:"text-[10px] text-green-400 uppercase tracking-wide",children:"Invite code"}),(0,t.jsx)("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(_).catch(()=>{})},className:"text-[10px] text-green-300 hover:text-green-200 px-1.5 py-0.5 rounded border border-green-500/20 hover:bg-green-500/10",children:"Copy"})]}),(0,t.jsx)("code",{className:"text-xs text-green-300 select-all break-all",children:_})]})]})]})]},e.network_id))})]})]})]})}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3479,59746,e=>{"use strict";function t(e){if(!e)return null;let t=Date.parse(e.includes("T")?e:e.replace(" ","T")+"Z");return Number.isFinite(t)?t:null}function s(e){let s=t(e);if(null===s)return null;let a=Math.floor((Date.now()-s)/1e3);return a<0?"just now":a<60?`${a}s ago`:a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:`${Math.floor(a/86400)}d ago`}e.s(["parseHubTime",0,t,"relativeAgo",0,s],59746),e.s(["formatUptime",0,function(e){let t=Math.floor(e/3600),s=Math.floor(e%3600/60);return t>0?`${t}h ${s}m`:`${s}m`},"previewContent",0,function(e){return e&&e.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\s+/g," ").trim()||"--"},"timeAgo",0,function(e){return s(e)??"--"}],3479)},46228,e=>{"use strict";var t=e.i(22381);let s=[180,200,220,270,300,330,30,90];function a(e){let t=0;for(let s=0;s<e.length;s++)t=31*t+e.charCodeAt(s)>>>0;let a=s[t%s.length];return{bg:`hsl(${a} 55% 22%)`,ring:`hsl(${a} 60% 45%)`,text:`hsl(${a} 80% 78%)`}}function r(e){return e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"}e.s(["AliasAvatar",0,function({alias:e,size:s=28,className:i=""}){let n=a(e),l=Math.max(9,Math.round(.42*s));return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${i}`,style:{width:s,height:s,fontSize:l,backgroundColor:n.bg,borderColor:n.ring,color:n.text},title:e,"aria-hidden":!0,children:r(e)})},"aliasAvatarColors",0,a,"aliasInitial",0,r])},76161,e=>{"use strict";var t=e.i(22381),s=e.i(23910),a=e.i(56839);let r={nodes:{title:"No agents in this network",sub:"Agent sessions will appear here once they connect to the CommHub."},tasks:{title:"No tasks yet",sub:"Tasks will appear here when agents send them via CommHub."},messages:{title:"No messages",sub:"Messages between agents will appear here."},logs:{title:"No audit logs",sub:"Events will appear here when users register, login, or perform actions."},tokens:{title:"No API tokens",sub:"Create one to authenticate CLI tools and external integrations."},networks:{title:"No networks found",sub:"Create one or sign in with V3 auth to see your networks."},generic:{title:"Nothing here yet",sub:"Data will appear here once available."}};function i({variant:e,size:s}){let a={width:s,height:s},r={fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"};switch(e){case"nodes":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"14",r:"4"}),(0,t.jsx)("circle",{cx:"14",cy:"44",r:"4"}),(0,t.jsx)("circle",{cx:"50",cy:"44",r:"4"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"14",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"50",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"18",y1:"44",x2:"46",y2:"44",strokeDasharray:"3 3",opacity:"0.6"})]})});case"tasks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("rect",{x:"14",y:"14",width:"36",height:"6",rx:"1.5"}),(0,t.jsx)("rect",{x:"14",y:"26",width:"36",height:"6",rx:"1.5",opacity:"0.6"}),(0,t.jsx)("rect",{x:"14",y:"38",width:"36",height:"6",rx:"1.5",opacity:"0.35"})]})});case"messages":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("path",{d:"M14 18 h36 a3 3 0 0 1 3 3 v18 a3 3 0 0 1 -3 3 h-18 l-8 6 v-6 h-10 a3 3 0 0 1 -3 -3 v-18 a3 3 0 0 1 3 -3 z"}),(0,t.jsx)("line",{x1:"22",y1:"28",x2:"42",y2:"28",opacity:"0.5"}),(0,t.jsx)("line",{x1:"22",y1:"34",x2:"36",y2:"34",opacity:"0.5"})]})});case"logs":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("path",{d:"M18 12 h22 l8 8 v32 a2 2 0 0 1 -2 2 h-28 a2 2 0 0 1 -2 -2 v-38 a2 2 0 0 1 2 -2 z"}),(0,t.jsx)("path",{d:"M40 12 v8 h8",opacity:"0.6"}),(0,t.jsx)("line",{x1:"24",y1:"32",x2:"40",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"24",y1:"38",x2:"40",y2:"38",opacity:"0.4"}),(0,t.jsx)("line",{x1:"24",y1:"44",x2:"34",y2:"44",opacity:"0.25"})]})});case"tokens":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"22",cy:"32",r:"8"}),(0,t.jsx)("line",{x1:"30",y1:"32",x2:"54",y2:"32"}),(0,t.jsx)("line",{x1:"44",y1:"32",x2:"44",y2:"38"}),(0,t.jsx)("line",{x1:"50",y1:"32",x2:"50",y2:"40"})]})});case"networks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"18"}),(0,t.jsx)("ellipse",{cx:"32",cy:"32",rx:"18",ry:"9",opacity:"0.55"}),(0,t.jsx)("line",{x1:"14",y1:"32",x2:"50",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"32",y1:"14",x2:"32",y2:"50",opacity:"0.55"})]})});default:return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"14",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("circle",{cx:"32",cy:"32",r:"3"})]})})}}function n({variant:e="generic",title:s,sub:l,cta:o,compact:c=!1}){let d=r[e],x=s??d.title,h=l??d.sub;return(0,t.jsxs)("div",{className:`text-center ${c?"py-8":"py-16"} px-4`,role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)(i,{variant:e,size:c?40:56})}),(0,t.jsx)("h3",{className:`font-medium text-gray-300 ${c?"text-sm":"text-base"}`,children:x}),h&&(0,t.jsx)("p",{className:`text-gray-500 ${c?"text-xs mt-1.5":"text-sm mt-2"} max-w-md mx-auto leading-relaxed`,children:h}),o&&(0,t.jsx)("div",{className:"mt-4",children:o.href?(0,t.jsxs)(a.default,{href:o.href,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]}):(0,t.jsxs)("button",{onClick:o.onClick,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})}function l({children:e}){return(0,t.jsx)("div",{className:"max-w-2xl mx-auto rounded-xl border border-[#2a2a4a] bg-[#111128] shadow-lg shadow-black/20",children:e})}function o({cmd:e}){let[a,r]=(0,s.useState)(!1),i=async()=>{try{await navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),1800)}catch{}};return(0,t.jsxs)("div",{className:"anet-empty-cmd flex items-center gap-2 bg-[#0a0a15] border border-[#2a2a4a] rounded-lg pl-4 pr-1.5 py-1.5 text-xs sm:text-sm",children:[(0,t.jsx)("code",{className:"text-cyan-300 font-mono select-all",children:e}),(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":a?"Copied":"Copy command",className:"shrink-0 rounded-md px-2 py-1.5 text-[11px] text-gray-500 hover:text-gray-200 hover:bg-[#1a1a2a] transition-colors",children:a?(0,t.jsxs)("span",{className:"flex items-center gap-1 text-green-400",children:[(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})}),"Copied"]}):(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),"Copy"]})})]})}e.s(["EmptyState",0,n,"NodesEmptyState",0,function({hint:e,taskHistoryCount:s=0}){return e?.global_count?(0,t.jsx)(l,{children:(0,t.jsx)(n,{variant:"nodes",title:"No agents in this network",sub:`Server has ${e.global_count} nodes globally, but none are registered to the current network. Switch network or contact admin.`})}):s>0?(0,t.jsx)(l,{children:(0,t.jsx)(n,{variant:"nodes",title:"No agents online",sub:`Every agent in this network is currently offline. ${s.toLocaleString()} task${1===s?"":"s"} in history — they may have finished their work or disconnected.`,cta:{label:"View task history",href:"/tasks"}})}):(0,t.jsx)(l,{children:(0,t.jsxs)("div",{className:"text-center py-16 px-4",role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)("svg",{viewBox:"0 0 64 64",width:56,height:56,children:(0,t.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",children:[(0,t.jsx)("rect",{x:"10",y:"20",width:"44",height:"28",rx:"2"}),(0,t.jsx)("rect",{x:"20",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"32",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"44",y:"32",width:"4",height:"8",opacity:"0.5"}),(0,t.jsx)("line",{x1:"10",y1:"26",x2:"54",y2:"26",opacity:"0.4"}),(0,t.jsx)("circle",{cx:"14",cy:"23",r:"0.8",fill:"currentColor"})]})})}),(0,t.jsx)("h3",{className:"font-medium text-gray-300 text-base",children:"Spin up your first agent"}),(0,t.jsx)("p",{className:"text-gray-500 text-sm mt-2 max-w-md mx-auto leading-relaxed",children:"Run this in a fresh terminal to register an agent with this CommHub:"}),(0,t.jsx)("div",{className:"mt-4 inline-block",children:(0,t.jsx)(o,{cmd:"npx --yes @sleep2agi/agent-network init"})}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsxs)("a",{href:"https://anet.sh",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-xs font-medium text-gray-500 hover:text-cyan-300",children:["Full quickstart guide",(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})})}])},46860,e=>{"use strict";var t=e.i(22381),s=e.i(23910),a=e.i(56839),r=e.i(3479),i=e.i(11449),n=e.i(76161),l=e.i(46228);let o={register:"bg-green-500/10 text-green-300 border-green-500/20",login:"bg-blue-500/10 text-blue-300 border-blue-500/20",login_failed:"bg-red-500/10 text-red-300 border-red-500/20",create_network:"bg-purple-500/10 text-purple-300 border-purple-500/20",send_task:"bg-cyan-500/10 text-cyan-300 border-cyan-500/20"},c={register:"#4ade80",login:"#60a5fa",login_failed:"#ef4444",create_network:"#a78bfa",send_task:"#22d3ee"};e.s(["default",0,function(){let e,d,{networkId:x}=(0,i.useNetworkId)(),[h,m]=(0,s.useState)([]),[g,u]=(0,s.useState)(!0),[y,p]=(0,s.useState)(""),[j,b]=(0,s.useState)(""),f=(0,s.useCallback)(async()=>{try{let e=new URLSearchParams({limit:"100"});x&&e.set("network_id",x),j&&e.set("action",j);let t=sessionStorage.getItem("anet_v3_auth");if(t)try{let s=JSON.parse(t);s.token&&e.set("token",s.token)}catch{}let s=await fetch(`/api/hub/audit-log?${e.toString()}`);if(401===s.status)return void window.location.assign("/login");let a=await s.json();m(a.logs||[]),p(a.error&&!a.logs?.length?a.error:"")}catch(e){p(e instanceof Error?e.message:"fetch failed")}finally{u(!1)}},[j,x]);return(0,s.useEffect)(()=>{u(!0),f();let e=setInterval(f,1e4);return()=>clearInterval(e)},[f]),(0,t.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,t.jsx)("div",{className:"flex items-center gap-4 mb-6",children:(0,t.jsx)("h1",{className:"text-2xl font-bold text-white lg:ml-0 ml-10",children:"Audit Log"})}),(0,t.jsx)("div",{className:"mb-6 flex flex-wrap items-center gap-1 anet-tabstrip-wrap overflow-x-auto sm:overflow-x-visible",children:(e={},h.forEach(t=>{e[t.action]=(e[t.action]||0)+1}),[{key:"",label:"All"},{key:"login",label:"login",dot:c.login},{key:"login_failed",label:"login_failed",dot:c.login_failed},{key:"register",label:"register",dot:c.register},{key:"create_network",label:"create_network",dot:c.create_network},{key:"send_task",label:"send_task",dot:c.send_task}].map(s=>{let a=""===s.key?h.length:e[s.key]||0,r=j===s.key;return(0,t.jsxs)("button",{type:"button",onClick:()=>b(s.key),disabled:0===a&&""!==s.key,className:`flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs transition-colors disabled:opacity-30 disabled:cursor-not-allowed shrink-0 whitespace-nowrap ${r?"bg-cyan-500/10 text-cyan-300 border border-cyan-500/30":"text-gray-500 hover:text-gray-200 hover:bg-[#1a1a2a] border border-transparent"}`,children:[s.dot&&(0,t.jsx)("span",{"aria-hidden":!0,className:"inline-block w-1.5 h-1.5 rounded-full",style:{backgroundColor:s.dot}}),(0,t.jsx)("span",{children:s.label}),(0,t.jsx)("span",{className:`text-[10px] tabular-nums ${r?"text-cyan-400":"text-gray-600"}`,children:a})]},s.key||"all")}))}),y&&(d=/unauthor|401|forbidden|403|admin/i.test(y),(0,t.jsxs)("div",{className:"anet-warn-chip bg-yellow-900/20 border border-yellow-800/40 text-yellow-300 px-4 py-3 rounded-lg mb-6 text-sm flex items-start gap-3",role:"alert",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"text-base leading-none",children:"⚠"}),(0,t.jsx)("div",{className:"flex-1",children:d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"font-medium",children:"需要 admin 权限查看审计日志"}),(0,t.jsx)("div",{className:"text-xs opacity-80 mt-1",children:"审计日志记录用户注册 / 登录 / 网络变更等事件,需要 admin 角色。"}),(0,t.jsx)(a.default,{href:"/login",className:"inline-block mt-2 text-xs font-medium underline underline-offset-4 hover:opacity-80",children:"切到 admin 账号 →"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"font-medium",children:"加载失败"}),(0,t.jsx)("div",{className:"text-xs opacity-80 mt-1",children:"请检查 CommHub 是否在线,或稍后重试。"}),(0,t.jsx)("button",{onClick:()=>window.location.reload(),className:"inline-block mt-2 text-xs font-medium underline underline-offset-4 hover:opacity-80",children:"重新加载 →"})]})})]})),g?(0,t.jsx)("div",{className:"animate-pulse space-y-2",children:[1,2,3,4,5].map(e=>(0,t.jsx)("div",{className:"h-14 bg-gray-800/20 rounded-lg"},e))}):0===h.length?(0,t.jsx)(n.EmptyState,{variant:"logs"}):(0,t.jsx)("div",{className:"space-y-2",children:h.map(e=>{let s=e.username||e.user_id;return(0,t.jsxs)("div",{className:"relative bg-[#111128] border border-[#2a2a4a] rounded-lg pl-4 pr-4 py-3 hover:border-[#3a3a5a] transition-colors overflow-hidden",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute left-0 top-0 bottom-0 w-0.5",style:{backgroundColor:c[e.action]||"transparent"}}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mb-1",children:[(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded-md border ${o[e.action]||"bg-gray-500/10 text-gray-400 border-gray-500/20"}`,children:e.action}),s&&(0,t.jsx)(l.AliasAvatar,{alias:s,size:16}),(0,t.jsx)("span",{className:"text-sm text-gray-200 font-medium",children:s}),e.target_type&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-xs text-gray-600",children:"→"}),(0,t.jsxs)("span",{className:"text-xs text-gray-400",children:[e.target_type,e.target_id?`:${e.target_id.slice(0,12)}`:""]})]}),(0,t.jsx)("span",{className:"text-xs text-gray-600 ml-auto",children:(0,r.timeAgo)(e.created_at)})]}),e.detail&&(0,t.jsx)("div",{className:"text-xs text-gray-500",children:e.detail}),e.ip&&"unknown"!==e.ip&&(0,t.jsxs)("div",{className:"text-[10px] text-gray-700",children:["IP: ",e.ip]})]},e.id)})})]})}])}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":258,"timestamp":13338461602,"id":4,"parentId":1,"tags":{},"startTime":1778821310708,"traceId":"5d9c6e2d2cb0bace"},{"name":"load-custom-routes","duration":490,"timestamp":13338461996,"id":5,"parentId":1,"tags":{},"startTime":1778821310708,"traceId":"5d9c6e2d2cb0bace"},{"name":"create-dist-dir","duration":624,"timestamp":13338462529,"id":6,"parentId":1,"tags":{},"startTime":1778821310709,"traceId":"5d9c6e2d2cb0bace"},{"name":"clean","duration":497,"timestamp":13338463742,"id":7,"parentId":1,"tags":{},"startTime":1778821310710,"traceId":"5d9c6e2d2cb0bace"},{"name":"discover-routes","duration":9640,"timestamp":13338543556,"id":8,"parentId":1,"tags":{},"startTime":1778821310790,"traceId":"5d9c6e2d2cb0bace"},{"name":"create-root-mapping","duration":105,"timestamp":13338553253,"id":9,"parentId":1,"tags":{},"startTime":1778821310800,"traceId":"5d9c6e2d2cb0bace"},{"name":"generate-route-types","duration":33652,"timestamp":13338555886,"id":10,"parentId":1,"tags":{},"startTime":1778821310802,"traceId":"5d9c6e2d2cb0bace"},{"name":"public-dir-conflict-check","duration":129,"timestamp":13338589706,"id":11,"parentId":1,"tags":{},"startTime":1778821310836,"traceId":"5d9c6e2d2cb0bace"},{"name":"generate-routes-manifest","duration":5731,"timestamp":13338589997,"id":12,"parentId":1,"tags":{},"startTime":1778821310836,"traceId":"5d9c6e2d2cb0bace"},{"name":"run-turbopack","duration":5226573,"timestamp":13338602363,"id":14,"parentId":1,"tags":{},"startTime":1778821310849,"traceId":"5d9c6e2d2cb0bace"},{"name":"turbopack-build-events","duration":102,"timestamp":13338892687,"id":15,"parentId":1,"tags":{},"startTime":1778821311139,"traceId":"5d9c6e2d2cb0bace"},{"name":"run-typescript","duration":8146172,"timestamp":13343840026,"id":16,"parentId":1,"tags":{},"startTime":1778821316086,"traceId":"5d9c6e2d2cb0bace"},{"name":"generate-required-server-files","duration":2106,"timestamp":13351987276,"id":18,"parentId":1,"tags":{},"startTime":1778821324234,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-static-error-page","duration":12792,"timestamp":13352161429,"id":20,"parentId":19,"tags":{},"startTime":1778821324408,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":469507,"timestamp":13352177480,"id":63,"parentId":22,"tags":{},"startTime":1778821324424,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":483595,"timestamp":13352163611,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778821324410,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":566142,"timestamp":13352178148,"id":67,"parentId":28,"tags":{},"startTime":1778821324424,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":579976,"timestamp":13352166193,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778821324412,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":571289,"timestamp":13352178314,"id":68,"parentId":29,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":583379,"timestamp":13352166276,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778821324413,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":576093,"timestamp":13352178756,"id":71,"parentId":33,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":588137,"timestamp":13352166768,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778821324413,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":579050,"timestamp":13352178673,"id":70,"parentId":32,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":591138,"timestamp":13352166640,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778821324413,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":583169,"timestamp":13352178475,"id":69,"parentId":30,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":595331,"timestamp":13352166370,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778821324413,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":590755,"timestamp":13352177622,"id":64,"parentId":25,"tags":{},"startTime":1778821324424,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":602599,"timestamp":13352165831,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778821324412,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":594606,"timestamp":13352179073,"id":75,"parentId":37,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":605927,"timestamp":13352167795,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778821324414,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":596080,"timestamp":13352177857,"id":66,"parentId":27,"tags":{},"startTime":1778821324424,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":607873,"timestamp":13352166106,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778821324412,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":600008,"timestamp":13352177084,"id":62,"parentId":21,"tags":{},"startTime":1778821324423,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":614606,"timestamp":13352162551,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778821324409,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":599718,"timestamp":13352178889,"id":73,"parentId":35,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":611613,"timestamp":13352167036,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778821324413,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":604265,"timestamp":13352179145,"id":79,"parentId":41,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":615266,"timestamp":13352168184,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778821324414,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":604993,"timestamp":13352178846,"id":72,"parentId":34,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":616998,"timestamp":13352166886,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778821324413,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":606695,"timestamp":13352179032,"id":74,"parentId":36,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":618130,"timestamp":13352167632,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778821324414,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":610741,"timestamp":13352179160,"id":80,"parentId":42,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":621676,"timestamp":13352168259,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778821324415,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":614873,"timestamp":13352179203,"id":83,"parentId":45,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":625684,"timestamp":13352168449,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778821324415,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":618430,"timestamp":13352179175,"id":81,"parentId":43,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":629332,"timestamp":13352168323,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778821324415,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":619597,"timestamp":13352179218,"id":84,"parentId":46,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":630345,"timestamp":13352168509,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778821324415,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":622981,"timestamp":13352179089,"id":76,"parentId":38,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":634192,"timestamp":13352167929,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778821324414,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":623587,"timestamp":13352179244,"id":86,"parentId":48,"tags":{},"startTime":1778821324426,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":634211,"timestamp":13352168659,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778821324415,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":620742,"timestamp":13352187947,"id":88,"parentId":24,"tags":{},"startTime":1778821324434,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":644755,"timestamp":13352163976,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778821324410,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":630222,"timestamp":13352179117,"id":77,"parentId":39,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":641343,"timestamp":13352168036,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778821324414,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":624474,"timestamp":13352189423,"id":89,"parentId":31,"tags":{},"startTime":1778821324436,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":647490,"timestamp":13352166447,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778821324413,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":639370,"timestamp":13352179190,"id":82,"parentId":44,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":650221,"timestamp":13352168381,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778821324415,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":639502,"timestamp":13352179259,"id":87,"parentId":49,"tags":{},"startTime":1778821324426,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":650075,"timestamp":13352168722,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778821324415,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":644321,"timestamp":13352179233,"id":85,"parentId":47,"tags":{},"startTime":1778821324426,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":654996,"timestamp":13352168597,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778821324415,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":654956,"timestamp":13352177742,"id":65,"parentId":26,"tags":{},"startTime":1778821324424,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":666775,"timestamp":13352165974,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778821324412,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":678705,"timestamp":13352191902,"id":91,"parentId":50,"tags":{},"startTime":1778821324438,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":701599,"timestamp":13352169078,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778821324415,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":683994,"timestamp":13352191928,"id":93,"parentId":52,"tags":{},"startTime":1778821324438,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":706630,"timestamp":13352169636,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778821324416,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":697355,"timestamp":13352179133,"id":78,"parentId":40,"tags":{},"startTime":1778821324425,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":708412,"timestamp":13352168119,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778821324414,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":684740,"timestamp":13352191914,"id":92,"parentId":51,"tags":{},"startTime":1778821324438,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":707388,"timestamp":13352169291,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778821324416,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":689103,"timestamp":13352191967,"id":96,"parentId":56,"tags":{},"startTime":1778821324438,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":710139,"timestamp":13352170992,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778821324417,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":689438,"timestamp":13352191871,"id":90,"parentId":23,"tags":{},"startTime":1778821324438,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":717559,"timestamp":13352163799,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778821324410,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":691241,"timestamp":13352191981,"id":97,"parentId":57,"tags":{},"startTime":1778821324438,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":710212,"timestamp":13352173044,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778821324419,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":693396,"timestamp":13352192048,"id":100,"parentId":61,"tags":{},"startTime":1778821324438,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":711514,"timestamp":13352173967,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778821324420,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":694755,"timestamp":13352191994,"id":98,"parentId":59,"tags":{},"startTime":1778821324438,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":713079,"timestamp":13352173704,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778821324420,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":688417,"timestamp":13352200944,"id":101,"parentId":55,"tags":{},"startTime":1778821324447,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":718957,"timestamp":13352170437,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778821324417,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":683437,"timestamp":13352206550,"id":102,"parentId":58,"tags":{},"startTime":1778821324453,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":716781,"timestamp":13352173275,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778821324420,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":699613,"timestamp":13352192029,"id":99,"parentId":60,"tags":{},"startTime":1778821324438,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":717832,"timestamp":13352173844,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778821324420,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":700256,"timestamp":13352191943,"id":94,"parentId":53,"tags":{},"startTime":1778821324438,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":722294,"timestamp":13352169923,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778821324416,"traceId":"5d9c6e2d2cb0bace"},{"name":"is-page-static","duration":717727,"timestamp":13352191953,"id":95,"parentId":54,"tags":{},"startTime":1778821324438,"traceId":"5d9c6e2d2cb0bace"},{"name":"check-page","duration":739537,"timestamp":13352170182,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778821324416,"traceId":"5d9c6e2d2cb0bace"},{"name":"static-check","duration":749057,"timestamp":13352160715,"id":19,"parentId":1,"tags":{},"startTime":1778821324407,"traceId":"5d9c6e2d2cb0bace"},{"name":"write-routes-manifest","duration":407,"timestamp":13352915993,"id":104,"parentId":1,"tags":{},"startTime":1778821325162,"traceId":"5d9c6e2d2cb0bace"},{"name":"load-dotenv","duration":37,"timestamp":13352927633,"id":107,"parentId":106,"tags":{},"startTime":1778821325174,"traceId":"5d9c6e2d2cb0bace"},{"name":"run-export-path-map","duration":665,"timestamp":13352930684,"id":108,"parentId":106,"tags":{},"startTime":1778821325177,"traceId":"5d9c6e2d2cb0bace"},{"name":"next-export","duration":569893,"timestamp":13352926380,"id":106,"parentId":1,"tags":{},"startTime":1778821325173,"traceId":"5d9c6e2d2cb0bace"}]
2
- [{"name":"move-exported-app-not-found-","duration":2455,"timestamp":13353499993,"id":109,"parentId":105,"tags":{},"startTime":1778821325746,"traceId":"5d9c6e2d2cb0bace"},{"name":"move-exported-app-global-error-","duration":642,"timestamp":13353502578,"id":110,"parentId":105,"tags":{},"startTime":1778821325749,"traceId":"5d9c6e2d2cb0bace"},{"name":"static-generation","duration":585023,"timestamp":13352920461,"id":105,"parentId":1,"tags":{},"startTime":1778821325167,"traceId":"5d9c6e2d2cb0bace"},{"name":"write-routes-manifest","duration":588,"timestamp":13353505718,"id":111,"parentId":1,"tags":{},"startTime":1778821325752,"traceId":"5d9c6e2d2cb0bace"},{"name":"print-tree-view","duration":3910,"timestamp":13353524082,"id":112,"parentId":1,"tags":{},"startTime":1778821325770,"traceId":"5d9c6e2d2cb0bace"},{"name":"write-route-bundle-stats","duration":12257,"timestamp":13353528048,"id":113,"parentId":1,"tags":{},"startTime":1778821325774,"traceId":"5d9c6e2d2cb0bace"},{"name":"telemetry-flush","duration":21736,"timestamp":13353540336,"id":114,"parentId":1,"tags":{},"startTime":1778821325787,"traceId":"5d9c6e2d2cb0bace"},{"name":"next-build","duration":15155339,"timestamp":13338406775,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778821310653,"traceId":"5d9c6e2d2cb0bace"}]
1
+ [{"name":"generate-buildid","duration":374,"timestamp":115271852753,"id":4,"parentId":1,"tags":{},"startTime":1778923244099,"traceId":"050e7f81a8b53f61"},{"name":"load-custom-routes","duration":685,"timestamp":115271853333,"id":5,"parentId":1,"tags":{},"startTime":1778923244100,"traceId":"050e7f81a8b53f61"},{"name":"create-dist-dir","duration":862,"timestamp":115271854085,"id":6,"parentId":1,"tags":{},"startTime":1778923244100,"traceId":"050e7f81a8b53f61"},{"name":"clean","duration":38108,"timestamp":115271855800,"id":7,"parentId":1,"tags":{},"startTime":1778923244102,"traceId":"050e7f81a8b53f61"},{"name":"discover-routes","duration":12160,"timestamp":115271995194,"id":8,"parentId":1,"tags":{},"startTime":1778923244241,"traceId":"050e7f81a8b53f61"},{"name":"create-root-mapping","duration":127,"timestamp":115272007429,"id":9,"parentId":1,"tags":{},"startTime":1778923244254,"traceId":"050e7f81a8b53f61"},{"name":"generate-route-types","duration":46203,"timestamp":115272010685,"id":10,"parentId":1,"tags":{},"startTime":1778923244257,"traceId":"050e7f81a8b53f61"},{"name":"public-dir-conflict-check","duration":130,"timestamp":115272057035,"id":11,"parentId":1,"tags":{},"startTime":1778923244303,"traceId":"050e7f81a8b53f61"},{"name":"generate-routes-manifest","duration":6008,"timestamp":115272057324,"id":12,"parentId":1,"tags":{},"startTime":1778923244304,"traceId":"050e7f81a8b53f61"},{"name":"run-turbopack","duration":10538069,"timestamp":115272069669,"id":14,"parentId":1,"tags":{},"startTime":1778923244316,"traceId":"050e7f81a8b53f61"},{"name":"turbopack-build-events","duration":116,"timestamp":115272433966,"id":15,"parentId":1,"tags":{},"startTime":1778923244680,"traceId":"050e7f81a8b53f61"},{"name":"run-typescript","duration":11923217,"timestamp":115282683480,"id":16,"parentId":1,"tags":{},"startTime":1778923254930,"traceId":"050e7f81a8b53f61"},{"name":"generate-required-server-files","duration":2872,"timestamp":115294608109,"id":18,"parentId":1,"tags":{},"startTime":1778923266854,"traceId":"050e7f81a8b53f61"},{"name":"check-static-error-page","duration":15885,"timestamp":115294810032,"id":20,"parentId":19,"tags":{},"startTime":1778923267056,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":691521,"timestamp":115294830458,"id":66,"parentId":27,"tags":{},"startTime":1778923267077,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":705178,"timestamp":115294816997,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778923267063,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":698325,"timestamp":115294830337,"id":65,"parentId":26,"tags":{},"startTime":1778923267077,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":711876,"timestamp":115294816861,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778923267063,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":710273,"timestamp":115294831026,"id":69,"parentId":30,"tags":{},"startTime":1778923267077,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":723910,"timestamp":115294817459,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778923267064,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":714063,"timestamp":115294830071,"id":63,"parentId":22,"tags":{},"startTime":1778923267076,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":730978,"timestamp":115294813237,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778923267060,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":760872,"timestamp":115294831252,"id":71,"parentId":33,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":774168,"timestamp":115294818052,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778923267064,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":768688,"timestamp":115294830696,"id":67,"parentId":28,"tags":{},"startTime":1778923267077,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":782324,"timestamp":115294817127,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778923267063,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":814647,"timestamp":115294831351,"id":73,"parentId":35,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":827793,"timestamp":115294818312,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778923267065,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":815054,"timestamp":115294831446,"id":74,"parentId":36,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":827706,"timestamp":115294818836,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778923267065,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":821792,"timestamp":115294831195,"id":70,"parentId":32,"tags":{},"startTime":1778923267077,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":835164,"timestamp":115294817901,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778923267064,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":835079,"timestamp":115294831480,"id":75,"parentId":37,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":847584,"timestamp":115294819046,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778923267065,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":841232,"timestamp":115294831519,"id":78,"parentId":40,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":853458,"timestamp":115294819366,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778923267066,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":849700,"timestamp":115294831531,"id":79,"parentId":41,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":861794,"timestamp":115294819499,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778923267066,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":851408,"timestamp":115294831322,"id":72,"parentId":34,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":864613,"timestamp":115294818176,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778923267064,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":870836,"timestamp":115294831544,"id":80,"parentId":42,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":882794,"timestamp":115294819655,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778923267066,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":871100,"timestamp":115294831510,"id":77,"parentId":39,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":883367,"timestamp":115294819276,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778923267066,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":892254,"timestamp":115294831553,"id":81,"parentId":43,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":904114,"timestamp":115294819758,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778923267066,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":893268,"timestamp":115294831566,"id":82,"parentId":44,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":905066,"timestamp":115294819853,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778923267066,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":897169,"timestamp":115294831579,"id":83,"parentId":45,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":908820,"timestamp":115294819980,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778923267066,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":897501,"timestamp":115294831497,"id":76,"parentId":38,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":909878,"timestamp":115294819176,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778923267065,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":909375,"timestamp":115294831612,"id":86,"parentId":48,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":919225,"timestamp":115294821836,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778923267068,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":917979,"timestamp":115294831592,"id":84,"parentId":46,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":928081,"timestamp":115294821542,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778923267068,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":920181,"timestamp":115294831600,"id":85,"parentId":47,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":930094,"timestamp":115294821735,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778923267068,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":905852,"timestamp":115294846450,"id":88,"parentId":24,"tags":{},"startTime":1778923267093,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":938563,"timestamp":115294813786,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778923267060,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":896010,"timestamp":115294859608,"id":89,"parentId":31,"tags":{},"startTime":1778923267106,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":938070,"timestamp":115294817599,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778923267064,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":942966,"timestamp":115294831623,"id":87,"parentId":49,"tags":{},"startTime":1778923267078,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":952723,"timestamp":115294821939,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778923267068,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":982559,"timestamp":115294830857,"id":68,"parentId":29,"tags":{},"startTime":1778923267077,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":996253,"timestamp":115294817250,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778923267064,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":992873,"timestamp":115294829742,"id":62,"parentId":21,"tags":{},"startTime":1778923267076,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1011085,"timestamp":115294811607,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778923267058,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":985635,"timestamp":115294866146,"id":91,"parentId":50,"tags":{},"startTime":1778923267112,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1029508,"timestamp":115294822356,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778923267069,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":997903,"timestamp":115294866214,"id":96,"parentId":56,"tags":{},"startTime":1778923267112,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1040147,"timestamp":115294824044,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778923267070,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":998178,"timestamp":115294866203,"id":95,"parentId":54,"tags":{},"startTime":1778923267112,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1041228,"timestamp":115294823184,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778923267069,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":1004872,"timestamp":115294866229,"id":97,"parentId":57,"tags":{},"startTime":1778923267113,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1046909,"timestamp":115294824252,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778923267071,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":1005450,"timestamp":115294866158,"id":92,"parentId":51,"tags":{},"startTime":1778923267112,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1049124,"timestamp":115294822527,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778923267069,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":1034059,"timestamp":115294866279,"id":100,"parentId":61,"tags":{},"startTime":1778923267113,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1074779,"timestamp":115294825652,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778923267072,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":1048577,"timestamp":115294866259,"id":99,"parentId":60,"tags":{},"startTime":1778923267113,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1089418,"timestamp":115294825506,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778923267072,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":1045223,"timestamp":115294880122,"id":101,"parentId":58,"tags":{},"startTime":1778923267126,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1100989,"timestamp":115294824428,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778923267071,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":1020332,"timestamp":115294910374,"id":102,"parentId":55,"tags":{},"startTime":1778923267157,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1107331,"timestamp":115294823429,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778923267070,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":1067101,"timestamp":115294866245,"id":98,"parentId":59,"tags":{},"startTime":1778923267113,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1108082,"timestamp":115294825330,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778923267072,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":1070011,"timestamp":115294866095,"id":90,"parentId":23,"tags":{},"startTime":1778923267112,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1122618,"timestamp":115294813540,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778923267060,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":1076443,"timestamp":115294866173,"id":93,"parentId":52,"tags":{},"startTime":1778923267112,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1119944,"timestamp":115294822723,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778923267069,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":1077717,"timestamp":115294866188,"id":94,"parentId":53,"tags":{},"startTime":1778923267112,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1120990,"timestamp":115294822955,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778923267069,"traceId":"050e7f81a8b53f61"},{"name":"is-page-static","duration":1118388,"timestamp":115294830210,"id":64,"parentId":25,"tags":{},"startTime":1778923267076,"traceId":"050e7f81a8b53f61"},{"name":"check-page","duration":1131954,"timestamp":115294816691,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778923267063,"traceId":"050e7f81a8b53f61"},{"name":"static-check","duration":1139971,"timestamp":115294808723,"id":19,"parentId":1,"tags":{},"startTime":1778923267055,"traceId":"050e7f81a8b53f61"},{"name":"write-routes-manifest","duration":502,"timestamp":115295961106,"id":104,"parentId":1,"tags":{},"startTime":1778923268207,"traceId":"050e7f81a8b53f61"},{"name":"load-dotenv","duration":65,"timestamp":115295976635,"id":107,"parentId":106,"tags":{},"startTime":1778923268223,"traceId":"050e7f81a8b53f61"},{"name":"run-export-path-map","duration":832,"timestamp":115295980468,"id":108,"parentId":106,"tags":{},"startTime":1778923268227,"traceId":"050e7f81a8b53f61"},{"name":"next-export","duration":761207,"timestamp":115295974790,"id":106,"parentId":1,"tags":{},"startTime":1778923268221,"traceId":"050e7f81a8b53f61"}]
2
+ [{"name":"move-exported-app-not-found-","duration":1701,"timestamp":115296740350,"id":109,"parentId":105,"tags":{},"startTime":1778923268987,"traceId":"050e7f81a8b53f61"},{"name":"move-exported-app-global-error-","duration":851,"timestamp":115296742136,"id":110,"parentId":105,"tags":{},"startTime":1778923268988,"traceId":"050e7f81a8b53f61"},{"name":"static-generation","duration":778602,"timestamp":115295966376,"id":105,"parentId":1,"tags":{},"startTime":1778923268213,"traceId":"050e7f81a8b53f61"},{"name":"write-routes-manifest","duration":528,"timestamp":115296745157,"id":111,"parentId":1,"tags":{},"startTime":1778923268991,"traceId":"050e7f81a8b53f61"},{"name":"print-tree-view","duration":4870,"timestamp":115296765504,"id":112,"parentId":1,"tags":{},"startTime":1778923269012,"traceId":"050e7f81a8b53f61"},{"name":"write-route-bundle-stats","duration":13282,"timestamp":115296770408,"id":113,"parentId":1,"tags":{},"startTime":1778923269017,"traceId":"050e7f81a8b53f61"},{"name":"telemetry-flush","duration":61133,"timestamp":115296783729,"id":114,"parentId":1,"tags":{},"startTime":1778923269030,"traceId":"050e7f81a8b53f61"},{"name":"next-build","duration":25057175,"timestamp":115271787752,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778923244034,"traceId":"050e7f81a8b53f61"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":5226573,"timestamp":13338602363,"id":14,"parentId":1,"tags":{},"startTime":1778821310849,"traceId":"5d9c6e2d2cb0bace"},{"name":"turbopack-build-events","duration":102,"timestamp":13338892687,"id":15,"parentId":1,"tags":{},"startTime":1778821311139,"traceId":"5d9c6e2d2cb0bace"},{"name":"run-typescript","duration":8146172,"timestamp":13343840026,"id":16,"parentId":1,"tags":{},"startTime":1778821316086,"traceId":"5d9c6e2d2cb0bace"},{"name":"static-check","duration":749057,"timestamp":13352160715,"id":19,"parentId":1,"tags":{},"startTime":1778821324407,"traceId":"5d9c6e2d2cb0bace"},{"name":"static-generation","duration":585023,"timestamp":13352920461,"id":105,"parentId":1,"tags":{},"startTime":1778821325167,"traceId":"5d9c6e2d2cb0bace"},{"name":"telemetry-flush","duration":21736,"timestamp":13353540336,"id":114,"parentId":1,"tags":{},"startTime":1778821325787,"traceId":"5d9c6e2d2cb0bace"},{"name":"next-build","duration":15155339,"timestamp":13338406775,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778821310653,"traceId":"5d9c6e2d2cb0bace"}]
1
+ [{"name":"run-turbopack","duration":10538069,"timestamp":115272069669,"id":14,"parentId":1,"tags":{},"startTime":1778923244316,"traceId":"050e7f81a8b53f61"},{"name":"turbopack-build-events","duration":116,"timestamp":115272433966,"id":15,"parentId":1,"tags":{},"startTime":1778923244680,"traceId":"050e7f81a8b53f61"},{"name":"run-typescript","duration":11923217,"timestamp":115282683480,"id":16,"parentId":1,"tags":{},"startTime":1778923254930,"traceId":"050e7f81a8b53f61"},{"name":"static-check","duration":1139971,"timestamp":115294808723,"id":19,"parentId":1,"tags":{},"startTime":1778923267055,"traceId":"050e7f81a8b53f61"},{"name":"static-generation","duration":778602,"timestamp":115295966376,"id":105,"parentId":1,"tags":{},"startTime":1778923268213,"traceId":"050e7f81a8b53f61"},{"name":"telemetry-flush","duration":61133,"timestamp":115296783729,"id":114,"parentId":1,"tags":{},"startTime":1778923269030,"traceId":"050e7f81a8b53f61"},{"name":"next-build","duration":25057175,"timestamp":115271787752,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778923244034,"traceId":"050e7f81a8b53f61"}]
@@ -1,8 +1,10 @@
1
1
  'use client';
2
2
 
3
- import { useCallback, useEffect, useRef, useState } from 'react';
3
+ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
4
4
  import { AliasAvatar } from './AliasAvatar';
5
5
  import { TaskChatPanel } from './TaskChatPanel';
6
+ import { useSessions } from '../lib/hooks';
7
+ import { relativeAgo } from '../lib/time';
6
8
 
7
9
  interface ChatPopoverProps {
8
10
  /** Node alias to chat with. Changing it switches the conversation. */
@@ -37,6 +39,16 @@ const MOBILE_BP = 640;
37
39
  * history are already solved there; this component only adds the floating
38
40
  * shell + drag/resize behaviour.
39
41
  */
42
+ /** Round 37 / Loop: surface node metadata (cwd + last-seen) inside the
43
+ * ChatPopover header. The SVG <title> tooltip (Rounds 33-34) only shows
44
+ * on hover-over-node, which is lost once the popover is open and
45
+ * potentially dragged away. Lifting cwd and last-seen into the popover
46
+ * header keeps the context where the user actually needs it.
47
+ *
48
+ * Round 38: relativeAgo factored to app/lib/time.ts so this file shares
49
+ * the same TZ-safe parser as TopoGraph (was a duplicated mirror until
50
+ * this round). */
51
+
40
52
  export function ChatPopover({ alias, onClose }: ChatPopoverProps) {
41
53
  // Position + size are resolved on mount (SSR-safe defaults here).
42
54
  const [pos, setPos] = useState({ x: 0, y: 0 });
@@ -48,6 +60,13 @@ export function ChatPopover({ alias, onClose }: ChatPopoverProps) {
48
60
  active: false, startX: 0, startY: 0, baseW: 0, baseH: 0,
49
61
  });
50
62
 
63
+ // Round 37 / Loop: pull the target session out of the SWR cache that
64
+ // TopoGraph already populates — same URL, so no extra network fetch.
65
+ const { sessions } = useSessions();
66
+ const session = useMemo(() => sessions.find(s => s.alias === alias), [sessions, alias]);
67
+ const isOnline = !!session && session.status !== 'offline';
68
+ const lastSeenLine = !isOnline ? relativeAgo(session?.last_seen_at) : null;
69
+
51
70
  const clamp = useCallback((x: number, y: number, w: number, h: number) => {
52
71
  const maxX = Math.max(MARGIN, window.innerWidth - w - MARGIN);
53
72
  const maxY = Math.max(MARGIN, window.innerHeight - h - MARGIN);
@@ -146,7 +165,24 @@ export function ChatPopover({ alias, onClose }: ChatPopoverProps) {
146
165
  <AliasAvatar alias={alias} size={28} />
147
166
  <div className="min-w-0">
148
167
  <div className="text-sm font-semibold text-[var(--fg)] truncate">{alias}</div>
149
- <div className="text-[10px] text-[var(--fg-muted)]">Drag to move · Esc to close</div>
168
+ {/* Round 37: cwd / last-seen lines surface the same metadata
169
+ the SVG <title> tooltip carries (rounds 33-34), but inside
170
+ the popover where it stays accessible after dragging the
171
+ window away from the node. Fall back to the drag-hint
172
+ when no metadata is reported. */}
173
+ {session?.project_dir ? (
174
+ <div className="text-[10px] text-[var(--fg-muted)] truncate font-mono" title={session.project_dir} data-popover-cwd>
175
+ cwd: {session.project_dir}
176
+ </div>
177
+ ) : null}
178
+ {lastSeenLine ? (
179
+ <div className="text-[10px] text-[var(--fg-muted)] truncate" data-popover-lastseen>
180
+ last seen: {lastSeenLine}
181
+ </div>
182
+ ) : null}
183
+ {!session?.project_dir && !lastSeenLine ? (
184
+ <div className="text-[10px] text-[var(--fg-muted)]">Drag to move · Esc to close</div>
185
+ ) : null}
150
186
  </div>
151
187
  </div>
152
188
  <button
@@ -159,6 +159,113 @@ const COMMANDS: Command[] = [
159
159
  // Dispatch synthetic `?` keydown so HelpOverlay's global listener opens
160
160
  window.dispatchEvent(new KeyboardEvent('keydown', { key: '?' }));
161
161
  } },
162
+
163
+ // ── Round 69 / Loop: topology filter actions ────────────────
164
+ // Write the pin directly into sessionStorage (the same key R66
165
+ // hydrates from) and broadcast a `storage`-like custom event
166
+ // so TopoGraph picks it up without a reload. Keyboard-accessible
167
+ // filter trigger from anywhere on the dashboard.
168
+ { id: 'act-pin-working', title: 'Pin topology filter: working', hint: 'highlight working nodes only', group: 'Actions',
169
+ icon: <NavIcon d="M4 6h16M4 12h8m-8 6h16" />,
170
+ perform: () => {
171
+ try { sessionStorage.setItem('anet-topo-pinned-status', 'working'); } catch {}
172
+ window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'status', value: 'working' } }));
173
+ } },
174
+ { id: 'act-pin-idle', title: 'Pin topology filter: idle', hint: 'highlight idle (online) nodes only', group: 'Actions',
175
+ icon: <NavIcon d="M4 6h16M4 12h8m-8 6h16" />,
176
+ perform: () => {
177
+ try { sessionStorage.setItem('anet-topo-pinned-status', 'idle'); } catch {}
178
+ window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'status', value: 'idle' } }));
179
+ } },
180
+ { id: 'act-pin-offline', title: 'Pin topology filter: offline', hint: 'highlight offline / no-SSE nodes', group: 'Actions',
181
+ icon: <NavIcon d="M4 6h16M4 12h8m-8 6h16" />,
182
+ perform: () => {
183
+ try { sessionStorage.setItem('anet-topo-pinned-status', 'offline'); } catch {}
184
+ window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'status', value: 'offline' } }));
185
+ } },
186
+ // Round 108 / Loop: pin-vendor palette actions. R88 made vendor
187
+ // letters clickable in the chip row, R89 added the filter pill,
188
+ // R90 added clear-vendor here — but PIN-vendor was missing. Three
189
+ // static commands for the major vendors (Anthropic / OpenAI /
190
+ // 书生) cover the common case; users with unusual vendors still
191
+ // have the chip-row click + cmdk clear path. TopoGraph's R108
192
+ // listener handles kind='vendor' to set the pin. The R88 stale-
193
+ // purge useEffect cleans up if the targeted vendor isn't actually
194
+ // in the fleet, so these commands are safe to invoke any time.
195
+ { id: 'act-pin-vendor-A', title: 'Pin topology filter: Anthropic', hint: 'highlight A vendor only', group: 'Actions',
196
+ icon: <NavIcon d="M4 6h16M4 12h8m-8 6h16" />,
197
+ perform: () => {
198
+ try { sessionStorage.setItem('anet-topo-pinned-vendor', 'A'); } catch {}
199
+ window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'vendor', value: 'A' } }));
200
+ } },
201
+ { id: 'act-pin-vendor-O', title: 'Pin topology filter: OpenAI', hint: 'highlight O vendor only', group: 'Actions',
202
+ icon: <NavIcon d="M4 6h16M4 12h8m-8 6h16" />,
203
+ perform: () => {
204
+ try { sessionStorage.setItem('anet-topo-pinned-vendor', 'O'); } catch {}
205
+ window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'vendor', value: 'O' } }));
206
+ } },
207
+ { id: 'act-pin-vendor-S', title: 'Pin topology filter: 书生', hint: 'highlight 书 vendor only', group: 'Actions',
208
+ icon: <NavIcon d="M4 6h16M4 12h8m-8 6h16" />,
209
+ perform: () => {
210
+ try { sessionStorage.setItem('anet-topo-pinned-vendor', '书'); } catch {}
211
+ window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'vendor', value: '书' } }));
212
+ } },
213
+ { id: 'act-clear-topo-pins', title: 'Clear topology filters', hint: 'release pinned status + group + vendor + edge', group: 'Actions',
214
+ icon: <NavIcon d="M6 18L18 6M6 6l12 12" />,
215
+ perform: () => {
216
+ try {
217
+ sessionStorage.removeItem('anet-topo-pinned-status');
218
+ sessionStorage.removeItem('anet-topo-pinned-group');
219
+ // Round 90 / Loop: R88 added pinnedVendor as the third filter
220
+ // dimension. The clear-all command must clear it too or it
221
+ // silently retains the vendor pin, which a user would read
222
+ // as a stuck filter.
223
+ // Round 117 / Loop: R116 added pinnedEdgeKey as the fourth pin
224
+ // dim — no sessionStorage (per-tab transient), but the
225
+ // dispatched `clear` event still needs to flip it. The
226
+ // TopoGraph listener handles that.
227
+ sessionStorage.removeItem('anet-topo-pinned-vendor');
228
+ } catch {}
229
+ window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'clear' } }));
230
+ } },
231
+ // Round 117 / Loop: granular edge-only clear, mirror of R90
232
+ // clear-vendor. Releases the pinnedEdgeKey without disturbing
233
+ // status/group/vendor pins. pinnedEdgeKey lives only in React
234
+ // state (no sessionStorage), so the perform is just a dispatch.
235
+ { id: 'act-clear-topo-edge', title: 'Clear topology edge pin', hint: 'release pinned recent-signal row only', group: 'Actions',
236
+ icon: <NavIcon d="M6 18L18 6M6 6l12 12" />,
237
+ perform: () => {
238
+ window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'clear-edge' } }));
239
+ } },
240
+ // Round 90 / Loop: granular vendor-only clear. R88 added per-letter
241
+ // toggle and Esc-clears-all; this fills the keyboard-only middle
242
+ // ground (release the vendor pin without disturbing status/group).
243
+ // Listed only when the user types "vendor" — fuzzy match still
244
+ // surfaces it under broader queries like "clear".
245
+ { id: 'act-clear-topo-vendor', title: 'Clear topology vendor filter', hint: 'release pinned vendor only', group: 'Actions',
246
+ icon: <NavIcon d="M6 18L18 6M6 6l12 12" />,
247
+ perform: () => {
248
+ try { sessionStorage.removeItem('anet-topo-pinned-vendor'); } catch {}
249
+ window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'clear-vendor' } }));
250
+ } },
251
+
252
+ // ── Round 74 / Loop: layout + view shortcuts via the palette ──
253
+ // Sister to R69 pin actions. Layout toggle and fit-to-canvas already
254
+ // have keyboard shortcuts (l / f, per R29 R32) but users who forget
255
+ // the keys can search "layout" / "fit" in the palette instead.
256
+ // Layout: write localStorage in lockstep then broadcast — the storage
257
+ // write matters for SSR (init reader uses it) and the event keeps the
258
+ // mounted canvas in sync without a reload.
259
+ { id: 'act-topo-toggle-layout', title: 'Toggle topology layout', hint: 'ring ↔ grid (or press `l`)', group: 'Actions',
260
+ icon: <NavIcon d="M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z" />,
261
+ perform: () => {
262
+ window.dispatchEvent(new CustomEvent('anet:topo-layout', { detail: { kind: 'toggle' } }));
263
+ } },
264
+ { id: 'act-topo-fit', title: 'Fit topology to canvas', hint: 'auto-zoom to content (or press `f`)', group: 'Actions',
265
+ icon: <NavIcon d="M4 8V4h4M16 4h4v4M20 16v4h-4M8 20H4v-4" />,
266
+ perform: () => {
267
+ window.dispatchEvent(new CustomEvent('anet:topo-view', { detail: { kind: 'fit' } }));
268
+ } },
162
269
  ];
163
270
 
164
271
  export function CommandPalette() {