@burtson-labs/bandit-engine 2.0.168 → 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.
Files changed (237) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/LICENSE +189 -31
  3. package/NOTICE +26 -0
  4. package/README.md +15 -59
  5. package/dist/aiProviderStore-DKQCCDWF.mjs +8 -0
  6. package/dist/aiProviderStore-DKQCCDWF.mjs.map +1 -0
  7. package/dist/chat-VYZFUECC.mjs +10 -0
  8. package/dist/chat-VYZFUECC.mjs.map +1 -0
  9. package/dist/{chunk-GRPTCHFN.mjs → chunk-BJT6KPUG.mjs} +309 -154
  10. package/dist/chunk-BJT6KPUG.mjs.map +1 -0
  11. package/dist/{chunk-SZJB5FLZ.mjs → chunk-FCQN3LKT.mjs} +251 -77
  12. package/dist/chunk-FCQN3LKT.mjs.map +1 -0
  13. package/dist/chunk-HD4PJNPH.mjs +29034 -0
  14. package/dist/chunk-HD4PJNPH.mjs.map +1 -0
  15. package/dist/{chunk-HNXPDIWC.mjs → chunk-NI7BKLC7.mjs} +1 -1
  16. package/dist/chunk-NI7BKLC7.mjs.map +1 -0
  17. package/dist/index.d.mts +63 -57
  18. package/dist/index.d.ts +63 -57
  19. package/dist/index.js +15415 -7570
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.mjs +16630 -142
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/{memoryUtils-HGCYEUCD.mjs → memoryUtils-UBZ33DNA.mjs} +8 -3
  24. package/dist/memoryUtils-UBZ33DNA.mjs.map +1 -0
  25. package/dist/modelStore-SEC34WRM.mjs +8 -0
  26. package/dist/modelStore-SEC34WRM.mjs.map +1 -0
  27. package/dist/{public-DJa4Db00.d.mts → public-CKQQDOoy.d.mts} +8 -8
  28. package/dist/{public-DJa4Db00.d.ts → public-CKQQDOoy.d.ts} +8 -8
  29. package/dist/public-types.d.mts +1 -1
  30. package/dist/public-types.d.ts +1 -1
  31. package/docs/00_intro.md +2 -2
  32. package/docs/05_contributing.md +2 -2
  33. package/docs/06_licensing.md +18 -0
  34. package/docs/07_custom_tools.md +233 -0
  35. package/docs/README.md +2 -1
  36. package/package.json +23 -20
  37. package/dist/aiProviderStore-HY5G4QAK.mjs +0 -8
  38. package/dist/aiProviderStore-HY5G4QAK.mjs.map +0 -1
  39. package/dist/chat-7LOFYEWE.mjs +0 -15
  40. package/dist/chat-7LOFYEWE.mjs.map +0 -1
  41. package/dist/chat-provider.js +0 -11080
  42. package/dist/chat-provider.js.map +0 -1
  43. package/dist/chat-provider.mjs +0 -16
  44. package/dist/chat-provider.mjs.map +0 -1
  45. package/dist/chunk-4SXXEGEK.mjs +0 -10690
  46. package/dist/chunk-4SXXEGEK.mjs.map +0 -1
  47. package/dist/chunk-62IYSU3I.mjs +0 -7324
  48. package/dist/chunk-62IYSU3I.mjs.map +0 -1
  49. package/dist/chunk-CABOLDNR.mjs +0 -216
  50. package/dist/chunk-CABOLDNR.mjs.map +0 -1
  51. package/dist/chunk-E5WMDLE3.mjs +0 -390
  52. package/dist/chunk-E5WMDLE3.mjs.map +0 -1
  53. package/dist/chunk-GRPTCHFN.mjs.map +0 -1
  54. package/dist/chunk-HNXPDIWC.mjs.map +0 -1
  55. package/dist/chunk-JD6C64CT.mjs +0 -516
  56. package/dist/chunk-JD6C64CT.mjs.map +0 -1
  57. package/dist/chunk-KAXUI5H7.mjs +0 -6009
  58. package/dist/chunk-KAXUI5H7.mjs.map +0 -1
  59. package/dist/chunk-ONQMRE2G.mjs +0 -26
  60. package/dist/chunk-ONQMRE2G.mjs.map +0 -1
  61. package/dist/chunk-P4C5IRM5.mjs +0 -39
  62. package/dist/chunk-P4C5IRM5.mjs.map +0 -1
  63. package/dist/chunk-QI67R5F6.mjs +0 -194
  64. package/dist/chunk-QI67R5F6.mjs.map +0 -1
  65. package/dist/chunk-R3NOM2DG.mjs +0 -2945
  66. package/dist/chunk-R3NOM2DG.mjs.map +0 -1
  67. package/dist/chunk-SZJB5FLZ.mjs.map +0 -1
  68. package/dist/chunk-YGOLNWXJ.mjs +0 -11906
  69. package/dist/chunk-YGOLNWXJ.mjs.map +0 -1
  70. package/dist/management/management.js +0 -44454
  71. package/dist/management/management.js.map +0 -1
  72. package/dist/management/management.mjs +0 -16
  73. package/dist/management/management.mjs.map +0 -1
  74. package/dist/memoryUtils-HGCYEUCD.mjs.map +0 -1
  75. package/dist/modals/chat-modal/chat-modal.js +0 -19730
  76. package/dist/modals/chat-modal/chat-modal.js.map +0 -1
  77. package/dist/modals/chat-modal/chat-modal.mjs +0 -18
  78. package/dist/modals/chat-modal/chat-modal.mjs.map +0 -1
  79. package/dist/modelStore-TFNX4GEC.mjs +0 -8
  80. package/dist/modelStore-TFNX4GEC.mjs.map +0 -1
  81. package/dist/shared/custom-element.js +0 -73
  82. package/dist/shared/custom-element.js.map +0 -1
  83. package/dist/shared/custom-element.mjs +0 -7
  84. package/dist/shared/custom-element.mjs.map +0 -1
  85. package/docs/06_busl_licensing.md +0 -25
  86. package/docs/api_reference/.nojekyll +0 -1
  87. package/docs/api_reference/assets/bandit-docs.js +0 -462
  88. package/docs/api_reference/assets/highlight.css +0 -141
  89. package/docs/api_reference/assets/icons.js +0 -18
  90. package/docs/api_reference/assets/icons.svg +0 -1
  91. package/docs/api_reference/assets/main.js +0 -61
  92. package/docs/api_reference/assets/navigation.js +0 -1
  93. package/docs/api_reference/assets/search.js +0 -1
  94. package/docs/api_reference/assets/style.css +0 -1664
  95. package/docs/api_reference/classes/DebugLogger.html +0 -29
  96. package/docs/api_reference/classes/FeatureFlagService.html +0 -28
  97. package/docs/api_reference/classes/NotificationService.html +0 -21
  98. package/docs/api_reference/classes/StreamingTTSClient.html +0 -19
  99. package/docs/api_reference/classes/VectorDatabaseService.html +0 -63
  100. package/docs/api_reference/classes/VectorMigrationService.html +0 -27
  101. package/docs/api_reference/classes/VoiceService.html +0 -4
  102. package/docs/api_reference/enums/TTSState.html +0 -6
  103. package/docs/api_reference/functions/Chat.html +0 -1
  104. package/docs/api_reference/functions/ChatModal.html +0 -29
  105. package/docs/api_reference/functions/ChatProvider.html +0 -29
  106. package/docs/api_reference/functions/FeatureFlagProvider.html +0 -30
  107. package/docs/api_reference/functions/FeedbackButton.html +0 -29
  108. package/docs/api_reference/functions/FeedbackModal.html +0 -29
  109. package/docs/api_reference/functions/InterestsEditor.html +0 -5
  110. package/docs/api_reference/functions/Management.html +0 -1
  111. package/docs/api_reference/functions/NotificationProvider.html +0 -29
  112. package/docs/api_reference/functions/SubscriptionExpiredGuard.html +0 -31
  113. package/docs/api_reference/functions/SubscriptionExpiredModal.html +0 -31
  114. package/docs/api_reference/functions/defineCustomElement.html +0 -1
  115. package/docs/api_reference/functions/getCriticalConfig.html +0 -2
  116. package/docs/api_reference/functions/getFeatureMatrix.html +0 -1
  117. package/docs/api_reference/functions/getStreamingTTSClient.html +0 -1
  118. package/docs/api_reference/functions/getSystemConstants.html +0 -2
  119. package/docs/api_reference/functions/getTTSState.html +0 -1
  120. package/docs/api_reference/functions/handleHttpError.html +0 -2
  121. package/docs/api_reference/functions/handleSubscriptionUpgrade.html +0 -1
  122. package/docs/api_reference/functions/handleValidationError.html +0 -2
  123. package/docs/api_reference/functions/initializeCoreSystem.html +0 -2
  124. package/docs/api_reference/functions/isWorkspaceAdminRole.html +0 -6
  125. package/docs/api_reference/functions/pauseTTS.html +0 -1
  126. package/docs/api_reference/functions/previewTierUpgrade.html +0 -1
  127. package/docs/api_reference/functions/resolveManagementSections.html +0 -2
  128. package/docs/api_reference/functions/resumeTTS.html +0 -1
  129. package/docs/api_reference/functions/showInfoNotification.html +0 -2
  130. package/docs/api_reference/functions/showSuccessNotification.html +0 -2
  131. package/docs/api_reference/functions/speakWithStreaming.html +0 -1
  132. package/docs/api_reference/functions/stopTTS.html +0 -1
  133. package/docs/api_reference/functions/syncSubscriptionWithAPI.html +0 -1
  134. package/docs/api_reference/functions/updateSubscriptionTier.html +0 -2
  135. package/docs/api_reference/functions/useFeatureFlag.html +0 -2
  136. package/docs/api_reference/functions/useFeatureVisibility.html +0 -2
  137. package/docs/api_reference/functions/useFeatures.html +0 -2
  138. package/docs/api_reference/functions/useGatewayHealth.html +0 -1
  139. package/docs/api_reference/functions/useGatewayMemory.html +0 -1
  140. package/docs/api_reference/functions/useGatewayModels.html +0 -1
  141. package/docs/api_reference/functions/useGlobalTTS.html +0 -2
  142. package/docs/api_reference/functions/useManagementAccess.html +0 -2
  143. package/docs/api_reference/functions/useNotification.html +0 -1
  144. package/docs/api_reference/functions/useNotificationService.html +0 -6
  145. package/docs/api_reference/functions/useTTS.html +0 -2
  146. package/docs/api_reference/functions/useVectorStore.html +0 -13
  147. package/docs/api_reference/functions/useVoiceStore.html +0 -8
  148. package/docs/api_reference/functions/useVoices.html +0 -3
  149. package/docs/api_reference/functions/validateEnvironment.html +0 -2
  150. package/docs/api_reference/functions/validateSystemIntegrity.html +0 -2
  151. package/docs/api_reference/index.html +0 -916
  152. package/docs/api_reference/interfaces/AIChatRequest.html +0 -8
  153. package/docs/api_reference/interfaces/AIChatResponse.html +0 -3
  154. package/docs/api_reference/interfaces/AIGenerateRequest.html +0 -5
  155. package/docs/api_reference/interfaces/AIGenerateResponse.html +0 -3
  156. package/docs/api_reference/interfaces/AIMessage.html +0 -4
  157. package/docs/api_reference/interfaces/AIModel.html +0 -6
  158. package/docs/api_reference/interfaces/AIProviderConfig.html +0 -12
  159. package/docs/api_reference/interfaces/ChatConfig.html +0 -5
  160. package/docs/api_reference/interfaces/ChatModalProps.html +0 -7
  161. package/docs/api_reference/interfaces/CreateMemoryOptions.html +0 -7
  162. package/docs/api_reference/interfaces/FeatureEvaluation.html +0 -14
  163. package/docs/api_reference/interfaces/FeatureFlagConfig.html +0 -18
  164. package/docs/api_reference/interfaces/FeatureFlagContextValue.html +0 -16
  165. package/docs/api_reference/interfaces/FeatureFlagProviderProps.html +0 -4
  166. package/docs/api_reference/interfaces/FeedbackButtonProps.html +0 -19
  167. package/docs/api_reference/interfaces/FeedbackCategories.html +0 -6
  168. package/docs/api_reference/interfaces/FeedbackModalProps.html +0 -4
  169. package/docs/api_reference/interfaces/FeedbackPriorities.html +0 -5
  170. package/docs/api_reference/interfaces/FeedbackRequest.html +0 -12
  171. package/docs/api_reference/interfaces/FeedbackResponse.html +0 -7
  172. package/docs/api_reference/interfaces/FileUploadResult.html +0 -4
  173. package/docs/api_reference/interfaces/GatewayChatRequest.html +0 -13
  174. package/docs/api_reference/interfaces/GatewayChatResponse.html +0 -7
  175. package/docs/api_reference/interfaces/GatewayContract.html +0 -4
  176. package/docs/api_reference/interfaces/GatewayGenerateRequest.html +0 -8
  177. package/docs/api_reference/interfaces/GatewayGenerateResponse.html +0 -12
  178. package/docs/api_reference/interfaces/GatewayHealthResponse.html +0 -5
  179. package/docs/api_reference/interfaces/GatewayMemoryRecord.html +0 -7
  180. package/docs/api_reference/interfaces/GatewayMemoryResponse.html +0 -4
  181. package/docs/api_reference/interfaces/GatewayMessage.html +0 -5
  182. package/docs/api_reference/interfaces/GatewayMessageContent.html +0 -4
  183. package/docs/api_reference/interfaces/GatewayModel.html +0 -9
  184. package/docs/api_reference/interfaces/GatewayModelsResponse.html +0 -2
  185. package/docs/api_reference/interfaces/ManagementAccess.html +0 -5
  186. package/docs/api_reference/interfaces/ManagementAccessInput.html +0 -5
  187. package/docs/api_reference/interfaces/ManagementLink.html +0 -7
  188. package/docs/api_reference/interfaces/ManagementProps.html +0 -22
  189. package/docs/api_reference/interfaces/ManagementSectionDef.html +0 -10
  190. package/docs/api_reference/interfaces/MemorySearchFilters.html +0 -5
  191. package/docs/api_reference/interfaces/MigrationProgress.html +0 -6
  192. package/docs/api_reference/interfaces/MigrationStatus.html +0 -7
  193. package/docs/api_reference/interfaces/NotificationConfig.html +0 -5
  194. package/docs/api_reference/interfaces/NotificationContextType.html +0 -6
  195. package/docs/api_reference/interfaces/NotificationProviderProps.html +0 -4
  196. package/docs/api_reference/interfaces/PackageSettings.html +0 -22
  197. package/docs/api_reference/interfaces/SearchOptions.html +0 -6
  198. package/docs/api_reference/interfaces/SearchResult.html +0 -5
  199. package/docs/api_reference/interfaces/SubscriptionExpiredGuardProps.html +0 -7
  200. package/docs/api_reference/interfaces/SubscriptionExpiredModalProps.html +0 -6
  201. package/docs/api_reference/interfaces/TTSOptions.html +0 -5
  202. package/docs/api_reference/interfaces/TTSProgress.html +0 -6
  203. package/docs/api_reference/interfaces/TrialUsage.html +0 -6
  204. package/docs/api_reference/interfaces/UploadRequest.html +0 -9
  205. package/docs/api_reference/interfaces/UseTTSReturn.html +0 -14
  206. package/docs/api_reference/interfaces/VectorDocument.html +0 -11
  207. package/docs/api_reference/interfaces/VectorMemory.html +0 -12
  208. package/docs/api_reference/interfaces/VectorMemoryMetadata.html +0 -7
  209. package/docs/api_reference/interfaces/VectorStoreStatus.html +0 -7
  210. package/docs/api_reference/interfaces/VoiceModelsResponse.html +0 -4
  211. package/docs/api_reference/interfaces/VoiceState.html +0 -12
  212. package/docs/api_reference/media/02_gateway_api.md +0 -123
  213. package/docs/api_reference/media/05_cli_quickstart.md +0 -87
  214. package/docs/api_reference/media/LICENSE +0 -43
  215. package/docs/api_reference/media/PRE-PUSH-CHECKLIST.md +0 -10
  216. package/docs/api_reference/media/PROTECTION-NOTICE.md +0 -11
  217. package/docs/api_reference/media/README.md +0 -58
  218. package/docs/api_reference/modules.html +0 -136
  219. package/docs/api_reference/types/FeatureKey.html +0 -2
  220. package/docs/api_reference/types/FeatureMatrix.html +0 -2
  221. package/docs/api_reference/types/GatewayQueryOptions.html +0 -1
  222. package/docs/api_reference/types/LogContext.html +0 -14
  223. package/docs/api_reference/types/ManagementRequest.html +0 -1
  224. package/docs/api_reference/types/ManagementSectionId.html +0 -2
  225. package/docs/api_reference/types/SubscriptionTier.html +0 -2
  226. package/docs/api_reference/variables/DEFAULT_TIER_FEATURES.html +0 -2
  227. package/docs/api_reference/variables/FeatureFlagContext.html +0 -1
  228. package/docs/api_reference/variables/MANAGEMENT_SECTIONS.html +0 -1
  229. package/docs/api_reference/variables/OSS_DEFAULT_FEATURES.html +0 -2
  230. package/docs/api_reference/variables/SYSTEM_FLAGS.html +0 -2
  231. package/docs/api_reference/variables/authenticationService.html +0 -1
  232. package/docs/api_reference/variables/debugLogger-1.html +0 -1
  233. package/docs/api_reference/variables/featureFlagService-1.html +0 -2
  234. package/docs/api_reference/variables/notificationService-1.html +0 -1
  235. package/docs/api_reference/variables/vectorDatabaseService-1.html +0 -1
  236. package/docs/api_reference/variables/vectorMigrationService-1.html +0 -1
  237. package/docs/api_reference/variables/voiceService-1.html +0 -1
