@burtson-labs/bandit-engine 2.0.164 → 2.0.165
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/aiProviderStore-M4BVEKUB.mjs +9 -0
- package/dist/chat-EMKHB23B.mjs +16 -0
- package/dist/chat-provider.js +11 -2
- package/dist/chat-provider.js.map +1 -1
- package/dist/chat-provider.mjs +7 -7
- package/dist/{chunk-TY5VL3SG.mjs → chunk-2EM4ATKI.mjs} +3 -3
- package/dist/{chunk-VBHI4TJC.mjs → chunk-6VDL4SLX.mjs} +6 -6
- package/dist/{chunk-IZX2J65Q.mjs → chunk-ASWUEAWM.mjs} +2 -2
- package/dist/{chunk-J6SWNO7Z.mjs → chunk-FEIDGXVR.mjs} +5 -5
- package/dist/{chunk-OCVZVBQQ.mjs → chunk-HNXPDIWC.mjs} +12 -3
- package/dist/chunk-HNXPDIWC.mjs.map +1 -0
- package/dist/{chunk-CQJGUYRW.mjs → chunk-J6LSSK3G.mjs} +2 -2
- package/dist/{chunk-5KBTOCQZ.mjs → chunk-LKGBO5OP.mjs} +4 -4
- package/dist/{chunk-O6P37PFR.mjs → chunk-NGGTQVGX.mjs} +4 -4
- package/dist/{chunk-URZSIL7X.mjs → chunk-QHGGV4KJ.mjs} +7 -7
- package/dist/{chunk-WLNZL6SP.mjs → chunk-RLW4RBIR.mjs} +6 -6
- package/dist/{chunk-WLNZL6SP.mjs.map → chunk-RLW4RBIR.mjs.map} +1 -1
- package/dist/{chunk-PNQRS5EN.mjs → chunk-RNCASZ2Y.mjs} +11 -11
- package/dist/{chunk-JYBQAKSZ.mjs → chunk-WSUUW7T2.mjs} +8 -8
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/management/management.js +12 -3
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +10 -10
- package/dist/modals/chat-modal/chat-modal.js +12 -3
- package/dist/modals/chat-modal/chat-modal.js.map +1 -1
- package/dist/modals/chat-modal/chat-modal.mjs +6 -6
- package/dist/modelStore-7YYELPF6.mjs +9 -0
- package/package.json +1 -1
- package/dist/aiProviderStore-PEGSX4PK.mjs +0 -9
- package/dist/chat-OSAVW6L2.mjs +0 -16
- package/dist/chunk-OCVZVBQQ.mjs.map +0 -1
- package/dist/modelStore-7XYYDCNC.mjs +0 -9
- /package/dist/{aiProviderStore-PEGSX4PK.mjs.map → aiProviderStore-M4BVEKUB.mjs.map} +0 -0
- /package/dist/{chat-OSAVW6L2.mjs.map → chat-EMKHB23B.mjs.map} +0 -0
- /package/dist/{chunk-TY5VL3SG.mjs.map → chunk-2EM4ATKI.mjs.map} +0 -0
- /package/dist/{chunk-VBHI4TJC.mjs.map → chunk-6VDL4SLX.mjs.map} +0 -0
- /package/dist/{chunk-IZX2J65Q.mjs.map → chunk-ASWUEAWM.mjs.map} +0 -0
- /package/dist/{chunk-J6SWNO7Z.mjs.map → chunk-FEIDGXVR.mjs.map} +0 -0
- /package/dist/{chunk-CQJGUYRW.mjs.map → chunk-J6LSSK3G.mjs.map} +0 -0
- /package/dist/{chunk-5KBTOCQZ.mjs.map → chunk-LKGBO5OP.mjs.map} +0 -0
- /package/dist/{chunk-O6P37PFR.mjs.map → chunk-NGGTQVGX.mjs.map} +0 -0
- /package/dist/{chunk-URZSIL7X.mjs.map → chunk-QHGGV4KJ.mjs.map} +0 -0
- /package/dist/{chunk-PNQRS5EN.mjs.map → chunk-RNCASZ2Y.mjs.map} +0 -0
- /package/dist/{chunk-JYBQAKSZ.mjs.map → chunk-WSUUW7T2.mjs.map} +0 -0
- /package/dist/{modelStore-7XYYDCNC.mjs.map → modelStore-7YYELPF6.mjs.map} +0 -0
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
StreamingMarkdown_default,
|
|
3
3
|
isNativeShell,
|
|
4
4
|
isStandalonePwa
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ASWUEAWM.mjs";
|
|
6
6
|
import {
|
|
7
7
|
aiProviderInitService
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LKGBO5OP.mjs";
|
|
9
9
|
import {
|
|
10
10
|
addMcpServer,
|
|
11
11
|
deleteMcpServer,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
listMcpServers,
|
|
14
14
|
updateMcpServer,
|
|
15
15
|
useMCPToolsStore
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NGGTQVGX.mjs";
|
|
17
17
|
import {
|
|
18
18
|
chat_modal_default
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6VDL4SLX.mjs";
|
|
20
20
|
import {
|
|
21
21
|
AlertCircle,
|
|
22
22
|
AlertTriangle,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
themeSkinIds,
|
|
92
92
|
useNotificationService,
|
|
93
93
|
useVoiceStore
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-RLW4RBIR.mjs";
|
|
95
95
|
import {
|
|
96
96
|
TOPICS,
|
|
97
97
|
brandingService_default,
|
|
@@ -102,24 +102,24 @@ import {
|
|
|
102
102
|
useFeatures,
|
|
103
103
|
useKnowledgeStore2 as useKnowledgeStore,
|
|
104
104
|
useVectorStore
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-FEIDGXVR.mjs";
|
|
106
106
|
import {
|
|
107
107
|
indexedDBService_default,
|
|
108
108
|
models,
|
|
109
109
|
useModelStore,
|
|
110
110
|
usePackageSettingsStore,
|
|
111
111
|
usePreferencesStore
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-2EM4ATKI.mjs";
|
|
113
113
|
import {
|
|
114
114
|
AIProviderFactory,
|
|
115
115
|
GatewayService,
|
|
116
116
|
authenticationService,
|
|
117
117
|
useAIProviderStore,
|
|
118
118
|
useAuthenticationStore
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-J6LSSK3G.mjs";
|
|
120
120
|
import {
|
|
121
121
|
debugLogger
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-HNXPDIWC.mjs";
|
|
123
123
|
|
|
124
124
|
// src/management/management.tsx
|
|
125
125
|
import { useState as useState15, useEffect as useEffect14, useCallback as useCallback9, useMemo as useMemo7 } from "react";
|
|
@@ -9516,7 +9516,7 @@ function useManagementAccess() {
|
|
|
9516
9516
|
|
|
9517
9517
|
// src/management/management.tsx
|
|
9518
9518
|
import { jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
9519
|
-
var preloadChatPage = () => import("./chat-
|
|
9519
|
+
var preloadChatPage = () => import("./chat-EMKHB23B.mjs");
|
|
9520
9520
|
var buildCapabilitiesUrl = (gatewayApiUrl) => {
|
|
9521
9521
|
const trimmed = gatewayApiUrl.replace(/\/$/, "");
|
|
9522
9522
|
if (trimmed.endsWith("/api")) {
|
|
@@ -10572,4 +10572,4 @@ export {
|
|
|
10572
10572
|
useManagementAccess,
|
|
10573
10573
|
management_default
|
|
10574
10574
|
};
|
|
10575
|
-
//# sourceMappingURL=chunk-
|
|
10575
|
+
//# sourceMappingURL=chunk-RNCASZ2Y.mjs.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
StreamingMarkdown_default,
|
|
6
6
|
isNativeShell,
|
|
7
7
|
isStandalonePwa
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ASWUEAWM.mjs";
|
|
9
9
|
import {
|
|
10
10
|
useMCPToolsStore
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NGGTQVGX.mjs";
|
|
12
12
|
import {
|
|
13
13
|
ArrowDown,
|
|
14
14
|
ArrowUp,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
useNotificationService,
|
|
48
48
|
useTTS,
|
|
49
49
|
useVoiceStore
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-RLW4RBIR.mjs";
|
|
51
51
|
import {
|
|
52
52
|
brandingService_default,
|
|
53
53
|
detectMessageMood,
|
|
@@ -68,22 +68,22 @@ import {
|
|
|
68
68
|
useMemoryStore,
|
|
69
69
|
useProjectStore,
|
|
70
70
|
useVectorStore
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-FEIDGXVR.mjs";
|
|
72
72
|
import {
|
|
73
73
|
indexedDBService_default,
|
|
74
74
|
useModelStore,
|
|
75
75
|
usePackageSettingsStore,
|
|
76
76
|
usePreferencesStore
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-2EM4ATKI.mjs";
|
|
78
78
|
import {
|
|
79
79
|
authenticationService,
|
|
80
80
|
readPersistedToken,
|
|
81
81
|
useAIProviderStore,
|
|
82
82
|
useAuthenticationStore
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-J6LSSK3G.mjs";
|
|
84
84
|
import {
|
|
85
85
|
debugLogger
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-HNXPDIWC.mjs";
|
|
87
87
|
|
|
88
88
|
// src/chat/chat.tsx
|
|
89
89
|
import { useCallback as useCallback6, useEffect as useEffect17, useLayoutEffect, useRef as useRef16, useState as useState19 } from "react";
|
|
@@ -11900,4 +11900,4 @@ export {
|
|
|
11900
11900
|
IS_STORE_BUILD,
|
|
11901
11901
|
chat_default
|
|
11902
11902
|
};
|
|
11903
|
-
//# sourceMappingURL=chunk-
|
|
11903
|
+
//# sourceMappingURL=chunk-WSUUW7T2.mjs.map
|
package/dist/index.d.mts
CHANGED
|
@@ -117,7 +117,8 @@ declare function defineCustomElement<Props extends Record<string, unknown>>(name
|
|
|
117
117
|
* Centralized logging service that provides environment-aware debug logging.
|
|
118
118
|
*
|
|
119
119
|
* Features:
|
|
120
|
-
* - Production builds: Only
|
|
120
|
+
* - Production builds: Only warnings and errors are shown; set
|
|
121
|
+
* localStorage `bandit:debug` to "1" to see info logs too
|
|
121
122
|
* - Development mode: All logs are shown with clear debug prefixes
|
|
122
123
|
* - Consistent formatting for debugging purposes
|
|
123
124
|
* - Clear indication that logs are for debugging
|
|
@@ -147,9 +148,10 @@ declare class DebugLogger {
|
|
|
147
148
|
* DISABLED to prevent console flooding during chat processing
|
|
148
149
|
*/
|
|
149
150
|
debug(message: string, context?: LogContext): void;
|
|
151
|
+
private verboseEnabled;
|
|
150
152
|
/**
|
|
151
|
-
* Info logs - shown in
|
|
152
|
-
*
|
|
153
|
+
* Info logs - shown in development, or in production when localStorage
|
|
154
|
+
* `bandit:debug` is "1"
|
|
153
155
|
*/
|
|
154
156
|
info(message: string, context?: LogContext): void;
|
|
155
157
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -117,7 +117,8 @@ declare function defineCustomElement<Props extends Record<string, unknown>>(name
|
|
|
117
117
|
* Centralized logging service that provides environment-aware debug logging.
|
|
118
118
|
*
|
|
119
119
|
* Features:
|
|
120
|
-
* - Production builds: Only
|
|
120
|
+
* - Production builds: Only warnings and errors are shown; set
|
|
121
|
+
* localStorage `bandit:debug` to "1" to see info logs too
|
|
121
122
|
* - Development mode: All logs are shown with clear debug prefixes
|
|
122
123
|
* - Consistent formatting for debugging purposes
|
|
123
124
|
* - Clear indication that logs are for debugging
|
|
@@ -147,9 +148,10 @@ declare class DebugLogger {
|
|
|
147
148
|
* DISABLED to prevent console flooding during chat processing
|
|
148
149
|
*/
|
|
149
150
|
debug(message: string, context?: LogContext): void;
|
|
151
|
+
private verboseEnabled;
|
|
150
152
|
/**
|
|
151
|
-
* Info logs - shown in
|
|
152
|
-
*
|
|
153
|
+
* Info logs - shown in development, or in production when localStorage
|
|
154
|
+
* `bandit:debug` is "1"
|
|
153
155
|
*/
|
|
154
156
|
info(message: string, context?: LogContext): void;
|
|
155
157
|
/**
|
package/dist/index.js
CHANGED
|
@@ -158,11 +158,20 @@ var init_debugLogger = __esm({
|
|
|
158
158
|
*/
|
|
159
159
|
debug(message, context) {
|
|
160
160
|
}
|
|
161
|
+
verboseEnabled() {
|
|
162
|
+
if (this.isDevelopment) return true;
|
|
163
|
+
try {
|
|
164
|
+
return typeof localStorage !== "undefined" && localStorage.getItem("bandit:debug") === "1";
|
|
165
|
+
} catch {
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
161
169
|
/**
|
|
162
|
-
* Info logs - shown in
|
|
163
|
-
*
|
|
170
|
+
* Info logs - shown in development, or in production when localStorage
|
|
171
|
+
* `bandit:debug` is "1"
|
|
164
172
|
*/
|
|
165
173
|
info(message, context) {
|
|
174
|
+
if (!this.verboseEnabled()) return;
|
|
166
175
|
const prefix = this.isDevelopment ? "\u2139\uFE0F [INFO]" : "[INFO]";
|
|
167
176
|
if (context) {
|
|
168
177
|
console.info(`${prefix} ${message}`, context);
|
|
@@ -13890,7 +13899,7 @@ var init_voiceService = __esm({
|
|
|
13890
13899
|
}
|
|
13891
13900
|
const token = authenticationService.getToken();
|
|
13892
13901
|
if (!token) {
|
|
13893
|
-
debugLogger.
|
|
13902
|
+
debugLogger.info("No JWT token available - skipping voice models fetch");
|
|
13894
13903
|
const emptyModels = {
|
|
13895
13904
|
models: [],
|
|
13896
13905
|
defaultModel: "",
|