@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-32R7DYFL.mjs";
|
|
4
4
|
import "./chunk-ONQMRE2G.mjs";
|
|
5
5
|
import "./chunk-W2EPDR5G.mjs";
|
|
6
6
|
import "./chunk-BN3D45E2.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-QOF3GSGB.mjs.map
|
|
@@ -1905,12 +1905,17 @@ var RateLimitPrompt = () => {
|
|
|
1905
1905
|
navigate = null;
|
|
1906
1906
|
}
|
|
1907
1907
|
const safeNavigate = (to) => {
|
|
1908
|
+
if (typeof window !== "undefined" && /^https?:\/\//.test(to)) {
|
|
1909
|
+
window.location.href = to;
|
|
1910
|
+
return;
|
|
1911
|
+
}
|
|
1908
1912
|
if (navigate) {
|
|
1909
1913
|
navigate(to);
|
|
1910
1914
|
} else if (typeof window !== "undefined") {
|
|
1911
1915
|
window.location.href = to;
|
|
1912
1916
|
}
|
|
1913
1917
|
};
|
|
1918
|
+
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";
|
|
1914
1919
|
if (!prompt) {
|
|
1915
1920
|
return null;
|
|
1916
1921
|
}
|
|
@@ -1970,7 +1975,7 @@ var RateLimitPrompt = () => {
|
|
|
1970
1975
|
startIcon: /* @__PURE__ */ jsx10(AutoAwesomeIcon, { sx: { fontSize: "0.9rem" } }),
|
|
1971
1976
|
onClick: () => {
|
|
1972
1977
|
dismiss();
|
|
1973
|
-
safeNavigate(
|
|
1978
|
+
safeNavigate(plansUrl);
|
|
1974
1979
|
},
|
|
1975
1980
|
sx: { textTransform: "none", fontWeight: 600, borderRadius: 2 },
|
|
1976
1981
|
children: "Upgrade to keep chatting"
|
|
@@ -8240,6 +8245,10 @@ var ChatAppBar = ({
|
|
|
8240
8245
|
navigate = null;
|
|
8241
8246
|
}
|
|
8242
8247
|
const safeNavigate = (to) => {
|
|
8248
|
+
if (typeof window !== "undefined" && /^https?:\/\//.test(to)) {
|
|
8249
|
+
window.location.href = to;
|
|
8250
|
+
return;
|
|
8251
|
+
}
|
|
8243
8252
|
if (navigate) {
|
|
8244
8253
|
navigate(to);
|
|
8245
8254
|
} else if (typeof window !== "undefined") {
|
|
@@ -8352,7 +8361,7 @@ var ChatAppBar = ({
|
|
|
8352
8361
|
const tier = String(getCurrentTier());
|
|
8353
8362
|
return tier !== "trial" && tier !== "expired" && tier !== "free" && tier !== "basic";
|
|
8354
8363
|
})();
|
|
8355
|
-
const plansPath = "/plans";
|
|
8364
|
+
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";
|
|
8356
8365
|
const isTTSAvailable = !!packageSettings?.gatewayApiUrl && preferences.ttsEnabled && hasTTS();
|
|
8357
8366
|
const currentConversation = conversations.find((c) => c.id === currentId);
|
|
8358
8367
|
const conversationCountDisplay = conversations.length > 99 ? "99+" : conversations.length.toString();
|
|
@@ -10954,4 +10963,4 @@ var chat_default = Chat;
|
|
|
10954
10963
|
export {
|
|
10955
10964
|
chat_default
|
|
10956
10965
|
};
|
|
10957
|
-
//# sourceMappingURL=chunk-
|
|
10966
|
+
//# sourceMappingURL=chunk-32R7DYFL.mjs.map
|