dify/api/tests/unit_tests
aqiu cd030d82e5 refactor(vibe): extract workflow generation to dedicated module
- Move workflow generation logic from LLMGenerator to WorkflowGenerator
  - Extract to api/core/workflow/generator/ with modular architecture
  - Implement Planner-Builder pattern for better separation of concerns
  - Add validation engine with rule-based error classification
  - Add node and edge repair utilities for auto-fixing common issues
  - Add deterministic Mermaid generator for consistent output

- Reorganize configuration and prompts
  - Move vibe_config/ to generator/config/
  - Move vibe_prompts.py to generator/prompts/ (split into multiple files)
  - Add builder_prompts.py and planner_prompts.py for new architecture

- Enhance frontend workflow handling
  - Use standard node initialization for proper node setup
  - Improve variable reference replacement with better error handling
  - Add model fallback logic for better compatibility
  - Handle end node outputs format (value_selector vs legacy format)
  - Ensure parameter-extractor nodes have required 'required' field

- Add comprehensive test coverage
  - Unit tests for mermaid generator, node repair, edge repair
  - Tests for validation engine and rule system
  - Tests for planner prompts formatting
  - Frontend tests for variable reference replacement

- Add max_fix_iterations parameter for validate-fix loop configuration

# Conflicts:
#	web/app/components/workflow/hooks/use-workflow-vibe.tsx
2025-12-29 11:04:42 +08:00
..
configs feat: update HTTP timeout configurations and enhance timeout input handling in UI (#26685) 2025-10-10 09:00:06 +08:00
controllers refactor: split changes for api/controllers/console/workspace/load_ba… (#29887) 2025-12-26 11:00:03 +08:00
core refactor(vibe): extract workflow generation to dedicated module 2025-12-29 11:04:42 +08:00
extensions add service layer OTel Span (#28582) 2025-12-05 21:58:32 +08:00
factories hotfix: fix _extract_filename for rfc 5987 (#26230) 2025-11-27 10:54:00 +08:00
libs fix: Login secret text transmission (#29659) 2025-12-16 16:55:51 +08:00
models perf: remove the n+1 query (#29483) 2025-12-11 15:18:27 +08:00
oss test: Consolidate API CI test runner (#29440) 2025-12-15 13:20:31 +08:00
repositories Enhanced GraphEngine Pause Handling (#28196) 2025-11-26 19:59:34 +08:00
services feat: make the SegmentService.get_segments sort stable (#30152) 2025-12-25 15:53:38 +08:00
tasks fix: update Notion credential retrieval in document indexing sync task (#29933) 2025-12-21 16:51:24 +08:00
tools feat: MCP tool adds support for embeddedResource (#30261) 2025-12-29 10:15:47 +08:00
utils chore: update remove_leading_symbols pattern, keep 【 (#29419) 2025-12-11 09:47:39 +08:00
.gitignore Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
conftest.py test: Consolidate API CI test runner (#29440) 2025-12-15 13:20:31 +08:00