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,59 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { useState, useEffect } from 'react';
|
|
4
|
-
import { LandingPage } from '../landing';
|
|
5
|
-
import { App } from '../react-components/App';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Detect if running in cloud mode (should show landing page at root)
|
|
9
|
-
* Local mode shows the dashboard directly at root
|
|
10
|
-
*/
|
|
11
|
-
function detectCloudMode(): boolean {
|
|
12
|
-
if (typeof window === 'undefined') return false;
|
|
13
|
-
|
|
14
|
-
const hostname = window.location.hostname;
|
|
15
|
-
const params = new URLSearchParams(window.location.search);
|
|
16
|
-
|
|
17
|
-
// Query param for testing: ?landing=true or ?cloud=true
|
|
18
|
-
if (params.get('landing') === 'true' || params.get('cloud') === 'true') return true;
|
|
19
|
-
|
|
20
|
-
// Cloud URL patterns
|
|
21
|
-
if (hostname.includes('agent-relay.com')) return true;
|
|
22
|
-
if (hostname.includes('agentrelay.dev')) return true;
|
|
23
|
-
if (hostname.includes('.fly.dev')) return true;
|
|
24
|
-
|
|
25
|
-
// Cloud mode flag in meta tags
|
|
26
|
-
const cloudMeta = document.querySelector('meta[name="agent-relay-cloud"]');
|
|
27
|
-
if (cloudMeta?.getAttribute('content') === 'true') return true;
|
|
28
|
-
|
|
29
|
-
// Cloud mode in local storage (for development)
|
|
30
|
-
if (localStorage.getItem('agent-relay-cloud-mode') === 'true') return true;
|
|
31
|
-
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export default function HomePage() {
|
|
36
|
-
// Default to local mode (dashboard) - this is the most common case when
|
|
37
|
-
// running via agent-relay up. Cloud mode is only for hosted deployment.
|
|
38
|
-
const [isCloud, setIsCloud] = useState(false);
|
|
39
|
-
const [isReady, setIsReady] = useState(false);
|
|
40
|
-
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
setIsCloud(detectCloudMode());
|
|
43
|
-
setIsReady(true);
|
|
44
|
-
}, []);
|
|
45
|
-
|
|
46
|
-
// Show dashboard-styled loading state while detecting mode
|
|
47
|
-
// This prevents flash of unstyled content
|
|
48
|
-
if (!isReady) {
|
|
49
|
-
return (
|
|
50
|
-
<div className="flex h-screen bg-bg-deep font-sans text-text-primary items-center justify-center">
|
|
51
|
-
<div className="text-text-muted">Loading...</div>
|
|
52
|
-
</div>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Cloud mode: show landing page at root
|
|
57
|
-
// Local mode: show dashboard at root
|
|
58
|
-
return isCloud ? <LandingPage /> : <App />;
|
|
59
|
-
}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Providers Page
|
|
3
|
-
*
|
|
4
|
-
* Connect AI providers (Anthropic, OpenAI, etc.) to enable workspace creation.
|
|
5
|
-
* Uses the shared ProviderConnectionList component for consistent UI with /app onboarding.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
'use client';
|
|
9
|
-
|
|
10
|
-
import React, { useState, useEffect, Suspense } from 'react';
|
|
11
|
-
import { useSearchParams } from 'next/navigation';
|
|
12
|
-
import { LogoIcon } from '../../react-components/Logo';
|
|
13
|
-
import { ProviderConnectionList, type ProviderInfo } from '../../react-components/ProviderConnectionList';
|
|
14
|
-
|
|
15
|
-
interface BackendProvider {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
displayName: string;
|
|
19
|
-
description: string;
|
|
20
|
-
color: string;
|
|
21
|
-
isConnected: boolean;
|
|
22
|
-
connectedAs?: string;
|
|
23
|
-
cliCommand?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Available AI providers - same as /app page
|
|
27
|
-
const AI_PROVIDERS: ProviderInfo[] = [
|
|
28
|
-
{ id: 'anthropic', name: 'Anthropic', displayName: 'Claude', color: '#D97757', cliCommand: 'claude' },
|
|
29
|
-
{ id: 'codex', name: 'OpenAI', displayName: 'Codex', color: '#10A37F', cliCommand: 'codex login', supportsDeviceFlow: true, requiresUrlCopy: true },
|
|
30
|
-
{ id: 'google', name: 'Google', displayName: 'Gemini', color: '#4285F4', cliCommand: 'gemini' },
|
|
31
|
-
{ id: 'opencode', name: 'OpenCode', displayName: 'OpenCode', color: '#00D4AA', cliCommand: 'opencode', comingSoon: true },
|
|
32
|
-
{ id: 'droid', name: 'Factory', displayName: 'Droid', color: '#6366F1', cliCommand: 'droid', comingSoon: true },
|
|
33
|
-
{ id: 'cursor', name: 'Cursor', displayName: 'Cursor', color: '#7C3AED', cliCommand: 'agent' },
|
|
34
|
-
];
|
|
35
|
-
|
|
36
|
-
// Loading fallback for Suspense
|
|
37
|
-
function ProvidersLoading() {
|
|
38
|
-
return (
|
|
39
|
-
<div className="min-h-screen bg-gradient-to-br from-[#0a0a0f] via-[#0d1117] to-[#0a0a0f] flex items-center justify-center">
|
|
40
|
-
<div className="text-center">
|
|
41
|
-
<svg className="w-8 h-8 text-accent-cyan animate-spin mx-auto" fill="none" viewBox="0 0 24 24">
|
|
42
|
-
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4" />
|
|
43
|
-
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z" />
|
|
44
|
-
</svg>
|
|
45
|
-
<p className="mt-4 text-text-muted">Loading providers...</p>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// Main content component that uses useSearchParams
|
|
52
|
-
function ProvidersContent() {
|
|
53
|
-
const searchParams = useSearchParams();
|
|
54
|
-
const workspaceId = searchParams.get('workspace');
|
|
55
|
-
|
|
56
|
-
const [loading, setLoading] = useState(true);
|
|
57
|
-
const [error, setError] = useState<string | null>(null);
|
|
58
|
-
const [csrfToken, setCsrfToken] = useState<string | null>(null);
|
|
59
|
-
const [connectedProviders, setConnectedProviders] = useState<string[]>([]);
|
|
60
|
-
|
|
61
|
-
useEffect(() => {
|
|
62
|
-
const fetchProviders = async () => {
|
|
63
|
-
try {
|
|
64
|
-
const res = await fetch('/api/providers', { credentials: 'include' });
|
|
65
|
-
|
|
66
|
-
// Capture CSRF token
|
|
67
|
-
const token = res.headers.get('X-CSRF-Token');
|
|
68
|
-
if (token) setCsrfToken(token);
|
|
69
|
-
|
|
70
|
-
if (!res.ok) {
|
|
71
|
-
if (res.status === 401) {
|
|
72
|
-
window.location.href = '/login';
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
throw new Error('Failed to fetch providers');
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
const data = await res.json();
|
|
79
|
-
// Extract connected provider IDs
|
|
80
|
-
const connected = (data.providers || [])
|
|
81
|
-
.filter((p: BackendProvider) => p.isConnected && p.id !== 'github')
|
|
82
|
-
.map((p: BackendProvider) => p.id);
|
|
83
|
-
setConnectedProviders(connected);
|
|
84
|
-
} catch (err) {
|
|
85
|
-
setError(err instanceof Error ? err.message : 'Failed to load providers');
|
|
86
|
-
} finally {
|
|
87
|
-
setLoading(false);
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
fetchProviders();
|
|
92
|
-
}, []);
|
|
93
|
-
|
|
94
|
-
const handleProviderConnected = (providerId: string) => {
|
|
95
|
-
setConnectedProviders(prev => [...new Set([...prev, providerId])]);
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
const handleContinue = () => {
|
|
99
|
-
window.location.href = workspaceId ? `/app?workspace=${workspaceId}` : '/app';
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
if (loading) {
|
|
103
|
-
return (
|
|
104
|
-
<div className="min-h-screen bg-gradient-to-br from-[#0a0a0f] via-[#0d1117] to-[#0a0a0f] flex items-center justify-center">
|
|
105
|
-
<div className="text-center">
|
|
106
|
-
<svg className="w-8 h-8 text-accent-cyan animate-spin mx-auto" fill="none" viewBox="0 0 24 24">
|
|
107
|
-
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4" />
|
|
108
|
-
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z" />
|
|
109
|
-
</svg>
|
|
110
|
-
<p className="mt-4 text-text-muted">Loading providers...</p>
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
return (
|
|
117
|
-
<div className="min-h-screen bg-gradient-to-br from-[#0a0a0f] via-[#0d1117] to-[#0a0a0f] flex flex-col items-center justify-center p-4">
|
|
118
|
-
{/* Background grid */}
|
|
119
|
-
<div className="fixed inset-0 opacity-10 pointer-events-none">
|
|
120
|
-
<div
|
|
121
|
-
className="absolute inset-0"
|
|
122
|
-
style={{
|
|
123
|
-
backgroundImage: `linear-gradient(rgba(0, 217, 255, 0.1) 1px, transparent 1px),
|
|
124
|
-
linear-gradient(90deg, rgba(0, 217, 255, 0.1) 1px, transparent 1px)`,
|
|
125
|
-
backgroundSize: '50px 50px',
|
|
126
|
-
}}
|
|
127
|
-
/>
|
|
128
|
-
</div>
|
|
129
|
-
|
|
130
|
-
<div className="relative z-10 w-full max-w-xl">
|
|
131
|
-
{/* Logo */}
|
|
132
|
-
<div className="flex flex-col items-center mb-8">
|
|
133
|
-
<LogoIcon size={48} withGlow={true} />
|
|
134
|
-
<h1 className="mt-4 text-2xl font-bold text-white">Connect AI Providers</h1>
|
|
135
|
-
<p className="mt-2 text-text-muted text-center">
|
|
136
|
-
Connect your AI providers to start using agents.
|
|
137
|
-
</p>
|
|
138
|
-
</div>
|
|
139
|
-
|
|
140
|
-
{error && (
|
|
141
|
-
<div className="mb-4 p-4 bg-error/10 border border-error/20 rounded-xl">
|
|
142
|
-
<p className="text-error">{error}</p>
|
|
143
|
-
</div>
|
|
144
|
-
)}
|
|
145
|
-
|
|
146
|
-
{/* No workspace warning */}
|
|
147
|
-
{!workspaceId && (
|
|
148
|
-
<div className="mb-4 p-4 bg-warning/10 border border-warning/20 rounded-xl">
|
|
149
|
-
<p className="text-warning text-sm">
|
|
150
|
-
<strong>Note:</strong> CLI-based authentication requires a running workspace.
|
|
151
|
-
Please{' '}
|
|
152
|
-
<a href="/app" className="underline hover:no-underline">create a workspace</a> first.
|
|
153
|
-
</p>
|
|
154
|
-
</div>
|
|
155
|
-
)}
|
|
156
|
-
|
|
157
|
-
{/* Shared provider connection component */}
|
|
158
|
-
{workspaceId ? (
|
|
159
|
-
<ProviderConnectionList
|
|
160
|
-
providers={AI_PROVIDERS}
|
|
161
|
-
connectedProviders={connectedProviders}
|
|
162
|
-
workspaceId={workspaceId}
|
|
163
|
-
csrfToken={csrfToken || undefined}
|
|
164
|
-
onProviderConnected={handleProviderConnected}
|
|
165
|
-
onContinue={handleContinue}
|
|
166
|
-
showDetailedInfo={true}
|
|
167
|
-
/>
|
|
168
|
-
) : (
|
|
169
|
-
<div className="bg-bg-primary/80 backdrop-blur-sm border border-border-subtle rounded-2xl p-6 text-center">
|
|
170
|
-
<p className="text-text-muted mb-4">
|
|
171
|
-
A workspace is required to connect providers via CLI authentication.
|
|
172
|
-
</p>
|
|
173
|
-
<a
|
|
174
|
-
href="/app"
|
|
175
|
-
className="inline-block py-3 px-6 bg-gradient-to-r from-accent-cyan to-[#00b8d9] text-bg-deep font-semibold rounded-xl hover:shadow-glow-cyan transition-all"
|
|
176
|
-
>
|
|
177
|
-
Create a Workspace
|
|
178
|
-
</a>
|
|
179
|
-
</div>
|
|
180
|
-
)}
|
|
181
|
-
</div>
|
|
182
|
-
</div>
|
|
183
|
-
);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
// Export page wrapped in Suspense for static generation
|
|
187
|
-
export default function ProvidersPage() {
|
|
188
|
-
return (
|
|
189
|
-
<Suspense fallback={<ProvidersLoading />}>
|
|
190
|
-
<ProvidersContent />
|
|
191
|
-
</Suspense>
|
|
192
|
-
);
|
|
193
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider Setup Client Component
|
|
3
|
-
*
|
|
4
|
-
* Full-page interactive terminal for provider authentication and setup.
|
|
5
|
-
* Uses the shared TerminalProviderSetup component.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
'use client';
|
|
9
|
-
|
|
10
|
-
import React from 'react';
|
|
11
|
-
import { useRouter, useSearchParams } from 'next/navigation';
|
|
12
|
-
import { LogoIcon } from '../../../../react-components/Logo';
|
|
13
|
-
import { TerminalProviderSetup } from '../../../../react-components/TerminalProviderSetup';
|
|
14
|
-
import { PROVIDER_CONFIGS } from './constants';
|
|
15
|
-
|
|
16
|
-
export interface ProviderSetupClientProps {
|
|
17
|
-
provider: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export function ProviderSetupClient({ provider }: ProviderSetupClientProps) {
|
|
21
|
-
const router = useRouter();
|
|
22
|
-
const searchParams = useSearchParams();
|
|
23
|
-
const workspaceId = searchParams.get('workspace');
|
|
24
|
-
|
|
25
|
-
const config = PROVIDER_CONFIGS[provider];
|
|
26
|
-
|
|
27
|
-
if (!config) {
|
|
28
|
-
return (
|
|
29
|
-
<div className="min-h-screen bg-gradient-to-br from-[#0a0a0f] via-[#0d1117] to-[#0a0a0f] flex items-center justify-center">
|
|
30
|
-
<div className="text-center">
|
|
31
|
-
<p className="text-error">Unknown provider: {provider}</p>
|
|
32
|
-
<a href="/providers" className="mt-4 text-accent-cyan hover:underline">
|
|
33
|
-
Back to providers
|
|
34
|
-
</a>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
if (!workspaceId) {
|
|
41
|
-
return (
|
|
42
|
-
<div className="min-h-screen bg-gradient-to-br from-[#0a0a0f] via-[#0d1117] to-[#0a0a0f] flex items-center justify-center">
|
|
43
|
-
<div className="text-center">
|
|
44
|
-
<p className="text-error">No workspace specified</p>
|
|
45
|
-
<a href="/app" className="mt-4 text-accent-cyan hover:underline">
|
|
46
|
-
Back to dashboard
|
|
47
|
-
</a>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const handleSuccess = () => {
|
|
54
|
-
router.push(`/app?workspace=${workspaceId}`);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
const handleCancel = () => {
|
|
58
|
-
router.push(`/app?workspace=${workspaceId}`);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const handleConnectAnother = () => {
|
|
62
|
-
// Navigate to providers page to select another provider
|
|
63
|
-
router.push(`/providers?workspace=${workspaceId}`);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
return (
|
|
67
|
-
<div className="min-h-screen bg-gradient-to-br from-[#0a0a0f] via-[#0d1117] to-[#0a0a0f] p-8">
|
|
68
|
-
<div className="max-w-4xl mx-auto">
|
|
69
|
-
{/* Header */}
|
|
70
|
-
<div className="flex items-center justify-between mb-8">
|
|
71
|
-
<a href="/app" className="flex items-center gap-3 group">
|
|
72
|
-
<LogoIcon className="w-8 h-8 text-accent-cyan group-hover:scale-105 transition-transform" />
|
|
73
|
-
<span className="text-lg font-bold text-white">Agent Relay</span>
|
|
74
|
-
</a>
|
|
75
|
-
<a
|
|
76
|
-
href={`/app?workspace=${workspaceId}`}
|
|
77
|
-
className="px-4 py-2 text-sm text-text-secondary hover:text-text-primary transition-colors"
|
|
78
|
-
>
|
|
79
|
-
Skip for now →
|
|
80
|
-
</a>
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
{/* Title */}
|
|
84
|
-
<div className="text-center mb-8">
|
|
85
|
-
<div className="inline-flex items-center gap-3 mb-4">
|
|
86
|
-
<div
|
|
87
|
-
className="w-12 h-12 rounded-xl flex items-center justify-center text-white font-bold text-xl shadow-lg"
|
|
88
|
-
style={{
|
|
89
|
-
backgroundColor: config.color,
|
|
90
|
-
boxShadow: `0 4px 20px ${config.color}40`,
|
|
91
|
-
}}
|
|
92
|
-
>
|
|
93
|
-
{config.displayName[0]}
|
|
94
|
-
</div>
|
|
95
|
-
<h1 className="text-2xl font-bold text-white">
|
|
96
|
-
Set up {config.displayName}
|
|
97
|
-
</h1>
|
|
98
|
-
</div>
|
|
99
|
-
<p className="text-text-muted">
|
|
100
|
-
Complete the authentication flow in the interactive terminal below
|
|
101
|
-
</p>
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
{/* Terminal Setup Component */}
|
|
105
|
-
<TerminalProviderSetup
|
|
106
|
-
provider={{
|
|
107
|
-
id: config.id,
|
|
108
|
-
name: config.name,
|
|
109
|
-
displayName: config.displayName,
|
|
110
|
-
color: config.color,
|
|
111
|
-
}}
|
|
112
|
-
workspaceId={workspaceId}
|
|
113
|
-
maxHeight="500px"
|
|
114
|
-
showHeader={true}
|
|
115
|
-
onSuccess={handleSuccess}
|
|
116
|
-
onCancel={handleCancel}
|
|
117
|
-
onConnectAnother={handleConnectAnother}
|
|
118
|
-
onError={(err) => console.error('Setup error:', err)}
|
|
119
|
-
className="shadow-2xl"
|
|
120
|
-
/>
|
|
121
|
-
|
|
122
|
-
{/* Help text */}
|
|
123
|
-
<div className="mt-6 p-4 bg-bg-primary/80 backdrop-blur-sm border border-border-subtle rounded-xl">
|
|
124
|
-
<h3 className="text-white font-medium mb-2">How this works:</h3>
|
|
125
|
-
<ol className="text-sm text-text-muted space-y-1 list-decimal list-inside">
|
|
126
|
-
<li>The terminal above is interactive - respond to any prompts by typing directly</li>
|
|
127
|
-
<li>When a login URL appears, we'll detect it and show a popup to help you open it</li>
|
|
128
|
-
<li>Complete the login in your browser, then return here</li>
|
|
129
|
-
<li>Answer any remaining prompts (skills, permissions, etc.) in the terminal</li>
|
|
130
|
-
<li>Once connected, click "Done - Continue" to go to the dashboard</li>
|
|
131
|
-
</ol>
|
|
132
|
-
</div>
|
|
133
|
-
|
|
134
|
-
{/* Fallback link */}
|
|
135
|
-
<div className="mt-4 text-center">
|
|
136
|
-
<a
|
|
137
|
-
href={`/providers?connect=${config.id}&workspace=${workspaceId}`}
|
|
138
|
-
className="text-sm text-text-muted hover:text-accent-cyan transition-colors"
|
|
139
|
-
>
|
|
140
|
-
Having trouble? Try the popup-based login instead →
|
|
141
|
-
</a>
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
</div>
|
|
145
|
-
);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export default ProviderSetupClient;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider configurations for setup
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export interface ProviderConfig {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
displayName: string;
|
|
9
|
-
color: string;
|
|
10
|
-
agentCommand: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const PROVIDER_CONFIGS: Record<string, ProviderConfig> = {
|
|
14
|
-
claude: {
|
|
15
|
-
id: 'claude',
|
|
16
|
-
name: 'anthropic',
|
|
17
|
-
displayName: 'Claude',
|
|
18
|
-
color: '#D97706',
|
|
19
|
-
agentCommand: 'claude',
|
|
20
|
-
},
|
|
21
|
-
codex: {
|
|
22
|
-
id: 'codex',
|
|
23
|
-
name: 'openai',
|
|
24
|
-
displayName: 'Codex',
|
|
25
|
-
color: '#10A37F',
|
|
26
|
-
agentCommand: 'codex',
|
|
27
|
-
},
|
|
28
|
-
cursor: {
|
|
29
|
-
id: 'cursor',
|
|
30
|
-
name: 'cursor',
|
|
31
|
-
displayName: 'Cursor',
|
|
32
|
-
color: '#7C3AED', // Purple for Cursor
|
|
33
|
-
agentCommand: 'cursor',
|
|
34
|
-
},
|
|
35
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider Setup Page (Server Component)
|
|
3
|
-
*
|
|
4
|
-
* Renders the client component with static params for Next.js export.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { Suspense } from 'react';
|
|
8
|
-
import { ProviderSetupClient } from './ProviderSetupClient';
|
|
9
|
-
import { PROVIDER_CONFIGS } from './constants';
|
|
10
|
-
|
|
11
|
-
// Required for static export with dynamic routes
|
|
12
|
-
export function generateStaticParams() {
|
|
13
|
-
return Object.keys(PROVIDER_CONFIGS).map((provider) => ({
|
|
14
|
-
provider,
|
|
15
|
-
}));
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function LoadingFallback() {
|
|
19
|
-
return (
|
|
20
|
-
<div className="min-h-screen bg-gradient-to-br from-[#0a0a0f] via-[#0d1117] to-[#0a0a0f] flex items-center justify-center">
|
|
21
|
-
<div className="flex items-center gap-3">
|
|
22
|
-
<svg className="w-6 h-6 text-accent-cyan animate-spin" fill="none" viewBox="0 0 24 24">
|
|
23
|
-
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4" />
|
|
24
|
-
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z" />
|
|
25
|
-
</svg>
|
|
26
|
-
<span className="text-text-muted">Loading setup...</span>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default function ProviderSetupPage({
|
|
33
|
-
params,
|
|
34
|
-
}: {
|
|
35
|
-
params: { provider: string };
|
|
36
|
-
}) {
|
|
37
|
-
return (
|
|
38
|
-
<Suspense fallback={<LoadingFallback />}>
|
|
39
|
-
<ProviderSetupClient provider={params.provider} />
|
|
40
|
-
</Suspense>
|
|
41
|
-
);
|
|
42
|
-
}
|