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,17 @@
## Context
The existing local image provider can register models and route to OpenAI-compatible `/images/generations`, but it cannot execute ComfyUI workflows or inspect ComfyUI model/node availability.
## Goals / Non-Goals
- Goals: connect to local `127.0.0.1:8188`, inspect ComfyUI status and nodes, run built-in text-to-image workflows, and return generated images to TrueGrowth tasks/assets.
- Non-Goals: bundling ComfyUI, silently installing models/custom nodes, replacing TrueGrowth business workflows, or exposing remote LAN ComfyUI by default.
## Decisions
- Treat ComfyUI as a local image engine behind TrueGrowth APIs.
- Keep online text/script providers and existing avatar/voice/video runtimes unchanged.
- Start with polling `/history/{prompt_id}` after `POST /prompt`; websocket can be added later without changing the public TrueGrowth API.
- Use API-format workflow JSON templates for SDXL and Flux Schnell.
## Risks / Trade-offs
- Workflow templates depend on node availability and model filenames in ComfyUI.
- Some Flux installs require custom nodes or newer ComfyUI versions; missing nodes are reported instead of hidden.
- Model downloads and licenses remain user-confirmed.