@burtson-labs/bandit-engine 2.0.117 → 2.0.119

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  chat_default
3
- } from "./chunk-UEWOOLEB.mjs";
3
+ } from "./chunk-BD6R7MTV.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-J2WTUEBN.mjs.map
16
+ //# sourceMappingURL=chat-4EDI4BLO.mjs.map
@@ -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-J2WTUEBN.mjs");
9750
+ var preloadChatPage = () => import("./chat-4EDI4BLO.mjs");
9751
9751
  var buildCapabilitiesUrl = (gatewayApiUrl) => {
9752
9752
  const trimmed = gatewayApiUrl.replace(/\/$/, "");
9753
9753
  if (trimmed.endsWith("/api")) {
@@ -10591,7 +10591,9 @@ var Management = () => {
10591
10591
  "platform_admin"
10592
10592
  ]);
10593
10593
  const userRoles = (authenticationService.parseJwtClaims(authenticationService.getToken() ?? "")?.roles ?? []).map((r) => r.toLowerCase());
10594
- const isWorkspaceAdmin = userRoles.some((r) => platformAdminRoles.has(r));
10594
+ const isWorkspaceAdmin = userRoles.some(
10595
+ (r) => platformAdminRoles.has(r) || r.endsWith("-admin")
10596
+ );
10595
10597
  const navTabs = allNavTabs.filter((tab) => {
10596
10598
  if (tab.requiresAdmin && !isWorkspaceAdmin) return false;
10597
10599
  if (tab.requiresFeature === "limitedAdminDashboard") {
@@ -11090,4 +11092,4 @@ export {
11090
11092
  useGatewayMemory,
11091
11093
  management_default
11092
11094
  };
11093
- //# sourceMappingURL=chunk-3JR3GT5F.mjs.map
11095
+ //# sourceMappingURL=chunk-3TXU5SOO.mjs.map