mirror of https://github.com/langgenius/dify.git
Major fixes to workflow checklist validation: ## Fixed getValidTreeNodes function (workflow.ts) - Restore original function signature: (nodes, edges) instead of (startNode, nodes, edges) - Re-implement automatic start node discovery for all entry types - Unified traversal from Start, TriggerWebhook, TriggerSchedule, TriggerPlugin nodes - Single call now discovers all valid connected nodes correctly ## Simplified useChecklist validation (use-checklist.ts) - Remove complex manual start node iteration and result aggregation - Unified entry node validation concept for all start node types - Remove dependency on getStartNodes() utility - Simplified validation logic matching backup branch approach ## Resolved Issues - ✅ End node connectivity: Now correctly detects connections from any entry node - ✅ Unified entry validation: All start types (Start/Triggers) validated consistently - ✅ Simplified architecture: Restored proven validation approach from backup branch This restores the reliable workflow validation system while maintaining trigger node support. |
||
|---|---|---|
| .. | ||
| common.ts | ||
| dagre-layout.ts | ||
| data-source.ts | ||
| debug.ts | ||
| edge.ts | ||
| gen-node-meta-data.ts | ||
| index.ts | ||
| node-navigation.ts | ||
| node.ts | ||
| tool.ts | ||
| variable.ts | ||
| workflow-entry.ts | ||
| workflow-init.spec.ts | ||
| workflow-init.ts | ||
| workflow.ts | ||