37 Commits
Author SHA1 Message Date
donny f7ef746d95 fixed favorites 2026-05-20 23:59:52 -07:00
donny 2e6147b22f api.py: fix double-base64 upload — write raw source 2026-05-20 23:39:10 -07:00
donny e1a61a3436 api: register favorites routes (POST/GET/DELETE + view) 2026-05-20 00:33:03 -07:00
donny 25b80d182e Add favorites module: persist starred images to date-bucketed folders 2026-05-20 00:28:34 -07:00
donnyandClaude Opus 4.7 34dffbc832 Load .env on extension startup so CIVITAI_TOKEN actually reaches downloads
The .env.example told users to "copy this to .env", but nothing called
load_dotenv — so os.environ.get("CIVITAI_TOKEN") was None and downloads
failed with "Download requires a valid CIVITAI_TOKEN" (HTTP 401).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 11:57:12 -07:00
donnyandClaude Opus 4.7 907ae5fe2b Add .env.example documenting CivitAI + auto-download env vars
Copy/paste template for the env vars read by the custom node:
CIVITAI_TOKEN (auth) and IMAGELAB_AUTO_DOWNLOAD (startup queue),
plus the optional CIVITAI_API_BASE / CIVITAI_DOWNLOAD_BASE
endpoint overrides. Set wherever ComfyUI runs — systemd unit,
docker-compose, or a RunPod template's environment section.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 10:34:17 -07:00
donnyandClaude Opus 4.7 496f613b6a Add CivitAI downloads + local model deletion, with startup auto-download
downloads.py: streamed CivitAI downloads into the right ComfyUI folder,
in-memory progress (polled), cancel, and local model deletion. Adapted
from the legacy civitai.py — trimmed to download/cancel/delete and wired
into the new hash index:
- destination folder is derived from CivitAI's model type unless forced
- finished downloads are hashed into the index (shows in /imagelab/hashes)
- deletes drop the model from the index via hashing.forget()
- skip-if-present so persistent-volume pods don't re-download
- IMAGELAB_AUTO_DOWNLOAD env var: comma/newline list of version ids,
  CivitAI URLs, model:<id>, or <folder>::<entry> — queued on startup

api.py: POST/GET/DELETE /imagelab/downloads + DELETE /imagelab/models/...
hashing.py: forget() — remove a model's .index sidecar + in-memory entry
__init__.py: queue startup downloads via the aiohttp on_startup hook

Token via CIVITAI_TOKEN env var. Legacy civitai*.py / websocket.py left
untouched as reference.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 15:57:53 -07:00
donnyandClaude Opus 4.7 9cf0e9a4cf Rebuild: minimal entrypoint with model hashing + /imagelab/hashes API
Clean-slate rebuild. The previous entrypoint and modules (routes.py,
workflows.py, imagelab_nodes.py, resources.py, etc.) are kept for
reference as __init__.py.legacy + untouched files, not loaded.

New surface:
- hashing.py: SHA256 model hashing keyed by path relative to the models
  dir (no more bare-filename collisions). .index sidecars under
  model_index/. Maintains an in-memory index + ETag-style version token.
- api.py: GET /imagelab/hashes serves the full cache from memory in one
  request, with ETag/If-None-Match -> 304 support.
- __init__.py: registers the API and builds the hash index in a
  background thread on startup.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 13:57:54 -07:00
donny 632ba7b32a feat: enhance extract_field_schema to support inline options for type inference 2026-01-14 23:02:41 -07:00
donny 82559292b1 feat: add optional client_id support for WebSocket connections in workflow execution and loading 2026-01-11 23:07:22 -07:00
donny ed0ac8090b refactor: streamline run_workflow function by removing custom client_id handling and unnecessary imports 2026-01-11 22:53:38 -07:00
donny a886e2d327 feat: make CivitAI and ComfyUI server URLs configurable via environment variables 2026-01-11 22:49:52 -07:00
donny bea3ff3120 Remove outdated test workflows and add CivitAI model management module with API routes 2026-01-11 21:48:46 -07:00
donny 2f64f3c80c feat: enhance image saving functionality with configurable modes and metadata support; update workflow parameters for input image handling 2026-01-06 23:53:26 -07:00
donny 5b4a19b1bc refactor: reorganize imports and enhance workflow caching mechanisms; add input image support in workflows 2026-01-06 19:08:18 -07:00
donny 7792f228b1 updated project name, fixed test workflows 2026-01-05 19:23:04 -07:00
donny 9da275d051 updated dimensions and loopback to be objects rather than flat properties to make it easy to map them to components on the frontend 2026-01-05 18:43:14 -07:00
donny 37e901bc30 refactored workflow parameters to include a component property for the frontend, updated docs 2026-01-05 16:50:56 -07:00
donny 59ff3365e9 added phase 5 rfactor to yaml workflow definitions to include a component property for the frontend 2026-01-05 16:38:46 -07:00
donny 2f4bca6e78 added new documentation 2026-01-05 15:28:08 -07:00
donny 971e180775 phase 4 refactor complete, added watchdog for workflow development, added watch cli command, updated docs 2026-01-05 14:54:02 -07:00
donny 4ed1ddad33 updated schema generator to format the yaml files better, confirmed cli still works 2026-01-05 14:49:28 -07:00
donny 4f8ba22cd2 completed phase 2, updated workflows to use yaml and updated workflows scripts to use new system for parameters 2026-01-05 14:42:55 -07:00
donny 193e03ce3a completed phase 1 of new workflow system, added cli and schema generator 2026-01-05 14:34:43 -07:00
donny 194003bfc6 added plan to refactor workflow system to use yaml files and automatic yaml generation based on workflow parameters 2026-01-05 14:24:03 -07:00
donny 45c26978b8 added testing workflows to try the new system 2026-01-05 11:58:43 -07:00
donny aa17567a03 cleaned up progress module 2026-01-04 13:23:36 -07:00
donny e440635426 cleaned up progress module 2026-01-04 13:07:47 -07:00
donny cfd568307a fixed progress updates to include all event data without a clientid 2026-01-04 13:04:20 -07:00
donny 67d2904d0a fixed resources, updated basic sdxl workflow with more params 2026-01-04 12:43:45 -07:00
donny 5e69848ff7 added documentation steering doc 2026-01-03 18:04:44 -07:00
donny 9ae3f05809 added basic workflow scripts 2026-01-03 17:52:48 -07:00
donny 7d2b95df19 added resources module to get models and metadata 2026-01-03 17:43:10 -07:00
donny 6711e006c1 implemented full binary progress system using websockets 2026-01-03 17:18:38 -07:00
donny 43ebd851ad added realtime progress image previews support 2026-01-03 16:56:12 -07:00
donny 7c8768ac1f implemented api and progress updates via websocket 2026-01-03 16:49:42 -07:00
donny 5441b0d8ff initial commit 2026-01-03 14:42:05 -07:00