@memberjunction/ng-agents
v5.7.0
Published
MemberJunction: Reusable Angular components for AI Agent management including permissions panel, dialog, and slideover
Keywords
Readme
@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
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:#fffInstallation
npm install @memberjunction/ng-agentsUsage
Module Import
import { AgentsModule } from '@memberjunction/ng-agents';
@NgModule({
imports: [AgentsModule]
})
export class YourModule { }Permissions Components
Embeddable Panel
<mj-agent-permissions-panel
[agentId]="selectedAgentId"
(permissionsChanged)="onPermissionsChanged($event)">
</mj-agent-permissions-panel>Modal Dialog
<mj-agent-permissions-dialog
[visible]="showPermissionsDialog"
[agentId]="selectedAgentId"
(dialogClosed)="onPermissionsDialogClosed()">
</mj-agent-permissions-dialog>Slide-Over
<mj-agent-permissions-slideover
[visible]="showPermissionsSlide"
[agentId]="selectedAgentId"
(closed)="onSlideoverClosed()">
</mj-agent-permissions-slideover>Create Agent Components
Embeddable Panel
<mj-create-agent-panel
(agentCreated)="onAgentCreated($event)"
(cancelled)="onCreateCancelled()">
</mj-create-agent-panel>Modal Dialog
<mj-create-agent-dialog
[visible]="showCreateDialog"
(agentCreated)="onAgentCreated($event)"
(dialogClosed)="onCreateDialogClosed()">
</mj-create-agent-dialog>Slide-In
<mj-create-agent-slidein
[visible]="showCreateSlideIn"
(agentCreated)="onAgentCreated($event)"
(closed)="onSlideInClosed()">
</mj-create-agent-slidein>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
| 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
@angular/common^21.x@angular/core^21.x@angular/platform-browser^21.x
Build
cd packages/Angular/Generic/agents
npm run buildLicense
ISC
