@sleep2agi/agent-network-dashboard 0.4.6-preview.39 → 0.4.6-preview.395
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 +2 -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 +16 -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/server/[hostname]/agents/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/hub/server/[hostname]/agents/route/build-manifest.json +9 -0
- package/.next/server/app/api/hub/server/[hostname]/agents/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/hub/server/[hostname]/agents/route.js +7 -0
- package/.next/server/app/api/hub/server/[hostname]/agents/route.js.map +5 -0
- package/.next/server/app/api/hub/server/[hostname]/agents/route.js.nft.json +1 -0
- package/.next/server/app/api/hub/server/[hostname]/agents/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/hub/server/[hostname]/health/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/hub/server/[hostname]/health/route/build-manifest.json +9 -0
- package/.next/server/app/api/hub/server/[hostname]/health/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/hub/server/[hostname]/health/route.js +7 -0
- package/.next/server/app/api/hub/server/[hostname]/health/route.js.map +5 -0
- package/.next/server/app/api/hub/server/[hostname]/health/route.js.nft.json +1 -0
- package/.next/server/app/api/hub/server/[hostname]/health/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 +2 -0
- package/.next/server/chunks/0dk5_next-internal_server_app_api_hub_server_[hostname]_agents_route_actions_0vr92s4.js +3 -0
- package/.next/server/chunks/0dk5_next-internal_server_app_api_hub_server_[hostname]_agents_route_actions_0vr92s4.js.map +1 -0
- package/.next/server/chunks/0dk5_next-internal_server_app_api_hub_server_[hostname]_health_route_actions_0vr-bv5.js +3 -0
- package/.next/server/chunks/0dk5_next-internal_server_app_api_hub_server_[hostname]_health_route_actions_0vr-bv5.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__05nyivw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__05nyivw._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0floe3h._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0floe3h._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0tx8s8i._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0tx8s8i._.js.map +1 -1
- 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/02yocu.qk0igk.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/055vid~-4k52i.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/0aauz~36q5n2a.css +2 -0
- package/.next/static/chunks/0glmrdj9112tc.js +7 -0
- package/.next/static/chunks/0jl6yz4y461zs.js +1 -0
- package/.next/static/chunks/0l_~q07bhpkcx.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/174re5ar~kxne.js +1 -0
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/.next/types/routes.d.ts +3 -1
- package/.next/types/validator.ts +18 -0
- package/app/api/hub/server/[hostname]/agents/route.ts +62 -0
- package/app/api/hub/server/[hostname]/health/route.ts +58 -0
- package/app/api/hub/servers/route.ts +88 -1
- package/app/components/ChatPopover.tsx +38 -2
- package/app/components/CommandPalette.tsx +107 -0
- package/app/components/HelpOverlay.tsx +109 -1
- package/app/components/ServersDrawer.tsx +181 -5
- package/app/components/TopoGraph.tsx +6492 -270
- package/app/components/utils.ts +8 -7
- package/app/globals.css +110 -5
- package/app/lib/time.ts +36 -0
- package/app/lib/vendorIdentity.ts +14 -3
- package/docs/rfc/v0.10.0-hero3-dashboard-upgrade.md +230 -0
- package/package.json +2 -2
- package/public/sleep2agi-logo.svg +11 -0
- package/public/vendors/claude.svg +11 -0
- package/public/vendors/minimax.svg +11 -0
- package/public/vendors/openai.svg +12 -0
- package/screenshots/r293-p0/after-full.png +0 -0
- package/screenshots/r293-p0/after-topo.png +0 -0
- package/screenshots/r293-p0/baseline-full.png +0 -0
- package/screenshots/r293-p0/baseline-topo.png +0 -0
- package/screenshots/r293-p0/logo-integrated-full.png +0 -0
- package/screenshots/r293-p0/logo-integrated-topo.png +0 -0
- package/screenshots/r293-p0/servers-drawer-v0.10.0-full.png +0 -0
- package/screenshots/r293-p0/servers-drawer-v0.10.0.png +0 -0
- package/screenshots/r293-p0/wave1-after-full.png +0 -0
- package/screenshots/r293-p0/wave1-after-topo.png +0 -0
- package/scripts/p0-servers-drawer-screenshot.mjs +99 -0
- package/scripts/p0-topo-screenshot.mjs +82 -0
- package/scripts/topo-active-filter-pill-test.mjs +101 -0
- package/scripts/topo-active-links-chip-hover-test.mjs +103 -0
- package/scripts/topo-active-links-chip-nav-test.mjs +117 -0
- package/scripts/topo-active-links-chip-self-hover-test.mjs +171 -0
- package/scripts/topo-active-links-chip-test.mjs +73 -0
- package/scripts/topo-active-links-empty-recede-test.mjs +125 -0
- package/scripts/topo-active-links-freshness-test.mjs +113 -0
- package/scripts/topo-active-links-tooltip-test.mjs +79 -0
- package/scripts/topo-active-pulse-ease-test.mjs +120 -0
- package/scripts/topo-brand-logo-transition-test.mjs +94 -0
- package/scripts/topo-brand-watermark-test.mjs +97 -0
- package/scripts/topo-canvas-aria-test.mjs +108 -0
- package/scripts/topo-canvas-brand-fade-test.mjs +87 -0
- package/scripts/topo-chat-target-breath-test.mjs +84 -0
- package/scripts/topo-chat-target-ring-ease-test.mjs +82 -0
- package/scripts/topo-chat-target-ring-fade-test.mjs +124 -0
- package/scripts/topo-chip-empty-recede-test.mjs +116 -0
- package/scripts/topo-chip-focus-test.mjs +95 -0
- package/scripts/topo-chip-pin-mirror-test.mjs +113 -0
- package/scripts/topo-chip-row-gap-test.mjs +90 -0
- package/scripts/topo-chip-row-semantic-gap-test.mjs +97 -0
- package/scripts/topo-chip-row-tabular-test.mjs +111 -0
- package/scripts/topo-chiprow-data-weight-test.mjs +94 -0
- package/scripts/topo-chrome-a11y-test.mjs +107 -0
- package/scripts/topo-chrome-active-weight-test.mjs +104 -0
- package/scripts/topo-chrome-focus-ring-unify-test.mjs +100 -0
- package/scripts/topo-chrome-gap-test.mjs +73 -0
- package/scripts/topo-chrome-icon-stroke-test.mjs +95 -0
- package/scripts/topo-chrome-inactive-color-test.mjs +90 -0
- package/scripts/topo-chrome-pop-extension-test.mjs +98 -0
- package/scripts/topo-chrome-pop-nodesize-test.mjs +88 -0
- package/scripts/topo-chrome-press-state-test.mjs +135 -0
- package/scripts/topo-chrome-strip-semantic-gap-test.mjs +99 -0
- package/scripts/topo-chrome-strip-theme-ease-test.mjs +99 -0
- package/scripts/topo-chrome-zoom-level-pop-test.mjs +122 -0
- package/scripts/topo-chrome-zoom-pop-test.mjs +130 -0
- package/scripts/topo-chrome-zoom-readout-weight-test.mjs +81 -0
- package/scripts/topo-click-ripple-ease-test.mjs +94 -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-corner-radius-unify-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-dense-alias-fill-transition-test.mjs +133 -0
- package/scripts/topo-discrete-zoom-smooth-test.mjs +125 -0
- package/scripts/topo-edge-badge-click-pin-test.mjs +94 -0
- package/scripts/topo-edge-badge-crossfade-test.mjs +138 -0
- package/scripts/topo-edge-badge-hot-test.mjs +115 -0
- package/scripts/topo-edge-badge-hover-test.mjs +85 -0
- package/scripts/topo-edge-badge-lift-test.mjs +150 -0
- package/scripts/topo-edge-badge-ripple-test.mjs +111 -0
- package/scripts/topo-edge-badge-stroke-transition-test.mjs +118 -0
- package/scripts/topo-edge-badge-text-pin-test.mjs +121 -0
- package/scripts/topo-edge-badge-theme-ease-test.mjs +89 -0
- package/scripts/topo-edge-count-badge-test.mjs +86 -0
- package/scripts/topo-edge-endpoint-highlight-test.mjs +111 -0
- package/scripts/topo-edge-fadein-test.mjs +106 -0
- package/scripts/topo-edge-focus-test.mjs +113 -0
- package/scripts/topo-edge-hover-test.mjs +93 -0
- package/scripts/topo-edge-pill-hot-test.mjs +129 -0
- package/scripts/topo-edge-pill-test.mjs +105 -0
- package/scripts/topo-edge-ping-pulse-retired-test.mjs +119 -0
- package/scripts/topo-edge-stroke-ease-test.mjs +100 -0
- package/scripts/topo-edge-stroke-transition-test.mjs +132 -0
- package/scripts/topo-edge-tooltip-test.mjs +70 -0
- package/scripts/topo-empty-hint-tracking-test.mjs +84 -0
- package/scripts/topo-empty-state-breath-test.mjs +150 -0
- package/scripts/topo-empty-state-crossfade-test.mjs +130 -0
- package/scripts/topo-empty-state-recenter-test.mjs +107 -0
- package/scripts/topo-empty-subhint-tracking-test.mjs +87 -0
- package/scripts/topo-endpoint-ring-fade-test.mjs +132 -0
- package/scripts/topo-endpoint-ring-test.mjs +93 -0
- package/scripts/topo-endpoint-ring-thicken-test.mjs +112 -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-tabular-test.mjs +135 -0
- package/scripts/topo-filter-pill-count-test.mjs +110 -0
- package/scripts/topo-filter-pill-mobile-test.mjs +90 -0
- package/scripts/topo-freshness-chip-test.mjs +74 -0
- package/scripts/topo-freshness-chip-transition-test.mjs +80 -0
- package/scripts/topo-freshness-chip-weight-test.mjs +90 -0
- package/scripts/topo-freshness-conditional-render-test.mjs +92 -0
- package/scripts/topo-fullscreen-active-test.mjs +115 -0
- package/scripts/topo-group-box-pinned-state-test.mjs +95 -0
- package/scripts/topo-group-count-test.mjs +6 -1
- package/scripts/topo-group-label-a11y-test.mjs +113 -0
- package/scripts/topo-group-label-count-inherit-test.mjs +99 -0
- package/scripts/topo-group-label-hover-test.mjs +119 -0
- package/scripts/topo-group-label-pin-spacing-test.mjs +136 -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-pip-fadein-test.mjs +104 -0
- package/scripts/topo-group-pip-singletier-drop-test.mjs +131 -0
- package/scripts/topo-group-pip-tabular-test.mjs +95 -0
- package/scripts/topo-group-status-pips-test.mjs +103 -0
- package/scripts/topo-groupbox-fadein-test.mjs +95 -0
- package/scripts/topo-groupbox-hover-lift-test.mjs +127 -0
- package/scripts/topo-groupbox-hubcore-ease-test.mjs +106 -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-header-gap-test.mjs +94 -0
- 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-hot-tail-crossfade-test.mjs +117 -0
- package/scripts/topo-html-overlay-padding-unify-test.mjs +120 -0
- package/scripts/topo-hub-a11y-test.mjs +112 -0
- package/scripts/topo-hub-busyness-test.mjs +100 -0
- package/scripts/topo-hub-center-crossfade-test.mjs +124 -0
- package/scripts/topo-hub-click-fit-test.mjs +137 -0
- package/scripts/topo-hub-digit-scale-test.mjs +129 -0
- package/scripts/topo-hub-fadein-test.mjs +88 -0
- package/scripts/topo-hub-hover-lift-test.mjs +101 -0
- package/scripts/topo-hub-hover-ring-test.mjs +82 -0
- package/scripts/topo-hub-pip-theme-ease-test.mjs +116 -0
- package/scripts/topo-hub-spoke-ease-test.mjs +120 -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-inner-radar-ring-retired-test.mjs +89 -0
- package/scripts/topo-kicker-color-test.mjs +93 -0
- package/scripts/topo-kicker-tracking-test.mjs +101 -0
- package/scripts/topo-kicker-weight-test.mjs +98 -0
- package/scripts/topo-label-card-theme-ease-test.mjs +85 -0
- package/scripts/topo-label-lift-test.mjs +5 -1
- package/scripts/topo-lastseen-tooltip-test.mjs +59 -0
- package/scripts/topo-layout-hover-text-preview-test.mjs +101 -0
- package/scripts/topo-layout-switch-crossfade-test.mjs +126 -0
- package/scripts/topo-layout-toggle-border-unify-test.mjs +104 -0
- package/scripts/topo-layout-toggle-test.mjs +131 -0
- package/scripts/topo-layout-trailer-mr-test.mjs +82 -0
- package/scripts/topo-legend-compress-test.mjs +107 -0
- package/scripts/topo-legend-count-empty-test.mjs +126 -0
- package/scripts/topo-legend-count-tabular-parity-test.mjs +90 -0
- package/scripts/topo-legend-count-tabular-test.mjs +87 -0
- package/scripts/topo-legend-count-test.mjs +88 -0
- package/scripts/topo-legend-count-tier-fill-test.mjs +121 -0
- package/scripts/topo-legend-count-weight-test.mjs +86 -0
- package/scripts/topo-legend-header-symmetric-inset-test.mjs +112 -0
- package/scripts/topo-legend-hitbox-swatch-center-test.mjs +93 -0
- package/scripts/topo-legend-hover-test.mjs +113 -0
- package/scripts/topo-legend-offline-delimiter-test.mjs +84 -0
- package/scripts/topo-legend-offline-label-simplify-test.mjs +86 -0
- package/scripts/topo-legend-panel-count-weight-test.mjs +89 -0
- package/scripts/topo-legend-panel-header-test.mjs +83 -0
- package/scripts/topo-legend-pin-ring-fade-test.mjs +112 -0
- package/scripts/topo-legend-pin-test.mjs +128 -0
- package/scripts/topo-legend-row-hover-lift-test.mjs +109 -0
- package/scripts/topo-legend-row-labels-simplify-test.mjs +80 -0
- package/scripts/topo-legend-row-pin-spacing-test.mjs +124 -0
- package/scripts/topo-legend-row-tint-test.mjs +95 -0
- package/scripts/topo-legend-row-title-test.mjs +102 -0
- package/scripts/topo-legend-swatch-grow-test.mjs +116 -0
- package/scripts/topo-legend-swatch-radius-test.mjs +78 -0
- package/scripts/topo-minimap-a11y-test.mjs +101 -0
- package/scripts/topo-minimap-dot-transition-test.mjs +113 -0
- package/scripts/topo-minimap-radius-test.mjs +88 -0
- package/scripts/topo-minimap-rect-stroke-test.mjs +94 -0
- package/scripts/topo-minimap-viewport-smooth-test.mjs +124 -0
- package/scripts/topo-mobile-chips-test.mjs +103 -0
- package/scripts/topo-monogram-font-test.mjs +112 -0
- package/scripts/topo-monogram-stroke-test.mjs +101 -0
- package/scripts/topo-more-flows-letterspacing-test.mjs +111 -0
- package/scripts/topo-node-a11y-test.mjs +107 -0
- package/scripts/topo-node-alias-chat-pin-test.mjs +95 -0
- package/scripts/topo-node-hover-lift-test.mjs +85 -0
- package/scripts/topo-node-label-card-elevation-test.mjs +157 -0
- package/scripts/topo-node-label-card-stroke-test.mjs +135 -0
- package/scripts/topo-node-stroke-transition-test.mjs +103 -0
- package/scripts/topo-node-text-fill-transition-test.mjs +119 -0
- package/scripts/topo-node-title-peers-test.mjs +107 -0
- package/scripts/topo-node-title-test.mjs +101 -0
- package/scripts/topo-nodesize-active-hover-test.mjs +109 -0
- package/scripts/topo-nodesize-crossfade-test.mjs +141 -0
- package/scripts/topo-online-chip-nav-test.mjs +143 -0
- package/scripts/topo-orbit-particles-retired-test.mjs +91 -0
- package/scripts/topo-panel-elevation-test.mjs +76 -0
- package/scripts/topo-panel-fadein-test.mjs +102 -0
- package/scripts/topo-panel-hot-tail-fade-test.mjs +132 -0
- package/scripts/topo-panel-hover-elevation-test.mjs +118 -0
- package/scripts/topo-panel-rx-test.mjs +90 -0
- package/scripts/topo-panel-theme-ease-test.mjs +85 -0
- package/scripts/topo-panel-title-fill-ease-test.mjs +91 -0
- package/scripts/topo-panel-title-tracking-test.mjs +78 -0
- package/scripts/topo-particle-stagger-test.mjs +82 -0
- package/scripts/topo-pin-intersection-color-ease-test.mjs +111 -0
- package/scripts/topo-pin-intersection-empty-test.mjs +129 -0
- package/scripts/topo-pin-intersection-tabular-test.mjs +96 -0
- package/scripts/topo-pin-intersection-test.mjs +121 -0
- package/scripts/topo-pin-intersection-warning-crossfade-test.mjs +107 -0
- package/scripts/topo-pin-mirror-transition-test.mjs +101 -0
- package/scripts/topo-pin-persistence-test.mjs +105 -0
- package/scripts/topo-popover-meta-test.mjs +78 -0
- package/scripts/topo-prepublish-guard-test.mjs +95 -0
- package/scripts/topo-pressure-hover-test.mjs +123 -0
- package/scripts/topo-pressure-pin-test.mjs +119 -0
- package/scripts/topo-pressure-seg-self-hover-test.mjs +126 -0
- package/scripts/topo-pressure-seg-tooltip-test.mjs +98 -0
- package/scripts/topo-pressure-seg-transition-test.mjs +107 -0
- package/scripts/topo-pulse-dot-crossfade-test.mjs +122 -0
- package/scripts/topo-pulse-dot-retired-test.mjs +86 -0
- package/scripts/topo-recent-panel-count-freshness-test.mjs +109 -0
- package/scripts/topo-recent-panel-count-test.mjs +72 -0
- package/scripts/topo-recent-panel-count-weight-test.mjs +91 -0
- package/scripts/topo-recent-panel-footer-breath-test.mjs +142 -0
- package/scripts/topo-recent-panel-hot-header-test.mjs +132 -0
- package/scripts/topo-recent-panel-hot-tabular-test.mjs +113 -0
- package/scripts/topo-recent-panel-more-crossfade-test.mjs +124 -0
- package/scripts/topo-recent-panel-more-cyan-hover-test.mjs +151 -0
- package/scripts/topo-recent-panel-more-nav-test.mjs +127 -0
- package/scripts/topo-recent-panel-more-test.mjs +106 -0
- package/scripts/topo-recent-panel-readability-bump-test.mjs +151 -0
- package/scripts/topo-recent-row-count-fill-test.mjs +129 -0
- package/scripts/topo-recent-row-count-weight-test.mjs +112 -0
- package/scripts/topo-recent-row-fadein-test.mjs +107 -0
- package/scripts/topo-recent-row-freshness-test.mjs +102 -0
- package/scripts/topo-recent-row-hot-test.mjs +110 -0
- package/scripts/topo-recent-row-hover-lift-test.mjs +128 -0
- package/scripts/topo-recent-row-hover-test.mjs +122 -0
- package/scripts/topo-recent-row-pin-spacing-test.mjs +137 -0
- package/scripts/topo-recent-row-pin-test.mjs +126 -0
- package/scripts/topo-recent-row-tint-test.mjs +91 -0
- package/scripts/topo-recent-row-title-test.mjs +112 -0
- package/scripts/topo-recent-row-ts-alpha-test.mjs +100 -0
- package/scripts/topo-recent-row-ts-tabular-test.mjs +108 -0
- package/scripts/topo-recent-row-ts-test.mjs +95 -0
- package/scripts/topo-recent-row-typography-test.mjs +119 -0
- package/scripts/topo-recent-signal-empty-hint-test.mjs +73 -0
- package/scripts/topo-recent-signal-empty-test.mjs +63 -0
- package/scripts/topo-reduced-motion-test.mjs +77 -0
- package/scripts/topo-reset-spin-test.mjs +120 -0
- package/scripts/topo-runtime-badge-grow-test.mjs +114 -0
- package/scripts/topo-spokes-retired-test.mjs +93 -0
- package/scripts/topo-starfield-density-test.mjs +89 -0
- package/scripts/topo-status-chip-hover-test.mjs +101 -0
- package/scripts/topo-status-chip-tooltip-test.mjs +95 -0
- package/scripts/topo-statusbar-chips-self-hover-test.mjs +177 -0
- package/scripts/topo-svg-focus-test.mjs +112 -0
- package/scripts/topo-sweep-busyness-test.mjs +94 -0
- package/scripts/topo-tabular-nums-sweep-test.mjs +93 -0
- package/scripts/topo-tier-guide-dashes-test.mjs +86 -0
- package/scripts/topo-tier-ring-fadein-test.mjs +107 -0
- package/scripts/topo-tier-ring-occupancy-test.mjs +87 -0
- package/scripts/topo-tier-ring-test.mjs +69 -0
- package/scripts/topo-tier-ring-tint-test.mjs +110 -0
- package/scripts/topo-tier-stagger-test.mjs +89 -0
- package/scripts/topo-title-block-tight-leading-test.mjs +95 -0
- package/scripts/topo-title-tracking-test.mjs +98 -0
- package/scripts/topo-titleblock-gap-test.mjs +86 -0
- package/scripts/topo-titleblock-margin-test.mjs +83 -0
- package/scripts/topo-toggle-inactive-cyan-hover-test.mjs +110 -0
- package/scripts/topo-top-rail-theme-ease-test.mjs +89 -0
- package/scripts/topo-tz-ghost-test.mjs +69 -0
- package/scripts/topo-vendor-chip-hover-test.mjs +111 -0
- package/scripts/topo-vendor-chip-self-hover-test.mjs +131 -0
- package/scripts/topo-vendor-chip-tabular-test.mjs +92 -0
- package/scripts/topo-vendor-chip-threshold-test.mjs +78 -0
- package/scripts/topo-vendor-chip-weight-test.mjs +87 -0
- package/scripts/topo-vendor-count-suffix-test.mjs +95 -0
- package/scripts/topo-vendor-letter-tooltip-test.mjs +92 -0
- package/scripts/topo-vendor-pill-test.mjs +125 -0
- package/scripts/topo-vendor-pin-test.mjs +125 -0
- package/scripts/topo-view-smooth-test.mjs +131 -0
- package/scripts/topo-watermark-tracking-test.mjs +99 -0
- package/scripts/topo-working-chip-pin-test.mjs +154 -0
- package/scripts/topo-working-halo-breath-retired-test.mjs +99 -0
- package/scripts/topo-wrapper-flow-arrow-theme-test.mjs +97 -0
- package/scripts/topo-wrapper-radius-test.mjs +73 -0
- package/scripts/topo-wrapper-shadow-theme-ease-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/06tr6yzu4mb8_.js +0 -1
- package/.next/static/chunks/0_qfg5s5uzs7..js +0 -7
- package/.next/static/chunks/0c_yjgkf2~vd4.js +0 -1
- package/.next/static/chunks/0dev7f7k0p604.js +0 -1
- package/.next/static/chunks/0elalb9n_.~di.js +0 -1
- package/.next/static/chunks/0j_q__o8p6g83.js +0 -1
- package/.next/static/chunks/0jl6_w50zh4l5.js +0 -1
- package/.next/static/chunks/0mqwn-l7wtcdo.js +0 -7
- 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/13.zti9ix.1eh.css +0 -2
- /package/.next/static/{iRlmfdOMzDPfMsgsshJPP → Ujs7PJn0hn6OAYhBkDqb1}/_buildManifest.js +0 -0
- /package/.next/static/{iRlmfdOMzDPfMsgsshJPP → Ujs7PJn0hn6OAYhBkDqb1}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{iRlmfdOMzDPfMsgsshJPP → Ujs7PJn0hn6OAYhBkDqb1}/_ssgManifest.js +0 -0
|
@@ -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":400,"timestamp":16433479552,"id":4,"parentId":1,"tags":{},"startTime":1778824405726,"traceId":"b405438ab9a7c143"},{"name":"load-custom-routes","duration":638,"timestamp":16433480204,"id":5,"parentId":1,"tags":{},"startTime":1778824405726,"traceId":"b405438ab9a7c143"},{"name":"create-dist-dir","duration":654,"timestamp":16433480891,"id":6,"parentId":1,"tags":{},"startTime":1778824405727,"traceId":"b405438ab9a7c143"},{"name":"clean","duration":471,"timestamp":16433482273,"id":7,"parentId":1,"tags":{},"startTime":1778824405729,"traceId":"b405438ab9a7c143"},{"name":"discover-routes","duration":9014,"timestamp":16433568694,"id":8,"parentId":1,"tags":{},"startTime":1778824405815,"traceId":"b405438ab9a7c143"},{"name":"create-root-mapping","duration":112,"timestamp":16433577772,"id":9,"parentId":1,"tags":{},"startTime":1778824405824,"traceId":"b405438ab9a7c143"},{"name":"generate-route-types","duration":32387,"timestamp":16433580053,"id":10,"parentId":1,"tags":{},"startTime":1778824405826,"traceId":"b405438ab9a7c143"},{"name":"public-dir-conflict-check","duration":106,"timestamp":16433612613,"id":11,"parentId":1,"tags":{},"startTime":1778824405859,"traceId":"b405438ab9a7c143"},{"name":"generate-routes-manifest","duration":4586,"timestamp":16433612859,"id":12,"parentId":1,"tags":{},"startTime":1778824405859,"traceId":"b405438ab9a7c143"},{"name":"run-turbopack","duration":5325765,"timestamp":16433623473,"id":14,"parentId":1,"tags":{},"startTime":1778824405870,"traceId":"b405438ab9a7c143"},{"name":"turbopack-build-events","duration":90,"timestamp":16433909704,"id":15,"parentId":1,"tags":{},"startTime":1778824406156,"traceId":"b405438ab9a7c143"},{"name":"run-typescript","duration":8418307,"timestamp":16438962032,"id":16,"parentId":1,"tags":{},"startTime":1778824411208,"traceId":"b405438ab9a7c143"},{"name":"generate-required-server-files","duration":2384,"timestamp":16447381354,"id":18,"parentId":1,"tags":{},"startTime":1778824419628,"traceId":"b405438ab9a7c143"},{"name":"check-static-error-page","duration":10570,"timestamp":16447571515,"id":20,"parentId":19,"tags":{},"startTime":1778824419818,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":415959,"timestamp":16447584712,"id":63,"parentId":22,"tags":{},"startTime":1778824419831,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":426766,"timestamp":16447574047,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778824419820,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":504910,"timestamp":16447584801,"id":64,"parentId":25,"tags":{},"startTime":1778824419831,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":513461,"timestamp":16447576344,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778824419823,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":506823,"timestamp":16447584889,"id":65,"parentId":26,"tags":{},"startTime":1778824419831,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":515298,"timestamp":16447576472,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778824419823,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":513418,"timestamp":16447585808,"id":71,"parentId":33,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":522107,"timestamp":16447577175,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778824419823,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":515671,"timestamp":16447585734,"id":70,"parentId":32,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":524369,"timestamp":16447577086,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778824419823,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":521046,"timestamp":16447585919,"id":73,"parentId":35,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":529803,"timestamp":16447577336,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778824419824,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":527346,"timestamp":16447586054,"id":74,"parentId":36,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":535857,"timestamp":16447577647,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778824419824,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":529422,"timestamp":16447585562,"id":69,"parentId":30,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":538246,"timestamp":16447576807,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778824419823,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":536405,"timestamp":16447586080,"id":75,"parentId":37,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":544702,"timestamp":16447577833,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778824419824,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":540500,"timestamp":16447585257,"id":67,"parentId":28,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":549166,"timestamp":16447576634,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778824419823,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":542836,"timestamp":16447586107,"id":77,"parentId":39,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":550850,"timestamp":16447578137,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778824419824,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":545286,"timestamp":16447586118,"id":78,"parentId":40,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":553483,"timestamp":16447578257,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778824419825,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":555431,"timestamp":16447585887,"id":72,"parentId":34,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":564140,"timestamp":16447577247,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778824419824,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":560236,"timestamp":16447584430,"id":62,"parentId":21,"tags":{},"startTime":1778824419831,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":572027,"timestamp":16447572699,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778824419819,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":558766,"timestamp":16447586126,"id":79,"parentId":41,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":566540,"timestamp":16447578381,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778824419825,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":562815,"timestamp":16447586168,"id":83,"parentId":45,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":570273,"timestamp":16447578776,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778824419825,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":567699,"timestamp":16447584997,"id":66,"parentId":27,"tags":{},"startTime":1778824419831,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":576198,"timestamp":16447576554,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778824419823,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":567817,"timestamp":16447586180,"id":84,"parentId":46,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":575206,"timestamp":16447578857,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778824419825,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":572008,"timestamp":16447586149,"id":81,"parentId":43,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":579601,"timestamp":16447578598,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778824419825,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":574223,"timestamp":16447586192,"id":85,"parentId":47,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":581499,"timestamp":16447578962,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778824419825,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":575386,"timestamp":16447586200,"id":86,"parentId":48,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":582544,"timestamp":16447579091,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778824419825,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":576575,"timestamp":16447586215,"id":87,"parentId":49,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":583644,"timestamp":16447579192,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778824419825,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":572616,"timestamp":16447594767,"id":89,"parentId":31,"tags":{},"startTime":1778824419841,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":590568,"timestamp":16447576884,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778824419823,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":581535,"timestamp":16447586095,"id":76,"parentId":38,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":589732,"timestamp":16447577939,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778824419824,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":585119,"timestamp":16447586137,"id":80,"parentId":42,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":592827,"timestamp":16447578500,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778824419825,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":602819,"timestamp":16447585425,"id":68,"parentId":29,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":611624,"timestamp":16447576710,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778824419823,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":598511,"timestamp":16447593597,"id":88,"parentId":24,"tags":{},"startTime":1778824419840,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":617702,"timestamp":16447574476,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778824419821,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":627041,"timestamp":16447600247,"id":91,"parentId":50,"tags":{},"startTime":1778824419847,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":647812,"timestamp":16447579569,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778824419826,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":645346,"timestamp":16447586157,"id":82,"parentId":44,"tags":{},"startTime":1778824419832,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":652895,"timestamp":16447578673,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778824419825,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":635181,"timestamp":16447600219,"id":90,"parentId":23,"tags":{},"startTime":1778824419846,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":661179,"timestamp":16447574276,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778824419821,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":635836,"timestamp":16447600278,"id":93,"parentId":52,"tags":{},"startTime":1778824419847,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":656329,"timestamp":16447579841,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778824419826,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":636014,"timestamp":16447600330,"id":96,"parentId":56,"tags":{},"startTime":1778824419847,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":655511,"timestamp":16447580868,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778824419827,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":645763,"timestamp":16447600354,"id":98,"parentId":59,"tags":{},"startTime":1778824419847,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":664565,"timestamp":16447581631,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778824419828,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":646013,"timestamp":16447600395,"id":100,"parentId":61,"tags":{},"startTime":1778824419847,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":664595,"timestamp":16447581848,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778824419828,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":649216,"timestamp":16447600344,"id":97,"parentId":57,"tags":{},"startTime":1778824419847,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":668531,"timestamp":16447581089,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778824419827,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":651020,"timestamp":16447600372,"id":99,"parentId":60,"tags":{},"startTime":1778824419847,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":669724,"timestamp":16447581737,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778824419828,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":652224,"timestamp":16447600264,"id":92,"parentId":51,"tags":{},"startTime":1778824419847,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":672824,"timestamp":16447579710,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778824419826,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":638581,"timestamp":16447614050,"id":101,"parentId":55,"tags":{},"startTime":1778824419860,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":672222,"timestamp":16447580436,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778824419827,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":633506,"timestamp":16447619939,"id":102,"parentId":58,"tags":{},"startTime":1778824419866,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":672193,"timestamp":16447581295,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778824419828,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":678518,"timestamp":16447600287,"id":94,"parentId":53,"tags":{},"startTime":1778824419847,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":698842,"timestamp":16447580032,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778824419826,"traceId":"b405438ab9a7c143"},{"name":"is-page-static","duration":684994,"timestamp":16447600315,"id":95,"parentId":54,"tags":{},"startTime":1778824419847,"traceId":"b405438ab9a7c143"},{"name":"check-page","duration":705141,"timestamp":16447580221,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778824419826,"traceId":"b405438ab9a7c143"},{"name":"static-check","duration":714638,"timestamp":16447570777,"id":19,"parentId":1,"tags":{},"startTime":1778824419817,"traceId":"b405438ab9a7c143"},{"name":"write-routes-manifest","duration":408,"timestamp":16448292507,"id":104,"parentId":1,"tags":{},"startTime":1778824420539,"traceId":"b405438ab9a7c143"},{"name":"load-dotenv","duration":36,"timestamp":16448303894,"id":107,"parentId":106,"tags":{},"startTime":1778824420550,"traceId":"b405438ab9a7c143"},{"name":"run-export-path-map","duration":668,"timestamp":16448306579,"id":108,"parentId":106,"tags":{},"startTime":1778824420553,"traceId":"b405438ab9a7c143"},{"name":"next-export","duration":556922,"timestamp":16448302704,"id":106,"parentId":1,"tags":{},"startTime":1778824420549,"traceId":"b405438ab9a7c143"}]
|
|
2
|
-
[{"name":"move-exported-app-not-found-","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":344,"timestamp":126968532691,"id":4,"parentId":1,"tags":{},"startTime":1778934940779,"traceId":"d1ae1bbcc3205020"},{"name":"load-custom-routes","duration":680,"timestamp":126968533224,"id":5,"parentId":1,"tags":{},"startTime":1778934940780,"traceId":"d1ae1bbcc3205020"},{"name":"create-dist-dir","duration":814,"timestamp":126968533952,"id":6,"parentId":1,"tags":{},"startTime":1778934940780,"traceId":"d1ae1bbcc3205020"},{"name":"clean","duration":40123,"timestamp":126968535635,"id":7,"parentId":1,"tags":{},"startTime":1778934940782,"traceId":"d1ae1bbcc3205020"},{"name":"discover-routes","duration":30575,"timestamp":126968671147,"id":8,"parentId":1,"tags":{},"startTime":1778934940917,"traceId":"d1ae1bbcc3205020"},{"name":"create-root-mapping","duration":135,"timestamp":126968701794,"id":9,"parentId":1,"tags":{},"startTime":1778934940948,"traceId":"d1ae1bbcc3205020"},{"name":"generate-route-types","duration":20650,"timestamp":126968704951,"id":10,"parentId":1,"tags":{},"startTime":1778934940951,"traceId":"d1ae1bbcc3205020"},{"name":"public-dir-conflict-check","duration":104,"timestamp":126968725700,"id":11,"parentId":1,"tags":{},"startTime":1778934940972,"traceId":"d1ae1bbcc3205020"},{"name":"generate-routes-manifest","duration":5235,"timestamp":126968725925,"id":12,"parentId":1,"tags":{},"startTime":1778934940972,"traceId":"d1ae1bbcc3205020"},{"name":"run-turbopack","duration":6442231,"timestamp":126968736964,"id":14,"parentId":1,"tags":{},"startTime":1778934940983,"traceId":"d1ae1bbcc3205020"},{"name":"turbopack-build-events","duration":114,"timestamp":126969045453,"id":15,"parentId":1,"tags":{},"startTime":1778934941292,"traceId":"d1ae1bbcc3205020"},{"name":"run-typescript","duration":9944827,"timestamp":126975196036,"id":16,"parentId":1,"tags":{},"startTime":1778934947442,"traceId":"d1ae1bbcc3205020"},{"name":"generate-required-server-files","duration":2896,"timestamp":126985142207,"id":18,"parentId":1,"tags":{},"startTime":1778934957388,"traceId":"d1ae1bbcc3205020"},{"name":"check-static-error-page","duration":14461,"timestamp":126985318403,"id":20,"parentId":19,"tags":{},"startTime":1778934957565,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":582272,"timestamp":126985337291,"id":65,"parentId":22,"tags":{},"startTime":1778934957584,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":599117,"timestamp":126985320630,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778934957567,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":611986,"timestamp":126985337482,"id":67,"parentId":26,"tags":{},"startTime":1778934957584,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":626622,"timestamp":126985322951,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778934957569,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":616235,"timestamp":126985337402,"id":66,"parentId":25,"tags":{},"startTime":1778934957584,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":630871,"timestamp":126985322829,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778934957569,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":616687,"timestamp":126985338230,"id":72,"parentId":32,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":631304,"timestamp":126985323664,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778934957570,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":620368,"timestamp":126985338427,"id":73,"parentId":33,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":635099,"timestamp":126985323748,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778934957570,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":655187,"timestamp":126985338514,"id":74,"parentId":34,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":669959,"timestamp":126985323822,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778934957570,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":667536,"timestamp":126985338550,"id":75,"parentId":35,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":682264,"timestamp":126985323903,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778934957570,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":669628,"timestamp":126985336904,"id":64,"parentId":21,"tags":{},"startTime":1778934957583,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":687067,"timestamp":126985319508,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778934957566,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":668848,"timestamp":126985337940,"id":70,"parentId":29,"tags":{},"startTime":1778934957584,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":683540,"timestamp":126985323291,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778934957570,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":672748,"timestamp":126985338581,"id":76,"parentId":36,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":687123,"timestamp":126985324258,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778934957571,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":682161,"timestamp":126985338668,"id":80,"parentId":40,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":696257,"timestamp":126985324635,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778934957571,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":686604,"timestamp":126985338613,"id":77,"parentId":37,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":700861,"timestamp":126985324414,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778934957571,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":695383,"timestamp":126985338697,"id":82,"parentId":44,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":708902,"timestamp":126985325240,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778934957572,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":695817,"timestamp":126985338680,"id":81,"parentId":42,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":709637,"timestamp":126985324908,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778934957571,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":708177,"timestamp":126985337645,"id":69,"parentId":28,"tags":{},"startTime":1778934957584,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":722666,"timestamp":126985323207,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778934957569,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":707433,"timestamp":126985338653,"id":79,"parentId":39,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":721561,"timestamp":126985324569,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778934957571,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":708998,"timestamp":126985338713,"id":83,"parentId":45,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":722442,"timestamp":126985325333,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778934957572,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":709213,"timestamp":126985338725,"id":84,"parentId":46,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":722578,"timestamp":126985325398,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778934957572,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":710600,"timestamp":126985338154,"id":71,"parentId":30,"tags":{},"startTime":1778934957584,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":725397,"timestamp":126985323401,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778934957570,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":711784,"timestamp":126985338778,"id":87,"parentId":49,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":721878,"timestamp":126985328728,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778934957575,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":715434,"timestamp":126985338742,"id":85,"parentId":47,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":728753,"timestamp":126985325470,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778934957572,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":715570,"timestamp":126985338789,"id":88,"parentId":50,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":725549,"timestamp":126985328846,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778934957575,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":720758,"timestamp":126985337556,"id":68,"parentId":27,"tags":{},"startTime":1778934957584,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":735272,"timestamp":126985323087,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778934957569,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":712216,"timestamp":126985347536,"id":90,"parentId":24,"tags":{},"startTime":1778934957594,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":738771,"timestamp":126985321020,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778934957567,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":708563,"timestamp":126985356561,"id":92,"parentId":41,"tags":{},"startTime":1778934957603,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":740438,"timestamp":126985324728,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778934957571,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":709267,"timestamp":126985362781,"id":93,"parentId":43,"tags":{},"startTime":1778934957609,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":747063,"timestamp":126985325032,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778934957571,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":741745,"timestamp":126985338762,"id":86,"parentId":48,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":752004,"timestamp":126985328549,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778934957575,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":727337,"timestamp":126985355356,"id":91,"parentId":31,"tags":{},"startTime":1778934957602,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":759264,"timestamp":126985323474,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778934957570,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":761812,"timestamp":126985338636,"id":78,"parentId":38,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":776000,"timestamp":126985324509,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778934957571,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":766388,"timestamp":126985338805,"id":89,"parentId":51,"tags":{},"startTime":1778934957585,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":776305,"timestamp":126985328952,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778934957575,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":740234,"timestamp":126985370271,"id":99,"parentId":56,"tags":{},"startTime":1778934957617,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":780195,"timestamp":126985330360,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778934957577,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":748109,"timestamp":126985370433,"id":101,"parentId":59,"tags":{},"startTime":1778934957617,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":787062,"timestamp":126985331537,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778934957578,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":759087,"timestamp":126985370460,"id":102,"parentId":61,"tags":{},"startTime":1778934957617,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":797398,"timestamp":126985332234,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778934957579,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":763607,"timestamp":126985370207,"id":95,"parentId":52,"tags":{},"startTime":1778934957616,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":804444,"timestamp":126985329427,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778934957576,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":770808,"timestamp":126985370474,"id":103,"parentId":62,"tags":{},"startTime":1778934957617,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":808938,"timestamp":126985332417,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778934957579,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":771232,"timestamp":126985370490,"id":104,"parentId":63,"tags":{},"startTime":1778934957617,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":809190,"timestamp":126985332593,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778934957579,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":774402,"timestamp":126985370169,"id":94,"parentId":23,"tags":{},"startTime":1778934957616,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":823800,"timestamp":126985320825,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778934957567,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":753030,"timestamp":126985396238,"id":105,"parentId":57,"tags":{},"startTime":1778934957643,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":818688,"timestamp":126985330631,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778934957577,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":736156,"timestamp":126985413476,"id":106,"parentId":60,"tags":{},"startTime":1778934957660,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":817925,"timestamp":126985331750,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778934957578,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":796618,"timestamp":126985370287,"id":100,"parentId":58,"tags":{},"startTime":1778934957617,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":835705,"timestamp":126985331273,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778934957578,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":803090,"timestamp":126985370240,"id":97,"parentId":54,"tags":{},"startTime":1778934957617,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":843553,"timestamp":126985329833,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778934957576,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":815474,"timestamp":126985370259,"id":98,"parentId":55,"tags":{},"startTime":1778934957617,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":855702,"timestamp":126985330098,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778934957576,"traceId":"d1ae1bbcc3205020"},{"name":"is-page-static","duration":819508,"timestamp":126985370223,"id":96,"parentId":53,"tags":{},"startTime":1778934957616,"traceId":"d1ae1bbcc3205020"},{"name":"check-page","duration":860133,"timestamp":126985329644,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778934957576,"traceId":"d1ae1bbcc3205020"},{"name":"static-check","duration":872268,"timestamp":126985317555,"id":19,"parentId":1,"tags":{},"startTime":1778934957564,"traceId":"d1ae1bbcc3205020"}]
|
|
2
|
+
[{"name":"write-routes-manifest","duration":1590,"timestamp":126986200735,"id":108,"parentId":1,"tags":{},"startTime":1778934958447,"traceId":"d1ae1bbcc3205020"},{"name":"load-dotenv","duration":59,"timestamp":126986214361,"id":111,"parentId":110,"tags":{},"startTime":1778934958461,"traceId":"d1ae1bbcc3205020"},{"name":"run-export-path-map","duration":582,"timestamp":126986218215,"id":112,"parentId":110,"tags":{},"startTime":1778934958464,"traceId":"d1ae1bbcc3205020"},{"name":"next-export","duration":663078,"timestamp":126986213094,"id":110,"parentId":1,"tags":{},"startTime":1778934958459,"traceId":"d1ae1bbcc3205020"},{"name":"move-exported-app-not-found-","duration":510,"timestamp":126986879207,"id":113,"parentId":109,"tags":{},"startTime":1778934959125,"traceId":"d1ae1bbcc3205020"},{"name":"move-exported-app-global-error-","duration":376,"timestamp":126986879801,"id":114,"parentId":109,"tags":{},"startTime":1778934959126,"traceId":"d1ae1bbcc3205020"},{"name":"static-generation","duration":675702,"timestamp":126986206934,"id":109,"parentId":1,"tags":{},"startTime":1778934958453,"traceId":"d1ae1bbcc3205020"},{"name":"write-routes-manifest","duration":581,"timestamp":126986882967,"id":115,"parentId":1,"tags":{},"startTime":1778934959129,"traceId":"d1ae1bbcc3205020"},{"name":"print-tree-view","duration":4088,"timestamp":126986904203,"id":116,"parentId":1,"tags":{},"startTime":1778934959150,"traceId":"d1ae1bbcc3205020"},{"name":"write-route-bundle-stats","duration":14582,"timestamp":126986908388,"id":117,"parentId":1,"tags":{},"startTime":1778934959155,"traceId":"d1ae1bbcc3205020"},{"name":"telemetry-flush","duration":18576,"timestamp":126986923033,"id":118,"parentId":1,"tags":{},"startTime":1778934959169,"traceId":"d1ae1bbcc3205020"},{"name":"next-build","duration":18472438,"timestamp":126968469211,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778934940715,"traceId":"d1ae1bbcc3205020"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":6442231,"timestamp":126968736964,"id":14,"parentId":1,"tags":{},"startTime":1778934940983,"traceId":"d1ae1bbcc3205020"},{"name":"turbopack-build-events","duration":114,"timestamp":126969045453,"id":15,"parentId":1,"tags":{},"startTime":1778934941292,"traceId":"d1ae1bbcc3205020"},{"name":"run-typescript","duration":9944827,"timestamp":126975196036,"id":16,"parentId":1,"tags":{},"startTime":1778934947442,"traceId":"d1ae1bbcc3205020"},{"name":"static-check","duration":872268,"timestamp":126985317555,"id":19,"parentId":1,"tags":{},"startTime":1778934957564,"traceId":"d1ae1bbcc3205020"},{"name":"static-generation","duration":675702,"timestamp":126986206934,"id":109,"parentId":1,"tags":{},"startTime":1778934958453,"traceId":"d1ae1bbcc3205020"},{"name":"telemetry-flush","duration":18576,"timestamp":126986923033,"id":118,"parentId":1,"tags":{},"startTime":1778934959169,"traceId":"d1ae1bbcc3205020"},{"name":"next-build","duration":18472438,"timestamp":126968469211,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778934940715,"traceId":"d1ae1bbcc3205020"}]
|
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/servers" | "/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/server/[hostname]/agents" | "/api/hub/server/[hostname]/health" | "/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,8 @@ interface ParamMap {
|
|
|
30
30
|
"/api/hub/register": {}
|
|
31
31
|
"/api/hub/send": {}
|
|
32
32
|
"/api/hub/server-logs": {}
|
|
33
|
+
"/api/hub/server/[hostname]/agents": { "hostname": string; }
|
|
34
|
+
"/api/hub/server/[hostname]/health": { "hostname": string; }
|
|
33
35
|
"/api/hub/servers": {}
|
|
34
36
|
"/api/hub/session": {}
|
|
35
37
|
"/api/hub/stats": {}
|
package/.next/types/validator.ts
CHANGED
|
@@ -317,6 +317,24 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
317
317
|
type __Unused = __Check
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
+
// Validate ../../app/api/hub/server/[hostname]/agents/route.ts
|
|
321
|
+
{
|
|
322
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/hub/server/[hostname]/agents">> = Specific
|
|
323
|
+
const handler = {} as typeof import("../../app/api/hub/server/[hostname]/agents/route.js")
|
|
324
|
+
type __Check = __IsExpected<typeof handler>
|
|
325
|
+
// @ts-ignore
|
|
326
|
+
type __Unused = __Check
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// Validate ../../app/api/hub/server/[hostname]/health/route.ts
|
|
330
|
+
{
|
|
331
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/hub/server/[hostname]/health">> = Specific
|
|
332
|
+
const handler = {} as typeof import("../../app/api/hub/server/[hostname]/health/route.js")
|
|
333
|
+
type __Check = __IsExpected<typeof handler>
|
|
334
|
+
// @ts-ignore
|
|
335
|
+
type __Unused = __Check
|
|
336
|
+
}
|
|
337
|
+
|
|
320
338
|
// Validate ../../app/api/hub/servers/route.ts
|
|
321
339
|
{
|
|
322
340
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/hub/servers">> = Specific
|
|
@@ -0,0 +1,62 @@
|
|
|
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/server/:hostname/agents from CommHub.
|
|
14
|
+
*
|
|
15
|
+
* v0.10.0 Hero 2 — per-server agent rollup endpoint exposed by
|
|
16
|
+
* commhub-server ≥ 0.8.1-preview.5 with the process_telemetry field
|
|
17
|
+
* shipped in agent-node ≥ 2.3.11-preview.1 (通信SDK马 T2.1+T2.2+T2.3
|
|
18
|
+
* dispatch chain). Returns per-agent stats:
|
|
19
|
+
* {
|
|
20
|
+
* agents: [
|
|
21
|
+
* {
|
|
22
|
+
* alias, runtime, status, last_seen_at,
|
|
23
|
+
* process_rss_bytes, process_cpu_pct,
|
|
24
|
+
* process_uptime_seconds, process_in_flight_count,
|
|
25
|
+
* progress,
|
|
26
|
+
* },
|
|
27
|
+
* ...
|
|
28
|
+
* ],
|
|
29
|
+
* }
|
|
30
|
+
*
|
|
31
|
+
* Forward-compat: when the upstream hub predates the endpoint, 404
|
|
32
|
+
* surfaces as `{ agents: [], unavailable: true }` so the consumer
|
|
33
|
+
* UI renders the "agent rollup pending hub ≥ 0.8.2-preview" hint.
|
|
34
|
+
*/
|
|
35
|
+
export async function GET(
|
|
36
|
+
_req: Request,
|
|
37
|
+
{ params }: { params: Promise<{ hostname: string }> },
|
|
38
|
+
) {
|
|
39
|
+
const authFailure = await requireDashboardAuth();
|
|
40
|
+
if (authFailure) return authFailure;
|
|
41
|
+
|
|
42
|
+
const { hostname } = await params;
|
|
43
|
+
if (!hostname || !/^[A-Za-z0-9._\-]+$/.test(hostname)) {
|
|
44
|
+
return Response.json({ error: 'invalid hostname' }, { status: 400 });
|
|
45
|
+
}
|
|
46
|
+
try {
|
|
47
|
+
const res = await fetch(
|
|
48
|
+
`${HUB_URL}/api/server/${encodeURIComponent(hostname)}/agents`,
|
|
49
|
+
{ headers: await hubHeaders(), next: { revalidate: 0 } },
|
|
50
|
+
);
|
|
51
|
+
if (!res.ok) {
|
|
52
|
+
if (res.status === 404) return Response.json({ agents: [], unavailable: true });
|
|
53
|
+
return Response.json({ error: `hub ${res.status}` }, { status: res.status });
|
|
54
|
+
}
|
|
55
|
+
return Response.json(await res.json());
|
|
56
|
+
} catch (e: unknown) {
|
|
57
|
+
return Response.json(
|
|
58
|
+
{ error: 'hub unreachable', detail: e instanceof Error ? e.message : String(e) },
|
|
59
|
+
{ status: 502 },
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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/server/:hostname/health from CommHub.
|
|
14
|
+
*
|
|
15
|
+
* v0.10.0 Hero 1 — per-server detailed health endpoint exposed by
|
|
16
|
+
* commhub-server ≥ 0.8.1-preview.5 (通信牛 T2.2 ship, see #140
|
|
17
|
+
* comment 4466558xxx). Returns:
|
|
18
|
+
* {
|
|
19
|
+
* hostname, ip,
|
|
20
|
+
* cpu_load_1min, cpu_cores, mem_used_gb, mem_total_gb,
|
|
21
|
+
* disk_used_gb, disk_total_gb,
|
|
22
|
+
* cpu_history: number[], mem_history: number[],
|
|
23
|
+
* last_seen_at,
|
|
24
|
+
* }
|
|
25
|
+
*
|
|
26
|
+
* Forward-compat: when the upstream hub predates the endpoint
|
|
27
|
+
* (currently 0.8.0 is what's deployed locally), 404 is surfaced as
|
|
28
|
+
* `{ unavailable: true }` so the ServersDrawer renders a "pending
|
|
29
|
+
* hub upgrade" hint instead of an error.
|
|
30
|
+
*/
|
|
31
|
+
export async function GET(
|
|
32
|
+
_req: Request,
|
|
33
|
+
{ params }: { params: Promise<{ hostname: string }> },
|
|
34
|
+
) {
|
|
35
|
+
const authFailure = await requireDashboardAuth();
|
|
36
|
+
if (authFailure) return authFailure;
|
|
37
|
+
|
|
38
|
+
const { hostname } = await params;
|
|
39
|
+
if (!hostname || !/^[A-Za-z0-9._\-]+$/.test(hostname)) {
|
|
40
|
+
return Response.json({ error: 'invalid hostname' }, { status: 400 });
|
|
41
|
+
}
|
|
42
|
+
try {
|
|
43
|
+
const res = await fetch(
|
|
44
|
+
`${HUB_URL}/api/server/${encodeURIComponent(hostname)}/health`,
|
|
45
|
+
{ headers: await hubHeaders(), next: { revalidate: 0 } },
|
|
46
|
+
);
|
|
47
|
+
if (!res.ok) {
|
|
48
|
+
if (res.status === 404) return Response.json({ unavailable: true });
|
|
49
|
+
return Response.json({ error: `hub ${res.status}` }, { status: res.status });
|
|
50
|
+
}
|
|
51
|
+
return Response.json(await res.json());
|
|
52
|
+
} catch (e: unknown) {
|
|
53
|
+
return Response.json(
|
|
54
|
+
{ error: 'hub unreachable', detail: e instanceof Error ? e.message : String(e) },
|
|
55
|
+
{ status: 502 },
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -15,7 +15,83 @@ async function hubHeaders(): Promise<Record<string, string>> {
|
|
|
15
15
|
* agent_count, status). Per issue #119; lands in v0.8.1-preview.2 of the
|
|
16
16
|
* commhub-server (通信牛). The dashboard <ServersDrawer> mounts in
|
|
17
17
|
* AppShell and refreshes every 5s when expanded.
|
|
18
|
+
*
|
|
19
|
+
* v0.10.0 Hero 1+2 — normalization layer. commhub-server@0.8.1-preview.5
|
|
20
|
+
* (LOCAL hub upgraded 2026-05-16 per 通信龙 d627eca7) returns:
|
|
21
|
+
* raw array `[{hostname, ip, agent_count, cpu_load_1min, cpu_cores,
|
|
22
|
+
* mem_avail_gb, mem_used_gb, last_seen}, ...]`
|
|
23
|
+
* — without the `{servers: [...]}` envelope the dashboard's ServersDrawer
|
|
24
|
+
* expects. Also uses `mem_avail_gb` instead of `mem_total_gb`. This
|
|
25
|
+
* proxy normalizes both:
|
|
26
|
+
* 1. Wraps raw array in `{servers: [...]}` envelope. If hub later
|
|
27
|
+
* switches to that shape natively, the pass-through still works.
|
|
28
|
+
* 2. Computes `mem_total_gb = mem_used_gb + mem_avail_gb` when the
|
|
29
|
+
* hub reports avail instead of total (older shape).
|
|
30
|
+
* 3. Marks server `status: 'online'|'offline'` from last_seen freshness
|
|
31
|
+
* (within 60s = online). Hub doesn't carry an explicit status
|
|
32
|
+
* field in 0.8.1-preview.5.
|
|
18
33
|
*/
|
|
34
|
+
|
|
35
|
+
interface HubServerRow {
|
|
36
|
+
hostname: string;
|
|
37
|
+
ip?: string | null;
|
|
38
|
+
agent_count?: number;
|
|
39
|
+
cpu_load_1min?: number | null;
|
|
40
|
+
cpu_cores?: number | null;
|
|
41
|
+
mem_used_gb?: number | null;
|
|
42
|
+
mem_total_gb?: number | null;
|
|
43
|
+
mem_avail_gb?: number | null;
|
|
44
|
+
disk_used_gb?: number | null;
|
|
45
|
+
disk_total_gb?: number | null;
|
|
46
|
+
cpu_history?: number[];
|
|
47
|
+
mem_history?: number[];
|
|
48
|
+
agents?: unknown[];
|
|
49
|
+
last_seen?: string | null;
|
|
50
|
+
status?: 'online' | 'offline';
|
|
51
|
+
note?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function freshnessStatus(lastSeen: string | null | undefined): 'online' | 'offline' {
|
|
55
|
+
if (!lastSeen) return 'offline';
|
|
56
|
+
// commhub-server@0.8.1-preview.5 reports last_seen in "YYYY-MM-DD
|
|
57
|
+
// HH:MM:SS" (space-separated, no timezone). Treat as UTC so all
|
|
58
|
+
// clients agree regardless of their local zone. If a later hub
|
|
59
|
+
// upgrade switches to ISO 8601 with explicit timezone, Date.parse
|
|
60
|
+
// will accept either format and the +'Z' suffix is harmless.
|
|
61
|
+
const iso = lastSeen.includes('T') ? lastSeen : lastSeen.replace(' ', 'T');
|
|
62
|
+
const withTz = /[zZ]|[+-]\d{2}:?\d{2}$/.test(iso) ? iso : iso + 'Z';
|
|
63
|
+
const t = Date.parse(withTz);
|
|
64
|
+
if (Number.isNaN(t)) return 'offline';
|
|
65
|
+
// 90s freshness window — wider than the agent-node 30s report
|
|
66
|
+
// cadence to absorb network latency + clock drift between client
|
|
67
|
+
// and hub. A truly offline agent flips status within ~2 missed
|
|
68
|
+
// reports.
|
|
69
|
+
return Date.now() - t < 90_000 ? 'online' : 'offline';
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function normalizeServer(row: HubServerRow) {
|
|
73
|
+
const memTotal = row.mem_total_gb ??
|
|
74
|
+
(row.mem_used_gb != null && row.mem_avail_gb != null
|
|
75
|
+
? row.mem_used_gb + row.mem_avail_gb
|
|
76
|
+
: null);
|
|
77
|
+
return {
|
|
78
|
+
hostname: row.hostname,
|
|
79
|
+
ip: row.ip ?? null,
|
|
80
|
+
agent_count: row.agent_count ?? 0,
|
|
81
|
+
cpu_load_1min: row.cpu_load_1min ?? null,
|
|
82
|
+
cpu_cores: row.cpu_cores ?? 0,
|
|
83
|
+
mem_used_gb: row.mem_used_gb ?? null,
|
|
84
|
+
mem_total_gb: memTotal,
|
|
85
|
+
disk_used_gb: row.disk_used_gb ?? null,
|
|
86
|
+
disk_total_gb: row.disk_total_gb ?? null,
|
|
87
|
+
cpu_history: row.cpu_history,
|
|
88
|
+
mem_history: row.mem_history,
|
|
89
|
+
agents: row.agents,
|
|
90
|
+
status: row.status ?? freshnessStatus(row.last_seen),
|
|
91
|
+
note: row.note,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
19
95
|
export async function GET() {
|
|
20
96
|
const authFailure = await requireDashboardAuth();
|
|
21
97
|
if (authFailure) return authFailure;
|
|
@@ -32,7 +108,18 @@ export async function GET() {
|
|
|
32
108
|
if (res.status === 404) return Response.json({ servers: [], unavailable: true });
|
|
33
109
|
return Response.json({ error: `hub ${res.status}` }, { status: res.status });
|
|
34
110
|
}
|
|
35
|
-
|
|
111
|
+
const raw = await res.json();
|
|
112
|
+
// Accept both shapes: bare array (0.8.1-preview.5) or {servers: [...]}
|
|
113
|
+
// wrapper (future hub revisions).
|
|
114
|
+
const rows: HubServerRow[] = Array.isArray(raw)
|
|
115
|
+
? raw
|
|
116
|
+
: Array.isArray(raw?.servers)
|
|
117
|
+
? raw.servers
|
|
118
|
+
: [];
|
|
119
|
+
return Response.json({
|
|
120
|
+
servers: rows.map(normalizeServer),
|
|
121
|
+
unavailable: raw?.unavailable === true,
|
|
122
|
+
});
|
|
36
123
|
} catch (e: unknown) {
|
|
37
124
|
return Response.json({ error: 'hub unreachable', detail: e instanceof Error ? e.message : String(e) }, { status: 502 });
|
|
38
125
|
}
|
|
@@ -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
|