@memberjunction/ng-conversations 6.3.0-edge.0 → 6.3.0-edge.2
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 +60 -22
- package/dist/assets/edge-ai.worker.js +35168 -0
- package/dist/lib/components/agent/agent-instance-editor-modal.component.d.ts +186 -0
- package/dist/lib/components/agent/agent-instance-editor-modal.component.d.ts.map +1 -0
- package/dist/lib/components/agent/agent-instance-editor-modal.component.js +2202 -0
- package/dist/lib/components/agent/agent-instance-editor-modal.component.js.map +1 -0
- package/dist/lib/components/artifact/artifact-share-modal.component.d.ts +39 -6
- package/dist/lib/components/artifact/artifact-share-modal.component.d.ts.map +1 -1
- package/dist/lib/components/artifact/artifact-share-modal.component.js +773 -204
- package/dist/lib/components/artifact/artifact-share-modal.component.js.map +1 -1
- package/dist/lib/components/collection/collection-tree.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-tree.component.js +19 -18
- package/dist/lib/components/collection/collection-tree.component.js.map +1 -1
- package/dist/lib/components/collection/collection-view.component.d.ts +6 -4
- package/dist/lib/components/collection/collection-view.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-view.component.js +35 -17
- package/dist/lib/components/collection/collection-view.component.js.map +1 -1
- package/dist/lib/components/collection/collections-full-view.component.d.ts +1 -0
- package/dist/lib/components/collection/collections-full-view.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collections-full-view.component.js +108 -106
- package/dist/lib/components/collection/collections-full-view.component.js.map +1 -1
- package/dist/lib/components/composer/ai-composer.component.d.ts +15 -1
- package/dist/lib/components/composer/ai-composer.component.d.ts.map +1 -1
- package/dist/lib/components/composer/ai-composer.component.js +43 -4
- package/dist/lib/components/composer/ai-composer.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-agent-picker.component.d.ts +20 -2
- package/dist/lib/components/conversation/conversation-agent-picker.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-agent-picker.component.js +378 -62
- package/dist/lib/components/conversation/conversation-agent-picker.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +94 -18
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-chat-area.component.js +732 -439
- package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-list.component.d.ts +19 -1
- package/dist/lib/components/conversation/conversation-list.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-list.component.js +184 -89
- package/dist/lib/components/conversation/conversation-list.component.js.map +1 -1
- package/dist/lib/components/export/export-modal.component.d.ts +7 -2
- package/dist/lib/components/export/export-modal.component.d.ts.map +1 -1
- package/dist/lib/components/export/export-modal.component.js +13 -2
- package/dist/lib/components/export/export-modal.component.js.map +1 -1
- package/dist/lib/components/library/library-create-dialog.component.d.ts +136 -0
- package/dist/lib/components/library/library-create-dialog.component.d.ts.map +1 -0
- package/dist/lib/components/library/library-create-dialog.component.js +1620 -0
- package/dist/lib/components/library/library-create-dialog.component.js.map +1 -0
- package/dist/lib/components/library/library-full-view.component.d.ts +10 -4
- package/dist/lib/components/library/library-full-view.component.d.ts.map +1 -1
- package/dist/lib/components/library/library-full-view.component.js +216 -40
- package/dist/lib/components/library/library-full-view.component.js.map +1 -1
- package/dist/lib/components/library/library-remote-drive-pane.component.d.ts +97 -0
- package/dist/lib/components/library/library-remote-drive-pane.component.d.ts.map +1 -0
- package/dist/lib/components/library/library-remote-drive-pane.component.js +1229 -0
- package/dist/lib/components/library/library-remote-drive-pane.component.js.map +1 -0
- package/dist/lib/components/library/library-workspace.component.d.ts +293 -0
- package/dist/lib/components/library/library-workspace.component.d.ts.map +1 -0
- package/dist/lib/components/library/library-workspace.component.js +5121 -0
- package/dist/lib/components/library/library-workspace.component.js.map +1 -0
- package/dist/lib/components/library/library.models.d.ts +192 -0
- package/dist/lib/components/library/library.models.d.ts.map +1 -0
- package/dist/lib/components/library/library.models.js +2 -0
- package/dist/lib/components/library/library.models.js.map +1 -0
- package/dist/lib/components/message/agent-handoff-card.component.js +1 -1
- package/dist/lib/components/message/agent-handoff-card.component.js.map +1 -1
- package/dist/lib/components/message/conversation-message-rating.component.d.ts +5 -0
- package/dist/lib/components/message/conversation-message-rating.component.d.ts.map +1 -1
- package/dist/lib/components/message/conversation-message-rating.component.js +72 -16
- package/dist/lib/components/message/conversation-message-rating.component.js.map +1 -1
- package/dist/lib/components/message/message-input.component.d.ts +33 -14
- package/dist/lib/components/message/message-input.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-input.component.js +142 -75
- package/dist/lib/components/message/message-input.component.js.map +1 -1
- package/dist/lib/components/message/message-item.component.d.ts +51 -4
- package/dist/lib/components/message/message-item.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-item.component.js +640 -399
- package/dist/lib/components/message/message-item.component.js.map +1 -1
- package/dist/lib/components/message/message-list.component.d.ts +15 -1
- package/dist/lib/components/message/message-list.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-list.component.js +75 -3
- package/dist/lib/components/message/message-list.component.js.map +1 -1
- package/dist/lib/components/navigation/conversation-navigation.component.js +9 -9
- package/dist/lib/components/navigation/conversation-navigation.component.js.map +1 -1
- package/dist/lib/components/overlay/chat-overlay.component.d.ts +94 -6
- package/dist/lib/components/overlay/chat-overlay.component.d.ts.map +1 -1
- package/dist/lib/components/overlay/chat-overlay.component.js +249 -59
- package/dist/lib/components/overlay/chat-overlay.component.js.map +1 -1
- package/dist/lib/components/project/project-form-modal.component.d.ts +6 -0
- package/dist/lib/components/project/project-form-modal.component.d.ts.map +1 -1
- package/dist/lib/components/project/project-form-modal.component.js +81 -61
- package/dist/lib/components/project/project-form-modal.component.js.map +1 -1
- package/dist/lib/components/project/project-selector.component.d.ts +5 -0
- package/dist/lib/components/project/project-selector.component.d.ts.map +1 -1
- package/dist/lib/components/project/project-selector.component.js +11 -4
- package/dist/lib/components/project/project-selector.component.js.map +1 -1
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-channel.d.ts +55 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-channel.d.ts.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-channel.js +974 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-channel.js.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-engine.d.ts +66 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-engine.d.ts.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-engine.js +253 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-engine.js.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-types.d.ts +80 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-types.d.ts.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-types.js +49 -0
- package/dist/lib/components/realtime/artifact-workspace/artifact-workspace-types.js.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/realtime-artifact-workspace-surface.component.d.ts +54 -0
- package/dist/lib/components/realtime/artifact-workspace/realtime-artifact-workspace-surface.component.d.ts.map +1 -0
- package/dist/lib/components/realtime/artifact-workspace/realtime-artifact-workspace-surface.component.js +386 -0
- package/dist/lib/components/realtime/artifact-workspace/realtime-artifact-workspace-surface.component.js.map +1 -0
- package/dist/lib/components/realtime/capture/realtime-capture-channel.d.ts +28 -1
- package/dist/lib/components/realtime/capture/realtime-capture-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/capture/realtime-capture-channel.js +53 -1
- package/dist/lib/components/realtime/capture/realtime-capture-channel.js.map +1 -1
- package/dist/lib/components/realtime/channels/client-context-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/channels/client-context-channel.js +23 -7
- package/dist/lib/components/realtime/channels/client-context-channel.js.map +1 -1
- package/dist/lib/components/realtime/interactive-component/interactive-component-channel.d.ts +1 -0
- package/dist/lib/components/realtime/interactive-component/interactive-component-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/interactive-component/interactive-component-channel.js +15 -2
- package/dist/lib/components/realtime/interactive-component/interactive-component-channel.js.map +1 -1
- package/dist/lib/components/realtime/media/media-channel.d.ts +32 -11
- package/dist/lib/components/realtime/media/media-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/media/media-channel.js +186 -23
- package/dist/lib/components/realtime/media/media-channel.js.map +1 -1
- package/dist/lib/components/realtime/media/realtime-media-surface.component.d.ts +9 -1
- package/dist/lib/components/realtime/media/realtime-media-surface.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/media/realtime-media-surface.component.js +33 -10
- package/dist/lib/components/realtime/media/realtime-media-surface.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-agent-banner.component.js +3 -3
- package/dist/lib/components/realtime/realtime-agent-banner.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-agent-picker.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-agent-picker.component.js +3 -3
- package/dist/lib/components/realtime/realtime-agent-picker.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-composer.component.js +6 -4
- package/dist/lib/components/realtime/realtime-composer.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts +82 -33
- package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-session-overlay.component.js +521 -191
- package/dist/lib/components/realtime/realtime-session-overlay.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-session-state.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-session-state.js +1 -1
- package/dist/lib/components/realtime/realtime-session-state.js.map +1 -1
- package/dist/lib/components/realtime/realtime-session-thread.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-session-thread.component.js +90 -5
- package/dist/lib/components/realtime/realtime-session-thread.component.js.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-stage.model.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-stage.model.js +2 -1
- package/dist/lib/components/realtime/realtime-surface-stage.model.js.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-tab-style.d.ts +11 -4
- package/dist/lib/components/realtime/realtime-surface-tab-style.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-tab-style.js +24 -5
- package/dist/lib/components/realtime/realtime-surface-tab-style.js.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-tabs.model.d.ts +7 -9
- package/dist/lib/components/realtime/realtime-surface-tabs.model.d.ts.map +1 -1
- package/dist/lib/components/realtime/realtime-surface-tabs.model.js +25 -15
- package/dist/lib/components/realtime/realtime-surface-tabs.model.js.map +1 -1
- package/dist/lib/components/realtime/remote-browser/remote-browser-channel.d.ts +30 -1
- package/dist/lib/components/realtime/remote-browser/remote-browser-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/remote-browser/remote-browser-channel.js +150 -2
- package/dist/lib/components/realtime/remote-browser/remote-browser-channel.js.map +1 -1
- package/dist/lib/components/realtime/remote-browser/remote-browser-surface.component.d.ts +101 -3
- package/dist/lib/components/realtime/remote-browser/remote-browser-surface.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/remote-browser/remote-browser-surface.component.js +503 -55
- package/dist/lib/components/realtime/remote-browser/remote-browser-surface.component.js.map +1 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-artifact-viewer.component.d.ts +48 -5
- package/dist/lib/components/realtime/whiteboard/whiteboard-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-artifact-viewer.component.js +249 -53
- package/dist/lib/components/realtime/whiteboard/whiteboard-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-channel.d.ts.map +1 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-channel.js +1 -1
- package/dist/lib/components/realtime/whiteboard/whiteboard-channel.js.map +1 -1
- package/dist/lib/components/search/search-panel.component.d.ts +10 -0
- package/dist/lib/components/search/search-panel.component.d.ts.map +1 -1
- package/dist/lib/components/search/search-panel.component.js +25 -3
- package/dist/lib/components/search/search-panel.component.js.map +1 -1
- package/dist/lib/components/share/share-modal.component.d.ts.map +1 -1
- package/dist/lib/components/share/share-modal.component.js +181 -127
- package/dist/lib/components/share/share-modal.component.js.map +1 -1
- package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts +14 -1
- package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts.map +1 -1
- package/dist/lib/components/sidebar/conversation-sidebar.component.js +50 -11
- package/dist/lib/components/sidebar/conversation-sidebar.component.js.map +1 -1
- package/dist/lib/components/sidebar/my-agents-section.component.d.ts +78 -0
- package/dist/lib/components/sidebar/my-agents-section.component.d.ts.map +1 -0
- package/dist/lib/components/sidebar/my-agents-section.component.js +450 -0
- package/dist/lib/components/sidebar/my-agents-section.component.js.map +1 -0
- package/dist/lib/components/task/tasks-full-view.component.d.ts +31 -8
- package/dist/lib/components/task/tasks-full-view.component.d.ts.map +1 -1
- package/dist/lib/components/task/tasks-full-view.component.js +701 -497
- package/dist/lib/components/task/tasks-full-view.component.js.map +1 -1
- package/dist/lib/components/workspace/conversation-workspace.component.d.ts.map +1 -1
- package/dist/lib/components/workspace/conversation-workspace.component.js +15 -2
- package/dist/lib/components/workspace/conversation-workspace.component.js.map +1 -1
- package/dist/lib/composer-plugins/base-conversation-mention.provider.d.ts +1 -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 +13 -1
- package/dist/lib/composer-plugins/base-conversation-mention.provider.js.map +1 -1
- package/dist/lib/conversations.module.d.ts +78 -71
- package/dist/lib/conversations.module.d.ts.map +1 -1
- package/dist/lib/conversations.module.js +68 -1
- package/dist/lib/conversations.module.js.map +1 -1
- package/dist/lib/models/agent-turn.model.d.ts +7 -1
- package/dist/lib/models/agent-turn.model.d.ts.map +1 -1
- package/dist/lib/models/agent-turn.model.js.map +1 -1
- package/dist/lib/services/agent-state.service.d.ts.map +1 -1
- package/dist/lib/services/agent-state.service.js +14 -3
- package/dist/lib/services/agent-state.service.js.map +1 -1
- package/dist/lib/services/artifact-permission.service.d.ts.map +1 -1
- package/dist/lib/services/artifact-permission.service.js +14 -3
- package/dist/lib/services/artifact-permission.service.js.map +1 -1
- package/dist/lib/services/artifact-state.service.d.ts.map +1 -1
- package/dist/lib/services/artifact-state.service.js +43 -11
- package/dist/lib/services/artifact-state.service.js.map +1 -1
- package/dist/lib/services/conversation-agent.service.d.ts +31 -21
- package/dist/lib/services/conversation-agent.service.d.ts.map +1 -1
- package/dist/lib/services/conversation-agent.service.js +84 -35
- package/dist/lib/services/conversation-agent.service.js.map +1 -1
- package/dist/lib/services/conversation-tasks-filter.d.ts +59 -2
- package/dist/lib/services/conversation-tasks-filter.d.ts.map +1 -1
- package/dist/lib/services/conversation-tasks-filter.js +222 -18
- package/dist/lib/services/conversation-tasks-filter.js.map +1 -1
- package/dist/lib/services/edge-ai/edge-agent-pre-discovery.service.d.ts +85 -0
- package/dist/lib/services/edge-ai/edge-agent-pre-discovery.service.d.ts.map +1 -0
- package/dist/lib/services/edge-ai/edge-agent-pre-discovery.service.js +257 -0
- package/dist/lib/services/edge-ai/edge-agent-pre-discovery.service.js.map +1 -0
- package/dist/lib/services/edge-ai/edge-ai-protocol.d.ts +85 -0
- package/dist/lib/services/edge-ai/edge-ai-protocol.d.ts.map +1 -0
- package/dist/lib/services/edge-ai/edge-ai-protocol.js +10 -0
- package/dist/lib/services/edge-ai/edge-ai-protocol.js.map +1 -0
- package/dist/lib/services/edge-ai/edge-ai-worker-host.d.ts +90 -0
- package/dist/lib/services/edge-ai/edge-ai-worker-host.d.ts.map +1 -0
- package/dist/lib/services/edge-ai/edge-ai-worker-host.js +386 -0
- package/dist/lib/services/edge-ai/edge-ai-worker-host.js.map +1 -0
- package/dist/lib/services/edge-ai/edge-ai.worker.d.ts +13 -0
- package/dist/lib/services/edge-ai/edge-ai.worker.d.ts.map +1 -0
- package/dist/lib/services/edge-ai/edge-ai.worker.js +201 -0
- package/dist/lib/services/edge-ai/edge-ai.worker.js.map +1 -0
- package/dist/lib/services/export.service.d.ts +64 -0
- package/dist/lib/services/export.service.d.ts.map +1 -1
- package/dist/lib/services/export.service.js +185 -6
- package/dist/lib/services/export.service.js.map +1 -1
- package/dist/lib/services/library-creation.service.d.ts +304 -0
- package/dist/lib/services/library-creation.service.d.ts.map +1 -0
- package/dist/lib/services/library-creation.service.js +1244 -0
- package/dist/lib/services/library-creation.service.js.map +1 -0
- package/dist/lib/services/realtime-pairing.d.ts +3 -3
- package/dist/lib/services/realtime-pairing.js +4 -4
- package/dist/lib/services/realtime-pairing.js.map +1 -1
- package/dist/lib/services/realtime-session-review.service.d.ts +14 -0
- package/dist/lib/services/realtime-session-review.service.d.ts.map +1 -1
- package/dist/lib/services/realtime-session-review.service.js +46 -4
- package/dist/lib/services/realtime-session-review.service.js.map +1 -1
- package/dist/lib/services/realtime-session.service.d.ts.map +1 -1
- package/dist/lib/services/realtime-session.service.js +2 -1
- package/dist/lib/services/realtime-session.service.js.map +1 -1
- package/dist/lib/services/search.service.d.ts +19 -2
- package/dist/lib/services/search.service.d.ts.map +1 -1
- package/dist/lib/services/search.service.js +99 -36
- package/dist/lib/services/search.service.js.map +1 -1
- package/dist/lib/utils/agent-handoff-map.js +1 -1
- package/dist/lib/utils/agent-handoff-map.js.map +1 -1
- package/dist/lib/utils/agent-turn-routing.js +1 -1
- package/dist/lib/utils/agent-turn-routing.js.map +1 -1
- package/dist/lib/utils/decision-routing.d.ts +5 -2
- package/dist/lib/utils/decision-routing.d.ts.map +1 -1
- package/dist/lib/utils/decision-routing.js +9 -4
- package/dist/lib/utils/decision-routing.js.map +1 -1
- package/dist/public-api.d.ts +15 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +17 -1
- package/dist/public-api.js.map +1 -1
- package/package.json +42 -37
|
@@ -9,7 +9,8 @@ import { ApplyRoutingDecision, ArtifactVersionForTurn, RunRoutingDecision, Shoul
|
|
|
9
9
|
import { BuildRecentTurns, BuildRoutingArtifactVersions, CanAskRoutingDecision, CollectRoutingParticipants, IsAgentAllowed } from '@memberjunction/ai-core-plus';
|
|
10
10
|
import { GenerateAndApplyConversationName } from '../../services/conversation-naming';
|
|
11
11
|
import { AIEngineBase, ResolveConversationAgentPreset } from '@memberjunction/ai-engine-base';
|
|
12
|
-
import {
|
|
12
|
+
import { agentFailureDisposition, agentFailureMessage, ContinuationAnnouncementText } from '@memberjunction/ai-core-plus';
|
|
13
|
+
import { EdgeAgentPreDiscoveryService } from '../../services/edge-ai/edge-agent-pre-discovery.service';
|
|
13
14
|
import { MentionAutocompleteService } from '../../services/mention-autocomplete.service';
|
|
14
15
|
import { PlanModePreference } from '../../utils/plan-mode-preference';
|
|
15
16
|
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
@@ -52,7 +53,7 @@ function MessageInputComponent_Conditional_3_Conditional_7_Template(rf, ctx) { i
|
|
|
52
53
|
} if (rf & 2) {
|
|
53
54
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
54
55
|
i0.ɵɵadvance();
|
|
55
|
-
i0.ɵɵtextInterpolate1(" Return to ", (ctx_r0.ConverationManagerAgent == null ? null : ctx_r0.ConverationManagerAgent.Name) || "
|
|
56
|
+
i0.ɵɵtextInterpolate1(" Return to ", (ctx_r0.ConverationManagerAgent == null ? null : ctx_r0.ConverationManagerAgent.Name) || "Assistant", " ");
|
|
56
57
|
} }
|
|
57
58
|
function MessageInputComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
58
59
|
i0.ɵɵelementStart(0, "div", 8)(1, "span", 9);
|
|
@@ -570,8 +571,10 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
570
571
|
* answer it, instead of always going back to the last agent that answered. The same call can
|
|
571
572
|
* name the artifact version the message modifies. The answer replaces continuity only when it
|
|
572
573
|
* is confident and arrives in time; an error, a slow or unsure answer keeps today's routing, and
|
|
573
|
-
* a tagged message or a form response makes no call (see `decision-routing.ts`).
|
|
574
|
-
*
|
|
574
|
+
* a tagged message or a form response makes no call (see `decision-routing.ts`). On by default:
|
|
575
|
+
* the routing calibration is fitted for a chat's mix, so the decision leaves the last agent only
|
|
576
|
+
* when it is at least 70% likely the person moved on. False makes no call and keeps today's
|
|
577
|
+
* routing.
|
|
575
578
|
*
|
|
576
579
|
* What goes to the model: each qualifying message sends these to the model behind the
|
|
577
580
|
* `Default Decision` prompt, which can be a different vendor from the agents' own: the first
|
|
@@ -579,7 +582,15 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
579
582
|
* name, description and last reply, and the names of their artifact versions. Each call writes an
|
|
580
583
|
* `MJ: AI Prompt Runs` row, even when the answer comes too late to be used.
|
|
581
584
|
*/
|
|
582
|
-
EnableDecisionRouting =
|
|
585
|
+
EnableDecisionRouting = true;
|
|
586
|
+
/**
|
|
587
|
+
* Opt-in Stage 6C.1 client-side Edge AI Pre-Discovery (`bge-small-en-v1.5` Top-5 ->
|
|
588
|
+
* `ms-marco-MiniLM-L-6-v2` in a lazy WASM Web Worker). When enabled (via this input or
|
|
589
|
+
* the `'mj.ai.edgePreDiscovery.enabled'` User Setting), warms up non-blockingly after mount
|
|
590
|
+
* and attaches an untrusted advisory `EdgePreDiscoveryHint` on opening conversation-manager
|
|
591
|
+
* turns. Server remains guard of truth; cold/offline workers fail open with zero delay.
|
|
592
|
+
*/
|
|
593
|
+
EnableEdgePreDiscovery = false;
|
|
583
594
|
/** The send slot was clicked in `stop` mode; the chat area stops the run(s). */
|
|
584
595
|
StopClicked = new EventEmitter();
|
|
585
596
|
MessageSent = new EventEmitter();
|
|
@@ -1034,6 +1045,7 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
1034
1045
|
this.VoiceActive = value;
|
|
1035
1046
|
}
|
|
1036
1047
|
realtimeActiveSub;
|
|
1048
|
+
edgeWarmUpTimer = null;
|
|
1037
1049
|
async ngOnInit() {
|
|
1038
1050
|
// Bind provider-aware services to this component's provider.
|
|
1039
1051
|
const p = this.ProviderToUse;
|
|
@@ -1057,6 +1069,8 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
1057
1069
|
await this.mentionAutocomplete.initialize(this.CurrentUser);
|
|
1058
1070
|
// Reconnect to any in-progress messages for streaming updates (via global streaming service)
|
|
1059
1071
|
this.ReconnectInProgressMessages();
|
|
1072
|
+
// Non-blocking post-mount warm-up for opt-in Stage 6C.1 Edge AI pre-discovery
|
|
1073
|
+
this.scheduleEdgePreDiscoveryWarmUp();
|
|
1060
1074
|
}
|
|
1061
1075
|
ngOnChanges(changes) {
|
|
1062
1076
|
// When conversation changes, focus the input
|
|
@@ -1116,6 +1130,10 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
1116
1130
|
}, 100);
|
|
1117
1131
|
}
|
|
1118
1132
|
ngOnDestroy() {
|
|
1133
|
+
if (this.edgeWarmUpTimer !== null) {
|
|
1134
|
+
clearTimeout(this.edgeWarmUpTimer);
|
|
1135
|
+
this.edgeWarmUpTimer = null;
|
|
1136
|
+
}
|
|
1119
1137
|
// Unregister all streaming callbacks
|
|
1120
1138
|
this.unregisterAllCallbacks();
|
|
1121
1139
|
this.clearInFlightWatches();
|
|
@@ -1170,6 +1188,38 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
1170
1188
|
}
|
|
1171
1189
|
_cachedRouteAgentKey;
|
|
1172
1190
|
_cachedRouteAgent = null;
|
|
1191
|
+
_inThreadAgentIdsKey = '';
|
|
1192
|
+
_inThreadAgentIds = [];
|
|
1193
|
+
/**
|
|
1194
|
+
* Distinct agent IDs participating in the current conversation thread (conversation's pinned
|
|
1195
|
+
* `DefaultAgentID` plus any message `AgentID`s), memoized for Smart `@Mention` ranking.
|
|
1196
|
+
*/
|
|
1197
|
+
get InThreadAgentIDs() {
|
|
1198
|
+
const history = this.ConversationHistory ?? [];
|
|
1199
|
+
const lastId = history.length > 0 ? (history[history.length - 1]?.ID ?? '') : '';
|
|
1200
|
+
const key = `${history.length}|${lastId}|${this.ConversationDefaultAgentId ?? ''}`;
|
|
1201
|
+
if (key === this._inThreadAgentIdsKey) {
|
|
1202
|
+
return this._inThreadAgentIds;
|
|
1203
|
+
}
|
|
1204
|
+
const seen = new Set();
|
|
1205
|
+
const ids = [];
|
|
1206
|
+
if (this.ConversationDefaultAgentId) {
|
|
1207
|
+
seen.add(this.ConversationDefaultAgentId.toLowerCase());
|
|
1208
|
+
ids.push(this.ConversationDefaultAgentId);
|
|
1209
|
+
}
|
|
1210
|
+
for (const msg of history) {
|
|
1211
|
+
if (msg.AgentID) {
|
|
1212
|
+
const lower = msg.AgentID.toLowerCase();
|
|
1213
|
+
if (!seen.has(lower)) {
|
|
1214
|
+
seen.add(lower);
|
|
1215
|
+
ids.push(msg.AgentID);
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
this._inThreadAgentIdsKey = key;
|
|
1220
|
+
this._inThreadAgentIds = ids;
|
|
1221
|
+
return ids;
|
|
1222
|
+
}
|
|
1173
1223
|
/**
|
|
1174
1224
|
* Agent that will receive the next turn based on an explicit `@agent` draft chip
|
|
1175
1225
|
* or continuity / default routing ({@link PickerTargetAgentId}).
|
|
@@ -1194,11 +1244,11 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
1194
1244
|
let resolved = null;
|
|
1195
1245
|
if (!targetId) {
|
|
1196
1246
|
if (manager?.ID) {
|
|
1197
|
-
resolved = { ID: manager.ID, Name: manager.Name || '
|
|
1247
|
+
resolved = { ID: manager.ID, Name: manager.Name || 'Assistant', IsConversationManager: true };
|
|
1198
1248
|
}
|
|
1199
1249
|
}
|
|
1200
1250
|
else if (manager?.ID && UUIDsEqual(targetId, manager.ID)) {
|
|
1201
|
-
resolved = { ID: manager.ID, Name: manager.Name || '
|
|
1251
|
+
resolved = { ID: manager.ID, Name: manager.Name || 'Assistant', IsConversationManager: true };
|
|
1202
1252
|
}
|
|
1203
1253
|
else {
|
|
1204
1254
|
const found = AIEngineBase.Instance.ReadableAgents?.find(a => UUIDsEqual(a.ID, targetId));
|
|
@@ -1227,7 +1277,7 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
1227
1277
|
return resolved;
|
|
1228
1278
|
}
|
|
1229
1279
|
get CurrentRouteAgentName() {
|
|
1230
|
-
return this.CurrentRouteAgent?.Name || this.ConverationManagerAgent?.Name || '
|
|
1280
|
+
return this.CurrentRouteAgent?.Name || this.ConverationManagerAgent?.Name || 'Assistant';
|
|
1231
1281
|
}
|
|
1232
1282
|
get CurrentRouteAccentVar() {
|
|
1233
1283
|
return AgentAccentVar(this.CurrentRouteAgent?.ID);
|
|
@@ -1245,7 +1295,7 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
1245
1295
|
if (!manager) {
|
|
1246
1296
|
return false;
|
|
1247
1297
|
}
|
|
1248
|
-
const name = manager.Name || '
|
|
1298
|
+
const name = manager.Name || 'Assistant';
|
|
1249
1299
|
if (this.InputBox) {
|
|
1250
1300
|
const inserted = this.InputBox.InsertMention({
|
|
1251
1301
|
id: manager.ID,
|
|
@@ -1317,7 +1367,7 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
1317
1367
|
return match.Name;
|
|
1318
1368
|
}
|
|
1319
1369
|
}
|
|
1320
|
-
return this.ConverationManagerAgent?.Name ?? '
|
|
1370
|
+
return this.ConverationManagerAgent?.Name ?? 'Assistant';
|
|
1321
1371
|
}
|
|
1322
1372
|
/** True while the "Start a voice call with…" agent picker popover is open. */
|
|
1323
1373
|
ShowRealtimeAgentPicker = false;
|
|
@@ -2384,15 +2434,19 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
2384
2434
|
async runAgentTurn(userMessage, mentionResult, turn, branchId, routing = null) {
|
|
2385
2435
|
const mention = turn.Route === 'Mention' ? this.findAgentMention(mentionResult, turn.AgentId) : null;
|
|
2386
2436
|
const targetArtifactVersionId = ArtifactVersionForTurn(routing, turn.AgentId);
|
|
2437
|
+
const isManagerTurn = turn.Route === 'ConversationManager' || (turn.Route === 'Redirect' && this.isConversationManager(turn.AgentId));
|
|
2438
|
+
const edgePreDiscoveryHint = isManagerTurn
|
|
2439
|
+
? await this.computeEdgePreDiscoveryHint(userMessage, mentionResult)
|
|
2440
|
+
: null;
|
|
2387
2441
|
if (this.AgentTurnHandler) {
|
|
2388
|
-
await this.runHostAgentTurn(this.AgentTurnHandler, userMessage, turn, mention, targetArtifactVersionId, branchId);
|
|
2442
|
+
await this.runHostAgentTurn(this.AgentTurnHandler, userMessage, turn, mention, targetArtifactVersionId, branchId, edgePreDiscoveryHint);
|
|
2389
2443
|
return;
|
|
2390
2444
|
}
|
|
2391
2445
|
if (mention) {
|
|
2392
2446
|
await this.invokeAgentDirectly(userMessage, mention, userMessage.ConversationID, branchId);
|
|
2393
2447
|
}
|
|
2394
|
-
else if (
|
|
2395
|
-
await this.runConversationManagerTurn(userMessage, mentionResult, branchId);
|
|
2448
|
+
else if (isManagerTurn) {
|
|
2449
|
+
await this.runConversationManagerTurn(userMessage, mentionResult, branchId, edgePreDiscoveryHint);
|
|
2396
2450
|
}
|
|
2397
2451
|
else {
|
|
2398
2452
|
// Pinned and host defaults keep their direct call even when they name the manager, as before.
|
|
@@ -2432,14 +2486,11 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
2432
2486
|
* more predictable and eliminates a common source of confusion where the intent check
|
|
2433
2487
|
* incorrectly rerouted messages away from the active agent.
|
|
2434
2488
|
*
|
|
2435
|
-
*
|
|
2436
|
-
*
|
|
2437
|
-
*
|
|
2438
|
-
*
|
|
2439
|
-
*
|
|
2440
|
-
* With {@link EnableDecisionRouting} on, a typed routing decision runs before routing instead
|
|
2441
|
-
* ({@link decideAgentRouting}); the prompt-based check stays unused. A confident answer from it
|
|
2442
|
-
* may name the artifact version this agent should continue from.
|
|
2489
|
+
* Intent checking came back as a typed routing decision rather than an LLM call: with
|
|
2490
|
+
* {@link EnableDecisionRouting} on (the default), {@link decideAgentRouting} runs before routing,
|
|
2491
|
+
* in a few hundred milliseconds, and a confident answer may send the message to another agent or
|
|
2492
|
+
* name the artifact version this agent should continue from. The old prompt-based check is gone
|
|
2493
|
+
* from this component; `ConversationAgentService.CheckAgentContinuityIntent` is deprecated.
|
|
2443
2494
|
*
|
|
2444
2495
|
* @param branchId The turn's branch (null is Main).
|
|
2445
2496
|
* @param targetArtifactVersionId The artifact version the routing decision named, or null.
|
|
@@ -2455,19 +2506,19 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
2455
2506
|
*
|
|
2456
2507
|
* @param branchId The turn's branch (null is Main).
|
|
2457
2508
|
*/
|
|
2458
|
-
async runConversationManagerTurn(messageDetail, mentionResult, branchId) {
|
|
2509
|
+
async runConversationManagerTurn(messageDetail, mentionResult, branchId, edgePreDiscoveryHint = null) {
|
|
2459
2510
|
const manager = this.ConverationManagerAgent;
|
|
2460
2511
|
const managerPreset = manager?.ID && messageDetail.ConversationID
|
|
2461
2512
|
? await this.agentService.FindConfigurationPresetForAgent(messageDetail.ConversationID, manager.ID, branchId)
|
|
2462
2513
|
: undefined;
|
|
2463
2514
|
if (manager?.ID && managerPreset) {
|
|
2464
|
-
await this.executeAgentContinuation(messageDetail, manager.ID, manager.Name || '
|
|
2515
|
+
await this.executeAgentContinuation(messageDetail, manager.ID, manager.Name || 'Assistant', messageDetail.ConversationID, branchId, null, // Sage doesn't use payload continuity
|
|
2465
2516
|
null, // Sage doesn't use artifact info
|
|
2466
2517
|
managerPreset // Pass the already-found config preset
|
|
2467
2518
|
);
|
|
2468
2519
|
return;
|
|
2469
2520
|
}
|
|
2470
|
-
await this.processMessageThroughAgent(messageDetail, mentionResult, branchId);
|
|
2521
|
+
await this.processMessageThroughAgent(messageDetail, mentionResult, branchId, edgePreDiscoveryHint);
|
|
2471
2522
|
}
|
|
2472
2523
|
_cachedContinuityReplyKey;
|
|
2473
2524
|
_cachedContinuityReply = null;
|
|
@@ -2487,7 +2538,7 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
2487
2538
|
return this._cachedContinuityReply ?? null;
|
|
2488
2539
|
}
|
|
2489
2540
|
const reply = FindContinuityAgentMessage(history, managerId, {
|
|
2490
|
-
conversationManagerName: this.ConverationManagerAgent?.Name ??
|
|
2541
|
+
conversationManagerName: this.ConverationManagerAgent?.Name ?? null,
|
|
2491
2542
|
isWithinFloor: msg => this.isWithinHistoryFloor(msg),
|
|
2492
2543
|
});
|
|
2493
2544
|
this._cachedContinuityReplyKey = cacheKey;
|
|
@@ -2553,8 +2604,8 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
2553
2604
|
*
|
|
2554
2605
|
* @param branchId The turn's branch (null is Main), sent to the handler as `BranchID`.
|
|
2555
2606
|
*/
|
|
2556
|
-
async runHostAgentTurn(handler, userMessage, turn, mention, targetArtifactVersionId, branchId) {
|
|
2557
|
-
const request = this.buildAgentTurnRequest(userMessage, turn, mention, targetArtifactVersionId, branchId);
|
|
2607
|
+
async runHostAgentTurn(handler, userMessage, turn, mention, targetArtifactVersionId, branchId, edgePreDiscoveryHint = null) {
|
|
2608
|
+
const request = this.buildAgentTurnRequest(userMessage, turn, mention, targetArtifactVersionId, branchId, edgePreDiscoveryHint);
|
|
2558
2609
|
const result = await this.callAgentTurnHandler(handler, request);
|
|
2559
2610
|
if (!result.Success) {
|
|
2560
2611
|
this.notifyAgentTurnProblem(result.ErrorMessage || 'The agent could not answer this message.', 'error');
|
|
@@ -2584,7 +2635,7 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
2584
2635
|
* turn's agent, or null.
|
|
2585
2636
|
* @param branchId The turn's branch (null is Main).
|
|
2586
2637
|
*/
|
|
2587
|
-
buildAgentTurnRequest(userMessage, turn, mention, targetArtifactVersionId, branchId) {
|
|
2638
|
+
buildAgentTurnRequest(userMessage, turn, mention, targetArtifactVersionId, branchId, edgePreDiscoveryHint = null) {
|
|
2588
2639
|
return {
|
|
2589
2640
|
ConversationId: userMessage.ConversationID,
|
|
2590
2641
|
BranchID: branchId,
|
|
@@ -2600,7 +2651,8 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
2600
2651
|
ConfigurationPresetId: turn.Route === 'Mention' ? (mention?.configurationId ?? null) : this.AgentConfigurationPresetId,
|
|
2601
2652
|
RequestedSkillIDs: [...this._pendingRequestedSkillIDs],
|
|
2602
2653
|
PlanMode: this.PlanModeEnabled,
|
|
2603
|
-
TargetArtifactVersionId: targetArtifactVersionId
|
|
2654
|
+
TargetArtifactVersionId: targetArtifactVersionId,
|
|
2655
|
+
...(edgePreDiscoveryHint ? { EdgePreDiscoveryHint: edgePreDiscoveryHint } : {})
|
|
2604
2656
|
};
|
|
2605
2657
|
}
|
|
2606
2658
|
/** Shows the rows a host's handler reported for its turn, oldest first. */
|
|
@@ -2619,42 +2671,55 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
2619
2671
|
emitAfterAgentTurn(conversationId, result, agentRunId) {
|
|
2620
2672
|
this.AfterAgentTurn.emit(new AfterAgentTurnEventArgs(conversationId, agentRunId ?? result.agentRun?.ID ?? '', result));
|
|
2621
2673
|
}
|
|
2622
|
-
/**
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
async checkContinuityIntent(agentId, message, branchId) {
|
|
2627
|
-
// FAST PATH: If message contains form response syntax, skip the intent check entirely
|
|
2628
|
-
// Form responses always continue with the agent that requested the form
|
|
2629
|
-
// Don't show "Analyzing intent..." message for this obvious case
|
|
2630
|
-
if (ConversationUtility.ContainsFormResponse(message)) {
|
|
2631
|
-
LogStatusEx({ message: '✅ Form response detected, skipping intent check UI (fast path)', verboseOnly: true });
|
|
2632
|
-
return {
|
|
2633
|
-
decision: 'YES',
|
|
2634
|
-
reasoning: 'User submitted a form response to the previous agent'
|
|
2635
|
-
};
|
|
2674
|
+
/** Opt-in gate for Stage 6C.1 local Edge AI pre-discovery. */
|
|
2675
|
+
isEdgePreDiscoveryEnabled() {
|
|
2676
|
+
if (this.EnableEdgePreDiscovery) {
|
|
2677
|
+
return true;
|
|
2636
2678
|
}
|
|
2637
|
-
// Emit event to show temporary "Analyzing intent..." message in conversation
|
|
2638
|
-
this.IntentCheckStarted.emit({ conversationId: this.ConversationId });
|
|
2639
2679
|
try {
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2680
|
+
return UserInfoEngine.Instance.GetSetting('mj.ai.edgePreDiscovery.enabled') === 'true';
|
|
2681
|
+
}
|
|
2682
|
+
catch {
|
|
2683
|
+
return false;
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
/** Schedules non-blocking catalog embedding warm-up strictly after mount when opted in. */
|
|
2687
|
+
scheduleEdgePreDiscoveryWarmUp() {
|
|
2688
|
+
if (!this.isEdgePreDiscoveryEnabled() || this.edgeWarmUpTimer !== null) {
|
|
2689
|
+
return;
|
|
2690
|
+
}
|
|
2691
|
+
this.edgeWarmUpTimer = setTimeout(() => {
|
|
2692
|
+
this.edgeWarmUpTimer = null;
|
|
2693
|
+
const agents = AIEngineBase.Instance.ReadableAgents;
|
|
2694
|
+
if (agents.length > 0) {
|
|
2695
|
+
void EdgeAgentPreDiscoveryService.Instance.WarmUpCatalog(agents, this.CurrentUser?.ID ?? '__default__');
|
|
2647
2696
|
}
|
|
2648
|
-
|
|
2649
|
-
|
|
2697
|
+
}, 1200);
|
|
2698
|
+
}
|
|
2699
|
+
/**
|
|
2700
|
+
* Computes an untrusted advisory pre-discovery hint on opening turns with no `@Agent` mention.
|
|
2701
|
+
* Never blocks message sending if the worker is cold, offline, or over its deadline.
|
|
2702
|
+
*/
|
|
2703
|
+
async computeEdgePreDiscoveryHint(userMessage, mentionResult) {
|
|
2704
|
+
if (!this.isEdgePreDiscoveryEnabled()) {
|
|
2705
|
+
return null;
|
|
2650
2706
|
}
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
return { decision: 'UNSURE', reasoning: 'Intent check failed with error' };
|
|
2707
|
+
if (mentionResult.mentions.some(m => m.type === 'agent')) {
|
|
2708
|
+
return null;
|
|
2654
2709
|
}
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2710
|
+
const userTurns = (this.ConversationHistory ?? []).filter(m => m.Role === 'User').length;
|
|
2711
|
+
if (userTurns > 1) {
|
|
2712
|
+
return null;
|
|
2713
|
+
}
|
|
2714
|
+
try {
|
|
2715
|
+
return await EdgeAgentPreDiscoveryService.Instance.PreDiscover(userMessage.Message ?? '', AIEngineBase.Instance.ReadableAgents, {
|
|
2716
|
+
UserId: this.CurrentUser?.ID ?? '__default__',
|
|
2717
|
+
AllowedAgentIDs: this.AllowedAgentIDs,
|
|
2718
|
+
ExcludedAgentID: this.ConverationManagerAgent?.ID ?? null,
|
|
2719
|
+
});
|
|
2720
|
+
}
|
|
2721
|
+
catch {
|
|
2722
|
+
return null;
|
|
2658
2723
|
}
|
|
2659
2724
|
}
|
|
2660
2725
|
/**
|
|
@@ -2759,39 +2824,39 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
2759
2824
|
*
|
|
2760
2825
|
* @param branchId The turn's branch (null is Main).
|
|
2761
2826
|
*/
|
|
2762
|
-
async processMessageThroughAgent(userMessage, mentionResult, branchId) {
|
|
2827
|
+
async processMessageThroughAgent(userMessage, mentionResult, branchId, edgePreDiscoveryHint = null) {
|
|
2763
2828
|
let conversationManagerMessage = null;
|
|
2764
2829
|
// CRITICAL: Capture conversationId from user message at start
|
|
2765
2830
|
// This prevents race condition when user switches conversations during async processing
|
|
2766
2831
|
const conversationId = userMessage.ConversationID;
|
|
2767
2832
|
try {
|
|
2768
|
-
|
|
2833
|
+
const managerName = this.ConverationManagerAgent?.Name || 'Assistant';
|
|
2834
|
+
// The manager's reply shows as a local placeholder until the server creates the row and names it.
|
|
2769
2835
|
conversationManagerMessage = await this.createReplyPlaceholder(conversationId, branchId, userMessage.ID, this.ConverationManagerAgent?.ID ?? null);
|
|
2770
|
-
// Use
|
|
2771
|
-
// Stage 1: Sage evaluates the message
|
|
2836
|
+
// Use conversation manager to evaluate and route
|
|
2772
2837
|
const result = await this.agentService.ProcessMessage(conversationId, userMessage, this.ConversationHistory, this.adoptReplyRow(conversationManagerMessage, {
|
|
2773
|
-
agentName:
|
|
2838
|
+
agentName: managerName,
|
|
2774
2839
|
status: 'Evaluating message...',
|
|
2775
2840
|
relatedMessageId: userMessage.ID,
|
|
2776
2841
|
conversationId,
|
|
2777
2842
|
conversationName: this.ConversationName
|
|
2778
|
-
}), this.createProgressCallback(conversationManagerMessage,
|
|
2843
|
+
}), this.createProgressCallback(conversationManagerMessage, managerName), this.AppContext, this.PlanModeEnabled, // per-request Plan Mode toggle
|
|
2779
2844
|
this._pendingRequestedSkillIDs, // user-requested skills (/skill mentions)
|
|
2780
2845
|
this.AllowedAgentIDs, // the agents the manager may delegate to
|
|
2781
2846
|
this.AgentHistoryFrom, // the first moment of the conversation the run may read
|
|
2782
|
-
branchId);
|
|
2847
|
+
branchId, ...(edgePreDiscoveryHint ? [edgePreDiscoveryHint] : []));
|
|
2783
2848
|
// Emit afterAgentTurn on the happy path only — the error/failure branch
|
|
2784
2849
|
// immediately below handles its own cleanup and skips this emit.
|
|
2785
2850
|
if (result && result.success) {
|
|
2786
2851
|
this.emitAfterAgentTurn(conversationId, result);
|
|
2787
2852
|
}
|
|
2788
2853
|
if (!result || !result.success) {
|
|
2789
|
-
await this.applyAgentFailureToDetail(conversationManagerMessage, userMessage,
|
|
2790
|
-
console.warn(
|
|
2854
|
+
await this.applyAgentFailureToDetail(conversationManagerMessage, userMessage, managerName, result, 'failed');
|
|
2855
|
+
console.warn(`⚠️ ${managerName} failed:`, agentFailureMessage(result, 'Agent evaluation failed'));
|
|
2791
2856
|
return;
|
|
2792
2857
|
}
|
|
2793
|
-
// The server wrote
|
|
2794
|
-
await this.settleReply(conversationManagerMessage,
|
|
2858
|
+
// The server wrote the manager's reply; show it as the server left it before routing on.
|
|
2859
|
+
await this.settleReply(conversationManagerMessage, `❌ ${managerName} could not start.`);
|
|
2795
2860
|
await this.routeConversationManagerResult(userMessage, result, conversationId, branchId, conversationManagerMessage);
|
|
2796
2861
|
}
|
|
2797
2862
|
catch (error) {
|
|
@@ -3527,7 +3592,7 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
3527
3592
|
} if (rf & 2) {
|
|
3528
3593
|
let _t;
|
|
3529
3594
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.InputBox = _t.first);
|
|
3530
|
-
} }, inputs: { ConversationId: "ConversationId", conversationId: "conversationId", ConversationName: "ConversationName", conversationName: "conversationName", CurrentUser: "CurrentUser", currentUser: "currentUser", Disabled: "Disabled", disabled: "disabled", ReadOnly: "ReadOnly", SendSlotMode: "SendSlotMode", StopCount: "StopCount", StopLabel: "StopLabel", StatusText: "StatusText", StatusElapsed: "StatusElapsed", Placeholder: "Placeholder", placeholder: "placeholder", ParentMessageId: "ParentMessageId", parentMessageId: "parentMessageId", EnableAttachments: "EnableAttachments", enableAttachments: "enableAttachments", EnableMentions: "EnableMentions", enableMentions: "enableMentions", EnableAgentMentions: "EnableAgentMentions", enableAgentMentions: "enableAgentMentions", EnableEntityMentions: "EnableEntityMentions", enableEntityMentions: "enableEntityMentions", EnableSkillCommands: "EnableSkillCommands", enableSkillCommands: "enableSkillCommands", EnablePlanMode: "EnablePlanMode", enablePlanMode: "enablePlanMode", EnableRealtime: "EnableRealtime", enableRealtime: "enableRealtime", MaxAttachments: "MaxAttachments", maxAttachments: "maxAttachments", MaxAttachmentSizeBytes: "MaxAttachmentSizeBytes", maxAttachmentSizeBytes: "maxAttachmentSizeBytes", AcceptedFileTypes: "AcceptedFileTypes", acceptedFileTypes: "acceptedFileTypes", ArtifactsByDetailId: "ArtifactsByDetailId", artifactsByDetailId: "artifactsByDetailId", SystemArtifactsByDetailId: "SystemArtifactsByDetailId", systemArtifactsByDetailId: "systemArtifactsByDetailId", AgentRunsByDetailId: "AgentRunsByDetailId", agentRunsByDetailId: "agentRunsByDetailId", EmptyStateMode: "EmptyStateMode", emptyStateMode: "emptyStateMode", AppContext: "AppContext", appContext: "appContext", DefaultAgentId: "DefaultAgentId", defaultAgentId: "defaultAgentId", ConversationDefaultAgentId: "ConversationDefaultAgentId", conversationDefaultAgentId: "conversationDefaultAgentId", AgentConfigurationPresetId: "AgentConfigurationPresetId", agentConfigurationPresetId: "agentConfigurationPresetId", InitialMessage: "InitialMessage", initialMessage: "initialMessage", InitialAttachments: "InitialAttachments", initialAttachments: "initialAttachments", ConversationHistory: "ConversationHistory", conversationHistory: "conversationHistory", InProgressMessageIds: "InProgressMessageIds", inProgressMessageIds: "inProgressMessageIds", ApplicationId: "ApplicationId", applicationId: "applicationId", AgentReplyMode: "AgentReplyMode", AllowedAgentIDs: "AllowedAgentIDs", MentionPeople: "MentionPeople", AgentHistoryFrom: "AgentHistoryFrom", TargetBranchID: "TargetBranchID", ResolveTargetBranch: "ResolveTargetBranch", AgentTurnHandler: "AgentTurnHandler", AutoNameConversation: "AutoNameConversation", EnableDecisionRouting: "EnableDecisionRouting", InitialDraft: "InitialDraft", initialDraft: "initialDraft" }, outputs: { StopClicked: "StopClicked", MessageSent: "MessageSent", messageSent: "messageSent", MessageStreamed: "MessageStreamed", 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" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 7, vars:
|
|
3595
|
+
} }, inputs: { ConversationId: "ConversationId", conversationId: "conversationId", ConversationName: "ConversationName", conversationName: "conversationName", CurrentUser: "CurrentUser", currentUser: "currentUser", Disabled: "Disabled", disabled: "disabled", ReadOnly: "ReadOnly", SendSlotMode: "SendSlotMode", StopCount: "StopCount", StopLabel: "StopLabel", StatusText: "StatusText", StatusElapsed: "StatusElapsed", Placeholder: "Placeholder", placeholder: "placeholder", ParentMessageId: "ParentMessageId", parentMessageId: "parentMessageId", EnableAttachments: "EnableAttachments", enableAttachments: "enableAttachments", EnableMentions: "EnableMentions", enableMentions: "enableMentions", EnableAgentMentions: "EnableAgentMentions", enableAgentMentions: "enableAgentMentions", EnableEntityMentions: "EnableEntityMentions", enableEntityMentions: "enableEntityMentions", EnableSkillCommands: "EnableSkillCommands", enableSkillCommands: "enableSkillCommands", EnablePlanMode: "EnablePlanMode", enablePlanMode: "enablePlanMode", EnableRealtime: "EnableRealtime", enableRealtime: "enableRealtime", MaxAttachments: "MaxAttachments", maxAttachments: "maxAttachments", MaxAttachmentSizeBytes: "MaxAttachmentSizeBytes", maxAttachmentSizeBytes: "maxAttachmentSizeBytes", AcceptedFileTypes: "AcceptedFileTypes", acceptedFileTypes: "acceptedFileTypes", ArtifactsByDetailId: "ArtifactsByDetailId", artifactsByDetailId: "artifactsByDetailId", SystemArtifactsByDetailId: "SystemArtifactsByDetailId", systemArtifactsByDetailId: "systemArtifactsByDetailId", AgentRunsByDetailId: "AgentRunsByDetailId", agentRunsByDetailId: "agentRunsByDetailId", EmptyStateMode: "EmptyStateMode", emptyStateMode: "emptyStateMode", AppContext: "AppContext", appContext: "appContext", DefaultAgentId: "DefaultAgentId", defaultAgentId: "defaultAgentId", ConversationDefaultAgentId: "ConversationDefaultAgentId", conversationDefaultAgentId: "conversationDefaultAgentId", AgentConfigurationPresetId: "AgentConfigurationPresetId", agentConfigurationPresetId: "agentConfigurationPresetId", InitialMessage: "InitialMessage", initialMessage: "initialMessage", InitialAttachments: "InitialAttachments", initialAttachments: "initialAttachments", ConversationHistory: "ConversationHistory", conversationHistory: "conversationHistory", InProgressMessageIds: "InProgressMessageIds", inProgressMessageIds: "inProgressMessageIds", ApplicationId: "ApplicationId", applicationId: "applicationId", AgentReplyMode: "AgentReplyMode", AllowedAgentIDs: "AllowedAgentIDs", MentionPeople: "MentionPeople", AgentHistoryFrom: "AgentHistoryFrom", TargetBranchID: "TargetBranchID", ResolveTargetBranch: "ResolveTargetBranch", AgentTurnHandler: "AgentTurnHandler", AutoNameConversation: "AutoNameConversation", EnableDecisionRouting: "EnableDecisionRouting", EnableEdgePreDiscovery: "EnableEdgePreDiscovery", InitialDraft: "InitialDraft", initialDraft: "initialDraft" }, outputs: { StopClicked: "StopClicked", MessageSent: "MessageSent", messageSent: "messageSent", MessageStreamed: "MessageStreamed", 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" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 7, vars: 37, consts: [["pickerOrigin", "cdkOverlayOrigin"], ["inputBox", ""], ["cdkOverlayOrigin", "", 1, "message-input-wrapper"], [1, "processing-indicator"], [1, "composer-route", "route", 3, "--agent-accent"], [3, "StopClicked", "valueChange", "blurred", "textSubmitted", "attachmentsChanged", "attachmentError", "voiceRequested", "voiceOptionsRequested", "planModeToggle", "placeholder", "disabled", "showCharacterCount", "enableMentions", "EnableAgentMentions", "EnableEntityMentions", "EnableSkillCommands", "TargetAgentId", "AllowedAgentIDs", "MentionPeople", "DefaultChatAgentID", "InThreadAgentIDs", "enableAttachments", "maxAttachments", "maxAttachmentSizeBytes", "acceptedFileTypes", "currentUser", "Provider", "rows", "enableRealtime", "voiceActive", "canStartRealtime", "enablePlanMode", "planModeActive", "SendSlotMode", "StopCount", "StopLabel", "StatusText", "StatusElapsed", "value"], ["cdkConnectedOverlay", "", "cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop", 3, "backdropClick", "detach", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPush", "cdkConnectedOverlayHasBackdrop"], [1, "fas", "fa-circle-notch", "fa-spin"], [1, "composer-route", "route"], [1, "to"], ["aria-hidden", "true", 1, "dot"], ["type", "button", 1, "linkish"], ["type", "button", 1, "linkish", 3, "click"], [3, "AgentPicked", "Cancelled", "Provider", "CurrentUser", "Agents", "DefaultAgentId", "CoAgents", "DefaultCoAgentId"]], template: function MessageInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3531
3596
|
i0.ɵɵelementStart(0, "div", 2, 0);
|
|
3532
3597
|
i0.ɵɵconditionalCreate(2, MessageInputComponent_Conditional_2_Template, 4, 1, "div", 3);
|
|
3533
3598
|
i0.ɵɵconditionalCreate(3, MessageInputComponent_Conditional_3_Template, 8, 4, "div", 4);
|
|
@@ -3544,14 +3609,14 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
3544
3609
|
i0.ɵɵadvance();
|
|
3545
3610
|
i0.ɵɵconditional(!ctx.emptyStateMode && ctx.CurrentRouteAgent ? 3 : -1);
|
|
3546
3611
|
i0.ɵɵadvance();
|
|
3547
|
-
i0.ɵɵproperty("placeholder", ctx.placeholder)("disabled", ctx.disabled || ctx.isProcessing)("showCharacterCount", false)("enableMentions", ctx.enableMentions)("EnableAgentMentions", ctx.enableAgentMentions)("EnableEntityMentions", ctx.enableEntityMentions)("EnableSkillCommands", ctx.enableSkillCommands)("TargetAgentId", ctx.pickerTargetAgentId)("AllowedAgentIDs", ctx.AllowedAgentIDs)("MentionPeople", ctx.MentionPeople)("enableAttachments", ctx.enableAttachments)("maxAttachments", ctx.maxAttachments)("maxAttachmentSizeBytes", ctx.maxAttachmentSizeBytes)("acceptedFileTypes", ctx.acceptedFileTypes)("currentUser", ctx.currentUser)("Provider", ctx.Provider)("rows", 3)("enableRealtime", ctx.enableRealtime)("voiceActive", ctx.voiceActive)("canStartRealtime", ctx.canStartRealtime)("enablePlanMode", ctx.enablePlanMode)("planModeActive", ctx.PlanModeEnabled)("SendSlotMode", ctx.SendSlotMode)("StopCount", ctx.StopCount)("StopLabel", ctx.StopLabel)("StatusText", ctx.StatusText)("StatusElapsed", ctx.StatusElapsed)("value", ctx.messageText);
|
|
3612
|
+
i0.ɵɵproperty("placeholder", ctx.placeholder)("disabled", ctx.disabled || ctx.isProcessing)("showCharacterCount", false)("enableMentions", ctx.enableMentions)("EnableAgentMentions", ctx.enableAgentMentions)("EnableEntityMentions", ctx.enableEntityMentions)("EnableSkillCommands", ctx.enableSkillCommands)("TargetAgentId", ctx.pickerTargetAgentId)("AllowedAgentIDs", ctx.AllowedAgentIDs)("MentionPeople", ctx.MentionPeople)("DefaultChatAgentID", ctx.DefaultAgentId)("InThreadAgentIDs", ctx.InThreadAgentIDs)("enableAttachments", ctx.enableAttachments)("maxAttachments", ctx.maxAttachments)("maxAttachmentSizeBytes", ctx.maxAttachmentSizeBytes)("acceptedFileTypes", ctx.acceptedFileTypes)("currentUser", ctx.currentUser)("Provider", ctx.Provider)("rows", 3)("enableRealtime", ctx.enableRealtime)("voiceActive", ctx.voiceActive)("canStartRealtime", ctx.canStartRealtime)("enablePlanMode", ctx.enablePlanMode)("planModeActive", ctx.PlanModeEnabled)("SendSlotMode", ctx.SendSlotMode)("StopCount", ctx.StopCount)("StopLabel", ctx.StopLabel)("StatusText", ctx.StatusText)("StatusElapsed", ctx.StatusElapsed)("value", ctx.messageText);
|
|
3548
3613
|
i0.ɵɵadvance(2);
|
|
3549
3614
|
i0.ɵɵproperty("cdkConnectedOverlayOrigin", pickerOrigin_r4)("cdkConnectedOverlayOpen", ctx.showRealtimeAgentPicker)("cdkConnectedOverlayPositions", ctx.pickerOverlayPositions)("cdkConnectedOverlayPush", true)("cdkConnectedOverlayHasBackdrop", true);
|
|
3550
3615
|
} }, dependencies: [i11.CdkConnectedOverlay, i11.CdkOverlayOrigin, i12.RealtimeAgentPickerComponent, i13.AiComposerComponent], styles: [".message-input-wrapper[_ngcontent-%COMP%] {\n position: relative;\n width: 100%;\n}\n\n\n\n\n.processing-indicator[_ngcontent-%COMP%] {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.75rem 1.25rem;\n background: color-mix(in srgb, var(--mj-bg-surface-card) 95%, transparent);\n border-radius: 8px;\n box-shadow: var(--mj-shadow-sm);\n z-index: 10;\n pointer-events: none;\n}\n.processing-indicator[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n}\n.processing-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n font-size: 0.9rem;\n color: var(--mj-text-primary);\n}\n\n.composer-route[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 10px 6px;\n font-size: 11.5px;\n color: var(--mj-text-muted);\n}\n\n.composer-route[_ngcontent-%COMP%] .to[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n}\n\n.composer-route[_ngcontent-%COMP%] .to[_ngcontent-%COMP%] b[_ngcontent-%COMP%] {\n font-weight: 600;\n color: var(--mj-text-secondary);\n}\n\n.composer-route[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%] {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--agent-accent, var(--mj-brand-primary));\n flex-shrink: 0;\n transition: background-color 240ms cubic-bezier(0.22, 1, 0.36, 1);\n}\n\n.composer-route[_ngcontent-%COMP%] .linkish[_ngcontent-%COMP%] {\n margin-left: auto;\n padding: 2px 4px;\n border: none;\n border-radius: 4px;\n background: transparent;\n color: var(--mj-brand-primary);\n font-family: inherit;\n font-size: 11.5px;\n font-weight: 500;\n text-decoration: underline;\n text-decoration-style: dotted;\n text-decoration-thickness: 1px;\n text-underline-offset: 2px;\n cursor: pointer;\n}\n\n.composer-route[_ngcontent-%COMP%] .linkish[_ngcontent-%COMP%]:hover {\n color: var(--mj-brand-primary-hover);\n}\n\n.composer-route[_ngcontent-%COMP%] .linkish[_ngcontent-%COMP%]:focus-visible {\n outline: 2px solid var(--mj-brand-primary);\n outline-offset: 2px;\n box-shadow: var(--mj-focus-ring, none);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .composer-route[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%] {\n transition: none;\n }\n}"] });
|
|
3551
3616
|
}
|
|
3552
3617
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MessageInputComponent, [{
|
|
3553
3618
|
type: Component,
|
|
3554
|
-
args: [{ standalone: false, selector: 'mj-message-input', template: "<div class=\"message-input-wrapper\" cdkOverlayOrigin #pickerOrigin=\"cdkOverlayOrigin\">\n <!-- Processing Indicator Overlay -->\n @if (isProcessing) {\n <div class=\"processing-indicator\">\n <i class=\"fas fa-circle-notch fa-spin\"></i>\n <span>{{ processingMessage }}</span>\n </div>\n }\n\n @if (!emptyStateMode && CurrentRouteAgent) {\n <div class=\"composer-route route\" [style.--agent-accent]=\"CurrentRouteAccentVar\">\n <span class=\"to\">\n <span class=\"dot\" aria-hidden=\"true\"></span>\n <span>Replying to <b>{{ CurrentRouteAgentName }}</b></span>\n </span>\n @if (ShowReturnToSage) {\n <button type=\"button\" class=\"linkish\" (click)=\"ReturnToSage()\">\n Return to {{ ConverationManagerAgent?.Name || '
|
|
3619
|
+
args: [{ standalone: false, selector: 'mj-message-input', template: "<div class=\"message-input-wrapper\" cdkOverlayOrigin #pickerOrigin=\"cdkOverlayOrigin\">\n <!-- Processing Indicator Overlay -->\n @if (isProcessing) {\n <div class=\"processing-indicator\">\n <i class=\"fas fa-circle-notch fa-spin\"></i>\n <span>{{ processingMessage }}</span>\n </div>\n }\n\n @if (!emptyStateMode && CurrentRouteAgent) {\n <div class=\"composer-route route\" [style.--agent-accent]=\"CurrentRouteAccentVar\">\n <span class=\"to\">\n <span class=\"dot\" aria-hidden=\"true\"></span>\n <span>Replying to <b>{{ CurrentRouteAgentName }}</b></span>\n </span>\n @if (ShowReturnToSage) {\n <button type=\"button\" class=\"linkish\" (click)=\"ReturnToSage()\">\n Return to {{ ConverationManagerAgent?.Name || 'Assistant' }}\n </button>\n }\n </div>\n }\n\n <!-- AI composer (mic + Plan Mode buttons live in its in-composer toolbar): wraps the\n generic mj-message-input-box with the '@' agent / '#' record / '/' skill trigger\n plugins built in \u2014 all three on by default, preserving the standard chat behavior. -->\n <mj-ai-composer\n #inputBox\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled || isProcessing\"\n [showCharacterCount]=\"false\"\n [enableMentions]=\"enableMentions\"\n [EnableAgentMentions]=\"enableAgentMentions\"\n [EnableEntityMentions]=\"enableEntityMentions\"\n [EnableSkillCommands]=\"enableSkillCommands\"\n [TargetAgentId]=\"pickerTargetAgentId\"\n [AllowedAgentIDs]=\"AllowedAgentIDs\"\n [MentionPeople]=\"MentionPeople\"\n [DefaultChatAgentID]=\"DefaultAgentId\"\n [InThreadAgentIDs]=\"InThreadAgentIDs\"\n [enableAttachments]=\"enableAttachments\"\n [maxAttachments]=\"maxAttachments\"\n [maxAttachmentSizeBytes]=\"maxAttachmentSizeBytes\"\n [acceptedFileTypes]=\"acceptedFileTypes\"\n [currentUser]=\"currentUser\"\n [Provider]=\"Provider\"\n [rows]=\"3\"\n [enableRealtime]=\"enableRealtime\"\n [voiceActive]=\"voiceActive\"\n [canStartRealtime]=\"canStartRealtime\"\n [enablePlanMode]=\"enablePlanMode\"\n [planModeActive]=\"PlanModeEnabled\"\n [SendSlotMode]=\"SendSlotMode\"\n [StopCount]=\"StopCount\"\n [StopLabel]=\"StopLabel\"\n [StatusText]=\"StatusText\"\n [StatusElapsed]=\"StatusElapsed\"\n (StopClicked)=\"StopClicked.emit()\"\n [value]=\"messageText\"\n (valueChange)=\"OnComposerValueChanged($event)\"\n (blurred)=\"ComposerBlurred.emit()\"\n (textSubmitted)=\"onTextSubmitted($event)\"\n (attachmentsChanged)=\"onAttachmentsChanged($event)\"\n (attachmentError)=\"onAttachmentError($event)\"\n (voiceRequested)=\"onStartRealtime()\"\n (voiceOptionsRequested)=\"onRealtimeOptions()\"\n (planModeToggle)=\"TogglePlanMode()\">\n </mj-ai-composer>\n\n <!-- Voice agent/co-agent/model picker \u2014 shown when starting a call on a conversation\n with NO prior agent participation, or on demand via the caret next to the phone\n button (any conversation). Rendered in a body-level CDK overlay anchored above the\n composer so it POPS OUT of the chat overlay's clipping border instead of being cut\n off at the top of a narrow (~390px) overlay. -->\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"pickerOrigin\"\n [cdkConnectedOverlayOpen]=\"showRealtimeAgentPicker\"\n [cdkConnectedOverlayPositions]=\"pickerOverlayPositions\"\n [cdkConnectedOverlayPush]=\"true\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"onRealtimeAgentPickerCancelled()\"\n (detach)=\"onRealtimeAgentPickerCancelled()\">\n <mj-realtime-agent-picker\n [Provider]=\"ProviderToUse\"\n [CurrentUser]=\"currentUser\"\n [Agents]=\"voicePickerAgents\"\n [DefaultAgentId]=\"voicePickerDefaultAgentId\"\n [CoAgents]=\"voicePickerCoAgents\"\n [DefaultCoAgentId]=\"voicePickerDefaultCoAgentId\"\n (AgentPicked)=\"onRealtimeAgentPicked($event)\"\n (Cancelled)=\"onRealtimeAgentPickerCancelled()\">\n </mj-realtime-agent-picker>\n </ng-template>\n</div>\n\n<!-- The voice \"call mode\" overlay is hosted by <mj-conversation-chat-area> (it fills the\n whole conversation panel in place); this component only owns the trigger wiring. -->\n", styles: [".message-input-wrapper {\n position: relative;\n width: 100%;\n}\n\n/* Plan Mode moved into the in-composer toolbar (message-input-box) as a toggle icon button\n next to the attachment/voice buttons \u2014 see .plan-mode-button-icon there. */\n\n.processing-indicator {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.75rem 1.25rem;\n background: color-mix(in srgb, var(--mj-bg-surface-card) 95%, transparent);\n border-radius: 8px;\n box-shadow: var(--mj-shadow-sm);\n z-index: 10;\n pointer-events: none;\n}\n.processing-indicator i {\n color: var(--mj-brand-primary);\n}\n.processing-indicator span {\n font-size: 0.9rem;\n color: var(--mj-text-primary);\n}\n\n.composer-route {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 10px 6px;\n font-size: 11.5px;\n color: var(--mj-text-muted);\n}\n\n.composer-route .to {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n}\n\n.composer-route .to b {\n font-weight: 600;\n color: var(--mj-text-secondary);\n}\n\n.composer-route .dot {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--agent-accent, var(--mj-brand-primary));\n flex-shrink: 0;\n transition: background-color 240ms cubic-bezier(0.22, 1, 0.36, 1);\n}\n\n.composer-route .linkish {\n margin-left: auto;\n padding: 2px 4px;\n border: none;\n border-radius: 4px;\n background: transparent;\n color: var(--mj-brand-primary);\n font-family: inherit;\n font-size: 11.5px;\n font-weight: 500;\n text-decoration: underline;\n text-decoration-style: dotted;\n text-decoration-thickness: 1px;\n text-underline-offset: 2px;\n cursor: pointer;\n}\n\n.composer-route .linkish:hover {\n color: var(--mj-brand-primary-hover);\n}\n\n.composer-route .linkish:focus-visible {\n outline: 2px solid var(--mj-brand-primary);\n outline-offset: 2px;\n box-shadow: var(--mj-focus-ring, none);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .composer-route .dot {\n transition: none;\n }\n}\n\n"] }]
|
|
3555
3620
|
}], () => [{ type: i1.DialogService }, { type: i2.ToastService }, { type: i3.ConversationAgentService }, { type: i4.DataCacheService }, { type: i5.ActiveTasksService }, { type: i6.ConversationStreamingService }, { type: i7.MentionParserService }, { type: i8.ConversationAttachmentService }, { type: i9.ConversationBridgeService }, { type: i10.RealtimeSessionService }], { ConversationId: [{
|
|
3556
3621
|
type: Input
|
|
3557
3622
|
}], conversationId: [{
|
|
@@ -3698,6 +3763,8 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
3698
3763
|
type: Input
|
|
3699
3764
|
}], EnableDecisionRouting: [{
|
|
3700
3765
|
type: Input
|
|
3766
|
+
}], EnableEdgePreDiscovery: [{
|
|
3767
|
+
type: Input
|
|
3701
3768
|
}], StopClicked: [{
|
|
3702
3769
|
type: Output
|
|
3703
3770
|
}], MessageSent: [{
|
|
@@ -3778,5 +3845,5 @@ export class MessageInputComponent extends BaseAngularComponent {
|
|
|
3778
3845
|
}], ComposerBlurred: [{
|
|
3779
3846
|
type: Output
|
|
3780
3847
|
}] }); })();
|
|
3781
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MessageInputComponent, { className: "MessageInputComponent", filePath: "src/lib/components/message/message-input.component.ts", lineNumber:
|
|
3848
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MessageInputComponent, { className: "MessageInputComponent", filePath: "src/lib/components/message/message-input.component.ts", lineNumber: 73 }); })();
|
|
3782
3849
|
//# sourceMappingURL=message-input.component.js.map
|