@sleep2agi/agent-network-dashboard 0.5.7-preview.73 → 0.5.7-preview.76

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 (186) 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 +15 -15
  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 +2 -2
  16. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  17. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  19. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  20. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  21. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  22. package/.next/server/app/admin/page.js.nft.json +1 -1
  23. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/admin.html +2 -2
  25. package/.next/server/app/admin.rsc +3 -3
  26. package/.next/server/app/admin.segments/_full.segment.rsc +3 -3
  27. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  28. package/.next/server/app/admin.segments/_index.segment.rsc +2 -2
  29. package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
  30. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +2 -2
  31. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  32. package/.next/server/app/index.html +2 -2
  33. package/.next/server/app/index.rsc +3 -3
  34. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  35. package/.next/server/app/index.segments/_full.segment.rsc +3 -3
  36. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  37. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  38. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  39. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  40. package/.next/server/app/login.html +2 -2
  41. package/.next/server/app/login.rsc +3 -3
  42. package/.next/server/app/login.segments/_full.segment.rsc +3 -3
  43. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  44. package/.next/server/app/login.segments/_index.segment.rsc +2 -2
  45. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  46. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  47. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  48. package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  49. package/.next/server/app/logs.html +2 -2
  50. package/.next/server/app/logs.rsc +2 -2
  51. package/.next/server/app/logs.segments/_full.segment.rsc +2 -2
  52. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  53. package/.next/server/app/logs.segments/_index.segment.rsc +2 -2
  54. package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
  55. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  56. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  57. package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
  58. package/.next/server/app/messages.html +2 -2
  59. package/.next/server/app/messages.rsc +3 -3
  60. package/.next/server/app/messages.segments/_full.segment.rsc +3 -3
  61. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  62. package/.next/server/app/messages.segments/_index.segment.rsc +2 -2
  63. package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
  64. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +2 -2
  65. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  66. package/.next/server/app/node/page_client-reference-manifest.js +1 -1
  67. package/.next/server/app/node.html +2 -2
  68. package/.next/server/app/node.rsc +3 -3
  69. package/.next/server/app/node.segments/_full.segment.rsc +3 -3
  70. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  71. package/.next/server/app/node.segments/_index.segment.rsc +2 -2
  72. package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
  73. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +2 -2
  74. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  75. package/.next/server/app/nodes/page.js.nft.json +1 -1
  76. package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  77. package/.next/server/app/nodes.html +2 -2
  78. package/.next/server/app/nodes.rsc +3 -3
  79. package/.next/server/app/nodes.segments/_full.segment.rsc +3 -3
  80. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  81. package/.next/server/app/nodes.segments/_index.segment.rsc +2 -2
  82. package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
  83. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +2 -2
  84. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  85. package/.next/server/app/page_client-reference-manifest.js +1 -1
  86. package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
  87. package/.next/server/app/server-logs.html +2 -2
  88. package/.next/server/app/server-logs.rsc +2 -2
  89. package/.next/server/app/server-logs.segments/_full.segment.rsc +2 -2
  90. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  91. package/.next/server/app/server-logs.segments/_index.segment.rsc +2 -2
  92. package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
  93. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  94. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  95. package/.next/server/app/servers/page_client-reference-manifest.js +1 -1
  96. package/.next/server/app/servers.html +2 -2
  97. package/.next/server/app/servers.rsc +2 -2
  98. package/.next/server/app/servers.segments/_full.segment.rsc +2 -2
  99. package/.next/server/app/servers.segments/_head.segment.rsc +1 -1
  100. package/.next/server/app/servers.segments/_index.segment.rsc +2 -2
  101. package/.next/server/app/servers.segments/_tree.segment.rsc +2 -2
  102. package/.next/server/app/servers.segments/servers/__PAGE__.segment.rsc +1 -1
  103. package/.next/server/app/servers.segments/servers.segment.rsc +1 -1
  104. package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
  105. package/.next/server/app/settings/networks.html +2 -2
  106. package/.next/server/app/settings/networks.rsc +2 -2
  107. package/.next/server/app/settings/networks.segments/_full.segment.rsc +2 -2
  108. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  109. package/.next/server/app/settings/networks.segments/_index.segment.rsc +2 -2
  110. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
  111. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  112. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  113. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  114. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  115. package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
  116. package/.next/server/app/settings/tokens.html +2 -2
  117. package/.next/server/app/settings/tokens.rsc +2 -2
  118. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +2 -2
  119. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  120. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +2 -2
  121. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
  122. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  123. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  124. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  125. package/.next/server/app/settings.html +2 -2
  126. package/.next/server/app/settings.rsc +3 -3
  127. package/.next/server/app/settings.segments/_full.segment.rsc +3 -3
  128. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  129. package/.next/server/app/settings.segments/_index.segment.rsc +2 -2
  130. package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  131. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  132. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  133. package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  134. package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  135. package/.next/server/app/tasks.html +2 -2
  136. package/.next/server/app/tasks.rsc +2 -2
  137. package/.next/server/app/tasks.segments/_full.segment.rsc +2 -2
  138. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  139. package/.next/server/app/tasks.segments/_index.segment.rsc +2 -2
  140. package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
  141. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  142. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  143. package/.next/server/chunks/ssr/[root-of-the-server]__030vg4n._.js +2 -2
  144. package/.next/server/chunks/ssr/[root-of-the-server]__030vg4n._.js.map +1 -1
  145. package/.next/server/chunks/ssr/[root-of-the-server]__05kf31s._.js +1 -1
  146. package/.next/server/chunks/ssr/[root-of-the-server]__05kf31s._.js.map +1 -1
  147. package/.next/server/chunks/ssr/[root-of-the-server]__0nw1f-j._.js +3 -0
  148. package/.next/server/chunks/ssr/[root-of-the-server]__0nw1f-j._.js.map +1 -0
  149. package/.next/server/chunks/ssr/agent-network-dashboard_app_012oyw5._.js +3 -0
  150. package/.next/server/chunks/ssr/agent-network-dashboard_app_012oyw5._.js.map +1 -0
  151. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  152. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  153. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  154. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  155. package/.next/server/chunks/ssr/agent-network-dashboard_app_0gd.4pc._.js +2 -2
  156. package/.next/server/chunks/ssr/agent-network-dashboard_app_0gd.4pc._.js.map +1 -1
  157. package/.next/server/middleware-build-manifest.js +3 -3
  158. package/.next/server/pages/404.html +2 -2
  159. package/.next/server/pages/500.html +1 -1
  160. package/.next/server/server-reference-manifest.js +1 -1
  161. package/.next/server/server-reference-manifest.json +1 -1
  162. package/.next/static/chunks/{0scww97p6z5z..css → 04uju~n5s9g7..css} +1 -1
  163. package/.next/static/chunks/{00b4y77vxfabl.js → 07h2umbpc5lqy.js} +2 -2
  164. package/.next/static/chunks/0_cm~9rtqil56.js +1 -0
  165. package/.next/static/chunks/0gtopr21xrsnx.js +1 -0
  166. package/.next/static/chunks/0iv.0p9_5b36e.js +1 -0
  167. package/.next/static/chunks/0vun~4ljcrj3p.js +7 -0
  168. package/.next/static/chunks/{0..h8s._z~uek.js → 0ygvk~vcrv2jq.js} +1 -1
  169. package/.next/static/chunks/{0shtnff1p8hzw.js → 11g4uggbbuyp7.js} +1 -1
  170. package/.next/trace +2 -2
  171. package/.next/trace-build +1 -1
  172. package/app/components/TaskChatPanel.tsx +87 -8
  173. package/app/lib/hooks.ts +4 -1
  174. package/app/messages/page.tsx +42 -4
  175. package/package.json +1 -1
  176. package/.next/server/chunks/ssr/[root-of-the-server]__04gz75y._.js +0 -3
  177. package/.next/server/chunks/ssr/[root-of-the-server]__04gz75y._.js.map +0 -1
  178. package/.next/server/chunks/ssr/agent-network-dashboard_app_0_870i8._.js +0 -3
  179. package/.next/server/chunks/ssr/agent-network-dashboard_app_0_870i8._.js.map +0 -1
  180. package/.next/static/chunks/06xxn73qy0qiz.js +0 -7
  181. package/.next/static/chunks/0_tvbie.c68h5.js +0 -1
  182. package/.next/static/chunks/13l-ngu707546.js +0 -1
  183. package/.next/static/chunks/152_p6jt7txp6.js +0 -1
  184. /package/.next/static/{TDZA1Sx9EZPbGBOvEQtJ7 → W8km2n6VCMAi_E7EBSqcm}/_buildManifest.js +0 -0
  185. /package/.next/static/{TDZA1Sx9EZPbGBOvEQtJ7 → W8km2n6VCMAi_E7EBSqcm}/_clientMiddlewareManifest.js +0 -0
  186. /package/.next/static/{TDZA1Sx9EZPbGBOvEQtJ7 → W8km2n6VCMAi_E7EBSqcm}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../agent-network-dashboard/app/components/utils.ts","../../../../../agent-network-dashboard/app/components/AliasAvatar.tsx","../../../../../agent-network-dashboard/app/components/EmptyState.tsx","../../../../../agent-network-dashboard/app/lib/hooks.ts","../../../../../agent-network-dashboard/app/components/CollapsibleSearch.tsx","../../../../../agent-network-dashboard/app/messages/page.tsx"],"sourcesContent":["/** Round 82: strip the most common markdown markup from agent-to-agent\n * task / message bodies so single-line table previews read cleanly.\n * Full original content stays in the expanded row / drawer / title=. */\nexport function previewContent(raw: string | null | undefined): string {\n if (!raw) return '--';\n return raw\n .replace(/!\\[([^\\]]*)\\]\\([^)]*\\)/g, '$1') // images: ![alt](src) → alt\n .replace(/\\[([^\\]]+)\\]\\([^)]*\\)/g, '$1') // links: [text](href) → text\n .replace(/`([^`]+)`/g, '$1') // inline code: `x` → x\n .replace(/\\s+/g, ' ') // collapse whitespace\n .trim() || '--';\n}\n\n// Round 44 / Loop: timeAgo now delegates to the shared lib/time helper.\n// The old in-line `replace + 'Z'` parse appended a Z to already-ISO\n// inputs (producing \"…ZZ\", browser-fragile) — strict-superset semantics\n// preserved for SQL-style inputs, fixed for ISO. Plus a 'just now' fallback\n// when clock skew puts the timestamp in the future. Five callers benefit:\n// /admin · /logs · /settings/networks · InboxPanel · /messages.\nimport { relativeAgo } from '../lib/time';\nexport function timeAgo(dateStr: string): string {\n return relativeAgo(dateStr) ?? '--';\n}\n\nexport function statusColor(status: string, hasSse: boolean): string {\n if (hasSse && status === 'working') return 'bg-green-500';\n if (hasSse && status === 'idle') return 'bg-emerald-400';\n if (hasSse) return 'bg-blue-400';\n if (status === 'offline') return 'bg-gray-500';\n return 'bg-yellow-400';\n}\n\nexport function formatUptime(seconds: number): string {\n const h = Math.floor(seconds / 3600);\n const m = Math.floor((seconds % 3600) / 60);\n if (h > 0) return `${h}h ${m}m`;\n return `${m}m`;\n}\n","/** Hue-hashed avatar pill for agent aliases. Same alias → same color across\n * every page (Messages, Nodes, TopoGraph). Use the `size` prop for inline\n * pills (16/20) vs card headers (28). Round 21 introduced the palette;\n * round 22 promotes it from app/messages to a shared component. */\n\nconst AVATAR_HUES = [180, 200, 220, 270, 300, 330, 30, 90];\n\nexport function aliasAvatarColors(alias: string): { bg: string; ring: string; text: string } {\n let h = 0;\n for (let i = 0; i < alias.length; i++) h = (h * 31 + alias.charCodeAt(i)) >>> 0;\n const hue = AVATAR_HUES[h % AVATAR_HUES.length];\n return {\n bg: `hsl(${hue} 55% 22%)`,\n ring: `hsl(${hue} 60% 45%)`,\n text: `hsl(${hue} 80% 78%)`,\n };\n}\n\nexport function aliasInitial(alias?: string): string {\n if (!alias) return '·';\n const ch = alias.trim().match(/[\\p{L}\\p{N}]/u)?.[0] || alias.trim()[0] || '·';\n return ch.toUpperCase();\n}\n\nfunction isGrokAlias(alias: string) {\n return /\\bgrok\\b|grok-build|grok测试员|grok-demo/i.test(alias);\n}\n\ninterface AliasAvatarProps {\n alias: string;\n size?: number;\n className?: string;\n}\n\nexport function AliasAvatar({ alias, size = 28, className = '' }: AliasAvatarProps) {\n if (isGrokAlias(alias)) {\n return (\n <span\n className={`anet-alias-avatar inline-flex items-center justify-center rounded-full border border-emerald-500/45 bg-emerald-950/70 shrink-0 ${className}`}\n style={{\n width: size,\n height: size,\n backgroundImage: 'url(/vendors/grok.svg)',\n backgroundPosition: 'center',\n backgroundRepeat: 'no-repeat',\n backgroundSize: '68% 68%',\n }}\n title={alias}\n aria-hidden\n />\n );\n }\n\n const c = aliasAvatarColors(alias);\n const fs = Math.max(9, Math.round(size * 0.42));\n return (\n <span\n className={`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${className}`}\n style={{\n width: size,\n height: size,\n fontSize: fs,\n backgroundColor: c.bg,\n borderColor: c.ring,\n color: c.text,\n }}\n title={alias}\n aria-hidden\n >\n {aliasInitial(alias)}\n </span>\n );\n}\n","'use client';\n\nimport { useState } from 'react';\nimport Link from 'next/link';\n\nexport type EmptyVariant = 'nodes' | 'tasks' | 'messages' | 'logs' | 'tokens' | 'networks' | 'generic';\n\ninterface EmptyStateProps {\n /** Picks the icon glyph and default copy if title/sub omitted. */\n variant?: EmptyVariant;\n /** Optional override headline. */\n title?: string;\n /** Optional override sub-copy. */\n sub?: string;\n /** Optional CTA: text + href (internal) or onClick. */\n cta?: { label: string; href?: string; onClick?: () => void };\n /** Compact mode for in-card empty states (smaller padding). */\n compact?: boolean;\n}\n\nconst DEFAULTS: Record<EmptyVariant, { title: string; sub: string }> = {\n nodes: { title: 'No agents in this network', sub: 'Agent sessions will appear here once they connect to the CommHub.' },\n tasks: { title: 'No tasks yet', sub: 'Tasks will appear here when agents send them via CommHub.' },\n messages: { title: 'No messages', sub: 'Messages between agents will appear here.' },\n logs: { title: 'No audit logs', sub: 'Events will appear here when users register, login, or perform actions.' },\n tokens: { title: 'No API tokens', sub: 'Create one to authenticate CLI tools and external integrations.' },\n networks: { title: 'No networks found', sub: 'Create one or sign in with V3 auth to see your networks.' },\n generic: { title: 'Nothing here yet', sub: 'Data will appear here once available.' },\n};\n\n/**\n * Minimal monochrome SVG glyphs per variant. No filled shapes, no gradients,\n * no AI-decoration — just thin-stroke line art that fades into the page.\n * 64×64 viewBox; rendered at 56×56 (compact 40×40).\n */\nfunction Glyph({ variant, size }: { variant: EmptyVariant; size: number }) {\n const s = { width: size, height: size };\n const baseProps = {\n fill: 'none',\n stroke: 'currentColor',\n strokeWidth: 1.25,\n strokeLinecap: 'round' as const,\n strokeLinejoin: 'round' as const,\n };\n\n switch (variant) {\n case 'nodes':\n // Mesh with dashed edges = \"nodes will land here\"\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <circle cx=\"32\" cy=\"14\" r=\"4\" />\n <circle cx=\"14\" cy=\"44\" r=\"4\" />\n <circle cx=\"50\" cy=\"44\" r=\"4\" />\n <line x1=\"32\" y1=\"18\" x2=\"14\" y2=\"40\" strokeDasharray=\"3 3\" opacity=\"0.6\" />\n <line x1=\"32\" y1=\"18\" x2=\"50\" y2=\"40\" strokeDasharray=\"3 3\" opacity=\"0.6\" />\n <line x1=\"18\" y1=\"44\" x2=\"46\" y2=\"44\" strokeDasharray=\"3 3\" opacity=\"0.6\" />\n </g>\n </svg>\n );\n case 'tasks':\n // Empty checkbox list\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <rect x=\"14\" y=\"14\" width=\"36\" height=\"6\" rx=\"1.5\" />\n <rect x=\"14\" y=\"26\" width=\"36\" height=\"6\" rx=\"1.5\" opacity=\"0.6\" />\n <rect x=\"14\" y=\"38\" width=\"36\" height=\"6\" rx=\"1.5\" opacity=\"0.35\" />\n </g>\n </svg>\n );\n case 'messages':\n // Speech bubble outline\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <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\" />\n <line x1=\"22\" y1=\"28\" x2=\"42\" y2=\"28\" opacity=\"0.5\" />\n <line x1=\"22\" y1=\"34\" x2=\"36\" y2=\"34\" opacity=\"0.5\" />\n </g>\n </svg>\n );\n case 'logs':\n // Document with lines\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <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\" />\n <path d=\"M40 12 v8 h8\" opacity=\"0.6\" />\n <line x1=\"24\" y1=\"32\" x2=\"40\" y2=\"32\" opacity=\"0.55\" />\n <line x1=\"24\" y1=\"38\" x2=\"40\" y2=\"38\" opacity=\"0.4\" />\n <line x1=\"24\" y1=\"44\" x2=\"34\" y2=\"44\" opacity=\"0.25\" />\n </g>\n </svg>\n );\n case 'tokens':\n // Key outline\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <circle cx=\"22\" cy=\"32\" r=\"8\" />\n <line x1=\"30\" y1=\"32\" x2=\"54\" y2=\"32\" />\n <line x1=\"44\" y1=\"32\" x2=\"44\" y2=\"38\" />\n <line x1=\"50\" y1=\"32\" x2=\"50\" y2=\"40\" />\n </g>\n </svg>\n );\n case 'networks':\n // Globe-ish concentric ovals\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <circle cx=\"32\" cy=\"32\" r=\"18\" />\n <ellipse cx=\"32\" cy=\"32\" rx=\"18\" ry=\"9\" opacity=\"0.55\" />\n <line x1=\"14\" y1=\"32\" x2=\"50\" y2=\"32\" opacity=\"0.55\" />\n <line x1=\"32\" y1=\"14\" x2=\"32\" y2=\"50\" opacity=\"0.55\" />\n </g>\n </svg>\n );\n case 'generic':\n default:\n // Soft sparkle outline\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <circle cx=\"32\" cy=\"32\" r=\"14\" strokeDasharray=\"3 3\" opacity=\"0.6\" />\n <circle cx=\"32\" cy=\"32\" r=\"3\" />\n </g>\n </svg>\n );\n }\n}\n\nexport function EmptyState({ variant = 'generic', title, sub, cta, compact = false }: EmptyStateProps) {\n const d = DEFAULTS[variant];\n const headline = title ?? d.title;\n const subcopy = sub ?? d.sub;\n const iconSize = compact ? 40 : 56;\n\n return (\n <div className={`text-center ${compact ? 'py-8' : 'py-16'} px-4`} role=\"status\">\n <div className=\"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500\" aria-hidden>\n <Glyph variant={variant} size={iconSize} />\n </div>\n <h3 className={`font-medium text-gray-300 ${compact ? 'text-sm' : 'text-base'}`}>{headline}</h3>\n {subcopy && (\n <p className={`text-gray-500 ${compact ? 'text-xs mt-1.5' : 'text-sm mt-2'} max-w-md mx-auto leading-relaxed`}>\n {subcopy}\n </p>\n )}\n {cta && (\n <div className=\"mt-4\">\n {cta.href ? (\n <Link href={cta.href} className=\"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300\">\n {cta.label}\n <span aria-hidden>→</span>\n </Link>\n ) : (\n <button onClick={cta.onClick} className=\"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300\">\n {cta.label}\n <span aria-hidden>→</span>\n </button>\n )}\n </div>\n )}\n </div>\n );\n}\n\n/** Round 105 (issue #90): centered card shell so the Overview empty state\n * reads as an intentional, layout-aligned card instead of bare text\n * floating in the content column. */\nfunction EmptyCard({ children }: { children: React.ReactNode }) {\n return (\n <div className=\"max-w-2xl mx-auto rounded-xl border border-[#26262b] bg-[#161618] shadow-lg shadow-black/20\">\n {children}\n </div>\n );\n}\n\n/**\n * Overview-specific variant. Three cases:\n * 1. network-mismatch — agents exist globally, none in this network\n * 2. agents-offline — 0 registered now BUT task history exists, so this\n * is NOT a first run (round 105 / issue #90: showing \"Spin up your\n * first agent\" next to \"acked: 499\" was misleading)\n * 3. true first-run — 0 agents, 0 history → quickstart command\n */\nexport function NodesEmptyState({\n hint,\n taskHistoryCount = 0,\n}: {\n hint?: { global_count?: number; filtered_network?: string };\n taskHistoryCount?: number;\n}) {\n if (hint?.global_count) {\n return (\n <EmptyCard>\n <EmptyState\n variant=\"nodes\"\n title=\"No agents in this network\"\n sub={`Server has ${hint.global_count} nodes globally, but none are registered to the current network. Switch network or contact admin.`}\n />\n </EmptyCard>\n );\n }\n\n // Round 105 (issue #90): there's task history but no agents online right\n // now — they finished or disconnected. Don't pitch a first-run setup;\n // point at the history instead.\n if (taskHistoryCount > 0) {\n return (\n <EmptyCard>\n <EmptyState\n variant=\"nodes\"\n title=\"No agents online\"\n sub={`Every agent in this network is currently offline. ${taskHistoryCount.toLocaleString()} task${taskHistoryCount === 1 ? '' : 's'} in history — they may have finished their work or disconnected.`}\n cta={{ label: 'View task history', href: '/tasks' }}\n />\n </EmptyCard>\n );\n }\n\n // Round 52: true empty state (zero agents anywhere) — show the\n // quickstart command inline so users don't have to leave the dashboard\n // to figure out how to spin up their first agent.\n return (\n <EmptyCard>\n <div className=\"text-center py-16 px-4\" role=\"status\">\n <div className=\"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500\" aria-hidden>\n <svg viewBox=\"0 0 64 64\" width={56} height={56}>\n <g stroke=\"currentColor\" strokeWidth=\"1.5\" fill=\"none\">\n <rect x=\"10\" y=\"20\" width=\"44\" height=\"28\" rx=\"2\" />\n <rect x=\"20\" y=\"32\" width=\"6\" height=\"8\" opacity=\"0.5\" />\n <rect x=\"32\" y=\"32\" width=\"6\" height=\"8\" opacity=\"0.5\" />\n <rect x=\"44\" y=\"32\" width=\"4\" height=\"8\" opacity=\"0.5\" />\n <line x1=\"10\" y1=\"26\" x2=\"54\" y2=\"26\" opacity=\"0.4\" />\n <circle cx=\"14\" cy=\"23\" r=\"0.8\" fill=\"currentColor\" />\n </g>\n </svg>\n </div>\n <h3 className=\"font-medium text-gray-300 text-base\">Spin up your first agent</h3>\n <p className=\"text-gray-500 text-sm mt-2 max-w-md mx-auto leading-relaxed\">\n Run this in a fresh terminal to register an agent with this CommHub:\n </p>\n <div className=\"mt-4 inline-block\">\n <QuickstartCommand cmd=\"npx --yes @sleep2agi/agent-network init\" />\n </div>\n {/* #214 F6: expectation management — without this line, users\n copy the command and stare at an empty screen not knowing\n what to wait for. The page polls every 5s, so the node\n really does appear by itself. */}\n <p className=\"text-gray-600 text-xs mt-3 max-w-md mx-auto\">\n Once the agent connects, it appears here automatically within a\n few seconds — no refresh needed.\n </p>\n <div className=\"mt-3\">\n <a\n href=\"https://anet.sh\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-xs font-medium text-gray-500 hover:text-cyan-300\"\n >\n Full quickstart guide\n <span aria-hidden>→</span>\n </a>\n </div>\n </div>\n </EmptyCard>\n );\n}\n\n/** Code block + inline copy button used by the empty-Overview first-run\n * CTA. State lives here so the parent stays stateless. */\nfunction QuickstartCommand({ cmd }: { cmd: string }) {\n const [copied, setCopied] = useState(false);\n const onCopy = async () => {\n try {\n await navigator.clipboard.writeText(cmd);\n setCopied(true);\n setTimeout(() => setCopied(false), 1800);\n } catch {}\n };\n return (\n <div className=\"anet-empty-cmd flex items-start sm:items-center gap-2 bg-[#0e0e10] border border-[#26262b] rounded-lg pl-4 pr-1.5 py-1.5 text-xs sm:text-sm\">\n {/* #209 R44: long quickstart commands (e.g. the `npm install -g …`\n variant) overflowed the empty-state card horizontally on phones\n because <code> defaults to white-space:pre. break-all on mobile\n lets them wrap inside the box; sm: up restores normal wrapping\n so desktop monospace lines stay clean. items-start on phones\n aligns the Copy button to the top so a wrapped 2-line command\n doesn't bottom-anchor the button. */}\n <code className=\"text-cyan-300 font-mono select-all min-w-0 break-all sm:break-normal\">{cmd}</code>\n <button\n type=\"button\"\n onClick={onCopy}\n aria-label={copied ? 'Copied' : 'Copy command'}\n className=\"shrink-0 rounded-md px-2 py-1.5 text-[11px] text-gray-500 hover:text-gray-200 hover:bg-[#1c1c1f] transition-colors\"\n >\n {copied ? (\n <span className=\"flex items-center gap-1 text-green-400\">\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n Copied\n </span>\n ) : (\n <span className=\"flex items-center gap-1\">\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n <rect x=\"9\" y=\"9\" width=\"13\" height=\"13\" rx=\"2\" ry=\"2\" />\n <path d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\" />\n </svg>\n Copy\n </span>\n )}\n </button>\n </div>\n );\n}\n","import useSWR from 'swr';\nimport { Session, Health, AnetConfig } from '../components/types';\nimport { useNetworkId } from './network-context';\n\nconst fetcher = async (url: string) => {\n const res = await fetch(url);\n if (res.status === 401) {\n window.location.assign('/login');\n throw new Error('unauthorized');\n }\n return res.json();\n};\n\nconst SWR_OPTIONS = { refreshInterval: 5000, dedupingInterval: 3000 };\n\n/** Append network_id to URL if set */\nfunction withNetwork(url: string, networkId: string): string {\n if (!networkId) return url;\n const sep = url.includes('?') ? '&' : '?';\n return `${url}${sep}network_id=${encodeURIComponent(networkId)}`;\n}\n\nexport function useSessions() {\n const { networkId } = useNetworkId();\n const { data, error, isLoading } = useSWR<{ sessions: Session[]; _hint?: { global_count?: number; filtered_network?: string } }>(\n withNetwork('/api/hub/status', networkId),\n fetcher,\n SWR_OPTIONS,\n );\n return { sessions: data?.sessions || [], hint: data?._hint, error, isLoading };\n}\n\nexport function useHealth() {\n const { data, error } = useSWR<Health>('/api/hub/health', fetcher, SWR_OPTIONS);\n return { health: data || null, error };\n}\n\nexport function useAnetConfig() {\n const { data } = useSWR<AnetConfig>('/api/anet/config', fetcher, { refreshInterval: 30000 });\n return { config: data || null };\n}\n\nexport function useTasks(params?: Record<string, string>) {\n const { networkId } = useNetworkId();\n const query = new URLSearchParams({ limit: '100', ...params }).toString();\n const { data, error, isLoading } = useSWR(\n withNetwork(`/api/hub/tasks?${query}`, networkId),\n fetcher,\n SWR_OPTIONS,\n );\n return {\n tasks: data?.tasks || [],\n count: data?.count ?? 0,\n source: data?.source,\n error,\n isLoading,\n };\n}\n\nexport function useStats() {\n const { networkId } = useNetworkId();\n const { data, error } = useSWR(withNetwork('/api/hub/stats', networkId), fetcher, SWR_OPTIONS);\n return { stats: data?.ok ? data : null, error };\n}\n\nexport function useMessages(limit = 100) {\n const { networkId } = useNetworkId();\n const { data, error, isLoading } = useSWR(\n withNetwork(`/api/hub/messages?limit=${limit}`, networkId),\n fetcher,\n SWR_OPTIONS,\n );\n return { messages: data?.messages || [], error, isLoading };\n}\n\nexport function useNodeSession(alias: string) {\n const { data, error, isLoading } = useSWR(\n alias ? `/api/hub/session?alias=${encodeURIComponent(alias)}` : null,\n fetcher,\n SWR_OPTIONS,\n );\n return {\n session: data?.session || null,\n inbox: data?.inbox || [],\n sse: data?.sse || 0,\n error,\n isLoading,\n };\n}\n","'use client';\n\n/**\n * CollapsibleSearch\n * ──────────────────\n * #209 R34 — Reusable WeChat-style search-toggle pattern.\n *\n * Two pieces of UI from one component:\n * 1. A magnifier button (`w-9 h-9 rounded-full`) that lives in a page\n * header — render it via `Button`.\n * 2. A collapsible search row that reveals below the header on open —\n * render it via `Row`.\n *\n * Used together they replicate WeChat's chat-list search affordance:\n * the search field is hidden by default behind a small circle at the\n * top-right of the page header. Tapping it slides the input open,\n * autofocuses, and lets Escape clear + close. A cyan dot appears in\n * the corner of the icon when there is an active search term but the\n * row is collapsed, so the user always knows a filter is in effect.\n *\n * Owner of the search string is the parent (this component is\n * uncontrolled w.r.t. value — pure UI). That keeps the filter logic\n * with the page so it's easy to plumb additional behaviour like\n * `from:alias` shortcuts or highlight rendering.\n *\n * Shipped as a single component with two named children so callers\n * can place `<Button>` inside their existing header flex row and\n * `<Row>` just after, without restructuring around a tighter API.\n *\n * First adopters: /nodes (R32), /messages (R33). R34 ships\n * /nodes + /messages migrated to use this component; future pages\n * can add search by importing it instead of copy-pasting the JSX.\n */\n\nimport { useState, useCallback } from 'react';\n\ninterface CollapsibleSearchAPI {\n /** Round magnifier button. Place in your page header (e.g. right edge). */\n Button: () => React.JSX.Element;\n /** Collapsible search input row. Place immediately after the header. */\n Row: () => React.JSX.Element | null;\n /** Current search value — pass to your filter logic. */\n value: string;\n /** Programmatically clear + close (useful for \"no results\" reset link). */\n reset: () => void;\n}\n\ninterface UseCollapsibleSearchProps {\n /** Controlled value + setter from the parent — owns the search string. */\n value: string;\n onChange: (next: string) => void;\n /** Input placeholder. */\n placeholder?: string;\n /** Accessible label for the button (also drives `title=`). */\n label?: string;\n /** Hide everything when false (e.g. when there is nothing to search). */\n enabled?: boolean;\n}\n\nexport function useCollapsibleSearch({\n value,\n onChange,\n placeholder = 'Search…',\n label = 'Search',\n enabled = true,\n}: UseCollapsibleSearchProps): CollapsibleSearchAPI {\n const [open, setOpen] = useState(false);\n\n const reset = useCallback(() => {\n onChange('');\n setOpen(false);\n }, [onChange]);\n\n const Button = useCallback(() => {\n if (!enabled) return <></>;\n const active = open || value;\n return (\n <button\n type=\"button\"\n onClick={() => setOpen(v => !v)}\n aria-label={open ? `Close ${label.toLowerCase()}` : `Open ${label.toLowerCase()}`}\n aria-pressed={open}\n title={open ? `Close ${label.toLowerCase()}` : label}\n className={`relative shrink-0 inline-flex items-center justify-center rounded-full border w-9 h-9 transition-colors ${\n active\n ? 'border-cyan-500/40 bg-cyan-500/10 text-cyan-300'\n : 'border-[#26262b] bg-[#161618] text-gray-400 hover:text-gray-200 hover:border-[#3a3a41]'\n }`}\n >\n <svg className=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" strokeWidth={2}>\n <path strokeLinecap=\"round\" strokeLinejoin=\"round\" d=\"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z\" />\n </svg>\n {value && !open && (\n <span aria-hidden className=\"absolute -top-0.5 -right-0.5 w-2 h-2 rounded-full bg-cyan-400 ring-2 ring-[#0b0b0d]\" />\n )}\n </button>\n );\n }, [open, value, label, enabled]);\n\n const Row = useCallback(() => {\n if (!enabled) return null;\n if (!open && !value) return null;\n return (\n <div className=\"mb-3 sm:mb-4 flex items-center gap-2\">\n <input\n type=\"text\"\n value={value}\n onChange={e => onChange(e.target.value)}\n onKeyDown={e => { if (e.key === 'Escape') reset(); }}\n placeholder={placeholder}\n autoFocus={open}\n className=\"flex-1 bg-[#161618] border border-[#26262b] rounded-lg px-3 py-2 text-base sm:text-sm text-white placeholder-gray-600 focus:border-cyan-500/40 focus:outline-none\"\n />\n <button\n type=\"button\"\n onClick={reset}\n className=\"shrink-0 text-xs text-gray-500 hover:text-gray-300 px-2 py-2\"\n aria-label=\"Clear and close search\"\n >\n Cancel\n </button>\n </div>\n );\n }, [open, value, onChange, placeholder, reset, enabled]);\n\n return { Button, Row, value, reset };\n}\n","'use client';\n\nimport { useMemo, useState } from 'react';\nimport { useMessages } from '../lib/hooks';\nimport { timeAgo, previewContent } from '../components/utils';\nimport { EmptyState } from '../components/EmptyState';\nimport { AliasAvatar } from '../components/AliasAvatar';\nimport { useCollapsibleSearch } from '../components/CollapsibleSearch';\n\ninterface MessageItem {\n id: string;\n type?: string;\n from_alias?: string;\n to_alias?: string;\n priority?: string;\n content?: string;\n created_at?: string;\n task_id?: string;\n}\n\nconst TYPE_COLORS: Record<string, string> = {\n task: 'bg-green-500/10 text-green-300 border-green-500/20',\n message: 'bg-blue-500/10 text-blue-300 border-blue-500/20',\n broadcast: 'bg-purple-500/10 text-purple-300 border-purple-500/20',\n reply: 'bg-cyan-500/10 text-cyan-300 border-cyan-500/20',\n};\n\nfunction normalizeDate(value?: string) {\n if (!value) return 0;\n return new Date(value.replace(' ', 'T') + 'Z').getTime();\n}\n\nfunction formatDividerLabel(value?: string) {\n if (!value) return 'Time gap';\n const date = new Date(value.replace(' ', 'T') + 'Z');\n return date.toLocaleString();\n}\n\nfunction bubbleVariant(message: MessageItem) {\n if (message.type === 'broadcast') return 'broadcast';\n if ((message.from_alias || '').toLowerCase() === 'dashboard') return 'outgoing';\n return 'incoming';\n}\n\n/** Render message content, highlighting the search match inline (skips the\n * `from:` filter prefix since it filters by sender, not by content). */\nfunction renderHighlighted(content: string | undefined, search: string) {\n const text = content || '--';\n const q = search.trim();\n if (!q || q.startsWith('from:')) return text;\n const idx = text.toLowerCase().indexOf(q.toLowerCase());\n if (idx < 0) return text;\n return <>{text.slice(0, idx)}<mark className=\"bg-yellow-500/30 text-yellow-200 rounded px-0.5\">{text.slice(idx, idx + q.length)}</mark>{text.slice(idx + q.length)}</>;\n}\n\nexport default function MessagesPage() {\n const { messages, isLoading } = useMessages(200);\n const [filterType, setFilterType] = useState('');\n const [search, setSearch] = useState('');\n const [debug, setDebug] = useState(false);\n const [viewMode, setViewMode] = useState<'timeline' | 'grouped'>('timeline');\n // #209 R33→R34: WeChat-style magnifier-toggle search hook (shared with /nodes).\n const searchCtl = useCollapsibleSearch({\n value: search,\n onChange: setSearch,\n placeholder: 'Search from/to/content or use from:alias…',\n label: 'Search messages',\n enabled: messages.length > 0,\n });\n\n const quickFromChips = useMemo(() => {\n const aliases = new Set<string>();\n messages.forEach((message: MessageItem) => {\n const alias = message.from_alias?.trim();\n if (alias && alias.toLowerCase() !== 'dashboard') aliases.add(alias);\n });\n return [...aliases].slice(0, 8);\n }, [messages]);\n\n const filtered = useMemo(() => {\n const query = search.trim().toLowerCase();\n const fromFilter = query.startsWith('from:') ? query.slice(5).trim() : '';\n\n return [...messages]\n .filter((m: MessageItem) => {\n if (filterType && m.type !== filterType) return false;\n if (fromFilter) {\n return (m.from_alias || '').toLowerCase().includes(fromFilter);\n }\n if (query) {\n return (m.from_alias || '').toLowerCase().includes(query)\n || (m.to_alias || '').toLowerCase().includes(query)\n || (m.content || '').toLowerCase().includes(query);\n }\n return true;\n })\n .sort((a: MessageItem, b: MessageItem) => normalizeDate(a.created_at) - normalizeDate(b.created_at));\n }, [filterType, messages, search]);\n\n // Group messages by conversation pair\n const conversations = useMemo(() => {\n const groups = new Map<string, { participants: string[]; messages: MessageItem[]; lastTime: number }>();\n filtered.forEach(m => {\n const a = m.from_alias || '?';\n const b = m.to_alias || '?';\n const key = [a, b].sort().join('↔');\n const group = groups.get(key) || { participants: [a, b].sort(), messages: [] as MessageItem[], lastTime: 0 };\n group.messages.push(m);\n group.lastTime = Math.max(group.lastTime, normalizeDate(m.created_at));\n groups.set(key, group);\n });\n return [...groups.values()].sort((a, b) => b.lastTime - a.lastTime);\n }, [filtered]);\n\n return (\n <div className=\"min-h-screen bg-[#0b0b0d] text-gray-100 p-4 sm:p-6\">\n {/* #209 R31 (mobile vertical rhythm — same pattern as R28/R30):\n header row + quick-from chips row both mb-6 → mb-4 sm:mb-6.\n #209 R33: header restructured to mirror /nodes R32 — title\n cluster left (Messages + count chip + Export MD), magnifier\n circle right. Inline ~290 px search input was moved into the\n collapsible row below. */}\n <div className=\"flex items-center gap-4 mb-4 sm:mb-6\">\n <div className=\"flex items-center gap-3 min-w-0 flex-1\">\n <h1 className=\"text-2xl font-bold text-white lg:ml-0 ml-10\">Messages</h1>\n {/* Round 89: filter-aware chip. When search/type filter is active\n the visible rows are filtered.length; the total loaded is\n messages.length (capped at 200 by useMessages). Show\n `filtered / total` so users notice how much the filter is\n hiding. Same pattern as r88 /tasks chip. */}\n <span\n className=\"text-xs bg-blue-900/30 text-blue-400 px-2 py-0.5 rounded-full border border-blue-800/30 tabular-nums shrink-0\"\n title={filtered.length < messages.length ? `Showing ${filtered.length} of ${messages.length} messages` : undefined}\n >\n {filtered.length < messages.length ? `${filtered.length} / ${messages.length}` : messages.length}\n </span>\n {filtered.length > 0 && (\n <button\n onClick={() => {\n const md = filtered.map((m: MessageItem) =>\n `**${m.from_alias || '?'}** → ${m.to_alias || '?'} (${m.type || '?'}) — ${m.created_at || ''}\\n\\n${m.content || '--'}\\n\\n---`\n ).join('\\n\\n');\n const blob = new Blob([`# Messages Export\\n\\n${md}`], { type: 'text/markdown' });\n const url = URL.createObjectURL(blob);\n const a = document.createElement('a');\n a.href = url; a.download = `messages-${new Date().toISOString().slice(0,10)}.md`;\n a.click(); URL.revokeObjectURL(url);\n }}\n className=\"text-xs text-gray-500 hover:text-gray-300 border border-gray-700/50 px-2.5 py-1 rounded-lg transition-colors shrink-0\"\n >\n Export MD\n </button>\n )}\n </div>\n <searchCtl.Button />\n </div>\n\n {/* #209 R34: shared <CollapsibleSearch> component. enabled gate\n handles the no-content case (button + row both hide). */}\n <searchCtl.Row />\n\n {/* Round 76: hide search + type filter + view toggle + Debug button\n when there are no messages at all. Same r70-class fix carried\n across /nodes (r74) and /tasks (r75). When at least one message\n exists, the chrome reappears so users can still clear filters. */}\n {messages.length > 0 && (\n <div className=\"flex flex-wrap gap-3 mb-3\">\n {/* R33: inline search input moved to the top-right magnifier\n toggle above. Type select + view-mode toggle + Debug stay. */}\n <select\n value={filterType}\n onChange={e => setFilterType(e.target.value)}\n className=\"bg-[#161618] border border-[#26262b] rounded-lg px-3 py-2 text-base sm:text-sm text-white focus:border-blue-500/50 focus:outline-none\"\n >\n <option value=\"\">All types</option>\n <option value=\"task\">task</option>\n <option value=\"message\">message</option>\n <option value=\"broadcast\">broadcast</option>\n <option value=\"reply\">reply</option>\n </select>\n <div className=\"flex rounded-lg border border-[#26262b] bg-[#161618] p-0.5\">\n {(['timeline', 'grouped'] as const).map(mode => (\n <button key={mode} type=\"button\" onClick={() => setViewMode(mode)}\n className={`rounded-md px-2.5 py-1.5 text-xs transition-colors ${viewMode === mode ? 'bg-cyan-500/10 text-cyan-300' : 'text-gray-500 hover:text-gray-200'}`}>\n {mode === 'timeline' ? 'Timeline' : 'Grouped'}\n </button>\n ))}\n </div>\n <button\n onClick={() => setDebug(!debug)}\n className={`text-xs px-3 py-2 rounded-lg border transition-colors ${\n debug ? 'bg-yellow-500/10 text-yellow-300 border-yellow-500/20' : 'text-gray-500 border-gray-700/50 hover:text-gray-300'\n }`}\n >\n {debug ? 'Debug ON' : 'Debug'}\n </button>\n </div>\n )}\n\n {/* #217 S8 (less is more): on phones the sender chips wrapped into\n ~5 rows and pushed the first message below the fold. One\n scrollable row on mobile; wrap returns from sm: up. */}\n {quickFromChips.length > 0 && (\n <div className=\"mb-4 sm:mb-6 flex gap-2 overflow-x-auto whitespace-nowrap pb-1 scrollbar-thin sm:flex-wrap sm:overflow-visible sm:whitespace-normal sm:pb-0\">\n {quickFromChips.map(alias => (\n <button\n key={alias}\n type=\"button\"\n onClick={() => setSearch(`from:${alias}`)}\n className={`shrink-0 rounded-full border px-3 py-1 text-xs transition-colors ${\n search === `from:${alias}`\n ? 'border-cyan-500/30 bg-cyan-500/10 text-cyan-300'\n : 'border-[#26262b] bg-[#161618] text-gray-400 hover:text-gray-200'\n }`}\n >\n from:{alias}\n </button>\n ))}\n {search.startsWith('from:') && (\n <button\n type=\"button\"\n onClick={() => setSearch('')}\n className=\"shrink-0 rounded-full border border-gray-700 px-3 py-1 text-xs text-gray-500 hover:text-gray-200\"\n >\n Clear\n </button>\n )}\n </div>\n )}\n\n {isLoading ? (\n <div className=\"animate-pulse space-y-3\">\n {[1, 2, 3, 4, 5].map(i => <div key={i} className=\"h-20 rounded-2xl bg-gray-800/20\" />)}\n </div>\n ) : filtered.length === 0 ? (\n <EmptyState variant=\"messages\" />\n ) : viewMode === 'grouped' ? (\n <div className=\"space-y-4\">\n {conversations.map((conv, ci) => (\n <div key={ci} className=\"bg-[#161618] border border-[#26262b] rounded-xl overflow-hidden\">\n <div className=\"px-4 py-2.5 border-b border-[#26262b] flex items-center justify-between\">\n <div className=\"flex items-center gap-2\">\n <AliasAvatar alias={conv.participants[0]} size={16} />\n <span className=\"text-sm text-gray-200 font-medium\">{conv.participants[0]}</span>\n <span className=\"text-gray-600 text-xs\">↔</span>\n <AliasAvatar alias={conv.participants[1]} size={16} />\n <span className=\"text-sm text-gray-200 font-medium\">{conv.participants[1]}</span>\n </div>\n <span className=\"text-[10px] text-gray-600\">{conv.messages.length} messages</span>\n </div>\n <div className=\"px-4 py-2 space-y-2 max-h-64 overflow-y-auto\">\n {conv.messages.map(m => (\n <div key={m.id} className=\"flex items-start gap-2 text-xs py-1\">\n {m.from_alias && <AliasAvatar alias={m.from_alias} size={14} />}\n <span className=\"shrink-0 font-medium text-gray-200\">{m.from_alias}</span>\n <span className=\"text-gray-400 flex-1 truncate\" title={m.content || ''}>{previewContent(m.content).slice(0, 120)}</span>\n <span className=\"text-[9px] text-gray-600 shrink-0\">{timeAgo(m.created_at || '')}</span>\n </div>\n ))}\n </div>\n </div>\n ))}\n </div>\n ) : (\n <div className=\"space-y-1\">\n {filtered.map((message: MessageItem, index) => {\n const previous = filtered[index - 1];\n const gapExceeded = previous\n ? normalizeDate(message.created_at) - normalizeDate(previous.created_at) > 5 * 60 * 1000\n : false;\n const variant = bubbleVariant(message);\n // Cluster: same sender + same direction + same to_alias and no\n // time-gap divider → tighter spacing and hide repeated header.\n const samePrev = !!previous\n && !gapExceeded\n && bubbleVariant(previous) === variant\n && (previous.from_alias || '') === (message.from_alias || '')\n && (previous.to_alias || '') === (message.to_alias || '');\n const fromAlias = message.from_alias || '?';\n\n return (\n <div key={message.id}>\n {/* R6 of #190 mobile polish: gap divider was my-4 (=16px\n each side), and with multi-hour message lulls it\n fired several times per session, eating ~32px each.\n Halve it on mobile. */}\n {gapExceeded && (\n <div className=\"my-2 sm:my-4 flex items-center gap-3\">\n <div className=\"h-px flex-1 bg-[#26262b]\" />\n <div className=\"text-[11px] text-gray-600\">{formatDividerLabel(message.created_at)}</div>\n <div className=\"h-px flex-1 bg-[#26262b]\" />\n </div>\n )}\n\n {/* Broadcasts span full width — no avatar gutter. R6 mobile:\n tighter padding + tighter header margin + snug leading\n on the content so each bubble is ~25-30% shorter at\n 390px. Desktop unchanged from sm: up. */}\n {variant === 'broadcast' ? (\n <div className={samePrev ? 'mt-0.5 sm:mt-1' : 'mt-2 sm:mt-3'}>\n <div className=\"rounded-2xl border border-purple-500/20 bg-purple-500/10 px-3 py-2 sm:px-4 sm:py-3 shadow-sm w-full\">\n <div className=\"mb-1 sm:mb-2 flex flex-wrap items-center gap-2\">\n <span className={`text-xs px-2 py-0.5 rounded-md border ${TYPE_COLORS[message.type || ''] || 'bg-gray-500/10 text-gray-400 border-gray-500/20'}`}>\n {message.type || 'unknown'}\n </span>\n <span className=\"text-sm font-medium text-purple-200\">{fromAlias}</span>\n {message.to_alias && <span className=\"text-xs text-purple-200/80\">to {message.to_alias}</span>}\n {message.priority === 'high' && <span className=\"text-xs text-red-400\">HIGH</span>}\n <span className=\"ml-auto text-xs text-gray-500\">{message.created_at ? timeAgo(message.created_at) : '--'}</span>\n </div>\n {/* Round 79: break-words + overflow-wrap:anywhere so\n long unbroken runs (URLs, ASCII rules like\n `═══════════════`) wrap instead of pushing the\n chat bubble past the mobile viewport. */}\n <div className=\"whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-sm leading-snug sm:leading-relaxed text-gray-200\">\n {renderHighlighted(message.content, search)}\n </div>\n </div>\n </div>\n ) : (\n <div className={`${samePrev ? 'mt-0.5 sm:mt-1' : 'mt-2 sm:mt-3'} flex gap-2 ${variant === 'outgoing' ? 'flex-row-reverse' : 'flex-row'}`}>\n {/* Avatar gutter — fixed width keeps bubble columns aligned even on streaks */}\n <div className=\"w-8 shrink-0 pt-1\">\n {!samePrev && <AliasAvatar alias={fromAlias} size={32} />}\n </div>\n <div className={`min-w-0 max-w-3xl rounded-2xl border px-3 py-2 sm:px-4 sm:py-3 shadow-sm ${\n variant === 'outgoing'\n ? 'border-green-500/20 bg-green-500/10'\n : 'border-blue-500/20 bg-blue-500/10'\n }`}>\n {!samePrev && (\n <div className=\"mb-1 sm:mb-2 flex flex-wrap items-center gap-2\">\n <span className={`text-xs px-2 py-0.5 rounded-md border ${TYPE_COLORS[message.type || ''] || 'bg-gray-500/10 text-gray-400 border-gray-500/20'}`}>\n {message.type || 'unknown'}\n </span>\n <span className={`text-sm font-medium ${variant === 'outgoing' ? 'text-green-300' : 'text-blue-300'}`}>\n {fromAlias}\n </span>\n <span className=\"text-xs text-gray-600\">&rarr;</span>\n <span className=\"text-sm text-gray-300\">{message.to_alias || '--'}</span>\n {message.priority === 'high' && <span className=\"text-xs text-red-400\">HIGH</span>}\n <span className=\"ml-auto text-xs text-gray-500\">{message.created_at ? timeAgo(message.created_at) : '--'}</span>\n </div>\n )}\n\n {/* Round 79: break-words + overflow-wrap:anywhere so\n long unbroken runs (URLs, ASCII rules like\n `═══════════════`) wrap instead of pushing the\n chat bubble past the mobile viewport. */}\n <div className=\"whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-sm leading-snug sm:leading-relaxed text-gray-200\">\n {renderHighlighted(message.content, search)}\n </div>\n\n {/* When in a streak, surface the timestamp inline-right so users still know cadence */}\n {samePrev && (\n <div className=\"mt-1 text-[10px] text-gray-600 text-right\">\n {message.created_at ? timeAgo(message.created_at) : ''}\n </div>\n )}\n\n {debug && (\n <div className=\"mt-3 border-t border-white/10 pt-3 text-xs text-gray-500 space-y-1\">\n <div>ID: {message.id}</div>\n {message.task_id && <div>Task ID: {message.task_id}</div>}\n <div>Created: {message.created_at}</div>\n </div>\n )}\n </div>\n </div>\n )}\n </div>\n );\n })}\n </div>\n )}\n </div>\n );\n}\n"],"names":["previewContent","raw","replace","trim","timeAgo","dateStr","statusColor","status","hasSse","formatUptime","seconds","h","Math","floor","m","AVATAR_HUES","aliasAvatarColors","alias","i","length","charCodeAt","hue","bg","ring","text","aliasInitial","ch","match","toUpperCase","isGrokAlias","test","AliasAvatar","size","className","style","width","height","backgroundImage","backgroundPosition","backgroundRepeat","backgroundSize","title","c","fs","max","round","fontSize","backgroundColor","borderColor","color","DEFAULTS","nodes","sub","tasks","messages","logs","tokens","networks","generic","Glyph","variant","s","baseProps","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin","viewBox","cx","cy","r","x1","y1","x2","y2","strokeDasharray","opacity","x","y","rx","d","ry","EmptyState","cta","compact","headline","subcopy","iconSize","role","href","label","onClick","EmptyCard","children","NodesEmptyState","hint","taskHistoryCount","global_count","toLocaleString","QuickstartCommand","cmd","target","rel","copied","setCopied","onCopy","navigator","clipboard","writeText","setTimeout","type","fetcher","url","res","fetch","window","location","assign","Error","json","SWR_OPTIONS","refreshInterval","dedupingInterval","withNetwork","networkId","sep","includes","encodeURIComponent","useSessions","data","error","isLoading","sessions","_hint","useHealth","health","useAnetConfig","config","useTasks","params","query","URLSearchParams","limit","toString","count","source","useStats","stats","ok","useMessages","useNodeSession","session","inbox","sse","useCollapsibleSearch","value","onChange","placeholder","enabled","open","setOpen","reset","Button","active","v","toLowerCase","Row","e","onKeyDown","key","autoFocus","TYPE_COLORS","task","message","broadcast","reply","normalizeDate","Date","getTime","formatDividerLabel","date","bubbleVariant","from_alias","renderHighlighted","content","search","q","startsWith","idx","indexOf","slice","MessagesPage","filterType","setFilterType","setSearch","debug","setDebug","viewMode","setViewMode","searchCtl","quickFromChips","aliases","Set","forEach","add","filtered","fromFilter","filter","to_alias","sort","a","b","created_at","conversations","groups","Map","join","group","get","participants","lastTime","push","set","values","undefined","md","map","blob","Blob","URL","createObjectURL","document","createElement","download","toISOString","click","revokeObjectURL","mode","conv","ci","id","index","previous","gapExceeded","samePrev","fromAlias","priority","task_id"],"mappings":"uCAmBA,IAAA,EAAA,EAAA,CAAA,CAAA,+BAhBO,SAAwBC,AAAfD,CAA6C,SAC3D,AAAKC,GACEA,CADH,CAAM,AAEPC,OAFc,AAEP,CAAC,0BAA2B,MAAQ,AAC3CA,OAAO,CAAC,oBAD+D,KACrC,MAAS,AAC3CA,OAAO,CAAC,aAAc,MAAqB,AAC3CA,GAFyE,IAElE,CAAC,OAAQ,KAA2B,AAC3CC,GAFkE,CAE9D,IAAM,IACf,UAFsE,IAW/D,SAASC,AAAQC,CAAe,EACrC,MAAO,CAAA,EAAA,EAAA,WAAA,AAAW,EAACA,IAAY,IACjC,4CCjBA,IAAMU,EAAc,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAI,GAAG,CAEnD,SAASC,EAAkBC,CAAa,EAC7C,IAAIN,EAAI,EACR,IAAK,IAAIO,EAAI,EAAGA,EAAID,EAAME,MAAM,CAAED,IAAKP,EAAS,GAAJA,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BV,EAAQW,OAAO,CAAEC,KAIrC2D,GACC,CAAA,EAAA,EAAA,GAAA,EAAC,MAAA,CAAIpN,UAAU,qDACZ6I,EAAQuC,UAAU,CAAG,CAAA,EAAA,EAAA,OAAA,AAAO,EAACvC,EAAQuC,UAAU,EAAI,KAIvDjB,GACC,CAAA,EAAA,EAAA,IAAA,EAAC,MAAA,CAAInK,UAAU,+EACb,CAAA,EAAA,EAAA,IAAA,EAAC,MAAA,WAAI,OAAK6I,EAAQmE,EAAE,IACnBnE,EAAQ0E,OAAO,EAAI,CAAA,EAAA,EAAA,IAAA,EAAC,MAAA,WAAI,YAAU1E,EAAQ0E,OAAO,IAClD,CAAA,EAAA,EAAA,IAAA,EAAC,MAAA,WAAI,YAAU1E,EAAQuC,UAAU,eAnFnCvC,EAAQmE,EAAE,CA2FxB,OAKV"}
