@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
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-32R7DYFL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
chat_provider_default
|
|
6
6
|
} from "./chunk-VTKRZNLI.mjs";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
useGatewayHealth,
|
|
11
11
|
useGatewayMemory,
|
|
12
12
|
useGatewayModels
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CVBR7PUH.mjs";
|
|
14
14
|
import "./chunk-W2EPDR5G.mjs";
|
|
15
15
|
import "./chunk-HAUDGBUS.mjs";
|
|
16
16
|
import "./chunk-BN3D45E2.mjs";
|
|
@@ -21950,12 +21950,17 @@ var init_rate_limit_prompt = __esm({
|
|
|
21950
21950
|
navigate = null;
|
|
21951
21951
|
}
|
|
21952
21952
|
const safeNavigate = (to) => {
|
|
21953
|
+
if (typeof window !== "undefined" && /^https?:\/\//.test(to)) {
|
|
21954
|
+
window.location.href = to;
|
|
21955
|
+
return;
|
|
21956
|
+
}
|
|
21953
21957
|
if (navigate) {
|
|
21954
21958
|
navigate(to);
|
|
21955
21959
|
} else if (typeof window !== "undefined") {
|
|
21956
21960
|
window.location.href = to;
|
|
21957
21961
|
}
|
|
21958
21962
|
};
|
|
21963
|
+
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";
|
|
21959
21964
|
if (!prompt) {
|
|
21960
21965
|
return null;
|
|
21961
21966
|
}
|
|
@@ -22015,7 +22020,7 @@ var init_rate_limit_prompt = __esm({
|
|
|
22015
22020
|
startIcon: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AutoAwesomeIcon, { sx: { fontSize: "0.9rem" } }),
|
|
22016
22021
|
onClick: () => {
|
|
22017
22022
|
dismiss();
|
|
22018
|
-
safeNavigate(
|
|
22023
|
+
safeNavigate(plansUrl);
|
|
22019
22024
|
},
|
|
22020
22025
|
sx: { textTransform: "none", fontWeight: 600, borderRadius: 2 },
|
|
22021
22026
|
children: "Upgrade to keep chatting"
|
|
@@ -28358,6 +28363,10 @@ var init_chat_app_bar = __esm({
|
|
|
28358
28363
|
navigate = null;
|
|
28359
28364
|
}
|
|
28360
28365
|
const safeNavigate = (to) => {
|
|
28366
|
+
if (typeof window !== "undefined" && /^https?:\/\//.test(to)) {
|
|
28367
|
+
window.location.href = to;
|
|
28368
|
+
return;
|
|
28369
|
+
}
|
|
28361
28370
|
if (navigate) {
|
|
28362
28371
|
navigate(to);
|
|
28363
28372
|
} else if (typeof window !== "undefined") {
|
|
@@ -28470,7 +28479,7 @@ var init_chat_app_bar = __esm({
|
|
|
28470
28479
|
const tier = String(getCurrentTier());
|
|
28471
28480
|
return tier !== "trial" && tier !== "expired" && tier !== "free" && tier !== "basic";
|
|
28472
28481
|
})();
|
|
28473
|
-
const plansPath = "/plans";
|
|
28482
|
+
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";
|
|
28474
28483
|
const isTTSAvailable = !!packageSettings?.gatewayApiUrl && preferences.ttsEnabled && hasTTS();
|
|
28475
28484
|
const currentConversation = conversations.find((c) => c.id === currentId);
|
|
28476
28485
|
const conversationCountDisplay = conversations.length > 99 ? "99+" : conversations.length.toString();
|