@dataclouder/ngx-agent-cards 0.2.2 → 0.2.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-agent-cards",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
@@ -218,7 +218,6 @@ interface CharacterCardData {
218
218
  name: string;
219
219
  description: string;
220
220
  scenario?: string;
221
- first_mes?: string;
222
221
  creator_notes?: string;
223
222
  mes_example?: string;
224
223
  appearance?: string;
@@ -279,6 +278,7 @@ interface IConversationSettings {
279
278
  conversationType?: ConversationType$1;
280
279
  autoStart?: boolean;
281
280
  userMustStart?: boolean;
281
+ streamResponses?: boolean;
282
282
  messages?: ChatMessage[];
283
283
  last_prompt?: string;
284
284
  repeatRecording?: boolean;
@@ -481,7 +481,7 @@ declare class WordTimestamps {
481
481
  end: number;
482
482
  highlighted?: boolean;
483
483
  }
484
- type AudioStatus = 'pending' | 'playing' | 'stopped' | 'finished' | 'skip';
484
+ type AudioStatus = 'pending' | 'playing' | 'stopped' | 'finished' | 'skip' | 'buffering';
485
485
  declare class MessageContent {
486
486
  audioUrl?: string;
487
487
  audioPromise?: any;
@@ -636,12 +636,14 @@ declare class DefaultAgentCardsService extends EntityCommunicationService<IAgent
636
636
  protected toastService: _dataclouder_ngx_core.ToastAlertsAbstractService;
637
637
  protected appConfig: _dataclouder_ngx_core.IAppConfig;
638
638
  private whisperService;
639
+ private fbAuthService;
639
640
  constructor();
640
641
  partialUpdateAgentCard(agentCard: IAgentCard): Promise<IAgentCard>;
641
642
  generateMainImage(idCard: string): Promise<any>;
642
643
  completeAgentCard(idCard: string): Promise<any>;
643
644
  getFixedQuery(): Record<string, any>;
644
645
  callChatCompletion(conversation: IConversationSettingsDTO, tag?: string): Promise<IAgentResponseDTO>;
646
+ callChatCompletionStream(conversation: IConversationSettingsDTO): AsyncGenerator<string>;
645
647
  filterConversationCards(filters: FiltersConfig): Promise<IFilterQueryResponse<IAgentCard>>;
646
648
  getAllConversationCards(): Promise<IAgentCard[]>;
647
649
  findFilteredAgentCards(paginator: FiltersConfig): Promise<IFilterQueryResponse<IAgentCard>>;
@@ -798,6 +800,7 @@ declare class DynamicFlowService {
798
800
  private messagesStateService;
799
801
  private conversationFlowStateService;
800
802
  private agentCardStateService;
803
+ private userService;
801
804
  /** Derived from AgentCardStateService — single source of truth for the conversation flow config. */
802
805
  conversationFlowConfig: _angular_core.Signal<IConversationFlow>;
803
806
  /**
@@ -829,6 +832,7 @@ declare class DynamicFlowService {
829
832
  * @param aiResponse A partial `IConversationFlowState` object from the AI.
830
833
  */
831
834
  updateStateFromAI(aiResponse: Partial<IConversationFlowState>): void;
835
+ private attachFlowEvaluationToLastUserMessage;
832
836
  syncMoodToLatestMessage(messageId?: string): void;
833
837
  private getMoodEmoji;
834
838
  /**
@@ -1030,6 +1034,11 @@ declare class ConversationFlowStateService {
1030
1034
  currentMood: _angular_core.Signal<any>;
1031
1035
  private moodUpdated;
1032
1036
  moodUpdated$: rxjs.Observable<string>;
1037
+ private goalEvaluationUpdated;
1038
+ goalEvaluationUpdated$: rxjs.Observable<{
1039
+ deltaPoints: number;
1040
+ feedback?: string;
1041
+ }>;
1033
1042
  constructor();
1034
1043
  /**
1035
1044
  * @description
@@ -1210,11 +1219,33 @@ declare class DCChatComponent implements OnInit, OnDestroy {
1210
1219
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DCChatComponent, "dc-chat", never, { "chatUserSettings": { "alias": "chatUserSettings"; "required": false; }; "conversationSettings": { "alias": "conversationSettings"; "required": false; }; "conversationFlow": { "alias": "conversationFlow"; "required": false; }; "agentCard": { "alias": "agentCard"; "required": false; }; "parseDict": { "alias": "parseDict"; "required": false; "isSignal": true; }; }, { "chatEvent": "chatEvent"; "goalCompleted": "goalCompleted"; }, never, never, true, never>;
1211
1220
  }
1212
1221
 
1222
+ declare class PolitoNotificationComponent implements OnInit, OnDestroy {
1223
+ private flowStateService;
1224
+ private agentCardStateService;
1225
+ notification: _angular_core.WritableSignal<{
1226
+ points: number;
1227
+ feedback: string;
1228
+ }>;
1229
+ isHiding: _angular_core.WritableSignal<boolean>;
1230
+ private subscription;
1231
+ private hideTimeout;
1232
+ private animTimeout;
1233
+ ngOnInit(): void;
1234
+ ngOnDestroy(): void;
1235
+ private showNotification;
1236
+ private clearTimeouts;
1237
+ getPointsText(points: number): string;
1238
+ getFeatherPointsText(points: number): string;
1239
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PolitoNotificationComponent, never>;
1240
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PolitoNotificationComponent, "dc-polito-notification", never, {}, {}, never, never, true, never>;
1241
+ }
1242
+
1213
1243
  declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCard> {
1214
1244
  private fb;
1215
1245
  protected entityCommunicationService: _dataclouder_ngx_agent_cards.DefaultAgentCardsService;
1216
1246
  private dialogService;
1217
1247
  private characterFormGroupService;
1248
+ private ttsService;
1218
1249
  conversationOptions: {
1219
1250
  value: ConversationType$1;
1220
1251
  label: string;
@@ -1243,6 +1274,7 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
1243
1274
  conversationType: _angular_forms.FormControl<ConversationType$1>;
1244
1275
  autoStart: _angular_forms.FormControl<boolean>;
1245
1276
  userMustStart: _angular_forms.FormControl<boolean>;
1277
+ streamResponses: _angular_forms.FormControl<boolean>;
1246
1278
  displayMode: _angular_forms.FormControl<string>;
1247
1279
  mainVoice: _angular_forms.FormGroup<any>;
1248
1280
  secondaryVoice: _angular_forms.FormGroup<any>;
@@ -1295,6 +1327,10 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
1295
1327
  onAssetsChange(event: IAssetable): void;
1296
1328
  goToCardsCreator(): void;
1297
1329
  onFileUploaded(event: FileStorageData): void;
1330
+ isCloningVoice: _angular_core.WritableSignal<boolean>;
1331
+ readonly canCloneVoice: _angular_core.Signal<boolean>;
1332
+ readonly fishModelId: _angular_core.Signal<any>;
1333
+ cloneVoice(): Promise<void>;
1298
1334
  deleteCard(): Promise<void>;
1299
1335
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DCAgentCardFormComponent, never>;
1300
1336
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DCAgentCardFormComponent, "dc-agent-form", never, {}, { "onSave": "onSave"; }, never, never, true, never>;
@@ -1728,5 +1764,5 @@ declare class ChatEngineTestComponent {
1728
1764
 
1729
1765
  declare const AGENT_CARDS_STATE_SERVICE: InjectionToken<MasterStateService<IAgentCard>>;
1730
1766
 
1731
- export { ACCDataGenerationComponent, AGENT_CARDS_STATE_SERVICE, AIGenerationService, AgentCardListComponent, AgentCardUI, AgentCardsGenerationService, AudioService, AudioSpeed, BACKGROUND_SERVICE_TOKEN, CONVERSATION_AI_TOKEN, CardRouteService, CardRoutesComponent, CardsCreatorComponent, ChatEngineTestComponent, ChatEventType, ChatMessage, ChatMessageOrchestratorComponent, ChatMonitorService, ChatRole, ConditionOperator, ConditionType, ContextEngineService, ContextType, ConversationDTO, ConversationEvents, ConversationFlowStateService, ConversationMessagesDTO, ConversationPromptBuilderService, ConversationRuleService, ConversationRulesComponent, ConversationStatus, ConversationType$1 as ConversationType, ConversationTypeOptions, DCAgentCardFormComponent, DCChatComponent, DCConversationUserChatSettingsComponent, DcAgentCardConverseComponent, DcAgentCardDetailComponent, DefaultAgentCardsService, DoActionTypeOptions, DynamicFlowService, DynamicFlowTaskTypeOptions, EAccountsPlatform, EAgentType, EDoActionType, EDynamicFlowTaskType, EntityThen, EntityWhatOptions, EntityWhenOptions, EvalResultStringDefinition, GlobalToolsService, MessageContent, MessageContentDisplayer, MessagesStateService, ModelSelectorComponent, PopupService, PromptPreviewComponent, SectionType, SystemPromptType, TextEngineOptions, TextEngines, VIDEO_PLAYER_SERVICE_TOKEN, VideoPlayerNativeService, VideoPlayerService, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, XKillsAgentCardsService, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, getMoodStatePrompt, markdownToHtml, matchTranscription, provideAgentCardService, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
1767
+ export { ACCDataGenerationComponent, AGENT_CARDS_STATE_SERVICE, AIGenerationService, AgentCardListComponent, AgentCardUI, AgentCardsGenerationService, AudioService, AudioSpeed, BACKGROUND_SERVICE_TOKEN, CONVERSATION_AI_TOKEN, CardRouteService, CardRoutesComponent, CardsCreatorComponent, ChatEngineTestComponent, ChatEventType, ChatMessage, ChatMessageOrchestratorComponent, ChatMonitorService, ChatRole, ConditionOperator, ConditionType, ContextEngineService, ContextType, ConversationDTO, ConversationEvents, ConversationFlowStateService, ConversationMessagesDTO, ConversationPromptBuilderService, ConversationRuleService, ConversationRulesComponent, ConversationStatus, ConversationType$1 as ConversationType, ConversationTypeOptions, DCAgentCardFormComponent, DCChatComponent, DCConversationUserChatSettingsComponent, DcAgentCardConverseComponent, DcAgentCardDetailComponent, DefaultAgentCardsService, DoActionTypeOptions, DynamicFlowService, DynamicFlowTaskTypeOptions, EAccountsPlatform, EAgentType, EDoActionType, EDynamicFlowTaskType, EntityThen, EntityWhatOptions, EntityWhenOptions, EvalResultStringDefinition, GlobalToolsService, MessageContent, MessageContentDisplayer, MessagesStateService, ModelSelectorComponent, PolitoNotificationComponent, PopupService, PromptPreviewComponent, SectionType, SystemPromptType, TextEngineOptions, TextEngines, VIDEO_PLAYER_SERVICE_TOKEN, VideoPlayerNativeService, VideoPlayerService, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, XKillsAgentCardsService, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, getMoodStatePrompt, markdownToHtml, matchTranscription, provideAgentCardService, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
1732
1768
  export type { Appearance, AudioGenerated, AudioStatus, BackgroundTask, CardTranslation, ChangePromptAction, CharacterCardData, ChatEvent, ConversationFlowFormGroup, ConversationSettingsFormGroup, DoAction, DoActionFormGroup, DynamicConditionFormGroup, DynamicCriteriaFormGroup, IAccounts, IAgentAssets, IAgentCard, IAgentCardMeta, IAgentMetadata, IAgentResponseDTO, IBackgroundService, ICardRoute, ICardRouteStep, IChallengeState, ICharacterCardDC, IConversationFlow, IConversationFlowState, IConversationSession, IConversationSettings, IConversationSettingsDTO, IDynamicCondition, IDynamicCriteria, IDynamicFlowTask, IGenerateConversationCardsDto, IGoalState, IMoodState, IMoodStateRuntime, IRule, ISimpleAgent, ITTS, IVideoPlayerService, IWordMetadata, ModelFormGroup, ModelName, MultiLanguage, Persona, SimpleAgentTask, SimpleAgentTaskFormGroup, SimpleEvalResult, TextHTMLTag, TranscriptionsWhisper, TriggerTasksFormGroup, VoiceCloning, VoiceTTS, WordData };