feat(enhance): config, templates, ComfyUI client, jobs, endpoints (#192)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cameron CordesandClaude Opus 5.5 committed 2026-10-30 15:27:28 -04:00
1 parent ebed15bd59
commit 17d74ebafe
19 files changed
+3912

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
//! Enhance on demand (#192): run a ComfyUI restore/edit workflow on a photo
//! from the apps, approve the result in-app, and have it land in the library
//! as a version (#191).
//!
//! - [`config`]: `enhance.toml` (templates, path map, timings).
//! - [`template`]: workflow loading/validation and per-photo filling.
//! - [`comfy`]: the ComfyUI HTTP calls used.
//! - [`service`]: submit, poll, approve, idle `/free`.
//! - [`handlers`]: the HTTP endpoints.
//!
//! ImageApi never writes under a library root: ComfyUI writes the approved
//! file, ImageApi only ingests it.
pub mod comfy;
pub mod config;
pub mod handlers;
pub mod path_map;
pub mod service;
pub mod template;
#[cfg(test)]
mod integration_tests;
pub use handlers::{approve, discard, get_job, get_templates, list_jobs, preview, submit};
pub use service::EnhanceService;