@burdenoff/microfe-botmanor 2026.1120.7 → 2026.1120.8

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 (39) hide show
  1. package/dist/botlit/components/DashboardUsagePanel.d.ts +8 -0
  2. package/dist/botlit/components/DashboardUsagePanel.js +277 -0
  3. package/dist/botlit/components/DashboardUsagePanel.js.map +1 -0
  4. package/dist/botlit/components/LiveIndicator.d.ts +9 -0
  5. package/dist/botlit/components/LiveIndicator.js +21 -0
  6. package/dist/botlit/components/LiveIndicator.js.map +1 -0
  7. package/dist/botlit/components/RunStatsCard.d.ts +9 -0
  8. package/dist/botlit/components/RunStatsCard.js +138 -0
  9. package/dist/botlit/components/RunStatsCard.js.map +1 -0
  10. package/dist/botlit/hooks/useExecutionLiveUpdates.d.ts +29 -0
  11. package/dist/botlit/hooks/useExecutionLiveUpdates.js +124 -0
  12. package/dist/botlit/hooks/useExecutionLiveUpdates.js.map +1 -0
  13. package/dist/botlit/hooks/useUsageStats.d.ts +71 -0
  14. package/dist/botlit/hooks/useUsageStats.js +115 -0
  15. package/dist/botlit/hooks/useUsageStats.js.map +1 -0
  16. package/dist/botlit/pages/AgentDetailPage.js +48 -43
  17. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  18. package/dist/botlit/pages/BotDetailPage.js +317 -309
  19. package/dist/botlit/pages/BotDetailPage.js.map +1 -1
  20. package/dist/botlit/pages/DashboardPage.js +155 -153
  21. package/dist/botlit/pages/DashboardPage.js.map +1 -1
  22. package/dist/botlit/pages/ExecutionDetailPage.js +142 -132
  23. package/dist/botlit/pages/ExecutionDetailPage.js.map +1 -1
  24. package/dist/botlit/pages/ExecutionsPage.js +150 -141
  25. package/dist/botlit/pages/ExecutionsPage.js.map +1 -1
  26. package/dist/botlit/pages/PromptStudioPage.js +172 -172
  27. package/dist/botlit/pages/PromptStudioPage.js.map +1 -1
  28. package/dist/botlit/permissions/botmanorPermissions.d.ts +1 -0
  29. package/dist/botlit/permissions/botmanorPermissions.js +1 -0
  30. package/dist/botlit/permissions/botmanorPermissions.js.map +1 -1
  31. package/dist/botlit/utils/formatters.js +6 -2
  32. package/dist/botlit/utils/formatters.js.map +1 -1
  33. package/dist/generated/wspace-operations.d.ts +264 -0
  34. package/dist/generated/wspace-operations.js +95 -6
  35. package/dist/generated/wspace-operations.js.map +1 -1
  36. package/dist/generated/wspace-types.d.ts +98 -0
  37. package/dist/generated/wspace-types.js +8 -4
  38. package/dist/generated/wspace-types.js.map +1 -1
  39. package/package.json +1 -1
@@ -27,42 +27,43 @@ import { GuardrailPoliciesPanel as xe } from "../components/GuardrailPoliciesPan
27
27
  import { CreateFromTemplate as Se } from "../components/CreateFromTemplate.js";
28
28
  import { DescribeBotDialog as Ce } from "../components/DescribeBotDialog.js";
29
29
  import { EntityTags as we } from "../components/EntityTags.js";
30
+ import { RunStatsCard as Te } from "../components/RunStatsCard.js";
30
31
  import "../permissions/index.js";
31
- import { Suspense as Te, lazy as v, useEffect as y, useState as b } from "react";
32
- import { GlassCard as Ee, NextSteps as De, PagePurpose as Oe } from "@burdenoff/fe-libs/ui";
32
+ import { Suspense as Ee, lazy as v, useEffect as y, useState as b } from "react";
33
+ import { GlassCard as De, NextSteps as Oe, PagePurpose as ke } from "@burdenoff/fe-libs/ui";
33
34
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
34
- import { Link as ke, useParams as Ae, useSearchParams as je } from "react-router";
35
- import { isQuotaExhaustedError as Me } from "@burdenoff/fe-libs/shared/utils";
36
- import { ArrowLeft as w, BarChart3 as Ne, Bot as T, Edit as Pe, GitBranch as Fe, Layers as Ie, MessageSquare as E, Radio as D, Save as O, Shield as k, ShieldCheck as Le, Trash2 as Re, Workflow as A } from "lucide-react";
37
- import { toast as j } from "sonner";
35
+ import { Link as Ae, useParams as je, useSearchParams as Me } from "react-router";
36
+ import { isQuotaExhaustedError as Ne } from "@burdenoff/fe-libs/shared/utils";
37
+ import { ArrowLeft as w, BarChart3 as Pe, Bot as T, Edit as Fe, GitBranch as Ie, Layers as Le, MessageSquare as E, Radio as Re, Save as ze, Shield as Be, ShieldCheck as Ve, Trash2 as He, Workflow as D } from "lucide-react";
38
+ import { toast as O } from "sonner";
38
39
  // src/botlit/pages/BotDetailPage.tsx
