feat: image generation service — ComfyUI cluster integration

- POST /api/image/generate proxy endpoint (admin required)
- GET /api/image/status lists available image gen nodes
- Cluster AMQP protocol: cmd.image_generate, image_generated, image_failed
- Node agent auto-detects ComfyUI, registers image_gen capability
- ComfyUI workflow builder: CheckpointLoader → KSampler → VAEDecode → SaveImage
- Hardware probe checks ComfyUI reachability + checkpoint model list
- 27 tests covering cluster handlers, router, node agent, hardware, capabilities
- Config: CAIC_COMFYUI_BASE, CAIC_COMFYUI_TIMEOUT, comfyui_port in agent.ini
- Version bump to v1.1.0
- Documentation: ai.md, wiki/Developer-Architecture.md, current-wip.md, README.md, .env.example
This commit is contained in:
gramps
2026-07-27 08:06:03 -07:00
parent 576d9333b3
commit aecd3330fd
15 changed files with 2115 additions and 1005 deletions
+17 -1
View File
@@ -1,6 +1,6 @@
![cAIc banner](static/readme-banner.png)
# cAIc v1.0.0
# cAIc v1.1.0
**Cluster AI coordinator — heterogeneous GPU inference for homelab AI clusters.**
@@ -60,6 +60,7 @@ A worker with a slow GPU still contributes — it handles less latency-sensitive
- **At-rest encryption** — AES-256-GCM on all query-derived text in SQLite and Qdrant
- **IDE integration** — OpenAI-compatible `/v1/chat/completions` endpoint for Continue.dev and friends
- **OpenAI-compat FIM** — `/v1/fim/completions` for code completion
- **Image generation** — ComfyUI-backed image gen via cluster workers (Stable Diffusion / Flux)
- **6 color themes** — IBM Blue, Matrix, Dark, Light, Amber, Trippin
- **Docker-ready** — `docker compose up -d` and you're running
@@ -155,6 +156,21 @@ Gitea (primary): `ssh://gitea@llgit.llamachile.tube:1319/gramps/caic.git`
---
## What's New in v1.1.0
### Image Generation Service
- `POST /api/image/generate` — proxy endpoint routes to ComfyUI on cluster workers
- `GET /api/image/status` — lists available image gen nodes
- Node agent auto-detects ComfyUI and registers `image_gen` capability
- Full ComfyUI workflow: CheckpointLoader → KSampler → VAEDecode → SaveImage
- Cluster AMQP protocol extended: `cmd.image_generate`, `image_generated`, `image_failed`
- Hardware probe checks ComfyUI reachability + checkpoint model list
- 27 new tests covering cluster handlers, router proxy, node agent, hardware, capability detection
### Bug Fixes & Hardening
- Hardware assessment now probes ComfyUI alongside llama-server, Qdrant, SearXNG
- Node agent config extended with `comfyui_port` (default 8188)
## What's New in v1.0.0
### Docker Containerization (B3)