@burtson-labs/bandit-engine 2.0.128 → 2.0.130

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.
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  management_default
3
- } from "../chunk-QDTMVQWD.mjs";
4
- import "../chunk-FWFDOSRM.mjs";
3
+ } from "../chunk-R7LKVTK7.mjs";
4
+ import "../chunk-BVYSGIWG.mjs";
5
5
  import "../chunk-F7JXIW6T.mjs";
6
6
  import "../chunk-K2JGFKEB.mjs";
7
- import "../chunk-N3TVVQVS.mjs";
8
- import "../chunk-BQW7DSJ6.mjs";
7
+ import "../chunk-PA4VYO4R.mjs";
8
+ import "../chunk-JONBKV2S.mjs";
9
9
  import "../chunk-NLBZZP3B.mjs";
10
10
  import "../chunk-EORIRPPX.mjs";
11
11
  import "../chunk-43MLINPL.mjs";
@@ -12771,7 +12771,8 @@ var AIResponseTextField = ({
12771
12771
  memoryUpdated,
12772
12772
  sourceFiles,
12773
12773
  isMobile = false,
12774
- cancelled = false
12774
+ cancelled = false,
12775
+ revealActionsOnHover = false
12775
12776
  }) => {
12776
12777
  (0, import_react14.useEffect)(() => {
12777
12778
  if (typeof response !== "string" && !import_react14.default.isValidElement(response)) {
@@ -13259,7 +13260,8 @@ ${sourcesMarkdownList.join("\n")}`;
13259
13260
  color: chatResponse.aiText || theme.palette.text.primary,
13260
13261
  px: isMobile ? 0.5 : 2,
13261
13262
  py: 1,
13262
- userSelect: "text"
13263
+ userSelect: "text",
13264
+ "&:hover .ai-response-actions": { opacity: 1 }
13263
13265
  },
13264
13266
  children: [
13265
13267
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material8.Box, { sx: { display: "flex", justifyContent: "flex-end", mb: 2.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_material8.Box, { sx: { maxWidth: { xs: "100%", sm: "85%" }, minWidth: 0 }, children: [
@@ -13359,7 +13361,18 @@ ${sourcesMarkdownList.join("\n")}`;
13359
13361
  }
13360
13362
  ) : import_react14.default.isValidElement(response) ? response : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material8.Typography, { color: "error", children: "\u26A0\uFE0F Invalid AI response" }) })
13361
13363
  ] }),
13362
- !!(responseText || typeof response === "string" && response) && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ai_response_action_bar_default, { text: responseText || response }),
13364
+ !!(responseText || typeof response === "string" && response) && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
13365
+ import_material8.Box,
13366
+ {
13367
+ className: "ai-response-actions",
13368
+ sx: revealActionsOnHover ? {
13369
+ opacity: 0,
13370
+ transition: "opacity 0.15s ease",
13371
+ "&:focus-within": { opacity: 1 }
13372
+ } : void 0,
13373
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ai_response_action_bar_default, { text: responseText || response })
13374
+ }
13375
+ ),
13363
13376
  displaySourceFiles && displaySourceFiles.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material8.Box, { sx: { mt: 1.5, display: "flex", gap: 2, flexWrap: "wrap", justifyContent: "flex-start" }, children: displaySourceFiles.map((doc, idx) => {
13364
13377
  debugLogger.debug("Rendering DocumentCard in AI response", {
13365
13378
  index: idx,