@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.
Files changed (334) hide show
  1. package/dist/botlit/BotlitRoutes.d.ts +2 -0
  2. package/dist/botlit/BotlitRoutes.js +40 -37
  3. package/dist/botlit/BotlitRoutes.js.map +1 -1
  4. package/dist/botlit/BotmanorRoot.d.ts +3 -0
  5. package/dist/botlit/BotmanorRoot.js +1 -2
  6. package/dist/botlit/BotmanorRoot.js.map +1 -1
  7. package/dist/botlit/BotmanorRootInner.d.ts +3 -0
  8. package/dist/botlit/BotmanorRootInner.js +9 -10
  9. package/dist/botlit/BotmanorRootInner.js.map +1 -1
  10. package/dist/botlit/components/AgentApprovalPanel.d.ts +20 -0
  11. package/dist/botlit/components/AgentApprovalPanel.js +49 -50
  12. package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
  13. package/dist/botlit/components/AiOperationsPanel.d.ts +14 -0
  14. package/dist/botlit/components/AiOperationsPanel.js +253 -0
  15. package/dist/botlit/components/AiOperationsPanel.js.map +1 -0
  16. package/dist/botlit/components/AssistantChannelPanel.d.ts +3 -0
  17. package/dist/botlit/components/AssistantChannelPanel.js +12 -13
  18. package/dist/botlit/components/AssistantChannelPanel.js.map +1 -1
  19. package/dist/botlit/components/AssistantRuntimeSetupPanel.d.ts +4 -0
  20. package/dist/botlit/components/AssistantRuntimeSetupPanel.js +14 -14
  21. package/dist/botlit/components/AssistantRuntimeSetupPanel.js.map +1 -1
  22. package/dist/botlit/components/AssistantWebsitePanel.d.ts +5 -0
  23. package/dist/botlit/components/AssistantWebsitePanel.js +15 -16
  24. package/dist/botlit/components/AssistantWebsitePanel.js.map +1 -1
  25. package/dist/botlit/components/Badge.d.ts +9 -0
  26. package/dist/botlit/components/Badge.js +1 -2
  27. package/dist/botlit/components/Badge.js.map +1 -1
  28. package/dist/botlit/components/Button.d.ts +10 -0
  29. package/dist/botlit/components/Button.js +1 -2
  30. package/dist/botlit/components/Button.js.map +1 -1
  31. package/dist/botlit/components/Card.d.ts +16 -0
  32. package/dist/botlit/components/Card.js +1 -2
  33. package/dist/botlit/components/Card.js.map +1 -1
  34. package/dist/botlit/components/ChannelSelectorSheet.d.ts +23 -0
  35. package/dist/botlit/components/ChannelSelectorSheet.js +1 -2
  36. package/dist/botlit/components/ChannelSelectorSheet.js.map +1 -1
  37. package/dist/botlit/components/EmptyState.d.ts +12 -0
  38. package/dist/botlit/components/EmptyState.js +1 -2
  39. package/dist/botlit/components/EmptyState.js.map +1 -1
  40. package/dist/botlit/components/ErrorState.d.ts +10 -0
  41. package/dist/botlit/components/ErrorState.js +5 -6
  42. package/dist/botlit/components/ErrorState.js.map +1 -1
  43. package/dist/botlit/components/Input.d.ts +27 -0
  44. package/dist/botlit/components/Input.js +2 -3
  45. package/dist/botlit/components/Input.js.map +1 -1
  46. package/dist/botlit/components/KnowledgeSourceImportPanel.d.ts +3 -0
  47. package/dist/botlit/components/KnowledgeSourceImportPanel.js +12 -13
  48. package/dist/botlit/components/KnowledgeSourceImportPanel.js.map +1 -1
  49. package/dist/botlit/components/ModelRegistrationPanel.d.ts +5 -0
  50. package/dist/botlit/components/ModelRegistrationPanel.js +1 -2
  51. package/dist/botlit/components/ModelRegistrationPanel.js.map +1 -1
  52. package/dist/botlit/components/PageLayout.d.ts +12 -0
  53. package/dist/botlit/components/PageLayout.js +1 -2
  54. package/dist/botlit/components/PageLayout.js.map +1 -1
  55. package/dist/botlit/components/QuotaExhaustedDialog.d.ts +9 -0
  56. package/dist/botlit/components/QuotaExhaustedDialog.js +1 -2
  57. package/dist/botlit/components/QuotaExhaustedDialog.js.map +1 -1
  58. package/dist/botlit/components/RetentionStatusPanel.d.ts +2 -0
  59. package/dist/botlit/components/RetentionStatusPanel.js +18 -19
  60. package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
  61. package/dist/botlit/components/RouteLoader.d.ts +23 -0
  62. package/dist/botlit/components/RouteLoader.js +1 -2
  63. package/dist/botlit/components/RouteLoader.js.map +1 -1
  64. package/dist/botlit/components/VersionHistoryPanel.d.ts +12 -0
  65. package/dist/botlit/components/VersionHistoryPanel.js +23 -24
  66. package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
  67. package/dist/botlit/components/WorkspaceRequired.d.ts +18 -0
  68. package/dist/botlit/components/WorkspaceRequired.js +1 -2
  69. package/dist/botlit/components/WorkspaceRequired.js.map +1 -1
  70. package/dist/botlit/components/index.d.ts +14 -0
  71. package/dist/botlit/hooks/index.d.ts +36 -0
  72. package/dist/botlit/hooks/index.js +15 -13
  73. package/dist/botlit/hooks/internal/mutationInput.d.ts +56 -0
  74. package/dist/botlit/hooks/internal/mutationInput.js +1 -2
  75. package/dist/botlit/hooks/internal/mutationInput.js.map +1 -1
  76. package/dist/botlit/hooks/internal/workspaceGateway.d.ts +54 -0
  77. package/dist/botlit/hooks/internal/workspaceGateway.js +17 -19
  78. package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
  79. package/dist/botlit/hooks/useA2A.d.ts +104 -0
  80. package/dist/botlit/hooks/useA2A.js +45 -45
  81. package/dist/botlit/hooks/useA2A.js.map +1 -1
  82. package/dist/botlit/hooks/useAgentApprovals.d.ts +62 -0
  83. package/dist/botlit/hooks/useAgentApprovals.js +38 -39
  84. package/dist/botlit/hooks/useAgentApprovals.js.map +1 -1
  85. package/dist/botlit/hooks/useAgents.d.ts +105 -0
  86. package/dist/botlit/hooks/useAgents.js +53 -54
  87. package/dist/botlit/hooks/useAgents.js.map +1 -1
  88. package/dist/botlit/hooks/useAiOperations.d.ts +95 -0
  89. package/dist/botlit/hooks/useAiOperations.js +154 -0
  90. package/dist/botlit/hooks/useAiOperations.js.map +1 -0
  91. package/dist/botlit/hooks/useAssistantChannels.d.ts +16 -0
  92. package/dist/botlit/hooks/useAssistantChannels.js +1 -2
  93. package/dist/botlit/hooks/useAssistantChannels.js.map +1 -1
  94. package/dist/botlit/hooks/useAssistantRuntimeSetup.d.ts +17 -0
  95. package/dist/botlit/hooks/useAssistantRuntimeSetup.js +1 -2
  96. package/dist/botlit/hooks/useAssistantRuntimeSetup.js.map +1 -1
  97. package/dist/botlit/hooks/useAssistantWebsites.d.ts +18 -0
  98. package/dist/botlit/hooks/useAssistantWebsites.js +1 -2
  99. package/dist/botlit/hooks/useAssistantWebsites.js.map +1 -1
  100. package/dist/botlit/hooks/useBotWorkflow.d.ts +22 -0
  101. package/dist/botlit/hooks/useBotWorkflow.js +1 -2
  102. package/dist/botlit/hooks/useBotWorkflow.js.map +1 -1
  103. package/dist/botlit/hooks/useBots.d.ts +68 -0
  104. package/dist/botlit/hooks/useBots.js +32 -33
  105. package/dist/botlit/hooks/useBots.js.map +1 -1
  106. package/dist/botlit/hooks/useBuckets.d.ts +57 -0
  107. package/dist/botlit/hooks/useBuckets.js +38 -39
  108. package/dist/botlit/hooks/useBuckets.js.map +1 -1
  109. package/dist/botlit/hooks/useChannels.d.ts +87 -0
  110. package/dist/botlit/hooks/useChannels.js +73 -73
  111. package/dist/botlit/hooks/useChannels.js.map +1 -1
  112. package/dist/botlit/hooks/useConversations.d.ts +42 -0
  113. package/dist/botlit/hooks/useConversations.js +1 -2
  114. package/dist/botlit/hooks/useConversations.js.map +1 -1
  115. package/dist/botlit/hooks/useExecutions.d.ts +87 -0
  116. package/dist/botlit/hooks/useExecutions.js +37 -37
  117. package/dist/botlit/hooks/useExecutions.js.map +1 -1
  118. package/dist/botlit/hooks/useKnowledgeBases.d.ts +79 -0
  119. package/dist/botlit/hooks/useKnowledgeBases.js +40 -39
  120. package/dist/botlit/hooks/useKnowledgeBases.js.map +1 -1
  121. package/dist/botlit/hooks/useKnowledgeSourceImports.d.ts +21 -0
  122. package/dist/botlit/hooks/useKnowledgeSourceImports.js +1 -2
  123. package/dist/botlit/hooks/useKnowledgeSourceImports.js.map +1 -1
  124. package/dist/botlit/hooks/useLLMProviders.d.ts +66 -0
  125. package/dist/botlit/hooks/useLLMProviders.js +25 -26
  126. package/dist/botlit/hooks/useLLMProviders.js.map +1 -1
  127. package/dist/botlit/hooks/useMCPServers.d.ts +71 -0
  128. package/dist/botlit/hooks/useMCPServers.js +40 -38
  129. package/dist/botlit/hooks/useMCPServers.js.map +1 -1
  130. package/dist/botlit/hooks/usePolicies.d.ts +60 -0
  131. package/dist/botlit/hooks/usePolicies.js +49 -49
  132. package/dist/botlit/hooks/usePolicies.js.map +1 -1
  133. package/dist/botlit/hooks/usePromptTemplates.d.ts +88 -0
  134. package/dist/botlit/hooks/usePromptTemplates.js +57 -57
  135. package/dist/botlit/hooks/usePromptTemplates.js.map +1 -1
  136. package/dist/botlit/hooks/useRetention.d.ts +26 -0
  137. package/dist/botlit/hooks/useRetention.js +3 -3
  138. package/dist/botlit/hooks/useRetention.js.map +1 -1
  139. package/dist/botlit/hooks/useRetrievalProfiles.d.ts +75 -0
  140. package/dist/botlit/hooks/useRetrievalProfiles.js +47 -47
  141. package/dist/botlit/hooks/useRetrievalProfiles.js.map +1 -1
  142. package/dist/botlit/hooks/useSkills.d.ts +64 -0
  143. package/dist/botlit/hooks/useSkills.js +53 -53
  144. package/dist/botlit/hooks/useSkills.js.map +1 -1
  145. package/dist/botlit/hooks/useStore.d.ts +112 -0
  146. package/dist/botlit/hooks/useStore.js +55 -55
  147. package/dist/botlit/hooks/useStore.js.map +1 -1
  148. package/dist/botlit/hooks/useUserPlatformConnection.d.ts +80 -0
  149. package/dist/botlit/hooks/useUserPlatformConnection.js +19 -19
  150. package/dist/botlit/hooks/useUserPlatformConnection.js.map +1 -1
  151. package/dist/botlit/index.d.ts +16 -0
  152. package/dist/botlit/index.js +12 -11
  153. package/dist/botlit/pages/A2AAgentDetailPage.d.ts +6 -0
  154. package/dist/botlit/pages/A2AAgentDetailPage.js +171 -178
  155. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  156. package/dist/botlit/pages/A2ARegistryPage.d.ts +2 -0
  157. package/dist/botlit/pages/A2ARegistryPage.js +25 -26
  158. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  159. package/dist/botlit/pages/AgentApprovalsPage.d.ts +2 -0
  160. package/dist/botlit/pages/AgentApprovalsPage.js +32 -33
  161. package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
  162. package/dist/botlit/pages/AgentBuilderPage.d.ts +2 -0
  163. package/dist/botlit/pages/AgentBuilderPage.js +59 -60
  164. package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
  165. package/dist/botlit/pages/AgentDetailPage.d.ts +2 -0
  166. package/dist/botlit/pages/AgentDetailPage.js +202 -190
  167. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  168. package/dist/botlit/pages/AgentsListPage.d.ts +2 -0
  169. package/dist/botlit/pages/AgentsListPage.js +71 -72
  170. package/dist/botlit/pages/AgentsListPage.js.map +1 -1
  171. package/dist/botlit/pages/AiOperationsPage.d.ts +2 -0
  172. package/dist/botlit/pages/AiOperationsPage.js +165 -0
  173. package/dist/botlit/pages/AiOperationsPage.js.map +1 -0
  174. package/dist/botlit/pages/BotChannelsTab.d.ts +7 -0
  175. package/dist/botlit/pages/BotChannelsTab.js +120 -122
  176. package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
  177. package/dist/botlit/pages/BotDetailPage.d.ts +7 -0
  178. package/dist/botlit/pages/BotDetailPage.js +246 -237
  179. package/dist/botlit/pages/BotDetailPage.js.map +1 -1
  180. package/dist/botlit/pages/BotWorkflowTab.d.ts +11 -0
  181. package/dist/botlit/pages/BotWorkflowTab.js +20 -21
  182. package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
  183. package/dist/botlit/pages/BotsListPage.d.ts +2 -0
  184. package/dist/botlit/pages/BotsListPage.js +52 -53
  185. package/dist/botlit/pages/BotsListPage.js.map +1 -1
  186. package/dist/botlit/pages/BucketsPage.d.ts +2 -0
  187. package/dist/botlit/pages/BucketsPage.js +260 -261
  188. package/dist/botlit/pages/BucketsPage.js.map +1 -1
  189. package/dist/botlit/pages/ChannelDetailPage.d.ts +6 -0
  190. package/dist/botlit/pages/ChannelDetailPage.js +97 -96
  191. package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
  192. package/dist/botlit/pages/ChannelRoutesPage.d.ts +2 -0
  193. package/dist/botlit/pages/ChannelRoutesPage.js +23 -24
  194. package/dist/botlit/pages/ChannelRoutesPage.js.map +1 -1
  195. package/dist/botlit/pages/ChannelsPage.d.ts +2 -0
  196. package/dist/botlit/pages/ChannelsPage.js +44 -45
  197. package/dist/botlit/pages/ChannelsPage.js.map +1 -1
  198. package/dist/botlit/pages/ChatPage.d.ts +1 -0
  199. package/dist/botlit/pages/ChatPage.js +10 -11
  200. package/dist/botlit/pages/ChatPage.js.map +1 -1
  201. package/dist/botlit/pages/ConversationDetailPage.d.ts +2 -0
  202. package/dist/botlit/pages/ConversationsPage.d.ts +2 -0
  203. package/dist/botlit/pages/DashboardPage.d.ts +2 -0
  204. package/dist/botlit/pages/DashboardPage.js +37 -38
  205. package/dist/botlit/pages/DashboardPage.js.map +1 -1
  206. package/dist/botlit/pages/ExecutionDetailPage.d.ts +2 -0
  207. package/dist/botlit/pages/ExecutionDetailPage.js +47 -48
  208. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  209. package/dist/botlit/pages/ExecutionsPage.d.ts +2 -0
  210. package/dist/botlit/pages/ExecutionsPage.js +72 -70
  211. package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
  212. package/dist/botlit/pages/InstalledPackagesPage.d.ts +2 -0
  213. package/dist/botlit/pages/InstalledPackagesPage.js +77 -78
  214. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  215. package/dist/botlit/pages/KnowledgeBaseDetailPage.d.ts +6 -0
  216. package/dist/botlit/pages/KnowledgeBaseDetailPage.js +171 -181
  217. package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
  218. package/dist/botlit/pages/KnowledgeBasesPage.d.ts +2 -0
  219. package/dist/botlit/pages/KnowledgeBasesPage.js +30 -31
  220. package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
  221. package/dist/botlit/pages/MCPServerDetailPage.d.ts +6 -0
  222. package/dist/botlit/pages/MCPServerDetailPage.js +82 -83
  223. package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
  224. package/dist/botlit/pages/MCPServersPage.d.ts +2 -0
  225. package/dist/botlit/pages/MCPServersPage.js +54 -55
  226. package/dist/botlit/pages/MCPServersPage.js.map +1 -1
  227. package/dist/botlit/pages/PoliciesPage.d.ts +2 -0
  228. package/dist/botlit/pages/PoliciesPage.js +25 -26
  229. package/dist/botlit/pages/PoliciesPage.js.map +1 -1
  230. package/dist/botlit/pages/PolicyDetailPage.d.ts +6 -0
  231. package/dist/botlit/pages/PolicyDetailPage.js +257 -259
  232. package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
  233. package/dist/botlit/pages/PromptStudioPage.d.ts +2 -0
  234. package/dist/botlit/pages/PromptStudioPage.js +35 -35
  235. package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
  236. package/dist/botlit/pages/PromptTemplateDetailPage.d.ts +6 -0
  237. package/dist/botlit/pages/PromptTemplateDetailPage.js +363 -362
  238. package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
  239. package/dist/botlit/pages/PromptTemplatesPage.d.ts +2 -0
  240. package/dist/botlit/pages/PromptTemplatesPage.js +26 -27
  241. package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
  242. package/dist/botlit/pages/RetrievalProfileDetailPage.d.ts +6 -0
  243. package/dist/botlit/pages/RetrievalProfileDetailPage.js +150 -158
  244. package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
  245. package/dist/botlit/pages/RetrievalProfilesPage.d.ts +2 -0
  246. package/dist/botlit/pages/RetrievalProfilesPage.js +24 -25
  247. package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
  248. package/dist/botlit/pages/SettingsPage.d.ts +2 -0
  249. package/dist/botlit/pages/SettingsPage.js +124 -125
  250. package/dist/botlit/pages/SettingsPage.js.map +1 -1
  251. package/dist/botlit/pages/SkillDetailPage.d.ts +6 -0
  252. package/dist/botlit/pages/SkillDetailPage.js +216 -217
  253. package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
  254. package/dist/botlit/pages/SkillsPage.d.ts +2 -0
  255. package/dist/botlit/pages/SkillsPage.js +24 -25
  256. package/dist/botlit/pages/SkillsPage.js.map +1 -1
  257. package/dist/botlit/pages/StorePackageDetailPage.d.ts +2 -0
  258. package/dist/botlit/pages/StorePackageDetailPage.js +38 -39
  259. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  260. package/dist/botlit/pages/StorePage.d.ts +2 -0
  261. package/dist/botlit/pages/StorePage.js +135 -136
  262. package/dist/botlit/pages/StorePage.js.map +1 -1
  263. package/dist/botlit/pages/index.d.ts +39 -0
  264. package/dist/botlit/permissions/PermissionRequired.d.ts +20 -0
  265. package/dist/botlit/permissions/PermissionRequired.js +10 -11
  266. package/dist/botlit/permissions/PermissionRequired.js.map +1 -1
  267. package/dist/botlit/permissions/botmanorPermissions.d.ts +82 -0
  268. package/dist/botlit/permissions/botmanorPermissions.js +1 -2
  269. package/dist/botlit/permissions/botmanorPermissions.js.map +1 -1
  270. package/dist/botlit/permissions/index.d.ts +7 -0
  271. package/dist/botlit/permissions/index.js +4 -3
  272. package/dist/botlit/permissions/useBotmanorPermissions.d.ts +41 -0
  273. package/dist/botlit/permissions/useBotmanorPermissions.js +1 -2
  274. package/dist/botlit/permissions/useBotmanorPermissions.js.map +1 -1
  275. package/dist/botlit/providers/BotlitProvider.d.ts +14 -0
  276. package/dist/botlit/providers/BotlitProvider.js +3 -3
  277. package/dist/botlit/providers/BotlitProvider.js.map +1 -1
  278. package/dist/botlit/store/botlitStore.d.ts +85 -0
  279. package/dist/botlit/store/botlitStore.js +1 -2
  280. package/dist/botlit/store/botlitStore.js.map +1 -1
  281. package/dist/botlit/store/renamedKeyStorage.d.ts +13 -0
  282. package/dist/botlit/store/renamedKeyStorage.js +1 -2
  283. package/dist/botlit/store/renamedKeyStorage.js.map +1 -1
  284. package/dist/botlit/types/index.d.ts +1008 -0
  285. package/dist/botlit/utils/cn.d.ts +2 -0
  286. package/dist/botlit/utils/cn.js +1 -2
  287. package/dist/botlit/utils/cn.js.map +1 -1
  288. package/dist/botlit/utils/embedding-models.d.ts +9 -0
  289. package/dist/botlit/utils/embedding-models.js +1 -2
  290. package/dist/botlit/utils/embedding-models.js.map +1 -1
  291. package/dist/botlit/utils/errors.d.ts +19 -0
  292. package/dist/botlit/utils/errors.js +1 -2
  293. package/dist/botlit/utils/errors.js.map +1 -1
  294. package/dist/botlit/utils/formatters.d.ts +38 -0
  295. package/dist/botlit/utils/formatters.js +0 -1
  296. package/dist/botlit/utils/formatters.js.map +1 -1
  297. package/dist/botlit/utils/navigation.d.ts +19 -0
  298. package/dist/botlit/utils/navigation.js +1 -2
  299. package/dist/botlit/utils/navigation.js.map +1 -1
  300. package/dist/botlit/utils/policyConfig.d.ts +68 -0
  301. package/dist/botlit/utils/policyConfig.js +2 -3
  302. package/dist/botlit/utils/policyConfig.js.map +1 -1
  303. package/dist/botlit/utils/unions.d.ts +25 -0
  304. package/dist/botlit/utils/unions.js +1 -2
  305. package/dist/botlit/utils/unions.js.map +1 -1
  306. package/dist/dev/App.d.ts +2 -0
  307. package/dist/dev/main.d.ts +0 -0
  308. package/dist/generated/global-operations.d.ts +197 -0
  309. package/dist/generated/global-operations.js +1 -2
  310. package/dist/generated/global-operations.js.map +1 -1
  311. package/dist/generated/global-types.d.ts +27678 -0
  312. package/dist/generated/global-types.js +1 -2
  313. package/dist/generated/global-types.js.map +1 -1
  314. package/dist/generated/wspace-operations.d.ts +5489 -0
  315. package/dist/generated/wspace-operations.js +172 -75
  316. package/dist/generated/wspace-operations.js.map +1 -1
  317. package/dist/generated/wspace-types.d.ts +152017 -0
  318. package/dist/generated/wspace-types.js +6 -5
  319. package/dist/generated/wspace-types.js.map +1 -1
  320. package/dist/index.d.ts +5 -0
  321. package/dist/shared/hooks/useTr.d.ts +16 -0
  322. package/dist/shared/hooks/useTr.js +1 -2
  323. package/dist/shared/hooks/useTr.js.map +1 -1
  324. package/dist/stories/Badge.stories.d.ts +11 -0
  325. package/dist/stories/Button.stories.d.ts +13 -0
  326. package/dist/stories/EmptyState.stories.d.ts +8 -0
  327. package/dist/stories/StatusBadge.stories.d.ts +9 -0
  328. package/dist/test/fixtures.d.ts +39 -0
  329. package/dist/test/happydom.d.ts +1 -0
  330. package/dist/test/renderPage.d.ts +18 -0
  331. package/dist/test/setup.d.ts +9 -0
  332. package/dist/utils/nativeBridge.d.ts +2 -0
  333. package/dist/utils/nativeBridge.js +1 -2
  334. package/package.json +87 -60
