ComfyUI-Manager/comfyui_manager/common
Dr.Lt.Data 2866193baf ● feat: Draft pip package policy management system (not yet integrated)
Add comprehensive pip dependency conflict resolution framework as draft implementation. This is self-contained and does not affect existing
ComfyUI Manager functionality.

Key components:
- pip_util.py with PipBatch class for policy-driven package management
- Lazy-loaded policy system supporting base + user overrides
- Multi-stage policy execution (uninstall → apply_first_match → apply_all_matches → restore)
- Conditional policies based on platform, installed packages, and ComfyUI version
- Comprehensive test suite covering edge cases, workflows, and platform scenarios
- Design and implementation documentation

Policy capabilities (draft):
- Package replacement (e.g., PIL → Pillow, opencv-python → opencv-contrib-python)
- Version pinning to prevent dependency conflicts
- Dependency protection during installations
- Platform-specific handling (Linux/Windows, GPU detection)
- Pre-removal and post-restoration workflows

Testing infrastructure:
- Pytest-based test suite with isolated environments
- Dependency analysis tools for conflict detection
- Coverage for policy priority, edge cases, and environment recovery

Status: Draft implementation complete, integration with manager workflows pending.
2025-10-04 08:55:59 +09:00
..
__init__.py restructuring 2025-04-13 09:26:02 +09:00
cm_global.py restructuring 2025-04-13 09:26:02 +09:00
cnr_utils.py fixed: Issue where an invalid channel exception occurred when using the default channel 2025-09-06 03:35:43 +09:00
context.py feat: initial implementation of middleware-based security policy 2025-07-12 11:31:07 +09:00
enums.py modified: security policy 2025-06-27 01:38:38 +09:00
git_helper.py fixed: avoid except: 2025-04-21 12:42:50 +09:00
git_utils.py Merge branch 'main' into draft-v4 2025-06-09 12:37:10 +09:00
manager_downloader.py Merge branch 'main' into draft-v4 2025-07-24 12:41:48 +09:00
manager_security.py add missing file 2025-07-15 18:52:17 +09:00
manager_util.py Merge branch 'main' into draft-v4 2025-07-24 12:41:48 +09:00
node_package.py restructuring 2025-04-13 09:26:02 +09:00
pip_util.design.en.md ● feat: Draft pip package policy management system (not yet integrated) 2025-10-04 08:55:59 +09:00
pip_util.implementation-plan.en.md ● feat: Draft pip package policy management system (not yet integrated) 2025-10-04 08:55:59 +09:00
pip_util.py ● feat: Draft pip package policy management system (not yet integrated) 2025-10-04 08:55:59 +09:00
pip_util.test-design.md ● feat: Draft pip package policy management system (not yet integrated) 2025-10-04 08:55:59 +09:00
README.md Merge branch 'main' into draft-v4 2025-06-01 06:23:11 +09:00
security_check.py Merge branch 'main' into draft-v4 2025-07-24 12:41:48 +09:00

ComfyUI-Manager: Core Backend (glob)

This directory contains the Python backend modules that power ComfyUI-Manager, handling the core functionality of node management, downloading, security, and server operations.

Core Modules

  • manager_downloader.py: Handles downloading operations for models, extensions, and other resources.
  • manager_util.py: Provides utility functions used throughout the system.

Specialized Modules

  • cm_global.py: Maintains global variables and state management across the system.
  • cnr_utils.py: Helper utilities for interacting with the custom node registry (CNR).
  • git_utils.py: Git-specific utilities for repository operations.
  • node_package.py: Handles the packaging and installation of node extensions.
  • security_check.py: Implements the multi-level security system for installation safety.