Add danbooru-mcp auto-start, git sync, status API endpoints, navbar status indicators, and LLM format retry

- app.py: add subprocess import; add _ensure_mcp_repo() to clone/pull
  danbooru-mcp from https://git.liveaodh.com/aodhan/danbooru-mcp into
  tools/danbooru-mcp/ at startup; add ensure_mcp_server_running() which
  calls _ensure_mcp_repo() then starts the Docker container if not running;
  add GET /api/status/comfyui and GET /api/status/mcp health endpoints;
  fix call_llm() to retry up to 3 times on unexpected response format
  (KeyError/IndexError), logging the raw response and prompting the LLM
  to respond with valid JSON before each retry
- templates/layout.html: add ComfyUI and MCP status dot indicators to
  navbar; add polling JS that checks both endpoints on load and every 30s
- static/style.css: add .service-status, .status-dot, .status-ok,
  .status-error, .status-checking styles and status-pulse keyframe animation
- .gitignore: add tools/ to exclude the cloned danbooru-mcp repo
This commit is contained in:
Aodhan Collins
2026-03-03 00:57:27 +00:00
parent 0b8802deb5
commit ae7ba961c1
1194 changed files with 17475 additions and 3268 deletions

View File

@@ -0,0 +1,21 @@
{
"look_id": "seraphine_ilxl_v1",
"look_name": "Seraphine Ilxl V1",
"character_id": "",
"positive": "1girl, seraphine_(league_of_legends), long_hair, gradient_hair, pink_hair, blue_eyes, mark_under_eye, wings, detached_collar, purple_dress, white_shirt, short_sleeves, white_gloves, belt, mismatched_legwear, white_thighhighs, blue_thighhighs, standing, cowboy_shot, park, smile, open_mouth",
"negative": "worst_quality, low_quality, bad_anatomy, sketch, greyscale, monochrome, short_hair, red_eyes",
"lora": {
"lora_name": "Illustrious/Looks/seraphine_ilxl_v1.safetensors",
"lora_weight": 0.9,
"lora_triggers": "aaserap",
"lora_weight_min": 0.9,
"lora_weight_max": 0.9
},
"tags": [
"seraphine_(league_of_legends)",
"league_of_legends",
"gradient_hair",
"mismatched_legwear",
"wings"
]
}