@@ -112,4 +112,4 @@ export {
112
112
  DebugLogger,
113
113
  debugLogger
114
114
  };
115
- //# sourceMappingURL=chunk-HNXPDIWC.mjs.map
115
+ //# sourceMappingURL=chunk-NI7BKLC7.mjs.map
@@ -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-DJa4Db00.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-DJa4Db00.mjs';
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 | 'oss';
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
- * Simple streaming implementation - no queues, just direct playback
642
- */
647
+ * Simple streaming implementation - no queues, just direct playback
648
+ */
643
649
  private performSimpleStreaming;
644
650
  /**
645
- * Set up audio event listeners
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?: 'small' | 'medium' | 'large';
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: 'bug' | 'feature' | 'improvement' | 'question' | 'other';
775
- priority: 'low' | 'medium' | 'high' | 'critical';
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: 'submitted' | 'acknowledged' | 'in-progress' | 'resolved' | 'rejected';
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: 'Bug Report';
809
- description: 'Something isn\'t working as expected';
810
- icon: 'BugReport';
811
- color: '#f44336';
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: 'Feature Request';
815
- description: 'Suggest a new feature or enhancement';
816
- icon: 'Lightbulb';
817
- color: '#2196f3';
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: 'Improvement';
821
- description: 'Suggest improvements to existing features';
822
- icon: 'TrendingUp';
823
- color: '#ff9800';
826
+ label: "Improvement";
827
+ description: "Suggest improvements to existing features";
828
+ icon: "TrendingUp";
829
+ color: "#ff9800";
824
830
  };
825
831
  question: {
826
- label: 'Question';
827
- description: 'Ask a question about usage or functionality';
828
- icon: 'Help';
829
- color: '#9c27b0';
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: 'Other';
833
- description: 'General feedback or other topics';
834
- icon: 'Message';
835
- color: '#607d8b';
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: 'Low';
841
- description: 'Minor issue, can wait';
842
- color: '#4caf50';
846
+ label: "Low";
847
+ description: "Minor issue, can wait";
848
+ color: "#4caf50";
843
849
  };
844
850
  medium: {
845
- label: 'Medium';
846
- description: 'Normal priority';
847
- color: '#ff9800';
851
+ label: "Medium";
852
+ description: "Normal priority";
853
+ color: "#ff9800";
848
854
  };
849
855
  high: {
850
- label: 'High';
851
- description: 'Important, needs attention soon';
852
- color: '#f44336';
856
+ label: "High";
857
+ description: "Important, needs attention soon";
858
+ color: "#f44336";
853
859
  };
854
860
  critical: {
855
- label: 'Critical';
856
- description: 'Urgent, blocks usage';
857
- color: '#d32f2f';
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: 'top' | 'bottom';
867
- horizontal: 'left' | 'center' | 'right';
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: 'top' | 'bottom';
883
- horizontal: 'left' | 'center' | 'right';
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?: 'success' | 'error' | 'warning' | 'info'): void;
906
+ show(message: string, severity?: "success" | "error" | "warning" | "info"): void;
901
907
  /**
902
908
  * Show an error notification
903
909
  */
