@memberjunction/ng-flow-editor 6.3.0-edge.1 → 6.3.0-edge.2

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 (51) hide show
  1. package/dist/lib/agent-editor/agent-flow-transformer.service.d.ts.map +1 -1
  2. package/dist/lib/agent-editor/agent-flow-transformer.service.js +38 -0
  3. package/dist/lib/agent-editor/agent-flow-transformer.service.js.map +1 -1
  4. package/dist/lib/agent-editor/agent-properties-panel.component.d.ts +49 -0
  5. package/dist/lib/agent-editor/agent-properties-panel.component.d.ts.map +1 -1
  6. package/dist/lib/agent-editor/agent-properties-panel.component.js +1065 -347
  7. package/dist/lib/agent-editor/agent-properties-panel.component.js.map +1 -1
  8. package/dist/lib/agent-editor/agent-step-list.component.d.ts +10 -2
  9. package/dist/lib/agent-editor/agent-step-list.component.d.ts.map +1 -1
  10. package/dist/lib/agent-editor/agent-step-list.component.js +257 -199
  11. package/dist/lib/agent-editor/agent-step-list.component.js.map +1 -1
  12. package/dist/lib/agent-editor/flow-agent-editor.component.d.ts +16 -8
  13. package/dist/lib/agent-editor/flow-agent-editor.component.d.ts.map +1 -1
  14. package/dist/lib/agent-editor/flow-agent-editor.component.js +209 -117
  15. package/dist/lib/agent-editor/flow-agent-editor.component.js.map +1 -1
  16. package/dist/lib/agent-editor/waiting-step-config.d.ts +45 -0
  17. package/dist/lib/agent-editor/waiting-step-config.d.ts.map +1 -0
  18. package/dist/lib/agent-editor/waiting-step-config.js +117 -0
  19. package/dist/lib/agent-editor/waiting-step-config.js.map +1 -0
  20. package/dist/lib/components/flow-editor.component.d.ts +42 -5
  21. package/dist/lib/components/flow-editor.component.d.ts.map +1 -1
  22. package/dist/lib/components/flow-editor.component.js +299 -113
  23. package/dist/lib/components/flow-editor.component.js.map +1 -1
  24. package/dist/lib/components/flow-node.component.d.ts +25 -3
  25. package/dist/lib/components/flow-node.component.d.ts.map +1 -1
  26. package/dist/lib/components/flow-node.component.js +412 -125
  27. package/dist/lib/components/flow-node.component.js.map +1 -1
  28. package/dist/lib/components/flow-status-bar.component.d.ts +2 -1
  29. package/dist/lib/components/flow-status-bar.component.d.ts.map +1 -1
  30. package/dist/lib/components/flow-status-bar.component.js +12 -11
  31. package/dist/lib/components/flow-status-bar.component.js.map +1 -1
  32. package/dist/lib/components/flow-toolbar.component.d.ts +5 -2
  33. package/dist/lib/components/flow-toolbar.component.d.ts.map +1 -1
  34. package/dist/lib/components/flow-toolbar.component.js +42 -23
  35. package/dist/lib/components/flow-toolbar.component.js.map +1 -1
  36. package/dist/lib/interfaces/flow-types.d.ts +40 -0
  37. package/dist/lib/interfaces/flow-types.d.ts.map +1 -1
  38. package/dist/lib/interfaces/flow-types.js.map +1 -1
  39. package/dist/lib/services/flow-layout.service.d.ts +0 -1
  40. package/dist/lib/services/flow-layout.service.d.ts.map +1 -1
  41. package/dist/lib/services/flow-layout.service.js +5 -23
  42. package/dist/lib/services/flow-layout.service.js.map +1 -1
  43. package/dist/lib/services/flow-viewport.util.d.ts +58 -0
  44. package/dist/lib/services/flow-viewport.util.d.ts.map +1 -0
  45. package/dist/lib/services/flow-viewport.util.js +134 -0
  46. package/dist/lib/services/flow-viewport.util.js.map +1 -0
  47. package/dist/public-api.d.ts +1 -0
  48. package/dist/public-api.d.ts.map +1 -1
  49. package/dist/public-api.js +1 -0
  50. package/dist/public-api.js.map +1 -1
  51. package/package.json +10 -10
@@ -1 +1 @@
1
- {"version":3,"file":"agent-flow-transformer.service.d.ts","sourceRoot":"","sources":["../../../src/lib/agent-editor/agent-flow-transformer.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAuB,kBAAkB,EAAgB,MAAM,0BAA0B,CAAC;AAG3H,OAAO,EAAoC,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;;AAEzF,uDAAuD;AACvD,MAA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DAA2D;IAC3D,OAAO,CAAC,mBAAmB;IAS3B,8DAA8D;IAC9D,OAAO,CAAC,eAAe;IASvB,gEAAgE;IAChE,yBAAyB,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM;IAa5D,OAAO,CAAC,iBAAiB;yCArjBd,2BAA2B;6CAA3B,2BAA2B;CA0jBvC"}
@@ -2,6 +2,7 @@ import { Injectable } from '@angular/core';
2
2
  import { UUIDsEqual } from '@memberjunction/global';
3
3
  import { ReadFlowDecisionStepConfiguration } from '@memberjunction/ai-core-plus';
4
4
  import { PathRunProblems, StepRunProblems } from './flow-run-check';
5
+ import { WaitingStepSubtitle } from './waiting-step-config';
5
6
  import * as i0 from "@angular/core";
6
7
  /** Step types mapped to visual configuration */
7
8
  export const AGENT_STEP_TYPE_CONFIGS = [
@@ -49,6 +50,39 @@ export const AGENT_STEP_TYPE_CONFIGS = [
49
50
  { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }
50
51
  ]
51
52
  },
53
+ {
54
+ Type: 'Human',
55
+ Label: 'Person',
56
+ Icon: 'fa-user-check',
57
+ Color: '#7B1FA2',
58
+ Category: 'Waiting',
59
+ DefaultPorts: [
60
+ { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },
61
+ { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }
62
+ ]
63
+ },
64
+ {
65
+ Type: 'External',
66
+ Label: 'External Signal',
67
+ Icon: 'fa-arrow-up-right-from-square',
68
+ Color: '#0891B2',
69
+ Category: 'Waiting',
70
+ DefaultPorts: [
71
+ { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },
72
+ { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }
73
+ ]
74
+ },
75
+ {
76
+ Type: 'Wait',
77
+ Label: 'Wait',
78
+ Icon: 'fa-hourglass-half',
79
+ Color: '#64748B',
80
+ Category: 'Waiting',
81
+ DefaultPorts: [
82
+ { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },
83
+ { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }
84
+ ]
85
+ },
52
86
  {
53
87
  Type: 'ForEach',
54
88
  Label: 'For Each',
@@ -123,6 +157,10 @@ export class AgentFlowTransformerService {
123
157
  }
124
158
  return 'Unconfigured';
125
159
  }
160
+ case 'Human':
161
+ case 'External':
162
+ case 'Wait':
163
+ return WaitingStepSubtitle(step.StepType, step.Configuration);
126
164
  default:
127
165
  return step.StepType;
128
166
  }
