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