39
- var ze = v(() => import("./BotWorkflowTab.js").then((e) => ({ default: e.BotWorkflowTab }))), M = {
40
+ var Ue = v(() => import("./BotWorkflowTab.js").then((e) => ({ default: e.BotWorkflowTab }))), k = {
40
41
  key: "activate",
41
42
  target: "ACTIVE",
42
43
  variant: "default",
43
44
  confirm: !1
44
- }, N = {
45
+ }, A = {
45
46
  key: "resume",
46
47
  target: "ACTIVE",
47
48
  variant: "default",
48
49
  confirm: !1
49
- }, P = {
50
+ }, j = {
50
51
  key: "pause",
51
52
  target: "PAUSED",
52
53
  variant: "outline",
53
54
  confirm: !0
54
- }, F = {
55
+ }, M = {
55
56
  key: "archive",
56
57
  target: "ARCHIVED",
57
58
  variant: "outline",
58
59
  confirm: !0
59
- }, Be = {
60
- DRAFT: [M, F],
61
- ACTIVE: [P, F],
62
- PAUSED: [N, F],
63
- ARCHIVED: [M]
64
- }, Ve = "ASSISTANT";
65
- function He(e) {
60
+ }, We = {
61
+ DRAFT: [k, M],
62
+ ACTIVE: [j, M],
63
+ PAUSED: [A, M],
64
+ ARCHIVED: [k]
65
+ }, Ge = "ASSISTANT";
66
+ function Ke(e) {
66
67
  return {
67
68
  name: e.name,
68
69
  slug: e.slug,
@@ -75,7 +76,7 @@ function He(e) {
75
76
  defaultAgentId: e.defaultAgentId ?? ""
76
77
  };
77
78
  }
78
- var I = [
79
+ var N = [
79
80
  "overview",
80
81
  "workflow",
81
82
  "routing",
@@ -85,84 +86,84 @@ var I = [
85
86
  "aiOperations",
86
87
  "releases"
87
88
  ];
88
- function Ue(e) {
89
+ function qe(e) {
89
90
  if (e.get("code") && e.get("state")) return "channels";
90
91
  let t = e.get("tab");
91
- return I.find((e) => e === t) ?? "overview";
92
+ return N.find((e) => e === t) ?? "overview";
92
93
  }
93
- var L = ({ isNew: d, isEditing: m }) => {
94
- let h = e(), { botId: v } = Ae(), [M] = je(), N = te(), { navigateTo: P, getPath: F, workspaceId: I, navigate: L } = ue(), { data: R, loading: We, error: z, refetch: B } = ie(d ? void 0 : v), { data: V } = ce(), [Ge, Ke] = ae(), [H, qe] = se(), [Je, Ye] = oe(), [U, W] = b(() => Ue(M)), [G, K] = b(p), [Xe, Ze] = b(p), [Qe, $e] = b(!1), [et, q] = b(!1), [tt, J] = b(!1), Y = me(G.name, G.slug), nt = Object.keys(Y).length > 0, X = !et && JSON.stringify(G) !== JSON.stringify(Xe), rt = !!(d || m), it = () => {
95
- L ? L("/billing") : window.location.assign("/billing");
94
+ var P = ({ isNew: d, isEditing: m }) => {
95
+ let h = e(), { botId: v } = je(), [k] = Me(), A = te(), { navigateTo: j, getPath: M, workspaceId: N, navigate: P } = ue(), { data: F, loading: Je, error: I, refetch: L } = ie(d ? void 0 : v), { data: R } = ce(), [Ye, Xe] = ae(), [z, B] = se(), [Ze, Qe] = oe(), [V, H] = b(() => qe(k)), [U, W] = b(p), [$e, et] = b(p), [G, K] = b(!1), [tt, q] = b(!1), [nt, J] = b(!1), Y = me(U.name, U.slug), rt = Object.keys(Y).length > 0, X = !tt && JSON.stringify(U) !== JSON.stringify($e), it = !!(d || m), at = () => {
96
+ P ? P("/billing") : window.location.assign("/billing");
96
97
  };
97
98
  y(() => {
98
- if (R && !d) {
99
- let e = He(R);
100
- K(e), Ze(e);
99
+ if (F && !d) {
100
+ let e = Ke(F);
101
+ W(e), et(e);
101
102
  }
102
- }, [R, d]), y(() => {
103
- if (v && R?.name) return he(v, R.name), () => ge(v);
104
- }, [v, R?.name]), y(() => {
105
- if (!rt || !X) return;
103
+ }, [F, d]), y(() => {
104
+ if (v && F?.name) return he(v, F.name), () => ge(v);
105
+ }, [v, F?.name]), y(() => {
106
+ if (!it || !X) return;
106
107
  let e = (e) => {
107
108
  e.preventDefault(), e.returnValue = "";
108
109
  };
109
110
  return window.addEventListener("beforeunload", e), () => window.removeEventListener("beforeunload", e);
110
- }, [rt, X]);
111
+ }, [it, X]);
111
112
  let Z = async (e) => {
112
113
  (!X || await g({
113
114
  title: h("botlit.botDetail.discard.title", "Discard changes?"),
114
115
  message: h("botlit.botDetail.discard.message", "You have unsaved changes. If you leave now they will be lost."),
115
116
  confirmLabel: h("botlit.botDetail.discard.confirm", "Discard"),
116
117
  cancelLabel: h("botlit.botDetail.discard.keepEditing", "Keep editing")
117
- })) && (q(!0), P(e));
118
- }, at = async () => {
119
- if ($e(!0), nt || !I) return;
120
- let e = G.name.trim();
118
+ })) && (q(!0), j(e));
119
+ }, ot = async () => {
120
+ if (K(!0), rt || !N) return;
121
+ let e = U.name.trim();
121
122
  try {
122
- let t = await Ge({
123
- workspaceId: I,
123
+ let t = await Ye({
124
+ workspaceId: N,
124
125
  name: e,
125
- slug: G.slug.trim() || _(e),
126
- type: Ve,
127
- routingStrategy: G.routingStrategy,
128
- visibility: G.visibility,
129
- description: G.description || void 0,
130
- icon: G.icon || void 0
126
+ slug: U.slug.trim() || _(e),
127
+ type: Ge,
128
+ routingStrategy: U.routingStrategy,
129
+ visibility: U.visibility,
130
+ description: U.description || void 0,
131
+ icon: U.icon || void 0
131
132
  });
132
- q(!0), j.success(h("botlit.botDetail.create.success", "Bot \"{{name}}\" created successfully", { name: e })), t?.id && P(`bots/${t.id}?tab=workflow`);
133
+ q(!0), O.success(h("botlit.botDetail.create.success", "Bot \"{{name}}\" created successfully", { name: e })), t?.id && j(`bots/${t.id}?tab=workflow`);
133
134
  } catch (e) {
134
- if (Me(e)) {
135
+ if (Ne(e)) {
135
136
  J(!0);
136
137
  return;
137
138
  }
138
139
  let t = e instanceof Error ? e.message : h("botlit.botDetail.create.error", "Failed to create bot");
139
- j.error(t);
140
+ O.error(t);
140
141
  }
141
- }, ot = async () => {
142
- if ($e(!0), !v || nt) return;
143
- let e = G.name.trim();
142
+ }, st = async () => {
143
+ if (K(!0), !v || rt) return;
144
+ let e = U.name.trim();
144
145
  try {
145
- await H({
146
+ await z({
146
147
  botId: v,
147
148
  input: {
148
149
  name: e,
149
- slug: G.slug.trim() || _(e),
150
- description: G.description || null,
151
- icon: G.icon || null,
152
- routingStrategy: G.routingStrategy,
153
- visibility: G.visibility,
154
- welcomeMessage: G.welcomeMessage || null,
155
- fallbackMessage: G.fallbackMessage || null,
156
- defaultAgentId: G.defaultAgentId || null
150
+ slug: U.slug.trim() || _(e),
151
+ description: U.description || null,
152
+ icon: U.icon || null,
153
+ routingStrategy: U.routingStrategy,
154
+ visibility: U.visibility,
155
+ welcomeMessage: U.welcomeMessage || null,
156
+ fallbackMessage: U.fallbackMessage || null,
157
+ defaultAgentId: U.defaultAgentId || null
157
158
  }
158
- }), q(!0), await B(), j.success(h("botlit.botDetail.update.success", "Bot \"{{name}}\" updated successfully", { name: e })), m && P(`bots/${v}`);
159
+ }), q(!0), await L(), O.success(h("botlit.botDetail.update.success", "Bot \"{{name}}\" updated successfully", { name: e })), m && j(`bots/${v}`);
159
160
  } catch (e) {
160
161
  let t = e instanceof Error ? e.message : h("botlit.botDetail.update.error", "Failed to update bot");
161
- j.error(t);
162
+ O.error(t);
162
163
  }
163
164
  };
164
165
  if (d) {
165
- let e = I ? null : h("botlit.botDetail.createPage.waitingWorkspace", "Waiting for your workspace to load…");
166
+ let e = N ? null : h("botlit.botDetail.createPage.waitingWorkspace", "Waiting for your workspace to load…");
166
167
  return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(t, {
167
168
  title: h("botlit.botDetail.createPage.title", "Create New Bot"),
168
169
  description: h("botlit.botDetail.createPage.description", "Set up a new AI-powered bot"),
@@ -176,8 +177,8 @@ var L = ({ isNew: d, isEditing: m }) => {
176
177
  }), /* @__PURE__ */ S(o, {
177
178
  type: "submit",
178
179
  form: "bot-create-form",
179
- leftIcon: /* @__PURE__ */ S(O, { size: 16 }),
180
- isLoading: Ke.loading,
180
+ leftIcon: /* @__PURE__ */ S(ze, { size: 16 }),
181
+ isLoading: Xe.loading,
181
182
  disabled: !!e,
182
183
  "aria-describedby": e ? "bot-create-blocked" : void 0,
183
184
  children: h("botlit.botDetail.createPage.actions.createBot", "Create Bot")
@@ -189,14 +190,14 @@ var L = ({ isNew: d, isEditing: m }) => {
189
190
  /* @__PURE__ */ S(Ce, {
190
191
  scope: "BOT",
191
192
  onCreated: (e) => {
192
- q(!0), e.app && P(`bots/${e.app.id}`);
193
+ q(!0), e.app && j(`bots/${e.app.id}`);
193
194
  },
194
195
  onQuotaExhausted: () => J(!0)
195
196
  }),
196
197
  /* @__PURE__ */ S(Se, {
197
198
  kind: "bot",
198
199
  onCreated: (e) => {
199
- q(!0), P(`bots/${e}`);
200
+ q(!0), j(`bots/${e}`);
200
201
  },
201
202
  onQuotaExhausted: () => J(!0)
202
203
  }),
@@ -208,15 +209,15 @@ var L = ({ isNew: d, isEditing: m }) => {
208
209
  id: "bot-create-form",
209
210
  noValidate: !0,
210
211
  onSubmit: (e) => {
211
- e.preventDefault(), at();
212
+ e.preventDefault(), ot();
212
213
  },
213
214
  children: [/* @__PURE__ */ S(f, {
214
215
  idPrefix: "bot-create",
215
216
  mode: "create",
216
- value: G,
217
- onChange: K,
217
+ value: U,
218
+ onChange: W,
218
219
  errors: Y,
219
- showErrors: Qe
220
+ showErrors: G
220
221
  }), e && /* @__PURE__ */ S("p", {
221
222
  id: "bot-create-blocked",
222
223
  role: "status",
@@ -229,14 +230,14 @@ var L = ({ isNew: d, isEditing: m }) => {
229
230
  ]
230
231
  })
231
232
  }), /* @__PURE__ */ S(le, {
232
- open: tt,
233
+ open: nt,
233
234
  title: h("botlit.usage.botQuota.title", "Bot Limit Reached"),
234
235
  description: h("botlit.usage.botQuota.description", "You have reached the number of bots allowed on your current plan."),
235
236
  onClose: () => J(!1),
236
- onViewBilling: it
237
+ onViewBilling: at
237
238
  })] });
238
239
  }
239
- if (We) return /* @__PURE__ */ S(t, {
240
+ if (Je) return /* @__PURE__ */ S(t, {
240
241
  title: h("botlit.common.loading", "Loading..."),
241
242
  children: /* @__PURE__ */ S("div", {
242
243
  role: "status",
@@ -245,27 +246,27 @@ var L = ({ isNew: d, isEditing: m }) => {
245
246
  className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg"
246
247
  })
247
248
  });
248
- if (z) return /* @__PURE__ */ S(t, {
249
+ if (I) return /* @__PURE__ */ S(t, {
249
250
  title: h("botlit.botDetail.loadError.title", "Bot unavailable"),
250
251
  children: /* @__PURE__ */ S(re, {
251
252
  resource: h("botlit.botDetail.resource", "this bot"),
252
- error: z,
253
- onRetry: () => void B()
253
+ error: I,
254
+ onRetry: () => void L()
254
255
  })
255
256
  });
256
- if (!R) return /* @__PURE__ */ S(t, {
257
+ if (!F) return /* @__PURE__ */ S(t, {
257
258
  title: h("botlit.botDetail.notFound.title", "Bot Not Found"),
258
259
  children: /* @__PURE__ */ S(ne, {
259
260
  illustration: "empty-agents",
260
261
  title: h("botlit.botDetail.notFound.title", "Bot Not Found"),
261
262
  description: h("botlit.botDetail.notFound.description", "The bot you're looking for doesn't exist."),
262
263
  action: /* @__PURE__ */ S(o, {
263
- onClick: () => P("bots"),
264
+ onClick: () => j("bots"),
264
265
  children: h("botlit.botDetail.notFound.backAction", "Back to Bots")
265
266
  })
266
267
  })
267
268
  });
268
- if (m && R) return /* @__PURE__ */ S(t, {
269
+ if (m && F) return /* @__PURE__ */ S(t, {
269
270
  leading: /* @__PURE__ */ S(o, {
270
271
  variant: "ghost",
271
272
  size: "icon",
@@ -288,8 +289,8 @@ var L = ({ isNew: d, isEditing: m }) => {
288
289
  }), /* @__PURE__ */ S(o, {
289
290
  type: "submit",
290
291
  form: "bot-edit-form",
291
- leftIcon: /* @__PURE__ */ S(O, { size: 16 }),
292
- isLoading: qe.loading,
292
+ leftIcon: /* @__PURE__ */ S(ze, { size: 16 }),
293
+ isLoading: B.loading,
293
294
  children: h("botlit.botDetail.editPage.actions.saveChanges", "Save Changes")
294
295
  })]
295
296
  }),
@@ -301,22 +302,22 @@ var L = ({ isNew: d, isEditing: m }) => {
301
302
  id: "bot-edit-form",
302
303
  noValidate: !0,
303
304
  onSubmit: (e) => {
304
- e.preventDefault(), ot();
305
+ e.preventDefault(), st();
305
306
  },
306
307
  children: /* @__PURE__ */ S(f, {
307
308
  idPrefix: "bot-edit",
308
309
  mode: "edit",
309
- value: G,
310
- onChange: K,
310
+ value: U,
311
+ onChange: W,
311
312
  errors: Y,
312
- showErrors: Qe,
313
- agents: V
313
+ showErrors: G,
314
+ agents: R
314
315
  })
315
316
  })
316
317
  })
317
318
  })
318
319
  });
319
- let st = (e, t) => {
320
+ let ct = (e, t) => {
320
321
  switch (e) {
321
322
  case "activate": return {
322
323
  label: h("botlit.botDetail.actions.activate", "Activate"),
@@ -343,37 +344,37 @@ var L = ({ isNew: d, isEditing: m }) => {
343
344
  error: h("botlit.botDetail.archive.error", "Failed to archive bot")
344
345
  };
345
346
  }
346
- }, ct = async (e) => {
347
+ }, lt = async (e) => {
347
348
  if (!v) return;
348
- let t = st(e.key, R.name);
349
+ let t = ct(e.key, F.name);
349
350
  if (!e.confirm || await g({
350
351
  title: t.confirmTitle ?? t.label,
351
352
  message: t.confirmMessage ?? t.label,
352
353
  confirmLabel: t.label,
353
354
  cancelLabel: h("botlit.common.cancel", "Cancel")
354
355
  })) try {
355
- await H({
356
+ await z({
356
357
  botId: v,
357
358
  input: { status: e.target }
358
- }), await B(), j.success(t.success);
359
+ }), await L(), O.success(t.success);
359
360
  } catch (e) {
360
- j.error(e instanceof Error ? e.message : t.error);
361
+ O.error(e instanceof Error ? e.message : t.error);
361
362
  }
362
- }, lt = [
363
+ }, ut = [
363
364
  {
364
365
  id: "overview",
365
366
  label: h("botlit.botDetail.tabs.overview", "Overview"),
366
- icon: /* @__PURE__ */ S(Ne, { size: 16 })
367
+ icon: /* @__PURE__ */ S(Pe, { size: 16 })
367
368
  },
368
369
  {
369
370
  id: "workflow",
370
371
  label: h("botlit.botDetail.tabs.workflow", "Workflow"),
371
- icon: /* @__PURE__ */ S(A, { size: 16 })
372
+ icon: /* @__PURE__ */ S(D, { size: 16 })
372
373
  },
373
374
  {
374
375
  id: "routing",
375
376
  label: h("botlit.botDetail.tabs.routing", "Routing"),
376
- icon: /* @__PURE__ */ S(Fe, { size: 16 })
377
+ icon: /* @__PURE__ */ S(Ie, { size: 16 })
377
378
  },
378
379
  {
379
380
  id: "agents",
@@ -383,35 +384,35 @@ var L = ({ isNew: d, isEditing: m }) => {
383
384
  {
384
385
  id: "channels",
385
386
  label: h("botlit.botDetail.tabs.channels", "Channels"),
386
- icon: /* @__PURE__ */ S(D, { size: 16 })
387
+ icon: /* @__PURE__ */ S(Re, { size: 16 })
387
388
  },
388
389
  {
389
390
  id: "guardrails",
390
391
  label: h("botlit.botDetail.tabs.guardrails", "Guardrails"),
391
- icon: /* @__PURE__ */ S(k, { size: 16 })
392
+ icon: /* @__PURE__ */ S(Be, { size: 16 })
392
393
  },
393
394
  {
394
395
  id: "aiOperations",
395
396
  label: h("botlit.botDetail.tabs.aiOperations", "AI Operations"),
396
- icon: /* @__PURE__ */ S(Le, { size: 16 })
397
+ icon: /* @__PURE__ */ S(Ve, { size: 16 })
397
398
  },
398
399
  {
399
400
  id: "releases",
400
401
  label: h("botlit.botDetail.tabs.releases", "Releases"),
401
- icon: /* @__PURE__ */ S(Ie, { size: 16 })
402
+ icon: /* @__PURE__ */ S(Le, { size: 16 })
402
403
  }
403
- ], Q = (V ?? []).map((e) => ({
404
+ ], Q = (R ?? []).map((e) => ({
404
405
  id: e.id,
405
406
  name: e.name,
406
407
  status: e.status
407
- })), $ = R.defaultAgentId ? Q.find((e) => e.id === R.defaultAgentId) : void 0;
408
+ })), $ = F.defaultAgentId ? Q.find((e) => e.id === F.defaultAgentId) : void 0;
408
409
  return /* @__PURE__ */ S(t, {
409
410
  leading: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(o, {
410
411
  variant: "ghost",
411
412
  size: "icon",
412
413
  type: "button",
413
414
  "aria-label": h("botlit.botDetail.backToBots", "Back to Bots"),
414
- onClick: () => P("bots"),
415
+ onClick: () => j("bots"),
415
416
  children: /* @__PURE__ */ S(w, {
416
417
  size: 20,
417
418
  "aria-hidden": "true"
@@ -419,32 +420,32 @@ var L = ({ isNew: d, isEditing: m }) => {
419
420
  }), /* @__PURE__ */ S("span", {
420
421
  className: "text-3xl",
421
422
  "aria-hidden": "true",
422
- children: R.icon
423
+ children: F.icon
423
424
  })] }),
424
- title: R.name,
425
- meta: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(c, { status: R.status }), /* @__PURE__ */ S(s, {
425
+ title: F.name,
426
+ meta: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(c, { status: F.status }), /* @__PURE__ */ S(s, {
426
427
  variant: "outline",
427
- children: R.slug
428
+ children: F.slug
428
429
  })] }),
429
- description: R.description,
430
+ description: F.description,
430
431
  actions: /* @__PURE__ */ C("div", {
431
432
  className: "flex gap-2",
432
433
  children: [
433
434
  /* @__PURE__ */ S(u, {
434
435
  permission: l.APP_UPDATE,
435
- children: (Be[R.status] ?? []).map((e) => /* @__PURE__ */ S(o, {
436
+ children: (We[F.status] ?? []).map((e) => /* @__PURE__ */ S(o, {
436
437
  variant: e.variant,
437
- isLoading: qe.loading,
438
- onClick: () => void ct(e),
439
- children: st(e.key, R.name).label
438
+ isLoading: B.loading,
439
+ onClick: () => void lt(e),
440
+ children: ct(e.key, F.name).label
440
441
  }, e.key))
441
442
  }),
442
443
  /* @__PURE__ */ S(u, {
443
444
  permission: l.APP_UPDATE,
444
445
  children: /* @__PURE__ */ S(o, {
445
446
  variant: "outline",
446
- leftIcon: /* @__PURE__ */ S(Pe, { size: 16 }),
447
- onClick: () => P(`bots/${v}/edit`),
447
+ leftIcon: /* @__PURE__ */ S(Fe, { size: 16 }),
448
+ onClick: () => j(`bots/${v}/edit`),
448
449
  children: h("botlit.botDetail.actions.editBot", "Edit Bot")
449
450
  })
450
451
  }),
@@ -454,8 +455,8 @@ var L = ({ isNew: d, isEditing: m }) => {
454
455
  variant: "outline",
455
456
  leftIcon: /* @__PURE__ */ S(E, { size: 16 }),
456
457
  onClick: () => {
457
- let e = R?.defaultAgentId;
458
- P(e ? `agents/${e}/test` : "chat");
458
+ let e = F?.defaultAgentId;
459
+ j(e ? `agents/${e}/test` : "chat");
459
460
  },
460
461
  children: h("botlit.botDetail.actions.testBot", "Test Bot")
461
462
  })
@@ -464,22 +465,22 @@ var L = ({ isNew: d, isEditing: m }) => {
464
465
  permission: l.APP_DELETE,
465
466
  children: /* @__PURE__ */ S(o, {
466
467
  variant: "destructive",
467
- leftIcon: /* @__PURE__ */ S(Re, { size: 16 }),
468
- isLoading: Ye.loading,
468
+ leftIcon: /* @__PURE__ */ S(He, { size: 16 }),
469
+ isLoading: Qe.loading,
469
470
  onClick: async () => {
470
471
  if (v && await g({
471
472
  title: h("botlit.botsList.delete.title", "Delete bot?"),
472
- message: h("botlit.botsList.delete.confirm", "Are you sure you want to delete \"{{name}}\"? Its channels will stop answering and this cannot be undone.", { name: R.name }),
473
+ message: h("botlit.botsList.delete.confirm", "Are you sure you want to delete \"{{name}}\"? Its channels will stop answering and this cannot be undone.", { name: F.name }),
473
474
  confirmLabel: h("botlit.common.delete", "Delete"),
474
475
  cancelLabel: h("botlit.common.cancel", "Cancel")
475
476
  })) try {
476
- if (!await Je(v)) {
477
- j.error(h("botlit.botsList.delete.notDeleted", "The bot could not be deleted."));
477
+ if (!await Ze(v)) {
478
+ O.error(h("botlit.botsList.delete.notDeleted", "The bot could not be deleted."));
478
479
  return;
479
480
  }
480
- j.success(h("botlit.botsList.delete.success", "Bot \"{{name}}\" deleted successfully", { name: R.name })), P("bots");
481
+ O.success(h("botlit.botsList.delete.success", "Bot \"{{name}}\" deleted successfully", { name: F.name })), j("bots");
481
482
  } catch (e) {
482
- j.error(e instanceof Error ? e.message : h("botlit.botDetail.delete.error", "Failed to delete bot"));
483
+ O.error(e instanceof Error ? e.message : h("botlit.botDetail.delete.error", "Failed to delete bot"));
483
484
  }
484
485
  },
485
486
  children: h("botlit.common.delete", "Delete")
@@ -490,237 +491,244 @@ var L = ({ isNew: d, isEditing: m }) => {
490
491
  children: /* @__PURE__ */ C("div", {
491
492
  className: "space-y-6",
492
493
  children: [
493
- /* @__PURE__ */ S(Oe, {
494
+ /* @__PURE__ */ S(ke, {
494
495
  icon: /* @__PURE__ */ S(T, { size: 18 }),
495
496
  children: h("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.")
496
497
  }),
497
498
  /* @__PURE__ */ S("div", {
498
499
  className: "flex gap-1 border-b border-border-subtle overflow-x-auto",
499
- children: lt.map((e) => /* @__PURE__ */ C("button", {
500
- onClick: () => W(e.id),
501
- className: pe("flex items-center gap-2 px-4 py-2 text-sm font-medium border-b-2 transition-colors whitespace-nowrap", U === e.id ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
500
+ children: ut.map((e) => /* @__PURE__ */ C("button", {
501
+ onClick: () => H(e.id),
502
+ className: pe("flex items-center gap-2 px-4 py-2 text-sm font-medium border-b-2 transition-colors whitespace-nowrap", V === e.id ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary"),
502
503
  children: [e.icon, e.label]
503
504
  }, e.id))
504
505
  }),
505
- U === "overview" && /* @__PURE__ */ C("div", {
506
+ V === "overview" && /* @__PURE__ */ C("div", {
506
507
  className: "space-y-6",
507
- children: [/* @__PURE__ */ S(De, {
508
- storageKey: `botlit-bot-${v}`,
509
- steps: [
510
- {
511
- id: "workflow",
512
- label: h("botlit.botDetail.nextSteps.workflow", "Design the workflow"),
513
- description: h("botlit.botDetail.nextSteps.workflowDesc", "Lay out what the bot does on the FluidGrids canvas."),
514
- icon: /* @__PURE__ */ S(A, { size: 16 }),
515
- onClick: () => W("workflow"),
516
- done: !!R.workflowId
517
- },
518
- {
519
- id: "agent",
520
- label: h("botlit.botDetail.nextSteps.agent", "Assign a default agent"),
521
- description: h("botlit.botDetail.nextSteps.agentDesc", "Choose which agent answers when this bot is messaged."),
522
- icon: /* @__PURE__ */ S(T, { size: 16 }),
523
- onClick: () => W("agents"),
524
- done: !!R.defaultAgentId
525
- },
526
- {
527
- id: "channel",
528
- label: h("botlit.botDetail.nextSteps.channel", "Connect a channel"),
529
- description: h("botlit.botDetail.nextSteps.channelDesc", "Put the bot on Slack, a web widget or another channel."),
530
- icon: /* @__PURE__ */ S(D, { size: 16 }),
531
- onClick: () => W("channels")
532
- },
533
- {
534
- id: "test",
535
- label: h("botlit.botDetail.nextSteps.test", "Test the bot"),
536
- description: h("botlit.botDetail.nextSteps.testDesc", "Send a message to check the experience end to end."),
537
- icon: /* @__PURE__ */ S(E, { size: 16 }),
538
- onClick: () => {
539
- let e = R?.defaultAgentId;
540
- P(e ? `agents/${e}/test` : "chat");
508
+ children: [
509
+ /* @__PURE__ */ S(Oe, {
510
+ storageKey: `botlit-bot-${v}`,
511
+ steps: [
512
+ {
513
+ id: "workflow",
514
+ label: h("botlit.botDetail.nextSteps.workflow", "Design the workflow"),
515
+ description: h("botlit.botDetail.nextSteps.workflowDesc", "Lay out what the bot does on the FluidGrids canvas."),
516
+ icon: /* @__PURE__ */ S(D, { size: 16 }),
517
+ onClick: () => H("workflow"),
518
+ done: !!F.workflowId
519
+ },
520
+ {
521
+ id: "agent",
522
+ label: h("botlit.botDetail.nextSteps.agent", "Assign a default agent"),
523
+ description: h("botlit.botDetail.nextSteps.agentDesc", "Choose which agent answers when this bot is messaged."),
524
+ icon: /* @__PURE__ */ S(T, { size: 16 }),
525
+ onClick: () => H("agents"),
526
+ done: !!F.defaultAgentId
527
+ },
528
+ {
529
+ id: "channel",
530
+ label: h("botlit.botDetail.nextSteps.channel", "Connect a channel"),
531
+ description: h("botlit.botDetail.nextSteps.channelDesc", "Put the bot on Slack, a web widget or another channel."),
532
+ icon: /* @__PURE__ */ S(Re, { size: 16 }),
533
+ onClick: () => H("channels")
534
+ },
535
+ {
536
+ id: "test",
537
+ label: h("botlit.botDetail.nextSteps.test", "Test the bot"),
538
+ description: h("botlit.botDetail.nextSteps.testDesc", "Send a message to check the experience end to end."),
539
+ icon: /* @__PURE__ */ S(E, { size: 16 }),
540
+ onClick: () => {
541
+ let e = F?.defaultAgentId;
542
+ j(e ? `agents/${e}/test` : "chat");
543
+ }
544
+ },
545
+ {
546
+ id: "activate",
547
+ label: h("botlit.botDetail.nextSteps.activate", "Activate the bot"),
548
+ description: h("botlit.botDetail.nextSteps.activateDesc", "Make it live so it starts handling conversations."),
549
+ icon: /* @__PURE__ */ S(Be, { size: 16 }),
550
+ onClick: () => j(`bots/${v}/edit`),
551
+ done: F.status === "ACTIVE"
541
552
  }
542
- },
543
- {
544
- id: "activate",
545
- label: h("botlit.botDetail.nextSteps.activate", "Activate the bot"),
546
- description: h("botlit.botDetail.nextSteps.activateDesc", "Make it live so it starts handling conversations."),
547
- icon: /* @__PURE__ */ S(k, { size: 16 }),
548
- onClick: () => P(`bots/${v}/edit`),
549
- done: R.status === "ACTIVE"
550
- }
551
- ]
552
- }), /* @__PURE__ */ C("div", {
553
- className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
554
- children: [
555
- /* @__PURE__ */ C(n, { children: [/* @__PURE__ */ S(i, { children: /* @__PURE__ */ S(a, { children: "Details" }) }), /* @__PURE__ */ C(r, {
556
- className: "space-y-4",
557
- children: [
558
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
559
- className: "text-sm text-text-secondary",
560
- children: "Status"
561
- }), /* @__PURE__ */ S(c, { status: R.status })] }),
562
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
563
- className: "text-sm text-text-secondary",
564
- children: "Visibility"
565
- }), /* @__PURE__ */ S(s, {
566
- variant: "outline",
567
- children: R.visibility
568
- })] }),
569
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
570
- className: "text-sm text-text-secondary",
571
- children: "Routing Strategy"
572
- }), /* @__PURE__ */ S(s, {
573
- variant: "outline",
574
- children: R.routingStrategy
575
- })] }),
576
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
577
- className: "text-sm text-text-secondary",
578
- children: "Default Agent"
579
- }), /* @__PURE__ */ S("p", {
580
- className: "font-medium",
581
- children: R.defaultAgentId ? "1 agent assigned" : "No agents"
582
- })] }),
583
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
584
- className: "text-sm text-text-secondary",
585
- children: "Channels"
586
- }), /* @__PURE__ */ S("p", {
587
- className: "font-medium",
588
- children: "0 channels"
589
- })] }),
590
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
591
- className: "text-sm text-text-secondary",
592
- children: "Created"
593
- }), /* @__PURE__ */ S("p", {
594
- className: "font-medium",
595
- children: fe(R.createdAt)
596
- })] }),
597
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
598
- className: "text-sm text-text-secondary",
599
- children: "Executions"
600
- }), /* @__PURE__ */ S("p", {
601
- className: "font-medium",
602
- children: de(R.executionCount)
603
- })] })
604
- ]
605
- })] }),
606
- /* @__PURE__ */ C(Ee, {
607
- treatment: "glass",
608
- glow: !0,
609
- className: "lg:col-span-2 p-6",
610
- children: [/* @__PURE__ */ C("div", {
611
- className: "mb-4 flex flex-row items-center justify-between",
612
- children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h3", {
613
- className: "text-lg font-semibold tracking-tight text-text-primary",
614
- children: "Default Agent"
615
- }), /* @__PURE__ */ S("p", {
616
- className: "text-sm text-text-secondary",
617
- children: "Agent configured for this bot"
618
- })] }), /* @__PURE__ */ S(o, {
619
- size: "sm",
620
- variant: "outline",
621
- onClick: () => W("agents"),
622
- children: "Manage"
623
- })]
624
- }), /* @__PURE__ */ S("div", { children: $ ? /* @__PURE__ */ S("div", {
625
- className: "space-y-3",
626
- children: /* @__PURE__ */ C(ke, {
627
- to: F(`agents/${$.id}`),
628
- className: "flex items-center justify-between p-3 rounded-lg border border-border-subtle hover:bg-accent transition-colors",
629
- children: [/* @__PURE__ */ C("div", {
630
- className: "flex items-center gap-3",
631
- children: [/* @__PURE__ */ S("span", {
632
- className: "text-2xl",
633
- children: "🤖"
634
- }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
635
- className: "font-medium text-text-primary",
636
- children: $.name
637
- }), /* @__PURE__ */ S("p", {
638
- className: "text-xs text-text-secondary",
639
- children: "Default Agent"
640
- })] })]
641
- }), /* @__PURE__ */ S(c, { status: $.status })]
642
- })
643
- }) : /* @__PURE__ */ C("div", {
644
- className: "text-center py-8 text-text-secondary",
553
+ ]
554
+ }),
555
+ /* @__PURE__ */ S(Te, {
556
+ kind: "bot",
557
+ id: v
558
+ }),
559
+ /* @__PURE__ */ C("div", {
560
+ className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
561
+ children: [
562
+ /* @__PURE__ */ C(n, { children: [/* @__PURE__ */ S(i, { children: /* @__PURE__ */ S(a, { children: "Details" }) }), /* @__PURE__ */ C(r, {
563
+ className: "space-y-4",
645
564
  children: [
646
- /* @__PURE__ */ S(T, { className: "h-8 w-8 mx-auto mb-2 opacity-50" }),
647
- /* @__PURE__ */ S("p", { children: "No default agent assigned" }),
648
- /* @__PURE__ */ S(o, {
565
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
566
+ className: "text-sm text-text-secondary",
567
+ children: "Status"
568
+ }), /* @__PURE__ */ S(c, { status: F.status })] }),
569
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
570
+ className: "text-sm text-text-secondary",
571
+ children: "Visibility"
572
+ }), /* @__PURE__ */ S(s, {
573
+ variant: "outline",
574
+ children: F.visibility
575
+ })] }),
576
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
577
+ className: "text-sm text-text-secondary",
578
+ children: "Routing Strategy"
579
+ }), /* @__PURE__ */ S(s, {
580
+ variant: "outline",
581
+ children: F.routingStrategy
582
+ })] }),
583
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
584
+ className: "text-sm text-text-secondary",
585
+ children: "Default Agent"
586
+ }), /* @__PURE__ */ S("p", {
587
+ className: "font-medium",
588
+ children: F.defaultAgentId ? "1 agent assigned" : "No agents"
589
+ })] }),
590
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
591
+ className: "text-sm text-text-secondary",
592
+ children: "Channels"
593
+ }), /* @__PURE__ */ S("p", {
594
+ className: "font-medium",
595
+ children: "0 channels"
596
+ })] }),
597
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
598
+ className: "text-sm text-text-secondary",
599
+ children: "Created"
600
+ }), /* @__PURE__ */ S("p", {
601
+ className: "font-medium",
602
+ children: fe(F.createdAt)
603
+ })] }),
604
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
605
+ className: "text-sm text-text-secondary",
606
+ children: "Executions"
607
+ }), /* @__PURE__ */ S("p", {
608
+ className: "font-medium",
609
+ children: de(F.executionCount)
610
+ })] })
611
+ ]
612
+ })] }),
613
+ /* @__PURE__ */ C(De, {
614
+ treatment: "glass",
615
+ glow: !0,
616
+ className: "lg:col-span-2 p-6",
617
+ children: [/* @__PURE__ */ C("div", {
618
+ className: "mb-4 flex flex-row items-center justify-between",
619
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h3", {
620
+ className: "text-lg font-semibold tracking-tight text-text-primary",
621
+ children: "Default Agent"
622
+ }), /* @__PURE__ */ S("p", {
623
+ className: "text-sm text-text-secondary",
624
+ children: "Agent configured for this bot"
625
+ })] }), /* @__PURE__ */ S(o, {
649
626
  size: "sm",
650
- className: "mt-3",
651
- onClick: () => W("agents"),
652
- children: "Assign Agent"
627
+ variant: "outline",
628
+ onClick: () => H("agents"),
629
+ children: "Manage"
630
+ })]
631
+ }), /* @__PURE__ */ S("div", { children: $ ? /* @__PURE__ */ S("div", {
632
+ className: "space-y-3",
633
+ children: /* @__PURE__ */ C(Ae, {
634
+ to: M(`agents/${$.id}`),
635
+ className: "flex items-center justify-between p-3 rounded-lg border border-border-subtle hover:bg-accent transition-colors",
636
+ children: [/* @__PURE__ */ C("div", {
637
+ className: "flex items-center gap-3",
638
+ children: [/* @__PURE__ */ S("span", {
639
+ className: "text-2xl",
640
+ children: "🤖"
641
+ }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
642
+ className: "font-medium text-text-primary",
643
+ children: $.name
644
+ }), /* @__PURE__ */ S("p", {
645
+ className: "text-xs text-text-secondary",
646
+ children: "Default Agent"
647
+ })] })]
648
+ }), /* @__PURE__ */ S(c, { status: $.status })]
653
649
  })
