@memberjunction/ng-conversations 5.44.0 → 5.45.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/dist/lib/components/artifact/artifact-share-modal.component.d.ts +3 -1
- package/dist/lib/components/artifact/artifact-share-modal.component.d.ts.map +1 -1
- package/dist/lib/components/artifact/artifact-share-modal.component.js +16 -12
- package/dist/lib/components/artifact/artifact-share-modal.component.js.map +1 -1
- package/dist/lib/components/collection/collection-share-modal.component.d.ts +3 -1
- package/dist/lib/components/collection/collection-share-modal.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-share-modal.component.js +16 -12
- package/dist/lib/components/collection/collection-share-modal.component.js.map +1 -1
- package/dist/lib/components/collection/collection-tree.component.d.ts +3 -1
- package/dist/lib/components/collection/collection-tree.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-tree.component.js +10 -7
- package/dist/lib/components/collection/collection-tree.component.js.map +1 -1
- package/dist/lib/components/collection/collection-view.component.d.ts +3 -1
- package/dist/lib/components/collection/collection-view.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-view.component.js +10 -8
- package/dist/lib/components/collection/collection-view.component.js.map +1 -1
- package/dist/lib/components/composer/ai-composer.component.d.ts +103 -0
- package/dist/lib/components/composer/ai-composer.component.d.ts.map +1 -0
- package/dist/lib/components/composer/ai-composer.component.js +263 -0
- package/dist/lib/components/composer/ai-composer.component.js.map +1 -0
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +3 -4
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-chat-area.component.js +36 -36
- package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-empty-state.component.d.ts +1 -1
- package/dist/lib/components/conversation/conversation-empty-state.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-empty-state.component.js.map +1 -1
- package/dist/lib/components/message/message-input.component.d.ts +5 -6
- package/dist/lib/components/message/message-input.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-input.component.js +35 -20
- package/dist/lib/components/message/message-input.component.js.map +1 -1
- package/dist/lib/components/message/message-item.component.d.ts +2 -3
- package/dist/lib/components/message/message-item.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-item.component.js +17 -17
- package/dist/lib/components/message/message-item.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.d.ts.map +1 -1
- package/dist/lib/components/overlay/chat-overlay.component.js.map +1 -1
- package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts +11 -3
- package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts.map +1 -1
- package/dist/lib/components/sidebar/conversation-sidebar.component.js +34 -10
- package/dist/lib/components/sidebar/conversation-sidebar.component.js.map +1 -1
- package/dist/lib/components/sidebar/routines-section.component.d.ts +73 -0
- package/dist/lib/components/sidebar/routines-section.component.d.ts.map +1 -0
- package/dist/lib/components/sidebar/routines-section.component.js +211 -0
- package/dist/lib/components/sidebar/routines-section.component.js.map +1 -0
- package/dist/lib/components/tasks/tasks-dropdown.component.d.ts +12 -0
- package/dist/lib/components/tasks/tasks-dropdown.component.d.ts.map +1 -1
- package/dist/lib/components/tasks/tasks-dropdown.component.js +37 -1
- package/dist/lib/components/tasks/tasks-dropdown.component.js.map +1 -1
- package/dist/lib/components/workspace/conversation-workspace.component.d.ts +11 -5
- package/dist/lib/components/workspace/conversation-workspace.component.d.ts.map +1 -1
- package/dist/lib/components/workspace/conversation-workspace.component.js +35 -26
- package/dist/lib/components/workspace/conversation-workspace.component.js.map +1 -1
- package/dist/lib/composer-plugins/agent-mention.provider.d.ts +16 -0
- package/dist/lib/composer-plugins/agent-mention.provider.d.ts.map +1 -0
- package/dist/lib/composer-plugins/agent-mention.provider.js +28 -0
- package/dist/lib/composer-plugins/agent-mention.provider.js.map +1 -0
- package/dist/lib/composer-plugins/base-conversation-mention.provider.d.ts +20 -0
- package/dist/lib/composer-plugins/base-conversation-mention.provider.d.ts.map +1 -0
- package/dist/lib/composer-plugins/base-conversation-mention.provider.js +32 -0
- package/dist/lib/composer-plugins/base-conversation-mention.provider.js.map +1 -0
- package/dist/lib/composer-plugins/load-composer-plugins.d.ts +9 -0
- package/dist/lib/composer-plugins/load-composer-plugins.d.ts.map +1 -0
- package/dist/lib/composer-plugins/load-composer-plugins.js +17 -0
- package/dist/lib/composer-plugins/load-composer-plugins.js.map +1 -0
- package/dist/lib/composer-plugins/record-mention.provider.d.ts +14 -0
- package/dist/lib/composer-plugins/record-mention.provider.d.ts.map +1 -0
- package/dist/lib/composer-plugins/record-mention.provider.js +26 -0
- package/dist/lib/composer-plugins/record-mention.provider.js.map +1 -0
- package/dist/lib/composer-plugins/skill-command.provider.d.ts +15 -0
- package/dist/lib/composer-plugins/skill-command.provider.d.ts.map +1 -0
- package/dist/lib/composer-plugins/skill-command.provider.js +27 -0
- package/dist/lib/composer-plugins/skill-command.provider.js.map +1 -0
- package/dist/lib/conversations.module.d.ts +74 -73
- package/dist/lib/conversations.module.d.ts.map +1 -1
- package/dist/lib/conversations.module.js +33 -13
- package/dist/lib/conversations.module.js.map +1 -1
- package/dist/lib/services/active-tasks.service.d.ts.map +1 -1
- package/dist/lib/services/active-tasks.service.js +4 -1
- package/dist/lib/services/active-tasks.service.js.map +1 -1
- package/dist/lib/services/conversation-agent.service.d.ts +7 -0
- package/dist/lib/services/conversation-agent.service.d.ts.map +1 -1
- package/dist/lib/services/conversation-agent.service.js +20 -0
- package/dist/lib/services/conversation-agent.service.js.map +1 -1
- package/dist/lib/services/conversation-attachment.service.d.ts +1 -1
- package/dist/lib/services/conversation-attachment.service.d.ts.map +1 -1
- package/dist/lib/services/conversation-attachment.service.js.map +1 -1
- package/dist/lib/services/mention-autocomplete.service.d.ts +27 -20
- package/dist/lib/services/mention-autocomplete.service.d.ts.map +1 -1
- package/dist/lib/services/mention-autocomplete.service.js +55 -16
- package/dist/lib/services/mention-autocomplete.service.js.map +1 -1
- package/dist/public-api.d.ts +23 -3
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +38 -3
- package/dist/public-api.js.map +1 -1
- package/package.json +29 -27
- package/dist/lib/components/mention/mention-dropdown.component.d.ts +0 -53
- package/dist/lib/components/mention/mention-dropdown.component.d.ts.map +0 -1
- package/dist/lib/components/mention/mention-dropdown.component.js +0 -297
- package/dist/lib/components/mention/mention-dropdown.component.js.map +0 -1
- package/dist/lib/components/mention/mention-editor.component.d.ts +0 -256
- package/dist/lib/components/mention/mention-editor.component.d.ts.map +0 -1
- package/dist/lib/components/mention/mention-editor.component.js +0 -1247
- package/dist/lib/components/mention/mention-editor.component.js.map +0 -1
- package/dist/lib/components/message/message-input-box.component.d.ts +0 -132
- package/dist/lib/components/message/message-input-box.component.d.ts.map +0 -1
- package/dist/lib/components/message/message-input-box.component.js +0 -327
- package/dist/lib/components/message/message-input-box.component.js.map +0 -1
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
1
|
import { Metadata } from '@memberjunction/core';
|
|
3
2
|
import { AIEngineBase, AIAgentPermissionHelper, AISkillPermissionHelper } from '@memberjunction/ai-engine-base';
|
|
4
|
-
import
|
|
3
|
+
import { BaseSingleton } from '@memberjunction/global';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
5
|
+
* Shared engine behind the conversations composer plugins (the agent-mentions /
|
|
6
|
+
* record-mentions / skill-commands `ComposerTriggerProvider`s) and the mention-parsing
|
|
7
|
+
* consumers (message routing, saved-message badge rendering). Loads the
|
|
8
|
+
* permission-filtered agent / user / entity / query / skill caches once per session and
|
|
9
|
+
* serves ranked `MentionSuggestion` lists per trigger char.
|
|
10
|
+
*
|
|
11
|
+
* NOT an Angular DI service — it's a `BaseSingleton` engine so the
|
|
12
|
+
* ClassFactory-instantiated trigger providers (which live outside Angular DI) and the
|
|
13
|
+
* Angular components share ONE instance (one cache warm-up) via
|
|
14
|
+
* `MentionAutocompleteService.Instance`.
|
|
7
15
|
*/
|
|
8
|
-
export class MentionAutocompleteService {
|
|
16
|
+
export class MentionAutocompleteService extends BaseSingleton {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
}
|
|
20
|
+
/** The process-wide shared instance (Global Object Store backed). */
|
|
21
|
+
static get Instance() {
|
|
22
|
+
return super.getInstance();
|
|
23
|
+
}
|
|
9
24
|
agentsCache = [];
|
|
10
25
|
usersCache = [];
|
|
11
26
|
entitiesCache = [];
|
|
@@ -18,7 +33,10 @@ export class MentionAutocompleteService {
|
|
|
18
33
|
queriesEntityIcon = 'fa-solid fa-database';
|
|
19
34
|
isInitialized = false;
|
|
20
35
|
initializationPromise = null;
|
|
21
|
-
|
|
36
|
+
/** True once the caches have loaded (agents/users/entities/queries/skills). */
|
|
37
|
+
get IsInitialized() {
|
|
38
|
+
return this.isInitialized;
|
|
39
|
+
}
|
|
22
40
|
/**
|
|
23
41
|
* Initialize the service by loading agents and users
|
|
24
42
|
* Prevents concurrent initialization with promise lock
|
|
@@ -191,7 +209,10 @@ export class MentionAutocompleteService {
|
|
|
191
209
|
displayName: agent.Name || 'Unknown',
|
|
192
210
|
description: agent.Description || undefined,
|
|
193
211
|
imageUrl: agent.LogoURL || undefined, // Agent logo/avatar image
|
|
194
|
-
icon: this.getAgentIcon(agent)
|
|
212
|
+
icon: this.getAgentIcon(agent),
|
|
213
|
+
// Configuration presets ride on the suggestion — the (AI-blind) composer
|
|
214
|
+
// renders a preset picker on the inserted chip when there are 2+.
|
|
215
|
+
presets: this.getAgentPresets(agent.ID)
|
|
195
216
|
});
|
|
196
217
|
}
|
|
197
218
|
}
|
|
@@ -205,8 +226,7 @@ export class MentionAutocompleteService {
|
|
|
205
226
|
id: user.ID,
|
|
206
227
|
name: user.Name,
|
|
207
228
|
displayName: user.Name,
|
|
208
|
-
description: user.Email || undefined
|
|
209
|
-
avatarUrl: undefined // Future: load user avatars
|
|
229
|
+
description: user.Email || undefined
|
|
210
230
|
});
|
|
211
231
|
}
|
|
212
232
|
}
|
|
@@ -320,6 +340,33 @@ export class MentionAutocompleteService {
|
|
|
320
340
|
}
|
|
321
341
|
return 0; // No match
|
|
322
342
|
}
|
|
343
|
+
/**
|
|
344
|
+
* Map an agent's AI Agent Configuration presets into the composer's generic
|
|
345
|
+
* `MentionSuggestionPreset` shape so the chip's preset picker works without the
|
|
346
|
+
* composer knowing anything about agents.
|
|
347
|
+
*
|
|
348
|
+
* IMPORTANT: preset.ID is the AIAgentConfiguration.ID (preset ID), not
|
|
349
|
+
* AIConfigurationID — the backend mapping converts preset ID -> AIConfigurationID.
|
|
350
|
+
*/
|
|
351
|
+
getAgentPresets(agentId) {
|
|
352
|
+
try {
|
|
353
|
+
const presets = AIEngineBase.Instance.GetAgentConfigurationPresets(agentId, true);
|
|
354
|
+
if (!presets || presets.length === 0) {
|
|
355
|
+
return undefined;
|
|
356
|
+
}
|
|
357
|
+
return presets.map(p => ({
|
|
358
|
+
ID: p.ID,
|
|
359
|
+
Name: p.Name,
|
|
360
|
+
DisplayName: p.DisplayName || undefined,
|
|
361
|
+
Description: p.Description || undefined,
|
|
362
|
+
IsDefault: p.IsDefault
|
|
363
|
+
}));
|
|
364
|
+
}
|
|
365
|
+
catch {
|
|
366
|
+
// Presets are a chip nicety — never let them break suggestion building
|
|
367
|
+
return undefined;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
323
370
|
/**
|
|
324
371
|
* Get icon for agent based on type/name
|
|
325
372
|
*/
|
|
@@ -380,13 +427,5 @@ export class MentionAutocompleteService {
|
|
|
380
427
|
this.initializationPromise = null;
|
|
381
428
|
await this.initialize(currentUser);
|
|
382
429
|
}
|
|
383
|
-
static ɵfac = function MentionAutocompleteService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MentionAutocompleteService)(); };
|
|
384
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MentionAutocompleteService, factory: MentionAutocompleteService.ɵfac, providedIn: 'root' });
|
|
385
430
|
}
|
|
386
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MentionAutocompleteService, [{
|
|
387
|
-
type: Injectable,
|
|
388
|
-
args: [{
|
|
389
|
-
providedIn: 'root'
|
|
390
|
-
}]
|
|
391
|
-
}], () => [], null); })();
|
|
392
431
|
//# sourceMappingURL=mention-autocomplete.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mention-autocomplete.service.js","sourceRoot":"","sources":["../../../src/lib/services/mention-autocomplete.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAY,QAAQ,EAA4C,MAAM,sBAAsB,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;;AAiBhH;;GAEG;AAIH,MAAM,OAAO,0BAA0B;IAC7B,WAAW,GAA8B,EAAE,CAAC;IAC5C,UAAU,GAAe,EAAE,CAAC;IAC5B,aAAa,GAAiB,EAAE,CAAC;IACjC,YAAY,GAAgB,EAAE,CAAC;IACvC,+EAA+E;IACvE,WAAW,GAAsB,EAAE,CAAC;IAC5C,6DAA6D;IACrD,gBAAgB,GAAG,iCAAiC,CAAC;IAC7D,kFAAkF;IAC1E,iBAAiB,GAAG,sBAAsB,CAAC;IAC3C,aAAa,GAAG,KAAK,CAAC;IACtB,qBAAqB,GAAyB,IAAI,CAAC;IAE3D,gBAAe,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,UAAU,CAAC,WAAqB,EAAE,QAA4B;QAClE,6CAA6C;QAC7C,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,gDAAgD;QAChD,IAAI,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAC/B,OAAO,IAAI,CAAC,qBAAqB,CAAC;QACpC,CAAC;QAED,6CAA6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C,UAAU,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;oHAtZU,0BAA0B;gEAA1B,0BAA0B,WAA1B,0BAA0B,mBAFzB,MAAM;;iFAEP,0BAA0B;cAHtC,UAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB","sourcesContent":["import { Injectable } from '@angular/core';\nimport { MJAIAgentEntityExtended } from '@memberjunction/ai-core-plus';\nimport { MJAISkillEntity } from '@memberjunction/core-entities';\nimport { UserInfo, Metadata, EntityInfo, QueryInfo, IMetadataProvider } from '@memberjunction/core';\nimport { AIEngineBase, AIAgentPermissionHelper, AISkillPermissionHelper } from '@memberjunction/ai-engine-base';\n\n/**\n * Item in the autocomplete dropdown\n */\nexport interface MentionSuggestion {\n type: 'agent' | 'user' | 'entity' | 'query' | 'skill';\n id: string;\n name: string;\n displayName: string;\n description?: string;\n avatarUrl?: string; // Deprecated, use imageUrl\n imageUrl?: string; // For agent LogoURL or user avatar\n icon?: string; // FontAwesome class for agents, entities, queries, and skills\n color?: string; // Accent color (skills use AISkill.Color for their chip/badge)\n}\n\n/**\n * Service for autocomplete suggestions when typing @mentions\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class MentionAutocompleteService {\n private agentsCache: MJAIAgentEntityExtended[] = [];\n private usersCache: UserInfo[] = [];\n private entitiesCache: EntityInfo[] = [];\n private queriesCache: QueryInfo[] = [];\n /** Active skills the current user can Run — surfaced under the '/' trigger. */\n private skillsCache: MJAISkillEntity[] = [];\n /** Default icon for a skill with no IconClass of its own. */\n private defaultSkillIcon = 'fa-solid fa-wand-magic-sparkles';\n /** Generic icon for all query mentions, sourced from the 'MJ: Queries' entity. */\n private queriesEntityIcon = 'fa-solid fa-database';\n private isInitialized = false;\n private initializationPromise: Promise<void> | null = null;\n\n constructor() {}\n\n /**\n * Initialize the service by loading agents and users\n * Prevents concurrent initialization with promise lock\n */\n async initialize(currentUser: UserInfo, provider?: IMetadataProvider): Promise<void> {\n // If already initialized, return immediately\n if (this.isInitialized) {\n return;\n }\n\n // If initialization is in progress, wait for it\n if (this.initializationPromise) {\n return this.initializationPromise;\n }\n\n // Create initialization promise and store it\n this.initializationPromise = this._initializeInternal(currentUser, provider);\n\n try {\n await this.initializationPromise;\n } finally {\n this.initializationPromise = null;\n }\n }\n\n /**\n * Internal initialization logic\n */\n private async _initializeInternal(currentUser: UserInfo, provider?: IMetadataProvider): Promise<void> {\n try {\n // Load agents from AIEngineBase\n await AIEngineBase.Instance.Config(false);\n\n const allAgents = AIEngineBase.Instance.Agents || [];\n\n // Filter by status, hierarchy, and invocation mode first\n const candidateAgents = allAgents.filter(\n a => !a.ParentID && a.Status === 'Active' && a.InvocationMode !== 'Sub-Agent' && !a.IsRestricted\n );\n\n // Filter by user's 'run' permission — respects open-by-default + explicit permissions\n this.agentsCache = await this.filterAgentsByRunPermission(candidateAgents, currentUser);\n\n // Load users from the system (optional - can be expanded later)\n // For now, we'll just use the current user\n this.usersCache = [currentUser];\n\n // Load entities the current user can read (candidates for #entity mentions)\n this.entitiesCache = this.loadReadableEntities(currentUser, provider);\n\n // Load queries the current user can run (also surfaced under the '#' trigger)\n this.queriesCache = this.loadRunnableQueries(currentUser, provider);\n this.queriesEntityIcon = this.resolveQueriesEntityIcon(provider);\n\n // Load Active skills the current user can Run (surfaced under the '/' trigger). Mirrors the\n // agent filter: open-by-default unless a skill has explicit permission rows. The agent's\n // AcceptsSkills gate is applied server-side at run time, so the picker shows the user's full\n // run-permitted set regardless of which agent ends up handling the message.\n this.skillsCache = await this.filterSkillsByRunPermission(currentUser);\n\n this.isInitialized = true;\n } catch (error) {\n console.error('Failed to initialize MentionAutocompleteService:', error);\n throw error;\n }\n }\n\n /**\n * Filter agents to only those the current user has 'run' permission for.\n * Agents with no permission records are open to everyone (canRun = true).\n * Agents with explicit permission records are checked against the user.\n */\n private async filterAgentsByRunPermission(\n agents: MJAIAgentEntityExtended[],\n user: UserInfo\n ): Promise<MJAIAgentEntityExtended[]> {\n const permitted: MJAIAgentEntityExtended[] = [];\n for (const agent of agents) {\n try {\n const canRun = await AIAgentPermissionHelper.HasPermission(agent.ID, user, 'run');\n if (canRun) {\n permitted.push(agent);\n }\n } catch {\n // Fail closed — exclude agent on error\n }\n }\n return permitted;\n }\n\n /**\n * Filter Active skills to those the current user has 'run' permission for.\n * Skills with no permission records are open to everyone (canRun = true);\n * skills with explicit records are checked against the user (open-by-default).\n */\n private async filterSkillsByRunPermission(user: UserInfo): Promise<MJAISkillEntity[]> {\n try {\n const runnable = await AISkillPermissionHelper.GetAccessibleSkills(user, 'run');\n return runnable.filter(s => s.Status === 'Active');\n } catch {\n // Fail closed — no skills on error.\n return [];\n }\n }\n\n /**\n * Load entities the current user has read permission for.\n * These are the candidates surfaced for #entity mentions.\n */\n private loadReadableEntities(user: UserInfo, provider?: IMetadataProvider): EntityInfo[] {\n try {\n const md = provider ?? new Metadata();\n return (md.Entities || []).filter(entity => {\n try {\n return entity.GetUserPermisions(user).CanRead;\n } catch {\n // Fail closed — exclude entity on permission-check error\n return false;\n }\n });\n } catch (error) {\n console.error('Failed to load entities for mention autocomplete:', error);\n return [];\n }\n }\n\n /**\n * Load queries the current user has run permission for.\n * These are the candidates surfaced for #query mentions.\n */\n private loadRunnableQueries(user: UserInfo, provider?: IMetadataProvider): QueryInfo[] {\n try {\n const md = provider ?? new Metadata();\n return (md.Queries || []).filter(query => {\n try {\n return query.UserCanRun(user);\n } catch {\n // Fail closed — exclude query on permission-check error\n return false;\n }\n });\n } catch (error) {\n console.error('Failed to load queries for mention autocomplete:', error);\n return [];\n }\n }\n\n /**\n * Resolve the generic icon used for all query mentions from the 'MJ: Queries' entity.\n */\n private resolveQueriesEntityIcon(provider?: IMetadataProvider): string {\n try {\n const md = provider ?? new Metadata();\n return md.EntityByName('MJ: Queries')?.Icon || 'fa-solid fa-database';\n } catch {\n return 'fa-solid fa-database';\n }\n }\n\n /**\n * Get suggestions based on search query\n * @param query The search text after @ symbol\n * @param includeUsers Whether to include users in suggestions\n * @returns Filtered and ranked suggestions\n */\n getSuggestions(query: string, includeUsers: boolean = true, trigger: string = '@'): MentionSuggestion[] {\n // The '#' trigger searches entities + queries; '/' searches skills; '@' searches agents + users\n if (trigger === '#') {\n return this.getEntityAndQuerySuggestions(query);\n }\n if (trigger === '/') {\n return this.getSkillSuggestions(query);\n }\n\n const lowerQuery = query.toLowerCase().trim();\n const suggestions: MentionSuggestion[] = [];\n\n // Add agent suggestions\n for (const agent of this.agentsCache) {\n const score = this.calculateMatchScore(agent.Name || '', lowerQuery);\n if (score > 0 || !lowerQuery) {\n suggestions.push({\n type: 'agent',\n id: agent.ID,\n name: agent.Name || 'Unknown',\n displayName: agent.Name || 'Unknown',\n description: agent.Description || undefined,\n imageUrl: agent.LogoURL || undefined, // Agent logo/avatar image\n icon: this.getAgentIcon(agent)\n });\n }\n }\n\n // Add user suggestions (if enabled)\n if (includeUsers) {\n for (const user of this.usersCache) {\n const score = this.calculateMatchScore(user.Name, lowerQuery);\n if (score > 0 || !lowerQuery) {\n suggestions.push({\n type: 'user',\n id: user.ID,\n name: user.Name,\n displayName: user.Name,\n description: user.Email || undefined,\n avatarUrl: undefined // Future: load user avatars\n });\n }\n }\n }\n\n // Sort by relevance: exact match > starts with > contains\n return suggestions.sort((a, b) => {\n const scoreA = this.calculateMatchScore(a.name, lowerQuery);\n const scoreB = this.calculateMatchScore(b.name, lowerQuery);\n if (scoreB !== scoreA) return scoreB - scoreA;\n\n // If scores are equal, sort agents before users\n if (a.type !== b.type) return a.type === 'agent' ? -1 : 1;\n\n // Otherwise alphabetically\n return a.name.localeCompare(b.name);\n });\n }\n\n /**\n * Get entity + query suggestions for #mentions, ranked by query match.\n * Capped to keep the dropdown light (entity/query sets can be large).\n */\n private getEntityAndQuerySuggestions(query: string): MentionSuggestion[] {\n const lowerQuery = query.toLowerCase().trim();\n const MAX_SUGGESTIONS = 12;\n\n const entityItems = this.entitiesCache.map(entity => ({\n label: entity.DisplayNameOrName,\n score: Math.max(\n this.calculateMatchScore(entity.Name || '', lowerQuery),\n this.calculateMatchScore(entity.DisplayName || '', lowerQuery)\n ),\n suggestion: {\n type: 'entity' as const,\n id: entity.ID,\n name: entity.Name,\n displayName: entity.DisplayNameOrName,\n description: entity.Description || undefined,\n icon: entity.Icon || 'fa-solid fa-table'\n }\n }));\n\n const queryItems = this.queriesCache.map(q => ({\n label: q.Name || '',\n score: this.calculateMatchScore(q.Name || '', lowerQuery),\n suggestion: {\n type: 'query' as const,\n id: q.ID,\n name: q.Name || '',\n displayName: q.Name || '',\n description: q.Description || undefined,\n icon: this.queriesEntityIcon\n }\n }));\n\n return [...entityItems, ...queryItems]\n .filter(x => x.score > 0 || !lowerQuery)\n .sort((a, b) => {\n if (b.score !== a.score) return b.score - a.score;\n return a.label.localeCompare(b.label);\n })\n .slice(0, MAX_SUGGESTIONS)\n .map(x => x.suggestion);\n }\n\n /**\n * Get skill suggestions for '/'-mentions, ranked by query match. Each carries the skill's own\n * IconClass/Color (UX metadata) so the dropdown + inserted chip render distinctly per skill.\n */\n private getSkillSuggestions(query: string): MentionSuggestion[] {\n const lowerQuery = query.toLowerCase().trim();\n const MAX_SUGGESTIONS = 12;\n\n return this.skillsCache\n .map(skill => ({\n score: this.calculateMatchScore(skill.Name || '', lowerQuery),\n suggestion: {\n type: 'skill' as const,\n id: skill.ID,\n name: skill.Name || 'Unknown Skill',\n displayName: skill.Name || 'Unknown Skill',\n description: skill.Description || undefined,\n icon: skill.IconClass || this.defaultSkillIcon,\n color: skill.Color || undefined\n }\n }))\n .filter(x => x.score > 0 || !lowerQuery)\n .sort((a, b) => {\n if (b.score !== a.score) return b.score - a.score;\n return a.suggestion.name.localeCompare(b.suggestion.name);\n })\n .slice(0, MAX_SUGGESTIONS)\n .map(x => x.suggestion);\n }\n\n /**\n * Calculate match score for ranking\n * Higher score = better match\n */\n private calculateMatchScore(name: string, query: string): number {\n if (!query) return 1; // Show all if no query\n\n const lowerName = name.toLowerCase();\n const lowerQuery = query.toLowerCase();\n\n // Exact match\n if (lowerName === lowerQuery) return 100;\n\n // Starts with\n if (lowerName.startsWith(lowerQuery)) return 50;\n\n // Contains\n if (lowerName.includes(lowerQuery)) return 25;\n\n // Word boundary match (e.g., \"MA\" matches \"Marketing Agent\")\n const words = lowerName.split(/\\s+/);\n for (const word of words) {\n if (word.startsWith(lowerQuery)) return 40;\n }\n\n return 0; // No match\n }\n\n /**\n * Get icon for agent based on type/name\n */\n private getAgentIcon(agent: MJAIAgentEntityExtended): string {\n // Use agent's icon if available, otherwise default based on type\n if (agent.IconClass) return agent.IconClass;\n\n // Default icons based on agent name patterns\n const name = agent.Name?.toLowerCase() || '';\n if (name.includes('marketing')) return 'fa-megaphone';\n if (name.includes('data') || name.includes('analysis')) return 'fa-chart-line';\n if (name.includes('code') || name.includes('developer')) return 'fa-code';\n if (name.includes('design')) return 'fa-palette';\n if (name.includes('conversation') || name.includes('manager')) return 'fa-comments';\n\n return 'fa-robot'; // Default\n }\n\n /**\n * Get available agents for parsing\n */\n getAvailableAgents(): MJAIAgentEntityExtended[] {\n return this.agentsCache;\n }\n\n /**\n * Get available users for parsing\n */\n getAvailableUsers(): UserInfo[] {\n return this.usersCache;\n }\n\n /**\n * Get available entities for parsing\n */\n getAvailableEntities(): EntityInfo[] {\n return this.entitiesCache;\n }\n\n /**\n * Get available queries for parsing\n */\n getAvailableQueries(): QueryInfo[] {\n return this.queriesCache;\n }\n\n /**\n * Get the generic icon used for all query mentions.\n */\n getQueriesEntityIcon(): string {\n return this.queriesEntityIcon;\n }\n\n /**\n * Refresh the caches\n * Resets initialization state and reloads agents\n */\n async refresh(currentUser: UserInfo): Promise<void> {\n this.isInitialized = false;\n this.initializationPromise = null;\n await this.initialize(currentUser);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"mention-autocomplete.service.js","sourceRoot":"","sources":["../../../src/lib/services/mention-autocomplete.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,QAAQ,EAA4C,MAAM,sBAAsB,CAAC;AACpG,OAAO,EAAE,YAA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;IAC1B,CAAC;IAED;;OAEG;IACH,iBAAiB;QACf,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,oBAAoB;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,mBAAmB;QACjB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,oBAAoB;QAClB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,OAAO,CAAC,WAAqB;QACjC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC;QAClC,MAAM,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;CACF","sourcesContent":["import { MJAIAgentEntityExtended } from '@memberjunction/ai-core-plus';\nimport { MJAISkillEntity } from '@memberjunction/core-entities';\nimport { UserInfo, Metadata, EntityInfo, QueryInfo, IMetadataProvider } from '@memberjunction/core';\nimport { AIEngineBase, AIAgentPermissionHelper, AISkillPermissionHelper } from '@memberjunction/ai-engine-base';\nimport { BaseSingleton } from '@memberjunction/global';\nimport { MentionSuggestion, MentionSuggestionPreset } from '@memberjunction/ng-composer';\n\n/**\n * Shared engine behind the conversations composer plugins (the agent-mentions /\n * record-mentions / skill-commands `ComposerTriggerProvider`s) and the mention-parsing\n * consumers (message routing, saved-message badge rendering). Loads the\n * permission-filtered agent / user / entity / query / skill caches once per session and\n * serves ranked `MentionSuggestion` lists per trigger char.\n *\n * NOT an Angular DI service — it's a `BaseSingleton` engine so the\n * ClassFactory-instantiated trigger providers (which live outside Angular DI) and the\n * Angular components share ONE instance (one cache warm-up) via\n * `MentionAutocompleteService.Instance`.\n */\nexport class MentionAutocompleteService extends BaseSingleton<MentionAutocompleteService> {\n protected constructor() {\n super();\n }\n\n /** The process-wide shared instance (Global Object Store backed). */\n public static get Instance(): MentionAutocompleteService {\n return super.getInstance<MentionAutocompleteService>();\n }\n\n private agentsCache: MJAIAgentEntityExtended[] = [];\n private usersCache: UserInfo[] = [];\n private entitiesCache: EntityInfo[] = [];\n private queriesCache: QueryInfo[] = [];\n /** Active skills the current user can Run — surfaced under the '/' trigger. */\n private skillsCache: MJAISkillEntity[] = [];\n /** Default icon for a skill with no IconClass of its own. */\n private defaultSkillIcon = 'fa-solid fa-wand-magic-sparkles';\n /** Generic icon for all query mentions, sourced from the 'MJ: Queries' entity. */\n private queriesEntityIcon = 'fa-solid fa-database';\n private isInitialized = false;\n private initializationPromise: Promise<void> | null = null;\n\n /** True once the caches have loaded (agents/users/entities/queries/skills). */\n public get IsInitialized(): boolean {\n return this.isInitialized;\n }\n\n /**\n * Initialize the service by loading agents and users\n * Prevents concurrent initialization with promise lock\n */\n async initialize(currentUser: UserInfo, provider?: IMetadataProvider): Promise<void> {\n // If already initialized, return immediately\n if (this.isInitialized) {\n return;\n }\n\n // If initialization is in progress, wait for it\n if (this.initializationPromise) {\n return this.initializationPromise;\n }\n\n // Create initialization promise and store it\n this.initializationPromise = this._initializeInternal(currentUser, provider);\n\n try {\n await this.initializationPromise;\n } finally {\n this.initializationPromise = null;\n }\n }\n\n /**\n * Internal initialization logic\n */\n private async _initializeInternal(currentUser: UserInfo, provider?: IMetadataProvider): Promise<void> {\n try {\n // Load agents from AIEngineBase\n await AIEngineBase.Instance.Config(false);\n\n const allAgents = AIEngineBase.Instance.Agents || [];\n\n // Filter by status, hierarchy, and invocation mode first\n const candidateAgents = allAgents.filter(\n a => !a.ParentID && a.Status === 'Active' && a.InvocationMode !== 'Sub-Agent' && !a.IsRestricted\n );\n\n // Filter by user's 'run' permission — respects open-by-default + explicit permissions\n this.agentsCache = await this.filterAgentsByRunPermission(candidateAgents, currentUser);\n\n // Load users from the system (optional - can be expanded later)\n // For now, we'll just use the current user\n this.usersCache = [currentUser];\n\n // Load entities the current user can read (candidates for #entity mentions)\n this.entitiesCache = this.loadReadableEntities(currentUser, provider);\n\n // Load queries the current user can run (also surfaced under the '#' trigger)\n this.queriesCache = this.loadRunnableQueries(currentUser, provider);\n this.queriesEntityIcon = this.resolveQueriesEntityIcon(provider);\n\n // Load Active skills the current user can Run (surfaced under the '/' trigger). Mirrors the\n // agent filter: open-by-default unless a skill has explicit permission rows. The agent's\n // AcceptsSkills gate is applied server-side at run time, so the picker shows the user's full\n // run-permitted set regardless of which agent ends up handling the message.\n this.skillsCache = await this.filterSkillsByRunPermission(currentUser);\n\n this.isInitialized = true;\n } catch (error) {\n console.error('Failed to initialize MentionAutocompleteService:', error);\n throw error;\n }\n }\n\n /**\n * Filter agents to only those the current user has 'run' permission for.\n * Agents with no permission records are open to everyone (canRun = true).\n * Agents with explicit permission records are checked against the user.\n */\n private async filterAgentsByRunPermission(\n agents: MJAIAgentEntityExtended[],\n user: UserInfo\n ): Promise<MJAIAgentEntityExtended[]> {\n const permitted: MJAIAgentEntityExtended[] = [];\n for (const agent of agents) {\n try {\n const canRun = await AIAgentPermissionHelper.HasPermission(agent.ID, user, 'run');\n if (canRun) {\n permitted.push(agent);\n }\n } catch {\n // Fail closed — exclude agent on error\n }\n }\n return permitted;\n }\n\n /**\n * Filter Active skills to those the current user has 'run' permission for.\n * Skills with no permission records are open to everyone (canRun = true);\n * skills with explicit records are checked against the user (open-by-default).\n */\n private async filterSkillsByRunPermission(user: UserInfo): Promise<MJAISkillEntity[]> {\n try {\n const runnable = await AISkillPermissionHelper.GetAccessibleSkills(user, 'run');\n return runnable.filter(s => s.Status === 'Active');\n } catch {\n // Fail closed — no skills on error.\n return [];\n }\n }\n\n /**\n * Load entities the current user has read permission for.\n * These are the candidates surfaced for #entity mentions.\n */\n private loadReadableEntities(user: UserInfo, provider?: IMetadataProvider): EntityInfo[] {\n try {\n const md = provider ?? new Metadata();\n return (md.Entities || []).filter(entity => {\n try {\n return entity.GetUserPermisions(user).CanRead;\n } catch {\n // Fail closed — exclude entity on permission-check error\n return false;\n }\n });\n } catch (error) {\n console.error('Failed to load entities for mention autocomplete:', error);\n return [];\n }\n }\n\n /**\n * Load queries the current user has run permission for.\n * These are the candidates surfaced for #query mentions.\n */\n private loadRunnableQueries(user: UserInfo, provider?: IMetadataProvider): QueryInfo[] {\n try {\n const md = provider ?? new Metadata();\n return (md.Queries || []).filter(query => {\n try {\n return query.UserCanRun(user);\n } catch {\n // Fail closed — exclude query on permission-check error\n return false;\n }\n });\n } catch (error) {\n console.error('Failed to load queries for mention autocomplete:', error);\n return [];\n }\n }\n\n /**\n * Resolve the generic icon used for all query mentions from the 'MJ: Queries' entity.\n */\n private resolveQueriesEntityIcon(provider?: IMetadataProvider): string {\n try {\n const md = provider ?? new Metadata();\n return md.EntityByName('MJ: Queries')?.Icon || 'fa-solid fa-database';\n } catch {\n return 'fa-solid fa-database';\n }\n }\n\n /**\n * Get suggestions based on search query\n * @param query The search text after @ symbol\n * @param includeUsers Whether to include users in suggestions\n * @returns Filtered and ranked suggestions\n */\n getSuggestions(query: string, includeUsers: boolean = true, trigger: string = '@'): MentionSuggestion[] {\n // The '#' trigger searches entities + queries; '/' searches skills; '@' searches agents + users\n if (trigger === '#') {\n return this.getEntityAndQuerySuggestions(query);\n }\n if (trigger === '/') {\n return this.getSkillSuggestions(query);\n }\n\n const lowerQuery = query.toLowerCase().trim();\n const suggestions: MentionSuggestion[] = [];\n\n // Add agent suggestions\n for (const agent of this.agentsCache) {\n const score = this.calculateMatchScore(agent.Name || '', lowerQuery);\n if (score > 0 || !lowerQuery) {\n suggestions.push({\n type: 'agent',\n id: agent.ID,\n name: agent.Name || 'Unknown',\n displayName: agent.Name || 'Unknown',\n description: agent.Description || undefined,\n imageUrl: agent.LogoURL || undefined, // Agent logo/avatar image\n icon: this.getAgentIcon(agent),\n // Configuration presets ride on the suggestion — the (AI-blind) composer\n // renders a preset picker on the inserted chip when there are 2+.\n presets: this.getAgentPresets(agent.ID)\n });\n }\n }\n\n // Add user suggestions (if enabled)\n if (includeUsers) {\n for (const user of this.usersCache) {\n const score = this.calculateMatchScore(user.Name, lowerQuery);\n if (score > 0 || !lowerQuery) {\n suggestions.push({\n type: 'user',\n id: user.ID,\n name: user.Name,\n displayName: user.Name,\n description: user.Email || undefined\n });\n }\n }\n }\n\n // Sort by relevance: exact match > starts with > contains\n return suggestions.sort((a, b) => {\n const scoreA = this.calculateMatchScore(a.name, lowerQuery);\n const scoreB = this.calculateMatchScore(b.name, lowerQuery);\n if (scoreB !== scoreA) return scoreB - scoreA;\n\n // If scores are equal, sort agents before users\n if (a.type !== b.type) return a.type === 'agent' ? -1 : 1;\n\n // Otherwise alphabetically\n return a.name.localeCompare(b.name);\n });\n }\n\n /**\n * Get entity + query suggestions for #mentions, ranked by query match.\n * Capped to keep the dropdown light (entity/query sets can be large).\n */\n private getEntityAndQuerySuggestions(query: string): MentionSuggestion[] {\n const lowerQuery = query.toLowerCase().trim();\n const MAX_SUGGESTIONS = 12;\n\n const entityItems = this.entitiesCache.map(entity => ({\n label: entity.DisplayNameOrName,\n score: Math.max(\n this.calculateMatchScore(entity.Name || '', lowerQuery),\n this.calculateMatchScore(entity.DisplayName || '', lowerQuery)\n ),\n suggestion: {\n type: 'entity' as const,\n id: entity.ID,\n name: entity.Name,\n displayName: entity.DisplayNameOrName,\n description: entity.Description || undefined,\n icon: entity.Icon || 'fa-solid fa-table'\n }\n }));\n\n const queryItems = this.queriesCache.map(q => ({\n label: q.Name || '',\n score: this.calculateMatchScore(q.Name || '', lowerQuery),\n suggestion: {\n type: 'query' as const,\n id: q.ID,\n name: q.Name || '',\n displayName: q.Name || '',\n description: q.Description || undefined,\n icon: this.queriesEntityIcon\n }\n }));\n\n return [...entityItems, ...queryItems]\n .filter(x => x.score > 0 || !lowerQuery)\n .sort((a, b) => {\n if (b.score !== a.score) return b.score - a.score;\n return a.label.localeCompare(b.label);\n })\n .slice(0, MAX_SUGGESTIONS)\n .map(x => x.suggestion);\n }\n\n /**\n * Get skill suggestions for '/'-mentions, ranked by query match. Each carries the skill's own\n * IconClass/Color (UX metadata) so the dropdown + inserted chip render distinctly per skill.\n */\n private getSkillSuggestions(query: string): MentionSuggestion[] {\n const lowerQuery = query.toLowerCase().trim();\n const MAX_SUGGESTIONS = 12;\n\n return this.skillsCache\n .map(skill => ({\n score: this.calculateMatchScore(skill.Name || '', lowerQuery),\n suggestion: {\n type: 'skill' as const,\n id: skill.ID,\n name: skill.Name || 'Unknown Skill',\n displayName: skill.Name || 'Unknown Skill',\n description: skill.Description || undefined,\n icon: skill.IconClass || this.defaultSkillIcon,\n color: skill.Color || undefined\n }\n }))\n .filter(x => x.score > 0 || !lowerQuery)\n .sort((a, b) => {\n if (b.score !== a.score) return b.score - a.score;\n return a.suggestion.name.localeCompare(b.suggestion.name);\n })\n .slice(0, MAX_SUGGESTIONS)\n .map(x => x.suggestion);\n }\n\n /**\n * Calculate match score for ranking\n * Higher score = better match\n */\n private calculateMatchScore(name: string, query: string): number {\n if (!query) return 1; // Show all if no query\n\n const lowerName = name.toLowerCase();\n const lowerQuery = query.toLowerCase();\n\n // Exact match\n if (lowerName === lowerQuery) return 100;\n\n // Starts with\n if (lowerName.startsWith(lowerQuery)) return 50;\n\n // Contains\n if (lowerName.includes(lowerQuery)) return 25;\n\n // Word boundary match (e.g., \"MA\" matches \"Marketing Agent\")\n const words = lowerName.split(/\\s+/);\n for (const word of words) {\n if (word.startsWith(lowerQuery)) return 40;\n }\n\n return 0; // No match\n }\n\n /**\n * Map an agent's AI Agent Configuration presets into the composer's generic\n * `MentionSuggestionPreset` shape so the chip's preset picker works without the\n * composer knowing anything about agents.\n *\n * IMPORTANT: preset.ID is the AIAgentConfiguration.ID (preset ID), not\n * AIConfigurationID — the backend mapping converts preset ID -> AIConfigurationID.\n */\n private getAgentPresets(agentId: string): MentionSuggestionPreset[] | undefined {\n try {\n const presets = AIEngineBase.Instance.GetAgentConfigurationPresets(agentId, true);\n if (!presets || presets.length === 0) {\n return undefined;\n }\n return presets.map(p => ({\n ID: p.ID,\n Name: p.Name,\n DisplayName: p.DisplayName || undefined,\n Description: p.Description || undefined,\n IsDefault: p.IsDefault\n }));\n } catch {\n // Presets are a chip nicety — never let them break suggestion building\n return undefined;\n }\n }\n\n /**\n * Get icon for agent based on type/name\n */\n private getAgentIcon(agent: MJAIAgentEntityExtended): string {\n // Use agent's icon if available, otherwise default based on type\n if (agent.IconClass) return agent.IconClass;\n\n // Default icons based on agent name patterns\n const name = agent.Name?.toLowerCase() || '';\n if (name.includes('marketing')) return 'fa-megaphone';\n if (name.includes('data') || name.includes('analysis')) return 'fa-chart-line';\n if (name.includes('code') || name.includes('developer')) return 'fa-code';\n if (name.includes('design')) return 'fa-palette';\n if (name.includes('conversation') || name.includes('manager')) return 'fa-comments';\n\n return 'fa-robot'; // Default\n }\n\n /**\n * Get available agents for parsing\n */\n getAvailableAgents(): MJAIAgentEntityExtended[] {\n return this.agentsCache;\n }\n\n /**\n * Get available users for parsing\n */\n getAvailableUsers(): UserInfo[] {\n return this.usersCache;\n }\n\n /**\n * Get available entities for parsing\n */\n getAvailableEntities(): EntityInfo[] {\n return this.entitiesCache;\n }\n\n /**\n * Get available queries for parsing\n */\n getAvailableQueries(): QueryInfo[] {\n return this.queriesCache;\n }\n\n /**\n * Get the generic icon used for all query mentions.\n */\n getQueriesEntityIcon(): string {\n return this.queriesEntityIcon;\n }\n\n /**\n * Refresh the caches\n * Resets initialization state and reloads agents\n */\n async refresh(currentUser: UserInfo): Promise<void> {\n this.isInitialized = false;\n this.initializationPromise = null;\n await this.initialize(currentUser);\n }\n}\n"]}
|
package/dist/public-api.d.ts
CHANGED
|
@@ -31,16 +31,20 @@ export * from './lib/services/delegation-result-parser';
|
|
|
31
31
|
export * from './lib/components/workspace/conversation-workspace.component';
|
|
32
32
|
export * from './lib/components/navigation/conversation-navigation.component';
|
|
33
33
|
export * from './lib/components/sidebar/conversation-sidebar.component';
|
|
34
|
+
export * from './lib/components/sidebar/routines-section.component';
|
|
34
35
|
export * from './lib/components/conversation/conversation-list.component';
|
|
35
36
|
export * from './lib/components/conversation/conversation-chat-area.component';
|
|
36
37
|
export * from './lib/components/conversation/conversation-empty-state.component';
|
|
37
38
|
export * from './lib/components/message/message-item.component';
|
|
38
39
|
export * from './lib/components/message/message-list.component';
|
|
39
40
|
export * from './lib/components/message/message-input.component';
|
|
40
|
-
export * from './lib/components/
|
|
41
|
+
export * from './lib/components/composer/ai-composer.component';
|
|
42
|
+
export * from './lib/composer-plugins/base-conversation-mention.provider';
|
|
43
|
+
export * from './lib/composer-plugins/agent-mention.provider';
|
|
44
|
+
export * from './lib/composer-plugins/record-mention.provider';
|
|
45
|
+
export * from './lib/composer-plugins/skill-command.provider';
|
|
46
|
+
export * from './lib/composer-plugins/load-composer-plugins';
|
|
41
47
|
export * from './lib/components/message/conversation-message-rating.component';
|
|
42
|
-
export * from './lib/components/mention/mention-dropdown.component';
|
|
43
|
-
export * from './lib/components/mention/mention-editor.component';
|
|
44
48
|
export * from './lib/components/collection/collection-tree.component';
|
|
45
49
|
export * from './lib/components/collection/collection-view.component';
|
|
46
50
|
export * from './lib/components/collection/collections-full-view.component';
|
|
@@ -62,6 +66,22 @@ export * from './lib/components/toast/toast.component';
|
|
|
62
66
|
export * from './lib/components/global-tasks/global-tasks-panel.component';
|
|
63
67
|
export * from './lib/components/attachment/image-viewer.component';
|
|
64
68
|
export * from './lib/components/overlay/chat-overlay.component';
|
|
69
|
+
export * from './lib/components/collection/artifact-create-modal.component';
|
|
70
|
+
export * from './lib/components/collection/collection-form-modal.component';
|
|
71
|
+
export * from './lib/components/conversation/conversation-agent-picker.component';
|
|
72
|
+
export * from './lib/components/conversation/conversation-mode-picker.component';
|
|
73
|
+
export * from './lib/components/conversation/pinned-messages-panel.component';
|
|
74
|
+
export * from './lib/components/dialogs/input-dialog.component';
|
|
75
|
+
export * from './lib/components/dialogs/rating-dialog.component';
|
|
76
|
+
export * from './lib/components/export/export-modal.component';
|
|
77
|
+
export * from './lib/components/library/library-full-view.component';
|
|
78
|
+
export * from './lib/components/members/members-modal.component';
|
|
79
|
+
export * from './lib/components/message/actionable-commands.component';
|
|
80
|
+
export * from './lib/components/search/search-panel.component';
|
|
81
|
+
export * from './lib/components/shared/user-picker.component';
|
|
82
|
+
export * from './lib/components/tasks/tasks-dropdown.component';
|
|
83
|
+
export * from './lib/components/thread/thread-panel.component';
|
|
84
|
+
export * from './lib/directives/search-shortcut.directive';
|
|
65
85
|
export * from './lib/services/conversations-runtime-bootstrap.service';
|
|
66
86
|
export * from './lib/directives/chat-slot.directive';
|
|
67
87
|
export * from './lib/components/slots/slot-interfaces';
|
package/dist/public-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAKA,cAAc,4BAA4B,CAAC;AAG3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AAGtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAKA,cAAc,4BAA4B,CAAC;AAG3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AAGtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,c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C7E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uDAAuD,CAAC;AACtE,cAAc,wDAAwD,CAAC;AACvE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,uDAAuD,CAAC;AACtE,cAAc,4DAA4D,CAAC;AAE3E,cAAc,oEAAoE,CAAC;AACnF,cAAc,uCAAuC,CAAC;AAEtD,cAAc,iEAAiE,CAAC;AAChF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,oEAAoE,CAAC;AACnF,cAAc,uEAAuE,CAAC;AAItF,cAAc,yDAAyD,CAAC;AACxE,cAAc,2EAA2E,CAAC;AAE1F,cAAc,iEAAiE,CAAC;AAChF,cAAc,2EAA2E,CAAC;AAC1F,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sEAAsE,CAAC;AAErF,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qDAAqD,CAAC;AACpE,cAAc,qDAAqD,CAAC;AACpE,cAAc,kEAAkE,CAAC;AAEjF,cAAc,kFAAkF,CAAC"}
|
package/dist/public-api.js
CHANGED
|
@@ -20,6 +20,9 @@ export * from './lib/services/export.service';
|
|
|
20
20
|
export * from './lib/services/notification.service';
|
|
21
21
|
export * from './lib/services/toast.service';
|
|
22
22
|
export * from './lib/services/mention-parser.service';
|
|
23
|
+
// AI-aware mention suggestion engine (BaseSingleton — use MentionAutocompleteService.Instance).
|
|
24
|
+
// NOTE: the generic MentionSuggestion TYPE lives in @memberjunction/ng-composer — import it
|
|
25
|
+
// from there directly (no re-exports between packages).
|
|
23
26
|
export * from './lib/services/mention-autocomplete.service';
|
|
24
27
|
export * from './lib/services/collection-permission.service';
|
|
25
28
|
export * from './lib/services/artifact-permission.service';
|
|
@@ -38,16 +41,26 @@ export * from './lib/services/delegation-result-parser';
|
|
|
38
41
|
export * from './lib/components/workspace/conversation-workspace.component';
|
|
39
42
|
export * from './lib/components/navigation/conversation-navigation.component';
|
|
40
43
|
export * from './lib/components/sidebar/conversation-sidebar.component';
|
|
44
|
+
export * from './lib/components/sidebar/routines-section.component';
|
|
41
45
|
export * from './lib/components/conversation/conversation-list.component';
|
|
42
46
|
export * from './lib/components/conversation/conversation-chat-area.component';
|
|
43
47
|
export * from './lib/components/conversation/conversation-empty-state.component';
|
|
44
48
|
export * from './lib/components/message/message-item.component';
|
|
45
49
|
export * from './lib/components/message/message-list.component';
|
|
46
50
|
export * from './lib/components/message/message-input.component';
|
|
47
|
-
|
|
51
|
+
// AI-aware composer wrapper (mj-ai-composer): mj-message-input-box + the three AI trigger
|
|
52
|
+
// plugins built in, proxying the input box's full inputs/outputs/methods surface.
|
|
53
|
+
export * from './lib/components/composer/ai-composer.component';
|
|
54
|
+
// Composer trigger-provider plugins ('@' / '#' / '/') — ClassFactory-registered; also
|
|
55
|
+
// directly instantiable for explicit provider lists.
|
|
56
|
+
export * from './lib/composer-plugins/base-conversation-mention.provider';
|
|
57
|
+
export * from './lib/composer-plugins/agent-mention.provider';
|
|
58
|
+
export * from './lib/composer-plugins/record-mention.provider';
|
|
59
|
+
export * from './lib/composer-plugins/skill-command.provider';
|
|
60
|
+
export * from './lib/composer-plugins/load-composer-plugins';
|
|
61
|
+
// NOTE: MessageInputBoxComponent, MentionEditorComponent (+ PendingAttachment), and
|
|
62
|
+
// MentionDropdownComponent live in @memberjunction/ng-composer — import from there directly.
|
|
48
63
|
export * from './lib/components/message/conversation-message-rating.component';
|
|
49
|
-
export * from './lib/components/mention/mention-dropdown.component';
|
|
50
|
-
export * from './lib/components/mention/mention-editor.component';
|
|
51
64
|
export * from './lib/components/collection/collection-tree.component';
|
|
52
65
|
export * from './lib/components/collection/collection-view.component';
|
|
53
66
|
export * from './lib/components/collection/collections-full-view.component';
|
|
@@ -69,6 +82,28 @@ export * from './lib/components/toast/toast.component';
|
|
|
69
82
|
export * from './lib/components/global-tasks/global-tasks-panel.component';
|
|
70
83
|
export * from './lib/components/attachment/image-viewer.component';
|
|
71
84
|
export * from './lib/components/overlay/chat-overlay.component';
|
|
85
|
+
// Components declared AND exported by ConversationsModule but previously missing
|
|
86
|
+
// from public-api. They are used in the templates of exported components (e.g.
|
|
87
|
+
// mj-conversation-chat-area), so a consumer app compiling in Angular's
|
|
88
|
+
// local-compilation / HMR mode fails to build (NG3004: "Unable to import
|
|
89
|
+
// component … not exported from @memberjunction/ng-conversations") unless every
|
|
90
|
+
// module-exported component is importable from the package entry point.
|
|
91
|
+
export * from './lib/components/collection/artifact-create-modal.component';
|
|
92
|
+
export * from './lib/components/collection/collection-form-modal.component';
|
|
93
|
+
export * from './lib/components/conversation/conversation-agent-picker.component';
|
|
94
|
+
export * from './lib/components/conversation/conversation-mode-picker.component';
|
|
95
|
+
export * from './lib/components/conversation/pinned-messages-panel.component';
|
|
96
|
+
export * from './lib/components/dialogs/input-dialog.component';
|
|
97
|
+
export * from './lib/components/dialogs/rating-dialog.component';
|
|
98
|
+
export * from './lib/components/export/export-modal.component';
|
|
99
|
+
export * from './lib/components/library/library-full-view.component';
|
|
100
|
+
export * from './lib/components/members/members-modal.component';
|
|
101
|
+
export * from './lib/components/message/actionable-commands.component';
|
|
102
|
+
export * from './lib/components/search/search-panel.component';
|
|
103
|
+
export * from './lib/components/shared/user-picker.component';
|
|
104
|
+
export * from './lib/components/tasks/tasks-dropdown.component';
|
|
105
|
+
export * from './lib/components/thread/thread-panel.component';
|
|
106
|
+
export * from './lib/directives/search-shortcut.directive';
|
|
72
107
|
// PR 2c — Widget extension surface (slots, events, design tokens)
|
|
73
108
|
export * from './lib/services/conversations-runtime-bootstrap.service';
|
|
74
109
|
export * from './lib/directives/chat-slot.directive';
|
package/dist/public-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,SAAS;AACT,cAAc,4BAA4B,CAAC;AAE3C,SAAS;AACT,cAAc,uCAAuC,CAAC;AACtD,c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wFAAwF;AACxF,cAAc,iEAAiE,CAAC;AAChF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,oEAAoE,CAAC;AACnF,cAAc,uEAAuE,CAAC;AACtF,0FAA0F;AAC1F,oFAAoF;AACpF,qFAAqF;AACrF,cAAc,yDAAyD,CAAC;AACxE,cAAc,2EAA2E,CAAC;AAC1F,mGAAmG;AACnG,cAAc,iEAAiE,CAAC;AAChF,cAAc,2EAA2E,CAAC;AAC1F,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sEAAsE,CAAC;AACrF,mGAAmG;AACnG,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qDAAqD,CAAC;AACpE,cAAc,qDAAqD,CAAC;AACpE,cAAc,kEAAkE,CAAC;AACjF,8FAA8F;AAC9F,cAAc,kFAAkF,CAAC","sourcesContent":["/*\n * Public API Surface of @memberjunction/ng-conversations\n */\n\n// Module\nexport * from './lib/conversations.module';\n\n// Models\nexport * from './lib/models/conversation-state.model';\nexport * from './lib/models/notification.model';\nexport * from './lib/models/lazy-artifact-info';\nexport * from './lib/models/navigation-request.model';\n\n// Services - State\nexport * from './lib/services/data-cache.service';\nexport * from './lib/services/artifact-state.service';\nexport * from './lib/services/agent-state.service';\nexport * from './lib/services/conversation-agent.service';\nexport * from './lib/services/active-tasks.service';\nexport * from './lib/services/conversation-streaming.service';\nexport * from './lib/services/dialog.service';\nexport * from './lib/services/export.service';\nexport * from './lib/services/notification.service';\nexport * from './lib/services/toast.service';\nexport * from './lib/services/mention-parser.service';\nexport * from './lib/services/mention-autocomplete.service';\nexport * from './lib/services/collection-permission.service';\nexport * from './lib/services/artifact-permission.service';\nexport * from './lib/services/artifact-use-tracking.service';\nexport * from './lib/services/collection-state.service';\nexport * from './lib/services/conversation-attachment.service';\nexport * from './lib/services/ui-command-handler.service';\nexport * from './lib/services/conversation-bridge.service';\nexport * from './lib/services/realtime-session.service';\nexport * from './lib/services/realtime-pairing';\nexport * from './lib/services/user-authorization';\nexport * from './lib/services/realtime-sessions-adapter';\nexport * from './lib/services/realtime-session-review.service';\nexport * from './lib/services/delegation-result-parser';\n\n// Components\nexport * from './lib/components/workspace/conversation-workspace.component';\nexport * from './lib/components/navigation/conversation-navigation.component';\nexport * from './lib/components/sidebar/conversation-sidebar.component';\nexport * from './lib/components/conversation/conversation-list.component';\nexport * from './lib/components/conversation/conversation-chat-area.component';\nexport * from './lib/components/conversation/conversation-empty-state.component';\nexport * from './lib/components/message/message-item.component';\nexport * from './lib/components/message/message-list.component';\nexport * from './lib/components/message/message-input.component';\nexport * from './lib/components/message/message-input-box.component';\nexport * from './lib/components/message/conversation-message-rating.component';\nexport * from './lib/components/mention/mention-dropdown.component';\nexport * from './lib/components/mention/mention-editor.component';\nexport * from './lib/components/collection/collection-tree.component';\nexport * from './lib/components/collection/collection-view.component';\nexport * from './lib/components/collection/collections-full-view.component';\nexport * from './lib/components/collection/collection-artifact-card.component';\nexport * from './lib/components/collection/artifact-collection-picker-modal.component';\nexport * from './lib/components/collection/collection-share-modal.component';\nexport * from './lib/components/artifact/artifact-share-modal.component';\nexport * from './lib/components/project/project-selector.component';\nexport * from './lib/components/project/project-form-modal.component';\nexport * from './lib/components/task/tasks-full-view.component';\nexport * from './lib/components/tasks/task-widget.component';\nexport * from './lib/components/agent/agent-process-panel.component';\nexport * from './lib/components/agent/active-agent-indicator.component';\nexport * from './lib/components/active-tasks/active-tasks-panel.component';\nexport * from './lib/components/share/share-modal.component';\nexport * from './lib/components/notification/notification-badge.component';\nexport * from './lib/components/notification/activity-indicator.component';\nexport * from './lib/components/toast/toast.component';\nexport * from './lib/components/global-tasks/global-tasks-panel.component';\nexport * from './lib/components/attachment/image-viewer.component';\nexport * from './lib/components/overlay/chat-overlay.component';\n\n// PR 2c — Widget extension surface (slots, events, design tokens)\nexport * from './lib/services/conversations-runtime-bootstrap.service';\nexport * from './lib/directives/chat-slot.directive';\nexport * from './lib/components/slots/slot-interfaces';\nexport * from './lib/components/slots/mj-chat-empty-state-default.component';\nexport * from './lib/components/slots/mj-chat-agent-presence-default.component';\nexport * from './lib/components/slots/mj-chat-header-default.component';\nexport * from './lib/components/slots/mj-chat-message-extra-default.component';\nexport * from './lib/components/slots/mj-chat-demonstration-surface-default.component';\nexport * from './lib/components/slots/mj-chat-message-bubble-default.component';\nexport * from './lib/events/chat-events';\n\n// Realtime / voice (PR #2787 — co-agent realtime sessions)\nexport * from './lib/components/realtime/realtime-agent-picker.component';\n// Real-time \"call mode\" overlay + its componentized parts\nexport * from './lib/components/realtime/realtime-session-overlay.component';\nexport * from './lib/components/realtime/realtime-session-state';\nexport * from './lib/components/realtime/realtime-agent-banner.component';\nexport * from './lib/components/realtime/realtime-session-thread.component';\nexport * from './lib/components/realtime/realtime-delegation-card.component';\nexport * from './lib/components/realtime/realtime-activity-rail.component';\nexport * from './lib/components/realtime/realtime-surface-tabs.component';\nexport * from './lib/components/realtime/realtime-surface-tabs.model';\nexport * from './lib/components/realtime/realtime-surface-panel-prefs';\nexport * from './lib/components/realtime/realtime-disclosure';\nexport * from './lib/components/realtime/realtime-audio-visuals';\nexport * from './lib/components/realtime/realtime-composer.component';\nexport * from './lib/components/realtime/realtime-channel-strip.component';\n// Conversation-timeline collapse of past realtime sessions (one card per session) + its pure grouping pass\nexport * from './lib/components/realtime/realtime-session-timeline-card.component';\nexport * from './lib/utils/realtime-session-timeline';\n// Pluggable interactive-channel contract (registry-resolved client plugins) + pane host\nexport * from './lib/components/realtime/channels/base-realtime-channel-client';\nexport * from './lib/components/realtime/channels/client-context-channel';\nexport * from './lib/components/realtime/channels/realtime-channel-pane.component';\nexport * from './lib/components/realtime/channels/channel-onboarding-panel.component';\n// Live whiteboard channel plugin + artifact viewer (thin consumers of the generic board).\n// NOTE: the whiteboard itself (engine, tools, components, export builders) lives in\n// @memberjunction/ng-whiteboard — import board types/components from there directly.\nexport * from './lib/components/realtime/whiteboard/whiteboard-channel';\nexport * from './lib/components/realtime/whiteboard/whiteboard-artifact-viewer.component';\n// Remote Browser channel plugin (client-direct, server-hosted browser) + its live surface + tools.\nexport * from './lib/components/realtime/remote-browser/remote-browser-channel';\nexport * from './lib/components/realtime/remote-browser/remote-browser-surface.component';\nexport * from './lib/components/realtime/remote-browser/remote-browser-tools';\nexport * from './lib/components/realtime/remote-browser/remote-browser-audio-player';\n// Media channel plugin (Tabs-layout media display surface) + its state engine, tools, and surface.\nexport * from './lib/components/realtime/media/media-channel';\nexport * from './lib/components/realtime/media/media-channel-state';\nexport * from './lib/components/realtime/media/media-channel-tools';\nexport * from './lib/components/realtime/media/realtime-media-surface.component';\n// Time-aligned Evidence Playback component (recorded session audio synced to the transcript).\nexport * from './lib/components/realtime/evidence-playback/realtime-evidence-playback.component';\n"]}
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,SAAS;AACT,cAAc,4BAA4B,CAAC;AAE3C,SAAS;AACT,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AAEtD,mBAAmB;AACnB,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACtD,gGAAgG;AAChG,4FAA4F;AAC5F,wDAAwD;AACxD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2CAA2C,CAAC;AAC1D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AkD,CAAC;AACjE,cAAc,uDAAuD,CAAC;AACtE,cAAc,4DAA4D,CAAC;AAC3E,2GAA2G;AAC3G,cAAc,oEAAoE,CAAC;AACnF,cAAc,uCAAuC,CAAC;AACtD,wFAAwF;AACxF,cAAc,iEAAiE,CAAC;AAChF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,oEAAoE,CAAC;AACnF,cAAc,uEAAuE,CAAC;AACtF,0FAA0F;AAC1F,oFAAoF;AACpF,qFAAqF;AACrF,cAAc,yDAAyD,CAAC;AACxE,cAAc,2EAA2E,CAAC;AAC1F,mGAAmG;AACnG,cAAc,iEAAiE,CAAC;AAChF,cAAc,2EAA2E,CAAC;AAC1F,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sEAAsE,CAAC;AACrF,mGAAmG;AACnG,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qDAAqD,CAAC;AACpE,cAAc,qDAAqD,CAAC;AACpE,cAAc,kEAAkE,CAAC;AACjF,8FAA8F;AAC9F,cAAc,kFAAkF,CAAC","sourcesContent":["/*\n * Public API Surface of @memberjunction/ng-conversations\n */\n\n// Module\nexport * from './lib/conversations.module';\n\n// Models\nexport * from './lib/models/conversation-state.model';\nexport * from './lib/models/notification.model';\nexport * from './lib/models/lazy-artifact-info';\nexport * from './lib/models/navigation-request.model';\n\n// Services - State\nexport * from './lib/services/data-cache.service';\nexport * from './lib/services/artifact-state.service';\nexport * from './lib/services/agent-state.service';\nexport * from './lib/services/conversation-agent.service';\nexport * from './lib/services/active-tasks.service';\nexport * from './lib/services/conversation-streaming.service';\nexport * from './lib/services/dialog.service';\nexport * from './lib/services/export.service';\nexport * from './lib/services/notification.service';\nexport * from './lib/services/toast.service';\nexport * from './lib/services/mention-parser.service';\n// AI-aware mention suggestion engine (BaseSingleton — use MentionAutocompleteService.Instance).\n// NOTE: the generic MentionSuggestion TYPE lives in @memberjunction/ng-composer — import it\n// from there directly (no re-exports between packages).\nexport * from './lib/services/mention-autocomplete.service';\nexport * from './lib/services/collection-permission.service';\nexport * from './lib/services/artifact-permission.service';\nexport * from './lib/services/artifact-use-tracking.service';\nexport * from './lib/services/collection-state.service';\nexport * from './lib/services/conversation-attachment.service';\nexport * from './lib/services/ui-command-handler.service';\nexport * from './lib/services/conversation-bridge.service';\nexport * from './lib/services/realtime-session.service';\nexport * from './lib/services/realtime-pairing';\nexport * from './lib/services/user-authorization';\nexport * from './lib/services/realtime-sessions-adapter';\nexport * from './lib/services/realtime-session-review.service';\nexport * from './lib/services/delegation-result-parser';\n\n// Components\nexport * from './lib/components/workspace/conversation-workspace.component';\nexport * from './lib/components/navigation/conversation-navigation.component';\nexport * from './lib/components/sidebar/conversation-sidebar.component';\nexport * from './lib/components/sidebar/routines-section.component';\nexport * from './lib/components/conversation/conversation-list.component';\nexport * from './lib/components/conversation/conversation-chat-area.component';\nexport * from './lib/components/conversation/conversation-empty-state.component';\nexport * from './lib/components/message/message-item.component';\nexport * from './lib/components/message/message-list.component';\nexport * from './lib/components/message/message-input.component';\n// AI-aware composer wrapper (mj-ai-composer): mj-message-input-box + the three AI trigger\n// plugins built in, proxying the input box's full inputs/outputs/methods surface.\nexport * from './lib/components/composer/ai-composer.component';\n// Composer trigger-provider plugins ('@' / '#' / '/') — ClassFactory-registered; also\n// directly instantiable for explicit provider lists.\nexport * from './lib/composer-plugins/base-conversation-mention.provider';\nexport * from './lib/composer-plugins/agent-mention.provider';\nexport * from './lib/composer-plugins/record-mention.provider';\nexport * from './lib/composer-plugins/skill-command.provider';\nexport * from './lib/composer-plugins/load-composer-plugins';\n// NOTE: MessageInputBoxComponent, MentionEditorComponent (+ PendingAttachment), and\n// MentionDropdownComponent live in @memberjunction/ng-composer — import from there directly.\nexport * from './lib/components/message/conversation-message-rating.component';\nexport * from './lib/components/collection/collection-tree.component';\nexport * from './lib/components/collection/collection-view.component';\nexport * from './lib/components/collection/collections-full-view.component';\nexport * from './lib/components/collection/collection-artifact-card.component';\nexport * from './lib/components/collection/artifact-collection-picker-modal.component';\nexport * from './lib/components/collection/collection-share-modal.component';\nexport * from './lib/components/artifact/artifact-share-modal.component';\nexport * from './lib/components/project/project-selector.component';\nexport * from './lib/components/project/project-form-modal.component';\nexport * from './lib/components/task/tasks-full-view.component';\nexport * from './lib/components/tasks/task-widget.component';\nexport * from './lib/components/agent/agent-process-panel.component';\nexport * from './lib/components/agent/active-agent-indicator.component';\nexport * from './lib/components/active-tasks/active-tasks-panel.component';\nexport * from './lib/components/share/share-modal.component';\nexport * from './lib/components/notification/notification-badge.component';\nexport * from './lib/components/notification/activity-indicator.component';\nexport * from './lib/components/toast/toast.component';\nexport * from './lib/components/global-tasks/global-tasks-panel.component';\nexport * from './lib/components/attachment/image-viewer.component';\nexport * from './lib/components/overlay/chat-overlay.component';\n\n// Components declared AND exported by ConversationsModule but previously missing\n// from public-api. They are used in the templates of exported components (e.g.\n// mj-conversation-chat-area), so a consumer app compiling in Angular's\n// local-compilation / HMR mode fails to build (NG3004: \"Unable to import\n// component … not exported from @memberjunction/ng-conversations\") unless every\n// module-exported component is importable from the package entry point.\nexport * from './lib/components/collection/artifact-create-modal.component';\nexport * from './lib/components/collection/collection-form-modal.component';\nexport * from './lib/components/conversation/conversation-agent-picker.component';\nexport * from './lib/components/conversation/conversation-mode-picker.component';\nexport * from './lib/components/conversation/pinned-messages-panel.component';\nexport * from './lib/components/dialogs/input-dialog.component';\nexport * from './lib/components/dialogs/rating-dialog.component';\nexport * from './lib/components/export/export-modal.component';\nexport * from './lib/components/library/library-full-view.component';\nexport * from './lib/components/members/members-modal.component';\nexport * from './lib/components/message/actionable-commands.component';\nexport * from './lib/components/search/search-panel.component';\nexport * from './lib/components/shared/user-picker.component';\nexport * from './lib/components/tasks/tasks-dropdown.component';\nexport * from './lib/components/thread/thread-panel.component';\nexport * from './lib/directives/search-shortcut.directive';\n\n// PR 2c — Widget extension surface (slots, events, design tokens)\nexport * from './lib/services/conversations-runtime-bootstrap.service';\nexport * from './lib/directives/chat-slot.directive';\nexport * from './lib/components/slots/slot-interfaces';\nexport * from './lib/components/slots/mj-chat-empty-state-default.component';\nexport * from './lib/components/slots/mj-chat-agent-presence-default.component';\nexport * from './lib/components/slots/mj-chat-header-default.component';\nexport * from './lib/components/slots/mj-chat-message-extra-default.component';\nexport * from './lib/components/slots/mj-chat-demonstration-surface-default.component';\nexport * from './lib/components/slots/mj-chat-message-bubble-default.component';\nexport * from './lib/events/chat-events';\n\n// Realtime / voice (PR #2787 — co-agent realtime sessions)\nexport * from './lib/components/realtime/realtime-agent-picker.component';\n// Real-time \"call mode\" overlay + its componentized parts\nexport * from './lib/components/realtime/realtime-session-overlay.component';\nexport * from './lib/components/realtime/realtime-session-state';\nexport * from './lib/components/realtime/realtime-agent-banner.component';\nexport * from './lib/components/realtime/realtime-session-thread.component';\nexport * from './lib/components/realtime/realtime-delegation-card.component';\nexport * from './lib/components/realtime/realtime-activity-rail.component';\nexport * from './lib/components/realtime/realtime-surface-tabs.component';\nexport * from './lib/components/realtime/realtime-surface-tabs.model';\nexport * from './lib/components/realtime/realtime-surface-panel-prefs';\nexport * from './lib/components/realtime/realtime-disclosure';\nexport * from './lib/components/realtime/realtime-audio-visuals';\nexport * from './lib/components/realtime/realtime-composer.component';\nexport * from './lib/components/realtime/realtime-channel-strip.component';\n// Conversation-timeline collapse of past realtime sessions (one card per session) + its pure grouping pass\nexport * from './lib/components/realtime/realtime-session-timeline-card.component';\nexport * from './lib/utils/realtime-session-timeline';\n// Pluggable interactive-channel contract (registry-resolved client plugins) + pane host\nexport * from './lib/components/realtime/channels/base-realtime-channel-client';\nexport * from './lib/components/realtime/channels/client-context-channel';\nexport * from './lib/components/realtime/channels/realtime-channel-pane.component';\nexport * from './lib/components/realtime/channels/channel-onboarding-panel.component';\n// Live whiteboard channel plugin + artifact viewer (thin consumers of the generic board).\n// NOTE: the whiteboard itself (engine, tools, components, export builders) lives in\n// @memberjunction/ng-whiteboard — import board types/components from there directly.\nexport * from './lib/components/realtime/whiteboard/whiteboard-channel';\nexport * from './lib/components/realtime/whiteboard/whiteboard-artifact-viewer.component';\n// Remote Browser channel plugin (client-direct, server-hosted browser) + its live surface + tools.\nexport * from './lib/components/realtime/remote-browser/remote-browser-channel';\nexport * from './lib/components/realtime/remote-browser/remote-browser-surface.component';\nexport * from './lib/components/realtime/remote-browser/remote-browser-tools';\nexport * from './lib/components/realtime/remote-browser/remote-browser-audio-player';\n// Media channel plugin (Tabs-layout media display surface) + its state engine, tools, and surface.\nexport * from './lib/components/realtime/media/media-channel';\nexport * from './lib/components/realtime/media/media-channel-state';\nexport * from './lib/components/realtime/media/media-channel-tools';\nexport * from './lib/components/realtime/media/realtime-media-surface.component';\n// Time-aligned Evidence Playback component (recorded session audio synced to the transcript).\nexport * from './lib/components/realtime/evidence-playback/realtime-evidence-playback.component';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-conversations",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.45.1",
|
|
4
4
|
"description": "MemberJunction: Conversation, Collection, and Artifact management components for any Angular application",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -31,32 +31,34 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@angular/animations": "21.1.3",
|
|
33
33
|
"@angular/cdk": "21.1.3",
|
|
34
|
-
"@memberjunction/ai": "5.
|
|
35
|
-
"@memberjunction/ai-agent-client": "5.
|
|
36
|
-
"@memberjunction/ai-core-plus": "5.
|
|
37
|
-
"@memberjunction/ai-engine-base": "5.
|
|
38
|
-
"@memberjunction/ai-realtime-client": "5.
|
|
39
|
-
"@memberjunction/conversations-runtime": "5.
|
|
40
|
-
"@memberjunction/core": "5.
|
|
41
|
-
"@memberjunction/core-entities": "5.
|
|
42
|
-
"@memberjunction/global": "5.
|
|
43
|
-
"@memberjunction/graphql-dataprovider": "5.
|
|
44
|
-
"@memberjunction/interactive-component-types": "5.
|
|
45
|
-
"@memberjunction/ng-agent-client": "5.
|
|
46
|
-
"@memberjunction/ng-artifacts": "5.
|
|
47
|
-
"@memberjunction/ng-base-types": "5.
|
|
48
|
-
"@memberjunction/ng-code-editor": "5.
|
|
49
|
-
"@memberjunction/ng-
|
|
50
|
-
"@memberjunction/ng-
|
|
51
|
-
"@memberjunction/ng-
|
|
52
|
-
"@memberjunction/ng-
|
|
53
|
-
"@memberjunction/ng-
|
|
54
|
-
"@memberjunction/ng-
|
|
55
|
-
"@memberjunction/ng-
|
|
56
|
-
"@memberjunction/ng-
|
|
57
|
-
"@memberjunction/ng-
|
|
58
|
-
"@memberjunction/ng-
|
|
59
|
-
"@memberjunction/ng-
|
|
34
|
+
"@memberjunction/ai": "5.45.1",
|
|
35
|
+
"@memberjunction/ai-agent-client": "5.45.1",
|
|
36
|
+
"@memberjunction/ai-core-plus": "5.45.1",
|
|
37
|
+
"@memberjunction/ai-engine-base": "5.45.1",
|
|
38
|
+
"@memberjunction/ai-realtime-client": "5.45.1",
|
|
39
|
+
"@memberjunction/conversations-runtime": "5.45.1",
|
|
40
|
+
"@memberjunction/core": "5.45.1",
|
|
41
|
+
"@memberjunction/core-entities": "5.45.1",
|
|
42
|
+
"@memberjunction/global": "5.45.1",
|
|
43
|
+
"@memberjunction/graphql-dataprovider": "5.45.1",
|
|
44
|
+
"@memberjunction/interactive-component-types": "5.45.1",
|
|
45
|
+
"@memberjunction/ng-agent-client": "5.45.1",
|
|
46
|
+
"@memberjunction/ng-artifacts": "5.45.1",
|
|
47
|
+
"@memberjunction/ng-base-types": "5.45.1",
|
|
48
|
+
"@memberjunction/ng-code-editor": "5.45.1",
|
|
49
|
+
"@memberjunction/ng-composer": "5.45.1",
|
|
50
|
+
"@memberjunction/ng-container-directives": "5.45.1",
|
|
51
|
+
"@memberjunction/ng-forms": "5.45.1",
|
|
52
|
+
"@memberjunction/ng-markdown": "5.45.1",
|
|
53
|
+
"@memberjunction/ng-media-player": "5.45.1",
|
|
54
|
+
"@memberjunction/ng-notifications": "5.45.1",
|
|
55
|
+
"@memberjunction/ng-resource-permissions": "5.45.1",
|
|
56
|
+
"@memberjunction/ng-shared-generic": "5.45.1",
|
|
57
|
+
"@memberjunction/ng-tasks": "5.45.1",
|
|
58
|
+
"@memberjunction/ng-testing": "5.45.1",
|
|
59
|
+
"@memberjunction/ng-ui-components": "5.45.1",
|
|
60
|
+
"@memberjunction/ng-user-routines": "5.45.1",
|
|
61
|
+
"@memberjunction/ng-whiteboard": "5.45.1",
|
|
60
62
|
"angular-split": "^20.0.0",
|
|
61
63
|
"rxjs": "^7.8.2",
|
|
62
64
|
"tslib": "^2.8.1"
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MentionSuggestion } from '../../services/mention-autocomplete.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Dropdown component for @mention autocomplete
|
|
6
|
-
*/
|
|
7
|
-
export declare class MentionDropdownComponent implements OnInit, OnDestroy {
|
|
8
|
-
private _suggestions;
|
|
9
|
-
set suggestions(value: MentionSuggestion[]);
|
|
10
|
-
get suggestions(): MentionSuggestion[];
|
|
11
|
-
position: {
|
|
12
|
-
top: number;
|
|
13
|
-
left: number;
|
|
14
|
-
};
|
|
15
|
-
visible: boolean;
|
|
16
|
-
showAbove: boolean;
|
|
17
|
-
useFixedPositioning: boolean;
|
|
18
|
-
suggestionSelected: EventEmitter<MentionSuggestion>;
|
|
19
|
-
closed: EventEmitter<void>;
|
|
20
|
-
selectedIndex: number;
|
|
21
|
-
constructor();
|
|
22
|
-
ngOnInit(): void;
|
|
23
|
-
ngOnDestroy(): void;
|
|
24
|
-
/**
|
|
25
|
-
* Handle keyboard navigation
|
|
26
|
-
*/
|
|
27
|
-
handleKeyDown(event: KeyboardEvent): void;
|
|
28
|
-
/**
|
|
29
|
-
* Select a suggestion
|
|
30
|
-
*/
|
|
31
|
-
selectSuggestion(suggestion: MentionSuggestion): void;
|
|
32
|
-
/**
|
|
33
|
-
* Close the dropdown
|
|
34
|
-
*/
|
|
35
|
-
close(): void;
|
|
36
|
-
/**
|
|
37
|
-
* Scroll to selected item
|
|
38
|
-
*/
|
|
39
|
-
private scrollToSelected;
|
|
40
|
-
/**
|
|
41
|
-
* Track by function for ngFor
|
|
42
|
-
*/
|
|
43
|
-
trackBySuggestion(index: number, item: MentionSuggestion): string;
|
|
44
|
-
/**
|
|
45
|
-
* Get icon classes - supports both Font Awesome and custom CSS classes
|
|
46
|
-
* Font Awesome icons start with 'fa-' (e.g., 'fa-solid fa-robot')
|
|
47
|
-
* Custom icons use their own prefix (e.g., 'mj-icon-skip', 'acme-icon-custom')
|
|
48
|
-
*/
|
|
49
|
-
getIconClasses(iconClass: string): string | string[];
|
|
50
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MentionDropdownComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MentionDropdownComponent, "mj-mention-dropdown", never, { "suggestions": { "alias": "suggestions"; "required": false; }; "position": { "alias": "position"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "showAbove": { "alias": "showAbove"; "required": false; }; "useFixedPositioning": { "alias": "useFixedPositioning"; "required": false; }; }, { "suggestionSelected": "suggestionSelected"; "closed": "closed"; }, never, never, false, never>;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=mention-dropdown.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mention-dropdown.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/mention/mention-dropdown.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EACZ,MAAM,EACN,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;;AAEhF;;GAEG;AACH,qBASa,wBAAyB,YAAW,MAAM,EAAE,SAAS;IAChE,OAAO,CAAC,YAAY,CAA2B;IAE/C,IACI,WAAW,CAAC,KAAK,EAAE,iBAAiB,EAAE,EAKzC;IACD,IAAI,WAAW,IAAI,iBAAiB,EAAE,CAErC;IAEQ,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAuB;IAC9D,OAAO,EAAE,OAAO,CAAS;IACzB,SAAS,EAAE,OAAO,CAAS;IAC3B,mBAAmB,EAAE,OAAO,CAAS;IAEpC,kBAAkB,kCAAyC;IAC3D,MAAM,qBAA4B;IAErC,aAAa,EAAE,MAAM,CAAK;;IAIjC,QAAQ,IAAI,IAAI;IAEhB,WAAW,IAAI,IAAI;IAEnB;;OAEG;IAEH,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IA4BzC;;OAEG;IACH,gBAAgB,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI;IAIrD;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;OAEG;IACH,OAAO,CAAC,gBAAgB;IASxB;;OAEG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,MAAM;IAIjE;;;;OAIG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE;yCApGzC,wBAAwB;2CAAxB,wBAAwB;CAsHpC"}
|