@burdenoff/microfe-botmanor 2026.1203.3 → 2026.1203.5

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 (135) hide show
  1. package/dist/botlit/BotlitRoutes.js +0 -1
  2. package/dist/botlit/BotlitRoutes.js.map +1 -1
  3. package/dist/botlit/BotmanorRootInner.js +38 -41
  4. package/dist/botlit/BotmanorRootInner.js.map +1 -1
  5. package/dist/botlit/components/A2ACardVerificationCard.js +0 -1
  6. package/dist/botlit/components/A2ACardVerificationCard.js.map +1 -1
  7. package/dist/botlit/components/AgentA2APanel.js +20 -21
  8. package/dist/botlit/components/AgentA2APanel.js.map +1 -1
  9. package/dist/botlit/components/AgentApprovalPanel.js +22 -23
  10. package/dist/botlit/components/AgentApprovalPanel.js.map +1 -1
  11. package/dist/botlit/components/AgentBindingsPanel.js +66 -68
  12. package/dist/botlit/components/AgentBindingsPanel.js.map +1 -1
  13. package/dist/botlit/components/AiOperationsPanel.js +34 -35
  14. package/dist/botlit/components/AiOperationsPanel.js.map +1 -1
  15. package/dist/botlit/components/BotAgentsPanel.js +59 -60
  16. package/dist/botlit/components/BotAgentsPanel.js.map +1 -1
  17. package/dist/botlit/components/BotVersionHistoryPanel.js +19 -20
  18. package/dist/botlit/components/BotVersionHistoryPanel.js.map +1 -1
  19. package/dist/botlit/components/BucketDialogs.js +0 -1
  20. package/dist/botlit/components/BucketDialogs.js.map +1 -1
  21. package/dist/botlit/components/ChannelRoutesPanel.js +82 -84
  22. package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -1
  23. package/dist/botlit/components/CreateChannelRouteDialog.js +4 -5
  24. package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -1
  25. package/dist/botlit/components/DescribeBotDialog.js +0 -1
  26. package/dist/botlit/components/DescribeBotDialog.js.map +1 -1
  27. package/dist/botlit/components/GettingStartedChecklist.js +9 -10
  28. package/dist/botlit/components/GettingStartedChecklist.js.map +1 -1
  29. package/dist/botlit/components/HandoffConfigPanel.js +0 -1
  30. package/dist/botlit/components/HandoffConfigPanel.js.map +1 -1
  31. package/dist/botlit/components/RetentionStatusPanel.js +10 -12
  32. package/dist/botlit/components/RetentionStatusPanel.js.map +1 -1
  33. package/dist/botlit/components/StewardApprovalsInbox.js +201 -212
  34. package/dist/botlit/components/StewardApprovalsInbox.js.map +1 -1
  35. package/dist/botlit/components/StoreOwnPackagesCard.js +21 -22
  36. package/dist/botlit/components/StoreOwnPackagesCard.js.map +1 -1
  37. package/dist/botlit/components/StorePackageDraftCard.js +38 -39
  38. package/dist/botlit/components/StorePackageDraftCard.js.map +1 -1
  39. package/dist/botlit/components/StorePolicyBundleCard.js +27 -29
  40. package/dist/botlit/components/StorePolicyBundleCard.js.map +1 -1
  41. package/dist/botlit/components/StoreSubmissionsCard.js +64 -65
  42. package/dist/botlit/components/StoreSubmissionsCard.js.map +1 -1
  43. package/dist/botlit/components/VersionHistoryPanel.js +18 -19
  44. package/dist/botlit/components/VersionHistoryPanel.js.map +1 -1
  45. package/dist/botlit/hooks/internal/workspaceGateway.d.ts +6 -0
  46. package/dist/botlit/hooks/internal/workspaceGateway.js +40 -40
  47. package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
  48. package/dist/botlit/hooks/useToolApprovals.d.ts +8 -3
  49. package/dist/botlit/hooks/useToolApprovals.js +68 -73
  50. package/dist/botlit/hooks/useToolApprovals.js.map +1 -1
  51. package/dist/botlit/pages/A2AAgentDetailPage.js +331 -332
  52. package/dist/botlit/pages/A2AAgentDetailPage.js.map +1 -1
  53. package/dist/botlit/pages/A2ARegistryPage.js +39 -41
  54. package/dist/botlit/pages/A2ARegistryPage.js.map +1 -1
  55. package/dist/botlit/pages/AgentApprovalsPage.js +24 -25
  56. package/dist/botlit/pages/AgentApprovalsPage.js.map +1 -1
  57. package/dist/botlit/pages/AgentBuilderPage.js +470 -471
  58. package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
  59. package/dist/botlit/pages/AgentDetailPage.js +68 -69
  60. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  61. package/dist/botlit/pages/AgentsListPage.js +277 -278
  62. package/dist/botlit/pages/AgentsListPage.js.map +1 -1
  63. package/dist/botlit/pages/AiOperationsPage.js +44 -46
  64. package/dist/botlit/pages/AiOperationsPage.js.map +1 -1
  65. package/dist/botlit/pages/BotChannelsTab.js +354 -356
  66. package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
  67. package/dist/botlit/pages/BotDetailPage.js +138 -139
  68. package/dist/botlit/pages/BotDetailPage.js.map +1 -1
  69. package/dist/botlit/pages/BotWorkflowTab.js +23 -24
  70. package/dist/botlit/pages/BotWorkflowTab.js.map +1 -1
  71. package/dist/botlit/pages/BotsListPage.js +32 -33
  72. package/dist/botlit/pages/BotsListPage.js.map +1 -1
  73. package/dist/botlit/pages/BucketDetailPage.js +110 -112
  74. package/dist/botlit/pages/BucketDetailPage.js.map +1 -1
  75. package/dist/botlit/pages/BucketsPage.js +115 -117
  76. package/dist/botlit/pages/BucketsPage.js.map +1 -1
  77. package/dist/botlit/pages/ChannelDetailPage.js +105 -107
  78. package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
  79. package/dist/botlit/pages/ChannelsPage.js +38 -40
  80. package/dist/botlit/pages/ChannelsPage.js.map +1 -1
  81. package/dist/botlit/pages/DashboardPage.js +26 -27
  82. package/dist/botlit/pages/DashboardPage.js.map +1 -1
  83. package/dist/botlit/pages/ExecutionDetailPage.js +70 -71
  84. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  85. package/dist/botlit/pages/ExecutionsPage.js +219 -220
  86. package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
  87. package/dist/botlit/pages/HandoffsPage.js +208 -210
  88. package/dist/botlit/pages/HandoffsPage.js.map +1 -1
  89. package/dist/botlit/pages/InstalledPackagesPage.js +179 -181
  90. package/dist/botlit/pages/InstalledPackagesPage.js.map +1 -1
  91. package/dist/botlit/pages/KnowledgeBaseDetailPage.js +194 -195
  92. package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
  93. package/dist/botlit/pages/KnowledgeBasesPage.js +38 -39
  94. package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
  95. package/dist/botlit/pages/MCPServerDetailPage.js +178 -180
  96. package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
  97. package/dist/botlit/pages/MCPServersPage.js +42 -43
  98. package/dist/botlit/pages/MCPServersPage.js.map +1 -1
  99. package/dist/botlit/pages/PoliciesPage.js +77 -78
  100. package/dist/botlit/pages/PoliciesPage.js.map +1 -1
  101. package/dist/botlit/pages/PolicyDetailPage.js +517 -519
  102. package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
  103. package/dist/botlit/pages/PromptStudioPage.js +81 -83
  104. package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
  105. package/dist/botlit/pages/PromptTemplateDetailPage.js +137 -139
  106. package/dist/botlit/pages/PromptTemplateDetailPage.js.map +1 -1
  107. package/dist/botlit/pages/PromptTemplatesPage.js +28 -30
  108. package/dist/botlit/pages/PromptTemplatesPage.js.map +1 -1
  109. package/dist/botlit/pages/RetrievalProfileDetailPage.js +64 -65
  110. package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
  111. package/dist/botlit/pages/RetrievalProfilesPage.js +59 -60
  112. package/dist/botlit/pages/RetrievalProfilesPage.js.map +1 -1
  113. package/dist/botlit/pages/SettingsPage.js +30 -31
  114. package/dist/botlit/pages/SettingsPage.js.map +1 -1
  115. package/dist/botlit/pages/SkillDetailPage.js +205 -207
  116. package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
  117. package/dist/botlit/pages/SkillsPage.js +68 -69
  118. package/dist/botlit/pages/SkillsPage.js.map +1 -1
  119. package/dist/botlit/pages/StorePackageDetailPage.js +39 -41
  120. package/dist/botlit/pages/StorePackageDetailPage.js.map +1 -1
  121. package/dist/botlit/pages/StorePage.js +169 -171
  122. package/dist/botlit/pages/StorePage.js.map +1 -1
  123. package/dist/botlit/pages/ToolApprovalsPage.js +61 -62
  124. package/dist/botlit/pages/ToolApprovalsPage.js.map +1 -1
  125. package/dist/botlit/providers/WorkspaceFlagScope.d.ts +7 -0
  126. package/dist/botlit/providers/WorkspaceFlagScope.js +17 -0
  127. package/dist/botlit/providers/WorkspaceFlagScope.js.map +1 -0
  128. package/dist/botlit/providers/workspaceFlagKeys.d.ts +18 -0
  129. package/dist/botlit/providers/workspaceFlagKeys.js +8 -0
  130. package/dist/botlit/providers/workspaceFlagKeys.js.map +1 -0
  131. package/dist/index.js +0 -1
  132. package/package.json +4 -1
  133. package/dist/botlit/hooks/index.js +0 -21
  134. package/dist/botlit/index.js +0 -12
  135. package/dist/botlit/permissions/index.js +0 -4