654
- ]
655
- }) })]
656
- }),
657
- /* @__PURE__ */ C(n, {
658
- className: "lg:col-span-3",
659
- children: [/* @__PURE__ */ S(i, { children: /* @__PURE__ */ S(a, { children: "Tags" }) }), /* @__PURE__ */ S(r, { children: /* @__PURE__ */ S(we, {
660
- entityType: "BotmanorApp",
661
- entityId: R.id,
662
- tags: R.tags,
663
- editable: N(l.APP_UPDATE),
664
- onSave: async (e) => {
665
- v && (await H({
666
- botId: v,
667
- input: { tags: e }
668
- }), await B());
669
- }
670
- }) })]
671
- })
672
- ]
673
- })]
650
+ }) : /* @__PURE__ */ C("div", {
651
+ className: "text-center py-8 text-text-secondary",
652
+ children: [
653
+ /* @__PURE__ */ S(T, { className: "h-8 w-8 mx-auto mb-2 opacity-50" }),
654
+ /* @__PURE__ */ S("p", { children: "No default agent assigned" }),
655
+ /* @__PURE__ */ S(o, {
656
+ size: "sm",
657
+ className: "mt-3",
658
+ onClick: () => H("agents"),
659
+ children: "Assign Agent"
660
+ })
661
+ ]
662
+ }) })]
663
+ }),
664
+ /* @__PURE__ */ C(n, {
665
+ className: "lg:col-span-3",
666
+ children: [/* @__PURE__ */ S(i, { children: /* @__PURE__ */ S(a, { children: "Tags" }) }), /* @__PURE__ */ S(r, { children: /* @__PURE__ */ S(we, {
667
+ entityType: "BotmanorApp",
668
+ entityId: F.id,
669
+ tags: F.tags,
670
+ editable: A(l.APP_UPDATE),
671
+ onSave: async (e) => {
672
+ v && (await z({
673
+ botId: v,
674
+ input: { tags: e }
675
+ }), await L());
676
+ }
677
+ }) })]
678
+ })
679
+ ]
680
+ })
681
+ ]
674
682
  }),
