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,482 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LogViewerPanel Component
|
|
3
|
-
*
|
|
4
|
-
* A full-screen or sidebar panel wrapper for the LogViewer.
|
|
5
|
-
* Provides a modal-like overlay for dedicated log viewing.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React, { useState, useEffect, useCallback } from 'react';
|
|
9
|
-
import { LogViewer } from './LogViewer';
|
|
10
|
-
import { getAgentColor, getAgentInitials } from '../lib/colors';
|
|
11
|
-
import { api } from '../lib/api';
|
|
12
|
-
import type { Agent } from '../types';
|
|
13
|
-
|
|
14
|
-
export type PanelPosition = 'right' | 'bottom' | 'fullscreen';
|
|
15
|
-
|
|
16
|
-
export interface LogViewerPanelProps {
|
|
17
|
-
/** Agent to show logs for */
|
|
18
|
-
agent: Agent;
|
|
19
|
-
/** Panel position/style */
|
|
20
|
-
position?: PanelPosition;
|
|
21
|
-
/** Whether the panel is open */
|
|
22
|
-
isOpen: boolean;
|
|
23
|
-
/** Callback when panel should close */
|
|
24
|
-
onClose: () => void;
|
|
25
|
-
/** Callback when user wants to switch to a different agent */
|
|
26
|
-
onAgentChange?: (agent: Agent) => void;
|
|
27
|
-
/** List of available agents (for agent switcher) */
|
|
28
|
-
availableAgents?: Agent[];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export function LogViewerPanel({
|
|
32
|
-
agent,
|
|
33
|
-
position = 'right',
|
|
34
|
-
isOpen,
|
|
35
|
-
onClose,
|
|
36
|
-
onAgentChange,
|
|
37
|
-
availableAgents = [],
|
|
38
|
-
}: LogViewerPanelProps) {
|
|
39
|
-
const colors = getAgentColor(agent.name);
|
|
40
|
-
const [isInterrupting, setIsInterrupting] = useState(false);
|
|
41
|
-
|
|
42
|
-
// Handle interrupt button click
|
|
43
|
-
const handleInterrupt = useCallback(async () => {
|
|
44
|
-
if (isInterrupting) return;
|
|
45
|
-
|
|
46
|
-
setIsInterrupting(true);
|
|
47
|
-
try {
|
|
48
|
-
const result = await api.interruptAgent(agent.name);
|
|
49
|
-
if (!result.success) {
|
|
50
|
-
console.error('Failed to interrupt agent:', result.error);
|
|
51
|
-
}
|
|
52
|
-
} catch (err) {
|
|
53
|
-
console.error('Error interrupting agent:', err);
|
|
54
|
-
} finally {
|
|
55
|
-
// Brief delay to show the button was pressed
|
|
56
|
-
setTimeout(() => setIsInterrupting(false), 500);
|
|
57
|
-
}
|
|
58
|
-
}, [agent.name, isInterrupting]);
|
|
59
|
-
|
|
60
|
-
// Close on Escape
|
|
61
|
-
useEffect(() => {
|
|
62
|
-
const handleKeyDown = (e: KeyboardEvent) => {
|
|
63
|
-
if (e.key === 'Escape' && isOpen) {
|
|
64
|
-
onClose();
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
window.addEventListener('keydown', handleKeyDown);
|
|
69
|
-
return () => window.removeEventListener('keydown', handleKeyDown);
|
|
70
|
-
}, [isOpen, onClose]);
|
|
71
|
-
|
|
72
|
-
// Prevent body scroll when panel is open (fix mobile scroll capture)
|
|
73
|
-
useEffect(() => {
|
|
74
|
-
if (!isOpen) return;
|
|
75
|
-
|
|
76
|
-
const previousOverflow = document.body.style.overflow;
|
|
77
|
-
const previousOverscroll = document.body.style.overscrollBehavior;
|
|
78
|
-
|
|
79
|
-
document.body.style.overflow = 'hidden';
|
|
80
|
-
document.body.style.overscrollBehavior = 'none';
|
|
81
|
-
|
|
82
|
-
return () => {
|
|
83
|
-
document.body.style.overflow = previousOverflow;
|
|
84
|
-
document.body.style.overscrollBehavior = previousOverscroll;
|
|
85
|
-
};
|
|
86
|
-
}, [isOpen]);
|
|
87
|
-
|
|
88
|
-
if (!isOpen) return null;
|
|
89
|
-
|
|
90
|
-
const getPanelStyles = (): React.CSSProperties => {
|
|
91
|
-
const base: React.CSSProperties = {
|
|
92
|
-
position: 'fixed',
|
|
93
|
-
zIndex: 1100,
|
|
94
|
-
background: 'linear-gradient(180deg, #0d0f14 0%, #0a0c10 100%)',
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
switch (position) {
|
|
98
|
-
case 'right':
|
|
99
|
-
return {
|
|
100
|
-
...base,
|
|
101
|
-
top: 0,
|
|
102
|
-
right: 0,
|
|
103
|
-
bottom: 0,
|
|
104
|
-
width: '600px',
|
|
105
|
-
maxWidth: '100vw',
|
|
106
|
-
borderLeft: '1px solid #21262d',
|
|
107
|
-
boxShadow: '-20px 0 60px rgba(0, 0, 0, 0.5)',
|
|
108
|
-
};
|
|
109
|
-
case 'bottom':
|
|
110
|
-
return {
|
|
111
|
-
...base,
|
|
112
|
-
left: 0,
|
|
113
|
-
right: 0,
|
|
114
|
-
bottom: 0,
|
|
115
|
-
height: '400px',
|
|
116
|
-
maxHeight: '60vh',
|
|
117
|
-
borderTop: '1px solid #21262d',
|
|
118
|
-
boxShadow: '0 -20px 60px rgba(0, 0, 0, 0.5)',
|
|
119
|
-
};
|
|
120
|
-
case 'fullscreen':
|
|
121
|
-
return {
|
|
122
|
-
...base,
|
|
123
|
-
inset: 0,
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
const getAnimationClass = () => {
|
|
129
|
-
switch (position) {
|
|
130
|
-
case 'right':
|
|
131
|
-
return 'animate-slide-in-right';
|
|
132
|
-
case 'bottom':
|
|
133
|
-
return 'animate-slide-in-bottom';
|
|
134
|
-
case 'fullscreen':
|
|
135
|
-
return 'animate-fade-in';
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
return (
|
|
140
|
-
<>
|
|
141
|
-
{/* Backdrop */}
|
|
142
|
-
<div
|
|
143
|
-
className="fixed inset-0 bg-black/60 z-[1099] animate-fade-in"
|
|
144
|
-
onClick={onClose}
|
|
145
|
-
/>
|
|
146
|
-
|
|
147
|
-
{/* Panel */}
|
|
148
|
-
<div
|
|
149
|
-
className={`flex flex-col ${getAnimationClass()}`}
|
|
150
|
-
style={getPanelStyles()}
|
|
151
|
-
>
|
|
152
|
-
{/* Header with agent info - two row layout */}
|
|
153
|
-
<div
|
|
154
|
-
className="flex flex-col gap-3 border-b border-[#21262d] px-4 py-3 sm:px-5 sm:py-4"
|
|
155
|
-
style={{
|
|
156
|
-
background: 'linear-gradient(180deg, #161b22 0%, #0d1117 100%)',
|
|
157
|
-
}}
|
|
158
|
-
>
|
|
159
|
-
{/* Row 1: Avatar, Agent Name, Status */}
|
|
160
|
-
<div className="flex items-center gap-3">
|
|
161
|
-
{/* Agent avatar with shine effect */}
|
|
162
|
-
<div
|
|
163
|
-
className="relative shrink-0 rounded-xl flex items-center justify-center font-bold overflow-hidden w-9 h-9 text-sm sm:w-11 sm:h-11"
|
|
164
|
-
style={{
|
|
165
|
-
backgroundColor: colors.primary,
|
|
166
|
-
color: colors.text,
|
|
167
|
-
boxShadow: `0 0 20px ${colors.primary}50, inset 0 1px 0 rgba(255,255,255,0.2)`,
|
|
168
|
-
}}
|
|
169
|
-
>
|
|
170
|
-
{/* Shine overlay */}
|
|
171
|
-
<div
|
|
172
|
-
className="absolute inset-0 opacity-30"
|
|
173
|
-
style={{
|
|
174
|
-
background: 'linear-gradient(135deg, rgba(255,255,255,0.35) 0%, transparent 50%)',
|
|
175
|
-
}}
|
|
176
|
-
/>
|
|
177
|
-
<span className="relative z-10">{getAgentInitials(agent.name)}</span>
|
|
178
|
-
</div>
|
|
179
|
-
|
|
180
|
-
{/* Agent name and status */}
|
|
181
|
-
<div className="flex flex-col min-w-0 flex-1">
|
|
182
|
-
<div className="flex items-center gap-2.5 flex-wrap">
|
|
183
|
-
<h2
|
|
184
|
-
className="text-base sm:text-lg font-semibold m-0"
|
|
185
|
-
style={{ color: colors.primary }}
|
|
186
|
-
title={agent.name}
|
|
187
|
-
>
|
|
188
|
-
{agent.name}
|
|
189
|
-
</h2>
|
|
190
|
-
<span
|
|
191
|
-
className={`px-2 py-0.5 rounded-md text-[10px] uppercase tracking-wider font-medium shrink-0 ${
|
|
192
|
-
agent.status === 'online'
|
|
193
|
-
? 'bg-[#3fb950]/15 text-[#3fb950]'
|
|
194
|
-
: agent.status === 'busy'
|
|
195
|
-
? 'bg-[#d29922]/15 text-[#d29922]'
|
|
196
|
-
: 'bg-[#484f58]/15 text-[#484f58]'
|
|
197
|
-
}`}
|
|
198
|
-
style={{
|
|
199
|
-
boxShadow: agent.status === 'online' ? '0 0 8px rgba(63,185,80,0.2)' : 'none',
|
|
200
|
-
}}
|
|
201
|
-
>
|
|
202
|
-
{agent.status}
|
|
203
|
-
</span>
|
|
204
|
-
</div>
|
|
205
|
-
{agent.currentTask && (
|
|
206
|
-
<span
|
|
207
|
-
className="text-xs sm:text-sm text-[#8b949e] truncate mt-0.5"
|
|
208
|
-
title={agent.currentTask}
|
|
209
|
-
>
|
|
210
|
-
{agent.currentTask}
|
|
211
|
-
</span>
|
|
212
|
-
)}
|
|
213
|
-
</div>
|
|
214
|
-
</div>
|
|
215
|
-
|
|
216
|
-
{/* Row 2: All control buttons */}
|
|
217
|
-
<div className="flex items-center gap-2 flex-wrap">
|
|
218
|
-
{/* Agent switcher dropdown */}
|
|
219
|
-
{availableAgents.length > 1 && onAgentChange && (
|
|
220
|
-
<AgentSwitcher
|
|
221
|
-
agents={availableAgents}
|
|
222
|
-
currentAgent={agent}
|
|
223
|
-
onSelect={onAgentChange}
|
|
224
|
-
/>
|
|
225
|
-
)}
|
|
226
|
-
|
|
227
|
-
{/* Position toggle buttons */}
|
|
228
|
-
<div className="flex items-center gap-1 bg-[#21262d]/80 rounded-lg p-1 border border-[#30363d]/50">
|
|
229
|
-
<button
|
|
230
|
-
className={`p-1.5 rounded-md transition-all duration-200 ${
|
|
231
|
-
position === 'right'
|
|
232
|
-
? 'bg-accent-cyan/15 text-accent-cyan shadow-[0_0_8px_rgba(0,217,255,0.15)]'
|
|
233
|
-
: 'text-[#8b949e] hover:text-[#c9d1d9] hover:bg-[#30363d]'
|
|
234
|
-
}`}
|
|
235
|
-
title="Sidebar view"
|
|
236
|
-
>
|
|
237
|
-
<SidebarIcon />
|
|
238
|
-
</button>
|
|
239
|
-
<button
|
|
240
|
-
className={`p-1.5 rounded-md transition-all duration-200 ${
|
|
241
|
-
position === 'bottom'
|
|
242
|
-
? 'bg-accent-cyan/15 text-accent-cyan shadow-[0_0_8px_rgba(0,217,255,0.15)]'
|
|
243
|
-
: 'text-[#8b949e] hover:text-[#c9d1d9] hover:bg-[#30363d]'
|
|
244
|
-
}`}
|
|
245
|
-
title="Bottom panel"
|
|
246
|
-
>
|
|
247
|
-
<BottomPanelIcon />
|
|
248
|
-
</button>
|
|
249
|
-
<button
|
|
250
|
-
className={`p-1.5 rounded-md transition-all duration-200 ${
|
|
251
|
-
position === 'fullscreen'
|
|
252
|
-
? 'bg-accent-cyan/15 text-accent-cyan shadow-[0_0_8px_rgba(0,217,255,0.15)]'
|
|
253
|
-
: 'text-[#8b949e] hover:text-[#c9d1d9] hover:bg-[#30363d]'
|
|
254
|
-
}`}
|
|
255
|
-
title="Fullscreen"
|
|
256
|
-
>
|
|
257
|
-
<FullscreenIcon />
|
|
258
|
-
</button>
|
|
259
|
-
</div>
|
|
260
|
-
|
|
261
|
-
{/* Spacer to push interrupt and close to the right */}
|
|
262
|
-
<div className="flex-1" />
|
|
263
|
-
|
|
264
|
-
{/* Interrupt button - send ESC to break agent out of stuck loops */}
|
|
265
|
-
<button
|
|
266
|
-
className={`p-2 rounded-lg transition-all duration-200 ${
|
|
267
|
-
isInterrupting
|
|
268
|
-
? 'bg-[#d29922]/20 text-[#d29922] animate-pulse'
|
|
269
|
-
: 'text-[#8b949e] hover:text-[#d29922] hover:bg-[#d29922]/10 hover:shadow-[0_0_8px_rgba(210,153,34,0.2)]'
|
|
270
|
-
}`}
|
|
271
|
-
onClick={handleInterrupt}
|
|
272
|
-
disabled={isInterrupting}
|
|
273
|
-
title="Send ESC to agent - interrupt current operation"
|
|
274
|
-
>
|
|
275
|
-
<InterruptIcon />
|
|
276
|
-
</button>
|
|
277
|
-
|
|
278
|
-
{/* Close button */}
|
|
279
|
-
<button
|
|
280
|
-
className="p-2 rounded-lg text-[#8b949e] hover:text-[#f85149] hover:bg-[#f85149]/10 transition-all duration-200 hover:shadow-[0_0_8px_rgba(248,81,73,0.2)]"
|
|
281
|
-
onClick={onClose}
|
|
282
|
-
>
|
|
283
|
-
<CloseIcon />
|
|
284
|
-
</button>
|
|
285
|
-
</div>
|
|
286
|
-
</div>
|
|
287
|
-
|
|
288
|
-
{/* Log viewer */}
|
|
289
|
-
<div className="flex-1 min-h-0 overflow-hidden">
|
|
290
|
-
<LogViewer
|
|
291
|
-
agentName={agent.name}
|
|
292
|
-
mode="panel"
|
|
293
|
-
showHeader={false}
|
|
294
|
-
maxHeight="100%"
|
|
295
|
-
className="h-full rounded-none border-none"
|
|
296
|
-
/>
|
|
297
|
-
</div>
|
|
298
|
-
</div>
|
|
299
|
-
|
|
300
|
-
{/* Custom keyframes for animations */}
|
|
301
|
-
<style>{`
|
|
302
|
-
@keyframes slideInRight {
|
|
303
|
-
from {
|
|
304
|
-
transform: translateX(100%);
|
|
305
|
-
opacity: 0;
|
|
306
|
-
}
|
|
307
|
-
to {
|
|
308
|
-
transform: translateX(0);
|
|
309
|
-
opacity: 1;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
@keyframes slideInBottom {
|
|
314
|
-
from {
|
|
315
|
-
transform: translateY(100%);
|
|
316
|
-
opacity: 0;
|
|
317
|
-
}
|
|
318
|
-
to {
|
|
319
|
-
transform: translateY(0);
|
|
320
|
-
opacity: 1;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.animate-slide-in-right {
|
|
325
|
-
animation: slideInRight 0.3s cubic-bezier(0.32, 0.72, 0, 1);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.animate-slide-in-bottom {
|
|
329
|
-
animation: slideInBottom 0.3s cubic-bezier(0.32, 0.72, 0, 1);
|
|
330
|
-
}
|
|
331
|
-
`}</style>
|
|
332
|
-
</>
|
|
333
|
-
);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
// Agent switcher dropdown
|
|
337
|
-
interface AgentSwitcherProps {
|
|
338
|
-
agents: Agent[];
|
|
339
|
-
currentAgent: Agent;
|
|
340
|
-
onSelect: (agent: Agent) => void;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
function AgentSwitcher({ agents, currentAgent, onSelect }: AgentSwitcherProps) {
|
|
344
|
-
const [isOpen, setIsOpen] = React.useState(false);
|
|
345
|
-
const dropdownRef = React.useRef<HTMLDivElement>(null);
|
|
346
|
-
|
|
347
|
-
// Close dropdown when clicking outside
|
|
348
|
-
useEffect(() => {
|
|
349
|
-
const handleClickOutside = (e: MouseEvent) => {
|
|
350
|
-
if (dropdownRef.current && !dropdownRef.current.contains(e.target as Node)) {
|
|
351
|
-
setIsOpen(false);
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
document.addEventListener('mousedown', handleClickOutside);
|
|
356
|
-
return () => document.removeEventListener('mousedown', handleClickOutside);
|
|
357
|
-
}, []);
|
|
358
|
-
|
|
359
|
-
return (
|
|
360
|
-
<div className="relative" ref={dropdownRef}>
|
|
361
|
-
<button
|
|
362
|
-
className="flex items-center gap-2 px-3 py-1.5 bg-[#21262d] hover:bg-[#30363d] rounded-lg text-sm text-[#c9d1d9] transition-colors"
|
|
363
|
-
onClick={() => setIsOpen(!isOpen)}
|
|
364
|
-
>
|
|
365
|
-
<span>Switch agent</span>
|
|
366
|
-
<ChevronDownIcon />
|
|
367
|
-
</button>
|
|
368
|
-
|
|
369
|
-
{isOpen && (
|
|
370
|
-
<div className="absolute right-0 top-full mt-2 w-64 bg-[#161b22] border border-[#30363d] rounded-lg shadow-xl overflow-hidden z-10">
|
|
371
|
-
<div className="max-h-64 overflow-y-auto">
|
|
372
|
-
{agents.map((agent) => {
|
|
373
|
-
const colors = getAgentColor(agent.name);
|
|
374
|
-
const isCurrent = agent.name === currentAgent.name;
|
|
375
|
-
|
|
376
|
-
return (
|
|
377
|
-
<button
|
|
378
|
-
key={agent.name}
|
|
379
|
-
className={`w-full flex items-center gap-3 px-3 py-2 text-left transition-colors ${
|
|
380
|
-
isCurrent
|
|
381
|
-
? 'bg-[#238636]/20'
|
|
382
|
-
: 'hover:bg-[#21262d]'
|
|
383
|
-
}`}
|
|
384
|
-
onClick={() => {
|
|
385
|
-
onSelect(agent);
|
|
386
|
-
setIsOpen(false);
|
|
387
|
-
}}
|
|
388
|
-
>
|
|
389
|
-
<div
|
|
390
|
-
className="w-8 h-8 rounded flex items-center justify-center text-xs font-semibold shrink-0"
|
|
391
|
-
style={{
|
|
392
|
-
backgroundColor: colors.primary,
|
|
393
|
-
color: colors.text,
|
|
394
|
-
}}
|
|
395
|
-
>
|
|
396
|
-
{getAgentInitials(agent.name)}
|
|
397
|
-
</div>
|
|
398
|
-
<div className="flex-1 min-w-0">
|
|
399
|
-
<div className="text-sm text-[#c9d1d9] truncate">
|
|
400
|
-
{agent.name}
|
|
401
|
-
</div>
|
|
402
|
-
<div className="text-xs text-[#8b949e]">{agent.status}</div>
|
|
403
|
-
</div>
|
|
404
|
-
{isCurrent && (
|
|
405
|
-
<CheckIcon />
|
|
406
|
-
)}
|
|
407
|
-
</button>
|
|
408
|
-
);
|
|
409
|
-
})}
|
|
410
|
-
</div>
|
|
411
|
-
</div>
|
|
412
|
-
)}
|
|
413
|
-
</div>
|
|
414
|
-
);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
// Icons
|
|
418
|
-
function InterruptIcon() {
|
|
419
|
-
return (
|
|
420
|
-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
421
|
-
{/* ESC key icon - represents sending escape sequence */}
|
|
422
|
-
<rect x="3" y="5" width="18" height="14" rx="2" />
|
|
423
|
-
<text x="12" y="15" textAnchor="middle" fill="currentColor" stroke="none" fontSize="8" fontWeight="600" fontFamily="system-ui">ESC</text>
|
|
424
|
-
</svg>
|
|
425
|
-
);
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
function CloseIcon() {
|
|
429
|
-
return (
|
|
430
|
-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
431
|
-
<line x1="18" y1="6" x2="6" y2="18" />
|
|
432
|
-
<line x1="6" y1="6" x2="18" y2="18" />
|
|
433
|
-
</svg>
|
|
434
|
-
);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
function SidebarIcon() {
|
|
438
|
-
return (
|
|
439
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
440
|
-
<rect x="3" y="3" width="18" height="18" rx="2" />
|
|
441
|
-
<line x1="15" y1="3" x2="15" y2="21" />
|
|
442
|
-
</svg>
|
|
443
|
-
);
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
function BottomPanelIcon() {
|
|
447
|
-
return (
|
|
448
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
449
|
-
<rect x="3" y="3" width="18" height="18" rx="2" />
|
|
450
|
-
<line x1="3" y1="15" x2="21" y2="15" />
|
|
451
|
-
</svg>
|
|
452
|
-
);
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
function FullscreenIcon() {
|
|
456
|
-
return (
|
|
457
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
458
|
-
<polyline points="15 3 21 3 21 9" />
|
|
459
|
-
<polyline points="9 21 3 21 3 15" />
|
|
460
|
-
<line x1="21" y1="3" x2="14" y2="10" />
|
|
461
|
-
<line x1="3" y1="21" x2="10" y2="14" />
|
|
462
|
-
</svg>
|
|
463
|
-
);
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
function ChevronDownIcon() {
|
|
467
|
-
return (
|
|
468
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
469
|
-
<polyline points="6 9 12 15 18 9" />
|
|
470
|
-
</svg>
|
|
471
|
-
);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
function CheckIcon() {
|
|
475
|
-
return (
|
|
476
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#3fb950" strokeWidth="2">
|
|
477
|
-
<polyline points="20 6 9 17 4 12" />
|
|
478
|
-
</svg>
|
|
479
|
-
);
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
export default LogViewerPanel;
|