@burtson-labs/bandit-engine 2.0.163 → 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-HSGQXL4N.mjs → chunk-RNCASZ2Y.mjs} +11 -11
- package/dist/{chunk-F32P7Q5O.mjs → chunk-WSUUW7T2.mjs} +11 -8
- package/dist/{chunk-F32P7Q5O.mjs.map → chunk-WSUUW7T2.mjs.map} +1 -1
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/management/management.js +15 -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-MRDQ2WRJ.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-MRDQ2WRJ.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-HSGQXL4N.mjs.map → chunk-RNCASZ2Y.mjs.map} +0 -0
- /package/dist/{modelStore-7XYYDCNC.mjs.map → modelStore-7YYELPF6.mjs.map} +0 -0
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: "",
|
|
@@ -19644,6 +19653,9 @@ function resolveTelemetryConfig(opts) {
|
|
|
19644
19653
|
if (!hasAuth && opts.banditApiKey) {
|
|
19645
19654
|
headers["Authorization"] = `Bearer ${opts.banditApiKey}`;
|
|
19646
19655
|
}
|
|
19656
|
+
if (!hasAuth && !opts.banditApiKey && /^https:\/\/otlp\.burtson\.ai$/i.test(endpoint)) {
|
|
19657
|
+
return null;
|
|
19658
|
+
}
|
|
19647
19659
|
const mode = opts.telemetry.mode ?? "metrics+traces";
|
|
19648
19660
|
return { endpoint, headers, mode, serviceName: opts.telemetry.serviceName ?? "bandit-web" };
|
|
19649
19661
|
}
|