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,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MessageSenderName Component
|
|
3
|
-
*
|
|
4
|
-
* Clickable sender name for chat messages.
|
|
5
|
-
* Opens agent profile panel for agents, user profile panel for humans.
|
|
6
|
-
* Maintains existing color styling while adding hover feedback.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import React, { useCallback } from 'react';
|
|
10
|
-
import type { Agent } from '../types';
|
|
11
|
-
import type { UserPresence } from './hooks/usePresence';
|
|
12
|
-
|
|
13
|
-
export interface MessageSenderNameProps {
|
|
14
|
-
/** Display name to show */
|
|
15
|
-
displayName: string;
|
|
16
|
-
/** Color for the name text */
|
|
17
|
-
color: string;
|
|
18
|
-
/** Whether this sender is the current user */
|
|
19
|
-
isCurrentUser?: boolean;
|
|
20
|
-
/** Agent object if sender is an agent */
|
|
21
|
-
agent?: Agent;
|
|
22
|
-
/** User presence object if sender is a human user */
|
|
23
|
-
userPresence?: UserPresence;
|
|
24
|
-
/** Callback when an agent name is clicked */
|
|
25
|
-
onAgentClick?: (agent: Agent) => void;
|
|
26
|
-
/** Callback when a human user name is clicked */
|
|
27
|
-
onUserClick?: (user: UserPresence) => void;
|
|
28
|
-
/** Additional CSS classes */
|
|
29
|
-
className?: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Clickable sender name component for chat messages.
|
|
34
|
-
* Provides visual feedback on hover and opens the appropriate profile panel on click.
|
|
35
|
-
*/
|
|
36
|
-
export function MessageSenderName({
|
|
37
|
-
displayName,
|
|
38
|
-
color,
|
|
39
|
-
isCurrentUser = false,
|
|
40
|
-
agent,
|
|
41
|
-
userPresence,
|
|
42
|
-
onAgentClick,
|
|
43
|
-
onUserClick,
|
|
44
|
-
className = '',
|
|
45
|
-
}: MessageSenderNameProps) {
|
|
46
|
-
const handleClick = useCallback(() => {
|
|
47
|
-
if (agent && onAgentClick) {
|
|
48
|
-
onAgentClick(agent);
|
|
49
|
-
} else if (userPresence && onUserClick) {
|
|
50
|
-
onUserClick(userPresence);
|
|
51
|
-
}
|
|
52
|
-
}, [agent, userPresence, onAgentClick, onUserClick]);
|
|
53
|
-
|
|
54
|
-
// Determine if the name should be clickable
|
|
55
|
-
const isClickable = (agent && onAgentClick) || (userPresence && onUserClick);
|
|
56
|
-
|
|
57
|
-
// If not clickable, render as plain text
|
|
58
|
-
if (!isClickable) {
|
|
59
|
-
return (
|
|
60
|
-
<span
|
|
61
|
-
className={`font-display font-semibold text-sm ${className}`}
|
|
62
|
-
style={{ color }}
|
|
63
|
-
>
|
|
64
|
-
{displayName}
|
|
65
|
-
</span>
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Render as interactive button
|
|
70
|
-
return (
|
|
71
|
-
<button
|
|
72
|
-
type="button"
|
|
73
|
-
onClick={handleClick}
|
|
74
|
-
className={`
|
|
75
|
-
font-display font-semibold text-sm
|
|
76
|
-
bg-transparent border-none p-0 m-0
|
|
77
|
-
cursor-pointer
|
|
78
|
-
transition-all duration-150
|
|
79
|
-
hover:underline hover:decoration-current hover:decoration-1 hover:underline-offset-2
|
|
80
|
-
focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-accent-cyan/50 focus:rounded-sm
|
|
81
|
-
${className}
|
|
82
|
-
`}
|
|
83
|
-
style={{ color }}
|
|
84
|
-
title={`View ${agent ? 'agent' : 'user'} profile: ${displayName}`}
|
|
85
|
-
>
|
|
86
|
-
{displayName}
|
|
87
|
-
</button>
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export default MessageSenderName;
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MessageStatusIndicator Component
|
|
3
|
-
*
|
|
4
|
-
* Shows the delivery status of a message:
|
|
5
|
-
* - Sending/Unread: Animated clock/pending icon
|
|
6
|
-
* - Acked/Read: Checkmark icon (success)
|
|
7
|
-
* - Failed: Exclamation icon (error - NACK or timeout)
|
|
8
|
-
*
|
|
9
|
-
* Used to indicate when a message was received by an agent
|
|
10
|
-
* before they start responding (fills the gap before ThinkingIndicator).
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import type { MessageStatus } from '../types';
|
|
15
|
-
|
|
16
|
-
export interface MessageStatusIndicatorProps {
|
|
17
|
-
/** Message delivery status */
|
|
18
|
-
status?: MessageStatus;
|
|
19
|
-
/** Size variant */
|
|
20
|
-
size?: 'small' | 'medium';
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export function MessageStatusIndicator({
|
|
24
|
-
status,
|
|
25
|
-
size = 'small',
|
|
26
|
-
}: MessageStatusIndicatorProps) {
|
|
27
|
-
// Don't show anything if no status
|
|
28
|
-
if (!status) return null;
|
|
29
|
-
|
|
30
|
-
const sizeClasses = {
|
|
31
|
-
small: 'w-3.5 h-3.5',
|
|
32
|
-
medium: 'w-4 h-4',
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const sizeClass = sizeClasses[size];
|
|
36
|
-
|
|
37
|
-
// Sending/Unread - show pending indicator
|
|
38
|
-
if (status === 'sending' || status === 'unread') {
|
|
39
|
-
return (
|
|
40
|
-
<span
|
|
41
|
-
className={`inline-flex items-center justify-center ${sizeClass} text-text-muted`}
|
|
42
|
-
title="Sending..."
|
|
43
|
-
>
|
|
44
|
-
<SendingIcon className={sizeClass} />
|
|
45
|
-
</span>
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// Acked/Read - show checkmark
|
|
50
|
-
if (status === 'acked' || status === 'read') {
|
|
51
|
-
return (
|
|
52
|
-
<span
|
|
53
|
-
className={`inline-flex items-center justify-center ${sizeClass} text-success`}
|
|
54
|
-
title="Delivered"
|
|
55
|
-
>
|
|
56
|
-
<CheckIcon className={sizeClass} />
|
|
57
|
-
</span>
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// Failed - show error indicator
|
|
62
|
-
if (status === 'failed') {
|
|
63
|
-
return (
|
|
64
|
-
<span
|
|
65
|
-
className={`inline-flex items-center justify-center ${sizeClass} text-error`}
|
|
66
|
-
title="Delivery failed"
|
|
67
|
-
>
|
|
68
|
-
<FailedIcon className={sizeClass} />
|
|
69
|
-
</span>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function SendingIcon({ className }: { className?: string }) {
|
|
77
|
-
return (
|
|
78
|
-
<svg
|
|
79
|
-
className={`animate-pulse ${className}`}
|
|
80
|
-
viewBox="0 0 16 16"
|
|
81
|
-
fill="none"
|
|
82
|
-
stroke="currentColor"
|
|
83
|
-
strokeWidth="1.5"
|
|
84
|
-
>
|
|
85
|
-
{/* Clock/pending icon */}
|
|
86
|
-
<circle cx="8" cy="8" r="6" />
|
|
87
|
-
<path d="M8 5v3l2 1" strokeLinecap="round" strokeLinejoin="round" />
|
|
88
|
-
</svg>
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function CheckIcon({ className }: { className?: string }) {
|
|
93
|
-
return (
|
|
94
|
-
<svg
|
|
95
|
-
className={className}
|
|
96
|
-
viewBox="0 0 16 16"
|
|
97
|
-
fill="none"
|
|
98
|
-
stroke="currentColor"
|
|
99
|
-
strokeWidth="2"
|
|
100
|
-
>
|
|
101
|
-
{/* Single checkmark for delivered */}
|
|
102
|
-
<path d="M3 8l3 3 7-7" strokeLinecap="round" strokeLinejoin="round" />
|
|
103
|
-
</svg>
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function FailedIcon({ className }: { className?: string }) {
|
|
108
|
-
return (
|
|
109
|
-
<svg
|
|
110
|
-
className={className}
|
|
111
|
-
viewBox="0 0 16 16"
|
|
112
|
-
fill="none"
|
|
113
|
-
stroke="currentColor"
|
|
114
|
-
strokeWidth="2"
|
|
115
|
-
>
|
|
116
|
-
{/* Exclamation mark in circle for failed delivery */}
|
|
117
|
-
<circle cx="8" cy="8" r="6" />
|
|
118
|
-
<line x1="8" y1="5" x2="8" y2="8" strokeLinecap="round" />
|
|
119
|
-
<circle cx="8" cy="11" r="0.5" fill="currentColor" stroke="none" />
|
|
120
|
-
</svg>
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Double checkmark variant for when message has been read
|
|
126
|
-
* (not currently used, but available for future enhancement)
|
|
127
|
-
*/
|
|
128
|
-
export function DoubleCheckIcon({ className }: { className?: string }) {
|
|
129
|
-
return (
|
|
130
|
-
<svg
|
|
131
|
-
className={className}
|
|
132
|
-
viewBox="0 0 20 16"
|
|
133
|
-
fill="none"
|
|
134
|
-
stroke="currentColor"
|
|
135
|
-
strokeWidth="2"
|
|
136
|
-
>
|
|
137
|
-
{/* Double checkmark for read */}
|
|
138
|
-
<path d="M1 8l3 3 7-7" strokeLinecap="round" strokeLinejoin="round" />
|
|
139
|
-
<path d="M7 8l3 3 7-7" strokeLinecap="round" strokeLinejoin="round" />
|
|
140
|
-
</svg>
|
|
141
|
-
);
|
|
142
|
-
}
|
|
@@ -1,400 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NewConversationModal Component
|
|
3
|
-
*
|
|
4
|
-
* Modal for starting a new conversation with an agent.
|
|
5
|
-
* Allows selecting a target agent and composing an initial message.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React, { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
9
|
-
import type { Agent } from '../types';
|
|
10
|
-
import { getAgentColor, getAgentInitials } from '../lib/colors';
|
|
11
|
-
|
|
12
|
-
export interface NewConversationModalProps {
|
|
13
|
-
isOpen: boolean;
|
|
14
|
-
onClose: () => void;
|
|
15
|
-
onSend: (to: string, content: string) => Promise<boolean>;
|
|
16
|
-
agents: Agent[];
|
|
17
|
-
isSending?: boolean;
|
|
18
|
-
error?: string | null;
|
|
19
|
-
/** Optional: Pre-select an agent */
|
|
20
|
-
preselectedAgent?: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export function NewConversationModal({
|
|
24
|
-
isOpen,
|
|
25
|
-
onClose,
|
|
26
|
-
onSend,
|
|
27
|
-
agents,
|
|
28
|
-
isSending = false,
|
|
29
|
-
error,
|
|
30
|
-
preselectedAgent,
|
|
31
|
-
}: NewConversationModalProps) {
|
|
32
|
-
const [selectedAgent, setSelectedAgent] = useState<string>('');
|
|
33
|
-
const [message, setMessage] = useState('');
|
|
34
|
-
const [searchQuery, setSearchQuery] = useState('');
|
|
35
|
-
const [localError, setLocalError] = useState<string | null>(null);
|
|
36
|
-
const messageInputRef = useRef<HTMLTextAreaElement>(null);
|
|
37
|
-
const searchInputRef = useRef<HTMLInputElement>(null);
|
|
38
|
-
|
|
39
|
-
// Filter agents based on search query
|
|
40
|
-
const filteredAgents = useMemo(() => {
|
|
41
|
-
if (!searchQuery.trim()) return agents;
|
|
42
|
-
const query = searchQuery.toLowerCase();
|
|
43
|
-
return agents.filter(
|
|
44
|
-
(agent) =>
|
|
45
|
-
agent.name.toLowerCase().includes(query) ||
|
|
46
|
-
agent.role?.toLowerCase().includes(query) ||
|
|
47
|
-
agent.team?.toLowerCase().includes(query)
|
|
48
|
-
);
|
|
49
|
-
}, [agents, searchQuery]);
|
|
50
|
-
|
|
51
|
-
// Reset state when modal opens
|
|
52
|
-
useEffect(() => {
|
|
53
|
-
if (isOpen) {
|
|
54
|
-
setSelectedAgent(preselectedAgent || '');
|
|
55
|
-
setMessage('');
|
|
56
|
-
setSearchQuery('');
|
|
57
|
-
setLocalError(null);
|
|
58
|
-
setTimeout(() => {
|
|
59
|
-
if (preselectedAgent) {
|
|
60
|
-
messageInputRef.current?.focus();
|
|
61
|
-
} else {
|
|
62
|
-
searchInputRef.current?.focus();
|
|
63
|
-
}
|
|
64
|
-
}, 100);
|
|
65
|
-
}
|
|
66
|
-
}, [isOpen, preselectedAgent]);
|
|
67
|
-
|
|
68
|
-
const handleSubmit = async (e: React.FormEvent) => {
|
|
69
|
-
e.preventDefault();
|
|
70
|
-
|
|
71
|
-
if (!selectedAgent) {
|
|
72
|
-
setLocalError('Please select an agent');
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
if (!message.trim()) {
|
|
77
|
-
setLocalError('Please enter a message');
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
setLocalError(null);
|
|
82
|
-
const success = await onSend(selectedAgent, message.trim());
|
|
83
|
-
|
|
84
|
-
if (success) {
|
|
85
|
-
onClose();
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
const handleKeyDown = (e: React.KeyboardEvent) => {
|
|
90
|
-
if (e.key === 'Escape') {
|
|
91
|
-
e.preventDefault();
|
|
92
|
-
onClose();
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
const handleAgentSelect = useCallback((agentName: string) => {
|
|
97
|
-
setSelectedAgent(agentName);
|
|
98
|
-
setLocalError(null);
|
|
99
|
-
setTimeout(() => messageInputRef.current?.focus(), 50);
|
|
100
|
-
}, []);
|
|
101
|
-
|
|
102
|
-
if (!isOpen) return null;
|
|
103
|
-
|
|
104
|
-
const displayError = error || localError;
|
|
105
|
-
const selectedAgentData = agents.find((a) => a.name === selectedAgent);
|
|
106
|
-
const selectedColors = selectedAgentData ? getAgentColor(selectedAgentData.name) : null;
|
|
107
|
-
|
|
108
|
-
return (
|
|
109
|
-
<div
|
|
110
|
-
className="fixed inset-0 bg-black/50 flex items-center justify-center z-[1000] animate-fade-in"
|
|
111
|
-
onClick={onClose}
|
|
112
|
-
>
|
|
113
|
-
<div
|
|
114
|
-
className="bg-bg-primary border border-border rounded-xl w-[520px] max-w-[90vw] max-h-[85vh] overflow-hidden shadow-modal animate-slide-up flex flex-col"
|
|
115
|
-
onClick={(e) => e.stopPropagation()}
|
|
116
|
-
onKeyDown={handleKeyDown}
|
|
117
|
-
>
|
|
118
|
-
{/* Header */}
|
|
119
|
-
<div className="flex items-center justify-between p-5 border-b border-border shrink-0">
|
|
120
|
-
<div className="flex items-center gap-3">
|
|
121
|
-
<div className="w-9 h-9 rounded-lg bg-accent/10 flex items-center justify-center">
|
|
122
|
-
<MessageIcon />
|
|
123
|
-
</div>
|
|
124
|
-
<div>
|
|
125
|
-
<h2 className="m-0 text-lg font-semibold text-text-primary">New Conversation</h2>
|
|
126
|
-
<p className="m-0 text-xs text-text-muted">Start a direct message with an agent</p>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
<button
|
|
130
|
-
className="flex items-center justify-center w-8 h-8 bg-transparent border-none rounded-md text-text-muted cursor-pointer transition-all duration-150 hover:bg-bg-hover hover:text-text-primary"
|
|
131
|
-
onClick={onClose}
|
|
132
|
-
aria-label="Close"
|
|
133
|
-
>
|
|
134
|
-
<CloseIcon />
|
|
135
|
-
</button>
|
|
136
|
-
</div>
|
|
137
|
-
|
|
138
|
-
<form onSubmit={handleSubmit} className="flex flex-col flex-1 overflow-hidden">
|
|
139
|
-
{/* Agent Selection */}
|
|
140
|
-
<div className="p-5 border-b border-border">
|
|
141
|
-
<label className="block text-sm font-semibold text-text-primary mb-2">
|
|
142
|
-
To
|
|
143
|
-
</label>
|
|
144
|
-
|
|
145
|
-
{selectedAgent ? (
|
|
146
|
-
<div className="flex items-center gap-3 p-3 bg-bg-hover rounded-lg">
|
|
147
|
-
<div
|
|
148
|
-
className="shrink-0 w-10 h-10 rounded-lg flex items-center justify-center text-sm font-semibold"
|
|
149
|
-
style={{ backgroundColor: selectedColors?.primary, color: selectedColors?.text }}
|
|
150
|
-
>
|
|
151
|
-
{getAgentInitials(selectedAgent)}
|
|
152
|
-
</div>
|
|
153
|
-
<div className="flex-1 min-w-0">
|
|
154
|
-
<div className="font-semibold text-text-primary">{selectedAgent}</div>
|
|
155
|
-
{selectedAgentData?.role && (
|
|
156
|
-
<div className="text-xs text-text-muted truncate">{selectedAgentData.role}</div>
|
|
157
|
-
)}
|
|
158
|
-
</div>
|
|
159
|
-
<button
|
|
160
|
-
type="button"
|
|
161
|
-
className="flex items-center justify-center w-8 h-8 bg-bg-active border-none rounded-md text-text-muted cursor-pointer transition-all duration-150 hover:bg-bg-tertiary hover:text-text-primary"
|
|
162
|
-
onClick={() => {
|
|
163
|
-
setSelectedAgent('');
|
|
164
|
-
setTimeout(() => searchInputRef.current?.focus(), 50);
|
|
165
|
-
}}
|
|
166
|
-
aria-label="Change agent"
|
|
167
|
-
>
|
|
168
|
-
<ChangeIcon />
|
|
169
|
-
</button>
|
|
170
|
-
</div>
|
|
171
|
-
) : (
|
|
172
|
-
<>
|
|
173
|
-
{/* Search Input */}
|
|
174
|
-
<div className="relative mb-3">
|
|
175
|
-
<div className="absolute left-3 top-1/2 -translate-y-1/2 text-text-muted">
|
|
176
|
-
<SearchIcon />
|
|
177
|
-
</div>
|
|
178
|
-
<input
|
|
179
|
-
ref={searchInputRef}
|
|
180
|
-
type="text"
|
|
181
|
-
className="w-full py-2.5 pl-10 pr-3.5 border border-border rounded-md text-sm font-sans outline-none bg-transparent text-text-primary transition-colors duration-150 focus:border-accent placeholder:text-text-muted"
|
|
182
|
-
placeholder="Search agents..."
|
|
183
|
-
value={searchQuery}
|
|
184
|
-
onChange={(e) => setSearchQuery(e.target.value)}
|
|
185
|
-
/>
|
|
186
|
-
</div>
|
|
187
|
-
|
|
188
|
-
{/* Agent List */}
|
|
189
|
-
<div className="max-h-[200px] overflow-y-auto border border-border rounded-lg">
|
|
190
|
-
{filteredAgents.length === 0 ? (
|
|
191
|
-
<div className="p-4 text-center text-text-muted text-sm">
|
|
192
|
-
{searchQuery ? 'No agents found' : 'No agents available'}
|
|
193
|
-
</div>
|
|
194
|
-
) : (
|
|
195
|
-
<div className="divide-y divide-border">
|
|
196
|
-
{/* Broadcast option */}
|
|
197
|
-
<button
|
|
198
|
-
type="button"
|
|
199
|
-
className="w-full flex items-center gap-3 p-3 bg-transparent border-none cursor-pointer transition-colors duration-150 hover:bg-bg-hover text-left"
|
|
200
|
-
onClick={() => handleAgentSelect('*')}
|
|
201
|
-
>
|
|
202
|
-
<div className="shrink-0 w-9 h-9 rounded-lg bg-warning/20 flex items-center justify-center">
|
|
203
|
-
<BroadcastIcon />
|
|
204
|
-
</div>
|
|
205
|
-
<div className="flex-1 min-w-0">
|
|
206
|
-
<div className="font-semibold text-text-primary">Everyone</div>
|
|
207
|
-
<div className="text-xs text-text-muted">Broadcast to all agents</div>
|
|
208
|
-
</div>
|
|
209
|
-
</button>
|
|
210
|
-
|
|
211
|
-
{/* Agent options */}
|
|
212
|
-
{filteredAgents.map((agent) => {
|
|
213
|
-
const colors = getAgentColor(agent.name);
|
|
214
|
-
return (
|
|
215
|
-
<button
|
|
216
|
-
key={agent.name}
|
|
217
|
-
type="button"
|
|
218
|
-
className="w-full flex items-center gap-3 p-3 bg-transparent border-none cursor-pointer transition-colors duration-150 hover:bg-bg-hover text-left"
|
|
219
|
-
onClick={() => handleAgentSelect(agent.name)}
|
|
220
|
-
>
|
|
221
|
-
<div
|
|
222
|
-
className="shrink-0 w-9 h-9 rounded-lg flex items-center justify-center text-xs font-semibold"
|
|
223
|
-
style={{ backgroundColor: colors.primary, color: colors.text }}
|
|
224
|
-
>
|
|
225
|
-
{getAgentInitials(agent.name)}
|
|
226
|
-
</div>
|
|
227
|
-
<div className="flex-1 min-w-0">
|
|
228
|
-
<div className="flex items-center gap-2">
|
|
229
|
-
<span className="font-semibold text-text-primary">{agent.name}</span>
|
|
230
|
-
<span
|
|
231
|
-
className={`w-2 h-2 rounded-full ${
|
|
232
|
-
agent.status === 'online' ? 'bg-success' : 'bg-text-muted'
|
|
233
|
-
}`}
|
|
234
|
-
/>
|
|
235
|
-
</div>
|
|
236
|
-
{(agent.role || agent.team) && (
|
|
237
|
-
<div className="text-xs text-text-muted truncate">
|
|
238
|
-
{agent.role}
|
|
239
|
-
{agent.role && agent.team && ' - '}
|
|
240
|
-
{agent.team}
|
|
241
|
-
</div>
|
|
242
|
-
)}
|
|
243
|
-
</div>
|
|
244
|
-
</button>
|
|
245
|
-
);
|
|
246
|
-
})}
|
|
247
|
-
</div>
|
|
248
|
-
)}
|
|
249
|
-
</div>
|
|
250
|
-
</>
|
|
251
|
-
)}
|
|
252
|
-
</div>
|
|
253
|
-
|
|
254
|
-
{/* Message Input */}
|
|
255
|
-
<div className="p-5 flex-1 overflow-hidden flex flex-col">
|
|
256
|
-
<label className="block text-sm font-semibold text-text-primary mb-2" htmlFor="message">
|
|
257
|
-
Message
|
|
258
|
-
</label>
|
|
259
|
-
<textarea
|
|
260
|
-
ref={messageInputRef}
|
|
261
|
-
id="message"
|
|
262
|
-
className="flex-1 min-h-[120px] w-full py-3 px-3.5 border border-border rounded-md text-sm font-sans outline-none bg-transparent text-text-primary transition-colors duration-150 focus:border-accent resize-none placeholder:text-text-muted"
|
|
263
|
-
placeholder={
|
|
264
|
-
selectedAgent === '*'
|
|
265
|
-
? 'Write a message to all agents...'
|
|
266
|
-
: selectedAgent
|
|
267
|
-
? `Write a message to ${selectedAgent}...`
|
|
268
|
-
: 'Select an agent first...'
|
|
269
|
-
}
|
|
270
|
-
value={message}
|
|
271
|
-
onChange={(e) => {
|
|
272
|
-
setMessage(e.target.value);
|
|
273
|
-
setLocalError(null);
|
|
274
|
-
}}
|
|
275
|
-
disabled={isSending || !selectedAgent}
|
|
276
|
-
/>
|
|
277
|
-
</div>
|
|
278
|
-
|
|
279
|
-
{/* Error Display */}
|
|
280
|
-
{displayError && (
|
|
281
|
-
<div className="flex items-center gap-2 mx-5 mb-4 p-3 bg-error/10 border border-error/30 rounded-md text-error text-sm">
|
|
282
|
-
<ErrorIcon />
|
|
283
|
-
<span>{displayError}</span>
|
|
284
|
-
</div>
|
|
285
|
-
)}
|
|
286
|
-
|
|
287
|
-
{/* Actions */}
|
|
288
|
-
<div className="flex justify-end gap-2 p-5 pt-0 border-t border-border">
|
|
289
|
-
<button
|
|
290
|
-
type="button"
|
|
291
|
-
className="flex items-center gap-1.5 py-2.5 px-4 border-none rounded-md text-sm font-medium cursor-pointer font-sans transition-all duration-150 bg-bg-hover text-text-secondary hover:bg-bg-active hover:text-text-primary disabled:opacity-50 disabled:cursor-not-allowed"
|
|
292
|
-
onClick={onClose}
|
|
293
|
-
disabled={isSending}
|
|
294
|
-
>
|
|
295
|
-
Cancel
|
|
296
|
-
</button>
|
|
297
|
-
<button
|
|
298
|
-
type="submit"
|
|
299
|
-
className="flex items-center gap-1.5 py-2.5 px-4 border-none rounded-md text-sm font-medium cursor-pointer font-sans transition-all duration-150 bg-accent text-white hover:bg-accent-hover disabled:opacity-50 disabled:cursor-not-allowed"
|
|
300
|
-
disabled={isSending || !selectedAgent || !message.trim()}
|
|
301
|
-
>
|
|
302
|
-
{isSending ? (
|
|
303
|
-
<>
|
|
304
|
-
<Spinner />
|
|
305
|
-
Sending...
|
|
306
|
-
</>
|
|
307
|
-
) : (
|
|
308
|
-
<>
|
|
309
|
-
<SendIcon />
|
|
310
|
-
Send Message
|
|
311
|
-
</>
|
|
312
|
-
)}
|
|
313
|
-
</button>
|
|
314
|
-
</div>
|
|
315
|
-
</form>
|
|
316
|
-
</div>
|
|
317
|
-
</div>
|
|
318
|
-
);
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
function MessageIcon() {
|
|
322
|
-
return (
|
|
323
|
-
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" className="text-accent">
|
|
324
|
-
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" />
|
|
325
|
-
<line x1="9" y1="10" x2="15" y2="10" />
|
|
326
|
-
</svg>
|
|
327
|
-
);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
function CloseIcon() {
|
|
331
|
-
return (
|
|
332
|
-
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
333
|
-
<line x1="18" y1="6" x2="6" y2="18" />
|
|
334
|
-
<line x1="6" y1="6" x2="18" y2="18" />
|
|
335
|
-
</svg>
|
|
336
|
-
);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
function SearchIcon() {
|
|
340
|
-
return (
|
|
341
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
342
|
-
<circle cx="11" cy="11" r="8" />
|
|
343
|
-
<line x1="21" y1="21" x2="16.65" y2="16.65" />
|
|
344
|
-
</svg>
|
|
345
|
-
);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
function ChangeIcon() {
|
|
349
|
-
return (
|
|
350
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
351
|
-
<polyline points="1 4 1 10 7 10" />
|
|
352
|
-
<path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10" />
|
|
353
|
-
</svg>
|
|
354
|
-
);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
function BroadcastIcon() {
|
|
358
|
-
return (
|
|
359
|
-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" className="text-warning">
|
|
360
|
-
<circle cx="12" cy="12" r="2" />
|
|
361
|
-
<path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14" />
|
|
362
|
-
</svg>
|
|
363
|
-
);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
function SendIcon() {
|
|
367
|
-
return (
|
|
368
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
369
|
-
<line x1="22" y1="2" x2="11" y2="13" />
|
|
370
|
-
<polygon points="22 2 15 22 11 13 2 9 22 2" />
|
|
371
|
-
</svg>
|
|
372
|
-
);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
function ErrorIcon() {
|
|
376
|
-
return (
|
|
377
|
-
<svg className="shrink-0" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
378
|
-
<circle cx="12" cy="12" r="10" />
|
|
379
|
-
<line x1="12" y1="8" x2="12" y2="12" />
|
|
380
|
-
<line x1="12" y1="16" x2="12.01" y2="16" />
|
|
381
|
-
</svg>
|
|
382
|
-
);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
function Spinner() {
|
|
386
|
-
return (
|
|
387
|
-
<svg className="animate-spin" width="16" height="16" viewBox="0 0 24 24">
|
|
388
|
-
<circle
|
|
389
|
-
cx="12"
|
|
390
|
-
cy="12"
|
|
391
|
-
r="10"
|
|
392
|
-
stroke="currentColor"
|
|
393
|
-
strokeWidth="2"
|
|
394
|
-
fill="none"
|
|
395
|
-
strokeDasharray="32"
|
|
396
|
-
strokeLinecap="round"
|
|
397
|
-
/>
|
|
398
|
-
</svg>
|
|
399
|
-
);
|
|
400
|
-
}
|