@@ -1,35 +1,36 @@
1
1
  import { useTr as e } from "../../shared/hooks/useTr.js";
2
- import { useBotlit as t } from "../providers/BotlitProvider.js";
3
- import { useBot as n, useCreateBot as ee, useDeleteBot as r, useUpdateBot as te } from "../hooks/useBots.js";
4
- import { useAgents as ne } from "../hooks/useAgents.js";
5
- import { cn as re } from "../utils/cn.js";
6
- import { formatNumber as ie, formatRelativeTime as ae } from "../utils/formatters.js";
7
- import { BOTMANOR_PERMISSIONS as i } from "../permissions/botmanorPermissions.js";
8
- import { BotmanorPermissionGate as a, useBotmanorCan as oe } from "../permissions/useBotmanorPermissions.js";
9
- import { PageLayout as o } from "../components/PageLayout.js";
10
- import { Button as s } from "../components/Button.js";
11
- import "../permissions/index.js";
12
- import { Card as c, CardContent as l, CardDescription as u, CardHeader as d, CardTitle as f } from "../components/Card.js";
13
- import { Badge as p, StatusBadge as m } from "../components/Badge.js";
14
- import { EmptyState as se } from "../components/EmptyState.js";
15
- import { FormField as h, Input as g, Textarea as _ } from "../components/Input.js";
2
+ import { PageLayout as t } from "../components/PageLayout.js";
3
+ import { AiOperationsPanel as n } from "../components/AiOperationsPanel.js";
4
+ import { Card as r, CardContent as i, CardDescription as a, CardHeader as o, CardTitle as s } from "../components/Card.js";
5
+ import { Button as c } from "../components/Button.js";
6
+ import { FormField as l, Input as u, Textarea as d } from "../components/Input.js";
7
+ import { BOTMANOR_PERMISSIONS as f } from "../permissions/botmanorPermissions.js";
8
+ import { BotmanorPermissionGate as p, useBotmanorCan as ee } from "../permissions/useBotmanorPermissions.js";
9
+ import { Badge as m, StatusBadge as h } from "../components/Badge.js";
10
+ import { EmptyState as te } from "../components/EmptyState.js";
11
+ import { useBot as ne, useCreateBot as re, useDeleteBot as g, useUpdateBot as ie } from "../hooks/useBots.js";
12
+ import { useAgents as _ } from "../hooks/useAgents.js";
13
+ import { QuotaExhaustedDialog as ae } from "../components/QuotaExhaustedDialog.js";
14
+ import { useBotlit as oe } from "../providers/BotlitProvider.js";
15
+ import { formatNumber as se, formatRelativeTime as ce } from "../utils/formatters.js";
16
+ import { cn as le } from "../utils/cn.js";
16
17
  import { toUnion as v } from "../utils/unions.js";
