agent-relay 2.0.22 → 2.0.23
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/bin/relay-pty-linux-arm64 +0 -0
- package/dist/src/cli/index.d.ts +3 -3
- package/dist/src/cli/index.js +31 -100
- package/package.json +22 -29
- package/packages/api-types/package.json +1 -1
- package/packages/bridge/package.json +8 -8
- package/packages/cli-tester/package.json +1 -1
- package/packages/cloud/dist/server.js +25 -4
- package/packages/cloud/package.json +6 -6
- package/packages/config/package.json +2 -2
- package/packages/continuity/package.json +1 -1
- package/packages/daemon/dist/orchestrator.js +19 -1
- package/packages/daemon/package.json +12 -12
- package/packages/hooks/package.json +4 -4
- package/packages/mcp/package.json +2 -2
- package/packages/memory/package.json +2 -2
- package/packages/policy/package.json +2 -2
- package/packages/protocol/package.json +1 -1
- package/packages/resiliency/package.json +1 -1
- package/packages/sdk/package.json +2 -2
- package/packages/spawner/package.json +1 -1
- package/packages/state/package.json +1 -1
- package/packages/storage/package.json +2 -2
- package/packages/telemetry/package.json +1 -1
- package/packages/trajectory/package.json +2 -2
- package/packages/user-directory/package.json +2 -2
- package/packages/utils/dist/update-checker.js +4 -0
- package/packages/utils/package.json +1 -1
- package/packages/wrapper/package.json +6 -6
- package/deploy/workspace/codex.config.toml +0 -20
- package/deploy/workspace/entrypoint-browser.sh +0 -118
- package/deploy/workspace/entrypoint.sh +0 -612
- package/deploy/workspace/gh-credential-relay +0 -90
- package/deploy/workspace/gh-relay +0 -156
- package/deploy/workspace/git-credential-relay +0 -330
- package/deploy/workspace/git-credential-relay.test.sh +0 -230
- package/dist/dashboard/out/404.html +0 -1
- package/dist/dashboard/out/_next/static/91mkGYq3qbG8WHE6VytQ8/_buildManifest.js +0 -1
- package/dist/dashboard/out/_next/static/91mkGYq3qbG8WHE6VytQ8/_ssgManifest.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/116-a883fca163f3a5bc.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/117-c8afed19e821a35d.js +0 -2
- package/dist/dashboard/out/_next/static/chunks/282-980c2eb8fff20123.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/320-a6304232cd0ee2ce.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/532-bace199897eeab37.js +0 -9
- package/dist/dashboard/out/_next/static/chunks/631-16b905e5920f9b59.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/648-acb2ff9f77cbfbd3.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/766-2aea80818f7eb0d8.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/83-26d2bde54616ee90.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/847-f1f467060f32afff.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/891-5cb1513eeb97a891.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/_not-found/page-60501fddbafba9dc.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/app/onboarding/page-9914652442f7e4fb.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/app/page-366fb7c078d4e9e0.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/cloud/link/page-fa1d5842aa90e8a6.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/complete-profile/page-dd64bbdf66b639cd.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/connect-repos/page-113060009ef35bc2.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/history/page-9965d2483011b846.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/layout-6b91e33784c20610.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/login/page-435eceb0073be027.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/metrics/page-1e37ef8e73940b40.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/page-8119d4246743574e.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/pricing/page-9db3ebdfa567a7c9.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/providers/page-ecb16ffd3b36262b.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/providers/setup/[provider]/page-4dbe33f0f7691b7c.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/app/signup/page-c7a0a28341365ae0.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/e868780c-48e5f147c90a3a41.js +0 -18
- package/dist/dashboard/out/_next/static/chunks/fd9d1056-609918ca7b6280bb.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/framework-f66176bb897dc684.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/main-311c3db74dcfadb7.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/main-app-fdbeb09028f57c9f.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/pages/_app-72b849fbd24ac258.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/pages/_error-7ba65e1336b92748.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/dist/dashboard/out/_next/static/chunks/webpack-1cdd8ed57114d5e1.js +0 -1
- package/dist/dashboard/out/_next/static/css/4034f236dd1a3178.css +0 -1
- package/dist/dashboard/out/_next/static/css/6892f8422896ef7a.css +0 -1
- package/dist/dashboard/out/alt-logos/agent-relay-logo-128.png +0 -0
- package/dist/dashboard/out/alt-logos/agent-relay-logo-256.png +0 -0
- package/dist/dashboard/out/alt-logos/agent-relay-logo-32.png +0 -0
- package/dist/dashboard/out/alt-logos/agent-relay-logo-512.png +0 -0
- package/dist/dashboard/out/alt-logos/agent-relay-logo-64.png +0 -0
- package/dist/dashboard/out/alt-logos/agent-relay-logo.svg +0 -45
- package/dist/dashboard/out/alt-logos/logo.svg +0 -38
- package/dist/dashboard/out/alt-logos/monogram-logo-128.png +0 -0
- package/dist/dashboard/out/alt-logos/monogram-logo-256.png +0 -0
- package/dist/dashboard/out/alt-logos/monogram-logo-32.png +0 -0
- package/dist/dashboard/out/alt-logos/monogram-logo-512.png +0 -0
- package/dist/dashboard/out/alt-logos/monogram-logo-64.png +0 -0
- package/dist/dashboard/out/alt-logos/monogram-logo.svg +0 -38
- package/dist/dashboard/out/app/onboarding.html +0 -1
- package/dist/dashboard/out/app/onboarding.txt +0 -7
- package/dist/dashboard/out/app.html +0 -1
- package/dist/dashboard/out/app.txt +0 -7
- package/dist/dashboard/out/apple-icon.png +0 -0
- package/dist/dashboard/out/cloud/link.html +0 -1
- package/dist/dashboard/out/cloud/link.txt +0 -7
- package/dist/dashboard/out/complete-profile.html +0 -5
- package/dist/dashboard/out/complete-profile.txt +0 -7
- package/dist/dashboard/out/connect-repos.html +0 -1
- package/dist/dashboard/out/connect-repos.txt +0 -7
- package/dist/dashboard/out/history.html +0 -1
- package/dist/dashboard/out/history.txt +0 -7
- package/dist/dashboard/out/index.html +0 -1
- package/dist/dashboard/out/index.txt +0 -7
- package/dist/dashboard/out/login.html +0 -5
- package/dist/dashboard/out/login.txt +0 -7
- package/dist/dashboard/out/metrics.html +0 -1
- package/dist/dashboard/out/metrics.txt +0 -7
- package/dist/dashboard/out/pricing.html +0 -13
- package/dist/dashboard/out/pricing.txt +0 -7
- package/dist/dashboard/out/providers/setup/claude.html +0 -1
- package/dist/dashboard/out/providers/setup/claude.txt +0 -8
- package/dist/dashboard/out/providers/setup/codex.html +0 -1
- package/dist/dashboard/out/providers/setup/codex.txt +0 -8
- package/dist/dashboard/out/providers/setup/cursor.html +0 -1
- package/dist/dashboard/out/providers/setup/cursor.txt +0 -8
- package/dist/dashboard/out/providers.html +0 -1
- package/dist/dashboard/out/providers.txt +0 -7
- package/dist/dashboard/out/signup.html +0 -6
- package/dist/dashboard/out/signup.txt +0 -7
- package/dist/src/dashboard-server/index.d.ts +0 -8
- package/dist/src/dashboard-server/index.js +0 -8
- package/packages/dashboard/README.md +0 -48
- package/packages/dashboard/dist/health-worker-manager.d.ts +0 -62
- package/packages/dashboard/dist/health-worker-manager.js +0 -144
- package/packages/dashboard/dist/health-worker.d.ts +0 -9
- package/packages/dashboard/dist/health-worker.js +0 -79
- package/packages/dashboard/dist/index.d.ts +0 -20
- package/packages/dashboard/dist/index.js +0 -19
- package/packages/dashboard/dist/metrics.d.ts +0 -105
- package/packages/dashboard/dist/metrics.js +0 -193
- package/packages/dashboard/dist/needs-attention.d.ts +0 -24
- package/packages/dashboard/dist/needs-attention.js +0 -78
- package/packages/dashboard/dist/server.d.ts +0 -25
- package/packages/dashboard/dist/server.js +0 -5270
- package/packages/dashboard/dist/start.d.ts +0 -6
- package/packages/dashboard/dist/start.js +0 -13
- package/packages/dashboard/dist/types/threading.d.ts +0 -8
- package/packages/dashboard/dist/types/threading.js +0 -2
- package/packages/dashboard/dist/user-bridge.d.ts +0 -154
- package/packages/dashboard/dist/user-bridge.js +0 -372
- package/packages/dashboard/package.json +0 -65
- package/packages/dashboard/ui/app/app/onboarding/page.tsx +0 -394
- package/packages/dashboard/ui/app/app/page.tsx +0 -667
- package/packages/dashboard/ui/app/apple-icon.png +0 -0
- package/packages/dashboard/ui/app/cloud/link/page.tsx +0 -464
- package/packages/dashboard/ui/app/complete-profile/page.tsx +0 -204
- package/packages/dashboard/ui/app/connect-repos/page.tsx +0 -410
- package/packages/dashboard/ui/app/favicon.png +0 -0
- package/packages/dashboard/ui/app/globals.css +0 -59
- package/packages/dashboard/ui/app/history/page.tsx +0 -658
- package/packages/dashboard/ui/app/layout.tsx +0 -25
- package/packages/dashboard/ui/app/login/page.tsx +0 -424
- package/packages/dashboard/ui/app/metrics/page.tsx +0 -751
- package/packages/dashboard/ui/app/page.tsx +0 -59
- package/packages/dashboard/ui/app/pricing/page.tsx +0 -7
- package/packages/dashboard/ui/app/providers/page.tsx +0 -193
- package/packages/dashboard/ui/app/providers/setup/[provider]/ProviderSetupClient.tsx +0 -148
- package/packages/dashboard/ui/app/providers/setup/[provider]/constants.ts +0 -35
- package/packages/dashboard/ui/app/providers/setup/[provider]/page.tsx +0 -42
- package/packages/dashboard/ui/app/signup/page.tsx +0 -533
- package/packages/dashboard/ui/index.ts +0 -49
- package/packages/dashboard/ui/landing/LandingPage.tsx +0 -713
- package/packages/dashboard/ui/landing/PricingPage.tsx +0 -559
- package/packages/dashboard/ui/landing/index.ts +0 -6
- package/packages/dashboard/ui/landing/styles.css +0 -2850
- package/packages/dashboard/ui/lib/agent-merge.ts +0 -35
- package/packages/dashboard/ui/lib/api.ts +0 -1155
- package/packages/dashboard/ui/lib/cloudApi.ts +0 -877
- package/packages/dashboard/ui/lib/colors.ts +0 -218
- package/packages/dashboard/ui/lib/hierarchy.ts +0 -242
- package/packages/dashboard/ui/lib/stuckDetection.ts +0 -142
- package/packages/dashboard/ui/next-env.d.ts +0 -5
- package/packages/dashboard/ui/next.config.js +0 -41
- package/packages/dashboard/ui/package-lock.json +0 -2882
- package/packages/dashboard/ui/package.json +0 -33
- package/packages/dashboard/ui/postcss.config.js +0 -5
- package/packages/dashboard/ui/react-components/ActivityFeed.tsx +0 -216
- package/packages/dashboard/ui/react-components/AddWorkspaceModal.tsx +0 -170
- package/packages/dashboard/ui/react-components/AgentCard.tsx +0 -587
- package/packages/dashboard/ui/react-components/AgentList.tsx +0 -411
- package/packages/dashboard/ui/react-components/AgentProfilePanel.tsx +0 -564
- package/packages/dashboard/ui/react-components/App.tsx +0 -3033
- package/packages/dashboard/ui/react-components/BillingPanel.tsx +0 -922
- package/packages/dashboard/ui/react-components/BillingResult.tsx +0 -447
- package/packages/dashboard/ui/react-components/BroadcastComposer.tsx +0 -690
- package/packages/dashboard/ui/react-components/ChannelAdminPanel.tsx +0 -773
- package/packages/dashboard/ui/react-components/ChannelBrowser.tsx +0 -385
- package/packages/dashboard/ui/react-components/ChannelChat.tsx +0 -261
- package/packages/dashboard/ui/react-components/ChannelSidebar.tsx +0 -399
- package/packages/dashboard/ui/react-components/CloudSessionProvider.tsx +0 -130
- package/packages/dashboard/ui/react-components/CommandPalette.tsx +0 -815
- package/packages/dashboard/ui/react-components/ConfirmationDialog.tsx +0 -133
- package/packages/dashboard/ui/react-components/ConversationHistory.tsx +0 -518
- package/packages/dashboard/ui/react-components/CoordinatorPanel.tsx +0 -944
- package/packages/dashboard/ui/react-components/DecisionQueue.tsx +0 -717
- package/packages/dashboard/ui/react-components/DirectMessageView.tsx +0 -164
- package/packages/dashboard/ui/react-components/FileAutocomplete.tsx +0 -368
- package/packages/dashboard/ui/react-components/FleetOverview.tsx +0 -278
- package/packages/dashboard/ui/react-components/LogViewer.tsx +0 -310
- package/packages/dashboard/ui/react-components/LogViewerPanel.tsx +0 -482
- package/packages/dashboard/ui/react-components/Logo.tsx +0 -284
- package/packages/dashboard/ui/react-components/MentionAutocomplete.tsx +0 -384
- package/packages/dashboard/ui/react-components/MessageComposer.tsx +0 -457
- package/packages/dashboard/ui/react-components/MessageList.tsx +0 -649
- package/packages/dashboard/ui/react-components/MessageSenderName.tsx +0 -91
- package/packages/dashboard/ui/react-components/MessageStatusIndicator.tsx +0 -142
- package/packages/dashboard/ui/react-components/NewConversationModal.tsx +0 -400
- package/packages/dashboard/ui/react-components/NotificationToast.tsx +0 -488
- package/packages/dashboard/ui/react-components/OnlineUsersIndicator.tsx +0 -164
- package/packages/dashboard/ui/react-components/Pagination.tsx +0 -124
- package/packages/dashboard/ui/react-components/PricingPlans.tsx +0 -386
- package/packages/dashboard/ui/react-components/ProjectList.tsx +0 -625
- package/packages/dashboard/ui/react-components/ProviderAuthFlow.tsx +0 -853
- package/packages/dashboard/ui/react-components/ProviderConnectionList.tsx +0 -378
- package/packages/dashboard/ui/react-components/ProvisioningProgress.tsx +0 -730
- package/packages/dashboard/ui/react-components/RepoAccessPanel.tsx +0 -549
- package/packages/dashboard/ui/react-components/ServerCard.tsx +0 -202
- package/packages/dashboard/ui/react-components/SessionExpiredModal.tsx +0 -128
- package/packages/dashboard/ui/react-components/SpawnModal.tsx +0 -804
- package/packages/dashboard/ui/react-components/TaskAssignmentUI.tsx +0 -375
- package/packages/dashboard/ui/react-components/TerminalProviderSetup.tsx +0 -608
- package/packages/dashboard/ui/react-components/ThemeProvider.tsx +0 -325
- package/packages/dashboard/ui/react-components/ThinkingIndicator.tsx +0 -231
- package/packages/dashboard/ui/react-components/ThreadList.tsx +0 -198
- package/packages/dashboard/ui/react-components/ThreadPanel.tsx +0 -346
- package/packages/dashboard/ui/react-components/TrajectoryViewer.tsx +0 -698
- package/packages/dashboard/ui/react-components/TypingIndicator.tsx +0 -69
- package/packages/dashboard/ui/react-components/UsageBanner.tsx +0 -231
- package/packages/dashboard/ui/react-components/UserProfilePanel.tsx +0 -233
- package/packages/dashboard/ui/react-components/WorkspaceContext.tsx +0 -107
- package/packages/dashboard/ui/react-components/WorkspaceSelector.tsx +0 -234
- package/packages/dashboard/ui/react-components/WorkspaceStatusIndicator.tsx +0 -370
- package/packages/dashboard/ui/react-components/XTermInteractive.tsx +0 -510
- package/packages/dashboard/ui/react-components/XTermLogViewer.tsx +0 -719
- package/packages/dashboard/ui/react-components/channels/ChannelDialogs.tsx +0 -1411
- package/packages/dashboard/ui/react-components/channels/ChannelHeader.tsx +0 -317
- package/packages/dashboard/ui/react-components/channels/ChannelMessageList.tsx +0 -463
- package/packages/dashboard/ui/react-components/channels/ChannelViewV1.tsx +0 -146
- package/packages/dashboard/ui/react-components/channels/MessageInput.tsx +0 -288
- package/packages/dashboard/ui/react-components/channels/SearchInput.tsx +0 -172
- package/packages/dashboard/ui/react-components/channels/SearchResults.tsx +0 -336
- package/packages/dashboard/ui/react-components/channels/api.ts +0 -697
- package/packages/dashboard/ui/react-components/channels/index.ts +0 -76
- package/packages/dashboard/ui/react-components/channels/mockApi.ts +0 -344
- package/packages/dashboard/ui/react-components/channels/types.ts +0 -566
- package/packages/dashboard/ui/react-components/hooks/index.ts +0 -57
- package/packages/dashboard/ui/react-components/hooks/useAgentLogs.ts +0 -394
- package/packages/dashboard/ui/react-components/hooks/useAgents.ts +0 -127
- package/packages/dashboard/ui/react-components/hooks/useBroadcastDedup.ts +0 -86
- package/packages/dashboard/ui/react-components/hooks/useChannelAdmin.ts +0 -329
- package/packages/dashboard/ui/react-components/hooks/useChannelBrowser.ts +0 -239
- package/packages/dashboard/ui/react-components/hooks/useChannelCommands.ts +0 -138
- package/packages/dashboard/ui/react-components/hooks/useChannels.ts +0 -328
- package/packages/dashboard/ui/react-components/hooks/useDebounce.ts +0 -29
- package/packages/dashboard/ui/react-components/hooks/useDirectMessage.ts +0 -141
- package/packages/dashboard/ui/react-components/hooks/useMessages.ts +0 -309
- package/packages/dashboard/ui/react-components/hooks/useOrchestrator.ts +0 -364
- package/packages/dashboard/ui/react-components/hooks/usePinnedAgents.ts +0 -140
- package/packages/dashboard/ui/react-components/hooks/usePresence.ts +0 -340
- package/packages/dashboard/ui/react-components/hooks/useRecentRepos.ts +0 -130
- package/packages/dashboard/ui/react-components/hooks/useSession.ts +0 -209
- package/packages/dashboard/ui/react-components/hooks/useTrajectory.ts +0 -265
- package/packages/dashboard/ui/react-components/hooks/useWebSocket.ts +0 -169
- package/packages/dashboard/ui/react-components/hooks/useWorkspaceMembers.ts +0 -120
- package/packages/dashboard/ui/react-components/hooks/useWorkspaceRepos.ts +0 -73
- package/packages/dashboard/ui/react-components/hooks/useWorkspaceStatus.ts +0 -237
- package/packages/dashboard/ui/react-components/index.ts +0 -81
- package/packages/dashboard/ui/react-components/layout/Header.tsx +0 -355
- package/packages/dashboard/ui/react-components/layout/RepoContextHeader.tsx +0 -361
- package/packages/dashboard/ui/react-components/layout/Sidebar.archive.test.tsx +0 -126
- package/packages/dashboard/ui/react-components/layout/Sidebar.test.tsx +0 -691
- package/packages/dashboard/ui/react-components/layout/Sidebar.tsx +0 -930
- package/packages/dashboard/ui/react-components/layout/index.ts +0 -7
- package/packages/dashboard/ui/react-components/settings/BillingSettingsPanel.tsx +0 -564
- package/packages/dashboard/ui/react-components/settings/SettingsPage.tsx +0 -544
- package/packages/dashboard/ui/react-components/settings/TeamSettingsPanel.tsx +0 -560
- package/packages/dashboard/ui/react-components/settings/WorkspaceSettingsPanel.tsx +0 -1386
- package/packages/dashboard/ui/react-components/settings/index.ts +0 -11
- package/packages/dashboard/ui/react-components/settings/types.ts +0 -53
- package/packages/dashboard/ui/react-components/utils/messageFormatting.tsx +0 -370
- package/packages/dashboard/ui/tailwind.config.js +0 -148
- package/packages/dashboard/ui/types/index.ts +0 -304
- package/packages/dashboard/ui/types/threading.ts +0 -7
- package/packages/dashboard/ui-dist/404.html +0 -1
- package/packages/dashboard/ui-dist/_next/static/91mkGYq3qbG8WHE6VytQ8/_buildManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/91mkGYq3qbG8WHE6VytQ8/_ssgManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/T2rV14eEU5OweDeV29SvG/_buildManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/T2rV14eEU5OweDeV29SvG/_ssgManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/116-a883fca163f3a5bc.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/117-c8afed19e821a35d.js +0 -2
- package/packages/dashboard/ui-dist/_next/static/chunks/282-980c2eb8fff20123.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/320-a6304232cd0ee2ce.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/532-bace199897eeab37.js +0 -9
- package/packages/dashboard/ui-dist/_next/static/chunks/631-16b905e5920f9b59.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/648-acb2ff9f77cbfbd3.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/766-2aea80818f7eb0d8.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/83-26d2bde54616ee90.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/847-f1f467060f32afff.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/891-5cb1513eeb97a891.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/_not-found/page-60501fddbafba9dc.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/app/onboarding/page-9914652442f7e4fb.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/app/page-366fb7c078d4e9e0.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/cloud/link/page-fa1d5842aa90e8a6.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/complete-profile/page-dd64bbdf66b639cd.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/connect-repos/page-113060009ef35bc2.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/history/page-9965d2483011b846.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/layout-6b91e33784c20610.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/login/page-435eceb0073be027.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/metrics/page-1e37ef8e73940b40.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/page-8119d4246743574e.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/pricing/page-9db3ebdfa567a7c9.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/providers/page-ecb16ffd3b36262b.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/providers/setup/[provider]/page-4dbe33f0f7691b7c.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/app/signup/page-c7a0a28341365ae0.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/e868780c-48e5f147c90a3a41.js +0 -18
- package/packages/dashboard/ui-dist/_next/static/chunks/fd9d1056-609918ca7b6280bb.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/framework-f66176bb897dc684.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/main-311c3db74dcfadb7.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/main-app-fdbeb09028f57c9f.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/pages/_app-72b849fbd24ac258.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/pages/_error-7ba65e1336b92748.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/chunks/webpack-1cdd8ed57114d5e1.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/css/4034f236dd1a3178.css +0 -1
- package/packages/dashboard/ui-dist/_next/static/css/6892f8422896ef7a.css +0 -1
- package/packages/dashboard/ui-dist/_next/static/l8L2OscDSR2vsMIlWcC48/_buildManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/l8L2OscDSR2vsMIlWcC48/_ssgManifest.js +0 -1
- package/packages/dashboard/ui-dist/alt-logos/agent-relay-logo-128.png +0 -0
- package/packages/dashboard/ui-dist/alt-logos/agent-relay-logo-256.png +0 -0
- package/packages/dashboard/ui-dist/alt-logos/agent-relay-logo-32.png +0 -0
- package/packages/dashboard/ui-dist/alt-logos/agent-relay-logo-512.png +0 -0
- package/packages/dashboard/ui-dist/alt-logos/agent-relay-logo-64.png +0 -0
- package/packages/dashboard/ui-dist/alt-logos/agent-relay-logo.svg +0 -45
- package/packages/dashboard/ui-dist/alt-logos/logo.svg +0 -38
- package/packages/dashboard/ui-dist/alt-logos/monogram-logo-128.png +0 -0
- package/packages/dashboard/ui-dist/alt-logos/monogram-logo-256.png +0 -0
- package/packages/dashboard/ui-dist/alt-logos/monogram-logo-32.png +0 -0
- package/packages/dashboard/ui-dist/alt-logos/monogram-logo-512.png +0 -0
- package/packages/dashboard/ui-dist/alt-logos/monogram-logo-64.png +0 -0
- package/packages/dashboard/ui-dist/alt-logos/monogram-logo.svg +0 -38
- package/packages/dashboard/ui-dist/app/onboarding.html +0 -1
- package/packages/dashboard/ui-dist/app/onboarding.txt +0 -7
- package/packages/dashboard/ui-dist/app.html +0 -1
- package/packages/dashboard/ui-dist/app.txt +0 -7
- package/packages/dashboard/ui-dist/apple-icon.png +0 -0
- package/packages/dashboard/ui-dist/cloud/link.html +0 -1
- package/packages/dashboard/ui-dist/cloud/link.txt +0 -7
- package/packages/dashboard/ui-dist/complete-profile.html +0 -5
- package/packages/dashboard/ui-dist/complete-profile.txt +0 -7
- package/packages/dashboard/ui-dist/connect-repos.html +0 -1
- package/packages/dashboard/ui-dist/connect-repos.txt +0 -7
- package/packages/dashboard/ui-dist/history.html +0 -1
- package/packages/dashboard/ui-dist/history.txt +0 -7
- package/packages/dashboard/ui-dist/index.html +0 -1
- package/packages/dashboard/ui-dist/index.txt +0 -7
- package/packages/dashboard/ui-dist/login.html +0 -5
- package/packages/dashboard/ui-dist/login.txt +0 -7
- package/packages/dashboard/ui-dist/metrics.html +0 -1
- package/packages/dashboard/ui-dist/metrics.txt +0 -7
- package/packages/dashboard/ui-dist/pricing.html +0 -13
- package/packages/dashboard/ui-dist/pricing.txt +0 -7
- package/packages/dashboard/ui-dist/providers/setup/claude.html +0 -1
- package/packages/dashboard/ui-dist/providers/setup/claude.txt +0 -8
- package/packages/dashboard/ui-dist/providers/setup/codex.html +0 -1
- package/packages/dashboard/ui-dist/providers/setup/codex.txt +0 -8
- package/packages/dashboard/ui-dist/providers/setup/cursor.html +0 -1
- package/packages/dashboard/ui-dist/providers/setup/cursor.txt +0 -8
- package/packages/dashboard/ui-dist/providers.html +0 -1
- package/packages/dashboard/ui-dist/providers.txt +0 -7
- package/packages/dashboard/ui-dist/signup.html +0 -6
- package/packages/dashboard/ui-dist/signup.txt +0 -7
- package/packages/dashboard-server/dist/health-worker-manager.d.ts +0 -62
- package/packages/dashboard-server/dist/health-worker-manager.js +0 -144
- package/packages/dashboard-server/dist/health-worker.d.ts +0 -9
- package/packages/dashboard-server/dist/health-worker.js +0 -79
- package/packages/dashboard-server/dist/index.d.ts +0 -18
- package/packages/dashboard-server/dist/index.js +0 -17
- package/packages/dashboard-server/dist/metrics.d.ts +0 -105
- package/packages/dashboard-server/dist/metrics.js +0 -193
- package/packages/dashboard-server/dist/needs-attention.d.ts +0 -24
- package/packages/dashboard-server/dist/needs-attention.js +0 -78
- package/packages/dashboard-server/dist/server.d.ts +0 -25
- package/packages/dashboard-server/dist/server.js +0 -5158
- package/packages/dashboard-server/dist/start.d.ts +0 -6
- package/packages/dashboard-server/dist/start.js +0 -13
- package/packages/dashboard-server/dist/types/threading.d.ts +0 -8
- package/packages/dashboard-server/dist/types/threading.js +0 -2
- package/packages/dashboard-server/dist/user-bridge.d.ts +0 -158
- package/packages/dashboard-server/dist/user-bridge.js +0 -390
- package/packages/dashboard-server/package.json +0 -55
|
@@ -1,930 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sidebar Component - Mission Control Theme
|
|
3
|
-
*
|
|
4
|
-
* Main navigation sidebar with channels, agents, and projects in unified view.
|
|
5
|
-
* Channels are collapsed by default.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React, { useState, useEffect } from 'react';
|
|
9
|
-
import type { Agent, Project } from '../../types';
|
|
10
|
-
import type { ThreadInfo } from '../hooks/useMessages';
|
|
11
|
-
import { usePinnedAgents } from '../hooks/usePinnedAgents';
|
|
12
|
-
import { useWorkspaceStatus } from '../hooks/useWorkspaceStatus';
|
|
13
|
-
import { AgentList } from '../AgentList';
|
|
14
|
-
import { ProjectList } from '../ProjectList';
|
|
15
|
-
import { ThreadList } from '../ThreadList';
|
|
16
|
-
import { LogoIcon } from '../Logo';
|
|
17
|
-
|
|
18
|
-
const THREADS_COLLAPSED_KEY = 'agent-relay-threads-collapsed';
|
|
19
|
-
const SIDEBAR_TAB_KEY = 'agent-relay-sidebar-tab';
|
|
20
|
-
const CHANNELS_COLLAPSED_KEY = 'agent-relay-channels-collapsed';
|
|
21
|
-
|
|
22
|
-
/** Channel type for sidebar display */
|
|
23
|
-
export interface SidebarChannel {
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
unreadCount: number;
|
|
27
|
-
hasMentions?: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type SidebarTab = 'agents' | 'team';
|
|
31
|
-
|
|
32
|
-
export interface SidebarProps {
|
|
33
|
-
agents: Agent[];
|
|
34
|
-
/** Bridge-level agents like Architect that span multiple projects */
|
|
35
|
-
bridgeAgents?: Agent[];
|
|
36
|
-
projects?: Project[];
|
|
37
|
-
/** Current signed-in human (to hide from Human Users list) */
|
|
38
|
-
currentUserName?: string;
|
|
39
|
-
/** Unread DM counts keyed by human username */
|
|
40
|
-
humanUnreadCounts?: Record<string, number>;
|
|
41
|
-
currentProject?: string;
|
|
42
|
-
selectedAgent?: string;
|
|
43
|
-
viewMode: 'local' | 'fleet' | 'channels';
|
|
44
|
-
isFleetAvailable: boolean;
|
|
45
|
-
isConnected: boolean;
|
|
46
|
-
/** Mobile: whether sidebar is open */
|
|
47
|
-
isOpen?: boolean;
|
|
48
|
-
/** Active threads for the threads section */
|
|
49
|
-
activeThreads?: ThreadInfo[];
|
|
50
|
-
/** Currently selected thread */
|
|
51
|
-
currentThread?: string | null;
|
|
52
|
-
/** Total unread thread count for notification badge */
|
|
53
|
-
totalUnreadThreadCount?: number;
|
|
54
|
-
/** Whether Activity feed is selected */
|
|
55
|
-
isActivitySelected?: boolean;
|
|
56
|
-
/** Unread count for Activity (broadcasts) */
|
|
57
|
-
activityUnreadCount?: number;
|
|
58
|
-
/** Handler when Activity is selected */
|
|
59
|
-
onActivitySelect?: () => void;
|
|
60
|
-
/** Channels for the collapsible channels section */
|
|
61
|
-
channels?: SidebarChannel[];
|
|
62
|
-
/** Archived channels for the collapsible archived section */
|
|
63
|
-
archivedChannels?: SidebarChannel[];
|
|
64
|
-
/** Currently selected channel ID */
|
|
65
|
-
selectedChannelId?: string;
|
|
66
|
-
/** Handler when a channel is selected */
|
|
67
|
-
onChannelSelect?: (channel: SidebarChannel) => void;
|
|
68
|
-
/** Handler to archive a channel */
|
|
69
|
-
onArchiveChannel?: (channel: SidebarChannel) => void;
|
|
70
|
-
/** Handler to unarchive a channel */
|
|
71
|
-
onUnarchiveChannel?: (channel: SidebarChannel) => void;
|
|
72
|
-
/** Handler to create a new channel */
|
|
73
|
-
onCreateChannel?: () => void;
|
|
74
|
-
/** Handler to invite members to a channel */
|
|
75
|
-
onInviteToChannel?: (channel: SidebarChannel) => void;
|
|
76
|
-
onAgentSelect?: (agent: Agent, project?: Project) => void;
|
|
77
|
-
/** Handler when a human user is selected (opens DM) */
|
|
78
|
-
onHumanSelect?: (human: Agent) => void;
|
|
79
|
-
onProjectSelect?: (project: Project) => void;
|
|
80
|
-
onViewModeChange?: (mode: 'local' | 'fleet' | 'channels') => void;
|
|
81
|
-
onSpawnClick?: () => void;
|
|
82
|
-
onReleaseClick?: (agent: Agent) => void;
|
|
83
|
-
onLogsClick?: (agent: Agent) => void;
|
|
84
|
-
/** Handler to view agent profile */
|
|
85
|
-
onProfileClick?: (agent: Agent) => void;
|
|
86
|
-
onThreadSelect?: (threadId: string) => void;
|
|
87
|
-
/** Mobile: close sidebar handler */
|
|
88
|
-
onClose?: () => void;
|
|
89
|
-
/** Handler for opening settings */
|
|
90
|
-
onSettingsClick?: () => void;
|
|
91
|
-
/** Mobile nav: Trajectory viewer toggle */
|
|
92
|
-
onTrajectoryClick?: () => void;
|
|
93
|
-
/** Mobile nav: Whether there's an active trajectory */
|
|
94
|
-
hasActiveTrajectory?: boolean;
|
|
95
|
-
/** Mobile nav: Fleet view toggle */
|
|
96
|
-
onFleetClick?: () => void;
|
|
97
|
-
/** Mobile nav: Whether fleet view is active */
|
|
98
|
-
isFleetViewActive?: boolean;
|
|
99
|
-
/** Mobile nav: Coordinator toggle */
|
|
100
|
-
onCoordinatorClick?: () => void;
|
|
101
|
-
/** Mobile nav: Whether multiple projects are connected (shows coordinator) */
|
|
102
|
-
hasMultipleProjects?: boolean;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export function Sidebar({
|
|
106
|
-
agents,
|
|
107
|
-
bridgeAgents = [],
|
|
108
|
-
projects = [],
|
|
109
|
-
currentUserName,
|
|
110
|
-
humanUnreadCounts = {},
|
|
111
|
-
currentProject,
|
|
112
|
-
selectedAgent,
|
|
113
|
-
viewMode,
|
|
114
|
-
isFleetAvailable,
|
|
115
|
-
isConnected,
|
|
116
|
-
isOpen = false,
|
|
117
|
-
activeThreads = [],
|
|
118
|
-
currentThread,
|
|
119
|
-
totalUnreadThreadCount = 0,
|
|
120
|
-
isActivitySelected = false,
|
|
121
|
-
activityUnreadCount = 0,
|
|
122
|
-
onActivitySelect,
|
|
123
|
-
channels = [],
|
|
124
|
-
archivedChannels = [],
|
|
125
|
-
selectedChannelId,
|
|
126
|
-
onChannelSelect,
|
|
127
|
-
onArchiveChannel,
|
|
128
|
-
onUnarchiveChannel,
|
|
129
|
-
onCreateChannel,
|
|
130
|
-
onInviteToChannel,
|
|
131
|
-
onAgentSelect,
|
|
132
|
-
onHumanSelect,
|
|
133
|
-
onProjectSelect,
|
|
134
|
-
onViewModeChange,
|
|
135
|
-
onSpawnClick,
|
|
136
|
-
onReleaseClick,
|
|
137
|
-
onLogsClick,
|
|
138
|
-
onProfileClick,
|
|
139
|
-
onThreadSelect,
|
|
140
|
-
onClose,
|
|
141
|
-
onSettingsClick,
|
|
142
|
-
onTrajectoryClick,
|
|
143
|
-
hasActiveTrajectory,
|
|
144
|
-
onFleetClick,
|
|
145
|
-
isFleetViewActive,
|
|
146
|
-
onCoordinatorClick,
|
|
147
|
-
hasMultipleProjects,
|
|
148
|
-
}: SidebarProps) {
|
|
149
|
-
const [searchQuery, setSearchQuery] = useState('');
|
|
150
|
-
const [activeTab, setActiveTab] = useState<SidebarTab>(() => {
|
|
151
|
-
// Initialize from localStorage
|
|
152
|
-
try {
|
|
153
|
-
const stored = localStorage.getItem(SIDEBAR_TAB_KEY);
|
|
154
|
-
return (stored === 'team' ? 'team' : 'agents') as SidebarTab;
|
|
155
|
-
} catch {
|
|
156
|
-
return 'agents';
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
const [isThreadsCollapsed, setIsThreadsCollapsed] = useState(() => {
|
|
160
|
-
// Initialize from localStorage
|
|
161
|
-
try {
|
|
162
|
-
const stored = localStorage.getItem(THREADS_COLLAPSED_KEY);
|
|
163
|
-
return stored === 'true';
|
|
164
|
-
} catch {
|
|
165
|
-
return false;
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
const [isChannelsCollapsed, setIsChannelsCollapsed] = useState(() => {
|
|
169
|
-
// Initialize from localStorage - default to collapsed
|
|
170
|
-
try {
|
|
171
|
-
const stored = localStorage.getItem(CHANNELS_COLLAPSED_KEY);
|
|
172
|
-
return stored === null ? true : stored === 'true';
|
|
173
|
-
} catch {
|
|
174
|
-
return true;
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
// Persist tab state to localStorage
|
|
179
|
-
useEffect(() => {
|
|
180
|
-
try {
|
|
181
|
-
localStorage.setItem(SIDEBAR_TAB_KEY, activeTab);
|
|
182
|
-
} catch {
|
|
183
|
-
// localStorage not available
|
|
184
|
-
}
|
|
185
|
-
}, [activeTab]);
|
|
186
|
-
|
|
187
|
-
// Persist collapsed state to localStorage
|
|
188
|
-
useEffect(() => {
|
|
189
|
-
try {
|
|
190
|
-
localStorage.setItem(THREADS_COLLAPSED_KEY, String(isThreadsCollapsed));
|
|
191
|
-
} catch {
|
|
192
|
-
// localStorage not available
|
|
193
|
-
}
|
|
194
|
-
}, [isThreadsCollapsed]);
|
|
195
|
-
|
|
196
|
-
// Persist channels collapsed state
|
|
197
|
-
useEffect(() => {
|
|
198
|
-
try {
|
|
199
|
-
localStorage.setItem(CHANNELS_COLLAPSED_KEY, String(isChannelsCollapsed));
|
|
200
|
-
} catch {
|
|
201
|
-
// localStorage not available
|
|
202
|
-
}
|
|
203
|
-
}, [isChannelsCollapsed]);
|
|
204
|
-
|
|
205
|
-
// Total unread count for channels
|
|
206
|
-
const totalChannelUnread = channels.reduce((sum, c) => sum + c.unreadCount, 0);
|
|
207
|
-
const hasChannels = channels.length > 0;
|
|
208
|
-
// Keep channels section open when empty so the create button is visible
|
|
209
|
-
const isChannelsSectionCollapsed = hasChannels ? isChannelsCollapsed : false;
|
|
210
|
-
const hasArchivedChannels = archivedChannels.length > 0;
|
|
211
|
-
const [isArchivedCollapsed, setIsArchivedCollapsed] = useState(true);
|
|
212
|
-
const [openChannelMenuId, setOpenChannelMenuId] = useState<string | null>(null);
|
|
213
|
-
|
|
214
|
-
// Close menus when channel selection changes
|
|
215
|
-
useEffect(() => {
|
|
216
|
-
setOpenChannelMenuId(null);
|
|
217
|
-
}, [selectedChannelId]);
|
|
218
|
-
|
|
219
|
-
// Separate AI agents from human team members
|
|
220
|
-
// Also filter out system agents like _DashboardUI
|
|
221
|
-
const aiAgents = agents.filter(a => !a.isHuman && a.name !== '_DashboardUI');
|
|
222
|
-
const humanMembers = agents.filter(
|
|
223
|
-
a => a.isHuman &&
|
|
224
|
-
a.name !== '_DashboardUI' &&
|
|
225
|
-
(!currentUserName || a.name.toLowerCase() !== currentUserName.toLowerCase())
|
|
226
|
-
);
|
|
227
|
-
const filteredHumanMembers = humanMembers.filter(
|
|
228
|
-
(m) => !searchQuery || m.name.toLowerCase().includes(searchQuery.toLowerCase())
|
|
229
|
-
);
|
|
230
|
-
|
|
231
|
-
// Pinned agents for quick access
|
|
232
|
-
const { pinnedAgents, togglePin, isMaxPinned } = usePinnedAgents();
|
|
233
|
-
|
|
234
|
-
// Check if workspace is stopped - hide channels when stopped
|
|
235
|
-
const { workspace } = useWorkspaceStatus();
|
|
236
|
-
const isWorkspaceStopped = workspace?.isStopped ?? false;
|
|
237
|
-
|
|
238
|
-
// Determine if we should show unified project view
|
|
239
|
-
const hasProjects = projects.length > 0;
|
|
240
|
-
|
|
241
|
-
return (
|
|
242
|
-
<aside
|
|
243
|
-
className="flex-1 flex flex-col overflow-hidden"
|
|
244
|
-
>
|
|
245
|
-
{/* Header */}
|
|
246
|
-
<div className="p-3 sm:p-4 border-b border-border-subtle">
|
|
247
|
-
<div className="flex items-center gap-2 sm:gap-3">
|
|
248
|
-
<LogoIcon size={24} withGlow={true} />
|
|
249
|
-
<h1 className="text-base sm:text-lg font-display font-semibold m-0 text-text-primary">Agent Relay</h1>
|
|
250
|
-
<ConnectionIndicator isConnected={isConnected} />
|
|
251
|
-
{/* Mobile close button */}
|
|
252
|
-
<button
|
|
253
|
-
className="md:hidden ml-auto p-2 -mr-1 sm:-mr-2 bg-transparent border-none text-text-muted cursor-pointer rounded-lg transition-colors hover:bg-bg-hover hover:text-text-primary active:bg-bg-hover"
|
|
254
|
-
onClick={onClose}
|
|
255
|
-
aria-label="Close sidebar"
|
|
256
|
-
>
|
|
257
|
-
<CloseIcon />
|
|
258
|
-
</button>
|
|
259
|
-
</div>
|
|
260
|
-
</div>
|
|
261
|
-
|
|
262
|
-
{/* Agents/Team Tabs */}
|
|
263
|
-
{humanMembers.length > 0 && (
|
|
264
|
-
<div className="flex bg-bg-tertiary rounded-lg p-1 mx-3 mt-3">
|
|
265
|
-
<button
|
|
266
|
-
className={`
|
|
267
|
-
flex-1 py-2 px-4 bg-transparent border-none text-xs font-medium cursor-pointer rounded-md transition-all duration-150 flex items-center justify-center gap-1.5
|
|
268
|
-
${activeTab === 'agents'
|
|
269
|
-
? 'bg-bg-elevated text-accent-cyan shadow-sm'
|
|
270
|
-
: 'text-text-muted hover:text-text-secondary'}
|
|
271
|
-
`}
|
|
272
|
-
onClick={() => setActiveTab('agents')}
|
|
273
|
-
>
|
|
274
|
-
<RobotIcon />
|
|
275
|
-
Agents
|
|
276
|
-
{aiAgents.length > 0 && (
|
|
277
|
-
<span className="text-[10px] opacity-70">({aiAgents.length})</span>
|
|
278
|
-
)}
|
|
279
|
-
</button>
|
|
280
|
-
<button
|
|
281
|
-
className={`
|
|
282
|
-
flex-1 py-2 px-4 bg-transparent border-none text-xs font-medium cursor-pointer rounded-md transition-all duration-150 flex items-center justify-center gap-1.5
|
|
283
|
-
${activeTab === 'team'
|
|
284
|
-
? 'bg-bg-elevated text-accent-cyan shadow-sm'
|
|
285
|
-
: 'text-text-muted hover:text-text-secondary'}
|
|
286
|
-
`}
|
|
287
|
-
onClick={() => setActiveTab('team')}
|
|
288
|
-
>
|
|
289
|
-
<UsersIcon />
|
|
290
|
-
Team
|
|
291
|
-
{humanMembers.length > 0 && (
|
|
292
|
-
<span className="text-[10px] opacity-70">({humanMembers.length})</span>
|
|
293
|
-
)}
|
|
294
|
-
</button>
|
|
295
|
-
</div>
|
|
296
|
-
)}
|
|
297
|
-
|
|
298
|
-
{/* Search */}
|
|
299
|
-
<div className="flex items-center gap-2 py-2 sm:py-2.5 px-2 sm:px-3 bg-bg-tertiary m-2 sm:m-3 rounded-lg border border-border-subtle focus-within:border-accent-cyan/50 transition-colors">
|
|
300
|
-
<SearchIcon />
|
|
301
|
-
<input
|
|
302
|
-
type="text"
|
|
303
|
-
placeholder={activeTab === 'agents' ? 'Search agents...' : 'Search team...'}
|
|
304
|
-
value={searchQuery}
|
|
305
|
-
onChange={(e) => setSearchQuery(e.target.value)}
|
|
306
|
-
className="flex-1 bg-transparent border-none text-text-primary text-sm outline-none placeholder:text-text-muted"
|
|
307
|
-
/>
|
|
308
|
-
{searchQuery && (
|
|
309
|
-
<button
|
|
310
|
-
className="bg-transparent border-none text-text-muted cursor-pointer p-1 flex items-center justify-center hover:text-text-secondary rounded transition-colors active:text-text-secondary"
|
|
311
|
-
onClick={() => setSearchQuery('')}
|
|
312
|
-
>
|
|
313
|
-
<ClearIcon />
|
|
314
|
-
</button>
|
|
315
|
-
)}
|
|
316
|
-
</div>
|
|
317
|
-
|
|
318
|
-
{/* Threads Section */}
|
|
319
|
-
{activeThreads.length > 0 && (
|
|
320
|
-
<div className="border-b border-border-subtle">
|
|
321
|
-
<ThreadList
|
|
322
|
-
threads={activeThreads}
|
|
323
|
-
currentThread={currentThread}
|
|
324
|
-
onThreadSelect={(threadId) => onThreadSelect?.(threadId)}
|
|
325
|
-
totalUnreadCount={totalUnreadThreadCount}
|
|
326
|
-
isCollapsed={isThreadsCollapsed}
|
|
327
|
-
onToggleCollapse={() => setIsThreadsCollapsed(!isThreadsCollapsed)}
|
|
328
|
-
/>
|
|
329
|
-
</div>
|
|
330
|
-
)}
|
|
331
|
-
|
|
332
|
-
{/* Activity Section - Broadcasts */}
|
|
333
|
-
<div className="border-b border-border-subtle px-2 py-2">
|
|
334
|
-
<button
|
|
335
|
-
onClick={onActivitySelect}
|
|
336
|
-
className={`
|
|
337
|
-
w-full flex items-center gap-2 px-2 py-2 rounded-lg text-left text-sm transition-colors
|
|
338
|
-
${isActivitySelected
|
|
339
|
-
? 'bg-accent-cyan/10 text-text-primary border border-accent-cyan/30'
|
|
340
|
-
: 'hover:bg-bg-hover text-text-secondary hover:text-text-primary border border-transparent'}
|
|
341
|
-
`}
|
|
342
|
-
>
|
|
343
|
-
<ActivityIcon />
|
|
344
|
-
<span className={`flex-1 ${activityUnreadCount > 0 ? 'font-semibold text-text-primary' : ''}`}>
|
|
345
|
-
Activity
|
|
346
|
-
</span>
|
|
347
|
-
{activityUnreadCount > 0 && (
|
|
348
|
-
<span className="text-[11px] font-semibold px-1.5 py-0.5 rounded-full bg-accent-cyan/20 text-accent-cyan">
|
|
349
|
-
{activityUnreadCount}
|
|
350
|
-
</span>
|
|
351
|
-
)}
|
|
352
|
-
</button>
|
|
353
|
-
</div>
|
|
354
|
-
|
|
355
|
-
{/* Channels Section - Collapsible (hidden when workspace stopped) */}
|
|
356
|
-
{!isWorkspaceStopped && (
|
|
357
|
-
<div className="border-b border-border-subtle">
|
|
358
|
-
<button
|
|
359
|
-
className="w-full flex items-center justify-between px-3 py-2 text-xs font-semibold text-text-muted uppercase tracking-wide hover:bg-bg-hover transition-colors"
|
|
360
|
-
onClick={() => setIsChannelsCollapsed(!isChannelsCollapsed)}
|
|
361
|
-
>
|
|
362
|
-
<span className="flex items-center gap-2">
|
|
363
|
-
<HashIcon />
|
|
364
|
-
Channels
|
|
365
|
-
{totalChannelUnread > 0 && (
|
|
366
|
-
<span className="text-[10px] font-semibold px-1.5 py-0.5 rounded-full bg-accent-cyan/20 text-accent-cyan">
|
|
367
|
-
{totalChannelUnread}
|
|
368
|
-
</span>
|
|
369
|
-
)}
|
|
370
|
-
</span>
|
|
371
|
-
<ChevronIcon className={`transition-transform ${isChannelsSectionCollapsed ? '' : 'rotate-180'}`} />
|
|
372
|
-
</button>
|
|
373
|
-
{!isChannelsSectionCollapsed && (
|
|
374
|
-
<div className="px-2 pb-2 space-y-0.5 max-h-40 md:max-h-none overflow-y-auto">
|
|
375
|
-
{channels.map(channel => (
|
|
376
|
-
<div key={channel.id} className="group relative">
|
|
377
|
-
<button
|
|
378
|
-
onClick={() => onChannelSelect?.(channel)}
|
|
379
|
-
className={`
|
|
380
|
-
w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-left text-sm transition-colors
|
|
381
|
-
${selectedChannelId === channel.id
|
|
382
|
-
? 'bg-accent-cyan/10 text-text-primary'
|
|
383
|
-
: 'hover:bg-bg-hover text-text-secondary hover:text-text-primary'}
|
|
384
|
-
`}
|
|
385
|
-
>
|
|
386
|
-
<span className="text-text-muted">#</span>
|
|
387
|
-
<span className={`flex-1 truncate ${channel.unreadCount > 0 ? 'font-semibold text-text-primary' : ''}`}>
|
|
388
|
-
{channel.name}
|
|
389
|
-
</span>
|
|
390
|
-
{channel.unreadCount > 0 && (
|
|
391
|
-
<span className={`
|
|
392
|
-
text-[11px] font-semibold px-1.5 py-0.5 rounded-full min-w-[18px] text-center
|
|
393
|
-
${channel.hasMentions ? 'bg-red-500/20 text-red-400' : 'bg-accent-cyan/20 text-accent-cyan'}
|
|
394
|
-
`}>
|
|
395
|
-
{channel.unreadCount}
|
|
396
|
-
</span>
|
|
397
|
-
)}
|
|
398
|
-
</button>
|
|
399
|
-
{(onInviteToChannel || onArchiveChannel) && (
|
|
400
|
-
<button
|
|
401
|
-
onClick={(e) => {
|
|
402
|
-
e.stopPropagation();
|
|
403
|
-
setOpenChannelMenuId(openChannelMenuId === channel.id ? null : channel.id);
|
|
404
|
-
}}
|
|
405
|
-
title="Channel actions"
|
|
406
|
-
className="absolute right-1 top-1/2 -translate-y-1/2 p-1 rounded opacity-0 group-hover:opacity-100 hover:bg-bg-tertiary text-text-muted hover:text-text-primary transition-all"
|
|
407
|
-
>
|
|
408
|
-
<MoreIcon />
|
|
409
|
-
</button>
|
|
410
|
-
)}
|
|
411
|
-
{openChannelMenuId === channel.id && (
|
|
412
|
-
<div className="absolute right-0 top-full mt-1 z-30 bg-bg-elevated border border-border-subtle rounded-lg shadow-lg py-1 min-w-[160px]">
|
|
413
|
-
{onInviteToChannel && (
|
|
414
|
-
<MenuButton
|
|
415
|
-
onClick={() => {
|
|
416
|
-
onInviteToChannel(channel);
|
|
417
|
-
setOpenChannelMenuId(null);
|
|
418
|
-
}}
|
|
419
|
-
>
|
|
420
|
-
<UserPlusIcon />
|
|
421
|
-
<span>Invite members</span>
|
|
422
|
-
</MenuButton>
|
|
423
|
-
)}
|
|
424
|
-
{onArchiveChannel && (
|
|
425
|
-
<MenuButton
|
|
426
|
-
onClick={() => {
|
|
427
|
-
onArchiveChannel(channel);
|
|
428
|
-
setOpenChannelMenuId(null);
|
|
429
|
-
}}
|
|
430
|
-
>
|
|
431
|
-
<ArchiveIcon />
|
|
432
|
-
<span>Archive</span>
|
|
433
|
-
</MenuButton>
|
|
434
|
-
)}
|
|
435
|
-
</div>
|
|
436
|
-
)}
|
|
437
|
-
</div>
|
|
438
|
-
))}
|
|
439
|
-
{onCreateChannel && (
|
|
440
|
-
<button
|
|
441
|
-
onClick={onCreateChannel}
|
|
442
|
-
className="w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-left text-sm text-text-muted hover:bg-bg-hover hover:text-text-secondary transition-colors"
|
|
443
|
-
>
|
|
444
|
-
<PlusIcon />
|
|
445
|
-
<span>{hasChannels ? 'Add channel' : 'Create your first channel'}</span>
|
|
446
|
-
</button>
|
|
447
|
-
)}
|
|
448
|
-
</div>
|
|
449
|
-
)}
|
|
450
|
-
|
|
451
|
-
{hasArchivedChannels && (
|
|
452
|
-
<div className="mt-1 border-t border-border-subtle">
|
|
453
|
-
<button
|
|
454
|
-
className="w-full flex items-center justify-between px-3 py-2 text-xs font-semibold text-text-muted uppercase tracking-wide hover:bg-bg-hover transition-colors"
|
|
455
|
-
onClick={() => setIsArchivedCollapsed(!isArchivedCollapsed)}
|
|
456
|
-
>
|
|
457
|
-
<span className="flex items-center gap-2">
|
|
458
|
-
<ArchiveIcon />
|
|
459
|
-
Archived
|
|
460
|
-
<span className="text-[10px] opacity-80">({archivedChannels.length})</span>
|
|
461
|
-
</span>
|
|
462
|
-
<ChevronIcon className={`transition-transform ${isArchivedCollapsed ? '' : 'rotate-180'}`} />
|
|
463
|
-
</button>
|
|
464
|
-
{!isArchivedCollapsed && (
|
|
465
|
-
<div className="px-2 pb-2 space-y-0.5 max-h-32 md:max-h-none overflow-y-auto">
|
|
466
|
-
{archivedChannels.map((channel) => (
|
|
467
|
-
<div key={channel.id} className="group relative">
|
|
468
|
-
<button
|
|
469
|
-
onClick={() => onChannelSelect?.(channel)}
|
|
470
|
-
className={`
|
|
471
|
-
w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-left text-sm transition-colors
|
|
472
|
-
${selectedChannelId === channel.id
|
|
473
|
-
? 'bg-bg-tertiary text-text-primary'
|
|
474
|
-
: 'hover:bg-bg-hover text-text-secondary hover:text-text-primary'}
|
|
475
|
-
`}
|
|
476
|
-
>
|
|
477
|
-
<span className="text-text-muted">#</span>
|
|
478
|
-
<span className="flex-1 truncate">{channel.name}</span>
|
|
479
|
-
<span className="text-[10px] font-medium px-1.5 py-0.5 rounded-full bg-border-subtle text-text-muted">
|
|
480
|
-
Archived
|
|
481
|
-
</span>
|
|
482
|
-
</button>
|
|
483
|
-
{onUnarchiveChannel && (
|
|
484
|
-
<button
|
|
485
|
-
onClick={(e) => {
|
|
486
|
-
e.stopPropagation();
|
|
487
|
-
onUnarchiveChannel(channel);
|
|
488
|
-
}}
|
|
489
|
-
title="Unarchive channel"
|
|
490
|
-
className="absolute right-1 top-1/2 -translate-y-1/2 px-2 py-1 rounded-md bg-bg-tertiary text-text-secondary hover:text-text-primary hover:bg-bg-hover transition-colors text-xs flex items-center gap-1"
|
|
491
|
-
>
|
|
492
|
-
<UnarchiveIcon />
|
|
493
|
-
<span>Unarchive</span>
|
|
494
|
-
</button>
|
|
495
|
-
)}
|
|
496
|
-
</div>
|
|
497
|
-
))}
|
|
498
|
-
</div>
|
|
499
|
-
)}
|
|
500
|
-
</div>
|
|
501
|
-
)}
|
|
502
|
-
</div>
|
|
503
|
-
)}
|
|
504
|
-
|
|
505
|
-
{/* Agent/Project List */}
|
|
506
|
-
<div className="flex-1 overflow-y-auto px-2">
|
|
507
|
-
{activeTab === 'team' && humanMembers.length > 0 ? (
|
|
508
|
-
/* Team Members List */
|
|
509
|
-
<div className="flex flex-col gap-1 py-2">
|
|
510
|
-
{filteredHumanMembers.map((member) => (
|
|
511
|
-
<button
|
|
512
|
-
key={member.name}
|
|
513
|
-
onClick={() => onHumanSelect ? onHumanSelect(member) : onAgentSelect?.(member)}
|
|
514
|
-
className={`
|
|
515
|
-
flex items-center gap-3 p-3 rounded-lg border transition-all duration-150 text-left w-full
|
|
516
|
-
${selectedAgent === member.name
|
|
517
|
-
? 'bg-accent-cyan/10 border-accent-cyan/30'
|
|
518
|
-
: 'bg-bg-tertiary border-border-subtle hover:border-accent-cyan/30 hover:bg-bg-hover'}
|
|
519
|
-
`}
|
|
520
|
-
>
|
|
521
|
-
{member.avatarUrl ? (
|
|
522
|
-
<img
|
|
523
|
-
src={member.avatarUrl}
|
|
524
|
-
alt={member.name}
|
|
525
|
-
className="w-9 h-9 rounded-full object-cover"
|
|
526
|
-
/>
|
|
527
|
-
) : (
|
|
528
|
-
<div className="w-9 h-9 rounded-full bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center text-white font-medium text-sm">
|
|
529
|
-
{member.name.charAt(0).toUpperCase()}
|
|
530
|
-
</div>
|
|
531
|
-
)}
|
|
532
|
-
<div className="flex-1 min-w-0">
|
|
533
|
-
<p className="text-sm font-medium text-text-primary truncate">{member.name}</p>
|
|
534
|
-
<p className="text-xs text-text-muted truncate">{member.role || 'Team Member'}</p>
|
|
535
|
-
</div>
|
|
536
|
-
{humanUnreadCounts[member.name] > 0 && (
|
|
537
|
-
<span className="text-[11px] font-semibold px-2 py-0.5 rounded-full bg-accent-cyan/20 text-accent-cyan">
|
|
538
|
-
{humanUnreadCounts[member.name]}
|
|
539
|
-
</span>
|
|
540
|
-
)}
|
|
541
|
-
<div className={`w-2 h-2 rounded-full ${member.status === 'online' ? 'bg-success' : 'bg-text-dim'}`} />
|
|
542
|
-
</button>
|
|
543
|
-
))}
|
|
544
|
-
{filteredHumanMembers.length === 0 && (
|
|
545
|
-
<div className="flex flex-col items-center justify-center py-10 px-5 text-text-muted text-center">
|
|
546
|
-
<SearchIcon />
|
|
547
|
-
<p className="mt-3">No team members match "{searchQuery}"</p>
|
|
548
|
-
</div>
|
|
549
|
-
)}
|
|
550
|
-
</div>
|
|
551
|
-
) : hasProjects ? (
|
|
552
|
-
<ProjectList
|
|
553
|
-
projects={projects}
|
|
554
|
-
localAgents={aiAgents}
|
|
555
|
-
bridgeAgents={bridgeAgents}
|
|
556
|
-
currentProject={currentProject}
|
|
557
|
-
selectedAgent={selectedAgent}
|
|
558
|
-
searchQuery={searchQuery}
|
|
559
|
-
onProjectSelect={onProjectSelect}
|
|
560
|
-
onAgentSelect={onAgentSelect}
|
|
561
|
-
onReleaseClick={onReleaseClick}
|
|
562
|
-
onLogsClick={onLogsClick}
|
|
563
|
-
onProfileClick={onProfileClick}
|
|
564
|
-
compact={true}
|
|
565
|
-
/>
|
|
566
|
-
) : (
|
|
567
|
-
<AgentList
|
|
568
|
-
agents={aiAgents}
|
|
569
|
-
selectedAgent={selectedAgent}
|
|
570
|
-
searchQuery={searchQuery}
|
|
571
|
-
pinnedAgents={pinnedAgents}
|
|
572
|
-
isMaxPinned={isMaxPinned}
|
|
573
|
-
onAgentSelect={(agent) => onAgentSelect?.(agent)}
|
|
574
|
-
onReleaseClick={onReleaseClick}
|
|
575
|
-
onLogsClick={onLogsClick}
|
|
576
|
-
onProfileClick={onProfileClick}
|
|
577
|
-
onPinToggle={(agent) => togglePin(agent.name)}
|
|
578
|
-
compact={true}
|
|
579
|
-
showGroupStats={true}
|
|
580
|
-
/>
|
|
581
|
-
)}
|
|
582
|
-
|
|
583
|
-
{/* Optional human section when viewing agents/projects */}
|
|
584
|
-
{activeTab === 'agents' && humanMembers.length > 0 && (
|
|
585
|
-
<div className="mt-4 mb-2 pt-3 border-t border-border-subtle">
|
|
586
|
-
<div className="flex items-center justify-between px-1 pb-2">
|
|
587
|
-
<p className="text-xs uppercase tracking-wide text-text-muted font-semibold m-0">Direct messages</p>
|
|
588
|
-
<span className="text-[11px] text-text-muted">{filteredHumanMembers.length} member{filteredHumanMembers.length === 1 ? '' : 's'}</span>
|
|
589
|
-
</div>
|
|
590
|
-
<div className="flex flex-col gap-1">
|
|
591
|
-
{filteredHumanMembers.length > 0 ? (
|
|
592
|
-
filteredHumanMembers.map((member) => (
|
|
593
|
-
<button
|
|
594
|
-
key={member.name}
|
|
595
|
-
onClick={() => onHumanSelect ? onHumanSelect(member) : onAgentSelect?.(member)}
|
|
596
|
-
className={`
|
|
597
|
-
flex items-center gap-3 p-2.5 rounded-lg border transition-all duration-150 text-left w-full
|
|
598
|
-
${selectedAgent === member.name
|
|
599
|
-
? 'bg-accent-cyan/10 border-accent-cyan/30'
|
|
600
|
-
: 'bg-bg-tertiary border-border-subtle hover:border-accent-cyan/30 hover:bg-bg-hover'}
|
|
601
|
-
`}
|
|
602
|
-
>
|
|
603
|
-
{member.avatarUrl ? (
|
|
604
|
-
<img
|
|
605
|
-
src={member.avatarUrl}
|
|
606
|
-
alt={member.name}
|
|
607
|
-
className="w-8 h-8 rounded-full object-cover"
|
|
608
|
-
/>
|
|
609
|
-
) : (
|
|
610
|
-
<div className="w-8 h-8 rounded-full bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center text-white font-medium text-xs">
|
|
611
|
-
{member.name.charAt(0).toUpperCase()}
|
|
612
|
-
</div>
|
|
613
|
-
)}
|
|
614
|
-
<div className="flex-1 min-w-0">
|
|
615
|
-
<p className="text-sm font-medium text-text-primary truncate">{member.name}</p>
|
|
616
|
-
<p className="text-[11px] text-text-muted truncate">{member.role || 'Team Member'}</p>
|
|
617
|
-
</div>
|
|
618
|
-
{humanUnreadCounts[member.name] > 0 && (
|
|
619
|
-
<span className="text-[11px] font-semibold px-2 py-0.5 rounded-full bg-accent-cyan/20 text-accent-cyan">
|
|
620
|
-
{humanUnreadCounts[member.name]}
|
|
621
|
-
</span>
|
|
622
|
-
)}
|
|
623
|
-
<div className={`w-2 h-2 rounded-full ${member.status === 'online' ? 'bg-success' : 'bg-text-dim'}`} />
|
|
624
|
-
</button>
|
|
625
|
-
))
|
|
626
|
-
) : (
|
|
627
|
-
<div className="flex flex-col items-center justify-center py-6 px-3 text-text-muted text-center">
|
|
628
|
-
<SearchIcon />
|
|
629
|
-
<p className="mt-2 text-xs">No team members match "{searchQuery}"</p>
|
|
630
|
-
</div>
|
|
631
|
-
)}
|
|
632
|
-
</div>
|
|
633
|
-
</div>
|
|
634
|
-
)}
|
|
635
|
-
</div>
|
|
636
|
-
|
|
637
|
-
{/* Mobile Navigation - shows items hidden in header on mobile */}
|
|
638
|
-
<div className="md:hidden border-t border-border-subtle p-3">
|
|
639
|
-
<p className="text-xs text-text-muted font-medium mb-2 px-1">Quick Actions</p>
|
|
640
|
-
<div className="grid grid-cols-2 gap-2">
|
|
641
|
-
{onFleetClick && (
|
|
642
|
-
<button
|
|
643
|
-
className={`flex items-center gap-2 p-2.5 rounded-lg border text-sm transition-all duration-150 ${
|
|
644
|
-
isFleetViewActive
|
|
645
|
-
? 'bg-accent-cyan/20 border-accent-cyan text-accent-cyan'
|
|
646
|
-
: 'bg-bg-tertiary border-border-subtle text-text-secondary hover:bg-bg-hover hover:text-text-primary'
|
|
647
|
-
}`}
|
|
648
|
-
onClick={() => {
|
|
649
|
-
onFleetClick();
|
|
650
|
-
onClose?.();
|
|
651
|
-
}}
|
|
652
|
-
>
|
|
653
|
-
<FleetIcon />
|
|
654
|
-
<span>Fleet</span>
|
|
655
|
-
</button>
|
|
656
|
-
)}
|
|
657
|
-
{onTrajectoryClick && (
|
|
658
|
-
<button
|
|
659
|
-
className={`flex items-center gap-2 p-2.5 rounded-lg border text-sm transition-all duration-150 relative ${
|
|
660
|
-
hasActiveTrajectory
|
|
661
|
-
? 'bg-accent-cyan/20 border-accent-cyan text-accent-cyan'
|
|
662
|
-
: 'bg-bg-tertiary border-border-subtle text-text-secondary hover:bg-bg-hover hover:text-text-primary'
|
|
663
|
-
}`}
|
|
664
|
-
onClick={() => {
|
|
665
|
-
onTrajectoryClick();
|
|
666
|
-
onClose?.();
|
|
667
|
-
}}
|
|
668
|
-
>
|
|
669
|
-
<TrajectoryIcon />
|
|
670
|
-
<span>Trajectory</span>
|
|
671
|
-
{hasActiveTrajectory && (
|
|
672
|
-
<span className="absolute top-1 right-1 w-2 h-2 bg-accent-cyan rounded-full animate-pulse" />
|
|
673
|
-
)}
|
|
674
|
-
</button>
|
|
675
|
-
)}
|
|
676
|
-
{hasMultipleProjects && onCoordinatorClick && (
|
|
677
|
-
<button
|
|
678
|
-
className="flex items-center gap-2 p-2.5 bg-bg-tertiary border border-border-subtle rounded-lg text-text-secondary text-sm transition-all duration-150 hover:bg-bg-hover hover:text-accent-purple"
|
|
679
|
-
onClick={() => {
|
|
680
|
-
onCoordinatorClick();
|
|
681
|
-
onClose?.();
|
|
682
|
-
}}
|
|
683
|
-
>
|
|
684
|
-
<CoordinatorIcon />
|
|
685
|
-
<span>Coordinator</span>
|
|
686
|
-
</button>
|
|
687
|
-
)}
|
|
688
|
-
<a
|
|
689
|
-
href="/metrics"
|
|
690
|
-
className="flex items-center gap-2 p-2.5 bg-bg-tertiary border border-border-subtle rounded-lg text-text-secondary text-sm transition-all duration-150 hover:bg-bg-hover hover:text-accent-orange no-underline"
|
|
691
|
-
onClick={() => onClose?.()}
|
|
692
|
-
>
|
|
693
|
-
<MetricsIcon />
|
|
694
|
-
<span>Metrics</span>
|
|
695
|
-
</a>
|
|
696
|
-
</div>
|
|
697
|
-
</div>
|
|
698
|
-
|
|
699
|
-
{/* Footer Actions */}
|
|
700
|
-
<div className="p-3 sm:p-4 border-t border-border-subtle space-y-2">
|
|
701
|
-
<button
|
|
702
|
-
className="w-full py-2.5 sm:py-3 px-3 sm:px-4 bg-gradient-to-r from-accent-cyan to-[#00b8d9] text-bg-deep font-semibold text-sm cursor-pointer flex items-center justify-center gap-2 rounded-lg transition-all duration-150 hover:shadow-glow-cyan hover:-translate-y-0.5 active:scale-[0.98]"
|
|
703
|
-
onClick={onSpawnClick}
|
|
704
|
-
>
|
|
705
|
-
<PlusIcon />
|
|
706
|
-
Spawn Agent
|
|
707
|
-
</button>
|
|
708
|
-
<button
|
|
709
|
-
className="w-full py-2 sm:py-2.5 px-3 sm:px-4 bg-bg-tertiary text-text-secondary text-sm cursor-pointer flex items-center justify-center gap-2 rounded-lg border border-border-subtle transition-all duration-150 hover:bg-bg-hover hover:text-text-primary hover:border-border-subtle active:bg-bg-hover"
|
|
710
|
-
onClick={onSettingsClick}
|
|
711
|
-
>
|
|
712
|
-
<SettingsIcon />
|
|
713
|
-
Settings
|
|
714
|
-
</button>
|
|
715
|
-
</div>
|
|
716
|
-
</aside>
|
|
717
|
-
);
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
function ConnectionIndicator({ isConnected }: { isConnected: boolean }) {
|
|
721
|
-
return (
|
|
722
|
-
<div className="flex items-center gap-1.5 ml-auto">
|
|
723
|
-
<div
|
|
724
|
-
className={`w-2 h-2 rounded-full ${
|
|
725
|
-
isConnected
|
|
726
|
-
? 'bg-success animate-pulse-glow'
|
|
727
|
-
: 'bg-text-dim'
|
|
728
|
-
}`}
|
|
729
|
-
/>
|
|
730
|
-
<span className="text-xs text-text-muted">
|
|
731
|
-
{isConnected ? 'Live' : 'Offline'}
|
|
732
|
-
</span>
|
|
733
|
-
</div>
|
|
734
|
-
);
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
function SearchIcon() {
|
|
738
|
-
return (
|
|
739
|
-
<svg className="text-text-muted" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
740
|
-
<circle cx="11" cy="11" r="8" />
|
|
741
|
-
<line x1="21" y1="21" x2="16.65" y2="16.65" />
|
|
742
|
-
</svg>
|
|
743
|
-
);
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
function ClearIcon() {
|
|
747
|
-
return (
|
|
748
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
749
|
-
<line x1="18" y1="6" x2="6" y2="18" />
|
|
750
|
-
<line x1="6" y1="6" x2="18" y2="18" />
|
|
751
|
-
</svg>
|
|
752
|
-
);
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
function MenuButton({ onClick, children }: { onClick: () => void; children: React.ReactNode }) {
|
|
756
|
-
return (
|
|
757
|
-
<button
|
|
758
|
-
onClick={onClick}
|
|
759
|
-
className="w-full flex items-center gap-2 px-3 py-2 text-sm text-text-secondary hover:bg-bg-hover hover:text-text-primary transition-colors"
|
|
760
|
-
>
|
|
761
|
-
{children}
|
|
762
|
-
</button>
|
|
763
|
-
);
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
function PlusIcon() {
|
|
767
|
-
return (
|
|
768
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5">
|
|
769
|
-
<line x1="12" y1="5" x2="12" y2="19" />
|
|
770
|
-
<line x1="5" y1="12" x2="19" y2="12" />
|
|
771
|
-
</svg>
|
|
772
|
-
);
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
function UserPlusIcon() {
|
|
776
|
-
return (
|
|
777
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
778
|
-
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" />
|
|
779
|
-
<circle cx="8.5" cy="7" r="4" />
|
|
780
|
-
<line x1="20" y1="8" x2="20" y2="14" />
|
|
781
|
-
<line x1="23" y1="11" x2="17" y2="11" />
|
|
782
|
-
</svg>
|
|
783
|
-
);
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
function ArchiveIcon() {
|
|
787
|
-
return (
|
|
788
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
789
|
-
<path d="M3 7h18" />
|
|
790
|
-
<path d="M5 7v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7" />
|
|
791
|
-
<rect x="3" y="3" width="18" height="4" rx="1" />
|
|
792
|
-
<line x1="10" y1="12" x2="14" y2="12" />
|
|
793
|
-
</svg>
|
|
794
|
-
);
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
function UnarchiveIcon() {
|
|
798
|
-
return (
|
|
799
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
800
|
-
<path d="M3 7h18" />
|
|
801
|
-
<path d="M5 7v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7" />
|
|
802
|
-
<rect x="3" y="3" width="18" height="4" rx="1" />
|
|
803
|
-
<path d="M12 11v6" />
|
|
804
|
-
<path d="M9 14l3-3 3 3" />
|
|
805
|
-
</svg>
|
|
806
|
-
);
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
function HashIcon() {
|
|
810
|
-
return (
|
|
811
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
812
|
-
<line x1="4" y1="9" x2="20" y2="9" />
|
|
813
|
-
<line x1="4" y1="15" x2="20" y2="15" />
|
|
814
|
-
<line x1="10" y1="3" x2="8" y2="21" />
|
|
815
|
-
<line x1="16" y1="3" x2="14" y2="21" />
|
|
816
|
-
</svg>
|
|
817
|
-
);
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
function ChevronIcon({ className }: { className?: string }) {
|
|
821
|
-
return (
|
|
822
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className={className}>
|
|
823
|
-
<polyline points="6 9 12 15 18 9" />
|
|
824
|
-
</svg>
|
|
825
|
-
);
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
function MoreIcon() {
|
|
829
|
-
return (
|
|
830
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
831
|
-
<circle cx="5" cy="12" r="1" />
|
|
832
|
-
<circle cx="12" cy="12" r="1" />
|
|
833
|
-
<circle cx="19" cy="12" r="1" />
|
|
834
|
-
</svg>
|
|
835
|
-
);
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
function CloseIcon() {
|
|
839
|
-
return (
|
|
840
|
-
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
841
|
-
<line x1="18" y1="6" x2="6" y2="18" />
|
|
842
|
-
<line x1="6" y1="6" x2="18" y2="18" />
|
|
843
|
-
</svg>
|
|
844
|
-
);
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
function SettingsIcon() {
|
|
848
|
-
return (
|
|
849
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
850
|
-
<circle cx="12" cy="12" r="3" />
|
|
851
|
-
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" />
|
|
852
|
-
</svg>
|
|
853
|
-
);
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
function RobotIcon() {
|
|
857
|
-
return (
|
|
858
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
859
|
-
<rect x="3" y="11" width="18" height="10" rx="2" />
|
|
860
|
-
<circle cx="12" cy="5" r="2" />
|
|
861
|
-
<path d="M12 7v4" />
|
|
862
|
-
<line x1="8" y1="16" x2="8" y2="16" />
|
|
863
|
-
<line x1="16" y1="16" x2="16" y2="16" />
|
|
864
|
-
</svg>
|
|
865
|
-
);
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
function UsersIcon() {
|
|
869
|
-
return (
|
|
870
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
871
|
-
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" />
|
|
872
|
-
<circle cx="9" cy="7" r="4" />
|
|
873
|
-
<path d="M23 21v-2a4 4 0 0 0-3-3.87" />
|
|
874
|
-
<path d="M16 3.13a4 4 0 0 1 0 7.75" />
|
|
875
|
-
</svg>
|
|
876
|
-
);
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
function FleetIcon() {
|
|
880
|
-
return (
|
|
881
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
882
|
-
<rect x="2" y="3" width="20" height="14" rx="2" ry="2" />
|
|
883
|
-
<line x1="8" y1="21" x2="16" y2="21" />
|
|
884
|
-
<line x1="12" y1="17" x2="12" y2="21" />
|
|
885
|
-
</svg>
|
|
886
|
-
);
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
function TrajectoryIcon() {
|
|
890
|
-
return (
|
|
891
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
892
|
-
<path d="M3 12h4l3 9 4-18 3 9h4" />
|
|
893
|
-
</svg>
|
|
894
|
-
);
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
function CoordinatorIcon() {
|
|
898
|
-
return (
|
|
899
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
900
|
-
<circle cx="12" cy="12" r="3" />
|
|
901
|
-
<circle cx="5" cy="5" r="2" />
|
|
902
|
-
<circle cx="19" cy="5" r="2" />
|
|
903
|
-
<circle cx="5" cy="19" r="2" />
|
|
904
|
-
<circle cx="19" cy="19" r="2" />
|
|
905
|
-
<line x1="9.5" y1="9.5" x2="6.5" y2="6.5" />
|
|
906
|
-
<line x1="14.5" y1="9.5" x2="17.5" y2="6.5" />
|
|
907
|
-
<line x1="9.5" y1="14.5" x2="6.5" y2="17.5" />
|
|
908
|
-
<line x1="14.5" y1="14.5" x2="17.5" y2="17.5" />
|
|
909
|
-
</svg>
|
|
910
|
-
);
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
function MetricsIcon() {
|
|
914
|
-
return (
|
|
915
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
916
|
-
<path d="M3 3v18h18" />
|
|
917
|
-
<path d="M18 17V9" />
|
|
918
|
-
<path d="M13 17V5" />
|
|
919
|
-
<path d="M8 17v-3" />
|
|
920
|
-
</svg>
|
|
921
|
-
);
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
function ActivityIcon() {
|
|
925
|
-
return (
|
|
926
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
927
|
-
<path d="M22 12h-4l-3 9L9 3l-3 9H2" />
|
|
928
|
-
</svg>
|
|
929
|
-
);
|
|
930
|
-
}
|