@@ -1 +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;AAG3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,eAAe,EAAuB,MAAM,kBAAkB,CAAC;;AAQzF,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,QAAQ;QACd,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE;YACZ,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,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AAE,CAAC,gBAAgB,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;qHArjBU,2BAA2B;gEAA3B,2BAA2B,WAA3B,2BAA2B;;iFAA3B,2BAA2B;cADvC,UAAU","sourcesContent":["import { Injectable } from '@angular/core';\nimport { MJAIAgentStepEntity, MJAIAgentStepPathEntity } from '@memberjunction/core-entities';\nimport { FlowNode, FlowConnection, FlowConnectionStyle, FlowNodeTypeConfig, FlowNodePort } from '../interfaces/flow-types';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { ReadFlowDecisionStepConfiguration } from '@memberjunction/ai-core-plus';\nimport { PathRunProblems, StepRunProblems, type FlowRunProblem } from './flow-run-check';\n\n/** Picker item shape for Actions with optional icon */\nexport interface ActionPickerItem { ID: string; Name: string; IconClass?: string | null; }\n\n/** Picker item shape for Agents with optional icon and logo */\nexport interface AgentPickerItem { ID: string; Name: string; IconClass?: string | null; LogoURL?: string | null; }\n\n/** Step types mapped to visual configuration */\nexport const AGENT_STEP_TYPE_CONFIGS: FlowNodeTypeConfig[] = [\n {\n Type: 'Action',\n Label: 'Action',\n Icon: 'fa-bolt',\n Color: '#3B82F6',\n Category: 'Steps',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'Prompt',\n Label: 'Prompt',\n Icon: 'fa-comment-dots',\n Color: '#8B5CF6',\n Category: 'Steps',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'Decision',\n Label: 'Decision',\n Icon: 'fa-scale-balanced',\n Color: '#0891b2',\n Category: 'Steps',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'Sub-Agent',\n Label: 'Sub-Agent',\n Icon: 'fa-robot',\n Color: '#10B981',\n Category: 'Steps',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'ForEach',\n Label: 'For Each',\n Icon: 'fa-arrows-repeat',\n Color: '#F59E0B',\n Category: 'Loops',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'While',\n Label: 'While',\n Icon: 'fa-rotate',\n Color: '#F97316',\n Category: 'Loops',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n }\n];\n\n/** \"1st\", \"2nd\", \"3rd\", … for the precedence note on an exclusive branch. */\nfunction ordinal(n: number): string {\n const suffix = n % 100 >= 11 && n % 100 <= 13 ? 'th'\n : ['th', 'st', 'nd', 'rd'][n % 10] ?? 'th';\n return `${n}${suffix}`;\n}\n\n/** How an edge reads on the canvas. */\ntype PathVisual = {\n label?: string;\n labelIcon?: string;\n labelIconColor?: string;\n labelDetail?: string;\n color: string;\n style: FlowConnectionStyle;\n};\n\n/**\n * Transforms MJ AIAgentStep/Path entities to/from generic FlowNode/FlowConnection models.\n */\n@Injectable()\nexport class AgentFlowTransformerService {\n\n /** Convert MJ step entities to generic FlowNodes, each warning about its share of `problems` */\n StepsToNodes(\n steps: MJAIAgentStepEntity[],\n actions?: ActionPickerItem[],\n agents?: AgentPickerItem[],\n problems: readonly FlowRunProblem[] = []\n ): FlowNode[] {\n return steps.map(step => this.StepToNode(step, actions, agents, problems));\n }\n\n /** Convert MJ path entities to generic FlowConnections, each flagging its share of `problems` */\n PathsToConnections(paths: MJAIAgentStepPathEntity[], problems: readonly FlowRunProblem[] = []): FlowConnection[] {\n return paths.map(path => this.pathToConnection(path, paths, problems));\n }\n\n /**\n * What a step's node warns about: its own missing configuration, then each flow-check problem on the\n * step that is not already that. A path's problem is flagged on the path instead. Nothing for a\n * disabled step, which the author has taken out of the flow.\n */\n BuildNodeWarning(step: MJAIAgentStepEntity, problems: readonly FlowRunProblem[] = []): string | null {\n if (this.MapStepStatus(step.Status) === 'disabled') return null;\n const flow = StepRunProblems(problems, step.ID).map(p => p.Message);\n const messages = [this.BuildConfigWarningMessage(step), ...flow].filter((m): m is string => !!m);\n return messages.length > 0 ? messages.join('\\n') : null;\n }\n\n /** Build the subtitle for a step based on its configured action/prompt/agent */\n BuildStepSubtitle(step: MJAIAgentStepEntity): string {\n switch (step.StepType) {\n case 'Action':\n return step.Action ? `Action: ${step.Action}` : 'No action selected';\n case 'Prompt':\n return step.Prompt ? `Prompt: ${step.Prompt}` : 'No prompt selected';\n case 'Sub-Agent':\n return step.SubAgent ? `Agent: ${step.SubAgent}` : 'No sub-agent selected';\n case 'ForEach':\n return this.buildLoopSubtitle(step, 'For Each');\n case 'While':\n return this.buildLoopSubtitle(step, 'While');\n case 'Decision': {\n const read = ReadFlowDecisionStepConfiguration(step.Configuration);\n if ('Config' in read) {\n const count = Object.keys(read.Config.questions || {}).length;\n return `${read.Config.key} · ${count} ${count === 1 ? 'question' : 'questions'}`;\n }\n return 'Unconfigured';\n }\n default:\n return step.StepType;\n }\n }\n\n /** Apply FlowNode position changes back to a step entity */\n ApplyNodePosition(step: MJAIAgentStepEntity, node: FlowNode): void {\n step.PositionX = Math.round(node.Position.X);\n step.PositionY = Math.round(node.Position.Y);\n if (node.Size) {\n step.Width = Math.round(node.Size.Width);\n step.Height = Math.round(node.Size.Height);\n }\n }\n\n /** Map FlowNode status from step entity status */\n MapStepStatus(stepStatus: string): FlowNode['Status'] {\n switch (stepStatus) {\n case 'Active': return 'default';\n case 'Disabled': return 'disabled';\n case 'Pending': return 'pending';\n default: return 'default';\n }\n }\n\n /**\n * Returns a short human-readable message describing what's missing,\n * or null if the step is fully configured.\n */\n BuildConfigWarningMessage(step: MJAIAgentStepEntity): string | null {\n switch (step.StepType) {\n case 'Action':\n return !step.ActionID ? 'No action selected' : null;\n case 'Prompt':\n return !step.PromptID ? 'No prompt selected' : null;\n case 'Sub-Agent':\n return !step.SubAgentID ? 'No sub-agent selected' : null;\n case 'ForEach':\n case 'While':\n return this.buildLoopWarningMessage(step);\n case 'Decision': {\n const read = ReadFlowDecisionStepConfiguration(step.Configuration);\n return 'Error' in read ? read.Error : null;\n }\n default:\n return null;\n }\n }\n\n private buildLoopWarningMessage(step: MJAIAgentStepEntity): string | null {\n const bodyType = step.LoopBodyType;\n if (!bodyType) return 'No loop body type selected';\n switch (bodyType) {\n case 'Action': return !step.ActionID ? 'No action selected for loop body' : null;\n case 'Prompt': return !step.PromptID ? 'No prompt selected for loop body' : null;\n case 'Sub-Agent': return !step.SubAgentID ? 'No sub-agent selected for loop body' : null;\n default: return null;\n }\n }\n\n /**\n * Returns true when a step is missing its required configuration reference\n * (e.g., an Action step with no ActionID, a Prompt step with no PromptID).\n */\n IsStepMissingConfiguration(step: MJAIAgentStepEntity): boolean {\n switch (step.StepType) {\n case 'Action':\n return !step.ActionID;\n case 'Prompt':\n return !step.PromptID;\n case 'Sub-Agent':\n return !step.SubAgentID;\n case 'ForEach':\n case 'While':\n return this.isLoopBodyMissingReference(step);\n case 'Decision': {\n const read = ReadFlowDecisionStepConfiguration(step.Configuration);\n return 'Error' in read;\n }\n default:\n return false;\n }\n }\n\n private isLoopBodyMissingReference(step: MJAIAgentStepEntity): boolean {\n const bodyType = step.LoopBodyType;\n if (!bodyType) return true; // No body type selected at all\n switch (bodyType) {\n case 'Action': return !step.ActionID;\n case 'Prompt': return !step.PromptID;\n case 'Sub-Agent': return !step.SubAgentID;\n default: return false;\n }\n }\n\n /**\n * Resolve the best icon and optional logo URL for a step based on its\n * configured action/agent and available picker data.\n *\n * Resolution chain:\n * - Action step: action's IconClass -> step-type fallback\n * - Sub-Agent step: agent's LogoURL (stored in Data) -> agent's IconClass -> step-type fallback\n * - Other steps: step-type icon\n */\n ResolveStepIcon(\n step: MJAIAgentStepEntity,\n actions?: ActionPickerItem[],\n agents?: AgentPickerItem[]\n ): { Icon: string; LogoURL?: string | null } {\n const fallbackIcon = this.getIconForType(step.StepType);\n\n if (step.StepType === 'Action' && step.ActionID && actions) {\n const action = actions.find(a => UUIDsEqual(a.ID, step.ActionID));\n return { Icon: action?.IconClass || fallbackIcon };\n }\n\n if (step.StepType === 'Sub-Agent' && step.SubAgentID && agents) {\n const agent = agents.find(a => UUIDsEqual(a.ID, step.SubAgentID));\n if (agent?.LogoURL) {\n return { Icon: agent.IconClass || fallbackIcon, LogoURL: agent.LogoURL };\n }\n return { Icon: agent?.IconClass || fallbackIcon };\n }\n\n // For loop steps, resolve based on loop body type\n if ((step.StepType === 'ForEach' || step.StepType === 'While') && step.LoopBodyType) {\n return this.resolveLoopBodyIcon(step, actions, agents);\n }\n\n return { Icon: fallbackIcon };\n }\n\n private resolveLoopBodyIcon(\n step: MJAIAgentStepEntity,\n actions?: ActionPickerItem[],\n agents?: AgentPickerItem[]\n ): { Icon: string; LogoURL?: string | null } {\n const fallbackIcon = this.getIconForType(step.StepType);\n\n if (step.LoopBodyType === 'Action' && step.ActionID && actions) {\n const action = actions.find(a => UUIDsEqual(a.ID, step.ActionID));\n if (action?.IconClass) return { Icon: fallbackIcon }; // Loop keeps its own icon; body icon handled separately\n }\n\n if (step.LoopBodyType === 'Sub-Agent' && step.SubAgentID && agents) {\n const agent = agents.find(a => UUIDsEqual(a.ID, step.SubAgentID));\n if (agent?.LogoURL) return { Icon: fallbackIcon, LogoURL: agent.LogoURL };\n }\n\n return { Icon: fallbackIcon };\n }\n\n // ── Public Conversion Methods ───────────────────────────────\n\n /** Convert a single MJ step entity to a FlowNode (public for direct use when adding nodes) */\n StepToNode(\n step: MJAIAgentStepEntity,\n actions?: ActionPickerItem[],\n agents?: AgentPickerItem[],\n problems: readonly FlowRunProblem[] = []\n ): FlowNode {\n const stepId = step.ID;\n const ports: FlowNodePort[] = [\n {\n ID: `${stepId}-input`,\n Direction: 'input',\n Side: 'top',\n Multiple: true,\n Disabled: step.StartingStep === true\n },\n {\n ID: `${stepId}-output`,\n Direction: 'output',\n Side: 'bottom',\n Multiple: true\n }\n ];\n\n // Show warning status when the step is missing its required configuration or the flow check\n // refuses something on it, unless the step is explicitly disabled (respect the user's intent).\n const baseStatus = this.MapStepStatus(step.Status);\n const warningMessage = this.BuildNodeWarning(step, problems);\n const effectiveStatus = warningMessage ? 'warning' : baseStatus;\n\n // Build loop-specific data for ForEach/While nodes\n const data: Record<string, unknown> = { StepEntityID: stepId };\n if (step.StepType === 'ForEach' || step.StepType === 'While') {\n this.populateLoopData(step, data, actions, agents);\n }\n\n // Resolve icon (and optional logo URL) from picker data\n const resolved = this.ResolveStepIcon(step, actions, agents);\n if (resolved.LogoURL) {\n data['LogoURL'] = resolved.LogoURL;\n }\n\n return {\n ID: stepId,\n Type: step.StepType,\n Label: step.Name,\n Subtitle: this.BuildStepSubtitle(step),\n Icon: resolved.Icon,\n Status: effectiveStatus,\n StatusMessage: warningMessage ?? undefined,\n IsStartNode: step.StartingStep === true,\n Position: {\n X: step.PositionX ?? 0,\n Y: step.PositionY ?? 0\n },\n Size: {\n Width: step.Width ?? 220,\n Height: step.Height ?? 100\n },\n Ports: ports,\n Data: data\n };\n }\n\n private pathToConnection(\n path: MJAIAgentStepPathEntity,\n allPaths: MJAIAgentStepPathEntity[],\n problems: readonly FlowRunProblem[] = []\n ): FlowConnection {\n const hasCondition = path.Condition != null && path.Condition.trim().length > 0;\n const isAlwaysPath = !hasCondition;\n\n // Analyze sibling paths from the same origin step\n const siblingPaths = allPaths.filter(p => UUIDsEqual(p.OriginStepID, path.OriginStepID));\n const isOnlyPath = siblingPaths.length === 1;\n const unconditionalSiblings = siblingPaths.filter(\n p => !p.Condition || p.Condition.trim().length === 0\n );\n // Flag as ambiguous when 2+ unconditional paths exist from the same source.\n // Multiple unconditional paths are always ambiguous because only the\n // highest-priority one will execute — regardless of whether they have descriptions.\n const hasAmbiguousAlways = isAlwaysPath && unconditionalSiblings.length > 1;\n\n // Where this path sits in its exclusive group, when it is IN one. Highest Priority wins, ties\n // broken by path ID — and none of that precedence is visible on the canvas today, so someone\n // debugging a fork cannot tell which branch takes it when two conditions are both true.\n const conditionalSiblings = siblingPaths.filter(p => p.Condition && p.Condition.trim().length > 0);\n const rank = hasCondition && conditionalSiblings.length > 1\n ? this.rankWithinGroup(path, conditionalSiblings)\n : null;\n\n // Build label, icon, and visual style\n const pathProblems = PathRunProblems(problems, path.ID).map(p => p.Message);\n const visual = this.withPathProblems(\n this.buildPathVisuals(path, hasCondition, isOnlyPath, hasAmbiguousAlways, rank),\n pathProblems\n );\n\n return {\n ID: path.ID,\n SourceNodeID: path.OriginStepID,\n SourcePortID: `${path.OriginStepID}-output`,\n TargetNodeID: path.DestinationStepID,\n TargetPortID: `${path.DestinationStepID}-input`,\n Label: visual.label,\n LabelIcon: visual.labelIcon,\n LabelIconColor: visual.labelIconColor,\n LabelDetail: visual.labelDetail,\n Condition: path.Condition ?? undefined,\n Priority: path.Priority,\n Style: visual.style,\n Color: visual.color,\n Data: {\n PathEntityID: path.ID,\n IsAlwaysPath: !hasCondition,\n HasAmbiguousAlways: hasAmbiguousAlways\n }\n };\n }\n\n /**\n * What an edge says on the canvas, and what it says on inspection.\n *\n * **An edge label answers one question: WHEN is this path taken?** That is the condition. The\n * `Description` is the author's rationale — genuinely useful, and inspection-time content: it is\n * prose, it is arbitrarily long, and rendering it always turned the least important element on the\n * canvas into the most visually dominant one, overlapping nodes and other labels.\n *\n * So the condition is the LABEL (truncated), the description is the DETAIL (the hover tooltip),\n * and an unconditional edge says nothing at all — a plain line already means \"then\". That last\n * rule removes most of the clutter on a real graph, because most edges are unconditional.\n */\n private buildPathVisuals(\n path: MJAIAgentStepPathEntity,\n hasCondition: boolean,\n isOnlyPath: boolean,\n hasAmbiguousAlways: boolean,\n rank: { position: number; total: number } | null = null\n ): PathVisual {\n const rationale = path.Description?.trim();\n\n // Conditional path — amber dashed, labelled with the RULE.\n if (hasCondition) {\n const condition = path.Condition!.trim();\n // The rank prefix is tiny and always fits, so it survives truncation — which matters, because\n // precedence is exactly what a truncated condition would otherwise hide.\n const prefix = rank ? `${rank.position}/${rank.total} ` : '';\n const precedence = rank\n ? `\\n\\nChecked ${ordinal(rank.position)} of ${rank.total}: highest priority wins, ties by path ID.`\n : '';\n return {\n label: prefix + this.truncateLabel(condition, rank ? 28 : 32),\n labelIcon: 'fa-code-branch',\n labelIconColor: '#f59e0b',\n // Full condition first — a truncated label is only safe if the whole thing is one hover\n // away — then the rationale, then how this branch is chosen against its siblings.\n labelDetail: (rationale ? `${condition}\\n\\n${rationale}` : condition) + precedence,\n color: '#f59e0b',\n style: 'dashed'\n };\n }\n\n // Ambiguous: multiple unconditional paths from the same step. This one KEEPS its label, because\n // it is a defect the author needs to see without hovering anything.\n if (hasAmbiguousAlways) {\n return {\n label: 'Duplicate default',\n labelIcon: 'fa-triangle-exclamation',\n labelIconColor: '#ef4444',\n labelDetail: rationale\n ? `Duplicate default paths: only the highest-priority one will execute.\\n\\n${rationale}`\n : 'Duplicate default paths: only the highest-priority one will execute',\n color: '#ef4444',\n style: 'solid'\n };\n }\n\n // Every other unconditional path — NO LABEL. The line already means \"then\", and \"Default\" on\n // every edge of a linear flow is a caption on each arrow of a diagram saying \"arrow\".\n // The rationale stays reachable on hover.\n return {\n labelDetail: rationale || undefined,\n color: isOnlyPath ? '#64748b' : '#16a34a',\n style: 'solid'\n };\n }\n\n /**\n * An edge the flow check refuses keeps its label but turns red with a warning icon, and its detail\n * leads with why — so a broken condition is visible on the canvas without selecting the path.\n */\n private withPathProblems(visual: PathVisual, problems: readonly string[]): PathVisual {\n if (problems.length === 0) return visual;\n const why = problems.join('\\n\\n');\n return {\n ...visual,\n labelIcon: 'fa-triangle-exclamation',\n labelIconColor: '#ef4444',\n labelDetail: visual.labelDetail ? `${why}\\n\\n${visual.labelDetail}` : why,\n color: '#ef4444'\n };\n }\n\n /**\n * This path's position among its conditional siblings, in the order the dispatcher checks them.\n *\n * Mirrors the COMPILER, which is where the order is actually decided: `buildDependencies` sorts a\n * fan-out by `Priority` descending, then path ID ascending, and writes that ordinal into\n * `TaskDependency.Sequence` — which is what `ResolveExclusiveGroups` then reads at runtime. A path\n * row has no `Sequence` of its own and deliberately never has: a compiled edge gets a fresh UUID\n * and needs a stored ordinal to stay deterministic across machines, while a design-time path still\n * has its own stable ID to break the tie with. Ranking here by anything else would disagree with\n * the engine precisely on ties — and `Priority` defaults to 0, so ties are the common case.\n */\n private rankWithinGroup(\n path: MJAIAgentStepPathEntity,\n siblings: MJAIAgentStepPathEntity[]\n ): { position: number; total: number } {\n const ordered = [...siblings].sort((a, b) =>\n (b.Priority ?? 0) - (a.Priority ?? 0) || a.ID.localeCompare(b.ID)\n );\n return {\n position: ordered.findIndex(p => UUIDsEqual(p.ID, path.ID)) + 1,\n total: ordered.length\n };\n }\n\n /**\n * Trims a condition to what fits on an edge without covering its neighbours.\n *\n * Breaks on a word boundary when there is one near the limit, so the visible part stays readable\n * rather than ending mid-identifier. The full text is always in `labelDetail`.\n */\n private truncateLabel(text: string, limit = 32): string {\n const flat = text.replace(/\\s+/g, ' ').trim();\n if (flat.length <= limit) return flat;\n\n const cut = flat.slice(0, limit);\n const lastSpace = cut.lastIndexOf(' ');\n return `${(lastSpace > limit * 0.6 ? cut.slice(0, lastSpace) : cut).trimEnd()}…`;\n }\n\n /** Populate loop-specific display data on the node's Data payload */\n private populateLoopData(\n step: MJAIAgentStepEntity,\n data: Record<string, unknown>,\n actions?: ActionPickerItem[],\n agents?: AgentPickerItem[]\n ): void {\n const bodyType = step.LoopBodyType;\n data['LoopBodyType'] = bodyType ?? null;\n data['LoopBodyName'] = bodyType ? this.resolveLoopBodyName(step) : null;\n data['LoopBodyIcon'] = bodyType ? this.resolveLoopBodySpecificIcon(step, actions, agents) : null;\n data['LoopBodyColor'] = bodyType ? this.getBodyTypeColor(bodyType) : null;\n data['LoopIterationSummary'] = this.BuildLoopIterationSummary(step);\n\n // Store logo URL for loop body sub-agents\n if (bodyType === 'Sub-Agent' && step.SubAgentID && agents) {\n const agent = agents.find(a => UUIDsEqual(a.ID, step.SubAgentID));\n if (agent?.LogoURL) {\n data['LoopBodyLogoURL'] = agent.LogoURL;\n }\n }\n\n const config = this.parseLoopConfig(step);\n if (config) {\n data['MaxIterations'] = config['maxIterations'] ?? null;\n data['LoopItemVariable'] = config['itemVariable'] ?? null;\n }\n }\n\n /** Resolve the best icon for a loop body, checking picker data first */\n private resolveLoopBodySpecificIcon(\n step: MJAIAgentStepEntity,\n actions?: ActionPickerItem[],\n agents?: AgentPickerItem[]\n ): string {\n const bodyType = step.LoopBodyType;\n const fallback = this.getBodyTypeIcon(bodyType ?? '');\n\n if (bodyType === 'Action' && step.ActionID && actions) {\n const action = actions.find(a => UUIDsEqual(a.ID, step.ActionID));\n return action?.IconClass || fallback;\n }\n if (bodyType === 'Sub-Agent' && step.SubAgentID && agents) {\n const agent = agents.find(a => UUIDsEqual(a.ID, step.SubAgentID));\n return agent?.IconClass || fallback;\n }\n return fallback;\n }\n\n /** Get icon for a loop body type */\n private getBodyTypeIcon(bodyType: string): string {\n switch (bodyType) {\n case 'Action': return 'fa-bolt';\n case 'Prompt': return 'fa-comment-dots';\n case 'Sub-Agent': return 'fa-robot';\n default: return 'fa-circle-nodes';\n }\n }\n\n /** Get color for a loop body type */\n private getBodyTypeColor(bodyType: string): string {\n switch (bodyType) {\n case 'Action': return '#3B82F6';\n case 'Prompt': return '#8B5CF6';\n case 'Sub-Agent': return '#10B981';\n default: return '#6B7280';\n }\n }\n\n private getIconForType(stepType: string): string {\n const config = AGENT_STEP_TYPE_CONFIGS.find(c => c.Type === stepType);\n return config?.Icon ?? 'fa-circle-nodes';\n }\n\n private buildLoopSubtitle(step: MJAIAgentStepEntity, prefix: string): string {\n const bodyType = step.LoopBodyType;\n if (!bodyType) return `${prefix} (no body type)`;\n const bodyName = this.resolveLoopBodyName(step);\n return bodyName ? `${prefix} → ${bodyName}` : `${prefix} → ${bodyType}`;\n }\n\n /** Resolve the display name for the loop body operation */\n private resolveLoopBodyName(step: MJAIAgentStepEntity): string | null {\n switch (step.LoopBodyType) {\n case 'Action': return step.Action ?? null;\n case 'Prompt': return step.Prompt ?? null;\n case 'Sub-Agent': return step.SubAgent ?? null;\n default: return null;\n }\n }\n\n /** Parse the Configuration JSON, returning null on failure */\n private parseLoopConfig(step: MJAIAgentStepEntity): Record<string, unknown> | null {\n if (!step.Configuration) return null;\n try {\n return JSON.parse(step.Configuration) as Record<string, unknown>;\n } catch {\n return null;\n }\n }\n\n /** Build a short iteration summary for display on loop nodes */\n BuildLoopIterationSummary(step: MJAIAgentStepEntity): string {\n const config = this.parseLoopConfig(step);\n if (step.StepType === 'ForEach') {\n const collection = config?.['collectionPath'] as string | undefined;\n return collection ? `over ${collection}` : 'over collection';\n }\n if (step.StepType === 'While') {\n const condition = config?.['condition'] as string | undefined;\n return condition ? `while ${this.truncateCondition(condition)}` : 'while condition';\n }\n return '';\n }\n\n private truncateCondition(condition: string): string {\n const maxLen = 30;\n if (condition.length <= maxLen) return condition;\n return condition.substring(0, maxLen) + '...';\n }\n}\n"]}
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;AAG3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,eAAe,EAAuB,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;;AAQ5D,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,QAAQ;QACd,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,iBAAiB;QACvB,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,QAA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AC,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;qHAzjBU,2BAA2B;gEAA3B,2BAA2B,WAA3B,2BAA2B;;iFAA3B,2BAA2B;cADvC,UAAU","sourcesContent":["import { Injectable } from '@angular/core';\nimport { MJAIAgentStepEntity, MJAIAgentStepPathEntity } from '@memberjunction/core-entities';\nimport { FlowNode, FlowConnection, FlowConnectionStyle, FlowNodeTypeConfig, FlowNodePort } from '../interfaces/flow-types';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { ReadFlowDecisionStepConfiguration } from '@memberjunction/ai-core-plus';\nimport { PathRunProblems, StepRunProblems, type FlowRunProblem } from './flow-run-check';\nimport { WaitingStepSubtitle } from './waiting-step-config';\n\n/** Picker item shape for Actions with optional icon */\nexport interface ActionPickerItem { ID: string; Name: string; IconClass?: string | null; }\n\n/** Picker item shape for Agents with optional icon and logo */\nexport interface AgentPickerItem { ID: string; Name: string; IconClass?: string | null; LogoURL?: string | null; }\n\n/** Step types mapped to visual configuration */\nexport const AGENT_STEP_TYPE_CONFIGS: FlowNodeTypeConfig[] = [\n {\n Type: 'Action',\n Label: 'Action',\n Icon: 'fa-bolt',\n Color: '#3B82F6',\n Category: 'Steps',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'Prompt',\n Label: 'Prompt',\n Icon: 'fa-comment-dots',\n Color: '#8B5CF6',\n Category: 'Steps',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'Decision',\n Label: 'Decision',\n Icon: 'fa-scale-balanced',\n Color: '#0891b2',\n Category: 'Steps',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'Sub-Agent',\n Label: 'Sub-Agent',\n Icon: 'fa-robot',\n Color: '#10B981',\n Category: 'Steps',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'Human',\n Label: 'Person',\n Icon: 'fa-user-check',\n Color: '#7B1FA2',\n Category: 'Waiting',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'External',\n Label: 'External Signal',\n Icon: 'fa-arrow-up-right-from-square',\n Color: '#0891B2',\n Category: 'Waiting',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'Wait',\n Label: 'Wait',\n Icon: 'fa-hourglass-half',\n Color: '#64748B',\n Category: 'Waiting',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'ForEach',\n Label: 'For Each',\n Icon: 'fa-arrows-repeat',\n Color: '#F59E0B',\n Category: 'Loops',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n },\n {\n Type: 'While',\n Label: 'While',\n Icon: 'fa-rotate',\n Color: '#F97316',\n Category: 'Loops',\n DefaultPorts: [\n { ID: 'input', Direction: 'input', Side: 'top', Multiple: true },\n { ID: 'output', Direction: 'output', Side: 'bottom', Multiple: true }\n ]\n }\n];\n\n/** \"1st\", \"2nd\", \"3rd\", … for the precedence note on an exclusive branch. */\nfunction ordinal(n: number): string {\n const suffix = n % 100 >= 11 && n % 100 <= 13 ? 'th'\n : ['th', 'st', 'nd', 'rd'][n % 10] ?? 'th';\n return `${n}${suffix}`;\n}\n\n/** How an edge reads on the canvas. */\ntype PathVisual = {\n label?: string;\n labelIcon?: string;\n labelIconColor?: string;\n labelDetail?: string;\n color: string;\n style: FlowConnectionStyle;\n};\n\n/**\n * Transforms MJ AIAgentStep/Path entities to/from generic FlowNode/FlowConnection models.\n */\n@Injectable()\nexport class AgentFlowTransformerService {\n\n /** Convert MJ step entities to generic FlowNodes, each warning about its share of `problems` */\n StepsToNodes(\n steps: MJAIAgentStepEntity[],\n actions?: ActionPickerItem[],\n agents?: AgentPickerItem[],\n problems: readonly FlowRunProblem[] = []\n ): FlowNode[] {\n return steps.map(step => this.StepToNode(step, actions, agents, problems));\n }\n\n /** Convert MJ path entities to generic FlowConnections, each flagging its share of `problems` */\n PathsToConnections(paths: MJAIAgentStepPathEntity[], problems: readonly FlowRunProblem[] = []): FlowConnection[] {\n return paths.map(path => this.pathToConnection(path, paths, problems));\n }\n\n /**\n * What a step's node warns about: its own missing configuration, then each flow-check problem on the\n * step that is not already that. A path's problem is flagged on the path instead. Nothing for a\n * disabled step, which the author has taken out of the flow.\n */\n BuildNodeWarning(step: MJAIAgentStepEntity, problems: readonly FlowRunProblem[] = []): string | null {\n if (this.MapStepStatus(step.Status) === 'disabled') return null;\n const flow = StepRunProblems(problems, step.ID).map(p => p.Message);\n const messages = [this.BuildConfigWarningMessage(step), ...flow].filter((m): m is string => !!m);\n return messages.length > 0 ? messages.join('\\n') : null;\n }\n\n /** Build the subtitle for a step based on its configured action/prompt/agent */\n BuildStepSubtitle(step: MJAIAgentStepEntity): string {\n switch (step.StepType) {\n case 'Action':\n return step.Action ? `Action: ${step.Action}` : 'No action selected';\n case 'Prompt':\n return step.Prompt ? `Prompt: ${step.Prompt}` : 'No prompt selected';\n case 'Sub-Agent':\n return step.SubAgent ? `Agent: ${step.SubAgent}` : 'No sub-agent selected';\n case 'ForEach':\n return this.buildLoopSubtitle(step, 'For Each');\n case 'While':\n return this.buildLoopSubtitle(step, 'While');\n case 'Decision': {\n const read = ReadFlowDecisionStepConfiguration(step.Configuration);\n if ('Config' in read) {\n const count = Object.keys(read.Config.questions || {}).length;\n return `${read.Config.key} · ${count} ${count === 1 ? 'question' : 'questions'}`;\n }\n return 'Unconfigured';\n }\n case 'Human':\n case 'External':\n case 'Wait':\n return WaitingStepSubtitle(step.StepType, step.Configuration);\n default:\n return step.StepType;\n }\n }\n\n /** Apply FlowNode position changes back to a step entity */\n ApplyNodePosition(step: MJAIAgentStepEntity, node: FlowNode): void {\n step.PositionX = Math.round(node.Position.X);\n step.PositionY = Math.round(node.Position.Y);\n if (node.Size) {\n step.Width = Math.round(node.Size.Width);\n step.Height = Math.round(node.Size.Height);\n }\n }\n\n /** Map FlowNode status from step entity status */\n MapStepStatus(stepStatus: string): FlowNode['Status'] {\n switch (stepStatus) {\n case 'Active': return 'default';\n case 'Disabled': return 'disabled';\n case 'Pending': return 'pending';\n default: return 'default';\n }\n }\n\n /**\n * Returns a short human-readable message describing what's missing,\n * or null if the step is fully configured.\n */\n BuildConfigWarningMessage(step: MJAIAgentStepEntity): string | null {\n switch (step.StepType) {\n case 'Action':\n return !step.ActionID ? 'No action selected' : null;\n case 'Prompt':\n return !step.PromptID ? 'No prompt selected' : null;\n case 'Sub-Agent':\n return !step.SubAgentID ? 'No sub-agent selected' : null;\n case 'ForEach':\n case 'While':\n return this.buildLoopWarningMessage(step);\n case 'Decision': {\n const read = ReadFlowDecisionStepConfiguration(step.Configuration);\n return 'Error' in read ? read.Error : null;\n }\n default:\n return null;\n }\n }\n\n private buildLoopWarningMessage(step: MJAIAgentStepEntity): string | null {\n const bodyType = step.LoopBodyType;\n if (!bodyType) return 'No loop body type selected';\n switch (bodyType) {\n case 'Action': return !step.ActionID ? 'No action selected for loop body' : null;\n case 'Prompt': return !step.PromptID ? 'No prompt selected for loop body' : null;\n case 'Sub-Agent': return !step.SubAgentID ? 'No sub-agent selected for loop body' : null;\n default: return null;\n }\n }\n\n /**\n * Returns true when a step is missing its required configuration reference\n * (e.g., an Action step with no ActionID, a Prompt step with no PromptID).\n */\n IsStepMissingConfiguration(step: MJAIAgentStepEntity): boolean {\n switch (step.StepType) {\n case 'Action':\n return !step.ActionID;\n case 'Prompt':\n return !step.PromptID;\n case 'Sub-Agent':\n return !step.SubAgentID;\n case 'ForEach':\n case 'While':\n return this.isLoopBodyMissingReference(step);\n case 'Decision': {\n const read = ReadFlowDecisionStepConfiguration(step.Configuration);\n return 'Error' in read;\n }\n default:\n return false;\n }\n }\n\n private isLoopBodyMissingReference(step: MJAIAgentStepEntity): boolean {\n const bodyType = step.LoopBodyType;\n if (!bodyType) return true; // No body type selected at all\n switch (bodyType) {\n case 'Action': return !step.ActionID;\n case 'Prompt': return !step.PromptID;\n case 'Sub-Agent': return !step.SubAgentID;\n default: return false;\n }\n }\n\n /**\n * Resolve the best icon and optional logo URL for a step based on its\n * configured action/agent and available picker data.\n *\n * Resolution chain:\n * - Action step: action's IconClass -> step-type fallback\n * - Sub-Agent step: agent's LogoURL (stored in Data) -> agent's IconClass -> step-type fallback\n * - Other steps: step-type icon\n */\n ResolveStepIcon(\n step: MJAIAgentStepEntity,\n actions?: ActionPickerItem[],\n agents?: AgentPickerItem[]\n ): { Icon: string; LogoURL?: string | null } {\n const fallbackIcon = this.getIconForType(step.StepType);\n\n if (step.StepType === 'Action' && step.ActionID && actions) {\n const action = actions.find(a => UUIDsEqual(a.ID, step.ActionID));\n return { Icon: action?.IconClass || fallbackIcon };\n }\n\n if (step.StepType === 'Sub-Agent' && step.SubAgentID && agents) {\n const agent = agents.find(a => UUIDsEqual(a.ID, step.SubAgentID));\n if (agent?.LogoURL) {\n return { Icon: agent.IconClass || fallbackIcon, LogoURL: agent.LogoURL };\n }\n return { Icon: agent?.IconClass || fallbackIcon };\n }\n\n // For loop steps, resolve based on loop body type\n if ((step.StepType === 'ForEach' || step.StepType === 'While') && step.LoopBodyType) {\n return this.resolveLoopBodyIcon(step, actions, agents);\n }\n\n return { Icon: fallbackIcon };\n }\n\n private resolveLoopBodyIcon(\n step: MJAIAgentStepEntity,\n actions?: ActionPickerItem[],\n agents?: AgentPickerItem[]\n ): { Icon: string; LogoURL?: string | null } {\n const fallbackIcon = this.getIconForType(step.StepType);\n\n if (step.LoopBodyType === 'Action' && step.ActionID && actions) {\n const action = actions.find(a => UUIDsEqual(a.ID, step.ActionID));\n if (action?.IconClass) return { Icon: fallbackIcon }; // Loop keeps its own icon; body icon handled separately\n }\n\n if (step.LoopBodyType === 'Sub-Agent' && step.SubAgentID && agents) {\n const agent = agents.find(a => UUIDsEqual(a.ID, step.SubAgentID));\n if (agent?.LogoURL) return { Icon: fallbackIcon, LogoURL: agent.LogoURL };\n }\n\n return { Icon: fallbackIcon };\n }\n\n // ── Public Conversion Methods ───────────────────────────────\n\n /** Convert a single MJ step entity to a FlowNode (public for direct use when adding nodes) */\n StepToNode(\n step: MJAIAgentStepEntity,\n actions?: ActionPickerItem[],\n agents?: AgentPickerItem[],\n problems: readonly FlowRunProblem[] = []\n ): FlowNode {\n const stepId = step.ID;\n const ports: FlowNodePort[] = [\n {\n ID: `${stepId}-input`,\n Direction: 'input',\n Side: 'top',\n Multiple: true,\n Disabled: step.StartingStep === true\n },\n {\n ID: `${stepId}-output`,\n Direction: 'output',\n Side: 'bottom',\n Multiple: true\n }\n ];\n\n // Show warning status when the step is missing its required configuration or the flow check\n // refuses something on it, unless the step is explicitly disabled (respect the user's intent).\n const baseStatus = this.MapStepStatus(step.Status);\n const warningMessage = this.BuildNodeWarning(step, problems);\n const effectiveStatus = warningMessage ? 'warning' : baseStatus;\n\n // Build loop-specific data for ForEach/While nodes\n const data: Record<string, unknown> = { StepEntityID: stepId };\n if (step.StepType === 'ForEach' || step.StepType === 'While') {\n this.populateLoopData(step, data, actions, agents);\n }\n\n // Resolve icon (and optional logo URL) from picker data\n const resolved = this.ResolveStepIcon(step, actions, agents);\n if (resolved.LogoURL) {\n data['LogoURL'] = resolved.LogoURL;\n }\n\n return {\n ID: stepId,\n Type: step.StepType,\n Label: step.Name,\n Subtitle: this.BuildStepSubtitle(step),\n Icon: resolved.Icon,\n Status: effectiveStatus,\n StatusMessage: warningMessage ?? undefined,\n IsStartNode: step.StartingStep === true,\n Position: {\n X: step.PositionX ?? 0,\n Y: step.PositionY ?? 0\n },\n Size: {\n Width: step.Width ?? 220,\n Height: step.Height ?? 100\n },\n Ports: ports,\n Data: data\n };\n }\n\n private pathToConnection(\n path: MJAIAgentStepPathEntity,\n allPaths: MJAIAgentStepPathEntity[],\n problems: readonly FlowRunProblem[] = []\n ): FlowConnection {\n const hasCondition = path.Condition != null && path.Condition.trim().length > 0;\n const isAlwaysPath = !hasCondition;\n\n // Analyze sibling paths from the same origin step\n const siblingPaths = allPaths.filter(p => UUIDsEqual(p.OriginStepID, path.OriginStepID));\n const isOnlyPath = siblingPaths.length === 1;\n const unconditionalSiblings = siblingPaths.filter(\n p => !p.Condition || p.Condition.trim().length === 0\n );\n // Flag as ambiguous when 2+ unconditional paths exist from the same source.\n // Multiple unconditional paths are always ambiguous because only the\n // highest-priority one will execute — regardless of whether they have descriptions.\n const hasAmbiguousAlways = isAlwaysPath && unconditionalSiblings.length > 1;\n\n // Where this path sits in its exclusive group, when it is IN one. Highest Priority wins, ties\n // broken by path ID — and none of that precedence is visible on the canvas today, so someone\n // debugging a fork cannot tell which branch takes it when two conditions are both true.\n const conditionalSiblings = siblingPaths.filter(p => p.Condition && p.Condition.trim().length > 0);\n const rank = hasCondition && conditionalSiblings.length > 1\n ? this.rankWithinGroup(path, conditionalSiblings)\n : null;\n\n // Build label, icon, and visual style\n const pathProblems = PathRunProblems(problems, path.ID).map(p => p.Message);\n const visual = this.withPathProblems(\n this.buildPathVisuals(path, hasCondition, isOnlyPath, hasAmbiguousAlways, rank),\n pathProblems\n );\n\n return {\n ID: path.ID,\n SourceNodeID: path.OriginStepID,\n SourcePortID: `${path.OriginStepID}-output`,\n TargetNodeID: path.DestinationStepID,\n TargetPortID: `${path.DestinationStepID}-input`,\n Label: visual.label,\n LabelIcon: visual.labelIcon,\n LabelIconColor: visual.labelIconColor,\n LabelDetail: visual.labelDetail,\n Condition: path.Condition ?? undefined,\n Priority: path.Priority,\n Style: visual.style,\n Color: visual.color,\n Data: {\n PathEntityID: path.ID,\n IsAlwaysPath: !hasCondition,\n HasAmbiguousAlways: hasAmbiguousAlways\n }\n };\n }\n\n /**\n * What an edge says on the canvas, and what it says on inspection.\n *\n * **An edge label answers one question: WHEN is this path taken?** That is the condition. The\n * `Description` is the author's rationale — genuinely useful, and inspection-time content: it is\n * prose, it is arbitrarily long, and rendering it always turned the least important element on the\n * canvas into the most visually dominant one, overlapping nodes and other labels.\n *\n * So the condition is the LABEL (truncated), the description is the DETAIL (the hover tooltip),\n * and an unconditional edge says nothing at all — a plain line already means \"then\". That last\n * rule removes most of the clutter on a real graph, because most edges are unconditional.\n */\n private buildPathVisuals(\n path: MJAIAgentStepPathEntity,\n hasCondition: boolean,\n isOnlyPath: boolean,\n hasAmbiguousAlways: boolean,\n rank: { position: number; total: number } | null = null\n ): PathVisual {\n const rationale = path.Description?.trim();\n\n // Conditional path — amber dashed, labelled with the RULE.\n if (hasCondition) {\n const condition = path.Condition!.trim();\n // The rank prefix is tiny and always fits, so it survives truncation — which matters, because\n // precedence is exactly what a truncated condition would otherwise hide.\n const prefix = rank ? `${rank.position}/${rank.total} ` : '';\n const precedence = rank\n ? `\\n\\nChecked ${ordinal(rank.position)} of ${rank.total}: highest priority wins, ties by path ID.`\n : '';\n return {\n label: prefix + this.truncateLabel(condition, rank ? 28 : 32),\n labelIcon: 'fa-code-branch',\n labelIconColor: '#f59e0b',\n // Full condition first — a truncated label is only safe if the whole thing is one hover\n // away — then the rationale, then how this branch is chosen against its siblings.\n labelDetail: (rationale ? `${condition}\\n\\n${rationale}` : condition) + precedence,\n color: '#f59e0b',\n style: 'dashed'\n };\n }\n\n // Ambiguous: multiple unconditional paths from the same step. This one KEEPS its label, because\n // it is a defect the author needs to see without hovering anything.\n if (hasAmbiguousAlways) {\n return {\n label: 'Duplicate default',\n labelIcon: 'fa-triangle-exclamation',\n labelIconColor: '#ef4444',\n labelDetail: rationale\n ? `Duplicate default paths: only the highest-priority one will execute.\\n\\n${rationale}`\n : 'Duplicate default paths: only the highest-priority one will execute',\n color: '#ef4444',\n style: 'solid'\n };\n }\n\n // Every other unconditional path — NO LABEL. The line already means \"then\", and \"Default\" on\n // every edge of a linear flow is a caption on each arrow of a diagram saying \"arrow\".\n // The rationale stays reachable on hover.\n return {\n labelDetail: rationale || undefined,\n color: isOnlyPath ? '#64748b' : '#16a34a',\n style: 'solid'\n };\n }\n\n /**\n * An edge the flow check refuses keeps its label but turns red with a warning icon, and its detail\n * leads with why — so a broken condition is visible on the canvas without selecting the path.\n */\n private withPathProblems(visual: PathVisual, problems: readonly string[]): PathVisual {\n if (problems.length === 0) return visual;\n const why = problems.join('\\n\\n');\n return {\n ...visual,\n labelIcon: 'fa-triangle-exclamation',\n labelIconColor: '#ef4444',\n labelDetail: visual.labelDetail ? `${why}\\n\\n${visual.labelDetail}` : why,\n color: '#ef4444'\n };\n }\n\n /**\n * This path's position among its conditional siblings, in the order the dispatcher checks them.\n *\n * Mirrors the COMPILER, which is where the order is actually decided: `buildDependencies` sorts a\n * fan-out by `Priority` descending, then path ID ascending, and writes that ordinal into\n * `TaskDependency.Sequence` — which is what `ResolveExclusiveGroups` then reads at runtime. A path\n * row has no `Sequence` of its own and deliberately never has: a compiled edge gets a fresh UUID\n * and needs a stored ordinal to stay deterministic across machines, while a design-time path still\n * has its own stable ID to break the tie with. Ranking here by anything else would disagree with\n * the engine precisely on ties — and `Priority` defaults to 0, so ties are the common case.\n */\n private rankWithinGroup(\n path: MJAIAgentStepPathEntity,\n siblings: MJAIAgentStepPathEntity[]\n ): { position: number; total: number } {\n const ordered = [...siblings].sort((a, b) =>\n (b.Priority ?? 0) - (a.Priority ?? 0) || a.ID.localeCompare(b.ID)\n );\n return {\n position: ordered.findIndex(p => UUIDsEqual(p.ID, path.ID)) + 1,\n total: ordered.length\n };\n }\n\n /**\n * Trims a condition to what fits on an edge without covering its neighbours.\n *\n * Breaks on a word boundary when there is one near the limit, so the visible part stays readable\n * rather than ending mid-identifier. The full text is always in `labelDetail`.\n */\n private truncateLabel(text: string, limit = 32): string {\n const flat = text.replace(/\\s+/g, ' ').trim();\n if (flat.length <= limit) return flat;\n\n const cut = flat.slice(0, limit);\n const lastSpace = cut.lastIndexOf(' ');\n return `${(lastSpace > limit * 0.6 ? cut.slice(0, lastSpace) : cut).trimEnd()}…`;\n }\n\n /** Populate loop-specific display data on the node's Data payload */\n private populateLoopData(\n step: MJAIAgentStepEntity,\n data: Record<string, unknown>,\n actions?: ActionPickerItem[],\n agents?: AgentPickerItem[]\n ): void {\n const bodyType = step.LoopBodyType;\n data['LoopBodyType'] = bodyType ?? null;\n data['LoopBodyName'] = bodyType ? this.resolveLoopBodyName(step) : null;\n data['LoopBodyIcon'] = bodyType ? this.resolveLoopBodySpecificIcon(step, actions, agents) : null;\n data['LoopBodyColor'] = bodyType ? this.getBodyTypeColor(bodyType) : null;\n data['LoopIterationSummary'] = this.BuildLoopIterationSummary(step);\n\n // Store logo URL for loop body sub-agents\n if (bodyType === 'Sub-Agent' && step.SubAgentID && agents) {\n const agent = agents.find(a => UUIDsEqual(a.ID, step.SubAgentID));\n if (agent?.LogoURL) {\n data['LoopBodyLogoURL'] = agent.LogoURL;\n }\n }\n\n const config = this.parseLoopConfig(step);\n if (config) {\n data['MaxIterations'] = config['maxIterations'] ?? null;\n data['LoopItemVariable'] = config['itemVariable'] ?? null;\n }\n }\n\n /** Resolve the best icon for a loop body, checking picker data first */\n private resolveLoopBodySpecificIcon(\n step: MJAIAgentStepEntity,\n actions?: ActionPickerItem[],\n agents?: AgentPickerItem[]\n ): string {\n const bodyType = step.LoopBodyType;\n const fallback = this.getBodyTypeIcon(bodyType ?? '');\n\n if (bodyType === 'Action' && step.ActionID && actions) {\n const action = actions.find(a => UUIDsEqual(a.ID, step.ActionID));\n return action?.IconClass || fallback;\n }\n if (bodyType === 'Sub-Agent' && step.SubAgentID && agents) {\n const agent = agents.find(a => UUIDsEqual(a.ID, step.SubAgentID));\n return agent?.IconClass || fallback;\n }\n return fallback;\n }\n\n /** Get icon for a loop body type */\n private getBodyTypeIcon(bodyType: string): string {\n switch (bodyType) {\n case 'Action': return 'fa-bolt';\n case 'Prompt': return 'fa-comment-dots';\n case 'Sub-Agent': return 'fa-robot';\n default: return 'fa-circle-nodes';\n }\n }\n\n /** Get color for a loop body type */\n private getBodyTypeColor(bodyType: string): string {\n switch (bodyType) {\n case 'Action': return '#3B82F6';\n case 'Prompt': return '#8B5CF6';\n case 'Sub-Agent': return '#10B981';\n default: return '#6B7280';\n }\n }\n\n private getIconForType(stepType: string): string {\n const config = AGENT_STEP_TYPE_CONFIGS.find(c => c.Type === stepType);\n return config?.Icon ?? 'fa-circle-nodes';\n }\n\n private buildLoopSubtitle(step: MJAIAgentStepEntity, prefix: string): string {\n const bodyType = step.LoopBodyType;\n if (!bodyType) return `${prefix} (no body type)`;\n const bodyName = this.resolveLoopBodyName(step);\n return bodyName ? `${prefix} → ${bodyName}` : `${prefix} → ${bodyType}`;\n }\n\n /** Resolve the display name for the loop body operation */\n private resolveLoopBodyName(step: MJAIAgentStepEntity): string | null {\n switch (step.LoopBodyType) {\n case 'Action': return step.Action ?? null;\n case 'Prompt': return step.Prompt ?? null;\n case 'Sub-Agent': return step.SubAgent ?? null;\n default: return null;\n }\n }\n\n /** Parse the Configuration JSON, returning null on failure */\n private parseLoopConfig(step: MJAIAgentStepEntity): Record<string, unknown> | null {\n if (!step.Configuration) return null;\n try {\n return JSON.parse(step.Configuration) as Record<string, unknown>;\n } catch {\n return null;\n }\n }\n\n /** Build a short iteration summary for display on loop nodes */\n BuildLoopIterationSummary(step: MJAIAgentStepEntity): string {\n const config = this.parseLoopConfig(step);\n if (step.StepType === 'ForEach') {\n const collection = config?.['collectionPath'] as string | undefined;\n return collection ? `over ${collection}` : 'over collection';\n }\n if (step.StepType === 'While') {\n const condition = config?.['condition'] as string | undefined;\n return condition ? `while ${this.truncateCondition(condition)}` : 'while condition';\n }\n return '';\n }\n\n private truncateCondition(condition: string): string {\n const maxLen = 30;\n if (condition.length <= maxLen) return condition;\n return condition.substring(0, maxLen) + '...';\n }\n}\n"]}
@@ -4,6 +4,7 @@ import { FlowConnection, PromptOption } from '../interfaces/flow-types';
4
4
  import { FlowDecisionStepConfiguration } from '@memberjunction/ai-core-plus';
5
5
  import type { TaskGraphDecisionQuestion } from '@memberjunction/ai-core-plus';
6
6
  import { type FlowRunProblem } from './flow-run-check';
7
+ import { type WaitFieldValues } from './waiting-step-config';
7
8
  import * as i0 from "@angular/core";
8
9
  /** What a Decision question asks for. */
9
10
  type DecisionQuestionKind = TaskGraphDecisionQuestion['kind'];
@@ -46,6 +47,35 @@ export declare class AgentPropertiesPanelComponent {
46
47
  DeletePathRequested: EventEmitter<MJAIAgentStepPathEntity>;
47
48
  CloseRequested: EventEmitter<void>;
48
49
  protected collapsedSections: Record<string, boolean>;
50
+ ActionSearchQuery: string;
51
+ PromptSearchQuery: string;
52
+ AgentSearchQuery: string;
53
+ ShowRawLoopJson: boolean;
54
+ get FilteredActions(): Array<{
55
+ ID: string;
56
+ Name: string;
57
+ IconClass?: string | null;
58
+ }>;
59
+ get FilteredPrompts(): PromptOption[];
60
+ get FilteredAgents(): Array<{
61
+ ID: string;
62
+ Name: string;
63
+ IconClass?: string | null;
64
+ LogoURL?: string | null;
65
+ }>;
66
+ /** Clickable upstream variable pills for visual Data Mapping insertion. */
67
+ get UpstreamVariablePills(): Array<{
68
+ Label: string;
69
+ Token: string;
70
+ }>;
71
+ /** Inserts an upstream variable pill into the step's ActionInputMapping JSON. */
72
+ OnInsertVariablePill(pill: {
73
+ Label: string;
74
+ Token: string;
75
+ }): void;
76
+ OnLoopExecutionModeChange(mode: string): void;
77
+ OnSagaCompensationActionChange(actionId: string): void;
78
+ OnSagaFailurePolicyChange(policy: string): void;
49
79
  get IsStepSelected(): boolean;
50
80
  /** @deprecated Use {@link IsStepSelected}. */
51
81
  get isStepSelected(): boolean;
@@ -64,6 +94,25 @@ export declare class AgentPropertiesPanelComponent {
64
94
  get ShowLoopConfig(): boolean;
65
95
  /** @deprecated Use {@link ShowLoopConfig}. */
66
96
  get showLoopConfig(): boolean;
97
+ get ShowHumanConfig(): boolean;
98
+ get ShowExternalConfig(): boolean;
99
+ get ShowWaitConfig(): boolean;
100
+ /** A Wait's two ways of saying when, as the fields show them. */
101
+ get WaitFields(): WaitFieldValues;
102
+ /** One configuration field, as text for an input. */
103
+ ConfigText(field: string): string;
104
+ /** Sets (or, when empty, removes) one text field of the step's configuration. */
105
+ OnConfigTextChange(field: string, value: string): void;
106
+ /** Sets (or, when empty or not a number, removes) one numeric field. */
107
+ OnConfigNumberChange(field: string, value: string): void;
108
+ /** Switches a Wait between a duration and a moment, clearing the other so it never holds both. */
109
+ OnWaitModeChange(mode: 'duration' | 'until'): void;
110
+ /**
111
+ * A Human step's provider configuration, edited as JSON because only the provider knows its shape.
112
+ * Text that does not parse is kept as typed rather than discarded, and the run check says so.
113
+ */
114
+ OnProviderConfigurationChange(value: string): void;
115
+ private writeConfig;
67
116
  get StepTypeLabel(): string;
68
117
  /** @deprecated Use {@link StepTypeLabel}. */
69
118
  get stepTypeLabel(): string;
@@ -1 +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,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExE,OAAO,EAEL,6BAA6B,EAS9B,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAoC,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;;AAsBzF,yCAAyC;AACzC,KAAK,oBAAoB,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAC;AAE9D,uCAAuC;AACvC,KAAK,YAAY,GAAG,OAAO,CAAC,yBAAyB,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAe9F;;;GAGG;AACH,qBAQa,6BAA6B;IAExC,4GAA4G;IAC5G,IACI,IAAI,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI,EAKzC;IACD,IAAI,IAAI,IAAI,mBAAmB,GAAG,IAAI,CAErC;IACD,OAAO,CAAC,KAAK,CAAoC;IAExC,kBAAkB,EAAE,cAAc,GAAG,IAAI,CAAQ;IACjD,UAAU,EAAE,uBAAuB,GAAG,IAAI,CAAQ;IAClD,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;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kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAMvC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAMpC,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAQ1C,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAM5C,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAM1C,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAMzC,YAAY,IAAI,IAAI;IAMpB,YAAY,IAAI,IAAI;IAQpB,6EAA6E;IAC7E,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM;IAI1C,gEAAgE;IAChE,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IAI7C,kFAAkF;IAClF,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIxC,6DAA6D;IAC7D,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM;IAI5C,8BAA8B;IAC9B,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM;yCA1mC1D,6BAA6B;2CAA7B,6BAA6B;CAknCzC"}
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,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExE,OAAO,EAEL,6BAA6B,EAS9B,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAoC,KAAK,cA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