675
- U === "workflow" && v && /* @__PURE__ */ S(Te, {
683
+ V === "workflow" && v && /* @__PURE__ */ S(Ee, {
676
684
  fallback: /* @__PURE__ */ S("div", { className: "h-64 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" }),
677
- children: /* @__PURE__ */ S(ze, {
685
+ children: /* @__PURE__ */ S(Ue, {
678
686
  botId: v,
679
- botName: R.name,
680
- workflowId: R.workflowId,
687
+ botName: F.name,
688
+ workflowId: F.workflowId,
681
689
  onWorkflowChanged: async () => {
682
- await B();
690
+ await L();
683
691
  }
684
692
  })
685
693
  }),
686
- U === "routing" && v && /* @__PURE__ */ S(ye, {
694
+ V === "routing" && v && /* @__PURE__ */ S(ye, {
687
695
  botId: v,
688
- routingStrategy: R.routingStrategy,
696
+ routingStrategy: F.routingStrategy,
689
697
  defaultAgentName: $?.name,
690
698
  agents: Q,
691
- onManage: () => W("agents")
699
+ onManage: () => H("agents")
692
700
  }),
693
- U === "agents" && v && /* @__PURE__ */ S(ve, {
701
+ V === "agents" && v && /* @__PURE__ */ S(ve, {
694
702
  botId: v,
695
- defaultAgentId: R.defaultAgentId,
703
+ defaultAgentId: F.defaultAgentId,
696
704
  agents: Q,
697
705
  onDefaultAgentChange: async (e) => {
698
- await H({
706
+ await z({
699
707
  botId: v,
700
708
  input: { defaultAgentId: e }
701
- }), await B();
709
+ }), await L();
702
710
  }
703
711
  }),
704
- U === "channels" && v && /* @__PURE__ */ S(_e, {
712
+ V === "channels" && v && /* @__PURE__ */ S(_e, {
705
713
  botId: v,
706
- botName: R.name
714
+ botName: F.name
707
715
  }),
708
- U === "aiOperations" && v && /* @__PURE__ */ S(ee, {
716
+ V === "aiOperations" && v && /* @__PURE__ */ S(ee, {
709
717
  filter: {
710
718
  subjectType: "APP",
711
719
  subjectId: v
712
720
  },
713
721
  description: h("botlit.botDetail.aiOperationsDescription", "What the supervisor flagged for this bot — drift, evidence and the recommended action.")
714
722
  }),
715
- U === "guardrails" && /* @__PURE__ */ S(xe, { subject: "bot" }),
716
- U === "releases" && v && /* @__PURE__ */ S(be, {
723
+ V === "guardrails" && /* @__PURE__ */ S(xe, { subject: "bot" }),
724
+ V === "releases" && v && /* @__PURE__ */ S(be, {
717
725
  botId: v,
718
- onChanged: () => void B()
726
+ onChanged: () => void L()
719
727
  })
720
728
  ]
721
729
  })
722
730
  });
723
731
  };
724
- export { L as BotDetailPage };
732
+ export { P as BotDetailPage };
725
733
 
726
734
  //# sourceMappingURL=BotDetailPage.js.map