faf-cli 3.0.4 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -9
- package/dist/big-orange/bigo-push.d.ts +18 -0
- package/dist/big-orange/bigo-push.d.ts.map +1 -0
- package/dist/big-orange/bigo-push.js +88 -0
- package/dist/big-orange/bigo-push.js.map +1 -0
- package/dist/big-orange/compare.d.ts +11 -0
- package/dist/big-orange/compare.d.ts.map +1 -0
- package/dist/big-orange/compare.js +174 -0
- package/dist/big-orange/compare.js.map +1 -0
- package/dist/big-orange/faf-generator.d.ts +22 -0
- package/dist/big-orange/faf-generator.d.ts.map +1 -0
- package/dist/big-orange/faf-generator.js +215 -0
- package/dist/big-orange/faf-generator.js.map +1 -0
- package/dist/big-orange/index.d.ts +7 -0
- package/dist/big-orange/index.d.ts.map +1 -0
- package/dist/big-orange/index.js +96 -0
- package/dist/big-orange/index.js.map +1 -0
- package/dist/big-orange/types.d.ts +62 -0
- package/dist/big-orange/types.d.ts.map +1 -0
- package/dist/big-orange/types.js +7 -0
- package/dist/big-orange/types.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +16 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/skills.d.ts +8 -0
- package/dist/commands/skills.d.ts.map +1 -0
- package/dist/commands/skills.js +43 -0
- package/dist/commands/skills.js.map +1 -0
- package/package.json +4 -1
- package/dist/commands/create.d.ts +0 -13
- package/dist/commands/create.d.ts.map +0 -1
- package/dist/commands/create.js +0 -78
- package/dist/commands/create.js.map +0 -1
- package/dist/core/platform-adapters.d.ts +0 -76
- package/dist/core/platform-adapters.d.ts.map +0 -1
- package/dist/core/platform-adapters.js +0 -407
- package/dist/core/platform-adapters.js.map +0 -1
- package/dist/core/universal-intelligence-generator.d.ts +0 -156
- package/dist/core/universal-intelligence-generator.d.ts.map +0 -1
- package/dist/core/universal-intelligence-generator.js +0 -352
- package/dist/core/universal-intelligence-generator.js.map +0 -1
- package/dist/enrichment/auto-corrector.d.ts +0 -28
- package/dist/enrichment/auto-corrector.d.ts.map +0 -1
- package/dist/enrichment/auto-corrector.js +0 -106
- package/dist/enrichment/auto-corrector.js.map +0 -1
- package/dist/enrichment/n8n-analyzer.d.ts +0 -259
- package/dist/enrichment/n8n-analyzer.d.ts.map +0 -1
- package/dist/enrichment/n8n-analyzer.js +0 -346
- package/dist/enrichment/n8n-analyzer.js.map +0 -1
- package/dist/enrichment/n8n-faf-generator.d.ts +0 -68
- package/dist/enrichment/n8n-faf-generator.d.ts.map +0 -1
- package/dist/enrichment/n8n-faf-generator.js +0 -354
- package/dist/enrichment/n8n-faf-generator.js.map +0 -1
- package/dist/enrichment/question-asker.d.ts +0 -22
- package/dist/enrichment/question-asker.d.ts.map +0 -1
- package/dist/enrichment/question-asker.js +0 -113
- package/dist/enrichment/question-asker.js.map +0 -1
- package/dist/enrichment/slot-filler.d.ts +0 -73
- package/dist/enrichment/slot-filler.d.ts.map +0 -1
- package/dist/enrichment/slot-filler.js +0 -253
- package/dist/enrichment/slot-filler.js.map +0 -1
- package/dist/scoring/championship-scorer.d.ts +0 -114
- package/dist/scoring/championship-scorer.d.ts.map +0 -1
- package/dist/scoring/championship-scorer.js +0 -380
- package/dist/scoring/championship-scorer.js.map +0 -1
- package/dist/scoring/score-calculator.d.ts +0 -29
- package/dist/scoring/score-calculator.d.ts.map +0 -1
- package/dist/scoring/score-calculator.js +0 -520
- package/dist/scoring/score-calculator.js.map +0 -1
- package/dist/tests/manual-validation.d.ts +0 -8
- package/dist/tests/manual-validation.d.ts.map +0 -1
- package/dist/tests/manual-validation.js +0 -114
- package/dist/tests/manual-validation.js.map +0 -1
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 🏎️ n8n Workflow Analyzer - THE Standard
|
|
3
|
-
*
|
|
4
|
-
* CHAMPIONSHIP: We're defining THE canonical .faf schema for n8n workflows
|
|
5
|
-
*
|
|
6
|
-
* What makes this AMAZING:
|
|
7
|
-
* 1. First official .faf schema for n8n (they don't have one!)
|
|
8
|
-
* 2. AI-Agent ready (autonomous agents can read our format)
|
|
9
|
-
* 3. Self-healing ready (captures error handling, retries)
|
|
10
|
-
* 4. Multi-agent ready (documents decision points, tools)
|
|
11
|
-
* 5. FAB-FORMATS compatible (plugs in later with zero work)
|
|
12
|
-
*/
|
|
13
|
-
export interface N8nNode {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
type: string;
|
|
17
|
-
typeVersion: number;
|
|
18
|
-
position: [number, number];
|
|
19
|
-
parameters?: Record<string, any>;
|
|
20
|
-
credentials?: Record<string, string>;
|
|
21
|
-
notes?: string;
|
|
22
|
-
notesInFlow?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface N8nConnection {
|
|
25
|
-
node: string;
|
|
26
|
-
type: string;
|
|
27
|
-
index: number;
|
|
28
|
-
}
|
|
29
|
-
export interface N8nConnections {
|
|
30
|
-
[nodeName: string]: {
|
|
31
|
-
[outputType: string]: N8nConnection[][];
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export interface N8nWorkflowRaw {
|
|
35
|
-
id?: string;
|
|
36
|
-
name: string;
|
|
37
|
-
nodes: N8nNode[];
|
|
38
|
-
connections: N8nConnections;
|
|
39
|
-
settings?: {
|
|
40
|
-
saveDataSuccessExecution?: string;
|
|
41
|
-
saveDataErrorExecution?: string;
|
|
42
|
-
saveManualExecutions?: boolean;
|
|
43
|
-
callerPolicy?: string;
|
|
44
|
-
executionOrder?: string;
|
|
45
|
-
};
|
|
46
|
-
staticData?: any;
|
|
47
|
-
pinData?: any;
|
|
48
|
-
versionId?: string;
|
|
49
|
-
tags?: string[];
|
|
50
|
-
meta?: Record<string, any>;
|
|
51
|
-
}
|
|
52
|
-
export type WorkflowPattern = 'RAG' | 'ETL' | 'API' | 'Multi-Agent' | 'Webhook' | 'Scheduled' | 'Form' | 'Unknown';
|
|
53
|
-
export interface DecisionPoint {
|
|
54
|
-
nodeId: string;
|
|
55
|
-
nodeName: string;
|
|
56
|
-
type: 'IF' | 'Switch' | 'Merge' | 'Filter';
|
|
57
|
-
condition: string;
|
|
58
|
-
branches: string[];
|
|
59
|
-
}
|
|
60
|
-
export interface MemoryRequirement {
|
|
61
|
-
nodeId: string;
|
|
62
|
-
nodeName: string;
|
|
63
|
-
type: 'vector-store' | 'database' | 'cache' | 'session';
|
|
64
|
-
purpose: string;
|
|
65
|
-
}
|
|
66
|
-
export interface ErrorHandler {
|
|
67
|
-
nodeId: string;
|
|
68
|
-
nodeName: string;
|
|
69
|
-
strategy: 'retry' | 'fallback' | 'ignore' | 'alert';
|
|
70
|
-
config?: Record<string, any>;
|
|
71
|
-
}
|
|
72
|
-
export interface RetryStrategy {
|
|
73
|
-
nodeId: string;
|
|
74
|
-
maxRetries: number;
|
|
75
|
-
retryDelay: number;
|
|
76
|
-
backoff: 'linear' | 'exponential';
|
|
77
|
-
}
|
|
78
|
-
export interface FallbackPath {
|
|
79
|
-
fromNode: string;
|
|
80
|
-
toNode: string;
|
|
81
|
-
condition: string;
|
|
82
|
-
}
|
|
83
|
-
export interface ToolCapability {
|
|
84
|
-
toolName: string;
|
|
85
|
-
nodeType: string;
|
|
86
|
-
purpose: string;
|
|
87
|
-
parameters: string[];
|
|
88
|
-
}
|
|
89
|
-
export interface N8nWorkflowFaf {
|
|
90
|
-
workflow_schema_version: '1.0.0';
|
|
91
|
-
project: {
|
|
92
|
-
name: string;
|
|
93
|
-
type: 'n8n-workflow';
|
|
94
|
-
workflow_file: string;
|
|
95
|
-
purpose: string;
|
|
96
|
-
};
|
|
97
|
-
n8n_workflow: {
|
|
98
|
-
name: string;
|
|
99
|
-
workflow_id?: string;
|
|
100
|
-
version_id?: string;
|
|
101
|
-
status: 'active' | 'inactive' | 'draft';
|
|
102
|
-
architecture: {
|
|
103
|
-
pattern: WorkflowPattern;
|
|
104
|
-
components: string[];
|
|
105
|
-
};
|
|
106
|
-
triggers: Array<{
|
|
107
|
-
type: string;
|
|
108
|
-
id: string;
|
|
109
|
-
path?: string;
|
|
110
|
-
method?: string;
|
|
111
|
-
purpose: string;
|
|
112
|
-
fields?: Array<{
|
|
113
|
-
name: string;
|
|
114
|
-
type: string;
|
|
115
|
-
}>;
|
|
116
|
-
}>;
|
|
117
|
-
nodes: {
|
|
118
|
-
total: number;
|
|
119
|
-
breakdown: Record<string, string[]>;
|
|
120
|
-
};
|
|
121
|
-
credentials_required?: Record<string, string>;
|
|
122
|
-
external_dependencies?: {
|
|
123
|
-
ai_models?: string[];
|
|
124
|
-
infrastructure?: string[];
|
|
125
|
-
};
|
|
126
|
-
flow_description?: string;
|
|
127
|
-
};
|
|
128
|
-
tech_stack: {
|
|
129
|
-
workflow_engine: 'n8n';
|
|
130
|
-
primary_language: 'JSON (workflow definition)';
|
|
131
|
-
ai_models?: Record<string, string>;
|
|
132
|
-
infrastructure?: Record<string, string>;
|
|
133
|
-
integrations?: string[];
|
|
134
|
-
};
|
|
135
|
-
agent_context?: {
|
|
136
|
-
pattern: WorkflowPattern;
|
|
137
|
-
tools_available: ToolCapability[];
|
|
138
|
-
decision_points: DecisionPoint[];
|
|
139
|
-
memory_required: MemoryRequirement[];
|
|
140
|
-
};
|
|
141
|
-
health?: {
|
|
142
|
-
error_handlers: ErrorHandler[];
|
|
143
|
-
retry_strategies: RetryStrategy[];
|
|
144
|
-
fallback_paths: FallbackPath[];
|
|
145
|
-
};
|
|
146
|
-
human_context: {
|
|
147
|
-
who: string;
|
|
148
|
-
what: string;
|
|
149
|
-
why: string;
|
|
150
|
-
where: string;
|
|
151
|
-
when: string;
|
|
152
|
-
how: string;
|
|
153
|
-
};
|
|
154
|
-
knowledge_domain?: {
|
|
155
|
-
subject: string;
|
|
156
|
-
content_source?: string;
|
|
157
|
-
covered_topics?: Record<string, string[]>;
|
|
158
|
-
};
|
|
159
|
-
agent_configuration?: {
|
|
160
|
-
system_prompt_length?: number;
|
|
161
|
-
tone?: string;
|
|
162
|
-
tool_gating_rules?: string[];
|
|
163
|
-
output_structure?: string[];
|
|
164
|
-
retrieval_settings?: Record<string, any>;
|
|
165
|
-
};
|
|
166
|
-
known_issues: Array<{
|
|
167
|
-
issue: string;
|
|
168
|
-
impact: string;
|
|
169
|
-
solution?: string;
|
|
170
|
-
priority: 'low' | 'medium' | 'high';
|
|
171
|
-
}>;
|
|
172
|
-
maintenance_notes?: {
|
|
173
|
-
knowledge_updates?: string;
|
|
174
|
-
vector_db?: string;
|
|
175
|
-
cost_monitoring?: string;
|
|
176
|
-
testing?: string;
|
|
177
|
-
};
|
|
178
|
-
performance_metrics?: {
|
|
179
|
-
latency?: {
|
|
180
|
-
target: string;
|
|
181
|
-
components?: Record<string, string>;
|
|
182
|
-
};
|
|
183
|
-
quality?: Record<string, string>;
|
|
184
|
-
cost_estimate?: {
|
|
185
|
-
per_query?: string;
|
|
186
|
-
per_document_ingestion?: string;
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
ai_instructions: {
|
|
190
|
-
message: string;
|
|
191
|
-
};
|
|
192
|
-
workflow_dna?: {
|
|
193
|
-
birth_version: string;
|
|
194
|
-
birth_date: string;
|
|
195
|
-
birth_score: string;
|
|
196
|
-
current_version: string;
|
|
197
|
-
current_score: string;
|
|
198
|
-
evolution?: string[];
|
|
199
|
-
next_steps?: string[];
|
|
200
|
-
};
|
|
201
|
-
scores: {
|
|
202
|
-
faf_score: number;
|
|
203
|
-
ai_compatibility_score: number;
|
|
204
|
-
completeness_score: number;
|
|
205
|
-
balance?: {
|
|
206
|
-
ai_percentage: number;
|
|
207
|
-
human_percentage: number;
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
generated: string;
|
|
211
|
-
faf_version: string;
|
|
212
|
-
}
|
|
213
|
-
export declare class N8nWorkflowAnalyzer {
|
|
214
|
-
/**
|
|
215
|
-
* Detect if file is n8n workflow JSON
|
|
216
|
-
*/
|
|
217
|
-
static detect(filePath: string): Promise<boolean>;
|
|
218
|
-
/**
|
|
219
|
-
* Parse n8n workflow JSON
|
|
220
|
-
*/
|
|
221
|
-
static parse(filePath: string): Promise<N8nWorkflowRaw>;
|
|
222
|
-
/**
|
|
223
|
-
* Detect workflow pattern (AMAZING: AI-agent ready)
|
|
224
|
-
*/
|
|
225
|
-
static detectPattern(workflow: N8nWorkflowRaw): WorkflowPattern;
|
|
226
|
-
/**
|
|
227
|
-
* Extract AI models used
|
|
228
|
-
*/
|
|
229
|
-
static extractAIModels(workflow: N8nWorkflowRaw): string[];
|
|
230
|
-
/**
|
|
231
|
-
* Extract databases/infrastructure
|
|
232
|
-
*/
|
|
233
|
-
static extractInfrastructure(workflow: N8nWorkflowRaw): string[];
|
|
234
|
-
/**
|
|
235
|
-
* Extract triggers
|
|
236
|
-
*/
|
|
237
|
-
static extractTriggers(workflow: N8nWorkflowRaw): N8nWorkflowFaf['n8n_workflow']['triggers'];
|
|
238
|
-
/**
|
|
239
|
-
* Group nodes by category
|
|
240
|
-
*/
|
|
241
|
-
static groupNodes(workflow: N8nWorkflowRaw): Record<string, string[]>;
|
|
242
|
-
/**
|
|
243
|
-
* Generate flow description (AMAZING: Makes it readable for AI agents)
|
|
244
|
-
*/
|
|
245
|
-
static generateFlowDescription(workflow: N8nWorkflowRaw, pattern: WorkflowPattern): string;
|
|
246
|
-
/**
|
|
247
|
-
* AMAZING: Extract tool capabilities for AI agents
|
|
248
|
-
*/
|
|
249
|
-
static extractToolCapabilities(workflow: N8nWorkflowRaw): ToolCapability[];
|
|
250
|
-
/**
|
|
251
|
-
* AMAZING: Extract decision points for autonomous agents
|
|
252
|
-
*/
|
|
253
|
-
static extractDecisionPoints(workflow: N8nWorkflowRaw): DecisionPoint[];
|
|
254
|
-
/**
|
|
255
|
-
* AMAZING: Extract memory requirements
|
|
256
|
-
*/
|
|
257
|
-
static extractMemoryRequirements(workflow: N8nWorkflowRaw): MemoryRequirement[];
|
|
258
|
-
}
|
|
259
|
-
//# sourceMappingURL=n8n-analyzer.d.ts.map
|
|
@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
@@ -1,346 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* 🏎️ n8n Workflow Analyzer - THE Standard
|
|
4
|
-
*
|
|
5
|
-
* CHAMPIONSHIP: We're defining THE canonical .faf schema for n8n workflows
|
|
6
|
-
*
|
|
7
|
-
* What makes this AMAZING:
|
|
8
|
-
* 1. First official .faf schema for n8n (they don't have one!)
|
|
9
|
-
* 2. AI-Agent ready (autonomous agents can read our format)
|
|
10
|
-
* 3. Self-healing ready (captures error handling, retries)
|
|
11
|
-
* 4. Multi-agent ready (documents decision points, tools)
|
|
12
|
-
* 5. FAB-FORMATS compatible (plugs in later with zero work)
|
|
13
|
-
*/
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.N8nWorkflowAnalyzer = void 0;
|
|
16
|
-
const fs_1 = require("fs");
|
|
17
|
-
// ============================================================================
|
|
18
|
-
// ANALYZER - Championship Intelligence
|
|
19
|
-
// ============================================================================
|
|
20
|
-
class N8nWorkflowAnalyzer {
|
|
21
|
-
/**
|
|
22
|
-
* Detect if file is n8n workflow JSON
|
|
23
|
-
*/
|
|
24
|
-
static async detect(filePath) {
|
|
25
|
-
try {
|
|
26
|
-
const content = await fs_1.promises.readFile(filePath, 'utf-8');
|
|
27
|
-
const data = JSON.parse(content);
|
|
28
|
-
// n8n workflows have specific structure
|
|
29
|
-
return !!(data.nodes && data.connections && Array.isArray(data.nodes));
|
|
30
|
-
}
|
|
31
|
-
catch {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Parse n8n workflow JSON
|
|
37
|
-
*/
|
|
38
|
-
static async parse(filePath) {
|
|
39
|
-
const content = await fs_1.promises.readFile(filePath, 'utf-8');
|
|
40
|
-
return JSON.parse(content);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Detect workflow pattern (AMAZING: AI-agent ready)
|
|
44
|
-
*/
|
|
45
|
-
static detectPattern(workflow) {
|
|
46
|
-
const nodeTypes = workflow.nodes.map(n => n.type.toLowerCase());
|
|
47
|
-
// Check for RAG pattern
|
|
48
|
-
const hasVectorStore = nodeTypes.some(t => t.includes('pinecone') ||
|
|
49
|
-
t.includes('weaviate') ||
|
|
50
|
-
t.includes('qdrant') ||
|
|
51
|
-
t.includes('vectorstore'));
|
|
52
|
-
const hasAIAgent = nodeTypes.some(t => t.includes('agent') ||
|
|
53
|
-
t.includes('lmchat') ||
|
|
54
|
-
t.includes('anthropic') ||
|
|
55
|
-
t.includes('openai'));
|
|
56
|
-
if (hasVectorStore && hasAIAgent) {
|
|
57
|
-
return 'RAG';
|
|
58
|
-
}
|
|
59
|
-
// Check for Multi-Agent (multiple AI nodes)
|
|
60
|
-
const aiNodeCount = workflow.nodes.filter(n => n.type.toLowerCase().includes('agent') ||
|
|
61
|
-
n.type.toLowerCase().includes('lmchat')).length;
|
|
62
|
-
if (aiNodeCount > 1) {
|
|
63
|
-
return 'Multi-Agent';
|
|
64
|
-
}
|
|
65
|
-
// Check for ETL (has data transformation nodes)
|
|
66
|
-
const hasETL = nodeTypes.some(t => t.includes('code') ||
|
|
67
|
-
t.includes('function') ||
|
|
68
|
-
t.includes('set') ||
|
|
69
|
-
t.includes('split'));
|
|
70
|
-
const hasDatabase = nodeTypes.some(t => t.includes('postgres') ||
|
|
71
|
-
t.includes('mysql') ||
|
|
72
|
-
t.includes('mongodb'));
|
|
73
|
-
if (hasETL && hasDatabase) {
|
|
74
|
-
return 'ETL';
|
|
75
|
-
}
|
|
76
|
-
// Check for triggers
|
|
77
|
-
const triggerTypes = workflow.nodes
|
|
78
|
-
.filter(n => n.type.toLowerCase().includes('trigger'))
|
|
79
|
-
.map(n => n.type.toLowerCase());
|
|
80
|
-
if (triggerTypes.some(t => t.includes('webhook'))) {
|
|
81
|
-
return 'Webhook';
|
|
82
|
-
}
|
|
83
|
-
if (triggerTypes.some(t => t.includes('schedule') || t.includes('cron'))) {
|
|
84
|
-
return 'Scheduled';
|
|
85
|
-
}
|
|
86
|
-
if (triggerTypes.some(t => t.includes('form'))) {
|
|
87
|
-
return 'Form';
|
|
88
|
-
}
|
|
89
|
-
// Check for API orchestration
|
|
90
|
-
const httpNodes = workflow.nodes.filter(n => n.type.toLowerCase().includes('httprequest'));
|
|
91
|
-
if (httpNodes.length > 2) {
|
|
92
|
-
return 'API';
|
|
93
|
-
}
|
|
94
|
-
return 'Unknown';
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Extract AI models used
|
|
98
|
-
*/
|
|
99
|
-
static extractAIModels(workflow) {
|
|
100
|
-
const models = [];
|
|
101
|
-
for (const node of workflow.nodes) {
|
|
102
|
-
const type = node.type.toLowerCase();
|
|
103
|
-
const params = node.parameters || {};
|
|
104
|
-
// Claude
|
|
105
|
-
if (type.includes('anthropic')) {
|
|
106
|
-
const model = params.model || 'claude-sonnet-4-20250514';
|
|
107
|
-
models.push(model);
|
|
108
|
-
}
|
|
109
|
-
// OpenAI
|
|
110
|
-
if (type.includes('openai')) {
|
|
111
|
-
const model = params.model || 'gpt-4';
|
|
112
|
-
models.push(model);
|
|
113
|
-
}
|
|
114
|
-
// Embeddings
|
|
115
|
-
if (type.includes('embedding')) {
|
|
116
|
-
if (params.model) {
|
|
117
|
-
models.push(params.model);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
// Reranker
|
|
121
|
-
if (type.includes('rerank')) {
|
|
122
|
-
models.push('cohere reranker');
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return [...new Set(models)]; // Dedupe
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Extract databases/infrastructure
|
|
129
|
-
*/
|
|
130
|
-
static extractInfrastructure(workflow) {
|
|
131
|
-
const infra = [];
|
|
132
|
-
for (const node of workflow.nodes) {
|
|
133
|
-
const type = node.type.toLowerCase();
|
|
134
|
-
if (type.includes('pinecone'))
|
|
135
|
-
infra.push('Pinecone vector database');
|
|
136
|
-
if (type.includes('weaviate'))
|
|
137
|
-
infra.push('Weaviate vector database');
|
|
138
|
-
if (type.includes('qdrant'))
|
|
139
|
-
infra.push('Qdrant vector database');
|
|
140
|
-
if (type.includes('postgres'))
|
|
141
|
-
infra.push('PostgreSQL');
|
|
142
|
-
if (type.includes('mysql'))
|
|
143
|
-
infra.push('MySQL');
|
|
144
|
-
if (type.includes('mongodb'))
|
|
145
|
-
infra.push('MongoDB');
|
|
146
|
-
if (type.includes('redis'))
|
|
147
|
-
infra.push('Redis');
|
|
148
|
-
if (type.includes('webhook'))
|
|
149
|
-
infra.push('n8n webhook endpoints');
|
|
150
|
-
}
|
|
151
|
-
return [...new Set(infra)];
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Extract triggers
|
|
155
|
-
*/
|
|
156
|
-
static extractTriggers(workflow) {
|
|
157
|
-
const triggers = [];
|
|
158
|
-
for (const node of workflow.nodes) {
|
|
159
|
-
const type = node.type.toLowerCase();
|
|
160
|
-
if (type.includes('trigger')) {
|
|
161
|
-
const trigger = {
|
|
162
|
-
type: node.type,
|
|
163
|
-
id: node.id,
|
|
164
|
-
purpose: node.notes || `${node.name} trigger`
|
|
165
|
-
};
|
|
166
|
-
// Webhook details
|
|
167
|
-
if (type.includes('webhook')) {
|
|
168
|
-
trigger.path = node.parameters?.path || node.id;
|
|
169
|
-
trigger.method = node.parameters?.method || 'POST';
|
|
170
|
-
}
|
|
171
|
-
// Form details
|
|
172
|
-
if (type.includes('form')) {
|
|
173
|
-
const webhookId = node.parameters?.options?.webhookId;
|
|
174
|
-
if (webhookId) {
|
|
175
|
-
trigger.webhook_id = webhookId;
|
|
176
|
-
}
|
|
177
|
-
const formFields = node.parameters?.formFields?.values;
|
|
178
|
-
if (formFields && Array.isArray(formFields)) {
|
|
179
|
-
trigger.fields = formFields.map((f) => ({
|
|
180
|
-
name: f.fieldLabel || f.fieldId,
|
|
181
|
-
type: f.fieldType
|
|
182
|
-
}));
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
triggers.push(trigger);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
return triggers;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Group nodes by category
|
|
192
|
-
*/
|
|
193
|
-
static groupNodes(workflow) {
|
|
194
|
-
const groups = {
|
|
195
|
-
core_agent: [],
|
|
196
|
-
knowledge_ingestion: [],
|
|
197
|
-
retrieval: [],
|
|
198
|
-
organization: [],
|
|
199
|
-
transformation: [],
|
|
200
|
-
integration: []
|
|
201
|
-
};
|
|
202
|
-
for (const node of workflow.nodes) {
|
|
203
|
-
const type = node.type.toLowerCase();
|
|
204
|
-
const name = node.name;
|
|
205
|
-
// Core AI agent
|
|
206
|
-
if (type.includes('agent') || type.includes('lmchat') || type.includes('anthropic') || type.includes('openai')) {
|
|
207
|
-
groups.core_agent.push(name);
|
|
208
|
-
}
|
|
209
|
-
// Knowledge ingestion
|
|
210
|
-
else if (type.includes('loader') || type.includes('splitter') || type.includes('embedding') || (type.includes('vectorstore') && type.includes('insert'))) {
|
|
211
|
-
groups.knowledge_ingestion.push(name);
|
|
212
|
-
}
|
|
213
|
-
// Retrieval
|
|
214
|
-
else if (type.includes('vectorstore') || type.includes('rerank')) {
|
|
215
|
-
groups.retrieval.push(name);
|
|
216
|
-
}
|
|
217
|
-
// Organization
|
|
218
|
-
else if (type.includes('sticky')) {
|
|
219
|
-
groups.organization.push(name);
|
|
220
|
-
}
|
|
221
|
-
// Transformation
|
|
222
|
-
else if (type.includes('code') || type.includes('set') || type.includes('function')) {
|
|
223
|
-
groups.transformation.push(name);
|
|
224
|
-
}
|
|
225
|
-
// Integration
|
|
226
|
-
else {
|
|
227
|
-
groups.integration.push(name);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
// Remove empty groups
|
|
231
|
-
return Object.fromEntries(Object.entries(groups).filter(([_, nodes]) => nodes.length > 0));
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Generate flow description (AMAZING: Makes it readable for AI agents)
|
|
235
|
-
*/
|
|
236
|
-
static generateFlowDescription(workflow, pattern) {
|
|
237
|
-
// We'll generate this based on pattern + node analysis
|
|
238
|
-
// For now, placeholder
|
|
239
|
-
return `Workflow pattern: ${pattern}. Detailed flow analysis coming soon.`;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* AMAZING: Extract tool capabilities for AI agents
|
|
243
|
-
*/
|
|
244
|
-
static extractToolCapabilities(workflow) {
|
|
245
|
-
const tools = [];
|
|
246
|
-
for (const node of workflow.nodes) {
|
|
247
|
-
const type = node.type;
|
|
248
|
-
// Vector search tools
|
|
249
|
-
if (type.toLowerCase().includes('vectorstore')) {
|
|
250
|
-
tools.push({
|
|
251
|
-
toolName: node.name,
|
|
252
|
-
nodeType: type,
|
|
253
|
-
purpose: 'Search vector database for relevant context',
|
|
254
|
-
parameters: ['query', 'topK', 'filter']
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
// HTTP request tools
|
|
258
|
-
if (type.toLowerCase().includes('httprequest')) {
|
|
259
|
-
tools.push({
|
|
260
|
-
toolName: node.name,
|
|
261
|
-
nodeType: type,
|
|
262
|
-
purpose: 'Make HTTP API requests',
|
|
263
|
-
parameters: ['url', 'method', 'body', 'headers']
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
// Code execution tools
|
|
267
|
-
if (type.toLowerCase().includes('code')) {
|
|
268
|
-
tools.push({
|
|
269
|
-
toolName: node.name,
|
|
270
|
-
nodeType: type,
|
|
271
|
-
purpose: 'Execute custom logic',
|
|
272
|
-
parameters: ['code', 'items']
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
return tools;
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* AMAZING: Extract decision points for autonomous agents
|
|
280
|
-
*/
|
|
281
|
-
static extractDecisionPoints(workflow) {
|
|
282
|
-
const decisions = [];
|
|
283
|
-
for (const node of workflow.nodes) {
|
|
284
|
-
const type = node.type.toLowerCase();
|
|
285
|
-
if (type.includes('if')) {
|
|
286
|
-
const connections = workflow.connections[node.name];
|
|
287
|
-
const branches = connections ? Object.keys(connections) : [];
|
|
288
|
-
decisions.push({
|
|
289
|
-
nodeId: node.id,
|
|
290
|
-
nodeName: node.name,
|
|
291
|
-
type: 'IF',
|
|
292
|
-
condition: JSON.stringify(node.parameters?.conditions || {}),
|
|
293
|
-
branches
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
if (type.includes('switch')) {
|
|
297
|
-
const connections = workflow.connections[node.name];
|
|
298
|
-
const branches = connections ? Object.keys(connections) : [];
|
|
299
|
-
decisions.push({
|
|
300
|
-
nodeId: node.id,
|
|
301
|
-
nodeName: node.name,
|
|
302
|
-
type: 'Switch',
|
|
303
|
-
condition: JSON.stringify(node.parameters?.rules || {}),
|
|
304
|
-
branches
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
return decisions;
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* AMAZING: Extract memory requirements
|
|
312
|
-
*/
|
|
313
|
-
static extractMemoryRequirements(workflow) {
|
|
314
|
-
const memory = [];
|
|
315
|
-
for (const node of workflow.nodes) {
|
|
316
|
-
const type = node.type.toLowerCase();
|
|
317
|
-
if (type.includes('pinecone') || type.includes('weaviate') || type.includes('qdrant')) {
|
|
318
|
-
memory.push({
|
|
319
|
-
nodeId: node.id,
|
|
320
|
-
nodeName: node.name,
|
|
321
|
-
type: 'vector-store',
|
|
322
|
-
purpose: 'Store and retrieve embeddings for RAG'
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
if (type.includes('redis')) {
|
|
326
|
-
memory.push({
|
|
327
|
-
nodeId: node.id,
|
|
328
|
-
nodeName: node.name,
|
|
329
|
-
type: 'cache',
|
|
330
|
-
purpose: 'Cache frequently accessed data'
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
if (type.includes('postgres') || type.includes('mysql') || type.includes('mongodb')) {
|
|
334
|
-
memory.push({
|
|
335
|
-
nodeId: node.id,
|
|
336
|
-
nodeName: node.name,
|
|
337
|
-
type: 'database',
|
|
338
|
-
purpose: 'Persistent data storage'
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
return memory;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
exports.N8nWorkflowAnalyzer = N8nWorkflowAnalyzer;
|
|
346
|
-
//# sourceMappingURL=n8n-analyzer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"n8n-analyzer.js","sourceRoot":"","sources":["../../src/enrichment/n8n-analyzer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH,2BAAoC;AAiRpC,+EAA+E;AAC/E,uCAAuC;AACvC,+EAA+E;AAE/E,MAAa,mBAAmB;IAE9B;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAgB;QAClC,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,aAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YACrD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAEjC,wCAAwC;YACxC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,WAAW,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QACzE,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,QAAgB;QACjC,MAAM,OAAO,GAAG,MAAM,aAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAED;;OAE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