@memberjunction/ng-agents 4.0.0 → 4.1.0

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.
Files changed (2) hide show
  1. package/README.md +162 -0
  2. package/package.json +7 -7
package/README.md ADDED
@@ -0,0 +1,162 @@
1
+ # @memberjunction/ng-agents
2
+
3
+ Reusable Angular components for AI Agent management in MemberJunction applications, including permissions management and agent creation with panel, dialog, and slide-over presentation modes.
4
+
5
+ ## Overview
6
+
7
+ 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.
8
+
9
+ ```mermaid
10
+ graph TD
11
+ A[AgentsModule] --> B[Permissions Components]
12
+ A --> C[Create Agent Components]
13
+ A --> D[Services]
14
+
15
+ B --> B1["AgentPermissionsPanelComponent
16
+ (embeddable)"]
17
+ B --> B2["AgentPermissionsDialogComponent
18
+ (modal)"]
19
+ B --> B3["AgentPermissionsSlideoverComponent
20
+ (slide-over)"]
21
+
22
+ C --> C1["CreateAgentPanelComponent
23
+ (embeddable)"]
24
+ C --> C2["CreateAgentDialogComponent
25
+ (modal)"]
26
+ C --> C3["CreateAgentSlideInComponent
27
+ (slide-in)"]
28
+
29
+ D --> D1[AgentPermissionsService]
30
+ D --> D2[CreateAgentService]
31
+
32
+ style A fill:#2d6a9f,stroke:#1a4971,color:#fff
33
+ style B fill:#7c5295,stroke:#563a6b,color:#fff
34
+ style C fill:#2d8659,stroke:#1a5c3a,color:#fff
35
+ style D fill:#b8762f,stroke:#8a5722,color:#fff
36
+ ```
37
+
38
+ ## Installation
39
+
40
+ ```bash
41
+ npm install @memberjunction/ng-agents
42
+ ```
43
+
44
+ ## Usage
45
+
46
+ ### Module Import
47
+
48
+ ```typescript
49
+ import { AgentsModule } from '@memberjunction/ng-agents';
50
+
51
+ @NgModule({
52
+ imports: [AgentsModule]
53
+ })
54
+ export class YourModule { }
55
+ ```
56
+
57
+ ### Permissions Components
58
+
59
+ #### Embeddable Panel
60
+
61
+ ```html
62
+ <mj-agent-permissions-panel
63
+ [agentId]="selectedAgentId"
64
+ (permissionsChanged)="onPermissionsChanged($event)">
65
+ </mj-agent-permissions-panel>
66
+ ```
67
+
68
+ #### Modal Dialog
69
+
70
+ ```html
71
+ <mj-agent-permissions-dialog
72
+ [visible]="showPermissionsDialog"
73
+ [agentId]="selectedAgentId"
74
+ (dialogClosed)="onPermissionsDialogClosed()">
75
+ </mj-agent-permissions-dialog>
76
+ ```
77
+
78
+ #### Slide-Over
79
+
80
+ ```html
81
+ <mj-agent-permissions-slideover
82
+ [visible]="showPermissionsSlide"
83
+ [agentId]="selectedAgentId"
84
+ (closed)="onSlideoverClosed()">
85
+ </mj-agent-permissions-slideover>
86
+ ```
87
+
88
+ ### Create Agent Components
89
+
90
+ #### Embeddable Panel
91
+
92
+ ```html
93
+ <mj-create-agent-panel
94
+ (agentCreated)="onAgentCreated($event)"
95
+ (cancelled)="onCreateCancelled()">
96
+ </mj-create-agent-panel>
97
+ ```
98
+
99
+ #### Modal Dialog
100
+
101
+ ```html
102
+ <mj-create-agent-dialog
103
+ [visible]="showCreateDialog"
104
+ (agentCreated)="onAgentCreated($event)"
105
+ (dialogClosed)="onCreateDialogClosed()">
106
+ </mj-create-agent-dialog>
107
+ ```
108
+
109
+ #### Slide-In
110
+
111
+ ```html
112
+ <mj-create-agent-slidein
113
+ [visible]="showCreateSlideIn"
114
+ (agentCreated)="onAgentCreated($event)"
115
+ (closed)="onSlideInClosed()">
116
+ </mj-create-agent-slidein>
117
+ ```
118
+
119
+ ### Programmatic Dialog Access
120
+
121
+ ```typescript
122
+ import { CreateAgentService } from '@memberjunction/ng-agents';
123
+
124
+ constructor(private createAgentService: CreateAgentService) {}
125
+
126
+ openCreateAgent() {
127
+ this.createAgentService.openDialog().subscribe(agent => {
128
+ if (agent) {
129
+ console.log('Agent created:', agent.Name);
130
+ }
131
+ });
132
+ }
133
+ ```
134
+
135
+ ## Dependencies
136
+
137
+ | Package | Description |
138
+ |---------|-------------|
139
+ | `@memberjunction/core` | Core framework |
140
+ | `@memberjunction/core-entities` | Entity type definitions |
141
+ | `@memberjunction/global` | Global utilities |
142
+ | `@memberjunction/ai-core-plus` | AI core plus functionality |
143
+ | `@memberjunction/ai-engine-base` | AI engine base classes |
144
+ | `@memberjunction/ng-shared` | Shared Angular utilities |
145
+ | `@angular/cdk` | Angular CDK for overlays |
146
+
147
+ ### Peer Dependencies
148
+
149
+ - `@angular/common` ^21.x
150
+ - `@angular/core` ^21.x
151
+ - `@angular/platform-browser` ^21.x
152
+
153
+ ## Build
154
+
155
+ ```bash
156
+ cd packages/Angular/Generic/agents
157
+ npm run build
158
+ ```
159
+
160
+ ## License
161
+
162
+ ISC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-agents",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "MemberJunction: Reusable Angular components for AI Agent management including permissions panel, dialog, and slideover",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -28,12 +28,12 @@
28
28
  "@angular/animations": "21.1.3",
29
29
  "@angular/cdk": "21.1.3",
30
30
  "@angular/forms": "21.1.3",
31
- "@memberjunction/core": "4.0.0",
32
- "@memberjunction/core-entities": "4.0.0",
33
- "@memberjunction/global": "4.0.0",
34
- "@memberjunction/ai-core-plus": "4.0.0",
35
- "@memberjunction/ai-engine-base": "4.0.0",
36
- "@memberjunction/ng-shared": "4.0.0",
31
+ "@memberjunction/core": "4.1.0",
32
+ "@memberjunction/core-entities": "4.1.0",
33
+ "@memberjunction/global": "4.1.0",
34
+ "@memberjunction/ai-core-plus": "4.1.0",
35
+ "@memberjunction/ai-engine-base": "4.1.0",
36
+ "@memberjunction/ng-shared": "4.1.0",
37
37
  "rxjs": "^7.8.2",
38
38
  "tslib": "^2.8.1"
39
39
  },