@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,34 +1,34 @@
|
|
|
1
1
|
import { useBotlit as e } from "../providers/BotlitProvider.js";
|
|
2
|
-
import {
|
|
3
|
-
import { BOTMANOR_PERMISSIONS as
|
|
4
|
-
import { BotmanorPermissionGate as
|
|
5
|
-
import { PageLayout as
|
|
6
|
-
import {
|
|
7
|
-
import "../
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { EmptyState as m } from "../components/EmptyState.js";
|
|
12
|
-
import { FormField as h, Input as g, Textarea as _ } from "../components/Input.js";
|
|
13
|
-
import { useRetrievalProfiles as v } from "../hooks/useRetrievalProfiles.js";
|
|
14
|
-
import { usePolicies as y } from "../hooks/usePolicies.js";
|
|
15
|
-
import { useCreateSkill as ne, useDeleteSkill as re, useSkill as ie, useUpdateSkill as ae } from "../hooks/useSkills.js";
|
|
16
|
-
import { jsonBoolean as b, toUnion as x } from "../utils/unions.js";
|
|
17
|
-
import { usePromptTemplates as oe } from "../hooks/usePromptTemplates.js";
|
|
2
|
+
import { isNative as t, nativeImpact as n, nativeNotify as r } from "../../utils/nativeBridge.js";
|
|
3
|
+
import { BOTMANOR_PERMISSIONS as i } from "../permissions/botmanorPermissions.js";
|
|
4
|
+
import { BotmanorPermissionGate as a } from "../permissions/useBotmanorPermissions.js";
|
|
5
|
+
import { PageLayout as o } from "../components/PageLayout.js";
|
|
6
|
+
import { EmptyState as ee } from "../components/EmptyState.js";
|
|
7
|
+
import { Card as s, CardContent as c, CardDescription as l, CardHeader as u, CardTitle as d } from "../components/Card.js";
|
|
8
|
+
import { Button as f } from "../components/Button.js";
|
|
9
|
+
import { FormField as p, Input as m, Textarea as h } from "../components/Input.js";
|
|
10
|
+
import { Badge as g, StatusBadge as _ } from "../components/Badge.js";
|
|
18
11
|
import "../hooks/index.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
12
|
+
import { formatRelativeTime as v } from "../utils/formatters.js";
|
|
13
|
+
import { useRetrievalProfiles as y } from "../hooks/useRetrievalProfiles.js";
|
|
14
|
+
import { usePolicies as b } from "../hooks/usePolicies.js";
|
|
15
|
+
import { useCreateSkill as te, useDeleteSkill as ne, useSkill as re, useUpdateSkill as ie } from "../hooks/useSkills.js";
|
|
16
|
+
import { jsonBoolean as x, toUnion as S } from "../utils/unions.js";
|
|
17
|
+
import { usePromptTemplates as ae } from "../hooks/usePromptTemplates.js";
|
|
18
|
+
import "../permissions/index.js";
|
|
19
|
+
import { useState as C } from "react";
|
|
20
|
+
import { PagePurpose as w } from "@burdenoff/fe-libs/ui";
|
|
21
|
+
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
22
|
+
import { Link as O, useParams as oe } from "react-router";
|
|
23
|
+
import { ArrowLeft as se, CheckCircle as ce, Database as k, Edit as A, ExternalLink as j, FileText as M, Save as N, Settings as le, Shield as P, Trash2 as ue, Wrench as F, XCircle as I, Zap as L } from "lucide-react";
|
|
24
24
|
import { toast as R } from "sonner";
|
|
25
|
-
|
|
25
|
+
// src/botlit/pages/SkillDetailPage.tsx
|
|
26
26
|
var z = [
|
|
27
27
|
"PRIVATE",
|
|
28
28
|
"WORKSPACE",
|
|
29
29
|
"PUBLIC"
|
|
30
30
|
], B = ({ isNew: B }) => {
|
|
31
|
-
let { skillId: V } =
|
|
31
|
+
let { skillId: V } = oe(), { navigateTo: H, getPath: U } = e(), { data: W, loading: de } = re(B ? void 0 : V), { data: G } = ae(), { data: fe } = b(), { data: K } = y(), { create: q, loading: pe } = te(), { update: me, loading: he } = ie(), { remove: ge, loading: _e } = ne(), [J, Y] = C(!1), [ve, X] = C(!1), [Z, Q] = C({
|
|
32
32
|
name: "",
|
|
33
33
|
description: "",
|
|
34
34
|
visibility: "PRIVATE",
|
|
@@ -63,7 +63,7 @@ var z = [
|
|
|
63
63
|
}
|
|
64
64
|
}), R.success(`Skill "${Z.name}" created`), H("skills");
|
|
65
65
|
}, xe = async () => {
|
|
66
|
-
if (
|
|
66
|
+
if (V && Z.name) try {
|
|
67
67
|
await Se();
|
|
68
68
|
} catch (e) {
|
|
69
69
|
R.error(e instanceof Error ? e.message : "Failed to update skill");
|
|
@@ -89,52 +89,52 @@ var z = [
|
|
|
89
89
|
}), R.success("Skill updated"), Y(!1));
|
|
90
90
|
}, Ce = async () => {
|
|
91
91
|
if (V) try {
|
|
92
|
-
await ge(V),
|
|
92
|
+
await ge(V), t() && r("success"), R.success("Skill deleted"), H("skills");
|
|
93
93
|
} catch (e) {
|
|
94
|
-
|
|
94
|
+
t() && r("error"), R.error(e instanceof Error ? e.message : "Failed to delete skill");
|
|
95
95
|
}
|
|
96
96
|
}, we = () => {
|
|
97
97
|
W && (Q({
|
|
98
98
|
name: W.name,
|
|
99
99
|
description: W.description || "",
|
|
100
|
-
visibility:
|
|
100
|
+
visibility: S(W.visibility, z, "PRIVATE"),
|
|
101
101
|
promptTemplateId: W.promptTemplateId || "",
|
|
102
102
|
toolPolicyId: W.toolPolicyId || "",
|
|
103
103
|
retrievalProfileId: W.retrievalProfileId || "",
|
|
104
104
|
toolPackDeps: W.toolPackDeps.join(", "),
|
|
105
105
|
recommendedPolicies: W.recommendedPolicies.join(", "),
|
|
106
|
-
requiresTools:
|
|
107
|
-
requiresKnowledge:
|
|
108
|
-
requiresA2A:
|
|
106
|
+
requiresTools: x(W.capabilityFlags, "requiresTools"),
|
|
107
|
+
requiresKnowledge: x(W.capabilityFlags, "requiresKnowledge"),
|
|
108
|
+
requiresA2A: x(W.capabilityFlags, "requiresA2A")
|
|
109
109
|
}), Y(!0));
|
|
110
110
|
}, Te = fe?.filter((e) => e.type === "TOOL") || [];
|
|
111
|
-
if (B) return /* @__PURE__ */
|
|
111
|
+
if (B) return /* @__PURE__ */ E(o, {
|
|
112
112
|
title: "Create Skill",
|
|
113
113
|
description: "Bundle prompts, tools, and policies into a reusable skill",
|
|
114
|
-
actions: /* @__PURE__ */
|
|
114
|
+
actions: /* @__PURE__ */ D("div", {
|
|
115
115
|
className: "flex gap-2",
|
|
116
|
-
children: [/* @__PURE__ */
|
|
116
|
+
children: [/* @__PURE__ */ E(f, {
|
|
117
117
|
variant: "outline",
|
|
118
118
|
onClick: () => H("skills"),
|
|
119
119
|
children: "Cancel"
|
|
120
|
-
}), /* @__PURE__ */
|
|
121
|
-
leftIcon: /* @__PURE__ */
|
|
120
|
+
}), /* @__PURE__ */ E(f, {
|
|
121
|
+
leftIcon: /* @__PURE__ */ E(N, { size: 16 }),
|
|
122
122
|
onClick: ye,
|
|
123
123
|
isLoading: pe,
|
|
124
124
|
disabled: !Z.name,
|
|
125
125
|
children: "Create"
|
|
126
126
|
})]
|
|
127
127
|
}),
|
|
128
|
-
children: /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ D("div", {
|
|
129
129
|
className: "max-w-2xl space-y-6",
|
|
130
130
|
children: [
|
|
131
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ D(s, { children: [/* @__PURE__ */ E(u, { children: /* @__PURE__ */ E(d, { children: "Basic Information" }) }), /* @__PURE__ */ D(c, {
|
|
132
132
|
className: "space-y-4",
|
|
133
133
|
children: [
|
|
134
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ E(p, {
|
|
135
135
|
label: "Skill Name",
|
|
136
136
|
required: !0,
|
|
137
|
-
children: /* @__PURE__ */
|
|
137
|
+
children: /* @__PURE__ */ E(m, {
|
|
138
138
|
placeholder: "e.g., Code Review Skill",
|
|
139
139
|
value: Z.name,
|
|
140
140
|
onChange: (e) => Q({
|
|
@@ -143,9 +143,9 @@ var z = [
|
|
|
143
143
|
})
|
|
144
144
|
})
|
|
145
145
|
}),
|
|
146
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ E(p, {
|
|
147
147
|
label: "Description",
|
|
148
|
-
children: /* @__PURE__ */
|
|
148
|
+
children: /* @__PURE__ */ E(h, {
|
|
149
149
|
placeholder: "What does this skill enable agents to do?",
|
|
150
150
|
value: Z.description,
|
|
151
151
|
onChange: (e) => Q({
|
|
@@ -155,9 +155,9 @@ var z = [
|
|
|
155
155
|
rows: 3
|
|
156
156
|
})
|
|
157
157
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ E(p, {
|
|
159
159
|
label: "Visibility",
|
|
160
|
-
children: /* @__PURE__ */
|
|
160
|
+
children: /* @__PURE__ */ D("select", {
|
|
161
161
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
162
162
|
value: Z.visibility,
|
|
163
163
|
onChange: (e) => Q({
|
|
@@ -165,15 +165,15 @@ var z = [
|
|
|
165
165
|
visibility: e.target.value
|
|
166
166
|
}),
|
|
167
167
|
children: [
|
|
168
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ E("option", {
|
|
169
169
|
value: "PRIVATE",
|
|
170
170
|
children: "Private"
|
|
171
171
|
}),
|
|
172
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ E("option", {
|
|
173
173
|
value: "WORKSPACE",
|
|
174
174
|
children: "Workspace"
|
|
175
175
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ E("option", {
|
|
177
177
|
value: "PUBLIC",
|
|
178
178
|
children: "Public"
|
|
179
179
|
})
|
|
@@ -182,22 +182,22 @@ var z = [
|
|
|
182
182
|
})
|
|
183
183
|
]
|
|
184
184
|
})] }),
|
|
185
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ D(s, { children: [/* @__PURE__ */ D(u, { children: [/* @__PURE__ */ D(d, {
|
|
186
186
|
className: "flex items-center gap-2",
|
|
187
|
-
children: [/* @__PURE__ */
|
|
188
|
-
}), /* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ E(M, { size: 18 }), "Prompt Template"]
|
|
188
|
+
}), /* @__PURE__ */ E(l, { children: "Associate a prompt template with this skill" })] }), /* @__PURE__ */ E(c, { children: /* @__PURE__ */ E(p, {
|
|
189
189
|
label: "Prompt Template",
|
|
190
|
-
children: /* @__PURE__ */
|
|
190
|
+
children: /* @__PURE__ */ D("select", {
|
|
191
191
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
192
192
|
value: Z.promptTemplateId,
|
|
193
193
|
onChange: (e) => Q({
|
|
194
194
|
...Z,
|
|
195
195
|
promptTemplateId: e.target.value
|
|
196
196
|
}),
|
|
197
|
-
children: [/* @__PURE__ */
|
|
197
|
+
children: [/* @__PURE__ */ E("option", {
|
|
198
198
|
value: "",
|
|
199
199
|
children: "None"
|
|
200
|
-
}), G?.map((e) => /* @__PURE__ */
|
|
200
|
+
}), G?.map((e) => /* @__PURE__ */ D("option", {
|
|
201
201
|
value: e.id,
|
|
202
202
|
children: [
|
|
203
203
|
e.name,
|
|
@@ -208,32 +208,32 @@ var z = [
|
|
|
208
208
|
}, e.id))]
|
|
209
209
|
})
|
|
210
210
|
}) })] }),
|
|
211
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ D(s, { children: [/* @__PURE__ */ D(u, { children: [/* @__PURE__ */ D(d, {
|
|
212
212
|
className: "flex items-center gap-2",
|
|
213
|
-
children: [/* @__PURE__ */
|
|
214
|
-
}), /* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ E(F, { size: 18 }), "Tools Configuration"]
|
|
214
|
+
}), /* @__PURE__ */ E(l, { children: "Configure tool access for this skill" })] }), /* @__PURE__ */ D(c, {
|
|
215
215
|
className: "space-y-4",
|
|
216
|
-
children: [/* @__PURE__ */
|
|
216
|
+
children: [/* @__PURE__ */ E(p, {
|
|
217
217
|
label: "Tool Policy",
|
|
218
|
-
children: /* @__PURE__ */
|
|
218
|
+
children: /* @__PURE__ */ D("select", {
|
|
219
219
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
220
220
|
value: Z.toolPolicyId,
|
|
221
221
|
onChange: (e) => Q({
|
|
222
222
|
...Z,
|
|
223
223
|
toolPolicyId: e.target.value
|
|
224
224
|
}),
|
|
225
|
-
children: [/* @__PURE__ */
|
|
225
|
+
children: [/* @__PURE__ */ E("option", {
|
|
226
226
|
value: "",
|
|
227
227
|
children: "None"
|
|
228
|
-
}), Te.map((e) => /* @__PURE__ */
|
|
228
|
+
}), Te.map((e) => /* @__PURE__ */ E("option", {
|
|
229
229
|
value: e.id,
|
|
230
230
|
children: e.name
|
|
231
231
|
}, e.id))]
|
|
232
232
|
})
|
|
233
|
-
}), /* @__PURE__ */
|
|
233
|
+
}), /* @__PURE__ */ E(p, {
|
|
234
234
|
label: "Tool Pack Dependencies",
|
|
235
235
|
description: "Comma-separated package slugs",
|
|
236
|
-
children: /* @__PURE__ */
|
|
236
|
+
children: /* @__PURE__ */ E(m, {
|
|
237
237
|
placeholder: "e.g., @botlit/github-tools, @botlit/web-browser",
|
|
238
238
|
value: Z.toolPackDeps,
|
|
239
239
|
onChange: (e) => Q({
|
|
@@ -243,36 +243,36 @@ var z = [
|
|
|
243
243
|
})
|
|
244
244
|
})]
|
|
245
245
|
})] }),
|
|
246
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ D(s, { children: [/* @__PURE__ */ D(u, { children: [/* @__PURE__ */ D(d, {
|
|
247
247
|
className: "flex items-center gap-2",
|
|
248
|
-
children: [/* @__PURE__ */
|
|
249
|
-
}), /* @__PURE__ */
|
|
248
|
+
children: [/* @__PURE__ */ E(k, { size: 18 }), "Knowledge Configuration"]
|
|
249
|
+
}), /* @__PURE__ */ E(l, { children: "Configure knowledge retrieval for this skill" })] }), /* @__PURE__ */ E(c, { children: /* @__PURE__ */ E(p, {
|
|
250
250
|
label: "Retrieval Profile",
|
|
251
|
-
children: /* @__PURE__ */
|
|
251
|
+
children: /* @__PURE__ */ D("select", {
|
|
252
252
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
253
253
|
value: Z.retrievalProfileId,
|
|
254
254
|
onChange: (e) => Q({
|
|
255
255
|
...Z,
|
|
256
256
|
retrievalProfileId: e.target.value
|
|
257
257
|
}),
|
|
258
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ E("option", {
|
|
259
259
|
value: "",
|
|
260
260
|
children: "None"
|
|
261
|
-
}), K?.map((e) => /* @__PURE__ */
|
|
261
|
+
}), K?.map((e) => /* @__PURE__ */ E("option", {
|
|
262
262
|
value: e.id,
|
|
263
263
|
children: e.name
|
|
264
264
|
}, e.id))]
|
|
265
265
|
})
|
|
266
266
|
}) })] }),
|
|
267
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ D(s, { children: [/* @__PURE__ */ E(u, { children: /* @__PURE__ */ D(d, {
|
|
268
268
|
className: "flex items-center gap-2",
|
|
269
|
-
children: [/* @__PURE__ */
|
|
270
|
-
}) }), /* @__PURE__ */
|
|
269
|
+
children: [/* @__PURE__ */ E(P, { size: 18 }), "Policies & Capabilities"]
|
|
270
|
+
}) }), /* @__PURE__ */ D(c, {
|
|
271
271
|
className: "space-y-4",
|
|
272
|
-
children: [/* @__PURE__ */
|
|
272
|
+
children: [/* @__PURE__ */ E(p, {
|
|
273
273
|
label: "Recommended Policies",
|
|
274
274
|
description: "Comma-separated policy IDs",
|
|
275
|
-
children: /* @__PURE__ */
|
|
275
|
+
children: /* @__PURE__ */ E(m, {
|
|
276
276
|
placeholder: "e.g., content-policy-1, budget-policy-1",
|
|
277
277
|
value: Z.recommendedPolicies,
|
|
278
278
|
onChange: (e) => Q({
|
|
@@ -280,17 +280,17 @@ var z = [
|
|
|
280
280
|
recommendedPolicies: e.target.value
|
|
281
281
|
})
|
|
282
282
|
})
|
|
283
|
-
}), /* @__PURE__ */
|
|
283
|
+
}), /* @__PURE__ */ D("div", {
|
|
284
284
|
className: "space-y-2",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ E("p", {
|
|
286
286
|
className: "text-sm font-medium",
|
|
287
287
|
children: "Capability Requirements"
|
|
288
|
-
}), /* @__PURE__ */
|
|
288
|
+
}), /* @__PURE__ */ D("div", {
|
|
289
289
|
className: "flex flex-wrap gap-4",
|
|
290
290
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ D("label", {
|
|
292
292
|
className: "flex items-center gap-2",
|
|
293
|
-
children: [/* @__PURE__ */
|
|
293
|
+
children: [/* @__PURE__ */ E("input", {
|
|
294
294
|
type: "checkbox",
|
|
295
295
|
checked: Z.requiresTools,
|
|
296
296
|
onChange: (e) => Q({
|
|
@@ -298,14 +298,14 @@ var z = [
|
|
|
298
298
|
requiresTools: e.target.checked
|
|
299
299
|
}),
|
|
300
300
|
className: "h-4 w-4"
|
|
301
|
-
}), /* @__PURE__ */
|
|
301
|
+
}), /* @__PURE__ */ E("span", {
|
|
302
302
|
className: "text-sm",
|
|
303
303
|
children: "Requires Tools"
|
|
304
304
|
})]
|
|
305
305
|
}),
|
|
306
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ D("label", {
|
|
307
307
|
className: "flex items-center gap-2",
|
|
308
|
-
children: [/* @__PURE__ */
|
|
308
|
+
children: [/* @__PURE__ */ E("input", {
|
|
309
309
|
type: "checkbox",
|
|
310
310
|
checked: Z.requiresKnowledge,
|
|
311
311
|
onChange: (e) => Q({
|
|
@@ -313,14 +313,14 @@ var z = [
|
|
|
313
313
|
requiresKnowledge: e.target.checked
|
|
314
314
|
}),
|
|
315
315
|
className: "h-4 w-4"
|
|
316
|
-
}), /* @__PURE__ */
|
|
316
|
+
}), /* @__PURE__ */ E("span", {
|
|
317
317
|
className: "text-sm",
|
|
318
318
|
children: "Requires Knowledge"
|
|
319
319
|
})]
|
|
320
320
|
}),
|
|
321
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ D("label", {
|
|
322
322
|
className: "flex items-center gap-2",
|
|
323
|
-
children: [/* @__PURE__ */
|
|
323
|
+
children: [/* @__PURE__ */ E("input", {
|
|
324
324
|
type: "checkbox",
|
|
325
325
|
checked: Z.requiresA2A,
|
|
326
326
|
onChange: (e) => Q({
|
|
@@ -328,7 +328,7 @@ var z = [
|
|
|
328
328
|
requiresA2A: e.target.checked
|
|
329
329
|
}),
|
|
330
330
|
className: "h-4 w-4"
|
|
331
|
-
}), /* @__PURE__ */
|
|
331
|
+
}), /* @__PURE__ */ E("span", {
|
|
332
332
|
className: "text-sm",
|
|
333
333
|
children: "Requires A2A"
|
|
334
334
|
})]
|
|
@@ -340,123 +340,123 @@ var z = [
|
|
|
340
340
|
]
|
|
341
341
|
})
|
|
342
342
|
});
|
|
343
|
-
if (de) return /* @__PURE__ */
|
|
343
|
+
if (de) return /* @__PURE__ */ E(o, {
|
|
344
344
|
title: "Loading...",
|
|
345
|
-
children: /* @__PURE__ */
|
|
345
|
+
children: /* @__PURE__ */ E("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
346
346
|
});
|
|
347
|
-
if (!W) return /* @__PURE__ */
|
|
347
|
+
if (!W) return /* @__PURE__ */ E(o, {
|
|
348
348
|
title: "Skill Not Found",
|
|
349
|
-
children: /* @__PURE__ */
|
|
349
|
+
children: /* @__PURE__ */ E(ee, {
|
|
350
350
|
illustration: "empty-generic",
|
|
351
351
|
title: "Skill Not Found",
|
|
352
352
|
description: "This skill doesn't exist.",
|
|
353
|
-
action: /* @__PURE__ */
|
|
353
|
+
action: /* @__PURE__ */ E(f, {
|
|
354
354
|
onClick: () => H("skills"),
|
|
355
355
|
children: "Back to Skills"
|
|
356
356
|
})
|
|
357
357
|
})
|
|
358
358
|
});
|
|
359
|
-
let $ = ({ label: e, enabled: t }) => /* @__PURE__ */
|
|
359
|
+
let $ = ({ label: e, enabled: t }) => /* @__PURE__ */ D("div", {
|
|
360
360
|
className: "flex items-center gap-2",
|
|
361
|
-
children: [t ? /* @__PURE__ */
|
|
361
|
+
children: [t ? /* @__PURE__ */ E(ce, { className: "h-4 w-4 text-green-500" }) : /* @__PURE__ */ E(I, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ E("span", {
|
|
362
362
|
className: t ? "text-text-primary" : "text-text-secondary",
|
|
363
363
|
children: e
|
|
364
364
|
})]
|
|
365
365
|
});
|
|
366
|
-
return /* @__PURE__ */
|
|
367
|
-
title: /* @__PURE__ */
|
|
366
|
+
return /* @__PURE__ */ E(o, {
|
|
367
|
+
title: /* @__PURE__ */ D("div", {
|
|
368
368
|
className: "flex items-center gap-3",
|
|
369
369
|
children: [
|
|
370
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ E(f, {
|
|
371
371
|
variant: "ghost",
|
|
372
372
|
size: "icon",
|
|
373
373
|
onClick: () => H("skills"),
|
|
374
|
-
children: /* @__PURE__ */
|
|
374
|
+
children: /* @__PURE__ */ E(se, { size: 20 })
|
|
375
375
|
}),
|
|
376
|
-
/* @__PURE__ */
|
|
376
|
+
/* @__PURE__ */ E("div", {
|
|
377
377
|
className: "p-2 rounded-lg bg-action-primary-bg/10",
|
|
378
|
-
children: /* @__PURE__ */
|
|
378
|
+
children: /* @__PURE__ */ E(L, { className: "h-6 w-6 text-primary" })
|
|
379
379
|
}),
|
|
380
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
|
|
381
381
|
className: "flex items-center gap-2",
|
|
382
|
-
children: [/* @__PURE__ */
|
|
383
|
-
}), /* @__PURE__ */
|
|
382
|
+
children: [/* @__PURE__ */ E("span", { children: W.name }), /* @__PURE__ */ E(_, { status: W.status })]
|
|
383
|
+
}), /* @__PURE__ */ E("p", {
|
|
384
384
|
className: "text-sm font-normal text-text-secondary",
|
|
385
385
|
children: W.description
|
|
386
386
|
})] })
|
|
387
387
|
]
|
|
388
388
|
}),
|
|
389
|
-
actions: /* @__PURE__ */
|
|
389
|
+
actions: /* @__PURE__ */ E("div", {
|
|
390
390
|
className: "flex gap-2",
|
|
391
|
-
children: J ? /* @__PURE__ */
|
|
391
|
+
children: J ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(f, {
|
|
392
392
|
variant: "outline",
|
|
393
393
|
onClick: () => Y(!1),
|
|
394
394
|
children: "Cancel"
|
|
395
|
-
}), /* @__PURE__ */
|
|
396
|
-
leftIcon: /* @__PURE__ */
|
|
395
|
+
}), /* @__PURE__ */ E(f, {
|
|
396
|
+
leftIcon: /* @__PURE__ */ E(N, { size: 16 }),
|
|
397
397
|
onClick: xe,
|
|
398
398
|
isLoading: he,
|
|
399
399
|
disabled: !Z.name,
|
|
400
400
|
children: "Save Changes"
|
|
401
|
-
})] }) : /* @__PURE__ */
|
|
402
|
-
permission:
|
|
403
|
-
children: /* @__PURE__ */
|
|
401
|
+
})] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(a, {
|
|
402
|
+
permission: i.SKILL_UPDATE,
|
|
403
|
+
children: /* @__PURE__ */ E(f, {
|
|
404
404
|
variant: "outline",
|
|
405
|
-
leftIcon: /* @__PURE__ */
|
|
405
|
+
leftIcon: /* @__PURE__ */ E(A, { size: 16 }),
|
|
406
406
|
onClick: we,
|
|
407
407
|
children: "Edit"
|
|
408
408
|
})
|
|
409
|
-
}), ve ? /* @__PURE__ */
|
|
409
|
+
}), ve ? /* @__PURE__ */ D("div", {
|
|
410
410
|
className: "flex gap-2",
|
|
411
|
-
children: [/* @__PURE__ */
|
|
411
|
+
children: [/* @__PURE__ */ E(f, {
|
|
412
412
|
variant: "outline",
|
|
413
413
|
size: "sm",
|
|
414
414
|
onClick: () => X(!1),
|
|
415
415
|
children: "Cancel"
|
|
416
|
-
}), /* @__PURE__ */
|
|
416
|
+
}), /* @__PURE__ */ E(f, {
|
|
417
417
|
variant: "destructive",
|
|
418
418
|
size: "sm",
|
|
419
419
|
onClick: () => {
|
|
420
|
-
|
|
420
|
+
n("medium"), Ce();
|
|
421
421
|
},
|
|
422
422
|
isLoading: _e,
|
|
423
423
|
children: "Confirm Delete"
|
|
424
424
|
})]
|
|
425
|
-
}) : /* @__PURE__ */
|
|
426
|
-
permission:
|
|
427
|
-
children: /* @__PURE__ */
|
|
425
|
+
}) : /* @__PURE__ */ E(a, {
|
|
426
|
+
permission: i.SKILL_DELETE,
|
|
427
|
+
children: /* @__PURE__ */ E(f, {
|
|
428
428
|
variant: "destructive",
|
|
429
|
-
leftIcon: /* @__PURE__ */
|
|
429
|
+
leftIcon: /* @__PURE__ */ E(ue, { size: 16 }),
|
|
430
430
|
onClick: () => X(!0),
|
|
431
431
|
children: "Delete"
|
|
432
432
|
})
|
|
433
433
|
})] })
|
|
434
434
|
}),
|
|
435
|
-
children: /* @__PURE__ */
|
|
435
|
+
children: /* @__PURE__ */ D("div", {
|
|
436
436
|
className: "space-y-6",
|
|
437
437
|
children: [
|
|
438
|
-
/* @__PURE__ */
|
|
439
|
-
icon: /* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ E(w, {
|
|
439
|
+
icon: /* @__PURE__ */ E(L, { size: 18 }),
|
|
440
440
|
children: "This skill bundles a prompt, a set of tools and a knowledge profile into one reusable capability. Review what it includes and the policies it recommends, then attach it to any agent to grant all of those abilities at once — keeping your agents consistent without re-wiring the same pieces every time."
|
|
441
441
|
}),
|
|
442
|
-
J && /* @__PURE__ */
|
|
442
|
+
J && /* @__PURE__ */ D(s, { children: [/* @__PURE__ */ E(u, { children: /* @__PURE__ */ E(d, { children: "Edit Skill" }) }), /* @__PURE__ */ D(c, {
|
|
443
443
|
className: "space-y-4",
|
|
444
444
|
children: [
|
|
445
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ D("div", {
|
|
446
446
|
className: "grid grid-cols-2 gap-4",
|
|
447
|
-
children: [/* @__PURE__ */
|
|
447
|
+
children: [/* @__PURE__ */ E(p, {
|
|
448
448
|
label: "Skill Name",
|
|
449
449
|
required: !0,
|
|
450
|
-
children: /* @__PURE__ */
|
|
450
|
+
children: /* @__PURE__ */ E(m, {
|
|
451
451
|
value: Z.name,
|
|
452
452
|
onChange: (e) => Q({
|
|
453
453
|
...Z,
|
|
454
454
|
name: e.target.value
|
|
455
455
|
})
|
|
456
456
|
})
|
|
457
|
-
}), /* @__PURE__ */
|
|
457
|
+
}), /* @__PURE__ */ E(p, {
|
|
458
458
|
label: "Visibility",
|
|
459
|
-
children: /* @__PURE__ */
|
|
459
|
+
children: /* @__PURE__ */ D("select", {
|
|
460
460
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
461
461
|
value: Z.visibility,
|
|
462
462
|
onChange: (e) => Q({
|
|
@@ -464,15 +464,15 @@ var z = [
|
|
|
464
464
|
visibility: e.target.value
|
|
465
465
|
}),
|
|
466
466
|
children: [
|
|
467
|
-
/* @__PURE__ */
|
|
467
|
+
/* @__PURE__ */ E("option", {
|
|
468
468
|
value: "PRIVATE",
|
|
469
469
|
children: "Private"
|
|
470
470
|
}),
|
|
471
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ E("option", {
|
|
472
472
|
value: "WORKSPACE",
|
|
473
473
|
children: "Workspace"
|
|
474
474
|
}),
|
|
475
|
-
/* @__PURE__ */
|
|
475
|
+
/* @__PURE__ */ E("option", {
|
|
476
476
|
value: "PUBLIC",
|
|
477
477
|
children: "Public"
|
|
478
478
|
})
|
|
@@ -480,9 +480,9 @@ var z = [
|
|
|
480
480
|
})
|
|
481
481
|
})]
|
|
482
482
|
}),
|
|
483
|
-
/* @__PURE__ */
|
|
483
|
+
/* @__PURE__ */ E(p, {
|
|
484
484
|
label: "Description",
|
|
485
|
-
children: /* @__PURE__ */
|
|
485
|
+
children: /* @__PURE__ */ E(h, {
|
|
486
486
|
value: Z.description,
|
|
487
487
|
onChange: (e) => Q({
|
|
488
488
|
...Z,
|
|
@@ -491,48 +491,48 @@ var z = [
|
|
|
491
491
|
rows: 2
|
|
492
492
|
})
|
|
493
493
|
}),
|
|
494
|
-
/* @__PURE__ */
|
|
494
|
+
/* @__PURE__ */ D("div", {
|
|
495
495
|
className: "grid grid-cols-2 gap-4",
|
|
496
|
-
children: [/* @__PURE__ */
|
|
496
|
+
children: [/* @__PURE__ */ E(p, {
|
|
497
497
|
label: "Prompt Template",
|
|
498
|
-
children: /* @__PURE__ */
|
|
498
|
+
children: /* @__PURE__ */ D("select", {
|
|
499
499
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
500
500
|
value: Z.promptTemplateId,
|
|
501
501
|
onChange: (e) => Q({
|
|
502
502
|
...Z,
|
|
503
503
|
promptTemplateId: e.target.value
|
|
504
504
|
}),
|
|
505
|
-
children: [/* @__PURE__ */
|
|
505
|
+
children: [/* @__PURE__ */ E("option", {
|
|
506
506
|
value: "",
|
|
507
507
|
children: "None"
|
|
508
|
-
}), G?.map((e) => /* @__PURE__ */
|
|
508
|
+
}), G?.map((e) => /* @__PURE__ */ E("option", {
|
|
509
509
|
value: e.id,
|
|
510
510
|
children: e.name
|
|
511
511
|
}, e.id))]
|
|
512
512
|
})
|
|
513
|
-
}), /* @__PURE__ */
|
|
513
|
+
}), /* @__PURE__ */ E(p, {
|
|
514
514
|
label: "Retrieval Profile",
|
|
515
|
-
children: /* @__PURE__ */
|
|
515
|
+
children: /* @__PURE__ */ D("select", {
|
|
516
516
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
517
517
|
value: Z.retrievalProfileId,
|
|
518
518
|
onChange: (e) => Q({
|
|
519
519
|
...Z,
|
|
520
520
|
retrievalProfileId: e.target.value
|
|
521
521
|
}),
|
|
522
|
-
children: [/* @__PURE__ */
|
|
522
|
+
children: [/* @__PURE__ */ E("option", {
|
|
523
523
|
value: "",
|
|
524
524
|
children: "None"
|
|
525
|
-
}), K?.map((e) => /* @__PURE__ */
|
|
525
|
+
}), K?.map((e) => /* @__PURE__ */ E("option", {
|
|
526
526
|
value: e.id,
|
|
527
527
|
children: e.name
|
|
528
528
|
}, e.id))]
|
|
529
529
|
})
|
|
530
530
|
})]
|
|
531
531
|
}),
|
|
532
|
-
/* @__PURE__ */
|
|
532
|
+
/* @__PURE__ */ E(p, {
|
|
533
533
|
label: "Tool Pack Dependencies",
|
|
534
534
|
description: "Comma-separated",
|
|
535
|
-
children: /* @__PURE__ */
|
|
535
|
+
children: /* @__PURE__ */ E(m, {
|
|
536
536
|
value: Z.toolPackDeps,
|
|
537
537
|
onChange: (e) => Q({
|
|
538
538
|
...Z,
|
|
@@ -541,12 +541,12 @@ var z = [
|
|
|
541
541
|
placeholder: "e.g., @botlit/github-tools, @botlit/web-browser"
|
|
542
542
|
})
|
|
543
543
|
}),
|
|
544
|
-
/* @__PURE__ */
|
|
544
|
+
/* @__PURE__ */ D("div", {
|
|
545
545
|
className: "flex gap-4",
|
|
546
546
|
children: [
|
|
547
|
-
/* @__PURE__ */
|
|
547
|
+
/* @__PURE__ */ D("label", {
|
|
548
548
|
className: "flex items-center gap-2",
|
|
549
|
-
children: [/* @__PURE__ */
|
|
549
|
+
children: [/* @__PURE__ */ E("input", {
|
|
550
550
|
type: "checkbox",
|
|
551
551
|
checked: Z.requiresTools,
|
|
552
552
|
onChange: (e) => Q({
|
|
@@ -554,14 +554,14 @@ var z = [
|
|
|
554
554
|
requiresTools: e.target.checked
|
|
555
555
|
}),
|
|
556
556
|
className: "h-4 w-4"
|
|
557
|
-
}), /* @__PURE__ */
|
|
557
|
+
}), /* @__PURE__ */ E("span", {
|
|
558
558
|
className: "text-sm",
|
|
559
559
|
children: "Requires Tools"
|
|
560
560
|
})]
|
|
561
561
|
}),
|
|
562
|
-
/* @__PURE__ */
|
|
562
|
+
/* @__PURE__ */ D("label", {
|
|
563
563
|
className: "flex items-center gap-2",
|
|
564
|
-
children: [/* @__PURE__ */
|
|
564
|
+
children: [/* @__PURE__ */ E("input", {
|
|
565
565
|
type: "checkbox",
|
|
566
566
|
checked: Z.requiresKnowledge,
|
|
567
567
|
onChange: (e) => Q({
|
|
@@ -569,14 +569,14 @@ var z = [
|
|
|
569
569
|
requiresKnowledge: e.target.checked
|
|
570
570
|
}),
|
|
571
571
|
className: "h-4 w-4"
|
|
572
|
-
}), /* @__PURE__ */
|
|
572
|
+
}), /* @__PURE__ */ E("span", {
|
|
573
573
|
className: "text-sm",
|
|
574
574
|
children: "Requires Knowledge"
|
|
575
575
|
})]
|
|
576
576
|
}),
|
|
577
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ D("label", {
|
|
578
578
|
className: "flex items-center gap-2",
|
|
579
|
-
children: [/* @__PURE__ */
|
|
579
|
+
children: [/* @__PURE__ */ E("input", {
|
|
580
580
|
type: "checkbox",
|
|
581
581
|
checked: Z.requiresA2A,
|
|
582
582
|
onChange: (e) => Q({
|
|
@@ -584,7 +584,7 @@ var z = [
|
|
|
584
584
|
requiresA2A: e.target.checked
|
|
585
585
|
}),
|
|
586
586
|
className: "h-4 w-4"
|
|
587
|
-
}), /* @__PURE__ */
|
|
587
|
+
}), /* @__PURE__ */ E("span", {
|
|
588
588
|
className: "text-sm",
|
|
589
589
|
children: "Requires A2A"
|
|
590
590
|
})]
|
|
@@ -593,184 +593,184 @@ var z = [
|
|
|
593
593
|
})
|
|
594
594
|
]
|
|
595
595
|
})] }),
|
|
596
|
-
/* @__PURE__ */
|
|
596
|
+
/* @__PURE__ */ D("div", {
|
|
597
597
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
598
598
|
children: [
|
|
599
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ E(s, {
|
|
600
600
|
treatment: "glass",
|
|
601
601
|
glow: !0,
|
|
602
|
-
children: /* @__PURE__ */
|
|
602
|
+
children: /* @__PURE__ */ D(c, {
|
|
603
603
|
className: "pt-6 text-center",
|
|
604
604
|
children: [
|
|
605
|
-
/* @__PURE__ */
|
|
605
|
+
/* @__PURE__ */ E("div", {
|
|
606
606
|
className: "p-3 rounded-full bg-action-primary-bg/10 w-fit mx-auto mb-2",
|
|
607
|
-
children: /* @__PURE__ */
|
|
607
|
+
children: /* @__PURE__ */ E(L, { className: "h-5 w-5 text-primary" })
|
|
608
608
|
}),
|
|
609
|
-
/* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ E("p", {
|
|
610
610
|
className: "text-lg font-bold capitalize",
|
|
611
611
|
children: W.visibility.toLowerCase()
|
|
612
612
|
}),
|
|
613
|
-
/* @__PURE__ */
|
|
613
|
+
/* @__PURE__ */ E("p", {
|
|
614
614
|
className: "text-sm text-text-secondary",
|
|
615
615
|
children: "Visibility"
|
|
616
616
|
})
|
|
617
617
|
]
|
|
618
618
|
})
|
|
619
619
|
}),
|
|
620
|
-
/* @__PURE__ */
|
|
620
|
+
/* @__PURE__ */ E(s, { children: /* @__PURE__ */ D(c, {
|
|
621
621
|
className: "pt-6 text-center",
|
|
622
|
-
children: [/* @__PURE__ */
|
|
622
|
+
children: [/* @__PURE__ */ E("p", {
|
|
623
623
|
className: "text-3xl font-bold text-text-primary",
|
|
624
624
|
children: W.toolPackDeps.length
|
|
625
|
-
}), /* @__PURE__ */
|
|
625
|
+
}), /* @__PURE__ */ E("p", {
|
|
626
626
|
className: "text-sm text-text-secondary",
|
|
627
627
|
children: "Tool Packs"
|
|
628
628
|
})]
|
|
629
629
|
}) }),
|
|
630
|
-
/* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ E(s, { children: /* @__PURE__ */ D(c, {
|
|
631
631
|
className: "pt-6 text-center",
|
|
632
|
-
children: [/* @__PURE__ */
|
|
632
|
+
children: [/* @__PURE__ */ E("p", {
|
|
633
633
|
className: "text-3xl font-bold text-text-primary",
|
|
634
634
|
children: W.recommendedPolicies.length
|
|
635
|
-
}), /* @__PURE__ */
|
|
635
|
+
}), /* @__PURE__ */ E("p", {
|
|
636
636
|
className: "text-sm text-text-secondary",
|
|
637
637
|
children: "Policies"
|
|
638
638
|
})]
|
|
639
639
|
}) }),
|
|
640
|
-
/* @__PURE__ */
|
|
640
|
+
/* @__PURE__ */ E(s, { children: /* @__PURE__ */ D(c, {
|
|
641
641
|
className: "pt-6 text-center",
|
|
642
|
-
children: [/* @__PURE__ */
|
|
642
|
+
children: [/* @__PURE__ */ E("p", {
|
|
643
643
|
className: "text-3xl font-bold text-text-primary",
|
|
644
644
|
children: W.revision
|
|
645
|
-
}), /* @__PURE__ */
|
|
645
|
+
}), /* @__PURE__ */ E("p", {
|
|
646
646
|
className: "text-sm text-text-secondary",
|
|
647
647
|
children: "Revision"
|
|
648
648
|
})]
|
|
649
649
|
}) })
|
|
650
650
|
]
|
|
651
651
|
}),
|
|
652
|
-
/* @__PURE__ */
|
|
652
|
+
/* @__PURE__ */ D(s, { children: [/* @__PURE__ */ D(u, { children: [/* @__PURE__ */ E(d, { children: "Capability Requirements" }), /* @__PURE__ */ E(l, { children: "What this skill requires from agents" })] }), /* @__PURE__ */ E(c, { children: /* @__PURE__ */ D("div", {
|
|
653
653
|
className: "flex gap-8",
|
|
654
654
|
children: [
|
|
655
|
-
/* @__PURE__ */
|
|
655
|
+
/* @__PURE__ */ E($, {
|
|
656
656
|
label: "Tools",
|
|
657
|
-
enabled:
|
|
657
|
+
enabled: x(W.capabilityFlags, "requiresTools")
|
|
658
658
|
}),
|
|
659
|
-
/* @__PURE__ */
|
|
659
|
+
/* @__PURE__ */ E($, {
|
|
660
660
|
label: "Knowledge",
|
|
661
|
-
enabled:
|
|
661
|
+
enabled: x(W.capabilityFlags, "requiresKnowledge")
|
|
662
662
|
}),
|
|
663
|
-
/* @__PURE__ */
|
|
663
|
+
/* @__PURE__ */ E($, {
|
|
664
664
|
label: "A2A",
|
|
665
|
-
enabled:
|
|
665
|
+
enabled: x(W.capabilityFlags, "requiresA2A")
|
|
666
666
|
})
|
|
667
667
|
]
|
|
668
668
|
}) })] }),
|
|
669
|
-
/* @__PURE__ */
|
|
669
|
+
/* @__PURE__ */ D("div", {
|
|
670
670
|
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
671
|
-
children: [/* @__PURE__ */
|
|
671
|
+
children: [/* @__PURE__ */ D(s, { children: [/* @__PURE__ */ E(u, { children: /* @__PURE__ */ D(d, {
|
|
672
672
|
className: "flex items-center gap-2",
|
|
673
|
-
children: [/* @__PURE__ */
|
|
674
|
-
}) }), /* @__PURE__ */
|
|
673
|
+
children: [/* @__PURE__ */ E(M, { size: 18 }), "Prompt Template"]
|
|
674
|
+
}) }), /* @__PURE__ */ E(c, { children: W.promptTemplateId ? /* @__PURE__ */ E("div", {
|
|
675
675
|
className: "p-4 bg-bg-sunken rounded-lg",
|
|
676
|
-
children: /* @__PURE__ */
|
|
676
|
+
children: /* @__PURE__ */ D("div", {
|
|
677
677
|
className: "flex items-center justify-between",
|
|
678
|
-
children: [/* @__PURE__ */
|
|
678
|
+
children: [/* @__PURE__ */ E("span", {
|
|
679
679
|
className: "font-medium",
|
|
680
680
|
children: W.promptTemplateId
|
|
681
|
-
}), /* @__PURE__ */
|
|
681
|
+
}), /* @__PURE__ */ E(O, {
|
|
682
682
|
to: U(`prompt-templates/${W.promptTemplateId}`),
|
|
683
|
-
children: /* @__PURE__ */
|
|
683
|
+
children: /* @__PURE__ */ E(f, {
|
|
684
684
|
variant: "ghost",
|
|
685
685
|
size: "sm",
|
|
686
|
-
children: /* @__PURE__ */
|
|
686
|
+
children: /* @__PURE__ */ E(j, { size: 14 })
|
|
687
687
|
})
|
|
688
688
|
})]
|
|
689
689
|
})
|
|
690
|
-
}) : /* @__PURE__ */
|
|
690
|
+
}) : /* @__PURE__ */ E("p", {
|
|
691
691
|
className: "text-text-secondary",
|
|
692
692
|
children: "No prompt template associated"
|
|
693
|
-
}) })] }), /* @__PURE__ */
|
|
693
|
+
}) })] }), /* @__PURE__ */ D(s, { children: [/* @__PURE__ */ E(u, { children: /* @__PURE__ */ D(d, {
|
|
694
694
|
className: "flex items-center gap-2",
|
|
695
|
-
children: [/* @__PURE__ */
|
|
696
|
-
}) }), /* @__PURE__ */
|
|
695
|
+
children: [/* @__PURE__ */ E(k, { size: 18 }), "Retrieval Profile"]
|
|
696
|
+
}) }), /* @__PURE__ */ E(c, { children: W.retrievalProfileId ? /* @__PURE__ */ E("div", {
|
|
697
697
|
className: "p-4 bg-bg-sunken rounded-lg",
|
|
698
|
-
children: /* @__PURE__ */
|
|
698
|
+
children: /* @__PURE__ */ D("div", {
|
|
699
699
|
className: "flex items-center justify-between",
|
|
700
|
-
children: [/* @__PURE__ */
|
|
700
|
+
children: [/* @__PURE__ */ E("span", {
|
|
701
701
|
className: "font-medium",
|
|
702
702
|
children: W.retrievalProfileId
|
|
703
|
-
}), /* @__PURE__ */
|
|
703
|
+
}), /* @__PURE__ */ E(O, {
|
|
704
704
|
to: U(`retrieval-profiles/${W.retrievalProfileId}`),
|
|
705
|
-
children: /* @__PURE__ */
|
|
705
|
+
children: /* @__PURE__ */ E(f, {
|
|
706
706
|
variant: "ghost",
|
|
707
707
|
size: "sm",
|
|
708
|
-
children: /* @__PURE__ */
|
|
708
|
+
children: /* @__PURE__ */ E(j, { size: 14 })
|
|
709
709
|
})
|
|
710
710
|
})]
|
|
711
711
|
})
|
|
712
|
-
}) : /* @__PURE__ */
|
|
712
|
+
}) : /* @__PURE__ */ E("p", {
|
|
713
713
|
className: "text-text-secondary",
|
|
714
714
|
children: "No retrieval profile associated"
|
|
715
715
|
}) })] })]
|
|
716
716
|
}),
|
|
717
|
-
/* @__PURE__ */
|
|
717
|
+
/* @__PURE__ */ D(s, { children: [/* @__PURE__ */ E(u, { children: /* @__PURE__ */ D(d, {
|
|
718
718
|
className: "flex items-center gap-2",
|
|
719
|
-
children: [/* @__PURE__ */
|
|
720
|
-
}) }), /* @__PURE__ */
|
|
719
|
+
children: [/* @__PURE__ */ E(F, { size: 18 }), "Tool Pack Dependencies"]
|
|
720
|
+
}) }), /* @__PURE__ */ E(c, { children: W.toolPackDeps.length > 0 ? /* @__PURE__ */ E("div", {
|
|
721
721
|
className: "flex flex-wrap gap-2",
|
|
722
|
-
children: W.toolPackDeps.map((e) => /* @__PURE__ */
|
|
722
|
+
children: W.toolPackDeps.map((e) => /* @__PURE__ */ E(g, {
|
|
723
723
|
variant: "secondary",
|
|
724
724
|
className: "font-mono",
|
|
725
725
|
children: e
|
|
726
726
|
}, e))
|
|
727
|
-
}) : /* @__PURE__ */
|
|
727
|
+
}) : /* @__PURE__ */ E("p", {
|
|
728
728
|
className: "text-text-secondary",
|
|
729
729
|
children: "No tool pack dependencies"
|
|
730
730
|
}) })] }),
|
|
731
|
-
/* @__PURE__ */
|
|
731
|
+
/* @__PURE__ */ D(s, { children: [/* @__PURE__ */ E(u, { children: /* @__PURE__ */ D(d, {
|
|
732
732
|
className: "flex items-center gap-2",
|
|
733
|
-
children: [/* @__PURE__ */
|
|
734
|
-
}) }), /* @__PURE__ */
|
|
733
|
+
children: [/* @__PURE__ */ E(P, { size: 18 }), "Recommended Policies"]
|
|
734
|
+
}) }), /* @__PURE__ */ E(c, { children: W.recommendedPolicies.length > 0 ? /* @__PURE__ */ E("div", {
|
|
735
735
|
className: "flex flex-wrap gap-2",
|
|
736
|
-
children: W.recommendedPolicies.map((e) => /* @__PURE__ */
|
|
736
|
+
children: W.recommendedPolicies.map((e) => /* @__PURE__ */ E(g, {
|
|
737
737
|
variant: "outline",
|
|
738
738
|
children: e
|
|
739
739
|
}, e))
|
|
740
|
-
}) : /* @__PURE__ */
|
|
740
|
+
}) : /* @__PURE__ */ E("p", {
|
|
741
741
|
className: "text-text-secondary",
|
|
742
742
|
children: "No recommended policies"
|
|
743
743
|
}) })] }),
|
|
744
|
-
/* @__PURE__ */
|
|
744
|
+
/* @__PURE__ */ D(s, { children: [/* @__PURE__ */ E(u, { children: /* @__PURE__ */ D(d, {
|
|
745
745
|
className: "flex items-center gap-2",
|
|
746
|
-
children: [/* @__PURE__ */
|
|
747
|
-
}) }), /* @__PURE__ */
|
|
746
|
+
children: [/* @__PURE__ */ E(le, { size: 18 }), "Metadata"]
|
|
747
|
+
}) }), /* @__PURE__ */ E(c, { children: /* @__PURE__ */ D("div", {
|
|
748
748
|
className: "grid grid-cols-2 md:grid-cols-4 gap-6 text-sm",
|
|
749
749
|
children: [
|
|
750
|
-
/* @__PURE__ */
|
|
750
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
751
751
|
className: "text-text-secondary",
|
|
752
752
|
children: "Created"
|
|
753
|
-
}), /* @__PURE__ */
|
|
753
|
+
}), /* @__PURE__ */ E("p", {
|
|
754
754
|
className: "font-medium",
|
|
755
|
-
children:
|
|
755
|
+
children: v(W.createdAt)
|
|
756
756
|
})] }),
|
|
757
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
758
758
|
className: "text-text-secondary",
|
|
759
759
|
children: "Updated"
|
|
760
|
-
}), /* @__PURE__ */
|
|
760
|
+
}), /* @__PURE__ */ E("p", {
|
|
761
761
|
className: "font-medium",
|
|
762
|
-
children:
|
|
762
|
+
children: v(W.updatedAt)
|
|
763
763
|
})] }),
|
|
764
|
-
/* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
765
765
|
className: "text-text-secondary",
|
|
766
766
|
children: "Tags"
|
|
767
|
-
}), /* @__PURE__ */
|
|
767
|
+
}), /* @__PURE__ */ E("div", {
|
|
768
768
|
className: "flex gap-1",
|
|
769
|
-
children: W.tags.length > 0 ? W.tags.map((e) => /* @__PURE__ */
|
|
769
|
+
children: W.tags.length > 0 ? W.tags.map((e) => /* @__PURE__ */ E(g, {
|
|
770
770
|
variant: "secondary",
|
|
771
771
|
className: "text-xs",
|
|
772
772
|
children: e
|
|
773
|
-
}, e)) : /* @__PURE__ */
|
|
773
|
+
}, e)) : /* @__PURE__ */ E("span", {
|
|
774
774
|
className: "text-text-secondary",
|
|
775
775
|
children: "None"
|
|
776
776
|
})
|
|
@@ -781,7 +781,6 @@ var z = [
|
|
|
781
781
|
})
|
|
782
782
|
});
|
|
783
783
|
};
|
|
784
|
-
//#endregion
|
|
785
784
|
export { B as SkillDetailPage };
|
|
786
785
|
|
|
787
786
|
//# sourceMappingURL=SkillDetailPage.js.map
|