@burtson-labs/bandit-engine 2.0.167 → 2.1.0
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/CHANGELOG.md +31 -0
- package/LICENSE +189 -31
- package/NOTICE +26 -0
- package/README.md +15 -59
- package/dist/aiProviderStore-DKQCCDWF.mjs +8 -0
- package/dist/aiProviderStore-DKQCCDWF.mjs.map +1 -0
- package/dist/chat-VYZFUECC.mjs +10 -0
- package/dist/chat-VYZFUECC.mjs.map +1 -0
- package/dist/{chunk-GRPTCHFN.mjs → chunk-BJT6KPUG.mjs} +309 -154
- package/dist/chunk-BJT6KPUG.mjs.map +1 -0
- package/dist/{chunk-SZJB5FLZ.mjs → chunk-FCQN3LKT.mjs} +251 -77
- package/dist/chunk-FCQN3LKT.mjs.map +1 -0
- package/dist/chunk-HD4PJNPH.mjs +29034 -0
- package/dist/chunk-HD4PJNPH.mjs.map +1 -0
- package/dist/{chunk-HNXPDIWC.mjs → chunk-NI7BKLC7.mjs} +1 -1
- package/dist/chunk-NI7BKLC7.mjs.map +1 -0
- package/dist/index.d.mts +115 -57
- package/dist/index.d.ts +115 -57
- package/dist/index.js +15660 -7577
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16630 -142
- package/dist/index.mjs.map +1 -1
- package/dist/{memoryUtils-HGCYEUCD.mjs → memoryUtils-UBZ33DNA.mjs} +8 -3
- package/dist/memoryUtils-UBZ33DNA.mjs.map +1 -0
- package/dist/modelStore-SEC34WRM.mjs +8 -0
- package/dist/modelStore-SEC34WRM.mjs.map +1 -0
- package/dist/{public-DJa4Db00.d.mts → public-CKQQDOoy.d.mts} +8 -8
- package/dist/{public-DJa4Db00.d.ts → public-CKQQDOoy.d.ts} +8 -8
- package/dist/public-types.d.mts +1 -1
- package/dist/public-types.d.ts +1 -1
- package/docs/00_intro.md +2 -2
- package/docs/05_contributing.md +2 -2
- package/docs/06_licensing.md +18 -0
- package/docs/07_custom_tools.md +233 -0
- package/docs/README.md +2 -1
- package/package.json +23 -20
- package/dist/aiProviderStore-HY5G4QAK.mjs +0 -8
- package/dist/aiProviderStore-HY5G4QAK.mjs.map +0 -1
- package/dist/chat-6N5B7A7F.mjs +0 -15
- package/dist/chat-6N5B7A7F.mjs.map +0 -1
- package/dist/chat-provider.js +0 -10964
- package/dist/chat-provider.js.map +0 -1
- package/dist/chat-provider.mjs +0 -16
- package/dist/chat-provider.mjs.map +0 -1
- package/dist/chunk-46OGYEME.mjs +0 -5895
- package/dist/chunk-46OGYEME.mjs.map +0 -1
- package/dist/chunk-5BZWJQ5O.mjs +0 -516
- package/dist/chunk-5BZWJQ5O.mjs.map +0 -1
- package/dist/chunk-CABOLDNR.mjs +0 -216
- package/dist/chunk-CABOLDNR.mjs.map +0 -1
- package/dist/chunk-E5WMDLE3.mjs +0 -390
- package/dist/chunk-E5WMDLE3.mjs.map +0 -1
- package/dist/chunk-GRPTCHFN.mjs.map +0 -1
- package/dist/chunk-HNXPDIWC.mjs.map +0 -1
- package/dist/chunk-KDIL5WUL.mjs +0 -7323
- package/dist/chunk-KDIL5WUL.mjs.map +0 -1
- package/dist/chunk-N4BQ6HKL.mjs +0 -2945
- package/dist/chunk-N4BQ6HKL.mjs.map +0 -1
- package/dist/chunk-ONQMRE2G.mjs +0 -26
- package/dist/chunk-ONQMRE2G.mjs.map +0 -1
- package/dist/chunk-P4C5IRM5.mjs +0 -39
- package/dist/chunk-P4C5IRM5.mjs.map +0 -1
- package/dist/chunk-PK3LFBGC.mjs +0 -10575
- package/dist/chunk-PK3LFBGC.mjs.map +0 -1
- package/dist/chunk-SHYNXDRO.mjs +0 -11906
- package/dist/chunk-SHYNXDRO.mjs.map +0 -1
- package/dist/chunk-SZJB5FLZ.mjs.map +0 -1
- package/dist/chunk-US4TG745.mjs +0 -194
- package/dist/chunk-US4TG745.mjs.map +0 -1
- package/dist/management/management.js +0 -44217
- package/dist/management/management.js.map +0 -1
- package/dist/management/management.mjs +0 -16
- package/dist/management/management.mjs.map +0 -1
- package/dist/memoryUtils-HGCYEUCD.mjs.map +0 -1
- package/dist/modals/chat-modal/chat-modal.js +0 -19613
- package/dist/modals/chat-modal/chat-modal.js.map +0 -1
- package/dist/modals/chat-modal/chat-modal.mjs +0 -18
- package/dist/modals/chat-modal/chat-modal.mjs.map +0 -1
- package/dist/modelStore-TFNX4GEC.mjs +0 -8
- package/dist/modelStore-TFNX4GEC.mjs.map +0 -1
- package/dist/shared/custom-element.js +0 -73
- package/dist/shared/custom-element.js.map +0 -1
- package/dist/shared/custom-element.mjs +0 -7
- package/dist/shared/custom-element.mjs.map +0 -1
- package/docs/06_busl_licensing.md +0 -25
- package/docs/api_reference/.nojekyll +0 -1
- package/docs/api_reference/assets/bandit-docs.js +0 -462
- package/docs/api_reference/assets/highlight.css +0 -141
- package/docs/api_reference/assets/icons.js +0 -18
- package/docs/api_reference/assets/icons.svg +0 -1
- package/docs/api_reference/assets/main.js +0 -61
- package/docs/api_reference/assets/navigation.js +0 -1
- package/docs/api_reference/assets/search.js +0 -1
- package/docs/api_reference/assets/style.css +0 -1664
- package/docs/api_reference/classes/DebugLogger.html +0 -29
- package/docs/api_reference/classes/FeatureFlagService.html +0 -28
- package/docs/api_reference/classes/NotificationService.html +0 -21
- package/docs/api_reference/classes/StreamingTTSClient.html +0 -19
- package/docs/api_reference/classes/VectorDatabaseService.html +0 -63
- package/docs/api_reference/classes/VectorMigrationService.html +0 -27
- package/docs/api_reference/classes/VoiceService.html +0 -4
- package/docs/api_reference/enums/TTSState.html +0 -6
- package/docs/api_reference/functions/Chat.html +0 -1
- package/docs/api_reference/functions/ChatModal.html +0 -29
- package/docs/api_reference/functions/ChatProvider.html +0 -29
- package/docs/api_reference/functions/FeatureFlagProvider.html +0 -30
- package/docs/api_reference/functions/FeedbackButton.html +0 -29
- package/docs/api_reference/functions/FeedbackModal.html +0 -29
- package/docs/api_reference/functions/InterestsEditor.html +0 -5
- package/docs/api_reference/functions/Management.html +0 -1
- package/docs/api_reference/functions/NotificationProvider.html +0 -29
- package/docs/api_reference/functions/SubscriptionExpiredGuard.html +0 -31
- package/docs/api_reference/functions/SubscriptionExpiredModal.html +0 -31
- package/docs/api_reference/functions/defineCustomElement.html +0 -1
- package/docs/api_reference/functions/getCriticalConfig.html +0 -2
- package/docs/api_reference/functions/getFeatureMatrix.html +0 -1
- package/docs/api_reference/functions/getStreamingTTSClient.html +0 -1
- package/docs/api_reference/functions/getSystemConstants.html +0 -2
- package/docs/api_reference/functions/getTTSState.html +0 -1
- package/docs/api_reference/functions/handleHttpError.html +0 -2
- package/docs/api_reference/functions/handleSubscriptionUpgrade.html +0 -1
- package/docs/api_reference/functions/handleValidationError.html +0 -2
- package/docs/api_reference/functions/initializeCoreSystem.html +0 -2
- package/docs/api_reference/functions/isWorkspaceAdminRole.html +0 -6
- package/docs/api_reference/functions/pauseTTS.html +0 -1
- package/docs/api_reference/functions/previewTierUpgrade.html +0 -1
- package/docs/api_reference/functions/resolveManagementSections.html +0 -2
- package/docs/api_reference/functions/resumeTTS.html +0 -1
- package/docs/api_reference/functions/showInfoNotification.html +0 -2
- package/docs/api_reference/functions/showSuccessNotification.html +0 -2
- package/docs/api_reference/functions/speakWithStreaming.html +0 -1
- package/docs/api_reference/functions/stopTTS.html +0 -1
- package/docs/api_reference/functions/syncSubscriptionWithAPI.html +0 -1
- package/docs/api_reference/functions/updateSubscriptionTier.html +0 -2
- package/docs/api_reference/functions/useFeatureFlag.html +0 -2
- package/docs/api_reference/functions/useFeatureVisibility.html +0 -2
- package/docs/api_reference/functions/useFeatures.html +0 -2
- package/docs/api_reference/functions/useGatewayHealth.html +0 -1
- package/docs/api_reference/functions/useGatewayMemory.html +0 -1
- package/docs/api_reference/functions/useGatewayModels.html +0 -1
- package/docs/api_reference/functions/useGlobalTTS.html +0 -2
- package/docs/api_reference/functions/useManagementAccess.html +0 -2
- package/docs/api_reference/functions/useNotification.html +0 -1
- package/docs/api_reference/functions/useNotificationService.html +0 -6
- package/docs/api_reference/functions/useTTS.html +0 -2
- package/docs/api_reference/functions/useVectorStore.html +0 -13
- package/docs/api_reference/functions/useVoiceStore.html +0 -8
- package/docs/api_reference/functions/useVoices.html +0 -3
- package/docs/api_reference/functions/validateEnvironment.html +0 -2
- package/docs/api_reference/functions/validateSystemIntegrity.html +0 -2
- package/docs/api_reference/index.html +0 -916
- package/docs/api_reference/interfaces/AIChatRequest.html +0 -8
- package/docs/api_reference/interfaces/AIChatResponse.html +0 -3
- package/docs/api_reference/interfaces/AIGenerateRequest.html +0 -5
- package/docs/api_reference/interfaces/AIGenerateResponse.html +0 -3
- package/docs/api_reference/interfaces/AIMessage.html +0 -4
- package/docs/api_reference/interfaces/AIModel.html +0 -6
- package/docs/api_reference/interfaces/AIProviderConfig.html +0 -12
- package/docs/api_reference/interfaces/ChatConfig.html +0 -5
- package/docs/api_reference/interfaces/ChatModalProps.html +0 -7
- package/docs/api_reference/interfaces/CreateMemoryOptions.html +0 -7
- package/docs/api_reference/interfaces/FeatureEvaluation.html +0 -14
- package/docs/api_reference/interfaces/FeatureFlagConfig.html +0 -18
- package/docs/api_reference/interfaces/FeatureFlagContextValue.html +0 -16
- package/docs/api_reference/interfaces/FeatureFlagProviderProps.html +0 -4
- package/docs/api_reference/interfaces/FeedbackButtonProps.html +0 -19
- package/docs/api_reference/interfaces/FeedbackCategories.html +0 -6
- package/docs/api_reference/interfaces/FeedbackModalProps.html +0 -4
- package/docs/api_reference/interfaces/FeedbackPriorities.html +0 -5
- package/docs/api_reference/interfaces/FeedbackRequest.html +0 -12
- package/docs/api_reference/interfaces/FeedbackResponse.html +0 -7
- package/docs/api_reference/interfaces/FileUploadResult.html +0 -4
- package/docs/api_reference/interfaces/GatewayChatRequest.html +0 -13
- package/docs/api_reference/interfaces/GatewayChatResponse.html +0 -7
- package/docs/api_reference/interfaces/GatewayContract.html +0 -4
- package/docs/api_reference/interfaces/GatewayGenerateRequest.html +0 -8
- package/docs/api_reference/interfaces/GatewayGenerateResponse.html +0 -12
- package/docs/api_reference/interfaces/GatewayHealthResponse.html +0 -5
- package/docs/api_reference/interfaces/GatewayMemoryRecord.html +0 -7
- package/docs/api_reference/interfaces/GatewayMemoryResponse.html +0 -4
- package/docs/api_reference/interfaces/GatewayMessage.html +0 -5
- package/docs/api_reference/interfaces/GatewayMessageContent.html +0 -4
- package/docs/api_reference/interfaces/GatewayModel.html +0 -9
- package/docs/api_reference/interfaces/GatewayModelsResponse.html +0 -2
- package/docs/api_reference/interfaces/ManagementAccess.html +0 -5
- package/docs/api_reference/interfaces/ManagementAccessInput.html +0 -5
- package/docs/api_reference/interfaces/ManagementLink.html +0 -7
- package/docs/api_reference/interfaces/ManagementProps.html +0 -22
- package/docs/api_reference/interfaces/ManagementSectionDef.html +0 -10
- package/docs/api_reference/interfaces/MemorySearchFilters.html +0 -5
- package/docs/api_reference/interfaces/MigrationProgress.html +0 -6
- package/docs/api_reference/interfaces/MigrationStatus.html +0 -7
- package/docs/api_reference/interfaces/NotificationConfig.html +0 -5
- package/docs/api_reference/interfaces/NotificationContextType.html +0 -6
- package/docs/api_reference/interfaces/NotificationProviderProps.html +0 -4
- package/docs/api_reference/interfaces/PackageSettings.html +0 -22
- package/docs/api_reference/interfaces/SearchOptions.html +0 -6
- package/docs/api_reference/interfaces/SearchResult.html +0 -5
- package/docs/api_reference/interfaces/SubscriptionExpiredGuardProps.html +0 -7
- package/docs/api_reference/interfaces/SubscriptionExpiredModalProps.html +0 -6
- package/docs/api_reference/interfaces/TTSOptions.html +0 -5
- package/docs/api_reference/interfaces/TTSProgress.html +0 -6
- package/docs/api_reference/interfaces/TrialUsage.html +0 -6
- package/docs/api_reference/interfaces/UploadRequest.html +0 -9
- package/docs/api_reference/interfaces/UseTTSReturn.html +0 -14
- package/docs/api_reference/interfaces/VectorDocument.html +0 -11
- package/docs/api_reference/interfaces/VectorMemory.html +0 -12
- package/docs/api_reference/interfaces/VectorMemoryMetadata.html +0 -7
- package/docs/api_reference/interfaces/VectorStoreStatus.html +0 -7
- package/docs/api_reference/interfaces/VoiceModelsResponse.html +0 -4
- package/docs/api_reference/interfaces/VoiceState.html +0 -12
- package/docs/api_reference/media/02_gateway_api.md +0 -123
- package/docs/api_reference/media/05_cli_quickstart.md +0 -87
- package/docs/api_reference/media/LICENSE +0 -43
- package/docs/api_reference/media/PRE-PUSH-CHECKLIST.md +0 -10
- package/docs/api_reference/media/PROTECTION-NOTICE.md +0 -11
- package/docs/api_reference/media/README.md +0 -58
- package/docs/api_reference/modules.html +0 -136
- package/docs/api_reference/types/FeatureKey.html +0 -2
- package/docs/api_reference/types/FeatureMatrix.html +0 -2
- package/docs/api_reference/types/GatewayQueryOptions.html +0 -1
- package/docs/api_reference/types/LogContext.html +0 -14
- package/docs/api_reference/types/ManagementRequest.html +0 -1
- package/docs/api_reference/types/ManagementSectionId.html +0 -2
- package/docs/api_reference/types/SubscriptionTier.html +0 -2
- package/docs/api_reference/variables/DEFAULT_TIER_FEATURES.html +0 -2
- package/docs/api_reference/variables/FeatureFlagContext.html +0 -1
- package/docs/api_reference/variables/MANAGEMENT_SECTIONS.html +0 -1
- package/docs/api_reference/variables/OSS_DEFAULT_FEATURES.html +0 -2
- package/docs/api_reference/variables/SYSTEM_FLAGS.html +0 -2
- package/docs/api_reference/variables/authenticationService.html +0 -1
- package/docs/api_reference/variables/debugLogger-1.html +0 -1
- package/docs/api_reference/variables/featureFlagService-1.html +0 -2
- package/docs/api_reference/variables/notificationService-1.html +0 -1
- package/docs/api_reference/variables/vectorDatabaseService-1.html +0 -1
- package/docs/api_reference/variables/vectorMigrationService-1.html +0 -1
- package/docs/api_reference/variables/voiceService-1.html +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/services/logging/debugLogger.ts"],"mappings":";AA+BA,IAAM,cAAN,MAAkB;AAAA,EACR;AAAA,EAER,cAAc;AAEZ,SAAK,gBAAgB,KAAK,sBAAsB;AAAA,EAClD;AAAA,EAEQ,wBAAiC;AAGvC,QAAI;AAEF,YAAM,cAAc;AAKpB,UACE,OAAO,WAAW,eAClB,OAAO,YAAY,2BAA2B,aAC9C;AACA,eAAO,CAAC,YAAY;AAAA,MACtB;AAGA,YAAM,OAAO,YAAY;AACzB,UAAI,QAAQ,KAAK,KAAK;AACpB,eAAO,KAAK,IAAI,aAAa;AAAA,MAC/B;AAGA,UAAI,OAAO,WAAW,eAAe,OAAO,UAAU;AACpD,cAAM,WAAW,CAAC,aAAa,WAAW;AAC1C,cAAM,WAAW,CAAC,QAAQ,MAAM;AAChC,eACE,SAAS,SAAS,OAAO,SAAS,QAAQ,KAC1C,SAAS,SAAS,OAAO,SAAS,IAAI;AAAA,MAE1C;AAAA,IACF,SAAS,GAAG;AAAA,IAEZ;AAGA,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,mBAAmB,OAAsB;AACvC,SAAK,gBAAgB;AAAA,EACvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,SAAiB,SAA4B;AAAA,EAWnD;AAAA,EAEQ,iBAA0B;AAChC,QAAI,KAAK,cAAe,QAAO;AAC/B,QAAI;AACF,aACE,OAAO,iBAAiB,eACxB,aAAa,QAAQ,cAAc,MAAM;AAAA,IAE7C,QAAQ;AACN,aAAO;AAAA,IACT;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,KAAK,SAAiB,SAA4B;AAChD,QAAI,CAAC,KAAK,eAAe,EAAG;AAC5B,UAAM,SAAS,KAAK,gBAAgB,wBAAc;AAClD,QAAI,SAAS;AACX,cAAQ,KAAK,GAAG,MAAM,IAAI,OAAO,IAAI,OAAO;AAAA,IAC9C,OAAO;AACL,cAAQ,KAAK,GAAG,MAAM,IAAI,OAAO,EAAE;AAAA,IACrC;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,KAAK,SAAiB,SAA4B;AAChD,UAAM,SAAS,KAAK,gBAAgB,wBAAc;AAClD,QAAI,SAAS;AACX,cAAQ,KAAK,GAAG,MAAM,IAAI,OAAO,IAAI,OAAO;AAAA,IAC9C,OAAO;AACL,cAAQ,KAAK,GAAG,MAAM,IAAI,OAAO,EAAE;AAAA,IACrC;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,SAAiB,SAA4B;AACjD,UAAM,SAAS,KAAK,gBAAgB,mBAAc;AAClD,QAAI,SAAS;AACX,cAAQ,MAAM,GAAG,MAAM,IAAI,OAAO,IAAI,OAAO;AAAA,IAC/C,OAAO;AACL,cAAQ,MAAM,GAAG,MAAM,IAAI,OAAO,EAAE;AAAA,IACtC;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,SAAS,WAAmB,MAAwB;AAAA,EAGpD;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,SAAS,WAAmB,MAAwB;AAAA,EAGpD;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,YAAY,WAAmB,MAAwB;AAAA,EAGvD;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAM,MAAiB,SAAwB;AAAA,EAG/C;AACF;AAGO,IAAM,cAAc,IAAI,YAAY;","names":[]}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FeatureKey, a as FeatureEvaluation, S as SubscriptionTier, b as FeatureFlagConfig, T as TrialUsage } from './public-
|
|
2
|
-
export { A as AIChatRequest, c as AIChatResponse, d as AIGenerateRequest, e as AIGenerateResponse, f as AIMessage, g as AIModel, h as AIProviderConfig, C as ChatConfig, i as ChatModal, j as ChatModalProps, k as ChatProvider, D as DEFAULT_TIER_FEATURES, l as FeatureMatrix, O as OSS_DEFAULT_FEATURES, P as PackageSettings, V as VoiceModelsResponse, m as VoiceService, v as voiceService } from './public-
|
|
1
|
+
import { F as FeatureKey, a as FeatureEvaluation, S as SubscriptionTier, b as FeatureFlagConfig, T as TrialUsage } from './public-CKQQDOoy.mjs';
|
|
2
|
+
export { A as AIChatRequest, c as AIChatResponse, d as AIGenerateRequest, e as AIGenerateResponse, f as AIMessage, g as AIModel, h as AIProviderConfig, C as ChatConfig, i as ChatModal, j as ChatModalProps, k as ChatProvider, D as DEFAULT_TIER_FEATURES, l as FeatureMatrix, O as OSS_DEFAULT_FEATURES, P as PackageSettings, V as VoiceModelsResponse, m as VoiceService, v as voiceService } from './public-CKQQDOoy.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import React, { ReactNode } from 'react';
|
|
5
5
|
import { Theme } from '@mui/material/styles';
|
|
@@ -363,7 +363,7 @@ interface FeatureFlagContextValue {
|
|
|
363
363
|
/** Check if user is admin */
|
|
364
364
|
isAdmin: () => boolean;
|
|
365
365
|
/** Get current tier */
|
|
366
|
-
getCurrentTier: () => SubscriptionTier |
|
|
366
|
+
getCurrentTier: () => SubscriptionTier | "oss";
|
|
367
367
|
/** Update subscription tier dynamically */
|
|
368
368
|
updateTier: (tier: SubscriptionTier) => void;
|
|
369
369
|
/** Check if we're in OSS mode */
|
|
@@ -481,6 +481,12 @@ declare class FeatureFlagService {
|
|
|
481
481
|
* Notify all subscribers of changes
|
|
482
482
|
*/
|
|
483
483
|
private notifySubscribers;
|
|
484
|
+
/**
|
|
485
|
+
* JSON headers carrying the live session token, when there is one. Goes
|
|
486
|
+
* through the auth service so memory-mode sessions (nothing in Web
|
|
487
|
+
* Storage) and the configured token key are honoured.
|
|
488
|
+
*/
|
|
489
|
+
private requestHeaders;
|
|
484
490
|
/**
|
|
485
491
|
* Update subscription tier and notify components
|
|
486
492
|
*/
|
|
@@ -638,12 +644,12 @@ declare class StreamingTTSClient {
|
|
|
638
644
|
*/
|
|
639
645
|
speakStream(text: string, voice: string, options?: TTSOptions): Observable<void>;
|
|
640
646
|
/**
|
|
641
|
-
|
|
642
|
-
|
|
647
|
+
* Simple streaming implementation - no queues, just direct playback
|
|
648
|
+
*/
|
|
643
649
|
private performSimpleStreaming;
|
|
644
650
|
/**
|
|
645
|
-
|
|
646
|
-
|
|
651
|
+
* Set up audio event listeners
|
|
652
|
+
*/
|
|
647
653
|
private setupAudioListeners;
|
|
648
654
|
/**
|
|
649
655
|
* Stop playback
|
|
@@ -748,7 +754,7 @@ interface FeedbackButtonProps {
|
|
|
748
754
|
/** Custom button text for inline mode */
|
|
749
755
|
buttonText?: string;
|
|
750
756
|
/** Custom size */
|
|
751
|
-
size?:
|
|
757
|
+
size?: "small" | "medium" | "large";
|
|
752
758
|
/** Custom positioning */
|
|
753
759
|
position?: {
|
|
754
760
|
bottom?: number | string;
|
|
@@ -771,8 +777,8 @@ declare const FeedbackModal: React.FC<FeedbackModalProps>;
|
|
|
771
777
|
interface FeedbackRequest {
|
|
772
778
|
title: string;
|
|
773
779
|
description: string;
|
|
774
|
-
category:
|
|
775
|
-
priority:
|
|
780
|
+
category: "bug" | "feature" | "improvement" | "question" | "other";
|
|
781
|
+
priority: "low" | "medium" | "high" | "critical";
|
|
776
782
|
annoyanceLevel?: number;
|
|
777
783
|
images?: string[];
|
|
778
784
|
userAgent?: string;
|
|
@@ -797,7 +803,7 @@ interface FeedbackRequest {
|
|
|
797
803
|
}
|
|
798
804
|
interface FeedbackResponse {
|
|
799
805
|
id: string;
|
|
800
|
-
status:
|
|
806
|
+
status: "submitted" | "acknowledged" | "in-progress" | "resolved" | "rejected";
|
|
801
807
|
message: string;
|
|
802
808
|
ticketNumber?: string;
|
|
803
809
|
estimatedResponse?: string;
|
|
@@ -805,56 +811,56 @@ interface FeedbackResponse {
|
|
|
805
811
|
}
|
|
806
812
|
interface FeedbackCategories {
|
|
807
813
|
bug: {
|
|
808
|
-
label:
|
|
809
|
-
description:
|
|
810
|
-
icon:
|
|
811
|
-
color:
|
|
814
|
+
label: "Bug Report";
|
|
815
|
+
description: "Something isn't working as expected";
|
|
816
|
+
icon: "BugReport";
|
|
817
|
+
color: "#f44336";
|
|
812
818
|
};
|
|
813
819
|
feature: {
|
|
814
|
-
label:
|
|
815
|
-
description:
|
|
816
|
-
icon:
|
|
817
|
-
color:
|
|
820
|
+
label: "Feature Request";
|
|
821
|
+
description: "Suggest a new feature or enhancement";
|
|
822
|
+
icon: "Lightbulb";
|
|
823
|
+
color: "#2196f3";
|
|
818
824
|
};
|
|
819
825
|
improvement: {
|
|
820
|
-
label:
|
|
821
|
-
description:
|
|
822
|
-
icon:
|
|
823
|
-
color:
|
|
826
|
+
label: "Improvement";
|
|
827
|
+
description: "Suggest improvements to existing features";
|
|
828
|
+
icon: "TrendingUp";
|
|
829
|
+
color: "#ff9800";
|
|
824
830
|
};
|
|
825
831
|
question: {
|
|
826
|
-
label:
|
|
827
|
-
description:
|
|
828
|
-
icon:
|
|
829
|
-
color:
|
|
832
|
+
label: "Question";
|
|
833
|
+
description: "Ask a question about usage or functionality";
|
|
834
|
+
icon: "Help";
|
|
835
|
+
color: "#9c27b0";
|
|
830
836
|
};
|
|
831
837
|
other: {
|
|
832
|
-
label:
|
|
833
|
-
description:
|
|
834
|
-
icon:
|
|
835
|
-
color:
|
|
838
|
+
label: "Other";
|
|
839
|
+
description: "General feedback or other topics";
|
|
840
|
+
icon: "Message";
|
|
841
|
+
color: "#607d8b";
|
|
836
842
|
};
|
|
837
843
|
}
|
|
838
844
|
interface FeedbackPriorities {
|
|
839
845
|
low: {
|
|
840
|
-
label:
|
|
841
|
-
description:
|
|
842
|
-
color:
|
|
846
|
+
label: "Low";
|
|
847
|
+
description: "Minor issue, can wait";
|
|
848
|
+
color: "#4caf50";
|
|
843
849
|
};
|
|
844
850
|
medium: {
|
|
845
|
-
label:
|
|
846
|
-
description:
|
|
847
|
-
color:
|
|
851
|
+
label: "Medium";
|
|
852
|
+
description: "Normal priority";
|
|
853
|
+
color: "#ff9800";
|
|
848
854
|
};
|
|
849
855
|
high: {
|
|
850
|
-
label:
|
|
851
|
-
description:
|
|
852
|
-
color:
|
|
856
|
+
label: "High";
|
|
857
|
+
description: "Important, needs attention soon";
|
|
858
|
+
color: "#f44336";
|
|
853
859
|
};
|
|
854
860
|
critical: {
|
|
855
|
-
label:
|
|
856
|
-
description:
|
|
857
|
-
color:
|
|
861
|
+
label: "Critical";
|
|
862
|
+
description: "Urgent, blocks usage";
|
|
863
|
+
color: "#d32f2f";
|
|
858
864
|
};
|
|
859
865
|
}
|
|
860
866
|
|
|
@@ -863,8 +869,8 @@ interface NotificationConfig {
|
|
|
863
869
|
severity?: AlertColor;
|
|
864
870
|
duration?: number;
|
|
865
871
|
anchorOrigin?: {
|
|
866
|
-
vertical:
|
|
867
|
-
horizontal:
|
|
872
|
+
vertical: "top" | "bottom";
|
|
873
|
+
horizontal: "left" | "center" | "right";
|
|
868
874
|
};
|
|
869
875
|
}
|
|
870
876
|
interface NotificationContextType {
|
|
@@ -879,8 +885,8 @@ interface NotificationProviderProps {
|
|
|
879
885
|
children: ReactNode;
|
|
880
886
|
defaultDuration?: number;
|
|
881
887
|
defaultPosition?: {
|
|
882
|
-
vertical:
|
|
883
|
-
horizontal:
|
|
888
|
+
vertical: "top" | "bottom";
|
|
889
|
+
horizontal: "left" | "center" | "right";
|
|
884
890
|
};
|
|
885
891
|
}
|
|
886
892
|
declare const NotificationProvider: React.FC<NotificationProviderProps>;
|
|
@@ -897,7 +903,7 @@ declare class NotificationService {
|
|
|
897
903
|
/**
|
|
898
904
|
* Show a generic notification
|
|
899
905
|
*/
|
|
900
|
-
show(message: string, severity?:
|
|
906
|
+
show(message: string, severity?: "success" | "error" | "warning" | "info"): void;
|
|
901
907
|
/**
|
|
902
908
|
* Show an error notification
|
|
903
909
|
*/
|
|
@@ -1007,6 +1013,39 @@ declare function getCriticalConfig(): {
|
|
|
1007
1013
|
timestamp: string;
|
|
1008
1014
|
};
|
|
1009
1015
|
|
|
1016
|
+
/**
|
|
1017
|
+
* Knowledge file listing (GET {gateway}/embedding/files).
|
|
1018
|
+
*
|
|
1019
|
+
* The gateway's file store is shared with every Burtson Labs product that keeps files in the
|
|
1020
|
+
* account: Drive uploads, attachments pulled out of email (Outlook's image001.png, Word's
|
|
1021
|
+
* ~WRD0548.jpg), app assets, Image Studio output. Knowledge should show only the documents that
|
|
1022
|
+
* are indexed for Knowledge search.
|
|
1023
|
+
*
|
|
1024
|
+
* Current gateways scope the list on the server (`scope=knowledge`, the default: files with a
|
|
1025
|
+
* vector in the documents index) and answer with a paged envelope:
|
|
1026
|
+
* { files, total, skip, limit, hasMore, scope, knowledgeFilterUnavailable }
|
|
1027
|
+
* Older gateways answer with a bare array of every file. For those, `knowledge` scope falls back
|
|
1028
|
+
* to a client-side filter that drops images, media and temporary files (Knowledge uploads only
|
|
1029
|
+
* accept documents, code and data), and the page reports how many it hid so the UI can offer
|
|
1030
|
+
* "All workspace files".
|
|
1031
|
+
*/
|
|
1032
|
+
type KnowledgeFileScope = "knowledge" | "all";
|
|
1033
|
+
type RawFileRecord = Record<string, unknown>;
|
|
1034
|
+
interface KnowledgeFilePage {
|
|
1035
|
+
files: RawFileRecord[];
|
|
1036
|
+
/** Files matching the scope in total (server count), or the filtered count of this page on old gateways. */
|
|
1037
|
+
total: number;
|
|
1038
|
+
hasMore: boolean;
|
|
1039
|
+
/** The scope the listing actually has. */
|
|
1040
|
+
scope: KnowledgeFileScope;
|
|
1041
|
+
/** The server applied the scope (current gateway). False: old gateway, client-side filter. */
|
|
1042
|
+
serverScoped: boolean;
|
|
1043
|
+
/** Knowledge was asked for but the index couldn't be checked, so this is every workspace file. */
|
|
1044
|
+
knowledgeFilterUnavailable: boolean;
|
|
1045
|
+
/** Files hidden by the client-side filter on this page (old gateways only). */
|
|
1046
|
+
hiddenCount: number;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1010
1049
|
interface VectorMemory {
|
|
1011
1050
|
id: string;
|
|
1012
1051
|
content: string;
|
|
@@ -1015,7 +1054,7 @@ interface VectorMemory {
|
|
|
1015
1054
|
score?: number;
|
|
1016
1055
|
uploadedBy: string;
|
|
1017
1056
|
uploadedAt: string;
|
|
1018
|
-
source?:
|
|
1057
|
+
source?: "auto" | "user";
|
|
1019
1058
|
pinned?: boolean;
|
|
1020
1059
|
lastReferencedAt?: string;
|
|
1021
1060
|
metadata?: VectorMemoryMetadata;
|
|
@@ -1039,7 +1078,14 @@ interface VectorDocument {
|
|
|
1039
1078
|
uploadedAt: string;
|
|
1040
1079
|
isUserContent: boolean;
|
|
1041
1080
|
isTeamContent: boolean;
|
|
1042
|
-
contentSource:
|
|
1081
|
+
contentSource: "user" | "team";
|
|
1082
|
+
/** File size in bytes, when the listing reports it. */
|
|
1083
|
+
size?: number;
|
|
1084
|
+
bucket?: string;
|
|
1085
|
+
teamSid?: string;
|
|
1086
|
+
userEmail?: string;
|
|
1087
|
+
/** Short text preview extracted when the file was indexed. */
|
|
1088
|
+
preview?: string;
|
|
1043
1089
|
}
|
|
1044
1090
|
interface SearchResult {
|
|
1045
1091
|
memories: VectorMemory[];
|
|
@@ -1047,17 +1093,16 @@ interface SearchResult {
|
|
|
1047
1093
|
success: boolean;
|
|
1048
1094
|
message?: string;
|
|
1049
1095
|
}
|
|
1050
|
-
type RawFileRecord = Record<string, unknown>;
|
|
1051
1096
|
interface MemorySearchFilters {
|
|
1052
1097
|
includePinned?: boolean;
|
|
1053
1098
|
topics?: string[];
|
|
1054
|
-
source?: Array<
|
|
1099
|
+
source?: Array<"auto" | "user">;
|
|
1055
1100
|
tags?: string[];
|
|
1056
1101
|
}
|
|
1057
1102
|
interface CreateMemoryOptions {
|
|
1058
1103
|
title?: string;
|
|
1059
1104
|
tags?: string[];
|
|
1060
|
-
source?:
|
|
1105
|
+
source?: "auto" | "user";
|
|
1061
1106
|
pinned?: boolean;
|
|
1062
1107
|
metadata?: VectorMemoryMetadata;
|
|
1063
1108
|
lastReferencedAt?: string;
|
|
@@ -1158,7 +1203,7 @@ declare class VectorDatabaseService {
|
|
|
1158
1203
|
content: string;
|
|
1159
1204
|
title?: string;
|
|
1160
1205
|
tags?: string[];
|
|
1161
|
-
}>, mode?:
|
|
1206
|
+
}>, mode?: "append" | "replace" | "smartDedupe", clearExisting?: boolean): Promise<{
|
|
1162
1207
|
success: boolean;
|
|
1163
1208
|
message: string;
|
|
1164
1209
|
results: Array<{
|
|
@@ -1188,7 +1233,7 @@ declare class VectorDatabaseService {
|
|
|
1188
1233
|
title?: string;
|
|
1189
1234
|
tags?: string[];
|
|
1190
1235
|
}>, options?: {
|
|
1191
|
-
mode?:
|
|
1236
|
+
mode?: "append" | "replace" | "smartDedupe";
|
|
1192
1237
|
clearExisting?: boolean;
|
|
1193
1238
|
chunkSize?: number;
|
|
1194
1239
|
onProgress?: (current: number, total: number, message: string) => void;
|
|
@@ -1232,7 +1277,15 @@ declare class VectorDatabaseService {
|
|
|
1232
1277
|
*/
|
|
1233
1278
|
getAvailableFiles(skip?: number, limit?: number): Promise<RawFileRecord[]>;
|
|
1234
1279
|
/**
|
|
1235
|
-
*
|
|
1280
|
+
* One page of the Knowledge file list from the gateway (see ./knowledgeFiles).
|
|
1281
|
+
*
|
|
1282
|
+
* No fallback to the file storage API here: its listing is the whole Drive (every product's
|
|
1283
|
+
* files), which is exactly what Knowledge must not show. A failure surfaces to the caller.
|
|
1284
|
+
*/
|
|
1285
|
+
listKnowledgeFiles(skip?: number, limit?: number, scope?: KnowledgeFileScope): Promise<KnowledgeFilePage>;
|
|
1286
|
+
/**
|
|
1287
|
+
* Get the user's Knowledge files (first page, knowledge scope). Kept for existing callers;
|
|
1288
|
+
* prefer listKnowledgeFiles for totals and paging.
|
|
1236
1289
|
*/
|
|
1237
1290
|
getUserFiles(skip?: number, limit?: number): Promise<RawFileRecord[]>;
|
|
1238
1291
|
/**
|
|
@@ -1288,7 +1341,7 @@ interface MigrationStatus {
|
|
|
1288
1341
|
totalTime: number;
|
|
1289
1342
|
}
|
|
1290
1343
|
interface MigrationProgress {
|
|
1291
|
-
phase:
|
|
1344
|
+
phase: "memories" | "documents" | "cleanup" | "complete";
|
|
1292
1345
|
current: number;
|
|
1293
1346
|
total: number;
|
|
1294
1347
|
currentItem?: string;
|
|
@@ -1403,6 +1456,10 @@ interface SearchOptions {
|
|
|
1403
1456
|
useVector?: boolean;
|
|
1404
1457
|
filters?: MemorySearchFilters;
|
|
1405
1458
|
}
|
|
1459
|
+
/** One page of Knowledge documents, ready for the Knowledge view. */
|
|
1460
|
+
interface KnowledgeDocumentPage extends Omit<KnowledgeFilePage, "files"> {
|
|
1461
|
+
documents: VectorDocument[];
|
|
1462
|
+
}
|
|
1406
1463
|
/**
|
|
1407
1464
|
* Advanced Vector Storage Hook
|
|
1408
1465
|
*
|
|
@@ -1517,6 +1574,7 @@ declare const useVectorStore: () => {
|
|
|
1517
1574
|
}>;
|
|
1518
1575
|
searchDocuments: (query: string, options?: SearchOptions) => Promise<VectorDocument[]>;
|
|
1519
1576
|
getUserDocuments: (skip?: number, limit?: number) => Promise<VectorDocument[]>;
|
|
1577
|
+
getKnowledgeDocumentsPage: (skip?: number, limit?: number, scope?: KnowledgeFileScope) => Promise<KnowledgeDocumentPage>;
|
|
1520
1578
|
deleteDocument: (fileId: string) => Promise<{
|
|
1521
1579
|
success: boolean;
|
|
1522
1580
|
error?: string;
|