Files
TrueGrowth/openspec/changes/add-comfyui-image-engine/specs/image-generation/spec.md

21 lines
1.1 KiB
Markdown

## ADDED Requirements
### Requirement: Generate Images Through ComfyUI Local Engine
The system SHALL allow image generation tasks to run through a local ComfyUI engine while preserving the existing task and media result flow.
#### Scenario: ComfyUI image generation succeeds
- **GIVEN** ComfyUI is reachable on the configured local base URL
- **AND** a supported workflow template is selected
- **WHEN** the user submits a prompt
- **THEN** the system SHALL submit a ComfyUI prompt
- **AND** collect output images
- **AND** expose the completed task and generated image assets through the existing task center and media library.
### Requirement: Keep Business Workflow Outside ComfyUI
The system SHALL use ComfyUI only as a local image engine, not as the full TrueGrowth business workflow engine.
#### Scenario: Business workflow uses multiple capabilities
- **WHEN** a workflow includes text/script generation, image generation, and avatar/video creation
- **THEN** text/script generation SHALL continue using configured text providers
- **AND** image generation MAY use ComfyUI
- **AND** avatar/video/voice steps SHALL continue using their existing providers.