Commit Graph

29 Commits

Author SHA1 Message Date
bymyself
49549ddcb8 [feat] Implement comprehensive batch tracking and OpenAPI-driven data models
Enhances ComfyUI Manager with robust batch execution tracking and unified data model architecture:

- Implemented automatic batch history serialization with before/after system state snapshots
- Added comprehensive state management capturing installed nodes, models, and ComfyUI version info
- Enhanced task queue with proper client ID handling and WebSocket notifications
- Migrated all data models to OpenAPI-generated Pydantic models for consistency
- Added documentation for new TaskQueue methods (done_count, total_count, finalize)
- Fixed 64 linting errors with proper imports and code cleanup

Technical improvements:
- All models now auto-generated from openapi.yaml ensuring API/implementation consistency
- Batch tracking captures complete system state at operation start and completion
- Enhanced REST endpoints with comprehensive documentation
- Removed manual model files in favor of single source of truth
- Added helper methods for system state capture and batch lifecycle management
2025-06-08 01:18:14 -07:00
bymyself
35eddc2965 [feat] Add client_id support to task queue system
- Add client_id field to QueueTaskItem and TaskHistoryItem models
- Implement client-specific WebSocket message routing
- Add client filtering to queue status and history endpoints
- Follow ComfyUI patterns for session management
- Create data_models package for better code organization
2025-06-06 16:01:52 -07:00
Dr.Lt.Data
798b203274 fixed: cm_global importing error 2025-06-06 16:00:45 -07:00
Dr.Lt.Data
9d2034bd4f fixed: crash related to deleted CNR node after installed
modified: convert cm-cli.sh to cm-cli command
2025-06-06 16:00:45 -07:00
Dr.Lt.Data
6233fabe02 modified: glob.core - make default network mode as public.
Network mode does not simply determine whether the CNR cache is used. Even after switching to cacheless in the future, it will continue to be used as a policy for user environments.
2025-06-06 16:00:45 -07:00
Dr.Lt.Data
48ba2f4b4c fixed: missing channels.list.template
modified: /ltdrdata -> /Comfy-Org
modified: set default network as public instead of offline
2025-06-06 16:00:45 -07:00
Dr.Lt.Data
3799af0017 fixed: perform reload when starting task worker 2025-06-06 16:00:45 -07:00
Dr.Lt.Data
403947a5d1 modified: prevent displaying ComfyUI-Manager on list 2025-06-06 16:00:45 -07:00
Dr.Lt.Data
276ccca4f6 fixed: avoid except:
fixed: prestartup_script - remove useless exception handling when fallback resolving comfy_path
2025-06-06 16:00:45 -07:00
Christian Byrne
31de92a7ef Add is_legacy_manager_ui route from the legacy package as well (#1748)
* add `is_legacy_manager_ui` route to `legacy` package  as well

* add static
2025-06-06 16:00:45 -07:00
Christian Byrne
3ae4aecd84 Only load legacy FE extension if --enable-manager-legacy-ui is set (#1746)
* only load JS extensions when legacy arg is set

* add `is_legacy_manager_ui` endpoint
2025-06-06 16:00:45 -07:00
Dr.Lt.Data
7896949719 use --enable-manager-legacy-ui cli arg instead of env variable 2025-06-06 16:00:45 -07:00
Dr.Lt.Data
86c7482048 restructuring
the existing cache-based implementation will be retained as a fallback under legacy/..., while glob/... will be updated to a cacheless implementation.
2025-06-06 16:00:45 -07:00
Dr.Lt.Data
89bb61fb05 fixed: don't disable legacy ComfyUI-Manager unless --disable-comfyui is set 2025-06-06 15:59:20 -07:00
bymyself
dfd9a3ec7b use parsed version and id even when no cnr map exists 2025-06-06 15:59:20 -07:00
bymyself
985c987603 fix: installed nodes should still be initialized in offline mode 2025-06-06 15:59:20 -07:00
bymyself
1ce35679b1 fix is_legacy_front should be a function still 2025-06-06 15:59:20 -07:00
bymyself
6e1c906aff if pip package, force offline mode 2025-06-06 15:59:20 -07:00
bymyself
cd8e87a3fb don't load legacy web dir when --disable-manager arg set 2025-06-06 15:59:20 -07:00
bymyself
8b9420731a enable legacy manager frontend during beta phase 2025-06-06 15:59:14 -07:00
bymyself
d9918cf773 add missing v2 prefix to customnode/installed route 2025-06-06 15:58:56 -07:00
bymyself
163782e445 don't handle queue in legacy front if element is not visible 2025-06-06 15:58:56 -07:00
bymyself
ad14e1ed13 don't show menu buttons if past comfyui front 1.16 2025-06-06 15:58:56 -07:00
Dr.Lt.Data
e8ff505ebf Modify the structure to be installable via pip. 2025-06-06 15:58:56 -07:00
Dr.Lt.Data
8a5226b1d4 added: should_be_disabled function 2025-06-06 15:57:08 -07:00
Dr.Lt.Data
422af67217 fixed: ruff check 2025-06-06 15:57:08 -07:00
Dr.Lt.Data
5c300f75e7 fixed: failed[..].ui_id -> failed 2025-06-06 15:57:08 -07:00
Dr.Lt.Data
5ea7bf3683 feat: support task batch
POST /v2/manager/queue/batch
GET /v2/manager/queue/history_list
GET /v2/manager/queue/history?id={id}
GET /v2/manager/queue/abort_current
2025-06-06 15:57:08 -07:00
Dr.Lt.Data
34efbe9262 Modify the structure to be installable via pip. 2025-06-06 15:57:08 -07:00