@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
|
@@ -8,6 +8,8 @@ import { DialogService } from '../../services/dialog.service';
|
|
|
8
8
|
import { ToastService } from '../../services/toast.service';
|
|
9
9
|
import { ConversationAgentService } from '../../services/conversation-agent.service';
|
|
10
10
|
import { BeforeAgentTurnEventArgs, AfterAgentTurnEventArgs } from '../../events/chat-events';
|
|
11
|
+
import type { AgentReplyMode, AgentTurnHandler } from '../../models/agent-turn.model';
|
|
12
|
+
import type { MentionPerson } from '@memberjunction/conversations-runtime';
|
|
11
13
|
import { DataCacheService } from '../../services/data-cache.service';
|
|
12
14
|
import { ActiveTasksService } from '../../services/active-tasks.service';
|
|
13
15
|
import { ConversationStreamingService } from '../../services/conversation-streaming.service';
|
|
@@ -33,27 +35,111 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
33
35
|
private bridge;
|
|
34
36
|
private realtimeSession;
|
|
35
37
|
private readonly JSON_ARTIFACT_TYPE_ID;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
38
|
+
ConversationId: string;
|
|
39
|
+
/** @deprecated Use {@link ConversationId}. */
|
|
40
|
+
set conversationId(value: string);
|
|
41
|
+
/** @deprecated Use {@link ConversationId}. */
|
|
42
|
+
get conversationId(): string;
|
|
43
|
+
ConversationName?: string | null;
|
|
44
|
+
/** @deprecated Use {@link ConversationName}. */
|
|
45
|
+
set conversationName(value: string | null | undefined);
|
|
46
|
+
/** @deprecated Use {@link ConversationName}. */
|
|
47
|
+
get conversationName(): string | null | undefined;
|
|
48
|
+
CurrentUser: UserInfo;
|
|
49
|
+
/** @deprecated Use {@link CurrentUser}. */
|
|
50
|
+
set currentUser(value: UserInfo);
|
|
51
|
+
/** @deprecated Use {@link CurrentUser}. */
|
|
52
|
+
get currentUser(): UserInfo;
|
|
53
|
+
Disabled: boolean;
|
|
54
|
+
/** @deprecated Use {@link Disabled}. */
|
|
55
|
+
set disabled(value: boolean);
|
|
56
|
+
/** @deprecated Use {@link Disabled}. */
|
|
57
|
+
get disabled(): boolean;
|
|
58
|
+
Placeholder: string;
|
|
59
|
+
/** @deprecated Use {@link Placeholder}. */
|
|
60
|
+
set placeholder(value: string);
|
|
61
|
+
/** @deprecated Use {@link Placeholder}. */
|
|
62
|
+
get placeholder(): string;
|
|
63
|
+
ParentMessageId?: string;
|
|
64
|
+
/** @deprecated Use {@link ParentMessageId}. */
|
|
65
|
+
set parentMessageId(value: string | undefined);
|
|
66
|
+
/** @deprecated Use {@link ParentMessageId}. */
|
|
67
|
+
get parentMessageId(): string | undefined;
|
|
68
|
+
EnableAttachments: boolean;
|
|
69
|
+
/** @deprecated Use {@link EnableAttachments}. */
|
|
70
|
+
set enableAttachments(value: boolean);
|
|
71
|
+
/** @deprecated Use {@link EnableAttachments}. */
|
|
72
|
+
get enableAttachments(): boolean;
|
|
73
|
+
EnableMentions: boolean;
|
|
74
|
+
/** @deprecated Use {@link EnableMentions}. */
|
|
75
|
+
set enableMentions(value: boolean);
|
|
76
|
+
/** @deprecated Use {@link EnableMentions}. */
|
|
77
|
+
get enableMentions(): boolean;
|
|
78
|
+
EnableAgentMentions: boolean;
|
|
79
|
+
/** @deprecated Use {@link EnableAgentMentions}. */
|
|
80
|
+
set enableAgentMentions(value: boolean);
|
|
81
|
+
/** @deprecated Use {@link EnableAgentMentions}. */
|
|
82
|
+
get enableAgentMentions(): boolean;
|
|
83
|
+
EnableEntityMentions: boolean;
|
|
84
|
+
/** @deprecated Use {@link EnableEntityMentions}. */
|
|
85
|
+
set enableEntityMentions(value: boolean);
|
|
86
|
+
/** @deprecated Use {@link EnableEntityMentions}. */
|
|
87
|
+
get enableEntityMentions(): boolean;
|
|
88
|
+
EnableSkillCommands: boolean;
|
|
89
|
+
/** @deprecated Use {@link EnableSkillCommands}. */
|
|
90
|
+
set enableSkillCommands(value: boolean);
|
|
91
|
+
/** @deprecated Use {@link EnableSkillCommands}. */
|
|
92
|
+
get enableSkillCommands(): boolean;
|
|
93
|
+
EnablePlanMode: boolean;
|
|
94
|
+
/** @deprecated Use {@link EnablePlanMode}. */
|
|
95
|
+
set enablePlanMode(value: boolean);
|
|
96
|
+
/** @deprecated Use {@link EnablePlanMode}. */
|
|
97
|
+
get enablePlanMode(): boolean;
|
|
98
|
+
EnableRealtime: boolean;
|
|
99
|
+
/** @deprecated Use {@link EnableRealtime}. */
|
|
100
|
+
set enableRealtime(value: boolean);
|
|
101
|
+
/** @deprecated Use {@link EnableRealtime}. */
|
|
102
|
+
get enableRealtime(): boolean;
|
|
103
|
+
MaxAttachments: number;
|
|
104
|
+
/** @deprecated Use {@link MaxAttachments}. */
|
|
105
|
+
set maxAttachments(value: number);
|
|
106
|
+
/** @deprecated Use {@link MaxAttachments}. */
|
|
107
|
+
get maxAttachments(): number;
|
|
108
|
+
MaxAttachmentSizeBytes: number;
|
|
109
|
+
/** @deprecated Use {@link MaxAttachmentSizeBytes}. */
|
|
110
|
+
set maxAttachmentSizeBytes(value: number);
|
|
111
|
+
/** @deprecated Use {@link MaxAttachmentSizeBytes}. */
|
|
112
|
+
get maxAttachmentSizeBytes(): number;
|
|
113
|
+
AcceptedFileTypes: string;
|
|
114
|
+
/** @deprecated Use {@link AcceptedFileTypes}. */
|
|
115
|
+
set acceptedFileTypes(value: string);
|
|
116
|
+
/** @deprecated Use {@link AcceptedFileTypes}. */
|
|
117
|
+
get acceptedFileTypes(): string;
|
|
118
|
+
ArtifactsByDetailId?: Map<string, LazyArtifactInfo[]>;
|
|
119
|
+
/** @deprecated Use {@link ArtifactsByDetailId}. */
|
|
120
|
+
set artifactsByDetailId(value: Map<string, LazyArtifactInfo[]> | undefined);
|
|
121
|
+
/** @deprecated Use {@link ArtifactsByDetailId}. */
|
|
122
|
+
get artifactsByDetailId(): Map<string, LazyArtifactInfo[]> | undefined;
|
|
123
|
+
SystemArtifactsByDetailId?: Map<string, LazyArtifactInfo[]>;
|
|
124
|
+
/** @deprecated Use {@link SystemArtifactsByDetailId}. */
|
|
125
|
+
set systemArtifactsByDetailId(value: Map<string, LazyArtifactInfo[]> | undefined);
|
|
126
|
+
/** @deprecated Use {@link SystemArtifactsByDetailId}. */
|
|
127
|
+
get systemArtifactsByDetailId(): Map<string, LazyArtifactInfo[]> | undefined;
|
|
128
|
+
AgentRunsByDetailId?: Map<string, MJAIAgentRunEntityExtended>;
|
|
129
|
+
/** @deprecated Use {@link AgentRunsByDetailId}. */
|
|
130
|
+
set agentRunsByDetailId(value: Map<string, MJAIAgentRunEntityExtended> | undefined);
|
|
131
|
+
/** @deprecated Use {@link AgentRunsByDetailId}. */
|
|
132
|
+
get agentRunsByDetailId(): Map<string, MJAIAgentRunEntityExtended> | undefined;
|
|
133
|
+
EmptyStateMode: boolean;
|
|
134
|
+
/** @deprecated Use {@link EmptyStateMode}. */
|
|
135
|
+
set emptyStateMode(value: boolean);
|
|
136
|
+
/** @deprecated Use {@link EmptyStateMode}. */
|
|
137
|
+
get emptyStateMode(): boolean;
|
|
138
|
+
AppContext: Record<string, unknown> | null;
|
|
139
|
+
/** @deprecated Use {@link AppContext}. */
|
|
140
|
+
set appContext(value: Record<string, unknown> | null);
|
|
141
|
+
/** @deprecated Use {@link AppContext}. */
|
|
142
|
+
get appContext(): Record<string, unknown> | null;
|
|
57
143
|
/**
|
|
58
144
|
* Plan Mode toggle state — sticky PER CONVERSATION, OFF by default (no behavior change unless
|
|
59
145
|
* the user turns it on). When on, the user's next message(s) in THIS conversation request Plan
|
|
@@ -96,7 +182,11 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
96
182
|
* context and don't need Sage to route. Leave unset to preserve the
|
|
97
183
|
* standard Sage-fronted UX of the main Chat app.
|
|
98
184
|
*/
|
|
99
|
-
|
|
185
|
+
DefaultAgentId: string | null;
|
|
186
|
+
/** @deprecated Use {@link DefaultAgentId}. */
|
|
187
|
+
set defaultAgentId(value: string | null);
|
|
188
|
+
/** @deprecated Use {@link DefaultAgentId}. */
|
|
189
|
+
get defaultAgentId(): string | null;
|
|
100
190
|
/**
|
|
101
191
|
* Per-conversation pinned default agent — sourced from the loaded
|
|
102
192
|
* `MJConversationEntity.DefaultAgentID`. When set, this agent is used in
|
|
@@ -110,7 +200,11 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
110
200
|
* 4. defaultAgentId (embedder-supplied)
|
|
111
201
|
* 5. Sage fallback
|
|
112
202
|
*/
|
|
113
|
-
|
|
203
|
+
ConversationDefaultAgentId: string | null;
|
|
204
|
+
/** @deprecated Use {@link ConversationDefaultAgentId}. */
|
|
205
|
+
set conversationDefaultAgentId(value: string | null);
|
|
206
|
+
/** @deprecated Use {@link ConversationDefaultAgentId}. */
|
|
207
|
+
get conversationDefaultAgentId(): string | null;
|
|
114
208
|
/**
|
|
115
209
|
* The `MJ: AI Agent Configurations.ID` selected via the chat header's
|
|
116
210
|
* mode picker (Draft / Standard / High). Applied to **non-mention**
|
|
@@ -128,64 +222,217 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
128
222
|
* messages already in flight or already in history. Affects "what
|
|
129
223
|
* happens next."
|
|
130
224
|
*/
|
|
131
|
-
|
|
225
|
+
AgentConfigurationPresetId: string | null;
|
|
226
|
+
/** @deprecated Use {@link AgentConfigurationPresetId}. */
|
|
227
|
+
set agentConfigurationPresetId(value: string | null);
|
|
228
|
+
/** @deprecated Use {@link AgentConfigurationPresetId}. */
|
|
229
|
+
get agentConfigurationPresetId(): string | null;
|
|
132
230
|
private _initialMessage;
|
|
133
231
|
private _initialAttachments;
|
|
134
232
|
private _isComponentReady;
|
|
135
233
|
/** Conversation this input has already auto-sent its pending first message for. */
|
|
136
234
|
private _autoSentForConversationId;
|
|
137
|
-
set
|
|
235
|
+
set InitialMessage(value: string | null);
|
|
236
|
+
get InitialMessage(): string | null;
|
|
237
|
+
/** @deprecated Use {@link InitialMessage}. */
|
|
138
238
|
get initialMessage(): string | null;
|
|
139
|
-
|
|
239
|
+
/** @deprecated Use {@link InitialMessage}. */
|
|
240
|
+
set initialMessage(value: string | null);
|
|
241
|
+
set InitialAttachments(value: PendingAttachment[] | null);
|
|
242
|
+
get InitialAttachments(): PendingAttachment[] | null;
|
|
243
|
+
/** @deprecated Use {@link InitialAttachments}. */
|
|
140
244
|
get initialAttachments(): PendingAttachment[] | null;
|
|
245
|
+
/** @deprecated Use {@link InitialAttachments}. */
|
|
246
|
+
set initialAttachments(value: PendingAttachment[] | null);
|
|
141
247
|
private _conversationHistory;
|
|
248
|
+
get ConversationHistory(): MJConversationDetailEntity[];
|
|
249
|
+
set ConversationHistory(value: MJConversationDetailEntity[]);
|
|
250
|
+
/** @deprecated Use {@link ConversationHistory}. */
|
|
142
251
|
get conversationHistory(): MJConversationDetailEntity[];
|
|
252
|
+
/** @deprecated Use {@link ConversationHistory}. */
|
|
143
253
|
set conversationHistory(value: MJConversationDetailEntity[]);
|
|
144
254
|
private _inProgressMessageIds?;
|
|
145
|
-
set
|
|
255
|
+
set InProgressMessageIds(value: string[] | undefined);
|
|
256
|
+
get InProgressMessageIds(): string[] | undefined;
|
|
257
|
+
/** @deprecated Use {@link InProgressMessageIds}. */
|
|
146
258
|
get inProgressMessageIds(): string[] | undefined;
|
|
259
|
+
/** @deprecated Use {@link InProgressMessageIds}. */
|
|
260
|
+
set inProgressMessageIds(value: string[] | undefined);
|
|
147
261
|
/**
|
|
148
262
|
* Application context for the current conversation. Threaded through from the
|
|
149
263
|
* chat-area component for inclusion in the {@link beforeAgentTurn} event payload —
|
|
150
264
|
* lets listeners reason about which app's chat surface is invoking the agent.
|
|
151
265
|
* Optional; defaults to null for surfaces with no app context.
|
|
152
266
|
*/
|
|
153
|
-
|
|
267
|
+
ApplicationId: string | null;
|
|
268
|
+
/** @deprecated Use {@link ApplicationId}. */
|
|
269
|
+
set applicationId(value: string | null);
|
|
270
|
+
/** @deprecated Use {@link ApplicationId}. */
|
|
271
|
+
get applicationId(): string | null;
|
|
272
|
+
/**
|
|
273
|
+
* When a message starts an agent turn. `'Always'` (the default) answers every message, as
|
|
274
|
+
* before. `'MentionOnly'` answers only a message that tags an agent; any other message is
|
|
275
|
+
* posted with no turn at all — no reply row, no placeholder, no turn events — which is what a
|
|
276
|
+
* chat between several people needs.
|
|
277
|
+
*/
|
|
278
|
+
AgentReplyMode: AgentReplyMode;
|
|
279
|
+
/**
|
|
280
|
+
* The agents that may answer here. Narrows the composer's '@' list, every route (a tagged
|
|
281
|
+
* agent, continuity, the pinned and host default agents, the conversation manager) and the
|
|
282
|
+
* conversation manager's delegation, including each agent step of a workflow it plans. A tagged
|
|
283
|
+
* agent outside the list is ignored. Null (the default) allows every agent the user can run;
|
|
284
|
+
* an empty list allows none.
|
|
285
|
+
*/
|
|
286
|
+
AllowedAgentIDs: readonly string[] | null;
|
|
287
|
+
/**
|
|
288
|
+
* The people the composer's '@' list offers, such as the chat's members. Null (the default)
|
|
289
|
+
* offers only the current user, as before.
|
|
290
|
+
*/
|
|
291
|
+
MentionPeople: readonly MentionPerson[] | null;
|
|
292
|
+
/**
|
|
293
|
+
* The first moment of the conversation an agent turn may read. The server loads the agent's
|
|
294
|
+
* history from there and uses no summary of earlier messages; the run's own reads of the
|
|
295
|
+
* conversation (history tools, attached artifacts, the previous output it continues from)
|
|
296
|
+
* start there too, and so does the continuity route, which considers only replies written at
|
|
297
|
+
* or after it. Sent to the server only when set, so leaving it null keeps working against an
|
|
298
|
+
* MJAPI that predates it (one that predates it rejects a turn that sets it, rather than
|
|
299
|
+
* reading past the floor). Null (the default) reads the whole conversation.
|
|
300
|
+
*/
|
|
301
|
+
AgentHistoryFrom: Date | null;
|
|
302
|
+
/**
|
|
303
|
+
* Runs agent turns on the host's server instead of MJ's own path. The chat area still picks
|
|
304
|
+
* the agent and fires {@link BeforeAgentTurn}; it then calls the handler once per turn, before
|
|
305
|
+
* any reply row exists, and shows the rows the handler reports. Null (the default) runs turns
|
|
306
|
+
* on MJ's path.
|
|
307
|
+
*/
|
|
308
|
+
AgentTurnHandler: AgentTurnHandler | null;
|
|
309
|
+
/**
|
|
310
|
+
* Whether MJ names a new conversation from its first message. True (the default) keeps
|
|
311
|
+
* today's behavior; a host that names its own chats turns it off.
|
|
312
|
+
*/
|
|
313
|
+
AutoNameConversation: boolean;
|
|
314
|
+
MessageSent: EventEmitter<MJConversationDetailEntity>;
|
|
315
|
+
/**
|
|
316
|
+
* @deprecated Use {@link MessageSent}.
|
|
317
|
+
*
|
|
318
|
+
* The same emitter under the old binding name, so a template still binding
|
|
319
|
+
* (messageSent) keeps working. Must stay AFTER MessageSent: class fields
|
|
320
|
+
* initialise in order, and the other way round this captures undefined.
|
|
321
|
+
*/
|
|
154
322
|
messageSent: EventEmitter<MJConversationDetailEntity>;
|
|
323
|
+
AgentResponse: EventEmitter<{
|
|
324
|
+
message: MJConversationDetailEntity;
|
|
325
|
+
agentResult: any;
|
|
326
|
+
}>;
|
|
327
|
+
/**
|
|
328
|
+
* @deprecated Use {@link AgentResponse}.
|
|
329
|
+
*
|
|
330
|
+
* The same emitter under the old binding name, so a template still binding
|
|
331
|
+
* (agentResponse) keeps working. Must stay AFTER AgentResponse: class fields
|
|
332
|
+
* initialise in order, and the other way round this captures undefined.
|
|
333
|
+
*/
|
|
155
334
|
agentResponse: EventEmitter<{
|
|
156
335
|
message: MJConversationDetailEntity;
|
|
157
336
|
agentResult: any;
|
|
158
337
|
}>;
|
|
159
338
|
/**
|
|
160
|
-
* Cancelable — fired
|
|
161
|
-
* Listeners may set `event.Cancel = true` to
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
* Follows MJ's established Before/After cancelable event pattern.
|
|
339
|
+
* Cancelable — fired once per agent turn, on every route, after routing has picked the agent
|
|
340
|
+
* and BEFORE any reply row exists. Listeners may set `event.Cancel = true` to stop the turn
|
|
341
|
+
* (nothing more is written, and {@link AfterAgentTurn} does not fire) or set
|
|
342
|
+
* `event.RedirectAgentId` to send it to another allowed agent. A message that starts no turn
|
|
343
|
+
* fires nothing. Follows MJ's established Before/After cancelable event pattern.
|
|
344
|
+
*/
|
|
345
|
+
BeforeAgentTurn: EventEmitter<BeforeAgentTurnEventArgs>;
|
|
346
|
+
/**
|
|
347
|
+
* @deprecated Use {@link BeforeAgentTurn}.
|
|
348
|
+
*
|
|
349
|
+
* The same emitter under the old binding name, so a template still binding
|
|
350
|
+
* (beforeAgentTurn) keeps working. Must stay AFTER BeforeAgentTurn: class fields
|
|
351
|
+
* initialise in order, and the other way round this captures undefined.
|
|
165
352
|
*/
|
|
166
353
|
beforeAgentTurn: EventEmitter<BeforeAgentTurnEventArgs>;
|
|
167
354
|
/**
|
|
168
|
-
* Fired AFTER a successful agent turn
|
|
169
|
-
* full agent result. Not fired when {@link
|
|
170
|
-
*
|
|
355
|
+
* Fired AFTER a successful agent turn, on every route. Carries the agent run id and the
|
|
356
|
+
* full agent result. Not fired when {@link BeforeAgentTurn} was canceled, when the turn
|
|
357
|
+
* failed, or when a host {@link AgentTurnHandler} reported no result.
|
|
358
|
+
*/
|
|
359
|
+
AfterAgentTurn: EventEmitter<AfterAgentTurnEventArgs>;
|
|
360
|
+
/**
|
|
361
|
+
* @deprecated Use {@link AfterAgentTurn}.
|
|
362
|
+
*
|
|
363
|
+
* The same emitter under the old binding name, so a template still binding
|
|
364
|
+
* (afterAgentTurn) keeps working. Must stay AFTER AfterAgentTurn: class fields
|
|
365
|
+
* initialise in order, and the other way round this captures undefined.
|
|
171
366
|
*/
|
|
172
367
|
afterAgentTurn: EventEmitter<AfterAgentTurnEventArgs>;
|
|
368
|
+
AgentRunDetected: EventEmitter<{
|
|
369
|
+
conversationId: string;
|
|
370
|
+
conversationDetailId: string;
|
|
371
|
+
agentRunId: string;
|
|
372
|
+
}>;
|
|
373
|
+
/**
|
|
374
|
+
* @deprecated Use {@link AgentRunDetected}.
|
|
375
|
+
*
|
|
376
|
+
* The same emitter under the old binding name, so a template still binding
|
|
377
|
+
* (agentRunDetected) keeps working. Must stay AFTER AgentRunDetected: class fields
|
|
378
|
+
* initialise in order, and the other way round this captures undefined.
|
|
379
|
+
*/
|
|
173
380
|
agentRunDetected: EventEmitter<{
|
|
174
381
|
conversationId: string;
|
|
175
382
|
conversationDetailId: string;
|
|
176
383
|
agentRunId: string;
|
|
177
384
|
}>;
|
|
385
|
+
AgentRunUpdate: EventEmitter<{
|
|
386
|
+
conversationId: string;
|
|
387
|
+
conversationDetailId: string;
|
|
388
|
+
agentRun?: any;
|
|
389
|
+
agentRunId?: string;
|
|
390
|
+
}>;
|
|
391
|
+
/**
|
|
392
|
+
* @deprecated Use {@link AgentRunUpdate}.
|
|
393
|
+
*
|
|
394
|
+
* The same emitter under the old binding name, so a template still binding
|
|
395
|
+
* (agentRunUpdate) keeps working. Must stay AFTER AgentRunUpdate: class fields
|
|
396
|
+
* initialise in order, and the other way round this captures undefined.
|
|
397
|
+
*/
|
|
178
398
|
agentRunUpdate: EventEmitter<{
|
|
179
399
|
conversationId: string;
|
|
180
400
|
conversationDetailId: string;
|
|
181
401
|
agentRun?: any;
|
|
182
402
|
agentRunId?: string;
|
|
183
403
|
}>;
|
|
404
|
+
MessageComplete: EventEmitter<{
|
|
405
|
+
conversationId: string;
|
|
406
|
+
conversationDetailId: string;
|
|
407
|
+
agentId?: string;
|
|
408
|
+
}>;
|
|
409
|
+
/**
|
|
410
|
+
* @deprecated Use {@link MessageComplete}.
|
|
411
|
+
*
|
|
412
|
+
* The same emitter under the old binding name, so a template still binding
|
|
413
|
+
* (messageComplete) keeps working. Must stay AFTER MessageComplete: class fields
|
|
414
|
+
* initialise in order, and the other way round this captures undefined.
|
|
415
|
+
*/
|
|
184
416
|
messageComplete: EventEmitter<{
|
|
185
417
|
conversationId: string;
|
|
186
418
|
conversationDetailId: string;
|
|
187
419
|
agentId?: string;
|
|
188
420
|
}>;
|
|
421
|
+
ArtifactCreated: EventEmitter<{
|
|
422
|
+
conversationId: string;
|
|
423
|
+
artifactId: string;
|
|
424
|
+
versionId: string;
|
|
425
|
+
versionNumber: number;
|
|
426
|
+
conversationDetailId: string;
|
|
427
|
+
name: string;
|
|
428
|
+
}>;
|
|
429
|
+
/**
|
|
430
|
+
* @deprecated Use {@link ArtifactCreated}.
|
|
431
|
+
*
|
|
432
|
+
* The same emitter under the old binding name, so a template still binding
|
|
433
|
+
* (artifactCreated) keeps working. Must stay AFTER ArtifactCreated: class fields
|
|
434
|
+
* initialise in order, and the other way round this captures undefined.
|
|
435
|
+
*/
|
|
189
436
|
artifactCreated: EventEmitter<{
|
|
190
437
|
conversationId: string;
|
|
191
438
|
artifactId: string;
|
|
@@ -194,32 +441,110 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
194
441
|
conversationDetailId: string;
|
|
195
442
|
name: string;
|
|
196
443
|
}>;
|
|
444
|
+
ConversationRenamed: EventEmitter<{
|
|
445
|
+
conversationId: string;
|
|
446
|
+
name: string;
|
|
447
|
+
description: string;
|
|
448
|
+
}>;
|
|
449
|
+
/**
|
|
450
|
+
* @deprecated Use {@link ConversationRenamed}.
|
|
451
|
+
*
|
|
452
|
+
* The same emitter under the old binding name, so a template still binding
|
|
453
|
+
* (conversationRenamed) keeps working. Must stay AFTER ConversationRenamed: class fields
|
|
454
|
+
* initialise in order, and the other way round this captures undefined.
|
|
455
|
+
*/
|
|
197
456
|
conversationRenamed: EventEmitter<{
|
|
198
457
|
conversationId: string;
|
|
199
458
|
name: string;
|
|
200
459
|
description: string;
|
|
201
460
|
}>;
|
|
461
|
+
IntentCheckStarted: EventEmitter<{
|
|
462
|
+
conversationId: string;
|
|
463
|
+
}>;
|
|
464
|
+
/**
|
|
465
|
+
* @deprecated Use {@link IntentCheckStarted}.
|
|
466
|
+
*
|
|
467
|
+
* The same emitter under the old binding name, so a template still binding
|
|
468
|
+
* (intentCheckStarted) keeps working. Must stay AFTER IntentCheckStarted: class fields
|
|
469
|
+
* initialise in order, and the other way round this captures undefined.
|
|
470
|
+
*/
|
|
202
471
|
intentCheckStarted: EventEmitter<{
|
|
203
472
|
conversationId: string;
|
|
204
473
|
}>;
|
|
474
|
+
IntentCheckCompleted: EventEmitter<{
|
|
475
|
+
conversationId: string;
|
|
476
|
+
}>;
|
|
477
|
+
/**
|
|
478
|
+
* @deprecated Use {@link IntentCheckCompleted}.
|
|
479
|
+
*
|
|
480
|
+
* The same emitter under the old binding name, so a template still binding
|
|
481
|
+
* (intentCheckCompleted) keeps working. Must stay AFTER IntentCheckCompleted: class fields
|
|
482
|
+
* initialise in order, and the other way round this captures undefined.
|
|
483
|
+
*/
|
|
205
484
|
intentCheckCompleted: EventEmitter<{
|
|
206
485
|
conversationId: string;
|
|
207
486
|
}>;
|
|
487
|
+
InitialMessageAutoSendStarted: EventEmitter<{
|
|
488
|
+
conversationId: string;
|
|
489
|
+
}>;
|
|
490
|
+
/**
|
|
491
|
+
* @deprecated Use {@link InitialMessageAutoSendStarted}.
|
|
492
|
+
*
|
|
493
|
+
* The same emitter under the old binding name, so a template still binding
|
|
494
|
+
* (initialMessageAutoSendStarted) keeps working. Must stay AFTER InitialMessageAutoSendStarted: class fields
|
|
495
|
+
* initialise in order, and the other way round this captures undefined.
|
|
496
|
+
*/
|
|
208
497
|
initialMessageAutoSendStarted: EventEmitter<{
|
|
209
498
|
conversationId: string;
|
|
210
499
|
}>;
|
|
500
|
+
InitialMessageAutoSendFailed: EventEmitter<{
|
|
501
|
+
conversationId: string;
|
|
502
|
+
}>;
|
|
503
|
+
/**
|
|
504
|
+
* @deprecated Use {@link InitialMessageAutoSendFailed}.
|
|
505
|
+
*
|
|
506
|
+
* The same emitter under the old binding name, so a template still binding
|
|
507
|
+
* (initialMessageAutoSendFailed) keeps working. Must stay AFTER InitialMessageAutoSendFailed: class fields
|
|
508
|
+
* initialise in order, and the other way round this captures undefined.
|
|
509
|
+
*/
|
|
211
510
|
initialMessageAutoSendFailed: EventEmitter<{
|
|
212
511
|
conversationId: string;
|
|
213
512
|
}>;
|
|
513
|
+
EmptyStateSubmit: EventEmitter<{
|
|
514
|
+
text: string;
|
|
515
|
+
attachments: PendingAttachment[];
|
|
516
|
+
}>;
|
|
517
|
+
/**
|
|
518
|
+
* @deprecated Use {@link EmptyStateSubmit}.
|
|
519
|
+
*
|
|
520
|
+
* The same emitter under the old binding name, so a template still binding
|
|
521
|
+
* (emptyStateSubmit) keeps working. Must stay AFTER EmptyStateSubmit: class fields
|
|
522
|
+
* initialise in order, and the other way round this captures undefined.
|
|
523
|
+
*/
|
|
214
524
|
emptyStateSubmit: EventEmitter<{
|
|
215
525
|
text: string;
|
|
216
526
|
attachments: PendingAttachment[];
|
|
217
527
|
}>;
|
|
528
|
+
UploadStateChanged: EventEmitter<{
|
|
529
|
+
isUploading: boolean;
|
|
530
|
+
message: string;
|
|
531
|
+
}>;
|
|
532
|
+
/**
|
|
533
|
+
* @deprecated Use {@link UploadStateChanged}.
|
|
534
|
+
*
|
|
535
|
+
* The same emitter under the old binding name, so a template still binding
|
|
536
|
+
* (uploadStateChanged) keeps working. Must stay AFTER UploadStateChanged: class fields
|
|
537
|
+
* initialise in order, and the other way round this captures undefined.
|
|
538
|
+
*/
|
|
218
539
|
uploadStateChanged: EventEmitter<{
|
|
219
540
|
isUploading: boolean;
|
|
220
541
|
message: string;
|
|
221
542
|
}>;
|
|
222
|
-
|
|
543
|
+
InputBox: AiComposerComponent;
|
|
544
|
+
/** @deprecated Use {@link InputBox}. */
|
|
545
|
+
get inputBox(): AiComposerComponent;
|
|
546
|
+
/** @deprecated Use {@link InputBox}. */
|
|
547
|
+
set inputBox(value: AiComposerComponent);
|
|
223
548
|
private _messageText;
|
|
224
549
|
/**
|
|
225
550
|
* The composer's text. An accessor pair rather than a plain field because every write reaches the
|
|
@@ -235,7 +560,11 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
235
560
|
* Read is a plain field read; there is no two-way `ngModel` on this property (the template binds
|
|
236
561
|
* `[value]="messageText"` one-way), so the pair is transparent to callers.
|
|
237
562
|
*/
|
|
563
|
+
get MessageText(): string;
|
|
564
|
+
set MessageText(value: string);
|
|
565
|
+
/** @deprecated Use {@link MessageText}. */
|
|
238
566
|
get messageText(): string;
|
|
567
|
+
/** @deprecated Use {@link MessageText}. */
|
|
239
568
|
set messageText(value: string);
|
|
240
569
|
/**
|
|
241
570
|
* Prefills the composer with draft text WITHOUT sending (unlike pendingMessage,
|
|
@@ -248,10 +577,22 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
248
577
|
* view isn't up yet, ngAfterViewInit applies it. Emits initialDraftApplied so the
|
|
249
578
|
* host can clear its pending state.
|
|
250
579
|
*/
|
|
251
|
-
set
|
|
580
|
+
set InitialDraft(value: string | null);
|
|
581
|
+
get InitialDraft(): string | null;
|
|
582
|
+
/** @deprecated Use {@link InitialDraft}. */
|
|
252
583
|
get initialDraft(): string | null;
|
|
584
|
+
/** @deprecated Use {@link InitialDraft}. */
|
|
585
|
+
set initialDraft(value: string | null);
|
|
253
586
|
private appliedInitialDraft;
|
|
254
587
|
private pendingInitialDraft;
|
|
588
|
+
InitialDraftApplied: EventEmitter<void>;
|
|
589
|
+
/**
|
|
590
|
+
* @deprecated Use {@link InitialDraftApplied}.
|
|
591
|
+
*
|
|
592
|
+
* The same emitter under the old binding name, so a template still binding
|
|
593
|
+
* (initialDraftApplied) keeps working. Must stay AFTER InitialDraftApplied: class fields
|
|
594
|
+
* initialise in order, and the other way round this captures undefined.
|
|
595
|
+
*/
|
|
255
596
|
initialDraftApplied: EventEmitter<void>;
|
|
256
597
|
/**
|
|
257
598
|
* Live draft-state signal: fires on every composer value change with the
|
|
@@ -282,12 +623,36 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
282
623
|
*/
|
|
283
624
|
private scheduleFocusReassert;
|
|
284
625
|
SetDraft(text: string, focus?: boolean): void;
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
626
|
+
IsSending: boolean;
|
|
627
|
+
/** @deprecated Use {@link IsSending}. */
|
|
628
|
+
get isSending(): boolean;
|
|
629
|
+
/** @deprecated Use {@link IsSending}. */
|
|
630
|
+
set isSending(value: boolean);
|
|
631
|
+
IsProcessing: boolean;
|
|
632
|
+
/** @deprecated Use {@link IsProcessing}. */
|
|
633
|
+
get isProcessing(): boolean;
|
|
634
|
+
/** @deprecated Use {@link IsProcessing}. */
|
|
635
|
+
set isProcessing(value: boolean);
|
|
636
|
+
ProcessingMessage: string;
|
|
637
|
+
/** @deprecated Use {@link ProcessingMessage}. */
|
|
638
|
+
get processingMessage(): string;
|
|
639
|
+
/** @deprecated Use {@link ProcessingMessage}. */
|
|
640
|
+
set processingMessage(value: string);
|
|
641
|
+
IsUploadingAttachments: boolean;
|
|
642
|
+
/** @deprecated Use {@link IsUploadingAttachments}. */
|
|
643
|
+
get isUploadingAttachments(): boolean;
|
|
644
|
+
/** @deprecated Use {@link IsUploadingAttachments}. */
|
|
645
|
+
set isUploadingAttachments(value: boolean);
|
|
646
|
+
UploadingMessage: string;
|
|
647
|
+
/** @deprecated Use {@link UploadingMessage}. */
|
|
648
|
+
get uploadingMessage(): string;
|
|
649
|
+
/** @deprecated Use {@link UploadingMessage}. */
|
|
650
|
+
set uploadingMessage(value: string);
|
|
651
|
+
ConverationManagerAgent: MJAIAgentEntityExtended | null;
|
|
652
|
+
/** @deprecated Use {@link ConverationManagerAgent}. */
|
|
653
|
+
get converationManagerAgent(): MJAIAgentEntityExtended | null;
|
|
654
|
+
/** @deprecated Use {@link ConverationManagerAgent}. */
|
|
655
|
+
set converationManagerAgent(value: MJAIAgentEntityExtended | null);
|
|
291
656
|
private completionTimestamps;
|
|
292
657
|
private registeredCallbacks;
|
|
293
658
|
private static readonly IN_FLIGHT_WATCH_BACKOFF_MS;
|
|
@@ -297,7 +662,11 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
297
662
|
private mentionAutocomplete;
|
|
298
663
|
constructor(dialogService: DialogService, toastService: ToastService, agentService: ConversationAgentService, dataCache: DataCacheService, activeTasks: ActiveTasksService, streamingService: ConversationStreamingService, mentionParser: MentionParserService, attachmentService: ConversationAttachmentService, bridge: ConversationBridgeService, realtimeSession: RealtimeSessionService);
|
|
299
664
|
/** True while a live voice session is active — drives the overlay + mic state. */
|
|
300
|
-
|
|
665
|
+
VoiceActive: boolean;
|
|
666
|
+
/** @deprecated Use {@link VoiceActive}. */
|
|
667
|
+
get voiceActive(): boolean;
|
|
668
|
+
/** @deprecated Use {@link VoiceActive}. */
|
|
669
|
+
set voiceActive(value: boolean);
|
|
301
670
|
private realtimeActiveSub?;
|
|
302
671
|
ngOnInit(): Promise<void>;
|
|
303
672
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -315,8 +684,12 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
315
684
|
* 2. per-conversation pinned default
|
|
316
685
|
* 3. embedder-supplied default
|
|
317
686
|
* 4. Sage fallback
|
|
318
|
-
*
|
|
687
|
+
* skipping any agent outside {@link AllowedAgentIDs}. {@link AgentReplyMode} does not apply:
|
|
688
|
+
* starting a call is itself a choice to talk to an agent. Returns null when Sage failed to
|
|
689
|
+
* load, or when the host allows none of these agents.
|
|
319
690
|
*/
|
|
691
|
+
ResolveCurrentAgentId(): string | null;
|
|
692
|
+
/** @deprecated Use {@link ResolveCurrentAgentId}. */
|
|
320
693
|
resolveCurrentAgentId(): string | null;
|
|
321
694
|
/**
|
|
322
695
|
* The agent the '/' skill picker should narrow to. Mirrors routing's priority: an explicit
|
|
@@ -324,6 +697,8 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
324
697
|
* would otherwise go to ({@link resolveCurrentAgentId}). Bound to `mj-ai-composer`'s
|
|
325
698
|
* `TargetAgentId`; null = unknown, no narrowing.
|
|
326
699
|
*/
|
|
700
|
+
get PickerTargetAgentId(): string | null;
|
|
701
|
+
/** @deprecated Use {@link PickerTargetAgentId}. */
|
|
327
702
|
get pickerTargetAgentId(): string | null;
|
|
328
703
|
/**
|
|
329
704
|
* Memo for the first `@agent` chip in the draft, so the template-bound
|
|
@@ -354,6 +729,8 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
354
729
|
*/
|
|
355
730
|
private mentionedAgentId;
|
|
356
731
|
/** True when the mic button should be enabled (have an agent + not disabled). */
|
|
732
|
+
get CanStartRealtime(): boolean;
|
|
733
|
+
/** @deprecated Use {@link CanStartRealtime}. */
|
|
357
734
|
get canStartRealtime(): boolean;
|
|
358
735
|
/**
|
|
359
736
|
* Display name of the agent the voice session fronts. Resolved here (this component
|
|
@@ -362,7 +739,11 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
362
739
|
*/
|
|
363
740
|
private resolveRealtimeAgentName;
|
|
364
741
|
/** True while the "Start a voice call with…" agent picker popover is open. */
|
|
365
|
-
|
|
742
|
+
ShowRealtimeAgentPicker: boolean;
|
|
743
|
+
/** @deprecated Use {@link ShowRealtimeAgentPicker}. */
|
|
744
|
+
get showRealtimeAgentPicker(): boolean;
|
|
745
|
+
/** @deprecated Use {@link ShowRealtimeAgentPicker}. */
|
|
746
|
+
set showRealtimeAgentPicker(value: boolean);
|
|
366
747
|
/**
|
|
367
748
|
* CDK connected-overlay positions for the voice agent picker. Preferred: open UPWARD,
|
|
368
749
|
* right edge aligned to the composer's right edge (matching the old absolute placement).
|
|
@@ -370,31 +751,45 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
370
751
|
* body-level CDK overlay container (with `cdkConnectedOverlayPush`), it escapes the chat
|
|
371
752
|
* overlay's `overflow: hidden` border and can never clip at the top of a narrow overlay.
|
|
372
753
|
*/
|
|
373
|
-
readonly
|
|
754
|
+
readonly PickerOverlayPositions: ConnectedPosition[];
|
|
755
|
+
/** @deprecated Use {@link PickerOverlayPositions}. */
|
|
756
|
+
get pickerOverlayPositions(): ConnectedPosition[];
|
|
374
757
|
/**
|
|
375
758
|
* `MJ: User Settings` key persisting the user's co-agent choice for realtime calls
|
|
376
759
|
* (server-side, cross-device — never localStorage). Stored shape: `{"coAgentId":
|
|
377
760
|
* string | null}` — `null` is an explicit "Auto" choice that overwrites an older pick.
|
|
378
761
|
*/
|
|
379
|
-
private static readonly
|
|
762
|
+
private static readonly coAgentPrefKey;
|
|
380
763
|
/**
|
|
381
764
|
* The persisted co-agent preference, loaded just before the picker opens (and read by
|
|
382
765
|
* the instant-start path). `null` = no preference / explicit "Auto".
|
|
383
766
|
*/
|
|
384
|
-
|
|
767
|
+
VoicePickerDefaultCoAgentId: string | null;
|
|
768
|
+
/** @deprecated Use {@link VoicePickerDefaultCoAgentId}. */
|
|
769
|
+
get voicePickerDefaultCoAgentId(): string | null;
|
|
770
|
+
/** @deprecated Use {@link VoicePickerDefaultCoAgentId}. */
|
|
771
|
+
set voicePickerDefaultCoAgentId(value: string | null);
|
|
385
772
|
/**
|
|
386
773
|
* Agents the voice picker offers — the same cached set the @mention
|
|
387
|
-
* autocomplete and {@link resolveRealtimeAgentName} use,
|
|
388
|
-
* never offer an agent the
|
|
774
|
+
* autocomplete and {@link resolveRealtimeAgentName} use, narrowed to
|
|
775
|
+
* {@link AllowedAgentIDs}, so the picker can never offer an agent the
|
|
776
|
+
* conversation couldn't otherwise route to.
|
|
389
777
|
*/
|
|
778
|
+
get VoicePickerAgents(): MJAIAgentEntityExtended[];
|
|
779
|
+
private voicePickerAgentsMemo;
|
|
780
|
+
/** @deprecated Use {@link VoicePickerAgents}. */
|
|
390
781
|
get voicePickerAgents(): MJAIAgentEntityExtended[];
|
|
391
782
|
/**
|
|
392
783
|
* The ACTIVE Realtime-type co-agent candidates — the same run-permission-filtered
|
|
393
784
|
* cached set as {@link voicePickerAgents}, narrowed to the Realtime agent type. The
|
|
394
785
|
* picker shows its co-agent selector only when more than one exists.
|
|
395
786
|
*/
|
|
787
|
+
get VoicePickerCoAgents(): MJAIAgentEntityExtended[];
|
|
788
|
+
/** @deprecated Use {@link VoicePickerCoAgents}. */
|
|
396
789
|
get voicePickerCoAgents(): MJAIAgentEntityExtended[];
|
|
397
790
|
/** The agent the default resolution would call — preselected in the picker. */
|
|
791
|
+
get VoicePickerDefaultAgentId(): string | null;
|
|
792
|
+
/** @deprecated Use {@link VoicePickerDefaultAgentId}. */
|
|
398
793
|
get voicePickerDefaultAgentId(): string | null;
|
|
399
794
|
/**
|
|
400
795
|
* Start a real-time voice session fronting the conversation's current agent.
|
|
@@ -410,6 +805,8 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
410
805
|
* the user never chose — so show a compact agent picker instead and start
|
|
411
806
|
* with whichever agent they pick.
|
|
412
807
|
*/
|
|
808
|
+
OnStartRealtime(): Promise<void>;
|
|
809
|
+
/** @deprecated Use {@link OnStartRealtime}. */
|
|
413
810
|
onStartRealtime(): Promise<void>;
|
|
414
811
|
/**
|
|
415
812
|
* Caret-next-to-the-phone click: open the agent/co-agent/model picker ON DEMAND, even
|
|
@@ -419,10 +816,14 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
419
816
|
* choice one click away. Falls through to the instant path when there is nothing to
|
|
420
817
|
* pick from.
|
|
421
818
|
*/
|
|
819
|
+
OnRealtimeOptions(): Promise<void>;
|
|
820
|
+
/** @deprecated Use {@link OnRealtimeOptions}. */
|
|
422
821
|
onRealtimeOptions(): Promise<void>;
|
|
423
822
|
/** Loads the persisted co-agent preference, then shows the picker (pref preselected). */
|
|
424
823
|
private openRealtimeAgentPicker;
|
|
425
824
|
/** User confirmed an agent (+ optional co-agent / voice model) in the voice picker — start the call. */
|
|
825
|
+
OnRealtimeAgentPicked(pick: RealtimeAgentPick): Promise<void>;
|
|
826
|
+
/** @deprecated Use {@link OnRealtimeAgentPicked}. */
|
|
426
827
|
onRealtimeAgentPicked(pick: RealtimeAgentPick): Promise<void>;
|
|
427
828
|
/**
|
|
428
829
|
* Reads the persisted co-agent preference from `MJ: User Settings` (via
|
|
@@ -442,6 +843,8 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
442
843
|
*/
|
|
443
844
|
private resolveInstantCoAgentId;
|
|
444
845
|
/** User dismissed the voice picker without starting a call. */
|
|
846
|
+
OnRealtimeAgentPickerCancelled(): void;
|
|
847
|
+
/** @deprecated Use {@link OnRealtimeAgentPickerCancelled}. */
|
|
445
848
|
onRealtimeAgentPickerCancelled(): void;
|
|
446
849
|
/**
|
|
447
850
|
* Shared session-start path for both the immediate (existing conversation)
|
|
@@ -471,6 +874,8 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
471
874
|
* 3. User returns to a conversation with in-progress messages
|
|
472
875
|
* 4. Parent component explicitly triggers reconnection
|
|
473
876
|
*/
|
|
877
|
+
ReconnectInProgressMessages(): void;
|
|
878
|
+
/** @deprecated Use {@link ReconnectInProgressMessages}. */
|
|
474
879
|
reconnectInProgressMessages(): void;
|
|
475
880
|
/**
|
|
476
881
|
* Create a progress callback for a specific message ID.
|
|
@@ -482,18 +887,26 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
482
887
|
* Called during cleanup and when switching conversations.
|
|
483
888
|
*/
|
|
484
889
|
private unregisterAllCallbacks;
|
|
890
|
+
get CanSend(): boolean;
|
|
891
|
+
/** @deprecated Use {@link CanSend}. */
|
|
485
892
|
get canSend(): boolean;
|
|
486
893
|
/**
|
|
487
894
|
* Handle attachments changed from the input box
|
|
488
895
|
*/
|
|
896
|
+
OnAttachmentsChanged(attachments: PendingAttachment[]): void;
|
|
897
|
+
/** @deprecated Use {@link OnAttachmentsChanged}. */
|
|
489
898
|
onAttachmentsChanged(attachments: PendingAttachment[]): void;
|
|
490
899
|
/**
|
|
491
900
|
* Handle attachment errors from the input box
|
|
492
901
|
*/
|
|
902
|
+
OnAttachmentError(error: string): void;
|
|
903
|
+
/** @deprecated Use {@link OnAttachmentError}. */
|
|
493
904
|
onAttachmentError(error: string): void;
|
|
494
905
|
/**
|
|
495
906
|
* Handle text submitted from the input box
|
|
496
907
|
*/
|
|
908
|
+
OnTextSubmitted(text: string): Promise<void>;
|
|
909
|
+
/** @deprecated Use {@link OnTextSubmitted}. */
|
|
497
910
|
onTextSubmitted(text: string): Promise<void>;
|
|
498
911
|
/**
|
|
499
912
|
* Toggle sticky Plan Mode for THIS conversation (or the pending-new bucket on the
|
|
@@ -503,6 +916,8 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
503
916
|
* until the user turns it off or approves a plan.
|
|
504
917
|
*/
|
|
505
918
|
TogglePlanMode(): void;
|
|
919
|
+
OnSend(): Promise<void>;
|
|
920
|
+
/** @deprecated Use {@link OnSend}. */
|
|
506
921
|
onSend(): Promise<void>;
|
|
507
922
|
/**
|
|
508
923
|
* Send a message with custom text WITHOUT modifying the visible messageText input
|
|
@@ -515,6 +930,8 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
515
930
|
* `this.pendingAttachments` may not contain the attachment. Pass it in
|
|
516
931
|
* explicitly and we merge + dedupe (by `id`) before saving.
|
|
517
932
|
*/
|
|
933
|
+
SendMessageWithText(text: string, extraAttachments?: PendingAttachment[]): Promise<boolean>;
|
|
934
|
+
/** @deprecated Use {@link SendMessageWithText}. */
|
|
518
935
|
sendMessageWithText(text: string, extraAttachments?: PendingAttachment[]): Promise<boolean>;
|
|
519
936
|
/**
|
|
520
937
|
* Creates and configures a new conversation detail message
|
|
@@ -533,23 +950,49 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
533
950
|
*/
|
|
534
951
|
private parseMentionsFromMessage;
|
|
535
952
|
/**
|
|
536
|
-
* Routes
|
|
537
|
-
*
|
|
538
|
-
*
|
|
953
|
+
* Routes a saved message to the agent that answers it — or to none.
|
|
954
|
+
*
|
|
955
|
+
* Routing picks the agent ({@link resolveAgentTurnTarget}): a tagged agent, then (under
|
|
956
|
+
* `AgentReplyMode` `'Always'`) the last agent that answered, the conversation's pinned agent,
|
|
957
|
+
* the host's default agent, and the conversation manager, each only if the host allows it.
|
|
958
|
+
* {@link BeforeAgentTurn} is then fired once, before any reply row exists, and the turn runs on
|
|
959
|
+
* MJ's path or through the host's {@link AgentTurnHandler}.
|
|
539
960
|
*/
|
|
540
961
|
private routeMessage;
|
|
962
|
+
/** The host's rules, as the routing functions take them. */
|
|
963
|
+
private get agentTurnRules();
|
|
964
|
+
/** The agent each route would use for this conversation, before the host's rules apply. */
|
|
965
|
+
private agentTurnCandidates;
|
|
966
|
+
/** Picks the agent that answers this message and the route that chose it, or null for no turn. */
|
|
967
|
+
private resolveAgentTurnTarget;
|
|
968
|
+
/**
|
|
969
|
+
* Fires {@link BeforeAgentTurn} for the turn routing picked — before any reply row exists —
|
|
970
|
+
* and applies what its listeners decided. Returns the turn to run, or null when a listener
|
|
971
|
+
* canceled it or redirected it to an agent this chat can't use.
|
|
972
|
+
*/
|
|
973
|
+
private announceAgentTurn;
|
|
541
974
|
/**
|
|
542
|
-
*
|
|
975
|
+
* Settles a message that starts no agent turn — `MentionOnly` with no tagged agent, no allowed
|
|
976
|
+
* agent left, or a turn declined in {@link BeforeAgentTurn}. Nothing new is written; the
|
|
977
|
+
* person's own row is only confirmed Complete.
|
|
543
978
|
*/
|
|
544
|
-
private
|
|
979
|
+
private finishWithoutAgentTurn;
|
|
980
|
+
/** Runs a turn that {@link BeforeAgentTurn} let through, on the host's handler or MJ's path. */
|
|
981
|
+
private runAgentTurn;
|
|
545
982
|
/**
|
|
546
|
-
*
|
|
983
|
+
* The tagged agent's mention, with its configuration preset. A mention saved without one
|
|
984
|
+
* (legacy text format) takes the preset from its chip in the composer, when there is one.
|
|
985
|
+
*/
|
|
986
|
+
private findAgentMention;
|
|
987
|
+
/**
|
|
988
|
+
* Continues with an agent chosen without a mention: the last agent that answered, the pinned
|
|
989
|
+
* or host default agent, or a redirect.
|
|
547
990
|
*
|
|
548
991
|
* LATENCY OPTIMIZATION (PR #2309 / plans/agent-latency-optimization.md — Opt #1):
|
|
549
|
-
*
|
|
550
|
-
*
|
|
551
|
-
*
|
|
552
|
-
*
|
|
992
|
+
* This used to make a separate LLM call via checkContinuityIntent() to decide whether the
|
|
993
|
+
* user's new message was still directed at the previous agent or should be routed to Sage.
|
|
994
|
+
* That call added ~300ms of latency on every message in a conversation with an active agent —
|
|
995
|
+
* the single largest source of non-inference overhead on the client.
|
|
553
996
|
*
|
|
554
997
|
* The heuristic replacement is simple: if a previous non-Sage agent exists, always continue
|
|
555
998
|
* with it. The user can @mention a different agent (or Sage) to explicitly switch. This is
|
|
@@ -563,25 +1006,56 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
563
1006
|
*/
|
|
564
1007
|
private handleAgentContinuity;
|
|
565
1008
|
/**
|
|
566
|
-
*
|
|
1009
|
+
* The conversation manager's turn. When an earlier message @mentioned the manager with a
|
|
1010
|
+
* configuration preset, the preset keeps applying and the manager answers directly;
|
|
1011
|
+
* otherwise it evaluates the message and may delegate.
|
|
1012
|
+
*/
|
|
1013
|
+
private runConversationManagerTurn;
|
|
1014
|
+
/**
|
|
1015
|
+
* The newest reply from an agent other than the conversation manager — among the replies a
|
|
1016
|
+
* turn may read, so from {@link AgentHistoryFrom} onward when it's set.
|
|
567
1017
|
*/
|
|
568
|
-
private
|
|
1018
|
+
private findLastNonSageReply;
|
|
569
1019
|
/**
|
|
570
|
-
* Finds the last agent ID that isn't Sage
|
|
1020
|
+
* Finds the last agent ID that isn't Sage (see {@link findLastNonSageReply}).
|
|
571
1021
|
*/
|
|
572
1022
|
private findLastNonSageAgentId;
|
|
1023
|
+
/** True when a row was written at or after {@link AgentHistoryFrom}; always true without one. */
|
|
1024
|
+
private isWithinHistoryFloor;
|
|
1025
|
+
/** True when the agent is in the client's agent catalog. */
|
|
1026
|
+
private isKnownAgent;
|
|
1027
|
+
/** The agent's name, when the client's agent catalog has it. */
|
|
1028
|
+
private agentNameFor;
|
|
1029
|
+
/** The ID of the agent with this name, or null when there is none. */
|
|
1030
|
+
private agentIdByName;
|
|
1031
|
+
/** True when the agent is MJ's conversation manager. */
|
|
1032
|
+
private isConversationManager;
|
|
1033
|
+
/** Shows the person why an agent turn didn't happen, or didn't finish. */
|
|
1034
|
+
private notifyAgentTurnProblem;
|
|
1035
|
+
/**
|
|
1036
|
+
* Refuses agents the host doesn't allow — named by the conversation manager's delegation or
|
|
1037
|
+
* by a workflow it planned — and settles the person's message.
|
|
1038
|
+
*/
|
|
1039
|
+
private refuseDisallowedAgents;
|
|
1040
|
+
/**
|
|
1041
|
+
* Runs the turn through the host's {@link AgentTurnHandler} instead of MJ's path. Nothing is
|
|
1042
|
+
* written here: the host writes the reply rows and reports them, and each is shown like a row
|
|
1043
|
+
* MJ wrote — one still In-Progress is followed like any other in-progress reply.
|
|
1044
|
+
*/
|
|
1045
|
+
private runHostAgentTurn;
|
|
1046
|
+
/** Calls the host's handler; a throw is reported as a failed turn, never swallowed. */
|
|
1047
|
+
private callAgentTurnHandler;
|
|
1048
|
+
/** What the host's handler is told about the turn. */
|
|
1049
|
+
private buildAgentTurnRequest;
|
|
1050
|
+
/** Shows the rows a host's handler reported for its turn, oldest first. */
|
|
1051
|
+
private showHostTurnRows;
|
|
1052
|
+
/** Fires {@link AfterAgentTurn} for a turn that succeeded. */
|
|
1053
|
+
private emitAfterAgentTurn;
|
|
573
1054
|
/**
|
|
574
1055
|
* Checks if message should continue with the previous agent
|
|
575
1056
|
* Emits events to show temporary intent checking message in conversation
|
|
576
1057
|
*/
|
|
577
1058
|
private checkContinuityIntent;
|
|
578
|
-
/**
|
|
579
|
-
* Executes a routing function, optionally with conversation naming for first message
|
|
580
|
-
*
|
|
581
|
-
* IMPORTANT: Conversation naming runs asynchronously in the background and does NOT
|
|
582
|
-
* block the agent invocation. This prevents UI blocking if naming times out.
|
|
583
|
-
*/
|
|
584
|
-
private executeRouteWithNaming;
|
|
585
1059
|
/**
|
|
586
1060
|
* Returns focus to the message textarea
|
|
587
1061
|
*/
|
|
@@ -602,7 +1076,8 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
602
1076
|
private createProgressCallback;
|
|
603
1077
|
/**
|
|
604
1078
|
* Process the message through agents (multi-stage: Sage -> possible sub-agent)
|
|
605
|
-
* Only called when there's no @mention and no implicit agent context
|
|
1079
|
+
* Only called when there's no @mention and no implicit agent context.
|
|
1080
|
+
* {@link BeforeAgentTurn} has already fired — routing announces the turn before any row exists.
|
|
606
1081
|
*/
|
|
607
1082
|
private processMessageThroughAgent;
|
|
608
1083
|
/** Detaches the progress callback for one message — used when submission never starts. */
|
|
@@ -718,6 +1193,6 @@ export declare class MessageInputComponent extends BaseAngularComponent implemen
|
|
|
718
1193
|
*/
|
|
719
1194
|
private cleanupCompletionTimestamp;
|
|
720
1195
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageInputComponent, never>;
|
|
721
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageInputComponent, "mj-message-input", never, { "conversationId": { "alias": "conversationId"; "required": false; }; "conversationName": { "alias": "conversationName"; "required": false; }; "currentUser": { "alias": "currentUser"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "parentMessageId": { "alias": "parentMessageId"; "required": false; }; "enableAttachments": { "alias": "enableAttachments"; "required": false; }; "enableMentions": { "alias": "enableMentions"; "required": false; }; "enableAgentMentions": { "alias": "enableAgentMentions"; "required": false; }; "enableEntityMentions": { "alias": "enableEntityMentions"; "required": false; }; "enableSkillCommands": { "alias": "enableSkillCommands"; "required": false; }; "enablePlanMode": { "alias": "enablePlanMode"; "required": false; }; "enableRealtime": { "alias": "enableRealtime"; "required": false; }; "maxAttachments": { "alias": "maxAttachments"; "required": false; }; "maxAttachmentSizeBytes": { "alias": "maxAttachmentSizeBytes"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "artifactsByDetailId": { "alias": "artifactsByDetailId"; "required": false; }; "systemArtifactsByDetailId": { "alias": "systemArtifactsByDetailId"; "required": false; }; "agentRunsByDetailId": { "alias": "agentRunsByDetailId"; "required": false; }; "emptyStateMode": { "alias": "emptyStateMode"; "required": false; }; "appContext": { "alias": "appContext"; "required": false; }; "defaultAgentId": { "alias": "defaultAgentId"; "required": false; }; "conversationDefaultAgentId": { "alias": "conversationDefaultAgentId"; "required": false; }; "agentConfigurationPresetId": { "alias": "agentConfigurationPresetId"; "required": false; }; "initialMessage": { "alias": "initialMessage"; "required": false; }; "initialAttachments": { "alias": "initialAttachments"; "required": false; }; "conversationHistory": { "alias": "conversationHistory"; "required": false; }; "inProgressMessageIds": { "alias": "inProgressMessageIds"; "required": false; }; "applicationId": { "alias": "applicationId"; "required": false; }; "initialDraft": { "alias": "initialDraft"; "required": false; }; }, { "messageSent": "messageSent"; "agentResponse": "agentResponse"; "beforeAgentTurn": "beforeAgentTurn"; "afterAgentTurn": "afterAgentTurn"; "agentRunDetected": "agentRunDetected"; "agentRunUpdate": "agentRunUpdate"; "messageComplete": "messageComplete"; "artifactCreated": "artifactCreated"; "conversationRenamed": "conversationRenamed"; "intentCheckStarted": "intentCheckStarted"; "intentCheckCompleted": "intentCheckCompleted"; "initialMessageAutoSendStarted": "initialMessageAutoSendStarted"; "initialMessageAutoSendFailed": "initialMessageAutoSendFailed"; "emptyStateSubmit": "emptyStateSubmit"; "uploadStateChanged": "uploadStateChanged"; "initialDraftApplied": "initialDraftApplied"; "DraftStateChanged": "DraftStateChanged"; "ComposerBlurred": "ComposerBlurred"; }, never, never, false, never>;
|
|
1196
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageInputComponent, "mj-message-input", never, { "ConversationId": { "alias": "ConversationId"; "required": false; }; "conversationId": { "alias": "conversationId"; "required": false; }; "ConversationName": { "alias": "ConversationName"; "required": false; }; "conversationName": { "alias": "conversationName"; "required": false; }; "CurrentUser": { "alias": "CurrentUser"; "required": false; }; "currentUser": { "alias": "currentUser"; "required": false; }; "Disabled": { "alias": "Disabled"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "Placeholder": { "alias": "Placeholder"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "ParentMessageId": { "alias": "ParentMessageId"; "required": false; }; "parentMessageId": { "alias": "parentMessageId"; "required": false; }; "EnableAttachments": { "alias": "EnableAttachments"; "required": false; }; "enableAttachments": { "alias": "enableAttachments"; "required": false; }; "EnableMentions": { "alias": "EnableMentions"; "required": false; }; "enableMentions": { "alias": "enableMentions"; "required": false; }; "EnableAgentMentions": { "alias": "EnableAgentMentions"; "required": false; }; "enableAgentMentions": { "alias": "enableAgentMentions"; "required": false; }; "EnableEntityMentions": { "alias": "EnableEntityMentions"; "required": false; }; "enableEntityMentions": { "alias": "enableEntityMentions"; "required": false; }; "EnableSkillCommands": { "alias": "EnableSkillCommands"; "required": false; }; "enableSkillCommands": { "alias": "enableSkillCommands"; "required": false; }; "EnablePlanMode": { "alias": "EnablePlanMode"; "required": false; }; "enablePlanMode": { "alias": "enablePlanMode"; "required": false; }; "EnableRealtime": { "alias": "EnableRealtime"; "required": false; }; "enableRealtime": { "alias": "enableRealtime"; "required": false; }; "MaxAttachments": { "alias": "MaxAttachments"; "required": false; }; "maxAttachments": { "alias": "maxAttachments"; "required": false; }; "MaxAttachmentSizeBytes": { "alias": "MaxAttachmentSizeBytes"; "required": false; }; "maxAttachmentSizeBytes": { "alias": "maxAttachmentSizeBytes"; "required": false; }; "AcceptedFileTypes": { "alias": "AcceptedFileTypes"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "ArtifactsByDetailId": { "alias": "ArtifactsByDetailId"; "required": false; }; "artifactsByDetailId": { "alias": "artifactsByDetailId"; "required": false; }; "SystemArtifactsByDetailId": { "alias": "SystemArtifactsByDetailId"; "required": false; }; "systemArtifactsByDetailId": { "alias": "systemArtifactsByDetailId"; "required": false; }; "AgentRunsByDetailId": { "alias": "AgentRunsByDetailId"; "required": false; }; "agentRunsByDetailId": { "alias": "agentRunsByDetailId"; "required": false; }; "EmptyStateMode": { "alias": "EmptyStateMode"; "required": false; }; "emptyStateMode": { "alias": "emptyStateMode"; "required": false; }; "AppContext": { "alias": "AppContext"; "required": false; }; "appContext": { "alias": "appContext"; "required": false; }; "DefaultAgentId": { "alias": "DefaultAgentId"; "required": false; }; "defaultAgentId": { "alias": "defaultAgentId"; "required": false; }; "ConversationDefaultAgentId": { "alias": "ConversationDefaultAgentId"; "required": false; }; "conversationDefaultAgentId": { "alias": "conversationDefaultAgentId"; "required": false; }; "AgentConfigurationPresetId": { "alias": "AgentConfigurationPresetId"; "required": false; }; "agentConfigurationPresetId": { "alias": "agentConfigurationPresetId"; "required": false; }; "InitialMessage": { "alias": "InitialMessage"; "required": false; }; "initialMessage": { "alias": "initialMessage"; "required": false; }; "InitialAttachments": { "alias": "InitialAttachments"; "required": false; }; "initialAttachments": { "alias": "initialAttachments"; "required": false; }; "ConversationHistory": { "alias": "ConversationHistory"; "required": false; }; "conversationHistory": { "alias": "conversationHistory"; "required": false; }; "InProgressMessageIds": { "alias": "InProgressMessageIds"; "required": false; }; "inProgressMessageIds": { "alias": "inProgressMessageIds"; "required": false; }; "ApplicationId": { "alias": "ApplicationId"; "required": false; }; "applicationId": { "alias": "applicationId"; "required": false; }; "AgentReplyMode": { "alias": "AgentReplyMode"; "required": false; }; "AllowedAgentIDs": { "alias": "AllowedAgentIDs"; "required": false; }; "MentionPeople": { "alias": "MentionPeople"; "required": false; }; "AgentHistoryFrom": { "alias": "AgentHistoryFrom"; "required": false; }; "AgentTurnHandler": { "alias": "AgentTurnHandler"; "required": false; }; "AutoNameConversation": { "alias": "AutoNameConversation"; "required": false; }; "InitialDraft": { "alias": "InitialDraft"; "required": false; }; "initialDraft": { "alias": "initialDraft"; "required": false; }; }, { "MessageSent": "MessageSent"; "messageSent": "messageSent"; "AgentResponse": "AgentResponse"; "agentResponse": "agentResponse"; "BeforeAgentTurn": "BeforeAgentTurn"; "beforeAgentTurn": "beforeAgentTurn"; "AfterAgentTurn": "AfterAgentTurn"; "afterAgentTurn": "afterAgentTurn"; "AgentRunDetected": "AgentRunDetected"; "agentRunDetected": "agentRunDetected"; "AgentRunUpdate": "AgentRunUpdate"; "agentRunUpdate": "agentRunUpdate"; "MessageComplete": "MessageComplete"; "messageComplete": "messageComplete"; "ArtifactCreated": "ArtifactCreated"; "artifactCreated": "artifactCreated"; "ConversationRenamed": "ConversationRenamed"; "conversationRenamed": "conversationRenamed"; "IntentCheckStarted": "IntentCheckStarted"; "intentCheckStarted": "intentCheckStarted"; "IntentCheckCompleted": "IntentCheckCompleted"; "intentCheckCompleted": "intentCheckCompleted"; "InitialMessageAutoSendStarted": "InitialMessageAutoSendStarted"; "initialMessageAutoSendStarted": "initialMessageAutoSendStarted"; "InitialMessageAutoSendFailed": "InitialMessageAutoSendFailed"; "initialMessageAutoSendFailed": "initialMessageAutoSendFailed"; "EmptyStateSubmit": "EmptyStateSubmit"; "emptyStateSubmit": "emptyStateSubmit"; "UploadStateChanged": "UploadStateChanged"; "uploadStateChanged": "uploadStateChanged"; "InitialDraftApplied": "InitialDraftApplied"; "initialDraftApplied": "initialDraftApplied"; "DraftStateChanged": "DraftStateChanged"; "ComposerBlurred": "ComposerBlurred"; }, never, never, false, never>;
|
|
722
1197
|
}
|
|
723
1198
|
//# sourceMappingURL=message-input.component.d.ts.map
|