@burdenoff/microfe-botmanor 2026.819.1 → 2026.925.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.js.map +1 -1
- package/dist/botlit/BotmanorRoot.js.map +1 -1
- package/dist/botlit/BotmanorRootInner.js +4 -4
- package/dist/botlit/BotmanorRootInner.js.map +1 -1
- package/dist/botlit/components/ErrorState.js +33 -29
- package/dist/botlit/components/ErrorState.js.map +1 -1
- package/dist/botlit/components/RouteLoader.js +52 -48
- package/dist/botlit/components/RouteLoader.js.map +1 -1
- package/dist/botlit/components/VersionHistoryPanel.js +74 -77
- package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
- package/dist/botlit/components/WorkspaceRequired.js +31 -30
- package/dist/botlit/components/WorkspaceRequired.js.map +1 -1
- package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
- package/dist/botlit/hooks/useConversations.js.map +1 -1
- package/dist/botlit/hooks/useLLMProviders.js.map +1 -1
- package/dist/botlit/hooks/useMCPServers.js +60 -49
- package/dist/botlit/hooks/useMCPServers.js.map +1 -1
- package/dist/botlit/pages/A2AAgentDetailPage.js +1 -1
- package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/A2ARegistryPage.js +116 -124
- package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.js +169 -172
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentsListPage.js +96 -90
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.js +228 -231
- package/dist/botlit/pages/BotDetailPage.js.map +1 -1
- package/dist/botlit/pages/BotWorkflowTab.js +84 -87
- package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
- package/dist/botlit/pages/BotsListPage.js +144 -147
- package/dist/botlit/pages/BotsListPage.js.map +1 -1
- package/dist/botlit/pages/BucketsPage.js +3 -3
- package/dist/botlit/pages/BucketsPage.js.map +1 -1
- package/dist/botlit/pages/ChannelDetailPage.js +1 -1
- package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
- package/dist/botlit/pages/ChannelsPage.js +156 -149
- package/dist/botlit/pages/ChannelsPage.js.map +1 -1
- package/dist/botlit/pages/ChatPage.js +126 -129
- package/dist/botlit/pages/ChatPage.js.map +1 -1
- package/dist/botlit/pages/DashboardPage.js +111 -114
- package/dist/botlit/pages/DashboardPage.js.map +1 -1
- package/dist/botlit/pages/ExecutionsPage.js +163 -159
- package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
- package/dist/botlit/pages/InstalledPackagesPage.js +3 -3
- package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
- package/dist/botlit/pages/KnowledgeBasesPage.js +84 -78
- package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.js +295 -238
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/MCPServersPage.js +159 -154
- package/dist/botlit/pages/MCPServersPage.js.map +1 -1
- package/dist/botlit/pages/PoliciesPage.js +119 -114
- package/dist/botlit/pages/PoliciesPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfilesPage.js +102 -109
- package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
- package/dist/botlit/pages/SettingsPage.js +144 -159
- package/dist/botlit/pages/SettingsPage.js.map +1 -1
- package/dist/botlit/pages/SkillsPage.js +122 -105
- package/dist/botlit/pages/SkillsPage.js.map +1 -1
- package/dist/botlit/pages/StorePage.js +176 -175
- package/dist/botlit/pages/StorePage.js.map +1 -1
- package/dist/botlit/providers/BotlitProvider.js.map +1 -1
- package/dist/botlit/store/botlitStore.js +1 -1
- package/dist/botlit/store/botlitStore.js.map +1 -1
- package/dist/botlit/utils/navigation.js.map +1 -1
- package/dist/generated/wspace-operations.js +45 -29
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/shared/hooks/useTr.js +14 -0
- package/dist/shared/hooks/useTr.js.map +1 -0
- package/package.json +33 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BotlitProvider.js","names":[],"sources":["../../../src/botlit/providers/BotlitProvider.tsx"],"sourcesContent":["/**\n *
|
|
1
|
+
{"version":3,"file":"BotlitProvider.js","names":[],"sources":["../../../src/botlit/providers/BotlitProvider.tsx"],"sourcesContent":["/**\n * BotManor Context Provider\n * @module botlit/providers\n */\n\nimport type { FC, PropsWithChildren } from 'react';\nimport { createContext, useContext, useMemo, useCallback } from 'react';\nimport { MemoryRouter, useNavigate as useRouterNavigate } from 'react-router';\nimport type { BotmanorRootProps } from '../types';\nimport { joinPath } from '../utils/navigation';\n\n// ============================================================================\n// Context\n// ============================================================================\n\ninterface BotlitContextValue extends Omit<\n BotmanorRootProps,\n 'registerNavItems' | 'registerFooterItems' | 'navigate'\n> {\n isStandalone: boolean;\n /** Shell's navigate function (only available in integrated mode) */\n navigate?: (path: string) => void;\n /** Navigate to a path relative to basePath */\n navigateTo: (relativePath: string) => void;\n /** Get the full path for a relative path */\n getPath: (relativePath: string) => string;\n}\n\nconst BotlitContext = createContext<BotlitContextValue | null>(null);\n\n// ============================================================================\n// Hook\n// ============================================================================\n\nexport function useBotlit(): BotlitContextValue {\n const context = useContext(BotlitContext);\n if (!context) {\n throw new Error('useBotlit must be used within a BotlitProvider');\n }\n return context;\n}\n\n// ============================================================================\n// Provider Component\n// ============================================================================\n\ntype ProviderProps = Omit<BotmanorRootProps, 'registerNavItems' | 'registerFooterItems'> & {\n isStandalone: boolean;\n};\n\n/** Provider for standalone mode (has access to MemoryRouter) */\nconst StandaloneProviderInner: FC<PropsWithChildren<ProviderProps>> = ({\n children,\n basePath,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n onBotSelect,\n onAgentSelect,\n}) => {\n // Always call hooks unconditionally in this component\n const routerNavigate = useRouterNavigate();\n const effectiveBasePath = basePath || '/';\n\n const getPath = useCallback(\n (relativePath: string) => joinPath(effectiveBasePath, relativePath),\n [effectiveBasePath]\n );\n\n const navigateTo = useCallback(\n (relativePath: string) => {\n const fullPath = joinPath(effectiveBasePath, relativePath);\n routerNavigate(fullPath);\n },\n [effectiveBasePath, routerNavigate]\n );\n\n const contextValue = useMemo<BotlitContextValue>(\n () => ({\n basePath: effectiveBasePath,\n navigate: undefined,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n onBotSelect,\n onAgentSelect,\n isStandalone: true,\n navigateTo,\n getPath,\n }),\n [\n effectiveBasePath,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n onBotSelect,\n onAgentSelect,\n navigateTo,\n getPath,\n ]\n );\n\n return <BotlitContext.Provider value={contextValue}>{children}</BotlitContext.Provider>;\n};\n\n/** Provider for integrated mode (shell provides navigate) */\nconst IntegratedProviderInner: FC<\n PropsWithChildren<ProviderProps & { navigate: (path: string) => void }>\n> = ({\n children,\n basePath,\n navigate,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n onBotSelect,\n onAgentSelect,\n}) => {\n const effectiveBasePath = basePath || '/';\n\n const getPath = useCallback(\n (relativePath: string) => joinPath(effectiveBasePath, relativePath),\n [effectiveBasePath]\n );\n\n const navigateTo = useCallback(\n (relativePath: string) => {\n const fullPath = joinPath(effectiveBasePath, relativePath);\n navigate(fullPath);\n },\n [effectiveBasePath, navigate]\n );\n\n const contextValue = useMemo<BotlitContextValue>(\n () => ({\n basePath: effectiveBasePath,\n navigate,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n onBotSelect,\n onAgentSelect,\n isStandalone: false,\n navigateTo,\n getPath,\n }),\n [\n effectiveBasePath,\n navigate,\n currentUser,\n tenantId,\n workspaceId,\n apiGatewayUrl,\n authToken,\n onBotSelect,\n onAgentSelect,\n navigateTo,\n getPath,\n ]\n );\n\n return <BotlitContext.Provider value={contextValue}>{children}</BotlitContext.Provider>;\n};\n\nexport const BotlitProvider: FC<PropsWithChildren<BotmanorRootProps>> = (props) => {\n const { children, navigate } = props;\n // Standalone mode: no navigate function provided (MFE manages its own router)\n // Integrated mode: navigate function provided by shell (shell provides router)\n const isStandalone = !navigate;\n\n // Standalone mode: wrap in MemoryRouter\n if (isStandalone) {\n return (\n <MemoryRouter>\n <StandaloneProviderInner {...props} isStandalone={true}>\n {children}\n </StandaloneProviderInner>\n </MemoryRouter>\n );\n }\n\n // Integrated mode: shell provides router\n return (\n <IntegratedProviderInner {...props} navigate={navigate} isStandalone={false}>\n {children}\n </IntegratedProviderInner>\n );\n};\n"],"mappings":";;;;;AA4BA,IAAM,IAAgB,EAAyC,KAAK;AAMpE,SAAgB,IAAgC;CAC9C,IAAM,IAAU,EAAW,EAAc;AACzC,KAAI,CAAC,EACH,OAAU,MAAM,iDAAiD;AAEnE,QAAO;;AAYT,IAAM,KAAiE,EACrE,aACA,aACA,gBACA,aACA,gBACA,kBACA,cACA,gBACA,uBACI;CAEJ,IAAM,IAAiB,GAAmB,EACpC,IAAoB,KAAY,KAEhC,IAAU,GACb,MAAyB,EAAS,GAAmB,EAAa,EACnE,CAAC,EAAkB,CACpB,EAEK,IAAa,GAChB,MAAyB;AAExB,IADiB,EAAS,GAAmB,EAAa,CAClC;IAE1B,CAAC,GAAmB,EAAe,CACpC,EAEK,IAAe,SACZ;EACL,UAAU;EACV,UAAU,KAAA;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA,cAAc;EACd;EACA;EACD,GACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CACF;AAED,QAAO,kBAAC,EAAc,UAAf;EAAwB,OAAO;EAAe;EAAkC,CAAA;GAInF,KAED,EACH,aACA,aACA,aACA,gBACA,aACA,gBACA,kBACA,cACA,gBACA,uBACI;CACJ,IAAM,IAAoB,KAAY,KAEhC,IAAU,GACb,MAAyB,EAAS,GAAmB,EAAa,EACnE,CAAC,EAAkB,CACpB,EAEK,IAAa,GAChB,MAAyB;AAExB,IADiB,EAAS,GAAmB,EAAa,CACxC;IAEpB,CAAC,GAAmB,EAAS,CAC9B,EAEK,IAAe,SACZ;EACL,UAAU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,cAAc;EACd;EACA;EACD,GACD;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CACF;AAED,QAAO,kBAAC,EAAc,UAAf;EAAwB,OAAO;EAAe;EAAkC,CAAA;GAG5E,KAA4D,MAAU;CACjF,IAAM,EAAE,aAAU,gBAAa;AAiB/B,QAdsB,IAepB,kBAAC,GAAD;EAAyB,GAAI;EAAiB;EAAU,cAAc;EACnE;EACuB,CAAA,GAZxB,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;EAAyB,GAAI;EAAO,cAAc;EAC/C;EACuB,CAAA,EACb,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"botlitStore.js","names":[],"sources":["../../../src/botlit/store/botlitStore.ts"],"sourcesContent":["/**\n *
|
|
1
|
+
{"version":3,"file":"botlitStore.js","names":[],"sources":["../../../src/botlit/store/botlitStore.ts"],"sourcesContent":["/**\n * BotManor Zustand Store\n * @module botlit/store\n */\n\nimport { create } from 'zustand';\nimport { devtools, persist } from 'zustand/middleware';\nimport { createProfileScopedStorage } from '@burdenoff/fe-libs/shared/utils';\nimport type {\n BotSummary,\n AgentSummary,\n KnowledgeBaseSummary,\n Conversation,\n ViewMode,\n BotFilter,\n AgentFilter,\n BaseFilter,\n} from '../types';\n\n// ConversationFilter extends BaseFilter with conversation-specific fields\ninterface ConversationFilter extends BaseFilter {\n botId?: string;\n agentId?: string;\n}\n\n// ============================================================================\n// State Interface\n// ============================================================================\n\ninterface BotlitState {\n // View state\n viewMode: ViewMode;\n sidebarCollapsed: boolean;\n activeTab: string;\n\n // Selected entities\n selectedBot: BotSummary | null;\n selectedAgent: AgentSummary | null;\n selectedKnowledgeBase: KnowledgeBaseSummary | null;\n selectedConversation: Conversation | null;\n\n // Filters\n botFilter: BotFilter;\n agentFilter: AgentFilter;\n conversationFilter: ConversationFilter;\n\n // UI State\n isCreatingBot: boolean;\n isCreatingAgent: boolean;\n isUploadingDocument: boolean;\n isChatOpen: boolean;\n chatAgentId: string | null;\n\n // Recent items\n recentBots: string[];\n recentAgents: string[];\n recentConversations: string[];\n\n // Actions\n setViewMode: (mode: ViewMode) => void;\n toggleSidebar: () => void;\n setActiveTab: (tab: string) => void;\n\n setSelectedBot: (bot: BotSummary | null) => void;\n setSelectedAgent: (agent: AgentSummary | null) => void;\n setSelectedKnowledgeBase: (kb: KnowledgeBaseSummary | null) => void;\n setSelectedConversation: (conversation: Conversation | null) => void;\n\n updateBotFilter: (filter: Partial<BotFilter>) => void;\n updateAgentFilter: (filter: Partial<AgentFilter>) => void;\n updateConversationFilter: (filter: Partial<ConversationFilter>) => void;\n resetFilters: () => void;\n\n setIsCreatingBot: (value: boolean) => void;\n setIsCreatingAgent: (value: boolean) => void;\n setIsUploadingDocument: (value: boolean) => void;\n openChat: (agentId: string) => void;\n closeChat: () => void;\n\n addRecentBot: (botId: string) => void;\n addRecentAgent: (agentId: string) => void;\n addRecentConversation: (conversationId: string) => void;\n\n reset: () => void;\n}\n\n// ============================================================================\n// Initial State\n// ============================================================================\n\nconst initialState = {\n viewMode: 'grid' as ViewMode,\n sidebarCollapsed: false,\n activeTab: 'bots',\n\n selectedBot: null,\n selectedAgent: null,\n selectedKnowledgeBase: null,\n selectedConversation: null,\n\n botFilter: {\n search: '',\n status: undefined,\n sortBy: 'updatedAt' as const,\n sortOrder: 'desc' as const,\n },\n agentFilter: {\n search: '',\n appId: undefined,\n type: undefined,\n status: undefined,\n sortBy: 'updatedAt' as const,\n sortOrder: 'desc' as const,\n },\n conversationFilter: {\n search: '',\n botId: undefined,\n agentId: undefined,\n status: undefined,\n sortBy: 'updatedAt' as const,\n sortOrder: 'desc' as const,\n },\n\n isCreatingBot: false,\n isCreatingAgent: false,\n isUploadingDocument: false,\n isChatOpen: false,\n chatAgentId: null,\n\n recentBots: [] as string[],\n recentAgents: [] as string[],\n recentConversations: [] as string[],\n};\n\n// ============================================================================\n// Store\n// ============================================================================\n\nexport const useBotlitStore = create<BotlitState>()(\n devtools(\n persist(\n (set) => ({\n ...initialState,\n\n // View actions\n setViewMode: (mode) => set({ viewMode: mode }),\n toggleSidebar: () => set((state) => ({ sidebarCollapsed: !state.sidebarCollapsed })),\n setActiveTab: (tab) => set({ activeTab: tab }),\n\n // Selection actions\n setSelectedBot: (bot) => set({ selectedBot: bot }),\n setSelectedAgent: (agent) => set({ selectedAgent: agent }),\n setSelectedKnowledgeBase: (kb) => set({ selectedKnowledgeBase: kb }),\n setSelectedConversation: (conversation) => set({ selectedConversation: conversation }),\n\n // Filter actions\n updateBotFilter: (filter) =>\n set((state) => ({\n botFilter: { ...state.botFilter, ...filter },\n })),\n updateAgentFilter: (filter) =>\n set((state) => ({\n agentFilter: { ...state.agentFilter, ...filter },\n })),\n updateConversationFilter: (filter) =>\n set((state) => ({\n conversationFilter: { ...state.conversationFilter, ...filter },\n })),\n resetFilters: () =>\n set({\n botFilter: initialState.botFilter,\n agentFilter: initialState.agentFilter,\n conversationFilter: initialState.conversationFilter,\n }),\n\n // UI state actions\n setIsCreatingBot: (value) => set({ isCreatingBot: value }),\n setIsCreatingAgent: (value) => set({ isCreatingAgent: value }),\n setIsUploadingDocument: (value) => set({ isUploadingDocument: value }),\n openChat: (agentId) => set({ isChatOpen: true, chatAgentId: agentId }),\n closeChat: () => set({ isChatOpen: false, chatAgentId: null }),\n\n // Recent items actions\n addRecentBot: (botId) =>\n set((state) => ({\n recentBots: [botId, ...state.recentBots.filter((id) => id !== botId)].slice(0, 10),\n })),\n addRecentAgent: (agentId) =>\n set((state) => ({\n recentAgents: [agentId, ...state.recentAgents.filter((id) => id !== agentId)].slice(\n 0,\n 10\n ),\n })),\n addRecentConversation: (conversationId) =>\n set((state) => ({\n recentConversations: [\n conversationId,\n ...state.recentConversations.filter((id) => id !== conversationId),\n ].slice(0, 10),\n })),\n\n // Reset\n reset: () => set(initialState),\n }),\n {\n name: 'burdenoff-botlit-storage',\n storage: createProfileScopedStorage(),\n partialize: (state) => ({\n viewMode: state.viewMode,\n sidebarCollapsed: state.sidebarCollapsed,\n recentBots: state.recentBots,\n recentAgents: state.recentAgents,\n recentConversations: state.recentConversations,\n }),\n }\n ),\n { name: 'BotManor Store', enabled: import.meta.env?.DEV === true }\n )\n);\n"],"mappings":";;;;AA0FA,IAAM,IAAe;CACnB,UAAU;CACV,kBAAkB;CAClB,WAAW;CAEX,aAAa;CACb,eAAe;CACf,uBAAuB;CACvB,sBAAsB;CAEtB,WAAW;EACT,QAAQ;EACR,QAAQ,KAAA;EACR,QAAQ;EACR,WAAW;EACZ;CACD,aAAa;EACX,QAAQ;EACR,OAAO,KAAA;EACP,MAAM,KAAA;EACN,QAAQ,KAAA;EACR,QAAQ;EACR,WAAW;EACZ;CACD,oBAAoB;EAClB,QAAQ;EACR,OAAO,KAAA;EACP,SAAS,KAAA;EACT,QAAQ,KAAA;EACR,QAAQ;EACR,WAAW;EACZ;CAED,eAAe;CACf,iBAAiB;CACjB,qBAAqB;CACrB,YAAY;CACZ,aAAa;CAEb,YAAY,EAAE;CACd,cAAc,EAAE;CAChB,qBAAqB,EAAE;CACxB,EAMY,IAAiB,GAAqB,CACjD,EACE,GACG,OAAS;CACR,GAAG;CAGH,cAAc,MAAS,EAAI,EAAE,UAAU,GAAM,CAAC;CAC9C,qBAAqB,GAAK,OAAW,EAAE,kBAAkB,CAAC,EAAM,kBAAkB,EAAE;CACpF,eAAe,MAAQ,EAAI,EAAE,WAAW,GAAK,CAAC;CAG9C,iBAAiB,MAAQ,EAAI,EAAE,aAAa,GAAK,CAAC;CAClD,mBAAmB,MAAU,EAAI,EAAE,eAAe,GAAO,CAAC;CAC1D,2BAA2B,MAAO,EAAI,EAAE,uBAAuB,GAAI,CAAC;CACpE,0BAA0B,MAAiB,EAAI,EAAE,sBAAsB,GAAc,CAAC;CAGtF,kBAAkB,MAChB,GAAK,OAAW,EACd,WAAW;EAAE,GAAG,EAAM;EAAW,GAAG;EAAQ,EAC7C,EAAE;CACL,oBAAoB,MAClB,GAAK,OAAW,EACd,aAAa;EAAE,GAAG,EAAM;EAAa,GAAG;EAAQ,EACjD,EAAE;CACL,2BAA2B,MACzB,GAAK,OAAW,EACd,oBAAoB;EAAE,GAAG,EAAM;EAAoB,GAAG;EAAQ,EAC/D,EAAE;CACL,oBACE,EAAI;EACF,WAAW,EAAa;EACxB,aAAa,EAAa;EAC1B,oBAAoB,EAAa;EAClC,CAAC;CAGJ,mBAAmB,MAAU,EAAI,EAAE,eAAe,GAAO,CAAC;CAC1D,qBAAqB,MAAU,EAAI,EAAE,iBAAiB,GAAO,CAAC;CAC9D,yBAAyB,MAAU,EAAI,EAAE,qBAAqB,GAAO,CAAC;CACtE,WAAW,MAAY,EAAI;EAAE,YAAY;EAAM,aAAa;EAAS,CAAC;CACtE,iBAAiB,EAAI;EAAE,YAAY;EAAO,aAAa;EAAM,CAAC;CAG9D,eAAe,MACb,GAAK,OAAW,EACd,YAAY,CAAC,GAAO,GAAG,EAAM,WAAW,QAAQ,MAAO,MAAO,EAAM,CAAC,CAAC,MAAM,GAAG,GAAG,EACnF,EAAE;CACL,iBAAiB,MACf,GAAK,OAAW,EACd,cAAc,CAAC,GAAS,GAAG,EAAM,aAAa,QAAQ,MAAO,MAAO,EAAQ,CAAC,CAAC,MAC5E,GACA,GACD,EACF,EAAE;CACL,wBAAwB,MACtB,GAAK,OAAW,EACd,qBAAqB,CACnB,GACA,GAAG,EAAM,oBAAoB,QAAQ,MAAO,MAAO,EAAe,CACnE,CAAC,MAAM,GAAG,GAAG,EACf,EAAE;CAGL,aAAa,EAAI,EAAa;CAC/B,GACD;CACE,MAAM;CACN,SAAS,GAA4B;CACrC,aAAa,OAAW;EACtB,UAAU,EAAM;EAChB,kBAAkB,EAAM;EACxB,YAAY,EAAM;EAClB,cAAc,EAAM;EACpB,qBAAqB,EAAM;EAC5B;CACF,CACF,EACD;CAAE,MAAM;CAAkB,SAAS;CAA+B,CACnE,CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.js","names":[],"sources":["../../../src/botlit/utils/navigation.ts"],"sourcesContent":["/**\n * Navigation utilities for the
|
|
1
|
+
{"version":3,"file":"navigation.js","names":[],"sources":["../../../src/botlit/utils/navigation.ts"],"sourcesContent":["/**\n * Navigation utilities for the BotManor microfrontend\n * @module botlit/utils\n */\n\n/**\n * Join basePath with a relative path, correctly handling slashes\n *\n * @param basePath - The base path (e.g., '/' or '/botlit')\n * @param relativePath - The relative path (e.g., 'bots/new' or '/bots/new')\n * @returns The joined path (e.g., '/botlit/bots/new')\n *\n * @example\n * joinPath('/', 'bots/new') // => '/bots/new'\n * joinPath('/', '/bots/new') // => '/bots/new'\n * joinPath('/botlit', 'bots') // => '/botlit/bots'\n * joinPath('/botlit/', 'bots') // => '/botlit/bots'\n * joinPath('/botlit', '') // => '/botlit'\n */\nexport function joinPath(basePath: string, relativePath: string): string {\n // Remove trailing slash from base\n const cleanBase = basePath.endsWith('/') ? basePath.slice(0, -1) : basePath;\n\n // Handle empty relative path (go to base)\n if (!relativePath || relativePath === '') {\n return cleanBase || '/';\n }\n\n // Ensure relative path starts with /\n const cleanPath = relativePath.startsWith('/') ? relativePath : `/${relativePath}`;\n\n // Join them\n return cleanBase + cleanPath;\n}\n"],"mappings":";AAmBA,SAAgB,EAAS,GAAkB,GAA8B;CAEvE,IAAM,IAAY,EAAS,SAAS,IAAI,GAAG,EAAS,MAAM,GAAG,GAAG,GAAG;AAWnE,QARI,CAAC,KAAgB,MAAiB,KAC7B,KAAa,MAOf,KAHW,EAAa,WAAW,IAAI,GAAG,IAAe,IAAI"}
|
|
@@ -954,8 +954,10 @@ var N = e`
|
|
|
954
954
|
query ListMCPTools($connectionId: ID!) {
|
|
955
955
|
listMCPTools(connectionId: $connectionId) {
|
|
956
956
|
description
|
|
957
|
+
id
|
|
957
958
|
inputSchema
|
|
958
959
|
name
|
|
960
|
+
riskLevel
|
|
959
961
|
}
|
|
960
962
|
}
|
|
961
963
|
`, I = e`
|
|
@@ -1022,11 +1024,25 @@ e`
|
|
|
1022
1024
|
mutation RefreshMCPTools($connectionId: ID!) {
|
|
1023
1025
|
refreshMCPTools(connectionId: $connectionId) {
|
|
1024
1026
|
description
|
|
1027
|
+
id
|
|
1025
1028
|
inputSchema
|
|
1026
1029
|
name
|
|
1030
|
+
riskLevel
|
|
1027
1031
|
}
|
|
1028
1032
|
}
|
|
1029
|
-
|
|
1033
|
+
`;
|
|
1034
|
+
var B = e`
|
|
1035
|
+
mutation UpdateMCPTool($id: ID!, $input: UpdateMCPToolInput!) {
|
|
1036
|
+
updateMCPTool(id: $id, input: $input) {
|
|
1037
|
+
description
|
|
1038
|
+
id
|
|
1039
|
+
inputSchema
|
|
1040
|
+
name
|
|
1041
|
+
riskLevel
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
`;
|
|
1045
|
+
e`
|
|
1030
1046
|
mutation RefreshMCPResources($connectionId: ID!) {
|
|
1031
1047
|
refreshMCPResources(connectionId: $connectionId) {
|
|
1032
1048
|
description
|
|
@@ -1036,7 +1052,7 @@ e`
|
|
|
1036
1052
|
}
|
|
1037
1053
|
}
|
|
1038
1054
|
`;
|
|
1039
|
-
var
|
|
1055
|
+
var V = e`
|
|
1040
1056
|
query GetPolicy($id: ID!) {
|
|
1041
1057
|
getPolicy(id: $id) {
|
|
1042
1058
|
bucketId
|
|
@@ -1057,7 +1073,7 @@ var B = e`
|
|
|
1057
1073
|
workspaceId
|
|
1058
1074
|
}
|
|
1059
1075
|
}
|
|
1060
|
-
`,
|
|
1076
|
+
`, H = e`
|
|
1061
1077
|
query ListPolicies($filters: PolicyFilterInput, $pagination: PaginationInput) {
|
|
1062
1078
|
listPolicies(filters: $filters, pagination: $pagination) {
|
|
1063
1079
|
bucketId
|
|
@@ -1078,7 +1094,7 @@ var B = e`
|
|
|
1078
1094
|
workspaceId
|
|
1079
1095
|
}
|
|
1080
1096
|
}
|
|
1081
|
-
`,
|
|
1097
|
+
`, U = e`
|
|
1082
1098
|
mutation CreatePolicy($input: CreatePolicyInput!) {
|
|
1083
1099
|
createPolicy(input: $input) {
|
|
1084
1100
|
bucketId
|
|
@@ -1099,7 +1115,7 @@ var B = e`
|
|
|
1099
1115
|
workspaceId
|
|
1100
1116
|
}
|
|
1101
1117
|
}
|
|
1102
|
-
`,
|
|
1118
|
+
`, W = e`
|
|
1103
1119
|
mutation UpdatePolicy($id: ID!, $input: UpdatePolicyInput!) {
|
|
1104
1120
|
updatePolicy(id: $id, input: $input) {
|
|
1105
1121
|
bucketId
|
|
@@ -1120,11 +1136,11 @@ var B = e`
|
|
|
1120
1136
|
workspaceId
|
|
1121
1137
|
}
|
|
1122
1138
|
}
|
|
1123
|
-
`,
|
|
1139
|
+
`, G = e`
|
|
1124
1140
|
mutation DeletePolicy($id: ID!) {
|
|
1125
1141
|
deletePolicy(id: $id)
|
|
1126
1142
|
}
|
|
1127
|
-
`,
|
|
1143
|
+
`, K = e`
|
|
1128
1144
|
query GetPromptTemplate($id: ID!) {
|
|
1129
1145
|
getPromptTemplate(id: $id) {
|
|
1130
1146
|
bucketId
|
|
@@ -1174,7 +1190,7 @@ e`
|
|
|
1174
1190
|
}
|
|
1175
1191
|
}
|
|
1176
1192
|
`;
|
|
1177
|
-
var
|
|
1193
|
+
var q = e`
|
|
1178
1194
|
query ListPromptTemplates($filters: PromptTemplateFilterInput, $pagination: PaginationInput) {
|
|
1179
1195
|
listPromptTemplates(filters: $filters, pagination: $pagination) {
|
|
1180
1196
|
bucketId
|
|
@@ -1198,7 +1214,7 @@ var K = e`
|
|
|
1198
1214
|
workspaceId
|
|
1199
1215
|
}
|
|
1200
1216
|
}
|
|
1201
|
-
`,
|
|
1217
|
+
`, J = e`
|
|
1202
1218
|
mutation CreatePromptTemplate($input: CreatePromptTemplateInput!) {
|
|
1203
1219
|
createPromptTemplate(input: $input) {
|
|
1204
1220
|
bucketId
|
|
@@ -1222,7 +1238,7 @@ var K = e`
|
|
|
1222
1238
|
workspaceId
|
|
1223
1239
|
}
|
|
1224
1240
|
}
|
|
1225
|
-
`,
|
|
1241
|
+
`, Y = e`
|
|
1226
1242
|
mutation UpdatePromptTemplate($id: ID!, $input: UpdatePromptTemplateInput!) {
|
|
1227
1243
|
updatePromptTemplate(id: $id, input: $input) {
|
|
1228
1244
|
bucketId
|
|
@@ -1246,7 +1262,7 @@ var K = e`
|
|
|
1246
1262
|
workspaceId
|
|
1247
1263
|
}
|
|
1248
1264
|
}
|
|
1249
|
-
`,
|
|
1265
|
+
`, X = e`
|
|
1250
1266
|
mutation DeletePromptTemplate($id: ID!) {
|
|
1251
1267
|
deletePromptTemplate(id: $id)
|
|
1252
1268
|
}
|
|
@@ -1276,11 +1292,11 @@ e`
|
|
|
1276
1292
|
}
|
|
1277
1293
|
}
|
|
1278
1294
|
`;
|
|
1279
|
-
var
|
|
1295
|
+
var Z = e`
|
|
1280
1296
|
mutation RenderPromptTemplate($id: ID!, $variables: JSON) {
|
|
1281
1297
|
renderPromptTemplate(id: $id, variables: $variables)
|
|
1282
1298
|
}
|
|
1283
|
-
`,
|
|
1299
|
+
`, Q = e`
|
|
1284
1300
|
query GetRetrievalProfile($id: ID!) {
|
|
1285
1301
|
getRetrievalProfile(id: $id) {
|
|
1286
1302
|
bucketId
|
|
@@ -1315,7 +1331,7 @@ var X = e`
|
|
|
1315
1331
|
workspaceId
|
|
1316
1332
|
}
|
|
1317
1333
|
}
|
|
1318
|
-
`,
|
|
1334
|
+
`, $ = e`
|
|
1319
1335
|
query ListRetrievalProfiles($filters: RetrievalProfileFilterInput, $pagination: PaginationInput) {
|
|
1320
1336
|
listRetrievalProfiles(filters: $filters, pagination: $pagination) {
|
|
1321
1337
|
bucketId
|
|
@@ -1349,7 +1365,7 @@ var X = e`
|
|
|
1349
1365
|
workspaceId
|
|
1350
1366
|
}
|
|
1351
1367
|
}
|
|
1352
|
-
`,
|
|
1368
|
+
`, te = e`
|
|
1353
1369
|
mutation CreateRetrievalProfile($input: CreateRetrievalProfileInput!) {
|
|
1354
1370
|
createRetrievalProfile(input: $input) {
|
|
1355
1371
|
bucketId
|
|
@@ -1384,7 +1400,7 @@ var X = e`
|
|
|
1384
1400
|
workspaceId
|
|
1385
1401
|
}
|
|
1386
1402
|
}
|
|
1387
|
-
`,
|
|
1403
|
+
`, ne = e`
|
|
1388
1404
|
mutation UpdateRetrievalProfile($id: ID!, $input: UpdateRetrievalProfileInput!) {
|
|
1389
1405
|
updateRetrievalProfile(id: $id, input: $input) {
|
|
1390
1406
|
bucketId
|
|
@@ -1419,11 +1435,11 @@ var X = e`
|
|
|
1419
1435
|
workspaceId
|
|
1420
1436
|
}
|
|
1421
1437
|
}
|
|
1422
|
-
`,
|
|
1438
|
+
`, re = e`
|
|
1423
1439
|
mutation DeleteRetrievalProfile($id: ID!) {
|
|
1424
1440
|
deleteRetrievalProfile(id: $id)
|
|
1425
1441
|
}
|
|
1426
|
-
`,
|
|
1442
|
+
`, ie = e`
|
|
1427
1443
|
query GetSkill($id: ID!) {
|
|
1428
1444
|
getSkill(id: $id) {
|
|
1429
1445
|
bucketId
|
|
@@ -1448,7 +1464,7 @@ var X = e`
|
|
|
1448
1464
|
workspaceId
|
|
1449
1465
|
}
|
|
1450
1466
|
}
|
|
1451
|
-
`,
|
|
1467
|
+
`, ae = e`
|
|
1452
1468
|
query ListSkills($filters: SkillFilterInput, $pagination: PaginationInput) {
|
|
1453
1469
|
listSkills(filters: $filters, pagination: $pagination) {
|
|
1454
1470
|
bucketId
|
|
@@ -1473,7 +1489,7 @@ var X = e`
|
|
|
1473
1489
|
workspaceId
|
|
1474
1490
|
}
|
|
1475
1491
|
}
|
|
1476
|
-
`,
|
|
1492
|
+
`, oe = e`
|
|
1477
1493
|
mutation CreateSkill($input: CreateSkillInput!) {
|
|
1478
1494
|
createSkill(input: $input) {
|
|
1479
1495
|
bucketId
|
|
@@ -1498,7 +1514,7 @@ var X = e`
|
|
|
1498
1514
|
workspaceId
|
|
1499
1515
|
}
|
|
1500
1516
|
}
|
|
1501
|
-
`,
|
|
1517
|
+
`, se = e`
|
|
1502
1518
|
mutation UpdateSkill($id: ID!, $input: UpdateSkillInput!) {
|
|
1503
1519
|
updateSkill(id: $id, input: $input) {
|
|
1504
1520
|
bucketId
|
|
@@ -1523,7 +1539,7 @@ var X = e`
|
|
|
1523
1539
|
workspaceId
|
|
1524
1540
|
}
|
|
1525
1541
|
}
|
|
1526
|
-
`,
|
|
1542
|
+
`, ce = e`
|
|
1527
1543
|
mutation DeleteSkill($id: ID!) {
|
|
1528
1544
|
deleteSkill(id: $id)
|
|
1529
1545
|
}
|
|
@@ -1535,13 +1551,13 @@ e`
|
|
|
1535
1551
|
}
|
|
1536
1552
|
}
|
|
1537
1553
|
${t}`;
|
|
1538
|
-
var
|
|
1554
|
+
var le = e`
|
|
1539
1555
|
query GetStorePackageBySlug($slug: String!) {
|
|
1540
1556
|
getStorePackageBySlug(slug: $slug) {
|
|
1541
1557
|
...StorePackageFields
|
|
1542
1558
|
}
|
|
1543
1559
|
}
|
|
1544
|
-
${t}`,
|
|
1560
|
+
${t}`, ue = e`
|
|
1545
1561
|
query ListStorePackages($filters: StorePackageFilterInput, $pagination: PaginationInput) {
|
|
1546
1562
|
listStorePackages(filters: $filters, pagination: $pagination) {
|
|
1547
1563
|
...StorePackageFields
|
|
@@ -1555,25 +1571,25 @@ e`
|
|
|
1555
1571
|
}
|
|
1556
1572
|
}
|
|
1557
1573
|
${n}`;
|
|
1558
|
-
var
|
|
1574
|
+
var de = e`
|
|
1559
1575
|
query ListInstalledPackages($filters: InstalledPackageFilterInput!, $pagination: PaginationInput) {
|
|
1560
1576
|
listInstalledPackages(filters: $filters, pagination: $pagination) {
|
|
1561
1577
|
...InstalledPackageFields
|
|
1562
1578
|
}
|
|
1563
1579
|
}
|
|
1564
|
-
${n}`,
|
|
1580
|
+
${n}`, fe = e`
|
|
1565
1581
|
mutation InstallPackage($input: InstallPackageInput!) {
|
|
1566
1582
|
installPackage(input: $input) {
|
|
1567
1583
|
...InstalledPackageFields
|
|
1568
1584
|
}
|
|
1569
1585
|
}
|
|
1570
|
-
${n}`,
|
|
1586
|
+
${n}`, pe = e`
|
|
1571
1587
|
mutation UpdateInstalledPackage($id: ID!, $input: UpdateInstalledPackageInput!) {
|
|
1572
1588
|
updateInstalledPackage(id: $id, input: $input) {
|
|
1573
1589
|
...InstalledPackageFields
|
|
1574
1590
|
}
|
|
1575
1591
|
}
|
|
1576
|
-
${n}`,
|
|
1592
|
+
${n}`, me = e`
|
|
1577
1593
|
mutation UninstallPackage($id: ID!) {
|
|
1578
1594
|
uninstallPackage(id: $id)
|
|
1579
1595
|
}
|
|
@@ -1586,6 +1602,6 @@ e`
|
|
|
1586
1602
|
}
|
|
1587
1603
|
${n}`;
|
|
1588
1604
|
//#endregion
|
|
1589
|
-
export { a as CreateA2ARegistryEntryDocument, A as CreateBotlitLlmProviderDocument, l as CreateBucketDocument, h as CreateChannelConnectorDocument, v as CreateChannelRouteDocument, S as CreateExecutionDocument, E as CreateKnowledgeBaseDocument, L as CreateMcpConnectionDocument,
|
|
1605
|
+
export { a as CreateA2ARegistryEntryDocument, A as CreateBotlitLlmProviderDocument, l as CreateBucketDocument, h as CreateChannelConnectorDocument, v as CreateChannelRouteDocument, S as CreateExecutionDocument, E as CreateKnowledgeBaseDocument, L as CreateMcpConnectionDocument, U as CreatePolicyDocument, J as CreatePromptTemplateDocument, te as CreateRetrievalProfileDocument, oe as CreateSkillDocument, s as DeleteA2ARegistryEntryDocument, d as DeleteBucketDocument, _ as DeleteChannelConnectorDocument, y as DeleteChannelRouteDocument, z as DeleteMcpConnectionDocument, G as DeletePolicyDocument, X as DeletePromptTemplateDocument, re as DeleteRetrievalProfileDocument, ce as DeleteSkillDocument, r as GetA2ARegistryEntryDocument, f as GetChannelConnectorDocument, b as GetExecutionDocument, w as GetKnowledgeBaseDocument, N as GetMcpConnectionDocument, V as GetPolicyDocument, K as GetPromptTemplateDocument, Q as GetRetrievalProfileDocument, ie as GetSkillDocument, le as GetStorePackageBySlugDocument, fe as InstallPackageDocument, i as ListA2ARegistryEntriesDocument, c as ListBucketsDocument, p as ListChannelConnectorsDocument, m as ListChannelRoutesDocument, x as ListExecutionsDocument, de as ListInstalledPackagesDocument, C as ListKnowledgeBasesDocument, T as ListKnowledgeDocumentsDocument, M as ListLlmModelsDocument, k as ListLlmProvidersDocument, P as ListMcpConnectionsDocument, I as ListMcpResourcesDocument, F as ListMcpToolsDocument, H as ListPoliciesDocument, q as ListPromptTemplatesDocument, $ as ListRetrievalProfilesDocument, ae as ListSkillsDocument, ue as ListStorePackagesDocument, O as RebuildKnowledgeBaseIndexDocument, Z as RenderPromptTemplateDocument, ee as TestMcpConnectionDocument, me as UninstallPackageDocument, o as UpdateA2ARegistryEntryDocument, u as UpdateBucketDocument, g as UpdateChannelConnectorDocument, pe as UpdateInstalledPackageDocument, D as UpdateKnowledgeBaseDocument, j as UpdateLlmProviderDocument, R as UpdateMcpConnectionDocument, B as UpdateMcpToolDocument, W as UpdatePolicyDocument, Y as UpdatePromptTemplateDocument, ne as UpdateRetrievalProfileDocument, se as UpdateSkillDocument };
|
|
1590
1606
|
|
|
1591
1607
|
//# sourceMappingURL=wspace-operations.js.map
|