@burtson-labs/bandit-engine 2.0.82 → 2.0.84
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.
- package/dist/{chat-WYUPU7KD.mjs → chat-OY5CLOBW.mjs} +2 -2
- package/dist/{chunk-ZMXWFP65.mjs → chunk-3QYZOCIW.mjs} +2 -2
- package/dist/{chunk-NB3N4BKW.mjs → chunk-RVKERD5O.mjs} +30 -10
- package/dist/chunk-RVKERD5O.mjs.map +1 -0
- package/dist/index.js +30 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/management/management.js +30 -10
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-NB3N4BKW.mjs.map +0 -1
- /package/dist/{chat-WYUPU7KD.mjs.map → chat-OY5CLOBW.mjs.map} +0 -0
- /package/dist/{chunk-ZMXWFP65.mjs.map → chunk-3QYZOCIW.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RVKERD5O.mjs";
|
|
4
4
|
import "./chunk-ONQMRE2G.mjs";
|
|
5
5
|
import "./chunk-YYYEMVBV.mjs";
|
|
6
6
|
import "./chunk-3LT77723.mjs";
|
|
@@ -13,4 +13,4 @@ import "./chunk-BJTO5JO5.mjs";
|
|
|
13
13
|
export {
|
|
14
14
|
chat_default as default
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=chat-
|
|
16
|
+
//# sourceMappingURL=chat-OY5CLOBW.mjs.map
|
|
@@ -9741,7 +9741,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
|
|
|
9741
9741
|
|
|
9742
9742
|
// src/management/management.tsx
|
|
9743
9743
|
import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
9744
|
-
var preloadChatPage = () => import("./chat-
|
|
9744
|
+
var preloadChatPage = () => import("./chat-OY5CLOBW.mjs");
|
|
9745
9745
|
var buildCapabilitiesUrl = (gatewayApiUrl) => {
|
|
9746
9746
|
const trimmed = gatewayApiUrl.replace(/\/$/, "");
|
|
9747
9747
|
if (trimmed.endsWith("/api")) {
|
|
@@ -11107,4 +11107,4 @@ export {
|
|
|
11107
11107
|
useGatewayMemory,
|
|
11108
11108
|
management_default
|
|
11109
11109
|
};
|
|
11110
|
-
//# sourceMappingURL=chunk-
|
|
11110
|
+
//# sourceMappingURL=chunk-3QYZOCIW.mjs.map
|
|
@@ -271,6 +271,17 @@ var parseWebSources = (content) => {
|
|
|
271
271
|
const seen = /* @__PURE__ */ new Set();
|
|
272
272
|
return out.filter((s) => seen.has(s.url) ? false : (seen.add(s.url), true));
|
|
273
273
|
};
|
|
274
|
+
var stripSourcesForDisplay = (content) => {
|
|
275
|
+
if (!content) return content;
|
|
276
|
+
let c = content;
|
|
277
|
+
const idx = c.lastIndexOf("**Sources**");
|
|
278
|
+
if (idx !== -1) c = c.slice(0, idx);
|
|
279
|
+
c = c.replace(
|
|
280
|
+
/\n*(?:---|\*\*\*|___)[ \t]*\n[\s\S]*$/u,
|
|
281
|
+
(m) => /[¹²³⁴⁵⁶⁷⁸⁹⁰]/u.test(m) && /\]\(https?:/i.test(m) ? "" : m
|
|
282
|
+
);
|
|
283
|
+
return c.replace(/\s+$/u, "");
|
|
284
|
+
};
|
|
274
285
|
var domainOf = (url) => {
|
|
275
286
|
try {
|
|
276
287
|
return new URL(url).hostname.replace(/^www\./, "");
|
|
@@ -457,7 +468,7 @@ var ChatMessages = ({
|
|
|
457
468
|
/* @__PURE__ */ jsx5(
|
|
458
469
|
StreamingMarkdown_default,
|
|
459
470
|
{
|
|
460
|
-
content,
|
|
471
|
+
content: isStreaming && isLast ? content : stripSourcesForDisplay(content),
|
|
461
472
|
isStreaming: isStreaming && isLast,
|
|
462
473
|
sources: sourceSummaries
|
|
463
474
|
}
|
|
@@ -3818,7 +3829,7 @@ ${r.output}`).join("\n\n");
|
|
|
3818
3829
|
${toolResultsText}
|
|
3819
3830
|
===END TOOL RESULTS===
|
|
3820
3831
|
|
|
3821
|
-
Use them to fully complete my original request. If you still need to take an action I asked for (for example, actually create a file I want to download), call the appropriate tool now with a \`\`\`tool_code\`\`\` block. Otherwise give your final answer. Do NOT add a
|
|
3832
|
+
Use them to fully complete my original request. If you still need to take an action I asked for (for example, actually create a file I want to download), call the appropriate tool now with a \`\`\`tool_code\`\`\` block. Otherwise give your final answer. Do NOT add citations, footnotes, superscript reference numbers (e.g. \xB9 \xB2 \xB3), or a Sources/References/Citations list \u2014 the sources are attached automatically below your answer. Just write the answer naturally.`
|
|
3822
3833
|
}
|
|
3823
3834
|
];
|
|
3824
3835
|
const streamTurn = (req) => new Promise((resolve) => {
|
|
@@ -3964,7 +3975,7 @@ That step failed: ${e instanceof Error ? e.message : String(e)}`);
|
|
|
3964
3975
|
${roundOut.join("\n\n")}
|
|
3965
3976
|
===END TOOL RESULTS===
|
|
3966
3977
|
|
|
3967
|
-
Now give your final answer to my original request, or call another tool if you still genuinely need to. Do NOT add a
|
|
3978
|
+
Now give your final answer to my original request, or call another tool if you still genuinely need to. Do NOT add citations, footnotes, superscript reference numbers, or a Sources list \u2014 sources are attached automatically.`
|
|
3968
3979
|
});
|
|
3969
3980
|
}
|
|
3970
3981
|
setIsThinking?.(false);
|
|
@@ -6576,8 +6587,8 @@ var ConversationDrawer = ({ open, onClose }) => {
|
|
|
6576
6587
|
flex: 1,
|
|
6577
6588
|
display: "flex",
|
|
6578
6589
|
flexDirection: "column",
|
|
6579
|
-
alignItems:
|
|
6580
|
-
textAlign:
|
|
6590
|
+
alignItems: "flex-start",
|
|
6591
|
+
textAlign: "left",
|
|
6581
6592
|
gap: 0.25
|
|
6582
6593
|
},
|
|
6583
6594
|
children: [
|
|
@@ -6603,11 +6614,20 @@ var ConversationDrawer = ({ open, onClose }) => {
|
|
|
6603
6614
|
}
|
|
6604
6615
|
),
|
|
6605
6616
|
user && /* @__PURE__ */ jsx13(
|
|
6606
|
-
|
|
6617
|
+
Box10,
|
|
6607
6618
|
{
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6619
|
+
sx: {
|
|
6620
|
+
flexShrink: 0,
|
|
6621
|
+
display: "flex",
|
|
6622
|
+
alignItems: "center",
|
|
6623
|
+
justifyContent: "center",
|
|
6624
|
+
width: 30,
|
|
6625
|
+
height: 30,
|
|
6626
|
+
borderRadius: "50%",
|
|
6627
|
+
border: `1px solid ${alpha6(theme.palette.divider, 0.8)}`,
|
|
6628
|
+
color: theme.palette.text.secondary
|
|
6629
|
+
},
|
|
6630
|
+
children: /* @__PURE__ */ jsx13(SettingsIcon2, { size: 16 })
|
|
6611
6631
|
}
|
|
6612
6632
|
)
|
|
6613
6633
|
]
|
|
@@ -10295,4 +10315,4 @@ var chat_default = Chat;
|
|
|
10295
10315
|
export {
|
|
10296
10316
|
chat_default
|
|
10297
10317
|
};
|
|
10298
|
-
//# sourceMappingURL=chunk-
|
|
10318
|
+
//# sourceMappingURL=chunk-RVKERD5O.mjs.map
|