17
- import { QuotaExhaustedDialog as ce } from "../components/QuotaExhaustedDialog.js";
18
- import { BotChannelsTab as le } from "./BotChannelsTab.js";
19
- import { Suspense as ue, lazy as y, useEffect as de, useState as b } from "react";
20
- import { GlassCard as fe, NextSteps as pe, PagePurpose as me } from "@burdenoff/fe-libs/ui";
21
- import { Fragment as he, jsx as x, jsxs as S } from "react/jsx-runtime";
22
- import { Link as ge, useParams as _e, useSearchParams as ve } from "react-router";
23
- import { isQuotaExhaustedError as ye } from "@burdenoff/fe-libs/shared/utils";
24
- import { ArrowLeft as C, BarChart3 as be, Bot as w, Edit as xe, GitBranch as T, Layers as E, MessageSquare as D, Radio as O, Save as k, Shield as A, Trash2 as j, Workflow as M } from "lucide-react";
18
+ import { BotChannelsTab as ue } from "./BotChannelsTab.js";
19
+ import "../permissions/index.js";
20
+ import { Suspense as de, lazy as y, useEffect as fe, useState as b } from "react";
21
+ import { GlassCard as pe, NextSteps as me, PagePurpose as he } from "@burdenoff/fe-libs/ui";
22
+ import { Fragment as ge, jsx as x, jsxs as S } from "react/jsx-runtime";
23
+ import { Link as _e, useParams as ve, useSearchParams as ye } from "react-router";
24
+ import { isQuotaExhaustedError as be } from "@burdenoff/fe-libs/shared/utils";
25
+ import { ArrowLeft as C, BarChart3 as w, Bot as T, Edit as xe, GitBranch as Se, Layers as E, MessageSquare as D, Radio as O, Save as k, Shield as A, ShieldCheck as j, Trash2 as Ce, Workflow as M } from "lucide-react";
25
26
  import { toast as N } from "sonner";
