@sleep2agi/agent-network-dashboard 0.4.6-preview.16 → 0.4.6-preview.160
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/04finjqoyo~rf.js +4 -0
- package/.next/static/chunks/05uk96gc~9mni.js +1 -0
- package/.next/static/chunks/08kf-.bgs10ze.js +1 -0
- package/.next/static/chunks/0g_sxsw.42had.css +2 -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/10hmjy1fp3hyj.js +1 -0
- package/.next/static/chunks/14i1i9ikkg5bp.js +1 -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 +3083 -230
- package/app/components/utils.ts +8 -7
- package/app/globals.css +46 -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-test.mjs +73 -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-chat-focus-ring-test.mjs +77 -0
- package/scripts/topo-chat-target-breath-test.mjs +84 -0
- package/scripts/topo-chip-pin-mirror-test.mjs +113 -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-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-count-badge-test.mjs +86 -0
- package/scripts/topo-edge-endpoint-highlight-test.mjs +111 -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-tooltip-test.mjs +70 -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-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-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-busyness-test.mjs +100 -0
- package/scripts/topo-hub-click-fit-test.mjs +137 -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-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-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-minimap-test.mjs +68 -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-title-peers-test.mjs +107 -0
- package/scripts/topo-node-title-test.mjs +101 -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-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-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-pulse-rate-test.mjs +71 -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-nav-test.mjs +127 -0
- package/scripts/topo-recent-panel-more-test.mjs +106 -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-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-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-sweep-busyness-test.mjs +94 -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-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-wheel-zoom-test.mjs +79 -0
- package/scripts/topo-working-chip-pin-test.mjs +148 -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/02t5jr4shh.hy.js +0 -1
- package/.next/static/chunks/05gis4d.n_tv~.js +0 -1
- package/.next/static/chunks/09~8xbt2mo_.u.js +0 -1
- package/.next/static/chunks/0_qfg5s5uzs7..js +0 -7
- package/.next/static/chunks/0a0wcpeb8i2my.js +0 -1
- 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/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/chunks/13vw-ubg-9pjp.css +0 -2
- /package/.next/static/{71LBMB3-nZe_9iMTuD7GZ → HDGD0NmF9vDyCt2Vv_4gv}/_buildManifest.js +0 -0
- /package/.next/static/{71LBMB3-nZe_9iMTuD7GZ → HDGD0NmF9vDyCt2Vv_4gv}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{71LBMB3-nZe_9iMTuD7GZ → HDGD0NmF9vDyCt2Vv_4gv}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.6-preview.160"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3479,59746,e=>{"use strict";function t(e){if(!e)return null;let t=Date.parse(e.includes("T")?e:e.replace(" ","T")+"Z");return Number.isFinite(t)?t:null}function s(e){let s=t(e);if(null===s)return null;let a=Math.floor((Date.now()-s)/1e3);return a<0?"just now":a<60?`${a}s ago`:a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:`${Math.floor(a/86400)}d ago`}e.s(["parseHubTime",0,t,"relativeAgo",0,s],59746),e.s(["formatUptime",0,function(e){let t=Math.floor(e/3600),s=Math.floor(e%3600/60);return t>0?`${t}h ${s}m`:`${s}m`},"previewContent",0,function(e){return e&&e.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\s+/g," ").trim()||"--"},"timeAgo",0,function(e){return s(e)??"--"}],3479)},46228,e=>{"use strict";var t=e.i(22381);let s=[180,200,220,270,300,330,30,90];function a(e){let t=0;for(let s=0;s<e.length;s++)t=31*t+e.charCodeAt(s)>>>0;let a=s[t%s.length];return{bg:`hsl(${a} 55% 22%)`,ring:`hsl(${a} 60% 45%)`,text:`hsl(${a} 80% 78%)`}}function r(e){return e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"}e.s(["AliasAvatar",0,function({alias:e,size:s=28,className:i=""}){let n=a(e),l=Math.max(9,Math.round(.42*s));return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${i}`,style:{width:s,height:s,fontSize:l,backgroundColor:n.bg,borderColor:n.ring,color:n.text},title:e,"aria-hidden":!0,children:r(e)})},"aliasAvatarColors",0,a,"aliasInitial",0,r])},76161,e=>{"use strict";var t=e.i(22381),s=e.i(23910),a=e.i(56839);let r={nodes:{title:"No agents in this network",sub:"Agent sessions will appear here once they connect to the CommHub."},tasks:{title:"No tasks yet",sub:"Tasks will appear here when agents send them via CommHub."},messages:{title:"No messages",sub:"Messages between agents will appear here."},logs:{title:"No audit logs",sub:"Events will appear here when users register, login, or perform actions."},tokens:{title:"No API tokens",sub:"Create one to authenticate CLI tools and external integrations."},networks:{title:"No networks found",sub:"Create one or sign in with V3 auth to see your networks."},generic:{title:"Nothing here yet",sub:"Data will appear here once available."}};function i({variant:e,size:s}){let a={width:s,height:s},r={fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"};switch(e){case"nodes":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"14",r:"4"}),(0,t.jsx)("circle",{cx:"14",cy:"44",r:"4"}),(0,t.jsx)("circle",{cx:"50",cy:"44",r:"4"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"14",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"50",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"18",y1:"44",x2:"46",y2:"44",strokeDasharray:"3 3",opacity:"0.6"})]})});case"tasks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("rect",{x:"14",y:"14",width:"36",height:"6",rx:"1.5"}),(0,t.jsx)("rect",{x:"14",y:"26",width:"36",height:"6",rx:"1.5",opacity:"0.6"}),(0,t.jsx)("rect",{x:"14",y:"38",width:"36",height:"6",rx:"1.5",opacity:"0.35"})]})});case"messages":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("path",{d:"M14 18 h36 a3 3 0 0 1 3 3 v18 a3 3 0 0 1 -3 3 h-18 l-8 6 v-6 h-10 a3 3 0 0 1 -3 -3 v-18 a3 3 0 0 1 3 -3 z"}),(0,t.jsx)("line",{x1:"22",y1:"28",x2:"42",y2:"28",opacity:"0.5"}),(0,t.jsx)("line",{x1:"22",y1:"34",x2:"36",y2:"34",opacity:"0.5"})]})});case"logs":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("path",{d:"M18 12 h22 l8 8 v32 a2 2 0 0 1 -2 2 h-28 a2 2 0 0 1 -2 -2 v-38 a2 2 0 0 1 2 -2 z"}),(0,t.jsx)("path",{d:"M40 12 v8 h8",opacity:"0.6"}),(0,t.jsx)("line",{x1:"24",y1:"32",x2:"40",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"24",y1:"38",x2:"40",y2:"38",opacity:"0.4"}),(0,t.jsx)("line",{x1:"24",y1:"44",x2:"34",y2:"44",opacity:"0.25"})]})});case"tokens":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"22",cy:"32",r:"8"}),(0,t.jsx)("line",{x1:"30",y1:"32",x2:"54",y2:"32"}),(0,t.jsx)("line",{x1:"44",y1:"32",x2:"44",y2:"38"}),(0,t.jsx)("line",{x1:"50",y1:"32",x2:"50",y2:"40"})]})});case"networks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"18"}),(0,t.jsx)("ellipse",{cx:"32",cy:"32",rx:"18",ry:"9",opacity:"0.55"}),(0,t.jsx)("line",{x1:"14",y1:"32",x2:"50",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"32",y1:"14",x2:"32",y2:"50",opacity:"0.55"})]})});default:return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...a,children:(0,t.jsxs)("g",{...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"14",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("circle",{cx:"32",cy:"32",r:"3"})]})})}}function n({variant:e="generic",title:s,sub:l,cta:o,compact:c=!1}){let d=r[e],x=s??d.title,h=l??d.sub;return(0,t.jsxs)("div",{className:`text-center ${c?"py-8":"py-16"} px-4`,role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)(i,{variant:e,size:c?40:56})}),(0,t.jsx)("h3",{className:`font-medium text-gray-300 ${c?"text-sm":"text-base"}`,children:x}),h&&(0,t.jsx)("p",{className:`text-gray-500 ${c?"text-xs mt-1.5":"text-sm mt-2"} max-w-md mx-auto leading-relaxed`,children:h}),o&&(0,t.jsx)("div",{className:"mt-4",children:o.href?(0,t.jsxs)(a.default,{href:o.href,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]}):(0,t.jsxs)("button",{onClick:o.onClick,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})}function l({children:e}){return(0,t.jsx)("div",{className:"max-w-2xl mx-auto rounded-xl border border-[#2a2a4a] bg-[#111128] shadow-lg shadow-black/20",children:e})}function o({cmd:e}){let[a,r]=(0,s.useState)(!1),i=async()=>{try{await navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),1800)}catch{}};return(0,t.jsxs)("div",{className:"anet-empty-cmd flex items-center gap-2 bg-[#0a0a15] border border-[#2a2a4a] rounded-lg pl-4 pr-1.5 py-1.5 text-xs sm:text-sm",children:[(0,t.jsx)("code",{className:"text-cyan-300 font-mono select-all",children:e}),(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":a?"Copied":"Copy command",className:"shrink-0 rounded-md px-2 py-1.5 text-[11px] text-gray-500 hover:text-gray-200 hover:bg-[#1a1a2a] transition-colors",children:a?(0,t.jsxs)("span",{className:"flex items-center gap-1 text-green-400",children:[(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})}),"Copied"]}):(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),"Copy"]})})]})}e.s(["EmptyState",0,n,"NodesEmptyState",0,function({hint:e,taskHistoryCount:s=0}){return e?.global_count?(0,t.jsx)(l,{children:(0,t.jsx)(n,{variant:"nodes",title:"No agents in this network",sub:`Server has ${e.global_count} nodes globally, but none are registered to the current network. Switch network or contact admin.`})}):s>0?(0,t.jsx)(l,{children:(0,t.jsx)(n,{variant:"nodes",title:"No agents online",sub:`Every agent in this network is currently offline. ${s.toLocaleString()} task${1===s?"":"s"} in history — they may have finished their work or disconnected.`,cta:{label:"View task history",href:"/tasks"}})}):(0,t.jsx)(l,{children:(0,t.jsxs)("div",{className:"text-center py-16 px-4",role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)("svg",{viewBox:"0 0 64 64",width:56,height:56,children:(0,t.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",children:[(0,t.jsx)("rect",{x:"10",y:"20",width:"44",height:"28",rx:"2"}),(0,t.jsx)("rect",{x:"20",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"32",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"44",y:"32",width:"4",height:"8",opacity:"0.5"}),(0,t.jsx)("line",{x1:"10",y1:"26",x2:"54",y2:"26",opacity:"0.4"}),(0,t.jsx)("circle",{cx:"14",cy:"23",r:"0.8",fill:"currentColor"})]})})}),(0,t.jsx)("h3",{className:"font-medium text-gray-300 text-base",children:"Spin up your first agent"}),(0,t.jsx)("p",{className:"text-gray-500 text-sm mt-2 max-w-md mx-auto leading-relaxed",children:"Run this in a fresh terminal to register an agent with this CommHub:"}),(0,t.jsx)("div",{className:"mt-4 inline-block",children:(0,t.jsx)(o,{cmd:"npx --yes @sleep2agi/agent-network init"})}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsxs)("a",{href:"https://anet.sh",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-xs font-medium text-gray-500 hover:text-cyan-300",children:["Full quickstart guide",(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})})}])},46860,e=>{"use strict";var t=e.i(22381),s=e.i(23910),a=e.i(56839),r=e.i(3479),i=e.i(11449),n=e.i(76161),l=e.i(46228);let o={register:"bg-green-500/10 text-green-300 border-green-500/20",login:"bg-blue-500/10 text-blue-300 border-blue-500/20",login_failed:"bg-red-500/10 text-red-300 border-red-500/20",create_network:"bg-purple-500/10 text-purple-300 border-purple-500/20",send_task:"bg-cyan-500/10 text-cyan-300 border-cyan-500/20"},c={register:"#4ade80",login:"#60a5fa",login_failed:"#ef4444",create_network:"#a78bfa",send_task:"#22d3ee"};e.s(["default",0,function(){let e,d,{networkId:x}=(0,i.useNetworkId)(),[h,m]=(0,s.useState)([]),[g,u]=(0,s.useState)(!0),[y,p]=(0,s.useState)(""),[j,b]=(0,s.useState)(""),f=(0,s.useCallback)(async()=>{try{let e=new URLSearchParams({limit:"100"});x&&e.set("network_id",x),j&&e.set("action",j);let t=sessionStorage.getItem("anet_v3_auth");if(t)try{let s=JSON.parse(t);s.token&&e.set("token",s.token)}catch{}let s=await fetch(`/api/hub/audit-log?${e.toString()}`);if(401===s.status)return void window.location.assign("/login");let a=await s.json();m(a.logs||[]),p(a.error&&!a.logs?.length?a.error:"")}catch(e){p(e instanceof Error?e.message:"fetch failed")}finally{u(!1)}},[j,x]);return(0,s.useEffect)(()=>{u(!0),f();let e=setInterval(f,1e4);return()=>clearInterval(e)},[f]),(0,t.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,t.jsx)("div",{className:"flex items-center gap-4 mb-6",children:(0,t.jsx)("h1",{className:"text-2xl font-bold text-white lg:ml-0 ml-10",children:"Audit Log"})}),(0,t.jsx)("div",{className:"mb-6 flex flex-wrap items-center gap-1 anet-tabstrip-wrap overflow-x-auto sm:overflow-x-visible",children:(e={},h.forEach(t=>{e[t.action]=(e[t.action]||0)+1}),[{key:"",label:"All"},{key:"login",label:"login",dot:c.login},{key:"login_failed",label:"login_failed",dot:c.login_failed},{key:"register",label:"register",dot:c.register},{key:"create_network",label:"create_network",dot:c.create_network},{key:"send_task",label:"send_task",dot:c.send_task}].map(s=>{let a=""===s.key?h.length:e[s.key]||0,r=j===s.key;return(0,t.jsxs)("button",{type:"button",onClick:()=>b(s.key),disabled:0===a&&""!==s.key,className:`flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs transition-colors disabled:opacity-30 disabled:cursor-not-allowed shrink-0 whitespace-nowrap ${r?"bg-cyan-500/10 text-cyan-300 border border-cyan-500/30":"text-gray-500 hover:text-gray-200 hover:bg-[#1a1a2a] border border-transparent"}`,children:[s.dot&&(0,t.jsx)("span",{"aria-hidden":!0,className:"inline-block w-1.5 h-1.5 rounded-full",style:{backgroundColor:s.dot}}),(0,t.jsx)("span",{children:s.label}),(0,t.jsx)("span",{className:`text-[10px] tabular-nums ${r?"text-cyan-400":"text-gray-600"}`,children:a})]},s.key||"all")}))}),y&&(d=/unauthor|401|forbidden|403|admin/i.test(y),(0,t.jsxs)("div",{className:"anet-warn-chip bg-yellow-900/20 border border-yellow-800/40 text-yellow-300 px-4 py-3 rounded-lg mb-6 text-sm flex items-start gap-3",role:"alert",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"text-base leading-none",children:"⚠"}),(0,t.jsx)("div",{className:"flex-1",children:d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"font-medium",children:"需要 admin 权限查看审计日志"}),(0,t.jsx)("div",{className:"text-xs opacity-80 mt-1",children:"审计日志记录用户注册 / 登录 / 网络变更等事件,需要 admin 角色。"}),(0,t.jsx)(a.default,{href:"/login",className:"inline-block mt-2 text-xs font-medium underline underline-offset-4 hover:opacity-80",children:"切到 admin 账号 →"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"font-medium",children:"加载失败"}),(0,t.jsx)("div",{className:"text-xs opacity-80 mt-1",children:"请检查 CommHub 是否在线,或稍后重试。"}),(0,t.jsx)("button",{onClick:()=>window.location.reload(),className:"inline-block mt-2 text-xs font-medium underline underline-offset-4 hover:opacity-80",children:"重新加载 →"})]})})]})),g?(0,t.jsx)("div",{className:"animate-pulse space-y-2",children:[1,2,3,4,5].map(e=>(0,t.jsx)("div",{className:"h-14 bg-gray-800/20 rounded-lg"},e))}):0===h.length?(0,t.jsx)(n.EmptyState,{variant:"logs"}):(0,t.jsx)("div",{className:"space-y-2",children:h.map(e=>{let s=e.username||e.user_id;return(0,t.jsxs)("div",{className:"relative bg-[#111128] border border-[#2a2a4a] rounded-lg pl-4 pr-4 py-3 hover:border-[#3a3a5a] transition-colors overflow-hidden",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute left-0 top-0 bottom-0 w-0.5",style:{backgroundColor:c[e.action]||"transparent"}}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mb-1",children:[(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded-md border ${o[e.action]||"bg-gray-500/10 text-gray-400 border-gray-500/20"}`,children:e.action}),s&&(0,t.jsx)(l.AliasAvatar,{alias:s,size:16}),(0,t.jsx)("span",{className:"text-sm text-gray-200 font-medium",children:s}),e.target_type&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-xs text-gray-600",children:"→"}),(0,t.jsxs)("span",{className:"text-xs text-gray-400",children:[e.target_type,e.target_id?`:${e.target_id.slice(0,12)}`:""]})]}),(0,t.jsx)("span",{className:"text-xs text-gray-600 ml-auto",children:(0,r.timeAgo)(e.created_at)})]}),e.detail&&(0,t.jsx)("div",{className:"text-xs text-gray-500",children:e.detail}),e.ip&&"unknown"!==e.ip&&(0,t.jsxs)("div",{className:"text-[10px] text-gray-700",children:["IP: ",e.ip]})]},e.id)})})]})}])}]);
|
package/.next/trace
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":380,"timestamp":8458836425,"id":4,"parentId":1,"tags":{},"startTime":1778816431083,"traceId":"5efc0e2f1a7b86d8"},{"name":"load-custom-routes","duration":497,"timestamp":8458837041,"id":5,"parentId":1,"tags":{},"startTime":1778816431083,"traceId":"5efc0e2f1a7b86d8"},{"name":"create-dist-dir","duration":641,"timestamp":8458837586,"id":6,"parentId":1,"tags":{},"startTime":1778816431084,"traceId":"5efc0e2f1a7b86d8"},{"name":"clean","duration":492,"timestamp":8458838870,"id":7,"parentId":1,"tags":{},"startTime":1778816431085,"traceId":"5efc0e2f1a7b86d8"},{"name":"discover-routes","duration":9898,"timestamp":8458931053,"id":8,"parentId":1,"tags":{},"startTime":1778816431177,"traceId":"5efc0e2f1a7b86d8"},{"name":"create-root-mapping","duration":126,"timestamp":8458941033,"id":9,"parentId":1,"tags":{},"startTime":1778816431187,"traceId":"5efc0e2f1a7b86d8"},{"name":"generate-route-types","duration":39589,"timestamp":8458943597,"id":10,"parentId":1,"tags":{},"startTime":1778816431190,"traceId":"5efc0e2f1a7b86d8"},{"name":"public-dir-conflict-check","duration":120,"timestamp":8458983348,"id":11,"parentId":1,"tags":{},"startTime":1778816431230,"traceId":"5efc0e2f1a7b86d8"},{"name":"generate-routes-manifest","duration":4069,"timestamp":8458983587,"id":12,"parentId":1,"tags":{},"startTime":1778816431230,"traceId":"5efc0e2f1a7b86d8"},{"name":"run-turbopack","duration":6739313,"timestamp":8458992744,"id":14,"parentId":1,"tags":{},"startTime":1778816431239,"traceId":"5efc0e2f1a7b86d8"},{"name":"turbopack-build-events","duration":74,"timestamp":8459308705,"id":15,"parentId":1,"tags":{},"startTime":1778816431555,"traceId":"5efc0e2f1a7b86d8"},{"name":"run-typescript","duration":9020552,"timestamp":8465742644,"id":16,"parentId":1,"tags":{},"startTime":1778816437989,"traceId":"5efc0e2f1a7b86d8"},{"name":"generate-required-server-files","duration":2575,"timestamp":8474764368,"id":18,"parentId":1,"tags":{},"startTime":1778816447011,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-static-error-page","duration":13438,"timestamp":8475022080,"id":20,"parentId":19,"tags":{},"startTime":1778816447268,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":879332,"timestamp":8475041716,"id":62,"parentId":22,"tags":{},"startTime":1778816447288,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":895951,"timestamp":8475025259,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778816447272,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":879896,"timestamp":8475043589,"id":66,"parentId":28,"tags":{},"startTime":1778816447290,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":895477,"timestamp":8475028080,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778816447274,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":987391,"timestamp":8475044095,"id":69,"parentId":32,"tags":{},"startTime":1778816447290,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1003018,"timestamp":8475028547,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778816447275,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":999359,"timestamp":8475041990,"id":63,"parentId":25,"tags":{},"startTime":1778816447288,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1013700,"timestamp":8475027750,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778816447274,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1007380,"timestamp":8475044166,"id":70,"parentId":33,"tags":{},"startTime":1778816447290,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1022987,"timestamp":8475028639,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778816447275,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1030886,"timestamp":8475044274,"id":72,"parentId":35,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1046408,"timestamp":8475028835,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778816447275,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1040744,"timestamp":8475044408,"id":73,"parentId":36,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1055733,"timestamp":8475029493,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778816447276,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1045651,"timestamp":8475044444,"id":74,"parentId":37,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1060476,"timestamp":8475029672,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778816447276,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1050439,"timestamp":8475044457,"id":75,"parentId":38,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1065136,"timestamp":8475029816,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778816447276,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1069167,"timestamp":8475044245,"id":71,"parentId":34,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1084762,"timestamp":8475028723,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778816447275,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1069195,"timestamp":8475044471,"id":76,"parentId":39,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1083760,"timestamp":8475029937,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778816447276,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1080745,"timestamp":8475044502,"id":78,"parentId":41,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1095047,"timestamp":8475030263,"id":41,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778816447277,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1098619,"timestamp":8475044488,"id":77,"parentId":40,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1113117,"timestamp":8475030061,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778816447276,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1100854,"timestamp":8475044512,"id":79,"parentId":42,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1115052,"timestamp":8475030376,"id":42,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778816447277,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1108986,"timestamp":8475044525,"id":80,"parentId":43,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1123075,"timestamp":8475030491,"id":43,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778816447277,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1110626,"timestamp":8475044538,"id":81,"parentId":44,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1123977,"timestamp":8475031239,"id":44,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778816447278,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1120975,"timestamp":8475044547,"id":82,"parentId":45,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1134245,"timestamp":8475031353,"id":45,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778816447278,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1130968,"timestamp":8475044560,"id":83,"parentId":46,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1144115,"timestamp":8475031484,"id":46,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778816447278,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1131231,"timestamp":8475044571,"id":84,"parentId":47,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1144265,"timestamp":8475031578,"id":47,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778816447278,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1141065,"timestamp":8475043301,"id":65,"parentId":27,"tags":{},"startTime":1778816447290,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1156488,"timestamp":8475027957,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778816447274,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1150455,"timestamp":8475043891,"id":68,"parentId":30,"tags":{},"startTime":1778816447290,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1166160,"timestamp":8475028269,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778816447275,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1154590,"timestamp":8475053630,"id":86,"parentId":24,"tags":{},"startTime":1778816447300,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1182605,"timestamp":8475025686,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778816447272,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1167640,"timestamp":8475044584,"id":85,"parentId":48,"tags":{},"startTime":1778816447291,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1180633,"timestamp":8475031668,"id":48,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778816447278,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1185889,"timestamp":8475043748,"id":67,"parentId":29,"tags":{},"startTime":1778816447290,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1201530,"timestamp":8475028173,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778816447274,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1189231,"timestamp":8475055042,"id":87,"parentId":31,"tags":{},"startTime":1778816447301,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1216005,"timestamp":8475028344,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778816447275,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1204299,"timestamp":8475084326,"id":90,"parentId":50,"tags":{},"startTime":1778816447331,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1256264,"timestamp":8475032437,"id":50,"parentId":19,"tags":{"page":"/logs"},"startTime":1778816447279,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1217513,"timestamp":8475084363,"id":93,"parentId":53,"tags":{},"startTime":1778816447331,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1268930,"timestamp":8475033022,"id":53,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778816447279,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1261020,"timestamp":8475043148,"id":64,"parentId":26,"tags":{},"startTime":1778816447289,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1276362,"timestamp":8475027878,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778816447274,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1287870,"timestamp":8475041324,"id":61,"parentId":21,"tags":{},"startTime":1778816447288,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1305741,"timestamp":8475023532,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778816447270,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1252835,"timestamp":8475084377,"id":94,"parentId":55,"tags":{},"startTime":1778816447331,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1303484,"timestamp":8475033803,"id":55,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778816447280,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1254894,"timestamp":8475084413,"id":96,"parentId":58,"tags":{},"startTime":1778816447331,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1304557,"timestamp":8475034804,"id":58,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778816447281,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1268549,"timestamp":8475084422,"id":97,"parentId":59,"tags":{},"startTime":1778816447331,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1318080,"timestamp":8475034980,"id":59,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778816447281,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1276762,"timestamp":8475084458,"id":99,"parentId":54,"tags":{},"startTime":1778816447331,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1328037,"timestamp":8475033252,"id":54,"parentId":19,"tags":{"page":"/"},"startTime":1778816447280,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1291557,"timestamp":8475084315,"id":89,"parentId":49,"tags":{},"startTime":1778816447331,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1343723,"timestamp":8475032219,"id":49,"parentId":19,"tags":{"page":"/login"},"startTime":1778816447278,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1299309,"timestamp":8475090820,"id":100,"parentId":57,"tags":{},"startTime":1778816447337,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1355892,"timestamp":8475034301,"id":57,"parentId":19,"tags":{"page":"/settings"},"startTime":1778816447281,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1315394,"timestamp":8475084439,"id":98,"parentId":60,"tags":{},"startTime":1778816447331,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1364718,"timestamp":8475035182,"id":60,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778816447281,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1327062,"timestamp":8475084354,"id":92,"parentId":52,"tags":{},"startTime":1778816447331,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1378659,"timestamp":8475032823,"id":52,"parentId":19,"tags":{"page":"/node"},"startTime":1778816447279,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1335166,"timestamp":8475084399,"id":95,"parentId":56,"tags":{},"startTime":1778816447331,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1385560,"timestamp":8475034072,"id":56,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778816447280,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1341326,"timestamp":8475084262,"id":88,"parentId":23,"tags":{},"startTime":1778816447331,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1400149,"timestamp":8475025504,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778816447272,"traceId":"5efc0e2f1a7b86d8"},{"name":"is-page-static","duration":1349630,"timestamp":8475084341,"id":91,"parentId":51,"tags":{},"startTime":1778816447331,"traceId":"5efc0e2f1a7b86d8"},{"name":"check-page","duration":1401394,"timestamp":8475032635,"id":51,"parentId":19,"tags":{"page":"/messages"},"startTime":1778816447279,"traceId":"5efc0e2f1a7b86d8"},{"name":"static-check","duration":1413124,"timestamp":8475020941,"id":19,"parentId":1,"tags":{},"startTime":1778816447267,"traceId":"5efc0e2f1a7b86d8"},{"name":"write-routes-manifest","duration":477,"timestamp":8476441892,"id":102,"parentId":1,"tags":{},"startTime":1778816448688,"traceId":"5efc0e2f1a7b86d8"},{"name":"load-dotenv","duration":68,"timestamp":8476455538,"id":105,"parentId":104,"tags":{},"startTime":1778816448702,"traceId":"5efc0e2f1a7b86d8"},{"name":"run-export-path-map","duration":874,"timestamp":8476459076,"id":106,"parentId":104,"tags":{},"startTime":1778816448705,"traceId":"5efc0e2f1a7b86d8"},{"name":"next-export","duration":695772,"timestamp":8476453694,"id":104,"parentId":1,"tags":{},"startTime":1778816448700,"traceId":"5efc0e2f1a7b86d8"},{"name":"move-exported-app-not-found-","duration":684,"timestamp":8477153674,"id":107,"parentId":103,"tags":{},"startTime":1778816449400,"traceId":"5efc0e2f1a7b86d8"},{"name":"move-exported-app-global-error-","duration":455,"timestamp":8477154473,"id":108,"parentId":103,"tags":{},"startTime":1778816449401,"traceId":"5efc0e2f1a7b86d8"}]
|
|
2
|
-
[{"name":"static-generation","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":265,"timestamp":58467413448,"id":4,"parentId":1,"tags":{},"startTime":1778866439660,"traceId":"e58be711914e9ffc"},{"name":"load-custom-routes","duration":487,"timestamp":58467413894,"id":5,"parentId":1,"tags":{},"startTime":1778866439660,"traceId":"e58be711914e9ffc"},{"name":"create-dist-dir","duration":636,"timestamp":58467414425,"id":6,"parentId":1,"tags":{},"startTime":1778866439661,"traceId":"e58be711914e9ffc"},{"name":"clean","duration":505,"timestamp":58467415670,"id":7,"parentId":1,"tags":{},"startTime":1778866439662,"traceId":"e58be711914e9ffc"},{"name":"discover-routes","duration":8810,"timestamp":58467496998,"id":8,"parentId":1,"tags":{},"startTime":1778866439743,"traceId":"e58be711914e9ffc"},{"name":"create-root-mapping","duration":102,"timestamp":58467505869,"id":9,"parentId":1,"tags":{},"startTime":1778866439752,"traceId":"e58be711914e9ffc"},{"name":"generate-route-types","duration":32284,"timestamp":58467508290,"id":10,"parentId":1,"tags":{},"startTime":1778866439755,"traceId":"e58be711914e9ffc"},{"name":"public-dir-conflict-check","duration":141,"timestamp":58467540824,"id":11,"parentId":1,"tags":{},"startTime":1778866439787,"traceId":"e58be711914e9ffc"},{"name":"generate-routes-manifest","duration":4517,"timestamp":58467541160,"id":12,"parentId":1,"tags":{},"startTime":1778866439787,"traceId":"e58be711914e9ffc"},{"name":"run-turbopack","duration":5354396,"timestamp":58467552281,"id":14,"parentId":1,"tags":{},"startTime":1778866439799,"traceId":"e58be711914e9ffc"},{"name":"turbopack-build-events","duration":73,"timestamp":58467839158,"id":15,"parentId":1,"tags":{},"startTime":1778866440085,"traceId":"e58be711914e9ffc"},{"name":"run-typescript","duration":8652943,"timestamp":58472922819,"id":16,"parentId":1,"tags":{},"startTime":1778866445169,"traceId":"e58be711914e9ffc"},{"name":"generate-required-server-files","duration":2681,"timestamp":58481577145,"id":18,"parentId":1,"tags":{},"startTime":1778866453823,"traceId":"e58be711914e9ffc"},{"name":"check-static-error-page","duration":11705,"timestamp":58481758187,"id":20,"parentId":19,"tags":{},"startTime":1778866454004,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":414108,"timestamp":58481774232,"id":63,"parentId":22,"tags":{},"startTime":1778866454021,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":428160,"timestamp":58481760355,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778866454007,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":517688,"timestamp":58481774743,"id":67,"parentId":28,"tags":{},"startTime":1778866454021,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":529375,"timestamp":58481763155,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778866454009,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":530862,"timestamp":58481774405,"id":65,"parentId":26,"tags":{},"startTime":1778866454021,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":542453,"timestamp":58481762889,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778866454009,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":536132,"timestamp":58481775241,"id":70,"parentId":32,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":547581,"timestamp":58481763871,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778866454010,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":541315,"timestamp":58481774913,"id":68,"parentId":29,"tags":{},"startTime":1778866454021,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":553127,"timestamp":58481763281,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778866454010,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":547880,"timestamp":58481775314,"id":71,"parentId":33,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":559241,"timestamp":58481764026,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778866454010,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":552350,"timestamp":58481775068,"id":69,"parentId":30,"tags":{},"startTime":1778866454021,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":564051,"timestamp":58481763435,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778866454010,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":554374,"timestamp":58481774509,"id":66,"parentId":27,"tags":{},"startTime":1778866454021,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":565930,"timestamp":58481763026,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778866454009,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":553674,"timestamp":58481775538,"id":74,"parentId":36,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":564581,"timestamp":58481764678,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778866454011,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":555701,"timestamp":58481774323,"id":64,"parentId":25,"tags":{},"startTime":1778866454021,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":567371,"timestamp":58481762697,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778866454009,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":557068,"timestamp":58481775568,"id":75,"parentId":37,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":567847,"timestamp":58481764828,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778866454011,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":558643,"timestamp":58481775592,"id":77,"parentId":39,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":569289,"timestamp":58481764989,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778866454011,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":560815,"timestamp":58481775581,"id":76,"parentId":38,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":571524,"timestamp":58481764924,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778866454011,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":561027,"timestamp":58481775605,"id":78,"parentId":40,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":571599,"timestamp":58481765066,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778866454011,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":561415,"timestamp":58481775614,"id":79,"parentId":41,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":571941,"timestamp":58481765129,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778866454011,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":566307,"timestamp":58481773931,"id":62,"parentId":21,"tags":{},"startTime":1778866454020,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":581006,"timestamp":58481759278,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778866454006,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":565409,"timestamp":58481775662,"id":83,"parentId":45,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":575740,"timestamp":58481765383,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778866454012,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":568027,"timestamp":58481775390,"id":72,"parentId":34,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":579449,"timestamp":58481764160,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778866454010,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":571363,"timestamp":58481775691,"id":85,"parentId":47,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":580241,"timestamp":58481766866,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778866454013,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":572549,"timestamp":58481775627,"id":80,"parentId":42,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":583024,"timestamp":58481765197,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778866454011,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":582352,"timestamp":58481775421,"id":73,"parentId":35,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":593596,"timestamp":58481764254,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778866454011,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":589212,"timestamp":58481775712,"id":87,"parentId":49,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":597871,"timestamp":58481767125,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778866454013,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":589685,"timestamp":58481775700,"id":86,"parentId":48,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":598388,"timestamp":58481767049,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778866454013,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":581361,"timestamp":58481785858,"id":89,"parentId":31,"tags":{},"startTime":1778866454032,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":603696,"timestamp":58481763564,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778866454010,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":584280,"timestamp":58481783136,"id":88,"parentId":24,"tags":{},"startTime":1778866454029,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":606662,"timestamp":58481760786,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778866454007,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":600602,"timestamp":58481775640,"id":81,"parentId":43,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":611035,"timestamp":58481765259,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778866454012,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":600777,"timestamp":58481775653,"id":82,"parentId":44,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":611141,"timestamp":58481765317,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778866454012,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":634947,"timestamp":58481788307,"id":93,"parentId":52,"tags":{},"startTime":1778866454035,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":655696,"timestamp":58481767632,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778866454014,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":636333,"timestamp":58481788280,"id":91,"parentId":50,"tags":{},"startTime":1778866454035,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":657238,"timestamp":58481767427,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778866454014,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":639835,"timestamp":58481788248,"id":90,"parentId":23,"tags":{},"startTime":1778866454035,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":667537,"timestamp":58481760593,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778866454007,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":653739,"timestamp":58481775675,"id":84,"parentId":46,"tags":{},"startTime":1778866454022,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":664022,"timestamp":58481765443,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778866454012,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":643388,"timestamp":58481788343,"id":96,"parentId":56,"tags":{},"startTime":1778866454035,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":663274,"timestamp":58481768499,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778866454015,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":647073,"timestamp":58481788356,"id":97,"parentId":57,"tags":{},"startTime":1778866454035,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":666786,"timestamp":58481768703,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778866454015,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":647264,"timestamp":58481788369,"id":98,"parentId":59,"tags":{},"startTime":1778866454035,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":666334,"timestamp":58481769327,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778866454016,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":651188,"timestamp":58481788399,"id":100,"parentId":61,"tags":{},"startTime":1778866454035,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":670005,"timestamp":58481769626,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778866454016,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":646843,"timestamp":58481794116,"id":101,"parentId":58,"tags":{},"startTime":1778866454040,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":672133,"timestamp":58481768895,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778866454015,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":630502,"timestamp":58481812906,"id":102,"parentId":55,"tags":{},"startTime":1778866454059,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":675338,"timestamp":58481768108,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778866454014,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":657711,"timestamp":58481788334,"id":95,"parentId":54,"tags":{},"startTime":1778866454035,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":678168,"timestamp":58481767916,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778866454014,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":658319,"timestamp":58481788382,"id":99,"parentId":60,"tags":{},"startTime":1778866454035,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":677259,"timestamp":58481769481,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778866454016,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":660666,"timestamp":58481788292,"id":92,"parentId":51,"tags":{},"startTime":1778866454035,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":681464,"timestamp":58481767529,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778866454014,"traceId":"e58be711914e9ffc"},{"name":"is-page-static","duration":661600,"timestamp":58481788320,"id":94,"parentId":53,"tags":{},"startTime":1778866454035,"traceId":"e58be711914e9ffc"},{"name":"check-page","duration":682187,"timestamp":58481767765,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778866454014,"traceId":"e58be711914e9ffc"},{"name":"static-check","duration":692668,"timestamp":58481757327,"id":19,"parentId":1,"tags":{},"startTime":1778866454004,"traceId":"e58be711914e9ffc"},{"name":"write-routes-manifest","duration":509,"timestamp":58482458224,"id":104,"parentId":1,"tags":{},"startTime":1778866454705,"traceId":"e58be711914e9ffc"},{"name":"load-dotenv","duration":85,"timestamp":58482473396,"id":107,"parentId":106,"tags":{},"startTime":1778866454720,"traceId":"e58be711914e9ffc"},{"name":"run-export-path-map","duration":580,"timestamp":58482476117,"id":108,"parentId":106,"tags":{},"startTime":1778866454722,"traceId":"e58be711914e9ffc"},{"name":"next-export","duration":669289,"timestamp":58482470617,"id":106,"parentId":1,"tags":{},"startTime":1778866454717,"traceId":"e58be711914e9ffc"}]
|
|
2
|
+
[{"name":"move-exported-app-not-found-","duration":2484,"timestamp":58483143481,"id":109,"parentId":105,"tags":{},"startTime":1778866455390,"traceId":"e58be711914e9ffc"},{"name":"move-exported-app-global-error-","duration":768,"timestamp":58483146089,"id":110,"parentId":105,"tags":{},"startTime":1778866455392,"traceId":"e58be711914e9ffc"},{"name":"static-generation","duration":685525,"timestamp":58482463370,"id":105,"parentId":1,"tags":{},"startTime":1778866454710,"traceId":"e58be711914e9ffc"},{"name":"write-routes-manifest","duration":480,"timestamp":58483149152,"id":111,"parentId":1,"tags":{},"startTime":1778866455395,"traceId":"e58be711914e9ffc"},{"name":"print-tree-view","duration":3903,"timestamp":58483159312,"id":112,"parentId":1,"tags":{},"startTime":1778866455406,"traceId":"e58be711914e9ffc"},{"name":"write-route-bundle-stats","duration":15313,"timestamp":58483163290,"id":113,"parentId":1,"tags":{},"startTime":1778866455410,"traceId":"e58be711914e9ffc"},{"name":"telemetry-flush","duration":31287,"timestamp":58483178641,"id":114,"parentId":1,"tags":{},"startTime":1778866455425,"traceId":"e58be711914e9ffc"},{"name":"next-build","duration":15848143,"timestamp":58467361817,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778866439608,"traceId":"e58be711914e9ffc"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":5354396,"timestamp":58467552281,"id":14,"parentId":1,"tags":{},"startTime":1778866439799,"traceId":"e58be711914e9ffc"},{"name":"turbopack-build-events","duration":73,"timestamp":58467839158,"id":15,"parentId":1,"tags":{},"startTime":1778866440085,"traceId":"e58be711914e9ffc"},{"name":"run-typescript","duration":8652943,"timestamp":58472922819,"id":16,"parentId":1,"tags":{},"startTime":1778866445169,"traceId":"e58be711914e9ffc"},{"name":"static-check","duration":692668,"timestamp":58481757327,"id":19,"parentId":1,"tags":{},"startTime":1778866454004,"traceId":"e58be711914e9ffc"},{"name":"static-generation","duration":685525,"timestamp":58482463370,"id":105,"parentId":1,"tags":{},"startTime":1778866454710,"traceId":"e58be711914e9ffc"},{"name":"telemetry-flush","duration":31287,"timestamp":58483178641,"id":114,"parentId":1,"tags":{},"startTime":1778866455425,"traceId":"e58be711914e9ffc"},{"name":"next-build","duration":15848143,"timestamp":58467361817,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778866439608,"traceId":"e58be711914e9ffc"}]
|
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() {
|