@memberjunction/ng-agents 6.1.0-edge.1 → 6.1.0-edge.3
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/LICENSE +180 -4
- package/README.md +1 -1
- package/dist/lib/agents.module.d.ts +7 -4
- package/dist/lib/agents.module.d.ts.map +1 -1
- package/dist/lib/agents.module.js +20 -8
- package/dist/lib/agents.module.js.map +1 -1
- package/dist/lib/components/agent-invocations.component.d.ts +101 -0
- package/dist/lib/components/agent-invocations.component.d.ts.map +1 -0
- package/dist/lib/components/agent-invocations.component.js +552 -0
- package/dist/lib/components/agent-invocations.component.js.map +1 -0
- package/dist/lib/components/agent-invocations.model.d.ts +131 -0
- package/dist/lib/components/agent-invocations.model.d.ts.map +1 -0
- package/dist/lib/components/agent-invocations.model.js +253 -0
- package/dist/lib/components/agent-invocations.model.js.map +1 -0
- package/dist/public-api.d.ts +2 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +3 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +12 -11
package/LICENSE
CHANGED
|
@@ -1,7 +1,183 @@
|
|
|
1
|
-
|
|
1
|
+
Business Source License 1.1
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
License text copyright (c) 2024 MariaDB plc, All Rights Reserved.
|
|
4
|
+
"Business Source License" is a trademark of MariaDB plc.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
-----------------------------------------------------------------------------
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
Parameters
|
|
9
|
+
|
|
10
|
+
Licensor: Blue Cypress, Inc.
|
|
11
|
+
|
|
12
|
+
Licensed Work: MemberJunction.
|
|
13
|
+
The Licensed Work is (c) 2023-2026 Blue Cypress, Inc.
|
|
14
|
+
|
|
15
|
+
Additional Use Grant: Subject to the terms of this License, Licensor grants
|
|
16
|
+
you the following additional rights to make Production
|
|
17
|
+
Use of the Licensed Work.
|
|
18
|
+
|
|
19
|
+
1. Internal Use
|
|
20
|
+
|
|
21
|
+
You may make production use of the Licensed Work for
|
|
22
|
+
your own internal business or organizational operations.
|
|
23
|
+
|
|
24
|
+
2. Nonprofit Use
|
|
25
|
+
|
|
26
|
+
If you are a Nonprofit, you may make production use of
|
|
27
|
+
the Licensed Work for the operations and activities of
|
|
28
|
+
your Organizational Family.
|
|
29
|
+
|
|
30
|
+
3. MemberJunction Certified Program Use
|
|
31
|
+
|
|
32
|
+
If you are authorized by Licensor under the
|
|
33
|
+
MemberJunction Certified Program to provide professional
|
|
34
|
+
services using the Licensed Work, you may make
|
|
35
|
+
production use of the Licensed Work in providing such
|
|
36
|
+
professional services to a client, provided that:
|
|
37
|
+
|
|
38
|
+
(a) the Licensed Work is deployed in, and the applicable
|
|
39
|
+
production use occurs within, an environment owned,
|
|
40
|
+
leased, licensed, subscribed to, or otherwise controlled
|
|
41
|
+
by that client; and
|
|
42
|
+
|
|
43
|
+
(b) the production use is for that client's own internal
|
|
44
|
+
business or organizational operations or is otherwise
|
|
45
|
+
independently permitted to that client under this
|
|
46
|
+
Additional Use Grant.
|
|
47
|
+
|
|
48
|
+
4. Definitions Applicable to the Additional Use Grant
|
|
49
|
+
|
|
50
|
+
"Affiliate" means, with respect to a specified Person,
|
|
51
|
+
any other Person that directly or indirectly Controls,
|
|
52
|
+
is Controlled by, or is under common Control with such
|
|
53
|
+
specified Person.
|
|
54
|
+
|
|
55
|
+
"Control" (including the terms "Controls," "Controlled
|
|
56
|
+
by," and "under common Control with") means the direct
|
|
57
|
+
or indirect possession of the power to direct or cause
|
|
58
|
+
the direction of the management and policies of a
|
|
59
|
+
Person, whether through ownership of voting interests,
|
|
60
|
+
by contract, or otherwise.
|
|
61
|
+
|
|
62
|
+
"Organizational Family" means, with respect to a Person,
|
|
63
|
+
(a) such Person and its Affiliates, and (b) any
|
|
64
|
+
nonprofit organization, governmental entity, chapter,
|
|
65
|
+
division, local affiliate, regional affiliate, state
|
|
66
|
+
affiliate, national affiliate, or other entity that is
|
|
67
|
+
formally affiliated with such Person through governing
|
|
68
|
+
documents, a charter, bylaws, a membership agreement, or
|
|
69
|
+
another written organizational instrument, and is
|
|
70
|
+
recognized under such documents as part of the same
|
|
71
|
+
organizational structure.
|
|
72
|
+
|
|
73
|
+
"Nonprofit" means a Person recognized by the Internal
|
|
74
|
+
Revenue Service as exempt from federal income taxation
|
|
75
|
+
under Section 501(c)(3), 501(c)(4), 501(c)(5), or
|
|
76
|
+
501(c)(6) of the Internal Revenue Code, or a foreign
|
|
77
|
+
organization recognized under substantially equivalent
|
|
78
|
+
laws.
|
|
79
|
+
|
|
80
|
+
A Person claiming eligibility as a Nonprofit shall, upon
|
|
81
|
+
Licensor's reasonable request, provide documentation
|
|
82
|
+
reasonably sufficient to demonstrate that it qualifies
|
|
83
|
+
as a Nonprofit. If such Person materially misrepresents,
|
|
84
|
+
or is unable to demonstrate, its qualification as a
|
|
85
|
+
Nonprofit, the rights granted to such Person under
|
|
86
|
+
Section 2 of this Additional Use Grant shall terminate.
|
|
87
|
+
|
|
88
|
+
"MemberJunction Certified Program" means Licensor's
|
|
89
|
+
then-current program for certifying and authorizing a
|
|
90
|
+
Person to provide professional services using the
|
|
91
|
+
Licensed Work.
|
|
92
|
+
|
|
93
|
+
"Person" means any individual, corporation, limited
|
|
94
|
+
liability company, partnership, association, nonprofit
|
|
95
|
+
organization, governmental entity, or other legal or
|
|
96
|
+
organizational entity.
|
|
97
|
+
|
|
98
|
+
Change Date: Four (4) years from the date the Licensed Work is first
|
|
99
|
+
made available.
|
|
100
|
+
|
|
101
|
+
Change License: MIT License.
|
|
102
|
+
|
|
103
|
+
For information about alternative licensing arrangements for the Licensed
|
|
104
|
+
Work, please contact Blue Cypress, Inc.
|
|
105
|
+
|
|
106
|
+
-----------------------------------------------------------------------------
|
|
107
|
+
|
|
108
|
+
Terms
|
|
109
|
+
|
|
110
|
+
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
111
|
+
works, redistribute, and make non-production use of the Licensed Work. The
|
|
112
|
+
Licensor may make an Additional Use Grant, above, permitting limited
|
|
113
|
+
production use.
|
|
114
|
+
|
|
115
|
+
Effective on the Change Date, or the fourth anniversary of the first publicly
|
|
116
|
+
available distribution of a specific version of the Licensed Work under this
|
|
117
|
+
License, whichever comes first, the Licensor hereby grants you rights under
|
|
118
|
+
the terms of the Change License, and the rights granted in the paragraph
|
|
119
|
+
above terminate.
|
|
120
|
+
|
|
121
|
+
If your use of the Licensed Work does not comply with the requirements
|
|
122
|
+
currently in effect as described in this License, you must purchase a
|
|
123
|
+
commercial license from the Licensor, its affiliated entities, or authorized
|
|
124
|
+
resellers, or you must refrain from using the Licensed Work.
|
|
125
|
+
|
|
126
|
+
All copies of the original and modified Licensed Work, and derivative works
|
|
127
|
+
of the Licensed Work, are subject to this License. This License applies
|
|
128
|
+
separately for each version of the Licensed Work and the Change Date may vary
|
|
129
|
+
for each version of the Licensed Work released by Licensor.
|
|
130
|
+
|
|
131
|
+
You must conspicuously display this License on each original or modified copy
|
|
132
|
+
of the Licensed Work. If you receive the Licensed Work in original or
|
|
133
|
+
modified form from a third party, the terms and conditions set forth in this
|
|
134
|
+
License apply to your use of that work.
|
|
135
|
+
|
|
136
|
+
Any use of the Licensed Work in violation of this License will automatically
|
|
137
|
+
terminate your rights under this License for the current and all other
|
|
138
|
+
versions of the Licensed Work.
|
|
139
|
+
|
|
140
|
+
This License does not grant you any right in any trademark or logo of
|
|
141
|
+
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
142
|
+
Licensor as expressly required by this License).
|
|
143
|
+
|
|
144
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
145
|
+
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
146
|
+
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
147
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
148
|
+
TITLE.
|
|
149
|
+
|
|
150
|
+
MariaDB hereby grants you permission to use this License's text to license
|
|
151
|
+
your works, and to refer to it using the trademark "Business Source License",
|
|
152
|
+
as long as you comply with the Covenants of Licensor below.
|
|
153
|
+
|
|
154
|
+
-----------------------------------------------------------------------------
|
|
155
|
+
|
|
156
|
+
Covenants of Licensor
|
|
157
|
+
|
|
158
|
+
In consideration of the right to use this License's text and the "Business
|
|
159
|
+
Source License" name and trademark, Licensor covenants to MariaDB, and to all
|
|
160
|
+
other recipients of the licensed work to be provided by Licensor:
|
|
161
|
+
|
|
162
|
+
1. To specify as the Change License the GPL Version 2.0 or any later version,
|
|
163
|
+
or a license that is compatible with GPL Version 2.0 or a later version,
|
|
164
|
+
where "compatible" means that software provided under the Change License
|
|
165
|
+
can be included in a program with software provided under GPL Version 2.0
|
|
166
|
+
or a later version. Licensor may specify additional Change Licenses without
|
|
167
|
+
limitation.
|
|
168
|
+
|
|
169
|
+
2. To either: (a) specify an additional grant of rights to use that does not
|
|
170
|
+
impose any additional restriction on the right granted in this License, as
|
|
171
|
+
the Additional Use Grant; or (b) insert the text "None".
|
|
172
|
+
|
|
173
|
+
3. To specify a Change Date.
|
|
174
|
+
|
|
175
|
+
4. Not to modify this License in any other way.
|
|
176
|
+
|
|
177
|
+
-----------------------------------------------------------------------------
|
|
178
|
+
|
|
179
|
+
Notice
|
|
180
|
+
|
|
181
|
+
The Business Source License (this document, or the "License") is not an Open
|
|
182
|
+
Source license. However, the Licensed Work will eventually be made available
|
|
183
|
+
under an Open Source License, as stated in this License.
|
package/README.md
CHANGED
|
@@ -7,9 +7,11 @@ import * as i5 from "./components/skill-permissions-dialog.component";
|
|
|
7
7
|
import * as i6 from "./components/create-agent-panel.component";
|
|
8
8
|
import * as i7 from "./components/create-agent-dialog.component";
|
|
9
9
|
import * as i8 from "./components/create-agent-slidein.component";
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "@angular/
|
|
12
|
-
import * as i11 from "@
|
|
10
|
+
import * as i9 from "./components/agent-invocations.component";
|
|
11
|
+
import * as i10 from "@angular/common";
|
|
12
|
+
import * as i11 from "@angular/forms";
|
|
13
|
+
import * as i12 from "@memberjunction/ng-ui-components";
|
|
14
|
+
import * as i13 from "@memberjunction/ng-shared-generic";
|
|
13
15
|
/**
|
|
14
16
|
* Module providing reusable AI Agent UI components.
|
|
15
17
|
*
|
|
@@ -22,6 +24,7 @@ import * as i11 from "@memberjunction/ng-ui-components";
|
|
|
22
24
|
* - `<mj-create-agent-panel>` — Embeddable agent creation form
|
|
23
25
|
* - `<mj-create-agent-dialog>` — Centered modal dialog for agent creation
|
|
24
26
|
* - `<mj-create-agent-slidein>` — Right-side slide-in for agent creation
|
|
27
|
+
* - `<mj-agent-invocations>` — Read-only index of every automated pathway that invokes an agent
|
|
25
28
|
*
|
|
26
29
|
* Services:
|
|
27
30
|
* - `CreateAgentService` — Programmatically open create agent dialogs/slide-ins
|
|
@@ -36,7 +39,7 @@ import * as i11 from "@memberjunction/ng-ui-components";
|
|
|
36
39
|
*/
|
|
37
40
|
export declare class AgentsModule {
|
|
38
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<AgentsModule, never>;
|
|
39
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AgentsModule, [typeof i1.AgentPermissionsPanelComponent, typeof i2.AgentPermissionsDialogComponent, typeof i3.AgentPermissionsSlideoverComponent, typeof i4.SkillPermissionsPanelComponent, typeof i5.SkillPermissionsDialogComponent, typeof i6.CreateAgentPanelComponent, typeof i7.CreateAgentDialogComponent, typeof i8.CreateAgentSlideInComponent], [typeof
|
|
42
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AgentsModule, [typeof i1.AgentPermissionsPanelComponent, typeof i2.AgentPermissionsDialogComponent, typeof i3.AgentPermissionsSlideoverComponent, typeof i4.SkillPermissionsPanelComponent, typeof i5.SkillPermissionsDialogComponent, typeof i6.CreateAgentPanelComponent, typeof i7.CreateAgentDialogComponent, typeof i8.CreateAgentSlideInComponent, typeof i9.AgentInvocationsComponent], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.MJEmptyStateComponent, typeof i12.MJAlertComponent, typeof i12.MJAccordionModule, typeof i12.MJButtonDirective, typeof i13.SharedGenericModule], [typeof i1.AgentPermissionsPanelComponent, typeof i2.AgentPermissionsDialogComponent, typeof i3.AgentPermissionsSlideoverComponent, typeof i4.SkillPermissionsPanelComponent, typeof i5.SkillPermissionsDialogComponent, typeof i6.CreateAgentPanelComponent, typeof i7.CreateAgentDialogComponent, typeof i8.CreateAgentSlideInComponent, typeof i9.AgentInvocationsComponent]>;
|
|
40
43
|
static ɵinj: i0.ɵɵInjectorDeclaration<AgentsModule>;
|
|
41
44
|
}
|
|
42
45
|
//# sourceMappingURL=agents.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.module.d.ts","sourceRoot":"","sources":["../../src/lib/agents.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agents.module.d.ts","sourceRoot":"","sources":["../../src/lib/agents.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAiBA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAkCa,YAAY;yCAAZ,YAAY;0CAAZ,YAAY;0CAAZ,YAAY;CAAG"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { MJEmptyStateComponent, MJAlertComponent, MJAccordionModule } from '@memberjunction/ng-ui-components';
|
|
4
|
+
import { MJEmptyStateComponent, MJAlertComponent, MJAccordionModule, MJButtonDirective } from '@memberjunction/ng-ui-components';
|
|
5
|
+
import { SharedGenericModule } from '@memberjunction/ng-shared-generic';
|
|
5
6
|
import { AgentPermissionsPanelComponent } from './components/agent-permissions-panel.component';
|
|
6
7
|
import { AgentPermissionsDialogComponent } from './components/agent-permissions-dialog.component';
|
|
7
8
|
import { AgentPermissionsSlideoverComponent } from './components/agent-permissions-slideover.component';
|
|
@@ -10,6 +11,7 @@ import { SkillPermissionsDialogComponent } from './components/skill-permissions-
|
|
|
10
11
|
import { CreateAgentPanelComponent } from './components/create-agent-panel.component';
|
|
11
12
|
import { CreateAgentDialogComponent } from './components/create-agent-dialog.component';
|
|
12
13
|
import { CreateAgentSlideInComponent } from './components/create-agent-slidein.component';
|
|
14
|
+
import { AgentInvocationsComponent } from './components/agent-invocations.component';
|
|
13
15
|
import * as i0 from "@angular/core";
|
|
14
16
|
/**
|
|
15
17
|
* Module providing reusable AI Agent UI components.
|
|
@@ -23,6 +25,7 @@ import * as i0 from "@angular/core";
|
|
|
23
25
|
* - `<mj-create-agent-panel>` — Embeddable agent creation form
|
|
24
26
|
* - `<mj-create-agent-dialog>` — Centered modal dialog for agent creation
|
|
25
27
|
* - `<mj-create-agent-slidein>` — Right-side slide-in for agent creation
|
|
28
|
+
* - `<mj-agent-invocations>` — Read-only index of every automated pathway that invokes an agent
|
|
26
29
|
*
|
|
27
30
|
* Services:
|
|
28
31
|
* - `CreateAgentService` — Programmatically open create agent dialogs/slide-ins
|
|
@@ -43,7 +46,8 @@ export class AgentsModule {
|
|
|
43
46
|
ReactiveFormsModule,
|
|
44
47
|
MJEmptyStateComponent,
|
|
45
48
|
MJAlertComponent,
|
|
46
|
-
MJAccordionModule
|
|
49
|
+
MJAccordionModule,
|
|
50
|
+
SharedGenericModule] });
|
|
47
51
|
}
|
|
48
52
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AgentsModule, [{
|
|
49
53
|
type: NgModule,
|
|
@@ -56,7 +60,8 @@ export class AgentsModule {
|
|
|
56
60
|
SkillPermissionsDialogComponent,
|
|
57
61
|
CreateAgentPanelComponent,
|
|
58
62
|
CreateAgentDialogComponent,
|
|
59
|
-
CreateAgentSlideInComponent
|
|
63
|
+
CreateAgentSlideInComponent,
|
|
64
|
+
AgentInvocationsComponent
|
|
60
65
|
],
|
|
61
66
|
imports: [
|
|
62
67
|
CommonModule,
|
|
@@ -64,7 +69,9 @@ export class AgentsModule {
|
|
|
64
69
|
ReactiveFormsModule,
|
|
65
70
|
MJEmptyStateComponent,
|
|
66
71
|
MJAlertComponent,
|
|
67
|
-
MJAccordionModule
|
|
72
|
+
MJAccordionModule,
|
|
73
|
+
MJButtonDirective,
|
|
74
|
+
SharedGenericModule
|
|
68
75
|
],
|
|
69
76
|
exports: [
|
|
70
77
|
AgentPermissionsPanelComponent,
|
|
@@ -74,7 +81,8 @@ export class AgentsModule {
|
|
|
74
81
|
SkillPermissionsDialogComponent,
|
|
75
82
|
CreateAgentPanelComponent,
|
|
76
83
|
CreateAgentDialogComponent,
|
|
77
|
-
CreateAgentSlideInComponent
|
|
84
|
+
CreateAgentSlideInComponent,
|
|
85
|
+
AgentInvocationsComponent
|
|
78
86
|
]
|
|
79
87
|
}]
|
|
80
88
|
}], null, null); })();
|
|
@@ -85,17 +93,21 @@ export class AgentsModule {
|
|
|
85
93
|
SkillPermissionsDialogComponent,
|
|
86
94
|
CreateAgentPanelComponent,
|
|
87
95
|
CreateAgentDialogComponent,
|
|
88
|
-
CreateAgentSlideInComponent
|
|
96
|
+
CreateAgentSlideInComponent,
|
|
97
|
+
AgentInvocationsComponent], imports: [CommonModule,
|
|
89
98
|
FormsModule,
|
|
90
99
|
ReactiveFormsModule,
|
|
91
100
|
MJEmptyStateComponent,
|
|
92
101
|
MJAlertComponent,
|
|
93
|
-
MJAccordionModule
|
|
102
|
+
MJAccordionModule,
|
|
103
|
+
MJButtonDirective,
|
|
104
|
+
SharedGenericModule], exports: [AgentPermissionsPanelComponent,
|
|
94
105
|
AgentPermissionsDialogComponent,
|
|
95
106
|
AgentPermissionsSlideoverComponent,
|
|
96
107
|
SkillPermissionsPanelComponent,
|
|
97
108
|
SkillPermissionsDialogComponent,
|
|
98
109
|
CreateAgentPanelComponent,
|
|
99
110
|
CreateAgentDialogComponent,
|
|
100
|
-
CreateAgentSlideInComponent
|
|
111
|
+
CreateAgentSlideInComponent,
|
|
112
|
+
AgentInvocationsComponent] }); })();
|
|
101
113
|
//# sourceMappingURL=agents.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.module.js","sourceRoot":"","sources":["../../src/lib/agents.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"agents.module.js","sourceRoot":"","sources":["../../src/lib/agents.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACjI,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAE,kCAAkC,EAAE,MAAM,oDAAoD,CAAC;AACxG,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2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A+B;QAC/B,yBAAyB;QACzB,0BAA0B;QAC1B,2BAA2B;QAC3B,yBAAyB","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { MJEmptyStateComponent, MJAlertComponent, MJAccordionModule, MJButtonDirective } from '@memberjunction/ng-ui-components';\nimport { SharedGenericModule } from '@memberjunction/ng-shared-generic';\n\nimport { AgentPermissionsPanelComponent } from './components/agent-permissions-panel.component';\nimport { AgentPermissionsDialogComponent } from './components/agent-permissions-dialog.component';\nimport { AgentPermissionsSlideoverComponent } from './components/agent-permissions-slideover.component';\nimport { SkillPermissionsPanelComponent } from './components/skill-permissions-panel.component';\nimport { SkillPermissionsDialogComponent } from './components/skill-permissions-dialog.component';\nimport { CreateAgentPanelComponent } from './components/create-agent-panel.component';\nimport { CreateAgentDialogComponent } from './components/create-agent-dialog.component';\nimport { CreateAgentSlideInComponent } from './components/create-agent-slidein.component';\nimport { AgentInvocationsComponent } from './components/agent-invocations.component';\n\n/**\n * Module providing reusable AI Agent UI components.\n *\n * Components:\n * - `<mj-agent-permissions-panel>` — Embeddable permissions manager\n * - `<mj-agent-permissions-dialog>` — Centered modal dialog wrapper\n * - `<mj-agent-permissions-slideover>` — Right-side slide-over wrapper\n * - `<mj-skill-permissions-panel>` — Embeddable AI Skill permissions manager\n * - `<mj-skill-permissions-dialog>` — Centered modal dialog wrapper for skill permissions\n * - `<mj-create-agent-panel>` — Embeddable agent creation form\n * - `<mj-create-agent-dialog>` — Centered modal dialog for agent creation\n * - `<mj-create-agent-slidein>` — Right-side slide-in for agent creation\n * - `<mj-agent-invocations>` — Read-only index of every automated pathway that invokes an agent\n *\n * Services:\n * - `CreateAgentService` — Programmatically open create agent dialogs/slide-ins\n *\n * Usage:\n * ```typescript\n * import { AgentsModule } from '@memberjunction/ng-agents';\n *\n * @NgModule({ imports: [AgentsModule] })\n * export class MyModule {}\n * ```\n */\n@NgModule({\n declarations: [\n AgentPermissionsPanelComponent,\n AgentPermissionsDialogComponent,\n AgentPermissionsSlideoverComponent,\n SkillPermissionsPanelComponent,\n SkillPermissionsDialogComponent,\n CreateAgentPanelComponent,\n CreateAgentDialogComponent,\n CreateAgentSlideInComponent,\n AgentInvocationsComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MJEmptyStateComponent,\n MJAlertComponent,\n MJAccordionModule,\n MJButtonDirective,\n SharedGenericModule\n ],\n exports: [\n AgentPermissionsPanelComponent,\n AgentPermissionsDialogComponent,\n AgentPermissionsSlideoverComponent,\n SkillPermissionsPanelComponent,\n SkillPermissionsDialogComponent,\n CreateAgentPanelComponent,\n CreateAgentDialogComponent,\n CreateAgentSlideInComponent,\n AgentInvocationsComponent\n ]\n})\nexport class AgentsModule {}\n"]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview "Everywhere this agent runs without anyone pressing Run."
|
|
3
|
+
*
|
|
4
|
+
* **The gap this closes.** MJ has never lacked ways to invoke an agent automatically — Scheduled
|
|
5
|
+
* Jobs, User Routines, Entity Action bindings, Record Processes, a Sub-Agent step inside another
|
|
6
|
+
* agent's flow. What it lacked was the *inverse* index. Every one of those substrates knows which
|
|
7
|
+
* agent it calls; none of them can be asked the question from the other end, so standing on an agent
|
|
8
|
+
* record there was no way to learn what fires it short of checking five admin surfaces by hand. In
|
|
9
|
+
* practice that means nobody checked — and an agent quietly running on a schedule somebody set up
|
|
10
|
+
* months ago is exactly the thing an owner needs to see first.
|
|
11
|
+
*
|
|
12
|
+
* **Read-only, by design.** This surface answers a question; it does not change any answer. Editing
|
|
13
|
+
* a schedule belongs in Scheduling, editing a binding belongs in Entity Actions, and putting a
|
|
14
|
+
* second editor here would be a second set of rules about what a valid trigger is. Every row instead
|
|
15
|
+
* emits {@link AgentInvocationsComponent.RecordOpenRequested} so the host can navigate to the
|
|
16
|
+
* substrate that owns it.
|
|
17
|
+
*
|
|
18
|
+
* **Layer: `widgets`.** No Router, no `NavigationService`, no global provider. Navigation leaves as
|
|
19
|
+
* intent; data is read through `this.ProviderToUse`.
|
|
20
|
+
*
|
|
21
|
+
* @module @memberjunction/ng-agents
|
|
22
|
+
*/
|
|
23
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
24
|
+
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
25
|
+
import { type AgentInvocationGroup, type AgentInvocationPathway, type AgentInvocationSummary } from './agent-invocations.model';
|
|
26
|
+
import * as i0 from "@angular/core";
|
|
27
|
+
/** Emitted when a row is activated. The host decides how to open it — this widget has no Router. */
|
|
28
|
+
export declare class AgentInvocationOpenRequestedEventArgs {
|
|
29
|
+
readonly EntityName: string;
|
|
30
|
+
readonly RecordID: string;
|
|
31
|
+
readonly Pathway: AgentInvocationPathway;
|
|
32
|
+
constructor(EntityName: string, RecordID: string, Pathway: AgentInvocationPathway);
|
|
33
|
+
}
|
|
34
|
+
export declare class AgentInvocationsComponent extends BaseAngularComponent {
|
|
35
|
+
private cdr;
|
|
36
|
+
/**
|
|
37
|
+
* The agent to index. Setter-based per repo convention — the reaction is explicit and runs only
|
|
38
|
+
* when the id actually changes, rather than on every change-detection pass.
|
|
39
|
+
*/
|
|
40
|
+
set AgentID(value: string | null);
|
|
41
|
+
get AgentID(): string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the surface is currently on screen.
|
|
44
|
+
*
|
|
45
|
+
* The host keeps this component alive across tab switches (so a return trip is instant), which
|
|
46
|
+
* means without this it would issue six queries for a tab nobody has opened. Flipping to true
|
|
47
|
+
* triggers the first load; flipping back does nothing.
|
|
48
|
+
*/
|
|
49
|
+
set Active(value: boolean);
|
|
50
|
+
get Active(): boolean;
|
|
51
|
+
/** The agent's own `ExposeAsAction` flag — a pathway that lives on the agent, not in another table. */
|
|
52
|
+
ExposeAsAction: boolean;
|
|
53
|
+
/** The agent's parent, when it is a child sub-agent. Named so the row can say who calls it. */
|
|
54
|
+
ParentAgentName: string | null;
|
|
55
|
+
ParentAgentID: string | null;
|
|
56
|
+
/** Intent only — the host navigates. */
|
|
57
|
+
RecordOpenRequested: EventEmitter<AgentInvocationOpenRequestedEventArgs>;
|
|
58
|
+
IsLoading: boolean;
|
|
59
|
+
HasLoaded: boolean;
|
|
60
|
+
LoadError: string | null;
|
|
61
|
+
Groups: AgentInvocationGroup[];
|
|
62
|
+
Summary: AgentInvocationSummary;
|
|
63
|
+
private agentID;
|
|
64
|
+
private active;
|
|
65
|
+
constructor(cdr: ChangeDetectorRef);
|
|
66
|
+
/**
|
|
67
|
+
* Rebuilds the index.
|
|
68
|
+
*
|
|
69
|
+
* Public so a host can offer Refresh, and so an agent-context tool can drive it — the same
|
|
70
|
+
* entry point either way, rather than a private loader plus a public wrapper that can drift.
|
|
71
|
+
*/
|
|
72
|
+
Load(): Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* The four substrates that name the agent by id on their own row, in one round trip.
|
|
75
|
+
*
|
|
76
|
+
* Batched through `RunViews` rather than four awaited calls: this is one screen, and four
|
|
77
|
+
* sequential round trips is the difference between a tab that opens and a tab that loads.
|
|
78
|
+
*/
|
|
79
|
+
private loadDirectPathways;
|
|
80
|
+
/**
|
|
81
|
+
* Entity-change bindings, which name the agent one table further out.
|
|
82
|
+
*
|
|
83
|
+
* An Entity Action does not reference an agent; it references the `Execute Agent` action, and the
|
|
84
|
+
* agent lives in that binding's `AgentID` **parameter**. So this walks params → bindings →
|
|
85
|
+
* invocation types. Three steps, but each one is a single batched query, and skipping straight to
|
|
86
|
+
* the bindings would find every agent-dispatching binding rather than this agent's.
|
|
87
|
+
*/
|
|
88
|
+
private loadDataChangePathways;
|
|
89
|
+
/** The pathways carried on the agent's own record rather than in another table. */
|
|
90
|
+
private loadAgentPathways;
|
|
91
|
+
/** Says why a pathway will not fire. Returns undefined when it will — there is nothing to explain. */
|
|
92
|
+
private explainState;
|
|
93
|
+
OnRowActivated(pathway: AgentInvocationPathway): void;
|
|
94
|
+
/** Template helper — coarse relative time, computed at render rather than stored. */
|
|
95
|
+
When(value: Date | null | undefined): string | null;
|
|
96
|
+
/** Template helper: the header line, phrased for whichever case the agent is in. */
|
|
97
|
+
get SummaryLine(): string;
|
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AgentInvocationsComponent, never>;
|
|
99
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AgentInvocationsComponent, "mj-agent-invocations", never, { "AgentID": { "alias": "AgentID"; "required": false; }; "Active": { "alias": "Active"; "required": false; }; "ExposeAsAction": { "alias": "ExposeAsAction"; "required": false; }; "ParentAgentName": { "alias": "ParentAgentName"; "required": false; }; "ParentAgentID": { "alias": "ParentAgentID"; "required": false; }; }, { "RecordOpenRequested": "RecordOpenRequested"; }, never, never, false, never>;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=agent-invocations.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-invocations.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/agent-invocations.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAEH,iBAAiB,EAEjB,YAAY,EAGf,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAWrE,OAAO,EAQH,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC9B,MAAM,2BAA2B,CAAC;;AAEnC,oGAAoG;AACpG,qBAAa,qCAAqC;aAE1B,UAAU,EAAE,MAAM;aAClB,QAAQ,EAAE,MAAM;aAChB,OAAO,EAAE,sBAAsB;gBAF/B,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,sBAAsB;CAEtD;AAED,qBAOa,yBAA0B,SAAQ,oBAAoB;IAmDnD,OAAO,CAAC,GAAG;IAlDvB;;;OAGG;IACH,IACW,OAAO,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