@@ -1,21 +1,19 @@
1
1
  import { useTr as e } from "../../shared/hooks/useTr.js";
2
2
  import { isNative as t, nativeImpact as n, nativeNotify as r } from "../../utils/nativeBridge.js";
3
3
  import { useBotlit as i } from "../providers/BotlitProvider.js";
4
- import { BOTMANOR_PERMISSIONS as a } from "../permissions/botmanorPermissions.js";
5
- import { BotmanorPermissionGate as o, useBotmanorCan as s } from "../permissions/useBotmanorPermissions.js";
6
- import { PageLayout as c } from "../components/PageLayout.js";
7
- import { Card as l, CardContent as u, CardDescription as d, CardHeader as f, CardTitle as p } from "../components/Card.js";
8
- import { Button as m } from "../components/Button.js";
9
- import { Input as h } from "../components/Input.js";
10
- import { EmptyState as g } from "../components/EmptyState.js";
11
- import { ErrorState as _ } from "../components/ErrorState.js";
12
- import { LoadMore as v } from "../components/LoadMore.js";
13
- import { ActionMenu as y } from "../components/ActionMenu.js";
4
+ import { PageLayout as a } from "../components/PageLayout.js";
5
+ import { Card as o, CardContent as s, CardDescription as c, CardHeader as l, CardTitle as u } from "../components/Card.js";
6
+ import { Button as d } from "../components/Button.js";
7
+ import { Input as f } from "../components/Input.js";
8
+ import { EmptyState as p } from "../components/EmptyState.js";
9
+ import { ErrorState as m } from "../components/ErrorState.js";
10
+ import { LoadMore as h } from "../components/LoadMore.js";
11
+ import { ActionMenu as g } from "../components/ActionMenu.js";
14
12
  import { BucketFormDialog as ee, DeleteBucketDialog as te } from "../components/BucketDialogs.js";
