@burdenoff/microfe-botmanor 2026.1119.3 → 2026.1119.4

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