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,944 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CoordinatorPanel Component
|
|
3
|
-
*
|
|
4
|
-
* Manage bridge-level coordinator agents that oversee multiple projects.
|
|
5
|
-
* Available in cloud mode for Pro+ users.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React, { useState, useEffect } from 'react';
|
|
9
|
-
import type { Project } from '../types';
|
|
10
|
-
|
|
11
|
-
export interface RepositoryInfo {
|
|
12
|
-
id: string;
|
|
13
|
-
githubFullName: string;
|
|
14
|
-
defaultBranch: string;
|
|
15
|
-
isPrivate: boolean;
|
|
16
|
-
workspaceId?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface ProjectGroup {
|
|
20
|
-
id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
description?: string | null;
|
|
23
|
-
color?: string | null;
|
|
24
|
-
icon?: string | null;
|
|
25
|
-
repositoryCount: number;
|
|
26
|
-
repositories: RepositoryInfo[];
|
|
27
|
-
coordinatorAgent?: {
|
|
28
|
-
enabled: boolean;
|
|
29
|
-
name?: string;
|
|
30
|
-
model?: string;
|
|
31
|
-
systemPrompt?: string;
|
|
32
|
-
capabilities?: string[];
|
|
33
|
-
};
|
|
34
|
-
createdAt: string;
|
|
35
|
-
updatedAt: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface CoordinatorPanelProps {
|
|
39
|
-
isOpen: boolean;
|
|
40
|
-
onClose: () => void;
|
|
41
|
-
projects: Project[];
|
|
42
|
-
isCloudMode?: boolean;
|
|
43
|
-
/** Whether an Architect agent is already running */
|
|
44
|
-
hasArchitect?: boolean;
|
|
45
|
-
/** Callback when Architect is spawned */
|
|
46
|
-
onArchitectSpawned?: () => void;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function CoordinatorPanel({
|
|
50
|
-
isOpen,
|
|
51
|
-
onClose,
|
|
52
|
-
projects,
|
|
53
|
-
isCloudMode = false,
|
|
54
|
-
hasArchitect = false,
|
|
55
|
-
onArchitectSpawned,
|
|
56
|
-
}: CoordinatorPanelProps) {
|
|
57
|
-
const [projectGroups, setProjectGroups] = useState<ProjectGroup[]>([]);
|
|
58
|
-
const [ungroupedRepos, setUngroupedRepos] = useState<RepositoryInfo[]>([]);
|
|
59
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
60
|
-
const [error, setError] = useState<string | null>(null);
|
|
61
|
-
const [showCreateForm, setShowCreateForm] = useState(false);
|
|
62
|
-
const [newGroupName, setNewGroupName] = useState('');
|
|
63
|
-
const [newGroupDescription, setNewGroupDescription] = useState('');
|
|
64
|
-
const [selectedRepos, setSelectedRepos] = useState<Set<string>>(new Set());
|
|
65
|
-
const [isSpawningArchitect, setIsSpawningArchitect] = useState(false);
|
|
66
|
-
const [selectedCli, setSelectedCli] = useState('claude');
|
|
67
|
-
const [editingGroup, setEditingGroup] = useState<ProjectGroup | null>(null);
|
|
68
|
-
const [addingReposToGroupId, setAddingReposToGroupId] = useState<string | null>(null);
|
|
69
|
-
const [reposToAdd, setReposToAdd] = useState<Set<string>>(new Set());
|
|
70
|
-
|
|
71
|
-
// Fetch project groups on open
|
|
72
|
-
useEffect(() => {
|
|
73
|
-
if (isOpen && isCloudMode) {
|
|
74
|
-
fetchProjectGroups();
|
|
75
|
-
}
|
|
76
|
-
}, [isOpen, isCloudMode]);
|
|
77
|
-
|
|
78
|
-
const fetchProjectGroups = async () => {
|
|
79
|
-
setIsLoading(true);
|
|
80
|
-
setError(null);
|
|
81
|
-
try {
|
|
82
|
-
const response = await fetch('/api/project-groups');
|
|
83
|
-
if (response.ok) {
|
|
84
|
-
const data = await response.json();
|
|
85
|
-
setProjectGroups(data.groups || []);
|
|
86
|
-
setUngroupedRepos(data.ungroupedRepositories || []);
|
|
87
|
-
} else {
|
|
88
|
-
const errorData = await response.json().catch(() => ({}));
|
|
89
|
-
setError(errorData.error || 'Failed to load project groups');
|
|
90
|
-
}
|
|
91
|
-
} catch (_err) {
|
|
92
|
-
setError('Failed to load project groups');
|
|
93
|
-
} finally {
|
|
94
|
-
setIsLoading(false);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
const handleCreateGroup = async () => {
|
|
99
|
-
if (!newGroupName.trim() || selectedRepos.size === 0) return;
|
|
100
|
-
|
|
101
|
-
setIsLoading(true);
|
|
102
|
-
setError(null);
|
|
103
|
-
try {
|
|
104
|
-
const response = await fetch('/api/project-groups', {
|
|
105
|
-
method: 'POST',
|
|
106
|
-
headers: { 'Content-Type': 'application/json' },
|
|
107
|
-
body: JSON.stringify({
|
|
108
|
-
name: newGroupName.trim(),
|
|
109
|
-
description: newGroupDescription.trim() || undefined,
|
|
110
|
-
repositoryIds: Array.from(selectedRepos),
|
|
111
|
-
}),
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
if (response.ok) {
|
|
115
|
-
const data = await response.json();
|
|
116
|
-
if (data.group) {
|
|
117
|
-
// Add the new group and remove selected repos from ungrouped
|
|
118
|
-
setProjectGroups((prev) => [...prev, data.group]);
|
|
119
|
-
setUngroupedRepos((prev) => prev.filter(r => !selectedRepos.has(r.id)));
|
|
120
|
-
setShowCreateForm(false);
|
|
121
|
-
setNewGroupName('');
|
|
122
|
-
setNewGroupDescription('');
|
|
123
|
-
setSelectedRepos(new Set());
|
|
124
|
-
}
|
|
125
|
-
} else {
|
|
126
|
-
const errorData = await response.json().catch(() => ({}));
|
|
127
|
-
setError(errorData.error || 'Failed to create project group');
|
|
128
|
-
}
|
|
129
|
-
} catch (_err) {
|
|
130
|
-
setError('Failed to create project group');
|
|
131
|
-
} finally {
|
|
132
|
-
setIsLoading(false);
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
const handleUpdateGroup = async (groupId: string, updates: { name?: string; description?: string }) => {
|
|
137
|
-
setError(null);
|
|
138
|
-
try {
|
|
139
|
-
const response = await fetch(`/api/project-groups/${groupId}`, {
|
|
140
|
-
method: 'PATCH',
|
|
141
|
-
headers: { 'Content-Type': 'application/json' },
|
|
142
|
-
body: JSON.stringify(updates),
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
if (response.ok) {
|
|
146
|
-
const data = await response.json();
|
|
147
|
-
if (data.group) {
|
|
148
|
-
setProjectGroups((prev) =>
|
|
149
|
-
prev.map((g) => (g.id === groupId ? { ...g, ...data.group } : g))
|
|
150
|
-
);
|
|
151
|
-
setEditingGroup(null);
|
|
152
|
-
}
|
|
153
|
-
} else {
|
|
154
|
-
const errorData = await response.json().catch(() => ({}));
|
|
155
|
-
setError(errorData.error || 'Failed to update project group');
|
|
156
|
-
}
|
|
157
|
-
} catch (_err) {
|
|
158
|
-
setError('Failed to update project group');
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
const handleEnableCoordinator = async (groupId: string, enable: boolean) => {
|
|
163
|
-
setError(null);
|
|
164
|
-
try {
|
|
165
|
-
const endpoint = `/api/project-groups/${groupId}/coordinator/${enable ? 'enable' : 'disable'}`;
|
|
166
|
-
const response = await fetch(endpoint, { method: 'POST' });
|
|
167
|
-
|
|
168
|
-
if (response.ok) {
|
|
169
|
-
const data = await response.json();
|
|
170
|
-
setProjectGroups((prev) =>
|
|
171
|
-
prev.map((g) =>
|
|
172
|
-
g.id === groupId
|
|
173
|
-
? {
|
|
174
|
-
...g,
|
|
175
|
-
coordinatorAgent: {
|
|
176
|
-
...g.coordinatorAgent,
|
|
177
|
-
enabled: enable,
|
|
178
|
-
name: data.coordinator?.name || g.coordinatorAgent?.name,
|
|
179
|
-
},
|
|
180
|
-
}
|
|
181
|
-
: g
|
|
182
|
-
)
|
|
183
|
-
);
|
|
184
|
-
} else {
|
|
185
|
-
const errorData = await response.json().catch(() => ({}));
|
|
186
|
-
setError(errorData.error || `Failed to ${enable ? 'enable' : 'disable'} coordinator`);
|
|
187
|
-
}
|
|
188
|
-
} catch (_err) {
|
|
189
|
-
setError(`Failed to ${enable ? 'enable' : 'disable'} coordinator`);
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
const handleDeleteGroup = async (groupId: string) => {
|
|
194
|
-
if (!window.confirm('Delete this project group? The coordinator will be stopped and repositories will be ungrouped.')) {
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
try {
|
|
199
|
-
// Find the group to get its repos before deletion
|
|
200
|
-
const groupToDelete = projectGroups.find(g => g.id === groupId);
|
|
201
|
-
|
|
202
|
-
const response = await fetch(`/api/project-groups/${groupId}`, {
|
|
203
|
-
method: 'DELETE',
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
if (response.ok) {
|
|
207
|
-
setProjectGroups((prev) => prev.filter((g) => g.id !== groupId));
|
|
208
|
-
// Add the repos back to ungrouped
|
|
209
|
-
if (groupToDelete?.repositories) {
|
|
210
|
-
setUngroupedRepos((prev) => [...prev, ...groupToDelete.repositories]);
|
|
211
|
-
}
|
|
212
|
-
} else {
|
|
213
|
-
const errorData = await response.json().catch(() => ({}));
|
|
214
|
-
setError(errorData.error || 'Failed to delete project group');
|
|
215
|
-
}
|
|
216
|
-
} catch (_err) {
|
|
217
|
-
setError('Failed to delete project group');
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
const handleRemoveRepoFromGroup = async (groupId: string, repoId: string) => {
|
|
222
|
-
try {
|
|
223
|
-
const response = await fetch(`/api/project-groups/${groupId}/repositories/${repoId}`, {
|
|
224
|
-
method: 'DELETE',
|
|
225
|
-
});
|
|
226
|
-
|
|
227
|
-
if (response.ok) {
|
|
228
|
-
// Move repo from group to ungrouped
|
|
229
|
-
const group = projectGroups.find(g => g.id === groupId);
|
|
230
|
-
const removedRepo = group?.repositories.find(r => r.id === repoId);
|
|
231
|
-
|
|
232
|
-
setProjectGroups((prev) =>
|
|
233
|
-
prev.map((g) =>
|
|
234
|
-
g.id === groupId
|
|
235
|
-
? {
|
|
236
|
-
...g,
|
|
237
|
-
repositories: g.repositories.filter(r => r.id !== repoId),
|
|
238
|
-
repositoryCount: g.repositoryCount - 1,
|
|
239
|
-
}
|
|
240
|
-
: g
|
|
241
|
-
)
|
|
242
|
-
);
|
|
243
|
-
|
|
244
|
-
if (removedRepo) {
|
|
245
|
-
setUngroupedRepos((prev) => [...prev, removedRepo]);
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
const errorData = await response.json().catch(() => ({}));
|
|
249
|
-
setError(errorData.error || 'Failed to remove repository from group');
|
|
250
|
-
}
|
|
251
|
-
} catch (_err) {
|
|
252
|
-
setError('Failed to remove repository from group');
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
const handleAddReposToGroup = async (groupId: string, repoIds: string[]) => {
|
|
257
|
-
if (repoIds.length === 0) return;
|
|
258
|
-
|
|
259
|
-
try {
|
|
260
|
-
const response = await fetch(`/api/project-groups/${groupId}/repositories`, {
|
|
261
|
-
method: 'POST',
|
|
262
|
-
headers: { 'Content-Type': 'application/json' },
|
|
263
|
-
body: JSON.stringify({ repositoryIds: repoIds }),
|
|
264
|
-
});
|
|
265
|
-
|
|
266
|
-
if (response.ok) {
|
|
267
|
-
// Refetch to get updated data
|
|
268
|
-
await fetchProjectGroups();
|
|
269
|
-
setAddingReposToGroupId(null);
|
|
270
|
-
setReposToAdd(new Set());
|
|
271
|
-
} else {
|
|
272
|
-
const errorData = await response.json().catch(() => ({}));
|
|
273
|
-
setError(errorData.error || 'Failed to add repositories to group');
|
|
274
|
-
}
|
|
275
|
-
} catch (_err) {
|
|
276
|
-
setError('Failed to add repositories to group');
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
const toggleRepoToAdd = (repoId: string) => {
|
|
281
|
-
setReposToAdd((prev) => {
|
|
282
|
-
const next = new Set(prev);
|
|
283
|
-
if (next.has(repoId)) {
|
|
284
|
-
next.delete(repoId);
|
|
285
|
-
} else {
|
|
286
|
-
next.add(repoId);
|
|
287
|
-
}
|
|
288
|
-
return next;
|
|
289
|
-
});
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
const toggleRepo = (repoId: string) => {
|
|
293
|
-
setSelectedRepos((prev) => {
|
|
294
|
-
const next = new Set(prev);
|
|
295
|
-
if (next.has(repoId)) {
|
|
296
|
-
next.delete(repoId);
|
|
297
|
-
} else {
|
|
298
|
-
next.add(repoId);
|
|
299
|
-
}
|
|
300
|
-
return next;
|
|
301
|
-
});
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
if (!isOpen) return null;
|
|
305
|
-
|
|
306
|
-
// Spawn architect handler for local mode
|
|
307
|
-
const handleSpawnArchitect = async () => {
|
|
308
|
-
setIsSpawningArchitect(true);
|
|
309
|
-
setError(null);
|
|
310
|
-
try {
|
|
311
|
-
const response = await fetch('/api/spawn/architect', {
|
|
312
|
-
method: 'POST',
|
|
313
|
-
headers: { 'Content-Type': 'application/json' },
|
|
314
|
-
body: JSON.stringify({ cli: selectedCli }),
|
|
315
|
-
});
|
|
316
|
-
|
|
317
|
-
const data = await response.json();
|
|
318
|
-
if (response.ok && data.success) {
|
|
319
|
-
onArchitectSpawned?.();
|
|
320
|
-
onClose();
|
|
321
|
-
} else {
|
|
322
|
-
setError(data.error || 'Failed to spawn Architect');
|
|
323
|
-
}
|
|
324
|
-
} catch (_err) {
|
|
325
|
-
setError('Failed to spawn Architect');
|
|
326
|
-
} finally {
|
|
327
|
-
setIsSpawningArchitect(false);
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
// Local mode: show spawn architect UI
|
|
332
|
-
if (!isCloudMode) {
|
|
333
|
-
const isInBridgeMode = projects.length > 1;
|
|
334
|
-
|
|
335
|
-
return (
|
|
336
|
-
<div
|
|
337
|
-
className="fixed inset-0 bg-black/70 flex items-center justify-center z-[1000] animate-fade-in"
|
|
338
|
-
onClick={onClose}
|
|
339
|
-
>
|
|
340
|
-
<div
|
|
341
|
-
className="bg-bg-secondary rounded-xl w-[500px] max-w-[90vw] max-h-[80vh] flex flex-col shadow-modal animate-slide-up"
|
|
342
|
-
onClick={(e) => e.stopPropagation()}
|
|
343
|
-
>
|
|
344
|
-
<div className="flex items-center justify-between py-5 px-6 border-b border-border-subtle">
|
|
345
|
-
<div className="flex items-center gap-3">
|
|
346
|
-
<CoordinatorIcon />
|
|
347
|
-
<h2 className="m-0 text-lg font-semibold text-text-primary">Coordinator Agent</h2>
|
|
348
|
-
</div>
|
|
349
|
-
<button
|
|
350
|
-
className="flex items-center justify-center w-8 h-8 bg-transparent border-none rounded-md text-text-secondary cursor-pointer transition-all duration-150 hover:bg-bg-hover hover:text-text-primary"
|
|
351
|
-
onClick={onClose}
|
|
352
|
-
>
|
|
353
|
-
<CloseIcon />
|
|
354
|
-
</button>
|
|
355
|
-
</div>
|
|
356
|
-
|
|
357
|
-
<div className="flex-1 overflow-y-auto p-6">
|
|
358
|
-
{error && (
|
|
359
|
-
<div className="bg-error/10 border border-error/30 rounded-lg p-3 mb-4 text-error text-sm">
|
|
360
|
-
{error}
|
|
361
|
-
</div>
|
|
362
|
-
)}
|
|
363
|
-
|
|
364
|
-
{/* Spawn from dashboard - only in bridge mode */}
|
|
365
|
-
{isInBridgeMode && (
|
|
366
|
-
<div className="bg-gradient-to-r from-accent-purple/10 to-accent-cyan/10 border border-accent-purple/30 rounded-lg p-4 mb-4">
|
|
367
|
-
<h3 className="text-sm font-semibold text-text-primary mb-3 flex items-center gap-2">
|
|
368
|
-
<CoordinatorIcon />
|
|
369
|
-
Spawn Architect
|
|
370
|
-
</h3>
|
|
371
|
-
|
|
372
|
-
{hasArchitect ? (
|
|
373
|
-
<div className="flex items-center gap-2 text-sm text-success">
|
|
374
|
-
<CheckIcon />
|
|
375
|
-
Architect is running
|
|
376
|
-
</div>
|
|
377
|
-
) : (
|
|
378
|
-
<>
|
|
379
|
-
<p className="text-sm text-text-secondary mb-4">
|
|
380
|
-
Spawn an Architect agent to coordinate across your {projects.length} connected projects.
|
|
381
|
-
</p>
|
|
382
|
-
|
|
383
|
-
<div className="flex items-center gap-3">
|
|
384
|
-
<select
|
|
385
|
-
className="flex-1 py-2 px-3 bg-bg-card border border-border-subtle rounded-md text-sm text-text-primary outline-none focus:border-accent-purple/50"
|
|
386
|
-
value={selectedCli}
|
|
387
|
-
onChange={(e) => setSelectedCli(e.target.value)}
|
|
388
|
-
>
|
|
389
|
-
<option value="claude">Claude (default)</option>
|
|
390
|
-
<option value="claude:opus">Claude Opus</option>
|
|
391
|
-
<option value="claude:sonnet">Claude Sonnet</option>
|
|
392
|
-
<option value="codex">Codex</option>
|
|
393
|
-
</select>
|
|
394
|
-
<button
|
|
395
|
-
className="py-2 px-4 bg-gradient-to-r from-accent-purple to-accent-cyan text-bg-deep rounded-md text-sm font-semibold hover:shadow-lg transition-all disabled:opacity-50"
|
|
396
|
-
onClick={handleSpawnArchitect}
|
|
397
|
-
disabled={isSpawningArchitect}
|
|
398
|
-
>
|
|
399
|
-
{isSpawningArchitect ? 'Spawning...' : 'Spawn'}
|
|
400
|
-
</button>
|
|
401
|
-
</div>
|
|
402
|
-
</>
|
|
403
|
-
)}
|
|
404
|
-
</div>
|
|
405
|
-
)}
|
|
406
|
-
|
|
407
|
-
{/* Not in bridge mode message */}
|
|
408
|
-
{!isInBridgeMode && (
|
|
409
|
-
<div className="bg-bg-tertiary rounded-lg p-4 mb-4 border border-border-subtle">
|
|
410
|
-
<h3 className="text-sm font-semibold text-text-primary mb-2">Not in Bridge Mode</h3>
|
|
411
|
-
<p className="text-sm text-text-secondary">
|
|
412
|
-
The Architect coordinates multiple projects. Start bridge mode to enable:
|
|
413
|
-
</p>
|
|
414
|
-
<div className="bg-bg-card rounded-lg p-3 font-mono text-sm mt-3">
|
|
415
|
-
<span className="text-text-muted">$</span>{' '}
|
|
416
|
-
<span className="text-accent-cyan">relay bridge</span>{' '}
|
|
417
|
-
<span className="text-accent-orange">~/project1 ~/project2</span>
|
|
418
|
-
</div>
|
|
419
|
-
</div>
|
|
420
|
-
)}
|
|
421
|
-
|
|
422
|
-
<div className="bg-bg-tertiary rounded-lg p-4 mb-4">
|
|
423
|
-
<h3 className="text-sm font-semibold text-text-primary mb-2">CLI Alternative</h3>
|
|
424
|
-
<p className="text-sm text-text-secondary mb-3">
|
|
425
|
-
You can also spawn the Architect via CLI with the <code className="bg-bg-card px-1.5 py-0.5 rounded text-accent-cyan">--architect</code> flag:
|
|
426
|
-
</p>
|
|
427
|
-
<div className="bg-bg-card rounded-lg p-3 font-mono text-sm">
|
|
428
|
-
<span className="text-text-muted">$</span>{' '}
|
|
429
|
-
<span className="text-accent-cyan">relay bridge</span>{' '}
|
|
430
|
-
<span className="text-accent-orange">~/project1 ~/project2</span>{' '}
|
|
431
|
-
<span className="text-accent-purple">--architect</span>
|
|
432
|
-
</div>
|
|
433
|
-
</div>
|
|
434
|
-
</div>
|
|
435
|
-
|
|
436
|
-
<div className="flex justify-end py-4 px-6 border-t border-border-subtle">
|
|
437
|
-
<button
|
|
438
|
-
className="py-2 px-5 bg-bg-tertiary border border-border-subtle rounded-md text-sm text-text-secondary cursor-pointer transition-colors duration-150 hover:bg-bg-hover"
|
|
439
|
-
onClick={onClose}
|
|
440
|
-
>
|
|
441
|
-
Close
|
|
442
|
-
</button>
|
|
443
|
-
</div>
|
|
444
|
-
</div>
|
|
445
|
-
</div>
|
|
446
|
-
);
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
// Cloud mode: full coordinator management
|
|
450
|
-
return (
|
|
451
|
-
<div
|
|
452
|
-
className="fixed inset-0 bg-black/70 flex items-center justify-center z-[1000] animate-fade-in"
|
|
453
|
-
onClick={onClose}
|
|
454
|
-
>
|
|
455
|
-
<div
|
|
456
|
-
className="bg-bg-secondary rounded-xl w-[600px] max-w-[90vw] max-h-[80vh] flex flex-col shadow-modal animate-slide-up"
|
|
457
|
-
onClick={(e) => e.stopPropagation()}
|
|
458
|
-
>
|
|
459
|
-
<div className="flex items-center justify-between py-5 px-6 border-b border-border-subtle">
|
|
460
|
-
<div className="flex items-center gap-3">
|
|
461
|
-
<CoordinatorIcon />
|
|
462
|
-
<h2 className="m-0 text-lg font-semibold text-text-primary">Coordinator Agents</h2>
|
|
463
|
-
</div>
|
|
464
|
-
<button
|
|
465
|
-
className="flex items-center justify-center w-8 h-8 bg-transparent border-none rounded-md text-text-secondary cursor-pointer transition-all duration-150 hover:bg-bg-hover hover:text-text-primary"
|
|
466
|
-
onClick={onClose}
|
|
467
|
-
>
|
|
468
|
-
<CloseIcon />
|
|
469
|
-
</button>
|
|
470
|
-
</div>
|
|
471
|
-
|
|
472
|
-
<div className="flex-1 overflow-y-auto p-6">
|
|
473
|
-
{error && (
|
|
474
|
-
<div className="bg-error/10 border border-error/30 rounded-lg p-3 mb-4 text-error text-sm">
|
|
475
|
-
{error}
|
|
476
|
-
</div>
|
|
477
|
-
)}
|
|
478
|
-
|
|
479
|
-
{isLoading && projectGroups.length === 0 ? (
|
|
480
|
-
<div className="flex items-center justify-center py-12 text-text-muted">
|
|
481
|
-
<LoadingSpinner />
|
|
482
|
-
</div>
|
|
483
|
-
) : (
|
|
484
|
-
<>
|
|
485
|
-
{/* Existing project groups */}
|
|
486
|
-
{projectGroups.length > 0 && (
|
|
487
|
-
<div className="space-y-3 mb-6">
|
|
488
|
-
<h4 className="text-xs font-semibold text-text-muted uppercase tracking-wider">
|
|
489
|
-
Project Groups
|
|
490
|
-
</h4>
|
|
491
|
-
{projectGroups.map((group) => (
|
|
492
|
-
<div
|
|
493
|
-
key={group.id}
|
|
494
|
-
className="bg-bg-tertiary rounded-lg p-4 border border-border-subtle"
|
|
495
|
-
>
|
|
496
|
-
<div className="flex items-center justify-between mb-3">
|
|
497
|
-
<div className="flex items-center gap-2">
|
|
498
|
-
<span className="font-semibold text-text-primary">{group.name}</span>
|
|
499
|
-
<span className="text-xs text-text-muted">
|
|
500
|
-
{group.repositoryCount} {group.repositoryCount === 1 ? 'repo' : 'repos'}
|
|
501
|
-
</span>
|
|
502
|
-
</div>
|
|
503
|
-
<div className="flex items-center gap-1">
|
|
504
|
-
<button
|
|
505
|
-
className="text-text-muted hover:text-accent-cyan transition-colors p-1"
|
|
506
|
-
onClick={() => setEditingGroup(group)}
|
|
507
|
-
title="Edit group"
|
|
508
|
-
>
|
|
509
|
-
<EditIcon />
|
|
510
|
-
</button>
|
|
511
|
-
<button
|
|
512
|
-
className="text-text-muted hover:text-error transition-colors p-1"
|
|
513
|
-
onClick={() => handleDeleteGroup(group.id)}
|
|
514
|
-
title="Delete group"
|
|
515
|
-
>
|
|
516
|
-
<TrashIcon />
|
|
517
|
-
</button>
|
|
518
|
-
</div>
|
|
519
|
-
</div>
|
|
520
|
-
|
|
521
|
-
{/* Show repositories in the group */}
|
|
522
|
-
{group.repositories.length > 0 && (
|
|
523
|
-
<div className="mb-3 space-y-1">
|
|
524
|
-
{group.repositories.map((repo) => (
|
|
525
|
-
<div
|
|
526
|
-
key={repo.id}
|
|
527
|
-
className="flex items-center justify-between py-1 px-2 bg-bg-card/50 rounded text-xs"
|
|
528
|
-
>
|
|
529
|
-
<span className="text-text-secondary font-mono">
|
|
530
|
-
{repo.githubFullName}
|
|
531
|
-
</span>
|
|
532
|
-
<button
|
|
533
|
-
className="text-text-muted hover:text-error transition-colors p-0.5"
|
|
534
|
-
onClick={() => handleRemoveRepoFromGroup(group.id, repo.id)}
|
|
535
|
-
title="Remove from group"
|
|
536
|
-
>
|
|
537
|
-
<CloseIcon size={12} />
|
|
538
|
-
</button>
|
|
539
|
-
</div>
|
|
540
|
-
))}
|
|
541
|
-
</div>
|
|
542
|
-
)}
|
|
543
|
-
|
|
544
|
-
{group.description && (
|
|
545
|
-
<p className="text-xs text-text-muted mb-3">{group.description}</p>
|
|
546
|
-
)}
|
|
547
|
-
|
|
548
|
-
{/* Add repos to group section */}
|
|
549
|
-
{addingReposToGroupId === group.id ? (
|
|
550
|
-
<div className="mb-3 p-3 bg-bg-card rounded-lg border border-border-subtle">
|
|
551
|
-
<div className="text-xs font-medium text-text-muted mb-2">
|
|
552
|
-
Select repositories to add:
|
|
553
|
-
</div>
|
|
554
|
-
<div className="space-y-1 max-h-[150px] overflow-y-auto mb-3">
|
|
555
|
-
{ungroupedRepos.length > 0 ? (
|
|
556
|
-
ungroupedRepos.map((repo) => (
|
|
557
|
-
<label
|
|
558
|
-
key={repo.id}
|
|
559
|
-
className="flex items-center gap-2 p-1.5 rounded cursor-pointer hover:bg-bg-hover"
|
|
560
|
-
>
|
|
561
|
-
<input
|
|
562
|
-
type="checkbox"
|
|
563
|
-
className="accent-accent-cyan"
|
|
564
|
-
checked={reposToAdd.has(repo.id)}
|
|
565
|
-
onChange={() => toggleRepoToAdd(repo.id)}
|
|
566
|
-
/>
|
|
567
|
-
<span className="text-xs text-text-primary font-mono">
|
|
568
|
-
{repo.githubFullName}
|
|
569
|
-
</span>
|
|
570
|
-
</label>
|
|
571
|
-
))
|
|
572
|
-
) : (
|
|
573
|
-
<p className="text-xs text-text-muted py-2 text-center">
|
|
574
|
-
No ungrouped repositories available
|
|
575
|
-
</p>
|
|
576
|
-
)}
|
|
577
|
-
</div>
|
|
578
|
-
<div className="flex justify-end gap-2">
|
|
579
|
-
<button
|
|
580
|
-
className="py-1 px-3 text-xs bg-transparent border border-border-subtle rounded text-text-secondary hover:bg-bg-hover"
|
|
581
|
-
onClick={() => {
|
|
582
|
-
setAddingReposToGroupId(null);
|
|
583
|
-
setReposToAdd(new Set());
|
|
584
|
-
}}
|
|
585
|
-
>
|
|
586
|
-
Cancel
|
|
587
|
-
</button>
|
|
588
|
-
<button
|
|
589
|
-
className="py-1 px-3 text-xs bg-accent-cyan text-bg-deep rounded font-medium hover:bg-accent-cyan/90 disabled:opacity-50"
|
|
590
|
-
onClick={() => handleAddReposToGroup(group.id, Array.from(reposToAdd))}
|
|
591
|
-
disabled={reposToAdd.size === 0}
|
|
592
|
-
>
|
|
593
|
-
Add Selected
|
|
594
|
-
</button>
|
|
595
|
-
</div>
|
|
596
|
-
</div>
|
|
597
|
-
) : ungroupedRepos.length > 0 ? (
|
|
598
|
-
<button
|
|
599
|
-
className="mb-3 w-full py-1.5 text-xs border border-dashed border-border-subtle rounded text-text-muted hover:border-accent-cyan/50 hover:text-accent-cyan transition-colors flex items-center justify-center gap-1"
|
|
600
|
-
onClick={() => {
|
|
601
|
-
setAddingReposToGroupId(group.id);
|
|
602
|
-
setReposToAdd(new Set());
|
|
603
|
-
}}
|
|
604
|
-
>
|
|
605
|
-
<PlusIcon />
|
|
606
|
-
Add repositories
|
|
607
|
-
</button>
|
|
608
|
-
) : null}
|
|
609
|
-
|
|
610
|
-
<div className="flex items-center justify-between">
|
|
611
|
-
<div className="flex items-center gap-2">
|
|
612
|
-
<StatusBadge status={group.coordinatorAgent?.enabled ? 'running' : 'stopped'} />
|
|
613
|
-
{group.coordinatorAgent?.name && (
|
|
614
|
-
<span className="text-sm text-text-secondary">
|
|
615
|
-
{group.coordinatorAgent.name}
|
|
616
|
-
</span>
|
|
617
|
-
)}
|
|
618
|
-
</div>
|
|
619
|
-
<button
|
|
620
|
-
className={`py-1.5 px-3 rounded-md text-xs font-medium transition-colors ${
|
|
621
|
-
group.coordinatorAgent?.enabled
|
|
622
|
-
? 'bg-error/20 text-error hover:bg-error/30'
|
|
623
|
-
: 'bg-accent-cyan/20 text-accent-cyan hover:bg-accent-cyan/30'
|
|
624
|
-
} ${group.repositoryCount === 0 ? 'opacity-50 cursor-not-allowed' : ''}`}
|
|
625
|
-
onClick={() =>
|
|
626
|
-
group.repositoryCount > 0 &&
|
|
627
|
-
handleEnableCoordinator(group.id, !group.coordinatorAgent?.enabled)
|
|
628
|
-
}
|
|
629
|
-
disabled={group.repositoryCount === 0}
|
|
630
|
-
title={group.repositoryCount === 0 ? 'Add repositories first' : undefined}
|
|
631
|
-
>
|
|
632
|
-
{group.coordinatorAgent?.enabled ? 'Stop' : 'Start'} Coordinator
|
|
633
|
-
</button>
|
|
634
|
-
</div>
|
|
635
|
-
</div>
|
|
636
|
-
))}
|
|
637
|
-
</div>
|
|
638
|
-
)}
|
|
639
|
-
|
|
640
|
-
{/* Edit group modal */}
|
|
641
|
-
{editingGroup && (
|
|
642
|
-
<div className="bg-bg-tertiary rounded-lg p-4 border border-accent-cyan/30 mb-4">
|
|
643
|
-
<h4 className="text-sm font-semibold text-text-primary mb-4">
|
|
644
|
-
Edit Project Group
|
|
645
|
-
</h4>
|
|
646
|
-
<EditGroupForm
|
|
647
|
-
group={editingGroup}
|
|
648
|
-
onSave={(updates) => handleUpdateGroup(editingGroup.id, updates)}
|
|
649
|
-
onCancel={() => setEditingGroup(null)}
|
|
650
|
-
/>
|
|
651
|
-
</div>
|
|
652
|
-
)}
|
|
653
|
-
|
|
654
|
-
{/* Create new group form */}
|
|
655
|
-
{showCreateForm ? (
|
|
656
|
-
<div className="bg-bg-tertiary rounded-lg p-4 border border-accent-cyan/30">
|
|
657
|
-
<h4 className="text-sm font-semibold text-text-primary mb-4">
|
|
658
|
-
Create Project Group
|
|
659
|
-
</h4>
|
|
660
|
-
|
|
661
|
-
<div className="space-y-4">
|
|
662
|
-
<div>
|
|
663
|
-
<label className="block text-xs font-medium text-text-muted mb-1.5">
|
|
664
|
-
Group Name
|
|
665
|
-
</label>
|
|
666
|
-
<input
|
|
667
|
-
type="text"
|
|
668
|
-
className="w-full py-2 px-3 bg-bg-card border border-border-subtle rounded-md text-sm text-text-primary outline-none focus:border-accent-cyan/50"
|
|
669
|
-
placeholder="e.g., Frontend Team"
|
|
670
|
-
value={newGroupName}
|
|
671
|
-
onChange={(e) => setNewGroupName(e.target.value)}
|
|
672
|
-
/>
|
|
673
|
-
</div>
|
|
674
|
-
|
|
675
|
-
<div>
|
|
676
|
-
<label className="block text-xs font-medium text-text-muted mb-1.5">
|
|
677
|
-
Description (optional)
|
|
678
|
-
</label>
|
|
679
|
-
<input
|
|
680
|
-
type="text"
|
|
681
|
-
className="w-full py-2 px-3 bg-bg-card border border-border-subtle rounded-md text-sm text-text-primary outline-none focus:border-accent-cyan/50"
|
|
682
|
-
placeholder="e.g., All frontend repositories"
|
|
683
|
-
value={newGroupDescription}
|
|
684
|
-
onChange={(e) => setNewGroupDescription(e.target.value)}
|
|
685
|
-
/>
|
|
686
|
-
</div>
|
|
687
|
-
|
|
688
|
-
<div>
|
|
689
|
-
<label className="block text-xs font-medium text-text-muted mb-1.5">
|
|
690
|
-
Select Repositories
|
|
691
|
-
</label>
|
|
692
|
-
<div className="space-y-2 max-h-[200px] overflow-y-auto">
|
|
693
|
-
{ungroupedRepos.map((repo) => (
|
|
694
|
-
<label
|
|
695
|
-
key={repo.id}
|
|
696
|
-
className="flex items-center gap-2 p-2 bg-bg-card rounded-md cursor-pointer hover:bg-bg-hover"
|
|
697
|
-
>
|
|
698
|
-
<input
|
|
699
|
-
type="checkbox"
|
|
700
|
-
className="accent-accent-cyan"
|
|
701
|
-
checked={selectedRepos.has(repo.id)}
|
|
702
|
-
onChange={() => toggleRepo(repo.id)}
|
|
703
|
-
/>
|
|
704
|
-
<span className="text-sm text-text-primary font-mono">
|
|
705
|
-
{repo.githubFullName}
|
|
706
|
-
</span>
|
|
707
|
-
{repo.isPrivate && (
|
|
708
|
-
<span className="text-xs text-text-muted">🔒</span>
|
|
709
|
-
)}
|
|
710
|
-
</label>
|
|
711
|
-
))}
|
|
712
|
-
{ungroupedRepos.length === 0 && (
|
|
713
|
-
<p className="text-sm text-text-muted py-4 text-center">
|
|
714
|
-
No ungrouped repositories. Add repositories in Settings or ungroup existing ones.
|
|
715
|
-
</p>
|
|
716
|
-
)}
|
|
717
|
-
</div>
|
|
718
|
-
</div>
|
|
719
|
-
|
|
720
|
-
<div className="flex justify-end gap-2">
|
|
721
|
-
<button
|
|
722
|
-
className="py-2 px-4 bg-transparent border border-border-subtle rounded-md text-sm text-text-secondary hover:bg-bg-hover"
|
|
723
|
-
onClick={() => {
|
|
724
|
-
setShowCreateForm(false);
|
|
725
|
-
setNewGroupName('');
|
|
726
|
-
setNewGroupDescription('');
|
|
727
|
-
setSelectedRepos(new Set());
|
|
728
|
-
}}
|
|
729
|
-
>
|
|
730
|
-
Cancel
|
|
731
|
-
</button>
|
|
732
|
-
<button
|
|
733
|
-
className="py-2 px-4 bg-accent-cyan text-bg-deep rounded-md text-sm font-medium hover:bg-accent-cyan/90 disabled:opacity-50"
|
|
734
|
-
onClick={handleCreateGroup}
|
|
735
|
-
disabled={!newGroupName.trim() || selectedRepos.size === 0 || isLoading}
|
|
736
|
-
>
|
|
737
|
-
{isLoading ? 'Creating...' : 'Create Group'}
|
|
738
|
-
</button>
|
|
739
|
-
</div>
|
|
740
|
-
</div>
|
|
741
|
-
</div>
|
|
742
|
-
) : (
|
|
743
|
-
<button
|
|
744
|
-
className="w-full py-3 px-4 border-2 border-dashed border-border-subtle rounded-lg text-text-muted hover:border-accent-cyan/50 hover:text-accent-cyan transition-colors flex items-center justify-center gap-2"
|
|
745
|
-
onClick={() => setShowCreateForm(true)}
|
|
746
|
-
disabled={!!editingGroup}
|
|
747
|
-
>
|
|
748
|
-
<PlusIcon />
|
|
749
|
-
Create Project Group
|
|
750
|
-
</button>
|
|
751
|
-
)}
|
|
752
|
-
|
|
753
|
-
{/* Info box */}
|
|
754
|
-
<div className="mt-6 p-4 bg-bg-tertiary/50 rounded-lg border border-border-subtle">
|
|
755
|
-
<h4 className="text-sm font-semibold text-text-primary mb-2 flex items-center gap-2">
|
|
756
|
-
<InfoIcon />
|
|
757
|
-
What is a Coordinator?
|
|
758
|
-
</h4>
|
|
759
|
-
<p className="text-sm text-text-secondary">
|
|
760
|
-
A coordinator is a high-level AI agent that oversees multiple projects. It can
|
|
761
|
-
delegate tasks to project leads, ensure consistency across codebases, and manage
|
|
762
|
-
cross-project dependencies.
|
|
763
|
-
</p>
|
|
764
|
-
</div>
|
|
765
|
-
</>
|
|
766
|
-
)}
|
|
767
|
-
</div>
|
|
768
|
-
</div>
|
|
769
|
-
</div>
|
|
770
|
-
);
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
function StatusBadge({ status }: { status: string }) {
|
|
774
|
-
const colors: Record<string, string> = {
|
|
775
|
-
stopped: 'bg-text-muted/20 text-text-muted',
|
|
776
|
-
starting: 'bg-accent-orange/20 text-accent-orange',
|
|
777
|
-
running: 'bg-success/20 text-success',
|
|
778
|
-
error: 'bg-error/20 text-error',
|
|
779
|
-
};
|
|
780
|
-
|
|
781
|
-
return (
|
|
782
|
-
<span className={`px-2 py-0.5 rounded-full text-xs font-medium ${colors[status] || colors.stopped}`}>
|
|
783
|
-
{status}
|
|
784
|
-
</span>
|
|
785
|
-
);
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
function LoadingSpinner() {
|
|
789
|
-
return (
|
|
790
|
-
<svg className="animate-spin h-6 w-6 text-accent-cyan" viewBox="0 0 24 24">
|
|
791
|
-
<circle
|
|
792
|
-
cx="12"
|
|
793
|
-
cy="12"
|
|
794
|
-
r="10"
|
|
795
|
-
stroke="currentColor"
|
|
796
|
-
strokeWidth="2"
|
|
797
|
-
fill="none"
|
|
798
|
-
strokeDasharray="32"
|
|
799
|
-
strokeLinecap="round"
|
|
800
|
-
/>
|
|
801
|
-
</svg>
|
|
802
|
-
);
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
function CoordinatorIcon() {
|
|
806
|
-
return (
|
|
807
|
-
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" className="text-accent-cyan">
|
|
808
|
-
<circle cx="12" cy="12" r="3" />
|
|
809
|
-
<circle cx="5" cy="5" r="2" />
|
|
810
|
-
<circle cx="19" cy="5" r="2" />
|
|
811
|
-
<circle cx="5" cy="19" r="2" />
|
|
812
|
-
<circle cx="19" cy="19" r="2" />
|
|
813
|
-
<line x1="9.5" y1="9.5" x2="6.5" y2="6.5" />
|
|
814
|
-
<line x1="14.5" y1="9.5" x2="17.5" y2="6.5" />
|
|
815
|
-
<line x1="9.5" y1="14.5" x2="6.5" y2="17.5" />
|
|
816
|
-
<line x1="14.5" y1="14.5" x2="17.5" y2="17.5" />
|
|
817
|
-
</svg>
|
|
818
|
-
);
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
function CloseIcon({ size = 20 }: { size?: number }) {
|
|
822
|
-
return (
|
|
823
|
-
<svg width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
824
|
-
<line x1="18" y1="6" x2="6" y2="18" />
|
|
825
|
-
<line x1="6" y1="6" x2="18" y2="18" />
|
|
826
|
-
</svg>
|
|
827
|
-
);
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
function EditIcon() {
|
|
831
|
-
return (
|
|
832
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
833
|
-
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />
|
|
834
|
-
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" />
|
|
835
|
-
</svg>
|
|
836
|
-
);
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
function PlusIcon() {
|
|
840
|
-
return (
|
|
841
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
842
|
-
<line x1="12" y1="5" x2="12" y2="19" />
|
|
843
|
-
<line x1="5" y1="12" x2="19" y2="12" />
|
|
844
|
-
</svg>
|
|
845
|
-
);
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
function TrashIcon() {
|
|
849
|
-
return (
|
|
850
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
851
|
-
<polyline points="3 6 5 6 21 6" />
|
|
852
|
-
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
|
|
853
|
-
</svg>
|
|
854
|
-
);
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
function InfoIcon() {
|
|
858
|
-
return (
|
|
859
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" className="text-accent-cyan">
|
|
860
|
-
<circle cx="12" cy="12" r="10" />
|
|
861
|
-
<line x1="12" y1="16" x2="12" y2="12" />
|
|
862
|
-
<line x1="12" y1="8" x2="12.01" y2="8" />
|
|
863
|
-
</svg>
|
|
864
|
-
);
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
function CheckIcon() {
|
|
868
|
-
return (
|
|
869
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" className="text-success">
|
|
870
|
-
<polyline points="20 6 9 17 4 12" />
|
|
871
|
-
</svg>
|
|
872
|
-
);
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
interface EditGroupFormProps {
|
|
876
|
-
group: ProjectGroup;
|
|
877
|
-
onSave: (updates: { name?: string; description?: string }) => void;
|
|
878
|
-
onCancel: () => void;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
function EditGroupForm({ group, onSave, onCancel }: EditGroupFormProps) {
|
|
882
|
-
const [name, setName] = useState(group.name);
|
|
883
|
-
const [description, setDescription] = useState(group.description || '');
|
|
884
|
-
|
|
885
|
-
const handleSave = () => {
|
|
886
|
-
const updates: { name?: string; description?: string } = {};
|
|
887
|
-
if (name.trim() !== group.name) {
|
|
888
|
-
updates.name = name.trim();
|
|
889
|
-
}
|
|
890
|
-
if (description.trim() !== (group.description || '')) {
|
|
891
|
-
updates.description = description.trim();
|
|
892
|
-
}
|
|
893
|
-
if (Object.keys(updates).length > 0) {
|
|
894
|
-
onSave(updates);
|
|
895
|
-
} else {
|
|
896
|
-
onCancel();
|
|
897
|
-
}
|
|
898
|
-
};
|
|
899
|
-
|
|
900
|
-
return (
|
|
901
|
-
<div className="space-y-4">
|
|
902
|
-
<div>
|
|
903
|
-
<label className="block text-xs font-medium text-text-muted mb-1.5">
|
|
904
|
-
Group Name
|
|
905
|
-
</label>
|
|
906
|
-
<input
|
|
907
|
-
type="text"
|
|
908
|
-
className="w-full py-2 px-3 bg-bg-card border border-border-subtle rounded-md text-sm text-text-primary outline-none focus:border-accent-cyan/50"
|
|
909
|
-
value={name}
|
|
910
|
-
onChange={(e) => setName(e.target.value)}
|
|
911
|
-
/>
|
|
912
|
-
</div>
|
|
913
|
-
|
|
914
|
-
<div>
|
|
915
|
-
<label className="block text-xs font-medium text-text-muted mb-1.5">
|
|
916
|
-
Description
|
|
917
|
-
</label>
|
|
918
|
-
<input
|
|
919
|
-
type="text"
|
|
920
|
-
className="w-full py-2 px-3 bg-bg-card border border-border-subtle rounded-md text-sm text-text-primary outline-none focus:border-accent-cyan/50"
|
|
921
|
-
placeholder="Optional description"
|
|
922
|
-
value={description}
|
|
923
|
-
onChange={(e) => setDescription(e.target.value)}
|
|
924
|
-
/>
|
|
925
|
-
</div>
|
|
926
|
-
|
|
927
|
-
<div className="flex justify-end gap-2">
|
|
928
|
-
<button
|
|
929
|
-
className="py-2 px-4 bg-transparent border border-border-subtle rounded-md text-sm text-text-secondary hover:bg-bg-hover"
|
|
930
|
-
onClick={onCancel}
|
|
931
|
-
>
|
|
932
|
-
Cancel
|
|
933
|
-
</button>
|
|
934
|
-
<button
|
|
935
|
-
className="py-2 px-4 bg-accent-cyan text-bg-deep rounded-md text-sm font-medium hover:bg-accent-cyan/90 disabled:opacity-50"
|
|
936
|
-
onClick={handleSave}
|
|
937
|
-
disabled={!name.trim()}
|
|
938
|
-
>
|
|
939
|
-
Save Changes
|
|
940
|
-
</button>
|
|
941
|
-
</div>
|
|
942
|
-
</div>
|
|
943
|
-
);
|
|
944
|
-
}
|