feat(validator): detect broken/malformed workflow connections (#620) (#621)

This commit is contained in:
Romuald Członkowski
2026-03-07 23:55:23 +01:00
committed by GitHub
parent 0998e5486e
commit 0918cd5425
11 changed files with 1265 additions and 172 deletions

View File

@@ -21,17 +21,7 @@ interface WorkflowNode {
}
interface WorkflowConnection {
[sourceNode: string]: {
main?: Array<Array<{
node: string;
type: string;
index: number;
}>>;
error?: Array<Array<{
node: string;
type: string;
index: number;
}>>;
ai_tool?: Array<Array<{
[outputType: string]: Array<Array<{
node: string;
type: string;
index: number;
@@ -94,6 +84,10 @@ export declare class WorkflowValidator {
private validateErrorOutputConfiguration;
private validateAIToolConnection;
private validateAIToolSource;
private validateOutputIndexBounds;
private validateInputIndexBounds;
private flagOrphanedNodes;
private validateTriggerReachability;
private hasCycle;
private validateExpressions;
private countExpressionsInObject;