@burtson-labs/bandit-engine 2.0.116 → 2.0.118
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-J2WTUEBN.mjs → chat-RGXA26FO.mjs} +2 -2
- package/dist/{chunk-UEWOOLEB.mjs → chunk-RBMHAWU7.mjs} +63 -7
- package/dist/chunk-RBMHAWU7.mjs.map +1 -0
- package/dist/{chunk-NO5FRJUX.mjs → chunk-YLETAU5Y.mjs} +6 -7
- package/dist/chunk-YLETAU5Y.mjs.map +1 -0
- package/dist/index.js +65 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/management/management.js +65 -11
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +1 -1
- package/docs/package-settings.md +37 -0
- package/package.json +1 -1
- package/dist/chunk-NO5FRJUX.mjs.map +0 -1
- package/dist/chunk-UEWOOLEB.mjs.map +0 -1
- /package/dist/{chat-J2WTUEBN.mjs.map → chat-RGXA26FO.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-RGXA26FO.mjs");
|
|
9751
9751
|
var buildCapabilitiesUrl = (gatewayApiUrl) => {
|
|
9752
9752
|
const trimmed = gatewayApiUrl.replace(/\/$/, "");
|
|
9753
9753
|
if (trimmed.endsWith("/api")) {
|
|
@@ -10588,13 +10588,12 @@ var Management = () => {
|
|
|
10588
10588
|
];
|
|
10589
10589
|
const platformAdminRoles = /* @__PURE__ */ new Set([
|
|
10590
10590
|
"admin",
|
|
10591
|
-
"
|
|
10592
|
-
"superuser",
|
|
10593
|
-
"platform_admin",
|
|
10594
|
-
"super_admin"
|
|
10591
|
+
"platform_admin"
|
|
10595
10592
|
]);
|
|
10596
10593
|
const userRoles = (authenticationService.parseJwtClaims(authenticationService.getToken() ?? "")?.roles ?? []).map((r) => r.toLowerCase());
|
|
10597
|
-
const isWorkspaceAdmin = userRoles.some(
|
|
10594
|
+
const isWorkspaceAdmin = userRoles.some(
|
|
10595
|
+
(r) => platformAdminRoles.has(r) || r.endsWith("-admin")
|
|
10596
|
+
);
|
|
10598
10597
|
const navTabs = allNavTabs.filter((tab) => {
|
|
10599
10598
|
if (tab.requiresAdmin && !isWorkspaceAdmin) return false;
|
|
10600
10599
|
if (tab.requiresFeature === "limitedAdminDashboard") {
|
|
@@ -11093,4 +11092,4 @@ export {
|
|
|
11093
11092
|
useGatewayMemory,
|
|
11094
11093
|
management_default
|
|
11095
11094
|
};
|
|
11096
|
-
//# sourceMappingURL=chunk-
|
|
11095
|
+
//# sourceMappingURL=chunk-YLETAU5Y.mjs.map
|