@burtson-labs/bandit-engine 2.0.119 → 2.0.120
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-4EDI4BLO.mjs → chat-QOF3GSGB.mjs} +2 -2
- package/dist/{chunk-BD6R7MTV.mjs → chunk-32R7DYFL.mjs} +12 -3
- package/dist/chunk-32R7DYFL.mjs.map +1 -0
- package/dist/{chunk-3TXU5SOO.mjs → chunk-CVBR7PUH.mjs} +2 -2
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/management/management.js +11 -2
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-BD6R7MTV.mjs.map +0 -1
- /package/dist/{chat-4EDI4BLO.mjs.map → chat-QOF3GSGB.mjs.map} +0 -0
- /package/dist/{chunk-3TXU5SOO.mjs.map → chunk-CVBR7PUH.mjs.map} +0 -0
|
@@ -9747,7 +9747,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
|
|
|
9747
9747
|
|
|
9748
9748
|
// src/management/management.tsx
|
|
9749
9749
|
import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
9750
|
-
var preloadChatPage = () => import("./chat-
|
|
9750
|
+
var preloadChatPage = () => import("./chat-QOF3GSGB.mjs");
|
|
9751
9751
|
var buildCapabilitiesUrl = (gatewayApiUrl) => {
|
|
9752
9752
|
const trimmed = gatewayApiUrl.replace(/\/$/, "");
|
|
9753
9753
|
if (trimmed.endsWith("/api")) {
|
|
@@ -11092,4 +11092,4 @@ export {
|
|
|
11092
11092
|
useGatewayMemory,
|
|
11093
11093
|
management_default
|
|
11094
11094
|
};
|
|
11095
|
-
//# sourceMappingURL=chunk-
|
|
11095
|
+
//# sourceMappingURL=chunk-CVBR7PUH.mjs.map
|
package/dist/index.js
CHANGED
|
@@ -19711,12 +19711,17 @@ var init_rate_limit_prompt = __esm({
|
|
|
19711
19711
|
navigate = null;
|
|
19712
19712
|
}
|
|
19713
19713
|
const safeNavigate = (to) => {
|
|
19714
|
+
if (typeof window !== "undefined" && /^https?:\/\//.test(to)) {
|
|
19715
|
+
window.location.href = to;
|
|
19716
|
+
return;
|
|
19717
|
+
}
|
|
19714
19718
|
if (navigate) {
|
|
19715
19719
|
navigate(to);
|
|
19716
19720
|
} else if (typeof window !== "undefined") {
|
|
19717
19721
|
window.location.href = to;
|
|
19718
19722
|
}
|
|
19719
19723
|
};
|
|
19724
|
+
const plansUrl = typeof window !== "undefined" && !(window.location.hostname === "banditailabs.com" || window.location.hostname.endsWith(".banditailabs.com") || window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") ? "https://banditailabs.com/plans" : "/plans";
|
|
19720
19725
|
if (!prompt) {
|
|
19721
19726
|
return null;
|
|
19722
19727
|
}
|
|
@@ -19776,7 +19781,7 @@ var init_rate_limit_prompt = __esm({
|
|
|
19776
19781
|
startIcon: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(AutoAwesomeIcon, { sx: { fontSize: "0.9rem" } }),
|
|
19777
19782
|
onClick: () => {
|
|
19778
19783
|
dismiss();
|
|
19779
|
-
safeNavigate(
|
|
19784
|
+
safeNavigate(plansUrl);
|
|
19780
19785
|
},
|
|
19781
19786
|
sx: { textTransform: "none", fontWeight: 600, borderRadius: 2 },
|
|
19782
19787
|
children: "Upgrade to keep chatting"
|
|
@@ -26119,6 +26124,10 @@ var init_chat_app_bar = __esm({
|
|
|
26119
26124
|
navigate = null;
|
|
26120
26125
|
}
|
|
26121
26126
|
const safeNavigate = (to) => {
|
|
26127
|
+
if (typeof window !== "undefined" && /^https?:\/\//.test(to)) {
|
|
26128
|
+
window.location.href = to;
|
|
26129
|
+
return;
|
|
26130
|
+
}
|
|
26122
26131
|
if (navigate) {
|
|
26123
26132
|
navigate(to);
|
|
26124
26133
|
} else if (typeof window !== "undefined") {
|
|
@@ -26231,7 +26240,7 @@ var init_chat_app_bar = __esm({
|
|
|
26231
26240
|
const tier = String(getCurrentTier());
|
|
26232
26241
|
return tier !== "trial" && tier !== "expired" && tier !== "free" && tier !== "basic";
|
|
26233
26242
|
})();
|
|
26234
|
-
const plansPath = "/plans";
|
|
26243
|
+
const plansPath = typeof window !== "undefined" && !(window.location.hostname === "banditailabs.com" || window.location.hostname.endsWith(".banditailabs.com") || window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") ? "https://banditailabs.com/plans" : "/plans";
|
|
26235
26244
|
const isTTSAvailable = !!packageSettings?.gatewayApiUrl && preferences.ttsEnabled && hasTTS();
|
|
26236
26245
|
const currentConversation = conversations.find((c) => c.id === currentId);
|
|
26237
26246
|
const conversationCountDisplay = conversations.length > 99 ? "99+" : conversations.length.toString();
|