@plaisolutions/react 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -0
- package/dist/components/index.d.ts +29 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +374 -8
- package/dist/components/index.js.map +1 -1
- package/dist/index.d.ts +32 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +377 -9
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChatStatus, ChatStatus as ChatStatus$1, ChatTransport, DatasourceReadModel, DatasourceToolResultMetadata, DocumentMetadata, FileUploadState, FileUploadState as FileUploadState$1, FileUploadStatus, FolderReadModel, GetResourceDownloadUrlFn, MediaFile, MessageRating, PlaiChatError, PlaiChatError as PlaiChatError$1, PlaiSseEvent, PlaiSseEvent as PlaiSseEvent$1, RateMessageInput, RateMessageInput as RateMessageInput$1, ResendMessageInput, ResendMessageInput as ResendMessageInput$1, ResourceReadModel, ResourceReadModel as ResourceReadModel$1, SendMessageDocument, SendMessageInput, SendMessageInput as SendMessageInput$1, TranscribeAudioFn, TranscribeAudioFn as TranscribeAudioFn$1, UIAgentInvocationToolCallPart, UIBrowserToolCallPart, UIDatasourceToolCallPart, UIExternalDatasourceToolCallPart, UIFirecrawlSearchToolCallPart, UIHttpRequestToolCallPart, UIMcpToolCallPart, UIMessage, UIMessage as UIMessage$1, UIMessagePart, UIOfficeDocumentsToolCallPart, UIPerplexityToolCallPart, UIThinkingPart, UIThinkingPart as UIThinkingPart$1, UIToolCallPart, UIWorkflowDispatchToolCallPart, UploadFileFn, UploadFileFn as UploadFileFn$1, UploadFileOptions, UploadFileProgress, Usage, Usage as Usage$1 } from "@plaisolutions/client";
|
|
1
|
+
import { ChatStatus, ChatStatus as ChatStatus$1, ChatTransport, DatasourceReadModel, DatasourceToolResultMetadata, DocumentMetadata, FileUploadState, FileUploadState as FileUploadState$1, FileUploadStatus, FolderReadModel, GetMemoryProposalFn, GetResourceDownloadUrlFn, MediaFile, MemoryProposal, MemoryProposal as MemoryProposal$1, MemoryProposalActionInput, MemoryProposalActions, MemoryProposalActions as MemoryProposalActions$1, MemoryProposalStatus, MemoryScope, MessageRating, PlaiChatError, PlaiChatError as PlaiChatError$1, PlaiSseEvent, PlaiSseEvent as PlaiSseEvent$1, RateMessageInput, RateMessageInput as RateMessageInput$1, ResendMessageInput, ResendMessageInput as ResendMessageInput$1, ResolveMemoryProposalFn, ResourceReadModel, ResourceReadModel as ResourceReadModel$1, SendMessageDocument, SendMessageInput, SendMessageInput as SendMessageInput$1, TranscribeAudioFn, TranscribeAudioFn as TranscribeAudioFn$1, UIAgentInvocationToolCallPart, UIBrowserToolCallPart, UIDatasourceToolCallPart, UIExternalDatasourceToolCallPart, UIFirecrawlSearchToolCallPart, UIHttpRequestToolCallPart, UIMcpToolCallPart, UIMessage, UIMessage as UIMessage$1, UIMessagePart, UIOfficeDocumentsToolCallPart, UIPerplexityToolCallPart, UIThinkingPart, UIThinkingPart as UIThinkingPart$1, UIToolCallPart, UIWorkflowDispatchToolCallPart, UploadFileFn, UploadFileFn as UploadFileFn$1, UploadFileOptions, UploadFileProgress, Usage, Usage as Usage$1 } from "@plaisolutions/client";
|
|
2
2
|
import * as react6 from "react";
|
|
3
3
|
import { ButtonHTMLAttributes, DialogHTMLAttributes, HTMLAttributes, PropsWithChildren, ReactNode, SVGProps } from "react";
|
|
4
4
|
|
|
@@ -20,6 +20,9 @@ type UseChatResult = {
|
|
|
20
20
|
uploadState: FileUploadState$1;
|
|
21
21
|
sendMessage: (input: SendMessageInput$1) => Promise<void>;
|
|
22
22
|
rateMessage: (input: RateMessageInput$1) => Promise<void>;
|
|
23
|
+
getMemoryProposal: GetMemoryProposalFn;
|
|
24
|
+
acceptMemoryProposal: ResolveMemoryProposalFn;
|
|
25
|
+
rejectMemoryProposal: ResolveMemoryProposalFn;
|
|
23
26
|
getResourceDownloadUrl: GetResourceDownloadUrlFn;
|
|
24
27
|
resendMessage: (input: ResendMessageInput$1) => Promise<void>;
|
|
25
28
|
transcribeAudio: TranscribeAudioFn$1;
|
|
@@ -80,6 +83,10 @@ type MessagePartsProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
80
83
|
onOpenAgentThread?: (threadId: string) => void;
|
|
81
84
|
getResourceDownloadUrl?: GetResourceDownloadUrlFn;
|
|
82
85
|
locale?: string | null;
|
|
86
|
+
memoryProposal?: {
|
|
87
|
+
actions: MemoryProposalActions$1;
|
|
88
|
+
activeAgentId: string;
|
|
89
|
+
};
|
|
83
90
|
renderText?: (part: Extract<UIMessagePart, {
|
|
84
91
|
type: "text";
|
|
85
92
|
}>, context: {
|
|
@@ -108,6 +115,7 @@ declare function MessageParts({
|
|
|
108
115
|
onOpenAgentThread,
|
|
109
116
|
getResourceDownloadUrl,
|
|
110
117
|
locale,
|
|
118
|
+
memoryProposal,
|
|
111
119
|
renderText,
|
|
112
120
|
renderToolCall,
|
|
113
121
|
renderThinking,
|
|
@@ -602,6 +610,10 @@ type ToolResultCardProps = {
|
|
|
602
610
|
locale?: string | null;
|
|
603
611
|
onOpenAgentThread?: (threadId: string) => void;
|
|
604
612
|
getResourceDownloadUrl?: GetResourceDownloadUrlFn;
|
|
613
|
+
memoryProposal?: {
|
|
614
|
+
actions: MemoryProposalActions$1;
|
|
615
|
+
activeAgentId: string;
|
|
616
|
+
};
|
|
605
617
|
};
|
|
606
618
|
declare function ToolResultCard({
|
|
607
619
|
part,
|
|
@@ -609,9 +621,26 @@ declare function ToolResultCard({
|
|
|
609
621
|
detailsOpen,
|
|
610
622
|
locale,
|
|
611
623
|
onOpenAgentThread,
|
|
612
|
-
getResourceDownloadUrl
|
|
624
|
+
getResourceDownloadUrl,
|
|
625
|
+
memoryProposal
|
|
613
626
|
}: ToolResultCardProps): react6.JSX.Element | null;
|
|
614
627
|
//#endregion
|
|
628
|
+
//#region src/components/memory-proposal-card.d.ts
|
|
629
|
+
type MemoryProposalCardProps = {
|
|
630
|
+
proposal: MemoryProposal$1;
|
|
631
|
+
actions: MemoryProposalActions$1;
|
|
632
|
+
activeAgentId: string;
|
|
633
|
+
locale?: string | null;
|
|
634
|
+
className?: string;
|
|
635
|
+
};
|
|
636
|
+
declare function MemoryProposalCard({
|
|
637
|
+
proposal: initial,
|
|
638
|
+
actions,
|
|
639
|
+
activeAgentId,
|
|
640
|
+
locale,
|
|
641
|
+
className
|
|
642
|
+
}: MemoryProposalCardProps): react6.JSX.Element;
|
|
643
|
+
//#endregion
|
|
615
644
|
//#region src/components/tool-error.d.ts
|
|
616
645
|
type ToolErrorProps = Omit<HTMLAttributes<HTMLElement>, "children" | "part"> & {
|
|
617
646
|
part: UIToolCallPart;
|
|
@@ -721,5 +750,5 @@ declare function ToolResultWorkflowDispatchCard({
|
|
|
721
750
|
className
|
|
722
751
|
}: ToolResultWorkflowDispatchCardProps): react6.JSX.Element;
|
|
723
752
|
//#endregion
|
|
724
|
-
export { AggregatedSourceResults, type AggregatedSourceResultsProps, ArrowUp, AssistantMessage, type AssistantMessageProps, type ChatStatus, Clipboard, type ClipboardProps, type ClipboardState, DatasourceFolderCard, type DatasourceFolderCardProps, type DatasourceReadModel, DatasourceToolResources, type DatasourceToolResourcesProps, DatasourceToolResultCard, type DatasourceToolResultCardProps, type DatasourceToolResultMetadata, type DocumentMetadata, type FileUploadState, type FileUploadStatus, type FolderReadModel, type InvalidPromptFormFile, Loader, type LocalizedOpenGraph, type MediaFile, Message, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, MessageFooter, type MessageFooterProps, MessageHeader, type MessageHeaderProps, MessageParts, type MessagePartsProps, type MessageProps, type MessageRating, MessageRoot, type MessageRootProps, Microphone, type OpenGraphContainer, type OpenGraphField, type OpenGraphTranslation, PROMPT_FORM_FILE_ACCEPT, Paperclip, type PlaiChatError, type PlaiSseEvent, PromptForm, PromptFormAttachButton, type PromptFormAttachButtonProps, PromptFormIconButton, type PromptFormIconButtonProps, type PromptFormProps, type PromptFormSubmitInput, type RateMessageInput, Reload, type ReloadProps, type ResendMessageInput, ResourceCard, type ResourceCardProps, type ResourceReadModel, type RoutedMessageProps, type SendMessageDocument, type SendMessageInput, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, type SourceToolPart, type SpeechToTextController, type SpeechToTextStatus, SpeechToTextToggle, type SpeechToTextToggleProps, Stop, Thinking, type ThinkingProps, ThumbDown, type ThumbDownProps, ThumbUp, type ThumbUpProps, ToolError, type ToolErrorProps, ToolResultAgentInvocationCard, type ToolResultAgentInvocationCardProps, ToolResultBrowserCard, type ToolResultBrowserCardProps, ToolResultCard, type ToolResultCardProps, ToolResultExternalDatasourceCard, type ToolResultExternalDatasourceCardProps, ToolResultHttpRequestCard, type ToolResultHttpRequestCardProps, ToolResultMcpCard, type ToolResultMcpCardProps, ToolResultOfficeDocumentsCard, type ToolResultOfficeDocumentsCardProps, ToolResultWebSearchCard, type ToolResultWebSearchCardProps, ToolResultWorkflowDispatchCard, type ToolResultWorkflowDispatchCardProps, ToolUseIndicator, type ToolUseIndicatorProps, type TranscribeAudioFn, type UIMessage, type UIThinkingPart, type UploadFileFn, type UploadFileOptions, type UploadFileProgress, type Usage, type UseChatOptions, type UseChatResult, type UseSpeechToTextOptions, UserMessage, type UserMessageProps, X, dummyTranscribeAudio, getLocalizedOpenGraphValue, getResourceDescription, getResourceIcon, getResourceOpenGraphImage, getResourceOpenGraphType, getResourceTitle, getResourceType, getResourceUrl, getToolUseLabel, isAllowedPromptFormFile, partitionPromptFormFiles, useChat, useSpeechToText };
|
|
753
|
+
export { AggregatedSourceResults, type AggregatedSourceResultsProps, ArrowUp, AssistantMessage, type AssistantMessageProps, type ChatStatus, Clipboard, type ClipboardProps, type ClipboardState, DatasourceFolderCard, type DatasourceFolderCardProps, type DatasourceReadModel, DatasourceToolResources, type DatasourceToolResourcesProps, DatasourceToolResultCard, type DatasourceToolResultCardProps, type DatasourceToolResultMetadata, type DocumentMetadata, type FileUploadState, type FileUploadStatus, type FolderReadModel, type InvalidPromptFormFile, Loader, type LocalizedOpenGraph, type MediaFile, type MemoryProposal, type MemoryProposalActionInput, type MemoryProposalActions, MemoryProposalCard, type MemoryProposalCardProps, type MemoryProposalStatus, type MemoryScope, Message, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, MessageFooter, type MessageFooterProps, MessageHeader, type MessageHeaderProps, MessageParts, type MessagePartsProps, type MessageProps, type MessageRating, MessageRoot, type MessageRootProps, Microphone, type OpenGraphContainer, type OpenGraphField, type OpenGraphTranslation, PROMPT_FORM_FILE_ACCEPT, Paperclip, type PlaiChatError, type PlaiSseEvent, PromptForm, PromptFormAttachButton, type PromptFormAttachButtonProps, PromptFormIconButton, type PromptFormIconButtonProps, type PromptFormProps, type PromptFormSubmitInput, type RateMessageInput, Reload, type ReloadProps, type ResendMessageInput, ResourceCard, type ResourceCardProps, type ResourceReadModel, type RoutedMessageProps, type SendMessageDocument, type SendMessageInput, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, type SourceToolPart, type SpeechToTextController, type SpeechToTextStatus, SpeechToTextToggle, type SpeechToTextToggleProps, Stop, Thinking, type ThinkingProps, ThumbDown, type ThumbDownProps, ThumbUp, type ThumbUpProps, ToolError, type ToolErrorProps, ToolResultAgentInvocationCard, type ToolResultAgentInvocationCardProps, ToolResultBrowserCard, type ToolResultBrowserCardProps, ToolResultCard, type ToolResultCardProps, ToolResultExternalDatasourceCard, type ToolResultExternalDatasourceCardProps, ToolResultHttpRequestCard, type ToolResultHttpRequestCardProps, ToolResultMcpCard, type ToolResultMcpCardProps, ToolResultOfficeDocumentsCard, type ToolResultOfficeDocumentsCardProps, ToolResultWebSearchCard, type ToolResultWebSearchCardProps, ToolResultWorkflowDispatchCard, type ToolResultWorkflowDispatchCardProps, ToolUseIndicator, type ToolUseIndicatorProps, type TranscribeAudioFn, type UIMessage, type UIThinkingPart, type UploadFileFn, type UploadFileOptions, type UploadFileProgress, type Usage, type UseChatOptions, type UseChatResult, type UseSpeechToTextOptions, UserMessage, type UserMessageProps, X, dummyTranscribeAudio, getLocalizedOpenGraphValue, getResourceDescription, getResourceIcon, getResourceOpenGraphImage, getResourceOpenGraphType, getResourceTitle, getResourceType, getResourceUrl, getToolUseLabel, isAllowedPromptFormFile, partitionPromptFormFiles, useChat, useSpeechToText };
|
|
725
754
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/use-chat.ts","../src/components/message.tsx","../src/components/message-router.tsx","../src/components/assistant-message.tsx","../src/components/user-message.tsx","../src/components/aggregated-source-results.tsx","../src/components/thinking.tsx","../src/components/datasource-tool-result-card.tsx","../src/components/clipboard.tsx","../src/components/thumbs.tsx","../src/components/reload.tsx","../src/components/resource-card.tsx","../src/components/datasource-folder-card.tsx","../src/components/datasource-tool-resources.tsx","../src/components/opengraph.ts","../src/components/sheet/sheet.tsx","../src/components/icons/arrow.tsx","../src/components/icons/loader.tsx","../src/components/icons/microphone.tsx","../src/components/icons/paperclip.tsx","../src/components/icons/stop.tsx","../src/components/icons/x.tsx","../src/components/prompt-form/file-attachments.ts","../src/components/prompt-form/prompt-form.tsx","../src/components/prompt-form/prompt-form-attach-button.tsx","../src/components/speech-to-text-toggle/transcribe-audio.ts","../src/components/speech-to-text-toggle/use-speech-to-text.ts","../src/components/speech-to-text-toggle/speech-to-text-toggle.tsx","../src/components/tool-result-card.tsx","../src/components/tool-error.tsx","../src/components/tool-use-indicator.tsx","../src/components/tool-result-agent-invocation-card.tsx","../src/components/tool-result-browser-card.tsx","../src/components/tool-result-external-datasource-card.tsx","../src/components/tool-result-http-request-card.tsx","../src/components/tool-result-mcp-card.tsx","../src/components/tool-result-office-documents-card.tsx","../src/components/tool-result-web-search-card.tsx","../src/components/tool-result-workflow-dispatch-card.tsx"],"sourcesContent":[],"mappings":";;;;;KAkBY,cAAA;aACC;;;EADD,eAAA,CAAA,EAIQ,WAJM,EAAA;EACb,UAAA,CAAA,EAAA,GAAA,GAAA,MAAA;EAGO,OAAA,CAAA,EAAA,CAAA,KAAA,EAEA,cAFA,EAAA,GAAA,IAAA;EAEA,OAAA,CAAA,EAAA,CAAA,KAAA,EACA,eADA,EAAA,GAAA,IAAA;CACA;AAAa,KAGrB,aAAA,GAHqB;EAGrB,QAAA,EACA,WADa,EAAA;EACb,MAAA,EACF,YADE;EACF,KAAA,EACD,eADC,GAAA,IAAA;EACD,KAAA,EACA,OADA,GAAA,IAAA;EACA,WAAA,EACM,iBADN;EACM,WAAA,EAAA,CAAA,KAAA,EACQ,kBADR,EAAA,GAC6B,OAD7B,CAAA,IAAA,CAAA;EACQ,WAAA,EAAA,CAAA,KAAA,EACA,kBADA,EAAA,GACqB,OADrB,CAAA,IAAA,CAAA;EAAqB,sBAAA,EAElB,wBAFkB;EACrB,aAAA,EAAA,CAAA,KAAA,EAEE,oBAFF,EAAA,GAEyB,OAFzB,CAAA,IAAA,CAAA;EAAqB,eAAA,EAGzB,mBAHyB;EAClB,UAAA,EAGZ,cAHY;EACD,IAAA,EAAA,GAAA,GAAA,IAAA;EAAuB,KAAA,EAAA,GAAA,GAAA,IAAA;EAC7B,OAAA,EAAA,CAAA,QAAA,EAIG,WAJH,EAAA,EAAA,GAAA,IAAA;EACL,UAAA,EAAA,GAAA,GAAA,IAAA;CAGQ;AAAS,iBAIf,OAAA,CAJe,OAAA,EAIE,cAJF,CAAA,EAImB,aAJnB;;;K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BAAA,ChCrBU;EAAA,IAAA;EAAA;AAAA,CAAA,EgCwBvB,0BhCxBuB,CAAA,EgCwBG,MAAA,CAAA,GAAA,CAAA,OhCxBH;;;KiCNd,qCAAA;QACJ;;;AjCKI,iBiC8GI,gCAAA,CjC9GU;EAAA,IAAA;EAAA;AAAA,CAAA,EiCiHvB,qCjCjHuB,CAAA,EiCiHc,MAAA,CAAA,GAAA,CAAA,OjCjHd;;;KkCZd,8BAAA;QAAyC;;;AlCYzC,iBkCJI,yBAAA,ClCIU;EAAA,IAAA;EAAA;AAAA,CAAA,EkCJqC,8BlCIrC,CAAA,EkCJmE,MAAA,CAAA,GAAA,CAAA,OlCInE;;;KmCNd,sBAAA;QACJ;;;AnCKI,iBmCSI,iBAAA,CnCTU;EAAA,IAAA;EAAA;AAAA,CAAA,EmCS6B,sBnCT7B,CAAA,EmCSmD,MAAA,CAAA,GAAA,CAAA,OnCTnD;;;KoCNd,kCAAA;QACJ;;;ApCKI,iBoC6BI,6BAAA,CpC7BU;EAAA,IAAA;EAAA;AAAA,CAAA,EoCgCvB,kCpChCuB,CAAA,EoCgCW,MAAA,CAAA,GAAA,CAAA,OpChCX;;;KqCFd,4BAAA;QACJ,2BAA2B;;;ArCEtB,iBqC8HG,uBAAA,CrC9HH;EAAA,IAAA;EAAA;AAAA,CAAA,EqCiIV,4BrCjIU,CAAA,EqCiIkB,MAAA,CAAA,GAAA,CAAA,OrCjIlB;;;KsCPD,mCAAA;QACJ;;;AtCKI,iBsC8CI,8BAAA,CtC9CU;EAAA,IAAA;EAAA;AAAA,CAAA,EsCiDvB,mCtCjDuB,CAAA,EsCiDY,MAAA,CAAA,GAAA,CAAA,OtCjDZ"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/use-chat.ts","../src/components/message.tsx","../src/components/message-router.tsx","../src/components/assistant-message.tsx","../src/components/user-message.tsx","../src/components/aggregated-source-results.tsx","../src/components/thinking.tsx","../src/components/datasource-tool-result-card.tsx","../src/components/clipboard.tsx","../src/components/thumbs.tsx","../src/components/reload.tsx","../src/components/resource-card.tsx","../src/components/datasource-folder-card.tsx","../src/components/datasource-tool-resources.tsx","../src/components/opengraph.ts","../src/components/sheet/sheet.tsx","../src/components/icons/arrow.tsx","../src/components/icons/loader.tsx","../src/components/icons/microphone.tsx","../src/components/icons/paperclip.tsx","../src/components/icons/stop.tsx","../src/components/icons/x.tsx","../src/components/prompt-form/file-attachments.ts","../src/components/prompt-form/prompt-form.tsx","../src/components/prompt-form/prompt-form-attach-button.tsx","../src/components/speech-to-text-toggle/transcribe-audio.ts","../src/components/speech-to-text-toggle/use-speech-to-text.ts","../src/components/speech-to-text-toggle/speech-to-text-toggle.tsx","../src/components/tool-result-card.tsx","../src/components/memory-proposal-card.tsx","../src/components/tool-error.tsx","../src/components/tool-use-indicator.tsx","../src/components/tool-result-agent-invocation-card.tsx","../src/components/tool-result-browser-card.tsx","../src/components/tool-result-external-datasource-card.tsx","../src/components/tool-result-http-request-card.tsx","../src/components/tool-result-mcp-card.tsx","../src/components/tool-result-office-documents-card.tsx","../src/components/tool-result-web-search-card.tsx","../src/components/tool-result-workflow-dispatch-card.tsx"],"sourcesContent":[],"mappings":";;;;;KAoBY,cAAA;aACC;;;EADD,eAAA,CAAA,EAIQ,WAJM,EAAA;EACb,UAAA,CAAA,EAAA,GAAA,GAAA,MAAA;EAGO,OAAA,CAAA,EAAA,CAAA,KAAA,EAEA,cAFA,EAAA,GAAA,IAAA;EAEA,OAAA,CAAA,EAAA,CAAA,KAAA,EACA,eADA,EAAA,GAAA,IAAA;CACA;AAAa,KAGrB,aAAA,GAHqB;EAGrB,QAAA,EACA,WADa,EAAA;EACb,MAAA,EACF,YADE;EACF,KAAA,EACD,eADC,GAAA,IAAA;EACD,KAAA,EACA,OADA,GAAA,IAAA;EACA,WAAA,EACM,iBADN;EACM,WAAA,EAAA,CAAA,KAAA,EACQ,kBADR,EAAA,GAC6B,OAD7B,CAAA,IAAA,CAAA;EACQ,WAAA,E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;QAAyC;;;AnCczC,iBmCNI,yBAAA,CnCMU;EAAA,IAAA;EAAA;AAAA,CAAA,EmCNqC,8BnCMrC,CAAA,EmCNmE,MAAA,CAAA,GAAA,CAAA,OnCMnE;;;KoCRd,sBAAA;QACJ;;;ApCOI,iBoCOI,iBAAA,CpCPU;EAAA,IAAA;EAAA;AAAA,CAAA,EoCO6B,sBpCP7B,CAAA,EoCOmD,MAAA,CAAA,GAAA,CAAA,OpCPnD;;;KqCRd,kCAAA;QACJ;;;ArCOI,iBqC2BI,6BAAA,CrC3BU;EAAA,IAAA;EAAA;AAAA,CAAA,EqC8BvB,kCrC9BuB,CAAA,EqC8BW,MAAA,CAAA,GAAA,CAAA,OrC9BX;;;KsCJd,4BAAA;QACJ,2BAA2B;;;AtCItB,iBsC4HG,uBAAA,CtC5HH;EAAA,IAAA;EAAA;AAAA,CAAA,EsC+HV,4BtC/HU,CAAA,EsC+HkB,MAAA,CAAA,GAAA,CAAA,OtC/HlB;;;KuCTD,mCAAA;QACJ;;;AvCOI,iBuC4CI,8BAAA,CvC5CU;EAAA,IAAA;EAAA;AAAA,CAAA,EuC+CvB,mCvC/CuB,CAAA,EuC+CY,MAAA,CAAA,GAAA,CAAA,OvC/CZ"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlaiChat } from "@plaisolutions/client";
|
|
1
|
+
import { HttpStatusError, PlaiChat } from "@plaisolutions/client";
|
|
2
2
|
import { createContext, forwardRef, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { Bot, Brain, Check, CheckCircle2, ChevronDown, CircleX, Copy, Database, File, FileText, Globe, LoaderCircle, MessageSquare, Minus, Plug, Plus, RotateCcw, ThumbsDown, ThumbsUp, Workflow, XCircle } from "lucide-react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -30,6 +30,9 @@ function useChat(options) {
|
|
|
30
30
|
const actions = useMemo(() => ({
|
|
31
31
|
sendMessage: chat.sendMessage.bind(chat),
|
|
32
32
|
rateMessage: chat.rateMessage.bind(chat),
|
|
33
|
+
getMemoryProposal: chat.getMemoryProposal.bind(chat),
|
|
34
|
+
acceptMemoryProposal: chat.acceptMemoryProposal.bind(chat),
|
|
35
|
+
rejectMemoryProposal: chat.rejectMemoryProposal.bind(chat),
|
|
33
36
|
getResourceDownloadUrl: chat.getResourceDownloadUrl.bind(chat),
|
|
34
37
|
resendMessage: chat.resendMessage.bind(chat),
|
|
35
38
|
transcribeAudio: chat.transcribeAudio.bind(chat),
|
|
@@ -2403,6 +2406,7 @@ const TOOL_USE_ACTIONS = {
|
|
|
2403
2406
|
external_datasource: "query",
|
|
2404
2407
|
firecrawl_search: "web",
|
|
2405
2408
|
http_request: "request",
|
|
2409
|
+
memory_proposal: "tool",
|
|
2406
2410
|
mcp_tool: "request",
|
|
2407
2411
|
office_documents: "documents",
|
|
2408
2412
|
perplexity: "web",
|
|
@@ -2541,6 +2545,357 @@ function ToolUseIndicator({ part, locale, className,...props }) {
|
|
|
2541
2545
|
});
|
|
2542
2546
|
}
|
|
2543
2547
|
|
|
2548
|
+
//#endregion
|
|
2549
|
+
//#region src/components/memory-proposal-card.tsx
|
|
2550
|
+
const COPY = {
|
|
2551
|
+
en: {
|
|
2552
|
+
title: "Memory proposal",
|
|
2553
|
+
user: "Personal memory",
|
|
2554
|
+
project: "Project learning",
|
|
2555
|
+
create: "Create",
|
|
2556
|
+
update: "Update",
|
|
2557
|
+
delete: "Delete",
|
|
2558
|
+
previous: "Previous content",
|
|
2559
|
+
proposed: "Proposed content",
|
|
2560
|
+
accept: "Accept",
|
|
2561
|
+
reject: "Reject",
|
|
2562
|
+
review: "Sent for admin review",
|
|
2563
|
+
unavailable: "This proposal cannot be resolved here",
|
|
2564
|
+
accepted: "Accepted",
|
|
2565
|
+
rejected: "Rejected",
|
|
2566
|
+
expired: "Expired",
|
|
2567
|
+
conflicted: "Could not be applied because the memory changed",
|
|
2568
|
+
conflictError: "The memory changed. The latest status has been loaded.",
|
|
2569
|
+
expiredError: "This proposal is no longer available.",
|
|
2570
|
+
permissionError: "You no longer have permission to resolve this proposal.",
|
|
2571
|
+
genericError: "The proposal could not be resolved."
|
|
2572
|
+
},
|
|
2573
|
+
es: {
|
|
2574
|
+
title: "Propuesta de memoria",
|
|
2575
|
+
user: "Memoria personal",
|
|
2576
|
+
project: "Aprendizaje del proyecto",
|
|
2577
|
+
create: "Crear",
|
|
2578
|
+
update: "Actualizar",
|
|
2579
|
+
delete: "Eliminar",
|
|
2580
|
+
previous: "Contenido anterior",
|
|
2581
|
+
proposed: "Contenido propuesto",
|
|
2582
|
+
accept: "Aceptar",
|
|
2583
|
+
reject: "Rechazar",
|
|
2584
|
+
review: "Enviado para revisión de un administrador",
|
|
2585
|
+
unavailable: "Esta propuesta no se puede resolver aquí",
|
|
2586
|
+
accepted: "Aceptada",
|
|
2587
|
+
rejected: "Rechazada",
|
|
2588
|
+
expired: "Caducada",
|
|
2589
|
+
conflicted: "No se pudo aplicar porque la memoria cambió",
|
|
2590
|
+
conflictError: "La memoria cambió. Se ha cargado el estado más reciente.",
|
|
2591
|
+
expiredError: "Esta propuesta ya no está disponible.",
|
|
2592
|
+
permissionError: "Ya no tienes permiso para resolver esta propuesta.",
|
|
2593
|
+
genericError: "No se pudo resolver la propuesta."
|
|
2594
|
+
},
|
|
2595
|
+
ca: {
|
|
2596
|
+
title: "Proposta de memòria",
|
|
2597
|
+
user: "Memòria personal",
|
|
2598
|
+
project: "Aprenentatge del projecte",
|
|
2599
|
+
create: "Crear",
|
|
2600
|
+
update: "Actualitzar",
|
|
2601
|
+
delete: "Eliminar",
|
|
2602
|
+
previous: "Contingut anterior",
|
|
2603
|
+
proposed: "Contingut proposat",
|
|
2604
|
+
accept: "Acceptar",
|
|
2605
|
+
reject: "Rebutjar",
|
|
2606
|
+
review: "Enviat per a revisió d'un administrador",
|
|
2607
|
+
unavailable: "Aquesta proposta no es pot resoldre aquí",
|
|
2608
|
+
accepted: "Acceptada",
|
|
2609
|
+
rejected: "Rebutjada",
|
|
2610
|
+
expired: "Caducada",
|
|
2611
|
+
conflicted: "No s'ha pogut aplicar perquè la memòria ha canviat",
|
|
2612
|
+
conflictError: "La memòria ha canviat. S'ha carregat l'estat més recent.",
|
|
2613
|
+
expiredError: "Aquesta proposta ja no està disponible.",
|
|
2614
|
+
permissionError: "Ja no tens permís per resoldre aquesta proposta.",
|
|
2615
|
+
genericError: "No s'ha pogut resoldre la proposta."
|
|
2616
|
+
},
|
|
2617
|
+
da: {
|
|
2618
|
+
title: "Hukommelsesforslag",
|
|
2619
|
+
user: "Personlig hukommelse",
|
|
2620
|
+
project: "Projektlæring",
|
|
2621
|
+
create: "Opret",
|
|
2622
|
+
update: "Opdater",
|
|
2623
|
+
delete: "Slet",
|
|
2624
|
+
previous: "Tidligere indhold",
|
|
2625
|
+
proposed: "Foreslået indhold",
|
|
2626
|
+
accept: "Acceptér",
|
|
2627
|
+
reject: "Afvis",
|
|
2628
|
+
review: "Sendt til administratorgennemgang",
|
|
2629
|
+
unavailable: "Forslaget kan ikke behandles her",
|
|
2630
|
+
accepted: "Accepteret",
|
|
2631
|
+
rejected: "Afvist",
|
|
2632
|
+
expired: "Udløbet",
|
|
2633
|
+
conflicted: "Kunne ikke anvendes, fordi hukommelsen blev ændret",
|
|
2634
|
+
conflictError: "Hukommelsen blev ændret. Den seneste status er indlæst.",
|
|
2635
|
+
expiredError: "Forslaget er ikke længere tilgængeligt.",
|
|
2636
|
+
permissionError: "Du har ikke længere tilladelse til at behandle forslaget.",
|
|
2637
|
+
genericError: "Forslaget kunne ikke behandles."
|
|
2638
|
+
},
|
|
2639
|
+
de: {
|
|
2640
|
+
title: "Speichervorschlag",
|
|
2641
|
+
user: "Persönliche Erinnerung",
|
|
2642
|
+
project: "Projektwissen",
|
|
2643
|
+
create: "Erstellen",
|
|
2644
|
+
update: "Aktualisieren",
|
|
2645
|
+
delete: "Löschen",
|
|
2646
|
+
previous: "Vorheriger Inhalt",
|
|
2647
|
+
proposed: "Vorgeschlagener Inhalt",
|
|
2648
|
+
accept: "Akzeptieren",
|
|
2649
|
+
reject: "Ablehnen",
|
|
2650
|
+
review: "Zur Administratorprüfung gesendet",
|
|
2651
|
+
unavailable: "Dieser Vorschlag kann hier nicht bearbeitet werden",
|
|
2652
|
+
accepted: "Akzeptiert",
|
|
2653
|
+
rejected: "Abgelehnt",
|
|
2654
|
+
expired: "Abgelaufen",
|
|
2655
|
+
conflicted: "Nicht angewendet, da sich die Erinnerung geändert hat",
|
|
2656
|
+
conflictError: "Die Erinnerung hat sich geändert. Der aktuelle Status wurde geladen.",
|
|
2657
|
+
expiredError: "Dieser Vorschlag ist nicht mehr verfügbar.",
|
|
2658
|
+
permissionError: "Sie dürfen diesen Vorschlag nicht mehr bearbeiten.",
|
|
2659
|
+
genericError: "Der Vorschlag konnte nicht bearbeitet werden."
|
|
2660
|
+
},
|
|
2661
|
+
fr: {
|
|
2662
|
+
title: "Proposition de mémoire",
|
|
2663
|
+
user: "Mémoire personnelle",
|
|
2664
|
+
project: "Apprentissage du projet",
|
|
2665
|
+
create: "Créer",
|
|
2666
|
+
update: "Modifier",
|
|
2667
|
+
delete: "Supprimer",
|
|
2668
|
+
previous: "Contenu précédent",
|
|
2669
|
+
proposed: "Contenu proposé",
|
|
2670
|
+
accept: "Accepter",
|
|
2671
|
+
reject: "Refuser",
|
|
2672
|
+
review: "Envoyé à un administrateur pour examen",
|
|
2673
|
+
unavailable: "Cette proposition ne peut pas être traitée ici",
|
|
2674
|
+
accepted: "Acceptée",
|
|
2675
|
+
rejected: "Refusée",
|
|
2676
|
+
expired: "Expirée",
|
|
2677
|
+
conflicted: "Impossible à appliquer car la mémoire a changé",
|
|
2678
|
+
conflictError: "La mémoire a changé. Le dernier état a été chargé.",
|
|
2679
|
+
expiredError: "Cette proposition n'est plus disponible.",
|
|
2680
|
+
permissionError: "Vous n'avez plus l'autorisation de traiter cette proposition.",
|
|
2681
|
+
genericError: "La proposition n'a pas pu être traitée."
|
|
2682
|
+
},
|
|
2683
|
+
it: {
|
|
2684
|
+
title: "Proposta di memoria",
|
|
2685
|
+
user: "Memoria personale",
|
|
2686
|
+
project: "Apprendimento del progetto",
|
|
2687
|
+
create: "Crea",
|
|
2688
|
+
update: "Aggiorna",
|
|
2689
|
+
delete: "Elimina",
|
|
2690
|
+
previous: "Contenuto precedente",
|
|
2691
|
+
proposed: "Contenuto proposto",
|
|
2692
|
+
accept: "Accetta",
|
|
2693
|
+
reject: "Rifiuta",
|
|
2694
|
+
review: "Inviata alla revisione di un amministratore",
|
|
2695
|
+
unavailable: "Questa proposta non può essere gestita qui",
|
|
2696
|
+
accepted: "Accettata",
|
|
2697
|
+
rejected: "Rifiutata",
|
|
2698
|
+
expired: "Scaduta",
|
|
2699
|
+
conflicted: "Non applicata perché la memoria è cambiata",
|
|
2700
|
+
conflictError: "La memoria è cambiata. È stato caricato lo stato più recente.",
|
|
2701
|
+
expiredError: "Questa proposta non è più disponibile.",
|
|
2702
|
+
permissionError: "Non hai più il permesso di gestire questa proposta.",
|
|
2703
|
+
genericError: "Impossibile gestire la proposta."
|
|
2704
|
+
},
|
|
2705
|
+
no: {
|
|
2706
|
+
title: "Minneforslag",
|
|
2707
|
+
user: "Personlig minne",
|
|
2708
|
+
project: "Prosjektlæring",
|
|
2709
|
+
create: "Opprett",
|
|
2710
|
+
update: "Oppdater",
|
|
2711
|
+
delete: "Slett",
|
|
2712
|
+
previous: "Tidligere innhold",
|
|
2713
|
+
proposed: "Foreslått innhold",
|
|
2714
|
+
accept: "Godta",
|
|
2715
|
+
reject: "Avvis",
|
|
2716
|
+
review: "Sendt til administratorgjennomgang",
|
|
2717
|
+
unavailable: "Forslaget kan ikke behandles her",
|
|
2718
|
+
accepted: "Godtatt",
|
|
2719
|
+
rejected: "Avvist",
|
|
2720
|
+
expired: "Utløpt",
|
|
2721
|
+
conflicted: "Kunne ikke brukes fordi minnet ble endret",
|
|
2722
|
+
conflictError: "Minnet ble endret. Den nyeste statusen er lastet inn.",
|
|
2723
|
+
expiredError: "Forslaget er ikke lenger tilgjengelig.",
|
|
2724
|
+
permissionError: "Du har ikke lenger tillatelse til å behandle forslaget.",
|
|
2725
|
+
genericError: "Forslaget kunne ikke behandles."
|
|
2726
|
+
},
|
|
2727
|
+
pt: {
|
|
2728
|
+
title: "Proposta de memória",
|
|
2729
|
+
user: "Memória pessoal",
|
|
2730
|
+
project: "Aprendizagem do projeto",
|
|
2731
|
+
create: "Criar",
|
|
2732
|
+
update: "Atualizar",
|
|
2733
|
+
delete: "Eliminar",
|
|
2734
|
+
previous: "Conteúdo anterior",
|
|
2735
|
+
proposed: "Conteúdo proposto",
|
|
2736
|
+
accept: "Aceitar",
|
|
2737
|
+
reject: "Rejeitar",
|
|
2738
|
+
review: "Enviado para revisão de um administrador",
|
|
2739
|
+
unavailable: "Esta proposta não pode ser resolvida aqui",
|
|
2740
|
+
accepted: "Aceite",
|
|
2741
|
+
rejected: "Rejeitada",
|
|
2742
|
+
expired: "Expirada",
|
|
2743
|
+
conflicted: "Não aplicada porque a memória foi alterada",
|
|
2744
|
+
conflictError: "A memória foi alterada. O estado mais recente foi carregado.",
|
|
2745
|
+
expiredError: "Esta proposta já não está disponível.",
|
|
2746
|
+
permissionError: "Já não tem permissão para resolver esta proposta.",
|
|
2747
|
+
genericError: "Não foi possível resolver a proposta."
|
|
2748
|
+
},
|
|
2749
|
+
sv: {
|
|
2750
|
+
title: "Minnesförslag",
|
|
2751
|
+
user: "Personligt minne",
|
|
2752
|
+
project: "Projektlärdom",
|
|
2753
|
+
create: "Skapa",
|
|
2754
|
+
update: "Uppdatera",
|
|
2755
|
+
delete: "Ta bort",
|
|
2756
|
+
previous: "Tidigare innehåll",
|
|
2757
|
+
proposed: "Föreslaget innehåll",
|
|
2758
|
+
accept: "Godkänn",
|
|
2759
|
+
reject: "Avvisa",
|
|
2760
|
+
review: "Skickat för administratörsgranskning",
|
|
2761
|
+
unavailable: "Förslaget kan inte hanteras här",
|
|
2762
|
+
accepted: "Godkänt",
|
|
2763
|
+
rejected: "Avvisat",
|
|
2764
|
+
expired: "Utgånget",
|
|
2765
|
+
conflicted: "Kunde inte tillämpas eftersom minnet ändrades",
|
|
2766
|
+
conflictError: "Minnet ändrades. Den senaste statusen har lästs in.",
|
|
2767
|
+
expiredError: "Förslaget är inte längre tillgängligt.",
|
|
2768
|
+
permissionError: "Du har inte längre behörighet att hantera förslaget.",
|
|
2769
|
+
genericError: "Förslaget kunde inte hanteras."
|
|
2770
|
+
}
|
|
2771
|
+
};
|
|
2772
|
+
const REDACTED = "[redacted]";
|
|
2773
|
+
function MemoryProposalCard({ proposal: initial, actions, activeAgentId, locale, className }) {
|
|
2774
|
+
const copy = COPY[getSupportedToolLocale(locale)];
|
|
2775
|
+
const [proposal, setProposal] = useState(initial);
|
|
2776
|
+
const [resolving, setResolving] = useState(false);
|
|
2777
|
+
const [error, setError] = useState(null);
|
|
2778
|
+
useEffect(() => setProposal((current) => mergeProposal(current, initial)), [initial]);
|
|
2779
|
+
async function resolve(accept) {
|
|
2780
|
+
if (resolving) return;
|
|
2781
|
+
setResolving(true);
|
|
2782
|
+
setError(null);
|
|
2783
|
+
try {
|
|
2784
|
+
const next = accept ? await actions.acceptMemoryProposal({ proposalId: proposal.id }) : await actions.rejectMemoryProposal({ proposalId: proposal.id });
|
|
2785
|
+
setProposal((current) => mergeProposal(current, next));
|
|
2786
|
+
} catch (cause) {
|
|
2787
|
+
const status = cause instanceof HttpStatusError ? cause.status : 0;
|
|
2788
|
+
setError(status === 409 ? copy.conflictError : status === 410 ? copy.expiredError : status === 401 || status === 403 ? copy.permissionError : copy.genericError);
|
|
2789
|
+
try {
|
|
2790
|
+
const latest = await actions.getMemoryProposal({ proposalId: proposal.id });
|
|
2791
|
+
setProposal((current) => mergeProposal(current, latest));
|
|
2792
|
+
} catch {}
|
|
2793
|
+
} finally {
|
|
2794
|
+
setResolving(false);
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
const canResolve = proposal.status === "PENDING" && proposal.can_resolve === true && proposal.agent_id === activeAgentId;
|
|
2798
|
+
const statusCopy = proposal.status === "ACCEPTED" ? copy.accepted : proposal.status === "REJECTED" ? copy.rejected : proposal.status === "EXPIRED" ? copy.expired : proposal.status === "CONFLICTED" ? copy.conflicted : null;
|
|
2799
|
+
const operation = proposal.operation === "CREATE" ? copy.create : proposal.operation === "UPDATE" ? copy.update : copy.delete;
|
|
2800
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
2801
|
+
className: joinClasses("space-y-3 rounded-lg border border-emerald-200 bg-emerald-50/30 p-4 text-left", className),
|
|
2802
|
+
"data-memory-proposal-id": proposal.id,
|
|
2803
|
+
children: [
|
|
2804
|
+
/* @__PURE__ */ jsxs("header", {
|
|
2805
|
+
className: "space-y-2",
|
|
2806
|
+
children: [/* @__PURE__ */ jsxs("h4", {
|
|
2807
|
+
className: "flex items-center gap-2 text-sm font-semibold text-slate-900",
|
|
2808
|
+
children: [/* @__PURE__ */ jsx(Brain, { className: "size-4" }), copy.title]
|
|
2809
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
2810
|
+
className: "flex flex-wrap gap-2 text-xs",
|
|
2811
|
+
children: [
|
|
2812
|
+
/* @__PURE__ */ jsx("span", {
|
|
2813
|
+
className: "rounded-full border border-slate-300 bg-white px-2 py-0.5",
|
|
2814
|
+
children: proposal.scope === "USER" ? copy.user : copy.project
|
|
2815
|
+
}),
|
|
2816
|
+
/* @__PURE__ */ jsx("span", {
|
|
2817
|
+
className: "rounded-full bg-slate-100 px-2 py-0.5",
|
|
2818
|
+
children: operation
|
|
2819
|
+
}),
|
|
2820
|
+
/* @__PURE__ */ jsx("span", {
|
|
2821
|
+
className: "rounded-full bg-slate-100 px-2 py-0.5",
|
|
2822
|
+
children: formatCategory(proposal.category)
|
|
2823
|
+
})
|
|
2824
|
+
]
|
|
2825
|
+
})]
|
|
2826
|
+
}),
|
|
2827
|
+
proposal.previous_content && proposal.previous_content !== REDACTED ? /* @__PURE__ */ jsxs("div", {
|
|
2828
|
+
className: "rounded-md bg-slate-100 p-3 text-sm",
|
|
2829
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
2830
|
+
className: "mb-1 block text-xs font-medium text-slate-500",
|
|
2831
|
+
children: copy.previous
|
|
2832
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
2833
|
+
className: "whitespace-pre-wrap break-words",
|
|
2834
|
+
children: proposal.previous_content
|
|
2835
|
+
})]
|
|
2836
|
+
}) : null,
|
|
2837
|
+
proposal.content && proposal.content !== REDACTED ? /* @__PURE__ */ jsxs("div", {
|
|
2838
|
+
className: "text-sm",
|
|
2839
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
2840
|
+
className: "mb-1 block text-xs font-medium text-slate-500",
|
|
2841
|
+
children: copy.proposed
|
|
2842
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
2843
|
+
className: "whitespace-pre-wrap break-words",
|
|
2844
|
+
children: proposal.content
|
|
2845
|
+
})]
|
|
2846
|
+
}) : null,
|
|
2847
|
+
canResolve ? /* @__PURE__ */ jsxs("div", {
|
|
2848
|
+
className: "flex gap-2",
|
|
2849
|
+
children: [/* @__PURE__ */ jsxs("button", {
|
|
2850
|
+
type: "button",
|
|
2851
|
+
disabled: resolving,
|
|
2852
|
+
onClick: () => void resolve(true),
|
|
2853
|
+
className: "inline-flex items-center rounded-md bg-slate-900 px-3 py-1.5 text-xs font-medium text-white disabled:opacity-50",
|
|
2854
|
+
children: [resolving ? /* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 size-3 animate-spin" }) : null, copy.accept]
|
|
2855
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
2856
|
+
type: "button",
|
|
2857
|
+
disabled: resolving,
|
|
2858
|
+
onClick: () => void resolve(false),
|
|
2859
|
+
className: "rounded-md border border-slate-300 bg-white px-3 py-1.5 text-xs font-medium disabled:opacity-50",
|
|
2860
|
+
children: copy.reject
|
|
2861
|
+
})]
|
|
2862
|
+
}) : null,
|
|
2863
|
+
proposal.status === "PENDING" && !canResolve ? /* @__PURE__ */ jsx("p", {
|
|
2864
|
+
className: "text-xs font-medium text-slate-500",
|
|
2865
|
+
children: proposal.scope === "PROJECT" ? copy.review : copy.unavailable
|
|
2866
|
+
}) : null,
|
|
2867
|
+
proposal.status === "ACCEPTED" && statusCopy ? /* @__PURE__ */ jsxs("span", {
|
|
2868
|
+
className: "inline-flex items-center gap-1.5 rounded-full border bg-white px-3 py-1 text-xs font-medium text-slate-900 shadow-sm",
|
|
2869
|
+
children: [statusCopy, /* @__PURE__ */ jsx(Check, {
|
|
2870
|
+
className: "size-3.5 stroke-[2.5] text-emerald-600",
|
|
2871
|
+
"aria-hidden": "true"
|
|
2872
|
+
})]
|
|
2873
|
+
}) : null,
|
|
2874
|
+
statusCopy && proposal.status !== "ACCEPTED" ? /* @__PURE__ */ jsx("p", {
|
|
2875
|
+
className: "text-xs font-medium text-slate-500",
|
|
2876
|
+
children: statusCopy
|
|
2877
|
+
}) : null,
|
|
2878
|
+
error ? /* @__PURE__ */ jsx("p", {
|
|
2879
|
+
className: "text-xs text-red-600",
|
|
2880
|
+
children: error
|
|
2881
|
+
}) : null
|
|
2882
|
+
]
|
|
2883
|
+
});
|
|
2884
|
+
}
|
|
2885
|
+
function mergeProposal(current, incoming) {
|
|
2886
|
+
if (current.id !== incoming.id) return incoming;
|
|
2887
|
+
return {
|
|
2888
|
+
...incoming,
|
|
2889
|
+
content: incoming.content === REDACTED ? current.content : incoming.content,
|
|
2890
|
+
previous_content: incoming.previous_content === REDACTED ? current.previous_content : incoming.previous_content,
|
|
2891
|
+
rationale: incoming.rationale === REDACTED ? current.rationale : incoming.rationale
|
|
2892
|
+
};
|
|
2893
|
+
}
|
|
2894
|
+
function formatCategory(category) {
|
|
2895
|
+
const value = category.replaceAll("_", " ").toLowerCase();
|
|
2896
|
+
return `${value.charAt(0).toUpperCase()}${value.slice(1)}`;
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2544
2899
|
//#endregion
|
|
2545
2900
|
//#region src/components/tool-result-card.tsx
|
|
2546
2901
|
function formatJson(value) {
|
|
@@ -2558,7 +2913,18 @@ function getDatasourceResources$1(part) {
|
|
|
2558
2913
|
const resources = part.metadata.resources;
|
|
2559
2914
|
return Array.isArray(resources) ? resources.filter(isDatasourceResource) : [];
|
|
2560
2915
|
}
|
|
2561
|
-
function ToolResultCard({ part, className, detailsOpen = true, locale, onOpenAgentThread, getResourceDownloadUrl }) {
|
|
2916
|
+
function ToolResultCard({ part, className, detailsOpen = true, locale, onOpenAgentThread, getResourceDownloadUrl, memoryProposal }) {
|
|
2917
|
+
if (part.toolType === "memory_proposal") {
|
|
2918
|
+
const proposal = part.metadata?.proposal;
|
|
2919
|
+
if (!memoryProposal || !proposal || typeof proposal !== "object") return null;
|
|
2920
|
+
return /* @__PURE__ */ jsx(MemoryProposalCard, {
|
|
2921
|
+
proposal,
|
|
2922
|
+
actions: memoryProposal.actions,
|
|
2923
|
+
activeAgentId: memoryProposal.activeAgentId,
|
|
2924
|
+
locale,
|
|
2925
|
+
className
|
|
2926
|
+
});
|
|
2927
|
+
}
|
|
2562
2928
|
if (part.state === "pending") return /* @__PURE__ */ jsx(ToolUseIndicator, {
|
|
2563
2929
|
part,
|
|
2564
2930
|
locale,
|
|
@@ -2820,7 +3186,7 @@ function getMessageTextClassName(role) {
|
|
|
2820
3186
|
function getMessageTextAlignmentClassName(role) {
|
|
2821
3187
|
return role === "user" ? "text-right" : "text-left";
|
|
2822
3188
|
}
|
|
2823
|
-
function renderPart(part, index, message, isStreaming, onOpenAgentThread, getResourceDownloadUrl, locale, renderText, renderToolCall, renderThinking, thinkingLabel, completedThinkingLabel, textClassName) {
|
|
3189
|
+
function renderPart(part, index, message, isStreaming, onOpenAgentThread, getResourceDownloadUrl, locale, memoryProposal, renderText, renderToolCall, renderThinking, thinkingLabel, completedThinkingLabel, textClassName) {
|
|
2824
3190
|
if (part.type === "text") {
|
|
2825
3191
|
if (renderText) return /* @__PURE__ */ jsx("div", { children: renderText(part, {
|
|
2826
3192
|
message,
|
|
@@ -2877,7 +3243,8 @@ function renderPart(part, index, message, isStreaming, onOpenAgentThread, getRes
|
|
|
2877
3243
|
part,
|
|
2878
3244
|
locale,
|
|
2879
3245
|
onOpenAgentThread,
|
|
2880
|
-
getResourceDownloadUrl
|
|
3246
|
+
getResourceDownloadUrl,
|
|
3247
|
+
memoryProposal
|
|
2881
3248
|
}, `tool-${part.id}-${index}`);
|
|
2882
3249
|
}
|
|
2883
3250
|
if (part.type === "thinking") {
|
|
@@ -2933,7 +3300,7 @@ function aggregateSourceToolParts(parts, position) {
|
|
|
2933
3300
|
...remainingParts.slice(insertionIndex)
|
|
2934
3301
|
];
|
|
2935
3302
|
}
|
|
2936
|
-
function MessageParts({ message, collapseThreshold = DEFAULT_COLLAPSE_THRESHOLD, sourceToolResultsLayout = "aggregated", sourceToolResultsPosition, maxVisibleSourceCards = 3, datasourceToolResultsPosition, onOpenAgentThread, getResourceDownloadUrl, locale, renderText, renderToolCall, renderThinking, isStreaming = false, thinkingLabel, completedThinkingLabel, readMoreLabel = "Read more", readLessLabel = "Read less", className,...props }) {
|
|
3303
|
+
function MessageParts({ message, collapseThreshold = DEFAULT_COLLAPSE_THRESHOLD, sourceToolResultsLayout = "aggregated", sourceToolResultsPosition, maxVisibleSourceCards = 3, datasourceToolResultsPosition, onOpenAgentThread, getResourceDownloadUrl, locale, memoryProposal, renderText, renderToolCall, renderThinking, isStreaming = false, thinkingLabel, completedThinkingLabel, readMoreLabel = "Read more", readLessLabel = "Read less", className,...props }) {
|
|
2937
3304
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
2938
3305
|
const textContent = useMemo(() => message.parts.filter((part) => part.type === "text").map((part) => part.text).join("\n"), [message.parts]);
|
|
2939
3306
|
const canCollapse = message.role === "user" && message.parts.every((part) => part.type === "text") && textContent.length > collapseThreshold;
|
|
@@ -2963,7 +3330,7 @@ function MessageParts({ message, collapseThreshold = DEFAULT_COLLAPSE_THRESHOLD,
|
|
|
2963
3330
|
locale,
|
|
2964
3331
|
maxVisible: maxVisibleSourceCards,
|
|
2965
3332
|
getResourceDownloadUrl
|
|
2966
|
-
}, `source-results-${item.index}`) : renderPart(item.part, item.index, message, isStreaming, onOpenAgentThread, getResourceDownloadUrl, locale, renderText, renderToolCall, renderThinking, thinkingLabel, completedThinkingLabel, textClassName)), canCollapse ? /* @__PURE__ */ jsx("button", {
|
|
3333
|
+
}, `source-results-${item.index}`) : renderPart(item.part, item.index, message, isStreaming, onOpenAgentThread, getResourceDownloadUrl, locale, memoryProposal, renderText, renderToolCall, renderThinking, thinkingLabel, completedThinkingLabel, textClassName)), canCollapse ? /* @__PURE__ */ jsx("button", {
|
|
2967
3334
|
type: "button",
|
|
2968
3335
|
className: "text-xs font-medium text-slate-600 hover:text-slate-900",
|
|
2969
3336
|
onClick: () => setIsExpanded((previous) => !previous),
|
|
@@ -2979,7 +3346,8 @@ function getDatasourceResources(part) {
|
|
|
2979
3346
|
const resources = part.metadata?.resources;
|
|
2980
3347
|
return Array.isArray(resources) ? resources.filter(isDatasourceResource) : [];
|
|
2981
3348
|
}
|
|
2982
|
-
function isRenderableToolPart(part, locale, hasCustomRenderer = false) {
|
|
3349
|
+
function isRenderableToolPart(part, locale, hasCustomRenderer = false, hasMemoryProposalClient = false) {
|
|
3350
|
+
if (part.toolType === "memory_proposal") return hasMemoryProposalClient;
|
|
2983
3351
|
if (hasCustomRenderer || part.toolType !== "datasource") return true;
|
|
2984
3352
|
if (part.state !== "completed") return true;
|
|
2985
3353
|
return getDatasourceResourceCards(getDatasourceResources(part), locale).length > 0;
|
|
@@ -2993,7 +3361,7 @@ function withParts(message, parts) {
|
|
|
2993
3361
|
function AssistantMessage({ message, avatar, footer, messageClassName, contentClassName, toolResultsClassName, toolPartsClassName, contentPartsClassName, messagePartsProps, className,...props }) {
|
|
2994
3362
|
const toolParts = message.parts.filter((part) => part.type === "tool-call");
|
|
2995
3363
|
const contentParts = message.parts.filter((part) => part.type !== "tool-call");
|
|
2996
|
-
const renderableToolParts = toolParts.filter((part) => isRenderableToolPart(part, messagePartsProps?.locale, Boolean(messagePartsProps?.renderToolCall)));
|
|
3364
|
+
const renderableToolParts = toolParts.filter((part) => isRenderableToolPart(part, messagePartsProps?.locale, Boolean(messagePartsProps?.renderToolCall), Boolean(messagePartsProps?.memoryProposal)));
|
|
2997
3365
|
const hasContentRow = contentParts.length > 0 || footer !== void 0;
|
|
2998
3366
|
return /* @__PURE__ */ jsxs("div", {
|
|
2999
3367
|
className: joinClasses("plai-assistant-message flex w-full flex-col gap-2", className),
|
|
@@ -3684,5 +4052,5 @@ async function dummyTranscribeAudio(_audio, signal) {
|
|
|
3684
4052
|
}
|
|
3685
4053
|
|
|
3686
4054
|
//#endregion
|
|
3687
|
-
export { AggregatedSourceResults, ArrowUp, AssistantMessage, Clipboard, DatasourceFolderCard, DatasourceToolResources, DatasourceToolResultCard, Loader, Message, MessageAvatar, MessageContent, MessageFooter, MessageHeader, MessageParts, MessageRoot, Microphone, PROMPT_FORM_FILE_ACCEPT, Paperclip, PromptForm, PromptFormAttachButton, PromptFormIconButton, Reload, ResourceCard, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SpeechToTextToggle, Stop, Thinking, ThumbDown, ThumbUp, ToolError, ToolResultAgentInvocationCard, ToolResultBrowserCard, ToolResultCard, ToolResultExternalDatasourceCard, ToolResultHttpRequestCard, ToolResultMcpCard, ToolResultOfficeDocumentsCard, ToolResultWebSearchCard, ToolResultWorkflowDispatchCard, ToolUseIndicator, UserMessage, X, dummyTranscribeAudio, getLocalizedOpenGraphValue, getResourceDescription, getResourceIcon, getResourceOpenGraphImage, getResourceOpenGraphType, getResourceTitle, getResourceType, getResourceUrl, getToolUseLabel, isAllowedPromptFormFile, partitionPromptFormFiles, useChat, useSpeechToText };
|
|
4055
|
+
export { AggregatedSourceResults, ArrowUp, AssistantMessage, Clipboard, DatasourceFolderCard, DatasourceToolResources, DatasourceToolResultCard, Loader, MemoryProposalCard, Message, MessageAvatar, MessageContent, MessageFooter, MessageHeader, MessageParts, MessageRoot, Microphone, PROMPT_FORM_FILE_ACCEPT, Paperclip, PromptForm, PromptFormAttachButton, PromptFormIconButton, Reload, ResourceCard, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SpeechToTextToggle, Stop, Thinking, ThumbDown, ThumbUp, ToolError, ToolResultAgentInvocationCard, ToolResultBrowserCard, ToolResultCard, ToolResultExternalDatasourceCard, ToolResultHttpRequestCard, ToolResultMcpCard, ToolResultOfficeDocumentsCard, ToolResultWebSearchCard, ToolResultWorkflowDispatchCard, ToolUseIndicator, UserMessage, X, dummyTranscribeAudio, getLocalizedOpenGraphValue, getResourceDescription, getResourceIcon, getResourceOpenGraphImage, getResourceOpenGraphType, getResourceTitle, getResourceType, getResourceUrl, getToolUseLabel, isAllowedPromptFormFile, partitionPromptFormFiles, useChat, useSpeechToText };
|
|
3688
4056
|
//# sourceMappingURL=index.js.map
|