10 Commits
Author SHA1 Message Date
Nakano Kenji 47987534e9 enhance: improve tool descriptions and history robustness
- mcp_server: add explicit required/optional markers to all tool params, improve reroll schema to auto-convert required to optional-override, update default neg prompt

- history: fix next_id to scan global max across all records, add file fallback search when record not found in memory
2026-02-07 06:26:00 +08:00
Nakano Kenji c743ef5981 docs: 更新文档覆盖 reroll/history/repeat/batch_size 新功能
- README: Features、Parameters 表、HTTP 路由表、目录结构

- wiki/API-Reference: 新增 list_anima_history/reroll_anima_image/list_anima_models 文档

- wiki/Home: Features 列表补充

- wiki/FAQ: 更新批量生成答案,新增 reroll FAQ

- mcp_server: generate/reroll 响应追加历史 ID 提示

- anima_executor: generate 返回 history_id 字段
2026-02-06 18:25:27 +08:00
Nakano Kenji a94afd0818 feat(reroll): 新增生成历史记录系统和 reroll/history MCP 工具
- 新增 executor/history.py:HistoryManager(内存 deque + JSONL 持久化)

- generate 完成后自动记录历史(参数、seed、尺寸等)

- 新增 MCP 工具 list_anima_history 和 reroll_anima_image

- generate 和 reroll 均支持 repeat(多次 queue)和 batch_size

- HTTP server 新增 /history 和 /reroll 端点
2026-02-06 17:57:31 +08:00
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