Initial TrueGrowth source import

This commit is contained in:
2026-07-07 09:36:36 +08:00
commit 3b6781d695
2283 changed files with 691996 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
## 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.

View File

@@ -0,0 +1,9 @@
## ADDED Requirements
### Requirement: Inspect ComfyUI Runtime Availability
The system SHALL inspect local ComfyUI availability, node metadata, and model choices for image workflows.
#### Scenario: User opens local image engine settings
- **WHEN** the system checks ComfyUI
- **THEN** it SHALL probe the local ComfyUI status endpoint
- **AND** read node/model metadata where available
- **AND** report missing nodes or missing model choices for built-in templates.