dify/api/controllers
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
..
common fix(api): force download for HTML previews (#30090) 2025-12-25 11:43:07 +08:00
console refactor(vibe): extract workflow generation to dedicated module 2025-12-29 11:04:42 +08:00
files fix(api): force download for HTML previews (#30090) 2025-12-25 11:43:07 +08:00
inner_api refactor: port reqparse to BaseModel (#28993) 2025-12-08 15:31:19 +09:00
mcp refactor: port reqparse to BaseModel (#28993) 2025-12-08 15:31:19 +09:00
service_api fix(dataset): dataset tags service_api error "Dataset not found" (#30028) 2025-12-26 10:55:42 +08:00
trigger fix: remove unnecessary error log when trigger endpoint returns 404 (#29587) 2025-12-12 17:53:40 +08:00
web refactor: split changes for api/controllers/web/forgot_password.py (#29858) 2025-12-24 09:41:51 +08:00
__init__.py chore(api/controllers): Apply Ruff Formatter. (#7645) 2024-08-26 15:29:10 +08:00