@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,94 +1,94 @@
1
1
  import { useBotlit as e } from "../providers/BotlitProvider.js";
2
- import { formatRelativeTime as t } from "../utils/formatters.js";
3
- import { BOTMANOR_PERMISSIONS as n } from "../permissions/botmanorPermissions.js";
4
- import { BotmanorPermissionGate as r, useBotmanorCan as i } from "../permissions/useBotmanorPermissions.js";
5
- import { PageLayout as a } from "../components/PageLayout.js";
6
- import { Button as o } from "../components/Button.js";
7
- import "../permissions/index.js";
8
- import { Card as s, CardContent as c, CardDescription as l, CardHeader as u, CardTitle as d } from "../components/Card.js";
9
- import { isNative as f, nativeImpact as p, nativeNotify as m } from "../../utils/nativeBridge.js";
10
- import { EmptyState as h } from "../components/EmptyState.js";
11
- import { FormField as g, Input as _, Textarea as v } from "../components/Input.js";
12
- import { ErrorState as y } from "../components/ErrorState.js";
13
- import { useBucketTree as ee, useBuckets as te, useCreateBucket as ne, useDeleteBucket as re, useUpdateBucket as ie } from "../hooks/useBuckets.js";
2
+ import { isNative as t, nativeImpact as n, nativeNotify as r } from "../../utils/nativeBridge.js";
3
+ import { BOTMANOR_PERMISSIONS as i } from "../permissions/botmanorPermissions.js";
4
+ import { BotmanorPermissionGate as a, useBotmanorCan as o } from "../permissions/useBotmanorPermissions.js";
5
+ import { PageLayout as s } from "../components/PageLayout.js";
6
+ import { Card as c, CardContent as l, CardDescription as u, CardHeader as d, CardTitle as f } from "../components/Card.js";
7
+ import { Button as p } from "../components/Button.js";
8
+ import { FormField as m, Input as h, Textarea as g } from "../components/Input.js";
9
+ import { EmptyState as _ } from "../components/EmptyState.js";
10
+ import { ErrorState as v } from "../components/ErrorState.js";
14
11
  import "../hooks/index.js";
