@burdenoff/microfe-botmanor 2026.1106.1 → 2026.1109.1
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/dist/botlit/BotlitRoutes.d.ts +2 -0
- package/dist/botlit/BotlitRoutes.js +40 -37
- package/dist/botlit/BotlitRoutes.js.map +1 -1
- package/dist/botlit/BotmanorRoot.d.ts +3 -0
- package/dist/botlit/BotmanorRoot.js +1 -2
- package/dist/botlit/BotmanorRoot.js.map +1 -1
- package/dist/botlit/BotmanorRootInner.d.ts +3 -0
- package/dist/botlit/BotmanorRootInner.js +9 -10
- package/dist/botlit/BotmanorRootInner.js.map +1 -1
- package/dist/botlit/components/AgentApprovalPanel.d.ts +20 -0
- package/dist/botlit/components/AgentApprovalPanel.js +49 -50
- package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
- package/dist/botlit/components/AiOperationsPanel.d.ts +14 -0
- package/dist/botlit/components/AiOperationsPanel.js +253 -0
- package/dist/botlit/components/AiOperationsPanel.js.map +1 -0
- package/dist/botlit/components/AssistantChannelPanel.d.ts +3 -0
- package/dist/botlit/components/AssistantChannelPanel.js +12 -13
- package/dist/botlit/components/AssistantChannelPanel.js.map +1 -1
- package/dist/botlit/components/AssistantRuntimeSetupPanel.d.ts +4 -0
- package/dist/botlit/components/AssistantRuntimeSetupPanel.js +14 -14
- package/dist/botlit/components/AssistantRuntimeSetupPanel.js.map +1 -1
- package/dist/botlit/components/AssistantWebsitePanel.d.ts +5 -0
- package/dist/botlit/components/AssistantWebsitePanel.js +15 -16
- package/dist/botlit/components/AssistantWebsitePanel.js.map +1 -1
- package/dist/botlit/components/Badge.d.ts +9 -0
- package/dist/botlit/components/Badge.js +1 -2
- package/dist/botlit/components/Badge.js.map +1 -1
- package/dist/botlit/components/Button.d.ts +10 -0
- package/dist/botlit/components/Button.js +1 -2
- package/dist/botlit/components/Button.js.map +1 -1
- package/dist/botlit/components/Card.d.ts +16 -0
- package/dist/botlit/components/Card.js +1 -2
- package/dist/botlit/components/Card.js.map +1 -1
- package/dist/botlit/components/ChannelSelectorSheet.d.ts +23 -0
- package/dist/botlit/components/ChannelSelectorSheet.js +1 -2
- package/dist/botlit/components/ChannelSelectorSheet.js.map +1 -1
- package/dist/botlit/components/EmptyState.d.ts +12 -0
- package/dist/botlit/components/EmptyState.js +1 -2
- package/dist/botlit/components/EmptyState.js.map +1 -1
- package/dist/botlit/components/ErrorState.d.ts +10 -0
- package/dist/botlit/components/ErrorState.js +5 -6
- package/dist/botlit/components/ErrorState.js.map +1 -1
- package/dist/botlit/components/Input.d.ts +27 -0
- package/dist/botlit/components/Input.js +2 -3
- package/dist/botlit/components/Input.js.map +1 -1
- package/dist/botlit/components/KnowledgeSourceImportPanel.d.ts +3 -0
- package/dist/botlit/components/KnowledgeSourceImportPanel.js +12 -13
- package/dist/botlit/components/KnowledgeSourceImportPanel.js.map +1 -1
- package/dist/botlit/components/ModelRegistrationPanel.d.ts +5 -0
- package/dist/botlit/components/ModelRegistrationPanel.js +1 -2
- package/dist/botlit/components/ModelRegistrationPanel.js.map +1 -1
- package/dist/botlit/components/PageLayout.d.ts +12 -0
- package/dist/botlit/components/PageLayout.js +1 -2
- package/dist/botlit/components/PageLayout.js.map +1 -1
- package/dist/botlit/components/QuotaExhaustedDialog.d.ts +9 -0
- package/dist/botlit/components/QuotaExhaustedDialog.js +1 -2
- package/dist/botlit/components/QuotaExhaustedDialog.js.map +1 -1
- package/dist/botlit/components/RetentionStatusPanel.d.ts +2 -0
- package/dist/botlit/components/RetentionStatusPanel.js +18 -19
- package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
- package/dist/botlit/components/RouteLoader.d.ts +23 -0
- package/dist/botlit/components/RouteLoader.js +1 -2
- package/dist/botlit/components/RouteLoader.js.map +1 -1
- package/dist/botlit/components/VersionHistoryPanel.d.ts +12 -0
- package/dist/botlit/components/VersionHistoryPanel.js +23 -24
- package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
- package/dist/botlit/components/WorkspaceRequired.d.ts +18 -0
- package/dist/botlit/components/WorkspaceRequired.js +1 -2
- package/dist/botlit/components/WorkspaceRequired.js.map +1 -1
- package/dist/botlit/components/index.d.ts +14 -0
- package/dist/botlit/hooks/index.d.ts +36 -0
- package/dist/botlit/hooks/index.js +15 -13
- package/dist/botlit/hooks/internal/mutationInput.d.ts +56 -0
- package/dist/botlit/hooks/internal/mutationInput.js +1 -2
- package/dist/botlit/hooks/internal/mutationInput.js.map +1 -1
- package/dist/botlit/hooks/internal/workspaceGateway.d.ts +54 -0
- package/dist/botlit/hooks/internal/workspaceGateway.js +17 -19
- package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
- package/dist/botlit/hooks/useA2A.d.ts +104 -0
- package/dist/botlit/hooks/useA2A.js +45 -45
- package/dist/botlit/hooks/useA2A.js.map +1 -1
- package/dist/botlit/hooks/useAgentApprovals.d.ts +62 -0
- package/dist/botlit/hooks/useAgentApprovals.js +38 -39
- package/dist/botlit/hooks/useAgentApprovals.js.map +1 -1
- package/dist/botlit/hooks/useAgents.d.ts +105 -0
- package/dist/botlit/hooks/useAgents.js +53 -54
- package/dist/botlit/hooks/useAgents.js.map +1 -1
- package/dist/botlit/hooks/useAiOperations.d.ts +95 -0
- package/dist/botlit/hooks/useAiOperations.js +154 -0
- package/dist/botlit/hooks/useAiOperations.js.map +1 -0
- package/dist/botlit/hooks/useAssistantChannels.d.ts +16 -0
- package/dist/botlit/hooks/useAssistantChannels.js +1 -2
- package/dist/botlit/hooks/useAssistantChannels.js.map +1 -1
- package/dist/botlit/hooks/useAssistantRuntimeSetup.d.ts +17 -0
- package/dist/botlit/hooks/useAssistantRuntimeSetup.js +1 -2
- package/dist/botlit/hooks/useAssistantRuntimeSetup.js.map +1 -1
- package/dist/botlit/hooks/useAssistantWebsites.d.ts +18 -0
- package/dist/botlit/hooks/useAssistantWebsites.js +1 -2
- package/dist/botlit/hooks/useAssistantWebsites.js.map +1 -1
- package/dist/botlit/hooks/useBotWorkflow.d.ts +22 -0
- package/dist/botlit/hooks/useBotWorkflow.js +1 -2
- package/dist/botlit/hooks/useBotWorkflow.js.map +1 -1
- package/dist/botlit/hooks/useBots.d.ts +68 -0
- package/dist/botlit/hooks/useBots.js +32 -33
- package/dist/botlit/hooks/useBots.js.map +1 -1
- package/dist/botlit/hooks/useBuckets.d.ts +57 -0
- package/dist/botlit/hooks/useBuckets.js +38 -39
- package/dist/botlit/hooks/useBuckets.js.map +1 -1
- package/dist/botlit/hooks/useChannels.d.ts +87 -0
- package/dist/botlit/hooks/useChannels.js +73 -73
- package/dist/botlit/hooks/useChannels.js.map +1 -1
- package/dist/botlit/hooks/useConversations.d.ts +42 -0
- package/dist/botlit/hooks/useConversations.js +1 -2
- package/dist/botlit/hooks/useConversations.js.map +1 -1
- package/dist/botlit/hooks/useExecutions.d.ts +87 -0
- package/dist/botlit/hooks/useExecutions.js +37 -37
- package/dist/botlit/hooks/useExecutions.js.map +1 -1
- package/dist/botlit/hooks/useKnowledgeBases.d.ts +79 -0
- package/dist/botlit/hooks/useKnowledgeBases.js +40 -39
- package/dist/botlit/hooks/useKnowledgeBases.js.map +1 -1
- package/dist/botlit/hooks/useKnowledgeSourceImports.d.ts +21 -0
- package/dist/botlit/hooks/useKnowledgeSourceImports.js +1 -2
- package/dist/botlit/hooks/useKnowledgeSourceImports.js.map +1 -1
- package/dist/botlit/hooks/useLLMProviders.d.ts +66 -0
- package/dist/botlit/hooks/useLLMProviders.js +25 -26
- package/dist/botlit/hooks/useLLMProviders.js.map +1 -1
- package/dist/botlit/hooks/useMCPServers.d.ts +71 -0
- package/dist/botlit/hooks/useMCPServers.js +40 -38
- package/dist/botlit/hooks/useMCPServers.js.map +1 -1
- package/dist/botlit/hooks/usePolicies.d.ts +60 -0
- package/dist/botlit/hooks/usePolicies.js +49 -49
- package/dist/botlit/hooks/usePolicies.js.map +1 -1
- package/dist/botlit/hooks/usePromptTemplates.d.ts +88 -0
- package/dist/botlit/hooks/usePromptTemplates.js +57 -57
- package/dist/botlit/hooks/usePromptTemplates.js.map +1 -1
- package/dist/botlit/hooks/useRetention.d.ts +26 -0
- package/dist/botlit/hooks/useRetention.js +3 -3
- package/dist/botlit/hooks/useRetention.js.map +1 -1
- package/dist/botlit/hooks/useRetrievalProfiles.d.ts +75 -0
- package/dist/botlit/hooks/useRetrievalProfiles.js +47 -47
- package/dist/botlit/hooks/useRetrievalProfiles.js.map +1 -1
- package/dist/botlit/hooks/useSkills.d.ts +64 -0
- package/dist/botlit/hooks/useSkills.js +53 -53
- package/dist/botlit/hooks/useSkills.js.map +1 -1
- package/dist/botlit/hooks/useStore.d.ts +112 -0
- package/dist/botlit/hooks/useStore.js +55 -55
- package/dist/botlit/hooks/useStore.js.map +1 -1
- package/dist/botlit/hooks/useUserPlatformConnection.d.ts +80 -0
- package/dist/botlit/hooks/useUserPlatformConnection.js +19 -19
- package/dist/botlit/hooks/useUserPlatformConnection.js.map +1 -1
- package/dist/botlit/index.d.ts +16 -0
- package/dist/botlit/index.js +12 -11
- package/dist/botlit/pages/A2AAgentDetailPage.d.ts +6 -0
- package/dist/botlit/pages/A2AAgentDetailPage.js +171 -178
- package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/A2ARegistryPage.d.ts +2 -0
- package/dist/botlit/pages/A2ARegistryPage.js +25 -26
- package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
- package/dist/botlit/pages/AgentApprovalsPage.d.ts +2 -0
- package/dist/botlit/pages/AgentApprovalsPage.js +32 -33
- package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
- package/dist/botlit/pages/AgentBuilderPage.d.ts +2 -0
- package/dist/botlit/pages/AgentBuilderPage.js +59 -60
- package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.d.ts +2 -0
- package/dist/botlit/pages/AgentDetailPage.js +202 -190
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentsListPage.d.ts +2 -0
- package/dist/botlit/pages/AgentsListPage.js +71 -72
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/dist/botlit/pages/AiOperationsPage.d.ts +2 -0
- package/dist/botlit/pages/AiOperationsPage.js +165 -0
- package/dist/botlit/pages/AiOperationsPage.js.map +1 -0
- package/dist/botlit/pages/BotChannelsTab.d.ts +7 -0
- package/dist/botlit/pages/BotChannelsTab.js +120 -122
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.d.ts +7 -0
- package/dist/botlit/pages/BotDetailPage.js +246 -237
- package/dist/botlit/pages/BotDetailPage.js.map +1 -1
- package/dist/botlit/pages/BotWorkflowTab.d.ts +11 -0
- package/dist/botlit/pages/BotWorkflowTab.js +20 -21
- package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
- package/dist/botlit/pages/BotsListPage.d.ts +2 -0
- package/dist/botlit/pages/BotsListPage.js +52 -53
- package/dist/botlit/pages/BotsListPage.js.map +1 -1
- package/dist/botlit/pages/BucketsPage.d.ts +2 -0
- package/dist/botlit/pages/BucketsPage.js +260 -261
- package/dist/botlit/pages/BucketsPage.js.map +1 -1
- package/dist/botlit/pages/ChannelDetailPage.d.ts +6 -0
- package/dist/botlit/pages/ChannelDetailPage.js +97 -96
- package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
- package/dist/botlit/pages/ChannelRoutesPage.d.ts +2 -0
- package/dist/botlit/pages/ChannelRoutesPage.js +23 -24
- package/dist/botlit/pages/ChannelRoutesPage.js.map +1 -1
- package/dist/botlit/pages/ChannelsPage.d.ts +2 -0
- package/dist/botlit/pages/ChannelsPage.js +44 -45
- package/dist/botlit/pages/ChannelsPage.js.map +1 -1
- package/dist/botlit/pages/ChatPage.d.ts +1 -0
- package/dist/botlit/pages/ChatPage.js +10 -11
- package/dist/botlit/pages/ChatPage.js.map +1 -1
- package/dist/botlit/pages/ConversationDetailPage.d.ts +2 -0
- package/dist/botlit/pages/ConversationsPage.d.ts +2 -0
- package/dist/botlit/pages/DashboardPage.d.ts +2 -0
- package/dist/botlit/pages/DashboardPage.js +37 -38
- package/dist/botlit/pages/DashboardPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionDetailPage.d.ts +2 -0
- package/dist/botlit/pages/ExecutionDetailPage.js +47 -48
- package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.d.ts +2 -0
- package/dist/botlit/pages/ExecutionsPage.js +72 -70
- package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
- package/dist/botlit/pages/InstalledPackagesPage.d.ts +2 -0
- package/dist/botlit/pages/InstalledPackagesPage.js +77 -78
- package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBaseDetailPage.d.ts +6 -0
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js +171 -181
- package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBasesPage.d.ts +2 -0
- package/dist/botlit/pages/KnowledgeBasesPage.js +30 -31
- package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.d.ts +6 -0
- package/dist/botlit/pages/MCPServerDetailPage.js +82 -83
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/MCPServersPage.d.ts +2 -0
- package/dist/botlit/pages/MCPServersPage.js +54 -55
- package/dist/botlit/pages/MCPServersPage.js.map +1 -1
- package/dist/botlit/pages/PoliciesPage.d.ts +2 -0
- package/dist/botlit/pages/PoliciesPage.js +25 -26
- package/dist/botlit/pages/PoliciesPage.js.map +1 -1
- package/dist/botlit/pages/PolicyDetailPage.d.ts +6 -0
- package/dist/botlit/pages/PolicyDetailPage.js +257 -259
- package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptStudioPage.d.ts +2 -0
- package/dist/botlit/pages/PromptStudioPage.js +35 -35
- package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplateDetailPage.d.ts +6 -0
- package/dist/botlit/pages/PromptTemplateDetailPage.js +363 -362
- package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
- package/dist/botlit/pages/PromptTemplatesPage.d.ts +2 -0
- package/dist/botlit/pages/PromptTemplatesPage.js +26 -27
- package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfileDetailPage.d.ts +6 -0
- package/dist/botlit/pages/RetrievalProfileDetailPage.js +150 -158
- package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfilesPage.d.ts +2 -0
- package/dist/botlit/pages/RetrievalProfilesPage.js +24 -25
- package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
- package/dist/botlit/pages/SettingsPage.d.ts +2 -0
- package/dist/botlit/pages/SettingsPage.js +124 -125
- package/dist/botlit/pages/SettingsPage.js.map +1 -1
- package/dist/botlit/pages/SkillDetailPage.d.ts +6 -0
- package/dist/botlit/pages/SkillDetailPage.js +216 -217
- package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
- package/dist/botlit/pages/SkillsPage.d.ts +2 -0
- package/dist/botlit/pages/SkillsPage.js +24 -25
- package/dist/botlit/pages/SkillsPage.js.map +1 -1
- package/dist/botlit/pages/StorePackageDetailPage.d.ts +2 -0
- package/dist/botlit/pages/StorePackageDetailPage.js +38 -39
- package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
- package/dist/botlit/pages/StorePage.d.ts +2 -0
- package/dist/botlit/pages/StorePage.js +135 -136
- package/dist/botlit/pages/StorePage.js.map +1 -1
- package/dist/botlit/pages/index.d.ts +39 -0
- package/dist/botlit/permissions/PermissionRequired.d.ts +20 -0
- package/dist/botlit/permissions/PermissionRequired.js +10 -11
- package/dist/botlit/permissions/PermissionRequired.js.map +1 -1
- package/dist/botlit/permissions/botmanorPermissions.d.ts +82 -0
- package/dist/botlit/permissions/botmanorPermissions.js +1 -2
- package/dist/botlit/permissions/botmanorPermissions.js.map +1 -1
- package/dist/botlit/permissions/index.d.ts +7 -0
- package/dist/botlit/permissions/index.js +4 -3
- package/dist/botlit/permissions/useBotmanorPermissions.d.ts +41 -0
- package/dist/botlit/permissions/useBotmanorPermissions.js +1 -2
- package/dist/botlit/permissions/useBotmanorPermissions.js.map +1 -1
- package/dist/botlit/providers/BotlitProvider.d.ts +14 -0
- package/dist/botlit/providers/BotlitProvider.js +3 -3
- package/dist/botlit/providers/BotlitProvider.js.map +1 -1
- package/dist/botlit/store/botlitStore.d.ts +85 -0
- package/dist/botlit/store/botlitStore.js +1 -2
- package/dist/botlit/store/botlitStore.js.map +1 -1
- package/dist/botlit/store/renamedKeyStorage.d.ts +13 -0
- package/dist/botlit/store/renamedKeyStorage.js +1 -2
- package/dist/botlit/store/renamedKeyStorage.js.map +1 -1
- package/dist/botlit/types/index.d.ts +1008 -0
- package/dist/botlit/utils/cn.d.ts +2 -0
- package/dist/botlit/utils/cn.js +1 -2
- package/dist/botlit/utils/cn.js.map +1 -1
- package/dist/botlit/utils/embedding-models.d.ts +9 -0
- package/dist/botlit/utils/embedding-models.js +1 -2
- package/dist/botlit/utils/embedding-models.js.map +1 -1
- package/dist/botlit/utils/errors.d.ts +19 -0
- package/dist/botlit/utils/errors.js +1 -2
- package/dist/botlit/utils/errors.js.map +1 -1
- package/dist/botlit/utils/formatters.d.ts +38 -0
- package/dist/botlit/utils/formatters.js +0 -1
- package/dist/botlit/utils/formatters.js.map +1 -1
- package/dist/botlit/utils/navigation.d.ts +19 -0
- package/dist/botlit/utils/navigation.js +1 -2
- package/dist/botlit/utils/navigation.js.map +1 -1
- package/dist/botlit/utils/policyConfig.d.ts +68 -0
- package/dist/botlit/utils/policyConfig.js +2 -3
- package/dist/botlit/utils/policyConfig.js.map +1 -1
- package/dist/botlit/utils/unions.d.ts +25 -0
- package/dist/botlit/utils/unions.js +1 -2
- package/dist/botlit/utils/unions.js.map +1 -1
- package/dist/dev/App.d.ts +2 -0
- package/dist/dev/main.d.ts +0 -0
- package/dist/generated/global-operations.d.ts +197 -0
- package/dist/generated/global-operations.js +1 -2
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +27678 -0
- package/dist/generated/global-types.js +1 -2
- package/dist/generated/global-types.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +5489 -0
- package/dist/generated/wspace-operations.js +172 -75
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +152017 -0
- package/dist/generated/wspace-types.js +6 -5
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/shared/hooks/useTr.d.ts +16 -0
- package/dist/shared/hooks/useTr.js +1 -2
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/dist/stories/Badge.stories.d.ts +11 -0
- package/dist/stories/Button.stories.d.ts +13 -0
- package/dist/stories/EmptyState.stories.d.ts +8 -0
- package/dist/stories/StatusBadge.stories.d.ts +9 -0
- package/dist/test/fixtures.d.ts +39 -0
- package/dist/test/happydom.d.ts +1 -0
- package/dist/test/renderPage.d.ts +18 -0
- package/dist/test/setup.d.ts +9 -0
- package/dist/utils/nativeBridge.d.ts +2 -0
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +87 -60
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { useBotlit as e } from "../providers/BotlitProvider.js";
|
|
2
|
-
import { isMCPServerHealthy as t, mcpServerDescription as n, mcpServerEndpoint as r, useCreateMCPServer as ee, useDeleteMCPServer as
|
|
3
|
-
import {
|
|
4
|
-
import { BOTMANOR_PERMISSIONS as
|
|
5
|
-
import { BotmanorPermissionGate as
|
|
6
|
-
import { PageLayout as
|
|
7
|
-
import {
|
|
8
|
-
import "../
|
|
9
|
-
import {
|
|
10
|
-
import { Badge as
|
|
11
|
-
import {
|
|
12
|
-
import { EmptyState as x } from "../components/EmptyState.js";
|
|
13
|
-
import { FormField as S, Input as C, Textarea as se } from "../components/Input.js";
|
|
2
|
+
import { isMCPServerHealthy as t, mcpServerDescription as n, mcpServerEndpoint as r, useCreateMCPServer as ee, useDeleteMCPServer as i, useMCPResources as a, useMCPServer as o, useMCPTools as te, useTestMCPConnection as ne, useUpdateMCPServer as re, useUpdateMCPTool as ie } from "../hooks/useMCPServers.js";
|
|
3
|
+
import { isNative as s, nativeImpact as ae, nativeNotify as c } from "../../utils/nativeBridge.js";
|
|
4
|
+
import { BOTMANOR_PERMISSIONS as l } from "../permissions/botmanorPermissions.js";
|
|
5
|
+
import { BotmanorPermissionGate as u, useBotmanorCan as oe } from "../permissions/useBotmanorPermissions.js";
|
|
6
|
+
import { PageLayout as d } from "../components/PageLayout.js";
|
|
7
|
+
import { Card as f, CardContent as p, CardDescription as m, CardHeader as h, CardTitle as g } from "../components/Card.js";
|
|
8
|
+
import { Button as _ } from "../components/Button.js";
|
|
9
|
+
import { FormField as v, Input as y, Textarea as b } from "../components/Input.js";
|
|
10
|
+
import { Badge as x, StatusBadge as se } from "../components/Badge.js";
|
|
11
|
+
import { EmptyState as S } from "../components/EmptyState.js";
|
|
14
12
|
import "../hooks/index.js";
|
|
13
|
+
import { formatRelativeTime as C } from "../utils/formatters.js";
|
|
14
|
+
import "../permissions/index.js";
|
|
15
15
|
import { useMemo as ce, useState as w } from "react";
|
|
16
16
|
import { GlassCard as le, PagePurpose as ue } from "@burdenoff/fe-libs/ui";
|
|
17
17
|
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
18
18
|
import { useParams as de } from "react-router";
|
|
19
19
|
import { AlertTriangle as fe, ArrowLeft as pe, CheckCircle as me, Clock as he, Edit as ge, ExternalLink as O, Plug as k, PlugZap as A, RefreshCw as j, Save as M, Server as N, Settings as P, Trash2 as F, Wrench as I, XCircle as L } from "lucide-react";
|
|
20
20
|
import { toast as R } from "sonner";
|
|
21
|
-
|
|
21
|
+
// src/botlit/pages/MCPServerDetailPage.tsx
|
|
22
22
|
function z(e, t) {
|
|
23
23
|
let n = e?.[t];
|
|
24
24
|
return typeof n == "string" && n !== "" ? n : void 0;
|
|
25
25
|
}
|
|
26
26
|
var B = ({ isNew: B }) => {
|
|
27
|
-
let { serverId: V } = de(), { navigateTo: H } = e(), _e =
|
|
27
|
+
let { serverId: V } = de(), { navigateTo: H } = e(), _e = oe(), { data: U, loading: ve, refetch: W } = o(B ? void 0 : V), { data: G } = te(B ? void 0 : V), { data: K } = a(B ? void 0 : V), [ye, be] = ee(), [xe, Se] = re(), [Ce, we] = i(), [Te, Ee] = ne(), [De, Oe] = ie(), [ke, q] = w(!1), [Ae, J] = w(!1), [Y, X] = w({
|
|
28
28
|
name: "",
|
|
29
29
|
description: "",
|
|
30
30
|
transport: "HTTP_JSON",
|
|
@@ -32,7 +32,7 @@ var B = ({ isNew: B }) => {
|
|
|
32
32
|
authMethod: "NONE",
|
|
33
33
|
secretRefId: ""
|
|
34
34
|
}), [Z, je] = w(null), Q = ce(() => G.find((e) => e.name === Z) ?? null, [G, Z]), Me = async () => {
|
|
35
|
-
if (
|
|
35
|
+
if (Y.name && Y.baseUrl) try {
|
|
36
36
|
let e = await ye({
|
|
37
37
|
name: Y.name,
|
|
38
38
|
type: Y.transport,
|
|
@@ -54,7 +54,7 @@ var B = ({ isNew: B }) => {
|
|
|
54
54
|
R.error(e instanceof Error ? e.message : "Failed to test MCP connection");
|
|
55
55
|
}
|
|
56
56
|
}, Pe = async () => {
|
|
57
|
-
if (
|
|
57
|
+
if (V && Y.name) try {
|
|
58
58
|
await xe({
|
|
59
59
|
serverId: V,
|
|
60
60
|
input: {
|
|
@@ -72,9 +72,9 @@ var B = ({ isNew: B }) => {
|
|
|
72
72
|
}
|
|
73
73
|
}, Fe = async () => {
|
|
74
74
|
if (V) try {
|
|
75
|
-
await Ce(V),
|
|
75
|
+
await Ce(V), s() && c("success"), R.success("MCP server disconnected"), H("mcp");
|
|
76
76
|
} catch (e) {
|
|
77
|
-
|
|
77
|
+
s() && c("error"), R.error(e instanceof Error ? e.message : "Failed to disconnect MCP server");
|
|
78
78
|
}
|
|
79
79
|
}, Ie = () => {
|
|
80
80
|
U && (X({
|
|
@@ -101,16 +101,16 @@ var B = ({ isNew: B }) => {
|
|
|
101
101
|
R.error(e instanceof Error ? e.message : "Failed to update tool risk level");
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
return B ? /* @__PURE__ */ E(
|
|
104
|
+
return B ? /* @__PURE__ */ E(d, {
|
|
105
105
|
title: "Add MCP Server",
|
|
106
106
|
description: "Connect a new Model Context Protocol server",
|
|
107
107
|
actions: /* @__PURE__ */ D("div", {
|
|
108
108
|
className: "flex gap-2",
|
|
109
|
-
children: [/* @__PURE__ */ E(
|
|
109
|
+
children: [/* @__PURE__ */ E(_, {
|
|
110
110
|
variant: "outline",
|
|
111
111
|
onClick: () => H("mcp"),
|
|
112
112
|
children: "Cancel"
|
|
113
|
-
}), /* @__PURE__ */ E(
|
|
113
|
+
}), /* @__PURE__ */ E(_, {
|
|
114
114
|
leftIcon: /* @__PURE__ */ E(M, { size: 16 }),
|
|
115
115
|
onClick: Me,
|
|
116
116
|
isLoading: be.loading,
|
|
@@ -120,13 +120,13 @@ var B = ({ isNew: B }) => {
|
|
|
120
120
|
}),
|
|
121
121
|
children: /* @__PURE__ */ E("div", {
|
|
122
122
|
className: "max-w-2xl space-y-6",
|
|
123
|
-
children: /* @__PURE__ */ D(
|
|
123
|
+
children: /* @__PURE__ */ D(f, { children: [/* @__PURE__ */ E(h, { children: /* @__PURE__ */ E(g, { children: "Server Configuration" }) }), /* @__PURE__ */ D(p, {
|
|
124
124
|
className: "space-y-4",
|
|
125
125
|
children: [
|
|
126
|
-
/* @__PURE__ */ E(
|
|
126
|
+
/* @__PURE__ */ E(v, {
|
|
127
127
|
label: "Server Name",
|
|
128
128
|
required: !0,
|
|
129
|
-
children: /* @__PURE__ */ E(
|
|
129
|
+
children: /* @__PURE__ */ E(y, {
|
|
130
130
|
placeholder: "e.g., GitHub MCP Server",
|
|
131
131
|
value: Y.name,
|
|
132
132
|
onChange: (e) => X({
|
|
@@ -135,9 +135,9 @@ var B = ({ isNew: B }) => {
|
|
|
135
135
|
})
|
|
136
136
|
})
|
|
137
137
|
}),
|
|
138
|
-
/* @__PURE__ */ E(
|
|
138
|
+
/* @__PURE__ */ E(v, {
|
|
139
139
|
label: "Description",
|
|
140
|
-
children: /* @__PURE__ */ E(
|
|
140
|
+
children: /* @__PURE__ */ E(b, {
|
|
141
141
|
placeholder: "What capabilities does this server provide?",
|
|
142
142
|
value: Y.description,
|
|
143
143
|
onChange: (e) => X({
|
|
@@ -149,7 +149,7 @@ var B = ({ isNew: B }) => {
|
|
|
149
149
|
}),
|
|
150
150
|
/* @__PURE__ */ D("div", {
|
|
151
151
|
className: "grid grid-cols-2 gap-4",
|
|
152
|
-
children: [/* @__PURE__ */ E(
|
|
152
|
+
children: [/* @__PURE__ */ E(v, {
|
|
153
153
|
label: "Transport",
|
|
154
154
|
required: !0,
|
|
155
155
|
children: /* @__PURE__ */ D("select", {
|
|
@@ -178,7 +178,7 @@ var B = ({ isNew: B }) => {
|
|
|
178
178
|
})
|
|
179
179
|
]
|
|
180
180
|
})
|
|
181
|
-
}), /* @__PURE__ */ E(
|
|
181
|
+
}), /* @__PURE__ */ E(v, {
|
|
182
182
|
label: "Auth Method",
|
|
183
183
|
children: /* @__PURE__ */ D("select", {
|
|
184
184
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
@@ -208,10 +208,10 @@ var B = ({ isNew: B }) => {
|
|
|
208
208
|
})
|
|
209
209
|
})]
|
|
210
210
|
}),
|
|
211
|
-
/* @__PURE__ */ E(
|
|
211
|
+
/* @__PURE__ */ E(v, {
|
|
212
212
|
label: "Base URL",
|
|
213
213
|
required: !0,
|
|
214
|
-
children: /* @__PURE__ */ E(
|
|
214
|
+
children: /* @__PURE__ */ E(y, {
|
|
215
215
|
placeholder: "e.g., https://mcp.example.com",
|
|
216
216
|
value: Y.baseUrl,
|
|
217
217
|
onChange: (e) => X({
|
|
@@ -220,9 +220,9 @@ var B = ({ isNew: B }) => {
|
|
|
220
220
|
})
|
|
221
221
|
})
|
|
222
222
|
}),
|
|
223
|
-
Y.authMethod !== "NONE" && /* @__PURE__ */ E(
|
|
223
|
+
Y.authMethod !== "NONE" && /* @__PURE__ */ E(v, {
|
|
224
224
|
label: "Secret Reference ID",
|
|
225
|
-
children: /* @__PURE__ */ E(
|
|
225
|
+
children: /* @__PURE__ */ E(y, {
|
|
226
226
|
placeholder: "e.g., secret-mcp-github",
|
|
227
227
|
value: Y.secretRefId,
|
|
228
228
|
onChange: (e) => X({
|
|
@@ -234,14 +234,14 @@ var B = ({ isNew: B }) => {
|
|
|
234
234
|
]
|
|
235
235
|
})] })
|
|
236
236
|
})
|
|
237
|
-
}) : ve ? /* @__PURE__ */ E(
|
|
237
|
+
}) : ve ? /* @__PURE__ */ E(d, {
|
|
238
238
|
title: "Loading...",
|
|
239
239
|
children: /* @__PURE__ */ E("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
240
|
-
}) : U ? /* @__PURE__ */ E(
|
|
240
|
+
}) : U ? /* @__PURE__ */ E(d, {
|
|
241
241
|
title: /* @__PURE__ */ D("div", {
|
|
242
242
|
className: "flex items-center gap-3",
|
|
243
243
|
children: [
|
|
244
|
-
/* @__PURE__ */ E(
|
|
244
|
+
/* @__PURE__ */ E(_, {
|
|
245
245
|
variant: "ghost",
|
|
246
246
|
size: "icon",
|
|
247
247
|
onClick: () => H("mcp"),
|
|
@@ -253,7 +253,7 @@ var B = ({ isNew: B }) => {
|
|
|
253
253
|
}),
|
|
254
254
|
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
|
|
255
255
|
className: "flex items-center gap-2",
|
|
256
|
-
children: [/* @__PURE__ */ E("span", { children: U.name }), /* @__PURE__ */ E(
|
|
256
|
+
children: [/* @__PURE__ */ E("span", { children: U.name }), /* @__PURE__ */ E(se, { status: U.status })]
|
|
257
257
|
}), /* @__PURE__ */ E("p", {
|
|
258
258
|
className: "text-sm font-normal text-text-secondary",
|
|
259
259
|
children: n(U)
|
|
@@ -262,27 +262,27 @@ var B = ({ isNew: B }) => {
|
|
|
262
262
|
}),
|
|
263
263
|
actions: /* @__PURE__ */ D("div", {
|
|
264
264
|
className: "flex gap-2",
|
|
265
|
-
children: [/* @__PURE__ */ E(
|
|
266
|
-
permission:
|
|
267
|
-
children: /* @__PURE__ */ E(
|
|
265
|
+
children: [/* @__PURE__ */ E(u, {
|
|
266
|
+
permission: l.MCP_TEST,
|
|
267
|
+
children: /* @__PURE__ */ E(_, {
|
|
268
268
|
variant: "outline",
|
|
269
269
|
leftIcon: /* @__PURE__ */ E(j, { size: 16 }),
|
|
270
270
|
onClick: Ne,
|
|
271
271
|
isLoading: Ee.loading,
|
|
272
272
|
children: "Test"
|
|
273
273
|
})
|
|
274
|
-
}), ke ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(
|
|
274
|
+
}), ke ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(_, {
|
|
275
275
|
variant: "outline",
|
|
276
276
|
onClick: () => q(!1),
|
|
277
277
|
children: "Cancel"
|
|
278
|
-
}), /* @__PURE__ */ E(
|
|
278
|
+
}), /* @__PURE__ */ E(_, {
|
|
279
279
|
leftIcon: /* @__PURE__ */ E(M, { size: 16 }),
|
|
280
280
|
onClick: Pe,
|
|
281
281
|
isLoading: Se.loading,
|
|
282
282
|
children: "Save"
|
|
283
|
-
})] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(
|
|
284
|
-
permission:
|
|
285
|
-
children: /* @__PURE__ */ E(
|
|
283
|
+
})] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(u, {
|
|
284
|
+
permission: l.MCP_UPDATE,
|
|
285
|
+
children: /* @__PURE__ */ E(_, {
|
|
286
286
|
variant: "outline",
|
|
287
287
|
leftIcon: /* @__PURE__ */ E(ge, { size: 16 }),
|
|
288
288
|
onClick: Ie,
|
|
@@ -290,23 +290,23 @@ var B = ({ isNew: B }) => {
|
|
|
290
290
|
})
|
|
291
291
|
}), Ae ? /* @__PURE__ */ D("div", {
|
|
292
292
|
className: "flex gap-2",
|
|
293
|
-
children: [/* @__PURE__ */ E(
|
|
293
|
+
children: [/* @__PURE__ */ E(_, {
|
|
294
294
|
variant: "outline",
|
|
295
295
|
size: "sm",
|
|
296
296
|
onClick: () => J(!1),
|
|
297
297
|
children: "Cancel"
|
|
298
|
-
}), /* @__PURE__ */ E(
|
|
298
|
+
}), /* @__PURE__ */ E(_, {
|
|
299
299
|
variant: "destructive",
|
|
300
300
|
size: "sm",
|
|
301
301
|
onClick: () => {
|
|
302
|
-
|
|
302
|
+
ae("medium"), Fe();
|
|
303
303
|
},
|
|
304
304
|
isLoading: we.loading,
|
|
305
305
|
children: "Confirm"
|
|
306
306
|
})]
|
|
307
|
-
}) : /* @__PURE__ */ E(
|
|
308
|
-
permission:
|
|
309
|
-
children: /* @__PURE__ */ E(
|
|
307
|
+
}) : /* @__PURE__ */ E(u, {
|
|
308
|
+
permission: l.MCP_DELETE,
|
|
309
|
+
children: /* @__PURE__ */ E(_, {
|
|
310
310
|
variant: "destructive",
|
|
311
311
|
leftIcon: /* @__PURE__ */ E(F, { size: 16 }),
|
|
312
312
|
onClick: () => J(!0),
|
|
@@ -351,7 +351,7 @@ var B = ({ isNew: B }) => {
|
|
|
351
351
|
})
|
|
352
352
|
]
|
|
353
353
|
}),
|
|
354
|
-
/* @__PURE__ */ E(
|
|
354
|
+
/* @__PURE__ */ E(f, { children: /* @__PURE__ */ D(p, {
|
|
355
355
|
className: "pt-6 text-center",
|
|
356
356
|
children: [/* @__PURE__ */ E("p", {
|
|
357
357
|
className: "text-3xl font-bold text-text-primary",
|
|
@@ -361,7 +361,7 @@ var B = ({ isNew: B }) => {
|
|
|
361
361
|
children: "Tools Available"
|
|
362
362
|
})]
|
|
363
363
|
}) }),
|
|
364
|
-
/* @__PURE__ */ E(
|
|
364
|
+
/* @__PURE__ */ E(f, { children: /* @__PURE__ */ D(p, {
|
|
365
365
|
className: "pt-6 text-center",
|
|
366
366
|
children: [/* @__PURE__ */ E("p", {
|
|
367
367
|
className: "text-3xl font-bold text-text-primary",
|
|
@@ -371,11 +371,11 @@ var B = ({ isNew: B }) => {
|
|
|
371
371
|
children: "Resources"
|
|
372
372
|
})]
|
|
373
373
|
}) }),
|
|
374
|
-
/* @__PURE__ */ E(
|
|
374
|
+
/* @__PURE__ */ E(f, { children: /* @__PURE__ */ D(p, {
|
|
375
375
|
className: "pt-6 text-center",
|
|
376
376
|
children: [/* @__PURE__ */ E("p", {
|
|
377
377
|
className: "text-3xl font-bold text-text-primary",
|
|
378
|
-
children: U.lastConnectedAt ?
|
|
378
|
+
children: U.lastConnectedAt ? C(U.lastConnectedAt) : "Never"
|
|
379
379
|
}), /* @__PURE__ */ E("p", {
|
|
380
380
|
className: "text-sm text-text-secondary",
|
|
381
381
|
children: "Last Connected"
|
|
@@ -383,16 +383,16 @@ var B = ({ isNew: B }) => {
|
|
|
383
383
|
}) })
|
|
384
384
|
]
|
|
385
385
|
}),
|
|
386
|
-
/* @__PURE__ */ D(
|
|
386
|
+
/* @__PURE__ */ D(f, { children: [/* @__PURE__ */ E(h, { children: /* @__PURE__ */ D(g, {
|
|
387
387
|
className: "flex items-center gap-2",
|
|
388
388
|
children: [/* @__PURE__ */ E(N, { size: 18 }), "Connection Details"]
|
|
389
|
-
}) }), /* @__PURE__ */ D(
|
|
389
|
+
}) }), /* @__PURE__ */ D(p, { children: [/* @__PURE__ */ D("div", {
|
|
390
390
|
className: "grid grid-cols-2 md:grid-cols-4 gap-6",
|
|
391
391
|
children: [
|
|
392
392
|
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
393
393
|
className: "text-sm text-text-secondary",
|
|
394
394
|
children: "Transport"
|
|
395
|
-
}), /* @__PURE__ */ E(
|
|
395
|
+
}), /* @__PURE__ */ E(x, {
|
|
396
396
|
variant: "outline",
|
|
397
397
|
className: "capitalize mt-1",
|
|
398
398
|
children: U.type.toLowerCase().replace("_", " ")
|
|
@@ -407,7 +407,7 @@ var B = ({ isNew: B }) => {
|
|
|
407
407
|
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
408
408
|
className: "text-sm text-text-secondary",
|
|
409
409
|
children: "Auth Method"
|
|
410
|
-
}), /* @__PURE__ */ E(
|
|
410
|
+
}), /* @__PURE__ */ E(x, {
|
|
411
411
|
variant: "outline",
|
|
412
412
|
className: "capitalize mt-1",
|
|
413
413
|
children: (z(U.config, "authMethod") ?? "NONE").toLowerCase().replace("_", " ")
|
|
@@ -417,7 +417,7 @@ var B = ({ isNew: B }) => {
|
|
|
417
417
|
children: "Last Tested"
|
|
418
418
|
}), /* @__PURE__ */ E("p", {
|
|
419
419
|
className: "font-medium",
|
|
420
|
-
children: U.lastErrorAt ?
|
|
420
|
+
children: U.lastErrorAt ? C(U.lastErrorAt) : "Never"
|
|
421
421
|
})] })
|
|
422
422
|
]
|
|
423
423
|
}), U.errorMessage && /* @__PURE__ */ D("div", {
|
|
@@ -432,9 +432,9 @@ var B = ({ isNew: B }) => {
|
|
|
432
432
|
className: "grid grid-cols-12 gap-6",
|
|
433
433
|
children: [/* @__PURE__ */ E("div", {
|
|
434
434
|
className: "col-span-5",
|
|
435
|
-
children: /* @__PURE__ */ D(
|
|
435
|
+
children: /* @__PURE__ */ D(f, {
|
|
436
436
|
className: "h-full",
|
|
437
|
-
children: [/* @__PURE__ */ D(
|
|
437
|
+
children: [/* @__PURE__ */ D(h, { children: [/* @__PURE__ */ D(g, {
|
|
438
438
|
className: "flex items-center gap-2",
|
|
439
439
|
children: [
|
|
440
440
|
/* @__PURE__ */ E(I, { size: 18 }),
|
|
@@ -442,7 +442,7 @@ var B = ({ isNew: B }) => {
|
|
|
442
442
|
G.length,
|
|
443
443
|
")"
|
|
444
444
|
]
|
|
445
|
-
}), /* @__PURE__ */ E(
|
|
445
|
+
}), /* @__PURE__ */ E(m, { children: "Available tools from this MCP server" })] }), /* @__PURE__ */ E(p, {
|
|
446
446
|
className: "p-0",
|
|
447
447
|
children: G.length > 0 ? /* @__PURE__ */ E("div", {
|
|
448
448
|
className: "divide-y divide-border-subtle max-h-96 overflow-auto",
|
|
@@ -455,7 +455,7 @@ var B = ({ isNew: B }) => {
|
|
|
455
455
|
children: [/* @__PURE__ */ E("p", {
|
|
456
456
|
className: "font-medium truncate",
|
|
457
457
|
children: e.name
|
|
458
|
-
}), /* @__PURE__ */ E(
|
|
458
|
+
}), /* @__PURE__ */ E(x, {
|
|
459
459
|
variant: $(e.riskLevel),
|
|
460
460
|
className: "shrink-0",
|
|
461
461
|
children: e.riskLevel
|
|
@@ -473,15 +473,15 @@ var B = ({ isNew: B }) => {
|
|
|
473
473
|
})
|
|
474
474
|
}), /* @__PURE__ */ E("div", {
|
|
475
475
|
className: "col-span-7",
|
|
476
|
-
children: Q ? /* @__PURE__ */ D(
|
|
476
|
+
children: Q ? /* @__PURE__ */ D(f, {
|
|
477
477
|
className: "h-full",
|
|
478
|
-
children: [/* @__PURE__ */ E(
|
|
478
|
+
children: [/* @__PURE__ */ E(h, { children: /* @__PURE__ */ D("div", {
|
|
479
479
|
className: "flex items-start justify-between gap-4",
|
|
480
|
-
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E(
|
|
480
|
+
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E(g, { children: Q.name }), /* @__PURE__ */ E(m, { children: Q.description })] }), /* @__PURE__ */ E(x, {
|
|
481
481
|
variant: $(Q.riskLevel),
|
|
482
482
|
children: Q.riskLevel
|
|
483
483
|
})]
|
|
484
|
-
}) }), /* @__PURE__ */ D(
|
|
484
|
+
}) }), /* @__PURE__ */ D(p, {
|
|
485
485
|
className: "space-y-4",
|
|
486
486
|
children: [/* @__PURE__ */ D("div", { children: [
|
|
487
487
|
/* @__PURE__ */ E("p", {
|
|
@@ -491,7 +491,7 @@ var B = ({ isNew: B }) => {
|
|
|
491
491
|
/* @__PURE__ */ D("select", {
|
|
492
492
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
493
493
|
value: Q.riskLevel,
|
|
494
|
-
disabled: Oe.loading || !_e(
|
|
494
|
+
disabled: Oe.loading || !_e(l.MCP_UPDATE),
|
|
495
495
|
onChange: (e) => void Le(Q.id, e.target.value),
|
|
496
496
|
children: [
|
|
497
497
|
/* @__PURE__ */ E("option", {
|
|
@@ -520,11 +520,11 @@ var B = ({ isNew: B }) => {
|
|
|
520
520
|
children: /* @__PURE__ */ E("pre", { children: JSON.stringify(Q.inputSchema, null, 2) })
|
|
521
521
|
})] })]
|
|
522
522
|
})]
|
|
523
|
-
}) : /* @__PURE__ */ E(
|
|
523
|
+
}) : /* @__PURE__ */ E(f, {
|
|
524
524
|
className: "h-full",
|
|
525
|
-
children: /* @__PURE__ */ E(
|
|
525
|
+
children: /* @__PURE__ */ E(p, {
|
|
526
526
|
className: "h-full flex items-center justify-center",
|
|
527
|
-
children: /* @__PURE__ */ E(
|
|
527
|
+
children: /* @__PURE__ */ E(S, {
|
|
528
528
|
illustration: "onboarding",
|
|
529
529
|
title: "Select a tool",
|
|
530
530
|
description: "Choose a tool from the list to view its details"
|
|
@@ -533,7 +533,7 @@ var B = ({ isNew: B }) => {
|
|
|
533
533
|
})
|
|
534
534
|
})]
|
|
535
535
|
}),
|
|
536
|
-
K.length > 0 && /* @__PURE__ */ D(
|
|
536
|
+
K.length > 0 && /* @__PURE__ */ D(f, { children: [/* @__PURE__ */ D(h, { children: [/* @__PURE__ */ E(g, { children: "Resources" }), /* @__PURE__ */ E(m, { children: "Available resources exposed by this server" })] }), /* @__PURE__ */ E(p, { children: /* @__PURE__ */ E("div", {
|
|
537
537
|
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
538
538
|
children: K.map((e) => /* @__PURE__ */ D("div", {
|
|
539
539
|
className: "p-4 border border-border-subtle rounded-lg hover:bg-accent/50 transition-colors",
|
|
@@ -551,7 +551,7 @@ var B = ({ isNew: B }) => {
|
|
|
551
551
|
})]
|
|
552
552
|
}), /* @__PURE__ */ D("div", {
|
|
553
553
|
className: "mt-2 flex items-center gap-2",
|
|
554
|
-
children: [/* @__PURE__ */ E(
|
|
554
|
+
children: [/* @__PURE__ */ E(x, {
|
|
555
555
|
variant: "outline",
|
|
556
556
|
className: "text-xs font-mono",
|
|
557
557
|
children: e.mimeType || "unknown"
|
|
@@ -562,10 +562,10 @@ var B = ({ isNew: B }) => {
|
|
|
562
562
|
})]
|
|
563
563
|
}, e.uri))
|
|
564
564
|
}) })] }),
|
|
565
|
-
/* @__PURE__ */ D(
|
|
565
|
+
/* @__PURE__ */ D(f, { children: [/* @__PURE__ */ E(h, { children: /* @__PURE__ */ D(g, {
|
|
566
566
|
className: "flex items-center gap-2",
|
|
567
567
|
children: [/* @__PURE__ */ E(P, { size: 18 }), "Metadata"]
|
|
568
|
-
}) }), /* @__PURE__ */ E(
|
|
568
|
+
}) }), /* @__PURE__ */ E(p, { children: /* @__PURE__ */ D("div", {
|
|
569
569
|
className: "grid grid-cols-2 md:grid-cols-4 gap-6 text-sm",
|
|
570
570
|
children: [
|
|
571
571
|
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
@@ -573,26 +573,26 @@ var B = ({ isNew: B }) => {
|
|
|
573
573
|
children: "Created"
|
|
574
574
|
}), /* @__PURE__ */ E("p", {
|
|
575
575
|
className: "font-medium",
|
|
576
|
-
children:
|
|
576
|
+
children: C(U.createdAt)
|
|
577
577
|
})] }),
|
|
578
578
|
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
579
579
|
className: "text-text-secondary",
|
|
580
580
|
children: "Updated"
|
|
581
581
|
}), /* @__PURE__ */ E("p", {
|
|
582
582
|
className: "font-medium",
|
|
583
|
-
children:
|
|
583
|
+
children: C(U.updatedAt)
|
|
584
584
|
})] }),
|
|
585
585
|
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
586
586
|
className: "text-text-secondary",
|
|
587
587
|
children: "Last Connected"
|
|
588
588
|
}), /* @__PURE__ */ E("p", {
|
|
589
589
|
className: "font-medium",
|
|
590
|
-
children: U.lastConnectedAt ?
|
|
590
|
+
children: U.lastConnectedAt ? C(U.lastConnectedAt) : "Never"
|
|
591
591
|
})] }),
|
|
592
592
|
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
593
593
|
className: "text-text-secondary",
|
|
594
594
|
children: "Credentials"
|
|
595
|
-
}), /* @__PURE__ */ E(
|
|
595
|
+
}), /* @__PURE__ */ E(x, {
|
|
596
596
|
variant: U.credentialsHash ? "success" : "secondary",
|
|
597
597
|
children: U.credentialsHash ? "Configured" : "None"
|
|
598
598
|
})] })
|
|
@@ -600,20 +600,19 @@ var B = ({ isNew: B }) => {
|
|
|
600
600
|
}) })] })
|
|
601
601
|
]
|
|
602
602
|
})
|
|
603
|
-
}) : /* @__PURE__ */ E(
|
|
603
|
+
}) : /* @__PURE__ */ E(d, {
|
|
604
604
|
title: "Server Not Found",
|
|
605
|
-
children: /* @__PURE__ */ E(
|
|
605
|
+
children: /* @__PURE__ */ E(S, {
|
|
606
606
|
illustration: "empty-generic",
|
|
607
607
|
title: "Server Not Found",
|
|
608
608
|
description: "This MCP server doesn't exist.",
|
|
609
|
-
action: /* @__PURE__ */ E(
|
|
609
|
+
action: /* @__PURE__ */ E(_, {
|
|
610
610
|
onClick: () => H("mcp"),
|
|
611
611
|
children: "Back to MCP Servers"
|
|
612
612
|
})
|
|
613
613
|
})
|
|
614
614
|
});
|
|
615
615
|
};
|
|
616
|
-
//#endregion
|
|
617
616
|
export { B as MCPServerDetailPage };
|
|
618
617
|
|
|
619
618
|
//# sourceMappingURL=MCPServerDetailPage.js.map
|