@frontera-sdk/chat-ui 1.52.40 → 1.52.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat.js +32 -31
- package/dist/{chunk-L2SBA2T6.js → chunk-6554NLI4.js} +2 -2
- package/dist/{chunk-QBV7MAFV.js → chunk-BRCS2NHC.js} +1 -1
- package/dist/{chunk-ZPFZYY6T.js → chunk-LXXLV5GS.js} +8 -4
- package/dist/{chunk-UZ6RDWCT.js → chunk-N3I3MZTY.js} +1 -1
- package/dist/{chunk-HX5M56P5.js → chunk-NGS7RDD3.js} +5 -4
- package/dist/header.js +4 -4
- package/dist/message.js +4 -4
- package/dist/parts.js +2 -2
- package/dist/pending-cards.js +2 -2
- package/dist/platform.css +1 -1
- package/package.json +3 -3
- package/src/styles.css +0 -1
- /package/dist/{chunk-PKNEC4LJ.js → chunk-X33KXNO3.js} +0 -0
package/dist/chat.js
CHANGED
|
@@ -3,21 +3,21 @@ import { offset, flip, autoUpdate, computePosition } from './chunk-I7SXWUAN.js';
|
|
|
3
3
|
import { isFullscreenHotkey, DeckNotesCard, deckOwnsArrowKeys } from './chunk-4FRTPVJT.js';
|
|
4
4
|
import { ArtifactSkeleton, resolveStageWidth, zoomPercent, DECK_ZOOM_LEVELS, LazyThumb } from './chunk-L53QV2NP.js';
|
|
5
5
|
import { NewSessionPrompt, keepCaretOnTap } from './chunk-PBCI2XZ5.js';
|
|
6
|
-
import { PendingCards } from './chunk-
|
|
6
|
+
import { PendingCards } from './chunk-N3I3MZTY.js';
|
|
7
7
|
import { themeToStyle } from './chunk-6HYPVNVA.js';
|
|
8
8
|
import { useChatAgents } from './chunk-O6CVTMZJ.js';
|
|
9
9
|
import { subjectOfChatToken, capabilitiesOfChatToken } from './chunk-CCVPZVFK.js';
|
|
10
10
|
import { useChatCredential } from './chunk-37G6MHWS.js';
|
|
11
11
|
import './chunk-WDYCLC4F.js';
|
|
12
|
-
import { chatSidePanelSessionKey, Chart1Icon, useTemplatePreviewStore, useHasTemplatePreviewHost, useChatSidePanelStore, ChatHeader, ChatHeaderActions, useRightPane, getChatOverviewAgentStatus, useChatOverviewVisible, useConversationArtifacts, PENDING_CHART_TAB_PREFIX, CHART_TAB_PREFIX, AGENT_WORK_TAB_ID, AGENT_ROUTINES_TAB_ID, SOURCES_TAB_ID, TEMPLATE_TAB_ID, OutputsSection, ChainLink1Icon, ChatOverviewContent, COMPUTER_TAB_PREFIX, SourceRow, motion, MAX_CHAT_SIDE_PANEL_SESSIONS, DEFAULT_CHAT_SIDE_PANEL_SIZE, TableIcon } from './chunk-
|
|
12
|
+
import { chatSidePanelSessionKey, Chart1Icon, useTemplatePreviewStore, useHasTemplatePreviewHost, useChatSidePanelStore, ChatHeader, ChatHeaderActions, useRightPane, getChatOverviewAgentStatus, useChatOverviewVisible, useConversationArtifacts, PENDING_CHART_TAB_PREFIX, CHART_TAB_PREFIX, AGENT_WORK_TAB_ID, AGENT_ROUTINES_TAB_ID, SOURCES_TAB_ID, TEMPLATE_TAB_ID, OutputsSection, ChainLink1Icon, ChatOverviewContent, COMPUTER_TAB_PREFIX, SourceRow, motion, MAX_CHAT_SIDE_PANEL_SESSIONS, DEFAULT_CHAT_SIDE_PANEL_SIZE, TableIcon } from './chunk-6554NLI4.js';
|
|
13
13
|
import './chunk-X3QVICX7.js';
|
|
14
|
-
import { dynamic, useChatStreamStore, useComposerStore, Message, Thinking, setPendingFiles, usePersonConfirmations, unshownPendingConfirmations, ConversationConfirmationCard, useLivePreviewUrl, ArrowRotateClockwiseIcon, useComputerFiles, useUploadComputerFile, CanvasWidget, isPlainTextLanguage, useUploadFile, COMPOSER_ID_MAIN, useContextWindowInfo, useIsCompacting, useQueuedMessages, VolumeFullIcon, WarningSignIcon, useComputer, csvTextToWorkbookJson, CSV_PREVIEW_MAX_ROWS, CopyButton, COMPOSER_ID_COPILOT, ModelIcon, modeToBrandRow, useBackDismiss, PdfViewer, brandLabel, Spinner } from './chunk-
|
|
15
|
-
import { Textarea, artifactFormatIcon, BookIcon, useAgentRoster, ShieldCheckIcon, useArtifactStore, useCanvasStore, useChatOverviewStore, setSdkConversationPath, setSdkDarkMode, AgentsProvider, PluginProvider, WorkspaceProvider, TooltipProvider, getPersonConfirmation, isToolPart, getToolState, getToolName, getToolInput, sourceKind, extractDomain, CitationViewerContext, MarkdownRenderer, ConnectRunnerContext, usePathname, usePaneFocusStore, useAgentPanelStore, Tooltip, TooltipTrigger, TooltipContent, StudioDisplayIcon, WorldIcon, SlidesWideIcon, ArtifactActionsMenu, DotGrid1x3HorizontalTightIcon, ArrowsShowIcon, useKeyboardInset, ExclamationCircleIcon, getToolOutput, useArtifact, useUpdateArtifact, useArtifactFileObjectUrl, resolveArtifactIconFormat, useSourcesEnrichment, LoaderIcon, FileDownloadIcon, Label, Input, renderPluginBlock, useArtifactVersion, useChatCapabilities, useChatCapabilityEnabled, useChatOptInEnabled, useSessionPendingApprovals, tableToCsv, tableToXlsx, tableToMarkdown, DropdownMenu, DropdownMenuTrigger, StyledDropdownMenuContent, StyledDropdownMenuItem, useArtifactVersions, useClient, unwrapData, authFetch, getBearerHeadersForApi, EyeOpenIcon, EyeSlashIcon, useRestoreArtifactVersion, ZoomableImage, ChatImageLightbox, useDownloadArtifact, useArtifactFileBytes, useArtifactPreviewFileObjectUrl, useArtifactVersionPreviewFileObjectUrl, errorText, SpreadsheetIcon, FilePdfIcon, useOptionalWorkspaceContext, useAgentConnectionStatus, useArtifacts, useSession, useWorkspaceContext, useConversationDesktopStatus, isRequestHumanTool, appsKeys, unwrapDataDeep, useRouter, Images1Icon, ArrowUpIcon, VideoIcon, AudioIcon, useBrand, resolveBearerHeaders, subscribeSdkDarkMode, getSdkDarkMode, unwrap, useConnectRunner, useStartUserConnect, useUpsertGrant, useRevokeGrant, AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, LayoutGrid1Icon, useCatalog, useInstalls, useWorkspaceSlug, buildTenantUrlAbsolute } from './chunk-
|
|
14
|
+
import { dynamic, useChatStreamStore, useComposerStore, Message, Thinking, setPendingFiles, usePersonConfirmations, unshownPendingConfirmations, ConversationConfirmationCard, useLivePreviewUrl, ArrowRotateClockwiseIcon, useComputerFiles, useUploadComputerFile, CanvasWidget, isPlainTextLanguage, useUploadFile, COMPOSER_ID_MAIN, useContextWindowInfo, useIsCompacting, useQueuedMessages, VolumeFullIcon, WarningSignIcon, useComputer, csvTextToWorkbookJson, CSV_PREVIEW_MAX_ROWS, CopyButton, COMPOSER_ID_COPILOT, ModelIcon, modeToBrandRow, useBackDismiss, PdfViewer, brandLabel, Spinner } from './chunk-LXXLV5GS.js';
|
|
15
|
+
import { Textarea, artifactFormatIcon, BookIcon, useAgentRoster, ShieldCheckIcon, useArtifactStore, useCanvasStore, useChatOverviewStore, setSdkConversationPath, setSdkDarkMode, AgentsProvider, PluginProvider, WorkspaceProvider, TooltipProvider, getPersonConfirmation, isToolPart, getToolState, getToolName, getToolInput, sourceKind, extractDomain, CitationViewerContext, MarkdownRenderer, ConnectRunnerContext, usePathname, usePaneFocusStore, useAgentPanelStore, Tooltip, TooltipTrigger, TooltipContent, StudioDisplayIcon, WorldIcon, SlidesWideIcon, ArtifactActionsMenu, DotGrid1x3HorizontalTightIcon, ArrowsShowIcon, useKeyboardInset, ExclamationCircleIcon, getToolOutput, useArtifact, useUpdateArtifact, useArtifactFileObjectUrl, resolveArtifactIconFormat, useSourcesEnrichment, LoaderIcon, FileDownloadIcon, Label, Input, renderPluginBlock, useArtifactVersion, useChatCapabilities, useChatCapabilityEnabled, useChatOptInEnabled, useSessionPendingApprovals, tableToCsv, tableToXlsx, tableToMarkdown, DropdownMenu, DropdownMenuTrigger, StyledDropdownMenuContent, StyledDropdownMenuItem, useArtifactVersions, useClient, unwrapData, authFetch, getBearerHeadersForApi, EyeOpenIcon, EyeSlashIcon, useRestoreArtifactVersion, ZoomableImage, ChatImageLightbox, useDownloadArtifact, useArtifactFileBytes, useArtifactPreviewFileObjectUrl, useArtifactVersionPreviewFileObjectUrl, errorText, SpreadsheetIcon, FilePdfIcon, useOptionalWorkspaceContext, useAgentConnectionStatus, useArtifacts, useSession, useWorkspaceContext, useConversationDesktopStatus, isRequestHumanTool, appsKeys, unwrapDataDeep, useRouter, Images1Icon, ArrowUpIcon, VideoIcon, AudioIcon, useBrand, resolveBearerHeaders, subscribeSdkDarkMode, getSdkDarkMode, unwrap, useConnectRunner, useStartUserConnect, useUpsertGrant, useRevokeGrant, AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, LayoutGrid1Icon, useCatalog, useInstalls, useWorkspaceSlug, buildTenantUrlAbsolute } from './chunk-NGS7RDD3.js';
|
|
16
16
|
import { ChevronLeftIcon } from './chunk-CWAOLMFS.js';
|
|
17
17
|
import { Popover, PopoverTrigger, PopoverContent, Sheet, SheetContent, SheetHeader, SheetTitle, SheetDescription } from './chunk-T5SANYSX.js';
|
|
18
18
|
import { MOBILE_BREAKPOINT, useIsMobile, I18nProvider, useTranslation } from './chunk-77OYEA4D.js';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import { AppIcon, frontera_icon_default, PhotoIcon, Folder1Icon, FileTextIcon, describeToolRow, SquareArrowTopRightIcon, ClipboardIcon, getToolMeta, useStreamdownPlugins, AppIconFrame, MessageResponse } from './chunk-
|
|
19
|
+
import './chunk-BRCS2NHC.js';
|
|
20
|
+
import { AppIcon, frontera_icon_default, PhotoIcon, Folder1Icon, FileTextIcon, describeToolRow, SquareArrowTopRightIcon, ClipboardIcon, getToolMeta, useStreamdownPlugins, AppIconFrame, MessageResponse } from './chunk-X33KXNO3.js';
|
|
21
21
|
import { Skeleton, Button, ScrollArea, ChevronDownMediumIcon, buttonVariants } from './chunk-UWKO24VT.js';
|
|
22
22
|
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, CrossMediumIcon, DialogFooter } from './chunk-2P4IEVOQ.js';
|
|
23
23
|
import './chunk-CDTES65T.js';
|
|
@@ -43001,11 +43001,11 @@ function DeckPresenter({ slides, start, mode, onClose }) {
|
|
|
43001
43001
|
};
|
|
43002
43002
|
window.addEventListener("keydown", onKey);
|
|
43003
43003
|
let entered = false;
|
|
43004
|
-
|
|
43005
|
-
|
|
43004
|
+
const fullscreen = document.documentElement.requestFullscreen?.();
|
|
43005
|
+
void fullscreen?.then(() => {
|
|
43006
43006
|
entered = true;
|
|
43007
|
-
}
|
|
43008
|
-
}
|
|
43007
|
+
}).catch(() => {
|
|
43008
|
+
});
|
|
43009
43009
|
const fmt = () => (/* @__PURE__ */ new Date()).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
|
|
43010
43010
|
setNow(fmt());
|
|
43011
43011
|
const t2 = setInterval(() => {
|
|
@@ -45325,6 +45325,7 @@ function CopyAction({ text: text2 }) {
|
|
|
45325
45325
|
navigator.clipboard.writeText(text2).then(() => {
|
|
45326
45326
|
setCopied(true);
|
|
45327
45327
|
setTimeout(() => setCopied(false), 2e3);
|
|
45328
|
+
}).catch(() => {
|
|
45328
45329
|
});
|
|
45329
45330
|
}, [text2]);
|
|
45330
45331
|
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
@@ -65325,6 +65326,22 @@ var MOBILE_LIST_FRACTION = 0.5;
|
|
|
65325
65326
|
var PLACEHOLDER_CHAR_MS = 20;
|
|
65326
65327
|
var AT_PLUGIN_KEY = new PluginKey("composerMentionAt");
|
|
65327
65328
|
var SLASH_PLUGIN_KEY = new PluginKey("composerMentionSlash");
|
|
65329
|
+
function composerKeymap(onBackspaceAtStart) {
|
|
65330
|
+
return Extension.create({
|
|
65331
|
+
name: "composerKeymap",
|
|
65332
|
+
priority: 50,
|
|
65333
|
+
addKeyboardShortcuts() {
|
|
65334
|
+
return {
|
|
65335
|
+
"Shift-Enter": () => this.editor.commands.setHardBreak(),
|
|
65336
|
+
Backspace: () => {
|
|
65337
|
+
const { selection } = this.editor.state;
|
|
65338
|
+
if (!selection.empty || selection.$anchor.pos > 1) return false;
|
|
65339
|
+
return onBackspaceAtStart.current?.() ?? false;
|
|
65340
|
+
}
|
|
65341
|
+
};
|
|
65342
|
+
}
|
|
65343
|
+
});
|
|
65344
|
+
}
|
|
65328
65345
|
var ComposerEditor = forwardRef(function ComposerEditor2({
|
|
65329
65346
|
placeholder,
|
|
65330
65347
|
typePlaceholder,
|
|
@@ -65374,22 +65391,7 @@ var ComposerEditor = forwardRef(function ComposerEditor2({
|
|
|
65374
65391
|
onCutAtStartRef.current = onCutAtStart;
|
|
65375
65392
|
const onBackspaceAtStartRef = useRef(onBackspaceAtStart);
|
|
65376
65393
|
onBackspaceAtStartRef.current = onBackspaceAtStart;
|
|
65377
|
-
const submitKeymap = useRef(
|
|
65378
|
-
Extension.create({
|
|
65379
|
-
name: "composerKeymap",
|
|
65380
|
-
priority: 50,
|
|
65381
|
-
addKeyboardShortcuts() {
|
|
65382
|
-
return {
|
|
65383
|
-
"Shift-Enter": () => this.editor.commands.setHardBreak(),
|
|
65384
|
-
Backspace: () => {
|
|
65385
|
-
const { selection } = this.editor.state;
|
|
65386
|
-
if (!selection.empty || selection.$anchor.pos > 1) return false;
|
|
65387
|
-
return onBackspaceAtStartRef.current?.() ?? false;
|
|
65388
|
-
}
|
|
65389
|
-
};
|
|
65390
|
-
}
|
|
65391
|
-
})
|
|
65392
|
-
).current;
|
|
65394
|
+
const submitKeymap = useRef(composerKeymap(onBackspaceAtStartRef)).current;
|
|
65393
65395
|
const editor = useEditor({
|
|
65394
65396
|
immediatelyRender: false,
|
|
65395
65397
|
extensions: [
|
|
@@ -69324,7 +69326,7 @@ function ComposerTemplateStrip({
|
|
|
69324
69326
|
className: "hidden",
|
|
69325
69327
|
onChange: (e) => {
|
|
69326
69328
|
const f = e.target.files?.[0];
|
|
69327
|
-
if (f) onImport(f);
|
|
69329
|
+
if (f) void onImport(f);
|
|
69328
69330
|
e.target.value = "";
|
|
69329
69331
|
}
|
|
69330
69332
|
}
|
|
@@ -70814,7 +70816,7 @@ function ChatInputBar({
|
|
|
70814
70816
|
}, [steerable, sessionKey, dequeueMessage, onSend]);
|
|
70815
70817
|
const handleSteerQueued = useCallback(
|
|
70816
70818
|
(id, text2, fileRefs) => {
|
|
70817
|
-
onSteer?.(text2, fileRefs);
|
|
70819
|
+
void onSteer?.(text2, fileRefs);
|
|
70818
70820
|
removeQueuedMessage(sessionKey, id);
|
|
70819
70821
|
},
|
|
70820
70822
|
[onSteer, removeQueuedMessage, sessionKey]
|
|
@@ -70876,7 +70878,7 @@ function ChatInputBar({
|
|
|
70876
70878
|
setFileError(t2("chat.input.fileLimit", { count: remaining }));
|
|
70877
70879
|
return;
|
|
70878
70880
|
}
|
|
70879
|
-
const results = await Promise.all(files.map(handleUploadFile));
|
|
70881
|
+
const results = await Promise.all(files.map((file) => handleUploadFile(file)));
|
|
70880
70882
|
const uploaded = results.filter(
|
|
70881
70883
|
(r) => r !== null
|
|
70882
70884
|
);
|
|
@@ -72058,8 +72060,7 @@ function PortalRootProvider({
|
|
|
72058
72060
|
root.removeAttribute("style");
|
|
72059
72061
|
for (const [key2, value] of Object.entries(style2 ?? {})) {
|
|
72060
72062
|
if (typeof value !== "string") continue;
|
|
72061
|
-
|
|
72062
|
-
else root.style.setProperty(key2, value);
|
|
72063
|
+
root.style.setProperty(key2, value);
|
|
72063
72064
|
}
|
|
72064
72065
|
}, [root, dark, style2]);
|
|
72065
72066
|
return /* @__PURE__ */ jsx(PortalContainerContext.Provider, { value: root, children });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { MagnifyingGlassIcon } from './chunk-X3QVICX7.js';
|
|
3
|
-
import { requestPaneFocus, useArtifacts, usePlugins, useCanvasStore, useArtifactStore, useChatOverviewStore, useSourcesEnrichment, sourceKind, useCitationViewer, resolveSourceDisplay, extractDomain, canvasId, StudioDisplayIcon, LayoutDashboardIcon, useAgentPanelStore, SourceFavicon, dedup, useArtifactFileObjectUrl, resolveArtifactIconFormat, artifactFormatIcon, avatarMotionForStream, AGENT_AVATAR_SIZE, getFileCategory, FileThumbnail, formatFileSize, usePathname, artifactFormatSubtitle, artifactCategory, Input, MobileScreenSheet, TooltipTrigger, Tooltip, useChatCapabilities, TooltipContent, processMessageParts, GridSpinner, PanelEdgeRing, ArtifactActionsMenu, DotGrid1x3HorizontalTightIcon, extractCitationsFromSteps, resolvePluginLanguage, getMessageDisplayTimestampValue } from './chunk-
|
|
3
|
+
import { requestPaneFocus, useArtifacts, usePlugins, useCanvasStore, useArtifactStore, useChatOverviewStore, useSourcesEnrichment, sourceKind, useCitationViewer, resolveSourceDisplay, extractDomain, canvasId, StudioDisplayIcon, LayoutDashboardIcon, useAgentPanelStore, SourceFavicon, dedup, useArtifactFileObjectUrl, resolveArtifactIconFormat, artifactFormatIcon, avatarMotionForStream, AGENT_AVATAR_SIZE, getFileCategory, FileThumbnail, formatFileSize, usePathname, artifactFormatSubtitle, artifactCategory, Input, MobileScreenSheet, TooltipTrigger, Tooltip, useChatCapabilities, TooltipContent, processMessageParts, GridSpinner, PanelEdgeRing, ArtifactActionsMenu, DotGrid1x3HorizontalTightIcon, extractCitationsFromSteps, resolvePluginLanguage, getMessageDisplayTimestampValue } from './chunk-NGS7RDD3.js';
|
|
4
4
|
import { Popover, PopoverTrigger, PopoverContent, Sheet, SheetContent, SheetHeader, SheetTitle } from './chunk-T5SANYSX.js';
|
|
5
5
|
import { useTranslation, useIsMobile } from './chunk-77OYEA4D.js';
|
|
6
|
-
import { Collapsible, CollapsibleTrigger, CollapsibleContent, Shimmer, HoverCard, HoverCardTrigger, HoverCardContent } from './chunk-
|
|
6
|
+
import { Collapsible, CollapsibleTrigger, CollapsibleContent, Shimmer, HoverCard, HoverCardTrigger, HoverCardContent } from './chunk-X33KXNO3.js';
|
|
7
7
|
import { ChevronDownMediumIcon, ScrollArea, Skeleton, Button } from './chunk-UWKO24VT.js';
|
|
8
8
|
import { Dialog, DialogContent, DialogHeader, DialogTitle, CrossMediumIcon } from './chunk-2P4IEVOQ.js';
|
|
9
9
|
import { ChevronRightIcon } from './chunk-C3HW5S2Z.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { describeToolRow, Code2Icon, getToolMeta, Shimmer, Collapse } from './chunk-
|
|
2
|
+
import { describeToolRow, Code2Icon, getToolMeta, Shimmer, Collapse } from './chunk-X33KXNO3.js';
|
|
3
3
|
import { ChevronDownMediumIcon } from './chunk-UWKO24VT.js';
|
|
4
4
|
import { cn } from './chunk-LGVMMBL3.js';
|
|
5
5
|
import { memo, useState, useMemo } from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { usePlugins, useChatCapabilityEnabled, resolvePluginLanguage, renderPluginBlock, AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, ActionMenu, useArtifactStore, ArtifactActionsMenu, DotGrid1x3HorizontalTightIcon, useArtifact, resolveArtifactIconFormat, artifactFormatIcon, useArtifactFileObjectUrl, artifactFormatSubtitle, ChatImageLightbox, ArrowsShowIcon, FileDownloadIcon, useClient, processMessageParts, getMessageDisplayTimestampValue, getMessageCreatedAtMs, isApprovalRequested, extractCitationsFromSteps, useSourcesEnrichment, extractImagesFromSteps, dedupeImageResults, getDocumentStreamArtifacts, getToolOutput, useCanvasStore, ImageResultsGallery, MessageDecisionCards, useChatCapabilities, useOptionalWorkspaceContext, useCitationViewer, useChatOverviewStore, dedup, extractDomain, sourceKind, SourceFavicon, Input, exportDocumentPdf, FilePdfIcon, StudioDisplayIcon, WorldIcon, MessageStepsGroup, getToolState, getToolInput, getToolErrorText, useChatOptInEnabled, ArrowRightIcon, formatFileSize, FileThumbnail, attachmentFileOf, MobileScreenSheet, useAgentHistorySource, treatyErrorMessage, useRouter, useBasePath, useAgentPanelStore, AgentRoutineForm, getFileCategory, unwrap, unwrapData, unwrapDataDeep, formatDecisionTime, DecisionCard, LoaderIcon, formatRelativeTime, CircleCheckIcon, agentRoutineKeys, useOptionalAgentsContext, avatarMotionForStream, AGENT_AVATAR_SIZE } from './chunk-
|
|
2
|
+
import { usePlugins, useChatCapabilityEnabled, resolvePluginLanguage, renderPluginBlock, AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, ActionMenu, useArtifactStore, ArtifactActionsMenu, DotGrid1x3HorizontalTightIcon, useArtifact, resolveArtifactIconFormat, artifactFormatIcon, useArtifactFileObjectUrl, artifactFormatSubtitle, ChatImageLightbox, ArrowsShowIcon, FileDownloadIcon, useClient, processMessageParts, getMessageDisplayTimestampValue, getMessageCreatedAtMs, isApprovalRequested, extractCitationsFromSteps, useSourcesEnrichment, extractImagesFromSteps, dedupeImageResults, getDocumentStreamArtifacts, getToolOutput, useCanvasStore, ImageResultsGallery, MessageDecisionCards, useChatCapabilities, useOptionalWorkspaceContext, useCitationViewer, useChatOverviewStore, dedup, extractDomain, sourceKind, SourceFavicon, Input, exportDocumentPdf, FilePdfIcon, StudioDisplayIcon, WorldIcon, MessageStepsGroup, getToolState, getToolInput, getToolErrorText, useChatOptInEnabled, ArrowRightIcon, formatFileSize, FileThumbnail, attachmentFileOf, MobileScreenSheet, useAgentHistorySource, treatyErrorMessage, useRouter, useBasePath, useAgentPanelStore, AgentRoutineForm, getFileCategory, unwrap, unwrapData, unwrapDataDeep, formatDecisionTime, DecisionCard, LoaderIcon, formatRelativeTime, CircleCheckIcon, agentRoutineKeys, useOptionalAgentsContext, avatarMotionForStream, AGENT_AVATAR_SIZE } from './chunk-NGS7RDD3.js';
|
|
3
3
|
import { Sheet, SheetTrigger, SheetContent, SheetHeader, SheetTitle, SheetDescription, Popover, PopoverTrigger, PopoverContent } from './chunk-T5SANYSX.js';
|
|
4
4
|
import { useIsMobile, useTranslation } from './chunk-77OYEA4D.js';
|
|
5
|
-
import { MessageToolbar, MessageResponse, SquareArrowTopRightIcon, FileTextIcon, Shimmer, ClipboardIcon, Message, MessageContent, PencilIcon, deferDuringLayoutMotion, HoverCard, HoverCardTrigger, HoverCardContent, Collapse, Icon, CircleXIcon, ClockIcon } from './chunk-
|
|
5
|
+
import { MessageToolbar, MessageResponse, SquareArrowTopRightIcon, FileTextIcon, Shimmer, ClipboardIcon, Message, MessageContent, PencilIcon, deferDuringLayoutMotion, HoverCard, HoverCardTrigger, HoverCardContent, Collapse, Icon, CircleXIcon, ClockIcon } from './chunk-X33KXNO3.js';
|
|
6
6
|
import { ChevronDownMediumIcon, Button, ScrollArea, Skeleton } from './chunk-UWKO24VT.js';
|
|
7
7
|
import { CrossMediumIcon } from './chunk-2P4IEVOQ.js';
|
|
8
8
|
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent } from './chunk-C3HW5S2Z.js';
|
|
@@ -858,6 +858,7 @@ function CopyButton({ text, className }) {
|
|
|
858
858
|
navigator.clipboard.writeText(text).then(() => {
|
|
859
859
|
setCopied(true);
|
|
860
860
|
setTimeout(() => setCopied(false), 2e3);
|
|
861
|
+
}).catch(() => {
|
|
861
862
|
});
|
|
862
863
|
};
|
|
863
864
|
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
@@ -4660,7 +4661,8 @@ var DocumentStreamCard = memo(function DocumentStreamCard2({
|
|
|
4660
4661
|
} : void 0;
|
|
4661
4662
|
const copyContent = () => {
|
|
4662
4663
|
if (!displayContent) return;
|
|
4663
|
-
navigator.clipboard.writeText(displayContent)
|
|
4664
|
+
void navigator.clipboard.writeText(displayContent).catch(() => {
|
|
4665
|
+
});
|
|
4664
4666
|
setCopied(true);
|
|
4665
4667
|
window.setTimeout(() => setCopied(false), 1200);
|
|
4666
4668
|
};
|
|
@@ -5440,6 +5442,7 @@ var AssistantMessage = memo(function AssistantMessage2({
|
|
|
5440
5442
|
{ isCancelled: () => cancelled }
|
|
5441
5443
|
).then((suggestions) => {
|
|
5442
5444
|
if (!cancelled && suggestions) setPolledFollowUps(suggestions);
|
|
5445
|
+
}).catch(() => {
|
|
5443
5446
|
});
|
|
5444
5447
|
return () => {
|
|
5445
5448
|
cancelled = true;
|
|
@@ -5470,7 +5473,7 @@ var AssistantMessage = memo(function AssistantMessage2({
|
|
|
5470
5473
|
await new Promise((r) => setTimeout(r, 1e3));
|
|
5471
5474
|
}
|
|
5472
5475
|
};
|
|
5473
|
-
fetchMetadata();
|
|
5476
|
+
void fetchMetadata();
|
|
5474
5477
|
return () => {
|
|
5475
5478
|
cancelled = true;
|
|
5476
5479
|
};
|
|
@@ -6099,6 +6102,7 @@ var UserMessageActions = memo(function UserMessageActions2({
|
|
|
6099
6102
|
navigator.clipboard.writeText(messageText).then(() => {
|
|
6100
6103
|
setCopied(true);
|
|
6101
6104
|
setTimeout(() => setCopied(false), 2e3);
|
|
6105
|
+
}).catch(() => {
|
|
6102
6106
|
});
|
|
6103
6107
|
}, [messageText]);
|
|
6104
6108
|
if (isStreaming) return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { getToolMeta } from './chunk-
|
|
2
|
+
import { getToolMeta } from './chunk-X33KXNO3.js';
|
|
3
3
|
import { Button } from './chunk-UWKO24VT.js';
|
|
4
4
|
import { ChevronDownMediumIcon, CrossMediumIcon } from './chunk-TUDJ35AB.js';
|
|
5
5
|
import { useChatClientOptional } from './chunk-6JLWE7M3.js';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { ChevronLeftIcon } from './chunk-CWAOLMFS.js';
|
|
3
3
|
import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from './chunk-T5SANYSX.js';
|
|
4
4
|
import { useIsMobile, useTranslation } from './chunk-77OYEA4D.js';
|
|
5
|
-
import { ToolCallItem, ProcessorIcon } from './chunk-
|
|
6
|
-
import { toolKindVerb, getToolMeta, Shimmer, Collapse, ToolGroupReasoningItem, SkillToolItem, DeviceDesktopIcon, WorldSearchIcon, FileTextIcon, useStreamdownPlugins, CircleXIcon, STREAMDOWN_LINK_SAFETY, Folder1Icon, AppIconFrame, AppIcon, Collapsible, CollapsibleTrigger, CollapsibleContent, SquareArrowTopRightIcon, Icon } from './chunk-
|
|
5
|
+
import { ToolCallItem, ProcessorIcon } from './chunk-BRCS2NHC.js';
|
|
6
|
+
import { toolKindVerb, getToolMeta, Shimmer, Collapse, ToolGroupReasoningItem, SkillToolItem, DeviceDesktopIcon, WorldSearchIcon, FileTextIcon, useStreamdownPlugins, CircleXIcon, STREAMDOWN_LINK_SAFETY, Folder1Icon, AppIconFrame, AppIcon, Collapsible, CollapsibleTrigger, CollapsibleContent, SquareArrowTopRightIcon, Icon } from './chunk-X33KXNO3.js';
|
|
7
7
|
import { ChevronDownMediumIcon, Button, Skeleton, buttonVariants } from './chunk-UWKO24VT.js';
|
|
8
8
|
import { Dialog, DialogContent, DialogTitle, DialogDescription, DialogClose, CrossMediumIcon, DialogHeader, DialogFooter } from './chunk-2P4IEVOQ.js';
|
|
9
9
|
import { zipSync } from './chunk-CDTES65T.js';
|
|
@@ -10517,6 +10517,7 @@ function useSourcesEnrichment(citations) {
|
|
|
10517
10517
|
if (pending.length === 0) return;
|
|
10518
10518
|
Promise.all(pending).then(() => {
|
|
10519
10519
|
if (!cancelled2) syncFromCache(urls, setEnriched);
|
|
10520
|
+
}).catch(() => {
|
|
10520
10521
|
});
|
|
10521
10522
|
return () => {
|
|
10522
10523
|
cancelled2 = true;
|
|
@@ -11531,7 +11532,7 @@ function SourceFavicon({
|
|
|
11531
11532
|
size = "sm",
|
|
11532
11533
|
kind = "web"
|
|
11533
11534
|
}) {
|
|
11534
|
-
const sizeClass =
|
|
11535
|
+
const sizeClass = "size-4";
|
|
11535
11536
|
const iconSize = size === "sm" ? "size-2.5" : "size-4";
|
|
11536
11537
|
const [idx, setIdx] = useState(0);
|
|
11537
11538
|
if (kind === "knowledge") {
|
|
@@ -17723,7 +17724,7 @@ function DelegationToolItem({
|
|
|
17723
17724
|
useEffect(() => {
|
|
17724
17725
|
if (!discoveredRunId || state !== "running" || !apiBasePath) return;
|
|
17725
17726
|
const controller = new AbortController();
|
|
17726
|
-
(async () => {
|
|
17727
|
+
void (async () => {
|
|
17727
17728
|
try {
|
|
17728
17729
|
const res = await fetch(
|
|
17729
17730
|
`${apiBasePath}/v1/chat/${encodeURIComponent(discoveredRunId)}/stream`,
|
package/dist/header.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { ChatHeader, ChatHeaderActions } from './chunk-
|
|
2
|
+
export { ChatHeader, ChatHeaderActions } from './chunk-6554NLI4.js';
|
|
3
3
|
import './chunk-X3QVICX7.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-NGS7RDD3.js';
|
|
5
5
|
import './chunk-CWAOLMFS.js';
|
|
6
6
|
import './chunk-T5SANYSX.js';
|
|
7
7
|
import './chunk-77OYEA4D.js';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
8
|
+
import './chunk-BRCS2NHC.js';
|
|
9
|
+
import './chunk-X33KXNO3.js';
|
|
10
10
|
import './chunk-UWKO24VT.js';
|
|
11
11
|
import './chunk-2P4IEVOQ.js';
|
|
12
12
|
import './chunk-CDTES65T.js';
|
package/dist/message.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { Message, Thinking } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
export { Message, Thinking } from './chunk-LXXLV5GS.js';
|
|
3
|
+
import './chunk-NGS7RDD3.js';
|
|
4
4
|
import './chunk-CWAOLMFS.js';
|
|
5
5
|
import './chunk-T5SANYSX.js';
|
|
6
6
|
import './chunk-77OYEA4D.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-BRCS2NHC.js';
|
|
8
|
+
import './chunk-X33KXNO3.js';
|
|
9
9
|
import './chunk-UWKO24VT.js';
|
|
10
10
|
import './chunk-2P4IEVOQ.js';
|
|
11
11
|
import './chunk-CDTES65T.js';
|
package/dist/parts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { ToolCallItem } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
import { ToolCallItem } from './chunk-BRCS2NHC.js';
|
|
3
|
+
import './chunk-X33KXNO3.js';
|
|
4
4
|
import './chunk-UWKO24VT.js';
|
|
5
5
|
import './chunk-2P4IEVOQ.js';
|
|
6
6
|
import './chunk-TUDJ35AB.js';
|
package/dist/pending-cards.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { PendingCards } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
export { PendingCards } from './chunk-N3I3MZTY.js';
|
|
3
|
+
import './chunk-X33KXNO3.js';
|
|
4
4
|
import './chunk-UWKO24VT.js';
|
|
5
5
|
import './chunk-2P4IEVOQ.js';
|
|
6
6
|
import './chunk-TUDJ35AB.js';
|