Files
masi 342dd549bb feat: wiki redesign with character editing; richer novel requests; maintenance as a Job
- wiki.html: tabs (characters ranked by chapters, illustrations lightbox,
  A-Z glossary, story in groups, style), search, character sheet with a look
  timeline and Edit mode: rename, role, aliases, look label/appearance/first
  chapter, redraw, upload a picture, delete look, merge, split, delete.
- /v1/wiki JSON; ?w= thumbnails; old positions backfilled from Kavita paths.
- /library groups results by novel with cover, author, status, genres,
  summary and per-source chapter counts (free vs locked, latest), marks
  novels already in the library; ?q= starts a search.
- maintain-job.sh runs cleanup as a Job; consolidation skips characters on
  GLM timeouts; GLM-only jobs run off the GPU queue; opening a chapter queued
  as a prefetch moves it up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 16:10:26 -03:00

17 lines
934 B
Bash
Executable File

#!/usr/bin/env bash
# Apply manifests and code. The ComfyUI dispatcher and Qwen workflow are taken
# from their canonical copies in ~/manifests/comfyui, not duplicated here.
set -euo pipefail
cd "$(dirname "$0")"
NS=novel-illustrator
COMFY=$HOME/manifests/comfyui
kubectl apply -f k8s/novel-illustrator.yaml -f k8s/backup.yaml
cm() { kubectl -n $NS create configmap "$1" "${@:2}" --dry-run=client -o yaml | kubectl apply -f -; }
cm novel-illustrator-app $(for f in *.py reader.js wiki.html fetcher-start.sh; do printf -- "--from-file=%s " "$f"; done)
cm novel-illustrator-dispatcher --from-file="$COMFY/scripts/generate_asset.py"
cm novel-illustrator-workflows --from-file="$COMFY/workflows/qwen_image_2_1_t2i_api.json"
kubectl -n $NS rollout restart deploy/novel-illustrator deploy/novel-fetcher
kubectl -n $NS rollout status deploy/novel-illustrator --timeout=180s
kubectl -n $NS rollout status deploy/novel-fetcher --timeout=600s