agent-relay 2.0.22 → 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 +19 -1
- package/packages/daemon/package.json +12 -12
- package/packages/hooks/package.json +4 -4
- package/packages/mcp/package.json +2 -2
- package/packages/memory/package.json +2 -2
- package/packages/policy/package.json +2 -2
- package/packages/protocol/package.json +1 -1
- package/packages/resiliency/package.json +1 -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/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/91mkGYq3qbG8WHE6VytQ8/_buildManifest.js +0 -1
- package/dist/dashboard/out/_next/static/91mkGYq3qbG8WHE6VytQ8/_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/91mkGYq3qbG8WHE6VytQ8/_buildManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/91mkGYq3qbG8WHE6VytQ8/_ssgManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/T2rV14eEU5OweDeV29SvG/_buildManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/T2rV14eEU5OweDeV29SvG/_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/l8L2OscDSR2vsMIlWcC48/_buildManifest.js +0 -1
- package/packages/dashboard/ui-dist/_next/static/l8L2OscDSR2vsMIlWcC48/_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,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@agent-relay/dashboard-v2",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"dev": "next dev -p 3888",
|
|
7
|
-
"build": "next build",
|
|
8
|
-
"start": "next start -p 3888",
|
|
9
|
-
"lint": "next lint"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@nangohq/frontend": "^0.69.20",
|
|
13
|
-
"@tailwindcss/postcss": "^4.1.18",
|
|
14
|
-
"@xterm/addon-fit": "^0.11.0",
|
|
15
|
-
"@xterm/addon-search": "^0.16.0",
|
|
16
|
-
"@xterm/xterm": "^6.0.0",
|
|
17
|
-
"next": "^14.0.4",
|
|
18
|
-
"react-syntax-highlighter": "^16.1.0"
|
|
19
|
-
},
|
|
20
|
-
"devDependencies": {
|
|
21
|
-
"@testing-library/react": "^14.3.1",
|
|
22
|
-
"@types/node": "^20.10.5",
|
|
23
|
-
"@types/react": "18.3.27",
|
|
24
|
-
"@types/react-dom": "^18.2.18",
|
|
25
|
-
"@types/react-syntax-highlighter": "^15.5.13",
|
|
26
|
-
"autoprefixer": "^10.4.23",
|
|
27
|
-
"postcss": "^8.5.6",
|
|
28
|
-
"react": "^18.3.1",
|
|
29
|
-
"react-dom": "^18.3.1",
|
|
30
|
-
"tailwindcss": "^4.1.18",
|
|
31
|
-
"typescript": "^5.3.3"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ActivityFeed Component
|
|
3
|
-
*
|
|
4
|
-
* Displays a unified timeline of workspace events including:
|
|
5
|
-
* - Agent spawned/released
|
|
6
|
-
* - Agent online/offline
|
|
7
|
-
* - User joined/left
|
|
8
|
-
* - Broadcasts
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import React, { useMemo } from 'react';
|
|
12
|
-
import type { ActivityEvent, ActivityEventType } from '../types';
|
|
13
|
-
|
|
14
|
-
export interface ActivityFeedProps {
|
|
15
|
-
events: ActivityEvent[];
|
|
16
|
-
maxEvents?: number;
|
|
17
|
-
onEventClick?: (event: ActivityEvent) => void;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Get icon for activity event type
|
|
22
|
-
*/
|
|
23
|
-
function getEventIcon(type: ActivityEventType): string {
|
|
24
|
-
switch (type) {
|
|
25
|
-
case 'agent_spawned':
|
|
26
|
-
return '🚀';
|
|
27
|
-
case 'agent_released':
|
|
28
|
-
return '🛑';
|
|
29
|
-
case 'agent_online':
|
|
30
|
-
return '🟢';
|
|
31
|
-
case 'agent_offline':
|
|
32
|
-
return '⚫';
|
|
33
|
-
case 'user_joined':
|
|
34
|
-
return '👋';
|
|
35
|
-
case 'user_left':
|
|
36
|
-
return '👋';
|
|
37
|
-
case 'broadcast':
|
|
38
|
-
return '📢';
|
|
39
|
-
case 'error':
|
|
40
|
-
return '⚠️';
|
|
41
|
-
default:
|
|
42
|
-
return '📌';
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Get color class for activity event type
|
|
48
|
-
*/
|
|
49
|
-
function getEventColorClass(type: ActivityEventType): string {
|
|
50
|
-
switch (type) {
|
|
51
|
-
case 'agent_spawned':
|
|
52
|
-
return 'text-green-400';
|
|
53
|
-
case 'agent_released':
|
|
54
|
-
return 'text-red-400';
|
|
55
|
-
case 'agent_online':
|
|
56
|
-
return 'text-green-400';
|
|
57
|
-
case 'agent_offline':
|
|
58
|
-
return 'text-gray-400';
|
|
59
|
-
case 'user_joined':
|
|
60
|
-
return 'text-cyan-400';
|
|
61
|
-
case 'user_left':
|
|
62
|
-
return 'text-gray-400';
|
|
63
|
-
case 'broadcast':
|
|
64
|
-
return 'text-yellow-400';
|
|
65
|
-
case 'error':
|
|
66
|
-
return 'text-red-500';
|
|
67
|
-
default:
|
|
68
|
-
return 'text-text-muted';
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Format relative time (e.g., "2m ago", "1h ago")
|
|
74
|
-
*/
|
|
75
|
-
function formatRelativeTime(timestamp: string): string {
|
|
76
|
-
const now = new Date();
|
|
77
|
-
const then = new Date(timestamp);
|
|
78
|
-
const diffMs = now.getTime() - then.getTime();
|
|
79
|
-
const diffSec = Math.floor(diffMs / 1000);
|
|
80
|
-
const diffMin = Math.floor(diffSec / 60);
|
|
81
|
-
const diffHour = Math.floor(diffMin / 60);
|
|
82
|
-
const diffDay = Math.floor(diffHour / 24);
|
|
83
|
-
|
|
84
|
-
if (diffSec < 60) return 'just now';
|
|
85
|
-
if (diffMin < 60) return `${diffMin}m ago`;
|
|
86
|
-
if (diffHour < 24) return `${diffHour}h ago`;
|
|
87
|
-
if (diffDay < 7) return `${diffDay}d ago`;
|
|
88
|
-
return then.toLocaleDateString();
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Single activity event item
|
|
93
|
-
*/
|
|
94
|
-
function ActivityEventItem({
|
|
95
|
-
event,
|
|
96
|
-
onClick,
|
|
97
|
-
}: {
|
|
98
|
-
event: ActivityEvent;
|
|
99
|
-
onClick?: () => void;
|
|
100
|
-
}) {
|
|
101
|
-
const icon = getEventIcon(event.type);
|
|
102
|
-
const colorClass = getEventColorClass(event.type);
|
|
103
|
-
|
|
104
|
-
return (
|
|
105
|
-
<div
|
|
106
|
-
className={`flex items-start gap-3 p-3 rounded-lg hover:bg-bg-hover transition-colors ${onClick ? 'cursor-pointer' : ''}`}
|
|
107
|
-
onClick={onClick}
|
|
108
|
-
>
|
|
109
|
-
{/* Avatar or Icon */}
|
|
110
|
-
<div className="flex-shrink-0 w-8 h-8 flex items-center justify-center">
|
|
111
|
-
{event.actorAvatarUrl ? (
|
|
112
|
-
<img
|
|
113
|
-
src={event.actorAvatarUrl}
|
|
114
|
-
alt={event.actor}
|
|
115
|
-
className="w-8 h-8 rounded-full"
|
|
116
|
-
/>
|
|
117
|
-
) : (
|
|
118
|
-
<span className="text-lg">{icon}</span>
|
|
119
|
-
)}
|
|
120
|
-
</div>
|
|
121
|
-
|
|
122
|
-
{/* Content */}
|
|
123
|
-
<div className="flex-1 min-w-0">
|
|
124
|
-
<div className="flex items-center gap-2">
|
|
125
|
-
<span className={`font-medium ${colorClass}`}>{event.actor}</span>
|
|
126
|
-
<span className="text-text-muted text-sm">{event.title}</span>
|
|
127
|
-
</div>
|
|
128
|
-
{event.description && (
|
|
129
|
-
<p className="text-text-muted text-sm mt-1 line-clamp-2">
|
|
130
|
-
{event.description}
|
|
131
|
-
</p>
|
|
132
|
-
)}
|
|
133
|
-
{/* Metadata badges */}
|
|
134
|
-
{event.metadata && Object.keys(event.metadata).length > 0 && (() => {
|
|
135
|
-
const cli = event.metadata.cli;
|
|
136
|
-
const task = event.metadata.task;
|
|
137
|
-
return (
|
|
138
|
-
<div className="flex flex-wrap gap-1 mt-2">
|
|
139
|
-
{cli != null && (
|
|
140
|
-
<span className="px-2 py-0.5 bg-bg-secondary rounded text-xs text-text-muted">
|
|
141
|
-
{String(cli)}
|
|
142
|
-
</span>
|
|
143
|
-
)}
|
|
144
|
-
{task != null && (
|
|
145
|
-
<span className="px-2 py-0.5 bg-bg-secondary rounded text-xs text-text-muted truncate max-w-[200px]">
|
|
146
|
-
{String(task)}
|
|
147
|
-
</span>
|
|
148
|
-
)}
|
|
149
|
-
</div>
|
|
150
|
-
);
|
|
151
|
-
})()}
|
|
152
|
-
</div>
|
|
153
|
-
|
|
154
|
-
{/* Timestamp */}
|
|
155
|
-
<div className="flex-shrink-0 text-xs text-text-muted">
|
|
156
|
-
{formatRelativeTime(event.timestamp)}
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Empty state when no events
|
|
164
|
-
*/
|
|
165
|
-
function EmptyState() {
|
|
166
|
-
return (
|
|
167
|
-
<div className="flex flex-col items-center justify-center h-full text-center p-8">
|
|
168
|
-
<div className="text-4xl mb-4">📋</div>
|
|
169
|
-
<h3 className="text-lg font-medium text-text-primary mb-2">No activity yet</h3>
|
|
170
|
-
<p className="text-text-muted text-sm max-w-xs">
|
|
171
|
-
Activity will appear here as agents spawn, users join, and broadcasts are sent.
|
|
172
|
-
</p>
|
|
173
|
-
</div>
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Activity Feed - displays timeline of workspace events
|
|
179
|
-
*/
|
|
180
|
-
export function ActivityFeed({ events, maxEvents = 100, onEventClick }: ActivityFeedProps) {
|
|
181
|
-
// Sort events by timestamp (newest first) and limit
|
|
182
|
-
const sortedEvents = useMemo(() => {
|
|
183
|
-
return [...events]
|
|
184
|
-
.sort((a, b) => new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime())
|
|
185
|
-
.slice(0, maxEvents);
|
|
186
|
-
}, [events, maxEvents]);
|
|
187
|
-
|
|
188
|
-
if (sortedEvents.length === 0) {
|
|
189
|
-
return <EmptyState />;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
return (
|
|
193
|
-
<div className="flex flex-col h-full">
|
|
194
|
-
{/* Header */}
|
|
195
|
-
<div className="flex-shrink-0 px-4 py-3 border-b border-border-subtle">
|
|
196
|
-
<h2 className="text-lg font-semibold text-text-primary">Activity</h2>
|
|
197
|
-
<p className="text-sm text-text-muted">
|
|
198
|
-
{sortedEvents.length} event{sortedEvents.length !== 1 ? 's' : ''}
|
|
199
|
-
</p>
|
|
200
|
-
</div>
|
|
201
|
-
|
|
202
|
-
{/* Event List */}
|
|
203
|
-
<div className="flex-1 overflow-y-auto px-2 py-2">
|
|
204
|
-
<div className="space-y-1">
|
|
205
|
-
{sortedEvents.map((event) => (
|
|
206
|
-
<ActivityEventItem
|
|
207
|
-
key={event.id}
|
|
208
|
-
event={event}
|
|
209
|
-
onClick={onEventClick ? () => onEventClick(event) : undefined}
|
|
210
|
-
/>
|
|
211
|
-
))}
|
|
212
|
-
</div>
|
|
213
|
-
</div>
|
|
214
|
-
</div>
|
|
215
|
-
);
|
|
216
|
-
}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add Workspace Modal
|
|
3
|
-
*
|
|
4
|
-
* Modal dialog for adding a new workspace (repository) to the orchestrator.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import React, { useState, useEffect, useRef } from 'react';
|
|
8
|
-
|
|
9
|
-
export interface AddWorkspaceModalProps {
|
|
10
|
-
isOpen: boolean;
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
onAdd: (path: string, name?: string) => Promise<void>;
|
|
13
|
-
isAdding?: boolean;
|
|
14
|
-
error?: string | null;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function AddWorkspaceModal({
|
|
18
|
-
isOpen,
|
|
19
|
-
onClose,
|
|
20
|
-
onAdd,
|
|
21
|
-
isAdding = false,
|
|
22
|
-
error,
|
|
23
|
-
}: AddWorkspaceModalProps) {
|
|
24
|
-
const [path, setPath] = useState('');
|
|
25
|
-
const [name, setName] = useState('');
|
|
26
|
-
const [localError, setLocalError] = useState<string | null>(null);
|
|
27
|
-
const inputRef = useRef<HTMLInputElement>(null);
|
|
28
|
-
|
|
29
|
-
// Focus input when modal opens
|
|
30
|
-
useEffect(() => {
|
|
31
|
-
if (isOpen && inputRef.current) {
|
|
32
|
-
inputRef.current.focus();
|
|
33
|
-
}
|
|
34
|
-
}, [isOpen]);
|
|
35
|
-
|
|
36
|
-
// Reset form when modal closes
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
if (!isOpen) {
|
|
39
|
-
setPath('');
|
|
40
|
-
setName('');
|
|
41
|
-
setLocalError(null);
|
|
42
|
-
}
|
|
43
|
-
}, [isOpen]);
|
|
44
|
-
|
|
45
|
-
const handleSubmit = async (e: React.FormEvent) => {
|
|
46
|
-
e.preventDefault();
|
|
47
|
-
|
|
48
|
-
if (!path.trim()) {
|
|
49
|
-
setLocalError('Path is required');
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
try {
|
|
54
|
-
await onAdd(path.trim(), name.trim() || undefined);
|
|
55
|
-
onClose();
|
|
56
|
-
} catch (err) {
|
|
57
|
-
setLocalError(err instanceof Error ? err.message : 'Failed to add workspace');
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const handleKeyDown = (e: React.KeyboardEvent) => {
|
|
62
|
-
if (e.key === 'Escape') {
|
|
63
|
-
onClose();
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
if (!isOpen) return null;
|
|
68
|
-
|
|
69
|
-
const displayError = error || localError;
|
|
70
|
-
|
|
71
|
-
return (
|
|
72
|
-
<div
|
|
73
|
-
className="fixed inset-0 bg-black/60 flex items-center justify-center z-[9999] backdrop-blur-sm"
|
|
74
|
-
onClick={onClose}
|
|
75
|
-
onKeyDown={handleKeyDown}
|
|
76
|
-
>
|
|
77
|
-
<div
|
|
78
|
-
className="bg-[#1a1a2e] border border-[#3a3a4e] rounded-xl p-6 min-w-[450px] max-w-[90vw] shadow-[0_20px_60px_rgba(0,0,0,0.5)]"
|
|
79
|
-
onClick={(e) => e.stopPropagation()}
|
|
80
|
-
>
|
|
81
|
-
<div className="flex items-center justify-between mb-6">
|
|
82
|
-
<h2 className="m-0 text-lg font-semibold text-[#e8e8e8]">Add Workspace</h2>
|
|
83
|
-
<button
|
|
84
|
-
className="bg-transparent border-none text-[#666] cursor-pointer p-1 flex items-center justify-center rounded transition-all hover:bg-white/10 hover:text-[#e8e8e8]"
|
|
85
|
-
onClick={onClose}
|
|
86
|
-
>
|
|
87
|
-
<CloseIcon />
|
|
88
|
-
</button>
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
<form onSubmit={handleSubmit}>
|
|
92
|
-
<div className="mb-5">
|
|
93
|
-
<label htmlFor="workspace-path" className="block mb-2 text-[13px] font-medium text-[#e8e8e8]">
|
|
94
|
-
Repository Path
|
|
95
|
-
</label>
|
|
96
|
-
<input
|
|
97
|
-
ref={inputRef}
|
|
98
|
-
id="workspace-path"
|
|
99
|
-
type="text"
|
|
100
|
-
value={path}
|
|
101
|
-
onChange={(e) => {
|
|
102
|
-
setPath(e.target.value);
|
|
103
|
-
setLocalError(null);
|
|
104
|
-
}}
|
|
105
|
-
placeholder="/path/to/repository"
|
|
106
|
-
disabled={isAdding}
|
|
107
|
-
autoComplete="off"
|
|
108
|
-
className="w-full px-3 py-2.5 bg-[#2a2a3e] border border-[#3a3a4e] rounded-md text-[#e8e8e8] text-sm outline-none transition-colors box-border focus:border-[#00c896] placeholder:text-[#666] disabled:opacity-60 disabled:cursor-not-allowed"
|
|
109
|
-
/>
|
|
110
|
-
<p className="mt-1.5 text-xs text-[#666] leading-relaxed">
|
|
111
|
-
Enter the full path to your repository. Use ~ for home directory.
|
|
112
|
-
</p>
|
|
113
|
-
</div>
|
|
114
|
-
|
|
115
|
-
<div className="mb-5">
|
|
116
|
-
<label htmlFor="workspace-name" className="block mb-2 text-[13px] font-medium text-[#e8e8e8]">
|
|
117
|
-
Display Name (optional)
|
|
118
|
-
</label>
|
|
119
|
-
<input
|
|
120
|
-
id="workspace-name"
|
|
121
|
-
type="text"
|
|
122
|
-
value={name}
|
|
123
|
-
onChange={(e) => setName(e.target.value)}
|
|
124
|
-
placeholder="My Project"
|
|
125
|
-
disabled={isAdding}
|
|
126
|
-
autoComplete="off"
|
|
127
|
-
className="w-full px-3 py-2.5 bg-[#2a2a3e] border border-[#3a3a4e] rounded-md text-[#e8e8e8] text-sm outline-none transition-colors box-border focus:border-[#00c896] placeholder:text-[#666] disabled:opacity-60 disabled:cursor-not-allowed"
|
|
128
|
-
/>
|
|
129
|
-
<p className="mt-1.5 text-xs text-[#666] leading-relaxed">
|
|
130
|
-
A friendly name for this workspace. Defaults to the folder name.
|
|
131
|
-
</p>
|
|
132
|
-
</div>
|
|
133
|
-
|
|
134
|
-
{displayError && (
|
|
135
|
-
<div className="px-3 py-2.5 bg-red-500/10 border border-red-500/30 rounded-md text-red-500 text-[13px] mb-5">
|
|
136
|
-
{displayError}
|
|
137
|
-
</div>
|
|
138
|
-
)}
|
|
139
|
-
|
|
140
|
-
<div className="flex gap-3 justify-end mt-6">
|
|
141
|
-
<button
|
|
142
|
-
type="button"
|
|
143
|
-
className="px-5 py-2.5 rounded-md text-sm font-medium cursor-pointer transition-all bg-transparent border border-[#3a3a4e] text-[#e8e8e8] hover:bg-white/5 disabled:opacity-50 disabled:cursor-not-allowed"
|
|
144
|
-
onClick={onClose}
|
|
145
|
-
disabled={isAdding}
|
|
146
|
-
>
|
|
147
|
-
Cancel
|
|
148
|
-
</button>
|
|
149
|
-
<button
|
|
150
|
-
type="submit"
|
|
151
|
-
className="px-5 py-2.5 rounded-md text-sm font-medium cursor-pointer transition-all bg-[#00c896] border-none text-[#1a1a2e] hover:bg-[#00a87d] disabled:opacity-50 disabled:cursor-not-allowed"
|
|
152
|
-
disabled={isAdding || !path.trim()}
|
|
153
|
-
>
|
|
154
|
-
{isAdding ? 'Adding...' : 'Add Workspace'}
|
|
155
|
-
</button>
|
|
156
|
-
</div>
|
|
157
|
-
</form>
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
function CloseIcon() {
|
|
164
|
-
return (
|
|
165
|
-
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
|
166
|
-
<line x1="18" y1="6" x2="6" y2="18" />
|
|
167
|
-
<line x1="6" y1="6" x2="18" y2="18" />
|
|
168
|
-
</svg>
|
|
169
|
-
);
|
|
170
|
-
}
|