15
- import "../hooks/index.js";
16
- import { buildBucketTree as ne, searchTreeRows as re, useBucketBranch as ie, useBucketCount as b, useBucketSearch as ae, useBuckets as oe, useCreateBucket as se, useDeleteBucket as ce, useUpdateBucket as le } from "../hooks/useBuckets.js";
17
- import { formatRelativeTime as x } from "../utils/formatters.js";
18
- import "../permissions/index.js";
13
+ import { buildBucketTree as ne, searchTreeRows as re, useBucketBranch as _, useBucketCount as v, useBucketSearch as ie, useBuckets as ae, useCreateBucket as oe, useDeleteBucket as se, useUpdateBucket as ce } from "../hooks/useBuckets.js";
14
+ import { formatRelativeTime as y } from "../utils/formatters.js";
15
+ import { BOTMANOR_PERMISSIONS as b } from "../permissions/botmanorPermissions.js";
16
+ import { BotmanorPermissionGate as le, useBotmanorCan as x } from "../permissions/useBotmanorPermissions.js";
19
17
  import { useBucketCreateRequest as ue } from "./bucketCreateDialog.js";
20
18
  import { useEffect as S, useMemo as C, useState as w } from "react";
21
19
  import { GlassCard as T, PagePurpose as de } from "@burdenoff/fe-libs/ui";
@@ -44,26 +42,26 @@ function _e(e, t) {
44
42
  return () => clearTimeout(n);
45
43
  }, [e, t]), n;
46
44
  }
