dify/web/app/components/workflow/hooks
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
..
__tests__ refactor(vibe): extract workflow generation to dedicated module 2025-12-29 11:04:42 +08:00
use-workflow-run-event chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
index.ts refactor(vibe): modularize config and enhance workflow generation 2025-12-29 11:04:41 +08:00
use-DSL.ts feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
use-auto-generate-webhook-url.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-available-blocks.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-checklist.ts chore: fix type check for i18n (#30058) 2025-12-24 16:31:16 +08:00
use-config-vision.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-dynamic-test-run-options.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-edges-interactions-without-sync.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-edges-interactions.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-fetch-workflow-inspect-vars.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-helpline.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-inspect-vars-crud-common.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-inspect-vars-crud.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-node-data-update.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-node-plugin-installation.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-nodes-available-var-list.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-nodes-interactions-without-sync.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-nodes-interactions.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-nodes-layout.ts chore(web): migrate lodash-es to es-toolkit compat (#30126) 2025-12-25 09:44:57 +08:00
use-nodes-meta-data.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-nodes-sync-draft.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-panel-interactions.ts feat: workflow interaction (#4214) 2024-05-09 17:18:51 +08:00
use-selection-interactions.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-serial-async-callback.ts feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
use-set-workflow-vars-with-value.ts Chore/workflow last run (#21823) 2025-07-02 17:48:07 +08:00
use-shortcuts.ts fix: prioritize copying selected text (#30141) 2025-12-25 16:22:42 +08:00
use-tool-icon.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-workflow-history.ts chore(web): migrate lodash-es to es-toolkit compat (#30126) 2025-12-25 09:44:57 +08:00
use-workflow-interactions.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-workflow-mode.ts feat: workflow remove preview mode (#3941) 2024-04-28 17:09:56 +08:00
use-workflow-refresh-draft.ts chore: slice workflow refresh draft hook (#19292) 2025-05-06 18:24:10 +08:00
use-workflow-run.ts Chore/slice workflow (#18351) 2025-04-18 13:59:12 +08:00
use-workflow-search.tsx refactor: Replace goto-anything actions with a new scope registry system, simplifying command management and registration. 2025-12-29 10:42:24 +08:00
use-workflow-start-run.tsx feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
use-workflow-variables.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-workflow-vibe-config.ts refactor(vibe): modularize config and enhance workflow generation 2025-12-29 11:04:41 +08:00
use-workflow-vibe.tsx refactor(vibe): extract workflow generation to dedicated module 2025-12-29 11:04:42 +08:00
use-workflow.ts feat: implement Vibe panel for workflow with regeneration and acceptance features 2025-12-29 10:42:22 +08:00