@burtson-labs/bandit-engine 2.0.23 → 2.0.25
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 +8 -6
- package/dist/{chat-VOVYLTMX.mjs → chat-2LYIZNWZ.mjs} +2 -2
- package/dist/{chunk-ZRTP2N7E.mjs → chunk-IGD4KGB5.mjs} +102 -85
- package/dist/chunk-IGD4KGB5.mjs.map +1 -0
- package/dist/{chunk-JTZL6WJJ.mjs → chunk-XXMCI2WK.mjs} +2 -2
- package/dist/cli/cli.js +1 -1
- package/dist/cli/cli.js.map +1 -1
- package/dist/index.js +70 -53
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/management/management.js +70 -53
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +1 -1
- package/docs/05_cli_quickstart.md +3 -5
- package/docs/api_reference/assets/bandit-docs.js +271 -0
- package/docs/api_reference/assets/main.js +9 -0
- package/docs/api_reference/classes/DebugLogger.html +11 -11
- package/docs/api_reference/classes/FeatureFlagService.html +13 -13
- package/docs/api_reference/classes/NotificationService.html +10 -10
- package/docs/api_reference/classes/StreamingTTSClient.html +9 -9
- package/docs/api_reference/classes/VectorDatabaseService.html +24 -24
- package/docs/api_reference/classes/VectorMigrationService.html +8 -8
- package/docs/api_reference/classes/VoiceService.html +2 -2
- package/docs/api_reference/enums/TTSState.html +2 -2
- package/docs/api_reference/functions/Chat.html +1 -1
- package/docs/api_reference/functions/ChatModal.html +1 -1
- package/docs/api_reference/functions/ChatProvider.html +1 -1
- package/docs/api_reference/functions/FeatureFlagProvider.html +1 -1
- package/docs/api_reference/functions/FeedbackButton.html +1 -1
- package/docs/api_reference/functions/FeedbackModal.html +1 -1
- package/docs/api_reference/functions/Management.html +1 -1
- package/docs/api_reference/functions/NotificationProvider.html +1 -1
- package/docs/api_reference/functions/SubscriptionExpiredGuard.html +1 -1
- package/docs/api_reference/functions/SubscriptionExpiredModal.html +1 -1
- package/docs/api_reference/functions/defineCustomElement.html +1 -1
- package/docs/api_reference/functions/getCriticalConfig.html +1 -1
- package/docs/api_reference/functions/getFeatureMatrix.html +1 -1
- package/docs/api_reference/functions/getStreamingTTSClient.html +1 -1
- package/docs/api_reference/functions/getSystemConstants.html +1 -1
- package/docs/api_reference/functions/getTTSState.html +1 -1
- package/docs/api_reference/functions/handleHttpError.html +1 -1
- package/docs/api_reference/functions/handleSubscriptionUpgrade.html +1 -1
- package/docs/api_reference/functions/handleValidationError.html +1 -1
- package/docs/api_reference/functions/initializeCoreSystem.html +1 -1
- package/docs/api_reference/functions/pauseTTS.html +1 -1
- package/docs/api_reference/functions/previewTierUpgrade.html +1 -1
- package/docs/api_reference/functions/resumeTTS.html +1 -1
- package/docs/api_reference/functions/showInfoNotification.html +1 -1
- package/docs/api_reference/functions/showSuccessNotification.html +1 -1
- package/docs/api_reference/functions/speakWithStreaming.html +1 -1
- package/docs/api_reference/functions/stopTTS.html +1 -1
- package/docs/api_reference/functions/syncSubscriptionWithAPI.html +1 -1
- package/docs/api_reference/functions/updateSubscriptionTier.html +1 -1
- package/docs/api_reference/functions/useFeatureFlag.html +1 -1
- package/docs/api_reference/functions/useFeatureVisibility.html +1 -1
- package/docs/api_reference/functions/useFeatures.html +1 -1
- package/docs/api_reference/functions/useGatewayHealth.html +1 -1
- package/docs/api_reference/functions/useGatewayMemory.html +1 -1
- package/docs/api_reference/functions/useGatewayModels.html +1 -1
- package/docs/api_reference/functions/useGlobalTTS.html +1 -1
- package/docs/api_reference/functions/useNotification.html +1 -1
- package/docs/api_reference/functions/useNotificationService.html +1 -1
- package/docs/api_reference/functions/useTTS.html +1 -1
- package/docs/api_reference/functions/useVectorStore.html +1 -1
- package/docs/api_reference/functions/useVoiceStore.html +2 -2
- package/docs/api_reference/functions/useVoices.html +1 -1
- package/docs/api_reference/functions/validateEnvironment.html +1 -1
- package/docs/api_reference/functions/validateSystemIntegrity.html +1 -1
- package/docs/api_reference/index.html +8 -5
- package/docs/api_reference/interfaces/AIChatRequest.html +2 -2
- package/docs/api_reference/interfaces/AIChatResponse.html +2 -2
- package/docs/api_reference/interfaces/AIGenerateRequest.html +2 -2
- package/docs/api_reference/interfaces/AIGenerateResponse.html +2 -2
- package/docs/api_reference/interfaces/AIMessage.html +2 -2
- package/docs/api_reference/interfaces/AIModel.html +2 -2
- package/docs/api_reference/interfaces/AIProviderConfig.html +2 -2
- package/docs/api_reference/interfaces/ChatConfig.html +3 -3
- package/docs/api_reference/interfaces/ChatModalProps.html +3 -3
- package/docs/api_reference/interfaces/CreateMemoryOptions.html +2 -2
- package/docs/api_reference/interfaces/FeatureEvaluation.html +7 -7
- package/docs/api_reference/interfaces/FeatureFlagConfig.html +9 -9
- package/docs/api_reference/interfaces/FeatureFlagContextValue.html +8 -8
- package/docs/api_reference/interfaces/FeatureFlagProviderProps.html +2 -2
- package/docs/api_reference/interfaces/FeedbackButtonProps.html +10 -10
- package/docs/api_reference/interfaces/FeedbackCategories.html +2 -2
- package/docs/api_reference/interfaces/FeedbackModalProps.html +2 -2
- package/docs/api_reference/interfaces/FeedbackPriorities.html +2 -2
- package/docs/api_reference/interfaces/FeedbackRequest.html +2 -2
- package/docs/api_reference/interfaces/FeedbackResponse.html +2 -2
- package/docs/api_reference/interfaces/FileUploadResult.html +2 -2
- package/docs/api_reference/interfaces/GatewayChatRequest.html +2 -2
- package/docs/api_reference/interfaces/GatewayChatResponse.html +2 -2
- package/docs/api_reference/interfaces/GatewayContract.html +2 -2
- package/docs/api_reference/interfaces/GatewayGenerateRequest.html +2 -2
- package/docs/api_reference/interfaces/GatewayGenerateResponse.html +2 -2
- package/docs/api_reference/interfaces/GatewayHealthResponse.html +2 -2
- package/docs/api_reference/interfaces/GatewayMemoryRecord.html +2 -2
- package/docs/api_reference/interfaces/GatewayMemoryResponse.html +2 -2
- package/docs/api_reference/interfaces/GatewayMessage.html +2 -2
- package/docs/api_reference/interfaces/GatewayMessageContent.html +2 -2
- package/docs/api_reference/interfaces/GatewayModel.html +2 -2
- package/docs/api_reference/interfaces/GatewayModelsResponse.html +2 -2
- package/docs/api_reference/interfaces/MemorySearchFilters.html +2 -2
- package/docs/api_reference/interfaces/MigrationProgress.html +2 -2
- package/docs/api_reference/interfaces/MigrationStatus.html +2 -2
- package/docs/api_reference/interfaces/NotificationConfig.html +2 -2
- package/docs/api_reference/interfaces/NotificationContextType.html +2 -2
- package/docs/api_reference/interfaces/NotificationProviderProps.html +2 -2
- package/docs/api_reference/interfaces/PackageSettings.html +2 -2
- package/docs/api_reference/interfaces/SearchOptions.html +2 -2
- package/docs/api_reference/interfaces/SearchResult.html +2 -2
- package/docs/api_reference/interfaces/SubscriptionExpiredGuardProps.html +2 -2
- package/docs/api_reference/interfaces/SubscriptionExpiredModalProps.html +2 -2
- package/docs/api_reference/interfaces/TTSOptions.html +2 -2
- package/docs/api_reference/interfaces/TTSProgress.html +2 -2
- package/docs/api_reference/interfaces/TrialUsage.html +2 -2
- package/docs/api_reference/interfaces/UploadRequest.html +3 -3
- package/docs/api_reference/interfaces/UseTTSReturn.html +2 -2
- package/docs/api_reference/interfaces/VectorDocument.html +2 -2
- package/docs/api_reference/interfaces/VectorMemory.html +2 -2
- package/docs/api_reference/interfaces/VectorMemoryMetadata.html +2 -2
- package/docs/api_reference/interfaces/VectorStoreStatus.html +2 -2
- package/docs/api_reference/interfaces/VoiceModelsResponse.html +2 -2
- package/docs/api_reference/interfaces/VoiceState.html +2 -2
- package/docs/api_reference/media/05_cli_quickstart.md +3 -5
- package/docs/api_reference/types/FeatureKey.html +1 -1
- package/docs/api_reference/types/FeatureMatrix.html +1 -1
- package/docs/api_reference/types/GatewayQueryOptions.html +1 -1
- package/docs/api_reference/types/LogContext.html +1 -1
- package/docs/api_reference/types/SubscriptionTier.html +1 -1
- package/docs/api_reference/variables/DEFAULT_TIER_FEATURES.html +1 -1
- package/docs/api_reference/variables/FeatureFlagContext.html +1 -1
- package/docs/api_reference/variables/OSS_DEFAULT_FEATURES.html +1 -1
- package/docs/api_reference/variables/SYSTEM_FLAGS.html +1 -1
- package/docs/api_reference/variables/authenticationService.html +1 -1
- package/docs/api_reference/variables/debugLogger-1.html +1 -1
- package/docs/api_reference/variables/featureFlagService-1.html +1 -1
- package/docs/api_reference/variables/notificationService-1.html +1 -1
- package/docs/api_reference/variables/vectorDatabaseService-1.html +1 -1
- package/docs/api_reference/variables/vectorMigrationService-1.html +1 -1
- package/docs/api_reference/variables/voiceService-1.html +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZRTP2N7E.mjs.map +0 -1
- /package/dist/{chat-VOVYLTMX.mjs.map → chat-2LYIZNWZ.mjs.map} +0 -0
- /package/dist/{chunk-JTZL6WJJ.mjs.map → chunk-XXMCI2WK.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IGD4KGB5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
chat_provider_default
|
|
6
6
|
} from "./chunk-6PQRG6W4.mjs";
|
|
@@ -10,12 +10,9 @@ import {
|
|
|
10
10
|
useGatewayHealth,
|
|
11
11
|
useGatewayMemory,
|
|
12
12
|
useGatewayModels
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XXMCI2WK.mjs";
|
|
14
14
|
import "./chunk-7RLN6ZGT.mjs";
|
|
15
15
|
import "./chunk-RTQDQ6TC.mjs";
|
|
16
|
-
import {
|
|
17
|
-
defineCustomElement
|
|
18
|
-
} from "./chunk-IXIM7BNO.mjs";
|
|
19
16
|
import {
|
|
20
17
|
chat_modal_default
|
|
21
18
|
} from "./chunk-LG2JCTOE.mjs";
|
|
@@ -57,6 +54,9 @@ import {
|
|
|
57
54
|
vectorDatabaseService,
|
|
58
55
|
vectorMigrationService
|
|
59
56
|
} from "./chunk-XD5VJCFN.mjs";
|
|
57
|
+
import {
|
|
58
|
+
defineCustomElement
|
|
59
|
+
} from "./chunk-IXIM7BNO.mjs";
|
|
60
60
|
import {
|
|
61
61
|
usePackageSettingsStore
|
|
62
62
|
} from "./chunk-XUBYA5I7.mjs";
|
|
@@ -19620,6 +19620,8 @@ var init_chat_input = __esm({
|
|
|
19620
19620
|
const isMemoryEnabled = preferences.memoryEnabled && showMemoryToggle();
|
|
19621
19621
|
const isDocumentUploadEnabled = showDocumentUpload();
|
|
19622
19622
|
const isFeedbackEnabled = preferences.feedbackEnabled;
|
|
19623
|
+
const gatewayUrlLower = packageSettings?.gatewayApiUrl?.toLowerCase?.() ?? "";
|
|
19624
|
+
const isPlaygroundMode3 = packageSettings?.playgroundMode === true || gatewayUrlLower.startsWith("playground://") || typeof window !== "undefined" && window.location.pathname.includes("/playground");
|
|
19623
19625
|
(0, import_react39.useEffect)(() => {
|
|
19624
19626
|
const lockViewportHeight = () => {
|
|
19625
19627
|
if (isMobile) {
|
|
@@ -19773,7 +19775,7 @@ ${sanitize(escapePromptInjection(value), file.name)}`;
|
|
|
19773
19775
|
const page = await pdf.getPage(i + 1);
|
|
19774
19776
|
const content = await page.getTextContent();
|
|
19775
19777
|
return content.items.map((item) => {
|
|
19776
|
-
if (typeof item.str === "string") {
|
|
19778
|
+
if (item && typeof item === "object" && "str" in item && typeof item.str === "string") {
|
|
19777
19779
|
return item.str;
|
|
19778
19780
|
}
|
|
19779
19781
|
return "";
|
|
@@ -19833,7 +19835,7 @@ ${sanitize(
|
|
|
19833
19835
|
inputRef.current?.focus();
|
|
19834
19836
|
};
|
|
19835
19837
|
const memory = localStorage.getItem("bandit-memory");
|
|
19836
|
-
const hasAttachmentAction = fileInputs.length < 3 && isDocumentUploadEnabled;
|
|
19838
|
+
const hasAttachmentAction = !isPlaygroundMode3 && fileInputs.length < 3 && isDocumentUploadEnabled;
|
|
19837
19839
|
const hasMemoryAction = isMemoryEnabled;
|
|
19838
19840
|
const hasFeedbackAction = isFeedbackEnabled && isMobile;
|
|
19839
19841
|
const hasSttAction = isSTTAvailable && !isVoiceModeEnabled;
|
|
@@ -24449,6 +24451,7 @@ var init_conversation_drawer = __esm({
|
|
|
24449
24451
|
display: "flex",
|
|
24450
24452
|
alignItems: "center",
|
|
24451
24453
|
gap: 1.5,
|
|
24454
|
+
justifyContent: "center",
|
|
24452
24455
|
bgcolor: (0, import_material37.alpha)(theme.palette.background.default, isMobile ? 0.9 : 0.6)
|
|
24453
24456
|
},
|
|
24454
24457
|
children: [
|
|
@@ -24467,33 +24470,39 @@ var init_conversation_drawer = __esm({
|
|
|
24467
24470
|
children: avatarInitials
|
|
24468
24471
|
}
|
|
24469
24472
|
),
|
|
24470
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
24471
|
-
|
|
24472
|
-
|
|
24473
|
-
{
|
|
24474
|
-
|
|
24475
|
-
|
|
24476
|
-
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24482
|
-
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
|
|
24486
|
-
|
|
24487
|
-
|
|
24488
|
-
|
|
24489
|
-
|
|
24490
|
-
|
|
24491
|
-
|
|
24492
|
-
|
|
24493
|
-
|
|
24494
|
-
|
|
24495
|
-
|
|
24496
|
-
|
|
24473
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
24474
|
+
import_material37.Box,
|
|
24475
|
+
{
|
|
24476
|
+
sx: {
|
|
24477
|
+
minWidth: 0,
|
|
24478
|
+
flex: 1,
|
|
24479
|
+
display: "flex",
|
|
24480
|
+
flexDirection: "column",
|
|
24481
|
+
alignItems: isMobile ? "center" : "flex-start",
|
|
24482
|
+
textAlign: isMobile ? "center" : "left",
|
|
24483
|
+
gap: 0.25
|
|
24484
|
+
},
|
|
24485
|
+
children: [
|
|
24486
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
24487
|
+
import_material37.Typography,
|
|
24488
|
+
{
|
|
24489
|
+
variant: "subtitle2",
|
|
24490
|
+
noWrap: true,
|
|
24491
|
+
sx: { fontWeight: 600, color: theme.palette.text.primary },
|
|
24492
|
+
children: user2 ? userDisplayName : "Not signed in"
|
|
24493
|
+
}
|
|
24494
|
+
),
|
|
24495
|
+
!user2 && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
24496
|
+
import_material37.Typography,
|
|
24497
|
+
{
|
|
24498
|
+
variant: "caption",
|
|
24499
|
+
sx: { color: theme.palette.text.secondary },
|
|
24500
|
+
children: "Connect your account to sync chats"
|
|
24501
|
+
}
|
|
24502
|
+
)
|
|
24503
|
+
]
|
|
24504
|
+
}
|
|
24505
|
+
)
|
|
24497
24506
|
]
|
|
24498
24507
|
}
|
|
24499
24508
|
)
|
|
@@ -25389,7 +25398,7 @@ var init_enhanced_mobile_conversations_modal = __esm({
|
|
|
25389
25398
|
children: avatarInitials
|
|
25390
25399
|
}
|
|
25391
25400
|
),
|
|
25392
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_material38.Box, { sx: { display: "flex", alignItems: "center", gap:
|
|
25401
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_material38.Box, { sx: { display: "flex", flexDirection: "column", alignItems: "center", gap: 0.5, minWidth: 0 }, children: [
|
|
25393
25402
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
25394
25403
|
import_material38.Typography,
|
|
25395
25404
|
{
|
|
@@ -25399,24 +25408,13 @@ var init_enhanced_mobile_conversations_modal = __esm({
|
|
|
25399
25408
|
children: user2 ? userDisplayName : "Not signed in"
|
|
25400
25409
|
}
|
|
25401
25410
|
),
|
|
25402
|
-
user2
|
|
25403
|
-
import_material38.Typography,
|
|
25404
|
-
{
|
|
25405
|
-
variant: "caption",
|
|
25406
|
-
noWrap: true,
|
|
25407
|
-
sx: { color: theme.palette.text.secondary },
|
|
25408
|
-
children: [
|
|
25409
|
-
"\u2022 ",
|
|
25410
|
-
userSecondaryText
|
|
25411
|
-
]
|
|
25412
|
-
}
|
|
25413
|
-
) : null : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
25411
|
+
!user2 && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
25414
25412
|
import_material38.Typography,
|
|
25415
25413
|
{
|
|
25416
25414
|
variant: "caption",
|
|
25417
25415
|
sx: { color: theme.palette.text.secondary },
|
|
25418
25416
|
noWrap: true,
|
|
25419
|
-
children: "
|
|
25417
|
+
children: "Connect your account to sync chats"
|
|
25420
25418
|
}
|
|
25421
25419
|
)
|
|
25422
25420
|
] })
|
|
@@ -25602,7 +25600,8 @@ var init_chat_app_bar = __esm({
|
|
|
25602
25600
|
pendingCount,
|
|
25603
25601
|
warningConversations,
|
|
25604
25602
|
oversizedConversations,
|
|
25605
|
-
triggerSync
|
|
25603
|
+
triggerSync,
|
|
25604
|
+
setSyncEnabled
|
|
25606
25605
|
} = useConversationSyncStore((state) => ({
|
|
25607
25606
|
syncEnabled: state.syncEnabled,
|
|
25608
25607
|
syncStatus: state.status,
|
|
@@ -25610,8 +25609,18 @@ var init_chat_app_bar = __esm({
|
|
|
25610
25609
|
pendingCount: state.pendingConversationUpserts.size + state.pendingConversationDeletes.size + state.pendingProjectUpserts.size + state.pendingProjectDeletes.size,
|
|
25611
25610
|
warningConversations: state.warningConversations,
|
|
25612
25611
|
oversizedConversations: state.oversizedConversations,
|
|
25613
|
-
triggerSync: state.runSync
|
|
25612
|
+
triggerSync: state.runSync,
|
|
25613
|
+
setSyncEnabled: state.setSyncEnabled
|
|
25614
25614
|
}), import_shallow2.shallow);
|
|
25615
|
+
(0, import_react50.useEffect)(() => {
|
|
25616
|
+
if (isPlaygroundMode3 && syncEnabled) {
|
|
25617
|
+
void setSyncEnabled(false).catch((error) => {
|
|
25618
|
+
debugLogger.warn("ChatAppBar: Failed to disable sync in playground", {
|
|
25619
|
+
error: error instanceof Error ? error.message : String(error)
|
|
25620
|
+
});
|
|
25621
|
+
});
|
|
25622
|
+
}
|
|
25623
|
+
}, [isPlaygroundMode3, syncEnabled, setSyncEnabled]);
|
|
25615
25624
|
const syncSpinSx = {
|
|
25616
25625
|
animation: "spin 1s linear infinite",
|
|
25617
25626
|
"@keyframes spin": {
|
|
@@ -25620,7 +25629,7 @@ var init_chat_app_bar = __esm({
|
|
|
25620
25629
|
}
|
|
25621
25630
|
};
|
|
25622
25631
|
const syncIndicatorIcon = (() => {
|
|
25623
|
-
if (!syncEnabled) {
|
|
25632
|
+
if (isPlaygroundMode3 || !syncEnabled) {
|
|
25624
25633
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_CloudOff3.default, { fontSize: "small", color: "disabled" });
|
|
25625
25634
|
}
|
|
25626
25635
|
switch (syncStatus) {
|
|
@@ -25634,6 +25643,9 @@ var init_chat_app_bar = __esm({
|
|
|
25634
25643
|
}
|
|
25635
25644
|
})();
|
|
25636
25645
|
const syncTooltip = (() => {
|
|
25646
|
+
if (isPlaygroundMode3) {
|
|
25647
|
+
return "Cloud sync is unavailable in playground mode.";
|
|
25648
|
+
}
|
|
25637
25649
|
if (!syncEnabled) {
|
|
25638
25650
|
return "Cloud sync is disabled. Enable it from Management > Preferences.";
|
|
25639
25651
|
}
|
|
@@ -25653,8 +25665,9 @@ var init_chat_app_bar = __esm({
|
|
|
25653
25665
|
const last = lastSyncAt ? ` Last sync ${new Date(lastSyncAt).toLocaleTimeString()}.` : "";
|
|
25654
25666
|
return `${base}${pending}${last}`;
|
|
25655
25667
|
})();
|
|
25668
|
+
const syncButtonDisabled = isPlaygroundMode3 || !syncEnabled;
|
|
25656
25669
|
const handleSyncBadgeClick = () => {
|
|
25657
|
-
if (!syncEnabled || syncStatus === "syncing") {
|
|
25670
|
+
if (isPlaygroundMode3 || !syncEnabled || syncStatus === "syncing") {
|
|
25658
25671
|
return;
|
|
25659
25672
|
}
|
|
25660
25673
|
void triggerSync({ force: true });
|
|
@@ -25784,18 +25797,19 @@ var init_chat_app_bar = __esm({
|
|
|
25784
25797
|
import_material40.IconButton,
|
|
25785
25798
|
{
|
|
25786
25799
|
onClick: handleSyncBadgeClick,
|
|
25800
|
+
disabled: syncButtonDisabled,
|
|
25787
25801
|
sx: {
|
|
25788
25802
|
...pillButtonStyles,
|
|
25789
|
-
color:
|
|
25790
|
-
bgcolor:
|
|
25791
|
-
"&:hover":
|
|
25803
|
+
color: syncButtonDisabled ? theme.palette.action.disabled : theme.palette.primary.main,
|
|
25804
|
+
bgcolor: syncButtonDisabled ? "transparent" : syncStatus === "error" ? theme.palette.error.main + "20" : theme.palette.primary.main + "12",
|
|
25805
|
+
"&:hover": syncButtonDisabled ? {} : {
|
|
25792
25806
|
bgcolor: syncStatus === "error" ? theme.palette.error.main + "30" : theme.palette.primary.main + "20"
|
|
25793
|
-
}
|
|
25807
|
+
}
|
|
25794
25808
|
},
|
|
25795
25809
|
"aria-label": "Conversation sync status",
|
|
25796
25810
|
children: [
|
|
25797
25811
|
syncIndicatorIcon,
|
|
25798
|
-
pendingCount > 0 &&
|
|
25812
|
+
pendingCount > 0 && !syncButtonDisabled && syncStatus !== "syncing" && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
25799
25813
|
import_material40.Box,
|
|
25800
25814
|
{
|
|
25801
25815
|
sx: {
|
|
@@ -26348,7 +26362,10 @@ var init_query_suggestion_picker = __esm({
|
|
|
26348
26362
|
markdownComponents = {
|
|
26349
26363
|
p: ({ node, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { ...props }),
|
|
26350
26364
|
mark: ({ node, children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("mark", { ...props, children }),
|
|
26351
|
-
code: ({ node,
|
|
26365
|
+
code: ({ node, children, ...props }) => {
|
|
26366
|
+
const { inline, ...rest } = props;
|
|
26367
|
+
return inline ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("code", { ...rest, children }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("code", { ...rest, children });
|
|
26368
|
+
}
|
|
26352
26369
|
};
|
|
26353
26370
|
QuerySuggestionPicker = ({
|
|
26354
26371
|
onSend,
|