47
- var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children: l, onEdit: u, onDelete: d, onCreateChild: f }) => {
48
- let p = e(), { getPath: m } = i(), h = s(), g = [];
49
- h(a.BUCKET_CREATE) && g.push({
45
+ var B = ({ bucket: t, level: n, expanded: r, onToggle: a, highlight: o, children: s, onEdit: c, onDelete: l, onCreateChild: u }) => {
46
+ let d = e(), { getPath: f } = i(), p = x(), m = [];
47
+ p(b.BUCKET_CREATE) && m.push({
50
48
  key: "add-child",
51
- label: p("botlit.buckets.actions.addChild", "Add sub-bucket"),
49
+ label: d("botlit.buckets.actions.addChild", "Add sub-bucket"),
52
50
  icon: /* @__PURE__ */ D(I, { size: 14 }),
53
- onSelect: () => f(t)
54
- }), h(a.BUCKET_UPDATE) && g.push({
51
+ onSelect: () => u(t)
52
+ }), p(b.BUCKET_UPDATE) && m.push({
55
53
  key: "edit",
56
- label: p("botlit.buckets.actions.edit", "Edit or move"),
54
+ label: d("botlit.buckets.actions.edit", "Edit or move"),
57
55
  icon: /* @__PURE__ */ D(M, { size: 14 }),
58
- onSelect: () => u(t)
59
- }), h(a.BUCKET_DELETE) && g.push({
56
+ onSelect: () => c(t)
57
+ }), p(b.BUCKET_DELETE) && m.push({
60
58
  key: "delete",
61
- label: p("botlit.buckets.actions.delete", "Delete"),
59
+ label: d("botlit.buckets.actions.delete", "Delete"),
62
60
  icon: /* @__PURE__ */ D(L, { size: 14 }),
63
61
  destructive: !0,
64
- onSelect: () => d(t)
62
+ onSelect: () => l(t)
65
63
  });
66
- let _ = r ? p("botlit.buckets.tree.collapse", "Collapse {{name}}", { name: t.name }) : p("botlit.buckets.tree.expand", "Expand {{name}}", { name: t.name });
64
+ let h = r ? d("botlit.buckets.tree.collapse", "Collapse {{name}}", { name: t.name }) : d("botlit.buckets.tree.expand", "Expand {{name}}", { name: t.name });
67
65
  return /* @__PURE__ */ O("li", {
68
66
  role: "treeitem",
69
67
  "aria-level": n,
@@ -75,8 +73,8 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
75
73
  children: [
76
74
  /* @__PURE__ */ D("button", {
77
75
  type: "button",
78
- onClick: () => o(t.id),
79
- "aria-label": _,
76
+ onClick: () => a(t.id),
77
+ "aria-label": h,
80
78
  className: "rounded p-0.5 hover:bg-bg-sunken",
81
79
  children: D(r ? A : j, {
82
80
  size: 16,
@@ -94,26 +92,26 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
94
92
  "aria-hidden": "true"
95
93
  }),
96
94
  /* @__PURE__ */ D(k, {
97
- to: m(`buckets/${t.id}`),
98
- className: `flex-1 font-medium hover:text-primary ${c ? "text-primary" : ""}`,
95
+ to: f(`buckets/${t.id}`),
96
+ className: `flex-1 font-medium hover:text-primary ${o ? "text-primary" : ""}`,
99
97
  children: t.name
100
98
  }),
101
- g.length > 0 ? /* @__PURE__ */ D(y, {
102
- label: p("botlit.buckets.actions.menu", "Actions for {{name}}", { name: t.name }),
103
- items: g
99
+ m.length > 0 ? /* @__PURE__ */ D(g, {
100
+ label: d("botlit.buckets.actions.menu", "Actions for {{name}}", { name: t.name }),
101
+ items: m
104
102
  }) : null
105
103
  ]
106
- }), r ? l : null]
104
+ }), r ? s : null]
107
105
  });
108
106
  }, V = ({ parentBucketId: t, level: n, expanded: r, onToggle: i, refreshKey: a, ...o }) => {
109
- let s = e(), c = ie(t), { refetch: l } = c;
107
+ let s = e(), c = _(t), { refetch: l } = c;
110
108
  return S(() => {
111
109
  a > 0 && l();
112
110
  }, [a, l]), c.loading ? /* @__PURE__ */ D("p", {
113
111
  className: "px-3 py-2 text-sm text-text-secondary",
114
112
  style: { paddingLeft: `${n * 24}px` },
115
113
  children: s("botlit.buckets.tree.loading", "Loading…")
116
- }) : c.error ? /* @__PURE__ */ D(_, {
114
+ }) : c.error ? /* @__PURE__ */ D(m, {
117
115
  resource: s("botlit.buckets.resource", "buckets"),
118
116
  error: c.error,
119
117
  onRetry: () => void l()
@@ -139,7 +137,7 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
139
137
  ...o
140
138
  })
141
139
  }, e.id))
