@resolveio/client-lib-core 21.3.0 → 21.3.1
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
2
|
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { OnDestroy, OnInit,
|
|
4
|
+
import { OnDestroy, OnInit, Type, ElementRef, EventEmitter, AfterViewInit, QueryList, ChangeDetectorRef, PipeTransform, OnChanges, ModuleWithProviders, Renderer2, NgZone, SimpleChanges } from '@angular/core';
|
|
5
5
|
import { DeviceDetectorService } from 'ngx-device-detector';
|
|
6
6
|
import * as i1$1 from '@angular/forms';
|
|
7
7
|
import { FormControl, FormGroup, AbstractControl, FormBuilder } from '@angular/forms';
|
|
@@ -740,6 +740,7 @@ declare class CoreComponent extends BaseComponent implements OnInit {
|
|
|
740
740
|
publicProgram: boolean;
|
|
741
741
|
showSupport: boolean;
|
|
742
742
|
aiAssistantEnabled: boolean;
|
|
743
|
+
aiTerminalComponent: Type<unknown> | null;
|
|
743
744
|
el_navBarMain: ElementRef;
|
|
744
745
|
el_navBarModule: ElementRef;
|
|
745
746
|
year: string;
|
|
@@ -783,7 +784,7 @@ declare class CoreComponent extends BaseComponent implements OnInit {
|
|
|
783
784
|
closeNav(): void;
|
|
784
785
|
private isStandaloneMode;
|
|
785
786
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreComponent, never>;
|
|
786
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoreComponent, "resolveio-client-lib-core", never, { "environment": { "alias": "environment"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "navTabs": { "alias": "navTabs"; "required": false; }; "userHasPhoneNumber": { "alias": "userHasPhoneNumber"; "required": false; }; "client": { "alias": "client"; "required": false; }; "showNavbarModule": { "alias": "showNavbarModule"; "required": false; }; "publicProgram": { "alias": "publicProgram"; "required": false; }; "showSupport": { "alias": "showSupport"; "required": false; }; "aiAssistantEnabled": { "alias": "aiAssistantEnabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
787
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoreComponent, "resolveio-client-lib-core", never, { "environment": { "alias": "environment"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "navTabs": { "alias": "navTabs"; "required": false; }; "userHasPhoneNumber": { "alias": "userHasPhoneNumber"; "required": false; }; "client": { "alias": "client"; "required": false; }; "showNavbarModule": { "alias": "showNavbarModule"; "required": false; }; "publicProgram": { "alias": "publicProgram"; "required": false; }; "showSupport": { "alias": "showSupport"; "required": false; }; "aiAssistantEnabled": { "alias": "aiAssistantEnabled"; "required": false; }; "aiTerminalComponent": { "alias": "aiTerminalComponent"; "required": false; }; }, {}, never, never, false, never>;
|
|
787
788
|
}
|
|
788
789
|
|
|
789
790
|
declare class HomeComponent extends BaseComponent implements OnInit {
|
|
@@ -805,7 +806,7 @@ declare class HomeComponent extends BaseComponent implements OnInit {
|
|
|
805
806
|
static ɵcmp: i0.ɵɵComponentDeclaration<HomeComponent, "resolveio-home", never, {}, {}, never, never, false, never>;
|
|
806
807
|
}
|
|
807
808
|
|
|
808
|
-
type AiTerminalConfig = {
|
|
809
|
+
type AiTerminalConfig$1 = {
|
|
809
810
|
mode?: string;
|
|
810
811
|
model?: string;
|
|
811
812
|
guardrails?: boolean;
|
|
@@ -816,36 +817,28 @@ type AiTerminalConfig = {
|
|
|
816
817
|
systemPrompt?: string;
|
|
817
818
|
[key: string]: unknown;
|
|
818
819
|
};
|
|
819
|
-
declare class AiAssistantComponent
|
|
820
|
+
declare class AiAssistantComponent {
|
|
820
821
|
private router;
|
|
821
|
-
private _terminalComponent?;
|
|
822
822
|
idClient: string;
|
|
823
823
|
idApp: string;
|
|
824
824
|
title: string;
|
|
825
825
|
open: boolean;
|
|
826
826
|
supportTicketRoute: string;
|
|
827
827
|
supportTicketEnabled: boolean;
|
|
828
|
-
config: Partial<AiTerminalConfig> | null;
|
|
829
|
-
closed: EventEmitter<void>;
|
|
830
|
-
terminalHost?: ViewContainerRef;
|
|
828
|
+
config: Partial<AiTerminalConfig$1> | null;
|
|
831
829
|
terminalComponent: Type<unknown> | null;
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
constructor(router: Router
|
|
835
|
-
get terminalConfig(): AiTerminalConfig;
|
|
836
|
-
ngAfterViewInit(): void;
|
|
837
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
838
|
-
ngOnDestroy(): void;
|
|
830
|
+
closed: EventEmitter<void>;
|
|
831
|
+
terminalOutlet?: any;
|
|
832
|
+
constructor(router: Router);
|
|
833
|
+
get terminalConfig(): AiTerminalConfig$1;
|
|
839
834
|
closePanel(): void;
|
|
840
835
|
openSupportTicket(): void;
|
|
841
836
|
handleBackdropClick(event: MouseEvent): void;
|
|
842
837
|
private buildSupportTicketSummary;
|
|
843
|
-
private syncTerminalInputs;
|
|
844
|
-
private setTerminalInput;
|
|
845
838
|
private sanitizeSummary;
|
|
846
839
|
private truncate;
|
|
847
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AiAssistantComponent,
|
|
848
|
-
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>;
|
|
840
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AiAssistantComponent, never>;
|
|
841
|
+
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; }; "terminalComponent": { "alias": "terminalComponent"; "required": false; }; }, { "closed": "closed"; }, never, never, false, never>;
|
|
849
842
|
}
|
|
850
843
|
|
|
851
844
|
declare class NavbarMainComponent extends BaseComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
@@ -1895,8 +1888,6 @@ declare class CoreModule {
|
|
|
1895
1888
|
static ɵinj: i0.ɵɵInjectorDeclaration<CoreModule>;
|
|
1896
1889
|
}
|
|
1897
1890
|
|
|
1898
|
-
declare const AI_TERMINAL_COMPONENT: InjectionToken<Type<unknown>>;
|
|
1899
|
-
|
|
1900
1891
|
declare class AuthGuard {
|
|
1901
1892
|
private _router;
|
|
1902
1893
|
private _auth;
|
|
@@ -1992,6 +1983,169 @@ declare class DateShortcutModule {
|
|
|
1992
1983
|
static ɵinj: i0.ɵɵInjectorDeclaration<DateShortcutModule>;
|
|
1993
1984
|
}
|
|
1994
1985
|
|
|
1986
|
+
type AiTerminalMode = 'openai' | 'codex';
|
|
1987
|
+
interface AiTerminalMethodNames {
|
|
1988
|
+
conversationCreate?: string;
|
|
1989
|
+
conversationUpdate?: string;
|
|
1990
|
+
conversationDelete?: string;
|
|
1991
|
+
runOpenAI?: string;
|
|
1992
|
+
uploadOpenAI?: string;
|
|
1993
|
+
runCodex?: string;
|
|
1994
|
+
uploadCodex?: string;
|
|
1995
|
+
deployTest?: string;
|
|
1996
|
+
conversationsPublication?: string;
|
|
1997
|
+
messagesPublication?: string;
|
|
1998
|
+
}
|
|
1999
|
+
interface AiTerminalConfig {
|
|
2000
|
+
mode?: AiTerminalMode;
|
|
2001
|
+
branchEnabled?: boolean;
|
|
2002
|
+
showAdvanced?: boolean;
|
|
2003
|
+
showToolMessages?: boolean;
|
|
2004
|
+
allowUploads?: boolean;
|
|
2005
|
+
maxFileMb?: number;
|
|
2006
|
+
maxTotalMb?: number;
|
|
2007
|
+
guardrails?: boolean;
|
|
2008
|
+
deleteFilesAfterRun?: boolean;
|
|
2009
|
+
systemPrompt?: string;
|
|
2010
|
+
userPromptTemplate?: string;
|
|
2011
|
+
responseFormat?: string;
|
|
2012
|
+
model?: string;
|
|
2013
|
+
temperature?: number;
|
|
2014
|
+
maxTokens?: number;
|
|
2015
|
+
profileId?: string;
|
|
2016
|
+
methodNames?: AiTerminalMethodNames;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
type AiTerminalConversationStatus = 'active' | 'archived';
|
|
2020
|
+
interface AiTerminalConversationModel {
|
|
2021
|
+
_id?: string;
|
|
2022
|
+
id_client?: string;
|
|
2023
|
+
id_app?: string;
|
|
2024
|
+
title?: string;
|
|
2025
|
+
mode?: AiTerminalMode;
|
|
2026
|
+
branch_enabled?: boolean;
|
|
2027
|
+
branch_name?: string;
|
|
2028
|
+
status?: AiTerminalConversationStatus;
|
|
2029
|
+
profile_id?: string;
|
|
2030
|
+
metadata?: Record<string, any>;
|
|
2031
|
+
last_message_at?: Date;
|
|
2032
|
+
last_message_id?: string;
|
|
2033
|
+
createdAt?: Date;
|
|
2034
|
+
updatedAt?: Date;
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
type AiTerminalMessageRole = 'system' | 'user' | 'assistant' | 'tool';
|
|
2038
|
+
interface AiTerminalAttachmentModel {
|
|
2039
|
+
id?: string;
|
|
2040
|
+
name?: string;
|
|
2041
|
+
type?: string;
|
|
2042
|
+
size?: number;
|
|
2043
|
+
local_path?: string;
|
|
2044
|
+
}
|
|
2045
|
+
interface AiTerminalMessageUsage {
|
|
2046
|
+
model?: string;
|
|
2047
|
+
input_tokens?: number;
|
|
2048
|
+
output_tokens?: number;
|
|
2049
|
+
total_tokens?: number;
|
|
2050
|
+
cost_estimate?: number;
|
|
2051
|
+
}
|
|
2052
|
+
interface AiTerminalMessageModel {
|
|
2053
|
+
_id?: string;
|
|
2054
|
+
id_conversation: string;
|
|
2055
|
+
role: AiTerminalMessageRole;
|
|
2056
|
+
content: string;
|
|
2057
|
+
metadata?: Record<string, any>;
|
|
2058
|
+
usage?: AiTerminalMessageUsage;
|
|
2059
|
+
attachments?: AiTerminalAttachmentModel[];
|
|
2060
|
+
createdAt?: Date;
|
|
2061
|
+
updatedAt?: Date;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
declare class AiTerminalService {
|
|
2065
|
+
private provider;
|
|
2066
|
+
constructor(provider: ProviderService);
|
|
2067
|
+
call<T>(method: string, ...parameters: any[]): Promise<T>;
|
|
2068
|
+
subscribe<T>(publication: string, ...parameters: any[]): Observable<T>;
|
|
2069
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalService, never>;
|
|
2070
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AiTerminalService>;
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
|
|
2074
|
+
private terminal;
|
|
2075
|
+
idClient: string;
|
|
2076
|
+
idApp: string;
|
|
2077
|
+
title: string;
|
|
2078
|
+
config: AiTerminalConfig | null;
|
|
2079
|
+
conversationStatus: AiTerminalConversationStatus;
|
|
2080
|
+
messageLimit: number;
|
|
2081
|
+
placeholder: string;
|
|
2082
|
+
messageScroll?: ElementRef<HTMLDivElement>;
|
|
2083
|
+
conversations: AiTerminalConversationModel[];
|
|
2084
|
+
messages: AiTerminalMessageModel[];
|
|
2085
|
+
activeConversationId: string;
|
|
2086
|
+
activeConversation: AiTerminalConversationModel | null;
|
|
2087
|
+
messageText: string;
|
|
2088
|
+
pendingFiles: File[];
|
|
2089
|
+
isSending: boolean;
|
|
2090
|
+
isDeployingTest: boolean;
|
|
2091
|
+
isLoading: boolean;
|
|
2092
|
+
errorMessage: string;
|
|
2093
|
+
infoMessage: string;
|
|
2094
|
+
editingConversationId: string;
|
|
2095
|
+
editingTitle: string;
|
|
2096
|
+
private conversationsSub?;
|
|
2097
|
+
private messagesSub?;
|
|
2098
|
+
constructor(terminal: AiTerminalService);
|
|
2099
|
+
ngOnInit(): void;
|
|
2100
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2101
|
+
ngOnDestroy(): void;
|
|
2102
|
+
isCodexMode(): boolean;
|
|
2103
|
+
showAdvanced(): boolean;
|
|
2104
|
+
showToolMessages(): boolean;
|
|
2105
|
+
allowUploads(): boolean;
|
|
2106
|
+
maxFileMb(): number;
|
|
2107
|
+
maxTotalMb(): number;
|
|
2108
|
+
deleteFilesAfterRun(): boolean;
|
|
2109
|
+
totalTokens(): number;
|
|
2110
|
+
filteredMessages(): AiTerminalMessageModel[];
|
|
2111
|
+
formatFileSize(bytes?: number): string;
|
|
2112
|
+
trackByConversation(index: number, convo: AiTerminalConversationModel): string;
|
|
2113
|
+
trackByMessage(index: number, message: AiTerminalMessageModel): string;
|
|
2114
|
+
createConversation(): Promise<void>;
|
|
2115
|
+
setActiveConversation(conversation: AiTerminalConversationModel): void;
|
|
2116
|
+
startRename(conversation: AiTerminalConversationModel): void;
|
|
2117
|
+
cancelRename(): void;
|
|
2118
|
+
saveRename(conversation: AiTerminalConversationModel): Promise<void>;
|
|
2119
|
+
deleteConversation(conversation: AiTerminalConversationModel): Promise<void>;
|
|
2120
|
+
sendMessage(): Promise<void>;
|
|
2121
|
+
deployTest(): Promise<void>;
|
|
2122
|
+
handleFileSelect(event: Event): void;
|
|
2123
|
+
removePendingFile(index: number): void;
|
|
2124
|
+
clearComposer(): void;
|
|
2125
|
+
private resolveConfig;
|
|
2126
|
+
private resolveMode;
|
|
2127
|
+
private resolveBranchEnabled;
|
|
2128
|
+
private methodNames;
|
|
2129
|
+
private subscribeConversations;
|
|
2130
|
+
private filterConversations;
|
|
2131
|
+
private ensureActiveConversation;
|
|
2132
|
+
private subscribeMessages;
|
|
2133
|
+
private uploadPendingFiles;
|
|
2134
|
+
private readFileAsBase64;
|
|
2135
|
+
private afterRunResponse;
|
|
2136
|
+
private ensureConversationId;
|
|
2137
|
+
private scrollToBottom;
|
|
2138
|
+
private unsubscribeAll;
|
|
2139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalComponent, never>;
|
|
2140
|
+
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>;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
declare class AiTerminalModule {
|
|
2144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalModule, never>;
|
|
2145
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AiTerminalModule, [typeof AiTerminalComponent], [typeof SharedModule], [typeof AiTerminalComponent]>;
|
|
2146
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AiTerminalModule>;
|
|
2147
|
+
}
|
|
2148
|
+
|
|
1995
2149
|
declare class SchedulerComponent extends BaseComponent implements AfterViewInit, OnDestroy {
|
|
1996
2150
|
private _services;
|
|
1997
2151
|
today: Date;
|
|
@@ -2142,5 +2296,5 @@ declare const MongoExplorerModulePermission: ModulePermissionModel;
|
|
|
2142
2296
|
|
|
2143
2297
|
declare const SuperAdminModulePermission: ModulePermissionModel;
|
|
2144
2298
|
|
|
2145
|
-
export {
|
|
2146
|
-
export type { ActiveClientSubscriptionModel, 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 };
|
|
2299
|
+
export { AccountManagerService, AiAssistantComponent, 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 };
|
|
2300
|
+
export type { ActiveClientSubscriptionModel, AiTerminalAttachmentModel, AiTerminalConfig, AiTerminalConversationModel, AiTerminalConversationStatus, AiTerminalMessageModel, AiTerminalMessageRole, AiTerminalMessageUsage, AiTerminalMethodNames, AiTerminalMode, 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 };
|