@burtson-labs/bandit-engine 2.0.160 → 2.0.162
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/README.md +78 -77
- package/dist/{aiProviderStore-BNZGM6QU.mjs → aiProviderStore-JOB2H4LP.mjs} +2 -2
- package/dist/chat-LB6UEEEW.mjs +16 -0
- package/dist/chat-provider.js +281 -142
- package/dist/chat-provider.js.map +1 -1
- package/dist/chat-provider.mjs +6 -6
- package/dist/{chunk-MHF76C2F.mjs → chunk-3ACT5BTW.mjs} +1343 -1222
- package/dist/chunk-3ACT5BTW.mjs.map +1 -0
- package/dist/{chunk-LFQH6M6B.mjs → chunk-47MOBOP3.mjs} +5 -5
- package/dist/chunk-47MOBOP3.mjs.map +1 -0
- package/dist/chunk-G5POQT2R.mjs +390 -0
- package/dist/chunk-G5POQT2R.mjs.map +1 -0
- package/dist/{chunk-PDQT564P.mjs → chunk-ODGVCSKV.mjs} +18 -12
- package/dist/{chunk-PDQT564P.mjs.map → chunk-ODGVCSKV.mjs.map} +1 -1
- package/dist/{chunk-TKSOJGHX.mjs → chunk-OGMXL7BF.mjs} +62 -61
- package/dist/chunk-OGMXL7BF.mjs.map +1 -0
- package/dist/{chunk-B3HAQC6F.mjs → chunk-Q6LXVYTC.mjs} +68 -25
- package/dist/chunk-Q6LXVYTC.mjs.map +1 -0
- package/dist/{chunk-LTWMMHFT.mjs → chunk-R6HMLYKQ.mjs} +1820 -3260
- package/dist/chunk-R6HMLYKQ.mjs.map +1 -0
- package/dist/{chunk-IABD4L6K.mjs → chunk-RUXYVMW2.mjs} +3841 -4457
- package/dist/chunk-RUXYVMW2.mjs.map +1 -0
- package/dist/{chunk-XTB6ZLUI.mjs → chunk-WQEBTH2R.mjs} +7 -2
- package/dist/{chunk-XTB6ZLUI.mjs.map → chunk-WQEBTH2R.mjs.map} +1 -1
- package/dist/{chunk-PXCIDXRP.mjs → chunk-YHSYHU5P.mjs} +6 -6
- package/dist/{chunk-P6SLB5RC.mjs → chunk-ZNK3ELTZ.mjs} +3 -3
- package/dist/index.d.mts +85 -2
- package/dist/index.d.ts +85 -2
- package/dist/index.js +8080 -9868
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -15
- package/dist/index.mjs.map +1 -1
- package/dist/management/management.js +7681 -9478
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +9 -9
- package/dist/modals/chat-modal/chat-modal.js +1714 -3302
- package/dist/modals/chat-modal/chat-modal.js.map +1 -1
- package/dist/modals/chat-modal/chat-modal.mjs +5 -5
- package/dist/{modelStore-NMCRL3FR.mjs → modelStore-FGUGOWTL.mjs} +2 -2
- package/package.json +4 -2
- package/dist/chat-4BOIV4VP.mjs +0 -16
- package/dist/chunk-B3HAQC6F.mjs.map +0 -1
- package/dist/chunk-IABD4L6K.mjs.map +0 -1
- package/dist/chunk-LFQH6M6B.mjs.map +0 -1
- package/dist/chunk-LNGF2XAZ.mjs +0 -311
- package/dist/chunk-LNGF2XAZ.mjs.map +0 -1
- package/dist/chunk-LTWMMHFT.mjs.map +0 -1
- package/dist/chunk-MHF76C2F.mjs.map +0 -1
- package/dist/chunk-TKSOJGHX.mjs.map +0 -1
- /package/dist/{aiProviderStore-BNZGM6QU.mjs.map → aiProviderStore-JOB2H4LP.mjs.map} +0 -0
- /package/dist/{chat-4BOIV4VP.mjs.map → chat-LB6UEEEW.mjs.map} +0 -0
- /package/dist/{chunk-PXCIDXRP.mjs.map → chunk-YHSYHU5P.mjs.map} +0 -0
- /package/dist/{chunk-P6SLB5RC.mjs.map → chunk-ZNK3ELTZ.mjs.map} +0 -0
- /package/dist/{modelStore-NMCRL3FR.mjs.map → modelStore-FGUGOWTL.mjs.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { F as FeatureKey, a as FeatureEvaluation, S as SubscriptionTier, b as Fe
|
|
|
2
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-0EYmtpGD.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import React, { ReactNode } from 'react';
|
|
5
|
+
import { Theme } from '@mui/material/styles';
|
|
5
6
|
import * as zustand from 'zustand';
|
|
6
7
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
7
8
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
@@ -12,7 +13,89 @@ import { AlertColor } from '@mui/material';
|
|
|
12
13
|
|
|
13
14
|
declare const Chat: () => react_jsx_runtime.JSX.Element | null;
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
/** Every Management section that exists. Order is the sidebar order. */
|
|
17
|
+
type ManagementSectionId = "overview" | "personalities" | "knowledge" | "tools" | "provider" | "storage" | "branding" | "preferences";
|
|
18
|
+
type FeatureGate = "limitedAdminDashboard" | "advancedSearch";
|
|
19
|
+
interface ManagementSectionDef {
|
|
20
|
+
id: ManagementSectionId;
|
|
21
|
+
label: string;
|
|
22
|
+
/** One sentence under the page title. */
|
|
23
|
+
description: string;
|
|
24
|
+
/** Extra words the command palette matches on. */
|
|
25
|
+
keywords: string[];
|
|
26
|
+
/** Platform/tenant configuration: only a workspace admin sees it. */
|
|
27
|
+
requiresAdmin: boolean;
|
|
28
|
+
requiresFeature: FeatureGate;
|
|
29
|
+
}
|
|
30
|
+
declare const MANAGEMENT_SECTIONS: readonly ManagementSectionDef[];
|
|
31
|
+
interface ManagementAccessInput {
|
|
32
|
+
roles: string[];
|
|
33
|
+
limitedAdminDashboard: boolean;
|
|
34
|
+
adminDashboard: boolean;
|
|
35
|
+
advancedSearch: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A workspace admin is a PLATFORM admin (admin / platform_admin) or a
|
|
39
|
+
* per-tenant admin. AuthApi's TeamService grants tenant owners/admins a role of
|
|
40
|
+
* the form "<slug>-admin", so any role ending in "-admin" is a tenant admin.
|
|
41
|
+
* super-user is NOT an admin: it's the trial/power-user role, so trial and
|
|
42
|
+
* consumer users see only Preferences.
|
|
43
|
+
*/
|
|
44
|
+
declare function isWorkspaceAdminRole(roles: string[]): boolean;
|
|
45
|
+
/** Which sections this user can open: role first, then plan features. Pure, for tests and hosts. */
|
|
46
|
+
declare function resolveManagementSections(input: ManagementAccessInput): ManagementSectionDef[];
|
|
47
|
+
interface ManagementAccess {
|
|
48
|
+
sections: ManagementSectionDef[];
|
|
49
|
+
isWorkspaceAdmin: boolean;
|
|
50
|
+
/** Admin-dashboard users limited to the lighter feature set. */
|
|
51
|
+
isLimitedAdmin: boolean;
|
|
52
|
+
}
|
|
53
|
+
/** The signed-in user's Management access. Hosts use it to build their command palette. */
|
|
54
|
+
declare function useManagementAccess(): ManagementAccess;
|
|
55
|
+
|
|
56
|
+
/** A host destination outside the engine (members, usage, billing …). */
|
|
57
|
+
interface ManagementLink {
|
|
58
|
+
id: string;
|
|
59
|
+
label: string;
|
|
60
|
+
icon?: React.ReactNode;
|
|
61
|
+
/** Called on click; hosts route with their own router. */
|
|
62
|
+
onSelect: () => void;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface ManagementProps {
|
|
66
|
+
/** Controlled section; omit to let Management keep its own. */
|
|
67
|
+
section?: ManagementSectionId;
|
|
68
|
+
onSectionChange?: (section: ManagementSectionId) => void;
|
|
69
|
+
/** Host destinations for the Organization group (members, usage, billing …). */
|
|
70
|
+
organizationLinks?: ManagementLink[];
|
|
71
|
+
/** Shows "Search ⌘K" in the rail; the host owns the palette. */
|
|
72
|
+
onOpenCommandPalette?: () => void;
|
|
73
|
+
/**
|
|
74
|
+
* A one-shot action from the host (its command palette). A new `id` runs it
|
|
75
|
+
* once: it opens the right section and starts the same flow its button does.
|
|
76
|
+
*/
|
|
77
|
+
request?: ManagementRequest;
|
|
78
|
+
/**
|
|
79
|
+
* The console's theme (the workspace skin and mode at compact density).
|
|
80
|
+
* Hosts apply it to their own chrome, such as a command palette, so it
|
|
81
|
+
* matches the console.
|
|
82
|
+
*/
|
|
83
|
+
onThemeChange?: (theme: Theme) => void;
|
|
84
|
+
/**
|
|
85
|
+
* A fixed section list instead of the signed-in user's access. For
|
|
86
|
+
* previews that run on local data (the playground), never for real access.
|
|
87
|
+
*/
|
|
88
|
+
sections?: ManagementSectionId[];
|
|
89
|
+
/** A short line above the page header, such as "This is a preview". */
|
|
90
|
+
notice?: React.ReactNode;
|
|
91
|
+
/** Where "Back to chat" goes. Default /chat. */
|
|
92
|
+
chatPath?: string;
|
|
93
|
+
}
|
|
94
|
+
type ManagementRequest = {
|
|
95
|
+
action: "create-personality" | "upload-knowledge";
|
|
96
|
+
id: number;
|
|
97
|
+
};
|
|
98
|
+
declare const Management: ({ section: controlledSection, onSectionChange, organizationLinks, onOpenCommandPalette, request, onThemeChange, sections: sectionOverride, notice, chatPath, }?: ManagementProps) => react_jsx_runtime.JSX.Element;
|
|
16
99
|
|
|
17
100
|
interface InterestsEditorProps {
|
|
18
101
|
title?: string | null;
|
|
@@ -1349,4 +1432,4 @@ declare const useVectorStore: () => {
|
|
|
1349
1432
|
initializeVectorService: () => Promise<void>;
|
|
1350
1433
|
};
|
|
1351
1434
|
|
|
1352
|
-
export { Chat, type CreateMemoryOptions, DebugLogger, FeatureEvaluation, FeatureFlagConfig, FeatureFlagContext, type FeatureFlagContextValue, FeatureFlagProvider, type FeatureFlagProviderProps, FeatureFlagService, FeatureKey, FeedbackButton, type FeedbackButtonProps, type FeedbackCategories, FeedbackModal, type FeedbackModalProps, type FeedbackPriorities, type FeedbackRequest, type FeedbackResponse, type FileUploadResult, type GatewayQueryOptions, InterestsEditor, type LogContext, Management, type MemorySearchFilters, type MigrationProgress, type MigrationStatus, type NotificationConfig, type NotificationContextType, NotificationProvider, type NotificationProviderProps, NotificationService, SYSTEM_FLAGS, type SearchOptions, type SearchResult, StreamingTTSClient, SubscriptionExpiredGuard, type SubscriptionExpiredGuardProps, SubscriptionExpiredModal, type SubscriptionExpiredModalProps, SubscriptionTier, type TTSOptions, type TTSProgress, TTSState, TrialUsage, type UploadRequest, type UseTTSReturn, VectorDatabaseService, type VectorDocument, type VectorMemory, type VectorMemoryMetadata, VectorMigrationService, type VectorStoreStatus, type VoiceState, authenticationService, debugLogger, defineCustomElement, featureFlagService, getCriticalConfig, getFeatureMatrix, getStreamingTTSClient, getSystemConstants, getTTSState, handleHttpError, handleSubscriptionUpgrade, handleValidationError, initializeCoreSystem, notificationService, pauseTTS, previewTierUpgrade, resumeTTS, showInfoNotification, showSuccessNotification, speakStream as speakWithStreaming, stopTTS, syncSubscriptionWithAPI, updateSubscriptionTier, useFeatureFlag, useFeatureVisibility, useFeatures, useGatewayHealth, useGatewayMemory, useGatewayModels, useGlobalTTS, useNotification, useNotificationService, useTTS, useVectorStore, useVoiceStore, useVoices, validateEnvironment, validateSystemIntegrity, vectorDatabaseService, vectorMigrationService };
|
|
1435
|
+
export { Chat, type CreateMemoryOptions, DebugLogger, FeatureEvaluation, FeatureFlagConfig, FeatureFlagContext, type FeatureFlagContextValue, FeatureFlagProvider, type FeatureFlagProviderProps, FeatureFlagService, FeatureKey, FeedbackButton, type FeedbackButtonProps, type FeedbackCategories, FeedbackModal, type FeedbackModalProps, type FeedbackPriorities, type FeedbackRequest, type FeedbackResponse, type FileUploadResult, type GatewayQueryOptions, InterestsEditor, type LogContext, MANAGEMENT_SECTIONS, Management, type ManagementAccess, type ManagementAccessInput, type ManagementLink, type ManagementProps, type ManagementRequest, type ManagementSectionDef, type ManagementSectionId, type MemorySearchFilters, type MigrationProgress, type MigrationStatus, type NotificationConfig, type NotificationContextType, NotificationProvider, type NotificationProviderProps, NotificationService, SYSTEM_FLAGS, type SearchOptions, type SearchResult, StreamingTTSClient, SubscriptionExpiredGuard, type SubscriptionExpiredGuardProps, SubscriptionExpiredModal, type SubscriptionExpiredModalProps, SubscriptionTier, type TTSOptions, type TTSProgress, TTSState, TrialUsage, type UploadRequest, type UseTTSReturn, VectorDatabaseService, type VectorDocument, type VectorMemory, type VectorMemoryMetadata, VectorMigrationService, type VectorStoreStatus, type VoiceState, authenticationService, debugLogger, defineCustomElement, featureFlagService, getCriticalConfig, getFeatureMatrix, getStreamingTTSClient, getSystemConstants, getTTSState, handleHttpError, handleSubscriptionUpgrade, handleValidationError, initializeCoreSystem, isWorkspaceAdminRole, notificationService, pauseTTS, previewTierUpgrade, resolveManagementSections, resumeTTS, showInfoNotification, showSuccessNotification, speakStream as speakWithStreaming, stopTTS, syncSubscriptionWithAPI, updateSubscriptionTier, useFeatureFlag, useFeatureVisibility, useFeatures, useGatewayHealth, useGatewayMemory, useGatewayModels, useGlobalTTS, useManagementAccess, useNotification, useNotificationService, useTTS, useVectorStore, useVoiceStore, useVoices, validateEnvironment, validateSystemIntegrity, vectorDatabaseService, vectorMigrationService };
|