Commit Graph
7 Commits
Author SHA1 Message Date
Nakano Kenji 7b6b6d51eb fix(lora): normalize path separator to forward slash in list_models 2026-02-05 12:49:45 +08:00
Nakano Kenji b240bc1318 fix(lora): clarify and normalize lora_name matching 2026-02-04 18:34:13 +08:00
Nakano Kenji c1e68d8fcc Move nltags to end of prompt order (after environment)
nltags is meant for 'last resort natural language description', so it makes sense to put it at the very end after all tags including environment.
2026-02-04 03:42:44 +08:00
Nakano Kenji a9039ee4f8 feat: add model pre-check and model path configuration
Model configuration:

- Add COMFYUI_MODELS_DIR for model pre-check (optional)

- Add ANIMATOOL_UNET_NAME, ANIMATOOL_CLIP_NAME, ANIMATOOL_VAE_NAME

- Add ANIMATOOL_CHECK_MODELS toggle

Model pre-check:

- Check if model files exist before generation

- Friendly error message with download link

- Skipped when COMFYUI_MODELS_DIR not set (remote ComfyUI)

Other improvements:

- Use config model names as defaults in _inject()

- Export DEFAULT_*_NAME constants
2026-02-03 21:32:07 +08:00
Nakano Kenji f7fd0c07d9 feat: add environment variable configuration and improve error handling
Configuration improvements:

- Support COMFYUI_URL environment variable for remote/Docker ComfyUI

- Add ANIMATOOL_TIMEOUT, ANIMATOOL_DOWNLOAD_IMAGES, etc.

- Can configure via MCP env block without modifying code

Error handling improvements:

- Add check_comfyui_health() for friendly connection error messages

- Better error messages when ComfyUI is not running

- Detect and report ComfyUI execution errors

Documentation:

- Add environment variable reference table to README

- Add remote/Docker ComfyUI configuration guide

- Expand troubleshooting section with common issues

- Add system requirements section
2026-02-03 21:29:28 +08:00
Nakano Kenji d31d284ad5 fix: change round_to default from 8 to 16 for Cosmos spatial_patch_size compatibility
Anima model (based on Cosmos architecture) requires latent space dimensions to be divisible by spatial_patch_size=2. Since VAE scales down by 8x, pixel dimensions must be divisible by 8*2=16.

Changes:

- Update round_to default from 8 to 16 in config.py and anima_executor.py

- Add align_dimension() function to align user-provided width/height

- Apply alignment to directly specified width/height (not just aspect_ratio)

- Update schema descriptions to document 16-multiple requirement
2026-02-03 21:24:27 +08:00
Nakano Kenji 7917b066f2 Initial release v1.0.0
- MCP Server: Native image display in Cursor/Claude
- ComfyUI HTTP API: /anima/health, /anima/schema, /anima/knowledge, /anima/generate
- Standalone FastAPI server and CLI tool
- Structured prompt system with 14 aspect ratio presets
- Expert knowledge base for Anima prompting
2026-02-03 16:18:57 +08:00