15
- import { useState as b } from "react";
16
- import { GlassCard as x, PagePurpose as ae } from "@burdenoff/fe-libs/ui";
17
- import { Fragment as oe, jsx as S, jsxs as C } from "react/jsx-runtime";
18
- import { Link as w } from "react-router";
19
- import { ChevronDown as T, ChevronRight as E, Edit as D, Folder as O, FolderOpen as k, FolderTree as A, MoreHorizontal as j, Plus as M, Save as N, Search as se, Settings as ce, Trash2 as P, X as F } from "lucide-react";
20
- import { toast as I } from "sonner";
21
- //#region src/botlit/pages/BucketsPage.tsx
22
- var L = ({ bucket: e, level: t, expanded: a, onToggle: s, getPath: c, onEdit: l, onDelete: u, onCreateChild: d, activeMenu: f, setActiveMenu: p }) => {
23
- let m = a.has(e.id), h = e.children.length > 0, g = f === e.id, _ = i(), v = _(n.BUCKET_CREATE) || _(n.BUCKET_UPDATE) || _(n.BUCKET_DELETE);
24
- return /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S(w, {
25
- to: c(`buckets/${e.id}`),
26
- children: /* @__PURE__ */ C("div", {
12
+ import { formatRelativeTime as ee } from "../utils/formatters.js";
13
+ import { useBucketTree as te, useBuckets as ne, useCreateBucket as re, useDeleteBucket as ie, useUpdateBucket as ae } from "../hooks/useBuckets.js";
14
+ import "../permissions/index.js";
15
+ import { useState as y } from "react";
16
+ import { GlassCard as b, PagePurpose as oe } from "@burdenoff/fe-libs/ui";
17
+ import { Fragment as se, jsx as x, jsxs as S } from "react/jsx-runtime";
18
+ import { Link as C } from "react-router";
19
+ import { ChevronDown as w, ChevronRight as T, Edit as E, Folder as D, FolderOpen as O, FolderTree as k, MoreHorizontal as A, Plus as j, Save as M, Search as ce, Settings as le, Trash2 as N, X as P } from "lucide-react";
20
+ import { toast as F } from "sonner";
21
+ // src/botlit/pages/BucketsPage.tsx
22
+ var I = ({ bucket: e, level: t, expanded: n, onToggle: r, getPath: s, onEdit: c, onDelete: l, onCreateChild: u, activeMenu: d, setActiveMenu: f }) => {
23
+ let m = n.has(e.id), h = e.children.length > 0, g = d === e.id, _ = o(), v = _(i.BUCKET_CREATE) || _(i.BUCKET_UPDATE) || _(i.BUCKET_DELETE);
24
+ return /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x(C, {
25
+ to: s(`buckets/${e.id}`),
26
+ children: /* @__PURE__ */ S("div", {
27
27
  className: "flex items-center gap-2 px-3 py-2 hover:bg-accent rounded-md transition-colors cursor-pointer group",
28
28
  style: { paddingLeft: `${t * 24 + 12}px` },
29
29
  children: [
30
- h ? /* @__PURE__ */ S("button", {
30
+ h ? /* @__PURE__ */ x("button", {
31
31
  onClick: (t) => {
32
- t.preventDefault(), s(e.id);
32
+ t.preventDefault(), r(e.id);
33
33
  },
34
34
  className: "p-0.5 hover:bg-bg-sunken rounded",
35
- children: S(m ? T : E, {
35
+ children: x(m ? w : T, {
36
36
  size: 16,
37
37
  className: "text-text-secondary"
38
38
  })
39
- }) : /* @__PURE__ */ S("div", { className: "w-5" }),
40
- m ? /* @__PURE__ */ S(k, {
39
+ }) : /* @__PURE__ */ x("div", { className: "w-5" }),
40
+ m ? /* @__PURE__ */ x(O, {
41
41
  size: 18,
42
42
  className: "text-primary"
43
- }) : /* @__PURE__ */ S(O, {
43
+ }) : /* @__PURE__ */ x(D, {
44
44
  size: 18,
45
45
  className: "text-text-secondary"
46
46
  }),
47
- /* @__PURE__ */ S("span", {
47
+ /* @__PURE__ */ x("span", {
48
48
  className: "flex-1 font-medium",
49
49
  children: e.name
50
50
  }),
51
- v && /* @__PURE__ */ C("div", {
51
+ v && /* @__PURE__ */ S("div", {
52
52
  className: "relative",
53
- children: [/* @__PURE__ */ S(o, {
53
+ children: [/* @__PURE__ */ x(p, {
54
54
  variant: "ghost",
55
55
  size: "icon",
56
56
  className: "h-7 w-7 opacity-0 group-hover:opacity-100 transition-opacity",
57
57
  onClick: (t) => {
58
- t.preventDefault(), t.stopPropagation(), p(g ? null : e.id);
58
+ t.preventDefault(), t.stopPropagation(), f(g ? null : e.id);
59
59
  },
60
- children: /* @__PURE__ */ S(j, { size: 14 })
61
- }), g && /* @__PURE__ */ C("div", {
60
+ children: /* @__PURE__ */ x(A, { size: 14 })
61
+ }), g && /* @__PURE__ */ S("div", {
62
62
  className: "absolute right-0 top-8 bg-popover border rounded-md shadow-lg z-50 py-1 min-w-[160px]",
63
63
  children: [
64
- /* @__PURE__ */ S(r, {
65
- permission: n.BUCKET_CREATE,
66
- children: /* @__PURE__ */ C("button", {
64
+ /* @__PURE__ */ x(a, {
65
+ permission: i.BUCKET_CREATE,
66
+ children: /* @__PURE__ */ S("button", {
67
67
  className: "w-full flex items-center gap-2 px-3 py-2 text-sm hover:bg-accent text-left",
68
68
  onClick: (t) => {
69
- t.preventDefault(), t.stopPropagation(), d(e.id);
69
+ t.preventDefault(), t.stopPropagation(), u(e.id);
70
70
  },
71
- children: [/* @__PURE__ */ S(M, { size: 14 }), "Add Sub-Bucket"]
71
+ children: [/* @__PURE__ */ x(j, { size: 14 }), "Add Sub-Bucket"]
72
72
  })
73
73
  }),
74
- /* @__PURE__ */ S(r, {
75
- permission: n.BUCKET_UPDATE,
76
- children: /* @__PURE__ */ C("button", {
74
+ /* @__PURE__ */ x(a, {
75
+ permission: i.BUCKET_UPDATE,
76
+ children: /* @__PURE__ */ S("button", {
77
77
  className: "w-full flex items-center gap-2 px-3 py-2 text-sm hover:bg-accent text-left",
78
78
  onClick: (t) => {
79
- t.preventDefault(), t.stopPropagation(), l(e);
79
+ t.preventDefault(), t.stopPropagation(), c(e);
80
80
  },
81
- children: [/* @__PURE__ */ S(D, { size: 14 }), "Edit"]
81
+ children: [/* @__PURE__ */ x(E, { size: 14 }), "Edit"]
82
82
  })
83
83
  }),
84
- /* @__PURE__ */ S(r, {
85
- permission: n.BUCKET_DELETE,
86
- children: /* @__PURE__ */ C("button", {
84
+ /* @__PURE__ */ x(a, {
85
+ permission: i.BUCKET_DELETE,
86
+ children: /* @__PURE__ */ S("button", {
87
87
  className: "w-full flex items-center gap-2 px-3 py-2 text-sm hover:bg-accent text-status-error-text text-left",
88
88
  onClick: (t) => {
89
- t.preventDefault(), t.stopPropagation(), u(e.id);
89
+ t.preventDefault(), t.stopPropagation(), l(e.id);
90
90
  },
91
- children: [/* @__PURE__ */ S(P, { size: 14 }), "Delete"]
91
+ children: [/* @__PURE__ */ x(N, { size: 14 }), "Delete"]
92
92
  })
93
93
  })
94
94
  ]
@@ -96,53 +96,53 @@ var L = ({ bucket: e, level: t, expanded: a, onToggle: s, getPath: c, onEdit: l,
96
96
  })
97
97
  ]
98
98
  })
99
- }), m && e.children.map((e) => /* @__PURE__ */ S(L, {
99
+ }), m && e.children.map((e) => /* @__PURE__ */ x(I, {
100
100
  bucket: e,
101
101
  level: t + 1,
102
- expanded: a,
103
- onToggle: s,
104
- getPath: c,
105
- onEdit: l,
106
- onDelete: u,
107
- onCreateChild: d,
108
- activeMenu: f,
109
- setActiveMenu: p
102
+ expanded: n,
103
+ onToggle: r,
104
+ getPath: s,
105
+ onEdit: c,
106
+ onDelete: l,
107
+ onCreateChild: u,
108
+ activeMenu: d,
109
+ setActiveMenu: f
110
110
  }, e.id))] });
111
- }, R = () => {
112
- let { getPath: i } = e(), [T, E] = b(""), [D, k] = b("tree"), [j, R] = b(new Set(["bucket-1"])), [le, z] = b(!1), [B, V] = b(null), [H, U] = b(null), [ue, W] = b(null), [G, K] = b({
111
+ }, L = () => {
112
+ let { getPath: o } = e(), [w, T] = y(""), [E, O] = y("tree"), [A, L] = y(/* @__PURE__ */ new Set(["bucket-1"])), [ue, R] = y(!1), [z, B] = y(null), [V, H] = y(null), [de, U] = y(null), [W, G] = y({
113
113
  name: "",
114
114
  description: "",
115
115
  visibility: "PRIVATE",
116
116
  parentBucketId: void 0
117
- }), { data: q, loading: de, error: fe, refetch: J } = te({ search: T }), { data: Y, loading: pe, error: me, refetch: X } = ee(), [he, ge] = ne(), [_e, ve] = ie(), [ye, be] = re(), xe = (e) => {
118
- R((t) => {
117
+ }), { data: K, loading: fe, error: pe, refetch: q } = ne({ search: w }), { data: J, loading: me, error: he, refetch: Y } = te(), [ge, _e] = re(), [ve, ye] = ae(), [be, xe] = ie(), Se = (e) => {
118
+ L((t) => {
119
119
  let n = new Set(t);
120
120
  return n.has(e) ? n.delete(e) : n.add(e), n;
121
121
  });
122
- }, Se = () => {
123
- if (Y) {
122
+ }, Ce = () => {
123
+ if (J) {
124
124
  let e = /* @__PURE__ */ new Set(), t = (n) => {
125
125
  for (let r of n) e.add(r.id), r.children && t(r.children);
126
126
  };
127
- t(Y), R(e);
127
+ t(J), L(e);
128
128
  }
129
- }, Ce = () => {
130
- R(/* @__PURE__ */ new Set());
131
- }, we = D === "tree" ? pe : de, Z = D === "tree" ? me : fe, Q = D === "tree" ? X : J, Te = async () => {
132
- if (G.name) {
129
+ }, we = () => {
130
+ L(/* @__PURE__ */ new Set());
131
+ }, X = E === "tree" ? me : fe, Z = E === "tree" ? he : pe, Q = E === "tree" ? Y : q, Te = async () => {
132
+ if (W.name) {
133
133
  try {
134
- await he({
135
- name: G.name,
136
- slug: G.name.toLowerCase().replace(/\s+/g, "-"),
137
- description: G.description,
138
- parentBucketId: G.parentBucketId,
139
- metadata: { visibility: G.visibility }
134
+ await ge({
135
+ name: W.name,
136
+ slug: W.name.toLowerCase().replace(/\s+/g, "-"),
137
+ description: W.description,
138
+ parentBucketId: W.parentBucketId,
139
+ metadata: { visibility: W.visibility }
140
140
  });
141
141
  } catch (e) {
142
- I.error(e instanceof Error ? e.message : "Failed to create bucket");
142
+ F.error(e instanceof Error ? e.message : "Failed to create bucket");
143
143
  return;
144
144
  }
145
- I.success(`Bucket "${G.name}" created`), J(), X(), z(!1), K({
145
+ F.success(`Bucket "${W.name}" created`), q(), Y(), R(!1), G({
146
146
  name: "",
147
147
  description: "",
148
148
  visibility: "PRIVATE",
@@ -150,329 +150,329 @@ var L = ({ bucket: e, level: t, expanded: a, onToggle: s, getPath: c, onEdit: l,
150
150
  });
151
151
  }
152
152
  }, Ee = async () => {
153
- if (!(!H || !G.name)) {
153
+ if (V && W.name) {
154
154
  try {
155
- await _e({
156
- bucketId: H.id,
155
+ await ve({
156
+ bucketId: V.id,
157
157
  input: {
158
- name: G.name,
159
- description: G.description
158
+ name: W.name,
159
+ description: W.description
160
160
  }
161
161
  });
162
162
  } catch (e) {
163
- I.error(e instanceof Error ? e.message : "Failed to update bucket");
163
+ F.error(e instanceof Error ? e.message : "Failed to update bucket");
164
164
  return;
165
165
  }
166
- I.success("Bucket updated"), J(), X(), U(null);
166
+ F.success("Bucket updated"), q(), Y(), H(null);
167
167
  }
168
168
  }, De = async (e) => {
169
169
  try {
170
- await ye(e), f() && m("success"), I.success("Bucket deleted"), J(), X();
170
+ await be(e), t() && r("success"), F.success("Bucket deleted"), q(), Y();
171
171
  } catch (e) {
172
- f() && m("error"), I.error(e instanceof Error ? e.message : "Failed to delete bucket");
172
+ t() && r("error"), F.error(e instanceof Error ? e.message : "Failed to delete bucket");
173
173
  return;
174
174
  }
175
- V(null);
175
+ B(null);
176
176
  }, Oe = (e) => {
177
- K({
177
+ G({
178
178
  name: e.name,
179
179
  description: e.description ?? "",
180
180
  visibility: "PRIVATE",
181
181
  parentBucketId: void 0
182
- }), U(e), W(null);
182
+ }), H(e), U(null);
183
183
  }, $ = (e) => {
184
- K({
184
+ G({
185
185
  name: "",
186
186
  description: "",
187
187
  visibility: "PRIVATE",
188
188
  parentBucketId: e
189
- }), z(!0);
189
+ }), R(!0);
190
190
  };
191
- return /* @__PURE__ */ S(a, {
191
+ return /* @__PURE__ */ x(s, {
192
192
  title: "Buckets",
193
193
  description: "Organize your agents, apps, and resources into hierarchical folders",
194
- actions: /* @__PURE__ */ S(r, {
195
- permission: n.BUCKET_CREATE,
196
- children: /* @__PURE__ */ S(o, {
197
- leftIcon: /* @__PURE__ */ S(M, { size: 16 }),
194
+ actions: /* @__PURE__ */ x(a, {
195
+ permission: i.BUCKET_CREATE,
196
+ children: /* @__PURE__ */ x(p, {
197
+ leftIcon: /* @__PURE__ */ x(j, { size: 16 }),
198
198
  onClick: () => $(),
199
199
  children: "Create Bucket"
200
200
  })
201
201
  }),
202
- children: /* @__PURE__ */ C("div", {
202
+ children: /* @__PURE__ */ S("div", {
203
203
  className: "space-y-6",
204
204
  children: [
205
- /* @__PURE__ */ S(ae, {
206
- icon: /* @__PURE__ */ S(A, { size: 18 }),
205
+ /* @__PURE__ */ x(oe, {
206
+ icon: /* @__PURE__ */ x(k, { size: 18 }),
207
207
  children: "Buckets are folders for everything you build in BotManor — agents, bots, skills, knowledge and more — arranged in a hierarchy that mirrors how your team works. Group resources by team, project or environment so they stay organised, easy to find and simple to share as your account grows. Browse the tree or list view to manage that structure."
208
208
  }),
209
- q.length > 0 ? /* @__PURE__ */ C("div", {
209
+ K.length > 0 ? /* @__PURE__ */ S("div", {
210
210
  className: "grid grid-cols-2 gap-4 sm:grid-cols-2",
211
- children: [/* @__PURE__ */ C(x, {
211
+ children: [/* @__PURE__ */ S(b, {
212
212
  treatment: "glass",
213
213
  glow: !0,
214
214
  className: "p-4",
215
- children: [/* @__PURE__ */ S("p", {
215
+ children: [/* @__PURE__ */ x("p", {
216
216
  className: "text-sm text-text-secondary",
217
217
  children: "Total buckets"
218
- }), /* @__PURE__ */ S("p", {
218
+ }), /* @__PURE__ */ x("p", {
219
219
  className: "mt-1 text-2xl font-semibold tabular-nums text-text-primary",
220
- children: q.length
220
+ children: K.length
221
221
  })]
222
- }), /* @__PURE__ */ C(x, {
222
+ }), /* @__PURE__ */ S(b, {
223
223
  treatment: "metric",
224
224
  className: "p-4",
225
- children: [/* @__PURE__ */ S("p", {
225
+ children: [/* @__PURE__ */ x("p", {
226
226
  className: "text-sm text-text-secondary",
227
227
  children: "Top-level buckets"
228
- }), /* @__PURE__ */ S("p", {
228
+ }), /* @__PURE__ */ x("p", {
229
229
  className: "mt-1 text-2xl font-semibold tabular-nums text-text-primary",
230
- children: Y.length
230
+ children: J.length
231
231
  })]
232
232
  })]
233
233
  }) : null,
234
- /* @__PURE__ */ C("div", {
234
+ /* @__PURE__ */ S("div", {
235
235
  className: "flex items-center justify-between gap-4",
236
- children: [/* @__PURE__ */ C("div", {
236
+ children: [/* @__PURE__ */ S("div", {
237
237
  className: "relative flex-1 max-w-md",
238
- children: [/* @__PURE__ */ S(se, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ S(_, {
238
+ children: [/* @__PURE__ */ x(ce, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ x(h, {
239
239
  placeholder: "Search buckets...",
240
- value: T,
241
- onChange: (e) => E(e.target.value),
240
+ value: w,
241
+ onChange: (e) => T(e.target.value),
242
242
  className: "pl-9"
243
243
  })]
244
- }), /* @__PURE__ */ C("div", {
244
+ }), /* @__PURE__ */ S("div", {
245
245
  className: "flex items-center gap-2",
246
246
  children: [
247
- /* @__PURE__ */ S(o, {
247
+ /* @__PURE__ */ x(p, {
248
248
  variant: "outline",
249
249
  size: "sm",
250
- onClick: Se,
250
+ onClick: Ce,
251
251
  children: "Expand All"
252
252
  }),
253
- /* @__PURE__ */ S(o, {
253
+ /* @__PURE__ */ x(p, {
254
254
  variant: "outline",
255
255
  size: "sm",
256
- onClick: Ce,
256
+ onClick: we,
257
257
  children: "Collapse All"
258
258
  }),
259
- /* @__PURE__ */ C("div", {
259
+ /* @__PURE__ */ S("div", {
260
260
  className: "flex border border-border-subtle rounded-md overflow-hidden",
261
- children: [/* @__PURE__ */ S(o, {
262
- variant: D === "tree" ? "default" : "ghost",
261
+ children: [/* @__PURE__ */ x(p, {
262
+ variant: E === "tree" ? "default" : "ghost",
263
263
  size: "sm",
264
264
  className: "rounded-none",
265
- onClick: () => k("tree"),
266
- children: /* @__PURE__ */ S(A, { size: 16 })
267
- }), /* @__PURE__ */ S(o, {
268
- variant: D === "list" ? "default" : "ghost",
265
+ onClick: () => O("tree"),
266
+ children: /* @__PURE__ */ x(k, { size: 16 })
267
+ }), /* @__PURE__ */ x(p, {
268
+ variant: E === "list" ? "default" : "ghost",
269
269
  size: "sm",
270
270
  className: "rounded-none",
271
- onClick: () => k("list"),
272
- children: /* @__PURE__ */ S(ce, { size: 16 })
271
+ onClick: () => O("list"),
272
+ children: /* @__PURE__ */ x(le, { size: 16 })
273
273
  })]
274
274
  })
275
275
  ]
276
276
  })]
277
277
  }),
278
- D === "tree" && /* @__PURE__ */ S(s, { children: /* @__PURE__ */ S(c, {
278
+ E === "tree" && /* @__PURE__ */ x(c, { children: /* @__PURE__ */ x(l, {
279
279
  className: "p-2",
280
- children: we ? /* @__PURE__ */ S("div", {
280
+ children: X ? /* @__PURE__ */ x("div", {
281
281
  className: "space-y-2 p-4",
282
282
  children: [
283
283
  1,
284
284
  2,
285
285
  3,
286
286
  4
287
- ].map((e) => /* @__PURE__ */ S("div", { className: "h-10 bg-bg-sunken motion-safe:animate-vc-shimmer rounded" }, e))
288
- }) : Z ? /* @__PURE__ */ S(y, {
287
+ ].map((e) => /* @__PURE__ */ x("div", { className: "h-10 bg-bg-sunken motion-safe:animate-vc-shimmer rounded" }, e))
288
+ }) : Z ? /* @__PURE__ */ x(v, {
289
289
  resource: "buckets",
290
290
  error: Z,
291
291
  onRetry: () => void Q()
292
- }) : Y.length > 0 ? /* @__PURE__ */ S("div", {
292
+ }) : J.length > 0 ? /* @__PURE__ */ x("div", {
293
293
  className: "py-2",
294
- onClick: () => W(null),
295
- children: Y.map((e) => /* @__PURE__ */ S(L, {
294
+ onClick: () => U(null),
295
+ children: J.map((e) => /* @__PURE__ */ x(I, {
296
296
  bucket: e,
297
297
  level: 0,
298
- expanded: j,
299
- onToggle: xe,
300
- getPath: i,
298
+ expanded: A,
299
+ onToggle: Se,
300
+ getPath: o,
301
301
  onEdit: Oe,
302
- onDelete: (e) => V(e),
302
+ onDelete: (e) => B(e),
303
303
  onCreateChild: (e) => $(e),
304
- activeMenu: ue,
305
- setActiveMenu: W
304
+ activeMenu: de,
305
+ setActiveMenu: U
306
306
  }, e.id))
307
- }) : /* @__PURE__ */ S(h, {
307
+ }) : /* @__PURE__ */ x(_, {
308
308
  illustration: "empty-files",
309
309
  title: "No buckets created",
310
310
  description: "Create buckets to organize your BotManor resources.",
311
- action: /* @__PURE__ */ S(r, {
312
- permission: n.BUCKET_CREATE,
313
- children: /* @__PURE__ */ S(o, {
314
- leftIcon: /* @__PURE__ */ S(M, { size: 16 }),
311
+ action: /* @__PURE__ */ x(a, {
312
+ permission: i.BUCKET_CREATE,
313
+ children: /* @__PURE__ */ x(p, {
314
+ leftIcon: /* @__PURE__ */ x(j, { size: 16 }),
315
315
  onClick: () => $(),
316
316
  children: "Create Bucket"
317
317
  })
318
318
  })
319
319
  })
320
320
  }) }),
321
- D === "list" && /* @__PURE__ */ S(oe, { children: we ? /* @__PURE__ */ S("div", {
321
+ E === "list" && /* @__PURE__ */ x(se, { children: X ? /* @__PURE__ */ x("div", {
322
322
  className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
323
323
  children: [
324
324
  1,
325
325
  2,
326
326
  3
327
- ].map((e) => /* @__PURE__ */ S("div", { className: "h-32 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
328
- }) : Z ? /* @__PURE__ */ S(y, {
327
+ ].map((e) => /* @__PURE__ */ x("div", { className: "h-32 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }, e))
328
+ }) : Z ? /* @__PURE__ */ x(v, {
329
329
  resource: "buckets",
330
330
  error: Z,
331
331
  onRetry: () => void Q()
332
- }) : q.length > 0 ? /* @__PURE__ */ S("div", {
332
+ }) : K.length > 0 ? /* @__PURE__ */ x("div", {
333
333
  className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
334
- children: q.map((e) => /* @__PURE__ */ S(w, {
335
- to: i(`buckets/${e.id}`),
336
- children: /* @__PURE__ */ C(s, {
334
+ children: K.map((e) => /* @__PURE__ */ x(C, {
335
+ to: o(`buckets/${e.id}`),
336
+ children: /* @__PURE__ */ S(c, {
337
337
  className: "h-full hover:border-primary/50 transition-colors cursor-pointer",
338
- children: [/* @__PURE__ */ S(u, {
338
+ children: [/* @__PURE__ */ x(d, {
339
339
  className: "pb-2",
340
- children: /* @__PURE__ */ S("div", {
340
+ children: /* @__PURE__ */ x("div", {
341
341
  className: "flex items-start justify-between",
342
- children: /* @__PURE__ */ C("div", {
342
+ children: /* @__PURE__ */ S("div", {
343
343
  className: "flex items-center gap-3",
344
- children: [/* @__PURE__ */ S(O, { className: "h-5 w-5 text-primary" }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S(d, {
344
+ children: [/* @__PURE__ */ x(D, { className: "h-5 w-5 text-primary" }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x(f, {
345
345
  className: "text-base",
346
346
  children: e.name
347
- }), /* @__PURE__ */ S(l, {
347
+ }), /* @__PURE__ */ x(u, {
348
348
  className: "text-xs",
349
349
  children: e.path
350
350
  })] })]
351
351
  })
352
352
  })
353
- }), /* @__PURE__ */ S(c, { children: /* @__PURE__ */ C("div", {
353
+ }), /* @__PURE__ */ x(l, { children: /* @__PURE__ */ S("div", {
354
354
  className: "flex items-center justify-between text-sm",
355
- children: [/* @__PURE__ */ S("span", {
355
+ children: [/* @__PURE__ */ x("span", {
356
356
  className: "text-text-secondary",
357
357
  children: e.slug
358
- }), /* @__PURE__ */ S("span", {
358
+ }), /* @__PURE__ */ x("span", {
359
359
  className: "text-xs text-text-secondary",
360
- children: t(e.createdAt)
360
+ children: ee(e.createdAt)
361
361
  })]
362
362
  }) })]
363
363
  })
364
364
  }, e.id))
365
- }) : /* @__PURE__ */ S(h, {
365
+ }) : /* @__PURE__ */ x(_, {
366
366
  illustration: "empty-search",
367
367
  title: "No buckets found",
368
368
  description: "Create buckets to organize your BotManor resources.",
369
- action: /* @__PURE__ */ S(r, {
370
- permission: n.BUCKET_CREATE,
371
- children: /* @__PURE__ */ S(o, {
372
- leftIcon: /* @__PURE__ */ S(M, { size: 16 }),
369
+ action: /* @__PURE__ */ x(a, {
370
+ permission: i.BUCKET_CREATE,
371
+ children: /* @__PURE__ */ x(p, {
372
+ leftIcon: /* @__PURE__ */ x(j, { size: 16 }),
373
373
  onClick: () => $(),
374
374
  children: "Create Bucket"
375
375
  })
376
376
  })
377
377
  }) }),
378
- /* @__PURE__ */ C(s, { children: [/* @__PURE__ */ C(u, { children: [/* @__PURE__ */ C(d, {
378
+ /* @__PURE__ */ S(c, { children: [/* @__PURE__ */ S(d, { children: [/* @__PURE__ */ S(f, {
379
379
  className: "flex items-center gap-2",
380
- children: [/* @__PURE__ */ S(A, { size: 18 }), "Organizing with Buckets"]
381
- }), /* @__PURE__ */ S(l, { children: "Buckets help you organize and manage permissions for your resources" })] }), /* @__PURE__ */ S(c, { children: /* @__PURE__ */ C("div", {
380
+ children: [/* @__PURE__ */ x(k, { size: 18 }), "Organizing with Buckets"]
381
+ }), /* @__PURE__ */ x(u, { children: "Buckets help you organize and manage permissions for your resources" })] }), /* @__PURE__ */ x(l, { children: /* @__PURE__ */ S("div", {
382
382
  className: "grid grid-cols-1 md:grid-cols-3 gap-6",
383
383
  children: [
384
- /* @__PURE__ */ C("div", {
384
+ /* @__PURE__ */ S("div", {
385
385
  className: "space-y-2",
386
- children: [/* @__PURE__ */ S("h4", {
386
+ children: [/* @__PURE__ */ x("h4", {
387
387
  className: "font-medium",
388
388
  children: "Hierarchical Organization"
389
- }), /* @__PURE__ */ S("p", {
389
+ }), /* @__PURE__ */ x("p", {
390
390
  className: "text-sm text-text-secondary",
391
391
  children: "Create nested folder structures to organize apps, agents, and other resources by team, project, or domain."
392
392
  })]
393
393
  }),
394
- /* @__PURE__ */ C("div", {
394
+ /* @__PURE__ */ S("div", {
395
395
  className: "space-y-2",
396
- children: [/* @__PURE__ */ S("h4", {
396
+ children: [/* @__PURE__ */ x("h4", {
397
397
  className: "font-medium",
398
398
  children: "Inherited Permissions"
399
- }), /* @__PURE__ */ S("p", {
399
+ }), /* @__PURE__ */ x("p", {
400
400
  className: "text-sm text-text-secondary",
401
401
  children: "Set owners, editors, and viewers at the bucket level. Permissions cascade to all items within."
402
402
  })]
403
403
  }),
404
- /* @__PURE__ */ C("div", {
404
+ /* @__PURE__ */ S("div", {
405
405
  className: "space-y-2",
406
- children: [/* @__PURE__ */ S("h4", {
406
+ children: [/* @__PURE__ */ x("h4", {
407
407
  className: "font-medium",
408
408
  children: "Default Policies"
409
- }), /* @__PURE__ */ S("p", {
409
+ }), /* @__PURE__ */ x("p", {
410
410
  className: "text-sm text-text-secondary",
411
411
  children: "Configure default policy bindings for buckets. All new items inherit these policies automatically."
412
412
  })]
413
413
  })
414
414
  ]
415
415
  }) })] }),
416
- le && /* @__PURE__ */ S("div", {
416
+ ue && /* @__PURE__ */ x("div", {
417
417
  className: "fixed inset-0 bg-black/50 flex items-center justify-center z-50",
418
- children: /* @__PURE__ */ C(s, {
418
+ children: /* @__PURE__ */ S(c, {
419
419
  className: "w-full max-w-md mx-4",
420
420
  children: [
421
- /* @__PURE__ */ C(u, { children: [/* @__PURE__ */ C(d, {
421
+ /* @__PURE__ */ S(d, { children: [/* @__PURE__ */ S(f, {
422
422
  className: "flex items-center justify-between",
423
- children: [/* @__PURE__ */ S("span", { children: "Create Bucket" }), /* @__PURE__ */ S(o, {
423
+ children: [/* @__PURE__ */ x("span", { children: "Create Bucket" }), /* @__PURE__ */ x(p, {
424
424
  variant: "ghost",
425
425
  size: "icon",
426
- onClick: () => z(!1),
427
- children: /* @__PURE__ */ S(F, { size: 16 })
426
+ onClick: () => R(!1),
427
+ children: /* @__PURE__ */ x(P, { size: 16 })
428
428
  })]
429
- }), /* @__PURE__ */ S(l, { children: G.parentBucketId ? "Create a new sub-bucket" : "Create a new root bucket" })] }),
430
- /* @__PURE__ */ C(c, {
429
+ }), /* @__PURE__ */ x(u, { children: W.parentBucketId ? "Create a new sub-bucket" : "Create a new root bucket" })] }),
430
+ /* @__PURE__ */ S(l, {
431
431
  className: "space-y-4",
432
432
  children: [
433
- /* @__PURE__ */ S(g, {
433
+ /* @__PURE__ */ x(m, {
434
434
  label: "Bucket Name",
435
435
  required: !0,
436
- children: /* @__PURE__ */ S(_, {
436
+ children: /* @__PURE__ */ x(h, {
437
437
  placeholder: "e.g., Marketing Team",
438
- value: G.name,
439
- onChange: (e) => K({
440
- ...G,
438
+ value: W.name,
439
+ onChange: (e) => G({
440
+ ...W,
441
441
  name: e.target.value
442
442
  })
443
443
  })
444
444
  }),
445
- /* @__PURE__ */ S(g, {
445
+ /* @__PURE__ */ x(m, {
446
446
  label: "Description",
447
- children: /* @__PURE__ */ S(v, {
447
+ children: /* @__PURE__ */ x(g, {
448
448
  placeholder: "What is this bucket for?",
449
- value: G.description,
450
- onChange: (e) => K({
451
- ...G,
449
+ value: W.description,
450
+ onChange: (e) => G({
451
+ ...W,
452
452
  description: e.target.value
453
453
  }),
454
454
  rows: 2
455
455
  })
456
456
  }),
457
- /* @__PURE__ */ S(g, {
457
+ /* @__PURE__ */ x(m, {
458
458
  label: "Visibility",
459
- children: /* @__PURE__ */ C("select", {
459
+ children: /* @__PURE__ */ S("select", {
460
460
  className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
461
- value: G.visibility,
462
- onChange: (e) => K({
463
- ...G,
461
+ value: W.visibility,
462
+ onChange: (e) => G({
463
+ ...W,
464
464
  visibility: e.target.value
465
465
  }),
466
466
  children: [
467
- /* @__PURE__ */ S("option", {
467
+ /* @__PURE__ */ x("option", {
468
468
  value: "PRIVATE",
469
469
  children: "Private"
470
470
  }),
471
- /* @__PURE__ */ S("option", {
471
+ /* @__PURE__ */ x("option", {
472
472
  value: "WORKSPACE",
473
473
  children: "Workspace"
474
474
  }),
475
- /* @__PURE__ */ S("option", {
475
+ /* @__PURE__ */ x("option", {
476
476
  value: "PUBLIC",
477
477
  children: "Public"
478
478
  })
@@ -481,83 +481,83 @@ var L = ({ bucket: e, level: t, expanded: a, onToggle: s, getPath: c, onEdit: l,
481
481
  })
482
482
  ]
483
483
  }),
484
- /* @__PURE__ */ C("div", {
484
+ /* @__PURE__ */ S("div", {
485
485
  className: "flex justify-end gap-2 p-4 border-t",
486
- children: [/* @__PURE__ */ S(o, {
486
+ children: [/* @__PURE__ */ x(p, {
487
487
  variant: "outline",
488
- onClick: () => z(!1),
488
+ onClick: () => R(!1),
489
489
  children: "Cancel"
490
- }), /* @__PURE__ */ S(o, {
490
+ }), /* @__PURE__ */ x(p, {
491
491
  onClick: Te,
492
- isLoading: ge.loading,
493
- disabled: !G.name,
494
- leftIcon: /* @__PURE__ */ S(N, { size: 16 }),
492
+ isLoading: _e.loading,
493
+ disabled: !W.name,
494
+ leftIcon: /* @__PURE__ */ x(M, { size: 16 }),
495
495
  children: "Create Bucket"
496
496
  })]
497
497
  })
498
498
  ]
499
499
  })
500
500
  }),
501
- H && /* @__PURE__ */ S("div", {
501
+ V && /* @__PURE__ */ x("div", {
502
502
  className: "fixed inset-0 bg-black/50 flex items-center justify-center z-50",
503
- children: /* @__PURE__ */ C(s, {
503
+ children: /* @__PURE__ */ S(c, {
504
504
  className: "w-full max-w-md mx-4",
505
505
  children: [
506
- /* @__PURE__ */ C(u, { children: [/* @__PURE__ */ C(d, {
506
+ /* @__PURE__ */ S(d, { children: [/* @__PURE__ */ S(f, {
507
507
  className: "flex items-center justify-between",
508
- children: [/* @__PURE__ */ S("span", { children: "Edit Bucket" }), /* @__PURE__ */ S(o, {
508
+ children: [/* @__PURE__ */ x("span", { children: "Edit Bucket" }), /* @__PURE__ */ x(p, {
509
509
  variant: "ghost",
510
510
  size: "icon",
511
- onClick: () => U(null),
512
- children: /* @__PURE__ */ S(F, { size: 16 })
511
+ onClick: () => H(null),
512
+ children: /* @__PURE__ */ x(P, { size: 16 })
513
513
  })]
514
- }), /* @__PURE__ */ S(l, { children: "Update bucket details" })] }),
515
- /* @__PURE__ */ C(c, {
514
+ }), /* @__PURE__ */ x(u, { children: "Update bucket details" })] }),
515
+ /* @__PURE__ */ S(l, {
516
516
  className: "space-y-4",
517
517
  children: [
518
- /* @__PURE__ */ S(g, {
518
+ /* @__PURE__ */ x(m, {
519
519
  label: "Bucket Name",
520
520
  required: !0,
521
- children: /* @__PURE__ */ S(_, {
521
+ children: /* @__PURE__ */ x(h, {
522
522
  placeholder: "e.g., Marketing Team",
523
- value: G.name,
524
- onChange: (e) => K({
525
- ...G,
523
+ value: W.name,
524
+ onChange: (e) => G({
525
+ ...W,
526
526
  name: e.target.value
527
527
  })
528
528
  })
529
529
  }),
530
- /* @__PURE__ */ S(g, {
530
+ /* @__PURE__ */ x(m, {
531
531
  label: "Description",
532
- children: /* @__PURE__ */ S(v, {
532
+ children: /* @__PURE__ */ x(g, {
533
533
  placeholder: "What is this bucket for?",
534
- value: G.description,
535
- onChange: (e) => K({
536
- ...G,
534
+ value: W.description,
535
+ onChange: (e) => G({
536
+ ...W,
537
537
  description: e.target.value
538
538
  }),
539
539
  rows: 2
540
540
  })
541
541
  }),
542
- /* @__PURE__ */ S(g, {
542
+ /* @__PURE__ */ x(m, {
543
543
  label: "Visibility",
544
- children: /* @__PURE__ */ C("select", {
544
+ children: /* @__PURE__ */ S("select", {
545
545
  className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
546
- value: G.visibility,
547
- onChange: (e) => K({
548
- ...G,
546
+ value: W.visibility,
547
+ onChange: (e) => G({
548
+ ...W,
549
549
  visibility: e.target.value
550
550
  }),
551
551
  children: [
552
- /* @__PURE__ */ S("option", {
552
+ /* @__PURE__ */ x("option", {
553
553
  value: "PRIVATE",
554
554
  children: "Private"
555
555
  }),
556
- /* @__PURE__ */ S("option", {
556
+ /* @__PURE__ */ x("option", {
557
557
  value: "WORKSPACE",
558
558
  children: "Workspace"
559
559
  }),
560
- /* @__PURE__ */ S("option", {
560
+ /* @__PURE__ */ x("option", {
561
561
  value: "PUBLIC",
562
562
  children: "Public"
563
563
  })
@@ -566,49 +566,49 @@ var L = ({ bucket: e, level: t, expanded: a, onToggle: s, getPath: c, onEdit: l,
566
566
  })
567
567
  ]
568
568
  }),
569
- /* @__PURE__ */ C("div", {
569
+ /* @__PURE__ */ S("div", {
570
570
  className: "flex justify-end gap-2 p-4 border-t",
571
- children: [/* @__PURE__ */ S(o, {
571
+ children: [/* @__PURE__ */ x(p, {
572
572
  variant: "outline",
573
- onClick: () => U(null),
573
+ onClick: () => H(null),
574
574
  children: "Cancel"
575
- }), /* @__PURE__ */ S(o, {
575
+ }), /* @__PURE__ */ x(p, {
576
576
  onClick: Ee,
577
- isLoading: ve.loading,
578
- disabled: !G.name,
579
- leftIcon: /* @__PURE__ */ S(N, { size: 16 }),
577
+ isLoading: ye.loading,
578
+ disabled: !W.name,
579
+ leftIcon: /* @__PURE__ */ x(M, { size: 16 }),
580
580
  children: "Save Changes"
581
581
  })]
582
582
  })
583
583
  ]
584
584
  })
585
585
  }),
586
- B && /* @__PURE__ */ S("div", {
586
+ z && /* @__PURE__ */ x("div", {
587
587
  className: "fixed inset-0 bg-black/50 flex items-center justify-center z-50",
588
- children: /* @__PURE__ */ C(s, {
588
+ children: /* @__PURE__ */ S(c, {
589
589
  className: "w-full max-w-md mx-4",
590
590
  children: [
591
- /* @__PURE__ */ C(u, { children: [/* @__PURE__ */ C(d, {
591
+ /* @__PURE__ */ S(d, { children: [/* @__PURE__ */ S(f, {
592
592
  className: "flex items-center gap-2 text-status-error-text",
593
- children: [/* @__PURE__ */ S(P, { size: 18 }), "Delete Bucket"]
594
- }), /* @__PURE__ */ S(l, { children: "Are you sure you want to delete this bucket? This action cannot be undone." })] }),
595
- /* @__PURE__ */ S(c, { children: /* @__PURE__ */ S("p", {
593
+ children: [/* @__PURE__ */ x(N, { size: 18 }), "Delete Bucket"]
594
+ }), /* @__PURE__ */ x(u, { children: "Are you sure you want to delete this bucket? This action cannot be undone." })] }),
595
+ /* @__PURE__ */ x(l, { children: /* @__PURE__ */ x("p", {
596
596
  className: "text-sm text-text-secondary",
597
597
  children: "Note: Buckets with children or items cannot be deleted. You must delete or move all contents first."
598
598
  }) }),
599
- /* @__PURE__ */ C("div", {
599
+ /* @__PURE__ */ S("div", {
600
600
  className: "flex justify-end gap-2 p-4 border-t",
601
- children: [/* @__PURE__ */ S(o, {
601
+ children: [/* @__PURE__ */ x(p, {
602
602
  variant: "outline",
603
- onClick: () => V(null),
603
+ onClick: () => B(null),
604
604
  children: "Cancel"
605
- }), /* @__PURE__ */ S(o, {
605
+ }), /* @__PURE__ */ x(p, {
606
606
  variant: "destructive",
607
607
  onClick: () => {
608
- p("medium"), De(B);
608
+ n("medium"), De(z);
609
609
  },
610
- isLoading: be.loading,
611
- leftIcon: /* @__PURE__ */ S(P, { size: 16 }),
610
+ isLoading: xe.loading,
611
+ leftIcon: /* @__PURE__ */ x(N, { size: 16 }),
612
612
  children: "Delete Bucket"
613
613
  })]
614
614
  })
@@ -619,7 +619,6 @@ var L = ({ bucket: e, level: t, expanded: a, onToggle: s, getPath: c, onEdit: l,
619
619
  })
620
620
  });
621
621
  };
622
- //#endregion
623
- export { R as BucketsPage };
622
+ export { L as BucketsPage };
624
623
 
625
624
  //# sourceMappingURL=BucketsPage.js.map