@burdenoff/microfe-botmanor 2026.1108.1 → 2026.1109.2
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 -52
- 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 +54 -55
- package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
- 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 +1 -2
- 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 +35 -0
- package/dist/botlit/hooks/index.js +16 -16
- 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 +20 -19
- package/dist/botlit/hooks/useAiOperations.js.map +1 -1
- 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 +62 -0
- package/dist/botlit/hooks/useBuckets.js +91 -58
- 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/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 +15 -0
- package/dist/botlit/index.js +11 -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 +83 -84
- 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 +52 -53
- package/dist/botlit/pages/AiOperationsPage.js.map +1 -1
- 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 +353 -358
- 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/BucketDetailPage.d.ts +2 -0
- package/dist/botlit/pages/BucketDetailPage.js +251 -0
- package/dist/botlit/pages/BucketDetailPage.js.map +1 -0
- 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/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 +38 -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 +88 -84
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +152017 -0
- package/dist/generated/wspace-types.js +1 -2
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -6
- 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
- package/dist/botlit/hooks/useConversations.js +0 -64
- package/dist/botlit/hooks/useConversations.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
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 {
|
|
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 { Badge as p, StatusBadge as te } from "../components/Badge.js";
|
|
10
|
+
import { FormField as m, Input as h, Textarea as ne } from "../components/Input.js";
|
|
11
|
+
import { useCreateRetrievalProfile as g, useDeleteRetrievalProfile as _, useRetrievalProfile as v, useUpdateRetrievalProfile as y } from "../hooks/useRetrievalProfiles.js";
|
|
12
|
+
import { formatRelativeTime as b } from "../utils/formatters.js";
|
|
7
13
|
import "../permissions/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { useCreateRetrievalProfile as v, useDeleteRetrievalProfile as y, useRetrievalProfile as b, useUpdateRetrievalProfile as x } from "../hooks/useRetrievalProfiles.js";
|
|
14
|
-
import { useEffect as S, useState as C } from "react";
|
|
15
|
-
import { PagePurpose as w } from "@burdenoff/fe-libs/ui";
|
|
16
|
-
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
17
|
-
import { useParams as ne } from "react-router";
|
|
18
|
-
import { ArrowLeft as O, CheckSquare as k, Edit as A, FileText as j, Search as M, Settings as N, Target as re, Trash2 as ie } from "lucide-react";
|
|
14
|
+
import { useEffect as x, useState as S } from "react";
|
|
15
|
+
import { PagePurpose as C } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
17
|
+
import { useParams as re } from "react-router";
|
|
18
|
+
import { ArrowLeft as D, CheckSquare as O, Edit as k, FileText as A, Search as j, Settings as M, Target as N, Trash2 as ie } from "lucide-react";
|
|
19
19
|
import { toast as P } from "sonner";
|
|
20
|
-
|
|
20
|
+
// src/botlit/pages/RetrievalProfileDetailPage.tsx
|
|
21
21
|
var F = {
|
|
22
22
|
name: "",
|
|
23
23
|
description: "",
|
|
@@ -85,31 +85,28 @@ function V(e, t) {
|
|
|
85
85
|
return e.trim() !== "" && Number.isFinite(n) ? n : t;
|
|
86
86
|
}
|
|
87
87
|
var H = ({ isNew: R = !1 }) => {
|
|
88
|
-
let { profileId: H } =
|
|
89
|
-
if (
|
|
88
|
+
let { profileId: H } = re(), { navigateTo: U } = e(), { data: W, loading: G, refetch: K } = v(R ? void 0 : H), { create: q, loading: J } = g(), { update: ae, loading: oe } = y(), { remove: se, loading: ce } = _(), [Y, X] = S(R), [le, Z] = S(!1), [Q, $] = S(F);
|
|
89
|
+
if (x(() => {
|
|
90
90
|
W && !R && $(z(W));
|
|
91
|
-
}, [W, R]), G && !R) return /* @__PURE__ */
|
|
91
|
+
}, [W, R]), G && !R) return /* @__PURE__ */ T(o, {
|
|
92
92
|
title: "Loading...",
|
|
93
|
-
children: /* @__PURE__ */
|
|
93
|
+
children: /* @__PURE__ */ T("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
94
94
|
});
|
|
95
|
-
if (!W && !R) return /* @__PURE__ */
|
|
95
|
+
if (!W && !R) return /* @__PURE__ */ T(o, {
|
|
96
96
|
title: "Profile Not Found",
|
|
97
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ T(ee, {
|
|
98
98
|
illustration: "empty-files",
|
|
99
99
|
title: "Profile Not Found",
|
|
100
100
|
description: "The retrieval profile doesn't exist.",
|
|
101
|
-
action: /* @__PURE__ */
|
|
101
|
+
action: /* @__PURE__ */ T(f, {
|
|
102
102
|
onClick: () => U("retrieval-profiles"),
|
|
103
103
|
children: "Back to Profiles"
|
|
104
104
|
})
|
|
105
105
|
})
|
|
106
106
|
});
|
|
107
107
|
let ue = async () => {
|
|
108
|
-
if (!Q.name.trim())
|
|
109
|
-
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
try {
|
|
108
|
+
if (!Q.name.trim()) P.error("Name is required");
|
|
109
|
+
else try {
|
|
113
110
|
if (R) {
|
|
114
111
|
let e = await q(B(Q));
|
|
115
112
|
P.success(`Profile "${e.name}" created`), U(`retrieval-profiles/${e.id}`);
|
|
@@ -125,99 +122,95 @@ var H = ({ isNew: R = !1 }) => {
|
|
|
125
122
|
}
|
|
126
123
|
}, de = async () => {
|
|
127
124
|
if (H) try {
|
|
128
|
-
await se(H),
|
|
125
|
+
await se(H), t() && r("success"), P.success("Retrieval profile deleted"), U("retrieval-profiles");
|
|
129
126
|
} catch (e) {
|
|
130
|
-
|
|
127
|
+
t() && r("error"), P.error(e instanceof Error ? e.message : "Failed to delete retrieval profile");
|
|
131
128
|
}
|
|
132
129
|
};
|
|
133
|
-
return /* @__PURE__ */
|
|
134
|
-
title: /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ T(o, {
|
|
131
|
+
title: /* @__PURE__ */ E("div", {
|
|
135
132
|
className: "flex items-center gap-3",
|
|
136
133
|
children: [
|
|
137
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ T(f, {
|
|
138
135
|
variant: "ghost",
|
|
139
136
|
size: "icon",
|
|
140
137
|
onClick: () => U("retrieval-profiles"),
|
|
141
|
-
children: /* @__PURE__ */
|
|
138
|
+
children: /* @__PURE__ */ T(D, { size: 20 })
|
|
142
139
|
}),
|
|
143
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ T(j, {
|
|
144
141
|
size: 24,
|
|
145
142
|
className: "text-primary"
|
|
146
143
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("div", {
|
|
148
145
|
className: "flex items-center gap-2",
|
|
149
|
-
children: [/* @__PURE__ */
|
|
150
|
-
}), !R && W?.description && /* @__PURE__ */
|
|
146
|
+
children: [/* @__PURE__ */ T("span", { children: R ? "New Retrieval Profile" : W?.name }), !R && W && /* @__PURE__ */ T(te, { status: W.status })]
|
|
147
|
+
}), !R && W?.description && /* @__PURE__ */ T("p", {
|
|
151
148
|
className: "text-sm font-normal text-text-secondary",
|
|
152
149
|
children: W.description
|
|
153
150
|
})] })
|
|
154
151
|
]
|
|
155
152
|
}),
|
|
156
|
-
actions: /* @__PURE__ */
|
|
153
|
+
actions: /* @__PURE__ */ T("div", {
|
|
157
154
|
className: "flex gap-2",
|
|
158
|
-
children: Y ? /* @__PURE__ */
|
|
155
|
+
children: Y ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(f, {
|
|
159
156
|
variant: "outline",
|
|
160
157
|
onClick: () => {
|
|
161
|
-
|
|
162
|
-
U("retrieval-profiles");
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
W && $(z(W)), X(!1);
|
|
158
|
+
R ? U("retrieval-profiles") : (W && $(z(W)), X(!1));
|
|
166
159
|
},
|
|
167
160
|
children: "Cancel"
|
|
168
|
-
}), /* @__PURE__ */
|
|
161
|
+
}), /* @__PURE__ */ T(f, {
|
|
169
162
|
onClick: ue,
|
|
170
163
|
isLoading: J || oe,
|
|
171
164
|
children: R ? "Create Profile" : "Save Changes"
|
|
172
|
-
})] }) : /* @__PURE__ */
|
|
173
|
-
permission:
|
|
174
|
-
children: /* @__PURE__ */
|
|
165
|
+
})] }) : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(a, {
|
|
166
|
+
permission: i.RETRIEVAL_PROFILE_UPDATE,
|
|
167
|
+
children: /* @__PURE__ */ T(f, {
|
|
175
168
|
variant: "outline",
|
|
176
|
-
leftIcon: /* @__PURE__ */
|
|
169
|
+
leftIcon: /* @__PURE__ */ T(k, { size: 16 }),
|
|
177
170
|
onClick: () => {
|
|
178
171
|
W && $(z(W)), X(!0);
|
|
179
172
|
},
|
|
180
173
|
children: "Edit"
|
|
181
174
|
})
|
|
182
|
-
}), le ? /* @__PURE__ */
|
|
175
|
+
}), le ? /* @__PURE__ */ E("div", {
|
|
183
176
|
className: "flex gap-2",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ T(f, {
|
|
185
178
|
variant: "outline",
|
|
186
179
|
size: "sm",
|
|
187
180
|
onClick: () => Z(!1),
|
|
188
181
|
children: "Cancel"
|
|
189
|
-
}), /* @__PURE__ */
|
|
182
|
+
}), /* @__PURE__ */ T(f, {
|
|
190
183
|
variant: "destructive",
|
|
191
184
|
size: "sm",
|
|
192
185
|
onClick: () => {
|
|
193
|
-
|
|
186
|
+
n("medium"), de();
|
|
194
187
|
},
|
|
195
188
|
isLoading: ce,
|
|
196
189
|
children: "Confirm Delete"
|
|
197
190
|
})]
|
|
198
|
-
}) : /* @__PURE__ */
|
|
199
|
-
permission:
|
|
200
|
-
children: /* @__PURE__ */
|
|
191
|
+
}) : /* @__PURE__ */ T(a, {
|
|
192
|
+
permission: i.RETRIEVAL_PROFILE_DELETE,
|
|
193
|
+
children: /* @__PURE__ */ T(f, {
|
|
201
194
|
variant: "destructive",
|
|
202
|
-
leftIcon: /* @__PURE__ */
|
|
195
|
+
leftIcon: /* @__PURE__ */ T(ie, { size: 16 }),
|
|
203
196
|
onClick: () => Z(!0),
|
|
204
197
|
children: "Delete"
|
|
205
198
|
})
|
|
206
199
|
})] })
|
|
207
200
|
}),
|
|
208
|
-
children: /* @__PURE__ */
|
|
201
|
+
children: /* @__PURE__ */ E("div", {
|
|
209
202
|
className: "space-y-6",
|
|
210
203
|
children: [
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
icon: /* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ T(C, {
|
|
205
|
+
icon: /* @__PURE__ */ T(M, { size: 18 }),
|
|
213
206
|
children: "This profile defines exactly how an agent searches your knowledge — the retrieval mode, how many results to pull, whether to rerank them and whether to rewrite the query first. Adjust the strategy here to dial in the balance between answer accuracy and speed, then attach the profile to the agents that should use it."
|
|
214
207
|
}),
|
|
215
|
-
Y ? /* @__PURE__ */
|
|
208
|
+
Y ? /* @__PURE__ */ E(s, { children: [/* @__PURE__ */ T(u, { children: /* @__PURE__ */ T(d, { children: "Basic Information" }) }), /* @__PURE__ */ E(c, {
|
|
216
209
|
className: "space-y-4",
|
|
217
|
-
children: [/* @__PURE__ */
|
|
210
|
+
children: [/* @__PURE__ */ T(m, {
|
|
218
211
|
label: "Name",
|
|
219
212
|
required: !0,
|
|
220
|
-
children: /* @__PURE__ */
|
|
213
|
+
children: /* @__PURE__ */ T(h, {
|
|
221
214
|
value: Q.name,
|
|
222
215
|
onChange: (e) => $({
|
|
223
216
|
...Q,
|
|
@@ -225,9 +218,9 @@ var H = ({ isNew: R = !1 }) => {
|
|
|
225
218
|
}),
|
|
226
219
|
placeholder: "e.g., Default Hybrid Search"
|
|
227
220
|
})
|
|
228
|
-
}), /* @__PURE__ */
|
|
221
|
+
}), /* @__PURE__ */ T(m, {
|
|
229
222
|
label: "Description",
|
|
230
|
-
children: /* @__PURE__ */
|
|
223
|
+
children: /* @__PURE__ */ T(ne, {
|
|
231
224
|
value: Q.description,
|
|
232
225
|
onChange: (e) => $({
|
|
233
226
|
...Q,
|
|
@@ -238,22 +231,22 @@ var H = ({ isNew: R = !1 }) => {
|
|
|
238
231
|
})
|
|
239
232
|
})]
|
|
240
233
|
})] }) : null,
|
|
241
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ E(s, {
|
|
242
235
|
treatment: "glass",
|
|
243
236
|
glow: !0,
|
|
244
|
-
children: [/* @__PURE__ */
|
|
237
|
+
children: [/* @__PURE__ */ E(u, { children: [/* @__PURE__ */ E(d, {
|
|
245
238
|
className: "flex items-center gap-2",
|
|
246
|
-
children: [/* @__PURE__ */
|
|
247
|
-
}), /* @__PURE__ */
|
|
239
|
+
children: [/* @__PURE__ */ T(M, { size: 18 }), "Retrieval Strategy"]
|
|
240
|
+
}), /* @__PURE__ */ T(l, { children: "How documents are searched and ranked" })] }), /* @__PURE__ */ T(c, {
|
|
248
241
|
className: "space-y-4",
|
|
249
|
-
children: Y ? /* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */
|
|
242
|
+
children: Y ? /* @__PURE__ */ E(w, { children: [
|
|
243
|
+
/* @__PURE__ */ T(m, {
|
|
251
244
|
label: "Retrieval Mode",
|
|
252
|
-
children: /* @__PURE__ */
|
|
245
|
+
children: /* @__PURE__ */ T("div", {
|
|
253
246
|
className: "flex gap-4",
|
|
254
|
-
children: I.map((e) => /* @__PURE__ */
|
|
247
|
+
children: I.map((e) => /* @__PURE__ */ E("label", {
|
|
255
248
|
className: "flex items-center gap-2",
|
|
256
|
-
children: [/* @__PURE__ */
|
|
249
|
+
children: [/* @__PURE__ */ T("input", {
|
|
257
250
|
type: "radio",
|
|
258
251
|
name: "strategyMode",
|
|
259
252
|
checked: Q.strategyMode === e,
|
|
@@ -261,18 +254,18 @@ var H = ({ isNew: R = !1 }) => {
|
|
|
261
254
|
...Q,
|
|
262
255
|
strategyMode: e
|
|
263
256
|
})
|
|
264
|
-
}), /* @__PURE__ */
|
|
257
|
+
}), /* @__PURE__ */ T("span", {
|
|
265
258
|
className: "capitalize",
|
|
266
259
|
children: e.replace("_", " ")
|
|
267
260
|
})]
|
|
268
261
|
}, e))
|
|
269
262
|
})
|
|
270
263
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ E("div", {
|
|
272
265
|
className: "grid grid-cols-2 gap-4",
|
|
273
|
-
children: [/* @__PURE__ */
|
|
266
|
+
children: [/* @__PURE__ */ T(m, {
|
|
274
267
|
label: "Top K Results",
|
|
275
|
-
children: /* @__PURE__ */
|
|
268
|
+
children: /* @__PURE__ */ T(h, {
|
|
276
269
|
type: "number",
|
|
277
270
|
value: Q.topK,
|
|
278
271
|
onChange: (e) => $({
|
|
@@ -280,91 +273,91 @@ var H = ({ isNew: R = !1 }) => {
|
|
|
280
273
|
topK: V(e.target.value, F.topK)
|
|
281
274
|
})
|
|
282
275
|
})
|
|
283
|
-
}), /* @__PURE__ */
|
|
276
|
+
}), /* @__PURE__ */ T(m, {
|
|
284
277
|
label: "Reranker",
|
|
285
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ E("select", {
|
|
286
279
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
287
280
|
value: Q.reranker,
|
|
288
281
|
onChange: (e) => $({
|
|
289
282
|
...Q,
|
|
290
283
|
reranker: L(e.target.value)
|
|
291
284
|
}),
|
|
292
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ T("option", {
|
|
293
286
|
value: "OFF",
|
|
294
287
|
children: "Disabled"
|
|
295
|
-
}), /* @__PURE__ */
|
|
288
|
+
}), /* @__PURE__ */ T("option", {
|
|
296
289
|
value: "ON",
|
|
297
290
|
children: "Enabled"
|
|
298
291
|
})]
|
|
299
292
|
})
|
|
300
293
|
})]
|
|
301
294
|
}),
|
|
302
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ E("div", {
|
|
303
296
|
className: "grid grid-cols-2 gap-4",
|
|
304
|
-
children: [/* @__PURE__ */
|
|
297
|
+
children: [/* @__PURE__ */ T(m, {
|
|
305
298
|
label: "Query Rewrite",
|
|
306
|
-
children: /* @__PURE__ */
|
|
299
|
+
children: /* @__PURE__ */ E("select", {
|
|
307
300
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
308
301
|
value: Q.queryRewrite,
|
|
309
302
|
onChange: (e) => $({
|
|
310
303
|
...Q,
|
|
311
304
|
queryRewrite: L(e.target.value)
|
|
312
305
|
}),
|
|
313
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ T("option", {
|
|
314
307
|
value: "OFF",
|
|
315
308
|
children: "Disabled"
|
|
316
|
-
}), /* @__PURE__ */
|
|
309
|
+
}), /* @__PURE__ */ T("option", {
|
|
317
310
|
value: "ON",
|
|
318
311
|
children: "Enabled"
|
|
319
312
|
})]
|
|
320
313
|
})
|
|
321
|
-
}), /* @__PURE__ */
|
|
314
|
+
}), /* @__PURE__ */ T(m, {
|
|
322
315
|
label: "Multi-Hop",
|
|
323
|
-
children: /* @__PURE__ */
|
|
316
|
+
children: /* @__PURE__ */ E("select", {
|
|
324
317
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
325
318
|
value: Q.multiHop,
|
|
326
319
|
onChange: (e) => $({
|
|
327
320
|
...Q,
|
|
328
321
|
multiHop: L(e.target.value)
|
|
329
322
|
}),
|
|
330
|
-
children: [/* @__PURE__ */
|
|
323
|
+
children: [/* @__PURE__ */ T("option", {
|
|
331
324
|
value: "OFF",
|
|
332
325
|
children: "Disabled"
|
|
333
|
-
}), /* @__PURE__ */
|
|
326
|
+
}), /* @__PURE__ */ T("option", {
|
|
334
327
|
value: "ON",
|
|
335
328
|
children: "Enabled"
|
|
336
329
|
})]
|
|
337
330
|
})
|
|
338
331
|
})]
|
|
339
332
|
})
|
|
340
|
-
] }) : /* @__PURE__ */
|
|
333
|
+
] }) : /* @__PURE__ */ E("div", {
|
|
341
334
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
342
335
|
children: [
|
|
343
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
344
337
|
className: "text-sm text-text-secondary",
|
|
345
338
|
children: "Mode"
|
|
346
|
-
}), /* @__PURE__ */
|
|
339
|
+
}), /* @__PURE__ */ T(p, {
|
|
347
340
|
variant: "outline",
|
|
348
341
|
children: W?.strategyMode
|
|
349
342
|
})] }),
|
|
350
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
351
344
|
className: "text-sm text-text-secondary",
|
|
352
345
|
children: "Top K"
|
|
353
|
-
}), /* @__PURE__ */
|
|
346
|
+
}), /* @__PURE__ */ T("p", {
|
|
354
347
|
className: "font-medium",
|
|
355
348
|
children: W?.topK
|
|
356
349
|
})] }),
|
|
357
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
358
351
|
className: "text-sm text-text-secondary",
|
|
359
352
|
children: "Reranker"
|
|
360
|
-
}), /* @__PURE__ */
|
|
353
|
+
}), /* @__PURE__ */ T(p, {
|
|
361
354
|
variant: W?.reranker === "ON" ? "success" : "secondary",
|
|
362
355
|
children: W?.reranker
|
|
363
356
|
})] }),
|
|
364
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
365
358
|
className: "text-sm text-text-secondary",
|
|
366
359
|
children: "Query Rewrite"
|
|
367
|
-
}), /* @__PURE__ */
|
|
360
|
+
}), /* @__PURE__ */ T(p, {
|
|
368
361
|
variant: W?.queryRewrite === "ON" ? "success" : "secondary",
|
|
369
362
|
children: W?.queryRewrite
|
|
370
363
|
})] })
|
|
@@ -372,41 +365,41 @@ var H = ({ isNew: R = !1 }) => {
|
|
|
372
365
|
})
|
|
373
366
|
})]
|
|
374
367
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ E(s, { children: [/* @__PURE__ */ E(u, { children: [/* @__PURE__ */ E(d, {
|
|
376
369
|
className: "flex items-center gap-2",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
378
|
-
}), /* @__PURE__ */
|
|
370
|
+
children: [/* @__PURE__ */ T(A, { size: 18 }), "Grounding & Citations"]
|
|
371
|
+
}), /* @__PURE__ */ T(l, { children: "How sources are cited in responses" })] }), /* @__PURE__ */ T(c, {
|
|
379
372
|
className: "space-y-4",
|
|
380
|
-
children: Y ? /* @__PURE__ */
|
|
381
|
-
/* @__PURE__ */
|
|
373
|
+
children: Y ? /* @__PURE__ */ E(w, { children: [
|
|
374
|
+
/* @__PURE__ */ E("div", {
|
|
382
375
|
className: "flex items-center gap-4",
|
|
383
|
-
children: [/* @__PURE__ */
|
|
376
|
+
children: [/* @__PURE__ */ E("label", {
|
|
384
377
|
className: "flex items-center gap-2",
|
|
385
|
-
children: [/* @__PURE__ */
|
|
378
|
+
children: [/* @__PURE__ */ T("input", {
|
|
386
379
|
type: "checkbox",
|
|
387
380
|
checked: Q.citationsRequired,
|
|
388
381
|
onChange: (e) => $({
|
|
389
382
|
...Q,
|
|
390
383
|
citationsRequired: e.target.checked
|
|
391
384
|
})
|
|
392
|
-
}), /* @__PURE__ */
|
|
393
|
-
}), /* @__PURE__ */
|
|
385
|
+
}), /* @__PURE__ */ T("span", { children: "Citations Required" })]
|
|
386
|
+
}), /* @__PURE__ */ E("label", {
|
|
394
387
|
className: "flex items-center gap-2",
|
|
395
|
-
children: [/* @__PURE__ */
|
|
388
|
+
children: [/* @__PURE__ */ T("input", {
|
|
396
389
|
type: "checkbox",
|
|
397
390
|
checked: Q.showSources,
|
|
398
391
|
onChange: (e) => $({
|
|
399
392
|
...Q,
|
|
400
393
|
showSources: e.target.checked
|
|
401
394
|
})
|
|
402
|
-
}), /* @__PURE__ */
|
|
395
|
+
}), /* @__PURE__ */ T("span", { children: "Show Sources" })]
|
|
403
396
|
})]
|
|
404
397
|
}),
|
|
405
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ E("div", {
|
|
406
399
|
className: "grid grid-cols-2 gap-4",
|
|
407
|
-
children: [/* @__PURE__ */
|
|
400
|
+
children: [/* @__PURE__ */ T(m, {
|
|
408
401
|
label: "Min Sources",
|
|
409
|
-
children: /* @__PURE__ */
|
|
402
|
+
children: /* @__PURE__ */ T(h, {
|
|
410
403
|
type: "number",
|
|
411
404
|
value: Q.minSources,
|
|
412
405
|
onChange: (e) => $({
|
|
@@ -414,9 +407,9 @@ var H = ({ isNew: R = !1 }) => {
|
|
|
414
407
|
minSources: V(e.target.value, F.minSources)
|
|
415
408
|
})
|
|
416
409
|
})
|
|
417
|
-
}), /* @__PURE__ */
|
|
410
|
+
}), /* @__PURE__ */ T(m, {
|
|
418
411
|
label: "Max Snippet Chars",
|
|
419
|
-
children: /* @__PURE__ */
|
|
412
|
+
children: /* @__PURE__ */ T(h, {
|
|
420
413
|
type: "number",
|
|
421
414
|
value: Q.snippetMaxChars,
|
|
422
415
|
onChange: (e) => $({
|
|
@@ -426,9 +419,9 @@ var H = ({ isNew: R = !1 }) => {
|
|
|
426
419
|
})
|
|
427
420
|
})]
|
|
428
421
|
}),
|
|
429
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ T(m, {
|
|
430
423
|
label: "Citation Format Template",
|
|
431
|
-
children: /* @__PURE__ */
|
|
424
|
+
children: /* @__PURE__ */ T(h, {
|
|
432
425
|
value: Q.citationFormat,
|
|
433
426
|
onChange: (e) => $({
|
|
434
427
|
...Q,
|
|
@@ -437,50 +430,50 @@ var H = ({ isNew: R = !1 }) => {
|
|
|
437
430
|
placeholder: "[{index}]"
|
|
438
431
|
})
|
|
439
432
|
})
|
|
440
|
-
] }) : /* @__PURE__ */
|
|
433
|
+
] }) : /* @__PURE__ */ E("div", {
|
|
441
434
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
442
435
|
children: [
|
|
443
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
444
437
|
className: "text-sm text-text-secondary",
|
|
445
438
|
children: "Citations Required"
|
|
446
|
-
}), /* @__PURE__ */
|
|
439
|
+
}), /* @__PURE__ */ T(p, {
|
|
447
440
|
variant: W?.citationsRequired ? "success" : "secondary",
|
|
448
441
|
children: W?.citationsRequired ? "Yes" : "No"
|
|
449
442
|
})] }),
|
|
450
|
-
/* @__PURE__ */
|
|
443
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
451
444
|
className: "text-sm text-text-secondary",
|
|
452
445
|
children: "Min Sources"
|
|
453
|
-
}), /* @__PURE__ */
|
|
446
|
+
}), /* @__PURE__ */ T("p", {
|
|
454
447
|
className: "font-medium",
|
|
455
448
|
children: W?.minSources
|
|
456
449
|
})] }),
|
|
457
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
458
451
|
className: "text-sm text-text-secondary",
|
|
459
452
|
children: "Max Snippet"
|
|
460
|
-
}), /* @__PURE__ */
|
|
453
|
+
}), /* @__PURE__ */ E("p", {
|
|
461
454
|
className: "font-medium",
|
|
462
455
|
children: [W?.snippetMaxChars, " chars"]
|
|
463
456
|
})] }),
|
|
464
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
465
458
|
className: "text-sm text-text-secondary",
|
|
466
459
|
children: "Citation Format"
|
|
467
|
-
}), /* @__PURE__ */
|
|
460
|
+
}), /* @__PURE__ */ T("code", {
|
|
468
461
|
className: "text-sm",
|
|
469
462
|
children: W?.citationFormat ?? "—"
|
|
470
463
|
})] })
|
|
471
464
|
]
|
|
472
465
|
})
|
|
473
466
|
})] }),
|
|
474
|
-
/* @__PURE__ */
|
|
467
|
+
/* @__PURE__ */ E(s, { children: [/* @__PURE__ */ E(u, { children: [/* @__PURE__ */ E(d, {
|
|
475
468
|
className: "flex items-center gap-2",
|
|
476
|
-
children: [/* @__PURE__ */
|
|
477
|
-
}), /* @__PURE__ */
|
|
469
|
+
children: [/* @__PURE__ */ T(N, { size: 18 }), "Relevance Thresholds"]
|
|
470
|
+
}), /* @__PURE__ */ T(l, { children: "Minimum quality requirements for results" })] }), /* @__PURE__ */ T(c, {
|
|
478
471
|
className: "space-y-4",
|
|
479
|
-
children: Y ? /* @__PURE__ */
|
|
472
|
+
children: Y ? /* @__PURE__ */ E("div", {
|
|
480
473
|
className: "grid grid-cols-2 gap-4",
|
|
481
|
-
children: [/* @__PURE__ */
|
|
474
|
+
children: [/* @__PURE__ */ T(m, {
|
|
482
475
|
label: "Min Relevance Score (0-1)",
|
|
483
|
-
children: /* @__PURE__ */
|
|
476
|
+
children: /* @__PURE__ */ T(h, {
|
|
484
477
|
type: "number",
|
|
485
478
|
step: "0.1",
|
|
486
479
|
min: "0",
|
|
@@ -491,68 +484,68 @@ var H = ({ isNew: R = !1 }) => {
|
|
|
491
484
|
minRelevanceScore: V(e.target.value, F.minRelevanceScore)
|
|
492
485
|
})
|
|
493
486
|
})
|
|
494
|
-
}), /* @__PURE__ */
|
|
487
|
+
}), /* @__PURE__ */ T("div", {
|
|
495
488
|
className: "flex items-center",
|
|
496
|
-
children: /* @__PURE__ */
|
|
489
|
+
children: /* @__PURE__ */ E("label", {
|
|
497
490
|
className: "flex items-center gap-2",
|
|
498
|
-
children: [/* @__PURE__ */
|
|
491
|
+
children: [/* @__PURE__ */ T("input", {
|
|
499
492
|
type: "checkbox",
|
|
500
493
|
checked: Q.noAnswerIfBelowThreshold,
|
|
501
494
|
onChange: (e) => $({
|
|
502
495
|
...Q,
|
|
503
496
|
noAnswerIfBelowThreshold: e.target.checked
|
|
504
497
|
})
|
|
505
|
-
}), /* @__PURE__ */
|
|
498
|
+
}), /* @__PURE__ */ T("span", { children: "No Answer if Below Threshold" })]
|
|
506
499
|
})
|
|
507
500
|
})]
|
|
508
|
-
}) : /* @__PURE__ */
|
|
501
|
+
}) : /* @__PURE__ */ E("div", {
|
|
509
502
|
className: "grid grid-cols-2 gap-4",
|
|
510
|
-
children: [/* @__PURE__ */
|
|
503
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
511
504
|
className: "text-sm text-text-secondary",
|
|
512
505
|
children: "Min Relevance Score"
|
|
513
|
-
}), /* @__PURE__ */
|
|
506
|
+
}), /* @__PURE__ */ T("p", {
|
|
514
507
|
className: "font-medium",
|
|
515
508
|
children: W?.minRelevanceScore ?? "Not set"
|
|
516
|
-
})] }), /* @__PURE__ */
|
|
509
|
+
})] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
517
510
|
className: "text-sm text-text-secondary",
|
|
518
511
|
children: "No Answer Below Threshold"
|
|
519
|
-
}), /* @__PURE__ */
|
|
512
|
+
}), /* @__PURE__ */ T(p, {
|
|
520
513
|
variant: W?.noAnswerIfBelowThreshold ? "warning" : "secondary",
|
|
521
514
|
children: W?.noAnswerIfBelowThreshold ? "Yes" : "No"
|
|
522
515
|
})] })]
|
|
523
516
|
})
|
|
524
517
|
})] }),
|
|
525
|
-
!R && W && /* @__PURE__ */
|
|
518
|
+
!R && W && /* @__PURE__ */ E(s, { children: [/* @__PURE__ */ T(u, { children: /* @__PURE__ */ E(d, {
|
|
526
519
|
className: "flex items-center gap-2",
|
|
527
|
-
children: [/* @__PURE__ */
|
|
528
|
-
}) }), /* @__PURE__ */
|
|
520
|
+
children: [/* @__PURE__ */ T(O, { size: 18 }), "Metadata"]
|
|
521
|
+
}) }), /* @__PURE__ */ T(c, { children: /* @__PURE__ */ E("div", {
|
|
529
522
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",
|
|
530
523
|
children: [
|
|
531
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
532
525
|
className: "text-text-secondary",
|
|
533
526
|
children: "Created"
|
|
534
|
-
}), /* @__PURE__ */
|
|
527
|
+
}), /* @__PURE__ */ T("p", {
|
|
535
528
|
className: "font-medium",
|
|
536
|
-
children:
|
|
529
|
+
children: b(W.createdAt)
|
|
537
530
|
})] }),
|
|
538
|
-
/* @__PURE__ */
|
|
531
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
539
532
|
className: "text-text-secondary",
|
|
540
533
|
children: "Updated"
|
|
541
|
-
}), /* @__PURE__ */
|
|
534
|
+
}), /* @__PURE__ */ T("p", {
|
|
542
535
|
className: "font-medium",
|
|
543
|
-
children:
|
|
536
|
+
children: b(W.updatedAt)
|
|
544
537
|
})] }),
|
|
545
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
546
539
|
className: "text-text-secondary",
|
|
547
540
|
children: "Revision"
|
|
548
|
-
}), /* @__PURE__ */
|
|
541
|
+
}), /* @__PURE__ */ T("p", {
|
|
549
542
|
className: "font-medium",
|
|
550
543
|
children: W.revision
|
|
551
544
|
})] }),
|
|
552
|
-
/* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
553
546
|
className: "text-text-secondary",
|
|
554
547
|
children: "Visibility"
|
|
555
|
-
}), /* @__PURE__ */
|
|
548
|
+
}), /* @__PURE__ */ T(p, {
|
|
556
549
|
variant: "outline",
|
|
557
550
|
children: W.visibility
|
|
558
551
|
})] })
|
|
@@ -562,7 +555,6 @@ var H = ({ isNew: R = !1 }) => {
|
|
|
562
555
|
})
|
|
563
556
|
});
|
|
564
557
|
};
|
|
565
|
-
//#endregion
|
|
566
558
|
export { H as RetrievalProfileDetailPage };
|
|
567
559
|
|
|
568
560
|
//# sourceMappingURL=RetrievalProfileDetailPage.js.map
|