142
- }), /* @__PURE__ */ D(v, {
140
+ }), /* @__PURE__ */ D(h, {
143
141
  hasMore: c.hasMore,
144
142
  loadingMore: c.loadingMore,
145
143
  onLoadMore: () => void c.loadMore(),
@@ -168,61 +166,61 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
168
166
  let { getPath: t } = i();
169
167
  return /* @__PURE__ */ D("li", { children: /* @__PURE__ */ D(k, {
170
168
  to: t(`buckets/${e.id}`),
171
- children: /* @__PURE__ */ O(l, {
169
+ children: /* @__PURE__ */ O(o, {
172
170
  className: "h-full cursor-pointer transition-colors hover:border-primary/50",
173
- children: [/* @__PURE__ */ D(f, {
171
+ children: [/* @__PURE__ */ D(l, {
174
172
  className: "pb-2",
175
173
  children: /* @__PURE__ */ O("div", {
176
174
  className: "flex items-center gap-3",
177
175
  children: [/* @__PURE__ */ D(N, {
178
176
  className: "h-5 w-5 text-primary",
179
177
  "aria-hidden": "true"
180
- }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D(p, {
178
+ }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D(u, {
181
179
  className: "text-base",
182
180
  children: e.name
183
- }), /* @__PURE__ */ D(d, {
181
+ }), /* @__PURE__ */ D(c, {
184
182
  className: "text-xs",
185
183
  children: e.path
186
184
  })] })]
187
185
  })
188
- }), /* @__PURE__ */ D(u, { children: /* @__PURE__ */ O("div", {
186
+ }), /* @__PURE__ */ D(s, { children: /* @__PURE__ */ O("div", {
189
187
  className: "flex items-center justify-between text-sm",
190
188
  children: [/* @__PURE__ */ D("span", {
191
189
  className: "text-text-secondary",
192
190
  children: e.slug
193
191
  }), /* @__PURE__ */ D("span", {
194
192
  className: "text-xs text-text-secondary",
195
- children: x(e.createdAt)
193
+ children: y(e.createdAt)
196
194
  })]
197
195
  }) })]
198
196
  })
199
197
  }) });
200
198
  }, U = () => {
201
- let i = e(), [y, ie] = w(""), x = _e(y.trim(), me), S = x.length > 0, [k, A] = w(he), [j, M] = w(() => /* @__PURE__ */ new Set()), [N, P] = w(() => /* @__PURE__ */ new Set()), [L, z] = w(0), [B, U] = w(null), ye = s(), be = ue(), W = B ?? (be.requested && ye(a.BUCKET_CREATE) ? {
199
+ let i = e(), [g, _] = w(""), y = _e(g.trim(), me), S = y.length > 0, [k, A] = w(he), [j, M] = w(() => /* @__PURE__ */ new Set()), [N, P] = w(() => /* @__PURE__ */ new Set()), [L, z] = w(0), [B, U] = w(null), ye = x(), W = ue(), G = B ?? (W.requested && ye(b.BUCKET_CREATE) ? {
202
200
  mode: "create",
203
201
  parentId: null
204
- } : null), [xe, G] = w(null), K = b({}), q = b({ parentBucketId: null }), J = b({ search: x }), Y = oe(), X = ae(x), [Se, Ce] = se(), [we, Te] = le(), [Ee, De] = ce(), Z = C(() => ne(re(X.data)), [X.data]), Oe = C(() => new Set(X.data.map((e) => e.id)), [X.data]), Q = (e) => {
202
+ } : null), [be, K] = w(null), q = v({}), J = v({ parentBucketId: null }), Y = v({ search: y }), X = ae(), Z = ie(y), [xe, Se] = oe(), [Ce, we] = ce(), [Te, Ee] = se(), Q = C(() => ne(re(Z.data)), [Z.data]), De = C(() => new Set(Z.data.map((e) => e.id)), [Z.data]), $ = (e) => {
205
203
  A(e), ge(e);
206
- }, ke = () => {
207
- z((e) => e + 1), K.refetch(), q.refetch(), Y.refetch(), S && (X.refetch(), J.refetch());
208
- }, Ae = (e) => {
204
+ }, Oe = () => {
205
+ z((e) => e + 1), q.refetch(), J.refetch(), X.refetch(), S && (Z.refetch(), Y.refetch());
206
+ }, ke = (e) => {
209
207
  let t = (t) => {
210
208
  let n = new Set(t);
211
209
  return n.has(e) ? n.delete(e) : n.add(e), n;
212
210
  };
213
211
  S ? P(t) : M(t);
214
- }, je = (e, t) => e instanceof Error ? e.message : t, Me = async (e) => {
215
- if (!W) return !1;
212
+ }, Ae = (e, t) => e instanceof Error ? e.message : t, je = async (e) => {
213
+ if (!G) return !1;
216
214
  try {
217
- if (W.mode === "create") await Se({
215
+ if (G.mode === "create") await xe({
218
216
  name: e.name,
219
217
  slug: e.name,
220
218
  description: e.description || void 0,
221
219
  parentBucketId: e.parentBucketId ?? void 0
222
220
  }), R.success(i("botlit.buckets.toast.created", "Bucket \"{{name}}\" created", { name: e.name })), e.parentBucketId && M((t) => new Set(t).add(e.parentBucketId));
223
221
  else {
224
- let { bucket: t } = W;
225
- await we({
222
+ let { bucket: t } = G;
223
+ await Ce({
226
224
  bucketId: t.id,
227
225
  input: {
228
226
  name: e.name,
@@ -232,31 +230,31 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
232
230
  }), R.success(i("botlit.buckets.toast.updated", "Bucket \"{{name}}\" saved", { name: e.name }));
233
231
  }
234
232
  } catch (e) {
235
- return R.error(je(e, W.mode === "create" ? i("botlit.buckets.toast.createFailed", "Could not create the bucket.") : i("botlit.buckets.toast.updateFailed", "Could not save the bucket."))), !1;
233
+ return R.error(Ae(e, G.mode === "create" ? i("botlit.buckets.toast.createFailed", "Could not create the bucket.") : i("botlit.buckets.toast.updateFailed", "Could not save the bucket."))), !1;
236
234
  }
237
- return ke(), !0;
238
- }, Ne = async (e) => {
235
+ return Oe(), !0;
236
+ }, Me = async (e) => {
239
237
  n("medium");
240
238
  try {
241
- await Ee(e.id);
239
+ await Te(e.id);
242
240
  } catch (e) {
243
- t() && r("error"), R.error(je(e, i("botlit.buckets.toast.deleteFailed", "Could not delete the bucket.")));
241
+ t() && r("error"), R.error(Ae(e, i("botlit.buckets.toast.deleteFailed", "Could not delete the bucket.")));
244
242
  return;
245
243
  }
246
- t() && r("success"), R.success(i("botlit.buckets.toast.deleted", "Bucket \"{{name}}\" deleted", { name: e.name })), G(null), ke();
247
- }, Pe = {
244
+ t() && r("success"), R.success(i("botlit.buckets.toast.deleted", "Bucket \"{{name}}\" deleted", { name: e.name })), K(null), Oe();
245
+ }, Ne = {
248
246
  onEdit: (e) => U({
249
247
  mode: "edit",
250
248
  bucket: e
251
249
  }),
252
- onDelete: (e) => G(e),
250
+ onDelete: (e) => K(e),
253
251
  onCreateChild: (e) => U({
254
252
  mode: "create",
255
253
  parentId: e.id
256
254
  })
257
- }, Fe = /* @__PURE__ */ D(o, {
258
- permission: a.BUCKET_CREATE,
259
- children: /* @__PURE__ */ D(m, {
255
+ }, Pe = /* @__PURE__ */ D(le, {
256
+ permission: b.BUCKET_CREATE,
257
+ children: /* @__PURE__ */ D(d, {
260
258
  leftIcon: /* @__PURE__ */ D(I, { size: 16 }),
261
259
  onClick: () => U({
262
260
  mode: "create",
@@ -264,21 +262,21 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
264
262
  }),
265
263
  children: i("botlit.buckets.actions.create", "Create bucket")
266
264
  })
267
- }), Ie = K.data === 0, Le = /* @__PURE__ */ D(g, {
265
+ }), Fe = q.data === 0, Ie = /* @__PURE__ */ D(p, {
268
266
  illustration: "empty-files",
269
267
  title: i("botlit.buckets.empty.title", "No buckets yet"),
270
268
  description: i("botlit.buckets.empty.description", "Create buckets to organise your BotManor resources."),
271
- action: Fe
272
- }), $ = /* @__PURE__ */ D(g, {
269
+ action: Pe
270
+ }), Le = /* @__PURE__ */ D(p, {
273
271
  kind: "filtered",
274
272
  illustration: "empty-search",
275
- title: i("botlit.buckets.search.noneTitle", "No buckets match \"{{search}}\"", { search: x }),
273
+ title: i("botlit.buckets.search.noneTitle", "No buckets match \"{{search}}\"", { search: y }),
276
274
  description: i("botlit.buckets.search.noneDescription", "Try another name, slug or description.")
277
275
  });
278
- return /* @__PURE__ */ D(c, {
276
+ return /* @__PURE__ */ D(a, {
279
277
  title: i("botlit.buckets.title", "Buckets"),
280
278
  description: i("botlit.buckets.description", "Organise your agents, bots and resources into hierarchical folders"),
281
- actions: Fe,
279
+ actions: Pe,
282
280
  children: /* @__PURE__ */ O("div", {
283
281
  className: "space-y-6",
284
282
  children: [
@@ -286,7 +284,7 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
286
284
  icon: /* @__PURE__ */ D(F, { size: 18 }),
287
285
  children: i("botlit.buckets.purpose", "Buckets are folders for what you build in BotManor (bots, agents, policies, skills, prompt templates and more), arranged in a hierarchy that mirrors how your team works. Group resources by team, project or environment so they stay organised and easy to find.")
288
286
  }),
289
- K.data !== null && K.data > 0 ? /* @__PURE__ */ O("div", {
287
+ q.data !== null && q.data > 0 ? /* @__PURE__ */ O("div", {
290
288
  className: "grid grid-cols-2 gap-4",
291
289
  children: [/* @__PURE__ */ O(T, {
292
290
  treatment: "glass",
@@ -297,7 +295,7 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
297
295
  children: i("botlit.buckets.summary.total", "Total buckets")
298
296
  }), /* @__PURE__ */ D("p", {
299
297
  className: "mt-1 text-2xl font-semibold tabular-nums text-text-primary",
300
- children: K.data
298
+ children: q.data
301
299
  })]
302
300
  }), /* @__PURE__ */ O(T, {
303
301
  treatment: "metric",
@@ -307,7 +305,7 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
307
305
  children: i("botlit.buckets.summary.topLevel", "Top-level buckets")
308
306
  }), /* @__PURE__ */ D("p", {
309
307
  className: "mt-1 text-2xl font-semibold tabular-nums text-text-primary",
310
- children: q.data ?? "…"
308
+ children: J.data ?? "…"
311
309
  })]
312
310
  })]
313
311
  }) : null,
@@ -318,17 +316,17 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
318
316
  children: [/* @__PURE__ */ D(pe, {
319
317
  className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary",
320
318
  "aria-hidden": "true"
321
- }), /* @__PURE__ */ D(h, {
319
+ }), /* @__PURE__ */ D(f, {
322
320
  type: "search",
323
321
  "aria-label": i("botlit.buckets.search.label", "Search buckets"),
324
322
  placeholder: i("botlit.buckets.search.placeholder", "Search buckets…"),
325
- value: y,
326
- onChange: (e) => ie(e.target.value),
323
+ value: g,
324
+ onChange: (e) => _(e.target.value),
327
325
  className: "pl-9"
328
326
  })]
329
327
  }), /* @__PURE__ */ O("div", {
330
328
  className: "flex items-center gap-2",
331
- children: [k === "tree" && !S ? /* @__PURE__ */ D(m, {
329
+ children: [k === "tree" && !S ? /* @__PURE__ */ D(d, {
332
330
  variant: "outline",
333
331
  size: "sm",
334
332
  onClick: () => M(/* @__PURE__ */ new Set()),
@@ -337,26 +335,26 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
337
335
  role: "group",
338
336
  "aria-label": i("botlit.buckets.view.label", "View"),
339
337
  className: "flex overflow-hidden rounded-md border border-border-subtle",
340
- children: [/* @__PURE__ */ D(m, {
338
+ children: [/* @__PURE__ */ D(d, {
341
339
  variant: k === "tree" ? "default" : "ghost",
342
340
  size: "sm",
343
341
  className: "rounded-none",
344
342
  "aria-pressed": k === "tree",
345
343
  "aria-label": i("botlit.buckets.view.tree", "Tree view"),
346
344
  title: i("botlit.buckets.view.tree", "Tree view"),
347
- onClick: () => Q("tree"),
345
+ onClick: () => $("tree"),
348
346
  children: /* @__PURE__ */ D(F, {
349
347
  size: 16,
350
348
  "aria-hidden": "true"
351
349
  })
352
- }), /* @__PURE__ */ D(m, {
350
+ }), /* @__PURE__ */ D(d, {
353
351
  variant: k === "list" ? "default" : "ghost",
354
352
  size: "sm",
355
353
  className: "rounded-none",
356
354
  "aria-pressed": k === "list",
357
355
  "aria-label": i("botlit.buckets.view.list", "List view"),
358
356
  title: i("botlit.buckets.view.list", "List view"),
359
- onClick: () => Q("list"),
357
+ onClick: () => $("list"),
360
358
  children: /* @__PURE__ */ D(fe, {
361
359
  size: 16,
362
360
  "aria-hidden": "true"
@@ -368,35 +366,35 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
368
366
  S ? /* @__PURE__ */ D("p", {
369
367
  className: "text-sm text-text-secondary",
370
368
  "aria-live": "polite",
371
- children: J.data === null ? i("botlit.buckets.search.searching", "Searching…") : i("botlit.buckets.search.count", "{{count}} bucket(s) match", { count: J.data })
369
+ children: Y.data === null ? i("botlit.buckets.search.searching", "Searching…") : i("botlit.buckets.search.count", "{{count}} bucket(s) match", { count: Y.data })
372
370
  }) : null,
373
- k === "tree" ? /* @__PURE__ */ D(l, { children: /* @__PURE__ */ D(u, {
371
+ k === "tree" ? /* @__PURE__ */ D(o, { children: /* @__PURE__ */ D(s, {
374
372
  className: "p-2",
375
- children: S ? X.loading ? /* @__PURE__ */ D("p", {
373
+ children: S ? Z.loading ? /* @__PURE__ */ D("p", {
376
374
  className: "p-4 text-sm text-text-secondary",
377
375
  children: i("botlit.buckets.tree.loading", "Loading…")
378
- }) : X.error ? /* @__PURE__ */ D(_, {
376
+ }) : Z.error ? /* @__PURE__ */ D(m, {
379
377
  resource: i("botlit.buckets.resource", "buckets"),
380
- error: X.error,
381
- onRetry: () => void X.refetch()
382
- }) : Z.length === 0 ? $ : /* @__PURE__ */ O("div", {
378
+ error: Z.error,
379
+ onRetry: () => void Z.refetch()
380
+ }) : Q.length === 0 ? Le : /* @__PURE__ */ O("div", {
383
381
  role: "tree",
384
382
  "aria-label": i("botlit.buckets.tree.label", "Buckets"),
385
383
  className: "py-2",
386
384
  children: [/* @__PURE__ */ D(H, {
387
- nodes: Z,
385
+ nodes: Q,
388
386
  level: 1,
389
- matchIds: Oe,
387
+ matchIds: De,
390
388
  collapsed: N,
391
- onToggle: Ae,
392
- ...Pe
393
- }), /* @__PURE__ */ D(v, {
394
- hasMore: X.hasMore,
395
- loadingMore: X.loadingMore,
396
- onLoadMore: () => void X.loadMore(),
397
- loadedCount: X.data.length
389
+ onToggle: ke,
390
+ ...Ne
391
+ }), /* @__PURE__ */ D(h, {
392
+ hasMore: Z.hasMore,
393
+ loadingMore: Z.loadingMore,
394
+ onLoadMore: () => void Z.loadMore(),
395
+ loadedCount: Z.data.length
398
396
  })]
399
- }) : Ie ? Le : /* @__PURE__ */ D("div", {
397
+ }) : Fe ? Ie : /* @__PURE__ */ D("div", {
400
398
  role: "tree",
401
399
  "aria-label": i("botlit.buckets.tree.label", "Buckets"),
402
400
  className: "py-2",
@@ -404,13 +402,13 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
404
402
  parentBucketId: null,
405
403
  level: 1,
406
404
  expanded: j,
407
- onToggle: Ae,
405
+ onToggle: ke,
408
406
  refreshKey: L,
409
- ...Pe
407
+ ...Ne
410
408
  })
411
409
  })
412
410
  }) }) : (() => {
413
- let e = S ? X : Y;
411
+ let e = S ? Z : X;
414
412
  return e.loading ? /* @__PURE__ */ D("div", {
415
413
  className: "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",
416
414
  children: [
@@ -418,27 +416,27 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
418
416
  2,
419
417
  3
420
418
  ].map((e) => /* @__PURE__ */ D("div", { className: "h-32 rounded-lg bg-bg-sunken motion-safe:animate-vc-shimmer" }, e))
421
- }) : e.error ? /* @__PURE__ */ D(_, {
419
+ }) : e.error ? /* @__PURE__ */ D(m, {
422
420
  resource: i("botlit.buckets.resource", "buckets"),
423
421
  error: e.error,
424
422
  onRetry: () => void e.refetch()
425
- }) : e.data.length === 0 ? S ? $ : Le : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("ul", {
423
+ }) : e.data.length === 0 ? S ? Le : Ie : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("ul", {
426
424
  className: "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",
427
425
  children: e.data.map((e) => /* @__PURE__ */ D(ve, { bucket: e }, e.id))
428
- }), /* @__PURE__ */ D(v, {
426
+ }), /* @__PURE__ */ D(h, {
429
427
  hasMore: e.hasMore,
430
428
  loadingMore: e.loadingMore,
431
429
  onLoadMore: () => void e.loadMore(),
432
430
  loadedCount: e.data.length
433
431
  })] });
434
432
  })(),
435
- /* @__PURE__ */ O(l, { children: [/* @__PURE__ */ O(f, { children: [/* @__PURE__ */ O(p, {
433
+ /* @__PURE__ */ O(o, { children: [/* @__PURE__ */ O(l, { children: [/* @__PURE__ */ O(u, {
436
434
  className: "flex items-center gap-2",
437
435
  children: [/* @__PURE__ */ D(F, {
438
436
  size: 18,
439
437
  "aria-hidden": "true"
440
438
  }), i("botlit.buckets.help.title", "Organising with buckets")]
441
- }), /* @__PURE__ */ D(d, { children: i("botlit.buckets.help.description", "What buckets do today") })] }), /* @__PURE__ */ D(u, { children: /* @__PURE__ */ O("div", {
439
+ }), /* @__PURE__ */ D(c, { children: i("botlit.buckets.help.description", "What buckets do today") })] }), /* @__PURE__ */ D(s, { children: /* @__PURE__ */ O("div", {
442
440
  className: "grid grid-cols-1 gap-6 md:grid-cols-3",
443
441
  children: [
444
442
  /* @__PURE__ */ O("div", {
@@ -474,21 +472,21 @@ var B = ({ bucket: t, level: n, expanded: r, onToggle: o, highlight: c, children
474
472
  ]
475
473
  }) })] }),
476
474
  /* @__PURE__ */ D(ee, {
477
- mode: W?.mode ?? "create",
478
- open: W !== null,
479
- bucket: W?.mode === "edit" ? W.bucket : null,
480
- initialParentId: W?.mode === "create" ? W.parentId : null,
481
- saving: Ce.loading || Te.loading,
482
- onSubmit: Me,
475
+ mode: G?.mode ?? "create",
476
+ open: G !== null,
477
+ bucket: G?.mode === "edit" ? G.bucket : null,
478
+ initialParentId: G?.mode === "create" ? G.parentId : null,
479
+ saving: Se.loading || we.loading,
480
+ onSubmit: je,
483
481
  onClose: () => {
484
- U(null), be.clear();
482
+ U(null), W.clear();
485
483
  }
486
484
  }),
487
485
  /* @__PURE__ */ D(te, {
488
- bucket: xe,
489
- deleting: De.loading,
490
- onConfirm: (e) => void Ne(e),
491
- onClose: () => G(null)
486
+ bucket: be,
487
+ deleting: Ee.loading,
488
+ onConfirm: (e) => void Me(e),
489
+ onClose: () => K(null)
492
490
  })
493
491
  ]
494
492
  })