4 Commits
Author SHA1 Message Date
Jensen Zhang 9a5301d0ee Fix import conflict in api/handlers/__init__.py
- Remove conflicting imports between cm-cli and comfy-cli handlers
- Keep __init__.py minimal to avoid circular dependencies
- Handlers are imported directly in route files
2026-03-17 22:02:06 +08:00
Jensen Zhang d7a15a7d5d Add comfy-cli REST API support
- Implement ComfyCliExecutor for async command execution
- Add REST API endpoints for comfy-cli:
  - Configuration management (/comfy-cli/config/*)
  - Model management (/comfy-cli/model/*)
  - Node management (/comfy-cli/node/*)
- Create API handlers: ConfigHandler, ModelHandler, NodeHandler
- Register routes in comfy_cli_routes.py
- Update main __init__.py to support dual CLI (cm-cli + comfy-cli)
- Add comprehensive documentation:
  - COMFY_CLI_API.md: Complete API reference
  - COMFY_CLI_QUICKSTART.md: Quick start guide
  - Update README.md with dual CLI support
  - Update AGENTS.md development guide
- Add comfy-cli reference documentation in docs/references/
- Remove trailing spaces from all Python and Markdown files
- Ensure all code passes syntax validation

Features:
- Async job tracking for long-running operations
- Structured JSON responses
- Comprehensive error handling
- Direct filesystem access for model listing (more reliable)
- Support for CivitAI and HuggingFace API tokens
2026-03-17 21:55:32 +08:00
Jensen Zhang 4f241f7d32 Fix cm-cli auto-detection and add development guidelines
- Update CMCLIExecutor to detect cm-cli as executable (not just .py script)
- Use shutil.which() to find cm-cli in PATH (supports uv/pip installations)
- Fall back to .py script detection for legacy installations
- Add comprehensive .gitignore for Python, IDE, and ComfyUI artifacts
- Expand AGENTS.md with build commands, code style, and architecture patterns
- Remove trailing whitespace across all source files
2026-03-16 02:33:46 +08:00
Jensen Zhang 4a50c6569f Initial commit: cm-cli-rest - REST API for ComfyUI-Manager CLI
- REST API endpoints for cm-cli commands (install, update, uninstall, etc.)
- Async job tracking for long-running operations
- Integration with ComfyUI's built-in aiohttp server
- Comprehensive error handling and documentation
- Configuration support via config.json
2026-03-15 19:22:17 +08:00