@resolveio/client-lib-core 21.3.15 → 21.3.16
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
|
@@ -887,12 +887,34 @@ interface AiTerminalMessageUsage {
|
|
|
887
887
|
total_tokens?: number;
|
|
888
888
|
cost_estimate?: number;
|
|
889
889
|
}
|
|
890
|
+
interface AiTerminalDisplayTable {
|
|
891
|
+
columns: string[];
|
|
892
|
+
rows: Array<Record<string, any>>;
|
|
893
|
+
rowCount?: number;
|
|
894
|
+
total?: number | null;
|
|
895
|
+
truncated?: boolean;
|
|
896
|
+
includeIds?: boolean;
|
|
897
|
+
}
|
|
898
|
+
interface AiTerminalToolResult {
|
|
899
|
+
type: 'mongo_read' | 'mongo_agg';
|
|
900
|
+
input?: Record<string, any>;
|
|
901
|
+
output?: {
|
|
902
|
+
display?: AiTerminalDisplayTable;
|
|
903
|
+
total?: number | null;
|
|
904
|
+
collection?: string;
|
|
905
|
+
rowCount?: number;
|
|
906
|
+
columns?: string[];
|
|
907
|
+
truncated?: boolean;
|
|
908
|
+
};
|
|
909
|
+
}
|
|
890
910
|
interface AiTerminalMessageModel {
|
|
891
911
|
_id?: string;
|
|
892
912
|
id_conversation: string;
|
|
893
913
|
role: AiTerminalMessageRole;
|
|
894
914
|
content: string;
|
|
895
|
-
metadata?: Record<string, any
|
|
915
|
+
metadata?: Record<string, any> & {
|
|
916
|
+
tool_result?: AiTerminalToolResult;
|
|
917
|
+
};
|
|
896
918
|
usage?: AiTerminalMessageUsage;
|
|
897
919
|
attachments?: AiTerminalAttachmentModel[];
|
|
898
920
|
createdAt?: Date;
|
|
@@ -1042,7 +1064,9 @@ declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
1042
1064
|
editingConversationId: string;
|
|
1043
1065
|
editingTitle: string;
|
|
1044
1066
|
private messagePartsCache;
|
|
1067
|
+
private messageMarkdownCache;
|
|
1045
1068
|
private messageContentOverrides;
|
|
1069
|
+
private messageDisplayOverrides;
|
|
1046
1070
|
private supportTicketMap;
|
|
1047
1071
|
private supportTicketInFlight;
|
|
1048
1072
|
private serverMessages;
|
|
@@ -1069,7 +1093,17 @@ declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
1069
1093
|
totalTokens(): number;
|
|
1070
1094
|
filteredMessages(): AiTerminalMessageModel[];
|
|
1071
1095
|
messageParts(message: AiTerminalMessageModel): AiTerminalMessagePart[];
|
|
1096
|
+
messageMarkdown(message: AiTerminalMessageModel): string;
|
|
1097
|
+
private clearMessageRenderCaches;
|
|
1072
1098
|
trackByMessagePart(index: number, part: AiTerminalMessagePart): string;
|
|
1099
|
+
private markdownToHtml;
|
|
1100
|
+
private formatInlineMarkdown;
|
|
1101
|
+
private escapeHtml;
|
|
1102
|
+
private linkifyRoutes;
|
|
1103
|
+
private buildAnchor;
|
|
1104
|
+
private isMarkdownTableHeader;
|
|
1105
|
+
private parseMarkdownTable;
|
|
1106
|
+
private splitMarkdownTableRow;
|
|
1073
1107
|
formatFileSize(bytes?: number): string;
|
|
1074
1108
|
trackByConversation(index: number, convo: AiTerminalConversationModel): string;
|
|
1075
1109
|
trackByMessage(index: number, message: AiTerminalMessageModel): string;
|
|
@@ -1113,6 +1147,13 @@ declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
1113
1147
|
private splitMessageContent;
|
|
1114
1148
|
private isRouteBoundary;
|
|
1115
1149
|
private getMessageContent;
|
|
1150
|
+
displayTableForMessage(message: AiTerminalMessageModel): AiTerminalDisplayTable | null;
|
|
1151
|
+
pendingProgress(message: AiTerminalMessageModel): string[] | null;
|
|
1152
|
+
formatDisplayCell(value: any): string;
|
|
1153
|
+
private resolveDisplayTable;
|
|
1154
|
+
private shouldHideDisplayColumn;
|
|
1155
|
+
private formatDisplayColumn;
|
|
1156
|
+
private containsMarkdownTable;
|
|
1116
1157
|
private loadSupportTicketMap;
|
|
1117
1158
|
private saveSupportTicketMap;
|
|
1118
1159
|
private applyStoredSupportTicketOverrides;
|
|
@@ -2514,4 +2555,4 @@ declare const MongoExplorerModulePermission: ModulePermissionModel;
|
|
|
2514
2555
|
declare const SuperAdminModulePermission: ModulePermissionModel;
|
|
2515
2556
|
|
|
2516
2557
|
export { AccountManagerService, AiAssistantComponent, AiFormAutoRegisterDirective, AiFormRegistryService, AiPageFormAdapterService, AiPageRouterService, AiTerminalComponent, AiTerminalModule, AiTerminalService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, CollapseTableComponent, CollapseTableModule, CoreAuthModule, CoreComponent, CoreDialogModule, CoreLoggerModule, CoreModule, CoreService, CoreServicesModule, CoreShellModule, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DialogConfirmContent, DialogErrorContent, DialogInputContent, DialogLoginContent, DialogNotifyContent, DialogRegisterContent, DialogSelectArrayContent, DialogSelectArrayObjsContent, DialogSelectDataLabelsContent, DialogSelectDateTimeContent, DialogSelectWithButtonsURLContent, DialogService, DomSanitizorPipe, Draggable, DropEvent, Droppable, EnrollComponent, FeatureGateService, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, HtmlDiffViewerComponent, JsonParsePipe, LoggerComponent, MinusCurrencyPipe, MongoExplorerModulePermission, NavbarMainComponent, NavbarModuleComponent, NgDragDropModule, NgDragDropService, OfflineManagerService, PhonePipe, PipeModule, ProviderService, ReportBuilderModulePermission, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, Sortable as SortableJs, SortablejsDirective, SortablejsModule, StorageDB, SuperAdminModulePermission, TitleCaseAndUnderscorePipe, TokenManagerService, UserRoleComponent, UserRoleModule, ValidationService, WindowRefService, applyMongoUpdate, b64toBlobURL, blobToFile, dateOnlyStartOfDayTz, dateReviver, deepCopy, deepDiffDetails, exportCsv, generateCronStringFromDate, isUpperCase, mergeDeep, momentTz, pad, rioDatePickerConfigFactory, round, s2ab, toDataURL, toTitleCase, type };
|
|
2517
|
-
export type { ActiveClientSubscriptionModel, AiFormRegistryEntry, AiPageAdapter, AiPageContext, AiPageContextMode, AiPageRequest, AiPageResult, AiPageSchema, AiTerminalAttachmentModel, AiTerminalConfig$1 as AiTerminalConfig, AiTerminalConversationModel, AiTerminalConversationStatus, AiTerminalMessageModel, AiTerminalMessageRole, AiTerminalMessageUsage, AiTerminalMethodNames, AiTerminalMode, AiTerminalMongoAccess, AiTerminalMongoConfig, AppStatusModel, CanComponentDeactivate, CollectionDocument, CronJobModel, CsvExportOptions, DatatableColumn, DatatableModel, DialogInputFieldModel, DialogInputFieldSelectOptions, DialogSelectWithButtonsOptionModel, FileModel, LogMethodLatencyModel, ModulePermissionApprovalModel, ModulePermissionModel, ModulePermissionViewModel, NavbarMainTabLinkModel, NavbarMainTabModel, NavbarMainTabType, NavbarModel, NavbarTabModel, OtherObject, PaginationOptions, ScrollEvent, SelectDataLabelModel, Sort, SortDirection, SortDirectionType, SortMongo, Sortable$1 as Sortable, SortableEvent as SortablejsEvent, Options as SortablejsOptions, SubscriptionModel, SubscriptionPubModel, UserDelegateModel, UserEmploymentLevelType, UserGroupModel, UserGroupNotificationModel, UserGroupPermissionModel, UserGroupViewModel, UserModel, UserNotificationConfigModel, UserNotificationModel, UserNotificationSubTypes, UserNotificationTypes, UserRoleApprovalModel, UserRoleGroupModel, UserRoleModel, UserSettingsModel, UserSupervisorModel, alertType };
|
|
2558
|
+
export type { ActiveClientSubscriptionModel, AiFormRegistryEntry, AiPageAdapter, AiPageContext, AiPageContextMode, AiPageRequest, AiPageResult, AiPageSchema, AiTerminalAttachmentModel, AiTerminalConfig$1 as AiTerminalConfig, AiTerminalConversationModel, AiTerminalConversationStatus, AiTerminalDisplayTable, AiTerminalMessageModel, AiTerminalMessageRole, AiTerminalMessageUsage, AiTerminalMethodNames, AiTerminalMode, AiTerminalMongoAccess, AiTerminalMongoConfig, AiTerminalToolResult, AppStatusModel, CanComponentDeactivate, CollectionDocument, CronJobModel, CsvExportOptions, DatatableColumn, DatatableModel, DialogInputFieldModel, DialogInputFieldSelectOptions, DialogSelectWithButtonsOptionModel, FileModel, LogMethodLatencyModel, ModulePermissionApprovalModel, ModulePermissionModel, ModulePermissionViewModel, NavbarMainTabLinkModel, NavbarMainTabModel, NavbarMainTabType, NavbarModel, NavbarTabModel, OtherObject, PaginationOptions, ScrollEvent, SelectDataLabelModel, Sort, SortDirection, SortDirectionType, SortMongo, Sortable$1 as Sortable, SortableEvent as SortablejsEvent, Options as SortablejsOptions, SubscriptionModel, SubscriptionPubModel, UserDelegateModel, UserEmploymentLevelType, UserGroupModel, UserGroupNotificationModel, UserGroupPermissionModel, UserGroupViewModel, UserModel, UserNotificationConfigModel, UserNotificationModel, UserNotificationSubTypes, UserNotificationTypes, UserRoleApprovalModel, UserRoleGroupModel, UserRoleModel, UserSettingsModel, UserSupervisorModel, alertType };
|