@memberjunction/ng-agents
Reusable Angular components for AI Agent management in MemberJunction applications, including permissions management and agent creation with panel, dialog, and slide-over presentation modes.
Overview
Section titled “Overview”This package provides a complete set of UI components for managing AI Agents within MemberJunction. Each feature area (permissions and agent creation) offers three presentation variants — an embeddable panel, a centered modal dialog, and a right-side slide-over/slide-in — so you can integrate agent management into any layout pattern.
graph TD
A[AgentsModule] --> B[Permissions Components]
A --> C[Create Agent Components]
A --> D[Services]
B --> B1["AgentPermissionsPanelComponent
(embeddable)"]
B --> B2["AgentPermissionsDialogComponent
(modal)"]
B --> B3["AgentPermissionsSlideoverComponent
(slide-over)"]
C --> C1["CreateAgentPanelComponent
(embeddable)"]
C --> C2["CreateAgentDialogComponent
(modal)"]
C --> C3["CreateAgentSlideInComponent
(slide-in)"]
D --> D1[AgentPermissionsService]
D --> D2[CreateAgentService]
style A fill:#2d6a9f,stroke:#1a4971,color:#fff
style B fill:#7c5295,stroke:#563a6b,color:#fff
style C fill:#2d8659,stroke:#1a5c3a,color:#fff
style D fill:#b8762f,stroke:#8a5722,color:#fff
Installation
Section titled “Installation”npm install @memberjunction/ng-agentsModule Import
Section titled “Module Import”import { AgentsModule } from '@memberjunction/ng-agents';
@NgModule({ imports: [AgentsModule]})export class YourModule { }Permissions Components
Section titled “Permissions Components”Embeddable Panel
Section titled “Embeddable Panel”<mj-agent-permissions-panel [agentId]="selectedAgentId" (permissionsChanged)="onPermissionsChanged($event)"></mj-agent-permissions-panel>Modal Dialog
Section titled “Modal Dialog”<mj-agent-permissions-dialog [visible]="showPermissionsDialog" [agentId]="selectedAgentId" (dialogClosed)="onPermissionsDialogClosed()"></mj-agent-permissions-dialog>Slide-Over
Section titled “Slide-Over”<mj-agent-permissions-slideover [visible]="showPermissionsSlide" [agentId]="selectedAgentId" (closed)="onSlideoverClosed()"></mj-agent-permissions-slideover>Skill Permissions Components
Section titled “Skill Permissions Components”Skill permissions mirror the agent permissions components exactly, backed by MJ: AI Skill Permissions
(the skill sibling of MJ: AI Agent Permissions) via SkillPermissionsService. Same grantee (User/Role) +
View/Run/Edit/Delete model, same open-by-default semantics. The owner is the skill’s CreatedByUserID.
<!-- Embeddable panel --><mj-skill-permissions-panel [Skill]="selectedSkill" (PermissionsChanged)="onSkillPermsChanged()"></mj-skill-permissions-panel>
<!-- Modal dialog --><mj-skill-permissions-dialog [Skill]="selectedSkill" (Closed)="onSkillPermsDialogClosed()"></mj-skill-permissions-dialog>See the Agent Skills & Plan Mode Guide and Unified Permissions Guide for the full permission model.
Create Agent Components
Section titled “Create Agent Components”Embeddable Panel
Section titled “Embeddable Panel”<mj-create-agent-panel (agentCreated)="onAgentCreated($event)" (cancelled)="onCreateCancelled()"></mj-create-agent-panel>Modal Dialog
Section titled “Modal Dialog”<mj-create-agent-dialog [visible]="showCreateDialog" (agentCreated)="onAgentCreated($event)" (dialogClosed)="onCreateDialogClosed()"></mj-create-agent-dialog>Slide-In
Section titled “Slide-In”<mj-create-agent-slidein [visible]="showCreateSlideIn" (agentCreated)="onAgentCreated($event)" (closed)="onSlideInClosed()"></mj-create-agent-slidein>Programmatic Dialog Access
Section titled “Programmatic Dialog Access”import { CreateAgentService } from '@memberjunction/ng-agents';
constructor(private createAgentService: CreateAgentService) {}
openCreateAgent() { this.createAgentService.openDialog().subscribe(agent => { if (agent) { console.log('Agent created:', agent.Name); } });}Dependencies
Section titled “Dependencies”| Package | Description |
|---|---|
@memberjunction/core | Core framework |
@memberjunction/core-entities | Entity type definitions |
@memberjunction/global | Global utilities |
@memberjunction/ai-core-plus | AI core plus functionality |
@memberjunction/ai-engine-base | AI engine base classes |
@memberjunction/ng-shared | Shared Angular utilities |
@angular/cdk | Angular CDK for overlays |
Peer Dependencies
Section titled “Peer Dependencies”@angular/common^21.x@angular/core^21.x@angular/platform-browser^21.x
cd packages/Angular/Generic/agentsnpm run buildLicense
Section titled “License”ISC