@memberjunction/ng-core-entity-forms 2.86.0 → 2.88.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/dist/lib/custom/AIAgents/FlowAgentType/flow-agent-form-section.component.d.ts.map +1 -1
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-agent-form-section.component.js +7 -7
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-agent-form-section.component.js.map +1 -1
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/condition-editor/condition-editor.component.d.ts +29 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/condition-editor/condition-editor.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/condition-editor/condition-editor.component.js +198 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/condition-editor/condition-editor.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/confirmation-dialog/confirmation-dialog.component.d.ts +14 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/confirmation-dialog/confirmation-dialog.component.js +98 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/custom-node/custom-node.component.d.ts +44 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/custom-node/custom-node.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/custom-node/custom-node.component.js +282 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/custom-node/custom-node.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/execution-panel/execution-panel.component.d.ts +35 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/execution-panel/execution-panel.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/execution-panel/execution-panel.component.js +287 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/execution-panel/execution-panel.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/flow-editor/flow-editor.component.d.ts +106 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/flow-editor/flow-editor.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/flow-editor/flow-editor.component.js +951 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/flow-editor/flow-editor.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/prompt-editor/prompt-editor.component.d.ts +30 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/prompt-editor/prompt-editor.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/prompt-editor/prompt-editor.component.js +450 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/prompt-editor/prompt-editor.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/properties-panel/properties-panel.component.d.ts +25 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/properties-panel/properties-panel.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/properties-panel/properties-panel.component.js +423 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/properties-panel/properties-panel.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/simple-condition-editor/simple-condition-editor.component.d.ts +21 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/simple-condition-editor/simple-condition-editor.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/simple-condition-editor/simple-condition-editor.component.js +182 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/simple-condition-editor/simple-condition-editor.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/step/step.component.d.ts +34 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/step/step.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/step/step.component.js +171 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/step/step.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/toolbar/toolbar.component.d.ts +17 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/toolbar/toolbar.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/toolbar/toolbar.component.js +78 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/toolbar/toolbar.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/connection.model.d.ts +17 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/connection.model.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/connection.model.js +11 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/connection.model.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/mj-extended.model.d.ts +21 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/mj-extended.model.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/mj-extended.model.js +2 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/mj-extended.model.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.d.ts +33 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.js +2 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/step.model.d.ts +44 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/step.model.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/step.model.js +166 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/step.model.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-editor.service.d.ts +14 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-editor.service.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-editor.service.js +31 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-editor.service.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-executor.service.d.ts +63 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-executor.service.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-executor.service.js +294 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-executor.service.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/mj-flow-transformer.service.d.ts +77 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/mj-flow-transformer.service.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/mj-flow-transformer.service.js +408 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/mj-flow-transformer.service.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/module-manager.service.d.ts +19 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/module-manager.service.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/module-manager.service.js +116 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/module-manager.service.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/prompt-manager.service.d.ts +25 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/prompt-manager.service.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/prompt-manager.service.js +90 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/prompt-manager.service.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/mj-integrated-flow-editor.component.d.ts +52 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/mj-integrated-flow-editor.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/mj-integrated-flow-editor.component.js +500 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/mj-integrated-flow-editor.component.js.map +1 -0
- package/dist/lib/custom/custom-forms.module.d.ts +2 -1
- package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
- package/dist/lib/custom/custom-forms.module.js +10 -4
- package/dist/lib/custom/custom-forms.module.js.map +1 -1
- package/dist/lib/generated/Entities/Component/sections/details.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/Component/sections/details.component.js +40 -4
- package/dist/lib/generated/Entities/Component/sections/details.component.js.map +1 -1
- package/package.json +16 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mj-extended.model.js","sourceRoot":"","sources":["../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/mj-extended.model.ts"],"names":[],"mappings":""}
|
package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface ModuleProperty {
|
|
2
|
+
type: 'text' | 'number' | 'textarea' | 'select';
|
|
3
|
+
label: string;
|
|
4
|
+
default: any;
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
options?: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface ModuleType {
|
|
11
|
+
name: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
color: string;
|
|
14
|
+
properties: {
|
|
15
|
+
[key: string]: ModuleProperty;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface Module {
|
|
19
|
+
id: string;
|
|
20
|
+
type: string;
|
|
21
|
+
name: string;
|
|
22
|
+
icon: string;
|
|
23
|
+
color: string;
|
|
24
|
+
properties: {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface NodeData {
|
|
29
|
+
name: string;
|
|
30
|
+
modules: Module[];
|
|
31
|
+
position?: [number, number];
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=module.model.d.ts.map
|
package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAC;CAC/C;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACpC;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B"}
|
package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.model.js","sourceRoot":"","sources":["../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type StepType = 'prompt' | 'agent' | 'action';
|
|
2
|
+
export interface StepProperty {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
type: 'text' | 'number' | 'select' | 'textarea' | 'checkbox' | 'json';
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
options?: {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}[];
|
|
11
|
+
defaultValue?: any;
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
step?: number;
|
|
15
|
+
rows?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface StepOption {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
value: string;
|
|
21
|
+
properties?: StepProperty[];
|
|
22
|
+
}
|
|
23
|
+
export interface StepTypeConfig {
|
|
24
|
+
type: StepType;
|
|
25
|
+
name: string;
|
|
26
|
+
icon: string;
|
|
27
|
+
color: string;
|
|
28
|
+
options: StepOption[];
|
|
29
|
+
}
|
|
30
|
+
export interface Step {
|
|
31
|
+
id: number;
|
|
32
|
+
type: StepType;
|
|
33
|
+
name: string;
|
|
34
|
+
selectedOption?: string;
|
|
35
|
+
position: [number, number];
|
|
36
|
+
config: StepTypeConfig;
|
|
37
|
+
propertyValues?: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export declare const STEP_CONFIGS: {
|
|
42
|
+
[key in StepType]: StepTypeConfig;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=step.model.d.ts.map
|
package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/step.model.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/step.model.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAErD,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EA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name: 'System Prompt',
|
|
12
|
+
value: 'system',
|
|
13
|
+
properties: [
|
|
14
|
+
{ key: 'systemMessage', label: 'System Message', type: 'textarea', rows: 4, placeholder: 'You are a helpful assistant...' },
|
|
15
|
+
{ key: 'temperature', label: 'Temperature', type: 'number', min: 0, max: 2, step: 0.1, defaultValue: 0.7 },
|
|
16
|
+
{ key: 'maxTokens', label: 'Max Tokens', type: 'number', min: 1, max: 4096, defaultValue: 1024 }
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 'p2',
|
|
21
|
+
name: 'User Prompt',
|
|
22
|
+
value: 'user',
|
|
23
|
+
properties: [
|
|
24
|
+
{ key: 'userMessage', label: 'User Message', type: 'textarea', rows: 4, placeholder: 'Enter user prompt...' },
|
|
25
|
+
{ key: 'includeContext', label: 'Include Context', type: 'checkbox', defaultValue: true },
|
|
26
|
+
{ key: 'contextWindow', label: 'Context Window Size', type: 'number', min: 0, max: 10, defaultValue: 3 }
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 'p3',
|
|
31
|
+
name: 'Assistant Prompt',
|
|
32
|
+
value: 'assistant',
|
|
33
|
+
properties: [
|
|
34
|
+
{ key: 'assistantMessage', label: 'Assistant Response Template', type: 'textarea', rows: 3, placeholder: 'Template for assistant response...' },
|
|
35
|
+
{ key: 'formatType', label: 'Response Format', type: 'select', options: [
|
|
36
|
+
{ value: 'text', label: 'Plain Text' },
|
|
37
|
+
{ value: 'json', label: 'JSON' },
|
|
38
|
+
{ value: 'markdown', label: 'Markdown' }
|
|
39
|
+
], defaultValue: 'text' }
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
agent: {
|
|
45
|
+
type: 'agent',
|
|
46
|
+
name: 'Agent',
|
|
47
|
+
icon: 'fa-robot',
|
|
48
|
+
color: '#092340', // navy
|
|
49
|
+
options: [
|
|
50
|
+
{
|
|
51
|
+
id: 'a1',
|
|
52
|
+
name: 'Research Agent',
|
|
53
|
+
value: 'research',
|
|
54
|
+
properties: [
|
|
55
|
+
{ key: 'searchDepth', label: 'Search Depth', type: 'select', options: [
|
|
56
|
+
{ value: 'shallow', label: 'Shallow (Fast)' },
|
|
57
|
+
{ value: 'medium', label: 'Medium' },
|
|
58
|
+
{ value: 'deep', label: 'Deep (Thorough)' }
|
|
59
|
+
], defaultValue: 'medium' },
|
|
60
|
+
{ key: 'sources', label: 'Allowed Sources', type: 'text', placeholder: 'wikipedia, arxiv, pubmed...' },
|
|
61
|
+
{ key: 'maxResults', label: 'Max Results', type: 'number', min: 1, max: 100, defaultValue: 10 }
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: 'a2',
|
|
66
|
+
name: 'Code Agent',
|
|
67
|
+
value: 'code',
|
|
68
|
+
properties: [
|
|
69
|
+
{ key: 'language', label: 'Programming Language', type: 'select', options: [
|
|
70
|
+
{ value: 'python', label: 'Python' },
|
|
71
|
+
{ value: 'javascript', label: 'JavaScript' },
|
|
72
|
+
{ value: 'typescript', label: 'TypeScript' },
|
|
73
|
+
{ value: 'java', label: 'Java' },
|
|
74
|
+
{ value: 'csharp', label: 'C#' }
|
|
75
|
+
], defaultValue: 'python' },
|
|
76
|
+
{ key: 'framework', label: 'Framework/Library', type: 'text', placeholder: 'React, Django, Spring...' },
|
|
77
|
+
{ key: 'codeStyle', label: 'Code Style', type: 'select', options: [
|
|
78
|
+
{ value: 'clean', label: 'Clean Code' },
|
|
79
|
+
{ value: 'documented', label: 'Well Documented' },
|
|
80
|
+
{ value: 'optimized', label: 'Performance Optimized' }
|
|
81
|
+
], defaultValue: 'clean' }
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 'a3',
|
|
86
|
+
name: 'Analysis Agent',
|
|
87
|
+
value: 'analysis',
|
|
88
|
+
properties: [
|
|
89
|
+
{ key: 'analysisType', label: 'Analysis Type', type: 'select', options: [
|
|
90
|
+
{ value: 'statistical', label: 'Statistical' },
|
|
91
|
+
{ value: 'sentiment', label: 'Sentiment' },
|
|
92
|
+
{ value: 'comparative', label: 'Comparative' }
|
|
93
|
+
], defaultValue: 'statistical' },
|
|
94
|
+
{ key: 'outputFormat', label: 'Output Format', type: 'select', options: [
|
|
95
|
+
{ value: 'report', label: 'Detailed Report' },
|
|
96
|
+
{ value: 'summary', label: 'Executive Summary' },
|
|
97
|
+
{ value: 'visualization', label: 'Visual Charts' }
|
|
98
|
+
], defaultValue: 'report' },
|
|
99
|
+
{ key: 'confidence', label: 'Include Confidence Scores', type: 'checkbox', defaultValue: true }
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
action: {
|
|
105
|
+
type: 'action',
|
|
106
|
+
name: 'Action',
|
|
107
|
+
icon: 'fa-bolt',
|
|
108
|
+
color: '#AAE7FD', // light-blue
|
|
109
|
+
options: [
|
|
110
|
+
{
|
|
111
|
+
id: 'ac1',
|
|
112
|
+
name: 'API Call',
|
|
113
|
+
value: 'api',
|
|
114
|
+
properties: [
|
|
115
|
+
{ key: 'endpoint', label: 'API Endpoint', type: 'text', placeholder: 'https://api.example.com/endpoint' },
|
|
116
|
+
{ key: 'method', label: 'HTTP Method', type: 'select', options: [
|
|
117
|
+
{ value: 'GET', label: 'GET' },
|
|
118
|
+
{ value: 'POST', label: 'POST' },
|
|
119
|
+
{ value: 'PUT', label: 'PUT' },
|
|
120
|
+
{ value: 'DELETE', label: 'DELETE' },
|
|
121
|
+
{ value: 'PATCH', label: 'PATCH' }
|
|
122
|
+
], defaultValue: 'GET' },
|
|
123
|
+
{ key: 'headers', label: 'Headers', type: 'json', rows: 3, placeholder: '{"Content-Type": "application/json"}' },
|
|
124
|
+
{ key: 'timeout', label: 'Timeout (ms)', type: 'number', min: 0, max: 60000, defaultValue: 5000 }
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: 'ac2',
|
|
129
|
+
name: 'Database Query',
|
|
130
|
+
value: 'database',
|
|
131
|
+
properties: [
|
|
132
|
+
{ key: 'dbType', label: 'Database Type', type: 'select', options: [
|
|
133
|
+
{ value: 'mysql', label: 'MySQL' },
|
|
134
|
+
{ value: 'postgresql', label: 'PostgreSQL' },
|
|
135
|
+
{ value: 'mongodb', label: 'MongoDB' },
|
|
136
|
+
{ value: 'redis', label: 'Redis' }
|
|
137
|
+
], defaultValue: 'postgresql' },
|
|
138
|
+
{ key: 'query', label: 'Query', type: 'textarea', rows: 4, placeholder: 'SELECT * FROM users WHERE...' },
|
|
139
|
+
{ key: 'connectionString', label: 'Connection String', type: 'text', placeholder: 'host:port/database' },
|
|
140
|
+
{ key: 'useCache', label: 'Use Query Cache', type: 'checkbox', defaultValue: false }
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: 'ac3',
|
|
145
|
+
name: 'File Operation',
|
|
146
|
+
value: 'file',
|
|
147
|
+
properties: [
|
|
148
|
+
{ key: 'operation', label: 'Operation Type', type: 'select', options: [
|
|
149
|
+
{ value: 'read', label: 'Read' },
|
|
150
|
+
{ value: 'write', label: 'Write' },
|
|
151
|
+
{ value: 'append', label: 'Append' },
|
|
152
|
+
{ value: 'delete', label: 'Delete' }
|
|
153
|
+
], defaultValue: 'read' },
|
|
154
|
+
{ key: 'filePath', label: 'File Path', type: 'text', placeholder: '/path/to/file.txt' },
|
|
155
|
+
{ key: 'encoding', label: 'Encoding', type: 'select', options: [
|
|
156
|
+
{ value: 'utf8', label: 'UTF-8' },
|
|
157
|
+
{ value: 'ascii', label: 'ASCII' },
|
|
158
|
+
{ value: 'base64', label: 'Base64' }
|
|
159
|
+
], defaultValue: 'utf8' },
|
|
160
|
+
{ key: 'createIfNotExists', label: 'Create If Not Exists', type: 'checkbox', defaultValue: true }
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
//# sourceMappingURL=step.model.js.map
|
package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/step.model.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step.model.js","sourceRoot":"","sources":["../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/step.model.ts"],"names":[],"mappings":"AAwCA,sBAAsB;AACtB,MAAM,CAAC,MAAM,YAAY,GAA0C;IACjE,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,SAAS,EAAE,UAAU;QAC5B,OAAO,EAAE;YACP;gBACE,EAAE,EAAE,IAAI;gBACR,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,QAAQ;gBACf,UAAU,EAAE;oBACV,EAAE,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,gCAAgC,EAAE;oBAC3H,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE;oBAC1G,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE;iBACjG;aACF;YACD;gBACE,EAAE,EAAE,IAAI;gBACR,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,MAAM;gBACb,UAAU,EAAE;oBACV,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,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AM,EAAE,WAAW,EAAE,mBAAmB,EAAE;oBACvF,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE;4BAC7D,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE;4BACjC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;4BAClC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;yBACrC,EAAE,YAAY,EAAE,MAAM,EAAE;oBACzB,EAAE,GAAG,EAAE,mBAAmB,EAAE,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,IAAI,EAAE;iBAClG;aACF;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FlowEditorService {
|
|
3
|
+
private selectedNode$;
|
|
4
|
+
selectedNode: import("rxjs").Observable<any>;
|
|
5
|
+
private allSteps;
|
|
6
|
+
constructor();
|
|
7
|
+
selectNode(node: any): void;
|
|
8
|
+
updateNode(node: any): void;
|
|
9
|
+
setAllSteps(steps: any[]): void;
|
|
10
|
+
getAllSteps(): any[];
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowEditorService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FlowEditorService>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=flow-editor.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-editor.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-editor.service.ts"],"names":[],"mappings":";AAGA,qBAGa,iBAAiB;IAC5B,OAAO,CAAC,aAAa,CAAkC;IAChD,YAAY,iCAAqC;IAExD,OAAO,CAAC,QAAQ,CAAa;;IAI7B,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAI3B,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAI3B,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI;IAI/B,WAAW,IAAI,GAAG,EAAE;yCApBT,iBAAiB;6CAAjB,iBAAiB;CAuB7B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class FlowEditorService {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.selectedNode$ = new BehaviorSubject(null);
|
|
7
|
+
this.selectedNode = this.selectedNode$.asObservable();
|
|
8
|
+
this.allSteps = [];
|
|
9
|
+
}
|
|
10
|
+
selectNode(node) {
|
|
11
|
+
this.selectedNode$.next(node);
|
|
12
|
+
}
|
|
13
|
+
updateNode(node) {
|
|
14
|
+
// Trigger any necessary updates
|
|
15
|
+
}
|
|
16
|
+
setAllSteps(steps) {
|
|
17
|
+
this.allSteps = steps;
|
|
18
|
+
}
|
|
19
|
+
getAllSteps() {
|
|
20
|
+
return this.allSteps;
|
|
21
|
+
}
|
|
22
|
+
static { this.ɵfac = function FlowEditorService_Factory(t) { return new (t || FlowEditorService)(); }; }
|
|
23
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FlowEditorService, factory: FlowEditorService.ɵfac, providedIn: 'root' }); }
|
|
24
|
+
}
|
|
25
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FlowEditorService, [{
|
|
26
|
+
type: Injectable,
|
|
27
|
+
args: [{
|
|
28
|
+
providedIn: 'root'
|
|
29
|
+
}]
|
|
30
|
+
}], () => [], null); })();
|
|
31
|
+
//# sourceMappingURL=flow-editor.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-editor.service.js","sourceRoot":"","sources":["../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-editor.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;;AAKvC,MAAM,OAAO,iBAAiB;IAM5B;QALQ,kBAAa,GAAG,IAAI,eAAe,CAAM,IAAI,CAAC,CAAC;QAChD,iBAAY,GAAG,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,CAAC;QAEhD,aAAQ,GAAU,EAAE,CAAC;IAEb,CAAC;IAEjB,UAAU,CAAC,IAAS;QAClB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IAED,UAAU,CAAC,IAAS;QAClB,gCAAgC;IAClC,CAAC;IAED,WAAW,CAAC,KAAY;QACtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;kFAtBU,iBAAiB;uEAAjB,iBAAiB,WAAjB,iBAAiB,mBAFhB,MAAM;;iFAEP,iBAAiB;cAH7B,UAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Step } from '../models/step.model';
|
|
3
|
+
import { Connection } from '../models/connection.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface ExecutionLog {
|
|
6
|
+
timestamp: Date;
|
|
7
|
+
stepId: number;
|
|
8
|
+
stepName: string;
|
|
9
|
+
type: 'start' | 'complete' | 'error' | 'log';
|
|
10
|
+
message: string;
|
|
11
|
+
data?: any;
|
|
12
|
+
}
|
|
13
|
+
export interface StepExecutionResult {
|
|
14
|
+
stepId: number;
|
|
15
|
+
success: boolean;
|
|
16
|
+
output: any;
|
|
17
|
+
error?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ExecutionContext {
|
|
20
|
+
variables: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
};
|
|
23
|
+
results: {
|
|
24
|
+
[stepId: number]: StepExecutionResult;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export type ExecutionStatus = 'idle' | 'running' | 'paused' | 'completed' | 'error';
|
|
28
|
+
export declare class FlowExecutorService {
|
|
29
|
+
private executionStatus$;
|
|
30
|
+
private currentStepId$;
|
|
31
|
+
private executionLogs$;
|
|
32
|
+
private executionContext$;
|
|
33
|
+
private stopExecution$;
|
|
34
|
+
private pauseExecution$;
|
|
35
|
+
executionStatus: Observable<ExecutionStatus>;
|
|
36
|
+
currentStepId: Observable<number | null>;
|
|
37
|
+
executionLogs: Observable<ExecutionLog[]>;
|
|
38
|
+
executionContext: Observable<ExecutionContext>;
|
|
39
|
+
constructor();
|
|
40
|
+
executeFlow(steps: Step[], connections: Connection[]): Promise<void>;
|
|
41
|
+
private executeStep;
|
|
42
|
+
private executeStepByType;
|
|
43
|
+
private executePromptStep;
|
|
44
|
+
private executeAgentStep;
|
|
45
|
+
private executeActionStep;
|
|
46
|
+
private buildExecutionOrder;
|
|
47
|
+
pause(): void;
|
|
48
|
+
resume(): void;
|
|
49
|
+
stop(): void;
|
|
50
|
+
private waitForUnpause;
|
|
51
|
+
private resetExecution;
|
|
52
|
+
private addLog;
|
|
53
|
+
private delay;
|
|
54
|
+
getExecutionSummary(): Observable<{
|
|
55
|
+
totalSteps: number;
|
|
56
|
+
completedSteps: number;
|
|
57
|
+
errors: number;
|
|
58
|
+
duration: number;
|
|
59
|
+
}>;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowExecutorService, never>;
|
|
61
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FlowExecutorService>;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=flow-executor.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-executor.service.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-executor.service.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,UAAU,EAAY,MAAM,MAAM,CAAC;AAEtE,OAAO,EAAE,IAAI,EAAY,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;;AAExD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,KAAK,CAAC;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAClC,OAAO,EAAE;QAAE,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB,CAAA;KAAE,CAAC;CACpD;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC;AAEpF,qBAGa,mBAAmB;IAC9B,OAAO,CAAC,gBAAgB,CAAgD;IACxE,OAAO,CAAC,cAAc,CAA4C;IAClE,OAAO,CAAC,cAAc,CAA2C;IACjE,OAAO,CAAC,iBAAiB,CAGtB;IAEH,OAAO,CAAC,cAAc,CAAuB;IAC7C,OAAO,CAAC,eAAe,CAAuC;IAEvD,eAAe,8BAAwC;IACvD,aAAa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