@resolveio/client-lib-core 21.3.2 → 21.3.3
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/package.json
CHANGED
|
@@ -763,6 +763,7 @@ declare class CoreComponent extends BaseComponent implements OnInit {
|
|
|
763
763
|
openedWindow: boolean;
|
|
764
764
|
aiAssistantOpen: boolean;
|
|
765
765
|
aiAssistantAppId: string;
|
|
766
|
+
currentRoute: string;
|
|
766
767
|
isOffline: boolean;
|
|
767
768
|
foundUpdate: boolean;
|
|
768
769
|
orientation: string;
|
|
@@ -774,7 +775,10 @@ declare class CoreComponent extends BaseComponent implements OnInit {
|
|
|
774
775
|
getNavbarModuleHeight(): any;
|
|
775
776
|
private updateStandaloneNavigation;
|
|
776
777
|
toggleAiAssistant(): void;
|
|
778
|
+
openAiAssistant(): void;
|
|
777
779
|
closeAiAssistant(): void;
|
|
780
|
+
getAiAssistantTopOffset(): number;
|
|
781
|
+
getAiAssistantHeight(): number;
|
|
778
782
|
private resolveAiAssistantAppId;
|
|
779
783
|
onPushBackButton(): void;
|
|
780
784
|
onPushReloadButton(): void;
|
|
@@ -892,6 +896,10 @@ declare class AiTerminalService {
|
|
|
892
896
|
static ɵprov: i0.ɵɵInjectableDeclaration<AiTerminalService>;
|
|
893
897
|
}
|
|
894
898
|
|
|
899
|
+
type AiTerminalMessagePart = {
|
|
900
|
+
text: string;
|
|
901
|
+
route?: string;
|
|
902
|
+
};
|
|
895
903
|
declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
|
|
896
904
|
private terminal;
|
|
897
905
|
idClient: string;
|
|
@@ -901,6 +909,9 @@ declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
901
909
|
conversationStatus: AiTerminalConversationStatus;
|
|
902
910
|
messageLimit: number;
|
|
903
911
|
placeholder: string;
|
|
912
|
+
singleConversation: boolean;
|
|
913
|
+
contextMode: 'current' | 'all';
|
|
914
|
+
contextRoute: string;
|
|
904
915
|
messageScroll?: ElementRef<HTMLDivElement>;
|
|
905
916
|
conversations: AiTerminalConversationModel[];
|
|
906
917
|
messages: AiTerminalMessageModel[];
|
|
@@ -915,6 +926,7 @@ declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
915
926
|
infoMessage: string;
|
|
916
927
|
editingConversationId: string;
|
|
917
928
|
editingTitle: string;
|
|
929
|
+
private messagePartsCache;
|
|
918
930
|
private conversationsSub?;
|
|
919
931
|
private messagesSub?;
|
|
920
932
|
constructor(terminal: AiTerminalService);
|
|
@@ -930,6 +942,8 @@ declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
930
942
|
deleteFilesAfterRun(): boolean;
|
|
931
943
|
totalTokens(): number;
|
|
932
944
|
filteredMessages(): AiTerminalMessageModel[];
|
|
945
|
+
messageParts(message: AiTerminalMessageModel): AiTerminalMessagePart[];
|
|
946
|
+
trackByMessagePart(index: number, part: AiTerminalMessagePart): string;
|
|
933
947
|
formatFileSize(bytes?: number): string;
|
|
934
948
|
trackByConversation(index: number, convo: AiTerminalConversationModel): string;
|
|
935
949
|
trackByMessage(index: number, message: AiTerminalMessageModel): string;
|
|
@@ -940,6 +954,7 @@ declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
940
954
|
saveRename(conversation: AiTerminalConversationModel): Promise<void>;
|
|
941
955
|
deleteConversation(conversation: AiTerminalConversationModel): Promise<void>;
|
|
942
956
|
sendMessage(): Promise<void>;
|
|
957
|
+
startNewConversation(): Promise<void>;
|
|
943
958
|
deployTest(): Promise<void>;
|
|
944
959
|
handleFileSelect(event: Event): void;
|
|
945
960
|
removePendingFile(index: number): void;
|
|
@@ -955,11 +970,14 @@ declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
955
970
|
private uploadPendingFiles;
|
|
956
971
|
private readFileAsBase64;
|
|
957
972
|
private afterRunResponse;
|
|
973
|
+
private buildMessageContext;
|
|
958
974
|
private ensureConversationId;
|
|
959
975
|
private scrollToBottom;
|
|
976
|
+
private splitMessageContent;
|
|
977
|
+
private isRouteBoundary;
|
|
960
978
|
private unsubscribeAll;
|
|
961
979
|
static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalComponent, never>;
|
|
962
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AiTerminalComponent, "rio-ai-terminal", never, { "idClient": { "alias": "idClient"; "required": false; }; "idApp": { "alias": "idApp"; "required": false; }; "title": { "alias": "title"; "required": false; }; "config": { "alias": "config"; "required": false; }; "conversationStatus": { "alias": "conversationStatus"; "required": false; }; "messageLimit": { "alias": "messageLimit"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, false, never>;
|
|
980
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AiTerminalComponent, "rio-ai-terminal", never, { "idClient": { "alias": "idClient"; "required": false; }; "idApp": { "alias": "idApp"; "required": false; }; "title": { "alias": "title"; "required": false; }; "config": { "alias": "config"; "required": false; }; "conversationStatus": { "alias": "conversationStatus"; "required": false; }; "messageLimit": { "alias": "messageLimit"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "singleConversation": { "alias": "singleConversation"; "required": false; }; "contextMode": { "alias": "contextMode"; "required": false; }; "contextRoute": { "alias": "contextRoute"; "required": false; }; }, {}, never, never, false, never>;
|
|
963
981
|
}
|
|
964
982
|
|
|
965
983
|
type AiTerminalConfig = {
|
|
@@ -973,7 +991,7 @@ type AiTerminalConfig = {
|
|
|
973
991
|
systemPrompt?: string;
|
|
974
992
|
[key: string]: unknown;
|
|
975
993
|
};
|
|
976
|
-
declare class AiAssistantComponent {
|
|
994
|
+
declare class AiAssistantComponent implements OnChanges {
|
|
977
995
|
private router;
|
|
978
996
|
idClient: string;
|
|
979
997
|
idApp: string;
|
|
@@ -982,18 +1000,32 @@ declare class AiAssistantComponent {
|
|
|
982
1000
|
supportTicketRoute: string;
|
|
983
1001
|
supportTicketEnabled: boolean;
|
|
984
1002
|
config: Partial<AiTerminalConfig> | null;
|
|
1003
|
+
topOffset: number;
|
|
1004
|
+
panelHeight: number;
|
|
1005
|
+
currentRoute: string;
|
|
1006
|
+
hoverEnabled: boolean;
|
|
1007
|
+
openRequested: EventEmitter<void>;
|
|
985
1008
|
closed: EventEmitter<void>;
|
|
986
1009
|
terminal?: AiTerminalComponent;
|
|
1010
|
+
contextMode: 'current' | 'all';
|
|
1011
|
+
private hoverOpened;
|
|
987
1012
|
constructor(router: Router);
|
|
1013
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
988
1014
|
get terminalConfig(): AiTerminalConfig;
|
|
989
1015
|
closePanel(): void;
|
|
1016
|
+
handleRailClick(event?: MouseEvent): void;
|
|
1017
|
+
handleRailEnter(): void;
|
|
1018
|
+
handleRailLeave(): void;
|
|
1019
|
+
setContextMode(mode: string): void;
|
|
1020
|
+
get contextRouteLabel(): string;
|
|
990
1021
|
openSupportTicket(): void;
|
|
991
1022
|
handleBackdropClick(event: MouseEvent): void;
|
|
1023
|
+
private buildSystemPrompt;
|
|
992
1024
|
private buildSupportTicketSummary;
|
|
993
1025
|
private sanitizeSummary;
|
|
994
1026
|
private truncate;
|
|
995
1027
|
static ɵfac: i0.ɵɵFactoryDeclaration<AiAssistantComponent, never>;
|
|
996
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AiAssistantComponent, "rio-ai-assistant", never, { "idClient": { "alias": "idClient"; "required": false; }; "idApp": { "alias": "idApp"; "required": false; }; "title": { "alias": "title"; "required": false; }; "open": { "alias": "open"; "required": false; }; "supportTicketRoute": { "alias": "supportTicketRoute"; "required": false; }; "supportTicketEnabled": { "alias": "supportTicketEnabled"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "closed": "closed"; }, never, never, false, never>;
|
|
1028
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AiAssistantComponent, "rio-ai-assistant", never, { "idClient": { "alias": "idClient"; "required": false; }; "idApp": { "alias": "idApp"; "required": false; }; "title": { "alias": "title"; "required": false; }; "open": { "alias": "open"; "required": false; }; "supportTicketRoute": { "alias": "supportTicketRoute"; "required": false; }; "supportTicketEnabled": { "alias": "supportTicketEnabled"; "required": false; }; "config": { "alias": "config"; "required": false; }; "topOffset": { "alias": "topOffset"; "required": false; }; "panelHeight": { "alias": "panelHeight"; "required": false; }; "currentRoute": { "alias": "currentRoute"; "required": false; }; "hoverEnabled": { "alias": "hoverEnabled"; "required": false; }; }, { "openRequested": "openRequested"; "closed": "closed"; }, never, never, false, never>;
|
|
997
1029
|
}
|
|
998
1030
|
|
|
999
1031
|
declare class NavbarMainComponent extends BaseComponent implements OnInit, AfterViewInit, OnDestroy {
|