agent-relay 2.0.21 → 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 +21 -1
- package/packages/daemon/dist/router.d.ts +5 -0
- package/packages/daemon/dist/router.js +31 -0
- package/packages/daemon/dist/server.d.ts +5 -0
- package/packages/daemon/dist/server.js +131 -1
- package/packages/daemon/package.json +12 -12
- package/packages/hooks/package.json +4 -4
- package/packages/mcp/dist/client.d.ts +15 -0
- package/packages/mcp/dist/client.js +9 -0
- package/packages/mcp/dist/server.js +13 -1
- package/packages/mcp/dist/tools/index.d.ts +2 -0
- package/packages/mcp/dist/tools/index.js +2 -0
- package/packages/mcp/dist/tools/relay-connected.d.ts +17 -0
- package/packages/mcp/dist/tools/relay-connected.js +40 -0
- package/packages/mcp/dist/tools/relay-remove-agent.d.ts +20 -0
- package/packages/mcp/dist/tools/relay-remove-agent.js +50 -0
- package/packages/mcp/package.json +2 -2
- package/packages/memory/package.json +2 -2
- package/packages/policy/package.json +2 -2
- package/packages/protocol/dist/types.d.ts +46 -1
- package/packages/protocol/package.json +1 -1
- package/packages/resiliency/package.json +1 -1
- package/packages/sdk/dist/client.d.ts +22 -1
- package/packages/sdk/dist/client.js +31 -0
- package/packages/sdk/dist/protocol/index.d.ts +1 -1
- package/packages/sdk/dist/protocol/types.d.ts +35 -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/dist/adapter.d.ts +4 -0
- package/packages/storage/dist/sqlite-adapter.d.ts +10 -0
- package/packages/storage/dist/sqlite-adapter.js +26 -0
- 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/7MZPqYkVGw3EGzVBkVmY9/_buildManifest.js +0 -1
- package/dist/dashboard/out/_next/static/7MZPqYkVGw3EGzVBkVmY9/_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/7MZPqYkVGw3EGzVBkVmY9/_buildManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/7MZPqYkVGw3EGzVBkVmY9/_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/iJ3Uiz3IrqUJL7IxKZHiV/_buildManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/iJ3Uiz3IrqUJL7IxKZHiV/_ssgManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/l-jd878zUJ_IlraqEWMZc/_buildManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/l-jd878zUJ_IlraqEWMZc/_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,625 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ProjectList Component
|
|
3
|
-
*
|
|
4
|
-
* Displays projects with nested agents in a flat hierarchy.
|
|
5
|
-
* Each project is a collapsible section with its agents listed directly underneath.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React, { useState, useMemo, useEffect } from 'react';
|
|
9
|
-
import type { Agent, Project } from '../types';
|
|
10
|
-
import { AgentCard } from './AgentCard';
|
|
11
|
-
import { STATUS_COLORS, getAgentColor } from '../lib/colors';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Gets the simple display name for an agent within a team group.
|
|
15
|
-
* Since the team header already shows context, just show the agent's role/name.
|
|
16
|
-
*
|
|
17
|
-
* Examples:
|
|
18
|
-
* - "Frontend-Lead" in team "Frontend" → "Lead"
|
|
19
|
-
* - "Lead" in team "Lead" → "Lead"
|
|
20
|
-
* - "backend-api" in team "backend" → "Api"
|
|
21
|
-
*/
|
|
22
|
-
function stripTeamPrefix(agentName: string, teamName: string): string {
|
|
23
|
-
const lowerAgent = agentName.toLowerCase();
|
|
24
|
-
const lowerTeam = teamName.toLowerCase().replace(/-?team$/i, '');
|
|
25
|
-
|
|
26
|
-
// Pattern 1: Team prefix with dash separator (e.g., "frontend-lead" → "lead")
|
|
27
|
-
if (lowerTeam && lowerAgent.startsWith(lowerTeam + '-')) {
|
|
28
|
-
const stripped = agentName.substring(lowerTeam.length + 1);
|
|
29
|
-
return capitalizeWords(stripped);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Pattern 2: Team prefix with underscore separator
|
|
33
|
-
if (lowerTeam && lowerAgent.startsWith(lowerTeam + '_')) {
|
|
34
|
-
const stripped = agentName.substring(lowerTeam.length + 1);
|
|
35
|
-
return capitalizeWords(stripped);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Pattern 3: Last segment of hyphenated name (e.g., "LeadFrontend-Dev" → "Dev")
|
|
39
|
-
const parts = agentName.split('-');
|
|
40
|
-
if (parts.length > 1) {
|
|
41
|
-
return capitalizeWords(parts[parts.length - 1]);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// No prefix to strip, return capitalized original
|
|
45
|
-
return capitalizeWords(agentName);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Capitalizes words in a string (handles dash and underscore separators)
|
|
50
|
-
*/
|
|
51
|
-
function capitalizeWords(str: string): string {
|
|
52
|
-
return str
|
|
53
|
-
.split(/[-_]/)
|
|
54
|
-
.map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
|
|
55
|
-
.join(' ');
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export interface ProjectListProps {
|
|
59
|
-
projects: Project[];
|
|
60
|
-
localAgents?: Agent[];
|
|
61
|
-
/** Bridge-level agents like Architect that span all projects */
|
|
62
|
-
bridgeAgents?: Agent[];
|
|
63
|
-
currentProject?: string;
|
|
64
|
-
selectedAgent?: string;
|
|
65
|
-
searchQuery?: string;
|
|
66
|
-
onProjectSelect?: (project: Project) => void;
|
|
67
|
-
onAgentSelect?: (agent: Agent, project?: Project) => void;
|
|
68
|
-
onReleaseClick?: (agent: Agent) => void;
|
|
69
|
-
onLogsClick?: (agent: Agent) => void;
|
|
70
|
-
onProfileClick?: (agent: Agent) => void;
|
|
71
|
-
compact?: boolean;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function ProjectList({
|
|
75
|
-
projects,
|
|
76
|
-
localAgents = [],
|
|
77
|
-
bridgeAgents = [],
|
|
78
|
-
currentProject,
|
|
79
|
-
selectedAgent,
|
|
80
|
-
searchQuery = '',
|
|
81
|
-
onProjectSelect,
|
|
82
|
-
onAgentSelect,
|
|
83
|
-
onReleaseClick,
|
|
84
|
-
onLogsClick,
|
|
85
|
-
onProfileClick,
|
|
86
|
-
compact = false,
|
|
87
|
-
}: ProjectListProps) {
|
|
88
|
-
const [expandedProjects, setExpandedProjects] = useState<Set<string>>(
|
|
89
|
-
() => new Set(projects.map((p) => p.id))
|
|
90
|
-
);
|
|
91
|
-
|
|
92
|
-
// Filter out system agents (setup agents and _DashboardUI)
|
|
93
|
-
// These should not appear in the sidebar but can still send/receive messages
|
|
94
|
-
const filterSystemAgents = (agents: Agent[]) =>
|
|
95
|
-
agents.filter(a => !a.name.startsWith('__setup__') && a.name !== '_DashboardUI');
|
|
96
|
-
|
|
97
|
-
// Filter projects and agents based on search query
|
|
98
|
-
const filteredData = useMemo(() => {
|
|
99
|
-
const query = searchQuery.toLowerCase().trim();
|
|
100
|
-
|
|
101
|
-
// Always filter system agents first
|
|
102
|
-
const filteredLocalAgents = filterSystemAgents(localAgents);
|
|
103
|
-
const filteredBridgeAgents = filterSystemAgents(bridgeAgents);
|
|
104
|
-
const projectsWithFilteredAgents = projects.map(p => ({
|
|
105
|
-
...p,
|
|
106
|
-
agents: filterSystemAgents(p.agents),
|
|
107
|
-
}));
|
|
108
|
-
|
|
109
|
-
if (!query) {
|
|
110
|
-
return { projects: projectsWithFilteredAgents, localAgents: filteredLocalAgents, bridgeAgents: filteredBridgeAgents };
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// Filter local agents by search query (using pre-filtered agents)
|
|
114
|
-
const searchFilteredLocal = filteredLocalAgents.filter(
|
|
115
|
-
(a) =>
|
|
116
|
-
a.name.toLowerCase().includes(query) ||
|
|
117
|
-
a.currentTask?.toLowerCase().includes(query)
|
|
118
|
-
);
|
|
119
|
-
|
|
120
|
-
// Filter bridge agents by search query (using pre-filtered agents)
|
|
121
|
-
const searchFilteredBridge = filteredBridgeAgents.filter(
|
|
122
|
-
(a) =>
|
|
123
|
-
a.name.toLowerCase().includes(query) ||
|
|
124
|
-
a.currentTask?.toLowerCase().includes(query)
|
|
125
|
-
);
|
|
126
|
-
|
|
127
|
-
// Filter projects (show project if name matches OR any agent matches)
|
|
128
|
-
// Uses pre-filtered projects with system agents already removed
|
|
129
|
-
const searchFilteredProjects = projectsWithFilteredAgents
|
|
130
|
-
.map((project) => {
|
|
131
|
-
const projectNameMatches =
|
|
132
|
-
project.name?.toLowerCase().includes(query) ||
|
|
133
|
-
project.path.toLowerCase().includes(query);
|
|
134
|
-
|
|
135
|
-
const searchFilteredAgents = project.agents.filter(
|
|
136
|
-
(a) =>
|
|
137
|
-
a.name.toLowerCase().includes(query) ||
|
|
138
|
-
a.currentTask?.toLowerCase().includes(query)
|
|
139
|
-
);
|
|
140
|
-
|
|
141
|
-
// Include project if name matches or has matching agents
|
|
142
|
-
if (projectNameMatches || searchFilteredAgents.length > 0) {
|
|
143
|
-
return {
|
|
144
|
-
...project,
|
|
145
|
-
agents: projectNameMatches ? project.agents : searchFilteredAgents,
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
return null;
|
|
149
|
-
})
|
|
150
|
-
.filter(Boolean) as Project[];
|
|
151
|
-
|
|
152
|
-
return { projects: searchFilteredProjects, localAgents: searchFilteredLocal, bridgeAgents: searchFilteredBridge };
|
|
153
|
-
}, [projects, localAgents, bridgeAgents, searchQuery]);
|
|
154
|
-
|
|
155
|
-
const toggleProject = (projectId: string) => {
|
|
156
|
-
setExpandedProjects((prev) => {
|
|
157
|
-
const next = new Set(prev);
|
|
158
|
-
if (next.has(projectId)) {
|
|
159
|
-
next.delete(projectId);
|
|
160
|
-
} else {
|
|
161
|
-
next.add(projectId);
|
|
162
|
-
}
|
|
163
|
-
return next;
|
|
164
|
-
});
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
const totalAgents =
|
|
168
|
-
filteredData.localAgents.length +
|
|
169
|
-
filteredData.projects.reduce((sum, p) => sum + p.agents.length, 0);
|
|
170
|
-
|
|
171
|
-
if (totalAgents === 0 && projects.length === 0 && localAgents.length === 0) {
|
|
172
|
-
return (
|
|
173
|
-
<div className="flex flex-col items-center justify-center py-10 px-5 text-[#888] text-center">
|
|
174
|
-
<EmptyIcon />
|
|
175
|
-
<p>No projects or agents</p>
|
|
176
|
-
</div>
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
if (totalAgents === 0 && searchQuery) {
|
|
181
|
-
return (
|
|
182
|
-
<div className="flex flex-col items-center justify-center py-10 px-5 text-[#888] text-center">
|
|
183
|
-
<SearchIcon />
|
|
184
|
-
<p>No results for "{searchQuery}"</p>
|
|
185
|
-
</div>
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
// Only show bridge section when in bridge mode (multiple projects)
|
|
190
|
-
const isInBridgeMode = filteredData.projects.length > 1;
|
|
191
|
-
|
|
192
|
-
return (
|
|
193
|
-
<div className="flex flex-col gap-1">
|
|
194
|
-
{/* Bridge-level agents section (Architect, etc.) - only in bridge mode */}
|
|
195
|
-
{isInBridgeMode && filteredData.bridgeAgents.length > 0 && (
|
|
196
|
-
<BridgeSection
|
|
197
|
-
agents={filteredData.bridgeAgents}
|
|
198
|
-
selectedAgent={selectedAgent}
|
|
199
|
-
compact={compact}
|
|
200
|
-
onAgentSelect={(agent) => onAgentSelect?.(agent)}
|
|
201
|
-
onReleaseClick={onReleaseClick}
|
|
202
|
-
onLogsClick={onLogsClick}
|
|
203
|
-
onProfileClick={onProfileClick}
|
|
204
|
-
/>
|
|
205
|
-
)}
|
|
206
|
-
|
|
207
|
-
{/* Local agents section (current project) - only when not in bridge mode */}
|
|
208
|
-
{!isInBridgeMode && filteredData.localAgents.length > 0 && (
|
|
209
|
-
<ProjectSection
|
|
210
|
-
project={{
|
|
211
|
-
id: '__local__',
|
|
212
|
-
path: '',
|
|
213
|
-
name: 'Local',
|
|
214
|
-
agents: filteredData.localAgents,
|
|
215
|
-
}}
|
|
216
|
-
isExpanded={expandedProjects.has('__local__')}
|
|
217
|
-
isCurrentProject={true}
|
|
218
|
-
selectedAgent={selectedAgent}
|
|
219
|
-
compact={compact}
|
|
220
|
-
onToggle={() => toggleProject('__local__')}
|
|
221
|
-
onAgentSelect={(agent) => onAgentSelect?.(agent)}
|
|
222
|
-
onReleaseClick={onReleaseClick}
|
|
223
|
-
onLogsClick={onLogsClick}
|
|
224
|
-
/>
|
|
225
|
-
)}
|
|
226
|
-
|
|
227
|
-
{/* Bridged projects */}
|
|
228
|
-
{filteredData.projects.map((project) => (
|
|
229
|
-
<ProjectSection
|
|
230
|
-
key={project.id}
|
|
231
|
-
project={project}
|
|
232
|
-
isExpanded={expandedProjects.has(project.id)}
|
|
233
|
-
isCurrentProject={project.id === currentProject}
|
|
234
|
-
selectedAgent={selectedAgent}
|
|
235
|
-
compact={compact}
|
|
236
|
-
isBridgeMode={isInBridgeMode}
|
|
237
|
-
onToggle={() => toggleProject(project.id)}
|
|
238
|
-
onProjectSelect={() => onProjectSelect?.(project)}
|
|
239
|
-
onAgentSelect={(agent) => onAgentSelect?.(agent, project)}
|
|
240
|
-
onReleaseClick={onReleaseClick}
|
|
241
|
-
onLogsClick={onLogsClick}
|
|
242
|
-
/>
|
|
243
|
-
))}
|
|
244
|
-
</div>
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
interface ProjectSectionProps {
|
|
249
|
-
project: Project;
|
|
250
|
-
isExpanded: boolean;
|
|
251
|
-
isCurrentProject: boolean;
|
|
252
|
-
selectedAgent?: string;
|
|
253
|
-
compact?: boolean;
|
|
254
|
-
/** Is this project part of a multi-project bridge setup */
|
|
255
|
-
isBridgeMode?: boolean;
|
|
256
|
-
onToggle: () => void;
|
|
257
|
-
onProjectSelect?: () => void;
|
|
258
|
-
onAgentSelect?: (agent: Agent) => void;
|
|
259
|
-
onReleaseClick?: (agent: Agent) => void;
|
|
260
|
-
onLogsClick?: (agent: Agent) => void;
|
|
261
|
-
onProfileClick?: (agent: Agent) => void;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
interface TeamGroup {
|
|
265
|
-
name: string;
|
|
266
|
-
agents: Agent[];
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
function ProjectSection({
|
|
270
|
-
project,
|
|
271
|
-
isExpanded,
|
|
272
|
-
isCurrentProject,
|
|
273
|
-
selectedAgent,
|
|
274
|
-
compact,
|
|
275
|
-
isBridgeMode = false,
|
|
276
|
-
onToggle,
|
|
277
|
-
onProjectSelect,
|
|
278
|
-
onAgentSelect,
|
|
279
|
-
onReleaseClick,
|
|
280
|
-
onLogsClick,
|
|
281
|
-
onProfileClick,
|
|
282
|
-
}: ProjectSectionProps) {
|
|
283
|
-
const [expandedTeams, setExpandedTeams] = useState<Set<string>>(new Set());
|
|
284
|
-
|
|
285
|
-
const stats = useMemo(() => {
|
|
286
|
-
let online = 0;
|
|
287
|
-
let needsAttention = 0;
|
|
288
|
-
for (const agent of project.agents) {
|
|
289
|
-
if (agent.status === 'online') online++;
|
|
290
|
-
if (agent.needsAttention) needsAttention++;
|
|
291
|
-
}
|
|
292
|
-
return { online, needsAttention, total: project.agents.length };
|
|
293
|
-
}, [project.agents]);
|
|
294
|
-
|
|
295
|
-
// Group agents by team (optional user-defined grouping)
|
|
296
|
-
const { teams, ungroupedAgents } = useMemo(() => {
|
|
297
|
-
const teamMap = new Map<string, Agent[]>();
|
|
298
|
-
const ungrouped: Agent[] = [];
|
|
299
|
-
|
|
300
|
-
for (const agent of project.agents) {
|
|
301
|
-
if (agent.team) {
|
|
302
|
-
const existing = teamMap.get(agent.team) || [];
|
|
303
|
-
existing.push(agent);
|
|
304
|
-
teamMap.set(agent.team, existing);
|
|
305
|
-
} else {
|
|
306
|
-
ungrouped.push(agent);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
const teams: TeamGroup[] = Array.from(teamMap.entries())
|
|
311
|
-
.map(([name, agents]) => ({ name, agents }))
|
|
312
|
-
.sort((a, b) => a.name.localeCompare(b.name));
|
|
313
|
-
|
|
314
|
-
return { teams, ungroupedAgents: ungrouped };
|
|
315
|
-
}, [project.agents]);
|
|
316
|
-
|
|
317
|
-
const toggleTeam = (teamName: string) => {
|
|
318
|
-
setExpandedTeams((prev) => {
|
|
319
|
-
const next = new Set(prev);
|
|
320
|
-
if (next.has(teamName)) {
|
|
321
|
-
next.delete(teamName);
|
|
322
|
-
} else {
|
|
323
|
-
next.add(teamName);
|
|
324
|
-
}
|
|
325
|
-
return next;
|
|
326
|
-
});
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
// Auto-expand teams when project expands
|
|
330
|
-
useEffect(() => {
|
|
331
|
-
if (isExpanded && expandedTeams.size === 0 && teams.length > 0) {
|
|
332
|
-
setExpandedTeams(new Set(teams.map((t) => t.name)));
|
|
333
|
-
}
|
|
334
|
-
}, [isExpanded, teams, expandedTeams]);
|
|
335
|
-
|
|
336
|
-
const projectColor = getAgentColor(project.name || project.id);
|
|
337
|
-
const displayName = project.name || project.path.split('/').pop() || project.id;
|
|
338
|
-
|
|
339
|
-
return (
|
|
340
|
-
<div className="mb-1">
|
|
341
|
-
<button
|
|
342
|
-
className={`group flex items-center gap-2 w-full py-2.5 px-3 bg-none border-none cursor-pointer text-[13px] text-left rounded-md transition-colors duration-200 relative text-[#e8e8e8] hover:bg-[var(--project-light)] ${
|
|
343
|
-
isCurrentProject ? 'bg-[rgba(0,255,200,0.08)]' : ''
|
|
344
|
-
}`}
|
|
345
|
-
onClick={onToggle}
|
|
346
|
-
onDoubleClick={onProjectSelect}
|
|
347
|
-
style={{
|
|
348
|
-
'--project-color': projectColor.primary,
|
|
349
|
-
'--project-light': projectColor.light,
|
|
350
|
-
} as React.CSSProperties}
|
|
351
|
-
>
|
|
352
|
-
<div
|
|
353
|
-
className="absolute left-0 top-1 bottom-1 w-[3px] rounded-sm"
|
|
354
|
-
style={{ background: projectColor.primary }}
|
|
355
|
-
/>
|
|
356
|
-
<ChevronIcon expanded={isExpanded} />
|
|
357
|
-
<FolderIcon color={projectColor.primary} />
|
|
358
|
-
<span className="font-semibold text-[#e8e8e8] whitespace-nowrap overflow-hidden text-ellipsis">{displayName}</span>
|
|
359
|
-
<span className="text-[#888] font-normal flex-shrink-0">({stats.total})</span>
|
|
360
|
-
|
|
361
|
-
<div className="ml-auto flex gap-2 flex-shrink-0">
|
|
362
|
-
{stats.online > 0 && (
|
|
363
|
-
<span className="flex items-center gap-1 text-[11px] text-[#666]">
|
|
364
|
-
<span
|
|
365
|
-
className="w-1.5 h-1.5 rounded-full"
|
|
366
|
-
style={{ backgroundColor: STATUS_COLORS.online }}
|
|
367
|
-
/>
|
|
368
|
-
{stats.online}
|
|
369
|
-
</span>
|
|
370
|
-
)}
|
|
371
|
-
{stats.needsAttention > 0 && (
|
|
372
|
-
<span className="flex items-center gap-1 text-[11px] text-[#666]">
|
|
373
|
-
<span
|
|
374
|
-
className="w-1.5 h-1.5 rounded-full"
|
|
375
|
-
style={{ backgroundColor: STATUS_COLORS.attention }}
|
|
376
|
-
/>
|
|
377
|
-
{stats.needsAttention}
|
|
378
|
-
</span>
|
|
379
|
-
)}
|
|
380
|
-
</div>
|
|
381
|
-
|
|
382
|
-
{project.lead?.connected && (
|
|
383
|
-
<span className="text-[#ffd700] text-xs ml-1" title={`Lead: ${project.lead.name}`}>
|
|
384
|
-
★
|
|
385
|
-
</span>
|
|
386
|
-
)}
|
|
387
|
-
|
|
388
|
-
{/* Switch button - shown in bridge mode for non-current projects */}
|
|
389
|
-
{isBridgeMode && !isCurrentProject && onProjectSelect && (
|
|
390
|
-
<button
|
|
391
|
-
className="ml-2 py-1 px-2 text-[10px] font-medium bg-accent-cyan/20 text-accent-cyan rounded border-none cursor-pointer opacity-0 group-hover:opacity-100 transition-opacity hover:bg-accent-cyan/30"
|
|
392
|
-
onClick={(e) => {
|
|
393
|
-
e.stopPropagation();
|
|
394
|
-
onProjectSelect();
|
|
395
|
-
}}
|
|
396
|
-
title="Switch to this project"
|
|
397
|
-
>
|
|
398
|
-
Switch
|
|
399
|
-
</button>
|
|
400
|
-
)}
|
|
401
|
-
</button>
|
|
402
|
-
|
|
403
|
-
{isExpanded && (
|
|
404
|
-
<div className="py-1 pl-5 flex flex-col gap-1">
|
|
405
|
-
{/* Team groups (optional user-defined) */}
|
|
406
|
-
{teams.map((team) => (
|
|
407
|
-
<div key={team.name} className="mb-0.5">
|
|
408
|
-
<button
|
|
409
|
-
className="flex items-center gap-1.5 w-full py-1.5 px-2 bg-none border-none cursor-pointer text-xs text-left rounded transition-colors duration-200 text-[#b8b8b8] hover:bg-white/5"
|
|
410
|
-
onClick={() => toggleTeam(team.name)}
|
|
411
|
-
>
|
|
412
|
-
<ChevronIcon expanded={expandedTeams.has(team.name)} />
|
|
413
|
-
<TeamIcon />
|
|
414
|
-
<span className="font-medium text-[#b8b8b8]">{team.name}</span>
|
|
415
|
-
<span className="text-[#666] font-normal">({team.agents.length})</span>
|
|
416
|
-
</button>
|
|
417
|
-
{expandedTeams.has(team.name) && (
|
|
418
|
-
<div className="py-0.5 pl-4 flex flex-col gap-1">
|
|
419
|
-
{team.agents.map((agent) => (
|
|
420
|
-
<AgentCard
|
|
421
|
-
key={agent.name}
|
|
422
|
-
agent={agent}
|
|
423
|
-
isSelected={agent.name === selectedAgent}
|
|
424
|
-
compact={compact}
|
|
425
|
-
displayNameOverride={stripTeamPrefix(agent.name, team.name)}
|
|
426
|
-
onClick={onAgentSelect}
|
|
427
|
-
onReleaseClick={onReleaseClick}
|
|
428
|
-
onLogsClick={onLogsClick}
|
|
429
|
-
onProfileClick={onProfileClick}
|
|
430
|
-
/>
|
|
431
|
-
))}
|
|
432
|
-
</div>
|
|
433
|
-
)}
|
|
434
|
-
</div>
|
|
435
|
-
))}
|
|
436
|
-
|
|
437
|
-
{/* Ungrouped agents (no team assigned) */}
|
|
438
|
-
{ungroupedAgents.map((agent) => (
|
|
439
|
-
<AgentCard
|
|
440
|
-
key={agent.name}
|
|
441
|
-
agent={agent}
|
|
442
|
-
isSelected={agent.name === selectedAgent}
|
|
443
|
-
compact={compact}
|
|
444
|
-
onClick={onAgentSelect}
|
|
445
|
-
onReleaseClick={onReleaseClick}
|
|
446
|
-
onLogsClick={onLogsClick}
|
|
447
|
-
onProfileClick={onProfileClick}
|
|
448
|
-
/>
|
|
449
|
-
))}
|
|
450
|
-
</div>
|
|
451
|
-
)}
|
|
452
|
-
</div>
|
|
453
|
-
);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* Bridge Section - displays bridge-level agents (Architect, etc.)
|
|
458
|
-
*/
|
|
459
|
-
interface BridgeSectionProps {
|
|
460
|
-
agents: Agent[];
|
|
461
|
-
selectedAgent?: string;
|
|
462
|
-
compact?: boolean;
|
|
463
|
-
onAgentSelect?: (agent: Agent) => void;
|
|
464
|
-
onReleaseClick?: (agent: Agent) => void;
|
|
465
|
-
onLogsClick?: (agent: Agent) => void;
|
|
466
|
-
onProfileClick?: (agent: Agent) => void;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
function BridgeSection({
|
|
470
|
-
agents,
|
|
471
|
-
selectedAgent,
|
|
472
|
-
compact,
|
|
473
|
-
onAgentSelect,
|
|
474
|
-
onReleaseClick,
|
|
475
|
-
onLogsClick,
|
|
476
|
-
onProfileClick,
|
|
477
|
-
}: BridgeSectionProps) {
|
|
478
|
-
const [isExpanded, setIsExpanded] = useState(true);
|
|
479
|
-
|
|
480
|
-
return (
|
|
481
|
-
<div className="mb-2">
|
|
482
|
-
<button
|
|
483
|
-
className="flex items-center gap-2 w-full py-2.5 px-3 bg-none border-none cursor-pointer text-[13px] text-left rounded-md transition-colors duration-200 relative text-[#e8e8e8] hover:bg-[rgba(168,85,247,0.1)]"
|
|
484
|
-
onClick={() => setIsExpanded(!isExpanded)}
|
|
485
|
-
>
|
|
486
|
-
<div
|
|
487
|
-
className="absolute left-0 top-1 bottom-1 w-[3px] rounded-sm"
|
|
488
|
-
style={{ background: '#a855f7' }}
|
|
489
|
-
/>
|
|
490
|
-
<ChevronIcon expanded={isExpanded} />
|
|
491
|
-
<BridgeIcon />
|
|
492
|
-
<span className="font-semibold text-[#e8e8e8]">Bridge</span>
|
|
493
|
-
<span className="text-[#888] font-normal flex-shrink-0">({agents.length})</span>
|
|
494
|
-
</button>
|
|
495
|
-
|
|
496
|
-
{isExpanded && (
|
|
497
|
-
<div className="py-1 pl-5 flex flex-col gap-1">
|
|
498
|
-
{agents.map((agent) => (
|
|
499
|
-
<AgentCard
|
|
500
|
-
key={agent.name}
|
|
501
|
-
agent={agent}
|
|
502
|
-
isSelected={agent.name === selectedAgent}
|
|
503
|
-
compact={compact}
|
|
504
|
-
onClick={onAgentSelect}
|
|
505
|
-
onReleaseClick={onReleaseClick}
|
|
506
|
-
onLogsClick={onLogsClick}
|
|
507
|
-
onProfileClick={onProfileClick}
|
|
508
|
-
/>
|
|
509
|
-
))}
|
|
510
|
-
</div>
|
|
511
|
-
)}
|
|
512
|
-
</div>
|
|
513
|
-
);
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
function BridgeIcon() {
|
|
517
|
-
return (
|
|
518
|
-
<svg
|
|
519
|
-
className="flex-shrink-0 text-[#a855f7]"
|
|
520
|
-
width="16"
|
|
521
|
-
height="16"
|
|
522
|
-
viewBox="0 0 24 24"
|
|
523
|
-
fill="none"
|
|
524
|
-
stroke="currentColor"
|
|
525
|
-
strokeWidth="2"
|
|
526
|
-
strokeLinecap="round"
|
|
527
|
-
strokeLinejoin="round"
|
|
528
|
-
>
|
|
529
|
-
<circle cx="12" cy="12" r="3" />
|
|
530
|
-
<circle cx="5" cy="5" r="2" />
|
|
531
|
-
<circle cx="19" cy="5" r="2" />
|
|
532
|
-
<circle cx="5" cy="19" r="2" />
|
|
533
|
-
<circle cx="19" cy="19" r="2" />
|
|
534
|
-
<line x1="9.5" y1="9.5" x2="6.5" y2="6.5" />
|
|
535
|
-
<line x1="14.5" y1="9.5" x2="17.5" y2="6.5" />
|
|
536
|
-
<line x1="9.5" y1="14.5" x2="6.5" y2="17.5" />
|
|
537
|
-
<line x1="14.5" y1="14.5" x2="17.5" y2="17.5" />
|
|
538
|
-
</svg>
|
|
539
|
-
);
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
function ChevronIcon({ expanded }: { expanded: boolean }) {
|
|
543
|
-
return (
|
|
544
|
-
<svg
|
|
545
|
-
className={`transition-transform duration-200 text-[#888] flex-shrink-0 ${expanded ? 'rotate-90' : ''}`}
|
|
546
|
-
width="16"
|
|
547
|
-
height="16"
|
|
548
|
-
viewBox="0 0 24 24"
|
|
549
|
-
fill="none"
|
|
550
|
-
stroke="currentColor"
|
|
551
|
-
strokeWidth="2"
|
|
552
|
-
>
|
|
553
|
-
<polyline points="9 18 15 12 9 6" />
|
|
554
|
-
</svg>
|
|
555
|
-
);
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
function FolderIcon({ color }: { color: string }) {
|
|
559
|
-
return (
|
|
560
|
-
<svg
|
|
561
|
-
className="flex-shrink-0"
|
|
562
|
-
style={{ color }}
|
|
563
|
-
width="16"
|
|
564
|
-
height="16"
|
|
565
|
-
viewBox="0 0 24 24"
|
|
566
|
-
fill="none"
|
|
567
|
-
stroke="currentColor"
|
|
568
|
-
strokeWidth="2"
|
|
569
|
-
>
|
|
570
|
-
<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" />
|
|
571
|
-
</svg>
|
|
572
|
-
);
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
function TeamIcon() {
|
|
576
|
-
return (
|
|
577
|
-
<svg
|
|
578
|
-
className="text-[#888] flex-shrink-0"
|
|
579
|
-
width="14"
|
|
580
|
-
height="14"
|
|
581
|
-
viewBox="0 0 24 24"
|
|
582
|
-
fill="none"
|
|
583
|
-
stroke="currentColor"
|
|
584
|
-
strokeWidth="2"
|
|
585
|
-
>
|
|
586
|
-
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" />
|
|
587
|
-
<circle cx="9" cy="7" r="4" />
|
|
588
|
-
<path d="M23 21v-2a4 4 0 0 0-3-3.87" />
|
|
589
|
-
<path d="M16 3.13a4 4 0 0 1 0 7.75" />
|
|
590
|
-
</svg>
|
|
591
|
-
);
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
function EmptyIcon() {
|
|
595
|
-
return (
|
|
596
|
-
<svg
|
|
597
|
-
className="mb-3 opacity-50"
|
|
598
|
-
width="48"
|
|
599
|
-
height="48"
|
|
600
|
-
viewBox="0 0 24 24"
|
|
601
|
-
fill="none"
|
|
602
|
-
stroke="currentColor"
|
|
603
|
-
strokeWidth="1"
|
|
604
|
-
>
|
|
605
|
-
<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" />
|
|
606
|
-
</svg>
|
|
607
|
-
);
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
function SearchIcon() {
|
|
611
|
-
return (
|
|
612
|
-
<svg
|
|
613
|
-
className="mb-3 opacity-50"
|
|
614
|
-
width="48"
|
|
615
|
-
height="48"
|
|
616
|
-
viewBox="0 0 24 24"
|
|
617
|
-
fill="none"
|
|
618
|
-
stroke="currentColor"
|
|
619
|
-
strokeWidth="1"
|
|
620
|
-
>
|
|
621
|
-
<circle cx="11" cy="11" r="8" />
|
|
622
|
-
<line x1="21" y1="21" x2="16.65" y2="16.65" />
|
|
623
|
-
</svg>
|
|
624
|
-
);
|
|
625
|
-
}
|