@sleep2agi/agent-network-dashboard 0.4.6-preview.21 → 0.4.6-preview.211
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.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +1 -0
- package/.next/build-manifest.json +3 -3
- package/.next/diagnostics/route-bundle-stats.json +41 -41
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/routes-manifest.json +6 -0
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +12 -12
- package/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
- package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
- package/.next/server/app/admin.html +2 -2
- package/.next/server/app/admin.rsc +14 -14
- package/.next/server/app/admin.segments/_full.segment.rsc +14 -14
- package/.next/server/app/admin.segments/_head.segment.rsc +4 -4
- package/.next/server/app/admin.segments/_index.segment.rsc +7 -7
- package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/admin.segments/admin.segment.rsc +3 -3
- package/.next/server/app/api/hub/servers/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/hub/servers/route/build-manifest.json +9 -0
- package/.next/server/app/api/hub/servers/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/hub/servers/route.js +7 -0
- package/.next/server/app/api/hub/servers/route.js.map +5 -0
- package/.next/server/app/api/hub/servers/route.js.nft.json +1 -0
- package/.next/server/app/api/hub/servers/route_client-reference-manifest.js +3 -0
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +14 -14
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/index.segments/_full.segment.rsc +14 -14
- package/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/server/app/index.segments/_index.segment.rsc +7 -7
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +2 -2
- package/.next/server/app/login.rsc +14 -14
- package/.next/server/app/login.segments/_full.segment.rsc +14 -14
- package/.next/server/app/login.segments/_head.segment.rsc +4 -4
- package/.next/server/app/login.segments/_index.segment.rsc +7 -7
- package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/login.segments/login.segment.rsc +3 -3
- package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/logs.html +2 -2
- package/.next/server/app/logs.rsc +14 -14
- package/.next/server/app/logs.segments/_full.segment.rsc +14 -14
- package/.next/server/app/logs.segments/_head.segment.rsc +4 -4
- package/.next/server/app/logs.segments/_index.segment.rsc +7 -7
- package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/logs.segments/logs.segment.rsc +3 -3
- package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
- package/.next/server/app/messages.html +2 -2
- package/.next/server/app/messages.rsc +14 -14
- package/.next/server/app/messages.segments/_full.segment.rsc +14 -14
- package/.next/server/app/messages.segments/_head.segment.rsc +4 -4
- package/.next/server/app/messages.segments/_index.segment.rsc +7 -7
- package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/messages.segments/messages.segment.rsc +3 -3
- package/.next/server/app/node/page_client-reference-manifest.js +1 -1
- package/.next/server/app/node.html +2 -2
- package/.next/server/app/node.rsc +14 -14
- package/.next/server/app/node.segments/_full.segment.rsc +14 -14
- package/.next/server/app/node.segments/_head.segment.rsc +4 -4
- package/.next/server/app/node.segments/_index.segment.rsc +7 -7
- package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/node.segments/node.segment.rsc +3 -3
- package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
- package/.next/server/app/nodes.html +2 -2
- package/.next/server/app/nodes.rsc +14 -14
- package/.next/server/app/nodes.segments/_full.segment.rsc +14 -14
- package/.next/server/app/nodes.segments/_head.segment.rsc +4 -4
- package/.next/server/app/nodes.segments/_index.segment.rsc +7 -7
- package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/nodes.segments/nodes.segment.rsc +3 -3
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/server-logs.html +2 -2
- package/.next/server/app/server-logs.rsc +14 -14
- package/.next/server/app/server-logs.segments/_full.segment.rsc +14 -14
- package/.next/server/app/server-logs.segments/_head.segment.rsc +4 -4
- package/.next/server/app/server-logs.segments/_index.segment.rsc +7 -7
- package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/server-logs.segments/server-logs.segment.rsc +3 -3
- package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/networks.html +2 -2
- package/.next/server/app/settings/networks.rsc +14 -14
- package/.next/server/app/settings/networks.segments/_full.segment.rsc +14 -14
- package/.next/server/app/settings/networks.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/networks.segments/_index.segment.rsc +7 -7
- package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +3 -3
- package/.next/server/app/settings/networks.segments/settings.segment.rsc +3 -3
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/tokens.html +2 -2
- package/.next/server/app/settings/tokens.rsc +14 -14
- package/.next/server/app/settings/tokens.segments/_full.segment.rsc +14 -14
- package/.next/server/app/settings/tokens.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/tokens.segments/_index.segment.rsc +7 -7
- package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +3 -3
- package/.next/server/app/settings/tokens.segments/settings.segment.rsc +3 -3
- package/.next/server/app/settings.html +2 -2
- package/.next/server/app/settings.rsc +14 -14
- package/.next/server/app/settings.segments/_full.segment.rsc +14 -14
- package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings.segments/_index.segment.rsc +7 -7
- package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
- package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
- package/.next/server/app/tasks.html +2 -2
- package/.next/server/app/tasks.rsc +14 -14
- package/.next/server/app/tasks.segments/_full.segment.rsc +14 -14
- package/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
- package/.next/server/app/tasks.segments/_index.segment.rsc +7 -7
- package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
- package/.next/server/app-paths-manifest.json +1 -0
- package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_servers_route_actions_08-m-cs.js +3 -0
- package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_servers_route_actions_08-m-cs.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0tx8s8i._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0tx8s8i._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__03b.f76._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__03b.f76._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0fhoq8i._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0fhoq8i._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +4 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_057q.ne._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_057q.ne._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0_d45-d._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0_d45-d._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0i3759l._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0i3759l._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0xgney8._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_0xgney8._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_10hjgv4._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_10hjgv4._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_12l4oto._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_12l4oto._.js.map +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js +1 -1
- package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/0-mpa_947ipeq.js +1 -0
- package/.next/static/chunks/01lmbsd37fybu.js +1 -0
- package/.next/static/chunks/03o.h6kvmw4l_.js +1 -0
- package/.next/static/chunks/03~~oirxz7~vc.js +1 -0
- package/.next/static/chunks/05uk96gc~9mni.js +1 -0
- package/.next/static/chunks/08kf-.bgs10ze.js +1 -0
- package/.next/static/chunks/09mo5s0d1t.rl.js +4 -0
- package/.next/static/chunks/0_tufsuno-ybu.js +1 -0
- package/.next/static/chunks/0ggj5ummw2a84.js +7 -0
- package/.next/static/chunks/0glmrdj9112tc.js +7 -0
- package/.next/static/chunks/0rxrez_cjn.eh.js +1 -0
- package/.next/static/chunks/0x8x.29hkju5a.js +1 -0
- package/.next/static/chunks/0yjst6n4eqy4c.js +1 -0
- package/.next/static/chunks/0~k1yvhakbob6.css +2 -0
- package/.next/static/chunks/174re5ar~kxne.js +1 -0
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/.next/types/routes.d.ts +2 -1
- package/.next/types/validator.ts +9 -0
- package/app/api/hub/servers/route.ts +39 -0
- package/app/components/ChatPopover.tsx +38 -2
- package/app/components/CommandPalette.tsx +107 -0
- package/app/components/HelpOverlay.tsx +126 -0
- package/app/components/ServersDrawer.tsx +64 -27
- package/app/components/TopoGraph.tsx +4228 -255
- package/app/components/utils.ts +8 -7
- package/app/globals.css +110 -5
- package/app/lib/time.ts +36 -0
- package/package.json +1 -1
- package/scripts/help-overlay-topo-test.mjs +44 -0
- package/scripts/servers-drawer-live-test.mjs +96 -0
- package/scripts/topo-active-filter-pill-test.mjs +101 -0
- package/scripts/topo-active-links-chip-hover-test.mjs +103 -0
- package/scripts/topo-active-links-chip-nav-test.mjs +117 -0
- package/scripts/topo-active-links-chip-self-hover-test.mjs +171 -0
- package/scripts/topo-active-links-chip-test.mjs +73 -0
- package/scripts/topo-active-links-freshness-test.mjs +113 -0
- package/scripts/topo-active-links-tooltip-test.mjs +79 -0
- package/scripts/topo-arrival-ping-test.mjs +87 -0
- package/scripts/topo-arrow-tier-test.mjs +61 -0
- package/scripts/topo-auto-fit-test.mjs +73 -0
- package/scripts/topo-canvas-aria-test.mjs +108 -0
- package/scripts/topo-chat-target-breath-test.mjs +84 -0
- package/scripts/topo-chat-target-ring-fade-test.mjs +124 -0
- package/scripts/topo-chip-focus-test.mjs +95 -0
- package/scripts/topo-chip-pin-mirror-test.mjs +113 -0
- package/scripts/topo-chrome-a11y-test.mjs +107 -0
- package/scripts/topo-chrome-press-state-test.mjs +135 -0
- package/scripts/topo-chrome-zoom-level-pop-test.mjs +122 -0
- package/scripts/topo-chrome-zoom-pop-test.mjs +130 -0
- package/scripts/topo-click-ripple-test.mjs +66 -0
- package/scripts/topo-cmdk-edge-clear-test.mjs +109 -0
- package/scripts/topo-cmdk-layout-view-test.mjs +108 -0
- package/scripts/topo-cmdk-pin-test.mjs +123 -0
- package/scripts/topo-cmdk-vendor-clear-test.mjs +133 -0
- package/scripts/topo-cmdk-vendor-pin-test.mjs +103 -0
- package/scripts/topo-cwd-tooltip-test.mjs +64 -0
- package/scripts/topo-dblclick-reset-test.mjs +74 -0
- package/scripts/topo-discrete-zoom-smooth-test.mjs +125 -0
- package/scripts/topo-dispatch-pulse-test.mjs +83 -0
- package/scripts/topo-edge-badge-click-pin-test.mjs +94 -0
- package/scripts/topo-edge-badge-hot-test.mjs +115 -0
- package/scripts/topo-edge-badge-hover-test.mjs +85 -0
- package/scripts/topo-edge-badge-lift-test.mjs +150 -0
- package/scripts/topo-edge-badge-ripple-test.mjs +111 -0
- package/scripts/topo-edge-badge-stroke-transition-test.mjs +118 -0
- package/scripts/topo-edge-count-badge-test.mjs +86 -0
- package/scripts/topo-edge-endpoint-highlight-test.mjs +111 -0
- package/scripts/topo-edge-fadein-test.mjs +106 -0
- package/scripts/topo-edge-focus-test.mjs +113 -0
- package/scripts/topo-edge-hover-test.mjs +93 -0
- package/scripts/topo-edge-pill-hot-test.mjs +129 -0
- package/scripts/topo-edge-pill-test.mjs +105 -0
- package/scripts/topo-edge-stroke-transition-test.mjs +132 -0
- package/scripts/topo-edge-tooltip-test.mjs +70 -0
- package/scripts/topo-empty-state-breath-test.mjs +150 -0
- package/scripts/topo-endpoint-ring-fade-test.mjs +132 -0
- package/scripts/topo-endpoint-ring-test.mjs +93 -0
- package/scripts/topo-esc-clears-pin-test.mjs +98 -0
- package/scripts/topo-filter-pill-aliases-test.mjs +121 -0
- package/scripts/topo-filter-pill-body-click-test.mjs +112 -0
- package/scripts/topo-filter-pill-count-test.mjs +110 -0
- package/scripts/topo-filter-pill-mobile-test.mjs +90 -0
- package/scripts/topo-fit-key-test.mjs +106 -0
- package/scripts/topo-freshness-chip-test.mjs +74 -0
- package/scripts/topo-freshness-chip-transition-test.mjs +80 -0
- package/scripts/topo-fullscreen-active-test.mjs +115 -0
- package/scripts/topo-group-box-pinned-state-test.mjs +95 -0
- package/scripts/topo-group-count-test.mjs +68 -0
- package/scripts/topo-group-hover-test.mjs +82 -0
- package/scripts/topo-group-label-a11y-test.mjs +113 -0
- package/scripts/topo-group-label-hover-test.mjs +119 -0
- package/scripts/topo-group-label-tint-test.mjs +99 -0
- package/scripts/topo-group-label-title-test.mjs +83 -0
- package/scripts/topo-group-pin-test.mjs +119 -0
- package/scripts/topo-group-status-pips-test.mjs +103 -0
- package/scripts/topo-groupbox-fadein-test.mjs +95 -0
- package/scripts/topo-groupbox-hover-lift-test.mjs +127 -0
- package/scripts/topo-groupbox-live-test.mjs +100 -0
- package/scripts/topo-groupbox-march-busyness-test.mjs +155 -0
- package/scripts/topo-groupbox-test.mjs +4 -2
- package/scripts/topo-help-overlay-r109-test.mjs +67 -0
- package/scripts/topo-help-overlay-r118-test.mjs +69 -0
- package/scripts/topo-help-overlay-r123-test.mjs +69 -0
- package/scripts/topo-help-overlay-r134-test.mjs +74 -0
- package/scripts/topo-help-overlay-r137-test.mjs +81 -0
- package/scripts/topo-help-overlay-r141-test.mjs +86 -0
- package/scripts/topo-help-overlay-r153-test.mjs +85 -0
- package/scripts/topo-help-overlay-r59-test.mjs +67 -0
- package/scripts/topo-help-overlay-r65-test.mjs +64 -0
- package/scripts/topo-help-overlay-r70-test.mjs +63 -0
- package/scripts/topo-help-overlay-r78-test.mjs +59 -0
- package/scripts/topo-help-overlay-r81-test.mjs +58 -0
- package/scripts/topo-help-overlay-r87-test.mjs +64 -0
- package/scripts/topo-help-overlay-r91-test.mjs +65 -0
- package/scripts/topo-hub-a11y-test.mjs +112 -0
- package/scripts/topo-hub-busyness-test.mjs +100 -0
- package/scripts/topo-hub-click-fit-test.mjs +137 -0
- package/scripts/topo-hub-fadein-test.mjs +88 -0
- package/scripts/topo-hub-hover-lift-test.mjs +101 -0
- package/scripts/topo-hub-hover-ring-test.mjs +82 -0
- package/scripts/topo-hub-title-test.mjs +93 -0
- package/scripts/topo-hub-working-count-test.mjs +99 -0
- package/scripts/topo-ingroup-edge-test.mjs +103 -0
- package/scripts/topo-label-lift-test.mjs +119 -0
- package/scripts/topo-label-scale-test.mjs +78 -0
- package/scripts/topo-lastseen-tooltip-test.mjs +59 -0
- package/scripts/topo-layout-key-test.mjs +91 -0
- package/scripts/topo-layout-switch-crossfade-test.mjs +126 -0
- package/scripts/topo-layout-toggle-test.mjs +131 -0
- package/scripts/topo-legend-count-empty-test.mjs +126 -0
- package/scripts/topo-legend-count-test.mjs +88 -0
- package/scripts/topo-legend-hover-test.mjs +113 -0
- package/scripts/topo-legend-panel-header-test.mjs +83 -0
- package/scripts/topo-legend-pin-ring-fade-test.mjs +112 -0
- package/scripts/topo-legend-pin-test.mjs +128 -0
- package/scripts/topo-legend-row-hover-lift-test.mjs +109 -0
- package/scripts/topo-legend-row-tint-test.mjs +95 -0
- package/scripts/topo-legend-row-title-test.mjs +102 -0
- package/scripts/topo-legend-swatch-grow-test.mjs +116 -0
- package/scripts/topo-minimap-a11y-test.mjs +101 -0
- package/scripts/topo-minimap-dot-transition-test.mjs +113 -0
- package/scripts/topo-minimap-test.mjs +68 -0
- package/scripts/topo-minimap-viewport-smooth-test.mjs +124 -0
- package/scripts/topo-mobile-chips-test.mjs +103 -0
- package/scripts/topo-node-a11y-test.mjs +107 -0
- package/scripts/topo-node-hover-lift-test.mjs +85 -0
- package/scripts/topo-node-label-card-elevation-test.mjs +157 -0
- package/scripts/topo-node-stroke-transition-test.mjs +103 -0
- package/scripts/topo-node-title-peers-test.mjs +107 -0
- package/scripts/topo-node-title-test.mjs +101 -0
- package/scripts/topo-nodesize-active-hover-test.mjs +109 -0
- package/scripts/topo-nodesize-crossfade-test.mjs +141 -0
- package/scripts/topo-offline-dim-test.mjs +70 -0
- package/scripts/topo-online-chip-nav-test.mjs +143 -0
- package/scripts/topo-orbit-busyness-test.mjs +96 -0
- package/scripts/topo-overlap-test.mjs +32 -5
- package/scripts/topo-pan-cursor-test.mjs +62 -0
- package/scripts/topo-panel-elevation-test.mjs +76 -0
- package/scripts/topo-panel-fadein-test.mjs +102 -0
- package/scripts/topo-panel-hot-tail-fade-test.mjs +124 -0
- package/scripts/topo-panel-hover-elevation-test.mjs +118 -0
- package/scripts/topo-particle-stagger-test.mjs +82 -0
- package/scripts/topo-pin-intersection-empty-test.mjs +129 -0
- package/scripts/topo-pin-intersection-test.mjs +121 -0
- package/scripts/topo-pin-mirror-transition-test.mjs +101 -0
- package/scripts/topo-pin-persistence-test.mjs +105 -0
- package/scripts/topo-popover-meta-test.mjs +78 -0
- package/scripts/topo-pressure-bar-test.mjs +69 -0
- package/scripts/topo-pressure-hover-test.mjs +123 -0
- package/scripts/topo-pressure-pin-test.mjs +119 -0
- package/scripts/topo-pressure-seg-tooltip-test.mjs +98 -0
- package/scripts/topo-pressure-seg-transition-test.mjs +107 -0
- package/scripts/topo-pulse-rate-test.mjs +71 -0
- package/scripts/topo-recent-panel-count-freshness-test.mjs +109 -0
- package/scripts/topo-recent-panel-count-test.mjs +72 -0
- package/scripts/topo-recent-panel-hot-header-test.mjs +132 -0
- package/scripts/topo-recent-panel-more-cyan-hover-test.mjs +151 -0
- package/scripts/topo-recent-panel-more-nav-test.mjs +127 -0
- package/scripts/topo-recent-panel-more-test.mjs +106 -0
- package/scripts/topo-recent-row-count-fill-test.mjs +129 -0
- package/scripts/topo-recent-row-fadein-test.mjs +107 -0
- package/scripts/topo-recent-row-freshness-test.mjs +102 -0
- package/scripts/topo-recent-row-hot-test.mjs +110 -0
- package/scripts/topo-recent-row-hover-lift-test.mjs +128 -0
- package/scripts/topo-recent-row-hover-test.mjs +122 -0
- package/scripts/topo-recent-row-pin-test.mjs +126 -0
- package/scripts/topo-recent-row-tint-test.mjs +91 -0
- package/scripts/topo-recent-row-title-test.mjs +112 -0
- package/scripts/topo-recent-row-ts-alpha-test.mjs +100 -0
- package/scripts/topo-recent-row-ts-test.mjs +95 -0
- package/scripts/topo-recent-row-typography-test.mjs +119 -0
- package/scripts/topo-recent-signal-empty-hint-test.mjs +73 -0
- package/scripts/topo-recent-signal-empty-test.mjs +63 -0
- package/scripts/topo-reduced-motion-test.mjs +77 -0
- package/scripts/topo-reset-spin-test.mjs +120 -0
- package/scripts/topo-spoke-busyness-test.mjs +110 -0
- package/scripts/topo-status-chip-hover-test.mjs +101 -0
- package/scripts/topo-status-chip-tooltip-test.mjs +95 -0
- package/scripts/topo-statusbar-chips-self-hover-test.mjs +177 -0
- package/scripts/topo-svg-focus-test.mjs +112 -0
- package/scripts/topo-sweep-busyness-test.mjs +94 -0
- package/scripts/topo-tier-ring-fadein-test.mjs +107 -0
- package/scripts/topo-tier-ring-occupancy-test.mjs +87 -0
- package/scripts/topo-tier-ring-test.mjs +69 -0
- package/scripts/topo-tier-ring-tint-test.mjs +110 -0
- package/scripts/topo-tier-stagger-test.mjs +89 -0
- package/scripts/topo-tz-ghost-test.mjs +69 -0
- package/scripts/topo-vendor-chip-hover-test.mjs +111 -0
- package/scripts/topo-vendor-chip-self-hover-test.mjs +130 -0
- package/scripts/topo-vendor-letter-tooltip-test.mjs +92 -0
- package/scripts/topo-vendor-pill-test.mjs +125 -0
- package/scripts/topo-vendor-pin-test.mjs +125 -0
- package/scripts/topo-view-smooth-test.mjs +131 -0
- package/scripts/topo-wheel-zoom-test.mjs +79 -0
- package/scripts/topo-working-chip-pin-test.mjs +154 -0
- package/scripts/topo-working-halo-breath-test.mjs +86 -0
- package/scripts/topo-zoom-keys-test.mjs +89 -0
- package/.next/static/chunks/0-7iowzu4.798.js +0 -1
- package/.next/static/chunks/01j59m93~ijpq.js +0 -1
- package/.next/static/chunks/02t5jr4shh.hy.js +0 -1
- package/.next/static/chunks/09nd.t_hd.y6t.css +0 -2
- package/.next/static/chunks/0_qfg5s5uzs7..js +0 -7
- package/.next/static/chunks/0elalb9n_.~di.js +0 -1
- package/.next/static/chunks/0fqy_0wj_1xa7.js +0 -7
- package/.next/static/chunks/0j_q__o8p6g83.js +0 -1
- package/.next/static/chunks/0jl6_w50zh4l5.js +0 -1
- package/.next/static/chunks/0ms~5~zq93-vs.js +0 -1
- package/.next/static/chunks/0nh4tljy5z5ns.js +0 -1
- package/.next/static/chunks/0r4q73.-1bkyl.js +0 -1
- package/.next/static/chunks/0r_c8eccg3z2o.js +0 -1
- package/.next/static/chunks/10oi7l-tycgl9.js +0 -1
- package/.next/static/chunks/11uk1izuv3~0t.js +0 -1
- /package/.next/static/{XiA2VWgHsZvuY-5yWxSPj → FMKI0Nb4m8uK25F_8komz}/_buildManifest.js +0 -0
- /package/.next/static/{XiA2VWgHsZvuY-5yWxSPj → FMKI0Nb4m8uK25F_8komz}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{XiA2VWgHsZvuY-5yWxSPj → FMKI0Nb4m8uK25F_8komz}/_ssgManifest.js +0 -0
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":5333636,"timestamp":76411681039,"id":14,"parentId":1,"tags":{},"startTime":1778884383927,"traceId":"00b6b6845ae8baf2"},{"name":"turbopack-build-events","duration":103,"timestamp":76411948783,"id":15,"parentId":1,"tags":{},"startTime":1778884384195,"traceId":"00b6b6845ae8baf2"},{"name":"run-typescript","duration":8190124,"timestamp":76417024544,"id":16,"parentId":1,"tags":{},"startTime":1778884389271,"traceId":"00b6b6845ae8baf2"},{"name":"static-check","duration":695975,"timestamp":76425404197,"id":19,"parentId":1,"tags":{},"startTime":1778884397650,"traceId":"00b6b6845ae8baf2"},{"name":"static-generation","duration":624792,"timestamp":76426113420,"id":105,"parentId":1,"tags":{},"startTime":1778884398360,"traceId":"00b6b6845ae8baf2"},{"name":"telemetry-flush","duration":27212,"timestamp":76426772497,"id":114,"parentId":1,"tags":{},"startTime":1778884399019,"traceId":"00b6b6845ae8baf2"},{"name":"next-build","duration":15309792,"timestamp":76411489943,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778884383736,"traceId":"00b6b6845ae8baf2"}]
|
package/.next/types/routes.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Do not edit this file manually
|
|
3
3
|
|
|
4
4
|
type AppRoutes = "/" | "/admin" | "/login" | "/logs" | "/messages" | "/node" | "/nodes" | "/server-logs" | "/settings" | "/settings/networks" | "/settings/tokens" | "/tasks" | "/tasks/[id]"
|
|
5
|
-
type AppRouteHandlerRoutes = "/api/anet/config" | "/api/auth/login" | "/api/auth/logout" | "/api/auth/v3" | "/api/hub/audit-log" | "/api/hub/auth" | "/api/hub/broadcast" | "/api/hub/events" | "/api/hub/health" | "/api/hub/inbox" | "/api/hub/license" | "/api/hub/messages" | "/api/hub/networks" | "/api/hub/nodes" | "/api/hub/register" | "/api/hub/send" | "/api/hub/server-logs" | "/api/hub/session" | "/api/hub/stats" | "/api/hub/status" | "/api/hub/task-events" | "/api/hub/tasks" | "/api/hub/tmux" | "/api/hub/tokens"
|
|
5
|
+
type AppRouteHandlerRoutes = "/api/anet/config" | "/api/auth/login" | "/api/auth/logout" | "/api/auth/v3" | "/api/hub/audit-log" | "/api/hub/auth" | "/api/hub/broadcast" | "/api/hub/events" | "/api/hub/health" | "/api/hub/inbox" | "/api/hub/license" | "/api/hub/messages" | "/api/hub/networks" | "/api/hub/nodes" | "/api/hub/register" | "/api/hub/send" | "/api/hub/server-logs" | "/api/hub/servers" | "/api/hub/session" | "/api/hub/stats" | "/api/hub/status" | "/api/hub/task-events" | "/api/hub/tasks" | "/api/hub/tmux" | "/api/hub/tokens"
|
|
6
6
|
type PageRoutes = never
|
|
7
7
|
type LayoutRoutes = "/"
|
|
8
8
|
type RedirectRoutes = never
|
|
@@ -30,6 +30,7 @@ interface ParamMap {
|
|
|
30
30
|
"/api/hub/register": {}
|
|
31
31
|
"/api/hub/send": {}
|
|
32
32
|
"/api/hub/server-logs": {}
|
|
33
|
+
"/api/hub/servers": {}
|
|
33
34
|
"/api/hub/session": {}
|
|
34
35
|
"/api/hub/stats": {}
|
|
35
36
|
"/api/hub/status": {}
|
package/.next/types/validator.ts
CHANGED
|
@@ -317,6 +317,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
317
317
|
type __Unused = __Check
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
+
// Validate ../../app/api/hub/servers/route.ts
|
|
321
|
+
{
|
|
322
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/hub/servers">> = Specific
|
|
323
|
+
const handler = {} as typeof import("../../app/api/hub/servers/route.js")
|
|
324
|
+
type __Check = __IsExpected<typeof handler>
|
|
325
|
+
// @ts-ignore
|
|
326
|
+
type __Unused = __Check
|
|
327
|
+
}
|
|
328
|
+
|
|
320
329
|
// Validate ../../app/api/hub/session/route.ts
|
|
321
330
|
{
|
|
322
331
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/hub/session">> = Specific
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { requireDashboardAuth, getV3UserToken } from '@/app/lib/dashboard-auth';
|
|
2
|
+
|
|
3
|
+
const HUB_URL = process.env.COMMHUB_URL || 'http://127.0.0.1:9200';
|
|
4
|
+
|
|
5
|
+
async function hubHeaders(): Promise<Record<string, string>> {
|
|
6
|
+
const userToken = await getV3UserToken();
|
|
7
|
+
const h: Record<string, string> = {};
|
|
8
|
+
if (userToken) h['Authorization'] = `Bearer ${userToken}`;
|
|
9
|
+
return h;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Proxy: GET /api/servers from CommHub. Aggregates host telemetry across
|
|
14
|
+
* sessions and returns one card per server (hostname, ip, cpu/mem load,
|
|
15
|
+
* agent_count, status). Per issue #119; lands in v0.8.1-preview.2 of the
|
|
16
|
+
* commhub-server (通信牛). The dashboard <ServersDrawer> mounts in
|
|
17
|
+
* AppShell and refreshes every 5s when expanded.
|
|
18
|
+
*/
|
|
19
|
+
export async function GET() {
|
|
20
|
+
const authFailure = await requireDashboardAuth();
|
|
21
|
+
if (authFailure) return authFailure;
|
|
22
|
+
|
|
23
|
+
try {
|
|
24
|
+
const res = await fetch(`${HUB_URL}/api/servers`, {
|
|
25
|
+
headers: await hubHeaders(),
|
|
26
|
+
next: { revalidate: 0 },
|
|
27
|
+
});
|
|
28
|
+
if (!res.ok) {
|
|
29
|
+
// 404 means the upstream hub predates v0.8.1-preview.2 — surface a
|
|
30
|
+
// 'feature unavailable' shape so the drawer can render a friendly
|
|
31
|
+
// empty state instead of an angry error.
|
|
32
|
+
if (res.status === 404) return Response.json({ servers: [], unavailable: true });
|
|
33
|
+
return Response.json({ error: `hub ${res.status}` }, { status: res.status });
|
|
34
|
+
}
|
|
35
|
+
return Response.json(await res.json());
|
|
36
|
+
} catch (e: unknown) {
|
|
37
|
+
return Response.json({ error: 'hub unreachable', detail: e instanceof Error ? e.message : String(e) }, { status: 502 });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
4
4
|
import { AliasAvatar } from './AliasAvatar';
|
|
5
5
|
import { TaskChatPanel } from './TaskChatPanel';
|
|
6
|
+
import { useSessions } from '../lib/hooks';
|
|
7
|
+
import { relativeAgo } from '../lib/time';
|
|
6
8
|
|
|
7
9
|
interface ChatPopoverProps {
|
|
8
10
|
/** Node alias to chat with. Changing it switches the conversation. */
|
|
@@ -37,6 +39,16 @@ const MOBILE_BP = 640;
|
|
|
37
39
|
* history are already solved there; this component only adds the floating
|
|
38
40
|
* shell + drag/resize behaviour.
|
|
39
41
|
*/
|
|
42
|
+
/** Round 37 / Loop: surface node metadata (cwd + last-seen) inside the
|
|
43
|
+
* ChatPopover header. The SVG <title> tooltip (Rounds 33-34) only shows
|
|
44
|
+
* on hover-over-node, which is lost once the popover is open and
|
|
45
|
+
* potentially dragged away. Lifting cwd and last-seen into the popover
|
|
46
|
+
* header keeps the context where the user actually needs it.
|
|
47
|
+
*
|
|
48
|
+
* Round 38: relativeAgo factored to app/lib/time.ts so this file shares
|
|
49
|
+
* the same TZ-safe parser as TopoGraph (was a duplicated mirror until
|
|
50
|
+
* this round). */
|
|
51
|
+
|
|
40
52
|
export function ChatPopover({ alias, onClose }: ChatPopoverProps) {
|
|
41
53
|
// Position + size are resolved on mount (SSR-safe defaults here).
|
|
42
54
|
const [pos, setPos] = useState({ x: 0, y: 0 });
|
|
@@ -48,6 +60,13 @@ export function ChatPopover({ alias, onClose }: ChatPopoverProps) {
|
|
|
48
60
|
active: false, startX: 0, startY: 0, baseW: 0, baseH: 0,
|
|
49
61
|
});
|
|
50
62
|
|
|
63
|
+
// Round 37 / Loop: pull the target session out of the SWR cache that
|
|
64
|
+
// TopoGraph already populates — same URL, so no extra network fetch.
|
|
65
|
+
const { sessions } = useSessions();
|
|
66
|
+
const session = useMemo(() => sessions.find(s => s.alias === alias), [sessions, alias]);
|
|
67
|
+
const isOnline = !!session && session.status !== 'offline';
|
|
68
|
+
const lastSeenLine = !isOnline ? relativeAgo(session?.last_seen_at) : null;
|
|
69
|
+
|
|
51
70
|
const clamp = useCallback((x: number, y: number, w: number, h: number) => {
|
|
52
71
|
const maxX = Math.max(MARGIN, window.innerWidth - w - MARGIN);
|
|
53
72
|
const maxY = Math.max(MARGIN, window.innerHeight - h - MARGIN);
|
|
@@ -146,7 +165,24 @@ export function ChatPopover({ alias, onClose }: ChatPopoverProps) {
|
|
|
146
165
|
<AliasAvatar alias={alias} size={28} />
|
|
147
166
|
<div className="min-w-0">
|
|
148
167
|
<div className="text-sm font-semibold text-[var(--fg)] truncate">{alias}</div>
|
|
149
|
-
|
|
168
|
+
{/* Round 37: cwd / last-seen lines surface the same metadata
|
|
169
|
+
the SVG <title> tooltip carries (rounds 33-34), but inside
|
|
170
|
+
the popover where it stays accessible after dragging the
|
|
171
|
+
window away from the node. Fall back to the drag-hint
|
|
172
|
+
when no metadata is reported. */}
|
|
173
|
+
{session?.project_dir ? (
|
|
174
|
+
<div className="text-[10px] text-[var(--fg-muted)] truncate font-mono" title={session.project_dir} data-popover-cwd>
|
|
175
|
+
cwd: {session.project_dir}
|
|
176
|
+
</div>
|
|
177
|
+
) : null}
|
|
178
|
+
{lastSeenLine ? (
|
|
179
|
+
<div className="text-[10px] text-[var(--fg-muted)] truncate" data-popover-lastseen>
|
|
180
|
+
last seen: {lastSeenLine}
|
|
181
|
+
</div>
|
|
182
|
+
) : null}
|
|
183
|
+
{!session?.project_dir && !lastSeenLine ? (
|
|
184
|
+
<div className="text-[10px] text-[var(--fg-muted)]">Drag to move · Esc to close</div>
|
|
185
|
+
) : null}
|
|
150
186
|
</div>
|
|
151
187
|
</div>
|
|
152
188
|
<button
|
|
@@ -159,6 +159,113 @@ const COMMANDS: Command[] = [
|
|
|
159
159
|
// Dispatch synthetic `?` keydown so HelpOverlay's global listener opens
|
|
160
160
|
window.dispatchEvent(new KeyboardEvent('keydown', { key: '?' }));
|
|
161
161
|
} },
|
|
162
|
+
|
|
163
|
+
// ── Round 69 / Loop: topology filter actions ────────────────
|
|
164
|
+
// Write the pin directly into sessionStorage (the same key R66
|
|
165
|
+
// hydrates from) and broadcast a `storage`-like custom event
|
|
166
|
+
// so TopoGraph picks it up without a reload. Keyboard-accessible
|
|
167
|
+
// filter trigger from anywhere on the dashboard.
|
|
168
|
+
{ id: 'act-pin-working', title: 'Pin topology filter: working', hint: 'highlight working nodes only', group: 'Actions',
|
|
169
|
+
icon: <NavIcon d="M4 6h16M4 12h8m-8 6h16" />,
|
|
170
|
+
perform: () => {
|
|
171
|
+
try { sessionStorage.setItem('anet-topo-pinned-status', 'working'); } catch {}
|
|
172
|
+
window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'status', value: 'working' } }));
|
|
173
|
+
} },
|
|
174
|
+
{ id: 'act-pin-idle', title: 'Pin topology filter: idle', hint: 'highlight idle (online) nodes only', group: 'Actions',
|
|
175
|
+
icon: <NavIcon d="M4 6h16M4 12h8m-8 6h16" />,
|
|
176
|
+
perform: () => {
|
|
177
|
+
try { sessionStorage.setItem('anet-topo-pinned-status', 'idle'); } catch {}
|
|
178
|
+
window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'status', value: 'idle' } }));
|
|
179
|
+
} },
|
|
180
|
+
{ id: 'act-pin-offline', title: 'Pin topology filter: offline', hint: 'highlight offline / no-SSE nodes', group: 'Actions',
|
|
181
|
+
icon: <NavIcon d="M4 6h16M4 12h8m-8 6h16" />,
|
|
182
|
+
perform: () => {
|
|
183
|
+
try { sessionStorage.setItem('anet-topo-pinned-status', 'offline'); } catch {}
|
|
184
|
+
window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'status', value: 'offline' } }));
|
|
185
|
+
} },
|
|
186
|
+
// Round 108 / Loop: pin-vendor palette actions. R88 made vendor
|
|
187
|
+
// letters clickable in the chip row, R89 added the filter pill,
|
|
188
|
+
// R90 added clear-vendor here — but PIN-vendor was missing. Three
|
|
189
|
+
// static commands for the major vendors (Anthropic / OpenAI /
|
|
190
|
+
// 书生) cover the common case; users with unusual vendors still
|
|
191
|
+
// have the chip-row click + cmdk clear path. TopoGraph's R108
|
|
192
|
+
// listener handles kind='vendor' to set the pin. The R88 stale-
|
|
193
|
+
// purge useEffect cleans up if the targeted vendor isn't actually
|
|
194
|
+
// in the fleet, so these commands are safe to invoke any time.
|
|
195
|
+
{ id: 'act-pin-vendor-A', title: 'Pin topology filter: Anthropic', hint: 'highlight A vendor only', group: 'Actions',
|
|
196
|
+
icon: <NavIcon d="M4 6h16M4 12h8m-8 6h16" />,
|
|
197
|
+
perform: () => {
|
|
198
|
+
try { sessionStorage.setItem('anet-topo-pinned-vendor', 'A'); } catch {}
|
|
199
|
+
window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'vendor', value: 'A' } }));
|
|
200
|
+
} },
|
|
201
|
+
{ id: 'act-pin-vendor-O', title: 'Pin topology filter: OpenAI', hint: 'highlight O vendor only', group: 'Actions',
|
|
202
|
+
icon: <NavIcon d="M4 6h16M4 12h8m-8 6h16" />,
|
|
203
|
+
perform: () => {
|
|
204
|
+
try { sessionStorage.setItem('anet-topo-pinned-vendor', 'O'); } catch {}
|
|
205
|
+
window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'vendor', value: 'O' } }));
|
|
206
|
+
} },
|
|
207
|
+
{ id: 'act-pin-vendor-S', title: 'Pin topology filter: 书生', hint: 'highlight 书 vendor only', group: 'Actions',
|
|
208
|
+
icon: <NavIcon d="M4 6h16M4 12h8m-8 6h16" />,
|
|
209
|
+
perform: () => {
|
|
210
|
+
try { sessionStorage.setItem('anet-topo-pinned-vendor', '书'); } catch {}
|
|
211
|
+
window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'vendor', value: '书' } }));
|
|
212
|
+
} },
|
|
213
|
+
{ id: 'act-clear-topo-pins', title: 'Clear topology filters', hint: 'release pinned status + group + vendor + edge', group: 'Actions',
|
|
214
|
+
icon: <NavIcon d="M6 18L18 6M6 6l12 12" />,
|
|
215
|
+
perform: () => {
|
|
216
|
+
try {
|
|
217
|
+
sessionStorage.removeItem('anet-topo-pinned-status');
|
|
218
|
+
sessionStorage.removeItem('anet-topo-pinned-group');
|
|
219
|
+
// Round 90 / Loop: R88 added pinnedVendor as the third filter
|
|
220
|
+
// dimension. The clear-all command must clear it too or it
|
|
221
|
+
// silently retains the vendor pin, which a user would read
|
|
222
|
+
// as a stuck filter.
|
|
223
|
+
// Round 117 / Loop: R116 added pinnedEdgeKey as the fourth pin
|
|
224
|
+
// dim — no sessionStorage (per-tab transient), but the
|
|
225
|
+
// dispatched `clear` event still needs to flip it. The
|
|
226
|
+
// TopoGraph listener handles that.
|
|
227
|
+
sessionStorage.removeItem('anet-topo-pinned-vendor');
|
|
228
|
+
} catch {}
|
|
229
|
+
window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'clear' } }));
|
|
230
|
+
} },
|
|
231
|
+
// Round 117 / Loop: granular edge-only clear, mirror of R90
|
|
232
|
+
// clear-vendor. Releases the pinnedEdgeKey without disturbing
|
|
233
|
+
// status/group/vendor pins. pinnedEdgeKey lives only in React
|
|
234
|
+
// state (no sessionStorage), so the perform is just a dispatch.
|
|
235
|
+
{ id: 'act-clear-topo-edge', title: 'Clear topology edge pin', hint: 'release pinned recent-signal row only', group: 'Actions',
|
|
236
|
+
icon: <NavIcon d="M6 18L18 6M6 6l12 12" />,
|
|
237
|
+
perform: () => {
|
|
238
|
+
window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'clear-edge' } }));
|
|
239
|
+
} },
|
|
240
|
+
// Round 90 / Loop: granular vendor-only clear. R88 added per-letter
|
|
241
|
+
// toggle and Esc-clears-all; this fills the keyboard-only middle
|
|
242
|
+
// ground (release the vendor pin without disturbing status/group).
|
|
243
|
+
// Listed only when the user types "vendor" — fuzzy match still
|
|
244
|
+
// surfaces it under broader queries like "clear".
|
|
245
|
+
{ id: 'act-clear-topo-vendor', title: 'Clear topology vendor filter', hint: 'release pinned vendor only', group: 'Actions',
|
|
246
|
+
icon: <NavIcon d="M6 18L18 6M6 6l12 12" />,
|
|
247
|
+
perform: () => {
|
|
248
|
+
try { sessionStorage.removeItem('anet-topo-pinned-vendor'); } catch {}
|
|
249
|
+
window.dispatchEvent(new CustomEvent('anet:topo-pin', { detail: { kind: 'clear-vendor' } }));
|
|
250
|
+
} },
|
|
251
|
+
|
|
252
|
+
// ── Round 74 / Loop: layout + view shortcuts via the palette ──
|
|
253
|
+
// Sister to R69 pin actions. Layout toggle and fit-to-canvas already
|
|
254
|
+
// have keyboard shortcuts (l / f, per R29 R32) but users who forget
|
|
255
|
+
// the keys can search "layout" / "fit" in the palette instead.
|
|
256
|
+
// Layout: write localStorage in lockstep then broadcast — the storage
|
|
257
|
+
// write matters for SSR (init reader uses it) and the event keeps the
|
|
258
|
+
// mounted canvas in sync without a reload.
|
|
259
|
+
{ id: 'act-topo-toggle-layout', title: 'Toggle topology layout', hint: 'ring ↔ grid (or press `l`)', group: 'Actions',
|
|
260
|
+
icon: <NavIcon d="M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z" />,
|
|
261
|
+
perform: () => {
|
|
262
|
+
window.dispatchEvent(new CustomEvent('anet:topo-layout', { detail: { kind: 'toggle' } }));
|
|
263
|
+
} },
|
|
264
|
+
{ id: 'act-topo-fit', title: 'Fit topology to canvas', hint: 'auto-zoom to content (or press `f`)', group: 'Actions',
|
|
265
|
+
icon: <NavIcon d="M4 8V4h4M16 4h4v4M20 16v4h-4M8 20H4v-4" />,
|
|
266
|
+
perform: () => {
|
|
267
|
+
window.dispatchEvent(new CustomEvent('anet:topo-view', { detail: { kind: 'fit' } }));
|
|
268
|
+
} },
|
|
162
269
|
];
|
|
163
270
|
|
|
164
271
|
export function CommandPalette() {
|
|
@@ -44,6 +44,132 @@ const SHORTCUTS: { group: string; items: Shortcut[] }[] = [
|
|
|
44
44
|
{ keys: ['type'], label: 'Filter — searches commands, agents, tasks' },
|
|
45
45
|
],
|
|
46
46
|
},
|
|
47
|
+
// Round 25 / Loop: TopoGraph keys + mouse gestures from rounds 21-23
|
|
48
|
+
// were only surfaced in button titles. Consolidating here gives the
|
|
49
|
+
// Help overlay (the canonical discovery surface) a single place to
|
|
50
|
+
// learn the canvas controls.
|
|
51
|
+
{
|
|
52
|
+
group: 'Topology canvas',
|
|
53
|
+
items: [
|
|
54
|
+
{ keys: ['+'], label: 'Zoom in (also =)' },
|
|
55
|
+
{ keys: ['−'], label: 'Zoom out' },
|
|
56
|
+
{ keys: ['0'], label: 'Reset zoom + pan' },
|
|
57
|
+
{ keys: ['f'], label: 'Fit topology to canvas' },
|
|
58
|
+
{ keys: ['l'], label: 'Toggle layout (ring ↔ grid)' },
|
|
59
|
+
{ keys: ['⌘', 'wheel'], label: 'Zoom toward cursor (Ctrl on Windows/Linux)' },
|
|
60
|
+
{ keys: ['drag'], label: 'Pan the canvas (cursor → grabbing)' },
|
|
61
|
+
{ keys: ['dbl-click'], label: 'Reset zoom + pan (empty canvas only)' },
|
|
62
|
+
{ keys: ['click'], label: 'Open chat popover on a node (Esc to close)' },
|
|
63
|
+
// Round 59 / Loop: discoverability for the interactions added in
|
|
64
|
+
// R52 (hub click), R55 (legend status hover), R56 (recent-signal
|
|
65
|
+
// row hover). All three live inside the topology canvas, so this
|
|
66
|
+
// is the right group for the new entries.
|
|
67
|
+
{ keys: ['click hub'], label: 'Fit topology to canvas (R52)' },
|
|
68
|
+
{ keys: ['hover legend'], label: 'Highlight nodes of a status (R55)' },
|
|
69
|
+
{ keys: ['hover signal'], label: 'Highlight one flow edge (R56)' },
|
|
70
|
+
// Round 62 / Loop: R60 + R61 added click-to-pin on the pressure
|
|
71
|
+
// chip and legend rows; R62 added Esc to release the pin. Pin
|
|
72
|
+
// gives users a sticky filter (vs R55 transient hover).
|
|
73
|
+
{ keys: ['click chip'], label: 'Pin a status filter (R60/R61)' },
|
|
74
|
+
{ keys: ['Esc'], label: 'Clear pinned filter (R62) — or close chat' },
|
|
75
|
+
// Round 65 / Loop: R63 added group-pin via group label click; R64
|
|
76
|
+
// added active-filter pills in the chip row with per-pill ×
|
|
77
|
+
// clear. Both compose with the R62 Esc keystroke (single press
|
|
78
|
+
// clears everything pinned).
|
|
79
|
+
{ keys: ['click group'], label: 'Pin a team focus (R63)' },
|
|
80
|
+
{ keys: ['click ×'], label: 'Clear one filter (R64) — Esc clears all' },
|
|
81
|
+
// Round 70 / Loop: R69 added 4 Cmd+K palette actions that pin/
|
|
82
|
+
// clear topology filters from anywhere. Surface them so keyboard
|
|
83
|
+
// power users find the shortcut without spelunking the palette.
|
|
84
|
+
{ keys: ['⌘', 'K'], label: 'Pin / clear filters via palette → "Pin topology filter…" (R69)' },
|
|
85
|
+
// Round 74 / Loop: palette also exposes layout + view actions —
|
|
86
|
+
// a search-friendly alternative to the `l` (R32) and `f` (R29)
|
|
87
|
+
// keyboard shortcuts for users who can't remember them.
|
|
88
|
+
{ keys: ['⌘', 'K'], label: 'Toggle layout / Fit canvas via palette (R74)' },
|
|
89
|
+
// Round 78 / Loop: surface R73 (whole pill body is a click target)
|
|
90
|
+
// and R77 (active-links chip hover → boost all flow edges) —
|
|
91
|
+
// both are real user gestures that weren't in the help overlay.
|
|
92
|
+
{ keys: ['click pill'], label: 'Clear filter — click anywhere on the pill body (R73)' },
|
|
93
|
+
{ keys: ['hover chip'], label: 'Brighten all active flows — hover "N active links" (R77)' },
|
|
94
|
+
// Round 81 / Loop: catch up on the two newest chip-row affordances
|
|
95
|
+
// — R79 working/online chips and R80 vendor-letter chips. All
|
|
96
|
+
// four chip hovers feed the same dim mechanic the R55 legend
|
|
97
|
+
// rows use.
|
|
98
|
+
{ keys: ['hover N working'], label: 'Highlight working nodes — chip-row sibling of legend (R79)' },
|
|
99
|
+
{ keys: ['hover vendor'], label: 'Highlight one vendor — hover A/O/书/? in the chip row (R80)' },
|
|
100
|
+
// Round 87 / Loop: catch up on the two newest hover-preview
|
|
101
|
+
// gestures that close click-only gaps from earlier rounds.
|
|
102
|
+
// R83 added preview-before-pin on the pressure-bar segments;
|
|
103
|
+
// R86 did the same for group labels. Both compose with their
|
|
104
|
+
// existing click-pin (R60 / R63) — hover transient, click
|
|
105
|
+
// sticky, Esc clears (R62).
|
|
106
|
+
{ keys: ['hover seg'], label: 'Preview a status filter — hover a pressure-bar segment (R83)' },
|
|
107
|
+
{ keys: ['hover group'], label: 'Preview a team focus — hover a group label (R86)' },
|
|
108
|
+
// Round 91 / Loop: catch up on vendor pin (R88) and granular
|
|
109
|
+
// Cmd+K vendor-clear (R90). Vendor was the last filter
|
|
110
|
+
// dimension without a sticky pin; the click-to-pin gesture
|
|
111
|
+
// and palette clear command both deserve discovery entries.
|
|
112
|
+
// R89's third "filter:" pill is already covered by the
|
|
113
|
+
// generic "click pill" (R73) and "click ×" (R64) entries.
|
|
114
|
+
{ keys: ['click vendor'], label: 'Pin a vendor filter — click A/O/书/? in the chip row (R88)' },
|
|
115
|
+
{ keys: ['⌘', 'K'], label: 'Clear vendor pin only via palette → "Clear topology vendor filter" (R90)' },
|
|
116
|
+
// Round 109 / Loop: catch up on R108 — palette gained
|
|
117
|
+
// pin-vendor commands for the three major vendors. Mirror of
|
|
118
|
+
// R69's pin-status entry; closes the symmetric gap so the
|
|
119
|
+
// palette can both pin AND clear every filter dimension.
|
|
120
|
+
{ keys: ['⌘', 'K'], label: 'Pin vendor: Anthropic/OpenAI/书生 via palette → "Pin topology filter…" (R108)' },
|
|
121
|
+
// Round 118 / Loop: catch up on R116 (recent-signal row click
|
|
122
|
+
// pins the edge — the 4th pin dim, completing the hover→pin
|
|
123
|
+
// sweep) and R117 (granular Cmd+K clear-edge command).
|
|
124
|
+
{ keys: ['click row'], label: 'Pin a flow filter — click a recent-signal row to lock the edge (R116)' },
|
|
125
|
+
{ keys: ['⌘', 'K'], label: 'Clear edge pin only via palette → "Clear topology edge pin" (R117)' },
|
|
126
|
+
// Round 123 / Loop: catch up on R121 — the edge midpoint count
|
|
127
|
+
// badge (R100) became a click-to-pin affordance, giving the
|
|
128
|
+
// canvas side a peer to R116's row-pin. R122 made hovering the
|
|
129
|
+
// badge mirror line hover; doesn't need its own entry — it's
|
|
130
|
+
// the natural hover partner of this click gesture.
|
|
131
|
+
{ keys: ['click badge'], label: 'Pin a flow filter from the canvas — click an edge midpoint count badge (R121)' },
|
|
132
|
+
// Round 134 / Loop: catch up on R133 — the recent-signal panel's
|
|
133
|
+
// "+ N more flows" truncation footer (R128) became a clickable
|
|
134
|
+
// nav to /messages. First TopoGraph affordance that reaches OUT
|
|
135
|
+
// of the canvas; every prior gesture composes back into local
|
|
136
|
+
// state. Help overlay should surface the cross-page jump so
|
|
137
|
+
// operators know the path exists. R124-R132 were all passive
|
|
138
|
+
// visuals / motion / readouts with no new gestures, so this is
|
|
139
|
+
// the only new entry since R123.
|
|
140
|
+
{ keys: ['click footer'], label: 'See all flows — click "+ N more flows" in the recent-signal panel (R133)' },
|
|
141
|
+
// Round 137 / Loop: catch up on R136 — the "N active links"
|
|
142
|
+
// chip in the chip row gained a real onClick → /messages
|
|
143
|
+
// navigation (it already had cursor:pointer since R77 but the
|
|
144
|
+
// handler was missing, the cursor was lying). Pairs with R133
|
|
145
|
+
// footer-nav at a different surface: R133 lives on the canvas-
|
|
146
|
+
// side panel and only shows when flowLinks > 3; R136 lives at
|
|
147
|
+
// the chip row and triggers whenever flowLinks > 0 — a broader
|
|
148
|
+
// entry point for the same "show me the full list" jump.
|
|
149
|
+
{ keys: ['click chip'], label: 'See all flows — click the "N active links" chip in the chip row (R136)' },
|
|
150
|
+
// Round 141 / Loop: catch up on R139 + R140 — the chip-row
|
|
151
|
+
// "N working" and "N online" chips finally honour the cursor:
|
|
152
|
+
// pointer they've carried since R79. Working pins
|
|
153
|
+
// pinnedStatus='working' (composes with R60 pressure-bar + R61
|
|
154
|
+
// legend rows — three surfaces, one pin); online navigates to
|
|
155
|
+
// /nodes (pinning 'idle' would misrepresent the chip, which
|
|
156
|
+
// semantically means working+idle). Two entries this round
|
|
157
|
+
// because two new gestures landed since R137's catch-up.
|
|
158
|
+
{ keys: ['click chip'], label: 'Pin "working" status — click "N working" in the chip row (R139)' },
|
|
159
|
+
{ keys: ['click chip'], label: 'Open the agent list — click "N online" in the chip row (R140)' },
|
|
160
|
+
// Round 153 / Loop: catch up on R151 — node <g> gained role=button
|
|
161
|
+
// + tabIndex=0 + aria-pressed + onKeyDown so keyboard-only users
|
|
162
|
+
// can Tab to a node and press Enter / Space to open the chat
|
|
163
|
+
// popover (same path as mouse click). Was the FIRST true keyboard
|
|
164
|
+
// gesture added since R141 (R142-R150 were visual / motion / hover
|
|
165
|
+
// refinements; R151 + R152 added/closed keyboard handlers — R152
|
|
166
|
+
// wired Enter on the group label which is just the keyboard parallel
|
|
167
|
+
// of the existing R63 click-group entry, so it doesn't earn a new
|
|
168
|
+
// line). The chat-open path didn't exist as a keyboard gesture
|
|
169
|
+
// before R151, so this is the discoverability entry for it.
|
|
170
|
+
{ keys: ['Tab', 'Enter'], label: 'Open chat on a focused node (also Space) — keyboard parallel of click-to-chat (R151)' },
|
|
171
|
+
],
|
|
172
|
+
},
|
|
47
173
|
];
|
|
48
174
|
|
|
49
175
|
const GO_TARGETS: Record<string, string> = {
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
|
+
import useSWR from 'swr';
|
|
4
5
|
|
|
5
6
|
/** Issue #119 — server-side panel listing the hub's hosts + CPU/RAM bars.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* matches the issue spec, so step 3 is a one-line change.
|
|
8
|
+
* Steps 1+2 (SDK马 host telemetry + CommHub aggregation) shipped with
|
|
9
|
+
* commhub-server v0.8.1-preview.2. Step 3 (this file, Round 20 of the
|
|
10
|
+
* dashboard /loop) swaps the original mock seed for a SWR fetch of
|
|
11
|
+
* `/api/hub/servers` (which proxies to the hub's `/api/servers`).
|
|
12
12
|
*
|
|
13
13
|
* Collapsed by default to a thin vertical icon strip so it never competes
|
|
14
14
|
* with the topology graph for horizontal real-estate. State persists to
|
|
15
15
|
* localStorage just like the other dashboard drawers.
|
|
16
|
+
*
|
|
17
|
+
* Backward-compat: if the upstream hub predates v0.8.1-preview.2 the
|
|
18
|
+
* proxy returns `{ servers: [], unavailable: true }`. The drawer
|
|
19
|
+
* surfaces a friendly "not yet available" hint instead of an empty list,
|
|
20
|
+
* so old hubs don't read as "something broke".
|
|
16
21
|
*/
|
|
17
22
|
|
|
18
23
|
interface ServerCard {
|
|
@@ -27,23 +32,20 @@ interface ServerCard {
|
|
|
27
32
|
note?: string;
|
|
28
33
|
}
|
|
29
34
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
mem_used_gb: null, mem_total_gb: null, agent_count: 2, status: 'offline',
|
|
45
|
-
},
|
|
46
|
-
];
|
|
35
|
+
interface ServersResponse {
|
|
36
|
+
servers: ServerCard[];
|
|
37
|
+
unavailable?: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const fetcher = async (url: string): Promise<ServersResponse> => {
|
|
41
|
+
const res = await fetch(url);
|
|
42
|
+
if (res.status === 401) {
|
|
43
|
+
if (typeof window !== 'undefined') window.location.assign('/login');
|
|
44
|
+
throw new Error('unauthorized');
|
|
45
|
+
}
|
|
46
|
+
if (!res.ok) throw new Error(`hub ${res.status}`);
|
|
47
|
+
return res.json();
|
|
48
|
+
};
|
|
47
49
|
|
|
48
50
|
// Bar tint by usage — green ≤60%, amber 60–85%, red >85%. Keeps the eye
|
|
49
51
|
// going to whichever box is actually about to tip over.
|
|
@@ -85,8 +87,19 @@ export function ServersDrawer() {
|
|
|
85
87
|
return next;
|
|
86
88
|
});
|
|
87
89
|
|
|
88
|
-
|
|
90
|
+
// Round 20 / #119 step 3 final delivery — real SWR fetch. 5s refresh
|
|
91
|
+
// matches the other live drawers (HealthBanner, Sidebar) so an operator
|
|
92
|
+
// sees host telemetry update in roughly the same beat as session state.
|
|
93
|
+
// Only poll while expanded — collapsed icon strip doesn't need fresh data.
|
|
94
|
+
const { data, error } = useSWR<ServersResponse>(
|
|
95
|
+
open ? '/api/hub/servers' : null,
|
|
96
|
+
fetcher,
|
|
97
|
+
{ refreshInterval: 5000, dedupingInterval: 3000 },
|
|
98
|
+
);
|
|
99
|
+
const servers = data?.servers ?? [];
|
|
100
|
+
const unavailable = data?.unavailable === true;
|
|
89
101
|
const onlineCount = servers.filter(s => s.status === 'online').length;
|
|
102
|
+
const loading = open && !data && !error;
|
|
90
103
|
|
|
91
104
|
return (
|
|
92
105
|
<aside
|
|
@@ -122,7 +135,29 @@ export function ServersDrawer() {
|
|
|
122
135
|
</button>
|
|
123
136
|
|
|
124
137
|
{open && (
|
|
125
|
-
<div className="flex-1 min-h-0 overflow-y-auto px-2 py-2 space-y-2">
|
|
138
|
+
<div className="flex-1 min-h-0 overflow-y-auto px-2 py-2 space-y-2" data-servers-body>
|
|
139
|
+
{loading && (
|
|
140
|
+
<div className="text-[10px] text-[var(--fg-muted)] font-mono text-center py-4">
|
|
141
|
+
loading servers…
|
|
142
|
+
</div>
|
|
143
|
+
)}
|
|
144
|
+
{error && !data && (
|
|
145
|
+
<div className="rounded-md border px-2.5 py-2 text-[10px] font-mono"
|
|
146
|
+
style={{ background: 'rgb(239 68 68 / 0.06)', borderColor: 'rgb(239 68 68 / 0.25)', color: '#ef4444' }}>
|
|
147
|
+
hub unreachable · retrying every 5s
|
|
148
|
+
</div>
|
|
149
|
+
)}
|
|
150
|
+
{unavailable && (
|
|
151
|
+
<div className="text-[10px] text-[var(--fg-muted)] font-mono text-center py-3 leading-relaxed">
|
|
152
|
+
host telemetry not available<br/>
|
|
153
|
+
<span className="text-[var(--fg-dim)]">upgrade commhub-server ≥ 0.8.1-preview.2</span>
|
|
154
|
+
</div>
|
|
155
|
+
)}
|
|
156
|
+
{!loading && !error && !unavailable && servers.length === 0 && (
|
|
157
|
+
<div className="text-[10px] text-[var(--fg-muted)] font-mono text-center py-4">
|
|
158
|
+
no servers reporting yet
|
|
159
|
+
</div>
|
|
160
|
+
)}
|
|
126
161
|
{servers.map(s => {
|
|
127
162
|
const offline = s.status === 'offline';
|
|
128
163
|
const cpuPct = s.cpu_load_1min != null && s.cpu_cores > 0 ? (s.cpu_load_1min / s.cpu_cores) * 100 : null;
|
|
@@ -159,9 +194,11 @@ export function ServersDrawer() {
|
|
|
159
194
|
</div>
|
|
160
195
|
);
|
|
161
196
|
})}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
197
|
+
{servers.length > 0 && (
|
|
198
|
+
<div className="pt-1 text-[9px] text-[var(--fg-dim)] font-mono text-center">
|
|
199
|
+
live · refreshing every 5s
|
|
200
|
+
</div>
|
|
201
|
+
)}
|
|
165
202
|
</div>
|
|
166
203
|
)}
|
|
167
204
|
</aside>
|