@memberjunction/ng-conversations 6.2.0-edge.0 → 6.2.0-edge.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/README.md +35 -2
- package/dist/lib/components/active-tasks/active-tasks-panel.component.d.ts +19 -3
- package/dist/lib/components/active-tasks/active-tasks-panel.component.d.ts.map +1 -1
- package/dist/lib/components/active-tasks/active-tasks-panel.component.js +39 -7
- package/dist/lib/components/active-tasks/active-tasks-panel.component.js.map +1 -1
- package/dist/lib/components/agent/active-agent-indicator.component.d.ts +74 -6
- package/dist/lib/components/agent/active-agent-indicator.component.d.ts.map +1 -1
- package/dist/lib/components/agent/active-agent-indicator.component.js +111 -21
- package/dist/lib/components/agent/active-agent-indicator.component.js.map +1 -1
- package/dist/lib/components/agent/agent-process-panel.component.d.ts +31 -5
- package/dist/lib/components/agent/agent-process-panel.component.d.ts.map +1 -1
- package/dist/lib/components/agent/agent-process-panel.component.js +71 -15
- package/dist/lib/components/agent/agent-process-panel.component.js.map +1 -1
- package/dist/lib/components/artifact/artifact-share-modal.component.d.ts +65 -9
- package/dist/lib/components/artifact/artifact-share-modal.component.d.ts.map +1 -1
- package/dist/lib/components/artifact/artifact-share-modal.component.js +169 -57
- package/dist/lib/components/artifact/artifact-share-modal.component.js.map +1 -1
- package/dist/lib/components/attachment/image-viewer.component.d.ts +77 -11
- package/dist/lib/components/attachment/image-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/attachment/image-viewer.component.js +181 -47
- package/dist/lib/components/attachment/image-viewer.component.js.map +1 -1
- package/dist/lib/components/collection/artifact-collection-picker-modal.component.d.ts +129 -19
- package/dist/lib/components/collection/artifact-collection-picker-modal.component.d.ts.map +1 -1
- package/dist/lib/components/collection/artifact-collection-picker-modal.component.js +350 -116
- package/dist/lib/components/collection/artifact-collection-picker-modal.component.js.map +1 -1
- package/dist/lib/components/collection/artifact-create-modal.component.d.ts +60 -8
- package/dist/lib/components/collection/artifact-create-modal.component.d.ts.map +1 -1
- package/dist/lib/components/collection/artifact-create-modal.component.js +130 -46
- package/dist/lib/components/collection/artifact-create-modal.component.js.map +1 -1
- package/dist/lib/components/collection/collection-artifact-card.component.d.ts +63 -3
- package/dist/lib/components/collection/collection-artifact-card.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-artifact-card.component.js +113 -19
- package/dist/lib/components/collection/collection-artifact-card.component.js.map +1 -1
- package/dist/lib/components/collection/collection-form-modal.component.d.ts +54 -8
- package/dist/lib/components/collection/collection-form-modal.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-form-modal.component.js +130 -46
- package/dist/lib/components/collection/collection-form-modal.component.js.map +1 -1
- package/dist/lib/components/collection/collection-share-modal.component.d.ts +70 -10
- package/dist/lib/components/collection/collection-share-modal.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-share-modal.component.js +175 -53
- package/dist/lib/components/collection/collection-share-modal.component.js.map +1 -1
- package/dist/lib/components/collection/collection-tree.component.d.ts +89 -9
- package/dist/lib/components/collection/collection-tree.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-tree.component.js +220 -70
- package/dist/lib/components/collection/collection-tree.component.js.map +1 -1
- package/dist/lib/components/collection/collection-view.component.d.ts +89 -11
- package/dist/lib/components/collection/collection-view.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-view.component.js +154 -40
- package/dist/lib/components/collection/collection-view.component.js.map +1 -1
- package/dist/lib/components/collection/collections-full-view.component.d.ts +390 -38
- package/dist/lib/components/collection/collections-full-view.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collections-full-view.component.js +951 -367
- package/dist/lib/components/collection/collections-full-view.component.js.map +1 -1
- package/dist/lib/components/composer/ai-composer.component.d.ts +213 -18
- package/dist/lib/components/composer/ai-composer.component.d.ts.map +1 -1
- package/dist/lib/components/composer/ai-composer.component.js +388 -44
- package/dist/lib/components/composer/ai-composer.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-agent-picker.component.d.ts +12 -1
- package/dist/lib/components/conversation/conversation-agent-picker.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-agent-picker.component.js +26 -4
- package/dist/lib/components/conversation/conversation-agent-picker.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +1090 -123
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-chat-area.component.js +2399 -706
- package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-empty-state.component.d.ts +139 -19
- package/dist/lib/components/conversation/conversation-empty-state.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-empty-state.component.js +296 -59
- package/dist/lib/components/conversation/conversation-empty-state.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-list.component.d.ts +579 -78
- package/dist/lib/components/conversation/conversation-list.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-list.component.js +2322 -823
- package/dist/lib/components/conversation/conversation-list.component.js.map +1 -1
- package/dist/lib/components/conversation/pinned-messages-panel.component.d.ts +40 -4
- package/dist/lib/components/conversation/pinned-messages-panel.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/pinned-messages-panel.component.js +72 -14
- package/dist/lib/components/conversation/pinned-messages-panel.component.js.map +1 -1
- package/dist/lib/components/dialogs/input-dialog.component.d.ts +57 -11
- package/dist/lib/components/dialogs/input-dialog.component.d.ts.map +1 -1
- package/dist/lib/components/dialogs/input-dialog.component.js +128 -16
- package/dist/lib/components/dialogs/input-dialog.component.js.map +1 -1
- package/dist/lib/components/dialogs/rating-dialog.component.d.ts +68 -10
- package/dist/lib/components/dialogs/rating-dialog.component.d.ts.map +1 -1
- package/dist/lib/components/dialogs/rating-dialog.component.js +151 -27
- package/dist/lib/components/dialogs/rating-dialog.component.js.map +1 -1
- package/dist/lib/components/export/export-modal.component.d.ts +84 -10
- package/dist/lib/components/export/export-modal.component.d.ts.map +1 -1
- package/dist/lib/components/export/export-modal.component.js +173 -49
- package/dist/lib/components/export/export-modal.component.js.map +1 -1
- package/dist/lib/components/global-tasks/global-tasks-panel.component.d.ts +29 -3
- package/dist/lib/components/global-tasks/global-tasks-panel.component.d.ts.map +1 -1
- package/dist/lib/components/global-tasks/global-tasks-panel.component.js +58 -12
- package/dist/lib/components/global-tasks/global-tasks-panel.component.js.map +1 -1
- package/dist/lib/components/library/library-full-view.component.d.ts +57 -8
- package/dist/lib/components/library/library-full-view.component.d.ts.map +1 -1
- package/dist/lib/components/library/library-full-view.component.js +119 -35
- package/dist/lib/components/library/library-full-view.component.js.map +1 -1
- package/dist/lib/components/members/members-modal.component.d.ts +76 -10
- package/dist/lib/components/members/members-modal.component.d.ts.map +1 -1
- package/dist/lib/components/members/members-modal.component.js +164 -50
- package/dist/lib/components/members/members-modal.component.js.map +1 -1
- package/dist/lib/components/message/actionable-commands.component.d.ts +37 -5
- package/dist/lib/components/message/actionable-commands.component.d.ts.map +1 -1
- package/dist/lib/components/message/actionable-commands.component.js +82 -16
- package/dist/lib/components/message/actionable-commands.component.js.map +1 -1
- package/dist/lib/components/message/conversation-message-rating.component.d.ts +46 -10
- package/dist/lib/components/message/conversation-message-rating.component.d.ts.map +1 -1
- package/dist/lib/components/message/conversation-message-rating.component.js +120 -36
- package/dist/lib/components/message/conversation-message-rating.component.js.map +1 -1
- package/dist/lib/components/message/message-input.component.d.ts +549 -74
- package/dist/lib/components/message/message-input.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-input.component.js +1250 -421
- package/dist/lib/components/message/message-input.component.js.map +1 -1
- package/dist/lib/components/message/message-item.component.d.ts +411 -29
- package/dist/lib/components/message/message-item.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-item.component.js +896 -222
- package/dist/lib/components/message/message-item.component.js.map +1 -1
- package/dist/lib/components/message/message-list.component.d.ts +288 -29
- package/dist/lib/components/message/message-list.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-list.component.js +561 -123
- package/dist/lib/components/message/message-list.component.js.map +1 -1
- package/dist/lib/components/navigation/conversation-navigation.component.d.ts +64 -5
- package/dist/lib/components/navigation/conversation-navigation.component.d.ts.map +1 -1
- package/dist/lib/components/navigation/conversation-navigation.component.js +101 -11
- package/dist/lib/components/navigation/conversation-navigation.component.js.map +1 -1
- package/dist/lib/components/notification/activity-indicator.component.d.ts +6 -2
- package/dist/lib/components/notification/activity-indicator.component.d.ts.map +1 -1
- package/dist/lib/components/notification/activity-indicator.component.js +13 -3
- package/dist/lib/components/notification/activity-indicator.component.js.map +1 -1
- package/dist/lib/components/notification/notification-badge.component.d.ts +15 -3
- package/dist/lib/components/notification/notification-badge.component.d.ts.map +1 -1
- package/dist/lib/components/notification/notification-badge.component.js +36 -8
- package/dist/lib/components/notification/notification-badge.component.js.map +1 -1
- package/dist/lib/components/overlay/chat-overlay.component.d.ts +1 -1
- package/dist/lib/components/overlay/chat-overlay.component.js +4 -4
- package/dist/lib/components/overlay/chat-overlay.component.js.map +1 -1
- package/dist/lib/components/project/project-form-modal.component.d.ts +93 -11
- package/dist/lib/components/project/project-form-modal.component.d.ts.map +1 -1
- package/dist/lib/components/project/project-form-modal.component.js +348 -87
- package/dist/lib/components/project/project-form-modal.component.js.map +1 -1
- package/dist/lib/components/project/project-selector.component.d.ts +78 -8
- package/dist/lib/components/project/project-selector.component.d.ts.map +1 -1
- package/dist/lib/components/project/project-selector.component.js +177 -46
- package/dist/lib/components/project/project-selector.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-activity-rail.component.d.ts +1 -1
- package/dist/lib/components/realtime/realtime-activity-rail.component.js +2 -2
- package/dist/lib/components/realtime/realtime-activity-rail.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-delegation-card.component.d.ts +1 -1
- package/dist/lib/components/realtime/realtime-delegation-card.component.js +2 -2
- package/dist/lib/components/realtime/realtime-delegation-card.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts +2 -2
- package/dist/lib/components/realtime/realtime-session-overlay.component.js +18 -18
- package/dist/lib/components/realtime/realtime-session-overlay.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-session-timeline-card.component.d.ts +47 -23
- package/dist/lib/components/realtime/realtime-session-timeline-card.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-session-timeline-card.component.js +136 -92
- package/dist/lib/components/realtime/realtime-session-timeline-card.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-tabs.component.d.ts +2 -2
- package/dist/lib/components/realtime/realtime-surface-tabs.component.js +4 -4
- package/dist/lib/components/realtime/realtime-surface-tabs.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-tabs.model.d.ts +1 -1
- package/dist/lib/components/realtime/realtime-surface-tabs.model.js +3 -3
- package/dist/lib/components/realtime/realtime-surface-tabs.model.js.map +1 -1
- package/dist/lib/components/realtime/realtime-ui-config.d.ts +13 -11
- package/dist/lib/components/realtime/realtime-ui-config.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-ui-config.js +29 -25
- package/dist/lib/components/realtime/realtime-ui-config.js.map +1 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-channel.d.ts +3 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-channel.js +6 -2
- package/dist/lib/components/realtime/whiteboard/whiteboard-channel.js.map +1 -1
- package/dist/lib/components/search/search-panel.component.d.ts +133 -22
- package/dist/lib/components/search/search-panel.component.d.ts.map +1 -1
- package/dist/lib/components/search/search-panel.component.js +312 -83
- package/dist/lib/components/search/search-panel.component.js.map +1 -1
- package/dist/lib/components/share/share-modal.component.d.ts +69 -9
- package/dist/lib/components/share/share-modal.component.d.ts.map +1 -1
- package/dist/lib/components/share/share-modal.component.js +139 -31
- package/dist/lib/components/share/share-modal.component.js.map +1 -1
- package/dist/lib/components/shared/user-picker.component.d.ts +48 -8
- package/dist/lib/components/shared/user-picker.component.d.ts.map +1 -1
- package/dist/lib/components/shared/user-picker.component.js +110 -30
- package/dist/lib/components/shared/user-picker.component.js.map +1 -1
- package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts +114 -11
- package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts.map +1 -1
- package/dist/lib/components/sidebar/conversation-sidebar.component.js +199 -21
- package/dist/lib/components/sidebar/conversation-sidebar.component.js.map +1 -1
- package/dist/lib/components/sidebar/routines-section.component.d.ts +20 -1
- package/dist/lib/components/sidebar/routines-section.component.d.ts.map +1 -1
- package/dist/lib/components/sidebar/routines-section.component.js +25 -5
- package/dist/lib/components/sidebar/routines-section.component.js.map +1 -1
- package/dist/lib/components/slots/slot-interfaces.d.ts +19 -0
- package/dist/lib/components/slots/slot-interfaces.d.ts.map +1 -1
- package/dist/lib/components/slots/slot-interfaces.js.map +1 -1
- package/dist/lib/components/task/tasks-full-view.component.d.ts +95 -13
- package/dist/lib/components/task/tasks-full-view.component.d.ts.map +1 -1
- package/dist/lib/components/task/tasks-full-view.component.js +223 -75
- package/dist/lib/components/task/tasks-full-view.component.js.map +1 -1
- package/dist/lib/components/tasks/task-widget.component.d.ts +46 -6
- package/dist/lib/components/tasks/task-widget.component.d.ts.map +1 -1
- package/dist/lib/components/tasks/task-widget.component.js +100 -16
- package/dist/lib/components/tasks/task-widget.component.js.map +1 -1
- package/dist/lib/components/tasks/tasks-dropdown.component.d.ts +64 -7
- package/dist/lib/components/tasks/tasks-dropdown.component.d.ts.map +1 -1
- package/dist/lib/components/tasks/tasks-dropdown.component.js +127 -27
- package/dist/lib/components/tasks/tasks-dropdown.component.js.map +1 -1
- package/dist/lib/components/thread/thread-panel.component.d.ts +66 -8
- package/dist/lib/components/thread/thread-panel.component.d.ts.map +1 -1
- package/dist/lib/components/thread/thread-panel.component.js +146 -36
- package/dist/lib/components/thread/thread-panel.component.js.map +1 -1
- package/dist/lib/components/toast/toast.component.d.ts +11 -1
- package/dist/lib/components/toast/toast.component.d.ts.map +1 -1
- package/dist/lib/components/toast/toast.component.js +25 -5
- package/dist/lib/components/toast/toast.component.js.map +1 -1
- package/dist/lib/components/workspace/conversation-workspace.component.d.ts +385 -42
- package/dist/lib/components/workspace/conversation-workspace.component.d.ts.map +1 -1
- package/dist/lib/components/workspace/conversation-workspace.component.js +887 -291
- package/dist/lib/components/workspace/conversation-workspace.component.js.map +1 -1
- package/dist/lib/composer-plugins/base-conversation-mention.provider.d.ts +8 -0
- package/dist/lib/composer-plugins/base-conversation-mention.provider.d.ts.map +1 -1
- package/dist/lib/composer-plugins/base-conversation-mention.provider.js +8 -1
- package/dist/lib/composer-plugins/base-conversation-mention.provider.js.map +1 -1
- package/dist/lib/directives/chat-slot.directive.d.ts +5 -1
- package/dist/lib/directives/chat-slot.directive.d.ts.map +1 -1
- package/dist/lib/directives/chat-slot.directive.js.map +1 -1
- package/dist/lib/directives/search-shortcut.directive.d.ts +9 -1
- package/dist/lib/directives/search-shortcut.directive.d.ts.map +1 -1
- package/dist/lib/directives/search-shortcut.directive.js +14 -4
- package/dist/lib/directives/search-shortcut.directive.js.map +1 -1
- package/dist/lib/events/chat-events.d.ts +34 -7
- package/dist/lib/events/chat-events.d.ts.map +1 -1
- package/dist/lib/events/chat-events.js +37 -7
- package/dist/lib/events/chat-events.js.map +1 -1
- package/dist/lib/models/agent-turn.model.d.ts +103 -0
- package/dist/lib/models/agent-turn.model.d.ts.map +1 -0
- package/dist/lib/models/agent-turn.model.js +12 -0
- package/dist/lib/models/agent-turn.model.js.map +1 -0
- package/dist/lib/models/collection-view.model.js.map +1 -1
- package/dist/lib/models/conversation-state.model.d.ts +8 -0
- package/dist/lib/models/conversation-state.model.d.ts.map +1 -1
- package/dist/lib/models/conversation-state.model.js.map +1 -1
- package/dist/lib/models/lazy-artifact-info.d.ts +44 -12
- package/dist/lib/models/lazy-artifact-info.d.ts.map +1 -1
- package/dist/lib/models/lazy-artifact-info.js +98 -34
- package/dist/lib/models/lazy-artifact-info.js.map +1 -1
- package/dist/lib/services/active-tasks.service.d.ts +30 -4
- package/dist/lib/services/active-tasks.service.d.ts.map +1 -1
- package/dist/lib/services/active-tasks.service.js +71 -19
- package/dist/lib/services/active-tasks.service.js.map +1 -1
- package/dist/lib/services/agent-state.service.d.ts +17 -1
- package/dist/lib/services/agent-state.service.d.ts.map +1 -1
- package/dist/lib/services/agent-state.service.js +48 -16
- package/dist/lib/services/agent-state.service.js.map +1 -1
- package/dist/lib/services/artifact-permission.service.d.ts +39 -0
- package/dist/lib/services/artifact-permission.service.d.ts.map +1 -1
- package/dist/lib/services/artifact-permission.service.js +152 -17
- package/dist/lib/services/artifact-permission.service.js.map +1 -1
- package/dist/lib/services/artifact-state.service.d.ts +58 -5
- package/dist/lib/services/artifact-state.service.d.ts.map +1 -1
- package/dist/lib/services/artifact-state.service.js +135 -35
- package/dist/lib/services/artifact-state.service.js.map +1 -1
- package/dist/lib/services/collection-permission.service.d.ts +28 -0
- package/dist/lib/services/collection-permission.service.d.ts.map +1 -1
- package/dist/lib/services/collection-permission.service.js +88 -32
- package/dist/lib/services/collection-permission.service.js.map +1 -1
- package/dist/lib/services/collection-state.service.d.ts +11 -1
- package/dist/lib/services/collection-state.service.d.ts.map +1 -1
- package/dist/lib/services/collection-state.service.js +25 -5
- package/dist/lib/services/collection-state.service.js.map +1 -1
- package/dist/lib/services/conversation-agent.service.d.ts +26 -4
- package/dist/lib/services/conversation-agent.service.d.ts.map +1 -1
- package/dist/lib/services/conversation-agent.service.js +57 -18
- package/dist/lib/services/conversation-agent.service.js.map +1 -1
- package/dist/lib/services/conversation-attachment.service.d.ts +17 -0
- package/dist/lib/services/conversation-attachment.service.d.ts.map +1 -1
- package/dist/lib/services/conversation-attachment.service.js +38 -10
- package/dist/lib/services/conversation-attachment.service.js.map +1 -1
- package/dist/lib/services/conversation-streaming.service.d.ts +22 -0
- package/dist/lib/services/conversation-streaming.service.d.ts.map +1 -1
- package/dist/lib/services/conversation-streaming.service.js +50 -10
- package/dist/lib/services/conversation-streaming.service.js.map +1 -1
- package/dist/lib/services/data-cache.service.d.ts +31 -0
- package/dist/lib/services/data-cache.service.d.ts.map +1 -1
- package/dist/lib/services/data-cache.service.js +71 -15
- package/dist/lib/services/data-cache.service.js.map +1 -1
- package/dist/lib/services/dialog.service.d.ts +13 -0
- package/dist/lib/services/dialog.service.d.ts.map +1 -1
- package/dist/lib/services/dialog.service.js +25 -5
- package/dist/lib/services/dialog.service.js.map +1 -1
- package/dist/lib/services/export.service.d.ts +2 -0
- package/dist/lib/services/export.service.d.ts.map +1 -1
- package/dist/lib/services/export.service.js +5 -1
- package/dist/lib/services/export.service.js.map +1 -1
- package/dist/lib/services/mention-parser.service.d.ts +10 -0
- package/dist/lib/services/mention-parser.service.d.ts.map +1 -1
- package/dist/lib/services/mention-parser.service.js +25 -5
- package/dist/lib/services/mention-parser.service.js.map +1 -1
- package/dist/lib/services/notification.service.d.ts +54 -6
- package/dist/lib/services/notification.service.d.ts.map +1 -1
- package/dist/lib/services/notification.service.js +123 -27
- package/dist/lib/services/notification.service.js.map +1 -1
- package/dist/lib/services/realtime-audio-recorder.d.ts +4 -4
- package/dist/lib/services/realtime-audio-recorder.js +12 -12
- package/dist/lib/services/realtime-audio-recorder.js.map +1 -1
- package/dist/lib/services/realtime-pcm-wav.d.ts +4 -0
- package/dist/lib/services/realtime-pcm-wav.d.ts.map +1 -1
- package/dist/lib/services/realtime-pcm-wav.js +10 -2
- package/dist/lib/services/realtime-pcm-wav.js.map +1 -1
- package/dist/lib/services/search.service.d.ts +42 -9
- package/dist/lib/services/search.service.d.ts.map +1 -1
- package/dist/lib/services/search.service.js +103 -23
- package/dist/lib/services/search.service.js.map +1 -1
- package/dist/lib/services/toast.service.d.ts +19 -1
- package/dist/lib/services/toast.service.d.ts.map +1 -1
- package/dist/lib/services/toast.service.js +45 -9
- package/dist/lib/services/toast.service.js.map +1 -1
- package/dist/lib/services/ui-command-handler.service.d.ts +16 -2
- package/dist/lib/services/ui-command-handler.service.d.ts.map +1 -1
- package/dist/lib/services/ui-command-handler.service.js +36 -8
- package/dist/lib/services/ui-command-handler.service.js.map +1 -1
- package/dist/lib/utils/agent-artifact-summary.d.ts +2 -2
- package/dist/lib/utils/agent-artifact-summary.js +3 -3
- package/dist/lib/utils/agent-artifact-summary.js.map +1 -1
- package/dist/lib/utils/agent-turn-routing.d.ts +69 -0
- package/dist/lib/utils/agent-turn-routing.d.ts.map +1 -0
- package/dist/lib/utils/agent-turn-routing.js +96 -0
- package/dist/lib/utils/agent-turn-routing.js.map +1 -0
- package/dist/lib/utils/artifact-panel-action.d.ts +15 -4
- package/dist/lib/utils/artifact-panel-action.d.ts.map +1 -1
- package/dist/lib/utils/artifact-panel-action.js +10 -2
- package/dist/lib/utils/artifact-panel-action.js.map +1 -1
- package/dist/lib/utils/distinct-artifacts.d.ts +2 -0
- package/dist/lib/utils/distinct-artifacts.d.ts.map +1 -1
- package/dist/lib/utils/distinct-artifacts.js +5 -1
- package/dist/lib/utils/distinct-artifacts.js.map +1 -1
- package/dist/lib/utils/plan-mode-preference.d.ts +2 -2
- package/dist/lib/utils/plan-mode-preference.js +6 -6
- package/dist/lib/utils/plan-mode-preference.js.map +1 -1
- package/dist/public-api.d.ts +3 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +3 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +32 -32
|
@@ -10,34 +10,54 @@ export class CollectionStateService {
|
|
|
10
10
|
/**
|
|
11
11
|
* Observable of the active collection ID
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
ActiveCollectionId$ = this._activeCollectionId$.asObservable();
|
|
14
|
+
/** @deprecated Use {@link ActiveCollectionId$}. */
|
|
15
|
+
get activeCollectionId$() {
|
|
16
|
+
return this.ActiveCollectionId$;
|
|
17
|
+
}
|
|
14
18
|
/**
|
|
15
19
|
* Gets the currently active collection ID (synchronous)
|
|
16
20
|
*/
|
|
17
|
-
get
|
|
21
|
+
get ActiveCollectionId() {
|
|
18
22
|
return this._activeCollectionId$.value;
|
|
19
23
|
}
|
|
24
|
+
/** @deprecated Use {@link ActiveCollectionId}. */
|
|
25
|
+
get activeCollectionId() {
|
|
26
|
+
return this.ActiveCollectionId;
|
|
27
|
+
}
|
|
20
28
|
constructor() { }
|
|
21
29
|
/**
|
|
22
30
|
* Sets the active collection
|
|
23
31
|
* @param id The collection ID to activate (or null to clear)
|
|
24
32
|
*/
|
|
25
|
-
|
|
33
|
+
SetActiveCollection(id) {
|
|
26
34
|
console.log('📁 Setting active collection:', id);
|
|
27
35
|
this._activeCollectionId$.next(id);
|
|
28
36
|
}
|
|
37
|
+
/** @deprecated Use {@link SetActiveCollection}. */
|
|
38
|
+
setActiveCollection(id) {
|
|
39
|
+
return this.SetActiveCollection(id);
|
|
40
|
+
}
|
|
29
41
|
/**
|
|
30
42
|
* Clears the active collection
|
|
31
43
|
*/
|
|
32
|
-
|
|
44
|
+
ClearActiveCollection() {
|
|
33
45
|
this._activeCollectionId$.next(null);
|
|
34
46
|
}
|
|
47
|
+
/** @deprecated Use {@link ClearActiveCollection}. */
|
|
48
|
+
clearActiveCollection() {
|
|
49
|
+
return this.ClearActiveCollection();
|
|
50
|
+
}
|
|
35
51
|
/**
|
|
36
52
|
* Gets the currently active collection ID
|
|
37
53
|
*/
|
|
38
|
-
|
|
54
|
+
GetActiveCollectionId() {
|
|
39
55
|
return this._activeCollectionId$.value;
|
|
40
56
|
}
|
|
57
|
+
/** @deprecated Use {@link GetActiveCollectionId}. */
|
|
58
|
+
getActiveCollectionId() {
|
|
59
|
+
return this.GetActiveCollectionId();
|
|
60
|
+
}
|
|
41
61
|
static ɵfac = function CollectionStateService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CollectionStateService)(); };
|
|
42
62
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CollectionStateService, factory: CollectionStateService.ɵfac, providedIn: 'root' });
|
|
43
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-state.service.js","sourceRoot":"","sources":["../../../src/lib/services/collection-state.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAc,MAAM,MAAM,CAAC;;AAEnD;;;GAGG;AAIH,MAAM,OAAO,sBAAsB;IACzB,oBAAoB,GAAG,IAAI,eAAe,CAAgB,IAAI,CAAC,CAAC;IAExE;;OAEG;IACa,mBAAmB,GAA8B,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,CAAC;IAE1G;;OAEG;IACH,IAAW,kBAAkB;QAC3B,OAAO,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,gBAAe,CAAC;IAEhB;;;OAGG;IACH,mBAAmB,CAAC,EAAiB;QACnC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,qBAAqB;QACnB,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,qBAAqB;QACnB,OAAO,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC;IACzC,CAAC;
|
|
1
|
+
{"version":3,"file":"collection-state.service.js","sourceRoot":"","sources":["../../../src/lib/services/collection-state.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAc,MAAM,MAAM,CAAC;;AAEnD;;;GAGG;AAIH,MAAM,OAAO,sBAAsB;IACzB,oBAAoB,GAAG,IAAI,eAAe,CAAgB,IAAI,CAAC,CAAC;IAExE;;OAEG;IACa,mBAAmB,GAA8B,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,CAAC;IAE1G,mDAAmD;IACnD,IAAW,mBAAmB;QAC5B,OAAO,IAAI,CAAC,mBAAmB,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,IAAW,kBAAkB;QAC3B,OAAO,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,kDAAkD;IAClD,IAAW,kBAAkB;QAC3B,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACjC,CAAC;IAED,gBAAe,CAAC;IAEhB;;;OAGG;IACH,mBAAmB,CAAC,EAAiB;QACnC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,mDAAmD;IACnD,mBAAmB,CAAC,EAAiB;QACnC,OAAO,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,qBAAqB;QACnB,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,qDAAqD;IACrD,qBAAqB;QACnB,OAAO,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,qBAAqB;QACnB,OAAO,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,qDAAqD;IACrD,qBAAqB;QACnB,OAAO,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACtC,CAAC;gHA/DU,sBAAsB;gEAAtB,sBAAsB,WAAtB,sBAAsB,mBAFrB,MAAM;;iFAEP,sBAAsB;cAHlC,UAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB","sourcesContent":["import { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\n\n/**\n * State management service for collections\n * Tracks active collection for deep linking support\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class CollectionStateService {\n private _activeCollectionId$ = new BehaviorSubject<string | null>(null);\n\n /**\n * Observable of the active collection ID\n */\n public readonly ActiveCollectionId$: Observable<string | null> = this._activeCollectionId$.asObservable();\n\n /** @deprecated Use {@link ActiveCollectionId$}. */\n public get activeCollectionId$(): Observable<string | null> {\n return this.ActiveCollectionId$;\n }\n\n /**\n * Gets the currently active collection ID (synchronous)\n */\n public get ActiveCollectionId(): string | null {\n return this._activeCollectionId$.value;\n }\n\n /** @deprecated Use {@link ActiveCollectionId}. */\n public get activeCollectionId(): string | null {\n return this.ActiveCollectionId;\n }\n\n constructor() {}\n\n /**\n * Sets the active collection\n * @param id The collection ID to activate (or null to clear)\n */\n SetActiveCollection(id: string | null): void {\n console.log('📁 Setting active collection:', id);\n this._activeCollectionId$.next(id);\n }\n\n /** @deprecated Use {@link SetActiveCollection}. */\n setActiveCollection(id: string | null): void {\n return this.SetActiveCollection(id);\n }\n\n /**\n * Clears the active collection\n */\n ClearActiveCollection(): void {\n this._activeCollectionId$.next(null);\n }\n\n /** @deprecated Use {@link ClearActiveCollection}. */\n clearActiveCollection(): void {\n return this.ClearActiveCollection();\n }\n\n /**\n * Gets the currently active collection ID\n */\n GetActiveCollectionId(): string | null {\n return this._activeCollectionId$.value;\n }\n\n /** @deprecated Use {@link GetActiveCollectionId}. */\n getActiveCollectionId(): string | null {\n return this.GetActiveCollectionId();\n }\n}\n"]}
|
|
@@ -74,7 +74,9 @@ export declare class ConversationAgentService {
|
|
|
74
74
|
private _conversationManagerAgent;
|
|
75
75
|
private _sessionIds;
|
|
76
76
|
/** Observable indicating if the ambient agent is currently processing — delegated to the runtime's AgentRunner. */
|
|
77
|
-
readonly
|
|
77
|
+
readonly IsProcessing$: Observable<boolean>;
|
|
78
|
+
/** @deprecated Use {@link IsProcessing$}. */
|
|
79
|
+
get isProcessing$(): Observable<boolean>;
|
|
78
80
|
private _provider;
|
|
79
81
|
constructor(_bootstrap: ConversationsRuntimeBootstrap, mentionParser: MentionParserService, agentClientService: AgentClientService);
|
|
80
82
|
/**
|
|
@@ -100,6 +102,8 @@ export declare class ConversationAgentService {
|
|
|
100
102
|
* preserve that shape (returning null on failure rather than throwing)
|
|
101
103
|
* so the call sites don't need to change.
|
|
102
104
|
*/
|
|
105
|
+
GetConversationManagerAgent(): Promise<MJAIAgentEntityExtended | null>;
|
|
106
|
+
/** @deprecated Use {@link GetConversationManagerAgent}. */
|
|
103
107
|
getConversationManagerAgent(): Promise<MJAIAgentEntityExtended | null>;
|
|
104
108
|
/**
|
|
105
109
|
* Synchronous read of the cached conversation-manager-agent name. Returns
|
|
@@ -123,7 +127,13 @@ export declare class ConversationAgentService {
|
|
|
123
127
|
* documented as "kept for backwards compatibility but not used" in the
|
|
124
128
|
* original).
|
|
125
129
|
*/
|
|
126
|
-
|
|
130
|
+
ProcessMessage(conversationId: string, message: MJConversationDetailEntity, conversationHistory: MJConversationDetailEntity[], conversationDetailId: string, onProgress?: AgentExecutionProgressCallback, appContext?: Record<string, unknown> | null, planMode?: boolean, requestedSkillIDs?: string[],
|
|
131
|
+
/** The agents the conversation manager may delegate to. Null or omitted allows every agent. */
|
|
132
|
+
allowedAgentIDs?: readonly string[] | null,
|
|
133
|
+
/** The first moment of the conversation the run may read. Null or omitted reads all of it. */
|
|
134
|
+
agentHistoryFrom?: Date | null): Promise<ExecuteAgentResult | null>;
|
|
135
|
+
/** @deprecated Use {@link ProcessMessage}. */
|
|
136
|
+
processMessage(conversationId: string, message: MJConversationDetailEntity, conversationHistory: MJConversationDetailEntity[], conversationDetailId: string, onProgress?: AgentExecutionProgressCallback, appContext?: Record<string, unknown> | null, planMode?: boolean, requestedSkillIDs?: string[], allowedAgentIDs?: readonly string[] | null, agentHistoryFrom?: Date | null): Promise<ExecuteAgentResult | null>;
|
|
127
137
|
/**
|
|
128
138
|
* Configuration preset an agent was pinned to by a previous `@mention` in this conversation.
|
|
129
139
|
*
|
|
@@ -145,6 +155,8 @@ export declare class ConversationAgentService {
|
|
|
145
155
|
/**
|
|
146
156
|
* Clear the session for a conversation (useful when starting a new topic)
|
|
147
157
|
*/
|
|
158
|
+
ClearSession(conversationId: string): void;
|
|
159
|
+
/** @deprecated Use {@link ClearSession}. */
|
|
148
160
|
clearSession(conversationId: string): void;
|
|
149
161
|
/**
|
|
150
162
|
* Surfaces a warning toast when the user requested skills (via /skill mentions) that the
|
|
@@ -160,7 +172,11 @@ export declare class ConversationAgentService {
|
|
|
160
172
|
* Stays on the Angular shim because it directly uses AgentClientService.
|
|
161
173
|
* Could move to the runtime in a follow-up if needed.
|
|
162
174
|
*/
|
|
163
|
-
|
|
175
|
+
InvokeSubAgent(agentName: string, conversationId: string, message: MJConversationDetailEntity, conversationHistory: MJConversationDetailEntity[], reasoning: string, conversationDetailId: string, payload?: Record<string, unknown> | null, onProgress?: AgentExecutionProgressCallback, sourceArtifactId?: string, sourceArtifactVersionId?: string, agentConfigurationPresetId?: string, appContext?: Record<string, unknown> | null, planMode?: boolean, requestedSkillIDs?: string[],
|
|
176
|
+
/** The first moment of the conversation the run may read. Null or omitted reads all of it. */
|
|
177
|
+
agentHistoryFrom?: Date | null): Promise<ExecuteAgentResult | null>;
|
|
178
|
+
/** @deprecated Use {@link InvokeSubAgent}. */
|
|
179
|
+
invokeSubAgent(agentName: string, conversationId: string, message: MJConversationDetailEntity, conversationHistory: MJConversationDetailEntity[], reasoning: string, conversationDetailId: string, payload?: Record<string, unknown> | null, onProgress?: AgentExecutionProgressCallback, sourceArtifactId?: string, sourceArtifactVersionId?: string, agentConfigurationPresetId?: string, appContext?: Record<string, unknown> | null, planMode?: boolean, requestedSkillIDs?: string[], agentHistoryFrom?: Date | null): Promise<ExecuteAgentResult | null>;
|
|
164
180
|
/**
|
|
165
181
|
* Check if user's latest message should continue with the previous agent or route through Sage.
|
|
166
182
|
* Uses fast inference (<500ms) to determine intent and avoid unnecessary Sage overhead.
|
|
@@ -168,6 +184,8 @@ export declare class ConversationAgentService {
|
|
|
168
184
|
* Stays on the Angular shim because it directly uses GraphQLAIClient.
|
|
169
185
|
* Could move to the runtime in a follow-up.
|
|
170
186
|
*/
|
|
187
|
+
CheckAgentContinuityIntent(conversationId: string, agentId: string, latestMessage: string, conversationHistory: MJConversationDetailEntity[]): Promise<IntentCheckResult>;
|
|
188
|
+
/** @deprecated Use {@link CheckAgentContinuityIntent}. */
|
|
171
189
|
checkAgentContinuityIntent(conversationId: string, agentId: string, latestMessage: string, conversationHistory: MJConversationDetailEntity[]): Promise<IntentCheckResult>;
|
|
172
190
|
/**
|
|
173
191
|
* Every artifact this agent produced in this conversation, newest version first — resolved
|
|
@@ -203,8 +221,12 @@ export declare class ConversationAgentService {
|
|
|
203
221
|
*
|
|
204
222
|
* One round trip. The subquery walks details -> Output junctions, and versions carry
|
|
205
223
|
* `__mj_CreatedAt`, so "newest" is expressible without joining back for `Sequence`.
|
|
224
|
+
*
|
|
225
|
+
* @param historyFrom The chat's history floor. When set, only artifacts on replies written at
|
|
226
|
+
* or after it count: a run that may not read earlier messages must not pick up their work
|
|
227
|
+
* as its payload either.
|
|
206
228
|
*/
|
|
207
|
-
FindLatestAgentOutputVersion(conversationId: string, agentId: string): Promise<AgentPayloadSource | null>;
|
|
229
|
+
FindLatestAgentOutputVersion(conversationId: string, agentId: string, historyFrom?: Date | null): Promise<AgentPayloadSource | null>;
|
|
208
230
|
/**
|
|
209
231
|
* `ArtifactVersion.ID IN (...)` for every OUTPUT artifact an agent produced in one
|
|
210
232
|
* conversation. Shared by {@link FindLatestAgentOutputVersion} and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-agent.service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/conversation-agent.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAY,iBAAiB,EAAW,MAAM,sBAAsB,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,8BAA8B,EAAkC,MAAM,8BAA8B,CAAC;AAElI,OAAO,
|
|
1
|
+
{"version":3,"file":"conversation-agent.service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/conversation-agent.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UA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,OAAO,CAAC,iBAAiB,CAAC;IAI7B;;;;;;;;;;;;;;;;;;OAkBG;YACW,qBAAqB;IA+BnC,kEAAkE;YACpD,iBAAiB;IAoB/B;;;;;;;;;;;;;;;;OAgBG;IACU,4BAA4B,CACvC,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,MAAM,EACf,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GACxB,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAMrC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,wBAAwB;IAYhC;;;;;;OAMG;IACU,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAI3F;;;;;OAKG;YACW,qBAAqB;yCA5pBxB,wBAAwB;6CAAxB,wBAAwB;CA4rBpC"}
|
|
@@ -3,6 +3,7 @@ import { Metadata, RunView } from '@memberjunction/core';
|
|
|
3
3
|
import { GraphQLAIClient } from '@memberjunction/graphql-dataprovider';
|
|
4
4
|
import { coerceFailedExecuteAgentResult } from '@memberjunction/ai-core-plus';
|
|
5
5
|
import { AIEngineBase } from '@memberjunction/ai-engine-base';
|
|
6
|
+
import { ConversationEngine } from '@memberjunction/core-entities';
|
|
6
7
|
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
7
8
|
import { ConversationsRuntime } from '@memberjunction/conversations-runtime';
|
|
8
9
|
import { UUIDsEqual } from '@memberjunction/global';
|
|
@@ -54,14 +55,18 @@ export class ConversationAgentService {
|
|
|
54
55
|
_conversationManagerAgent = null;
|
|
55
56
|
_sessionIds = new Map();
|
|
56
57
|
/** Observable indicating if the ambient agent is currently processing — delegated to the runtime's AgentRunner. */
|
|
57
|
-
|
|
58
|
+
IsProcessing$;
|
|
59
|
+
/** @deprecated Use {@link IsProcessing$}. */
|
|
60
|
+
get isProcessing$() {
|
|
61
|
+
return this.IsProcessing$;
|
|
62
|
+
}
|
|
58
63
|
_provider = null;
|
|
59
64
|
constructor(_bootstrap, mentionParser, agentClientService) {
|
|
60
65
|
this.mentionParser = mentionParser;
|
|
61
66
|
this.agentClientService = agentClientService;
|
|
62
67
|
// Injecting `_bootstrap` forces the runtime's INotificationAdapter +
|
|
63
68
|
// IActiveTaskTracker adapters to register before any shim method runs.
|
|
64
|
-
this.
|
|
69
|
+
this.IsProcessing$ = ConversationsRuntime.Instance.AgentRunner.isProcessing$;
|
|
65
70
|
this.initializeAIClient();
|
|
66
71
|
}
|
|
67
72
|
/**
|
|
@@ -106,7 +111,7 @@ export class ConversationAgentService {
|
|
|
106
111
|
* preserve that shape (returning null on failure rather than throwing)
|
|
107
112
|
* so the call sites don't need to change.
|
|
108
113
|
*/
|
|
109
|
-
async
|
|
114
|
+
async GetConversationManagerAgent() {
|
|
110
115
|
if (this._conversationManagerAgent) {
|
|
111
116
|
return this._conversationManagerAgent;
|
|
112
117
|
}
|
|
@@ -126,6 +131,10 @@ export class ConversationAgentService {
|
|
|
126
131
|
return null;
|
|
127
132
|
}
|
|
128
133
|
}
|
|
134
|
+
/** @deprecated Use {@link GetConversationManagerAgent}. */
|
|
135
|
+
async getConversationManagerAgent() {
|
|
136
|
+
return this.GetConversationManagerAgent();
|
|
137
|
+
}
|
|
129
138
|
/**
|
|
130
139
|
* Synchronous read of the cached conversation-manager-agent name. Returns
|
|
131
140
|
* `null` until {@link getConversationManagerAgent} has been called at least
|
|
@@ -155,11 +164,15 @@ export class ConversationAgentService {
|
|
|
155
164
|
* documented as "kept for backwards compatibility but not used" in the
|
|
156
165
|
* original).
|
|
157
166
|
*/
|
|
158
|
-
async
|
|
167
|
+
async ProcessMessage(conversationId, message, conversationHistory, conversationDetailId, onProgress, appContext, planMode, requestedSkillIDs,
|
|
168
|
+
/** The agents the conversation manager may delegate to. Null or omitted allows every agent. */
|
|
169
|
+
allowedAgentIDs,
|
|
170
|
+
/** The first moment of the conversation the run may read. Null or omitted reads all of it. */
|
|
171
|
+
agentHistoryFrom) {
|
|
159
172
|
// Warm the cached default-agent name for any synchronous consumers
|
|
160
173
|
// before the runtime resolves on its own.
|
|
161
174
|
if (!this._conversationManagerAgent) {
|
|
162
|
-
await this.
|
|
175
|
+
await this.GetConversationManagerAgent();
|
|
163
176
|
}
|
|
164
177
|
return ConversationsRuntime.Instance.AgentRunner.processMessage({
|
|
165
178
|
conversationId,
|
|
@@ -169,8 +182,14 @@ export class ConversationAgentService {
|
|
|
169
182
|
onProgress,
|
|
170
183
|
...(planMode ? { planMode: true } : {}),
|
|
171
184
|
...(requestedSkillIDs?.length ? { requestedSkillIDs } : {}),
|
|
185
|
+
...(allowedAgentIDs != null ? { AllowedAgentIDs: allowedAgentIDs } : {}),
|
|
186
|
+
...(agentHistoryFrom ? { AgentHistoryFrom: agentHistoryFrom } : {}),
|
|
172
187
|
});
|
|
173
188
|
}
|
|
189
|
+
/** @deprecated Use {@link ProcessMessage}. */
|
|
190
|
+
async processMessage(conversationId, message, conversationHistory, conversationDetailId, onProgress, appContext, planMode, requestedSkillIDs, allowedAgentIDs, agentHistoryFrom) {
|
|
191
|
+
return this.ProcessMessage(conversationId, message, conversationHistory, conversationDetailId, onProgress, appContext, planMode, requestedSkillIDs, allowedAgentIDs, agentHistoryFrom);
|
|
192
|
+
}
|
|
174
193
|
/**
|
|
175
194
|
* Configuration preset an agent was pinned to by a previous `@mention` in this conversation.
|
|
176
195
|
*
|
|
@@ -224,9 +243,13 @@ export class ConversationAgentService {
|
|
|
224
243
|
/**
|
|
225
244
|
* Clear the session for a conversation (useful when starting a new topic)
|
|
226
245
|
*/
|
|
227
|
-
|
|
246
|
+
ClearSession(conversationId) {
|
|
228
247
|
this._sessionIds.delete(conversationId);
|
|
229
248
|
}
|
|
249
|
+
/** @deprecated Use {@link ClearSession}. */
|
|
250
|
+
clearSession(conversationId) {
|
|
251
|
+
return this.ClearSession(conversationId);
|
|
252
|
+
}
|
|
230
253
|
/**
|
|
231
254
|
* Surfaces a warning toast when the user requested skills (via /skill mentions) that the
|
|
232
255
|
* target agent cannot activate — the server drops such requests, and without this the
|
|
@@ -251,7 +274,9 @@ export class ConversationAgentService {
|
|
|
251
274
|
* Stays on the Angular shim because it directly uses AgentClientService.
|
|
252
275
|
* Could move to the runtime in a follow-up if needed.
|
|
253
276
|
*/
|
|
254
|
-
async
|
|
277
|
+
async InvokeSubAgent(agentName, conversationId, message, conversationHistory, reasoning, conversationDetailId, payload, onProgress, sourceArtifactId, sourceArtifactVersionId, agentConfigurationPresetId, appContext, planMode, requestedSkillIDs,
|
|
278
|
+
/** The first moment of the conversation the run may read. Null or omitted reads all of it. */
|
|
279
|
+
agentHistoryFrom) {
|
|
255
280
|
try {
|
|
256
281
|
// Ensure AIEngineBase is configured
|
|
257
282
|
await AIEngineBase.Instance.Config(false);
|
|
@@ -294,6 +319,7 @@ export class ConversationAgentService {
|
|
|
294
319
|
...(aiConfigurationId ? { ConfigurationId: aiConfigurationId } : {}),
|
|
295
320
|
...(planMode ? { PlanMode: true } : {}),
|
|
296
321
|
...(requestedSkillIDs?.length ? { RequestedSkillIDs: requestedSkillIDs } : {}),
|
|
322
|
+
...(agentHistoryFrom ? { AgentHistoryFrom: agentHistoryFrom } : {}),
|
|
297
323
|
CreateArtifacts: true,
|
|
298
324
|
CreateNotification: true,
|
|
299
325
|
SourceArtifactId: sourceArtifactId,
|
|
@@ -324,6 +350,10 @@ export class ConversationAgentService {
|
|
|
324
350
|
return coerceFailedExecuteAgentResult(undefined, errorMsg);
|
|
325
351
|
}
|
|
326
352
|
}
|
|
353
|
+
/** @deprecated Use {@link InvokeSubAgent}. */
|
|
354
|
+
async invokeSubAgent(agentName, conversationId, message, conversationHistory, reasoning, conversationDetailId, payload, onProgress, sourceArtifactId, sourceArtifactVersionId, agentConfigurationPresetId, appContext, planMode, requestedSkillIDs, agentHistoryFrom) {
|
|
355
|
+
return this.InvokeSubAgent(agentName, conversationId, message, conversationHistory, reasoning, conversationDetailId, payload, onProgress, sourceArtifactId, sourceArtifactVersionId, agentConfigurationPresetId, appContext, planMode, requestedSkillIDs, agentHistoryFrom);
|
|
356
|
+
}
|
|
327
357
|
/**
|
|
328
358
|
* Check if user's latest message should continue with the previous agent or route through Sage.
|
|
329
359
|
* Uses fast inference (<500ms) to determine intent and avoid unnecessary Sage overhead.
|
|
@@ -331,7 +361,7 @@ export class ConversationAgentService {
|
|
|
331
361
|
* Stays on the Angular shim because it directly uses GraphQLAIClient.
|
|
332
362
|
* Could move to the runtime in a follow-up.
|
|
333
363
|
*/
|
|
334
|
-
async
|
|
364
|
+
async CheckAgentContinuityIntent(conversationId, agentId, latestMessage, conversationHistory) {
|
|
335
365
|
if (!this._aiClient) {
|
|
336
366
|
console.warn('AI Client not initialized, defaulting to UNSURE for intent check');
|
|
337
367
|
return { decision: 'UNSURE', reasoning: 'AI Client not initialized' };
|
|
@@ -362,12 +392,12 @@ export class ConversationAgentService {
|
|
|
362
392
|
if (agentArtifacts.length > 0) {
|
|
363
393
|
artifactContext = '\n\n**Prior Artifacts Created by This Agent**:\n';
|
|
364
394
|
agentArtifacts.forEach((artifact, idx) => {
|
|
365
|
-
artifactContext += `${idx + 1}. ${artifact.artifactName} (${artifact.
|
|
366
|
-
artifactContext += ` - Versions: ${artifact.
|
|
367
|
-
if (artifact.
|
|
368
|
-
artifactContext += ` - Latest: v${artifact.
|
|
369
|
-
if (artifact.
|
|
370
|
-
artifactContext += ` - ${artifact.
|
|
395
|
+
artifactContext += `${idx + 1}. ${artifact.artifactName} (${artifact.ArtifactType})\n`;
|
|
396
|
+
artifactContext += ` - Versions: ${artifact.Versions.length}\n`;
|
|
397
|
+
if (artifact.Versions.length > 0) {
|
|
398
|
+
artifactContext += ` - Latest: v${artifact.Versions[0].versionNumber}`;
|
|
399
|
+
if (artifact.Versions[0].versionName) {
|
|
400
|
+
artifactContext += ` - ${artifact.Versions[0].versionName}`;
|
|
371
401
|
}
|
|
372
402
|
artifactContext += '\n';
|
|
373
403
|
}
|
|
@@ -424,6 +454,10 @@ ${compactHistory}${artifactContext}
|
|
|
424
454
|
};
|
|
425
455
|
}
|
|
426
456
|
}
|
|
457
|
+
/** @deprecated Use {@link CheckAgentContinuityIntent}. */
|
|
458
|
+
async checkAgentContinuityIntent(conversationId, agentId, latestMessage, conversationHistory) {
|
|
459
|
+
return this.CheckAgentContinuityIntent(conversationId, agentId, latestMessage, conversationHistory);
|
|
460
|
+
}
|
|
427
461
|
/**
|
|
428
462
|
* Every artifact this agent produced in this conversation, newest version first — resolved
|
|
429
463
|
* by QUERY, not by scanning the display array.
|
|
@@ -491,9 +525,13 @@ ${compactHistory}${artifactContext}
|
|
|
491
525
|
*
|
|
492
526
|
* One round trip. The subquery walks details -> Output junctions, and versions carry
|
|
493
527
|
* `__mj_CreatedAt`, so "newest" is expressible without joining back for `Sequence`.
|
|
528
|
+
*
|
|
529
|
+
* @param historyFrom The chat's history floor. When set, only artifacts on replies written at
|
|
530
|
+
* or after it count: a run that may not read earlier messages must not pick up their work
|
|
531
|
+
* as its payload either.
|
|
494
532
|
*/
|
|
495
|
-
async FindLatestAgentOutputVersion(conversationId, agentId) {
|
|
496
|
-
return this.runPayloadSourceQuery(this.agentOutputVersionFilter(conversationId, agentId), '__mj_CreatedAt DESC');
|
|
533
|
+
async FindLatestAgentOutputVersion(conversationId, agentId, historyFrom) {
|
|
534
|
+
return this.runPayloadSourceQuery(this.agentOutputVersionFilter(conversationId, agentId, historyFrom), '__mj_CreatedAt DESC');
|
|
497
535
|
}
|
|
498
536
|
/**
|
|
499
537
|
* `ArtifactVersion.ID IN (...)` for every OUTPUT artifact an agent produced in one
|
|
@@ -506,13 +544,14 @@ ${compactHistory}${artifactContext}
|
|
|
506
544
|
* run would mean joining back to `MJ: AI Agent Runs` purely to restate a condition the
|
|
507
545
|
* detail already carries.
|
|
508
546
|
*/
|
|
509
|
-
agentOutputVersionFilter(conversationId, agentId) {
|
|
547
|
+
agentOutputVersionFilter(conversationId, agentId, historyFrom) {
|
|
548
|
+
const floor = historyFrom ? ` AND ${ConversationEngine.HistoryFromFilter(historyFrom)}` : '';
|
|
510
549
|
return `ID IN (
|
|
511
550
|
SELECT ArtifactVersionID FROM [__mj].[vwConversationDetailArtifacts]
|
|
512
551
|
WHERE Direction='Output' AND ConversationDetailID IN (
|
|
513
552
|
SELECT ID FROM [__mj].[vwConversationDetails]
|
|
514
553
|
WHERE ConversationID='${conversationId}' AND AgentID='${agentId}'
|
|
515
|
-
AND Role='AI' AND Status <> 'Error'
|
|
554
|
+
AND Role='AI' AND Status <> 'Error'${floor}
|
|
516
555
|
)
|
|
517
556
|
)`;
|
|
518
557
|
}
|