1
+ {"version":3,"sources":["../../../../../agent-network-dashboard/app/components/utils.ts","../../../../../agent-network-dashboard/app/components/AliasAvatar.tsx","../../../../../agent-network-dashboard/app/components/EmptyState.tsx","../../../../../agent-network-dashboard/app/lib/hooks.ts","../../../../../agent-network-dashboard/app/components/CollapsibleSearch.tsx","../../../../../agent-network-dashboard/app/messages/page.tsx"],"sourcesContent":["/** Round 82: strip the most common markdown markup from agent-to-agent\n * task / message bodies so single-line table previews read cleanly.\n * Full original content stays in the expanded row / drawer / title=. */\nexport function previewContent(raw: string | null | undefined): string {\n if (!raw) return '--';\n return raw\n .replace(/!\\[([^\\]]*)\\]\\([^)]*\\)/g, '$1') // images: ![alt](src) → alt\n .replace(/\\[([^\\]]+)\\]\\([^)]*\\)/g, '$1') // links: [text](href) → text\n .replace(/`([^`]+)`/g, '$1') // inline code: `x` → x\n .replace(/\\s+/g, ' ') // collapse whitespace\n .trim() || '--';\n}\n\n// Round 44 / Loop: timeAgo now delegates to the shared lib/time helper.\n// The old in-line `replace + 'Z'` parse appended a Z to already-ISO\n// inputs (producing \"…ZZ\", browser-fragile) — strict-superset semantics\n// preserved for SQL-style inputs, fixed for ISO. Plus a 'just now' fallback\n// when clock skew puts the timestamp in the future. Five callers benefit:\n// /admin · /logs · /settings/networks · InboxPanel · /messages.\nimport { relativeAgo } from '../lib/time';\nexport function timeAgo(dateStr: string): string {\n return relativeAgo(dateStr) ?? '--';\n}\n\nexport function statusColor(status: string, hasSse: boolean): string {\n if (hasSse && status === 'working') return 'bg-green-500';\n if (hasSse && status === 'idle') return 'bg-emerald-400';\n if (hasSse) return 'bg-blue-400';\n if (status === 'offline') return 'bg-gray-500';\n return 'bg-yellow-400';\n}\n\nexport function formatUptime(seconds: number): string {\n const h = Math.floor(seconds / 3600);\n const m = Math.floor((seconds % 3600) / 60);\n if (h > 0) return `${h}h ${m}m`;\n return `${m}m`;\n}\n","/** Hue-hashed avatar pill for agent aliases. Same alias → same color across\n * every page (Messages, Nodes, TopoGraph). Use the `size` prop for inline\n * pills (16/20) vs card headers (28). Round 21 introduced the palette;\n * round 22 promotes it from app/messages to a shared component. */\n\nconst AVATAR_HUES = [180, 200, 220, 270, 300, 330, 30, 90];\n\nexport function aliasAvatarColors(alias: string): { bg: string; ring: string; text: string } {\n let h = 0;\n for (let i = 0; i < alias.length; i++) h = (h * 31 + alias.charCodeAt(i)) >>> 0;\n const hue = AVATAR_HUES[h % AVATAR_HUES.length];\n return {\n bg: `hsl(${hue} 55% 22%)`,\n ring: `hsl(${hue} 60% 45%)`,\n text: `hsl(${hue} 80% 78%)`,\n };\n}\n\nexport function aliasInitial(alias?: string): string {\n if (!alias) return '·';\n const ch = alias.trim().match(/[\\p{L}\\p{N}]/u)?.[0] || alias.trim()[0] || '·';\n return ch.toUpperCase();\n}\n\nfunction isGrokAlias(alias: string) {\n return /\\bgrok\\b|grok-build|grok测试员|grok-demo/i.test(alias);\n}\n\ninterface AliasAvatarProps {\n alias: string;\n size?: number;\n className?: string;\n}\n\nexport function AliasAvatar({ alias, size = 28, className = '' }: AliasAvatarProps) {\n if (isGrokAlias(alias)) {\n return (\n <span\n className={`anet-alias-avatar inline-flex items-center justify-center rounded-full border border-emerald-500/45 bg-emerald-950/70 shrink-0 ${className}`}\n style={{\n width: size,\n height: size,\n backgroundImage: 'url(/vendors/grok.svg)',\n backgroundPosition: 'center',\n backgroundRepeat: 'no-repeat',\n backgroundSize: '68% 68%',\n }}\n title={alias}\n aria-hidden\n />\n );\n }\n\n const c = aliasAvatarColors(alias);\n const fs = Math.max(9, Math.round(size * 0.42));\n return (\n <span\n className={`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${className}`}\n style={{\n width: size,\n height: size,\n fontSize: fs,\n backgroundColor: c.bg,\n borderColor: c.ring,\n color: c.text,\n }}\n title={alias}\n aria-hidden\n >\n {aliasInitial(alias)}\n </span>\n );\n}\n","'use client';\n\nimport { useState } from 'react';\nimport Link from 'next/link';\n\nexport type EmptyVariant = 'nodes' | 'tasks' | 'messages' | 'logs' | 'tokens' | 'networks' | 'generic';\n\ninterface EmptyStateProps {\n /** Picks the icon glyph and default copy if title/sub omitted. */\n variant?: EmptyVariant;\n /** Optional override headline. */\n title?: string;\n /** Optional override sub-copy. */\n sub?: string;\n /** Optional CTA: text + href (internal) or onClick. */\n cta?: { label: string; href?: string; onClick?: () => void };\n /** Compact mode for in-card empty states (smaller padding). */\n compact?: boolean;\n}\n\nconst DEFAULTS: Record<EmptyVariant, { title: string; sub: string }> = {\n nodes: { title: 'No agents in this network', sub: 'Agent sessions will appear here once they connect to the CommHub.' },\n tasks: { title: 'No tasks yet', sub: 'Tasks will appear here when agents send them via CommHub.' },\n messages: { title: 'No messages', sub: 'Messages between agents will appear here.' },\n logs: { title: 'No audit logs', sub: 'Events will appear here when users register, login, or perform actions.' },\n tokens: { title: 'No API tokens', sub: 'Create one to authenticate CLI tools and external integrations.' },\n networks: { title: 'No networks found', sub: 'Create one or sign in with V3 auth to see your networks.' },\n generic: { title: 'Nothing here yet', sub: 'Data will appear here once available.' },\n};\n\n/**\n * Minimal monochrome SVG glyphs per variant. No filled shapes, no gradients,\n * no AI-decoration — just thin-stroke line art that fades into the page.\n * 64×64 viewBox; rendered at 56×56 (compact 40×40).\n */\nfunction Glyph({ variant, size }: { variant: EmptyVariant; size: number }) {\n const s = { width: size, height: size };\n const baseProps = {\n fill: 'none',\n stroke: 'currentColor',\n strokeWidth: 1.25,\n strokeLinecap: 'round' as const,\n strokeLinejoin: 'round' as const,\n };\n\n switch (variant) {\n case 'nodes':\n // Mesh with dashed edges = \"nodes will land here\"\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <circle cx=\"32\" cy=\"14\" r=\"4\" />\n <circle cx=\"14\" cy=\"44\" r=\"4\" />\n <circle cx=\"50\" cy=\"44\" r=\"4\" />\n <line x1=\"32\" y1=\"18\" x2=\"14\" y2=\"40\" strokeDasharray=\"3 3\" opacity=\"0.6\" />\n <line x1=\"32\" y1=\"18\" x2=\"50\" y2=\"40\" strokeDasharray=\"3 3\" opacity=\"0.6\" />\n <line x1=\"18\" y1=\"44\" x2=\"46\" y2=\"44\" strokeDasharray=\"3 3\" opacity=\"0.6\" />\n </g>\n </svg>\n );\n case 'tasks':\n // Empty checkbox list\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <rect x=\"14\" y=\"14\" width=\"36\" height=\"6\" rx=\"1.5\" />\n <rect x=\"14\" y=\"26\" width=\"36\" height=\"6\" rx=\"1.5\" opacity=\"0.6\" />\n <rect x=\"14\" y=\"38\" width=\"36\" height=\"6\" rx=\"1.5\" opacity=\"0.35\" />\n </g>\n </svg>\n );\n case 'messages':\n // Speech bubble outline\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <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\" />\n <line x1=\"22\" y1=\"28\" x2=\"42\" y2=\"28\" opacity=\"0.5\" />\n <line x1=\"22\" y1=\"34\" x2=\"36\" y2=\"34\" opacity=\"0.5\" />\n </g>\n </svg>\n );\n case 'logs':\n // Document with lines\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <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\" />\n <path d=\"M40 12 v8 h8\" opacity=\"0.6\" />\n <line x1=\"24\" y1=\"32\" x2=\"40\" y2=\"32\" opacity=\"0.55\" />\n <line x1=\"24\" y1=\"38\" x2=\"40\" y2=\"38\" opacity=\"0.4\" />\n <line x1=\"24\" y1=\"44\" x2=\"34\" y2=\"44\" opacity=\"0.25\" />\n </g>\n </svg>\n );\n case 'tokens':\n // Key outline\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <circle cx=\"22\" cy=\"32\" r=\"8\" />\n <line x1=\"30\" y1=\"32\" x2=\"54\" y2=\"32\" />\n <line x1=\"44\" y1=\"32\" x2=\"44\" y2=\"38\" />\n <line x1=\"50\" y1=\"32\" x2=\"50\" y2=\"40\" />\n </g>\n </svg>\n );\n case 'networks':\n // Globe-ish concentric ovals\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <circle cx=\"32\" cy=\"32\" r=\"18\" />\n <ellipse cx=\"32\" cy=\"32\" rx=\"18\" ry=\"9\" opacity=\"0.55\" />\n <line x1=\"14\" y1=\"32\" x2=\"50\" y2=\"32\" opacity=\"0.55\" />\n <line x1=\"32\" y1=\"14\" x2=\"32\" y2=\"50\" opacity=\"0.55\" />\n </g>\n </svg>\n );\n case 'generic':\n default:\n // Soft sparkle outline\n return (\n <svg viewBox=\"0 0 64 64\" {...s}>\n <g {...baseProps}>\n <circle cx=\"32\" cy=\"32\" r=\"14\" strokeDasharray=\"3 3\" opacity=\"0.6\" />\n <circle cx=\"32\" cy=\"32\" r=\"3\" />\n </g>\n </svg>\n );\n }\n}\n\nexport function EmptyState({ variant = 'generic', title, sub, cta, compact = false }: EmptyStateProps) {\n const d = DEFAULTS[variant];\n const headline = title ?? d.title;\n const subcopy = sub ?? d.sub;\n const iconSize = compact ? 40 : 56;\n\n return (\n <div className={`text-center ${compact ? 'py-8' : 'py-16'} px-4`} role=\"status\">\n <div className=\"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500\" aria-hidden>\n <Glyph variant={variant} size={iconSize} />\n </div>\n <h3 className={`font-medium text-gray-300 ${compact ? 'text-sm' : 'text-base'}`}>{headline}</h3>\n {subcopy && (\n <p className={`text-gray-500 ${compact ? 'text-xs mt-1.5' : 'text-sm mt-2'} max-w-md mx-auto leading-relaxed`}>\n {subcopy}\n </p>\n )}\n {cta && (\n <div className=\"mt-4\">\n {cta.href ? (\n <Link href={cta.href} className=\"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300\">\n {cta.label}\n <span aria-hidden>→</span>\n </Link>\n ) : (\n <button onClick={cta.onClick} className=\"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300\">\n {cta.label}\n <span aria-hidden>→</span>\n </button>\n )}\n </div>\n )}\n </div>\n );\n}\n\n/** Round 105 (issue #90): centered card shell so the Overview empty state\n * reads as an intentional, layout-aligned card instead of bare text\n * floating in the content column. */\nfunction EmptyCard({ children }: { children: React.ReactNode }) {\n return (\n <div className=\"max-w-2xl mx-auto rounded-xl border border-[#26262b] bg-[#161618] shadow-lg shadow-black/20\">\n {children}\n </div>\n );\n}\n\n/**\n * Overview-specific variant. Three cases:\n * 1. network-mismatch — agents exist globally, none in this network\n * 2. agents-offline — 0 registered now BUT task history exists, so this\n * is NOT a first run (round 105 / issue #90: showing \"Spin up your\n * first agent\" next to \"acked: 499\" was misleading)\n * 3. true first-run — 0 agents, 0 history → quickstart command\n */\nexport function NodesEmptyState({\n hint,\n taskHistoryCount = 0,\n}: {\n hint?: { global_count?: number; filtered_network?: string };\n taskHistoryCount?: number;\n}) {\n if (hint?.global_count) {\n return (\n <EmptyCard>\n <EmptyState\n variant=\"nodes\"\n title=\"No agents in this network\"\n sub={`Server has ${hint.global_count} nodes globally, but none are registered to the current network. Switch network or contact admin.`}\n />\n </EmptyCard>\n );\n }\n\n // Round 105 (issue #90): there's task history but no agents online right\n // now — they finished or disconnected. Don't pitch a first-run setup;\n // point at the history instead.\n if (taskHistoryCount > 0) {\n return (\n <EmptyCard>\n <EmptyState\n variant=\"nodes\"\n title=\"No agents online\"\n sub={`Every agent in this network is currently offline. ${taskHistoryCount.toLocaleString()} task${taskHistoryCount === 1 ? '' : 's'} in history — they may have finished their work or disconnected.`}\n cta={{ label: 'View task history', href: '/tasks' }}\n />\n </EmptyCard>\n );\n }\n\n // Round 52: true empty state (zero agents anywhere) — show the\n // quickstart command inline so users don't have to leave the dashboard\n // to figure out how to spin up their first agent.\n return (\n <EmptyCard>\n <div className=\"text-center py-16 px-4\" role=\"status\">\n <div className=\"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500\" aria-hidden>\n <svg viewBox=\"0 0 64 64\" width={56} height={56}>\n <g stroke=\"currentColor\" strokeWidth=\"1.5\" fill=\"none\">\n <rect x=\"10\" y=\"20\" width=\"44\" height=\"28\" rx=\"2\" />\n <rect x=\"20\" y=\"32\" width=\"6\" height=\"8\" opacity=\"0.5\" />\n <rect x=\"32\" y=\"32\" width=\"6\" height=\"8\" opacity=\"0.5\" />\n <rect x=\"44\" y=\"32\" width=\"4\" height=\"8\" opacity=\"0.5\" />\n <line x1=\"10\" y1=\"26\" x2=\"54\" y2=\"26\" opacity=\"0.4\" />\n <circle cx=\"14\" cy=\"23\" r=\"0.8\" fill=\"currentColor\" />\n </g>\n </svg>\n </div>\n <h3 className=\"font-medium text-gray-300 text-base\">Spin up your first agent</h3>\n <p className=\"text-gray-500 text-sm mt-2 max-w-md mx-auto leading-relaxed\">\n Run this in a fresh terminal to register an agent with this CommHub:\n </p>\n <div className=\"mt-4 inline-block\">\n <QuickstartCommand cmd=\"npx --yes @sleep2agi/agent-network init\" />\n </div>\n {/* #214 F6: expectation management — without this line, users\n copy the command and stare at an empty screen not knowing\n what to wait for. The page polls every 5s, so the node\n really does appear by itself. */}\n <p className=\"text-gray-600 text-xs mt-3 max-w-md mx-auto\">\n Once the agent connects, it appears here automatically within a\n few seconds — no refresh needed.\n </p>\n <div className=\"mt-3\">\n <a\n href=\"https://anet.sh\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-xs font-medium text-gray-500 hover:text-cyan-300\"\n >\n Full quickstart guide\n <span aria-hidden>→</span>\n </a>\n </div>\n </div>\n </EmptyCard>\n );\n}\n\n/** Code block + inline copy button used by the empty-Overview first-run\n * CTA. State lives here so the parent stays stateless. */\nfunction QuickstartCommand({ cmd }: { cmd: string }) {\n const [copied, setCopied] = useState(false);\n const onCopy = async () => {\n try {\n await navigator.clipboard.writeText(cmd);\n setCopied(true);\n setTimeout(() => setCopied(false), 1800);\n } catch {}\n };\n return (\n <div className=\"anet-empty-cmd flex items-start sm:items-center gap-2 bg-[#0e0e10] border border-[#26262b] rounded-lg pl-4 pr-1.5 py-1.5 text-xs sm:text-sm\">\n {/* #209 R44: long quickstart commands (e.g. the `npm install -g …`\n variant) overflowed the empty-state card horizontally on phones\n because <code> defaults to white-space:pre. break-all on mobile\n lets them wrap inside the box; sm: up restores normal wrapping\n so desktop monospace lines stay clean. items-start on phones\n aligns the Copy button to the top so a wrapped 2-line command\n doesn't bottom-anchor the button. */}\n <code className=\"text-cyan-300 font-mono select-all min-w-0 break-all sm:break-normal\">{cmd}</code>\n <button\n type=\"button\"\n onClick={onCopy}\n aria-label={copied ? 'Copied' : 'Copy command'}\n className=\"shrink-0 rounded-md px-2 py-1.5 text-[11px] text-gray-500 hover:text-gray-200 hover:bg-[#1c1c1f] transition-colors\"\n >\n {copied ? (\n <span className=\"flex items-center gap-1 text-green-400\">\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n Copied\n </span>\n ) : (\n <span className=\"flex items-center gap-1\">\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n <rect x=\"9\" y=\"9\" width=\"13\" height=\"13\" rx=\"2\" ry=\"2\" />\n <path d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\" />\n </svg>\n Copy\n </span>\n )}\n </button>\n </div>\n );\n}\n","import useSWR from 'swr';\nimport { Session, Health, AnetConfig } from '../components/types';\nimport { useNetworkId } from './network-context';\n\nconst fetcher = async (url: string) => {\n const res = await fetch(url);\n if (res.status === 401) {\n window.location.assign('/login');\n throw new Error('unauthorized');\n }\n return res.json();\n};\n\nconst SWR_OPTIONS = { refreshInterval: 5000, dedupingInterval: 3000 };\n\n/** Append network_id to URL if set */\nfunction withNetwork(url: string, networkId: string): string {\n if (!networkId) return url;\n const sep = url.includes('?') ? '&' : '?';\n return `${url}${sep}network_id=${encodeURIComponent(networkId)}`;\n}\n\nexport function useSessions() {\n const { networkId } = useNetworkId();\n const { data, error, isLoading } = useSWR<{ sessions: Session[]; _hint?: { global_count?: number; filtered_network?: string } }>(\n withNetwork('/api/hub/status', networkId),\n fetcher,\n SWR_OPTIONS,\n );\n return { sessions: data?.sessions || [], hint: data?._hint, error, isLoading };\n}\n\nexport function useHealth() {\n const { data, error } = useSWR<Health>('/api/hub/health', fetcher, SWR_OPTIONS);\n return { health: data || null, error };\n}\n\nexport function useAnetConfig() {\n const { data } = useSWR<AnetConfig>('/api/anet/config', fetcher, { refreshInterval: 30000 });\n return { config: data || null };\n}\n\nexport function useTasks(params?: Record<string, string>) {\n const { networkId } = useNetworkId();\n const query = new URLSearchParams({ limit: '100', ...params }).toString();\n const { data, error, isLoading } = useSWR(\n withNetwork(`/api/hub/tasks?${query}`, networkId),\n fetcher,\n SWR_OPTIONS,\n );\n return {\n tasks: data?.tasks || [],\n count: data?.count ?? 0,\n source: data?.source,\n error,\n isLoading,\n };\n}\n\nexport function useStats() {\n const { networkId } = useNetworkId();\n const { data, error } = useSWR(withNetwork('/api/hub/stats', networkId), fetcher, SWR_OPTIONS);\n return { stats: data?.ok ? data : null, error };\n}\n\nexport function useMessages(limit = 100) {\n const { networkId } = useNetworkId();\n // keepPreviousData: /messages grows `limit` when the user asks for older\n // history (#217 M5) — without it the key change would blank the list and\n // flash the skeleton while the bigger page is in flight.\n const { data, error, isLoading } = useSWR(\n withNetwork(`/api/hub/messages?limit=${limit}`, networkId),\n fetcher,\n { ...SWR_OPTIONS, keepPreviousData: true },\n );\n return { messages: data?.messages || [], error, isLoading };\n}\n\nexport function useNodeSession(alias: string) {\n const { data, error, isLoading } = useSWR(\n alias ? `/api/hub/session?alias=${encodeURIComponent(alias)}` : null,\n fetcher,\n SWR_OPTIONS,\n );\n return {\n session: data?.session || null,\n inbox: data?.inbox || [],\n sse: data?.sse || 0,\n error,\n isLoading,\n };\n}\n","'use client';\n\n/**\n * CollapsibleSearch\n * ──────────────────\n * #209 R34 — Reusable WeChat-style search-toggle pattern.\n *\n * Two pieces of UI from one component:\n * 1. A magnifier button (`w-9 h-9 rounded-full`) that lives in a page\n * header — render it via `Button`.\n * 2. A collapsible search row that reveals below the header on open —\n * render it via `Row`.\n *\n * Used together they replicate WeChat's chat-list search affordance:\n * the search field is hidden by default behind a small circle at the\n * top-right of the page header. Tapping it slides the input open,\n * autofocuses, and lets Escape clear + close. A cyan dot appears in\n * the corner of the icon when there is an active search term but the\n * row is collapsed, so the user always knows a filter is in effect.\n *\n * Owner of the search string is the parent (this component is\n * uncontrolled w.r.t. value — pure UI). That keeps the filter logic\n * with the page so it's easy to plumb additional behaviour like\n * `from:alias` shortcuts or highlight rendering.\n *\n * Shipped as a single component with two named children so callers\n * can place `<Button>` inside their existing header flex row and\n * `<Row>` just after, without restructuring around a tighter API.\n *\n * First adopters: /nodes (R32), /messages (R33). R34 ships\n * /nodes + /messages migrated to use this component; future pages\n * can add search by importing it instead of copy-pasting the JSX.\n */\n\nimport { useState, useCallback } from 'react';\n\ninterface CollapsibleSearchAPI {\n /** Round magnifier button. Place in your page header (e.g. right edge). */\n Button: () => React.JSX.Element;\n /** Collapsible search input row. Place immediately after the header. */\n Row: () => React.JSX.Element | null;\n /** Current search value — pass to your filter logic. */\n value: string;\n /** Programmatically clear + close (useful for \"no results\" reset link). */\n reset: () => void;\n}\n\ninterface UseCollapsibleSearchProps {\n /** Controlled value + setter from the parent — owns the search string. */\n value: string;\n onChange: (next: string) => void;\n /** Input placeholder. */\n placeholder?: string;\n /** Accessible label for the button (also drives `title=`). */\n label?: string;\n /** Hide everything when false (e.g. when there is nothing to search). */\n enabled?: boolean;\n}\n\nexport function useCollapsibleSearch({\n value,\n onChange,\n placeholder = 'Search…',\n label = 'Search',\n enabled = true,\n}: UseCollapsibleSearchProps): CollapsibleSearchAPI {\n const [open, setOpen] = useState(false);\n\n const reset = useCallback(() => {\n onChange('');\n setOpen(false);\n }, [onChange]);\n\n const Button = useCallback(() => {\n if (!enabled) return <></>;\n const active = open || value;\n return (\n <button\n type=\"button\"\n onClick={() => setOpen(v => !v)}\n aria-label={open ? `Close ${label.toLowerCase()}` : `Open ${label.toLowerCase()}`}\n aria-pressed={open}\n title={open ? `Close ${label.toLowerCase()}` : label}\n className={`relative shrink-0 inline-flex items-center justify-center rounded-full border w-9 h-9 transition-colors ${\n active\n ? 'border-cyan-500/40 bg-cyan-500/10 text-cyan-300'\n : 'border-[#26262b] bg-[#161618] text-gray-400 hover:text-gray-200 hover:border-[#3a3a41]'\n }`}\n >\n <svg className=\"w-4 h-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" strokeWidth={2}>\n <path strokeLinecap=\"round\" strokeLinejoin=\"round\" d=\"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z\" />\n </svg>\n {value && !open && (\n <span aria-hidden className=\"absolute -top-0.5 -right-0.5 w-2 h-2 rounded-full bg-cyan-400 ring-2 ring-[#0b0b0d]\" />\n )}\n </button>\n );\n }, [open, value, label, enabled]);\n\n const Row = useCallback(() => {\n if (!enabled) return null;\n if (!open && !value) return null;\n return (\n <div className=\"mb-3 sm:mb-4 flex items-center gap-2\">\n <input\n type=\"text\"\n value={value}\n onChange={e => onChange(e.target.value)}\n onKeyDown={e => { if (e.key === 'Escape') reset(); }}\n placeholder={placeholder}\n autoFocus={open}\n className=\"flex-1 bg-[#161618] border border-[#26262b] rounded-lg px-3 py-2 text-base sm:text-sm text-white placeholder-gray-600 focus:border-cyan-500/40 focus:outline-none\"\n />\n <button\n type=\"button\"\n onClick={reset}\n className=\"shrink-0 text-xs text-gray-500 hover:text-gray-300 px-2 py-2\"\n aria-label=\"Clear and close search\"\n >\n Cancel\n </button>\n </div>\n );\n }, [open, value, onChange, placeholder, reset, enabled]);\n\n return { Button, Row, value, reset };\n}\n","'use client';\n\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { useMessages } from '../lib/hooks';\nimport { timeAgo, previewContent } from '../components/utils';\nimport { EmptyState } from '../components/EmptyState';\nimport { AliasAvatar } from '../components/AliasAvatar';\nimport { useCollapsibleSearch } from '../components/CollapsibleSearch';\n\ninterface MessageItem {\n id: string;\n type?: string;\n from_alias?: string;\n to_alias?: string;\n priority?: string;\n content?: string;\n created_at?: string;\n task_id?: string;\n}\n\nconst TYPE_COLORS: Record<string, string> = {\n task: 'bg-green-500/10 text-green-300 border-green-500/20',\n message: 'bg-blue-500/10 text-blue-300 border-blue-500/20',\n broadcast: 'bg-purple-500/10 text-purple-300 border-purple-500/20',\n reply: 'bg-cyan-500/10 text-cyan-300 border-cyan-500/20',\n};\n\nfunction normalizeDate(value?: string) {\n if (!value) return 0;\n return new Date(value.replace(' ', 'T') + 'Z').getTime();\n}\n\nfunction formatDividerLabel(value?: string) {\n if (!value) return 'Time gap';\n const date = new Date(value.replace(' ', 'T') + 'Z');\n return date.toLocaleString();\n}\n\nfunction bubbleVariant(message: MessageItem) {\n if (message.type === 'broadcast') return 'broadcast';\n if ((message.from_alias || '').toLowerCase() === 'dashboard') return 'outgoing';\n return 'incoming';\n}\n\n/** Render message content, highlighting the search match inline (skips the\n * `from:` filter prefix since it filters by sender, not by content). */\nfunction renderHighlighted(content: string | undefined, search: string) {\n const text = content || '--';\n const q = search.trim();\n if (!q || q.startsWith('from:')) return text;\n const idx = text.toLowerCase().indexOf(q.toLowerCase());\n if (idx < 0) return text;\n return <>{text.slice(0, idx)}<mark className=\"bg-yellow-500/30 text-yellow-200 rounded px-0.5\">{text.slice(idx, idx + q.length)}</mark>{text.slice(idx + q.length)}</>;\n}\n\n// #217 M5 (Vincent tg 655/656, same directive as chat M4): don't pull the\n// full history on every 5s poll. Open with the newest page only and grow\n// the window when the user explicitly asks for older messages.\nconst HISTORY_PAGE = 30;\n\nexport default function MessagesPage() {\n const [histLimit, setHistLimit] = useState(HISTORY_PAGE);\n const { messages, isLoading } = useMessages(histLimit);\n // The hub returned a full page → assume more history exists beyond it.\n const hasOlder = messages.length >= histLimit;\n const loadingOlder = isLoading && messages.length > 0;\n const [filterType, setFilterType] = useState('');\n const [search, setSearch] = useState('');\n const [debug, setDebug] = useState(false);\n const [viewMode, setViewMode] = useState<'timeline' | 'grouped'>('timeline');\n // M5: the timeline runs oldest→newest top-to-bottom, so land the first\n // paint on the newest message (what the user came to read) instead of\n // the oldest of the loaded window. Once only — later polls/loads must\n // not yank the scroll position.\n const endRef = useRef<HTMLDivElement>(null);\n const didInitialScrollRef = useRef(false);\n useEffect(() => {\n if (didInitialScrollRef.current || messages.length === 0) return;\n didInitialScrollRef.current = true;\n endRef.current?.scrollIntoView();\n }, [messages.length]);\n // #209 R33→R34: WeChat-style magnifier-toggle search hook (shared with /nodes).\n const searchCtl = useCollapsibleSearch({\n value: search,\n onChange: setSearch,\n placeholder: 'Search from/to/content or use from:alias…',\n label: 'Search messages',\n enabled: messages.length > 0,\n });\n\n const quickFromChips = useMemo(() => {\n const aliases = new Set<string>();\n messages.forEach((message: MessageItem) => {\n const alias = message.from_alias?.trim();\n if (alias && alias.toLowerCase() !== 'dashboard') aliases.add(alias);\n });\n return [...aliases].slice(0, 8);\n }, [messages]);\n\n const filtered = useMemo(() => {\n const query = search.trim().toLowerCase();\n const fromFilter = query.startsWith('from:') ? query.slice(5).trim() : '';\n\n return [...messages]\n .filter((m: MessageItem) => {\n if (filterType && m.type !== filterType) return false;\n if (fromFilter) {\n return (m.from_alias || '').toLowerCase().includes(fromFilter);\n }\n if (query) {\n return (m.from_alias || '').toLowerCase().includes(query)\n || (m.to_alias || '').toLowerCase().includes(query)\n || (m.content || '').toLowerCase().includes(query);\n }\n return true;\n })\n .sort((a: MessageItem, b: MessageItem) => normalizeDate(a.created_at) - normalizeDate(b.created_at));\n }, [filterType, messages, search]);\n\n // Group messages by conversation pair\n const conversations = useMemo(() => {\n const groups = new Map<string, { participants: string[]; messages: MessageItem[]; lastTime: number }>();\n filtered.forEach(m => {\n const a = m.from_alias || '?';\n const b = m.to_alias || '?';\n const key = [a, b].sort().join('↔');\n const group = groups.get(key) || { participants: [a, b].sort(), messages: [] as MessageItem[], lastTime: 0 };\n group.messages.push(m);\n group.lastTime = Math.max(group.lastTime, normalizeDate(m.created_at));\n groups.set(key, group);\n });\n return [...groups.values()].sort((a, b) => b.lastTime - a.lastTime);\n }, [filtered]);\n\n return (\n <div className=\"min-h-screen bg-[#0b0b0d] text-gray-100 p-4 sm:p-6\">\n {/* #209 R31 (mobile vertical rhythm — same pattern as R28/R30):\n header row + quick-from chips row both mb-6 → mb-4 sm:mb-6.\n #209 R33: header restructured to mirror /nodes R32 — title\n cluster left (Messages + count chip + Export MD), magnifier\n circle right. Inline ~290 px search input was moved into the\n collapsible row below. */}\n <div className=\"flex items-center gap-4 mb-4 sm:mb-6\">\n <div className=\"flex items-center gap-3 min-w-0 flex-1\">\n <h1 className=\"text-2xl font-bold text-white lg:ml-0 ml-10\">Messages</h1>\n {/* Round 89: filter-aware chip. When search/type filter is active\n the visible rows are filtered.length; the total loaded is\n messages.length (the M5 lazy window, newest histLimit). Show\n `filtered / total` so users notice how much the filter is\n hiding. Same pattern as r88 /tasks chip. */}\n <span\n className=\"text-xs bg-blue-900/30 text-blue-400 px-2 py-0.5 rounded-full border border-blue-800/30 tabular-nums shrink-0\"\n title={filtered.length < messages.length ? `Showing ${filtered.length} of ${messages.length} messages` : undefined}\n >\n {filtered.length < messages.length ? `${filtered.length} / ${messages.length}` : messages.length}\n </span>\n {filtered.length > 0 && (\n <button\n onClick={() => {\n const md = filtered.map((m: MessageItem) =>\n `**${m.from_alias || '?'}** → ${m.to_alias || '?'} (${m.type || '?'}) — ${m.created_at || ''}\\n\\n${m.content || '--'}\\n\\n---`\n ).join('\\n\\n');\n const blob = new Blob([`# Messages Export\\n\\n${md}`], { type: 'text/markdown' });\n const url = URL.createObjectURL(blob);\n const a = document.createElement('a');\n a.href = url; a.download = `messages-${new Date().toISOString().slice(0,10)}.md`;\n a.click(); URL.revokeObjectURL(url);\n }}\n className=\"text-xs text-gray-500 hover:text-gray-300 border border-gray-700/50 px-2.5 py-1 rounded-lg transition-colors shrink-0\"\n >\n Export MD\n </button>\n )}\n </div>\n <searchCtl.Button />\n </div>\n\n {/* #209 R34: shared <CollapsibleSearch> component. enabled gate\n handles the no-content case (button + row both hide). */}\n <searchCtl.Row />\n\n {/* Round 76: hide search + type filter + view toggle + Debug button\n when there are no messages at all. Same r70-class fix carried\n across /nodes (r74) and /tasks (r75). When at least one message\n exists, the chrome reappears so users can still clear filters. */}\n {messages.length > 0 && (\n <div className=\"flex flex-wrap gap-3 mb-3\">\n {/* R33: inline search input moved to the top-right magnifier\n toggle above. Type select + view-mode toggle + Debug stay. */}\n <select\n value={filterType}\n onChange={e => setFilterType(e.target.value)}\n className=\"bg-[#161618] border border-[#26262b] rounded-lg px-3 py-2 text-base sm:text-sm text-white focus:border-blue-500/50 focus:outline-none\"\n >\n <option value=\"\">All types</option>\n <option value=\"task\">task</option>\n <option value=\"message\">message</option>\n <option value=\"broadcast\">broadcast</option>\n <option value=\"reply\">reply</option>\n </select>\n <div className=\"flex rounded-lg border border-[#26262b] bg-[#161618] p-0.5\">\n {(['timeline', 'grouped'] as const).map(mode => (\n <button key={mode} type=\"button\" onClick={() => setViewMode(mode)}\n className={`rounded-md px-2.5 py-1.5 text-xs transition-colors ${viewMode === mode ? 'bg-cyan-500/10 text-cyan-300' : 'text-gray-500 hover:text-gray-200'}`}>\n {mode === 'timeline' ? 'Timeline' : 'Grouped'}\n </button>\n ))}\n </div>\n <button\n onClick={() => setDebug(!debug)}\n className={`text-xs px-3 py-2 rounded-lg border transition-colors ${\n debug ? 'bg-yellow-500/10 text-yellow-300 border-yellow-500/20' : 'text-gray-500 border-gray-700/50 hover:text-gray-300'\n }`}\n >\n {debug ? 'Debug ON' : 'Debug'}\n </button>\n </div>\n )}\n\n {/* #217 S8 (less is more): on phones the sender chips wrapped into\n ~5 rows and pushed the first message below the fold. One\n scrollable row on mobile; wrap returns from sm: up. */}\n {quickFromChips.length > 0 && (\n <div className=\"mb-4 sm:mb-6 flex gap-2 overflow-x-auto whitespace-nowrap pb-1 scrollbar-thin sm:flex-wrap sm:overflow-visible sm:whitespace-normal sm:pb-0\">\n {quickFromChips.map(alias => (\n <button\n key={alias}\n type=\"button\"\n onClick={() => setSearch(`from:${alias}`)}\n className={`shrink-0 rounded-full border px-3 py-1 text-xs transition-colors ${\n search === `from:${alias}`\n ? 'border-cyan-500/30 bg-cyan-500/10 text-cyan-300'\n : 'border-[#26262b] bg-[#161618] text-gray-400 hover:text-gray-200'\n }`}\n >\n from:{alias}\n </button>\n ))}\n {search.startsWith('from:') && (\n <button\n type=\"button\"\n onClick={() => setSearch('')}\n className=\"shrink-0 rounded-full border border-gray-700 px-3 py-1 text-xs text-gray-500 hover:text-gray-200\"\n >\n Clear\n </button>\n )}\n </div>\n )}\n\n {/* M5: paging affordance — mirrors the chat panel's M4 row. Sits\n above the list because older history is prepended above what's\n already on screen. Hidden once the hub returns a short page\n (we've reached the beginning). */}\n {messages.length > 0 && hasOlder && (\n <div className=\"mb-3 flex justify-center\">\n <button\n type=\"button\"\n onClick={() => setHistLimit(l => l + HISTORY_PAGE)}\n disabled={loadingOlder}\n className=\"rounded-full border border-[#26262b] bg-[#161618] px-4 py-1.5 text-xs text-gray-400 transition-colors hover:text-gray-200 disabled:opacity-50\"\n >\n {loadingOlder ? 'Loading…' : '↑ Load earlier messages'}\n </button>\n </div>\n )}\n\n {isLoading && messages.length === 0 ? (\n <div className=\"animate-pulse space-y-3\">\n {[1, 2, 3, 4, 5].map(i => <div key={i} className=\"h-20 rounded-2xl bg-gray-800/20\" />)}\n </div>\n ) : filtered.length === 0 ? (\n <EmptyState variant=\"messages\" />\n ) : viewMode === 'grouped' ? (\n <div className=\"space-y-4\">\n {conversations.map((conv, ci) => (\n <div key={ci} className=\"bg-[#161618] border border-[#26262b] rounded-xl overflow-hidden\">\n <div className=\"px-4 py-2.5 border-b border-[#26262b] flex items-center justify-between\">\n <div className=\"flex items-center gap-2\">\n <AliasAvatar alias={conv.participants[0]} size={16} />\n <span className=\"text-sm text-gray-200 font-medium\">{conv.participants[0]}</span>\n <span className=\"text-gray-600 text-xs\">↔</span>\n <AliasAvatar alias={conv.participants[1]} size={16} />\n <span className=\"text-sm text-gray-200 font-medium\">{conv.participants[1]}</span>\n </div>\n <span className=\"text-[10px] text-gray-600\">{conv.messages.length} messages</span>\n </div>\n <div className=\"px-4 py-2 space-y-2 max-h-64 overflow-y-auto\">\n {conv.messages.map(m => (\n <div key={m.id} className=\"flex items-start gap-2 text-xs py-1\">\n {m.from_alias && <AliasAvatar alias={m.from_alias} size={14} />}\n <span className=\"shrink-0 font-medium text-gray-200\">{m.from_alias}</span>\n <span className=\"text-gray-400 flex-1 truncate\" title={m.content || ''}>{previewContent(m.content).slice(0, 120)}</span>\n <span className=\"text-[9px] text-gray-600 shrink-0\">{timeAgo(m.created_at || '')}</span>\n </div>\n ))}\n </div>\n </div>\n ))}\n </div>\n ) : (\n <div className=\"space-y-1\">\n {filtered.map((message: MessageItem, index) => {\n const previous = filtered[index - 1];\n const gapExceeded = previous\n ? normalizeDate(message.created_at) - normalizeDate(previous.created_at) > 5 * 60 * 1000\n : false;\n const variant = bubbleVariant(message);\n // Cluster: same sender + same direction + same to_alias and no\n // time-gap divider → tighter spacing and hide repeated header.\n const samePrev = !!previous\n && !gapExceeded\n && bubbleVariant(previous) === variant\n && (previous.from_alias || '') === (message.from_alias || '')\n && (previous.to_alias || '') === (message.to_alias || '');\n const fromAlias = message.from_alias || '?';\n\n return (\n <div key={message.id}>\n {/* R6 of #190 mobile polish: gap divider was my-4 (=16px\n each side), and with multi-hour message lulls it\n fired several times per session, eating ~32px each.\n Halve it on mobile. */}\n {gapExceeded && (\n <div className=\"my-2 sm:my-4 flex items-center gap-3\">\n <div className=\"h-px flex-1 bg-[#26262b]\" />\n <div className=\"text-[11px] text-gray-600\">{formatDividerLabel(message.created_at)}</div>\n <div className=\"h-px flex-1 bg-[#26262b]\" />\n </div>\n )}\n\n {/* Broadcasts span full width — no avatar gutter. R6 mobile:\n tighter padding + tighter header margin + snug leading\n on the content so each bubble is ~25-30% shorter at\n 390px. Desktop unchanged from sm: up. */}\n {variant === 'broadcast' ? (\n <div className={samePrev ? 'mt-0.5 sm:mt-1' : 'mt-2 sm:mt-3'}>\n <div className=\"rounded-2xl border border-purple-500/20 bg-purple-500/10 px-3 py-2 sm:px-4 sm:py-3 shadow-sm w-full\">\n <div className=\"mb-1 sm:mb-2 flex flex-wrap items-center gap-2\">\n <span className={`text-xs px-2 py-0.5 rounded-md border ${TYPE_COLORS[message.type || ''] || 'bg-gray-500/10 text-gray-400 border-gray-500/20'}`}>\n {message.type || 'unknown'}\n </span>\n <span className=\"text-sm font-medium text-purple-200\">{fromAlias}</span>\n {message.to_alias && <span className=\"text-xs text-purple-200/80\">to {message.to_alias}</span>}\n {message.priority === 'high' && <span className=\"text-xs text-red-400\">HIGH</span>}\n <span className=\"ml-auto text-xs text-gray-500\">{message.created_at ? timeAgo(message.created_at) : '--'}</span>\n </div>\n {/* Round 79: break-words + overflow-wrap:anywhere so\n long unbroken runs (URLs, ASCII rules like\n `═══════════════`) wrap instead of pushing the\n chat bubble past the mobile viewport. */}\n <div className=\"whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-sm leading-snug sm:leading-relaxed text-gray-200\">\n {renderHighlighted(message.content, search)}\n </div>\n </div>\n </div>\n ) : (\n <div className={`${samePrev ? 'mt-0.5 sm:mt-1' : 'mt-2 sm:mt-3'} flex gap-2 ${variant === 'outgoing' ? 'flex-row-reverse' : 'flex-row'}`}>\n {/* Avatar gutter — fixed width keeps bubble columns aligned even on streaks */}\n <div className=\"w-8 shrink-0 pt-1\">\n {!samePrev && <AliasAvatar alias={fromAlias} size={32} />}\n </div>\n <div className={`min-w-0 max-w-3xl rounded-2xl border px-3 py-2 sm:px-4 sm:py-3 shadow-sm ${\n variant === 'outgoing'\n ? 'border-green-500/20 bg-green-500/10'\n : 'border-blue-500/20 bg-blue-500/10'\n }`}>\n {!samePrev && (\n <div className=\"mb-1 sm:mb-2 flex flex-wrap items-center gap-2\">\n <span className={`text-xs px-2 py-0.5 rounded-md border ${TYPE_COLORS[message.type || ''] || 'bg-gray-500/10 text-gray-400 border-gray-500/20'}`}>\n {message.type || 'unknown'}\n </span>\n <span className={`text-sm font-medium ${variant === 'outgoing' ? 'text-green-300' : 'text-blue-300'}`}>\n {fromAlias}\n </span>\n <span className=\"text-xs text-gray-600\">&rarr;</span>\n <span className=\"text-sm text-gray-300\">{message.to_alias || '--'}</span>\n {message.priority === 'high' && <span className=\"text-xs text-red-400\">HIGH</span>}\n <span className=\"ml-auto text-xs text-gray-500\">{message.created_at ? timeAgo(message.created_at) : '--'}</span>\n </div>\n )}\n\n {/* Round 79: break-words + overflow-wrap:anywhere so\n long unbroken runs (URLs, ASCII rules like\n `═══════════════`) wrap instead of pushing the\n chat bubble past the mobile viewport. */}\n <div className=\"whitespace-pre-wrap break-words [overflow-wrap:anywhere] text-sm leading-snug sm:leading-relaxed text-gray-200\">\n {renderHighlighted(message.content, search)}\n </div>\n\n {/* When in a streak, surface the timestamp inline-right so users still know cadence */}\n {samePrev && (\n <div className=\"mt-1 text-[10px] text-gray-600 text-right\">\n {message.created_at ? timeAgo(message.created_at) : ''}\n </div>\n )}\n\n {debug && (\n <div className=\"mt-3 border-t border-white/10 pt-3 text-xs text-gray-500 space-y-1\">\n <div>ID: {message.id}</div>\n {message.task_id && <div>Task ID: {message.task_id}</div>}\n <div>Created: {message.created_at}</div>\n </div>\n )}\n </div>\n </div>\n )}\n </div>\n );\n })}\n <div ref={endRef} />\n </div>\n )}\n </div>\n );\n}\n"],"names":["previewContent","raw","replace","trim","timeAgo","dateStr","statusColor","status","hasSse","formatUptime","seconds","h","Math","floor","m","AVATAR_HUES","aliasAvatarColors","alias","i","length","charCodeAt","hue","bg","ring","text","aliasInitial","ch","match","toUpperCase","isGrokAlias","test","AliasAvatar","size","className","style","width","height","backgroundImage","backgroundPosition","backgroundRepeat","backgroundSize","title","c","fs","max","round","fontSize","backgroundColor","borderColor","color","DEFAULTS","nodes","sub","tasks","messages","logs","tokens","networks","generic","Glyph","variant","s","baseProps","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin","viewBox","cx","cy","r","x1","y1","x2","y2","strokeDasharray","opacity","x","y","rx","d","ry","EmptyState","cta","compact","headline","subcopy","iconSize","role","href","label","onClick","EmptyCard","children","NodesEmptyState","hint","taskHistoryCount","global_count","toLocaleString","QuickstartCommand","cmd","target","rel","copied","setCopied","onCopy","navigator","clipboard","writeText","setTimeout","type","fetcher","url","res","fetch","window","location","assign","Error","json","SWR_OPTIONS","refreshInterval","dedupingInterval","withNetwork","networkId","sep","includes","encodeURIComponent","useSessions","data","error","isLoading","sessions","_hint","useHealth","health","useAnetConfig","config","useTasks","params","query","URLSearchParams","limit","toString","count","source","useStats","stats","ok","useMessages","keepPreviousData","useNodeSession","session","inbox","sse","useCollapsibleSearch","value","onChange","placeholder","enabled","open","setOpen","reset","Button","active","v","toLowerCase","Row","e","onKeyDown","key","autoFocus","TYPE_COLORS","task","message","broadcast","reply","normalizeDate","Date","getTime","formatDividerLabel","date","bubbleVariant","from_alias","renderHighlighted","content","search","q","startsWith","idx","indexOf","slice","HISTORY_PAGE","MessagesPage","histLimit","setHistLimit","hasOlder","loadingOlder","filterType","setFilterType","setSearch","debug","setDebug","viewMode","setViewMode","endRef","didInitialScrollRef","current","scrollIntoView","searchCtl","quickFromChips","aliases","Set","forEach","add","filtered","fromFilter","filter","to_alias","sort","a","b","created_at","conversations","groups","Map","join","group","get","participants","lastTime","push","set","values","undefined","md","map","blob","Blob","URL","createObjectURL","document","createElement","download","toISOString","click","revokeObjectURL","mode","l","disabled","conv","ci","id","index","previous","gapExceeded","samePrev","fromAlias","priority","task_id","ref"],"mappings":"uCAmBA,IAAA,EAAA,EAAA,CAAA,CAAA,+BAhBO,SAAwBC,AAAfD,CAA6C,SAC3D,AAAKC,GACEA,CADH,CAAM,AAEPC,OAFc,AAEP,CAAC,0BAA2B,MAAQ,AAC3CA,OAAO,CAAC,oBAD+D,KACrC,MAAS,AAC3CA,OAAO,CAAC,aAAc,MAAqB,AAC3CA,GAFyE,IAElE,CAAC,OAAQ,KAA2B,AAC3CC,GAFkE,CAE9D,IAAM,IACf,UAFsE,IAW/D,SAASC,AAAQC,CAAe,EACrC,MAAO,CAAA,EAAA,EAAA,WAAA,AAAW,EAACA,IAAY,IACjC,4CCjBA,IAAMU,EAAc,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAI,GAAG,CAEnD,SAASC,EAAkBC,CAAa,EAC7C,IAAIN,EAAI,EACR,IAAK,IAAIO,EAAI,EAAGA,EAAID,EAAME,MAAM,CAAED,IAA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AA,EAAA,IAAA,EAAC,MAAA,WAAI,YAAUrF,EAAQgD,UAAU,eAnFnChD,EAAQ8E,EAAE,CA2FxB,GACA,CAAA,EAAA,EAAA,GAAA,EAAC,MAAA,CAAIQ,IAAKvD,SAKpB"}
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
7
7
  "static/chunks/03~yq9q893hmn.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/TDZA1Sx9EZPbGBOvEQtJ7/_buildManifest.js",
