@memberjunction/ng-flow-editor 0.0.1 → 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.
- package/README.md +151 -43
- package/dist/lib/agent-editor/agent-flow-transformer.service.d.ts +83 -0
- package/dist/lib/agent-editor/agent-flow-transformer.service.d.ts.map +1 -0
- package/dist/lib/agent-editor/agent-flow-transformer.service.js +447 -0
- package/dist/lib/agent-editor/agent-flow-transformer.service.js.map +1 -0
- package/dist/lib/agent-editor/agent-properties-panel.component.d.ts +92 -0
- package/dist/lib/agent-editor/agent-properties-panel.component.d.ts.map +1 -0
- package/dist/lib/agent-editor/agent-properties-panel.component.js +1139 -0
- package/dist/lib/agent-editor/agent-properties-panel.component.js.map +1 -0
- package/dist/lib/agent-editor/agent-step-list.component.d.ts +17 -0
- package/dist/lib/agent-editor/agent-step-list.component.d.ts.map +1 -0
- package/dist/lib/agent-editor/agent-step-list.component.js +278 -0
- package/dist/lib/agent-editor/agent-step-list.component.js.map +1 -0
- package/dist/lib/agent-editor/flow-agent-editor.component.d.ts +134 -0
- package/dist/lib/agent-editor/flow-agent-editor.component.d.ts.map +1 -0
- package/dist/lib/agent-editor/flow-agent-editor.component.js +999 -0
- package/dist/lib/agent-editor/flow-agent-editor.component.js.map +1 -0
- package/dist/lib/components/flow-editor.component.d.ts +169 -0
- package/dist/lib/components/flow-editor.component.d.ts.map +1 -0
- package/dist/lib/components/flow-editor.component.js +1090 -0
- package/dist/lib/components/flow-editor.component.js.map +1 -0
- package/dist/lib/components/flow-node.component.d.ts +50 -0
- package/dist/lib/components/flow-node.component.d.ts.map +1 -0
- package/dist/lib/components/flow-node.component.js +358 -0
- package/dist/lib/components/flow-node.component.js.map +1 -0
- package/dist/lib/components/flow-palette.component.d.ts +17 -0
- package/dist/lib/components/flow-palette.component.d.ts.map +1 -0
- package/dist/lib/components/flow-palette.component.js +110 -0
- package/dist/lib/components/flow-palette.component.js.map +1 -0
- package/dist/lib/components/flow-status-bar.component.d.ts +13 -0
- package/dist/lib/components/flow-status-bar.component.d.ts.map +1 -0
- package/dist/lib/components/flow-status-bar.component.js +81 -0
- package/dist/lib/components/flow-status-bar.component.js.map +1 -0
- package/dist/lib/components/flow-toolbar.component.d.ts +25 -0
- package/dist/lib/components/flow-toolbar.component.d.ts.map +1 -0
- package/dist/lib/components/flow-toolbar.component.js +192 -0
- package/dist/lib/components/flow-toolbar.component.js.map +1 -0
- package/dist/lib/flow-editor.module.d.ts +19 -0
- package/dist/lib/flow-editor.module.d.ts.map +1 -0
- package/dist/lib/flow-editor.module.js +84 -0
- package/dist/lib/flow-editor.module.js.map +1 -0
- package/dist/lib/interfaces/flow-types.d.ts +153 -0
- package/dist/lib/interfaces/flow-types.d.ts.map +1 -0
- package/dist/lib/interfaces/flow-types.js +6 -0
- package/dist/lib/interfaces/flow-types.js.map +1 -0
- package/dist/lib/services/flow-layout.service.d.ts +21 -0
- package/dist/lib/services/flow-layout.service.d.ts.map +1 -0
- package/dist/lib/services/flow-layout.service.js +76 -0
- package/dist/lib/services/flow-layout.service.js.map +1 -0
- package/dist/lib/services/flow-state.service.d.ts +37 -0
- package/dist/lib/services/flow-state.service.d.ts.map +1 -0
- package/dist/lib/services/flow-state.service.js +89 -0
- package/dist/lib/services/flow-state.service.js.map +1 -0
- package/dist/public-api.d.ts +14 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/public-api.js +22 -0
- package/dist/public-api.js.map +1 -0
- package/package.json +51 -6
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/** Step types mapped to visual configuration */
|
|
4
|
+
export const AGENT_STEP_TYPE_CONFIGS = [
|
|
5
|
+
{
|
|
6
|
+
Type: 'Action',
|
|
7
|
+
Label: 'Action',
|
|
8
|
+
Icon: 'fa-bolt',
|
|
9
|
+
Color: '#3B82F6',
|
|
10
|
+
Category: 'Steps',
|
|
11
|
+
DefaultPorts: [
|
|
12
|
+
{ ID: 'input', Direction: 'input', Side: 'top', Multiple: true },
|
|
13
|
+
{ ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
Type: 'Prompt',
|
|
18
|
+
Label: 'Prompt',
|
|
19
|
+
Icon: 'fa-comment-dots',
|
|
20
|
+
Color: '#8B5CF6',
|
|
21
|
+
Category: 'Steps',
|
|
22
|
+
DefaultPorts: [
|
|
23
|
+
{ ID: 'input', Direction: 'input', Side: 'top', Multiple: true },
|
|
24
|
+
{ ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
Type: 'Sub-Agent',
|
|
29
|
+
Label: 'Sub-Agent',
|
|
30
|
+
Icon: 'fa-robot',
|
|
31
|
+
Color: '#10B981',
|
|
32
|
+
Category: 'Steps',
|
|
33
|
+
DefaultPorts: [
|
|
34
|
+
{ ID: 'input', Direction: 'input', Side: 'top', Multiple: true },
|
|
35
|
+
{ ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
Type: 'ForEach',
|
|
40
|
+
Label: 'For Each',
|
|
41
|
+
Icon: 'fa-arrows-repeat',
|
|
42
|
+
Color: '#F59E0B',
|
|
43
|
+
Category: 'Loops',
|
|
44
|
+
DefaultPorts: [
|
|
45
|
+
{ ID: 'input', Direction: 'input', Side: 'top', Multiple: true },
|
|
46
|
+
{ ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
Type: 'While',
|
|
51
|
+
Label: 'While',
|
|
52
|
+
Icon: 'fa-rotate',
|
|
53
|
+
Color: '#F97316',
|
|
54
|
+
Category: 'Loops',
|
|
55
|
+
DefaultPorts: [
|
|
56
|
+
{ ID: 'input', Direction: 'input', Side: 'top', Multiple: true },
|
|
57
|
+
{ ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
];
|
|
61
|
+
/**
|
|
62
|
+
* Transforms MJ AIAgentStep/Path entities to/from generic FlowNode/FlowConnection models.
|
|
63
|
+
*/
|
|
64
|
+
export class AgentFlowTransformerService {
|
|
65
|
+
/** Convert MJ step entities to generic FlowNodes */
|
|
66
|
+
StepsToNodes(steps, actions, agents) {
|
|
67
|
+
return steps.map(step => this.StepToNode(step, actions, agents));
|
|
68
|
+
}
|
|
69
|
+
/** Convert MJ path entities to generic FlowConnections */
|
|
70
|
+
PathsToConnections(paths) {
|
|
71
|
+
return paths.map(path => this.pathToConnection(path, paths));
|
|
72
|
+
}
|
|
73
|
+
/** Build the subtitle for a step based on its configured action/prompt/agent */
|
|
74
|
+
BuildStepSubtitle(step) {
|
|
75
|
+
switch (step.StepType) {
|
|
76
|
+
case 'Action':
|
|
77
|
+
return step.Action ? `Action: ${step.Action}` : 'No action selected';
|
|
78
|
+
case 'Prompt':
|
|
79
|
+
return step.Prompt ? `Prompt: ${step.Prompt}` : 'No prompt selected';
|
|
80
|
+
case 'Sub-Agent':
|
|
81
|
+
return step.SubAgent ? `Agent: ${step.SubAgent}` : 'No sub-agent selected';
|
|
82
|
+
case 'ForEach':
|
|
83
|
+
return this.buildLoopSubtitle(step, 'For Each');
|
|
84
|
+
case 'While':
|
|
85
|
+
return this.buildLoopSubtitle(step, 'While');
|
|
86
|
+
default:
|
|
87
|
+
return step.StepType;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/** Apply FlowNode position changes back to a step entity */
|
|
91
|
+
ApplyNodePosition(step, node) {
|
|
92
|
+
step.PositionX = Math.round(node.Position.X);
|
|
93
|
+
step.PositionY = Math.round(node.Position.Y);
|
|
94
|
+
if (node.Size) {
|
|
95
|
+
step.Width = Math.round(node.Size.Width);
|
|
96
|
+
step.Height = Math.round(node.Size.Height);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
/** Map FlowNode status from step entity status */
|
|
100
|
+
MapStepStatus(stepStatus) {
|
|
101
|
+
switch (stepStatus) {
|
|
102
|
+
case 'Active': return 'default';
|
|
103
|
+
case 'Disabled': return 'disabled';
|
|
104
|
+
case 'Pending': return 'pending';
|
|
105
|
+
default: return 'default';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Returns a short human-readable message describing what's missing,
|
|
110
|
+
* or null if the step is fully configured.
|
|
111
|
+
*/
|
|
112
|
+
BuildConfigWarningMessage(step) {
|
|
113
|
+
switch (step.StepType) {
|
|
114
|
+
case 'Action':
|
|
115
|
+
return !step.ActionID ? 'No action selected' : null;
|
|
116
|
+
case 'Prompt':
|
|
117
|
+
return !step.PromptID ? 'No prompt selected' : null;
|
|
118
|
+
case 'Sub-Agent':
|
|
119
|
+
return !step.SubAgentID ? 'No sub-agent selected' : null;
|
|
120
|
+
case 'ForEach':
|
|
121
|
+
case 'While':
|
|
122
|
+
return this.buildLoopWarningMessage(step);
|
|
123
|
+
default:
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
buildLoopWarningMessage(step) {
|
|
128
|
+
const bodyType = step.LoopBodyType;
|
|
129
|
+
if (!bodyType)
|
|
130
|
+
return 'No loop body type selected';
|
|
131
|
+
switch (bodyType) {
|
|
132
|
+
case 'Action': return !step.ActionID ? 'No action selected for loop body' : null;
|
|
133
|
+
case 'Prompt': return !step.PromptID ? 'No prompt selected for loop body' : null;
|
|
134
|
+
case 'Sub-Agent': return !step.SubAgentID ? 'No sub-agent selected for loop body' : null;
|
|
135
|
+
default: return null;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Returns true when a step is missing its required configuration reference
|
|
140
|
+
* (e.g., an Action step with no ActionID, a Prompt step with no PromptID).
|
|
141
|
+
*/
|
|
142
|
+
IsStepMissingConfiguration(step) {
|
|
143
|
+
switch (step.StepType) {
|
|
144
|
+
case 'Action':
|
|
145
|
+
return !step.ActionID;
|
|
146
|
+
case 'Prompt':
|
|
147
|
+
return !step.PromptID;
|
|
148
|
+
case 'Sub-Agent':
|
|
149
|
+
return !step.SubAgentID;
|
|
150
|
+
case 'ForEach':
|
|
151
|
+
case 'While':
|
|
152
|
+
return this.isLoopBodyMissingReference(step);
|
|
153
|
+
default:
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
isLoopBodyMissingReference(step) {
|
|
158
|
+
const bodyType = step.LoopBodyType;
|
|
159
|
+
if (!bodyType)
|
|
160
|
+
return true; // No body type selected at all
|
|
161
|
+
switch (bodyType) {
|
|
162
|
+
case 'Action': return !step.ActionID;
|
|
163
|
+
case 'Prompt': return !step.PromptID;
|
|
164
|
+
case 'Sub-Agent': return !step.SubAgentID;
|
|
165
|
+
default: return false;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Resolve the best icon and optional logo URL for a step based on its
|
|
170
|
+
* configured action/agent and available picker data.
|
|
171
|
+
*
|
|
172
|
+
* Resolution chain:
|
|
173
|
+
* - Action step: action's IconClass -> step-type fallback
|
|
174
|
+
* - Sub-Agent step: agent's LogoURL (stored in Data) -> agent's IconClass -> step-type fallback
|
|
175
|
+
* - Other steps: step-type icon
|
|
176
|
+
*/
|
|
177
|
+
ResolveStepIcon(step, actions, agents) {
|
|
178
|
+
const fallbackIcon = this.getIconForType(step.StepType);
|
|
179
|
+
if (step.StepType === 'Action' && step.ActionID && actions) {
|
|
180
|
+
const action = actions.find(a => a.ID === step.ActionID);
|
|
181
|
+
return { Icon: action?.IconClass || fallbackIcon };
|
|
182
|
+
}
|
|
183
|
+
if (step.StepType === 'Sub-Agent' && step.SubAgentID && agents) {
|
|
184
|
+
const agent = agents.find(a => a.ID === step.SubAgentID);
|
|
185
|
+
if (agent?.LogoURL) {
|
|
186
|
+
return { Icon: agent.IconClass || fallbackIcon, LogoURL: agent.LogoURL };
|
|
187
|
+
}
|
|
188
|
+
return { Icon: agent?.IconClass || fallbackIcon };
|
|
189
|
+
}
|
|
190
|
+
// For loop steps, resolve based on loop body type
|
|
191
|
+
if ((step.StepType === 'ForEach' || step.StepType === 'While') && step.LoopBodyType) {
|
|
192
|
+
return this.resolveLoopBodyIcon(step, actions, agents);
|
|
193
|
+
}
|
|
194
|
+
return { Icon: fallbackIcon };
|
|
195
|
+
}
|
|
196
|
+
resolveLoopBodyIcon(step, actions, agents) {
|
|
197
|
+
const fallbackIcon = this.getIconForType(step.StepType);
|
|
198
|
+
if (step.LoopBodyType === 'Action' && step.ActionID && actions) {
|
|
199
|
+
const action = actions.find(a => a.ID === step.ActionID);
|
|
200
|
+
if (action?.IconClass)
|
|
201
|
+
return { Icon: fallbackIcon }; // Loop keeps its own icon; body icon handled separately
|
|
202
|
+
}
|
|
203
|
+
if (step.LoopBodyType === 'Sub-Agent' && step.SubAgentID && agents) {
|
|
204
|
+
const agent = agents.find(a => a.ID === step.SubAgentID);
|
|
205
|
+
if (agent?.LogoURL)
|
|
206
|
+
return { Icon: fallbackIcon, LogoURL: agent.LogoURL };
|
|
207
|
+
}
|
|
208
|
+
return { Icon: fallbackIcon };
|
|
209
|
+
}
|
|
210
|
+
// ── Public Conversion Methods ───────────────────────────────
|
|
211
|
+
/** Convert a single MJ step entity to a FlowNode (public for direct use when adding nodes) */
|
|
212
|
+
StepToNode(step, actions, agents) {
|
|
213
|
+
const stepId = step.ID;
|
|
214
|
+
const ports = [
|
|
215
|
+
{
|
|
216
|
+
ID: `${stepId}-input`,
|
|
217
|
+
Direction: 'input',
|
|
218
|
+
Side: 'top',
|
|
219
|
+
Multiple: true,
|
|
220
|
+
Disabled: step.StartingStep === true
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
ID: `${stepId}-output`,
|
|
224
|
+
Direction: 'output',
|
|
225
|
+
Side: 'bottom',
|
|
226
|
+
Multiple: true
|
|
227
|
+
}
|
|
228
|
+
];
|
|
229
|
+
// Show warning status when the step is missing its required configuration,
|
|
230
|
+
// unless the step is explicitly disabled (respect the user's intent).
|
|
231
|
+
const baseStatus = this.MapStepStatus(step.Status);
|
|
232
|
+
const warningMessage = (baseStatus !== 'disabled') ? this.BuildConfigWarningMessage(step) : null;
|
|
233
|
+
const effectiveStatus = warningMessage ? 'warning' : baseStatus;
|
|
234
|
+
// Build loop-specific data for ForEach/While nodes
|
|
235
|
+
const data = { StepEntityID: stepId };
|
|
236
|
+
if (step.StepType === 'ForEach' || step.StepType === 'While') {
|
|
237
|
+
this.populateLoopData(step, data, actions, agents);
|
|
238
|
+
}
|
|
239
|
+
// Resolve icon (and optional logo URL) from picker data
|
|
240
|
+
const resolved = this.ResolveStepIcon(step, actions, agents);
|
|
241
|
+
if (resolved.LogoURL) {
|
|
242
|
+
data['LogoURL'] = resolved.LogoURL;
|
|
243
|
+
}
|
|
244
|
+
return {
|
|
245
|
+
ID: stepId,
|
|
246
|
+
Type: step.StepType,
|
|
247
|
+
Label: step.Name,
|
|
248
|
+
Subtitle: this.BuildStepSubtitle(step),
|
|
249
|
+
Icon: resolved.Icon,
|
|
250
|
+
Status: effectiveStatus,
|
|
251
|
+
StatusMessage: warningMessage ?? undefined,
|
|
252
|
+
IsStartNode: step.StartingStep === true,
|
|
253
|
+
Position: {
|
|
254
|
+
X: step.PositionX ?? 0,
|
|
255
|
+
Y: step.PositionY ?? 0
|
|
256
|
+
},
|
|
257
|
+
Size: {
|
|
258
|
+
Width: step.Width ?? 220,
|
|
259
|
+
Height: step.Height ?? 100
|
|
260
|
+
},
|
|
261
|
+
Ports: ports,
|
|
262
|
+
Data: data
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
pathToConnection(path, allPaths) {
|
|
266
|
+
const hasCondition = path.Condition != null && path.Condition.trim().length > 0;
|
|
267
|
+
const isAlwaysPath = !hasCondition;
|
|
268
|
+
// Analyze sibling paths from the same origin step
|
|
269
|
+
const siblingPaths = allPaths.filter(p => p.OriginStepID === path.OriginStepID);
|
|
270
|
+
const isOnlyPath = siblingPaths.length === 1;
|
|
271
|
+
const unconditionalSiblings = siblingPaths.filter(p => !p.Condition || p.Condition.trim().length === 0);
|
|
272
|
+
// Flag as ambiguous when 2+ unconditional paths exist from the same source.
|
|
273
|
+
// Multiple unconditional paths are always ambiguous because only the
|
|
274
|
+
// highest-priority one will execute — regardless of whether they have descriptions.
|
|
275
|
+
const hasAmbiguousAlways = isAlwaysPath && unconditionalSiblings.length > 1;
|
|
276
|
+
// Build label, icon, and visual style
|
|
277
|
+
const visual = this.buildPathVisuals(path, hasCondition, isOnlyPath, hasAmbiguousAlways);
|
|
278
|
+
return {
|
|
279
|
+
ID: path.ID,
|
|
280
|
+
SourceNodeID: path.OriginStepID,
|
|
281
|
+
SourcePortID: `${path.OriginStepID}-output`,
|
|
282
|
+
TargetNodeID: path.DestinationStepID,
|
|
283
|
+
TargetPortID: `${path.DestinationStepID}-input`,
|
|
284
|
+
Label: visual.label,
|
|
285
|
+
LabelIcon: visual.labelIcon,
|
|
286
|
+
LabelIconColor: visual.labelIconColor,
|
|
287
|
+
LabelDetail: visual.labelDetail,
|
|
288
|
+
Condition: path.Condition ?? undefined,
|
|
289
|
+
Priority: path.Priority,
|
|
290
|
+
Style: visual.style,
|
|
291
|
+
Color: visual.color,
|
|
292
|
+
Data: {
|
|
293
|
+
PathEntityID: path.ID,
|
|
294
|
+
IsAlwaysPath: !hasCondition,
|
|
295
|
+
HasAmbiguousAlways: hasAmbiguousAlways
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
buildPathVisuals(path, hasCondition, isOnlyPath, hasAmbiguousAlways) {
|
|
300
|
+
// Conditional path — amber dashed with condition text
|
|
301
|
+
if (hasCondition) {
|
|
302
|
+
return {
|
|
303
|
+
label: path.Description || path.Condition,
|
|
304
|
+
color: '#f59e0b',
|
|
305
|
+
style: 'dashed'
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
// Sole unconditional (only exit path) — neutral dark slate with Default indicator
|
|
309
|
+
if (isOnlyPath) {
|
|
310
|
+
return {
|
|
311
|
+
label: path.Description || 'Default',
|
|
312
|
+
labelIcon: 'fa-circle-check',
|
|
313
|
+
labelIconColor: '#16a34a',
|
|
314
|
+
color: '#64748b',
|
|
315
|
+
style: 'solid'
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
// Ambiguous: multiple unconditional paths from the same step
|
|
319
|
+
if (hasAmbiguousAlways) {
|
|
320
|
+
return {
|
|
321
|
+
label: path.Description || 'Default',
|
|
322
|
+
labelIcon: 'fa-triangle-exclamation',
|
|
323
|
+
labelIconColor: '#ef4444',
|
|
324
|
+
labelDetail: 'Duplicate default paths: only the highest-priority one will execute',
|
|
325
|
+
color: '#ef4444',
|
|
326
|
+
style: 'solid'
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
// Valid default path (unconditional among conditional siblings) — forest green with checkmark
|
|
330
|
+
return {
|
|
331
|
+
label: path.Description || 'Default',
|
|
332
|
+
labelIcon: 'fa-circle-check',
|
|
333
|
+
labelIconColor: '#16a34a',
|
|
334
|
+
color: '#16a34a',
|
|
335
|
+
style: 'solid'
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
/** Populate loop-specific display data on the node's Data payload */
|
|
339
|
+
populateLoopData(step, data, actions, agents) {
|
|
340
|
+
const bodyType = step.LoopBodyType;
|
|
341
|
+
data['LoopBodyType'] = bodyType ?? null;
|
|
342
|
+
data['LoopBodyName'] = bodyType ? this.resolveLoopBodyName(step) : null;
|
|
343
|
+
data['LoopBodyIcon'] = bodyType ? this.resolveLoopBodySpecificIcon(step, actions, agents) : null;
|
|
344
|
+
data['LoopBodyColor'] = bodyType ? this.getBodyTypeColor(bodyType) : null;
|
|
345
|
+
data['LoopIterationSummary'] = this.BuildLoopIterationSummary(step);
|
|
346
|
+
// Store logo URL for loop body sub-agents
|
|
347
|
+
if (bodyType === 'Sub-Agent' && step.SubAgentID && agents) {
|
|
348
|
+
const agent = agents.find(a => a.ID === step.SubAgentID);
|
|
349
|
+
if (agent?.LogoURL) {
|
|
350
|
+
data['LoopBodyLogoURL'] = agent.LogoURL;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
const config = this.parseLoopConfig(step);
|
|
354
|
+
if (config) {
|
|
355
|
+
data['MaxIterations'] = config['maxIterations'] ?? null;
|
|
356
|
+
data['LoopItemVariable'] = config['itemVariable'] ?? null;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
/** Resolve the best icon for a loop body, checking picker data first */
|
|
360
|
+
resolveLoopBodySpecificIcon(step, actions, agents) {
|
|
361
|
+
const bodyType = step.LoopBodyType;
|
|
362
|
+
const fallback = this.getBodyTypeIcon(bodyType ?? '');
|
|
363
|
+
if (bodyType === 'Action' && step.ActionID && actions) {
|
|
364
|
+
const action = actions.find(a => a.ID === step.ActionID);
|
|
365
|
+
return action?.IconClass || fallback;
|
|
366
|
+
}
|
|
367
|
+
if (bodyType === 'Sub-Agent' && step.SubAgentID && agents) {
|
|
368
|
+
const agent = agents.find(a => a.ID === step.SubAgentID);
|
|
369
|
+
return agent?.IconClass || fallback;
|
|
370
|
+
}
|
|
371
|
+
return fallback;
|
|
372
|
+
}
|
|
373
|
+
/** Get icon for a loop body type */
|
|
374
|
+
getBodyTypeIcon(bodyType) {
|
|
375
|
+
switch (bodyType) {
|
|
376
|
+
case 'Action': return 'fa-bolt';
|
|
377
|
+
case 'Prompt': return 'fa-comment-dots';
|
|
378
|
+
case 'Sub-Agent': return 'fa-robot';
|
|
379
|
+
default: return 'fa-circle-nodes';
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
/** Get color for a loop body type */
|
|
383
|
+
getBodyTypeColor(bodyType) {
|
|
384
|
+
switch (bodyType) {
|
|
385
|
+
case 'Action': return '#3B82F6';
|
|
386
|
+
case 'Prompt': return '#8B5CF6';
|
|
387
|
+
case 'Sub-Agent': return '#10B981';
|
|
388
|
+
default: return '#6B7280';
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
getIconForType(stepType) {
|
|
392
|
+
const config = AGENT_STEP_TYPE_CONFIGS.find(c => c.Type === stepType);
|
|
393
|
+
return config?.Icon ?? 'fa-circle-nodes';
|
|
394
|
+
}
|
|
395
|
+
buildLoopSubtitle(step, prefix) {
|
|
396
|
+
const bodyType = step.LoopBodyType;
|
|
397
|
+
if (!bodyType)
|
|
398
|
+
return `${prefix} (no body type)`;
|
|
399
|
+
const bodyName = this.resolveLoopBodyName(step);
|
|
400
|
+
return bodyName ? `${prefix} → ${bodyName}` : `${prefix} → ${bodyType}`;
|
|
401
|
+
}
|
|
402
|
+
/** Resolve the display name for the loop body operation */
|
|
403
|
+
resolveLoopBodyName(step) {
|
|
404
|
+
switch (step.LoopBodyType) {
|
|
405
|
+
case 'Action': return step.Action ?? null;
|
|
406
|
+
case 'Prompt': return step.Prompt ?? null;
|
|
407
|
+
case 'Sub-Agent': return step.SubAgent ?? null;
|
|
408
|
+
default: return null;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
/** Parse the Configuration JSON, returning null on failure */
|
|
412
|
+
parseLoopConfig(step) {
|
|
413
|
+
if (!step.Configuration)
|
|
414
|
+
return null;
|
|
415
|
+
try {
|
|
416
|
+
return JSON.parse(step.Configuration);
|
|
417
|
+
}
|
|
418
|
+
catch {
|
|
419
|
+
return null;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
/** Build a short iteration summary for display on loop nodes */
|
|
423
|
+
BuildLoopIterationSummary(step) {
|
|
424
|
+
const config = this.parseLoopConfig(step);
|
|
425
|
+
if (step.StepType === 'ForEach') {
|
|
426
|
+
const collection = config?.['collectionPath'];
|
|
427
|
+
return collection ? `over ${collection}` : 'over collection';
|
|
428
|
+
}
|
|
429
|
+
if (step.StepType === 'While') {
|
|
430
|
+
const condition = config?.['condition'];
|
|
431
|
+
return condition ? `while ${this.truncateCondition(condition)}` : 'while condition';
|
|
432
|
+
}
|
|
433
|
+
return '';
|
|
434
|
+
}
|
|
435
|
+
truncateCondition(condition) {
|
|
436
|
+
const maxLen = 30;
|
|
437
|
+
if (condition.length <= maxLen)
|
|
438
|
+
return condition;
|
|
439
|
+
return condition.substring(0, maxLen) + '...';
|
|
440
|
+
}
|
|
441
|
+
static ɵfac = function AgentFlowTransformerService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AgentFlowTransformerService)(); };
|
|
442
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AgentFlowTransformerService, factory: AgentFlowTransformerService.ɵfac });
|
|
443
|
+
}
|
|
444
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AgentFlowTransformerService, [{
|
|
445
|
+
type: Injectable
|
|
446
|
+
}], null, null); })();
|
|
447
|
+
//# sourceMappingURL=agent-flow-transformer.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-flow-transformer.service.js","sourceRoot":"","sources":["../../../src/lib/agent-editor/agent-flow-transformer.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAU3C,gDAAgD;AAChD,MAAM,CAAC,MAAM,uBAAuB,GAAyB;IAC3D;QACE,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE;YACZ,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;YAChE,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;SACtE;KACF;IACD;QACE,IAAI,EAAE,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BAAgB,CAAuB,CAAC;YACpE,OAAO,UAAU,CAAC,CAAC,CAAC,QAAQ,UAAU,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC;QAC/D,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;YAC9B,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC,WAAW,CAAuB,CAAC;YAC9D,OAAO,SAAS,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC;QACtF,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;IAEO,iBAAiB,CAAC,SAAiB;QACzC,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,IAAI,SAAS,CAAC,MAAM,IAAI,MAAM;YAAE,OAAO,SAAS,CAAC;QACjD,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;IAChD,CAAC;qHA7bU,2BAA2B;gEAA3B,2BAA2B,WAA3B,2BAA2B;;iFAA3B,2BAA2B;cADvC,UAAU"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { AIAgentStepEntity, AIAgentStepPathEntity } from '@memberjunction/core-entities';
|
|
3
|
+
import { FlowConnection } from '../interfaces/flow-types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Properties panel for editing AI Agent step and path configurations.
|
|
7
|
+
* Shows context-aware sections based on the selected step type.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AgentPropertiesPanelComponent {
|
|
10
|
+
Step: AIAgentStepEntity | null;
|
|
11
|
+
SelectedConnection: FlowConnection | null;
|
|
12
|
+
PathEntity: AIAgentStepPathEntity | null;
|
|
13
|
+
ReadOnly: boolean;
|
|
14
|
+
Actions: Array<{
|
|
15
|
+
ID: string;
|
|
16
|
+
Name: string;
|
|
17
|
+
IconClass?: string | null;
|
|
18
|
+
}>;
|
|
19
|
+
Prompts: Array<{
|
|
20
|
+
ID: string;
|
|
21
|
+
Name: string;
|
|
22
|
+
}>;
|
|
23
|
+
Agents: Array<{
|
|
24
|
+
ID: string;
|
|
25
|
+
Name: string;
|
|
26
|
+
IconClass?: string | null;
|
|
27
|
+
LogoURL?: string | null;
|
|
28
|
+
}>;
|
|
29
|
+
AllSteps: AIAgentStepEntity[];
|
|
30
|
+
StepChanged: EventEmitter<AIAgentStepEntity>;
|
|
31
|
+
PathChanged: EventEmitter<AIAgentStepPathEntity>;
|
|
32
|
+
DeleteStepRequested: EventEmitter<AIAgentStepEntity>;
|
|
33
|
+
DeletePathRequested: EventEmitter<AIAgentStepPathEntity>;
|
|
34
|
+
CloseRequested: EventEmitter<void>;
|
|
35
|
+
protected collapsedSections: Record<string, boolean>;
|
|
36
|
+
get isStepSelected(): boolean;
|
|
37
|
+
get isConnectionSelected(): boolean;
|
|
38
|
+
get showActionPicker(): boolean;
|
|
39
|
+
get showPromptPicker(): boolean;
|
|
40
|
+
get showAgentPicker(): boolean;
|
|
41
|
+
get showLoopConfig(): boolean;
|
|
42
|
+
get stepTypeLabel(): string;
|
|
43
|
+
get stepTypeColor(): string;
|
|
44
|
+
get stepTypeIcon(): string;
|
|
45
|
+
get statusColor(): string;
|
|
46
|
+
/** Path: origin step name */
|
|
47
|
+
get originStepName(): string;
|
|
48
|
+
/** Path: destination step name */
|
|
49
|
+
get destinationStepName(): string;
|
|
50
|
+
/** Path: whether a condition is set */
|
|
51
|
+
get isConditionalPath(): boolean;
|
|
52
|
+
/** Path accent color */
|
|
53
|
+
get pathAccentColor(): string;
|
|
54
|
+
/** Resolved action name for display */
|
|
55
|
+
get selectedActionName(): string;
|
|
56
|
+
/** Resolved prompt name for display */
|
|
57
|
+
get selectedPromptName(): string;
|
|
58
|
+
/** Resolved agent name for display */
|
|
59
|
+
get selectedAgentName(): string;
|
|
60
|
+
ToggleSection(sectionId: string): void;
|
|
61
|
+
IsSectionCollapsed(sectionId: string): boolean;
|
|
62
|
+
OnNameChange(value: string): void;
|
|
63
|
+
OnDescriptionChange(value: string): void;
|
|
64
|
+
OnStatusChange(value: string): void;
|
|
65
|
+
OnStartingStepChange(checked: boolean): void;
|
|
66
|
+
OnActionChange(actionId: string): void;
|
|
67
|
+
OnPromptChange(promptId: string): void;
|
|
68
|
+
OnSubAgentChange(agentId: string): void;
|
|
69
|
+
OnLoopBodyTypeChange(value: string): void;
|
|
70
|
+
OnInputMappingChange(value: string): void;
|
|
71
|
+
OnOutputMappingChange(value: string): void;
|
|
72
|
+
OnErrorBehaviorChange(value: string): void;
|
|
73
|
+
OnRetryCountChange(value: number): void;
|
|
74
|
+
OnTimeoutChange(value: number): void;
|
|
75
|
+
OnConfigurationChange(value: string): void;
|
|
76
|
+
OnPathDescriptionChange(value: string): void;
|
|
77
|
+
OnPathConditionChange(value: string): void;
|
|
78
|
+
OnPathPriorityChange(value: number): void;
|
|
79
|
+
OnDeleteStep(): void;
|
|
80
|
+
OnDeletePath(): void;
|
|
81
|
+
/** Safely extract string value from an input/textarea/select change event */
|
|
82
|
+
protected InputValue(event: Event): string;
|
|
83
|
+
/** Safely extract checked state from a checkbox change event */
|
|
84
|
+
protected CheckedValue(event: Event): boolean;
|
|
85
|
+
/** Safely extract numeric value from a number input event */
|
|
86
|
+
protected NumericValue(event: Event): number;
|
|
87
|
+
/** Format JSON for display */
|
|
88
|
+
protected FormatJsonDisplay(value: string | null | undefined): string;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AgentPropertiesPanelComponent, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AgentPropertiesPanelComponent, "mj-agent-properties-panel", never, { "Step": { "alias": "Step"; "required": false; }; "SelectedConnection": { "alias": "SelectedConnection"; "required": false; }; "PathEntity": { "alias": "PathEntity"; "required": false; }; "ReadOnly": { "alias": "ReadOnly"; "required": false; }; "Actions": { "alias": "Actions"; "required": false; }; "Prompts": { "alias": "Prompts"; "required": false; }; "Agents": { "alias": "Agents"; "required": false; }; "AllSteps": { "alias": "AllSteps"; "required": false; }; }, { "StepChanged": "StepChanged"; "PathChanged": "PathChanged"; "DeleteStepRequested": "DeleteStepRequested"; "DeletePathRequested": "DeletePathRequested"; "CloseRequested": "CloseRequested"; }, never, never, false, never>;
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=agent-properties-panel.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-properties-panel.component.d.ts","sourceRoot":"","sources":["../../../src/lib/agent-editor/agent-properties-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAA8C,MAAM,eAAe,CAAC;AACnH,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;;AAoB1D;;;GAGG;AACH,qBAQa,6BAA6B;IAE/B,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IACtC,kBAAkB,EAAE,cAAc,GAAG,IAAI,CAAQ;IACjD,UAAU,EAAE,qBAAqB,GAAG,IAAI,CAAQ;IAChD,QAAQ,UAAS;IACjB,OAAO,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC,CAAM;IAC7E,OAAO,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAM;IAClD,MAAM,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CA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