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,464 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Agent Relay Cloud - Link Machine Page
|
|
5
|
-
*
|
|
6
|
-
* Flow:
|
|
7
|
-
* 1. User runs `agent-relay cloud link` in terminal
|
|
8
|
-
* 2. CLI opens this page with ?code=<temp>&machine=<id>&name=<name>
|
|
9
|
-
* 3. User confirms machine details and clicks "Link Machine"
|
|
10
|
-
* 4. Server generates API key via POST /api/daemons/link
|
|
11
|
-
* 5. User copies API key back to terminal
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import { useEffect, useState, useCallback, Suspense } from 'react';
|
|
15
|
-
import { useSearchParams } from 'next/navigation';
|
|
16
|
-
import { api } from '../../../lib/api';
|
|
17
|
-
|
|
18
|
-
type LinkState = 'loading' | 'auth-required' | 'ready' | 'linking' | 'success' | 'error';
|
|
19
|
-
|
|
20
|
-
interface MachineInfo {
|
|
21
|
-
code: string;
|
|
22
|
-
machineId: string;
|
|
23
|
-
machineName: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
interface Workspace {
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
status: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface LinkResult {
|
|
33
|
-
apiKey: string;
|
|
34
|
-
daemonId: string;
|
|
35
|
-
workspaceId: string | null;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Loading fallback for Suspense
|
|
39
|
-
function CloudLinkLoading() {
|
|
40
|
-
return (
|
|
41
|
-
<div className="relative min-h-screen flex items-center justify-center p-8 bg-bg-deep overflow-hidden">
|
|
42
|
-
<div className="bg-gradient-to-br from-bg-secondary to-bg-primary border border-accent-cyan/15 rounded-2xl p-12 shadow-xl backdrop-blur-xl">
|
|
43
|
-
<div className="w-12 h-12 mx-auto mb-6 border-3 border-accent-cyan/20 border-t-accent-cyan rounded-full animate-spin" />
|
|
44
|
-
<p className="text-center text-text-secondary">Loading...</p>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// Main content component that uses useSearchParams
|
|
51
|
-
function CloudLinkContent() {
|
|
52
|
-
const searchParams = useSearchParams();
|
|
53
|
-
const [state, setState] = useState<LinkState>('loading');
|
|
54
|
-
const [machineInfo, setMachineInfo] = useState<MachineInfo | null>(null);
|
|
55
|
-
const [linkResult, setLinkResult] = useState<LinkResult | null>(null);
|
|
56
|
-
const [error, setError] = useState<string>('');
|
|
57
|
-
const [copied, setCopied] = useState(false);
|
|
58
|
-
const [workspaces, setWorkspaces] = useState<Workspace[]>([]);
|
|
59
|
-
const [selectedWorkspaceId, setSelectedWorkspaceId] = useState<string | null>(null);
|
|
60
|
-
|
|
61
|
-
// Extract machine info from URL params
|
|
62
|
-
useEffect(() => {
|
|
63
|
-
const code = searchParams.get('code');
|
|
64
|
-
const machineId = searchParams.get('machine');
|
|
65
|
-
const machineName = searchParams.get('name');
|
|
66
|
-
|
|
67
|
-
if (!code || !machineId || !machineName) {
|
|
68
|
-
setState('error');
|
|
69
|
-
setError('Invalid link URL. Please run agent-relay cloud link again.');
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
setMachineInfo({ code, machineId, machineName });
|
|
74
|
-
checkAuth();
|
|
75
|
-
}, [searchParams]);
|
|
76
|
-
|
|
77
|
-
const checkAuth = async () => {
|
|
78
|
-
try {
|
|
79
|
-
const data = await api.get<{ authenticated?: boolean; user?: { id: string } }>('/api/auth/session');
|
|
80
|
-
if (data.authenticated && data.user?.id) {
|
|
81
|
-
// Fetch user's workspaces
|
|
82
|
-
const workspacesData = await api.get<{ workspaces: Workspace[] }>('/api/workspaces');
|
|
83
|
-
setWorkspaces(workspacesData.workspaces || []);
|
|
84
|
-
// Auto-select first workspace if only one exists
|
|
85
|
-
if (workspacesData.workspaces?.length === 1) {
|
|
86
|
-
setSelectedWorkspaceId(workspacesData.workspaces[0].id);
|
|
87
|
-
}
|
|
88
|
-
setState('ready');
|
|
89
|
-
} else {
|
|
90
|
-
setState('auth-required');
|
|
91
|
-
}
|
|
92
|
-
} catch (err) {
|
|
93
|
-
console.error('Auth check failed:', err);
|
|
94
|
-
setState('auth-required');
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
const handleLink = async () => {
|
|
99
|
-
if (!machineInfo) return;
|
|
100
|
-
|
|
101
|
-
// Require workspace selection if workspaces exist
|
|
102
|
-
if (workspaces.length > 0 && !selectedWorkspaceId) {
|
|
103
|
-
setError('Please select a workspace');
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
setState('linking');
|
|
108
|
-
setError('');
|
|
109
|
-
|
|
110
|
-
try {
|
|
111
|
-
const result = await api.post<{ apiKey: string; daemonId: string; workspaceId: string | null }>('/api/daemons/link', {
|
|
112
|
-
machineId: machineInfo.machineId,
|
|
113
|
-
name: machineInfo.machineName,
|
|
114
|
-
workspaceId: selectedWorkspaceId,
|
|
115
|
-
metadata: {
|
|
116
|
-
linkedVia: 'cli',
|
|
117
|
-
userAgent: navigator.userAgent,
|
|
118
|
-
},
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
setLinkResult({
|
|
122
|
-
apiKey: result.apiKey,
|
|
123
|
-
daemonId: result.daemonId,
|
|
124
|
-
workspaceId: result.workspaceId,
|
|
125
|
-
});
|
|
126
|
-
setState('success');
|
|
127
|
-
} catch (err: any) {
|
|
128
|
-
console.error('Link failed:', err);
|
|
129
|
-
setError(err.message || 'Failed to link machine. Please try again.');
|
|
130
|
-
setState('error');
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
const handleCopy = useCallback(async () => {
|
|
135
|
-
if (!linkResult?.apiKey) return;
|
|
136
|
-
|
|
137
|
-
try {
|
|
138
|
-
await navigator.clipboard.writeText(linkResult.apiKey);
|
|
139
|
-
setCopied(true);
|
|
140
|
-
setTimeout(() => setCopied(false), 2000);
|
|
141
|
-
} catch (err) {
|
|
142
|
-
console.error('Copy failed:', err);
|
|
143
|
-
}
|
|
144
|
-
}, [linkResult?.apiKey]);
|
|
145
|
-
|
|
146
|
-
const handleLogin = () => {
|
|
147
|
-
const returnUrl = window.location.href;
|
|
148
|
-
window.location.href = `/login?return=${encodeURIComponent(returnUrl)}`;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
return (
|
|
152
|
-
<div className="relative min-h-screen flex items-center justify-center p-8 bg-bg-deep overflow-hidden">
|
|
153
|
-
{/* Animated background */}
|
|
154
|
-
<div className="fixed inset-0 pointer-events-none">
|
|
155
|
-
{/* Grid */}
|
|
156
|
-
<div
|
|
157
|
-
className="absolute inset-0 opacity-30"
|
|
158
|
-
style={{
|
|
159
|
-
backgroundImage: 'linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px)',
|
|
160
|
-
backgroundSize: '80px 80px',
|
|
161
|
-
maskImage: 'radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 80%)',
|
|
162
|
-
animation: 'grid-drift 20s linear infinite',
|
|
163
|
-
}}
|
|
164
|
-
/>
|
|
165
|
-
|
|
166
|
-
{/* Glow */}
|
|
167
|
-
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-accent-cyan/10 rounded-full blur-3xl animate-pulse-glow" />
|
|
168
|
-
|
|
169
|
-
{/* Particles */}
|
|
170
|
-
<div className="absolute inset-0">
|
|
171
|
-
{[...Array(20)].map((_, i) => (
|
|
172
|
-
<div
|
|
173
|
-
key={i}
|
|
174
|
-
className="absolute w-0.5 h-0.5 bg-accent-cyan rounded-full shadow-glow-cyan opacity-0"
|
|
175
|
-
style={{
|
|
176
|
-
left: `${Math.random() * 100}%`,
|
|
177
|
-
top: `${Math.random() * 100}%`,
|
|
178
|
-
animation: `particle-float ${3 + Math.random() * 4}s ease-in-out infinite`,
|
|
179
|
-
animationDelay: `${Math.random() * 5}s`,
|
|
180
|
-
}}
|
|
181
|
-
/>
|
|
182
|
-
))}
|
|
183
|
-
</div>
|
|
184
|
-
</div>
|
|
185
|
-
|
|
186
|
-
{/* Main content */}
|
|
187
|
-
<div className="relative z-10 w-full max-width-[600px] animate-slide-up">
|
|
188
|
-
{/* Header */}
|
|
189
|
-
<div className="text-center mb-12">
|
|
190
|
-
<div className="inline-flex mb-6 text-accent-cyan animate-pulse">
|
|
191
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" className="drop-shadow-glow-cyan">
|
|
192
|
-
<path d="M16 4L28 11V21L16 28L4 21V11L16 4Z" stroke="currentColor" strokeWidth="2" />
|
|
193
|
-
<circle cx="16" cy="16" r="4" fill="currentColor" />
|
|
194
|
-
</svg>
|
|
195
|
-
</div>
|
|
196
|
-
<h1 className="font-display text-4xl font-bold mb-3 bg-gradient-to-r from-text-primary to-accent-cyan bg-clip-text text-transparent">
|
|
197
|
-
Link Machine
|
|
198
|
-
</h1>
|
|
199
|
-
<p className="text-xl text-text-secondary">
|
|
200
|
-
Connect this machine to Agent Relay Cloud
|
|
201
|
-
</p>
|
|
202
|
-
</div>
|
|
203
|
-
|
|
204
|
-
{/* Loading state */}
|
|
205
|
-
{state === 'loading' && (
|
|
206
|
-
<div className="bg-gradient-to-br from-bg-secondary to-bg-primary border border-accent-cyan/15 rounded-2xl p-12 shadow-xl backdrop-blur-xl">
|
|
207
|
-
<div className="w-12 h-12 mx-auto mb-6 border-3 border-accent-cyan/20 border-t-accent-cyan rounded-full animate-spin" />
|
|
208
|
-
<p className="text-center text-text-secondary">Verifying session...</p>
|
|
209
|
-
</div>
|
|
210
|
-
)}
|
|
211
|
-
|
|
212
|
-
{/* Auth required */}
|
|
213
|
-
{state === 'auth-required' && (
|
|
214
|
-
<div className="bg-gradient-to-br from-bg-secondary to-bg-primary border border-accent-cyan/15 rounded-2xl p-12 shadow-xl backdrop-blur-xl">
|
|
215
|
-
<div className="text-center">
|
|
216
|
-
<div className="text-5xl mb-6 animate-bounce">🔐</div>
|
|
217
|
-
<h2 className="font-display text-2xl font-semibold mb-4 text-text-primary">
|
|
218
|
-
Authentication Required
|
|
219
|
-
</h2>
|
|
220
|
-
<p className="text-text-secondary mb-8 leading-relaxed">
|
|
221
|
-
Sign in to link this machine to your Agent Relay account.
|
|
222
|
-
</p>
|
|
223
|
-
<button
|
|
224
|
-
onClick={handleLogin}
|
|
225
|
-
className="w-full flex items-center justify-center gap-3 px-8 py-4 bg-gradient-to-r from-accent-cyan to-accent-cyan/80 hover:from-accent-cyan/90 hover:to-accent-cyan/70 text-text-inverse font-display font-semibold text-lg rounded-xl shadow-glow-cyan transition-all duration-200 hover:-translate-y-0.5 hover:shadow-xl"
|
|
226
|
-
>
|
|
227
|
-
Sign In with GitHub
|
|
228
|
-
</button>
|
|
229
|
-
</div>
|
|
230
|
-
</div>
|
|
231
|
-
)}
|
|
232
|
-
|
|
233
|
-
{/* Ready to link */}
|
|
234
|
-
{state === 'ready' && machineInfo && (
|
|
235
|
-
<div className="bg-gradient-to-br from-bg-secondary to-bg-primary border border-accent-cyan/15 rounded-2xl p-12 shadow-xl backdrop-blur-xl">
|
|
236
|
-
{/* Machine details */}
|
|
237
|
-
<div className="bg-black/30 border border-border-subtle rounded-xl p-6 mb-8">
|
|
238
|
-
<div className="flex justify-between items-center py-3 border-b border-border-subtle">
|
|
239
|
-
<span className="text-sm font-medium text-text-secondary">Machine Name</span>
|
|
240
|
-
<span className="text-base font-medium text-text-primary">{machineInfo.machineName}</span>
|
|
241
|
-
</div>
|
|
242
|
-
<div className="flex justify-between items-center pt-3">
|
|
243
|
-
<span className="text-sm font-medium text-text-secondary">Machine ID</span>
|
|
244
|
-
<span className="font-mono text-sm text-accent-cyan">{machineInfo.machineId}</span>
|
|
245
|
-
</div>
|
|
246
|
-
</div>
|
|
247
|
-
|
|
248
|
-
{/* Workspace selector */}
|
|
249
|
-
{workspaces.length > 0 && (
|
|
250
|
-
<div className="mb-8">
|
|
251
|
-
<label className="block text-sm font-medium text-text-secondary mb-3">
|
|
252
|
-
Select Workspace
|
|
253
|
-
</label>
|
|
254
|
-
<p className="text-sm text-text-muted mb-4">
|
|
255
|
-
Local agents from this machine will appear in the selected workspace's dashboard.
|
|
256
|
-
</p>
|
|
257
|
-
<div className="space-y-2">
|
|
258
|
-
{workspaces.map((workspace) => (
|
|
259
|
-
<button
|
|
260
|
-
key={workspace.id}
|
|
261
|
-
onClick={() => setSelectedWorkspaceId(workspace.id)}
|
|
262
|
-
className={`w-full flex items-center gap-3 p-4 rounded-xl border transition-all ${
|
|
263
|
-
selectedWorkspaceId === workspace.id
|
|
264
|
-
? 'bg-accent-cyan/10 border-accent-cyan/50 shadow-glow-cyan'
|
|
265
|
-
: 'bg-black/20 border-border-subtle hover:border-accent-cyan/30'
|
|
266
|
-
}`}
|
|
267
|
-
>
|
|
268
|
-
<div className={`w-3 h-3 rounded-full ${
|
|
269
|
-
workspace.status === 'running' ? 'bg-success' : 'bg-gray-500'
|
|
270
|
-
}`} />
|
|
271
|
-
<span className="text-text-primary font-medium">{workspace.name}</span>
|
|
272
|
-
{selectedWorkspaceId === workspace.id && (
|
|
273
|
-
<span className="ml-auto text-accent-cyan">✓</span>
|
|
274
|
-
)}
|
|
275
|
-
</button>
|
|
276
|
-
))}
|
|
277
|
-
</div>
|
|
278
|
-
{error && !error.includes('Failed') && (
|
|
279
|
-
<p className="mt-2 text-sm text-error">{error}</p>
|
|
280
|
-
)}
|
|
281
|
-
</div>
|
|
282
|
-
)}
|
|
283
|
-
|
|
284
|
-
{/* No workspaces warning */}
|
|
285
|
-
{workspaces.length === 0 && (
|
|
286
|
-
<div className="flex gap-4 bg-accent-cyan/8 border border-accent-cyan/20 rounded-xl p-5 mb-8">
|
|
287
|
-
<div className="text-2xl flex-shrink-0">📁</div>
|
|
288
|
-
<div>
|
|
289
|
-
<p className="text-text-primary text-[15px] leading-relaxed mb-2">
|
|
290
|
-
No workspaces found. Create a workspace first to link this machine.
|
|
291
|
-
</p>
|
|
292
|
-
<a
|
|
293
|
-
href="/app"
|
|
294
|
-
className="text-accent-cyan hover:underline text-sm"
|
|
295
|
-
>
|
|
296
|
-
Go to Dashboard →
|
|
297
|
-
</a>
|
|
298
|
-
</div>
|
|
299
|
-
</div>
|
|
300
|
-
)}
|
|
301
|
-
|
|
302
|
-
{/* Warning */}
|
|
303
|
-
<div className="flex gap-4 bg-warning/8 border border-warning/20 rounded-xl p-5 mb-8">
|
|
304
|
-
<div className="text-2xl flex-shrink-0 animate-kill-pulse">⚠️</div>
|
|
305
|
-
<p className="text-text-primary text-[15px] leading-relaxed">
|
|
306
|
-
This will generate an API key that grants full access to your Agent Relay account.
|
|
307
|
-
Keep it secure and never share it publicly.
|
|
308
|
-
</p>
|
|
309
|
-
</div>
|
|
310
|
-
|
|
311
|
-
{/* Link button */}
|
|
312
|
-
<button
|
|
313
|
-
onClick={handleLink}
|
|
314
|
-
disabled={workspaces.length === 0}
|
|
315
|
-
className={`w-full flex items-center justify-center gap-3 px-8 py-4 font-display font-semibold text-lg rounded-xl transition-all duration-200 ${
|
|
316
|
-
workspaces.length === 0
|
|
317
|
-
? 'bg-gray-600 text-gray-400 cursor-not-allowed'
|
|
318
|
-
: 'bg-gradient-to-r from-accent-cyan to-success hover:from-accent-cyan/90 hover:to-success/90 text-text-inverse shadow-glow-cyan hover:-translate-y-0.5 hover:shadow-2xl animate-pulse-glow'
|
|
319
|
-
}`}
|
|
320
|
-
>
|
|
321
|
-
<span className="text-xl">🔗</span>
|
|
322
|
-
<span>Link This Machine</span>
|
|
323
|
-
</button>
|
|
324
|
-
</div>
|
|
325
|
-
)}
|
|
326
|
-
|
|
327
|
-
{/* Linking in progress */}
|
|
328
|
-
{state === 'linking' && (
|
|
329
|
-
<div className="bg-gradient-to-br from-bg-secondary to-bg-primary border border-accent-cyan/15 rounded-2xl p-12 shadow-xl backdrop-blur-xl">
|
|
330
|
-
<div className="relative w-30 h-30 mx-auto mb-8">
|
|
331
|
-
<div className="absolute inset-0 border-3 border-accent-cyan rounded-full animate-ping opacity-75" />
|
|
332
|
-
<div className="absolute inset-10 bg-accent-cyan rounded-full shadow-glow-cyan animate-pulse" />
|
|
333
|
-
</div>
|
|
334
|
-
<p className="text-center text-lg text-text-secondary">Generating API key...</p>
|
|
335
|
-
</div>
|
|
336
|
-
)}
|
|
337
|
-
|
|
338
|
-
{/* Success - show API key */}
|
|
339
|
-
{state === 'success' && linkResult && (
|
|
340
|
-
<div className="bg-gradient-to-br from-bg-secondary to-success/5 border border-success/30 rounded-2xl p-12 shadow-xl backdrop-blur-xl">
|
|
341
|
-
{/* Success header */}
|
|
342
|
-
<div className="text-center mb-10">
|
|
343
|
-
<div className="inline-flex items-center justify-center w-16 h-16 mb-6 bg-gradient-to-r from-success to-accent-cyan text-text-inverse text-3xl font-bold rounded-full shadow-glow-green animate-bounce">
|
|
344
|
-
✓
|
|
345
|
-
</div>
|
|
346
|
-
<h2 className="font-display text-2xl font-semibold mb-3 text-text-primary">
|
|
347
|
-
Machine Linked Successfully
|
|
348
|
-
</h2>
|
|
349
|
-
<p className="text-text-secondary">
|
|
350
|
-
Copy this API key and paste it into your terminal
|
|
351
|
-
</p>
|
|
352
|
-
{linkResult.workspaceId && (
|
|
353
|
-
<p className="mt-2 text-sm text-accent-cyan">
|
|
354
|
-
Linked to workspace: {workspaces.find(w => w.id === linkResult.workspaceId)?.name || 'Unknown'}
|
|
355
|
-
</p>
|
|
356
|
-
)}
|
|
357
|
-
</div>
|
|
358
|
-
|
|
359
|
-
{/* API key box */}
|
|
360
|
-
<div className="mb-10">
|
|
361
|
-
<div className="font-mono text-xs font-semibold uppercase tracking-wide text-accent-cyan mb-3">
|
|
362
|
-
API Key
|
|
363
|
-
</div>
|
|
364
|
-
<div className="relative flex items-center gap-4 bg-black/50 border-2 border-accent-cyan/30 rounded-xl p-5 shadow-glow-cyan">
|
|
365
|
-
<code className="flex-1 font-mono text-[15px] text-success break-all select-all drop-shadow-glow-green">
|
|
366
|
-
{linkResult.apiKey}
|
|
367
|
-
</code>
|
|
368
|
-
<button
|
|
369
|
-
onClick={handleCopy}
|
|
370
|
-
className={`flex-shrink-0 w-11 h-11 flex items-center justify-center rounded-lg text-xl transition-all duration-200 ${
|
|
371
|
-
copied
|
|
372
|
-
? 'bg-success/20 border border-success/50 text-success'
|
|
373
|
-
: 'bg-accent-cyan/15 border border-accent-cyan/30 text-accent-cyan hover:bg-accent-cyan/25 hover:border-accent-cyan/50 hover:scale-105'
|
|
374
|
-
}`}
|
|
375
|
-
title="Copy to clipboard"
|
|
376
|
-
>
|
|
377
|
-
{copied ? '✓' : '📋'}
|
|
378
|
-
</button>
|
|
379
|
-
</div>
|
|
380
|
-
</div>
|
|
381
|
-
|
|
382
|
-
{/* Instructions */}
|
|
383
|
-
<div className="bg-black/30 border border-border-subtle rounded-xl p-6 mb-6">
|
|
384
|
-
<h3 className="font-display text-lg font-semibold mb-4 text-text-primary">
|
|
385
|
-
Next Steps:
|
|
386
|
-
</h3>
|
|
387
|
-
<ol className="space-y-2 text-text-secondary leading-relaxed pl-5">
|
|
388
|
-
<li>Copy the API key above</li>
|
|
389
|
-
<li>Return to your terminal</li>
|
|
390
|
-
<li>Paste the key when prompted</li>
|
|
391
|
-
<li>Your machine is now linked to Agent Relay Cloud</li>
|
|
392
|
-
</ol>
|
|
393
|
-
</div>
|
|
394
|
-
|
|
395
|
-
{/* Important note */}
|
|
396
|
-
<div className="p-5 bg-warning/8 border border-warning/20 rounded-xl text-text-primary text-[15px] leading-relaxed">
|
|
397
|
-
<strong className="text-warning font-semibold">Important:</strong> This key will only be shown once. Store it securely
|
|
398
|
-
if you need it later. You can regenerate a new key by running{' '}
|
|
399
|
-
<code className="font-mono text-sm px-1.5 py-0.5 bg-black/30 rounded text-accent-cyan">
|
|
400
|
-
agent-relay cloud link
|
|
401
|
-
</code>{' '}
|
|
402
|
-
again.
|
|
403
|
-
</div>
|
|
404
|
-
</div>
|
|
405
|
-
)}
|
|
406
|
-
|
|
407
|
-
{/* Error state */}
|
|
408
|
-
{state === 'error' && (
|
|
409
|
-
<div className="bg-gradient-to-br from-bg-secondary to-error/5 border border-error/30 rounded-2xl p-12 shadow-xl backdrop-blur-xl text-center">
|
|
410
|
-
<div className="inline-flex items-center justify-center w-16 h-16 mb-6 bg-error/15 text-error text-3xl font-bold rounded-full border-2 border-error/30">
|
|
411
|
-
✕
|
|
412
|
-
</div>
|
|
413
|
-
<h2 className="font-display text-2xl font-semibold mb-4 text-text-primary">
|
|
414
|
-
Link Failed
|
|
415
|
-
</h2>
|
|
416
|
-
<p className="text-error mb-8 leading-relaxed">
|
|
417
|
-
{error}
|
|
418
|
-
</p>
|
|
419
|
-
<button
|
|
420
|
-
onClick={() => window.location.reload()}
|
|
421
|
-
className="w-full px-8 py-4 bg-bg-hover hover:bg-bg-active border border-border-light hover:border-border-medium text-text-primary font-display font-semibold text-lg rounded-xl transition-all duration-200"
|
|
422
|
-
>
|
|
423
|
-
Try Again
|
|
424
|
-
</button>
|
|
425
|
-
</div>
|
|
426
|
-
)}
|
|
427
|
-
|
|
428
|
-
{/* Footer */}
|
|
429
|
-
<div className="mt-8 text-center">
|
|
430
|
-
<a
|
|
431
|
-
href="/app"
|
|
432
|
-
className="inline-flex items-center gap-2 text-text-secondary hover:text-accent-cyan transition-colors duration-200"
|
|
433
|
-
>
|
|
434
|
-
<span>←</span>
|
|
435
|
-
<span>Back to Dashboard</span>
|
|
436
|
-
</a>
|
|
437
|
-
</div>
|
|
438
|
-
</div>
|
|
439
|
-
|
|
440
|
-
<style jsx>{`
|
|
441
|
-
@keyframes grid-drift {
|
|
442
|
-
0% { transform: translate(0, 0); }
|
|
443
|
-
100% { transform: translate(80px, 80px); }
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
@keyframes particle-float {
|
|
447
|
-
0% { opacity: 0; transform: translateY(0); }
|
|
448
|
-
10% { opacity: 0.6; }
|
|
449
|
-
90% { opacity: 0.6; }
|
|
450
|
-
100% { opacity: 0; transform: translateY(-100px); }
|
|
451
|
-
}
|
|
452
|
-
`}</style>
|
|
453
|
-
</div>
|
|
454
|
-
);
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
// Export page wrapped in Suspense for static generation
|
|
458
|
-
export default function CloudLinkPage() {
|
|
459
|
-
return (
|
|
460
|
-
<Suspense fallback={<CloudLinkLoading />}>
|
|
461
|
-
<CloudLinkContent />
|
|
462
|
-
</Suspense>
|
|
463
|
-
);
|
|
464
|
-
}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Complete Profile Page
|
|
3
|
-
*
|
|
4
|
-
* Prompts users to provide missing information after GitHub OAuth signup.
|
|
5
|
-
* Currently used to collect email address for GitHub users whose email
|
|
6
|
-
* is not publicly available.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
'use client';
|
|
10
|
-
|
|
11
|
-
import React, { useState, useEffect } from 'react';
|
|
12
|
-
import { LogoIcon } from '../../react-components/Logo';
|
|
13
|
-
|
|
14
|
-
export default function CompleteProfilePage() {
|
|
15
|
-
const [email, setEmail] = useState('');
|
|
16
|
-
const [isLoading, setIsLoading] = useState(true);
|
|
17
|
-
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
18
|
-
const [error, setError] = useState('');
|
|
19
|
-
const [user, setUser] = useState<{
|
|
20
|
-
githubUsername?: string;
|
|
21
|
-
avatarUrl?: string;
|
|
22
|
-
email?: string;
|
|
23
|
-
} | null>(null);
|
|
24
|
-
|
|
25
|
-
// Check if user is logged in and needs email
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
const checkSession = async () => {
|
|
28
|
-
try {
|
|
29
|
-
const response = await fetch('/api/auth/me', { credentials: 'include' });
|
|
30
|
-
if (!response.ok) {
|
|
31
|
-
// Not logged in - redirect to login
|
|
32
|
-
window.location.href = '/login';
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const data = await response.json();
|
|
37
|
-
|
|
38
|
-
// If user already has email, redirect to app
|
|
39
|
-
if (data.user?.email) {
|
|
40
|
-
window.location.href = '/app';
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
setUser(data.user);
|
|
45
|
-
setIsLoading(false);
|
|
46
|
-
} catch (err) {
|
|
47
|
-
console.error('Error checking session:', err);
|
|
48
|
-
window.location.href = '/login';
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
checkSession();
|
|
53
|
-
}, []);
|
|
54
|
-
|
|
55
|
-
const handleSubmit = async (e: React.FormEvent) => {
|
|
56
|
-
e.preventDefault();
|
|
57
|
-
setError('');
|
|
58
|
-
setIsSubmitting(true);
|
|
59
|
-
|
|
60
|
-
try {
|
|
61
|
-
// Get CSRF token first
|
|
62
|
-
const csrfResponse = await fetch('/api/auth/session', { credentials: 'include' });
|
|
63
|
-
const csrfToken = csrfResponse.headers.get('x-csrf-token');
|
|
64
|
-
|
|
65
|
-
const response = await fetch('/api/auth/email/set-email', {
|
|
66
|
-
method: 'POST',
|
|
67
|
-
headers: {
|
|
68
|
-
'Content-Type': 'application/json',
|
|
69
|
-
...(csrfToken && { 'x-csrf-token': csrfToken }),
|
|
70
|
-
},
|
|
71
|
-
credentials: 'include',
|
|
72
|
-
body: JSON.stringify({ email }),
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
const data = await response.json();
|
|
76
|
-
|
|
77
|
-
if (!response.ok) {
|
|
78
|
-
setError(data.error || 'Failed to set email');
|
|
79
|
-
setIsSubmitting(false);
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Success - redirect to app
|
|
84
|
-
window.location.href = '/app';
|
|
85
|
-
} catch (err) {
|
|
86
|
-
console.error('Error setting email:', err);
|
|
87
|
-
setError('Failed to connect. Please try again.');
|
|
88
|
-
setIsSubmitting(false);
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
if (isLoading) {
|
|
93
|
-
return (
|
|
94
|
-
<div className="min-h-screen bg-gradient-to-br from-[#0a0a0f] via-[#0d1117] to-[#0a0a0f] flex flex-col items-center justify-center p-4">
|
|
95
|
-
<div className="relative z-10 w-full max-w-md">
|
|
96
|
-
<div className="flex flex-col items-center mb-8">
|
|
97
|
-
<LogoIcon size={48} withGlow={true} />
|
|
98
|
-
<h1 className="mt-4 text-2xl font-bold text-white">Agent Relay</h1>
|
|
99
|
-
<p className="mt-2 text-text-muted">Loading...</p>
|
|
100
|
-
</div>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return (
|
|
107
|
-
<div className="min-h-screen bg-gradient-to-br from-[#0a0a0f] via-[#0d1117] to-[#0a0a0f] flex flex-col items-center justify-center p-4">
|
|
108
|
-
{/* Background grid */}
|
|
109
|
-
<div className="fixed inset-0 opacity-10">
|
|
110
|
-
<div
|
|
111
|
-
className="absolute inset-0"
|
|
112
|
-
style={{
|
|
113
|
-
backgroundImage: `linear-gradient(rgba(0, 217, 255, 0.1) 1px, transparent 1px),
|
|
114
|
-
linear-gradient(90deg, rgba(0, 217, 255, 0.1) 1px, transparent 1px)`,
|
|
115
|
-
backgroundSize: '50px 50px',
|
|
116
|
-
}}
|
|
117
|
-
/>
|
|
118
|
-
</div>
|
|
119
|
-
|
|
120
|
-
{/* Content */}
|
|
121
|
-
<div className="relative z-10 w-full max-w-md">
|
|
122
|
-
{/* Logo */}
|
|
123
|
-
<div className="flex flex-col items-center mb-8">
|
|
124
|
-
<LogoIcon size={48} withGlow={true} />
|
|
125
|
-
<h1 className="mt-4 text-2xl font-bold text-white">Almost there!</h1>
|
|
126
|
-
<p className="mt-2 text-text-muted text-center">
|
|
127
|
-
Please provide your email to complete your account setup
|
|
128
|
-
</p>
|
|
129
|
-
</div>
|
|
130
|
-
|
|
131
|
-
{/* Card */}
|
|
132
|
-
<div className="bg-bg-primary/80 backdrop-blur-sm border border-border-subtle rounded-2xl p-8 shadow-xl">
|
|
133
|
-
{/* User info */}
|
|
134
|
-
{user && (
|
|
135
|
-
<div className="flex items-center gap-4 mb-6 pb-6 border-b border-border-subtle">
|
|
136
|
-
{user.avatarUrl ? (
|
|
137
|
-
<img
|
|
138
|
-
src={user.avatarUrl}
|
|
139
|
-
alt={user.githubUsername || 'User'}
|
|
140
|
-
className="w-12 h-12 rounded-full"
|
|
141
|
-
/>
|
|
142
|
-
) : (
|
|
143
|
-
<div className="w-12 h-12 rounded-full bg-bg-secondary flex items-center justify-center">
|
|
144
|
-
<svg className="w-6 h-6 text-text-muted" fill="currentColor" viewBox="0 0 24 24">
|
|
145
|
-
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" />
|
|
146
|
-
</svg>
|
|
147
|
-
</div>
|
|
148
|
-
)}
|
|
149
|
-
<div>
|
|
150
|
-
<p className="font-medium text-white">{user.githubUsername}</p>
|
|
151
|
-
<p className="text-sm text-text-muted">Connected via GitHub</p>
|
|
152
|
-
</div>
|
|
153
|
-
</div>
|
|
154
|
-
)}
|
|
155
|
-
|
|
156
|
-
{error && (
|
|
157
|
-
<div className="mb-4 p-3 bg-error/10 border border-error/20 rounded-lg">
|
|
158
|
-
<p className="text-error text-sm">{error}</p>
|
|
159
|
-
</div>
|
|
160
|
-
)}
|
|
161
|
-
|
|
162
|
-
<form onSubmit={handleSubmit} className="space-y-4">
|
|
163
|
-
<div>
|
|
164
|
-
<label htmlFor="email" className="block text-sm font-medium text-text-secondary mb-2">
|
|
165
|
-
Email Address
|
|
166
|
-
</label>
|
|
167
|
-
<input
|
|
168
|
-
type="email"
|
|
169
|
-
id="email"
|
|
170
|
-
value={email}
|
|
171
|
-
onChange={(e) => setEmail(e.target.value)}
|
|
172
|
-
required
|
|
173
|
-
disabled={isSubmitting}
|
|
174
|
-
className="w-full px-4 py-3 bg-bg-secondary border border-border-subtle rounded-xl text-white placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-accent-cyan/50 focus:border-accent-cyan disabled:opacity-50"
|
|
175
|
-
placeholder="you@example.com"
|
|
176
|
-
/>
|
|
177
|
-
<p className="mt-2 text-xs text-text-muted">
|
|
178
|
-
We'll use this email to notify you about important updates and account activity.
|
|
179
|
-
</p>
|
|
180
|
-
</div>
|
|
181
|
-
|
|
182
|
-
<button
|
|
183
|
-
type="submit"
|
|
184
|
-
disabled={isSubmitting || !email}
|
|
185
|
-
className="w-full py-4 px-6 bg-accent-cyan hover:bg-accent-cyan/90 rounded-xl text-black font-medium flex items-center justify-center gap-3 transition-colors disabled:opacity-50 disabled:cursor-not-allowed"
|
|
186
|
-
>
|
|
187
|
-
{isSubmitting ? (
|
|
188
|
-
<>
|
|
189
|
-
<svg className="w-5 h-5 animate-spin" fill="none" viewBox="0 0 24 24">
|
|
190
|
-
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4" />
|
|
191
|
-
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z" />
|
|
192
|
-
</svg>
|
|
193
|
-
<span>Saving...</span>
|
|
194
|
-
</>
|
|
195
|
-
) : (
|
|
196
|
-
<span>Continue</span>
|
|
197
|
-
)}
|
|
198
|
-
</button>
|
|
199
|
-
</form>
|
|
200
|
-
</div>
|
|
201
|
-
</div>
|
|
202
|
-
</div>
|
|
203
|
-
);
|
|
204
|
-
}
|