11
- "static/TDZA1Sx9EZPbGBOvEQtJ7/_ssgManifest.js",
12
- "static/TDZA1Sx9EZPbGBOvEQtJ7/_clientMiddlewareManifest.js"
10
+ "static/W8km2n6VCMAi_E7EBSqcm/_buildManifest.js",
11
+ "static/W8km2n6VCMAi_E7EBSqcm/_ssgManifest.js",
12
+ "static/W8km2n6VCMAi_E7EBSqcm/_clientMiddlewareManifest.js"
13
13
  ],
14
14
  "rootMainFiles": [
15
15
  "static/chunks/05oi25hh7b81r.js",
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html lang="en" data-theme="cyber" class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable h-full antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, viewport-fit=cover"/><link rel="stylesheet" href="/_next/static/chunks/066jf0nk75nic.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/0scww97p6z5z..css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/05oi25hh7b81r.js"/><script src="/_next/static/chunks/0_pxg.4pebw__.js" async=""></script><script src="/_next/static/chunks/039-b.v_9-_rm.js" async=""></script><script src="/_next/static/chunks/0b8wnt4put-5n.js" async=""></script><script src="/_next/static/chunks/turbopack-0.7dvsf9rllt0.js" async=""></script><script src="/_next/static/chunks/0u240x6paxno2.js" async=""></script><script src="/_next/static/chunks/0_bn~gcrgo.4n.js" async=""></script><script src="/_next/static/chunks/149a4l50_3vw-.js" async=""></script><script src="/_next/static/chunks/0u3b93reo9xci.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><meta name="theme-color" content="#0b0b0d"/><title>Agent Network Dashboard</title><meta name="description" content="Real-time monitoring dashboard for Agent Network nodes via CommHub"/><link rel="manifest" href="/manifest.webmanifest"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="Agent Network"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><meta property="og:title" content="Agent Network Dashboard"/><meta property="og:description" content="Real-time monitoring dashboard for Agent Network nodes"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:title" content="Agent Network Dashboard"/><meta name="twitter:description" content="Real-time monitoring dashboard for Agent Network nodes"/><link rel="shortcut icon" href="/favicon.svg"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><link rel="icon" href="/favicon.svg" type="image/svg+xml"/><link rel="apple-touch-icon" href="/sleep2agi-logo.svg" type="image/svg+xml"/><script>
1
+ <!DOCTYPE html><html lang="en" data-theme="cyber" class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable h-full antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, viewport-fit=cover"/><link rel="stylesheet" href="/_next/static/chunks/066jf0nk75nic.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/04uju~n5s9g7..css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/05oi25hh7b81r.js"/><script src="/_next/static/chunks/0_pxg.4pebw__.js" async=""></script><script src="/_next/static/chunks/039-b.v_9-_rm.js" async=""></script><script src="/_next/static/chunks/0b8wnt4put-5n.js" async=""></script><script src="/_next/static/chunks/turbopack-0.7dvsf9rllt0.js" async=""></script><script src="/_next/static/chunks/0u240x6paxno2.js" async=""></script><script src="/_next/static/chunks/0_bn~gcrgo.4n.js" async=""></script><script src="/_next/static/chunks/149a4l50_3vw-.js" async=""></script><script src="/_next/static/chunks/0u3b93reo9xci.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><meta name="theme-color" content="#0b0b0d"/><title>Agent Network Dashboard</title><meta name="description" content="Real-time monitoring dashboard for Agent Network nodes via CommHub"/><link rel="manifest" href="/manifest.webmanifest"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="Agent Network"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><meta property="og:title" content="Agent Network Dashboard"/><meta property="og:description" content="Real-time monitoring dashboard for Agent Network nodes"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:title" content="Agent Network Dashboard"/><meta name="twitter:description" content="Real-time monitoring dashboard for Agent Network nodes"/><link rel="shortcut icon" href="/favicon.svg"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><link rel="icon" href="/favicon.svg" type="image/svg+xml"/><link rel="apple-touch-icon" href="/sleep2agi-logo.svg" type="image/svg+xml"/><script>
2
2
  try {
3
3
  var t = localStorage.getItem('anet-theme') || 'cyber';
4
4
  document.documentElement.setAttribute('data-theme', t);
@@ -9,4 +9,4 @@ try {
9
9
  w-52
10
10
  -translate-x-full
11
11
  lg:translate-x-0 lg:static lg:shrink-0 lg:shadow-none
12
- "><a class="block px-4 py-4 flex items-center gap-3 hover:bg-[#161618]/40 transition-colors rounded-r-xl" aria-label="Agent Network — home" href="/"><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true" class="shrink-0"><circle cx="16" cy="16" r="10" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.2" class="text-cyan-400"></circle><line x1="16" y1="10" x2="10" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><line x1="16" y1="10" x2="22" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><line x1="10" y1="20" x2="22" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><circle cx="16" cy="10" r="2.5" fill="currentColor" class="text-cyan-400"></circle><circle cx="10" cy="20" r="2.5" fill="currentColor" class="text-green-400"></circle><circle cx="22" cy="20" r="2.5" fill="currentColor" class="text-violet-400"></circle></svg><div class="min-w-0"><div class="text-white text-[13px] font-semibold leading-tight">Agent Network</div><div class="text-[10px] text-gray-500 flex items-center gap-1.5 mt-0.5"><span class="inline-block w-1.5 h-1.5 rounded-full bg-gray-600" aria-hidden="true"></span><span>waiting for agents</span></div></div></a><div class="border-b border-[#26262b]"></div><div class="pb-28"><nav class="flex flex-col gap-1 px-2 py-4"><a class="relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f] " href="/"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg><span>Overview</span></a><a class="relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f] " href="/tasks"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg><span>Tasks</span></a><a class="relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f] " href="/nodes"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"></path></svg><span>Nodes</span></a><a class="relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f] " href="/servers"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M4 6.5A2.5 2.5 0 016.5 4h11A2.5 2.5 0 0120 6.5v1A2.5 2.5 0 0117.5 10h-11A2.5 2.5 0 014 7.5v-1zM4 16.5A2.5 2.5 0 016.5 14h11a2.5 2.5 0 012.5 2.5v1a2.5 2.5 0 01-2.5 2.5h-11A2.5 2.5 0 014 17.5v-1zM7 7h.01M7 17h.01"></path></svg><span>Servers</span></a><a class="relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f] " href="/admin"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"></path></svg><span>Admin</span></a><a class="relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f] " href="/settings"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg><span>Settings</span></a></nav></div><div class="absolute bottom-0 left-0 right-0 border-t border-[#26262b] bg-[#111113]"><button class="w-full flex items-center text-[11px] text-gray-600 hover:text-gray-400 hover:bg-[#1c1c1f] transition-colors justify-between gap-2 px-5 py-3 lg:py-2" aria-label="Open command palette"><span class="flex items-center gap-2"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>Quick search</span><kbd class="text-[10px] border border-current rounded px-1 py-0.5 opacity-60 font-mono">⌘K</kbd></button><button class="w-full flex items-center text-xs text-gray-500 hover:text-red-400 hover:bg-red-500/5 transition-colors gap-3 px-5 py-3"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"></path></svg>Sign out</button><div class="flex items-center px-3 py-2 justify-end"><button title="Collapse sidebar" class="hidden lg:flex p-1.5 rounded text-gray-600 hover:text-gray-400 transition-colors" aria-label="Collapse sidebar"><svg class="w-4 h-4 transition-transform " fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19l-7-7 7-7"></path></svg></button></div></div></aside><main class="flex-1 min-w-0 max-w-full overflow-x-hidden flex flex-col pt-[env(safe-area-inset-top)]"><div class="flex-1 min-w-0 max-w-full overflow-x-hidden pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-0"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></div></main><nav class="fixed inset-x-0 bottom-0 z-40 border-t border-[#26262b] bg-[#111113]/95 px-1 pb-[calc(env(safe-area-inset-bottom)+0.35rem)] pt-1.5 backdrop-blur lg:hidden"><div class="mx-auto grid max-w-md grid-cols-4 gap-1"><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/nodes"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"></path></svg><span class="max-w-full truncate">Agents</span></a><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg><span class="max-w-full truncate">Overview</span></a><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/tasks"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg><span class="max-w-full truncate">Tasks</span></a><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/settings"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg><span class="max-w-full truncate">Settings</span></a></div></nav><aside class="fixed right-0 top-20 z-40 hidden lg:flex flex-col rounded-l-xl border border-r-0 shadow-xl shadow-black/30 anet-fade-in" style="background:var(--bg-secondary);border-color:var(--border);width:40px;max-height:calc(100vh - 6rem);transition:width 200ms ease-out" aria-label="Servers panel"><button aria-expanded="false" aria-label="Expand servers panel" class="flex items-center gap-2 px-2.5 py-2 border-b text-[11px] font-semibold tracking-wide select-none" style="color:var(--fg);border-color:var(--border)"><svg class="w-4 h-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="6" rx="1.5"></rect><rect x="3" y="14" width="18" height="6" rx="1.5"></rect><circle cx="7" cy="7" r="0.7" fill="currentColor"></circle><circle cx="7" cy="17" r="0.7" fill="currentColor"></circle></svg></button></aside></div><script src="/_next/static/chunks/05oi25hh7b81r.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[24156,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"ThemeProvider\"]\n3:I[11449,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"NetworkProvider\"]\n4:I[28516,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"PwaInstaller\"]\n5:I[22485,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"AppShell\"]\n6:I[10561,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"default\"]\n7:I[85887,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"default\"]\n8:I[1185,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nc:I[1185,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"ViewportBoundary\"]\ne:I[1185,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"MetadataBoundary\"]\n10:I[95183,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/066jf0nk75nic.css\",\"style\"]\n:HL[\"/_next/static/chunks/0scww97p6z5z..css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/066jf0nk75nic.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0scww97p6z5z..css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0u240x6paxno2.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/149a4l50_3vw-.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/0u3b93reo9xci.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"data-theme\":\"cyber\",\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable h-full antialiased\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\ntry {\\n var t = localStorage.getItem('anet-theme') || 'cyber';\\n document.documentElement.setAttribute('data-theme', t);\\n} catch (e) {}\\n\"}}]}],[\"$\",\"body\",null,{\"className\":\"min-h-full\",\"style\":{\"background\":\"var(--bg)\",\"color\":\"var(--fg)\"},\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[[\"$\",\"$L4\",null,{}],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,null]},null,false,\"$@b\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lc\",null,{\"children\":\"$Ld\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$10\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/066jf0nk75nic.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0scww97p6z5z..css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"TDZA1Sx9EZPbGBOvEQtJ7\"}\n"])</script><script>self.__next_f.push([1,"11:[]\nb:\"$W11\"\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, viewport-fit=cover\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#0b0b0d\"}]]\n"])</script><script>self.__next_f.push([1,"12:I[1974,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"IconMark\"]\na:null\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"title\",\"0\",{\"children\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes via CommHub\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"3\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"4\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"Agent Network\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"meta\",\"7\",{\"property\":\"og:title\",\"content\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"8\",{\"property\":\"og:description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes\"}],[\"$\",\"meta\",\"9\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"10\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"11\",{\"name\":\"twitter:title\",\"content\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"12\",{\"name\":\"twitter:description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes\"}],[\"$\",\"link\",\"13\",{\"rel\":\"shortcut icon\",\"href\":\"/favicon.svg\"}],[\"$\",\"link\",\"14\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"15\",{\"rel\":\"icon\",\"href\":\"/favicon.svg\",\"type\":\"image/svg+xml\"}],[\"$\",\"link\",\"16\",{\"rel\":\"apple-touch-icon\",\"href\":\"/sleep2agi-logo.svg\",\"type\":\"image/svg+xml\"}],[\"$\",\"$L12\",\"17\",{}]]\n"])</script></body></html>
12
+ "><a class="block px-4 py-4 flex items-center gap-3 hover:bg-[#161618]/40 transition-colors rounded-r-xl" aria-label="Agent Network — home" href="/"><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true" class="shrink-0"><circle cx="16" cy="16" r="10" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.2" class="text-cyan-400"></circle><line x1="16" y1="10" x2="10" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><line x1="16" y1="10" x2="22" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><line x1="10" y1="20" x2="22" y2="20" stroke="currentColor" stroke-width="1" opacity="0.45" class="text-cyan-400"></line><circle cx="16" cy="10" r="2.5" fill="currentColor" class="text-cyan-400"></circle><circle cx="10" cy="20" r="2.5" fill="currentColor" class="text-green-400"></circle><circle cx="22" cy="20" r="2.5" fill="currentColor" class="text-violet-400"></circle></svg><div class="min-w-0"><div class="text-white text-[13px] font-semibold leading-tight">Agent Network</div><div class="text-[10px] text-gray-500 flex items-center gap-1.5 mt-0.5"><span class="inline-block w-1.5 h-1.5 rounded-full bg-gray-600" aria-hidden="true"></span><span>waiting for agents</span></div></div></a><div class="border-b border-[#26262b]"></div><div class="pb-28"><nav class="flex flex-col gap-1 px-2 py-4"><a class="relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f] " href="/"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg><span>Overview</span></a><a class="relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f] " href="/tasks"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg><span>Tasks</span></a><a class="relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f] " href="/nodes"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"></path></svg><span>Nodes</span></a><a class="relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f] " href="/servers"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M4 6.5A2.5 2.5 0 016.5 4h11A2.5 2.5 0 0120 6.5v1A2.5 2.5 0 0117.5 10h-11A2.5 2.5 0 014 7.5v-1zM4 16.5A2.5 2.5 0 016.5 14h11a2.5 2.5 0 012.5 2.5v1a2.5 2.5 0 01-2.5 2.5h-11A2.5 2.5 0 014 17.5v-1zM7 7h.01M7 17h.01"></path></svg><span>Servers</span></a><a class="relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f] " href="/admin"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"></path></svg><span>Admin</span></a><a class="relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-colors active:bg-[#232327] text-gray-400 hover:text-gray-200 hover:bg-[#1c1c1f] " href="/settings"><svg class="w-5 h-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg><span>Settings</span></a></nav></div><div class="absolute bottom-0 left-0 right-0 border-t border-[#26262b] bg-[#111113]"><button class="w-full flex items-center text-[11px] text-gray-600 hover:text-gray-400 hover:bg-[#1c1c1f] transition-colors justify-between gap-2 px-5 py-3 lg:py-2" aria-label="Open command palette"><span class="flex items-center gap-2"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>Quick search</span><kbd class="text-[10px] border border-current rounded px-1 py-0.5 opacity-60 font-mono">⌘K</kbd></button><button class="w-full flex items-center text-xs text-gray-500 hover:text-red-400 hover:bg-red-500/5 transition-colors gap-3 px-5 py-3"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"></path></svg>Sign out</button><div class="flex items-center px-3 py-2 justify-end"><button title="Collapse sidebar" class="hidden lg:flex p-1.5 rounded text-gray-600 hover:text-gray-400 transition-colors" aria-label="Collapse sidebar"><svg class="w-4 h-4 transition-transform " fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19l-7-7 7-7"></path></svg></button></div></div></aside><main class="flex-1 min-w-0 max-w-full overflow-x-hidden flex flex-col pt-[env(safe-area-inset-top)]"><div class="flex-1 min-w-0 max-w-full overflow-x-hidden pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-0"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></div></main><nav class="fixed inset-x-0 bottom-0 z-40 border-t border-[#26262b] bg-[#111113]/95 px-1 pb-[calc(env(safe-area-inset-bottom)+0.35rem)] pt-1.5 backdrop-blur lg:hidden"><div class="mx-auto grid max-w-md grid-cols-4 gap-1"><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/nodes"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"></path></svg><span class="max-w-full truncate">Agents</span></a><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg><span class="max-w-full truncate">Overview</span></a><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/tasks"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg><span class="max-w-full truncate">Tasks</span></a><a class="relative flex min-h-12 flex-col items-center justify-center gap-0.5 rounded-xl px-1 text-[10px] transition-colors text-gray-500 active:bg-[#232327] active:text-gray-200" href="/settings"><svg class="h-5 w-5 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.6"><path stroke-linecap="round" stroke-linejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg><span class="max-w-full truncate">Settings</span></a></div></nav><aside class="fixed right-0 top-20 z-40 hidden lg:flex flex-col rounded-l-xl border border-r-0 shadow-xl shadow-black/30 anet-fade-in" style="background:var(--bg-secondary);border-color:var(--border);width:40px;max-height:calc(100vh - 6rem);transition:width 200ms ease-out" aria-label="Servers panel"><button aria-expanded="false" aria-label="Expand servers panel" class="flex items-center gap-2 px-2.5 py-2 border-b text-[11px] font-semibold tracking-wide select-none" style="color:var(--fg);border-color:var(--border)"><svg class="w-4 h-4 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="6" rx="1.5"></rect><rect x="3" y="14" width="18" height="6" rx="1.5"></rect><circle cx="7" cy="7" r="0.7" fill="currentColor"></circle><circle cx="7" cy="17" r="0.7" fill="currentColor"></circle></svg></button></aside></div><script src="/_next/static/chunks/05oi25hh7b81r.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[24156,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"ThemeProvider\"]\n3:I[11449,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"NetworkProvider\"]\n4:I[28516,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"PwaInstaller\"]\n5:I[22485,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"AppShell\"]\n6:I[10561,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"default\"]\n7:I[85887,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"default\"]\n8:I[1185,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nc:I[1185,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"ViewportBoundary\"]\ne:I[1185,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"MetadataBoundary\"]\n10:I[95183,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/066jf0nk75nic.css\",\"style\"]\n:HL[\"/_next/static/chunks/04uju~n5s9g7..css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/066jf0nk75nic.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/04uju~n5s9g7..css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0u240x6paxno2.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/149a4l50_3vw-.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/0u3b93reo9xci.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"data-theme\":\"cyber\",\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable h-full antialiased\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\ntry {\\n var t = localStorage.getItem('anet-theme') || 'cyber';\\n document.documentElement.setAttribute('data-theme', t);\\n} catch (e) {}\\n\"}}]}],[\"$\",\"body\",null,{\"className\":\"min-h-full\",\"style\":{\"background\":\"var(--bg)\",\"color\":\"var(--fg)\"},\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[[\"$\",\"$L4\",null,{}],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,null]},null,false,\"$@b\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lc\",null,{\"children\":\"$Ld\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$10\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/066jf0nk75nic.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/04uju~n5s9g7..css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"W8km2n6VCMAi_E7EBSqcm\"}\n"])</script><script>self.__next_f.push([1,"11:[]\nb:\"$W11\"\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, viewport-fit=cover\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#0b0b0d\"}]]\n"])</script><script>self.__next_f.push([1,"12:I[1974,[\"/_next/static/chunks/0u240x6paxno2.js\",\"/_next/static/chunks/0_bn~gcrgo.4n.js\",\"/_next/static/chunks/149a4l50_3vw-.js\",\"/_next/static/chunks/0u3b93reo9xci.js\"],\"IconMark\"]\na:null\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"title\",\"0\",{\"children\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes via CommHub\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"3\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"4\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"Agent Network\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"meta\",\"7\",{\"property\":\"og:title\",\"content\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"8\",{\"property\":\"og:description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes\"}],[\"$\",\"meta\",\"9\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"10\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"11\",{\"name\":\"twitter:title\",\"content\":\"Agent Network Dashboard\"}],[\"$\",\"meta\",\"12\",{\"name\":\"twitter:description\",\"content\":\"Real-time monitoring dashboard for Agent Network nodes\"}],[\"$\",\"link\",\"13\",{\"rel\":\"shortcut icon\",\"href\":\"/favicon.svg\"}],[\"$\",\"link\",\"14\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"15\",{\"rel\":\"icon\",\"href\":\"/favicon.svg\",\"type\":\"image/svg+xml\"}],[\"$\",\"link\",\"16\",{\"rel\":\"apple-touch-icon\",\"href\":\"/sleep2agi-logo.svg\",\"type\":\"image/svg+xml\"}],[\"$\",\"$L12\",\"17\",{}]]\n"])</script></body></html>