@@ -1023,7 +1029,7 @@ declare function getCriticalConfig(): {
1023
1029
  * accept documents, code and data), and the page reports how many it hid so the UI can offer
1024
1030
  * "All workspace files".
1025
1031
  */
1026
- type KnowledgeFileScope = 'knowledge' | 'all';
1032
+ type KnowledgeFileScope = "knowledge" | "all";
1027
1033
  type RawFileRecord = Record<string, unknown>;
1028
1034
  interface KnowledgeFilePage {
1029
1035
  files: RawFileRecord[];
@@ -1048,7 +1054,7 @@ interface VectorMemory {
1048
1054
  score?: number;
1049
1055
  uploadedBy: string;
1050
1056
  uploadedAt: string;
1051
- source?: 'auto' | 'user';
1057
+ source?: "auto" | "user";
1052
1058
  pinned?: boolean;
1053
1059
  lastReferencedAt?: string;
1054
1060
  metadata?: VectorMemoryMetadata;
@@ -1072,7 +1078,7 @@ interface VectorDocument {
1072
1078
  uploadedAt: string;
1073
1079
  isUserContent: boolean;
1074
1080
  isTeamContent: boolean;
1075
- contentSource: 'user' | 'team';
1081
+ contentSource: "user" | "team";
1076
1082
  /** File size in bytes, when the listing reports it. */
1077
1083
  size?: number;
1078
1084
  bucket?: string;
@@ -1090,13 +1096,13 @@ interface SearchResult {
1090
1096
  interface MemorySearchFilters {
1091
1097
  includePinned?: boolean;
1092
1098
  topics?: string[];
1093
- source?: Array<'auto' | 'user'>;
1099
+ source?: Array<"auto" | "user">;
1094
1100
  tags?: string[];
1095
1101
  }
1096
1102
  interface CreateMemoryOptions {
1097
1103
  title?: string;
1098
1104
  tags?: string[];
1099
- source?: 'auto' | 'user';
1105
+ source?: "auto" | "user";
1100
1106
  pinned?: boolean;
1101
1107
  metadata?: VectorMemoryMetadata;
1102
1108
  lastReferencedAt?: string;
@@ -1197,7 +1203,7 @@ declare class VectorDatabaseService {
1197
1203
  content: string;
1198
1204
  title?: string;
1199
1205
  tags?: string[];
1200
- }>, mode?: 'append' | 'replace' | 'smartDedupe', clearExisting?: boolean): Promise<{
1206
+ }>, mode?: "append" | "replace" | "smartDedupe", clearExisting?: boolean): Promise<{
1201
1207
  success: boolean;
1202
1208
  message: string;
1203
1209
  results: Array<{
@@ -1227,7 +1233,7 @@ declare class VectorDatabaseService {
1227
1233
  title?: string;
1228
1234
  tags?: string[];
1229
1235
  }>, options?: {
1230
- mode?: 'append' | 'replace' | 'smartDedupe';
1236
+ mode?: "append" | "replace" | "smartDedupe";
1231
1237
  clearExisting?: boolean;
1232
1238
  chunkSize?: number;
1233
1239
  onProgress?: (current: number, total: number, message: string) => void;
@@ -1335,7 +1341,7 @@ interface MigrationStatus {
1335
1341
  totalTime: number;
1336
1342
  }
1337
1343
  interface MigrationProgress {
1338
- phase: 'memories' | 'documents' | 'cleanup' | 'complete';
1344
+ phase: "memories" | "documents" | "cleanup" | "complete";
1339
1345
  current: number;
1340
1346
  total: number;
1341
1347
  currentItem?: string;
@@ -1451,7 +1457,7 @@ interface SearchOptions {
1451
1457
  filters?: MemorySearchFilters;
1452
1458
  }
1453
1459
  /** One page of Knowledge documents, ready for the Knowledge view. */
1454
- interface KnowledgeDocumentPage extends Omit<KnowledgeFilePage, 'files'> {
1460
+ interface KnowledgeDocumentPage extends Omit<KnowledgeFilePage, "files"> {
1455
1461
  documents: VectorDocument[];
1456
1462
  }
1457
1463
  /**
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FeatureKey, a as FeatureEvaluation, S as SubscriptionTier, b as FeatureFlagConfig, T as TrialUsage } from './public-DJa4Db00.js';
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-DJa4Db00.js';
1
+ import { F as FeatureKey, a as FeatureEvaluation, S as SubscriptionTier, b as FeatureFlagConfig, T as TrialUsage } from './public-CKQQDOoy.js';
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.js';
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 | 'oss';
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
- * Simple streaming implementation - no queues, just direct playback
642
- */
647
+ * Simple streaming implementation - no queues, just direct playback
648
+ */
643
649
  private performSimpleStreaming;
644
650
  /**
645
- * Set up audio event listeners
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?: 'small' | 'medium' | 'large';
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: 'bug' | 'feature' | 'improvement' | 'question' | 'other';
775
- priority: 'low' | 'medium' | 'high' | 'critical';
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: 'submitted' | 'acknowledged' | 'in-progress' | 'resolved' | 'rejected';
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: 'Bug Report';
809
- description: 'Something isn\'t working as expected';
810
- icon: 'BugReport';
811
- color: '#f44336';
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: 'Feature Request';
815
- description: 'Suggest a new feature or enhancement';
816
- icon: 'Lightbulb';
817
- color: '#2196f3';
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: 'Improvement';
821
- description: 'Suggest improvements to existing features';
822
- icon: 'TrendingUp';
823
- color: '#ff9800';
826
+ label: "Improvement";
827
+ description: "Suggest improvements to existing features";
828
+ icon: "TrendingUp";
829
+ color: "#ff9800";
824
830
  };
825
831
  question: {
826
- label: 'Question';
827
- description: 'Ask a question about usage or functionality';
828
- icon: 'Help';
829
- color: '#9c27b0';
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: 'Other';
833
- description: 'General feedback or other topics';
834
- icon: 'Message';
835
- color: '#607d8b';
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: 'Low';
841
- description: 'Minor issue, can wait';
842
- color: '#4caf50';
846
+ label: "Low";
847
+ description: "Minor issue, can wait";
848
+ color: "#4caf50";
843
849
  };
844
850
  medium: {
845
- label: 'Medium';
846
- description: 'Normal priority';
847
- color: '#ff9800';
851
+ label: "Medium";
852
+ description: "Normal priority";
853
+ color: "#ff9800";
848
854
  };
849
855
  high: {
850
- label: 'High';
851
- description: 'Important, needs attention soon';
852
- color: '#f44336';
856
+ label: "High";
857
+ description: "Important, needs attention soon";
858
+ color: "#f44336";
853
859
  };
854
860
  critical: {
855
- label: 'Critical';
856
- description: 'Urgent, blocks usage';
857
- color: '#d32f2f';
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: 'top' | 'bottom';
867
- horizontal: 'left' | 'center' | 'right';
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: 'top' | 'bottom';
883
- horizontal: 'left' | 'center' | 'right';
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?: 'success' | 'error' | 'warning' | 'info'): void;
906
+ show(message: string, severity?: "success" | "error" | "warning" | "info"): void;
901
907
  /**
902
908
  * Show an error notification
903
909
  */
@@ -1023,7 +1029,7 @@ declare function getCriticalConfig(): {
1023
1029
  * accept documents, code and data), and the page reports how many it hid so the UI can offer
1024
1030
  * "All workspace files".
1025
1031
  */
1026
- type KnowledgeFileScope = 'knowledge' | 'all';
1032
+ type KnowledgeFileScope = "knowledge" | "all";
1027
1033
  type RawFileRecord = Record<string, unknown>;
1028
1034
  interface KnowledgeFilePage {
1029
1035
  files: RawFileRecord[];
@@ -1048,7 +1054,7 @@ interface VectorMemory {
1048
1054
  score?: number;
1049
1055
  uploadedBy: string;
1050
1056
  uploadedAt: string;
1051
- source?: 'auto' | 'user';
1057
+ source?: "auto" | "user";
1052
1058
  pinned?: boolean;
1053
1059
  lastReferencedAt?: string;
1054
1060
  metadata?: VectorMemoryMetadata;
@@ -1072,7 +1078,7 @@ interface VectorDocument {
1072
1078
  uploadedAt: string;
1073
1079
  isUserContent: boolean;
1074
1080
  isTeamContent: boolean;
1075
- contentSource: 'user' | 'team';
1081
+ contentSource: "user" | "team";
1076
1082
  /** File size in bytes, when the listing reports it. */
1077
1083
  size?: number;
1078
1084
  bucket?: string;
@@ -1090,13 +1096,13 @@ interface SearchResult {
1090
1096
  interface MemorySearchFilters {
1091
1097
  includePinned?: boolean;
1092
1098
  topics?: string[];
1093
- source?: Array<'auto' | 'user'>;
1099
+ source?: Array<"auto" | "user">;
1094
1100
  tags?: string[];
1095
1101
  }
1096
1102
  interface CreateMemoryOptions {
1097
1103
  title?: string;
1098
1104
  tags?: string[];
1099
- source?: 'auto' | 'user';
1105
+ source?: "auto" | "user";
1100
1106
  pinned?: boolean;
1101
1107
  metadata?: VectorMemoryMetadata;
1102
1108
  lastReferencedAt?: string;
@@ -1197,7 +1203,7 @@ declare class VectorDatabaseService {
1197
1203
  content: string;
1198
1204
  title?: string;
1199
1205
  tags?: string[];
1200
- }>, mode?: 'append' | 'replace' | 'smartDedupe', clearExisting?: boolean): Promise<{
1206
+ }>, mode?: "append" | "replace" | "smartDedupe", clearExisting?: boolean): Promise<{
1201
1207
  success: boolean;
1202
1208
  message: string;
1203
1209
  results: Array<{
@@ -1227,7 +1233,7 @@ declare class VectorDatabaseService {
1227
1233
  title?: string;
1228
1234
  tags?: string[];
1229
1235
  }>, options?: {
1230
- mode?: 'append' | 'replace' | 'smartDedupe';
1236
+ mode?: "append" | "replace" | "smartDedupe";
1231
1237
  clearExisting?: boolean;
1232
1238
  chunkSize?: number;
1233
1239
  onProgress?: (current: number, total: number, message: string) => void;
@@ -1335,7 +1341,7 @@ interface MigrationStatus {
1335
1341
  totalTime: number;
1336
1342
  }
1337
1343
  interface MigrationProgress {
1338
- phase: 'memories' | 'documents' | 'cleanup' | 'complete';
1344
+ phase: "memories" | "documents" | "cleanup" | "complete";
1339
1345
  current: number;
1340
1346
  total: number;
1341
1347
  currentItem?: string;
@@ -1451,7 +1457,7 @@ interface SearchOptions {
1451
1457
  filters?: MemorySearchFilters;
1452
1458
  }
1453
1459
  /** One page of Knowledge documents, ready for the Knowledge view. */
1454
- interface KnowledgeDocumentPage extends Omit<KnowledgeFilePage, 'files'> {
1460
+ interface KnowledgeDocumentPage extends Omit<KnowledgeFilePage, "files"> {
1455
1461
  documents: VectorDocument[];
1456
1462
  }
1457
1463
  /**