26
- //#region src/botlit/pages/BotDetailPage.tsx
27
- var Se = y(() => import("./BotWorkflowTab.js").then((e) => ({ default: e.BotWorkflowTab }))), P = [
27
+ // src/botlit/pages/BotDetailPage.tsx
28
+ var we = y(() => import("./BotWorkflowTab.js").then((e) => ({ default: e.BotWorkflowTab }))), P = [
28
29
  "SINGLE",
29
30
  "ROUND_ROBIN",
30
31
  "INTELLIGENT",
31
32
  "CUSTOM"
32
- ], Ce = "ASSISTANT", F = {
33
+ ], Te = "ASSISTANT", F = {
33
34
  name: "",
34
35
  slug: "",
35
36
  description: "",
@@ -39,7 +40,7 @@ var Se = y(() => import("./BotWorkflowTab.js").then((e) => ({ default: e.BotWork
39
40
  fallbackMessage: "",
40
41
  defaultAgentId: ""
41
42
  };
42
- function we(e) {
43
+ function Ee(e) {
43
44
  return {
44
45
  name: e.name,
45
46
  slug: e.slug,
@@ -58,48 +59,45 @@ var I = [
58
59
  "agents",
59
60
  "channels",
60
61
  "guardrails",
62
+ "aiOperations",
61
63
  "releases"
62
64
  ];
63
- function Te(e) {
65
+ function L(e) {
64
66
  if (e.get("code") && e.get("state")) return "channels";
65
67
  let t = e.get("tab");
66
68
  return I.find((e) => e === t) ?? "overview";
67
69
  }
68
- var L = ({ isNew: y, isEditing: I }) => {
69
- let L = e(), { botId: R } = _e(), [z] = ve(), Ee = oe(), { navigateTo: B, getPath: De, workspaceId: V, navigate: H } = t(), { data: U, loading: Oe, refetch: W } = n(y ? void 0 : R), { data: G } = ne(), [ke, Ae] = ee(), [K, q] = te(), [je, Me] = r(), [J, Y] = b(() => Te(z)), [X, Z] = b(F), [Ne, Q] = b(!1), Pe = () => {
70
- if (H) {
71
- H("/billing");
72
- return;
73
- }
74
- window.location.assign("/billing");
70
+ var R = ({ isNew: y, isEditing: I }) => {
71
+ let R = e(), { botId: z } = ve(), [De] = ye(), Oe = ee(), { navigateTo: B, getPath: ke, workspaceId: V, navigate: H } = oe(), { data: U, loading: Ae, refetch: W } = ne(y ? void 0 : z), { data: G } = _(), [je, Me] = re(), [K, q] = ie(), [Ne, Pe] = g(), [J, Y] = b(() => L(De)), [X, Z] = b(F), [Fe, Q] = b(!1), Ie = () => {
72
+ H ? H("/billing") : window.location.assign("/billing");
75
73
  };
76
- de(() => {
77
- U && !y && Z(we(U));
74
+ fe(() => {
75
+ U && !y && Z(Ee(U));
78
76
  }, [U, y]);
79
- let Fe = async () => {
80
- if (!(!X.name || !V)) try {
81
- let e = await ke({
77
+ let Le = async () => {
78
+ if (X.name && V) try {
79
+ let e = await je({
82
80
  workspaceId: V,
83
81
  name: X.name,
84
82
  slug: X.slug || X.name.toLowerCase().replace(/\s+/g, "-"),
85
- type: Ce,
83
+ type: Te,
86
84
  routingStrategy: X.routingStrategy,
87
85
  description: X.description || void 0,
88
86
  icon: X.icon || void 0
89
87
  });
90
- N.success(`${L("botlit.botDetail.create.successPrefix", "Bot")} "${X.name}" ${L("botlit.botDetail.create.successSuffix", "created successfully")}`), e?.id && B(`bots/${e.id}?tab=workflow`);
88
+ N.success(`${R("botlit.botDetail.create.successPrefix", "Bot")} "${X.name}" ${R("botlit.botDetail.create.successSuffix", "created successfully")}`), e?.id && B(`bots/${e.id}?tab=workflow`);
91
89
  } catch (e) {
92
- if (ye(e)) {
90
+ if (be(e)) {
93
91
  Q(!0);
94
92
  return;
95
93
  }
96
- let t = e instanceof Error ? e.message : L("botlit.botDetail.create.error", "Failed to create bot");
94
+ let t = e instanceof Error ? e.message : R("botlit.botDetail.create.error", "Failed to create bot");
97
95
  N.error(t);
98
96
  }
99
- }, Ie = async () => {
100
- if (R) try {
97
+ }, Re = async () => {
98
+ if (z) try {
101
99
  await K({
102
- botId: R,
100
+ botId: z,
103
101
  input: {
104
102
  name: X.name,
105
103
  slug: X.slug,
@@ -110,32 +108,32 @@ var L = ({ isNew: y, isEditing: I }) => {
110
108
  fallbackMessage: X.fallbackMessage || null,
111
109
  defaultAgentId: X.defaultAgentId || null
112
110
  }
113
- }), await W(), N.success(`${L("botlit.botDetail.update.successPrefix", "Bot")} "${X.name}" ${L("botlit.botDetail.update.successSuffix", "updated successfully")}`), I && B(`bots/${R}`);
111
+ }), await W(), N.success(`${R("botlit.botDetail.update.successPrefix", "Bot")} "${X.name}" ${R("botlit.botDetail.update.successSuffix", "updated successfully")}`), I && B(`bots/${z}`);
114
112
  } catch (e) {
115
- let t = e instanceof Error ? e.message : L("botlit.botDetail.update.error", "Failed to update bot");
113
+ let t = e instanceof Error ? e.message : R("botlit.botDetail.update.error", "Failed to update bot");
116
114
  N.error(t);
117
115
  }
118
116
  };
119
- if (y) return /* @__PURE__ */ S(he, { children: [/* @__PURE__ */ x(o, {
120
- title: L("botlit.botDetail.createPage.title", "Create New Bot"),
121
- description: L("botlit.botDetail.createPage.description", "Set up a new AI-powered bot"),
117
+ if (y) return /* @__PURE__ */ S(ge, { children: [/* @__PURE__ */ x(t, {
118
+ title: R("botlit.botDetail.createPage.title", "Create New Bot"),
119
+ description: R("botlit.botDetail.createPage.description", "Set up a new AI-powered bot"),
122
120
  actions: /* @__PURE__ */ S("div", {
123
121
  className: "flex gap-2",
124
- children: [/* @__PURE__ */ x(s, {
122
+ children: [/* @__PURE__ */ x(c, {
125
123
  variant: "outline",
126
124
  onClick: () => B("bots"),
127
- children: L("botlit.common.cancel", "Cancel")
128
- }), /* @__PURE__ */ x(s, {
125
+ children: R("botlit.common.cancel", "Cancel")
126
+ }), /* @__PURE__ */ x(c, {
129
127
  leftIcon: /* @__PURE__ */ x(k, { size: 16 }),
130
- onClick: Fe,
131
- isLoading: Ae.loading,
128
+ onClick: Le,
129
+ isLoading: Me.loading,
132
130
  disabled: !X.name || !V,
133
- children: L("botlit.botDetail.createPage.actions.createBot", "Create Bot")
131
+ children: R("botlit.botDetail.createPage.actions.createBot", "Create Bot")
134
132
  })]
135
133
  }),
136
- children: /* @__PURE__ */ x(c, {
134
+ children: /* @__PURE__ */ x(r, {
137
135
  className: "max-w-2xl",
138
- children: /* @__PURE__ */ S(l, {
136
+ children: /* @__PURE__ */ S(i, {
139
137
  className: "pt-6 space-y-6",
140
138
  children: [
141
139
  /* @__PURE__ */ S("div", {
@@ -163,16 +161,16 @@ var L = ({ isNew: y, isEditing: I }) => {
163
161
  children: X.icon
164
162
  }), /* @__PURE__ */ x("p", {
165
163
  className: "text-sm text-text-secondary",
166
- children: L("botlit.botDetail.form.clickToChangeIcon", "Click to change icon")
164
+ children: R("botlit.botDetail.form.clickToChangeIcon", "Click to change icon")
167
165
  })]
168
166
  }),
169
- /* @__PURE__ */ x(h, {
170
- label: L("botlit.botDetail.form.botName", "Bot Name"),
167
+ /* @__PURE__ */ x(l, {
168
+ label: R("botlit.botDetail.form.botName", "Bot Name"),
171
169
  required: !0,
172
170
  htmlFor: "name",
173
- children: /* @__PURE__ */ x(g, {
171
+ children: /* @__PURE__ */ x(u, {
174
172
  id: "name",
175
- placeholder: L("botlit.botDetail.form.botNamePlaceholder", "e.g., Customer Support Bot"),
173
+ placeholder: R("botlit.botDetail.form.botNamePlaceholder", "e.g., Customer Support Bot"),
176
174
  value: X.name,
177
175
  onChange: (e) => Z({
178
176
  ...X,
@@ -180,12 +178,12 @@ var L = ({ isNew: y, isEditing: I }) => {
180
178
  })
181
179
  })
182
180
  }),
183
- /* @__PURE__ */ x(h, {
184
- label: L("botlit.botDetail.form.slug", "Slug"),
181
+ /* @__PURE__ */ x(l, {
182
+ label: R("botlit.botDetail.form.slug", "Slug"),
185
183
  htmlFor: "slug",
186
- children: /* @__PURE__ */ x(g, {
184
+ children: /* @__PURE__ */ x(u, {
187
185
  id: "slug",
188
- placeholder: L("botlit.botDetail.form.slugPlaceholder", "customer-support-bot"),
186
+ placeholder: R("botlit.botDetail.form.slugPlaceholder", "customer-support-bot"),
189
187
  value: X.slug,
190
188
  onChange: (e) => Z({
191
189
  ...X,
@@ -193,12 +191,12 @@ var L = ({ isNew: y, isEditing: I }) => {
193
191
  })
194
192
  })
195
193
  }),
196
- /* @__PURE__ */ x(h, {
197
- label: L("botlit.botDetail.form.description", "Description"),
194
+ /* @__PURE__ */ x(l, {
195
+ label: R("botlit.botDetail.form.description", "Description"),
198
196
  htmlFor: "description",
199
- children: /* @__PURE__ */ x(_, {
197
+ children: /* @__PURE__ */ x(d, {
200
198
  id: "description",
201
- placeholder: L("botlit.botDetail.form.descriptionPlaceholder", "Describe what this bot does..."),
199
+ placeholder: R("botlit.botDetail.form.descriptionPlaceholder", "Describe what this bot does..."),
202
200
  value: X.description,
203
201
  onChange: (e) => Z({
204
202
  ...X,
@@ -207,8 +205,8 @@ var L = ({ isNew: y, isEditing: I }) => {
207
205
  rows: 4
208
206
  })
209
207
  }),
210
- /* @__PURE__ */ x(h, {
211
- label: L("botlit.botDetail.form.routingStrategy", "Routing Strategy"),
208
+ /* @__PURE__ */ x(l, {
209
+ label: R("botlit.botDetail.form.routingStrategy", "Routing Strategy"),
212
210
  children: /* @__PURE__ */ S("select", {
213
211
  className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
214
212
  value: X.routingStrategy,
@@ -219,19 +217,19 @@ var L = ({ isNew: y, isEditing: I }) => {
219
217
  children: [
220
218
  /* @__PURE__ */ x("option", {
221
219
  value: "SINGLE",
222
- children: L("botlit.botDetail.routing.single", "Single")
220
+ children: R("botlit.botDetail.routing.single", "Single")
223
221
  }),
224
222
  /* @__PURE__ */ x("option", {
225
223
  value: "ROUND_ROBIN",
226
- children: L("botlit.botDetail.routing.roundRobin", "Round Robin")
224
+ children: R("botlit.botDetail.routing.roundRobin", "Round Robin")
227
225
  }),
228
226
  /* @__PURE__ */ x("option", {
229
227
  value: "INTELLIGENT",
230
- children: L("botlit.botDetail.routing.intelligent", "Intelligent")
228
+ children: R("botlit.botDetail.routing.intelligent", "Intelligent")
231
229
  }),
232
230
  /* @__PURE__ */ x("option", {
233
231
  value: "CUSTOM",
234
- children: L("botlit.botDetail.routing.custom", "Custom")
232
+ children: R("botlit.botDetail.routing.custom", "Custom")
235
233
  })
236
234
  ]
237
235
  })
@@ -239,56 +237,56 @@ var L = ({ isNew: y, isEditing: I }) => {
239
237
  ]
240
238
  })
241
239
  })
242
- }), /* @__PURE__ */ x(ce, {
243
- open: Ne,
244
- title: L("botlit.usage.botQuota.title", "Bot Limit Reached"),
245
- description: L("botlit.usage.botQuota.description", "You have reached the number of bots allowed on your current plan."),
240
+ }), /* @__PURE__ */ x(ae, {
241
+ open: Fe,
242
+ title: R("botlit.usage.botQuota.title", "Bot Limit Reached"),
243
+ description: R("botlit.usage.botQuota.description", "You have reached the number of bots allowed on your current plan."),
246
244
  onClose: () => Q(!1),
247
- onViewBilling: Pe
245
+ onViewBilling: Ie
248
246
  })] });
249
- if (Oe) return /* @__PURE__ */ x(o, {
250
- title: L("botlit.common.loading", "Loading..."),
247
+ if (Ae) return /* @__PURE__ */ x(t, {
248
+ title: R("botlit.common.loading", "Loading..."),
251
249
  children: /* @__PURE__ */ x("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
252
250
  });
253
- if (!U) return /* @__PURE__ */ x(o, {
254
- title: L("botlit.botDetail.notFound.title", "Bot Not Found"),
255
- children: /* @__PURE__ */ x(se, {
251
+ if (!U) return /* @__PURE__ */ x(t, {
252
+ title: R("botlit.botDetail.notFound.title", "Bot Not Found"),
253
+ children: /* @__PURE__ */ x(te, {
256
254
  illustration: "empty-agents",
257
- title: L("botlit.botDetail.notFound.title", "Bot Not Found"),
258
- description: L("botlit.botDetail.notFound.description", "The bot you're looking for doesn't exist."),
259
- action: /* @__PURE__ */ x(s, {
255
+ title: R("botlit.botDetail.notFound.title", "Bot Not Found"),
256
+ description: R("botlit.botDetail.notFound.description", "The bot you're looking for doesn't exist."),
257
+ action: /* @__PURE__ */ x(c, {
260
258
  onClick: () => B("bots"),
261
- children: L("botlit.botDetail.notFound.backAction", "Back to Bots")
259
+ children: R("botlit.botDetail.notFound.backAction", "Back to Bots")
262
260
  })
263
261
  })
264
262
  });
265
- if (I && U) return /* @__PURE__ */ x(o, {
263
+ if (I && U) return /* @__PURE__ */ x(t, {
266
264
  title: /* @__PURE__ */ S("div", {
267
265
  className: "flex items-center gap-3",
268
- children: [/* @__PURE__ */ x(s, {
266
+ children: [/* @__PURE__ */ x(c, {
269
267
  variant: "ghost",
270
268
  size: "icon",
271
- onClick: () => B(`bots/${R}`),
269
+ onClick: () => B(`bots/${z}`),
272
270
  children: /* @__PURE__ */ x(C, { size: 20 })
273
- }), /* @__PURE__ */ x("span", { children: L("botlit.botDetail.editPage.title", "Edit Bot") })]
271
+ }), /* @__PURE__ */ x("span", { children: R("botlit.botDetail.editPage.title", "Edit Bot") })]
274
272
  }),
275
273
  actions: /* @__PURE__ */ S("div", {
276
274
  className: "flex gap-2",
277
- children: [/* @__PURE__ */ x(s, {
275
+ children: [/* @__PURE__ */ x(c, {
278
276
  variant: "outline",
279
- onClick: () => B(`bots/${R}`),
280
- children: L("botlit.common.cancel", "Cancel")
281
- }), /* @__PURE__ */ x(s, {
277
+ onClick: () => B(`bots/${z}`),
278
+ children: R("botlit.common.cancel", "Cancel")
279
+ }), /* @__PURE__ */ x(c, {
282
280
  leftIcon: /* @__PURE__ */ x(k, { size: 16 }),
283
- onClick: Ie,
281
+ onClick: Re,
284
282
  isLoading: q.loading,
285
283
  disabled: !X.name,
286
- children: L("botlit.botDetail.editPage.actions.saveChanges", "Save Changes")
284
+ children: R("botlit.botDetail.editPage.actions.saveChanges", "Save Changes")
287
285
  })]
288
286
  }),
289
- children: /* @__PURE__ */ x(c, {
287
+ children: /* @__PURE__ */ x(r, {
290
288
  className: "max-w-2xl",
291
- children: /* @__PURE__ */ S(l, {
289
+ children: /* @__PURE__ */ S(i, {
292
290
  className: "pt-6 space-y-6",
293
291
  children: [
294
292
  /* @__PURE__ */ S("div", {
@@ -316,16 +314,16 @@ var L = ({ isNew: y, isEditing: I }) => {
316
314
  children: X.icon
317
315
  }), /* @__PURE__ */ x("p", {
318
316
  className: "text-sm text-text-secondary",
319
- children: L("botlit.botDetail.form.clickToChangeIcon", "Click to change icon")
317
+ children: R("botlit.botDetail.form.clickToChangeIcon", "Click to change icon")
320
318
  })]
321
319
  }),
322
- /* @__PURE__ */ x(h, {
323
- label: L("botlit.botDetail.form.botName", "Bot Name"),
320
+ /* @__PURE__ */ x(l, {
321
+ label: R("botlit.botDetail.form.botName", "Bot Name"),
324
322
  required: !0,
325
323
  htmlFor: "edit-name",
326
- children: /* @__PURE__ */ x(g, {
324
+ children: /* @__PURE__ */ x(u, {
327
325
  id: "edit-name",
328
- placeholder: L("botlit.botDetail.form.botNamePlaceholder", "e.g., Customer Support Bot"),
326
+ placeholder: R("botlit.botDetail.form.botNamePlaceholder", "e.g., Customer Support Bot"),
329
327
  value: X.name,
330
328
  onChange: (e) => Z({
331
329
  ...X,
@@ -333,12 +331,12 @@ var L = ({ isNew: y, isEditing: I }) => {
333
331
  })
334
332
  })
335
333
  }),
336
- /* @__PURE__ */ x(h, {
337
- label: L("botlit.botDetail.form.slug", "Slug"),
334
+ /* @__PURE__ */ x(l, {
335
+ label: R("botlit.botDetail.form.slug", "Slug"),
338
336
  htmlFor: "edit-slug",
339
- children: /* @__PURE__ */ x(g, {
337
+ children: /* @__PURE__ */ x(u, {
340
338
  id: "edit-slug",
341
- placeholder: L("botlit.botDetail.form.slugPlaceholder", "customer-support-bot"),
339
+ placeholder: R("botlit.botDetail.form.slugPlaceholder", "customer-support-bot"),
342
340
  value: X.slug,
343
341
  onChange: (e) => Z({
344
342
  ...X,
@@ -346,12 +344,12 @@ var L = ({ isNew: y, isEditing: I }) => {
346
344
  })
347
345
  })
348
346
  }),
349
- /* @__PURE__ */ x(h, {
350
- label: L("botlit.botDetail.form.description", "Description"),
347
+ /* @__PURE__ */ x(l, {
348
+ label: R("botlit.botDetail.form.description", "Description"),
351
349
  htmlFor: "edit-description",
352
- children: /* @__PURE__ */ x(_, {
350
+ children: /* @__PURE__ */ x(d, {
353
351
  id: "edit-description",
354
- placeholder: L("botlit.botDetail.form.descriptionPlaceholder", "Describe what this bot does..."),
352
+ placeholder: R("botlit.botDetail.form.descriptionPlaceholder", "Describe what this bot does..."),
355
353
  value: X.description,
356
354
  onChange: (e) => Z({
357
355
  ...X,
@@ -360,8 +358,8 @@ var L = ({ isNew: y, isEditing: I }) => {
360
358
  rows: 4
361
359
  })
362
360
  }),
363
- /* @__PURE__ */ x(h, {
364
- label: L("botlit.botDetail.form.routingStrategy", "Routing Strategy"),
361
+ /* @__PURE__ */ x(l, {
362
+ label: R("botlit.botDetail.form.routingStrategy", "Routing Strategy"),
365
363
  children: /* @__PURE__ */ S("select", {
366
364
  className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
367
365
  value: X.routingStrategy,
@@ -372,29 +370,29 @@ var L = ({ isNew: y, isEditing: I }) => {
372
370
  children: [
373
371
  /* @__PURE__ */ x("option", {
374
372
  value: "SINGLE",
375
- children: L("botlit.botDetail.routing.single", "Single")
373
+ children: R("botlit.botDetail.routing.single", "Single")
376
374
  }),
377
375
  /* @__PURE__ */ x("option", {
378
376
  value: "ROUND_ROBIN",
379
- children: L("botlit.botDetail.routing.roundRobin", "Round Robin")
377
+ children: R("botlit.botDetail.routing.roundRobin", "Round Robin")
380
378
  }),
381
379
  /* @__PURE__ */ x("option", {
382
380
  value: "INTELLIGENT",
383
- children: L("botlit.botDetail.routing.intelligent", "Intelligent")
381
+ children: R("botlit.botDetail.routing.intelligent", "Intelligent")
384
382
  }),
385
383
  /* @__PURE__ */ x("option", {
386
384
  value: "CUSTOM",
387
- children: L("botlit.botDetail.routing.custom", "Custom")
385
+ children: R("botlit.botDetail.routing.custom", "Custom")
388
386
  })
389
387
  ]
390
388
  })
391
389
  }),
392
- /* @__PURE__ */ x(h, {
393
- label: L("botlit.botDetail.form.welcomeMessage", "Welcome Message"),
390
+ /* @__PURE__ */ x(l, {
391
+ label: R("botlit.botDetail.form.welcomeMessage", "Welcome Message"),
394
392
  htmlFor: "edit-welcome",
395
- children: /* @__PURE__ */ x(_, {
393
+ children: /* @__PURE__ */ x(d, {
396
394
  id: "edit-welcome",
397
- placeholder: L("botlit.botDetail.form.welcomeMessagePlaceholder", "Welcome message shown to users..."),
395
+ placeholder: R("botlit.botDetail.form.welcomeMessagePlaceholder", "Welcome message shown to users..."),
398
396
  value: X.welcomeMessage,
399
397
  onChange: (e) => Z({
400
398
  ...X,
@@ -403,12 +401,12 @@ var L = ({ isNew: y, isEditing: I }) => {
403
401
  rows: 3
404
402
  })
405
403
  }),
406
- /* @__PURE__ */ x(h, {
407
- label: L("botlit.botDetail.form.fallbackMessage", "Fallback Message"),
404
+ /* @__PURE__ */ x(l, {
405
+ label: R("botlit.botDetail.form.fallbackMessage", "Fallback Message"),
408
406
  htmlFor: "edit-fallback",
409
- children: /* @__PURE__ */ x(g, {
407
+ children: /* @__PURE__ */ x(u, {
410
408
  id: "edit-fallback",
411
- placeholder: L("botlit.botDetail.form.fallbackMessagePlaceholder", "Message when agent can't respond..."),
409
+ placeholder: R("botlit.botDetail.form.fallbackMessagePlaceholder", "Message when agent can't respond..."),
412
410
  value: X.fallbackMessage,
413
411
  onChange: (e) => Z({
414
412
  ...X,
@@ -416,8 +414,8 @@ var L = ({ isNew: y, isEditing: I }) => {
416
414
  })
417
415
  })
418
416
  }),
419
- /* @__PURE__ */ x(h, {
420
- label: L("botlit.botDetail.form.defaultAgent", "Default Agent"),
417
+ /* @__PURE__ */ x(l, {
418
+ label: R("botlit.botDetail.form.defaultAgent", "Default Agent"),
421
419
  children: /* @__PURE__ */ S("select", {
422
420
  className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
423
421
  value: X.defaultAgentId,
@@ -427,7 +425,7 @@ var L = ({ isNew: y, isEditing: I }) => {
427
425
  }),
428
426
  children: [/* @__PURE__ */ x("option", {
429
427
  value: "",
430
- children: L("botlit.botDetail.form.noDefaultAgent", "No default agent")
428
+ children: R("botlit.botDetail.form.noDefaultAgent", "No default agent")
431
429
  }), G?.map((e) => /* @__PURE__ */ x("option", {
432
430
  value: e.id,
433
431
  children: e.name
@@ -438,48 +436,53 @@ var L = ({ isNew: y, isEditing: I }) => {
438
436
  })
439
437
  })
440
438
  });
441
- let Le = [
439
+ let ze = [
442
440
  {
443
441
  id: "overview",
444
- label: L("botlit.botDetail.tabs.overview", "Overview"),
445
- icon: /* @__PURE__ */ x(be, { size: 16 })
442
+ label: R("botlit.botDetail.tabs.overview", "Overview"),
443
+ icon: /* @__PURE__ */ x(w, { size: 16 })
446
444
  },
447
445
  {
448
446
  id: "workflow",
449
- label: L("botlit.botDetail.tabs.workflow", "Workflow"),
447
+ label: R("botlit.botDetail.tabs.workflow", "Workflow"),
450
448
  icon: /* @__PURE__ */ x(M, { size: 16 })
451
449
  },
452
450
  {
453
451
  id: "routing",
454
- label: L("botlit.botDetail.tabs.routing", "Routing"),
455
- icon: /* @__PURE__ */ x(T, { size: 16 })
452
+ label: R("botlit.botDetail.tabs.routing", "Routing"),
453
+ icon: /* @__PURE__ */ x(Se, { size: 16 })
456
454
  },
457
455
  {
458
456
  id: "agents",
459
- label: L("botlit.botDetail.tabs.agents", "Agents"),
460
- icon: /* @__PURE__ */ x(w, { size: 16 })
457
+ label: R("botlit.botDetail.tabs.agents", "Agents"),
458
+ icon: /* @__PURE__ */ x(T, { size: 16 })
461
459
  },
462
460
  {
463
461
  id: "channels",
464
- label: L("botlit.botDetail.tabs.channels", "Channels"),
462
+ label: R("botlit.botDetail.tabs.channels", "Channels"),
465
463
  icon: /* @__PURE__ */ x(O, { size: 16 })
466
464
  },
467
465
  {
468
466
  id: "guardrails",
469
- label: L("botlit.botDetail.tabs.guardrails", "Guardrails"),
467
+ label: R("botlit.botDetail.tabs.guardrails", "Guardrails"),
470
468
  icon: /* @__PURE__ */ x(A, { size: 16 })
471
469
  },
470
+ {
471
+ id: "aiOperations",
472
+ label: R("botlit.botDetail.tabs.aiOperations", "AI Operations"),
473
+ icon: /* @__PURE__ */ x(j, { size: 16 })
474
+ },
472
475
  {
473
476
  id: "releases",
474
- label: L("botlit.botDetail.tabs.releases", "Releases"),
477
+ label: R("botlit.botDetail.tabs.releases", "Releases"),
475
478
  icon: /* @__PURE__ */ x(E, { size: 16 })
476
479
  }
477
480
  ], $ = U.defaultAgentId ? G?.find((e) => e.id === U.defaultAgentId) : null;
478
- return /* @__PURE__ */ x(o, {
481
+ return /* @__PURE__ */ x(t, {
479
482
  title: /* @__PURE__ */ S("div", {
480
483
  className: "flex items-center gap-3",
481
484
  children: [
482
- /* @__PURE__ */ x(s, {
485
+ /* @__PURE__ */ x(c, {
483
486
  variant: "ghost",
484
487
  size: "icon",
485
488
  onClick: () => B("bots"),
@@ -493,8 +496,8 @@ var L = ({ isNew: y, isEditing: I }) => {
493
496
  className: "flex items-center gap-2",
494
497
  children: [
495
498
  /* @__PURE__ */ x("span", { children: U.name }),
496
- /* @__PURE__ */ x(m, { status: U.status }),
497
- /* @__PURE__ */ x(p, {
499
+ /* @__PURE__ */ x(h, { status: U.status }),
500
+ /* @__PURE__ */ x(m, {
498
501
  variant: "outline",
499
502
  children: U.slug
500
503
  })
@@ -508,78 +511,78 @@ var L = ({ isNew: y, isEditing: I }) => {
508
511
  actions: /* @__PURE__ */ S("div", {
509
512
  className: "flex gap-2",
510
513
  children: [
511
- U.status === "DRAFT" || U.status === "ARCHIVED" ? /* @__PURE__ */ x(a, {
512
- permission: i.APP_UPDATE,
513
- children: /* @__PURE__ */ x(s, {
514
+ U.status === "DRAFT" || U.status === "ARCHIVED" ? /* @__PURE__ */ x(p, {
515
+ permission: f.APP_UPDATE,
516
+ children: /* @__PURE__ */ x(c, {
514
517
  variant: "default",
515
518
  isLoading: q.loading,
516
519
  onClick: async () => {
517
520
  try {
518
- if (!R) return;
521
+ if (!z) return;
519
522
  await K({
520
- botId: R,
523
+ botId: z,
521
524
  input: { status: "ACTIVE" }
522
- }), await W(), N.success(`${L("botlit.botDetail.activate.successPrefix", "Bot")} "${U.name}" ${L("botlit.botDetail.activate.successSuffix", "activated")}`);
525
+ }), await W(), N.success(`${R("botlit.botDetail.activate.successPrefix", "Bot")} "${U.name}" ${R("botlit.botDetail.activate.successSuffix", "activated")}`);
523
526
  } catch (e) {
524
- N.error(e instanceof Error ? e.message : L("botlit.botDetail.activate.error", "Failed to activate bot"));
527
+ N.error(e instanceof Error ? e.message : R("botlit.botDetail.activate.error", "Failed to activate bot"));
525
528
  }
526
529
  },
527
- children: L("botlit.botDetail.actions.activate", "Activate")
530
+ children: R("botlit.botDetail.actions.activate", "Activate")
528
531
  })
529
- }) : /* @__PURE__ */ x(a, {
530
- permission: i.APP_UPDATE,
531
- children: /* @__PURE__ */ x(s, {
532
+ }) : /* @__PURE__ */ x(p, {
533
+ permission: f.APP_UPDATE,
534
+ children: /* @__PURE__ */ x(c, {
532
535
  variant: "outline",
533
536
  isLoading: q.loading,
534
537
  onClick: async () => {
535
538
  try {
536
- if (!R) return;
539
+ if (!z) return;
537
540
  await K({
538
- botId: R,
541
+ botId: z,
539
542
  input: { status: "DRAFT" }
540
- }), await W(), N.success(`${L("botlit.botDetail.deactivate.successPrefix", "Bot")} "${U.name}" ${L("botlit.botDetail.deactivate.successSuffix", "deactivated")}`);
543
+ }), await W(), N.success(`${R("botlit.botDetail.deactivate.successPrefix", "Bot")} "${U.name}" ${R("botlit.botDetail.deactivate.successSuffix", "deactivated")}`);
541
544
  } catch (e) {
542
- N.error(e instanceof Error ? e.message : L("botlit.botDetail.deactivate.error", "Failed to deactivate bot"));
545
+ N.error(e instanceof Error ? e.message : R("botlit.botDetail.deactivate.error", "Failed to deactivate bot"));
543
546
  }
544
547
  },
545
- children: L("botlit.botDetail.actions.deactivate", "Deactivate")
548
+ children: R("botlit.botDetail.actions.deactivate", "Deactivate")
546
549
  })
547
550
  }),
548
- /* @__PURE__ */ x(a, {
549
- permission: i.APP_UPDATE,
550
- children: /* @__PURE__ */ x(s, {
551
+ /* @__PURE__ */ x(p, {
552
+ permission: f.APP_UPDATE,
553
+ children: /* @__PURE__ */ x(c, {
551
554
  variant: "outline",
552
555
  leftIcon: /* @__PURE__ */ x(xe, { size: 16 }),
553
- onClick: () => B(`bots/${R}/edit`),
554
- children: L("botlit.botDetail.actions.editBot", "Edit Bot")
556
+ onClick: () => B(`bots/${z}/edit`),
557
+ children: R("botlit.botDetail.actions.editBot", "Edit Bot")
555
558
  })
556
559
  }),
557
- /* @__PURE__ */ x(a, {
558
- permission: i.AGENT_EXECUTE,
559
- children: /* @__PURE__ */ x(s, {
560
+ /* @__PURE__ */ x(p, {
561
+ permission: f.AGENT_EXECUTE,
562
+ children: /* @__PURE__ */ x(c, {
560
563
  variant: "outline",
561
564
  leftIcon: /* @__PURE__ */ x(D, { size: 16 }),
562
565
  onClick: () => {
563
566
  let e = U?.defaultAgentId;
564
567
  B(e ? `chat/${e}` : "chat");
565
568
  },
566
- children: L("botlit.botDetail.actions.testBot", "Test Bot")
569
+ children: R("botlit.botDetail.actions.testBot", "Test Bot")
567
570
  })
568
571
  }),
569
- /* @__PURE__ */ x(a, {
570
- permission: i.APP_DELETE,
571
- children: /* @__PURE__ */ x(s, {
572
+ /* @__PURE__ */ x(p, {
573
+ permission: f.APP_DELETE,
574
+ children: /* @__PURE__ */ x(c, {
572
575
  variant: "destructive",
573
- leftIcon: /* @__PURE__ */ x(j, { size: 16 }),
574
- isLoading: Me.loading,
576
+ leftIcon: /* @__PURE__ */ x(Ce, { size: 16 }),
577
+ isLoading: Pe.loading,
575
578
  onClick: async () => {
576
- if (R && confirm(`${L("botlit.botDetail.delete.confirmPrefix", "Are you sure you want to delete")} "${U.name}"? ${L("botlit.botDetail.delete.confirmSuffix", "This action cannot be undone.")}`)) try {
577
- await je(R), N.success(`${L("botlit.botDetail.delete.successPrefix", "Bot")} "${U.name}" ${L("botlit.botDetail.delete.successSuffix", "deleted successfully")}`), B("bots");
579
+ if (z && confirm(`${R("botlit.botDetail.delete.confirmPrefix", "Are you sure you want to delete")} "${U.name}"? ${R("botlit.botDetail.delete.confirmSuffix", "This action cannot be undone.")}`)) try {
580
+ await Ne(z), N.success(`${R("botlit.botDetail.delete.successPrefix", "Bot")} "${U.name}" ${R("botlit.botDetail.delete.successSuffix", "deleted successfully")}`), B("bots");
578
581
  } catch (e) {
579
- N.error(e instanceof Error ? e.message : L("botlit.botDetail.delete.error", "Failed to delete bot"));
582
+ N.error(e instanceof Error ? e.message : R("botlit.botDetail.delete.error", "Failed to delete bot"));
580
583
  }
581
584
  },
582
- children: L("botlit.common.delete", "Delete")
585
+ children: R("botlit.common.delete", "Delete")
583
586
  })
584
587
  })
585
588
  ]
@@ -587,50 +590,50 @@ var L = ({ isNew: y, isEditing: I }) => {
587
590
  children: /* @__PURE__ */ S("div", {
588
591
  className: "space-y-6",
589
592
  children: [
590
- /* @__PURE__ */ x(me, {
591
- icon: /* @__PURE__ */ x(w, { size: 18 }),
592
- children: L("botlit.botDetail.purpose", "This is everything that makes up a single bot — the agent that answers, how requests are routed, which channels it is live on, its guardrails and its release history. Use the tabs to wire it up: assign a default agent, connect a channel and activate it so real users can start chatting.")
593
+ /* @__PURE__ */ x(he, {
594
+ icon: /* @__PURE__ */ x(T, { size: 18 }),
595
+ children: R("botlit.botDetail.purpose", "This is everything that makes up a single bot — the agent that answers, how requests are routed, which channels it is live on, its guardrails and its release history. Use the tabs to wire it up: assign a default agent, connect a channel and activate it so real users can start chatting.")
593
596
  }),
594
597
  /* @__PURE__ */ x("div", {
595
598
  className: "flex gap-1 border-b border-border-subtle overflow-x-auto",
596
- children: Le.map((e) => /* @__PURE__ */ S("button", {
599
+ children: ze.map((e) => /* @__PURE__ */ S("button", {
597
600
  onClick: () => Y(e.id),
598
- className: re("flex items-center gap-2 px-4 py-2 text-sm font-medium border-b-2 transition-colors whitespace-nowrap", J === e.id ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
601
+ className: le("flex items-center gap-2 px-4 py-2 text-sm font-medium border-b-2 transition-colors whitespace-nowrap", J === e.id ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
599
602
  children: [e.icon, e.label]
600
603
  }, e.id))
601
604
  }),
602
605
  J === "overview" && /* @__PURE__ */ S("div", {
603
606
  className: "space-y-6",
604
- children: [/* @__PURE__ */ x(pe, {
605
- storageKey: `botlit-bot-${R}`,
607
+ children: [/* @__PURE__ */ x(me, {
608
+ storageKey: `botlit-bot-${z}`,
606
609
  steps: [
607
610
  {
608
611
  id: "workflow",
609
- label: L("botlit.botDetail.nextSteps.workflow", "Design the workflow"),
610
- description: L("botlit.botDetail.nextSteps.workflowDesc", "Lay out what the bot does on the FluidGrids canvas."),
612
+ label: R("botlit.botDetail.nextSteps.workflow", "Design the workflow"),
613
+ description: R("botlit.botDetail.nextSteps.workflowDesc", "Lay out what the bot does on the FluidGrids canvas."),
611
614
  icon: /* @__PURE__ */ x(M, { size: 16 }),
612
615
  onClick: () => Y("workflow"),
613
616
  done: !!U.workflowId
614
617
  },
615
618
  {
616
619
  id: "agent",
617
- label: L("botlit.botDetail.nextSteps.agent", "Assign a default agent"),
618
- description: L("botlit.botDetail.nextSteps.agentDesc", "Choose which agent answers when this bot is messaged."),
619
- icon: /* @__PURE__ */ x(w, { size: 16 }),
620
+ label: R("botlit.botDetail.nextSteps.agent", "Assign a default agent"),
621
+ description: R("botlit.botDetail.nextSteps.agentDesc", "Choose which agent answers when this bot is messaged."),
622
+ icon: /* @__PURE__ */ x(T, { size: 16 }),
620
623
  onClick: () => Y("agents"),
621
624
  done: !!U.defaultAgentId
622
625
  },
623
626
  {
624
627
  id: "channel",
625
- label: L("botlit.botDetail.nextSteps.channel", "Connect a channel"),
626
- description: L("botlit.botDetail.nextSteps.channelDesc", "Put the bot on Slack, a web widget or another channel."),
628
+ label: R("botlit.botDetail.nextSteps.channel", "Connect a channel"),
629
+ description: R("botlit.botDetail.nextSteps.channelDesc", "Put the bot on Slack, a web widget or another channel."),
627
630
  icon: /* @__PURE__ */ x(O, { size: 16 }),
628
631
  onClick: () => Y("channels")
629
632
  },
630
633
  {
631
634
  id: "test",
632
- label: L("botlit.botDetail.nextSteps.test", "Test the bot"),
633
- description: L("botlit.botDetail.nextSteps.testDesc", "Send a message to check the experience end to end."),
635
+ label: R("botlit.botDetail.nextSteps.test", "Test the bot"),
636
+ description: R("botlit.botDetail.nextSteps.testDesc", "Send a message to check the experience end to end."),
634
637
  icon: /* @__PURE__ */ x(D, { size: 16 }),
635
638
  onClick: () => {
636
639
  let e = U?.defaultAgentId;
@@ -639,34 +642,34 @@ var L = ({ isNew: y, isEditing: I }) => {
639
642
  },
640
643
  {
641
644
  id: "activate",
642
- label: L("botlit.botDetail.nextSteps.activate", "Activate the bot"),
643
- description: L("botlit.botDetail.nextSteps.activateDesc", "Make it live so it starts handling conversations."),
645
+ label: R("botlit.botDetail.nextSteps.activate", "Activate the bot"),
646
+ description: R("botlit.botDetail.nextSteps.activateDesc", "Make it live so it starts handling conversations."),
644
647
  icon: /* @__PURE__ */ x(A, { size: 16 }),
645
- onClick: () => B(`bots/${R}/edit`),
648
+ onClick: () => B(`bots/${z}/edit`),
646
649
  done: U.status === "ACTIVE"
647
650
  }
648
651
  ]
649
652
  }), /* @__PURE__ */ S("div", {
650
653
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
651
654
  children: [
652
- /* @__PURE__ */ S(c, { children: [/* @__PURE__ */ x(d, { children: /* @__PURE__ */ x(f, { children: "Details" }) }), /* @__PURE__ */ S(l, {
655
+ /* @__PURE__ */ S(r, { children: [/* @__PURE__ */ x(o, { children: /* @__PURE__ */ x(s, { children: "Details" }) }), /* @__PURE__ */ S(i, {
653
656
  className: "space-y-4",
654
657
  children: [
655
658
  /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
656
659
  className: "text-sm text-text-secondary",
657
660
  children: "Status"
658
- }), /* @__PURE__ */ x(m, { status: U.status })] }),
661
+ }), /* @__PURE__ */ x(h, { status: U.status })] }),
659
662
  /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
660
663
  className: "text-sm text-text-secondary",
661
664
  children: "Visibility"
662
- }), /* @__PURE__ */ x(p, {
665
+ }), /* @__PURE__ */ x(m, {
663
666
  variant: "outline",
664
667
  children: U.visibility
665
668
  })] }),
666
669
  /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
667
670
  className: "text-sm text-text-secondary",
668
671
  children: "Routing Strategy"
669
- }), /* @__PURE__ */ x(p, {
672
+ }), /* @__PURE__ */ x(m, {
670
673
  variant: "outline",
671
674
  children: U.routingStrategy
672
675
  })] }),
@@ -689,18 +692,18 @@ var L = ({ isNew: y, isEditing: I }) => {
689
692
  children: "Created"
690
693
  }), /* @__PURE__ */ x("p", {
691
694
  className: "font-medium",
692
- children: ae(U.createdAt)
695
+ children: ce(U.createdAt)
693
696
  })] }),
694
697
  /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
695
698
  className: "text-sm text-text-secondary",
696
699
  children: "Executions"
697
700
  }), /* @__PURE__ */ x("p", {
698
701
  className: "font-medium",
699
- children: ie(U.executionCount)
702
+ children: se(U.executionCount)
700
703
  })] })
701
704
  ]
702
705
  })] }),
703
- /* @__PURE__ */ S(fe, {
706
+ /* @__PURE__ */ S(pe, {
704
707
  treatment: "glass",
705
708
  glow: !0,
706
709
  className: "lg:col-span-2 p-6",
@@ -712,7 +715,7 @@ var L = ({ isNew: y, isEditing: I }) => {
712
715
  }), /* @__PURE__ */ x("p", {
713
716
  className: "text-sm text-text-secondary",
714
717
  children: "Agent configured for this bot"
715
- })] }), /* @__PURE__ */ x(s, {
718
+ })] }), /* @__PURE__ */ x(c, {
716
719
  size: "sm",
717
720
  variant: "outline",
718
721
  onClick: () => Y("agents"),
@@ -720,8 +723,8 @@ var L = ({ isNew: y, isEditing: I }) => {
720
723
  })]
721
724
  }), /* @__PURE__ */ x("div", { children: $ ? /* @__PURE__ */ x("div", {
722
725
  className: "space-y-3",
723
- children: /* @__PURE__ */ S(ge, {
724
- to: De(`agents/${$.id}`),
726
+ children: /* @__PURE__ */ S(_e, {
727
+ to: ke(`agents/${$.id}`),
725
728
  className: "flex items-center justify-between p-3 rounded-lg border border-border-subtle hover:bg-accent transition-colors",
726
729
  children: [/* @__PURE__ */ S("div", {
727
730
  className: "flex items-center gap-3",
@@ -735,14 +738,14 @@ var L = ({ isNew: y, isEditing: I }) => {
735
738
  className: "text-xs text-text-secondary",
736
739
  children: "Default Agent"
737
740
  })] })]
738
- }), /* @__PURE__ */ x(m, { status: $.status })]
741
+ }), /* @__PURE__ */ x(h, { status: $.status })]
739
742
  })
740
743
  }) : /* @__PURE__ */ S("div", {
741
744
  className: "text-center py-8 text-text-secondary",
742
745
  children: [
743
- /* @__PURE__ */ x(w, { className: "h-8 w-8 mx-auto mb-2 opacity-50" }),
746
+ /* @__PURE__ */ x(T, { className: "h-8 w-8 mx-auto mb-2 opacity-50" }),
744
747
  /* @__PURE__ */ x("p", { children: "No default agent assigned" }),
745
- /* @__PURE__ */ x(s, {
748
+ /* @__PURE__ */ x(c, {
746
749
  size: "sm",
747
750
  className: "mt-3",
748
751
  onClick: () => Y("agents"),
@@ -751,11 +754,11 @@ var L = ({ isNew: y, isEditing: I }) => {
751
754
  ]
752
755
  }) })]
753
756
  }),
754
- (U.tagIds || []).length > 0 && /* @__PURE__ */ S(c, {
757
+ (U.tagIds || []).length > 0 && /* @__PURE__ */ S(r, {
755
758
  className: "lg:col-span-3",
756
- children: [/* @__PURE__ */ x(d, { children: /* @__PURE__ */ x(f, { children: "Tags" }) }), /* @__PURE__ */ x(l, { children: /* @__PURE__ */ x("div", {
759
+ children: [/* @__PURE__ */ x(o, { children: /* @__PURE__ */ x(s, { children: "Tags" }) }), /* @__PURE__ */ x(i, { children: /* @__PURE__ */ x("div", {
757
760
  className: "flex flex-wrap gap-2",
758
- children: (U.tagIds || []).map((e) => /* @__PURE__ */ x(p, {
761
+ children: (U.tagIds || []).map((e) => /* @__PURE__ */ x(m, {
759
762
  variant: "outline",
760
763
  children: e
761
764
  }, e))
@@ -764,10 +767,10 @@ var L = ({ isNew: y, isEditing: I }) => {
764
767
  ]
765
768
  })]
766
769
  }),
767
- J === "workflow" && R && /* @__PURE__ */ x(ue, {
770
+ J === "workflow" && z && /* @__PURE__ */ x(de, {
768
771
  fallback: /* @__PURE__ */ x("div", { className: "h-64 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }),
769
- children: /* @__PURE__ */ x(Se, {
770
- botId: R,
772
+ children: /* @__PURE__ */ x(we, {
773
+ botId: z,
771
774
  botName: U.name,
772
775
  workflowId: U.workflowId,
773
776
  onWorkflowChanged: async () => {
@@ -777,14 +780,14 @@ var L = ({ isNew: y, isEditing: I }) => {
777
780
  }),
778
781
  J === "routing" && /* @__PURE__ */ S("div", {
779
782
  className: "space-y-6",
780
- children: [/* @__PURE__ */ S(c, { children: [/* @__PURE__ */ S(d, { children: [/* @__PURE__ */ x(f, { children: "Routing Configuration" }), /* @__PURE__ */ x(u, { children: "How requests are routed to agents" })] }), /* @__PURE__ */ x(l, {
783
+ children: [/* @__PURE__ */ S(r, { children: [/* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(s, { children: "Routing Configuration" }), /* @__PURE__ */ x(a, { children: "How requests are routed to agents" })] }), /* @__PURE__ */ x(i, {
781
784
  className: "space-y-4",
782
785
  children: /* @__PURE__ */ S("div", {
783
786
  className: "grid grid-cols-2 gap-4",
784
787
  children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
785
788
  className: "text-sm text-text-secondary",
786
789
  children: "Strategy"
787
- }), /* @__PURE__ */ x(p, {
790
+ }), /* @__PURE__ */ x(m, {
788
791
  variant: "outline",
789
792
  className: "mt-1",
790
793
  children: U.routingStrategy
@@ -796,12 +799,12 @@ var L = ({ isNew: y, isEditing: I }) => {
796
799
  children: U.defaultAgentId
797
800
  })] })]
798
801
  })
799
- })] }), /* @__PURE__ */ S(c, { children: [/* @__PURE__ */ S(d, { children: [/* @__PURE__ */ x(f, { children: "Routing Rules" }), /* @__PURE__ */ x(u, { children: "No routing rules configured" })] }), /* @__PURE__ */ x(l, { children: /* @__PURE__ */ x("p", {
802
+ })] }), /* @__PURE__ */ S(r, { children: [/* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(s, { children: "Routing Rules" }), /* @__PURE__ */ x(a, { children: "No routing rules configured" })] }), /* @__PURE__ */ x(i, { children: /* @__PURE__ */ x("p", {
800
803
  className: "text-text-secondary",
801
804
  children: "No routing rules configured. Routing rules will be available in a future update."
802
805
  }) })] })]
803
806
  }),
804
- J === "agents" && /* @__PURE__ */ S(c, { children: [/* @__PURE__ */ S(d, { children: [/* @__PURE__ */ x(f, { children: "Default Agent" }), /* @__PURE__ */ x(u, { children: "Select the default agent for this bot" })] }), /* @__PURE__ */ S(l, {
807
+ J === "agents" && /* @__PURE__ */ S(r, { children: [/* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(s, { children: "Default Agent" }), /* @__PURE__ */ x(a, { children: "Select the default agent for this bot" })] }), /* @__PURE__ */ S(i, {
805
808
  className: "space-y-4",
806
809
  children: [
807
810
  $ && /* @__PURE__ */ S("div", {
@@ -814,22 +817,22 @@ var L = ({ isNew: y, isEditing: I }) => {
814
817
  }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
815
818
  className: "font-medium",
816
819
  children: $.name
817
- }), /* @__PURE__ */ x(p, {
820
+ }), /* @__PURE__ */ x(m, {
818
821
  variant: "success",
819
822
  children: "Default"
820
823
  })] })]
821
- }), /* @__PURE__ */ x(m, { status: $.status })]
824
+ }), /* @__PURE__ */ x(h, { status: $.status })]
822
825
  }),
823
826
  /* @__PURE__ */ x("div", {
824
827
  className: "flex items-center gap-3",
825
828
  children: /* @__PURE__ */ S("select", {
826
829
  className: "flex h-10 flex-1 rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
827
830
  value: U.defaultAgentId || "",
828
- disabled: !Ee(i.APP_UPDATE),
831
+ disabled: !Oe(f.APP_UPDATE),
829
832
  onChange: async (e) => {
830
- if (R) try {
833
+ if (z) try {
831
834
  await K({
832
- botId: R,
835
+ botId: z,
833
836
  input: { defaultAgentId: e.target.value || null }
834
837
  }), N.success(e.target.value ? "Default agent assigned" : "Default agent removed");
835
838
  } catch (e) {
@@ -848,15 +851,22 @@ var L = ({ isNew: y, isEditing: I }) => {
848
851
  }),
849
852
  !$ && !G?.length && /* @__PURE__ */ S("div", {
850
853
  className: "text-center py-8 text-text-secondary",
851
- children: [/* @__PURE__ */ x(w, { className: "h-8 w-8 mx-auto mb-2 opacity-50" }), /* @__PURE__ */ x("p", { children: "No agents available. Create an agent first." })]
854
+ children: [/* @__PURE__ */ x(T, { className: "h-8 w-8 mx-auto mb-2 opacity-50" }), /* @__PURE__ */ x("p", { children: "No agents available. Create an agent first." })]
852
855
  })
853
856
  ]
854
857
  })] }),
855
- J === "channels" && R && /* @__PURE__ */ x(le, {
856
- botId: R,
858
+ J === "channels" && z && /* @__PURE__ */ x(ue, {
859
+ botId: z,
857
860
  botName: U.name
858
861
  }),
859
- J === "guardrails" && /* @__PURE__ */ S(c, { children: [/* @__PURE__ */ S(d, { children: [/* @__PURE__ */ x(f, { children: "Policy Bindings" }), /* @__PURE__ */ x(u, { children: "Guardrails and policies attached to this bot" })] }), /* @__PURE__ */ x(l, { children: /* @__PURE__ */ S("div", {
862
+ J === "aiOperations" && z && /* @__PURE__ */ x(n, {
863
+ filter: {
864
+ subjectType: "APP",
865
+ subjectId: z
866
+ },
867
+ description: R("botlit.botDetail.aiOperationsDescription", "What the supervisor flagged for this bot — drift, evidence and the recommended action.")
868
+ }),
869
+ J === "guardrails" && /* @__PURE__ */ S(r, { children: [/* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(s, { children: "Policy Bindings" }), /* @__PURE__ */ x(a, { children: "Guardrails and policies attached to this bot" })] }), /* @__PURE__ */ x(i, { children: /* @__PURE__ */ S("div", {
860
870
  className: "text-center py-8 text-text-secondary",
861
871
  children: [
862
872
  /* @__PURE__ */ x(A, { className: "h-8 w-8 mx-auto mb-2 opacity-50" }),
@@ -867,7 +877,7 @@ var L = ({ isNew: y, isEditing: I }) => {
867
877
  })
868
878
  ]
869
879
  }) })] }),
870
- J === "releases" && /* @__PURE__ */ S(c, { children: [/* @__PURE__ */ S(d, { children: [/* @__PURE__ */ x(f, { children: "Release Tracks" }), /* @__PURE__ */ x(u, { children: "Version deployments across environments" })] }), /* @__PURE__ */ x(l, { children: /* @__PURE__ */ S("div", {
880
+ J === "releases" && /* @__PURE__ */ S(r, { children: [/* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(s, { children: "Release Tracks" }), /* @__PURE__ */ x(a, { children: "Version deployments across environments" })] }), /* @__PURE__ */ x(i, { children: /* @__PURE__ */ S("div", {
871
881
  className: "text-center py-8 text-text-secondary",
872
882
  children: [
873
883
  /* @__PURE__ */ x(E, { className: "h-8 w-8 mx-auto mb-2 opacity-50" }),
@@ -882,7 +892,6 @@ var L = ({ isNew: y, isEditing: I }) => {
882
892
  })
883
893
  });
884
894
  };
885
- //#endregion
886
- export { L as BotDetailPage };
895
+ export { R as BotDetailPage };
887
896
 
888
897
  //# sourceMappingURL=BotDetailPage.js.map